vibelet 1.2.248 → 1.2.249

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 (181) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/inventory-scan-worker.cjs +1 -1
  3. package/dist/remoteDirect/manifest.json +12 -12
  4. package/dist/runtime-version.cjs +1 -1
  5. package/dist/web/assets/App-CqANyaMK.css +97 -0
  6. package/dist/web/assets/App-gwVbOIB1.js +2 -0
  7. package/dist/web/assets/BrowserControlPanel-ChZyiZg8.js +1 -0
  8. package/dist/web/assets/{ChatPane-CzxrCqL_.css → ChatPane-CWKGXZWT.css} +1 -1
  9. package/dist/web/assets/ChatPane-fH0IY48w.js +1 -0
  10. package/dist/web/assets/{ChipGroup-7CAhvUt1.js → ChipGroup-0exv9rzn.js} +1 -1
  11. package/dist/web/assets/ComposerMenus-DhMX49q9.js +1 -0
  12. package/dist/web/assets/DiffDrawer-D4eELjEe.js +1 -0
  13. package/dist/web/assets/FilesControlPanel-Bz4i0bf2.js +1 -0
  14. package/dist/web/assets/FilesControlPanel-JMh8U1IC.css +1 -0
  15. package/dist/web/assets/{GlobalPendingDialog--lYE48cR.js → GlobalPendingDialog-tews3DVC.js} +1 -1
  16. package/dist/web/assets/ImageViewer-BojwpCb-.js +1 -0
  17. package/dist/web/assets/{LanguageSettingsPanel-EPESHevZ.js → LanguageSettingsPanel-C1ZHQpVG.js} +1 -1
  18. package/dist/web/assets/{MarkdownModePanel-CGJDuUhg.js → MarkdownModePanel-B4iVncFO.js} +1 -1
  19. package/dist/web/assets/NewSessionDialog-CsOHExrY.js +1 -0
  20. package/dist/web/assets/{NotificationSettingsPanel-CYmXEnsF.js → NotificationSettingsPanel-BA0Lj4kT.js} +1 -1
  21. package/dist/web/assets/{PanelFind-CQnWpcIB.js → PanelFind-D_pRPFBN.js} +1 -1
  22. package/dist/web/assets/RemoteLifeOSBlock-CZkQLmE5.js +2 -0
  23. package/dist/web/assets/{RemoteWorkspaceSettings-DzHtw75P.js → RemoteWorkspaceSettings-tDqbDqj4.js} +1 -1
  24. package/dist/web/assets/{SessionTerminalPanel-i2N28V0A.js → SessionTerminalPanel-B-TvX4Fz.js} +2 -2
  25. package/dist/web/assets/{SpeechInputSettingsPanel-Ig45GnlA.js → SpeechInputSettingsPanel-Buqwjrth.js} +1 -1
  26. package/dist/web/assets/{ThemeSettingsPanel-C02iFM8b.js → ThemeSettingsPanel-Bph9zVcN.js} +1 -1
  27. package/dist/web/assets/{__vite-browser-external-2447137e-D97de6th.js → __vite-browser-external-2447137e-Dbwxx6PZ.js} +1 -1
  28. package/dist/web/assets/_baseMerge-YHvLFG89.js +1 -0
  29. package/dist/web/assets/{_initCloneObject-BR1zWEqJ.js → _initCloneObject-CgHgrY9n.js} +1 -1
  30. package/dist/web/assets/abnfDiagram-VRR7QNED-dJfL32qR.js +1 -0
  31. package/dist/web/assets/arc-BYAxnPQ_.js +1 -0
  32. package/dist/web/assets/architectureDiagram-ZJ3FMSHR-LXgKoYZv.js +1 -0
  33. package/dist/web/assets/{arrow-left-BL56KTLD.js → arrow-left-CagvtJU8.js} +1 -1
  34. package/dist/web/assets/{arrow-right-BV-uA_nA.js → arrow-right-CW797wzk.js} +1 -1
  35. package/dist/web/assets/blockDiagram-677ZJIJ3-BOLqwY0y.js +1 -0
  36. package/dist/web/assets/c4Diagram-LMCZKHZV-BvwC7DIr.js +1 -0
  37. package/dist/web/assets/channel-DpGkajT1.js +1 -0
  38. package/dist/web/assets/chevron-up-DfL2d5fV.js +1 -0
  39. package/dist/web/assets/{chunk-2Q5K7J3B-C8JBUKrX.js → chunk-2Q5K7J3B-D2B_BdaG.js} +1 -1
  40. package/dist/web/assets/{chunk-32BRIVSS-DCe9Y9ii.js → chunk-32BRIVSS-B93XkYif.js} +1 -1
  41. package/dist/web/assets/{chunk-5VM5RSS4-CJ5XB5TH.js → chunk-5VM5RSS4-Uv1D4oA2.js} +1 -1
  42. package/dist/web/assets/{chunk-EX3LRPZG-DbBMJLot.js → chunk-EX3LRPZG-xZrFFOcj.js} +1 -1
  43. package/dist/web/assets/{chunk-JWPE2WC7-BHVdLkDM.js → chunk-JWPE2WC7-1--FpPFR.js} +1 -1
  44. package/dist/web/assets/{chunk-MOJQB5TN-uHzAp-k5.js → chunk-MOJQB5TN-BLOL5fhw.js} +1 -1
  45. package/dist/web/assets/{chunk-RYQCIY6F-Cn6aFViK.js → chunk-RYQCIY6F-z7wmcSRp.js} +1 -1
  46. package/dist/web/assets/{chunk-V7JOEXUC-DxPwkXTU.js → chunk-V7JOEXUC-DPvobQwd.js} +1 -1
  47. package/dist/web/assets/{chunk-VR4S4FIN-O5Mrjsjy.js → chunk-VR4S4FIN-DD3Gj91z.js} +1 -1
  48. package/dist/web/assets/{chunk-XXDRQBXY-0mC3mDJF.js → chunk-XXDRQBXY-DoVRk31D.js} +1 -1
  49. package/dist/web/assets/classDiagram-OUVF2IWQ-oZMIKKng.js +1 -0
  50. package/dist/web/assets/classDiagram-v2-EOCWNBFH-oZMIKKng.js +1 -0
  51. package/dist/web/assets/clsx-DoZLeicy.js +1 -0
  52. package/dist/web/assets/collectMessageImages-B2EAkrhU.js +1 -0
  53. package/dist/web/assets/cose-bilkent-JH36ORCC-BQknAy25.js +1 -0
  54. package/dist/web/assets/{cynefin-VYW2F7L2-CO9lWPZn.js → cynefin-VYW2F7L2-09uNSfvT.js} +1 -1
  55. package/dist/web/assets/cynefinDiagram-TSTJHNR4-CgKhj0m5.js +1 -0
  56. package/dist/web/assets/dagre-VKFMJZFB-CLCxvrOo.js +1 -0
  57. package/dist/web/assets/diagram-FQU43EPY-B4VfNgsF.js +1 -0
  58. package/dist/web/assets/diagram-G47NLZAW-CQC0I6zX.js +1 -0
  59. package/dist/web/assets/diagram-NH7WQ7WH-CSBbTiMh.js +1 -0
  60. package/dist/web/assets/diagram-OA4YK3LP-CkUx0v34.js +1 -0
  61. package/dist/web/assets/diagram-WEI45ONY-dlEY_W2R.js +1 -0
  62. package/dist/web/assets/ebnfDiagram-CCIWWBDH-BsxdwE2E.js +1 -0
  63. package/dist/web/assets/erDiagram-Q63AITRT-CE8BUsrY.js +1 -0
  64. package/dist/web/assets/{file-editor-FileCodeEditor-CkMO-zP9.js → file-editor-FileCodeEditor-HR6Wsm5I.js} +1 -1
  65. package/dist/web/assets/{file-editor-ObsidianCodeEditor-Ct5ku7x2.js → file-editor-ObsidianCodeEditor-BMcU5Aqo.js} +6 -6
  66. package/dist/web/assets/file-editor-ObsidianFileEditor-BuzsfQwA.js +2 -0
  67. package/dist/web/assets/{flowDiagram-23GEKE2U-DfTXu8Tf.js → flowDiagram-23GEKE2U-DUiI830l.js} +1 -1
  68. package/dist/web/assets/{folder-plus-DeXueDPL.js → folder-plus-Byi2WQUY.js} +1 -1
  69. package/dist/web/assets/ganttDiagram-NO4QXBWP-x0WR7K4r.js +1 -0
  70. package/dist/web/assets/gitGraphDiagram-IHSO6WYX-BJA7zQjW.js +1 -0
  71. package/dist/web/assets/highlighted-body-TPN3WLV5-lW0JmP5H.js +1 -0
  72. package/dist/web/assets/index-1M7_HtDu.js +1 -0
  73. package/dist/web/assets/index-76-ZfKAK.css +1 -0
  74. package/dist/web/assets/index-8TM1eFHE.js +1 -0
  75. package/dist/web/assets/index-S4bzeLfy.js +1 -0
  76. package/dist/web/assets/{index-BaK7b1aP.js → index-c9Eb0rEZ.js} +2 -2
  77. package/dist/web/assets/infoDiagram-FWYZ7A6U-BfA2fWjL.js +1 -0
  78. package/dist/web/assets/ishikawaDiagram-FXEZZL3T-B7WW0j7E.js +1 -0
  79. package/dist/web/assets/journeyDiagram-5HDEW3XC-BEMtGLhR.js +1 -0
  80. package/dist/web/assets/kanban-definition-HUTT4EX6-DqIkrGPA.js +1 -0
  81. package/dist/web/assets/{key-round-DRT2ZbDR.js → key-round-y1oxWXOB.js} +1 -1
  82. package/dist/web/assets/{layout-CmMX872C.js → layout-CAp4KseL.js} +1 -1
  83. package/dist/web/assets/{linear-Bv80xPYH.js → linear-DRFQGBEA.js} +1 -1
  84. package/dist/web/assets/logo-iv8HSlJj.webp +0 -0
  85. package/dist/web/assets/{map-Dwt0FgOz.js → map-XtUTTYLw.js} +1 -1
  86. package/dist/web/assets/mermaid-O7DHMXV3-9HC6mORt.js +2 -0
  87. package/dist/web/assets/{mermaid.core-CzqhAinL.js → mermaid.core-LEKKQwXZ.js} +2 -2
  88. package/dist/web/assets/{mic-DhJeizK9.js → mic-BOKcmdUn.js} +1 -1
  89. package/dist/web/assets/mindmap-definition-LN4V7U3C-Bt6LtGWO.js +1 -0
  90. package/dist/web/assets/pegDiagram-2B236MQR-DVdodUA1.js +1 -0
  91. package/dist/web/assets/pieDiagram-ENE6RG2P-CeQnXIl7.js +1 -0
  92. package/dist/web/assets/quadrantDiagram-ABIIQ3AL-DNGl4Hse.js +1 -0
  93. package/dist/web/assets/railroadDiagram-RFXS5EU6-BiFr0x3V.js +1 -0
  94. package/dist/web/assets/requirementDiagram-TGXJPOKE-DIx4dpS7.js +1 -0
  95. package/dist/web/assets/sankeyDiagram-HTMAVEWB-D_zRhmQ_.js +1 -0
  96. package/dist/web/assets/sequenceDiagram-DBY2YBRQ-ChMRMmPd.js +1 -0
  97. package/dist/web/assets/{shield-check-CwbnsnOe.js → shield-check-DM9poYLJ.js} +1 -1
  98. package/dist/web/assets/sizeCapture-X5ZJPWSS-CLVxFMDT.js +1 -0
  99. package/dist/web/assets/square-K9kFBDil.js +1 -0
  100. package/dist/web/assets/stateDiagram-2N3HPSRC-Dn7yCHtf.js +1 -0
  101. package/dist/web/assets/stateDiagram-v2-6OUMAXLB-DkgnQPrP.js +1 -0
  102. package/dist/web/assets/swimlanes-5IMT3BWC-Dhut6RY-.js +2 -0
  103. package/dist/web/assets/swimlanesDiagram-G3AALYLV-D62G5R34.js +1 -0
  104. package/dist/web/assets/timeline-definition-FHXFAJF6-D_9aY3SL.js +1 -0
  105. package/dist/web/assets/useComposerCompletion-DcHhaHlX.js +1 -0
  106. package/dist/web/assets/vennDiagram-L72KCM5P-Bxsjs1td.js +1 -0
  107. package/dist/web/assets/wardleyDiagram-EHGQE667-B8vO0orG.js +1 -0
  108. package/dist/web/assets/xychartDiagram-FW5EYKEG-CUBLdGVB.js +1 -0
  109. package/dist/web/assets/{zap-CJH1FjCl.js → zap-4rbaTb6R.js} +1 -1
  110. package/dist/web/index.html +2 -2
  111. package/dist/web/obsidian-editor-assets.json +1 -1
  112. package/package.json +7 -7
  113. package/dist/web/assets/App-BvW36-4M.js +0 -2
  114. package/dist/web/assets/App-DAtZu22A.css +0 -97
  115. package/dist/web/assets/BrowserControlPanel-DmDwrRxu.js +0 -1
  116. package/dist/web/assets/ChatPane-RyWUI1bq.js +0 -2
  117. package/dist/web/assets/ComposerMenus-D1uWPFXr.js +0 -1
  118. package/dist/web/assets/DiffDrawer-BEGVqU1n.js +0 -1
  119. package/dist/web/assets/FilesControlPanel-BXXKMrYD.js +0 -1
  120. package/dist/web/assets/FilesControlPanel-DeLKfCiq.css +0 -1
  121. package/dist/web/assets/ImageViewer-dOitFny1.js +0 -1
  122. package/dist/web/assets/MessageImage-BtpNPUOG.js +0 -1
  123. package/dist/web/assets/MessageImage-XcPrPLDn.css +0 -1
  124. package/dist/web/assets/NewSessionDialog-DgmnoXsk.js +0 -1
  125. package/dist/web/assets/RemoteLifeOSBlock-gBVCJ1KA.js +0 -2
  126. package/dist/web/assets/_baseMerge-DBQbsGvS.js +0 -1
  127. package/dist/web/assets/abnfDiagram-VRR7QNED-DmwaYNlH.js +0 -1
  128. package/dist/web/assets/arc-j_Wwjf6k.js +0 -1
  129. package/dist/web/assets/architectureDiagram-ZJ3FMSHR-glqGay8y.js +0 -1
  130. package/dist/web/assets/blockDiagram-677ZJIJ3-B8c7J04C.js +0 -1
  131. package/dist/web/assets/c4Diagram-LMCZKHZV-CG3zztsH.js +0 -1
  132. package/dist/web/assets/channel-DgblqPfw.js +0 -1
  133. package/dist/web/assets/chevron-up-CvywgAdp.js +0 -1
  134. package/dist/web/assets/classDiagram-OUVF2IWQ-bsBy4PcE.js +0 -1
  135. package/dist/web/assets/classDiagram-v2-EOCWNBFH-bsBy4PcE.js +0 -1
  136. package/dist/web/assets/collectMessageImages-BjN-Gevg.js +0 -1
  137. package/dist/web/assets/cose-bilkent-JH36ORCC-BgHa3fCS.js +0 -1
  138. package/dist/web/assets/cynefinDiagram-TSTJHNR4-0Z9seUPF.js +0 -1
  139. package/dist/web/assets/dagre-VKFMJZFB-BTOqPL06.js +0 -1
  140. package/dist/web/assets/diagram-FQU43EPY-BPXD1X4G.js +0 -1
  141. package/dist/web/assets/diagram-G47NLZAW-DKhfIaJX.js +0 -1
  142. package/dist/web/assets/diagram-NH7WQ7WH-TJq_qxyk.js +0 -1
  143. package/dist/web/assets/diagram-OA4YK3LP-DTkDt5xm.js +0 -1
  144. package/dist/web/assets/diagram-WEI45ONY-CPTKbbj_.js +0 -1
  145. package/dist/web/assets/ebnfDiagram-CCIWWBDH-6j_AlAL7.js +0 -1
  146. package/dist/web/assets/erDiagram-Q63AITRT-CF7E_ZqO.js +0 -1
  147. package/dist/web/assets/file-editor-ObsidianFileEditor-aYLrufoa.js +0 -2
  148. package/dist/web/assets/ganttDiagram-NO4QXBWP-CrYbCAop.js +0 -1
  149. package/dist/web/assets/gitGraphDiagram-IHSO6WYX-DckwoanW.js +0 -1
  150. package/dist/web/assets/highlighted-body-TPN3WLV5-CxmpyVYz.js +0 -1
  151. package/dist/web/assets/imageViewerCopy-S5HtozB3.js +0 -1
  152. package/dist/web/assets/index-BNl2LlC5.js +0 -1
  153. package/dist/web/assets/index-C_vQZvvM.js +0 -1
  154. package/dist/web/assets/index-CjLh4QgJ.js +0 -1
  155. package/dist/web/assets/index-FQXZYOsr.js +0 -1
  156. package/dist/web/assets/index-xAMW1ul2.css +0 -1
  157. package/dist/web/assets/infoDiagram-FWYZ7A6U-DFF0Gmic.js +0 -1
  158. package/dist/web/assets/ishikawaDiagram-FXEZZL3T-Cv-VE1wB.js +0 -1
  159. package/dist/web/assets/journeyDiagram-5HDEW3XC-ByLfT2Us.js +0 -1
  160. package/dist/web/assets/kanban-definition-HUTT4EX6-DHBZws3R.js +0 -1
  161. package/dist/web/assets/logo-Caf1Fn81.webp +0 -0
  162. package/dist/web/assets/mermaid-O7DHMXV3-B4_lK8p1.js +0 -2
  163. package/dist/web/assets/mindmap-definition-LN4V7U3C-Bnyri0I2.js +0 -1
  164. package/dist/web/assets/pegDiagram-2B236MQR-6X6OAtrD.js +0 -1
  165. package/dist/web/assets/pieDiagram-ENE6RG2P-DdtY7NGx.js +0 -1
  166. package/dist/web/assets/quadrantDiagram-ABIIQ3AL-BDqHj-TT.js +0 -1
  167. package/dist/web/assets/railroadDiagram-RFXS5EU6-B5lI016a.js +0 -1
  168. package/dist/web/assets/requirementDiagram-TGXJPOKE-DsEgsQJj.js +0 -1
  169. package/dist/web/assets/sankeyDiagram-HTMAVEWB-C0ypjxpz.js +0 -1
  170. package/dist/web/assets/sequenceDiagram-DBY2YBRQ-CMshcz69.js +0 -1
  171. package/dist/web/assets/sizeCapture-X5ZJPWSS-Db9dkTnd.js +0 -1
  172. package/dist/web/assets/stateDiagram-2N3HPSRC-C6srGQcS.js +0 -1
  173. package/dist/web/assets/stateDiagram-v2-6OUMAXLB-BubiXOGD.js +0 -1
  174. package/dist/web/assets/swimlanes-5IMT3BWC-B1YoJvr3.js +0 -2
  175. package/dist/web/assets/swimlanesDiagram-G3AALYLV-B02Fdgr_.js +0 -1
  176. package/dist/web/assets/timeline-definition-FHXFAJF6-CRG13zHS.js +0 -1
  177. package/dist/web/assets/useComposerCompletion-DmtYYaK9.js +0 -1
  178. package/dist/web/assets/useMessageImage-D-dQN21J.js +0 -1
  179. package/dist/web/assets/vennDiagram-L72KCM5P-BN5Bx-tU.js +0 -1
  180. package/dist/web/assets/wardleyDiagram-EHGQE667-C2kiCoYR.js +0 -1
  181. package/dist/web/assets/xychartDiagram-FW5EYKEG-CVzHNjnj.js +0 -1
