@sme.up/ketchup2 2.0.0-SNAPSHOT-20251013124118 → 2.0.0-SNAPSHOT-20251014080532

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 (144) hide show
  1. package/dist/{_basePickBy-CH3bOhBm.cjs → _basePickBy-BLmM4KRV.cjs} +1 -1
  2. package/dist/{_basePickBy-D1kVOmsO.js → _basePickBy-DDof92JN.js} +2 -2
  3. package/dist/{_baseUniq-BtiWlJcs.cjs → _baseUniq-Cm2L9b0d.cjs} +1 -1
  4. package/dist/{_baseUniq-oIYCGpeI.js → _baseUniq-R9TdUw4v.js} +1 -1
  5. package/dist/{arc-BYZGn5Oq.cjs → arc-1H3uWcvf.cjs} +1 -1
  6. package/dist/{arc-9asNEOPP.js → arc-sMJOEnnc.js} +1 -1
  7. package/dist/{architecture-O4VJ6CD3--NJbAknU.cjs → architecture-O4VJ6CD3-Dha41BCY.cjs} +1 -1
  8. package/dist/{architecture-O4VJ6CD3-TkncoX0i.js → architecture-O4VJ6CD3-DvtVpOqO.js} +1 -1
  9. package/dist/{architectureDiagram-VXUJARFQ-LBFKrVpK.js → architectureDiagram-VXUJARFQ-BUOzAmk9.js} +3 -3
  10. package/dist/{architectureDiagram-VXUJARFQ-CbJFwGvX.cjs → architectureDiagram-VXUJARFQ-D-byhGKU.cjs} +1 -1
  11. package/dist/basic-components/cell/cell-types.d.ts +0 -1
  12. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  14. package/dist/basic-components/list/list.d.ts.map +1 -1
  15. package/dist/{blockDiagram-VD42YOAC-DcJ153MC.js → blockDiagram-VD42YOAC-DOV1-6DE.js} +5 -5
  16. package/dist/{blockDiagram-VD42YOAC-D12hkZZN.cjs → blockDiagram-VD42YOAC-DrN05KC0.cjs} +1 -1
  17. package/dist/{c4Diagram-YG6GDRKO-CEGJmNPP.cjs → c4Diagram-YG6GDRKO-CKWEtxvn.cjs} +1 -1
  18. package/dist/{c4Diagram-YG6GDRKO-BuFiJjMo.js → c4Diagram-YG6GDRKO-NzKZOObA.js} +2 -2
  19. package/dist/channel-DNDeN7tc.cjs +1 -0
  20. package/dist/{channel-Lr9QMebA.js → channel-Dva0ACau.js} +1 -1
  21. package/dist/{chunk-4BX2VUAB-DUs2iDAg.js → chunk-4BX2VUAB-BO2tdOAI.js} +1 -1
  22. package/dist/{chunk-4BX2VUAB-Ctenjwmh.cjs → chunk-4BX2VUAB-C4bhOz4I.cjs} +1 -1
  23. package/dist/{chunk-55IACEB6-ofxwWOwR.cjs → chunk-55IACEB6-CDN6iBkL.cjs} +1 -1
  24. package/dist/{chunk-55IACEB6-W3O3lSeL.js → chunk-55IACEB6-aKeybxQq.js} +1 -1
  25. package/dist/{chunk-B4BG7PRW-Bvo6b7M0.js → chunk-B4BG7PRW-BqCibUB-.js} +4 -4
  26. package/dist/{chunk-B4BG7PRW-DapQwFgj.cjs → chunk-B4BG7PRW-CWjA5Cm4.cjs} +1 -1
  27. package/dist/{chunk-DI55MBZ5-BSNlx0kd.cjs → chunk-DI55MBZ5-BCoyYCJC.cjs} +1 -1
  28. package/dist/{chunk-DI55MBZ5-CK6Z-nEC.js → chunk-DI55MBZ5-BpHIOPyD.js} +3 -3
  29. package/dist/{chunk-FMBD7UC4-D9fLV-IO.js → chunk-FMBD7UC4-BGZhQz-0.js} +1 -1
  30. package/dist/{chunk-FMBD7UC4-B2RjhX6l.cjs → chunk-FMBD7UC4-BoOSMKgX.cjs} +1 -1
  31. package/dist/{chunk-QN33PNHL-DCrQ-z21.js → chunk-QN33PNHL-3i2DWH9C.js} +1 -1
  32. package/dist/{chunk-QN33PNHL-CvKwiHHl.cjs → chunk-QN33PNHL-BXczoumz.cjs} +1 -1
  33. package/dist/{chunk-QZHKN3VN-CGSq2gsc.cjs → chunk-QZHKN3VN-2F4MEJT8.cjs} +1 -1
  34. package/dist/{chunk-QZHKN3VN-CHJEFz_I.js → chunk-QZHKN3VN-CpG5KgUz.js} +1 -1
  35. package/dist/{chunk-TZMSLE5B-Cq71PTLY.js → chunk-TZMSLE5B-DP1R3ZPY.js} +1 -1
  36. package/dist/{chunk-TZMSLE5B-CxRK1C_y.cjs → chunk-TZMSLE5B-V2WTnGEW.cjs} +1 -1
  37. package/dist/{classDiagram-2ON5EDUG-DZaSP3nV.cjs → classDiagram-2ON5EDUG-CEFdLdfl.cjs} +1 -1
  38. package/dist/{classDiagram-v2-WZHVMYZB-D6t8qLzQ.js → classDiagram-2ON5EDUG-D8TijRjI.js} +2 -2
  39. package/dist/{classDiagram-v2-WZHVMYZB-DZaSP3nV.cjs → classDiagram-v2-WZHVMYZB-CEFdLdfl.cjs} +1 -1
  40. package/dist/{classDiagram-2ON5EDUG-D6t8qLzQ.js → classDiagram-v2-WZHVMYZB-D8TijRjI.js} +2 -2
  41. package/dist/clone-CChAnZca.cjs +1 -0
  42. package/dist/{clone-CMEjjERJ.js → clone-CjSx_iUf.js} +1 -1
  43. package/dist/components/app-bar/app-bar.d.ts.map +1 -1
  44. package/dist/components/data-table/data-table-types.d.ts +1 -1
  45. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  46. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
  47. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  48. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  49. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  50. package/dist/components/path/path-types.d.ts +4 -3
  51. package/dist/components/path/path-types.d.ts.map +1 -1
  52. package/dist/components/path/path.d.ts.map +1 -1
  53. package/dist/components/toolbar/toolbar-utils/useToolbarInteractions.d.ts.map +1 -1
  54. package/dist/{cose-bilkent-S5V4N54A-BPyVMTFM.js → cose-bilkent-S5V4N54A-BLaHTsBo.js} +1 -1
  55. package/dist/{cose-bilkent-S5V4N54A-B_9RcO0R.cjs → cose-bilkent-S5V4N54A-B_c5QLlw.cjs} +1 -1
  56. package/dist/{dagre-6UL2VRFP-BLETJ1bZ.cjs → dagre-6UL2VRFP-BWG5xNe6.cjs} +1 -1
  57. package/dist/{dagre-6UL2VRFP-miA74rn6.js → dagre-6UL2VRFP-CW_rnwfI.js} +6 -6
  58. package/dist/{diagram-PSM6KHXK-F4j08Sha.js → diagram-PSM6KHXK-CXxaF5jE.js} +4 -4
  59. package/dist/{diagram-PSM6KHXK-ykAevg4w.cjs → diagram-PSM6KHXK-ij6apBAS.cjs} +1 -1
  60. package/dist/{diagram-QEK2KX5R-D7ss0xkN.js → diagram-QEK2KX5R-C0W-naPR.js} +3 -3
  61. package/dist/{diagram-QEK2KX5R-6MFXYJdx.cjs → diagram-QEK2KX5R-ER51IuXG.cjs} +1 -1
  62. package/dist/{diagram-S2PKOQOG-CUP-wRli.js → diagram-S2PKOQOG-96guBCRU.js} +3 -3
  63. package/dist/{diagram-S2PKOQOG-BKK_aKn0.cjs → diagram-S2PKOQOG-D_uMVr3x.cjs} +1 -1
  64. package/dist/{erDiagram-Q2GNP2WA-C-Pql8nF.cjs → erDiagram-Q2GNP2WA-DDm8AQlO.cjs} +1 -1
  65. package/dist/{erDiagram-Q2GNP2WA-C2S3vPUs.js → erDiagram-Q2GNP2WA-DhAD5YmT.js} +4 -4
  66. package/dist/{flowDiagram-NV44I4VS-CFdRNwzE.cjs → flowDiagram-NV44I4VS-B8xzDp1L.cjs} +1 -1
  67. package/dist/{flowDiagram-NV44I4VS-BDxyNP9a.js → flowDiagram-NV44I4VS-wwUCxUJf.js} +5 -5
  68. package/dist/{ganttDiagram-LVOFAZNH-CClISNHJ.js → ganttDiagram-LVOFAZNH-BXNzlNJl.js} +2 -2
  69. package/dist/{ganttDiagram-LVOFAZNH-B8PMDWb0.cjs → ganttDiagram-LVOFAZNH-CtmdI4Ce.cjs} +1 -1
  70. package/dist/{gitGraph-ZV4HHKMB-BlfkRgjo.js → gitGraph-ZV4HHKMB-Bx-Mts9z.js} +1 -1
  71. package/dist/{gitGraph-ZV4HHKMB-CngjqtRM.cjs → gitGraph-ZV4HHKMB-D4kC1KTv.cjs} +1 -1
  72. package/dist/{gitGraphDiagram-NY62KEGX-B1MoyuqF.cjs → gitGraphDiagram-NY62KEGX-BHMHodqJ.cjs} +1 -1
  73. package/dist/{gitGraphDiagram-NY62KEGX-By0lSMpx.js → gitGraphDiagram-NY62KEGX-CdiJWJy4.js} +4 -4
  74. package/dist/{graph-D0AtMkIo.js → graph-B5JF5qj2.js} +2 -2
  75. package/dist/{graph-nXT1esi7.cjs → graph-DanhvQ8n.cjs} +1 -1
  76. package/dist/{index-D_T9l6nE.js → index-H2RBHbcD.js} +345 -309
  77. package/dist/{index-C7TBTVdT.cjs → index-t2PF2roh.cjs} +18 -18
  78. package/dist/{info-63CPKGFF-DwkXHYPK.cjs → info-63CPKGFF-BhozCHWd.cjs} +1 -1
  79. package/dist/info-63CPKGFF-h-11MU9E.js +5 -0
  80. package/dist/{infoDiagram-F6ZHWCRC-BbTnaMR4.cjs → infoDiagram-F6ZHWCRC-C7MRPj2z.cjs} +1 -1
  81. package/dist/{infoDiagram-F6ZHWCRC-DapNmfU3.js → infoDiagram-F6ZHWCRC-Cdx4rPl2.js} +2 -2
  82. package/dist/{journeyDiagram-XKPGCS4Q-RdMkvP7P.js → journeyDiagram-XKPGCS4Q-CSNuSgB0.js} +4 -4
  83. package/dist/{journeyDiagram-XKPGCS4Q-iA2pbJ_1.cjs → journeyDiagram-XKPGCS4Q-Djw-_o6B.cjs} +1 -1
  84. package/dist/{kanban-definition-3W4ZIXB7-CL23Cm1S.cjs → kanban-definition-3W4ZIXB7-DU5NKScE.cjs} +1 -1
  85. package/dist/{kanban-definition-3W4ZIXB7-Cq5SkVPp.js → kanban-definition-3W4ZIXB7-UH8OqmnL.js} +2 -2
  86. package/dist/ketchup2.cjs.js +1 -1
  87. package/dist/ketchup2.css +1 -1
  88. package/dist/ketchup2.es.js +1 -1
  89. package/dist/{layout-BMURwjr0.cjs → layout-BaKxhTi3.cjs} +1 -1
  90. package/dist/{layout-UQjqivtd.js → layout-pjZYqy5V.js} +4 -4
  91. package/dist/{linear-Drgg1p8m.js → linear-1Y2pl2o7.js} +1 -1
  92. package/dist/{linear-kivixvN6.cjs → linear-CsX8ee81.cjs} +1 -1
  93. package/dist/{mermaid-parser.core-BCUCaKDn.js → mermaid-parser.core-rJSq2yEh.js} +11 -11
  94. package/dist/{mermaid-parser.core-DEehUa3F.cjs → mermaid-parser.core-ykDrRpvX.cjs} +2 -2
  95. package/dist/{mindmap-definition-VGOIOE7T-BPV6pHmd.js → mindmap-definition-VGOIOE7T-BIWlaxoi.js} +3 -3
  96. package/dist/{mindmap-definition-VGOIOE7T-ueTLbEKw.cjs → mindmap-definition-VGOIOE7T-eGvwqsGi.cjs} +1 -1
  97. package/dist/{packet-HUATNLJX-CZDzX1B9.js → packet-HUATNLJX-DpS7ebDZ.js} +1 -1
  98. package/dist/{packet-HUATNLJX-BAQtTQND.cjs → packet-HUATNLJX-DuceMkfN.cjs} +1 -1
  99. package/dist/pie-WTHONI2E-DP5LqR9v.js +5 -0
  100. package/dist/{pie-WTHONI2E-B-c6WMrm.cjs → pie-WTHONI2E-DZIUPQrQ.cjs} +1 -1
  101. package/dist/{pieDiagram-ADFJNKIX-B1Jw-4GF.js → pieDiagram-ADFJNKIX-B-fvy50e.js} +4 -4
  102. package/dist/{pieDiagram-ADFJNKIX-CpPGdI3Y.cjs → pieDiagram-ADFJNKIX-Qzhcj1Eo.cjs} +1 -1
  103. package/dist/{quadrantDiagram-AYHSOK5B-CPm3hJqp.cjs → quadrantDiagram-AYHSOK5B-BsKfUW-g.cjs} +1 -1
  104. package/dist/{quadrantDiagram-AYHSOK5B-bO2WxU4W.js → quadrantDiagram-AYHSOK5B-PPPybvjR.js} +2 -2
  105. package/dist/radar-NJJJXTRR-DK9Wi1Rl.js +5 -0
  106. package/dist/{radar-NJJJXTRR-DzPP9xXn.cjs → radar-NJJJXTRR-h0JGEpWO.cjs} +1 -1
  107. package/dist/{requirementDiagram-UZGBJVZJ-II26rPKe.js → requirementDiagram-UZGBJVZJ-CicvBjTI.js} +3 -3
  108. package/dist/{requirementDiagram-UZGBJVZJ-D6_kBRnv.cjs → requirementDiagram-UZGBJVZJ-DK5xjtZp.cjs} +1 -1
  109. package/dist/{sankeyDiagram-TZEHDZUN-BUEMqw4o.js → sankeyDiagram-TZEHDZUN-1Sjqs-TN.js} +1 -1
  110. package/dist/{sankeyDiagram-TZEHDZUN-CN6Os1kp.cjs → sankeyDiagram-TZEHDZUN-bM9UKf5O.cjs} +1 -1
  111. package/dist/{sequenceDiagram-WL72ISMW-CvEjXOwq.cjs → sequenceDiagram-WL72ISMW-D8oGbYOl.cjs} +1 -1
  112. package/dist/{sequenceDiagram-WL72ISMW-D_SSlsHN.js → sequenceDiagram-WL72ISMW-Du9rJmgU.js} +3 -3
  113. package/dist/{stateDiagram-FKZM4ZOC-DT4YeHaq.cjs → stateDiagram-FKZM4ZOC-BNHNY7cQ.cjs} +1 -1
  114. package/dist/{stateDiagram-FKZM4ZOC-BN8Df4ab.js → stateDiagram-FKZM4ZOC-C_v6BjlA.js} +4 -4
  115. package/dist/{stateDiagram-v2-4FDKWEC3-DboEWnpV.js → stateDiagram-v2-4FDKWEC3-CN0HsDo2.js} +2 -2
  116. package/dist/{stateDiagram-v2-4FDKWEC3-BmsHpU0u.cjs → stateDiagram-v2-4FDKWEC3-DxaLoSrQ.cjs} +1 -1
  117. package/dist/{timeline-definition-IT6M3QCI-b4-ORaM3.js → timeline-definition-IT6M3QCI-DIVMfjQj.js} +2 -2
  118. package/dist/{timeline-definition-IT6M3QCI-CK1oV5zs.cjs → timeline-definition-IT6M3QCI-LIrB_2yA.cjs} +1 -1
  119. package/dist/{treemap-75Q7IDZK-D43AGe1b.cjs → treemap-75Q7IDZK-DieQ4oEY.cjs} +1 -1
  120. package/dist/{treemap-75Q7IDZK-BLSQNE8C.js → treemap-75Q7IDZK-i-w_6ZNl.js} +1 -1
  121. package/dist/types/data-structures.d.ts +9 -6
  122. package/dist/types/data-structures.d.ts.map +1 -1
  123. package/dist/utils/display-value.d.ts +1 -1
  124. package/dist/utils/display-value.d.ts.map +1 -1
  125. package/dist/utils/objects.d.ts +3 -3
  126. package/dist/utils/objects.d.ts.map +1 -1
  127. package/dist/utils/wrapper-types/boolean.d.ts +2 -2
  128. package/dist/utils/wrapper-types/boolean.d.ts.map +1 -1
  129. package/dist/utils/wrapper-types/date.d.ts +2 -2
  130. package/dist/utils/wrapper-types/date.d.ts.map +1 -1
  131. package/dist/utils/wrapper-types/list.d.ts +2 -2
  132. package/dist/utils/wrapper-types/list.d.ts.map +1 -1
  133. package/dist/utils/wrapper-types/number.d.ts +2 -2
  134. package/dist/utils/wrapper-types/number.d.ts.map +1 -1
  135. package/dist/utils/wrapper-types/time/time.d.ts +2 -2
  136. package/dist/utils/wrapper-types/time/time.d.ts.map +1 -1
  137. package/dist/{xychartDiagram-PRI3JC2R-CmRlCHFg.cjs → xychartDiagram-PRI3JC2R-CyRWCd9s.cjs} +1 -1
  138. package/dist/{xychartDiagram-PRI3JC2R-CDs04PPy.js → xychartDiagram-PRI3JC2R-DTA6snoa.js} +2 -2
  139. package/package.json +1 -1
  140. package/dist/channel-CcTa2el1.cjs +0 -1
  141. package/dist/clone-DvwrFjXW.cjs +0 -1
  142. package/dist/info-63CPKGFF-BNSwq-Yq.js +0 -5
  143. package/dist/pie-WTHONI2E-Cbqczi3_.js +0 -5
  144. package/dist/radar-NJJJXTRR-DzIutv7n.js +0 -5
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-C7TBTVdT.cjs"),se=require("./chunk-QN33PNHL-CvKwiHHl.cjs"),ie=require("./chunk-4BX2VUAB-Ctenjwmh.cjs"),oe=require("./mermaid-parser.core-DEehUa3F.cjs"),I=require("./defaultLocale-DIVzfLaQ.cjs"),U=require("./ordinal-CagbB1m8.cjs");function ce(a){var t=0,l=a.children,n=l&&l.length;if(!n)t=1;else for(;--n>=0;)t+=l[n].value;a.value=t}function de(){return this.eachAfter(ce)}function ue(a,t){let l=-1;for(const n of this)a.call(t,n,++l,this);return this}function he(a,t){for(var l=this,n=[l],o,s,d=-1;l=n.pop();)if(a.call(t,l,++d,this),o=l.children)for(s=o.length-1;s>=0;--s)n.push(o[s]);return this}function pe(a,t){for(var l=this,n=[l],o=[],s,d,h,m=-1;l=n.pop();)if(o.push(l),s=l.children)for(d=0,h=s.length;d<h;++d)n.push(s[d]);for(;l=o.pop();)a.call(t,l,++m,this);return this}function fe(a,t){let l=-1;for(const n of this)if(a.call(t,n,++l,this))return n}function ge(a){return this.eachAfter(function(t){for(var l=+a(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)l+=n[o].value;t.value=l})}function me(a){return this.eachBefore(function(t){t.children&&t.children.sort(a)})}function ye(a){for(var t=this,l=Se(t,a),n=[t];t!==l;)t=t.parent,n.push(t);for(var o=n.length;a!==l;)n.splice(o,0,a),a=a.parent;return n}function Se(a,t){if(a===t)return a;var l=a.ancestors(),n=t.ancestors(),o=null;for(a=l.pop(),t=n.pop();a===t;)o=a,a=l.pop(),t=n.pop();return o}function ve(){for(var a=this,t=[a];a=a.parent;)t.push(a);return t}function xe(){return Array.from(this)}function be(){var a=[];return this.eachBefore(function(t){t.children||a.push(t)}),a}function we(){var a=this,t=[];return a.each(function(l){l!==a&&t.push({source:l.parent,target:l})}),t}function*Ce(){var a=this,t,l=[a],n,o,s;do for(t=l.reverse(),l=[];a=t.pop();)if(yield a,n=a.children)for(o=0,s=n.length;o<s;++o)l.push(n[o]);while(l.length)}function Q(a,t){a instanceof Map?(a=[void 0,a],t===void 0&&(t=Le)):t===void 0&&(t=Te);for(var l=new j(a),n,o=[l],s,d,h,m;n=o.pop();)if((d=t(n.data))&&(m=(d=Array.from(d)).length))for(n.children=d,h=m-1;h>=0;--h)o.push(s=d[h]=new j(d[h])),s.parent=n,s.depth=n.depth+1;return l.eachBefore(Ae)}function _e(){return Q(this).eachBefore($e)}function Te(a){return a.children}function Le(a){return Array.isArray(a)?a[1]:null}function $e(a){a.data.value!==void 0&&(a.value=a.data.value),a.data=a.data.data}function Ae(a){var t=0;do a.height=t;while((a=a.parent)&&a.height<++t)}function j(a){this.data=a,this.depth=this.height=0,this.parent=null}j.prototype=Q.prototype={constructor:j,count:de,each:ue,eachAfter:pe,eachBefore:he,find:fe,sum:ge,sort:me,path:ye,ancestors:ve,descendants:xe,leaves:be,links:we,copy:_e,[Symbol.iterator]:Ce};function ke(a){if(typeof a!="function")throw new Error;return a}function q(){return 0}function O(a){return function(){return a}}function Ne(a){a.x0=Math.round(a.x0),a.y0=Math.round(a.y0),a.x1=Math.round(a.x1),a.y1=Math.round(a.y1)}function Me(a,t,l,n,o){for(var s=a.children,d,h=-1,m=s.length,c=a.value&&(n-t)/a.value;++h<m;)d=s[h],d.y0=l,d.y1=o,d.x0=t,d.x1=t+=d.value*c}function Fe(a,t,l,n,o){for(var s=a.children,d,h=-1,m=s.length,c=a.value&&(o-l)/a.value;++h<m;)d=s[h],d.x0=t,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var ze=(1+Math.sqrt(5))/2;function Ve(a,t,l,n,o,s){for(var d=[],h=t.children,m,c,p=0,w=0,r=h.length,b,v,x=t.value,f,y,N,k,V,R,M;p<r;){b=o-l,v=s-n;do f=h[w++].value;while(!f&&w<r);for(y=N=f,R=Math.max(v/b,b/v)/(x*a),M=f*f*R,V=Math.max(N/M,M/y);w<r;++w){if(f+=c=h[w].value,c<y&&(y=c),c>N&&(N=c),M=f*f*R,k=Math.max(N/M,M/y),k>V){f-=c;break}V=k}d.push(m={value:f,dice:b<v,children:h.slice(p,w)}),m.dice?Me(m,l,n,o,x?n+=v*f/x:s):Fe(m,l,n,x?l+=b*f/x:o,s),x-=f,p=w}return d}const Pe=function a(t){function l(n,o,s,d,h){Ve(t,n,o,s,d,h)}return l.ratio=function(n){return a((n=+n)>1?n:1)},l}(ze);function Be(){var a=Pe,t=!1,l=1,n=1,o=[0],s=q,d=q,h=q,m=q,c=q;function p(r){return r.x0=r.y0=0,r.x1=l,r.y1=n,r.eachBefore(w),o=[0],t&&r.eachBefore(Ne),r}function w(r){var b=o[r.depth],v=r.x0+b,x=r.y0+b,f=r.x1-b,y=r.y1-b;f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),r.x0=v,r.y0=x,r.x1=f,r.y1=y,r.children&&(b=o[r.depth+1]=s(r)/2,v+=c(r)-b,x+=d(r)-b,f-=h(r)-b,y-=m(r)-b,f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),a(r,v,x,f,y))}return p.round=function(r){return arguments.length?(t=!!r,p):t},p.size=function(r){return arguments.length?(l=+r[0],n=+r[1],p):[l,n]},p.tile=function(r){return arguments.length?(a=ke(r),p):a},p.padding=function(r){return arguments.length?p.paddingInner(r).paddingOuter(r):p.paddingInner()},p.paddingInner=function(r){return arguments.length?(s=typeof r=="function"?r:O(+r),p):s},p.paddingOuter=function(r){return arguments.length?p.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r):p.paddingTop()},p.paddingTop=function(r){return arguments.length?(d=typeof r=="function"?r:O(+r),p):d},p.paddingRight=function(r){return arguments.length?(h=typeof r=="function"?r:O(+r),p):h},p.paddingBottom=function(r){return arguments.length?(m=typeof r=="function"?r:O(+r),p):m},p.paddingLeft=function(r){return arguments.length?(c=typeof r=="function"?r:O(+r),p):c},p}var D,J=(D=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=u.setAccTitle,this.getAccTitle=u.getAccTitle,this.setDiagramTitle=u.setDiagramTitle,this.getDiagramTitle=u.getDiagramTitle,this.getAccDescription=u.getAccDescription,this.setAccDescription=u.setAccDescription}getNodes(){return this.nodes}getConfig(){const t=u.defaultConfig_default,l=u.getConfig();return u.cleanAndMerge({...t.treemap,...l.treemap??{}})}addNode(t,l){this.nodes.push(t),this.levels.set(t,l),l===0&&(this.outerNodes.push(t),this.root??=t)}getRoot(){return{name:"",children:this.outerNodes}}addClass(t,l){const n=this.classes.get(t)??{id:t,styles:[],textStyles:[]},o=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");o&&o.forEach(s=>{u.isLabelStyle(s)&&(n?.textStyles?n.textStyles.push(s):n.textStyles=[s]),n?.styles?n.styles.push(s):n.styles=[s]}),this.classes.set(t,n)}getClasses(){return this.classes}getStylesForClass(t){return this.classes.get(t)?.styles??[]}clear(){u.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},u.__name(D,"TreeMapDB"),D);function K(a){if(!a.length)return[];const t=[],l=[];return a.forEach(n=>{const o={name:n.name,children:n.type==="Leaf"?void 0:[]};for(o.classSelector=n?.classSelector,n?.cssCompiledStyles&&(o.cssCompiledStyles=[n.cssCompiledStyles]),n.type==="Leaf"&&n.value!==void 0&&(o.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)t.push(o);else{const s=l[l.length-1].node;s.children?s.children.push(o):s.children=[o]}n.type!=="Leaf"&&l.push({node:o,level:n.level})}),t}u.__name(K,"buildHierarchy");var De=u.__name((a,t)=>{ie.populateCommonDb(a,t);const l=[];for(const s of a.TreemapRows??[])s.$type==="ClassDefStatement"&&t.addClass(s.className??"",s.styleText??"");for(const s of a.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,m=Re(d),c=d.classSelector?t.getStylesForClass(d.classSelector):[],p=c.length>0?c.join(";"):void 0,w={level:h,name:m,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:p};l.push(w)}const n=K(l),o=u.__name((s,d)=>{for(const h of s)t.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(n,0)},"populate"),Re=u.__name(a=>a.name?String(a.name):"","getItemName"),ee={parser:{yy:void 0},parse:u.__name(async a=>{try{const t=oe.parse,l=await t("treemap",a);u.log.debug("Treemap AST:",l);const n=ee.parser?.yy;if(!(n instanceof J))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");De(l,n)}catch(t){throw u.log.error("Error parsing treemap:",t),t}},"parse")},Ee=10,B=10,G=25,We=u.__name((a,t,l,n)=>{const o=n.db,s=o.getConfig(),d=s.padding??Ee,h=o.getDiagramTitle(),m=o.getRoot(),{themeVariables:c}=u.getConfig();if(!m)return;const p=h?30:0,w=u.selectSvgElement(t),r=s.nodeWidth?s.nodeWidth*B:960,b=s.nodeHeight?s.nodeHeight*B:500,v=r,x=b+p;w.attr("viewBox",`0 0 ${v} ${x}`),u.configureSvgSize(w,x,v,s.useMaxWidth);let f;try{const e=s.valueFormat||",";if(e==="$0,0")f=u.__name(i=>"$"+I.format(",")(i),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const i=/\.\d+/.exec(e),g=i?i[0]:"";f=u.__name(C=>"$"+I.format(","+g)(C),"valueFormat")}else if(e.startsWith("$")){const i=e.substring(1);f=u.__name(g=>"$"+I.format(i||"")(g),"valueFormat")}else f=I.format(e)}catch(e){u.log.error("Error creating format function:",e),f=I.format(",")}const y=U.ordinal().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=U.ordinal().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),k=U.ordinal().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);h&&w.append("text").attr("x",v/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const V=w.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),R=Q(m).sum(e=>e.value??0).sort((e,i)=>(i.value??0)-(e.value??0)),Z=Be().size([r,b]).paddingTop(e=>e.children&&e.children.length>0?G+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(R),te=Z.descendants().filter(e=>e.children&&e.children.length>0),E=V.selectAll(".treemapSection").data(te).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",G).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),E.append("clipPath").attr("id",(e,i)=>`clip-section-${t}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",G),E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,i)=>`treemapSection section${i}`).attr("fill",e=>y(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>N(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const i=u.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),E.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",G/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=u.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return i+g.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const i=u.select(this),g=e.data.name;i.text(g);const C=e.x1-e.x0,L=6;let $;s.showValues!==!1&&e.value?$=C-10-30-10-L:$=C-L-6;const A=Math.max(15,$),S=i.node();if(S.getComputedTextLength()>A){const _="...";let T=g;for(;T.length>0;){if(T=g.substring(0,T.length-1),T.length===0){i.text(_),S.getComputedTextLength()>A&&i.text("");break}if(i.text(T+_),S.getComputedTextLength()<=A)break}}}),s.showValues!==!1&&E.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",G/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?f(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=u.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return i+g.labelStyles.replace("color:","fill:")});const ae=Z.leaves(),X=V.selectAll(".treemapLeafGroup").data(ae).enter().append("g").attr("class",(e,i)=>`treemapNode treemapLeafGroup leaf${i}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);X.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("style",e=>u.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("stroke-width",3),X.append("clipPath").attr("id",(e,i)=>`clip-${t}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),X.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+k(e.data.name)+";",g=u.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return i+g.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,i)=>`url(#clip-${t}-${i})`).text(e=>e.data.name).each(function(e){const i=u.select(this),g=e.x1-e.x0,C=e.y1-e.y0,L=i.node(),$=4,P=g-2*$,A=C-2*$;if(P<10||A<10){i.style("display","none");return}let S=parseInt(i.style("font-size"),10);const F=8,_=28,T=.6,z=6,W=2;for(;L.getComputedTextLength()>P&&S>F;)S--,i.style("font-size",`${S}px`);let H=Math.max(z,Math.min(_,Math.round(S*T))),Y=S+W+H;for(;Y>A&&S>F&&(S--,H=Math.max(z,Math.min(_,Math.round(S*T))),!(H<z&&S===F));)i.style("font-size",`${S}px`),Y=S+W+H;i.style("font-size",`${S}px`),(L.getComputedTextLength()>P||S<F||A<S)&&i.style("display","none")}),s.showValues!==!1&&X.append("text").attr("class","treemapValue").attr("x",i=>(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const g="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+k(i.data.name)+";",C=u.styles2String({cssCompiledStyles:i.data.cssCompiledStyles});return g+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,g)=>`url(#clip-${t}-${g})`).text(i=>i.value?f(i.value):"").each(function(i){const g=u.select(this),C=this.parentNode;if(!C){g.style("display","none");return}const L=u.select(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){g.style("display","none");return}const $=parseFloat(L.style("font-size")),P=28,A=.6,S=6,F=2,_=Math.max(S,Math.min(P,Math.round($*A)));g.style("font-size",`${_}px`);const z=(i.y1-i.y0)/2+$/2+F;g.attr("y",z);const W=i.x1-i.x0,le=i.y1-i.y0-4,re=W-2*4;g.node().getComputedTextLength()>re||z+_>le||_<S?g.style("display","none"):g.style("display",null)});const ne=s.diagramPadding??8;se.setupViewPortForSVG(w,ne,"flowchart",s?.useMaxWidth||!1)},"draw"),He=u.__name(function(a,t){return t.db.getClasses()},"getClasses"),Ie={draw:We,getClasses:He},qe={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},Oe=u.__name(({treemap:a}={})=>{const t=u.cleanAndMerge(qe,a);return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-t2PF2roh.cjs"),se=require("./chunk-QN33PNHL-BXczoumz.cjs"),ie=require("./chunk-4BX2VUAB-C4bhOz4I.cjs"),oe=require("./mermaid-parser.core-ykDrRpvX.cjs"),I=require("./defaultLocale-DIVzfLaQ.cjs"),U=require("./ordinal-CagbB1m8.cjs");function ce(a){var t=0,l=a.children,n=l&&l.length;if(!n)t=1;else for(;--n>=0;)t+=l[n].value;a.value=t}function de(){return this.eachAfter(ce)}function ue(a,t){let l=-1;for(const n of this)a.call(t,n,++l,this);return this}function he(a,t){for(var l=this,n=[l],o,s,d=-1;l=n.pop();)if(a.call(t,l,++d,this),o=l.children)for(s=o.length-1;s>=0;--s)n.push(o[s]);return this}function pe(a,t){for(var l=this,n=[l],o=[],s,d,h,m=-1;l=n.pop();)if(o.push(l),s=l.children)for(d=0,h=s.length;d<h;++d)n.push(s[d]);for(;l=o.pop();)a.call(t,l,++m,this);return this}function fe(a,t){let l=-1;for(const n of this)if(a.call(t,n,++l,this))return n}function ge(a){return this.eachAfter(function(t){for(var l=+a(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)l+=n[o].value;t.value=l})}function me(a){return this.eachBefore(function(t){t.children&&t.children.sort(a)})}function ye(a){for(var t=this,l=Se(t,a),n=[t];t!==l;)t=t.parent,n.push(t);for(var o=n.length;a!==l;)n.splice(o,0,a),a=a.parent;return n}function Se(a,t){if(a===t)return a;var l=a.ancestors(),n=t.ancestors(),o=null;for(a=l.pop(),t=n.pop();a===t;)o=a,a=l.pop(),t=n.pop();return o}function ve(){for(var a=this,t=[a];a=a.parent;)t.push(a);return t}function xe(){return Array.from(this)}function be(){var a=[];return this.eachBefore(function(t){t.children||a.push(t)}),a}function we(){var a=this,t=[];return a.each(function(l){l!==a&&t.push({source:l.parent,target:l})}),t}function*Ce(){var a=this,t,l=[a],n,o,s;do for(t=l.reverse(),l=[];a=t.pop();)if(yield a,n=a.children)for(o=0,s=n.length;o<s;++o)l.push(n[o]);while(l.length)}function Q(a,t){a instanceof Map?(a=[void 0,a],t===void 0&&(t=Le)):t===void 0&&(t=Te);for(var l=new j(a),n,o=[l],s,d,h,m;n=o.pop();)if((d=t(n.data))&&(m=(d=Array.from(d)).length))for(n.children=d,h=m-1;h>=0;--h)o.push(s=d[h]=new j(d[h])),s.parent=n,s.depth=n.depth+1;return l.eachBefore(Ae)}function _e(){return Q(this).eachBefore($e)}function Te(a){return a.children}function Le(a){return Array.isArray(a)?a[1]:null}function $e(a){a.data.value!==void 0&&(a.value=a.data.value),a.data=a.data.data}function Ae(a){var t=0;do a.height=t;while((a=a.parent)&&a.height<++t)}function j(a){this.data=a,this.depth=this.height=0,this.parent=null}j.prototype=Q.prototype={constructor:j,count:de,each:ue,eachAfter:pe,eachBefore:he,find:fe,sum:ge,sort:me,path:ye,ancestors:ve,descendants:xe,leaves:be,links:we,copy:_e,[Symbol.iterator]:Ce};function ke(a){if(typeof a!="function")throw new Error;return a}function q(){return 0}function O(a){return function(){return a}}function Ne(a){a.x0=Math.round(a.x0),a.y0=Math.round(a.y0),a.x1=Math.round(a.x1),a.y1=Math.round(a.y1)}function Me(a,t,l,n,o){for(var s=a.children,d,h=-1,m=s.length,c=a.value&&(n-t)/a.value;++h<m;)d=s[h],d.y0=l,d.y1=o,d.x0=t,d.x1=t+=d.value*c}function Fe(a,t,l,n,o){for(var s=a.children,d,h=-1,m=s.length,c=a.value&&(o-l)/a.value;++h<m;)d=s[h],d.x0=t,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var ze=(1+Math.sqrt(5))/2;function Ve(a,t,l,n,o,s){for(var d=[],h=t.children,m,c,p=0,w=0,r=h.length,b,v,x=t.value,f,y,N,k,V,R,M;p<r;){b=o-l,v=s-n;do f=h[w++].value;while(!f&&w<r);for(y=N=f,R=Math.max(v/b,b/v)/(x*a),M=f*f*R,V=Math.max(N/M,M/y);w<r;++w){if(f+=c=h[w].value,c<y&&(y=c),c>N&&(N=c),M=f*f*R,k=Math.max(N/M,M/y),k>V){f-=c;break}V=k}d.push(m={value:f,dice:b<v,children:h.slice(p,w)}),m.dice?Me(m,l,n,o,x?n+=v*f/x:s):Fe(m,l,n,x?l+=b*f/x:o,s),x-=f,p=w}return d}const Pe=function a(t){function l(n,o,s,d,h){Ve(t,n,o,s,d,h)}return l.ratio=function(n){return a((n=+n)>1?n:1)},l}(ze);function Be(){var a=Pe,t=!1,l=1,n=1,o=[0],s=q,d=q,h=q,m=q,c=q;function p(r){return r.x0=r.y0=0,r.x1=l,r.y1=n,r.eachBefore(w),o=[0],t&&r.eachBefore(Ne),r}function w(r){var b=o[r.depth],v=r.x0+b,x=r.y0+b,f=r.x1-b,y=r.y1-b;f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),r.x0=v,r.y0=x,r.x1=f,r.y1=y,r.children&&(b=o[r.depth+1]=s(r)/2,v+=c(r)-b,x+=d(r)-b,f-=h(r)-b,y-=m(r)-b,f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),a(r,v,x,f,y))}return p.round=function(r){return arguments.length?(t=!!r,p):t},p.size=function(r){return arguments.length?(l=+r[0],n=+r[1],p):[l,n]},p.tile=function(r){return arguments.length?(a=ke(r),p):a},p.padding=function(r){return arguments.length?p.paddingInner(r).paddingOuter(r):p.paddingInner()},p.paddingInner=function(r){return arguments.length?(s=typeof r=="function"?r:O(+r),p):s},p.paddingOuter=function(r){return arguments.length?p.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r):p.paddingTop()},p.paddingTop=function(r){return arguments.length?(d=typeof r=="function"?r:O(+r),p):d},p.paddingRight=function(r){return arguments.length?(h=typeof r=="function"?r:O(+r),p):h},p.paddingBottom=function(r){return arguments.length?(m=typeof r=="function"?r:O(+r),p):m},p.paddingLeft=function(r){return arguments.length?(c=typeof r=="function"?r:O(+r),p):c},p}var D,J=(D=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=u.setAccTitle,this.getAccTitle=u.getAccTitle,this.setDiagramTitle=u.setDiagramTitle,this.getDiagramTitle=u.getDiagramTitle,this.getAccDescription=u.getAccDescription,this.setAccDescription=u.setAccDescription}getNodes(){return this.nodes}getConfig(){const t=u.defaultConfig_default,l=u.getConfig();return u.cleanAndMerge({...t.treemap,...l.treemap??{}})}addNode(t,l){this.nodes.push(t),this.levels.set(t,l),l===0&&(this.outerNodes.push(t),this.root??=t)}getRoot(){return{name:"",children:this.outerNodes}}addClass(t,l){const n=this.classes.get(t)??{id:t,styles:[],textStyles:[]},o=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");o&&o.forEach(s=>{u.isLabelStyle(s)&&(n?.textStyles?n.textStyles.push(s):n.textStyles=[s]),n?.styles?n.styles.push(s):n.styles=[s]}),this.classes.set(t,n)}getClasses(){return this.classes}getStylesForClass(t){return this.classes.get(t)?.styles??[]}clear(){u.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},u.__name(D,"TreeMapDB"),D);function K(a){if(!a.length)return[];const t=[],l=[];return a.forEach(n=>{const o={name:n.name,children:n.type==="Leaf"?void 0:[]};for(o.classSelector=n?.classSelector,n?.cssCompiledStyles&&(o.cssCompiledStyles=[n.cssCompiledStyles]),n.type==="Leaf"&&n.value!==void 0&&(o.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)t.push(o);else{const s=l[l.length-1].node;s.children?s.children.push(o):s.children=[o]}n.type!=="Leaf"&&l.push({node:o,level:n.level})}),t}u.__name(K,"buildHierarchy");var De=u.__name((a,t)=>{ie.populateCommonDb(a,t);const l=[];for(const s of a.TreemapRows??[])s.$type==="ClassDefStatement"&&t.addClass(s.className??"",s.styleText??"");for(const s of a.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,m=Re(d),c=d.classSelector?t.getStylesForClass(d.classSelector):[],p=c.length>0?c.join(";"):void 0,w={level:h,name:m,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:p};l.push(w)}const n=K(l),o=u.__name((s,d)=>{for(const h of s)t.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(n,0)},"populate"),Re=u.__name(a=>a.name?String(a.name):"","getItemName"),ee={parser:{yy:void 0},parse:u.__name(async a=>{try{const t=oe.parse,l=await t("treemap",a);u.log.debug("Treemap AST:",l);const n=ee.parser?.yy;if(!(n instanceof J))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");De(l,n)}catch(t){throw u.log.error("Error parsing treemap:",t),t}},"parse")},Ee=10,B=10,G=25,We=u.__name((a,t,l,n)=>{const o=n.db,s=o.getConfig(),d=s.padding??Ee,h=o.getDiagramTitle(),m=o.getRoot(),{themeVariables:c}=u.getConfig();if(!m)return;const p=h?30:0,w=u.selectSvgElement(t),r=s.nodeWidth?s.nodeWidth*B:960,b=s.nodeHeight?s.nodeHeight*B:500,v=r,x=b+p;w.attr("viewBox",`0 0 ${v} ${x}`),u.configureSvgSize(w,x,v,s.useMaxWidth);let f;try{const e=s.valueFormat||",";if(e==="$0,0")f=u.__name(i=>"$"+I.format(",")(i),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const i=/\.\d+/.exec(e),g=i?i[0]:"";f=u.__name(C=>"$"+I.format(","+g)(C),"valueFormat")}else if(e.startsWith("$")){const i=e.substring(1);f=u.__name(g=>"$"+I.format(i||"")(g),"valueFormat")}else f=I.format(e)}catch(e){u.log.error("Error creating format function:",e),f=I.format(",")}const y=U.ordinal().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=U.ordinal().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),k=U.ordinal().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);h&&w.append("text").attr("x",v/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const V=w.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),R=Q(m).sum(e=>e.value??0).sort((e,i)=>(i.value??0)-(e.value??0)),Z=Be().size([r,b]).paddingTop(e=>e.children&&e.children.length>0?G+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(R),te=Z.descendants().filter(e=>e.children&&e.children.length>0),E=V.selectAll(".treemapSection").data(te).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",G).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),E.append("clipPath").attr("id",(e,i)=>`clip-section-${t}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",G),E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,i)=>`treemapSection section${i}`).attr("fill",e=>y(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>N(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const i=u.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),E.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",G/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=u.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return i+g.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const i=u.select(this),g=e.data.name;i.text(g);const C=e.x1-e.x0,L=6;let $;s.showValues!==!1&&e.value?$=C-10-30-10-L:$=C-L-6;const A=Math.max(15,$),S=i.node();if(S.getComputedTextLength()>A){const _="...";let T=g;for(;T.length>0;){if(T=g.substring(0,T.length-1),T.length===0){i.text(_),S.getComputedTextLength()>A&&i.text("");break}if(i.text(T+_),S.getComputedTextLength()<=A)break}}}),s.showValues!==!1&&E.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",G/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?f(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=u.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return i+g.labelStyles.replace("color:","fill:")});const ae=Z.leaves(),X=V.selectAll(".treemapLeafGroup").data(ae).enter().append("g").attr("class",(e,i)=>`treemapNode treemapLeafGroup leaf${i}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);X.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("style",e=>u.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("stroke-width",3),X.append("clipPath").attr("id",(e,i)=>`clip-${t}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),X.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+k(e.data.name)+";",g=u.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return i+g.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,i)=>`url(#clip-${t}-${i})`).text(e=>e.data.name).each(function(e){const i=u.select(this),g=e.x1-e.x0,C=e.y1-e.y0,L=i.node(),$=4,P=g-2*$,A=C-2*$;if(P<10||A<10){i.style("display","none");return}let S=parseInt(i.style("font-size"),10);const F=8,_=28,T=.6,z=6,W=2;for(;L.getComputedTextLength()>P&&S>F;)S--,i.style("font-size",`${S}px`);let H=Math.max(z,Math.min(_,Math.round(S*T))),Y=S+W+H;for(;Y>A&&S>F&&(S--,H=Math.max(z,Math.min(_,Math.round(S*T))),!(H<z&&S===F));)i.style("font-size",`${S}px`),Y=S+W+H;i.style("font-size",`${S}px`),(L.getComputedTextLength()>P||S<F||A<S)&&i.style("display","none")}),s.showValues!==!1&&X.append("text").attr("class","treemapValue").attr("x",i=>(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const g="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+k(i.data.name)+";",C=u.styles2String({cssCompiledStyles:i.data.cssCompiledStyles});return g+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,g)=>`url(#clip-${t}-${g})`).text(i=>i.value?f(i.value):"").each(function(i){const g=u.select(this),C=this.parentNode;if(!C){g.style("display","none");return}const L=u.select(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){g.style("display","none");return}const $=parseFloat(L.style("font-size")),P=28,A=.6,S=6,F=2,_=Math.max(S,Math.min(P,Math.round($*A)));g.style("font-size",`${_}px`);const z=(i.y1-i.y0)/2+$/2+F;g.attr("y",z);const W=i.x1-i.x0,le=i.y1-i.y0-4,re=W-2*4;g.node().getComputedTextLength()>re||z+_>le||_<S?g.style("display","none"):g.style("display",null)});const ne=s.diagramPadding??8;se.setupViewPortForSVG(w,ne,"flowchart",s?.useMaxWidth||!1)},"draw"),He=u.__name(function(a,t){return t.db.getClasses()},"getClasses"),Ie={draw:We,getClasses:He},qe={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},Oe=u.__name(({treemap:a}={})=>{const t=u.cleanAndMerge(qe,a);return`
2
2
  .treemapNode.section {
3
3
  stroke: ${t.sectionStrokeColor};
4
4
  stroke-width: ${t.sectionStrokeWidth};
@@ -1,6 +1,6 @@
1
- import { _ as l, s as k, g as R, q as E, p as F, a as I, b as _, H as D, y as G, D as f, E as C, F as P, l as z, K as H } from "./index-D_T9l6nE.js";
2
- import { p as V } from "./chunk-4BX2VUAB-DUs2iDAg.js";
3
- import { p as W } from "./mermaid-parser.core-BCUCaKDn.js";
1
+ import { _ as l, s as k, g as R, q as E, p as F, a as I, b as _, H as D, y as G, D as f, E as C, F as P, l as z, K as H } from "./index-H2RBHbcD.js";
2
+ import { p as V } from "./chunk-4BX2VUAB-BO2tdOAI.js";
3
+ import { p as W } from "./mermaid-parser.core-rJSq2yEh.js";
4
4
  var x = {
5
5
  showLegend: !0,
6
6
  ticks: 5,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-C7TBTVdT.cjs"),L=require("./chunk-4BX2VUAB-Ctenjwmh.cjs"),O=require("./mermaid-parser.core-DEehUa3F.cjs");var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y={axes:[],curves:[],options:h},p=structuredClone(y),S=n.defaultConfig_default.radar,k=n.__name(()=>n.cleanAndMerge({...S,...n.getConfig().radar}),"getConfig"),f=n.__name(()=>p.axes,"getAxes"),D=n.__name(()=>p.curves,"getCurves"),R=n.__name(()=>p.options,"getOptions"),I=n.__name(a=>{p.axes=a.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),E=n.__name(a=>{p.curves=a.map(e=>({name:e.name,label:e.label??e.name,entries:F(e.entries)}))},"setCurves"),F=n.__name(a=>{if(a[0].axis==null)return a.map(t=>t.value);const e=f();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{const r=a.find(s=>s.axis?.$refText===t.name);if(r===void 0)throw new Error("Missing entry for axis "+t.label);return r.value})},"computeCurveEntries"),P=n.__name(a=>{const e=a.reduce((t,r)=>(t[r.name]=r,t),{});p.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule}},"setOptions"),G=n.__name(()=>{n.clear(),p=structuredClone(y)},"clear"),_={getAxes:f,getCurves:D,getOptions:R,setAxes:I,setCurves:E,setOptions:P,getConfig:k,clear:G,setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription},z=n.__name(a=>{L.populateCommonDb(a,_);const{axes:e,curves:t,options:r}=a;_.setAxes(e),_.setCurves(t),_.setOptions(r)},"populate"),B={parse:n.__name(async a=>{const e=await O.parse("radar",a);n.log.debug(e),z(e)},"parse")},V=n.__name((a,e,t,r)=>{const s=r.db,o=s.getAxes(),l=s.getCurves(),i=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),m=n.selectSvgElement(e),u=W(m,c),g=i.max??Math.max(...l.map($=>Math.max(...$.entries))),x=i.min,v=Math.min(c.width,c.height)/2;j(u,o,v,i.ticks,i.graticule),q(u,o,v,c),C(u,o,l,x,g,i.graticule,c),A(u,l,i.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),W=n.__name((a,e)=>{const t=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return a.attr("viewbox",`0 0 ${t} ${r}`).attr("width",t).attr("height",r),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),j=n.__name((a,e,t,r,s)=>{if(s==="circle")for(let o=0;o<r;o++){const l=t*(o+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const o=e.length;for(let l=0;l<r;l++){const i=t*(l+1)/r,c=e.map((d,m)=>{const u=2*m*Math.PI/o-Math.PI/2,g=i*Math.cos(u),x=i*Math.sin(u);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),q=n.__name((a,e,t,r)=>{const s=e.length;for(let o=0;o<s;o++){const l=e[o].label,i=2*o*Math.PI/s-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",t*r.axisScaleFactor*Math.cos(i)).attr("y2",t*r.axisScaleFactor*Math.sin(i)).attr("class","radarAxisLine"),a.append("text").text(l).attr("x",t*r.axisLabelFactor*Math.cos(i)).attr("y",t*r.axisLabelFactor*Math.sin(i)).attr("class","radarAxisLabel")}},"drawAxes");function C(a,e,t,r,s,o,l){const i=e.length,c=Math.min(l.width,l.height)/2;t.forEach((d,m)=>{if(d.entries.length!==i)return;const u=d.entries.map((g,x)=>{const v=2*Math.PI*x/i-Math.PI/2,$=w(g,r,s,c),M=$*Math.cos(v),T=$*Math.sin(v);return{x:M,y:T}});o==="circle"?a.append("path").attr("d",b(u,l.curveTension)).attr("class",`radarCurve-${m}`):o==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}n.__name(C,"drawCurves");function w(a,e,t,r){const s=Math.min(Math.max(a,e),t);return r*(s-e)/(t-e)}n.__name(w,"relativeRadius");function b(a,e){const t=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<t;s++){const o=a[(s-1+t)%t],l=a[s],i=a[(s+1)%t],c=a[(s+2)%t],d={x:l.x+(i.x-o.x)*e,y:l.y+(i.y-o.y)*e},m={x:i.x-(c.x-l.x)*e,y:i.y-(c.y-l.y)*e};r+=` C${d.x},${d.y} ${m.x},${m.y} ${i.x},${i.y}`}return`${r} Z`}n.__name(b,"closedRoundCurve");function A(a,e,t,r){if(!t)return;const s=(r.width/2+r.marginRight)*3/4,o=-(r.height/2+r.marginTop)*3/4,l=20;e.forEach((i,c)=>{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(i.label)})}n.__name(A,"drawLegend");var H={draw:V},U=n.__name((a,e)=>{let t="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];t+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-t2PF2roh.cjs"),L=require("./chunk-4BX2VUAB-C4bhOz4I.cjs"),O=require("./mermaid-parser.core-ykDrRpvX.cjs");var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y={axes:[],curves:[],options:h},p=structuredClone(y),S=n.defaultConfig_default.radar,k=n.__name(()=>n.cleanAndMerge({...S,...n.getConfig().radar}),"getConfig"),f=n.__name(()=>p.axes,"getAxes"),D=n.__name(()=>p.curves,"getCurves"),R=n.__name(()=>p.options,"getOptions"),I=n.__name(a=>{p.axes=a.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),E=n.__name(a=>{p.curves=a.map(e=>({name:e.name,label:e.label??e.name,entries:F(e.entries)}))},"setCurves"),F=n.__name(a=>{if(a[0].axis==null)return a.map(t=>t.value);const e=f();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{const r=a.find(s=>s.axis?.$refText===t.name);if(r===void 0)throw new Error("Missing entry for axis "+t.label);return r.value})},"computeCurveEntries"),P=n.__name(a=>{const e=a.reduce((t,r)=>(t[r.name]=r,t),{});p.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule}},"setOptions"),G=n.__name(()=>{n.clear(),p=structuredClone(y)},"clear"),_={getAxes:f,getCurves:D,getOptions:R,setAxes:I,setCurves:E,setOptions:P,getConfig:k,clear:G,setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription},z=n.__name(a=>{L.populateCommonDb(a,_);const{axes:e,curves:t,options:r}=a;_.setAxes(e),_.setCurves(t),_.setOptions(r)},"populate"),B={parse:n.__name(async a=>{const e=await O.parse("radar",a);n.log.debug(e),z(e)},"parse")},V=n.__name((a,e,t,r)=>{const s=r.db,o=s.getAxes(),l=s.getCurves(),i=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),m=n.selectSvgElement(e),u=W(m,c),g=i.max??Math.max(...l.map($=>Math.max(...$.entries))),x=i.min,v=Math.min(c.width,c.height)/2;j(u,o,v,i.ticks,i.graticule),q(u,o,v,c),C(u,o,l,x,g,i.graticule,c),A(u,l,i.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),W=n.__name((a,e)=>{const t=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return a.attr("viewbox",`0 0 ${t} ${r}`).attr("width",t).attr("height",r),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),j=n.__name((a,e,t,r,s)=>{if(s==="circle")for(let o=0;o<r;o++){const l=t*(o+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const o=e.length;for(let l=0;l<r;l++){const i=t*(l+1)/r,c=e.map((d,m)=>{const u=2*m*Math.PI/o-Math.PI/2,g=i*Math.cos(u),x=i*Math.sin(u);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),q=n.__name((a,e,t,r)=>{const s=e.length;for(let o=0;o<s;o++){const l=e[o].label,i=2*o*Math.PI/s-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",t*r.axisScaleFactor*Math.cos(i)).attr("y2",t*r.axisScaleFactor*Math.sin(i)).attr("class","radarAxisLine"),a.append("text").text(l).attr("x",t*r.axisLabelFactor*Math.cos(i)).attr("y",t*r.axisLabelFactor*Math.sin(i)).attr("class","radarAxisLabel")}},"drawAxes");function C(a,e,t,r,s,o,l){const i=e.length,c=Math.min(l.width,l.height)/2;t.forEach((d,m)=>{if(d.entries.length!==i)return;const u=d.entries.map((g,x)=>{const v=2*Math.PI*x/i-Math.PI/2,$=w(g,r,s,c),M=$*Math.cos(v),T=$*Math.sin(v);return{x:M,y:T}});o==="circle"?a.append("path").attr("d",b(u,l.curveTension)).attr("class",`radarCurve-${m}`):o==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}n.__name(C,"drawCurves");function w(a,e,t,r){const s=Math.min(Math.max(a,e),t);return r*(s-e)/(t-e)}n.__name(w,"relativeRadius");function b(a,e){const t=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<t;s++){const o=a[(s-1+t)%t],l=a[s],i=a[(s+1)%t],c=a[(s+2)%t],d={x:l.x+(i.x-o.x)*e,y:l.y+(i.y-o.y)*e},m={x:i.x-(c.x-l.x)*e,y:i.y-(c.y-l.y)*e};r+=` C${d.x},${d.y} ${m.x},${m.y} ${i.x},${i.y}`}return`${r} Z`}n.__name(b,"closedRoundCurve");function A(a,e,t,r){if(!t)return;const s=(r.width/2+r.marginRight)*3/4,o=-(r.height/2+r.marginTop)*3/4,l=20;e.forEach((i,c)=>{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(i.label)})}n.__name(A,"drawLegend");var H={draw:V},U=n.__name((a,e)=>{let t="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];t+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1,6 +1,6 @@
1
- import { _ as b, D as m, H as B, e as C, l as w, b as S, a as D, p as T, q as E, g as F, s as P, E as z, F as A, y as W } from "./index-D_T9l6nE.js";
2
- import { p as _ } from "./chunk-4BX2VUAB-DUs2iDAg.js";
3
- import { p as N } from "./mermaid-parser.core-BCUCaKDn.js";
1
+ import { _ as b, D as m, H as B, e as C, l as w, b as S, a as D, p as T, q as E, g as F, s as P, E as z, F as A, y as W } from "./index-H2RBHbcD.js";
2
+ import { p as _ } from "./chunk-4BX2VUAB-BO2tdOAI.js";
3
+ import { p as N } from "./mermaid-parser.core-rJSq2yEh.js";
4
4
  var L = A.packet, u, v = (u = class {
5
5
  constructor() {
6
6
  this.packet = [], this.setAccTitle = S, this.getAccTitle = D, this.setDiagramTitle = T, this.getDiagramTitle = E, this.getAccDescription = F, this.setAccDescription = P;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-C7TBTVdT.cjs"),y=require("./chunk-4BX2VUAB-Ctenjwmh.cjs"),B=require("./mermaid-parser.core-DEehUa3F.cjs");var $=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...$,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,_=a.__name((e,t)=>{y.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:n,bits:p,label:d}of e.blocks){if(r!==void 0&&n!==void 0&&n<r)throw new Error(`Packet block ${r} - ${n} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${n??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(n??=r+(p??1)-1,p??=n-r+1,o=n,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,s]=S({start:r,end:n,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!s)break;({start:r,end:n,bits:p,label:d}=s)}}t.pushWord(i)},"populate"),S=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await B.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");a.log.debug(t),_(t,o)},"parse")},P=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:n,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),s=l.getDiagramTitle(),k=r+n,h=k*(g.length+1)-(s?0:r),f=p*d+2,u=a.selectSvgElement(t);u.attr("viewbox",`0 0 ${f} ${h}`),a.configureSvgSize(u,h,f,c.useMaxWidth);for(const[v,x]of g.entries())T(u,x,v,c);u.append("text").text(s).attr("x",f/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:n,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const s of t){const k=s.start%n*r+1,h=(s.end-s.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!p)continue;const f=s.end===s.start,u=g-2;d.append("text").attr("x",k+(f?h/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(s.start),f||d.append("text").attr("x",k+h).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),D={draw:P},A={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},z=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(A,e);return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-t2PF2roh.cjs"),y=require("./chunk-4BX2VUAB-C4bhOz4I.cjs"),B=require("./mermaid-parser.core-ykDrRpvX.cjs");var $=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...$,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,_=a.__name((e,t)=>{y.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:n,bits:p,label:d}of e.blocks){if(r!==void 0&&n!==void 0&&n<r)throw new Error(`Packet block ${r} - ${n} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${n??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(n??=r+(p??1)-1,p??=n-r+1,o=n,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,s]=S({start:r,end:n,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!s)break;({start:r,end:n,bits:p,label:d}=s)}}t.pushWord(i)},"populate"),S=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await B.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");a.log.debug(t),_(t,o)},"parse")},P=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:n,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),s=l.getDiagramTitle(),k=r+n,h=k*(g.length+1)-(s?0:r),f=p*d+2,u=a.selectSvgElement(t);u.attr("viewbox",`0 0 ${f} ${h}`),a.configureSvgSize(u,h,f,c.useMaxWidth);for(const[v,x]of g.entries())T(u,x,v,c);u.append("text").text(s).attr("x",f/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:n,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const s of t){const k=s.start%n*r+1,h=(s.end-s.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!p)continue;const f=s.end===s.start,u=g-2;d.append("text").attr("x",k+(f?h/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(s.start),f||d.append("text").attr("x",k+h).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),D={draw:P},A={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},z=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(A,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xt=require("./chunk-55IACEB6-ofxwWOwR.cjs"),vt=require("./chunk-QN33PNHL-CvKwiHHl.cjs"),a=require("./index-C7TBTVdT.cjs"),Dt=require("./channel-CcTa2el1.cjs");var ht=function(){var s=a.__name(function(R,r,c,l){for(c=c||{},l=R.length;l--;c[R[l]]=r);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],o=[1,10],d=[1,11],h=[1,12],u=[1,13],f=[1,20],y=[1,21],k=[1,22],w=[1,23],K=[1,24],S=[1,19],$=[1,25],Z=[1,26],T=[1,18],L=[1,33],tt=[1,34],et=[1,35],st=[1,36],it=[1,37],ut=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],N=[1,43],V=[1,52],M=[40,50,68,69],B=[1,63],F=[1,61],A=[1,58],P=[1,62],Y=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],dt=[63,64,65,66,67],_t=[1,81],pt=[1,80],ft=[1,78],yt=[1,79],gt=[6,10,42,47],x=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],q=[1,87],z=[19,56],mt=[1,98],bt=[1,97],nt=[19,56,58,60],rt={trace:a.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:a.__name(function(r,c,l,n,_,t,G){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(t[e-4]),n.addEntity(t[e-2]),n.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:n.addEntity(t[e-8]),n.addEntity(t[e-4]),n.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),n.setClass([t[e-8]],t[e-6]),n.setClass([t[e-4]],t[e-2]);break;case 10:n.addEntity(t[e-6]),n.addEntity(t[e-2]),n.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),n.setClass([t[e-6]],t[e-4]);break;case 11:n.addEntity(t[e-6]),n.addEntity(t[e-4]),n.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),n.setClass([t[e-4]],t[e-2]);break;case 12:n.addEntity(t[e-3]),n.addAttributes(t[e-3],t[e-1]);break;case 13:n.addEntity(t[e-5]),n.addAttributes(t[e-5],t[e-1]),n.setClass([t[e-5]],t[e-3]);break;case 14:n.addEntity(t[e-2]);break;case 15:n.addEntity(t[e-4]),n.setClass([t[e-4]],t[e-2]);break;case 16:n.addEntity(t[e]);break;case 17:n.addEntity(t[e-2]),n.setClass([t[e-2]],t[e]);break;case 18:n.addEntity(t[e-6],t[e-4]),n.addAttributes(t[e-6],t[e-1]);break;case 19:n.addEntity(t[e-8],t[e-6]),n.addAttributes(t[e-8],t[e-1]),n.setClass([t[e-8]],t[e-3]);break;case 20:n.addEntity(t[e-5],t[e-3]);break;case 21:n.addEntity(t[e-7],t[e-5]),n.setClass([t[e-7]],t[e-2]);break;case 22:n.addEntity(t[e-3],t[e-1]);break;case 23:n.addEntity(t[e-5],t[e-3]),n.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[e-3],n.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],n.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],n.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:d,26:h,28:u,29:14,30:15,31:16,32:17,33:f,34:y,35:k,36:w,37:K,40:S,43:$,44:Z,50:T},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:o,24:d,26:h,28:u,29:14,30:15,31:16,32:17,33:f,34:y,35:k,36:w,37:K,40:S,43:$,44:Z,50:T},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:L,64:tt,65:et,66:st,67:it}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(ut,[2,54]),s(ut,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:N},{16:44,40:O,41:N},{16:45,40:O,41:N},s(i,[2,4]),{11:46,40:S,50:T},{16:47,40:O,41:N},{18:48,19:[1,49],51:50,52:51,56:V},{11:53,40:S,50:T},{62:54,68:[1,55],69:[1,56]},s(M,[2,69]),s(M,[2,70]),s(M,[2,71]),s(M,[2,72]),s(M,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:B,38:57,41:F,42:A,45:59,46:60,48:P,49:Y},s(U,[2,37]),s(U,[2,38]),{16:65,40:O,41:N,42:A},{13:B,38:66,41:F,42:A,45:59,46:60,48:P,49:Y},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:A,63:L,64:tt,65:et,66:st,67:it}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:V},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:L,64:tt,65:et,66:st,67:it},s(dt,[2,74]),s(dt,[2,75]),{6:_t,10:pt,39:77,42:ft,47:yt},{40:[1,82],41:[1,83]},s(gt,[2,43],{46:84,13:B,41:F,48:P,49:Y}),s(x,[2,45]),s(x,[2,50]),s(x,[2,51]),s(x,[2,52]),s(x,[2,53]),s(i,[2,41],{42:A}),{6:_t,10:pt,39:85,42:ft,47:yt},{14:86,40:j,50:W,70:q},{16:90,40:O,41:N},{11:91,40:S,50:T},{18:92,19:[1,93],51:50,52:51,56:V},s(i,[2,12]),{19:[2,57]},s(z,[2,58],{54:94,55:95,57:96,59:mt,60:bt}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:B,41:F,45:101,46:60,48:P,49:Y},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(U,[2,39]),s(U,[2,40]),s(x,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:A},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(z,[2,59],{55:106,58:[1,107],60:bt}),s(z,[2,60]),s(nt,[2,64]),s(z,[2,67]),s(nt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:V},{16:110,40:O,41:N},s(gt,[2,44],{46:84,13:B,41:F,48:P,49:Y}),{14:111,40:j,50:W,70:q},{16:112,40:O,41:N},{14:113,40:j,50:W,70:q},s(i,[2,13]),s(z,[2,61]),{57:114,59:mt},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:A}),s(i,[2,11]),{13:[1,117],42:A},s(i,[2,10]),s(nt,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:V},{14:120,40:j,50:W,70:q},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:a.__name(function(r,c){if(c.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=c,l}},"parseError"),parse:a.__name(function(r){var c=this,l=[0],n=[],_=[null],t=[],G=this.table,e="",X=0,kt=0,At=2,Et=1,Rt=t.slice.call(arguments,1),p=Object.create(this.lexer),C={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(C.yy[at]=this.yy[at]);p.setInput(r,C.yy),C.yy.lexer=p,C.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var ct=p.yylloc;t.push(ct);var Ct=p.options&&p.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function It(m){l.length=l.length-2*m,_.length=_.length-m,t.length=t.length-m}a.__name(It,"popStack");function St(){var m;return m=n.pop()||p.lex()||Et,typeof m!="number"&&(m instanceof Array&&(n=m,m=n.pop()),m=c.symbols_[m]||m),m}a.__name(St,"lex");for(var g,I,b,lt,v={},H,E,Tt,J;;){if(I=l[l.length-1],this.defaultActions[I]?b=this.defaultActions[I]:((g===null||typeof g>"u")&&(g=St()),b=G[I]&&G[I][g]),typeof b>"u"||!b.length||!b[0]){var ot="";J=[];for(H in G[I])this.terminals_[H]&&H>At&&J.push("'"+this.terminals_[H]+"'");p.showPosition?ot="Parse error on line "+(X+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xt=require("./chunk-55IACEB6-CDN6iBkL.cjs"),vt=require("./chunk-QN33PNHL-BXczoumz.cjs"),a=require("./index-t2PF2roh.cjs"),Dt=require("./channel-DNDeN7tc.cjs");var ht=function(){var s=a.__name(function(R,r,c,l){for(c=c||{},l=R.length;l--;c[R[l]]=r);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],o=[1,10],d=[1,11],h=[1,12],u=[1,13],f=[1,20],y=[1,21],k=[1,22],w=[1,23],K=[1,24],S=[1,19],$=[1,25],Z=[1,26],T=[1,18],L=[1,33],tt=[1,34],et=[1,35],st=[1,36],it=[1,37],ut=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],N=[1,43],V=[1,52],M=[40,50,68,69],B=[1,63],F=[1,61],A=[1,58],P=[1,62],Y=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],dt=[63,64,65,66,67],_t=[1,81],pt=[1,80],ft=[1,78],yt=[1,79],gt=[6,10,42,47],x=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],q=[1,87],z=[19,56],mt=[1,98],bt=[1,97],nt=[19,56,58,60],rt={trace:a.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:a.__name(function(r,c,l,n,_,t,G){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(t[e-4]),n.addEntity(t[e-2]),n.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:n.addEntity(t[e-8]),n.addEntity(t[e-4]),n.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),n.setClass([t[e-8]],t[e-6]),n.setClass([t[e-4]],t[e-2]);break;case 10:n.addEntity(t[e-6]),n.addEntity(t[e-2]),n.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),n.setClass([t[e-6]],t[e-4]);break;case 11:n.addEntity(t[e-6]),n.addEntity(t[e-4]),n.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),n.setClass([t[e-4]],t[e-2]);break;case 12:n.addEntity(t[e-3]),n.addAttributes(t[e-3],t[e-1]);break;case 13:n.addEntity(t[e-5]),n.addAttributes(t[e-5],t[e-1]),n.setClass([t[e-5]],t[e-3]);break;case 14:n.addEntity(t[e-2]);break;case 15:n.addEntity(t[e-4]),n.setClass([t[e-4]],t[e-2]);break;case 16:n.addEntity(t[e]);break;case 17:n.addEntity(t[e-2]),n.setClass([t[e-2]],t[e]);break;case 18:n.addEntity(t[e-6],t[e-4]),n.addAttributes(t[e-6],t[e-1]);break;case 19:n.addEntity(t[e-8],t[e-6]),n.addAttributes(t[e-8],t[e-1]),n.setClass([t[e-8]],t[e-3]);break;case 20:n.addEntity(t[e-5],t[e-3]);break;case 21:n.addEntity(t[e-7],t[e-5]),n.setClass([t[e-7]],t[e-2]);break;case 22:n.addEntity(t[e-3],t[e-1]);break;case 23:n.addEntity(t[e-5],t[e-3]),n.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[e-3],n.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],n.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],n.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:d,26:h,28:u,29:14,30:15,31:16,32:17,33:f,34:y,35:k,36:w,37:K,40:S,43:$,44:Z,50:T},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:o,24:d,26:h,28:u,29:14,30:15,31:16,32:17,33:f,34:y,35:k,36:w,37:K,40:S,43:$,44:Z,50:T},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:L,64:tt,65:et,66:st,67:it}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(ut,[2,54]),s(ut,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:N},{16:44,40:O,41:N},{16:45,40:O,41:N},s(i,[2,4]),{11:46,40:S,50:T},{16:47,40:O,41:N},{18:48,19:[1,49],51:50,52:51,56:V},{11:53,40:S,50:T},{62:54,68:[1,55],69:[1,56]},s(M,[2,69]),s(M,[2,70]),s(M,[2,71]),s(M,[2,72]),s(M,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:B,38:57,41:F,42:A,45:59,46:60,48:P,49:Y},s(U,[2,37]),s(U,[2,38]),{16:65,40:O,41:N,42:A},{13:B,38:66,41:F,42:A,45:59,46:60,48:P,49:Y},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:A,63:L,64:tt,65:et,66:st,67:it}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:V},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:L,64:tt,65:et,66:st,67:it},s(dt,[2,74]),s(dt,[2,75]),{6:_t,10:pt,39:77,42:ft,47:yt},{40:[1,82],41:[1,83]},s(gt,[2,43],{46:84,13:B,41:F,48:P,49:Y}),s(x,[2,45]),s(x,[2,50]),s(x,[2,51]),s(x,[2,52]),s(x,[2,53]),s(i,[2,41],{42:A}),{6:_t,10:pt,39:85,42:ft,47:yt},{14:86,40:j,50:W,70:q},{16:90,40:O,41:N},{11:91,40:S,50:T},{18:92,19:[1,93],51:50,52:51,56:V},s(i,[2,12]),{19:[2,57]},s(z,[2,58],{54:94,55:95,57:96,59:mt,60:bt}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:B,41:F,45:101,46:60,48:P,49:Y},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(U,[2,39]),s(U,[2,40]),s(x,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:A},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(z,[2,59],{55:106,58:[1,107],60:bt}),s(z,[2,60]),s(nt,[2,64]),s(z,[2,67]),s(nt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:V},{16:110,40:O,41:N},s(gt,[2,44],{46:84,13:B,41:F,48:P,49:Y}),{14:111,40:j,50:W,70:q},{16:112,40:O,41:N},{14:113,40:j,50:W,70:q},s(i,[2,13]),s(z,[2,61]),{57:114,59:mt},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:A}),s(i,[2,11]),{13:[1,117],42:A},s(i,[2,10]),s(nt,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:V},{14:120,40:j,50:W,70:q},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:a.__name(function(r,c){if(c.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=c,l}},"parseError"),parse:a.__name(function(r){var c=this,l=[0],n=[],_=[null],t=[],G=this.table,e="",X=0,kt=0,At=2,Et=1,Rt=t.slice.call(arguments,1),p=Object.create(this.lexer),C={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(C.yy[at]=this.yy[at]);p.setInput(r,C.yy),C.yy.lexer=p,C.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var ct=p.yylloc;t.push(ct);var Ct=p.options&&p.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function It(m){l.length=l.length-2*m,_.length=_.length-m,t.length=t.length-m}a.__name(It,"popStack");function St(){var m;return m=n.pop()||p.lex()||Et,typeof m!="number"&&(m instanceof Array&&(n=m,m=n.pop()),m=c.symbols_[m]||m),m}a.__name(St,"lex");for(var g,I,b,lt,v={},H,E,Tt,J;;){if(I=l[l.length-1],this.defaultActions[I]?b=this.defaultActions[I]:((g===null||typeof g>"u")&&(g=St()),b=G[I]&&G[I][g]),typeof b>"u"||!b.length||!b[0]){var ot="";J=[];for(H in G[I])this.terminals_[H]&&H>At&&J.push("'"+this.terminals_[H]+"'");p.showPosition?ot="Parse error on line "+(X+1)+`:
2
2
  `+p.showPosition()+`
3
3
  Expecting `+J.join(", ")+", got '"+(this.terminals_[g]||g)+"'":ot="Parse error on line "+(X+1)+": Unexpected "+(g==Et?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(ot,{text:p.match,token:this.terminals_[g]||g,line:p.yylineno,loc:ct,expected:J})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+g);switch(b[0]){case 1:l.push(g),_.push(p.yytext),t.push(p.yylloc),l.push(b[1]),g=null,kt=p.yyleng,e=p.yytext,X=p.yylineno,ct=p.yylloc;break;case 2:if(E=this.productions_[b[1]][1],v.$=_[_.length-E],v._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},Ct&&(v._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(v,[e,kt,X,C.yy,b[1],_,t].concat(Rt)),typeof lt<"u")return lt;E&&(l=l.slice(0,-1*E*2),_=_.slice(0,-1*E),t=t.slice(0,-1*E)),l.push(this.productions_[b[1]][0]),_.push(v.$),t.push(v._$),Tt=G[l[l.length-2]][l[l.length-1]],l.push(Tt);break;case 3:return!0}}return!0},"parse")},Nt=function(){var R={EOF:1,parseError:a.__name(function(c,l){if(this.yy.parser)this.yy.parser.parseError(c,l);else throw new Error(c)},"parseError"),setInput:a.__name(function(r,c){return this.yy=c||this.yy||{},this._input=r,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:a.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var c=r.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:a.__name(function(r){var c=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var n=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),l.length-1&&(this.yylineno-=l.length-1);var _=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:l?(l.length===n.length?this.yylloc.first_column:0)+n[n.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:a.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a.__name(function(){var r=this.pastInput(),c=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,7 +1,7 @@
1
- import { g as Dt } from "./chunk-55IACEB6-W3O3lSeL.js";
2
- import { s as wt } from "./chunk-QN33PNHL-DCrQ-z21.js";
3
- import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, p as Ft, q as Yt, c as tt, l as D, y as Pt, x as zt, A as Gt, B as Kt, o as Zt, r as Ut, d as jt, u as Wt } from "./index-D_T9l6nE.js";
4
- import { c as Qt } from "./channel-Lr9QMebA.js";
1
+ import { g as Dt } from "./chunk-55IACEB6-aKeybxQq.js";
2
+ import { s as wt } from "./chunk-QN33PNHL-3i2DWH9C.js";
3
+ import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, p as Ft, q as Yt, c as tt, l as D, y as Pt, x as zt, A as Gt, B as Kt, o as Zt, r as Ut, d as jt, u as Wt } from "./index-H2RBHbcD.js";
4
+ import { c as Qt } from "./channel-Dva0ACau.js";
5
5
  var dt = function() {
6
6
  var s = /* @__PURE__ */ u(function(R, n, a, c) {
7
7
  for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ut=require("./chunk-FMBD7UC4-B2RjhX6l.cjs"),l=require("./index-C7TBTVdT.cjs"),Wt=require("./chunk-55IACEB6-ofxwWOwR.cjs"),jt=require("./chunk-QN33PNHL-CvKwiHHl.cjs"),zt=require("./channel-CcTa2el1.cjs");var qt="flowchart-",Ie,Kt=(Ie=class{constructor(){this.vertexCounter=0,this.config=l.getConfig2(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=l.setAccTitle,this.setAccDescription=l.setAccDescription,this.setDiagramTitle=l.setDiagramTitle,this.getAccTitle=l.getAccTitle,this.getAccDescription=l.getAccDescription,this.getDiagramTitle=l.getDiagramTitle,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l.common_default.sanitizeText(i,this.config)}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return r.domId;return i}addVertex(i,r,n,a,c,b,h={},A){if(!i||i.trim().length===0)return;let u;if(A!==void 0){let m;A.includes(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ut=require("./chunk-FMBD7UC4-BoOSMKgX.cjs"),l=require("./index-t2PF2roh.cjs"),Wt=require("./chunk-55IACEB6-CDN6iBkL.cjs"),jt=require("./chunk-QN33PNHL-BXczoumz.cjs"),zt=require("./channel-DNDeN7tc.cjs");var qt="flowchart-",Ie,Kt=(Ie=class{constructor(){this.vertexCounter=0,this.config=l.getConfig2(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=l.setAccTitle,this.setAccDescription=l.setAccDescription,this.setDiagramTitle=l.setDiagramTitle,this.getAccTitle=l.getAccTitle,this.getAccDescription=l.getAccDescription,this.getDiagramTitle=l.getDiagramTitle,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l.common_default.sanitizeText(i,this.config)}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return r.domId;return i}addVertex(i,r,n,a,c,b,h={},A){if(!i||i.trim().length===0)return;let u;if(A!==void 0){let m;A.includes(`
2
2
  `)?m=A+`
3
3
  `:m=`{
4
4
  `+A+`
@@ -1,8 +1,8 @@
1
- import { g as qt } from "./chunk-FMBD7UC4-D9fLV-IO.js";
2
- import { _ as m, n as Ot, l as $, c as b1, d as E1, o as Ht, r as Xt, u as it, b as Qt, s as Jt, p as Zt, a as $t, g as te, q as ee, k as se, t as ie, J as re, v as ae, x as st, y as ne, z as ue, A as oe } from "./index-D_T9l6nE.js";
3
- import { g as le } from "./chunk-55IACEB6-W3O3lSeL.js";
4
- import { s as ce } from "./chunk-QN33PNHL-DCrQ-z21.js";
5
- import { c as he } from "./channel-Lr9QMebA.js";
1
+ import { g as qt } from "./chunk-FMBD7UC4-BGZhQz-0.js";
2
+ import { _ as m, n as Ot, l as $, c as b1, d as E1, o as Ht, r as Xt, u as it, b as Qt, s as Jt, p as Zt, a as $t, g as te, q as ee, k as se, t as ie, J as re, v as ae, x as st, y as ne, z as ue, A as oe } from "./index-H2RBHbcD.js";
3
+ import { g as le } from "./chunk-55IACEB6-aKeybxQq.js";
4
+ import { s as ce } from "./chunk-QN33PNHL-3i2DWH9C.js";
5
+ import { c as he } from "./channel-Dva0ACau.js";
6
6
  var de = "flowchart-", G1, pe = (G1 = class {
7
7
  // cspell:ignore funs
8
8
  constructor() {
@@ -1,5 +1,5 @@
1
- import { b1 as nn, b2 as Ln, b3 as rn, b4 as an, b5 as sn, b6 as se, b7 as An, aJ as we, _ as h, g as In, s as Wn, q as On, p as Hn, a as Nn, b as Vn, c as _t, d as Bt, e as Pn, b8 as at, l as Kt, k as zn, j as Rn, y as qn, u as Bn } from "./index-D_T9l6nE.js";
2
- import { b as Zn, t as Oe, c as Xn, a as Gn, l as Qn } from "./linear-Drgg1p8m.js";
1
+ import { b1 as nn, b2 as Ln, b3 as rn, b4 as an, b5 as sn, b6 as se, b7 as An, aJ as we, _ as h, g as In, s as Wn, q as On, p as Hn, a as Nn, b as Vn, c as _t, d as Bt, e as Pn, b8 as at, l as Kt, k as zn, j as Rn, y as qn, u as Bn } from "./index-H2RBHbcD.js";
2
+ import { b as Zn, t as Oe, c as Xn, a as Gn, l as Qn } from "./linear-1Y2pl2o7.js";
3
3
  import { i as $n } from "./init-DjUOC4st.js";
4
4
  function jn(t, e) {
5
5
  let n;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-C7TBTVdT.cjs"),Ce=require("./linear-kivixvN6.cjs"),bn=require("./init-CHZsXQcr.cjs");function wn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function Dn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Cn(e){return e}var qe=1,rt=2,ht=3,je=4,Et=1e-6;function Mn(e){return"translate("+e+",0)"}function Sn(e){return"translate(0,"+e+")"}function Fn(e){return t=>+e(t)}function Yn(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Un(){return!this.__axis}function $t(e,t){var n=[],r=null,a=null,i=6,o=6,y=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=e===qe||e===je?-1:1,g=e===je||e===rt?"x":"y",E=e===qe||e===ht?Mn:Sn;function D(_){var Z=r??(t.ticks?t.ticks.apply(t,n):t.domain()),O=a??(t.tickFormat?t.tickFormat.apply(t,n):Cn),C=Math.max(i,0)+y,I=t.range(),P=+I[0]+M,W=+I[I.length-1]+M,q=(t.bandwidth?Yn:Fn)(t.copy(),M),$=_.selection?_.selection():_,w=$.selectAll(".domain").data([null]),H=$.selectAll(".tick").data(Z,t).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),F=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),F=F.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",p*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,p*C).attr("dy",e===qe?"0em":e===ht?"0.71em":"0.32em")),_!==$&&(w=w.transition(_),H=H.transition(_),F=F.transition(_),S=S.transition(_),x=x.transition(_).attr("opacity",Et).attr("transform",function(v){return isFinite(v=q(v))?E(v+M):this.getAttribute("transform")}),Y.attr("opacity",Et).attr("transform",function(v){var U=this.parentNode.__axis;return E((U&&isFinite(U=U(v))?U:q(v))+M)})),x.remove(),w.attr("d",e===je||e===rt?o?"M"+p*o+","+P+"H"+M+"V"+W+"H"+p*o:"M"+M+","+P+"V"+W:o?"M"+P+","+p*o+"V"+M+"H"+W+"V"+p*o:"M"+P+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(v){return E(q(v)+M)}),F.attr(g+"2",p*i),S.attr(g,p*C).text(O),$.filter(Un).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===rt?"start":e===je?"end":"middle"),$.each(function(){this.__axis=q})}return D.scale=function(_){return arguments.length?(t=_,D):t},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(_){return arguments.length?(n=_==null?[]:Array.from(_),D):n.slice()},D.tickValues=function(_){return arguments.length?(r=_==null?null:Array.from(_),D):r&&r.slice()},D.tickFormat=function(_){return arguments.length?(a=_,D):a},D.tickSize=function(_){return arguments.length?(i=o=+_,D):i},D.tickSizeInner=function(_){return arguments.length?(i=+_,D):i},D.tickSizeOuter=function(_){return arguments.length?(o=+_,D):o},D.tickPadding=function(_){return arguments.length?(y=+_,D):y},D.offset=function(_){return arguments.length?(M=+_,D):M},D}function En(e){return $t(qe,e)}function An(e){return $t(ht,e)}const Ln=Math.PI/180,In=180/Math.PI,Qe=18,Qt=.96422,Jt=1,Kt=.82521,en=4/29,Me=6/29,tn=3*Me*Me,Wn=Me*Me*Me;function nn(e){if(e instanceof le)return new le(e.l,e.a,e.b,e.opacity);if(e instanceof de)return rn(e);e instanceof s.Rgb||(e=s.rgbConvert(e));var t=ot(e.r),n=ot(e.g),r=ot(e.b),a=at((.2225045*t+.7168786*n+.0606169*r)/Jt),i,o;return t===n&&n===r?i=o=a:(i=at((.4360747*t+.3850649*n+.1430804*r)/Qt),o=at((.0139322*t+.0971045*n+.7141733*r)/Kt)),new le(116*a-16,500*(i-a),200*(a-o),e.opacity)}function On(e,t,n,r){return arguments.length===1?nn(e):new le(e,t,n,r??1)}function le(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}s.define(le,On,s.extend(s.Color$1,{brighter(e){return new le(this.l+Qe*(e??1),this.a,this.b,this.opacity)},darker(e){return new le(this.l-Qe*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Qt*it(t),e=Jt*it(e),n=Kt*it(n),new s.Rgb(st(3.1338561*t-1.6168667*e-.4906146*n),st(-.9787684*t+1.9161415*e+.033454*n),st(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function at(e){return e>Wn?Math.pow(e,1/3):e/tn+en}function it(e){return e>Me?e*e*e:tn*(e-en)}function st(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ot(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hn(e){if(e instanceof de)return new de(e.h,e.c,e.l,e.opacity);if(e instanceof le||(e=nn(e)),e.a===0&&e.b===0)return new de(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*In;return new de(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function mt(e,t,n,r){return arguments.length===1?Hn(e):new de(e,t,n,r??1)}function de(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function rn(e){if(isNaN(e.h))return new le(e.l,0,0,e.opacity);var t=e.h*Ln;return new le(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}s.define(de,mt,s.extend(s.Color$1,{brighter(e){return new de(this.h,this.c,this.l+Qe*(e??1),this.opacity)},darker(e){return new de(this.h,this.c,this.l-Qe*(e??1),this.opacity)},rgb(){return rn(this).rgb()}}));function Nn(e){return function(t,n){var r=e((t=mt(t)).h,(n=mt(n)).h),a=s.nogamma(t.c,n.c),i=s.nogamma(t.l,n.l),o=s.nogamma(t.opacity,n.opacity);return function(y){return t.h=r(y),t.c=a(y),t.l=i(y),t.opacity=o(y),t+""}}}const Pn=Nn(s.hue);function Vn(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}const ct=new Date,ut=new Date;function te(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),y=a.ceil(i);return i-o<y-i?o:y},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,y)=>{const M=[];if(i=a.ceil(i),y=y==null?1:Math.floor(y),!(i<o)||!(y>0))return M;let p;do M.push(p=new Date(+i)),t(i,y),e(i);while(p<i&&i<o);return M},a.filter=i=>te(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,y)=>{if(o>=o)if(y<0)for(;++y<=0;)for(;t(o,-1),!i(o););else for(;--y>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(ct.setTime(+i),ut.setTime(+o),e(ct),e(ut),Math.floor(n(ct,ut))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Fe=te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Fe.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?te(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Fe);Fe.range;const he=1e3,oe=he*60,me=oe*60,ge=me*24,vt=ge*7,At=ge*30,lt=ge*365,pe=te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*he)},(e,t)=>(t-e)/he,e=>e.getUTCSeconds());pe.range;const Ie=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*he)},(e,t)=>{e.setTime(+e+t*oe)},(e,t)=>(t-e)/oe,e=>e.getMinutes());Ie.range;const zn=te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*oe)},(e,t)=>(t-e)/oe,e=>e.getUTCMinutes());zn.range;const We=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*he-e.getMinutes()*oe)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getHours());We.range;const Rn=te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCHours());Rn.range;const ve=te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*oe)/ge,e=>e.getDate()-1);ve.range;const Tt=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ge,e=>e.getUTCDate()-1);Tt.range;const jn=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ge,e=>Math.floor(e/ge));jn.range;function xe(e){return te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*oe)/vt)}const Ne=xe(0),Oe=xe(1),an=xe(2),sn=xe(3),Te=xe(4),on=xe(5),cn=xe(6);Ne.range;Oe.range;an.range;sn.range;Te.range;on.range;cn.range;function be(e){return te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vt)}const un=be(0),Je=be(1),qn=be(2),Bn=be(3),Ye=be(4),Zn=be(5),Xn=be(6);un.range;Je.range;qn.range;Bn.range;Ye.range;Zn.range;Xn.range;const He=te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());He.range;const Gn=te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Gn.range;const ye=te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ye.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ye.range;const _e=te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());_e.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});_e.range;function $n(e,t,n,r,a,i){const o=[[pe,1,he],[pe,5,5*he],[pe,15,15*he],[pe,30,30*he],[i,1,oe],[i,5,5*oe],[i,15,15*oe],[i,30,30*oe],[a,1,me],[a,3,3*me],[a,6,6*me],[a,12,12*me],[r,1,ge],[r,2,2*ge],[n,1,vt],[t,1,At],[t,3,3*At],[e,1,lt]];function y(p,g,E){const D=g<p;D&&([p,g]=[g,p]);const _=E&&typeof E.range=="function"?E:M(p,g,E),Z=_?_.range(p,+g+1):[];return D?Z.reverse():Z}function M(p,g,E){const D=Math.abs(g-p)/E,_=Ce.bisector(([,,C])=>C).right(o,D);if(_===o.length)return e.every(Ce.tickStep(p/lt,g/lt,E));if(_===0)return Fe.every(Math.max(Ce.tickStep(p,g,E),1));const[Z,O]=o[D/o[_-1][2]<o[_][2]/D?_-1:_];return Z.every(O)}return[y,M]}const[Qn,Jn]=$n(ye,He,Ne,ve,We,Ie);function ft(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function dt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ee(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Kn(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,y=e.months,M=e.shortMonths,p=Ae(a),g=Le(a),E=Ae(i),D=Le(i),_=Ae(o),Z=Le(o),O=Ae(y),C=Le(y),I=Ae(M),P=Le(M),W={a:h,A:b,b:u,B:l,c:null,d:Nt,e:Nt,f:xr,g:Er,G:Lr,H:vr,I:Tr,j:_r,L:ln,m:br,M:wr,p:c,q:z,Q:zt,s:Rt,S:Dr,u:Cr,U:Mr,V:Sr,w:Fr,W:Yr,x:null,X:null,y:Ur,Y:Ar,Z:Ir,"%":Vt},q={a:V,A:R,b:K,B:X,c:null,d:Pt,e:Pt,f:Nr,g:Gr,G:Qr,H:Wr,I:Or,j:Hr,L:dn,m:Pr,M:Vr,p:Q,q:ae,Q:zt,s:Rt,S:zr,u:Rr,U:jr,V:qr,w:Br,W:Zr,x:null,X:null,y:Xr,Y:$r,Z:Jr,"%":Vt},$={a:F,A:S,b:v,B:U,c:f,d:Ot,e:Ot,f:gr,g:Wt,G:It,H:Ht,I:Ht,j:fr,L:mr,m:lr,M:dr,p:Y,q:ur,Q:kr,s:pr,S:hr,u:ar,U:ir,V:sr,w:rr,W:or,x:m,X:T,y:Wt,Y:It,Z:cr,"%":yr};W.x=w(n,W),W.X=w(r,W),W.c=w(t,W),q.x=w(n,q),q.X=w(r,q),q.c=w(t,q);function w(k,L){return function(N){var d=[],J=-1,A=0,G=k.length,B,re,ie;for(N instanceof Date||(N=new Date(+N));++J<G;)k.charCodeAt(J)===37&&(d.push(k.slice(A,J)),(re=Lt[B=k.charAt(++J)])!=null?B=k.charAt(++J):re=B==="e"?" ":"0",(ie=L[B])&&(B=ie(N,re)),d.push(B),A=J+1);return d.push(k.slice(A,J)),d.join("")}}function H(k,L){return function(N){var d=Ee(1900,void 0,1),J=x(d,k,N+="",0),A,G;if(J!=N.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(d.s*1e3+("L"in d?d.L:0));if(L&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+d.p*12),d.m===void 0&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(A=dt(Ee(d.y,0,1)),G=A.getUTCDay(),A=G>4||G===0?Je.ceil(A):Je(A),A=Tt.offset(A,(d.V-1)*7),d.y=A.getUTCFullYear(),d.m=A.getUTCMonth(),d.d=A.getUTCDate()+(d.w+6)%7):(A=ft(Ee(d.y,0,1)),G=A.getDay(),A=G>4||G===0?Oe.ceil(A):Oe(A),A=ve.offset(A,(d.V-1)*7),d.y=A.getFullYear(),d.m=A.getMonth(),d.d=A.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),G="Z"in d?dt(Ee(d.y,0,1)).getUTCDay():ft(Ee(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+d.W*7-(G+5)%7:d.w+d.U*7-(G+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,dt(d)):ft(d)}}function x(k,L,N,d){for(var J=0,A=L.length,G=N.length,B,re;J<A;){if(d>=G)return-1;if(B=L.charCodeAt(J++),B===37){if(B=L.charAt(J++),re=$[B in Lt?L.charAt(J++):B],!re||(d=re(k,N,d))<0)return-1}else if(B!=N.charCodeAt(d++))return-1}return d}function Y(k,L,N){var d=p.exec(L.slice(N));return d?(k.p=g.get(d[0].toLowerCase()),N+d[0].length):-1}function F(k,L,N){var d=_.exec(L.slice(N));return d?(k.w=Z.get(d[0].toLowerCase()),N+d[0].length):-1}function S(k,L,N){var d=E.exec(L.slice(N));return d?(k.w=D.get(d[0].toLowerCase()),N+d[0].length):-1}function v(k,L,N){var d=I.exec(L.slice(N));return d?(k.m=P.get(d[0].toLowerCase()),N+d[0].length):-1}function U(k,L,N){var d=O.exec(L.slice(N));return d?(k.m=C.get(d[0].toLowerCase()),N+d[0].length):-1}function f(k,L,N){return x(k,t,L,N)}function m(k,L,N){return x(k,n,L,N)}function T(k,L,N){return x(k,r,L,N)}function h(k){return o[k.getDay()]}function b(k){return i[k.getDay()]}function u(k){return M[k.getMonth()]}function l(k){return y[k.getMonth()]}function c(k){return a[+(k.getHours()>=12)]}function z(k){return 1+~~(k.getMonth()/3)}function V(k){return o[k.getUTCDay()]}function R(k){return i[k.getUTCDay()]}function K(k){return M[k.getUTCMonth()]}function X(k){return y[k.getUTCMonth()]}function Q(k){return a[+(k.getUTCHours()>=12)]}function ae(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var L=w(k+="",W);return L.toString=function(){return k},L},parse:function(k){var L=H(k+="",!1);return L.toString=function(){return k},L},utcFormat:function(k){var L=w(k+="",q);return L.toString=function(){return k},L},utcParse:function(k){var L=H(k+="",!0);return L.toString=function(){return k},L}}}var Lt={"-":"",_:" ",0:"0"},ne=/^\s*\d+/,er=/^%/,tr=/[\\^$*+?|[\]().{}]/g;function j(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function nr(e){return e.replace(tr,"\\$&")}function Ae(e){return new RegExp("^(?:"+e.map(nr).join("|")+")","i")}function Le(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function rr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ar(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ir(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function sr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function or(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function It(e,t,n){var r=ne.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Wt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function cr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ur(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function lr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ot(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function fr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ht(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function dr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function hr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function mr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function gr(e,t,n){var r=ne.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yr(e,t,n){var r=er.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function kr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function pr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Nt(e,t){return j(e.getDate(),t,2)}function vr(e,t){return j(e.getHours(),t,2)}function Tr(e,t){return j(e.getHours()%12||12,t,2)}function _r(e,t){return j(1+ve.count(ye(e),e),t,3)}function ln(e,t){return j(e.getMilliseconds(),t,3)}function xr(e,t){return ln(e,t)+"000"}function br(e,t){return j(e.getMonth()+1,t,2)}function wr(e,t){return j(e.getMinutes(),t,2)}function Dr(e,t){return j(e.getSeconds(),t,2)}function Cr(e){var t=e.getDay();return t===0?7:t}function Mr(e,t){return j(Ne.count(ye(e)-1,e),t,2)}function fn(e){var t=e.getDay();return t>=4||t===0?Te(e):Te.ceil(e)}function Sr(e,t){return e=fn(e),j(Te.count(ye(e),e)+(ye(e).getDay()===4),t,2)}function Fr(e){return e.getDay()}function Yr(e,t){return j(Oe.count(ye(e)-1,e),t,2)}function Ur(e,t){return j(e.getFullYear()%100,t,2)}function Er(e,t){return e=fn(e),j(e.getFullYear()%100,t,2)}function Ar(e,t){return j(e.getFullYear()%1e4,t,4)}function Lr(e,t){var n=e.getDay();return e=n>=4||n===0?Te(e):Te.ceil(e),j(e.getFullYear()%1e4,t,4)}function Ir(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+j(t/60|0,"0",2)+j(t%60,"0",2)}function Pt(e,t){return j(e.getUTCDate(),t,2)}function Wr(e,t){return j(e.getUTCHours(),t,2)}function Or(e,t){return j(e.getUTCHours()%12||12,t,2)}function Hr(e,t){return j(1+Tt.count(_e(e),e),t,3)}function dn(e,t){return j(e.getUTCMilliseconds(),t,3)}function Nr(e,t){return dn(e,t)+"000"}function Pr(e,t){return j(e.getUTCMonth()+1,t,2)}function Vr(e,t){return j(e.getUTCMinutes(),t,2)}function zr(e,t){return j(e.getUTCSeconds(),t,2)}function Rr(e){var t=e.getUTCDay();return t===0?7:t}function jr(e,t){return j(un.count(_e(e)-1,e),t,2)}function hn(e){var t=e.getUTCDay();return t>=4||t===0?Ye(e):Ye.ceil(e)}function qr(e,t){return e=hn(e),j(Ye.count(_e(e),e)+(_e(e).getUTCDay()===4),t,2)}function Br(e){return e.getUTCDay()}function Zr(e,t){return j(Je.count(_e(e)-1,e),t,2)}function Xr(e,t){return j(e.getUTCFullYear()%100,t,2)}function Gr(e,t){return e=hn(e),j(e.getUTCFullYear()%100,t,2)}function $r(e,t){return j(e.getUTCFullYear()%1e4,t,4)}function Qr(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ye(e):Ye.ceil(e),j(e.getUTCFullYear()%1e4,t,4)}function Jr(){return"+0000"}function Vt(){return"%"}function zt(e){return+e}function Rt(e){return Math.floor(+e/1e3)}var De,Ke;Kr({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"]});function Kr(e){return De=Kn(e),Ke=De.format,De.parse,De.utcFormat,De.utcParse,De}function ea(e){return new Date(e)}function ta(e){return e instanceof Date?+e:+new Date(+e)}function mn(e,t,n,r,a,i,o,y,M,p){var g=Ce.continuous(),E=g.invert,D=g.domain,_=p(".%L"),Z=p(":%S"),O=p("%I:%M"),C=p("%I %p"),I=p("%a %d"),P=p("%b %d"),W=p("%B"),q=p("%Y");function $(w){return(M(w)<w?_:y(w)<w?Z:o(w)<w?O:i(w)<w?C:r(w)<w?a(w)<w?I:P:n(w)<w?W:q)(w)}return g.invert=function(w){return new Date(E(w))},g.domain=function(w){return arguments.length?D(Array.from(w,ta)):D().map(ea)},g.ticks=function(w){var H=D();return e(H[0],H[H.length-1],w??10)},g.tickFormat=function(w,H){return H==null?$:p(H)},g.nice=function(w){var H=D();return(!w||typeof w.range!="function")&&(w=t(H[0],H[H.length-1],w??10)),w?D(Vn(H,w)):g},g.copy=function(){return Ce.copy(g,mn(e,t,n,r,a,i,o,y,M,p))},g}function na(){return bn.initRange.apply(mn(Qn,Jn,ye,He,Ne,ve,We,Ie,pe,Ke).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Be={exports:{}},ra=Be.exports,jt;function aa(){return jt||(jt=1,function(e,t){(function(n,r){e.exports=r()})(ra,function(){var n="day";return function(r,a,i){var o=function(p){return p.add(4-p.isoWeekday(),n)},y=a.prototype;y.isoWeekYear=function(){return o(this).year()},y.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var g,E,D,_,Z=o(this),O=(g=this.isoWeekYear(),E=this.$u,D=(E?i.utc:i)().year(g).startOf("year"),_=4-D.isoWeekday(),D.isoWeekday()>4&&(_+=7),D.add(_,n));return Z.diff(O,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var M=y.startOf;y.startOf=function(p,g){var E=this.$utils(),D=!!E.u(g)||g;return E.p(p)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(p,g)}}})}(Be)),Be.exports}var ia=aa();const sa=s.getDefaultExportFromCjs(ia);var Ze={exports:{}},oa=Ze.exports,qt;function ca(){return qt||(qt=1,function(e,t){(function(n,r){e.exports=r()})(oa,function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,o=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,M={},p=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(I){this[C]=+I}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var P=I.match(/([+-]|\d\d)/g),W=60*P[1]+(+P[2]||0);return W===0?0:P[0]==="+"?-W:W}(C)}],D=function(C){var I=M[C];return I&&(I.indexOf?I:I.s.concat(I.f))},_=function(C,I){var P,W=M.meridiem;if(W){for(var q=1;q<=24;q+=1)if(C.indexOf(W(q,0,I))>-1){P=q>12;break}}else P=C===(I?"pm":"PM");return P},Z={A:[y,function(C){this.afternoon=_(C,!1)}],a:[y,function(C){this.afternoon=_(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[o,g("seconds")],ss:[o,g("seconds")],m:[o,g("minutes")],mm:[o,g("minutes")],H:[o,g("hours")],h:[o,g("hours")],HH:[o,g("hours")],hh:[o,g("hours")],D:[o,g("day")],DD:[i,g("day")],Do:[y,function(C){var I=M.ordinal,P=C.match(/\d+/);if(this.day=P[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===C&&(this.day=W)}],w:[o,g("week")],ww:[i,g("week")],M:[o,g("month")],MM:[i,g("month")],MMM:[y,function(C){var I=D("months"),P=(D("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(C)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[y,function(C){var I=D("months").indexOf(C)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(C){this.year=p(C)}],YYYY:[/\d{4}/,g("year")],Z:E,ZZ:E};function O(C){var I,P;I=C,P=M&&M.formats;for(var W=(C=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(F,S,v){var U=v&&v.toUpperCase();return S||P[v]||n[v]||P[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(f,m,T){return m||T.slice(1)})})).match(r),q=W.length,$=0;$<q;$+=1){var w=W[$],H=Z[w],x=H&&H[0],Y=H&&H[1];W[$]=Y?{regex:x,parser:Y}:w.replace(/^\[|\]$/g,"")}return function(F){for(var S={},v=0,U=0;v<q;v+=1){var f=W[v];if(typeof f=="string")U+=f.length;else{var m=f.regex,T=f.parser,h=F.slice(U),b=m.exec(h)[0];T.call(S,b),F=F.replace(b,"")}}return function(u){var l=u.afternoon;if(l!==void 0){var c=u.hours;l?c<12&&(u.hours+=12):c===12&&(u.hours=0),delete u.afternoon}}(S),S}}return function(C,I,P){P.p.customParseFormat=!0,C&&C.parseTwoDigitYear&&(p=C.parseTwoDigitYear);var W=I.prototype,q=W.parse;W.parse=function($){var w=$.date,H=$.utc,x=$.args;this.$u=H;var Y=x[1];if(typeof Y=="string"){var F=x[2]===!0,S=x[3]===!0,v=F||S,U=x[2];S&&(U=x[2]),M=this.$locale(),!F&&U&&(M=P.Ls[U]),this.$d=function(h,b,u,l){try{if(["x","X"].indexOf(b)>-1)return new Date((b==="X"?1e3:1)*h);var c=O(b)(h),z=c.year,V=c.month,R=c.day,K=c.hours,X=c.minutes,Q=c.seconds,ae=c.milliseconds,k=c.zone,L=c.week,N=new Date,d=R||(z||V?1:N.getDate()),J=z||N.getFullYear(),A=0;z&&!V||(A=V>0?V-1:N.getMonth());var G,B=K||0,re=X||0,ie=Q||0,ke=ae||0;return k?new Date(Date.UTC(J,A,d,B,re,ie,ke+60*k.offset*1e3)):u?new Date(Date.UTC(J,A,d,B,re,ie,ke)):(G=new Date(J,A,d,B,re,ie,ke),L&&(G=l(G).week(L).toDate()),G)}catch{return new Date("")}}(w,Y,H,P),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),v&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var f=Y.length,m=1;m<=f;m+=1){x[1]=Y[m-1];var T=P.apply(this,x);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}m===f&&(this.$d=new Date(""))}else q.call(this,$)}}})}(Ze)),Ze.exports}var ua=ca();const la=s.getDefaultExportFromCjs(ua);var Xe={exports:{}},fa=Xe.exports,Bt;function da(){return Bt||(Bt=1,function(e,t){(function(n,r){e.exports=r()})(fa,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var y=this,M=this.$locale();if(!this.isValid())return i.bind(this)(o);var p=this.$utils(),g=(o||"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(E){switch(E){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return M.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return M.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),E==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),E==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return E}});return i.bind(this)(g)}}})}(Xe)),Xe.exports}var ha=da();const ma=s.getDefaultExportFromCjs(ha);var gt=function(){var e=s.__name(function(U,f,m,T){for(m=m||{},T=U.length;T--;m[U[T]]=f);return m},"o"),t=[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],a=[1,28],i=[1,29],o=[1,30],y=[1,31],M=[1,32],p=[1,33],g=[1,34],E=[1,9],D=[1,10],_=[1,11],Z=[1,12],O=[1,13],C=[1,14],I=[1,15],P=[1,16],W=[1,19],q=[1,20],$=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],F={trace:s.__name(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:s.__name(function(f,m,T,h,b,u,l){var c=u.length-1;switch(b){case 1:return u[c-1];case 2:this.$=[];break;case 3:u[c-1].push(u[c]),this.$=u[c-1];break;case 4:case 5:this.$=u[c];break;case 6:case 7:this.$=[];break;case 8:h.setWeekday("monday");break;case 9:h.setWeekday("tuesday");break;case 10:h.setWeekday("wednesday");break;case 11:h.setWeekday("thursday");break;case 12:h.setWeekday("friday");break;case 13:h.setWeekday("saturday");break;case 14:h.setWeekday("sunday");break;case 15:h.setWeekend("friday");break;case 16:h.setWeekend("saturday");break;case 17:h.setDateFormat(u[c].substr(11)),this.$=u[c].substr(11);break;case 18:h.enableInclusiveEndDates(),this.$=u[c].substr(18);break;case 19:h.TopAxis(),this.$=u[c].substr(8);break;case 20:h.setAxisFormat(u[c].substr(11)),this.$=u[c].substr(11);break;case 21:h.setTickInterval(u[c].substr(13)),this.$=u[c].substr(13);break;case 22:h.setExcludes(u[c].substr(9)),this.$=u[c].substr(9);break;case 23:h.setIncludes(u[c].substr(9)),this.$=u[c].substr(9);break;case 24:h.setTodayMarker(u[c].substr(12)),this.$=u[c].substr(12);break;case 27:h.setDiagramTitle(u[c].substr(6)),this.$=u[c].substr(6);break;case 28:this.$=u[c].trim(),h.setAccTitle(this.$);break;case 29:case 30:this.$=u[c].trim(),h.setAccDescription(this.$);break;case 31:h.addSection(u[c].substr(8)),this.$=u[c].substr(8);break;case 33:h.addTask(u[c-1],u[c]),this.$="task";break;case 34:this.$=u[c-1],h.setClickEvent(u[c-1],u[c],null);break;case 35:this.$=u[c-2],h.setClickEvent(u[c-2],u[c-1],u[c]);break;case 36:this.$=u[c-2],h.setClickEvent(u[c-2],u[c-1],null),h.setLink(u[c-2],u[c]);break;case 37:this.$=u[c-3],h.setClickEvent(u[c-3],u[c-2],u[c-1]),h.setLink(u[c-3],u[c]);break;case 38:this.$=u[c-2],h.setClickEvent(u[c-2],u[c],null),h.setLink(u[c-2],u[c-1]);break;case 39:this.$=u[c-3],h.setClickEvent(u[c-3],u[c-1],u[c]),h.setLink(u[c-3],u[c-2]);break;case 40:this.$=u[c-1],h.setLink(u[c-1],u[c]);break;case 41:case 47:this.$=u[c-1]+" "+u[c];break;case 42:case 43:case 45:this.$=u[c-2]+" "+u[c-1]+" "+u[c];break;case 44:case 46:this.$=u[c-3]+" "+u[c-2]+" "+u[c-1]+" "+u[c];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:o,17:y,18:M,19:18,20:p,21:g,22:E,23:D,24:_,25:Z,26:O,27:C,28:I,29:P,30:W,31:q,33:$,35:w,36:H,37:24,38:x,40:Y},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:o,17:y,18:M,19:18,20:p,21:g,22:E,23:D,24:_,25:Z,26:O,27:C,28:I,29:P,30:W,31:q,33:$,35:w,36:H,37:24,38:x,40:Y},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:s.__name(function(f,m){if(m.recoverable)this.trace(f);else{var T=new Error(f);throw T.hash=m,T}},"parseError"),parse:s.__name(function(f){var m=this,T=[0],h=[],b=[null],u=[],l=this.table,c="",z=0,V=0,R=2,K=1,X=u.slice.call(arguments,1),Q=Object.create(this.lexer),ae={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(ae.yy[k]=this.yy[k]);Q.setInput(f,ae.yy),ae.yy.lexer=Q,ae.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var L=Q.yylloc;u.push(L);var N=Q.options&&Q.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(se){T.length=T.length-2*se,b.length=b.length-se,u.length=u.length-se}s.__name(d,"popStack");function J(){var se;return se=h.pop()||Q.lex()||K,typeof se!="number"&&(se instanceof Array&&(h=se,se=h.pop()),se=m.symbols_[se]||se),se}s.__name(J,"lex");for(var A,G,B,re,ie={},ke,ce,Ut,Re;;){if(G=T[T.length-1],this.defaultActions[G]?B=this.defaultActions[G]:((A===null||typeof A>"u")&&(A=J()),B=l[G]&&l[G][A]),typeof B>"u"||!B.length||!B[0]){var nt="";Re=[];for(ke in l[G])this.terminals_[ke]&&ke>R&&Re.push("'"+this.terminals_[ke]+"'");Q.showPosition?nt="Parse error on line "+(z+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-t2PF2roh.cjs"),Ce=require("./linear-CsX8ee81.cjs"),bn=require("./init-CHZsXQcr.cjs");function wn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function Dn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Cn(e){return e}var qe=1,rt=2,ht=3,je=4,Et=1e-6;function Mn(e){return"translate("+e+",0)"}function Sn(e){return"translate(0,"+e+")"}function Fn(e){return t=>+e(t)}function Yn(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Un(){return!this.__axis}function $t(e,t){var n=[],r=null,a=null,i=6,o=6,y=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=e===qe||e===je?-1:1,g=e===je||e===rt?"x":"y",E=e===qe||e===ht?Mn:Sn;function D(_){var Z=r??(t.ticks?t.ticks.apply(t,n):t.domain()),O=a??(t.tickFormat?t.tickFormat.apply(t,n):Cn),C=Math.max(i,0)+y,I=t.range(),P=+I[0]+M,W=+I[I.length-1]+M,q=(t.bandwidth?Yn:Fn)(t.copy(),M),$=_.selection?_.selection():_,w=$.selectAll(".domain").data([null]),H=$.selectAll(".tick").data(Z,t).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),F=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),F=F.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",p*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,p*C).attr("dy",e===qe?"0em":e===ht?"0.71em":"0.32em")),_!==$&&(w=w.transition(_),H=H.transition(_),F=F.transition(_),S=S.transition(_),x=x.transition(_).attr("opacity",Et).attr("transform",function(v){return isFinite(v=q(v))?E(v+M):this.getAttribute("transform")}),Y.attr("opacity",Et).attr("transform",function(v){var U=this.parentNode.__axis;return E((U&&isFinite(U=U(v))?U:q(v))+M)})),x.remove(),w.attr("d",e===je||e===rt?o?"M"+p*o+","+P+"H"+M+"V"+W+"H"+p*o:"M"+M+","+P+"V"+W:o?"M"+P+","+p*o+"V"+M+"H"+W+"V"+p*o:"M"+P+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(v){return E(q(v)+M)}),F.attr(g+"2",p*i),S.attr(g,p*C).text(O),$.filter(Un).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===rt?"start":e===je?"end":"middle"),$.each(function(){this.__axis=q})}return D.scale=function(_){return arguments.length?(t=_,D):t},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(_){return arguments.length?(n=_==null?[]:Array.from(_),D):n.slice()},D.tickValues=function(_){return arguments.length?(r=_==null?null:Array.from(_),D):r&&r.slice()},D.tickFormat=function(_){return arguments.length?(a=_,D):a},D.tickSize=function(_){return arguments.length?(i=o=+_,D):i},D.tickSizeInner=function(_){return arguments.length?(i=+_,D):i},D.tickSizeOuter=function(_){return arguments.length?(o=+_,D):o},D.tickPadding=function(_){return arguments.length?(y=+_,D):y},D.offset=function(_){return arguments.length?(M=+_,D):M},D}function En(e){return $t(qe,e)}function An(e){return $t(ht,e)}const Ln=Math.PI/180,In=180/Math.PI,Qe=18,Qt=.96422,Jt=1,Kt=.82521,en=4/29,Me=6/29,tn=3*Me*Me,Wn=Me*Me*Me;function nn(e){if(e instanceof le)return new le(e.l,e.a,e.b,e.opacity);if(e instanceof de)return rn(e);e instanceof s.Rgb||(e=s.rgbConvert(e));var t=ot(e.r),n=ot(e.g),r=ot(e.b),a=at((.2225045*t+.7168786*n+.0606169*r)/Jt),i,o;return t===n&&n===r?i=o=a:(i=at((.4360747*t+.3850649*n+.1430804*r)/Qt),o=at((.0139322*t+.0971045*n+.7141733*r)/Kt)),new le(116*a-16,500*(i-a),200*(a-o),e.opacity)}function On(e,t,n,r){return arguments.length===1?nn(e):new le(e,t,n,r??1)}function le(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}s.define(le,On,s.extend(s.Color$1,{brighter(e){return new le(this.l+Qe*(e??1),this.a,this.b,this.opacity)},darker(e){return new le(this.l-Qe*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Qt*it(t),e=Jt*it(e),n=Kt*it(n),new s.Rgb(st(3.1338561*t-1.6168667*e-.4906146*n),st(-.9787684*t+1.9161415*e+.033454*n),st(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function at(e){return e>Wn?Math.pow(e,1/3):e/tn+en}function it(e){return e>Me?e*e*e:tn*(e-en)}function st(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ot(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hn(e){if(e instanceof de)return new de(e.h,e.c,e.l,e.opacity);if(e instanceof le||(e=nn(e)),e.a===0&&e.b===0)return new de(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*In;return new de(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function mt(e,t,n,r){return arguments.length===1?Hn(e):new de(e,t,n,r??1)}function de(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function rn(e){if(isNaN(e.h))return new le(e.l,0,0,e.opacity);var t=e.h*Ln;return new le(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}s.define(de,mt,s.extend(s.Color$1,{brighter(e){return new de(this.h,this.c,this.l+Qe*(e??1),this.opacity)},darker(e){return new de(this.h,this.c,this.l-Qe*(e??1),this.opacity)},rgb(){return rn(this).rgb()}}));function Nn(e){return function(t,n){var r=e((t=mt(t)).h,(n=mt(n)).h),a=s.nogamma(t.c,n.c),i=s.nogamma(t.l,n.l),o=s.nogamma(t.opacity,n.opacity);return function(y){return t.h=r(y),t.c=a(y),t.l=i(y),t.opacity=o(y),t+""}}}const Pn=Nn(s.hue);function Vn(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}const ct=new Date,ut=new Date;function te(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),y=a.ceil(i);return i-o<y-i?o:y},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,y)=>{const M=[];if(i=a.ceil(i),y=y==null?1:Math.floor(y),!(i<o)||!(y>0))return M;let p;do M.push(p=new Date(+i)),t(i,y),e(i);while(p<i&&i<o);return M},a.filter=i=>te(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,y)=>{if(o>=o)if(y<0)for(;++y<=0;)for(;t(o,-1),!i(o););else for(;--y>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(ct.setTime(+i),ut.setTime(+o),e(ct),e(ut),Math.floor(n(ct,ut))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Fe=te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Fe.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?te(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Fe);Fe.range;const he=1e3,oe=he*60,me=oe*60,ge=me*24,vt=ge*7,At=ge*30,lt=ge*365,pe=te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*he)},(e,t)=>(t-e)/he,e=>e.getUTCSeconds());pe.range;const Ie=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*he)},(e,t)=>{e.setTime(+e+t*oe)},(e,t)=>(t-e)/oe,e=>e.getMinutes());Ie.range;const zn=te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*oe)},(e,t)=>(t-e)/oe,e=>e.getUTCMinutes());zn.range;const We=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*he-e.getMinutes()*oe)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getHours());We.range;const Rn=te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCHours());Rn.range;const ve=te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*oe)/ge,e=>e.getDate()-1);ve.range;const Tt=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ge,e=>e.getUTCDate()-1);Tt.range;const jn=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ge,e=>Math.floor(e/ge));jn.range;function xe(e){return te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*oe)/vt)}const Ne=xe(0),Oe=xe(1),an=xe(2),sn=xe(3),Te=xe(4),on=xe(5),cn=xe(6);Ne.range;Oe.range;an.range;sn.range;Te.range;on.range;cn.range;function be(e){return te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vt)}const un=be(0),Je=be(1),qn=be(2),Bn=be(3),Ye=be(4),Zn=be(5),Xn=be(6);un.range;Je.range;qn.range;Bn.range;Ye.range;Zn.range;Xn.range;const He=te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());He.range;const Gn=te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Gn.range;const ye=te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ye.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ye.range;const _e=te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());_e.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});_e.range;function $n(e,t,n,r,a,i){const o=[[pe,1,he],[pe,5,5*he],[pe,15,15*he],[pe,30,30*he],[i,1,oe],[i,5,5*oe],[i,15,15*oe],[i,30,30*oe],[a,1,me],[a,3,3*me],[a,6,6*me],[a,12,12*me],[r,1,ge],[r,2,2*ge],[n,1,vt],[t,1,At],[t,3,3*At],[e,1,lt]];function y(p,g,E){const D=g<p;D&&([p,g]=[g,p]);const _=E&&typeof E.range=="function"?E:M(p,g,E),Z=_?_.range(p,+g+1):[];return D?Z.reverse():Z}function M(p,g,E){const D=Math.abs(g-p)/E,_=Ce.bisector(([,,C])=>C).right(o,D);if(_===o.length)return e.every(Ce.tickStep(p/lt,g/lt,E));if(_===0)return Fe.every(Math.max(Ce.tickStep(p,g,E),1));const[Z,O]=o[D/o[_-1][2]<o[_][2]/D?_-1:_];return Z.every(O)}return[y,M]}const[Qn,Jn]=$n(ye,He,Ne,ve,We,Ie);function ft(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function dt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ee(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Kn(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,y=e.months,M=e.shortMonths,p=Ae(a),g=Le(a),E=Ae(i),D=Le(i),_=Ae(o),Z=Le(o),O=Ae(y),C=Le(y),I=Ae(M),P=Le(M),W={a:h,A:b,b:u,B:l,c:null,d:Nt,e:Nt,f:xr,g:Er,G:Lr,H:vr,I:Tr,j:_r,L:ln,m:br,M:wr,p:c,q:z,Q:zt,s:Rt,S:Dr,u:Cr,U:Mr,V:Sr,w:Fr,W:Yr,x:null,X:null,y:Ur,Y:Ar,Z:Ir,"%":Vt},q={a:V,A:R,b:K,B:X,c:null,d:Pt,e:Pt,f:Nr,g:Gr,G:Qr,H:Wr,I:Or,j:Hr,L:dn,m:Pr,M:Vr,p:Q,q:ae,Q:zt,s:Rt,S:zr,u:Rr,U:jr,V:qr,w:Br,W:Zr,x:null,X:null,y:Xr,Y:$r,Z:Jr,"%":Vt},$={a:F,A:S,b:v,B:U,c:f,d:Ot,e:Ot,f:gr,g:Wt,G:It,H:Ht,I:Ht,j:fr,L:mr,m:lr,M:dr,p:Y,q:ur,Q:kr,s:pr,S:hr,u:ar,U:ir,V:sr,w:rr,W:or,x:m,X:T,y:Wt,Y:It,Z:cr,"%":yr};W.x=w(n,W),W.X=w(r,W),W.c=w(t,W),q.x=w(n,q),q.X=w(r,q),q.c=w(t,q);function w(k,L){return function(N){var d=[],J=-1,A=0,G=k.length,B,re,ie;for(N instanceof Date||(N=new Date(+N));++J<G;)k.charCodeAt(J)===37&&(d.push(k.slice(A,J)),(re=Lt[B=k.charAt(++J)])!=null?B=k.charAt(++J):re=B==="e"?" ":"0",(ie=L[B])&&(B=ie(N,re)),d.push(B),A=J+1);return d.push(k.slice(A,J)),d.join("")}}function H(k,L){return function(N){var d=Ee(1900,void 0,1),J=x(d,k,N+="",0),A,G;if(J!=N.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(d.s*1e3+("L"in d?d.L:0));if(L&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+d.p*12),d.m===void 0&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(A=dt(Ee(d.y,0,1)),G=A.getUTCDay(),A=G>4||G===0?Je.ceil(A):Je(A),A=Tt.offset(A,(d.V-1)*7),d.y=A.getUTCFullYear(),d.m=A.getUTCMonth(),d.d=A.getUTCDate()+(d.w+6)%7):(A=ft(Ee(d.y,0,1)),G=A.getDay(),A=G>4||G===0?Oe.ceil(A):Oe(A),A=ve.offset(A,(d.V-1)*7),d.y=A.getFullYear(),d.m=A.getMonth(),d.d=A.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),G="Z"in d?dt(Ee(d.y,0,1)).getUTCDay():ft(Ee(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+d.W*7-(G+5)%7:d.w+d.U*7-(G+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,dt(d)):ft(d)}}function x(k,L,N,d){for(var J=0,A=L.length,G=N.length,B,re;J<A;){if(d>=G)return-1;if(B=L.charCodeAt(J++),B===37){if(B=L.charAt(J++),re=$[B in Lt?L.charAt(J++):B],!re||(d=re(k,N,d))<0)return-1}else if(B!=N.charCodeAt(d++))return-1}return d}function Y(k,L,N){var d=p.exec(L.slice(N));return d?(k.p=g.get(d[0].toLowerCase()),N+d[0].length):-1}function F(k,L,N){var d=_.exec(L.slice(N));return d?(k.w=Z.get(d[0].toLowerCase()),N+d[0].length):-1}function S(k,L,N){var d=E.exec(L.slice(N));return d?(k.w=D.get(d[0].toLowerCase()),N+d[0].length):-1}function v(k,L,N){var d=I.exec(L.slice(N));return d?(k.m=P.get(d[0].toLowerCase()),N+d[0].length):-1}function U(k,L,N){var d=O.exec(L.slice(N));return d?(k.m=C.get(d[0].toLowerCase()),N+d[0].length):-1}function f(k,L,N){return x(k,t,L,N)}function m(k,L,N){return x(k,n,L,N)}function T(k,L,N){return x(k,r,L,N)}function h(k){return o[k.getDay()]}function b(k){return i[k.getDay()]}function u(k){return M[k.getMonth()]}function l(k){return y[k.getMonth()]}function c(k){return a[+(k.getHours()>=12)]}function z(k){return 1+~~(k.getMonth()/3)}function V(k){return o[k.getUTCDay()]}function R(k){return i[k.getUTCDay()]}function K(k){return M[k.getUTCMonth()]}function X(k){return y[k.getUTCMonth()]}function Q(k){return a[+(k.getUTCHours()>=12)]}function ae(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var L=w(k+="",W);return L.toString=function(){return k},L},parse:function(k){var L=H(k+="",!1);return L.toString=function(){return k},L},utcFormat:function(k){var L=w(k+="",q);return L.toString=function(){return k},L},utcParse:function(k){var L=H(k+="",!0);return L.toString=function(){return k},L}}}var Lt={"-":"",_:" ",0:"0"},ne=/^\s*\d+/,er=/^%/,tr=/[\\^$*+?|[\]().{}]/g;function j(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function nr(e){return e.replace(tr,"\\$&")}function Ae(e){return new RegExp("^(?:"+e.map(nr).join("|")+")","i")}function Le(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function rr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ar(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ir(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function sr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function or(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function It(e,t,n){var r=ne.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Wt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function cr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ur(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function lr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ot(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function fr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ht(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function dr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function hr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function mr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function gr(e,t,n){var r=ne.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yr(e,t,n){var r=er.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function kr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function pr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Nt(e,t){return j(e.getDate(),t,2)}function vr(e,t){return j(e.getHours(),t,2)}function Tr(e,t){return j(e.getHours()%12||12,t,2)}function _r(e,t){return j(1+ve.count(ye(e),e),t,3)}function ln(e,t){return j(e.getMilliseconds(),t,3)}function xr(e,t){return ln(e,t)+"000"}function br(e,t){return j(e.getMonth()+1,t,2)}function wr(e,t){return j(e.getMinutes(),t,2)}function Dr(e,t){return j(e.getSeconds(),t,2)}function Cr(e){var t=e.getDay();return t===0?7:t}function Mr(e,t){return j(Ne.count(ye(e)-1,e),t,2)}function fn(e){var t=e.getDay();return t>=4||t===0?Te(e):Te.ceil(e)}function Sr(e,t){return e=fn(e),j(Te.count(ye(e),e)+(ye(e).getDay()===4),t,2)}function Fr(e){return e.getDay()}function Yr(e,t){return j(Oe.count(ye(e)-1,e),t,2)}function Ur(e,t){return j(e.getFullYear()%100,t,2)}function Er(e,t){return e=fn(e),j(e.getFullYear()%100,t,2)}function Ar(e,t){return j(e.getFullYear()%1e4,t,4)}function Lr(e,t){var n=e.getDay();return e=n>=4||n===0?Te(e):Te.ceil(e),j(e.getFullYear()%1e4,t,4)}function Ir(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+j(t/60|0,"0",2)+j(t%60,"0",2)}function Pt(e,t){return j(e.getUTCDate(),t,2)}function Wr(e,t){return j(e.getUTCHours(),t,2)}function Or(e,t){return j(e.getUTCHours()%12||12,t,2)}function Hr(e,t){return j(1+Tt.count(_e(e),e),t,3)}function dn(e,t){return j(e.getUTCMilliseconds(),t,3)}function Nr(e,t){return dn(e,t)+"000"}function Pr(e,t){return j(e.getUTCMonth()+1,t,2)}function Vr(e,t){return j(e.getUTCMinutes(),t,2)}function zr(e,t){return j(e.getUTCSeconds(),t,2)}function Rr(e){var t=e.getUTCDay();return t===0?7:t}function jr(e,t){return j(un.count(_e(e)-1,e),t,2)}function hn(e){var t=e.getUTCDay();return t>=4||t===0?Ye(e):Ye.ceil(e)}function qr(e,t){return e=hn(e),j(Ye.count(_e(e),e)+(_e(e).getUTCDay()===4),t,2)}function Br(e){return e.getUTCDay()}function Zr(e,t){return j(Je.count(_e(e)-1,e),t,2)}function Xr(e,t){return j(e.getUTCFullYear()%100,t,2)}function Gr(e,t){return e=hn(e),j(e.getUTCFullYear()%100,t,2)}function $r(e,t){return j(e.getUTCFullYear()%1e4,t,4)}function Qr(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ye(e):Ye.ceil(e),j(e.getUTCFullYear()%1e4,t,4)}function Jr(){return"+0000"}function Vt(){return"%"}function zt(e){return+e}function Rt(e){return Math.floor(+e/1e3)}var De,Ke;Kr({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"]});function Kr(e){return De=Kn(e),Ke=De.format,De.parse,De.utcFormat,De.utcParse,De}function ea(e){return new Date(e)}function ta(e){return e instanceof Date?+e:+new Date(+e)}function mn(e,t,n,r,a,i,o,y,M,p){var g=Ce.continuous(),E=g.invert,D=g.domain,_=p(".%L"),Z=p(":%S"),O=p("%I:%M"),C=p("%I %p"),I=p("%a %d"),P=p("%b %d"),W=p("%B"),q=p("%Y");function $(w){return(M(w)<w?_:y(w)<w?Z:o(w)<w?O:i(w)<w?C:r(w)<w?a(w)<w?I:P:n(w)<w?W:q)(w)}return g.invert=function(w){return new Date(E(w))},g.domain=function(w){return arguments.length?D(Array.from(w,ta)):D().map(ea)},g.ticks=function(w){var H=D();return e(H[0],H[H.length-1],w??10)},g.tickFormat=function(w,H){return H==null?$:p(H)},g.nice=function(w){var H=D();return(!w||typeof w.range!="function")&&(w=t(H[0],H[H.length-1],w??10)),w?D(Vn(H,w)):g},g.copy=function(){return Ce.copy(g,mn(e,t,n,r,a,i,o,y,M,p))},g}function na(){return bn.initRange.apply(mn(Qn,Jn,ye,He,Ne,ve,We,Ie,pe,Ke).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Be={exports:{}},ra=Be.exports,jt;function aa(){return jt||(jt=1,function(e,t){(function(n,r){e.exports=r()})(ra,function(){var n="day";return function(r,a,i){var o=function(p){return p.add(4-p.isoWeekday(),n)},y=a.prototype;y.isoWeekYear=function(){return o(this).year()},y.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var g,E,D,_,Z=o(this),O=(g=this.isoWeekYear(),E=this.$u,D=(E?i.utc:i)().year(g).startOf("year"),_=4-D.isoWeekday(),D.isoWeekday()>4&&(_+=7),D.add(_,n));return Z.diff(O,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var M=y.startOf;y.startOf=function(p,g){var E=this.$utils(),D=!!E.u(g)||g;return E.p(p)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(p,g)}}})}(Be)),Be.exports}var ia=aa();const sa=s.getDefaultExportFromCjs(ia);var Ze={exports:{}},oa=Ze.exports,qt;function ca(){return qt||(qt=1,function(e,t){(function(n,r){e.exports=r()})(oa,function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,o=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,M={},p=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(I){this[C]=+I}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var P=I.match(/([+-]|\d\d)/g),W=60*P[1]+(+P[2]||0);return W===0?0:P[0]==="+"?-W:W}(C)}],D=function(C){var I=M[C];return I&&(I.indexOf?I:I.s.concat(I.f))},_=function(C,I){var P,W=M.meridiem;if(W){for(var q=1;q<=24;q+=1)if(C.indexOf(W(q,0,I))>-1){P=q>12;break}}else P=C===(I?"pm":"PM");return P},Z={A:[y,function(C){this.afternoon=_(C,!1)}],a:[y,function(C){this.afternoon=_(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[o,g("seconds")],ss:[o,g("seconds")],m:[o,g("minutes")],mm:[o,g("minutes")],H:[o,g("hours")],h:[o,g("hours")],HH:[o,g("hours")],hh:[o,g("hours")],D:[o,g("day")],DD:[i,g("day")],Do:[y,function(C){var I=M.ordinal,P=C.match(/\d+/);if(this.day=P[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===C&&(this.day=W)}],w:[o,g("week")],ww:[i,g("week")],M:[o,g("month")],MM:[i,g("month")],MMM:[y,function(C){var I=D("months"),P=(D("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(C)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[y,function(C){var I=D("months").indexOf(C)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(C){this.year=p(C)}],YYYY:[/\d{4}/,g("year")],Z:E,ZZ:E};function O(C){var I,P;I=C,P=M&&M.formats;for(var W=(C=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(F,S,v){var U=v&&v.toUpperCase();return S||P[v]||n[v]||P[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(f,m,T){return m||T.slice(1)})})).match(r),q=W.length,$=0;$<q;$+=1){var w=W[$],H=Z[w],x=H&&H[0],Y=H&&H[1];W[$]=Y?{regex:x,parser:Y}:w.replace(/^\[|\]$/g,"")}return function(F){for(var S={},v=0,U=0;v<q;v+=1){var f=W[v];if(typeof f=="string")U+=f.length;else{var m=f.regex,T=f.parser,h=F.slice(U),b=m.exec(h)[0];T.call(S,b),F=F.replace(b,"")}}return function(u){var l=u.afternoon;if(l!==void 0){var c=u.hours;l?c<12&&(u.hours+=12):c===12&&(u.hours=0),delete u.afternoon}}(S),S}}return function(C,I,P){P.p.customParseFormat=!0,C&&C.parseTwoDigitYear&&(p=C.parseTwoDigitYear);var W=I.prototype,q=W.parse;W.parse=function($){var w=$.date,H=$.utc,x=$.args;this.$u=H;var Y=x[1];if(typeof Y=="string"){var F=x[2]===!0,S=x[3]===!0,v=F||S,U=x[2];S&&(U=x[2]),M=this.$locale(),!F&&U&&(M=P.Ls[U]),this.$d=function(h,b,u,l){try{if(["x","X"].indexOf(b)>-1)return new Date((b==="X"?1e3:1)*h);var c=O(b)(h),z=c.year,V=c.month,R=c.day,K=c.hours,X=c.minutes,Q=c.seconds,ae=c.milliseconds,k=c.zone,L=c.week,N=new Date,d=R||(z||V?1:N.getDate()),J=z||N.getFullYear(),A=0;z&&!V||(A=V>0?V-1:N.getMonth());var G,B=K||0,re=X||0,ie=Q||0,ke=ae||0;return k?new Date(Date.UTC(J,A,d,B,re,ie,ke+60*k.offset*1e3)):u?new Date(Date.UTC(J,A,d,B,re,ie,ke)):(G=new Date(J,A,d,B,re,ie,ke),L&&(G=l(G).week(L).toDate()),G)}catch{return new Date("")}}(w,Y,H,P),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),v&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var f=Y.length,m=1;m<=f;m+=1){x[1]=Y[m-1];var T=P.apply(this,x);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}m===f&&(this.$d=new Date(""))}else q.call(this,$)}}})}(Ze)),Ze.exports}var ua=ca();const la=s.getDefaultExportFromCjs(ua);var Xe={exports:{}},fa=Xe.exports,Bt;function da(){return Bt||(Bt=1,function(e,t){(function(n,r){e.exports=r()})(fa,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var y=this,M=this.$locale();if(!this.isValid())return i.bind(this)(o);var p=this.$utils(),g=(o||"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(E){switch(E){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return M.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return M.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),E==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),E==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return E}});return i.bind(this)(g)}}})}(Xe)),Xe.exports}var ha=da();const ma=s.getDefaultExportFromCjs(ha);var gt=function(){var e=s.__name(function(U,f,m,T){for(m=m||{},T=U.length;T--;m[U[T]]=f);return m},"o"),t=[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],a=[1,28],i=[1,29],o=[1,30],y=[1,31],M=[1,32],p=[1,33],g=[1,34],E=[1,9],D=[1,10],_=[1,11],Z=[1,12],O=[1,13],C=[1,14],I=[1,15],P=[1,16],W=[1,19],q=[1,20],$=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],F={trace:s.__name(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:s.__name(function(f,m,T,h,b,u,l){var c=u.length-1;switch(b){case 1:return u[c-1];case 2:this.$=[];break;case 3:u[c-1].push(u[c]),this.$=u[c-1];break;case 4:case 5:this.$=u[c];break;case 6:case 7:this.$=[];break;case 8:h.setWeekday("monday");break;case 9:h.setWeekday("tuesday");break;case 10:h.setWeekday("wednesday");break;case 11:h.setWeekday("thursday");break;case 12:h.setWeekday("friday");break;case 13:h.setWeekday("saturday");break;case 14:h.setWeekday("sunday");break;case 15:h.setWeekend("friday");break;case 16:h.setWeekend("saturday");break;case 17:h.setDateFormat(u[c].substr(11)),this.$=u[c].substr(11);break;case 18:h.enableInclusiveEndDates(),this.$=u[c].substr(18);break;case 19:h.TopAxis(),this.$=u[c].substr(8);break;case 20:h.setAxisFormat(u[c].substr(11)),this.$=u[c].substr(11);break;case 21:h.setTickInterval(u[c].substr(13)),this.$=u[c].substr(13);break;case 22:h.setExcludes(u[c].substr(9)),this.$=u[c].substr(9);break;case 23:h.setIncludes(u[c].substr(9)),this.$=u[c].substr(9);break;case 24:h.setTodayMarker(u[c].substr(12)),this.$=u[c].substr(12);break;case 27:h.setDiagramTitle(u[c].substr(6)),this.$=u[c].substr(6);break;case 28:this.$=u[c].trim(),h.setAccTitle(this.$);break;case 29:case 30:this.$=u[c].trim(),h.setAccDescription(this.$);break;case 31:h.addSection(u[c].substr(8)),this.$=u[c].substr(8);break;case 33:h.addTask(u[c-1],u[c]),this.$="task";break;case 34:this.$=u[c-1],h.setClickEvent(u[c-1],u[c],null);break;case 35:this.$=u[c-2],h.setClickEvent(u[c-2],u[c-1],u[c]);break;case 36:this.$=u[c-2],h.setClickEvent(u[c-2],u[c-1],null),h.setLink(u[c-2],u[c]);break;case 37:this.$=u[c-3],h.setClickEvent(u[c-3],u[c-2],u[c-1]),h.setLink(u[c-3],u[c]);break;case 38:this.$=u[c-2],h.setClickEvent(u[c-2],u[c],null),h.setLink(u[c-2],u[c-1]);break;case 39:this.$=u[c-3],h.setClickEvent(u[c-3],u[c-1],u[c]),h.setLink(u[c-3],u[c-2]);break;case 40:this.$=u[c-1],h.setLink(u[c-1],u[c]);break;case 41:case 47:this.$=u[c-1]+" "+u[c];break;case 42:case 43:case 45:this.$=u[c-2]+" "+u[c-1]+" "+u[c];break;case 44:case 46:this.$=u[c-3]+" "+u[c-2]+" "+u[c-1]+" "+u[c];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:o,17:y,18:M,19:18,20:p,21:g,22:E,23:D,24:_,25:Z,26:O,27:C,28:I,29:P,30:W,31:q,33:$,35:w,36:H,37:24,38:x,40:Y},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:o,17:y,18:M,19:18,20:p,21:g,22:E,23:D,24:_,25:Z,26:O,27:C,28:I,29:P,30:W,31:q,33:$,35:w,36:H,37:24,38:x,40:Y},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:s.__name(function(f,m){if(m.recoverable)this.trace(f);else{var T=new Error(f);throw T.hash=m,T}},"parseError"),parse:s.__name(function(f){var m=this,T=[0],h=[],b=[null],u=[],l=this.table,c="",z=0,V=0,R=2,K=1,X=u.slice.call(arguments,1),Q=Object.create(this.lexer),ae={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(ae.yy[k]=this.yy[k]);Q.setInput(f,ae.yy),ae.yy.lexer=Q,ae.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var L=Q.yylloc;u.push(L);var N=Q.options&&Q.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(se){T.length=T.length-2*se,b.length=b.length-se,u.length=u.length-se}s.__name(d,"popStack");function J(){var se;return se=h.pop()||Q.lex()||K,typeof se!="number"&&(se instanceof Array&&(h=se,se=h.pop()),se=m.symbols_[se]||se),se}s.__name(J,"lex");for(var A,G,B,re,ie={},ke,ce,Ut,Re;;){if(G=T[T.length-1],this.defaultActions[G]?B=this.defaultActions[G]:((A===null||typeof A>"u")&&(A=J()),B=l[G]&&l[G][A]),typeof B>"u"||!B.length||!B[0]){var nt="";Re=[];for(ke in l[G])this.terminals_[ke]&&ke>R&&Re.push("'"+this.terminals_[ke]+"'");Q.showPosition?nt="Parse error on line "+(z+1)+`:
2
2
  `+Q.showPosition()+`
3
3
  Expecting `+Re.join(", ")+", got '"+(this.terminals_[A]||A)+"'":nt="Parse error on line "+(z+1)+": Unexpected "+(A==K?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(nt,{text:Q.match,token:this.terminals_[A]||A,line:Q.yylineno,loc:L,expected:Re})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+A);switch(B[0]){case 1:T.push(A),b.push(Q.yytext),u.push(Q.yylloc),T.push(B[1]),A=null,V=Q.yyleng,c=Q.yytext,z=Q.yylineno,L=Q.yylloc;break;case 2:if(ce=this.productions_[B[1]][1],ie.$=b[b.length-ce],ie._$={first_line:u[u.length-(ce||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ce||1)].first_column,last_column:u[u.length-1].last_column},N&&(ie._$.range=[u[u.length-(ce||1)].range[0],u[u.length-1].range[1]]),re=this.performAction.apply(ie,[c,V,z,ae.yy,B[1],b,u].concat(X)),typeof re<"u")return re;ce&&(T=T.slice(0,-1*ce*2),b=b.slice(0,-1*ce),u=u.slice(0,-1*ce)),T.push(this.productions_[B[1]][0]),b.push(ie.$),u.push(ie._$),Ut=l[T[T.length-2]][T[T.length-1]],T.push(Ut);break;case 3:return!0}}return!0},"parse")},S=function(){var U={EOF:1,parseError:s.__name(function(m,T){if(this.yy.parser)this.yy.parser.parseError(m,T);else throw new Error(m)},"parseError"),setInput:s.__name(function(f,m){return this.yy=m||this.yy||{},this._input=f,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:s.__name(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var m=f.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),f},"input"),unput:s.__name(function(f){var m=f.length,T=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var h=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),T.length-1&&(this.yylineno-=T.length-1);var b=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:T?(T.length===h.length?this.yylloc.first_column:0)+h[h.length-T.length].length-T[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s.__name(function(f){this.unput(this.match.slice(f))},"less"),pastInput:s.__name(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var f=this.match;return f.length<20&&(f+=this._input.substr(0,20-f.length)),(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var f=this.pastInput(),m=new Array(f.length+1).join("-");return f+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import { G as a, f as G } from "./mermaid-parser.core-BCUCaKDn.js";
1
+ import { G as a, f as G } from "./mermaid-parser.core-rJSq2yEh.js";
2
2
  export {
3
3
  a as GitGraphModule,
4
4
  G as createGitGraphServices
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-DEehUa3F.cjs");exports.GitGraphModule=e.GitGraphModule;exports.createGitGraphServices=e.createGitGraphServices;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-ykDrRpvX.cjs");exports.GitGraphModule=e.GitGraphModule;exports.createGitGraphServices=e.createGitGraphServices;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-Ctenjwmh.cjs"),j=require("./chunk-QZHKN3VN-CGSq2gsc.cjs"),s=require("./index-C7TBTVdT.cjs"),K=require("./mermaid-parser.core-DEehUa3F.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))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 ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-C4bhOz4I.cjs"),j=require("./chunk-QZHKN3VN-2F4MEJT8.cjs"),s=require("./index-t2PF2roh.cjs"),K=require("./mermaid-parser.core-ykDrRpvX.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))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 ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
2
2
  ${o-a/2-w/2},${y+v}
3
3
  ${o-a/2-w/2},${y-v}
4
4
  ${n.posWithOffset-a/2-w},${y-d-v}