markstream-vue 0.0.2-beta.2 → 0.0.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +88 -88
- package/dist/index.css +1 -1
- package/dist/index.d.ts +69 -25
- package/dist/index.js +3276 -3218
- package/dist/index.tailwind.css +1 -1
- package/dist/tailwind.ts +0 -0
- package/package.json +5 -3
package/dist/index.cjs
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
"use strict";var hs=Object.create;var
|
|
1
|
+
"use strict";var hs=Object.create;var jr=Object.defineProperty,ps=Object.defineProperties,ms=Object.getOwnPropertyDescriptor,gs=Object.getOwnPropertyDescriptors,ks=Object.getOwnPropertyNames,or=Object.getOwnPropertySymbols,vs=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable;var Vr=(e,t,n)=>t in e?jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ne=(e,t)=>{for(var n in t||(t={}))Hr.call(t,n)&&Vr(e,n,t[n]);if(or)for(var n of or(t))Fo.call(t,n)&&Vr(e,n,t[n]);return e},Ve=(e,t)=>ps(e,gs(t));var qr=(e,t)=>{var n={};for(var o in e)Hr.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&or)for(var o of or(e))t.indexOf(o)<0&&Fo.call(e,o)&&(n[o]=e[o]);return n};var ws=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ks(t))!Hr.call(e,r)&&r!==n&&jr(e,r,{get:()=>t[r],enumerable:!(o=ms(t,r))||o.enumerable});return e};var _n=(e,t,n)=>(n=e!=null?hs(vs(e)):{},ws(t||!e||!e.__esModule?jr(n,"default",{value:e,enumerable:!0}):n,e));var Z=(e,t,n)=>Vr(e,typeof t!="symbol"?t+"":t,n);var ee=(e,t,n)=>new Promise((o,r)=>{var i=c=>{try{a(n.next(c))}catch(u){r(u)}},s=c=>{try{a(n.throw(c))}catch(u){r(u)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue");var ys=Object.create,ho=Object.defineProperty,xs=Object.getOwnPropertyDescriptor,Ki=Object.getOwnPropertyNames,bs=Object.getPrototypeOf,_s=Object.prototype.hasOwnProperty,Xi=(e,t)=>function(){return t||(0,e[Ki(e)[0]])((t={exports:{}}).exports,t),t.exports},Zi=e=>{let t={};for(var n in e)ho(t,n,{get:e[n],enumerable:!0});return t},Cs=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=Ki(t),i=0,s=r.length,a;i<s;i++)a=r[i],!_s.call(e,a)&&a!==n&&ho(e,a,{get:(c=>t[c]).bind(null,a),enumerable:!(o=xs(t,a))||o.enumerable});return e},Yi=(e,t,n)=>(n=e!=null?ys(bs(e)):{},Cs(ho(n,"default",{value:e,enumerable:!0}),e));function Es(e,t,n,o){const r=Number(e[t].meta.id+1).toString();let i="";return typeof o.docId=="string"&&(i=`-${o.docId}-`),i+r}function Ss(e,t){let n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function Ms(e,t,n,o,r){const i=r.rules.footnote_anchor_name(e,t,n,o,r),s=r.rules.footnote_caption(e,t,n,o,r);let a=i;return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${i}" id="fnref${a}">${s}</a></sup>`}function Bs(e,t,n){return(n.xhtmlOut?`<hr class="footnotes-sep" />
|
|
2
2
|
`:`<hr class="footnotes-sep">
|
|
3
3
|
`)+`<section class="footnotes">
|
|
4
4
|
<ol class="footnotes-list">
|
|
5
|
-
`}function
|
|
5
|
+
`}function As(){return`</ol>
|
|
6
6
|
</section>
|
|
7
7
|
`}function Ds(e,t,n,o,r){let i=r.rules.footnote_anchor_name(e,t,n,o,r);return e[t].meta.subId>0&&(i+=`:${e[t].meta.subId}`),`<li id="fn${i}" class="footnote-item">`}function Ts(){return`</li>
|
|
8
|
-
`}function $s(e,t,n,o,r){let i=r.rules.footnote_anchor_name(e,t,n,o,r);return e[t].meta.subId>0&&(i+=`:${e[t].meta.subId}`),` <a href="#fnref${i}" class="footnote-backref">↩︎</a>`}function Ns(e){const t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=Ms,e.renderer.rules.footnote_block_open=As,e.renderer.rules.footnote_block_close=Bs,e.renderer.rules.footnote_open=Ds,e.renderer.rules.footnote_close=Ts,e.renderer.rules.footnote_anchor=$s,e.renderer.rules.footnote_caption=Ss,e.renderer.rules.footnote_anchor_name=Es;function o(a,c,u,f){const d=a.bMarks[c]+a.tShift[c],h=a.eMarks[c];if(d+4>h||a.src.charCodeAt(d)!==91||a.src.charCodeAt(d+1)!==94)return!1;let p;for(p=d+2;p<h;p++){if(a.src.charCodeAt(p)===32)return!1;if(a.src.charCodeAt(p)===93)break}if(p===d+2||p+1>=h||a.src.charCodeAt(++p)!==58)return!1;if(f)return!0;p++,a.env.footnotes||(a.env.footnotes={}),a.env.footnotes.refs||(a.env.footnotes.refs={});const m=a.src.slice(d+2,p-2);a.env.footnotes.refs[`:${m}`]=-1;const g=new a.Token("footnote_reference_open","",1);g.meta={label:m},g.level=a.level++,a.tokens.push(g);const w=a.bMarks[c],E=a.tShift[c],x=a.sCount[c],y=a.parentType,_=p,A=a.sCount[c]+p-(a.bMarks[c]+a.tShift[c]);let k=A;for(;p<h;){const b=a.src.charCodeAt(p);if(n(b))b===9?k+=4-k%4:k++;else break;p++}a.tShift[c]=p-_,a.sCount[c]=k-A,a.bMarks[c]=_,a.blkIndent+=4,a.parentType="footnote",a.sCount[c]<a.blkIndent&&(a.sCount[c]+=a.blkIndent),a.md.block.tokenize(a,c,u,!0),a.parentType=y,a.blkIndent-=4,a.tShift[c]=E,a.sCount[c]=x,a.bMarks[c]=w;const S=new a.Token("footnote_reference_close","",-1);return S.level=--a.level,a.tokens.push(S),!0}function r(a,c){const u=a.posMax,f=a.pos;if(f+2>=u||a.src.charCodeAt(f)!==94||a.src.charCodeAt(f+1)!==91)return!1;const d=f+2,h=t(a,f+1);if(h<0)return!1;if(!c){a.env.footnotes||(a.env.footnotes={}),a.env.footnotes.list||(a.env.footnotes.list=[]);const p=a.env.footnotes.list.length,m=[];a.md.inline.parse(a.src.slice(d,h),a.md,a.env,m);const g=a.push("footnote_ref","",0);g.meta={id:p},a.env.footnotes.list[p]={content:a.src.slice(d,h),tokens:m}}return a.pos=h+1,a.posMax=u,!0}function i(a,c){const u=a.posMax,f=a.pos;if(f+3>u||!a.env.footnotes||!a.env.footnotes.refs||a.src.charCodeAt(f)!==91||a.src.charCodeAt(f+1)!==94)return!1;let d;for(d=f+2;d<u;d++){if(a.src.charCodeAt(d)===32||a.src.charCodeAt(d)===10)return!1;if(a.src.charCodeAt(d)===93)break}if(d===f+2||d>=u)return!1;d++;const h=a.src.slice(f+2,d-1);if(typeof a.env.footnotes.refs[`:${h}`]=="undefined")return!1;if(!c){a.env.footnotes.list||(a.env.footnotes.list=[]);let p;a.env.footnotes.refs[`:${h}`]<0?(p=a.env.footnotes.list.length,a.env.footnotes.list[p]={label:h,count:0},a.env.footnotes.refs[`:${h}`]=p):p=a.env.footnotes.refs[`:${h}`];const m=a.env.footnotes.list[p].count;a.env.footnotes.list[p].count++;const g=a.push("footnote_ref","",0);g.meta={id:p,subId:m,label:h}}return a.pos=d,a.posMax=u,!0}function s(a){let c,u,f,d=!1;const h={};if(!a.env.footnotes||(a.tokens=a.tokens.filter(function(m){return m.type==="footnote_reference_open"?(d=!0,u=[],f=m.meta.label,!1):m.type==="footnote_reference_close"?(d=!1,h[":"+f]=u,!1):(d&&u.push(m),!d)}),!a.env.footnotes.list))return;const p=a.env.footnotes.list;a.tokens.push(new a.Token("footnote_block_open","",1));for(let m=0,g=p.length;m<g;m++){const w=new a.Token("footnote_open","",1);if(w.meta={id:m,label:p[m].label},a.tokens.push(w),p[m].tokens){c=[];const y=new a.Token("paragraph_open","p",1);y.block=!0,c.push(y);const _=new a.Token("inline","",0);_.children=p[m].tokens,_.content=p[m].content,c.push(_);const A=new a.Token("paragraph_close","p",-1);A.block=!0,c.push(A)}else p[m].label&&(c=h[`:${p[m].label}`]);c&&(a.tokens=a.tokens.concat(c));let E;a.tokens[a.tokens.length-1].type==="paragraph_close"?E=a.tokens.pop():E=null;const x=p[m].count>0?p[m].count:1;for(let y=0;y<x;y++){const _=new a.Token("footnote_anchor","",0);_.meta={id:m,subId:y,label:p[m].label},a.tokens.push(_)}E&&a.tokens.push(E),a.tokens.push(new a.Token("footnote_close","",-1))}a.tokens.push(new a.Token("footnote_block_close","",-1))}e.block.ruler.before("reference","footnote_def",o,{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",r),e.inline.ruler.after("footnote_inline","footnote_ref",i),e.core.ruler.after("inline","footnote_tail",s)}function Is(e){function t(o,r){const i=o.pos,s=o.src.charCodeAt(i);if(r||s!==43)return!1;const a=o.scanDelims(o.pos,!0);let c=a.length;const u=String.fromCharCode(s);if(c<2)return!1;if(c%2){const f=o.push("text","",0);f.content=u,c--}for(let f=0;f<c;f+=2){const d=o.push("text","",0);d.content=u+u,!(!a.can_open&&!a.can_close)&&o.delimiters.push({marker:s,length:0,jump:f/2,token:o.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return o.pos+=a.length,!0}function n(o,r){let i;const s=[],a=r.length;for(let c=0;c<a;c++){const u=r[c];if(u.marker!==43||u.end===-1)continue;const f=r[u.end];i=o.tokens[u.token],i.type="ins_open",i.tag="ins",i.nesting=1,i.markup="++",i.content="",i=o.tokens[f.token],i.type="ins_close",i.tag="ins",i.nesting=-1,i.markup="++",i.content="",o.tokens[f.token-1].type==="text"&&o.tokens[f.token-1].content==="+"&&s.push(f.token-1)}for(;s.length;){const c=s.pop();let u=c+1;for(;u<o.tokens.length&&o.tokens[u].type==="ins_close";)u++;u--,c!==u&&(i=o.tokens[u],o.tokens[u]=o.tokens[c],o.tokens[c]=i)}}e.inline.ruler.before("emphasis","ins",t),e.inline.ruler2.before("emphasis","ins",function(o){const r=o.tokens_meta,i=(o.tokens_meta||[]).length;n(o,o.delimiters);for(let s=0;s<i;s++)r[s]&&r[s].delimiters&&n(o,r[s].delimiters)})}function Fs(e){function t(o,r){const i=o.pos,s=o.src.charCodeAt(i);if(r||s!==61)return!1;const a=o.scanDelims(o.pos,!0);let c=a.length;const u=String.fromCharCode(s);if(c<2)return!1;if(c%2){const f=o.push("text","",0);f.content=u,c--}for(let f=0;f<c;f+=2){const d=o.push("text","",0);d.content=u+u,!(!a.can_open&&!a.can_close)&&o.delimiters.push({marker:s,length:0,jump:f/2,token:o.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return o.pos+=a.length,!0}function n(o,r){const i=[],s=r.length;for(let a=0;a<s;a++){const c=r[a];if(c.marker!==61||c.end===-1)continue;const u=r[c.end],f=o.tokens[c.token];f.type="mark_open",f.tag="mark",f.nesting=1,f.markup="==",f.content="";const d=o.tokens[u.token];d.type="mark_close",d.tag="mark",d.nesting=-1,d.markup="==",d.content="",o.tokens[u.token-1].type==="text"&&o.tokens[u.token-1].content==="="&&i.push(u.token-1)}for(;i.length;){const a=i.pop();let c=a+1;for(;c<o.tokens.length&&o.tokens[c].type==="mark_close";)c++;if(c--,a!==c){const u=o.tokens[c];o.tokens[c]=o.tokens[a],o.tokens[a]=u}}}e.inline.ruler.before("emphasis","mark",t),e.inline.ruler2.before("emphasis","mark",function(o){let r;const i=o.tokens_meta,s=(o.tokens_meta||[]).length;for(n(o,o.delimiters),r=0;r<s;r++)i[r]&&i[r].delimiters&&n(o,i[r].delimiters)})}const Rs=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Ls(e,t){const n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==126||t||o+2>=n)return!1;e.pos=o+1;let r=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){r=!0;break}e.md.inline.skipToken(e)}if(!r||o+1===e.pos)return e.pos=o,!1;const i=e.src.slice(o+1,e.pos);if(i.match(/(^|[^\\])(\\\\)*\s/))return e.pos=o,!1;e.posMax=e.pos,e.pos=o+1;const s=e.push("sub_open","sub",1);s.markup="~";const a=e.push("text","",0);a.content=i.replace(Rs,"$1");const c=e.push("sub_close","sub",-1);return c.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function Ps(e){e.inline.ruler.after("emphasis","sub",Ls)}const Os=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function zs(e,t){const n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==94||t||o+2>=n)return!1;e.pos=o+1;let r=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){r=!0;break}e.md.inline.skipToken(e)}if(!r||o+1===e.pos)return e.pos=o,!1;const i=e.src.slice(o+1,e.pos);if(i.match(/(^|[^\\])(\\\\)*\s/))return e.pos=o,!1;e.posMax=e.pos,e.pos=o+1;const s=e.push("sup_open","sup",1);s.markup="^";const a=e.push("text","",0);a.content=i.replace(Os,"$1");const c=e.push("sup_close","sup",-1);return c.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function Vs(e){e.inline.ruler.after("emphasis","sup",zs)}var js=Xi({"../../node_modules/.pnpm/markdown-it-task-checkbox@1.0.6/node_modules/markdown-it-task-checkbox/index.js":((e,t)=>{t.exports=function(g,w){w=Object.assign({},{disabled:!0,divWrap:!1,divClass:"checkbox",idPrefix:"cbx_",ulClass:"task-list",liClass:"task-list-item"},w),g.core.ruler.after("inline","github-task-lists",function(E){for(var x=E.tokens,y=0,_=2;_<x.length;_++)r(x,_)&&(i(x[_],y,w,E.Token),y+=1,n(x[_-2],"class",w.liClass),n(x[o(x,_-2)],"class",w.ulClass))})};function n(g,w,E){var x=g.attrIndex(w),y=[w,E];x<0?g.attrPush(y):g.attrs[x]=y}function o(g,w){for(var E=g[w].level-1,x=w-1;x>=0;x--)if(g[x].level===E)return x;return-1}function r(g,w){return d(g[w])&&h(g[w-1])&&p(g[w-2])&&m(g[w])}function i(g,w,E,x){var y=E.idPrefix+w;g.children[0].content=g.children[0].content.slice(3),g.children.unshift(a(y,x)),g.children.push(c(x)),g.children.unshift(s(g,y,E,x)),E.divWrap&&(g.children.unshift(u(E,x)),g.children.push(f(x)))}function s(g,w,E,x){var y=new x("checkbox_input","input",0);return y.attrs=[["type","checkbox"],["id",w]],/^\[[xX]\][ \u00A0]/.test(g.content)===!0&&y.attrs.push(["checked","true"]),E.disabled===!0&&y.attrs.push(["disabled","true"]),y}function a(g,w){var E=new w("label_open","label",1);return E.attrs=[["for",g]],E}function c(g){return new g("label_close","label",-1)}function u(g,w){var E=new w("checkbox_open","div",0);return E.attrs=[["class",g.divClass]],E}function f(g){return new g("checkbox_close","div",-1)}function d(g){return g.type==="inline"}function h(g){return g.type==="paragraph_open"}function p(g){return g.type==="list_item_open"}function m(g){return/^\[[xX \u00A0]\][ \u00A0]/.test(g.content)}})}),Ro=Yi(js()),Hs=Object.defineProperty,Gi=e=>{let t={};for(var n in e)Hs(t,n,{get:e[n],enumerable:!0});return t},Ji=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Qi=/[\0-\x1F\x7F-\x9F]/,qs=/[\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]/,ho=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,el=/[\$\+<->\^`\|~\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]/,tl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,nl=Zi({Any:()=>Ji,Cc:()=>Qi,Cf:()=>qs,P:()=>ho,S:()=>el,Z:()=>tl});function Ws(e){const t={};e=e||{},t.src_Any=Ji.source,t.src_Cc=Qi.source,t.src_Z=tl.source,t.src_P=ho.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+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="(?=$|"+n+"|"+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="(^|"+n+'|"|\\(|'+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 Gr(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Er(e){return Object.prototype.toString.call(e)}function Us(e){return Er(e)==="[object String]"}function Ks(e){return Er(e)==="[object Object]"}function Xs(e){return Er(e)==="[object RegExp]"}function Lo(e){return Er(e)==="[object Function]"}function Zs(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const rl={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ys(e){return Object.keys(e||{}).reduce(function(t,n){return t||rl.hasOwnProperty(n)},!1)}const Gs={"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}}},Js="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]",Qs="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ea(e){e.__index__=-1,e.__text_cache__=""}function ta(e){return function(t,n){const o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function Po(){return function(e,t){t.normalize(e)}}function gr(e){const t=e.re=Ws(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Js),n.push(t.src_xn),t.src_tlds=n.join("|");function o(a){return a.replace("%TLDS%",t.src_tlds)}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=[];e.__compiled__={};function i(a,c){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+c)}Object.keys(e.__schemas__).forEach(function(a){const c=e.__schemas__[a];if(c===null)return;const u={validate:null,link:null};if(e.__compiled__[a]=u,Ks(c)){Xs(c.validate)?u.validate=ta(c.validate):Lo(c.validate)?u.validate=c.validate:i(a,c),Lo(c.normalize)?u.normalize=c.normalize:c.normalize?i(a,c):u.normalize=Po();return}if(Us(c)){r.push(a);return}i(a,c)}),r.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:Po()};const s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(Zs).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","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"),ea(e)}function na(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 Jr(e,t){const n=new na(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function wt(e,t){if(!(this instanceof wt))return new wt(e,t);t||Ys(e)&&(t=e,e={}),this.__opts__=Gr({},rl,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Gr({},Gs,e),this.__compiled__={},this.__tlds__=Qs,this.__tlds_replaced__=!1,this.re={},gr(this)}wt.prototype.add=function(t,n){return this.__schemas__[t]=n,gr(this),this};wt.prototype.set=function(t){return this.__opts__=Gr(this.__opts__,t),this};wt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,o,r,i,s,a,c,u,f;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(t))!==null;)if(i=this.testSchemaAt(t,n[2],c.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=t.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=o.index+o[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(s=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};wt.prototype.pretest=function(t){return this.re.pretest.test(t)};wt.prototype.testSchemaAt=function(t,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,o,this):0};wt.prototype.match=function(t){const n=[];let o=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Jr(this,o)),o=this.__last_index__);let r=o?t.slice(o):t;for(;this.test(r);)n.push(Jr(this,o)),r=r.slice(this.__last_index__),o+=this.__last_index__;return n.length?n:null};wt.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const o=this.testSchemaAt(t,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,Jr(this,0)):null};wt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(o,r,i){return o!==i[r-1]}).reverse(),gr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,gr(this),this)};wt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};wt.prototype.onCompile=function(){};var ol=wt,ra=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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ቻDzኀ\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ǣጓ\0y;䐎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;䅻Dzᕔ\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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ƀ;oș᳔ndĀ;ș᳑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;ẝẤijạả;怄;怅怃Ā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;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱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ↄⅪ←ٖ↛ǰ↉\0proø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⧓ସdz⧟\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᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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㚆㚝㚵㚼Dz㚋\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))),oa=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),qr;const ia=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]]),la=(qr=String.fromCodePoint)!==null&&qr!==void 0?qr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function sa(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ia.get(e))!==null&&t!==void 0?t:e}var Ke;(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"})(Ke||(Ke={}));const aa=32;var Qt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Qt||(Qt={}));function Qr(e){return e>=Ke.ZERO&&e<=Ke.NINE}function ca(e){return e>=Ke.UPPER_A&&e<=Ke.UPPER_F||e>=Ke.LOWER_A&&e<=Ke.LOWER_F}function ua(e){return e>=Ke.UPPER_A&&e<=Ke.UPPER_Z||e>=Ke.LOWER_A&&e<=Ke.LOWER_Z||Qr(e)}function da(e){return e===Ke.EQUALS||ua(e)}var We;(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"})(We||(We={}));var Jt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Jt||(Jt={}));var fa=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=We.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Jt.Strict}startEntity(e){this.decodeMode=e,this.state=We.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case We.EntityStart:return e.charCodeAt(t)===Ke.NUM?(this.state=We.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=We.NamedEntity,this.stateNamedEntity(e,t));case We.NumericStart:return this.stateNumericStart(e,t);case We.NumericDecimal:return this.stateNumericDecimal(e,t);case We.NumericHex:return this.stateNumericHex(e,t);case We.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|aa)===Ke.LOWER_X?(this.state=We.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=We.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(Qr(o)||ca(o))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const o=e.charCodeAt(t);if(Qr(o))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ke.SEMI)this.consumed+=1;else if(this.decodeMode===Jt.Strict)return 0;return this.emitCodePoint(sa(this.result),this.consumed),this.errors&&(e!==Ke.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&Qt.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const i=e.charCodeAt(t);if(this.treeIndex=ha(n,o,this.treeIndex+Math.max(1,r),i),this.treeIndex<0)return this.result===0||this.decodeMode===Jt.Attribute&&(r===0||da(i))?0:this.emitNotTerminatedNamedEntity();if(o=n[this.treeIndex],r=(o&Qt.VALUE_LENGTH)>>14,r!==0){if(i===Ke.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==Jt.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]&Qt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,o,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:o}=this;return this.emitCodePoint(t===1?o[e]&~Qt.VALUE_LENGTH:o[e+1],n),t===3&&this.emitCodePoint(o[e+2],n),n}end(){var e;switch(this.state){case We.NamedEntity:return this.result!==0&&(this.decodeMode!==Jt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case We.NumericDecimal:return this.emitNumericEntity(0,2);case We.NumericHex:return this.emitNumericEntity(0,3);case We.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case We.EntityStart:return 0}}};function il(e){let t="";const n=new fa(e,o=>t+=la(o));return function(r,i){let s=0,a=0;for(;(a=r.indexOf("&",a))>=0;){t+=r.slice(s,a),n.startEntity(i);const u=n.write(r,a+1);if(u<0){s=a+n.end();break}s=a+u,a=u===0?s+1:s}const c=t+r.slice(s);return t="",c}}function ha(e,t,n,o){const r=(t&Qt.BRANCH_LENGTH)>>7,i=t&Qt.JUMP_TABLE;if(r===0)return i!==0&&o===i?n:-1;if(i){const c=o-i;return c<0||c>=r?-1:e[n+c]-1}let s=n,a=s+r-1;for(;s<=a;){const c=s+a>>>1,u=e[c];if(u<o)s=c+1;else if(u>o)a=c-1;else return e[c+r]}return-1}const pa=il(ra);il(oa);function ma(e,t=Jt.Legacy){return pa(e,t)}const Oo={};function ga(e){let t=Oo[e];if(t)return t;t=Oo[e]=[];for(let n=0;n<128;n++){const o=String.fromCharCode(n);t.push(o)}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 Sr(e,t){typeof t!="string"&&(t=Sr.defaultChars);const n=ga(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(o){let r="";for(let i=0,s=o.length;i<s;i+=3){const a=parseInt(o.slice(i+1,i+3),16);if(a<128){r+=n[a];continue}if((a&224)===192&&i+3<s){const c=parseInt(o.slice(i+4,i+6),16);if((c&192)===128){const u=a<<6&1984|c&63;u<128?r+="��":r+=String.fromCharCode(u),i+=3;continue}}if((a&240)===224&&i+6<s){const c=parseInt(o.slice(i+4,i+6),16),u=parseInt(o.slice(i+7,i+9),16);if((c&192)===128&&(u&192)===128){const f=a<<12&61440|c<<6&4032|u&63;f<2048||f>=55296&&f<=57343?r+="���":r+=String.fromCharCode(f),i+=6;continue}}if((a&248)===240&&i+9<s){const c=parseInt(o.slice(i+4,i+6),16),u=parseInt(o.slice(i+7,i+9),16),f=parseInt(o.slice(i+10,i+12),16);if((c&192)===128&&(u&192)===128&&(f&192)===128){let d=a<<18&1835008|c<<12&258048|u<<6&4032|f&63;d<65536||d>1114111?r+="����":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}}r+="�"}return r})}Sr.defaultChars=";/?:@&=+$,#";Sr.componentChars="";var eo=Sr;const zo={};function ka(e){let t=zo[e];if(t)return t;t=zo[e]=[];for(let n=0;n<128;n++){const o=String.fromCharCode(n);/^[0-9a-z]$/i.test(o)?t.push(o):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Mr(e,t,n){typeof t!="string"&&(n=t,t=Mr.defaultChars),typeof n=="undefined"&&(n=!0);const o=ka(t);let r="";for(let i=0,s=e.length;i<s;i++){const a=e.charCodeAt(i);if(n&&a===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){r+=e.slice(i,i+3),i+=2;continue}if(a<128){r+=o[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1<s){const c=e.charCodeAt(i+1);if(c>=56320&&c<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}Mr.defaultChars=";/?:@&=+$,-_.!~*'()#";Mr.componentChars="-_.!~*'()";var ll=Mr;function po(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function kr(){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 va=/^([a-z0-9.+-]+:)/i,wa=/:[0-9]*$/,ya=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,xa=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
9
|
-
`," "]),ba=["'"].concat(xa),Vo=["%","/","?",";","#"].concat(ba),jo=["/","?","#"],_a=255,Ho=/^[+a-z0-9A-Z_-]{0,63}$/,Ca=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,qo={javascript:!0,"javascript:":!0},Wo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ea(e,t){if(e&&e instanceof
|
|
10
|
-
`,n+1))!==-1;)t++;return t}function
|
|
11
|
-
`);t=t.replace(lc,"�"),e.src=t}function ac(e){var t,n;(n=(t=e.md)==null?void 0:t.options)!=null&&n.typographer&&(e.tokens||[]).forEach(o=>{o.type==="inline"&&Array.isArray(o.children)&&o.children.forEach(r=>{r.type==="text"&&typeof r.content=="string"&&(r.content=r.content.replace(/\.\.\./g,"…").replace(/---/g,"—").replace(/--/g,"–"))})})}var cc=class{constructor(){
|
|
12
|
-
`,i.map=[t,e.line],!0}function kc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const s=e.src.charCodeAt(r);if(s!==126&&s!==96)return!1;let a=r;r=e.skipChars(r,s);let c=r-a;if(c<3)return!1;const u=e.src.slice(a,r),f=e.src.slice(r,i);if(s===96&&f.includes(String.fromCharCode(s)))return!1;if(o)return!0;let d=t,h=!1;for(;d++,!(d>=n||(r=a=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],r<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===s&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,s),!(r-a<c)&&(r=e.skipSpaces(r),!(r<i)))){h=!0;break}c=e.sCount[t],e.line=d+(h?1:0);const p=e.push("fence","code",0);return p.info=f,p.content=e.getLines(t+1,d,c,!0),p.markup=u,p.map=[t,e.line],!0}function Xo(e){switch(e){case 9:case 32:return!0}return!1}function vc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(r);if(s!==35||r>=i)return!1;let a=1;for(s=e.src.charCodeAt(++r);s===35&&r<i&&a<=6;)a++,s=e.src.charCodeAt(++r);if(a>6||r<i&&!Xo(s))return!1;if(o)return!0;i=e.skipSpacesBack(i,r);const c=e.skipCharsBack(i,35,r);c>r&&Xo(e.src.charCodeAt(c-1))&&(i=c),e.line=t+1;const u=e.push("heading_open",`h${String(a)}`,1);u.markup="########".slice(0,a),u.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(r,i).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close",`h${String(a)}`,-1);return d.markup="########".slice(0,a),!0}function wc(e){switch(e){case 9:case 32:return!0}return!1}function yc(e,t,n,o){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;i<r;){const u=e.src.charCodeAt(i++);if(u!==s&&!wc(u))return!1;u===s&&a++}if(a<3)return!1;if(o)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=new Array(a+1).join(String.fromCharCode(s)),!0}var xc=["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 bc=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,_c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Cc=new RegExp(`^(?:${bc}|${_c})`),Cn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp(`^</?(${xc.join("|")})(?=(\\s|/?>|$))`,"i"),/^$/,!0],[new RegExp(`${Cc.source}\\s*$`),/^$/,!1]];function Ec(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let s=e.src.slice(r,i),a=0;for(;a<Cn.length&&!Cn[a][0].test(s);a++);if(a===Cn.length)return!1;if(o)return Cn[a][2];let c=t+1;if(!Cn[a][1].test(s)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(r=e.bMarks[c]+e.tShift[c],i=e.eMarks[c],s=e.src.slice(r,i),Cn[a][1].test(s)){s.length!==0&&c++;break}}e.line=c;const u=e.push("html_block","",0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Sc(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 i=0,s,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let p=e.bMarks[a]+e.tShift[a];const m=e.eMarks[a];if(p<m&&(s=e.src.charCodeAt(p),(s===45||s===61)&&(p=e.skipChars(p,s),p=e.skipSpaces(p),p>=m))){i=s===61?1:2;break}}if(e.sCount[a]<0)continue;let h=!1;for(let p=0,m=o.length;p<m;p++)if(o[p](e,a,n,!0)){h=!0;break}if(h)break}if(!i)return!1;const c=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;const u=e.push("heading_open",`h${String(i)}`,1);u.markup=String.fromCharCode(s),u.map=[t,e.line];const f=e.push("inline","",0);f.content=c,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close",`h${String(i)}`,-1);return d.markup=String.fromCharCode(s),e.parentType=r,!0}function wl(e){switch(e){case 9:case 32:return!0}return!1}function Zo(e,t){const n=e.eMarks[t];let o=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(o++);return r!==42&&r!==45&&r!==43||o<n&&!wl(e.src.charCodeAt(o))?-1:o}function Yo(e,t){const n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];let r=n;if(r+1>=o)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=o)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<o&&(i=e.src.charCodeAt(r),!wl(i))?-1:r}function Mc(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&&e.tokens[o].type==="paragraph_open"&&(e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2)}function Ac(e,t,n,o){let r,i,s=0,a=t,c=!0;if(e.sCount[a]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[a]-e.listIndent>=4&&e.sCount[a]<e.blkIndent)return!1;let u=!1;o&&e.parentType==="paragraph"&&e.sCount[a]>=e.blkIndent&&(u=!0);let f,d,h;if((h=Yo(e,a))>=0){if(f=!0,s=e.bMarks[a]+e.tShift[a],d=Number(e.src.slice(s,h-1)),u&&d!==1)return!1}else if((h=Zo(e,a))>=0)f=!1;else return!1;if(u&&e.skipSpaces(h)>=e.eMarks[a])return!1;if(o)return!0;const p=e.src.charCodeAt(h-1),m=e.tokens.length;if(f){const y=e.push("ordered_list_open","ol",1);d!==void 0&&d!==1&&(y.attrs=[["start",String(d)]])}else e.push("bullet_list_open","ul",1);const g=[a,0];e.tokens[e.tokens.length-1].map=g,e.tokens[e.tokens.length-1].markup=String.fromCharCode(p);let w=!1;const E=e.md.block.ruler.getRules("list"),x=e.parentType;for(e.parentType="list";a<n;){i=h,r=e.eMarks[a];const y=e.sCount[a]+h-(e.bMarks[a]+e.tShift[a]);let _=y;for(;i<r;){const P=e.src.charCodeAt(i);if(P===9)_+=4-(_+e.bsCount[a])%4;else if(P===32)_++;else break;i++}const A=i;let k;A>=r?k=1:k=_-y,k>4&&(k=1);const S=y+k,b=e.push("list_item_open","li",1);b.markup=String.fromCharCode(p);const T=[a,0];b.map=T,f&&(b.info=e.src.slice(s,h-1));const H=e.tight,R=e.tShift[a],L=e.sCount[a],W=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=S,e.tight=!0,e.tShift[a]=A-e.bMarks[a],e.sCount[a]=_,A>=r&&e.isEmpty(a+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,a,n,!0),(!e.tight||w)&&(c=!1),w=e.line-a>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=W,e.tShift[a]=R,e.sCount[a]=L,e.tight=H,e.push("list_item_close","li",-1).markup=String.fromCharCode(p),a=e.line,T[1]=a,a>=n||e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)break;let K=!1;for(let P=0,N=E.length;P<N;P++)if(E[P](e,a,n,!0)){K=!0;break}if(K)break;if(f){if(h=Yo(e,a),h<0)break;s=e.bMarks[a]+e.tShift[a]}else if(h=Zo(e,a),h<0)break;if(p!==e.src.charCodeAt(h-1))break}return f?e.push("ordered_list_close","ol",-1).markup=String.fromCharCode(p):e.push("bullet_list_close","ul",-1).markup=String.fromCharCode(p),g[1]=a,e.line=a,e.parentType=x,c&&Mc(e,m),!0}function Bc(e,t,n){const o=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let u=!1;for(let f=0,d=o.length;f<d;f++)if(o[f](e,i,n,!0)){u=!0;break}if(u)break}const s=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i;const a=e.push("paragraph_open","p",1);a.map=[t,e.line];const c=e.push("inline","",0);return c.content=s,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}function ir(e){switch(e){case 9:case 32:return!0}return!1}function Dc(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ".toLowerCase()&&(e=e.toLowerCase()),e.toLowerCase().toUpperCase().toLowerCase()}function Tc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function a(x){const y=e.lineMax;if(x>=y||e.isEmpty(x))return null;let _=!1;if(e.sCount[x]-e.blkIndent>3&&(_=!0),e.sCount[x]<0&&(_=!0),!_){const S=e.md.block.ruler.getRules("reference"),b=e.parentType;e.parentType="reference";let T=!1;for(let H=0,R=S.length;H<R;H++)if(S[H](e,x,y,!0)){T=!0;break}if(e.parentType=b,T)return null}const A=e.bMarks[x]+e.tShift[x],k=e.eMarks[x];return e.src.slice(A,k+1)}let c=e.src.slice(r,i+1);i=c.length;let u=-1;for(r=1;r<i;r++){const x=c.charCodeAt(r);if(x===91)return!1;if(x===93){u=r;break}else if(x===10){const y=a(s);y!==null&&(c+=y,i=c.length,s++)}else if(x===92&&(r++,r<i&&c.charCodeAt(r)===10)){const y=a(s);y!==null&&(c+=y,i=c.length,s++)}}if(u<0||c.charCodeAt(u+1)!==58)return!1;for(r=u+2;r<i;r++){const x=c.charCodeAt(r);if(x===10){const y=a(s);y!==null&&(c+=y,i=c.length,s++)}else if(!ir(x))break}const f=e.md.helpers.parseLinkDestination(c,r,i);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;r=f.pos;const h=r,p=s,m=r;for(;r<i;r++){const x=c.charCodeAt(r);if(x===10){const y=a(s);y!==null&&(c+=y,i=c.length,s++)}else if(!ir(x))break}let g=e.md.helpers.parseLinkTitle(c,r,i);for(;g.can_continue;){const x=a(s);if(x===null)break;c+=x,r=i,i=c.length,s++,g=e.md.helpers.parseLinkTitle(c,r,i,g)}let w;for(r<i&&m!==r&&g.ok?(w=g.str,r=g.pos):(w="",r=h,s=p);r<i&&ir(c.charCodeAt(r));)r++;if(r<i&&c.charCodeAt(r)!==10&&w)for(w="",r=h,s=p;r<i&&ir(c.charCodeAt(r));)r++;if(r<i&&c.charCodeAt(r)!==10)return!1;const E=Dc(c.slice(1,u));return E?(o||(typeof e.env.references=="undefined"&&(e.env.references={}),typeof e.env.references[E]=="undefined"&&(e.env.references[E]={title:w,href:d}),e.line=s),!0):!1}function Wr(e){switch(e){case 9:case 32:return!0}return!1}const $c=65536;function Ur(e,t){const n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(n,o)}function Go(e){const t=[],n=e.length;let o=0,r=e.charCodeAt(o),i=!1,s=0,a="";for(;o<n;)r===124&&(i?(a+=e.substring(s,o-1),s=o):(t.push(a+e.substring(s,o)),a="",s=o+1)),i=r===92,o++,r=e.charCodeAt(o);return t.push(a+e.substring(s)),t}function Nc(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 i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[r])return!1;const a=e.src.charCodeAt(i++);if(a!==124&&a!==45&&a!==58&&!Wr(a)||s===45&&Wr(a))return!1;for(;i<e.eMarks[r];){const _=e.src.charCodeAt(i);if(_!==124&&_!==45&&_!==58&&!Wr(_))return!1;i++}let c=Ur(e,t+1),u=c.split("|");const f=[];for(let _=0;_<u.length;_++){const A=u[_].trim();if(!A){if(_===0||_===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(A))return!1;A.charCodeAt(A.length-1)===58?f.push(A.charCodeAt(0)===58?"center":"right"):A.charCodeAt(0)===58?f.push("left"):f.push("")}if(c=Ur(e,t).trim(),!c.includes("|")||e.sCount[t]-e.blkIndent>=4)return!1;u=Go(c),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const d=u.length;if(d===0||d!==f.length)return!1;if(o)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g;const w=e.push("thead_open","thead",1);w.map=[t,t+1];const E=e.push("tr_open","tr",1);E.map=[t,t+1];for(let _=0;_<u.length;_++){const A=e.push("th_open","th",1);f[_]&&(A.attrs=[["style",`text-align:${f[_]}`]]);const k=e.push("inline","",0);k.content=u[_].trim(),k.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let x,y=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let _=!1;for(let k=0,S=p.length;k<S;k++)if(p[k](e,r,n,!0)){_=!0;break}if(_||(c=Ur(e,r).trim(),!c)||e.sCount[r]-e.blkIndent>=4||(u=Go(c),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),y+=d-u.length,y>$c))break;if(r===t+2){const k=e.push("tbody_open","tbody",1);k.map=x=[t+2,0]}const A=e.push("tr_open","tr",1);A.map=[r,r+1];for(let k=0;k<d;k++){const S=e.push("td_open","td",1);f[k]&&(S.attrs=[["style",`text-align:${f[k]}`]]);const b=e.push("inline","",0);b.content=u[k]?u[k].trim():"",b.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return x&&(e.push("tbody_close","tbody",-1),x[1]=r),e.push("table_close","table",-1),g[1]=r,e.parentType=h,e.line=r,!0}var Ic=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:(n==null?void 0:n.alt)||[]}),this.invalidateCache()}before(e,t,n,o){const r=this._rules.findIndex(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this._rules.findIndex(s=>s.name===t);i>=0&&this._rules.splice(i,1),this._rules.splice(r,0,{name:t,enabled:!0,fn:n,alt:(o==null?void 0:o.alt)||[]}),this.invalidateCache()}after(e,t,n,o){const r=this._rules.findIndex(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this._rules.findIndex(s=>s.name===t);i>=0&&this._rules.splice(i,1),this._rules.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:(o==null?void 0:o.alt)||[]}),this.invalidateCache()}getRules(e){var n;const t=e||"";return this.cache||this.compileCache(),(n=this.cache.get(t))!=null?n:[]}at(e,t,n){const o=this._rules.findIndex(r=>r.name===e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this._rules[o].fn=t,n!=null&&n.alt&&(this._rules[o].alt=n.alt),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{const i=this._rules.findIndex(s=>s.name===r);if(i===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${r}`)}this._rules[i].enabled||(this._rules[i].enabled=!0,o.push(r))}),o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{const i=this._rules.findIndex(s=>s.name===r);if(i===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${r}`)}this._rules[i].enabled&&(this._rules[i].enabled=!1,o.push(r))}),o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const o of this._rules){const r=t.has(o.name);o.enabled!==r&&(o.enabled=r,n=!0)}n&&this.invalidateCache()}compileCache(){const e=new Set([""]);for(const n of this._rules)if(n.enabled)for(const o of n.alt)e.add(o);const t=new Map;for(const n of e){const o=[];for(const r of this._rules)r.enabled&&(n!==""&&!r.alt.includes(n)||o.push(r.fn));t.set(n,o)}this.cache=t}};function lr(e){switch(e){case 9:case 32:return!0}return!1}var Fc=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=mt;const r=this.src;let i=0,s=0,a=0,c=!1;for(let u=0,f=r.length;u<f;u++){const d=r.charCodeAt(u);if(!c)if(lr(d)){i++,d===9?s+=4-s%4:s++;continue}else c=!0;(d===10||u===f-1)&&(d!==10&&u++,this.bMarks.push(a),this.eMarks.push(u),this.tShift.push(i),this.sCount.push(s),this.bsCount.push(0),c=!1,i=0,s=0,a=u+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 mt(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&&lr(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!lr(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 i=0,s=e;s<t;s++,i++){let a=0;const c=this.bMarks[s];let u=c,f;for(s+1<t||o?f=this.eMarks[s]+1:f=this.eMarks[s];u<f&&a<n;){const d=this.src.charCodeAt(u);if(lr(d))d===9?a+=4-(a+this.bsCount[s])%4:a++;else if(u-c<this.tShift[s])a++;else break;u++}a>n?r[i]=new Array(a-n+1).join(" ")+this.src.slice(u,f):r[i]=this.src.slice(u,f)}return r.join("")}};const sr=[["table",Nc,["paragraph","reference"]],["code",gc],["fence",kc,["paragraph","reference","blockquote","list"]],["blockquote",mc,["paragraph","reference","blockquote","list"]],["hr",yc,["paragraph","reference","blockquote","list"]],["list",Ac,["paragraph","reference","blockquote"]],["reference",Tc],["html_block",Ec,["paragraph","reference","blockquote"]],["heading",vc,["paragraph","reference","blockquote"]],["lheading",Sc],["paragraph",Bc]];var Rc=class{constructor(){X(this,"ruler");this.ruler=new Ic;for(let e=0;e<sr.length;e++)this.ruler.push(sr[e][0],sr[e][1],{alt:(sr[e][2]||[]).slice()})}tokenize(e,t,n){const o=this.ruler.getRules(""),r=o.length,i=e.md.options.maxNesting;let s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=i){e.line=n;break}const c=e.line;let u=!1;for(let f=0;f<r;f++)if(u=o[f](e,s,n,!1),u){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!u)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}}parse(e,t,n,o){if(!e)return;const r=new Fc(e,t,n,o);this.tokenize(r,r.line,r.lineMax)}};const Lc=/^[\w.!#$%&'*+/=?^`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,Pc=/^[a-z][a-z0-9+.-]{1,31}:[^<>\x00-\x20]*$/i;function Oc(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const o=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const i=e.src.slice(o+1,n);if(Pc.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const u=e.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return e.pos+=i.length+2,!0}if(Lc.test(i)){const s=e.md.normalizeLink(`mailto:${i}`);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const u=e.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return e.pos+=i.length+2,!0}return!1}var zc=Oc;function Vc(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const r=e.posMax;for(;n<r&&e.src.charCodeAt(n)===96;)n++;const i=e.src.slice(o,n),s=i.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=i),e.pos+=s,!0;let a=n,c;for(;(c=e.src.indexOf("`",a))!==-1;){for(a=c+1;a<r&&e.src.charCodeAt(a)===96;)a++;const u=a-c;if(u===s){if(!t){const f=e.push("code_inline","code",0);f.markup=i,f.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[u]=c}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}var jc=Vc;function Jo(e){const t={},n=e.length;if(!n)return;let o=0,r=-2;const i=[];for(let s=0;s<n;s++){const a=e[s];if(i.push(0),(e[o].marker!==a.marker||r!==a.token-1)&&(o=s),r=a.token,a.length=a.length||0,!a.close)continue;Object.prototype.hasOwnProperty.call(t,a.marker)||(t[a.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[a.marker][(a.open?3:0)+a.length%3];let u=o-i[o]-1,f=u;for(;u>c;u-=i[u]+1){const d=e[u];if(d.marker===a.marker&&d.open&&d.end<0){let h=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(h=!0),!h){const p=u>0&&!e[u-1].open?i[u-1]+1:0;i[s]=s-u+p,i[u]=p,a.open=!1,d.end=s,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=f)}}function Hc(e){const t=e.tokens_meta,n=e.tokens_meta.length;Jo(e.delimiters);for(let o=0;o<n;o++)t[o]&&t[o].delimiters&&Jo(t[o].delimiters)}var qc=Hc;function Wc(e,t){const n=e.pos,o=e.src.charCodeAt(n);if(t||o!==95&&o!==42)return!1;const r=e.scanDelims(e.pos,o===42);if(!r||r.length===0)return!1;for(let i=0;i<r.length;i++){const s=e.push("text","",0);s.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 Qo(e,t){const n=t.length;for(let o=n-1;o>=0;o--){const r=t[o];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],s=o>0&&t[o-1].end===r.end+1&&t[o-1].marker===r.marker&&t[o-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),c=e.tokens[r.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?a+a:a,c.content="";const u=e.tokens[i.token];u.type=s?"strong_close":"em_close",u.tag=s?"strong":"em",u.nesting=-1,u.markup=s?a+a:a,u.content="",s&&(e.tokens[t[o-1].token].content="",e.tokens[t[r.end+1].token].content="",o--)}}function Uc(e){const t=e.tokens_meta,n=e.tokens_meta.length;Qo(e,e.delimiters);for(let o=0;o<n;o++)t[o]&&t[o].delimiters&&Qo(e,t[o].delimiters)}const ei={tokenize:Wc,postProcess:Uc},Kc=/^&#(x[a-f0-9]{1,6}|\d{1,7});/i,Xc=/^&([a-z][a-z0-9]{1,31});/i,ti={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};function Zc(e){return!(e>=55296&&e<=57343||e>=1114111)}function ni(e){return String.fromCodePoint(e)}function Yc(e){const t=e.match(/^&([a-z][a-z0-9]{1,31});/i);return t&&ti[t[1]]?ti[t[1]]:e}function Gc(e,t){const n=e.pos,o=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=o)return!1;if(e.src.charCodeAt(n+1)===35){const r=e.src.slice(n).match(Kc);if(r){if(!t){const i=r[1][0].toLowerCase()==="x"?Number.parseInt(r[1].slice(1),16):Number.parseInt(r[1],10),s=e.push("text_special","",0);s.content=Zc(i)?ni(i):ni(65533),s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Xc);if(r){const i=Yc(r[0]);if(i!==r[0]){if(!t){const s=e.push("text_special","",0);s.content=i,s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}}return!1}var Jc=Gc;const Qc=[92,96,42,95,123,125,91,93,40,41,35,43,45,46,33,124];function eu(e,t){const{pos:n,posMax:o,src:r}=e;if(r.charCodeAt(n)!==92)return!1;const i=n+1;if(i>=o)return!1;const s=r.charCodeAt(i);return s===10?(t||e.push("hardbreak","br",0),e.pos+=2,!0):s<128&&Qc.includes(s)?(t||(e.pending+=r[i]),e.pos+=2,!0):!1}var tu=eu;function nu(e){var s;let t,n,o=0;const r=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++){const a=r[t];a&&(a.nesting&&a.nesting<0&&o--,a.level=o,a.nesting&&a.nesting>0&&o++,a.type==="text"&&t+1<i&&((s=r[t+1])==null?void 0:s.type)==="text"?r[t+1].content=a.content+r[t+1].content:(t!==n&&(r[n]=a),n++))}t!==n&&(r.length=n)}var ru=nu;const ou=/^<\/?[a-z][a-z0-9-]*(?:\s+[a-z_:][\w:.-]*(?:\s*=\s*(?:[^"'=<>`\s]+|'[^']*'|"[^"]*"))?)*\s*\/?>/i;function iu(e){return/^<a[>\s]/i.test(e)}function lu(e){return/^<\/a\s*>/i.test(e)}function su(e){const t=e|32;return t>=97&&t<=122}function au(e,t){if(!e.md.options.html)return!1;const n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==60||o+2>=n)return!1;const r=e.src.charCodeAt(o+1);if(r!==33&&r!==63&&r!==47&&!su(r))return!1;const i=e.src.slice(o).match(ou);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],iu(s.content)&&e.linkLevel++,lu(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}var cu=au;function uu(e,t){let n,o,r,i,s,a,c,u,f="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=vr(e,e.pos+1,!1);if(m<0)return!1;if(i=m+1,i<h&&e.src.charCodeAt(i)===40){for(i++;i<h&&(n=e.src.charCodeAt(i),!(n!==32&&n!==10));i++);if(i>=h)return!1;if(u=i,a=hl(e.src,i,e.posMax),a.ok){for(f=e.md.normalizeLink(a.str),e.md.validateLink(f)?i=a.pos:f="";i<h&&(n=e.src.charCodeAt(i),!(n!==32&&n!==10));i++);if(a=pl(e.src,i,e.posMax),i<h&&a.ok)for(c=a.str,i=a.pos;i<h&&(n=e.src.charCodeAt(i),!(n!==32&&n!==10));i++);else c=""}if(i>=h||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references=="undefined")return!1;if(i<h&&e.src.charCodeAt(i)===91?(u=i+1,i=vr(e,i),i>=0?r=e.src.slice(u,i++):i=m+1):i=m+1,r||(r=e.src.slice(p,m)),s=e.env.references[r&&r.toLowerCase()],!s)return e.pos=d,!1;f=s.href,c=s.title}if(!t){o=e.src.slice(p,m);const g=[];e.md.inline.parse(o,e.md,e.env,g);const w=e.push("image","img",0);w.attrs=[["src",f],["alt",""]],w.children=g,w.content=o,c&&w.attrs.push(["title",c])}return e.pos=i,e.posMax=h,!0}var du=uu;function fu(e,t){let n,o,r,i,s="",a="",c=e.pos,u=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,h=e.pos+1,p=vr(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(u=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);if(m>=d)return!1;if(c=m,r=hl(e.src,m,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?m=r.pos:s="";m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);if(r=pl(e.src,m,e.posMax),m<d&&r.ok)for(a=r.str,m=r.pos;m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(u=!0),m++}if(u){if(typeof e.env.references=="undefined")return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=vr(e,m),m>=0?o=e.src.slice(c,m++):m=p+1):m=p+1,o||(o=e.src.slice(h,p)),i=e.env.references[o&&o.toLowerCase()],!i)return e.pos=f,!1;s=i.href,a=i.title}if(!t){e.pos=h,e.posMax=p;const g=e.push("link_open","a",1),w=[["href",s]];g.attrs=w,a&&w.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}var hu=fu;const pu=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function mu(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,o=e.posMax;if(n+3>o||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(pu);if(!r)return!1;const i=r[1],s=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!s)return!1;let a=s.url;if(a.length<=i.length)return!1;a=a.replace(/\*+$/,"");const c=e.md.normalizeLink(a);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const u=e.push("link_open","a",1);u.attrs=[["href",c]],u.markup="linkify",u.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(a);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=a.length-i.length,!0}function gu(e,t){const{pos:n,src:o,posMax:r}=e;if(o.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,s=r;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let a=i-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),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<s&&o.charCodeAt(e.pos)===32;)e.pos++;return!0}var ku=gu;function vu(e,t){const n=e.pos,o=e.src.charCodeAt(n);if(t||o!==126)return!1;const r=e.scanDelims(e.pos,!0);if(!r)return!1;let i=r.length;const s=String.fromCharCode(o);if(i<2)return!1;let a;i%2&&(a=e.push("text","",0),a.content=s,i--);for(let c=0;c<i;c+=2)a=e.push("text","",0),a.content=s+s,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 ri(e,t){let n;const o=[],r=t.length;for(let i=0;i<r;i++){const s=t[i];if(s.marker!==126||s.end===-1)continue;const a=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[a.token-1].type==="text"&&e.tokens[a.token-1].content==="~"&&o.push(a.token-1)}for(;o.length;){const i=o.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=n)}}function wu(e){const t=e.delimiters;ri(e,t);const n=e.tokens_meta;if(n)for(let o=0;o<n.length;o++)n[o]&&n[o].delimiters&&ri(e,n[o].delimiters)}const oi={tokenize:vu,postProcess:wu};function yu(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 xu(e,t){let n=e.pos;for(;n<e.posMax&&!yu(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var bu=xu,ii=class{constructor(){X(this,"rules",[]);X(this,"cache",null)}invalidateCache(){this.cache=null}push(e,t,n){const o=this.rules.findIndex(r=>r.name===e);o>=0&&this.rules.splice(o,1),this.rules.push({name:e,fn:t,alt:(n==null?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(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this.rules.findIndex(s=>s.name===t);i>=0&&this.rules.splice(i,1),this.rules.splice(r,0,{name:t,fn:n,alt:(o==null?void 0:o.alt)||[],enabled:!0}),this.invalidateCache()}after(e,t,n,o){const r=this.rules.findIndex(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this.rules.findIndex(s=>s.name===t);i>=0&&this.rules.splice(i,1),this.rules.splice(r+1,0,{name:t,fn:n,alt:(o==null?void 0:o.alt)||[],enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const r of n){const i=this.rules.findIndex(s=>s.name===r);if(i<0){if(!t)throw new Error(`Rules manager: invalid rule name ${r}`);continue}this.rules[i].enabled||(this.rules[i].enabled=!0,o.push(r))}return o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const r of n){const i=this.rules.findIndex(s=>s.name===r);if(i<0){if(!t)throw new Error(`Rules manager: invalid rule name ${r}`);continue}this.rules[i].enabled&&(this.rules[i].enabled=!1,o.push(r))}return o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const o of this.rules){const r=t.has(o.name);o.enabled!==r&&(o.enabled=r,n=!0)}n&&this.invalidateCache()}getRules(e){var n;const t=e||"";return this.cache||this.compileCache(),(n=this.cache.get(t))!=null?n:[]}compileCache(){var n;const e=new Set([""]);for(const o of this.rules)if(o.enabled&&o.alt)for(const r of o.alt)e.add(r);const t=new Map;for(const o of e){const r=[];for(const i of this.rules)i.enabled&&(o!==""&&!((n=i.alt)!=null&&n.includes(o))||r.push(i.fn));t.set(o,r)}this.cache=t}},_u=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=mt}pushPending(){const e=new mt("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 mt(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 i=e,s=0;for(;i<o&&n.charCodeAt(i)===r;)s++,i++;if(s<1)return null;const a=e>0?n.charCodeAt(e-1):32,c=i<o?n.charCodeAt(i):32,u=a===32||a===10,f=c===32||c===10,d=a===32,h=c===32;let p=!0,m=!0;return h?p=!1:f&&(d||u||(p=!1)),d?m=!1:u&&(h||f||(m=!1)),t||(p=p&&(!u||d),m=m&&(!f||h)),{can_open:p,can_close:m,length:s}}},Cu=class{constructor(){X(this,"ruler");X(this,"ruler2");this.ruler=new ii,this.ruler2=new ii,this.ruler.push("text",bu),this.ruler.push("linkify",mu),this.ruler.push("newline",ku),this.ruler.push("escape",tu),this.ruler.push("backticks",jc),this.ruler.push("strikethrough",oi.tokenize),this.ruler.push("emphasis",ei.tokenize),this.ruler.push("link",hu),this.ruler.push("image",du),this.ruler.push("autolink",zc),this.ruler.push("html_inline",cu),this.ruler.push("entity",Jc),this.ruler2.push("balance_pairs",qc),this.ruler2.push("strikethrough",oi.postProcess),this.ruler2.push("emphasis",ei.postProcess),this.ruler2.push("fragments_join",ru)}skipToken(e){var a,c;const t=e.pos,n=this.ruler.getRules(""),o=n.length,r=e.posMax,i=((c=(a=e.md)==null?void 0:a.options)==null?void 0:c.maxNesting)||100;if(typeof e.cache[t]!="undefined"){e.pos=e.cache[t];return}let s=!1;if(e.level<i){for(let u=0;u<o;u++)if(e.level++,s=n[u](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=r;s||e.pos++,e.cache[t]=e.pos}tokenize(e){var i,s;const t=this.ruler.getRules(""),n=t.length,o=e.posMax,r=((s=(i=e.md)==null?void 0:i.options)==null?void 0:s.maxNesting)||100;for(;e.pos<o;){const a=e.pos;let c=!1;if(e.level<r){for(let u=0;u<n;u++)if(c=t[u](e,!1),c){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(c){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,o){const r=new _u(e,t,n,o);this.tokenize(r);const i=this.ruler2.getRules(""),s=i.length;for(let a=0;a<s;a++)i[a](r,!1)}},Eu=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=mt}};const li=[["normalize",sc],["block",ec],["inline",tc],["linkify",oc],["replacements",ac],["smartquotes",fc],["text_join",hc]],Su={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:100},Mu={parseLinkLabel:ko,parseLinkDestination:go,parseLinkTitle:vo};function Au(){return ne({},Su)}function Bu(){return ne({},Mu)}var Du=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 Rc,this.inline=new Cu,this.ruler=new cc;for(let e=0;e<li.length;e++){const[t,n]=li[e];this.ruler.push(t,n)}this.fallbackParser={block:this.block,inline:this.inline,core:this,options:Au(),helpers:Bu(),normalizeLink:kl,normalizeLinkText:vl,validateLink:gl,linkify:null}}resolveParser(e){return e||(this.linkifyInstance||(this.linkifyInstance=new ol),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 Eu(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(typeof e!="string")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:[]}},Tu={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1}},$u={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Nu={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 Iu=/[&<>"]/,Fu=/[&<>"]/g,Ru={"&":"&","<":"<",">":">",'"':"""};function Lu(e){return Ru[e]||e}function En(e){return Iu.test(e)?e.replace(Fu,Lu):e}const Pu=new RegExp(`${/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Ou=/^#(?:x[a-f0-9]{1,8}|\d{1,8})$/i;function zu(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(Pu,(t,n,o)=>{if(n)return n;if(Ou.test(o)){const r=o[1].toLowerCase()==="x"?Number.parseInt(o.slice(2),16):Number.parseInt(o.slice(1),10);return r>=55296&&r<=57343||r>=128&&r<=159?"�":String.fromCodePoint(r)}return t})}const yo=e=>!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function",si=(e,t)=>{if(yo(e))throw new TypeError(`Renderer rule "${t}" returned a Promise. Use renderAsync() instead.`);return e},ai=e=>yo(e)?e:Promise.resolve(e),Kr=(e,t,n,o,r,i)=>{if(t.startsWith("<pre"))return`${t}
|
|
13
|
-
`;if(n){const s=typeof e.attrIndex=="function"?e.attrIndex("class"):-1,a=e.attrs?e.attrs.map(f=>f.slice()):[],c=`${r.langPrefix||"language-"}${o}`;s<0?a.push(["class",c]):a[s][1]+=` ${c}`;const u=
|
|
8
|
+
`}function $s(e,t,n,o,r){let i=r.rules.footnote_anchor_name(e,t,n,o,r);return e[t].meta.subId>0&&(i+=`:${e[t].meta.subId}`),` <a href="#fnref${i}" class="footnote-backref">↩︎</a>`}function Ns(e){const t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=Ms,e.renderer.rules.footnote_block_open=Bs,e.renderer.rules.footnote_block_close=As,e.renderer.rules.footnote_open=Ds,e.renderer.rules.footnote_close=Ts,e.renderer.rules.footnote_anchor=$s,e.renderer.rules.footnote_caption=Ss,e.renderer.rules.footnote_anchor_name=Es;function o(a,c,u,f){const d=a.bMarks[c]+a.tShift[c],h=a.eMarks[c];if(d+4>h||a.src.charCodeAt(d)!==91||a.src.charCodeAt(d+1)!==94)return!1;let p;for(p=d+2;p<h;p++){if(a.src.charCodeAt(p)===32)return!1;if(a.src.charCodeAt(p)===93)break}if(p===d+2||p+1>=h||a.src.charCodeAt(++p)!==58)return!1;if(f)return!0;p++,a.env.footnotes||(a.env.footnotes={}),a.env.footnotes.refs||(a.env.footnotes.refs={});const m=a.src.slice(d+2,p-2);a.env.footnotes.refs[`:${m}`]=-1;const g=new a.Token("footnote_reference_open","",1);g.meta={label:m},g.level=a.level++,a.tokens.push(g);const w=a.bMarks[c],S=a.tShift[c],x=a.sCount[c],y=a.parentType,_=p,B=a.sCount[c]+p-(a.bMarks[c]+a.tShift[c]);let k=B;for(;p<h;){const b=a.src.charCodeAt(p);if(n(b))b===9?k+=4-k%4:k++;else break;p++}a.tShift[c]=p-_,a.sCount[c]=k-B,a.bMarks[c]=_,a.blkIndent+=4,a.parentType="footnote",a.sCount[c]<a.blkIndent&&(a.sCount[c]+=a.blkIndent),a.md.block.tokenize(a,c,u,!0),a.parentType=y,a.blkIndent-=4,a.tShift[c]=S,a.sCount[c]=x,a.bMarks[c]=w;const M=new a.Token("footnote_reference_close","",-1);return M.level=--a.level,a.tokens.push(M),!0}function r(a,c){const u=a.posMax,f=a.pos;if(f+2>=u||a.src.charCodeAt(f)!==94||a.src.charCodeAt(f+1)!==91)return!1;const d=f+2,h=t(a,f+1);if(h<0)return!1;if(!c){a.env.footnotes||(a.env.footnotes={}),a.env.footnotes.list||(a.env.footnotes.list=[]);const p=a.env.footnotes.list.length,m=[];a.md.inline.parse(a.src.slice(d,h),a.md,a.env,m);const g=a.push("footnote_ref","",0);g.meta={id:p},a.env.footnotes.list[p]={content:a.src.slice(d,h),tokens:m}}return a.pos=h+1,a.posMax=u,!0}function i(a,c){const u=a.posMax,f=a.pos;if(f+3>u||!a.env.footnotes||!a.env.footnotes.refs||a.src.charCodeAt(f)!==91||a.src.charCodeAt(f+1)!==94)return!1;let d;for(d=f+2;d<u;d++){if(a.src.charCodeAt(d)===32||a.src.charCodeAt(d)===10)return!1;if(a.src.charCodeAt(d)===93)break}if(d===f+2||d>=u)return!1;d++;const h=a.src.slice(f+2,d-1);if(typeof a.env.footnotes.refs[`:${h}`]=="undefined")return!1;if(!c){a.env.footnotes.list||(a.env.footnotes.list=[]);let p;a.env.footnotes.refs[`:${h}`]<0?(p=a.env.footnotes.list.length,a.env.footnotes.list[p]={label:h,count:0},a.env.footnotes.refs[`:${h}`]=p):p=a.env.footnotes.refs[`:${h}`];const m=a.env.footnotes.list[p].count;a.env.footnotes.list[p].count++;const g=a.push("footnote_ref","",0);g.meta={id:p,subId:m,label:h}}return a.pos=d,a.posMax=u,!0}function s(a){let c,u,f,d=!1;const h={};if(!a.env.footnotes||(a.tokens=a.tokens.filter(function(m){return m.type==="footnote_reference_open"?(d=!0,u=[],f=m.meta.label,!1):m.type==="footnote_reference_close"?(d=!1,h[":"+f]=u,!1):(d&&u.push(m),!d)}),!a.env.footnotes.list))return;const p=a.env.footnotes.list;a.tokens.push(new a.Token("footnote_block_open","",1));for(let m=0,g=p.length;m<g;m++){const w=new a.Token("footnote_open","",1);if(w.meta={id:m,label:p[m].label},a.tokens.push(w),p[m].tokens){c=[];const y=new a.Token("paragraph_open","p",1);y.block=!0,c.push(y);const _=new a.Token("inline","",0);_.children=p[m].tokens,_.content=p[m].content,c.push(_);const B=new a.Token("paragraph_close","p",-1);B.block=!0,c.push(B)}else p[m].label&&(c=h[`:${p[m].label}`]);c&&(a.tokens=a.tokens.concat(c));let S;a.tokens[a.tokens.length-1].type==="paragraph_close"?S=a.tokens.pop():S=null;const x=p[m].count>0?p[m].count:1;for(let y=0;y<x;y++){const _=new a.Token("footnote_anchor","",0);_.meta={id:m,subId:y,label:p[m].label},a.tokens.push(_)}S&&a.tokens.push(S),a.tokens.push(new a.Token("footnote_close","",-1))}a.tokens.push(new a.Token("footnote_block_close","",-1))}e.block.ruler.before("reference","footnote_def",o,{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",r),e.inline.ruler.after("footnote_inline","footnote_ref",i),e.core.ruler.after("inline","footnote_tail",s)}function Is(e){function t(o,r){const i=o.pos,s=o.src.charCodeAt(i);if(r||s!==43)return!1;const a=o.scanDelims(o.pos,!0);let c=a.length;const u=String.fromCharCode(s);if(c<2)return!1;if(c%2){const f=o.push("text","",0);f.content=u,c--}for(let f=0;f<c;f+=2){const d=o.push("text","",0);d.content=u+u,!(!a.can_open&&!a.can_close)&&o.delimiters.push({marker:s,length:0,jump:f/2,token:o.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return o.pos+=a.length,!0}function n(o,r){let i;const s=[],a=r.length;for(let c=0;c<a;c++){const u=r[c];if(u.marker!==43||u.end===-1)continue;const f=r[u.end];i=o.tokens[u.token],i.type="ins_open",i.tag="ins",i.nesting=1,i.markup="++",i.content="",i=o.tokens[f.token],i.type="ins_close",i.tag="ins",i.nesting=-1,i.markup="++",i.content="",o.tokens[f.token-1].type==="text"&&o.tokens[f.token-1].content==="+"&&s.push(f.token-1)}for(;s.length;){const c=s.pop();let u=c+1;for(;u<o.tokens.length&&o.tokens[u].type==="ins_close";)u++;u--,c!==u&&(i=o.tokens[u],o.tokens[u]=o.tokens[c],o.tokens[c]=i)}}e.inline.ruler.before("emphasis","ins",t),e.inline.ruler2.before("emphasis","ins",function(o){const r=o.tokens_meta,i=(o.tokens_meta||[]).length;n(o,o.delimiters);for(let s=0;s<i;s++)r[s]&&r[s].delimiters&&n(o,r[s].delimiters)})}function Fs(e){function t(o,r){const i=o.pos,s=o.src.charCodeAt(i);if(r||s!==61)return!1;const a=o.scanDelims(o.pos,!0);let c=a.length;const u=String.fromCharCode(s);if(c<2)return!1;if(c%2){const f=o.push("text","",0);f.content=u,c--}for(let f=0;f<c;f+=2){const d=o.push("text","",0);d.content=u+u,!(!a.can_open&&!a.can_close)&&o.delimiters.push({marker:s,length:0,jump:f/2,token:o.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return o.pos+=a.length,!0}function n(o,r){const i=[],s=r.length;for(let a=0;a<s;a++){const c=r[a];if(c.marker!==61||c.end===-1)continue;const u=r[c.end],f=o.tokens[c.token];f.type="mark_open",f.tag="mark",f.nesting=1,f.markup="==",f.content="";const d=o.tokens[u.token];d.type="mark_close",d.tag="mark",d.nesting=-1,d.markup="==",d.content="",o.tokens[u.token-1].type==="text"&&o.tokens[u.token-1].content==="="&&i.push(u.token-1)}for(;i.length;){const a=i.pop();let c=a+1;for(;c<o.tokens.length&&o.tokens[c].type==="mark_close";)c++;if(c--,a!==c){const u=o.tokens[c];o.tokens[c]=o.tokens[a],o.tokens[a]=u}}}e.inline.ruler.before("emphasis","mark",t),e.inline.ruler2.before("emphasis","mark",function(o){let r;const i=o.tokens_meta,s=(o.tokens_meta||[]).length;for(n(o,o.delimiters),r=0;r<s;r++)i[r]&&i[r].delimiters&&n(o,i[r].delimiters)})}const Rs=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Ls(e,t){const n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==126||t||o+2>=n)return!1;e.pos=o+1;let r=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){r=!0;break}e.md.inline.skipToken(e)}if(!r||o+1===e.pos)return e.pos=o,!1;const i=e.src.slice(o+1,e.pos);if(i.match(/(^|[^\\])(\\\\)*\s/))return e.pos=o,!1;e.posMax=e.pos,e.pos=o+1;const s=e.push("sub_open","sub",1);s.markup="~";const a=e.push("text","",0);a.content=i.replace(Rs,"$1");const c=e.push("sub_close","sub",-1);return c.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function Ps(e){e.inline.ruler.after("emphasis","sub",Ls)}const Os=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function zs(e,t){const n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==94||t||o+2>=n)return!1;e.pos=o+1;let r=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){r=!0;break}e.md.inline.skipToken(e)}if(!r||o+1===e.pos)return e.pos=o,!1;const i=e.src.slice(o+1,e.pos);if(i.match(/(^|[^\\])(\\\\)*\s/))return e.pos=o,!1;e.posMax=e.pos,e.pos=o+1;const s=e.push("sup_open","sup",1);s.markup="^";const a=e.push("text","",0);a.content=i.replace(Os,"$1");const c=e.push("sup_close","sup",-1);return c.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function Vs(e){e.inline.ruler.after("emphasis","sup",zs)}var js=Xi({"../../node_modules/.pnpm/markdown-it-task-checkbox@1.0.6/node_modules/markdown-it-task-checkbox/index.js":((e,t)=>{t.exports=function(g,w){w=Object.assign({},{disabled:!0,divWrap:!1,divClass:"checkbox",idPrefix:"cbx_",ulClass:"task-list",liClass:"task-list-item"},w),g.core.ruler.after("inline","github-task-lists",function(S){for(var x=S.tokens,y=0,_=2;_<x.length;_++)r(x,_)&&(i(x[_],y,w,S.Token),y+=1,n(x[_-2],"class",w.liClass),n(x[o(x,_-2)],"class",w.ulClass))})};function n(g,w,S){var x=g.attrIndex(w),y=[w,S];x<0?g.attrPush(y):g.attrs[x]=y}function o(g,w){for(var S=g[w].level-1,x=w-1;x>=0;x--)if(g[x].level===S)return x;return-1}function r(g,w){return d(g[w])&&h(g[w-1])&&p(g[w-2])&&m(g[w])}function i(g,w,S,x){var y=S.idPrefix+w;g.children[0].content=g.children[0].content.slice(3),g.children.unshift(a(y,x)),g.children.push(c(x)),g.children.unshift(s(g,y,S,x)),S.divWrap&&(g.children.unshift(u(S,x)),g.children.push(f(x)))}function s(g,w,S,x){var y=new x("checkbox_input","input",0);return y.attrs=[["type","checkbox"],["id",w]],/^\[[xX]\][ \u00A0]/.test(g.content)===!0&&y.attrs.push(["checked","true"]),S.disabled===!0&&y.attrs.push(["disabled","true"]),y}function a(g,w){var S=new w("label_open","label",1);return S.attrs=[["for",g]],S}function c(g){return new g("label_close","label",-1)}function u(g,w){var S=new w("checkbox_open","div",0);return S.attrs=[["class",g.divClass]],S}function f(g){return new g("checkbox_close","div",-1)}function d(g){return g.type==="inline"}function h(g){return g.type==="paragraph_open"}function p(g){return g.type==="list_item_open"}function m(g){return/^\[[xX \u00A0]\][ \u00A0]/.test(g.content)}})}),Ro=Yi(js()),Hs=Object.defineProperty,Gi=e=>{let t={};for(var n in e)Hs(t,n,{get:e[n],enumerable:!0});return t},Ji=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Qi=/[\0-\x1F\x7F-\x9F]/,qs=/[\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]/,po=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,el=/[\$\+<->\^`\|~\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]/,tl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,nl=Zi({Any:()=>Ji,Cc:()=>Qi,Cf:()=>qs,P:()=>po,S:()=>el,Z:()=>tl});function Ws(e){const t={};e=e||{},t.src_Any=Ji.source,t.src_Cc=Qi.source,t.src_Z=tl.source,t.src_P=po.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+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="(?=$|"+n+"|"+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="(^|"+n+'|"|\\(|'+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 Jr(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Sr(e){return Object.prototype.toString.call(e)}function Us(e){return Sr(e)==="[object String]"}function Ks(e){return Sr(e)==="[object Object]"}function Xs(e){return Sr(e)==="[object RegExp]"}function Lo(e){return Sr(e)==="[object Function]"}function Zs(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const rl={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ys(e){return Object.keys(e||{}).reduce(function(t,n){return t||rl.hasOwnProperty(n)},!1)}const Gs={"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}}},Js="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]",Qs="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ea(e){e.__index__=-1,e.__text_cache__=""}function ta(e){return function(t,n){const o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function Po(){return function(e,t){t.normalize(e)}}function kr(e){const t=e.re=Ws(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Js),n.push(t.src_xn),t.src_tlds=n.join("|");function o(a){return a.replace("%TLDS%",t.src_tlds)}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=[];e.__compiled__={};function i(a,c){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+c)}Object.keys(e.__schemas__).forEach(function(a){const c=e.__schemas__[a];if(c===null)return;const u={validate:null,link:null};if(e.__compiled__[a]=u,Ks(c)){Xs(c.validate)?u.validate=ta(c.validate):Lo(c.validate)?u.validate=c.validate:i(a,c),Lo(c.normalize)?u.normalize=c.normalize:c.normalize?i(a,c):u.normalize=Po();return}if(Us(c)){r.push(a);return}i(a,c)}),r.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:Po()};const s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(Zs).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","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"),ea(e)}function na(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 Qr(e,t){const n=new na(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function kt(e,t){if(!(this instanceof kt))return new kt(e,t);t||Ys(e)&&(t=e,e={}),this.__opts__=Jr({},rl,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Jr({},Gs,e),this.__compiled__={},this.__tlds__=Qs,this.__tlds_replaced__=!1,this.re={},kr(this)}kt.prototype.add=function(t,n){return this.__schemas__[t]=n,kr(this),this};kt.prototype.set=function(t){return this.__opts__=Jr(this.__opts__,t),this};kt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,o,r,i,s,a,c,u,f;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(t))!==null;)if(i=this.testSchemaAt(t,n[2],c.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=t.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=o.index+o[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(s=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};kt.prototype.pretest=function(t){return this.re.pretest.test(t)};kt.prototype.testSchemaAt=function(t,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,o,this):0};kt.prototype.match=function(t){const n=[];let o=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Qr(this,o)),o=this.__last_index__);let r=o?t.slice(o):t;for(;this.test(r);)n.push(Qr(this,o)),r=r.slice(this.__last_index__),o+=this.__last_index__;return n.length?n:null};kt.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const o=this.testSchemaAt(t,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,Qr(this,0)):null};kt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(o,r,i){return o!==i[r-1]}).reverse(),kr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,kr(this),this)};kt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};kt.prototype.onCompile=function(){};var ol=kt,ra=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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ቻDzኀ\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ǣጓ\0y;䐎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;䅻Dzᕔ\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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ƀ;oș᳔ndĀ;ș᳑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;ẝẤijạả;怄;怅怃Ā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;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱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ↄⅪ←ٖ↛ǰ↉\0proø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⧓ସdz⧟\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᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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㚆㚝㚵㚼Dz㚋\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))),oa=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),Wr;const ia=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]]),la=(Wr=String.fromCodePoint)!==null&&Wr!==void 0?Wr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function sa(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ia.get(e))!==null&&t!==void 0?t:e}var Ke;(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"})(Ke||(Ke={}));const aa=32;var tn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(tn||(tn={}));function eo(e){return e>=Ke.ZERO&&e<=Ke.NINE}function ca(e){return e>=Ke.UPPER_A&&e<=Ke.UPPER_F||e>=Ke.LOWER_A&&e<=Ke.LOWER_F}function ua(e){return e>=Ke.UPPER_A&&e<=Ke.UPPER_Z||e>=Ke.LOWER_A&&e<=Ke.LOWER_Z||eo(e)}function da(e){return e===Ke.EQUALS||ua(e)}var We;(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"})(We||(We={}));var en;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(en||(en={}));var fa=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=We.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=en.Strict}startEntity(e){this.decodeMode=e,this.state=We.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case We.EntityStart:return e.charCodeAt(t)===Ke.NUM?(this.state=We.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=We.NamedEntity,this.stateNamedEntity(e,t));case We.NumericStart:return this.stateNumericStart(e,t);case We.NumericDecimal:return this.stateNumericDecimal(e,t);case We.NumericHex:return this.stateNumericHex(e,t);case We.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|aa)===Ke.LOWER_X?(this.state=We.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=We.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(eo(o)||ca(o))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const o=e.charCodeAt(t);if(eo(o))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ke.SEMI)this.consumed+=1;else if(this.decodeMode===en.Strict)return 0;return this.emitCodePoint(sa(this.result),this.consumed),this.errors&&(e!==Ke.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&tn.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const i=e.charCodeAt(t);if(this.treeIndex=ha(n,o,this.treeIndex+Math.max(1,r),i),this.treeIndex<0)return this.result===0||this.decodeMode===en.Attribute&&(r===0||da(i))?0:this.emitNotTerminatedNamedEntity();if(o=n[this.treeIndex],r=(o&tn.VALUE_LENGTH)>>14,r!==0){if(i===Ke.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==en.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]&tn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,o,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:o}=this;return this.emitCodePoint(t===1?o[e]&~tn.VALUE_LENGTH:o[e+1],n),t===3&&this.emitCodePoint(o[e+2],n),n}end(){var e;switch(this.state){case We.NamedEntity:return this.result!==0&&(this.decodeMode!==en.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case We.NumericDecimal:return this.emitNumericEntity(0,2);case We.NumericHex:return this.emitNumericEntity(0,3);case We.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case We.EntityStart:return 0}}};function il(e){let t="";const n=new fa(e,o=>t+=la(o));return function(r,i){let s=0,a=0;for(;(a=r.indexOf("&",a))>=0;){t+=r.slice(s,a),n.startEntity(i);const u=n.write(r,a+1);if(u<0){s=a+n.end();break}s=a+u,a=u===0?s+1:s}const c=t+r.slice(s);return t="",c}}function ha(e,t,n,o){const r=(t&tn.BRANCH_LENGTH)>>7,i=t&tn.JUMP_TABLE;if(r===0)return i!==0&&o===i?n:-1;if(i){const c=o-i;return c<0||c>=r?-1:e[n+c]-1}let s=n,a=s+r-1;for(;s<=a;){const c=s+a>>>1,u=e[c];if(u<o)s=c+1;else if(u>o)a=c-1;else return e[c+r]}return-1}const pa=il(ra);il(oa);function ma(e,t=en.Legacy){return pa(e,t)}const Oo={};function ga(e){let t=Oo[e];if(t)return t;t=Oo[e]=[];for(let n=0;n<128;n++){const o=String.fromCharCode(n);t.push(o)}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 Mr(e,t){typeof t!="string"&&(t=Mr.defaultChars);const n=ga(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(o){let r="";for(let i=0,s=o.length;i<s;i+=3){const a=parseInt(o.slice(i+1,i+3),16);if(a<128){r+=n[a];continue}if((a&224)===192&&i+3<s){const c=parseInt(o.slice(i+4,i+6),16);if((c&192)===128){const u=a<<6&1984|c&63;u<128?r+="��":r+=String.fromCharCode(u),i+=3;continue}}if((a&240)===224&&i+6<s){const c=parseInt(o.slice(i+4,i+6),16),u=parseInt(o.slice(i+7,i+9),16);if((c&192)===128&&(u&192)===128){const f=a<<12&61440|c<<6&4032|u&63;f<2048||f>=55296&&f<=57343?r+="���":r+=String.fromCharCode(f),i+=6;continue}}if((a&248)===240&&i+9<s){const c=parseInt(o.slice(i+4,i+6),16),u=parseInt(o.slice(i+7,i+9),16),f=parseInt(o.slice(i+10,i+12),16);if((c&192)===128&&(u&192)===128&&(f&192)===128){let d=a<<18&1835008|c<<12&258048|u<<6&4032|f&63;d<65536||d>1114111?r+="����":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}}r+="�"}return r})}Mr.defaultChars=";/?:@&=+$,#";Mr.componentChars="";var to=Mr;const zo={};function ka(e){let t=zo[e];if(t)return t;t=zo[e]=[];for(let n=0;n<128;n++){const o=String.fromCharCode(n);/^[0-9a-z]$/i.test(o)?t.push(o):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Br(e,t,n){typeof t!="string"&&(n=t,t=Br.defaultChars),typeof n=="undefined"&&(n=!0);const o=ka(t);let r="";for(let i=0,s=e.length;i<s;i++){const a=e.charCodeAt(i);if(n&&a===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){r+=e.slice(i,i+3),i+=2;continue}if(a<128){r+=o[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1<s){const c=e.charCodeAt(i+1);if(c>=56320&&c<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}Br.defaultChars=";/?:@&=+$,-_.!~*'()#";Br.componentChars="-_.!~*'()";var ll=Br;function mo(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function vr(){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 va=/^([a-z0-9.+-]+:)/i,wa=/:[0-9]*$/,ya=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,xa=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
9
|
+
`," "]),ba=["'"].concat(xa),Vo=["%","/","?",";","#"].concat(ba),jo=["/","?","#"],_a=255,Ho=/^[+a-z0-9A-Z_-]{0,63}$/,Ca=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,qo={javascript:!0,"javascript:":!0},Wo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ea(e,t){if(e&&e instanceof vr)return e;const n=new vr;return n.parse(e,t),n}vr.prototype.parse=function(e,t){let n,o,r,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const u=ya.exec(i);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let s=va.exec(i);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(s&&qo[s])&&(i=i.substr(2),this.slashes=!0)),!qo[s]&&(r||s&&!Wo[s])){let u=-1;for(let m=0;m<jo.length;m++)o=i.indexOf(jo[m]),o!==-1&&(u===-1||o<u)&&(u=o);let f,d;u===-1?d=i.lastIndexOf("@"):d=i.lastIndexOf("@",u),d!==-1&&(f=i.slice(0,d),i=i.slice(d+1),this.auth=f),u=-1;for(let m=0;m<Vo.length;m++)o=i.indexOf(Vo[m]),o!==-1&&(u===-1||o<u)&&(u=o);u===-1&&(u=i.length),i[u-1]===":"&&u--;const h=i.slice(0,u);i=i.slice(u),this.parseHost(h),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let g=0,w=m.length;g<w;g++){const S=m[g];if(S&&!S.match(Ho)){let x="";for(let y=0,_=S.length;y<_;y++)S.charCodeAt(y)>127?x+="x":x+=S[y];if(!x.match(Ho)){const y=m.slice(0,g),_=m.slice(g+1),B=S.match(Ca);B&&(y.push(B[1]),_.unshift(B[2])),_.length&&(i=_.join(".")+i),this.hostname=y.join(".");break}}}}this.hostname.length>_a&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=i.indexOf("#");a!==-1&&(this.hash=i.substr(a),i=i.slice(0,a));const c=i.indexOf("?");return c!==-1&&(this.search=i.substr(c),i=i.slice(0,c)),i&&(this.pathname=i),Wo[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};vr.prototype.parseHost=function(e){let t=wa.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 go=Ea,sl=Zi({decode:()=>to,encode:()=>ll,format:()=>mo,parse:()=>go}),Sa=Xi({"../../node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.js":((e,t)=>{const d=/^xn--/,h=/[^\0-\x7F]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=35,w=Math.floor,S=String.fromCharCode;function x(O){throw new RangeError(m[O])}function y(O,F){const V=[];let j=O.length;for(;j--;)V[j]=F(O[j]);return V}function _(O,F){const V=O.split("@");let j="";V.length>1&&(j=V[0]+"@",O=V[1]),O=O.replace(p,".");const Y=y(O.split("."),F).join(".");return j+Y}function B(O){const F=[];let V=0;const j=O.length;for(;V<j;){const Y=O.charCodeAt(V++);if(Y>=55296&&Y<=56319&&V<j){const J=O.charCodeAt(V++);(J&64512)==56320?F.push(((Y&1023)<<10)+(J&1023)+65536):(F.push(Y),V--)}else F.push(Y)}return F}const k=O=>String.fromCodePoint(...O),M=function(O){return O>=48&&O<58?26+(O-48):O>=65&&O<91?O-65:O>=97&&O<123?O-97:36},b=function(O,F){return O+22+75*(O<26)-((F!=0)<<5)},T=function(O,F,V){let j=0;for(O=V?w(O/700):O>>1,O+=w(O/F);O>g*26>>1;j+=36)O=w(O/g);return w(j+(g+1)*O/(O+38))},H=function(O){const F=[],V=O.length;let j=0,Y=128,J=72,te=O.lastIndexOf("-");te<0&&(te=0);for(let re=0;re<te;++re)O.charCodeAt(re)>=128&&x("not-basic"),F.push(O.charCodeAt(re));for(let re=te>0?te+1:0;re<V;){const _e=j;for(let pe=1,ie=36;;ie+=36){re>=V&&x("invalid-input");const z=M(O.charCodeAt(re++));z>=36&&x("invalid-input"),z>w((2147483647-j)/pe)&&x("overflow"),j+=z*pe;const R=ie<=J?1:ie>=J+26?26:ie-J;if(z<R)break;const q=36-R;pe>w(2147483647/q)&&x("overflow"),pe*=q}const he=F.length+1;J=T(j-_e,he,_e==0),w(j/he)>2147483647-Y&&x("overflow"),Y+=w(j/he),j%=he,F.splice(j++,0,Y)}return String.fromCodePoint(...F)},L=function(O){const F=[];O=B(O);const V=O.length;let j=128,Y=0,J=72;for(const _e of O)_e<128&&F.push(S(_e));const te=F.length;let re=te;for(te&&F.push("-");re<V;){let _e=2147483647;for(const pe of O)pe>=j&&pe<_e&&(_e=pe);const he=re+1;_e-j>w((2147483647-Y)/he)&&x("overflow"),Y+=(_e-j)*he,j=_e;for(const pe of O)if(pe<j&&++Y>2147483647&&x("overflow"),pe===j){let ie=Y;for(let z=36;;z+=36){const R=z<=J?1:z>=J+26?26:z-J;if(ie<R)break;const q=ie-R,Q=36-R;F.push(S(b(R+q%Q,0))),ie=w(q/Q)}F.push(S(b(ie,0))),J=T(Y,he,re===te),Y=0,++re}++Y,++j}return F.join("")},K={version:"2.3.1",ucs2:{decode:B,encode:k},decode:H,encode:L,toASCII:function(O){return _(O,function(F){return h.test(F)?"xn--"+L(F):F})},toUnicode:function(O){return _(O,function(F){return d.test(F)?H(F.slice(4).toLowerCase()):F})}};t.exports=K})}),al=Yi(Sa()),Ma=Gi({arrayReplaceAt:()=>cl,assign:()=>$a,countLines:()=>Ut,escapeHtml:()=>qa,escapeRE:()=>Ua,fromCodePoint:()=>dl,has:()=>Ta,isMdAsciiPunct:()=>oo,isPunctChar:()=>ro,isSpace:()=>Na,isString:()=>Aa,isValidEntityCode:()=>ul,isWhiteSpace:()=>no,lib:()=>Ka,mdurl:()=>sl,normalizeReference:()=>Ia,ucmicro:()=>nl,unescapeAll:()=>Oa,unescapeMd:()=>Pa});function Ba(e){return Object.prototype.toString.call(e)}function Aa(e){return Ba(e)==="[object String]"}const Da=Object.prototype.hasOwnProperty;function Ta(e,t){return Da.call(e,t)}function $a(e,...t){return t.forEach(n=>{if(n){if(typeof n!="object")throw new TypeError(`${String(n)}must be object`);Object.keys(n).forEach(o=>{e[o]=n[o]})}}),e}function Na(e){return e===9||e===32}function no(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 ro(e){return po.test(e)||el.test(e)}function oo(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 Ia(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function cl(e,t,n){return[...e.slice(0,t),...n,...e.slice(t+1)]}function ul(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function dl(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const fl=/\\([!"#$%&'()*+,\-\./:;<=>?@[\\\]^_`{|}~])/g,Fa=new RegExp(`${fl.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Ra=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function La(e,t){if(t.charCodeAt(0)===35&&Ra.test(t)){const o=t[1].toLowerCase()==="x"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return ul(o)?dl(o):e}const n=ma(e);return n!==e?n:e}function Pa(e){return e.includes("\\")?e.replace(fl,"$1"):e}function Oa(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(Fa,(t,n,o)=>n||La(t,o))}const za=/[&<>"]/,Va=/[&<>"]/g,ja={"&":"&","<":"<",">":">",'"':"""};function Ha(e){return ja[e]}function qa(e){return za.test(e)?e.replace(Va,Ha):e}const Wa=/[.?*+^$[\]\\(){}|-]/g;function Ua(e){return e.replace(Wa,"\\$&")}const Ka={mdurl:sl,ucmicro:nl};function Ut(e){if(e.length===0)return 0;let t=0,n=-1;for(;(n=e.indexOf(`
|
|
10
|
+
`,n+1))!==-1;)t++;return t}function ko(e,t,n){let o,r=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(o=e.charCodeAt(r),o===10||o===60)return i;if(o===62)return i.pos=r+1,i.str=e.slice(t+1,r),i.ok=!0,i;if(o===92&&r+1<n){r+=2;continue}r++}return i}let s=0;for(;r<n&&(o=e.charCodeAt(r),!(o===32||o<32||o===127));){if(o===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(o===40&&(s++,s>32))return i;if(o===41){if(s===0)break;s--}r++}return t===r||s!==0||(i.str=e.slice(t,r),i.pos=r,i.ok=!0),i}var hl=ko;function vo(e,t,n){let o=1,r=!1,i,s;const a=e.posMax,c=e.pos;for(e.pos=t+1;e.pos<a;){if(i=e.src.charCodeAt(e.pos),i===93&&(o--,o===0)){r=!0;break}if(s=e.pos,e.md.inline.skipToken(e),i===91){if(s===e.pos-1)o++;else if(n)return e.pos=c,-1}}let u=-1;return r&&(u=e.pos),e.pos=c,u}var wr=vo;function wo(e,t,n,o){let r,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(o)s.str=o.str,s.marker=o.marker;else{if(i>=n)return s;let a=e.charCodeAt(i);if(a!==34&&a!==39&&a!==40)return s;t++,i++,a===40&&(a=41),s.marker=a}for(;i<n;){if(r=e.charCodeAt(i),r===s.marker)return s.pos=i+1,s.str+=e.slice(t,i),s.ok=!0,s;if(r===40&&s.marker===41)return s;r===92&&i+1<n&&i++,i++}return s.can_continue=!0,s.str+=e.slice(t,i),s}var pl=wo;function Ar(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 yo(e,t){e.attrs||(e.attrs=[]),e.attrs.push(t)}function Xa(e,t,n){const o=Ar(e,t),r=[t,n];o<0?yo(e,r):e.attrs[o]=r}function Za(e,t){const n=Ar(e,t);return n>=0?e.attrs[n][1]:null}function Ya(e,t,n){const o=Ar(e,t);o<0?yo(e,[t,n]):e.attrs[o][1]=`${e.attrs[o][1]} ${n}`}var Ga=Gi({attrGet:()=>Za,attrIndex:()=>Ar,attrJoin:()=>Ya,attrPush:()=>yo,attrSet:()=>Xa,parseLinkDestination:()=>ko,parseLinkLabel:()=>vo,parseLinkTitle:()=>wo});const Ja=/^(?:vbscript|javascript|file|data):/,Qa=/^data:image\/(?:gif|png|jpeg|webp);/,ml=["http:","https:","mailto:"];function gl(e){const t=e.trim().toLowerCase();return Ja.test(t)?Qa.test(t):!0}function kl(e){const t=go(e,!0);if(t.hostname&&(!t.protocol||ml.includes(t.protocol)))try{t.hostname=al.default.toASCII(t.hostname)}catch(n){}return ll(mo(t))}function vl(e){const t=go(e,!0);if(t.hostname&&(!t.protocol||ml.includes(t.protocol)))try{t.hostname=al.default.toUnicode(t.hostname)}catch(n){}return to(mo(t),`${to.defaultChars}%`)}var ht=class{constructor(e,t,n){Z(this,"type");Z(this,"tag");Z(this,"attrs");Z(this,"map");Z(this,"nesting");Z(this,"level");Z(this,"children");Z(this,"content");Z(this,"markup");Z(this,"info");Z(this,"meta");Z(this,"block");Z(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 ec(e){if(e.inlineMode){const t=new ht("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 tc(e){const t=e.tokens;for(let n=0,o=t.length;n<o;n++){const r=t[n];r.type==="inline"&&e.md&&(r.children||(r.children=[]),e.md.inline.parse(r.content,e.md,e.env,r.children))}}function nc(e){return/^<a[>\s]/i.test(e)}function rc(e){return/^<\/a\s*>/i.test(e)}function oc(e){var n,o;const t=e.tokens;if((o=(n=e.md)==null?void 0:n.options)!=null&&o.linkify)for(let r=0;r<t.length;r++){const i=t[r];if(i.type!=="inline"||!e.md.linkify.pretest(i.content))continue;let s=i.children||[],a=0;for(let c=s.length-1;c>=0;c--){const u=s[c];if(u.type==="link_close"){for(c--;c>=0&&s[c].level!==u.level&&s[c].type!=="link_open";)c--;continue}if(u.type==="html_inline"&&(nc(u.content)&&a>0&&a--,rc(u.content)&&a++),a>0||u.type!=="text"||!e.md.linkify.test(u.content))continue;const f=u.content;let d=e.md.linkify.match(f)||[];if(d.length===0)continue;const h=[];let p=u.level,m=0;d.length>0&&d[0].index===0&&c>0&&s[c-1].type==="text_special"&&(d=d.slice(1));for(let g=0;g<d.length;g++){const w=d[g],S=e.md.normalizeLink(w.url);if(!e.md.validateLink(S))continue;let x=w.text;w.schema?w.schema==="mailto:"&&!/^mailto:/i.test(x)?x=e.md.normalizeLinkText(`mailto:${x}`).replace(/^mailto:/,""):x=e.md.normalizeLinkText(x):x=e.md.normalizeLinkText(`http://${x}`).replace(/^http:\/\//,"");const y=w.index;if(y>m){const M=new ht("text","",0);M.content=f.slice(m,y),M.level=p,h.push(M)}const _=new ht("link_open","a",1);_.attrs=[["href",S]],_.level=p++,_.markup="linkify",_.info="auto",h.push(_);const B=new ht("text","",0);B.content=x,B.level=p,h.push(B);const k=new ht("link_close","a",-1);k.level=--p,k.markup="linkify",k.info="auto",h.push(k),m=w.lastIndex}if(m!==0){if(m<f.length){const g=new ht("text","",0);g.content=f.slice(m),g.level=p,h.push(g)}i.children=s=cl(s,c,h)}}}}const ic=/\r\n?|\n/g,lc=/\0/g;function sc(e){if(!e||typeof e.src!="string")return;let t=e.src.replace(ic,`
|
|
11
|
+
`);t=t.replace(lc,"�"),e.src=t}function ac(e){var t,n;(n=(t=e.md)==null?void 0:t.options)!=null&&n.typographer&&(e.tokens||[]).forEach(o=>{o.type==="inline"&&Array.isArray(o.children)&&o.children.forEach(r=>{r.type==="text"&&typeof r.content=="string"&&(r.content=r.content.replace(/\.\.\./g,"…").replace(/---/g,"—").replace(/--/g,"–"))})})}var cc=class{constructor(){Z(this,"rules",[]);Z(this,"cache",null)}invalidateCache(){this.cache=null}push(e,t){const n=this.rules.findIndex(o=>o.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(o=>o.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(i=>i.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const r=this.rules.findIndex(i=>i.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(i=>i.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const r=this.rules.findIndex(i=>i.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 r of n){const i=this.rules.findIndex(s=>s.name===r);if(i<0){if(!t)throw new Error(`Rules manager: invalid rule name ${r}`);continue}this.rules[i].enabled||(this.rules[i].enabled=!0,o.push(r))}return o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const r of n){const i=this.rules.findIndex(s=>s.name===r);if(i<0){if(!t)throw new Error(`Rules manager: invalid rule name ${r}`);continue}this.rules[i].enabled&&(this.rules[i].enabled=!1,o.push(r))}return o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const o of this.rules){const r=t.has(o.name);o.enabled!==r&&(o.enabled=r,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 uc=/['"]/,Uo=/['"]/g,Ko="’";function ir(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function dc(e,t){let n;const o=[],r=t.md&&t.md.options&&t.md.options.quotes||"“”‘’";for(let i=0;i<e.length;i++){const s=e[i],a=e[i].level;for(n=o.length-1;n>=0&&!(o[n].level<=a);n--);if(o.length=n+1,s.type!=="text")continue;let c=s.content,u=0,f=c.length;e:for(;u<f;){Uo.lastIndex=u;const d=Uo.exec(c);if(!d)break;let h=!0,p=!0;u=d.index+1;const m=d[0]==="'";let g=32;if(d.index-1>=0)g=c.charCodeAt(d.index-1);else for(n=i-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){g=e[n].content.charCodeAt(e[n].content.length-1);break}let w=32;if(u<f)w=c.charCodeAt(u);else for(n=i+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){w=e[n].content.charCodeAt(0);break}const S=oo(g)||ro(String.fromCharCode(g)),x=oo(w)||ro(String.fromCharCode(w)),y=no(g),_=no(w);if(_?h=!1:x&&(y||S||(h=!1)),y?p=!1:S&&(_||x||(p=!1)),w===34&&d[0]==='"'&&g>=48&&g<=57&&(p=h=!1),h&&p&&(h=S,p=x),!h&&!p){m&&(s.content=ir(s.content,d.index,Ko));continue}if(p)for(n=o.length-1;n>=0;n--){let B=o[n];if(o[n].level<a)break;if(B.single===m&&o[n].level===a){B=o[n];let k,M;m?(k=r[2]||"‘",M=r[3]||"’"):(k=r[0]||"“",M=r[1]||"”"),s.content=ir(s.content,d.index,M),e[B.token].content=ir(e[B.token].content,B.pos,k),u+=M.length-1,B.token===i&&(u+=k.length-1),c=s.content,f=c.length,o.length=n;continue e}}h?o.push({token:i,pos:d.index,single:m,level:a}):p&&m&&(s.content=ir(s.content,d.index,Ko))}}}function fc(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--){const n=e.tokens[t];if(n.type!=="inline")continue;const o=typeof n.content=="string"?n.content:(n.children||[]).map(r=>r.content||"").join("");!uc.test(o)||!n.children||dc(n.children,e)}}function hc(e){(e.tokens||[]).forEach(t=>{if(t.type==="inline"&&Array.isArray(t.children)){const n=[];for(let o=0;o<t.children.length;o++){const r=t.children[o];if(r.type==="text"){let i=r.content||"";for(;o+1<t.children.length&&t.children[o+1].type==="text";)o++,i+=t.children[o].content||"";const s=new ht("text","",0);s.content=i,s.level=r.level,n.push(s)}else n.push(r)}t.children=n}})}function pc(e){switch(e){case 9:case 32:return!0}return!1}function mc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(o)return!0;const a=[],c=[],u=[],f=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m<n;m++){const y=e.sCount[m]<e.blkIndent;if(r=e.bMarks[m]+e.tShift[m],i=e.eMarks[m],r>=i)break;if(e.src.charCodeAt(r++)===62&&!y){let B=e.sCount[m]+1,k,M;e.src.charCodeAt(r)===32?(r++,B++,M=!1,k=!0):e.src.charCodeAt(r)===9?(k=!0,(e.bsCount[m]+B)%4===3?(r++,B++,M=!1):M=!0):k=!1;let b=B;for(a.push(e.bMarks[m]),e.bMarks[m]=r;r<i;){const T=e.src.charCodeAt(r);if(pc(T))T===9?b+=4-(b+e.bsCount[m]+(M?1:0))%4:b++;else break;r++}p=r>=i,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(k?1:0),u.push(e.sCount[m]),e.sCount[m]=b-B,f.push(e.tShift[m]),e.tShift[m]=r-e.bMarks[m];continue}if(p)break;let _=!1;for(let B=0,k=d.length;B<k;B++)if(d[B](e,m,n,!0)){_=!0;break}if(_){e.lineMax=m,e.blkIndent!==0&&(a.push(e.bMarks[m]),c.push(e.bsCount[m]),f.push(e.tShift[m]),u.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}a.push(e.bMarks[m]),c.push(e.bsCount[m]),f.push(e.tShift[m]),u.push(e.sCount[m]),e.sCount[m]=-1}const g=e.blkIndent;e.blkIndent=0;const w=e.push("blockquote_open","blockquote",1);w.markup=">";const S=[t,0];w.map=S,e.md.block.tokenize(e,t,m);const x=e.push("blockquote_close","blockquote",-1);x.markup=">",e.lineMax=s,e.parentType=h,S[1]=e.line;for(let y=0;y<f.length;y++)e.bMarks[y+t]=a[y],e.tShift[y+t]=f[y],e.sCount[y+t]=u[y],e.bsCount[y+t]=c[y];return e.blkIndent=g,!0}function gc(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++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,r=o;continue}break}e.line=r;const i=e.push("code_block","code",0);return i.content=`${e.getLines(t,r,4+e.blkIndent,!1)}
|
|
12
|
+
`,i.map=[t,e.line],!0}function kc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const s=e.src.charCodeAt(r);if(s!==126&&s!==96)return!1;let a=r;r=e.skipChars(r,s);let c=r-a;if(c<3)return!1;const u=e.src.slice(a,r),f=e.src.slice(r,i);if(s===96&&f.includes(String.fromCharCode(s)))return!1;if(o)return!0;let d=t,h=!1;for(;d++,!(d>=n||(r=a=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],r<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===s&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,s),!(r-a<c)&&(r=e.skipSpaces(r),!(r<i)))){h=!0;break}c=e.sCount[t],e.line=d+(h?1:0);const p=e.push("fence","code",0);return p.info=f,p.content=e.getLines(t+1,d,c,!0),p.markup=u,p.map=[t,e.line],!0}function Xo(e){switch(e){case 9:case 32:return!0}return!1}function vc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(r);if(s!==35||r>=i)return!1;let a=1;for(s=e.src.charCodeAt(++r);s===35&&r<i&&a<=6;)a++,s=e.src.charCodeAt(++r);if(a>6||r<i&&!Xo(s))return!1;if(o)return!0;i=e.skipSpacesBack(i,r);const c=e.skipCharsBack(i,35,r);c>r&&Xo(e.src.charCodeAt(c-1))&&(i=c),e.line=t+1;const u=e.push("heading_open",`h${String(a)}`,1);u.markup="########".slice(0,a),u.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(r,i).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close",`h${String(a)}`,-1);return d.markup="########".slice(0,a),!0}function wc(e){switch(e){case 9:case 32:return!0}return!1}function yc(e,t,n,o){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;i<r;){const u=e.src.charCodeAt(i++);if(u!==s&&!wc(u))return!1;u===s&&a++}if(a<3)return!1;if(o)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=new Array(a+1).join(String.fromCharCode(s)),!0}var xc=["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 bc=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,_c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Cc=new RegExp(`^(?:${bc}|${_c})`),Cn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp(`^</?(${xc.join("|")})(?=(\\s|/?>|$))`,"i"),/^$/,!0],[new RegExp(`${Cc.source}\\s*$`),/^$/,!1]];function Ec(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let s=e.src.slice(r,i),a=0;for(;a<Cn.length&&!Cn[a][0].test(s);a++);if(a===Cn.length)return!1;if(o)return Cn[a][2];let c=t+1;if(!Cn[a][1].test(s)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(r=e.bMarks[c]+e.tShift[c],i=e.eMarks[c],s=e.src.slice(r,i),Cn[a][1].test(s)){s.length!==0&&c++;break}}e.line=c;const u=e.push("html_block","",0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Sc(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 i=0,s,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let p=e.bMarks[a]+e.tShift[a];const m=e.eMarks[a];if(p<m&&(s=e.src.charCodeAt(p),(s===45||s===61)&&(p=e.skipChars(p,s),p=e.skipSpaces(p),p>=m))){i=s===61?1:2;break}}if(e.sCount[a]<0)continue;let h=!1;for(let p=0,m=o.length;p<m;p++)if(o[p](e,a,n,!0)){h=!0;break}if(h)break}if(!i)return!1;const c=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;const u=e.push("heading_open",`h${String(i)}`,1);u.markup=String.fromCharCode(s),u.map=[t,e.line];const f=e.push("inline","",0);f.content=c,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close",`h${String(i)}`,-1);return d.markup=String.fromCharCode(s),e.parentType=r,!0}function wl(e){switch(e){case 9:case 32:return!0}return!1}function Zo(e,t){const n=e.eMarks[t];let o=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(o++);return r!==42&&r!==45&&r!==43||o<n&&!wl(e.src.charCodeAt(o))?-1:o}function Yo(e,t){const n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];let r=n;if(r+1>=o)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=o)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<o&&(i=e.src.charCodeAt(r),!wl(i))?-1:r}function Mc(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&&e.tokens[o].type==="paragraph_open"&&(e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2)}function Bc(e,t,n,o){let r,i,s=0,a=t,c=!0;if(e.sCount[a]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[a]-e.listIndent>=4&&e.sCount[a]<e.blkIndent)return!1;let u=!1;o&&e.parentType==="paragraph"&&e.sCount[a]>=e.blkIndent&&(u=!0);let f,d,h;if((h=Yo(e,a))>=0){if(f=!0,s=e.bMarks[a]+e.tShift[a],d=Number(e.src.slice(s,h-1)),u&&d!==1)return!1}else if((h=Zo(e,a))>=0)f=!1;else return!1;if(u&&e.skipSpaces(h)>=e.eMarks[a])return!1;if(o)return!0;const p=e.src.charCodeAt(h-1),m=e.tokens.length;if(f){const y=e.push("ordered_list_open","ol",1);d!==void 0&&d!==1&&(y.attrs=[["start",String(d)]])}else e.push("bullet_list_open","ul",1);const g=[a,0];e.tokens[e.tokens.length-1].map=g,e.tokens[e.tokens.length-1].markup=String.fromCharCode(p);let w=!1;const S=e.md.block.ruler.getRules("list"),x=e.parentType;for(e.parentType="list";a<n;){i=h,r=e.eMarks[a];const y=e.sCount[a]+h-(e.bMarks[a]+e.tShift[a]);let _=y;for(;i<r;){const O=e.src.charCodeAt(i);if(O===9)_+=4-(_+e.bsCount[a])%4;else if(O===32)_++;else break;i++}const B=i;let k;B>=r?k=1:k=_-y,k>4&&(k=1);const M=y+k,b=e.push("list_item_open","li",1);b.markup=String.fromCharCode(p);const T=[a,0];b.map=T,f&&(b.info=e.src.slice(s,h-1));const H=e.tight,L=e.tShift[a],P=e.sCount[a],W=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=M,e.tight=!0,e.tShift[a]=B-e.bMarks[a],e.sCount[a]=_,B>=r&&e.isEmpty(a+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,a,n,!0),(!e.tight||w)&&(c=!1),w=e.line-a>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=W,e.tShift[a]=L,e.sCount[a]=P,e.tight=H,e.push("list_item_close","li",-1).markup=String.fromCharCode(p),a=e.line,T[1]=a,a>=n||e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)break;let K=!1;for(let O=0,F=S.length;O<F;O++)if(S[O](e,a,n,!0)){K=!0;break}if(K)break;if(f){if(h=Yo(e,a),h<0)break;s=e.bMarks[a]+e.tShift[a]}else if(h=Zo(e,a),h<0)break;if(p!==e.src.charCodeAt(h-1))break}return f?e.push("ordered_list_close","ol",-1).markup=String.fromCharCode(p):e.push("bullet_list_close","ul",-1).markup=String.fromCharCode(p),g[1]=a,e.line=a,e.parentType=x,c&&Mc(e,m),!0}function Ac(e,t,n){const o=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let u=!1;for(let f=0,d=o.length;f<d;f++)if(o[f](e,i,n,!0)){u=!0;break}if(u)break}const s=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i;const a=e.push("paragraph_open","p",1);a.map=[t,e.line];const c=e.push("inline","",0);return c.content=s,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}function lr(e){switch(e){case 9:case 32:return!0}return!1}function Dc(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ".toLowerCase()&&(e=e.toLowerCase()),e.toLowerCase().toUpperCase().toLowerCase()}function Tc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function a(x){const y=e.lineMax;if(x>=y||e.isEmpty(x))return null;let _=!1;if(e.sCount[x]-e.blkIndent>3&&(_=!0),e.sCount[x]<0&&(_=!0),!_){const M=e.md.block.ruler.getRules("reference"),b=e.parentType;e.parentType="reference";let T=!1;for(let H=0,L=M.length;H<L;H++)if(M[H](e,x,y,!0)){T=!0;break}if(e.parentType=b,T)return null}const B=e.bMarks[x]+e.tShift[x],k=e.eMarks[x];return e.src.slice(B,k+1)}let c=e.src.slice(r,i+1);i=c.length;let u=-1;for(r=1;r<i;r++){const x=c.charCodeAt(r);if(x===91)return!1;if(x===93){u=r;break}else if(x===10){const y=a(s);y!==null&&(c+=y,i=c.length,s++)}else if(x===92&&(r++,r<i&&c.charCodeAt(r)===10)){const y=a(s);y!==null&&(c+=y,i=c.length,s++)}}if(u<0||c.charCodeAt(u+1)!==58)return!1;for(r=u+2;r<i;r++){const x=c.charCodeAt(r);if(x===10){const y=a(s);y!==null&&(c+=y,i=c.length,s++)}else if(!lr(x))break}const f=e.md.helpers.parseLinkDestination(c,r,i);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;r=f.pos;const h=r,p=s,m=r;for(;r<i;r++){const x=c.charCodeAt(r);if(x===10){const y=a(s);y!==null&&(c+=y,i=c.length,s++)}else if(!lr(x))break}let g=e.md.helpers.parseLinkTitle(c,r,i);for(;g.can_continue;){const x=a(s);if(x===null)break;c+=x,r=i,i=c.length,s++,g=e.md.helpers.parseLinkTitle(c,r,i,g)}let w;for(r<i&&m!==r&&g.ok?(w=g.str,r=g.pos):(w="",r=h,s=p);r<i&&lr(c.charCodeAt(r));)r++;if(r<i&&c.charCodeAt(r)!==10&&w)for(w="",r=h,s=p;r<i&&lr(c.charCodeAt(r));)r++;if(r<i&&c.charCodeAt(r)!==10)return!1;const S=Dc(c.slice(1,u));return S?(o||(typeof e.env.references=="undefined"&&(e.env.references={}),typeof e.env.references[S]=="undefined"&&(e.env.references[S]={title:w,href:d}),e.line=s),!0):!1}function Ur(e){switch(e){case 9:case 32:return!0}return!1}const $c=65536;function Kr(e,t){const n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(n,o)}function Go(e){const t=[],n=e.length;let o=0,r=e.charCodeAt(o),i=!1,s=0,a="";for(;o<n;)r===124&&(i?(a+=e.substring(s,o-1),s=o):(t.push(a+e.substring(s,o)),a="",s=o+1)),i=r===92,o++,r=e.charCodeAt(o);return t.push(a+e.substring(s)),t}function Nc(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 i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[r])return!1;const a=e.src.charCodeAt(i++);if(a!==124&&a!==45&&a!==58&&!Ur(a)||s===45&&Ur(a))return!1;for(;i<e.eMarks[r];){const _=e.src.charCodeAt(i);if(_!==124&&_!==45&&_!==58&&!Ur(_))return!1;i++}let c=Kr(e,t+1),u=c.split("|");const f=[];for(let _=0;_<u.length;_++){const B=u[_].trim();if(!B){if(_===0||_===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(B))return!1;B.charCodeAt(B.length-1)===58?f.push(B.charCodeAt(0)===58?"center":"right"):B.charCodeAt(0)===58?f.push("left"):f.push("")}if(c=Kr(e,t).trim(),!c.includes("|")||e.sCount[t]-e.blkIndent>=4)return!1;u=Go(c),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const d=u.length;if(d===0||d!==f.length)return!1;if(o)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g;const w=e.push("thead_open","thead",1);w.map=[t,t+1];const S=e.push("tr_open","tr",1);S.map=[t,t+1];for(let _=0;_<u.length;_++){const B=e.push("th_open","th",1);f[_]&&(B.attrs=[["style",`text-align:${f[_]}`]]);const k=e.push("inline","",0);k.content=u[_].trim(),k.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let x,y=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let _=!1;for(let k=0,M=p.length;k<M;k++)if(p[k](e,r,n,!0)){_=!0;break}if(_||(c=Kr(e,r).trim(),!c)||e.sCount[r]-e.blkIndent>=4||(u=Go(c),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),y+=d-u.length,y>$c))break;if(r===t+2){const k=e.push("tbody_open","tbody",1);k.map=x=[t+2,0]}const B=e.push("tr_open","tr",1);B.map=[r,r+1];for(let k=0;k<d;k++){const M=e.push("td_open","td",1);f[k]&&(M.attrs=[["style",`text-align:${f[k]}`]]);const b=e.push("inline","",0);b.content=u[k]?u[k].trim():"",b.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return x&&(e.push("tbody_close","tbody",-1),x[1]=r),e.push("table_close","table",-1),g[1]=r,e.parentType=h,e.line=r,!0}var Ic=class{constructor(){Z(this,"_rules",[]);Z(this,"cache",null)}invalidateCache(){this.cache=null}push(e,t,n){this._rules.push({name:e,enabled:!0,fn:t,alt:(n==null?void 0:n.alt)||[]}),this.invalidateCache()}before(e,t,n,o){const r=this._rules.findIndex(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this._rules.findIndex(s=>s.name===t);i>=0&&this._rules.splice(i,1),this._rules.splice(r,0,{name:t,enabled:!0,fn:n,alt:(o==null?void 0:o.alt)||[]}),this.invalidateCache()}after(e,t,n,o){const r=this._rules.findIndex(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this._rules.findIndex(s=>s.name===t);i>=0&&this._rules.splice(i,1),this._rules.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:(o==null?void 0:o.alt)||[]}),this.invalidateCache()}getRules(e){var n;const t=e||"";return this.cache||this.compileCache(),(n=this.cache.get(t))!=null?n:[]}at(e,t,n){const o=this._rules.findIndex(r=>r.name===e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this._rules[o].fn=t,n!=null&&n.alt&&(this._rules[o].alt=n.alt),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{const i=this._rules.findIndex(s=>s.name===r);if(i===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${r}`)}this._rules[i].enabled||(this._rules[i].enabled=!0,o.push(r))}),o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{const i=this._rules.findIndex(s=>s.name===r);if(i===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${r}`)}this._rules[i].enabled&&(this._rules[i].enabled=!1,o.push(r))}),o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const o of this._rules){const r=t.has(o.name);o.enabled!==r&&(o.enabled=r,n=!0)}n&&this.invalidateCache()}compileCache(){const e=new Set([""]);for(const n of this._rules)if(n.enabled)for(const o of n.alt)e.add(o);const t=new Map;for(const n of e){const o=[];for(const r of this._rules)r.enabled&&(n!==""&&!r.alt.includes(n)||o.push(r.fn));t.set(n,o)}this.cache=t}};function sr(e){switch(e){case 9:case 32:return!0}return!1}var Fc=class{constructor(e,t,n,o){Z(this,"src");Z(this,"md");Z(this,"env");Z(this,"tokens");Z(this,"Token");Z(this,"bMarks",[]);Z(this,"eMarks",[]);Z(this,"tShift",[]);Z(this,"sCount",[]);Z(this,"bsCount",[]);Z(this,"blkIndent",0);Z(this,"line",0);Z(this,"lineMax",0);Z(this,"tight",!1);Z(this,"ddIndent",-1);Z(this,"listIndent",-1);Z(this,"parentType","root");Z(this,"level",0);this.src=e,this.md=t,this.env=n,this.tokens=o,this.Token=ht;const r=this.src;let i=0,s=0,a=0,c=!1;for(let u=0,f=r.length;u<f;u++){const d=r.charCodeAt(u);if(!c)if(sr(d)){i++,d===9?s+=4-s%4:s++;continue}else c=!0;(d===10||u===f-1)&&(d!==10&&u++,this.bMarks.push(a),this.eMarks.push(u),this.tShift.push(i),this.sCount.push(s),this.bsCount.push(0),c=!1,i=0,s=0,a=u+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 ht(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&&sr(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!sr(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 i=0,s=e;s<t;s++,i++){let a=0;const c=this.bMarks[s];let u=c,f;for(s+1<t||o?f=this.eMarks[s]+1:f=this.eMarks[s];u<f&&a<n;){const d=this.src.charCodeAt(u);if(sr(d))d===9?a+=4-(a+this.bsCount[s])%4:a++;else if(u-c<this.tShift[s])a++;else break;u++}a>n?r[i]=new Array(a-n+1).join(" ")+this.src.slice(u,f):r[i]=this.src.slice(u,f)}return r.join("")}};const ar=[["table",Nc,["paragraph","reference"]],["code",gc],["fence",kc,["paragraph","reference","blockquote","list"]],["blockquote",mc,["paragraph","reference","blockquote","list"]],["hr",yc,["paragraph","reference","blockquote","list"]],["list",Bc,["paragraph","reference","blockquote"]],["reference",Tc],["html_block",Ec,["paragraph","reference","blockquote"]],["heading",vc,["paragraph","reference","blockquote"]],["lheading",Sc],["paragraph",Ac]];var Rc=class{constructor(){Z(this,"ruler");this.ruler=new Ic;for(let e=0;e<ar.length;e++)this.ruler.push(ar[e][0],ar[e][1],{alt:(ar[e][2]||[]).slice()})}tokenize(e,t,n){const o=this.ruler.getRules(""),r=o.length,i=e.md.options.maxNesting;let s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=i){e.line=n;break}const c=e.line;let u=!1;for(let f=0;f<r;f++)if(u=o[f](e,s,n,!1),u){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!u)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}}parse(e,t,n,o){if(!e)return;const r=new Fc(e,t,n,o);this.tokenize(r,r.line,r.lineMax)}};const Lc=/^[\w.!#$%&'*+/=?^`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,Pc=/^[a-z][a-z0-9+.-]{1,31}:[^<>\x00-\x20]*$/i;function Oc(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const o=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const i=e.src.slice(o+1,n);if(Pc.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const u=e.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return e.pos+=i.length+2,!0}if(Lc.test(i)){const s=e.md.normalizeLink(`mailto:${i}`);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const u=e.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return e.pos+=i.length+2,!0}return!1}var zc=Oc;function Vc(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const r=e.posMax;for(;n<r&&e.src.charCodeAt(n)===96;)n++;const i=e.src.slice(o,n),s=i.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=i),e.pos+=s,!0;let a=n,c;for(;(c=e.src.indexOf("`",a))!==-1;){for(a=c+1;a<r&&e.src.charCodeAt(a)===96;)a++;const u=a-c;if(u===s){if(!t){const f=e.push("code_inline","code",0);f.markup=i,f.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[u]=c}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}var jc=Vc;function Jo(e){const t={},n=e.length;if(!n)return;let o=0,r=-2;const i=[];for(let s=0;s<n;s++){const a=e[s];if(i.push(0),(e[o].marker!==a.marker||r!==a.token-1)&&(o=s),r=a.token,a.length=a.length||0,!a.close)continue;Object.prototype.hasOwnProperty.call(t,a.marker)||(t[a.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[a.marker][(a.open?3:0)+a.length%3];let u=o-i[o]-1,f=u;for(;u>c;u-=i[u]+1){const d=e[u];if(d.marker===a.marker&&d.open&&d.end<0){let h=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(h=!0),!h){const p=u>0&&!e[u-1].open?i[u-1]+1:0;i[s]=s-u+p,i[u]=p,a.open=!1,d.end=s,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=f)}}function Hc(e){const t=e.tokens_meta,n=e.tokens_meta.length;Jo(e.delimiters);for(let o=0;o<n;o++)t[o]&&t[o].delimiters&&Jo(t[o].delimiters)}var qc=Hc;function Wc(e,t){const n=e.pos,o=e.src.charCodeAt(n);if(t||o!==95&&o!==42)return!1;const r=e.scanDelims(e.pos,o===42);if(!r||r.length===0)return!1;for(let i=0;i<r.length;i++){const s=e.push("text","",0);s.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 Qo(e,t){const n=t.length;for(let o=n-1;o>=0;o--){const r=t[o];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],s=o>0&&t[o-1].end===r.end+1&&t[o-1].marker===r.marker&&t[o-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),c=e.tokens[r.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?a+a:a,c.content="";const u=e.tokens[i.token];u.type=s?"strong_close":"em_close",u.tag=s?"strong":"em",u.nesting=-1,u.markup=s?a+a:a,u.content="",s&&(e.tokens[t[o-1].token].content="",e.tokens[t[r.end+1].token].content="",o--)}}function Uc(e){const t=e.tokens_meta,n=e.tokens_meta.length;Qo(e,e.delimiters);for(let o=0;o<n;o++)t[o]&&t[o].delimiters&&Qo(e,t[o].delimiters)}const ei={tokenize:Wc,postProcess:Uc},Kc=/^&#(x[a-f0-9]{1,6}|\d{1,7});/i,Xc=/^&([a-z][a-z0-9]{1,31});/i,ti={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};function Zc(e){return!(e>=55296&&e<=57343||e>=1114111)}function ni(e){return String.fromCodePoint(e)}function Yc(e){const t=e.match(/^&([a-z][a-z0-9]{1,31});/i);return t&&ti[t[1]]?ti[t[1]]:e}function Gc(e,t){const n=e.pos,o=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=o)return!1;if(e.src.charCodeAt(n+1)===35){const r=e.src.slice(n).match(Kc);if(r){if(!t){const i=r[1][0].toLowerCase()==="x"?Number.parseInt(r[1].slice(1),16):Number.parseInt(r[1],10),s=e.push("text_special","",0);s.content=Zc(i)?ni(i):ni(65533),s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Xc);if(r){const i=Yc(r[0]);if(i!==r[0]){if(!t){const s=e.push("text_special","",0);s.content=i,s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}}return!1}var Jc=Gc;const Qc=[92,96,42,95,123,125,91,93,40,41,35,43,45,46,33,124];function eu(e,t){const{pos:n,posMax:o,src:r}=e;if(r.charCodeAt(n)!==92)return!1;const i=n+1;if(i>=o)return!1;const s=r.charCodeAt(i);return s===10?(t||e.push("hardbreak","br",0),e.pos+=2,!0):s<128&&Qc.includes(s)?(t||(e.pending+=r[i]),e.pos+=2,!0):!1}var tu=eu;function nu(e){var s;let t,n,o=0;const r=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++){const a=r[t];a&&(a.nesting&&a.nesting<0&&o--,a.level=o,a.nesting&&a.nesting>0&&o++,a.type==="text"&&t+1<i&&((s=r[t+1])==null?void 0:s.type)==="text"?r[t+1].content=a.content+r[t+1].content:(t!==n&&(r[n]=a),n++))}t!==n&&(r.length=n)}var ru=nu;const ou=/^<\/?[a-z][a-z0-9-]*(?:\s+[a-z_:][\w:.-]*(?:\s*=\s*(?:[^"'=<>`\s]+|'[^']*'|"[^"]*"))?)*\s*\/?>/i;function iu(e){return/^<a[>\s]/i.test(e)}function lu(e){return/^<\/a\s*>/i.test(e)}function su(e){const t=e|32;return t>=97&&t<=122}function au(e,t){if(!e.md.options.html)return!1;const n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==60||o+2>=n)return!1;const r=e.src.charCodeAt(o+1);if(r!==33&&r!==63&&r!==47&&!su(r))return!1;const i=e.src.slice(o).match(ou);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],iu(s.content)&&e.linkLevel++,lu(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}var cu=au;function uu(e,t){let n,o,r,i,s,a,c,u,f="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=wr(e,e.pos+1,!1);if(m<0)return!1;if(i=m+1,i<h&&e.src.charCodeAt(i)===40){for(i++;i<h&&(n=e.src.charCodeAt(i),!(n!==32&&n!==10));i++);if(i>=h)return!1;if(u=i,a=hl(e.src,i,e.posMax),a.ok){for(f=e.md.normalizeLink(a.str),e.md.validateLink(f)?i=a.pos:f="";i<h&&(n=e.src.charCodeAt(i),!(n!==32&&n!==10));i++);if(a=pl(e.src,i,e.posMax),i<h&&a.ok)for(c=a.str,i=a.pos;i<h&&(n=e.src.charCodeAt(i),!(n!==32&&n!==10));i++);else c=""}if(i>=h||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references=="undefined")return!1;if(i<h&&e.src.charCodeAt(i)===91?(u=i+1,i=wr(e,i),i>=0?r=e.src.slice(u,i++):i=m+1):i=m+1,r||(r=e.src.slice(p,m)),s=e.env.references[r&&r.toLowerCase()],!s)return e.pos=d,!1;f=s.href,c=s.title}if(!t){o=e.src.slice(p,m);const g=[];e.md.inline.parse(o,e.md,e.env,g);const w=e.push("image","img",0);w.attrs=[["src",f],["alt",""]],w.children=g,w.content=o,c&&w.attrs.push(["title",c])}return e.pos=i,e.posMax=h,!0}var du=uu;function fu(e,t){let n,o,r,i,s="",a="",c=e.pos,u=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,h=e.pos+1,p=wr(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(u=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);if(m>=d)return!1;if(c=m,r=hl(e.src,m,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?m=r.pos:s="";m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);if(r=pl(e.src,m,e.posMax),m<d&&r.ok)for(a=r.str,m=r.pos;m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(u=!0),m++}if(u){if(typeof e.env.references=="undefined")return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=wr(e,m),m>=0?o=e.src.slice(c,m++):m=p+1):m=p+1,o||(o=e.src.slice(h,p)),i=e.env.references[o&&o.toLowerCase()],!i)return e.pos=f,!1;s=i.href,a=i.title}if(!t){e.pos=h,e.posMax=p;const g=e.push("link_open","a",1),w=[["href",s]];g.attrs=w,a&&w.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}var hu=fu;const pu=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function mu(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,o=e.posMax;if(n+3>o||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(pu);if(!r)return!1;const i=r[1],s=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!s)return!1;let a=s.url;if(a.length<=i.length)return!1;a=a.replace(/\*+$/,"");const c=e.md.normalizeLink(a);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const u=e.push("link_open","a",1);u.attrs=[["href",c]],u.markup="linkify",u.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(a);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=a.length-i.length,!0}function gu(e,t){const{pos:n,src:o,posMax:r}=e;if(o.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,s=r;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let a=i-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),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<s&&o.charCodeAt(e.pos)===32;)e.pos++;return!0}var ku=gu;function vu(e,t){const n=e.pos,o=e.src.charCodeAt(n);if(t||o!==126)return!1;const r=e.scanDelims(e.pos,!0);if(!r)return!1;let i=r.length;const s=String.fromCharCode(o);if(i<2)return!1;let a;i%2&&(a=e.push("text","",0),a.content=s,i--);for(let c=0;c<i;c+=2)a=e.push("text","",0),a.content=s+s,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 ri(e,t){let n;const o=[],r=t.length;for(let i=0;i<r;i++){const s=t[i];if(s.marker!==126||s.end===-1)continue;const a=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[a.token-1].type==="text"&&e.tokens[a.token-1].content==="~"&&o.push(a.token-1)}for(;o.length;){const i=o.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=n)}}function wu(e){const t=e.delimiters;ri(e,t);const n=e.tokens_meta;if(n)for(let o=0;o<n.length;o++)n[o]&&n[o].delimiters&&ri(e,n[o].delimiters)}const oi={tokenize:vu,postProcess:wu};function yu(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 xu(e,t){let n=e.pos;for(;n<e.posMax&&!yu(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var bu=xu,ii=class{constructor(){Z(this,"rules",[]);Z(this,"cache",null)}invalidateCache(){this.cache=null}push(e,t,n){const o=this.rules.findIndex(r=>r.name===e);o>=0&&this.rules.splice(o,1),this.rules.push({name:e,fn:t,alt:(n==null?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(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this.rules.findIndex(s=>s.name===t);i>=0&&this.rules.splice(i,1),this.rules.splice(r,0,{name:t,fn:n,alt:(o==null?void 0:o.alt)||[],enabled:!0}),this.invalidateCache()}after(e,t,n,o){const r=this.rules.findIndex(s=>s.name===e);if(r<0)throw new Error(`Parser rule not found: ${e}`);const i=this.rules.findIndex(s=>s.name===t);i>=0&&this.rules.splice(i,1),this.rules.splice(r+1,0,{name:t,fn:n,alt:(o==null?void 0:o.alt)||[],enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const r of n){const i=this.rules.findIndex(s=>s.name===r);if(i<0){if(!t)throw new Error(`Rules manager: invalid rule name ${r}`);continue}this.rules[i].enabled||(this.rules[i].enabled=!0,o.push(r))}return o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const r of n){const i=this.rules.findIndex(s=>s.name===r);if(i<0){if(!t)throw new Error(`Rules manager: invalid rule name ${r}`);continue}this.rules[i].enabled&&(this.rules[i].enabled=!1,o.push(r))}return o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const o of this.rules){const r=t.has(o.name);o.enabled!==r&&(o.enabled=r,n=!0)}n&&this.invalidateCache()}getRules(e){var n;const t=e||"";return this.cache||this.compileCache(),(n=this.cache.get(t))!=null?n:[]}compileCache(){var n;const e=new Set([""]);for(const o of this.rules)if(o.enabled&&o.alt)for(const r of o.alt)e.add(r);const t=new Map;for(const o of e){const r=[];for(const i of this.rules)i.enabled&&(o!==""&&!((n=i.alt)!=null&&n.includes(o))||r.push(i.fn));t.set(o,r)}this.cache=t}},_u=class{constructor(e,t,n,o){Z(this,"src");Z(this,"md");Z(this,"env");Z(this,"outTokens");Z(this,"tokens");Z(this,"tokens_meta");Z(this,"pos");Z(this,"posMax");Z(this,"level");Z(this,"pending");Z(this,"pendingLevel");Z(this,"cache");Z(this,"delimiters");Z(this,"_prev_delimiters");Z(this,"backticks");Z(this,"backticksScanned");Z(this,"linkLevel");Z(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=ht}pushPending(){const e=new ht("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 ht(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 i=e,s=0;for(;i<o&&n.charCodeAt(i)===r;)s++,i++;if(s<1)return null;const a=e>0?n.charCodeAt(e-1):32,c=i<o?n.charCodeAt(i):32,u=a===32||a===10,f=c===32||c===10,d=a===32,h=c===32;let p=!0,m=!0;return h?p=!1:f&&(d||u||(p=!1)),d?m=!1:u&&(h||f||(m=!1)),t||(p=p&&(!u||d),m=m&&(!f||h)),{can_open:p,can_close:m,length:s}}},Cu=class{constructor(){Z(this,"ruler");Z(this,"ruler2");this.ruler=new ii,this.ruler2=new ii,this.ruler.push("text",bu),this.ruler.push("linkify",mu),this.ruler.push("newline",ku),this.ruler.push("escape",tu),this.ruler.push("backticks",jc),this.ruler.push("strikethrough",oi.tokenize),this.ruler.push("emphasis",ei.tokenize),this.ruler.push("link",hu),this.ruler.push("image",du),this.ruler.push("autolink",zc),this.ruler.push("html_inline",cu),this.ruler.push("entity",Jc),this.ruler2.push("balance_pairs",qc),this.ruler2.push("strikethrough",oi.postProcess),this.ruler2.push("emphasis",ei.postProcess),this.ruler2.push("fragments_join",ru)}skipToken(e){var a,c;const t=e.pos,n=this.ruler.getRules(""),o=n.length,r=e.posMax,i=((c=(a=e.md)==null?void 0:a.options)==null?void 0:c.maxNesting)||100;if(typeof e.cache[t]!="undefined"){e.pos=e.cache[t];return}let s=!1;if(e.level<i){for(let u=0;u<o;u++)if(e.level++,s=n[u](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=r;s||e.pos++,e.cache[t]=e.pos}tokenize(e){var i,s;const t=this.ruler.getRules(""),n=t.length,o=e.posMax,r=((s=(i=e.md)==null?void 0:i.options)==null?void 0:s.maxNesting)||100;for(;e.pos<o;){const a=e.pos;let c=!1;if(e.level<r){for(let u=0;u<n;u++)if(c=t[u](e,!1),c){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(c){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,o){const r=new _u(e,t,n,o);this.tokenize(r);const i=this.ruler2.getRules(""),s=i.length;for(let a=0;a<s;a++)i[a](r,!1)}},Eu=class{constructor(e,t,n={}){Z(this,"src");Z(this,"env");Z(this,"tokens");Z(this,"inlineMode");Z(this,"md");Z(this,"Token");this.src=e||"",this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t,this.Token=ht}};const li=[["normalize",sc],["block",ec],["inline",tc],["linkify",oc],["replacements",ac],["smartquotes",fc],["text_join",hc]],Su={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:100},Mu={parseLinkLabel:vo,parseLinkDestination:ko,parseLinkTitle:wo};function Bu(){return ne({},Su)}function Au(){return ne({},Mu)}var Du=class{constructor(){Z(this,"fallbackParser");Z(this,"lastState",null);Z(this,"block");Z(this,"inline");Z(this,"ruler");Z(this,"linkifyInstance",null);Z(this,"cachedCoreRules",null);this.block=new Rc,this.inline=new Cu,this.ruler=new cc;for(let e=0;e<li.length;e++){const[t,n]=li[e];this.ruler.push(t,n)}this.fallbackParser={block:this.block,inline:this.inline,core:this,options:Bu(),helpers:Au(),normalizeLink:kl,normalizeLinkText:vl,validateLink:gl,linkify:null}}resolveParser(e){return e||(this.linkifyInstance||(this.linkifyInstance=new ol),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 Eu(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(typeof e!="string")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:[]}},Tu={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1}},$u={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Nu={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 Iu=/[&<>"]/,Fu=/[&<>"]/g,Ru={"&":"&","<":"<",">":">",'"':"""};function Lu(e){return Ru[e]||e}function En(e){return Iu.test(e)?e.replace(Fu,Lu):e}const Pu=new RegExp(`${/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Ou=/^#(?:x[a-f0-9]{1,8}|\d{1,8})$/i;function zu(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(Pu,(t,n,o)=>{if(n)return n;if(Ou.test(o)){const r=o[1].toLowerCase()==="x"?Number.parseInt(o.slice(2),16):Number.parseInt(o.slice(1),10);return r>=55296&&r<=57343||r>=128&&r<=159?"�":String.fromCodePoint(r)}return t})}const xo=e=>!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function",si=(e,t)=>{if(xo(e))throw new TypeError(`Renderer rule "${t}" returned a Promise. Use renderAsync() instead.`);return e},ai=e=>xo(e)?e:Promise.resolve(e),Xr=(e,t,n,o,r,i)=>{if(t.startsWith("<pre"))return`${t}
|
|
13
|
+
`;if(n){const s=typeof e.attrIndex=="function"?e.attrIndex("class"):-1,a=e.attrs?e.attrs.map(f=>f.slice()):[],c=`${r.langPrefix||"language-"}${o}`;s<0?a.push(["class",c]):a[s][1]+=` ${c}`;const u=Ve(ne({},e),{attrs:a});return`<pre><code${i.renderAttrs(u)}>${t}</code></pre>
|
|
14
14
|
`}return`<pre><code${i.renderAttrs(e)}>${t}</code></pre>
|
|
15
|
-
`},Vu={langPrefix:"language-",xhtmlOut:!1,breaks:!1},
|
|
16
|
-
`},fence(e,t,n,o,r){const i=e[t],s=i.info?zu(i.info).trim():"";let a="",c="";if(s){const h=s.split(/(\s+)/g);a=h[0],c=h.slice(2).join("")}const u=n.highlight,f=()=>En(i.content);if(!u)return
|
|
15
|
+
`},Vu={langPrefix:"language-",xhtmlOut:!1,breaks:!1},cr=Object.prototype.hasOwnProperty,ju={code_inline(e,t,n,o,r){const i=e[t];return`<code${r.renderAttrs(i)}>${En(i.content)}</code>`},code_block(e,t,n,o,r){const i=e[t];return`<pre${r.renderAttrs(i)}><code>${En(i.content)}</code></pre>
|
|
16
|
+
`},fence(e,t,n,o,r){const i=e[t],s=i.info?zu(i.info).trim():"";let a="",c="";if(s){const h=s.split(/(\s+)/g);a=h[0],c=h.slice(2).join("")}const u=n.highlight,f=()=>En(i.content);if(!u)return Xr(i,f(),s,a,n,r);const d=u(i.content,a,c);return xo(d)?d.then(h=>Xr(i,h||f(),s,a,n,r)):Xr(i,d||f(),s,a,n,r)},image(e,t,n,o,r){const i=e[t],s=r.renderInlineAsText(i.children||[],n,o);if(typeof i.attrIndex=="function"){const a=i.attrIndex("alt");a>=0&&i.attrs?i.attrs[a][1]=s:i.attrs?i.attrs.push(["alt",s]):i.attrs=[["alt",s]]}return r.renderToken(e,t,n)},hardbreak(e,t,n){return n.xhtmlOut?`<br />
|
|
17
17
|
`:`<br>
|
|
18
18
|
`},softbreak(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
19
19
|
`:`<br>
|
|
20
20
|
`:`
|
|
21
|
-
`},text(e,t){return En(e[t].content)},html_block(e,t){return e[t].content},html_inline(e,t){return e[t].content}};var Hu=class{constructor(e={}){
|
|
21
|
+
`},text(e,t){return En(e[t].content)},html_block(e,t){return e[t].content},html_inline(e,t){return e[t].content}};var Hu=class{constructor(e={}){Z(this,"rules");Z(this,"baseOptions");Z(this,"normalizedBase");Z(this,"bufferPool");this.baseOptions=ne({},e),this.normalizedBase=this.buildNormalizedBase(),this.rules=ne({},ju),this.bufferPool=[]}set(e){return this.baseOptions=ne(ne({},this.baseOptions),e),this.normalizedBase=this.buildNormalizedBase(),this}render(e,t={},n={}){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");const o=this.mergeOptions(t),r=this.acquireBuffer();for(let s=0;s<e.length;s++){const a=e[s];if(a.type==="inline"){this.pushInlineTokens(a.children||[],o,n,r);continue}const c=this.rules[a.type];c?r.push(si(c(e,s,o,n,this),a.type)):r.push(this.renderToken(e,s,o))}const i=r.join("");return this.releaseBuffer(r),i}renderAsync(o){return ee(this,arguments,function*(e,t={},n={}){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");const r=this.mergeOptions(t),i=this.acquireBuffer();for(let a=0;a<e.length;a++){const c=e[a];if(c.type==="inline"){yield this.pushInlineTokensAsync(c.children||[],r,n,i);continue}const u=this.rules[c.type];u?i.push(yield ai(u(e,a,r,n,this))):i.push(this.renderToken(e,a,r))}const s=i.join("");return this.releaseBuffer(i),s})}renderInline(e,t={},n={}){const o=this.mergeOptions(t),r=this.acquireBuffer();this.pushInlineTokens(e,o,n,r);const i=r.join("");return this.releaseBuffer(r),i}renderInlineAsync(o){return ee(this,arguments,function*(e,t={},n={}){const r=this.mergeOptions(t),i=this.acquireBuffer();yield this.pushInlineTokensAsync(e,r,n,i);const s=i.join("");return this.releaseBuffer(i),s})}renderInlineAsText(e,t={},n={}){const o=this.mergeOptions(t),r=this.acquireBuffer();this.renderInlineAsTextInternal(e,o,n,r);const i=r.join("");return this.releaseBuffer(r),i}renderAttrs(e){if(!e.attrs||e.attrs.length===0)return"";let t="";for(let n=0;n<e.attrs.length;n++){const o=e.attrs[n];t+=` ${En(o[0])}="${En(o[1])}"`}return t}renderToken(e,t,n){const o=e[t];if(o.hidden)return"";let r="";o.block&&o.nesting!==-1&&t>0&&e[t-1].hidden&&(r+=`
|
|
22
22
|
`),r+=o.nesting===-1?`</${o.tag}`:`<${o.tag}`,r+=this.renderAttrs(o),o.nesting===0&&n.xhtmlOut&&(r+=" /");let i=!1;if(o.block&&(i=!0,o.nesting===1&&t+1<e.length)){const s=e[t+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===o.tag)&&(i=!1)}return r+=i?`>
|
|
23
|
-
`:">",r}mergeOptions(e){const t=this.normalizedBase;if(!e)return t;let n=null;const o=()=>(n||(n=ne({},t)),n);if(
|
|
23
|
+
`:">",r}mergeOptions(e){const t=this.normalizedBase;if(!e)return t;let n=null;const o=()=>(n||(n=ne({},t)),n);if(cr.call(e,"highlight")&&e.highlight!==t.highlight&&(o().highlight=e.highlight),cr.call(e,"langPrefix")){const r=e.langPrefix;r!==t.langPrefix&&(o().langPrefix=r)}if(cr.call(e,"xhtmlOut")){const r=e.xhtmlOut;r!==t.xhtmlOut&&(o().xhtmlOut=r)}if(cr.call(e,"breaks")){const r=e.breaks;r!==t.breaks&&(o().breaks=r)}return n||t}buildNormalizedBase(){return Object.freeze(ne(ne({},Vu),this.baseOptions))}pushInlineTokens(e,t,n,o){for(let r=0;r<e.length;r++){const i=e[r],s=this.rules[i.type];s?o.push(si(s(e,r,t,n,this),i.type)):o.push(this.renderToken(e,r,t))}}pushInlineTokensAsync(e,t,n,o){return ee(this,null,function*(){for(let r=0;r<e.length;r++){const i=e[r],s=this.rules[i.type];s?o.push(yield ai(s(e,r,t,n,this))):o.push(this.renderToken(e,r,t))}})}renderInlineAsTextInternal(e,t,n,o){for(let r=0;r<e.length;r++){const i=e[r];switch(i.type){case"text":o.push(i.content);break;case"image":this.renderInlineAsTextInternal(i.children||[],t,n,o);break;case"html_inline":case"html_block":o.push(i.content);break;case"softbreak":case"hardbreak":o.push(`
|
|
24
24
|
`);break}}}acquireBuffer(){const e=this.bufferPool.pop();return e?(e.length=0,e):[]}releaseBuffer(e){e.length=0,this.bufferPool.push(e)}},qu=Hu;const Wu={maxChunkChars:1e4,maxChunkLines:200,fenceAware:!0,maxChunks:void 0};function Sn(e,t,n={},o){const r=ne(ne({},Wu),o||{});let i=Uu(t,r);if(r.maxChunks&&i.length>r.maxChunks){const c=r.maxChunks-1,u=i.slice(0,c),f=i.slice(c).join(`
|
|
25
25
|
`);i=[...u,f]}let s=0;const a=[];try{n.__mdtsChunkInfo={count:i.length,maxChunkChars:r.maxChunkChars,maxChunkLines:r.maxChunkLines}}catch(c){}for(const c of i){const u=e.core.parse(c,n,e).tokens;s!==0&&u.length&&Ku(u,s),a.push(...u),s+=Ut(c)}return a}function Uu(e,t){const n=e.split(`
|
|
26
26
|
`),o=[];let r=[],i=0,s=0,a=0,c=0,u=null;function f(){r.length>0&&(o.push(r.join(`
|
|
27
|
-
`)),r=[],i=0,s=0)}for(let d=0;d<n.length;d++){const h=n[d],p=h.trim();if(t.fenceAware){let w=0;for(;w<h.length;){const x=h.charCodeAt(w);if(x===32||x===9)w++;else break}const
|
|
27
|
+
`)),r=[],i=0,s=0)}for(let d=0;d<n.length;d++){const h=n[d],p=h.trim();if(t.fenceAware){let w=0;for(;w<h.length;){const x=h.charCodeAt(w);if(x===32||x===9)w++;else break}const S=h[w];if(S==="`"||S==="~"){let x=w;for(;x<h.length&&h[x]===S;)x++;const y=x-w;y>=3&&(u?u.marker===S&&y>=u.length&&(u=null):u={marker:S,length:y})}}r.push(h);const m=h.length+1;i+=m,s+=1,p.length===0?(a=0,c=0):(a+=1,c+=m);const g=p.length===0;if((i>=t.maxChunkChars||s>=t.maxChunkLines)&&!u)if(g)f();else{const w=Math.max(10,Math.floor(t.maxChunkLines*.5)),S=Math.max(t.maxChunkChars,8e3);(a>=w||c>=S)&&f()}}return f(),o}function Ku(e,t){if(t===0)return;const n=[...e];for(;n.length;){const o=n.pop();if(o.map&&(o.map[0]+=t,o.map[1]+=t),o.children)for(let r=o.children.length-1;r>=0;r--)n.push(o.children[r])}}const Xu=[];function ci(){return{total:0,cacheHits:0,appendHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:"idle"}}var Zu=class{constructor(e){Z(this,"core");Z(this,"cache",null);Z(this,"stats",ci());Z(this,"MIN_SIZE_FOR_OPTIMIZATION",1e3);Z(this,"DEFAULT_SKIP_CACHE_CHARS",6e5);Z(this,"DEFAULT_SKIP_CACHE_LINES",1e4);Z(this,"MAX_CHUNKS_FOR_FALLBACK",24);Z(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=ci(),this.stats.resets=e}parse(e,t,n){var S,x,y,_,B,k,M,b,T,H,L,P,W,K,O,F,V,j,Y,J,te,re,_e,he,pe;const o=t,r=this.cache;if(!r||o&&o!==r.env){const ie=o!=null?o:{},z=!!((S=n.options)!=null&&S.streamChunkedFallback),R=((x=n.options)==null?void 0:x.streamChunkAdaptive)!==!1,q=(_=(y=n.options)==null?void 0:y.streamChunkTargetChunks)!=null?_:8,Q=(B=n.options)==null?void 0:B.streamChunkSizeChars,oe=(k=n.options)==null?void 0:k.streamChunkSizeLines,Ce=((M=n.options)==null?void 0:M.autoTuneChunks)!==!1,ge=(T=(b=n.options)==null?void 0:b.streamChunkFenceAware)!=null?T:!0,Ie=(L=(H=n.options)==null?void 0:H.streamSkipCacheAboveChars)!=null?L:this.DEFAULT_SKIP_CACHE_CHARS,je=(W=(P=n.options)==null?void 0:P.streamSkipCacheAboveLines)!=null?W:this.DEFAULT_SKIP_CACHE_LINES;let Fe,Oe=e.length>=Ie;if(!Oe&&je!==void 0&&(Fe=Ut(e),Oe=Fe>=je),Oe){const ae=this.core.parse(e,ie,n).tokens;return this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",ae}else if(z&&e.length<this.MAX_CHUNKED_DOC_CHARS){const ae=(ze,yt,Ge)=>ze<yt?yt:ze>Ge?Ge:ze;Fe===void 0&&(Fe=Ut(e));let me=R?ae(Math.ceil(e.length/q),8e3,32e3):Q!=null?Q:1e4,He=R?ae(Math.ceil(Fe/q),150,350):oe!=null?oe:200;Ce&&!Q&&!oe&&(e.length<=5e3?(me=16e3,He=250):e.length<=2e4?(me=16e3,He=200):e.length<=5e4?(me=16e3,He=250):e.length<=1e5?(me=1e4,He=200):(me=2e4,He=200));const vt=e.length>0&&e.charCodeAt(e.length-1)===10,wt=Math.ceil(e.length/me);if((e.length>=me*2||Fe>=He*2)&&vt&&wt<=this.MAX_CHUNKS_FOR_FALLBACK){const ze=Sn(n,e,ie,{maxChunkChars:me,maxChunkLines:He,fenceAware:ge});return this.cache={src:e,tokens:ze,env:ie,lineCount:Fe},this.stats.total+=1,this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode="chunked",ze}}const De=this.core.parse(e,ie,n).tokens;return this.cache={src:e,tokens:De,env:ie,lineCount:Fe},this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",De}if(e===r.src)return this.stats.total+=1,this.stats.cacheHits+=1,this.stats.lastMode="cache",r.tokens;const i=(O=(K=n.options)==null?void 0:K.streamOptimizationMinSize)!=null?O:this.MIN_SIZE_FOR_OPTIMIZATION;if(r.src.length<i&&e.length<i*1.5&&!e.startsWith(r.src)){const ie=o!=null?o:r.env,z=this.core.parse(e,ie,n).tokens;return this.cache={src:e,tokens:z,env:ie,lineCount:Ut(e)},this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",z}const s=this.getAppendedSegment(r.src,e);if(s){const ie=(F=r.lineCount)!=null?F:Ut(r.src);let z=3;s.length>5e3?z=8:s.length>1e3?z=6:s.length>200&&(z=4),z=Math.min(z,ie);let R=null;if(z>0){const q=r.src.split(`
|
|
28
28
|
`),Q=Math.max(0,q.length-z),oe=q.slice(Q).join(`
|
|
29
|
-
`)+s;try{const
|
|
29
|
+
`)+s;try{const Ce=this.core.parse(oe,r.env,n).tokens,ge=Ce.findIndex(Ie=>Ie.map&&Ie.map[0]>=z);if(ge!==-1){const Ie=Ce.slice(ge),je=ie-z;je!==0&&this.shiftTokenLines(Ie,je),R={tokens:Ie}}}catch(Ce){R=null}}if(!R){const q=this.core.parse(s,r.env,n),Q=ie;Q>0&&this.shiftTokenLines(q.tokens,Q),R=q}if(r.tokens.length>0&&R.tokens.length>0){const q=r.tokens[r.tokens.length-1],Q=R.tokens[0];try{q.type==="inline"&&Q.type==="inline"&&(Q.children&&Q.children.length>0&&(q.children||(q.children=[]),q.children.push(...Q.children)),q.content=(q.content||"")+(Q.content||""),R.tokens.shift())}catch(oe){}}return R.tokens.length>0&&r.tokens.push(...R.tokens),r.src=e,r.lineCount=ie+Ut(s),this.stats.total+=1,this.stats.appendHits+=1,this.stats.lastMode="append",r.tokens}const a=o!=null?o:r.env,c=!!((V=n.options)!=null&&V.streamChunkedFallback),u=((j=n.options)==null?void 0:j.streamChunkAdaptive)!==!1,f=(J=(Y=n.options)==null?void 0:Y.streamChunkTargetChunks)!=null?J:8,d=(te=n.options)==null?void 0:te.streamChunkSizeChars,h=(re=n.options)==null?void 0:re.streamChunkSizeLines,p=((_e=n.options)==null?void 0:_e.autoTuneChunks)!==!1,m=(pe=(he=n.options)==null?void 0:he.streamChunkFenceAware)!=null?pe:!0;let g=r.lineCount;if(c&&e.length<this.MAX_CHUNKED_DOC_CHARS){g===void 0&&(g=Ut(e));const ie=(oe,Ce,ge)=>oe<Ce?Ce:oe>ge?ge:oe;let z=u?ie(Math.ceil(e.length/f),8e3,32e3):d!=null?d:1e4,R=u?ie(Math.ceil(g/f),150,350):h!=null?h:200;p&&!d&&!h&&(e.length<=5e3?(z=16e3,R=250):e.length<=2e4?(z=16e3,R=200):e.length<=5e4?(z=16e3,R=250):e.length<=1e5?(z=1e4,R=200):(z=2e4,R=200));const q=e.length>0&&e.charCodeAt(e.length-1)===10,Q=Math.ceil(e.length/z);if((e.length>=z*2||g>=R*2)&&q&&Q<=this.MAX_CHUNKS_FOR_FALLBACK){const oe=Sn(n,e,a,{maxChunkChars:z,maxChunkLines:R,fenceAware:m});return this.cache={src:e,tokens:oe,env:a,lineCount:g},this.stats.total+=1,this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode="chunked",oe}}const w=this.core.parse(e,a,n).tokens;return this.cache={src:e,tokens:w,env:a,lineCount:g},this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",w}getAppendedSegment(e,t){if(!t.startsWith(e)||!e.endsWith(`
|
|
30
30
|
`))return null;const n=t.slice(e.length);if(!n||!n.includes(`
|
|
31
31
|
`)||!n.endsWith(`
|
|
32
32
|
`))return null;let o=0;for(let s=0;s<n.length;s++)n.charCodeAt(s)===10&&o++;if(o<2)return null;const r=n.indexOf(`
|
|
33
33
|
`),i=(r===-1?n:n.slice(0,r)).trim();if(i.length===0)return null;if(/^[-=]+$/.test(i)){const s=e.slice(0,-1),a=s.lastIndexOf(`
|
|
34
34
|
`);if(s.slice(a+1).trim().length>0)return null}return this.endsInsideOpenFence(e)?null:n}endsInsideOpenFence(e){const n=e.length>4e3?e.length-4e3:0,o=e.slice(n).split(`
|
|
35
|
-
`);let r=null;for(let i=0;i<o.length;i++){const s=o[i];let a=0;for(;a<s.length;){const u=s.charCodeAt(a);if(u===32||u===9)a++;else break}const c=s[a];if(c==="`"||c==="~"){let u=a;for(;u<s.length&&s[u]===c;)u++;const f=u-a;f>=3&&(r?r.marker===c&&f>=r.length&&(r=null):r={marker:c,length:f})}}return r!==null}peek(){var e,t;return(t=(e=this.cache)==null?void 0:e.tokens)!=null?t:Xu}getStats(){return ne({},this.stats)}shiftTokenLines(e,t){if(t===0)return;const n=[...e];for(;n.length>0;){const o=n.pop();if(o.map&&(o.map[0]+=t,o.map[1]+=t),o.children)for(let r=o.children.length-1;r>=0;r--)n.push(o.children[r])}}};const ui={default:$u,zero:Nu,commonmark:Tu};function Yu(e,t){var g,w,
|
|
35
|
+
`);let r=null;for(let i=0;i<o.length;i++){const s=o[i];let a=0;for(;a<s.length;){const u=s.charCodeAt(a);if(u===32||u===9)a++;else break}const c=s[a];if(c==="`"||c==="~"){let u=a;for(;u<s.length&&s[u]===c;)u++;const f=u-a;f>=3&&(r?r.marker===c&&f>=r.length&&(r=null):r={marker:c,length:f})}}return r!==null}peek(){var e,t;return(t=(e=this.cache)==null?void 0:e.tokens)!=null?t:Xu}getStats(){return ne({},this.stats)}shiftTokenLines(e,t){if(t===0)return;const n=[...e];for(;n.length>0;){const o=n.pop();if(o.map&&(o.map[0]+=t,o.map[1]+=t),o.children)for(let r=o.children.length-1;r>=0;r--)n.push(o.children[r])}}};const ui={default:$u,zero:Nu,commonmark:Tu};function Yu(e,t){var g,w,S,x;let n={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},o="default",r;!t&&typeof e!="string"?(r=e,o="default"):typeof e=="string"&&(o=e,r=t);const i=ui[o];if(!i)throw new Error(`Wrong \`markdown-it\` preset "${o}", check name`);if(i!=null&&i.options&&(n=ne(ne({},n),i.options)),r&&(n=ne(ne({},n),r)),typeof n.quotes=="string"){const y=n.quotes;y.length>=4?n.quotes=[y[0],y[1],y[2],y[3]]:n.quotes=["“","”","‘","’"]}const s=new Du;let a=null;const c=()=>(a||(a=new qu(n)),a);let u=null;const f=()=>(u||(u=new Zu(s)),u);let d=null;const h=()=>(d||(d=new ol),d),p={core:s,block:s.block,inline:s.inline,get linkify(){const y=h();return Object.defineProperty(this,"linkify",{value:y,writable:!0,configurable:!0}),y},get renderer(){const y=c();return Object.defineProperty(this,"renderer",{value:y,writable:!0,configurable:!0}),y},options:n,set(y){return this.options=ne(ne({},this.options),y),a&&a.set(y),typeof y.stream=="boolean"&&(this.stream.enabled=y.stream,u&&(u.reset(),u.resetStats())),this},configure(y){var B,k,M,b;const _=typeof y=="string"?ui[y]:y;if(!_)throw new Error("Wrong `markdown-it` preset, can't be empty");if(_.options&&this.set(_.options),_.components){const T=_.components;(B=T.core)!=null&&B.rules&&this.core.ruler.enableOnly(T.core.rules),(k=T.block)!=null&&k.rules&&this.block.ruler.enableOnly(T.block.rules),(M=T.inline)!=null&&M.rules&&this.inline.ruler.enableOnly(T.inline.rules),(b=T.inline2)!=null&&b.rules&&this.inline.ruler2.enableOnly(T.inline2.rules)}return this},enable(y,_){var b,T,H,L;const B=Array.isArray(y)?y:[y],k=[(b=this.core)==null?void 0:b.ruler,(T=this.block)==null?void 0:T.ruler,(H=this.inline)==null?void 0:H.ruler,(L=this.inline)==null?void 0:L.ruler2];let M=0;for(const P of k){if(!P)continue;const W=P.enable(B,!0);M+=W.length}if(!_&&M<B.length)throw new Error("Rules manager: invalid rule name in list");return this},disable(y,_){var b,T,H,L;const B=Array.isArray(y)?y:[y],k=[(b=this.core)==null?void 0:b.ruler,(T=this.block)==null?void 0:T.ruler,(H=this.inline)==null?void 0:H.ruler,(L=this.inline)==null?void 0:L.ruler2];let M=0;for(const P of k){if(!P)continue;const W=P.disable(B,!0);M+=W.length}if(!_&&M<B.length)throw new Error("Rules manager: invalid rule name in list");return this},use(y,..._){const B=typeof y=="function"?y:y&&typeof y.default=="function"?y.default:void 0;if(!B)throw new TypeError("MarkdownIt.use: plugin must be a function");const k=[this,..._],M=y;return B.apply(M,k),this},render(y,_={}){const B=this.parse(y,_);return c().render(B,this.options,_)},renderAsync(B){return ee(this,arguments,function*(y,_={}){const k=this.parse(y,_);return c().renderAsync(k,this.options,_)})},renderInline(y,_={}){const B=this.parseInline(y,_);return c().render(B,this.options,_)},validateLink:gl,normalizeLink:kl,normalizeLinkText:vl,utils:Ma,helpers:ne({},Ga),parse(y,_={}){var B,k,M,b,T,H,L;if(typeof y!="string")throw new TypeError("Input data should be a String");if(!this.stream.enabled&&!this.options.fullChunkedFallback)return s.parse(y,_,this).tokens;if(!this.stream.enabled){const P=y.length;if(this.options.fullChunkedFallback){const W=Ut(y),K=this.options.autoTuneChunks!==!1,O=this.options.fullChunkSizeChars||this.options.fullChunkSizeLines;if(K&&!O){const F=(B=this.options.fullChunkFenceAware)!=null?B:!0;if(P<=5e3)return Sn(this,y,_,{maxChunkChars:32e3,maxChunkLines:150,fenceAware:F,maxChunks:8});if(P<=2e4)return Sn(this,y,_,{maxChunkChars:24e3,maxChunkLines:200,fenceAware:F,maxChunks:12});if(!(P<=1e5)){if(P<=2e5)return Sn(this,y,_,{maxChunkChars:2e4,maxChunkLines:150,fenceAware:F,maxChunks:12})}}if(P>=((k=this.options.fullChunkThresholdChars)!=null?k:2e4)||W>=((M=this.options.fullChunkThresholdLines)!=null?M:400)){const F=(he,pe,ie)=>he<pe?pe:he>ie?ie:he,V=this.options.fullChunkAdaptive!==!1,j=(b=this.options.fullChunkTargetChunks)!=null?b:8,Y=F(Math.ceil(P/j),8e3,32e3),J=F(Math.ceil(W/j),150,350),te=V?Y:(T=this.options.fullChunkSizeChars)!=null?T:1e4,re=V?J:(H=this.options.fullChunkSizeLines)!=null?H:200,_e=V?Math.max(6,Math.min(12,j)):this.options.fullChunkMaxChunks;return Sn(this,y,_,{maxChunkChars:te,maxChunkLines:re,fenceAware:(L=this.options.fullChunkFenceAware)!=null?L:!0,maxChunks:_e})}}}return s.parse(y,_,this).tokens},parseInline(y,_={}){if(typeof y!="string")throw new TypeError("Input data should be a String");const B=s.createState(y,_,this);return B.inlineMode=!0,s.process(B),B.tokens}};if(p.stream={enabled:!!n.stream,parse(y,_){return p.stream.enabled?f().parse(y,_,p):s.parse(y,_!=null?_:{},p).tokens},reset(){f().reset()},peek(){return u?u.peek():[]},stats(){return u?u.getStats():{total:0,cacheHits:0,appendHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:"idle"}},resetStats(){u&&u.resetStats()}},o==="zero"&&(i!=null&&i.components)){const y=i.components;(g=y.core)!=null&&g.rules&&p.core.ruler.enableOnly(y.core.rules),(w=y.block)!=null&&w.rules&&p.block.ruler.enableOnly(y.block.rules),(S=y.inline)!=null&&S.rules&&p.inline.ruler.enableOnly(y.inline.rules),(x=y.inline2)!=null&&x.rules&&p.inline.ruler2.enableOnly(y.inline2.rules)}return p}var Gu=Yu;let yl;function xl(e){yl=e}function Ju(){return yl}function Qu(e,t,n){function o(h){return h.trim().split(" ",2)[0]===t}function r(h,p,m,g,w){return h[p].nesting===1&&h[p].attrJoin("class",t),w.renderToken(h,p,m,g,w)}n=n||{};const i=3,s=n.marker||":",a=s.charCodeAt(0),c=s.length,u=n.validate||o,f=n.render||r;function d(h,p,m,g){let w,S=!1,x=h.bMarks[p]+h.tShift[p],y=h.eMarks[p];if(a!==h.src.charCodeAt(x))return!1;for(w=x+1;w<=y&&s[(w-x)%c]===h.src[w];w++);const _=Math.floor((w-x)/c);if(_<i)return!1;w-=(w-x)%c;const B=h.src.slice(x,w),k=h.src.slice(w,y);if(!u(k,B))return!1;if(g)return!0;let M=p;for(;M++,!(M>=m||(x=h.bMarks[M]+h.tShift[M],y=h.eMarks[M],x<y&&h.sCount[M]<h.blkIndent));)if(a===h.src.charCodeAt(x)&&!(h.sCount[M]-h.blkIndent>=4)){for(w=x+1;w<=y&&s[(w-x)%c]===h.src[w];w++);if(!(Math.floor((w-x)/c)<_)&&(w-=(w-x)%c,w=h.skipSpaces(w),!(w<y))){S=!0;break}}const b=h.parentType,T=h.lineMax;h.parentType="container",h.lineMax=M;const H=h.push("container_"+t+"_open","div",1);H.markup=B,H.block=!0,H.info=k,H.map=[p,M],h.md.block.tokenize(h,p+1,M);const L=h.push("container_"+t+"_close","div",-1);return L.markup=h.src.slice(x,w),L.block=!0,h.parentType=b,h.lineMax=T,h.line=M+(S?1:0),!0}e.block.ruler.before("fence","container_"+t,d,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules["container_"+t+"_open"]=f,e.renderer.rules["container_"+t+"_close"]=f}function bl(e){["admonition","info","warning","error","tip","danger","note","caution"].forEach(t=>{e.use(Qu,t,{render(n,o){return n[o].nesting===1?`<div class="vmr-container vmr-container-${t}">`:`</div>
|
|
36
36
|
`}})}),e.block.ruler.before("fence","vmr_container_fallback",(t,n,o,r)=>{const i=t,s=i.bMarks[n]+i.tShift[n],a=i.eMarks[n],c=i.src.slice(s,a).match(/^:::\s*(\w+)/);if(!c)return!1;if(r)return!0;const u=c[1];let f=n+1,d=!1;for(;f<=o;){const m=i.bMarks[f]+i.tShift[f],g=i.eMarks[f];if(i.src.slice(m,g).trim()===":::"){d=!0;break}f++}if(!d)return!1;i.push("vmr_container_open","div",1).attrSet("class",`vmr-container vmr-container-${u}`);const h=[];for(let m=n+1;m<f;m++){const g=i.bMarks[m]+i.tShift[m],w=i.eMarks[m];h.push(i.src.slice(g,w))}i.push("paragraph_open","p",1);const p=i.push("inline","",0);return p.content=h.join(`
|
|
37
|
-
`),p.map=[n+1,f],p.children=[],i.md.inline.parse(p.content,i.md,i.env,p.children),i.push("paragraph_close","p",-1),i.push("vmr_container_close","div",-1),i.line=f+1,!0})}const ed=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function td(e){e.core.ruler.push("fix_html_inline_tokens",t=>{var r,i,s,a,c,u,f,d,h,p,m,g,w,
|
|
38
|
-
${T}`,L.loading!==!1&&(L.loading=!H)}H&&o.pop(),n.splice(S,1),S--}else continue}for(let S=0;S<n.length;S++){const b=n[S];if(b.type==="html_block"){const W=((f=(u=(c=b.content)==null?void 0:c.match(/<([^\s>/]+)/))==null?void 0:u[1])!=null?f:"").toLowerCase();if(W.startsWith("!")||W.startsWith("?")){b.loading=!1;continue}if(["br","hr","img","input","link","meta","div","p","ul","li"].includes(W))continue;b.type="inline";const K=(d=b.content)!=null&&d.toLowerCase().includes(`</${W}>`)?!1:b.loading!==void 0?b.loading:!0;b.children=[{type:"html_block",content:b.content,tag:W,loading:K}];continue}if(!b||b.type!=="inline")continue;if(b.children.length===2&&b.children[0].type==="html_inline"){const W=(m=(p=(h=b.children[0].content)==null?void 0:h.match(/<([^\s>/]+)/))==null?void 0:p[1])!=null?m:"";["a","span","strong","em","b","i","u"].includes(W)?(b.children[0].loading=!0,b.children[0].tag=W,b.children.push({type:"html_inline",tag:W,loading:!0,content:`</${W}>`})):b.children=[{type:"html_block",loading:!0,tag:W,content:b.children[0].content+b.children[1].content}];continue}else if(b.children.length===3&&b.children[0].type==="html_inline"&&b.children[2].type==="html_inline"){const W=(E=(w=(g=b.children[0].content)==null?void 0:g.match(/<([^\s>/]+)/))==null?void 0:w[1])!=null?E:"";if(["a","span","strong","em","b","i","u"].includes(W))continue;b.children=[{type:"html_block",loading:!1,tag:W,content:b.children.map(K=>K.content).join("")}];continue}if(!((x=b.content)!=null&&x.startsWith("<"))||((y=b.children)==null?void 0:y.length)!==1)continue;const T=String(b.content),H=(k=(A=(_=T.match(/<([^\s>/]+)/))==null?void 0:_[1])==null?void 0:A.toLowerCase())!=null?k:"";if(!H)continue;const R=/\/\s*>\s*$/.test(T)||ed.has(H),L=b;if(R){L.children=[{type:"html_inline",content:T}];continue}L.children.length=0}})}const nd=/^\[([^\]]*)\]\(([^)\s]*)/;function rd(e){const t=(n,o)=>{var m,g;const r=n,i=r.pos;if(r.src[i]!=="["||i>0&&r.src[i-1]==="!")return!1;const s=r.src.slice(i),a=nd.exec(s);if(!a)return!1;if(o)return!0;const c=(m=a[1])!=null?m:"",u=(g=a[2])!=null?g:"";if(c.includes("*")||c.includes(":"))return!1;const f=s.indexOf(")"),d=f!==-1,h=r.push("link_open","a",1);h.attrs=[["href",u]];const p=r.push("text","",0);return p.content=c,d?(r.push("link_close","a",-1),r.pos+=f+1):r.pos+=a[0].length,!0};e.inline.ruler.before("link","fix_link_inline",t)}function Bt(e){return{type:"text",content:e,raw:e}}function fn(e,t){t===1?e.push({type:"em_open",tag:"em",nesting:1}):t===2?e.push({type:"strong_open",tag:"strong",nesting:1}):t===3&&(e.push({type:"strong_open",tag:"strong",nesting:1}),e.push({type:"em_open",tag:"em",nesting:1}))}function hn(e,t){t===1?e.push({type:"em_close",tag:"em",nesting:-1}):t===2?e.push({type:"strong_close",tag:"strong",nesting:-1}):t===3&&(e.push({type:"em_close",tag:"em",nesting:-1}),e.push({type:"strong_close",tag:"strong",nesting:-1}))}function Gt(e,t,n){return{type:"link",loading:n,href:t,title:"",text:e,children:[{type:"text",content:e,raw:e}],raw:`[${e}](${t})`}}function od(e){e.core.ruler.after("inline","fix_link_tokens",t=>{var o;const n=(o=t.tokens)!=null?o:[];for(let r=0;r<n.length;r++){const i=n[r];if(i&&i.type==="inline"&&Array.isArray(i.children))try{i.children=id(i.children)}catch(s){console.error("[applyFixLinkTokens] failed to fix inline children",s)}}})}function id(e){var t,n,o,r,i,s,a,c,u,f,d,h,p,m,g,w,E,x,y,_,A,k,S,b,T,H,R,L,W,K,P,N,V,j,Y,J,te,re,be,he,pe,ie,z,F,q,Q,oe,_e,ge,Ne,He,Ie,ze,De,ce,me,qe,yt,xt,Ve,bt,Ge,jt,_t,Ct,Qe,Nt,Et,It,St,$,v,C,D,G,U,ke,ye,xe,de,Ce,ve,ht,Ft,Rt,Fe,Re,pt,Mt,Ht,Zt,qt,an,cn,O,M,I,Z,fe,se,we,Ee,Je,Le,Wt,nr,un,Io;if(e.length<4)return e;for(let B=0;B<=e.length-1;B++){B<0&&(B=0);const Me=e[B];if(!Me)break;if((Me==null?void 0:Me.type)==="em_open"&&((t=e[B-1])==null?void 0:t.type)==="text"&&((n=e[B-1].content)!=null&&n.endsWith("*"))){const le=((o=e[B-1].content)==null?void 0:o.replace(/(\*+)$/,""))||"";e[B-1].content=le,Me.type="strong_open",Me.tag="strong",Me.markup="**";for(let ue=B+1;ue<e.length;ue++)if(((r=e[ue])==null?void 0:r.type)==="em_close"){e[ue].type="strong_close",e[ue].tag="strong",e[ue].markup="**";break}}else if((Me==null?void 0:Me.type)==="text"&&((i=Me.content)!=null&&i.endsWith("("))&&((s=e[B+1])==null?void 0:s.type)==="link_open"){const le=Me.content.match(/\[([^\]]+)\]/);if(le){let ue=Me.content.slice(0,le.index);const $e=ue.match(/(\*+)$/),ae=[];if($e){ue=ue.slice(0,$e.index),ue&&ae.push(Bt(ue));const Be=le[1],Ae=$e[1].length;fn(ae,Ae);let Pe=((a=e[B+2])==null?void 0:a.content)||"";if(((c=e[B+4])==null?void 0:c.type)==="text"&&!((u=e[B+4].content)!=null&&u.startsWith(")"))&&(Pe+=((f=e[B+4])==null?void 0:f.content)||"",e[B+4].content=""),ae.push(Gt(Be,Pe,!((h=(d=e[B+4])==null?void 0:d.content)!=null&&h.startsWith(")")))),hn(ae,Ae),((p=e[B+4])==null?void 0:p.type)==="text"){const Te=(m=e[B+4].content)==null?void 0:m.replace(/^\)\**/,"");Te&&ae.push(Bt(Te)),e.splice(B,5,...ae)}else e.splice(B,4,...ae)}else{ue&&ae.push(Bt(ue));let Be=le[1];const Ae=Be.match(/^\*+/);if(Ae){const Te=Ae[0].length;Be=Be.replace(/^\*+/,"").replace(/\*+$/,"");let Yt=((g=e[B+2])==null?void 0:g.content)||"";if(((w=e[B+4])==null?void 0:w.type)==="text"&&!((E=e[B+4].content)!=null&&E.startsWith(")"))&&(Yt+=((x=e[B+4])==null?void 0:x.content)||"",e[B+4].content=""),fn(ae,Te),ae.push(Gt(Be,Yt,!((_=(y=e[B+4])==null?void 0:y.content)!=null&&_.startsWith(")")))),hn(ae,Te),((A=e[B+4])==null?void 0:A.type)==="text"){const dn=(k=e[B+4].content)==null?void 0:k.replace(/^\)/,"");dn&&ae.push(Bt(dn)),e.splice(B,5,...ae)}else e.splice(B,4,...ae);B===0?B=ae.length-1:B-=ae.length-1;continue}let Pe=((S=e[B+2])==null?void 0:S.content)||"";if(((b=e[B+4])==null?void 0:b.type)==="text"&&!((T=e[B+4].content)!=null&&T.startsWith(")"))&&(Pe+=((H=e[B+4])==null?void 0:H.content)||"",e[B+4].content=""),ae.push(Gt(Be,Pe,!((L=(R=e[B+4])==null?void 0:R.content)!=null&&L.startsWith(")")))),((W=e[B+4])==null?void 0:W.type)==="text"){const Te=(K=e[B+4].content)==null?void 0:K.replace(/^\)/,"");Te&&ae.push(Bt(Te)),e.splice(B,5,...ae)}else e.splice(B,4,...ae)}B-=ae.length-1;continue}}else if(Me.type==="link_open"&&Me.markup==="linkify"&&((P=e[B-1])==null?void 0:P.type)==="text"&&((N=e[B-1].content)!=null&&N.endsWith("("))){if(((V=e[B-2])==null?void 0:V.type)==="link_close"){const le=[],ue=e[B-3].content||"";let $e=((Y=(j=Me.attrs)==null?void 0:j.find(ae=>ae[0]==="href"))==null?void 0:Y[1])||"";if(((J=e[B+3])==null?void 0:J.type)==="text"){const ae=((re=(te=e[B+3])==null?void 0:te.content)!=null?re:"").indexOf(")"),Be=ae===-1;ae===-1&&($e+=((he=(be=e[B+3])==null?void 0:be.content)==null?void 0:he.slice(0,ae))||"",e[B+3].content=""),le.push(Gt(ue,$e,Be));const Ae=(pe=e[B+3].content)==null?void 0:pe.replace(/^\)\**/,"");Ae&&le.push(Bt(Ae)),e.splice(B-4,8,...le)}else le.push({type:"link",loading:!0,href:$e,title:"",text:ue,children:[{type:"text",content:$e,raw:$e}],raw:`[${ue}](${$e})`}),e.splice(B-4,7,...le);continue}else if(e[B-1].content==="]("&&((ie=e[B-3])==null?void 0:ie.type)==="text"&&((z=e[B-3].content)!=null&&z.endsWith(")")))if(((F=e[B-2])==null?void 0:F.type)==="strong_open"){const[le,ue]=((q=e[B-3].content)==null?void 0:q.split("[**"))||[];e[B+1].content=ue||"",e[B-3].content=le||"",e[B-1].content=""}else if(((Q=e[B-2])==null?void 0:Q.type)==="em_open"){const[le,ue]=((oe=e[B-3].content)==null?void 0:oe.split("[*"))||[];e[B+1].content=ue||"",e[B-3].content=le||"",e[B-1].content=""}else{const[le,ue]=((_e=e[B-3].content)==null?void 0:_e.split("["))||[];e[B+1].content=ue||"",e[B-3].content=le||"",e[B-1].content=""}}if(Me.type==="link_close"&&Me.nesting===-1&&((ge=e[B+1])==null?void 0:ge.type)==="text"&&((Ne=e[B-1])==null?void 0:Ne.type)==="text"){let le=!0;const ue=e[B-1].content||"";let $e=((Ie=(He=e[B-2].attrs)==null?void 0:He[0])==null?void 0:Ie[1])||"",ae=3,Be=2;const Ae=(((ze=e[B-3])==null?void 0:ze.content)||"").match(/^(\*+)$/),Pe=[];if(Ae){Be+=1;const Te=Ae[1].length;fn(Pe,Te)}if((Me.markup===""||e[B+1].type==="text"&&(e[B+1].content==="."||e[B+1].content==="?"))&&(le=!1),Me.markup==="linkify"&&((De=e[B+1])==null?void 0:De.type)==="text"&&!((me=(ce=e[B+1])==null?void 0:ce.content)!=null&&me.startsWith(" "))){const Te=((yt=(qe=e[B+1])==null?void 0:qe.content)!=null?yt:"").indexOf(")");Te===-1?($e+=((Ve=(xt=e[B+1])==null?void 0:xt.content)==null?void 0:Ve.slice(0,Te))||"",e[B+1].content=""):le=!1,ae+=1}else if(e[B+1].type==="text"&&((Ge=(bt=e[B+1])==null?void 0:bt.content)!=null&&Ge.startsWith("]("))){ae+=1;for(let Te=B+1;Te<e.length;Te++){const Yt=Ae?Ae[1].length:e[B-3].markup.length,dn=e[Te];if(Yt===1&&dn.type==="em_close"){le=!1;break}else if(Yt===2&&dn.type==="strong_close"){le=!1;break}else if(Yt===3&&(dn.type==="em_close"||dn.type==="strong_close")){le=!1;break}ae+=1}}else le=!1;if(Pe.push({type:"link",loading:le,href:$e,title:"",text:ue,children:[{type:"text",content:ue,raw:ue}],raw:`[${ue}](${$e})`}),Ae){const Te=Ae[1].length;hn(Pe,Te)}e.splice(B-Be,ae,...Pe),B-=Pe.length-1;continue}else if((jt=Me.content)!=null&&jt.startsWith("](")&&((_t=e[B-1].markup)!=null&&_t.includes("*"))&&((Ct=e[B-4])==null?void 0:Ct.type)==="text"&&((Qe=e[B-4].content)!=null&&Qe.endsWith("["))){const le=e[B-1].markup.length,ue=[],$e=e[B-4].content.slice(0,e[B-4].content.length-le);$e&&ue.push(Bt($e)),fn(ue,le);const ae=e[B-2].content||"";let Be=Me.content.slice(2),Ae=!0;if(((Nt=e[B+1])==null?void 0:Nt.type)==="text"){const Pe=((It=(Et=e[B+1])==null?void 0:Et.content)!=null?It:"").indexOf(")");Ae=Pe===-1,Pe===-1&&(Be+=(($=(St=e[B+1])==null?void 0:St.content)==null?void 0:$.slice(0,Pe))||"",e[B+1].content="")}if(ue.push(Gt(ae,Be,Ae)),hn(ue,le),((v=e[B+1])==null?void 0:v.type)==="text"){const Pe=(C=e[B+1].content)==null?void 0:C.replace(/^\)\**/,"");Pe&&ue.push(Bt(Pe)),e.splice(B-4,8,...ue)}else((D=e[B+1])==null?void 0:D.type)==="link_open"?e.splice(B-4,10,...ue):e.splice(B-4,7,...ue);B-=ue.length-1;continue}else if((G=Me.content)!=null&&G.startsWith("](")&&e[B-1].type==="strong_close"&&((U=e[B-4])==null?void 0:U.type)==="text"&&((ye=(ke=e[B-4])==null?void 0:ke.content)!=null&&ye.includes("**["))){B++;const le=[],ue=e[B-4].content.split("**[")[0];ue&&le.push(Bt(ue)),fn(le,2);const $e=e[B-2].content||"";let ae=Me.content.slice(2),Be=!0;if(((xe=e[B+1])==null?void 0:xe.type)==="text"){const Ae=((Ce=(de=e[B+1])==null?void 0:de.content)!=null?Ce:"").indexOf(")");Be=Ae===-1,Ae===-1&&(ae+=((ht=(ve=e[B+1])==null?void 0:ve.content)==null?void 0:ht.slice(0,Ae))||"",e[B+1].content="")}if(le.push(Gt($e,ae,Be)),hn(le,2),((Ft=e[B+1])==null?void 0:Ft.type)==="text"){const Ae=(Rt=e[B+1].content)==null?void 0:Rt.replace(/^\)\**/,"");Ae&&le.push(Bt(Ae)),e.splice(B-4,8,...le)}else((Fe=e[B+1])==null?void 0:Fe.type)==="link_open"?e.splice(B-4,10,...le):e.splice(B-4,7,...le);B-=le.length-1;continue}else if(Me.type==="strong_close"&&((Re=e[B+1])==null?void 0:Re.type)==="text"&&((pt=e[B+1].content)!=null&&pt.includes("]("))&&e[B-1].type==="text"&&/\[.*$/.test(e[B-1].content||"")){const le=[],[ue,$e]=((Mt=e[B-1].content)==null?void 0:Mt.split("["))||["",""];ue&&le.push(Bt(ue)),fn(le,2);let[ae,Be]=e[B+1].content.split("](");ae=$e+ae;let Ae=4;if(((Ht=e[B+2])==null?void 0:Ht.type)==="link_open"){const Te=(qt=(Zt=e[B+2].attrs)==null?void 0:Zt.find(Yt=>Yt[0]==="href"))==null?void 0:qt[1];((an=e[B+5])==null?void 0:an.type)==="text"&&e[B+5].content==="."?(Be=(Te||Be)+e[B+5].content,e[B+5].content=""):Be=Te||Be,Ae+=3}let Pe=!0;if(Me.nesting===-1&&(ae=ae.replace(/\*+$/,"")),((cn=e[B+2])==null?void 0:cn.type)==="text"){const Te=((M=(O=e[B+2])==null?void 0:O.content)!=null?M:"").indexOf(")");Pe=Te===-1,Te===-1&&(Be+=((Z=(I=e[B+2])==null?void 0:I.content)==null?void 0:Z.slice(0,Te))||"",e[B+2].content="")}le.push(Gt(ae,Be,Pe)),hn(le,2),e.splice(B-2,Ae,...le)}if(Me.type==="text"&&/\*+\[[^\]]*$/.test(Me.content||"")&&((fe=e[B+1])==null?void 0:fe.type)==="strong_open"&&((se=e[B+2])==null?void 0:se.type)==="text"&&e[B+2].content==="]("&&((we=e[B+3])==null?void 0:we.type)==="link_open"&&((Ee=e[B+5])==null?void 0:Ee.type)==="link_close"&&((Je=e[B+6])==null?void 0:Je.type)==="text"&&e[B+6].content===")"&&((Le=e[B+7])==null?void 0:Le.type)==="strong_close"){const le=(Me.content||"").match(/^(\*+)\[(.*)$/);if(le){const ue=(le[2]||"")+le[1];let $e=((un=(nr=(Wt=e[B+3])==null?void 0:Wt.attrs)==null?void 0:nr.find(Be=>Be[0]==="href"))==null?void 0:un[1])||"";!$e&&((Io=e[B+4])==null?void 0:Io.type)==="text"&&($e=e[B+4].content||"");const ae=[];fn(ae,2),ae.push(Gt(ue,$e,!1)),hn(ae,2),e.splice(B,9,...ae),B-=ae.length-1;continue}}}return e}function ld(e){e.core.ruler.after("inline","fix_list_item_tokens",t=>{var o;const n=(o=t.tokens)!=null?o:[];for(let r=0;r<n.length;r++){const i=n[r];if(i&&i.type==="inline"&&Array.isArray(i.children))try{i.children=sd(i.children)}catch(s){console.error("[applyFixListItem] failed to fix inline children",s)}}})}function sd(e){var o,r;const t=e[e.length-1],n=String((o=t==null?void 0:t.content)!=null?o:"");return(t==null?void 0:t.type)==="text"&&/^\s*\d+\.\s*$/.test(n)&&((r=e[e.length-2])==null?void 0:r.tag)==="br"&&e.splice(e.length-1,1),e}function ad(e){e.core.ruler.after("inline","fix_strong_tokens",t=>{var o;const n=(o=t.tokens)!=null?o:[];for(let r=0;r<n.length;r++){const i=n[r];if(i&&i.type==="inline"&&Array.isArray(i.children))try{i.children=cd(i.children)}catch(s){console.error("[applyFixStrongTokens] failed to fix inline children",s)}}})}function cd(e){var f,d,h,p,m,g,w,E,x,y,_,A,k,S,b,T,H;let t=0;const n=new Set,o=new Set;let r=0;for(let R=0;R<e.length;R++){const L=e[R],W=L.type;if(W==="strong_open"){t++;const K=String((f=L.markup)!=null?f:"");let P=R-1;for(;P>=0&&e[P].type==="text"&&e[P].content==="";)P--;const N=e[P];let V=R+1;for(;V<e.length&&e[V].type==="text"&&e[V].content==="";)V++;const j=e[V];K==="__"&&((d=N==null?void 0:N.content)!=null&&d.endsWith("_")||(h=j==null?void 0:j.content)!=null&&h.startsWith("_")||(p=j==null?void 0:j.markup)!=null&&p.includes("_"))&&(L.type="text",L.tag="",L.content=K,L.raw=K,L.markup="",L.attrs=null,L.map=null,L.info="",L.meta=null,n.add(t))}else if(W==="strong_close")n.has(t)&&L.markup==="__"&&(L.type="text",L.content=L.markup,L.raw=String((m=L.markup)!=null?m:""),L.tag="",L.markup="",L.attrs=null,L.map=null,L.info="",L.meta=null),t--,t<0&&(t=0);else if(W==="em_open"){r++;const K=String((g=L.markup)!=null?g:"");let P=R-1;for(;P>=0&&e[P].type==="text"&&e[P].content==="";)P--;const N=e[P];let V=R+1;for(;V<e.length&&e[V].type==="text"&&e[V].content==="";)V++;const j=e[V];K==="_"&&((w=N==null?void 0:N.content)!=null&&w.endsWith("_")||(E=j==null?void 0:j.content)!=null&&E.startsWith("_")||(x=j==null?void 0:j.markup)!=null&&x.includes("_"))&&(L.type="text",L.tag="",L.content=K,L.raw=K,L.markup="",L.attrs=null,L.map=null,L.info="",L.meta=null,o.add(r))}else W==="em_close"&&(o.has(r)&&L.markup==="_"&&(L.type="text",L.content=L.markup,L.raw=String((y=L.markup)!=null?y:""),L.tag="",L.markup="",L.attrs=null,L.map=null,L.info="",L.meta=null),r--,r<0&&(r=0))}if(e.length<5)return e;const i=e.length-4,s=e[i],a=[...e],c=e[i+1],u=String((_=s.content)!=null?_:"");if(s.type==="link_open"&&((A=e[i-1])==null?void 0:A.type)==="em_open"&&((k=e[i-2])==null?void 0:k.type)==="text"&&((S=e[i-2].content)!=null&&S.endsWith("*"))){const R=String((b=e[i-2].content)!=null?b:"").slice(0,-1),L=[{type:"strong_open",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null,raw:""},e[i],e[i+1],e[i+2],{type:"strong_close",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null,raw:""}];R&&L.unshift({type:"text",content:R,raw:R}),a.splice(i-2,6,...L)}else if(s.type==="text"&&u.endsWith("*")&&c.type==="em_open"){const R=e[i+2],L=(R==null?void 0:R.type)==="text"?4:3,W=[{type:"strong_open",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null,raw:""},{type:"text",content:(R==null?void 0:R.type)==="text"?String((T=R.content)!=null?T:""):"",raw:(R==null?void 0:R.type)==="text"?String((H=R.content)!=null?H:""):""},{type:"strong_close",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null,raw:""}],K=u.slice(0,-1);return K&&W.unshift({type:"text",content:K,raw:K}),a.splice(i,L,...W),a}return a}function ud(e){e.core.ruler.after("block","fix_table_tokens",t=>{var o;const n=t;try{const r=dd((o=n.tokens)!=null?o:[]);Array.isArray(r)&&(n.tokens=r)}catch(r){console.error("[applyFixTableTokens] failed to fix table tokens",r)}})}function di(){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 fi(){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 hi(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 r,i,s,a;const t=[...e];if(e.length<3)return t;const n=e.length-2,o=e[n];if(o.type==="inline"){const c=String((r=o.content)!=null?r:""),u=String((a=(s=(i=o.children)==null?void 0:i[0])==null?void 0:s.content)!=null?a:"");if(/^\|(?:[^|\n]+\|?)+/.test(c)){const f=u.slice(1).split("|").map(h=>h.trim()).filter(Boolean).flatMap(h=>hi(h)),d=[...di(),...f,...fi()];t.splice(n-1,3,...d)}else if(/^\|(?:[^|\n]+\|)+\n\|:?-/.test(c)){const f=u.slice(1,-1).split("|").map(h=>h.trim()).flatMap(h=>hi(h)),d=[...di(),...f,...fi()];t.splice(n-1,3,...d)}else/^\|(?:[^|\n:]+\|)+\n\|:?$/.test(c)&&(o.content=c.slice(0,-2),o.children.splice(2,1))}return t}function _l(e,t,n,o){const r=e.length;if(n==="$$"&&o==="$$"){let u=t;for(;u<r-1;){if(e[u]==="$"&&e[u+1]==="$"){let f=u-1,d=0;for(;f>=0&&e[f]==="\\";)d++,f--;if(d%2===0)return u}u++}return-1}const i=n[n.length-1],s=o;let a=0,c=t;for(;c<r;){if(e.slice(c,c+s.length)===s){let f=c-1,d=0;for(;f>=0&&e[f]==="\\";)d++,f--;if(d%2===0){if(a===0)return c;a--,c+=s.length;continue}}const u=e[c];if(u==="\\"){c+=2;continue}u===i?a++:u===s[s.length-1]&&a>0&&a--,c++}return-1}var fd=_l;const Cl=["mathbf","boldsymbol","mathbb","mathcal","mathfrak","mathrm","mathit","mathsf","vec","hat","bar","tilde","overline","underline","mathscr","mathnormal","operatorname","mathbf*"],Zn=Cl.map(e=>e.replace(/[.*+?^${}()|[\\]"\]/g,"\\$&")).join("|"),hd=/\\[a-z]+/i,El="(?:\\\\|\\u0008)",pd=new RegExp(`${El}(?:${Zn})\\s*\\{[^}]+\\}`,"i"),md=new RegExp(`(?:${El})?(?:${Zn})s*{`,"i"),gd=/\\(?:text|frac|left|right|times)/,kd=new RegExp("(?:^|[^+])\\+(?!\\+)|[=\\-*/^<>]|\\\\times|\\\\pm|\\\\cdot|\\\\le|\\\\ge|\\\\neq"),vd=/\b[A-Z]{2,}-[A-Z]{2,}\b/i,wd=/[A-Z]+\s*\([^)]+\)/i,yd=/\b(?:sin|cos|tan|log|ln|exp|sqrt|frac|sum|lim|int|prod)\b/,xd=/\b\d{4}\/\d{1,2}\/\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?\b/;function Wn(e){if(!e)return!1;const t=e.replace(/\u0008/g,"\\b"),n=t.trim();if(xd.test(n)||n.includes("**"))return!1;if(n.length>2e3)return!0;const o=hd.test(t),r=pd.test(t),i=md.test(t),s=gd.test(t),a=/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)_(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t)||/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)\^(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t),c=kd.test(t)&&!vd.test(t),u=wd.test(t),f=yd.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||i||s||a||c||u||f||d||h}const xo=["ldots","cdots","quad","in","ce","pu","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"],Sl=xo.slice().sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),Ml="[ \r\b\f\v]",bd=/span\{([^}]+)\}/,_d=/\\operatorname\{span\}\{((?:[^{}]|\{[^}]*\})+)\}/,Cd=/(^|[^\\])\\\r?\n/g,Ed=/(^|[^\\])\\$/g,Sd=new RegExp(`(${Ml})|(${Sl})\\b`,"g"),pi=new Map,mi=new Map;function Md(e){if(!e)return Sd;const t=[...e];t.sort((s,a)=>a.length-s.length);const n=t.join(""),o=pi.get(n);if(o)return o;const r=`(?:${t.map(s=>s.replace(/[.*+?^${}()|[\\]\\"\]/g,"\\$&")).join("|")})`,i=new RegExp(`(${Ml})|(${r})\\b`,"g");return pi.set(n,i),i}function Ad(e,t){const n=e?[]:[...t!=null?t:[]];e||n.sort((a,c)=>c.length-a.length);const o=e?"__default__":n.join(""),r=mi.get(o);if(r)return r;const i=e?[Zn,Sl].filter(Boolean).join("|"):[n.map(a=>a.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),Zn].filter(Boolean).join("|"),s=new RegExp(`(^|[^\\\\\\w])(${i})\\s*\\{`,"g");return mi.set(o,s),s}const gi={" ":"t","\r":"r","\b":"b","\f":"f","\v":"v"};function ki(e){const t=/(^|[^\\])(__|\*\*)/g;let n=0;for(;t.exec(e)!==null;)n++;return n}function pn(e,t){var u,f;const n=(u=t==null?void 0:t.commands)!=null?u:xo,o=(f=t==null?void 0:t.escapeExclamation)!=null?f:!0,r=(t==null?void 0:t.commands)==null,i=Md(r?void 0:n);let s=e.replace(i,(d,h,p,m,g)=>{if(h!==void 0&&gi[h]!==void 0)return`\\${gi[h]}`;if(p&&n.includes(p)){const w=g&&typeof m=="number"?g[m-1]:void 0;return w==="\\"||w&&/\w/.test(w)?d:`\\${p}`}return d});o&&(s=s.replace(/(^|[^\\])!/g,"$1\\!"));let a=s;const c=Ad(r,r?void 0:n);return a=a.replace(c,(d,h,p)=>`${h}\\${p}{`),a=a.replace(bd,"span\\{$1\\}").replace(_d,"\\operatorname{span}\\{$1\\}"),a=a.replace(Cd,`$1\\\\
|
|
39
|
-
`),a=a.replace(Ed,"$1\\\\"),a}function
|
|
37
|
+
`),p.map=[n+1,f],p.children=[],i.md.inline.parse(p.content,i.md,i.env,p.children),i.push("paragraph_close","p",-1),i.push("vmr_container_close","div",-1),i.line=f+1,!0})}const ed=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function td(e){e.core.ruler.push("fix_html_inline_tokens",t=>{var r,i,s,a,c,u,f,d,h,p,m,g,w,S,x,y,_,B,k;const n=(r=t.tokens)!=null?r:[],o=[];for(let M=0;M<n.length;M++){const b=n[M];if(b.type==="html_block"){const T=((a=(s=(i=b.content)==null?void 0:i.match(/<([^\s>/]+)/))==null?void 0:s[1])!=null?a:"").toLowerCase();/<\s*\/\s*[^\s>]+\s*>/.test(b.content||"")?o.length>0&&o[o.length-1][0]===T&&o.pop():o.push([T,M]);continue}else if(o.length>0){if(b.type==="paragraph_open"||b.type==="paragraph_close"){n.splice(M,1),M--;continue}const T=b.content||"",H=new RegExp(`<\\s*\\/\\s*${o[o.length-1][0]}\\s*>`,"i").test(T);if(T){const[,L]=o[o.length-1],P=n[L];P.content=`${P.content||""}
|
|
38
|
+
${T}`,P.loading!==!1&&(P.loading=!H)}H&&o.pop(),n.splice(M,1),M--}else continue}for(let M=0;M<n.length;M++){const b=n[M];if(b.type==="html_block"){const W=((f=(u=(c=b.content)==null?void 0:c.match(/<([^\s>/]+)/))==null?void 0:u[1])!=null?f:"").toLowerCase();if(W.startsWith("!")||W.startsWith("?")){b.loading=!1;continue}if(["br","hr","img","input","link","meta","div","p","ul","li"].includes(W))continue;b.type="inline";const K=(d=b.content)!=null&&d.toLowerCase().includes(`</${W}>`)?!1:b.loading!==void 0?b.loading:!0;b.children=[{type:"html_block",content:b.content,tag:W,loading:K}];continue}if(!b||b.type!=="inline")continue;if(b.children.length===2&&b.children[0].type==="html_inline"){const W=(m=(p=(h=b.children[0].content)==null?void 0:h.match(/<([^\s>/]+)/))==null?void 0:p[1])!=null?m:"";["a","span","strong","em","b","i","u"].includes(W)?(b.children[0].loading=!0,b.children[0].tag=W,b.children.push({type:"html_inline",tag:W,loading:!0,content:`</${W}>`})):b.children=[{type:"html_block",loading:!0,tag:W,content:b.children[0].content+b.children[1].content}];continue}else if(b.children.length===3&&b.children[0].type==="html_inline"&&b.children[2].type==="html_inline"){const W=(S=(w=(g=b.children[0].content)==null?void 0:g.match(/<([^\s>/]+)/))==null?void 0:w[1])!=null?S:"";if(["a","span","strong","em","b","i","u"].includes(W))continue;b.children=[{type:"html_block",loading:!1,tag:W,content:b.children.map(K=>K.content).join("")}];continue}if(!((x=b.content)!=null&&x.startsWith("<"))||((y=b.children)==null?void 0:y.length)!==1)continue;const T=String(b.content),H=(k=(B=(_=T.match(/<([^\s>/]+)/))==null?void 0:_[1])==null?void 0:B.toLowerCase())!=null?k:"";if(!H)continue;const L=/\/\s*>\s*$/.test(T)||ed.has(H),P=b;if(L){P.children=[{type:"html_inline",content:T}];continue}P.children.length=0}})}const nd=/^\[([^\]]*)\]\(([^)\s]*)/;function rd(e){const t=(n,o)=>{var m,g;const r=n,i=r.pos;if(r.src[i]!=="["||i>0&&r.src[i-1]==="!")return!1;const s=r.src.slice(i),a=nd.exec(s);if(!a)return!1;if(o)return!0;const c=(m=a[1])!=null?m:"",u=(g=a[2])!=null?g:"";if(c.includes("*")||c.includes(":"))return!1;const f=s.indexOf(")"),d=f!==-1,h=r.push("link_open","a",1);h.attrs=[["href",u]];const p=r.push("text","",0);return p.content=c,d?(r.push("link_close","a",-1),r.pos+=f+1):r.pos+=a[0].length,!0};e.inline.ruler.before("link","fix_link_inline",t)}function At(e){return{type:"text",content:e,raw:e}}function fn(e,t){t===1?e.push({type:"em_open",tag:"em",nesting:1}):t===2?e.push({type:"strong_open",tag:"strong",nesting:1}):t===3&&(e.push({type:"strong_open",tag:"strong",nesting:1}),e.push({type:"em_open",tag:"em",nesting:1}))}function hn(e,t){t===1?e.push({type:"em_close",tag:"em",nesting:-1}):t===2?e.push({type:"strong_close",tag:"strong",nesting:-1}):t===3&&(e.push({type:"em_close",tag:"em",nesting:-1}),e.push({type:"strong_close",tag:"strong",nesting:-1}))}function Qt(e,t,n){return{type:"link",loading:n,href:t,title:"",text:e,children:[{type:"text",content:e,raw:e}],raw:`[${e}](${t})`}}function od(e){e.core.ruler.after("inline","fix_link_tokens",t=>{var o;const n=(o=t.tokens)!=null?o:[];for(let r=0;r<n.length;r++){const i=n[r];if(i&&i.type==="inline"&&Array.isArray(i.children))try{i.children=id(i.children)}catch(s){console.error("[applyFixLinkTokens] failed to fix inline children",s)}}})}function id(e){var t,n,o,r,i,s,a,c,u,f,d,h,p,m,g,w,S,x,y,_,B,k,M,b,T,H,L,P,W,K,O,F,V,j,Y,J,te,re,_e,he,pe,ie,z,R,q,Q,oe,Ce,ge,Ie,je,Fe,Oe,De,ae,me,He,vt,wt,ze,yt,Ge,Ht,xt,bt,Qe,Nt,_t,It,Ct,N,v,C,D,G,U,ke,ve,ye,de,Ee,xe,Ft,Mt,Rt,$e,qe,Zt,Lt,Bt,Et,qt,Yt,Gt,un,qn,Wn,$,E,I,X,ce,fe,we,Se,Je,Re,Wt;if(e.length<4)return e;for(let A=0;A<=e.length-1;A++){A<0&&(A=0);const be=e[A];if(!be)break;if((be==null?void 0:be.type)==="em_open"&&((t=e[A-1])==null?void 0:t.type)==="text"&&((n=e[A-1].content)!=null&&n.endsWith("*"))){const le=((o=e[A-1].content)==null?void 0:o.replace(/(\*+)$/,""))||"";e[A-1].content=le,be.type="strong_open",be.tag="strong",be.markup="**";for(let ue=A+1;ue<e.length;ue++)if(((r=e[ue])==null?void 0:r.type)==="em_close"){e[ue].type="strong_close",e[ue].tag="strong",e[ue].markup="**";break}}else if((be==null?void 0:be.type)==="text"&&((i=be.content)!=null&&i.endsWith("("))&&((s=e[A+1])==null?void 0:s.type)==="link_open"){const le=be.content.match(/\[([^\]]+)\]/);if(le){let ue=be.content.slice(0,le.index);const Ne=ue.match(/(\*+)$/),se=[];if(Ne){ue=ue.slice(0,Ne.index),ue&&se.push(At(ue));const Ae=le[1],Be=Ne[1].length;fn(se,Be);let Le=((a=e[A+2])==null?void 0:a.content)||"";if(((c=e[A+4])==null?void 0:c.type)==="text"&&!((u=e[A+4].content)!=null&&u.startsWith(")"))&&(Le+=((f=e[A+4])==null?void 0:f.content)||"",e[A+4].content=""),se.push(Qt(Ae,Le,!((h=(d=e[A+4])==null?void 0:d.content)!=null&&h.startsWith(")")))),hn(se,Be),((p=e[A+4])==null?void 0:p.type)==="text"){const Te=(m=e[A+4].content)==null?void 0:m.replace(/^\)\**/,"");Te&&se.push(At(Te)),e.splice(A,5,...se)}else e.splice(A,4,...se)}else{ue&&se.push(At(ue));let Ae=le[1];const Be=Ae.match(/^\*+/);if(Be){const Te=Be[0].length;Ae=Ae.replace(/^\*+/,"").replace(/\*+$/,"");let Jt=((g=e[A+2])==null?void 0:g.content)||"";if(((w=e[A+4])==null?void 0:w.type)==="text"&&!((S=e[A+4].content)!=null&&S.startsWith(")"))&&(Jt+=((x=e[A+4])==null?void 0:x.content)||"",e[A+4].content=""),fn(se,Te),se.push(Qt(Ae,Jt,!((_=(y=e[A+4])==null?void 0:y.content)!=null&&_.startsWith(")")))),hn(se,Te),((B=e[A+4])==null?void 0:B.type)==="text"){const dn=(k=e[A+4].content)==null?void 0:k.replace(/^\)/,"");dn&&se.push(At(dn)),e.splice(A,5,...se)}else e.splice(A,4,...se);A===0?A=se.length-1:A-=se.length-1;continue}let Le=((M=e[A+2])==null?void 0:M.content)||"";if(((b=e[A+4])==null?void 0:b.type)==="text"&&!((T=e[A+4].content)!=null&&T.startsWith(")"))&&(Le+=((H=e[A+4])==null?void 0:H.content)||"",e[A+4].content=""),se.push(Qt(Ae,Le,!((P=(L=e[A+4])==null?void 0:L.content)!=null&&P.startsWith(")")))),((W=e[A+4])==null?void 0:W.type)==="text"){const Te=(K=e[A+4].content)==null?void 0:K.replace(/^\)/,"");Te&&se.push(At(Te)),e.splice(A,5,...se)}else e.splice(A,4,...se)}A-=se.length-1;continue}}else if(be.type==="link_open"&&be.markup==="linkify"&&((O=e[A-1])==null?void 0:O.type)==="text"&&((F=e[A-1].content)!=null&&F.endsWith("("))){if(((V=e[A-2])==null?void 0:V.type)==="link_close"){const le=[],ue=e[A-3].content||"";let Ne=((Y=(j=be.attrs)==null?void 0:j.find(se=>se[0]==="href"))==null?void 0:Y[1])||"";if(((J=e[A+3])==null?void 0:J.type)==="text"){const se=((re=(te=e[A+3])==null?void 0:te.content)!=null?re:"").indexOf(")"),Ae=se===-1;se===-1&&(Ne+=((he=(_e=e[A+3])==null?void 0:_e.content)==null?void 0:he.slice(0,se))||"",e[A+3].content=""),le.push(Qt(ue,Ne,Ae));const Be=(pe=e[A+3].content)==null?void 0:pe.replace(/^\)\**/,"");Be&&le.push(At(Be)),e.splice(A-4,8,...le)}else le.push({type:"link",loading:!0,href:Ne,title:"",text:ue,children:[{type:"text",content:Ne,raw:Ne}],raw:`[${ue}](${Ne})`}),e.splice(A-4,7,...le);continue}else if(e[A-1].content==="]("&&((ie=e[A-3])==null?void 0:ie.type)==="text"&&((z=e[A-3].content)!=null&&z.endsWith(")")))if(((R=e[A-2])==null?void 0:R.type)==="strong_open"){const[le,ue]=((q=e[A-3].content)==null?void 0:q.split("[**"))||[];e[A+1].content=ue||"",e[A-3].content=le||"",e[A-1].content=""}else if(((Q=e[A-2])==null?void 0:Q.type)==="em_open"){const[le,ue]=((oe=e[A-3].content)==null?void 0:oe.split("[*"))||[];e[A+1].content=ue||"",e[A-3].content=le||"",e[A-1].content=""}else{const[le,ue]=((Ce=e[A-3].content)==null?void 0:Ce.split("["))||[];e[A+1].content=ue||"",e[A-3].content=le||"",e[A-1].content=""}}if(be.type==="link_close"&&be.nesting===-1&&((ge=e[A+1])==null?void 0:ge.type)==="text"&&((Ie=e[A-1])==null?void 0:Ie.type)==="text"){let le=!0;const ue=e[A-1].content||"";let Ne=((Fe=(je=e[A-2].attrs)==null?void 0:je[0])==null?void 0:Fe[1])||"",se=3,Ae=2;const Be=(((Oe=e[A-3])==null?void 0:Oe.content)||"").match(/^(\*+)$/),Le=[];if(Be){Ae+=1;const Te=Be[1].length;fn(Le,Te)}if((be.markup===""||e[A+1].type==="text"&&(e[A+1].content==="."||e[A+1].content==="?"))&&(le=!1),be.markup==="linkify"&&((De=e[A+1])==null?void 0:De.type)==="text"&&!((me=(ae=e[A+1])==null?void 0:ae.content)!=null&&me.startsWith(" "))){const Te=((vt=(He=e[A+1])==null?void 0:He.content)!=null?vt:"").indexOf(")");Te===-1?(Ne+=((ze=(wt=e[A+1])==null?void 0:wt.content)==null?void 0:ze.slice(0,Te))||"",e[A+1].content=""):le=!1,se+=1}else if(e[A+1].type==="text"&&((Ge=(yt=e[A+1])==null?void 0:yt.content)!=null&&Ge.startsWith("]("))){se+=1;for(let Te=A+1;Te<e.length;Te++){const Jt=Be?Be[1].length:e[A-3].markup.length,dn=e[Te];if(Jt===1&&dn.type==="em_close"){le=!1;break}else if(Jt===2&&dn.type==="strong_close"){le=!1;break}else if(Jt===3&&(dn.type==="em_close"||dn.type==="strong_close")){le=!1;break}se+=1}}else le=!1;if(Le.push({type:"link",loading:le,href:Ne,title:"",text:ue,children:[{type:"text",content:ue,raw:ue}],raw:`[${ue}](${Ne})`}),Be){const Te=Be[1].length;hn(Le,Te)}e.splice(A-Ae,se,...Le),A-=Le.length-1;continue}else if((Ht=be.content)!=null&&Ht.startsWith("](")&&((xt=e[A-1].markup)!=null&&xt.includes("*"))&&((bt=e[A-4])==null?void 0:bt.type)==="text"&&((Qe=e[A-4].content)!=null&&Qe.endsWith("["))){const le=e[A-1].markup.length,ue=[],Ne=e[A-4].content.slice(0,e[A-4].content.length-le);Ne&&ue.push(At(Ne)),fn(ue,le);const se=e[A-2].content||"";let Ae=be.content.slice(2),Be=!0;if(((Nt=e[A+1])==null?void 0:Nt.type)==="text"){const Le=((It=(_t=e[A+1])==null?void 0:_t.content)!=null?It:"").indexOf(")");Be=Le===-1,Le===-1&&(Ae+=((N=(Ct=e[A+1])==null?void 0:Ct.content)==null?void 0:N.slice(0,Le))||"",e[A+1].content="")}if(ue.push(Qt(se,Ae,Be)),hn(ue,le),((v=e[A+1])==null?void 0:v.type)==="text"){const Le=(C=e[A+1].content)==null?void 0:C.replace(/^\)\**/,"");Le&&ue.push(At(Le)),e.splice(A-4,8,...ue)}else((D=e[A+1])==null?void 0:D.type)==="link_open"?e.splice(A-4,10,...ue):e.splice(A-4,7,...ue);A-=ue.length-1;continue}else if((G=be.content)!=null&&G.startsWith("](")&&e[A-1].type==="strong_close"&&((U=e[A-4])==null?void 0:U.type)==="text"&&((ve=(ke=e[A-4])==null?void 0:ke.content)!=null&&ve.includes("**["))){A++;const le=[],ue=e[A-4].content.split("**[")[0];ue&&le.push(At(ue)),fn(le,2);const Ne=e[A-2].content||"";let se=be.content.slice(2),Ae=!0;if(((ye=e[A+1])==null?void 0:ye.type)==="text"){const Be=((Ee=(de=e[A+1])==null?void 0:de.content)!=null?Ee:"").indexOf(")");Ae=Be===-1,Be===-1&&(se+=((Ft=(xe=e[A+1])==null?void 0:xe.content)==null?void 0:Ft.slice(0,Be))||"",e[A+1].content="")}if(le.push(Qt(Ne,se,Ae)),hn(le,2),((Mt=e[A+1])==null?void 0:Mt.type)==="text"){const Be=(Rt=e[A+1].content)==null?void 0:Rt.replace(/^\)\**/,"");Be&&le.push(At(Be)),e.splice(A-4,8,...le)}else(($e=e[A+1])==null?void 0:$e.type)==="link_open"?e.splice(A-4,10,...le):e.splice(A-4,7,...le);A-=le.length-1;continue}else if(be.type==="strong_close"&&((qe=e[A+1])==null?void 0:qe.type)==="text"&&((Zt=e[A+1].content)!=null&&Zt.includes("]("))&&e[A-1].type==="text"&&/\[.*$/.test(e[A-1].content||"")){const le=[],[ue,Ne]=((Lt=e[A-1].content)==null?void 0:Lt.split("["))||["",""];ue&&le.push(At(ue)),fn(le,2);let[se,Ae]=e[A+1].content.split("](");se=Ne+se;let Be=4;if(((Bt=e[A+2])==null?void 0:Bt.type)==="link_open"){const Te=(qt=(Et=e[A+2].attrs)==null?void 0:Et.find(Jt=>Jt[0]==="href"))==null?void 0:qt[1];((Yt=e[A+5])==null?void 0:Yt.type)==="text"&&e[A+5].content==="."?(Ae=(Te||Ae)+e[A+5].content,e[A+5].content=""):Ae=Te||Ae,Be+=3}let Le=!0;if(be.nesting===-1&&(se=se.replace(/\*+$/,"")),((Gt=e[A+2])==null?void 0:Gt.type)==="text"){const Te=((qn=(un=e[A+2])==null?void 0:un.content)!=null?qn:"").indexOf(")");Le=Te===-1,Te===-1&&(Ae+=(($=(Wn=e[A+2])==null?void 0:Wn.content)==null?void 0:$.slice(0,Te))||"",e[A+2].content="")}le.push(Qt(se,Ae,Le)),hn(le,2),e.splice(A-2,Be,...le)}if(be.type==="text"&&/\*+\[[^\]]*$/.test(be.content||"")&&((E=e[A+1])==null?void 0:E.type)==="strong_open"&&((I=e[A+2])==null?void 0:I.type)==="text"&&e[A+2].content==="]("&&((X=e[A+3])==null?void 0:X.type)==="link_open"&&((ce=e[A+5])==null?void 0:ce.type)==="link_close"&&((fe=e[A+6])==null?void 0:fe.type)==="text"&&e[A+6].content===")"&&((we=e[A+7])==null?void 0:we.type)==="strong_close"){const le=(be.content||"").match(/^(\*+)\[(.*)$/);if(le){const ue=(le[2]||"")+le[1];let Ne=((Re=(Je=(Se=e[A+3])==null?void 0:Se.attrs)==null?void 0:Je.find(Ae=>Ae[0]==="href"))==null?void 0:Re[1])||"";!Ne&&((Wt=e[A+4])==null?void 0:Wt.type)==="text"&&(Ne=e[A+4].content||"");const se=[];fn(se,2),se.push(Qt(ue,Ne,!1)),hn(se,2),e.splice(A,9,...se),A-=se.length-1;continue}}}return e}function ld(e){e.core.ruler.after("inline","fix_list_item_tokens",t=>{var o;const n=(o=t.tokens)!=null?o:[];for(let r=0;r<n.length;r++){const i=n[r];if(i&&i.type==="inline"&&Array.isArray(i.children))try{i.children=sd(i.children)}catch(s){console.error("[applyFixListItem] failed to fix inline children",s)}}})}function sd(e){var o,r;const t=e[e.length-1],n=String((o=t==null?void 0:t.content)!=null?o:"");return(t==null?void 0:t.type)==="text"&&/^\s*\d+\.\s*$/.test(n)&&((r=e[e.length-2])==null?void 0:r.tag)==="br"&&e.splice(e.length-1,1),e}function ad(e){e.core.ruler.after("inline","fix_strong_tokens",t=>{var o;const n=(o=t.tokens)!=null?o:[];for(let r=0;r<n.length;r++){const i=n[r];if(i&&i.type==="inline"&&Array.isArray(i.children))try{i.children=cd(i.children)}catch(s){console.error("[applyFixStrongTokens] failed to fix inline children",s)}}})}function cd(e){var f,d,h,p,m,g,w,S,x,y,_,B,k,M,b,T,H;let t=0;const n=new Set,o=new Set;let r=0;for(let L=0;L<e.length;L++){const P=e[L],W=P.type;if(W==="strong_open"){t++;const K=String((f=P.markup)!=null?f:"");let O=L-1;for(;O>=0&&e[O].type==="text"&&e[O].content==="";)O--;const F=e[O];let V=L+1;for(;V<e.length&&e[V].type==="text"&&e[V].content==="";)V++;const j=e[V];K==="__"&&((d=F==null?void 0:F.content)!=null&&d.endsWith("_")||(h=j==null?void 0:j.content)!=null&&h.startsWith("_")||(p=j==null?void 0:j.markup)!=null&&p.includes("_"))&&(P.type="text",P.tag="",P.content=K,P.raw=K,P.markup="",P.attrs=null,P.map=null,P.info="",P.meta=null,n.add(t))}else if(W==="strong_close")n.has(t)&&P.markup==="__"&&(P.type="text",P.content=P.markup,P.raw=String((m=P.markup)!=null?m:""),P.tag="",P.markup="",P.attrs=null,P.map=null,P.info="",P.meta=null),t--,t<0&&(t=0);else if(W==="em_open"){r++;const K=String((g=P.markup)!=null?g:"");let O=L-1;for(;O>=0&&e[O].type==="text"&&e[O].content==="";)O--;const F=e[O];let V=L+1;for(;V<e.length&&e[V].type==="text"&&e[V].content==="";)V++;const j=e[V];K==="_"&&((w=F==null?void 0:F.content)!=null&&w.endsWith("_")||(S=j==null?void 0:j.content)!=null&&S.startsWith("_")||(x=j==null?void 0:j.markup)!=null&&x.includes("_"))&&(P.type="text",P.tag="",P.content=K,P.raw=K,P.markup="",P.attrs=null,P.map=null,P.info="",P.meta=null,o.add(r))}else W==="em_close"&&(o.has(r)&&P.markup==="_"&&(P.type="text",P.content=P.markup,P.raw=String((y=P.markup)!=null?y:""),P.tag="",P.markup="",P.attrs=null,P.map=null,P.info="",P.meta=null),r--,r<0&&(r=0))}if(e.length<5)return e;const i=e.length-4,s=e[i],a=[...e],c=e[i+1],u=String((_=s.content)!=null?_:"");if(s.type==="link_open"&&((B=e[i-1])==null?void 0:B.type)==="em_open"&&((k=e[i-2])==null?void 0:k.type)==="text"&&((M=e[i-2].content)!=null&&M.endsWith("*"))){const L=String((b=e[i-2].content)!=null?b:"").slice(0,-1),P=[{type:"strong_open",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null,raw:""},e[i],e[i+1],e[i+2],{type:"strong_close",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null,raw:""}];L&&P.unshift({type:"text",content:L,raw:L}),a.splice(i-2,6,...P)}else if(s.type==="text"&&u.endsWith("*")&&c.type==="em_open"){const L=e[i+2],P=(L==null?void 0:L.type)==="text"?4:3,W=[{type:"strong_open",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null,raw:""},{type:"text",content:(L==null?void 0:L.type)==="text"?String((T=L.content)!=null?T:""):"",raw:(L==null?void 0:L.type)==="text"?String((H=L.content)!=null?H:""):""},{type:"strong_close",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null,raw:""}],K=u.slice(0,-1);return K&&W.unshift({type:"text",content:K,raw:K}),a.splice(i,P,...W),a}return a}function ud(e){e.core.ruler.after("block","fix_table_tokens",t=>{var o;const n=t;try{const r=dd((o=n.tokens)!=null?o:[]);Array.isArray(r)&&(n.tokens=r)}catch(r){console.error("[applyFixTableTokens] failed to fix table tokens",r)}})}function di(){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 fi(){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 hi(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 r,i,s,a;const t=[...e];if(e.length<3)return t;const n=e.length-2,o=e[n];if(o.type==="inline"){const c=String((r=o.content)!=null?r:""),u=String((a=(s=(i=o.children)==null?void 0:i[0])==null?void 0:s.content)!=null?a:"");if(/^\|(?:[^|\n]+\|?)+/.test(c)){const f=u.slice(1).split("|").map(h=>h.trim()).filter(Boolean).flatMap(h=>hi(h)),d=[...di(),...f,...fi()];t.splice(n-1,3,...d)}else if(/^\|(?:[^|\n]+\|)+\n\|:?-/.test(c)){const f=u.slice(1,-1).split("|").map(h=>h.trim()).flatMap(h=>hi(h)),d=[...di(),...f,...fi()];t.splice(n-1,3,...d)}else/^\|(?:[^|\n:]+\|)+\n\|:?$/.test(c)&&(o.content=c.slice(0,-2),o.children.splice(2,1))}return t}function _l(e,t,n,o){const r=e.length;if(n==="$$"&&o==="$$"){let u=t;for(;u<r-1;){if(e[u]==="$"&&e[u+1]==="$"){let f=u-1,d=0;for(;f>=0&&e[f]==="\\";)d++,f--;if(d%2===0)return u}u++}return-1}const i=n[n.length-1],s=o;let a=0,c=t;for(;c<r;){if(e.slice(c,c+s.length)===s){let f=c-1,d=0;for(;f>=0&&e[f]==="\\";)d++,f--;if(d%2===0){if(a===0)return c;a--,c+=s.length;continue}}const u=e[c];if(u==="\\"){c+=2;continue}u===i?a++:u===s[s.length-1]&&a>0&&a--,c++}return-1}var fd=_l;const Cl=["mathbf","boldsymbol","mathbb","mathcal","mathfrak","mathrm","mathit","mathsf","vec","hat","bar","tilde","overline","underline","mathscr","mathnormal","operatorname","mathbf*"],Gn=Cl.map(e=>e.replace(/[.*+?^${}()|[\\]"\]/g,"\\$&")).join("|"),hd=/\\[a-z]+/i,El="(?:\\\\|\\u0008)",pd=new RegExp(`${El}(?:${Gn})\\s*\\{[^}]+\\}`,"i"),md=new RegExp(`(?:${El})?(?:${Gn})s*{`,"i"),gd=/\\(?:text|frac|left|right|times)/,kd=new RegExp("(?:^|[^+])\\+(?!\\+)|[=\\-*/^<>]|\\\\times|\\\\pm|\\\\cdot|\\\\le|\\\\ge|\\\\neq"),vd=/\b[A-Z]{2,}-[A-Z]{2,}\b/i,wd=/[A-Z]+\s*\([^)]+\)/i,yd=/\b(?:sin|cos|tan|log|ln|exp|sqrt|frac|sum|lim|int|prod)\b/,xd=/\b\d{4}\/\d{1,2}\/\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?\b/;function Kn(e){if(!e)return!1;const t=e.replace(/\u0008/g,"\\b"),n=t.trim();if(xd.test(n)||n.includes("**"))return!1;if(n.length>2e3)return!0;const o=hd.test(t),r=pd.test(t),i=md.test(t),s=gd.test(t),a=/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)_(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t)||/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)\^(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t),c=kd.test(t)&&!vd.test(t),u=wd.test(t),f=yd.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||i||s||a||c||u||f||d||h}const bo=["ldots","cdots","quad","in","ce","pu","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"],Sl=bo.slice().sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),Ml="[ \r\b\f\v]",bd=/span\{([^}]+)\}/,_d=/\\operatorname\{span\}\{((?:[^{}]|\{[^}]*\})+)\}/,Cd=/(^|[^\\])\\\r?\n/g,Ed=/(^|[^\\])\\$/g,Sd=new RegExp(`(${Ml})|(${Sl})\\b`,"g"),pi=new Map,mi=new Map;function Md(e){if(!e)return Sd;const t=[...e];t.sort((s,a)=>a.length-s.length);const n=t.join(""),o=pi.get(n);if(o)return o;const r=`(?:${t.map(s=>s.replace(/[.*+?^${}()|[\\]\\"\]/g,"\\$&")).join("|")})`,i=new RegExp(`(${Ml})|(${r})\\b`,"g");return pi.set(n,i),i}function Bd(e,t){const n=e?[]:[...t!=null?t:[]];e||n.sort((a,c)=>c.length-a.length);const o=e?"__default__":n.join(""),r=mi.get(o);if(r)return r;const i=e?[Gn,Sl].filter(Boolean).join("|"):[n.map(a=>a.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),Gn].filter(Boolean).join("|"),s=new RegExp(`(^|[^\\\\\\w])(${i})\\s*\\{`,"g");return mi.set(o,s),s}const gi={" ":"t","\r":"r","\b":"b","\f":"f","\v":"v"};function ki(e){const t=/(^|[^\\])(__|\*\*)/g;let n=0;for(;t.exec(e)!==null;)n++;return n}function pn(e,t){var u,f;const n=(u=t==null?void 0:t.commands)!=null?u:bo,o=(f=t==null?void 0:t.escapeExclamation)!=null?f:!0,r=(t==null?void 0:t.commands)==null,i=Md(r?void 0:n);let s=e.replace(i,(d,h,p,m,g)=>{if(h!==void 0&&gi[h]!==void 0)return`\\${gi[h]}`;if(p&&n.includes(p)){const w=g&&typeof m=="number"?g[m-1]:void 0;return w==="\\"||w&&/\w/.test(w)?d:`\\${p}`}return d});o&&(s=s.replace(/(^|[^\\])!/g,"$1\\!"));let a=s;const c=Bd(r,r?void 0:n);return a=a.replace(c,(d,h,p)=>`${h}\\${p}{`),a=a.replace(bd,"span\\{$1\\}").replace(_d,"\\operatorname{span}\\{$1\\}"),a=a.replace(Cd,`$1\\\\
|
|
39
|
+
`),a=a.replace(Ed,"$1\\\\"),a}function Bl(e,t){const n=(r,i)=>{const s=r,a=!!(t!=null&&t.strictDelimiters);if(/^\*[^*]+/.test(s.src))return!1;const c=[["$","$"],["\\(","\\)"]];let u=0,f=0;for(const[d,h]of c){const p=s.src;let m=!1;const g=w=>{if((w==="undefined"||w==null)&&(w=""),w==="\\"){s.pos=s.pos+w.length,u=s.pos;return}if(w==="\\)"||w==="\\("){const x=s.push("text_special","",0);x.content=w==="\\)"?")":"(",x.markup=w,s.pos=s.pos+w.length,u=s.pos;return}if(!w)return;const S=s.push("text","",0);S.content=w,s.pos=s.pos+w.length,u=s.pos};for(;!(u>=p.length);){const w=p.indexOf(d,u);if(w===-1)break;if(w>0){let _=w-1;for(;_>=0&&p[_]===" ";)_--;if(_>=0&&p[_]==="]")return!1}const S=fd(p,w+d.length,d,h);if(S===-1){const _=p.slice(w+d.length);if(_.includes(d)){u=p.indexOf(d,w+d.length);continue}if(S===-1){if(!a&&Kn(_)&&!_.includes("`")){if(u=w+d.length,m=!0,!i){s.pending="";const B=ki(f?p.slice(f,u):p.slice(0,u))%2===1;if(f)g(p.slice(f,u));else{let k=p.slice(0,u);k.endsWith(d)&&(k=k.slice(0,k.length-d.length)),g(k)}if(B){const k=s.push("strong_open","",0);k.markup=p.slice(0,w+2);const M=s.push("math_inline","math",0);M.content=pn(_,t),M.markup=d==="$$"?"$$":d==="\\("?"\\(\\)":d==="$"?"$":"()",M.raw=`${d}${_}${h}`,M.loading=!0,k.content=_,s.push("strong_close","",0)}else{const k=s.push("math_inline","math",0);k.content=pn(_,t),k.markup=d==="$$"?"$$":d==="\\("?"\\(\\)":d==="$"?"$":"()",k.raw=`${d}${_}${h}`,k.loading=!0}s.pos=p.length}u=p.length,f=u}break}}const x=p.slice(w+d.length,S),y=x.includes("`");if(a?y:y||d!=="$"&&!Kn(x)){u=S+h.length;const _=p.slice(s.pos,u);s.pending||g(_);continue}if(m=!0,!i){const _=p.slice(0,w);if(_.match(/(^|[^\\])(`+|__|\*\*)/)){u=w+d.length;continue}let B=p.slice(0,u)?p.slice(f,w):_;const k=ki(B)%2===1;if(w!==s.pos&&k&&(B=s.pending+p.slice(s.pos,w)),s.pending!==B)if(s.pending="",k){const M=B.match(/(\*+)/),b=B.slice(M.index+M[0].length);g(B.slice(0,M.index));const T=s.push("strong_open","",0);T.markup=M[0];const H=s.push("text","",0);H.content=b,s.push("strong_close","",0)}else g(B);if(k){const M=s.push("strong_open","",0);M.markup="**";const b=s.push("math_inline","math",0);b.content=pn(x,t),b.markup=d==="$$"?"$$":d==="\\("?"\\(\\)":d==="$"?"$":"()",b.raw=`${d}${x}${h}`,b.loading=!1;const T=p.slice(S+h.length),H=T.startsWith("*");if(H&&s.push("strong_close","",0),T){const L=s.push("text","",0);L.content=(T==null?"":String(T)).replace(/^\*+/,"")}H||s.push("strong_close","",0),s.pos=p.length,u=p.length,f=u;continue}else{const M=s.push("math_inline","math",0);M.content=pn(x,t),M.markup=d==="$$"?"$$":d==="\\("?"\\(\\)":d==="$"?"$":"()",M.raw=`${d}${x}${h}`,M.loading=!1}}u=S+h.length,f=u,s.pos=u}if(m)return i?s.pos=u:(u<p.length&&g(p.slice(u)),s.pos=p.length),!0}return!1},o=(r,i,s,a)=>{const c=r,u=t==null?void 0:t.strictDelimiters,f=u?[["\\[","\\]"],["$$","$$"]]:[["\\[","\\]"],["[","]"],["$$","$$"]],d=c.bMarks[i]+c.tShift[i];let h=c.src.slice(d,c.eMarks[i]).trim(),p=!1,m="",g="",w=!1;for(const[k,M]of f)if(h.startsWith(k))if(k.includes("["))if(t!=null&&t.strictDelimiters){if(h.replace("\\","")==="["){if(i+1<s){p=!0,m=k,g=M;break}continue}}else if(h.replace("\\","")==="["){if(i+1<s){p=!0,m=k,g=M;break}continue}else{const b=c.tokens[c.tokens.length-1];if(b&&b.type==="list_item_open"&&b.mark==="-"&&h.slice(k.length,h.indexOf("]")).trim()==="x")continue;if(h.replace("\\","").startsWith("[")&&!h.includes("](")){const T=h.indexOf("]");if(h.slice(T).trim()!=="]")continue;if(Kn(h.slice(k.length,T))){p=!0,m=k,g=M;break}continue}}else{p=!0,m=k,g=M;break}else if(h.endsWith(k)&&!h.slice(0,h.length-k.length).trim().includes(k)&&i+1<s){c.push("text","",0).content=h.slice(0,h.length-k.length);const b=c.bMarks[i+1]+c.tShift[i+1];if(h=c.src.slice(b,c.eMarks[i+1]).trim(),k==="$$"){w=!0,p=!0,m=k,g=M;break}}if(!p)return!1;if(a)return!0;if(h.includes(g)&&h.indexOf(g)>m.length){const k=h.indexOf(m),M=h.indexOf(g,k+m.length),b=h.slice(k+m.length,M),T=c.push("math_block","math",0);return T.content=pn(b),T.markup=m==="$$"?"$$":m==="["?"[]":"\\[\\]",T.map=[i,i+1],T.raw=`${m}${b}${g}`,T.block=!0,T.loading=!1,c.line=i+1,!0}let S=i,x="",y=!1;const _=h===m?"":h.slice(m.length);if(_.includes(g)){const k=_.indexOf(g);x=_.slice(0,k),y=!0,S=i}else for(_&&!w&&(x=_),S=i+1;S<s;S++){const k=c.bMarks[S]+c.tShift[S],M=c.eMarks[S],b=c.src.slice(k-1,M);if(b.trim()===g){y=!0;break}else if(b.includes(g)){y=!0;const T=b.indexOf(g);x+=(x?`
|
|
40
40
|
`:"")+b.slice(0,T);break}x+=(x?`
|
|
41
|
-
`:"")+b}if(u&&!y||!
|
|
41
|
+
`:"")+b}if(u&&!y||!Kn(x))return!1;const B=c.push("math_block","math",0);return B.content=pn(x),B.markup=m==="$$"?"$$":m==="["?"[]":"\\[\\]",B.raw=`${m}${x}${x.startsWith(`
|
|
42
42
|
`)?`
|
|
43
|
-
`:""}${g}`,
|
|
43
|
+
`:""}${g}`,B.map=[i,S+1],B.block=!0,B.loading=!y,c.line=S+1,!0};e.inline.ruler.before("escape","math",n),e.block.ruler.before("paragraph","math_block",o,{alt:["paragraph","reference","blockquote","list"]})}function Ad(e){const t=e.renderer.rules.image||function(n,o,r,i,s){const a=n,c=s;return c.renderToken?c.renderToken(a,o,r):""};e.renderer.rules.image=(n,o,r,i,s)=>{var c,u;const a=n;return(u=(c=a[o]).attrSet)==null||u.call(c,"loading","lazy"),t(a,o,r,i,s)},e.renderer.rules.fence=e.renderer.rules.fence||((n,o)=>{var s,a;const r=n[o],i=String((s=r.info)!=null?s:"").trim();return`<pre class="${i?`language-${e.utils.escapeHtml(i.split(/\s+/g)[0])}`:""}"><code>${e.utils.escapeHtml(String((a=r.content)!=null?a:""))}</code></pre>`})}function Dd(e={}){var n,o,r,i,s;const t=new Gu(ne({html:!0,linkify:!0,typographer:!0,stream:!0},(n=e.markdownItOptions)!=null?n:{}));return((o=e.enableMath)==null||o)&&Bl(t,ne(ne({},(r=Ju())!=null?r:{}),(i=e.mathOptions)!=null?i:{})),((s=e.enableContainers)==null||s)&&bl(t),rd(t),od(t),ad(t),ld(t),ud(t),Ad(t),td(t),t}function Td(e){var n;const t=(n=e.meta)!=null?n:{};return{type:"checkbox",checked:t.checked===!0,raw:t.checked?"[x]":"[ ]"}}function $d(e){const t=e,n=t.attrGet?t.attrGet("checked"):void 0,o=n===""||n==="true";return{type:"checkbox_input",checked:o,raw:o?"[x]":"[ ]"}}function Nd(e){var n,o;const t=String((n=e.content)!=null?n:"");return{type:"emoji",name:t,markup:String((o=e.markup)!=null?o:""),raw:`:${t}:`}}function ur(e,t,n){var a,c,u;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="em_close";)r+=String((u=(c=e[i].content)!=null?c:(a=e[i])==null?void 0:a.text)!=null?u:""),s.push(e[i]),i++;return o.push(...Pe(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong})),{node:{type:"emphasis",children:o,raw:`*${r}*`},nextIndex:i<e.length?i+1:e.length}}const vi=/\r?\n[ \t]*`+\s*$/,Id=["diff ","index ","--- ","+++ ","@@ "],Fd=/\r?\n/;function Rd(e){const t=[],n=[];for(const o of e.split(Fd)){const r=o;Id.some(i=>r.startsWith(i))||(r.length>=2&&r[0]==="-"&&r[1]===" "?t.push(` ${r.slice(1)}`):r.length>=2&&r[0]==="+"&&r[1]===" "?n.push(` ${r.slice(1)}`):(t.push(r),n.push(r)))}return{original:t.join(`
|
|
44
44
|
`),updated:n.join(`
|
|
45
45
|
`)}}function Vn(e){var c,u,f;const t=Array.isArray(e.map)&&e.map.length===2,n=(c=e.meta)!=null?c:{},o=typeof n.closed=="boolean"?n.closed:void 0,r=String((u=e.info)!=null?u:""),i=r.startsWith("diff"),s=i?(()=>{var p;const d=r,h=d.indexOf(" ");return h===-1?"":String((p=d.slice(h+1))!=null?p:"")})():r;let a=String((f=e.content)!=null?f:"");if(vi.test(a)&&(a=a.replace(vi,"")),i){const{original:d,updated:h}=Rd(a);return{type:"code_block",language:s,code:String(h!=null?h:""),raw:String(a!=null?a:""),diff:i,loading:o===!0?!1:o===!1?!0:!t,originalCode:d,updatedCode:h}}return{type:"code_block",language:s,code:String(a!=null?a:""),raw:String(a!=null?a:""),diff:i,loading:o===!0?!1:o===!1?!0:!t}}function Ld(e){var n,o,r;const t=(n=e.meta)!=null?n:{};return{type:"footnote_reference",id:String((o=t.label)!=null?o:""),raw:`[^${String((r=t.label)!=null?r:"")}]`}}function Pd(){return{type:"hardbreak",raw:`\\
|
|
46
|
-
`}}function Od(e,t,n){var a;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="mark_close";)r+=String((a=e[i].content)!=null?a:""),s.push(e[i]),i++;return o.push(...
|
|
46
|
+
`}}function Od(e,t,n){var a;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="mark_close";)r+=String((a=e[i].content)!=null?a:""),s.push(e[i]),i++;return o.push(...Pe(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong})),{node:{type:"highlight",children:o,raw:`==${r}==`},nextIndex:i<e.length?i+1:e.length}}function zd(e,t,n){var u,f,d;let o=String((u=e.content)!=null?u:"").trim();const r=t[n+1],i=t[n+2],s=o.match(/^<\s*([\w-]+)/),a=s?s[1].toLowerCase():"";function c(h){const p=h.match(/>([\s\S]*?)<\s*\/\s*[\w-]+>/);return p?p[1]:""}if(a==="a"){let h=!1;if((!r||(r==null?void 0:r.type)==="text"&&(!i||i.type!=="html_inline")||!r)&&(h=!0),(r==null?void 0:r.type)==="text"&&((i==null?void 0:i.type)==="html_inline"||!i)){const p=o.match(/href\s*=\s*"([^"]+)"|href\s*=\s*'([^']+)'|href\s*=\s*([^\s>]+)/i),m=p?p[1]||p[2]||p[3]:"";let g=n+1;r.type==="text"&&(o=(d=(f=r.content)==null?void 0:f.replace(/<[^>]*$/,""))!=null?d:"",g=n+2),(i==null?void 0:i.type)==="html_inline"&&r.type==="text"&&(g=n+3);const w=o||m||"";return[{type:"link",href:String(m!=null?m:""),title:null,text:o,children:[{type:"text",content:w,raw:w}],loading:h,raw:o},g]}}if(a==="p"||a==="div"){const h=c(o)||"";return[{type:"paragraph",children:[{type:"text",content:h,raw:h}],raw:o},n+1]}return[{type:"inline_code",code:o,raw:o},n+1]}function wi(e,t=!1){var f,d,h,p,m,g,w,S,x;let n=(f=e.attrs)!=null?f:[],o=null;if((!n||n.length===0)&&Array.isArray(e.children))for(const y of e.children){const _=y==null?void 0:y.attrs;if(Array.isArray(_)&&_.length>0){n=_,o=y;break}}const r=String((h=(d=n.find(y=>y[0]==="src"))==null?void 0:d[1])!=null?h:""),i=(p=n.find(y=>y[0]==="alt"))==null?void 0:p[1];let s="";i!=null&&String(i).length>0?s=String(i):(o==null?void 0:o.content)!=null&&String(o.content).length>0?s=String(o.content):Array.isArray(o==null?void 0:o.children)&&((m=o.children[0])!=null&&m.content)?s=String(o.children[0].content):Array.isArray(e.children)&&((g=e.children[0])!=null&&g.content)?s=String(e.children[0].content):e.content!=null&&String(e.content).length>0&&(s=String(e.content));const a=(S=(w=n.find(y=>y[0]==="title"))==null?void 0:w[1])!=null?S:null,c=a===null?null:String(a),u=String((x=e.content)!=null?x:"");return{type:"image",src:r,alt:s,title:c,raw:u,loading:t}}function Vd(e){var n;const t=String((n=e.content)!=null?n:"");return{type:"inline_code",code:t,raw:t}}function jd(e,t,n){var a;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="ins_close";)r+=String((a=e[i].content)!=null?a:""),s.push(e[i]),i++;return o.push(...Pe(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong})),{node:{type:"insert",children:o,raw:`++${String(r)}++`},nextIndex:i<e.length?i+1:e.length}}function Hd(e,t,n){var h,p,m,g,w,S;const o=(h=e[t].attrs)!=null?h:[],r=String((m=(p=o.find(x=>x[0]==="href"))==null?void 0:p[1])!=null?m:""),i=(w=(g=o.find(x=>x[0]==="title"))==null?void 0:g[1])!=null?w:null,s=i===null?null:String(i);let a=t+1;const c=[];let u=!0;for(;a<e.length&&e[a].type!=="link_close";)c.push(e[a]),a++;((S=e[a])==null?void 0:S.type)==="link_close"&&(u=!1);const f=Pe(c,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),d=f.map(x=>{var _,B;const y=x;return"content"in x?String((_=y.content)!=null?_:""):String((B=y.raw)!=null?B:"")}).join("");return{node:{type:"link",href:r,title:s,text:d,children:f,raw:`[${d}](${r}${s?` "${s}"`:""})`,loading:u},nextIndex:a<e.length?a+1:e.length}}function yi(e){var t;return{type:"math_inline",content:String((t=e.content)!=null?t:""),loading:!!e.loading,raw:e.raw}}function qd(e){var t,n,o;return{type:"reference",id:String((t=e.content)!=null?t:""),raw:String((o=e.markup)!=null?o:`[${(n=e.content)!=null?n:""}]`)}}function xi(e,t,n){var a;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="s_close";)r+=String((a=e[i].content)!=null?a:""),s.push(e[i]),i++;return o.push(...Pe(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong})),{node:{type:"strikethrough",children:o,raw:`~~${r}~~`},nextIndex:i<e.length?i+1:e.length}}function dr(e,t,n,o){var u;const r=[];let i="",s=t+1;const a=[];let c=1;for(;s<e.length;){if(e[s].type==="strong_close"){if(c===1)break;c--}e[s].type==="strong_open"&&c++,i+=String((u=e[s].content)!=null?u:""),a.push(e[s]),s++}return r.push(...Pe(a,n,void 0,{requireClosingStrong:o==null?void 0:o.requireClosingStrong})),{node:{type:"strong",children:r,raw:`**${String(i)}**`},nextIndex:s<e.length?s+1:e.length}}function Wd(e,t,n){var u,f;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="sub_close";)r+=String((u=e[i].content)!=null?u:""),s.push(e[i]),i++;o.push(...Pe(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}));const a=String((f=e[t].content)!=null?f:""),c=r||a;return{node:{type:"subscript",children:o.length>0?o:[{type:"text",content:c,raw:c}],raw:`~${c}~`},nextIndex:i<e.length?i+1:e.length}}function Ud(e,t,n){var a,c,u,f;const o=[];let r="",i=t+1;const s=[];for(;i<e.length&&e[i].type!=="sup_close";)r+=String((a=e[i].content)!=null?a:""),s.push(e[i]),i++;return o.push(...Pe(s,void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong})),{node:{type:"superscript",children:o.length>0?o:[{type:"text",content:r||String((c=e[t].content)!=null?c:""),raw:r||String((u=e[t].content)!=null?u:"")}],raw:`^${r||String((f=e[t].content)!=null?f:"")}^`},nextIndex:i<e.length?i+1:e.length}}function Kd(e){var n;const t=String((n=e.content)!=null?n:"");return{type:"text",content:t,raw:t}}const Xd=/\*\*([\s\S]*?)\*\*/;function Zr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Zd=/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,Yd=/:\/\//;function Gd(e){return e?Zd.test(e)||Yd.test(e):!1}function Pe(e,t,n,o){if(!e||e.length===0)return[];const r=[];let i=null,s=0;const a=o==null?void 0:o.requireClosingStrong;function c(){i=null}function u(k,M){var b,T;if(/[^~]*~{2,}[^~]+/.test(k)){let H=k.indexOf("~~");H===-1&&(H=0);const L=k.slice(0,H);L&&(i?(i.content+=L,i.raw+=L):(i={type:"text",content:String(L!=null?L:""),raw:String((b=M.content)!=null?b:"")},r.push(i)));const{node:P}=xi([{type:"s_open",tag:"s",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:k.slice(H).replace(/~/g,""),markup:"",info:"",meta:null},{type:"s_close",tag:"s",content:"",markup:"*",info:"",meta:null}],0);return c(),p(P),s++,!0}if(/\*\*/.test(k)&&!k.endsWith("**")){const H=k.indexOf("**"),L=H>-1?k.slice(0,H):"";if(L&&m(L,L),H===-1)return s++,!0;const P=Xd.exec(k);let W="",K="";if(P&&typeof P.index=="number")W=P[1],K=k.slice(P.index+P[0].length);else{if(a)return m(k,k),s++,!0;W=k.slice(H+2),K=""}const{node:O}=dr([{type:"strong_open",tag:"strong",content:"",markup:"**",info:"",meta:null},{type:"text",tag:"",content:W,markup:"",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"**",info:"",meta:null}],0,t,o);return c(),p(O),K&&(g({type:"text",content:K,raw:K}),s--),s++,!0}if(/[^*]*\*[^*]+/.test(k)){let H=k.indexOf("*");H===-1&&(H=0);const L=k.slice(0,H);L&&(i?(i.content+=L,i.raw+=L):(i={type:"text",content:String(L!=null?L:""),raw:String((T=M.content)!=null?T:"")},r.push(i)));const P=k.indexOf("*",H+1),{node:W}=ur([{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:k.slice(H,P>-1?P+1:void 0).replace(/\*/g,""),markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null}],0,o);if(P!==-1&&P<k.length-1){const K=k.slice(P+1);K&&g({type:"text",content:K,raw:K})}return c(),p(W),s++,!0}return!1}function f(k,M){var F,V;if(!k.includes("`"))return!1;const b=k.indexOf("`");let T=1;for(let j=b+1;j<k.length&&k[j]==="`";j++)T++;const H="`".repeat(T),L=b+T,P=k.indexOf(H,L);if(P===-1){if(T===1){const Y=k.slice(0,b),J=k.slice(b+1);return Y&&(u(Y,M)?s--:m(Y,Y)),d({type:"inline_code",code:J,raw:String(J)}),s++,!0}let j=k;for(let Y=s+1;Y<e.length;Y++)j+=String(((F=e[Y].content)!=null?F:"")+((V=e[Y].markup)!=null?V:""));return s=e.length-1,m(j,j),s++,!0}c();const W=k.slice(0,b),K=k.slice(b+T,P),O=k.slice(P+T);return W&&(u(W,M)?s--:m(W,W)),d({type:"inline_code",code:K,raw:String(K!=null?K:"")}),O&&(g({type:"text",content:O,raw:O}),s--),s++,!0}function d(k){c(),r.push(k)}function h(k){c(),r.push(k)}function p(k){d(k)}function m(k,M){var b;i?(i.content+=k,i.raw+=M!=null?M:k):(i={type:"text",content:String(k!=null?k:""),raw:String((b=M!=null?M:k)!=null?b:"")},r.push(i))}for(;s<e.length;){const k=e[s];g(k)}function g(k){var M,b,T,H,L,P,W,K,O;switch(k.type){case"text":w(k);break;case"softbreak":i?(i.content+=`
|
|
47
47
|
`,i.raw+=`
|
|
48
48
|
`):(i={type:"text",content:`
|
|
49
49
|
`,raw:`
|
|
50
|
-
`},r.push(i)),s++;break;case"code_inline":p(Vd(k)),s++;break;case"html_inline":{const[
|
|
51
|
-
`)},r+1]}function
|
|
50
|
+
`},r.push(i)),s++;break;case"code_inline":p(Vd(k)),s++;break;case"html_inline":{const[F,V]=zd(k,e,s);p(F),s=V;break}case"link_open":S(k);break;case"image":c(),p(wi(k)),s++;break;case"strong_open":{c();const{node:F,nextIndex:V}=dr(e,s,k.content,o);p(F),s=V;break}case"em_open":{c();const{node:F,nextIndex:V}=ur(e,s,o);p(F),s=V;break}case"s_open":{c();const{node:F,nextIndex:V}=xi(e,s,o);p(F),s=V;break}case"mark_open":{c();const{node:F,nextIndex:V}=Od(e,s,o);p(F),s=V;break}case"ins_open":{c();const{node:F,nextIndex:V}=jd(e,s,o);p(F),s=V;break}case"sub_open":{c();const{node:F,nextIndex:V}=Wd(e,s,o);p(F),s=V;break}case"sup_open":{c();const{node:F,nextIndex:V}=Ud(e,s,o);p(F),s=V;break}case"sub":c(),p({type:"subscript",children:[{type:"text",content:String((M=k.content)!=null?M:""),raw:String((b=k.content)!=null?b:"")}],raw:`~${String((T=k.content)!=null?T:"")}~`}),s++;break;case"sup":c(),p({type:"superscript",children:[{type:"text",content:String((H=k.content)!=null?H:""),raw:String((L=k.content)!=null?L:"")}],raw:`^${String((P=k.content)!=null?P:"")}^`}),s++;break;case"emoji":{c();const F=e[s-1];(F==null?void 0:F.type)==="text"&&/\|:-+/.test(String((W=F.content)!=null?W:""))?m("",""):p(Nd(k)),s++;break}case"checkbox":c(),p(Td(k)),s++;break;case"checkbox_input":c(),p($d(k)),s++;break;case"footnote_ref":c(),p(Ld(k)),s++;break;case"hardbreak":c(),p(Pd()),s++;break;case"fence":c(),p(Vn(e[s])),s++;break;case"math_inline":c(),!k.content&&k.markup==="$"&&((K=e[s+1])==null?void 0:K.type)==="text"&&((O=e[s+2])==null?void 0:O.type)==="math_inline"?(p(yi(Ve(ne({},k),{content:e[s+1].content}))),s+=2):p(yi(k)),s++;break;case"reference":x(k);break;default:h(k),s++;break}}function w(k){var P,W,K,O,F,V,j;let M=r.length-1,b=String((P=k.content)!=null?P:"").replace(/\\/g,"");if(k.content==="<"||b==="1"&&((W=e[s-1])==null?void 0:W.tag)==="br"){s++;return}for(b.startsWith(")")&&((K=r[r.length-1])==null?void 0:K.type)==="link"&&(b=b.slice(1)),Array.from(b.matchAll(/\$/g)).length===1&&b.endsWith("$")&&(b=b.slice(0,-1)),b.endsWith("undefined")&&!(t!=null&&t.endsWith("undefined"))&&(b=b.slice(0,-9));M>=0;M--){const Y=r[M];if(Y.type==="text"){i=null,b=Y.content+b;continue}break}M<r.length-1&&r.splice(M+1);const T=e[s+1];if((n==null?void 0:n.type)==="list_item_open"&&/^\d$/.test(b)){s++;return}if(b==="`"||b==="|"||b==="$"||/^\*+$/.test(b)){s++;return}if(!T&&/[^\]]\s*\(\s*$/.test(b)&&(b=b.replace(/\(\s*$/,"")),B(b))return;const H=e[s-1];if(b==="["&&!((O=T==null?void 0:T.markup)!=null&&O.includes("*"))||b==="]"&&!((F=H==null?void 0:H.markup)!=null&&F.includes("*"))){s++;return}if(f(b,k)||_(b,k)||((V=e[s+1])==null?void 0:V.type)!=="link_open"&&y(b)||u(b,k))return;if(!b){s++;return}const L=Kd(Ve(ne({},k),{content:b}));if(i)i.content+=L.content.replace(/(\*+|\(|\\)$/,""),i.raw+=L.raw;else{const Y=(H==null?void 0:H.tag)==="br"&&((j=e[s-2])==null?void 0:j.content)==="[";e[s+1]||(L.content=L.content.replace(/(\*+|\(|\\)$/,"")),i=L,i.center=Y,r.push(i)}s++}function S(k){var P,W,K,O,F,V,j,Y,J,te,re,_e,he,pe,ie,z,R,q;c();const M=(W=(P=k.attrs)==null?void 0:P.find(([Q])=>Q==="href"))==null?void 0:W[1];if(t&&e[s+1].type==="text"){let Q=String((O=(K=e[s+1])==null?void 0:K.content)!=null?O:"");const oe=Zr(Q);if(!new RegExp(`\\[${oe}\\s*\\]`).test(t)){const Ce=(j=(V=(F=k.attrs)==null?void 0:F.find(([ge])=>ge==="href"))==null?void 0:V[1])!=null?j:"";if(!t.includes("[")&&Gd(String(Ce))){c(),d({type:"link",href:String(Ce),title:null,text:Q,children:[{type:"text",content:Q,raw:Q}],loading:!1}),s+=3;return}if(((Y=e[s+2])==null?void 0:Y.type)==="strong_open"){for(s+=2;s<e.length-1&&e[s]&&((J=e[s])==null?void 0:J.type)!=="link_close";)Q+=String(((te=e[s])==null?void 0:te.markup)||((re=e[s])==null?void 0:re.content)||""),s++;d({type:"link",href:String(Ce),title:null,text:Q,children:[{type:"text",content:Q,raw:Q}],loading:!1}),s+=1}else m(Q,Q),s+=3;return}}if(t&&M){const Q=new RegExp(`\\(\\s*${Zr(M)}\\s*\\)`),oe=r.length>0?r[r.length-1]:void 0,Ce=!Q.test(t);if(Ce&&oe){let ge="";if(oe&&(oe.type==="link"?ge=String((_e=oe.text)!=null?_e:""):oe.type==="text"?ge=String((he=oe.content)!=null?he:""):oe.content&&typeof oe.content=="string"&&(ge=String((pe=oe.content)!=null?pe:"").slice(1,-1))),new RegExp(`\\[${Zr(ge)}\\s*\\]\\(`).test(t)){const Ie=String(ge!=null?ge:"");c();const je={type:"link",href:"",title:null,text:Ie,children:[{type:"text",content:Ie,raw:Ie}],loading:Ce};r.splice(r.length-1,1,je),s+=3,String((z=(ie=e[s])==null?void 0:ie.content)!=null?z:"")==="."&&s++;return}}}const{node:b,nextIndex:T}=Hd(e,s,{requireClosingStrong:a});s=T;const H=(q=(R=k.attrs)==null?void 0:R.find(([Q])=>Q==="href"))==null?void 0:q[1],L=String(H!=null?H:"");if(t&&L){const Q=t.indexOf("](");if(Q!==-1){const oe=t.indexOf(")",Q+2);oe===-1?b.loading=!0:b.loading&&t.slice(Q+2,oe).includes(L)&&(b.loading=!1)}}d(b)}function x(k){var P,W,K,O,F,V,j,Y;c();const M=e[s+1],b=e[s-1],T=r[r.length-1],H=(M==null?void 0:M.type)==="text"&&!String((P=M.content)!=null?P:"").startsWith("("),L=(b==null?void 0:b.type)==="text"&&/\]$|^\s*$/.test(String((W=b.content)!=null?W:""));H||L?p(qd(k)):M&&M.type==="text"?M.content=String((K=k.markup)!=null?K:"")+String((O=M.content)!=null?O:""):T&&T.type==="text"&&(T.content=String((F=T.content)!=null?F:"")+String((V=k.markup)!=null?V:""),T.raw=String((j=T.raw)!=null?j:"")+String((Y=k.markup)!=null?Y:"")),s++}function y(k,M){var L;const b=k.indexOf("[");if(b===-1)return!1;let T=k.slice(0,b);const H=k.indexOf("](",b);if(H!==-1){const P=e[s+2];let W=k.slice(b+1,H);if(W.includes("[")){const J=W.indexOf("[");T+=k.slice(0,b+J+1);const te=b+J+1;W=k.slice(te+1,H)}const K=e[s+1];if(k.endsWith("](")&&(K==null?void 0:K.type)==="link_open"&&P){const J=e[s+4];let te=4,re=!0;return(J==null?void 0:J.type)==="text"&&J.content===")"?(te++,re=!1):(J==null?void 0:J.type)==="text"&&J.content==="."&&s++,T&&m(T,T),d({type:"link",href:String((L=P.content)!=null?L:""),title:null,text:W,children:[{type:"text",content:W,raw:W}],loading:re}),s+=te,!0}const O=k.indexOf(")",H),F=O!==-1?k.slice(H+2,O):"",V=O===-1;let j=T.match(/\*+$/);if(j&&(T=T.replace(/\*+$/,"")),T&&m(T,T),j||(j=W.match(/^\*+/)),!a&&j){const J=j[0].length;W=W.replace(/^\*+/,"").replace(/\*+$/,"");const te=[];if(J===1?te.push({type:"em_open",tag:"em",nesting:1}):J===2?te.push({type:"strong_open",tag:"strong",nesting:1}):J===3&&(te.push({type:"strong_open",tag:"strong",nesting:1}),te.push({type:"em_open",tag:"em",nesting:1})),te.push({type:"link",href:F,title:null,text:W,children:[{type:"text",content:W,raw:W}],loading:V}),J===1){te.push({type:"em_close",tag:"em",nesting:-1});const{node:re}=ur(te,0,o);p(re)}else if(J===2){te.push({type:"strong_close",tag:"strong",nesting:-1});const{node:re}=dr(te,0,void 0,o);p(re)}else if(J===3){te.push({type:"em_close",tag:"em",nesting:-1}),te.push({type:"strong_close",tag:"strong",nesting:-1});const{node:re}=dr(te,0,void 0,o);p(re)}else{const{node:re}=ur(te,0,o);p(re)}}else d({type:"link",href:F,title:null,text:W,children:[{type:"text",content:W,raw:W}],loading:V});const Y=O!==-1?k.slice(O+1):"";return Y&&(g({type:"text",content:Y,raw:Y}),s--),s++,!0}return!1}function _(k,M){const b=k.indexOf("![");if(b===-1)return!1;const T=k.slice(0,b);return i?i.content+=T:i={type:"text",content:T,raw:T},r.push(i),i=null,d(wi(M,!0)),s++,!0}function B(k){if(!(k!=null&&k.startsWith("[")&&(n==null?void 0:n.type)==="list_item_open"))return!1;const M=k.slice(1).match(/[^\s\]]/);if(M===null)return s++,!0;if(M&&/x/i.test(M[0])){const b=M[0]==="x"||M[0]==="X";return d({type:"checkbox_input",checked:b,raw:b?"[x]":"[ ]"}),s++,!0}return!1}return Jd(t,r)}function Jd(e,t){if(!e)return t;const n=e.trim(),o=/^\[([\s\S]+?)\]\(([^)]+)\)$/.exec(n);if(!o)return t;const r=o[1],i=o[2],s=t.filter(c=>c.type==="link"),a=s.find(c=>String(c.href||"")===i&&String(c.text||"")===r)||s.find(c=>String(c.href||"")===i);return a?[a]:t}function Al(e,t,n){var i,s;const o=[];let r=t+1;for(;r<e.length&&e[r].type!=="blockquote_close";)if(e[r].type==="paragraph_open"){const a=e[r+1];o.push({type:"paragraph",children:Pe(a.children||[],String((i=a.content)!=null?i:""),void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((s=a.content)!=null?s:"")}),r+=3}else if(e[r].type==="bullet_list_open"||e[r].type==="ordered_list_open"){const[a,c]=Dr(e,r);o.push(a),r=c}else r++;return[{type:"blockquote",children:o,raw:o.map(a=>a.raw).join(`
|
|
51
|
+
`)},r+1]}function _o(e){var r,i,s,a,c;if((r=e.info)!=null&&r.startsWith("diff"))return Vn(e);const t=String((i=e.content)!=null?i:""),n=t.match(/ type="application\/vnd\.ant\.([^"]+)"/);n!=null&&n[1]&&(e.content=t.replace(/<antArtifact[^>]*>/g,"").replace(/<\/antArtifact>/g,""));const o=Array.isArray(e.map)&&e.map.length===2;return{type:"code_block",language:n?n[1]:String((s=e.info)!=null?s:""),code:String((a=e.content)!=null?a:""),raw:String((c=e.content)!=null?c:""),loading:!o}}function Dl(e,t,n){var a,c;const o=[];let r=t+1,i=[],s=[];for(;r<e.length&&e[r].type!=="dl_close";)if(e[r].type==="dt_open"){const u=e[r+1];i=Pe(u.children||[],void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),r+=3}else if(e[r].type==="dd_open"){let u=r+1;for(s=[];u<e.length&&e[u].type!=="dd_close";)if(e[u].type==="paragraph_open"){const f=e[u+1];s.push({type:"paragraph",children:Pe(f.children||[],String((a=f.content)!=null?a:""),void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((c=f.content)!=null?c:"")}),u+=3}else u++;i.length>0&&(o.push({type:"definition_item",term:i,definition:s,raw:`${i.map(f=>f.raw).join("")}: ${s.map(f=>f.raw).join(`
|
|
52
52
|
`)}`}),i=[]),r=u+1}else r++;return[{type:"definition_list",items:o,raw:o.map(u=>u.raw).join(`
|
|
53
|
-
`)},r+1]}function Tl(e,t,n){var a,c,u,f;const o=(a=e[t].meta)!=null?a:{},r=String((c=o==null?void 0:o.label)!=null?c:"0"),i=[];let s=t+1;for(;s<e.length&&e[s].type!=="footnote_close";)if(e[s].type==="paragraph_open"){const d=e[s+1];i.push({type:"paragraph",children:
|
|
54
|
-
`)}`},s+1]}function $l(e,t,n){var c,u,f;const o=e[t],r=String((u=(c=o.tag)==null?void 0:c.substring(1))!=null?u:"1"),i=Number.parseInt(r,10),s=e[t+1],a=String((f=s.content)!=null?f:"");return{type:"heading",level:i,text:a,children:
|
|
55
|
-
`)},o+1]}function Il(){return{type:"thematic_break",raw:"---"}}function
|
|
56
|
-
`)},i+1]}function Fl(e,t,n){var s,a;const o=e[t],r=[];let i=t+1;for(;i<e.length&&e[i].type!=="bullet_list_close"&&e[i].type!=="ordered_list_close";)if(e[i].type==="list_item_open"){const c=[];let u=i+1;for(;u<e.length&&e[u].type!=="list_item_close";)if(e[u].type==="paragraph_open"){const f=e[u+1],d=e[u-1];c.push({type:"paragraph",children:
|
|
57
|
-
`)},i+1]}function Rl(e,t,n,o){var c,u,f,d;const r=String((c=n[1])!=null?c:"note"),i=String((u=n[2])!=null?u:r.charAt(0).toUpperCase()+r.slice(1)),s=[];let a=t+1;for(;a<e.length&&e[a].type!=="container_close";)if(e[a].type==="paragraph_open"){const h=e[a+1];h&&s.push({type:"paragraph",children:
|
|
53
|
+
`)},r+1]}function Tl(e,t,n){var a,c,u,f;const o=(a=e[t].meta)!=null?a:{},r=String((c=o==null?void 0:o.label)!=null?c:"0"),i=[];let s=t+1;for(;s<e.length&&e[s].type!=="footnote_close";)if(e[s].type==="paragraph_open"){const d=e[s+1];i.push({type:"paragraph",children:Pe(d.children||[],String((u=d.content)!=null?u:""),void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((f=d.content)!=null?f:"")}),s+=3}else s++;return[{type:"footnote",id:r,children:i,raw:`[^${r}]: ${i.map(d=>d.raw).join(`
|
|
54
|
+
`)}`},s+1]}function $l(e,t,n){var c,u,f;const o=e[t],r=String((u=(c=o.tag)==null?void 0:c.substring(1))!=null?u:"1"),i=Number.parseInt(r,10),s=e[t+1],a=String((f=s.content)!=null?f:"");return{type:"heading",level:i,text:a,children:Pe(s.children||[],a,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:a}}function Co(e){var t,n;return{type:"math_block",content:String((t=e.content)!=null?t:""),loading:!!e.loading,raw:String((n=e.raw)!=null?n:"")}}function Qd(e){if(!e)return"left";for(const t of e){if(!t)continue;const[n,o]=t;if(!o)continue;const r=String(o).trim().toLowerCase();if(n==="style"){const i=/text-align\s*:\s*(left|right|center)/i.exec(r);if(i)return i[1].toLowerCase()}}return"left"}function Nl(e,t,n){var a,c;let o=t+1,r=null;const i=[];let s=!1;for(;o<e.length&&e[o].type!=="table_close";)if(e[o].type==="thead_open")s=!0,o++;else if(e[o].type==="thead_close")s=!1,o++;else if(e[o].type==="tbody_open"||e[o].type==="tbody_close")o++;else if(e[o].type==="tr_open"){const u=[];let f=o+1;for(;f<e.length&&e[f].type!=="tr_close";)if(e[f].type==="th_open"||e[f].type==="td_open"){const h=e[f].type==="th_open",p=e[f+1],m=String((a=p.content)!=null?a:""),g=Qd(e[f].attrs);u.push({type:"table_cell",header:h||s,children:Pe(p.children||[],m,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:m,align:g}),f+=3}else f++;const d={type:"table_row",cells:u,raw:u.map(h=>h.raw).join("|")};s?r=d:i.push(d),o=f+1}else o++;return r||(r={type:"table_row",cells:[],raw:""}),[{type:"table",header:r,rows:i,loading:(c=e[t].loading)!=null?c:!1,raw:[r,...i].map(u=>u.raw).join(`
|
|
55
|
+
`)},o+1]}function Il(){return{type:"thematic_break",raw:"---"}}function Dr(e,t,n){var s,a,c,u,f;const o=e[t],r=[];let i=t+1;for(;i<e.length&&e[i].type!=="bullet_list_close"&&e[i].type!=="ordered_list_close";)if(e[i].type==="list_item_open"){const d=[];let h=i+1;for(;h<e.length&&e[h].type!=="list_item_close";)if(e[h].type==="paragraph_open"){const p=e[h+1],m=e[h-1],g=String((s=p.content)!=null?s:"");/\n\d+$/.test(g)&&(p.content=g.replace(/\n\d+$/,""),(a=p.children)==null||a.splice(-1,1)),d.push({type:"paragraph",children:Pe(p.children||[],String((c=p.content)!=null?c:""),m,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((u=p.content)!=null?u:"")}),h+=3}else if(e[h].type==="blockquote_open"){const[p,m]=Al(e,h);d.push(p),h=m}else if(e[h].type==="bullet_list_open"||e[h].type==="ordered_list_open"){const[p,m]=Fl(e,h,n);d.push(p),h=m}else if(e[h].type==="code_block")d.push(_o(e[h])),h+=1;else if(e[h].type==="fence")d.push(Vn(e[h])),h+=1;else if(e[h].type==="math_block")d.push(Co(e[h])),h+=1;else if(e[h].type==="table_open"){const[p,m]=Nl(e,h);d.push(p),h=m}else if(e[h].type==="dl_open"){const[p,m]=Dl(e,h);d.push(p),h=m}else if(e[h].type==="footnote_open"){const[p,m]=Tl(e,h);d.push(p),h=m}else if(e[h].type==="heading_open"){const p=$l(e,h);d.push(p),h+=3}else if(e[h].type==="hr")d.push(Il()),h+=1;else if(e[h].type==="container_open"){const p=/^::: ?(warning|info|note|tip|danger|caution) ?(.*)$/.exec(String((f=e[h].info)!=null?f:""));if(p){const[m,g]=Rl(e,h,p);d.push(m),h=g}else h+=1}else h+=1;r.push({type:"list_item",children:d,raw:d.map(p=>p.raw).join("")}),i=h+1}else i+=1;return[{type:"list",ordered:o.type==="ordered_list_open",start:(()=>{if(o.attrs&&o.attrs.length){const d=o.attrs.find(h=>h[0]==="start");if(d){const h=Number(d[1]);return Number.isFinite(h)&&h!==0?h:1}}})(),items:r,raw:r.map(d=>d.raw).join(`
|
|
56
|
+
`)},i+1]}function Fl(e,t,n){var s,a;const o=e[t],r=[];let i=t+1;for(;i<e.length&&e[i].type!=="bullet_list_close"&&e[i].type!=="ordered_list_close";)if(e[i].type==="list_item_open"){const c=[];let u=i+1;for(;u<e.length&&e[u].type!=="list_item_close";)if(e[u].type==="paragraph_open"){const f=e[u+1],d=e[u-1];c.push({type:"paragraph",children:Pe(f.children||[],String((s=f.content)!=null?s:""),d,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((a=f.content)!=null?a:"")}),u+=3}else if(e[u].type==="bullet_list_open"||e[u].type==="ordered_list_open"){const[f,d]=Fl(e,u,n);c.push(f),u=d}else e[u].type==="code_block"?(c.push(_o(e[u])),u+=1):e[u].type==="fence"?(c.push(Vn(e[u])),u+=1):(e[u].type==="math_block"&&c.push(Co(e[u])),u+=1);r.push({type:"list_item",children:c,raw:c.map(f=>f.raw).join("")}),i=u+1}else i+=1;return[{type:"list",ordered:o.type==="ordered_list_open",start:(()=>{if(o.attrs&&o.attrs.length){const c=o.attrs.find(u=>u[0]==="start");if(c){const u=Number(c[1]);return Number.isFinite(u)&&u!==0?u:1}}})(),items:r,raw:r.map(c=>c.raw).join(`
|
|
57
|
+
`)},i+1]}function Rl(e,t,n,o){var c,u,f,d;const r=String((c=n[1])!=null?c:"note"),i=String((u=n[2])!=null?u:r.charAt(0).toUpperCase()+r.slice(1)),s=[];let a=t+1;for(;a<e.length&&e[a].type!=="container_close";)if(e[a].type==="paragraph_open"){const h=e[a+1];h&&s.push({type:"paragraph",children:Pe(h.children||[],String((f=h.content)!=null?f:""),void 0,{requireClosingStrong:o==null?void 0:o.requireClosingStrong}),raw:String((d=h.content)!=null?d:"")}),a+=3}else if(e[a].type==="bullet_list_open"||e[a].type==="ordered_list_open"){const[h,p]=Dr(e,a,o);s.push(h),a=p}else a++;return[{type:"admonition",kind:r,title:i,children:s,raw:`:::${r} ${i}
|
|
58
58
|
${s.map(h=>h.raw).join(`
|
|
59
59
|
`)}
|
|
60
|
-
:::`},a+1]}function ef(e,t,n){var f,d,h,p;const o=e[t];let r="note",i="";const s=o.type.match(/^container_(\w+)_open$/);if(s){r=s[1];const m=String((f=o.info)!=null?f:"").trim();if(m&&!m.startsWith(":::")){const g=m.replace(new RegExp(`^${r}`),"").trim();g&&(i=g)}}else{const m=String((d=o.info)!=null?d:"").trim(),g=/^:{1,3}\s*(warning|info|note|tip|danger|caution)\s*(.*)$/i.exec(m);g&&(r=g[1],i=String((h=g[2])!=null?h:""))}i||(i=r.charAt(0).toUpperCase()+r.slice(1));const a=[];let c=t+1;const u=new RegExp(`^container_${r}_close$`);for(;c<e.length&&e[c].type!=="container_close"&&!u.test(e[c].type);)if(e[c].type==="paragraph_open"){const m=e[c+1];if(m){const g=m.children||[];let w=-1;for(let x=g.length-1;x>=0;x--){const y=g[x];if(y.type==="text"&&/:+/.test(y.content)){w=x;break}}const
|
|
60
|
+
:::`},a+1]}function ef(e,t,n){var f,d,h,p;const o=e[t];let r="note",i="";const s=o.type.match(/^container_(\w+)_open$/);if(s){r=s[1];const m=String((f=o.info)!=null?f:"").trim();if(m&&!m.startsWith(":::")){const g=m.replace(new RegExp(`^${r}`),"").trim();g&&(i=g)}}else{const m=String((d=o.info)!=null?d:"").trim(),g=/^:{1,3}\s*(warning|info|note|tip|danger|caution)\s*(.*)$/i.exec(m);g&&(r=g[1],i=String((h=g[2])!=null?h:""))}i||(i=r.charAt(0).toUpperCase()+r.slice(1));const a=[];let c=t+1;const u=new RegExp(`^container_${r}_close$`);for(;c<e.length&&e[c].type!=="container_close"&&!u.test(e[c].type);)if(e[c].type==="paragraph_open"){const m=e[c+1];if(m){const g=m.children||[];let w=-1;for(let x=g.length-1;x>=0;x--){const y=g[x];if(y.type==="text"&&/:+/.test(y.content)){w=x;break}}const S=w!==-1?g.slice(0,w):g;a.push({type:"paragraph",children:Pe(S||[],void 0,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:String((p=m.content)!=null?p:"").replace(/\n:+$/,"").replace(/\n\s*:::\s*$/,"")})}c+=3}else if(e[c].type==="bullet_list_open"||e[c].type==="ordered_list_open"){const[m,g]=Dr(e,c,n);a.push(m),c=g}else c++;return[{type:"admonition",kind:r,title:i,children:a,raw:`:::${r} ${i}
|
|
61
61
|
${a.map(m=>m.raw).join(`
|
|
62
62
|
`)}
|
|
63
63
|
:::`},c+1]}function tf(){return{type:"hardbreak",raw:`\\
|
|
64
64
|
`}}const nf=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),bi=new Map;function rf(e){var c,u;const t=String((c=e.content)!=null?c:"");if(/^\s*<!--/.test(t)||/^\s*<!/.test(t)||/^\s*<\?/.test(t))return{type:"html_block",content:t,raw:t,tag:"",loading:!1};const n=(((u=t.match(/^\s*<([A-Z][\w:-]*)/i))==null?void 0:u[1])||"").toLowerCase();if(!n)return{type:"html_block",content:t,raw:t,tag:"",loading:!1};const o=/^\s*<[^>]*\/\s*>/.test(t),r=nf.has(n);let i=bi.get(n);i||(i=new RegExp(`<\\/\\s*${n}\\b`,"i"),bi.set(n,i));const s=i.test(t),a=!(r||o||s);return{type:"html_block",content:a?`${t.replace(/<[^>]*$/,"")}
|
|
65
|
-
</${n}>`:t,raw:t,tag:n,loading:a}}function of(e,t,n){var i;const o=e[t+1],r=String((i=o.content)!=null?i:"");return{type:"paragraph",children:
|
|
65
|
+
</${n}>`:t,raw:t,tag:n,loading:a}}function of(e,t,n){var i;const o=e[t+1],r=String((i=o.content)!=null?i:"");return{type:"paragraph",children:Pe(o.children||[],r,void 0,{requireClosingStrong:n==null?void 0:n.requireClosingStrong}),raw:r}}function Ll(e,t,n={}){let o=(e!=null?e:"").toString().replace(/([^\\])\right/g,"$1\\right");o.endsWith("- *")&&(o=o.replace(/- \*$/,"- \\*")),/\n\s*-\s*$/.test(o)?o=o.replace(/\n\s*-\s*$/,`
|
|
66
66
|
`):/\n[[(]\n*$/.test(o)&&(o=o.replace(/(\n\[|\n\()+\n*$/g,`
|
|
67
|
-
`));const r=t.parse(o,{});if(!r||!Array.isArray(r))return[];const i=n.preTransformTokens,s=n.postTransformTokens;let a=r;i&&typeof i=="function"&&(a=i(a)||a);let c=
|
|
67
|
+
`));const r=t.parse(o,{});if(!r||!Array.isArray(r))return[];const i=n.preTransformTokens,s=n.postTransformTokens;let a=r;i&&typeof i=="function"&&(a=i(a)||a);let c=io(a,n);if(s&&typeof s=="function"){const u=s(a);if(Array.isArray(u)){const f=u[0],d=f==null?void 0:f.type;f&&typeof d=="string"?c=io(u):c=u}}return c}function io(e,t){var r,i;if(!e||!Array.isArray(e))return[];const n=[];let o=0;for(;o<e.length;){const s=e[o];switch(s.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[a,c]=ef(e,o,t);n.push(a),o=c;break}case"heading_open":n.push($l(e,o,t)),o+=3;break;case"paragraph_open":n.push(of(e,o,t)),o+=3;break;case"html_block":n.push(rf(s)),o+=1;break;case"code_block":n.push(_o(e[o])),o+=1;break;case"fence":n.push(Vn(e[o])),o+=1;break;case"bullet_list_open":case"ordered_list_open":{const[a,c]=Dr(e,o,t);n.push(a),o=c;break}case"hr":n.push(Il()),o+=1;break;case"blockquote_open":{const[a,c]=Al(e,o,t);n.push(a),o=c;break}case"table_open":{const[a,c]=Nl(e,o,t);n.push(a),o=c;break}case"dl_open":{const[a,c]=Dl(e,o,t);n.push(a),o=c;break}case"footnote_open":{const[a,c]=Tl(e,o,t);n.push(a),o=c;break}case"container_open":{const a=/^::: ?(warning|info|note|tip|danger|caution|error) ?(.*)$/.exec(String((r=s.info)!=null?r:""));if(a){const[c,u]=Rl(e,o,a,t);n.push(c),o=u}else o+=1;break}case"hardbreak":n.push(tf()),o++;break;case"math_block":n.push(Co(e[o])),o+=1;break;case"inline":n.push(...Pe(s.children||[],String((i=s.content)!=null?i:""),void 0,{requireClosingStrong:t==null?void 0:t.requireClosingStrong})),o+=1;break;default:o+=1;break}}return n}const yr=[];function lf(e){yr.push(e)}function sf(){yr.length=0}function Pl(e=`editor-${Date.now()}`,t={}){var u;const n=Dd(t),o={"common.copy":"Copy"};let r;if(typeof t.i18n=="function")r=t.i18n;else if(t.i18n&&typeof t.i18n=="object"){const f=t.i18n;r=d=>{var h,p;return(p=(h=f[d])!=null?h:o[d])!=null?p:d}}else r=f=>{var d;return(d=o[f])!=null?d:f};if(Array.isArray(t.plugin))for(const f of t.plugin){const d=f;if(Array.isArray(d)){const h=d[0],p=d[1];typeof h=="function"&&n.use(h,p)}else typeof d=="function"&&n.use(d)}if(Array.isArray(t.apply))for(const f of t.apply)try{f(n)}catch(d){console.error("[getMarkdown] apply function threw an error",d)}if(yr.length)for(const f of yr)if(Array.isArray(f)){const d=f[0],h=f[1];typeof d=="function"&&n.use(d,h)}else typeof f=="function"&&n.use(f);n.use(Ps),n.use(Vs),n.use(Fs);const i=(u=Ro.default)!=null?u:Ro;n.use(i),n.use(Is),n.use(Ns),n.core.ruler.after("block","mark_fence_closed",f=>{var p,m;const d=f,h=d.src.split(/\r?\n/);for(const g of d.tokens){if(g.type!=="fence"||!g.map||!g.markup)continue;const w=g.map[0],S=g.map[1],x=g.markup,y=x[0],_=x.length,B=(p=h[Math.max(0,S-1)])!=null?p:"";let k=0;for(;k<B.length&&(B[k]===" "||B[k]===" ");)k++;let M=0;for(;k+M<B.length&&B[k+M]===y;)M++;let b=k+M;for(;b<B.length&&(B[b]===" "||B[b]===" ");)b++;const T=S>w+1&&M>=_&&b===B.length,H=g;H.meta=(m=H.meta)!=null?m:{},H.meta.unclosed=!T,H.meta.closed=!!T}});const s=(f,d)=>{const h=f,p=h.pos;if(h.src[p]!=="~")return!1;const m=h.src[p-1],g=h.src[p+1];if(/\d/.test(m)&&/\d/.test(g)){if(!d){const w=h.push("text","",0);w.content="~"}return h.pos+=1,!0}return!1};n.inline.ruler.before("sub","wave",s),n.renderer.rules.fence=(f,d)=>{var S,x;const h=f[d],p=String((S=h.info)!=null?S:"").trim(),m=String((x=h.content)!=null?x:""),g=btoa(unescape(encodeURIComponent(m))),w=String(p!=null?p:"text");return`<div class="code-block" data-code="${g}" data-lang="${w}" id="${`editor-${e}-${d}-${w}`}">
|
|
68
68
|
<div class="code-header">
|
|
69
69
|
<span class="code-lang">${w.toUpperCase()}</span>
|
|
70
70
|
<button class="copy-button" data-code="${g}">${r("common.copy")}</button>
|
|
71
71
|
</div>
|
|
72
72
|
<div class="code-editor"></div>
|
|
73
|
-
</div>`};const a=/^\[(\d+)\]/,c=(f,d)=>{const h=f;if(h.src[h.pos]!=="[")return!1;const p=a.exec(h.src.slice(h.pos));if(!p)return!1;if(!d){const m=p[1],g=h.push("reference","span",0);g.content=m,g.markup=p[0]}return h.pos+=p[0].length,!0};return n.inline.ruler.before("escape","reference",c),n.renderer.rules.reference=(f,d)=>{var m;const p=String((m=f[d].content)!=null?m:"");return`<span class="reference-link" data-reference-id="${p}" role="button" tabindex="0" title="Click to view reference">${p}</span>`},n}const af=["cite"],cf=l.defineComponent({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("blockquote",{class:"blockquote",dir:"auto",cite:e.node.cite},[l.withMemo([e.node.children],()=>l.createVNode(l.unref(st),{"index-key":`blockquote-${e.indexKey}`,nodes:e.node.children||[],typewriter:e.typewriter,onCopy:n[0]||(n[0]=o=>t.$emit("copy",o))},null,8,["index-key","nodes","typewriter"]),n,1)],8,af))}}),Se=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mn=Se(cf,[["__scopeId","data-v-adfdba00"]]);Mn.install=e=>{e.component(Mn.__name,Mn)};const uf={class:"checkbox-node"},df=["checked"],ff=l.defineComponent({__name:"CheckboxNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",uf,[l.createElementVNode("input",{type:"checkbox",checked:e.node.checked,disabled:"",class:"checkbox-input"},null,8,df)]))}}),Dt=Se(ff,[["__scopeId","data-v-8dc6c46f"]]);Dt.install=e=>{e.component(Dt.__name,Dt)};const hf={class:"definition-list"},pf={class:"definition-term"},mf={class:"definition-desc"},gf=l.defineComponent({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("dl",hf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.items,(o,r)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:r},[l.createElementVNode("dt",pf,[l.createVNode(l.unref(st),{"index-key":`definition-term-${e.indexKey}-${r}`,nodes:o.term,typewriter:e.typewriter,onCopy:n[0]||(n[0]=i=>t.$emit("copy",i))},null,8,["index-key","nodes","typewriter"])]),l.createElementVNode("dd",mf,[l.createVNode(l.unref(st),{"index-key":`definition-desc-${e.indexKey}-${r}`,nodes:o.definition,typewriter:e.typewriter,onCopy:n[1]||(n[1]=i=>t.$emit("copy",i))},null,8,["index-key","nodes","typewriter"])])],64))),128))]))}}),An=Se(gf,[["__scopeId","data-v-5a21f288"]]);An.install=e=>{e.component(An.__name,An)};const kf={class:"emoji-node"},vf=l.defineComponent({__name:"EmojiNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",kf,l.toDisplayString(e.node.name),1))}}),et=Se(vf,[["__scopeId","data-v-de55dc97"]]);et.install=e=>{e.component(et.__name,et)};const Yn="__global__",gn={};function wf(e,t){typeof e=="string"?gn[e]=t||{}:gn[Yn]=e||{}}function gt(e){return e?gn[e]||gn[Yn]||{}:gn[Yn]||{}}function yf(e){if(e===Yn)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete gn[e]}function xf(){delete gn[Yn]}const bf=["title"],_f=l.defineComponent({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const n=`#footnote-${e.node.id}`;function o(){if(typeof document=="undefined")return;const r=document.querySelector(n);r?r.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${n} not found`)}return(r,i)=>(l.openBlock(),l.createElementBlock("sup",{class:"footnote-reference",onClick:o},[l.createElementVNode("span",{href:n,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+l.toDisplayString(e.node.id)+"]",9,bf)]))}}),at=Se(_f,[["__scopeId","data-v-7c1ed642"]]);at.install=e=>{e.component(at.__name,at)};const Cf={class:"inline text-[85%] px-1 py-0.5 rounded font-mono bg-secondary whitespace-normal break-words max-w-full before:content-[''] after:content-['']"},tt=l.defineComponent({__name:"InlineCodeNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("code",Cf,l.toDisplayString(e.node.code),1))}});tt.install=e=>{e.component(tt.__name,tt)};const yr=Math.min,kn=Math.max,xr=Math.round,dr=Math.floor,Pt=e=>({x:e,y:e}),Ef={left:"right",right:"left",bottom:"top",top:"bottom"},Sf={start:"end",end:"start"};function _i(e,t,n){return kn(e,yr(t,n))}function Dr(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function Tr(e){return e.split("-")[1]}function Ol(e){return e==="x"?"y":"x"}function zl(e){return e==="y"?"height":"width"}const Mf=new Set(["top","bottom"]);function en(e){return Mf.has(wn(e))?"y":"x"}function Vl(e){return Ol(en(e))}function Af(e,t,n){n===void 0&&(n=!1);const o=Tr(e),r=Vl(e),i=zl(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=br(s)),[s,br(s)]}function Bf(e){const t=br(e);return[io(e),t,io(t)]}function io(e){return e.replace(/start|end/g,t=>Sf[t])}const Ci=["left","right"],Ei=["right","left"],Df=["top","bottom"],Tf=["bottom","top"];function $f(e,t,n){switch(e){case"top":case"bottom":return n?t?Ei:Ci:t?Ci:Ei;case"left":case"right":return t?Df:Tf;default:return[]}}function Nf(e,t,n,o){const r=Tr(e);let i=$f(wn(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(io)))),i}function br(e){return e.replace(/left|right|bottom|top/g,t=>Ef[t])}function If(e){return ne({top:0,right:0,bottom:0,left:0},e)}function Ff(e){return typeof e!="number"?If(e):{top:e,right:e,bottom:e,left:e}}function _r(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 Si(e,t,n){let{reference:o,floating:r}=e;const i=en(t),s=Vl(t),a=zl(s),c=wn(t),u=i==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,h=o[a]/2-r[a]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,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(Tr(t)){case"start":p[s]-=h*(n&&u?-1:1);break;case"end":p[s]+=h*(n&&u?-1:1);break}return p}const Rf=(e,t,n)=>ee(null,null,function*(){const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=yield s.isRTL==null?void 0:s.isRTL(t);let u=yield s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=Si(u,o,c),h=o,p={},m=0;for(let g=0;g<a.length;g++){const{name:w,fn:E}=a[g],{x,y,data:_,reset:A}=yield E({x:f,y:d,initialPlacement:o,placement:h,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});f=x!=null?x:f,d=y!=null?y:d,p=je(ne({},p),{[w]:ne(ne({},p[w]),_)}),A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(h=A.placement),A.rects&&(u=A.rects===!0?yield s.getElementRects({reference:e,floating:t,strategy:r}):A.rects),{x:f,y:d}=Si(u,h,c)),g=-1)}return{x:f,y:d,placement:h,strategy:r,middlewareData:p}});function jl(e,t){return ee(this,null,function*(){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Dr(t,e),m=Ff(p),w=a[h?d==="floating"?"reference":"floating":d],E=_r(yield i.getClippingRect({element:(n=yield i.isElement==null?void 0:i.isElement(w))==null||n?w:w.contextElement||(yield i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),x=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=yield i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating),_=(yield i.isElement==null?void 0:i.isElement(y))?(yield i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},A=_r(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:y,strategy:c}):x);return{top:(E.top-A.top+m.top)/_.y,bottom:(A.bottom-E.bottom+m.bottom)/_.y,left:(E.left-A.left+m.left)/_.x,right:(A.right-E.right+m.right)/_.x}})}const Lf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return ee(this,null,function*(){var o,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:c,platform:u,elements:f}=n,P=Dr(e,n),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0}=P,E=Hr(P,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const x=wn(i),y=en(c),_=wn(c)===c,A=yield u.isRTL==null?void 0:u.isRTL(f.floating),k=p||(_||!w?[br(c)]:Bf(c)),S=g!=="none";!p&&S&&k.push(...Nf(c,w,g,A));const b=[c,...k],T=yield jl(n,E),H=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&H.push(T[x]),h){const N=Af(i,a,A);H.push(T[N[0]],T[N[1]])}if(R=[...R,{placement:i,overflows:H}],!H.every(N=>N<=0)){var L,W;const N=(((L=s.flip)==null?void 0:L.index)||0)+1,V=b[N];if(V&&(!(h==="alignment"?y!==en(V):!1)||R.every(J=>en(J.placement)===y?J.overflows[0]>0:!0)))return{data:{index:N,overflows:R},reset:{placement:V}};let j=(W=R.filter(Y=>Y.overflows[0]<=0).sort((Y,J)=>Y.overflows[1]-J.overflows[1])[0])==null?void 0:W.placement;if(!j)switch(m){case"bestFit":{var K;const Y=(K=R.filter(J=>{if(S){const te=en(J.placement);return te===y||te==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(te=>te>0).reduce((te,re)=>te+re,0)]).sort((J,te)=>J[1]-te[1])[0])==null?void 0:K[0];Y&&(j=Y);break}case"initialPlacement":j=c;break}if(i!==j)return{reset:{placement:j}}}return{}})}}},Pf=new Set(["left","top"]);function Of(e,t){return ee(this,null,function*(){const{placement:n,platform:o,elements:r}=e,i=yield o.isRTL==null?void 0:o.isRTL(r.floating),s=wn(n),a=Tr(n),c=en(n)==="y",u=Pf.has(s)?-1:1,f=i&&c?-1:1,d=Dr(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*f,y:h*u}:{x:h*u,y:p*f}})}const zf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return ee(this,null,function*(){var o,r;const{x:i,y:s,placement:a,middlewareData:c}=n,u=yield Of(n,e);return a===((o=c.offset)==null?void 0:o.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:s+u.y,data:je(ne({},u),{placement:a})}})}}},Vf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return ee(this,null,function*(){const{x:o,y:r,placement:i}=n,E=Dr(e,n),{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:x=>{let{x:y,y:_}=x;return{x:y,y:_}}}}=E,u=Hr(E,["mainAxis","crossAxis","limiter"]),f={x:o,y:r},d=yield jl(n,u),h=en(wn(i)),p=Ol(h);let m=f[p],g=f[h];if(s){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",_=m+d[x],A=m-d[y];m=_i(_,m,A)}if(a){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",_=g+d[x],A=g-d[y];g=_i(_,g,A)}const w=c.fn(je(ne({},n),{[p]:m,[h]:g}));return je(ne({},w),{data:{x:w.x-o,y:w.y-r,enabled:{[p]:s,[h]:a}}})})}}};function $r(){return typeof window!="undefined"}function jn(e){return Hl(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zt(e){var t;return(t=(Hl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hl(e){return $r()?e instanceof Node||e instanceof kt(e).Node:!1}function Tt(e){return $r()?e instanceof Element||e instanceof kt(e).Element:!1}function Ot(e){return $r()?e instanceof HTMLElement||e instanceof kt(e).HTMLElement:!1}function Mi(e){return!$r()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot}const jf=new Set(["inline","contents"]);function er(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!jf.has(r)}const Hf=new Set(["table","td","th"]);function qf(e){return Hf.has(jn(e))}const Wf=[":popover-open",":modal"];function Nr(e){return Wf.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const Uf=["transform","translate","scale","rotate","perspective"],Kf=["transform","translate","scale","rotate","perspective","filter"],Xf=["paint","layout","strict","content"];function Co(e){const t=Eo(),n=Tt(e)?$t(e):e;return Uf.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Kf.some(o=>(n.willChange||"").includes(o))||Xf.some(o=>(n.contain||"").includes(o))}function Zf(e){let t=sn(e);for(;Ot(t)&&!zn(t);){if(Co(t))return t;if(Nr(t))return null;t=sn(t)}return null}function Eo(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yf=new Set(["html","body","#document"]);function zn(e){return Yf.has(jn(e))}function $t(e){return kt(e).getComputedStyle(e)}function Ir(e){return Tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sn(e){if(jn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mi(e)&&e.host||zt(e);return Mi(t)?t.host:t}function ql(e){const t=sn(e);return zn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ot(t)&&er(t)?t:ql(t)}function Gn(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ql(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=kt(r);if(i){const a=lo(s);return t.concat(s,s.visualViewport||[],er(r)?r:[],a&&n?Gn(a):[])}return t.concat(r,Gn(r,[],n))}function lo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wl(e){const t=$t(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ot(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=xr(n)!==i||xr(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function So(e){return Tt(e)?e:e.contextElement}function Bn(e){const t=So(e);if(!Ot(t))return Pt(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Wl(t);let s=(i?xr(n.width):n.width)/o,a=(i?xr(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Gf=Pt(0);function Ul(e){const t=kt(e);return!Eo()||!t.visualViewport?Gf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kt(e)?!1:t}function yn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=So(e);let s=Pt(1);t&&(o?Tt(o)&&(s=Bn(o)):s=Bn(e));const a=Jf(i,n,o)?Ul(i):Pt(0);let c=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(i){const h=kt(i),p=o&&Tt(o)?kt(o):o;let m=h,g=lo(m);for(;g&&o&&p!==m;){const w=Bn(g),E=g.getBoundingClientRect(),x=$t(g),y=E.left+(g.clientLeft+parseFloat(x.paddingLeft))*w.x,_=E.top+(g.clientTop+parseFloat(x.paddingTop))*w.y;c*=w.x,u*=w.y,f*=w.x,d*=w.y,c+=y,u+=_,m=kt(g),g=lo(m)}}return _r({width:f,height:d,x:c,y:u})}function Fr(e,t){const n=Ir(e).scrollLeft;return t?t.left+n:yn(zt(e)).left+n}function Kl(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Fr(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Qf(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=zt(o),a=t?Nr(t.floating):!1;if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Pt(1);const f=Pt(0),d=Ot(o);if((d||!d&&!i)&&((jn(o)!=="body"||er(s))&&(c=Ir(o)),Ot(o))){const p=yn(o);u=Bn(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const h=s&&!d&&!i?Kl(s,c):Pt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-c.scrollTop*u.y+f.y+h.y}}function eh(e){return Array.from(e.getClientRects())}function th(e){const t=zt(e),n=Ir(e),o=e.ownerDocument.body,r=kn(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=kn(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Fr(e);const a=-n.scrollTop;return $t(o).direction==="rtl"&&(s+=kn(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}const Ai=25;function nh(e,t){const n=kt(e),o=zt(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const f=Eo();(!f||f&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}const u=Fr(o);if(u<=0){const f=o.ownerDocument,d=f.body,h=getComputedStyle(d),p=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(o.clientWidth-d.clientWidth-p);m<=Ai&&(i-=m)}else u<=Ai&&(i+=u);return{width:i,height:s,x:a,y:c}}const rh=new Set(["absolute","fixed"]);function oh(e,t){const n=yn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ot(e)?Bn(e):Pt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,u=o*i.y;return{width:s,height:a,x:c,y:u}}function Bi(e,t,n){let o;if(t==="viewport")o=nh(e,n);else if(t==="document")o=th(zt(e));else if(Tt(t))o=oh(t,n);else{const r=Ul(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return _r(o)}function Xl(e,t){const n=sn(e);return n===t||!Tt(n)||zn(n)?!1:$t(n).position==="fixed"||Xl(n,t)}function ih(e,t){const n=t.get(e);if(n)return n;let o=Gn(e,[],!1).filter(a=>Tt(a)&&jn(a)!=="body"),r=null;const i=$t(e).position==="fixed";let s=i?sn(e):e;for(;Tt(s)&&!zn(s);){const a=$t(s),c=Co(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&rh.has(r.position)||er(s)&&!c&&Xl(e,s))?o=o.filter(f=>f!==s):r=a,s=sn(s)}return t.set(e,o),o}function lh(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Nr(t)?[]:ih(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((u,f)=>{const d=Bi(t,f,r);return u.top=kn(d.top,u.top),u.right=yr(d.right,u.right),u.bottom=yr(d.bottom,u.bottom),u.left=kn(d.left,u.left),u},Bi(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function sh(e){const{width:t,height:n}=Wl(e);return{width:t,height:n}}function ah(e,t,n){const o=Ot(t),r=zt(t),i=n==="fixed",s=yn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Pt(0);function u(){c.x=Fr(r)}if(o||!o&&!i)if((jn(t)!=="body"||er(r))&&(a=Ir(t)),o){const p=yn(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else r&&u();i&&!o&&r&&u();const f=r&&!o&&!i?Kl(r,a):Pt(0),d=s.left+a.scrollLeft-c.x-f.x,h=s.top+a.scrollTop-c.y-f.y;return{x:d,y:h,width:s.width,height:s.height}}function Zr(e){return $t(e).position==="static"}function Di(e,t){if(!Ot(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zt(e)===n&&(n=n.ownerDocument.body),n}function Zl(e,t){const n=kt(e);if(Nr(e))return n;if(!Ot(e)){let r=sn(e);for(;r&&!zn(r);){if(Tt(r)&&!Zr(r))return r;r=sn(r)}return n}let o=Di(e,t);for(;o&&qf(o)&&Zr(o);)o=Di(o,t);return o&&zn(o)&&Zr(o)&&!Co(o)?n:o||Zf(e)||n}const ch=function(e){return ee(this,null,function*(){const t=this.getOffsetParent||Zl,n=this.getDimensions,o=yield n(e.floating);return{reference:ah(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}})};function uh(e){return $t(e).direction==="rtl"}const dh={convertOffsetParentRelativeRectToViewportRelativeRect:Qf,getDocumentElement:zt,getClippingRect:lh,getOffsetParent:Zl,getElementRects:ch,getClientRects:eh,getDimensions:sh,getScale:Bn,isElement:Tt,isRTL:uh};function Yl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fh(e,t){let n=null,o;const r=zt(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:f,top:d,width:h,height:p}=u;if(a||t(),!h||!p)return;const m=dr(d),g=dr(r.clientWidth-(f+h)),w=dr(r.clientHeight-(d+p)),E=dr(f),y={rootMargin:-m+"px "+-g+"px "+-w+"px "+-E+"px",threshold:kn(0,yr(1,c))||1};let _=!0;function A(k){const S=k[0].intersectionRatio;if(S!==c){if(!_)return s();S?s(!1,S):o=setTimeout(()=>{s(!1,1e-7)},1e3)}S===1&&!Yl(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(A,je(ne({},y),{root:r.ownerDocument}))}catch(k){n=new IntersectionObserver(A,y)}n.observe(e)}return s(!0),i}function Ti(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=So(e),f=r||i?[...u?Gn(u):[],...Gn(t)]:[];f.forEach(E=>{r&&E.addEventListener("scroll",n,{passive:!0}),i&&E.addEventListener("resize",n)});const d=u&&a?fh(u,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(E=>{let[x]=E;x&&x.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let m,g=c?yn(e):null;c&&w();function w(){const E=yn(e);g&&!Yl(g,E)&&n(),g=E,m=requestAnimationFrame(w)}return n(),()=>{var E;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d==null||d(),(E=p)==null||E.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const hh=zf,ph=Vf,mh=Lf,gh=(e,t,n)=>{const o=new Map,r=ne({platform:dh},n),i=je(ne({},r.platform),{_c:o});return Rf(e,t,je(ne({},r),{platform:i}))},kh=["id"],vh=l.defineComponent({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(e){const t=e,n=l.computed(()=>{if(t.isDark!==void 0&&t.isDark!==null)return!!t.isDark;if(typeof document!="undefined")try{if(document.documentElement.classList.contains("dark")||window!=null&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return!0}catch(c){}return!1}),o=l.ref(null),r=l.ref({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),i=l.ref(!1);let s=null;function a(){return ee(this,null,function*(){var d,h;if(!t.anchorEl||!o.value)return;const c=[hh((d=t.offset)!=null?d:8),mh(),ph({padding:8})],{x:u,y:f}=yield gh(t.anchorEl,o.value,{placement:(h=t.placement)!=null?h:"top",middleware:c,strategy:"fixed"});r.value.transform=`translate3d(${Math.round(u)}px, ${Math.round(f)}px, 0)`,r.value.left="0px",r.value.top="0px"})}return l.watch(()=>t.visible,c=>ee(null,null,function*(){if(c)if(i.value=!1,yield l.nextTick(),t.anchorEl&&o.value)try{const u=t.anchorEl.getBoundingClientRect();yield a();const f=r.value.transform;if(t.originX!=null&&t.originY!=null){const d=Math.abs(Number(t.originX)-u.left),h=Math.abs(Number(t.originY)-u.top);Math.hypot(d,h)>120?(r.value.transform=`translate3d(${Math.round(t.originX)}px, ${Math.round(t.originY)}px, 0)`,yield l.nextTick(),i.value=!0,yield l.nextTick(),r.value.transform=f):i.value=!0}else i.value=!0;s=Ti(t.anchorEl,o.value,a)}catch(u){yield a(),i.value=!0,s=Ti(t.anchorEl,o.value,a)}else i.value=!0;else i.value=!1,s&&(s(),s=null)})),l.watch([()=>t.anchorEl,()=>t.placement,()=>t.content],()=>ee(null,null,function*(){t.visible&&t.anchorEl&&o.value&&(yield l.nextTick(),yield a())})),l.onBeforeUnmount(()=>{s&&s()}),(c,u)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"tooltip",appear:""},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{id:t.id,ref_key:"tooltip",ref:o,style:l.normalizeStyle({position:"fixed",left:r.value.left,top:r.value.top,transform:r.value.transform}),class:l.normalizeClass(["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"},l.toDisplayString(e.content),15,kh),[[l.vShow,e.visible&&i.value]])]),_:1})]))}}),wh=Se(vh,[["__scopeId","data-v-993f63aa"]]),Mo=l.ref(!1),Gl=l.ref(""),Jl=l.ref("top"),Kn=l.ref(null),Jn=l.ref(null),Ao=l.ref(null),Bo=l.ref(null),Ql=l.ref(null);let pr=null,mr=null;function es(){pr&&(clearTimeout(pr),pr=null),mr&&(clearTimeout(mr),mr=null)}let $i=!1;function yh(){if($i||typeof document=="undefined")return;$i=!0;const e=document.createElement("div");e.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(e);const t={setup(){return()=>{var n;return l.h(wh,{visible:Mo.value,"anchor-el":Kn.value,content:Gl.value,placement:Jl.value,id:Jn.value,originX:Ao.value,originY:Bo.value,isDark:(n=Ql.value)!=null?n:void 0})}}};l.createApp(t).mount(e)}function xn(e,t,n="top",o=!1,r,i){if(!e)return;yh(),es();const s=()=>{var a,c;Jn.value=`tooltip-${Date.now()}-${Math.floor(Math.random()*1e3)}`,Kn.value=e,Gl.value=t,Jl.value=n,Ao.value=(a=r==null?void 0:r.x)!=null?a:null,Bo.value=(c=r==null?void 0:r.y)!=null?c:null,Ql.value=typeof i=="boolean"?i:null,Mo.value=!0;try{e.setAttribute("aria-describedby",Jn.value)}catch(u){}};o?s():pr=setTimeout(s,80)}function Rr(e=!1){es();const t=()=>{if(Kn.value&&Jn.value)try{Kn.value.removeAttribute("aria-describedby")}catch(n){}Mo.value=!1,Kn.value=null,Jn.value=null,Ao.value=null,Bo.value=null};e?t():mr=setTimeout(t,120)}let fr=null,Ni=!1;function tr(){return ee(this,null,function*(){if(fr)return fr;if(Ni)return null;try{return fr=yield import("katex"),yield import("katex/contrib/mhchem"),fr}catch(e){return Ni=!0,null}})}const Yr=l.shallowRef(!1);let Ii=null;function ts(){return Ii||(Ii=tr().then(e=>{Yr.value=!!e}).catch(()=>{Yr.value=!1})),l.readonly(Yr)}const xh=l.defineComponent({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=ts();return(n,o)=>(l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass([[l.unref(t)&&e.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},l.toDisplayString(e.node.content),3))}}),Xe=Se(xh,[["__scopeId","data-v-56f30838"]]);Xe.install=e=>{e.component(Xe.__name,Xe)};const Vt=l.defineAsyncComponent(()=>ee(null,null,function*(){var t,n;if(typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((n=(t=globalThis.process)==null?void 0:t.env)==null?void 0:n.NODE_ENV)==="test")return o=>{var r,i;return l.h(Xe,je(ne({},o),{node:je(ne({},o.node),{content:(i=o.node.raw)!=null?i:`$${(r=o.node.content)!=null?r:""}$`})}))};try{if(yield tr())return(yield Promise.resolve().then(()=>hm)).default}catch(o){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',o)}return o=>{var r,i;return l.h(Xe,je(ne({},o),{node:je(ne({},o.node),{content:(i=o.node.raw)!=null?i:`$${(r=o.node.content)!=null?r:""}$`})}))}})),bh=l.defineAsyncComponent(()=>ee(null,null,function*(){try{if(yield tr())return(yield Promise.resolve().then(()=>um)).default}catch(e){console.warn('[markstream-vue] 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 l.h(Xe,je(ne({},e),{node:je(ne({},e.node),{content:(n=e.node.raw)!=null?n:`$$${(t=e.node.content)!=null?t:""}$$`})}))}})),nt=l.defineComponent({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("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]=o=>t.$emit("click",o,e.node.id,e.messageId,e.threadId)),onMouseenter:n[1]||(n[1]=o=>t.$emit("mouseEnter",o,e.node.id,e.messageId,e.threadId)),onMouseleave:n[2]||(n[2]=o=>t.$emit("mouseLeave",o,e.node.id,e.messageId,e.threadId))},l.toDisplayString(e.node.id),33))}});nt.install=e=>{e.component(nt.__name,nt)};const _h={class:"superscript-node"},Ch={key:1},Eh=l.defineComponent({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:vt,footnote_reference:at,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,emoji:et,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("sup",_h,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${e.indexKey||"superscript"}-${s}`},[n[i.type]?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:0,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${s}`},null,8,["node","custom-id","index-key"])):(l.openBlock(),l.createElementBlock("span",Ch,l.toDisplayString(i.content||i.raw),1))],64))),128))]))}}),ct=Se(Eh,[["__scopeId","data-v-0ca396bb"]]);ct.install=e=>{e.component(ct.__name,ct)};const Sh={class:"subscript-node"},Mh={key:1},Ah=l.defineComponent({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:vt,footnote_reference:at,strikethrough:ot,highlight:ft,insert:dt,superscript:ct,emoji:et,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("sub",Sh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${e.indexKey||"subscript"}-${s}`},[n[i.type]?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:0,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${s}`},null,8,["node","custom-id","index-key"])):(l.openBlock(),l.createElementBlock("span",Mh,l.toDisplayString(i.content||i.raw),1))],64))),128))]))}}),ut=Se(Ah,[["__scopeId","data-v-5e1f04df"]]);ut.install=e=>{e.component(ut.__name,ut)};const Bh={class:"strong-node"},Dh=l.defineComponent({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,emphasis:vt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("strong",Bh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"strong"}-${s}`,"index-key":`${e.indexKey||"strong"}-${s}`,node:i,"custom-id":t.customId},null,8,["index-key","node","custom-id"]))),128))]))}}),rt=Se(Dh,[["__scopeId","data-v-53b6c7df"]]);rt.install=e=>{e.component(rt.__name,rt)};const Th={class:"strikethrough-node"},$h=l.defineComponent({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:vt,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("del",Th,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"strikethrough"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),ot=Se($h,[["__scopeId","data-v-3716d25c"]]);ot.install=e=>{e.component(ot.__name,ot)};const Nh=["href","title","aria-label","aria-hidden"],Ih=["aria-hidden"],Fh={class:"link-text-wrapper relative inline-flex"},Rh={class:"leading-[normal] link-text"},Lh={class:"leading-[normal] link-text"},Ph=l.defineComponent({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,n=l.computed(()=>{var c,u,f,d,h,p;const a=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px";return{"--link-color":(c=t.color)!=null?c:"#0366d6","--underline-height":`${(u=t.underlineHeight)!=null?u:2}px`,"--underline-bottom":a,"--underline-opacity":String((f=t.animationOpacity)!=null?f:.9),"--underline-duration":`${(d=t.animationDuration)!=null?d:.8}s`,"--underline-timing":(h=t.animationTiming)!=null?h:"linear","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(p=t.animationIteration)!=null?p:"infinite"}}),o={text:Xe,strong:rt,strikethrough:ot,emphasis:vt},r=l.useAttrs();function i(a){var d,h,p,m,g,w;if(!t.showTooltip)return;const c=a,u=(c==null?void 0:c.clientX)!=null&&(c==null?void 0:c.clientY)!=null?{x:c.clientX,y:c.clientY}:void 0,f=(w=(g=(p=(d=t.node)==null?void 0:d.href)!=null?p:(h=t.node)==null?void 0:h.title)!=null?g:(m=t.node)==null?void 0:m.text)!=null?w:"";xn(a.currentTarget,f,"top",!1,u)}function s(){t.showTooltip&&Rr()}return(a,c)=>{var u,f,d,h;return e.node.loading?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},l.unref(r),{style:n.value}),[l.createElementVNode("span",Fh,[l.createElementVNode("span",Rh,[l.createElementVNode("span",Lh,l.toDisplayString(e.node.text),1)]),c[1]||(c[1]=l.createElementVNode("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,Ih)):(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,class:"link-node",href:e.node.href,title:t.showTooltip?void 0:String((f=(u=e.node.href)!=null?u:e.node.title)!=null?f:""),"aria-label":`Link: ${(h=(d=e.node.href)!=null?d:e.node.title)!=null?h:e.node.text}`,"aria-hidden":e.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},l.unref(r),{style:n.value,onMouseenter:c[0]||(c[0]=p=>i(p)),onMouseleave:s}),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(p,m)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o[p.type]),{key:`${e.indexKey||"emphasis"}-${m}`,node:p,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${m}`},null,8,["node","custom-id","index-key"]))),128))],16,Nh))}}}),it=Se(Ph,[["__scopeId","data-v-95c2e66f"]]);it.install=e=>{e.component(it.__name,it)};const Oh={class:"insert-node"},zh=l.defineComponent({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:vt,strikethrough:ot,highlight:ft,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("ins",Oh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"insert"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),dt=Se(zh,[["__scopeId","data-v-b8737de3"]]);dt.install=e=>{e.component(dt.__name,dt)};const Vh={class:"highlight-node"},jh=l.defineComponent({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:vt,strikethrough:ot,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("mark",Vh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"highlight"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),ft=Se(jh,[["__scopeId","data-v-fc52b444"]]);ft.install=e=>{e.component(ft.__name,ft)};const Hh={class:"emphasis-node"},qh=l.defineComponent({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("em",Hh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"emphasis"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),vt=Se(qh,[["__scopeId","data-v-c25e2822"]]);vt.install=e=>{e.component(vt.__name,vt)};const Wh=["id"],Uh={class:"font-semibold mr-2 text-[#0366d6]"},Kh={class:"flex-1"},Dn=l.defineComponent({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",{id:`footnote-${e.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[l.createElementVNode("span",Uh,"["+l.toDisplayString(e.node.id)+"]",1),l.createElementVNode("div",Kh,[l.withMemo([e.node.children],()=>l.createVNode(l.unref(st),{"index-key":`footnote-${e.indexKey}`,nodes:e.node.children,typewriter:e.typewriter,onCopy:n[0]||(n[0]=o=>t.$emit("copy",o))},null,8,["index-key","nodes","typewriter"]),n,1)])],8,Wh))}});Dn.install=e=>{e.component(Dn.__name,Dn)};const Xh={class:"hard-break"},Zh=l.defineComponent({__name:"HardBreakNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("br",Xh))}}),tn=Se(Zh,[["__scopeId","data-v-50c58f70"]]);tn.install=e=>{e.component(tn.__name,tn)};function Yh(e){return(e.split(".").pop()||e).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,n=>n.toUpperCase()).trim()}const ns={"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 Gh(e){Object.assign(ns,e)}function Lr(){try{const t=globalThis.$vueI18nUse||null;if(t&&typeof t=="function")try{const n=t();if(n&&typeof n.t=="function")return{t:n.t.bind(n)}}catch(n){}}catch(t){}const e=t=>{var n;return(n=ns[t])!=null?n:Yh(t)};return ee(null,null,function*(){try{const t=yield import("vue-i18n"),n=t.useI18n||t.default&&t.default.useI18n;if(n&&typeof n=="function")try{const o=n();if(o&&typeof o.t=="function")try{globalThis.$vueI18nUse=()=>o}catch(r){}}catch(o){}}catch(t){}}),{t:e}}const rs=Symbol("ViewportPriority");function Jh(e,t){const n=typeof window!="undefined"&&typeof document!="undefined",o=typeof t=="boolean"?l.ref(t):t;let r=null;const i=new WeakMap;function s(){var u;if(r||!n)return r;if(typeof IntersectionObserver=="undefined")return null;const c=(u=e())!=null?u:null;return r=new IntersectionObserver(f=>{for(const d of f){const h=i.get(d.target);if(!h)continue;if(d.isIntersecting||d.intersectionRatio>0){if(!h.visible.value){h.visible.value=!0;try{h.resolve()}catch(m){}}r==null||r.unobserve(d.target),i.delete(d.target)}}},{root:c,rootMargin:"300px",threshold:0}),r}const a=(c,u)=>{const f=l.ref(!1);let d=!1,h;const p=new Promise(w=>{h=()=>{d||(d=!0,w())}}),m=()=>{try{r==null||r.unobserve(c)}catch(w){}i.delete(c)};if(!n||!o.value)return f.value=!0,h(),{isVisible:f,whenVisible:p,destroy:m};const g=s();return g?(i.set(c,{resolve:h,visible:f}),g.observe(c),{isVisible:f,whenVisible:p,destroy:m}):(f.value=!0,h(),{isVisible:f,whenVisible:p,destroy:m})};return l.provide(rs,a),a}function Hn(){const e=l.inject(rs,void 0);if(e)return e;const t=new WeakMap;let n=null;const o=()=>n||(typeof window=="undefined"||typeof IntersectionObserver=="undefined"?null:(n=new IntersectionObserver(i=>{for(const s of i){const a=t.get(s.target);if(!a)continue;if(s.isIntersecting||s.intersectionRatio>0){if(!a.visible.value){a.visible.value=!0;try{a.resolve()}catch(u){}}n==null||n.unobserve(s.target),t.delete(s.target)}}},{root:null,rootMargin:"300px",threshold:0}),n));return i=>{const s=l.ref(!1);let a=!1,c;const u=new Promise(h=>{c=()=>{a||(a=!0,h())}}),f=()=>{try{n==null||n.unobserve(i)}catch(h){}t.delete(i)},d=o();return d?(t.set(i,{resolve:c,visible:s}),d.observe(i),{isVisible:s,whenVisible:u,destroy:f}):(s.value=!0,c(),{isVisible:s,whenVisible:u,destroy:f})}}const Qh={class:"relative inline-block"},e1=["src","alt","title","loading","tabindex","aria-label"],t1={class:"text-sm whitespace-nowrap"},n1={key:1,class:"text-sm text-gray-500"},r1={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},o1={class:"text-sm whitespace-nowrap"},i1={key:0,class:"mt-2 text-sm text-gray-500 italic"},l1=l.defineComponent({__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=l.ref(!1),i=l.ref(!1),s=l.ref(!1),a=l.ref(null),c=Hn(),u=l.ref(null),f=l.ref(typeof window=="undefined");typeof window!="undefined"&&l.watch(()=>a.value,x=>{var _;if((_=u.value)==null||_.destroy(),u.value=null,!x){f.value=!1;return}const y=c(x,{rootMargin:"400px"});u.value=y,f.value=y.isVisible.value,y.whenVisible.then(()=>{f.value=!0})},{immediate:!0}),l.onBeforeUnmount(()=>{var x;(x=u.value)==null||x.destroy(),u.value=null});const d=l.computed(()=>i.value&&n.fallbackSrc?n.fallbackSrc:n.node.src),h=l.computed(()=>!n.lazy||f.value),p=l.computed(()=>/\.svg(?:\?|$)/i.test(d.value));function m(){n.fallbackSrc&&!s.value?(s.value=!0,i.value=!0):(i.value=!0,o("error",n.node.src))}function g(){r.value=!0,i.value=!1,o("load",d.value)}function w(x){x.preventDefault(),!(!r.value||i.value)&&o("click",[x,d.value])}const{t:E}=Lr();return l.watch(d,()=>{r.value=!1,i.value=!1}),(x,y)=>(l.openBlock(),l.createElementBlock("figure",{ref_key:"figureRef",ref:a,class:"text-center my-8"},[l.createElementVNode("div",Qh,[l.createVNode(l.Transition,{name:"img-switch",mode:"out-in"},{default:l.withCtx(()=>{var _,A,k,S,b;return[!e.node.loading&&!i.value&&h.value?(l.openBlock(),l.createElementBlock("img",{key:"image",src:d.value,alt:String((A=(_=n.node.alt)!=null?_:n.node.title)!=null?A:""),title:String((S=(k=n.node.title)!=null?k:n.node.alt)!=null?S:""),class:l.normalizeClass(["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:l.normalizeStyle(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":(b=n.node.alt)!=null?b:l.unref(E)("image.preview"),onError:m,onLoad:g,onClick:w},null,46,e1)):i.value?!e.node.loading&&!n.fallbackSrc?(l.openBlock(),l.createElementBlock("div",r1,[l.renderSlot(x.$slots,"error",{node:n.node,displaySrc:d.value,imageLoaded:r.value,hasError:i.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:p.value},()=>[y[1]||(y[1]=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[l.createElementVNode("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)),l.createElementVNode("span",o1,l.toDisplayString(l.unref(E)("image.loadError")),1)],!0)])):l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:"placeholder",class:"placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",style:l.normalizeStyle(p.value?{minHeight:n.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[n.usePlaceholder?l.renderSlot(x.$slots,"placeholder",{key:0,node:n.node,displaySrc:d.value,imageLoaded:r.value,hasError:i.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:p.value},()=>[y[0]||(y[0]=l.createElementVNode("div",{class:"w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin","aria-hidden":"true"},null,-1)),l.createElementVNode("span",t1,l.toDisplayString(l.unref(E)("image.loading")),1)],!0):(l.openBlock(),l.createElementBlock("span",n1,l.toDisplayString(e.node.raw),1))],4))]}),_:3})]),n.showCaption&&n.node.alt?(l.openBlock(),l.createElementBlock("figcaption",i1,l.toDisplayString(n.node.alt),1)):l.createCommentVNode("",!0)],512))}}),nn=Se(l1,[["__scopeId","data-v-7ca79b66"]]);nn.install=e=>{e.component(nn.__name,nn)};const s1=l.defineComponent({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,image:nn,strong:rt,emphasis:vt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,checkbox:Dt,checkbox_input:Dt,footnote_reference:at,hardbreak:tn,math_inline:Vt,reference:nt},gt(t.customId));return(o,r)=>l.withMemo([e.node.children],()=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(`h${e.node.level}`),{class:l.normalizeClass(["heading-node",[`heading-${e.node.level}`]]),dir:"auto"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s,a,c)=>{const u=[i];if(c&&c.key===`${e.indexKey||"heading"}-${s}`&&l.isMemoSame(c,u))return c;const f=(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"heading"}-${s}`,"custom-id":t.customId,node:i,"index-key":`${e.indexKey||"heading"}-${s}`},null,8,["custom-id","node","index-key"]));return f.memo=u,f},r,0),128))]),_:1},8,["class"])),r,2)}}),so=Se(s1,[["__scopeId","data-v-d8e179e9"]]),Pr=so;Pr.install=e=>{e.component(so.__name,so)};const a1=l.defineComponent({__name:"ListItemNode",props:{item:{},indexKey:{},value:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=l.computed(()=>t.value==null?{}:{value:t.value});return(o,r)=>(l.openBlock(),l.createElementBlock("li",l.mergeProps({class:"list-item pl-1.5 my-2",dir:"auto"},n.value),[l.withMemo([t.item.children],()=>l.createVNode(l.unref(st),{"index-key":`list-item-${t.indexKey}`,nodes:t.item.children,typewriter:t.typewriter,"batch-rendering":!1,onCopy:r[0]||(r[0]=i=>o.$emit("copy",i))},null,8,["index-key","nodes","typewriter"]),r,1)],16))}}),Tn=Se(a1,[["__scopeId","data-v-e7aa2cc3"]]);Tn.install=e=>{e.component(Tn.__name,Tn)};const c1=l.defineComponent({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.node.ordered?"ol":"ul"),{class:l.normalizeClass(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.items,(o,r,i,s)=>{var u;const a=[o];if(s&&s.key===`${e.indexKey||"list"}-${r}`&&l.isMemoSame(s,a))return s;const c=(l.openBlock(),l.createBlock(l.unref(Tn),{key:`${e.indexKey||"list"}-${r}`,item:o,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${r}`,typewriter:e.typewriter,value:e.node.ordered?((u=e.node.start)!=null?u:1)+r:void 0,onCopy:n[0]||(n[0]=f=>t.$emit("copy",f))},null,8,["item","custom-id","index-key","typewriter","value"]));return c.memo=a,c},n,1),128))]),_:1},8,["class"]))}}),$n=Se(c1,[["__scopeId","data-v-79057d57"]]);$n.install=e=>{e.component($n.__name,$n)};const u1="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 Un(e){try{if(typeof globalThis!="undefined"&&typeof globalThis.requestAnimationFrame=="function")return globalThis.requestAnimationFrame(e)}catch(t){}return globalThis.setTimeout(e,0)}let Ye=null,rn=null;const Ue=new Map,d1=5;let Cr=d1,ao=!1;function f1(e){ao=!!e}function h1(e){Number.isFinite(e)&&e>0&&(Cr=Math.floor(e))}function p1(){return{inFlight:Ue.size,max:Cr}}const os="WORKER_BUSY";function m1(e){Ye=e,rn=null;const t=e;Ye.onmessage=n=>{if(Ye!==t)return;const{id:o,ok:r,result:i,error:s}=n.data,a=Ue.get(o);a&&(r===!1||s?a.reject(new Error(s||"Unknown error")):a.resolve(i))},Ye.onerror=n=>{var o,r;if(Ye===t){if(Ue.size===0){(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker error (no pending):",(n==null?void 0:n.message)||n);return}try{ao?console.error("[mermaidWorkerClient] Worker error:",(n==null?void 0:n.message)||n):(r=console.debug)==null||r.call(console,"[mermaidWorkerClient] Worker error:",(n==null?void 0:n.message)||n)}catch(i){}for(const[i,s]of Ue.entries())s.reject(new Error(`Worker error: ${n.message}`));Ue.clear()}},Ye.onmessageerror=n=>{var o,r;if(Ye===t){if(Ue.size===0){(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",n);return}try{ao?console.error("[mermaidWorkerClient] Worker messageerror:",n):(r=console.debug)==null||r.call(console,"[mermaidWorkerClient] Worker messageerror:",n)}catch(i){}for(const[i,s]of Ue.entries())s.reject(new Error("Worker messageerror"));Ue.clear()}}}function g1(){var e;if(Ye)try{for(const[t,n]of Ue.entries())n.reject(new Error("Worker cleared"));Ue.clear(),(e=Ye.terminate)==null||e.call(Ye)}catch(t){}Ye=null,rn=null}function k1(){return Ye||(rn=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),rn.name="WorkerInitError",rn.code="WORKER_INIT_ERROR",null)}function is(e,t,n=1400){if(rn)return Promise.reject(rn);const o=k1();if(!o)return Promise.reject(rn);if(Ue.size>=Cr){const r=new Error("Worker busy");return r.name="WorkerBusy",r.code=os,r.inFlight=Ue.size,r.max=Cr,Promise.reject(r)}return new Promise((r,i)=>{const s=Math.random().toString(36).slice(2);let a=!1,c;const u=()=>{a||(a=!0,c!=null&&globalThis.clearTimeout(c),Ue.delete(s))},f={resolve:d=>{u(),r(d)},reject:d=>{u(),i(d)}};Ue.set(s,f);try{o.postMessage({id:s,action:e,payload:t})}catch(d){Ue.delete(s),i(d);return}c=globalThis.setTimeout(()=>{const d=new Error("Worker call timed out");d.name="WorkerTimeout",d.code="WORKER_TIMEOUT";const h=Ue.get(s);h&&h.reject(d)},n)})}function ls(e,t,n=1400){return ee(this,null,function*(){try{return yield is("canParse",{code:e,theme:t},n)}catch(o){return Promise.reject(o)}})}function ss(e,t,n=1400){return ee(this,null,function*(){try{return yield is("findPrefix",{code:e,theme:t},n)}catch(o){return Promise.reject(o)}})}function co(){if(Ye)try{for(const[e,t]of Ue.entries())t.reject(new Error("Worker terminated"));Ue.clear(),Ye.terminate()}finally{Ye=null}}let Ze=null;function v1(){return ee(this,null,function*(){if(Ze)return Ze;try{const e=yield import("mermaid"),t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))Ze=t;else if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const n=t.mermaidAPI;Ze=je(ne({},t),{render:n.render.bind(n),parse:n.parse?n.parse.bind(n):void 0,initialize:o=>typeof t.initialize=="function"?t.initialize(o):n.initialize?n.initialize(o):void 0})}else e.mermaid&&typeof e.mermaid.render=="function"?Ze=e.mermaid:Ze=t}catch(e){throw new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.')}try{const e=Ze==null?void 0:Ze.initialize;Ze.initialize=t=>{const n=ne({suppressErrorRendering:!0},t||{});if(typeof e=="function")return e.call(Ze,n);if(Ze!=null&&Ze.mermaidAPI&&typeof Ze.mermaidAPI.initialize=="function")return Ze.mermaidAPI.initialize(n)}}catch(e){}return Ze})}const w1={class:"flex items-center space-x-2"},y1=["src"],x1={class:"flex items-center space-x-1"},b1={class:"flex items-center space-x-1"},_1={class:"flex items-center space-x-1"},C1=["aria-pressed"],E1={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"},S1={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"},M1=["disabled"],A1=["disabled"],B1={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"},D1={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"},T1={key:1,class:"relative"},$1={class:"absolute top-2 right-2 z-10 rounded-lg"},N1={class:"flex items-center gap-2 backdrop-blur rounded-lg"},I1={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},F1=300,R1=500,L1=l.defineComponent({__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 an,cn;const n=e,o=t,{t:r}=Lr();let i=null;const s=l.ref(!1);typeof window!="undefined"&&ee(null,null,function*(){var O;i=yield v1(),s.value=!!i,(O=i==null?void 0:i.initialize)==null||O.call(i,{startOnLoad:!1,securityLevel:"loose"})});const a=l.ref(!1),c=l.ref(!1),u=l.ref(),f=l.ref(),d=l.ref(),h=l.ref(),p=l.ref(null),m=Hn(),g=l.ref(null),w=l.ref(typeof window=="undefined"),E=l.ref(),x=l.computed(()=>n.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode"));function y(O){const M=x.value,Z=`%%{init: {"theme": "${O==="dark"?"dark":"default"}"}}%%
|
|
74
|
-
`;return
|
|
75
|
-
`;return
|
|
76
|
-
`)}function bt(O,M,I){return ee(this,null,function*(){var we,Ee;if(!i)return;const Z=i,fe=yt(O,M);if(typeof Z.parse=="function")return yield Ie(()=>Z.parse(fe),{timeoutMs:(we=I==null?void 0:I.timeoutMs)!=null?we:z.value.parse,signal:I==null?void 0:I.signal}),!0;const se=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield Ie(()=>i.render(se,fe),{timeoutMs:(Ee=I==null?void 0:I.timeoutMs)!=null?Ee:z.value.render,signal:I==null?void 0:I.signal}),!0})}function Ge(O,M,I){return ee(this,null,function*(){var Z;try{return yield ls(O,M,(Z=I==null?void 0:I.timeoutMs)!=null?Z:z.value.worker)}catch(fe){return yield bt(O,M,I)}})}function jt(O,M,I){return ee(this,null,function*(){var fe;try{if(yield Ge(O,M,I))return{fullOk:!0,prefixOk:!1}}catch(se){if((se==null?void 0:se.name)==="AbortError")throw se}let Z=Ve(O);if(Z&&Z.trim()&&Z!==O)try{try{const we=yield ss(O,M,(fe=I==null?void 0:I.timeoutMs)!=null?fe:z.value.worker);we&&we.trim()&&(Z=we)}catch(we){}if(yield Ge(Z,M,I))return{fullOk:!1,prefixOk:!0,prefix:Z}}catch(se){if((se==null?void 0:se.name)==="AbortError")throw se}return{fullOk:!1,prefixOk:!1}})}const _t=l.computed(()=>T.value||R.value||c.value);function Ct(O){if(!u.value||!d.value)return;const M=d.value.querySelector("svg");if(!M)return;let I=0,Z=0;const fe=M.getAttribute("viewBox"),se=M.getAttribute("width"),we=M.getAttribute("height");if(fe){const Ee=fe.split(" ");Ee.length===4&&(I=Number.parseFloat(Ee[2]),Z=Number.parseFloat(Ee[3]))}if((!I||!Z)&&se&&we&&(I=Number.parseFloat(se),Z=Number.parseFloat(we)),Number.isNaN(I)||Number.isNaN(Z)||I<=0||Z<=0)try{const Ee=M.getBBox();Ee&&Ee.width>0&&Ee.height>0&&(I=Ee.width,Z=Ee.height)}catch(Ee){console.error("Failed to get SVG BBox:",Ee);return}if(I>0&&Z>0){const Ee=Z/I;let Le=(O!=null?O:u.value.clientWidth)*Ee;Le>Z&&(Le=Z),N.value=`${Le}px`}}const Qe=l.ref(!1),Nt=l.computed(()=>({transform:`translate(${A.value}px, ${k.value}px) scale(${_.value})`}));function Et(O){O.key==="Escape"&&Qe.value&&St()}function It(){if(Qe.value=!0,typeof document!="undefined")try{document.body.style.overflow="hidden"}catch(O){}if(typeof window!="undefined")try{window.addEventListener("keydown",Et)}catch(O){}l.nextTick(()=>{if(u.value&&h.value){const O=u.value.cloneNode(!0);O.classList.add("fullscreen");const M=O.querySelector("[data-mermaid-wrapper]");M&&(p.value=M,M.style.transform=Nt.value.transform),h.value.innerHTML="",h.value.appendChild(O)}})}function St(){if(Qe.value=!1,h.value&&(h.value.innerHTML=""),p.value=null,typeof document!="undefined")try{document.body.style.overflow=""}catch(O){}if(typeof window!="undefined")try{window.removeEventListener("keydown",Et)}catch(O){}}function $(O,M){let I=null;return(...Z)=>{I&&clearTimeout(I),I=setTimeout(()=>O(...Z),M)}}function v(){if(!T.value||!s.value)return;const O=x.value.length;O!==W.value&&(K.value=!0,W.value=O,P&&clearTimeout(P),P=setTimeout(()=>{K.value&&T.value&&x.value.trim()&&(K.value=!1,ve("preview"))},R1))}l.watch(Nt,O=>{Qe.value&&p.value&&(p.value.style.transform=O.transform)},{immediate:!0});function C(){_.value<3&&(_.value+=.1)}function D(){_.value>.5&&(_.value-=.1)}function G(){_.value=1,A.value=0,k.value=0}function U(O){S.value=!0,O instanceof MouseEvent?b.value={x:O.clientX-A.value,y:O.clientY-k.value}:b.value={x:O.touches[0].clientX-A.value,y:O.touches[0].clientY-k.value}}function ke(O){if(!S.value)return;let M,I;O instanceof MouseEvent?(M=O.clientX,I=O.clientY):(M=O.touches[0].clientX,I=O.touches[0].clientY),A.value=M-b.value.x,k.value=I-b.value.y}function ye(){S.value=!1}function xe(O){if(O.ctrlKey||O.metaKey){if(O.preventDefault(),!u.value)return;const M=u.value.getBoundingClientRect(),I=O.clientX-M.left,Z=O.clientY-M.top,fe=M.width/2,se=M.height/2,we=I-fe,Ee=Z-se,Je=(we-A.value)/_.value,Le=(Ee-k.value)/_.value,nr=-O.deltaY*.01,un=Math.min(Math.max(_.value+nr,.5),3);un!==_.value&&(A.value=we-Je*un,k.value=Ee-Le*un,_.value=un)}}function de(){return ee(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(x.value)),a.value=!0,o("copy",x.value),setTimeout(()=>{a.value=!1},1e3)}catch(O){console.error("Failed to copy:",O)}})}function Ce(){return ee(this,null,function*(){var O;try{const M=(O=d.value)==null?void 0:O.querySelector("svg");if(!M){console.error("SVG element not found");return}const I=new XMLSerializer().serializeToString(M),Z=new Blob([I],{type:"image/svg+xml;charset=utf-8"}),fe=URL.createObjectURL(Z);if(typeof document!="undefined"){const se=document.createElement("a");se.href=fe,se.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(se),se.click(),document.body.removeChild(se)}catch(we){}URL.revokeObjectURL(fe)}}catch(M){console.error("Failed to export SVG:",M)}})}function ve(O){return ee(this,null,function*(){const M=E.value;if(!M){H.value=!0,T.value=O==="source";return}const I=M.getBoundingClientRect().height;M.style.height=`${I}px`,M.style.overflow="hidden",H.value=!0,T.value=O==="source",yield l.nextTick();const Z=M.scrollHeight;M.style.transition="height 180ms ease",M.offsetHeight,M.style.height=`${Z}px`;const fe=()=>{M.style.transition="",M.style.height="",M.style.overflow="",M.removeEventListener("transitionend",se)};function se(){fe()}M.addEventListener("transitionend",se),setTimeout(()=>fe(),220)})}function ht(){return ee(this,null,function*(){if(R.value)return L.value;if(!d.value&&(yield l.nextTick(),!d.value)){console.warn("Mermaid container not ready");return}return R.value=!0,L.value=ee(null,null,function*(){var O;if(i){d.value&&(d.value.style.opacity="0");try{const M=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;!j.value&&!Y.value&&((O=i.initialize)==null||O.call(i,{securityLevel:"loose",startOnLoad:!1}));const I=n.isDark?"dark":"light",Z=y(I),fe=yield Ie(()=>i.render(M,Z),{timeoutMs:z.value.fullRender}),se=fe==null?void 0:fe.svg,we=fe==null?void 0:fe.bindFunctions;if(d.value){d.value.innerHTML=se,we==null||we(d.value),!j.value&&!Y.value&&(Ct(),j.value=!0,ie.value={zoom:_.value,translateX:A.value,translateY:k.value,containerHeight:N.value});const Ee=n.isDark?"dark":"light";J.value[Ee]=se,Y.value&&(Y.value=!1),pe.value=!1}}catch(M){console.error("Failed to render mermaid diagram:",M),n.loading===!1&&ze(M)}finally{yield l.nextTick(),d.value&&(d.value.style.opacity="1"),R.value=!1,L.value=null}}}),L.value})}function Ft(O){return ee(this,null,function*(){if(xt()&&!(!d.value&&(yield l.nextTick(),!d.value))&&!R.value){R.value=!0;try{if(!i)return;const M=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,I=n.isDark?"dark":"light",Z=Ve(O),fe=Z&&Z.trim()?Z:O,se=yt(fe,I);d.value&&(d.value.style.opacity="0");const we=yield Ie(()=>i.render(M,se),{timeoutMs:z.value.render}),Ee=we==null?void 0:we.svg,Je=we==null?void 0:we.bindFunctions;d.value&&Ee&&(d.value.innerHTML=Ee,Je==null||Je(d.value),Ct())}catch(M){}finally{yield l.nextTick(),d.value&&(d.value.style.opacity="1"),R.value=!1}}})}const Rt=(cn=globalThis.requestIdleCallback)!=null?cn:((O,M)=>setTimeout(()=>O({didTimeout:!0}),16));function Fe(){return ee(this,null,function*(){var Ee,Je;const O=Date.now(),M=++be.value;he&&he.abort(),he=new AbortController;const I=he.signal,Z=n.isDark?"dark":"light",fe=x.value,se=fe.replace(/\s+/g,"");if(!fe.trim()){d.value&&(d.value.innerHTML=""),te.value=null,re.value="",pe.value=!1;return}if(se===re.value)return;try{const Le=yield jt(fe,Z,{signal:I,timeoutMs:z.value.worker});if(Le.fullOk){yield ht(),be.value===M&&(te.value=(Je=(Ee=d.value)==null?void 0:Ee.innerHTML)!=null?Je:null,re.value=se,pe.value=!1);return}const Wt=Ne&&O<=Ne;if(Le.prefixOk&&Le.prefix&&xt()&&!Wt){yield Ft(Le.prefix);return}}catch(Le){if((Le==null?void 0:Le.name)==="AbortError")return}if(be.value!==M||pe.value)return;const we=J.value[Z];we&&d.value&&(d.value.innerHTML=we)})}const Re=$(()=>{Rt(()=>{Fe()},{timeout:500})},F1);function pt(){oe&&(oe=!1,_e=800,He=!1,ge&&(ge.abort(),ge=null),q&&(globalThis.clearTimeout(q),q=null),Q&&(F(Q),Q=null),Ne=Date.now())}function Mt(){if(pt(),he){try{he.abort()}catch(O){}he=null}if(ge){try{ge.abort()}catch(O){}ge=null}co()}function Ht(O=800){oe&&(q&&globalThis.clearTimeout(q),q=globalThis.setTimeout(()=>{Q=Rt(()=>ee(null,null,function*(){if(!oe)return;if(T.value||j.value){pt();return}const M=n.isDark?"dark":"light",I=x.value;if(!I.trim()){Ht(_e);return}ge&&ge.abort(),ge=new AbortController;try{if((yield Ge(I,M,{signal:ge.signal,timeoutMs:z.value.worker}))&&(yield ht(),j.value)){pt();return}}catch(Z){}_e=Math.min(Math.floor(_e*1.5),4e3),Ht(_e)}),{timeout:500})},O))}function Zt(){oe||T.value||j.value||(oe=!0,Ne=0,He=!0,Ht(500))}l.watch(()=>x.value,()=>{j.value=!1,J.value={},Re(),!T.value&&s.value&&Zt(),v()}),l.watch(()=>n.isDark,()=>ee(null,null,function*(){if(!j.value||pe.value)return;const O=n.isDark?"dark":"light";if(J.value[O]){d.value&&(d.value.innerHTML=J.value[O]);return}const M={zoom:_.value,translateX:A.value,translateY:k.value,containerHeight:N.value},I=_.value!==1||A.value!==0||k.value!==0;Y.value=!0,I&&(_.value=1,A.value=0,k.value=0,yield l.nextTick()),yield ht(),I&&(yield l.nextTick(),_.value=M.zoom,A.value=M.translateX,k.value=M.translateY,N.value=M.containerHeight,ie.value=M)})),l.watch(()=>T.value,O=>ee(null,null,function*(){if(O)pt(),j.value&&(ie.value={zoom:_.value,translateX:A.value,translateY:k.value,containerHeight:N.value});else{if(pe.value)return;const M=n.isDark?"dark":"light";if(j.value&&J.value[M]){yield l.nextTick(),d.value&&(d.value.innerHTML=J.value[M]),_.value=ie.value.zoom,A.value=ie.value.translateX,k.value=ie.value.translateY,N.value=ie.value.containerHeight;return}if(yield l.nextTick(),!s.value)return;yield Fe(),Zt()}})),l.watch(()=>n.loading,(O,M)=>ee(null,null,function*(){if(M===!0&&O===!1){const I=x.value.trim();if(!I)return Mt();const Z=n.isDark?"dark":"light",fe=I.replace(/\s+/g,"");if(j.value&&fe===re.value){yield l.nextTick(),d.value&&!d.value.querySelector("svg")&&J.value[Z]&&(d.value.innerHTML=J.value[Z]),Mt();return}try{yield Ge(I,Z,{timeoutMs:z.value.worker}),yield ht(),re.value=fe,pe.value=!1,Mt()}catch(se){Mt(),ze(se)}}})),l.watch(u,O=>{V&&V.disconnect(),O&&!j.value&&!Y.value&&(V=new ResizeObserver(M=>{M&&M.length>0&&!j.value&&!Y.value&&Un(()=>{const I=M[0].contentRect.width;Ct(I)})}),V.observe(O))},{immediate:!0}),l.onMounted(()=>ee(null,null,function*(){yield l.nextTick(),H.value||(T.value=!s.value),w.value&&(Re(),W.value=x.value.length)})),l.watch(()=>s.value,O=>{H.value||(T.value=!O)}),l.watch(()=>w.value,O=>{O&&(j.value||(Re(),W.value=x.value.length),!n.loading&&!j.value&&Re())},{immediate:!1}),l.onUnmounted(()=>{P&&clearTimeout(P),V&&V.disconnect(),he&&(he.abort(),he=null),co(),pt()}),l.watch(()=>c.value,O=>ee(null,null,function*(){O?(pt(),he&&he.abort()):j.value||(yield l.nextTick(),Re(),T.value||Zt())}),{immediate:!1});const qt=l.computed(()=>n.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(O,M)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":n.loading}]])},[l.createElementVNode("div",{class:l.normalizeClass(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",n.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[l.createElementVNode("div",w1,[l.createElementVNode("img",{src:l.unref(u1),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,y1),l.createElementVNode("span",{class:l.normalizeClass(["text-sm font-medium font-mono",n.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)]),s.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["flex items-center space-x-1 rounded-md p-0.5",n.isDark?"bg-gray-700":"bg-gray-100"])},[l.createElementVNode("button",{class:l.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[T.value?n.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":n.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:M[0]||(M[0]=I=>ve("preview")),onMouseenter:M[1]||(M[1]=I=>ce(I,l.unref(r)("common.preview")||"Preview")),onFocus:M[2]||(M[2]=I=>ce(I,l.unref(r)("common.preview")||"Preview")),onMouseleave:me,onBlur:me},[l.createElementVNode("div",x1,[M[21]||(M[21]=l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("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"}),l.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})])],-1)),l.createElementVNode("span",null,l.toDisplayString(l.unref(r)("common.preview")||"Preview"),1)])],34),l.createElementVNode("button",{class:l.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[T.value?n.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":n.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:M[3]||(M[3]=I=>ve("source")),onMouseenter:M[4]||(M[4]=I=>ce(I,l.unref(r)("common.source")||"Source")),onFocus:M[5]||(M[5]=I=>ce(I,l.unref(r)("common.source")||"Source")),onMouseleave:me,onBlur:me},[l.createElementVNode("div",b1,[M[22]||(M[22]=l.createElementVNode("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"},[l.createElementVNode("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)),l.createElementVNode("span",null,l.toDisplayString(l.unref(r)("common.source")||"Source"),1)])],34)],2)):l.createCommentVNode("",!0),l.createElementVNode("div",_1,[l.createElementVNode("button",{class:l.normalizeClass(qt.value),"aria-pressed":c.value,onClick:M[6]||(M[6]=I=>c.value=!c.value),onMouseenter:M[7]||(M[7]=I=>ce(I,c.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onFocus:M[8]||(M[8]=I=>ce(I,c.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onMouseleave:me,onBlur:me},[(l.openBlock(),l.createElementBlock("svg",{style:l.normalizeStyle({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"},[...M[23]||(M[23]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,C1),l.createElementVNode("button",{class:l.normalizeClass(qt.value),onClick:de,onMouseenter:M[9]||(M[9]=I=>qe(I)),onFocus:M[10]||(M[10]=I=>qe(I)),onMouseleave:me,onBlur:me},[a.value?(l.openBlock(),l.createElementBlock("svg",S1,[...M[25]||(M[25]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",E1,[...M[24]||(M[24]=[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),l.createElementVNode("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),s.value?(l.openBlock(),l.createElementBlock("button",{key:0,class:l.normalizeClass(`${qt.value} ${_t.value?"opacity-50 cursor-not-allowed":""}`),disabled:_t.value,onClick:Ce,onMouseenter:M[11]||(M[11]=I=>ce(I,l.unref(r)("common.export")||"Export")),onFocus:M[12]||(M[12]=I=>ce(I,l.unref(r)("common.export")||"Export")),onMouseleave:me,onBlur:me},[...M[26]||(M[26]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),l.createElementVNode("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,M1)):l.createCommentVNode("",!0),s.value?(l.openBlock(),l.createElementBlock("button",{key:1,class:l.normalizeClass(`${qt.value} ${_t.value?"opacity-50 cursor-not-allowed":""}`),disabled:_t.value,onClick:It,onMouseenter:M[13]||(M[13]=I=>ce(I,Qe.value?l.unref(r)("common.minimize")||"Minimize":l.unref(r)("common.open")||"Open")),onFocus:M[14]||(M[14]=I=>ce(I,Qe.value?l.unref(r)("common.minimize")||"Minimize":l.unref(r)("common.open")||"Open")),onMouseleave:me,onBlur:me},[Qe.value?(l.openBlock(),l.createElementBlock("svg",D1,[...M[28]||(M[28]=[l.createElementVNode("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)])])):(l.openBlock(),l.createElementBlock("svg",B1,[...M[27]||(M[27]=[l.createElementVNode("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,A1)):l.createCommentVNode("",!0)])],2),l.withDirectives(l.createElementVNode("div",{ref_key:"modeContainerRef",ref:E},[T.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["p-4",n.isDark?"bg-gray-900":"bg-gray-50"])},[l.createElementVNode("pre",{class:l.normalizeClass(["text-sm font-mono whitespace-pre-wrap",n.isDark?"text-gray-300":"text-gray-700"])},l.toDisplayString(x.value),3)],2)):(l.openBlock(),l.createElementBlock("div",T1,[l.createElementVNode("div",$1,[l.createElementVNode("div",N1,[l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:C,onMouseenter:M[15]||(M[15]=I=>ce(I,l.unref(r)("common.zoomIn")||"Zoom in")),onFocus:M[16]||(M[16]=I=>ce(I,l.unref(r)("common.zoomIn")||"Zoom in")),onMouseleave:me,onBlur:me},[...M[29]||(M[29]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:D,onMouseenter:M[17]||(M[17]=I=>ce(I,l.unref(r)("common.zoomOut")||"Zoom out")),onFocus:M[18]||(M[18]=I=>ce(I,l.unref(r)("common.zoomOut")||"Zoom out")),onMouseleave:me,onBlur:me},[...M[30]||(M[30]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:G,onMouseenter:M[19]||(M[19]=I=>ce(I,l.unref(r)("common.resetZoom")||"Reset zoom")),onFocus:M[20]||(M[20]=I=>ce(I,l.unref(r)("common.resetZoom")||"Reset zoom")),onMouseleave:me,onBlur:me},l.toDisplayString(Math.round(_.value*100))+"% ",35)])]),l.createElementVNode("div",{ref_key:"mermaidContainer",ref:u,class:l.normalizeClass(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",n.isDark?"bg-gray-900":"bg-gray-50"]),style:l.normalizeStyle({height:N.value}),onWheel:xe,onMousedown:U,onMousemove:ke,onMouseup:ye,onMouseleave:ye,onTouchstartPassive:U,onTouchmovePassive:ke,onTouchendPassive:ye},[l.createElementVNode("div",{ref_key:"mermaidWrapper",ref:f,"data-mermaid-wrapper":"",class:l.normalizeClass(["absolute inset-0 cursor-grab",{"cursor-grabbing":S.value}]),style:l.normalizeStyle(Nt.value)},[l.createElementVNode("div",{ref_key:"mermaidContent",ref:d,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"mermaid-dialog",appear:""},{default:l.withCtx(()=>[Qe.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:l.withModifiers(St,["self"])},[l.createElementVNode("div",{class:l.normalizeClass(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",n.isDark?"bg-gray-900":"bg-white"])},[l.createElementVNode("div",I1,[l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:C},[...M[31]||(M[31]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:D},[...M[32]||(M[32]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:G},l.toDisplayString(Math.round(_.value*100))+"% ",3),l.createElementVNode("button",{class:l.normalizeClass(["inline-flex items-center justify-center p-2 rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:St},[...M[33]||(M[33]=[l.createElementVNode("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"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),l.createElementVNode("div",{ref_key:"modalContent",ref:h,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden",onWheel:xe,onMousedown:U,onMousemove:ke,onMouseup:ye,onMouseleave:ye,onTouchstart:U,onTouchmove:ke,onTouchend:ye},null,544)],2)])):l.createCommentVNode("",!0)]),_:1})]))]))],512),[[l.vShow,!c.value]])],2))}}),vn=Se(L1,[["__scopeId","data-v-d0cb88c1"]]);vn.install=e=>{e.component(vn.__name,vn)};const P1={dir:"auto",class:"paragraph-node"},O1=l.defineComponent({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({inline_code:tt,image:nn,link:it,hardbreak:tn,emphasis:vt,strong:rt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,checkbox:Dt,math_inline:Vt,checkbox_input:Dt,reference:nt},gt(t.customId)),o=ts();return(r,i)=>(l.openBlock(),l.createElementBlock("p",P1,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(s,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${e.indexKey||"paragraph"}-${a}`},[s.type!=="text"?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[s.type]),{key:0,node:s,"index-key":`${e.indexKey}-${a}`,"custom-id":t.customId},null,8,["node","index-key","custom-id"])):(l.openBlock(),l.createElementBlock("span",{key:1,class:l.normalizeClass([[l.unref(o)&&s.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},l.toDisplayString(s.content),3))],64))),128))]))}}),Nn=Se(O1,[["__scopeId","data-v-99e1c125"]]);Nn.install=e=>{e.component(Nn.__name,Nn)};const z1=["aria-busy","aria-label","data-language"],V1=["textContent"],on=l.defineComponent({__name:"PreCodeNode",props:{node:{}},setup(e){const t=e,n=l.computed(()=>{var c,u,f;const i=String((u=(c=t.node)==null?void 0:c.language)!=null?u:"");return String((f=String(i).split(/\s+/g)[0])!=null?f:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=l.computed(()=>`language-${n.value}`),r=l.computed(()=>{const i=n.value;return i?`Code block: ${i}`:"Code block"});return(i,s)=>(l.openBlock(),l.createElementBlock("pre",{class:l.normalizeClass([o.value]),"aria-busy":e.node.loading===!0,"aria-label":r.value,"data-language":n.value,tabindex:"0"},[s[0]||(s[0]=l.createTextVNode(" ",-1)),l.createElementVNode("code",{translate:"no",textContent:l.toDisplayString(e.node.code)},null,8,V1),s[1]||(s[1]=l.createTextVNode(`
|
|
77
|
-
`,-1))],10,z1))}});on.install=e=>{e.component(on.__name,on)};const j1={class:"table-node-wrapper"},H1=["aria-busy"],q1={class:"border-[var(--table-border,#cbd5e1)]"},W1={class:"border-b"},U1={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},K1=l.defineComponent({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=l.computed(()=>{var s,a,c,u;return(u=(c=(a=(s=t.node)==null?void 0:s.header)==null?void 0:a.cells)==null?void 0:c.length)!=null?u:0}),o=l.computed(()=>{const s=n.value||1,a=Math.floor(100/s);return Array.from({length:s}).map((c,u)=>u===s-1?`${100-a*(s-1)}%`:`${a}%`)}),r=l.computed(()=>{var s;return(s=t.node.loading)!=null?s:!1}),i=l.computed(()=>{var s;return(s=t.node.rows)!=null?s:[]});return(s,a)=>(l.openBlock(),l.createElementBlock("div",j1,[l.createElementVNode("table",{class:l.normalizeClass(["w-full my-8 text-sm table-fixed table-node",{"table-node--loading":r.value}]),"aria-busy":r.value},[l.createElementVNode("colgroup",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(c,u)=>(l.openBlock(),l.createElementBlock("col",{key:`col-${u}`,style:l.normalizeStyle({width:c})},null,4))),128))]),l.createElementVNode("thead",q1,[l.createElementVNode("tr",W1,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.header.cells,(c,u)=>(l.openBlock(),l.createElementBlock("th",{key:`header-${u}`,dir:"auto",class:l.normalizeClass(["font-semibold p-[calc(4/7*1em)] overflow-x-auto",[c.align==="right"?"text-right":c.align==="center"?"text-center":"text-left"]])},[l.createVNode(l.unref(st),{nodes:c.children,"index-key":`table-th-${e.indexKey}`,typewriter:t.typewriter,onCopy:a[0]||(a[0]=f=>s.$emit("copy",f))},null,8,["nodes","index-key","typewriter"])],2))),128))])]),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,(c,u)=>(l.openBlock(),l.createElementBlock("tr",{key:`row-${u}`,class:l.normalizeClass(["border-[var(--table-border,#cbd5e1)]",[u<i.value.length-1?"border-b":""]])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.cells,(f,d)=>(l.openBlock(),l.createElementBlock("td",{key:`cell-${u}-${d}`,class:l.normalizeClass(["p-[calc(4/7*1em)] overflow-x-auto",[f.align==="right"?"text-right":f.align==="center"?"text-center":"text-left"]]),dir:"auto"},[l.createVNode(l.unref(st),{nodes:f.children,"index-key":`table-td-${e.indexKey}`,typewriter:t.typewriter,onCopy:a[1]||(a[1]=h=>s.$emit("copy",h))},null,8,["nodes","index-key","typewriter"])],2))),128))],2))),128))])],10,H1),l.createVNode(l.Transition,{name:"table-node-fade"},{default:l.withCtx(()=>[r.value?(l.openBlock(),l.createElementBlock("div",U1,[l.renderSlot(s.$slots,"loading",{isLoading:r.value},()=>[a[2]||(a[2]=l.createElementVNode("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),a[3]||(a[3]=l.createElementVNode("span",{class:"sr-only"},"Loading",-1))],!0)])):l.createCommentVNode("",!0)]),_:3})]))}}),In=Se(K1,[["__scopeId","data-v-50ef14ca"]]);In.install=e=>{e.component(In.__name,In)};const X1={},Z1={class:"hr-node"};function Y1(e,t){return l.openBlock(),l.createElementBlock("hr",Z1)}const Fn=Se(X1,[["render",Y1],["__scopeId","data-v-639cbad9"]]);Fn.install=e=>{e.component(Fn.__name,Fn)};const G1={key:1,class:"html-block-node__placeholder"},J1=l.defineComponent({__name:"HtmlBlockNode",props:{node:{}},setup(e){const t=e,n=l.computed(()=>{const u=t.node.attrs;if(u){if(Array.isArray(u)){const f={};for(const d of u){if(!d||d.length<2)continue;const[h,p]=d;h!=null&&(f[String(h)]=p==null?"":String(p))}return f}return u}}),o=l.ref(null),r=l.ref(typeof window=="undefined"),i=l.ref(t.node.content),s=Hn(),a=l.ref(null),c=!!t.node.loading;return typeof window!="undefined"?(l.watch(o,u=>{var d,h;if((h=(d=a.value)==null?void 0:d.destroy)==null||h.call(d),a.value=null,!c){r.value=!0,i.value=t.node.content;return}if(!u){r.value=!1;return}const f=s(u,{rootMargin:"400px"});a.value=f,r.value=f.isVisible.value,f.whenVisible.then(()=>{r.value=!0})},{immediate:!0}),l.watch(()=>t.node.content,u=>{(!c||r.value)&&(i.value=u)})):r.value=!0,l.onBeforeUnmount(()=>{var u,f;(f=(u=a.value)==null?void 0:u.destroy)==null||f.call(u),a.value=null}),(u,f)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps({ref_key:"htmlRef",ref:o,class:"html-block-node"},n.value),[r.value?l.withMemo([i.value],()=>(l.openBlock(),l.createElementBlock("div",{key:0,innerHTML:i.value},null,8,["innerHTML"])),f,0):(l.openBlock(),l.createElementBlock("div",G1,[l.renderSlot(u.$slots,"placeholder",{node:e.node},()=>[f[1]||(f[1]=l.createElementVNode("span",{class:"html-block-node__placeholder-bar"},null,-1)),f[2]||(f[2]=l.createElementVNode("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),f[3]||(f[3]=l.createElementVNode("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))],16))}}),Q1=Se(J1,[["__scopeId","data-v-ed22b926"]]),e0={class:"unknown-node"},Fi=l.defineComponent({__name:"FallbackComponent",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",e0,l.toDisplayString(e.node.raw),1))}}),t0=["data-node-index","data-node-type"],n0=l.defineComponent({__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 It,St,$;const n=e,o=t,r=l.ref(),i=l.ref(n.viewportPriority!==!1),s=Jh(()=>r.value,i),a=Pl(),c=l.computed(()=>n.customMarkdownIt?n.customMarkdownIt(a):a),u=l.computed(()=>{var v;if((v=n.nodes)!=null&&v.length)return n.nodes;if(n.content){const C=Ll(n.content,c.value,n.parseOptions);return l.markRaw(C)}return[]}),f=typeof window!="undefined",d=f&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,h=f&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,p=typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((St=(It=globalThis.process)==null?void 0:It.env)==null?void 0:St.NODE_ENV)==="test",m=f&&typeof window.requestIdleCallback=="function",g=l.computed(()=>{var C;const v=Math.trunc((C=n.renderBatchSize)!=null?C:80);return Number.isFinite(v)?Math.max(0,v):0}),w=l.computed(()=>{var C;const v=Math.trunc((C=n.initialRenderBatchSize)!=null?C:g.value);return Number.isFinite(v)?Math.max(0,v):g.value}),E=l.computed(()=>n.batchRendering!==!1&&g.value>0&&f&&!p),x=l.ref(0),y=l.ref({key:n.indexKey,total:0}),_=l.ref({batchSize:g.value,initial:w.value,delay:($=n.renderBatchDelay)!=null?$:16,enabled:E.value}),A=l.shallowRef([]),k=l.ref(Math.max(1,g.value||1)),S=l.reactive({}),b=new Map,T=new Map,H=l.computed(()=>n.deferNodesUntilVisible!==!1&&i.value!==!1),R=l.computed(()=>{var v;return((v=n.maxLiveNodes)!=null?v:0)>0}),L=l.computed(()=>!!s&&(H.value||R.value)),W=l.computed(()=>{var v;return Math.max(1,(v=n.maxLiveNodes)!=null?v:320)}),K=l.computed(()=>{var v;return Math.max(0,(v=n.liveNodeBuffer)!=null?v:60)}),P=l.ref(0),N=l.reactive({start:0,end:0}),V=new Map,j=l.computed(()=>{if(!R.value)return u.value.length;const v=K.value,C=Math.max(N.end+v,w.value),D=Math.min(u.value.length,C);return Math.max(x.value,D)});function Y(v,C,D){return Math.min(Math.max(v,C),D)}function J(){const v=u.value.length;if(!R.value||v===0){N.start=0,N.end=v;return}const C=Math.min(W.value,v),D=K.value,G=Y(P.value-D,0,Math.max(0,v-C));N.start=G,N.end=Math.min(v,G+C)}const te=l.reactive({}),re=l.reactive({total:0,count:0});function be(v,C){if(!Number.isFinite(C)||C<=0)return;const D=te[v];te[v]=C,D?re.total+=C-D:(re.total+=C,re.count++)}const he=l.computed(()=>re.count>0?Math.max(12,re.total/re.count):32);function pe(v,C){var G;if(v>=C)return 0;let D=0;for(let U=v;U<C;U++)D+=(G=te[U])!=null?G:he.value;return D}const ie=l.computed(()=>{if(!R.value)return A.value.map((G,U)=>({node:G,index:U}));const v=A.value.length,C=Y(N.start,0,v),D=Y(N.end,C,v);return A.value.slice(C,D).map((G,U)=>({node:G,index:C+U}))}),z=l.computed(()=>R.value?pe(0,Math.min(N.start,A.value.length)):0),F=l.computed(()=>{if(!R.value)return 0;const v=A.value.length,C=Math.min(N.end,v);return pe(C,Math.min(v,x.value))});function q(){const v=u.value.length,C=Math.min(v,x.value);if(C<=0){A.value=[],Q(0);return}if(C>=v){A.value=u.value,Q(C);return}A.value=u.value.slice(0,C),Q(C)}function Q(v){if(b.size)for(const[C,D]of b)C>=v&&(D.destroy(),b.delete(C),H.value&&delete S[C],T.delete(C))}function oe(v,C){H.value&&(S[v]=C),C&&(P.value=Y(v,0,Math.max(0,u.value.length-1)))}function _e(v){return!H.value||v<w.value?!0:S[v]===!0}function ge(v){const C=b.get(v);C&&(C.destroy(),b.delete(v))}function Ne(v,C){if(C?T.set(v,C):T.delete(v),!L.value||!s){ge(v),C?oe(v,!0):H.value&&delete S[v];return}if(v<w.value&&!R.value){ge(v),oe(v,!0);return}if(!C){ge(v),H.value&&delete S[v];return}ge(v);const D=s(C,{rootMargin:"400px"});D&&(b.set(v,D),oe(v,D.isVisible.value),D.whenVisible.then(()=>{oe(v,!0)}).catch(()=>{}))}function He(v,C){if(!C){V.delete(v);return}V.set(v,C),queueMicrotask(()=>{be(v,C.offsetHeight)})}let Ie=null,ze=null,De=!1,ce=null,me=null;function qe(){f&&(Ie!=null&&(h==null||h(Ie),Ie=null),ze!=null&&(window.clearTimeout(ze),ze=null),me!=null&&typeof window.cancelIdleCallback=="function"&&(window.cancelIdleCallback(me),me=null),De=!1,ce=null)}function yt(v,C={}){var ye,xe;if(!E.value)return;const D=j.value;if(x.value>=D)return;const G=Math.max(1,v),U=de=>{var Rt;Ie=null,ze=null,me=null,De=!1;const Ce=ce!=null?ce:G;ce=null;const ve=Math.max(2,(Rt=n.renderBatchBudgetMs)!=null?Rt:6),ht=Fe=>{const Re=typeof performance!="undefined"?performance.now():Date.now();x.value=Math.min(D,x.value+Math.max(1,Fe)),q();const Mt=(typeof performance!="undefined"?performance.now():Date.now())-Re;return Ve(Mt),Mt};let Ft=Ce;for(;ht(Ft),!(x.value>=D||!de||(typeof de.timeRemaining=="function"?de.timeRemaining():0)<=ve*.5);)Ft=Math.max(1,Math.round(k.value));x.value<D&&xt()};if(!f||C.immediate){U();return}const ke=Math.max(0,(ye=n.renderBatchDelay)!=null?ye:16);if(ce=ce!=null?Math.max(ce,G):G,!De){if(De=!0,!p&&m&&window.requestIdleCallback){const de=Math.max(0,(xe=n.renderBatchIdleTimeoutMs)!=null?xe:120);me=window.requestIdleCallback(Ce=>{U(Ce)},{timeout:de});return}if(!d||p){ze=window.setTimeout(()=>U(),ke);return}Ie=d(()=>{if(ke===0){U();return}ze=window.setTimeout(()=>U(),ke)})}}function xt(){const v=E.value?Math.max(1,Math.round(k.value)):Math.max(1,g.value);yt(v)}function Ve(v){var U;if(!E.value)return;const C=Math.max(2,(U=n.renderBatchBudgetMs)!=null?U:6),D=Math.max(1,g.value||1),G=Math.max(1,Math.floor(D/4));v>C*1.2?k.value=Math.max(G,Math.floor(k.value*.7)):v<C*.5&&k.value<D&&(k.value=Math.min(D,Math.ceil(k.value*1.2)))}l.watch([()=>u.value,()=>u.value.length,()=>E.value,()=>g.value,()=>w.value,()=>n.renderBatchDelay,()=>n.indexKey],()=>{var ve;const C=u.value.length,D=y.value,G=n.indexKey,U=G!==void 0?G!==D.key:C!==D.total;y.value={key:G,total:C};const ke=_.value,ye=(ve=n.renderBatchDelay)!=null?ve:16,xe=ke.batchSize!==g.value||ke.initial!==w.value||ke.delay!==ye||ke.enabled!==E.value;_.value={batchSize:g.value,initial:w.value,delay:ye,enabled:E.value},(U||xe||!E.value)&&qe(),(U||xe)&&(k.value=Math.max(1,g.value||1));const de=j.value;if(!C){x.value=0,q();return}if(!E.value){x.value=de,q();return}U||xe?x.value=Math.min(de,w.value):x.value=Math.min(x.value,de);const Ce=Math.max(1,w.value||g.value||C);x.value<de?yt(Ce,{immediate:!f}):q()},{immediate:!0}),l.watch(()=>H.value,v=>{if(!v){for(const C of b.values())C.destroy();b.clear();for(const C of Object.keys(S))delete S[C];for(const[C,D]of T)D&&oe(C,!0);return}for(const[C,D]of T)Ne(C,D)},{immediate:!1}),l.watch(()=>x.value,(v,C)=>{R.value&&(typeof C=="number"&&v<=C||v>0&&(P.value=v-1))}),l.watch([P,W,K,()=>u.value.length,R],()=>{J()},{immediate:!0}),l.watch(()=>j.value,(v,C)=>{E.value&&(typeof C=="number"&&v<=C||v>x.value&&xt())}),l.onBeforeUnmount(()=>{qe();for(const v of b.values())v.destroy();b.clear()});const bt=l.defineAsyncComponent(()=>ee(null,null,function*(){try{return(yield Promise.resolve().then(()=>Ip)).default}catch(v){return console.warn('[markstream-vue] 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".',v),on}})),Ge=l.computed(()=>n.renderCodeBlocksAsPre?on:bt),jt={text:Xe,paragraph:Nn,heading:Pr,code_block:bt,list:$n,blockquote:Mn,table:In,definition_list:An,footnote:Dn,footnote_reference:at,admonition:Rn,hardbreak:tn,link:it,image:nn,thematic_break:Fn,math_inline:Vt,math_block:bh,strong:rt,emphasis:vt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,checkbox:Dt,checkbox_input:Dt,inline_code:tt,reference:nt,html_block:Q1};function _t(v){var D;if(!v)return Fi;const C=gt(n.customId)[String(v.type)];if(C)return C;if(v.type==="code_block"){if(String((D=v.language)!=null?D:"").trim().toLowerCase()==="mermaid")return gt(n.customId).mermaid||vn;const U=gt(n.customId).code_block;return U||Ge.value}return jt[String(v.type)]||Fi}function Ct(v){var C;return(v==null?void 0:v.type)==="code_block"&&String((C=v.language)!=null?C:"").trim().toLowerCase()==="mermaid"?{}:v.type==="code_block"?ne({stream:n.codeBlockStream,darkTheme:n.codeBlockDarkTheme,lightTheme:n.codeBlockLightTheme,monacoOptions:n.codeBlockMonacoOptions,themes:n.themes,minWidth:n.codeBlockMinWidth,maxWidth:n.codeBlockMaxWidth},n.codeBlockProps||{}):{typewriter:n.typewriter}}function Qe(v){o("click",v)}function Nt(v){var D;(D=v.target)!=null&&D.closest("[data-node-index]")&&o("mouseover",v)}function Et(v){var D;(D=v.target)!=null&&D.closest("[data-node-index]")&&o("mouseout",v)}return(v,C)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"containerRef",ref:r,class:"markdown-renderer",onClick:Qe,onMouseover:Nt,onMouseout:Et},[R.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"node-spacer",style:l.normalizeStyle({height:`${z.value}px`}),"aria-hidden":"true"},null,4)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(ie.value,D=>{var G;return l.openBlock(),l.createElementBlock("div",{key:D.index,ref_for:!0,ref:U=>Ne(D.index,U),class:"node-slot","data-node-index":D.index,"data-node-type":D.node.type},[_e(D.index)?(l.openBlock(),l.createElementBlock("div",{key:0,ref_for:!0,ref:U=>He(D.index,U),class:"node-content"},[D.node.type!=="code_block"&&n.typewriter!==!1?(l.openBlock(),l.createBlock(l.Transition,{key:0,name:"typewriter",appear:""},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(_t(D.node)),l.mergeProps({node:D.node,loading:D.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${D.index}`},{ref_for:!0},Ct(D.node),{"custom-id":n.customId,"is-dark":n.isDark,onCopy:C[0]||(C[0]=U=>o("copy",U)),onHandleArtifactClick:C[1]||(C[1]=U=>o("handleArtifactClick",U))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1024)):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(_t(D.node)),l.mergeProps({key:1,node:D.node,loading:D.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${D.index}`},{ref_for:!0},Ct(D.node),{"custom-id":n.customId,"is-dark":n.isDark,onCopy:C[2]||(C[2]=U=>o("copy",U)),onHandleArtifactClick:C[3]||(C[3]=U=>o("handleArtifactClick",U))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],512)):(l.openBlock(),l.createElementBlock("div",{key:1,class:"node-placeholder",style:l.normalizeStyle({height:`${(G=te[D.index])!=null?G:he.value}px`})},null,4))],8,t0)}),128)),R.value?(l.openBlock(),l.createElementBlock("div",{key:1,class:"node-spacer",style:l.normalizeStyle({height:`${F.value}px`}),"aria-hidden":"true"},null,4)):l.createCommentVNode("",!0)],544))}}),st=Se(n0,[["__scopeId","data-v-6933a661"]]);st.install=e=>{var n,o;const t=(o=(n=st.__name)!=null?n:st.name)!=null?o:"NodeRenderer";e.component(t,st)};const r0={key:0,class:"admonition-icon"},o0={class:"admonition-title"},i0=["aria-expanded","aria-controls","title"],l0={key:0},s0={key:1},a0=["id"],c0=l.defineComponent({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean}},emits:["copy"],setup(e,{emit:t}){var u;const n=e,o=t,r={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},i=l.computed(()=>{if(n.node.title&&n.node.title.trim().length)return n.node.title;const f=n.node.kind||"note";return f.charAt(0).toUpperCase()+f.slice(1)}),s=l.ref(n.node.collapsible?!((u=n.node.open)==null||u):!1);function a(){n.node.collapsible&&(s.value=!s.value)}const c=`admonition-${Math.random().toString(36).slice(2,9)}`;return(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["admonition",[`admonition-${n.node.kind}`,n.isDark?"is-dark":""]])},[l.createElementVNode("div",{id:c,class:"admonition-header"},[r[n.node.kind]?(l.openBlock(),l.createElementBlock("span",r0,l.toDisplayString(r[n.node.kind]),1)):l.createCommentVNode("",!0),l.createElementVNode("span",o0,l.toDisplayString(i.value),1),n.node.collapsible?(l.openBlock(),l.createElementBlock("button",{key:1,class:"admonition-toggle","aria-expanded":!s.value,"aria-controls":`${c}-content`,title:s.value?"Expand":"Collapse",onClick:a},[s.value?(l.openBlock(),l.createElementBlock("span",l0,"▶")):(l.openBlock(),l.createElementBlock("span",s0,"▼"))],8,i0)):l.createCommentVNode("",!0)]),l.withDirectives(l.createElementVNode("div",{id:`${c}-content`,class:"admonition-content","aria-labelledby":c},[l.withMemo([n.node.children],()=>l.createVNode(l.unref(st),{"index-key":`admonition-${e.indexKey}`,nodes:n.node.children,typewriter:n.typewriter,onCopy:d[0]||(d[0]=h=>o("copy",h))},null,8,["index-key","nodes","typewriter"]),d,1)],8,a0),[[l.vShow,!s.value]])],2))}}),Rn=Se(c0,[["__scopeId","data-v-578c25d2"]]);Rn.install=e=>{e.component(Rn.__name,Rn)};let Ri=!1;function u0(e){return ee(this,null,function*(){if(!Ri)return Ri=!0,e.preloadMonacoWorkers()})}let qn=null,Li=!1;function as(){return ee(this,null,function*(){if(qn)return qn;if(Li)return null;try{return qn=yield import("stream-monaco"),yield u0(qn),qn}catch(e){return Li=!0,null}})}const d0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',f0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
73
|
+
</div>`};const a=/^\[(\d+)\]/,c=(f,d)=>{const h=f;if(h.src[h.pos]!=="[")return!1;const p=a.exec(h.src.slice(h.pos));if(!p)return!1;if(!d){const m=p[1],g=h.push("reference","span",0);g.content=m,g.markup=p[0]}return h.pos+=p[0].length,!0};return n.inline.ruler.before("escape","reference",c),n.renderer.rules.reference=(f,d)=>{var m;const p=String((m=f[d].content)!=null?m:"");return`<span class="reference-link" data-reference-id="${p}" role="button" tabindex="0" title="Click to view reference">${p}</span>`},n}const af=["cite"],cf=l.defineComponent({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("blockquote",{class:"blockquote",dir:"auto",cite:e.node.cite},[l.withMemo([e.node.children],()=>l.createVNode(l.unref(st),{"index-key":`blockquote-${e.indexKey}`,nodes:e.node.children||[],typewriter:e.typewriter,onCopy:n[0]||(n[0]=o=>t.$emit("copy",o))},null,8,["index-key","nodes","typewriter"]),n,1)],8,af))}}),Me=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mn=Me(cf,[["__scopeId","data-v-adfdba00"]]);Mn.install=e=>{e.component(Mn.__name,Mn)};const uf={class:"checkbox-node"},df=["checked"],ff=l.defineComponent({__name:"CheckboxNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",uf,[l.createElementVNode("input",{type:"checkbox",checked:e.node.checked,disabled:"",class:"checkbox-input"},null,8,df)]))}}),Dt=Me(ff,[["__scopeId","data-v-8dc6c46f"]]);Dt.install=e=>{e.component(Dt.__name,Dt)};const hf={class:"definition-list"},pf={class:"definition-term"},mf={class:"definition-desc"},gf=l.defineComponent({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("dl",hf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.items,(o,r)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:r},[l.createElementVNode("dt",pf,[l.createVNode(l.unref(st),{"index-key":`definition-term-${e.indexKey}-${r}`,nodes:o.term,typewriter:e.typewriter,onCopy:n[0]||(n[0]=i=>t.$emit("copy",i))},null,8,["index-key","nodes","typewriter"])]),l.createElementVNode("dd",mf,[l.createVNode(l.unref(st),{"index-key":`definition-desc-${e.indexKey}-${r}`,nodes:o.definition,typewriter:e.typewriter,onCopy:n[1]||(n[1]=i=>t.$emit("copy",i))},null,8,["index-key","nodes","typewriter"])])],64))),128))]))}}),Bn=Me(gf,[["__scopeId","data-v-5a21f288"]]);Bn.install=e=>{e.component(Bn.__name,Bn)};const kf={class:"emoji-node"},vf=l.defineComponent({__name:"EmojiNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",kf,l.toDisplayString(e.node.name),1))}}),et=Me(vf,[["__scopeId","data-v-de55dc97"]]);et.install=e=>{e.component(et.__name,et)};const Jn="__global__",gn={};function wf(e,t){typeof e=="string"?gn[e]=t||{}:gn[Jn]=e||{}}function pt(e){return e?gn[e]||gn[Jn]||{}:gn[Jn]||{}}function yf(e){if(e===Jn)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete gn[e]}function xf(){delete gn[Jn]}const bf=["title"],_f=l.defineComponent({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const n=`#footnote-${e.node.id}`;function o(){if(typeof document=="undefined")return;const r=document.querySelector(n);r?r.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${n} not found`)}return(r,i)=>(l.openBlock(),l.createElementBlock("sup",{class:"footnote-reference",onClick:o},[l.createElementVNode("span",{href:n,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+l.toDisplayString(e.node.id)+"]",9,bf)]))}}),at=Me(_f,[["__scopeId","data-v-7c1ed642"]]);at.install=e=>{e.component(at.__name,at)};const Cf={class:"inline text-[85%] px-1 py-0.5 rounded font-mono bg-secondary whitespace-normal break-words max-w-full before:content-[''] after:content-['']"},tt=l.defineComponent({__name:"InlineCodeNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("code",Cf,l.toDisplayString(e.node.code),1))}});tt.install=e=>{e.component(tt.__name,tt)};const xr=Math.min,kn=Math.max,br=Math.round,fr=Math.floor,Ot=e=>({x:e,y:e}),Ef={left:"right",right:"left",bottom:"top",top:"bottom"},Sf={start:"end",end:"start"};function _i(e,t,n){return kn(e,xr(t,n))}function Tr(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function $r(e){return e.split("-")[1]}function Ol(e){return e==="x"?"y":"x"}function zl(e){return e==="y"?"height":"width"}const Mf=new Set(["top","bottom"]);function nn(e){return Mf.has(wn(e))?"y":"x"}function Vl(e){return Ol(nn(e))}function Bf(e,t,n){n===void 0&&(n=!1);const o=$r(e),r=Vl(e),i=zl(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=_r(s)),[s,_r(s)]}function Af(e){const t=_r(e);return[lo(e),t,lo(t)]}function lo(e){return e.replace(/start|end/g,t=>Sf[t])}const Ci=["left","right"],Ei=["right","left"],Df=["top","bottom"],Tf=["bottom","top"];function $f(e,t,n){switch(e){case"top":case"bottom":return n?t?Ei:Ci:t?Ci:Ei;case"left":case"right":return t?Df:Tf;default:return[]}}function Nf(e,t,n,o){const r=$r(e);let i=$f(wn(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(lo)))),i}function _r(e){return e.replace(/left|right|bottom|top/g,t=>Ef[t])}function If(e){return ne({top:0,right:0,bottom:0,left:0},e)}function Ff(e){return typeof e!="number"?If(e):{top:e,right:e,bottom:e,left:e}}function Cr(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 Si(e,t,n){let{reference:o,floating:r}=e;const i=nn(t),s=Vl(t),a=zl(s),c=wn(t),u=i==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,h=o[a]/2-r[a]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,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($r(t)){case"start":p[s]-=h*(n&&u?-1:1);break;case"end":p[s]+=h*(n&&u?-1:1);break}return p}const Rf=(e,t,n)=>ee(null,null,function*(){const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=yield s.isRTL==null?void 0:s.isRTL(t);let u=yield s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=Si(u,o,c),h=o,p={},m=0;for(let g=0;g<a.length;g++){const{name:w,fn:S}=a[g],{x,y,data:_,reset:B}=yield S({x:f,y:d,initialPlacement:o,placement:h,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});f=x!=null?x:f,d=y!=null?y:d,p=Ve(ne({},p),{[w]:ne(ne({},p[w]),_)}),B&&m<=50&&(m++,typeof B=="object"&&(B.placement&&(h=B.placement),B.rects&&(u=B.rects===!0?yield s.getElementRects({reference:e,floating:t,strategy:r}):B.rects),{x:f,y:d}=Si(u,h,c)),g=-1)}return{x:f,y:d,placement:h,strategy:r,middlewareData:p}});function jl(e,t){return ee(this,null,function*(){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Tr(t,e),m=Ff(p),w=a[h?d==="floating"?"reference":"floating":d],S=Cr(yield i.getClippingRect({element:(n=yield i.isElement==null?void 0:i.isElement(w))==null||n?w:w.contextElement||(yield i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),x=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=yield i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating),_=(yield i.isElement==null?void 0:i.isElement(y))?(yield i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},B=Cr(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:y,strategy:c}):x);return{top:(S.top-B.top+m.top)/_.y,bottom:(B.bottom-S.bottom+m.bottom)/_.y,left:(S.left-B.left+m.left)/_.x,right:(B.right-S.right+m.right)/_.x}})}const Lf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return ee(this,null,function*(){var o,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:c,platform:u,elements:f}=n,O=Tr(e,n),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0}=O,S=qr(O,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const x=wn(i),y=nn(c),_=wn(c)===c,B=yield u.isRTL==null?void 0:u.isRTL(f.floating),k=p||(_||!w?[_r(c)]:Af(c)),M=g!=="none";!p&&M&&k.push(...Nf(c,w,g,B));const b=[c,...k],T=yield jl(n,S),H=[];let L=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&H.push(T[x]),h){const F=Bf(i,a,B);H.push(T[F[0]],T[F[1]])}if(L=[...L,{placement:i,overflows:H}],!H.every(F=>F<=0)){var P,W;const F=(((P=s.flip)==null?void 0:P.index)||0)+1,V=b[F];if(V&&(!(h==="alignment"?y!==nn(V):!1)||L.every(J=>nn(J.placement)===y?J.overflows[0]>0:!0)))return{data:{index:F,overflows:L},reset:{placement:V}};let j=(W=L.filter(Y=>Y.overflows[0]<=0).sort((Y,J)=>Y.overflows[1]-J.overflows[1])[0])==null?void 0:W.placement;if(!j)switch(m){case"bestFit":{var K;const Y=(K=L.filter(J=>{if(M){const te=nn(J.placement);return te===y||te==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(te=>te>0).reduce((te,re)=>te+re,0)]).sort((J,te)=>J[1]-te[1])[0])==null?void 0:K[0];Y&&(j=Y);break}case"initialPlacement":j=c;break}if(i!==j)return{reset:{placement:j}}}return{}})}}},Pf=new Set(["left","top"]);function Of(e,t){return ee(this,null,function*(){const{placement:n,platform:o,elements:r}=e,i=yield o.isRTL==null?void 0:o.isRTL(r.floating),s=wn(n),a=$r(n),c=nn(n)==="y",u=Pf.has(s)?-1:1,f=i&&c?-1:1,d=Tr(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*f,y:h*u}:{x:h*u,y:p*f}})}const zf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return ee(this,null,function*(){var o,r;const{x:i,y:s,placement:a,middlewareData:c}=n,u=yield Of(n,e);return a===((o=c.offset)==null?void 0:o.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:s+u.y,data:Ve(ne({},u),{placement:a})}})}}},Vf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return ee(this,null,function*(){const{x:o,y:r,placement:i}=n,S=Tr(e,n),{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:x=>{let{x:y,y:_}=x;return{x:y,y:_}}}}=S,u=qr(S,["mainAxis","crossAxis","limiter"]),f={x:o,y:r},d=yield jl(n,u),h=nn(wn(i)),p=Ol(h);let m=f[p],g=f[h];if(s){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",_=m+d[x],B=m-d[y];m=_i(_,m,B)}if(a){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",_=g+d[x],B=g-d[y];g=_i(_,g,B)}const w=c.fn(Ve(ne({},n),{[p]:m,[h]:g}));return Ve(ne({},w),{data:{x:w.x-o,y:w.y-r,enabled:{[p]:s,[h]:a}}})})}}};function Nr(){return typeof window!="undefined"}function jn(e){return Hl(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vt(e){var t;return(t=(Hl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hl(e){return Nr()?e instanceof Node||e instanceof mt(e).Node:!1}function Tt(e){return Nr()?e instanceof Element||e instanceof mt(e).Element:!1}function zt(e){return Nr()?e instanceof HTMLElement||e instanceof mt(e).HTMLElement:!1}function Mi(e){return!Nr()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot}const jf=new Set(["inline","contents"]);function nr(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!jf.has(r)}const Hf=new Set(["table","td","th"]);function qf(e){return Hf.has(jn(e))}const Wf=[":popover-open",":modal"];function Ir(e){return Wf.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const Uf=["transform","translate","scale","rotate","perspective"],Kf=["transform","translate","scale","rotate","perspective","filter"],Xf=["paint","layout","strict","content"];function Eo(e){const t=So(),n=Tt(e)?$t(e):e;return Uf.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Kf.some(o=>(n.willChange||"").includes(o))||Xf.some(o=>(n.contain||"").includes(o))}function Zf(e){let t=cn(e);for(;zt(t)&&!zn(t);){if(Eo(t))return t;if(Ir(t))return null;t=cn(t)}return null}function So(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yf=new Set(["html","body","#document"]);function zn(e){return Yf.has(jn(e))}function $t(e){return mt(e).getComputedStyle(e)}function Fr(e){return Tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cn(e){if(jn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mi(e)&&e.host||Vt(e);return Mi(t)?t.host:t}function ql(e){const t=cn(e);return zn(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&nr(t)?t:ql(t)}function Qn(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ql(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=mt(r);if(i){const a=so(s);return t.concat(s,s.visualViewport||[],nr(r)?r:[],a&&n?Qn(a):[])}return t.concat(r,Qn(r,[],n))}function so(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wl(e){const t=$t(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=zt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=br(n)!==i||br(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Mo(e){return Tt(e)?e:e.contextElement}function An(e){const t=Mo(e);if(!zt(t))return Ot(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Wl(t);let s=(i?br(n.width):n.width)/o,a=(i?br(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Gf=Ot(0);function Ul(e){const t=mt(e);return!So()||!t.visualViewport?Gf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mt(e)?!1:t}function yn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Mo(e);let s=Ot(1);t&&(o?Tt(o)&&(s=An(o)):s=An(e));const a=Jf(i,n,o)?Ul(i):Ot(0);let c=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(i){const h=mt(i),p=o&&Tt(o)?mt(o):o;let m=h,g=so(m);for(;g&&o&&p!==m;){const w=An(g),S=g.getBoundingClientRect(),x=$t(g),y=S.left+(g.clientLeft+parseFloat(x.paddingLeft))*w.x,_=S.top+(g.clientTop+parseFloat(x.paddingTop))*w.y;c*=w.x,u*=w.y,f*=w.x,d*=w.y,c+=y,u+=_,m=mt(g),g=so(m)}}return Cr({width:f,height:d,x:c,y:u})}function Rr(e,t){const n=Fr(e).scrollLeft;return t?t.left+n:yn(Vt(e)).left+n}function Kl(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Rr(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Qf(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Vt(o),a=t?Ir(t.floating):!1;if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Ot(1);const f=Ot(0),d=zt(o);if((d||!d&&!i)&&((jn(o)!=="body"||nr(s))&&(c=Fr(o)),zt(o))){const p=yn(o);u=An(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const h=s&&!d&&!i?Kl(s,c):Ot(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-c.scrollTop*u.y+f.y+h.y}}function eh(e){return Array.from(e.getClientRects())}function th(e){const t=Vt(e),n=Fr(e),o=e.ownerDocument.body,r=kn(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=kn(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Rr(e);const a=-n.scrollTop;return $t(o).direction==="rtl"&&(s+=kn(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}const Bi=25;function nh(e,t){const n=mt(e),o=Vt(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const f=So();(!f||f&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}const u=Rr(o);if(u<=0){const f=o.ownerDocument,d=f.body,h=getComputedStyle(d),p=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(o.clientWidth-d.clientWidth-p);m<=Bi&&(i-=m)}else u<=Bi&&(i+=u);return{width:i,height:s,x:a,y:c}}const rh=new Set(["absolute","fixed"]);function oh(e,t){const n=yn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=zt(e)?An(e):Ot(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,u=o*i.y;return{width:s,height:a,x:c,y:u}}function Ai(e,t,n){let o;if(t==="viewport")o=nh(e,n);else if(t==="document")o=th(Vt(e));else if(Tt(t))o=oh(t,n);else{const r=Ul(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Cr(o)}function Xl(e,t){const n=cn(e);return n===t||!Tt(n)||zn(n)?!1:$t(n).position==="fixed"||Xl(n,t)}function ih(e,t){const n=t.get(e);if(n)return n;let o=Qn(e,[],!1).filter(a=>Tt(a)&&jn(a)!=="body"),r=null;const i=$t(e).position==="fixed";let s=i?cn(e):e;for(;Tt(s)&&!zn(s);){const a=$t(s),c=Eo(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&rh.has(r.position)||nr(s)&&!c&&Xl(e,s))?o=o.filter(f=>f!==s):r=a,s=cn(s)}return t.set(e,o),o}function lh(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Ir(t)?[]:ih(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((u,f)=>{const d=Ai(t,f,r);return u.top=kn(d.top,u.top),u.right=xr(d.right,u.right),u.bottom=xr(d.bottom,u.bottom),u.left=kn(d.left,u.left),u},Ai(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function sh(e){const{width:t,height:n}=Wl(e);return{width:t,height:n}}function ah(e,t,n){const o=zt(t),r=Vt(t),i=n==="fixed",s=yn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Ot(0);function u(){c.x=Rr(r)}if(o||!o&&!i)if((jn(t)!=="body"||nr(r))&&(a=Fr(t)),o){const p=yn(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else r&&u();i&&!o&&r&&u();const f=r&&!o&&!i?Kl(r,a):Ot(0),d=s.left+a.scrollLeft-c.x-f.x,h=s.top+a.scrollTop-c.y-f.y;return{x:d,y:h,width:s.width,height:s.height}}function Yr(e){return $t(e).position==="static"}function Di(e,t){if(!zt(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Vt(e)===n&&(n=n.ownerDocument.body),n}function Zl(e,t){const n=mt(e);if(Ir(e))return n;if(!zt(e)){let r=cn(e);for(;r&&!zn(r);){if(Tt(r)&&!Yr(r))return r;r=cn(r)}return n}let o=Di(e,t);for(;o&&qf(o)&&Yr(o);)o=Di(o,t);return o&&zn(o)&&Yr(o)&&!Eo(o)?n:o||Zf(e)||n}const ch=function(e){return ee(this,null,function*(){const t=this.getOffsetParent||Zl,n=this.getDimensions,o=yield n(e.floating);return{reference:ah(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}})};function uh(e){return $t(e).direction==="rtl"}const dh={convertOffsetParentRelativeRectToViewportRelativeRect:Qf,getDocumentElement:Vt,getClippingRect:lh,getOffsetParent:Zl,getElementRects:ch,getClientRects:eh,getDimensions:sh,getScale:An,isElement:Tt,isRTL:uh};function Yl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fh(e,t){let n=null,o;const r=Vt(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:f,top:d,width:h,height:p}=u;if(a||t(),!h||!p)return;const m=fr(d),g=fr(r.clientWidth-(f+h)),w=fr(r.clientHeight-(d+p)),S=fr(f),y={rootMargin:-m+"px "+-g+"px "+-w+"px "+-S+"px",threshold:kn(0,xr(1,c))||1};let _=!0;function B(k){const M=k[0].intersectionRatio;if(M!==c){if(!_)return s();M?s(!1,M):o=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!Yl(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(B,Ve(ne({},y),{root:r.ownerDocument}))}catch(k){n=new IntersectionObserver(B,y)}n.observe(e)}return s(!0),i}function Ti(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Mo(e),f=r||i?[...u?Qn(u):[],...Qn(t)]:[];f.forEach(S=>{r&&S.addEventListener("scroll",n,{passive:!0}),i&&S.addEventListener("resize",n)});const d=u&&a?fh(u,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(S=>{let[x]=S;x&&x.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let m,g=c?yn(e):null;c&&w();function w(){const S=yn(e);g&&!Yl(g,S)&&n(),g=S,m=requestAnimationFrame(w)}return n(),()=>{var S;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d==null||d(),(S=p)==null||S.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const hh=zf,ph=Vf,mh=Lf,gh=(e,t,n)=>{const o=new Map,r=ne({platform:dh},n),i=Ve(ne({},r.platform),{_c:o});return Rf(e,t,Ve(ne({},r),{platform:i}))},kh=["id"],vh=l.defineComponent({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(e){const t=e,n=l.computed(()=>{if(t.isDark!==void 0&&t.isDark!==null)return!!t.isDark;if(typeof document!="undefined")try{if(document.documentElement.classList.contains("dark")||window!=null&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return!0}catch(c){}return!1}),o=l.ref(null),r=l.ref({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),i=l.ref(!1);let s=null;function a(){return ee(this,null,function*(){var d,h;if(!t.anchorEl||!o.value)return;const c=[hh((d=t.offset)!=null?d:8),mh(),ph({padding:8})],{x:u,y:f}=yield gh(t.anchorEl,o.value,{placement:(h=t.placement)!=null?h:"top",middleware:c,strategy:"fixed"});r.value.transform=`translate3d(${Math.round(u)}px, ${Math.round(f)}px, 0)`,r.value.left="0px",r.value.top="0px"})}return l.watch(()=>t.visible,c=>ee(null,null,function*(){if(c)if(i.value=!1,yield l.nextTick(),t.anchorEl&&o.value)try{const u=t.anchorEl.getBoundingClientRect();yield a();const f=r.value.transform;if(t.originX!=null&&t.originY!=null){const d=Math.abs(Number(t.originX)-u.left),h=Math.abs(Number(t.originY)-u.top);Math.hypot(d,h)>120?(r.value.transform=`translate3d(${Math.round(t.originX)}px, ${Math.round(t.originY)}px, 0)`,yield l.nextTick(),i.value=!0,yield l.nextTick(),r.value.transform=f):i.value=!0}else i.value=!0;s=Ti(t.anchorEl,o.value,a)}catch(u){yield a(),i.value=!0,s=Ti(t.anchorEl,o.value,a)}else i.value=!0;else i.value=!1,s&&(s(),s=null)})),l.watch([()=>t.anchorEl,()=>t.placement,()=>t.content],()=>ee(null,null,function*(){t.visible&&t.anchorEl&&o.value&&(yield l.nextTick(),yield a())})),l.onBeforeUnmount(()=>{s&&s()}),(c,u)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"tooltip",appear:""},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{id:t.id,ref_key:"tooltip",ref:o,style:l.normalizeStyle({position:"fixed",left:r.value.left,top:r.value.top,transform:r.value.transform}),class:l.normalizeClass(["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"},l.toDisplayString(e.content),15,kh),[[l.vShow,e.visible&&i.value]])]),_:1})]))}}),wh=Me(vh,[["__scopeId","data-v-993f63aa"]]),Bo=l.ref(!1),Gl=l.ref(""),Jl=l.ref("top"),Zn=l.ref(null),er=l.ref(null),Ao=l.ref(null),Do=l.ref(null),Ql=l.ref(null);let mr=null,gr=null;function es(){mr&&(clearTimeout(mr),mr=null),gr&&(clearTimeout(gr),gr=null)}let $i=!1;function yh(){if($i||typeof document=="undefined")return;$i=!0;const e=document.createElement("div");e.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(e);const t={setup(){return()=>{var n;return l.h(wh,{visible:Bo.value,"anchor-el":Zn.value,content:Gl.value,placement:Jl.value,id:er.value,originX:Ao.value,originY:Do.value,isDark:(n=Ql.value)!=null?n:void 0})}}};l.createApp(t).mount(e)}function xn(e,t,n="top",o=!1,r,i){if(!e)return;yh(),es();const s=()=>{var a,c;er.value=`tooltip-${Date.now()}-${Math.floor(Math.random()*1e3)}`,Zn.value=e,Gl.value=t,Jl.value=n,Ao.value=(a=r==null?void 0:r.x)!=null?a:null,Do.value=(c=r==null?void 0:r.y)!=null?c:null,Ql.value=typeof i=="boolean"?i:null,Bo.value=!0;try{e.setAttribute("aria-describedby",er.value)}catch(u){}};o?s():mr=setTimeout(s,80)}function Lr(e=!1){es();const t=()=>{if(Zn.value&&er.value)try{Zn.value.removeAttribute("aria-describedby")}catch(n){}Bo.value=!1,Zn.value=null,er.value=null,Ao.value=null,Do.value=null};e?t():gr=setTimeout(t,120)}let hr=null,Ni=!1;function rr(){return ee(this,null,function*(){if(hr)return hr;if(Ni)return null;try{return hr=yield import("katex"),yield import("katex/contrib/mhchem"),hr}catch(e){return Ni=!0,null}})}const Gr=l.shallowRef(!1);let Ii=null;function ts(){return Ii||(Ii=rr().then(e=>{Gr.value=!!e}).catch(()=>{Gr.value=!1})),l.readonly(Gr)}const xh=l.defineComponent({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=ts();return(n,o)=>(l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass([[l.unref(t)&&e.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},l.toDisplayString(e.node.content),3))}}),Xe=Me(xh,[["__scopeId","data-v-56f30838"]]);Xe.install=e=>{e.component(Xe.__name,Xe)};const jt=l.defineAsyncComponent(()=>ee(null,null,function*(){var t,n;if(typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((n=(t=globalThis.process)==null?void 0:t.env)==null?void 0:n.NODE_ENV)==="test")return o=>{var r,i;return l.h(Xe,Ve(ne({},o),{node:Ve(ne({},o.node),{content:(i=o.node.raw)!=null?i:`$${(r=o.node.content)!=null?r:""}$`})}))};try{if(yield rr())return(yield Promise.resolve().then(()=>gm)).default}catch(o){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',o)}return o=>{var r,i;return l.h(Xe,Ve(ne({},o),{node:Ve(ne({},o.node),{content:(i=o.node.raw)!=null?i:`$${(r=o.node.content)!=null?r:""}$`})}))}})),bh=l.defineAsyncComponent(()=>ee(null,null,function*(){try{if(yield rr())return(yield Promise.resolve().then(()=>hm)).default}catch(e){console.warn('[markstream-vue] 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 l.h(Xe,Ve(ne({},e),{node:Ve(ne({},e.node),{content:(n=e.node.raw)!=null?n:`$$${(t=e.node.content)!=null?t:""}$$`})}))}})),nt=l.defineComponent({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("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]=o=>t.$emit("click",o,e.node.id,e.messageId,e.threadId)),onMouseenter:n[1]||(n[1]=o=>t.$emit("mouseEnter",o,e.node.id,e.messageId,e.threadId)),onMouseleave:n[2]||(n[2]=o=>t.$emit("mouseLeave",o,e.node.id,e.messageId,e.threadId))},l.toDisplayString(e.node.id),33))}});nt.install=e=>{e.component(nt.__name,nt)};const _h={class:"superscript-node"},Ch={key:1},Eh=l.defineComponent({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:gt,footnote_reference:at,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,emoji:et,math_inline:jt,reference:nt},pt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("sup",_h,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${e.indexKey||"superscript"}-${s}`},[n[i.type]?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:0,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${s}`},null,8,["node","custom-id","index-key"])):(l.openBlock(),l.createElementBlock("span",Ch,l.toDisplayString(i.content||i.raw),1))],64))),128))]))}}),ct=Me(Eh,[["__scopeId","data-v-0ca396bb"]]);ct.install=e=>{e.component(ct.__name,ct)};const Sh={class:"subscript-node"},Mh={key:1},Bh=l.defineComponent({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:gt,footnote_reference:at,strikethrough:ot,highlight:ft,insert:dt,superscript:ct,emoji:et,math_inline:jt,reference:nt},pt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("sub",Sh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${e.indexKey||"subscript"}-${s}`},[n[i.type]?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:0,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${s}`},null,8,["node","custom-id","index-key"])):(l.openBlock(),l.createElementBlock("span",Mh,l.toDisplayString(i.content||i.raw),1))],64))),128))]))}}),ut=Me(Bh,[["__scopeId","data-v-5e1f04df"]]);ut.install=e=>{e.component(ut.__name,ut)};const Ah={class:"strong-node"},Dh=l.defineComponent({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,emphasis:gt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:jt,reference:nt},pt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("strong",Ah,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"strong"}-${s}`,"index-key":`${e.indexKey||"strong"}-${s}`,node:i,"custom-id":t.customId},null,8,["index-key","node","custom-id"]))),128))]))}}),rt=Me(Dh,[["__scopeId","data-v-53b6c7df"]]);rt.install=e=>{e.component(rt.__name,rt)};const Th={class:"strikethrough-node"},$h=l.defineComponent({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:gt,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:jt,reference:nt},pt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("del",Th,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"strikethrough"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),ot=Me($h,[["__scopeId","data-v-3716d25c"]]);ot.install=e=>{e.component(ot.__name,ot)};const Nh=["href","title","aria-label","aria-hidden"],Ih=["aria-hidden"],Fh={class:"link-text-wrapper relative inline-flex"},Rh={class:"leading-[normal] link-text"},Lh={class:"leading-[normal] link-text"},Ph=l.defineComponent({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,n=l.computed(()=>{var c,u,f,d,h,p;const a=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px";return{"--link-color":(c=t.color)!=null?c:"#0366d6","--underline-height":`${(u=t.underlineHeight)!=null?u:2}px`,"--underline-bottom":a,"--underline-opacity":String((f=t.animationOpacity)!=null?f:.9),"--underline-duration":`${(d=t.animationDuration)!=null?d:.8}s`,"--underline-timing":(h=t.animationTiming)!=null?h:"linear","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(p=t.animationIteration)!=null?p:"infinite"}}),o={text:Xe,strong:rt,strikethrough:ot,emphasis:gt},r=l.useAttrs();function i(a){var d,h,p,m,g,w;if(!t.showTooltip)return;const c=a,u=(c==null?void 0:c.clientX)!=null&&(c==null?void 0:c.clientY)!=null?{x:c.clientX,y:c.clientY}:void 0,f=(w=(g=(p=(d=t.node)==null?void 0:d.href)!=null?p:(h=t.node)==null?void 0:h.title)!=null?g:(m=t.node)==null?void 0:m.text)!=null?w:"";xn(a.currentTarget,f,"top",!1,u)}function s(){t.showTooltip&&Lr()}return(a,c)=>{var u,f,d,h;return e.node.loading?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},l.unref(r),{style:n.value}),[l.createElementVNode("span",Fh,[l.createElementVNode("span",Rh,[l.createElementVNode("span",Lh,l.toDisplayString(e.node.text),1)]),c[1]||(c[1]=l.createElementVNode("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,Ih)):(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,class:"link-node",href:e.node.href,title:t.showTooltip?void 0:String((f=(u=e.node.href)!=null?u:e.node.title)!=null?f:""),"aria-label":`Link: ${(h=(d=e.node.href)!=null?d:e.node.title)!=null?h:e.node.text}`,"aria-hidden":e.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},l.unref(r),{style:n.value,onMouseenter:c[0]||(c[0]=p=>i(p)),onMouseleave:s}),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(p,m)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o[p.type]),{key:`${e.indexKey||"emphasis"}-${m}`,node:p,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${m}`},null,8,["node","custom-id","index-key"]))),128))],16,Nh))}}}),it=Me(Ph,[["__scopeId","data-v-95c2e66f"]]);it.install=e=>{e.component(it.__name,it)};const Oh={class:"insert-node"},zh=l.defineComponent({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:gt,strikethrough:ot,highlight:ft,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:jt,reference:nt},pt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("ins",Oh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"insert"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),dt=Me(zh,[["__scopeId","data-v-b8737de3"]]);dt.install=e=>{e.component(dt.__name,dt)};const Vh={class:"highlight-node"},jh=l.defineComponent({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,emphasis:gt,strikethrough:ot,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:jt,reference:nt},pt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("mark",Vh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"highlight"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),ft=Me(jh,[["__scopeId","data-v-fc52b444"]]);ft.install=e=>{e.component(ft.__name,ft)};const Hh={class:"emphasis-node"},qh=l.defineComponent({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,strong:rt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,footnote_reference:at,math_inline:jt,reference:nt},pt(t.customId));return(o,r)=>(l.openBlock(),l.createElementBlock("em",Hh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"emphasis"}-${s}`,node:i,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),gt=Me(qh,[["__scopeId","data-v-c25e2822"]]);gt.install=e=>{e.component(gt.__name,gt)};const Wh=["id"],Uh={class:"font-semibold mr-2 text-[#0366d6]"},Kh={class:"flex-1"},Dn=l.defineComponent({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",{id:`footnote-${e.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[l.createElementVNode("span",Uh,"["+l.toDisplayString(e.node.id)+"]",1),l.createElementVNode("div",Kh,[l.withMemo([e.node.children],()=>l.createVNode(l.unref(st),{"index-key":`footnote-${e.indexKey}`,nodes:e.node.children,typewriter:e.typewriter,onCopy:n[0]||(n[0]=o=>t.$emit("copy",o))},null,8,["index-key","nodes","typewriter"]),n,1)])],8,Wh))}});Dn.install=e=>{e.component(Dn.__name,Dn)};const Xh={class:"hard-break"},Zh=l.defineComponent({__name:"HardBreakNode",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("br",Xh))}}),rn=Me(Zh,[["__scopeId","data-v-50c58f70"]]);rn.install=e=>{e.component(rn.__name,rn)};function Yh(e){return(e.split(".").pop()||e).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,n=>n.toUpperCase()).trim()}const ns={"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 Gh(e){Object.assign(ns,e)}function Pr(){try{const t=globalThis.$vueI18nUse||null;if(t&&typeof t=="function")try{const n=t();if(n&&typeof n.t=="function")return{t:n.t.bind(n)}}catch(n){}}catch(t){}const e=t=>{var n;return(n=ns[t])!=null?n:Yh(t)};return ee(null,null,function*(){try{const t=yield import("vue-i18n"),n=t.useI18n||t.default&&t.default.useI18n;if(n&&typeof n=="function")try{const o=n();if(o&&typeof o.t=="function")try{globalThis.$vueI18nUse=()=>o}catch(r){}}catch(o){}}catch(t){}}),{t:e}}const rs=Symbol("ViewportPriority");function Jh(e,t){const n=typeof window!="undefined"&&typeof document!="undefined",o=typeof t=="boolean"?l.ref(t):t;let r=null;const i=new WeakMap;function s(){var u;if(r||!n)return r;if(typeof IntersectionObserver=="undefined")return null;const c=(u=e())!=null?u:null;return r=new IntersectionObserver(f=>{for(const d of f){const h=i.get(d.target);if(!h)continue;if(d.isIntersecting||d.intersectionRatio>0){if(!h.visible.value){h.visible.value=!0;try{h.resolve()}catch(m){}}r==null||r.unobserve(d.target),i.delete(d.target)}}},{root:c,rootMargin:"300px",threshold:0}),r}const a=(c,u)=>{const f=l.ref(!1);let d=!1,h;const p=new Promise(w=>{h=()=>{d||(d=!0,w())}}),m=()=>{try{r==null||r.unobserve(c)}catch(w){}i.delete(c)};if(!n||!o.value)return f.value=!0,h(),{isVisible:f,whenVisible:p,destroy:m};const g=s();return g?(i.set(c,{resolve:h,visible:f}),g.observe(c),{isVisible:f,whenVisible:p,destroy:m}):(f.value=!0,h(),{isVisible:f,whenVisible:p,destroy:m})};return l.provide(rs,a),a}function Hn(){const e=l.inject(rs,void 0);if(e)return e;const t=new WeakMap;let n=null;const o=()=>n||(typeof window=="undefined"||typeof IntersectionObserver=="undefined"?null:(n=new IntersectionObserver(i=>{for(const s of i){const a=t.get(s.target);if(!a)continue;if(s.isIntersecting||s.intersectionRatio>0){if(!a.visible.value){a.visible.value=!0;try{a.resolve()}catch(u){}}n==null||n.unobserve(s.target),t.delete(s.target)}}},{root:null,rootMargin:"300px",threshold:0}),n));return i=>{const s=l.ref(!1);let a=!1,c;const u=new Promise(h=>{c=()=>{a||(a=!0,h())}}),f=()=>{try{n==null||n.unobserve(i)}catch(h){}t.delete(i)},d=o();return d?(t.set(i,{resolve:c,visible:s}),d.observe(i),{isVisible:s,whenVisible:u,destroy:f}):(s.value=!0,c(),{isVisible:s,whenVisible:u,destroy:f})}}const Qh={class:"relative inline-block"},e1=["src","alt","title","loading","tabindex","aria-label"],t1={class:"text-sm whitespace-nowrap"},n1={key:1,class:"text-sm text-gray-500"},r1={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},o1={class:"text-sm whitespace-nowrap"},i1={key:0,class:"mt-2 text-sm text-gray-500 italic"},l1=l.defineComponent({__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=l.ref(!1),i=l.ref(!1),s=l.ref(!1),a=l.ref(null),c=Hn(),u=l.ref(null),f=l.ref(typeof window=="undefined");typeof window!="undefined"&&l.watch(()=>a.value,x=>{var _;if((_=u.value)==null||_.destroy(),u.value=null,!x){f.value=!1;return}const y=c(x,{rootMargin:"400px"});u.value=y,f.value=y.isVisible.value,y.whenVisible.then(()=>{f.value=!0})},{immediate:!0}),l.onBeforeUnmount(()=>{var x;(x=u.value)==null||x.destroy(),u.value=null});const d=l.computed(()=>i.value&&n.fallbackSrc?n.fallbackSrc:n.node.src),h=l.computed(()=>!n.lazy||f.value),p=l.computed(()=>/\.svg(?:\?|$)/i.test(d.value));function m(){n.fallbackSrc&&!s.value?(s.value=!0,i.value=!0):(i.value=!0,o("error",n.node.src))}function g(){r.value=!0,i.value=!1,o("load",d.value)}function w(x){x.preventDefault(),!(!r.value||i.value)&&o("click",[x,d.value])}const{t:S}=Pr();return l.watch(d,()=>{r.value=!1,i.value=!1}),(x,y)=>(l.openBlock(),l.createElementBlock("figure",{ref_key:"figureRef",ref:a,class:"text-center my-8"},[l.createElementVNode("div",Qh,[l.createVNode(l.Transition,{name:"img-switch",mode:"out-in"},{default:l.withCtx(()=>{var _,B,k,M,b;return[!e.node.loading&&!i.value&&h.value?(l.openBlock(),l.createElementBlock("img",{key:"image",src:d.value,alt:String((B=(_=n.node.alt)!=null?_:n.node.title)!=null?B:""),title:String((M=(k=n.node.title)!=null?k:n.node.alt)!=null?M:""),class:l.normalizeClass(["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:l.normalizeStyle(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":(b=n.node.alt)!=null?b:l.unref(S)("image.preview"),onError:m,onLoad:g,onClick:w},null,46,e1)):i.value?!e.node.loading&&!n.fallbackSrc?(l.openBlock(),l.createElementBlock("div",r1,[l.renderSlot(x.$slots,"error",{node:n.node,displaySrc:d.value,imageLoaded:r.value,hasError:i.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:p.value},()=>[y[1]||(y[1]=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[l.createElementVNode("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)),l.createElementVNode("span",o1,l.toDisplayString(l.unref(S)("image.loadError")),1)],!0)])):l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:"placeholder",class:"placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",style:l.normalizeStyle(p.value?{minHeight:n.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[n.usePlaceholder?l.renderSlot(x.$slots,"placeholder",{key:0,node:n.node,displaySrc:d.value,imageLoaded:r.value,hasError:i.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:p.value},()=>[y[0]||(y[0]=l.createElementVNode("div",{class:"w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin","aria-hidden":"true"},null,-1)),l.createElementVNode("span",t1,l.toDisplayString(l.unref(S)("image.loading")),1)],!0):(l.openBlock(),l.createElementBlock("span",n1,l.toDisplayString(e.node.raw),1))],4))]}),_:3})]),n.showCaption&&n.node.alt?(l.openBlock(),l.createElementBlock("figcaption",i1,l.toDisplayString(n.node.alt),1)):l.createCommentVNode("",!0)],512))}}),on=Me(l1,[["__scopeId","data-v-7ca79b66"]]);on.install=e=>{e.component(on.__name,on)};const s1=l.defineComponent({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({text:Xe,inline_code:tt,link:it,image:on,strong:rt,emphasis:gt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,checkbox:Dt,checkbox_input:Dt,footnote_reference:at,hardbreak:rn,math_inline:jt,reference:nt},pt(t.customId));return(o,r)=>l.withMemo([e.node.children],()=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(`h${e.node.level}`),{class:l.normalizeClass(["heading-node",[`heading-${e.node.level}`]]),dir:"auto"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(i,s,a,c)=>{const u=[i];if(c&&c.key===`${e.indexKey||"heading"}-${s}`&&l.isMemoSame(c,u))return c;const f=(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[i.type]),{key:`${e.indexKey||"heading"}-${s}`,"custom-id":t.customId,node:i,"index-key":`${e.indexKey||"heading"}-${s}`},null,8,["custom-id","node","index-key"]));return f.memo=u,f},r,0),128))]),_:1},8,["class"])),r,2)}}),ao=Me(s1,[["__scopeId","data-v-d8e179e9"]]),Or=ao;Or.install=e=>{e.component(ao.__name,ao)};const a1=l.defineComponent({__name:"ListItemNode",props:{item:{},indexKey:{},value:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=l.computed(()=>t.value==null?{}:{value:t.value});return(o,r)=>(l.openBlock(),l.createElementBlock("li",l.mergeProps({class:"list-item pl-1.5 my-2",dir:"auto"},n.value),[l.withMemo([t.item.children],()=>l.createVNode(l.unref(st),{"index-key":`list-item-${t.indexKey}`,nodes:t.item.children,typewriter:t.typewriter,"batch-rendering":!1,onCopy:r[0]||(r[0]=i=>o.$emit("copy",i))},null,8,["index-key","nodes","typewriter"]),r,1)],16))}}),Tn=Me(a1,[["__scopeId","data-v-e7aa2cc3"]]);Tn.install=e=>{e.component(Tn.__name,Tn)};const c1=l.defineComponent({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){return(t,n)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.node.ordered?"ol":"ul"),{class:l.normalizeClass(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.items,(o,r,i,s)=>{var u;const a=[o];if(s&&s.key===`${e.indexKey||"list"}-${r}`&&l.isMemoSame(s,a))return s;const c=(l.openBlock(),l.createBlock(l.unref(Tn),{key:`${e.indexKey||"list"}-${r}`,item:o,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${r}`,typewriter:e.typewriter,value:e.node.ordered?((u=e.node.start)!=null?u:1)+r:void 0,onCopy:n[0]||(n[0]=f=>t.$emit("copy",f))},null,8,["item","custom-id","index-key","typewriter","value"]));return c.memo=a,c},n,1),128))]),_:1},8,["class"]))}}),$n=Me(c1,[["__scopeId","data-v-79057d57"]]);$n.install=e=>{e.component($n.__name,$n)};const u1="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 Xn(e){try{if(typeof globalThis!="undefined"&&typeof globalThis.requestAnimationFrame=="function")return globalThis.requestAnimationFrame(e)}catch(t){}return globalThis.setTimeout(e,0)}let Ye=null,ln=null;const Ue=new Map,d1=5;let Er=d1,co=!1;function f1(e){co=!!e}function h1(e){Number.isFinite(e)&&e>0&&(Er=Math.floor(e))}function p1(){return{inFlight:Ue.size,max:Er}}const os="WORKER_BUSY";function m1(e){Ye=e,ln=null;const t=e;Ye.onmessage=n=>{if(Ye!==t)return;const{id:o,ok:r,result:i,error:s}=n.data,a=Ue.get(o);a&&(r===!1||s?a.reject(new Error(s||"Unknown error")):a.resolve(i))},Ye.onerror=n=>{var o,r;if(Ye===t){if(Ue.size===0){(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker error (no pending):",(n==null?void 0:n.message)||n);return}try{co?console.error("[mermaidWorkerClient] Worker error:",(n==null?void 0:n.message)||n):(r=console.debug)==null||r.call(console,"[mermaidWorkerClient] Worker error:",(n==null?void 0:n.message)||n)}catch(i){}for(const[i,s]of Ue.entries())s.reject(new Error(`Worker error: ${n.message}`));Ue.clear()}},Ye.onmessageerror=n=>{var o,r;if(Ye===t){if(Ue.size===0){(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",n);return}try{co?console.error("[mermaidWorkerClient] Worker messageerror:",n):(r=console.debug)==null||r.call(console,"[mermaidWorkerClient] Worker messageerror:",n)}catch(i){}for(const[i,s]of Ue.entries())s.reject(new Error("Worker messageerror"));Ue.clear()}}}function g1(){var e;if(Ye)try{for(const[t,n]of Ue.entries())n.reject(new Error("Worker cleared"));Ue.clear(),(e=Ye.terminate)==null||e.call(Ye)}catch(t){}Ye=null,ln=null}function k1(){return Ye||(ln=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),ln.name="WorkerInitError",ln.code="WORKER_INIT_ERROR",null)}function is(e,t,n=1400){if(ln)return Promise.reject(ln);const o=k1();if(!o)return Promise.reject(ln);if(Ue.size>=Er){const r=new Error("Worker busy");return r.name="WorkerBusy",r.code=os,r.inFlight=Ue.size,r.max=Er,Promise.reject(r)}return new Promise((r,i)=>{const s=Math.random().toString(36).slice(2);let a=!1,c;const u=()=>{a||(a=!0,c!=null&&globalThis.clearTimeout(c),Ue.delete(s))},f={resolve:d=>{u(),r(d)},reject:d=>{u(),i(d)}};Ue.set(s,f);try{o.postMessage({id:s,action:e,payload:t})}catch(d){Ue.delete(s),i(d);return}c=globalThis.setTimeout(()=>{const d=new Error("Worker call timed out");d.name="WorkerTimeout",d.code="WORKER_TIMEOUT";const h=Ue.get(s);h&&h.reject(d)},n)})}function ls(e,t,n=1400){return ee(this,null,function*(){try{return yield is("canParse",{code:e,theme:t},n)}catch(o){return Promise.reject(o)}})}function ss(e,t,n=1400){return ee(this,null,function*(){try{return yield is("findPrefix",{code:e,theme:t},n)}catch(o){return Promise.reject(o)}})}function uo(){if(Ye)try{for(const[e,t]of Ue.entries())t.reject(new Error("Worker terminated"));Ue.clear(),Ye.terminate()}finally{Ye=null}}let Ze=null;function v1(){return ee(this,null,function*(){if(Ze)return Ze;try{const e=yield import("mermaid"),t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))Ze=t;else if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const n=t.mermaidAPI;Ze=Ve(ne({},t),{render:n.render.bind(n),parse:n.parse?n.parse.bind(n):void 0,initialize:o=>typeof t.initialize=="function"?t.initialize(o):n.initialize?n.initialize(o):void 0})}else e.mermaid&&typeof e.mermaid.render=="function"?Ze=e.mermaid:Ze=t}catch(e){throw new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.')}try{const e=Ze==null?void 0:Ze.initialize;Ze.initialize=t=>{const n=ne({suppressErrorRendering:!0},t||{});if(typeof e=="function")return e.call(Ze,n);if(Ze!=null&&Ze.mermaidAPI&&typeof Ze.mermaidAPI.initialize=="function")return Ze.mermaidAPI.initialize(n)}}catch(e){}return Ze})}const w1={key:0},y1={key:1,class:"flex items-center space-x-2"},x1=["src"],b1={key:2},_1={class:"flex items-center space-x-1"},C1={class:"flex items-center space-x-1"},E1={key:4},S1={key:5,class:"flex items-center space-x-1"},M1=["aria-pressed"],B1={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"},A1={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"},D1=["disabled"],T1=["disabled"],$1={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"},N1={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"},I1={key:1,class:"relative"},F1={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},R1={class:"flex items-center gap-2 backdrop-blur rounded-lg"},L1={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},P1=300,O1=500,z1=l.defineComponent({__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},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0}},emits:["copy","export","openModal","toggleMode"],setup(e,{emit:t}){var qn,Wn;const n=e,o=t,{t:r}=Pr();let i=null;const s=l.ref(!1);typeof window!="undefined"&&ee(null,null,function*(){var $;i=yield v1(),s.value=!!i,($=i==null?void 0:i.initialize)==null||$.call(i,{startOnLoad:!1,securityLevel:"loose"})});const a=l.ref(!1),c=l.ref(!1),u=l.ref(),f=l.ref(),d=l.ref(),h=l.ref(),p=l.ref(null),m=Hn(),g=l.ref(null),w=l.ref(typeof window=="undefined"),S=l.ref(),x=l.computed(()=>n.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode"));function y($){const E=x.value,X=`%%{init: {"theme": "${$==="dark"?"dark":"default"}"}}%%
|
|
74
|
+
`;return E.trim().startsWith("%%{")?E:X+E}const _=l.ref(1),B=l.ref(0),k=l.ref(0),M=l.ref(!1),b=l.ref({x:0,y:0}),T=l.ref(!1),H=l.ref(!1),L=l.ref(!1),P=l.ref(null),W=l.ref(0),K=l.ref(!1);let O=null;const F=l.ref("360px");let V=null;const j=l.ref(!1),Y=l.ref(!1),J=l.ref({}),te=l.ref(null),re=l.ref(""),_e=l.ref(0);let he=null;const pe=l.ref(!1),ie=l.ref({zoom:1,translateX:0,translateY:0,containerHeight:"360px"}),z=l.computed(()=>{var $,E,I,X;return{worker:($=n.workerTimeoutMs)!=null?$:1400,parse:(E=n.parseTimeoutMs)!=null?E:1800,render:(I=n.renderTimeoutMs)!=null?I:2500,fullRender:(X=n.fullRenderTimeoutMs)!=null?X:4e3}}),R=(qn=globalThis.cancelIdleCallback)!=null?qn:($=>clearTimeout($));let q=null,Q=null,oe=!1,Ce=800,ge=null,Ie=0,je=!0;typeof window!="undefined"&&l.watch(()=>u.value,$=>{var I;if((I=g.value)==null||I.destroy(),g.value=null,!$){w.value=!1;return}const E=m($,{rootMargin:"400px"});g.value=E,w.value=E.isVisible.value,E.whenVisible.then(()=>{w.value=!0})},{immediate:!0}),l.onBeforeUnmount(()=>{var $;($=g.value)==null||$.destroy(),g.value=null});function Fe($,E){const I=E==null?void 0:E.timeoutMs,X=E==null?void 0:E.signal;if(X!=null&&X.aborted)return Promise.reject(new DOMException("Aborted","AbortError"));let ce=null,fe=!1,we=null;return new Promise((Se,Je)=>{const Re=()=>{ce!=null&&clearTimeout(ce),we&&X&&X.removeEventListener("abort",we)};I&&I>0&&(ce=globalThis.setTimeout(()=>{fe||(fe=!0,Re(),Je(new Error("Operation timed out")))},I)),X&&(we=()=>{fe||(fe=!0,Re(),Je(new DOMException("Aborted","AbortError")))},X.addEventListener("abort",we)),$().then(Wt=>{fe||(fe=!0,Re(),Se(Wt))}).catch(Wt=>{fe||(fe=!0,Re(),Je(Wt))})})}function Oe($){if(typeof document=="undefined"||!d.value)return;const E=document.createElement("div");E.className="text-red-500 p-4",E.textContent="Failed to render diagram: ";const I=document.createElement("span");I.textContent=$ instanceof Error?$.message:"Unknown error",E.appendChild(I),d.value.innerHTML="",d.value.appendChild(E),F.value="360px",pe.value=!0,Et()}function De($){const E=$;return!E||E.disabled}function ae($,E,I="top"){if(De($.currentTarget))return;const X=$,ce=(X==null?void 0:X.clientX)!=null&&(X==null?void 0:X.clientY)!=null?{x:X.clientX,y:X.clientY}:void 0;xn($.currentTarget,E,I,!1,ce,n.isDark)}function me(){Lr()}function He($){if(De($.currentTarget))return;const E=a.value?r("common.copied")||"Copied":r("common.copy")||"Copy",I=$,X=(I==null?void 0:I.clientX)!=null&&(I==null?void 0:I.clientY)!=null?{x:I.clientX,y:I.clientY}:void 0;xn($.currentTarget,E,"top",!1,X,n.isDark)}function vt($,E){const X=`%%{init: {"theme": "${E==="dark"?"dark":"default"}"}}%%
|
|
75
|
+
`;return $.trimStart().startsWith("%%{")?$:X+$}function wt(){return je&&!T.value&&!j.value&&!pe.value}function ze($){const E=$.split(/\r?\n/);for(;E.length>0;){const X=E[E.length-1].trimEnd();if(X===""){E.pop();continue}if(/^[-=~>|<\s]+$/.test(X.trim())||/(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(X)||/[-|><]$/.test(X)||/(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(X)){E.pop();continue}break}return E.join(`
|
|
76
|
+
`)}function yt($,E,I){return ee(this,null,function*(){var we,Se;if(!i)return;const X=i,ce=vt($,E);if(typeof X.parse=="function")return yield Fe(()=>X.parse(ce),{timeoutMs:(we=I==null?void 0:I.timeoutMs)!=null?we:z.value.parse,signal:I==null?void 0:I.signal}),!0;const fe=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield Fe(()=>i.render(fe,ce),{timeoutMs:(Se=I==null?void 0:I.timeoutMs)!=null?Se:z.value.render,signal:I==null?void 0:I.signal}),!0})}function Ge($,E,I){return ee(this,null,function*(){var X;try{return yield ls($,E,(X=I==null?void 0:I.timeoutMs)!=null?X:z.value.worker)}catch(ce){return yield yt($,E,I)}})}function Ht($,E,I){return ee(this,null,function*(){var ce;try{if(yield Ge($,E,I))return{fullOk:!0,prefixOk:!1}}catch(fe){if((fe==null?void 0:fe.name)==="AbortError")throw fe}let X=ze($);if(X&&X.trim()&&X!==$)try{try{const we=yield ss($,E,(ce=I==null?void 0:I.timeoutMs)!=null?ce:z.value.worker);we&&we.trim()&&(X=we)}catch(we){}if(yield Ge(X,E,I))return{fullOk:!1,prefixOk:!0,prefix:X}}catch(fe){if((fe==null?void 0:fe.name)==="AbortError")throw fe}return{fullOk:!1,prefixOk:!1}})}const xt=l.computed(()=>T.value||L.value||c.value);function bt($){if(!u.value||!d.value)return;const E=d.value.querySelector("svg");if(!E)return;let I=0,X=0;const ce=E.getAttribute("viewBox"),fe=E.getAttribute("width"),we=E.getAttribute("height");if(ce){const Se=ce.split(" ");Se.length===4&&(I=Number.parseFloat(Se[2]),X=Number.parseFloat(Se[3]))}if((!I||!X)&&fe&&we&&(I=Number.parseFloat(fe),X=Number.parseFloat(we)),Number.isNaN(I)||Number.isNaN(X)||I<=0||X<=0)try{const Se=E.getBBox();Se&&Se.width>0&&Se.height>0&&(I=Se.width,X=Se.height)}catch(Se){console.error("Failed to get SVG BBox:",Se);return}if(I>0&&X>0){const Se=X/I;let Re=($!=null?$:u.value.clientWidth)*Se;Re>X&&(Re=X),F.value=`${Re}px`}}const Qe=l.ref(!1),Nt=l.computed(()=>({transform:`translate(${B.value}px, ${k.value}px) scale(${_.value})`}));function _t($){$.key==="Escape"&&Qe.value&&Ct()}function It(){if(Qe.value=!0,typeof document!="undefined")try{document.body.style.overflow="hidden"}catch($){}if(typeof window!="undefined")try{window.addEventListener("keydown",_t)}catch($){}l.nextTick(()=>{if(u.value&&h.value){const $=u.value.cloneNode(!0);$.classList.add("fullscreen");const E=$.querySelector("[data-mermaid-wrapper]");E&&(p.value=E,E.style.transform=Nt.value.transform),h.value.innerHTML="",h.value.appendChild($)}})}function Ct(){if(Qe.value=!1,h.value&&(h.value.innerHTML=""),p.value=null,typeof document!="undefined")try{document.body.style.overflow=""}catch($){}if(typeof window!="undefined")try{window.removeEventListener("keydown",_t)}catch($){}}function N($,E){let I=null;return(...X)=>{I&&clearTimeout(I),I=setTimeout(()=>$(...X),E)}}function v(){if(!T.value||!s.value)return;const $=x.value.length;$!==W.value&&(K.value=!0,W.value=$,O&&clearTimeout(O),O=setTimeout(()=>{K.value&&T.value&&x.value.trim()&&(K.value=!1,Rt("preview"))},O1))}l.watch(Nt,$=>{Qe.value&&p.value&&(p.value.style.transform=$.transform)},{immediate:!0});function C(){_.value<3&&(_.value+=.1)}function D(){_.value>.5&&(_.value-=.1)}function G(){_.value=1,B.value=0,k.value=0}function U($){M.value=!0,$ instanceof MouseEvent?b.value={x:$.clientX-B.value,y:$.clientY-k.value}:b.value={x:$.touches[0].clientX-B.value,y:$.touches[0].clientY-k.value}}function ke($){if(!M.value)return;let E,I;$ instanceof MouseEvent?(E=$.clientX,I=$.clientY):(E=$.touches[0].clientX,I=$.touches[0].clientY),B.value=E-b.value.x,k.value=I-b.value.y}function ve(){M.value=!1}function ye($){if($.ctrlKey||$.metaKey){if($.preventDefault(),!u.value)return;const E=u.value.getBoundingClientRect(),I=$.clientX-E.left,X=$.clientY-E.top,ce=E.width/2,fe=E.height/2,we=I-ce,Se=X-fe,Je=(we-B.value)/_.value,Re=(Se-k.value)/_.value,A=-$.deltaY*.01,be=Math.min(Math.max(_.value+A,.5),3);be!==_.value&&(B.value=we-Je*be,k.value=Se-Re*be,_.value=be)}}function de(){return ee(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(x.value)),a.value=!0,o("copy",x.value),setTimeout(()=>{a.value=!1},1e3)}catch($){console.error("Failed to copy:",$)}})}function Ee($){return ee(this,null,function*(){try{const E=new XMLSerializer().serializeToString($),I=new Blob([E],{type:"image/svg+xml;charset=utf-8"}),X=URL.createObjectURL(I);if(typeof document!="undefined"){const ce=document.createElement("a");ce.href=X,ce.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(ce),ce.click(),document.body.removeChild(ce)}catch(fe){}URL.revokeObjectURL(X)}}catch(E){console.error("Failed to export SVG:",E)}})}function xe(){var I;const $=(I=d.value)==null?void 0:I.querySelector("svg");if(!$){console.error("SVG element not found");return}const E={payload:{type:"export"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:$};o("export",E),E.defaultPrevented||Ee($)}function Ft(){var I,X;const $=(X=(I=d.value)==null?void 0:I.querySelector("svg"))!=null?X:null,E={payload:{type:"open-modal"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:$};o("openModal",E),E.defaultPrevented||It()}function Mt($){const E={payload:{type:"toggle-mode",target:$},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};o("toggleMode",$,E),E.defaultPrevented||Rt($)}function Rt($){return ee(this,null,function*(){const E=S.value;if(!E){H.value=!0,T.value=$==="source";return}const I=E.getBoundingClientRect().height;E.style.height=`${I}px`,E.style.overflow="hidden",H.value=!0,T.value=$==="source",yield l.nextTick();const X=E.scrollHeight;E.style.transition="height 180ms ease",E.offsetHeight,E.style.height=`${X}px`;const ce=()=>{E.style.transition="",E.style.height="",E.style.overflow="",E.removeEventListener("transitionend",fe)};function fe(){ce()}E.addEventListener("transitionend",fe),setTimeout(()=>ce(),220)})}function $e(){return ee(this,null,function*(){if(L.value)return P.value;if(!d.value&&(yield l.nextTick(),!d.value)){console.warn("Mermaid container not ready");return}return L.value=!0,P.value=ee(null,null,function*(){var $;if(i){d.value&&(d.value.style.opacity="0");try{const E=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;!j.value&&!Y.value&&(($=i.initialize)==null||$.call(i,{securityLevel:"loose",startOnLoad:!1}));const I=n.isDark?"dark":"light",X=y(I),ce=yield Fe(()=>i.render(E,X),{timeoutMs:z.value.fullRender}),fe=ce==null?void 0:ce.svg,we=ce==null?void 0:ce.bindFunctions;if(d.value){d.value.innerHTML=fe,we==null||we(d.value),!j.value&&!Y.value&&(bt(),j.value=!0,ie.value={zoom:_.value,translateX:B.value,translateY:k.value,containerHeight:F.value});const Se=n.isDark?"dark":"light";J.value[Se]=fe,Y.value&&(Y.value=!1),pe.value=!1}}catch(E){console.error("Failed to render mermaid diagram:",E),n.loading===!1&&Oe(E)}finally{yield l.nextTick(),d.value&&(d.value.style.opacity="1"),L.value=!1,P.value=null}}}),P.value})}function qe($){return ee(this,null,function*(){if(wt()&&!(!d.value&&(yield l.nextTick(),!d.value))&&!L.value){L.value=!0;try{if(!i)return;const E=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,I=n.isDark?"dark":"light",X=ze($),ce=X&&X.trim()?X:$,fe=vt(ce,I);d.value&&(d.value.style.opacity="0");const we=yield Fe(()=>i.render(E,fe),{timeoutMs:z.value.render}),Se=we==null?void 0:we.svg,Je=we==null?void 0:we.bindFunctions;d.value&&Se&&(d.value.innerHTML=Se,Je==null||Je(d.value),bt())}catch(E){}finally{yield l.nextTick(),d.value&&(d.value.style.opacity="1"),L.value=!1}}})}const Zt=(Wn=globalThis.requestIdleCallback)!=null?Wn:(($,E)=>setTimeout(()=>$({didTimeout:!0}),16));function Lt(){return ee(this,null,function*(){var Se,Je;const $=Date.now(),E=++_e.value;he&&he.abort(),he=new AbortController;const I=he.signal,X=n.isDark?"dark":"light",ce=x.value,fe=ce.replace(/\s+/g,"");if(!ce.trim()){d.value&&(d.value.innerHTML=""),te.value=null,re.value="",pe.value=!1;return}if(fe===re.value)return;try{const Re=yield Ht(ce,X,{signal:I,timeoutMs:z.value.worker});if(Re.fullOk){yield $e(),_e.value===E&&(te.value=(Je=(Se=d.value)==null?void 0:Se.innerHTML)!=null?Je:null,re.value=fe,pe.value=!1);return}const Wt=Ie&&$<=Ie;if(Re.prefixOk&&Re.prefix&&wt()&&!Wt){yield qe(Re.prefix);return}}catch(Re){if((Re==null?void 0:Re.name)==="AbortError")return}if(_e.value!==E||pe.value)return;const we=J.value[X];we&&d.value&&(d.value.innerHTML=we)})}const Bt=N(()=>{Zt(()=>{Lt()},{timeout:500})},P1);function Et(){oe&&(oe=!1,Ce=800,je=!1,ge&&(ge.abort(),ge=null),q&&(globalThis.clearTimeout(q),q=null),Q&&(R(Q),Q=null),Ie=Date.now())}function qt(){if(Et(),he){try{he.abort()}catch($){}he=null}if(ge){try{ge.abort()}catch($){}ge=null}uo()}function Yt($=800){oe&&(q&&globalThis.clearTimeout(q),q=globalThis.setTimeout(()=>{Q=Zt(()=>ee(null,null,function*(){if(!oe)return;if(T.value||j.value){Et();return}const E=n.isDark?"dark":"light",I=x.value;if(!I.trim()){Yt(Ce);return}ge&&ge.abort(),ge=new AbortController;try{if((yield Ge(I,E,{signal:ge.signal,timeoutMs:z.value.worker}))&&(yield $e(),j.value)){Et();return}}catch(X){}Ce=Math.min(Math.floor(Ce*1.5),4e3),Yt(Ce)}),{timeout:500})},$))}function Gt(){oe||T.value||j.value||(oe=!0,Ie=0,je=!0,Yt(500))}l.watch(()=>x.value,()=>{j.value=!1,J.value={},Bt(),!T.value&&s.value&&Gt(),v()}),l.watch(()=>n.isDark,()=>ee(null,null,function*(){if(!j.value||pe.value)return;const $=n.isDark?"dark":"light";if(J.value[$]){d.value&&(d.value.innerHTML=J.value[$]);return}const E={zoom:_.value,translateX:B.value,translateY:k.value,containerHeight:F.value},I=_.value!==1||B.value!==0||k.value!==0;Y.value=!0,I&&(_.value=1,B.value=0,k.value=0,yield l.nextTick()),yield $e(),I&&(yield l.nextTick(),_.value=E.zoom,B.value=E.translateX,k.value=E.translateY,F.value=E.containerHeight,ie.value=E)})),l.watch(()=>T.value,$=>ee(null,null,function*(){if($)Et(),j.value&&(ie.value={zoom:_.value,translateX:B.value,translateY:k.value,containerHeight:F.value});else{if(pe.value)return;const E=n.isDark?"dark":"light";if(j.value&&J.value[E]){yield l.nextTick(),d.value&&(d.value.innerHTML=J.value[E]),_.value=ie.value.zoom,B.value=ie.value.translateX,k.value=ie.value.translateY,F.value=ie.value.containerHeight;return}if(yield l.nextTick(),!s.value)return;yield Lt(),Gt()}})),l.watch(()=>n.loading,($,E)=>ee(null,null,function*(){if(E===!0&&$===!1){const I=x.value.trim();if(!I)return qt();const X=n.isDark?"dark":"light",ce=I.replace(/\s+/g,"");if(j.value&&ce===re.value){yield l.nextTick(),d.value&&!d.value.querySelector("svg")&&J.value[X]&&(d.value.innerHTML=J.value[X]),qt();return}try{yield Ge(I,X,{timeoutMs:z.value.worker}),yield $e(),re.value=ce,pe.value=!1,qt()}catch(fe){qt(),Oe(fe)}}})),l.watch(u,$=>{V&&V.disconnect(),$&&!j.value&&!Y.value&&(V=new ResizeObserver(E=>{E&&E.length>0&&!j.value&&!Y.value&&Xn(()=>{const I=E[0].contentRect.width;bt(I)})}),V.observe($))},{immediate:!0}),l.onMounted(()=>ee(null,null,function*(){yield l.nextTick(),H.value||(T.value=!s.value),w.value&&(Bt(),W.value=x.value.length)})),l.watch(()=>s.value,$=>{H.value||(T.value=!$)}),l.watch(()=>w.value,$=>{$&&(j.value||(Bt(),W.value=x.value.length),!n.loading&&!j.value&&Bt())},{immediate:!1}),l.onUnmounted(()=>{O&&clearTimeout(O),V&&V.disconnect(),he&&(he.abort(),he=null),uo(),Et()}),l.watch(()=>c.value,$=>ee(null,null,function*(){$?(Et(),he&&he.abort()):j.value||(yield l.nextTick(),Bt(),T.value||Gt())}),{immediate:!1});const un=l.computed(()=>n.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)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":n.loading}]])},[n.showHeader?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",n.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[$.$slots["header-left"]?(l.openBlock(),l.createElementBlock("div",w1,[l.renderSlot($.$slots,"header-left",{},void 0,!0)])):(l.openBlock(),l.createElementBlock("div",y1,[l.createElementVNode("img",{src:l.unref(u1),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,x1),l.createElementVNode("span",{class:l.normalizeClass(["text-sm font-medium font-mono",n.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)])),$.$slots["header-center"]?(l.openBlock(),l.createElementBlock("div",b1,[l.renderSlot($.$slots,"header-center",{},void 0,!0)])):n.showModeToggle&&s.value?(l.openBlock(),l.createElementBlock("div",{key:3,class:l.normalizeClass(["flex items-center space-x-1 rounded-md p-0.5",n.isDark?"bg-gray-700":"bg-gray-100"])},[l.createElementVNode("button",{class:l.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[T.value?n.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":n.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:E[0]||(E[0]=()=>Mt("preview")),onMouseenter:E[1]||(E[1]=I=>ae(I,l.unref(r)("common.preview")||"Preview")),onFocus:E[2]||(E[2]=I=>ae(I,l.unref(r)("common.preview")||"Preview")),onMouseleave:me,onBlur:me},[l.createElementVNode("div",_1,[E[21]||(E[21]=l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("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"}),l.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})])],-1)),l.createElementVNode("span",null,l.toDisplayString(l.unref(r)("common.preview")||"Preview"),1)])],34),l.createElementVNode("button",{class:l.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[T.value?n.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":n.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:E[3]||(E[3]=()=>Mt("source")),onMouseenter:E[4]||(E[4]=I=>ae(I,l.unref(r)("common.source")||"Source")),onFocus:E[5]||(E[5]=I=>ae(I,l.unref(r)("common.source")||"Source")),onMouseleave:me,onBlur:me},[l.createElementVNode("div",C1,[E[22]||(E[22]=l.createElementVNode("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"},[l.createElementVNode("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)),l.createElementVNode("span",null,l.toDisplayString(l.unref(r)("common.source")||"Source"),1)])],34)],2)):l.createCommentVNode("",!0),$.$slots["header-right"]?(l.openBlock(),l.createElementBlock("div",E1,[l.renderSlot($.$slots,"header-right",{},void 0,!0)])):(l.openBlock(),l.createElementBlock("div",S1,[n.showCollapseButton?(l.openBlock(),l.createElementBlock("button",{key:0,class:l.normalizeClass(un.value),"aria-pressed":c.value,onClick:E[6]||(E[6]=I=>c.value=!c.value),onMouseenter:E[7]||(E[7]=I=>ae(I,c.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onFocus:E[8]||(E[8]=I=>ae(I,c.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onMouseleave:me,onBlur:me},[(l.openBlock(),l.createElementBlock("svg",{style:l.normalizeStyle({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"},[...E[23]||(E[23]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,M1)):l.createCommentVNode("",!0),n.showCopyButton?(l.openBlock(),l.createElementBlock("button",{key:1,class:l.normalizeClass(un.value),onClick:de,onMouseenter:E[9]||(E[9]=I=>He(I)),onFocus:E[10]||(E[10]=I=>He(I)),onMouseleave:me,onBlur:me},[a.value?(l.openBlock(),l.createElementBlock("svg",A1,[...E[25]||(E[25]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",B1,[...E[24]||(E[24]=[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),l.createElementVNode("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)):l.createCommentVNode("",!0),n.showExportButton&&s.value?(l.openBlock(),l.createElementBlock("button",{key:2,class:l.normalizeClass(`${un.value} ${xt.value?"opacity-50 cursor-not-allowed":""}`),disabled:xt.value,onClick:xe,onMouseenter:E[11]||(E[11]=I=>ae(I,l.unref(r)("common.export")||"Export")),onFocus:E[12]||(E[12]=I=>ae(I,l.unref(r)("common.export")||"Export")),onMouseleave:me,onBlur:me},[...E[26]||(E[26]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),l.createElementVNode("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,D1)):l.createCommentVNode("",!0),n.showFullscreenButton&&s.value?(l.openBlock(),l.createElementBlock("button",{key:3,class:l.normalizeClass(`${un.value} ${xt.value?"opacity-50 cursor-not-allowed":""}`),disabled:xt.value,onClick:Ft,onMouseenter:E[13]||(E[13]=I=>ae(I,Qe.value?l.unref(r)("common.minimize")||"Minimize":l.unref(r)("common.open")||"Open")),onFocus:E[14]||(E[14]=I=>ae(I,Qe.value?l.unref(r)("common.minimize")||"Minimize":l.unref(r)("common.open")||"Open")),onMouseleave:me,onBlur:me},[Qe.value?(l.openBlock(),l.createElementBlock("svg",N1,[...E[28]||(E[28]=[l.createElementVNode("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)])])):(l.openBlock(),l.createElementBlock("svg",$1,[...E[27]||(E[27]=[l.createElementVNode("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,T1)):l.createCommentVNode("",!0)]))],2)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref_key:"modeContainerRef",ref:S},[T.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["p-4",n.isDark?"bg-gray-900":"bg-gray-50"])},[l.createElementVNode("pre",{class:l.normalizeClass(["text-sm font-mono whitespace-pre-wrap",n.isDark?"text-gray-300":"text-gray-700"])},l.toDisplayString(x.value),3)],2)):(l.openBlock(),l.createElementBlock("div",I1,[n.showZoomControls?(l.openBlock(),l.createElementBlock("div",F1,[l.createElementVNode("div",R1,[l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:C,onMouseenter:E[15]||(E[15]=I=>ae(I,l.unref(r)("common.zoomIn")||"Zoom in")),onFocus:E[16]||(E[16]=I=>ae(I,l.unref(r)("common.zoomIn")||"Zoom in")),onMouseleave:me,onBlur:me},[...E[29]||(E[29]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:D,onMouseenter:E[17]||(E[17]=I=>ae(I,l.unref(r)("common.zoomOut")||"Zoom out")),onFocus:E[18]||(E[18]=I=>ae(I,l.unref(r)("common.zoomOut")||"Zoom out")),onMouseleave:me,onBlur:me},[...E[30]||(E[30]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:G,onMouseenter:E[19]||(E[19]=I=>ae(I,l.unref(r)("common.resetZoom")||"Reset zoom")),onFocus:E[20]||(E[20]=I=>ae(I,l.unref(r)("common.resetZoom")||"Reset zoom")),onMouseleave:me,onBlur:me},l.toDisplayString(Math.round(_.value*100))+"% ",35)])])):l.createCommentVNode("",!0),l.createElementVNode("div",{ref_key:"mermaidContainer",ref:u,class:l.normalizeClass(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",n.isDark?"bg-gray-900":"bg-gray-50"]),style:l.normalizeStyle({height:F.value}),onWheel:ye,onMousedown:U,onMousemove:ke,onMouseup:ve,onMouseleave:ve,onTouchstartPassive:U,onTouchmovePassive:ke,onTouchendPassive:ve},[l.createElementVNode("div",{ref_key:"mermaidWrapper",ref:f,"data-mermaid-wrapper":"",class:l.normalizeClass(["absolute inset-0 cursor-grab",{"cursor-grabbing":M.value}]),style:l.normalizeStyle(Nt.value)},[l.createElementVNode("div",{ref_key:"mermaidContent",ref:d,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"mermaid-dialog",appear:""},{default:l.withCtx(()=>[Qe.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:l.withModifiers(Ct,["self"])},[l.createElementVNode("div",{class:l.normalizeClass(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",n.isDark?"bg-gray-900":"bg-white"])},[l.createElementVNode("div",L1,[l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:C},[...E[31]||(E[31]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:D},[...E[32]||(E[32]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),l.createElementVNode("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),l.createElementVNode("button",{class:l.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:G},l.toDisplayString(Math.round(_.value*100))+"% ",3),l.createElementVNode("button",{class:l.normalizeClass(["inline-flex items-center justify-center p-2 rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Ct},[...E[33]||(E[33]=[l.createElementVNode("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"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),l.createElementVNode("div",{ref_key:"modalContent",ref:h,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden",onWheel:ye,onMousedown:U,onMousemove:ke,onMouseup:ve,onMouseleave:ve,onTouchstart:U,onTouchmove:ke,onTouchend:ve},null,544)],2)])):l.createCommentVNode("",!0)]),_:1})]))]))],512),[[l.vShow,!c.value]])],2))}}),vn=Me(z1,[["__scopeId","data-v-42e5c3b8"]]);vn.install=e=>{e.component(vn.__name,vn)};const V1={dir:"auto",class:"paragraph-node"},j1=l.defineComponent({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ne({inline_code:tt,image:on,link:it,hardbreak:rn,emphasis:gt,strong:rt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,checkbox:Dt,math_inline:jt,checkbox_input:Dt,reference:nt},pt(t.customId)),o=ts();return(r,i)=>(l.openBlock(),l.createElementBlock("p",V1,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.children,(s,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${e.indexKey||"paragraph"}-${a}`},[s.type!=="text"?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n[s.type]),{key:0,node:s,"index-key":`${e.indexKey}-${a}`,"custom-id":t.customId},null,8,["node","index-key","custom-id"])):(l.openBlock(),l.createElementBlock("span",{key:1,class:l.normalizeClass([[l.unref(o)&&s.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},l.toDisplayString(s.content),3))],64))),128))]))}}),Nn=Me(j1,[["__scopeId","data-v-99e1c125"]]);Nn.install=e=>{e.component(Nn.__name,Nn)};const H1=["aria-busy","aria-label","data-language"],q1=["textContent"],sn=l.defineComponent({__name:"PreCodeNode",props:{node:{}},setup(e){const t=e,n=l.computed(()=>{var c,u,f;const i=String((u=(c=t.node)==null?void 0:c.language)!=null?u:"");return String((f=String(i).split(/\s+/g)[0])!=null?f:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=l.computed(()=>`language-${n.value}`),r=l.computed(()=>{const i=n.value;return i?`Code block: ${i}`:"Code block"});return(i,s)=>(l.openBlock(),l.createElementBlock("pre",{class:l.normalizeClass([o.value]),"aria-busy":e.node.loading===!0,"aria-label":r.value,"data-language":n.value,tabindex:"0"},[s[0]||(s[0]=l.createTextVNode(" ",-1)),l.createElementVNode("code",{translate:"no",textContent:l.toDisplayString(e.node.code)},null,8,q1),s[1]||(s[1]=l.createTextVNode(`
|
|
77
|
+
`,-1))],10,H1))}});sn.install=e=>{e.component(sn.__name,sn)};const W1={class:"table-node-wrapper"},U1=["aria-busy"],K1={class:"border-[var(--table-border,#cbd5e1)]"},X1={class:"border-b"},Z1={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},Y1=l.defineComponent({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=l.computed(()=>{var s,a,c,u;return(u=(c=(a=(s=t.node)==null?void 0:s.header)==null?void 0:a.cells)==null?void 0:c.length)!=null?u:0}),o=l.computed(()=>{const s=n.value||1,a=Math.floor(100/s);return Array.from({length:s}).map((c,u)=>u===s-1?`${100-a*(s-1)}%`:`${a}%`)}),r=l.computed(()=>{var s;return(s=t.node.loading)!=null?s:!1}),i=l.computed(()=>{var s;return(s=t.node.rows)!=null?s:[]});return(s,a)=>(l.openBlock(),l.createElementBlock("div",W1,[l.createElementVNode("table",{class:l.normalizeClass(["w-full my-8 text-sm table-fixed table-node",{"table-node--loading":r.value}]),"aria-busy":r.value},[l.createElementVNode("colgroup",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(c,u)=>(l.openBlock(),l.createElementBlock("col",{key:`col-${u}`,style:l.normalizeStyle({width:c})},null,4))),128))]),l.createElementVNode("thead",K1,[l.createElementVNode("tr",X1,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.node.header.cells,(c,u)=>(l.openBlock(),l.createElementBlock("th",{key:`header-${u}`,dir:"auto",class:l.normalizeClass(["font-semibold p-[calc(4/7*1em)] overflow-x-auto",[c.align==="right"?"text-right":c.align==="center"?"text-center":"text-left"]])},[l.createVNode(l.unref(st),{nodes:c.children,"index-key":`table-th-${e.indexKey}`,typewriter:t.typewriter,onCopy:a[0]||(a[0]=f=>s.$emit("copy",f))},null,8,["nodes","index-key","typewriter"])],2))),128))])]),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,(c,u)=>(l.openBlock(),l.createElementBlock("tr",{key:`row-${u}`,class:l.normalizeClass(["border-[var(--table-border,#cbd5e1)]",[u<i.value.length-1?"border-b":""]])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.cells,(f,d)=>(l.openBlock(),l.createElementBlock("td",{key:`cell-${u}-${d}`,class:l.normalizeClass(["p-[calc(4/7*1em)] overflow-x-auto",[f.align==="right"?"text-right":f.align==="center"?"text-center":"text-left"]]),dir:"auto"},[l.createVNode(l.unref(st),{nodes:f.children,"index-key":`table-td-${e.indexKey}`,typewriter:t.typewriter,onCopy:a[1]||(a[1]=h=>s.$emit("copy",h))},null,8,["nodes","index-key","typewriter"])],2))),128))],2))),128))])],10,U1),l.createVNode(l.Transition,{name:"table-node-fade"},{default:l.withCtx(()=>[r.value?(l.openBlock(),l.createElementBlock("div",Z1,[l.renderSlot(s.$slots,"loading",{isLoading:r.value},()=>[a[2]||(a[2]=l.createElementVNode("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),a[3]||(a[3]=l.createElementVNode("span",{class:"sr-only"},"Loading",-1))],!0)])):l.createCommentVNode("",!0)]),_:3})]))}}),In=Me(Y1,[["__scopeId","data-v-50ef14ca"]]);In.install=e=>{e.component(In.__name,In)};const G1={},J1={class:"hr-node"};function Q1(e,t){return l.openBlock(),l.createElementBlock("hr",J1)}const Fn=Me(G1,[["render",Q1],["__scopeId","data-v-639cbad9"]]);Fn.install=e=>{e.component(Fn.__name,Fn)};const e0={key:1,class:"html-block-node__placeholder"},t0=l.defineComponent({__name:"HtmlBlockNode",props:{node:{}},setup(e){const t=e,n=l.computed(()=>{const u=t.node.attrs;if(u){if(Array.isArray(u)){const f={};for(const d of u){if(!d||d.length<2)continue;const[h,p]=d;h!=null&&(f[String(h)]=p==null?"":String(p))}return f}return u}}),o=l.ref(null),r=l.ref(typeof window=="undefined"),i=l.ref(t.node.content),s=Hn(),a=l.ref(null),c=!!t.node.loading;return typeof window!="undefined"?(l.watch(o,u=>{var d,h;if((h=(d=a.value)==null?void 0:d.destroy)==null||h.call(d),a.value=null,!c){r.value=!0,i.value=t.node.content;return}if(!u){r.value=!1;return}const f=s(u,{rootMargin:"400px"});a.value=f,r.value=f.isVisible.value,f.whenVisible.then(()=>{r.value=!0})},{immediate:!0}),l.watch(()=>t.node.content,u=>{(!c||r.value)&&(i.value=u)})):r.value=!0,l.onBeforeUnmount(()=>{var u,f;(f=(u=a.value)==null?void 0:u.destroy)==null||f.call(u),a.value=null}),(u,f)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps({ref_key:"htmlRef",ref:o,class:"html-block-node"},n.value),[r.value?l.withMemo([i.value],()=>(l.openBlock(),l.createElementBlock("div",{key:0,innerHTML:i.value},null,8,["innerHTML"])),f,0):(l.openBlock(),l.createElementBlock("div",e0,[l.renderSlot(u.$slots,"placeholder",{node:e.node},()=>[f[1]||(f[1]=l.createElementVNode("span",{class:"html-block-node__placeholder-bar"},null,-1)),f[2]||(f[2]=l.createElementVNode("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),f[3]||(f[3]=l.createElementVNode("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))],16))}}),n0=Me(t0,[["__scopeId","data-v-ed22b926"]]),r0={class:"unknown-node"},Fi=l.defineComponent({__name:"FallbackComponent",props:{node:{}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",r0,l.toDisplayString(e.node.raw),1))}}),o0=["data-node-index","data-node-type"],i0=l.defineComponent({__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 It,Ct,N;const n=e,o=t,r=l.ref(),i=l.ref(n.viewportPriority!==!1),s=Jh(()=>r.value,i),a=Pl(),c=l.computed(()=>n.customMarkdownIt?n.customMarkdownIt(a):a),u=l.computed(()=>{var v;if((v=n.nodes)!=null&&v.length)return l.markRaw(n.nodes.slice());if(n.content){const C=Ll(n.content,c.value,n.parseOptions);return l.markRaw(C)}return[]}),f=typeof window!="undefined",d=f&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,h=f&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,p=typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((Ct=(It=globalThis.process)==null?void 0:It.env)==null?void 0:Ct.NODE_ENV)==="test",m=f&&typeof window.requestIdleCallback=="function",g=l.computed(()=>{var C;const v=Math.trunc((C=n.renderBatchSize)!=null?C:80);return Number.isFinite(v)?Math.max(0,v):0}),w=l.computed(()=>{var C;const v=Math.trunc((C=n.initialRenderBatchSize)!=null?C:g.value);return Number.isFinite(v)?Math.max(0,v):g.value}),S=l.computed(()=>n.batchRendering!==!1&&g.value>0&&f&&!p),x=l.ref(0),y=l.ref({key:n.indexKey,total:0}),_=l.ref({batchSize:g.value,initial:w.value,delay:(N=n.renderBatchDelay)!=null?N:16,enabled:S.value}),B=l.shallowRef([]),k=l.ref(Math.max(1,g.value||1)),M=l.reactive({}),b=new Map,T=new Map,H=l.computed(()=>n.deferNodesUntilVisible!==!1&&i.value!==!1),L=l.computed(()=>{var v;return((v=n.maxLiveNodes)!=null?v:0)>0}),P=l.computed(()=>!!s&&(H.value||L.value)),W=l.computed(()=>{var v;return Math.max(1,(v=n.maxLiveNodes)!=null?v:320)}),K=l.computed(()=>{var v;return Math.max(0,(v=n.liveNodeBuffer)!=null?v:60)}),O=l.ref(0),F=l.reactive({start:0,end:0}),V=new Map,j=l.computed(()=>{if(!L.value)return u.value.length;const v=K.value,C=Math.max(F.end+v,w.value),D=Math.min(u.value.length,C);return Math.max(x.value,D)});function Y(v,C,D){return Math.min(Math.max(v,C),D)}function J(){const v=u.value.length;if(!L.value||v===0){F.start=0,F.end=v;return}const C=Math.min(W.value,v),D=K.value,G=Y(O.value-D,0,Math.max(0,v-C));F.start=G,F.end=Math.min(v,G+C)}const te=l.reactive({}),re=l.reactive({total:0,count:0});function _e(v,C){if(!Number.isFinite(C)||C<=0)return;const D=te[v];te[v]=C,D?re.total+=C-D:(re.total+=C,re.count++)}const he=l.computed(()=>re.count>0?Math.max(12,re.total/re.count):32);function pe(v,C){var G;if(v>=C)return 0;let D=0;for(let U=v;U<C;U++)D+=(G=te[U])!=null?G:he.value;return D}const ie=l.computed(()=>{if(!L.value)return u.value.map((G,U)=>({node:G,index:U}));const v=u.value.length,C=Y(F.start,0,v),D=Y(F.end,C,v);return u.value.slice(C,D).map((G,U)=>({node:G,index:C+U}))}),z=l.computed(()=>L.value?pe(0,Math.min(F.start,u.value.length)):0),R=l.computed(()=>{if(!L.value)return 0;const v=u.value.length,C=Math.min(F.end,v);return pe(C,v)});function q(){const v=u.value.length,C=Math.min(v,x.value);if(C<=0){B.value=[],Q(0);return}if(C>=v){B.value=u.value,Q(C);return}B.value=u.value.slice(0,C),Q(C)}function Q(v){if(b.size)for(const[C,D]of b)C>=v&&(D.destroy(),b.delete(C),H.value&&delete M[C],T.delete(C))}function oe(v,C){H.value&&(M[v]=C),C&&(O.value=Y(v,0,Math.max(0,u.value.length-1)))}function Ce(v){return!H.value||v<w.value?!0:M[v]===!0}function ge(v){const C=b.get(v);C&&(C.destroy(),b.delete(v))}function Ie(v,C){if(C?T.set(v,C):T.delete(v),!P.value||!s){ge(v),C?oe(v,!0):H.value&&delete M[v];return}if(v<w.value&&!L.value){ge(v),oe(v,!0);return}if(!C){ge(v),H.value&&delete M[v];return}ge(v);const D=s(C,{rootMargin:"400px"});D&&(b.set(v,D),oe(v,D.isVisible.value),D.whenVisible.then(()=>{oe(v,!0)}).catch(()=>{}))}function je(v,C){if(!C){V.delete(v);return}V.set(v,C),queueMicrotask(()=>{_e(v,C.offsetHeight)})}let Fe=null,Oe=null,De=!1,ae=null,me=null;function He(){f&&(Fe!=null&&(h==null||h(Fe),Fe=null),Oe!=null&&(window.clearTimeout(Oe),Oe=null),me!=null&&typeof window.cancelIdleCallback=="function"&&(window.cancelIdleCallback(me),me=null),De=!1,ae=null)}function vt(v,C={}){var ve,ye;if(!S.value)return;const D=j.value;if(x.value>=D)return;const G=Math.max(1,v),U=de=>{var Rt;Fe=null,Oe=null,me=null,De=!1;const Ee=ae!=null?ae:G;ae=null;const xe=Math.max(2,(Rt=n.renderBatchBudgetMs)!=null?Rt:6),Ft=$e=>{const qe=typeof performance!="undefined"?performance.now():Date.now();x.value=Math.min(D,x.value+Math.max(1,$e)),q();const Lt=(typeof performance!="undefined"?performance.now():Date.now())-qe;return ze(Lt),Lt};let Mt=Ee;for(;Ft(Mt),!(x.value>=D||!de||(typeof de.timeRemaining=="function"?de.timeRemaining():0)<=xe*.5);)Mt=Math.max(1,Math.round(k.value));x.value<D&&wt()};if(!f||C.immediate){U();return}const ke=Math.max(0,(ve=n.renderBatchDelay)!=null?ve:16);if(ae=ae!=null?Math.max(ae,G):G,!De){if(De=!0,!p&&m&&window.requestIdleCallback){const de=Math.max(0,(ye=n.renderBatchIdleTimeoutMs)!=null?ye:120);me=window.requestIdleCallback(Ee=>{U(Ee)},{timeout:de});return}if(!d||p){Oe=window.setTimeout(()=>U(),ke);return}Fe=d(()=>{if(ke===0){U();return}Oe=window.setTimeout(()=>U(),ke)})}}function wt(){const v=S.value?Math.max(1,Math.round(k.value)):Math.max(1,g.value);vt(v)}function ze(v){var U;if(!S.value)return;const C=Math.max(2,(U=n.renderBatchBudgetMs)!=null?U:6),D=Math.max(1,g.value||1),G=Math.max(1,Math.floor(D/4));v>C*1.2?k.value=Math.max(G,Math.floor(k.value*.7)):v<C*.5&&k.value<D&&(k.value=Math.min(D,Math.ceil(k.value*1.2)))}l.watch([()=>u.value,()=>u.value.length,()=>S.value,()=>g.value,()=>w.value,()=>n.renderBatchDelay,()=>n.indexKey],()=>{var xe;const C=u.value.length,D=y.value,G=n.indexKey,U=G!==void 0?G!==D.key:C!==D.total;y.value={key:G,total:C};const ke=_.value,ve=(xe=n.renderBatchDelay)!=null?xe:16,ye=ke.batchSize!==g.value||ke.initial!==w.value||ke.delay!==ve||ke.enabled!==S.value;_.value={batchSize:g.value,initial:w.value,delay:ve,enabled:S.value},(U||ye||!S.value)&&He(),(U||ye)&&(k.value=Math.max(1,g.value||1));const de=j.value;if(!C){x.value=0,q();return}if(!S.value){x.value=de,q();return}U||ye?x.value=Math.min(de,w.value):x.value=Math.min(x.value,de);const Ee=Math.max(1,w.value||g.value||C);x.value<de?vt(Ee,{immediate:!f}):q()},{immediate:!0}),l.watch(()=>H.value,v=>{if(!v){for(const C of b.values())C.destroy();b.clear();for(const C of Object.keys(M))delete M[C];for(const[C,D]of T)D&&oe(C,!0);return}for(const[C,D]of T)Ie(C,D)},{immediate:!1}),l.watch(()=>x.value,(v,C)=>{L.value&&(typeof C=="number"&&v<=C||v>0&&(O.value=v-1))}),l.watch([O,W,K,()=>u.value.length,L],()=>{J()},{immediate:!0}),l.watch(()=>j.value,(v,C)=>{S.value&&(typeof C=="number"&&v<=C||v>x.value&&wt())}),l.onBeforeUnmount(()=>{He();for(const v of b.values())v.destroy();b.clear()});const yt=l.defineAsyncComponent(()=>ee(null,null,function*(){try{return(yield Promise.resolve().then(()=>Lp)).default}catch(v){return console.warn('[markstream-vue] 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".',v),sn}})),Ge=l.computed(()=>n.renderCodeBlocksAsPre?sn:yt),Ht={text:Xe,paragraph:Nn,heading:Or,code_block:yt,list:$n,blockquote:Mn,table:In,definition_list:Bn,footnote:Dn,footnote_reference:at,admonition:Rn,hardbreak:rn,link:it,image:on,thematic_break:Fn,math_inline:jt,math_block:bh,strong:rt,emphasis:gt,strikethrough:ot,highlight:ft,insert:dt,subscript:ut,superscript:ct,emoji:et,checkbox:Dt,checkbox_input:Dt,inline_code:tt,reference:nt,html_block:n0};function xt(v){var D;if(!v)return Fi;const C=pt(n.customId)[String(v.type)];if(C)return C;if(v.type==="code_block"){if(String((D=v.language)!=null?D:"").trim().toLowerCase()==="mermaid")return pt(n.customId).mermaid||vn;const U=pt(n.customId).code_block;return U||Ge.value}return Ht[String(v.type)]||Fi}function bt(v){var C;return(v==null?void 0:v.type)==="code_block"&&String((C=v.language)!=null?C:"").trim().toLowerCase()==="mermaid"?{}:v.type==="code_block"?ne({stream:n.codeBlockStream,darkTheme:n.codeBlockDarkTheme,lightTheme:n.codeBlockLightTheme,monacoOptions:n.codeBlockMonacoOptions,themes:n.themes,minWidth:n.codeBlockMinWidth,maxWidth:n.codeBlockMaxWidth},n.codeBlockProps||{}):{typewriter:n.typewriter}}function Qe(v){o("click",v)}function Nt(v){var D;(D=v.target)!=null&&D.closest("[data-node-index]")&&o("mouseover",v)}function _t(v){var D;(D=v.target)!=null&&D.closest("[data-node-index]")&&o("mouseout",v)}return(v,C)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"containerRef",ref:r,class:"markdown-renderer",onClick:Qe,onMouseover:Nt,onMouseout:_t},[L.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"node-spacer",style:l.normalizeStyle({height:`${z.value}px`}),"aria-hidden":"true"},null,4)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(ie.value,D=>{var G;return l.openBlock(),l.createElementBlock("div",{key:D.index,ref_for:!0,ref:U=>Ie(D.index,U),class:"node-slot","data-node-index":D.index,"data-node-type":D.node.type},[Ce(D.index)?(l.openBlock(),l.createElementBlock("div",{key:0,ref_for:!0,ref:U=>je(D.index,U),class:"node-content"},[D.node.type!=="code_block"&&n.typewriter!==!1?(l.openBlock(),l.createBlock(l.Transition,{key:0,name:"typewriter",appear:""},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(xt(D.node)),l.mergeProps({node:D.node,loading:D.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${D.index}`},{ref_for:!0},bt(D.node),{"custom-id":n.customId,"is-dark":n.isDark,onCopy:C[0]||(C[0]=U=>o("copy",U)),onHandleArtifactClick:C[1]||(C[1]=U=>o("handleArtifactClick",U))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1024)):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(xt(D.node)),l.mergeProps({key:1,node:D.node,loading:D.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${D.index}`},{ref_for:!0},bt(D.node),{"custom-id":n.customId,"is-dark":n.isDark,onCopy:C[2]||(C[2]=U=>o("copy",U)),onHandleArtifactClick:C[3]||(C[3]=U=>o("handleArtifactClick",U))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],512)):(l.openBlock(),l.createElementBlock("div",{key:1,class:"node-placeholder",style:l.normalizeStyle({height:`${(G=te[D.index])!=null?G:he.value}px`})},null,4))],8,o0)}),128)),L.value?(l.openBlock(),l.createElementBlock("div",{key:1,class:"node-spacer",style:l.normalizeStyle({height:`${R.value}px`}),"aria-hidden":"true"},null,4)):l.createCommentVNode("",!0)],544))}}),st=Me(i0,[["__scopeId","data-v-73aa3c01"]]);st.install=e=>{var n,o;const t=(o=(n=st.__name)!=null?n:st.name)!=null?o:"NodeRenderer";e.component(t,st)};const l0={key:0,class:"admonition-icon"},s0={class:"admonition-title"},a0=["aria-expanded","aria-controls","title"],c0={key:0},u0={key:1},d0=["id"],f0=l.defineComponent({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean}},emits:["copy"],setup(e,{emit:t}){var u;const n=e,o=t,r={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},i=l.computed(()=>{if(n.node.title&&n.node.title.trim().length)return n.node.title;const f=n.node.kind||"note";return f.charAt(0).toUpperCase()+f.slice(1)}),s=l.ref(n.node.collapsible?!((u=n.node.open)==null||u):!1);function a(){n.node.collapsible&&(s.value=!s.value)}const c=`admonition-${Math.random().toString(36).slice(2,9)}`;return(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["admonition",[`admonition-${n.node.kind}`,n.isDark?"is-dark":""]])},[l.createElementVNode("div",{id:c,class:"admonition-header"},[r[n.node.kind]?(l.openBlock(),l.createElementBlock("span",l0,l.toDisplayString(r[n.node.kind]),1)):l.createCommentVNode("",!0),l.createElementVNode("span",s0,l.toDisplayString(i.value),1),n.node.collapsible?(l.openBlock(),l.createElementBlock("button",{key:1,class:"admonition-toggle","aria-expanded":!s.value,"aria-controls":`${c}-content`,title:s.value?"Expand":"Collapse",onClick:a},[s.value?(l.openBlock(),l.createElementBlock("span",c0,"▶")):(l.openBlock(),l.createElementBlock("span",u0,"▼"))],8,a0)):l.createCommentVNode("",!0)]),l.withDirectives(l.createElementVNode("div",{id:`${c}-content`,class:"admonition-content","aria-labelledby":c},[l.withMemo([n.node.children],()=>l.createVNode(l.unref(st),{"index-key":`admonition-${e.indexKey}`,nodes:n.node.children,typewriter:n.typewriter,onCopy:d[0]||(d[0]=h=>o("copy",h))},null,8,["index-key","nodes","typewriter"]),d,1)],8,d0),[[l.vShow,!s.value]])],2))}}),Rn=Me(f0,[["__scopeId","data-v-578c25d2"]]);Rn.install=e=>{e.component(Rn.__name,Rn)};let Ri=!1;function h0(e){return ee(this,null,function*(){if(!Ri)return Ri=!0,e.preloadMonacoWorkers()})}let Un=null,Li=!1;function as(){return ee(this,null,function*(){if(Un)return Un;if(Li)return null;try{return Un=yield import("stream-monaco"),yield h0(Un),Un}catch(e){return Li=!0,null}})}const p0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',m0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
78
78
|
<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" />
|
|
79
79
|
</svg>
|
|
80
|
-
`,
|
|
80
|
+
`,g0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
81
81
|
<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" />
|
|
82
82
|
<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" />
|
|
83
83
|
</svg>
|
|
84
|
-
`,
|
|
84
|
+
`,k0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
85
85
|
<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" />
|
|
86
86
|
</svg>
|
|
87
|
-
`,
|
|
87
|
+
`,v0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
88
88
|
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
89
89
|
<path stroke="#a6d189" d="M14.17 10.03A6.5 6.5 0 011.81 6.02" />
|
|
90
90
|
<path stroke="#8caaee" d="M1.87 5.85A6.5 6.5 0 0114.22 9.9" />
|
|
@@ -94,72 +94,72 @@ ${a.map(m=>m.raw).join(`
|
|
|
94
94
|
<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" />
|
|
95
95
|
</g>
|
|
96
96
|
</svg>
|
|
97
|
-
`,
|
|
97
|
+
`,w0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
98
98
|
<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" />
|
|
99
99
|
</svg>
|
|
100
|
-
`,
|
|
100
|
+
`,y0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
101
101
|
<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" />
|
|
102
102
|
<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" />
|
|
103
103
|
</svg>
|
|
104
|
-
`,
|
|
104
|
+
`,x0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
105
105
|
<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" />
|
|
106
106
|
</svg>
|
|
107
|
-
`,
|
|
107
|
+
`,b0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
108
108
|
<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" />
|
|
109
109
|
</svg>
|
|
110
|
-
`,
|
|
110
|
+
`,_0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
111
111
|
<g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">
|
|
112
112
|
<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" />
|
|
113
113
|
<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" />
|
|
114
114
|
</g>
|
|
115
115
|
</svg>
|
|
116
|
-
`,
|
|
116
|
+
`,C0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
117
117
|
<g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">
|
|
118
118
|
<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" />
|
|
119
119
|
<path d="M3.5 11V3.5H11m-7.5 0 8 8" />
|
|
120
120
|
</g>
|
|
121
121
|
</svg>
|
|
122
|
-
`,
|
|
122
|
+
`,E0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',S0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
123
123
|
<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" />
|
|
124
124
|
</svg>
|
|
125
|
-
`,
|
|
125
|
+
`,M0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
126
126
|
<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" />
|
|
127
127
|
</svg>
|
|
128
|
-
`,
|
|
128
|
+
`,B0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
129
129
|
<g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">
|
|
130
130
|
<path d="M6.5 5.5c0-1.25 1-2 2-2s2 .75 2 2z" />
|
|
131
131
|
<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" />
|
|
132
132
|
</g>
|
|
133
133
|
</svg>
|
|
134
|
-
`,
|
|
134
|
+
`,A0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
135
135
|
<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" />
|
|
136
136
|
</svg>
|
|
137
|
-
`,
|
|
137
|
+
`,D0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
138
138
|
<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" />
|
|
139
139
|
</svg>
|
|
140
|
-
`,
|
|
140
|
+
`,T0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
141
141
|
<g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">
|
|
142
142
|
<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" />
|
|
143
143
|
<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" />
|
|
144
144
|
</g>
|
|
145
145
|
</svg>
|
|
146
|
-
|
|
146
|
+
`,$0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
147
147
|
<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" />
|
|
148
148
|
</svg>
|
|
149
|
-
`,
|
|
149
|
+
`,N0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
150
150
|
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
151
151
|
<path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />
|
|
152
152
|
<path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />
|
|
153
153
|
</g>
|
|
154
154
|
</svg>
|
|
155
|
-
`,
|
|
155
|
+
`,I0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
156
156
|
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
157
157
|
<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" />
|
|
158
158
|
<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" />
|
|
159
159
|
<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" />
|
|
160
160
|
</g>
|
|
161
161
|
</svg>
|
|
162
|
-
|
|
162
|
+
`,F0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
163
163
|
<g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">
|
|
164
164
|
<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" />
|
|
165
165
|
<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" />
|
|
@@ -167,23 +167,23 @@ ${a.map(m=>m.raw).join(`
|
|
|
167
167
|
<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" />
|
|
168
168
|
</g>
|
|
169
169
|
</svg>
|
|
170
|
-
`,
|
|
170
|
+
`,R0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
171
171
|
<g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">
|
|
172
172
|
<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" />
|
|
173
173
|
<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" />
|
|
174
174
|
</g>
|
|
175
175
|
</svg>
|
|
176
|
-
`,
|
|
176
|
+
`,L0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
177
177
|
<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" />
|
|
178
178
|
</svg>
|
|
179
|
-
`,
|
|
179
|
+
`,P0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
180
180
|
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
181
181
|
<path stroke="#a6d189" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
|
|
182
182
|
<path stroke="#e78284" d="M6.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
|
|
183
183
|
<path stroke="#ca9ee6" d="M14.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
|
|
184
184
|
</g>
|
|
185
185
|
</svg>
|
|
186
|
-
`,
|
|
186
|
+
`,O0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
187
187
|
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
188
188
|
<path stroke="#ca9ee6" d="M2.5 13.5h11L8 8" />
|
|
189
189
|
<path stroke="#ef9f76" d="M8.03 2.5h5.47l-8 8" />
|
|
@@ -191,50 +191,50 @@ ${a.map(m=>m.raw).join(`
|
|
|
191
191
|
<path stroke="#85c1dc" d="M8 2.5H2.5V8l3-2.5" />
|
|
192
192
|
</g>
|
|
193
193
|
</svg>
|
|
194
|
-
`,
|
|
194
|
+
`,z0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
195
195
|
<g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">
|
|
196
196
|
<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" />
|
|
197
197
|
<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" />
|
|
198
198
|
</g>
|
|
199
199
|
</svg>
|
|
200
|
-
`,
|
|
200
|
+
`,V0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
201
201
|
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
202
202
|
<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" />
|
|
203
203
|
<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" />
|
|
204
204
|
</g>
|
|
205
205
|
</svg>
|
|
206
|
-
`,
|
|
206
|
+
`,j0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
207
207
|
<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" />
|
|
208
208
|
</svg>
|
|
209
|
-
`,
|
|
209
|
+
`,H0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
210
210
|
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
211
211
|
<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" />
|
|
212
212
|
<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" />
|
|
213
213
|
</g>
|
|
214
214
|
</svg>
|
|
215
|
-
`,
|
|
215
|
+
`,q0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
216
216
|
<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" />
|
|
217
217
|
</svg>
|
|
218
|
-
`,
|
|
218
|
+
`,W0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
219
219
|
<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" />
|
|
220
220
|
</svg>
|
|
221
|
-
`,
|
|
221
|
+
`,U0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',K0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',X0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
222
222
|
<g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
|
|
223
223
|
<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" />
|
|
224
224
|
<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" />
|
|
225
225
|
<path d="m4.5 14.5 1.5-4 1 4zm-2 0 1.5-4-1.5-.5-1 1.54V14l1 .49Z" />
|
|
226
226
|
</g>
|
|
227
227
|
</svg>
|
|
228
|
-
`,
|
|
228
|
+
`,Z0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
229
229
|
<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" />
|
|
230
230
|
</svg>
|
|
231
|
-
`,
|
|
231
|
+
`,Y0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
232
232
|
<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" />
|
|
233
233
|
</svg>
|
|
234
|
-
`,
|
|
234
|
+
`,G0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
235
235
|
<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" />
|
|
236
236
|
</svg>
|
|
237
|
-
`,
|
|
237
|
+
`,J0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
238
238
|
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
239
239
|
<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" />
|
|
240
240
|
<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" />
|
|
@@ -242,55 +242,55 @@ ${a.map(m=>m.raw).join(`
|
|
|
242
242
|
<path stroke="#e5c890" d="m 8.5,12.5 v 0" />
|
|
243
243
|
</g>
|
|
244
244
|
</svg>
|
|
245
|
-
`,
|
|
245
|
+
`,Q0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
246
246
|
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
247
247
|
<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" />
|
|
248
248
|
<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" />
|
|
249
249
|
</g>
|
|
250
250
|
</svg>
|
|
251
|
-
`,
|
|
251
|
+
`,ep=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
252
252
|
<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" />
|
|
253
253
|
</svg>
|
|
254
|
-
`,
|
|
254
|
+
`,tp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
255
255
|
<g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
|
|
256
256
|
<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" />
|
|
257
257
|
<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" />
|
|
258
258
|
</g>
|
|
259
259
|
</svg>
|
|
260
|
-
`,
|
|
260
|
+
`,np=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
261
261
|
<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" />
|
|
262
262
|
</svg>
|
|
263
|
-
`,
|
|
263
|
+
`,rp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
264
264
|
<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" />
|
|
265
265
|
</svg>
|
|
266
|
-
`,
|
|
266
|
+
`,op=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
267
267
|
<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
|
|
268
268
|
<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" />
|
|
269
269
|
<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" />
|
|
270
270
|
</g>
|
|
271
271
|
</svg>
|
|
272
|
-
`,
|
|
272
|
+
`,ip=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
273
273
|
<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" />
|
|
274
274
|
</svg>
|
|
275
|
-
`,
|
|
275
|
+
`,lp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
276
276
|
<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" />
|
|
277
277
|
</svg>
|
|
278
|
-
`,
|
|
278
|
+
`,sp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --><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>',ap=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
279
279
|
<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" />
|
|
280
280
|
</svg>
|
|
281
|
-
`,
|
|
281
|
+
`,cp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
282
282
|
<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" />
|
|
283
283
|
</svg>
|
|
284
|
-
`,
|
|
284
|
+
`,up=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
285
285
|
<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" />
|
|
286
286
|
</svg>
|
|
287
|
-
`,
|
|
287
|
+
`,dp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
288
288
|
<g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">
|
|
289
289
|
<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" />
|
|
290
290
|
<path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />
|
|
291
291
|
</g>
|
|
292
292
|
</svg>
|
|
293
|
-
`,
|
|
293
|
+
`,fp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
294
294
|
<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
|
|
295
295
|
<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" />
|
|
296
296
|
<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" />
|
|
@@ -298,22 +298,22 @@ ${a.map(m=>m.raw).join(`
|
|
|
298
298
|
<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" />
|
|
299
299
|
</g>
|
|
300
300
|
</svg>
|
|
301
|
-
`,
|
|
301
|
+
`,hp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
302
302
|
<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
|
|
303
303
|
<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" />
|
|
304
304
|
<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" />
|
|
305
305
|
</g>
|
|
306
306
|
</svg>
|
|
307
|
-
`,
|
|
307
|
+
`,pp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',mp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
308
308
|
<g fill="none" stroke="#a6d189" stroke-linecap="round" stroke-linejoin="round">
|
|
309
309
|
<path d="M1 1.5h5.44L8 4.56 9.56 1.5H15l-6.99 13z" />
|
|
310
310
|
<path d="M12.05 1.73 8 9.28 3.95 1.73" />
|
|
311
311
|
</g>
|
|
312
312
|
</svg>
|
|
313
|
-
`,
|
|
313
|
+
`,gp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
314
314
|
<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" />
|
|
315
315
|
</svg>
|
|
316
|
-
`,
|
|
316
|
+
`,kp=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
317
317
|
<path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M2.5 1.5h3l3 4 3-4h3l-9 13h-3L7 8z" />
|
|
318
318
|
</svg>
|
|
319
|
-
`;let uo=null;function cs(e){uo=e!=null?e:null}function Do(e){if(uo){const t=uo(e);if(t!=null&&t!=="")return t}switch(e){case"javascript":case"js":return N0;case"typescript":case"ts":return up;case"jsx":return $0;case"tsx":return cp;case"html":return D0;case"css":return y0;case"scss":return Q0;case"json":return I0;case"python":case"py":return Z0;case"ruby":case"rb":return G0;case"go":case"golang":return M0;case"r":return Y0;case"java":return T0;case"kotlin":case"kt":return R0;case"c":return p0;case"cpp":case"c++":return k0;case"cs":case"csharp":return w0;case"php":return K0;case"scala":return ep;case"shell":case"sh":case"bash":case"zsh":case"powershell":case"ps1":case"bat":case"batch":case"shellscript":return tp;case"sql":return rp;case"yaml":case"yml":return pp;case"markdown":case"md":return O0;case"xml":return hp;case"rust":case"rs":return J0;case"swift":return lp;case"perl":return U0;case"lua":return P0;case"haskell":return B0;case"erlang":return E0;case"clojure":return m0;case"vue":return fp;case"svg":return ip;case"mermaid":return V0;case"dart":return x0;case"assembly":return h0;case"dockerfile":return _0;case"fortran":return S0;case"lisp":return L0;case"ocaml":return W0;case"prolog":return X0;case"groovy":return A0;case"matlab":return z0;case"cobol":return g0;case"ada":return d0;case"julia":return F0;case"elixir":return C0;case"vb.net":return dp;case"nim":return j0;case"crystal":return v0;case"d":return b0;case"applescript":return f0;case"solidity":return np;case"objectivec":return H0;case"objectivecpp":return q0;case"terraform":return sp;case"plain":case"text":return ap;default:return op}}const To={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"},mp={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)"}},gp={class:"flex items-center space-x-2"},kp=["innerHTML"],vp={class:"text-sm font-medium font-mono"},wp={class:"flex items-center space-x-2"},yp=["aria-pressed"],xp=["disabled"],bp=["disabled"],_p=["disabled"],Cp=["aria-label"],Ep={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"},Sp={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"},Mp=["aria-pressed"],Ap={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"},Bp={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"},Dp=["aria-label"],Tp={class:"code-loading-placeholder"},$p={class:"sr-only","aria-live":"polite",role:"status"},Pi=10,Oi=36,zi=1,Vi=0,ji=1.5,hr=1,Np=l.defineComponent({__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 It,St;const n=e,o=t,{t:r}=Lr(),i=l.ref(null),s=l.ref(null),a=l.ref(!1),c=l.ref(String((It=n.node.language)!=null?It:"")),u=l.ref(!1),f=l.ref(!1),d=l.ref(!1),h=l.ref(!1),p=l.ref(null);let m=0;const g=Hn(),w=l.ref(null),E=l.ref(typeof window=="undefined");typeof window!="undefined"&&l.watch(()=>s.value,$=>{var C;if((C=w.value)==null||C.destroy(),w.value=null,!$){E.value=!1;return}const v=g($,{rootMargin:"400px"});w.value=v,E.value=v.isVisible.value,v.whenVisible.then(()=>{E.value=!0})},{immediate:!0}),l.onBeforeUnmount(()=>{var $;($=w.value)==null||$.destroy(),w.value=null});let x=null,y=null,_=()=>{},A=()=>{},k=()=>null,S=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),b=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),T=()=>{},H=()=>{},R=null,L=()=>{var $;return String(($=n.node.language)!=null?$:"plaintext")},W=()=>ee(null,null,function*(){});const K=l.computed(()=>n.node.diff),P=l.ref(!1);typeof window!="undefined"&&ee(null,null,function*(){try{const $=yield as();if(!$){P.value=!0;return}const v=$.useMonaco,C=$.detectLanguage;if(typeof C=="function"&&(L=C),typeof v=="function"){const D=Ct();if(D&&n.themes&&Array.isArray(n.themes)&&!n.themes.includes(D))throw new Error("Preferred theme not in provided themes array");const G=v(je(ne({wordWrap:"on",wrappingIndent:"same",themes:n.themes,theme:D},n.monacoOptions||{}),{onThemeChange(){z()}}));x=G.createEditor||x,y=G.createDiffEditor||y,_=G.updateCode||_,A=G.updateDiff||A,k=G.getEditor||k,S=G.getEditorView||S,b=G.getDiffEditorView||b,T=G.cleanupEditor||T,H=G.safeClean||G.cleanupEditor||H,W=G.setTheme||W,h.value=!0,i.value&&(yield Ge(i.value))}}catch($){P.value=!0}});const N=l.ref(typeof((St=n.monacoOptions)==null?void 0:St.fontSize)=="number"?n.monacoOptions.fontSize:Number.NaN),V=l.ref(N.value),j=l.computed(()=>{const $=N.value,v=V.value;return typeof $=="number"&&Number.isFinite($)&&$>0&&typeof v=="number"&&Number.isFinite(v)&&v>0});function Y(){try{const $=i.value;if(!$)return null;const v=$.querySelector(".view-lines .view-line");if(v){const C=Math.ceil(v.getBoundingClientRect().height);if(C>0)return C}}catch($){}return null}function J(){var $,v,C,D,G;try{const U=K.value?(C=(v=($=b())==null?void 0:$.getModifiedEditor)==null?void 0:v.call($))!=null?C:b():S(),ke=k(),ye=(D=ke==null?void 0:ke.EditorOption)==null?void 0:D.fontInfo;if(U&&ye!=null){const xe=(G=U.getOption)==null?void 0:G.call(U,ye),de=xe==null?void 0:xe.fontSize;if(typeof de=="number"&&Number.isFinite(de)&&de>0)return de}}catch(U){}try{const U=i.value;if(U){const ke=U.querySelector(".view-lines .view-line");if(ke)try{if(typeof window!="undefined"&&typeof window.getComputedStyle=="function"){const ye=window.getComputedStyle(ke).fontSize,xe=ye&&ye.match(/^(\d+(?:\.\d+)?)/);if(xe)return Number.parseFloat(xe[1])}}catch(ye){}}}catch(U){}return null}function te($){var D,G;try{const U=k(),ke=(D=U==null?void 0:U.EditorOption)==null?void 0:D.lineHeight;if(ke!=null){const ye=(G=$==null?void 0:$.getOption)==null?void 0:G.call($,ke);if(typeof ye=="number"&&ye>0)return ye}}catch(U){}const v=Y();if(v&&v>0)return v;const C=Number.isFinite(V.value)&&V.value>0?V.value:12;return Math.max(12,Math.round(C*1.35))}function re(){var v;if(Number.isFinite(V.value)&&V.value>0&&Number.isFinite(N.value))return V.value;const $=J();return typeof((v=n.monacoOptions)==null?void 0:v.fontSize)=="number"?(N.value=n.monacoOptions.fontSize,V.value=n.monacoOptions.fontSize,V.value):$&&$>0?(N.value=$,V.value=$,$):(N.value=12,V.value=12,12)}function be(){const $=re(),v=Math.min(Oi,$+zi);V.value=v}function he(){const $=re(),v=Math.max(Pi,$-zi);V.value=v}function pe(){re(),Number.isFinite(N.value)&&(V.value=N.value)}function ie(){var $,v,C,D,G,U,ke,ye,xe,de,Ce;try{const ve=K.value?b():S();if(!ve)return null;if(K.value&&(ve!=null&&ve.getOriginalEditor)&&(ve!=null&&ve.getModifiedEditor)){const Fe=($=ve.getOriginalEditor)==null?void 0:$.call(ve),Re=(v=ve.getModifiedEditor)==null?void 0:v.call(ve),pt=((C=Fe==null?void 0:Fe.getContentHeight)==null?void 0:C.call(Fe))||0,Mt=((D=Re==null?void 0:Re.getContentHeight)==null?void 0:D.call(Re))||0,Ht=Math.max(pt,Mt);if(Ht>0)return Math.ceil(Ht+hr);const Zt=((ke=(U=(G=Fe==null?void 0:Fe.getModel)==null?void 0:G.call(Fe))==null?void 0:U.getLineCount)==null?void 0:ke.call(U))||1,qt=((de=(xe=(ye=Re==null?void 0:Re.getModel)==null?void 0:ye.call(Re))==null?void 0:xe.getLineCount)==null?void 0:de.call(xe))||1,an=Math.max(Zt,qt),cn=Math.max(te(Fe),te(Re));return Math.ceil(an*(cn+ji)+Vi+hr)}else if(ve!=null&&ve.getContentHeight){const Fe=ve.getContentHeight();if(Fe>0)return Math.ceil(Fe+hr)}const ht=(Ce=ve==null?void 0:ve.getModel)==null?void 0:Ce.call(ve);let Ft=1;ht&&typeof ht.getLineCount=="function"&&(Ft=ht.getLineCount());const Rt=te(ve);return Math.ceil(Ft*(Rt+ji)+Vi+hr)}catch(ve){return null}}function z(){var ye,xe,de;const $=i.value,v=s.value;if(!$||!v)return;const C=$.querySelector(".monaco-editor")||$;let D=null;try{typeof window!="undefined"&&typeof window.getComputedStyle=="function"&&(D=window.getComputedStyle(C))}catch(Ce){D=null}const G=String((ye=D==null?void 0:D.getPropertyValue("--vscode-editor-foreground"))!=null?ye:""),U=String((xe=D==null?void 0:D.getPropertyValue("--vscode-editor-background"))!=null?xe:""),ke=String((de=D==null?void 0:D.getPropertyValue("--vscode-editor-hoverHighlightBackground"))!=null?de:"");if(G&&U)return v.style.setProperty("--vscode-editor-foreground",G.trim()),v.style.setProperty("--vscode-editor-background",U.trim()),v.style.setProperty("--vscode-editor-selectionBackground",ke.trim()),!0}function F(){try{const $=i.value;if(!$)return;const v=$.getBoundingClientRect(),C=window.scrollY+v.top,D=ie();if(D!=null&&D>0){const G=v.height;$.style.height=`${Math.ceil(D)}px`,$.style.maxHeight="none";const U=Math.ceil(D)-G;U!==0&&C<window.scrollY&&window.scrollBy(0,U)}}catch($){}}function q(){var $;try{const v=i.value;if(!v)return;const C=v.getBoundingClientRect(),D=window.scrollY+C.top,G=C.height,U=Q();if(m>0&&(m--,p.value!=null)){const de=Math.min(p.value,U);v.style.height=`${Math.ceil(de)}px`,v.style.maxHeight=`${Math.ceil(U)}px`,v.style.overflow="auto";const Ce=Math.ceil(de)-G;Ce!==0&&D<window.scrollY&&window.scrollBy(0,Ce);return}const ke=ie();if(ke!=null&&ke>0){const de=Math.min(ke,U);v.style.height=`${Math.ceil(de)}px`,v.style.maxHeight=`${Math.ceil(U)}px`,v.style.overflow="auto";const Ce=Math.ceil(de)-G;Ce!==0&&D<window.scrollY&&window.scrollBy(0,Ce);return}if(p.value!=null){const de=Math.min(p.value,U);v.style.height=`${Math.ceil(de)}px`,v.style.maxHeight=`${Math.ceil(U)}px`,v.style.overflow="auto";const Ce=Math.ceil(de)-G;Ce!==0&&D<window.scrollY&&window.scrollBy(0,Ce);return}const ye=Math.ceil((($=v.getBoundingClientRect)==null?void 0:$.call(v).height)||0);if(ye>0){const de=Math.min(ye,U);v.style.height=`${Math.ceil(de)}px`,v.style.maxHeight=`${Math.ceil(U)}px`,v.style.overflow="auto";const Ce=Math.ceil(de)-G;Ce!==0&&D<window.scrollY&&window.scrollBy(0,Ce);return}const xe=Number.parseFloat(v.style.height);if(!Number.isNaN(xe)&&xe>0){const de=Math.ceil(Math.min(xe,U));v.style.height=`${de}px`;const Ce=de-G;Ce!==0&&D<window.scrollY&&window.scrollBy(0,Ce)}else{const de=Math.ceil(U);v.style.height=`${de}px`;const Ce=de-G;Ce!==0&&D<window.scrollY&&window.scrollBy(0,Ce)}v.style.maxHeight=`${Math.ceil(U)}px`,v.style.overflow="auto"}catch(v){}}function Q(){var C,D;const $=(D=(C=n.monacoOptions)==null?void 0:C.MAX_HEIGHT)!=null?D:500;if(typeof $=="number")return $;const v=String($).match(/^(\d+(?:\.\d+)?)/);return v?Number.parseFloat(v[1]):500}const oe=l.computed(()=>{const $=c.value.trim().toLowerCase();return n.isShowPreview&&($==="html"||$==="svg")}),_e=l.computed(()=>c.value.trim().toLowerCase()==="mermaid");l.watch(()=>n.node.language,$=>{c.value=$}),l.watch(()=>n.node.code,$=>ee(null,null,function*(){var v,C;if(n.stream!==!1){if(c.value||(c.value=L($)),x&&!d.value&&i.value)try{yield Ge(i.value)}catch(D){}K.value?A(String((v=n.node.originalCode)!=null?v:""),String((C=n.node.updatedCode)!=null?C:""),c.value):_($,c.value),u.value&&Un(()=>F())}}));const ge=l.computed(()=>{const $=c.value.trim().toLowerCase();return To[$]||$.charAt(0).toUpperCase()+$.slice(1)}),Ne=l.computed(()=>{const $=c.value.trim().toLowerCase();return Do($.split(":")[0])}),He=l.computed(()=>{const $={},v=G=>{if(G!=null)return typeof G=="number"?`${G}px`:String(G)},C=v(n.minWidth),D=v(n.maxWidth);return C&&($.minWidth=C),D&&($.maxWidth=D),$});function Ie(){return ee(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),a.value=!0,o("copy",n.node.code),setTimeout(()=>{a.value=!1},1e3)}catch($){console.error("复制失败:",$)}})}function ze($){const v=$;return!v||v.disabled}function De($,v,C="top"){if(ze($.currentTarget))return;const D=$,G=(D==null?void 0:D.clientX)!=null&&(D==null?void 0:D.clientY)!=null?{x:D.clientX,y:D.clientY}:void 0;xn($.currentTarget,v,C,!1,G,n.isDark)}function ce(){Rr()}function me($){if(ze($.currentTarget))return;const v=a.value?r("common.copied")||"Copied":r("common.copy")||"Copy",C=$,D=(C==null?void 0:C.clientX)!=null&&(C==null?void 0:C.clientY)!=null?{x:C.clientX,y:C.clientY}:void 0;xn($.currentTarget,v,"top",!1,D,n.isDark)}function qe(){u.value=!u.value;const $=K.value?b():S(),v=i.value;!$||!v||(u.value?(Ve(!0),v.style.maxHeight="none",v.style.overflow="visible",F()):(Ve(!1),v.style.overflow="auto",q()))}function yt(){var $,v,C;if(f.value=!f.value,f.value){if(i.value){const D=Math.ceil(((v=($=i.value).getBoundingClientRect)==null?void 0:v.call($).height)||0);D>0&&(p.value=D)}Ve(!1)}else{u.value&&Ve(!0),i.value&&p.value!=null&&(i.value.style.height=`${p.value}px`);const D=K.value?b():S();try{(C=D==null?void 0:D.layout)==null||C.call(D)}catch(G){}m=2,Un(()=>{u.value?F():q()})}}l.watch(()=>V.value,($,v)=>{const C=K.value?b():S();C&&typeof $=="number"&&Number.isFinite($)&&$>0&&(C.updateOptions({fontSize:$}),u.value&&!f.value&&F())},{flush:"post",immediate:!1});function xt(){if(!oe.value)return;const $=(c.value||n.node.language).toLowerCase(),v=$==="html"?"text/html":"image/svg+xml",C=$==="html"?r("artifacts.htmlPreviewTitle")||"HTML Preview":r("artifacts.svgPreviewTitle")||"SVG Preview";o("previewCode",{node:n.node,artifactType:v,artifactTitle:C,id:`temp-${$}-${Date.now()}`})}function Ve($){var v,C;try{if(K.value){const D=b();(v=D==null?void 0:D.updateOptions)==null||v.call(D,{automaticLayout:$})}else{const D=S();(C=D==null?void 0:D.updateOptions)==null||C.call(D,{automaticLayout:$})}}catch(D){}}function bt($){return ee(this,null,function*(){var C,D,G;if(!x)return;K.value?(H(),y?yield y($,String((C=n.node.originalCode)!=null?C:""),String((D=n.node.updatedCode)!=null?D:""),c.value):yield x($,n.node.code,c.value)):yield x($,n.node.code,c.value);const v=K.value?b():S();if(typeof((G=n.monacoOptions)==null?void 0:G.fontSize)=="number")v==null||v.updateOptions({fontSize:n.monacoOptions.fontSize,automaticLayout:!1}),N.value=n.monacoOptions.fontSize,V.value=n.monacoOptions.fontSize;else{const U=J();U&&U>0?(N.value=U,V.value=U):(N.value=12,V.value=12)}!u.value&&!f.value&&q(),n.loading===!1&&(yield l.nextTick(),Un(()=>{u.value&&!f.value?F():f.value||q()}))})}function Ge($){return x?R||(d.value=!0,R=ee(null,null,function*(){yield bt($)}).finally(()=>{R=null}),R):null}const jt=l.watch(()=>[i.value,_e.value,K.value,n.stream,n.loading,h.value,E.value],ye=>ee(null,[ye],function*([$,v,C,D,G,U,ke]){if(!$||!x||!ke||D===!1&&G!==!1)return;if(_e.value){T(),jt();return}const xe=Ge($);xe&&(yield xe,jt())})),_t=l.watch(()=>[n.darkTheme,n.lightTheme,d.value,E.value],()=>{if(!(!d.value||!E.value)){if(_e.value)return _t();Qe()}});function Ct(){return n.isDark?n.darkTheme:n.lightTheme}function Qe(){const $=Ct();$&&W($)}const Nt=l.watch(()=>[n.monacoOptions,E.value],()=>{var C,D;if(!x||!E.value)return;if(_e.value)return Nt();const $=K.value?b():S(),v=typeof((C=n.monacoOptions)==null?void 0:C.fontSize)=="number"?n.monacoOptions.fontSize:Number.isFinite(V.value)?V.value:void 0;typeof v=="number"&&Number.isFinite(v)&&v>0&&((D=$==null?void 0:$.updateOptions)==null||D.call($,{fontSize:v})),u.value&&!f.value?F():f.value||q()},{deep:!0}),Et=l.watch(()=>[n.loading,E.value],C=>ee(null,[C],function*([$,v]){if(v){if(_e.value){l.nextTick(()=>{Et==null||Et()});return}$||(yield l.nextTick(),Un(()=>{f.value||(u.value?F():q()),Et()}))}}),{immediate:!0,flush:"post"});return l.onUnmounted(()=>{T()}),($,v)=>P.value?(l.openBlock(),l.createBlock(l.unref(on),{key:0,node:e.node,loading:n.loading},null,8,["node","loading"])):(l.openBlock(),l.createElementBlock("div",{key:1,ref_key:"container",ref:s,style:l.normalizeStyle(He.value),class:l.normalizeClass(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",{"is-rendering":n.loading,"is-dark":n.isDark}]])},[n.showHeader?(l.openBlock(),l.createElementBlock("div",mp,[l.renderSlot($.$slots,"header-left",{},()=>[l.createElementVNode("div",gp,[l.createElementVNode("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:Ne.value},null,8,kp),l.createElementVNode("span",vp,l.toDisplayString(ge.value),1)])],!0),l.renderSlot($.$slots,"header-right",{},()=>[l.createElementVNode("div",wp,[l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":f.value,onClick:yt,onMouseenter:v[0]||(v[0]=C=>De(C,f.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onFocus:v[1]||(v[1]=C=>De(C,f.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onMouseleave:ce,onBlur:ce},[(l.openBlock(),l.createElementBlock("svg",{style:l.normalizeStyle({rotate:f.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"},[...v[17]||(v[17]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,yp),n.showFontSizeButtons&&n.enableFontSizeControl?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(V.value)?V.value<=Pi:!1,onClick:v[2]||(v[2]=C=>he()),onMouseenter:v[3]||(v[3]=C=>De(C,l.unref(r)("common.decrease")||"Decrease")),onFocus:v[4]||(v[4]=C=>De(C,l.unref(r)("common.decrease")||"Decrease")),onMouseleave:ce,onBlur:ce},[...v[18]||(v[18]=[l.createElementVNode("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"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,xp),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!j.value||V.value===N.value,onClick:v[5]||(v[5]=C=>pe()),onMouseenter:v[6]||(v[6]=C=>De(C,l.unref(r)("common.reset")||"Reset")),onFocus:v[7]||(v[7]=C=>De(C,l.unref(r)("common.reset")||"Reset")),onMouseleave:ce,onBlur:ce},[...v[19]||(v[19]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),l.createElementVNode("path",{d:"M3 3v5h5"})])],-1)])],40,bp),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(V.value)?V.value>=Oi:!1,onClick:v[8]||(v[8]=C=>be()),onMouseenter:v[9]||(v[9]=C=>De(C,l.unref(r)("common.increase")||"Increase")),onFocus:v[10]||(v[10]=C=>De(C,l.unref(r)("common.increase")||"Increase")),onMouseleave:ce,onBlur:ce},[...v[20]||(v[20]=[l.createElementVNode("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"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,_p)],64)):l.createCommentVNode("",!0),n.showCopyButton?(l.openBlock(),l.createElementBlock("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":a.value?l.unref(r)("common.copied")||"Copied":l.unref(r)("common.copy")||"Copy",onClick:Ie,onMouseenter:v[11]||(v[11]=C=>me(C)),onFocus:v[12]||(v[12]=C=>me(C)),onMouseleave:ce,onBlur:ce},[a.value?(l.openBlock(),l.createElementBlock("svg",Sp,[...v[22]||(v[22]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",Ep,[...v[21]||(v[21]=[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),l.createElementVNode("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,Cp)):l.createCommentVNode("",!0),n.showExpandButton?(l.openBlock(),l.createElementBlock("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":u.value,onClick:qe,onMouseenter:v[13]||(v[13]=C=>De(C,u.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onFocus:v[14]||(v[14]=C=>De(C,u.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onMouseleave:ce,onBlur:ce},[u.value?(l.openBlock(),l.createElementBlock("svg",Ap,[...v[23]||(v[23]=[l.createElementVNode("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)])])):(l.openBlock(),l.createElementBlock("svg",Bp,[...v[24]||(v[24]=[l.createElementVNode("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,Mp)):l.createCommentVNode("",!0),oe.value&&n.showPreviewButton?(l.openBlock(),l.createElementBlock("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":l.unref(r)("common.preview")||"Preview",onClick:xt,onMouseenter:v[15]||(v[15]=C=>De(C,l.unref(r)("common.preview")||"Preview")),onFocus:v[16]||(v[16]=C=>De(C,l.unref(r)("common.preview")||"Preview")),onMouseleave:ce,onBlur:ce},[...v[25]||(v[25]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24"},[l.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[l.createElementVNode("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"}),l.createElementVNode("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,Dp)):l.createCommentVNode("",!0)])],!0)])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref_key:"codeEditor",ref:i,class:l.normalizeClass(["code-editor-container",[e.stream?"":"code-height-placeholder"]])},null,2),[[l.vShow,!f.value&&(e.stream?!0:!e.loading)]]),l.withDirectives(l.createElementVNode("div",Tp,[l.renderSlot($.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[v[26]||(v[26]=l.createElementVNode("div",{class:"loading-skeleton"},[l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line short"})],-1))],!0)],512),[[l.vShow,!e.stream&&e.loading]]),l.createElementVNode("span",$p,l.toDisplayString(a.value?l.unref(r)("common.copied")||"Copied":""),1)],6))}}),Ln=Se(Np,[["__scopeId","data-v-8443b140"]]);Ln.install=e=>{e.component(Ln.__name,Ln)};const Ip=Object.freeze(Object.defineProperty({__proto__:null,default:Ln},Symbol.toStringTag,{value:"Module"})),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)"}},Rp={class:"flex items-center space-x-2"},Lp=["innerHTML"],Pp={class:"text-sm font-medium font-mono"},Op={class:"flex items-center space-x-2"},zp=["aria-pressed"],Vp=["disabled"],jp=["disabled"],Hp=["disabled"],qp=["aria-label"],Wp={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"},Up={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"},Kp=["aria-pressed"],Xp={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"},Zp={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"},Yp=["aria-label"],Gp={class:"code-loading-placeholder"},Hi=10,qi=36,Wi=1,Jp=l.defineComponent({__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 ie;const n=e,o=t,{t:r}=Lr(),i=l.ref(String((ie=n.node.language)!=null?ie:"")),s=l.ref(!1),a=l.ref(!1),c=l.ref(!1),u=l.ref(null),f=l.ref(!0),d=l.ref(0),h=l.ref(14),p=l.ref(h.value),m=l.computed(()=>{const z=h.value,F=p.value;return typeof z=="number"&&Number.isFinite(z)&&z>0&&typeof F=="number"&&Number.isFinite(F)&&F>0}),g=l.computed(()=>{const z=i.value.trim().toLowerCase();return To[z]||z.charAt(0).toUpperCase()+z.slice(1)}),w=l.computed(()=>i.value.trim().toLowerCase()==="mermaid"),E=l.computed(()=>{const z=i.value.trim().toLowerCase();return Do(z.split(":")[0])}),x=l.computed(()=>{const z=i.value.trim().toLowerCase();return n.isShowPreview&&(z==="html"||z==="svg")}),y=l.computed(()=>{const z={},F=oe=>{if(oe!=null)return typeof oe=="number"?`${oe}px`:String(oe)},q=F(n.minWidth),Q=F(n.maxWidth);return q&&(z.minWidth=q),Q&&(z.maxWidth=Q),z}),_=l.computed(()=>({fontSize:`${p.value}px`}));function A(){return n.isDark?n.darkTheme:n.lightTheme}let k,S,b,T=()=>{};function H(){return ee(this,null,function*(){if(!S)try{const z=yield import("stream-markdown");if(S=z.createShikiStreamRenderer,b=z.registerHighlight,T=z.disposeHighlighter,b({themes:n.themes}),k=S(u.value,{theme:A()}),!n.loading){const F=i.value.split(":")[0].toLocaleLowerCase().trim();k.updateCode(n.node.code,F)}}catch(z){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",z)}})}function R(){return ee(this,null,function*(){if(w.value){T(),k==null||k.dispose();return}H()})}R(),l.onMounted(()=>{R()}),l.watch(()=>n.themes,()=>ee(null,null,function*(){b&&b({themes:n.themes})})),l.watch(()=>[n.node.code,n.node.language],q=>ee(null,[q],function*([z,F]){if(F!==i.value&&(i.value=F.trim()),!!u.value){if(w.value){T(),k==null||k.dispose();return}k||(yield R()),!(!k||!z)&&(n.stream===!1&&n.loading||(F=F.split(":")[0].toLocaleLowerCase().trim(),k.updateCode(z,F)))}}));const L=l.watch(()=>[n.darkTheme,n.lightTheme],()=>ee(null,null,function*(){if(u.value){if(w.value)return T(),k==null||k.dispose(),L();k||(yield R()),k==null||k.setTheme(A())}}));l.watch(()=>n.node.code,()=>ee(null,null,function*(){if(a.value||!f.value)return;yield l.nextTick();const z=u.value;z&&z.scrollHeight>z.clientHeight&&(z.scrollTop=z.scrollHeight)}));function W(z,F=50){return z.scrollHeight-z.scrollTop-z.clientHeight<=F}function K(){const z=u.value;if(!z||a.value)return;const F=z.scrollTop;F<d.value?f.value=!1:W(z)&&(f.value=!0),d.value=F}function P(){return ee(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),s.value=!0,o("copy",n.node.code),setTimeout(()=>{s.value=!1},1e3)}catch(z){console.error("Copy failed:",z)}})}function N(z){const F=z;return!F||F.disabled}function V(z,F,q="top"){if(N(z.currentTarget))return;const Q=z,oe=(Q==null?void 0:Q.clientX)!=null&&(Q==null?void 0:Q.clientY)!=null?{x:Q.clientX,y:Q.clientY}:void 0;xn(z.currentTarget,F,q,!1,oe,n.isDark)}function j(){Rr()}function Y(z){if(N(z.currentTarget))return;const F=s.value?r("common.copied")||"Copied":r("common.copy")||"Copy",q=z,Q=(q==null?void 0:q.clientX)!=null&&(q==null?void 0:q.clientY)!=null?{x:q.clientX,y:q.clientY}:void 0;xn(z.currentTarget,F,"top",!1,Q,n.isDark)}function J(){a.value=!a.value;const z=u.value;z&&(a.value?(z.style.maxHeight="none",z.style.overflow="visible"):(z.style.maxHeight="500px",z.style.overflow="auto",f.value=!0,l.nextTick(()=>{z.scrollHeight>z.clientHeight&&(z.scrollTop=z.scrollHeight)})))}function te(){c.value=!c.value}function re(){const z=Math.min(qi,p.value+Wi);p.value=z}function be(){const z=Math.max(Hi,p.value-Wi);p.value=z}function he(){p.value=h.value}function pe(){if(!x.value)return;const z=(i.value||n.node.language).toLowerCase(),F=z==="html"?"text/html":"image/svg+xml",q=z==="html"?"HTML Preview":"SVG Preview";o("previewCode",{type:F,content:n.node.code,title:q})}return(z,F)=>w.value?(l.openBlock(),l.createBlock(l.unref(vn),{key:0,node:e.node,"is-dark":n.isDark,loading:n.loading},null,8,["node","is-dark","loading"])):(l.openBlock(),l.createElementBlock("div",{key:1,style:l.normalizeStyle(y.value),class:l.normalizeClass(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",n.isDark?"is-dark":""]])},[n.showHeader?(l.openBlock(),l.createElementBlock("div",Fp,[l.renderSlot(z.$slots,"header-left",{},()=>[l.createElementVNode("div",Rp,[l.createElementVNode("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:E.value},null,8,Lp),l.createElementVNode("span",Pp,l.toDisplayString(g.value),1)])],!0),l.renderSlot(z.$slots,"header-right",{},()=>[l.createElementVNode("div",Op,[l.createElementVNode("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:te,onMouseenter:F[0]||(F[0]=q=>V(q,c.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onFocus:F[1]||(F[1]=q=>V(q,c.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onMouseleave:j,onBlur:j},[(l.openBlock(),l.createElementBlock("svg",{style:l.normalizeStyle({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"},[...F[17]||(F[17]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,zp),n.showFontSizeButtons&&n.enableFontSizeControl?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(p.value)?p.value<=Hi:!1,onClick:F[2]||(F[2]=q=>be()),onMouseenter:F[3]||(F[3]=q=>V(q,l.unref(r)("common.decrease")||"Decrease")),onFocus:F[4]||(F[4]=q=>V(q,l.unref(r)("common.decrease")||"Decrease")),onMouseleave:j,onBlur:j},[...F[18]||(F[18]=[l.createElementVNode("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"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,Vp),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!m.value||p.value===h.value,onClick:F[5]||(F[5]=q=>he()),onMouseenter:F[6]||(F[6]=q=>V(q,l.unref(r)("common.reset")||"Reset")),onFocus:F[7]||(F[7]=q=>V(q,l.unref(r)("common.reset")||"Reset")),onMouseleave:j,onBlur:j},[...F[19]||(F[19]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),l.createElementVNode("path",{d:"M3 3v5h5"})])],-1)])],40,jp),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(p.value)?p.value>=qi:!1,onClick:F[8]||(F[8]=q=>re()),onMouseenter:F[9]||(F[9]=q=>V(q,l.unref(r)("common.increase")||"Increase")),onFocus:F[10]||(F[10]=q=>V(q,l.unref(r)("common.increase")||"Increase")),onMouseleave:j,onBlur:j},[...F[20]||(F[20]=[l.createElementVNode("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"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,Hp)],64)):l.createCommentVNode("",!0),n.showCopyButton?(l.openBlock(),l.createElementBlock("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?l.unref(r)("common.copied")||"Copied":l.unref(r)("common.copy")||"Copy",onClick:P,onMouseenter:F[11]||(F[11]=q=>Y(q)),onFocus:F[12]||(F[12]=q=>Y(q)),onMouseleave:j,onBlur:j},[s.value?(l.openBlock(),l.createElementBlock("svg",Up,[...F[22]||(F[22]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",Wp,[...F[21]||(F[21]=[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),l.createElementVNode("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,qp)):l.createCommentVNode("",!0),n.showExpandButton?(l.openBlock(),l.createElementBlock("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:J,onMouseenter:F[13]||(F[13]=q=>V(q,a.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onFocus:F[14]||(F[14]=q=>V(q,a.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onMouseleave:j,onBlur:j},[a.value?(l.openBlock(),l.createElementBlock("svg",Xp,[...F[23]||(F[23]=[l.createElementVNode("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)])])):(l.openBlock(),l.createElementBlock("svg",Zp,[...F[24]||(F[24]=[l.createElementVNode("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,Kp)):l.createCommentVNode("",!0),x.value&&n.showPreviewButton?(l.openBlock(),l.createElementBlock("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":l.unref(r)("common.preview")||"Preview",onClick:pe,onMouseenter:F[15]||(F[15]=q=>V(q,l.unref(r)("common.preview")||"Preview")),onFocus:F[16]||(F[16]=q=>V(q,l.unref(r)("common.preview")||"Preview")),onMouseleave:j,onBlur:j},[...F[25]||(F[25]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("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"}),l.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})])],-1)])],40,Yp)):l.createCommentVNode("",!0)])],!0)])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref_key:"codeBlockContent",ref:u,class:"code-block-content",style:l.normalizeStyle(_.value),onScroll:K},null,36),[[l.vShow,!c.value&&(e.stream?!0:!e.loading)]]),l.withDirectives(l.createElementVNode("div",Gp,[l.renderSlot(z.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[F[26]||(F[26]=l.createElementVNode("div",{class:"loading-skeleton"},[l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line short"})],-1))],!0)],512),[[l.vShow,!e.stream&&e.loading]])],6))}}),Xn=Se(Jp,[["__scopeId","data-v-9201c1b9"]]);Xn.install=e=>{e.component(Xn.__name,Xn)};let At=null,ln=null,Ui=!1;const lt=new Map,Kt=new Map,us=200;let bn=5;const mn=new Set;function Qn(){if(lt.size<bn&&mn.size){const e=Array.from(mn);mn.clear();for(const t of e)try{t()}catch(n){}}}let Lt=null;function Qp(e){At=e,ln=null,At.onmessage=t=>{const{id:n,html:o,error:r}=t.data,i=lt.get(n);if(i)if(lt.delete(n),clearTimeout(i.timeoutId),Qn(),r)i.reject(new Error(r));else{const{content:s,displayMode:a}=t.data;if(s){const c=`${a?"d":"i"}:${s}`;if(Kt.set(c,o),Kt.size>us){const u=Kt.keys().next().value;Kt.delete(u)}}i.resolve(o)}},At.onerror=t=>{console.error("[katexWorkerClient] Worker error:",t);for(const[n,o]of lt.entries())clearTimeout(o.timeoutId),o.reject(new Error(`Worker error: ${t.message}`));lt.clear(),Qn()}}function em(){var e;At&&((e=At.terminate)==null||e.call(At)),At=null,ln=null}function tm(){return At||(ln=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),ln.name="WorkerInitError",ln.code="WORKER_INIT_ERROR",null)}function nm(e){Ui=!!e,At&&At.postMessage({type:"init",debug:Ui})}function ds(e,t=!0,n=2e3,o){return ee(this,null,function*(){const r=performance.now();if(ln)return Promise.reject(ln);const i=`${t?"d":"i"}:${e}`,s=Kt.get(i);if(s)return Lt&&Lt.recordRender({type:"cache-hit",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!0}),Promise.resolve(s);const a=tm();if(!a)return Promise.reject(ln);if(lt.size>=bn){const c=new Error("Worker busy");return c.name="WorkerBusy",c.code="WORKER_BUSY",c.busy=!0,c.inFlight=lt.size,c.max=bn,Lt&&Lt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:"busy"}),Promise.reject(c)}return new Promise((c,u)=>{if(o!=null&&o.aborted){const E=new Error("Aborted");E.name="AbortError",u(E);return}const f=Math.random().toString(36).slice(2),d=globalThis.setTimeout(()=>{lt.delete(f);const E=new Error("Worker render timed out");E.name="WorkerTimeout",E.code="WORKER_TIMEOUT",Lt&&Lt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:"timeout"}),u(E),Qn()},n),h=()=>{globalThis.clearTimeout(d),lt.has(f)&<.delete(f);const E=new Error("Aborted");E.name="AbortError",u(E),Qn()};o&&o.addEventListener("abort",h,{once:!0});const p=c,m=u,g=E=>{Lt&&Lt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!0}),p(E)},w=E=>{Lt&&Lt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:(E==null?void 0:E.message)||String(E)}),m(E)};lt.set(f,{resolve:g,reject:w,timeoutId:d}),a.postMessage({id:f,content:e,displayMode:t})})})}function $o(e,t=!0,n){const o=`${t?"d":"i"}:${e}`;if(Kt.set(o,n),Kt.size>us){const r=Kt.keys().next().value;Kt.delete(r)}}function rm(){return{inFlight:lt.size,max:bn}}function om(e){Number.isFinite(e)&&e>0&&(bn=Math.floor(e))}const Or="WORKER_BUSY";function im(){return lt.size>=bn}function fs(e=2e3,t){return lt.size<bn?Promise.resolve():new Promise((n,o)=>{let r=!1,i;const s=()=>{r||(r=!0,i&&globalThis.clearTimeout(i),mn.delete(s),n())};if(mn.add(s),i=globalThis.setTimeout(()=>{if(r)return;r=!0,mn.delete(s);const a=new Error("Wait for worker slot timed out");a.name="WorkerBusyTimeout",a.code="WORKER_BUSY_TIMEOUT",o(a)},e),queueMicrotask(()=>Qn()),t){const a=()=>{if(r)return;r=!0,i&&globalThis.clearTimeout(i),mn.delete(s);const c=new Error("Aborted");c.name="AbortError",o(c)};t.aborted?a():t.addEventListener("abort",a,{once:!0})}})}const Xt={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function lm(e){e.timeout!=null&&(Xt.timeout=Math.max(0,Math.floor(e.timeout))),e.waitTimeout!=null&&(Xt.waitTimeout=Math.max(0,Math.floor(e.waitTimeout))),e.backoffMs!=null&&(Xt.backoffMs=Math.max(0,Math.floor(e.backoffMs))),e.maxRetries!=null&&(Xt.maxRetries=Math.max(0,Math.floor(e.maxRetries)))}function sm(){return ne({},Xt)}function No(o){return ee(this,arguments,function*(e,t=!0,n={}){var f,d,h,p;const r=(f=n.timeout)!=null?f:Xt.timeout,i=(d=n.waitTimeout)!=null?d:Xt.waitTimeout,s=(h=n.backoffMs)!=null?h:Xt.backoffMs,a=(p=n.maxRetries)!=null?p:Xt.maxRetries,c=n.signal;let u=0;for(;;){if(c!=null&&c.aborted){const m=new Error("Aborted");throw m.name="AbortError",m}try{return yield ds(e,t,r,c)}catch(m){if((m==null?void 0:m.code)!==Or||u>=a)throw m;if(u++,yield fs(i,c).catch(()=>{}),c!=null&&c.aborted){const g=new Error("Aborted");throw g.name="AbortError",g}s>0&&(yield new Promise(g=>globalThis.setTimeout(g,s*u)))}}})}const am={key:0,class:"math-loading-overlay"},cm=l.defineComponent({__name:"MathBlockNode",props:{node:{}},setup(e){const t=e;let n=null;const o=l.ref(null),r=l.ref(null);let i=!1,s=0,a=!1,c=null;const u=Hn();let f=null;const d=l.ref(!0);function h(){return ee(this,null,function*(){if(!t.node.content||!r.value||a)return;if(!i)try{!f&&o.value&&(f=u(o.value)),yield f==null?void 0:f.whenVisible}catch(g){}c&&(c.abort(),c=null);const p=++s,m=new AbortController;c=m,No(t.node.content,!0,{timeout:3e3,waitTimeout:2e3,maxRetries:1,signal:m.signal}).then(g=>{a||p!==s||r.value&&(r.value.innerHTML=g,i=!0,d.value=!1)}).catch(g=>ee(null,null,function*(){if(a||p!==s||!r.value)return;const w=(g==null?void 0:g.code)||(g==null?void 0:g.name);if((w==="WORKER_INIT_ERROR"||(g==null?void 0:g.fallbackToRenderer)||(w===Or||w==="WORKER_TIMEOUT"))&&(n||(n=yield tr()),n)){try{const y=n.renderToString(t.node.content,{throwOnError:t.node.loading,displayMode:!0});r.value.innerHTML=y,i=!0,d.value=!1,$o(t.node.content,!0,y)}catch(y){}return}i||(d.value=!0),t.node.loading||(d.value=!1,r.value.textContent=t.node.raw)}))})}return l.watch(()=>t.node.content,()=>{h()}),l.onMounted(()=>{h()}),l.onBeforeUnmount(()=>{var p;a=!0,c&&(c.abort(),c=null),(p=f==null?void 0:f.destroy)==null||p.call(f),f=null}),(p,m)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"containerEl",ref:o,class:"math-block text-center overflow-x-auto relative min-h-[40px]"},[l.createVNode(l.Transition,{name:"math-fade"},{default:l.withCtx(()=>[d.value?(l.openBlock(),l.createElementBlock("div",am,[...m[0]||(m[0]=[l.createElementVNode("div",{class:"math-loading-spinner"},null,-1)])])):l.createCommentVNode("",!0)]),_:1}),l.createElementVNode("div",{ref_key:"mathBlockElement",ref:r,class:l.normalizeClass({"math-rendering":d.value})},null,2)],512))}}),Pn=Se(cm,[["__scopeId","data-v-2e076ab9"]]);Pn.install=e=>{e.component(Pn.__name,Pn)};const um=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"})),dm={class:"math-inline__loading",role:"status","aria-live":"polite"},fm=l.defineComponent({__name:"MathInlineNode",props:{node:{}},setup(e){const t=e;let n=null;const o=l.ref(null),r=l.ref(null);let i=!1,s=0,a=!1,c=null;const u=l.ref(!0),f=Hn();let d=null;function h(){return ee(this,null,function*(){if(!t.node.content||!r.value||a)return;c&&(c.abort(),c=null);const p=++s,m=new AbortController;if(c=m,!i)try{!d&&o.value&&(d=f(o.value)),yield d==null?void 0:d.whenVisible}catch(g){}No(t.node.content,!1,{timeout:1500,waitTimeout:0,maxRetries:0,signal:m.signal}).then(g=>{a||p!==s||r.value&&(r.value.innerHTML=g,u.value=!1,i=!0)}).catch(g=>ee(null,null,function*(){if(a||p!==s||!r.value)return;const w=(g==null?void 0:g.code)||(g==null?void 0:g.name);if((w==="WORKER_INIT_ERROR"||(g==null?void 0:g.fallbackToRenderer)||(w===Or||w==="WORKER_TIMEOUT"))&&(n||(n=yield tr()),n)){try{const y=n.renderToString(t.node.content,{throwOnError:t.node.loading,displayMode:!1});u.value=!1,r.value.innerHTML=y,i=!0,$o(t.node.content,!1,y)}catch(y){}return}i||(u.value=!0),t.node.loading||(u.value=!1,r.value.textContent=t.node.raw)}))})}return l.watch(()=>t.node.content,()=>{h()}),l.onMounted(()=>{h()}),l.onBeforeUnmount(()=>{var p;a=!0,c&&(c.abort(),c=null),(p=d==null?void 0:d.destroy)==null||p.call(d),d=null}),(p,m)=>(l.openBlock(),l.createElementBlock("span",{ref_key:"containerEl",ref:o,class:"math-inline-wrapper"},[l.withDirectives(l.createElementVNode("span",{ref_key:"mathElement",ref:r,class:"math-inline"},null,512),[[l.vShow,!u.value]]),u.value?(l.openBlock(),l.createBlock(l.Transition,{key:0,name:"table-node-fade"},{default:l.withCtx(()=>[l.createElementVNode("span",dm,[l.renderSlot(p.$slots,"loading",{isLoading:u.value},()=>[m[0]||(m[0]=l.createElementVNode("span",{class:"math-inline__spinner animate-spin","aria-hidden":"true"},null,-1)),m[1]||(m[1]=l.createElementVNode("span",{class:"sr-only"},"Loading",-1))],!0)])]),_:3})):l.createCommentVNode("",!0)],512))}}),On=Se(fm,[["__scopeId","data-v-6b23009e"]]);On.install=e=>{e.component(On.__name,On)};const hm=Object.freeze(Object.defineProperty({__proto__:null,default:On},Symbol.toStringTag,{value:"Module"})),pm={AdmonitionNode:Rn,BlockquoteNode:Mn,CheckboxNode:Dt,CodeBlockNode:Ln,DefinitionListNode:An,EmojiNode:et,FootnoteNode:Dn,FootnoteReferenceNode:at,HardBreakNode:tn,HeadingNode:Pr,HighlightNode:ft,ImageNode:nn,InlineCodeNode:tt,PreCodeNode:on,InsertNode:dt,LinkNode:it,ListItemNode:Tn,ListNode:$n,MathBlockNode:Pn,MathInlineNode:On,MermaidBlockNode:vn,ParagraphNode:Nn,StrikethroughNode:ot,StrongNode:rt,SubscriptNode:ut,SuperscriptNode:ct,TableNode:In,TextNode:Xe,ThematicBreakNode:Fn,ReferenceNode:nt,MarkdownCodeBlockNode:Xn},mm={install(e,t){Object.entries(pm).forEach(([n,o])=>{e.component(n,o)}),t!=null&&t.getLanguageIcon&&cs(t.getLanguageIcon),t!=null&&t.mathOptions&&xl(t.mathOptions)}};exports.AdmonitionNode=Rn;exports.BlockquoteNode=Mn;exports.CheckboxNode=Dt;exports.CodeBlockNode=Ln;exports.DefinitionListNode=An;exports.ESCAPED_TEX_BRACE_COMMANDS=Zn;exports.EmojiNode=et;exports.FootnoteNode=Dn;exports.FootnoteReferenceNode=at;exports.HardBreakNode=tn;exports.HeadingNode=Pr;exports.HighlightNode=ft;exports.ImageNode=nn;exports.InlineCodeNode=tt;exports.InsertNode=dt;exports.KATEX_COMMANDS=xo;exports.LinkNode=it;exports.ListItemNode=Tn;exports.ListNode=$n;exports.MERMAID_WORKER_BUSY_CODE=os;exports.MarkdownCodeBlockNode=Xn;exports.MarkdownRender=st;exports.MathBlockNode=Pn;exports.MathInlineNode=On;exports.MermaidBlockNode=vn;exports.ParagraphNode=Nn;exports.PreCodeNode=on;exports.ReferenceNode=nt;exports.StrikethroughNode=ot;exports.StrongNode=rt;exports.SubscriptNode=ut;exports.SuperscriptNode=ct;exports.TEX_BRACE_COMMANDS=Cl;exports.TableNode=In;exports.TextNode=Xe;exports.ThematicBreakNode=Fn;exports.VueRendererMarkdown=mm;exports.WORKER_BUSY_CODE=Or;exports.applyContainers=bl;exports.applyMath=Al;exports.canParseOffthread=ls;exports.clearGlobalCustomComponents=xf;exports.clearKaTeXWorker=em;exports.clearMermaidWorker=g1;exports.clearRegisteredMarkdownPlugins=sf;exports.default=st;exports.findMatchingClose=_l;exports.findPrefixOffthread=ss;exports.getCustomNodeComponents=gt;exports.getKaTeXBackpressureDefaults=sm;exports.getKaTeXWorkerLoad=rm;exports.getLanguageIcon=Do;exports.getMarkdown=Pl;exports.getMermaidWorkerLoad=p1;exports.getUseMonaco=as;exports.isKaTeXWorkerBusy=im;exports.isMathLike=Wn;exports.languageMap=To;exports.normalizeStandaloneBackslashT=pn;exports.parseFenceToken=Vn;exports.parseInlineTokens=Oe;exports.parseMarkdownToStructure=Ll;exports.processTokens=oo;exports.registerMarkdownPlugin=lf;exports.removeCustomComponents=yf;exports.renderKaTeXInWorker=ds;exports.renderKaTeXWithBackpressure=No;exports.setCustomComponents=wf;exports.setDefaultI18nMap=Gh;exports.setDefaultMathOptions=xl;exports.setKaTeXBackpressureDefaults=lm;exports.setKaTeXCache=$o;exports.setKaTeXWorker=Qp;exports.setKaTeXWorkerDebug=nm;exports.setKaTeXWorkerMaxConcurrency=om;exports.setLanguageIconResolver=cs;exports.setMermaidWorker=m1;exports.setMermaidWorkerClientDebug=f1;exports.setMermaidWorkerMaxConcurrency=h1;exports.terminateWorker=co;exports.waitForKaTeXWorkerSlot=fs;
|
|
319
|
+
`;let fo=null;function cs(e){fo=e!=null?e:null}function To(e){if(fo){const t=fo(e);if(t!=null&&t!=="")return t}switch(e){case"javascript":case"js":return R0;case"typescript":case"ts":return hp;case"jsx":return F0;case"tsx":return fp;case"html":return N0;case"css":return _0;case"scss":return np;case"json":return L0;case"python":case"py":return J0;case"ruby":case"rb":return ep;case"go":case"golang":return D0;case"r":return Q0;case"java":return I0;case"kotlin":case"kt":return O0;case"c":return k0;case"cpp":case"c++":return y0;case"cs":case"csharp":return b0;case"php":return Y0;case"scala":return rp;case"shell":case"sh":case"bash":case"zsh":case"powershell":case"ps1":case"bat":case"batch":case"shellscript":return op;case"sql":return lp;case"yaml":case"yml":return kp;case"markdown":case"md":return j0;case"xml":return gp;case"rust":case"rs":return tp;case"swift":return cp;case"perl":return Z0;case"lua":return V0;case"haskell":return $0;case"erlang":return B0;case"clojure":return v0;case"vue":return mp;case"svg":return ap;case"mermaid":return q0;case"dart":return C0;case"assembly":return g0;case"dockerfile":return S0;case"fortran":return A0;case"lisp":return z0;case"ocaml":return X0;case"prolog":return G0;case"groovy":return T0;case"matlab":return H0;case"cobol":return w0;case"ada":return p0;case"julia":return P0;case"elixir":return M0;case"vb.net":return pp;case"nim":return W0;case"crystal":return x0;case"d":return E0;case"applescript":return m0;case"solidity":return ip;case"objectivec":return U0;case"objectivecpp":return K0;case"terraform":return up;case"plain":case"text":return dp;default:return sp}}const $o={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"},vp={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)"}},wp={class:"flex items-center space-x-2"},yp=["innerHTML"],xp={class:"text-sm font-medium font-mono"},bp={class:"flex items-center space-x-2"},_p=["aria-pressed"],Cp=["disabled"],Ep=["disabled"],Sp=["disabled"],Mp=["aria-label"],Bp={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"},Ap={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"},Dp=["aria-pressed"],Tp={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"},$p={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"},Np=["aria-label"],Ip={class:"code-loading-placeholder"},Fp={class:"sr-only","aria-live":"polite",role:"status"},Pi=10,Oi=36,zi=1,Vi=0,ji=1.5,pr=1,Rp=l.defineComponent({__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 It,Ct;const n=e,o=t,{t:r}=Pr(),i=l.ref(null),s=l.ref(null),a=l.ref(!1),c=l.ref(String((It=n.node.language)!=null?It:"")),u=l.ref(!1),f=l.ref(!1),d=l.ref(!1),h=l.ref(!1),p=l.ref(null);let m=0;const g=Hn(),w=l.ref(null),S=l.ref(typeof window=="undefined");typeof window!="undefined"&&l.watch(()=>s.value,N=>{var C;if((C=w.value)==null||C.destroy(),w.value=null,!N){S.value=!1;return}const v=g(N,{rootMargin:"400px"});w.value=v,S.value=v.isVisible.value,v.whenVisible.then(()=>{S.value=!0})},{immediate:!0}),l.onBeforeUnmount(()=>{var N;(N=w.value)==null||N.destroy(),w.value=null});let x=null,y=null,_=()=>{},B=()=>{},k=()=>null,M=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),b=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),T=()=>{},H=()=>{},L=null,P=()=>{var N;return String((N=n.node.language)!=null?N:"plaintext")},W=()=>ee(null,null,function*(){});const K=l.computed(()=>n.node.diff),O=l.ref(!1);typeof window!="undefined"&&ee(null,null,function*(){try{const N=yield as();if(!N){O.value=!0;return}const v=N.useMonaco,C=N.detectLanguage;if(typeof C=="function"&&(P=C),typeof v=="function"){const D=bt();if(D&&n.themes&&Array.isArray(n.themes)&&!n.themes.includes(D))throw new Error("Preferred theme not in provided themes array");const G=v(Ve(ne({wordWrap:"on",wrappingIndent:"same",themes:n.themes,theme:D},n.monacoOptions||{}),{onThemeChange(){z()}}));x=G.createEditor||x,y=G.createDiffEditor||y,_=G.updateCode||_,B=G.updateDiff||B,k=G.getEditor||k,M=G.getEditorView||M,b=G.getDiffEditorView||b,T=G.cleanupEditor||T,H=G.safeClean||G.cleanupEditor||H,W=G.setTheme||W,h.value=!0,i.value&&(yield Ge(i.value))}}catch(N){O.value=!0}});const F=l.ref(typeof((Ct=n.monacoOptions)==null?void 0:Ct.fontSize)=="number"?n.monacoOptions.fontSize:Number.NaN),V=l.ref(F.value),j=l.computed(()=>{const N=F.value,v=V.value;return typeof N=="number"&&Number.isFinite(N)&&N>0&&typeof v=="number"&&Number.isFinite(v)&&v>0});function Y(){try{const N=i.value;if(!N)return null;const v=N.querySelector(".view-lines .view-line");if(v){const C=Math.ceil(v.getBoundingClientRect().height);if(C>0)return C}}catch(N){}return null}function J(){var N,v,C,D,G;try{const U=K.value?(C=(v=(N=b())==null?void 0:N.getModifiedEditor)==null?void 0:v.call(N))!=null?C:b():M(),ke=k(),ve=(D=ke==null?void 0:ke.EditorOption)==null?void 0:D.fontInfo;if(U&&ve!=null){const ye=(G=U.getOption)==null?void 0:G.call(U,ve),de=ye==null?void 0:ye.fontSize;if(typeof de=="number"&&Number.isFinite(de)&&de>0)return de}}catch(U){}try{const U=i.value;if(U){const ke=U.querySelector(".view-lines .view-line");if(ke)try{if(typeof window!="undefined"&&typeof window.getComputedStyle=="function"){const ve=window.getComputedStyle(ke).fontSize,ye=ve&&ve.match(/^(\d+(?:\.\d+)?)/);if(ye)return Number.parseFloat(ye[1])}}catch(ve){}}}catch(U){}return null}function te(N){var D,G;try{const U=k(),ke=(D=U==null?void 0:U.EditorOption)==null?void 0:D.lineHeight;if(ke!=null){const ve=(G=N==null?void 0:N.getOption)==null?void 0:G.call(N,ke);if(typeof ve=="number"&&ve>0)return ve}}catch(U){}const v=Y();if(v&&v>0)return v;const C=Number.isFinite(V.value)&&V.value>0?V.value:12;return Math.max(12,Math.round(C*1.35))}function re(){var v;if(Number.isFinite(V.value)&&V.value>0&&Number.isFinite(F.value))return V.value;const N=J();return typeof((v=n.monacoOptions)==null?void 0:v.fontSize)=="number"?(F.value=n.monacoOptions.fontSize,V.value=n.monacoOptions.fontSize,V.value):N&&N>0?(F.value=N,V.value=N,N):(F.value=12,V.value=12,12)}function _e(){const N=re(),v=Math.min(Oi,N+zi);V.value=v}function he(){const N=re(),v=Math.max(Pi,N-zi);V.value=v}function pe(){re(),Number.isFinite(F.value)&&(V.value=F.value)}function ie(){var N,v,C,D,G,U,ke,ve,ye,de,Ee;try{const xe=K.value?b():M();if(!xe)return null;if(K.value&&(xe!=null&&xe.getOriginalEditor)&&(xe!=null&&xe.getModifiedEditor)){const $e=(N=xe.getOriginalEditor)==null?void 0:N.call(xe),qe=(v=xe.getModifiedEditor)==null?void 0:v.call(xe),Zt=((C=$e==null?void 0:$e.getContentHeight)==null?void 0:C.call($e))||0,Lt=((D=qe==null?void 0:qe.getContentHeight)==null?void 0:D.call(qe))||0,Bt=Math.max(Zt,Lt);if(Bt>0)return Math.ceil(Bt+pr);const Et=((ke=(U=(G=$e==null?void 0:$e.getModel)==null?void 0:G.call($e))==null?void 0:U.getLineCount)==null?void 0:ke.call(U))||1,qt=((de=(ye=(ve=qe==null?void 0:qe.getModel)==null?void 0:ve.call(qe))==null?void 0:ye.getLineCount)==null?void 0:de.call(ye))||1,Yt=Math.max(Et,qt),Gt=Math.max(te($e),te(qe));return Math.ceil(Yt*(Gt+ji)+Vi+pr)}else if(xe!=null&&xe.getContentHeight){const $e=xe.getContentHeight();if($e>0)return Math.ceil($e+pr)}const Ft=(Ee=xe==null?void 0:xe.getModel)==null?void 0:Ee.call(xe);let Mt=1;Ft&&typeof Ft.getLineCount=="function"&&(Mt=Ft.getLineCount());const Rt=te(xe);return Math.ceil(Mt*(Rt+ji)+Vi+pr)}catch(xe){return null}}function z(){var ve,ye,de;const N=i.value,v=s.value;if(!N||!v)return;const C=N.querySelector(".monaco-editor")||N;let D=null;try{typeof window!="undefined"&&typeof window.getComputedStyle=="function"&&(D=window.getComputedStyle(C))}catch(Ee){D=null}const G=String((ve=D==null?void 0:D.getPropertyValue("--vscode-editor-foreground"))!=null?ve:""),U=String((ye=D==null?void 0:D.getPropertyValue("--vscode-editor-background"))!=null?ye:""),ke=String((de=D==null?void 0:D.getPropertyValue("--vscode-editor-hoverHighlightBackground"))!=null?de:"");if(G&&U)return v.style.setProperty("--vscode-editor-foreground",G.trim()),v.style.setProperty("--vscode-editor-background",U.trim()),v.style.setProperty("--vscode-editor-selectionBackground",ke.trim()),!0}function R(){try{const N=i.value;if(!N)return;const v=N.getBoundingClientRect(),C=window.scrollY+v.top,D=ie();if(D!=null&&D>0){const G=v.height;N.style.height=`${Math.ceil(D)}px`,N.style.maxHeight="none";const U=Math.ceil(D)-G;U!==0&&C<window.scrollY&&window.scrollBy(0,U)}}catch(N){}}function q(){var N;try{const v=i.value;if(!v)return;const C=v.getBoundingClientRect(),D=window.scrollY+C.top,G=C.height,U=Q();if(m>0&&(m--,p.value!=null)){const de=Math.min(p.value,U);v.style.height=`${Math.ceil(de)}px`,v.style.maxHeight=`${Math.ceil(U)}px`,v.style.overflow="auto";const Ee=Math.ceil(de)-G;Ee!==0&&D<window.scrollY&&window.scrollBy(0,Ee);return}const ke=ie();if(ke!=null&&ke>0){const de=Math.min(ke,U);v.style.height=`${Math.ceil(de)}px`,v.style.maxHeight=`${Math.ceil(U)}px`,v.style.overflow="auto";const Ee=Math.ceil(de)-G;Ee!==0&&D<window.scrollY&&window.scrollBy(0,Ee);return}if(p.value!=null){const de=Math.min(p.value,U);v.style.height=`${Math.ceil(de)}px`,v.style.maxHeight=`${Math.ceil(U)}px`,v.style.overflow="auto";const Ee=Math.ceil(de)-G;Ee!==0&&D<window.scrollY&&window.scrollBy(0,Ee);return}const ve=Math.ceil(((N=v.getBoundingClientRect)==null?void 0:N.call(v).height)||0);if(ve>0){const de=Math.min(ve,U);v.style.height=`${Math.ceil(de)}px`,v.style.maxHeight=`${Math.ceil(U)}px`,v.style.overflow="auto";const Ee=Math.ceil(de)-G;Ee!==0&&D<window.scrollY&&window.scrollBy(0,Ee);return}const ye=Number.parseFloat(v.style.height);if(!Number.isNaN(ye)&&ye>0){const de=Math.ceil(Math.min(ye,U));v.style.height=`${de}px`;const Ee=de-G;Ee!==0&&D<window.scrollY&&window.scrollBy(0,Ee)}else{const de=Math.ceil(U);v.style.height=`${de}px`;const Ee=de-G;Ee!==0&&D<window.scrollY&&window.scrollBy(0,Ee)}v.style.maxHeight=`${Math.ceil(U)}px`,v.style.overflow="auto"}catch(v){}}function Q(){var C,D;const N=(D=(C=n.monacoOptions)==null?void 0:C.MAX_HEIGHT)!=null?D:500;if(typeof N=="number")return N;const v=String(N).match(/^(\d+(?:\.\d+)?)/);return v?Number.parseFloat(v[1]):500}const oe=l.computed(()=>{const N=c.value.trim().toLowerCase();return n.isShowPreview&&(N==="html"||N==="svg")}),Ce=l.computed(()=>c.value.trim().toLowerCase()==="mermaid");l.watch(()=>n.node.language,N=>{c.value=N}),l.watch(()=>n.node.code,N=>ee(null,null,function*(){var v,C;if(n.stream!==!1){if(c.value||(c.value=P(N)),x&&!d.value&&i.value)try{yield Ge(i.value)}catch(D){}K.value?B(String((v=n.node.originalCode)!=null?v:""),String((C=n.node.updatedCode)!=null?C:""),c.value):_(N,c.value),u.value&&Xn(()=>R())}}));const ge=l.computed(()=>{const N=c.value.trim().toLowerCase();return $o[N]||N.charAt(0).toUpperCase()+N.slice(1)}),Ie=l.computed(()=>{const N=c.value.trim().toLowerCase();return To(N.split(":")[0])}),je=l.computed(()=>{const N={},v=G=>{if(G!=null)return typeof G=="number"?`${G}px`:String(G)},C=v(n.minWidth),D=v(n.maxWidth);return C&&(N.minWidth=C),D&&(N.maxWidth=D),N});function Fe(){return ee(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),a.value=!0,o("copy",n.node.code),setTimeout(()=>{a.value=!1},1e3)}catch(N){console.error("复制失败:",N)}})}function Oe(N){const v=N;return!v||v.disabled}function De(N,v,C="top"){if(Oe(N.currentTarget))return;const D=N,G=(D==null?void 0:D.clientX)!=null&&(D==null?void 0:D.clientY)!=null?{x:D.clientX,y:D.clientY}:void 0;xn(N.currentTarget,v,C,!1,G,n.isDark)}function ae(){Lr()}function me(N){if(Oe(N.currentTarget))return;const v=a.value?r("common.copied")||"Copied":r("common.copy")||"Copy",C=N,D=(C==null?void 0:C.clientX)!=null&&(C==null?void 0:C.clientY)!=null?{x:C.clientX,y:C.clientY}:void 0;xn(N.currentTarget,v,"top",!1,D,n.isDark)}function He(){u.value=!u.value;const N=K.value?b():M(),v=i.value;!N||!v||(u.value?(ze(!0),v.style.maxHeight="none",v.style.overflow="visible",R()):(ze(!1),v.style.overflow="auto",q()))}function vt(){var N,v,C;if(f.value=!f.value,f.value){if(i.value){const D=Math.ceil(((v=(N=i.value).getBoundingClientRect)==null?void 0:v.call(N).height)||0);D>0&&(p.value=D)}ze(!1)}else{u.value&&ze(!0),i.value&&p.value!=null&&(i.value.style.height=`${p.value}px`);const D=K.value?b():M();try{(C=D==null?void 0:D.layout)==null||C.call(D)}catch(G){}m=2,Xn(()=>{u.value?R():q()})}}l.watch(()=>V.value,(N,v)=>{const C=K.value?b():M();C&&typeof N=="number"&&Number.isFinite(N)&&N>0&&(C.updateOptions({fontSize:N}),u.value&&!f.value&&R())},{flush:"post",immediate:!1});function wt(){if(!oe.value)return;const N=(c.value||n.node.language).toLowerCase(),v=N==="html"?"text/html":"image/svg+xml",C=N==="html"?r("artifacts.htmlPreviewTitle")||"HTML Preview":r("artifacts.svgPreviewTitle")||"SVG Preview";o("previewCode",{node:n.node,artifactType:v,artifactTitle:C,id:`temp-${N}-${Date.now()}`})}function ze(N){var v,C;try{if(K.value){const D=b();(v=D==null?void 0:D.updateOptions)==null||v.call(D,{automaticLayout:N})}else{const D=M();(C=D==null?void 0:D.updateOptions)==null||C.call(D,{automaticLayout:N})}}catch(D){}}function yt(N){return ee(this,null,function*(){var C,D,G;if(!x)return;K.value?(H(),y?yield y(N,String((C=n.node.originalCode)!=null?C:""),String((D=n.node.updatedCode)!=null?D:""),c.value):yield x(N,n.node.code,c.value)):yield x(N,n.node.code,c.value);const v=K.value?b():M();if(typeof((G=n.monacoOptions)==null?void 0:G.fontSize)=="number")v==null||v.updateOptions({fontSize:n.monacoOptions.fontSize,automaticLayout:!1}),F.value=n.monacoOptions.fontSize,V.value=n.monacoOptions.fontSize;else{const U=J();U&&U>0?(F.value=U,V.value=U):(F.value=12,V.value=12)}!u.value&&!f.value&&q(),n.loading===!1&&(yield l.nextTick(),Xn(()=>{u.value&&!f.value?R():f.value||q()}))})}function Ge(N){return x?L||(d.value=!0,L=ee(null,null,function*(){yield yt(N)}).finally(()=>{L=null}),L):null}const Ht=l.watch(()=>[i.value,Ce.value,K.value,n.stream,n.loading,h.value,S.value],ve=>ee(null,[ve],function*([N,v,C,D,G,U,ke]){if(!N||!x||!ke||D===!1&&G!==!1)return;if(Ce.value){T(),Ht();return}const ye=Ge(N);ye&&(yield ye,Ht())})),xt=l.watch(()=>[n.darkTheme,n.lightTheme,d.value,S.value],()=>{if(!(!d.value||!S.value)){if(Ce.value)return xt();Qe()}});function bt(){return n.isDark?n.darkTheme:n.lightTheme}function Qe(){const N=bt();N&&W(N)}const Nt=l.watch(()=>[n.monacoOptions,S.value],()=>{var C,D;if(!x||!S.value)return;if(Ce.value)return Nt();const N=K.value?b():M(),v=typeof((C=n.monacoOptions)==null?void 0:C.fontSize)=="number"?n.monacoOptions.fontSize:Number.isFinite(V.value)?V.value:void 0;typeof v=="number"&&Number.isFinite(v)&&v>0&&((D=N==null?void 0:N.updateOptions)==null||D.call(N,{fontSize:v})),u.value&&!f.value?R():f.value||q()},{deep:!0}),_t=l.watch(()=>[n.loading,S.value],C=>ee(null,[C],function*([N,v]){if(v){if(Ce.value){l.nextTick(()=>{_t==null||_t()});return}N||(yield l.nextTick(),Xn(()=>{f.value||(u.value?R():q()),_t()}))}}),{immediate:!0,flush:"post"});return l.onUnmounted(()=>{T()}),(N,v)=>O.value?(l.openBlock(),l.createBlock(l.unref(sn),{key:0,node:e.node,loading:n.loading},null,8,["node","loading"])):(l.openBlock(),l.createElementBlock("div",{key:1,ref_key:"container",ref:s,style:l.normalizeStyle(je.value),class:l.normalizeClass(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",{"is-rendering":n.loading,"is-dark":n.isDark}]])},[n.showHeader?(l.openBlock(),l.createElementBlock("div",vp,[l.renderSlot(N.$slots,"header-left",{},()=>[l.createElementVNode("div",wp,[l.createElementVNode("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:Ie.value},null,8,yp),l.createElementVNode("span",xp,l.toDisplayString(ge.value),1)])],!0),l.renderSlot(N.$slots,"header-right",{},()=>[l.createElementVNode("div",bp,[l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":f.value,onClick:vt,onMouseenter:v[0]||(v[0]=C=>De(C,f.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onFocus:v[1]||(v[1]=C=>De(C,f.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onMouseleave:ae,onBlur:ae},[(l.openBlock(),l.createElementBlock("svg",{style:l.normalizeStyle({rotate:f.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"},[...v[17]||(v[17]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,_p),n.showFontSizeButtons&&n.enableFontSizeControl?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(V.value)?V.value<=Pi:!1,onClick:v[2]||(v[2]=C=>he()),onMouseenter:v[3]||(v[3]=C=>De(C,l.unref(r)("common.decrease")||"Decrease")),onFocus:v[4]||(v[4]=C=>De(C,l.unref(r)("common.decrease")||"Decrease")),onMouseleave:ae,onBlur:ae},[...v[18]||(v[18]=[l.createElementVNode("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"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,Cp),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!j.value||V.value===F.value,onClick:v[5]||(v[5]=C=>pe()),onMouseenter:v[6]||(v[6]=C=>De(C,l.unref(r)("common.reset")||"Reset")),onFocus:v[7]||(v[7]=C=>De(C,l.unref(r)("common.reset")||"Reset")),onMouseleave:ae,onBlur:ae},[...v[19]||(v[19]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),l.createElementVNode("path",{d:"M3 3v5h5"})])],-1)])],40,Ep),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(V.value)?V.value>=Oi:!1,onClick:v[8]||(v[8]=C=>_e()),onMouseenter:v[9]||(v[9]=C=>De(C,l.unref(r)("common.increase")||"Increase")),onFocus:v[10]||(v[10]=C=>De(C,l.unref(r)("common.increase")||"Increase")),onMouseleave:ae,onBlur:ae},[...v[20]||(v[20]=[l.createElementVNode("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"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,Sp)],64)):l.createCommentVNode("",!0),n.showCopyButton?(l.openBlock(),l.createElementBlock("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":a.value?l.unref(r)("common.copied")||"Copied":l.unref(r)("common.copy")||"Copy",onClick:Fe,onMouseenter:v[11]||(v[11]=C=>me(C)),onFocus:v[12]||(v[12]=C=>me(C)),onMouseleave:ae,onBlur:ae},[a.value?(l.openBlock(),l.createElementBlock("svg",Ap,[...v[22]||(v[22]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",Bp,[...v[21]||(v[21]=[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),l.createElementVNode("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,Mp)):l.createCommentVNode("",!0),n.showExpandButton?(l.openBlock(),l.createElementBlock("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":u.value,onClick:He,onMouseenter:v[13]||(v[13]=C=>De(C,u.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onFocus:v[14]||(v[14]=C=>De(C,u.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onMouseleave:ae,onBlur:ae},[u.value?(l.openBlock(),l.createElementBlock("svg",Tp,[...v[23]||(v[23]=[l.createElementVNode("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)])])):(l.openBlock(),l.createElementBlock("svg",$p,[...v[24]||(v[24]=[l.createElementVNode("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,Dp)):l.createCommentVNode("",!0),oe.value&&n.showPreviewButton?(l.openBlock(),l.createElementBlock("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":l.unref(r)("common.preview")||"Preview",onClick:wt,onMouseenter:v[15]||(v[15]=C=>De(C,l.unref(r)("common.preview")||"Preview")),onFocus:v[16]||(v[16]=C=>De(C,l.unref(r)("common.preview")||"Preview")),onMouseleave:ae,onBlur:ae},[...v[25]||(v[25]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24"},[l.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[l.createElementVNode("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"}),l.createElementVNode("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,Np)):l.createCommentVNode("",!0)])],!0)])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref_key:"codeEditor",ref:i,class:l.normalizeClass(["code-editor-container",[e.stream?"":"code-height-placeholder"]])},null,2),[[l.vShow,!f.value&&(e.stream?!0:!e.loading)]]),l.withDirectives(l.createElementVNode("div",Ip,[l.renderSlot(N.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[v[26]||(v[26]=l.createElementVNode("div",{class:"loading-skeleton"},[l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line short"})],-1))],!0)],512),[[l.vShow,!e.stream&&e.loading]]),l.createElementVNode("span",Fp,l.toDisplayString(a.value?l.unref(r)("common.copied")||"Copied":""),1)],6))}}),Ln=Me(Rp,[["__scopeId","data-v-8443b140"]]);Ln.install=e=>{e.component(Ln.__name,Ln)};const Lp=Object.freeze(Object.defineProperty({__proto__:null,default:Ln},Symbol.toStringTag,{value:"Module"})),Pp={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)"}},Op={class:"flex items-center space-x-2"},zp=["innerHTML"],Vp={class:"text-sm font-medium font-mono"},jp={class:"flex items-center space-x-2"},Hp=["aria-pressed"],qp=["disabled"],Wp=["disabled"],Up=["disabled"],Kp=["aria-label"],Xp={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"},Zp={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"},Yp=["aria-pressed"],Gp={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"},Jp={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"},Qp=["aria-label"],em={class:"code-loading-placeholder"},Hi=10,qi=36,Wi=1,tm=l.defineComponent({__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 ie;const n=e,o=t,{t:r}=Pr(),i=l.ref(String((ie=n.node.language)!=null?ie:"")),s=l.ref(!1),a=l.ref(!1),c=l.ref(!1),u=l.ref(null),f=l.ref(!0),d=l.ref(0),h=l.ref(14),p=l.ref(h.value),m=l.computed(()=>{const z=h.value,R=p.value;return typeof z=="number"&&Number.isFinite(z)&&z>0&&typeof R=="number"&&Number.isFinite(R)&&R>0}),g=l.computed(()=>{const z=i.value.trim().toLowerCase();return $o[z]||z.charAt(0).toUpperCase()+z.slice(1)}),w=l.computed(()=>i.value.trim().toLowerCase()==="mermaid"),S=l.computed(()=>{const z=i.value.trim().toLowerCase();return To(z.split(":")[0])}),x=l.computed(()=>{const z=i.value.trim().toLowerCase();return n.isShowPreview&&(z==="html"||z==="svg")}),y=l.computed(()=>{const z={},R=oe=>{if(oe!=null)return typeof oe=="number"?`${oe}px`:String(oe)},q=R(n.minWidth),Q=R(n.maxWidth);return q&&(z.minWidth=q),Q&&(z.maxWidth=Q),z}),_=l.computed(()=>({fontSize:`${p.value}px`}));function B(){return n.isDark?n.darkTheme:n.lightTheme}let k,M,b,T=()=>{};function H(){return ee(this,null,function*(){if(!M)try{const z=yield import("stream-markdown");if(M=z.createShikiStreamRenderer,b=z.registerHighlight,T=z.disposeHighlighter,b({themes:n.themes}),k=M(u.value,{theme:B()}),!n.loading){const R=i.value.split(":")[0].toLocaleLowerCase().trim();k.updateCode(n.node.code,R)}}catch(z){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",z)}})}function L(){return ee(this,null,function*(){if(w.value){T(),k==null||k.dispose();return}H()})}L(),l.onMounted(()=>{L()}),l.watch(()=>n.themes,()=>ee(null,null,function*(){b&&b({themes:n.themes})})),l.watch(()=>[n.node.code,n.node.language],q=>ee(null,[q],function*([z,R]){if(R!==i.value&&(i.value=R.trim()),!!u.value){if(w.value){T(),k==null||k.dispose();return}k||(yield L()),!(!k||!z)&&(n.stream===!1&&n.loading||(R=R.split(":")[0].toLocaleLowerCase().trim(),k.updateCode(z,R)))}}));const P=l.watch(()=>[n.darkTheme,n.lightTheme],()=>ee(null,null,function*(){if(u.value){if(w.value)return T(),k==null||k.dispose(),P();k||(yield L()),k==null||k.setTheme(B())}}));l.watch(()=>n.node.code,()=>ee(null,null,function*(){if(a.value||!f.value)return;yield l.nextTick();const z=u.value;z&&z.scrollHeight>z.clientHeight&&(z.scrollTop=z.scrollHeight)}));function W(z,R=50){return z.scrollHeight-z.scrollTop-z.clientHeight<=R}function K(){const z=u.value;if(!z||a.value)return;const R=z.scrollTop;R<d.value?f.value=!1:W(z)&&(f.value=!0),d.value=R}function O(){return ee(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),s.value=!0,o("copy",n.node.code),setTimeout(()=>{s.value=!1},1e3)}catch(z){console.error("Copy failed:",z)}})}function F(z){const R=z;return!R||R.disabled}function V(z,R,q="top"){if(F(z.currentTarget))return;const Q=z,oe=(Q==null?void 0:Q.clientX)!=null&&(Q==null?void 0:Q.clientY)!=null?{x:Q.clientX,y:Q.clientY}:void 0;xn(z.currentTarget,R,q,!1,oe,n.isDark)}function j(){Lr()}function Y(z){if(F(z.currentTarget))return;const R=s.value?r("common.copied")||"Copied":r("common.copy")||"Copy",q=z,Q=(q==null?void 0:q.clientX)!=null&&(q==null?void 0:q.clientY)!=null?{x:q.clientX,y:q.clientY}:void 0;xn(z.currentTarget,R,"top",!1,Q,n.isDark)}function J(){a.value=!a.value;const z=u.value;z&&(a.value?(z.style.maxHeight="none",z.style.overflow="visible"):(z.style.maxHeight="500px",z.style.overflow="auto",f.value=!0,l.nextTick(()=>{z.scrollHeight>z.clientHeight&&(z.scrollTop=z.scrollHeight)})))}function te(){c.value=!c.value}function re(){const z=Math.min(qi,p.value+Wi);p.value=z}function _e(){const z=Math.max(Hi,p.value-Wi);p.value=z}function he(){p.value=h.value}function pe(){if(!x.value)return;const z=(i.value||n.node.language).toLowerCase(),R=z==="html"?"text/html":"image/svg+xml",q=z==="html"?"HTML Preview":"SVG Preview";o("previewCode",{type:R,content:n.node.code,title:q})}return(z,R)=>w.value?(l.openBlock(),l.createBlock(l.unref(vn),{key:0,node:e.node,"is-dark":n.isDark,loading:n.loading},null,8,["node","is-dark","loading"])):(l.openBlock(),l.createElementBlock("div",{key:1,style:l.normalizeStyle(y.value),class:l.normalizeClass(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",n.isDark?"is-dark":""]])},[n.showHeader?(l.openBlock(),l.createElementBlock("div",Pp,[l.renderSlot(z.$slots,"header-left",{},()=>[l.createElementVNode("div",Op,[l.createElementVNode("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:S.value},null,8,zp),l.createElementVNode("span",Vp,l.toDisplayString(g.value),1)])],!0),l.renderSlot(z.$slots,"header-right",{},()=>[l.createElementVNode("div",jp,[l.createElementVNode("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:te,onMouseenter:R[0]||(R[0]=q=>V(q,c.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onFocus:R[1]||(R[1]=q=>V(q,c.value?l.unref(r)("common.expand")||"Expand":l.unref(r)("common.collapse")||"Collapse")),onMouseleave:j,onBlur:j},[(l.openBlock(),l.createElementBlock("svg",{style:l.normalizeStyle({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"},[...R[17]||(R[17]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,Hp),n.showFontSizeButtons&&n.enableFontSizeControl?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(p.value)?p.value<=Hi:!1,onClick:R[2]||(R[2]=q=>_e()),onMouseenter:R[3]||(R[3]=q=>V(q,l.unref(r)("common.decrease")||"Decrease")),onFocus:R[4]||(R[4]=q=>V(q,l.unref(r)("common.decrease")||"Decrease")),onMouseleave:j,onBlur:j},[...R[18]||(R[18]=[l.createElementVNode("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"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,qp),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!m.value||p.value===h.value,onClick:R[5]||(R[5]=q=>he()),onMouseenter:R[6]||(R[6]=q=>V(q,l.unref(r)("common.reset")||"Reset")),onFocus:R[7]||(R[7]=q=>V(q,l.unref(r)("common.reset")||"Reset")),onMouseleave:j,onBlur:j},[...R[19]||(R[19]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),l.createElementVNode("path",{d:"M3 3v5h5"})])],-1)])],40,Wp),l.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(p.value)?p.value>=qi:!1,onClick:R[8]||(R[8]=q=>re()),onMouseenter:R[9]||(R[9]=q=>V(q,l.unref(r)("common.increase")||"Increase")),onFocus:R[10]||(R[10]=q=>V(q,l.unref(r)("common.increase")||"Increase")),onMouseleave:j,onBlur:j},[...R[20]||(R[20]=[l.createElementVNode("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"},[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,Up)],64)):l.createCommentVNode("",!0),n.showCopyButton?(l.openBlock(),l.createElementBlock("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?l.unref(r)("common.copied")||"Copied":l.unref(r)("common.copy")||"Copy",onClick:O,onMouseenter:R[11]||(R[11]=q=>Y(q)),onFocus:R[12]||(R[12]=q=>Y(q)),onMouseleave:j,onBlur:j},[s.value?(l.openBlock(),l.createElementBlock("svg",Zp,[...R[22]||(R[22]=[l.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",Xp,[...R[21]||(R[21]=[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),l.createElementVNode("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,Kp)):l.createCommentVNode("",!0),n.showExpandButton?(l.openBlock(),l.createElementBlock("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:J,onMouseenter:R[13]||(R[13]=q=>V(q,a.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onFocus:R[14]||(R[14]=q=>V(q,a.value?l.unref(r)("common.collapse")||"Collapse":l.unref(r)("common.expand")||"Expand")),onMouseleave:j,onBlur:j},[a.value?(l.openBlock(),l.createElementBlock("svg",Gp,[...R[23]||(R[23]=[l.createElementVNode("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)])])):(l.openBlock(),l.createElementBlock("svg",Jp,[...R[24]||(R[24]=[l.createElementVNode("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,Yp)):l.createCommentVNode("",!0),x.value&&n.showPreviewButton?(l.openBlock(),l.createElementBlock("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":l.unref(r)("common.preview")||"Preview",onClick:pe,onMouseenter:R[15]||(R[15]=q=>V(q,l.unref(r)("common.preview")||"Preview")),onFocus:R[16]||(R[16]=q=>V(q,l.unref(r)("common.preview")||"Preview")),onMouseleave:j,onBlur:j},[...R[25]||(R[25]=[l.createElementVNode("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"},[l.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[l.createElementVNode("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"}),l.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})])],-1)])],40,Qp)):l.createCommentVNode("",!0)])],!0)])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref_key:"codeBlockContent",ref:u,class:"code-block-content",style:l.normalizeStyle(_.value),onScroll:K},null,36),[[l.vShow,!c.value&&(e.stream?!0:!e.loading)]]),l.withDirectives(l.createElementVNode("div",em,[l.renderSlot(z.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[R[26]||(R[26]=l.createElementVNode("div",{class:"loading-skeleton"},[l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line"}),l.createElementVNode("div",{class:"skeleton-line short"})],-1))],!0)],512),[[l.vShow,!e.stream&&e.loading]])],6))}}),Yn=Me(tm,[["__scopeId","data-v-9201c1b9"]]);Yn.install=e=>{e.component(Yn.__name,Yn)};let St=null,an=null,Ui=!1;const lt=new Map,Kt=new Map,us=200;let bn=5;const mn=new Set;function tr(){if(lt.size<bn&&mn.size){const e=Array.from(mn);mn.clear();for(const t of e)try{t()}catch(n){}}}let Pt=null;function nm(e){St=e,an=null,St.onmessage=t=>{const{id:n,html:o,error:r}=t.data,i=lt.get(n);if(i)if(lt.delete(n),clearTimeout(i.timeoutId),tr(),r)i.reject(new Error(r));else{const{content:s,displayMode:a}=t.data;if(s){const c=`${a?"d":"i"}:${s}`;if(Kt.set(c,o),Kt.size>us){const u=Kt.keys().next().value;Kt.delete(u)}}i.resolve(o)}},St.onerror=t=>{console.error("[katexWorkerClient] Worker error:",t);for(const[n,o]of lt.entries())clearTimeout(o.timeoutId),o.reject(new Error(`Worker error: ${t.message}`));lt.clear(),tr()}}function rm(){var e;St&&((e=St.terminate)==null||e.call(St)),St=null,an=null}function om(){return St||(an=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),an.name="WorkerInitError",an.code="WORKER_INIT_ERROR",null)}function im(e){Ui=!!e,St&&St.postMessage({type:"init",debug:Ui})}function ds(e,t=!0,n=2e3,o){return ee(this,null,function*(){const r=performance.now();if(an)return Promise.reject(an);const i=`${t?"d":"i"}:${e}`,s=Kt.get(i);if(s)return Pt&&Pt.recordRender({type:"cache-hit",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!0}),Promise.resolve(s);const a=om();if(!a)return Promise.reject(an);if(lt.size>=bn){const c=new Error("Worker busy");return c.name="WorkerBusy",c.code="WORKER_BUSY",c.busy=!0,c.inFlight=lt.size,c.max=bn,Pt&&Pt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:"busy"}),Promise.reject(c)}return new Promise((c,u)=>{if(o!=null&&o.aborted){const S=new Error("Aborted");S.name="AbortError",u(S);return}const f=Math.random().toString(36).slice(2),d=globalThis.setTimeout(()=>{lt.delete(f);const S=new Error("Worker render timed out");S.name="WorkerTimeout",S.code="WORKER_TIMEOUT",Pt&&Pt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:"timeout"}),u(S),tr()},n),h=()=>{globalThis.clearTimeout(d),lt.has(f)&<.delete(f);const S=new Error("Aborted");S.name="AbortError",u(S),tr()};o&&o.addEventListener("abort",h,{once:!0});const p=c,m=u,g=S=>{Pt&&Pt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!0}),p(S)},w=S=>{Pt&&Pt.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:(S==null?void 0:S.message)||String(S)}),m(S)};lt.set(f,{resolve:g,reject:w,timeoutId:d}),a.postMessage({id:f,content:e,displayMode:t})})})}function No(e,t=!0,n){const o=`${t?"d":"i"}:${e}`;if(Kt.set(o,n),Kt.size>us){const r=Kt.keys().next().value;Kt.delete(r)}}function lm(){return{inFlight:lt.size,max:bn}}function sm(e){Number.isFinite(e)&&e>0&&(bn=Math.floor(e))}const zr="WORKER_BUSY";function am(){return lt.size>=bn}function fs(e=2e3,t){return lt.size<bn?Promise.resolve():new Promise((n,o)=>{let r=!1,i;const s=()=>{r||(r=!0,i&&globalThis.clearTimeout(i),mn.delete(s),n())};if(mn.add(s),i=globalThis.setTimeout(()=>{if(r)return;r=!0,mn.delete(s);const a=new Error("Wait for worker slot timed out");a.name="WorkerBusyTimeout",a.code="WORKER_BUSY_TIMEOUT",o(a)},e),queueMicrotask(()=>tr()),t){const a=()=>{if(r)return;r=!0,i&&globalThis.clearTimeout(i),mn.delete(s);const c=new Error("Aborted");c.name="AbortError",o(c)};t.aborted?a():t.addEventListener("abort",a,{once:!0})}})}const Xt={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function cm(e){e.timeout!=null&&(Xt.timeout=Math.max(0,Math.floor(e.timeout))),e.waitTimeout!=null&&(Xt.waitTimeout=Math.max(0,Math.floor(e.waitTimeout))),e.backoffMs!=null&&(Xt.backoffMs=Math.max(0,Math.floor(e.backoffMs))),e.maxRetries!=null&&(Xt.maxRetries=Math.max(0,Math.floor(e.maxRetries)))}function um(){return ne({},Xt)}function Io(o){return ee(this,arguments,function*(e,t=!0,n={}){var f,d,h,p;const r=(f=n.timeout)!=null?f:Xt.timeout,i=(d=n.waitTimeout)!=null?d:Xt.waitTimeout,s=(h=n.backoffMs)!=null?h:Xt.backoffMs,a=(p=n.maxRetries)!=null?p:Xt.maxRetries,c=n.signal;let u=0;for(;;){if(c!=null&&c.aborted){const m=new Error("Aborted");throw m.name="AbortError",m}try{return yield ds(e,t,r,c)}catch(m){if((m==null?void 0:m.code)!==zr||u>=a)throw m;if(u++,yield fs(i,c).catch(()=>{}),c!=null&&c.aborted){const g=new Error("Aborted");throw g.name="AbortError",g}s>0&&(yield new Promise(g=>globalThis.setTimeout(g,s*u)))}}})}const dm={key:0,class:"math-loading-overlay"},fm=l.defineComponent({__name:"MathBlockNode",props:{node:{}},setup(e){const t=e;let n=null;const o=l.ref(null),r=l.ref(null);let i=!1,s=0,a=!1,c=null;const u=Hn();let f=null;const d=l.ref(!0);function h(){return ee(this,null,function*(){if(!t.node.content||!r.value||a)return;if(!i)try{!f&&o.value&&(f=u(o.value)),yield f==null?void 0:f.whenVisible}catch(g){}c&&(c.abort(),c=null);const p=++s,m=new AbortController;c=m,Io(t.node.content,!0,{timeout:3e3,waitTimeout:2e3,maxRetries:1,signal:m.signal}).then(g=>{a||p!==s||r.value&&(r.value.innerHTML=g,i=!0,d.value=!1)}).catch(g=>ee(null,null,function*(){if(a||p!==s||!r.value)return;const w=(g==null?void 0:g.code)||(g==null?void 0:g.name);if((w==="WORKER_INIT_ERROR"||(g==null?void 0:g.fallbackToRenderer)||(w===zr||w==="WORKER_TIMEOUT"))&&(n||(n=yield rr()),n)){try{const y=n.renderToString(t.node.content,{throwOnError:t.node.loading,displayMode:!0});r.value.innerHTML=y,i=!0,d.value=!1,No(t.node.content,!0,y)}catch(y){}return}i||(d.value=!0),t.node.loading||(d.value=!1,r.value.textContent=t.node.raw)}))})}return l.watch(()=>t.node.content,()=>{h()}),l.onMounted(()=>{h()}),l.onBeforeUnmount(()=>{var p;a=!0,c&&(c.abort(),c=null),(p=f==null?void 0:f.destroy)==null||p.call(f),f=null}),(p,m)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"containerEl",ref:o,class:"math-block text-center overflow-x-auto relative min-h-[40px]"},[l.createVNode(l.Transition,{name:"math-fade"},{default:l.withCtx(()=>[d.value?(l.openBlock(),l.createElementBlock("div",dm,[...m[0]||(m[0]=[l.createElementVNode("div",{class:"math-loading-spinner"},null,-1)])])):l.createCommentVNode("",!0)]),_:1}),l.createElementVNode("div",{ref_key:"mathBlockElement",ref:r,class:l.normalizeClass({"math-rendering":d.value})},null,2)],512))}}),Pn=Me(fm,[["__scopeId","data-v-2e076ab9"]]);Pn.install=e=>{e.component(Pn.__name,Pn)};const hm=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"})),pm={class:"math-inline__loading",role:"status","aria-live":"polite"},mm=l.defineComponent({__name:"MathInlineNode",props:{node:{}},setup(e){const t=e;let n=null;const o=l.ref(null),r=l.ref(null);let i=!1,s=0,a=!1,c=null;const u=l.ref(!0),f=Hn();let d=null;function h(){return ee(this,null,function*(){if(!t.node.content||!r.value||a)return;c&&(c.abort(),c=null);const p=++s,m=new AbortController;if(c=m,!i)try{!d&&o.value&&(d=f(o.value)),yield d==null?void 0:d.whenVisible}catch(g){}Io(t.node.content,!1,{timeout:1500,waitTimeout:0,maxRetries:0,signal:m.signal}).then(g=>{a||p!==s||r.value&&(r.value.innerHTML=g,u.value=!1,i=!0)}).catch(g=>ee(null,null,function*(){if(a||p!==s||!r.value)return;const w=(g==null?void 0:g.code)||(g==null?void 0:g.name);if((w==="WORKER_INIT_ERROR"||(g==null?void 0:g.fallbackToRenderer)||(w===zr||w==="WORKER_TIMEOUT"))&&(n||(n=yield rr()),n)){try{const y=n.renderToString(t.node.content,{throwOnError:t.node.loading,displayMode:!1});u.value=!1,r.value.innerHTML=y,i=!0,No(t.node.content,!1,y)}catch(y){}return}i||(u.value=!0),t.node.loading||(u.value=!1,r.value.textContent=t.node.raw)}))})}return l.watch(()=>t.node.content,()=>{h()}),l.onMounted(()=>{h()}),l.onBeforeUnmount(()=>{var p;a=!0,c&&(c.abort(),c=null),(p=d==null?void 0:d.destroy)==null||p.call(d),d=null}),(p,m)=>(l.openBlock(),l.createElementBlock("span",{ref_key:"containerEl",ref:o,class:"math-inline-wrapper"},[l.withDirectives(l.createElementVNode("span",{ref_key:"mathElement",ref:r,class:"math-inline"},null,512),[[l.vShow,!u.value]]),u.value?(l.openBlock(),l.createBlock(l.Transition,{key:0,name:"table-node-fade"},{default:l.withCtx(()=>[l.createElementVNode("span",pm,[l.renderSlot(p.$slots,"loading",{isLoading:u.value},()=>[m[0]||(m[0]=l.createElementVNode("span",{class:"math-inline__spinner animate-spin","aria-hidden":"true"},null,-1)),m[1]||(m[1]=l.createElementVNode("span",{class:"sr-only"},"Loading",-1))],!0)])]),_:3})):l.createCommentVNode("",!0)],512))}}),On=Me(mm,[["__scopeId","data-v-6b23009e"]]);On.install=e=>{e.component(On.__name,On)};const gm=Object.freeze(Object.defineProperty({__proto__:null,default:On},Symbol.toStringTag,{value:"Module"})),km={AdmonitionNode:Rn,BlockquoteNode:Mn,CheckboxNode:Dt,CodeBlockNode:Ln,DefinitionListNode:Bn,EmojiNode:et,FootnoteNode:Dn,FootnoteReferenceNode:at,HardBreakNode:rn,HeadingNode:Or,HighlightNode:ft,ImageNode:on,InlineCodeNode:tt,PreCodeNode:sn,InsertNode:dt,LinkNode:it,ListItemNode:Tn,ListNode:$n,MathBlockNode:Pn,MathInlineNode:On,MermaidBlockNode:vn,ParagraphNode:Nn,StrikethroughNode:ot,StrongNode:rt,SubscriptNode:ut,SuperscriptNode:ct,TableNode:In,TextNode:Xe,ThematicBreakNode:Fn,ReferenceNode:nt,MarkdownCodeBlockNode:Yn},vm={install(e,t){Object.entries(km).forEach(([n,o])=>{e.component(n,o)}),t!=null&&t.getLanguageIcon&&cs(t.getLanguageIcon),t!=null&&t.mathOptions&&xl(t.mathOptions)}};exports.AdmonitionNode=Rn;exports.BlockquoteNode=Mn;exports.CheckboxNode=Dt;exports.CodeBlockNode=Ln;exports.DefinitionListNode=Bn;exports.ESCAPED_TEX_BRACE_COMMANDS=Gn;exports.EmojiNode=et;exports.FootnoteNode=Dn;exports.FootnoteReferenceNode=at;exports.HardBreakNode=rn;exports.HeadingNode=Or;exports.HighlightNode=ft;exports.ImageNode=on;exports.InlineCodeNode=tt;exports.InsertNode=dt;exports.KATEX_COMMANDS=bo;exports.LinkNode=it;exports.ListItemNode=Tn;exports.ListNode=$n;exports.MERMAID_WORKER_BUSY_CODE=os;exports.MarkdownCodeBlockNode=Yn;exports.MarkdownRender=st;exports.MathBlockNode=Pn;exports.MathInlineNode=On;exports.MermaidBlockNode=vn;exports.ParagraphNode=Nn;exports.PreCodeNode=sn;exports.ReferenceNode=nt;exports.StrikethroughNode=ot;exports.StrongNode=rt;exports.SubscriptNode=ut;exports.SuperscriptNode=ct;exports.TEX_BRACE_COMMANDS=Cl;exports.TableNode=In;exports.TextNode=Xe;exports.ThematicBreakNode=Fn;exports.VueRendererMarkdown=vm;exports.WORKER_BUSY_CODE=zr;exports.applyContainers=bl;exports.applyMath=Bl;exports.canParseOffthread=ls;exports.clearGlobalCustomComponents=xf;exports.clearKaTeXWorker=rm;exports.clearMermaidWorker=g1;exports.clearRegisteredMarkdownPlugins=sf;exports.default=st;exports.findMatchingClose=_l;exports.findPrefixOffthread=ss;exports.getCustomNodeComponents=pt;exports.getKaTeXBackpressureDefaults=um;exports.getKaTeXWorkerLoad=lm;exports.getLanguageIcon=To;exports.getMarkdown=Pl;exports.getMermaidWorkerLoad=p1;exports.getUseMonaco=as;exports.isKaTeXWorkerBusy=am;exports.isMathLike=Kn;exports.languageMap=$o;exports.normalizeStandaloneBackslashT=pn;exports.parseFenceToken=Vn;exports.parseInlineTokens=Pe;exports.parseMarkdownToStructure=Ll;exports.processTokens=io;exports.registerMarkdownPlugin=lf;exports.removeCustomComponents=yf;exports.renderKaTeXInWorker=ds;exports.renderKaTeXWithBackpressure=Io;exports.setCustomComponents=wf;exports.setDefaultI18nMap=Gh;exports.setDefaultMathOptions=xl;exports.setKaTeXBackpressureDefaults=cm;exports.setKaTeXCache=No;exports.setKaTeXWorker=nm;exports.setKaTeXWorkerDebug=im;exports.setKaTeXWorkerMaxConcurrency=sm;exports.setLanguageIconResolver=cs;exports.setMermaidWorker=m1;exports.setMermaidWorkerClientDebug=f1;exports.setMermaidWorkerMaxConcurrency=h1;exports.terminateWorker=uo;exports.waitForKaTeXWorkerSlot=fs;
|