@ootc/markdown 0.0.9 → 0.2.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.
- package/README.md +96 -4
- package/dist/CodeBlock-BquZ4WRk.cjs +2 -0
- package/dist/CodeBlock-DSwq2gw5.js +74 -0
- package/dist/MarkdownPreview-CMvzqhTd.js +7592 -0
- package/dist/MarkdownPreview-DfDx-wep.cjs +29 -0
- package/dist/code.cjs +1 -1
- package/dist/code.css +1 -0
- package/dist/code.d.ts +3 -1
- package/dist/code.js +3 -2
- package/dist/components/code-block/CodeBlock.d.ts +7 -1
- package/dist/components/markdown/MarkdownPreview.d.ts +8 -2
- package/dist/components/markdown-editor/MarkdownEditor.d.ts +4 -1
- package/dist/css/CodeBlock.css +1 -0
- package/dist/css/MarkdownPreview.css +1 -0
- package/dist/css/editor.css +1 -0
- package/dist/css/plugin-mermaid.css +1 -0
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +3 -0
- package/dist/editor.d.ts +3 -1
- package/dist/editor.js +28 -25
- package/dist/index-BJZhyxD_.cjs +9 -0
- package/dist/index-DWVMYNE4.js +800 -0
- package/dist/index-HmBYTPyZ.js +1179 -0
- package/dist/index-jsnhzgIQ.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -2
- package/dist/jsx-runtime-DXgJBoQh.js +264 -0
- package/dist/jsx-runtime-nZSsnGb7.cjs +6 -0
- package/dist/plugin-highlight.cjs +1 -0
- package/dist/plugin-highlight.js +20 -0
- package/dist/plugin-katex.cjs +1 -0
- package/dist/plugin-katex.js +12 -0
- package/dist/plugin-mermaid.cjs +1 -0
- package/dist/plugin-mermaid.css +1 -0
- package/dist/plugin-mermaid.js +266 -0
- package/dist/plugins/types.d.ts +38 -0
- package/dist/preview.cjs +1 -1
- package/dist/preview.css +2 -0
- package/dist/preview.d.ts +3 -1
- package/dist/preview.js +4 -3
- package/dist/style.css +4 -1
- package/package.json +76 -21
- package/dist/CodeBlock-BYxQBfWO.js +0 -40827
- package/dist/CodeBlock-CJ6j8Wkl.cjs +0 -3934
- package/dist/MarkdownPreview-DcWMewhy.cjs +0 -295
- package/dist/MarkdownPreview-lqJAnu4B.js +0 -20424
- package/dist/_baseUniq-BfVwFITD.js +0 -477
- package/dist/_baseUniq-D-3LoSZp.cjs +0 -1
- package/dist/arc-CyzqoBTV.js +0 -83
- package/dist/arc-DrpGAtaq.cjs +0 -1
- package/dist/architecture-U656AL7Q-C8Bj_Ouy.cjs +0 -1
- package/dist/architecture-U656AL7Q-DTKdLHLe.js +0 -5
- package/dist/architectureDiagram-VXUJARFQ-B8EG6DIA.js +0 -4662
- package/dist/architectureDiagram-VXUJARFQ-DJ1ub7X0.cjs +0 -36
- package/dist/blockDiagram-VD42YOAC-CKNTgeZ8.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-G-1iOwuq.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-BJ1Ka924.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-Bokkq4pO.js +0 -1580
- package/dist/channel-C4noxv-h.js +0 -5
- package/dist/channel-DvIIEA3u.cjs +0 -1
- package/dist/chunk-4BX2VUAB-B5M-5e_l.cjs +0 -1
- package/dist/chunk-4BX2VUAB-ByoAwp1j.js +0 -8
- package/dist/chunk-55IACEB6-BpG-_f0h.cjs +0 -1
- package/dist/chunk-55IACEB6-DRnx6y7F.js +0 -8
- package/dist/chunk-B4BG7PRW-0toVGVN-.js +0 -1375
- package/dist/chunk-B4BG7PRW-evUM3dip.cjs +0 -165
- package/dist/chunk-DI55MBZ5-CyInK_-M.js +0 -1370
- package/dist/chunk-DI55MBZ5-DKs4p2E0.cjs +0 -220
- package/dist/chunk-FMBD7UC4-BwUpmqhP.js +0 -19
- package/dist/chunk-FMBD7UC4-cpOVGF_2.cjs +0 -15
- package/dist/chunk-QN33PNHL-C7XXEbKU.js +0 -19
- package/dist/chunk-QN33PNHL-CEdYSNej.cjs +0 -1
- package/dist/chunk-QZHKN3VN-hppYv0Iu.cjs +0 -1
- package/dist/chunk-QZHKN3VN-qqHBDA_I.js +0 -15
- package/dist/chunk-TZMSLE5B-B9QqMSFM.js +0 -64
- package/dist/chunk-TZMSLE5B-Bklau4qu.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-CYKX_y1c.js +0 -16
- package/dist/classDiagram-2ON5EDUG-TgiEUsUn.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-CYKX_y1c.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-TgiEUsUn.cjs +0 -1
- package/dist/clone-CE64n2kf.js +0 -8
- package/dist/clone-jaW02xOC.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-B_XAF1ZT.js +0 -2609
- package/dist/cose-bilkent-S5V4N54A-DSZx3rxe.cjs +0 -1
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-Biy3Qm3K.js +0 -443
- package/dist/dagre-6UL2VRFP-C8MiPDEQ.cjs +0 -4
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-B1y0Lt7Z.cjs +0 -24
- package/dist/diagram-PSM6KHXK-CIfbagcO.js +0 -531
- package/dist/diagram-QEK2KX5R-BJNTbg0b.cjs +0 -43
- package/dist/diagram-QEK2KX5R-BQz0yqem.js +0 -217
- package/dist/diagram-S2PKOQOG-BGsratMZ.js +0 -142
- package/dist/diagram-S2PKOQOG-BK_tj5Pz.cjs +0 -24
- package/dist/erDiagram-Q2GNP2WA-CJbuwIgY.cjs +0 -60
- package/dist/erDiagram-Q2GNP2WA-CurkAz8N.js +0 -841
- package/dist/flowDiagram-NV44I4VS-DAMyok8X.js +0 -1620
- package/dist/flowDiagram-NV44I4VS-DnmHUmh1.cjs +0 -162
- package/dist/ganttDiagram-JELNMOA3-DxXvW49B.cjs +0 -267
- package/dist/ganttDiagram-JELNMOA3-oVlSmAjl.js +0 -2671
- package/dist/gitGraph-F6HP7TQM-DUSMetNW.js +0 -5
- package/dist/gitGraph-F6HP7TQM-DveZcMpA.cjs +0 -1
- package/dist/gitGraphDiagram-NY62KEGX-CFdtd4Gb.js +0 -699
- package/dist/gitGraphDiagram-NY62KEGX-CspGhCdP.cjs +0 -65
- package/dist/graph-Bza-HyX6.js +0 -381
- package/dist/graph-CE_Z8OkL.cjs +0 -1
- package/dist/info-NVLQJR56-3ayytpiF.js +0 -5
- package/dist/info-NVLQJR56-D-IKjb_E.cjs +0 -1
- package/dist/infoDiagram-WHAUD3N6--LngDYSE.cjs +0 -2
- package/dist/infoDiagram-WHAUD3N6-BtO0qT6g.js +0 -24
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-DCvKw6yJ.cjs +0 -139
- package/dist/journeyDiagram-XKPGCS4Q-Unrh_bjo.js +0 -834
- package/dist/kanban-definition-3W4ZIXB7-CRa6bR24.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-Vpm6gG9R.js +0 -719
- package/dist/layout-BJzrWbaG.cjs +0 -1
- package/dist/layout-D6Pf3Nys.js +0 -1441
- package/dist/linear-C0E_OSxf.js +0 -259
- package/dist/linear-TSwNFrBs.cjs +0 -1
- package/dist/mermaid-parser.core-B9wV8XMP.js +0 -14177
- package/dist/mermaid-parser.core-Ba9EAFlD.cjs +0 -128
- package/dist/mermaid.core-B1lFjYb9.js +0 -15269
- package/dist/mermaid.core-C8vi9eg6.cjs +0 -249
- package/dist/min-BC6TlZcq.cjs +0 -1
- package/dist/min-DT5Wu4V1.js +0 -38
- package/dist/mindmap-definition-VGOIOE7T-COA86V4i.js +0 -784
- package/dist/mindmap-definition-VGOIOE7T-D9oMyZ2M.cjs +0 -68
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/packet-BFZMPI3H-BZI0_bZt.js +0 -5
- package/dist/packet-BFZMPI3H-D4pnK0Ol.cjs +0 -1
- package/dist/pie-7BOR55EZ-DS6huTOL.cjs +0 -1
- package/dist/pie-7BOR55EZ-DgzTX76e.js +0 -5
- package/dist/pieDiagram-ADFJNKIX-CYW3Diea.js +0 -161
- package/dist/pieDiagram-ADFJNKIX-CxPAjreR.cjs +0 -30
- package/dist/quadrantDiagram-AYHSOK5B-BT94kssD.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-ehLphI_D.cjs +0 -7
- package/dist/radar-NHE76QYJ-CKcVnf1I.cjs +0 -1
- package/dist/radar-NHE76QYJ-D8cZitaQ.js +0 -5
- package/dist/requirementDiagram-UZGBJVZJ-B4UYGl6e.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-BDLj6-Do.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-CAWsWdn8.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-DUb360Ep.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-Bb4Tkhf2.cjs +0 -145
- package/dist/sequenceDiagram-WL72ISMW-DsmW0gAI.js +0 -2511
- package/dist/stateDiagram-FKZM4ZOC-Da-8DKdP.js +0 -263
- package/dist/stateDiagram-FKZM4ZOC-jOvG1Jmy.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-GMZ8nH4e.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-mWKIMY-b.cjs +0 -1
- package/dist/timeline-definition-IT6M3QCI-BdnDlTsf.cjs +0 -61
- package/dist/timeline-definition-IT6M3QCI-CvJDgHLW.js +0 -795
- package/dist/treemap-KMMF4GRG-BVy_kMp3.js +0 -5
- package/dist/treemap-KMMF4GRG-BsA9nu7r.cjs +0 -1
- package/dist/xychartDiagram-PRI3JC2R-CYXNZ7B0.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-wG1xpI1S.js +0 -1340
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";const X=require("./jsx-runtime-nZSsnGb7.cjs"),it=require("react"),Hr=require("./CodeBlock-BquZ4WRk.cjs"),oe=require("./index-jsnhzgIQ.cjs");function vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Vr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ur=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wr={};function Xt(e,n){return(Wr.jsx?Ur:Vr).test(e)}const Qr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Se={},lt,Jt;function Gr(){if(Jt)return lt;Jt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,s=`
|
|
2
|
+
`,a="/",f="*",c="",p="comment",h="declaration";function d(C,x){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];x=x||{};var E=1,S=1;function P(_){var A=_.match(n);A&&(E+=A.length);var $=_.lastIndexOf(s);S=~$?_.length-$:S+_.length}function D(){var _={line:E,column:S};return function(A){return A.position=new b(_),M(),A}}function b(_){this.start=_,this.end={line:E,column:S},this.source=x.source}b.prototype.content=C;function N(_){var A=new Error(x.source+":"+E+":"+S+": "+_);if(A.reason=_,A.filename=x.source,A.line=E,A.column=S,A.source=C,!x.silent)throw A}function B(_){var A=_.exec(C);if(A){var $=A[0];return P($),C=C.slice($.length),A}}function M(){B(t)}function k(_){var A;for(_=_||[];A=T();)A!==!1&&_.push(A);return _}function T(){var _=D();if(!(a!=C.charAt(0)||f!=C.charAt(1))){for(var A=2;c!=C.charAt(A)&&(f!=C.charAt(A)||a!=C.charAt(A+1));)++A;if(A+=2,c===C.charAt(A-1))return N("End of comment missing");var $=C.slice(2,A-2);return S+=2,P($),C=C.slice(A),S+=2,_({type:p,comment:$})}}function z(){var _=D(),A=B(r);if(A){if(T(),!B(i))return N("property missing ':'");var $=B(o),V=_({type:h,property:w(A[0].replace(e,c)),value:$?w($[0].replace(e,c)):c});return B(l),V}}function j(){var _=[];k(_);for(var A;A=z();)A!==!1&&(_.push(A),k(_));return _}return M(),j()}function w(C){return C?C.replace(u,c):c}return lt=d,lt}var Kt;function Yr(){if(Kt)return Se;Kt=1;var e=Se&&Se.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Se,"__esModule",{value:!0}),Se.default=t;const n=e(Gr());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),u=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:f}=s;u?i(a,f,s):f&&(o=o||{},o[a]=f)}),o}return Se}var De={},Zt;function Xr(){if(Zt)return De;Zt=1,Object.defineProperty(De,"__esModule",{value:!0}),De.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(a){return!a||t.test(a)||e.test(a)},l=function(a,f){return f.toUpperCase()},u=function(a,f){return"".concat(f,"-")},s=function(a,f){return f===void 0&&(f={}),o(a)?a:(a=a.toLowerCase(),f.reactCompat?a=a.replace(i,u):a=a.replace(r,u),a.replace(n,l))};return De.camelCase=s,De}var Le,en;function Jr(){if(en)return Le;en=1;var e=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Yr()),t=Xr();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(u,s){u&&s&&(l[(0,t.camelCase)(u,o)]=s)}),l}return r.default=r,Le=r,Le}var Kr=Jr();const Zr=vn(Kr),On=Mn("end"),Ft=Mn("start");function Mn(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ei(e){const n=Ft(e),t=On(e);if(n&&t)return{start:n,end:t}}function ve(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tn(e.position):"start"in e||"end"in e?tn(e):"line"in e||"column"in e?wt(e):""}function wt(e){return nn(e&&e.line)+":"+nn(e&&e.column)}function tn(e){return wt(e&&e.start)+"-"+wt(e&&e.end)}function nn(e){return e&&typeof e=="number"?e:1}class Q extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=ve(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Q.prototype.file="";Q.prototype.name="";Q.prototype.reason="";Q.prototype.message="";Q.prototype.stack="";Q.prototype.column=void 0;Q.prototype.line=void 0;Q.prototype.ancestors=void 0;Q.prototype.cause=void 0;Q.prototype.fatal=void 0;Q.prototype.place=void 0;Q.prototype.ruleId=void 0;Q.prototype.source=void 0;const _t={}.hasOwnProperty,ti=new Map,ni=/[A-Z]/g,ri=new Set(["table","tbody","thead","tfoot","tr"]),ii=new Set(["td","th"]),Bn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function li(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=pi(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=hi(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?oe.svg:oe.html,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=jn(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function jn(e,n,t){if(n.type==="element")return oi(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return ui(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return si(e,n,t);if(n.type==="mdxjsEsm")return ai(e,n);if(n.type==="root")return ci(e,n,t);if(n.type==="text")return fi(e,n)}function oi(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=oe.svg,e.schema=i),e.ancestors.push(n);const o=qn(e,n.tagName,!1),l=mi(e,n);let u=Dt(e,n);return ri.has(n.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!oe.whitespace(s):!0})),$n(e,l,o,n),Pt(l,u),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function ui(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Be(e,n.position)}function ai(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Be(e,n.position)}function si(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=oe.svg,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:qn(e,n.name,!0),l=gi(e,n),u=Dt(e,n);return $n(e,l,o,n),Pt(l,u),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function ci(e,n,t){const r={};return Pt(r,Dt(e,n)),e.create(n,e.Fragment,r,t)}function fi(e,n){return n.value}function $n(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Pt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function hi(e,n,t){return r;function r(i,o,l,u){const a=Array.isArray(l.children)?t:n;return u?a(o,l,u):a(o,l)}}function pi(e,n){return t;function t(r,i,o,l){const u=Array.isArray(o.children),s=Ft(r);return n(i,o,l,u,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function mi(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&_t.call(n.properties,i)){const o=di(e,i,n.properties[i]);if(o){const[l,u]=o;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&ii.has(n.tagName)?r=u:t[l]=u}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function gi(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const u=l.properties[0];u.type,Object.assign(t,e.evaluater.evaluateExpression(u.argument))}else Be(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else Be(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function Dt(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:ti;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const a=i.get(s)||0;l=s+"-"+a,i.set(s,a+1)}}const u=jn(e,o,l);u!==void 0&&t.push(u)}return t}function di(e,n,t){const r=oe.find(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?oe.stringify(t):oe.stringify$1(t)),r.property==="style"){let i=typeof t=="object"?t:xi(e,String(t));return e.stylePropertyNameCase==="css"&&(i=ki(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Qr[r.property]||r.property:r.attribute,t]}}function xi(e,n){try{return Zr(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Q("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Bn+"#cannot-parse-style-attribute",i}}function qn(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const u=Xt(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=l}else r=Xt(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return _t.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Be(e)}function Be(e,n){const t=new Q("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Bn+"#cannot-handle-mdx-estrees-without-createevaluater",t}function ki(e){const n={};let t;for(t in e)_t.call(e,t)&&(n[yi(t)]=e[t]);return n}function yi(e){let n=e.replace(ni,bi);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function bi(e){return"-"+e.toLowerCase()}const ot={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},wi={};function Lt(e,n){const t=wi,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Hn(e,r,i)}function Hn(e,n,t){if(Ci(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 rn(e.children,n,t)}return Array.isArray(e)?rn(e,n,t):""}function rn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Hn(e[i],n,t);return r.join("")}function Ci(e){return!!(e&&typeof e=="object")}const ln=document.createElement("i");function Rt(e){const n="&"+e+";";ln.innerHTML=n;const t=ln.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function K(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function Z(e,n){return e.length>0?(K(e,e.length,0,n),e):n}const on={}.hasOwnProperty;function Vn(e){const n={};let t=-1;for(;++t<e.length;)Si(n,e[t]);return n}function Si(e,n){let t;for(t in n){const i=(on.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){on.call(i,l)||(i[l]=[]);const u=o[l];Ei(i[l],Array.isArray(u)?u:u?[u]:[])}}}function Ei(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);K(e,0,0,r)}function Un(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)}function ie(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const G=ge(/[A-Za-z]/),W=ge(/[\dA-Za-z]/),Ii=ge(/[#-'*+\--9=?A-Z^-~]/);function Ye(e){return e!==null&&(e<32||e===127)}const Ct=ge(/\d/),Ai=ge(/[\dA-Fa-f]/),Ti=ge(/[!-/:-@[-`{-~]/);function F(e){return e!==null&&e<-2}function H(e){return e!==null&&(e<0||e===32)}function R(e){return e===-2||e===-1||e===32}const Ze=ge(new RegExp("\\p{P}|\\p{S}","u")),ye=ge(/\s/);function ge(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ze(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&W(e.charCodeAt(t+1))&&W(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(t+1);o<56320&&u>56319&&u<57344?(l=String.fromCharCode(o,u),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function O(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return R(s)?(e.enter(t),u(s)):n(s)}function u(s){return R(s)&&o++<i?(e.consume(s),u):(e.exit(t),n(s))}}const zi={tokenize:Fi};function Fi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),O(e,n,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return F(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),l)}}const _i={tokenize:Pi},un={tokenize:Di};function Pi(e){const n=this,t=[];let r=0,i,o,l;return u;function u(S){if(r<t.length){const P=t[r];return n.containerState=P[1],e.attempt(P[0].continuation,s,a)(S)}return a(S)}function s(S){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&E();const P=n.events.length;let D=P,b;for(;D--;)if(n.events[D][0]==="exit"&&n.events[D][1].type==="chunkFlow"){b=n.events[D][1].end;break}x(r);let N=P;for(;N<n.events.length;)n.events[N][1].end={...b},N++;return K(n.events,D+1,0,n.events.slice(P)),n.events.length=N,a(S)}return u(S)}function a(S){if(r===t.length){if(!i)return p(S);if(i.currentConstruct&&i.currentConstruct.concrete)return d(S);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(un,f,c)(S)}function f(S){return i&&E(),x(r),p(S)}function c(S){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,d(S)}function p(S){return n.containerState={},e.attempt(un,h,d)(S)}function h(S){return r++,t.push([n.currentConstruct,n.containerState]),p(S)}function d(S){if(S===null){i&&E(),x(0),e.consume(S);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(S)}function w(S){if(S===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(S);return}return F(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,u):(e.consume(S),w)}function C(S,P){const D=n.sliceStream(S);if(P&&D.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(D),n.parser.lazy[S.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const N=n.events.length;let B=N,M,k;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){if(M){k=n.events[B][1].end;break}M=!0}for(x(r),b=N;b<n.events.length;)n.events[b][1].end={...k},b++;K(n.events,B+1,0,n.events.slice(N)),n.events.length=b}}function x(S){let P=t.length;for(;P-- >S;){const D=t[P];n.containerState=D[1],D[0].exit.call(n,e)}t.length=S}function E(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Di(e,n,t){return O(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Te(e){if(e===null||H(e)||ye(e))return 1;if(Ze(e))return 2}function et(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const St={name:"attention",resolveAll:Li,tokenize:Ri};function Li(e,n){let t=-1,r,i,o,l,u,s,a,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};an(c,-s),an(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[r][1].end={...l.start},e[t][1].start={...u.end},a=[],e[r][1].end.offset-e[r][1].start.offset&&(a=Z(a,[["enter",e[r][1],n],["exit",e[r][1],n]])),a=Z(a,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),a=Z(a,et(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),a=Z(a,[["exit",o,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,a=Z(a,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,K(e,r-1,t-r+3,a),t=r+a.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Ri(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Te(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),u(s)}function u(s){if(s===o)return e.consume(s),u;const a=e.exit("attentionSequence"),f=Te(s),c=!f||f===2&&i||t.includes(s),p=!i||i===2&&f||t.includes(r);return a._open=!!(o===42?c:c&&(i||!p)),a._close=!!(o===42?p:p&&(f||!c)),n(s)}}function an(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Ni={name:"autolink",tokenize:vi};function vi(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return G(h)?(e.consume(h),l):h===64?t(h):a(h)}function l(h){return h===43||h===45||h===46||W(h)?(r=1,u(h)):a(h)}function u(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||W(h))&&r++<32?(e.consume(h),u):(r=0,a(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||Ye(h)?t(h):(e.consume(h),s)}function a(h){return h===64?(e.consume(h),f):Ii(h)?(e.consume(h),a):t(h)}function f(h){return W(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||W(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return t(h)}}const $e={partial:!0,tokenize:Oi};function Oi(e,n,t){return r;function r(o){return R(o)?O(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||F(o)?n(o):t(o)}}const Wn={continuation:{tokenize:Bi},exit:ji,name:"blockQuote",tokenize:Mi};function Mi(e,n,t){const r=this;return i;function i(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return R(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Bi(e,n,t){const r=this;return i;function i(l){return R(l)?O(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Wn,n,t)(l)}}function ji(e){e.exit("blockQuote")}const Qn={name:"characterEscape",tokenize:$i};function $i(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Ti(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Gn={name:"characterReference",tokenize:qi};function qi(e,n,t){const r=this;let i=0,o,l;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),o=31,l=W,f(c))}function a(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Ai,f):(e.enter("characterReferenceValue"),o=7,l=Ct,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===W&&!Rt(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const sn={partial:!0,tokenize:Vi},cn={concrete:!0,name:"codeFenced",tokenize:Hi};function Hi(e,n,t){const r=this,i={partial:!0,tokenize:D};let o=0,l=0,u;return s;function s(b){return a(b)}function a(b){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,u=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===u?(l++,e.consume(b),f):l<3?t(b):(e.exit("codeFencedFenceSequence"),R(b)?O(e,c,"whitespace")(b):c(b))}function c(b){return b===null||F(b)?(e.exit("codeFencedFence"),r.interrupt?n(b):e.check(sn,w,P)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||F(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):R(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),O(e,h,"whitespace")(b)):b===96&&b===u?t(b):(e.consume(b),p)}function h(b){return b===null||F(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||F(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===u?t(b):(e.consume(b),d)}function w(b){return e.attempt(i,P,C)(b)}function C(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),x}function x(b){return o>0&&R(b)?O(e,E,"linePrefix",o+1)(b):E(b)}function E(b){return b===null||F(b)?e.check(sn,w,P)(b):(e.enter("codeFlowValue"),S(b))}function S(b){return b===null||F(b)?(e.exit("codeFlowValue"),E(b)):(e.consume(b),S)}function P(b){return e.exit("codeFenced"),n(b)}function D(b,N,B){let M=0;return k;function k(A){return b.enter("lineEnding"),b.consume(A),b.exit("lineEnding"),T}function T(A){return b.enter("codeFencedFence"),R(A)?O(b,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):z(A)}function z(A){return A===u?(b.enter("codeFencedFenceSequence"),j(A)):B(A)}function j(A){return A===u?(M++,b.consume(A),j):M>=l?(b.exit("codeFencedFenceSequence"),R(A)?O(b,_,"whitespace")(A):_(A)):B(A)}function _(A){return A===null||F(A)?(b.exit("codeFencedFence"),N(A)):B(A)}}}function Vi(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const ut={name:"codeIndented",tokenize:Wi},Ui={partial:!0,tokenize:Qi};function Wi(e,n,t){const r=this;return i;function i(a){return e.enter("codeIndented"),O(e,o,"linePrefix",5)(a)}function o(a){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(a):t(a)}function l(a){return a===null?s(a):F(a)?e.attempt(Ui,l,s)(a):(e.enter("codeFlowValue"),u(a))}function u(a){return a===null||F(a)?(e.exit("codeFlowValue"),l(a)):(e.consume(a),u)}function s(a){return e.exit("codeIndented"),n(a)}}function Qi(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):F(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):O(e,o,"linePrefix",5)(l)}function o(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(l):F(l)?i(l):t(l)}}const Gi={name:"codeText",previous:Xi,resolve:Yi,tokenize:Ji};function Yi(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Xi(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ji(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),r++,u):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):F(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),a(c))}function a(c){return c===null||c===32||c===96||F(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),a)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",a(c))}}class Ki{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Re(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Re(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Re(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Re(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Re(this.left,t.reverse())}}}function Re(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}function Yn(e){const n={};let t=-1,r,i,o,l,u,s,a;const f=new Ki(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Zi(f,t)),t=n[t],a=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},u=f.slice(i,t),u.unshift(r),f.splice(i,t-i+1,u))}}return K(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!a}function Zi(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,s=[],a={};let f,c,p=-1,h=t,d=0,w=0;const C=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(w=p+1,C.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const x=u.slice(C[p],C[p+1]),E=o.pop();s.push([E,E+x.length-1]),e.splice(E,2,x)}for(s.reverse(),p=-1;++p<s.length;)a[d+s[p][0]]=d+s[p][1],d+=s[p][1]-s[p][0]-1;return a}const el={resolve:nl,tokenize:rl},tl={partial:!0,tokenize:il};function nl(e){return Yn(e),e}function rl(e,n){let t;return r;function r(u){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):F(u)?e.check(tl,l,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function l(u){return e.consume(u),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function il(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),O(e,o,"linePrefix")}function o(l){if(l===null||F(l))return t(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Xn(e,n,t,r,i,o,l,u,s){const a=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||Ye(x)?t(x):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),w(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(u),p(x)):x===null||x===60||F(x)?t(x):(e.consume(x),x===92?d:h)}function d(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function w(x){return!f&&(x===null||x===41||H(x))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(x)):f<a&&x===40?(e.consume(x),f++,w):x===41?(e.consume(x),f--,w):x===null||x===32||x===40||Ye(x)?t(x):(e.consume(x),x===92?C:w)}function C(x){return x===40||x===41||x===92?(e.consume(x),w):w(x)}}function Jn(e,n,t,r,i,o){const l=this;let u=0,s;return a;function a(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return u>999||h===null||h===91||h===93&&!s||h===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):F(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||F(h)||u++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!R(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),u++,c):c(h)}}function Kn(e,n,t,r,i,o){let l;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,s):t(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),a(p))}function a(p){return p===l?(e.exit(o),s(l)):p===null?t(p):F(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),O(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||F(p)?(e.exit("chunkString"),a(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Oe(e,n){let t;return r;function r(i){return F(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):R(i)?O(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ll={name:"definition",tokenize:ul},ol={partial:!0,tokenize:al};function ul(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Jn.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function u(h){return i=ie(r.sliceSerialize(r.events[r.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 H(h)?Oe(e,a)(h):a(h)}function a(h){return Xn(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(ol,c,c)(h)}function c(h){return R(h)?O(e,p,"whitespace")(h):p(h)}function p(h){return h===null||F(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function al(e,n,t){return r;function r(u){return H(u)?Oe(e,i)(u):t(u)}function i(u){return Kn(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return R(u)?O(e,l,"whitespace")(u):l(u)}function l(u){return u===null||F(u)?n(u):t(u)}}const sl={name:"hardBreakEscape",tokenize:cl};function cl(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return F(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const fl={name:"headingAtx",resolve:hl,tokenize:pl};function hl(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},K(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function pl(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||H(f)?(e.exit("atxHeadingSequence"),u(f)):t(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||F(f)?(e.exit("atxHeading"),n(f)):R(f)?O(e,u,"whitespace")(f):(e.enter("atxHeadingText"),a(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),u(f))}function a(f){return f===null||f===35||H(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),a)}}const ml=["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"],fn=["pre","script","style","textarea"],gl={concrete:!0,name:"htmlFlow",resolveTo:kl,tokenize:yl},dl={partial:!0,tokenize:wl},xl={partial:!0,tokenize:bl};function kl(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}function yl(e,n,t){const r=this;let i,o,l,u,s;return a;function a(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,w):g===63?(e.consume(g),i=3,r.interrupt?n:m):G(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,u=0,d):G(g)?(e.consume(g),i=4,r.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),r.interrupt?n:m):t(g)}function d(g){const ne="CDATA[";return g===ne.charCodeAt(u++)?(e.consume(g),u===ne.length?r.interrupt?n:z:d):t(g)}function w(g){return G(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function C(g){if(g===null||g===47||g===62||H(g)){const ne=g===47,de=l.toLowerCase();return!ne&&!o&&fn.includes(de)?(i=1,r.interrupt?n(g):z(g)):ml.includes(l.toLowerCase())?(i=6,ne?(e.consume(g),x):r.interrupt?n(g):z(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):o?E(g):S(g))}return g===45||W(g)?(e.consume(g),l+=String.fromCharCode(g),C):t(g)}function x(g){return g===62?(e.consume(g),r.interrupt?n:z):t(g)}function E(g){return R(g)?(e.consume(g),E):k(g)}function S(g){return g===47?(e.consume(g),k):g===58||g===95||G(g)?(e.consume(g),P):R(g)?(e.consume(g),S):k(g)}function P(g){return g===45||g===46||g===58||g===95||W(g)?(e.consume(g),P):D(g)}function D(g){return g===61?(e.consume(g),b):R(g)?(e.consume(g),D):S(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),s=g,N):R(g)?(e.consume(g),b):B(g)}function N(g){return g===s?(e.consume(g),s=null,M):g===null||F(g)?t(g):(e.consume(g),N)}function B(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||H(g)?D(g):(e.consume(g),B)}function M(g){return g===47||g===62||R(g)?S(g):t(g)}function k(g){return g===62?(e.consume(g),T):t(g)}function T(g){return g===null||F(g)?z(g):R(g)?(e.consume(g),T):t(g)}function z(g){return g===45&&i===2?(e.consume(g),$):g===60&&i===1?(e.consume(g),V):g===62&&i===4?(e.consume(g),te):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),ae):F(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(dl,se,j)(g)):g===null||F(g)?(e.exit("htmlFlowData"),j(g)):(e.consume(g),z)}function j(g){return e.check(xl,_,se)(g)}function _(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),A}function A(g){return g===null||F(g)?j(g):(e.enter("htmlFlowData"),z(g))}function $(g){return g===45?(e.consume(g),m):z(g)}function V(g){return g===47?(e.consume(g),l="",ee):z(g)}function ee(g){if(g===62){const ne=l.toLowerCase();return fn.includes(ne)?(e.consume(g),te):z(g)}return G(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),ee):z(g)}function ae(g){return g===93?(e.consume(g),m):z(g)}function m(g){return g===62?(e.consume(g),te):g===45&&i===2?(e.consume(g),m):z(g)}function te(g){return g===null||F(g)?(e.exit("htmlFlowData"),se(g)):(e.consume(g),te)}function se(g){return e.exit("htmlFlow"),n(g)}}function bl(e,n,t){const r=this;return i;function i(l){return F(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function wl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt($e,n,t)}}const Cl={name:"htmlText",tokenize:Sl};function Sl(e,n,t){const r=this;let i,o,l;return u;function u(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),a):m===47?(e.consume(m),D):m===63?(e.consume(m),S):G(m)?(e.consume(m),B):t(m)}function a(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):G(m)?(e.consume(m),E):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):F(m)?(l=c,V(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?$(m):m===45?p(m):c(m)}function d(m){const te="CDATA[";return m===te.charCodeAt(o++)?(e.consume(m),o===te.length?w:d):t(m)}function w(m){return m===null?t(m):m===93?(e.consume(m),C):F(m)?(l=w,V(m)):(e.consume(m),w)}function C(m){return m===93?(e.consume(m),x):w(m)}function x(m){return m===62?$(m):m===93?(e.consume(m),x):w(m)}function E(m){return m===null||m===62?$(m):F(m)?(l=E,V(m)):(e.consume(m),E)}function S(m){return m===null?t(m):m===63?(e.consume(m),P):F(m)?(l=S,V(m)):(e.consume(m),S)}function P(m){return m===62?$(m):S(m)}function D(m){return G(m)?(e.consume(m),b):t(m)}function b(m){return m===45||W(m)?(e.consume(m),b):N(m)}function N(m){return F(m)?(l=N,V(m)):R(m)?(e.consume(m),N):$(m)}function B(m){return m===45||W(m)?(e.consume(m),B):m===47||m===62||H(m)?M(m):t(m)}function M(m){return m===47?(e.consume(m),$):m===58||m===95||G(m)?(e.consume(m),k):F(m)?(l=M,V(m)):R(m)?(e.consume(m),M):$(m)}function k(m){return m===45||m===46||m===58||m===95||W(m)?(e.consume(m),k):T(m)}function T(m){return m===61?(e.consume(m),z):F(m)?(l=T,V(m)):R(m)?(e.consume(m),T):M(m)}function z(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,j):F(m)?(l=z,V(m)):R(m)?(e.consume(m),z):(e.consume(m),_)}function j(m){return m===i?(e.consume(m),i=void 0,A):m===null?t(m):F(m)?(l=j,V(m)):(e.consume(m),j)}function _(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||H(m)?M(m):(e.consume(m),_)}function A(m){return m===47||m===62||H(m)?M(m):t(m)}function $(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function V(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ee}function ee(m){return R(m)?O(e,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ae(m)}function ae(m){return e.enter("htmlTextData"),l(m)}}const Nt={name:"labelEnd",resolveAll:Tl,resolveTo:zl,tokenize:Fl},El={tokenize:_l},Il={tokenize:Pl},Al={tokenize:Dl};function Tl(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&K(e,0,e.length,t),e}function zl(e,n){let t=e.length,r=0,i,o,l,u;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",s,n],["enter",a,n]],u=Z(u,e.slice(o+1,o+r+3)),u=Z(u,[["enter",f,n]]),u=Z(u,et(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),u=Z(u,[["exit",f,n],e[l-2],e[l-1],["exit",a,n]]),u=Z(u,e.slice(l+1)),u=Z(u,[["exit",s,n]]),K(e,o,e.length,u),e}function Fl(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return u;function u(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(ie(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):t(p)}function s(p){return p===40?e.attempt(El,f,l?f:c)(p):p===91?e.attempt(Il,f,l?a:c)(p):l?f(p):c(p)}function a(p){return e.attempt(Al,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function _l(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return H(c)?Oe(e,o)(c):o(c)}function o(c){return c===41?f(c):Xn(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return H(c)?Oe(e,s)(c):f(c)}function u(c){return t(c)}function s(c){return c===34||c===39||c===40?Kn(e,a,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function a(c){return H(c)?Oe(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Pl(e,n,t){const r=this;return i;function i(u){return Jn.call(r,e,o,l,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(u):t(u)}function l(u){return t(u)}}function Dl(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const Ll={name:"labelStartImage",resolveAll:Nt.resolveAll,tokenize:Rl};function Rl(e,n,t){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):t(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(u):n(u)}}const Nl={name:"labelStartLink",resolveAll:Nt.resolveAll,tokenize:vl};function vl(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const at={name:"lineEnding",tokenize:Ol};function Ol(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),O(e,n,"linePrefix")}}const Ge={name:"thematicBreak",tokenize:Ml};function Ml(e,n,t){let r=0,i;return o;function o(a){return e.enter("thematicBreak"),l(a)}function l(a){return i=a,u(a)}function u(a){return a===i?(e.enter("thematicBreakSequence"),s(a)):r>=3&&(a===null||F(a))?(e.exit("thematicBreak"),n(a)):t(a)}function s(a){return a===i?(e.consume(a),r++,s):(e.exit("thematicBreakSequence"),R(a)?O(e,u,"whitespace")(a):u(a))}}const Y={continuation:{tokenize:ql},exit:Vl,name:"list",tokenize:$l},Bl={partial:!0,tokenize:Ul},jl={partial:!0,tokenize:Hl};function $l(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return u;function u(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Ct(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Ge,t,a)(h):a(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return Ct(h)&&++l<10?(e.consume(h),s):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),a(h)):t(h)}function a(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check($e,r.interrupt?t:f,e.attempt(Bl,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return R(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function ql(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check($e,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,O(e,n,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!R(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jl,n,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,O(e,e.attempt(Y,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Hl(e,n,t){const r=this;return O(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function Vl(e){e.exit(this.containerState.type)}function Ul(e,n,t){const r=this;return O(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!R(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const hn={name:"setextUnderline",resolveTo:Wl,tokenize:Ql};function Wl(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function Ql(e,n,t){const r=this;let i;return o;function o(a){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=a,l(a)):t(a)}function l(a){return e.enter("setextHeadingLineSequence"),u(a)}function u(a){return a===i?(e.consume(a),u):(e.exit("setextHeadingLineSequence"),R(a)?O(e,s,"lineSuffix")(a):s(a))}function s(a){return a===null||F(a)?(e.exit("setextHeadingLine"),n(a)):t(a)}}const Gl={tokenize:Yl};function Yl(e){const n=this,t=e.attempt($e,r,e.attempt(this.parser.constructs.flowInitial,i,O(e,e.attempt(this.parser.constructs.flow,i,e.attempt(el,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Xl={resolveAll:er()},Jl=Zn("string"),Kl=Zn("text");function Zn(e){return{resolveAll:er(e==="text"?Zl:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,u);return l;function l(f){return a(f)?o(f):u(f)}function u(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return a(f)?(t.exit("data"),o(f)):(t.consume(f),s)}function a(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function er(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Zl(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 r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,u=0,s;for(;o--;){const a=i[o];if(typeof a=="string"){for(l=a.length;a.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(a===-2)s=!0,u++;else if(a!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(u=0),u){const a={type:t===e.length||s||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(t,0,["enter",a,n],["exit",a,n]),t+=2)}t++}return e}const eo={42:Y,43:Y,45:Y,48:Y,49:Y,50:Y,51:Y,52:Y,53:Y,54:Y,55:Y,56:Y,57:Y,62:Wn},to={91:ll},no={[-2]:ut,[-1]:ut,32:ut},ro={35:fl,42:Ge,45:[hn,Ge],60:gl,61:hn,95:Ge,96:cn,126:cn},io={38:Gn,92:Qn},lo={[-5]:at,[-4]:at,[-3]:at,33:Ll,38:Gn,42:St,60:[Ni,Cl],91:Nl,92:[sl,Qn],93:Nt,95:St,96:Gi},oo={null:[St,Xl]},uo={null:[42,95]},ao={null:[]},so=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:uo,contentInitial:to,disable:ao,document:eo,flow:ro,flowInitial:no,insideSpan:oo,string:io,text:lo},Symbol.toStringTag,{value:"Module"}));function co(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],u=[];const s={attempt:N(D),check:N(b),consume:E,enter:S,exit:P,interrupt:N(b,{interrupt:!0})},a={code:null,containerState:{},defineSkip:w,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(a,s);return n.resolveAll&&o.push(n),a;function c(T){return l=Z(l,T),C(),l[l.length-1]!==null?[]:(B(n,0),a.events=et(o,a.events,a),a.events)}function p(T,z){return ho(h(T),z)}function h(T){return fo(l,T)}function d(){const{_bufferIndex:T,_index:z,line:j,column:_,offset:A}=r;return{_bufferIndex:T,_index:z,line:j,column:_,offset:A}}function w(T){i[T.line]=T.column,k()}function C(){let T;for(;r._index<l.length;){const z=l[r._index];if(typeof z=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<z.length;)x(z.charCodeAt(r._bufferIndex));else x(z)}}function x(T){f=f(T)}function E(T){F(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,k()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),a.previous=T}function S(T,z){const j=z||{};return j.type=T,j.start=d(),a.events.push(["enter",j,a]),u.push(j),j}function P(T){const z=u.pop();return z.end=d(),a.events.push(["exit",z,a]),z}function D(T,z){B(T,z.from)}function b(T,z){z.restore()}function N(T,z){return j;function j(_,A,$){let V,ee,ae,m;return Array.isArray(_)?se(_):"tokenize"in _?se([_]):te(_);function te(U){return Fe;function Fe(pe){const be=pe!==null&&U[pe],we=pe!==null&&U.null,He=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(we)?we:we?[we]:[]];return se(He)(pe)}}function se(U){return V=U,ee=0,U.length===0?$:g(U[ee])}function g(U){return Fe;function Fe(pe){return m=M(),ae=U,U.partial||(a.currentConstruct=U),U.name&&a.parser.constructs.disable.null.includes(U.name)?de():U.tokenize.call(z?Object.assign(Object.create(a),z):a,s,ne,de)(pe)}}function ne(U){return T(ae,m),A}function de(U){return m.restore(),++ee<V.length?g(V[ee]):$}}}function B(T,z){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&K(a.events,z,a.events.length-z,T.resolve(a.events.slice(z),a)),T.resolveTo&&(a.events=T.resolveTo(a.events,a))}function M(){const T=d(),z=a.previous,j=a.currentConstruct,_=a.events.length,A=Array.from(u);return{from:_,restore:$};function $(){r=T,a.previous=z,a.currentConstruct=j,a.events.length=_,u=A,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function fo(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function ho(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
3
|
+
`;break}case-3:{l=`\r
|
|
4
|
+
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function po(e){const r={constructs:Vn([so,...(e||{}).extensions||[]]),content:i(zi),defined:[],document:i(_i),flow:i(Gl),lazy:{},string:i(Jl),text:i(Kl)};return r;function i(o){return l;function l(u){return co(r,o,u)}}}function mo(e){for(;!Yn(e););return e}const pn=/[\0\t\n\r]/g;function go(){let e=1,n="",t=!0,r;return i;function i(o,l,u){const s=[];let a,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(pn.lastIndex=c,a=pn.exec(o),p=a&&a.index!==void 0?a.index:o.length,h=o.charCodeAt(p),!a){n=o.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(o.slice(c,p)),e+=p-c),h){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return u&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const xo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ko(e){return e.replace(xo,yo)}function yo(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Un(t.slice(o?2:1),o?16:10)}return Rt(t)||e}const tr={}.hasOwnProperty;function bo(e,n,t){return typeof n!="string"&&(t=n,n=void 0),wo(t)(mo(po(t).document().write(go()(e,n,!0))))}function wo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Gt),autolinkProtocol:M,autolinkEmail:M,atxHeading:o(Ut),blockQuote:o(we),characterEscape:M,characterReference:M,codeFenced:o(He),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(He,l),codeText:o(Rr,l),codeTextData:M,data:M,codeFlowValue:M,definition:o(Nr),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(vr),hardBreakEscape:o(Wt),hardBreakTrailing:o(Wt),htmlFlow:o(Qt,l),htmlFlowData:M,htmlText:o(Qt,l),htmlTextData:M,image:o(Or),label:l,link:o(Gt),listItem:o(Mr),listItemValue:p,listOrdered:o(Yt,c),listUnordered:o(Yt),paragraph:o(Br),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(Ut),strong:o(jr),thematicBreak:o(qr)},exit:{atxHeading:s(),atxHeadingSequence:D,autolink:s(),autolinkEmail:be,autolinkProtocol:pe,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:U,characterReference:Fe,codeFenced:s(C),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:k,codeIndented:s(x),codeText:s(A),codeTextData:k,data:k,definition:s(),definitionDestinationString:P,definitionLabelString:E,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(z),hardBreakTrailing:s(z),htmlFlow:s(j),htmlFlowData:k,htmlText:s(_),htmlTextData:k,image:s(V),label:ae,labelText:ee,lineEnding:T,link:s($),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ne,resourceDestinationString:m,resourceTitleString:te,resource:se,setextHeading:s(B),setextHeadingLineSequence:N,setextHeadingText:b,strong:s(),thematicBreak:s()}};nr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(y){let I={type:"root",children:[]};const L={stack:[I],tokenStack:[],config:n,enter:u,exit:a,buffer:l,resume:f,data:t},v=[];let q=-1;for(;++q<y.length;)if(y[q][1].type==="listOrdered"||y[q][1].type==="listUnordered")if(y[q][0]==="enter")v.push(q);else{const re=v.pop();q=i(y,re,q)}for(q=-1;++q<y.length;){const re=n[y[q][0]];tr.call(re,y[q][1].type)&&re[y[q][1].type].call(Object.assign({sliceSerialize:y[q][2].sliceSerialize},L),y[q][1])}if(L.tokenStack.length>0){const re=L.tokenStack[L.tokenStack.length-1];(re[1]||mn).call(L,void 0,re[0])}for(I.position={start:me(y.length>0?y[0][1].start:{line:1,column:1,offset:0}),end:me(y.length>0?y[y.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q<n.transforms.length;)I=n.transforms[q](I)||I;return I}function i(y,I,L){let v=I-1,q=-1,re=!1,xe,ce,_e,Pe;for(;++v<=L;){const J=y[v];switch(J[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{J[0]==="enter"?q++:q--,Pe=void 0;break}case"lineEndingBlank":{J[0]==="enter"&&(xe&&!Pe&&!q&&!_e&&(_e=v),Pe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pe=void 0}if(!q&&J[0]==="enter"&&J[1].type==="listItemPrefix"||q===-1&&J[0]==="exit"&&(J[1].type==="listUnordered"||J[1].type==="listOrdered")){if(xe){let Ce=v;for(ce=void 0;Ce--;){const fe=y[Ce];if(fe[1].type==="lineEnding"||fe[1].type==="lineEndingBlank"){if(fe[0]==="exit")continue;ce&&(y[ce][1].type="lineEndingBlank",re=!0),fe[1].type="lineEnding",ce=Ce}else if(!(fe[1].type==="linePrefix"||fe[1].type==="blockQuotePrefix"||fe[1].type==="blockQuotePrefixWhitespace"||fe[1].type==="blockQuoteMarker"||fe[1].type==="listItemIndent"))break}_e&&(!ce||_e<ce)&&(xe._spread=!0),xe.end=Object.assign({},ce?y[ce][1].start:J[1].end),y.splice(ce||v,0,["exit",xe,J[2]]),v++,L++}if(J[1].type==="listItemPrefix"){const Ce={type:"listItem",_spread:!1,start:Object.assign({},J[1].start),end:void 0};xe=Ce,y.splice(v,0,["enter",Ce,J[2]]),v++,L++,_e=void 0,Pe=!0}}}return y[I][1]._spread=re,L}function o(y,I){return L;function L(v){u.call(this,y(v),v),I&&I.call(this,v)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(y,I,L){this.stack[this.stack.length-1].children.push(y),this.stack.push(y),this.tokenStack.push([I,L||void 0]),y.position={start:me(I.start),end:void 0}}function s(y){return I;function I(L){y&&y.call(this,L),a.call(this,L)}}function a(y,I){const L=this.stack.pop(),v=this.tokenStack.pop();if(v)v[0].type!==y.type&&(I?I.call(this,y,v[0]):(v[1]||mn).call(this,y,v[0]));else throw new Error("Cannot close `"+y.type+"` ("+ve({start:y.start,end:y.end})+"): it’s not open");L.position.end=me(y.end)}function f(){return Lt(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(y){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(y),10),this.data.expectingFirstListItemValue=void 0}}function h(){const y=this.resume(),I=this.stack[this.stack.length-1];I.lang=y}function d(){const y=this.resume(),I=this.stack[this.stack.length-1];I.meta=y}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y.replace(/(\r?\n|\r)$/g,"")}function E(y){const I=this.resume(),L=this.stack[this.stack.length-1];L.label=I,L.identifier=ie(this.sliceSerialize(y)).toLowerCase()}function S(){const y=this.resume(),I=this.stack[this.stack.length-1];I.title=y}function P(){const y=this.resume(),I=this.stack[this.stack.length-1];I.url=y}function D(y){const I=this.stack[this.stack.length-1];if(!I.depth){const L=this.sliceSerialize(y).length;I.depth=L}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function N(y){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(y).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function M(y){const L=this.stack[this.stack.length-1].children;let v=L[L.length-1];(!v||v.type!=="text")&&(v=$r(),v.position={start:me(y.start),end:void 0},L.push(v)),this.stack.push(v)}function k(y){const I=this.stack.pop();I.value+=this.sliceSerialize(y),I.position.end=me(y.end)}function T(y){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=I.children[I.children.length-1];L.position.end=me(y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(M.call(this,y),k.call(this,y))}function z(){this.data.atHardBreak=!0}function j(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y}function _(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y}function A(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y}function $(){const y=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";y.type+="Reference",y.referenceType=I,delete y.url,delete y.title}else delete y.identifier,delete y.label;this.data.referenceType=void 0}function V(){const y=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";y.type+="Reference",y.referenceType=I,delete y.url,delete y.title}else delete y.identifier,delete y.label;this.data.referenceType=void 0}function ee(y){const I=this.sliceSerialize(y),L=this.stack[this.stack.length-2];L.label=ko(I),L.identifier=ie(I).toLowerCase()}function ae(){const y=this.stack[this.stack.length-1],I=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const v=y.children;L.children=v}else L.alt=I}function m(){const y=this.resume(),I=this.stack[this.stack.length-1];I.url=y}function te(){const y=this.resume(),I=this.stack[this.stack.length-1];I.title=y}function se(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ne(y){const I=this.resume(),L=this.stack[this.stack.length-1];L.label=I,L.identifier=ie(this.sliceSerialize(y)).toLowerCase(),this.data.referenceType="full"}function de(y){this.data.characterReferenceType=y.type}function U(y){const I=this.sliceSerialize(y),L=this.data.characterReferenceType;let v;L?(v=Un(I,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):v=Rt(I);const q=this.stack[this.stack.length-1];q.value+=v}function Fe(y){const I=this.stack.pop();I.position.end=me(y.end)}function pe(y){k.call(this,y);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(y)}function be(y){k.call(this,y);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(y)}function we(){return{type:"blockquote",children:[]}}function He(){return{type:"code",lang:null,meta:null,value:""}}function Rr(){return{type:"inlineCode",value:""}}function Nr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function vr(){return{type:"emphasis",children:[]}}function Ut(){return{type:"heading",depth:0,children:[]}}function Wt(){return{type:"break"}}function Qt(){return{type:"html",value:""}}function Or(){return{type:"image",title:null,url:"",alt:null}}function Gt(){return{type:"link",title:null,url:"",children:[]}}function Yt(y){return{type:"list",ordered:y.type==="listOrdered",start:null,spread:y._spread,children:[]}}function Mr(y){return{type:"listItem",spread:y._spread,checked:null,children:[]}}function Br(){return{type:"paragraph",children:[]}}function jr(){return{type:"strong",children:[]}}function $r(){return{type:"text",value:""}}function qr(){return{type:"thematicBreak"}}}function me(e){return{line:e.line,column:e.column,offset:e.offset}}function nr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?nr(e,r):Co(e,r)}}function Co(e,n){let t;for(t in n)if(tr.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function mn(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ve({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ve({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ve({start:n.start,end:n.end})+") is still open")}function So(e){const n=this;n.parser=t;function t(r){return bo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Eo(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Io(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
5
|
+
`}]}function Ao(e,n){const t=n.value?n.value+`
|
|
6
|
+
`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function To(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function zo(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Fo(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ze(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,u+=1,e.footnoteCounts.set(r,u);const s={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,s);const a={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,a),e.applyData(n,a)}function _o(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Po(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function rr(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Do(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return rr(e,n);const i={src:ze(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function Lo(e,n){const t={src:ze(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Ro(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function No(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return rr(e,n);const i={href:ze(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function vo(e,n){const t={href:ze(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Oo(e,n,t){const r=e.all(n),i=t?Mo(t):ir(n),o={},l=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
|
7
|
+
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
|
|
8
|
+
`});const a={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,a),e.applyData(n,a)}function Mo(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=ir(t[r])}return n}function ir(e){const n=e.spread;return n??e.children.length>1}function Bo(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function jo(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function $o(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function qo(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ho(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},u=Ft(n.children[1]),s=On(n.children[n.children.length-1]);u&&s&&(l.position={start:u,end:s}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function Vo(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,u=l?l.length:n.children.length;let s=-1;const a=[];for(;++s<u;){const c=n.children[s],p={},h=l?l[s]:void 0;h&&(p.align=h);let d={type:"element",tagName:o,properties:p,children:[]};c&&(d.children=e.all(c),e.patch(c,d),d=e.applyData(c,d)),a.push(d)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(n,f),e.applyData(n,f)}function Uo(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const gn=9,dn=32;function Wo(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(xn(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(xn(n.slice(i),i>0,!1)),o.join("")}function xn(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===gn||o===dn;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===gn||o===dn;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Qo(e,n){const t={type:"text",value:Wo(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Go(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Yo={blockquote:Eo,break:Io,code:Ao,delete:To,emphasis:zo,footnoteReference:Fo,heading:_o,html:Po,imageReference:Do,image:Lo,inlineCode:Ro,linkReference:No,link:vo,listItem:Oo,list:Bo,paragraph:jo,root:$o,strong:qo,table:Ho,tableCell:Uo,tableRow:Vo,text:Qo,thematicBreak:Go,toml:Ve,yaml:Ve,definition:Ve,footnoteDefinition:Ve};function Ve(){}const lr=-1,tt=0,Me=1,Xe=2,vt=3,Ot=4,Mt=5,Bt=6,or=7,ur=8,kn=typeof self=="object"?self:globalThis,Xo=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case tt:case lr:return t(l,i);case Me:{const u=t([],i);for(const s of l)u.push(r(s));return u}case Xe:{const u=t({},i);for(const[s,a]of l)u[r(s)]=r(a);return u}case vt:return t(new Date(l),i);case Ot:{const{source:u,flags:s}=l;return t(new RegExp(u,s),i)}case Mt:{const u=t(new Map,i);for(const[s,a]of l)u.set(r(s),r(a));return u}case Bt:{const u=t(new Set,i);for(const s of l)u.add(r(s));return u}case or:{const{name:u,message:s}=l;return t(new kn[u](s),i)}case ur:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:u}=new Uint8Array(l);return t(new DataView(u),l)}}return t(new kn[o](l),i)};return r},yn=e=>Xo(new Map,e)(0),Ee="",{toString:Jo}={},{keys:Ko}=Object,Ne=e=>{const n=typeof e;if(n!=="object"||!e)return[tt,n];const t=Jo.call(e).slice(8,-1);switch(t){case"Array":return[Me,Ee];case"Object":return[Xe,Ee];case"Date":return[vt,Ee];case"RegExp":return[Ot,Ee];case"Map":return[Mt,Ee];case"Set":return[Bt,Ee];case"DataView":return[Me,t]}return t.includes("Array")?[Me,t]:t.includes("Error")?[or,t]:[Xe,t]},Ue=([e,n])=>e===tt&&(n==="function"||n==="symbol"),Zo=(e,n,t,r)=>{const i=(l,u)=>{const s=r.push(l)-1;return t.set(u,s),s},o=l=>{if(t.has(l))return t.get(l);let[u,s]=Ne(l);switch(u){case tt:{let f=l;switch(s){case"bigint":u=ur,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([lr],l)}return i([u,f],l)}case Me:{if(s){let p=l;return s==="DataView"?p=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(l)),i([s,[...p]],l)}const f=[],c=i([u,f],l);for(const p of l)f.push(o(p));return c}case Xe:{if(s)switch(s){case"BigInt":return i([s,l.toString()],l);case"Boolean":case"Number":case"String":return i([s,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([u,f],l);for(const p of Ko(l))(e||!Ue(Ne(l[p])))&&f.push([o(p),o(l[p])]);return c}case vt:return i([u,l.toISOString()],l);case Ot:{const{source:f,flags:c}=l;return i([u,{source:f,flags:c}],l)}case Mt:{const f=[],c=i([u,f],l);for(const[p,h]of l)(e||!(Ue(Ne(p))||Ue(Ne(h))))&&f.push([o(p),o(h)]);return c}case Bt:{const f=[],c=i([u,f],l);for(const p of l)(e||!Ue(Ne(p)))&&f.push(o(p));return c}}const{message:a}=l;return i([u,{name:s,message:a}],l)};return o},bn=(e,{json:n,lossy:t}={})=>{const r=[];return Zo(!(n||t),!!n,new Map,r)(e),r},Je=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?yn(bn(e,n)):structuredClone(e):(e,n)=>yn(bn(e,n));function eu(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function tu(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function nu(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||eu,r=e.options.footnoteBackLabel||tu,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let s=-1;for(;++s<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[s]);if(!a)continue;const f=e.all(a),c=String(a.identifier).toUpperCase(),p=ze(c.toLowerCase());let h=0;const d=[],w=e.footnoteCounts.get(c);for(;w!==void 0&&++h<=w;){d.length>0&&d.push({type:"text",value:" "});let E=typeof t=="string"?t:t(s,h);typeof E=="string"&&(E={type:"text",value:E}),d.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const E=C.children[C.children.length-1];E&&E.type==="text"?E.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...d)}else f.push(...d);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(a,x),u.push(x)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Je(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
9
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
10
|
+
`}]}}const nt=(function(e){if(e==null)return ou;if(typeof e=="function")return rt(e);if(typeof e=="object")return Array.isArray(e)?ru(e):iu(e);if(typeof e=="string")return lu(e);throw new Error("Expected function, string, or object as test")});function ru(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=nt(e[t]);return rt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function iu(e){const n=e;return rt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function lu(e){return rt(n);function n(t){return t&&t.type===e}}function rt(e){return n;function n(t,r,i){return!!(uu(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function ou(){return!0}function uu(e){return e!==null&&typeof e=="object"&&"type"in e}const ar=[],au=!0,Et=!1,su="skip";function sr(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=nt(i),l=r?-1:1;u(e,void 0,[])();function u(s,a,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=ar,d,w,C;if((!n||o(s,a,f[f.length-1]||void 0))&&(h=cu(t(s,f)),h[0]===Et))return h;if("children"in s&&s.children){const x=s;if(x.children&&h[0]!==su)for(w=(r?x.children.length:-1)+l,C=f.concat(x);w>-1&&w<x.children.length;){const E=x.children[w];if(d=u(E,w,C)(),d[0]===Et)return d;w=typeof d[1]=="number"?d[1]:w+l}}return h}}}function cu(e){return Array.isArray(e)?e:typeof e=="number"?[au,e]:e==null?ar:[e]}function jt(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),sr(e,o,u,i);function u(s,a){const f=a[a.length-1],c=f?f.children.indexOf(s):void 0;return l(s,c,f)}}const It={}.hasOwnProperty,fu={};function hu(e,n){const t=n||fu,r=new Map,i=new Map,o=new Map,l={...Yo,...t.handlers},u={all:a,applyData:mu,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:t,patch:pu,wrap:du};return jt(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),u;function s(f,c){const p=f.type,h=u.handlers[p];if(It.call(u.handlers,p)&&h)return h(u,f,c);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in f){const{children:w,...C}=f,x=Je(C);return x.children=u.all(f),x}return Je(f)}return(u.options.unknownHandler||gu)(u,f,c)}function a(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const d=u.one(p[h],f);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=wn(d.value)),!Array.isArray(d)&&d.type==="element")){const w=d.children[0];w&&w.type==="text"&&(w.value=wn(w.value))}Array.isArray(d)?c.push(...d):c.push(d)}}}return c}}function pu(e,n){e.position&&(n.position=ei(e))}function mu(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,Je(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function gu(e,n){const t=n.data||{},r="value"in n&&!(It.call(t,"hProperties")||It.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function du(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
|
|
11
|
+
`});++r<e.length;)r&&t.push({type:"text",value:`
|
|
12
|
+
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
|
13
|
+
`}),t}function wn(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Cn(e,n){const t=hu(e,n),r=t.one(e,void 0),i=nu(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
14
|
+
`},i),o}function xu(e,n){return e&&"run"in e?async function(t,r){const i=Cn(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Cn(t,{file:r,...e||n})}}function Sn(e){if(e)throw e}var st,En;function ku(){if(En)return st;En=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(a){return typeof Array.isArray=="function"?Array.isArray(a):n.call(a)==="[object Array]"},o=function(a){if(!a||n.call(a)!=="[object Object]")return!1;var f=e.call(a,"constructor"),c=a.constructor&&a.constructor.prototype&&e.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!f&&!c)return!1;var p;for(p in a);return typeof p>"u"||e.call(a,p)},l=function(a,f){t&&f.name==="__proto__"?t(a,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):a[f.name]=f.newValue},u=function(a,f){if(f==="__proto__")if(e.call(a,f)){if(r)return r(a,f).value}else return;return a[f]};return st=function s(){var a,f,c,p,h,d,w=arguments[0],C=1,x=arguments.length,E=!1;for(typeof w=="boolean"&&(E=w,w=arguments[1]||{},C=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});C<x;++C)if(a=arguments[C],a!=null)for(f in a)c=u(w,f),p=u(a,f),w!==p&&(E&&p&&(o(p)||(h=i(p)))?(h?(h=!1,d=c&&i(c)?c:[]):d=c&&o(c)?c:{},l(w,{name:f,newValue:s(E,d,p)})):typeof p<"u"&&l(w,{name:f,newValue:p}));return w},st}var yu=ku();const ct=vn(yu);function At(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bu(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...i);function u(s,...a){const f=e[++o];let c=-1;if(s){l(s);return}for(;++c<i.length;)(a[c]===null||a[c]===void 0)&&(a[c]=i[c]);i=a,f?wu(f,u)(...a):l(null,...a)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function wu(e,n){let t;return r;function r(...l){const u=e.length>l.length;let s;u&&l.push(i);try{s=e.apply(this,l)}catch(a){const f=a;if(u&&t)throw f;return i(f)}u||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...u){t||(t=!0,n(l,...u))}function o(l){i(null,l)}}const le={basename:Cu,dirname:Su,extname:Eu,join:Iu,sep:"/"};function Cu(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');qe(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,u=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),u>-1&&(e.codePointAt(i)===n.codePointAt(u--)?u<0&&(r=i):(u=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Su(e){if(qe(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Eu(e){qe(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const u=e.codePointAt(n);if(u===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),u===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Iu(...e){let n=-1,t;for(;++n<e.length;)qe(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Au(t)}function Au(e){qe(e);const n=e.codePointAt(0)===47;let t=Tu(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Tu(e,n){let t="",r=0,i=-1,o=0,l=-1,u,s;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else u===46&&o>-1?o++:o=-1}return t}function qe(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const zu={cwd:Fu};function Fu(){return"/"}function Tt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _u(e){if(typeof e=="string")e=new URL(e);else if(!Tt(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Pu(e)}function Pu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const ft=["history","path","basename","stem","extname","dirname"];class cr{constructor(n){let t;n?Tt(n)?t={path:n}:typeof n=="string"||Du(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":zu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ft.length;){const o=ft[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)ft.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?le.basename(this.path):void 0}set basename(n){pt(n,"basename"),ht(n,"basename"),this.path=le.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?le.dirname(this.path):void 0}set dirname(n){In(this.basename,"dirname"),this.path=le.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?le.extname(this.path):void 0}set extname(n){if(ht(n,"extname"),In(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=le.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Tt(n)&&(n=_u(n)),pt(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?le.basename(this.path,this.extname):void 0}set stem(n){pt(n,"stem"),ht(n,"stem"),this.path=le.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new Q(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function ht(e,n){if(e&&e.includes(le.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+le.sep+"`")}function pt(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function In(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Du(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Lu=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Ru={}.hasOwnProperty;class $t extends Lu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=bu()}copy(){const n=new $t;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(ct(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(dt("data",this.frozen),this.namespace[n]=t,this):Ru.call(this.namespace,n)&&this.namespace[n]||void 0:n?(dt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=We(n),r=this.parser||this.Parser;return mt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),mt("process",this.parser||this.Parser),gt("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const u=We(n),s=r.parse(u);r.run(s,u,function(f,c,p){if(f||!c||!p)return a(f);const h=c,d=r.stringify(h,p);Ou(d)?p.value=d:p.result=d,a(f,p)});function a(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),mt("processSync",this.parser||this.Parser),gt("processSync",this.compiler||this.Compiler),this.process(n,i),Tn("processSync","process",t),r;function i(o,l){t=!0,Sn(o),r=l}}run(n,t,r){An(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,u){const s=We(t);i.run(n,s,a);function a(f,c,p){const h=c||n;f?u(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),Tn("runSync","run",r),i;function o(l,u){Sn(l),i=u,r=!0}}stringify(n,t){this.freeze();const r=We(t),i=this.compiler||this.Compiler;return gt("stringify",i),An(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(dt("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?u(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(a){if(typeof a=="function")s(a,[]);else if(typeof a=="object")if(Array.isArray(a)){const[f,...c]=a;s(f,c)}else l(a);else throw new TypeError("Expected usable value, not `"+a+"`")}function l(a){if(!("plugins"in a)&&!("settings"in a))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(a.plugins),a.settings&&(i.settings=ct(!0,i.settings,a.settings))}function u(a){let f=-1;if(a!=null)if(Array.isArray(a))for(;++f<a.length;){const c=a[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+a+"`")}function s(a,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===a){p=c;break}if(p===-1)r.push([a,...f]);else if(f.length>0){let[h,...d]=f;const w=r[p][1];At(w)&&At(h)&&(h=ct(!0,w,h)),r[p]=[a,h,...d]}}}}const Nu=new $t().freeze();function mt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dt(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function An(e){if(!At(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Tn(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function We(e){return vu(e)?e:new cr(e)}function vu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ou(e){return typeof e=="string"||Mu(e)}function Mu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",zn=[],Fn={allowDangerousHtml:!0},ju=/^(https?|ircs?|mailto|xmpp)$/i,$u=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function qu(e){const n=Hu(e),t=Vu(e);return Uu(n.runSync(n.parse(t),t),e)}function Hu(e){const n=e.rehypePlugins||zn,t=e.remarkPlugins||zn,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Fn}:Fn;return Nu().use(So).use(t).use(xu,r).use(n)}function Vu(e){const n=e.children||"",t=new cr;return typeof n=="string"&&(t.value=n),t}function Uu(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,u=n.unwrapDisallowed,s=n.urlTransform||Wu;for(const f of $u)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Bu+f.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),jt(e,a),li(e,{Fragment:X.jsxRuntimeExports.Fragment,components:i,ignoreInvalidStyle:!0,jsx:X.jsxRuntimeExports.jsx,jsxs:X.jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function a(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in ot)if(Object.hasOwn(ot,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],w=ot[h];(w===null||w.includes(f.tagName))&&(f.properties[h]=s(String(d||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return u&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Wu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||ju.test(e.slice(0,n))?e:""}function Qu(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Gu(e,n,t){const i=nt((t||{}).ignore||[]),o=Yu(n);let l=-1;for(;++l<o.length;)sr(e,"text",u);function u(a,f){let c=-1,p;for(;++c<f.length;){const h=f[c],d=p?p.children:void 0;if(i(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return s(a,f)}function s(a,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let d=0;const C=c.children.indexOf(a);let x=!1,E=[];p.lastIndex=0;let S=p.exec(a.value);for(;S;){const P=S.index,D={index:S.index,input:S.input,stack:[...f,a]};let b=h(...S,D);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=P+1:(d!==P&&E.push({type:"text",value:a.value.slice(d,P)}),Array.isArray(b)?E.push(...b):b&&E.push(b),d=P+S[0].length,x=!0),!p.global)break;S=p.exec(a.value)}return x?(d<a.value.length&&E.push({type:"text",value:a.value.slice(d)}),c.children.splice(C,1,...E)):E=[a],C+E.length}}function Yu(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Xu(i[0]),Ju(i[1])])}return n}function Xu(e){return typeof e=="string"?new RegExp(Qu(e),"g"):e}function Ju(e){return typeof e=="function"?e:function(){return e}}const xt="phrasing",kt=["autolink","link","image","label"];function Ku(){return{transforms:[la],enter:{literalAutolink:ea,literalAutolinkEmail:yt,literalAutolinkHttp:yt,literalAutolinkWww:yt},exit:{literalAutolink:ia,literalAutolinkEmail:ra,literalAutolinkHttp:ta,literalAutolinkWww:na}}}function Zu(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xt,notInConstruct:kt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xt,notInConstruct:kt},{character:":",before:"[ps]",after:"\\/",inConstruct:xt,notInConstruct:kt}]}}function ea(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function yt(e){this.config.enter.autolinkProtocol.call(this,e)}function ta(e){this.config.exit.autolinkProtocol.call(this,e)}function na(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function ra(e){this.config.exit.autolinkEmail.call(this,e)}function ia(e){this.exit(e)}function la(e){Gu(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,oa],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ua]],{ignore:["link","linkReference"]})}function oa(e,n,t,r,i){let o="";if(!fr(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!aa(t)))return!1;const l=sa(t+r);if(!l[0])return!1;const u={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function ua(e,n,t,r){return!fr(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function aa(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function sa(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=oe.ccount(e,"(");let o=oe.ccount(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function fr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||ye(t)||Ze(t))&&(!n||t!==47)}hr.peek=ka;function ca(){this.buffer()}function fa(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ha(){this.buffer()}function pa(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ma(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ie(this.sliceSerialize(e)).toLowerCase(),t.label=n}function ga(e){this.exit(e)}function da(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ie(this.sliceSerialize(e)).toLowerCase(),t.label=n}function xa(e){this.exit(e)}function ka(){return"["}function hr(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),u=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),u(),l(),o+=i.move("]"),o}function ya(){return{enter:{gfmFootnoteCallString:ca,gfmFootnoteCall:fa,gfmFootnoteDefinitionLabelString:ha,gfmFootnoteDefinition:pa},exit:{gfmFootnoteCallString:ma,gfmFootnoteCall:ga,gfmFootnoteDefinitionLabelString:da,gfmFootnoteDefinition:xa}}}function ba(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:hr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const u=o.createTracker(l);let s=u.move("[^");const a=o.enter("footnoteDefinition"),f=o.enter("label");return s+=u.move(o.safe(o.associationId(r),{before:s,after:"]"})),f(),s+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),s+=u.move((n?`
|
|
15
|
+
`:" ")+o.indentLines(o.containerFlow(r,u.current()),n?pr:wa))),a(),s}}function wa(e,n,t){return n===0?e:pr(e,n,t)}function pr(e,n,t){return(t?"":" ")+e}const Ca=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];mr.peek=Ta;function Sa(){return{canContainEols:["delete"],enter:{strikethrough:Ia},exit:{strikethrough:Aa}}}function Ea(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ca}],handlers:{delete:mr}}}function Ia(e){this.enter({type:"delete",children:[]},e)}function Aa(e){this.exit(e)}function mr(e,n,t,r){const i=t.createTracker(r),o=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Ta(){return"~"}function za(e){return e.length}function Fa(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||za,o=[],l=[],u=[],s=[];let a=0,f=-1;for(;++f<e.length;){const w=[],C=[];let x=-1;for(e[f].length>a&&(a=e[f].length);++x<e[f].length;){const E=_a(e[f][x]);if(t.alignDelimiters!==!1){const S=i(E);C[x]=S,(s[x]===void 0||S>s[x])&&(s[x]=S)}w.push(E)}l[f]=w,u[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<a;)o[c]=_n(r[c]);else{const w=_n(r);for(;++c<a;)o[c]=w}c=-1;const p=[],h=[];for(;++c<a;){const w=o[c];let C="",x="";w===99?(C=":",x=":"):w===108?C=":":w===114&&(x=":");let E=t.alignDelimiters===!1?1:Math.max(1,s[c]-C.length-x.length);const S=C+"-".repeat(E)+x;t.alignDelimiters!==!1&&(E=C.length+E+x.length,E>s[c]&&(s[c]=E),h[c]=E),p[c]=S}l.splice(1,0,p),u.splice(1,0,h),f=-1;const d=[];for(;++f<l.length;){const w=l[f],C=u[f];c=-1;const x=[];for(;++c<a;){const E=w[c]||"";let S="",P="";if(t.alignDelimiters!==!1){const D=s[c]-(C[c]||0),b=o[c];b===114?S=" ".repeat(D):b===99?D%2?(S=" ".repeat(D/2+.5),P=" ".repeat(D/2-.5)):(S=" ".repeat(D/2),P=S):P=" ".repeat(D)}t.delimiterStart!==!1&&!c&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&E==="")&&(t.delimiterStart!==!1||c)&&x.push(" "),t.alignDelimiters!==!1&&x.push(S),x.push(E),t.alignDelimiters!==!1&&x.push(P),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||c!==a-1)&&x.push("|")}d.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return d.join(`
|
|
16
|
+
`)}function _a(e){return e==null?"":String(e)}function _n(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}function Pa(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),Da);return i(),l}function Da(e,n,t){return">"+(t?"":" ")+e}function La(e,n){return Pn(e,n.inConstruct,!0)&&!Pn(e,n.notInConstruct,!1)}function Pn(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Dn(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
|
|
17
|
+
`&&La(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
18
|
+
`}function Ra(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function Na(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))}function va(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Oa(e,n,t,r){const i=va(t),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Na(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(o,Ma);return c(),p}const u=t.createTracker(r),s=i.repeat(Math.max(Ra(o,i)+1,3)),a=t.enter("codeFenced");let f=u.move(s);if(e.lang){const c=t.enter(`codeFencedLang${l}`);f+=u.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${l}`);f+=u.move(" "),f+=u.move(t.safe(e.meta,{before:f,after:`
|
|
19
|
+
`,encode:["`"],...u.current()})),c()}return f+=u.move(`
|
|
20
|
+
`),o&&(f+=u.move(o+`
|
|
21
|
+
`)),f+=u.move(s),a(),f}function Ma(e,n,t){return(t?"":" ")+e}function qt(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Ba(e,n,t,r){const i=qt(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let u=t.enter("label");const s=t.createTracker(r);let a=s.move("[");return a+=s.move(t.safe(t.associationId(e),{before:a,after:"]",...s.current()})),a+=s.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),a+=s.move("<"),a+=s.move(t.safe(e.url,{before:a,after:">",...s.current()})),a+=s.move(">")):(u=t.enter("destinationRaw"),a+=s.move(t.safe(e.url,{before:a,after:e.title?" ":`
|
|
22
|
+
`,...s.current()}))),u(),e.title&&(u=t.enter(`title${o}`),a+=s.move(" "+i),a+=s.move(t.safe(e.title,{before:a,after:i,...s.current()})),a+=s.move(i),u()),l(),a}function ja(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function je(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ke(e,n,t){const r=Te(e),i=Te(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}gr.peek=$a;function gr(e,n,t,r){const i=ja(t),o=t.enter("emphasis"),l=t.createTracker(r),u=l.move(i);let s=l.move(t.containerPhrasing(e,{after:i,before:u,...l.current()}));const a=s.charCodeAt(0),f=Ke(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(s=je(a)+s.slice(1));const c=s.charCodeAt(s.length-1),p=Ke(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+je(c));const h=l.move(i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+s+h}function $a(e,n,t){return t.options.emphasis||"*"}function qa(e,n){let t=!1;return jt(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,Et}),!!((!e.depth||e.depth<3)&&Lt(e)&&(n.options.setext||t))}function Ha(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(r);if(qa(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),p=t.containerPhrasing(e,{...o.current(),before:`
|
|
23
|
+
`,after:`
|
|
24
|
+
`});return c(),f(),p+`
|
|
25
|
+
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
26
|
+
`))+1))}const l="#".repeat(i),u=t.enter("headingAtx"),s=t.enter("phrasing");o.move(l+" ");let a=t.containerPhrasing(e,{before:"# ",after:`
|
|
27
|
+
`,...o.current()});return/^[\t ]/.test(a)&&(a=je(a.charCodeAt(0))+a.slice(1)),a=a?l+" "+a:l,t.options.closeAtx&&(a+=" "+l),s(),u(),a}dr.peek=Va;function dr(e){return e.value||""}function Va(){return"<"}xr.peek=Ua;function xr(e,n,t,r){const i=qt(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let u=t.enter("label");const s=t.createTracker(r);let a=s.move("![");return a+=s.move(t.safe(e.alt,{before:a,after:"]",...s.current()})),a+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),a+=s.move("<"),a+=s.move(t.safe(e.url,{before:a,after:">",...s.current()})),a+=s.move(">")):(u=t.enter("destinationRaw"),a+=s.move(t.safe(e.url,{before:a,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=t.enter(`title${o}`),a+=s.move(" "+i),a+=s.move(t.safe(e.title,{before:a,after:i,...s.current()})),a+=s.move(i),u()),a+=s.move(")"),l(),a}function Ua(){return"!"}kr.peek=Wa;function kr(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const u=t.createTracker(r);let s=u.move("![");const a=t.safe(e.alt,{before:s,after:"]",...u.current()});s+=u.move(a+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...u.current()});return l(),t.stack=f,o(),i==="full"||!a||a!==c?s+=u.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=u.move("]"),s}function Wa(){return"!"}yr.peek=Qa;function yr(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],u=t.compilePattern(l);let s;if(l.atBreak)for(;s=u.exec(r);){let a=s.index;r.charCodeAt(a)===10&&r.charCodeAt(a-1)===13&&a--,r=r.slice(0,a)+" "+r.slice(s.index+1)}}return i+r+i}function Qa(){return"`"}function br(e,n){const t=Lt(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))}wr.peek=Ga;function wr(e,n,t,r){const i=qt(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let u,s;if(br(e,t)){const f=t.stack;t.stack=[],u=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),u(),t.stack=f,c}u=t.enter("link"),s=t.enter("label");let a=l.move("[");return a+=l.move(t.containerPhrasing(e,{before:a,after:"](",...l.current()})),a+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),a+=l.move("<"),a+=l.move(t.safe(e.url,{before:a,after:">",...l.current()})),a+=l.move(">")):(s=t.enter("destinationRaw"),a+=l.move(t.safe(e.url,{before:a,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=t.enter(`title${o}`),a+=l.move(" "+i),a+=l.move(t.safe(e.title,{before:a,after:i,...l.current()})),a+=l.move(i),s()),a+=l.move(")"),u(),a}function Ga(e,n,t){return br(e,t)?"<":"["}Cr.peek=Ya;function Cr(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const u=t.createTracker(r);let s=u.move("[");const a=t.containerPhrasing(e,{before:s,after:"]",...u.current()});s+=u.move(a+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...u.current()});return l(),t.stack=f,o(),i==="full"||!a||a!==c?s+=u.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=u.move("]"),s}function Ya(){return"["}function Ht(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}function Xa(e){const n=Ht(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}function Ja(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Sr(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}function Ka(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?Ja(t):Ht(t);const u=e.ordered?l==="."?")":".":Xa(t);let s=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.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),Sr(t)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=u),t.bulletCurrent=l;const a=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),a}function Za(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}function es(e,n,t,r){const i=Za(t);let o=t.bulletCurrent||Ht(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=t.createTracker(r);u.move(o+" ".repeat(l-o.length)),u.shift(l);const s=t.enter("listItem"),a=t.indentLines(t.containerFlow(e,u.current()),f);return s(),a;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function ts(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const ns=nt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rs(e,n,t,r){return(e.children.some(function(l){return ns(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function is(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Er.peek=ls;function Er(e,n,t,r){const i=is(t),o=t.enter("strong"),l=t.createTracker(r),u=l.move(i+i);let s=l.move(t.containerPhrasing(e,{after:i,before:u,...l.current()}));const a=s.charCodeAt(0),f=Ke(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(s=je(a)+s.slice(1));const c=s.charCodeAt(s.length-1),p=Ke(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+je(c));const h=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+s+h}function ls(e,n,t){return t.options.strong||"*"}function os(e,n,t,r){return t.safe(e.value,r)}function us(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}function as(e,n,t){const r=(Sr(t)+(t.options.ruleSpaces?" ":"")).repeat(us(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Ir={blockquote:Pa,break:Dn,code:Oa,definition:Ba,emphasis:gr,hardBreak:Dn,heading:Ha,html:dr,image:xr,imageReference:kr,inlineCode:yr,link:wr,linkReference:Cr,list:Ka,listItem:es,paragraph:ts,root:rs,strong:Er,text:os,thematicBreak:as};function ss(){return{enter:{table:cs,tableData:Ln,tableHeader:Ln,tableRow:hs},exit:{codeText:ps,table:fs,tableData:bt,tableHeader:bt,tableRow:bt}}}function cs(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}function fs(e){this.exit(e),this.data.inTable=void 0}function hs(e){this.enter({type:"tableRow",children:[]},e)}function bt(e){this.exit(e)}function Ln(e){this.enter({type:"tableCell",children:[]},e)}function ps(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,ms));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function ms(e,n){return n==="|"?n:e}function gs(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
28
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:s,tableRow:u}};function l(h,d,w,C){return a(f(h,w,C),h.align)}function u(h,d,w,C){const x=c(h,w,C),E=a([x]);return E.slice(0,E.indexOf(`
|
|
29
|
+
`))}function s(h,d,w,C){const x=w.enter("tableCell"),E=w.enter("phrasing"),S=w.containerPhrasing(h,{...C,before:o,after:o});return E(),x(),S}function a(h,d){return Fa(h,{align:d,alignDelimiters:r,padding:t,stringLength:i})}function f(h,d,w){const C=h.children;let x=-1;const E=[],S=d.enter("table");for(;++x<C.length;)E[x]=c(C[x],d,w);return S(),E}function c(h,d,w){const C=h.children;let x=-1;const E=[],S=d.enter("tableRow");for(;++x<C.length;)E[x]=s(C[x],h,d,w);return S(),E}function p(h,d,w){let C=Ir.inlineCode(h,d,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function ds(){return{exit:{taskListCheckValueChecked:Rn,taskListCheckValueUnchecked:Rn,paragraph:ks}}}function xs(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ys}}}function Rn(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function ks(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 r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const u=i[o];if(u.type==="paragraph"){l=u;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ys(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=t.createTracker(r);o&&u.move(l);let s=Ir.listItem(e,n,t,{...r,...u.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),s;function a(f){return f+l}}function bs(){return[Ku(),ya(),Sa(),ss(),ds()]}function ws(e){return{extensions:[Zu(),ba(e),Ea(),gs(e),xs()]}}const Cs={tokenize:zs,partial:!0},Ar={tokenize:Fs,partial:!0},Tr={tokenize:_s,partial:!0},zr={tokenize:Ps,partial:!0},Ss={tokenize:Ds,partial:!0},Fr={name:"wwwAutolink",tokenize:As,previous:Pr},_r={name:"protocolAutolink",tokenize:Ts,previous:Dr},he={name:"emailAutolink",tokenize:Is,previous:Lr},ue={};function Es(){return{text:ue}}let ke=48;for(;ke<123;)ue[ke]=he,ke++,ke===58?ke=65:ke===91&&(ke=97);ue[43]=he;ue[45]=he;ue[46]=he;ue[95]=he;ue[72]=[he,_r];ue[104]=[he,_r];ue[87]=[he,Fr];ue[119]=[he,Fr];function Is(e,n,t){const r=this;let i,o;return l;function l(c){return!zt(c)||!Lr.call(r,r.previous)||Vt(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return zt(c)?(e.consume(c),u):c===64?(e.consume(c),s):t(c)}function s(c){return c===46?e.check(Ss,f,a)(c):c===45||c===95||W(c)?(o=!0,e.consume(c),s):f(c)}function a(c){return e.consume(c),i=!0,s}function f(c){return o&&i&&G(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function As(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!Pr.call(r,r.previous)||Vt(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Cs,e.attempt(Ar,e.attempt(Tr,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function Ts(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&Dr.call(r,r.previous)&&!Vt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):t(c)}function u(c){if(G(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return t(c)}function s(c){return c===47?(e.consume(c),o?a:(o=!0,s)):t(c)}function a(c){return c===null||Ye(c)||H(c)||ye(c)||Ze(c)?t(c):e.attempt(Ar,e.attempt(Tr,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function zs(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function Fs(e,n,t){let r,i,o;return l;function l(a){return a===46||a===95?e.check(zr,s,u)(a):a===null||H(a)||ye(a)||a!==45&&Ze(a)?s(a):(o=!0,e.consume(a),l)}function u(a){return a===95?r=!0:(i=r,r=void 0),e.consume(a),l}function s(a){return i||r||!o?t(a):n(a)}}function _s(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(zr,n,o)(l):l===null||H(l)||ye(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Ps(e,n,t){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),o):u===93?(e.consume(u),i):u===60||u===null||H(u)||ye(u)?n(u):t(u)}function i(u){return u===null||u===40||u===91||H(u)||ye(u)?n(u):r(u)}function o(u){return G(u)?l(u):t(u)}function l(u){return u===59?(e.consume(u),r):G(u)?(e.consume(u),l):t(u)}}function Ds(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return W(o)?t(o):n(o)}}function Pr(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||H(e)}function Dr(e){return!G(e)}function Lr(e){return!(e===47||zt(e))}function zt(e){return e===43||e===45||e===46||e===95||W(e)}function Vt(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Ls={tokenize:$s,partial:!0};function Rs(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ms,continuation:{tokenize:Bs},exit:js}},text:{91:{name:"gfmFootnoteCall",tokenize:Os},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ns,resolveTo:vs}}}}function Ns(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return u;function u(s){if(!l||!l._balanced)return t(s);const a=ie(r.sliceSerialize({start:l.end,end:r.now()}));return a.codePointAt(0)!==94||!o.includes(a.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function vs(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},u=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...u),e}function Os(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(c){if(o>999||c===93&&!l||c===null||c===91||H(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ie(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return H(c)||(l=!0),o++,e.consume(c),c===92?f:a}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,a):a(c)}}function Ms(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,u;return s;function s(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),a}function a(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(d)}function f(d){if(l>999||d===93&&!u||d===null||d===91||H(d))return t(d);if(d===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=ie(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return H(d)||(u=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),O(e,h,"gfmFootnoteDefinitionWhitespace")):t(d)}function h(d){return n(d)}}function Bs(e,n,t){return e.check($e,n,e.attempt(Ls,n,t))}function js(e){e.exit("gfmFootnoteDefinition")}function $s(e,n,t){const r=this;return O(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function qs(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,u){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let a=s;for(;a--;)if(l[a][0]==="exit"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[a][1].end.offset-l[a][1].start.offset){l[s][1].type="strikethroughSequence",l[a][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[a][1].start),end:Object.assign({},l[s][1].end)},c={type:"strikethroughText",start:Object.assign({},l[a][1].end),end:Object.assign({},l[s][1].start)},p=[["enter",f,u],["enter",l[a][1],u],["exit",l[a][1],u],["enter",c,u]],h=u.parser.constructs.insideSpan.null;h&&K(p,p.length,0,et(h,l.slice(a+1,s),u)),K(p,p.length,0,[["exit",c,u],["enter",l[s][1],u],["exit",l[s][1],u],["exit",f,u]]),K(l,a-1,s-a+3,p),s=a+p.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,u,s){const a=this.previous,f=this.events;let c=0;return p;function p(d){return a===126&&f[f.length-1][1].type!=="characterEscape"?s(d):(l.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const w=Te(a);if(d===126)return c>1?s(d):(l.consume(d),c++,h);if(c<2&&!t)return s(d);const C=l.exit("strikethroughSequenceTemporary"),x=Te(d);return C._open=!x||x===2&&!!w,C._close=!w||w===2&&!!x,u(d)}}}class Hs{constructor(){this.map=[]}add(n,t,r){Vs(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function Vs(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Us(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Ws(){return{flow:{null:{name:"table",tokenize:Qs,resolveAll:Gs}}}}function Qs(e,n,t){const r=this;let i=0,o=0,l;return u;function u(k){let T=r.events.length-1;for(;T>-1;){const _=r.events[T][1].type;if(_==="lineEnding"||_==="linePrefix")T--;else break}const z=T>-1?r.events[T][1].type:null,j=z==="tableHead"||z==="tableRow"?b:s;return j===b&&r.parser.lazy[r.now().line]?t(k):j(k)}function s(k){return e.enter("tableHead"),e.enter("tableRow"),a(k)}function a(k){return k===124||(l=!0,o+=1),f(k)}function f(k){return k===null?t(k):F(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):t(k):R(k)?O(e,f,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||H(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?p:c)}function p(k){return k===92||k===124?(e.consume(k),c):c(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),l=!1,R(k)?O(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):d(k))}function d(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),w):D(k)}function w(k){return R(k)?O(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(o+=1,x(k)):k===null||F(k)?P(k):D(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),E(k)):D(k)}function E(k){return k===45?(e.consume(k),E):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return R(k)?O(e,P,"whitespace")(k):P(k)}function P(k){return k===124?d(k):k===null||F(k)?!l||i!==o?D(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):D(k)}function D(k){return t(k)}function b(k){return e.enter("tableRow"),N(k)}function N(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),N):k===null||F(k)?(e.exit("tableRow"),n(k)):R(k)?O(e,N,"whitespace")(k):(e.enter("data"),B(k))}function B(k){return k===null||k===124||H(k)?(e.exit("data"),N(k)):(e.consume(k),k===92?M:B)}function M(k){return k===92||k===124?(e.consume(k),B):B(k)}}function Gs(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],u=!1,s=0,a,f,c;const p=new Hs;for(;++t<e.length;){const h=e[t],d=h[1];h[0]==="enter"?d.type==="tableHead"?(u=!1,s!==0&&(Nn(p,n,s,a,f),f=void 0,s=0),a={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",a,n]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",f,n]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=Qe(p,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=Qe(p,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):d.type==="tableHead"?(u=!0,s=t):d.type==="tableRow"||d.type==="tableDelimiterRow"?(s=t,o[1]!==0?(l[0]=l[1],c=Qe(p,n,o,i,t,c)):l[1]!==0&&(c=Qe(p,n,l,i,t,c)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=t)}for(s!==0&&Nn(p,n,s,a,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Us(n.events,t))}return e}function Qe(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";t[0]!==0&&(o.end=Object.assign({},Ae(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const s=Ae(n.events,t[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const a=Ae(n.events,t[2]),f=Ae(n.events,t[3]),c={type:u,start:Object.assign({},a),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const d=t[2]+1,w=t[3]-t[2]-1;e.add(d,w,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},Ae(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function Nn(e,n,t,r,i){const o=[],l=Ae(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function Ae(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Ys={name:"tasklistCheck",tokenize:Js};function Xs(){return{text:{91:Ys}}}function Js(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return H(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):t(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):t(s)}function u(s){return F(s)?n(s):R(s)?e.check({tokenize:Ks},n,t)(s):t(s)}}function Ks(e,n,t){return O(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Zs(e){return Vn([Es(),Rs(),qs(e),Ws(),Xs()])}const ec={};function tc(e){const n=this,t=e||ec,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Zs(t)),o.push(bs()),l.push(ws(t))}const nc="_root_1rx25_1",rc="_rootCompact_1rx25_6",ic="_markdown_1rx25_52",lc="_markdownCompact_1rx25_61",Ie={root:nc,rootCompact:rc,markdown:ic,markdownCompact:lc},oc=/^https?:\/\//i;function uc(e){return oc.test(e)}function ac(e,n){const t=new Set;for(const r of(e??"").split(/\s+/))r&&t.add(r);for(const r of n)t.add(r);return t.size>0?Array.from(t).join(" "):void 0}const sc=[];function cc({content:e,compact:n=!1,theme:t="system",plugins:r=sc}){const i=it.useMemo(()=>[tc,...r.flatMap(a=>a.remarkPlugins??[])],[r]),o=it.useMemo(()=>r.flatMap(a=>a.rehypePlugins??[]),[r]),l=it.useMemo(()=>({pre:({children:a})=>X.jsxRuntimeExports.jsx(X.jsxRuntimeExports.Fragment,{children:a}),code:a=>{const{inline:f,className:c,children:p}=a||{},h=String(p??""),w=/language-([\w-]+)/.exec(c||"")?.[1]||"";if(f||!w)return X.jsxRuntimeExports.jsx("code",{className:c,children:p});const C=h.replace(/\n$/,"");for(const x of r){const E=x.renderFence?.({code:C,language:w,theme:t});if(E!=null)return X.jsxRuntimeExports.jsx(X.jsxRuntimeExports.Fragment,{children:E})}return X.jsxRuntimeExports.jsx(Hr.CodeBlock,{code:C,language:w,className:c,theme:t,plugins:r})},a:({href:a,children:f,...c})=>{const p=a??"",h=c,{node:d,rel:w,target:C,onClick:x,...E}=h||{},S=uc(p),P=S?ac(typeof w=="string"?w:void 0,["noopener","noreferrer"]):w,D=S?"_blank":C;return X.jsxRuntimeExports.jsx("a",{...E,href:a??void 0,rel:P,target:D,onClick:x,children:f})},img:a=>{const{src:f="",alt:c="",node:p,...h}=a||{};return X.jsxRuntimeExports.jsx("img",{src:f,alt:c,...h})}}),[t,r]),u=n?`${Ie.root} ${Ie.rootCompact}`:Ie.root,s=n?`${Ie.markdown} ${Ie.markdownCompact}`:Ie.markdown;return X.jsxRuntimeExports.jsx("div",{className:u,"data-theme":t==="system"?void 0:t,children:X.jsxRuntimeExports.jsx("div",{className:s,children:X.jsxRuntimeExports.jsx(qu,{remarkPlugins:i,rehypePlugins:o,components:l,children:e})})})}exports.MarkdownPreview=cc;
|
package/dist/code.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./CodeBlock-BquZ4WRk.cjs");exports.CodeBlock=e.CodeBlock;exports.default=e.CodeBlock;
|
package/dist/code.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./css/CodeBlock.css";
|
package/dist/code.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import './theme.css';
|
|
2
|
-
|
|
2
|
+
import { CodeBlock } from './components/code-block/CodeBlock';
|
|
3
|
+
export { CodeBlock };
|
|
3
4
|
export type { CodeBlockProps } from './components/code-block/CodeBlock';
|
|
4
5
|
export type { MarkdownThemeMode } from './theme-mode';
|
|
6
|
+
export default CodeBlock;
|
package/dist/code.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { MarkdownThemeMode } from "../../theme-mode";
|
|
2
|
+
import type { MarkdownPlugin } from "../../plugins/types";
|
|
2
3
|
export interface CodeBlockProps {
|
|
3
4
|
code: string;
|
|
4
5
|
language: string;
|
|
5
6
|
className?: string;
|
|
6
7
|
theme?: MarkdownThemeMode;
|
|
8
|
+
/**
|
|
9
|
+
* Opt-in extensions. Pass `highlightPlugin` from `@ootc/markdown/plugin-highlight`
|
|
10
|
+
* for syntax highlighting; without it the code renders unhighlighted.
|
|
11
|
+
*/
|
|
12
|
+
plugins?: MarkdownPlugin[];
|
|
7
13
|
}
|
|
8
|
-
export declare function CodeBlock({ code, language, className, theme }: CodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function CodeBlock({ code, language, className, theme, plugins }: CodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import 'katex/dist/katex.min.css';
|
|
2
1
|
import type { MarkdownThemeMode } from "../../theme-mode";
|
|
2
|
+
import type { MarkdownPlugin } from "../../plugins/types";
|
|
3
3
|
export interface MarkdownPreviewProps {
|
|
4
4
|
content: string;
|
|
5
5
|
compact?: boolean;
|
|
6
6
|
theme?: MarkdownThemeMode;
|
|
7
|
+
/**
|
|
8
|
+
* Opt-in extensions, consulted in order. The base package pulls in neither
|
|
9
|
+
* Mermaid, syntax highlighting grammars nor KaTeX; import the plugins you want
|
|
10
|
+
* from `@ootc/markdown/plugin-mermaid`, `/plugin-highlight` and `/plugin-katex`.
|
|
11
|
+
*/
|
|
12
|
+
plugins?: MarkdownPlugin[];
|
|
7
13
|
}
|
|
8
|
-
export default function MarkdownPreview({ content, compact, theme }: MarkdownPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function MarkdownPreview({ content, compact, theme, plugins, }: MarkdownPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
9
15
|
export { MarkdownPreview };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MarkdownThemeMode } from "../../theme-mode";
|
|
2
|
+
import type { MarkdownPlugin } from "../../plugins/types";
|
|
2
3
|
export type MarkdownEditorMode = "side-by-side" | "tabbed";
|
|
3
4
|
export type MarkdownEditorProps = {
|
|
4
5
|
value: string;
|
|
@@ -11,5 +12,7 @@ export type MarkdownEditorProps = {
|
|
|
11
12
|
rows?: number;
|
|
12
13
|
className?: string;
|
|
13
14
|
theme?: MarkdownThemeMode;
|
|
15
|
+
/** Opt-in extensions, forwarded to the preview pane. */
|
|
16
|
+
plugins?: MarkdownPlugin[];
|
|
14
17
|
};
|
|
15
|
-
export declare function MarkdownEditor({ value, onChange, mode, showPreview, id, placeholder, disabled, rows, className, theme, }: MarkdownEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function MarkdownEditor({ value, onChange, mode, showPreview, id, placeholder, disabled, rows, className, theme, plugins, }: MarkdownEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root,[data-theme=light]{--preview-bg: #ffffff;--md-text: #1f2328;--md-heading: #111827;--md-link: #0969da;--md-border: #d0d7de;--md-code-bg: #f6f8fa;--md-code-color: #24292f;--md-pre-bg: #f6f8fa;--md-blockquote-border: #d0d7de;--md-blockquote-text: #57606a;--md-table-header-bg: #f6f8fa;--md-table-row-alt: #fbfcfe;--menu-border: #d0d7de;--md-editor-tab-border: #e5e7eb;--md-editor-tab-text: #6b7280;--md-editor-tab-active: #111827;--md-editor-input-border: #d1d5db;--md-editor-input-bg: #ffffff;--md-editor-input-text: #111827;--md-editor-input-focus: #2563eb;--md-editor-input-focus-ring: rgba(37, 99, 235, .12);--md-editor-preview-border: #e5e7eb;--md-codeblock-bg: #f8fafc;--md-codeblock-text: #0f172a;--md-codeblock-border: #374151;--md-codeblock-shadow: rgba(255, 255, 255, .6);--md-copy-btn-bg: #e2e8f0;--md-copy-btn-text: #475569;--md-copy-btn-bg-hover: #cbd5f5;--md-copy-btn-text-hover: #0f172a}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--preview-bg: #0d1117;--md-text: #e6edf3;--md-heading: #f0f6fc;--md-link: #58a6ff;--md-border: #30363d;--md-code-bg: #161b22;--md-code-color: #e6edf3;--md-pre-bg: #161b22;--md-blockquote-border: #3d444d;--md-blockquote-text: #9da7b3;--md-table-header-bg: #161b22;--md-table-row-alt: #0f1520;--menu-border: #30363d;--md-editor-tab-border: #30363d;--md-editor-tab-text: #9da7b3;--md-editor-tab-active: #e6edf3;--md-editor-input-border: #30363d;--md-editor-input-bg: #0d1117;--md-editor-input-text: #e6edf3;--md-editor-input-focus: #58a6ff;--md-editor-input-focus-ring: rgba(88, 166, 255, .2);--md-editor-preview-border: #30363d;--md-codeblock-bg: #161b22;--md-codeblock-text: #e6edf3;--md-codeblock-border: #30363d;--md-codeblock-shadow: rgba(240, 246, 252, .05);--md-copy-btn-bg: #21262d;--md-copy-btn-text: #9da7b3;--md-copy-btn-bg-hover: #30363d;--md-copy-btn-text-hover: #e6edf3}}:root[data-theme=dark],[data-theme=dark]{--preview-bg: #0d1117;--md-text: #e6edf3;--md-heading: #f0f6fc;--md-link: #58a6ff;--md-border: #30363d;--md-code-bg: #161b22;--md-code-color: #e6edf3;--md-pre-bg: #161b22;--md-blockquote-border: #3d444d;--md-blockquote-text: #9da7b3;--md-table-header-bg: #161b22;--md-table-row-alt: #0f1520;--menu-border: #30363d;--md-editor-tab-border: #30363d;--md-editor-tab-text: #9da7b3;--md-editor-tab-active: #e6edf3;--md-editor-input-border: #30363d;--md-editor-input-bg: #0d1117;--md-editor-input-text: #e6edf3;--md-editor-input-focus: #58a6ff;--md-editor-input-focus-ring: rgba(88, 166, 255, .2);--md-editor-preview-border: #30363d;--md-codeblock-bg: #161b22;--md-codeblock-text: #e6edf3;--md-codeblock-border: #30363d;--md-codeblock-shadow: rgba(240, 246, 252, .05);--md-copy-btn-bg: #21262d;--md-copy-btn-text: #9da7b3;--md-copy-btn-bg-hover: #30363d;--md-copy-btn-text-hover: #e6edf3}._container_8h8ah_1{position:relative}._loadingCodeBlock_8h8ah_5{background-color:var(--md-codeblock-bg, #f8fafc);color:var(--md-codeblock-text, #0f172a);padding:1rem;border-radius:.5rem;border:2px solid var(--md-codeblock-border, #374151);box-shadow:inset 0 1px 0 var(--md-codeblock-shadow, rgba(255, 255, 255, .6));overflow-x:auto;white-space:pre-wrap;word-break:break-word}._copyButton_8h8ah_17{position:absolute;top:.5rem;right:.5rem;padding:.25rem .75rem;font-size:.75rem;color:var(--md-copy-btn-text, #475569);background-color:var(--md-copy-btn-bg, #e2e8f0);border:none;border-radius:.25rem;cursor:pointer;transition:all .15s ease-in-out}._copyButtonSingleLine_8h8ah_31{top:50%;transform:translateY(-50%)}._copyButton_8h8ah_17:hover{color:var(--md-copy-btn-text-hover, #0f172a);background-color:var(--md-copy-btn-bg-hover, #cbd5f5)}._codeBlock_8h8ah_41{background-color:var(--md-codeblock-bg, #f8fafc);color:var(--md-codeblock-text, #0f172a);padding:1rem;border-radius:.5rem;border:2px solid var(--md-codeblock-border, #374151);box-shadow:inset 0 1px 0 var(--md-codeblock-shadow, rgba(255, 255, 255, .6));overflow-x:auto;white-space:pre-wrap;word-break:break-word}._codeBlock_8h8ah_41 .pl-c{color:#6e7781}._codeBlock_8h8ah_41 .pl-c1,._codeBlock_8h8ah_41 .pl-cce,._codeBlock_8h8ah_41 .pl-cn,._codeBlock_8h8ah_41 .pl-coc{color:#0550ae}._codeBlock_8h8ah_41 .pl-corl{color:#0a3069;text-decoration:underline}._codeBlock_8h8ah_41 .pl-ent{color:#116329}._codeBlock_8h8ah_41 .pl-k,._codeBlock_8h8ah_41 .pl-kos,._codeBlock_8h8ah_41 .pl-md{color:#cf222e}._codeBlock_8h8ah_41 .pl-mi{color:#0550ae}._codeBlock_8h8ah_41 .pl-mdr{color:#cf222e}._codeBlock_8h8ah_41 .pl-mh{color:#0550ae}._codeBlock_8h8ah_41 .pl-mi1{color:#0a3069}._codeBlock_8h8ah_41 .pl-ml{color:#0550ae}._codeBlock_8h8ah_41 .pl-pds,._codeBlock_8h8ah_41 .pl-s{color:#0a3069}._codeBlock_8h8ah_41 .pl-s1,._codeBlock_8h8ah_41 .pl-smi{color:#0f172a}._codeBlock_8h8ah_41 .pl-sr{color:#0550ae}._codeBlock_8h8ah_41 .pl-v{color:#953800}._codeBlock_8h8ah_41 .pl-bu{color:#cf222e}._codeBlock_8h8ah_41 .pl-ii,._codeBlock_8h8ah_41 .pl-c2{color:#0f172a;background-color:#f1f5f9}._codeBlock_8h8ah_41 .pl-ml1,._codeBlock_8h8ah_41 .pl-mn{color:#0a3069}._codeBlock_8h8ah_41 .pl-mb{color:#0a3069;font-weight:700}._codeBlock_8h8ah_41 .pl-mh1,._codeBlock_8h8ah_41 .pl-mh2,._codeBlock_8h8ah_41 .pl-ms{color:#0550ae;font-weight:700}._codeBlock_8h8ah_41 .pl-mq{color:#6e7781}._codeBlock_8h8ah_41 .pl-mi1{color:#116329;background-color:#dcfce7}._codeBlock_8h8ah_41 .pl-mc,._codeBlock_8h8ah_41 .pl-md{color:#b91c1c;background-color:#fee2e2}._codeBlock_8h8ah_41 .pl-mi2{color:#0f172a;background-color:#dbeafe}._codeBlock_8h8ah_41 .pl-mdr{color:#cf222e;font-weight:700}._codeBlock_8h8ah_41 .pl-ba,._codeBlock_8h8ah_41 .pl-sg{color:#6e7781}@media(prefers-color-scheme:dark){:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-c{color:#8b949e}:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-c1{color:#79c0ff}:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-k{color:#ff7b72}:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-s,:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-pds{color:#a5d6ff}:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-s1,:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-smi{color:#e6edf3}:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-v{color:#ffa657}:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-mi1{color:#aff5b4;background-color:#0f5323}:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-mc,:root:not([data-theme]) ._codeBlock_8h8ah_41 .pl-md{color:#ffdcd7;background-color:#67060c}}[data-theme=dark] ._codeBlock_8h8ah_41 .pl-c{color:#8b949e}[data-theme=dark] ._codeBlock_8h8ah_41 .pl-c1{color:#79c0ff}[data-theme=dark] ._codeBlock_8h8ah_41 .pl-k{color:#ff7b72}[data-theme=dark] ._codeBlock_8h8ah_41 .pl-s,[data-theme=dark] ._codeBlock_8h8ah_41 .pl-pds{color:#a5d6ff}[data-theme=dark] ._codeBlock_8h8ah_41 .pl-s1,[data-theme=dark] ._codeBlock_8h8ah_41 .pl-smi{color:#e6edf3}[data-theme=dark] ._codeBlock_8h8ah_41 .pl-v{color:#ffa657}[data-theme=dark] ._codeBlock_8h8ah_41 .pl-mi1{color:#aff5b4;background-color:#0f5323}[data-theme=dark] ._codeBlock_8h8ah_41 .pl-mc,[data-theme=dark] ._codeBlock_8h8ah_41 .pl-md{color:#ffdcd7;background-color:#67060c}[data-theme=light] ._codeBlock_8h8ah_41 .pl-c{color:#6e7781}[data-theme=light] ._codeBlock_8h8ah_41 .pl-c1{color:#0550ae}[data-theme=light] ._codeBlock_8h8ah_41 .pl-k{color:#cf222e}[data-theme=light] ._codeBlock_8h8ah_41 .pl-s,[data-theme=light] ._codeBlock_8h8ah_41 .pl-pds{color:#0a3069}[data-theme=light] ._codeBlock_8h8ah_41 .pl-s1,[data-theme=light] ._codeBlock_8h8ah_41 .pl-smi{color:#0f172a}[data-theme=light] ._codeBlock_8h8ah_41 .pl-v{color:#953800}[data-theme=light] ._codeBlock_8h8ah_41 .pl-mi1{color:#116329;background-color:#dcfce7}[data-theme=light] ._codeBlock_8h8ah_41 .pl-mc,[data-theme=light] ._codeBlock_8h8ah_41 .pl-md{color:#b91c1c;background-color:#fee2e2}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._root_1rx25_1{display:flow-root}._rootCompact_1rx25_6{padding:0;margin:0}._rootDense_1rx25_11{padding-left:12px;padding-right:12px}._root_1rx25_1 pre{background:var(--md-pre-bg);padding:16px;border-radius:6px;overflow-x:auto}._root_1rx25_1 code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:12px}._root_1rx25_1 .pl-c{color:#6a9955}._root_1rx25_1 .pl-k{color:#c586c0}._root_1rx25_1 .pl-s,._root_1rx25_1 .pl-pds,._root_1rx25_1 .pl-s .pl-s1{color:#ce9178}._root_1rx25_1 .pl-en,._root_1rx25_1 .pl-e{color:#4ec9b0}._root_1rx25_1 .pl-c1,._root_1rx25_1 .pl-s .pl-v{color:#b5cea8}._root_1rx25_1 .pl-v{color:#9cdcfe}._root_1rx25_1 .pl-ent{color:#569cd6}._root_1rx25_1 .pl-sr,._root_1rx25_1 .pl-sr .pl-cce,._root_1rx25_1 .pl-sr .pl-sre,._root_1rx25_1 .pl-sr .pl-sra,._root_1rx25_1 .pl-bu{color:#d16969}._root_1rx25_1 .pl-mi,._root_1rx25_1 .pl-mb,._root_1rx25_1 .pl-md,._root_1rx25_1 .pl-mi1,._root_1rx25_1 .pl-mc{color:#dcdcaa}._markdown_1rx25_52{color:var(--md-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;padding-bottom:80px}._markdownCompact_1rx25_61{padding:0;margin:0;line-height:1.3}._markdownCompact_1rx25_61 p{margin-top:4px;margin-bottom:8px}._markdownCompact_1rx25_61 h1,._markdownCompact_1rx25_61 h2,._markdownCompact_1rx25_61 h3,._markdownCompact_1rx25_61 h4,._markdownCompact_1rx25_61 h5,._markdownCompact_1rx25_61 h6{margin-top:10px;margin-bottom:4px;font-weight:600}._markdownCompact_1rx25_61 h1{font-size:1.6em}._markdownCompact_1rx25_61 h2{font-size:1.35em}._markdownCompact_1rx25_61 h3{font-size:1.15em}._markdownCompact_1rx25_61 h4{font-size:1.05em}._markdownCompact_1rx25_61 h5{font-size:1em}._markdownCompact_1rx25_61 h6{font-size:.95em}._markdownCompact_1rx25_61 h1,._markdownCompact_1rx25_61 h2,._markdownCompact_1rx25_61 h3,._markdownCompact_1rx25_61 h4,._markdownCompact_1rx25_61 h5,._markdownCompact_1rx25_61 h6,._markdownCompact_1rx25_61 p,._markdownCompact_1rx25_61 ul,._markdownCompact_1rx25_61 ol,._markdownCompact_1rx25_61 pre,._markdownCompact_1rx25_61 blockquote,._markdownCompact_1rx25_61 table,._markdownCompact_1rx25_61 hr{margin:0}._markdownCompact_1rx25_61 ul,._markdownCompact_1rx25_61 ol{padding-left:1em}._markdownCompact_1rx25_61 ul,._markdownCompact_1rx25_61 ol{margin-top:0;margin-bottom:6px}._markdownCompact_1rx25_61 li{margin-bottom:0;padding:0}._markdownCompact_1rx25_61 li+li{margin-top:2px}._markdownCompact_1rx25_61 ul ul,._markdownCompact_1rx25_61 ol ol,._markdownCompact_1rx25_61 ul ol,._markdownCompact_1rx25_61 ol ul{margin-top:2px;margin-bottom:0;padding-left:1em}._markdownCompact_1rx25_61 pre{padding:10px 12px;border-radius:5px}._markdownCompact_1rx25_61 blockquote{padding-left:10px;border-left-width:2px;margin-top:6px;margin-bottom:6px}._markdownCompact_1rx25_61 table{margin-top:6px;margin-bottom:8px}._markdownCompact_1rx25_61 table th,._markdownCompact_1rx25_61 table td{padding:6px 8px;border-color:var(--md-border, #d0d7de)}._markdownCompact_1rx25_61 table th{background:var(--md-table-header-bg, #f6f8fa);font-weight:600}._markdownCompact_1rx25_61 img{margin-top:6px;margin-bottom:6px;display:block}._markdownCompact_1rx25_61 hr{margin-top:8px;margin-bottom:8px}._markdownCompact_1rx25_61 code{background:var(--md-code-bg, #f1f3f5);border:1px solid var(--md-border, #d0d7de);padding:1px 3px;border-radius:3px;color:var(--md-code-color, #24292f)}._markdownCompact_1rx25_61 pre code{background:transparent;border:none;border-radius:0;padding:0;color:inherit}._markdownCompact_1rx25_61 .katex-display{margin-top:6px;margin-bottom:8px;padding:6px 8px;border-radius:4px;background:var(--md-pre-bg)}._markdownCompact_1rx25_61 .katex{font-size:.95em}._markdownDense_1rx25_203{max-width:1200px;margin-left:auto;margin-right:auto;padding-bottom:64px}._markdown_1rx25_52 h1{color:var(--md-heading);border-bottom:2px solid var(--md-border, #d0d7de);padding-bottom:.3em;margin-top:24px;margin-bottom:16px;font-size:2em}._markdown_1rx25_52 h2{color:var(--md-heading);border-bottom:1px solid var(--md-border);padding-bottom:.3em;margin-top:24px;margin-bottom:16px;font-size:1.5em}._markdown_1rx25_52 h3{color:var(--md-heading);margin-top:24px;margin-bottom:16px;font-size:1.25em}._markdown_1rx25_52 h4,._markdown_1rx25_52 h5,._markdown_1rx25_52 h6{color:var(--md-heading);margin-top:24px;margin-bottom:16px}._markdown_1rx25_52 p{margin-bottom:16px}._markdown_1rx25_52 code{background:var(--md-code-bg, #f1f3f5);border:1px solid var(--md-border, #d0d7de);padding:2px 4px;border-radius:3px;font-family:Consolas,Monaco,Courier New,monospace;font-size:.9em;color:var(--md-code-color, #24292f)}._markdown_1rx25_52 pre{background:var(--md-pre-bg);padding:16px;border-radius:6px;overflow-x:auto;margin-bottom:16px}._markdown_1rx25_52 pre code{background:transparent;border:none;border-radius:0;padding:0;color:var(--md-text)}._markdown_1rx25_52 blockquote{border-left:4px solid var(--md-blockquote-border);padding-left:16px;margin:16px 0;color:var(--md-blockquote-text)}._markdown_1rx25_52 ul,._markdown_1rx25_52 ol{margin-bottom:16px;padding-left:2em}._markdown_1rx25_52 li{margin-bottom:4px}._markdown_1rx25_52 a{color:var(--md-link);text-decoration:none}._markdown_1rx25_52 a:hover{text-decoration:underline}._markdown_1rx25_52 table{border-collapse:collapse;width:100%;margin-bottom:16px;border:1px solid var(--md-border, #d0d7de)}._markdown_1rx25_52 table th,._markdown_1rx25_52 table td{border:1px solid var(--md-border, #d0d7de);padding:8px 12px}._markdown_1rx25_52 table th{background:var(--md-table-header-bg, #f6f8fa);font-weight:700}._markdown_1rx25_52 table tr:nth-child(2n){background:var(--md-table-row-alt, #fbfcfe)}._markdown_1rx25_52 img{max-width:100%;height:auto}._markdown_1rx25_52 hr{border:none;border-top:1px solid var(--md-border);margin:24px 0}._blockedImage_1rx25_332{border:1px dashed var(--menu-border);background:var(--md-code-bg, #f6f8fa);padding:12px;text-align:center;color:var(--md-blockquote-text);font-size:.9em}._blockedImageTitle_1rx25_341{font-weight:600;color:var(--md-text);margin-bottom:4px}._blockedImageHint_1rx25_347{font-size:.85em;opacity:.8}._markdown_1rx25_52._markdownCompact_1rx25_61 h1,._markdown_1rx25_52._markdownCompact_1rx25_61 h2,._markdown_1rx25_52._markdownCompact_1rx25_61 h3,._markdown_1rx25_52._markdownCompact_1rx25_61 h4,._markdown_1rx25_52._markdownCompact_1rx25_61 h5,._markdown_1rx25_52._markdownCompact_1rx25_61 h6,._markdown_1rx25_52._markdownCompact_1rx25_61 p,._markdown_1rx25_52._markdownCompact_1rx25_61 ul,._markdown_1rx25_52._markdownCompact_1rx25_61 ol,._markdown_1rx25_52._markdownCompact_1rx25_61 pre,._markdown_1rx25_52._markdownCompact_1rx25_61 blockquote,._markdown_1rx25_52._markdownCompact_1rx25_61 table,._markdown_1rx25_52._markdownCompact_1rx25_61 hr{margin:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._root_1izxe_1{display:flex;flex-direction:column;gap:8px;width:100%}._tabs_1izxe_8{display:flex;gap:4px;align-items:center;border-bottom:1px solid var(--md-editor-tab-border, #e5e7eb);padding-bottom:0}._tabButton_1izxe_16{border:none;border-bottom:2px solid transparent;border-radius:0;background:transparent;min-height:32px;padding:8px 12px 7px;font-size:13px;font-weight:500;color:var(--md-editor-tab-text, #6b7280);cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease}._tabButton_1izxe_16:hover{background:var(--md-code-bg, #f6f8fa);color:var(--md-editor-tab-active, #111827)}._tabButton_1izxe_16:focus-visible{outline:none;border-radius:6px;box-shadow:0 0 0 3px var(--md-editor-input-focus-ring, rgba(37, 99, 235, .12))}._tabButtonActive_1izxe_41{color:var(--md-editor-tab-active, #111827);font-weight:700;border-bottom-color:var(--md-editor-input-focus, #2563eb)}._tabPanel_1izxe_47{display:flex;flex-direction:column}._sideBySide_1izxe_52{display:grid;gap:12px}._sideBySideWithPreview_1izxe_57{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}._sideBySideNoPreview_1izxe_61{grid-template-columns:minmax(0,1fr)}._textarea_1izxe_65{width:100%;min-height:200px;resize:vertical;border:1px solid var(--md-editor-input-border, #d1d5db);border-radius:8px;padding:10px 12px;font-size:14px;color:var(--md-editor-input-text, #111827);background:var(--md-editor-input-bg, #fff);line-height:1.5;transition:border-color .15s ease,box-shadow .15s ease;box-sizing:border-box;min-width:0}._textarea_1izxe_65:focus{outline:none;border-color:var(--md-editor-input-focus, #2563eb);box-shadow:0 0 0 3px var(--md-editor-input-focus-ring, rgba(37, 99, 235, .12))}._previewPane_1izxe_87{border:1px solid var(--md-editor-preview-border, #e5e7eb);border-radius:8px;padding:12px 14px;background:var(--preview-bg, #ffffff);min-height:200px;overflow:auto;box-sizing:border-box;min-width:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._mermaidContainer_1x453_1{background:var(--md-pre-bg);border-radius:6px;padding:16px;overflow:hidden;margin-bottom:16px}._mermaidCanPan_1x453_9{cursor:grab}._mermaidCanPan_1x453_9:active{cursor:grabbing}._mermaidPanning_1x453_17{cursor:grabbing;-webkit-user-select:none;user-select:none}._mermaidViewport_1x453_22{display:inline-block;min-width:100%;position:relative;touch-action:none;-webkit-user-select:none;user-select:none}._mermaidDiagram_1x453_30{display:inline-block;min-width:100%;transform-origin:top left}._mermaidDiagram_1x453_30 svg{max-width:100%;height:auto}._mermaidError_1x453_41{border:1px solid var(--md-border);border-radius:6px;background:#ff00000d;padding:12px;color:var(--md-text);font-size:.9em;margin-bottom:16px}._mermaidErrorDetails_1x453_51{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;margin-top:8px;opacity:.8;white-space:pre-wrap;word-break:break-word}
|
package/dist/editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./CodeBlock-BquZ4WRk.cjs");const t=require("./jsx-runtime-nZSsnGb7.cjs"),l=require("react"),w=require("./MarkdownPreview-DfDx-wep.cjs"),P="_root_1izxe_1",S="_tabs_1izxe_8",E="_tabButton_1izxe_16",N="_tabButtonActive_1izxe_41",R="_tabPanel_1izxe_47",z="_sideBySide_1izxe_52",$="_sideBySideWithPreview_1izxe_57",k="_sideBySideNoPreview_1izxe_61",M="_textarea_1izxe_65",f="_previewPane_1izxe_87",e={root:P,tabs:S,tabButton:E,tabButtonActive:N,tabPanel:R,sideBySide:z,sideBySideWithPreview:$,sideBySideNoPreview:k,textarea:M,previewPane:f};function v({value:o,onChange:b,mode:_="tabbed",showPreview:s=!0,id:n,placeholder:p,disabled:j,rows:m,className:d,theme:r="system",plugins:B}){const[i,a]=l.useState("editor");l.useEffect(()=>{!s&&i==="preview"&&a("editor")},[i,s]);const c=t.jsxRuntimeExports.jsx("textarea",{id:n,className:e.textarea,value:o,onChange:y=>b(y.target.value),placeholder:p,disabled:j,rows:m,"aria-label":n?void 0:"Markdown editor"}),x=s?t.jsxRuntimeExports.jsx("div",{className:e.previewPane,children:t.jsxRuntimeExports.jsx(w.MarkdownPreview,{content:o,theme:r,plugins:B})}):null,u=d?`${e.root} ${d}`:e.root;return _==="side-by-side"?t.jsxRuntimeExports.jsx("div",{className:u,"data-theme":r==="system"?void 0:r,children:t.jsxRuntimeExports.jsxs("div",{className:`${e.sideBySide} ${s?e.sideBySideWithPreview:e.sideBySideNoPreview}`,children:[c,x]})}):t.jsxRuntimeExports.jsxs("div",{className:u,"data-theme":r==="system"?void 0:r,children:[s?t.jsxRuntimeExports.jsxs("div",{className:e.tabs,role:"tablist","aria-label":"Markdown editor tabs",children:[t.jsxRuntimeExports.jsx("button",{type:"button",className:`${e.tabButton} ${i==="editor"?e.tabButtonActive:""}`,onClick:()=>a("editor"),"aria-pressed":i==="editor",children:"Editor"}),t.jsxRuntimeExports.jsx("button",{type:"button",className:`${e.tabButton} ${i==="preview"?e.tabButtonActive:""}`,onClick:()=>a("preview"),"aria-pressed":i==="preview",children:"Preview"})]}):null,t.jsxRuntimeExports.jsx("div",{className:e.tabPanel,children:s&&i==="preview"?x:c})]})}exports.MarkdownEditor=v;exports.default=v;
|
package/dist/editor.css
ADDED
package/dist/editor.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import './theme.css';
|
|
2
|
-
|
|
2
|
+
import { MarkdownEditor } from './components/markdown-editor/MarkdownEditor';
|
|
3
|
+
export { MarkdownEditor };
|
|
3
4
|
export type { MarkdownEditorMode, MarkdownEditorProps } from './components/markdown-editor/MarkdownEditor';
|
|
4
5
|
export type { MarkdownThemeMode } from './theme-mode';
|
|
6
|
+
export default MarkdownEditor;
|