aitu-app 0.6.78 → 0.6.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/README.md +3 -3
  2. package/assets/CanvasAudioPlayer-CSFENxi6.js +2 -0
  3. package/assets/ChatDrawer-CWZQP5R5.css +1 -0
  4. package/assets/ChatDrawer-sVEVW11M.js +11 -0
  5. package/assets/ChatMessagesArea-Cnb94V8-.js +7 -0
  6. package/assets/ChatMessagesArea-PlF5AwzD.css +1 -0
  7. package/assets/DeferredAIInputBar-D99l6sBS.js +8 -0
  8. package/assets/DrawnixDeferredFeatures-78cIu-ev.js +2 -0
  9. package/assets/{KnowledgeBaseContent-DcX5Jofx.js → KnowledgeBaseContent-DZ-1fPZa.js} +10 -10
  10. package/assets/{MVCreator-DllHozYg.js → MVCreator-BV8KDR6E.js} +8 -8
  11. package/assets/ModelBenchmarkWorkbench-DL6r0Z_5.js +2 -0
  12. package/assets/MusicAnalyzer-D9Bpmhym.css +1 -0
  13. package/assets/{MusicAnalyzer-DDeT6g3c.js → MusicAnalyzer-DQtjf36o.js} +2 -2
  14. package/assets/{MusicAnalyzer-CHcQ5t4P.js → MusicAnalyzer-u_5sy56T.js} +1 -1
  15. package/assets/PromptHistoryTool-B-ktaOpK.js +2 -0
  16. package/assets/PromptHistoryTool-BH7hq916.css +1 -0
  17. package/assets/ResizableDivider-BpUFdkte.js +1 -0
  18. package/assets/TaskQueuePanel-BLD1r7_I.js +1 -0
  19. package/assets/{VideoAnalyzer-BSLz1FaI.js → VideoAnalyzer-Bjv9pyDs.js} +2 -2
  20. package/assets/ai-generation-preferences-service-BSpgVCHz.js +1 -0
  21. package/assets/arc-CnA_FoJK.js +1 -0
  22. package/assets/{arc-BU2KKCa_.js → arc-DDvk_-VM.js} +1 -1
  23. package/assets/{batch-image-generation-Bg68r_Ql.js → batch-image-generation-N-lwbjRE.js} +3 -3
  24. package/assets/{blockDiagram-38ab4fdb-BCGEnMME.js → blockDiagram-38ab4fdb-B2G4wjZe.js} +6 -6
  25. package/assets/{blockDiagram-38ab4fdb-CsZR5uC5.js → blockDiagram-38ab4fdb-DBkZWrKk.js} +1 -1
  26. package/assets/{browser-DpICcNby.js → browser-ZXTF4AKv.js} +1 -1
  27. package/assets/{c4Diagram-3d4e48cf-9fuiuFdV.js → c4Diagram-3d4e48cf-BFg-wccg.js} +1 -1
  28. package/assets/{c4Diagram-3d4e48cf-WM4wd_GR.js → c4Diagram-3d4e48cf-CmyNnfip.js} +1 -1
  29. package/assets/{canvas-insertion-CdUQF7IV.js → canvas-insertion-CKIoVZ9a.js} +1 -1
  30. package/assets/channel-BQh3J7kz.js +1 -0
  31. package/assets/channel-CPsF_uSp.js +1 -0
  32. package/assets/{classDiagram-70f12bd4-DcYDedz1.js → classDiagram-70f12bd4-BoP-e23u.js} +2 -2
  33. package/assets/{classDiagram-70f12bd4-CBVHTwQu.js → classDiagram-70f12bd4-UTHJc2XA.js} +1 -1
  34. package/assets/classDiagram-v2-f2320105-BeBc2H-D.js +2 -0
  35. package/assets/{classDiagram-v2-f2320105-jpCwaHEd.js → classDiagram-v2-f2320105-Bjwz5ljW.js} +1 -1
  36. package/assets/{clipper-jvd5rF5a.js → clipper-NoHaeWV4.js} +1 -1
  37. package/assets/clone-CA2KqVCK.js +1 -0
  38. package/assets/createText-2e5e7dd3-Bsu7vT-L.js +8 -0
  39. package/assets/{createText-2e5e7dd3-x5lOIwut.js → createText-2e5e7dd3-DrWUfa-s.js} +1 -1
  40. package/assets/{edges-e0da2a9e-CbrF4nbD.js → edges-e0da2a9e-B9sYOHRt.js} +1 -1
  41. package/assets/{edges-e0da2a9e-Ch6PBwWs.js → edges-e0da2a9e-DX4IQMED.js} +1 -1
  42. package/assets/{erDiagram-9861fffd-DSlNVuAZ.js → erDiagram-9861fffd-B-LfsIMf.js} +1 -1
  43. package/assets/{erDiagram-9861fffd-Bq07elcI.js → erDiagram-9861fffd-DPdud_LA.js} +1 -1
  44. package/assets/{flowDb-956e92f1-Ti5YC4Vv.js → flowDb-956e92f1-C3xKlizM.js} +1 -1
  45. package/assets/{flowDb-956e92f1-BqPCJlZp.js → flowDb-956e92f1-Ck5oiEta.js} +1 -1
  46. package/assets/{flowDiagram-66a62f08-CPDuG3rY.js → flowDiagram-66a62f08-Bkt2NoHM.js} +4 -4
  47. package/assets/{flowDiagram-66a62f08-D3GSABFi.js → flowDiagram-66a62f08-CJnxo6dI.js} +1 -1
  48. package/assets/flowDiagram-v2-96b9c2cf-MnwxRDMO.js +1 -0
  49. package/assets/flowDiagram-v2-96b9c2cf-U7nNPvdl.js +1 -0
  50. package/assets/{flowchart-elk-definition-4a651766-BH09NeLA.js → flowchart-elk-definition-4a651766-2XkrsdKI.js} +2 -2
  51. package/assets/{flowchart-elk-definition-4a651766-BLaLPCDV.js → flowchart-elk-definition-4a651766-ec8y1a8S.js} +1 -1
  52. package/assets/{ganttDiagram-c361ad54-DL9ZeaEc.js → ganttDiagram-c361ad54-1TA0mZY_.js} +3 -3
  53. package/assets/{ganttDiagram-c361ad54-Sp9M1KHP.js → ganttDiagram-c361ad54-D-OrVtXV.js} +3 -3
  54. package/assets/{gitGraphDiagram-72cf32ee-BWwmRKo-.js → gitGraphDiagram-72cf32ee-Blt3RsBD.js} +1 -1
  55. package/assets/{gitGraphDiagram-72cf32ee-BSf1fsDV.js → gitGraphDiagram-72cf32ee-CKf6xgO1.js} +1 -1
  56. package/assets/{graph-g-2U7grQ.js → graph-CUYgHJmb.js} +1 -1
  57. package/assets/{graph--nPw8zXQ.js → graph-WeSRtsZO.js} +1 -1
  58. package/assets/{index-ZrVeQUWo.js → index--MqiaN5t.js} +1 -1
  59. package/assets/{index-C5eu4uSl.js → index-0b_TeH8L.js} +11 -11
  60. package/assets/{index-3862675e-BXwbZ2pz.js → index-3862675e-C2ipEQC8.js} +1 -1
  61. package/assets/{index-3862675e-D6Zy95zZ.js → index-3862675e-CeX6VlsU.js} +1 -1
  62. package/assets/{index-CLJUfzvO.js → index-B-J0JJak.js} +1 -1
  63. package/assets/{index-TkfyNewx.js → index-B7Hj7g41.js} +1 -1
  64. package/assets/{index-eZfwJ9bV.js → index-BS_v5cOh.js} +1 -1
  65. package/assets/index-Btk31p7r.js +1 -0
  66. package/assets/{index-DH12_HTj.js → index-C-Samsu3.js} +2 -2
  67. package/assets/index-C-llNX01.js +1 -0
  68. package/assets/index-C8c9icsH.js +2 -0
  69. package/assets/{index-D7b5fX1d.js → index-CAn2jfNg.js} +1 -1
  70. package/assets/{index-Dz8sghkK.js → index-CK2zt94U.js} +1 -1
  71. package/assets/{index-CfgvFFx3.js → index-CP51k4n6.js} +17 -17
  72. package/assets/{index-DI0OV6F8.js → index-CXBhIy30.js} +1 -1
  73. package/assets/index-C_Mj1wbj.js +2 -0
  74. package/assets/{index-BwSnJN93.js → index-CbfE0MBd.js} +1 -1
  75. package/assets/{index-C3qD42ws.js → index-CjeDxq0c.js} +1 -1
  76. package/assets/{index-DqMndQiP.js → index-Ct7OFnWK.js} +1 -1
  77. package/assets/{index-BaCHOxhI.js → index-CxxUIkx1.js} +1 -1
  78. package/assets/{index-B2dttXd7.js → index-D2Kc-3MO.js} +1 -1
  79. package/assets/{index-Bq8mPedC.js → index-DK0XEByD.js} +1 -1
  80. package/assets/{index-DllL1sx1.js → index-DQcV2DYj.js} +1 -1
  81. package/assets/{index-BP77pG9S.js → index-DSKRBuhn.js} +73 -73
  82. package/assets/{index-BXzGHPXz.js → index-DXqL8NRE.js} +2 -2
  83. package/assets/{index-B7V7-Vxz.js → index-DcLrRIlS.js} +1 -1
  84. package/assets/{index-D4pIkh3S.js → index-DdA-dF0D.js} +1 -1
  85. package/assets/{index-QkP3EC02.js → index-DdxTnVj5.js} +1 -1
  86. package/assets/{index-CmyOpFTN.js → index-DmrnShhc.js} +1 -1
  87. package/assets/{index-Bti3m-iW.js → index-QO0uGVDP.js} +1 -1
  88. package/assets/{index-BPR_DyGD.js → index-aIKXDB1M.js} +1 -1
  89. package/assets/{index-DIiIUyb-.js → index-n6JhNACm.js} +1 -1
  90. package/assets/{index-BWrcsh8u.js → index-qbS_W7PW.js} +1 -1
  91. package/assets/index-v7iKPBEu.css +1 -0
  92. package/assets/{infoDiagram-f8f76790-DpFqCCNv.js → infoDiagram-f8f76790-DEWQ3NXc.js} +1 -1
  93. package/assets/{infoDiagram-f8f76790-G2JpJJP7.js → infoDiagram-f8f76790-u_qjHFCm.js} +3 -3
  94. package/assets/{journeyDiagram-49397b02-DLLTobRM.js → journeyDiagram-49397b02-C8A30CBr.js} +1 -1
  95. package/assets/{journeyDiagram-49397b02-BdESGMrv.js → journeyDiagram-49397b02-hQJfqZih.js} +1 -1
  96. package/assets/{layout-WSR0vNPO.js → layout-CFKTKeqQ.js} +1 -1
  97. package/assets/{layout-CVkuImk4.js → layout-DvRyabpG.js} +1 -1
  98. package/assets/{line-D3bnG227.js → line-C72F34Po.js} +1 -1
  99. package/assets/{line-DQuMJveY.js → line-W5R41tQ1.js} +1 -1
  100. package/assets/{linear-CciP-97N.js → linear-7FXykgHM.js} +1 -1
  101. package/assets/{linear-Z6vFvuwc.js → linear-CVyOPUvz.js} +1 -1
  102. package/assets/main-BO0HWBB1.js +42 -0
  103. package/assets/{main-8DNjLY6L.css → main-DAuE07rf.css} +1 -1
  104. package/assets/{mermaid.core-CwZQb0ud.js → mermaid.core-2VcXhn43.js} +4 -4
  105. package/assets/{mindmap-definition-fc14e90a-BnJ8OOTI.js → mindmap-definition-fc14e90a-CcVXKGg4.js} +1 -1
  106. package/assets/{mindmap-definition-fc14e90a-CxQMydCW.js → mindmap-definition-fc14e90a-DRDYXe84.js} +2 -2
  107. package/assets/model-benchmark-launcher-C2qBiDlM.js +1 -0
  108. package/assets/{photo-wall-splitter-BZ88W5Zy.js → photo-wall-splitter-CFntSOdS.js} +1 -1
  109. package/assets/{pieDiagram-8a3498a8-BSDdkTeu.js → pieDiagram-8a3498a8-Be9dl9pU.js} +1 -1
  110. package/assets/{pieDiagram-8a3498a8-D6VtAoja.js → pieDiagram-8a3498a8-DXZOJYBv.js} +5 -5
  111. package/assets/ppt-generation-B5fKT_by.js +48 -0
  112. package/assets/{quadrantDiagram-120e2f19-C8k2xuBd.js → quadrantDiagram-120e2f19-DoU7aQSp.js} +3 -3
  113. package/assets/{quadrantDiagram-120e2f19-BbFV0VXY.js → quadrantDiagram-120e2f19-l5K9mx26.js} +1 -1
  114. package/assets/{requirementDiagram-deff3bca-C3xMdzJV.js → requirementDiagram-deff3bca-DN_87Wxe.js} +1 -1
  115. package/assets/{requirementDiagram-deff3bca-CpjqKjYZ.js → requirementDiagram-deff3bca-DOooq7kx.js} +1 -1
  116. package/assets/retry-image-BmIVuAVu.js +6 -0
  117. package/assets/{sankeyDiagram-04a897e0-Bjvig9bW.js → sankeyDiagram-04a897e0-BB33nO6_.js} +1 -1
  118. package/assets/{sankeyDiagram-04a897e0-BBJJgsFv.js → sankeyDiagram-04a897e0-CCa0hwml.js} +2 -2
  119. package/assets/{sequenceDiagram-704730f1-PFC_9IFI.js → sequenceDiagram-704730f1-CNhXZiix.js} +1 -1
  120. package/assets/{sequenceDiagram-704730f1-DX1MmBN_.js → sequenceDiagram-704730f1-ZqQ1QrY-.js} +1 -1
  121. package/assets/settings-dialog-BFuWTeQR.js +1 -0
  122. package/assets/{skill-dsl-parser-syNWYxFu.js → skill-dsl-parser-b-aB3P5u.js} +1 -1
  123. package/assets/{stateDiagram-587899a1-Dc3mI_B_.js → stateDiagram-587899a1-BBlOIJr7.js} +1 -1
  124. package/assets/{stateDiagram-587899a1-SFMUVAam.js → stateDiagram-587899a1-BhomZ0AN.js} +1 -1
  125. package/assets/{stateDiagram-v2-d93cdb3a-P4Yt2p_j.js → stateDiagram-v2-d93cdb3a-BpJsgMa0.js} +1 -1
  126. package/assets/stateDiagram-v2-d93cdb3a-CuOn9du2.js +1 -0
  127. package/assets/{styles-6aaf32cf-C3jnr3hV.js → styles-6aaf32cf-C2WEewoA.js} +1 -1
  128. package/assets/{styles-6aaf32cf-b6AdP7fu.js → styles-6aaf32cf-CTtf8moq.js} +1 -1
  129. package/assets/{styles-9a916d00-BUiD9iBe.js → styles-9a916d00-44Xi2-39.js} +1 -1
  130. package/assets/{styles-9a916d00-ii0XTdIm.js → styles-9a916d00-DUU3VgNe.js} +4 -4
  131. package/assets/{styles-c10674c1-DbTSpy3W.js → styles-c10674c1--AhWSGg7.js} +1 -1
  132. package/assets/styles-c10674c1-DS-wE3tK.js +116 -0
  133. package/assets/{svgDrawCommon-08f97a94-D4gIV05W.js → svgDrawCommon-08f97a94-CXcvtSSy.js} +1 -1
  134. package/assets/{svgDrawCommon-08f97a94-BK6lD4D6.js → svgDrawCommon-08f97a94-Dyqh4V2s.js} +1 -1
  135. package/assets/{timeline-definition-85554ec2-Bl2y548G.js → timeline-definition-85554ec2-k788753O.js} +1 -1
  136. package/assets/{timeline-definition-85554ec2-CWKg_JxG.js → timeline-definition-85554ec2-sw6-UuBe.js} +1 -1
  137. package/assets/tool-windows-BEnZdJqF.js +2948 -0
  138. package/assets/{tool-windows-CUNbW1Tz.css → tool-windows-D61Le6TE.css} +1 -1
  139. package/assets/ttd-dialog-BJzXAZ0l.js +99 -0
  140. package/assets/useCharacters-DRBoWvvj.css +1 -0
  141. package/assets/useCharacters-gsV4K8Hn.js +2 -0
  142. package/assets/{useWorkflowSubmission-BizuDmuw.js → useWorkflowSubmission-XRR21P6Y.js} +10 -10
  143. package/assets/{video-analyze-6v3Y-rUE.js → video-analyze-CpbnpSiI.js} +1 -1
  144. package/assets/{video-generation-DnmTlWnm.js → video-generation-BXhS7x-a.js} +2 -2
  145. package/assets/video-recovery-service-6G2lkWcu.js +1 -0
  146. package/assets/workflow-generation-utils-CYxtSHl0.js +3 -0
  147. package/assets/workflow-submission-service-DygSzydV.js +4 -0
  148. package/assets/{xychartDiagram-e933f94c-CJX9_9WF.js → xychartDiagram-e933f94c-CvTTDwPb.js} +3 -3
  149. package/assets/{xychartDiagram-e933f94c-Cep8CQEH.js → xychartDiagram-e933f94c-Ga9zi9ha.js} +1 -1
  150. package/changelog.json +45 -0
  151. package/idle-prefetch-manifest.json +310 -306
  152. package/manifest.json +3 -3
  153. package/package.json +1 -1
  154. package/precache-manifest.json +10 -10
  155. package/sitemap.xml +37 -0
  156. package/sw-debug/app.js +269 -156
  157. package/sw-debug/backup-restore.js +235 -103
  158. package/sw-debug/crypto-helper.js +116 -120
  159. package/sw-debug/duplex-client.js +33 -19
  160. package/sw-debug/gist-management.js +938 -655
  161. package/sw-debug/sw-communication.js +87 -50
  162. package/sw.js +5 -5
  163. package/version.json +7 -17
  164. package/assets/CanvasAudioPlayer-DutgwdiU.js +0 -2
  165. package/assets/ChatDrawer-0jNvKIoI.css +0 -1
  166. package/assets/ChatDrawer-E6Fog16I.js +0 -11
  167. package/assets/ChatMessagesArea-Bgwiz_XP.js +0 -250
  168. package/assets/ChatMessagesArea-DyR_wHFQ.css +0 -1
  169. package/assets/DeferredAIInputBar-CPkD8Cv9.js +0 -8
  170. package/assets/DrawnixDeferredFeatures-Cul76-88.js +0 -2
  171. package/assets/ModelBenchmarkWorkbench-Dv9SNYTi.js +0 -2
  172. package/assets/MusicAnalyzer-DhtRGpAp.css +0 -1
  173. package/assets/ResizableDivider-CaG9JQbJ.js +0 -1
  174. package/assets/TaskQueuePanel-BNhNzGp5.js +0 -1
  175. package/assets/ai-generation-preferences-service-BF7QkuJp.js +0 -1
  176. package/assets/arc-DmGoDCEL.js +0 -1
  177. package/assets/channel-CZjE-WNp.js +0 -1
  178. package/assets/channel-SXZD6bG3.js +0 -1
  179. package/assets/classDiagram-v2-f2320105-CsxWGkSy.js +0 -2
  180. package/assets/clone-C4mvvMDb.js +0 -1
  181. package/assets/createText-2e5e7dd3-CkXS3l7I.js +0 -5
  182. package/assets/flowDiagram-v2-96b9c2cf-BCcJ-cre.js +0 -1
  183. package/assets/flowDiagram-v2-96b9c2cf-DCVaFEgV.js +0 -1
  184. package/assets/index-3eqA7Bag.js +0 -1
  185. package/assets/index-7Q-aiwln.js +0 -4
  186. package/assets/index-B1XP5g7P.css +0 -1
  187. package/assets/index-BHPTfCZM.js +0 -1
  188. package/assets/index-BqHZCcen.js +0 -2
  189. package/assets/index-DcZrElEK.js +0 -2
  190. package/assets/index-gQ7LgvSv.js +0 -12
  191. package/assets/main-BFEkxCOK.js +0 -56
  192. package/assets/model-benchmark-launcher-Ct3lYXVq.js +0 -1
  193. package/assets/ppt-generation-FzjP_rp0.js +0 -48
  194. package/assets/settings-dialog-CQM4v791.js +0 -1
  195. package/assets/stateDiagram-v2-d93cdb3a-DmnBjHpC.js +0 -1
  196. package/assets/styles-c10674c1-Bt89Yy8Q.js +0 -116
  197. package/assets/tool-windows-DOIu9TAD.js +0 -2975
  198. package/assets/ttd-dialog-DI4kQSg8.js +0 -99
  199. package/assets/useCharacters-Chv4Ky7x.js +0 -7
  200. package/assets/useCharacters-OrDbG69o.css +0 -1
  201. package/assets/video-recovery-service-BeRoh0s2.js +0 -1
  202. package/assets/workflow-generation-utils-me381Cax.js +0 -3
  203. package/assets/workflow-submission-service-YOpo7g37.js +0 -4