@@ -1 +0,0 @@
1
- import{bf as t,bg as e,bh as n,bi as r,bj as i,bk as s,bl as a,_ as o,g as c,s as u,p as l,o as d,a as h,b as f,c as g,d as m,e as y,l as k,k as p,j as T,q as v,y as x}from"./mermaid.core-CzqhAinL.js";import{d as b}from"./RemoteLifeOSBlock-gBVCJ1KA.js";import{g as w}from"./index-C_vQZvvM.js";import{b as D,t as M,c as C,a as $,l as _}from"./linear-Bv80xPYH.js";import{i as S}from"./init-C0SZ43gy.js";import"./index-BaK7b1aP.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";import"./index-FQXZYOsr.js";import"./file-editor-CodeHighlight-aQ9kP3Wv.js";import"./App-BvW36-4M.js";import"./chevron-up-CvywgAdp.js";import"./__vite-browser-external-2447137e-D97de6th.js";import"./defaultLocale-Z7o9ZNZF.js";function Y(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function F(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function A(t){return t}var L=1e-6;function U(t){return"translate("+t+",0)"}function E(t){return"translate(0,"+t+")"}function O(t){return e=>+t(e)}function I(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function H(){return!this.__axis}function W(t,e){var n=[],r=null,i=null,s=6,a=6,o=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",d=1===t||3===t?U:E;function h(h){var f=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):A),m=Math.max(s,0)+o,y=e.range(),k=+y[0]+c,p=+y[y.length-1]+c,T=(e.bandwidth?I:O)(e.copy(),c),v=h.selection?h.selection():h,x=v.selectAll(".domain").data([null]),b=v.selectAll(".tick").data(f,e).order(),w=b.exit(),D=b.enter().append("g").attr("class","tick"),M=b.select("line"),C=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),b=b.merge(D),M=M.merge(D.append("line").attr("stroke","currentColor").attr(l+"2",u*s)),C=C.merge(D.append("text").attr("fill","currentColor").attr(l,u*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==v&&(x=x.transition(h),b=b.transition(h),M=M.transition(h),C=C.transition(h),w=w.transition(h).attr("opacity",L).attr("transform",function(t){return isFinite(t=T(t))?d(t+c):this.getAttribute("transform")}),D.attr("opacity",L).attr("transform",function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:T(t))+c)})),w.remove(),x.attr("d",4===t||2===t?a?"M"+u*a+","+k+"H"+c+"V"+p+"H"+u*a:"M"+c+","+k+"V"+p:a?"M"+k+","+u*a+"V"+c+"H"+p+"V"+u*a:"M"+k+","+c+"H"+p),b.attr("opacity",1).attr("transform",function(t){return d(T(t)+c)}),M.attr(l+"2",u*s),C.attr(l,u*m).text(g),v.filter(H).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),v.each(function(){this.__axis=T})}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(s=a=+t,h):s},h.tickSizeInner=function(t){return arguments.length?(s=+t,h):s},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}const P=Math.PI/180,N=180/Math.PI,j=.96422,z=.82521,B=4/29,R=6/29,V=3*R*R,Z=R*R*R;function G(n){if(n instanceof q)return new q(n.l,n.a,n.b,n.opacity);if(n instanceof et)return nt(n);n instanceof t||(n=e(n));var r,i,s=K(n.r),a=K(n.g),o=K(n.b),c=Q((.2225045*s+.7168786*a+.0606169*o)/1);return s===a&&a===o?r=i=c:(r=Q((.4360747*s+.3850649*a+.1430804*o)/j),i=Q((.0139322*s+.0971045*a+.7141733*o)/z)),new q(116*c-16,500*(r-c),200*(c-i),n.opacity)}function q(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Q(t){return t>Z?Math.pow(t,1/3):t/V+B}function X(t){return t>R?t*t*t:V*(t-B)}function J(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function K(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function tt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof et)return new et(t.h,t.c,t.l,t.opacity);if(t instanceof q||(t=G(t)),0===t.a&&0===t.b)return new et(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*N;return new et(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new et(t,e,n,r??1)}function et(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function nt(t){if(isNaN(t.h))return new q(t.l,0,0,t.opacity);var e=t.h*P;return new q(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}n(q,function(t,e,n,r){return 1===arguments.length?G(t):new q(t,e,n,r??1)},r(i,{brighter(t){return new q(this.l+18*(t??1),this.a,this.b,this.opacity)},darker(t){return new q(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,n=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return n=j*X(n),e=1*X(e),r=z*X(r),new t(J(3.1338561*n-1.6168667*e-.4906146*r),J(-.9787684*n+1.9161415*e+.033454*r),J(.0719453*n-.2289914*e+1.4052427*r),this.opacity)}})),n(et,tt,r(i,{brighter(t){return new et(this.h,this.c,this.l+18*(t??1),this.opacity)},darker(t){return new et(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb(){return nt(this).rgb()}}));const rt=function(t){return function(e,n){var r=t((e=tt(e)).h,(n=tt(n)).h),i=s(e.c,n.c),a=s(e.l,n.l),o=s(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}(a),it=new Date,st=new Date;function at(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,s)=>{const a=[];if(n=i.ceil(n),s=null==s?1:Math.floor(s),!(n<r&&s>0))return a;let o;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<r);return a},i.filter=n=>at(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}),n&&(i.count=(e,r)=>(it.setTime(+e),st.setTime(+r),t(it),t(st),Math.floor(n(it,st))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t===0:e=>i.count(0,e)%t===0):i:null)),i}const ot=at(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ot.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?at(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):ot:null),ot.range;const ct=1e3,ut=6e4,lt=36e5,dt=864e5,ht=6048e5,ft=31536e6,gt=at(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCSeconds());gt.range;const mt=at(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ct)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getMinutes());mt.range,at(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCMinutes()).range;const yt=at(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ct-t.getMinutes()*ut)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getHours());yt.range,at(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCHours()).range;const kt=at(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ut)/dt,t=>t.getDate()-1);kt.range;const pt=at(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);function Tt(t){return at(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ut)/ht)}pt.range,at(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt)).range;const vt=Tt(0),xt=Tt(1),bt=Tt(2),wt=Tt(3),Dt=Tt(4),Mt=Tt(5),Ct=Tt(6);function $t(t){return at(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/ht)}vt.range,xt.range,bt.range,wt.range,Dt.range,Mt.range,Ct.range;const _t=$t(0),St=$t(1),Yt=$t(2),Ft=$t(3),At=$t(4),Lt=$t(5),Ut=$t(6);_t.range,St.range,Yt.range,Ft.range,At.range,Lt.range,Ut.range;const Et=at(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth());Et.range,at(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()).range;const Ot=at(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Ot.every=t=>isFinite(t=Math.floor(t))&&t>0?at(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,Ot.range;const It=at(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());It.every=t=>isFinite(t=Math.floor(t))&&t>0?at(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,It.range;const[Ht,Wt]=function(t){const e=[[gt,1,ct],[gt,5,5e3],[gt,15,15e3],[gt,30,3e4],[mt,1,ut],[mt,5,3e5],[mt,15,9e5],[mt,30,18e5],[yt,1,lt],[yt,3,108e5],[yt,6,216e5],[yt,12,432e5],[kt,1,dt],[kt,2,1728e5],[vt,1,ht],[Et,1,2592e6],[Et,3,7776e6],[t,1,ft]];function n(n,r,i){const s=Math.abs(r-n)/i,a=D(([,,t])=>t).right(e,s);if(a===e.length)return t.every(M(n/ft,r/ft,i));if(0===a)return ot.every(Math.max(M(n,r,i),1));const[o,c]=e[s/e[a-1][2]<e[a][2]/s?a-1:a];return o.every(c)}return[function(t,e,r){const i=e<t;i&&([t,e]=[e,t]);const s=r&&"function"==typeof r.range?r:n(t,e,r),a=s?s.range(t,+e+1):[];return i?a.reverse():a},n]}(Ot);function Pt(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Nt(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function jt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var zt,Bt,Rt={"-":"",_:" ",0:"0"},Vt=/^\s*\d+/,Zt=/^%/,Gt=/[\\^$*+?|[\]().{}]/g;function qt(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function Qt(t){return t.replace(Gt,"\\$&")}function Xt(t){return new RegExp("^(?:"+t.map(Qt).join("|")+")","i")}function Jt(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function Kt(t,e,n){var r=Vt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function te(t,e,n){var r=Vt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ee(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ne(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function re(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ie(t,e,n){var r=Vt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function se(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ae(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function oe(t,e,n){var r=Vt.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ce(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ue(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function le(t,e,n){var r=Vt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function de(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function he(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function fe(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ge(t,e,n){var r=Vt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function me(t,e,n){var r=Vt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ye(t,e,n){var r=Zt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function ke(t,e,n){var r=Vt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function pe(t,e,n){var r=Vt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Te(t,e){return qt(t.getDate(),e,2)}function ve(t,e){return qt(t.getHours(),e,2)}function xe(t,e){return qt(t.getHours()%12||12,e,2)}function be(t,e){return qt(1+kt.count(Ot(t),t),e,3)}function we(t,e){return qt(t.getMilliseconds(),e,3)}function De(t,e){return we(t,e)+"000"}function Me(t,e){return qt(t.getMonth()+1,e,2)}function Ce(t,e){return qt(t.getMinutes(),e,2)}function $e(t,e){return qt(t.getSeconds(),e,2)}function _e(t){var e=t.getDay();return 0===e?7:e}function Se(t,e){return qt(vt.count(Ot(t)-1,t),e,2)}function Ye(t){var e=t.getDay();return e>=4||0===e?Dt(t):Dt.ceil(t)}function Fe(t,e){return t=Ye(t),qt(Dt.count(Ot(t),t)+(4===Ot(t).getDay()),e,2)}function Ae(t){return t.getDay()}function Le(t,e){return qt(xt.count(Ot(t)-1,t),e,2)}function Ue(t,e){return qt(t.getFullYear()%100,e,2)}function Ee(t,e){return qt((t=Ye(t)).getFullYear()%100,e,2)}function Oe(t,e){return qt(t.getFullYear()%1e4,e,4)}function Ie(t,e){var n=t.getDay();return qt((t=n>=4||0===n?Dt(t):Dt.ceil(t)).getFullYear()%1e4,e,4)}function He(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+qt(e/60|0,"0",2)+qt(e%60,"0",2)}function We(t,e){return qt(t.getUTCDate(),e,2)}function Pe(t,e){return qt(t.getUTCHours(),e,2)}function Ne(t,e){return qt(t.getUTCHours()%12||12,e,2)}function je(t,e){return qt(1+pt.count(It(t),t),e,3)}function ze(t,e){return qt(t.getUTCMilliseconds(),e,3)}function Be(t,e){return ze(t,e)+"000"}function Re(t,e){return qt(t.getUTCMonth()+1,e,2)}function Ve(t,e){return qt(t.getUTCMinutes(),e,2)}function Ze(t,e){return qt(t.getUTCSeconds(),e,2)}function Ge(t){var e=t.getUTCDay();return 0===e?7:e}function qe(t,e){return qt(_t.count(It(t)-1,t),e,2)}function Qe(t){var e=t.getUTCDay();return e>=4||0===e?At(t):At.ceil(t)}function Xe(t,e){return t=Qe(t),qt(At.count(It(t),t)+(4===It(t).getUTCDay()),e,2)}function Je(t){return t.getUTCDay()}function Ke(t,e){return qt(St.count(It(t)-1,t),e,2)}function tn(t,e){return qt(t.getUTCFullYear()%100,e,2)}function en(t,e){return qt((t=Qe(t)).getUTCFullYear()%100,e,2)}function nn(t,e){return qt(t.getUTCFullYear()%1e4,e,4)}function rn(t,e){var n=t.getUTCDay();return qt((t=n>=4||0===n?At(t):At.ceil(t)).getUTCFullYear()%1e4,e,4)}function sn(){return"+0000"}function an(){return"%"}function on(t){return+t}function cn(t){return Math.floor(+t/1e3)}function un(t){return new Date(t)}function ln(t){return t instanceof Date?+t:+new Date(+t)}function dn(t,e,n,r,i,s,a,o,c,u){var l=C(),d=l.invert,h=l.domain,f=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),k=u("%a %d"),p=u("%b %d"),T=u("%B"),v=u("%Y");function x(t){return(c(t)<t?f:o(t)<t?g:a(t)<t?m:s(t)<t?y:r(t)<t?i(t)<t?k:p:n(t)<t?T:v)(t)}return l.invert=function(t){return new Date(d(t))},l.domain=function(t){return arguments.length?h(Array.from(t,ln)):h().map(un)},l.ticks=function(e){var n=h();return t(n[0],n[n.length-1],e??10)},l.tickFormat=function(t,e){return null==e?x:u(e)},l.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],t??10)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,s=t[r],a=t[i];return a<s&&(n=r,r=i,i=n,n=s,s=a,a=n),t[r]=e.floor(s),t[i]=e.ceil(a),t}(n,t)):l},l.copy=function(){return $(l,dn(t,e,n,r,i,s,a,o,c,u))},l}function hn(){return S.apply(dn(Ht,Wt,Ot,Et,vt,kt,yt,mt,gt,Bt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}zt=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,o=t.months,c=t.shortMonths,u=Xt(i),l=Jt(i),d=Xt(s),h=Jt(s),f=Xt(a),g=Jt(a),m=Xt(o),y=Jt(o),k=Xt(c),p=Jt(c),T={a:function(t){return a[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:Te,e:Te,f:De,g:Ee,G:Ie,H:ve,I:xe,j:be,L:we,m:Me,M:Ce,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:on,s:cn,S:$e,u:_e,U:Se,V:Fe,w:Ae,W:Le,x:null,X:null,y:Ue,Y:Oe,Z:He,"%":an},v={a:function(t){return a[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:We,e:We,f:Be,g:en,G:rn,H:Pe,I:Ne,j:je,L:ze,m:Re,M:Ve,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:on,s:cn,S:Ze,u:Ge,U:qe,V:Xe,w:Je,W:Ke,x:null,X:null,y:tn,Y:nn,Z:sn,"%":an},x={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=k.exec(e.slice(n));return r?(t.m=p.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return D(t,e,n,r)},d:ue,e:ue,f:me,g:se,G:ie,H:de,I:de,j:le,L:ge,m:ce,M:he,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:oe,Q:ke,s:pe,S:fe,u:te,U:ee,V:ne,w:Kt,W:re,x:function(t,e,r){return D(t,n,e,r)},X:function(t,e,n){return D(t,r,e,n)},y:se,Y:ie,Z:ae,"%":ye};function b(t,e){return function(n){var r,i,s,a=[],o=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++o<u;)37===t.charCodeAt(o)&&(a.push(t.slice(c,o)),null!=(i=Rt[r=t.charAt(++o)])?r=t.charAt(++o):i="e"===r?" ":"0",(s=e[r])&&(r=s(n,i)),a.push(r),c=o+1);return a.push(t.slice(c,o)),a.join("")}}function w(t,e){return function(n){var r,i,s=jt(1900,void 0,1);if(D(s,t,n+="",0)!=n.length)return null;if("Q"in s)return new Date(s.Q);if("s"in s)return new Date(1e3*s.s+("L"in s?s.L:0));if(e&&!("Z"in s)&&(s.Z=0),"p"in s&&(s.H=s.H%12+12*s.p),void 0===s.m&&(s.m="q"in s?s.q:0),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(i=(r=Nt(jt(s.y,0,1))).getUTCDay(),r=i>4||0===i?St.ceil(r):St(r),r=pt.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(i=(r=Pt(jt(s.y,0,1))).getDay(),r=i>4||0===i?xt.ceil(r):xt(r),r=kt.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),i="Z"in s?Nt(jt(s.y,0,1)).getUTCDay():Pt(jt(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(i+5)%7:s.w+7*s.U-(i+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,Nt(s)):Pt(s)}}function D(t,e,n,r){for(var i,s,a=0,o=e.length,c=n.length;a<o;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(s=x[i in Rt?e.charAt(a++):i])||(r=s(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return T.x=b(n,T),T.X=b(r,T),T.c=b(e,T),v.x=b(n,v),v.X=b(r,v),v.c=b(e,v),{format:function(t){var e=b(t+="",T);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=b(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Bt=zt.format,zt.parse,zt.utcFormat,zt.utcParse;var fn,gn={exports:{}};const mn=w(fn?gn.exports:(fn=1,gn.exports=function(){var t="day";return function(e,n,r){var i=function(e){return e.add(4-e.isoWeekday(),t)},s=n.prototype;s.isoWeekYear=function(){return i(this).year()},s.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var n,s,a,o=i(this),c=(n=this.isoWeekYear(),a=4-(s=(this.$u?r.utc:r)().year(n).startOf("year")).isoWeekday(),s.isoWeekday()>4&&(a+=7),s.add(a,t));return o.diff(c,"week")+1},s.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var a=s.startOf;s.startOf=function(t,e){var n=this.$utils(),r=!!n.u(e)||e;return"isoweek"===n.p(t)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(t,e)}}}()));var yn,kn={exports:{}};const pn=w(yn?kn.exports:(yn=1,kn.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t=+t)+(t>68?1900:2e3)},c=function(t){return function(e){this[t]=+e}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],l=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},d=function(t,e){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[s,function(t){this.afternoon=d(t,!1)}],a:[s,function(t){this.afternoon=d(t,!0)}],Q:[n,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[r,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[r,c("day")],Do:[s,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[i,c("week")],ww:[r,c("week")],M:[i,c("month")],MM:[r,c("month")],MMM:[s,function(t){var e=l("months"),n=(l("monthsShort")||e.map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=l("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(t){this.year=o(t)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};return function(n,r,i){i.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(o=n.parseTwoDigitYear);var s=r.prototype,c=s.parse;s.parse=function(n){var r=n.date,s=n.utc,o=n.args;this.$u=s;var u=o[1];if("string"==typeof u){var l=!0===o[2],d=!0===o[3],f=l||d,g=o[2];d&&(g=o[2]),a=this.$locale(),!l&&g&&(a=i.Ls[g]),this.$d=function(n,r,i,s){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var o=function(n){var r,i;r=n,i=a&&a.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,r){var s=r&&r.toUpperCase();return n||i[r]||t[r]||i[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})})).match(e),o=s.length,c=0;c<o;c+=1){var u=s[c],l=h[u],d=l&&l[0],f=l&&l[1];s[c]=f?{regex:d,parser:f}:u.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,r=0;n<o;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,c=i.parser,u=t.slice(r),l=a.exec(u)[0];c.call(e,l),t=t.replace(l,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}(r)(n),c=o.year,u=o.month,l=o.day,d=o.hours,f=o.minutes,g=o.seconds,m=o.milliseconds,y=o.zone,k=o.week,p=new Date,T=l||(c||u?1:p.getDate()),v=c||p.getFullYear(),x=0;c&&!u||(x=u>0?u-1:p.getMonth());var b,w=d||0,D=f||0,M=g||0,C=m||0;return y?new Date(Date.UTC(v,x,T,w,D,M,C+60*y.offset*1e3)):i?new Date(Date.UTC(v,x,T,w,D,M,C)):(b=new Date(v,x,T,w,D,M,C),k&&(b=s(b).week(k).toDate()),b)}catch($){return new Date("")}}(r,u,s,i),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),f&&r!=this.format(u)&&(this.$d=new Date("")),a={}}else if(u instanceof Array)for(var m=u.length,y=1;y<=m;y+=1){o[1]=u[y-1];var k=i.apply(this,o);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}y===m&&(this.$d=new Date(""))}else c.call(this,n)}}}()));var Tn,vn={exports:{}};const xn=w(Tn?vn.exports:(Tn=1,vn.exports=function(t,e){var n=e.prototype,r=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return r.bind(this)(t);var i=this.$utils(),s=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return i.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return i.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return i.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}});return r.bind(this)(s)}}));var bn,wn={exports:{}};const Dn=w(bn?wn.exports:(bn=1,wn.exports=function(){var t,e,n=1e3,r=6e4,i=36e5,s=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,o=31536e6,c=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:o,months:c,days:s,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(t){return t instanceof p},h=function(t,e,n){return new p(t,n,e.$l)},f=function(t){return e.p(t)+"s"},g=function(t){return t<0},m=function(t){return g(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},k=function(t,e){return t?g(t)?{negative:!0,format:""+y(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},p=function(){function g(t,e,n){var r=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*l[f(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){r.$d[f(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var i=t.match(u);if(i){var s=i.slice(2).map(function(t){return null!=t?Number(t):0});return this.$d.years=s[0],this.$d.months=s[1],this.$d.weeks=s[2],this.$d.days=s[3],this.$d.hours=s[4],this.$d.minutes=s[5],this.$d.seconds=s[6],this.calMilliseconds(),this}}return this}var y=g.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,n){return e+(t.$d[n]||0)*l[n]},0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=m(t/o),t%=o,this.$d.months=m(t/c),t%=c,this.$d.days=m(t/s),t%=s,this.$d.hours=m(t/i),t%=i,this.$d.minutes=m(t/r),t%=r,this.$d.seconds=m(t/n),t%=n,this.$d.milliseconds=t},y.toISOString=function(){var t=k(this.$d.years,"Y"),e=k(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=k(n,"D"),i=k(this.$d.hours,"H"),s=k(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var o=k(a,"S"),c=t.negative||e.negative||r.negative||i.negative||s.negative||o.negative,u=i.format||s.format||o.format?"T":"",l=(c?"-":"")+"P"+t.format+e.format+r.format+u+i.format+s.format+o.format;return"P"===l||"-P"===l?"P0D":l},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(a,function(t,e){return e||String(r[t])})},y.as=function(t){return this.$ms/l[f(t)]},y.get=function(t){var e=this.$ms,n=f(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?m(e/l[n]):this.$d[n],e||0},y.add=function(t,e,n){var r;return r=e?t*l[f(e)]:d(t)?t.$ms:h(t,this).$ms,h(this.$ms+r*(n?-1:1),this)},y.subtract=function(t,e){return this.add(t,e,!0)},y.locale=function(t){var e=this.clone();return e.$l=t,e},y.clone=function(){return h(this.$ms,this)},y.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},g}(),T=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")};return function(n,r,i){t=i,e=i().$utils(),i.duration=function(t,e){var n=i.locale();return h(t,{$l:n},e)},i.isDuration=d;var s=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(t,e){return d(t)?T(this,t,1):s.bind(this)(t,e)},r.prototype.subtract=function(t,e){return d(t)?T(this,t,-1):a.bind(this)(t,e)}}}()));var Mn=function(){var t=o(function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],a=[1,30],c=[1,31],u=[1,32],l=[1,33],d=[1,34],h=[1,9],f=[1,10],g=[1,11],m=[1,12],y=[1,13],k=[1,14],p=[1,15],T=[1,16],v=[1,19],x=[1,20],b=[1,21],w=[1,22],D=[1,23],M=[1,25],C=[1,35],$={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:o(function(t,e,n,r,i,s,a){var o=s.length-1;switch(i){case 1:return s[o-1];case 2:case 6:case 7:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=s[o].substr(18);break;case 19:r.TopAxis(),this.$=s[o].substr(8);break;case 20:r.setAxisFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 21:r.setTickInterval(s[o].substr(13)),this.$=s[o].substr(13);break;case 22:r.setExcludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 23:r.setIncludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 24:r.setTodayMarker(s[o].substr(12)),this.$=s[o].substr(12);break;case 27:r.setDiagramTitle(s[o].substr(6)),this.$=s[o].substr(6);break;case 28:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 33:r.addTask(s[o-1],s[o]),this.$="task";break;case 34:this.$=s[o-1],r.setClickEvent(s[o-1],s[o],null);break;case 35:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],s[o]);break;case 36:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],null),r.setLink(s[o-2],s[o]);break;case 37:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-2],s[o-1]),r.setLink(s[o-3],s[o]);break;case 38:this.$=s[o-2],r.setClickEvent(s[o-2],s[o],null),r.setLink(s[o-2],s[o-1]);break;case 39:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-1],s[o]),r.setLink(s[o-3],s[o-2]);break;case 40:this.$=s[o-1],r.setLink(s[o-1],s[o]);break;case 41:case 47:this.$=s[o-1]+" "+s[o];break;case 42:case 43:case 45:this.$=s[o-2]+" "+s[o-1]+" "+s[o];break;case 44:case 46:this.$=s[o-3]+" "+s[o-2]+" "+s[o-1]+" "+s[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:c,18:u,19:18,20:l,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:c,18:u,19:18,20:l,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:o(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:o(function(t){var e=this,n=[0],r=[],i=[null],s=[],a=this.table,c="",u=0,l=0,d=s.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var m=h.yylloc;s.push(m);var y=h.options&&h.options.ranges;function k(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o(function(t){n.length=n.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),o(k,"lex");for(var p,T,v,x,b,w,D,M,C={};;){if(T=n[n.length-1],this.defaultActions[T]?v=this.defaultActions[T]:(null==p&&(p=k()),v=a[T]&&a[T][p]),void 0===v||!v.length||!v[0]){var $;for(b in M=[],a[T])this.terminals_[b]&&b>2&&M.push("'"+this.terminals_[b]+"'");$=h.showPosition?"Parse error on line "+(u+1)+":\n"+h.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError($,{text:h.match,token:this.terminals_[p]||p,line:h.yylineno,loc:m,expected:M})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+p);switch(v[0]){case 1:n.push(p),i.push(h.yytext),s.push(h.yylloc),n.push(v[1]),p=null,l=h.yyleng,c=h.yytext,u=h.yylineno,m=h.yylloc;break;case 2:if(w=this.productions_[v[1]][1],C.$=i[i.length-w],C._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[c,l,u,f.yy,v[1],i,s].concat(d))))return x;w&&(n=n.slice(0,-1*w*2),i=i.slice(0,-1*w),s=s.slice(0,-1*w)),n.push(this.productions_[v[1]][0]),i.push(C.$),s.push(C._$),D=a[n[n.length-2]][n[n.length-1]],n.push(D);break;case 3:return!0}}return!0},"parse")},_=function(){return{EOF:1,parseError:o(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:o(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:o(function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in i)this[s]=i[s];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length;s++)if((n=this._input.match(this.rules[i[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){return this.next()||this.lex()},"lex"),begin:o(function(t){this.conditionStack.push(t)},"begin"),popState:o(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:o(function(t){this.begin(t)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}}();function S(){this.yy={}}return $.lexer=_,o(S,"Parser"),S.prototype=$,$.Parser=S,new S}();Mn.parser=Mn;var Cn=Mn;b.extend(mn),b.extend(pn),b.extend(xn);var $n,_n,Sn={friday:5,saturday:6},Yn="",Fn="",An=void 0,Ln="",Un=[],En=[],On=new Map,In=[],Hn=[],Wn="",Pn="",Nn=["active","done","crit","milestone","vert"],jn=[],zn="",Bn=!1,Rn=!1,Vn="sunday",Zn="saturday",Gn=0,qn=o(function(){In=[],Hn=[],Wn="",jn=[],Sr=0,$n=void 0,_n=void 0,Lr=[],Yn="",Fn="",Pn="",An=void 0,Ln="",Un=[],En=[],Bn=!1,Rn=!1,Gn=0,On=new Map,zn="",v(),Vn="sunday",Zn="saturday"},"clear"),Qn=o(function(t){zn=t},"setDiagramId"),Xn=o(function(t){Fn=t},"setAxisFormat"),Jn=o(function(){return Fn},"getAxisFormat"),Kn=o(function(t){An=t},"setTickInterval"),tr=o(function(){return An},"getTickInterval"),er=o(function(t){Ln=t},"setTodayMarker"),nr=o(function(){return Ln},"getTodayMarker"),rr=o(function(t){Yn=t},"setDateFormat"),ir=o(function(){Bn=!0},"enableInclusiveEndDates"),sr=o(function(){return Bn},"endDatesAreInclusive"),ar=o(function(){Rn=!0},"enableTopAxis"),or=o(function(){return Rn},"topAxisEnabled"),cr=o(function(t){Pn=t},"setDisplayMode"),ur=o(function(){return Pn},"getDisplayMode"),lr=o(function(){return Yn},"getDateFormat"),dr=o((t,e)=>{const n=e.toLowerCase().split(/[\s,]+/).filter(t=>""!==t);return[...new Set([...t,...n])]},"mergeTokens"),hr=o(function(t){Un=dr(Un,t)},"setIncludes"),fr=o(function(){return Un},"getIncludes"),gr=o(function(t){En=dr(En,t)},"setExcludes"),mr=o(function(){return En},"getExcludes"),yr=o(function(){return On},"getLinks"),kr=o(function(t){Wn=t,In.push(t)},"addSection"),pr=o(function(){return In},"getSections"),Tr=o(function(){let t=Hr(),e=0;for(;!t&&e<10;)t=Hr(),e++;return Hn=Lr},"getTasks"),vr=o(function(t,e,n,r){const i=t.format(e.trim()),s=t.format("YYYY-MM-DD");return!r.includes(i)&&!r.includes(s)&&(!(!n.includes("weekends")||t.isoWeekday()!==Sn[Zn]&&t.isoWeekday()!==Sn[Zn]+1)||!!n.includes(t.format("dddd").toLowerCase())||n.includes(i)||n.includes(s))},"isInvalidDate"),xr=o(function(t){Vn=t},"setWeekday"),br=o(function(){return Vn},"getWeekday"),wr=o(function(t){Zn=t},"setWeekend"),Dr=o(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i,s;i=t.startTime instanceof Date?b(t.startTime):b(t.startTime,e,!0),i=i.add(1,"d"),s=t.endTime instanceof Date?b(t.endTime):b(t.endTime,e,!0);const[a,o]=Mr(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=o},"checkTaskDates"),Mr=o(function(t,e,n,r,i){let s=!1,a=null;const o=e.add(1e4,"d");for(;t<=e;){if(s||(a=e.toDate()),s=vr(t,n,r,i),s&&(e=e.add(1,"d"))>o)throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,a]},"fixTaskDates"),Cr=o(function(t,e,n){if(n=n.trim(),o(t=>{const e=t.trim();return"x"===e||"X"===e},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==r){let t=null;for(const n of r.groups.ids.split(" ")){let e=Or(n);void 0!==e&&(!t||e.endTime>t.endTime)&&(t=e)}if(t)return t.endTime;const e=new Date;return e.setHours(0,0,0,0),e}let i=b(n,e.trim(),!0);if(i.isValid())return i.toDate();{k.debug("Invalid date:"+n),k.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+n);return t}},"getStartDate"),$r=o(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),_r=o(function(t,e,n,r=!1){n=n.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==i){let t=null;for(const n of i.groups.ids.split(" ")){let e=Or(n);void 0!==e&&(!t||e.startTime<t.startTime)&&(t=e)}if(t)return t.startTime;const e=new Date;return e.setHours(0,0,0,0),e}let s=b(n,e.trim(),!0);if(s.isValid())return r&&(s=s.add(1,"d")),s.toDate();let a=b(t);const[o,c]=$r(n);if(!Number.isNaN(o)){const t=a.add(o,c);t.isValid()&&(a=t)}return a.toDate()},"getEndDate"),Sr=0,Yr=o(function(t){return void 0===t?"task"+(Sr+=1):t},"parseId"),Fr=o(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Vr(r,i,Nn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=Yr(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Yr(),i.startTime=Cr(void 0,Yn,r[0]),s=r[1];break;case 3:i.id=Yr(r[0]),i.startTime=Cr(void 0,Yn,r[1]),s=r[2]}return s&&(i.endTime=_r(i.startTime,Yn,s,Bn),i.manualEndTime=b(s,"YYYY-MM-DD",!0).isValid(),Dr(i,Yn,En,Un)),i},"compileData"),Ar=o(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Vr(r,i,Nn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Yr(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Yr(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Yr(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i},"parseData"),Lr=[],Ur={},Er=o(function(t,e){const n={section:Wn,type:Wn,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Ar(_n,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=_n,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.vert?n.order=-1:(n.order=Gn,Gn++);const i=Lr.push(n);_n=n.id,Ur[n.id]=i-1},"addTask"),Or=o(function(t){const e=Ur[t];return Lr[e]},"findTaskById"),Ir=o(function(t,e){const n={section:Wn,type:Wn,description:t,task:t,classes:[]},r=Fr($n,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,$n=n,Hn.push(n)},"addTaskOrg"),Hr=o(function(){const t=o(function(t){const e=Lr[t];let n="";switch(Lr[t].raw.startTime.type){case"prevTaskEnd":{const t=Or(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=Cr(void 0,Yn,Lr[t].raw.startTime.startData),n&&(Lr[t].startTime=n)}return Lr[t].startTime&&(Lr[t].endTime=_r(Lr[t].startTime,Yn,Lr[t].raw.endTime.data,Bn),Lr[t].endTime&&(Lr[t].processed=!0,Lr[t].manualEndTime=b(Lr[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Dr(Lr[t],Yn,En,Un))),Lr[t].processed},"compileTask");let e=!0;for(const[n,r]of Lr.entries())t(n),e=e&&r.processed;return e},"compileTasks"),Wr=o(function(t,e){let n=e;"loose"!==g().securityLevel&&(n=T.sanitizeUrl(e)),t.split(",").forEach(function(t){void 0!==Or(t)&&(jr(t,()=>{window.open(n,"_self")}),On.set(t,n))}),Pr(t,"clickable")},"setLink"),Pr=o(function(t,e){t.split(",").forEach(function(t){let n=Or(t);void 0!==n&&n.classes.push(e)})},"setClass"),Nr=o(function(t,e,n){if("loose"!==g().securityLevel)return;if(void 0===e)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==Or(t)&&jr(t,()=>{x.runFunc(e,...r)})},"setClickFun"),jr=o(function(t,e){jn.push(function(){const n=zn?`${zn}-${t}`:t,r=document.querySelector(`[id="${n}"]`);null!==r&&r.addEventListener("click",function(){e()})},function(){const n=zn?`${zn}-${t}`:t,r=document.querySelector(`[id="${n}-text"]`);null!==r&&r.addEventListener("click",function(){e()})})},"pushFun"),zr=o(function(t,e,n){t.split(",").forEach(function(t){Nr(t,e,n)}),Pr(t,"clickable")},"setClickEvent"),Br=o(function(t){jn.forEach(function(e){e(t)})},"bindFunctions"),Rr={getConfig:o(()=>g().gantt,"getConfig"),clear:qn,setDateFormat:rr,getDateFormat:lr,enableInclusiveEndDates:ir,endDatesAreInclusive:sr,enableTopAxis:ar,topAxisEnabled:or,setAxisFormat:Xn,getAxisFormat:Jn,setTickInterval:Kn,getTickInterval:tr,setTodayMarker:er,getTodayMarker:nr,setAccTitle:f,getAccTitle:h,setDiagramTitle:d,getDiagramTitle:l,setDiagramId:Qn,setDisplayMode:cr,getDisplayMode:ur,setAccDescription:u,getAccDescription:c,addSection:kr,getSections:pr,getTasks:Tr,addTask:Er,findTaskById:Or,addTaskOrg:Ir,setIncludes:hr,getIncludes:fr,setExcludes:gr,getExcludes:mr,setClickEvent:zr,setLink:Wr,getLinks:yr,bindFunctions:Br,parseDuration:$r,isInvalidDate:vr,setWeekday:xr,getWeekday:br,setWeekend:wr};function Vr(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){const i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)})}o(Vr,"getTaskTags"),b.extend(Dn);var Zr,Gr=o(function(){k.debug("Something is calling, setConf, remove the call")},"setConf"),qr={monday:xt,tuesday:bt,wednesday:wt,thursday:Dt,friday:Mt,saturday:Ct,sunday:vt},Qr=o((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((t,e)=>t.startTime-e.startTime||t.order-e.order),i=0;for(const s of r)for(let t=0;t<n.length;t++)if(s.startTime>=n[t]){n[t]=s.endTime,s.order=t+e,t>i&&(i=t);break}return i},"getMaxIntersections"),Xr={parser:Cn,db:Rr,renderer:{setConf:Gr,draw:o(function(t,e,n,r){const i=g().gantt;r.db.setDiagramId(e);const s=g().securityLevel;let a;"sandbox"===s&&(a=m("#i"+e));const c=m("sandbox"===s?a.nodes()[0].contentDocument.body:"body"),u="sandbox"===s?a.nodes()[0].contentDocument:document,l=u.getElementById(e);void 0===(Zr=l.parentElement.offsetWidth)&&(Zr=1200),void 0!==i.useWidth&&(Zr=i.useWidth);const d=r.db.getTasks(),h=d.filter(t=>!t.vert);let f=[];for(const o of h)f.push(o.type);f=E(f);const T={};let v=2*i.topPadding;if("compact"===r.db.getDisplayMode()||"compact"===i.displayMode){const t={};for(const n of h)void 0===t[n.section]?t[n.section]=[n]:t[n.section].push(n);let e=0;for(const n of Object.keys(t)){const r=Qr(t[n],e)+1;e+=r,v+=r*(i.barHeight+i.barGap),T[n]=r}}else{v+=h.length*(i.barHeight+i.barGap);for(const t of f)T[t]=h.filter(e=>e.type===t).length}l.setAttribute("viewBox","0 0 "+Zr+" "+v);const x=c.select(`[id="${e}"]`),w=hn().domain([F(d,function(t){return t.startTime}),Y(d,function(t){return t.endTime})]).rangeRound([0,Zr-i.leftPadding-i.rightPadding]);function D(t,e){const n=t.startTime,r=e.startTime;let i=0;return n>r?i=1:n<r&&(i=-1),i}function M(t,e,n){const s=i.barHeight,a=s+i.barGap,o=i.topPadding,c=i.leftPadding;_().domain([0,f.length]).range(["#00B9FA","#F95002"]).interpolate(rt),$(a,o,c,0,n,t,r.db.getExcludes(),r.db.getIncludes()),A(c,o,0,n),C(t,a,o,c,s,0,e),L(a,o),U(c,0,0,n)}function C(t,n,s,a,o,c,u){t.sort((t,e)=>t.vert===e.vert?0:t.vert?1:-1);const l=t.filter(t=>!t.vert),d=[...new Set(l.map(t=>t.order))].map(t=>l.find(e=>e.order===t));x.append("g").selectAll("rect").data(d).enter().append("rect").attr("x",0).attr("y",function(t,e){return t.order*n+s-2}).attr("width",function(){return u-i.rightPadding/2}).attr("height",n).attr("class",function(t){for(const[e,n]of f.entries())if(t.type===n)return"section section"+e%i.numberSectionStyles;return"section section0"}).enter();const h=x.append("g").selectAll("rect").data(t).enter(),y=r.db.getLinks();if(h.append("rect").attr("id",function(t){return e+"-"+t.id}).attr("rx",3).attr("ry",3).attr("x",function(t){return t.milestone?w(t.startTime)+a+.5*(w(t.endTime)-w(t.startTime))-.5*o:w(t.startTime)+a}).attr("y",function(t,e){return e=t.order,t.vert?i.gridLineStartPadding:e*n+s}).attr("width",function(t){return t.milestone?o:t.vert?.08*o:w(t.renderEndTime||t.endTime)-w(t.startTime)}).attr("height",function(t){return t.vert?l.length*(i.barHeight+i.barGap)+2*i.barHeight:o}).attr("transform-origin",function(t,e){return e=t.order,(w(t.startTime)+a+.5*(w(t.endTime)-w(t.startTime))).toString()+"px "+(e*n+s+.5*o).toString()+"px"}).attr("class",function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[s,a]of f.entries())t.type===a&&(n=s%i.numberSectionStyles);let r="";return t.active?t.crit?r+=" activeCrit":r=" active":t.done?r=t.crit?" doneCrit":" done":t.crit&&(r+=" crit"),0===r.length&&(r=" task"),t.milestone&&(r=" milestone "+r),t.vert&&(r=" vert "+r),r+=n,r+=" "+e,"task"+r}),h.append("text").attr("id",function(t){return e+"-"+t.id+"-text"}).text(function(t){return t.task}).attr("font-size",i.fontSize).attr("x",function(t){let e=w(t.startTime),n=w(t.renderEndTime||t.endTime);if(t.milestone&&(e+=.5*(w(t.endTime)-w(t.startTime))-.5*o,n=e+o),t.vert)return w(t.startTime)+a;const r=this.getBBox().width;return r>n-e?n+r+1.5*i.leftPadding>u?e+a-5:n+a+5:(n-e)/2+e+a}).attr("y",function(t,e){return t.vert?i.gridLineStartPadding+l.length*(i.barHeight+i.barGap)+60:t.order*n+i.barHeight/2+(i.fontSize/2-2)+s}).attr("text-height",o).attr("class",function(t){const e=w(t.startTime);let n=w(t.endTime);t.milestone&&(n=e+o);const r=this.getBBox().width;let s="";t.classes.length>0&&(s=t.classes.join(" "));let a=0;for(const[o,u]of f.entries())t.type===u&&(a=o%i.numberSectionStyles);let c="";return t.active&&(c=t.crit?"activeCritText"+a:"activeText"+a),t.done?c=t.crit?c+" doneCritText"+a:c+" doneText"+a:t.crit&&(c=c+" critText"+a),t.milestone&&(c+=" milestoneText"),t.vert&&(c+=" vertText"),r>n-e?n+r+1.5*i.leftPadding>u?s+" taskTextOutsideLeft taskTextOutside"+a+" "+c:s+" taskTextOutsideRight taskTextOutside"+a+" "+c+" width-"+r:s+" taskText taskText"+a+" "+c+" width-"+r}),"sandbox"===g().securityLevel){let t;t=m("#i"+e);const n=t.nodes()[0].contentDocument;h.filter(function(t){return y.has(t.id)}).each(function(t){var r=n.querySelector("#"+CSS.escape(e+"-"+t.id)),i=n.querySelector("#"+CSS.escape(e+"-"+t.id+"-text"));const s=r.parentNode;var a=n.createElement("a");a.setAttribute("xlink:href",y.get(t.id)),a.setAttribute("target","_top"),s.appendChild(a),a.appendChild(r),a.appendChild(i)})}}function $(t,n,s,a,o,c,u,l){if(0===u.length&&0===l.length)return;let d,h;for(const{startTime:e,endTime:r}of c)(void 0===d||e<d)&&(d=e),(void 0===h||r>h)&&(h=r);if(!d||!h)return;if(b(h).diff(b(d),"year")>5)return void k.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const f=r.db.getDateFormat(),g=[];let m=null,y=b(d);for(;y.valueOf()<=h;)r.db.isInvalidDate(y,f,u,l)?m?m.end=y:m={start:y,end:y}:m&&(g.push(m),m=null),y=y.add(1,"d");x.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",t=>e+"-exclude-"+t.start.format("YYYY-MM-DD")).attr("x",t=>w(t.start.startOf("day"))+s).attr("y",i.gridLineStartPadding).attr("width",t=>w(t.end.endOf("day"))-w(t.start.startOf("day"))).attr("height",o-n-i.gridLineStartPadding).attr("transform-origin",function(e,n){return(w(e.start)+s+.5*(w(e.end)-w(e.start))).toString()+"px "+(n*t+.5*o).toString()+"px"}).attr("class","exclude-range")}function S(t,e,n,r){if(n<=0||t>e)return 1/0;const i=e-t,s=b.duration({[r??"day"]:n}).asMilliseconds();return s<=0?1/0:Math.ceil(i/s)}function A(t,e,n,s){const a=r.db.getDateFormat();let o;o=r.db.getAxisFormat()||("D"===a?"%d":i.axisFormat??"%Y-%m-%d");let c=function(t){return W(3,t)}(w).tickSize(-s+e+i.gridLineStartPadding).tickFormat(Bt(o));const u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(null!==u){const t=parseInt(u[1],10);if(isNaN(t)||t<=0)k.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{const e=u[2],n=r.db.getWeekday()||i.weekday,s=w.domain(),a=S(s[0],s[1],t,e);if(a>1e4)k.warn(`The tick interval "${t}${e}" would generate ${a} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(e){case"millisecond":c.ticks(ot.every(t));break;case"second":c.ticks(gt.every(t));break;case"minute":c.ticks(mt.every(t));break;case"hour":c.ticks(yt.every(t));break;case"day":c.ticks(kt.every(t));break;case"week":c.ticks(qr[n].every(t));break;case"month":c.ticks(Et.every(t))}}}if(x.append("g").attr("class","grid").attr("transform","translate("+t+", "+(s-50)+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let n=function(t){return W(1,t)}(w).tickSize(-s+e+i.gridLineStartPadding).tickFormat(Bt(o));if(null!==u){const t=parseInt(u[1],10);if(isNaN(t)||t<=0)k.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{const e=u[2],s=r.db.getWeekday()||i.weekday,a=w.domain();if(S(a[0],a[1],t,e)<=1e4)switch(e){case"millisecond":n.ticks(ot.every(t));break;case"second":n.ticks(gt.every(t));break;case"minute":n.ticks(mt.every(t));break;case"hour":n.ticks(yt.every(t));break;case"day":n.ticks(kt.every(t));break;case"week":n.ticks(qr[s].every(t));break;case"month":n.ticks(Et.every(t))}}}x.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function L(t,e){let n=0;const r=Object.keys(T).map(t=>[t,T[t]]);x.append("g").selectAll("text").data(r).enter().append(function(t){const e=t[0].split(p.lineBreakRegex),n=-(e.length-1)/2,r=u.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(const[i,s]of e.entries()){const t=u.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttribute("alignment-baseline","central"),t.setAttribute("x","10"),i>0&&t.setAttribute("dy","1em"),t.textContent=s,r.appendChild(t)}return r}).attr("x",10).attr("y",function(i,s){if(!(s>0))return i[1]*t/2+e;for(let a=0;a<s;a++)return n+=r[s-1][1],i[1]*t/2+n*t+e}).attr("font-size",i.sectionFontSize).attr("class",function(t){for(const[e,n]of f.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%i.numberSectionStyles;return"sectionTitle"})}function U(t,e,n,s){const a=r.db.getTodayMarker();if("off"===a)return;const o=x.append("g").attr("class","today"),c=new Date,u=o.append("line");u.attr("x1",w(c)+t).attr("x2",w(c)+t).attr("y1",i.titleTopMargin).attr("y2",s-i.titleTopMargin).attr("class","today"),""!==a&&u.attr("style",a.replace(/,/g,";"))}function E(t){const e={},n=[];for(let r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}o(D,"taskCompare"),d.sort(D),M(d,Zr,v),y(x,v,Zr,i.useMaxWidth),x.append("text").text(r.db.getDiagramTitle()).attr("x",Zr/2).attr("y",i.titleTopMargin).attr("class","titleText"),o(M,"makeGantt"),o(C,"drawRects"),o($,"drawExcludeDays"),o(S,"getEstimatedTickCount"),o(A,"makeGrid"),o(L,"vertLabels"),o(U,"drawToday"),o(E,"checkUnique")},"draw")},styles:o(t=>`\n .mermaid-main-font {\n font-family: ${t.fontFamily};\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done task text displayed outside the bar sits against the diagram background,\n not against the done-task bar, so it must use the outside/contrast color. */\n .doneText0.taskTextOutsideLeft,\n .doneText0.taskTextOutsideRight,\n .doneText1.taskTextOutsideLeft,\n .doneText1.taskTextOutsideRight,\n .doneText2.taskTextOutsideLeft,\n .doneText2.taskTextOutsideRight,\n .doneText3.taskTextOutsideLeft,\n .doneText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done-crit task text outside the bar — same reasoning as doneText above. */\n .doneCritText0.taskTextOutsideLeft,\n .doneCritText0.taskTextOutsideRight,\n .doneCritText1.taskTextOutsideLeft,\n .doneCritText1.taskTextOutsideRight,\n .doneCritText2.taskTextOutsideLeft,\n .doneCritText2.taskTextOutsideRight,\n .doneCritText3.taskTextOutsideLeft,\n .doneCritText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n .vert {\n stroke: ${t.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${t.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: ${t.fontFamily};\n }\n`,"getStyles")};export{Xr as diagram};
@@ -1 +0,0 @@
1
- import{I as t}from"./chunk-2Q5K7J3B-C8JBUKrX.js";import{p as r}from"./chunk-JWPE2WC7-BHVdLkDM.js";import{_ as e,p as o,o as n,s as a,g as i,a as s,b as c,z as d,l as h,d as $,c as m,y as l,A as g,q as p,k as y,B as f,D as x,E as u}from"./mermaid.core-CzqhAinL.js";import{p as b}from"./cynefin-VYW2F7L2-CO9lWPZn.js";import"./index-BaK7b1aP.js";import"./RemoteLifeOSBlock-gBVCJ1KA.js";import"./index-FQXZYOsr.js";import"./index-C_vQZvvM.js";import"./file-editor-CodeHighlight-aQ9kP3Wv.js";import"./App-BvW36-4M.js";import"./chevron-up-CvywgAdp.js";import"./__vite-browser-external-2447137e-D97de6th.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";var w={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},k=x.gitGraph,B=e(()=>f({...k,...d().gitGraph}),"getConfig"),E=new t(()=>{const t=B(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function C(){return u({length:7})}function L(t,r){const e=Object.create(null);return t.reduce((t,o)=>{const n=r(o);return e[n]||(e[n]=!0,t.push(o)),t},[])}e(C,"getID"),e(L,"uniqBy");var T=e(function(t){E.records.direction=t},"setDirection"),M=e(function(t){h.debug("options str",t),t=t?.trim(),t=t||"{}";try{E.records.options=JSON.parse(t)}catch(r){h.error("error while parsing gitGraph options",r.message)}},"setOptions"),v=e(function(){return E.records.options},"getOptions"),I=e(function(t){let r=t.msg,e=t.id;const o=t.type;let n=t.tags;h.info("commit",r,e,o,n),h.debug("Entering commit:",r,e,o,n);const a=B();e=y.sanitizeText(e,a),r=y.sanitizeText(r,a),n=n?.map(t=>y.sanitizeText(t,a));const i={id:e||E.records.seq+"-"+C(),message:r,seq:E.records.seq++,type:o??w.NORMAL,tags:n??[],parents:null==E.records.head?[]:[E.records.head.id],branch:E.records.currBranch};E.records.head=i,h.info("main branch",a.mainBranchName),E.records.commits.has(i.id)&&h.warn(`Commit ID ${i.id} already exists`),E.records.commits.set(i.id,i),E.records.branches.set(E.records.currBranch,i.id),h.debug("in pushCommit "+i.id)},"commit"),R=e(function(t){let r=t.name;const e=t.order;if(r=y.sanitizeText(r,B()),E.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);E.records.branches.set(r,null!=E.records.head?E.records.head.id:null),E.records.branchConfig.set(r,{name:r,order:e}),A(r),h.debug("in createBranch")},"branch"),P=e(t=>{let r=t.branch,e=t.id;const o=t.type,n=t.tags,a=B();r=y.sanitizeText(r,a),e&&(e=y.sanitizeText(e,a));const i=E.records.branches.get(E.records.currBranch),s=E.records.branches.get(r),c=i?E.records.commits.get(i):void 0,d=s?E.records.commits.get(s):void 0;if(c&&d&&c.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(E.records.currBranch===r){const t=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(void 0===c||!c){const t=new Error(`Incorrect usage of "merge". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},t}if(!E.records.branches.has(r)){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},t}if(void 0===d||!d){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},t}if(c===d){const t=new Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(e&&E.records.commits.has(e)){const t=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw t.hash={text:`merge ${r} ${e} ${o} ${n?.join(" ")}`,token:`merge ${r} ${e} ${o} ${n?.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${o} ${n?.join(" ")}`]},t}const $=s||"",m={id:e||`${E.records.seq}-${C()}`,message:`merged branch ${r} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,$],branch:E.records.currBranch,type:w.MERGE,customType:o,customId:!!e,tags:n??[]};E.records.head=m,E.records.commits.set(m.id,m),E.records.branches.set(E.records.currBranch,m.id),h.debug(E.records.branches),h.debug("in mergeBranch")},"merge"),O=e(function(t){let r=t.id,e=t.targetId,o=t.tags,n=t.parent;h.debug("Entering cherryPick:",r,e,o);const a=B();if(r=y.sanitizeText(r,a),e=y.sanitizeText(e,a),o=o?.map(t=>y.sanitizeText(t,a)),n=y.sanitizeText(n,a),!r||!E.records.commits.has(r)){const t=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const i=E.records.commits.get(r);if(void 0===i||!i)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&(!Array.isArray(i.parents)||!i.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const s=i.branch;if(i.type===w.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!E.records.commits.has(e)){if(s===E.records.currBranch){const t=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const t=E.records.branches.get(E.records.currBranch);if(void 0===t||!t){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const a=E.records.commits.get(t);if(void 0===a||!a){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const c={id:E.records.seq+"-"+C(),message:`cherry-picked ${i?.message} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,i.id],branch:E.records.currBranch,type:w.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${i.id}${i.type===w.MERGE?`|parent:${n}`:""}`]};E.records.head=c,E.records.commits.set(c.id,c),E.records.branches.set(E.records.currBranch,c.id),h.debug(E.records.branches),h.debug("in cherryPick")}},"cherryPick"),A=e(function(t){if(t=y.sanitizeText(t,B()),!E.records.branches.has(t)){const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}{E.records.currBranch=t;const r=E.records.branches.get(E.records.currBranch);E.records.head=void 0!==r&&r?E.records.commits.get(r)??null:null}},"checkout");function G(t,r,e){const o=t.indexOf(r);-1===o?t.push(e):t.splice(o,1,e)}function S(t){const r=t.reduce((t,r)=>t.seq>r.seq?t:r,t[0]);let e="";t.forEach(function(t){e+=t===r?"\t*":"\t|"});const o=[e,r.id,r.seq];for(const n in E.records.branches)E.records.branches.get(n)===r.id&&o.push(n);if(h.debug(o.join(" ")),r.parents&&2==r.parents.length&&r.parents[0]&&r.parents[1]){const e=E.records.commits.get(r.parents[0]);G(t,r,e),r.parents[1]&&t.push(E.records.commits.get(r.parents[1]))}else{if(0==r.parents.length)return;if(r.parents[0]){const e=E.records.commits.get(r.parents[0]);G(t,r,e)}}S(t=L(t,t=>t.id))}e(G,"upsert"),e(S,"prettyPrintCommitHistory");var W=e(function(){h.debug(E.records.commits),S([z()[0]])},"prettyPrint"),H=e(function(){E.reset(),p()},"clear"),j=e(function(){return[...E.records.branchConfig.values()].map((t,r)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),q=e(function(){return E.records.branches},"getBranches"),_=e(function(){return E.records.commits},"getCommits"),z=e(function(){const t=[...E.records.commits.values()];return t.forEach(function(t){h.debug(t.id)}),t.sort((t,r)=>t.seq-r.seq),t},"getCommitsArray"),D={commitType:w,getConfig:B,setDirection:T,setOptions:M,getOptions:v,commit:I,branch:R,merge:P,cherryPick:O,checkout:A,prettyPrint:W,clear:H,getBranchesAsObjArray:j,getBranches:q,getCommits:_,getCommitsArray:z,getCurrentBranch:e(function(){return E.records.currBranch},"getCurrentBranch"),getDirection:e(function(){return E.records.direction},"getDirection"),getHead:e(function(){return E.records.head},"getHead"),setAccTitle:c,getAccTitle:s,getAccDescription:i,setAccDescription:a,setDiagramTitle:n,getDiagramTitle:o},F=e((t,e)=>{r(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)N(r,e)},"populate"),N=e((t,r)=>{const o={Commit:e(t=>r.commit(K(t)),"Commit"),Branch:e(t=>r.branch(V(t)),"Branch"),Merge:e(t=>r.merge(Y(t)),"Merge"),Checkout:e(t=>r.checkout(U(t)),"Checkout"),CherryPicking:e(t=>r.cherryPick(J(t)),"CherryPicking")}[t.$type];o?o(t):h.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),K=e(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?w[t.type]:w.NORMAL,tags:t.tags??void 0}),"parseCommit"),V=e(t=>({name:t.name,order:t.order??0}),"parseBranch"),Y=e(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?w[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),U=e(t=>t.branch,"parseCheckout"),J=e(t=>({id:t.id,targetId:"",tags:0===t.tags?.length?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Q={parse:e(async t=>{const r=await b("gitGraph",t);h.debug(r),F(r,D)},"parse")},X=10,Z=40,tt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),rt=new Set(["redux-color","redux-dark-color"]),et=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),ot=e((t,r,e=!1)=>e&&t>0?(t-1)%(r-1)+1:t%r,"calcColorIndex"),nt=new Map,at=new Map,it=new Map,st=[],ct=0,dt="LR",ht=e(()=>{nt.clear(),at.clear(),it.clear(),ct=0,st=[],dt="LR"},"clear"),$t=e(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=t.trim(),r.appendChild(e)}),r},"drawText"),mt=e(t=>{let r,o,n;return"BT"===dt?(o=e((t,r)=>t<=r,"comparisonFunc"),n=1/0):(o=e((t,r)=>t>=r,"comparisonFunc"),n=0),t.forEach(t=>{const e="TB"===dt||"BT"==dt?at.get(t)?.y:at.get(t)?.x;void 0!==e&&o(e,n)&&(r=t,n=e)}),r},"findClosestParent"),lt=e(t=>{let r="",e=1/0;return t.forEach(t=>{const o=at.get(t).y;o<=e&&(r=t,e=o)}),r||void 0},"findClosestParentBT"),gt=e((t,r,e)=>{let o=e,n=e;const a=[];t.forEach(t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);e.parents.length?(o=yt(e),n=Math.max(o,n)):a.push(e),ft(e,o)}),o=n,a.forEach(t=>{xt(t,o,e)}),t.forEach(t=>{const e=r.get(t);if(e?.parents.length){const t=lt(e.parents);o=at.get(t).y-Z,o<=n&&(n=o);const r=nt.get(e.branch).pos,a=o-X;at.set(e.id,{x:r,y:a})}})},"setParallelBTPos"),pt=e(t=>{const r=mt(t.parents.filter(t=>null!==t));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const e=at.get(r)?.y;if(void 0===e)throw new Error(`Closest parent position not found for commit ${t.id}`);return e},"findClosestParentPos"),yt=e(t=>pt(t)+Z,"calculateCommitPosition"),ft=e((t,r)=>{const e=nt.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);const o=e.pos,n=r+X;return at.set(t.id,{x:o,y:n}),{x:o,y:n}},"setCommitPosition"),xt=e((t,r,e)=>{const o=nt.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const n=r+e,a=o.pos;at.set(t.id,{x:a,y:n})},"setRootPosition"),ut=e((t,r,e,o,n,a)=>{const{theme:i}=m(),s=tt.has(i??""),c=rt.has(i??""),d=et.has(i??"");if(a===w.HIGHLIGHT)t.append("rect").attr("x",e.x-10+(s?3:0)).attr("y",e.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${r.id} commit-highlight${ot(n,8,c)} ${o}-outer`),t.append("rect").attr("x",e.x-6+(s?2:0)).attr("y",e.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${r.id} commit${ot(n,8,c)} ${o}-inner`);else if(a===w.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",s?7:10).attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",s?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",s?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const i=t.append("circle");if(i.attr("cx",e.x),i.attr("cy",e.y),i.attr("r",s?7:10),i.attr("class",`commit ${r.id} commit${ot(n,8,c)}`),a===w.MERGE){const a=t.append("circle");a.attr("cx",e.x),a.attr("cy",e.y),a.attr("r",s?5:6),a.attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}if(a===w.REVERSE){const a=s?4:5;t.append("path").attr("d",`M ${e.x-a},${e.y-a}L${e.x+a},${e.y+a}M${e.x-a},${e.y+a}L${e.x+a},${e.y-a}`).attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}}},"drawCommitBullet"),bt=e((t,r,e,o,n)=>{if(r.type!==w.CHERRY_PICK&&(r.customId&&r.type===w.MERGE||r.type!==w.MERGE)&&n.showCommitLabel){const a=t.append("g"),i=a.insert("rect").attr("class","commit-label-bkg"),s=a.append("text").attr("x",o).attr("y",e.y+25).attr("class","commit-label").text(r.id),c=s.node()?.getBBox();if(c&&(i.attr("x",e.posWithOffset-c.width/2-2).attr("y",e.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===dt||"BT"===dt?(i.attr("x",e.x-(c.width+16+5)).attr("y",e.y-12),s.attr("x",e.x-(c.width+16)).attr("y",e.y+c.height-12)):s.attr("x",e.posWithOffset-c.width/2),n.rotateCommitLabel))if("TB"===dt||"BT"===dt)s.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),i.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{const t=-7.5-(c.width+10)/25*9.5,r=10+c.width/25*8.5;a.attr("transform","translate("+t+", "+r+") rotate(-45, "+o+", "+e.y+")")}}},"drawCommitLabel"),wt=e((t,r,e,o)=>{if(r.tags.length>0){let n=0,a=0,i=0;const s=[];for(const o of r.tags.reverse()){const r=t.insert("polygon"),c=t.append("circle"),d=t.append("text").attr("y",e.y-16-n).attr("class","tag-label").text(o),h=d.node()?.getBBox();if(!h)throw new Error("Tag bbox not found");a=Math.max(a,h.width),i=Math.max(i,h.height),d.attr("x",e.posWithOffset-h.width/2),s.push({tag:d,hole:c,rect:r,yOffset:n}),n+=20}for(const{tag:t,hole:r,rect:c,yOffset:d}of s){const n=i/2,s=e.y-19.2-d;if(c.attr("class","tag-label-bkg").attr("points",`\n ${o-a/2-2},${s+2} \n ${o-a/2-2},${s-2}\n ${e.posWithOffset-a/2-4},${s-n-2}\n ${e.posWithOffset+a/2+4},${s-n-2}\n ${e.posWithOffset+a/2+4},${s+n+2}\n ${e.posWithOffset-a/2-4},${s+n+2}`),r.attr("cy",s).attr("cx",o-a/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===dt||"BT"===dt){const i=o+d;c.attr("class","tag-label-bkg").attr("points",`\n ${e.x},${i+2}\n ${e.x},${i-2}\n ${e.x+X},${i-n-2}\n ${e.x+X+a+4},${i-n-2}\n ${e.x+X+a+4},${i+n+2}\n ${e.x+X},${i+n+2}`).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),r.attr("cx",e.x+2).attr("cy",i).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),t.attr("x",e.x+5).attr("y",i+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+o+")")}}}},"drawCommitTags"),kt=e(t=>{switch(t.customType??t.type){case w.NORMAL:return"commit-normal";case w.REVERSE:return"commit-reverse";case w.HIGHLIGHT:return"commit-highlight";case w.MERGE:return"commit-merge";case w.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Bt=e((t,r,e,o)=>{const n={x:0,y:0};if(!(t.parents.length>0))return"TB"===r?30:"BT"===r?(o.get(t.id)??n).y-Z:0;{const e=mt(t.parents);if(e){const a=o.get(e)??n;return"TB"===r?a.y+Z:"BT"===r?(o.get(t.id)??n).y-Z:a.x+Z}}return 0},"calculatePosition"),Et=e((t,r,e)=>{const o="BT"===dt&&e?r:r+X,n=nt.get(t.branch)?.pos,a="TB"===dt||"BT"===dt?nt.get(t.branch)?.pos:o;if(void 0===a||void 0===n)throw new Error(`Position were undefined for commit ${t.id}`);const i=tt.has(m().theme??"");return{x:a,y:"TB"===dt||"BT"===dt?o:n+(i?7:-2),posWithOffset:o}},"getCommitPosition"),Ct=e((t,r,o,n)=>{const a=t.append("g").attr("class","commit-bullets"),i=t.append("g").attr("class","commit-labels");let s="TB"===dt||"BT"===dt?30:0;const c=[...r.keys()],d=n.parallelCommits??!1,h=e((t,e)=>{const o=r.get(t)?.seq,n=r.get(e)?.seq;return void 0!==o&&void 0!==n?o-n:0},"sortKeys");let $=c.sort(h);"BT"===dt&&(d&&gt($,r,s),$=$.reverse()),$.forEach(t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);d&&(s=Bt(e,dt,s,at));const c=Et(e,s,d);if(o){const t=kt(e),r=e.customType??e.type,o=nt.get(e.branch)?.index??0;ut(a,e,c,t,o,r),bt(i,e,c,s,n),wt(i,e,c,s)}"TB"===dt||"BT"===dt?at.set(e.id,{x:c.x,y:c.posWithOffset}):at.set(e.id,{x:c.posWithOffset,y:c.y}),s="BT"===dt&&d?s+Z:s+Z+X,s>ct&&(ct=s)})},"drawCommits"),Lt=e((t,r,o,n,a)=>{const i=("TB"===dt||"BT"===dt?o.x<n.x:o.y<n.y)?r.branch:t.branch,s=e(t=>t.branch===i,"isOnBranchToGetCurve"),c=e(e=>e.seq>t.seq&&e.seq<r.seq,"isBetweenCommits");return[...a.values()].some(t=>c(t)&&s(t))},"shouldRerouteArrow"),Tt=e((t,r,e=0)=>{const o=t+Math.abs(t-r)/2;if(e>5)return o;if(st.every(t=>Math.abs(t-o)>=10))return st.push(o),o;const n=Math.abs(t-r);return Tt(t,r-n/5,e+1)},"findLane"),Mt=e((t,r,e,o)=>{const{theme:n}=m(),a=rt.has(n??""),i=at.get(r.id),s=at.get(e.id);if(void 0===i||void 0===s)throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);const c=Lt(r,e,i,s,o);let d,h="",$="",l=0,g=0,p=nt.get(e.branch)?.index;if(e.type===w.MERGE&&r.id!==e.parents[0]&&(p=nt.get(r.branch)?.index),c){h="A 10 10, 0, 0, 0,",$="A 10 10, 0, 0, 1,",l=10,g=10;const t=i.y<s.y?Tt(i.y,s.y):Tt(s.y,i.y),e=i.x<s.x?Tt(i.x,s.x):Tt(s.x,i.x);"TB"===dt?i.x<s.x?d=`M ${i.x} ${i.y} L ${e-l} ${i.y} ${$} ${e} ${i.y+g} L ${e} ${s.y-l} ${h} ${e+g} ${s.y} L ${s.x} ${s.y}`:(p=nt.get(r.branch)?.index,d=`M ${i.x} ${i.y} L ${e+l} ${i.y} ${h} ${e} ${i.y+g} L ${e} ${s.y-l} ${$} ${e-g} ${s.y} L ${s.x} ${s.y}`):"BT"===dt?i.x<s.x?d=`M ${i.x} ${i.y} L ${e-l} ${i.y} ${h} ${e} ${i.y-g} L ${e} ${s.y+l} ${$} ${e+g} ${s.y} L ${s.x} ${s.y}`:(p=nt.get(r.branch)?.index,d=`M ${i.x} ${i.y} L ${e+l} ${i.y} ${$} ${e} ${i.y-g} L ${e} ${s.y+l} ${h} ${e-g} ${s.y} L ${s.x} ${s.y}`):i.y<s.y?d=`M ${i.x} ${i.y} L ${i.x} ${t-l} ${h} ${i.x+g} ${t} L ${s.x-l} ${t} ${$} ${s.x} ${t+g} L ${s.x} ${s.y}`:(p=nt.get(r.branch)?.index,d=`M ${i.x} ${i.y} L ${i.x} ${t+l} ${$} ${i.x+g} ${t} L ${s.x-l} ${t} ${h} ${s.x} ${t-g} L ${s.x} ${s.y}`)}else h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,"TB"===dt?(i.x<s.x&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${s.y-l} ${h} ${i.x+g} ${s.y} L ${s.x} ${s.y}`:`M ${i.x} ${i.y} L ${s.x-l} ${i.y} ${$} ${s.x} ${i.y+g} L ${s.x} ${s.y}`),i.x>s.x&&(h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${s.y-l} ${$} ${i.x-g} ${s.y} L ${s.x} ${s.y}`:`M ${i.x} ${i.y} L ${s.x+l} ${i.y} ${h} ${s.x} ${i.y+g} L ${s.x} ${s.y}`),i.x===s.x&&(d=`M ${i.x} ${i.y} L ${s.x} ${s.y}`)):"BT"===dt?(i.x<s.x&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${s.y+l} ${$} ${i.x+g} ${s.y} L ${s.x} ${s.y}`:`M ${i.x} ${i.y} L ${s.x-l} ${i.y} ${h} ${s.x} ${i.y-g} L ${s.x} ${s.y}`),i.x>s.x&&(h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${s.y+l} ${h} ${i.x-g} ${s.y} L ${s.x} ${s.y}`:`M ${i.x} ${i.y} L ${s.x+l} ${i.y} ${$} ${s.x} ${i.y-g} L ${s.x} ${s.y}`),i.x===s.x&&(d=`M ${i.x} ${i.y} L ${s.x} ${s.y}`)):(i.y<s.y&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${i.x} ${i.y} L ${s.x-l} ${i.y} ${$} ${s.x} ${i.y+g} L ${s.x} ${s.y}`:`M ${i.x} ${i.y} L ${i.x} ${s.y-l} ${h} ${i.x+g} ${s.y} L ${s.x} ${s.y}`),i.y>s.y&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${i.x} ${i.y} L ${s.x-l} ${i.y} ${h} ${s.x} ${i.y-g} L ${s.x} ${s.y}`:`M ${i.x} ${i.y} L ${i.x} ${s.y+l} ${$} ${i.x+g} ${s.y} L ${s.x} ${s.y}`),i.y===s.y&&(d=`M ${i.x} ${i.y} L ${s.x} ${s.y}`));if(void 0===d)throw new Error("Line definition not found");t.append("path").attr("d",d).attr("class","arrow arrow"+ot(p,8,a))},"drawArrow"),vt=e((t,r)=>{const e=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(t=>{const o=r.get(t);o.parents&&o.parents.length>0&&o.parents.forEach(t=>{Mt(e,r.get(t),o,r)})})},"drawArrows"),It=e((t,r,e,o)=>{const{look:n,theme:a,themeVariables:i}=m(),{dropShadow:s,THEME_COLOR_LIMIT:c}=i,d=tt.has(a??""),h=rt.has(a??""),$=t.append("g");r.forEach((t,r)=>{const a=ot(r,d?c:8,h),i=nt.get(t.name)?.pos;if(void 0===i)throw new Error(`Position not found for branch ${t.name}`);const m="TB"===dt||"BT"===dt?i:d?i+6+1:i-2,l=$.append("line");l.attr("x1",0),l.attr("y1",m),l.attr("x2",ct),l.attr("y2",m),l.attr("class","branch branch"+a),"TB"===dt?(l.attr("y1",30),l.attr("x1",i),l.attr("y2",ct),l.attr("x2",i)):"BT"===dt&&(l.attr("y1",ct),l.attr("x1",i),l.attr("y2",30),l.attr("x2",i)),st.push(m);const g=t.name,p=$t(g),y=$.insert("rect"),f=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);f.node().appendChild(p);const x=p.getBBox(),u=d?0:4,b=d?16:0,w=d?12:0;"neo"===n&&y.attr("data-look","neo"),y.attr("class","branchLabelBkg label"+a).attr("style","neo"===n?`filter:${d?`url(#${o}-drop-shadow)`:s}`:"").attr("rx",u).attr("ry",u).attr("x",-x.width-4-(!0===e.rotateCommitLabel?30:0)).attr("y",-x.height/2+10).attr("width",x.width+18+b).attr("height",x.height+4+w),f.attr("transform","translate("+(-x.width-14-(!0===e.rotateCommitLabel?30:0)+b/2)+", "+(m-x.height/2-2)+")"),"TB"===dt?(y.attr("x",i-x.width/2-10).attr("y",0),f.attr("transform","translate("+(i-x.width/2-5)+", 0)"),d&&(y.attr("transform",`translate(${-b/2-3}, ${-w-10})`),f.attr("transform","translate("+(i-x.width/2-5)+", "+(2*-w+7)+")"))):"BT"===dt?(y.attr("x",i-x.width/2-10).attr("y",ct),f.attr("transform","translate("+(i-x.width/2-5)+", "+ct+")"),d&&(y.attr("transform",`translate(${-b/2-3}, ${w+10})`),f.attr("transform","translate("+(i-x.width/2-5)+", "+(ct+2*w+4)+")"))):y.attr("transform","translate(-19, "+(m-12-w/2)+")")})},"drawBranches"),Rt=e(function(t,r,e,o,n){return nt.set(t,{pos:r,index:e}),r+(50+(n?40:0)+("TB"===dt||"BT"===dt?o.width/2:0))},"setBranchPosition"),Pt={draw:e(function(t,r,e,o){ht(),h.debug("in gitgraph renderer",t+"\n","id:",r,e);const n=o.db;if(!n.getConfig)return void h.error("getConfig method is not available on db");const a=n.getConfig(),i=a.rotateCommitLabel??!1;it=n.getCommits();const s=n.getBranchesAsObjArray();dt=n.getDirection();const c=$(`[id="${r}"]`),{look:d,theme:p,themeVariables:y}=m(),{useGradient:f,gradientStart:x,gradientStop:u,filterColor:b}=y;if(f){const t=c.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}"neo"===d&&tt.has(p??"")&&c.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",b);let w=0;s.forEach((t,r)=>{const e=$t(t.name),o=c.append("g"),n=o.insert("g").attr("class","branchLabel"),a=n.insert("g").attr("class","label branch-label");a.node()?.appendChild(e);const s=e.getBBox();w=Rt(t.name,w,r,s,i),a.remove(),n.remove(),o.remove()}),Ct(c,it,!1,a),a.showBranches&&It(c,s,a,r),vt(c,it),Ct(c,it,!0,a),l.insertTitle(c,"gitTitleText",a.titleTopMargin??0,n.getDiagramTitle()),g(void 0,c,a.diagramPadding,a.useMaxWidth)},"draw")},Ot=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),At=new Set(["redux-color","redux-dark-color"]),Gt=new Set(["neo","neo-dark"]),St=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Wt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),Ht=e(t=>{const{svgId:r}=t;let e="";if(t.useGradient&&r)for(let o=0;o<t.THEME_COLOR_LIMIT;o++)e+=`\n .label${o} { fill: ${t.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${t.strokeWidth};}\n `;return e},"genGitGraphGradient"),jt=e(t=>{const r=d(),{theme:e,themeVariables:o}=r,{borderColorArray:n}=o,a=Ot.has(e);if(Gt.has(e)){let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)if(0===e)r+=`\n .branch-label${e} { fill: ${t.nodeBorder};}\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n ${Ht(t)}`;else{const o=e%8;r+=`\n .branch-label${e} { fill: ${t["gitBranchLabel"+o]}; }\n .commit${e} { stroke: ${t["git"+o]}; fill: ${t["git"+o]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+o]}; fill: ${t["gitInv"+o]}; }\n .arrow${e} { stroke: ${t["git"+o]}; }\n `}return r}if(At.has(e)){let r="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(0===o)r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${t.nodeBorder}; }\n .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }\n .label${o} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .arrow${o} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n `;else{const i=o%n.length;r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${n[i]}; fill: ${n[i]}; }\n .commit-highlight${o} { stroke: ${n[i]}; fill: ${n[i]}; }\n .label${o} { fill: ${St.has(e)?t.mainBkg:n[i]}; stroke: ${n[i]}; stroke-width: ${t.strokeWidth}; }\n .arrow${o} { stroke: ${n[i]}; }\n `}return r}{let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)r+=`\n .branch-label${e} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .label${e} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""}}\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n `;return r}},"genColor"),qt=e(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(t,r)=>r).map(r=>{const e=r%8;return`\n .branch-label${r} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${r} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${r} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${r} { fill: ${t["git"+e]}; }\n .arrow${r} { stroke: ${t["git"+e]}; }\n `}).join("\n")}`,"normalTheme"),_t={parser:Q,db:D,renderer:Pt,styles:e(t=>{const r=d(),{theme:e}=r,o=Wt.has(e);return`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n \n ${o?jt(t):qt(t)}\n\n .branch {\n stroke-width: ${t.strokeWidth};\n stroke: ${t.commitLineColor??t.lineColor};\n stroke-dasharray: ${o?"4 2":"2"};\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${o?t.nodeBorder:t.commitLabelColor}; ${o?`font-weight:${t.noteFontWeight};`:""}}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${o?"transparent":t.commitLabelBackground}; opacity: ${o?"":.5}; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${o?t.mainBkg:t.tagLabelBackground}; stroke: ${o?t.nodeBorder:t.tagLabelBorder}; ${o?`filter:${t.dropShadow}`:""} }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n .commit-reverse {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n stroke-width: ${o?t.strokeWidth:3};\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n\n .arrow {\n /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */\n stroke-width: ${Ot.has(e)?t.strokeWidth:8};\n stroke-linecap: round;\n fill: none\n }\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`},"getStyles")};export{_t as diagram};
@@ -1 +0,0 @@
1
- import{R as e,M as s,B as t}from"./mermaid-O7DHMXV3-B4_lK8p1.js";import{r as a,j as i}from"./index-BaK7b1aP.js";import"./index-C_vQZvvM.js";import"./index-FQXZYOsr.js";import"./collectMessageImages-BjN-Gevg.js";import"./useMessageImage-D-dQN21J.js";import"./App-BvW36-4M.js";import"./MessageImage-BtpNPUOG.js";import"./index-CjLh4QgJ.js";import"./index-BNl2LlC5.js";var r=({code:r,language:m,raw:o,className:g,startLine:l,...n})=>{let{shikiTheme:p}=a.useContext(e),d=s(),[j,u]=a.useState(o);return a.useEffect(()=>{if(!d)return void u(o);let e=d.highlight({code:r,language:m,themes:p},e=>{u(e)});e&&u(e)},[r,m,p,d,o]),i.jsx(t,{className:g,language:m,result:j,startLine:l,...n})};export{r as HighlightedCodeBlockBody};
@@ -1 +0,0 @@
1
- import{h as e}from"./index-BaK7b1aP.js";async function a(e){const a=new Image;a.crossOrigin="anonymous",a.src=e,await a.decode();const i=document.createElement("canvas");i.width=a.naturalWidth,i.height=a.naturalHeight;const n=i.getContext("2d");if(!n)throw new Error("Canvas unavailable");return n.drawImage(a,0,0),await new Promise((e,a)=>i.toBlob(i=>i?e(i):a(new Error("Image conversion failed")),"image/png"))}async function i(i){const n=e().writeClipboardImage;n?await n(new Uint8Array(await(await a(i)).arrayBuffer())):await navigator.clipboard.write([new ClipboardItem({"image/png":a(i)})])}function n(e){return"en"===e?{title:"Image viewer",previous:"Previous image",next:"Next image",copy:"Copy image",copied:"Image copied",failed:"Could not copy image",open:"Open original in tab",close:"Close",unavailable:"Image unavailable"}:"zh-TW"===e?{title:"圖片檢視器",previous:"上一張",next:"下一張",copy:"複製圖片",copied:"圖片已複製",failed:"圖片複製失敗",open:"在 Tab 開啟原檔案",close:"關閉",unavailable:"無法載入圖片"}:{title:"图片查看器",previous:"上一张",next:"下一张",copy:"复制图片",copied:"图片已复制",failed:"图片复制失败",open:"在 Tab 打开原文件",close:"关闭",unavailable:"无法加载图片"}}export{n as i,i as w};
@@ -1 +0,0 @@
1
- const n=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class l{constructor(n,l,e){this.normal=l,this.property=n,e&&(this.space=e)}}function e(n,e){const o={},t={};for(const l of n)Object.assign(o,l.property),Object.assign(t,l.normal);return new l(o,t,e)}function o(n){return n.toLowerCase()}l.prototype.normal={},l.prototype.property={},l.prototype.space=void 0;class t{constructor(n,l){this.attribute=l,this.property=n}}t.prototype.attribute="",t.prototype.booleanish=!1,t.prototype.boolean=!1,t.prototype.commaOrSpaceSeparated=!1,t.prototype.commaSeparated=!1,t.prototype.defined=!1,t.prototype.mustUseProperty=!1,t.prototype.number=!1,t.prototype.overloadedBoolean=!1,t.prototype.property="",t.prototype.spaceSeparated=!1,t.prototype.space=void 0;let a=0;const r=g(),u=g(),i=g(),s=g(),c=g(),p=g(),d=g();function g(){return 2**++a}const h=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:u,commaOrSpaceSeparated:d,commaSeparated:p,number:s,overloadedBoolean:i,spaceSeparated:c},Symbol.toStringTag,{value:"Module"})),m=Object.keys(h);class f extends t{constructor(n,l,e,o){let t=-1;if(super(n,l),y(this,"space",o),"number"==typeof e)for(;++t<m.length;){const n=m[t];y(this,m[t],(e&h[n])===h[n])}}}function y(n,l,e){e&&(n[l]=e)}function v(n){const e={},t={};for(const[l,a]of Object.entries(n.properties)){const r=new f(l,n.transform(n.attributes||{},l),a,n.space);n.mustUseProperty&&n.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),e[l]=r,t[o(l)]=l,t[o(r.attribute)]=l}return new l(e,t,n.space)}f.prototype.defined=!0;const k=v({properties:{ariaActiveDescendant:null,ariaAtomic:u,ariaAutoComplete:null,ariaBusy:u,ariaChecked:u,ariaColCount:s,ariaColIndex:s,ariaColSpan:s,ariaControls:c,ariaCurrent:null,ariaDescribedBy:c,ariaDetails:null,ariaDisabled:u,ariaDropEffect:c,ariaErrorMessage:null,ariaExpanded:u,ariaFlowTo:c,ariaGrabbed:u,ariaHasPopup:null,ariaHidden:u,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:c,ariaLevel:s,ariaLive:null,ariaModal:u,ariaMultiLine:u,ariaMultiSelectable:u,ariaOrientation:null,ariaOwns:c,ariaPlaceholder:null,ariaPosInSet:s,ariaPressed:u,ariaReadOnly:u,ariaRelevant:null,ariaRequired:u,ariaRoleDescription:c,ariaRowCount:s,ariaRowIndex:s,ariaRowSpan:s,ariaSelected:u,ariaSetSize:s,ariaSort:null,ariaValueMax:s,ariaValueMin:s,ariaValueNow:s,ariaValueText:null,role:null},transform:(n,l)=>"role"===l?l:"aria-"+l.slice(4).toLowerCase()});function b(n,l){return l in n?n[l]:l}function S(n,l){return b(n,l.toLowerCase())}const C=v({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:p,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:c,autoFocus:r,autoPlay:r,blocking:c,capture:null,charSet:null,checked:r,cite:null,className:c,cols:s,colSpan:null,content:null,contentEditable:u,controls:r,controlsList:c,coords:s|p,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:i,draggable:u,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:c,height:s,hidden:i,high:s,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:null,inert:r,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:c,itemRef:c,itemScope:r,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:s,pattern:null,ping:c,placeholder:null,playsInline:r,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:c,required:r,reversed:r,rows:s,rowSpan:s,sandbox:c,scope:null,scoped:r,seamless:r,selected:r,shadowRootClonable:r,shadowRootDelegatesFocus:r,shadowRootMode:null,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:null,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:u,width:s,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:s,security:null,unselectable:null},space:"html",transform:S}),x=v({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:d,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:c,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:p,g2:p,glyphName:p,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:d,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:s,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:c,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:d,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:d,rev:d,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:d,requiredFeatures:d,requiredFonts:d,requiredFormats:d,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:d,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:d,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:d,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:b}),P=v({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(n,l)=>"xlink:"+l.slice(5).toLowerCase()}),w=v({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:S}),M=v({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(n,l)=>"xml:"+l.slice(3).toLowerCase()}),L=/[A-Z]/g,O=/-[a-z]/g,D=/^data[-\w.:]+$/i;function R(n,l){const e=o(l);let a=l,r=t;if(e in n.normal)return n.property[n.normal[e]];if(e.length>4&&"data"===e.slice(0,4)&&D.test(l)){if("-"===l.charAt(4)){const n=l.slice(5).replace(O,E);a="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=l.slice(4);if(!O.test(n)){let e=n.replace(L,T);"-"!==e.charAt(0)&&(e="-"+e),l="data"+e}}r=f}return new r(a,l)}function T(n){return"-"+n.toLowerCase()}function E(n){return n.charAt(1).toUpperCase()}const A=e([k,C,P,w,M],"html"),U=e([k,x,P,w,M],"svg");function z(n){const l=[],e=String(n||"");let o=e.indexOf(","),t=0,a=!1;for(;!a;){-1===o&&(o=e.length,a=!0);const n=e.slice(t,o).trim();!n&&a||l.push(n),t=o+1,o=e.indexOf(",",t)}return l}function B(n,l){const e=l||{};return(""===n[n.length-1]?[...n,""]:n).join((e.padRight?" ":"")+","+(!1===e.padLeft?"":" ")).trim()}function I(n){const l=String(n||"").trim();return l?l.split(/[ \t\n\r\f]+/g):[]}function H(n){return n.join(" ").trim()}const F=/[ \t\n\f\r]/g;function j(n){return"object"==typeof n?"text"===n.type&&V(n.value):V(n)}function V(n){return""===n.replace(F,"")}export{B as a,H as b,n as c,z as d,R as f,A as h,o as n,I as p,U as s,j as w};
@@ -1 +0,0 @@
1
- import{f as e,h as t,t as n,l as r}from"./index-FQXZYOsr.js";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(t){const n=this;n.parser=function(r){return e(r,{...n.data("settings"),...t,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}const s={}.hasOwnProperty;function c(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&s.call(t,e)){const n=String(t[e]);o=s.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function a(e,t,n){return">"+(n?"":" ")+e}function u(e,t){return f(e,t.inConstruct,!0)&&!f(e,t.notInConstruct,!1)}function f(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function l(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&u(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function h(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>s&&(s=i):i=1,o=r+t.length,r=n.indexOf(t,o);return s}function p(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function d(e,t,n){return(n?"":" ")+e}function m(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function g(e){return"&#x"+e.toString(16).toUpperCase()+";"}function y(e,n,r){const o=t(e),i=t(n);return void 0===o?void 0===i?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===o?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function v(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),s=n.createTracker(r),c=s.move(o);let a=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const u=a.charCodeAt(0),f=y(r.before.charCodeAt(r.before.length-1),u,o);f.inside&&(a=g(u)+a.slice(1));const l=a.charCodeAt(a.length-1),h=y(r.after.charCodeAt(0),l,o);h.inside&&(a=a.slice(0,-1)+g(l));const p=s.move(o);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},c+a+p}v.peek=function(e,t,n){return n.options.emphasis||"*"};const b=function(e){if(null==e)return x;if("function"==typeof e)return w(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=b(e[n]);return w(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return w(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return function(e){return w(function(t){return t&&t.type===e})}(e);throw new Error("Expected function, string, or object as test")};function w(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function x(){return!0}const k=[],E=!0,A=!1,P="skip";function I(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=b(o),s=r?-1:1;!function e(o,c,a){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return f;function f(){let u,f,l,h=k;if((!t||i(o,c,a[a.length-1]||void 0))&&(h=function(e){return Array.isArray(e)?e:"number"==typeof e?[E,e]:null==e?k:[e]}(n(o,a)),h[0]===A))return h;if("children"in o&&o.children){const t=o;if(t.children&&h[0]!==P)for(f=(r?t.children.length:-1)+s,l=a.concat(t);f>-1&&f<t.children.length;){const n=t.children[f];if(u=e(n,f,l)(),u[0]===A)return u;f="number"==typeof u[1]?u[1]:f+s}}return h}}(e,void 0,[])()}function T(e,t,n,r){let o,i,s;"function"==typeof t&&"function"!=typeof n?(i=void 0,s=t,o=n):(i=t,s=n,o=r),I(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},o)}function C(e,t){let r=!1;return T(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,A}),Boolean((!e.depth||e.depth<3)&&n(e)&&(t.options.setext||r))}function O(e){return e.value||""}function S(e,t,n,r){const o=m(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("image");let c=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),u+=a.move(")"),s(),u}function R(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const c=n.createTracker(r);let a=c.move("![");const u=n.safe(e.alt,{before:a,after:"]",...c.current()});a+=c.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const l=n.safe(n.associationId(e),{before:a,after:"]",...c.current()});return s(),n.stack=f,i(),"full"!==o&&u&&u===l?"shortcut"===o?a=a.slice(0,-1):a+=c.move("]"):a+=c.move(l+"]"),a}function z(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function _(e,t){const r=n(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function L(e,t,n,r){const o=m(n),i='"'===o?"Quote":"Apostrophe",s=n.createTracker(r);let c,a;if(_(e,n)){const t=n.stack;n.stack=[],c=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),c(),n.stack=t,r}c=n.enter("link"),a=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=s.move(" "+o),u+=s.move(n.safe(e.title,{before:u,after:o,...s.current()})),u+=s.move(o),a()),u+=s.move(")"),c(),u}function j(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const c=n.createTracker(r);let a=c.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...c.current()});a+=c.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const l=n.safe(n.associationId(e),{before:a,after:"]",...c.current()});return s(),n.stack=f,i(),"full"!==o&&u&&u===l?"shortcut"===o?a=a.slice(0,-1):a+=c.move("]"):a+=c.move(l+"]"),a}function F(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function U(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}O.peek=function(){return"<"},S.peek=function(){return"!"},R.peek=function(){return"!"},z.peek=function(){return"`"},L.peek=function(e,t,n){return _(e,n)?"<":"["},j.peek=function(){return"["};const B=b(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function M(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),s=n.createTracker(r),c=s.move(o+o);let a=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const u=a.charCodeAt(0),f=y(r.before.charCodeAt(r.before.length-1),u,o);f.inside&&(a=g(u)+a.slice(1));const l=a.charCodeAt(a.length-1),h=y(r.after.charCodeAt(0),l,o);h.inside&&(a=a.slice(0,-1)+g(l));const p=s.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},c+a+p}M.peek=function(e,t,n){return n.options.strong||"*"};const N={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),a);return o(),s},break:l,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",s="`"===o?"GraveAccent":"Tilde";if(p(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,d);return e(),t}const c=n.createTracker(r),a=o.repeat(Math.max(h(i,o)+1,3)),u=n.enter("codeFenced");let f=c.move(a);if(e.lang){const t=n.enter(`codeFencedLang${s}`);f+=c.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...c.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);f+=c.move(" "),f+=c.move(n.safe(e.meta,{before:f,after:"\n",encode:["`"],...c.current()})),t()}return f+=c.move("\n"),i&&(f+=c.move(i+"\n")),f+=c.move(a),u(),f},definition:function(e,t,n,r){const o=m(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("definition");let c=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),s(),u},emphasis:v,hardBreak:l,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(C(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===o?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(o),c=n.enter("headingAtx"),a=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u=g(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),a(),c(),u},html:O,image:S,imageReference:R,inlineCode:z,link:L,linkReference:j,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):F(n);const c=e.ordered?"."===s?")":".":function(e){const t=F(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let a=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(a=!0),U(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){a=!0;break}}}}a&&(s=c),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,o(),u},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||F(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let s=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const c=n.createTracker(r);c.move(i+" ".repeat(s-i.length)),c.shift(s);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,c.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?i:i+" ".repeat(s-i.length))+e});return a(),u},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),o(),s},root:function(e,t,n,r){return(e.children.some(function(e){return B(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:M,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(U(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function V(e){if(e)throw e}var $,q;const D=o(function(){if(q)return $;q=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return $=function e(){var t,n,r,a,u,f,l=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},h=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=c(l,n),l!==(a=c(t,n))&&(d&&a&&(i(a)||(u=o(a)))?(u?(u=!1,f=r&&o(r)?r:[]):f=r&&i(r)?r:{},s(l,{name:n,newValue:e(d,f,a)})):void 0!==a&&s(l,{name:n,newValue:a}));return l}}());function G(){}function H(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}class Q extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let o="",i={},s=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?o=e:!i.cause&&e&&(s=!0,o=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const c=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=r(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Q.prototype.file="",Q.prototype.name="",Q.prototype.reason="",Q.prototype.message="",Q.prototype.stack="",Q.prototype.column=void 0,Q.prototype.line=void 0,Q.prototype.ancestors=void 0,Q.prototype.cause=void 0,Q.prototype.fatal=void 0,Q.prototype.place=void 0,Q.prototype.ruleId=void 0,Q.prototype.source=void 0;const J=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');W(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,c=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),c>-1&&(e.codePointAt(i)===t.codePointAt(c--)?c<0&&(o=i):(c=-1,o=s));return r===o?o=s:o<0&&(o=e.length),e.slice(r,o)},Y=function(...e){let t,n=-1;for(;++n<e.length;)W(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){W(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,s=-1,c=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.codePointAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===c);else if(s!==a-1&&2===c){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),s=a,c=0;continue}}else if(o.length>0){o="",i=0,s=a,c=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(s+1,a):o=e.slice(s+1,a),i=a-s-1;s=a,c=0}else 46===n&&c>-1?c++:c=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)};function W(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function K(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const X=["history","path","basename","stem","extname","dirname"];class Z{constructor(e){let t;t=e?K(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<X.length;){const e=X[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)X.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?J(this.path):void 0}set basename(e){te(e,"basename"),ee(e,"basename"),this.path=Y(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?function(e){if(W(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)}(this.path):void 0}set dirname(e){ne(this.basename,"dirname"),this.path=Y(e||"",this.basename)}get extname(){return"string"==typeof this.path?function(e){W(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const c=e.codePointAt(n);if(47!==c)r<0&&(t=!0,r=n+1),46===c?i<0?i=n:1!==s&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}return i<0||r<0||0===s||1===s&&i===r-1&&i===o+1?"":e.slice(i,r)}(this.path):void 0}set extname(e){if(ee(e,"extname"),ne(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Y(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){K(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!K(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),te(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?J(this.path,this.extname):void 0}set stem(e){te(e,"stem"),ee(e,"stem"),this.path=Y(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Q(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function ee(e,t){if(e&&e.includes("/"))throw new Error("`"+t+"` cannot be a path: did not expect `/`")}function te(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ne(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const re=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},oe={}.hasOwnProperty;class ie extends re{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...s){const c=e[++n];let a=-1;if(i)r(i);else{for(;++a<t.length;)null!==s[a]&&void 0!==s[a]||(s[a]=t[a]);t=s,c?function(e,t){let n;return function(...t){const s=e.length>t.length;let c;s&&t.push(r);try{c=e.apply(this,t)}catch(i){if(s&&n)throw i;return r(i)}s||(c&&c.then&&"function"==typeof c.then?c.then(o,r):c instanceof Error?r(c):o(c))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(c,o)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new ie;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(D(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(ue("data",this.frozen),this.namespace[e]=t,this):oe.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ue("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=he(e),n=this.parser||this.Parser;return ce("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),ce("process",this.parser||this.Parser),ae("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=he(e),s=n.parse(i);function c(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(s,i,function(e,t,r){if(e||!t||!r)return c(e);const o=t,i=n.stringify(o,r);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(i)?r.result=i:r.value=i,c(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),ce("processSync",this.parser||this.Parser),ae("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,V(e),t=r}),le("processSync","process",n),t}run(e,t,n){fe(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const s=he(t);r.run(e,s,function(t,r,s){const c=r||e;t?i(t):o?o(c):n(void 0,c,s)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){V(e),n=t,r=!0}),le("runSync","run",r),n}stringify(e,t){this.freeze();const n=he(t),r=this.compiler||this.Compiler;return ae("stringify",r),fe(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(ue("use",this.frozen),null==e);else if("function"==typeof e)c(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):i(e)}return this;function o(e){if("function"==typeof e)c(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=D(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)o(e[t])}}function c(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const s=n[o][1];H(s)&&H(r)&&(r=D(!0,s,r)),n[o]=[e,r,...i]}}}}const se=(new ie).freeze();function ce(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function ae(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function ue(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fe(e){if(!H(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function le(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function he(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Z(e)}const pe={characterGroupPunctuation:2,characterGroupWhitespace:1,tabSize:4},de={linePrefix:"linePrefix",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"};function me(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}export{E as C,P as S,Q as V,me as a,T as b,b as c,C as d,g as e,p as f,o as g,N as h,pe as i,h as l,G as o,u as p,i as r,de as t,se as u,I as v,c as z};
@@ -1 +0,0 @@
1
- import{u as e,a as t,n,b as i,c as r,m as o,d as l,e as a,g as s,s as c,r as u,h as f,i as h,j as p,k as g}from"./index-FQXZYOsr.js";import{c as d,v as m,o as k,a as b,h as x}from"./index-C_vQZvvM.js";function y(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=y(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function v(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=y(e))&&(i&&(i+=" "),i+=t);return i}function C(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function w(e){return"function"==typeof e?e:function(){return e}}const D="phrasing",F=["autolink","link","image","label"];function L(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function A(e){this.config.enter.autolinkProtocol.call(this,e)}function M(e){this.config.exit.autolinkProtocol.call(this,e)}function S(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];k("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function j(e){this.config.exit.autolinkEmail.call(this,e)}function O(e){this.exit(e)}function z(e){!function(e,t){const n=d(({ignore:["link","linkReference"]}||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const e=n[i];t.push([C(e[0]),w(e[1])])}return t}(t);let r=-1;for(;++r<i.length;)m(e,"text",o);function o(e,t){let o,l=-1;for(;++l<t.length;){const e=t[l],i=o?o.children:void 0;if(n(e,i?i.indexOf(e):void 0,o))return;o=e}if(o)return function(e,t){const n=t[t.length-1],o=i[r][0],l=i[r][1];let a=0;const s=n.children.indexOf(e);let c=!1,u=[];o.lastIndex=0;let f=o.exec(e.value);for(;f;){const n=f.index,i={index:f.index,input:f.input,stack:[...t,e]};let r=l(...f,i);if("string"==typeof r&&(r=r.length>0?{type:"text",value:r}:void 0),!1===r?o.lastIndex=n+1:(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(r)?u.push(...r):r&&u.push(r),a=n+f[0].length,c=!0),!o.global)break;f=o.exec(e.value)}return c?(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),n.children.splice(s,1,...u)):u=[e],s+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,R],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),E]])}function R(e,t,n,i,r){let o="";if(!T(r))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const l=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=b(e,"(");let o=b(e,")");for(;-1!==i&&r>o;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[e,n]}(n+i);if(!l[0])return!1;const a={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function E(e,t,n,i){return!(!T(i,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function T(n,i){const r=n.input.charCodeAt(n.index-1);return(0===n.index||e(r)||t(r))&&(!i||47!==r)}function I(){this.buffer()}function _(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function P(){this.buffer()}function H(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function B(e){const t=this.resume(),i=this.stack[this.stack.length-1];k("footnoteReference"===i.type),i.identifier=n(this.sliceSerialize(e)).toLowerCase(),i.label=t}function W(e){this.exit(e)}function q(e){const t=this.resume(),i=this.stack[this.stack.length-1];k("footnoteDefinition"===i.type),i.identifier=n(this.sliceSerialize(e)).toLowerCase(),i.label=t}function V(e){this.exit(e)}function $(e,t,n,i){const r=n.createTracker(i);let o=r.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return o+=r.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=r.move("]"),o}function U(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,i,r){const o=i.createTracker(r);let l=o.move("[^");const a=i.enter("footnoteDefinition"),s=i.enter("label");return l+=o.move(i.safe(i.associationId(e),{before:l,after:"]"})),s(),l+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),l+=o.move((t?"\n":" ")+i.indentLines(i.containerFlow(e,o.current()),t?K:Z))),a(),l},footnoteReference:$},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Z(e,t,n){return 0===t?e:K(e,0,n)}function K(e,t,n){return(n?"":" ")+e}$.peek=function(){return"["};const Q=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function G(e){this.enter({type:"delete",children:[]},e)}function J(e){this.exit(e)}function N(e,t,n,i){const r=n.createTracker(i),o=n.enter("strikethrough");let l=r.move("~~");return l+=n.containerPhrasing(e,{...r.current(),before:l,after:"~"}),l+=r.move("~~"),o(),l}function X(e){return e.length}function Y(e){return null==e?"":String(e)}function ee(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function te(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ne(e){this.exit(e),this.data.inTable=void 0}function ie(e){this.enter({type:"tableRow",children:[]},e)}function re(e){this.exit(e)}function oe(e){this.enter({type:"tableCell",children:[]},e)}function le(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ae));const n=this.stack[this.stack.length-1];k("inlineCode"===n.type),n.value=t,this.exit(e)}function ae(e,t){return"|"===t?t:e}function se(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let i=x.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(i=i.replace(/\|/g,"\\$&")),i},table:function(e,t,n,i){return a(function(e,t,n){const i=e.children;let r=-1;const o=[],l=t.enter("table");for(;++r<i.length;)o[r]=s(i[r],t,n);return l(),o}(e,n,i),e.align)},tableCell:l,tableRow:function(e,t,n,i){const r=a([s(e,n,i)]);return r.slice(0,r.indexOf("\n"))}}};function l(e,t,n,i){const r=n.enter("tableCell"),l=n.enter("phrasing"),a=n.containerPhrasing(e,{...i,before:o,after:o});return l(),r(),a}function a(e,t){return function(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||X,o=[],l=[],a=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],i=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const l=Y(e[u][o]);if(!1!==n.alignDelimiters){const e=r(l);i[o]=e,(void 0===s[o]||e>s[o])&&(s[o]=e)}t.push(l)}l[u]=t,a[u]=i}let f=-1;if("object"==typeof i&&"length"in i)for(;++f<c;)o[f]=ee(i[f]);else{const e=ee(i);for(;++f<c;)o[f]=e}f=-1;const h=[],p=[];for(;++f<c;){const e=o[f];let t="",i="";99===e?(t=":",i=":"):108===e?t=":":114===e&&(i=":");let r=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-i.length);const l=t+"-".repeat(r)+i;!1!==n.alignDelimiters&&(r=t.length+r+i.length,r>s[f]&&(s[f]=r),p[f]=r),h[f]=l}l.splice(1,0,h),a.splice(1,0,p),u=-1;const g=[];for(;++u<l.length;){const e=l[u],t=a[u];f=-1;const i=[];for(;++f<c;){const r=e[f]||"";let l="",a="";if(!1!==n.alignDelimiters){const e=s[f]-(t[f]||0),n=o[f];114===n?l=" ".repeat(e):99===n?e%2?(l=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):(l=" ".repeat(e/2),a=l):a=" ".repeat(e)}!1===n.delimiterStart||f||i.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===r||!1===n.delimiterStart&&!f||i.push(" "),!1!==n.alignDelimiters&&i.push(l),i.push(r),!1!==n.alignDelimiters&&i.push(a),!1!==n.padding&&i.push(" "),!1===n.delimiterEnd&&f===c-1||i.push("|")}g.push(!1===n.delimiterEnd?i.join("").replace(/ +$/,""):i.join(""))}return g.join("\n")}(e,{align:t,alignDelimiters:i,padding:n,stringLength:r})}function s(e,t,n){const i=e.children;let r=-1;const o=[],a=t.enter("tableRow");for(;++r<i.length;)o[r]=l(i[r],0,t,n);return a(),o}}function ce(e){const t=this.stack[this.stack.length-2];k("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function ue(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];k("paragraph"===e.type);const n=e.children[0];if(n&&"text"===n.type){const i=t.children;let r,o=-1;for(;++o<i.length;){const e=i[o];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function fe(e,t,n,i){const r=e.children[0],o="boolean"==typeof e.checked&&r&&"paragraph"===r.type,l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(i);o&&a.move(l);let s=x.listItem(e,t,n,{...i,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),s}N.peek=function(){return"~"};const he={tokenize:function(e,t,n){let i=0;return function t(o){return(87===o||119===o)&&i<3?(i++,e.consume(o),t):46===o&&3===i?(e.consume(o),r):n(o)};function r(e){return null===e?n(e):t(e)}},partial:!0},pe={tokenize:function(n,i,r){let l,a,s;return c;function c(i){return 46===i||95===i?n.check(de,f,u)(i):null===i||o(i)||e(i)||45!==i&&t(i)?f(i):(s=!0,n.consume(i),c)}function u(e){return 95===e?l=!0:(a=l,l=void 0),n.consume(e),c}function f(e){return a||l||!s?r(e):i(e)}},partial:!0},ge={tokenize:function(t,n){let i=0,r=0;return l;function l(s){return 40===s?(i++,t.consume(s),l):41===s&&r<i?a(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?t.check(de,n,a)(s):null===s||o(s)||e(s)?n(s):(t.consume(s),l)}function a(e){return 41===e&&r++,t.consume(e),l}},partial:!0},de={tokenize:function(t,n,i){return l;function l(r){return 33===r||34===r||39===r||41===r||42===r||44===r||46===r||58===r||59===r||63===r||95===r||126===r?(t.consume(r),l):38===r?(t.consume(r),s):93===r?(t.consume(r),a):60===r||null===r||o(r)||e(r)?n(r):i(r)}function a(t){return null===t||40===t||91===t||o(t)||e(t)?n(t):l(t)}function s(e){return r(e)?c(e):i(e)}function c(e){return 59===e?(t.consume(e),l):r(e)?(t.consume(e),c):i(e)}},partial:!0},me={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return i(e)?n(e):t(e)}},partial:!0},ke={name:"wwwAutolink",tokenize:function(e,t,n){const i=this;return function(t){return 87!==t&&119!==t||!Ce.call(i,i.previous)||Le(i.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(he,e.attempt(pe,e.attempt(ge,r),n),n)(t))};function r(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Ce},be={name:"protocolAutolink",tokenize:function(n,i,a){const s=this;let c="",u=!1;return function(e){return 72!==e&&104!==e||!we.call(s,s.previous)||Le(s.events)?a(e):(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),c+=String.fromCodePoint(e),n.consume(e),f)};function f(e){if(r(e)&&c.length<5)return c+=String.fromCodePoint(e),n.consume(e),f;if(58===e){const t=c.toLowerCase();if("http"===t||"https"===t)return n.consume(e),h}return a(e)}function h(e){return 47===e?(n.consume(e),u?p:(u=!0,h)):a(e)}function p(i){return null===i||l(i)||o(i)||e(i)||t(i)?a(i):n.attempt(pe,n.attempt(ge,g),a)(i)}function g(e){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),i(e)}},previous:we},xe={name:"emailAutolink",tokenize:function(e,t,n){const o=this;let l,a;return function(t){return Fe(t)&&De.call(o,o.previous)&&!Le(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)):n(t)};function s(t){return Fe(t)?(e.consume(t),s):64===t?(e.consume(t),c):n(t)}function c(t){return 46===t?e.check(me,f,u)(t):45===t||95===t||i(t)?(a=!0,e.consume(t),c):f(t)}function u(t){return e.consume(t),l=!0,c}function f(i){return a&&l&&r(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:De},ye={};let ve=48;for(;ve<123;)ye[ve]=xe,ve++,58===ve?ve=65:91===ve&&(ve=97);function Ce(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||o(e)}function we(e){return!r(e)}function De(e){return!(47===e||Fe(e))}function Fe(e){return 43===e||45===e||46===e||95===e||i(e)}function Le(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if(("labelLink"===i.type||"labelImage"===i.type)&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ye[43]=xe,ye[45]=xe,ye[46]=xe,ye[95]=xe,ye[72]=[xe,be],ye[104]=[xe,be],ye[87]=[xe,ke],ye[119]=[xe,ke];const Ae={tokenize:function(e,t,n){const i=this;return s(e,function(e){const r=i.events[i.events.length-1];return r&&"gfmFootnoteDefinitionIndent"===r[1].type&&4===r[2].sliceSerialize(r[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Me(e,t,i){const r=this;let o=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return i(o);const s=n(r.sliceSerialize({start:a.end,end:r.now()}));return 94===s.codePointAt(0)&&l.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):i(o)}}function Se(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...a),e}function je(e,t,i){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),c};function c(t){return 94!==t?i(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(s>999||93===c&&!a||null===c||91===c||o(c))return i(c);if(93===c){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return l.includes(n(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):i(c)}return o(c)||(a=!0),s++,e.consume(c),92===c?f:u}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Oe(e,t,i){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,c,u=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),f};function f(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):i(t)}function h(t){if(u>999||93===t&&!c||null===t||91===t||o(t))return i(t);if(93===t){e.exit("chunkString");const i=e.exit("gfmFootnoteDefinitionLabelString");return a=n(r.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return o(t)||(c=!0),u++,e.consume(t),92===t?p:h}function p(t){return 91===t||92===t||93===t?(e.consume(t),u++,h):h(t)}function g(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l.includes(a)||l.push(a),s(e,d,"gfmFootnoteDefinitionWhitespace")):i(t)}function d(e){return t(e)}}function ze(e,t,n){return e.check(a,t,e.attempt(Ae,t,n))}function Re(e){e.exit("gfmFootnoteDefinition")}function Ee(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,i){const r=this.previous,o=this.events;let l=0;return function(t){return 126===r&&"characterEscape"!==o[o.length-1][1].type?i(t):(e.enter("strikethroughSequenceTemporary"),a(t))};function a(o){const s=f(r);if(126===o)return l>1?i(o):(e.consume(o),l++,a);if(l<2&&!t)return i(o);const c=e.exit("strikethroughSequenceTemporary"),u=f(o);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let i=n;for(;i--;)if("exit"===e[i][0]&&"strikethroughSequenceTemporary"===e[i][1].type&&e[i][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[i][1].end.offset-e[i][1].start.offset){e[n][1].type="strikethroughSequence",e[i][1].type="strikethroughSequence";const r={type:"strikethrough",start:Object.assign({},e[i][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)},l=[["enter",r,t],["enter",e[i][1],t],["exit",e[i][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&c(l,l.length,0,u(a,e.slice(i+1,n),t)),c(l,l.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",r,t]]),c(e,i-1,n-i+3,l),n=i+l.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Te{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,i){let r=0;if(0!==n||0!==i.length){for(;r<e.map.length;){if(e.map[r][0]===t)return e.map[r][1]+=n,void e.map[r][2].push(...i);r+=1}e.map.push([t,n,i])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let i=n.pop();for(;i;){for(const t of i)e.push(t);i=n.pop()}this.map.length=0}}function Ie(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if("enter"===r[0])"tableContent"===r[1].type&&i.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===r[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=i.length-1;i[e]="left"===i[e]?"center":"right"}}else if("tableDelimiterRow"===r[1].type)break}else"enter"===r[0]&&"tableDelimiterRow"===r[1].type&&(n=!0);t+=1}return i}function _e(e,t,n){const i=this;let r,l=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){const e=i.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const r=t>-1?i.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?D:c;return o===D&&i.parser.lazy[i.now().line]?n(e):o(e)};function c(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(r=!0,a+=1),u(e)}(t)}function u(t){return null===t?n(t):h(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):p(t)?s(e,u,"whitespace")(t):(a+=1,r&&(r=!1,l+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),f(t)))}function f(t){return null===t||124===t||o(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?g:f)}function g(t){return 92===t||124===t?(e.consume(t),f):f(t)}function d(t){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(t):(e.enter("tableDelimiterRow"),r=!1,p(t)?s(e,m,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):m(t))}function m(t){return 45===t||58===t?b(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),k):w(t)}function k(t){return p(t)?s(e,b,"whitespace")(t):b(t)}function b(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),x):45===t?(a+=1,x(t)):null===t||h(t)?C(t):w(t)}function x(t){return 45===t?(e.enter("tableDelimiterFiller"),y(t)):w(t)}function y(t){return 45===t?(e.consume(t),y):58===t?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return p(t)?s(e,C,"whitespace")(t):C(t)}function C(n){return 124===n?m(n):(null===n||h(n))&&r&&l===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):w(n)}function w(e){return n(e)}function D(t){return e.enter("tableRow"),F(t)}function F(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),F):null===n||h(n)?(e.exit("tableRow"),t(n)):p(n)?s(e,F,"whitespace")(n):(e.enter("data"),L(n))}function L(t){return null===t||124===t||o(t)?(e.exit("data"),F(t)):(e.consume(t),92===t?A:L)}function A(t){return 92===t||124===t?(e.consume(t),L):L(t)}}function Pe(e,t){let n,i,r,o=-1,l=!0,a=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,f=0;const h=new Te;for(;++o<e.length;){const p=e[o],g=p[1];"enter"===p[0]?"tableHead"===g.type?(u=!1,0!==f&&(Be(h,t,f,n,i),i=void 0,f=0),n={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(o,0,[["enter",n,t]])):"tableRow"===g.type||"tableDelimiterRow"===g.type?(l=!0,r=void 0,s=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,i={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(o,0,[["enter",i,t]])),a="tableDelimiterRow"===g.type?2:i?3:1):!a||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type?"tableCellDivider"===g.type&&(l?l=!1:(0!==s[1]&&(c[0]=c[1],r=He(h,t,s,a,void 0,r)),s=c,c=[s[1],o,0,0])):(l=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],r=He(h,t,s,a,void 0,r),s=[0,0,0,0]),c[2]=o)):"tableHead"===g.type?(u=!0,f=o):"tableRow"===g.type||"tableDelimiterRow"===g.type?(f=o,0!==s[1]?(c[0]=c[1],r=He(h,t,s,a,o,r)):0!==c[1]&&(r=He(h,t,c,a,o,r)),a=0):!a||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type||(c[3]=o)}for(0!==f&&Be(h,t,f,n,i),h.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Ie(t.events,o))}return e}function He(e,t,n,i,r,o){const l=1===i?"tableHeader":2===i?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},We(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=We(t.events,n[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const r=We(t.events,n[2]),o=We(t.events,n[3]),l={type:"tableContent",start:Object.assign({},r),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",l,t]]),2!==i){const i=t.events[n[2]],r=t.events[n[3]];if(i[1].end=Object.assign({},r[1].end),i[1].type="chunkText",i[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,i=n[3]-n[2]-1;e.add(t,i,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==r&&(o.end=Object.assign({},We(t.events,r)),e.add(r,0,[["exit",o,t]]),o=void 0),o}function Be(e,t,n,i,r){const o=[],l=We(t.events,n);r&&(r.end=Object.assign({},l),o.push(["exit",r,t])),i.end=Object.assign({},l),o.push(["exit",i,t]),e.add(n+1,0,o)}function We(e,t){const n=e[t],i="enter"===n[0]?"start":"end";return n[1][i]}const qe={name:"tasklistCheck",tokenize:function(e,t,n){const i=this;return function(t){return null===i.previous&&i._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),r):n(t)};function r(t){return o(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(i){return h(i)?t(i):p(i)?e.check({tokenize:Ve},t,n)(i):n(i)}}};function Ve(e,t,n){return s(e,function(e){return null===e?n(e):t(e)},"whitespace")}const $e={};function Ue(e){const t=e||$e,n=this.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),r=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(function(e){return g([{text:ye},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Oe,continuation:{tokenize:ze},exit:Re}},text:{91:{name:"gfmFootnoteCall",tokenize:je},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Me,resolveTo:Se}}},Ee(e),{flow:{null:{name:"table",tokenize:_e,resolveAll:Pe}}},{text:{91:qe}}])}(t)),r.push([{transforms:[z],enter:{literalAutolink:L,literalAutolinkEmail:A,literalAutolinkHttp:A,literalAutolinkWww:A},exit:{literalAutolink:O,literalAutolinkEmail:j,literalAutolinkHttp:M,literalAutolinkWww:S}},{enter:{gfmFootnoteCallString:I,gfmFootnoteCall:_,gfmFootnoteDefinitionLabelString:P,gfmFootnoteDefinition:H},exit:{gfmFootnoteCallString:B,gfmFootnoteCall:W,gfmFootnoteDefinitionLabelString:q,gfmFootnoteDefinition:V}},{canContainEols:["delete"],enter:{strikethrough:G},exit:{strikethrough:J}},{enter:{table:te,tableData:oe,tableHeader:oe,tableRow:ie},exit:{codeText:le,table:ne,tableData:re,tableHeader:re,tableRow:re}},{exit:{taskListCheckValueChecked:ce,taskListCheckValueUnchecked:ce,paragraph:ue}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:D,notInConstruct:F},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:D,notInConstruct:F},{character:":",before:"[ps]",after:"\\/",inConstruct:D,notInConstruct:F}]},U(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Q}],handlers:{delete:N}},se(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:fe}}]}}(t))}export{v as c,Ue as r};