@tickernelz/paperclip-pro-ui 2026.1023.0 → 2026.1024.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/assets/AgentAvatar-CXBfQ6pz.js +1 -0
  2. package/dist/assets/Agents.production-B5XXJ2wN.js +2 -0
  3. package/dist/assets/BreadcrumbContext-CmzhWkn9.js +1 -0
  4. package/dist/assets/CompanyActivity.production-1GZhq-K5.js +1 -0
  5. package/dist/assets/{CompanyExport-iwRD6Ak0.js → CompanyExport-CNu_xL_7.js} +3 -3
  6. package/dist/assets/{CompanySkills.production-BNQwI1_u.js → CompanySkills.production-YrmJa9Vy.js} +2 -2
  7. package/dist/assets/EmptyState-B6HqDhhl.js +1 -0
  8. package/dist/assets/{MarkdownBody-Cweo3KGi.js → MarkdownBody-DXX_MrOZ.js} +5 -5
  9. package/dist/assets/{MarkdownEditor-B6u1nGzv.js → MarkdownEditor-C0MQKETk.js} +16 -16
  10. package/dist/assets/OrgChart.production-3TDu-rpn.js +1 -0
  11. package/dist/assets/{PageSkeleton-Bxzx6LdM.js → PageSkeleton-CzsquFSq.js} +1 -1
  12. package/dist/assets/RoutineDetail.production-Dbg7SxCr.js +1 -0
  13. package/dist/assets/{RoutineRunVariablesDialog-BTO1cGhY.js → RoutineRunVariablesDialog-R9R_pIYM.js} +2 -2
  14. package/dist/assets/Routines.production-wYPaLAXL.js +1 -0
  15. package/dist/assets/StatusIcon-D50dDCBL.js +1 -0
  16. package/dist/assets/Terminal-ByJxc__B.js +1 -0
  17. package/dist/assets/ToastContext-Dj6kHjBt.js +1 -0
  18. package/dist/assets/access-BP0uIEvm.js +1 -0
  19. package/dist/assets/agent-avatar-url-CKjwadh7.js +1 -0
  20. package/dist/assets/agents-BnTeL72d.js +15 -0
  21. package/dist/assets/{alert-dialog-CqvHCY2y.js → alert-dialog-BVgYDfs5.js} +1 -1
  22. package/dist/assets/arrow-right-yI8KLv06.js +1 -0
  23. package/dist/assets/arrow-up-DoquRvt-.js +1 -0
  24. package/dist/assets/{badge-6KBG4DJ9.js → badge-CZKC9uUT.js} +1 -1
  25. package/dist/assets/bot-DqtgSgxB.js +1 -0
  26. package/dist/assets/{card-Bz65aUPI.js → card-CLrZE3zB.js} +1 -1
  27. package/dist/assets/{check-C7890FPo.js → check-B8hWCPEY.js} +1 -1
  28. package/dist/assets/checkbox-9ullTWTl.js +1 -0
  29. package/dist/assets/chevron-down-CdGqWSzz.js +1 -0
  30. package/dist/assets/clipboard-D6M0E1wp.js +1 -0
  31. package/dist/assets/company-members-Duugb3uG.js +1 -0
  32. package/dist/assets/createLucideIcon-DwVwDVEQ.js +134 -0
  33. package/dist/assets/{definition-BHM7rMPG.js → definition-cSCCeU7R.js} +1 -1
  34. package/dist/assets/dist-94psnYQg.js +1 -0
  35. package/dist/assets/dist-BLg9eYEC.js +1 -0
  36. package/dist/assets/dist-DGt1Bt7m.js +1 -0
  37. package/dist/assets/dist-OejlA9DH.js +1 -0
  38. package/dist/assets/dropdown-menu-ByiK1BlD.js +1 -0
  39. package/dist/assets/environments-BQaMNey_.js +1 -0
  40. package/dist/assets/{external-link-DggAY2Qs.js → external-link-0PKOUbZP.js} +1 -1
  41. package/dist/assets/{file-text-BWHzh5pq.js → file-text-Daxr7tUE.js} +1 -1
  42. package/dist/assets/{health-I-sCu61_.js → health-Dm97GTVw.js} +1 -1
  43. package/dist/assets/{heartbeats-DTwjV2kl.js → heartbeats-CZVMH9s8.js} +1 -1
  44. package/dist/assets/{index-jaWIjVIN.css → index-BJUeQIKY.css} +1 -1
  45. package/dist/assets/{index-D4-wU1bZ.js → index-Bzln5Ksp.js} +346 -199
  46. package/dist/assets/{input-ConoHcjz.js → input-rJVxQSgj.js} +1 -1
  47. package/dist/assets/instanceSettings-DuE48Bn5.js +1 -0
  48. package/dist/assets/label-CvkHqiK_.js +5 -0
  49. package/dist/assets/{mention-chips--Lp_ENqh.js → mention-chips-BkED6NiN.js} +9 -9
  50. package/dist/assets/{rotate-ccw-BUHfDFfI.js → rotate-ccw-sgBZvjSw.js} +1 -1
  51. package/dist/assets/save-V2f8XCvd.js +1 -0
  52. package/dist/assets/{select-C35A5IGs.js → select-XFvlcP6w.js} +1 -1
  53. package/dist/assets/sheet-BNPM7z3e.js +1 -0
  54. package/dist/assets/{skeleton-5VMhNzFs.js → skeleton-BmxbZVmQ.js} +1 -1
  55. package/dist/assets/{tabs-BNIJaxKM.js → tabs-BC_ScIgQ.js} +1 -1
  56. package/dist/assets/use-adapter-capabilities-FfDsq8WI.js +1 -0
  57. package/dist/assets/useHiddenSettings-Dobu8_xG.js +1 -0
  58. package/dist/assets/usePrefersReducedMotion-CkujTZ1k.js +1 -0
  59. package/dist/assets/x-XhYFJqIj.js +1 -0
  60. package/dist/index.html +50 -40
  61. package/dist/sw.js +1 -1
  62. package/package.json +1 -1
  63. package/dist/assets/AgentAvatar-CpQ88dwV.js +0 -1
  64. package/dist/assets/Agents.production-BbnOCG3N.js +0 -2
  65. package/dist/assets/BreadcrumbContext-c2KosyR8.js +0 -15
  66. package/dist/assets/CompanyActivity.production-tn4aIPJ7.js +0 -1
  67. package/dist/assets/EmptyState-DN8b4Qse.js +0 -1
  68. package/dist/assets/OrgChart.production-BJK4TNBI.js +0 -1
  69. package/dist/assets/RoutineDetail.production-DqgQQico.js +0 -1
  70. package/dist/assets/Routines.production-DQ5PjoiB.js +0 -1
  71. package/dist/assets/StatusIcon-BE5kFgZJ.js +0 -1
  72. package/dist/assets/ToastContext-FzmhiqZ4.js +0 -1
  73. package/dist/assets/agent-avatar-url-B_lUFC64.js +0 -134
  74. package/dist/assets/arrow-right-D3mUepq9.js +0 -1
  75. package/dist/assets/bot-Da_kJHpD.js +0 -1
  76. package/dist/assets/checkbox-Ds_3QqBB.js +0 -1
  77. package/dist/assets/clipboard-C4aDsmO8.js +0 -1
  78. package/dist/assets/company-members-BznLwAUd.js +0 -1
  79. package/dist/assets/dist-BXR8yTPD.js +0 -1
  80. package/dist/assets/dist-C4Rm-j8X.js +0 -1
  81. package/dist/assets/dist-CXUn2R-_.js +0 -1
  82. package/dist/assets/environments-B_qPdIBY.js +0 -1
  83. package/dist/assets/label-xpLcJrPL.js +0 -5
  84. package/dist/assets/sheet-TOBEGi0m.js +0 -1
  85. package/dist/assets/use-adapter-capabilities-KPGiuHeG.js +0 -1
  86. package/dist/assets/use-copy-action-DnjVh8kP.js +0 -1
  87. package/dist/assets/useHiddenSettings-CeQYvKer.js +0 -1
@@ -1,17 +1,17 @@
1
- var pn=Object.defineProperty;var r=(e,n)=>pn(e,"name",{value:n,configurable:!0});import{n as mn}from"./rolldown-runtime-ZpX3ckPj.js";import{bn as gn,gn as kn,n as xn}from"./agent-avatar-url-B_lUFC64.js";var Je="project://",et="agent://",dn="user://",tt="skill://",bn="routine://",yn=/^[0-9a-f]{6}$/i,wn=/^[0-9a-f]{3}$/i,In=/^#[0-9a-f]{6}$/i,Sn=/^#[0-9a-f]{3}$/i,Cn=/\[[^\]]*]\((agent:\/\/[^)\s]+)\)/gi,vn=/^[a-z0-9-]+$/i,En=/^[a-z0-9][a-z0-9-]*$/i;function St(e){if(!e)return null;const n=e.trim();if(!n)return null;if(In.test(n))return n.toLowerCase();if(yn.test(n))return`#${n.toLowerCase()}`;if(Sn.test(n)){const t=n.slice(1).toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}if(wn.test(n)){const t=n.toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}return null}r(St,"normalizeHexColor");function sl(e,n){const t=e.trim(),i=St(n??null);return i?`${Je}${t}?c=${encodeURIComponent(i.slice(1))}`:`${Je}${t}`}r(sl,"buildProjectMentionHref");function Tn(e){if(!e.startsWith("project://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="project:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{projectId:t,color:St(n.searchParams.get("c")??n.searchParams.get("color"))}:null}r(Tn,"parseProjectMentionHref");function cl(e,n){const t=e.trim(),i=vt(n??null);return i?`${et}${t}?i=${encodeURIComponent(i)}`:`${et}${t}`}r(cl,"buildAgentMentionHref");function Ct(e){if(!e.startsWith("agent://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="agent:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{agentId:t,icon:vt(n.searchParams.get("i")??n.searchParams.get("icon"))}:null}r(Ct,"parseAgentMentionHref");function hl(e){return`${dn}${e.trim()}`}r(hl,"buildUserMentionHref");function zn(e){if(!e.startsWith("user://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="user:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{userId:t}:null}r(zn,"parseUserMentionHref");function fl(e,n){const t=e.trim(),i=Et(n??null);return i?`${tt}${t}?s=${encodeURIComponent(i)}`:`${tt}${t}`}r(fl,"buildSkillMentionHref");function _n(e){if(!e.startsWith("skill://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="skill:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{skillId:t,slug:Et(n.searchParams.get("s")??n.searchParams.get("slug"))}:null}r(_n,"parseSkillMentionHref");function pl(e){return`${bn}${e.trim()}`}r(pl,"buildRoutineMentionHref");function An(e){if(!e.startsWith("routine://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="routine:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{routineId:t}:null}r(An,"parseRoutineMentionHref");function ml(e){if(!e)return[];const n=new Set,t=new RegExp(Cn);let i;for(;(i=t.exec(e))!==null;){const u=Ct(i[1]);u&&n.add(u.agentId)}return[...n]}r(ml,"extractAgentMentionIds");function vt(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!vn.test(n)?null:n}r(vt,"normalizeAgentIcon");function Et(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!En.test(n)?null:n}r(Et,"normalizeSkillSlug");var Ln=/^[A-Z][A-Z0-9]*-\d+$/;function Tt(e){const n=e.trim().toUpperCase();return Ln.test(n)?n:null}r(Tt,"normalizeIssueIdentifier");function gl(e){return`/issues/${Tt(e)??e.trim()}`}r(gl,"buildIssueReferenceHref");function Fn(e){const n=e.trim();if(!n)return null;let t;try{t=n.startsWith("/")?new URL(n,"https://paperclip.invalid"):new URL(n)}catch{return null}const i=t.pathname.split("/").map(u=>u.trim()).filter(Boolean);for(let u=0;u<i.length-1;u+=1){if(i[u]?.toLowerCase()!=="issues")continue;const l=Tt(i[u+1]??"");if(l)return{identifier:l}}return null}r(Fn,"parseIssueReferenceHref");var zt={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};zt.node;var kl=xn(zt);function K(e,n,t,i){const u=e.length;let l=0,a;if(n<0?n=-n>u?0:u+n:n=n>u?u:n,t=t>0?t:0,i.length<1e4)a=Array.from(i),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);l<i.length;)a=i.slice(l,l+1e4),a.unshift(n,0),e.splice(...a),l+=1e4,n+=1e4}r(K,"splice");function Y(e,n){return e.length>0?(K(e,e.length,0,n),e):n}r(Y,"push");var ee=ce(/[A-Za-z]/),J=ce(/[\dA-Za-z]/),Rn=ce(/[#-'*+\--9=?A-Z^-~]/);function Pe(e){return e!==null&&(e<32||e===127)}r(Pe,"asciiControl");var Oe=ce(/\d/),Mn=ce(/[\dA-Fa-f]/),Bn=ce(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}r(z,"markdownLineEnding");function U(e){return e!==null&&(e<0||e===32)}r(U,"markdownLineEndingOrSpace");function L(e){return e===-2||e===-1||e===32}r(L,"markdownSpace");var Dn=ce(new RegExp("\\p{P}|\\p{S}","u")),Pn=ce(/\s/);function ce(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}r(ce,"regexCheck");function de(e){if(e===null||U(e)||Pn(e))return 1;if(Dn(e))return 2}r(de,"classifyCharacter");function _e(e,n,t){const i=[];let u=-1;for(;++u<e.length;){const l=e[u].resolveAll;l&&!i.includes(l)&&(n=l(n,t),i.push(l))}return n}r(_e,"resolveAll");function xl(e){let n=(e||{}).singleTilde;const t={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}};function i(l,a){let o=-1;for(;++o<l.length;)if(l[o][0]==="enter"&&l[o][1].type==="strikethroughSequenceTemporary"&&l[o][1]._close){let s=o;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[o][1].end.offset-l[o][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[o][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[o][1].end)},p={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[o][1].start)},f=[["enter",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",p,a]],k=a.parser.constructs.insideSpan.null;k&&K(f,f.length,0,_e(k,l.slice(s+1,o),a)),K(f,f.length,0,[["exit",p,a],["enter",l[o][1],a],["exit",l[o][1],a],["exit",c,a]]),K(l,s-1,o-s+3,f),o=s+f.length-2;break}}for(o=-1;++o<l.length;)l[o][1].type==="strikethroughSequenceTemporary"&&(l[o][1].type="data");return l}r(i,"resolveAllStrikethrough");function u(l,a,o){const s=this.previous,c=this.events;let p=0;return f;function f(h){return s===126&&c[c.length-1][1].type!=="characterEscape"?o(h):(l.enter("strikethroughSequenceTemporary"),k(h))}function k(h){const w=de(s);if(h===126)return p>1?o(h):(l.consume(h),p++,k);if(p<2&&!n)return o(h);const C=l.exit("strikethroughSequenceTemporary"),v=de(h);return C._open=!v||v===2&&!!w,C._close=!w||w===2&&!!v,a(h)}}r(u,"tokenizeStrikethrough")}r(xl,"gfmStrikethrough");var On=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_t.peek=Nn;function dl(){return{canContainEols:["delete"],enter:{strikethrough:$n},exit:{strikethrough:Hn}}}r(dl,"gfmStrikethroughFromMarkdown");function bl(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:On}],handlers:{delete:_t}}}r(bl,"gfmStrikethroughToMarkdown");function $n(e){this.enter({type:"delete",children:[]},e)}r($n,"enterStrikethrough");function Hn(e){this.exit(e)}r(Hn,"exitStrikethrough");function _t(e,n,t,i){const u=t.createTracker(i),l=t.enter("strikethrough");let a=u.move("~~");return a+=t.containerPhrasing(e,{...u.current(),before:a,after:"~"}),a+=u.move("~~"),l(),a}r(_t,"handleDelete");function Nn(){return"~"}r(Nn,"peekDelete");function yl(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(n);for(;u!==-1;)i++,u=t.indexOf(n,u+n.length);return i}r(yl,"ccount");function wl(){}r(wl,"ok$1");function Il(){}r(Il,"unreachable");var nt=document.createElement("i");function Ne(e){const n="&"+e+";";nt.innerHTML=n;const t=nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}r(Ne,"decodeNamedCharacterReference");function Se(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rt(e.position):"start"in e||"end"in e?rt(e):"line"in e||"column"in e?$e(e):""}r(Se,"stringifyPosition");function $e(e){return it(e&&e.line)+":"+it(e&&e.column)}r($e,"point$1");function rt(e){return $e(e&&e.start)+"-"+$e(e&&e.end)}r(rt,"position");function it(e){return e&&typeof e=="number"?e:1}r(it,"index");var X=class extends Error{static{r(this,"VFileMessage")}constructor(e,n,t){super(),typeof n=="string"&&(t=n,n=void 0);let i="",u={},l=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof e=="string"?i=e:!u.cause&&e&&(l=!0,i=e.message,u.cause=e),!u.ruleId&&!u.source&&typeof t=="string"){const o=t.indexOf(":");o===-1?u.ruleId=t:(u.source=t.slice(0,o),u.ruleId=t.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const a=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Se(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};X.prototype.file="";X.prototype.name="";X.prototype.reason="";X.prototype.message="";X.prototype.stack="";X.prototype.column=void 0;X.prototype.line=void 0;X.prototype.ancestors=void 0;X.prototype.cause=void 0;X.prototype.fatal=void 0;X.prototype.place=void 0;X.prototype.ruleId=void 0;X.prototype.source=void 0;var jn=/[$_\p{ID_Start}]/u,qn=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Vn=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Un=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,At={};function Sl(e){return e?jn.test(String.fromCodePoint(e)):!1}r(Sl,"start");function Cl(e,n){const t=(n||At).jsx?Vn:qn;return e?t.test(String.fromCodePoint(e)):!1}r(Cl,"cont");function vl(e,n){return((n||At).jsx?Qn:Un).test(e)}r(vl,"name");function D(e,n,t,i){const u=i?i-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(s){return L(s)?(e.enter(t),o(s)):n(s)}function o(s){return L(s)&&l++<u?(e.consume(s),o):(e.exit(t),n(s))}}r(D,"factorySpace");function Wn(e,n,t,i){const u=t.enter("blockquote"),l=t.createTracker(i);l.move("> "),l.shift(2);const a=t.indentLines(t.containerFlow(e,l.current()),Gn);return u(),a}r(Wn,"blockquote");function Gn(e,n,t){return">"+(t?"":" ")+e}r(Gn,"map$1");function Kn(e,n){return ut(e,n.inConstruct,!0)&&!ut(e,n.notInConstruct,!1)}r(Kn,"patternInScope");function ut(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}r(ut,"listInScope");function lt(e,n,t,i){let u=-1;for(;++u<t.unsafe.length;)if(t.unsafe[u].character===`
2
- `&&Kn(t.stack,t.unsafe[u]))return/[ \t]/.test(i.before)?"":" ";return`\\
3
- `}r(lt,"hardBreak");function Xn(e,n){const t=String(e);let i=t.indexOf(n),u=i,l=0,a=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===u?++l>a&&(a=l):l=1,u=i+n.length,i=t.indexOf(n,u);return a}r(Xn,"longestStreak");function Yn(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}r(Yn,"formatCodeAsIndented");function Zn(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}r(Zn,"checkFence");function Jn(e,n,t,i){const u=Zn(t),l=e.value||"",a=u==="`"?"GraveAccent":"Tilde";if(Yn(e,t)){const f=t.enter("codeIndented"),k=t.indentLines(l,er);return f(),k}const o=t.createTracker(i),s=u.repeat(Math.max(Xn(l,u)+1,3)),c=t.enter("codeFenced");let p=o.move(s);if(e.lang){const f=t.enter(`codeFencedLang${a}`);p+=o.move(t.safe(e.lang,{before:p,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=t.enter(`codeFencedMeta${a}`);p+=o.move(" "),p+=o.move(t.safe(e.meta,{before:p,after:`
1
+ var fn=Object.defineProperty;var r=(e,n)=>fn(e,"name",{value:n,configurable:!0});import{n as pn}from"./rolldown-runtime-ZpX3ckPj.js";import{dn as mn,sn as gn}from"./createLucideIcon-DwVwDVEQ.js";import"./agent-avatar-url-CKjwadh7.js";var Je="project://",et="agent://",kn="user://",tt="skill://",xn="routine://",dn=/^[0-9a-f]{6}$/i,bn=/^[0-9a-f]{3}$/i,yn=/^#[0-9a-f]{6}$/i,wn=/^#[0-9a-f]{3}$/i,In=/\[[^\]]*]\((agent:\/\/[^)\s]+)\)/gi,Sn=/^[a-z0-9-]+$/i,Cn=/^[a-z0-9][a-z0-9-]*$/i;function St(e){if(!e)return null;const n=e.trim();if(!n)return null;if(yn.test(n))return n.toLowerCase();if(dn.test(n))return`#${n.toLowerCase()}`;if(wn.test(n)){const t=n.slice(1).toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}if(bn.test(n)){const t=n.toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}return null}r(St,"normalizeHexColor");function ol(e,n){const t=e.trim(),i=St(n??null);return i?`${Je}${t}?c=${encodeURIComponent(i.slice(1))}`:`${Je}${t}`}r(ol,"buildProjectMentionHref");function vn(e){if(!e.startsWith("project://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="project:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{projectId:t,color:St(n.searchParams.get("c")??n.searchParams.get("color"))}:null}r(vn,"parseProjectMentionHref");function sl(e,n){const t=e.trim(),i=vt(n??null);return i?`${et}${t}?i=${encodeURIComponent(i)}`:`${et}${t}`}r(sl,"buildAgentMentionHref");function Ct(e){if(!e.startsWith("agent://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="agent:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{agentId:t,icon:vt(n.searchParams.get("i")??n.searchParams.get("icon"))}:null}r(Ct,"parseAgentMentionHref");function cl(e){return`${kn}${e.trim()}`}r(cl,"buildUserMentionHref");function En(e){if(!e.startsWith("user://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="user:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{userId:t}:null}r(En,"parseUserMentionHref");function hl(e,n){const t=e.trim(),i=Et(n??null);return i?`${tt}${t}?s=${encodeURIComponent(i)}`:`${tt}${t}`}r(hl,"buildSkillMentionHref");function Tn(e){if(!e.startsWith("skill://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="skill:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{skillId:t,slug:Et(n.searchParams.get("s")??n.searchParams.get("slug"))}:null}r(Tn,"parseSkillMentionHref");function fl(e){return`${xn}${e.trim()}`}r(fl,"buildRoutineMentionHref");function zn(e){if(!e.startsWith("routine://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="routine:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{routineId:t}:null}r(zn,"parseRoutineMentionHref");function pl(e){if(!e)return[];const n=new Set,t=new RegExp(In);let i;for(;(i=t.exec(e))!==null;){const u=Ct(i[1]);u&&n.add(u.agentId)}return[...n]}r(pl,"extractAgentMentionIds");function vt(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!Sn.test(n)?null:n}r(vt,"normalizeAgentIcon");function Et(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!Cn.test(n)?null:n}r(Et,"normalizeSkillSlug");var _n=/^[A-Z][A-Z0-9]*-\d+$/;function Tt(e){const n=e.trim().toUpperCase();return _n.test(n)?n:null}r(Tt,"normalizeIssueIdentifier");function ml(e){return`/issues/${Tt(e)??e.trim()}`}r(ml,"buildIssueReferenceHref");function An(e){const n=e.trim();if(!n)return null;let t;try{t=n.startsWith("/")?new URL(n,"https://paperclip.invalid"):new URL(n)}catch{return null}const i=t.pathname.split("/").map(u=>u.trim()).filter(Boolean);for(let u=0;u<i.length-1;u+=1){if(i[u]?.toLowerCase()!=="issues")continue;const l=Tt(i[u+1]??"");if(l)return{identifier:l}}return null}r(An,"parseIssueReferenceHref");function K(e,n,t,i){const u=e.length;let l=0,a;if(n<0?n=-n>u?0:u+n:n=n>u?u:n,t=t>0?t:0,i.length<1e4)a=Array.from(i),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);l<i.length;)a=i.slice(l,l+1e4),a.unshift(n,0),e.splice(...a),l+=1e4,n+=1e4}r(K,"splice");function X(e,n){return e.length>0?(K(e,e.length,0,n),e):n}r(X,"push");var ee=ce(/[A-Za-z]/),J=ce(/[\dA-Za-z]/),Ln=ce(/[#-'*+\--9=?A-Z^-~]/);function Pe(e){return e!==null&&(e<32||e===127)}r(Pe,"asciiControl");var Oe=ce(/\d/),Fn=ce(/[\dA-Fa-f]/),Rn=ce(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}r(z,"markdownLineEnding");function U(e){return e!==null&&(e<0||e===32)}r(U,"markdownLineEndingOrSpace");function L(e){return e===-2||e===-1||e===32}r(L,"markdownSpace");var Bn=ce(new RegExp("\\p{P}|\\p{S}","u")),Mn=ce(/\s/);function ce(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}r(ce,"regexCheck");function de(e){if(e===null||U(e)||Mn(e))return 1;if(Bn(e))return 2}r(de,"classifyCharacter");function _e(e,n,t){const i=[];let u=-1;for(;++u<e.length;){const l=e[u].resolveAll;l&&!i.includes(l)&&(n=l(n,t),i.push(l))}return n}r(_e,"resolveAll");function gl(e){let n=(e||{}).singleTilde;const t={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}};function i(l,a){let o=-1;for(;++o<l.length;)if(l[o][0]==="enter"&&l[o][1].type==="strikethroughSequenceTemporary"&&l[o][1]._close){let s=o;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[o][1].end.offset-l[o][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[o][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[o][1].end)},p={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[o][1].start)},f=[["enter",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",p,a]],k=a.parser.constructs.insideSpan.null;k&&K(f,f.length,0,_e(k,l.slice(s+1,o),a)),K(f,f.length,0,[["exit",p,a],["enter",l[o][1],a],["exit",l[o][1],a],["exit",c,a]]),K(l,s-1,o-s+3,f),o=s+f.length-2;break}}for(o=-1;++o<l.length;)l[o][1].type==="strikethroughSequenceTemporary"&&(l[o][1].type="data");return l}r(i,"resolveAllStrikethrough");function u(l,a,o){const s=this.previous,c=this.events;let p=0;return f;function f(h){return s===126&&c[c.length-1][1].type!=="characterEscape"?o(h):(l.enter("strikethroughSequenceTemporary"),k(h))}function k(h){const w=de(s);if(h===126)return p>1?o(h):(l.consume(h),p++,k);if(p<2&&!n)return o(h);const C=l.exit("strikethroughSequenceTemporary"),v=de(h);return C._open=!v||v===2&&!!w,C._close=!w||w===2&&!!v,a(h)}}r(u,"tokenizeStrikethrough")}r(gl,"gfmStrikethrough");var Dn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];zt.peek=$n;function kl(){return{canContainEols:["delete"],enter:{strikethrough:Pn},exit:{strikethrough:On}}}r(kl,"gfmStrikethroughFromMarkdown");function xl(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Dn}],handlers:{delete:zt}}}r(xl,"gfmStrikethroughToMarkdown");function Pn(e){this.enter({type:"delete",children:[]},e)}r(Pn,"enterStrikethrough");function On(e){this.exit(e)}r(On,"exitStrikethrough");function zt(e,n,t,i){const u=t.createTracker(i),l=t.enter("strikethrough");let a=u.move("~~");return a+=t.containerPhrasing(e,{...u.current(),before:a,after:"~"}),a+=u.move("~~"),l(),a}r(zt,"handleDelete");function $n(){return"~"}r($n,"peekDelete");function dl(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(n);for(;u!==-1;)i++,u=t.indexOf(n,u+n.length);return i}r(dl,"ccount");function bl(){}r(bl,"ok$1");function yl(){}r(yl,"unreachable");var nt=document.createElement("i");function Ne(e){const n="&"+e+";";nt.innerHTML=n;const t=nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}r(Ne,"decodeNamedCharacterReference");function Se(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rt(e.position):"start"in e||"end"in e?rt(e):"line"in e||"column"in e?$e(e):""}r(Se,"stringifyPosition");function $e(e){return it(e&&e.line)+":"+it(e&&e.column)}r($e,"point$1");function rt(e){return $e(e&&e.start)+"-"+$e(e&&e.end)}r(rt,"position");function it(e){return e&&typeof e=="number"?e:1}r(it,"index");var Y=class extends Error{static{r(this,"VFileMessage")}constructor(e,n,t){super(),typeof n=="string"&&(t=n,n=void 0);let i="",u={},l=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof e=="string"?i=e:!u.cause&&e&&(l=!0,i=e.message,u.cause=e),!u.ruleId&&!u.source&&typeof t=="string"){const o=t.indexOf(":");o===-1?u.ruleId=t:(u.source=t.slice(0,o),u.ruleId=t.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const a=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Se(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Y.prototype.file="";Y.prototype.name="";Y.prototype.reason="";Y.prototype.message="";Y.prototype.stack="";Y.prototype.column=void 0;Y.prototype.line=void 0;Y.prototype.ancestors=void 0;Y.prototype.cause=void 0;Y.prototype.fatal=void 0;Y.prototype.place=void 0;Y.prototype.ruleId=void 0;Y.prototype.source=void 0;var Hn=/[$_\p{ID_Start}]/u,Nn=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,jn=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,qn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_t={};function wl(e){return e?Hn.test(String.fromCodePoint(e)):!1}r(wl,"start");function Il(e,n){const t=(n||_t).jsx?jn:Nn;return e?t.test(String.fromCodePoint(e)):!1}r(Il,"cont");function Sl(e,n){return((n||_t).jsx?Vn:qn).test(e)}r(Sl,"name");function D(e,n,t,i){const u=i?i-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(s){return L(s)?(e.enter(t),o(s)):n(s)}function o(s){return L(s)&&l++<u?(e.consume(s),o):(e.exit(t),n(s))}}r(D,"factorySpace");function Un(e,n,t,i){const u=t.enter("blockquote"),l=t.createTracker(i);l.move("> "),l.shift(2);const a=t.indentLines(t.containerFlow(e,l.current()),Qn);return u(),a}r(Un,"blockquote");function Qn(e,n,t){return">"+(t?"":" ")+e}r(Qn,"map$1");function Wn(e,n){return ut(e,n.inConstruct,!0)&&!ut(e,n.notInConstruct,!1)}r(Wn,"patternInScope");function ut(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}r(ut,"listInScope");function lt(e,n,t,i){let u=-1;for(;++u<t.unsafe.length;)if(t.unsafe[u].character===`
2
+ `&&Wn(t.stack,t.unsafe[u]))return/[ \t]/.test(i.before)?"":" ";return`\\
3
+ `}r(lt,"hardBreak");function Gn(e,n){const t=String(e);let i=t.indexOf(n),u=i,l=0,a=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===u?++l>a&&(a=l):l=1,u=i+n.length,i=t.indexOf(n,u);return a}r(Gn,"longestStreak");function Kn(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}r(Kn,"formatCodeAsIndented");function Yn(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}r(Yn,"checkFence");function Xn(e,n,t,i){const u=Yn(t),l=e.value||"",a=u==="`"?"GraveAccent":"Tilde";if(Kn(e,t)){const f=t.enter("codeIndented"),k=t.indentLines(l,Zn);return f(),k}const o=t.createTracker(i),s=u.repeat(Math.max(Gn(l,u)+1,3)),c=t.enter("codeFenced");let p=o.move(s);if(e.lang){const f=t.enter(`codeFencedLang${a}`);p+=o.move(t.safe(e.lang,{before:p,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=t.enter(`codeFencedMeta${a}`);p+=o.move(" "),p+=o.move(t.safe(e.meta,{before:p,after:`
4
4
  `,encode:["`"],...o.current()})),f()}return p+=o.move(`