@@ -0,0 +1,8 @@
1
+ import{l as en,x as tn,ap as nn}from"./index-0b_TeH8L.js";import{d as Xe,c as rn}from"./browser-ZXTF4AKv.js";var ut=Object.prototype.hasOwnProperty;function ot(e,n,t){for(t of e.keys())if(Be(t,n))return t}function Be(e,n){var t,r,o;if(e===n)return!0;if(e&&n&&(t=e.constructor)===n.constructor){if(t===Date)return e.getTime()===n.getTime();if(t===RegExp)return e.toString()===n.toString();if(t===Array){if((r=e.length)===n.length)for(;r--&&Be(e[r],n[r]););return r===-1}if(t===Set){if(e.size!==n.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=ot(n,o),!o)||!n.has(o))return!1;return!0}if(t===Map){if(e.size!==n.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=ot(n,o),!o)||!Be(r[1],n.get(o)))return!1;return!0}if(t===ArrayBuffer)e=new Uint8Array(e),n=new Uint8Array(n);else if(t===DataView){if((r=e.byteLength)===n.byteLength)for(;r--&&e.getInt8(r)===n.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===n.byteLength)for(;r--&&e[r]===n[r];);return r===-1}if(!t||typeof e=="object"){r=0;for(t in e)if(ut.call(e,t)&&++r&&!ut.call(n,t)||!(t in n)||!Be(e[t],n[t]))return!1;return Object.keys(n).length===r}}return e!==e&&n!==n}var an={};let Ne,wt,Ct,Et,zt=!0;typeof process<"u"&&({FORCE_COLOR:Ne,NODE_DISABLE_COLORS:wt,NO_COLOR:Ct,TERM:Et}=an||{},zt=process.stdout&&process.stdout.isTTY);const L={enabled:!wt&&Ct==null&&Et!=="dumb"&&(Ne!=null&&Ne!=="0"||zt),reset:N(0,0),bold:N(1,22),dim:N(2,22),italic:N(3,23),underline:N(4,24),inverse:N(7,27),hidden:N(8,28),strikethrough:N(9,29),black:N(30,39),red:N(31,39),green:N(32,39),yellow:N(33,39),blue:N(34,39),magenta:N(35,39),cyan:N(36,39),white:N(37,39),gray:N(90,39),grey:N(90,39),bgBlack:N(40,49),bgRed:N(41,49),bgGreen:N(42,49),bgYellow:N(43,49),bgBlue:N(44,49),bgMagenta:N(45,49),bgCyan:N(46,49),bgWhite:N(47,49)};function lt(e,n){let t=0,r,o="",u="";for(;t<e.length;t++)r=e[t],o+=r.open,u+=r.close,~n.indexOf(r.close)&&(n=n.replace(r.rgx,r.close+r.open));return o+n+u}function un(e,n){let t={has:e,keys:n};return t.reset=L.reset.bind(t),t.bold=L.bold.bind(t),t.dim=L.dim.bind(t),t.italic=L.italic.bind(t),t.underline=L.underline.bind(t),t.inverse=L.inverse.bind(t),t.hidden=L.hidden.bind(t),t.strikethrough=L.strikethrough.bind(t),t.black=L.black.bind(t),t.red=L.red.bind(t),t.green=L.green.bind(t),t.yellow=L.yellow.bind(t),t.blue=L.blue.bind(t),t.magenta=L.magenta.bind(t),t.cyan=L.cyan.bind(t),t.white=L.white.bind(t),t.gray=L.gray.bind(t),t.grey=L.grey.bind(t),t.bgBlack=L.bgBlack.bind(t),t.bgRed=L.bgRed.bind(t),t.bgGreen=L.bgGreen.bind(t),t.bgYellow=L.bgYellow.bind(t),t.bgBlue=L.bgBlue.bind(t),t.bgMagenta=L.bgMagenta.bind(t),t.bgCyan=L.bgCyan.bind(t),t.bgWhite=L.bgWhite.bind(t),t}function N(e,n){let t={open:`\x1B[${e}m`,close:`\x1B[${n}m`,rgx:new RegExp(`\\x1b\\[${n}m`,"g")};return function(r){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(t)),r===void 0?this:L.enabled?lt(this.keys,r+""):r+""):r===void 0?un([e],[t]):L.enabled?lt([t],r+""):r+""}}function ke(){}ke.prototype={diff:function(n,t){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=o.callback;typeof o=="function"&&(u=o,o={}),this.options=o;var l=this;function s(I){return u?(setTimeout(function(){u(void 0,I)},0),!0):I}n=this.castInput(n),t=this.castInput(t),n=this.removeEmpty(this.tokenize(n)),t=this.removeEmpty(this.tokenize(t));var m=t.length,d=n.length,c=1,k=m+d;o.maxEditLength&&(k=Math.min(k,o.maxEditLength));var g=(r=o.timeout)!==null&&r!==void 0?r:1/0,f=Date.now()+g,B=[{oldPos:-1,lastComponent:void 0}],D=this.extractCommon(B[0],t,n,0);if(B[0].oldPos+1>=d&&D+1>=m)return s([{value:this.join(t),count:t.length}]);var v=-1/0,T=1/0;function j(){for(var I=Math.max(v,-c);I<=Math.min(T,c);I+=2){var O=void 0,y=B[I-1],P=B[I+1];y&&(B[I-1]=void 0);var W=!1;if(P){var Q=P.oldPos-I;W=P&&0<=Q&&Q<m}var Y=y&&y.oldPos+1<d;if(!W&&!Y){B[I]=void 0;continue}if(!Y||W&&y.oldPos+1<P.oldPos?O=l.addToPath(P,!0,void 0,0):O=l.addToPath(y,void 0,!0,1),D=l.extractCommon(O,t,n,I),O.oldPos+1>=d&&D+1>=m)return s(on(l,O.lastComponent,t,n,l.useLongestToken));B[I]=O,O.oldPos+1>=d&&(T=Math.min(T,I-1)),D+1>=m&&(v=Math.max(v,I+1))}c++}if(u)(function I(){setTimeout(function(){if(c>k||Date.now()>f)return u();j()||I()},0)})();else for(;c<=k&&Date.now()<=f;){var z=j();if(z)return z}},addToPath:function(n,t,r,o){var u=n.lastComponent;return u&&u.added===t&&u.removed===r?{oldPos:n.oldPos+o,lastComponent:{count:u.count+1,added:t,removed:r,previousComponent:u.previousComponent}}:{oldPos:n.oldPos+o,lastComponent:{count:1,added:t,removed:r,previousComponent:u}}},extractCommon:function(n,t,r,o){for(var u=t.length,l=r.length,s=n.oldPos,m=s-o,d=0;m+1<u&&s+1<l&&this.equals(t[m+1],r[s+1]);)m++,s++,d++;return d&&(n.lastComponent={count:d,previousComponent:n.lastComponent}),n.oldPos=s,m},equals:function(n,t){return this.options.comparator?this.options.comparator(n,t):n===t||this.options.ignoreCase&&n.toLowerCase()===t.toLowerCase()},removeEmpty:function(n){for(var t=[],r=0;r<n.length;r++)n[r]&&t.push(n[r]);return t},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function on(e,n,t,r,o){for(var u=[],l;n;)u.push(n),l=n.previousComponent,delete n.previousComponent,n=l;u.reverse();for(var s=0,m=u.length,d=0,c=0;s<m;s++){var k=u[s];if(k.removed){if(k.value=e.join(r.slice(c,c+k.count)),c+=k.count,s&&u[s-1].added){var f=u[s-1];u[s-1]=u[s],u[s]=f}}else{if(!k.added&&o){var g=t.slice(d,d+k.count);g=g.map(function(D,v){var T=r[c+v];return T.length>D.length?T:D}),k.value=e.join(g)}else k.value=e.join(t.slice(d,d+k.count));d+=k.count,k.added||(c+=k.count)}}var B=u[m-1];return m>1&&typeof B.value=="string"&&(B.added||B.removed)&&e.equals("",B.value)&&(u[m-2].value+=B.value,u.pop()),u}var st=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ct=/\S/,At=new ke;At.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!ct.test(e)&&!ct.test(n)};At.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&st.test(n[t])&&st.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var Bt=new ke;Bt.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
2
+ `));var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var r=0;r<t.length;r++){var o=t[r];r%2&&!this.options.newlineIsToken?n[n.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),n.push(o))}return n};var ln=new ke;ln.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var sn=new ke;sn.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function De(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?De=function(n){return typeof n}:De=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},De(e)}var cn=Object.prototype.toString,Me=new ke;Me.useLongestToken=!0;Me.tokenize=Bt.tokenize;Me.castInput=function(e){var n=this.options,t=n.undefinedReplacement,r=n.stringifyReplacer,o=r===void 0?function(u,l){return typeof l>"u"?t:l}:r;return typeof e=="string"?e:JSON.stringify(Ve(e,null,null,o),o," ")};Me.equals=function(e,n){return ke.prototype.equals.call(Me,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function Ve(e,n,t,r,o){n=n||[],t=t||[],r&&(e=r(o,e));var u;for(u=0;u<n.length;u+=1)if(n[u]===e)return t[u];var l;if(cn.call(e)==="[object Array]"){for(n.push(e),l=new Array(e.length),t.push(l),u=0;u<e.length;u+=1)l[u]=Ve(e[u],n,t,r,o);return n.pop(),t.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),De(e)==="object"&&e!==null){n.push(e),l={},t.push(l);var s=[],m;for(m in e)e.hasOwnProperty(m)&&s.push(m);for(s.sort(),u=0;u<s.length;u+=1)m=s[u],l[m]=Ve(e[m],n,t,r,m);n.pop(),t.pop()}else l=e;return l}var We=new ke;We.tokenize=function(e){return e.slice()};We.join=We.removeEmpty=function(e){return e};L.red,L.grey,L.green;L.dim().italic;L.dim("→");L.dim("·");L.dim("↵");function Oe(e){e=e.replace(/\r?\n/g,`
3
+ `);let n=e.match(/^[ \t]*(?=\S)/gm),t=0,r=1/0,o=(n||[]).length;for(;t<o;t++)r=Math.min(r,n[t].length);return o&&r?e.replace(new RegExp(`^[ \\t]{${r}}`,"gm"),""):e}class pn extends Error{constructor(n={}){super(n.message),this.name="Assertion",this.code="ERR_ASSERTION",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.details=n.details||!1,this.generated=!!n.generated,this.operator=n.operator,this.expects=n.expects,this.actual=n.actual}}function ae(e,n,t,r,o,u,l){if(e)return;let s=l||u;if(l instanceof Error)throw l;let m=o;throw new pn({actual:n,expects:t,operator:r,message:s,details:m,generated:!l})}function x(e,n){ae(!!e,!1,!0,"ok",!1,"Expected value to be truthy",n)}function me(e,n){ae(!e,!0,!1,"not",!1,"Expected value to be falsey",n)}me.ok=me;me.equal=function(e,n,t){ae(!Be(e,n),e,n,"not.equal",!1,"Expected values not to be deeply equal",t)};me.type=function(e,n,t){let r=typeof e;ae(r!==n,r,n,"not.type",!1,`Expected "${r}" not to be "${n}"`,t)};me.instance=function(e,n,t){let r="`"+(n.name||n.constructor.name)+"`";ae(!(e instanceof n),e,n,"not.instance",!1,`Expected value not to be an instance of ${r}`,t)};me.snapshot=function(e,n,t){e=Oe(e),n=Oe(n),ae(e!==n,e,n,"not.snapshot",!1,"Expected value not to match snapshot",t)};me.fixture=function(e,n,t){e=Oe(e),n=Oe(n),ae(e!==n,e,n,"not.fixture",!1,"Expected value not to match fixture",t)};me.match=function(e,n,t){typeof n=="string"?ae(!e.includes(n),e,n,"not.match",!1,`Expected value not to include "${n}" substring`,t):ae(!n.test(e),e,n,"not.match",!1,`Expected value not to match \`${String(n)}\` pattern`,t)};me.throws=function(e,n,t){!t&&typeof n=="string"&&(t=n,n=null);try{e()}catch(r){typeof n=="function"?ae(!n(r),!0,!1,"not.throws",!1,"Expected function not to throw matching exception",t):n instanceof RegExp?ae(!n.test(r.message),!0,!1,"not.throws",!1,`Expected function not to throw exception matching \`${String(n)}\` pattern`,t):n||ae(!1,!0,!1,"not.throws",!1,"Expected function not to throw",t)}};const hn={};function fn(e,n){const t=hn,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,o=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return It(e,r,o)}function It(e,n,t){if(dn(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return pt(e.children,n,t)}return Array.isArray(e)?pt(e,n,t):""}function pt(e,n,t){const r=[];let o=-1;for(;++o<e.length;)r[o]=It(e[o],n,t);return r.join("")}function dn(e){return!!(e&&typeof e=="object")}const w={atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};function se(e,n,t,r){const o=e.length;let u=0,l;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,t=t>0?t:0,r.length<w.v8MaxSafeChunkSize)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);u<r.length;)l=r.slice(u,u+w.v8MaxSafeChunkSize),l.unshift(n,0),e.splice(...l),u+=w.v8MaxSafeChunkSize,n+=w.v8MaxSafeChunkSize}function ie(e,n){return e.length>0?(se(e,e.length,0,n),e):n}const ht={}.hasOwnProperty;function mn(e){const n={};let t=-1;for(;++t<e.length;)xn(n,e[t]);return n}function xn(e,n){let t;for(t in n){const o=(ht.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t];let l;if(u)for(l in u){ht.call(o,l)||(o[l]=[]);const s=u[l];gn(o[l],Array.isArray(s)?s:s?[s]:[])}}}function gn(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);se(e,0,0,r)}const a={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,ht:9,lf:10,vt:11,cr:13,space:32,exclamationMark:33,quotationMark:34,numberSign:35,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseX:88,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseX:120,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},kn=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,le=be(/[A-Za-z]/),ue=be(/[\dA-Za-z]/),bn=be(/[#-'*+\--9=?A-Z^-~]/);function Qe(e){return e!==null&&(e<a.space||e===a.del)}const Ue=be(/\d/),Sn=be(/[\dA-Fa-f]/),yn=be(/[!-/:-@[-`{-~]/);function E(e){return e!==null&&e<a.horizontalTab}function ee(e){return e!==null&&(e<a.nul||e===a.space)}function R(e){return e===a.horizontalTab||e===a.virtualSpace||e===a.space}const Tn=be(kn),Fn=be(/\s/);function be(e){return n;function n(t){return t!==null&&e.test(String.fromCharCode(t))}}function V(e,n,t,r){const o=r?r-1:Number.POSITIVE_INFINITY;let u=0;return l;function l(m){return R(m)?(e.enter(t),s(m)):n(m)}function s(m){return R(m)&&u++<o?(e.consume(m),s):(e.exit(t),n(m))}}const i={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"},wn={tokenize:Cn};function Cn(e){const n=e.attempt(this.parser.constructs.contentInitial,r,o);let t;return n;function r(s){if(x(s===a.eof||E(s),"expected eol or eof"),s===a.eof){e.consume(s);return}return e.enter(i.lineEnding),e.consume(s),e.exit(i.lineEnding),V(e,n,i.linePrefix)}function o(s){return x(s!==a.eof&&!E(s),"expected anything other than a line ending or EOF"),e.enter(i.paragraph),u(s)}function u(s){const m=e.enter(i.chunkText,{contentType:w.contentTypeText,previous:t});return t&&(t.next=m),t=m,l(s)}function l(s){if(s===a.eof){e.exit(i.chunkText),e.exit(i.paragraph),e.consume(s);return}return E(s)?(e.consume(s),e.exit(i.chunkText),u):(e.consume(s),l)}}const En={tokenize:zn},ft={tokenize:An};function zn(e){const n=this,t=[];let r=0,o,u,l;return s;function s(z){if(r<t.length){const I=t[r];return n.containerState=I[1],x(I[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt(I[0].continuation,m,d)(z)}return d(z)}function m(z){if(x(n.containerState,"expected `containerState` to be defined after continuation"),r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&j();const I=n.events.length;let O=I,y;for(;O--;)if(n.events[O][0]==="exit"&&n.events[O][1].type===i.chunkFlow){y=n.events[O][1].end;break}x(y,"could not find previous flow chunk"),T(r);let P=I;for(;P<n.events.length;)n.events[P][1].end=Object.assign({},y),P++;return se(n.events,O+1,0,n.events.slice(I)),n.events.length=P,d(z)}return s(z)}function d(z){if(r===t.length){if(!o)return g(z);if(o.currentConstruct&&o.currentConstruct.concrete)return B(z);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ft,c,k)(z)}function c(z){return o&&j(),T(r),g(z)}function k(z){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,B(z)}function g(z){return n.containerState={},e.attempt(ft,f,B)(z)}function f(z){return x(n.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),x(n.containerState,"expected `containerState` to be defined on tokenizer"),r++,t.push([n.currentConstruct,n.containerState]),g(z)}function B(z){if(z===a.eof){o&&j(),T(0),e.consume(z);return}return o=o||n.parser.flow(n.now()),e.enter(i.chunkFlow,{contentType:w.contentTypeFlow,previous:u,_tokenizer:o}),D(z)}function D(z){if(z===a.eof){v(e.exit(i.chunkFlow),!0),T(0),e.consume(z);return}return E(z)?(e.consume(z),v(e.exit(i.chunkFlow)),r=0,n.interrupt=void 0,s):(e.consume(z),D)}function v(z,I){x(o,"expected `childFlow` to be defined when continuing");const O=n.sliceStream(z);if(I&&O.push(null),z.previous=u,u&&(u.next=z),u=z,o.defineSkip(z.start),o.write(O),n.parser.lazy[z.start.line]){let y=o.events.length;for(;y--;)if(o.events[y][1].start.offset<l&&(!o.events[y][1].end||o.events[y][1].end.offset>l))return;const P=n.events.length;let W=P,Q,Y;for(;W--;)if(n.events[W][0]==="exit"&&n.events[W][1].type===i.chunkFlow){if(Q){Y=n.events[W][1].end;break}Q=!0}for(x(Y,"could not find previous flow chunk"),T(r),y=P;y<n.events.length;)n.events[y][1].end=Object.assign({},Y),y++;se(n.events,W+1,0,n.events.slice(P)),n.events.length=y}}function T(z){let I=t.length;for(;I-- >z;){const O=t[I];n.containerState=O[1],x(O[0].exit,"expected `exit` to be defined on container construct"),O[0].exit.call(n,e)}t.length=z}function j(){x(n.containerState,"expected `containerState` to be defined when closing flow"),x(o,"expected `childFlow` to be defined when closing it"),o.write([a.eof]),u=void 0,o=void 0,n.containerState._closeFlow=void 0}}function An(e,n,t){return x(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),V(e,e.attempt(this.parser.constructs.document,n,t),i.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize)}function dt(e){if(e===a.eof||ee(e)||Fn(e))return w.characterGroupWhitespace;if(Tn(e))return w.characterGroupPunctuation}function Ze(e,n,t){const r=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!r.includes(u)&&(n=u(n,t),r.push(u))}return n}const $e={name:"attention",tokenize:In,resolveAll:Bn};function Bn(e,n){let t=-1,r,o,u,l,s,m,d,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;m=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const k=Object.assign({},e[r][1].end),g=Object.assign({},e[t][1].start);mt(k,-m),mt(g,m),l={type:m>1?i.strongSequence:i.emphasisSequence,start:k,end:Object.assign({},e[r][1].end)},s={type:m>1?i.strongSequence:i.emphasisSequence,start:Object.assign({},e[t][1].start),end:g},u={type:m>1?i.strongText:i.emphasisText,start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},o={type:m>1?i.strong:i.emphasis,start:Object.assign({},l.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},l.start),e[t][1].start=Object.assign({},s.end),d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=ie(d,[["enter",e[r][1],n],["exit",e[r][1],n]])),d=ie(d,[["enter",o,n],["enter",l,n],["exit",l,n],["enter",u,n]]),x(n.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),d=ie(d,Ze(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),d=ie(d,[["exit",u,n],["enter",s,n],["exit",s,n],["exit",o,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,d=ie(d,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,se(e,r-1,t-r+3,d),t=r+d.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function In(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,o=dt(r);let u;return l;function l(m){return x(m===a.asterisk||m===a.underscore,"expected asterisk or underscore"),u=m,e.enter("attentionSequence"),s(m)}function s(m){if(m===u)return e.consume(m),s;const d=e.exit("attentionSequence"),c=dt(m);x(t,"expected `attentionMarkers` to be populated");const k=!c||c===w.characterGroupPunctuation&&o||t.includes(m),g=!o||o===w.characterGroupPunctuation&&c||t.includes(r);return d._open=!!(u===a.asterisk?k:k&&(o||!g)),d._close=!!(u===a.asterisk?g:g&&(c||!k)),n(m)}}function mt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Mn={name:"autolink",tokenize:Dn};function Dn(e,n,t){let r=0;return o;function o(f){return x(f===a.lessThan,"expected `<`"),e.enter(i.autolink),e.enter(i.autolinkMarker),e.consume(f),e.exit(i.autolinkMarker),e.enter(i.autolinkProtocol),u}function u(f){return le(f)?(e.consume(f),l):d(f)}function l(f){return f===a.plusSign||f===a.dash||f===a.dot||ue(f)?(r=1,s(f)):d(f)}function s(f){return f===a.colon?(e.consume(f),r=0,m):(f===a.plusSign||f===a.dash||f===a.dot||ue(f))&&r++<w.autolinkSchemeSizeMax?(e.consume(f),s):(r=0,d(f))}function m(f){return f===a.greaterThan?(e.exit(i.autolinkProtocol),e.enter(i.autolinkMarker),e.consume(f),e.exit(i.autolinkMarker),e.exit(i.autolink),n):f===a.eof||f===a.space||f===a.lessThan||Qe(f)?t(f):(e.consume(f),m)}function d(f){return f===a.atSign?(e.consume(f),c):bn(f)?(e.consume(f),d):t(f)}function c(f){return ue(f)?k(f):t(f)}function k(f){return f===a.dot?(e.consume(f),r=0,c):f===a.greaterThan?(e.exit(i.autolinkProtocol).type=i.autolinkEmail,e.enter(i.autolinkMarker),e.consume(f),e.exit(i.autolinkMarker),e.exit(i.autolink),n):g(f)}function g(f){if((f===a.dash||ue(f))&&r++<w.autolinkDomainSizeMax){const B=f===a.dash?g:k;return e.consume(f),B}return t(f)}}const Pe={tokenize:Ln,partial:!0};function Ln(e,n,t){return r;function r(u){return R(u)?V(e,o,i.linePrefix)(u):o(u)}function o(u){return u===a.eof||E(u)?n(u):t(u)}}const Mt={name:"blockQuote",tokenize:qn,continuation:{tokenize:On},exit:Pn};function qn(e,n,t){const r=this;return o;function o(l){if(l===a.greaterThan){const s=r.containerState;return x(s,"expected `containerState` to be defined in container"),s.open||(e.enter(i.blockQuote,{_container:!0}),s.open=!0),e.enter(i.blockQuotePrefix),e.enter(i.blockQuoteMarker),e.consume(l),e.exit(i.blockQuoteMarker),u}return t(l)}function u(l){return R(l)?(e.enter(i.blockQuotePrefixWhitespace),e.consume(l),e.exit(i.blockQuotePrefixWhitespace),e.exit(i.blockQuotePrefix),n):(e.exit(i.blockQuotePrefix),n(l))}}function On(e,n,t){const r=this;return o;function o(l){return R(l)?(x(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),V(e,u,i.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize)(l)):u(l)}function u(l){return e.attempt(Mt,n,t)(l)}}function Pn(e){e.exit(i.blockQuote)}const Dt={name:"characterEscape",tokenize:Rn};function Rn(e,n,t){return r;function r(u){return x(u===a.backslash,"expected `\\`"),e.enter(i.characterEscape),e.enter(i.escapeMarker),e.consume(u),e.exit(i.escapeMarker),o}function o(u){return yn(u)?(e.enter(i.characterEscapeValue),e.consume(u),e.exit(i.characterEscapeValue),e.exit(i.characterEscape),n):t(u)}}const Lt={name:"characterReference",tokenize:vn};function vn(e,n,t){const r=this;let o=0,u,l;return s;function s(k){return x(k===a.ampersand,"expected `&`"),e.enter(i.characterReference),e.enter(i.characterReferenceMarker),e.consume(k),e.exit(i.characterReferenceMarker),m}function m(k){return k===a.numberSign?(e.enter(i.characterReferenceMarkerNumeric),e.consume(k),e.exit(i.characterReferenceMarkerNumeric),d):(e.enter(i.characterReferenceValue),u=w.characterReferenceNamedSizeMax,l=ue,c(k))}function d(k){return k===a.uppercaseX||k===a.lowercaseX?(e.enter(i.characterReferenceMarkerHexadecimal),e.consume(k),e.exit(i.characterReferenceMarkerHexadecimal),e.enter(i.characterReferenceValue),u=w.characterReferenceHexadecimalSizeMax,l=Sn,c):(e.enter(i.characterReferenceValue),u=w.characterReferenceDecimalSizeMax,l=Ue,c(k))}function c(k){if(k===a.semicolon&&o){const g=e.exit(i.characterReferenceValue);return l===ue&&!Xe(r.sliceSerialize(g))?t(k):(e.enter(i.characterReferenceMarker),e.consume(k),e.exit(i.characterReferenceMarker),e.exit(i.characterReference),n)}return l(k)&&o++<u?(e.consume(k),c):t(k)}}const xt={tokenize:Hn,partial:!0},gt={name:"codeFenced",tokenize:_n,concrete:!0};function _n(e,n,t){const r=this,o={tokenize:O,partial:!0};let u=0,l=0,s;return m;function m(y){return d(y)}function d(y){x(y===a.graveAccent||y===a.tilde,"expected `` ` `` or `~`");const P=r.events[r.events.length-1];return u=P&&P[1].type===i.linePrefix?P[2].sliceSerialize(P[1],!0).length:0,s=y,e.enter(i.codeFenced),e.enter(i.codeFencedFence),e.enter(i.codeFencedFenceSequence),c(y)}function c(y){return y===s?(l++,e.consume(y),c):l<w.codeFencedSequenceSizeMin?t(y):(e.exit(i.codeFencedFenceSequence),R(y)?V(e,k,i.whitespace)(y):k(y))}function k(y){return y===a.eof||E(y)?(e.exit(i.codeFencedFence),r.interrupt?n(y):e.check(xt,D,I)(y)):(e.enter(i.codeFencedFenceInfo),e.enter(i.chunkString,{contentType:w.contentTypeString}),g(y))}function g(y){return y===a.eof||E(y)?(e.exit(i.chunkString),e.exit(i.codeFencedFenceInfo),k(y)):R(y)?(e.exit(i.chunkString),e.exit(i.codeFencedFenceInfo),V(e,f,i.whitespace)(y)):y===a.graveAccent&&y===s?t(y):(e.consume(y),g)}function f(y){return y===a.eof||E(y)?k(y):(e.enter(i.codeFencedFenceMeta),e.enter(i.chunkString,{contentType:w.contentTypeString}),B(y))}function B(y){return y===a.eof||E(y)?(e.exit(i.chunkString),e.exit(i.codeFencedFenceMeta),k(y)):y===a.graveAccent&&y===s?t(y):(e.consume(y),B)}function D(y){return x(E(y),"expected eol"),e.attempt(o,I,v)(y)}function v(y){return x(E(y),"expected eol"),e.enter(i.lineEnding),e.consume(y),e.exit(i.lineEnding),T}function T(y){return u>0&&R(y)?V(e,j,i.linePrefix,u+1)(y):j(y)}function j(y){return y===a.eof||E(y)?e.check(xt,D,I)(y):(e.enter(i.codeFlowValue),z(y))}function z(y){return y===a.eof||E(y)?(e.exit(i.codeFlowValue),j(y)):(e.consume(y),z)}function I(y){return e.exit(i.codeFenced),n(y)}function O(y,P,W){let Q=0;return Y;function Y(M){return x(E(M),"expected eol"),y.enter(i.lineEnding),y.consume(M),y.exit(i.lineEnding),$}function $(M){return x(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),y.enter(i.codeFencedFence),R(M)?V(y,q,i.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize)(M):q(M)}function q(M){return M===s?(y.enter(i.codeFencedFenceSequence),C(M)):W(M)}function C(M){return M===s?(Q++,y.consume(M),C):Q>=l?(y.exit(i.codeFencedFenceSequence),R(M)?V(y,A,i.whitespace)(M):A(M)):W(M)}function A(M){return M===a.eof||E(M)?(y.exit(i.codeFencedFence),P(M)):W(M)}}}function Hn(e,n,t){const r=this;return o;function o(l){return l===a.eof?t(l):(x(E(l),"expected eol"),e.enter(i.lineEnding),e.consume(l),e.exit(i.lineEnding),u)}function u(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const He={name:"codeIndented",tokenize:Nn},jn={tokenize:Vn,partial:!0};function Nn(e,n,t){const r=this;return o;function o(d){return x(R(d)),e.enter(i.codeIndented),V(e,u,i.linePrefix,w.tabSize+1)(d)}function u(d){const c=r.events[r.events.length-1];return c&&c[1].type===i.linePrefix&&c[2].sliceSerialize(c[1],!0).length>=w.tabSize?l(d):t(d)}function l(d){return d===a.eof?m(d):E(d)?e.attempt(jn,l,m)(d):(e.enter(i.codeFlowValue),s(d))}function s(d){return d===a.eof||E(d)?(e.exit(i.codeFlowValue),l(d)):(e.consume(d),s)}function m(d){return e.exit(i.codeIndented),n(d)}}function Vn(e,n,t){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?t(l):E(l)?(e.enter(i.lineEnding),e.consume(l),e.exit(i.lineEnding),o):V(e,u,i.linePrefix,w.tabSize+1)(l)}function u(l){const s=r.events[r.events.length-1];return s&&s[1].type===i.linePrefix&&s[2].sliceSerialize(s[1],!0).length>=w.tabSize?n(l):E(l)?o(l):t(l)}}const Wn={name:"codeText",tokenize:Un,resolve:Qn,previous:qt};function Qn(e){let n=e.length-4,t=3,r,o;if((e[t][1].type===i.lineEnding||e[t][1].type==="space")&&(e[n][1].type===i.lineEnding||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type===i.codeTextData){e[t][1].type=i.codeTextPadding,e[n][1].type=i.codeTextPadding,t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)o===void 0?r!==n&&e[r][1].type!==i.lineEnding&&(o=r):(r===n||e[r][1].type===i.lineEnding)&&(e[o][1].type=i.codeTextData,r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),n-=r-o-2,r=o+2),o=void 0);return e}function qt(e){return e!==a.graveAccent||this.events[this.events.length-1][1].type===i.characterEscape}function Un(e,n,t){const r=this;let o=0,u,l;return s;function s(g){return x(g===a.graveAccent,"expected `` ` ``"),x(qt.call(r,r.previous),"expected correct previous"),e.enter(i.codeText),e.enter(i.codeTextSequence),m(g)}function m(g){return g===a.graveAccent?(e.consume(g),o++,m):(e.exit(i.codeTextSequence),d(g))}function d(g){return g===a.eof?t(g):g===a.space?(e.enter("space"),e.consume(g),e.exit("space"),d):g===a.graveAccent?(l=e.enter(i.codeTextSequence),u=0,k(g)):E(g)?(e.enter(i.lineEnding),e.consume(g),e.exit(i.lineEnding),d):(e.enter(i.codeTextData),c(g))}function c(g){return g===a.eof||g===a.space||g===a.graveAccent||E(g)?(e.exit(i.codeTextData),d(g)):(e.consume(g),c)}function k(g){return g===a.graveAccent?(e.consume(g),u++,k):u===o?(e.exit(i.codeTextSequence),e.exit(i.codeText),n(g)):(l.type=i.codeTextData,c(g))}}function Ot(e){const n={};let t=-1,r,o,u,l,s,m,d;for(;++t<e.length;){for(;t in n;)t=n[t];if(r=e[t],t&&r[1].type===i.chunkFlow&&e[t-1][1].type===i.listItemPrefix&&(x(r[1]._tokenizer,"expected `_tokenizer` on subtokens"),m=r[1]._tokenizer.events,u=0,u<m.length&&m[u][1].type===i.lineEndingBlank&&(u+=2),u<m.length&&m[u][1].type===i.content))for(;++u<m.length&&m[u][1].type!==i.content;)m[u][1].type===i.chunkText&&(m[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,$n(e,t)),t=n[t],d=!0);else if(r[1]._container){for(u=t,o=void 0;u--&&(l=e[u],l[1].type===i.lineEnding||l[1].type===i.lineEndingBlank);)l[0]==="enter"&&(o&&(e[o][1].type=i.lineEndingBlank),l[1].type=i.lineEnding,o=u);o&&(r[1].end=Object.assign({},e[o][1].start),s=e.slice(o,t),s.unshift(r),se(e,o,t-o+1,s))}}return!d}function $n(e,n){const t=e[n][1],r=e[n][2];let o=n-1;const u=[];x(t.contentType,"expected `contentType` on subtokens");const l=t._tokenizer||r.parser[t.contentType](t.start),s=l.events,m=[],d={};let c,k,g=-1,f=t,B=0,D=0;const v=[D];for(;f;){for(;e[++o][1]!==f;);x(!k||f.previous===k,"expected previous to match"),x(!k||k.next===f,"expected next to match"),u.push(o),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(a.eof),k&&l.defineSkip(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),k=f,f=f.next}for(f=t;++g<s.length;)s[g][0]==="exit"&&s[g-1][0]==="enter"&&s[g][1].type===s[g-1][1].type&&s[g][1].start.line!==s[g][1].end.line&&(x(f,"expected a current token"),D=g+1,v.push(D),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0,x(!f.next,"expected no next token")):v.pop(),g=v.length;g--;){const T=s.slice(v[g],v[g+1]),j=u.pop();x(j!==void 0,"expected a start position when splicing"),m.unshift([j,j+T.length-1]),se(e,j,2,T)}for(g=-1;++g<m.length;)d[B+m[g][0]]=B+m[g][1],B+=m[g][1]-m[g][0]-1;return d}const Gn={tokenize:Zn,resolve:Xn},Yn={tokenize:Jn,partial:!0};function Xn(e){return Ot(e),e}function Zn(e,n){let t;return r;function r(s){return x(s!==a.eof&&!E(s),"expected no eof or eol"),e.enter(i.content),t=e.enter(i.chunkContent,{contentType:w.contentTypeContent}),o(s)}function o(s){return s===a.eof?u(s):E(s)?e.check(Yn,l,u)(s):(e.consume(s),o)}function u(s){return e.exit(i.chunkContent),e.exit(i.content),n(s)}function l(s){return x(E(s),"expected eol"),e.consume(s),e.exit(i.chunkContent),x(t,"expected previous token"),t.next=e.enter(i.chunkContent,{contentType:w.contentTypeContent,previous:t}),t=t.next,o}}function Jn(e,n,t){const r=this;return o;function o(l){return x(E(l),"expected a line ending"),e.exit(i.chunkContent),e.enter(i.lineEnding),e.consume(l),e.exit(i.lineEnding),V(e,u,i.linePrefix)}function u(l){if(l===a.eof||E(l))return t(l);x(r.parser.constructs.disable.null,"expected `disable.null` to be populated");const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type===i.linePrefix&&s[2].sliceSerialize(s[1],!0).length>=w.tabSize?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Pt(e,n,t,r,o,u,l,s,m){const d=m||Number.POSITIVE_INFINITY;let c=0;return k;function k(T){return T===a.lessThan?(e.enter(r),e.enter(o),e.enter(u),e.consume(T),e.exit(u),g):T===a.eof||T===a.space||T===a.rightParenthesis||Qe(T)?t(T):(e.enter(r),e.enter(l),e.enter(s),e.enter(i.chunkString,{contentType:w.contentTypeString}),D(T))}function g(T){return T===a.greaterThan?(e.enter(u),e.consume(T),e.exit(u),e.exit(o),e.exit(r),n):(e.enter(s),e.enter(i.chunkString,{contentType:w.contentTypeString}),f(T))}function f(T){return T===a.greaterThan?(e.exit(i.chunkString),e.exit(s),g(T)):T===a.eof||T===a.lessThan||E(T)?t(T):(e.consume(T),T===a.backslash?B:f)}function B(T){return T===a.lessThan||T===a.greaterThan||T===a.backslash?(e.consume(T),f):f(T)}function D(T){return!c&&(T===a.eof||T===a.rightParenthesis||ee(T))?(e.exit(i.chunkString),e.exit(s),e.exit(l),e.exit(r),n(T)):c<d&&T===a.leftParenthesis?(e.consume(T),c++,D):T===a.rightParenthesis?(e.consume(T),c--,D):T===a.eof||T===a.space||T===a.leftParenthesis||Qe(T)?t(T):(e.consume(T),T===a.backslash?v:D)}function v(T){return T===a.leftParenthesis||T===a.rightParenthesis||T===a.backslash?(e.consume(T),D):D(T)}}function Rt(e,n,t,r,o,u){const l=this;let s=0,m;return d;function d(f){return x(f===a.leftSquareBracket,"expected `[`"),e.enter(r),e.enter(o),e.consume(f),e.exit(o),e.enter(u),c}function c(f){return s>w.linkReferenceSizeMax||f===a.eof||f===a.leftSquareBracket||f===a.rightSquareBracket&&!m||f===a.caret&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?t(f):f===a.rightSquareBracket?(e.exit(u),e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):E(f)?(e.enter(i.lineEnding),e.consume(f),e.exit(i.lineEnding),c):(e.enter(i.chunkString,{contentType:w.contentTypeString}),k(f))}function k(f){return f===a.eof||f===a.leftSquareBracket||f===a.rightSquareBracket||E(f)||s++>w.linkReferenceSizeMax?(e.exit(i.chunkString),c(f)):(e.consume(f),m||(m=!R(f)),f===a.backslash?g:k)}function g(f){return f===a.leftSquareBracket||f===a.backslash||f===a.rightSquareBracket?(e.consume(f),s++,k):k(f)}}function vt(e,n,t,r,o,u){let l;return s;function s(g){return g===a.quotationMark||g===a.apostrophe||g===a.leftParenthesis?(e.enter(r),e.enter(o),e.consume(g),e.exit(o),l=g===a.leftParenthesis?a.rightParenthesis:g,m):t(g)}function m(g){return g===l?(e.enter(o),e.consume(g),e.exit(o),e.exit(r),n):(e.enter(u),d(g))}function d(g){return g===l?(e.exit(u),m(l)):g===a.eof?t(g):E(g)?(e.enter(i.lineEnding),e.consume(g),e.exit(i.lineEnding),V(e,d,i.linePrefix)):(e.enter(i.chunkString,{contentType:w.contentTypeString}),c(g))}function c(g){return g===l||g===a.eof||E(g)?(e.exit(i.chunkString),d(g)):(e.consume(g),g===a.backslash?k:c)}function k(g){return g===l||g===a.backslash?(e.consume(g),c):c(g)}}function Ie(e,n){let t;return r;function r(o){return E(o)?(e.enter(i.lineEnding),e.consume(o),e.exit(i.lineEnding),t=!0,r):R(o)?V(e,r,t?i.linePrefix:i.lineSuffix)(o):n(o)}}const de={ht:" ",lf:`
4
+ `,cr:"\r",space:" ",replacementCharacter:"�"};function we(e){return e.replace(/[\t\n\r ]+/g,de.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Kn={name:"definition",tokenize:tr},er={tokenize:nr,partial:!0};function tr(e,n,t){const r=this;let o;return u;function u(f){return e.enter(i.definition),l(f)}function l(f){return x(f===a.leftSquareBracket,"expected `[`"),Rt.call(r,e,s,t,i.definitionLabel,i.definitionLabelMarker,i.definitionLabelString)(f)}function s(f){return o=we(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===a.colon?(e.enter(i.definitionMarker),e.consume(f),e.exit(i.definitionMarker),m):t(f)}function m(f){return ee(f)?Ie(e,d)(f):d(f)}function d(f){return Pt(e,c,t,i.definitionDestination,i.definitionDestinationLiteral,i.definitionDestinationLiteralMarker,i.definitionDestinationRaw,i.definitionDestinationString)(f)}function c(f){return e.attempt(er,k,k)(f)}function k(f){return R(f)?V(e,g,i.whitespace)(f):g(f)}function g(f){return f===a.eof||E(f)?(e.exit(i.definition),r.parser.defined.push(o),n(f)):t(f)}}function nr(e,n,t){return r;function r(s){return ee(s)?Ie(e,o)(s):t(s)}function o(s){return vt(e,u,t,i.definitionTitle,i.definitionTitleMarker,i.definitionTitleString)(s)}function u(s){return R(s)?V(e,l,i.whitespace)(s):l(s)}function l(s){return s===a.eof||E(s)?n(s):t(s)}}const rr={name:"hardBreakEscape",tokenize:ir};function ir(e,n,t){return r;function r(u){return x(u===a.backslash,"expected `\\`"),e.enter(i.hardBreakEscape),e.consume(u),o}function o(u){return E(u)?(e.exit(i.hardBreakEscape),n(u)):t(u)}}const ar={name:"headingAtx",tokenize:or,resolve:ur};function ur(e,n){let t=e.length-2,r=3,o,u;return e[r][1].type===i.whitespace&&(r+=2),t-2>r&&e[t][1].type===i.whitespace&&(t-=2),e[t][1].type===i.atxHeadingSequence&&(r===t-1||t-4>r&&e[t-2][1].type===i.whitespace)&&(t-=r+1===t?2:4),t>r&&(o={type:i.atxHeadingText,start:e[r][1].start,end:e[t][1].end},u={type:i.chunkText,start:e[r][1].start,end:e[t][1].end,contentType:w.contentTypeText},se(e,r,t-r+1,[["enter",o,n],["enter",u,n],["exit",u,n],["exit",o,n]])),e}function or(e,n,t){let r=0;return o;function o(c){return e.enter(i.atxHeading),u(c)}function u(c){return x(c===a.numberSign,"expected `#`"),e.enter(i.atxHeadingSequence),l(c)}function l(c){return c===a.numberSign&&r++<w.atxHeadingOpeningFenceSizeMax?(e.consume(c),l):c===a.eof||ee(c)?(e.exit(i.atxHeadingSequence),s(c)):t(c)}function s(c){return c===a.numberSign?(e.enter(i.atxHeadingSequence),m(c)):c===a.eof||E(c)?(e.exit(i.atxHeading),n(c)):R(c)?V(e,s,i.whitespace)(c):(e.enter(i.atxHeadingText),d(c))}function m(c){return c===a.numberSign?(e.consume(c),m):(e.exit(i.atxHeadingSequence),s(c))}function d(c){return c===a.eof||c===a.numberSign||ee(c)?(e.exit(i.atxHeadingText),s(c)):(e.consume(c),d)}}const lr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kt=["pre","script","style","textarea"],sr={name:"htmlFlow",tokenize:fr,resolveTo:hr,concrete:!0},cr={tokenize:mr,partial:!0},pr={tokenize:dr,partial:!0};function hr(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type===i.htmlFlow););return n>1&&e[n-2][1].type===i.linePrefix&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function fr(e,n,t){const r=this;let o,u,l,s,m;return d;function d(h){return c(h)}function c(h){return x(h===a.lessThan,"expected `<`"),e.enter(i.htmlFlow),e.enter(i.htmlFlowData),e.consume(h),k}function k(h){return h===a.exclamationMark?(e.consume(h),g):h===a.slash?(e.consume(h),u=!0,D):h===a.questionMark?(e.consume(h),o=w.htmlInstruction,r.interrupt?n:p):le(h)?(e.consume(h),l=String.fromCharCode(h),v):t(h)}function g(h){return h===a.dash?(e.consume(h),o=w.htmlComment,f):h===a.leftSquareBracket?(e.consume(h),o=w.htmlCdata,s=0,B):le(h)?(e.consume(h),o=w.htmlDeclaration,r.interrupt?n:p):t(h)}function f(h){return h===a.dash?(e.consume(h),r.interrupt?n:p):t(h)}function B(h){const te=w.cdataOpeningString;return h===te.charCodeAt(s++)?(e.consume(h),s===te.length?r.interrupt?n:q:B):t(h)}function D(h){return le(h)?(e.consume(h),l=String.fromCharCode(h),v):t(h)}function v(h){if(h===a.eof||h===a.slash||h===a.greaterThan||ee(h)){const te=h===a.slash,Te=l.toLowerCase();return!te&&!u&&kt.includes(Te)?(o=w.htmlRaw,r.interrupt?n(h):q(h)):lr.includes(l.toLowerCase())?(o=w.htmlBasic,te?(e.consume(h),T):r.interrupt?n(h):q(h)):(o=w.htmlComplete,r.interrupt&&!r.parser.lazy[r.now().line]?t(h):u?j(h):z(h))}return h===a.dash||ue(h)?(e.consume(h),l+=String.fromCharCode(h),v):t(h)}function T(h){return h===a.greaterThan?(e.consume(h),r.interrupt?n:q):t(h)}function j(h){return R(h)?(e.consume(h),j):Y(h)}function z(h){return h===a.slash?(e.consume(h),Y):h===a.colon||h===a.underscore||le(h)?(e.consume(h),I):R(h)?(e.consume(h),z):Y(h)}function I(h){return h===a.dash||h===a.dot||h===a.colon||h===a.underscore||ue(h)?(e.consume(h),I):O(h)}function O(h){return h===a.equalsTo?(e.consume(h),y):R(h)?(e.consume(h),O):z(h)}function y(h){return h===a.eof||h===a.lessThan||h===a.equalsTo||h===a.greaterThan||h===a.graveAccent?t(h):h===a.quotationMark||h===a.apostrophe?(e.consume(h),m=h,P):R(h)?(e.consume(h),y):W(h)}function P(h){return h===m?(e.consume(h),m=null,Q):h===a.eof||E(h)?t(h):(e.consume(h),P)}function W(h){return h===a.eof||h===a.quotationMark||h===a.apostrophe||h===a.slash||h===a.lessThan||h===a.equalsTo||h===a.greaterThan||h===a.graveAccent||ee(h)?O(h):(e.consume(h),W)}function Q(h){return h===a.slash||h===a.greaterThan||R(h)?z(h):t(h)}function Y(h){return h===a.greaterThan?(e.consume(h),$):t(h)}function $(h){return h===a.eof||E(h)?q(h):R(h)?(e.consume(h),$):t(h)}function q(h){return h===a.dash&&o===w.htmlComment?(e.consume(h),U):h===a.lessThan&&o===w.htmlRaw?(e.consume(h),X):h===a.greaterThan&&o===w.htmlDeclaration?(e.consume(h),re):h===a.questionMark&&o===w.htmlInstruction?(e.consume(h),p):h===a.rightSquareBracket&&o===w.htmlCdata?(e.consume(h),oe):E(h)&&(o===w.htmlBasic||o===w.htmlComplete)?(e.exit(i.htmlFlowData),e.check(cr,ce,C)(h)):h===a.eof||E(h)?(e.exit(i.htmlFlowData),C(h)):(e.consume(h),q)}function C(h){return e.check(pr,A,ce)(h)}function A(h){return x(E(h)),e.enter(i.lineEnding),e.consume(h),e.exit(i.lineEnding),M}function M(h){return h===a.eof||E(h)?C(h):(e.enter(i.htmlFlowData),q(h))}function U(h){return h===a.dash?(e.consume(h),p):q(h)}function X(h){return h===a.slash?(e.consume(h),l="",ne):q(h)}function ne(h){if(h===a.greaterThan){const te=l.toLowerCase();return kt.includes(te)?(e.consume(h),re):q(h)}return le(h)&&l.length<w.htmlRawSizeMax?(e.consume(h),l+=String.fromCharCode(h),ne):q(h)}function oe(h){return h===a.rightSquareBracket?(e.consume(h),p):q(h)}function p(h){return h===a.greaterThan?(e.consume(h),re):h===a.dash&&o===w.htmlComment?(e.consume(h),p):q(h)}function re(h){return h===a.eof||E(h)?(e.exit(i.htmlFlowData),ce(h)):(e.consume(h),re)}function ce(h){return e.exit(i.htmlFlow),n(h)}}function dr(e,n,t){const r=this;return o;function o(l){return E(l)?(e.enter(i.lineEnding),e.consume(l),e.exit(i.lineEnding),u):t(l)}function u(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function mr(e,n,t){return r;function r(o){return x(E(o),"expected a line ending"),e.enter(i.lineEnding),e.consume(o),e.exit(i.lineEnding),e.attempt(Pe,n,t)}}const xr={name:"htmlText",tokenize:gr};function gr(e,n,t){const r=this;let o,u,l;return s;function s(p){return x(p===a.lessThan,"expected `<`"),e.enter(i.htmlText),e.enter(i.htmlTextData),e.consume(p),m}function m(p){return p===a.exclamationMark?(e.consume(p),d):p===a.slash?(e.consume(p),O):p===a.questionMark?(e.consume(p),z):le(p)?(e.consume(p),W):t(p)}function d(p){return p===a.dash?(e.consume(p),c):p===a.leftSquareBracket?(e.consume(p),u=0,B):le(p)?(e.consume(p),j):t(p)}function c(p){return p===a.dash?(e.consume(p),f):t(p)}function k(p){return p===a.eof?t(p):p===a.dash?(e.consume(p),g):E(p)?(l=k,X(p)):(e.consume(p),k)}function g(p){return p===a.dash?(e.consume(p),f):k(p)}function f(p){return p===a.greaterThan?U(p):p===a.dash?g(p):k(p)}function B(p){const re=w.cdataOpeningString;return p===re.charCodeAt(u++)?(e.consume(p),u===re.length?D:B):t(p)}function D(p){return p===a.eof?t(p):p===a.rightSquareBracket?(e.consume(p),v):E(p)?(l=D,X(p)):(e.consume(p),D)}function v(p){return p===a.rightSquareBracket?(e.consume(p),T):D(p)}function T(p){return p===a.greaterThan?U(p):p===a.rightSquareBracket?(e.consume(p),T):D(p)}function j(p){return p===a.eof||p===a.greaterThan?U(p):E(p)?(l=j,X(p)):(e.consume(p),j)}function z(p){return p===a.eof?t(p):p===a.questionMark?(e.consume(p),I):E(p)?(l=z,X(p)):(e.consume(p),z)}function I(p){return p===a.greaterThan?U(p):z(p)}function O(p){return le(p)?(e.consume(p),y):t(p)}function y(p){return p===a.dash||ue(p)?(e.consume(p),y):P(p)}function P(p){return E(p)?(l=P,X(p)):R(p)?(e.consume(p),P):U(p)}function W(p){return p===a.dash||ue(p)?(e.consume(p),W):p===a.slash||p===a.greaterThan||ee(p)?Q(p):t(p)}function Q(p){return p===a.slash?(e.consume(p),U):p===a.colon||p===a.underscore||le(p)?(e.consume(p),Y):E(p)?(l=Q,X(p)):R(p)?(e.consume(p),Q):U(p)}function Y(p){return p===a.dash||p===a.dot||p===a.colon||p===a.underscore||ue(p)?(e.consume(p),Y):$(p)}function $(p){return p===a.equalsTo?(e.consume(p),q):E(p)?(l=$,X(p)):R(p)?(e.consume(p),$):Q(p)}function q(p){return p===a.eof||p===a.lessThan||p===a.equalsTo||p===a.greaterThan||p===a.graveAccent?t(p):p===a.quotationMark||p===a.apostrophe?(e.consume(p),o=p,C):E(p)?(l=q,X(p)):R(p)?(e.consume(p),q):(e.consume(p),A)}function C(p){return p===o?(e.consume(p),o=void 0,M):p===a.eof?t(p):E(p)?(l=C,X(p)):(e.consume(p),C)}function A(p){return p===a.eof||p===a.quotationMark||p===a.apostrophe||p===a.lessThan||p===a.equalsTo||p===a.graveAccent?t(p):p===a.slash||p===a.greaterThan||ee(p)?Q(p):(e.consume(p),A)}function M(p){return p===a.slash||p===a.greaterThan||ee(p)?Q(p):t(p)}function U(p){return p===a.greaterThan?(e.consume(p),e.exit(i.htmlTextData),e.exit(i.htmlText),n):t(p)}function X(p){return x(l,"expected return state"),x(E(p),"expected eol"),e.exit(i.htmlTextData),e.enter(i.lineEnding),e.consume(p),e.exit(i.lineEnding),ne}function ne(p){return x(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),R(p)?V(e,oe,i.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize)(p):oe(p)}function oe(p){return e.enter(i.htmlTextData),l(p)}}const Je={name:"labelEnd",tokenize:Fr,resolveTo:Tr,resolveAll:yr},kr={tokenize:wr},br={tokenize:Cr},Sr={tokenize:Er};function yr(e){let n=-1;for(;++n<e.length;){const t=e[n][1];(t.type===i.labelImage||t.type===i.labelLink||t.type===i.labelEnd)&&(e.splice(n+1,t.type===i.labelImage?4:2),t.type=i.data,n++)}return e}function Tr(e,n){let t=e.length,r=0,o,u,l,s;for(;t--;)if(o=e[t][1],u){if(o.type===i.link||o.type===i.labelLink&&o._inactive)break;e[t][0]==="enter"&&o.type===i.labelLink&&(o._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(o.type===i.labelImage||o.type===i.labelLink)&&!o._balanced&&(u=t,o.type!==i.labelLink)){r=2;break}}else o.type===i.labelEnd&&(l=t);x(u!==void 0,"`open` is supposed to be found"),x(l!==void 0,"`close` is supposed to be found");const m={type:e[u][1].type===i.labelLink?i.link:i.image,start:Object.assign({},e[u][1].start),end:Object.assign({},e[e.length-1][1].end)},d={type:i.label,start:Object.assign({},e[u][1].start),end:Object.assign({},e[l][1].end)},c={type:i.labelText,start:Object.assign({},e[u+r+2][1].end),end:Object.assign({},e[l-2][1].start)};return s=[["enter",m,n],["enter",d,n]],s=ie(s,e.slice(u+1,u+r+3)),s=ie(s,[["enter",c,n]]),x(n.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),s=ie(s,Ze(n.parser.constructs.insideSpan.null,e.slice(u+r+4,l-3),n)),s=ie(s,[["exit",c,n],e[l-2],e[l-1],["exit",d,n]]),s=ie(s,e.slice(l+1)),s=ie(s,[["exit",m,n]]),se(e,u,e.length,s),e}function Fr(e,n,t){const r=this;let o=r.events.length,u,l;for(;o--;)if((r.events[o][1].type===i.labelImage||r.events[o][1].type===i.labelLink)&&!r.events[o][1]._balanced){u=r.events[o][1];break}return s;function s(g){return x(g===a.rightSquareBracket,"expected `]`"),u?u._inactive?k(g):(l=r.parser.defined.includes(we(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter(i.labelEnd),e.enter(i.labelMarker),e.consume(g),e.exit(i.labelMarker),e.exit(i.labelEnd),m):t(g)}function m(g){return g===a.leftParenthesis?e.attempt(kr,c,l?c:k)(g):g===a.leftSquareBracket?e.attempt(br,c,l?d:k)(g):l?c(g):k(g)}function d(g){return e.attempt(Sr,c,k)(g)}function c(g){return n(g)}function k(g){return u._balanced=!0,t(g)}}function wr(e,n,t){return r;function r(k){return x(k===a.leftParenthesis,"expected left paren"),e.enter(i.resource),e.enter(i.resourceMarker),e.consume(k),e.exit(i.resourceMarker),o}function o(k){return ee(k)?Ie(e,u)(k):u(k)}function u(k){return k===a.rightParenthesis?c(k):Pt(e,l,s,i.resourceDestination,i.resourceDestinationLiteral,i.resourceDestinationLiteralMarker,i.resourceDestinationRaw,i.resourceDestinationString,w.linkResourceDestinationBalanceMax)(k)}function l(k){return ee(k)?Ie(e,m)(k):c(k)}function s(k){return t(k)}function m(k){return k===a.quotationMark||k===a.apostrophe||k===a.leftParenthesis?vt(e,d,t,i.resourceTitle,i.resourceTitleMarker,i.resourceTitleString)(k):c(k)}function d(k){return ee(k)?Ie(e,c)(k):c(k)}function c(k){return k===a.rightParenthesis?(e.enter(i.resourceMarker),e.consume(k),e.exit(i.resourceMarker),e.exit(i.resource),n):t(k)}}function Cr(e,n,t){const r=this;return o;function o(s){return x(s===a.leftSquareBracket,"expected left bracket"),Rt.call(r,e,u,l,i.reference,i.referenceMarker,i.referenceString)(s)}function u(s){return r.parser.defined.includes(we(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(s):t(s)}function l(s){return t(s)}}function Er(e,n,t){return r;function r(u){return x(u===a.leftSquareBracket,"expected left bracket"),e.enter(i.reference),e.enter(i.referenceMarker),e.consume(u),e.exit(i.referenceMarker),o}function o(u){return u===a.rightSquareBracket?(e.enter(i.referenceMarker),e.consume(u),e.exit(i.referenceMarker),e.exit(i.reference),n):t(u)}}const zr={name:"labelStartImage",tokenize:Ar,resolveAll:Je.resolveAll};function Ar(e,n,t){const r=this;return o;function o(s){return x(s===a.exclamationMark,"expected `!`"),e.enter(i.labelImage),e.enter(i.labelImageMarker),e.consume(s),e.exit(i.labelImageMarker),u}function u(s){return s===a.leftSquareBracket?(e.enter(i.labelMarker),e.consume(s),e.exit(i.labelMarker),e.exit(i.labelImage),l):t(s)}function l(s){return s===a.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?t(s):n(s)}}const Br={name:"labelStartLink",tokenize:Ir,resolveAll:Je.resolveAll};function Ir(e,n,t){const r=this;return o;function o(l){return x(l===a.leftSquareBracket,"expected `[`"),e.enter(i.labelLink),e.enter(i.labelMarker),e.consume(l),e.exit(i.labelMarker),e.exit(i.labelLink),u}function u(l){return l===a.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const je={name:"lineEnding",tokenize:Mr};function Mr(e,n){return t;function t(r){return x(E(r),"expected eol"),e.enter(i.lineEnding),e.consume(r),e.exit(i.lineEnding),V(e,n,i.linePrefix)}}const Le={name:"thematicBreak",tokenize:Dr};function Dr(e,n,t){let r=0,o;return u;function u(d){return e.enter(i.thematicBreak),l(d)}function l(d){return x(d===a.asterisk||d===a.dash||d===a.underscore,"expected `*`, `-`, or `_`"),o=d,s(d)}function s(d){return d===o?(e.enter(i.thematicBreakSequence),m(d)):r>=w.thematicBreakMarkerCountMin&&(d===a.eof||E(d))?(e.exit(i.thematicBreak),n(d)):t(d)}function m(d){return d===o?(e.consume(d),r++,m):(e.exit(i.thematicBreakSequence),R(d)?V(e,s,i.whitespace)(d):s(d))}}const K={name:"list",tokenize:Or,continuation:{tokenize:Pr},exit:vr},Lr={tokenize:_r,partial:!0},qr={tokenize:Rr,partial:!0};function Or(e,n,t){const r=this,o=r.events[r.events.length-1];let u=o&&o[1].type===i.linePrefix?o[2].sliceSerialize(o[1],!0).length:0,l=0;return s;function s(f){x(r.containerState,"expected state");const B=r.containerState.type||(f===a.asterisk||f===a.plusSign||f===a.dash?i.listUnordered:i.listOrdered);if(B===i.listUnordered?!r.containerState.marker||f===r.containerState.marker:Ue(f)){if(r.containerState.type||(r.containerState.type=B,e.enter(B,{_container:!0})),B===i.listUnordered)return e.enter(i.listItemPrefix),f===a.asterisk||f===a.dash?e.check(Le,t,d)(f):d(f);if(!r.interrupt||f===a.digit1)return e.enter(i.listItemPrefix),e.enter(i.listItemValue),m(f)}return t(f)}function m(f){return x(r.containerState,"expected state"),Ue(f)&&++l<w.listItemValueSizeMax?(e.consume(f),m):(!r.interrupt||l<2)&&(r.containerState.marker?f===r.containerState.marker:f===a.rightParenthesis||f===a.dot)?(e.exit(i.listItemValue),d(f)):t(f)}function d(f){return x(r.containerState,"expected state"),x(f!==a.eof,"eof (`null`) is not a marker"),e.enter(i.listItemMarker),e.consume(f),e.exit(i.listItemMarker),r.containerState.marker=r.containerState.marker||f,e.check(Pe,r.interrupt?t:c,e.attempt(Lr,g,k))}function c(f){return x(r.containerState,"expected state"),r.containerState.initialBlankLine=!0,u++,g(f)}function k(f){return R(f)?(e.enter(i.listItemPrefixWhitespace),e.consume(f),e.exit(i.listItemPrefixWhitespace),g):t(f)}function g(f){return x(r.containerState,"expected state"),r.containerState.size=u+r.sliceSerialize(e.exit(i.listItemPrefix),!0).length,n(f)}}function Pr(e,n,t){const r=this;return x(r.containerState,"expected state"),r.containerState._closeFlow=void 0,e.check(Pe,o,u);function o(s){return x(r.containerState,"expected state"),x(typeof r.containerState.size=="number","expected size"),r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,V(e,n,i.listItemIndent,r.containerState.size+1)(s)}function u(s){return x(r.containerState,"expected state"),r.containerState.furtherBlankLines||!R(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qr,n,l)(s))}function l(s){return x(r.containerState,"expected state"),r.containerState._closeFlow=!0,r.interrupt=void 0,x(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),V(e,e.attempt(K,n,t),i.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize)(s)}}function Rr(e,n,t){const r=this;return x(r.containerState,"expected state"),x(typeof r.containerState.size=="number","expected size"),V(e,o,i.listItemIndent,r.containerState.size+1);function o(u){x(r.containerState,"expected state");const l=r.events[r.events.length-1];return l&&l[1].type===i.listItemIndent&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(u):t(u)}}function vr(e){x(this.containerState,"expected state"),x(typeof this.containerState.type=="string","expected type"),e.exit(this.containerState.type)}function _r(e,n,t){const r=this;return x(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),V(e,o,i.listItemPrefixWhitespace,r.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize+1);function o(u){const l=r.events[r.events.length-1];return!R(u)&&l&&l[1].type===i.listItemPrefixWhitespace?n(u):t(u)}}const bt={name:"setextUnderline",tokenize:jr,resolveTo:Hr};function Hr(e,n){let t=e.length,r,o,u;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type===i.content){r=t;break}e[t][1].type===i.paragraph&&(o=t)}else e[t][1].type===i.content&&e.splice(t,1),!u&&e[t][1].type===i.definition&&(u=t);x(o!==void 0,"expected a `text` index to be found"),x(r!==void 0,"expected a `text` index to be found");const l={type:i.setextHeading,start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[o][1].type=i.setextHeadingText,u?(e.splice(o,0,["enter",l,n]),e.splice(u+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[u][1].end)):e[r][1]=l,e.push(["exit",l,n]),e}function jr(e,n,t){const r=this;let o;return u;function u(d){let c=r.events.length,k;for(x(d===a.dash||d===a.equalsTo,"expected `=` or `-`");c--;)if(r.events[c][1].type!==i.lineEnding&&r.events[c][1].type!==i.linePrefix&&r.events[c][1].type!==i.content){k=r.events[c][1].type===i.paragraph;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||k)?(e.enter(i.setextHeadingLine),o=d,l(d)):t(d)}function l(d){return e.enter(i.setextHeadingLineSequence),s(d)}function s(d){return d===o?(e.consume(d),s):(e.exit(i.setextHeadingLineSequence),R(d)?V(e,m,i.lineSuffix)(d):m(d))}function m(d){return d===a.eof||E(d)?(e.exit(i.setextHeadingLine),n(d)):t(d)}}const Nr={tokenize:Vr};function Vr(e){const n=this,t=e.attempt(Pe,r,e.attempt(this.parser.constructs.flowInitial,o,V(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Gn,o)),i.linePrefix)));return t;function r(u){if(x(u===a.eof||E(u),"expected eol or eof"),u===a.eof){e.consume(u);return}return e.enter(i.lineEndingBlank),e.consume(u),e.exit(i.lineEndingBlank),n.currentConstruct=void 0,t}function o(u){if(x(u===a.eof||E(u),"expected eol or eof"),u===a.eof){e.consume(u);return}return e.enter(i.lineEnding),e.consume(u),e.exit(i.lineEnding),n.currentConstruct=void 0,t}}const Wr={resolveAll:Ht()},Qr=_t("string"),Ur=_t("text");function _t(e){return{tokenize:n,resolveAll:Ht(e==="text"?$r:void 0)};function n(t){const r=this,o=this.parser.constructs[e],u=t.attempt(o,l,s);return l;function l(c){return d(c)?u(c):s(c)}function s(c){if(c===a.eof){t.consume(c);return}return t.enter(i.data),t.consume(c),m}function m(c){return d(c)?(t.exit(i.data),u(c)):(t.consume(c),m)}function d(c){if(c===a.eof)return!0;const k=o[c];let g=-1;if(k)for(x(Array.isArray(k),"expected `disable.null` to be populated");++g<k.length;){const f=k[g];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function Ht(e){return n;function n(t,r){let o=-1,u;for(;++o<=t.length;)u===void 0?t[o]&&t[o][1].type===i.data&&(u=o,o++):(!t[o]||t[o][1].type!==i.data)&&(o!==u+2&&(t[u][1].end=t[o-1][1].end,t.splice(u+2,o-u-2),o=u+2),u=void 0);return e?e(t,r):t}}function $r(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type===i.lineEnding)&&e[t-1][1].type===i.data){const r=e[t-1][1],o=n.sliceStream(r);let u=o.length,l=-1,s=0,m;for(;u--;){const d=o[u];if(typeof d=="string"){for(l=d.length;d.charCodeAt(l-1)===a.space;)s++,l--;if(l)break;l=-1}else if(d===a.horizontalTab)m=!0,s++;else if(d!==a.virtualSpace){u++;break}}if(s){const d={type:t===e.length||m||s<w.hardBreakPrefixSizeMin?i.lineSuffix:i.hardBreakTrailing,start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+u,_bufferIndex:u?l:r.start._bufferIndex+l},end:Object.assign({},r.end)};r.end=Object.assign({},d.start),r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(t,0,["enter",d,n],["exit",d,n]),t+=2)}t++}return e}const ye=rn("micromark");function Gr(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},u=[];let l=[],s=[],m=!0;const d={consume:I,enter:O,exit:y,attempt:Q(P),check:Q(W),interrupt:Q(W,{interrupt:!0})},c={previous:a.eof,code:a.eof,containerState:{},events:[],parser:e,sliceStream:D,sliceSerialize:B,now:v,defineSkip:T,write:f};let k=n.tokenize.call(c,d),g;return n.resolveAll&&u.push(n),c;function f(C){return l=ie(l,C),j(),l[l.length-1]!==a.eof?[]:(Y(n,0),c.events=Ze(u,c.events,c),c.events)}function B(C,A){return Xr(D(C),A)}function D(C){return Yr(l,C)}function v(){const{line:C,column:A,offset:M,_index:U,_bufferIndex:X}=r;return{line:C,column:A,offset:M,_index:U,_bufferIndex:X}}function T(C){o[C.line]=C.column,q(),ye("position: define skip: `%j`",r)}function j(){let C;for(;r._index<l.length;){const A=l[r._index];if(typeof A=="string")for(C=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===C&&r._bufferIndex<A.length;)z(A.charCodeAt(r._bufferIndex));else z(A)}}function z(C){x(m===!0,"expected character to be consumed"),m=void 0,ye("main: passing `%s` to %s",C,k&&k.name),g=C,x(typeof k=="function","expected state"),k=k(C)}function I(C){x(C===g,"expected given code to equal expected code"),ye("consume: `%s`",C),x(m===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),x(C===null?c.events.length===0||c.events[c.events.length-1][0]==="exit":c.events[c.events.length-1][0]==="enter","expected last token to be open"),E(C)?(r.line++,r.column=1,r.offset+=C===a.carriageReturnLineFeed?2:1,q(),ye("position: after eol: `%j`",r)):C!==a.virtualSpace&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=C,m=!0}function O(C,A){const M=A||{};return M.type=C,M.start=v(),x(typeof C=="string","expected string type"),x(C.length>0,"expected non-empty string"),ye("enter: `%s`",C),c.events.push(["enter",M,c]),s.push(M),M}function y(C){x(typeof C=="string","expected string type"),x(C.length>0,"expected non-empty string");const A=s.pop();return x(A,"cannot close w/o open tokens"),A.end=v(),x(C===A.type,"expected exit token to match current token"),x(!(A.start._index===A.end._index&&A.start._bufferIndex===A.end._bufferIndex),"expected non-empty token (`"+C+"`)"),ye("exit: `%s`",A.type),c.events.push(["exit",A,c]),A}function P(C,A){Y(C,A.from)}function W(C,A){A.restore()}function Q(C,A){return M;function M(U,X,ne){let oe,p,re,ce;return Array.isArray(U)?te(U):"tokenize"in U?te([U]):h(U);function h(Z){return Ee;function Ee(pe){const Fe=pe!==null&&Z[pe],Se=pe!==null&&Z.null,ve=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Se)?Se:Se?[Se]:[]];return te(ve)(pe)}}function te(Z){return oe=Z,p=0,Z.length===0?(x(ne,"expected `bogusState` to be given"),ne):Te(Z[p])}function Te(Z){return Ee;function Ee(pe){return ce=$(),re=Z,Z.partial||(c.currentConstruct=Z),x(c.parser.constructs.disable.null,"expected `disable.null` to be populated"),Z.name&&c.parser.constructs.disable.null.includes(Z.name)?Ce(pe):Z.tokenize.call(A?Object.assign(Object.create(c),A):c,d,Re,Ce)(pe)}}function Re(Z){return x(Z===g,"expected code"),m=!0,C(re,ce),X}function Ce(Z){return x(Z===g,"expected code"),m=!0,ce.restore(),++p<oe.length?Te(oe[p]):ne}}}function Y(C,A){C.resolveAll&&!u.includes(C)&&u.push(C),C.resolve&&se(c.events,A,c.events.length-A,C.resolve(c.events.slice(A),c)),C.resolveTo&&(c.events=C.resolveTo(c.events,c)),x(C.partial||c.events.length===0||c.events[c.events.length-1][0]==="exit","expected last token to end")}function $(){const C=v(),A=c.previous,M=c.currentConstruct,U=c.events.length,X=Array.from(s);return{restore:ne,from:U};function ne(){r=C,c.previous=A,c.currentConstruct=M,c.events.length=U,s=X,q(),ye("position: restore: `%j`",r)}}function q(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Yr(e,n){const t=n.start._index,r=n.start._bufferIndex,o=n.end._index,u=n.end._bufferIndex;let l;if(t===o)x(u>-1,"expected non-negative end buffer index"),x(r>-1,"expected non-negative start buffer index"),l=[e[t].slice(r,u)];else{if(l=e.slice(t,o),r>-1){const s=l[0];typeof s=="string"?l[0]=s.slice(r):(x(r===0,"expected `startBufferIndex` to be `0`"),l.shift())}u>0&&l.push(e[o].slice(0,u))}return l}function Xr(e,n){let t=-1;const r=[];let o;for(;++t<e.length;){const u=e[t];let l;if(typeof u=="string")l=u;else switch(u){case a.carriageReturn:{l=de.cr;break}case a.lineFeed:{l=de.lf;break}case a.carriageReturnLineFeed:{l=de.cr+de.lf;break}case a.horizontalTab:{l=n?de.space:de.ht;break}case a.virtualSpace:{if(!n&&o)continue;l=de.space;break}default:x(typeof u=="number","expected number"),l=String.fromCharCode(u)}o=u===a.horizontalTab,r.push(l)}return r.join("")}const Zr={[a.asterisk]:K,[a.plusSign]:K,[a.dash]:K,[a.digit0]:K,[a.digit1]:K,[a.digit2]:K,[a.digit3]:K,[a.digit4]:K,[a.digit5]:K,[a.digit6]:K,[a.digit7]:K,[a.digit8]:K,[a.digit9]:K,[a.greaterThan]:Mt},Jr={[a.leftSquareBracket]:Kn},Kr={[a.horizontalTab]:He,[a.virtualSpace]:He,[a.space]:He},ei={[a.numberSign]:ar,[a.asterisk]:Le,[a.dash]:[bt,Le],[a.lessThan]:sr,[a.equalsTo]:bt,[a.underscore]:Le,[a.graveAccent]:gt,[a.tilde]:gt},ti={[a.ampersand]:Lt,[a.backslash]:Dt},ni={[a.carriageReturn]:je,[a.lineFeed]:je,[a.carriageReturnLineFeed]:je,[a.exclamationMark]:zr,[a.ampersand]:Lt,[a.asterisk]:$e,[a.lessThan]:[Mn,xr],[a.leftSquareBracket]:Br,[a.backslash]:[rr,Dt],[a.rightSquareBracket]:Je,[a.underscore]:$e,[a.graveAccent]:Wn},ri={null:[$e,Wr]},ii={null:[a.asterisk,a.underscore]},ai={null:[]},ui=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ii,contentInitial:Jr,disable:ai,document:Zr,flow:ei,flowInitial:Kr,insideSpan:ri,string:ti,text:ni},Symbol.toStringTag,{value:"Module"}));function oi(e){const t=mn([ui,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:o(wn),document:o(En),flow:o(Nr),string:o(Qr),text:o(Ur)};return r;function o(u){return l;function l(s){return Gr(r,u,s)}}}const St=/[\0\t\n\r]/g;function li(){let e=1,n="",t=!0,r;return o;function o(u,l,s){const m=[];let d,c,k,g,f;for(u=n+u.toString(l),k=0,n="",t&&(u.charCodeAt(0)===a.byteOrderMarker&&k++,t=void 0);k<u.length;){if(St.lastIndex=k,d=St.exec(u),g=d&&d.index!==void 0?d.index:u.length,f=u.charCodeAt(g),!d){n=u.slice(k);break}if(f===a.lf&&k===g&&r)m.push(a.carriageReturnLineFeed),r=void 0;else switch(r&&(m.push(a.carriageReturn),r=void 0),k<g&&(m.push(u.slice(k,g)),e+=g-k),f){case a.nul:{m.push(a.replacementCharacter),e++;break}case a.ht:{for(c=Math.ceil(e/w.tabSize)*w.tabSize,m.push(a.horizontalTab);e++<c;)m.push(a.virtualSpace);break}case a.lf:{m.push(a.lineFeed),e=1;break}default:r=!0,e=1}k=g+1}return s&&(r&&m.push(a.carriageReturn),n&&m.push(n),m.push(a.eof)),m}}function si(e){for(;!Ot(e););return e}function jt(e,n){const t=Number.parseInt(e,n);return t<a.ht||t===a.vt||t>a.cr&&t<a.space||t>a.tilde&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?de.replacementCharacter:String.fromCharCode(t)}const ci=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pi(e){return e.replace(ci,hi)}function hi(e,n,t){if(n)return n;if(t.charCodeAt(0)===a.numberSign){const o=t.charCodeAt(1),u=o===a.lowercaseX||o===a.uppercaseX;return jt(t.slice(u?2:1),u?w.numericBaseHexadecimal:w.numericBaseDecimal)}return Xe(t)||e}function qe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yt(e.position):"start"in e||"end"in e?yt(e):"line"in e||"column"in e?Ge(e):""}function Ge(e){return Tt(e&&e.line)+":"+Tt(e&&e.column)}function yt(e){return Ge(e&&e.start)+"-"+Ge(e&&e.end)}function Tt(e){return e&&typeof e=="number"?e:1}const Nt={}.hasOwnProperty,Vt=(function(e,n,t){return typeof n!="string"&&(t=n,n=void 0),fi(t)(si(oi(t).document().write(li()(e,n,!0))))});function fi(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(it),autolinkProtocol:$,autolinkEmail:$,atxHeading:s(tt),blockQuote:s(Fe),characterEscape:$,characterReference:$,codeFenced:s(Se),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:s(Se,m),codeText:s(ve,m),codeTextData:$,data:$,codeFlowValue:$,definition:s(Ut),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:s($t),hardBreakEscape:s(nt),hardBreakTrailing:s(nt),htmlFlow:s(rt,m),htmlFlowData:$,htmlText:s(rt,m),htmlTextData:$,image:s(Gt),label:m,link:s(it),listItem:s(Yt),listItemValue:B,listOrdered:s(at,f),listUnordered:s(at),paragraph:s(Xt),reference:Te,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:s(tt),strong:s(Zt),thematicBreak:s(Kt)},exit:{atxHeading:c(),atxHeadingSequence:P,autolink:c(),autolinkEmail:pe,autolinkProtocol:Ee,blockQuote:c(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:Z,codeFenced:c(j),codeFencedFence:T,codeFencedFenceInfo:D,codeFencedFenceMeta:v,codeFlowValue:q,codeIndented:c(z),codeText:c(X),codeTextData:q,data:q,definition:c(),definitionDestinationString:y,definitionLabelString:I,definitionTitleString:O,emphasis:c(),hardBreakEscape:c(A),hardBreakTrailing:c(A),htmlFlow:c(M),htmlFlowData:q,htmlText:c(U),htmlTextData:q,image:c(oe),label:re,labelText:p,lineEnding:C,link:c(ne),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Re,resourceDestinationString:ce,resourceTitleString:h,resource:te,setextHeading:c(Y),setextHeadingLineSequence:Q,setextHeadingText:W,strong:c(),thematicBreak:c()}};Wt(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let S={type:"root",children:[]};const F={stack:[S],tokenStack:[],config:n,enter:d,exit:k,buffer:m,resume:g,setData:u,getData:l},_=[];let H=-1;for(;++H<b.length;)if(b[H][1].type===i.listOrdered||b[H][1].type===i.listUnordered)if(b[H][0]==="enter")_.push(H);else{const J=_.pop();x(typeof J=="number","expected list ot be open"),H=o(b,J,H)}for(H=-1;++H<b.length;){const J=n[b[H][0]];Nt.call(J,b[H][1].type)&&J[b[H][1].type].call(Object.assign({sliceSerialize:b[H][2].sliceSerialize},F),b[H][1])}if(F.tokenStack.length>0){const J=F.tokenStack[F.tokenStack.length-1];(J[1]||Ft).call(F,void 0,J[0])}for(S.position={start:ge(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:ge(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)S=n.transforms[H](S)||S;return S}function o(b,S,F){let _=S-1,H=-1,J=!1,xe,he,ze,Ae;for(;++_<=F;){const G=b[_];if(G[1].type===i.listUnordered||G[1].type===i.listOrdered||G[1].type===i.blockQuote?(G[0]==="enter"?H++:H--,Ae=void 0):G[1].type===i.lineEndingBlank?G[0]==="enter"&&(xe&&!Ae&&!H&&!ze&&(ze=_),Ae=void 0):G[1].type===i.linePrefix||G[1].type===i.listItemValue||G[1].type===i.listItemMarker||G[1].type===i.listItemPrefix||G[1].type===i.listItemPrefixWhitespace||(Ae=void 0),!H&&G[0]==="enter"&&G[1].type===i.listItemPrefix||H===-1&&G[0]==="exit"&&(G[1].type===i.listUnordered||G[1].type===i.listOrdered)){if(xe){let _e=_;for(he=void 0;_e--;){const fe=b[_e];if(fe[1].type===i.lineEnding||fe[1].type===i.lineEndingBlank){if(fe[0]==="exit")continue;he&&(b[he][1].type=i.lineEndingBlank,J=!0),fe[1].type=i.lineEnding,he=_e}else if(!(fe[1].type===i.linePrefix||fe[1].type===i.blockQuotePrefix||fe[1].type===i.blockQuotePrefixWhitespace||fe[1].type===i.blockQuoteMarker||fe[1].type===i.listItemIndent))break}ze&&(!he||ze<he)&&(xe._spread=!0),xe.end=Object.assign({},he?b[he][1].start:G[1].end),b.splice(he||_,0,["exit",xe,G[2]]),_++,F++}G[1].type===i.listItemPrefix&&(xe={type:"listItem",_spread:!1,start:Object.assign({},G[1].start),end:void 0},b.splice(_,0,["enter",xe,G[2]]),_++,F++,ze=void 0,Ae=!0)}}return b[S][1]._spread=J,F}function u(b,S){t[b]=S}function l(b){return t[b]}function s(b,S){return F;function F(_){d.call(this,b(_),_),S&&S.call(this,_)}}function m(){this.stack.push({type:"fragment",children:[]})}function d(b,S,F){const _=this.stack[this.stack.length-1];return x(_,"expected `parent`"),x("children"in _,"expected `parent`"),_.children.push(b),this.stack.push(b),this.tokenStack.push([S,F]),b.position={start:ge(S.start)},b}function c(b){return S;function S(F){b&&b.call(this,F),k.call(this,F)}}function k(b,S){const F=this.stack.pop();x(F,"expected `node`");const _=this.tokenStack.pop();if(_)_[0].type!==b.type&&(S?S.call(this,b,_[0]):(_[1]||Ft).call(this,b,_[0]));else throw new Error("Cannot close `"+b.type+"` ("+qe({start:b.start,end:b.end})+"): it’s not open");return x(F.type!=="fragment","unexpected fragment `exit`ed"),x(F.position,"expected `position` to be defined"),F.position.end=ge(b.end),F}function g(){return fn(this.stack.pop())}function f(){u("expectingFirstListItemValue",!0)}function B(b){if(l("expectingFirstListItemValue")){const S=this.stack[this.stack.length-2];x(S,"expected nodes on stack"),x(S.type==="list","expected list on stack"),S.start=Number.parseInt(this.sliceSerialize(b),w.numericBaseDecimal),u("expectingFirstListItemValue")}}function D(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="code","expected code on stack"),S.lang=b}function v(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="code","expected code on stack"),S.meta=b}function T(){l("flowCodeInside")||(this.buffer(),u("flowCodeInside",!0))}function j(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="code","expected code on stack"),S.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u("flowCodeInside")}function z(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="code","expected code on stack"),S.value=b.replace(/(\r?\n|\r)$/g,"")}function I(b){const S=this.resume(),F=this.stack[this.stack.length-1];x(F,"expected node on stack"),x(F.type==="definition","expected definition on stack"),F.label=S,F.identifier=we(this.sliceSerialize(b)).toLowerCase()}function O(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="definition","expected definition on stack"),S.title=b}function y(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="definition","expected definition on stack"),S.url=b}function P(b){const S=this.stack[this.stack.length-1];if(x(S,"expected node on stack"),x(S.type==="heading","expected heading on stack"),!S.depth){const F=this.sliceSerialize(b).length;x(F===1||F===2||F===3||F===4||F===5||F===6,"expected `depth` between `1` and `6`"),S.depth=F}}function W(){u("setextHeadingSlurpLineEnding",!0)}function Q(b){const S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="heading","expected heading on stack"),S.depth=this.sliceSerialize(b).charCodeAt(0)===a.equalsTo?1:2}function Y(){u("setextHeadingSlurpLineEnding")}function $(b){const S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x("children"in S,"expected parent on stack");let F=S.children[S.children.length-1];(!F||F.type!=="text")&&(F=Jt(),F.position={start:ge(b.start)},S.children.push(F)),this.stack.push(F)}function q(b){const S=this.stack.pop();x(S,"expected a `node` to be on the stack"),x("value"in S,"expected a `literal` to be on the stack"),x(S.position,"expected `node` to have an open position"),S.value+=this.sliceSerialize(b),S.position.end=ge(b.end)}function C(b){const S=this.stack[this.stack.length-1];if(x(S,"expected `node`"),l("atHardBreak")){x("children"in S,"expected `parent`");const F=S.children[S.children.length-1];x(F.position,"expected tail to have a starting position"),F.position.end=ge(b.end),u("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(S.type)&&($.call(this,b),q.call(this,b))}function A(){u("atHardBreak",!0)}function M(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="html","expected html on stack"),S.value=b}function U(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="html","expected html on stack"),S.value=b}function X(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="inlineCode","expected inline code on stack"),S.value=b}function ne(){const b=this.stack[this.stack.length-1];if(x(b,"expected node on stack"),x(b.type==="link","expected link on stack"),l("inReference")){const S=l("referenceType")||"shortcut";b.type+="Reference",b.referenceType=S,delete b.url,delete b.title}else delete b.identifier,delete b.label;u("referenceType")}function oe(){const b=this.stack[this.stack.length-1];if(x(b,"expected node on stack"),x(b.type==="image","expected image on stack"),l("inReference")){const S=l("referenceType")||"shortcut";b.type+="Reference",b.referenceType=S,delete b.url,delete b.title}else delete b.identifier,delete b.label;u("referenceType")}function p(b){const S=this.sliceSerialize(b),F=this.stack[this.stack.length-2];x(F,"expected ancestor on stack"),x(F.type==="image"||F.type==="link","expected image or link on stack"),F.label=pi(S),F.identifier=we(S).toLowerCase()}function re(){const b=this.stack[this.stack.length-1];x(b,"expected node on stack"),x(b.type==="fragment","expected fragment on stack");const S=this.resume(),F=this.stack[this.stack.length-1];if(x(F,"expected node on stack"),x(F.type==="image"||F.type==="link","expected image or link on stack"),u("inReference",!0),F.type==="link"){const _=b.children;F.children=_}else F.alt=S}function ce(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="image"||S.type==="link","expected image or link on stack"),S.url=b}function h(){const b=this.resume(),S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="image"||S.type==="link","expected image or link on stack"),S.title=b}function te(){u("inReference")}function Te(){u("referenceType","collapsed")}function Re(b){const S=this.resume(),F=this.stack[this.stack.length-1];x(F,"expected node on stack"),x(F.type==="image"||F.type==="link","expected image reference or link reference on stack"),F.label=S,F.identifier=we(this.sliceSerialize(b)).toLowerCase(),u("referenceType","full")}function Ce(b){x(b.type==="characterReferenceMarkerNumeric"||b.type==="characterReferenceMarkerHexadecimal"),u("characterReferenceType",b.type)}function Z(b){const S=this.sliceSerialize(b),F=l("characterReferenceType");let _;if(F)_=jt(S,F===i.characterReferenceMarkerNumeric?w.numericBaseDecimal:w.numericBaseHexadecimal),u("characterReferenceType");else{const J=Xe(S);x(J!==!1,"expected reference to decode"),_=J}const H=this.stack.pop();x(H,"expected `node`"),x(H.position,"expected `node.position`"),x("value"in H,"expected `node.value`"),H.value+=_,H.position.end=ge(b.end)}function Ee(b){q.call(this,b);const S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="link","expected link on stack"),S.url=this.sliceSerialize(b)}function pe(b){q.call(this,b);const S=this.stack[this.stack.length-1];x(S,"expected node on stack"),x(S.type==="link","expected link on stack"),S.url="mailto:"+this.sliceSerialize(b)}function Fe(){return{type:"blockquote",children:[]}}function Se(){return{type:"code",lang:null,meta:null,value:""}}function ve(){return{type:"inlineCode",value:""}}function Ut(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $t(){return{type:"emphasis",children:[]}}function tt(){return{type:"heading",depth:void 0,children:[]}}function nt(){return{type:"break"}}function rt(){return{type:"html",value:""}}function Gt(){return{type:"image",title:null,url:"",alt:null}}function it(){return{type:"link",title:null,url:"",children:[]}}function at(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function Yt(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function Xt(){return{type:"paragraph",children:[]}}function Zt(){return{type:"strong",children:[]}}function Jt(){return{type:"text",value:""}}function Kt(){return{type:"thematicBreak"}}}function ge(e){return{line:e.line,column:e.column,offset:e.offset}}function Wt(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Wt(e,r):di(e,r)}}function di(e,n){let t;for(t in n)if(Nt.call(n,t)){if(t==="canContainEols"){const r=n[t];r&&e[t].push(...r)}else if(t==="transforms"){const r=n[t];r&&e[t].push(...r)}else if(t==="enter"||t==="exit"){const r=n[t];r&&Object.assign(e[t],r)}}}function Ft(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+qe({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+qe({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+qe({start:n.start,end:n.end})+") is still open")}function mi(e){const n=e.replace(/\n{2,}/g,`
5
+ `);return nn(n)}function xi(e){const n=mi(e),{children:t}=Vt(n),r=[[]];let o=0;function u(l,s="normal"){l.type==="text"?l.value.split(`
6
+ `).forEach((d,c)=>{c!==0&&(o++,r.push([])),d.split(" ").forEach(k=>{k&&r[o].push({content:k,type:s})})}):(l.type==="strong"||l.type==="emphasis")&&l.children.forEach(m=>{u(m,l.type)})}return t.forEach(l=>{l.type==="paragraph"&&l.children.forEach(s=>{u(s)})}),r}function gi(e){const{children:n}=Vt(e);function t(r){return r.type==="text"?r.value.replace(/\n/g,"<br/>"):r.type==="strong"?`<strong>${r.children.map(t).join("")}</strong>`:r.type==="emphasis"?`<em>${r.children.map(t).join("")}</em>`:r.type==="paragraph"?`<p>${r.children.map(t).join("")}</p>`:`Unsupported markdown: ${r.type}`}return n.map(t).join("")}function ki(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(n=>n.segment):[...e]}function bi(e,n){const t=ki(n.content);return Qt(e,[],t,n.type)}function Qt(e,n,t,r){if(t.length===0)return[{content:n.join(""),type:r},{content:"",type:r}];const[o,...u]=t,l=[...n,o];return e([{content:l.join(""),type:r}])?Qt(e,l,u,r):(n.length===0&&o&&(n.push(o),t.shift()),[{content:n.join(""),type:r},{content:t.join(""),type:r}])}function Si(e,n){if(e.some(({content:t})=>t.includes(`
7
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Ye(e,n)}function Ye(e,n,t=[],r=[]){if(e.length===0)return r.length>0&&t.push(r),t.length>0?t:[];let o="";e[0].content===" "&&(o=" ",e.shift());const u=e.shift()??{content:" ",type:"normal"},l=[...r];if(o!==""&&l.push({content:o,type:"normal"}),l.push(u),n(l))return Ye(e,n,t,l);if(r.length>0)t.push(r),e.unshift(u);else if(u.content){const[s,m]=bi(n,u);t.push([s]),m.content&&e.unshift(m)}return Ye(e,n,t)}function yi(e,n){n&&e.attr("style",n)}function Ti(e,n,t,r,o=!1){const u=e.append("foreignObject"),l=u.append("xhtml:div"),s=n.label,m=n.isNode?"nodeLabel":"edgeLabel";l.html(`
8
+ <span class="${m} ${r}" `+(n.labelStyle?'style="'+n.labelStyle+'"':"")+">"+s+"</span>"),yi(l,n.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("max-width",t+"px"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&l.attr("class","labelBkg");let d=l.node().getBoundingClientRect();return d.width===t&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",t+"px"),d=l.node().getBoundingClientRect()),u.style("width",d.width),u.style("height",d.height),u.node()}function Ke(e,n,t){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",n*t-.1+"em").attr("dy",t+"em")}function Fi(e,n,t){const r=e.append("text"),o=Ke(r,1,n);et(o,t);const u=o.node().getComputedTextLength();return r.remove(),u}function zi(e,n,t){var r;const o=e.append("text"),u=Ke(o,1,n);et(u,[{content:t,type:"normal"}]);const l=(r=u.node())==null?void 0:r.getBoundingClientRect();return l&&o.remove(),l}function wi(e,n,t,r=!1){const u=n.append("g"),l=u.insert("rect").attr("class","background"),s=u.append("text").attr("y","-10.1");let m=0;for(const d of t){const c=g=>Fi(u,1.1,g)<=e,k=c(d)?[d]:Si(d,c);for(const g of k){const f=Ke(s,m,1.1);et(f,g),m++}}if(r){const d=s.node().getBBox(),c=2;return l.attr("x",-c).attr("y",-c).attr("width",d.width+2*c).attr("height",d.height+2*c),u.node()}else return s.node()}function et(e,n){e.text(""),n.forEach((t,r)=>{const o=e.append("tspan").attr("font-style",t.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",t.type==="strong"?"bold":"normal");r===0?o.text(t.content):o.text(" "+t.content)})}const Ai=(e,n="",{style:t="",isTitle:r=!1,classes:o="",useHtmlLabels:u=!0,isNode:l=!0,width:s=200,addSvgBackground:m=!1}={})=>{if(en.info("createText",n,t,r,o,u,l,m),u){const d=gi(n),c={isNode:l,label:tn(d).replace(/fa[blrs]?:fa-[\w-]+/g,g=>`<i class='${g.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return Ti(e,c,s,o,m)}else{const d=xi(n);return wi(s,e,d,m)}};export{zi as a,Ai as c};
@@ -1,4 +1,4 @@
1
- import{l as ln,x as sn,ar as cn}from"./mermaid.core-CwZQb0ud.js";import{bj as pn}from"./tool-windows-DOIu9TAD.js";var st=Object.prototype.hasOwnProperty;function ct(e,n,t){for(t of e.keys())if(Ie(t,n))return t}function Ie(e,n){var t,r,o;if(e===n)return!0;if(e&&n&&(t=e.constructor)===n.constructor){if(t===Date)return e.getTime()===n.getTime();if(t===RegExp)return e.toString()===n.toString();if(t===Array){if((r=e.length)===n.length)for(;r--&&Ie(e[r],n[r]););return r===-1}if(t===Set){if(e.size!==n.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=ct(n,o),!o)||!n.has(o))return!1;return!0}if(t===Map){if(e.size!==n.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=ct(n,o),!o)||!Ie(r[1],n.get(o)))return!1;return!0}if(t===ArrayBuffer)e=new Uint8Array(e),n=new Uint8Array(n);else if(t===DataView){if((r=e.byteLength)===n.byteLength)for(;r--&&e.getInt8(r)===n.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===n.byteLength)for(;r--&&e[r]===n[r];);return r===-1}if(!t||typeof e=="object"){r=0;for(t in e)if(st.call(e,t)&&++r&&!st.call(n,t)||!(t in n)||!Ie(e[t],n[t]))return!1;return Object.keys(n).length===r}}return e!==e&&n!==n}var hn={};let Qe,Mt,Dt,Lt,Ot=!0;typeof process<"u"&&({FORCE_COLOR:Qe,NODE_DISABLE_COLORS:Mt,NO_COLOR:Dt,TERM:Lt}=hn||{},Ot=process.stdout&&process.stdout.isTTY);const v={enabled:!Mt&&Dt==null&&Lt!=="dumb"&&(Qe!=null&&Qe!=="0"||Ot),reset:W(0,0),bold:W(1,22),dim:W(2,22),italic:W(3,23),underline:W(4,24),inverse:W(7,27),hidden:W(8,28),strikethrough:W(9,29),black:W(30,39),red:W(31,39),green:W(32,39),yellow:W(33,39),blue:W(34,39),magenta:W(35,39),cyan:W(36,39),white:W(37,39),gray:W(90,39),grey:W(90,39),bgBlack:W(40,49),bgRed:W(41,49),bgGreen:W(42,49),bgYellow:W(43,49),bgBlue:W(44,49),bgMagenta:W(45,49),bgCyan:W(46,49),bgWhite:W(47,49)};function pt(e,n){let t=0,r,o="",a="";for(;t<e.length;t++)r=e[t],o+=r.open,a+=r.close,~n.indexOf(r.close)&&(n=n.replace(r.rgx,r.close+r.open));return o+n+a}function fn(e,n){let t={has:e,keys:n};return t.reset=v.reset.bind(t),t.bold=v.bold.bind(t),t.dim=v.dim.bind(t),t.italic=v.italic.bind(t),t.underline=v.underline.bind(t),t.inverse=v.inverse.bind(t),t.hidden=v.hidden.bind(t),t.strikethrough=v.strikethrough.bind(t),t.black=v.black.bind(t),t.red=v.red.bind(t),t.green=v.green.bind(t),t.yellow=v.yellow.bind(t),t.blue=v.blue.bind(t),t.magenta=v.magenta.bind(t),t.cyan=v.cyan.bind(t),t.white=v.white.bind(t),t.gray=v.gray.bind(t),t.grey=v.grey.bind(t),t.bgBlack=v.bgBlack.bind(t),t.bgRed=v.bgRed.bind(t),t.bgGreen=v.bgGreen.bind(t),t.bgYellow=v.bgYellow.bind(t),t.bgBlue=v.bgBlue.bind(t),t.bgMagenta=v.bgMagenta.bind(t),t.bgCyan=v.bgCyan.bind(t),t.bgWhite=v.bgWhite.bind(t),t}function W(e,n){let t={open:`\x1B[${e}m`,close:`\x1B[${n}m`,rgx:new RegExp(`\\x1b\\[${n}m`,"g")};return function(r){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(t)),r===void 0?this:v.enabled?pt(this.keys,r+""):r+""):r===void 0?fn([e],[t]):v.enabled?pt([t],r+""):r+""}}function ke(){}ke.prototype={diff:function(n,t){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var l=this;function s(D){return a?(setTimeout(function(){a(void 0,D)},0),!0):D}n=this.castInput(n),t=this.castInput(t),n=this.removeEmpty(this.tokenize(n)),t=this.removeEmpty(this.tokenize(t));var x=t.length,h=n.length,c=1,f=x+h;o.maxEditLength&&(f=Math.min(f,o.maxEditLength));var d=(r=o.timeout)!==null&&r!==void 0?r:1/0,p=Date.now()+d,A=[{oldPos:-1,lastComponent:void 0}],M=this.extractCommon(A[0],t,n,0);if(A[0].oldPos+1>=h&&M+1>=x)return s([{value:this.join(t),count:t.length}]);var I=-1/0,C=1/0;function P(){for(var D=Math.max(I,-c);D<=Math.min(C,c);D+=2){var O=void 0,S=A[D-1],q=A[D+1];S&&(A[D-1]=void 0);var N=!1;if(q){var V=q.oldPos-D;N=q&&0<=V&&V<x}var U=S&&S.oldPos+1<h;if(!N&&!U){A[D]=void 0;continue}if(!U||N&&S.oldPos+1<q.oldPos?O=l.addToPath(q,!0,void 0,0):O=l.addToPath(S,void 0,!0,1),M=l.extractCommon(O,t,n,D),O.oldPos+1>=h&&M+1>=x)return s(dn(l,O.lastComponent,t,n,l.useLongestToken));A[D]=O,O.oldPos+1>=h&&(C=Math.min(C,D-1)),M+1>=x&&(I=Math.max(I,D+1))}c++}if(a)(function D(){setTimeout(function(){if(c>f||Date.now()>p)return a();P()||D()},0)})();else for(;c<=f&&Date.now()<=p;){var E=P();if(E)return E}},addToPath:function(n,t,r,o){var a=n.lastComponent;return a&&a.added===t&&a.removed===r?{oldPos:n.oldPos+o,lastComponent:{count:a.count+1,added:t,removed:r,previousComponent:a.previousComponent}}:{oldPos:n.oldPos+o,lastComponent:{count:1,added:t,removed:r,previousComponent:a}}},extractCommon:function(n,t,r,o){for(var a=t.length,l=r.length,s=n.oldPos,x=s-o,h=0;x+1<a&&s+1<l&&this.equals(t[x+1],r[s+1]);)x++,s++,h++;return h&&(n.lastComponent={count:h,previousComponent:n.lastComponent}),n.oldPos=s,x},equals:function(n,t){return this.options.comparator?this.options.comparator(n,t):n===t||this.options.ignoreCase&&n.toLowerCase()===t.toLowerCase()},removeEmpty:function(n){for(var t=[],r=0;r<n.length;r++)n[r]&&t.push(n[r]);return t},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function dn(e,n,t,r,o){for(var a=[],l;n;)a.push(n),l=n.previousComponent,delete n.previousComponent,n=l;a.reverse();for(var s=0,x=a.length,h=0,c=0;s<x;s++){var f=a[s];if(f.removed){if(f.value=e.join(r.slice(c,c+f.count)),c+=f.count,s&&a[s-1].added){var p=a[s-1];a[s-1]=a[s],a[s]=p}}else{if(!f.added&&o){var d=t.slice(h,h+f.count);d=d.map(function(M,I){var C=r[c+I];return C.length>M.length?C:M}),f.value=e.join(d)}else f.value=e.join(t.slice(h,h+f.count));h+=f.count,f.added||(c+=f.count)}}var A=a[x-1];return x>1&&typeof A.value=="string"&&(A.added||A.removed)&&e.equals("",A.value)&&(a[x-2].value+=A.value,a.pop()),a}var ht=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ft=/\S/,qt=new ke;qt.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!ft.test(e)&&!ft.test(n)};qt.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&ht.test(n[t])&&ht.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var vt=new ke;vt.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
1
+ import{l as ln,x as sn,ar as cn}from"./mermaid.core-2VcXhn43.js";import{bl as pn}from"./tool-windows-BEnZdJqF.js";var st=Object.prototype.hasOwnProperty;function ct(e,n,t){for(t of e.keys())if(Ie(t,n))return t}function Ie(e,n){var t,r,o;if(e===n)return!0;if(e&&n&&(t=e.constructor)===n.constructor){if(t===Date)return e.getTime()===n.getTime();if(t===RegExp)return e.toString()===n.toString();if(t===Array){if((r=e.length)===n.length)for(;r--&&Ie(e[r],n[r]););return r===-1}if(t===Set){if(e.size!==n.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=ct(n,o),!o)||!n.has(o))return!1;return!0}if(t===Map){if(e.size!==n.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=ct(n,o),!o)||!Ie(r[1],n.get(o)))return!1;return!0}if(t===ArrayBuffer)e=new Uint8Array(e),n=new Uint8Array(n);else if(t===DataView){if((r=e.byteLength)===n.byteLength)for(;r--&&e.getInt8(r)===n.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===n.byteLength)for(;r--&&e[r]===n[r];);return r===-1}if(!t||typeof e=="object"){r=0;for(t in e)if(st.call(e,t)&&++r&&!st.call(n,t)||!(t in n)||!Ie(e[t],n[t]))return!1;return Object.keys(n).length===r}}return e!==e&&n!==n}var hn={};let Qe,Mt,Dt,Lt,Ot=!0;typeof process<"u"&&({FORCE_COLOR:Qe,NODE_DISABLE_COLORS:Mt,NO_COLOR:Dt,TERM:Lt}=hn||{},Ot=process.stdout&&process.stdout.isTTY);const v={enabled:!Mt&&Dt==null&&Lt!=="dumb"&&(Qe!=null&&Qe!=="0"||Ot),reset:W(0,0),bold:W(1,22),dim:W(2,22),italic:W(3,23),underline:W(4,24),inverse:W(7,27),hidden:W(8,28),strikethrough:W(9,29),black:W(30,39),red:W(31,39),green:W(32,39),yellow:W(33,39),blue:W(34,39),magenta:W(35,39),cyan:W(36,39),white:W(37,39),gray:W(90,39),grey:W(90,39),bgBlack:W(40,49),bgRed:W(41,49),bgGreen:W(42,49),bgYellow:W(43,49),bgBlue:W(44,49),bgMagenta:W(45,49),bgCyan:W(46,49),bgWhite:W(47,49)};function pt(e,n){let t=0,r,o="",a="";for(;t<e.length;t++)r=e[t],o+=r.open,a+=r.close,~n.indexOf(r.close)&&(n=n.replace(r.rgx,r.close+r.open));return o+n+a}function fn(e,n){let t={has:e,keys:n};return t.reset=v.reset.bind(t),t.bold=v.bold.bind(t),t.dim=v.dim.bind(t),t.italic=v.italic.bind(t),t.underline=v.underline.bind(t),t.inverse=v.inverse.bind(t),t.hidden=v.hidden.bind(t),t.strikethrough=v.strikethrough.bind(t),t.black=v.black.bind(t),t.red=v.red.bind(t),t.green=v.green.bind(t),t.yellow=v.yellow.bind(t),t.blue=v.blue.bind(t),t.magenta=v.magenta.bind(t),t.cyan=v.cyan.bind(t),t.white=v.white.bind(t),t.gray=v.gray.bind(t),t.grey=v.grey.bind(t),t.bgBlack=v.bgBlack.bind(t),t.bgRed=v.bgRed.bind(t),t.bgGreen=v.bgGreen.bind(t),t.bgYellow=v.bgYellow.bind(t),t.bgBlue=v.bgBlue.bind(t),t.bgMagenta=v.bgMagenta.bind(t),t.bgCyan=v.bgCyan.bind(t),t.bgWhite=v.bgWhite.bind(t),t}function W(e,n){let t={open:`\x1B[${e}m`,close:`\x1B[${n}m`,rgx:new RegExp(`\\x1b\\[${n}m`,"g")};return function(r){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(t)),r===void 0?this:v.enabled?pt(this.keys,r+""):r+""):r===void 0?fn([e],[t]):v.enabled?pt([t],r+""):r+""}}function ke(){}ke.prototype={diff:function(n,t){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var l=this;function s(D){return a?(setTimeout(function(){a(void 0,D)},0),!0):D}n=this.castInput(n),t=this.castInput(t),n=this.removeEmpty(this.tokenize(n)),t=this.removeEmpty(this.tokenize(t));var x=t.length,h=n.length,c=1,f=x+h;o.maxEditLength&&(f=Math.min(f,o.maxEditLength));var d=(r=o.timeout)!==null&&r!==void 0?r:1/0,p=Date.now()+d,A=[{oldPos:-1,lastComponent:void 0}],M=this.extractCommon(A[0],t,n,0);if(A[0].oldPos+1>=h&&M+1>=x)return s([{value:this.join(t),count:t.length}]);var I=-1/0,C=1/0;function P(){for(var D=Math.max(I,-c);D<=Math.min(C,c);D+=2){var O=void 0,S=A[D-1],q=A[D+1];S&&(A[D-1]=void 0);var N=!1;if(q){var V=q.oldPos-D;N=q&&0<=V&&V<x}var U=S&&S.oldPos+1<h;if(!N&&!U){A[D]=void 0;continue}if(!U||N&&S.oldPos+1<q.oldPos?O=l.addToPath(q,!0,void 0,0):O=l.addToPath(S,void 0,!0,1),M=l.extractCommon(O,t,n,D),O.oldPos+1>=h&&M+1>=x)return s(dn(l,O.lastComponent,t,n,l.useLongestToken));A[D]=O,O.oldPos+1>=h&&(C=Math.min(C,D-1)),M+1>=x&&(I=Math.max(I,D+1))}c++}if(a)(function D(){setTimeout(function(){if(c>f||Date.now()>p)return a();P()||D()},0)})();else for(;c<=f&&Date.now()<=p;){var E=P();if(E)return E}},addToPath:function(n,t,r,o){var a=n.lastComponent;return a&&a.added===t&&a.removed===r?{oldPos:n.oldPos+o,lastComponent:{count:a.count+1,added:t,removed:r,previousComponent:a.previousComponent}}:{oldPos:n.oldPos+o,lastComponent:{count:1,added:t,removed:r,previousComponent:a}}},extractCommon:function(n,t,r,o){for(var a=t.length,l=r.length,s=n.oldPos,x=s-o,h=0;x+1<a&&s+1<l&&this.equals(t[x+1],r[s+1]);)x++,s++,h++;return h&&(n.lastComponent={count:h,previousComponent:n.lastComponent}),n.oldPos=s,x},equals:function(n,t){return this.options.comparator?this.options.comparator(n,t):n===t||this.options.ignoreCase&&n.toLowerCase()===t.toLowerCase()},removeEmpty:function(n){for(var t=[],r=0;r<n.length;r++)n[r]&&t.push(n[r]);return t},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function dn(e,n,t,r,o){for(var a=[],l;n;)a.push(n),l=n.previousComponent,delete n.previousComponent,n=l;a.reverse();for(var s=0,x=a.length,h=0,c=0;s<x;s++){var f=a[s];if(f.removed){if(f.value=e.join(r.slice(c,c+f.count)),c+=f.count,s&&a[s-1].added){var p=a[s-1];a[s-1]=a[s],a[s]=p}}else{if(!f.added&&o){var d=t.slice(h,h+f.count);d=d.map(function(M,I){var C=r[c+I];return C.length>M.length?C:M}),f.value=e.join(d)}else f.value=e.join(t.slice(h,h+f.count));h+=f.count,f.added||(c+=f.count)}}var A=a[x-1];return x>1&&typeof A.value=="string"&&(A.added||A.removed)&&e.equals("",A.value)&&(a[x-2].value+=A.value,a.pop()),a}var ht=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ft=/\S/,qt=new ke;qt.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!ft.test(e)&&!ft.test(n)};qt.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&ht.test(n[t])&&ht.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var vt=new ke;vt.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
2
2
  `));var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var r=0;r<t.length;r++){var o=t[r];r%2&&!this.options.newlineIsToken?n[n.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),n.push(o))}return n};var mn=new ke;mn.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var gn=new ke;gn.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Le(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Le=function(n){return typeof n}:Le=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Le(e)}var xn=Object.prototype.toString,Me=new ke;Me.useLongestToken=!0;Me.tokenize=vt.tokenize;Me.castInput=function(e){var n=this.options,t=n.undefinedReplacement,r=n.stringifyReplacer,o=r===void 0?function(a,l){return typeof l>"u"?t:l}:r;return typeof e=="string"?e:JSON.stringify(Ue(e,null,null,o),o," ")};Me.equals=function(e,n){return ke.prototype.equals.call(Me,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function Ue(e,n,t,r,o){n=n||[],t=t||[],r&&(e=r(o,e));var a;for(a=0;a<n.length;a+=1)if(n[a]===e)return t[a];var l;if(xn.call(e)==="[object Array]"){for(n.push(e),l=new Array(e.length),t.push(l),a=0;a<e.length;a+=1)l[a]=Ue(e[a],n,t,r,o);return n.pop(),t.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),Le(e)==="object"&&e!==null){n.push(e),l={},t.push(l);var s=[],x;for(x in e)e.hasOwnProperty(x)&&s.push(x);for(s.sort(),a=0;a<s.length;a+=1)x=s[a],l[x]=Ue(e[x],n,t,r,x);n.pop(),t.pop()}else l=e;return l}var Ge=new ke;Ge.tokenize=function(e){return e.slice()};Ge.join=Ge.removeEmpty=function(e){return e};v.red,v.grey,v.green;v.dim().italic;v.dim("→");v.dim("·");v.dim("↵");function ve(e){e=e.replace(/\r?\n/g,`
