@zjlab-frontier/markdown 1.1.1-beta.0 → 1.1.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{arc-Dfq9Jv-e.mjs → arc-B-AeIGLN.mjs} +1 -1
- package/dist/{blockDiagram-c4efeb88-h3Jgp_l5.mjs → blockDiagram-c4efeb88-C_-7Uo_h.mjs} +5 -5
- package/dist/{c4Diagram-c83219d4-CvN77_US.mjs → c4Diagram-c83219d4-ZsHt3LPy.mjs} +2 -2
- package/dist/{channel-DCrOXqLD.mjs → channel-CVkVCVVm.mjs} +1 -1
- package/dist/{classDiagram-beda092f-JS2PAdOE.mjs → classDiagram-beda092f-BWoUP9jt.mjs} +5 -5
- package/dist/{classDiagram-v2-2358418a-CAxUF_cp.mjs → classDiagram-v2-2358418a-DOkIM90L.mjs} +5 -5
- package/dist/{clone-N1jlDK6-.mjs → clone-CMQWg0jE.mjs} +1 -1
- package/dist/{createText-1719965b-D6f1em0c.mjs → createText-1719965b-BYlDfw-H.mjs} +1 -1
- package/dist/{edges-96097737-BIwOTXGZ.mjs → edges-96097737-CCwtPbu5.mjs} +3 -3
- package/dist/{erDiagram-0228fc6a-BwZ3_BcJ.mjs → erDiagram-0228fc6a-DFl4DAxb.mjs} +4 -4
- package/dist/{flowDb-c6c81e3f-EbgKCXEB.mjs → flowDb-c6c81e3f-mMN-EdDG.mjs} +1 -1
- package/dist/{flowDiagram-50d868cf-CwVTSVFw.mjs → flowDiagram-50d868cf-BeMmTgQF.mjs} +6 -6
- package/dist/{flowDiagram-v2-4f6560a1-K-6NgNI9.mjs → flowDiagram-v2-4f6560a1-2ufFevZx.mjs} +5 -5
- package/dist/{flowchart-elk-definition-6af322e1-DbXPhfJH.mjs → flowchart-elk-definition-6af322e1-CWV2S2Ol.mjs} +4 -4
- package/dist/{ganttDiagram-a2739b55-DqRNukB6.mjs → ganttDiagram-a2739b55-BKdrG2Ob.mjs} +2 -2
- package/dist/{gitGraphDiagram-82fe8481-_eL1Wo-0.mjs → gitGraphDiagram-82fe8481-DJ5BhPTN.mjs} +1 -1
- package/dist/{graph-CMkjmo40.mjs → graph-Dkvc5zok.mjs} +1 -1
- package/dist/{index-5325376f-BS21MJix.mjs → index-5325376f-C7evlvXX.mjs} +6 -6
- package/dist/{index-CMH0GtjK.mjs → index-DHgY23xO.mjs} +723 -721
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -3
- package/dist/{infoDiagram-8eee0895-Cvvchoju.mjs → infoDiagram-8eee0895-BUJTJ0Ub.mjs} +1 -1
- package/dist/{journeyDiagram-c64418c1-C-eTKoM2.mjs → journeyDiagram-c64418c1-C4M9O44H.mjs} +3 -3
- package/dist/{layout-iR8SguDU.mjs → layout-BXCgB1Ja.mjs} +2 -2
- package/dist/{line-BB2lxYzY.mjs → line-BI_kVx8v.mjs} +1 -1
- package/dist/{linear-CjGoIQu_.mjs → linear-CIGZn-gU.mjs} +1 -1
- package/dist/{mindmap-definition-8da855dc-BDu5aHx2.mjs → mindmap-definition-8da855dc-C593bSOa.mjs} +2 -2
- package/dist/{pieDiagram-a8764435-Bj8u5njZ.mjs → pieDiagram-a8764435-ChIm4Jde.mjs} +2 -2
- package/dist/{quadrantDiagram-1e28029f-CBbo-Qdq.mjs → quadrantDiagram-1e28029f-DFLPz7rq.mjs} +2 -2
- package/dist/{requirementDiagram-08caed73-CS9bBXBW.mjs → requirementDiagram-08caed73-CCC5UtJ_.mjs} +4 -4
- package/dist/{sankeyDiagram-a04cb91d-BPqL9Z8J.mjs → sankeyDiagram-a04cb91d-CS5QJOMA.mjs} +1 -1
- package/dist/{sequenceDiagram-c5b8d532-BWbEVN8Z.mjs → sequenceDiagram-c5b8d532-DfyYJZ9x.mjs} +2 -2
- package/dist/{stateDiagram-1ecb1508-BoQtv1p9.mjs → stateDiagram-1ecb1508-Cpt4NJFu.mjs} +5 -5
- package/dist/{stateDiagram-v2-c2b004d7-CNt6GAi6.mjs → stateDiagram-v2-c2b004d7-BBsfF4nx.mjs} +5 -5
- package/dist/{styles-b4e223ce-Wn003tSu.mjs → styles-b4e223ce-FBeN3AGR.mjs} +1 -1
- package/dist/{styles-ca3715f6-L-g-3Cyz.mjs → styles-ca3715f6-Bbwf9B4M.mjs} +1 -1
- package/dist/{styles-d45a18b0-DGU9f1F_.mjs → styles-d45a18b0-u1qUEuMX.mjs} +4 -4
- package/dist/{svgDrawCommon-b86b1483-C1u6_bFK.mjs → svgDrawCommon-b86b1483-Cz_Ma4Lv.mjs} +1 -1
- package/dist/{timeline-definition-faaaa080-dpwqIzMm.mjs → timeline-definition-faaaa080-aMyalBdM.mjs} +2 -2
- package/dist/{xychartDiagram-f5964ef8-BJCEPvEI.mjs → xychartDiagram-f5964ef8-njygMMD_.mjs} +4 -4
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -114,9 +114,7 @@ ${n.themeCSS}`),n.fontFamily!==void 0&&(o+=`
|
|
|
114
114
|
`))+1))}const h="#".repeat(u),m=a.enter("headingAtx"),v=a.enter("phrasing");d.move(h+" ");let y=a.containerPhrasing(n,{before:"# ",after:`
|
|
115
115
|
`,...d.current()});return/^[\t ]/.test(y)&&(y=VN(y.charCodeAt(0))+y.slice(1)),y=y?h+" "+y:h,a.options.closeAtx&&(y+=" "+h),v(),m(),y}HFe.peek=ocn;function HFe(n){return n.value||""}function ocn(){return"<"}VFe.peek=ccn;function VFe(n,r,a,o){const u=qhe(a),d=u==='"'?"Quote":"Apostrophe",h=a.enter("image");let m=a.enter("label");const v=a.createTracker(o);let y=v.move("![");return y+=v.move(a.safe(n.alt,{before:y,after:"]",...v.current()})),y+=v.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=a.enter("destinationLiteral"),y+=v.move("<"),y+=v.move(a.safe(n.url,{before:y,after:">",...v.current()})),y+=v.move(">")):(m=a.enter("destinationRaw"),y+=v.move(a.safe(n.url,{before:y,after:n.title?" ":")",...v.current()}))),m(),n.title&&(m=a.enter(`title${d}`),y+=v.move(" "+u),y+=v.move(a.safe(n.title,{before:y,after:u,...v.current()})),y+=v.move(u),m()),y+=v.move(")"),h(),y}function ccn(){return"!"}UFe.peek=lcn;function UFe(n,r,a,o){const u=n.referenceType,d=a.enter("imageReference");let h=a.enter("label");const m=a.createTracker(o);let v=m.move("![");const y=a.safe(n.alt,{before:v,after:"]",...m.current()});v+=m.move(y+"]["),h();const x=a.stack;a.stack=[],h=a.enter("reference");const T=a.safe(a.associationId(n),{before:v,after:"]",...m.current()});return h(),a.stack=x,d(),u==="full"||!y||y!==T?v+=m.move(T+"]"):u==="shortcut"?v=v.slice(0,-1):v+=m.move("]"),v}function lcn(){return"!"}GFe.peek=ucn;function GFe(n,r,a){let o=n.value||"",u="`",d=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(o);)u+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++d<a.unsafe.length;){const h=a.unsafe[d],m=a.compilePattern(h);let v;if(h.atBreak)for(;v=m.exec(o);){let y=v.index;o.charCodeAt(y)===10&&o.charCodeAt(y-1)===13&&y--,o=o.slice(0,y)+" "+o.slice(v.index+1)}}return u+o+u}function ucn(){return"`"}function KFe(n,r){const a=$Fe(n);return!!(!r.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(a===n.url||"mailto:"+a===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}WFe.peek=hcn;function WFe(n,r,a,o){const u=qhe(a),d=u==='"'?"Quote":"Apostrophe",h=a.createTracker(o);let m,v;if(KFe(n,a)){const x=a.stack;a.stack=[],m=a.enter("autolink");let T=h.move("<");return T+=h.move(a.containerPhrasing(n,{before:T,after:">",...h.current()})),T+=h.move(">"),m(),a.stack=x,T}m=a.enter("link"),v=a.enter("label");let y=h.move("[");return y+=h.move(a.containerPhrasing(n,{before:y,after:"](",...h.current()})),y+=h.move("]("),v(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(v=a.enter("destinationLiteral"),y+=h.move("<"),y+=h.move(a.safe(n.url,{before:y,after:">",...h.current()})),y+=h.move(">")):(v=a.enter("destinationRaw"),y+=h.move(a.safe(n.url,{before:y,after:n.title?" ":")",...h.current()}))),v(),n.title&&(v=a.enter(`title${d}`),y+=h.move(" "+u),y+=h.move(a.safe(n.title,{before:y,after:u,...h.current()})),y+=h.move(u),v()),y+=h.move(")"),m(),y}function hcn(n,r,a){return KFe(n,a)?"<":"["}YFe.peek=fcn;function YFe(n,r,a,o){const u=n.referenceType,d=a.enter("linkReference");let h=a.enter("label");const m=a.createTracker(o);let v=m.move("[");const y=a.containerPhrasing(n,{before:v,after:"]",...m.current()});v+=m.move(y+"]["),h();const x=a.stack;a.stack=[],h=a.enter("reference");const T=a.safe(a.associationId(n),{before:v,after:"]",...m.current()});return h(),a.stack=x,d(),u==="full"||!y||y!==T?v+=m.move(T+"]"):u==="shortcut"?v=v.slice(0,-1):v+=m.move("]"),v}function fcn(){return"["}function Hhe(n){const r=n.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function dcn(n){const r=Hhe(n),a=n.options.bulletOther;if(!a)return r==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+a+"`) to be different");return a}function gcn(n){const r=n.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function XFe(n){const r=n.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function pcn(n,r,a,o){const u=a.enter("list"),d=a.bulletCurrent;let h=n.ordered?gcn(a):Hhe(a);const m=n.ordered?h==="."?")":".":dcn(a);let v=r&&a.bulletLastUsed?h===a.bulletLastUsed:!1;if(!n.ordered){const x=n.children?n.children[0]:void 0;if((h==="*"||h==="-")&&x&&(!x.children||!x.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(v=!0),XFe(a)===h&&x){let T=-1;for(;++T<n.children.length;){const C=n.children[T];if(C&&C.type==="listItem"&&C.children&&C.children[0]&&C.children[0].type==="thematicBreak"){v=!0;break}}}}v&&(h=m),a.bulletCurrent=h;const y=a.containerFlow(n,o);return a.bulletLastUsed=h,a.bulletCurrent=d,u(),y}function bcn(n){const r=n.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function mcn(n,r,a,o){const u=bcn(a);let d=a.bulletCurrent||Hhe(a);r&&r.type==="list"&&r.ordered&&(d=(typeof r.start=="number"&&r.start>-1?r.start:1)+(a.options.incrementListMarker===!1?0:r.children.indexOf(n))+d);let h=d.length+1;(u==="tab"||u==="mixed"&&(r&&r.type==="list"&&r.spread||n.spread))&&(h=Math.ceil(h/4)*4);const m=a.createTracker(o);m.move(d+" ".repeat(h-d.length)),m.shift(h);const v=a.enter("listItem"),y=a.indentLines(a.containerFlow(n,m.current()),x);return v(),y;function x(T,C,S){return C?(S?"":" ".repeat(h))+T:(S?d:d+" ".repeat(h-d.length))+T}}function vcn(n,r,a,o){const u=a.enter("paragraph"),d=a.enter("phrasing"),h=a.containerPhrasing(n,o);return d(),u(),h}const wcn=mK(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ycn(n,r,a,o){return(n.children.some(function(h){return wcn(h)})?a.containerPhrasing:a.containerFlow).call(a,n,o)}function xcn(n){const r=n.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}QFe.peek=kcn;function QFe(n,r,a,o){const u=xcn(a),d=a.enter("strong"),h=a.createTracker(o),m=h.move(u+u);let v=h.move(a.containerPhrasing(n,{after:u,before:m,...h.current()}));const y=v.charCodeAt(0),x=yK(o.before.charCodeAt(o.before.length-1),y,u);x.inside&&(v=VN(y)+v.slice(1));const T=v.charCodeAt(v.length-1),C=yK(o.after.charCodeAt(0),T,u);C.inside&&(v=v.slice(0,-1)+VN(T));const S=h.move(u+u);return d(),a.attentionEncodeSurroundingInfo={after:C.outside,before:x.outside},m+v+S}function kcn(n,r,a){return a.options.strong||"*"}function Tcn(n,r,a,o){return a.safe(n.value,o)}function Ecn(n){const r=n.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function Ccn(n,r,a){const o=(XFe(a)+(a.options.ruleSpaces?" ":"")).repeat(Ecn(a));return a.options.ruleSpaces?o.slice(0,-1):o}const JFe={blockquote:Hon,break:BFe,code:Yon,definition:Qon,emphasis:jFe,hardBreak:BFe,heading:scn,html:HFe,image:VFe,imageReference:UFe,inlineCode:GFe,link:WFe,linkReference:YFe,list:pcn,listItem:mcn,paragraph:vcn,root:ycn,strong:QFe,text:Tcn,thematicBreak:Ccn};function Scn(){return{enter:{table:_cn,tableData:ZFe,tableHeader:ZFe,tableRow:Lcn},exit:{codeText:Mcn,table:Acn,tableData:Vhe,tableHeader:Vhe,tableRow:Vhe}}}function _cn(n){const r=n._align;this.enter({type:"table",align:r.map(function(a){return a==="none"?null:a}),children:[]},n),this.data.inTable=!0}function Acn(n){this.exit(n),this.data.inTable=void 0}function Lcn(n){this.enter({type:"tableRow",children:[]},n)}function Vhe(n){this.exit(n)}function ZFe(n){this.enter({type:"tableCell",children:[]},n)}function Mcn(n){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,Dcn));const a=this.stack[this.stack.length-1];a.type,a.value=r,this.exit(n)}function Dcn(n,r){return r==="|"?r:n}function Icn(n){const r=n||{},a=r.tableCellPadding,o=r.tablePipeAlign,u=r.stringLength,d=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
116
116
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:C,table:h,tableCell:v,tableRow:m}};function h(S,A,I,P){return y(x(S,I,P),S.align)}function m(S,A,I,P){const N=T(S,I,P),F=y([N]);return F.slice(0,F.indexOf(`
|
|
117
|
-
`))}function v(S,A,I,P){const N=I.enter("tableCell"),F=I.enter("phrasing"),j=I.containerPhrasing(S,{...P,before:d,after:d});return F(),N(),j}function y(S,A){return zon(S,{align:A,alignDelimiters:o,padding:a,stringLength:u})}function x(S,A,I){const P=S.children;let N=-1;const F=[],j=A.enter("table");for(;++N<P.length;)F[N]=T(P[N],A,I);return j(),F}function T(S,A,I){const P=S.children;let N=-1;const F=[],j=A.enter("tableRow");for(;++N<P.length;)F[N]=v(P[N],S,A,I);return j(),F}function C(S,A,I){let P=JFe.inlineCode(S,A,I);return I.stack.includes("tableCell")&&(P=P.replace(/\|/g,"\\$&")),P}}function Ocn(){return{exit:{taskListCheckValueChecked:eje,taskListCheckValueUnchecked:eje,paragraph:Ncn}}}function Pcn(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Bcn}}}function eje(n){const r=this.stack[this.stack.length-2];r.type,r.checked=n.type==="taskListCheckValueChecked"}function Ncn(n){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const o=a.children[0];if(o&&o.type==="text"){const u=r.children;let d=-1,h;for(;++d<u.length;){const m=u[d];if(m.type==="paragraph"){h=m;break}}h===a&&(o.value=o.value.slice(1),o.value.length===0?a.children.shift():a.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,a.position.start=Object.assign({},o.position.start)))}}this.exit(n)}function Bcn(n,r,a,o){const u=n.children[0],d=typeof n.checked=="boolean"&&u&&u.type==="paragraph",h="["+(n.checked?"x":" ")+"] ",m=a.createTracker(o);d&&m.move(h);let v=JFe.listItem(n,r,a,{...o,...m.current()});return d&&(v=v.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,y)),v;function y(x){return x+h}}function Rcn(){return[uon(),Don(),Non(),Scn(),Ocn()]}function Fcn(n){return{extensions:[hon(),Ion(n),Bon(),Icn(n),Pcn()]}}function jcn(n,r,a,o){const u=n.length;let d=0,h;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,a=a>0?a:0,o.length<1e4)h=Array.from(o),h.unshift(r,a),n.splice(...h);else for(a&&n.splice(r,a);d<o.length;)h=o.slice(d,d+1e4),h.unshift(r,0),n.splice(...h),d+=1e4,r+=1e4}const tje={}.hasOwnProperty;function $cn(n){const r={};let a=-1;for(;++a<n.length;)zcn(r,n[a]);return r}function zcn(n,r){let a;for(a in r){const u=(tje.call(n,a)?n[a]:void 0)||(n[a]={}),d=r[a];let h;if(d)for(h in d){tje.call(u,h)||(u[h]=[]);const m=d[h];qcn(u[h],Array.isArray(m)?m:m?[m]:[])}}}function qcn(n,r){let a=-1;const o=[];for(;++a<r.length;)(r[a].add==="after"?n:o).push(r[a]);jcn(n,0,0,o)}const UN=xK(/[A-Za-z]/),Uhe=xK(/[\dA-Za-z]/);function Hcn(n){return n!==null&&(n<32||n===127)}function bL(n){return n!==null&&(n<0||n===32)}const nje=xK(new RegExp("\\p{P}|\\p{S}","u")),GN=xK(/\s/);function xK(n){return r;function r(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}const Vcn={tokenize:Xcn,partial:!0},rje={tokenize:Qcn,partial:!0},ije={tokenize:Jcn,partial:!0},aje={tokenize:Zcn,partial:!0},Ucn={tokenize:eln,partial:!0},sje={name:"wwwAutolink",tokenize:Wcn,previous:cje},oje={name:"protocolAutolink",tokenize:Ycn,previous:lje},Z5={name:"emailAutolink",tokenize:Kcn,previous:uje},E3={};function Gcn(){return{text:E3}}let VT=48;for(;VT<123;)E3[VT]=Z5,VT++,VT===58?VT=65:VT===91&&(VT=97);E3[43]=Z5,E3[45]=Z5,E3[46]=Z5,E3[95]=Z5,E3[72]=[Z5,oje],E3[104]=[Z5,oje],E3[87]=[Z5,sje],E3[119]=[Z5,sje];function Kcn(n,r,a){const o=this;let u,d;return h;function h(T){return!Ghe(T)||!uje.call(o,o.previous)||Khe(o.events)?a(T):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),m(T))}function m(T){return Ghe(T)?(n.consume(T),m):T===64?(n.consume(T),v):a(T)}function v(T){return T===46?n.check(Ucn,x,y)(T):T===45||T===95||Uhe(T)?(d=!0,n.consume(T),v):x(T)}function y(T){return n.consume(T),u=!0,v}function x(T){return d&&u&&UN(o.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),r(T)):a(T)}}function Wcn(n,r,a){const o=this;return u;function u(h){return h!==87&&h!==119||!cje.call(o,o.previous)||Khe(o.events)?a(h):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Vcn,n.attempt(rje,n.attempt(ije,d),a),a)(h))}function d(h){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),r(h)}}function Ycn(n,r,a){const o=this;let u="",d=!1;return h;function h(T){return(T===72||T===104)&&lje.call(o,o.previous)&&!Khe(o.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),u+=String.fromCodePoint(T),n.consume(T),m):a(T)}function m(T){if(UN(T)&&u.length<5)return u+=String.fromCodePoint(T),n.consume(T),m;if(T===58){const C=u.toLowerCase();if(C==="http"||C==="https")return n.consume(T),v}return a(T)}function v(T){return T===47?(n.consume(T),d?y:(d=!0,v)):a(T)}function y(T){return T===null||Hcn(T)||bL(T)||GN(T)||nje(T)?a(T):n.attempt(rje,n.attempt(ije,x),a)(T)}function x(T){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),r(T)}}function Xcn(n,r,a){let o=0;return u;function u(h){return(h===87||h===119)&&o<3?(o++,n.consume(h),u):h===46&&o===3?(n.consume(h),d):a(h)}function d(h){return h===null?a(h):r(h)}}function Qcn(n,r,a){let o,u,d;return h;function h(y){return y===46||y===95?n.check(aje,v,m)(y):y===null||bL(y)||GN(y)||y!==45&&nje(y)?v(y):(d=!0,n.consume(y),h)}function m(y){return y===95?o=!0:(u=o,o=void 0),n.consume(y),h}function v(y){return u||o||!d?a(y):r(y)}}function Jcn(n,r){let a=0,o=0;return u;function u(h){return h===40?(a++,n.consume(h),u):h===41&&o<a?d(h):h===33||h===34||h===38||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===60||h===63||h===93||h===95||h===126?n.check(aje,r,d)(h):h===null||bL(h)||GN(h)?r(h):(n.consume(h),u)}function d(h){return h===41&&o++,n.consume(h),u}}function Zcn(n,r,a){return o;function o(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(n.consume(m),o):m===38?(n.consume(m),d):m===93?(n.consume(m),u):m===60||m===null||bL(m)||GN(m)?r(m):a(m)}function u(m){return m===null||m===40||m===91||bL(m)||GN(m)?r(m):o(m)}function d(m){return UN(m)?h(m):a(m)}function h(m){return m===59?(n.consume(m),o):UN(m)?(n.consume(m),h):a(m)}}function eln(n,r,a){return o;function o(d){return n.consume(d),u}function u(d){return Uhe(d)?a(d):r(d)}}function cje(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||bL(n)}function lje(n){return!UN(n)}function uje(n){return!(n===47||Ghe(n))}function Ghe(n){return n===43||n===45||n===46||n===95||Uhe(n)}function Khe(n){let r=n.length,a=!1;for(;r--;){const o=n[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){a=!0;break}if(o._gfmAutolinkLiteralWalkedInto){a=!1;break}}return n.length>0&&!a&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}function tln(n){return n!==null&&n<-2}function kK(n){return n!==null&&(n<0||n===32)}function Whe(n){return n===-2||n===-1||n===32}function Yhe(n,r,a,o){const u=o?o-1:Number.POSITIVE_INFINITY;let d=0;return h;function h(v){return Whe(v)?(n.enter(a),m(v)):r(v)}function m(v){return Whe(v)&&d++<u?(n.consume(v),m):(n.exit(a),r(v))}}const nln={partial:!0,tokenize:rln};function rln(n,r,a){return o;function o(d){return Whe(d)?Yhe(n,u,"linePrefix")(d):u(d)}function u(d){return d===null||tln(d)?r(d):a(d)}}function Xhe(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const iln={tokenize:fln,partial:!0};function aln(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:lln,continuation:{tokenize:uln},exit:hln}},text:{91:{name:"gfmFootnoteCall",tokenize:cln},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sln,resolveTo:oln}}}}function sln(n,r,a){const o=this;let u=o.events.length;const d=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let h;for(;u--;){const v=o.events[u][1];if(v.type==="labelImage"){h=v;break}if(v.type==="gfmFootnoteCall"||v.type==="labelLink"||v.type==="label"||v.type==="image"||v.type==="link")break}return m;function m(v){if(!h||!h._balanced)return a(v);const y=Xhe(o.sliceSerialize({start:h.end,end:o.now()}));return y.codePointAt(0)!==94||!d.includes(y.slice(1))?a(v):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(v),n.exit("gfmFootnoteCallLabelMarker"),r(v))}}function oln(n,r){let a=n.length;for(;a--;)if(n[a][1].type==="labelImage"&&n[a][0]==="enter"){n[a][1];break}n[a+1][1].type="data",n[a+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},n[a+3][1].start),end:Object.assign({},n[n.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},n[a+3][1].end),end:Object.assign({},n[a+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const d={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},n[n.length-1][1].start)},h={type:"chunkString",contentType:"string",start:Object.assign({},d.start),end:Object.assign({},d.end)},m=[n[a+1],n[a+2],["enter",o,r],n[a+3],n[a+4],["enter",u,r],["exit",u,r],["enter",d,r],["enter",h,r],["exit",h,r],["exit",d,r],n[n.length-2],n[n.length-1],["exit",o,r]];return n.splice(a,n.length-a+1,...m),n}function cln(n,r,a){const o=this,u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let d=0,h;return m;function m(T){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(T),n.exit("gfmFootnoteCallLabelMarker"),v}function v(T){return T!==94?a(T):(n.enter("gfmFootnoteCallMarker"),n.consume(T),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",y)}function y(T){if(d>999||T===93&&!h||T===null||T===91||kK(T))return a(T);if(T===93){n.exit("chunkString");const C=n.exit("gfmFootnoteCallString");return u.includes(Xhe(o.sliceSerialize(C)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(T),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),r):a(T)}return kK(T)||(h=!0),d++,n.consume(T),T===92?x:y}function x(T){return T===91||T===92||T===93?(n.consume(T),d++,y):y(T)}}function lln(n,r,a){const o=this,u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let d,h=0,m;return v;function v(A){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),y}function y(A){return A===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):a(A)}function x(A){if(h>999||A===93&&!m||A===null||A===91||kK(A))return a(A);if(A===93){n.exit("chunkString");const I=n.exit("gfmFootnoteDefinitionLabelString");return d=Xhe(o.sliceSerialize(I)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),C}return kK(A)||(m=!0),h++,n.consume(A),A===92?T:x}function T(A){return A===91||A===92||A===93?(n.consume(A),h++,x):x(A)}function C(A){return A===58?(n.enter("definitionMarker"),n.consume(A),n.exit("definitionMarker"),u.includes(d)||u.push(d),Yhe(n,S,"gfmFootnoteDefinitionWhitespace")):a(A)}function S(A){return r(A)}}function uln(n,r,a){return n.check(nln,r,n.attempt(iln,r,a))}function hln(n){n.exit("gfmFootnoteDefinition")}function fln(n,r,a){const o=this;return Yhe(n,u,"gfmFootnoteDefinitionIndent",5);function u(d){const h=o.events[o.events.length-1];return h&&h[1].type==="gfmFootnoteDefinitionIndent"&&h[2].sliceSerialize(h[1],!0).length===4?r(d):a(d)}}function Qhe(n,r,a,o){const u=n.length;let d=0,h;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,a=a>0?a:0,o.length<1e4)h=Array.from(o),h.unshift(r,a),n.splice(...h);else for(a&&n.splice(r,a);d<o.length;)h=o.slice(d,d+1e4),h.unshift(r,0),n.splice(...h),d+=1e4,r+=1e4}function dln(n){return n!==null&&(n<0||n===32)}const gln=hje(new RegExp("\\p{P}|\\p{S}","u")),pln=hje(/\s/);function hje(n){return r;function r(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}function fje(n){if(n===null||dln(n)||pln(n))return 1;if(gln(n))return 2}function bln(n,r,a){const o=[];let u=-1;for(;++u<n.length;){const d=n[u].resolveAll;d&&!o.includes(d)&&(r=d(r,a),o.push(d))}return r}function mln(n){let a=(n||{}).singleTilde;const o={name:"strikethrough",tokenize:d,resolveAll:u};return a==null&&(a=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function u(h,m){let v=-1;for(;++v<h.length;)if(h[v][0]==="enter"&&h[v][1].type==="strikethroughSequenceTemporary"&&h[v][1]._close){let y=v;for(;y--;)if(h[y][0]==="exit"&&h[y][1].type==="strikethroughSequenceTemporary"&&h[y][1]._open&&h[v][1].end.offset-h[v][1].start.offset===h[y][1].end.offset-h[y][1].start.offset){h[v][1].type="strikethroughSequence",h[y][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},h[y][1].start),end:Object.assign({},h[v][1].end)},T={type:"strikethroughText",start:Object.assign({},h[y][1].end),end:Object.assign({},h[v][1].start)},C=[["enter",x,m],["enter",h[y][1],m],["exit",h[y][1],m],["enter",T,m]],S=m.parser.constructs.insideSpan.null;S&&Qhe(C,C.length,0,bln(S,h.slice(y+1,v),m)),Qhe(C,C.length,0,[["exit",T,m],["enter",h[v][1],m],["exit",h[v][1],m],["exit",x,m]]),Qhe(h,y-1,v-y+3,C),v=y+C.length-2;break}}for(v=-1;++v<h.length;)h[v][1].type==="strikethroughSequenceTemporary"&&(h[v][1].type="data");return h}function d(h,m,v){const y=this.previous,x=this.events;let T=0;return C;function C(A){return y===126&&x[x.length-1][1].type!=="characterEscape"?v(A):(h.enter("strikethroughSequenceTemporary"),S(A))}function S(A){const I=fje(y);if(A===126)return T>1?v(A):(h.consume(A),T++,S);if(T<2&&!a)return v(A);const P=h.exit("strikethroughSequenceTemporary"),N=fje(A);return P._open=!N||N===2&&!!I,P._close=!I||I===2&&!!N,m(A)}}}function TK(n){return n!==null&&n<-2}function dje(n){return n!==null&&(n<0||n===32)}function UT(n){return n===-2||n===-1||n===32}function KN(n,r,a,o){const u=o?o-1:Number.POSITIVE_INFINITY;let d=0;return h;function h(v){return UT(v)?(n.enter(a),m(v)):r(v)}function m(v){return UT(v)&&d++<u?(n.consume(v),m):(n.exit(a),r(v))}}class vln{constructor(){this.map=[]}add(r,a,o){wln(this,r,a,o)}consume(r){if(this.map.sort(function(d,h){return d[0]-h[0]}),this.map.length===0)return;let a=this.map.length;const o=[];for(;a>0;)a-=1,o.push(r.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),r.length=this.map[a][0];o.push(r.slice()),r.length=0;let u=o.pop();for(;u;){for(const d of u)r.push(d);u=o.pop()}this.map.length=0}}function wln(n,r,a,o){let u=0;if(!(a===0&&o.length===0)){for(;u<n.map.length;){if(n.map[u][0]===r){n.map[u][1]+=a,n.map[u][2].push(...o);return}u+=1}n.map.push([r,a,o])}}function yln(n,r){let a=!1;const o=[];for(;r<n.length;){const u=n[r];if(a){if(u[0]==="enter")u[1].type==="tableContent"&&o.push(n[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(n[r-1][1].type==="tableDelimiterMarker"){const d=o.length-1;o[d]=o[d]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(a=!0);r+=1}return o}function xln(){return{flow:{null:{name:"table",tokenize:kln,resolveAll:Tln}}}}function kln(n,r,a){const o=this;let u=0,d=0,h;return m;function m(K){let B=o.events.length-1;for(;B>-1;){const ie=o.events[B][1].type;if(ie==="lineEnding"||ie==="linePrefix")B--;else break}const J=B>-1?o.events[B][1].type:null,R=J==="tableHead"||J==="tableRow"?q:v;return R===q&&o.parser.lazy[o.now().line]?a(K):R(K)}function v(K){return n.enter("tableHead"),n.enter("tableRow"),y(K)}function y(K){return K===124||(h=!0,d+=1),x(K)}function x(K){return K===null?a(K):TK(K)?d>1?(d=0,o.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(K),n.exit("lineEnding"),S):a(K):UT(K)?KN(n,x,"whitespace")(K):(d+=1,h&&(h=!1,u+=1),K===124?(n.enter("tableCellDivider"),n.consume(K),n.exit("tableCellDivider"),h=!0,x):(n.enter("data"),T(K)))}function T(K){return K===null||K===124||dje(K)?(n.exit("data"),x(K)):(n.consume(K),K===92?C:T)}function C(K){return K===92||K===124?(n.consume(K),T):T(K)}function S(K){return o.interrupt=!1,o.parser.lazy[o.now().line]?a(K):(n.enter("tableDelimiterRow"),h=!1,UT(K)?KN(n,A,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):A(K))}function A(K){return K===45||K===58?P(K):K===124?(h=!0,n.enter("tableCellDivider"),n.consume(K),n.exit("tableCellDivider"),I):V(K)}function I(K){return UT(K)?KN(n,P,"whitespace")(K):P(K)}function P(K){return K===58?(d+=1,h=!0,n.enter("tableDelimiterMarker"),n.consume(K),n.exit("tableDelimiterMarker"),N):K===45?(d+=1,N(K)):K===null||TK(K)?U(K):V(K)}function N(K){return K===45?(n.enter("tableDelimiterFiller"),F(K)):V(K)}function F(K){return K===45?(n.consume(K),F):K===58?(h=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(K),n.exit("tableDelimiterMarker"),j):(n.exit("tableDelimiterFiller"),j(K))}function j(K){return UT(K)?KN(n,U,"whitespace")(K):U(K)}function U(K){return K===124?A(K):K===null||TK(K)?!h||u!==d?V(K):(n.exit("tableDelimiterRow"),n.exit("tableHead"),r(K)):V(K)}function V(K){return a(K)}function q(K){return n.enter("tableRow"),H(K)}function H(K){return K===124?(n.enter("tableCellDivider"),n.consume(K),n.exit("tableCellDivider"),H):K===null||TK(K)?(n.exit("tableRow"),r(K)):UT(K)?KN(n,H,"whitespace")(K):(n.enter("data"),W(K))}function W(K){return K===null||K===124||dje(K)?(n.exit("data"),H(K)):(n.consume(K),K===92?z:W)}function z(K){return K===92||K===124?(n.consume(K),W):W(K)}}function Tln(n,r){let a=-1,o=!0,u=0,d=[0,0,0,0],h=[0,0,0,0],m=!1,v=0,y,x,T;const C=new vln;for(;++a<n.length;){const S=n[a],A=S[1];S[0]==="enter"?A.type==="tableHead"?(m=!1,v!==0&&(gje(C,r,v,y,x),x=void 0,v=0),y={type:"table",start:Object.assign({},A.start),end:Object.assign({},A.end)},C.add(a,0,[["enter",y,r]])):A.type==="tableRow"||A.type==="tableDelimiterRow"?(o=!0,T=void 0,d=[0,0,0,0],h=[0,a+1,0,0],m&&(m=!1,x={type:"tableBody",start:Object.assign({},A.start),end:Object.assign({},A.end)},C.add(a,0,[["enter",x,r]])),u=A.type==="tableDelimiterRow"?2:x?3:1):u&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")?(o=!1,h[2]===0&&(d[1]!==0&&(h[0]=h[1],T=EK(C,r,d,u,void 0,T),d=[0,0,0,0]),h[2]=a)):A.type==="tableCellDivider"&&(o?o=!1:(d[1]!==0&&(h[0]=h[1],T=EK(C,r,d,u,void 0,T)),d=h,h=[d[1],a,0,0])):A.type==="tableHead"?(m=!0,v=a):A.type==="tableRow"||A.type==="tableDelimiterRow"?(v=a,d[1]!==0?(h[0]=h[1],T=EK(C,r,d,u,a,T)):h[1]!==0&&(T=EK(C,r,h,u,a,T)),u=0):u&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")&&(h[3]=a)}for(v!==0&&gje(C,r,v,y,x),C.consume(r.events),a=-1;++a<r.events.length;){const S=r.events[a];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=yln(r.events,a))}return n}function EK(n,r,a,o,u,d){const h=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",m="tableContent";a[0]!==0&&(d.end=Object.assign({},mL(r.events,a[0])),n.add(a[0],0,[["exit",d,r]]));const v=mL(r.events,a[1]);if(d={type:h,start:Object.assign({},v),end:Object.assign({},v)},n.add(a[1],0,[["enter",d,r]]),a[2]!==0){const y=mL(r.events,a[2]),x=mL(r.events,a[3]),T={type:m,start:Object.assign({},y),end:Object.assign({},x)};if(n.add(a[2],0,[["enter",T,r]]),o!==2){const C=r.events[a[2]],S=r.events[a[3]];if(C[1].end=Object.assign({},S[1].end),C[1].type="chunkText",C[1].contentType="text",a[3]>a[2]+1){const A=a[2]+1,I=a[3]-a[2]-1;n.add(A,I,[])}}n.add(a[3]+1,0,[["exit",T,r]])}return u!==void 0&&(d.end=Object.assign({},mL(r.events,u)),n.add(u,0,[["exit",d,r]]),d=void 0),d}function gje(n,r,a,o,u){const d=[],h=mL(r.events,a);u&&(u.end=Object.assign({},h),d.push(["exit",u,r])),o.end=Object.assign({},h),d.push(["exit",o,r]),n.add(a+1,0,d)}function mL(n,r){const a=n[r],o=a[0]==="enter"?"start":"end";return a[1][o]}function Eln(n){return n!==null&&n<-2}function Cln(n){return n!==null&&(n<0||n===32)}function Jhe(n){return n===-2||n===-1||n===32}function Sln(n,r,a,o){const u=Number.POSITIVE_INFINITY;let d=0;return h;function h(v){return Jhe(v)?(n.enter(a),m(v)):r(v)}function m(v){return Jhe(v)&&d++<u?(n.consume(v),m):(n.exit(a),r(v))}}const _ln={name:"tasklistCheck",tokenize:Lln};function Aln(){return{text:{91:_ln}}}function Lln(n,r,a){const o=this;return u;function u(v){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?a(v):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(v),n.exit("taskListCheckMarker"),d)}function d(v){return Cln(v)?(n.enter("taskListCheckValueUnchecked"),n.consume(v),n.exit("taskListCheckValueUnchecked"),h):v===88||v===120?(n.enter("taskListCheckValueChecked"),n.consume(v),n.exit("taskListCheckValueChecked"),h):a(v)}function h(v){return v===93?(n.enter("taskListCheckMarker"),n.consume(v),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),m):a(v)}function m(v){return Eln(v)?r(v):Jhe(v)?n.check({tokenize:Mln},r,a)(v):a(v)}}function Mln(n,r,a){return Sln(n,o,"whitespace");function o(u){return u===null?a(u):r(u)}}function Dln(n){return $cn([Gcn(),aln(),mln(n),xln(),Aln()])}const Iln={};function Oln(n){const r=this,a=n||Iln,o=r.data(),u=o.micromarkExtensions||(o.micromarkExtensions=[]),d=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),h=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);u.push(Dln(a)),d.push(Rcn()),h.push(Fcn(a))}var Zhe=function(){return(Zhe=Object.assign||function(n){for(var r,a=1,o=arguments.length;a<o;a++)for(var u in r=arguments[a])Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u]);return n}).apply(this,arguments)},vL,wL,yL,efe=ll.createContext(void 0),pje="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML",bje="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js",mje="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js",Pln=function(T){var r=T.config,a=T.version,a=a===void 0?4:a,o=T.src,o=o===void 0?a===2?pje:a===3?bje:mje:o,u=T.onStartup,d=T.onLoad,v=T.asyncLoad,h=v!==void 0&&v,m=T.onError,v=T.typesettingOptions,y=T.renderMode,y=y===void 0?"post":y,x=T.hideUntilTypeset,T=T.children,S=ll.useContext(efe);if(S?.version!==void 0&&S?.version!==a)throw Error("Cannot nest MathJaxContexts with different versions. MathJaxContexts should not be nested at all but if they are, they cannot have different versions. Stick with one version of MathJax in your app and avoid using more than one MathJaxContext.");if(a===2&&(wL!==void 0||yL!==void 0)||a===3&&(vL!==void 0||yL!==void 0)||a===4&&(vL!==void 0||wL!==void 0))throw Error("Cannot use two MathJax versions simultaneously in the same app due to how MathJax is set up in the browser; either you have multiple MathJaxContexts with different versions or you have mounted and unmounted MathJaxContexts with different versions. Please stick with one version of MathJax in your app. File an issue in the project Github page if you need this feature.");var C=ll.useRef(S),S=ll.useRef(S?.version||null);if(S.current===null)S.current=a;else if(S.current!==a)throw Error("Cannot change version of MathJax in a MathJaxContext after it has mounted. Reload the page with a new version when this must happen.");var A=o||(a===2?pje:a===3?bje:mje);function I(P,N){r&&(window.MathJax=r);var F=document.createElement("script");F.type="text/javascript",F.src=A,F.async=h,F.addEventListener("load",function(){var j=window.MathJax;u&&u(j),P(j),d&&d()}),F.addEventListener("error",function(j){return N(j)}),document.getElementsByTagName("head")[0].appendChild(F)}return C.current===void 0&&(S={typesettingOptions:v,renderMode:y,hideUntilTypeset:x},a===2?vL===void 0&&(typeof window<"u"?(vL=new Promise(I)).catch(function(P){if(!m)throw Error("Failed to download MathJax version 2 from '".concat(A,"' due to: ").concat(JSON.stringify(P)));m(P)}):(vL=Promise.reject()).catch(function(P){})):a===3?wL===void 0&&(typeof window<"u"?(wL=new Promise(I)).catch(function(P){if(!m)throw Error("Failed to download MathJax version 3 from '".concat(A,"' due to: ").concat(P));m(P)}):(wL=Promise.reject()).catch(function(P){})):yL===void 0&&(typeof window<"u"?(yL=new Promise(I)).catch(function(P){if(!m)throw Error("Failed to download MathJax version 4 from '".concat(A,"' due to: ").concat(P));m(P)}):(yL=Promise.reject()).catch(function(P){})),C.current=Zhe(Zhe({},S),a===2?{version:2,promise:vL}:a===3?{version:3,promise:wL}:{version:4,promise:yL})),ll.createElement(efe.Provider,{value:C.current},T)},D7=function(){return(D7=Object.assign||function(n){for(var r,a=1,o=arguments.length;a<o;a++)for(var u in r=arguments[a])Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u]);return n}).apply(this,arguments)},Nln=function(n,r){var a={};for(u in n)Object.prototype.hasOwnProperty.call(n,u)&&r.indexOf(u)<0&&(a[u]=n[u]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(n);o<u.length;o++)r.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(n,u[o])&&(a[u[o]]=n[u[o]]);return a},WN=function(n){return"Typesetting failed: ".concat(n.message!==void 0?n.message:JSON.stringify(n))},Bln=function(n){function r(){var V;I==="every"&&F&&P==="post"&&S.current!==null&&(S.current.style.visibility=(V=(V=T.style)==null?void 0:V.visibility)!=null?V:"visible"),j.current||(I==="first"&&S.current!==null&&(S.current.style.visibility="visible"),u&&u(),j.current=!0),d&&d(),U.current=!1}var o=n.inline,a=o!==void 0&&o,o=n.hideUntilTypeset,u=n.onInitTypeset,d=n.onTypeset,h=n.text,m=n.dynamic,v=n.typesettingOptions,y=n.renderMode,x=n.children,T=Nln(n,["inline","hideUntilTypeset","onInitTypeset","onTypeset","text","dynamic","typesettingOptions","renderMode","children"]),C=ll.useRef(""),S=ll.useRef(null),A=ll.useContext(efe),I=o??A?.hideUntilTypeset,P=y??A?.renderMode,N=v??A?.typesettingOptions,F=m!==!1&&(m||process.env.NODE_ENV!=="production"),j=ll.useRef(!1),U=ll.useRef(!1);return!U.current&&S.current!==null&&F&&I==="every"&&P==="post"&&(S.current.style.visibility="hidden"),(typeof window<"u"?ll.useLayoutEffect:ll.useEffect)(function(){if((F||!j.current)&&S.current!==null){if(!A)throw Error("MathJax was not loaded, did you use the MathJax component outside of a MathJaxContext?");if(P==="pre"){if(!(typeof(V=h)=="string"&&0<V.length))throw Error(`Render mode 'pre' requires text prop to be set and non-empty, which was currently "`.concat(h,'"'));if(!v||!v.fn)throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");if(A.version===2)throw Error("Render mode 'pre' only available with MathJax 3 and 4, and version 2 is currently in use")}P!=="post"&&h===C.current||U.current||(U.current=!0,A.version===3||A.version===4?A.promise.then(function(q){var H;P==="pre"?(H=function(W){C.current=h,q.startup.document.clear(),q.startup.document.updateDocument(),S.current!==null&&(S.current.innerHTML=W.outerHTML),r()},v.fn.endsWith("Promise")?q.startup.promise.then(function(){return q[N.fn](h,D7(D7({},N?.options||{}),{display:!a}))}).then(H).catch(function(W){throw r(),Error(WN(W))}):q.startup.promise.then(function(){var W=q[N.fn](h,D7(D7({},N?.options||{}),{display:!a}));H(W)}).catch(function(W){throw r(),Error(WN(W))})):q.startup.promise.then(function(){return q.typesetClear([S.current]),q.typesetPromise([S.current])}).then(r).catch(function(W){throw r(),Error(WN(W))})}).catch(function(q){throw r(),Error(WN(q))}):A.promise.then(function(q){q.Hub.Queue(["Typeset",q.Hub,S.current]),q.Hub.Queue(r)}).catch(function(q){throw r(),Error(WN(q))}))}var V}),ll.createElement("span",D7({},T,{style:D7(D7({display:a?"inline":"block"},T.style),{visibility:I?"hidden":(n=T.style)==null?void 0:n.visibility}),ref:S}),x)};mm.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",logLevel:3,deterministicIds:!0,flowchart:{useMaxWidth:!0,htmlLabels:!0}});function Rln(n){try{navigator.clipboard.writeText(n)}catch(r){console.error("[Markdown] 复制失败:",r)}}function vje(n){const r=ll.useRef(null),[a,o]=ll.useState(!1),u=ll.useRef(""),d=ll.useMemo(()=>`mermaid-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[]);ll.useEffect(()=>{if(!(!n.code||!r.current)&&n.code!==u.current){u.current=n.code;try{o(!1),r.current.innerHTML="",mm.render(d,n.code.trim()).then(({svg:m})=>{r.current&&(r.current.innerHTML=m)}).catch(m=>{o(!0),console.error("[Markdown] Mermaid 渲染失败:",m.message)})}catch(m){o(!0),console.error("[Markdown] Mermaid 渲染失败:",m.message)}}},[n.code,d]);function h(){r.current?.querySelector("svg")}return tc.jsx("div",{className:gle("no-dark"),style:{cursor:"pointer",overflow:"auto",minHeight:"50px",backgroundColor:a?"#fee":"#f8f8f8",padding:"10px",border:a?"1px solid #fcc":"none",borderRadius:a?"4px":"0"},ref:r,onClick:()=>h(),children:a?tc.jsx("div",{style:{textAlign:"center",padding:"10px",color:"#c33",fontSize:"14px"},children:"Mermaid 图表渲染失败,请检查代码语法"}):null})}function wje(n){const r=ll.useRef(null),[a,o]=ll.useState(""),[u,d]=ll.useState(null);return ll.useEffect(()=>{if(!r.current)return;const h=r.current.querySelector("code");if(!h)return;const m=h.className.match(/language-(\w+)/),v=m?m[1]:"text";if(o(v),["","md","markdown","text","txt","plaintext","tex","latex"].includes(v)&&(h.style.whiteSpace="pre-wrap"),v==="mermaid"){const x=h.innerText.trim();d(T=>T===x?T:x)}},[n.children]),tc.jsxs(tc.Fragment,{children:[tc.jsx("div",{style:{position:"relative"},children:tc.jsxs("pre",{ref:r,children:[a&&tc.jsx("div",{style:{padding:"10px",backgroundColor:"#3f3f3f",fontSize:"12px",color:"#fff",zIndex:1},children:a}),tc.jsx("span",{className:"copy-code-button",onClick:()=>{r.current&&Rln(r.current.querySelector("code")?.innerText||r.current.innerText||"")}}),n.children]})}),u&&tc.jsx(vje,{code:u})]})}function Fln(n){const a=ll.useRef(null),[o,u]=ll.useState(!0),[d,h]=ll.useState(!1);ll.useEffect(()=>{if(a.current){const y=a.current.scrollHeight;h(y>400),a.current.scrollTop=a.current.scrollHeight}},[n.children]);const m=()=>{u(y=>!y)},v=()=>d&&o?tc.jsx("div",{className:gle("show-hide-button",{collapsed:o,expanded:!o}),children:tc.jsx("button",{type:"button",onClick:m,children:"查看全部"})}):null;return tc.jsxs(tc.Fragment,{children:[tc.jsx("code",{className:gle(n?.className),ref:a,style:{maxHeight:o?"400px":"none",overflowY:"hidden",width:"100%"},children:n.children}),v()]})}const jln={loader:{load:["[tex]/mhchem","[tex]/color","[tex]/noerrors","[tex]/noundefined"]},tex:{packages:{"[+]":["mhchem","color","noerrors","noundefined"]},inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEnvironments:!0,noerrors:{disabled:!1,multiLine:!0,style:{"font-family":"monospace",color:"#333","background-color":"#f5f5f5",padding:"2px 4px","border-radius":"4px"}},noundefined:{color:"#333",background:"#f5f5f5",family:"monospace"}},options:{skipHtmlTags:["script","noscript","style","textarea","pre","code"]},startup:{typeset:!1}},$ln=n=>{const r=[],a=y=>{const x=`__PROTECTED_${r.length}__`;return r.push(y),x},o=y=>y.replace(/\\/g,"\\\\");n=n.replace(/(`{1,3})([\s\S]*?)\1/g,y=>a(y)),n=n.replace(/\$\$[\s\S]*?\$\$|\$[^$\n]+?\$/g,y=>a(o(y))),n=n.replace(/\\\[([\s\S]*?)\\\]|\\\(([\s\S]*?)\\\)/g,y=>a(o(y)));const u=/\\begin\{(align|gather|matrix|cases|split|aligned)\}([\s\S]*?)\\end\{\1\}/g;n=n.replace(u,y=>{const x=o(y);return a(`$$
|
|
118
|
-
${x}
|
|
119
|
-
$$`)});const d="\\{(?:[^{}]|\\{(?:[^{}]|\\{[^{}]*\\})*\\})*\\}";n=n.replace(new RegExp(`\\\\(ce|boxed)${d}`,"g"),y=>a(`$${o(y)}$`));const h=/\\(sum|prod|int|lim)(?:_\{[^}]*\}|\^\{[^}]*\}|_[a-zA-Z0-9]|\^[a-zA-Z0-9]|[ \t])*/g;n=n.replace(h,y=>a(`$${o(y.trim())}$`));const m=new RegExp(`\\\\(frac|sqrt|text|mathbb|mathcal|mathbf|mathit|mathrm|textcolor|color)(?:\\[[^\\]]*\\])?(?:${d})*`,"g");n=n.replace(m,y=>a(`$${o(y)}$`));const v=/\\(rightarrow|leftarrow|Rightarrow|Leftarrow|quad|qquad)\b/g;return n=n.replace(v,y=>a(`$${o(y)}$`)),n=n.replace(/__PROTECTED_(\d+)__/g,(y,x)=>r[parseInt(x)]),n},zln=({content:n})=>{const r=$ln(n);return tc.jsx(Pln,{config:jln,version:3,children:tc.jsx(Bln,{children:tc.jsx(Xsn,{remarkPlugins:[Oln,oon],components:{pre:wje,code:Fln,p:a=>tc.jsx("p",{...a,dir:"auto"}),a:a=>{const o=a.href||"";if(/\.(aac|mp3|opus|wav)$/.test(o))return tc.jsx("figure",{children:tc.jsx("audio",{controls:!0,src:o})});if(/\.(3gp|3g2|webm|ogv|mpeg|mp4|avi)$/.test(o))return tc.jsx("video",{controls:!0,width:"99.9%",children:tc.jsx("source",{src:o})});const d=/^\/#/i.test(o)?"_self":a.target??"_blank";return tc.jsx("a",{...a,target:d})},img:a=>tc.jsx("img",{...a,style:{maxWidth:"100%"},loading:"lazy"})},children:r})},r.length)})},yje=ll.memo(zln);function xje(n){const r=ll.useRef(null);return tc.jsx("div",{dir:"auto",className:"markdown-body",style:{fontSize:`${n.fontSize??15}px`,fontFamily:n.fontFamily||"inherit",...n.style},onContextMenu:n.onContextMenu,onDoubleClickCapture:n.onDoubleClickCapture,ref:r,children:tc.jsx(yje,{content:n.content})})}class _p{constructor(r,a,o){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=r,this.start=a,this.end=o}static range(r,a){return a?!r||!r.loc||!a.loc||r.loc.lexer!==a.loc.lexer?null:new _p(r.loc.lexer,r.loc.start,a.loc.end):r&&r.loc}}class G2{constructor(r,a){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=r,this.loc=a}range(r,a){return new G2(a,_p.range(this,r))}}class Pr{constructor(r,a){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var o="KaTeX parse error: "+r,u,d,h=a&&a.loc;if(h&&h.start<=h.end){var m=h.lexer.input;u=h.start,d=h.end,u===m.length?o+=" at end of input: ":o+=" at position "+(u+1)+": ";var v=m.slice(u,d).replace(/[^]/g,"$&̲"),y;u>15?y="…"+m.slice(u-15,u):y=m.slice(0,u);var x;d+15<m.length?x=m.slice(d,d+15)+"…":x=m.slice(d),o+=y+v+x}var T=new Error(o);return T.name="ParseError",T.__proto__=Pr.prototype,T.position=u,u!=null&&d!=null&&(T.length=d-u),T.rawMessage=r,T}}Pr.prototype.__proto__=Error.prototype;var qln=function(r,a){return r===void 0?a:r},Hln=/([A-Z])/g,Vln=function(r){return r.replace(Hln,"-$1").toLowerCase()},Uln={"&":"&",">":">","<":"<",'"':""","'":"'"},Gln=/[&><"']/g;function Kln(n){return String(n).replace(Gln,r=>Uln[r])}var kje=function n(r){return r.type==="ordgroup"||r.type==="color"?r.body.length===1?n(r.body[0]):r:r.type==="font"?n(r.body):r},Wln=function(r){var a=kje(r);return a.type==="mathord"||a.type==="textord"||a.type==="atom"},Yln=function(r){if(!r)throw new Error("Expected non-null, but got "+String(r));return r},Xln=function(r){var a=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(r);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"},fc={deflt:qln,escape:Kln,hyphenate:Vln,getBaseElem:kje,isCharacterBox:Wln,protocolFromUrl:Xln},YN={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:n=>"#"+n},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(n,r)=>(r.push(n),r)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:n=>Math.max(0,n),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:n=>Math.max(0,n),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:n=>Math.max(0,n),cli:"-e, --max-expand <n>",cliProcessor:n=>n==="Infinity"?1/0:parseInt(n)},globalGroup:{type:"boolean",cli:!1}};function Qln(n){if(n.default)return n.default;var r=n.type,a=Array.isArray(r)?r[0]:r;if(typeof a!="string")return a.enum[0];switch(a){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class tfe{constructor(r){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,r=r||{};for(var a in YN)if(YN.hasOwnProperty(a)){var o=YN[a];this[a]=r[a]!==void 0?o.processor?o.processor(r[a]):r[a]:Qln(o)}}reportNonstrict(r,a,o){var u=this.strict;if(typeof u=="function"&&(u=u(r,a,o)),!(!u||u==="ignore")){if(u===!0||u==="error")throw new Pr("LaTeX-incompatible input and strict mode is set to 'error': "+(a+" ["+r+"]"),o);u==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+r+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+u+"': "+a+" ["+r+"]"))}}useStrictBehavior(r,a,o){var u=this.strict;if(typeof u=="function")try{u=u(r,a,o)}catch{u="error"}return!u||u==="ignore"?!1:u===!0||u==="error"?!0:u==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+r+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+u+"': "+a+" ["+r+"]")),!1)}isTrusted(r){if(r.url&&!r.protocol){var a=fc.protocolFromUrl(r.url);if(a==null)return!1;r.protocol=a}var o=typeof this.trust=="function"?this.trust(r):this.trust;return!!o}}class I7{constructor(r,a,o){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=r,this.size=a,this.cramped=o}sup(){return C3[Jln[this.id]]}sub(){return C3[Zln[this.id]]}fracNum(){return C3[eun[this.id]]}fracDen(){return C3[tun[this.id]]}cramp(){return C3[nun[this.id]]}text(){return C3[run[this.id]]}isTight(){return this.size>=2}}var nfe=0,CK=1,xL=2,e6=3,XN=4,wm=5,kL=6,wg=7,C3=[new I7(nfe,0,!1),new I7(CK,0,!0),new I7(xL,1,!1),new I7(e6,1,!0),new I7(XN,2,!1),new I7(wm,2,!0),new I7(kL,3,!1),new I7(wg,3,!0)],Jln=[XN,wm,XN,wm,kL,wg,kL,wg],Zln=[wm,wm,wm,wm,wg,wg,wg,wg],eun=[xL,e6,XN,wm,kL,wg,kL,wg],tun=[e6,e6,wm,wm,wg,wg,wg,wg],nun=[CK,CK,e6,e6,wm,wm,wg,wg],run=[nfe,CK,xL,e6,xL,e6,xL,e6],Fa={DISPLAY:C3[nfe],TEXT:C3[xL],SCRIPT:C3[XN],SCRIPTSCRIPT:C3[kL]},rfe=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function iun(n){for(var r=0;r<rfe.length;r++)for(var a=rfe[r],o=0;o<a.blocks.length;o++){var u=a.blocks[o];if(n>=u[0]&&n<=u[1])return a.name}return null}var SK=[];rfe.forEach(n=>n.blocks.forEach(r=>SK.push(...r)));function Tje(n){for(var r=0;r<SK.length;r+=2)if(n>=SK[r]&&n<=SK[r+1])return!0;return!1}var TL=80,aun=function(r,a){return"M95,"+(622+r+a)+`
|
|
117
|
+
`))}function v(S,A,I,P){const N=I.enter("tableCell"),F=I.enter("phrasing"),j=I.containerPhrasing(S,{...P,before:d,after:d});return F(),N(),j}function y(S,A){return zon(S,{align:A,alignDelimiters:o,padding:a,stringLength:u})}function x(S,A,I){const P=S.children;let N=-1;const F=[],j=A.enter("table");for(;++N<P.length;)F[N]=T(P[N],A,I);return j(),F}function T(S,A,I){const P=S.children;let N=-1;const F=[],j=A.enter("tableRow");for(;++N<P.length;)F[N]=v(P[N],S,A,I);return j(),F}function C(S,A,I){let P=JFe.inlineCode(S,A,I);return I.stack.includes("tableCell")&&(P=P.replace(/\|/g,"\\$&")),P}}function Ocn(){return{exit:{taskListCheckValueChecked:eje,taskListCheckValueUnchecked:eje,paragraph:Ncn}}}function Pcn(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Bcn}}}function eje(n){const r=this.stack[this.stack.length-2];r.type,r.checked=n.type==="taskListCheckValueChecked"}function Ncn(n){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const o=a.children[0];if(o&&o.type==="text"){const u=r.children;let d=-1,h;for(;++d<u.length;){const m=u[d];if(m.type==="paragraph"){h=m;break}}h===a&&(o.value=o.value.slice(1),o.value.length===0?a.children.shift():a.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,a.position.start=Object.assign({},o.position.start)))}}this.exit(n)}function Bcn(n,r,a,o){const u=n.children[0],d=typeof n.checked=="boolean"&&u&&u.type==="paragraph",h="["+(n.checked?"x":" ")+"] ",m=a.createTracker(o);d&&m.move(h);let v=JFe.listItem(n,r,a,{...o,...m.current()});return d&&(v=v.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,y)),v;function y(x){return x+h}}function Rcn(){return[uon(),Don(),Non(),Scn(),Ocn()]}function Fcn(n){return{extensions:[hon(),Ion(n),Bon(),Icn(n),Pcn()]}}function jcn(n,r,a,o){const u=n.length;let d=0,h;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,a=a>0?a:0,o.length<1e4)h=Array.from(o),h.unshift(r,a),n.splice(...h);else for(a&&n.splice(r,a);d<o.length;)h=o.slice(d,d+1e4),h.unshift(r,0),n.splice(...h),d+=1e4,r+=1e4}const tje={}.hasOwnProperty;function $cn(n){const r={};let a=-1;for(;++a<n.length;)zcn(r,n[a]);return r}function zcn(n,r){let a;for(a in r){const u=(tje.call(n,a)?n[a]:void 0)||(n[a]={}),d=r[a];let h;if(d)for(h in d){tje.call(u,h)||(u[h]=[]);const m=d[h];qcn(u[h],Array.isArray(m)?m:m?[m]:[])}}}function qcn(n,r){let a=-1;const o=[];for(;++a<r.length;)(r[a].add==="after"?n:o).push(r[a]);jcn(n,0,0,o)}const UN=xK(/[A-Za-z]/),Uhe=xK(/[\dA-Za-z]/);function Hcn(n){return n!==null&&(n<32||n===127)}function bL(n){return n!==null&&(n<0||n===32)}const nje=xK(new RegExp("\\p{P}|\\p{S}","u")),GN=xK(/\s/);function xK(n){return r;function r(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}const Vcn={tokenize:Xcn,partial:!0},rje={tokenize:Qcn,partial:!0},ije={tokenize:Jcn,partial:!0},aje={tokenize:Zcn,partial:!0},Ucn={tokenize:eln,partial:!0},sje={name:"wwwAutolink",tokenize:Wcn,previous:cje},oje={name:"protocolAutolink",tokenize:Ycn,previous:lje},Z5={name:"emailAutolink",tokenize:Kcn,previous:uje},E3={};function Gcn(){return{text:E3}}let VT=48;for(;VT<123;)E3[VT]=Z5,VT++,VT===58?VT=65:VT===91&&(VT=97);E3[43]=Z5,E3[45]=Z5,E3[46]=Z5,E3[95]=Z5,E3[72]=[Z5,oje],E3[104]=[Z5,oje],E3[87]=[Z5,sje],E3[119]=[Z5,sje];function Kcn(n,r,a){const o=this;let u,d;return h;function h(T){return!Ghe(T)||!uje.call(o,o.previous)||Khe(o.events)?a(T):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),m(T))}function m(T){return Ghe(T)?(n.consume(T),m):T===64?(n.consume(T),v):a(T)}function v(T){return T===46?n.check(Ucn,x,y)(T):T===45||T===95||Uhe(T)?(d=!0,n.consume(T),v):x(T)}function y(T){return n.consume(T),u=!0,v}function x(T){return d&&u&&UN(o.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),r(T)):a(T)}}function Wcn(n,r,a){const o=this;return u;function u(h){return h!==87&&h!==119||!cje.call(o,o.previous)||Khe(o.events)?a(h):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Vcn,n.attempt(rje,n.attempt(ije,d),a),a)(h))}function d(h){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),r(h)}}function Ycn(n,r,a){const o=this;let u="",d=!1;return h;function h(T){return(T===72||T===104)&&lje.call(o,o.previous)&&!Khe(o.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),u+=String.fromCodePoint(T),n.consume(T),m):a(T)}function m(T){if(UN(T)&&u.length<5)return u+=String.fromCodePoint(T),n.consume(T),m;if(T===58){const C=u.toLowerCase();if(C==="http"||C==="https")return n.consume(T),v}return a(T)}function v(T){return T===47?(n.consume(T),d?y:(d=!0,v)):a(T)}function y(T){return T===null||Hcn(T)||bL(T)||GN(T)||nje(T)?a(T):n.attempt(rje,n.attempt(ije,x),a)(T)}function x(T){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),r(T)}}function Xcn(n,r,a){let o=0;return u;function u(h){return(h===87||h===119)&&o<3?(o++,n.consume(h),u):h===46&&o===3?(n.consume(h),d):a(h)}function d(h){return h===null?a(h):r(h)}}function Qcn(n,r,a){let o,u,d;return h;function h(y){return y===46||y===95?n.check(aje,v,m)(y):y===null||bL(y)||GN(y)||y!==45&&nje(y)?v(y):(d=!0,n.consume(y),h)}function m(y){return y===95?o=!0:(u=o,o=void 0),n.consume(y),h}function v(y){return u||o||!d?a(y):r(y)}}function Jcn(n,r){let a=0,o=0;return u;function u(h){return h===40?(a++,n.consume(h),u):h===41&&o<a?d(h):h===33||h===34||h===38||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===60||h===63||h===93||h===95||h===126?n.check(aje,r,d)(h):h===null||bL(h)||GN(h)?r(h):(n.consume(h),u)}function d(h){return h===41&&o++,n.consume(h),u}}function Zcn(n,r,a){return o;function o(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(n.consume(m),o):m===38?(n.consume(m),d):m===93?(n.consume(m),u):m===60||m===null||bL(m)||GN(m)?r(m):a(m)}function u(m){return m===null||m===40||m===91||bL(m)||GN(m)?r(m):o(m)}function d(m){return UN(m)?h(m):a(m)}function h(m){return m===59?(n.consume(m),o):UN(m)?(n.consume(m),h):a(m)}}function eln(n,r,a){return o;function o(d){return n.consume(d),u}function u(d){return Uhe(d)?a(d):r(d)}}function cje(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||bL(n)}function lje(n){return!UN(n)}function uje(n){return!(n===47||Ghe(n))}function Ghe(n){return n===43||n===45||n===46||n===95||Uhe(n)}function Khe(n){let r=n.length,a=!1;for(;r--;){const o=n[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){a=!0;break}if(o._gfmAutolinkLiteralWalkedInto){a=!1;break}}return n.length>0&&!a&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}function tln(n){return n!==null&&n<-2}function kK(n){return n!==null&&(n<0||n===32)}function Whe(n){return n===-2||n===-1||n===32}function Yhe(n,r,a,o){const u=o?o-1:Number.POSITIVE_INFINITY;let d=0;return h;function h(v){return Whe(v)?(n.enter(a),m(v)):r(v)}function m(v){return Whe(v)&&d++<u?(n.consume(v),m):(n.exit(a),r(v))}}const nln={partial:!0,tokenize:rln};function rln(n,r,a){return o;function o(d){return Whe(d)?Yhe(n,u,"linePrefix")(d):u(d)}function u(d){return d===null||tln(d)?r(d):a(d)}}function Xhe(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const iln={tokenize:fln,partial:!0};function aln(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:lln,continuation:{tokenize:uln},exit:hln}},text:{91:{name:"gfmFootnoteCall",tokenize:cln},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sln,resolveTo:oln}}}}function sln(n,r,a){const o=this;let u=o.events.length;const d=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let h;for(;u--;){const v=o.events[u][1];if(v.type==="labelImage"){h=v;break}if(v.type==="gfmFootnoteCall"||v.type==="labelLink"||v.type==="label"||v.type==="image"||v.type==="link")break}return m;function m(v){if(!h||!h._balanced)return a(v);const y=Xhe(o.sliceSerialize({start:h.end,end:o.now()}));return y.codePointAt(0)!==94||!d.includes(y.slice(1))?a(v):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(v),n.exit("gfmFootnoteCallLabelMarker"),r(v))}}function oln(n,r){let a=n.length;for(;a--;)if(n[a][1].type==="labelImage"&&n[a][0]==="enter"){n[a][1];break}n[a+1][1].type="data",n[a+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},n[a+3][1].start),end:Object.assign({},n[n.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},n[a+3][1].end),end:Object.assign({},n[a+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const d={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},n[n.length-1][1].start)},h={type:"chunkString",contentType:"string",start:Object.assign({},d.start),end:Object.assign({},d.end)},m=[n[a+1],n[a+2],["enter",o,r],n[a+3],n[a+4],["enter",u,r],["exit",u,r],["enter",d,r],["enter",h,r],["exit",h,r],["exit",d,r],n[n.length-2],n[n.length-1],["exit",o,r]];return n.splice(a,n.length-a+1,...m),n}function cln(n,r,a){const o=this,u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let d=0,h;return m;function m(T){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(T),n.exit("gfmFootnoteCallLabelMarker"),v}function v(T){return T!==94?a(T):(n.enter("gfmFootnoteCallMarker"),n.consume(T),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",y)}function y(T){if(d>999||T===93&&!h||T===null||T===91||kK(T))return a(T);if(T===93){n.exit("chunkString");const C=n.exit("gfmFootnoteCallString");return u.includes(Xhe(o.sliceSerialize(C)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(T),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),r):a(T)}return kK(T)||(h=!0),d++,n.consume(T),T===92?x:y}function x(T){return T===91||T===92||T===93?(n.consume(T),d++,y):y(T)}}function lln(n,r,a){const o=this,u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let d,h=0,m;return v;function v(A){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),y}function y(A){return A===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):a(A)}function x(A){if(h>999||A===93&&!m||A===null||A===91||kK(A))return a(A);if(A===93){n.exit("chunkString");const I=n.exit("gfmFootnoteDefinitionLabelString");return d=Xhe(o.sliceSerialize(I)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),C}return kK(A)||(m=!0),h++,n.consume(A),A===92?T:x}function T(A){return A===91||A===92||A===93?(n.consume(A),h++,x):x(A)}function C(A){return A===58?(n.enter("definitionMarker"),n.consume(A),n.exit("definitionMarker"),u.includes(d)||u.push(d),Yhe(n,S,"gfmFootnoteDefinitionWhitespace")):a(A)}function S(A){return r(A)}}function uln(n,r,a){return n.check(nln,r,n.attempt(iln,r,a))}function hln(n){n.exit("gfmFootnoteDefinition")}function fln(n,r,a){const o=this;return Yhe(n,u,"gfmFootnoteDefinitionIndent",5);function u(d){const h=o.events[o.events.length-1];return h&&h[1].type==="gfmFootnoteDefinitionIndent"&&h[2].sliceSerialize(h[1],!0).length===4?r(d):a(d)}}function Qhe(n,r,a,o){const u=n.length;let d=0,h;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,a=a>0?a:0,o.length<1e4)h=Array.from(o),h.unshift(r,a),n.splice(...h);else for(a&&n.splice(r,a);d<o.length;)h=o.slice(d,d+1e4),h.unshift(r,0),n.splice(...h),d+=1e4,r+=1e4}function dln(n){return n!==null&&(n<0||n===32)}const gln=hje(new RegExp("\\p{P}|\\p{S}","u")),pln=hje(/\s/);function hje(n){return r;function r(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}function fje(n){if(n===null||dln(n)||pln(n))return 1;if(gln(n))return 2}function bln(n,r,a){const o=[];let u=-1;for(;++u<n.length;){const d=n[u].resolveAll;d&&!o.includes(d)&&(r=d(r,a),o.push(d))}return r}function mln(n){let a=(n||{}).singleTilde;const o={name:"strikethrough",tokenize:d,resolveAll:u};return a==null&&(a=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function u(h,m){let v=-1;for(;++v<h.length;)if(h[v][0]==="enter"&&h[v][1].type==="strikethroughSequenceTemporary"&&h[v][1]._close){let y=v;for(;y--;)if(h[y][0]==="exit"&&h[y][1].type==="strikethroughSequenceTemporary"&&h[y][1]._open&&h[v][1].end.offset-h[v][1].start.offset===h[y][1].end.offset-h[y][1].start.offset){h[v][1].type="strikethroughSequence",h[y][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},h[y][1].start),end:Object.assign({},h[v][1].end)},T={type:"strikethroughText",start:Object.assign({},h[y][1].end),end:Object.assign({},h[v][1].start)},C=[["enter",x,m],["enter",h[y][1],m],["exit",h[y][1],m],["enter",T,m]],S=m.parser.constructs.insideSpan.null;S&&Qhe(C,C.length,0,bln(S,h.slice(y+1,v),m)),Qhe(C,C.length,0,[["exit",T,m],["enter",h[v][1],m],["exit",h[v][1],m],["exit",x,m]]),Qhe(h,y-1,v-y+3,C),v=y+C.length-2;break}}for(v=-1;++v<h.length;)h[v][1].type==="strikethroughSequenceTemporary"&&(h[v][1].type="data");return h}function d(h,m,v){const y=this.previous,x=this.events;let T=0;return C;function C(A){return y===126&&x[x.length-1][1].type!=="characterEscape"?v(A):(h.enter("strikethroughSequenceTemporary"),S(A))}function S(A){const I=fje(y);if(A===126)return T>1?v(A):(h.consume(A),T++,S);if(T<2&&!a)return v(A);const P=h.exit("strikethroughSequenceTemporary"),N=fje(A);return P._open=!N||N===2&&!!I,P._close=!I||I===2&&!!N,m(A)}}}function TK(n){return n!==null&&n<-2}function dje(n){return n!==null&&(n<0||n===32)}function UT(n){return n===-2||n===-1||n===32}function KN(n,r,a,o){const u=o?o-1:Number.POSITIVE_INFINITY;let d=0;return h;function h(v){return UT(v)?(n.enter(a),m(v)):r(v)}function m(v){return UT(v)&&d++<u?(n.consume(v),m):(n.exit(a),r(v))}}class vln{constructor(){this.map=[]}add(r,a,o){wln(this,r,a,o)}consume(r){if(this.map.sort(function(d,h){return d[0]-h[0]}),this.map.length===0)return;let a=this.map.length;const o=[];for(;a>0;)a-=1,o.push(r.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),r.length=this.map[a][0];o.push(r.slice()),r.length=0;let u=o.pop();for(;u;){for(const d of u)r.push(d);u=o.pop()}this.map.length=0}}function wln(n,r,a,o){let u=0;if(!(a===0&&o.length===0)){for(;u<n.map.length;){if(n.map[u][0]===r){n.map[u][1]+=a,n.map[u][2].push(...o);return}u+=1}n.map.push([r,a,o])}}function yln(n,r){let a=!1;const o=[];for(;r<n.length;){const u=n[r];if(a){if(u[0]==="enter")u[1].type==="tableContent"&&o.push(n[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(n[r-1][1].type==="tableDelimiterMarker"){const d=o.length-1;o[d]=o[d]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(a=!0);r+=1}return o}function xln(){return{flow:{null:{name:"table",tokenize:kln,resolveAll:Tln}}}}function kln(n,r,a){const o=this;let u=0,d=0,h;return m;function m(K){let B=o.events.length-1;for(;B>-1;){const ie=o.events[B][1].type;if(ie==="lineEnding"||ie==="linePrefix")B--;else break}const J=B>-1?o.events[B][1].type:null,R=J==="tableHead"||J==="tableRow"?q:v;return R===q&&o.parser.lazy[o.now().line]?a(K):R(K)}function v(K){return n.enter("tableHead"),n.enter("tableRow"),y(K)}function y(K){return K===124||(h=!0,d+=1),x(K)}function x(K){return K===null?a(K):TK(K)?d>1?(d=0,o.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(K),n.exit("lineEnding"),S):a(K):UT(K)?KN(n,x,"whitespace")(K):(d+=1,h&&(h=!1,u+=1),K===124?(n.enter("tableCellDivider"),n.consume(K),n.exit("tableCellDivider"),h=!0,x):(n.enter("data"),T(K)))}function T(K){return K===null||K===124||dje(K)?(n.exit("data"),x(K)):(n.consume(K),K===92?C:T)}function C(K){return K===92||K===124?(n.consume(K),T):T(K)}function S(K){return o.interrupt=!1,o.parser.lazy[o.now().line]?a(K):(n.enter("tableDelimiterRow"),h=!1,UT(K)?KN(n,A,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):A(K))}function A(K){return K===45||K===58?P(K):K===124?(h=!0,n.enter("tableCellDivider"),n.consume(K),n.exit("tableCellDivider"),I):V(K)}function I(K){return UT(K)?KN(n,P,"whitespace")(K):P(K)}function P(K){return K===58?(d+=1,h=!0,n.enter("tableDelimiterMarker"),n.consume(K),n.exit("tableDelimiterMarker"),N):K===45?(d+=1,N(K)):K===null||TK(K)?U(K):V(K)}function N(K){return K===45?(n.enter("tableDelimiterFiller"),F(K)):V(K)}function F(K){return K===45?(n.consume(K),F):K===58?(h=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(K),n.exit("tableDelimiterMarker"),j):(n.exit("tableDelimiterFiller"),j(K))}function j(K){return UT(K)?KN(n,U,"whitespace")(K):U(K)}function U(K){return K===124?A(K):K===null||TK(K)?!h||u!==d?V(K):(n.exit("tableDelimiterRow"),n.exit("tableHead"),r(K)):V(K)}function V(K){return a(K)}function q(K){return n.enter("tableRow"),H(K)}function H(K){return K===124?(n.enter("tableCellDivider"),n.consume(K),n.exit("tableCellDivider"),H):K===null||TK(K)?(n.exit("tableRow"),r(K)):UT(K)?KN(n,H,"whitespace")(K):(n.enter("data"),W(K))}function W(K){return K===null||K===124||dje(K)?(n.exit("data"),H(K)):(n.consume(K),K===92?z:W)}function z(K){return K===92||K===124?(n.consume(K),W):W(K)}}function Tln(n,r){let a=-1,o=!0,u=0,d=[0,0,0,0],h=[0,0,0,0],m=!1,v=0,y,x,T;const C=new vln;for(;++a<n.length;){const S=n[a],A=S[1];S[0]==="enter"?A.type==="tableHead"?(m=!1,v!==0&&(gje(C,r,v,y,x),x=void 0,v=0),y={type:"table",start:Object.assign({},A.start),end:Object.assign({},A.end)},C.add(a,0,[["enter",y,r]])):A.type==="tableRow"||A.type==="tableDelimiterRow"?(o=!0,T=void 0,d=[0,0,0,0],h=[0,a+1,0,0],m&&(m=!1,x={type:"tableBody",start:Object.assign({},A.start),end:Object.assign({},A.end)},C.add(a,0,[["enter",x,r]])),u=A.type==="tableDelimiterRow"?2:x?3:1):u&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")?(o=!1,h[2]===0&&(d[1]!==0&&(h[0]=h[1],T=EK(C,r,d,u,void 0,T),d=[0,0,0,0]),h[2]=a)):A.type==="tableCellDivider"&&(o?o=!1:(d[1]!==0&&(h[0]=h[1],T=EK(C,r,d,u,void 0,T)),d=h,h=[d[1],a,0,0])):A.type==="tableHead"?(m=!0,v=a):A.type==="tableRow"||A.type==="tableDelimiterRow"?(v=a,d[1]!==0?(h[0]=h[1],T=EK(C,r,d,u,a,T)):h[1]!==0&&(T=EK(C,r,h,u,a,T)),u=0):u&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")&&(h[3]=a)}for(v!==0&&gje(C,r,v,y,x),C.consume(r.events),a=-1;++a<r.events.length;){const S=r.events[a];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=yln(r.events,a))}return n}function EK(n,r,a,o,u,d){const h=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",m="tableContent";a[0]!==0&&(d.end=Object.assign({},mL(r.events,a[0])),n.add(a[0],0,[["exit",d,r]]));const v=mL(r.events,a[1]);if(d={type:h,start:Object.assign({},v),end:Object.assign({},v)},n.add(a[1],0,[["enter",d,r]]),a[2]!==0){const y=mL(r.events,a[2]),x=mL(r.events,a[3]),T={type:m,start:Object.assign({},y),end:Object.assign({},x)};if(n.add(a[2],0,[["enter",T,r]]),o!==2){const C=r.events[a[2]],S=r.events[a[3]];if(C[1].end=Object.assign({},S[1].end),C[1].type="chunkText",C[1].contentType="text",a[3]>a[2]+1){const A=a[2]+1,I=a[3]-a[2]-1;n.add(A,I,[])}}n.add(a[3]+1,0,[["exit",T,r]])}return u!==void 0&&(d.end=Object.assign({},mL(r.events,u)),n.add(u,0,[["exit",d,r]]),d=void 0),d}function gje(n,r,a,o,u){const d=[],h=mL(r.events,a);u&&(u.end=Object.assign({},h),d.push(["exit",u,r])),o.end=Object.assign({},h),d.push(["exit",o,r]),n.add(a+1,0,d)}function mL(n,r){const a=n[r],o=a[0]==="enter"?"start":"end";return a[1][o]}function Eln(n){return n!==null&&n<-2}function Cln(n){return n!==null&&(n<0||n===32)}function Jhe(n){return n===-2||n===-1||n===32}function Sln(n,r,a,o){const u=Number.POSITIVE_INFINITY;let d=0;return h;function h(v){return Jhe(v)?(n.enter(a),m(v)):r(v)}function m(v){return Jhe(v)&&d++<u?(n.consume(v),m):(n.exit(a),r(v))}}const _ln={name:"tasklistCheck",tokenize:Lln};function Aln(){return{text:{91:_ln}}}function Lln(n,r,a){const o=this;return u;function u(v){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?a(v):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(v),n.exit("taskListCheckMarker"),d)}function d(v){return Cln(v)?(n.enter("taskListCheckValueUnchecked"),n.consume(v),n.exit("taskListCheckValueUnchecked"),h):v===88||v===120?(n.enter("taskListCheckValueChecked"),n.consume(v),n.exit("taskListCheckValueChecked"),h):a(v)}function h(v){return v===93?(n.enter("taskListCheckMarker"),n.consume(v),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),m):a(v)}function m(v){return Eln(v)?r(v):Jhe(v)?n.check({tokenize:Mln},r,a)(v):a(v)}}function Mln(n,r,a){return Sln(n,o,"whitespace");function o(u){return u===null?a(u):r(u)}}function Dln(n){return $cn([Gcn(),aln(),mln(n),xln(),Aln()])}const Iln={};function Oln(n){const r=this,a=n||Iln,o=r.data(),u=o.micromarkExtensions||(o.micromarkExtensions=[]),d=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),h=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);u.push(Dln(a)),d.push(Rcn()),h.push(Fcn(a))}var Zhe=function(){return(Zhe=Object.assign||function(n){for(var r,a=1,o=arguments.length;a<o;a++)for(var u in r=arguments[a])Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u]);return n}).apply(this,arguments)},vL,wL,yL,efe=ll.createContext(void 0),pje="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML",bje="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js",mje="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js",Pln=function(T){var r=T.config,a=T.version,a=a===void 0?4:a,o=T.src,o=o===void 0?a===2?pje:a===3?bje:mje:o,u=T.onStartup,d=T.onLoad,v=T.asyncLoad,h=v!==void 0&&v,m=T.onError,v=T.typesettingOptions,y=T.renderMode,y=y===void 0?"post":y,x=T.hideUntilTypeset,T=T.children,S=ll.useContext(efe);if(S?.version!==void 0&&S?.version!==a)throw Error("Cannot nest MathJaxContexts with different versions. MathJaxContexts should not be nested at all but if they are, they cannot have different versions. Stick with one version of MathJax in your app and avoid using more than one MathJaxContext.");if(a===2&&(wL!==void 0||yL!==void 0)||a===3&&(vL!==void 0||yL!==void 0)||a===4&&(vL!==void 0||wL!==void 0))throw Error("Cannot use two MathJax versions simultaneously in the same app due to how MathJax is set up in the browser; either you have multiple MathJaxContexts with different versions or you have mounted and unmounted MathJaxContexts with different versions. Please stick with one version of MathJax in your app. File an issue in the project Github page if you need this feature.");var C=ll.useRef(S),S=ll.useRef(S?.version||null);if(S.current===null)S.current=a;else if(S.current!==a)throw Error("Cannot change version of MathJax in a MathJaxContext after it has mounted. Reload the page with a new version when this must happen.");var A=o||(a===2?pje:a===3?bje:mje);function I(P,N){r&&(window.MathJax=r);var F=document.createElement("script");F.type="text/javascript",F.src=A,F.async=h,F.addEventListener("load",function(){var j=window.MathJax;u&&u(j),P(j),d&&d()}),F.addEventListener("error",function(j){return N(j)}),document.getElementsByTagName("head")[0].appendChild(F)}return C.current===void 0&&(S={typesettingOptions:v,renderMode:y,hideUntilTypeset:x},a===2?vL===void 0&&(typeof window<"u"?(vL=new Promise(I)).catch(function(P){if(!m)throw Error("Failed to download MathJax version 2 from '".concat(A,"' due to: ").concat(JSON.stringify(P)));m(P)}):(vL=Promise.reject()).catch(function(P){})):a===3?wL===void 0&&(typeof window<"u"?(wL=new Promise(I)).catch(function(P){if(!m)throw Error("Failed to download MathJax version 3 from '".concat(A,"' due to: ").concat(P));m(P)}):(wL=Promise.reject()).catch(function(P){})):yL===void 0&&(typeof window<"u"?(yL=new Promise(I)).catch(function(P){if(!m)throw Error("Failed to download MathJax version 4 from '".concat(A,"' due to: ").concat(P));m(P)}):(yL=Promise.reject()).catch(function(P){})),C.current=Zhe(Zhe({},S),a===2?{version:2,promise:vL}:a===3?{version:3,promise:wL}:{version:4,promise:yL})),ll.createElement(efe.Provider,{value:C.current},T)},D7=function(){return(D7=Object.assign||function(n){for(var r,a=1,o=arguments.length;a<o;a++)for(var u in r=arguments[a])Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u]);return n}).apply(this,arguments)},Nln=function(n,r){var a={};for(u in n)Object.prototype.hasOwnProperty.call(n,u)&&r.indexOf(u)<0&&(a[u]=n[u]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(n);o<u.length;o++)r.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(n,u[o])&&(a[u[o]]=n[u[o]]);return a},WN=function(n){return"Typesetting failed: ".concat(n.message!==void 0?n.message:JSON.stringify(n))},Bln=function(n){function r(){var V;I==="every"&&F&&P==="post"&&S.current!==null&&(S.current.style.visibility=(V=(V=T.style)==null?void 0:V.visibility)!=null?V:"visible"),j.current||(I==="first"&&S.current!==null&&(S.current.style.visibility="visible"),u&&u(),j.current=!0),d&&d(),U.current=!1}var o=n.inline,a=o!==void 0&&o,o=n.hideUntilTypeset,u=n.onInitTypeset,d=n.onTypeset,h=n.text,m=n.dynamic,v=n.typesettingOptions,y=n.renderMode,x=n.children,T=Nln(n,["inline","hideUntilTypeset","onInitTypeset","onTypeset","text","dynamic","typesettingOptions","renderMode","children"]),C=ll.useRef(""),S=ll.useRef(null),A=ll.useContext(efe),I=o??A?.hideUntilTypeset,P=y??A?.renderMode,N=v??A?.typesettingOptions,F=m!==!1&&(m||process.env.NODE_ENV!=="production"),j=ll.useRef(!1),U=ll.useRef(!1);return!U.current&&S.current!==null&&F&&I==="every"&&P==="post"&&(S.current.style.visibility="hidden"),(typeof window<"u"?ll.useLayoutEffect:ll.useEffect)(function(){if((F||!j.current)&&S.current!==null){if(!A)throw Error("MathJax was not loaded, did you use the MathJax component outside of a MathJaxContext?");if(P==="pre"){if(!(typeof(V=h)=="string"&&0<V.length))throw Error(`Render mode 'pre' requires text prop to be set and non-empty, which was currently "`.concat(h,'"'));if(!v||!v.fn)throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");if(A.version===2)throw Error("Render mode 'pre' only available with MathJax 3 and 4, and version 2 is currently in use")}P!=="post"&&h===C.current||U.current||(U.current=!0,A.version===3||A.version===4?A.promise.then(function(q){var H;P==="pre"?(H=function(W){C.current=h,q.startup.document.clear(),q.startup.document.updateDocument(),S.current!==null&&(S.current.innerHTML=W.outerHTML),r()},v.fn.endsWith("Promise")?q.startup.promise.then(function(){return q[N.fn](h,D7(D7({},N?.options||{}),{display:!a}))}).then(H).catch(function(W){throw r(),Error(WN(W))}):q.startup.promise.then(function(){var W=q[N.fn](h,D7(D7({},N?.options||{}),{display:!a}));H(W)}).catch(function(W){throw r(),Error(WN(W))})):q.startup.promise.then(function(){return q.typesetClear([S.current]),q.typesetPromise([S.current])}).then(r).catch(function(W){throw r(),Error(WN(W))})}).catch(function(q){throw r(),Error(WN(q))}):A.promise.then(function(q){q.Hub.Queue(["Typeset",q.Hub,S.current]),q.Hub.Queue(r)}).catch(function(q){throw r(),Error(WN(q))}))}var V}),ll.createElement("span",D7({},T,{style:D7(D7({display:a?"inline":"block"},T.style),{visibility:I?"hidden":(n=T.style)==null?void 0:n.visibility}),ref:S}),x)};mm.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",logLevel:3,deterministicIds:!0,flowchart:{useMaxWidth:!0,htmlLabels:!0}});function Rln(n){try{navigator.clipboard.writeText(n)}catch(r){console.error("[Markdown] 复制失败:",r)}}function vje(n){const r=ll.useRef(null),[a,o]=ll.useState(!1),u=ll.useRef(""),d=ll.useMemo(()=>`mermaid-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,[]);ll.useEffect(()=>{if(!(!n.code||!r.current)&&n.code!==u.current){u.current=n.code;try{o(!1),r.current.innerHTML="",mm.render(d,n.code.trim()).then(({svg:m})=>{r.current&&(r.current.innerHTML=m)}).catch(m=>{o(!0),console.error("[Markdown] Mermaid 渲染失败:",m.message)})}catch(m){o(!0),console.error("[Markdown] Mermaid 渲染失败:",m.message)}}},[n.code,d]);function h(){r.current?.querySelector("svg")}return tc.jsx("div",{className:gle("no-dark"),style:{cursor:"pointer",overflow:"auto",minHeight:"50px",backgroundColor:a?"#fee":"#f8f8f8",padding:"10px",border:a?"1px solid #fcc":"none",borderRadius:a?"4px":"0"},ref:r,onClick:()=>h(),children:a?tc.jsx("div",{style:{textAlign:"center",padding:"10px",color:"#c33",fontSize:"14px"},children:"Mermaid 图表渲染失败,请检查代码语法"}):null})}function wje(n){const r=ll.useRef(null),[a,o]=ll.useState(""),[u,d]=ll.useState(null);return ll.useEffect(()=>{if(!r.current)return;const h=r.current.querySelector("code");if(!h)return;const m=h.className.match(/language-(\w+)/),v=m?m[1]:"text";if(o(v),["","md","markdown","text","txt","plaintext","tex","latex"].includes(v)&&(h.style.whiteSpace="pre-wrap"),v==="mermaid"){const x=h.innerText.trim();d(T=>T===x?T:x)}},[n.children]),tc.jsxs(tc.Fragment,{children:[tc.jsx("div",{style:{position:"relative"},children:tc.jsxs("pre",{ref:r,children:[a&&tc.jsx("div",{style:{padding:"10px",backgroundColor:"#3f3f3f",fontSize:"12px",color:"#fff",zIndex:1},children:a}),tc.jsx("span",{className:"copy-code-button",onClick:()=>{r.current&&Rln(r.current.querySelector("code")?.innerText||r.current.innerText||"")}}),n.children]})}),u&&tc.jsx(vje,{code:u})]})}function Fln(n){const a=ll.useRef(null),[o,u]=ll.useState(!0),[d,h]=ll.useState(!1);ll.useEffect(()=>{if(a.current){const y=a.current.scrollHeight;h(y>400),a.current.scrollTop=a.current.scrollHeight}},[n.children]);const m=()=>{u(y=>!y)},v=()=>d&&o?tc.jsx("div",{className:gle("show-hide-button",{collapsed:o,expanded:!o}),children:tc.jsx("button",{type:"button",onClick:m,children:"查看全部"})}):null;return tc.jsxs(tc.Fragment,{children:[tc.jsx("code",{className:gle(n?.className),ref:a,style:{maxHeight:o?"400px":"none",overflowY:"hidden",width:"100%"},children:n.children}),v()]})}const jln={loader:{load:["[tex]/mhchem","[tex]/color","[tex]/noerrors","[tex]/noundefined"]},tex:{packages:{"[+]":["mhchem","color","noerrors","noundefined"]},inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEnvironments:!0,noerrors:{disabled:!1,multiLine:!0,style:{"font-family":"monospace",color:"#333","background-color":"#f5f5f5",padding:"2px 4px","border-radius":"4px"}},noundefined:{color:"#333",background:"#f5f5f5",family:"monospace"}},options:{skipHtmlTags:["script","noscript","style","textarea","pre","code"]},startup:{typeset:!1}},$ln=n=>{const r=[],a=y=>{const x=`__PROTECTED_${r.length}__`;return r.push(y),x},o=y=>y.replace(/\\/g,"\\\\").replace(/\*/g,"\\*");n=n.replace(/(`{1,3})([\s\S]*?)\1/g,y=>a(y)),n=n.replace(/\$\$([\s\S]*?)\$\$(?:[ \t]*\r?\n){0,2}/g,(y,x)=>{const T=x.replace(/\r?\n/g," ");return a(`$$${o(T)}$$`)}),n=n.replace(/\$([^$\n]+?)\$/g,(y,x)=>a(`$${o(x)}$`)),n=n.replace(/\\\[([\s\S]*?)\\\](?:[ \t]*\r?\n){0,2}/g,(y,x)=>{const T=x.replace(/\r?\n/g," ");return a(`\\\\[${o(T)}\\\\]`)}),n=n.replace(/\\\(([\s\S]*?)\\\)/g,(y,x)=>a(`\\\\(${o(x)}\\\\)`));const u=/\\begin\{(align|gather|matrix|cases|split|aligned)\}([\s\S]*?)\\end\{\1\}(?:[ \t]*\r?\n){0,2}/g;n=n.replace(u,y=>{const x=y.replace(/\r?\n/g," ");return a(o(x))});const d="\\{(?:[^{}]|\\{(?:[^{}]|\\{[^{}]*\\})*\\})*\\}",h=y=>y.replace(/\\/g,"\\\\");n=n.replace(new RegExp(`\\\\(ce|boxed)${d}`,"g"),y=>a(`$${h(y)}$`));const m=/\\(sum|prod|int|lim)(?:_\{[^}]*\}|\^\{[^}]*\}|_[a-zA-Z0-9]|\^[a-zA-Z0-9]|[ \t])*/g;n=n.replace(m,y=>a(`$${h(y.trim())}$`));const v=new RegExp(`\\\\(frac|sqrt|text|mathbb|mathcal|mathbf|mathit|mathrm|textcolor|color)(?:\\[[^\\]]*\\])?(?:${d})*`,"g");return n=n.replace(v,y=>a(`$${h(y)}$`)),n=n.replace(/\\(rightarrow|leftarrow|Rightarrow|Leftarrow|quad|qquad)\b/g,y=>a(`$${h(y)}$`)),n=n.replace(/__PROTECTED_(\d+)__/g,(y,x)=>r[parseInt(x)]),n},zln=({content:n})=>{const r=$ln(n);return tc.jsx(Pln,{config:jln,version:3,children:tc.jsx(Bln,{children:tc.jsx(Xsn,{remarkPlugins:[Oln,oon],components:{pre:wje,code:Fln,p:a=>tc.jsx("p",{...a,dir:"auto"}),a:a=>{const o=a.href||"";if(/\.(aac|mp3|opus|wav)$/.test(o))return tc.jsx("figure",{children:tc.jsx("audio",{controls:!0,src:o})});if(/\.(3gp|3g2|webm|ogv|mpeg|mp4|avi)$/.test(o))return tc.jsx("video",{controls:!0,width:"99.9%",children:tc.jsx("source",{src:o})});const d=/^\/#/i.test(o)?"_self":a.target??"_blank";return tc.jsx("a",{...a,target:d})},img:a=>tc.jsx("img",{...a,style:{maxWidth:"100%"},loading:"lazy"})},children:r})},r.length)})},yje=ll.memo(zln);function xje(n){const r=ll.useRef(null);return tc.jsx("div",{dir:"auto",className:"markdown-body",style:{fontSize:`${n.fontSize??15}px`,fontFamily:n.fontFamily||"inherit",...n.style},onContextMenu:n.onContextMenu,onDoubleClickCapture:n.onDoubleClickCapture,ref:r,children:tc.jsx(yje,{content:n.content})})}class _p{constructor(r,a,o){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=r,this.start=a,this.end=o}static range(r,a){return a?!r||!r.loc||!a.loc||r.loc.lexer!==a.loc.lexer?null:new _p(r.loc.lexer,r.loc.start,a.loc.end):r&&r.loc}}class G2{constructor(r,a){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=r,this.loc=a}range(r,a){return new G2(a,_p.range(this,r))}}class Pr{constructor(r,a){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var o="KaTeX parse error: "+r,u,d,h=a&&a.loc;if(h&&h.start<=h.end){var m=h.lexer.input;u=h.start,d=h.end,u===m.length?o+=" at end of input: ":o+=" at position "+(u+1)+": ";var v=m.slice(u,d).replace(/[^]/g,"$&̲"),y;u>15?y="…"+m.slice(u-15,u):y=m.slice(0,u);var x;d+15<m.length?x=m.slice(d,d+15)+"…":x=m.slice(d),o+=y+v+x}var T=new Error(o);return T.name="ParseError",T.__proto__=Pr.prototype,T.position=u,u!=null&&d!=null&&(T.length=d-u),T.rawMessage=r,T}}Pr.prototype.__proto__=Error.prototype;var qln=function(r,a){return r===void 0?a:r},Hln=/([A-Z])/g,Vln=function(r){return r.replace(Hln,"-$1").toLowerCase()},Uln={"&":"&",">":">","<":"<",'"':""","'":"'"},Gln=/[&><"']/g;function Kln(n){return String(n).replace(Gln,r=>Uln[r])}var kje=function n(r){return r.type==="ordgroup"||r.type==="color"?r.body.length===1?n(r.body[0]):r:r.type==="font"?n(r.body):r},Wln=function(r){var a=kje(r);return a.type==="mathord"||a.type==="textord"||a.type==="atom"},Yln=function(r){if(!r)throw new Error("Expected non-null, but got "+String(r));return r},Xln=function(r){var a=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(r);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"},fc={deflt:qln,escape:Kln,hyphenate:Vln,getBaseElem:kje,isCharacterBox:Wln,protocolFromUrl:Xln},YN={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:n=>"#"+n},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(n,r)=>(r.push(n),r)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:n=>Math.max(0,n),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:n=>Math.max(0,n),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:n=>Math.max(0,n),cli:"-e, --max-expand <n>",cliProcessor:n=>n==="Infinity"?1/0:parseInt(n)},globalGroup:{type:"boolean",cli:!1}};function Qln(n){if(n.default)return n.default;var r=n.type,a=Array.isArray(r)?r[0]:r;if(typeof a!="string")return a.enum[0];switch(a){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class tfe{constructor(r){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,r=r||{};for(var a in YN)if(YN.hasOwnProperty(a)){var o=YN[a];this[a]=r[a]!==void 0?o.processor?o.processor(r[a]):r[a]:Qln(o)}}reportNonstrict(r,a,o){var u=this.strict;if(typeof u=="function"&&(u=u(r,a,o)),!(!u||u==="ignore")){if(u===!0||u==="error")throw new Pr("LaTeX-incompatible input and strict mode is set to 'error': "+(a+" ["+r+"]"),o);u==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+r+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+u+"': "+a+" ["+r+"]"))}}useStrictBehavior(r,a,o){var u=this.strict;if(typeof u=="function")try{u=u(r,a,o)}catch{u="error"}return!u||u==="ignore"?!1:u===!0||u==="error"?!0:u==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+r+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+u+"': "+a+" ["+r+"]")),!1)}isTrusted(r){if(r.url&&!r.protocol){var a=fc.protocolFromUrl(r.url);if(a==null)return!1;r.protocol=a}var o=typeof this.trust=="function"?this.trust(r):this.trust;return!!o}}class I7{constructor(r,a,o){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=r,this.size=a,this.cramped=o}sup(){return C3[Jln[this.id]]}sub(){return C3[Zln[this.id]]}fracNum(){return C3[eun[this.id]]}fracDen(){return C3[tun[this.id]]}cramp(){return C3[nun[this.id]]}text(){return C3[run[this.id]]}isTight(){return this.size>=2}}var nfe=0,CK=1,xL=2,e6=3,XN=4,wm=5,kL=6,wg=7,C3=[new I7(nfe,0,!1),new I7(CK,0,!0),new I7(xL,1,!1),new I7(e6,1,!0),new I7(XN,2,!1),new I7(wm,2,!0),new I7(kL,3,!1),new I7(wg,3,!0)],Jln=[XN,wm,XN,wm,kL,wg,kL,wg],Zln=[wm,wm,wm,wm,wg,wg,wg,wg],eun=[xL,e6,XN,wm,kL,wg,kL,wg],tun=[e6,e6,wm,wm,wg,wg,wg,wg],nun=[CK,CK,e6,e6,wm,wm,wg,wg],run=[nfe,CK,xL,e6,xL,e6,xL,e6],Fa={DISPLAY:C3[nfe],TEXT:C3[xL],SCRIPT:C3[XN],SCRIPTSCRIPT:C3[kL]},rfe=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function iun(n){for(var r=0;r<rfe.length;r++)for(var a=rfe[r],o=0;o<a.blocks.length;o++){var u=a.blocks[o];if(n>=u[0]&&n<=u[1])return a.name}return null}var SK=[];rfe.forEach(n=>n.blocks.forEach(r=>SK.push(...r)));function Tje(n){for(var r=0;r<SK.length;r+=2)if(n>=SK[r]&&n<=SK[r+1])return!0;return!1}var TL=80,aun=function(r,a){return"M95,"+(622+r+a)+`
|
|
120
118
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
121
119
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
122
120
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as yt, s as ft, b as dt, c as pt, C as gt, D as mt, g as C, d as H, e as xt, E as kt } from "./index-
|
|
2
|
-
import { a as _t, g as it, f as bt, d as vt } from "./svgDrawCommon-b86b1483-
|
|
3
|
-
import { a as Q } from "./arc-
|
|
1
|
+
import { a as yt, s as ft, b as dt, c as pt, C as gt, D as mt, g as C, d as H, e as xt, E as kt } from "./index-DHgY23xO.mjs";
|
|
2
|
+
import { a as _t, g as it, f as bt, d as vt } from "./svgDrawCommon-b86b1483-Cz_Ma4Lv.mjs";
|
|
3
|
+
import { a as Q } from "./arc-B-AeIGLN.mjs";
|
|
4
4
|
var X = (function() {
|
|
5
5
|
var t = function(p, s, r, a) {
|
|
6
6
|
for (r = r || {}, a = p.length; a--; r[p[a]] = s)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as S, b as be, c as qe, d as O, k as We, e as ze, f as Xe, g as T, h as me, j as ge, l as He, m as ye, t as Ue, n as xe, o as Je, p as Ke, G as g, q as s, i as m, r as I, v as E, s as G } from "./graph-
|
|
2
|
-
import { a7 as F, a8 as Ze, a9 as Qe, aa as Ee, ab as A, ac as ke, ad as en, ae as Oe, af as U, ag as nn, ah as rn, ai as J, aj as tn, ak as Ne, al as an, am as on, an as X } from "./index-
|
|
1
|
+
import { a as S, b as be, c as qe, d as O, k as We, e as ze, f as Xe, g as T, h as me, j as ge, l as He, m as ye, t as Ue, n as xe, o as Je, p as Ke, G as g, q as s, i as m, r as I, v as E, s as G } from "./graph-Dkvc5zok.mjs";
|
|
2
|
+
import { a7 as F, a8 as Ze, a9 as Qe, aa as Ee, ab as A, ac as ke, ad as en, ae as Oe, af as U, ag as nn, ah as rn, ai as J, aj as tn, ak as Ne, al as an, am as on, an as X } from "./index-DHgY23xO.mjs";
|
|
3
3
|
var un = /\s/;
|
|
4
4
|
function dn(e) {
|
|
5
5
|
for (var n = e.length; n-- && un.test(e.charAt(n)); )
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as un, $ as I, a0 as U, a1 as fn, a2 as Y } from "./index-
|
|
1
|
+
import { _ as un, $ as I, a0 as U, a1 as fn, a2 as Y } from "./index-DHgY23xO.mjs";
|
|
2
2
|
import { i as cn } from "./init-DjUOC4st.mjs";
|
|
3
3
|
function F(n, t) {
|
|
4
4
|
return n == null || t == null ? NaN : n < t ? -1 : n > t ? 1 : n >= t ? 0 : NaN;
|
package/dist/{mindmap-definition-8da855dc-BDu5aHx2.mjs → mindmap-definition-8da855dc-C593bSOa.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as yv, l as Nr, ar as mv, as as bv, at as wv, g as ao, T as Ev, o as xv, X as Cn, i as Dn, d as Tv, W as Cv } from "./index-
|
|
2
|
-
import { a as Dv } from "./createText-1719965b-
|
|
1
|
+
import { P as yv, l as Nr, ar as mv, as as bv, at as wv, g as ao, T as Ev, o as xv, X as Cn, i as Dn, d as Tv, W as Cv } from "./index-DHgY23xO.mjs";
|
|
2
|
+
import { a as Dv } from "./createText-1719965b-BYlDfw-H.mjs";
|
|
3
3
|
function Bs(t, e) {
|
|
4
4
|
(e == null || e > t.length) && (e = t.length);
|
|
5
5
|
for (var r = 0, a = Array(e); r < e; r++) a[r] = t[r];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as H, a as rt, s as at, b as lt, c as ot, C as ct, D as ht, l as et, g as it, V as ut, T as yt, W as ft, e as pt, i as gt, E as dt, X as mt } from "./index-
|
|
2
|
-
import { a as tt } from "./arc-
|
|
1
|
+
import { U as H, a as rt, s as at, b as lt, c as ot, C as ct, D as ht, l as et, g as it, V as ut, T as yt, W as ft, e as pt, i as gt, E as dt, X as mt } from "./index-DHgY23xO.mjs";
|
|
2
|
+
import { a as tt } from "./arc-B-AeIGLN.mjs";
|
|
3
3
|
import { o as _t } from "./ordinal-C0oynhte.mjs";
|
|
4
4
|
import { a as xt } from "./array-CqVTtuYm.mjs";
|
|
5
5
|
import { c as F } from "./path-DLwuMfdd.mjs";
|
package/dist/{quadrantDiagram-1e28029f-CBbo-Qdq.mjs → quadrantDiagram-1e28029f-DFLPz7rq.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as vt, a as Lt, C as bt, D as Ct, b as zt, c as Et, g as yt, l as ot, d as gt, e as Dt, E as It, X as D, Y as Bt, i as wt } from "./index-
|
|
2
|
-
import { l as mt } from "./linear-
|
|
1
|
+
import { s as vt, a as Lt, C as bt, D as Ct, b as zt, c as Et, g as yt, l as ot, d as gt, e as Dt, E as It, X as D, Y as Bt, i as wt } from "./index-DHgY23xO.mjs";
|
|
2
|
+
import { l as mt } from "./linear-CIGZn-gU.mjs";
|
|
3
3
|
var pt = (function() {
|
|
4
4
|
var e = function(K, n, r, l) {
|
|
5
5
|
for (r = r || {}, l = K.length; l--; r[K[l]] = n)
|
package/dist/{requirementDiagram-08caed73-CS9bBXBW.mjs → requirementDiagram-08caed73-CCC5UtJ_.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as Ce, s as Fe, b as Me, c as De, g as Te, d as oe, e as Pe, E as Ye, l as Ne, k as ke } from "./index-
|
|
2
|
-
import { G as Ue } from "./graph-
|
|
3
|
-
import { l as Be } from "./layout-
|
|
4
|
-
import { l as Qe } from "./line-
|
|
1
|
+
import { a as Ce, s as Fe, b as Me, c as De, g as Te, d as oe, e as Pe, E as Ye, l as Ne, k as ke } from "./index-DHgY23xO.mjs";
|
|
2
|
+
import { G as Ue } from "./graph-Dkvc5zok.mjs";
|
|
3
|
+
import { l as Be } from "./layout-BXCgB1Ja.mjs";
|
|
4
|
+
import { l as Qe } from "./line-BI_kVx8v.mjs";
|
|
5
5
|
var ce = (function() {
|
|
6
6
|
var e = function(V, i, r, a) {
|
|
7
7
|
for (r = r || {}, a = V.length; a--; r[V[a]] = i)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as mt, C as kt, s as _t, a as xt, c as vt, b as bt, g as rt, aq as wt, d as G, o as St, E as Lt, k as Et } from "./index-
|
|
1
|
+
import { D as mt, C as kt, s as _t, a as xt, c as vt, b as bt, g as rt, aq as wt, d as G, o as St, E as Lt, k as Et } from "./index-DHgY23xO.mjs";
|
|
2
2
|
import { o as At } from "./ordinal-C0oynhte.mjs";
|
|
3
3
|
import { s as Tt } from "./Tableau10-D7jGxypv.mjs";
|
|
4
4
|
function ot(t, n) {
|
package/dist/{sequenceDiagram-c5b8d532-BWbEVN8Z.mjs → sequenceDiagram-c5b8d532-DfyYJZ9x.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as we, s as ve, c as $t, g as st, D as _e, C as ke, b as Pe, d as Lt, l as X, j as te, e as Le, f as Ie, k as v, i as At, E as Ae, B, a3 as nt, a4 as wt, W as ee, a5 as Ne, t as se, Z as Bt } from "./index-
|
|
2
|
-
import { a as Se, b as zt, d as Me, g as Nt, c as Re, e as Ce } from "./svgDrawCommon-b86b1483-
|
|
1
|
+
import { a as we, s as ve, c as $t, g as st, D as _e, C as ke, b as Pe, d as Lt, l as X, j as te, e as Le, f as Ie, k as v, i as At, E as Ae, B, a3 as nt, a4 as wt, W as ee, a5 as Ne, t as se, Z as Bt } from "./index-DHgY23xO.mjs";
|
|
2
|
+
import { a as Se, b as zt, d as Me, g as Nt, c as Re, e as Ce } from "./svgDrawCommon-b86b1483-Cz_Ma4Lv.mjs";
|
|
3
3
|
var Yt = (function() {
|
|
4
4
|
var t = function(dt, w, k, L) {
|
|
5
5
|
for (k = k || {}, L = dt.length; L--; k[dt[L]] = w)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as P, d as N, p as W } from "./styles-ca3715f6-
|
|
2
|
-
import { g as t, d as H, l as b, e as R, k as T, F as v, B as U } from "./index-
|
|
3
|
-
import { G as C } from "./graph-
|
|
4
|
-
import { l as F } from "./layout-
|
|
5
|
-
import { l as $ } from "./line-
|
|
1
|
+
import { s as P, d as N, p as W } from "./styles-ca3715f6-Bbwf9B4M.mjs";
|
|
2
|
+
import { g as t, d as H, l as b, e as R, k as T, F as v, B as U } from "./index-DHgY23xO.mjs";
|
|
3
|
+
import { G as C } from "./graph-Dkvc5zok.mjs";
|
|
4
|
+
import { l as F } from "./layout-BXCgB1Ja.mjs";
|
|
5
|
+
import { l as $ } from "./line-BI_kVx8v.mjs";
|
|
6
6
|
const O = (e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), X = (e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), J = (e, i) => {
|
|
7
7
|
const o = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = o.node().getBBox();
|
|
8
8
|
return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), o;
|
package/dist/{stateDiagram-v2-c2b004d7-CNt6GAi6.mjs → stateDiagram-v2-c2b004d7-BBsfF4nx.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as Q, d as B, p as X, D as Z, a as H, b as F, S as m, c as I } from "./styles-ca3715f6-
|
|
2
|
-
import { G as tt } from "./graph-
|
|
3
|
-
import { l as E, g, d as x, B as et, e as ot, k as w } from "./index-
|
|
4
|
-
import { r as st } from "./index-5325376f-
|
|
5
|
-
import "./layout-
|
|
1
|
+
import { s as Q, d as B, p as X, D as Z, a as H, b as F, S as m, c as I } from "./styles-ca3715f6-Bbwf9B4M.mjs";
|
|
2
|
+
import { G as tt } from "./graph-Dkvc5zok.mjs";
|
|
3
|
+
import { l as E, g, d as x, B as et, e as ot, k as w } from "./index-DHgY23xO.mjs";
|
|
4
|
+
import { r as st } from "./index-5325376f-C7evlvXX.mjs";
|
|
5
|
+
import "./layout-BXCgB1Ja.mjs";
|
|
6
6
|
const h = "rect", C = "rectWithTitle", nt = "start", ct = "end", it = "divider", rt = "roundedWithTitle", lt = "note", at = "noteGroup", p = "statediagram", dt = "state", Et = `${p}-${dt}`, U = "transition", St = "note", Tt = "note-edge", _t = `${U} ${Tt}`, pt = `${p}-${St}`, ut = "cluster", Dt = `${p}-${ut}`, bt = "cluster-alt", ft = `${p}-${bt}`, V = "parent", Y = "note", At = "state", N = "----", ht = `${N}${Y}`, M = `${N}${V}`, W = "fill:none", z = "fill: #333", q = "c", K = "text", j = "normal";
|
|
7
7
|
let y = {}, d = 0;
|
|
8
8
|
const yt = function(t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ut, D as rt, g as F, s as at, a as lt, b as ct, c as ot, k as v, B as We, l as ht, E as At, i as pt, G as Re, d as z } from "./index-
|
|
1
|
+
import { C as ut, D as rt, g as F, s as at, a as lt, b as ct, c as ot, k as v, B as We, l as ht, E as At, i as pt, G as Re, d as z } from "./index-DHgY23xO.mjs";
|
|
2
2
|
var Ve = (function() {
|
|
3
3
|
var e = function(x, u, a, h) {
|
|
4
4
|
for (a = a || {}, h = x.length; h--; a[x[h]] = u)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Ut, D as zt, s as Mt, a as Ht, c as Xt, b as Kt, g as Y, k as ot, l as D, E as Wt, a6 as Jt } from "./index-
|
|
1
|
+
import { C as Ut, D as zt, s as Mt, a as Ht, c as Xt, b as Kt, g as Y, k as ot, l as D, E as Wt, a6 as Jt } from "./index-DHgY23xO.mjs";
|
|
2
2
|
var gt = (function() {
|
|
3
3
|
var t = function(C, r, n, i) {
|
|
4
4
|
for (n = n || {}, i = C.length; i--; n[C[i]] = r)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as z, v as R, x as F, y as U, z as j, A as H, l as g, g as S, d as C, B as K, o as W, p as N, q as E, n as L, t as G, k as q, r as X } from "./index-
|
|
2
|
-
import { G as J } from "./graph-
|
|
3
|
-
import { r as Q } from "./index-5325376f-
|
|
4
|
-
import { c as Y } from "./channel-
|
|
1
|
+
import { S as z, v as R, x as F, y as U, z as j, A as H, l as g, g as S, d as C, B as K, o as W, p as N, q as E, n as L, t as G, k as q, r as X } from "./index-DHgY23xO.mjs";
|
|
2
|
+
import { G as J } from "./graph-Dkvc5zok.mjs";
|
|
3
|
+
import { r as Q } from "./index-5325376f-C7evlvXX.mjs";
|
|
4
|
+
import { c as Y } from "./channel-CVkVCVVm.mjs";
|
|
5
5
|
function Z(e) {
|
|
6
6
|
return typeof e == "string" ? new z([document.querySelectorAll(e)], [document.documentElement]) : new z([F(e)], R);
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ao as o, j as i } from "./index-
|
|
1
|
+
import { ao as o, j as i } from "./index-DHgY23xO.mjs";
|
|
2
2
|
const l = (s, t) => {
|
|
3
3
|
const e = s.append("rect");
|
|
4
4
|
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx !== void 0 && e.attr("rx", t.rx), t.ry !== void 0 && e.attr("ry", t.ry), t.attrs !== void 0)
|
package/dist/{timeline-definition-faaaa080-dpwqIzMm.mjs → timeline-definition-faaaa080-aMyalBdM.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ar as gt, as as ft, at as mt, g as xt, l as E, d as G, o as _t, au as bt, E as kt } from "./index-
|
|
2
|
-
import { a as D } from "./arc-
|
|
1
|
+
import { ar as gt, as as ft, at as mt, g as xt, l as E, d as G, o as _t, au as bt, E as kt } from "./index-DHgY23xO.mjs";
|
|
2
|
+
import { a as D } from "./arc-B-AeIGLN.mjs";
|
|
3
3
|
var K = (function() {
|
|
4
4
|
var n = function(f, i, r, c) {
|
|
5
5
|
for (r = r || {}, c = f.length; c--; r[f[c]] = i)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as zt, a as Ft, C as wt, D as Nt, b as Xt, c as Yt, l as St, T as Ht, e as $t, E as Ut, Z as ot, V as Ct, X as qt, Y as jt, i as Gt } from "./index-
|
|
2
|
-
import { c as Qt } from "./createText-1719965b-
|
|
1
|
+
import { s as zt, a as Ft, C as wt, D as Nt, b as Xt, c as Yt, l as St, T as Ht, e as $t, E as Ut, Z as ot, V as Ct, X as qt, Y as jt, i as Gt } from "./index-DHgY23xO.mjs";
|
|
2
|
+
import { c as Qt } from "./createText-1719965b-BYlDfw-H.mjs";
|
|
3
3
|
import { i as Kt } from "./init-DjUOC4st.mjs";
|
|
4
4
|
import { o as Zt } from "./ordinal-C0oynhte.mjs";
|
|
5
|
-
import { l as ft } from "./linear-
|
|
6
|
-
import { l as pt } from "./line-
|
|
5
|
+
import { l as ft } from "./linear-CIGZn-gU.mjs";
|
|
6
|
+
import { l as pt } from "./line-BI_kVx8v.mjs";
|
|
7
7
|
function Jt(e, t, i) {
|
|
8
8
|
e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
|
|
9
9
|
for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zjlab-frontier/markdown",
|
|
3
|
-
"version": "1.1.1-beta.
|
|
3
|
+
"version": "1.1.1-beta.1",
|
|
4
4
|
"description": "Framework-agnostic Markdown component with support for Mermaid, KaTeX, and code highlighting. Core library is React-free; React adapter available optionally.",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|