5
5
  `),l&&(p+=o.move(l+`
6
- `)),p+=o.move(s),c(),p}r(Jn,"code");function er(e,n,t){return(t?"":" ")+e}r(er,"map");function je(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}r(je,"checkQuote");function tr(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.enter("definition");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("[");return c+=s.move(t.safe(t.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":`
7
- `,...s.current()}))),o(),e.title&&(o=t.enter(`title${l}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),a(),c}r(tr,"definition$1");function nr(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}r(nr,"checkEmphasis");function ve(e){return"&#x"+e.toString(16).toUpperCase()+";"}r(ve,"encodeCharacterReference");function ze(e,n,t){const i=de(e),u=de(n);return i===void 0?u===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}r(ze,"encodeInfo");Lt.peek=rr;function Lt(e,n,t,i){const u=nr(t),l=t.enter("emphasis"),a=t.createTracker(i),o=a.move(u);let s=a.move(t.containerPhrasing(e,{after:u,before:o,...a.current()}));const c=s.charCodeAt(0),p=ze(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=ve(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=ze(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+ve(f));const h=a.move(u);return l(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(Lt,"emphasis");function rr(e,n,t){return t.options.emphasis||"*"}r(rr,"emphasisPeek");var qe=r((function(e){if(e==null)return ar;if(typeof e=="function")return Ae(e);if(typeof e=="object")return Array.isArray(e)?ir(e):ur(e);if(typeof e=="string")return lr(e);throw new Error("Expected function, string, or object as test")}),"convert");function ir(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=qe(e[t]);return Ae(i);function i(...u){let l=-1;for(;++l<n.length;)if(n[l].apply(this,u))return!0;return!1}}r(ir,"anyFactory");function ur(e){const n=e;return Ae(t);function t(i){const u=i;let l;for(l in e)if(u[l]!==n[l])return!1;return!0}}r(ur,"propertiesFactory");function lr(e){return Ae(n);function n(t){return t&&t.type===e}}r(lr,"typeFactory");function Ae(e){return n;function n(t,i,u){return!!(or(t)&&e.call(this,t,typeof i=="number"?i:void 0,u||void 0))}}r(Ae,"castFactory");function ar(){return!0}r(ar,"ok");function or(e){return e!==null&&typeof e=="object"&&"type"in e}r(or,"looksLikeANode");var Ft=[];function sr(e,n,t,i){let u;typeof n=="function"&&typeof t!="function"?(i=t,t=n):u=n;const l=qe(u),a=i?-1:1;o(e,void 0,[])();function o(s,c,p){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return k;function k(){let h=Ft,w,C,v;if((!n||l(s,c,p[p.length-1]||void 0))&&(h=cr(t(s,p)),h[0]===!1))return h;if("children"in s&&s.children){const b=s;if(b.children&&h[0]!=="skip")for(C=(i?b.children.length:-1)+a,v=p.concat(b);C>-1&&C<b.children.length;){const _=b.children[C];if(w=o(_,C,v)(),w[0]===!1)return w;C=typeof w[1]=="number"?w[1]:C+a}}return h}}r(o,"factory")}r(sr,"visitParents");function cr(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Ft:[e]}r(cr,"toResult");function hr(e,n,t,i){let u,l,a;typeof n=="function"&&typeof t!="function"?(l=void 0,a=n,u=t):(l=n,a=t,u=i),sr(e,l,o,u);function o(s,c){const p=c[c.length-1],f=p?p.children.indexOf(s):void 0;return a(s,f,p)}r(o,"overload")}r(hr,"visit");var fr={};function Ve(e,n){const t=n||fr;return Rt(e,typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,typeof t.includeHtml=="boolean"?t.includeHtml:!0)}r(Ve,"toString");function Rt(e,n,t){if(pr(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return at(e.children,n,t)}return Array.isArray(e)?at(e,n,t):""}r(Rt,"one");function at(e,n,t){const i=[];let u=-1;for(;++u<e.length;)i[u]=Rt(e[u],n,t);return i.join("")}r(at,"all");function pr(e){return!!(e&&typeof e=="object")}r(pr,"node");function mr(e,n){let t=!1;return hr(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,!1}),!!((!e.depth||e.depth<3)&&Ve(e)&&(n.options.setext||t))}r(mr,"formatHeadingAsSetext");function gr(e,n,t,i){const u=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(i);if(mr(e,t)){const p=t.enter("headingSetext"),f=t.enter("phrasing"),k=t.containerPhrasing(e,{...l.current(),before:`
6
+ `)),p+=o.move(s),c(),p}r(Xn,"code");function Zn(e,n,t){return(t?"":" ")+e}r(Zn,"map");function je(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}r(je,"checkQuote");function Jn(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.enter("definition");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("[");return c+=s.move(t.safe(t.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":`
7
+ `,...s.current()}))),o(),e.title&&(o=t.enter(`title${l}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),a(),c}r(Jn,"definition$1");function er(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}r(er,"checkEmphasis");function ve(e){return"&#x"+e.toString(16).toUpperCase()+";"}r(ve,"encodeCharacterReference");function ze(e,n,t){const i=de(e),u=de(n);return i===void 0?u===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}r(ze,"encodeInfo");At.peek=tr;function At(e,n,t,i){const u=er(t),l=t.enter("emphasis"),a=t.createTracker(i),o=a.move(u);let s=a.move(t.containerPhrasing(e,{after:u,before:o,...a.current()}));const c=s.charCodeAt(0),p=ze(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=ve(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=ze(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+ve(f));const h=a.move(u);return l(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(At,"emphasis");function tr(e,n,t){return t.options.emphasis||"*"}r(tr,"emphasisPeek");var qe=r((function(e){if(e==null)return ur;if(typeof e=="function")return Ae(e);if(typeof e=="object")return Array.isArray(e)?nr(e):rr(e);if(typeof e=="string")return ir(e);throw new Error("Expected function, string, or object as test")}),"convert");function nr(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=qe(e[t]);return Ae(i);function i(...u){let l=-1;for(;++l<n.length;)if(n[l].apply(this,u))return!0;return!1}}r(nr,"anyFactory");function rr(e){const n=e;return Ae(t);function t(i){const u=i;let l;for(l in e)if(u[l]!==n[l])return!1;return!0}}r(rr,"propertiesFactory");function ir(e){return Ae(n);function n(t){return t&&t.type===e}}r(ir,"typeFactory");function Ae(e){return n;function n(t,i,u){return!!(lr(t)&&e.call(this,t,typeof i=="number"?i:void 0,u||void 0))}}r(Ae,"castFactory");function ur(){return!0}r(ur,"ok");function lr(e){return e!==null&&typeof e=="object"&&"type"in e}r(lr,"looksLikeANode");var Lt=[];function ar(e,n,t,i){let u;typeof n=="function"&&typeof t!="function"?(i=t,t=n):u=n;const l=qe(u),a=i?-1:1;o(e,void 0,[])();function o(s,c,p){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return k;function k(){let h=Lt,w,C,v;if((!n||l(s,c,p[p.length-1]||void 0))&&(h=or(t(s,p)),h[0]===!1))return h;if("children"in s&&s.children){const b=s;if(b.children&&h[0]!=="skip")for(C=(i?b.children.length:-1)+a,v=p.concat(b);C>-1&&C<b.children.length;){const _=b.children[C];if(w=o(_,C,v)(),w[0]===!1)return w;C=typeof w[1]=="number"?w[1]:C+a}}return h}}r(o,"factory")}r(ar,"visitParents");function or(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Lt:[e]}r(or,"toResult");function sr(e,n,t,i){let u,l,a;typeof n=="function"&&typeof t!="function"?(l=void 0,a=n,u=t):(l=n,a=t,u=i),ar(e,l,o,u);function o(s,c){const p=c[c.length-1],f=p?p.children.indexOf(s):void 0;return a(s,f,p)}r(o,"overload")}r(sr,"visit");var cr={};function Ve(e,n){const t=n||cr;return Ft(e,typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,typeof t.includeHtml=="boolean"?t.includeHtml:!0)}r(Ve,"toString");function Ft(e,n,t){if(hr(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return at(e.children,n,t)}return Array.isArray(e)?at(e,n,t):""}r(Ft,"one");function at(e,n,t){const i=[];let u=-1;for(;++u<e.length;)i[u]=Ft(e[u],n,t);return i.join("")}r(at,"all");function hr(e){return!!(e&&typeof e=="object")}r(hr,"node");function fr(e,n){let t=!1;return sr(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,!1}),!!((!e.depth||e.depth<3)&&Ve(e)&&(n.options.setext||t))}r(fr,"formatHeadingAsSetext");function pr(e,n,t,i){const u=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(i);if(fr(e,t)){const p=t.enter("headingSetext"),f=t.enter("phrasing"),k=t.containerPhrasing(e,{...l.current(),before:`
8
8
  `,after:`
9
9
  `});return f(),p(),k+`
10
10
  `+(u===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
11
11
  `))+1))}const a="#".repeat(u),o=t.enter("headingAtx"),s=t.enter("phrasing");l.move(a+" ");let c=t.containerPhrasing(e,{before:"# ",after:`
12
- `,...l.current()});return/^[\t ]/.test(c)&&(c=ve(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,t.options.closeAtx&&(c+=" "+a),s(),o(),c}r(gr,"heading");Mt.peek=kr;function Mt(e){return e.value||""}r(Mt,"html");function kr(){return"<"}r(kr,"htmlPeek");Bt.peek=xr;function Bt(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.enter("image");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("![");return c+=s.move(t.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=t.enter(`title${l}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),c+=s.move(")"),a(),c}r(Bt,"image");function xr(){return"!"}r(xr,"imagePeek");Dt.peek=dr;function Dt(e,n,t,i){const u=e.referenceType,l=t.enter("imageReference");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("![");const c=t.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),a();const p=t.stack;t.stack=[],a=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return a(),t.stack=p,l(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(Dt,"imageReference");function dr(){return"!"}r(dr,"imageReferencePeek");Pt.peek=br;function Pt(e,n,t){let i=e.value||"",u="`",l=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(i);)u+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<t.unsafe.length;){const a=t.unsafe[l],o=t.compilePattern(a);let s;if(a.atBreak)for(;s=o.exec(i);){let c=s.index;i.charCodeAt(c)===10&&i.charCodeAt(c-1)===13&&c--,i=i.slice(0,c)+" "+i.slice(s.index+1)}}return u+i+u}r(Pt,"inlineCode");function br(){return"`"}r(br,"inlineCodePeek");function Ot(e,n){const t=Ve(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}r(Ot,"formatLinkAsAutolink");$t.peek=yr;function $t(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.createTracker(i);let o,s;if(Ot(e,t)){const p=t.stack;t.stack=[],o=t.enter("autolink");let f=a.move("<");return f+=a.move(t.containerPhrasing(e,{before:f,after:">",...a.current()})),f+=a.move(">"),o(),t.stack=p,f}o=t.enter("link"),s=t.enter("label");let c=a.move("[");return c+=a.move(t.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(t.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=t.enter("destinationRaw"),c+=a.move(t.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=t.enter(`title${l}`),c+=a.move(" "+u),c+=a.move(t.safe(e.title,{before:c,after:u,...a.current()})),c+=a.move(u),s()),c+=a.move(")"),o(),c}r($t,"link");function yr(e,n,t){return Ot(e,t)?"<":"["}r(yr,"linkPeek");Ht.peek=wr;function Ht(e,n,t,i){const u=e.referenceType,l=t.enter("linkReference");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("[");const c=t.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),a();const p=t.stack;t.stack=[],a=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return a(),t.stack=p,l(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(Ht,"linkReference");function wr(){return"["}r(wr,"linkReferencePeek");function Ue(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}r(Ue,"checkBullet");function Ir(e){const n=Ue(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}r(Ir,"checkBulletOther");function Sr(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}r(Sr,"checkBulletOrdered");function Nt(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}r(Nt,"checkRule");function Cr(e,n,t,i){const u=t.enter("list"),l=t.bulletCurrent;let a=e.ordered?Sr(t):Ue(t);const o=e.ordered?a==="."?")":".":Ir(t);let s=n&&t.bulletLastUsed?a===t.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&p&&(!p.children||!p.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Nt(t)===a&&p){let f=-1;for(;++f<e.children.length;){const k=e.children[f];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(a=o),t.bulletCurrent=a;const c=t.containerFlow(e,i);return t.bulletLastUsed=a,t.bulletCurrent=l,u(),c}r(Cr,"list$1");function vr(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}r(vr,"checkListItemIndent");function Er(e,n,t,i){const u=vr(t);let l=t.bulletCurrent||Ue(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let a=l.length+1;(u==="tab"||u==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=t.createTracker(i);o.move(l+" ".repeat(a-l.length)),o.shift(a);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,o.current()),p);return s(),c;function p(f,k,h){return k?(h?"":" ".repeat(a))+f:(h?l:l+" ".repeat(a-l.length))+f}r(p,"map")}r(Er,"listItem");function Tr(e,n,t,i){const u=t.enter("paragraph"),l=t.enter("phrasing"),a=t.containerPhrasing(e,i);return l(),u(),a}r(Tr,"paragraph");var zr=qe(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _r(e,n,t,i){return(e.children.some(function(u){return zr(u)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}r(_r,"root");function Ar(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}r(Ar,"checkStrong");jt.peek=Lr;function jt(e,n,t,i){const u=Ar(t),l=t.enter("strong"),a=t.createTracker(i),o=a.move(u+u);let s=a.move(t.containerPhrasing(e,{after:u,before:o,...a.current()}));const c=s.charCodeAt(0),p=ze(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=ve(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=ze(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+ve(f));const h=a.move(u+u);return l(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(jt,"strong");function Lr(e,n,t){return t.options.strong||"*"}r(Lr,"strongPeek");function Fr(e,n,t,i){return t.safe(e.value,i)}r(Fr,"text$2");function Rr(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}r(Rr,"checkRuleRepetition");function Mr(e,n,t){const i=(Nt(t)+(t.options.ruleSpaces?" ":"")).repeat(Rr(t));return t.options.ruleSpaces?i.slice(0,-1):i}r(Mr,"thematicBreak$1");var qt={blockquote:Wn,break:lt,code:Jn,definition:tr,emphasis:Lt,hardBreak:lt,heading:gr,html:Mt,image:Bt,imageReference:Dt,inlineCode:Pt,link:$t,linkReference:Ht,list:Cr,listItem:Er,paragraph:Tr,root:_r,strong:jt,text:Fr,thematicBreak:Mr};function Vt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}r(Vt,"decodeNumericCharacterReference");var Br=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dr(e){return e.replace(Br,Pr)}r(Dr,"decodeString");function Pr(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),u=i===120||i===88;return Vt(t.slice(u?2:1),u?16:10)}return Ne(t)||e}r(Pr,"decode");var ot={}.hasOwnProperty;function Or(e){const n={};let t=-1;for(;++t<e.length;)$r(n,e[t]);return n}r(Or,"combineExtensions");function $r(e,n){let t;for(t in n){const i=(ot.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t];let l;if(u)for(l in u){ot.call(i,l)||(i[l]=[]);const a=u[l];Hr(i[l],Array.isArray(a)?a:a?[a]:[])}}}r($r,"syntaxExtension");function Hr(e,n){let t=-1;const i=[];for(;++t<n.length;)(n[t].add==="after"?e:i).push(n[t]);K(e,0,0,i)}r(Hr,"constructs");function xe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r(xe,"normalizeIdentifier");var Nr={tokenize:jr};function jr(e){const n=e.attempt(this.parser.constructs.contentInitial,i,u);let t;return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),D(e,n,"linePrefix")}function u(o){return e.enter("paragraph"),l(o)}function l(o){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return z(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),a)}}r(jr,"initializeContent");var qr={tokenize:Vr},st={tokenize:Ur};function Vr(e){const n=this,t=[];let i=0,u,l,a;return o;function o(S){if(i<t.length){const R=t[i];return n.containerState=R[1],e.attempt(R[0].continuation,s,c)(S)}return c(S)}function s(S){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,u&&_();const R=n.events.length;let F=R,y;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){y=n.events[F][1].end;break}b(i);let M=R;for(;M<n.events.length;)n.events[M][1].end={...y},M++;return K(n.events,F+1,0,n.events.slice(R)),n.events.length=M,c(S)}return o(S)}function c(S){if(i===t.length){if(!u)return k(S);if(u.currentConstruct&&u.currentConstruct.concrete)return w(S);n.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(st,p,f)(S)}function p(S){return u&&_(),b(i),k(S)}function f(S){return n.parser.lazy[n.now().line]=i!==t.length,a=n.now().offset,w(S)}function k(S){return n.containerState={},e.attempt(st,h,w)(S)}function h(S){return i++,t.push([n.currentConstruct,n.containerState]),k(S)}function w(S){if(S===null){u&&_(),b(0),e.consume(S);return}return u=u||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:l}),C(S)}function C(S){if(S===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return z(S)?(e.consume(S),v(e.exit("chunkFlow")),i=0,n.interrupt=void 0,o):(e.consume(S),C)}function v(S,R){const F=n.sliceStream(S);if(R&&F.push(null),S.previous=l,l&&(l.next=S),l=S,u.defineSkip(S.start),u.write(F),n.parser.lazy[S.start.line]){let y=u.events.length;for(;y--;)if(u.events[y][1].start.offset<a&&(!u.events[y][1].end||u.events[y][1].end.offset>a))return;const M=n.events.length;let $=M,P,x;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(P){x=n.events[$][1].end;break}P=!0}for(b(i),y=M;y<n.events.length;)n.events[y][1].end={...x},y++;K(n.events,$+1,0,n.events.slice(M)),n.events.length=y}}function b(S){let R=t.length;for(;R-- >S;){const F=t[R];n.containerState=F[1],F[0].exit.call(n,e)}t.length=S}function _(){u.write([null]),l=void 0,u=void 0,n.containerState._closeFlow=void 0}}r(Vr,"initializeDocument");function Ur(e,n,t){return D(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}r(Ur,"tokenizeContainer");var He={name:"attention",resolveAll:Qr,tokenize:Wr};function Qr(e,n){let t=-1,i,u,l,a,o,s,c,p;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(i=t;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[i][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[i][1].end},k={...e[t][1].start};ct(f,-s),ct(k,s),a={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:k},l={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},u={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[i][1].end={...a.start},e[t][1].start={...o.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Y(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=Y(c,[["enter",u,n],["enter",a,n],["exit",a,n],["enter",l,n]]),c=Y(c,_e(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),c=Y(c,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",u,n]]),e[t][1].end.offset-e[t][1].start.offset?(p=2,c=Y(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):p=0,K(e,i-1,t-i+3,c),t=i+c.length-p-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}r(Qr,"resolveAllAttention");function Wr(e,n){const t=this.parser.constructs.attentionMarkers.null,i=this.previous,u=de(i);let l;return a;function a(s){return l=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===l)return e.consume(s),o;const c=e.exit("attentionSequence"),p=de(s),f=!p||p===2&&u||t.includes(s),k=!u||u===2&&p||t.includes(i);return c._open=!!(l===42?f:f&&(u||!k)),c._close=!!(l===42?k:k&&(p||!f)),n(s)}}r(Wr,"tokenizeAttention");function ct(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}r(ct,"movePoint");var Gr={name:"autolink",tokenize:Kr};function Kr(e,n,t){let i=0;return u;function u(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return ee(h)?(e.consume(h),a):h===64?t(h):c(h)}function a(h){return h===43||h===45||h===46||J(h)?(i=1,o(h)):c(h)}function o(h){return h===58?(e.consume(h),i=0,s):(h===43||h===45||h===46||J(h))&&i++<32?(e.consume(h),o):(i=0,c(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Pe(h)?t(h):(e.consume(h),s)}function c(h){return h===64?(e.consume(h),p):Rn(h)?(e.consume(h),c):t(h)}function p(h){return J(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),i=0,p):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):k(h)}function k(h){if((h===45||J(h))&&i++<63){const w=h===45?k:f;return e.consume(h),w}return t(h)}}r(Kr,"tokenizeAutolink");var Le={partial:!0,tokenize:Xr};function Xr(e,n,t){return i;function i(l){return L(l)?D(e,u,"linePrefix")(l):u(l)}function u(l){return l===null||z(l)?n(l):t(l)}}r(Xr,"tokenizeBlankLine");var Ut={continuation:{tokenize:Zr},exit:Jr,name:"blockQuote",tokenize:Yr};function Yr(e,n,t){const i=this;return u;function u(a){if(a===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return t(a)}function l(a){return L(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(a))}}r(Yr,"tokenizeBlockQuoteStart");function Zr(e,n,t){const i=this;return u;function u(a){return L(a)?D(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(Ut,n,t)(a)}}r(Zr,"tokenizeBlockQuoteContinuation");function Jr(e){e.exit("blockQuote")}r(Jr,"exit$1");var Qt={name:"characterEscape",tokenize:ei};function ei(e,n,t){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),u}function u(l){return Bn(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}r(ei,"tokenizeCharacterEscape");var Wt={name:"characterReference",tokenize:ti};function ti(e,n,t){const i=this;let u=0,l,a;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),l=31,a=J,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=Mn,p):(e.enter("characterReferenceValue"),l=7,a=Oe,p(f))}function p(f){if(f===59&&u){const k=e.exit("characterReferenceValue");return a===J&&!Ne(i.sliceSerialize(k))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return a(f)&&u++<l?(e.consume(f),p):t(f)}}r(ti,"tokenizeCharacterReference");var ht={partial:!0,tokenize:ri},ft={concrete:!0,name:"codeFenced",tokenize:ni};function ni(e,n,t){const i=this,u={partial:!0,tokenize:F};let l=0,a=0,o;return s;function s(y){return c(y)}function c(y){const M=i.events[i.events.length-1];return l=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(y)}function p(y){return y===o?(a++,e.consume(y),p):a<3?t(y):(e.exit("codeFencedFenceSequence"),L(y)?D(e,f,"whitespace")(y):f(y))}function f(y){return y===null||z(y)?(e.exit("codeFencedFence"),i.interrupt?n(y):e.check(ht,C,R)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(y))}function k(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):L(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),D(e,h,"whitespace")(y)):y===96&&y===o?t(y):(e.consume(y),k)}function h(y){return y===null||z(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?t(y):(e.consume(y),w)}function C(y){return e.attempt(u,R,v)(y)}function v(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return l>0&&L(y)?D(e,_,"linePrefix",l+1)(y):_(y)}function _(y){return y===null||z(y)?e.check(ht,C,R)(y):(e.enter("codeFlowValue"),S(y))}function S(y){return y===null||z(y)?(e.exit("codeFlowValue"),_(y)):(e.consume(y),S)}function R(y){return e.exit("codeFenced"),n(y)}function F(y,M,$){let P=0;return x;function x(B){return y.enter("lineEnding"),y.consume(B),y.exit("lineEnding"),E}function E(B){return y.enter("codeFencedFence"),L(B)?D(y,T,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):T(B)}function T(B){return B===o?(y.enter("codeFencedFenceSequence"),O(B)):$(B)}function O(B){return B===o?(P++,y.consume(B),O):P>=a?(y.exit("codeFencedFenceSequence"),L(B)?D(y,j,"whitespace")(B):j(B)):$(B)}function j(B){return B===null||z(B)?(y.exit("codeFencedFence"),M(B)):$(B)}}}r(ni,"tokenizeCodeFenced");function ri(e,n,t){const i=this;return u;function u(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return i.parser.lazy[i.now().line]?t(a):n(a)}}r(ri,"tokenizeNonLazyContinuation");var Fe={name:"codeIndented",tokenize:ui},ii={partial:!0,tokenize:li};function ui(e,n,t){const i=this;return u;function u(c){return e.enter("codeIndented"),D(e,l,"linePrefix",5)(c)}function l(c){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(c):t(c)}function a(c){return c===null?s(c):z(c)?e.attempt(ii,a,s)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||z(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function s(c){return e.exit("codeIndented"),n(c)}}r(ui,"tokenizeCodeIndented");function li(e,n,t){const i=this;return u;function u(a){return i.parser.lazy[i.now().line]?t(a):z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):D(e,l,"linePrefix",5)(a)}function l(a){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):z(a)?u(a):t(a)}}r(li,"tokenizeFurtherStart");var ai={name:"codeText",previous:si,resolve:oi,tokenize:ci};function oi(e){let n=e.length-4,t=3,i,u;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i<n;)if(e[i][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(i=t-1,n++;++i<=n;)u===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(u=i):(i===n||e[i][1].type==="lineEnding")&&(e[u][1].type="codeTextData",i!==u+2&&(e[u][1].end=e[i-1][1].end,e.splice(u+2,i-u-2),n-=i-u-2,i=u+2),u=void 0);return e}r(oi,"resolveCodeText");function si(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}r(si,"previous");function ci(e,n,t){let i=0,u,l;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(l=e.enter("codeTextSequence"),u=0,p(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),u++,p):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",c(f))}}r(ci,"tokenizeCodeText");var hi=class{static{r(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const t=n??Number.POSITIVE_INFINITY;return t<this.left.length?this.left.slice(e,t):e>this.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(e,n,t){const i=n||0;this.setCursor(Math.trunc(e));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return t&&Ie(this.left,t),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ie(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ie(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Ie(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ie(this.left,n.reverse())}}};function Ie(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}r(Ie,"chunkedPush");function Gt(e){const n={};let t=-1,i,u,l,a,o,s,c;const p=new hi(e);for(;++t<p.length;){for(;t in n;)t=n[t];if(i=p.get(t),t&&i[1].type==="chunkFlow"&&p.get(t-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,fi(p,t)),t=n[t],c=!0);else if(i[1]._container){for(l=t,u=void 0;l--;)if(a=p.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(u&&(p.get(u)[1].type="lineEndingBlank"),a[1].type="lineEnding",u=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;u&&(i[1].end={...p.get(u)[1].start},o=p.slice(u,t),o.unshift(i),p.splice(u,t-u+1,o))}}return K(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}r(Gt,"subtokenize");function fi(e,n){const t=e.get(n)[1],i=e.get(n)[2];let u=n-1;const l=[];let a=t._tokenizer;a||(a=i.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,s=[],c={};let p,f,k=-1,h=t,w=0,C=0;const v=[C];for(;h;){for(;e.get(++u)[1]!==h;);l.push(u),h._tokenizer||(p=i.sliceStream(h),h.next||p.push(null),f&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++k<o.length;)o[k][0]==="exit"&&o[k-1][0]==="enter"&&o[k][1].type===o[k-1][1].type&&o[k][1].start.line!==o[k][1].end.line&&(C=k+1,v.push(C),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),k=v.length;k--;){const b=o.slice(v[k],v[k+1]),_=l.pop();s.push([_,_+b.length-1]),e.splice(_,2,b)}for(s.reverse(),k=-1;++k<s.length;)c[w+s[k][0]]=w+s[k][1],w+=s[k][1]-s[k][0]-1;return c}r(fi,"subcontent");var pi={resolve:gi,tokenize:ki},mi={partial:!0,tokenize:xi};function gi(e){return Gt(e),e}r(gi,"resolveContent");function ki(e,n){let t;return i;function i(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),u(o)}function u(o){return o===null?l(o):z(o)?e.check(mi,a,l)(o):(e.consume(o),u)}function l(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function a(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}r(ki,"tokenizeContent");function xi(e,n,t){const i=this;return u;function u(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),D(e,l,"linePrefix")}function l(a){if(a===null||z(a))return t(a);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):e.interrupt(i.parser.constructs.flow,t,n)(a)}}r(xi,"tokenizeContinuation");function Kt(e,n,t,i,u,l,a,o,s){const c=s||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(e.enter(i),e.enter(u),e.enter(l),e.consume(b),e.exit(l),k):b===null||b===32||b===41||Pe(b)?t(b):(e.enter(i),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),C(b))}function k(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(u),e.exit(i),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(o),k(b)):b===null||b===60||z(b)?t(b):(e.consume(b),b===92?w:h)}function w(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function C(b){return!p&&(b===null||b===41||U(b))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(i),n(b)):p<c&&b===40?(e.consume(b),p++,C):b===41?(e.consume(b),p--,C):b===null||b===32||b===40||Pe(b)?t(b):(e.consume(b),b===92?v:C)}function v(b){return b===40||b===41||b===92?(e.consume(b),C):C(b)}}r(Kt,"factoryDestination");function Xt(e,n,t,i,u,l){const a=this;let o=0,s;return c;function c(h){return e.enter(i),e.enter(u),e.consume(h),e.exit(u),e.enter(l),p}function p(h){return o>999||h===null||h===91||h===93&&!s||h===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?t(h):h===93?(e.exit(l),e.enter(u),e.consume(h),e.exit(u),e.exit(i),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||z(h)||o++>999?(e.exit("chunkString"),p(h)):(e.consume(h),s||(s=!L(h)),h===92?k:f)}function k(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}r(Xt,"factoryLabel");function Yt(e,n,t,i,u,l){let a;return o;function o(k){return k===34||k===39||k===40?(e.enter(i),e.enter(u),e.consume(k),e.exit(u),a=k===40?41:k,s):t(k)}function s(k){return k===a?(e.enter(u),e.consume(k),e.exit(u),e.exit(i),n):(e.enter(l),c(k))}function c(k){return k===a?(e.exit(l),s(a)):k===null?t(k):z(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===a||k===null||z(k)?(e.exit("chunkString"),c(k)):(e.consume(k),k===92?f:p)}function f(k){return k===a||k===92?(e.consume(k),p):p(k)}}r(Yt,"factoryTitle");function Ce(e,n){let t;return i;function i(u){return z(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t=!0,i):L(u)?D(e,i,t?"linePrefix":"lineSuffix")(u):n(u)}}r(Ce,"factoryWhitespace");var di={name:"definition",tokenize:yi},bi={partial:!0,tokenize:wi};function yi(e,n,t){const i=this;let u;return l;function l(h){return e.enter("definition"),a(h)}function a(h){return Xt.call(i,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return u=xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return U(h)?Ce(e,c)(h):c(h)}function c(h){return Kt(e,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return e.attempt(bi,f,f)(h)}function f(h){return L(h)?D(e,k,"whitespace")(h):k(h)}function k(h){return h===null||z(h)?(e.exit("definition"),i.parser.defined.push(u),n(h)):t(h)}}r(yi,"tokenizeDefinition");function wi(e,n,t){return i;function i(o){return U(o)?Ce(e,u)(o):t(o)}function u(o){return Yt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return L(o)?D(e,a,"whitespace")(o):a(o)}function a(o){return o===null||z(o)?n(o):t(o)}}r(wi,"tokenizeTitleBefore");var Ii={name:"hardBreakEscape",tokenize:Si};function Si(e,n,t){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),u}function u(l){return z(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}r(Si,"tokenizeHardBreakEscape");var Ci={name:"headingAtx",resolve:vi,tokenize:Ei};function vi(e,n){let t=e.length-2,i=3,u,l;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(u={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},l={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},K(e,i,t-i+1,[["enter",u,n],["enter",l,n],["exit",l,n],["exit",u,n]])),e}r(vi,"resolveHeadingAtx");function Ei(e,n,t){let i=0;return u;function u(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&i++<6?(e.consume(p),a):p===null||U(p)?(e.exit("atxHeadingSequence"),o(p)):t(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),s(p)):p===null||z(p)?(e.exit("atxHeading"),n(p)):L(p)?D(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function s(p){return p===35?(e.consume(p),s):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||U(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}r(Ei,"tokenizeHeadingAtx");var Ti=["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"],pt=["pre","script","style","textarea"],zi={concrete:!0,name:"htmlFlow",resolveTo:Li,tokenize:Fi},_i={partial:!0,tokenize:Mi},Ai={partial:!0,tokenize:Ri};function Li(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}r(Li,"resolveToHtmlFlow");function Fi(e,n,t){const i=this;let u,l,a,o,s;return c;function c(g){return p(g)}function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),k):g===47?(e.consume(g),l=!0,C):g===63?(e.consume(g),u=3,i.interrupt?n:m):ee(g)?(e.consume(g),a=String.fromCharCode(g),v):t(g)}function k(g){return g===45?(e.consume(g),u=2,h):g===91?(e.consume(g),u=5,o=0,w):ee(g)?(e.consume(g),u=4,i.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),i.interrupt?n:m):t(g)}function w(g){return g==="CDATA[".charCodeAt(o++)?(e.consume(g),o===6?i.interrupt?n:T:w):t(g)}function C(g){return ee(g)?(e.consume(g),a=String.fromCharCode(g),v):t(g)}function v(g){if(g===null||g===47||g===62||U(g)){const ae=g===47,he=a.toLowerCase();return!ae&&!l&&pt.includes(he)?(u=1,i.interrupt?n(g):T(g)):Ti.includes(a.toLowerCase())?(u=6,ae?(e.consume(g),b):i.interrupt?n(g):T(g)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(g):l?_(g):S(g))}return g===45||J(g)?(e.consume(g),a+=String.fromCharCode(g),v):t(g)}function b(g){return g===62?(e.consume(g),i.interrupt?n:T):t(g)}function _(g){return L(g)?(e.consume(g),_):x(g)}function S(g){return g===47?(e.consume(g),x):g===58||g===95||ee(g)?(e.consume(g),R):L(g)?(e.consume(g),S):x(g)}function R(g){return g===45||g===46||g===58||g===95||J(g)?(e.consume(g),R):F(g)}function F(g){return g===61?(e.consume(g),y):L(g)?(e.consume(g),F):S(g)}function y(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),s=g,M):L(g)?(e.consume(g),y):$(g)}function M(g){return g===s?(e.consume(g),s=null,P):g===null||z(g)?t(g):(e.consume(g),M)}function $(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||U(g)?F(g):(e.consume(g),$)}function P(g){return g===47||g===62||L(g)?S(g):t(g)}function x(g){return g===62?(e.consume(g),E):t(g)}function E(g){return g===null||z(g)?T(g):L(g)?(e.consume(g),E):t(g)}function T(g){return g===45&&u===2?(e.consume(g),Q):g===60&&u===1?(e.consume(g),q):g===62&&u===4?(e.consume(g),le):g===63&&u===3?(e.consume(g),m):g===93&&u===5?(e.consume(g),te):z(g)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(_i,ne,O)(g)):g===null||z(g)?(e.exit("htmlFlowData"),O(g)):(e.consume(g),T)}function O(g){return e.check(Ai,j,ne)(g)}function j(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),B}function B(g){return g===null||z(g)?O(g):(e.enter("htmlFlowData"),T(g))}function Q(g){return g===45?(e.consume(g),m):T(g)}function q(g){return g===47?(e.consume(g),a="",Z):T(g)}function Z(g){if(g===62){const ae=a.toLowerCase();return pt.includes(ae)?(e.consume(g),le):T(g)}return ee(g)&&a.length<8?(e.consume(g),a+=String.fromCharCode(g),Z):T(g)}function te(g){return g===93?(e.consume(g),m):T(g)}function m(g){return g===62?(e.consume(g),le):g===45&&u===2?(e.consume(g),m):T(g)}function le(g){return g===null||z(g)?(e.exit("htmlFlowData"),ne(g)):(e.consume(g),le)}function ne(g){return e.exit("htmlFlow"),n(g)}}r(Fi,"tokenizeHtmlFlow");function Ri(e,n,t){const i=this;return u;function u(a){return z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):t(a)}function l(a){return i.parser.lazy[i.now().line]?t(a):n(a)}}r(Ri,"tokenizeNonLazyContinuationStart");function Mi(e,n,t){return i;function i(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(Le,n,t)}}r(Mi,"tokenizeBlankLineBefore");var Bi={name:"htmlText",tokenize:Di};function Di(e,n,t){const i=this;let u,l,a;return o;function o(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),c):m===47?(e.consume(m),F):m===63?(e.consume(m),S):ee(m)?(e.consume(m),$):t(m)}function c(m){return m===45?(e.consume(m),p):m===91?(e.consume(m),l=0,w):ee(m)?(e.consume(m),_):t(m)}function p(m){return m===45?(e.consume(m),h):t(m)}function f(m){return m===null?t(m):m===45?(e.consume(m),k):z(m)?(a=f,q(m)):(e.consume(m),f)}function k(m){return m===45?(e.consume(m),h):f(m)}function h(m){return m===62?Q(m):m===45?k(m):f(m)}function w(m){return m==="CDATA[".charCodeAt(l++)?(e.consume(m),l===6?C:w):t(m)}function C(m){return m===null?t(m):m===93?(e.consume(m),v):z(m)?(a=C,q(m)):(e.consume(m),C)}function v(m){return m===93?(e.consume(m),b):C(m)}function b(m){return m===62?Q(m):m===93?(e.consume(m),b):C(m)}function _(m){return m===null||m===62?Q(m):z(m)?(a=_,q(m)):(e.consume(m),_)}function S(m){return m===null?t(m):m===63?(e.consume(m),R):z(m)?(a=S,q(m)):(e.consume(m),S)}function R(m){return m===62?Q(m):S(m)}function F(m){return ee(m)?(e.consume(m),y):t(m)}function y(m){return m===45||J(m)?(e.consume(m),y):M(m)}function M(m){return z(m)?(a=M,q(m)):L(m)?(e.consume(m),M):Q(m)}function $(m){return m===45||J(m)?(e.consume(m),$):m===47||m===62||U(m)?P(m):t(m)}function P(m){return m===47?(e.consume(m),Q):m===58||m===95||ee(m)?(e.consume(m),x):z(m)?(a=P,q(m)):L(m)?(e.consume(m),P):Q(m)}function x(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),x):E(m)}function E(m){return m===61?(e.consume(m),T):z(m)?(a=E,q(m)):L(m)?(e.consume(m),E):P(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,O):z(m)?(a=T,q(m)):L(m)?(e.consume(m),T):(e.consume(m),j)}function O(m){return m===u?(e.consume(m),u=void 0,B):m===null?t(m):z(m)?(a=O,q(m)):(e.consume(m),O)}function j(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||U(m)?P(m):(e.consume(m),j)}function B(m){return m===47||m===62||U(m)?P(m):t(m)}function Q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Z}function Z(m){return L(m)?D(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):te(m)}function te(m){return e.enter("htmlTextData"),a(m)}}r(Di,"tokenizeHtmlText");var Qe={name:"labelEnd",resolveAll:Hi,resolveTo:Ni,tokenize:ji},Pi={tokenize:qi},Oi={tokenize:Vi},$i={tokenize:Ui};function Hi(e){let n=-1;const t=[];for(;++n<e.length;){const i=e[n][1];if(t.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const u=i.type==="labelImage"?4:2;i.type="data",n+=u}}return e.length!==t.length&&K(e,0,e.length,t),e}r(Hi,"resolveAllLabelEnd");function Ni(e,n){let t=e.length,i=0,u,l,a,o;for(;t--;)if(u=e[t][1],l){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(a){if(e[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(l=t,u.type!=="labelLink")){i=2;break}}else u.type==="labelEnd"&&(a=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},p={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",s,n],["enter",c,n]],o=Y(o,e.slice(l+1,l+i+3)),o=Y(o,[["enter",p,n]]),o=Y(o,_e(n.parser.constructs.insideSpan.null,e.slice(l+i+4,a-3),n)),o=Y(o,[["exit",p,n],e[a-2],e[a-1],["exit",c,n]]),o=Y(o,e.slice(a+1)),o=Y(o,[["exit",s,n]]),K(e,l,e.length,o),e}r(Ni,"resolveToLabelEnd");function ji(e,n,t){const i=this;let u=i.events.length,l,a;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){l=i.events[u][1];break}return o;function o(k){return l?l._inactive?f(k):(a=i.parser.defined.includes(xe(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),s):t(k)}function s(k){return k===40?e.attempt(Pi,p,a?p:f)(k):k===91?e.attempt(Oi,p,a?c:f)(k):a?p(k):f(k)}function c(k){return e.attempt($i,p,f)(k)}function p(k){return n(k)}function f(k){return l._balanced=!0,t(k)}}r(ji,"tokenizeLabelEnd");function qi(e,n,t){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),u}function u(f){return U(f)?Ce(e,l)(f):l(f)}function l(f){return f===41?p(f):Kt(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return U(f)?Ce(e,s)(f):p(f)}function o(f){return t(f)}function s(f){return f===34||f===39||f===40?Yt(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return U(f)?Ce(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}r(qi,"tokenizeResource");function Vi(e,n,t){const i=this;return u;function u(o){return Xt.call(i,e,l,a,"reference","referenceMarker","referenceString")(o)}function l(o){return i.parser.defined.includes(xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function a(o){return t(o)}}r(Vi,"tokenizeReferenceFull");function Ui(e,n,t){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),u}function u(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}r(Ui,"tokenizeReferenceCollapsed");var Qi={name:"labelStartImage",resolveAll:Qe.resolveAll,tokenize:Wi};function Wi(e,n,t){const i=this;return u;function u(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):t(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(o):n(o)}}r(Wi,"tokenizeLabelStartImage");var Gi={name:"labelStartLink",resolveAll:Qe.resolveAll,tokenize:Ki};function Ki(e,n,t){const i=this;return u;function u(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(a):n(a)}}r(Ki,"tokenizeLabelStartLink");var Re={name:"lineEnding",tokenize:Xi};function Xi(e,n){return t;function t(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),D(e,n,"linePrefix")}}r(Xi,"tokenizeLineEnding");var Te={name:"thematicBreak",tokenize:Yi};function Yi(e,n,t){let i=0,u;return l;function l(c){return e.enter("thematicBreak"),a(c)}function a(c){return u=c,o(c)}function o(c){return c===u?(e.enter("thematicBreakSequence"),s(c)):i>=3&&(c===null||z(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===u?(e.consume(c),i++,s):(e.exit("thematicBreakSequence"),L(c)?D(e,o,"whitespace")(c):o(c))}}r(Yi,"tokenizeThematicBreak");var W={continuation:{tokenize:tu},exit:ru,name:"list",tokenize:eu},Zi={partial:!0,tokenize:iu},Ji={partial:!0,tokenize:nu};function eu(e,n,t){const i=this,u=i.events[i.events.length-1];let l=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,a=0;return o;function o(h){const w=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Oe(h)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Te,t,c)(h):c(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return Oe(h)&&++a<10?(e.consume(h),s):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):t(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Le,i.interrupt?t:p,e.attempt(Zi,k,f))}function p(h){return i.containerState.initialBlankLine=!0,l++,k(h)}function f(h){return L(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),k):t(h)}function k(h){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}r(eu,"tokenizeListStart");function tu(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Le,u,l);function u(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,D(e,n,"listItemIndent",i.containerState.size+1)(o)}r(u,"onBlank");function l(o){return i.containerState.furtherBlankLines||!L(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Ji,n,a)(o))}r(l,"notBlank");function a(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,D(e,e.attempt(W,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}r(a,"notInCurrentItem")}r(tu,"tokenizeListContinuation");function nu(e,n,t){const i=this;return D(e,u,"listItemIndent",i.containerState.size+1);function u(l){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?n(l):t(l)}}r(nu,"tokenizeIndent");function ru(e){e.exit(this.containerState.type)}r(ru,"tokenizeListEnd");function iu(e,n,t){const i=this;return D(e,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(l){const a=i.events[i.events.length-1];return!L(l)&&a&&a[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}r(iu,"tokenizeListItemPrefixWhitespace");var mt={name:"setextUnderline",resolveTo:uu,tokenize:lu};function uu(e,n){let t=e.length,i,u,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(u=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",l?(e.splice(u,0,["enter",a,n]),e.splice(l+1,0,["exit",e[i][1],n]),e[i][1].end={...e[l][1].end}):e[i][1]=a,e.push(["exit",a,n]),e}r(uu,"resolveToSetextUnderline");function lu(e,n,t){const i=this;let u;return l;function l(c){let p=i.events.length,f;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){f=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),u=c,a(c)):t(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===u?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),L(c)?D(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||z(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}r(lu,"tokenizeSetextUnderline");var au={tokenize:ou};function ou(e){const n=this,t=e.attempt(Le,i,e.attempt(this.parser.constructs.flowInitial,u,D(e,e.attempt(this.parser.constructs.flow,u,e.attempt(pi,u)),"linePrefix")));return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function u(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}r(ou,"initializeFlow");var su={resolveAll:Jt()},cu=Zt("string"),hu=Zt("text");function Zt(e){return{resolveAll:Jt(e==="text"?fu:void 0),tokenize:n};function n(t){const i=this,u=this.parser.constructs[e],l=t.attempt(u,a,o);return a;function a(p){return c(p)?l(p):o(p)}function o(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),s}function s(p){return c(p)?(t.exit("data"),l(p)):(t.consume(p),s)}function c(p){if(p===null)return!0;const f=u[p];let k=-1;if(f)for(;++k<f.length;){const h=f[k];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}r(Zt,"initializeFactory");function Jt(e){return n;function n(t,i){let u=-1,l;for(;++u<=t.length;)l===void 0?t[u]&&t[u][1].type==="data"&&(l=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==l+2&&(t[l][1].end=t[u-1][1].end,t.splice(l+2,u-l-2),u=l+2),l=void 0);return e?e(t,i):t}}r(Jt,"createResolver");function fu(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const i=e[t-1][1],u=n.sliceStream(i);let l=u.length,a=-1,o=0,s;for(;l--;){const c=u[l];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)s=!0,o++;else if(c!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const c={type:t===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}r(fu,"resolveAllLineSuffixes");var pu=mn({attentionMarkers:r(()=>wu,"attentionMarkers"),contentInitial:r(()=>gu,"contentInitial"),disable:r(()=>Iu,"disable"),document:r(()=>mu,"document"),flow:r(()=>xu,"flow"),flowInitial:r(()=>ku,"flowInitial"),insideSpan:r(()=>yu,"insideSpan"),string:r(()=>du,"string"),text:r(()=>bu,"text")}),mu={42:W,43:W,45:W,48:W,49:W,50:W,51:W,52:W,53:W,54:W,55:W,56:W,57:W,62:Ut},gu={91:di},ku={[-2]:Fe,[-1]:Fe,32:Fe},xu={35:Ci,42:Te,45:[mt,Te],60:zi,61:mt,95:Te,96:ft,126:ft},du={38:Wt,92:Qt},bu={[-5]:Re,[-4]:Re,[-3]:Re,33:Qi,38:Wt,42:He,60:[Gr,Bi],91:Gi,92:[Ii,Qt],93:Qe,95:He,96:ai},yu={null:[He,su]},wu={null:[42,95]},Iu={null:[]};function Su(e,n,t){let i={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const u={},l=[];let a=[],o=[];const s={attempt:M(F),check:M(y),consume:_,enter:S,exit:R,interrupt:M(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:C,events:[],now:w,parser:e,previous:null,sliceSerialize:k,sliceStream:h,write:f};let p=n.tokenize.call(c,s);return n.resolveAll&&l.push(n),c;function f(E){return a=Y(a,E),v(),a[a.length-1]!==null?[]:($(n,0),c.events=_e(l,c.events,c),c.events)}r(f,"write");function k(E,T){return vu(h(E),T)}r(k,"sliceSerialize");function h(E){return Cu(a,E)}r(h,"sliceStream");function w(){const{_bufferIndex:E,_index:T,line:O,column:j,offset:B}=i;return{_bufferIndex:E,_index:T,line:O,column:j,offset:B}}r(w,"now");function C(E){u[E.line]=E.column,x()}r(C,"defineSkip");function v(){let E;for(;i._index<a.length;){const T=a[i._index];if(typeof T=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<T.length;)b(T.charCodeAt(i._bufferIndex));else b(T)}}r(v,"main");function b(E){p=p(E)}r(b,"go");function _(E){z(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,x()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===a[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=E}r(_,"consume");function S(E,T){const O=T||{};return O.type=E,O.start=w(),c.events.push(["enter",O,c]),o.push(O),O}r(S,"enter");function R(E){const T=o.pop();return T.end=w(),c.events.push(["exit",T,c]),T}r(R,"exit");function F(E,T){$(E,T.from)}r(F,"onsuccessfulconstruct");function y(E,T){T.restore()}r(y,"onsuccessfulcheck");function M(E,T){return O;function O(j,B,Q){let q,Z,te,m;return Array.isArray(j)?ne(j):"tokenize"in j?ne([j]):le(j);function le(V){return be;function be(re){const fe=re!==null&&V[re],pe=re!==null&&V.null;return ne([...Array.isArray(fe)?fe:fe?[fe]:[],...Array.isArray(pe)?pe:pe?[pe]:[]])(re)}}function ne(V){return q=V,Z=0,V.length===0?Q:g(V[Z])}function g(V){return be;function be(re){return m=P(),te=V,V.partial||(c.currentConstruct=V),V.name&&c.parser.constructs.disable.null.includes(V.name)?he(re):V.tokenize.call(T?Object.assign(Object.create(c),T):c,s,ae,he)(re)}}function ae(V){return E(te,m),B}function he(V){return m.restore(),++Z<q.length?g(q[Z]):Q}}}r(M,"constructFactory");function $(E,T){E.resolveAll&&!l.includes(E)&&l.push(E),E.resolve&&K(c.events,T,c.events.length-T,E.resolve(c.events.slice(T),c)),E.resolveTo&&(c.events=E.resolveTo(c.events,c))}r($,"addResult");function P(){const E=w(),T=c.previous,O=c.currentConstruct,j=c.events.length,B=Array.from(o);return{from:j,restore:Q};function Q(){i=E,c.previous=T,c.currentConstruct=O,c.events.length=j,o=B,x()}}r(P,"store");function x(){i.line in u&&i.column<2&&(i.column=u[i.line],i.offset+=u[i.line]-1)}r(x,"accountForPotentialSkip")}r(Su,"createTokenizer");function Cu(e,n){const t=n.start._index,i=n.start._bufferIndex,u=n.end._index,l=n.end._bufferIndex;let a;if(t===u)a=[e[t].slice(i,l)];else{if(a=e.slice(t,u),i>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(i):a.shift()}l>0&&a.push(e[u].slice(0,l))}return a}r(Cu,"sliceChunks");function vu(e,n){let t=-1;const i=[];let u;for(;++t<e.length;){const l=e[t];let a;if(typeof l=="string")a=l;else switch(l){case-5:a="\r";break;case-4:a=`
12
+ `,...l.current()});return/^[\t ]/.test(c)&&(c=ve(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,t.options.closeAtx&&(c+=" "+a),s(),o(),c}r(pr,"heading");Rt.peek=mr;function Rt(e){return e.value||""}r(Rt,"html");function mr(){return"<"}r(mr,"htmlPeek");Bt.peek=gr;function Bt(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.enter("image");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("![");return c+=s.move(t.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=t.enter(`title${l}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),c+=s.move(")"),a(),c}r(Bt,"image");function gr(){return"!"}r(gr,"imagePeek");Mt.peek=kr;function Mt(e,n,t,i){const u=e.referenceType,l=t.enter("imageReference");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("![");const c=t.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),a();const p=t.stack;t.stack=[],a=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return a(),t.stack=p,l(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(Mt,"imageReference");function kr(){return"!"}r(kr,"imageReferencePeek");Dt.peek=xr;function Dt(e,n,t){let i=e.value||"",u="`",l=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(i);)u+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<t.unsafe.length;){const a=t.unsafe[l],o=t.compilePattern(a);let s;if(a.atBreak)for(;s=o.exec(i);){let c=s.index;i.charCodeAt(c)===10&&i.charCodeAt(c-1)===13&&c--,i=i.slice(0,c)+" "+i.slice(s.index+1)}}return u+i+u}r(Dt,"inlineCode");function xr(){return"`"}r(xr,"inlineCodePeek");function Pt(e,n){const t=Ve(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}r(Pt,"formatLinkAsAutolink");Ot.peek=dr;function Ot(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.createTracker(i);let o,s;if(Pt(e,t)){const p=t.stack;t.stack=[],o=t.enter("autolink");let f=a.move("<");return f+=a.move(t.containerPhrasing(e,{before:f,after:">",...a.current()})),f+=a.move(">"),o(),t.stack=p,f}o=t.enter("link"),s=t.enter("label");let c=a.move("[");return c+=a.move(t.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(t.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=t.enter("destinationRaw"),c+=a.move(t.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=t.enter(`title${l}`),c+=a.move(" "+u),c+=a.move(t.safe(e.title,{before:c,after:u,...a.current()})),c+=a.move(u),s()),c+=a.move(")"),o(),c}r(Ot,"link");function dr(e,n,t){return Pt(e,t)?"<":"["}r(dr,"linkPeek");$t.peek=br;function $t(e,n,t,i){const u=e.referenceType,l=t.enter("linkReference");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("[");const c=t.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),a();const p=t.stack;t.stack=[],a=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return a(),t.stack=p,l(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r($t,"linkReference");function br(){return"["}r(br,"linkReferencePeek");function Ue(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}r(Ue,"checkBullet");function yr(e){const n=Ue(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}r(yr,"checkBulletOther");function wr(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}r(wr,"checkBulletOrdered");function Ht(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}r(Ht,"checkRule");function Ir(e,n,t,i){const u=t.enter("list"),l=t.bulletCurrent;let a=e.ordered?wr(t):Ue(t);const o=e.ordered?a==="."?")":".":yr(t);let s=n&&t.bulletLastUsed?a===t.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&p&&(!p.children||!p.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Ht(t)===a&&p){let f=-1;for(;++f<e.children.length;){const k=e.children[f];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(a=o),t.bulletCurrent=a;const c=t.containerFlow(e,i);return t.bulletLastUsed=a,t.bulletCurrent=l,u(),c}r(Ir,"list$1");function Sr(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}r(Sr,"checkListItemIndent");function Cr(e,n,t,i){const u=Sr(t);let l=t.bulletCurrent||Ue(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let a=l.length+1;(u==="tab"||u==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=t.createTracker(i);o.move(l+" ".repeat(a-l.length)),o.shift(a);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,o.current()),p);return s(),c;function p(f,k,h){return k?(h?"":" ".repeat(a))+f:(h?l:l+" ".repeat(a-l.length))+f}r(p,"map")}r(Cr,"listItem");function vr(e,n,t,i){const u=t.enter("paragraph"),l=t.enter("phrasing"),a=t.containerPhrasing(e,i);return l(),u(),a}r(vr,"paragraph");var Er=qe(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tr(e,n,t,i){return(e.children.some(function(u){return Er(u)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}r(Tr,"root");function zr(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}r(zr,"checkStrong");Nt.peek=_r;function Nt(e,n,t,i){const u=zr(t),l=t.enter("strong"),a=t.createTracker(i),o=a.move(u+u);let s=a.move(t.containerPhrasing(e,{after:u,before:o,...a.current()}));const c=s.charCodeAt(0),p=ze(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=ve(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=ze(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+ve(f));const h=a.move(u+u);return l(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(Nt,"strong");function _r(e,n,t){return t.options.strong||"*"}r(_r,"strongPeek");function Ar(e,n,t,i){return t.safe(e.value,i)}r(Ar,"text$2");function Lr(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}r(Lr,"checkRuleRepetition");function Fr(e,n,t){const i=(Ht(t)+(t.options.ruleSpaces?" ":"")).repeat(Lr(t));return t.options.ruleSpaces?i.slice(0,-1):i}r(Fr,"thematicBreak$1");var jt={blockquote:Un,break:lt,code:Xn,definition:Jn,emphasis:At,hardBreak:lt,heading:pr,html:Rt,image:Bt,imageReference:Mt,inlineCode:Dt,link:Ot,linkReference:$t,list:Ir,listItem:Cr,paragraph:vr,root:Tr,strong:Nt,text:Ar,thematicBreak:Fr};function qt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}r(qt,"decodeNumericCharacterReference");var Rr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Br(e){return e.replace(Rr,Mr)}r(Br,"decodeString");function Mr(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),u=i===120||i===88;return qt(t.slice(u?2:1),u?16:10)}return Ne(t)||e}r(Mr,"decode");var ot={}.hasOwnProperty;function Dr(e){const n={};let t=-1;for(;++t<e.length;)Pr(n,e[t]);return n}r(Dr,"combineExtensions");function Pr(e,n){let t;for(t in n){const i=(ot.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t];let l;if(u)for(l in u){ot.call(i,l)||(i[l]=[]);const a=u[l];Or(i[l],Array.isArray(a)?a:a?[a]:[])}}}r(Pr,"syntaxExtension");function Or(e,n){let t=-1;const i=[];for(;++t<n.length;)(n[t].add==="after"?e:i).push(n[t]);K(e,0,0,i)}r(Or,"constructs");function xe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r(xe,"normalizeIdentifier");var $r={tokenize:Hr};function Hr(e){const n=e.attempt(this.parser.constructs.contentInitial,i,u);let t;return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),D(e,n,"linePrefix")}function u(o){return e.enter("paragraph"),l(o)}function l(o){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return z(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),a)}}r(Hr,"initializeContent");var Nr={tokenize:jr},st={tokenize:qr};function jr(e){const n=this,t=[];let i=0,u,l,a;return o;function o(S){if(i<t.length){const R=t[i];return n.containerState=R[1],e.attempt(R[0].continuation,s,c)(S)}return c(S)}function s(S){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,u&&_();const R=n.events.length;let F=R,y;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){y=n.events[F][1].end;break}b(i);let B=R;for(;B<n.events.length;)n.events[B][1].end={...y},B++;return K(n.events,F+1,0,n.events.slice(R)),n.events.length=B,c(S)}return o(S)}function c(S){if(i===t.length){if(!u)return k(S);if(u.currentConstruct&&u.currentConstruct.concrete)return w(S);n.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(st,p,f)(S)}function p(S){return u&&_(),b(i),k(S)}function f(S){return n.parser.lazy[n.now().line]=i!==t.length,a=n.now().offset,w(S)}function k(S){return n.containerState={},e.attempt(st,h,w)(S)}function h(S){return i++,t.push([n.currentConstruct,n.containerState]),k(S)}function w(S){if(S===null){u&&_(),b(0),e.consume(S);return}return u=u||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:l}),C(S)}function C(S){if(S===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return z(S)?(e.consume(S),v(e.exit("chunkFlow")),i=0,n.interrupt=void 0,o):(e.consume(S),C)}function v(S,R){const F=n.sliceStream(S);if(R&&F.push(null),S.previous=l,l&&(l.next=S),l=S,u.defineSkip(S.start),u.write(F),n.parser.lazy[S.start.line]){let y=u.events.length;for(;y--;)if(u.events[y][1].start.offset<a&&(!u.events[y][1].end||u.events[y][1].end.offset>a))return;const B=n.events.length;let $=B,P,x;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(P){x=n.events[$][1].end;break}P=!0}for(b(i),y=B;y<n.events.length;)n.events[y][1].end={...x},y++;K(n.events,$+1,0,n.events.slice(B)),n.events.length=y}}function b(S){let R=t.length;for(;R-- >S;){const F=t[R];n.containerState=F[1],F[0].exit.call(n,e)}t.length=S}function _(){u.write([null]),l=void 0,u=void 0,n.containerState._closeFlow=void 0}}r(jr,"initializeDocument");function qr(e,n,t){return D(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}r(qr,"tokenizeContainer");var He={name:"attention",resolveAll:Vr,tokenize:Ur};function Vr(e,n){let t=-1,i,u,l,a,o,s,c,p;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(i=t;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[i][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[i][1].end},k={...e[t][1].start};ct(f,-s),ct(k,s),a={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:k},l={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},u={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[i][1].end={...a.start},e[t][1].start={...o.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=X(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=X(c,[["enter",u,n],["enter",a,n],["exit",a,n],["enter",l,n]]),c=X(c,_e(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),c=X(c,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",u,n]]),e[t][1].end.offset-e[t][1].start.offset?(p=2,c=X(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):p=0,K(e,i-1,t-i+3,c),t=i+c.length-p-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}r(Vr,"resolveAllAttention");function Ur(e,n){const t=this.parser.constructs.attentionMarkers.null,i=this.previous,u=de(i);let l;return a;function a(s){return l=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===l)return e.consume(s),o;const c=e.exit("attentionSequence"),p=de(s),f=!p||p===2&&u||t.includes(s),k=!u||u===2&&p||t.includes(i);return c._open=!!(l===42?f:f&&(u||!k)),c._close=!!(l===42?k:k&&(p||!f)),n(s)}}r(Ur,"tokenizeAttention");function ct(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}r(ct,"movePoint");var Qr={name:"autolink",tokenize:Wr};function Wr(e,n,t){let i=0;return u;function u(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return ee(h)?(e.consume(h),a):h===64?t(h):c(h)}function a(h){return h===43||h===45||h===46||J(h)?(i=1,o(h)):c(h)}function o(h){return h===58?(e.consume(h),i=0,s):(h===43||h===45||h===46||J(h))&&i++<32?(e.consume(h),o):(i=0,c(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Pe(h)?t(h):(e.consume(h),s)}function c(h){return h===64?(e.consume(h),p):Ln(h)?(e.consume(h),c):t(h)}function p(h){return J(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),i=0,p):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):k(h)}function k(h){if((h===45||J(h))&&i++<63){const w=h===45?k:f;return e.consume(h),w}return t(h)}}r(Wr,"tokenizeAutolink");var Le={partial:!0,tokenize:Gr};function Gr(e,n,t){return i;function i(l){return L(l)?D(e,u,"linePrefix")(l):u(l)}function u(l){return l===null||z(l)?n(l):t(l)}}r(Gr,"tokenizeBlankLine");var Vt={continuation:{tokenize:Yr},exit:Xr,name:"blockQuote",tokenize:Kr};function Kr(e,n,t){const i=this;return u;function u(a){if(a===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return t(a)}function l(a){return L(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(a))}}r(Kr,"tokenizeBlockQuoteStart");function Yr(e,n,t){const i=this;return u;function u(a){return L(a)?D(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(Vt,n,t)(a)}}r(Yr,"tokenizeBlockQuoteContinuation");function Xr(e){e.exit("blockQuote")}r(Xr,"exit$1");var Ut={name:"characterEscape",tokenize:Zr};function Zr(e,n,t){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),u}function u(l){return Rn(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}r(Zr,"tokenizeCharacterEscape");var Qt={name:"characterReference",tokenize:Jr};function Jr(e,n,t){const i=this;let u=0,l,a;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),l=31,a=J,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=Fn,p):(e.enter("characterReferenceValue"),l=7,a=Oe,p(f))}function p(f){if(f===59&&u){const k=e.exit("characterReferenceValue");return a===J&&!Ne(i.sliceSerialize(k))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return a(f)&&u++<l?(e.consume(f),p):t(f)}}r(Jr,"tokenizeCharacterReference");var ht={partial:!0,tokenize:ti},ft={concrete:!0,name:"codeFenced",tokenize:ei};function ei(e,n,t){const i=this,u={partial:!0,tokenize:F};let l=0,a=0,o;return s;function s(y){return c(y)}function c(y){const B=i.events[i.events.length-1];return l=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(y)}function p(y){return y===o?(a++,e.consume(y),p):a<3?t(y):(e.exit("codeFencedFenceSequence"),L(y)?D(e,f,"whitespace")(y):f(y))}function f(y){return y===null||z(y)?(e.exit("codeFencedFence"),i.interrupt?n(y):e.check(ht,C,R)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(y))}function k(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):L(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),D(e,h,"whitespace")(y)):y===96&&y===o?t(y):(e.consume(y),k)}function h(y){return y===null||z(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?t(y):(e.consume(y),w)}function C(y){return e.attempt(u,R,v)(y)}function v(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return l>0&&L(y)?D(e,_,"linePrefix",l+1)(y):_(y)}function _(y){return y===null||z(y)?e.check(ht,C,R)(y):(e.enter("codeFlowValue"),S(y))}function S(y){return y===null||z(y)?(e.exit("codeFlowValue"),_(y)):(e.consume(y),S)}function R(y){return e.exit("codeFenced"),n(y)}function F(y,B,$){let P=0;return x;function x(M){return y.enter("lineEnding"),y.consume(M),y.exit("lineEnding"),E}function E(M){return y.enter("codeFencedFence"),L(M)?D(y,T,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):T(M)}function T(M){return M===o?(y.enter("codeFencedFenceSequence"),O(M)):$(M)}function O(M){return M===o?(P++,y.consume(M),O):P>=a?(y.exit("codeFencedFenceSequence"),L(M)?D(y,j,"whitespace")(M):j(M)):$(M)}function j(M){return M===null||z(M)?(y.exit("codeFencedFence"),B(M)):$(M)}}}r(ei,"tokenizeCodeFenced");function ti(e,n,t){const i=this;return u;function u(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return i.parser.lazy[i.now().line]?t(a):n(a)}}r(ti,"tokenizeNonLazyContinuation");var Fe={name:"codeIndented",tokenize:ri},ni={partial:!0,tokenize:ii};function ri(e,n,t){const i=this;return u;function u(c){return e.enter("codeIndented"),D(e,l,"linePrefix",5)(c)}function l(c){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(c):t(c)}function a(c){return c===null?s(c):z(c)?e.attempt(ni,a,s)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||z(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function s(c){return e.exit("codeIndented"),n(c)}}r(ri,"tokenizeCodeIndented");function ii(e,n,t){const i=this;return u;function u(a){return i.parser.lazy[i.now().line]?t(a):z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):D(e,l,"linePrefix",5)(a)}function l(a){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):z(a)?u(a):t(a)}}r(ii,"tokenizeFurtherStart");var ui={name:"codeText",previous:ai,resolve:li,tokenize:oi};function li(e){let n=e.length-4,t=3,i,u;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i<n;)if(e[i][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(i=t-1,n++;++i<=n;)u===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(u=i):(i===n||e[i][1].type==="lineEnding")&&(e[u][1].type="codeTextData",i!==u+2&&(e[u][1].end=e[i-1][1].end,e.splice(u+2,i-u-2),n-=i-u-2,i=u+2),u=void 0);return e}r(li,"resolveCodeText");function ai(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}r(ai,"previous");function oi(e,n,t){let i=0,u,l;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(l=e.enter("codeTextSequence"),u=0,p(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),u++,p):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",c(f))}}r(oi,"tokenizeCodeText");var si=class{static{r(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const t=n??Number.POSITIVE_INFINITY;return t<this.left.length?this.left.slice(e,t):e>this.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(e,n,t){const i=n||0;this.setCursor(Math.trunc(e));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return t&&Ie(this.left,t),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ie(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ie(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Ie(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ie(this.left,n.reverse())}}};function Ie(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}r(Ie,"chunkedPush");function Wt(e){const n={};let t=-1,i,u,l,a,o,s,c;const p=new si(e);for(;++t<p.length;){for(;t in n;)t=n[t];if(i=p.get(t),t&&i[1].type==="chunkFlow"&&p.get(t-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,ci(p,t)),t=n[t],c=!0);else if(i[1]._container){for(l=t,u=void 0;l--;)if(a=p.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(u&&(p.get(u)[1].type="lineEndingBlank"),a[1].type="lineEnding",u=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;u&&(i[1].end={...p.get(u)[1].start},o=p.slice(u,t),o.unshift(i),p.splice(u,t-u+1,o))}}return K(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}r(Wt,"subtokenize");function ci(e,n){const t=e.get(n)[1],i=e.get(n)[2];let u=n-1;const l=[];let a=t._tokenizer;a||(a=i.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,s=[],c={};let p,f,k=-1,h=t,w=0,C=0;const v=[C];for(;h;){for(;e.get(++u)[1]!==h;);l.push(u),h._tokenizer||(p=i.sliceStream(h),h.next||p.push(null),f&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++k<o.length;)o[k][0]==="exit"&&o[k-1][0]==="enter"&&o[k][1].type===o[k-1][1].type&&o[k][1].start.line!==o[k][1].end.line&&(C=k+1,v.push(C),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),k=v.length;k--;){const b=o.slice(v[k],v[k+1]),_=l.pop();s.push([_,_+b.length-1]),e.splice(_,2,b)}for(s.reverse(),k=-1;++k<s.length;)c[w+s[k][0]]=w+s[k][1],w+=s[k][1]-s[k][0]-1;return c}r(ci,"subcontent");var hi={resolve:pi,tokenize:mi},fi={partial:!0,tokenize:gi};function pi(e){return Wt(e),e}r(pi,"resolveContent");function mi(e,n){let t;return i;function i(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),u(o)}function u(o){return o===null?l(o):z(o)?e.check(fi,a,l)(o):(e.consume(o),u)}function l(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function a(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}r(mi,"tokenizeContent");function gi(e,n,t){const i=this;return u;function u(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),D(e,l,"linePrefix")}function l(a){if(a===null||z(a))return t(a);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):e.interrupt(i.parser.constructs.flow,t,n)(a)}}r(gi,"tokenizeContinuation");function Gt(e,n,t,i,u,l,a,o,s){const c=s||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(e.enter(i),e.enter(u),e.enter(l),e.consume(b),e.exit(l),k):b===null||b===32||b===41||Pe(b)?t(b):(e.enter(i),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),C(b))}function k(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(u),e.exit(i),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(o),k(b)):b===null||b===60||z(b)?t(b):(e.consume(b),b===92?w:h)}function w(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function C(b){return!p&&(b===null||b===41||U(b))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(i),n(b)):p<c&&b===40?(e.consume(b),p++,C):b===41?(e.consume(b),p--,C):b===null||b===32||b===40||Pe(b)?t(b):(e.consume(b),b===92?v:C)}function v(b){return b===40||b===41||b===92?(e.consume(b),C):C(b)}}r(Gt,"factoryDestination");function Kt(e,n,t,i,u,l){const a=this;let o=0,s;return c;function c(h){return e.enter(i),e.enter(u),e.consume(h),e.exit(u),e.enter(l),p}function p(h){return o>999||h===null||h===91||h===93&&!s||h===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?t(h):h===93?(e.exit(l),e.enter(u),e.consume(h),e.exit(u),e.exit(i),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||z(h)||o++>999?(e.exit("chunkString"),p(h)):(e.consume(h),s||(s=!L(h)),h===92?k:f)}function k(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}r(Kt,"factoryLabel");function Yt(e,n,t,i,u,l){let a;return o;function o(k){return k===34||k===39||k===40?(e.enter(i),e.enter(u),e.consume(k),e.exit(u),a=k===40?41:k,s):t(k)}function s(k){return k===a?(e.enter(u),e.consume(k),e.exit(u),e.exit(i),n):(e.enter(l),c(k))}function c(k){return k===a?(e.exit(l),s(a)):k===null?t(k):z(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===a||k===null||z(k)?(e.exit("chunkString"),c(k)):(e.consume(k),k===92?f:p)}function f(k){return k===a||k===92?(e.consume(k),p):p(k)}}r(Yt,"factoryTitle");function Ce(e,n){let t;return i;function i(u){return z(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t=!0,i):L(u)?D(e,i,t?"linePrefix":"lineSuffix")(u):n(u)}}r(Ce,"factoryWhitespace");var ki={name:"definition",tokenize:di},xi={partial:!0,tokenize:bi};function di(e,n,t){const i=this;let u;return l;function l(h){return e.enter("definition"),a(h)}function a(h){return Kt.call(i,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return u=xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return U(h)?Ce(e,c)(h):c(h)}function c(h){return Gt(e,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return e.attempt(xi,f,f)(h)}function f(h){return L(h)?D(e,k,"whitespace")(h):k(h)}function k(h){return h===null||z(h)?(e.exit("definition"),i.parser.defined.push(u),n(h)):t(h)}}r(di,"tokenizeDefinition");function bi(e,n,t){return i;function i(o){return U(o)?Ce(e,u)(o):t(o)}function u(o){return Yt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return L(o)?D(e,a,"whitespace")(o):a(o)}function a(o){return o===null||z(o)?n(o):t(o)}}r(bi,"tokenizeTitleBefore");var yi={name:"hardBreakEscape",tokenize:wi};function wi(e,n,t){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),u}function u(l){return z(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}r(wi,"tokenizeHardBreakEscape");var Ii={name:"headingAtx",resolve:Si,tokenize:Ci};function Si(e,n){let t=e.length-2,i=3,u,l;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(u={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},l={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},K(e,i,t-i+1,[["enter",u,n],["enter",l,n],["exit",l,n],["exit",u,n]])),e}r(Si,"resolveHeadingAtx");function Ci(e,n,t){let i=0;return u;function u(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&i++<6?(e.consume(p),a):p===null||U(p)?(e.exit("atxHeadingSequence"),o(p)):t(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),s(p)):p===null||z(p)?(e.exit("atxHeading"),n(p)):L(p)?D(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function s(p){return p===35?(e.consume(p),s):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||U(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}r(Ci,"tokenizeHeadingAtx");var vi=["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"],pt=["pre","script","style","textarea"],Ei={concrete:!0,name:"htmlFlow",resolveTo:_i,tokenize:Ai},Ti={partial:!0,tokenize:Fi},zi={partial:!0,tokenize:Li};function _i(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}r(_i,"resolveToHtmlFlow");function Ai(e,n,t){const i=this;let u,l,a,o,s;return c;function c(g){return p(g)}function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),k):g===47?(e.consume(g),l=!0,C):g===63?(e.consume(g),u=3,i.interrupt?n:m):ee(g)?(e.consume(g),a=String.fromCharCode(g),v):t(g)}function k(g){return g===45?(e.consume(g),u=2,h):g===91?(e.consume(g),u=5,o=0,w):ee(g)?(e.consume(g),u=4,i.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),i.interrupt?n:m):t(g)}function w(g){return g==="CDATA[".charCodeAt(o++)?(e.consume(g),o===6?i.interrupt?n:T:w):t(g)}function C(g){return ee(g)?(e.consume(g),a=String.fromCharCode(g),v):t(g)}function v(g){if(g===null||g===47||g===62||U(g)){const ae=g===47,he=a.toLowerCase();return!ae&&!l&&pt.includes(he)?(u=1,i.interrupt?n(g):T(g)):vi.includes(a.toLowerCase())?(u=6,ae?(e.consume(g),b):i.interrupt?n(g):T(g)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(g):l?_(g):S(g))}return g===45||J(g)?(e.consume(g),a+=String.fromCharCode(g),v):t(g)}function b(g){return g===62?(e.consume(g),i.interrupt?n:T):t(g)}function _(g){return L(g)?(e.consume(g),_):x(g)}function S(g){return g===47?(e.consume(g),x):g===58||g===95||ee(g)?(e.consume(g),R):L(g)?(e.consume(g),S):x(g)}function R(g){return g===45||g===46||g===58||g===95||J(g)?(e.consume(g),R):F(g)}function F(g){return g===61?(e.consume(g),y):L(g)?(e.consume(g),F):S(g)}function y(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),s=g,B):L(g)?(e.consume(g),y):$(g)}function B(g){return g===s?(e.consume(g),s=null,P):g===null||z(g)?t(g):(e.consume(g),B)}function $(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||U(g)?F(g):(e.consume(g),$)}function P(g){return g===47||g===62||L(g)?S(g):t(g)}function x(g){return g===62?(e.consume(g),E):t(g)}function E(g){return g===null||z(g)?T(g):L(g)?(e.consume(g),E):t(g)}function T(g){return g===45&&u===2?(e.consume(g),Q):g===60&&u===1?(e.consume(g),q):g===62&&u===4?(e.consume(g),le):g===63&&u===3?(e.consume(g),m):g===93&&u===5?(e.consume(g),te):z(g)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(Ti,ne,O)(g)):g===null||z(g)?(e.exit("htmlFlowData"),O(g)):(e.consume(g),T)}function O(g){return e.check(zi,j,ne)(g)}function j(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),M}function M(g){return g===null||z(g)?O(g):(e.enter("htmlFlowData"),T(g))}function Q(g){return g===45?(e.consume(g),m):T(g)}function q(g){return g===47?(e.consume(g),a="",Z):T(g)}function Z(g){if(g===62){const ae=a.toLowerCase();return pt.includes(ae)?(e.consume(g),le):T(g)}return ee(g)&&a.length<8?(e.consume(g),a+=String.fromCharCode(g),Z):T(g)}function te(g){return g===93?(e.consume(g),m):T(g)}function m(g){return g===62?(e.consume(g),le):g===45&&u===2?(e.consume(g),m):T(g)}function le(g){return g===null||z(g)?(e.exit("htmlFlowData"),ne(g)):(e.consume(g),le)}function ne(g){return e.exit("htmlFlow"),n(g)}}r(Ai,"tokenizeHtmlFlow");function Li(e,n,t){const i=this;return u;function u(a){return z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):t(a)}function l(a){return i.parser.lazy[i.now().line]?t(a):n(a)}}r(Li,"tokenizeNonLazyContinuationStart");function Fi(e,n,t){return i;function i(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(Le,n,t)}}r(Fi,"tokenizeBlankLineBefore");var Ri={name:"htmlText",tokenize:Bi};function Bi(e,n,t){const i=this;let u,l,a;return o;function o(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),c):m===47?(e.consume(m),F):m===63?(e.consume(m),S):ee(m)?(e.consume(m),$):t(m)}function c(m){return m===45?(e.consume(m),p):m===91?(e.consume(m),l=0,w):ee(m)?(e.consume(m),_):t(m)}function p(m){return m===45?(e.consume(m),h):t(m)}function f(m){return m===null?t(m):m===45?(e.consume(m),k):z(m)?(a=f,q(m)):(e.consume(m),f)}function k(m){return m===45?(e.consume(m),h):f(m)}function h(m){return m===62?Q(m):m===45?k(m):f(m)}function w(m){return m==="CDATA[".charCodeAt(l++)?(e.consume(m),l===6?C:w):t(m)}function C(m){return m===null?t(m):m===93?(e.consume(m),v):z(m)?(a=C,q(m)):(e.consume(m),C)}function v(m){return m===93?(e.consume(m),b):C(m)}function b(m){return m===62?Q(m):m===93?(e.consume(m),b):C(m)}function _(m){return m===null||m===62?Q(m):z(m)?(a=_,q(m)):(e.consume(m),_)}function S(m){return m===null?t(m):m===63?(e.consume(m),R):z(m)?(a=S,q(m)):(e.consume(m),S)}function R(m){return m===62?Q(m):S(m)}function F(m){return ee(m)?(e.consume(m),y):t(m)}function y(m){return m===45||J(m)?(e.consume(m),y):B(m)}function B(m){return z(m)?(a=B,q(m)):L(m)?(e.consume(m),B):Q(m)}function $(m){return m===45||J(m)?(e.consume(m),$):m===47||m===62||U(m)?P(m):t(m)}function P(m){return m===47?(e.consume(m),Q):m===58||m===95||ee(m)?(e.consume(m),x):z(m)?(a=P,q(m)):L(m)?(e.consume(m),P):Q(m)}function x(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),x):E(m)}function E(m){return m===61?(e.consume(m),T):z(m)?(a=E,q(m)):L(m)?(e.consume(m),E):P(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,O):z(m)?(a=T,q(m)):L(m)?(e.consume(m),T):(e.consume(m),j)}function O(m){return m===u?(e.consume(m),u=void 0,M):m===null?t(m):z(m)?(a=O,q(m)):(e.consume(m),O)}function j(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||U(m)?P(m):(e.consume(m),j)}function M(m){return m===47||m===62||U(m)?P(m):t(m)}function Q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Z}function Z(m){return L(m)?D(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):te(m)}function te(m){return e.enter("htmlTextData"),a(m)}}r(Bi,"tokenizeHtmlText");var Qe={name:"labelEnd",resolveAll:Oi,resolveTo:$i,tokenize:Hi},Mi={tokenize:Ni},Di={tokenize:ji},Pi={tokenize:qi};function Oi(e){let n=-1;const t=[];for(;++n<e.length;){const i=e[n][1];if(t.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const u=i.type==="labelImage"?4:2;i.type="data",n+=u}}return e.length!==t.length&&K(e,0,e.length,t),e}r(Oi,"resolveAllLabelEnd");function $i(e,n){let t=e.length,i=0,u,l,a,o;for(;t--;)if(u=e[t][1],l){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(a){if(e[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(l=t,u.type!=="labelLink")){i=2;break}}else u.type==="labelEnd"&&(a=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},p={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",s,n],["enter",c,n]],o=X(o,e.slice(l+1,l+i+3)),o=X(o,[["enter",p,n]]),o=X(o,_e(n.parser.constructs.insideSpan.null,e.slice(l+i+4,a-3),n)),o=X(o,[["exit",p,n],e[a-2],e[a-1],["exit",c,n]]),o=X(o,e.slice(a+1)),o=X(o,[["exit",s,n]]),K(e,l,e.length,o),e}r($i,"resolveToLabelEnd");function Hi(e,n,t){const i=this;let u=i.events.length,l,a;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){l=i.events[u][1];break}return o;function o(k){return l?l._inactive?f(k):(a=i.parser.defined.includes(xe(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),s):t(k)}function s(k){return k===40?e.attempt(Mi,p,a?p:f)(k):k===91?e.attempt(Di,p,a?c:f)(k):a?p(k):f(k)}function c(k){return e.attempt(Pi,p,f)(k)}function p(k){return n(k)}function f(k){return l._balanced=!0,t(k)}}r(Hi,"tokenizeLabelEnd");function Ni(e,n,t){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),u}function u(f){return U(f)?Ce(e,l)(f):l(f)}function l(f){return f===41?p(f):Gt(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return U(f)?Ce(e,s)(f):p(f)}function o(f){return t(f)}function s(f){return f===34||f===39||f===40?Yt(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return U(f)?Ce(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}r(Ni,"tokenizeResource");function ji(e,n,t){const i=this;return u;function u(o){return Kt.call(i,e,l,a,"reference","referenceMarker","referenceString")(o)}function l(o){return i.parser.defined.includes(xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function a(o){return t(o)}}r(ji,"tokenizeReferenceFull");function qi(e,n,t){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),u}function u(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}r(qi,"tokenizeReferenceCollapsed");var Vi={name:"labelStartImage",resolveAll:Qe.resolveAll,tokenize:Ui};function Ui(e,n,t){const i=this;return u;function u(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):t(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(o):n(o)}}r(Ui,"tokenizeLabelStartImage");var Qi={name:"labelStartLink",resolveAll:Qe.resolveAll,tokenize:Wi};function Wi(e,n,t){const i=this;return u;function u(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(a):n(a)}}r(Wi,"tokenizeLabelStartLink");var Re={name:"lineEnding",tokenize:Gi};function Gi(e,n){return t;function t(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),D(e,n,"linePrefix")}}r(Gi,"tokenizeLineEnding");var Te={name:"thematicBreak",tokenize:Ki};function Ki(e,n,t){let i=0,u;return l;function l(c){return e.enter("thematicBreak"),a(c)}function a(c){return u=c,o(c)}function o(c){return c===u?(e.enter("thematicBreakSequence"),s(c)):i>=3&&(c===null||z(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===u?(e.consume(c),i++,s):(e.exit("thematicBreakSequence"),L(c)?D(e,o,"whitespace")(c):o(c))}}r(Ki,"tokenizeThematicBreak");var W={continuation:{tokenize:Ji},exit:tu,name:"list",tokenize:Zi},Yi={partial:!0,tokenize:nu},Xi={partial:!0,tokenize:eu};function Zi(e,n,t){const i=this,u=i.events[i.events.length-1];let l=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,a=0;return o;function o(h){const w=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Oe(h)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Te,t,c)(h):c(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return Oe(h)&&++a<10?(e.consume(h),s):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):t(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Le,i.interrupt?t:p,e.attempt(Yi,k,f))}function p(h){return i.containerState.initialBlankLine=!0,l++,k(h)}function f(h){return L(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),k):t(h)}function k(h){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}r(Zi,"tokenizeListStart");function Ji(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Le,u,l);function u(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,D(e,n,"listItemIndent",i.containerState.size+1)(o)}r(u,"onBlank");function l(o){return i.containerState.furtherBlankLines||!L(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Xi,n,a)(o))}r(l,"notBlank");function a(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,D(e,e.attempt(W,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}r(a,"notInCurrentItem")}r(Ji,"tokenizeListContinuation");function eu(e,n,t){const i=this;return D(e,u,"listItemIndent",i.containerState.size+1);function u(l){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?n(l):t(l)}}r(eu,"tokenizeIndent");function tu(e){e.exit(this.containerState.type)}r(tu,"tokenizeListEnd");function nu(e,n,t){const i=this;return D(e,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(l){const a=i.events[i.events.length-1];return!L(l)&&a&&a[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}r(nu,"tokenizeListItemPrefixWhitespace");var mt={name:"setextUnderline",resolveTo:ru,tokenize:iu};function ru(e,n){let t=e.length,i,u,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(u=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",l?(e.splice(u,0,["enter",a,n]),e.splice(l+1,0,["exit",e[i][1],n]),e[i][1].end={...e[l][1].end}):e[i][1]=a,e.push(["exit",a,n]),e}r(ru,"resolveToSetextUnderline");function iu(e,n,t){const i=this;let u;return l;function l(c){let p=i.events.length,f;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){f=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),u=c,a(c)):t(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===u?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),L(c)?D(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||z(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}r(iu,"tokenizeSetextUnderline");var uu={tokenize:lu};function lu(e){const n=this,t=e.attempt(Le,i,e.attempt(this.parser.constructs.flowInitial,u,D(e,e.attempt(this.parser.constructs.flow,u,e.attempt(hi,u)),"linePrefix")));return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function u(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}r(lu,"initializeFlow");var au={resolveAll:Zt()},ou=Xt("string"),su=Xt("text");function Xt(e){return{resolveAll:Zt(e==="text"?cu:void 0),tokenize:n};function n(t){const i=this,u=this.parser.constructs[e],l=t.attempt(u,a,o);return a;function a(p){return c(p)?l(p):o(p)}function o(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),s}function s(p){return c(p)?(t.exit("data"),l(p)):(t.consume(p),s)}function c(p){if(p===null)return!0;const f=u[p];let k=-1;if(f)for(;++k<f.length;){const h=f[k];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}r(Xt,"initializeFactory");function Zt(e){return n;function n(t,i){let u=-1,l;for(;++u<=t.length;)l===void 0?t[u]&&t[u][1].type==="data"&&(l=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==l+2&&(t[l][1].end=t[u-1][1].end,t.splice(l+2,u-l-2),u=l+2),l=void 0);return e?e(t,i):t}}r(Zt,"createResolver");function cu(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const i=e[t-1][1],u=n.sliceStream(i);let l=u.length,a=-1,o=0,s;for(;l--;){const c=u[l];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)s=!0,o++;else if(c!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const c={type:t===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}r(cu,"resolveAllLineSuffixes");var hu=pn({attentionMarkers:r(()=>bu,"attentionMarkers"),contentInitial:r(()=>pu,"contentInitial"),disable:r(()=>yu,"disable"),document:r(()=>fu,"document"),flow:r(()=>gu,"flow"),flowInitial:r(()=>mu,"flowInitial"),insideSpan:r(()=>du,"insideSpan"),string:r(()=>ku,"string"),text:r(()=>xu,"text")}),fu={42:W,43:W,45:W,48:W,49:W,50:W,51:W,52:W,53:W,54:W,55:W,56:W,57:W,62:Vt},pu={91:ki},mu={[-2]:Fe,[-1]:Fe,32:Fe},gu={35:Ii,42:Te,45:[mt,Te],60:Ei,61:mt,95:Te,96:ft,126:ft},ku={38:Qt,92:Ut},xu={[-5]:Re,[-4]:Re,[-3]:Re,33:Vi,38:Qt,42:He,60:[Qr,Ri],91:Qi,92:[yi,Ut],93:Qe,95:He,96:ui},du={null:[He,au]},bu={null:[42,95]},yu={null:[]};function wu(e,n,t){let i={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const u={},l=[];let a=[],o=[];const s={attempt:B(F),check:B(y),consume:_,enter:S,exit:R,interrupt:B(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:C,events:[],now:w,parser:e,previous:null,sliceSerialize:k,sliceStream:h,write:f};let p=n.tokenize.call(c,s);return n.resolveAll&&l.push(n),c;function f(E){return a=X(a,E),v(),a[a.length-1]!==null?[]:($(n,0),c.events=_e(l,c.events,c),c.events)}r(f,"write");function k(E,T){return Su(h(E),T)}r(k,"sliceSerialize");function h(E){return Iu(a,E)}r(h,"sliceStream");function w(){const{_bufferIndex:E,_index:T,line:O,column:j,offset:M}=i;return{_bufferIndex:E,_index:T,line:O,column:j,offset:M}}r(w,"now");function C(E){u[E.line]=E.column,x()}r(C,"defineSkip");function v(){let E;for(;i._index<a.length;){const T=a[i._index];if(typeof T=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<T.length;)b(T.charCodeAt(i._bufferIndex));else b(T)}}r(v,"main");function b(E){p=p(E)}r(b,"go");function _(E){z(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,x()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===a[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=E}r(_,"consume");function S(E,T){const O=T||{};return O.type=E,O.start=w(),c.events.push(["enter",O,c]),o.push(O),O}r(S,"enter");function R(E){const T=o.pop();return T.end=w(),c.events.push(["exit",T,c]),T}r(R,"exit");function F(E,T){$(E,T.from)}r(F,"onsuccessfulconstruct");function y(E,T){T.restore()}r(y,"onsuccessfulcheck");function B(E,T){return O;function O(j,M,Q){let q,Z,te,m;return Array.isArray(j)?ne(j):"tokenize"in j?ne([j]):le(j);function le(V){return be;function be(re){const fe=re!==null&&V[re],pe=re!==null&&V.null;return ne([...Array.isArray(fe)?fe:fe?[fe]:[],...Array.isArray(pe)?pe:pe?[pe]:[]])(re)}}function ne(V){return q=V,Z=0,V.length===0?Q:g(V[Z])}function g(V){return be;function be(re){return m=P(),te=V,V.partial||(c.currentConstruct=V),V.name&&c.parser.constructs.disable.null.includes(V.name)?he(re):V.tokenize.call(T?Object.assign(Object.create(c),T):c,s,ae,he)(re)}}function ae(V){return E(te,m),M}function he(V){return m.restore(),++Z<q.length?g(q[Z]):Q}}}r(B,"constructFactory");function $(E,T){E.resolveAll&&!l.includes(E)&&l.push(E),E.resolve&&K(c.events,T,c.events.length-T,E.resolve(c.events.slice(T),c)),E.resolveTo&&(c.events=E.resolveTo(c.events,c))}r($,"addResult");function P(){const E=w(),T=c.previous,O=c.currentConstruct,j=c.events.length,M=Array.from(o);return{from:j,restore:Q};function Q(){i=E,c.previous=T,c.currentConstruct=O,c.events.length=j,o=M,x()}}r(P,"store");function x(){i.line in u&&i.column<2&&(i.column=u[i.line],i.offset+=u[i.line]-1)}r(x,"accountForPotentialSkip")}r(wu,"createTokenizer");function Iu(e,n){const t=n.start._index,i=n.start._bufferIndex,u=n.end._index,l=n.end._bufferIndex;let a;if(t===u)a=[e[t].slice(i,l)];else{if(a=e.slice(t,u),i>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(i):a.shift()}l>0&&a.push(e[u].slice(0,l))}return a}r(Iu,"sliceChunks");function Su(e,n){let t=-1;const i=[];let u;for(;++t<e.length;){const l=e[t];let a;if(typeof l=="string")a=l;else switch(l){case-5:a="\r";break;case-4:a=`
13
13
  `;break;case-3:a=`\r
14
- `;break;case-2:a=n?" ":" ";break;case-1:if(!n&&u)continue;a=" ";break;default:a=String.fromCharCode(l)}u=l===-2,i.push(a)}return i.join("")}r(vu,"serializeChunks");function Eu(e){const n={constructs:Or([pu,...(e||{}).extensions||[]]),content:t(Nr),defined:[],document:t(qr),flow:t(au),lazy:{},string:t(cu),text:t(hu)};return n;function t(i){return u;function u(l){return Su(n,i,l)}}}r(Eu,"parse");function Tu(e){for(;!Gt(e););return e}r(Tu,"postprocess");var gt=/[\0\t\n\r]/g;function zu(){let e=1,n="",t=!0,i;return u;function u(l,a,o){const s=[];let c,p,f,k,h;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(gt.lastIndex=f,c=gt.exec(l),k=c&&c.index!==void 0?c.index:l.length,h=l.charCodeAt(k),!c){n=l.slice(f);break}if(h===10&&f===k&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),f<k&&(s.push(l.slice(f,k)),e+=k-f),h){case 0:s.push(65533),e++;break;case 9:for(p=Math.ceil(e/4)*4,s.push(-2);e++<p;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:i=!0,e=1}f=k+1}return o&&(i&&s.push(-5),n&&s.push(n),s.push(null)),s}}r(zu,"preprocess");var en={}.hasOwnProperty;function El(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),_u(t)(Tu(Eu(t).document().write(zu()(e,n,!0))))}r(El,"fromMarkdown");function _u(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ye),autolinkProtocol:P,autolinkEmail:P,atxHeading:l(Ge),blockQuote:l(pe),characterEscape:P,characterReference:P,codeFenced:l(We),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(We,a),codeText:l(rn,a),codeTextData:P,data:P,codeFlowValue:P,definition:l(un),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(ln),hardBreakEscape:l(Ke),hardBreakTrailing:l(Ke),htmlFlow:l(Xe,a),htmlFlowData:P,htmlText:l(Xe,a),htmlTextData:P,image:l(an),label:a,link:l(Ye),listItem:l(on),listItemValue:k,listOrdered:l(Ze,f),listUnordered:l(Ze),paragraph:l(sn),reference:g,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(Ge),strong:l(cn),thematicBreak:l(fn)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:fe,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:V,characterReference:be,codeFenced:s(v),codeFencedFence:C,codeFencedFenceInfo:h,codeFencedFenceMeta:w,codeFlowValue:x,codeIndented:s(b),codeText:s(B),codeTextData:x,data:x,definition:s(),definitionDestinationString:R,definitionLabelString:_,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(T),hardBreakTrailing:s(T),htmlFlow:s(O),htmlFlowData:x,htmlText:s(j),htmlTextData:x,image:s(q),label:te,labelText:Z,lineEnding:E,link:s(Q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ae,resourceDestinationString:m,resourceTitleString:le,resource:ne,setextHeading:s($),setextHeadingLineSequence:M,setextHeadingText:y,strong:s(),thematicBreak:s()}};tn(n,(e||{}).mdastExtensions||[]);const t={};return i;function i(d){let I={type:"root",children:[]};const A={stack:[I],tokenStack:[],config:n,enter:o,exit:c,buffer:a,resume:p,data:t},H=[];let N=-1;for(;++N<d.length;)(d[N][1].type==="listOrdered"||d[N][1].type==="listUnordered")&&(d[N][0]==="enter"?H.push(N):N=u(d,H.pop(),N));for(N=-1;++N<d.length;){const oe=n[d[N][0]];en.call(oe,d[N][1].type)&&oe[d[N][1].type].call(Object.assign({sliceSerialize:d[N][2].sliceSerialize},A),d[N][1])}if(A.tokenStack.length>0){const oe=A.tokenStack[A.tokenStack.length-1];(oe[1]||kt).call(A,void 0,oe[0])}for(I.position={start:se(d.length>0?d[0][1].start:{line:1,column:1,offset:0}),end:se(d.length>0?d[d.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N<n.transforms.length;)I=n.transforms[N](I)||I;return I}function u(d,I,A){let H=I-1,N=-1,oe=!1,me,ie,ye,we;for(;++H<=A;){const G=d[H];switch(G[1].type){case"listUnordered":case"listOrdered":case"blockQuote":G[0]==="enter"?N++:N--,we=void 0;break;case"lineEndingBlank":G[0]==="enter"&&(me&&!we&&!N&&!ye&&(ye=H),we=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:we=void 0}if(!N&&G[0]==="enter"&&G[1].type==="listItemPrefix"||N===-1&&G[0]==="exit"&&(G[1].type==="listUnordered"||G[1].type==="listOrdered")){if(me){let ge=H;for(ie=void 0;ge--;){const ue=d[ge];if(ue[1].type==="lineEnding"||ue[1].type==="lineEndingBlank"){if(ue[0]==="exit")continue;ie&&(d[ie][1].type="lineEndingBlank",oe=!0),ue[1].type="lineEnding",ie=ge}else if(!(ue[1].type==="linePrefix"||ue[1].type==="blockQuotePrefix"||ue[1].type==="blockQuotePrefixWhitespace"||ue[1].type==="blockQuoteMarker"||ue[1].type==="listItemIndent"))break}ye&&(!ie||ye<ie)&&(me._spread=!0),me.end=Object.assign({},ie?d[ie][1].start:G[1].end),d.splice(ie||H,0,["exit",me,G[2]]),H++,A++}if(G[1].type==="listItemPrefix"){const ge={type:"listItem",_spread:!1,start:Object.assign({},G[1].start),end:void 0};me=ge,d.splice(H,0,["enter",ge,G[2]]),H++,A++,ye=void 0,we=!0}}}return d[I][1]._spread=oe,A}function l(d,I){return A;function A(H){o.call(this,d(H),H),I&&I.call(this,H)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(d,I,A){this.stack[this.stack.length-1].children.push(d),this.stack.push(d),this.tokenStack.push([I,A||void 0]),d.position={start:se(I.start),end:void 0}}function s(d){return I;function I(A){d&&d.call(this,A),c.call(this,A)}}function c(d,I){const A=this.stack.pop(),H=this.tokenStack.pop();if(H)H[0].type!==d.type&&(I?I.call(this,d,H[0]):(H[1]||kt).call(this,d,H[0]));else throw new Error("Cannot close `"+d.type+"` ("+Se({start:d.start,end:d.end})+"): it’s not open");A.position.end=se(d.end)}function p(){return Ve(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function k(d){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(d),10),this.data.expectingFirstListItemValue=void 0}}function h(){const d=this.resume(),I=this.stack[this.stack.length-1];I.lang=d}function w(){const d=this.resume(),I=this.stack[this.stack.length-1];I.meta=d}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/(\r?\n|\r)$/g,"")}function _(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase()}function S(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function R(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function F(d){const I=this.stack[this.stack.length-1];I.depth||(I.depth=this.sliceSerialize(d).length)}function y(){this.data.setextHeadingSlurpLineEnding=!0}function M(d){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(d).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function P(d){const I=this.stack[this.stack.length-1].children;let A=I[I.length-1];(!A||A.type!=="text")&&(A=hn(),A.position={start:se(d.start),end:void 0},I.push(A)),this.stack.push(A)}function x(d){const I=this.stack.pop();I.value+=this.sliceSerialize(d),I.position.end=se(d.end)}function E(d){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=I.children[I.children.length-1];A.position.end=se(d.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(P.call(this,d),x.call(this,d))}function T(){this.data.atHardBreak=!0}function O(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function j(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function B(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function Q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function Z(d){const I=this.sliceSerialize(d),A=this.stack[this.stack.length-2];A.label=Dr(I),A.identifier=xe(I).toLowerCase()}function te(){const d=this.stack[this.stack.length-1],I=this.resume(),A=this.stack[this.stack.length-1];this.data.inReference=!0,A.type==="link"?A.children=d.children:A.alt=I}function m(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function le(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function ne(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ae(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase(),this.data.referenceType="full"}function he(d){this.data.characterReferenceType=d.type}function V(d){const I=this.sliceSerialize(d),A=this.data.characterReferenceType;let H;A?(H=Vt(I,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=Ne(I);const N=this.stack[this.stack.length-1];N.value+=H}function be(d){const I=this.stack.pop();I.position.end=se(d.end)}function re(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(d)}function fe(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(d)}function pe(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function rn(){return{type:"inlineCode",value:""}}function un(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ln(){return{type:"emphasis",children:[]}}function Ge(){return{type:"heading",depth:0,children:[]}}function Ke(){return{type:"break"}}function Xe(){return{type:"html",value:""}}function an(){return{type:"image",title:null,url:"",alt:null}}function Ye(){return{type:"link",title:null,url:"",children:[]}}function Ze(d){return{type:"list",ordered:d.type==="listOrdered",start:null,spread:d._spread,children:[]}}function on(d){return{type:"listItem",spread:d._spread,checked:null,children:[]}}function sn(){return{type:"paragraph",children:[]}}function cn(){return{type:"strong",children:[]}}function hn(){return{type:"text",value:""}}function fn(){return{type:"thematicBreak"}}}r(_u,"compiler");function se(e){return{line:e.line,column:e.column,offset:e.offset}}r(se,"point");function tn(e,n){let t=-1;for(;++t<n.length;){const i=n[t];Array.isArray(i)?tn(e,i):Au(e,i)}}r(tn,"configure");function Au(e,n){let t;for(t in n)if(en.call(n,t))switch(t){case"canContainEols":{const i=n[t];i&&e[t].push(...i);break}case"transforms":{const i=n[t];i&&e[t].push(...i);break}case"enter":case"exit":{const i=n[t];i&&Object.assign(e[t],i);break}}}r(Au,"extension");function kt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Se({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is still open")}r(kt,"defaultOnError");var Lu={name:"tasklistCheck",tokenize:Fu};function Tl(){return{text:{91:Lu}}}r(Tl,"gfmTaskListItem");function Fu(e,n,t){const i=this;return u;function u(s){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return U(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),a):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),a):t(s)}function a(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(s)}function o(s){return z(s)?n(s):L(s)?e.check({tokenize:Ru},n,t)(s):t(s)}}r(Fu,"tokenizeTasklistCheck");function Ru(e,n,t){return D(e,i,"whitespace");function i(u){return u===null?t(u):n(u)}}r(Ru,"spaceThenNonSpace");function zl(){return{exit:{taskListCheckValueChecked:xt,taskListCheckValueUnchecked:xt,paragraph:Mu}}}r(zl,"gfmTaskListItemFromMarkdown");function _l(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Bu}}}r(_l,"gfmTaskListItemToMarkdown");function xt(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}r(xt,"exitCheck");function Mu(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const i=t.children[0];if(i&&i.type==="text"){const u=n.children;let l=-1,a;for(;++l<u.length;){const o=u[l];if(o.type==="paragraph"){a=o;break}}a===t&&(i.value=i.value.slice(1),i.value.length===0?t.children.shift():t.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}}this.exit(e)}r(Mu,"exitParagraphWithTaskListItem");function Bu(e,n,t,i){const u=e.children[0],l=typeof e.checked=="boolean"&&u&&u.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=t.createTracker(i);l&&o.move(a);let s=qt.listItem(e,n,t,{...i,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(p){return p+a}r(c,"check")}r(Bu,"listItemWithTaskListItem");function Du(e){return e.length}r(Du,"defaultStringLength");function Pu(e,n){const t=n||{},i=(t.align||[]).concat(),u=t.stringLength||Du,l=[],a=[],o=[],s=[];let c=0,p=-1;for(;++p<e.length;){const C=[],v=[];let b=-1;for(e[p].length>c&&(c=e[p].length);++b<e[p].length;){const _=Ou(e[p][b]);if(t.alignDelimiters!==!1){const S=u(_);v[b]=S,(s[b]===void 0||S>s[b])&&(s[b]=S)}C.push(_)}a[p]=C,o[p]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<c;)l[f]=dt(i[f]);else{const C=dt(i);for(;++f<c;)l[f]=C}f=-1;const k=[],h=[];for(;++f<c;){const C=l[f];let v="",b="";C===99?(v=":",b=":"):C===108?v=":":C===114&&(b=":");let _=t.alignDelimiters===!1?1:Math.max(1,s[f]-v.length-b.length);const S=v+"-".repeat(_)+b;t.alignDelimiters!==!1&&(_=v.length+_+b.length,_>s[f]&&(s[f]=_),h[f]=_),k[f]=S}a.splice(1,0,k),o.splice(1,0,h),p=-1;const w=[];for(;++p<a.length;){const C=a[p],v=o[p];f=-1;const b=[];for(;++f<c;){const _=C[f]||"";let S="",R="";if(t.alignDelimiters!==!1){const F=s[f]-(v[f]||0),y=l[f];y===114?S=" ".repeat(F):y===99?F%2?(S=" ".repeat(F/2+.5),R=" ".repeat(F/2-.5)):(S=" ".repeat(F/2),R=S):R=" ".repeat(F)}t.delimiterStart!==!1&&!f&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&_==="")&&(t.delimiterStart!==!1||f)&&b.push(" "),t.alignDelimiters!==!1&&b.push(S),b.push(_),t.alignDelimiters!==!1&&b.push(R),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||f!==c-1)&&b.push("|")}w.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return w.join(`
15
- `)}r(Pu,"markdownTable");function Ou(e){return e==null?"":String(e)}r(Ou,"serialize");function dt(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}r(dt,"toAlignment");function Al(){return{enter:{table:$u,tableData:bt,tableHeader:bt,tableRow:Nu},exit:{codeText:ju,table:Hu,tableData:Me,tableHeader:Me,tableRow:Me}}}r(Al,"gfmTableFromMarkdown");function $u(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}r($u,"enterTable");function Hu(e){this.exit(e),this.data.inTable=void 0}r(Hu,"exitTable");function Nu(e){this.enter({type:"tableRow",children:[]},e)}r(Nu,"enterRow");function Me(e){this.exit(e)}r(Me,"exit");function bt(e){this.enter({type:"tableCell",children:[]},e)}r(bt,"enterCell");function ju(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,qu));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}r(ju,"exitCodeText");function qu(e,n){return n==="|"?n:e}r(qu,"replace");function Ll(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,u=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
14
+ `;break;case-2:a=n?" ":" ";break;case-1:if(!n&&u)continue;a=" ";break;default:a=String.fromCharCode(l)}u=l===-2,i.push(a)}return i.join("")}r(Su,"serializeChunks");function Cu(e){const n={constructs:Dr([hu,...(e||{}).extensions||[]]),content:t($r),defined:[],document:t(Nr),flow:t(uu),lazy:{},string:t(ou),text:t(su)};return n;function t(i){return u;function u(l){return wu(n,i,l)}}}r(Cu,"parse");function vu(e){for(;!Wt(e););return e}r(vu,"postprocess");var gt=/[\0\t\n\r]/g;function Eu(){let e=1,n="",t=!0,i;return u;function u(l,a,o){const s=[];let c,p,f,k,h;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(gt.lastIndex=f,c=gt.exec(l),k=c&&c.index!==void 0?c.index:l.length,h=l.charCodeAt(k),!c){n=l.slice(f);break}if(h===10&&f===k&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),f<k&&(s.push(l.slice(f,k)),e+=k-f),h){case 0:s.push(65533),e++;break;case 9:for(p=Math.ceil(e/4)*4,s.push(-2);e++<p;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:i=!0,e=1}f=k+1}return o&&(i&&s.push(-5),n&&s.push(n),s.push(null)),s}}r(Eu,"preprocess");var Jt={}.hasOwnProperty;function Cl(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Tu(t)(vu(Cu(t).document().write(Eu()(e,n,!0))))}r(Cl,"fromMarkdown");function Tu(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Xe),autolinkProtocol:P,autolinkEmail:P,atxHeading:l(Ge),blockQuote:l(pe),characterEscape:P,characterReference:P,codeFenced:l(We),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(We,a),codeText:l(nn,a),codeTextData:P,data:P,codeFlowValue:P,definition:l(rn),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(un),hardBreakEscape:l(Ke),hardBreakTrailing:l(Ke),htmlFlow:l(Ye,a),htmlFlowData:P,htmlText:l(Ye,a),htmlTextData:P,image:l(ln),label:a,link:l(Xe),listItem:l(an),listItemValue:k,listOrdered:l(Ze,f),listUnordered:l(Ze),paragraph:l(on),reference:g,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(Ge),strong:l(sn),thematicBreak:l(hn)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:fe,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:V,characterReference:be,codeFenced:s(v),codeFencedFence:C,codeFencedFenceInfo:h,codeFencedFenceMeta:w,codeFlowValue:x,codeIndented:s(b),codeText:s(M),codeTextData:x,data:x,definition:s(),definitionDestinationString:R,definitionLabelString:_,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(T),hardBreakTrailing:s(T),htmlFlow:s(O),htmlFlowData:x,htmlText:s(j),htmlTextData:x,image:s(q),label:te,labelText:Z,lineEnding:E,link:s(Q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ae,resourceDestinationString:m,resourceTitleString:le,resource:ne,setextHeading:s($),setextHeadingLineSequence:B,setextHeadingText:y,strong:s(),thematicBreak:s()}};en(n,(e||{}).mdastExtensions||[]);const t={};return i;function i(d){let I={type:"root",children:[]};const A={stack:[I],tokenStack:[],config:n,enter:o,exit:c,buffer:a,resume:p,data:t},H=[];let N=-1;for(;++N<d.length;)(d[N][1].type==="listOrdered"||d[N][1].type==="listUnordered")&&(d[N][0]==="enter"?H.push(N):N=u(d,H.pop(),N));for(N=-1;++N<d.length;){const oe=n[d[N][0]];Jt.call(oe,d[N][1].type)&&oe[d[N][1].type].call(Object.assign({sliceSerialize:d[N][2].sliceSerialize},A),d[N][1])}if(A.tokenStack.length>0){const oe=A.tokenStack[A.tokenStack.length-1];(oe[1]||kt).call(A,void 0,oe[0])}for(I.position={start:se(d.length>0?d[0][1].start:{line:1,column:1,offset:0}),end:se(d.length>0?d[d.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N<n.transforms.length;)I=n.transforms[N](I)||I;return I}function u(d,I,A){let H=I-1,N=-1,oe=!1,me,ie,ye,we;for(;++H<=A;){const G=d[H];switch(G[1].type){case"listUnordered":case"listOrdered":case"blockQuote":G[0]==="enter"?N++:N--,we=void 0;break;case"lineEndingBlank":G[0]==="enter"&&(me&&!we&&!N&&!ye&&(ye=H),we=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:we=void 0}if(!N&&G[0]==="enter"&&G[1].type==="listItemPrefix"||N===-1&&G[0]==="exit"&&(G[1].type==="listUnordered"||G[1].type==="listOrdered")){if(me){let ge=H;for(ie=void 0;ge--;){const ue=d[ge];if(ue[1].type==="lineEnding"||ue[1].type==="lineEndingBlank"){if(ue[0]==="exit")continue;ie&&(d[ie][1].type="lineEndingBlank",oe=!0),ue[1].type="lineEnding",ie=ge}else if(!(ue[1].type==="linePrefix"||ue[1].type==="blockQuotePrefix"||ue[1].type==="blockQuotePrefixWhitespace"||ue[1].type==="blockQuoteMarker"||ue[1].type==="listItemIndent"))break}ye&&(!ie||ye<ie)&&(me._spread=!0),me.end=Object.assign({},ie?d[ie][1].start:G[1].end),d.splice(ie||H,0,["exit",me,G[2]]),H++,A++}if(G[1].type==="listItemPrefix"){const ge={type:"listItem",_spread:!1,start:Object.assign({},G[1].start),end:void 0};me=ge,d.splice(H,0,["enter",ge,G[2]]),H++,A++,ye=void 0,we=!0}}}return d[I][1]._spread=oe,A}function l(d,I){return A;function A(H){o.call(this,d(H),H),I&&I.call(this,H)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(d,I,A){this.stack[this.stack.length-1].children.push(d),this.stack.push(d),this.tokenStack.push([I,A||void 0]),d.position={start:se(I.start),end:void 0}}function s(d){return I;function I(A){d&&d.call(this,A),c.call(this,A)}}function c(d,I){const A=this.stack.pop(),H=this.tokenStack.pop();if(H)H[0].type!==d.type&&(I?I.call(this,d,H[0]):(H[1]||kt).call(this,d,H[0]));else throw new Error("Cannot close `"+d.type+"` ("+Se({start:d.start,end:d.end})+"): it’s not open");A.position.end=se(d.end)}function p(){return Ve(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function k(d){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(d),10),this.data.expectingFirstListItemValue=void 0}}function h(){const d=this.resume(),I=this.stack[this.stack.length-1];I.lang=d}function w(){const d=this.resume(),I=this.stack[this.stack.length-1];I.meta=d}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/(\r?\n|\r)$/g,"")}function _(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase()}function S(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function R(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function F(d){const I=this.stack[this.stack.length-1];I.depth||(I.depth=this.sliceSerialize(d).length)}function y(){this.data.setextHeadingSlurpLineEnding=!0}function B(d){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(d).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function P(d){const I=this.stack[this.stack.length-1].children;let A=I[I.length-1];(!A||A.type!=="text")&&(A=cn(),A.position={start:se(d.start),end:void 0},I.push(A)),this.stack.push(A)}function x(d){const I=this.stack.pop();I.value+=this.sliceSerialize(d),I.position.end=se(d.end)}function E(d){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=I.children[I.children.length-1];A.position.end=se(d.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(P.call(this,d),x.call(this,d))}function T(){this.data.atHardBreak=!0}function O(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function j(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function M(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function Q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function Z(d){const I=this.sliceSerialize(d),A=this.stack[this.stack.length-2];A.label=Br(I),A.identifier=xe(I).toLowerCase()}function te(){const d=this.stack[this.stack.length-1],I=this.resume(),A=this.stack[this.stack.length-1];this.data.inReference=!0,A.type==="link"?A.children=d.children:A.alt=I}function m(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function le(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function ne(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ae(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase(),this.data.referenceType="full"}function he(d){this.data.characterReferenceType=d.type}function V(d){const I=this.sliceSerialize(d),A=this.data.characterReferenceType;let H;A?(H=qt(I,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=Ne(I);const N=this.stack[this.stack.length-1];N.value+=H}function be(d){const I=this.stack.pop();I.position.end=se(d.end)}function re(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(d)}function fe(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(d)}function pe(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function nn(){return{type:"inlineCode",value:""}}function rn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function un(){return{type:"emphasis",children:[]}}function Ge(){return{type:"heading",depth:0,children:[]}}function Ke(){return{type:"break"}}function Ye(){return{type:"html",value:""}}function ln(){return{type:"image",title:null,url:"",alt:null}}function Xe(){return{type:"link",title:null,url:"",children:[]}}function Ze(d){return{type:"list",ordered:d.type==="listOrdered",start:null,spread:d._spread,children:[]}}function an(d){return{type:"listItem",spread:d._spread,checked:null,children:[]}}function on(){return{type:"paragraph",children:[]}}function sn(){return{type:"strong",children:[]}}function cn(){return{type:"text",value:""}}function hn(){return{type:"thematicBreak"}}}r(Tu,"compiler");function se(e){return{line:e.line,column:e.column,offset:e.offset}}r(se,"point");function en(e,n){let t=-1;for(;++t<n.length;){const i=n[t];Array.isArray(i)?en(e,i):zu(e,i)}}r(en,"configure");function zu(e,n){let t;for(t in n)if(Jt.call(n,t))switch(t){case"canContainEols":{const i=n[t];i&&e[t].push(...i);break}case"transforms":{const i=n[t];i&&e[t].push(...i);break}case"enter":case"exit":{const i=n[t];i&&Object.assign(e[t],i);break}}}r(zu,"extension");function kt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Se({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is still open")}r(kt,"defaultOnError");var _u={name:"tasklistCheck",tokenize:Au};function vl(){return{text:{91:_u}}}r(vl,"gfmTaskListItem");function Au(e,n,t){const i=this;return u;function u(s){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return U(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),a):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),a):t(s)}function a(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(s)}function o(s){return z(s)?n(s):L(s)?e.check({tokenize:Lu},n,t)(s):t(s)}}r(Au,"tokenizeTasklistCheck");function Lu(e,n,t){return D(e,i,"whitespace");function i(u){return u===null?t(u):n(u)}}r(Lu,"spaceThenNonSpace");function El(){return{exit:{taskListCheckValueChecked:xt,taskListCheckValueUnchecked:xt,paragraph:Fu}}}r(El,"gfmTaskListItemFromMarkdown");function Tl(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ru}}}r(Tl,"gfmTaskListItemToMarkdown");function xt(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}r(xt,"exitCheck");function Fu(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const i=t.children[0];if(i&&i.type==="text"){const u=n.children;let l=-1,a;for(;++l<u.length;){const o=u[l];if(o.type==="paragraph"){a=o;break}}a===t&&(i.value=i.value.slice(1),i.value.length===0?t.children.shift():t.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}}this.exit(e)}r(Fu,"exitParagraphWithTaskListItem");function Ru(e,n,t,i){const u=e.children[0],l=typeof e.checked=="boolean"&&u&&u.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=t.createTracker(i);l&&o.move(a);let s=jt.listItem(e,n,t,{...i,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(p){return p+a}r(c,"check")}r(Ru,"listItemWithTaskListItem");function Bu(e){return e.length}r(Bu,"defaultStringLength");function Mu(e,n){const t=n||{},i=(t.align||[]).concat(),u=t.stringLength||Bu,l=[],a=[],o=[],s=[];let c=0,p=-1;for(;++p<e.length;){const C=[],v=[];let b=-1;for(e[p].length>c&&(c=e[p].length);++b<e[p].length;){const _=Du(e[p][b]);if(t.alignDelimiters!==!1){const S=u(_);v[b]=S,(s[b]===void 0||S>s[b])&&(s[b]=S)}C.push(_)}a[p]=C,o[p]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<c;)l[f]=dt(i[f]);else{const C=dt(i);for(;++f<c;)l[f]=C}f=-1;const k=[],h=[];for(;++f<c;){const C=l[f];let v="",b="";C===99?(v=":",b=":"):C===108?v=":":C===114&&(b=":");let _=t.alignDelimiters===!1?1:Math.max(1,s[f]-v.length-b.length);const S=v+"-".repeat(_)+b;t.alignDelimiters!==!1&&(_=v.length+_+b.length,_>s[f]&&(s[f]=_),h[f]=_),k[f]=S}a.splice(1,0,k),o.splice(1,0,h),p=-1;const w=[];for(;++p<a.length;){const C=a[p],v=o[p];f=-1;const b=[];for(;++f<c;){const _=C[f]||"";let S="",R="";if(t.alignDelimiters!==!1){const F=s[f]-(v[f]||0),y=l[f];y===114?S=" ".repeat(F):y===99?F%2?(S=" ".repeat(F/2+.5),R=" ".repeat(F/2-.5)):(S=" ".repeat(F/2),R=S):R=" ".repeat(F)}t.delimiterStart!==!1&&!f&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&_==="")&&(t.delimiterStart!==!1||f)&&b.push(" "),t.alignDelimiters!==!1&&b.push(S),b.push(_),t.alignDelimiters!==!1&&b.push(R),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||f!==c-1)&&b.push("|")}w.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return w.join(`
15
+ `)}r(Mu,"markdownTable");function Du(e){return e==null?"":String(e)}r(Du,"serialize");function dt(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}r(dt,"toAlignment");function zl(){return{enter:{table:Pu,tableData:bt,tableHeader:bt,tableRow:$u},exit:{codeText:Hu,table:Ou,tableData:Be,tableHeader:Be,tableRow:Be}}}r(zl,"gfmTableFromMarkdown");function Pu(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}r(Pu,"enterTable");function Ou(e){this.exit(e),this.data.inTable=void 0}r(Ou,"exitTable");function $u(e){this.enter({type:"tableRow",children:[]},e)}r($u,"enterRow");function Be(e){this.exit(e)}r(Be,"exit");function bt(e){this.enter({type:"tableCell",children:[]},e)}r(bt,"enterCell");function Hu(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Nu));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}r(Hu,"exitCodeText");function Nu(e,n){return n==="|"?n:e}r(Nu,"replace");function _l(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,u=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
16
16
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:a,tableCell:s,tableRow:o}};function a(h,w,C,v){return c(p(h,C,v),h.align)}function o(h,w,C,v){const b=c([f(h,C,v)]);return b.slice(0,b.indexOf(`
17
- `))}function s(h,w,C,v){const b=C.enter("tableCell"),_=C.enter("phrasing"),S=C.containerPhrasing(h,{...v,before:l,after:l});return _(),b(),S}function c(h,w){return Pu(h,{align:w,alignDelimiters:i,padding:t,stringLength:u})}function p(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("table");for(;++b<v.length;)_[b]=f(v[b],w,C);return S(),_}function f(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("tableRow");for(;++b<v.length;)_[b]=s(v[b],h,w,C);return S(),_}function k(h,w,C){let v=qt.inlineCode(h,w,C);return C.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}r(Ll,"gfmTableToMarkdown");var Vu=class{static{r(this,"EditMap")}constructor(){this.map=[]}add(e,n,t){Uu(this,e,n,t)}consume(e){if(this.map.sort(function(u,l){return u[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const t=[];for(;n>0;)n-=1,t.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];t.push(e.slice()),e.length=0;let i=t.pop();for(;i;){for(const u of i)e.push(u);i=t.pop()}this.map.length=0}};function Uu(e,n,t,i){let u=0;if(!(t===0&&i.length===0)){for(;u<e.map.length;){if(e.map[u][0]===n){e.map[u][1]+=t,e.map[u][2].push(...i);return}u+=1}e.map.push([n,t,i])}}r(Uu,"addImplementation");function Qu(e,n){let t=!1;const i=[];for(;n<e.length;){const u=e[n];if(t){if(u[0]==="enter")u[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}r(Qu,"gfmTableAlign");function Fl(){return{flow:{null:{name:"table",tokenize:Wu,resolveAll:Gu}}}}r(Fl,"gfmTable");function Wu(e,n,t){const i=this;let u=0,l=0,a;return o;function o(x){let E=i.events.length-1;for(;E>-1;){const j=i.events[E][1].type;if(j==="lineEnding"||j==="linePrefix")E--;else break}const T=E>-1?i.events[E][1].type:null,O=T==="tableHead"||T==="tableRow"?y:s;return O===y&&i.parser.lazy[i.now().line]?t(x):O(x)}function s(x){return e.enter("tableHead"),e.enter("tableRow"),c(x)}function c(x){return x===124||(a=!0,l+=1),p(x)}function p(x){return x===null?t(x):z(x)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):L(x)?D(e,p,"whitespace")(x):(l+=1,a&&(a=!1,u+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),a=!0,p):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||U(x)?(e.exit("data"),p(x)):(e.consume(x),x===92?k:f)}function k(x){return x===92||x===124?(e.consume(x),f):f(x)}function h(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(x):(e.enter("tableDelimiterRow"),a=!1,L(x)?D(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):w(x))}function w(x){return x===45||x===58?v(x):x===124?(a=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),C):F(x)}function C(x){return L(x)?D(e,v,"whitespace")(x):v(x)}function v(x){return x===58?(l+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),b):x===45?(l+=1,b(x)):x===null||z(x)?R(x):F(x)}function b(x){return x===45?(e.enter("tableDelimiterFiller"),_(x)):F(x)}function _(x){return x===45?(e.consume(x),_):x===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(x))}function S(x){return L(x)?D(e,R,"whitespace")(x):R(x)}function R(x){return x===124?w(x):x===null||z(x)?!a||u!==l?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):F(x)}function F(x){return t(x)}function y(x){return e.enter("tableRow"),M(x)}function M(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),M):x===null||z(x)?(e.exit("tableRow"),n(x)):L(x)?D(e,M,"whitespace")(x):(e.enter("data"),$(x))}function $(x){return x===null||x===124||U(x)?(e.exit("data"),M(x)):(e.consume(x),x===92?P:$)}function P(x){return x===92||x===124?(e.consume(x),$):$(x)}}r(Wu,"tokenizeTable");function Gu(e,n){let t=-1,i=!0,u=0,l=[0,0,0,0],a=[0,0,0,0],o=!1,s=0,c,p,f;const k=new Vu;for(;++t<e.length;){const h=e[t],w=h[1];h[0]==="enter"?w.type==="tableHead"?(o=!1,s!==0&&(yt(k,n,s,c,p),p=void 0,s=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",c,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,f=void 0,l=[0,0,0,0],a=[0,t+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",p,n]])),u=w.type==="tableDelimiterRow"?2:p?3:1):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,a[2]===0&&(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f),l=[0,0,0,0]),a[2]=t)):w.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f)),l=a,a=[l[1],t,0,0])):w.type==="tableHead"?(o=!0,s=t):w.type==="tableRow"||w.type==="tableDelimiterRow"?(s=t,l[1]!==0?(a[0]=a[1],f=Ee(k,n,l,u,t,f)):a[1]!==0&&(f=Ee(k,n,a,u,t,f)),u=0):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(a[3]=t)}for(s!==0&&yt(k,n,s,c,p),k.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Qu(n.events,t))}return e}r(Gu,"resolveTable");function Ee(e,n,t,i,u,l){const a=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(l.end=Object.assign({},ke(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=ke(n.events,t[1]);if(l={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const c=ke(n.events,t[2]),p=ke(n.events,t[3]),f={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",f,n]]),i!==2){const k=n.events[t[2]],h=n.events[t[3]];if(k[1].end=Object.assign({},h[1].end),k[1].type="chunkText",k[1].contentType="text",t[3]>t[2]+1){const w=t[2]+1,C=t[3]-t[2]-1;e.add(w,C,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return u!==void 0&&(l.end=Object.assign({},ke(n.events,u)),e.add(u,0,[["exit",l,n]]),l=void 0),l}r(Ee,"flushCell");function yt(e,n,t,i,u){const l=[],a=ke(n.events,t);u&&(u.end=Object.assign({},a),l.push(["exit",u,n])),i.end=Object.assign({},a),l.push(["exit",i,n]),e.add(t+1,0,l)}r(yt,"flushTableEnd");function ke(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}r(ke,"getPoint");var Ku={r:24,g:24,b:27},Xu={r:255,g:255,b:255};function nn(e){const n=/^#?([0-9a-f]{3,6})$/i.exec(e.trim());if(!n)return null;let t=n[1];return t.length===3&&(t=t.split("").map(i=>`${i}${i}`).join("")),t.length!==6?null:{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}}r(nn,"hexToRgb");function Be(e){const n=e/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}r(Be,"relativeLuminanceChannel");function De(e,n,t){return .2126*Be(e)+.7152*Be(n)+.0722*Be(t)}r(De,"relativeLuminance");function wt(e,n){const t=Math.max(e,n),i=Math.min(e,n);return(t+.05)/(i+.05)}r(wt,"contrastRatio");function Yu(){return typeof document>"u"?!0:document.documentElement.classList.contains("dark")}r(Yu,"isDarkMode");function Zu(e,n,t){return{r:Math.round(t*e.r+(1-t)*n.r),g:Math.round(t*e.g+(1-t)*n.g),b:Math.round(t*e.b+(1-t)*n.b)}}r(Zu,"composite");var Ju="#f8fafc",el="#111827",It=Ju,tl=el;function nl(e,n=.22){const t=nn(e);if(!t)return It;const i=Zu(t,Yu()?Ku:Xu,n),u=De(i.r,i.g,i.b),l=De(248,250,252),a=De(17,24,39);return wt(u,l)>=wt(u,a)?It:tl}r(nl,"pickTextColorForPillBg");function Rl(e){if(/^https?:\/\//i.test(e.trim()))return null;const n=Fn(e);if(n)return{kind:"issue",identifier:n.identifier};const t=Ct(e);if(t)return{kind:"agent",agentId:t.agentId,icon:t.icon};const i=Tn(e);if(i)return{kind:"project",projectId:i.projectId,color:i.color};const u=zn(e);if(u)return{kind:"user",userId:u.userId};const l=_n(e);if(l)return{kind:"skill",skillId:l.skillId,slug:l.slug};const a=An(e);return a?{kind:"routine",routineId:a.routineId}:null}r(Rl,"parseMentionChipHref");function rl(e){const n={};if(e.kind==="project"&&e.color){const t=ul(e.color);Object.assign(n,t),n["--paperclip-mention-project-color"]=e.color}if(e.kind==="agent"){const t=gn(e.appearance,e.agentId);n["--paperclip-mention-avatar-image"]=`url("${kn(t,16,2)}")`}return Object.keys(n).length>0?n:void 0}r(rl,"mentionChipInlineStyle");function Ml(e,n){il(e),e.dataset.mentionKind=n.kind,e.setAttribute("contenteditable","false"),e.classList.add("paperclip-mention-chip",`paperclip-mention-chip--${n.kind}`),n.kind==="project"&&e.classList.add("paperclip-project-mention-chip");const t=rl(n);if(t)for(const[i,u]of Object.entries(t))typeof u=="string"&&(i.startsWith("--")?e.style.setProperty(i,u):e.style[i]=u)}r(Ml,"applyMentionChipDecoration");function il(e){delete e.dataset.mentionKind,e.classList.remove("paperclip-mention-chip","paperclip-mention-chip--agent","paperclip-mention-chip--issue","paperclip-mention-chip--project","paperclip-mention-chip--routine","paperclip-mention-chip--user","paperclip-mention-chip--skill","paperclip-project-mention-chip"),e.removeAttribute("contenteditable"),e.style.removeProperty("border-color"),e.style.removeProperty("background-color"),e.style.removeProperty("color"),e.style.removeProperty("--paperclip-mention-project-color"),e.style.removeProperty("--paperclip-mention-icon-mask"),e.style.removeProperty("--paperclip-mention-avatar-image")}r(il,"clearMentionChipDecoration");function ul(e){const n=nn(e);return n?{borderColor:e,backgroundColor:`rgba(${n.r}, ${n.g}, ${n.b}, 0.22)`,color:nl(e)}:{}}r(ul,"projectMentionColors");export{Tt as $,Sl as A,_e as B,qe as C,D,Kn as E,Il as F,z as G,ee as H,yl as I,Dn as J,U as K,dl as L,Se as M,Ne as N,Cl as O,wl as P,gl as Q,bl as R,sr as S,Yn as T,J as U,de as V,Pe as W,K as X,Pn as Y,kl as Z,Or as _,el as a,ml as at,mr as b,Fl as c,zl as d,cl as et,_l as f,xe as g,Le as h,Rl as i,hl as it,X as j,vl as k,Al as l,El as m,il as n,pl as nt,Ju as o,Ct as ot,Tl as p,L as q,rl as r,fl as rt,nl as s,Ml as t,sl as tt,Ll as u,Dr as v,ve as w,hr as x,qt as y,xl as z};
17
+ `))}function s(h,w,C,v){const b=C.enter("tableCell"),_=C.enter("phrasing"),S=C.containerPhrasing(h,{...v,before:l,after:l});return _(),b(),S}function c(h,w){return Mu(h,{align:w,alignDelimiters:i,padding:t,stringLength:u})}function p(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("table");for(;++b<v.length;)_[b]=f(v[b],w,C);return S(),_}function f(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("tableRow");for(;++b<v.length;)_[b]=s(v[b],h,w,C);return S(),_}function k(h,w,C){let v=jt.inlineCode(h,w,C);return C.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}r(_l,"gfmTableToMarkdown");var ju=class{static{r(this,"EditMap")}constructor(){this.map=[]}add(e,n,t){qu(this,e,n,t)}consume(e){if(this.map.sort(function(u,l){return u[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const t=[];for(;n>0;)n-=1,t.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];t.push(e.slice()),e.length=0;let i=t.pop();for(;i;){for(const u of i)e.push(u);i=t.pop()}this.map.length=0}};function qu(e,n,t,i){let u=0;if(!(t===0&&i.length===0)){for(;u<e.map.length;){if(e.map[u][0]===n){e.map[u][1]+=t,e.map[u][2].push(...i);return}u+=1}e.map.push([n,t,i])}}r(qu,"addImplementation");function Vu(e,n){let t=!1;const i=[];for(;n<e.length;){const u=e[n];if(t){if(u[0]==="enter")u[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}r(Vu,"gfmTableAlign");function Al(){return{flow:{null:{name:"table",tokenize:Uu,resolveAll:Qu}}}}r(Al,"gfmTable");function Uu(e,n,t){const i=this;let u=0,l=0,a;return o;function o(x){let E=i.events.length-1;for(;E>-1;){const j=i.events[E][1].type;if(j==="lineEnding"||j==="linePrefix")E--;else break}const T=E>-1?i.events[E][1].type:null,O=T==="tableHead"||T==="tableRow"?y:s;return O===y&&i.parser.lazy[i.now().line]?t(x):O(x)}function s(x){return e.enter("tableHead"),e.enter("tableRow"),c(x)}function c(x){return x===124||(a=!0,l+=1),p(x)}function p(x){return x===null?t(x):z(x)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):L(x)?D(e,p,"whitespace")(x):(l+=1,a&&(a=!1,u+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),a=!0,p):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||U(x)?(e.exit("data"),p(x)):(e.consume(x),x===92?k:f)}function k(x){return x===92||x===124?(e.consume(x),f):f(x)}function h(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(x):(e.enter("tableDelimiterRow"),a=!1,L(x)?D(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):w(x))}function w(x){return x===45||x===58?v(x):x===124?(a=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),C):F(x)}function C(x){return L(x)?D(e,v,"whitespace")(x):v(x)}function v(x){return x===58?(l+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),b):x===45?(l+=1,b(x)):x===null||z(x)?R(x):F(x)}function b(x){return x===45?(e.enter("tableDelimiterFiller"),_(x)):F(x)}function _(x){return x===45?(e.consume(x),_):x===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(x))}function S(x){return L(x)?D(e,R,"whitespace")(x):R(x)}function R(x){return x===124?w(x):x===null||z(x)?!a||u!==l?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):F(x)}function F(x){return t(x)}function y(x){return e.enter("tableRow"),B(x)}function B(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),B):x===null||z(x)?(e.exit("tableRow"),n(x)):L(x)?D(e,B,"whitespace")(x):(e.enter("data"),$(x))}function $(x){return x===null||x===124||U(x)?(e.exit("data"),B(x)):(e.consume(x),x===92?P:$)}function P(x){return x===92||x===124?(e.consume(x),$):$(x)}}r(Uu,"tokenizeTable");function Qu(e,n){let t=-1,i=!0,u=0,l=[0,0,0,0],a=[0,0,0,0],o=!1,s=0,c,p,f;const k=new ju;for(;++t<e.length;){const h=e[t],w=h[1];h[0]==="enter"?w.type==="tableHead"?(o=!1,s!==0&&(yt(k,n,s,c,p),p=void 0,s=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",c,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,f=void 0,l=[0,0,0,0],a=[0,t+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",p,n]])),u=w.type==="tableDelimiterRow"?2:p?3:1):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,a[2]===0&&(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f),l=[0,0,0,0]),a[2]=t)):w.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f)),l=a,a=[l[1],t,0,0])):w.type==="tableHead"?(o=!0,s=t):w.type==="tableRow"||w.type==="tableDelimiterRow"?(s=t,l[1]!==0?(a[0]=a[1],f=Ee(k,n,l,u,t,f)):a[1]!==0&&(f=Ee(k,n,a,u,t,f)),u=0):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(a[3]=t)}for(s!==0&&yt(k,n,s,c,p),k.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Vu(n.events,t))}return e}r(Qu,"resolveTable");function Ee(e,n,t,i,u,l){const a=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(l.end=Object.assign({},ke(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=ke(n.events,t[1]);if(l={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const c=ke(n.events,t[2]),p=ke(n.events,t[3]),f={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",f,n]]),i!==2){const k=n.events[t[2]],h=n.events[t[3]];if(k[1].end=Object.assign({},h[1].end),k[1].type="chunkText",k[1].contentType="text",t[3]>t[2]+1){const w=t[2]+1,C=t[3]-t[2]-1;e.add(w,C,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return u!==void 0&&(l.end=Object.assign({},ke(n.events,u)),e.add(u,0,[["exit",l,n]]),l=void 0),l}r(Ee,"flushCell");function yt(e,n,t,i,u){const l=[],a=ke(n.events,t);u&&(u.end=Object.assign({},a),l.push(["exit",u,n])),i.end=Object.assign({},a),l.push(["exit",i,n]),e.add(t+1,0,l)}r(yt,"flushTableEnd");function ke(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}r(ke,"getPoint");var Wu={r:24,g:24,b:27},Gu={r:255,g:255,b:255};function tn(e){const n=/^#?([0-9a-f]{3,6})$/i.exec(e.trim());if(!n)return null;let t=n[1];return t.length===3&&(t=t.split("").map(i=>`${i}${i}`).join("")),t.length!==6?null:{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}}r(tn,"hexToRgb");function Me(e){const n=e/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}r(Me,"relativeLuminanceChannel");function De(e,n,t){return .2126*Me(e)+.7152*Me(n)+.0722*Me(t)}r(De,"relativeLuminance");function wt(e,n){const t=Math.max(e,n),i=Math.min(e,n);return(t+.05)/(i+.05)}r(wt,"contrastRatio");function Ku(){return typeof document>"u"?!0:document.documentElement.classList.contains("dark")}r(Ku,"isDarkMode");function Yu(e,n,t){return{r:Math.round(t*e.r+(1-t)*n.r),g:Math.round(t*e.g+(1-t)*n.g),b:Math.round(t*e.b+(1-t)*n.b)}}r(Yu,"composite");var Xu="#f8fafc",Zu="#111827",It=Xu,Ju=Zu;function el(e,n=.22){const t=tn(e);if(!t)return It;const i=Yu(t,Ku()?Wu:Gu,n),u=De(i.r,i.g,i.b),l=De(248,250,252),a=De(17,24,39);return wt(u,l)>=wt(u,a)?It:Ju}r(el,"pickTextColorForPillBg");function Ll(e){if(/^https?:\/\//i.test(e.trim()))return null;const n=An(e);if(n)return{kind:"issue",identifier:n.identifier};const t=Ct(e);if(t)return{kind:"agent",agentId:t.agentId,icon:t.icon};const i=vn(e);if(i)return{kind:"project",projectId:i.projectId,color:i.color};const u=En(e);if(u)return{kind:"user",userId:u.userId};const l=Tn(e);if(l)return{kind:"skill",skillId:l.skillId,slug:l.slug};const a=zn(e);return a?{kind:"routine",routineId:a.routineId}:null}r(Ll,"parseMentionChipHref");function tl(e){const n={};if(e.kind==="project"&&e.color){const t=rl(e.color);Object.assign(n,t),n["--paperclip-mention-project-color"]=e.color}if(e.kind==="agent"){const t=mn(e.appearance,e.agentId);n["--paperclip-mention-avatar-image"]=`url("${gn(t,16,2)}")`}return Object.keys(n).length>0?n:void 0}r(tl,"mentionChipInlineStyle");function Fl(e,n){nl(e),e.dataset.mentionKind=n.kind,e.setAttribute("contenteditable","false"),e.classList.add("paperclip-mention-chip",`paperclip-mention-chip--${n.kind}`),n.kind==="project"&&e.classList.add("paperclip-project-mention-chip");const t=tl(n);if(t)for(const[i,u]of Object.entries(t))typeof u=="string"&&(i.startsWith("--")?e.style.setProperty(i,u):e.style[i]=u)}r(Fl,"applyMentionChipDecoration");function nl(e){delete e.dataset.mentionKind,e.classList.remove("paperclip-mention-chip","paperclip-mention-chip--agent","paperclip-mention-chip--issue","paperclip-mention-chip--project","paperclip-mention-chip--routine","paperclip-mention-chip--user","paperclip-mention-chip--skill","paperclip-project-mention-chip"),e.removeAttribute("contenteditable"),e.style.removeProperty("border-color"),e.style.removeProperty("background-color"),e.style.removeProperty("color"),e.style.removeProperty("--paperclip-mention-project-color"),e.style.removeProperty("--paperclip-mention-icon-mask"),e.style.removeProperty("--paperclip-mention-avatar-image")}r(nl,"clearMentionChipDecoration");function rl(e){const n=tn(e);return n?{borderColor:e,backgroundColor:`rgba(${n.r}, ${n.g}, ${n.b}, 0.22)`,color:el(e)}:{}}r(rl,"projectMentionColors");export{sl as $,wl as A,_e as B,qe as C,D,Wn as E,yl as F,z as G,ee as H,dl as I,Bn as J,U as K,kl as L,Se as M,Ne as N,Il as O,bl as P,Tt as Q,xl as R,ar as S,Kn as T,J as U,de as V,Pe as W,K as X,Mn as Y,ml as Z,Dr as _,Zu as a,Ct as at,fr as b,Al as c,El as d,ol as et,Tl as f,xe as g,Le as h,Ll as i,pl as it,Y as j,Sl as k,zl as l,Cl as m,nl as n,hl as nt,Xu as o,vl as p,L as q,tl as r,cl as rt,el as s,Fl as t,fl as tt,_l as u,Br as v,ve as w,sr as x,jt as y,gl as z};
@@ -1 +1 @@
1
- import{n as e}from"./agent-avatar-url-B_lUFC64.js";var a={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};a.node;var o=e(a);export{o as t};
1
+ import{t as e}from"./createLucideIcon-DwVwDVEQ.js";var a={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};a.node;var o=e(a);export{o as t};
@@ -0,0 +1 @@
1
+ import{t as a}from"./createLucideIcon-DwVwDVEQ.js";var e={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};e.node;var t=a(e),r={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};r.node;var i=a(r);export{t as n,i as t};