3
3
  `);let n=e.match(/^[ \t]*(?=\S)/gm),t=0,r=1/0,o=(n||[]).length;for(;t<o;t++)r=Math.min(r,n[t].length);return o&&r?e.replace(new RegExp(`^[ \\t]{${r}}`,"gm"),""):e}class kn extends Error{constructor(n={}){super(n.message),this.name="Assertion",this.code="ERR_ASSERTION",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.details=n.details||!1,this.generated=!!n.generated,this.operator=n.operator,this.expects=n.expects,this.actual=n.actual}}function ae(e,n,t,r,o,a,l){if(e)return;let s=l||a;if(l instanceof Error)throw l;let x=o;throw new kn({actual:n,expects:t,operator:r,message:s,details:x,generated:!l})}function k(e,n){ae(!!e,!1,!0,"ok",!1,"Expected value to be truthy",n)}function me(e,n){ae(!e,!0,!1,"not",!1,"Expected value to be falsey",n)}me.ok=me;me.equal=function(e,n,t){ae(!Ie(e,n),e,n,"not.equal",!1,"Expected values not to be deeply equal",t)};me.type=function(e,n,t){let r=typeof e;ae(r!==n,r,n,"not.type",!1,`Expected "${r}" not to be "${n}"`,t)};me.instance=function(e,n,t){let r="`"+(n.name||n.constructor.name)+"`";ae(!(e instanceof n),e,n,"not.instance",!1,`Expected value not to be an instance of ${r}`,t)};me.snapshot=function(e,n,t){e=ve(e),n=ve(n),ae(e!==n,e,n,"not.snapshot",!1,"Expected value not to match snapshot",t)};me.fixture=function(e,n,t){e=ve(e),n=ve(n),ae(e!==n,e,n,"not.fixture",!1,"Expected value not to match fixture",t)};me.match=function(e,n,t){typeof n=="string"?ae(!e.includes(n),e,n,"not.match",!1,`Expected value not to include "${n}" substring`,t):ae(!n.test(e),e,n,"not.match",!1,`Expected value not to match \`${String(n)}\` pattern`,t)};me.throws=function(e,n,t){!t&&typeof n=="string"&&(t=n,n=null);try{e()}catch(r){typeof n=="function"?ae(!n(r),!0,!1,"not.throws",!1,"Expected function not to throw matching exception",t):n instanceof RegExp?ae(!n.test(r.message),!0,!1,"not.throws",!1,`Expected function not to throw exception matching \`${String(n)}\` pattern`,t):n||ae(!1,!0,!1,"not.throws",!1,"Expected function not to throw",t)}};const bn={};function yn(e,n){const t=bn,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,o=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Pt(e,r,o)}function Pt(e,n,t){if(Sn(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return dt(e.children,n,t)}return Array.isArray(e)?dt(e,n,t):""}function dt(e,n,t){const r=[];let o=-1;for(;++o<e.length;)r[o]=Pt(e[o],n,t);return r.join("")}function Sn(e){return!!(e&&typeof e=="object")}const w={atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};function se(e,n,t,r){const o=e.length;let a=0,l;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,t=t>0?t:0,r.length<w.v8MaxSafeChunkSize)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);a<r.length;)l=r.slice(a,a+w.v8MaxSafeChunkSize),l.unshift(n,0),e.splice(...l),a+=w.v8MaxSafeChunkSize,n+=w.v8MaxSafeChunkSize}function ie(e,n){return e.length>0?(se(e,e.length,0,n),e):n}const mt={}.hasOwnProperty;function Cn(e){const n={};let t=-1;for(;++t<e.length;)Fn(n,e[t]);return n}function Fn(e,n){let t;for(t in n){const o=(mt.call(e,t)?e[t]:void 0)||(e[t]={}),a=n[t];let l;if(a)for(l in a){mt.call(o,l)||(o[l]=[]);const s=a[l];wn(o[l],Array.isArray(s)?s:s?[s]:[])}}}function wn(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);se(e,0,0,r)}const u={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,ht:9,lf:10,vt:11,cr:13,space:32,exclamationMark:33,quotationMark:34,numberSign:35,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseX:88,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseX:120,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},Tn=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,le=be(/[A-Za-z]/),ue=be(/[\dA-Za-z]/),En=be(/[#-'*+\--9=?A-Z^-~]/);function $e(e){return e!==null&&(e<u.space||e===u.del)}const Ye=be(/\d/),zn=be(/[\dA-Fa-f]/),An=be(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<u.horizontalTab}function ee(e){return e!==null&&(e<u.nul||e===u.space)}function _(e){return e===u.horizontalTab||e===u.virtualSpace||e===u.space}const In=be(Tn),Bn=be(/\s/);function be(e){return n;function n(t){return t!==null&&e.test(String.fromCharCode(t))}}function Q(e,n,t,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(x){return _(x)?(e.enter(t),s(x)):n(x)}function s(x){return _(x)&&a++<o?(e.consume(x),s):(e.exit(t),n(x))}}const i={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"},Mn={tokenize:Dn};function Dn(e){const n=e.attempt(this.parser.constructs.contentInitial,r,o);let t;return n;function r(s){if(k(s===u.eof||z(s),"expected eol or eof"),s===u.eof){e.consume(s);return}return e.enter(i.lineEnding),e.consume(s),e.exit(i.lineEnding),Q(e,n,i.linePrefix)}function o(s){return k(s!==u.eof&&!z(s),"expected anything other than a line ending or EOF"),e.enter(i.paragraph),a(s)}function a(s){const x=e.enter(i.chunkText,{contentType:w.contentTypeText,previous:t});return t&&(t.next=x),t=x,l(s)}function l(s){if(s===u.eof){e.exit(i.chunkText),e.exit(i.paragraph),e.consume(s);return}return z(s)?(e.consume(s),e.exit(i.chunkText),a):(e.consume(s),l)}}const Ln={tokenize:On},gt={tokenize:qn};function On(e){const n=this,t=[];let r=0,o,a,l;return s;function s(E){if(r<t.length){const D=t[r];return n.containerState=D[1],k(D[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt(D[0].continuation,x,h)(E)}return h(E)}function x(E){if(k(n.containerState,"expected `containerState` to be defined after continuation"),r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&P();const D=n.events.length;let O=D,S;for(;O--;)if(n.events[O][0]==="exit"&&n.events[O][1].type===i.chunkFlow){S=n.events[O][1].end;break}k(S,"could not find previous flow chunk"),C(r);let q=D;for(;q<n.events.length;)n.events[q][1].end=Object.assign({},S),q++;return se(n.events,O+1,0,n.events.slice(D)),n.events.length=q,h(E)}return s(E)}function h(E){if(r===t.length){if(!o)return d(E);if(o.currentConstruct&&o.currentConstruct.concrete)return A(E);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(gt,c,f)(E)}function c(E){return o&&P(),C(r),d(E)}function f(E){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,A(E)}function d(E){return n.containerState={},e.attempt(gt,p,A)(E)}function p(E){return k(n.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),k(n.containerState,"expected `containerState` to be defined on tokenizer"),r++,t.push([n.currentConstruct,n.containerState]),d(E)}function A(E){if(E===u.eof){o&&P(),C(0),e.consume(E);return}return o=o||n.parser.flow(n.now()),e.enter(i.chunkFlow,{contentType:w.contentTypeFlow,previous:a,_tokenizer:o}),M(E)}function M(E){if(E===u.eof){I(e.exit(i.chunkFlow),!0),C(0),e.consume(E);return}return z(E)?(e.consume(E),I(e.exit(i.chunkFlow)),r=0,n.interrupt=void 0,s):(e.consume(E),M)}function I(E,D){k(o,"expected `childFlow` to be defined when continuing");const O=n.sliceStream(E);if(D&&O.push(null),E.previous=a,a&&(a.next=E),a=E,o.defineSkip(E.start),o.write(O),n.parser.lazy[E.start.line]){let S=o.events.length;for(;S--;)if(o.events[S][1].start.offset<l&&(!o.events[S][1].end||o.events[S][1].end.offset>l))return;const q=n.events.length;let N=q,V,U;for(;N--;)if(n.events[N][0]==="exit"&&n.events[N][1].type===i.chunkFlow){if(V){U=n.events[N][1].end;break}V=!0}for(k(U,"could not find previous flow chunk"),C(r),S=q;S<n.events.length;)n.events[S][1].end=Object.assign({},U),S++;se(n.events,N+1,0,n.events.slice(q)),n.events.length=S}}function C(E){let D=t.length;for(;D-- >E;){const O=t[D];n.containerState=O[1],k(O[0].exit,"expected `exit` to be defined on container construct"),O[0].exit.call(n,e)}t.length=E}function P(){k(n.containerState,"expected `containerState` to be defined when closing flow"),k(o,"expected `childFlow` to be defined when closing it"),o.write([u.eof]),a=void 0,o=void 0,n.containerState._closeFlow=void 0}}function qn(e,n,t){return k(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),Q(e,e.attempt(this.parser.constructs.document,n,t),i.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize)}function xt(e){if(e===u.eof||ee(e)||Bn(e))return w.characterGroupWhitespace;if(In(e))return w.characterGroupPunctuation}function Ke(e,n,t){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(n=a(n,t),r.push(a))}return n}const Je={name:"attention",tokenize:Pn,resolveAll:vn};function vn(e,n){let t=-1,r,o,a,l,s,x,h,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;x=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),d=Object.assign({},e[t][1].start);kt(f,-x),kt(d,x),l={type:x>1?i.strongSequence:i.emphasisSequence,start:f,end:Object.assign({},e[r][1].end)},s={type:x>1?i.strongSequence:i.emphasisSequence,start:Object.assign({},e[t][1].start),end:d},a={type:x>1?i.strongText:i.emphasisText,start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},o={type:x>1?i.strong:i.emphasis,start:Object.assign({},l.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},l.start),e[t][1].start=Object.assign({},s.end),h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=ie(h,[["enter",e[r][1],n],["exit",e[r][1],n]])),h=ie(h,[["enter",o,n],["enter",l,n],["exit",l,n],["enter",a,n]]),k(n.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),h=ie(h,Ke(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),h=ie(h,[["exit",a,n],["enter",s,n],["exit",s,n],["exit",o,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,h=ie(h,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,se(e,r-1,t-r+3,h),t=r+h.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Pn(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,o=xt(r);let a;return l;function l(x){return k(x===u.asterisk||x===u.underscore,"expected asterisk or underscore"),a=x,e.enter("attentionSequence"),s(x)}function s(x){if(x===a)return e.consume(x),s;const h=e.exit("attentionSequence"),c=xt(x);k(t,"expected `attentionMarkers` to be populated");const f=!c||c===w.characterGroupPunctuation&&o||t.includes(x),d=!o||o===w.characterGroupPunctuation&&c||t.includes(r);return h._open=!!(a===u.asterisk?f:f&&(o||!d)),h._close=!!(a===u.asterisk?d:d&&(c||!f)),n(x)}}function kt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Rn={name:"autolink",tokenize:_n};function _n(e,n,t){let r=0;return o;function o(p){return k(p===u.lessThan,"expected `<`"),e.enter(i.autolink),e.enter(i.autolinkMarker),e.consume(p),e.exit(i.autolinkMarker),e.enter(i.autolinkProtocol),a}function a(p){return le(p)?(e.consume(p),l):h(p)}function l(p){return p===u.plusSign||p===u.dash||p===u.dot||ue(p)?(r=1,s(p)):h(p)}function s(p){return p===u.colon?(e.consume(p),r=0,x):(p===u.plusSign||p===u.dash||p===u.dot||ue(p))&&r++<w.autolinkSchemeSizeMax?(e.consume(p),s):(r=0,h(p))}function x(p){return p===u.greaterThan?(e.exit(i.autolinkProtocol),e.enter(i.autolinkMarker),e.consume(p),e.exit(i.autolinkMarker),e.exit(i.autolink),n):p===u.eof||p===u.space||p===u.lessThan||$e(p)?t(p):(e.consume(p),x)}function h(p){return p===u.atSign?(e.consume(p),c):En(p)?(e.consume(p),h):t(p)}function c(p){return ue(p)?f(p):t(p)}function f(p){return p===u.dot?(e.consume(p),r=0,c):p===u.greaterThan?(e.exit(i.autolinkProtocol).type=i.autolinkEmail,e.enter(i.autolinkMarker),e.consume(p),e.exit(i.autolinkMarker),e.exit(i.autolink),n):d(p)}function d(p){if((p===u.dash||ue(p))&&r++<w.autolinkDomainSizeMax){const A=p===u.dash?d:f;return e.consume(p),A}return t(p)}}const Pe={tokenize:Hn,partial:!0};function Hn(e,n,t){return r;function r(a){return _(a)?Q(e,o,i.linePrefix)(a):o(a)}function o(a){return a===u.eof||z(a)?n(a):t(a)}}const Rt={name:"blockQuote",tokenize:jn,continuation:{tokenize:Nn},exit:Vn};function jn(e,n,t){const r=this;return o;function o(l){if(l===u.greaterThan){const s=r.containerState;return k(s,"expected `containerState` to be defined in container"),s.open||(e.enter(i.blockQuote,{_container:!0}),s.open=!0),e.enter(i.blockQuotePrefix),e.enter(i.blockQuoteMarker),e.consume(l),e.exit(i.blockQuoteMarker),a}return t(l)}function a(l){return _(l)?(e.enter(i.blockQuotePrefixWhitespace),e.consume(l),e.exit(i.blockQuotePrefixWhitespace),e.exit(i.blockQuotePrefix),n):(e.exit(i.blockQuotePrefix),n(l))}}function Nn(e,n,t){const r=this;return o;function o(l){return _(l)?(k(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),Q(e,a,i.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize)(l)):a(l)}function a(l){return e.attempt(Rt,n,t)(l)}}function Vn(e){e.exit(i.blockQuote)}const _t={name:"characterEscape",tokenize:Wn};function Wn(e,n,t){return r;function r(a){return k(a===u.backslash,"expected `\\`"),e.enter(i.characterEscape),e.enter(i.escapeMarker),e.consume(a),e.exit(i.escapeMarker),o}function o(a){return An(a)?(e.enter(i.characterEscapeValue),e.consume(a),e.exit(i.characterEscapeValue),e.exit(i.characterEscape),n):t(a)}}const bt=document.createElement("i");function et(e){const n="&"+e+";";bt.innerHTML=n;const t=bt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}const Ht={name:"characterReference",tokenize:Qn};function Qn(e,n,t){const r=this;let o=0,a,l;return s;function s(f){return k(f===u.ampersand,"expected `&`"),e.enter(i.characterReference),e.enter(i.characterReferenceMarker),e.consume(f),e.exit(i.characterReferenceMarker),x}function x(f){return f===u.numberSign?(e.enter(i.characterReferenceMarkerNumeric),e.consume(f),e.exit(i.characterReferenceMarkerNumeric),h):(e.enter(i.characterReferenceValue),a=w.characterReferenceNamedSizeMax,l=ue,c(f))}function h(f){return f===u.uppercaseX||f===u.lowercaseX?(e.enter(i.characterReferenceMarkerHexadecimal),e.consume(f),e.exit(i.characterReferenceMarkerHexadecimal),e.enter(i.characterReferenceValue),a=w.characterReferenceHexadecimalSizeMax,l=zn,c):(e.enter(i.characterReferenceValue),a=w.characterReferenceDecimalSizeMax,l=Ye,c(f))}function c(f){if(f===u.semicolon&&o){const d=e.exit(i.characterReferenceValue);return l===ue&&!et(r.sliceSerialize(d))?t(f):(e.enter(i.characterReferenceMarker),e.consume(f),e.exit(i.characterReferenceMarker),e.exit(i.characterReference),n)}return l(f)&&o++<a?(e.consume(f),c):t(f)}}const yt={tokenize:Gn,partial:!0},St={name:"codeFenced",tokenize:Un,concrete:!0};function Un(e,n,t){const r=this,o={tokenize:O,partial:!0};let a=0,l=0,s;return x;function x(S){return h(S)}function h(S){k(S===u.graveAccent||S===u.tilde,"expected `` ` `` or `~`");const q=r.events[r.events.length-1];return a=q&&q[1].type===i.linePrefix?q[2].sliceSerialize(q[1],!0).length:0,s=S,e.enter(i.codeFenced),e.enter(i.codeFencedFence),e.enter(i.codeFencedFenceSequence),c(S)}function c(S){return S===s?(l++,e.consume(S),c):l<w.codeFencedSequenceSizeMin?t(S):(e.exit(i.codeFencedFenceSequence),_(S)?Q(e,f,i.whitespace)(S):f(S))}function f(S){return S===u.eof||z(S)?(e.exit(i.codeFencedFence),r.interrupt?n(S):e.check(yt,M,D)(S)):(e.enter(i.codeFencedFenceInfo),e.enter(i.chunkString,{contentType:w.contentTypeString}),d(S))}function d(S){return S===u.eof||z(S)?(e.exit(i.chunkString),e.exit(i.codeFencedFenceInfo),f(S)):_(S)?(e.exit(i.chunkString),e.exit(i.codeFencedFenceInfo),Q(e,p,i.whitespace)(S)):S===u.graveAccent&&S===s?t(S):(e.consume(S),d)}function p(S){return S===u.eof||z(S)?f(S):(e.enter(i.codeFencedFenceMeta),e.enter(i.chunkString,{contentType:w.contentTypeString}),A(S))}function A(S){return S===u.eof||z(S)?(e.exit(i.chunkString),e.exit(i.codeFencedFenceMeta),f(S)):S===u.graveAccent&&S===s?t(S):(e.consume(S),A)}function M(S){return k(z(S),"expected eol"),e.attempt(o,D,I)(S)}function I(S){return k(z(S),"expected eol"),e.enter(i.lineEnding),e.consume(S),e.exit(i.lineEnding),C}function C(S){return a>0&&_(S)?Q(e,P,i.linePrefix,a+1)(S):P(S)}function P(S){return S===u.eof||z(S)?e.check(yt,M,D)(S):(e.enter(i.codeFlowValue),E(S))}function E(S){return S===u.eof||z(S)?(e.exit(i.codeFlowValue),P(S)):(e.consume(S),E)}function D(S){return e.exit(i.codeFenced),n(S)}function O(S,q,N){let V=0;return U;function U(L){return k(z(L),"expected eol"),S.enter(i.lineEnding),S.consume(L),S.exit(i.lineEnding),$}function $(L){return k(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),S.enter(i.codeFencedFence),_(L)?Q(S,R,i.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize)(L):R(L)}function R(L){return L===s?(S.enter(i.codeFencedFenceSequence),T(L)):N(L)}function T(L){return L===s?(V++,S.consume(L),T):V>=l?(S.exit(i.codeFencedFenceSequence),_(L)?Q(S,B,i.whitespace)(L):B(L)):N(L)}function B(L){return L===u.eof||z(L)?(S.exit(i.codeFencedFence),q(L)):N(L)}}}function Gn(e,n,t){const r=this;return o;function o(l){return l===u.eof?t(l):(k(z(l),"expected eol"),e.enter(i.lineEnding),e.consume(l),e.exit(i.lineEnding),a)}function a(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const je={name:"codeIndented",tokenize:Yn},$n={tokenize:Jn,partial:!0};function Yn(e,n,t){const r=this;return o;function o(h){return k(_(h)),e.enter(i.codeIndented),Q(e,a,i.linePrefix,w.tabSize+1)(h)}function a(h){const c=r.events[r.events.length-1];return c&&c[1].type===i.linePrefix&&c[2].sliceSerialize(c[1],!0).length>=w.tabSize?l(h):t(h)}function l(h){return h===u.eof?x(h):z(h)?e.attempt($n,l,x)(h):(e.enter(i.codeFlowValue),s(h))}function s(h){return h===u.eof||z(h)?(e.exit(i.codeFlowValue),l(h)):(e.consume(h),s)}function x(h){return e.exit(i.codeIndented),n(h)}}function Jn(e,n,t){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?t(l):z(l)?(e.enter(i.lineEnding),e.consume(l),e.exit(i.lineEnding),o):Q(e,a,i.linePrefix,w.tabSize+1)(l)}function a(l){const s=r.events[r.events.length-1];return s&&s[1].type===i.linePrefix&&s[2].sliceSerialize(s[1],!0).length>=w.tabSize?n(l):z(l)?o(l):t(l)}}const Xn={name:"codeText",tokenize:Kn,resolve:Zn,previous:jt};function Zn(e){let n=e.length-4,t=3,r,o;if((e[t][1].type===i.lineEnding||e[t][1].type==="space")&&(e[n][1].type===i.lineEnding||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type===i.codeTextData){e[t][1].type=i.codeTextPadding,e[n][1].type=i.codeTextPadding,t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)o===void 0?r!==n&&e[r][1].type!==i.lineEnding&&(o=r):(r===n||e[r][1].type===i.lineEnding)&&(e[o][1].type=i.codeTextData,r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),n-=r-o-2,r=o+2),o=void 0);return e}function jt(e){return e!==u.graveAccent||this.events[this.events.length-1][1].type===i.characterEscape}function Kn(e,n,t){const r=this;let o=0,a,l;return s;function s(d){return k(d===u.graveAccent,"expected `` ` ``"),k(jt.call(r,r.previous),"expected correct previous"),e.enter(i.codeText),e.enter(i.codeTextSequence),x(d)}function x(d){return d===u.graveAccent?(e.consume(d),o++,x):(e.exit(i.codeTextSequence),h(d))}function h(d){return d===u.eof?t(d):d===u.space?(e.enter("space"),e.consume(d),e.exit("space"),h):d===u.graveAccent?(l=e.enter(i.codeTextSequence),a=0,f(d)):z(d)?(e.enter(i.lineEnding),e.consume(d),e.exit(i.lineEnding),h):(e.enter(i.codeTextData),c(d))}function c(d){return d===u.eof||d===u.space||d===u.graveAccent||z(d)?(e.exit(i.codeTextData),h(d)):(e.consume(d),c)}function f(d){return d===u.graveAccent?(e.consume(d),a++,f):a===o?(e.exit(i.codeTextSequence),e.exit(i.codeText),n(d)):(l.type=i.codeTextData,c(d))}}function Nt(e){const n={};let t=-1,r,o,a,l,s,x,h;for(;++t<e.length;){for(;t in n;)t=n[t];if(r=e[t],t&&r[1].type===i.chunkFlow&&e[t-1][1].type===i.listItemPrefix&&(k(r[1]._tokenizer,"expected `_tokenizer` on subtokens"),x=r[1]._tokenizer.events,a=0,a<x.length&&x[a][1].type===i.lineEndingBlank&&(a+=2),a<x.length&&x[a][1].type===i.content))for(;++a<x.length&&x[a][1].type!==i.content;)x[a][1].type===i.chunkText&&(x[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,er(e,t)),t=n[t],h=!0);else if(r[1]._container){for(a=t,o=void 0;a--&&(l=e[a],l[1].type===i.lineEnding||l[1].type===i.lineEndingBlank);)l[0]==="enter"&&(o&&(e[o][1].type=i.lineEndingBlank),l[1].type=i.lineEnding,o=a);o&&(r[1].end=Object.assign({},e[o][1].start),s=e.slice(o,t),s.unshift(r),se(e,o,t-o+1,s))}}return!h}function er(e,n){const t=e[n][1],r=e[n][2];let o=n-1;const a=[];k(t.contentType,"expected `contentType` on subtokens");const l=t._tokenizer||r.parser[t.contentType](t.start),s=l.events,x=[],h={};let c,f,d=-1,p=t,A=0,M=0;const I=[M];for(;p;){for(;e[++o][1]!==p;);k(!f||p.previous===f,"expected previous to match"),k(!f||f.next===p,"expected next to match"),a.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(u.eof),f&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(k(p,"expected a current token"),M=d+1,I.push(M),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0,k(!p.next,"expected no next token")):I.pop(),d=I.length;d--;){const C=s.slice(I[d],I[d+1]),P=a.pop();k(P!==void 0,"expected a start position when splicing"),x.unshift([P,P+C.length-1]),se(e,P,2,C)}for(d=-1;++d<x.length;)h[A+x[d][0]]=A+x[d][1],A+=x[d][1]-x[d][0]-1;return h}const tr={tokenize:ir,resolve:rr},nr={tokenize:ar,partial:!0};function rr(e){return Nt(e),e}function ir(e,n){let t;return r;function r(s){return k(s!==u.eof&&!z(s),"expected no eof or eol"),e.enter(i.content),t=e.enter(i.chunkContent,{contentType:w.contentTypeContent}),o(s)}function o(s){return s===u.eof?a(s):z(s)?e.check(nr,l,a)(s):(e.consume(s),o)}function a(s){return e.exit(i.chunkContent),e.exit(i.content),n(s)}function l(s){return k(z(s),"expected eol"),e.consume(s),e.exit(i.chunkContent),k(t,"expected previous token"),t.next=e.enter(i.chunkContent,{contentType:w.contentTypeContent,previous:t}),t=t.next,o}}function ar(e,n,t){const r=this;return o;function o(l){return k(z(l),"expected a line ending"),e.exit(i.chunkContent),e.enter(i.lineEnding),e.consume(l),e.exit(i.lineEnding),Q(e,a,i.linePrefix)}function a(l){if(l===u.eof||z(l))return t(l);k(r.parser.constructs.disable.null,"expected `disable.null` to be populated");const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type===i.linePrefix&&s[2].sliceSerialize(s[1],!0).length>=w.tabSize?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Vt(e,n,t,r,o,a,l,s,x){const h=x||Number.POSITIVE_INFINITY;let c=0;return f;function f(C){return C===u.lessThan?(e.enter(r),e.enter(o),e.enter(a),e.consume(C),e.exit(a),d):C===u.eof||C===u.space||C===u.rightParenthesis||$e(C)?t(C):(e.enter(r),e.enter(l),e.enter(s),e.enter(i.chunkString,{contentType:w.contentTypeString}),M(C))}function d(C){return C===u.greaterThan?(e.enter(a),e.consume(C),e.exit(a),e.exit(o),e.exit(r),n):(e.enter(s),e.enter(i.chunkString,{contentType:w.contentTypeString}),p(C))}function p(C){return C===u.greaterThan?(e.exit(i.chunkString),e.exit(s),d(C)):C===u.eof||C===u.lessThan||z(C)?t(C):(e.consume(C),C===u.backslash?A:p)}function A(C){return C===u.lessThan||C===u.greaterThan||C===u.backslash?(e.consume(C),p):p(C)}function M(C){return!c&&(C===u.eof||C===u.rightParenthesis||ee(C))?(e.exit(i.chunkString),e.exit(s),e.exit(l),e.exit(r),n(C)):c<h&&C===u.leftParenthesis?(e.consume(C),c++,M):C===u.rightParenthesis?(e.consume(C),c--,M):C===u.eof||C===u.space||C===u.leftParenthesis||$e(C)?t(C):(e.consume(C),C===u.backslash?I:M)}function I(C){return C===u.leftParenthesis||C===u.rightParenthesis||C===u.backslash?(e.consume(C),M):M(C)}}function Wt(e,n,t,r,o,a){const l=this;let s=0,x;return h;function h(p){return k(p===u.leftSquareBracket,"expected `[`"),e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(a),c}function c(p){return s>w.linkReferenceSizeMax||p===u.eof||p===u.leftSquareBracket||p===u.rightSquareBracket&&!x||p===u.caret&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?t(p):p===u.rightSquareBracket?(e.exit(a),e.enter(o),e.consume(p),e.exit(o),e.exit(r),n):z(p)?(e.enter(i.lineEnding),e.consume(p),e.exit(i.lineEnding),c):(e.enter(i.chunkString,{contentType:w.contentTypeString}),f(p))}function f(p){return p===u.eof||p===u.leftSquareBracket||p===u.rightSquareBracket||z(p)||s++>w.linkReferenceSizeMax?(e.exit(i.chunkString),c(p)):(e.consume(p),x||(x=!_(p)),p===u.backslash?d:f)}function d(p){return p===u.leftSquareBracket||p===u.backslash||p===u.rightSquareBracket?(e.consume(p),s++,f):f(p)}}function Qt(e,n,t,r,o,a){let l;return s;function s(d){return d===u.quotationMark||d===u.apostrophe||d===u.leftParenthesis?(e.enter(r),e.enter(o),e.consume(d),e.exit(o),l=d===u.leftParenthesis?u.rightParenthesis:d,x):t(d)}function x(d){return d===l?(e.enter(o),e.consume(d),e.exit(o),e.exit(r),n):(e.enter(a),h(d))}function h(d){return d===l?(e.exit(a),x(l)):d===u.eof?t(d):z(d)?(e.enter(i.lineEnding),e.consume(d),e.exit(i.lineEnding),Q(e,h,i.linePrefix)):(e.enter(i.chunkString,{contentType:w.contentTypeString}),c(d))}function c(d){return d===l||d===u.eof||z(d)?(e.exit(i.chunkString),h(d)):(e.consume(d),d===u.backslash?f:c)}function f(d){return d===l||d===u.backslash?(e.consume(d),c):c(d)}}function Be(e,n){let t;return r;function r(o){return z(o)?(e.enter(i.lineEnding),e.consume(o),e.exit(i.lineEnding),t=!0,r):_(o)?Q(e,r,t?i.linePrefix:i.lineSuffix)(o):n(o)}}const de={ht:" ",lf:`
4
4
  `,cr:"\r",space:" ",replacementCharacter:"�"};function we(e){return e.replace(/[\t\n\r ]+/g,de.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ur={name:"definition",tokenize:lr},or={tokenize:sr,partial:!0};function lr(e,n,t){const r=this;let o;return a;function a(p){return e.enter(i.definition),l(p)}function l(p){return k(p===u.leftSquareBracket,"expected `[`"),Wt.call(r,e,s,t,i.definitionLabel,i.definitionLabelMarker,i.definitionLabelString)(p)}function s(p){return o=we(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===u.colon?(e.enter(i.definitionMarker),e.consume(p),e.exit(i.definitionMarker),x):t(p)}function x(p){return ee(p)?Be(e,h)(p):h(p)}function h(p){return Vt(e,c,t,i.definitionDestination,i.definitionDestinationLiteral,i.definitionDestinationLiteralMarker,i.definitionDestinationRaw,i.definitionDestinationString)(p)}function c(p){return e.attempt(or,f,f)(p)}function f(p){return _(p)?Q(e,d,i.whitespace)(p):d(p)}function d(p){return p===u.eof||z(p)?(e.exit(i.definition),r.parser.defined.push(o),n(p)):t(p)}}function sr(e,n,t){return r;function r(s){return ee(s)?Be(e,o)(s):t(s)}function o(s){return Qt(e,a,t,i.definitionTitle,i.definitionTitleMarker,i.definitionTitleString)(s)}function a(s){return _(s)?Q(e,l,i.whitespace)(s):l(s)}function l(s){return s===u.eof||z(s)?n(s):t(s)}}const cr={name:"hardBreakEscape",tokenize:pr};function pr(e,n,t){return r;function r(a){return k(a===u.backslash,"expected `\\`"),e.enter(i.hardBreakEscape),e.consume(a),o}function o(a){return z(a)?(e.exit(i.hardBreakEscape),n(a)):t(a)}}const hr={name:"headingAtx",tokenize:dr,resolve:fr};function fr(e,n){let t=e.length-2,r=3,o,a;return e[r][1].type===i.whitespace&&(r+=2),t-2>r&&e[t][1].type===i.whitespace&&(t-=2),e[t][1].type===i.atxHeadingSequence&&(r===t-1||t-4>r&&e[t-2][1].type===i.whitespace)&&(t-=r+1===t?2:4),t>r&&(o={type:i.atxHeadingText,start:e[r][1].start,end:e[t][1].end},a={type:i.chunkText,start:e[r][1].start,end:e[t][1].end,contentType:w.contentTypeText},se(e,r,t-r+1,[["enter",o,n],["enter",a,n],["exit",a,n],["exit",o,n]])),e}function dr(e,n,t){let r=0;return o;function o(c){return e.enter(i.atxHeading),a(c)}function a(c){return k(c===u.numberSign,"expected `#`"),e.enter(i.atxHeadingSequence),l(c)}function l(c){return c===u.numberSign&&r++<w.atxHeadingOpeningFenceSizeMax?(e.consume(c),l):c===u.eof||ee(c)?(e.exit(i.atxHeadingSequence),s(c)):t(c)}function s(c){return c===u.numberSign?(e.enter(i.atxHeadingSequence),x(c)):c===u.eof||z(c)?(e.exit(i.atxHeading),n(c)):_(c)?Q(e,s,i.whitespace)(c):(e.enter(i.atxHeadingText),h(c))}function x(c){return c===u.numberSign?(e.consume(c),x):(e.exit(i.atxHeadingSequence),s(c))}function h(c){return c===u.eof||c===u.numberSign||ee(c)?(e.exit(i.atxHeadingText),s(c)):(e.consume(c),h)}}const mr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ct=["pre","script","style","textarea"],gr={name:"htmlFlow",tokenize:yr,resolveTo:br,concrete:!0},xr={tokenize:Cr,partial:!0},kr={tokenize:Sr,partial:!0};function br(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type===i.htmlFlow););return n>1&&e[n-2][1].type===i.linePrefix&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function yr(e,n,t){const r=this;let o,a,l,s,x;return h;function h(g){return c(g)}function c(g){return k(g===u.lessThan,"expected `<`"),e.enter(i.htmlFlow),e.enter(i.htmlFlowData),e.consume(g),f}function f(g){return g===u.exclamationMark?(e.consume(g),d):g===u.slash?(e.consume(g),a=!0,M):g===u.questionMark?(e.consume(g),o=w.htmlInstruction,r.interrupt?n:m):le(g)?(e.consume(g),l=String.fromCharCode(g),I):t(g)}function d(g){return g===u.dash?(e.consume(g),o=w.htmlComment,p):g===u.leftSquareBracket?(e.consume(g),o=w.htmlCdata,s=0,A):le(g)?(e.consume(g),o=w.htmlDeclaration,r.interrupt?n:m):t(g)}function p(g){return g===u.dash?(e.consume(g),r.interrupt?n:m):t(g)}function A(g){const te=w.cdataOpeningString;return g===te.charCodeAt(s++)?(e.consume(g),s===te.length?r.interrupt?n:R:A):t(g)}function M(g){return le(g)?(e.consume(g),l=String.fromCharCode(g),I):t(g)}function I(g){if(g===u.eof||g===u.slash||g===u.greaterThan||ee(g)){const te=g===u.slash,Ce=l.toLowerCase();return!te&&!a&&Ct.includes(Ce)?(o=w.htmlRaw,r.interrupt?n(g):R(g)):mr.includes(l.toLowerCase())?(o=w.htmlBasic,te?(e.consume(g),C):r.interrupt?n(g):R(g)):(o=w.htmlComplete,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):a?P(g):E(g))}return g===u.dash||ue(g)?(e.consume(g),l+=String.fromCharCode(g),I):t(g)}function C(g){return g===u.greaterThan?(e.consume(g),r.interrupt?n:R):t(g)}function P(g){return _(g)?(e.consume(g),P):U(g)}function E(g){return g===u.slash?(e.consume(g),U):g===u.colon||g===u.underscore||le(g)?(e.consume(g),D):_(g)?(e.consume(g),E):U(g)}function D(g){return g===u.dash||g===u.dot||g===u.colon||g===u.underscore||ue(g)?(e.consume(g),D):O(g)}function O(g){return g===u.equalsTo?(e.consume(g),S):_(g)?(e.consume(g),O):E(g)}function S(g){return g===u.eof||g===u.lessThan||g===u.equalsTo||g===u.greaterThan||g===u.graveAccent?t(g):g===u.quotationMark||g===u.apostrophe?(e.consume(g),x=g,q):_(g)?(e.consume(g),S):N(g)}function q(g){return g===x?(e.consume(g),x=null,V):g===u.eof||z(g)?t(g):(e.consume(g),q)}function N(g){return g===u.eof||g===u.quotationMark||g===u.apostrophe||g===u.slash||g===u.lessThan||g===u.equalsTo||g===u.greaterThan||g===u.graveAccent||ee(g)?O(g):(e.consume(g),N)}function V(g){return g===u.slash||g===u.greaterThan||_(g)?E(g):t(g)}function U(g){return g===u.greaterThan?(e.consume(g),$):t(g)}function $(g){return g===u.eof||z(g)?R(g):_(g)?(e.consume(g),$):t(g)}function R(g){return g===u.dash&&o===w.htmlComment?(e.consume(g),G):g===u.lessThan&&o===w.htmlRaw?(e.consume(g),J):g===u.greaterThan&&o===w.htmlDeclaration?(e.consume(g),re):g===u.questionMark&&o===w.htmlInstruction?(e.consume(g),m):g===u.rightSquareBracket&&o===w.htmlCdata?(e.consume(g),oe):z(g)&&(o===w.htmlBasic||o===w.htmlComplete)?(e.exit(i.htmlFlowData),e.check(xr,ce,T)(g)):g===u.eof||z(g)?(e.exit(i.htmlFlowData),T(g)):(e.consume(g),R)}function T(g){return e.check(kr,B,ce)(g)}function B(g){return k(z(g)),e.enter(i.lineEnding),e.consume(g),e.exit(i.lineEnding),L}function L(g){return g===u.eof||z(g)?T(g):(e.enter(i.htmlFlowData),R(g))}function G(g){return g===u.dash?(e.consume(g),m):R(g)}function J(g){return g===u.slash?(e.consume(g),l="",ne):R(g)}function ne(g){if(g===u.greaterThan){const te=l.toLowerCase();return Ct.includes(te)?(e.consume(g),re):R(g)}return le(g)&&l.length<w.htmlRawSizeMax?(e.consume(g),l+=String.fromCharCode(g),ne):R(g)}function oe(g){return g===u.rightSquareBracket?(e.consume(g),m):R(g)}function m(g){return g===u.greaterThan?(e.consume(g),re):g===u.dash&&o===w.htmlComment?(e.consume(g),m):R(g)}function re(g){return g===u.eof||z(g)?(e.exit(i.htmlFlowData),ce(g)):(e.consume(g),re)}function ce(g){return e.exit(i.htmlFlow),n(g)}}function Sr(e,n,t){const r=this;return o;function o(l){return z(l)?(e.enter(i.lineEnding),e.consume(l),e.exit(i.lineEnding),a):t(l)}function a(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function Cr(e,n,t){return r;function r(o){return k(z(o),"expected a line ending"),e.enter(i.lineEnding),e.consume(o),e.exit(i.lineEnding),e.attempt(Pe,n,t)}}const Fr={name:"htmlText",tokenize:wr};function wr(e,n,t){const r=this;let o,a,l;return s;function s(m){return k(m===u.lessThan,"expected `<`"),e.enter(i.htmlText),e.enter(i.htmlTextData),e.consume(m),x}function x(m){return m===u.exclamationMark?(e.consume(m),h):m===u.slash?(e.consume(m),O):m===u.questionMark?(e.consume(m),E):le(m)?(e.consume(m),N):t(m)}function h(m){return m===u.dash?(e.consume(m),c):m===u.leftSquareBracket?(e.consume(m),a=0,A):le(m)?(e.consume(m),P):t(m)}function c(m){return m===u.dash?(e.consume(m),p):t(m)}function f(m){return m===u.eof?t(m):m===u.dash?(e.consume(m),d):z(m)?(l=f,J(m)):(e.consume(m),f)}function d(m){return m===u.dash?(e.consume(m),p):f(m)}function p(m){return m===u.greaterThan?G(m):m===u.dash?d(m):f(m)}function A(m){const re=w.cdataOpeningString;return m===re.charCodeAt(a++)?(e.consume(m),a===re.length?M:A):t(m)}function M(m){return m===u.eof?t(m):m===u.rightSquareBracket?(e.consume(m),I):z(m)?(l=M,J(m)):(e.consume(m),M)}function I(m){return m===u.rightSquareBracket?(e.consume(m),C):M(m)}function C(m){return m===u.greaterThan?G(m):m===u.rightSquareBracket?(e.consume(m),C):M(m)}function P(m){return m===u.eof||m===u.greaterThan?G(m):z(m)?(l=P,J(m)):(e.consume(m),P)}function E(m){return m===u.eof?t(m):m===u.questionMark?(e.consume(m),D):z(m)?(l=E,J(m)):(e.consume(m),E)}function D(m){return m===u.greaterThan?G(m):E(m)}function O(m){return le(m)?(e.consume(m),S):t(m)}function S(m){return m===u.dash||ue(m)?(e.consume(m),S):q(m)}function q(m){return z(m)?(l=q,J(m)):_(m)?(e.consume(m),q):G(m)}function N(m){return m===u.dash||ue(m)?(e.consume(m),N):m===u.slash||m===u.greaterThan||ee(m)?V(m):t(m)}function V(m){return m===u.slash?(e.consume(m),G):m===u.colon||m===u.underscore||le(m)?(e.consume(m),U):z(m)?(l=V,J(m)):_(m)?(e.consume(m),V):G(m)}function U(m){return m===u.dash||m===u.dot||m===u.colon||m===u.underscore||ue(m)?(e.consume(m),U):$(m)}function $(m){return m===u.equalsTo?(e.consume(m),R):z(m)?(l=$,J(m)):_(m)?(e.consume(m),$):V(m)}function R(m){return m===u.eof||m===u.lessThan||m===u.equalsTo||m===u.greaterThan||m===u.graveAccent?t(m):m===u.quotationMark||m===u.apostrophe?(e.consume(m),o=m,T):z(m)?(l=R,J(m)):_(m)?(e.consume(m),R):(e.consume(m),B)}function T(m){return m===o?(e.consume(m),o=void 0,L):m===u.eof?t(m):z(m)?(l=T,J(m)):(e.consume(m),T)}function B(m){return m===u.eof||m===u.quotationMark||m===u.apostrophe||m===u.lessThan||m===u.equalsTo||m===u.graveAccent?t(m):m===u.slash||m===u.greaterThan||ee(m)?V(m):(e.consume(m),B)}function L(m){return m===u.slash||m===u.greaterThan||ee(m)?V(m):t(m)}function G(m){return m===u.greaterThan?(e.consume(m),e.exit(i.htmlTextData),e.exit(i.htmlText),n):t(m)}function J(m){return k(l,"expected return state"),k(z(m),"expected eol"),e.exit(i.htmlTextData),e.enter(i.lineEnding),e.consume(m),e.exit(i.lineEnding),ne}function ne(m){return k(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),_(m)?Q(e,oe,i.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize)(m):oe(m)}function oe(m){return e.enter(i.htmlTextData),l(m)}}const tt={name:"labelEnd",tokenize:Br,resolveTo:Ir,resolveAll:Ar},Tr={tokenize:Mr},Er={tokenize:Dr},zr={tokenize:Lr};function Ar(e){let n=-1;for(;++n<e.length;){const t=e[n][1];(t.type===i.labelImage||t.type===i.labelLink||t.type===i.labelEnd)&&(e.splice(n+1,t.type===i.labelImage?4:2),t.type=i.data,n++)}return e}function Ir(e,n){let t=e.length,r=0,o,a,l,s;for(;t--;)if(o=e[t][1],a){if(o.type===i.link||o.type===i.labelLink&&o._inactive)break;e[t][0]==="enter"&&o.type===i.labelLink&&(o._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(o.type===i.labelImage||o.type===i.labelLink)&&!o._balanced&&(a=t,o.type!==i.labelLink)){r=2;break}}else o.type===i.labelEnd&&(l=t);k(a!==void 0,"`open` is supposed to be found"),k(l!==void 0,"`close` is supposed to be found");const x={type:e[a][1].type===i.labelLink?i.link:i.image,start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},h={type:i.label,start:Object.assign({},e[a][1].start),end:Object.assign({},e[l][1].end)},c={type:i.labelText,start:Object.assign({},e[a+r+2][1].end),end:Object.assign({},e[l-2][1].start)};return s=[["enter",x,n],["enter",h,n]],s=ie(s,e.slice(a+1,a+r+3)),s=ie(s,[["enter",c,n]]),k(n.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),s=ie(s,Ke(n.parser.constructs.insideSpan.null,e.slice(a+r+4,l-3),n)),s=ie(s,[["exit",c,n],e[l-2],e[l-1],["exit",h,n]]),s=ie(s,e.slice(l+1)),s=ie(s,[["exit",x,n]]),se(e,a,e.length,s),e}function Br(e,n,t){const r=this;let o=r.events.length,a,l;for(;o--;)if((r.events[o][1].type===i.labelImage||r.events[o][1].type===i.labelLink)&&!r.events[o][1]._balanced){a=r.events[o][1];break}return s;function s(d){return k(d===u.rightSquareBracket,"expected `]`"),a?a._inactive?f(d):(l=r.parser.defined.includes(we(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(i.labelEnd),e.enter(i.labelMarker),e.consume(d),e.exit(i.labelMarker),e.exit(i.labelEnd),x):t(d)}function x(d){return d===u.leftParenthesis?e.attempt(Tr,c,l?c:f)(d):d===u.leftSquareBracket?e.attempt(Er,c,l?h:f)(d):l?c(d):f(d)}function h(d){return e.attempt(zr,c,f)(d)}function c(d){return n(d)}function f(d){return a._balanced=!0,t(d)}}function Mr(e,n,t){return r;function r(f){return k(f===u.leftParenthesis,"expected left paren"),e.enter(i.resource),e.enter(i.resourceMarker),e.consume(f),e.exit(i.resourceMarker),o}function o(f){return ee(f)?Be(e,a)(f):a(f)}function a(f){return f===u.rightParenthesis?c(f):Vt(e,l,s,i.resourceDestination,i.resourceDestinationLiteral,i.resourceDestinationLiteralMarker,i.resourceDestinationRaw,i.resourceDestinationString,w.linkResourceDestinationBalanceMax)(f)}function l(f){return ee(f)?Be(e,x)(f):c(f)}function s(f){return t(f)}function x(f){return f===u.quotationMark||f===u.apostrophe||f===u.leftParenthesis?Qt(e,h,t,i.resourceTitle,i.resourceTitleMarker,i.resourceTitleString)(f):c(f)}function h(f){return ee(f)?Be(e,c)(f):c(f)}function c(f){return f===u.rightParenthesis?(e.enter(i.resourceMarker),e.consume(f),e.exit(i.resourceMarker),e.exit(i.resource),n):t(f)}}function Dr(e,n,t){const r=this;return o;function o(s){return k(s===u.leftSquareBracket,"expected left bracket"),Wt.call(r,e,a,l,i.reference,i.referenceMarker,i.referenceString)(s)}function a(s){return r.parser.defined.includes(we(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(s):t(s)}function l(s){return t(s)}}function Lr(e,n,t){return r;function r(a){return k(a===u.leftSquareBracket,"expected left bracket"),e.enter(i.reference),e.enter(i.referenceMarker),e.consume(a),e.exit(i.referenceMarker),o}function o(a){return a===u.rightSquareBracket?(e.enter(i.referenceMarker),e.consume(a),e.exit(i.referenceMarker),e.exit(i.reference),n):t(a)}}const Or={name:"labelStartImage",tokenize:qr,resolveAll:tt.resolveAll};function qr(e,n,t){const r=this;return o;function o(s){return k(s===u.exclamationMark,"expected `!`"),e.enter(i.labelImage),e.enter(i.labelImageMarker),e.consume(s),e.exit(i.labelImageMarker),a}function a(s){return s===u.leftSquareBracket?(e.enter(i.labelMarker),e.consume(s),e.exit(i.labelMarker),e.exit(i.labelImage),l):t(s)}function l(s){return s===u.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?t(s):n(s)}}const vr={name:"labelStartLink",tokenize:Pr,resolveAll:tt.resolveAll};function Pr(e,n,t){const r=this;return o;function o(l){return k(l===u.leftSquareBracket,"expected `[`"),e.enter(i.labelLink),e.enter(i.labelMarker),e.consume(l),e.exit(i.labelMarker),e.exit(i.labelLink),a}function a(l){return l===u.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const Ne={name:"lineEnding",tokenize:Rr};function Rr(e,n){return t;function t(r){return k(z(r),"expected eol"),e.enter(i.lineEnding),e.consume(r),e.exit(i.lineEnding),Q(e,n,i.linePrefix)}}const Oe={name:"thematicBreak",tokenize:_r};function _r(e,n,t){let r=0,o;return a;function a(h){return e.enter(i.thematicBreak),l(h)}function l(h){return k(h===u.asterisk||h===u.dash||h===u.underscore,"expected `*`, `-`, or `_`"),o=h,s(h)}function s(h){return h===o?(e.enter(i.thematicBreakSequence),x(h)):r>=w.thematicBreakMarkerCountMin&&(h===u.eof||z(h))?(e.exit(i.thematicBreak),n(h)):t(h)}function x(h){return h===o?(e.consume(h),r++,x):(e.exit(i.thematicBreakSequence),_(h)?Q(e,s,i.whitespace)(h):s(h))}}const K={name:"list",tokenize:Nr,continuation:{tokenize:Vr},exit:Qr},Hr={tokenize:Ur,partial:!0},jr={tokenize:Wr,partial:!0};function Nr(e,n,t){const r=this,o=r.events[r.events.length-1];let a=o&&o[1].type===i.linePrefix?o[2].sliceSerialize(o[1],!0).length:0,l=0;return s;function s(p){k(r.containerState,"expected state");const A=r.containerState.type||(p===u.asterisk||p===u.plusSign||p===u.dash?i.listUnordered:i.listOrdered);if(A===i.listUnordered?!r.containerState.marker||p===r.containerState.marker:Ye(p)){if(r.containerState.type||(r.containerState.type=A,e.enter(A,{_container:!0})),A===i.listUnordered)return e.enter(i.listItemPrefix),p===u.asterisk||p===u.dash?e.check(Oe,t,h)(p):h(p);if(!r.interrupt||p===u.digit1)return e.enter(i.listItemPrefix),e.enter(i.listItemValue),x(p)}return t(p)}function x(p){return k(r.containerState,"expected state"),Ye(p)&&++l<w.listItemValueSizeMax?(e.consume(p),x):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===u.rightParenthesis||p===u.dot)?(e.exit(i.listItemValue),h(p)):t(p)}function h(p){return k(r.containerState,"expected state"),k(p!==u.eof,"eof (`null`) is not a marker"),e.enter(i.listItemMarker),e.consume(p),e.exit(i.listItemMarker),r.containerState.marker=r.containerState.marker||p,e.check(Pe,r.interrupt?t:c,e.attempt(Hr,d,f))}function c(p){return k(r.containerState,"expected state"),r.containerState.initialBlankLine=!0,a++,d(p)}function f(p){return _(p)?(e.enter(i.listItemPrefixWhitespace),e.consume(p),e.exit(i.listItemPrefixWhitespace),d):t(p)}function d(p){return k(r.containerState,"expected state"),r.containerState.size=a+r.sliceSerialize(e.exit(i.listItemPrefix),!0).length,n(p)}}function Vr(e,n,t){const r=this;return k(r.containerState,"expected state"),r.containerState._closeFlow=void 0,e.check(Pe,o,a);function o(s){return k(r.containerState,"expected state"),k(typeof r.containerState.size=="number","expected size"),r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Q(e,n,i.listItemIndent,r.containerState.size+1)(s)}function a(s){return k(r.containerState,"expected state"),r.containerState.furtherBlankLines||!_(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jr,n,l)(s))}function l(s){return k(r.containerState,"expected state"),r.containerState._closeFlow=!0,r.interrupt=void 0,k(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),Q(e,e.attempt(K,n,t),i.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize)(s)}}function Wr(e,n,t){const r=this;return k(r.containerState,"expected state"),k(typeof r.containerState.size=="number","expected size"),Q(e,o,i.listItemIndent,r.containerState.size+1);function o(a){k(r.containerState,"expected state");const l=r.events[r.events.length-1];return l&&l[1].type===i.listItemIndent&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(a):t(a)}}function Qr(e){k(this.containerState,"expected state"),k(typeof this.containerState.type=="string","expected type"),e.exit(this.containerState.type)}function Ur(e,n,t){const r=this;return k(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),Q(e,o,i.listItemPrefixWhitespace,r.parser.constructs.disable.null.includes("codeIndented")?void 0:w.tabSize+1);function o(a){const l=r.events[r.events.length-1];return!_(a)&&l&&l[1].type===i.listItemPrefixWhitespace?n(a):t(a)}}const Ft={name:"setextUnderline",tokenize:$r,resolveTo:Gr};function Gr(e,n){let t=e.length,r,o,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type===i.content){r=t;break}e[t][1].type===i.paragraph&&(o=t)}else e[t][1].type===i.content&&e.splice(t,1),!a&&e[t][1].type===i.definition&&(a=t);k(o!==void 0,"expected a `text` index to be found"),k(r!==void 0,"expected a `text` index to be found");const l={type:i.setextHeading,start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[o][1].type=i.setextHeadingText,a?(e.splice(o,0,["enter",l,n]),e.splice(a+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=l,e.push(["exit",l,n]),e}function $r(e,n,t){const r=this;let o;return a;function a(h){let c=r.events.length,f;for(k(h===u.dash||h===u.equalsTo,"expected `=` or `-`");c--;)if(r.events[c][1].type!==i.lineEnding&&r.events[c][1].type!==i.linePrefix&&r.events[c][1].type!==i.content){f=r.events[c][1].type===i.paragraph;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter(i.setextHeadingLine),o=h,l(h)):t(h)}function l(h){return e.enter(i.setextHeadingLineSequence),s(h)}function s(h){return h===o?(e.consume(h),s):(e.exit(i.setextHeadingLineSequence),_(h)?Q(e,x,i.lineSuffix)(h):x(h))}function x(h){return h===u.eof||z(h)?(e.exit(i.setextHeadingLine),n(h)):t(h)}}const Yr={tokenize:Jr};function Jr(e){const n=this,t=e.attempt(Pe,r,e.attempt(this.parser.constructs.flowInitial,o,Q(e,e.attempt(this.parser.constructs.flow,o,e.attempt(tr,o)),i.linePrefix)));return t;function r(a){if(k(a===u.eof||z(a),"expected eol or eof"),a===u.eof){e.consume(a);return}return e.enter(i.lineEndingBlank),e.consume(a),e.exit(i.lineEndingBlank),n.currentConstruct=void 0,t}function o(a){if(k(a===u.eof||z(a),"expected eol or eof"),a===u.eof){e.consume(a);return}return e.enter(i.lineEnding),e.consume(a),e.exit(i.lineEnding),n.currentConstruct=void 0,t}}const Xr={resolveAll:Gt()},Zr=Ut("string"),Kr=Ut("text");function Ut(e){return{tokenize:n,resolveAll:Gt(e==="text"?ei:void 0)};function n(t){const r=this,o=this.parser.constructs[e],a=t.attempt(o,l,s);return l;function l(c){return h(c)?a(c):s(c)}function s(c){if(c===u.eof){t.consume(c);return}return t.enter(i.data),t.consume(c),x}function x(c){return h(c)?(t.exit(i.data),a(c)):(t.consume(c),x)}function h(c){if(c===u.eof)return!0;const f=o[c];let d=-1;if(f)for(k(Array.isArray(f),"expected `disable.null` to be populated");++d<f.length;){const p=f[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Gt(e){return n;function n(t,r){let o=-1,a;for(;++o<=t.length;)a===void 0?t[o]&&t[o][1].type===i.data&&(a=o,o++):(!t[o]||t[o][1].type!==i.data)&&(o!==a+2&&(t[a][1].end=t[o-1][1].end,t.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(t,r):t}}function ei(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type===i.lineEnding)&&e[t-1][1].type===i.data){const r=e[t-1][1],o=n.sliceStream(r);let a=o.length,l=-1,s=0,x;for(;a--;){const h=o[a];if(typeof h=="string"){for(l=h.length;h.charCodeAt(l-1)===u.space;)s++,l--;if(l)break;l=-1}else if(h===u.horizontalTab)x=!0,s++;else if(h!==u.virtualSpace){a++;break}}if(s){const h={type:t===e.length||x||s<w.hardBreakPrefixSizeMin?i.lineSuffix:i.hardBreakTrailing,start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+a,_bufferIndex:a?l:r.start._bufferIndex+l},end:Object.assign({},r.end)};r.end=Object.assign({},h.start),r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(t,0,["enter",h,n],["exit",h,n]),t+=2)}t++}return e}var De={exports:{}},Ve,wt;function ti(){if(wt)return Ve;wt=1;var e=1e3,n=e*60,t=n*60,r=t*24,o=r*7,a=r*365.25;Ve=function(c,f){f=f||{};var d=typeof c;if(d==="string"&&c.length>0)return l(c);if(d==="number"&&isFinite(c))return f.long?x(c):s(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function l(c){if(c=String(c),!(c.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(f){var d=parseFloat(f[1]),p=(f[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return d*a;case"weeks":case"week":case"w":return d*o;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*t;case"minutes":case"minute":case"mins":case"min":case"m":return d*n;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function s(c){var f=Math.abs(c);return f>=r?Math.round(c/r)+"d":f>=t?Math.round(c/t)+"h":f>=n?Math.round(c/n)+"m":f>=e?Math.round(c/e)+"s":c+"ms"}function x(c){var f=Math.abs(c);return f>=r?h(c,f,r,"day"):f>=t?h(c,f,t,"hour"):f>=n?h(c,f,n,"minute"):f>=e?h(c,f,e,"second"):c+" ms"}function h(c,f,d,p){var A=f>=d*1.5;return Math.round(c/d)+" "+p+(A?"s":"")}return Ve}var We,Tt;function ni(){if(Tt)return We;Tt=1;function e(n){r.debug=r,r.default=r,r.coerce=h,r.disable=s,r.enable=a,r.enabled=x,r.humanize=ti(),r.destroy=c,Object.keys(n).forEach(f=>{r[f]=n[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let d=0;for(let p=0;p<f.length;p++)d=(d<<5)-d+f.charCodeAt(p),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(f){let d,p=null,A,M;function I(...C){if(!I.enabled)return;const P=I,E=Number(new Date),D=E-(d||E);P.diff=D,P.prev=d,P.curr=E,d=E,C[0]=r.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let O=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(q,N)=>{if(q==="%%")return"%";O++;const V=r.formatters[N];if(typeof V=="function"){const U=C[O];q=V.call(P,U),C.splice(O,1),O--}return q}),r.formatArgs.call(P,C),(P.log||r.log).apply(P,C)}return I.namespace=f,I.useColors=r.useColors(),I.color=r.selectColor(f),I.extend=o,I.destroy=r.destroy,Object.defineProperty(I,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(A!==r.namespaces&&(A=r.namespaces,M=r.enabled(f)),M),set:C=>{p=C}}),typeof r.init=="function"&&r.init(I),I}function o(f,d){const p=r(this.namespace+(typeof d>"u"?":":d)+f);return p.log=this.log,p}function a(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];const d=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const p of d)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function l(f,d){let p=0,A=0,M=-1,I=0;for(;p<f.length;)if(A<d.length&&(d[A]===f[p]||d[A]==="*"))d[A]==="*"?(M=A,I=p,A++):(p++,A++);else if(M!==-1)A=M+1,I++,p=I;else return!1;for(;A<d.length&&d[A]==="*";)A++;return A===d.length}function s(){const f=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),f}function x(f){for(const d of r.skips)if(l(f,d))return!1;for(const d of r.names)if(l(f,d))return!0;return!1}function h(f){return f instanceof Error?f.stack||f.message:f}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return We=e,We}var Et;function ri(){return Et||(Et=1,(function(e,n){var t={};n.formatArgs=o,n.save=a,n.load=l,n.useColors=r,n.storage=s(),n.destroy=(()=>{let h=!1;return()=>{h||(h=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let h;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(h=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(h[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(h){if(h[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+h[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;h.splice(1,0,c,"color: inherit");let f=0,d=0;h[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(f++,p==="%c"&&(d=f))}),h.splice(d,0,c)}n.log=console.debug||console.log||(()=>{});function a(h){try{h?n.storage.setItem("debug",h):n.storage.removeItem("debug")}catch{}}function l(){let h;try{h=n.storage.getItem("debug")||n.storage.getItem("DEBUG")}catch{}return!h&&typeof process<"u"&&"env"in process&&(h=t.DEBUG),h}function s(){try{return localStorage}catch{}}e.exports=ni()(n);const{formatters:x}=e.exports;x.j=function(h){try{return JSON.stringify(h)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(De,De.exports)),De.exports}var ii=ri();const ai=pn(ii),Se=ai("micromark");function ui(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},a=[];let l=[],s=[],x=!0;const h={consume:D,enter:O,exit:S,attempt:V(q),check:V(N),interrupt:V(N,{interrupt:!0})},c={previous:u.eof,code:u.eof,containerState:{},events:[],parser:e,sliceStream:M,sliceSerialize:A,now:I,defineSkip:C,write:p};let f=n.tokenize.call(c,h),d;return n.resolveAll&&a.push(n),c;function p(T){return l=ie(l,T),P(),l[l.length-1]!==u.eof?[]:(U(n,0),c.events=Ke(a,c.events,c),c.events)}function A(T,B){return li(M(T),B)}function M(T){return oi(l,T)}function I(){const{line:T,column:B,offset:L,_index:G,_bufferIndex:J}=r;return{line:T,column:B,offset:L,_index:G,_bufferIndex:J}}function C(T){o[T.line]=T.column,R(),Se("position: define skip: `%j`",r)}function P(){let T;for(;r._index<l.length;){const B=l[r._index];if(typeof B=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<B.length;)E(B.charCodeAt(r._bufferIndex));else E(B)}}function E(T){k(x===!0,"expected character to be consumed"),x=void 0,Se("main: passing `%s` to %s",T,f&&f.name),d=T,k(typeof f=="function","expected state"),f=f(T)}function D(T){k(T===d,"expected given code to equal expected code"),Se("consume: `%s`",T),k(x===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),k(T===null?c.events.length===0||c.events[c.events.length-1][0]==="exit":c.events[c.events.length-1][0]==="enter","expected last token to be open"),z(T)?(r.line++,r.column=1,r.offset+=T===u.carriageReturnLineFeed?2:1,R(),Se("position: after eol: `%j`",r)):T!==u.virtualSpace&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=T,x=!0}function O(T,B){const L=B||{};return L.type=T,L.start=I(),k(typeof T=="string","expected string type"),k(T.length>0,"expected non-empty string"),Se("enter: `%s`",T),c.events.push(["enter",L,c]),s.push(L),L}function S(T){k(typeof T=="string","expected string type"),k(T.length>0,"expected non-empty string");const B=s.pop();return k(B,"cannot close w/o open tokens"),B.end=I(),k(T===B.type,"expected exit token to match current token"),k(!(B.start._index===B.end._index&&B.start._bufferIndex===B.end._bufferIndex),"expected non-empty token (`"+T+"`)"),Se("exit: `%s`",B.type),c.events.push(["exit",B,c]),B}function q(T,B){U(T,B.from)}function N(T,B){B.restore()}function V(T,B){return L;function L(G,J,ne){let oe,m,re,ce;return Array.isArray(G)?te(G):"tokenize"in G?te([G]):g(G);function g(X){return Ee;function Ee(pe){const Fe=pe!==null&&X[pe],ye=pe!==null&&X.null,_e=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(ye)?ye:ye?[ye]:[]];return te(_e)(pe)}}function te(X){return oe=X,m=0,X.length===0?(k(ne,"expected `bogusState` to be given"),ne):Ce(X[m])}function Ce(X){return Ee;function Ee(pe){return ce=$(),re=X,X.partial||(c.currentConstruct=X),k(c.parser.constructs.disable.null,"expected `disable.null` to be populated"),X.name&&c.parser.constructs.disable.null.includes(X.name)?Te(pe):X.tokenize.call(B?Object.assign(Object.create(c),B):c,h,Re,Te)(pe)}}function Re(X){return k(X===d,"expected code"),x=!0,T(re,ce),J}function Te(X){return k(X===d,"expected code"),x=!0,ce.restore(),++m<oe.length?Ce(oe[m]):ne}}}function U(T,B){T.resolveAll&&!a.includes(T)&&a.push(T),T.resolve&&se(c.events,B,c.events.length-B,T.resolve(c.events.slice(B),c)),T.resolveTo&&(c.events=T.resolveTo(c.events,c)),k(T.partial||c.events.length===0||c.events[c.events.length-1][0]==="exit","expected last token to end")}function $(){const T=I(),B=c.previous,L=c.currentConstruct,G=c.events.length,J=Array.from(s);return{restore:ne,from:G};function ne(){r=T,c.previous=B,c.currentConstruct=L,c.events.length=G,s=J,R(),Se("position: restore: `%j`",r)}}function R(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function oi(e,n){const t=n.start._index,r=n.start._bufferIndex,o=n.end._index,a=n.end._bufferIndex;let l;if(t===o)k(a>-1,"expected non-negative end buffer index"),k(r>-1,"expected non-negative start buffer index"),l=[e[t].slice(r,a)];else{if(l=e.slice(t,o),r>-1){const s=l[0];typeof s=="string"?l[0]=s.slice(r):(k(r===0,"expected `startBufferIndex` to be `0`"),l.shift())}a>0&&l.push(e[o].slice(0,a))}return l}function li(e,n){let t=-1;const r=[];let o;for(;++t<e.length;){const a=e[t];let l;if(typeof a=="string")l=a;else switch(a){case u.carriageReturn:{l=de.cr;break}case u.lineFeed:{l=de.lf;break}case u.carriageReturnLineFeed:{l=de.cr+de.lf;break}case u.horizontalTab:{l=n?de.space:de.ht;break}case u.virtualSpace:{if(!n&&o)continue;l=de.space;break}default:k(typeof a=="number","expected number"),l=String.fromCharCode(a)}o=a===u.horizontalTab,r.push(l)}return r.join("")}const si={[u.asterisk]:K,[u.plusSign]:K,[u.dash]:K,[u.digit0]:K,[u.digit1]:K,[u.digit2]:K,[u.digit3]:K,[u.digit4]:K,[u.digit5]:K,[u.digit6]:K,[u.digit7]:K,[u.digit8]:K,[u.digit9]:K,[u.greaterThan]:Rt},ci={[u.leftSquareBracket]:ur},pi={[u.horizontalTab]:je,[u.virtualSpace]:je,[u.space]:je},hi={[u.numberSign]:hr,[u.asterisk]:Oe,[u.dash]:[Ft,Oe],[u.lessThan]:gr,[u.equalsTo]:Ft,[u.underscore]:Oe,[u.graveAccent]:St,[u.tilde]:St},fi={[u.ampersand]:Ht,[u.backslash]:_t},di={[u.carriageReturn]:Ne,[u.lineFeed]:Ne,[u.carriageReturnLineFeed]:Ne,[u.exclamationMark]:Or,[u.ampersand]:Ht,[u.asterisk]:Je,[u.lessThan]:[Rn,Fr],[u.leftSquareBracket]:vr,[u.backslash]:[cr,_t],[u.rightSquareBracket]:tt,[u.underscore]:Je,[u.graveAccent]:Xn},mi={null:[Je,Xr]},gi={null:[u.asterisk,u.underscore]},xi={null:[]},ki=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:gi,contentInitial:ci,disable:xi,document:si,flow:hi,flowInitial:pi,insideSpan:mi,string:fi,text:di},Symbol.toStringTag,{value:"Module"}));function bi(e){const t=Cn([ki,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:o(Mn),document:o(Ln),flow:o(Yr),string:o(Zr),text:o(Kr)};return r;function o(a){return l;function l(s){return ui(r,a,s)}}}const zt=/[\0\t\n\r]/g;function yi(){let e=1,n="",t=!0,r;return o;function o(a,l,s){const x=[];let h,c,f,d,p;for(a=n+a.toString(l),f=0,n="",t&&(a.charCodeAt(0)===u.byteOrderMarker&&f++,t=void 0);f<a.length;){if(zt.lastIndex=f,h=zt.exec(a),d=h&&h.index!==void 0?h.index:a.length,p=a.charCodeAt(d),!h){n=a.slice(f);break}if(p===u.lf&&f===d&&r)x.push(u.carriageReturnLineFeed),r=void 0;else switch(r&&(x.push(u.carriageReturn),r=void 0),f<d&&(x.push(a.slice(f,d)),e+=d-f),p){case u.nul:{x.push(u.replacementCharacter),e++;break}case u.ht:{for(c=Math.ceil(e/w.tabSize)*w.tabSize,x.push(u.horizontalTab);e++<c;)x.push(u.virtualSpace);break}case u.lf:{x.push(u.lineFeed),e=1;break}default:r=!0,e=1}f=d+1}return s&&(r&&x.push(u.carriageReturn),n&&x.push(n),x.push(u.eof)),x}}function Si(e){for(;!Nt(e););return e}function $t(e,n){const t=Number.parseInt(e,n);return t<u.ht||t===u.vt||t>u.cr&&t<u.space||t>u.tilde&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?de.replacementCharacter:String.fromCharCode(t)}const Ci=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fi(e){return e.replace(Ci,wi)}function wi(e,n,t){if(n)return n;if(t.charCodeAt(0)===u.numberSign){const o=t.charCodeAt(1),a=o===u.lowercaseX||o===u.uppercaseX;return $t(t.slice(a?2:1),a?w.numericBaseHexadecimal:w.numericBaseDecimal)}return et(t)||e}function qe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?At(e.position):"start"in e||"end"in e?At(e):"line"in e||"column"in e?Xe(e):""}function Xe(e){return It(e&&e.line)+":"+It(e&&e.column)}function At(e){return Xe(e&&e.start)+"-"+Xe(e&&e.end)}function It(e){return e&&typeof e=="number"?e:1}const Yt={}.hasOwnProperty,Jt=(function(e,n,t){return typeof n!="string"&&(t=n,n=void 0),Ti(t)(Si(bi(t).document().write(yi()(e,n,!0))))});function Ti(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ot),autolinkProtocol:$,autolinkEmail:$,atxHeading:s(it),blockQuote:s(Fe),characterEscape:$,characterReference:$,codeFenced:s(ye),codeFencedFenceInfo:x,codeFencedFenceMeta:x,codeIndented:s(ye,x),codeText:s(_e,x),codeTextData:$,data:$,codeFlowValue:$,definition:s(Kt),definitionDestinationString:x,definitionLabelString:x,definitionTitleString:x,emphasis:s(en),hardBreakEscape:s(at),hardBreakTrailing:s(at),htmlFlow:s(ut,x),htmlFlowData:$,htmlText:s(ut,x),htmlTextData:$,image:s(tn),label:x,link:s(ot),listItem:s(nn),listItemValue:A,listOrdered:s(lt,p),listUnordered:s(lt),paragraph:s(rn),reference:Ce,referenceString:x,resourceDestinationString:x,resourceTitleString:x,setextHeading:s(it),strong:s(an),thematicBreak:s(on)},exit:{atxHeading:c(),atxHeadingSequence:q,autolink:c(),autolinkEmail:pe,autolinkProtocol:Ee,blockQuote:c(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:X,codeFenced:c(P),codeFencedFence:C,codeFencedFenceInfo:M,codeFencedFenceMeta:I,codeFlowValue:R,codeIndented:c(E),codeText:c(J),codeTextData:R,data:R,definition:c(),definitionDestinationString:S,definitionLabelString:D,definitionTitleString:O,emphasis:c(),hardBreakEscape:c(B),hardBreakTrailing:c(B),htmlFlow:c(L),htmlFlowData:R,htmlText:c(G),htmlTextData:R,image:c(oe),label:re,labelText:m,lineEnding:T,link:c(ne),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Re,resourceDestinationString:ce,resourceTitleString:g,resource:te,setextHeading:c(U),setextHeadingLineSequence:V,setextHeadingText:N,strong:c(),thematicBreak:c()}};Xt(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let y={type:"root",children:[]};const F={stack:[y],tokenStack:[],config:n,enter:h,exit:f,buffer:x,resume:d,setData:a,getData:l},H=[];let j=-1;for(;++j<b.length;)if(b[j][1].type===i.listOrdered||b[j][1].type===i.listUnordered)if(b[j][0]==="enter")H.push(j);else{const Z=H.pop();k(typeof Z=="number","expected list ot be open"),j=o(b,Z,j)}for(j=-1;++j<b.length;){const Z=n[b[j][0]];Yt.call(Z,b[j][1].type)&&Z[b[j][1].type].call(Object.assign({sliceSerialize:b[j][2].sliceSerialize},F),b[j][1])}if(F.tokenStack.length>0){const Z=F.tokenStack[F.tokenStack.length-1];(Z[1]||Bt).call(F,void 0,Z[0])}for(y.position={start:xe(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:xe(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},j=-1;++j<n.transforms.length;)y=n.transforms[j](y)||y;return y}function o(b,y,F){let H=y-1,j=-1,Z=!1,ge,he,ze,Ae;for(;++H<=F;){const Y=b[H];if(Y[1].type===i.listUnordered||Y[1].type===i.listOrdered||Y[1].type===i.blockQuote?(Y[0]==="enter"?j++:j--,Ae=void 0):Y[1].type===i.lineEndingBlank?Y[0]==="enter"&&(ge&&!Ae&&!j&&!ze&&(ze=H),Ae=void 0):Y[1].type===i.linePrefix||Y[1].type===i.listItemValue||Y[1].type===i.listItemMarker||Y[1].type===i.listItemPrefix||Y[1].type===i.listItemPrefixWhitespace||(Ae=void 0),!j&&Y[0]==="enter"&&Y[1].type===i.listItemPrefix||j===-1&&Y[0]==="exit"&&(Y[1].type===i.listUnordered||Y[1].type===i.listOrdered)){if(ge){let He=H;for(he=void 0;He--;){const fe=b[He];if(fe[1].type===i.lineEnding||fe[1].type===i.lineEndingBlank){if(fe[0]==="exit")continue;he&&(b[he][1].type=i.lineEndingBlank,Z=!0),fe[1].type=i.lineEnding,he=He}else if(!(fe[1].type===i.linePrefix||fe[1].type===i.blockQuotePrefix||fe[1].type===i.blockQuotePrefixWhitespace||fe[1].type===i.blockQuoteMarker||fe[1].type===i.listItemIndent))break}ze&&(!he||ze<he)&&(ge._spread=!0),ge.end=Object.assign({},he?b[he][1].start:Y[1].end),b.splice(he||H,0,["exit",ge,Y[2]]),H++,F++}Y[1].type===i.listItemPrefix&&(ge={type:"listItem",_spread:!1,start:Object.assign({},Y[1].start),end:void 0},b.splice(H,0,["enter",ge,Y[2]]),H++,F++,ze=void 0,Ae=!0)}}return b[y][1]._spread=Z,F}function a(b,y){t[b]=y}function l(b){return t[b]}function s(b,y){return F;function F(H){h.call(this,b(H),H),y&&y.call(this,H)}}function x(){this.stack.push({type:"fragment",children:[]})}function h(b,y,F){const H=this.stack[this.stack.length-1];return k(H,"expected `parent`"),k("children"in H,"expected `parent`"),H.children.push(b),this.stack.push(b),this.tokenStack.push([y,F]),b.position={start:xe(y.start)},b}function c(b){return y;function y(F){b&&b.call(this,F),f.call(this,F)}}function f(b,y){const F=this.stack.pop();k(F,"expected `node`");const H=this.tokenStack.pop();if(H)H[0].type!==b.type&&(y?y.call(this,b,H[0]):(H[1]||Bt).call(this,b,H[0]));else throw new Error("Cannot close `"+b.type+"` ("+qe({start:b.start,end:b.end})+"): it’s not open");return k(F.type!=="fragment","unexpected fragment `exit`ed"),k(F.position,"expected `position` to be defined"),F.position.end=xe(b.end),F}function d(){return yn(this.stack.pop())}function p(){a("expectingFirstListItemValue",!0)}function A(b){if(l("expectingFirstListItemValue")){const y=this.stack[this.stack.length-2];k(y,"expected nodes on stack"),k(y.type==="list","expected list on stack"),y.start=Number.parseInt(this.sliceSerialize(b),w.numericBaseDecimal),a("expectingFirstListItemValue")}}function M(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="code","expected code on stack"),y.lang=b}function I(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="code","expected code on stack"),y.meta=b}function C(){l("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function P(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="code","expected code on stack"),y.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function E(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="code","expected code on stack"),y.value=b.replace(/(\r?\n|\r)$/g,"")}function D(b){const y=this.resume(),F=this.stack[this.stack.length-1];k(F,"expected node on stack"),k(F.type==="definition","expected definition on stack"),F.label=y,F.identifier=we(this.sliceSerialize(b)).toLowerCase()}function O(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="definition","expected definition on stack"),y.title=b}function S(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="definition","expected definition on stack"),y.url=b}function q(b){const y=this.stack[this.stack.length-1];if(k(y,"expected node on stack"),k(y.type==="heading","expected heading on stack"),!y.depth){const F=this.sliceSerialize(b).length;k(F===1||F===2||F===3||F===4||F===5||F===6,"expected `depth` between `1` and `6`"),y.depth=F}}function N(){a("setextHeadingSlurpLineEnding",!0)}function V(b){const y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="heading","expected heading on stack"),y.depth=this.sliceSerialize(b).charCodeAt(0)===u.equalsTo?1:2}function U(){a("setextHeadingSlurpLineEnding")}function $(b){const y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k("children"in y,"expected parent on stack");let F=y.children[y.children.length-1];(!F||F.type!=="text")&&(F=un(),F.position={start:xe(b.start)},y.children.push(F)),this.stack.push(F)}function R(b){const y=this.stack.pop();k(y,"expected a `node` to be on the stack"),k("value"in y,"expected a `literal` to be on the stack"),k(y.position,"expected `node` to have an open position"),y.value+=this.sliceSerialize(b),y.position.end=xe(b.end)}function T(b){const y=this.stack[this.stack.length-1];if(k(y,"expected `node`"),l("atHardBreak")){k("children"in y,"expected `parent`");const F=y.children[y.children.length-1];k(F.position,"expected tail to have a starting position"),F.position.end=xe(b.end),a("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(y.type)&&($.call(this,b),R.call(this,b))}function B(){a("atHardBreak",!0)}function L(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="html","expected html on stack"),y.value=b}function G(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="html","expected html on stack"),y.value=b}function J(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="inlineCode","expected inline code on stack"),y.value=b}function ne(){const b=this.stack[this.stack.length-1];if(k(b,"expected node on stack"),k(b.type==="link","expected link on stack"),l("inReference")){const y=l("referenceType")||"shortcut";b.type+="Reference",b.referenceType=y,delete b.url,delete b.title}else delete b.identifier,delete b.label;a("referenceType")}function oe(){const b=this.stack[this.stack.length-1];if(k(b,"expected node on stack"),k(b.type==="image","expected image on stack"),l("inReference")){const y=l("referenceType")||"shortcut";b.type+="Reference",b.referenceType=y,delete b.url,delete b.title}else delete b.identifier,delete b.label;a("referenceType")}function m(b){const y=this.sliceSerialize(b),F=this.stack[this.stack.length-2];k(F,"expected ancestor on stack"),k(F.type==="image"||F.type==="link","expected image or link on stack"),F.label=Fi(y),F.identifier=we(y).toLowerCase()}function re(){const b=this.stack[this.stack.length-1];k(b,"expected node on stack"),k(b.type==="fragment","expected fragment on stack");const y=this.resume(),F=this.stack[this.stack.length-1];if(k(F,"expected node on stack"),k(F.type==="image"||F.type==="link","expected image or link on stack"),a("inReference",!0),F.type==="link"){const H=b.children;F.children=H}else F.alt=y}function ce(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="image"||y.type==="link","expected image or link on stack"),y.url=b}function g(){const b=this.resume(),y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="image"||y.type==="link","expected image or link on stack"),y.title=b}function te(){a("inReference")}function Ce(){a("referenceType","collapsed")}function Re(b){const y=this.resume(),F=this.stack[this.stack.length-1];k(F,"expected node on stack"),k(F.type==="image"||F.type==="link","expected image reference or link reference on stack"),F.label=y,F.identifier=we(this.sliceSerialize(b)).toLowerCase(),a("referenceType","full")}function Te(b){k(b.type==="characterReferenceMarkerNumeric"||b.type==="characterReferenceMarkerHexadecimal"),a("characterReferenceType",b.type)}function X(b){const y=this.sliceSerialize(b),F=l("characterReferenceType");let H;if(F)H=$t(y,F===i.characterReferenceMarkerNumeric?w.numericBaseDecimal:w.numericBaseHexadecimal),a("characterReferenceType");else{const Z=et(y);k(Z!==!1,"expected reference to decode"),H=Z}const j=this.stack.pop();k(j,"expected `node`"),k(j.position,"expected `node.position`"),k("value"in j,"expected `node.value`"),j.value+=H,j.position.end=xe(b.end)}function Ee(b){R.call(this,b);const y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="link","expected link on stack"),y.url=this.sliceSerialize(b)}function pe(b){R.call(this,b);const y=this.stack[this.stack.length-1];k(y,"expected node on stack"),k(y.type==="link","expected link on stack"),y.url="mailto:"+this.sliceSerialize(b)}function Fe(){return{type:"blockquote",children:[]}}function ye(){return{type:"code",lang:null,meta:null,value:""}}function _e(){return{type:"inlineCode",value:""}}function Kt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function en(){return{type:"emphasis",children:[]}}function it(){return{type:"heading",depth:void 0,children:[]}}function at(){return{type:"break"}}function ut(){return{type:"html",value:""}}function tn(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function lt(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function nn(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function rn(){return{type:"paragraph",children:[]}}function an(){return{type:"strong",children:[]}}function un(){return{type:"text",value:""}}function on(){return{type:"thematicBreak"}}}function xe(e){return{line:e.line,column:e.column,offset:e.offset}}function Xt(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Xt(e,r):Ei(e,r)}}function Ei(e,n){let t;for(t in n)if(Yt.call(n,t)){if(t==="canContainEols"){const r=n[t];r&&e[t].push(...r)}else if(t==="transforms"){const r=n[t];r&&e[t].push(...r)}else if(t==="enter"||t==="exit"){const r=n[t];r&&Object.assign(e[t],r)}}}function Bt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+qe({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+qe({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+qe({start:n.start,end:n.end})+") is still open")}function zi(e){const n=e.replace(/\n{2,}/g,`