@toimc/markdown 0.0.1 → 0.0.2

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 (237) hide show
  1. package/dist/{CodeBlock.vue.d.ts → components/CodeBlock.vue.d.ts} +10 -1
  2. package/dist/components/CodeBlock.vue.d.ts.map +1 -0
  3. package/dist/components/LatexBlock.vue.d.ts.map +1 -0
  4. package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
  5. package/dist/components/MermaidBlock.vue.d.ts.map +1 -0
  6. package/dist/composables/useMarkdownIt.d.ts.map +1 -1
  7. package/dist/index.cjs +62 -59
  8. package/dist/index.d.ts +4 -4
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.mjs +4536 -4331
  11. package/dist/markdown.css +1 -1
  12. package/dist/utils/formula-guard.d.ts +13 -0
  13. package/dist/utils/formula-guard.d.ts.map +1 -0
  14. package/dist/utils/split-lines.d.ts +10 -0
  15. package/dist/utils/split-lines.d.ts.map +1 -0
  16. package/package.json +6 -3
  17. package/dist/CodeBlock.test.d.ts +0 -2
  18. package/dist/CodeBlock.test.d.ts.map +0 -1
  19. package/dist/CodeBlock.vue.d.ts.map +0 -1
  20. package/dist/LatexBlock.test.d.ts +0 -2
  21. package/dist/LatexBlock.test.d.ts.map +0 -1
  22. package/dist/LatexBlock.vue.d.ts.map +0 -1
  23. package/dist/MarkdownRenderer.test.d.ts +0 -2
  24. package/dist/MarkdownRenderer.test.d.ts.map +0 -1
  25. package/dist/MarkdownRenderer.vue.d.ts.map +0 -1
  26. package/dist/MermaidBlock.test.d.ts +0 -2
  27. package/dist/MermaidBlock.test.d.ts.map +0 -1
  28. package/dist/MermaidBlock.vue.d.ts.map +0 -1
  29. package/dist/abnfDiagram-N423BO3Z-CpvDGmAd.cjs +0 -1
  30. package/dist/abnfDiagram-N423BO3Z-DuAPsGBR.js +0 -89
  31. package/dist/arc-CFxpoaLu.js +0 -82
  32. package/dist/arc-Dh2Zrypi.cjs +0 -1
  33. package/dist/architecture-TIHT7OUA-CUym9zMN.cjs +0 -1
  34. package/dist/architecture-TIHT7OUA-DDwCCw0y.js +0 -3
  35. package/dist/architectureDiagram-T3A2C74G-CS6-PQjR.cjs +0 -36
  36. package/dist/architectureDiagram-T3A2C74G-d7xzbLJQ.js +0 -4155
  37. package/dist/array-CApNbSU9.js +0 -6
  38. package/dist/array-DZSRzHA_.cjs +0 -1
  39. package/dist/blockDiagram-VBNYF7ZC-CnvNE8Hq.js +0 -3157
  40. package/dist/blockDiagram-VBNYF7ZC-DVl7vKmv.cjs +0 -132
  41. package/dist/c4Diagram-5PPSVZJV-B1RTcquO.js +0 -2982
  42. package/dist/c4Diagram-5PPSVZJV-Djkk0hzr.cjs +0 -10
  43. package/dist/channel-CNZiSge7.cjs +0 -1
  44. package/dist/channel-CqlbSsMQ.js +0 -5
  45. package/dist/chunk-2GRJ4B5K-BgeLbn06.cjs +0 -1
  46. package/dist/chunk-2GRJ4B5K-C5VToU5T.js +0 -61
  47. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +0 -1
  48. package/dist/chunk-2Q5K7J3B-C3WfnuyI.js +0 -15
  49. package/dist/chunk-4I5QYGJK-Bs8S-Wfu.js +0 -275
  50. package/dist/chunk-4I5QYGJK-CBqJO_mi.cjs +0 -1
  51. package/dist/chunk-5RXB4S5H-BnJ1P9K2.js +0 -2042
  52. package/dist/chunk-5RXB4S5H-BtEDiC1U.cjs +0 -231
  53. package/dist/chunk-5VM5RSS4-BsUXY5k9.js +0 -5
  54. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +0 -15
  55. package/dist/chunk-6Q2QTUOP-C0P-wtth.js +0 -490
  56. package/dist/chunk-6Q2QTUOP-UC-G8b3B.cjs +0 -88
  57. package/dist/chunk-7BUUIJ7U-CZdUK2qY.js +0 -82
  58. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  59. package/dist/chunk-7Z6QIM7H-CJdupq9f.js +0 -593
  60. package/dist/chunk-7Z6QIM7H-CUGcycR0.cjs +0 -10
  61. package/dist/chunk-GF5L2VYU-CDGpCl8Z.js +0 -3357
  62. package/dist/chunk-GF5L2VYU-DWhSvqYP.cjs +0 -206
  63. package/dist/chunk-I66GZJ75-D8wVRUgw.cjs +0 -127
  64. package/dist/chunk-I66GZJ75-xmbkwRyp.js +0 -3754
  65. package/dist/chunk-JQJVKLGR-B-jNEb9r.js +0 -4135
  66. package/dist/chunk-JQJVKLGR-CbhQdRxu.cjs +0 -156
  67. package/dist/chunk-JWPE2WC7-B8JIODrM.js +0 -8
  68. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +0 -1
  69. package/dist/chunk-KBJHAD2P-BMuT9eJO.cjs +0 -1
  70. package/dist/chunk-KBJHAD2P-CCpB6hWQ.js +0 -26
  71. package/dist/chunk-KEIR6QF5-RwFi50en.js +0 -21456
  72. package/dist/chunk-KEIR6QF5-rUKzMPy0.cjs +0 -161
  73. package/dist/chunk-NSK5VX7P-BO1SrWAL.js +0 -1335
  74. package/dist/chunk-NSK5VX7P-BiC_63US.cjs +0 -2
  75. package/dist/chunk-QR6OTTB3-BSxbyKp_.cjs +0 -62
  76. package/dist/chunk-QR6OTTB3-CGxJcV-X.js +0 -3738
  77. package/dist/chunk-RYQCIY6F-Lf2oVMMh.cjs +0 -1
  78. package/dist/chunk-RYQCIY6F-UBebC0ib.js +0 -241
  79. package/dist/chunk-UBXNYLIW-BURVNZm2.cjs +0 -1
  80. package/dist/chunk-UBXNYLIW-fOGkdEwd.js +0 -32
  81. package/dist/chunk-W5SLKNZC-BLFqePZ1.cjs +0 -1
  82. package/dist/chunk-W5SLKNZC-C2SYjJjL.js +0 -67
  83. package/dist/chunk-WRU74C26-Cr4HTCc1.cjs +0 -70
  84. package/dist/chunk-WRU74C26-UGtU6H2a.js +0 -1636
  85. package/dist/chunk-XXDRQBXY-GENMsCHk.js +0 -9
  86. package/dist/chunk-XXDRQBXY-yMT3rT5Y.cjs +0 -1
  87. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +0 -1
  88. package/dist/chunk-Y2CYZVJY-DO9UHHon.js +0 -12
  89. package/dist/classDiagram-JCYQIIEL-DUjWUDYG.cjs +0 -1
  90. package/dist/classDiagram-JCYQIIEL-Dm9anlJw.js +0 -30
  91. package/dist/classDiagram-v2-OCEON4UE-Bl-vyFyz.js +0 -30
  92. package/dist/classDiagram-v2-OCEON4UE-DUjWUDYG.cjs +0 -1
  93. package/dist/composables/useHighlighter.test.d.ts +0 -2
  94. package/dist/composables/useHighlighter.test.d.ts.map +0 -1
  95. package/dist/composables/useMarkdownIt.test.d.ts +0 -2
  96. package/dist/composables/useMarkdownIt.test.d.ts.map +0 -1
  97. package/dist/composables/useShikiTokenizer.test.d.ts +0 -2
  98. package/dist/composables/useShikiTokenizer.test.d.ts.map +0 -1
  99. package/dist/composables/useStreamingMarkdown.test.d.ts +0 -2
  100. package/dist/composables/useStreamingMarkdown.test.d.ts.map +0 -1
  101. package/dist/cose-bilkent-JH36ORCC-C1RCVzVZ.cjs +0 -1
  102. package/dist/cose-bilkent-JH36ORCC-C5FbROLY.js +0 -2254
  103. package/dist/cynefin-VYW2F7L2-CMgnLl46.js +0 -3
  104. package/dist/cynefin-VYW2F7L2-DVi1CF5b.cjs +0 -1
  105. package/dist/cynefinDiagram-MW4NZA55-CkZY080C.cjs +0 -62
  106. package/dist/cynefinDiagram-MW4NZA55-DbAAx9CC.js +0 -355
  107. package/dist/cytoscape.esm-BKhIYxsH.cjs +0 -321
  108. package/dist/cytoscape.esm-DMXbtFI-.js +0 -18145
  109. package/dist/dagre-DarAkhy1.cjs +0 -1
  110. package/dist/dagre-VZM6K2ZE-CpL0s3GG.js +0 -328
  111. package/dist/dagre-VZM6K2ZE-D1_S1oSj.cjs +0 -4
  112. package/dist/dagre-x4cMb6gU.js +0 -1699
  113. package/dist/defaultLocale-ybN1Vtvg.cjs +0 -1
  114. package/dist/defaultLocale-yzzuPw6P.js +0 -198
  115. package/dist/diagram-7IWD3JNH-BXvOBw2z.js +0 -300
  116. package/dist/diagram-7IWD3JNH-W-Kjft6l.cjs +0 -30
  117. package/dist/diagram-B4RE2ZJO-C4lLgW4X.cjs +0 -3
  118. package/dist/diagram-B4RE2ZJO-DyAAD_bR.js +0 -432
  119. package/dist/diagram-LBJQPF4R-BTgCWP5o.cjs +0 -24
  120. package/dist/diagram-LBJQPF4R-BbMQOpt2.js +0 -134
  121. package/dist/diagram-Q27KOJAE-ink_R6qE.js +0 -527
  122. package/dist/diagram-Q27KOJAE-v-ZMzCxs.cjs +0 -24
  123. package/dist/diagram-UB23O5K3-BXTm2BG0.cjs +0 -41
  124. package/dist/diagram-UB23O5K3-C6rqCJBb.js +0 -214
  125. package/dist/dist-BP2me-br.js +0 -59
  126. package/dist/dist-Dwv2VYAL.cjs +0 -1
  127. package/dist/ebnfDiagram-BXEA7PRR-C80cjdjP.js +0 -100
  128. package/dist/ebnfDiagram-BXEA7PRR-lKO9XwUp.cjs +0 -1
  129. package/dist/erDiagram-JOGREHBK-Blwfr6w3.js +0 -1727
  130. package/dist/erDiagram-JOGREHBK-ChgcmULa.cjs +0 -85
  131. package/dist/eventmodeling-45OFAUF4-BDhzj03B.js +0 -3
  132. package/dist/eventmodeling-45OFAUF4-BtU19idK.cjs +0 -1
  133. package/dist/flowDiagram-UKHOOZJN-Co0JpKUU.js +0 -16
  134. package/dist/flowDiagram-UKHOOZJN-db1Ur2LI.cjs +0 -1
  135. package/dist/ganttDiagram-PKOTCBZU-Byi4E8Ye.js +0 -3073
  136. package/dist/ganttDiagram-PKOTCBZU-C_Vwv1o8.cjs +0 -292
  137. package/dist/gitGraph-TEB2WS4Q-CAeGPNFR.cjs +0 -1
  138. package/dist/gitGraph-TEB2WS4Q-DJA_hE4G.js +0 -3
  139. package/dist/gitGraphDiagram-DS77QQ5N-BG8AQVtP.js +0 -733
  140. package/dist/gitGraphDiagram-DS77QQ5N-DK9VJTjf.cjs +0 -106
  141. package/dist/graphlib-BaETKKSa.cjs +0 -1
  142. package/dist/graphlib-DoD0LnUK.js +0 -1267
  143. package/dist/info-DKCQHKI2-BD_vOCz6.js +0 -3
  144. package/dist/info-DKCQHKI2-p0Lazone.cjs +0 -1
  145. package/dist/infoDiagram-6WML65LV-B6PBOy7T.js +0 -20
  146. package/dist/infoDiagram-6WML65LV-nBSrP53Z.cjs +0 -2
  147. package/dist/init-BJdqMO10.cjs +0 -1
  148. package/dist/init-sjaVZO3f.js +0 -13
  149. package/dist/ishikawaDiagram-WSZJBQD7-BxEkaF2A.js +0 -719
  150. package/dist/ishikawaDiagram-WSZJBQD7-CjyKQ_N6.cjs +0 -70
  151. package/dist/journeyDiagram-NVQOT4AX-BPCuqjbW.js +0 -884
  152. package/dist/journeyDiagram-NVQOT4AX-DKgEeNcy.cjs +0 -139
  153. package/dist/kanban-definition-27J2QSJJ-BeKnR9zB.cjs +0 -89
  154. package/dist/kanban-definition-27J2QSJJ-D1pVuCv2.js +0 -974
  155. package/dist/katex-BfeHGk4M.js +0 -21977
  156. package/dist/katex-CEF6MvLx.cjs +0 -257
  157. package/dist/line-8EHPtDZA.cjs +0 -1
  158. package/dist/line-BifI9Y7j.js +0 -34
  159. package/dist/linear-Nt9BuHfn.cjs +0 -1
  160. package/dist/linear-l8AD1ib_.js +0 -288
  161. package/dist/map-CCpPjiU9.cjs +0 -1
  162. package/dist/map-DUk1uXZC.js +0 -241
  163. package/dist/mermaid-parser.core-BupC9XGF.js +0 -638
  164. package/dist/mermaid-parser.core-aXxW1VLR.cjs +0 -6
  165. package/dist/mermaid.core-C05C5gh_.cjs +0 -41
  166. package/dist/mermaid.core-CxM-VhZd.js +0 -2297
  167. package/dist/mindmap-definition-FAOFIHXS-B_k8KOvw.js +0 -1006
  168. package/dist/mindmap-definition-FAOFIHXS-CKPAiVKf.cjs +0 -96
  169. package/dist/ordinal-Bm_chml2.cjs +0 -1
  170. package/dist/ordinal-CNQzPcrr.js +0 -65
  171. package/dist/packet-7NZHBO7P-CVdRavgo.cjs +0 -1
  172. package/dist/packet-7NZHBO7P-CgBlALV1.js +0 -3
  173. package/dist/path-DIS6ck99.cjs +0 -1
  174. package/dist/path-DVvH25eQ.js +0 -84
  175. package/dist/pegDiagram-VL7TDLO6-B5Jhedbv.cjs +0 -1
  176. package/dist/pegDiagram-VL7TDLO6-PP-A-3Lv.js +0 -94
  177. package/dist/pie-RZYD4A2V-CryPC-P_.js +0 -3
  178. package/dist/pie-RZYD4A2V-CwDJ0bEW.cjs +0 -1
  179. package/dist/pieDiagram-7S7Q4E2Y-CgDU9E10.cjs +0 -39
  180. package/dist/pieDiagram-7S7Q4E2Y-CxNt1xaN.js +0 -203
  181. package/dist/quadrantDiagram-CIZ2JOQS-CMUanfcR.js +0 -2001
  182. package/dist/quadrantDiagram-CIZ2JOQS-vybEBK1o.cjs +0 -7
  183. package/dist/radar-I7S5WNFK-DaVgEjvC.cjs +0 -1
  184. package/dist/radar-I7S5WNFK-DgzJDRy3.js +0 -3
  185. package/dist/railroad-3IZDKUUU-BPsrMjqz.cjs +0 -1
  186. package/dist/railroad-3IZDKUUU-DFp3mbpB.js +0 -3
  187. package/dist/railroad-abnf-AHOZXSZD-BRjidKH0.js +0 -3
  188. package/dist/railroad-abnf-AHOZXSZD-ZpHq_KEy.cjs +0 -1
  189. package/dist/railroad-ebnf-EBAXGLYW-B45niwuq.cjs +0 -1
  190. package/dist/railroad-ebnf-EBAXGLYW-PgrDWact.js +0 -3
  191. package/dist/railroad-peg-LSFZ7HO6-CMKir81Y.js +0 -3
  192. package/dist/railroad-peg-LSFZ7HO6-DUsuEX2Z.cjs +0 -1
  193. package/dist/railroadDiagram-AXF67PYL-D7y_2yAa.cjs +0 -1
  194. package/dist/railroadDiagram-AXF67PYL-iLkvx2oU.js +0 -76
  195. package/dist/renderers/tokensToHtml.test.d.ts +0 -2
  196. package/dist/renderers/tokensToHtml.test.d.ts.map +0 -1
  197. package/dist/requirementDiagram-LRYGKXZP-Bs2mCDzB.js +0 -2223
  198. package/dist/requirementDiagram-LRYGKXZP-lA2nVr6h.cjs +0 -84
  199. package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
  200. package/dist/rolldown-runtime-DF3sbh8G.cjs +0 -1
  201. package/dist/rough.esm-B2w_aYoc.js +0 -1361
  202. package/dist/rough.esm-ChRLLRha.cjs +0 -1
  203. package/dist/sankeyDiagram-W5VNT64P-BxYQllhE.js +0 -972
  204. package/dist/sankeyDiagram-W5VNT64P-vPci5pOT.cjs +0 -40
  205. package/dist/sequenceDiagram-SI44F4Z6-BNu1-3EN.cjs +0 -162
  206. package/dist/sequenceDiagram-SI44F4Z6-E6AoYU_R.js +0 -4156
  207. package/dist/sizeCapture-X5ZJPWSS-8gbZlYqg.js +0 -46
  208. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +0 -1
  209. package/dist/src-C7bjHtAI.js +0 -2139
  210. package/dist/src-D9o9TOtH.cjs +0 -1
  211. package/dist/stateDiagram-OKZ733FA-B7ITlY91.cjs +0 -1
  212. package/dist/stateDiagram-OKZ733FA-BfcOAK65.js +0 -220
  213. package/dist/stateDiagram-v2-UEYNNEHI-BHO-uUPG.js +0 -30
  214. package/dist/stateDiagram-v2-UEYNNEHI-lgGjJyRM.cjs +0 -1
  215. package/dist/swimlanes-SLNWSIFB-BHIPInzG.js +0 -5069
  216. package/dist/swimlanes-SLNWSIFB-C-Z31wMl.cjs +0 -1
  217. package/dist/swimlanesDiagram-ULZ7WXOC-C8pvRoyc.cjs +0 -8
  218. package/dist/swimlanesDiagram-ULZ7WXOC-CK6AVyRM.js +0 -30
  219. package/dist/timeline-definition-Z64GVDOM-C31otJwb.cjs +0 -120
  220. package/dist/timeline-definition-Z64GVDOM-rUKJY7cp.js +0 -1069
  221. package/dist/treeView-QDETBFTQ-BkNUN560.cjs +0 -1
  222. package/dist/treeView-QDETBFTQ-DVp4aTZQ.js +0 -3
  223. package/dist/treemap-6X3UGDF4-BbBnHMHJ.js +0 -3
  224. package/dist/treemap-6X3UGDF4-BcO657a2.cjs +0 -1
  225. package/dist/utils/extractCompleteMarkdown.test.d.ts +0 -2
  226. package/dist/utils/extractCompleteMarkdown.test.d.ts.map +0 -1
  227. package/dist/vennDiagram-T6HMQDX7-DjlTuTEH.cjs +0 -34
  228. package/dist/vennDiagram-T6HMQDX7-vxMe-3nF.js +0 -1880
  229. package/dist/wardley-OPB4EBWU-B-RXhnoN.js +0 -3
  230. package/dist/wardley-OPB4EBWU-CiILNYeL.cjs +0 -1
  231. package/dist/wardleyDiagram-T6FBY63Y-BMQLZV1W.cjs +0 -78
  232. package/dist/wardleyDiagram-T6FBY63Y-C_Q2NmJu.js +0 -645
  233. package/dist/xychartDiagram-ELKLHX3M-Bsa_zeyd.cjs +0 -7
  234. package/dist/xychartDiagram-ELKLHX3M-OcVmrPL6.js +0 -2101
  235. /package/dist/{LatexBlock.vue.d.ts → components/LatexBlock.vue.d.ts} +0 -0
  236. /package/dist/{MarkdownRenderer.vue.d.ts → components/MarkdownRenderer.vue.d.ts} +0 -0
  237. /package/dist/{MermaidBlock.vue.d.ts → components/MermaidBlock.vue.d.ts} +0 -0
@@ -1,1335 +0,0 @@
1
- import { n as e } from "./chunk-Y2CYZVJY-DO9UHHon.js";
2
- import { m as t, p as n } from "./src-C7bjHtAI.js";
3
- import { R as r, h as i, p as a, r as o, s } from "./chunk-I66GZJ75-xmbkwRyp.js";
4
- import { t as c } from "./dist-BP2me-br.js";
5
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js
6
- function l(e) {
7
- this._context = e;
8
- }
9
- l.prototype = {
10
- areaStart: function() {
11
- this._line = 0;
12
- },
13
- areaEnd: function() {
14
- this._line = NaN;
15
- },
16
- lineStart: function() {
17
- this._point = 0;
18
- },
19
- lineEnd: function() {
20
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
21
- },
22
- point: function(e, t) {
23
- switch (e = +e, t = +t, this._point) {
24
- case 0:
25
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
26
- break;
27
- case 1: this._point = 2;
28
- default: this._context.lineTo(e, t);
29
- }
30
- }
31
- };
32
- function u(e) {
33
- return new l(e);
34
- }
35
- //#endregion
36
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.js
37
- var d = class {
38
- constructor(e, t) {
39
- this._context = e, this._x = t;
40
- }
41
- areaStart() {
42
- this._line = 0;
43
- }
44
- areaEnd() {
45
- this._line = NaN;
46
- }
47
- lineStart() {
48
- this._point = 0;
49
- }
50
- lineEnd() {
51
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
52
- }
53
- point(e, t) {
54
- switch (e = +e, t = +t, this._point) {
55
- case 0:
56
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
57
- break;
58
- case 1: this._point = 2;
59
- default: this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
60
- }
61
- this._x0 = e, this._y0 = t;
62
- }
63
- };
64
- function f(e) {
65
- return new d(e, !0);
66
- }
67
- function ee(e) {
68
- return new d(e, !1);
69
- }
70
- //#endregion
71
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.js
72
- function p() {}
73
- //#endregion
74
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.js
75
- function m(e, t, n) {
76
- e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
77
- }
78
- function h(e) {
79
- this._context = e;
80
- }
81
- h.prototype = {
82
- areaStart: function() {
83
- this._line = 0;
84
- },
85
- areaEnd: function() {
86
- this._line = NaN;
87
- },
88
- lineStart: function() {
89
- this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
90
- },
91
- lineEnd: function() {
92
- switch (this._point) {
93
- case 3: m(this, this._x1, this._y1);
94
- case 2: this._context.lineTo(this._x1, this._y1);
95
- }
96
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
97
- },
98
- point: function(e, t) {
99
- switch (e = +e, t = +t, this._point) {
100
- case 0:
101
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
102
- break;
103
- case 1:
104
- this._point = 2;
105
- break;
106
- case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
107
- default: m(this, e, t);
108
- }
109
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
110
- }
111
- };
112
- function te(e) {
113
- return new h(e);
114
- }
115
- //#endregion
116
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.js
117
- function ne(e) {
118
- this._context = e;
119
- }
120
- ne.prototype = {
121
- areaStart: p,
122
- areaEnd: p,
123
- lineStart: function() {
124
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
125
- },
126
- lineEnd: function() {
127
- switch (this._point) {
128
- case 1:
129
- this._context.moveTo(this._x2, this._y2), this._context.closePath();
130
- break;
131
- case 2:
132
- this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
133
- break;
134
- case 3: this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
135
- }
136
- },
137
- point: function(e, t) {
138
- switch (e = +e, t = +t, this._point) {
139
- case 0:
140
- this._point = 1, this._x2 = e, this._y2 = t;
141
- break;
142
- case 1:
143
- this._point = 2, this._x3 = e, this._y3 = t;
144
- break;
145
- case 2:
146
- this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
147
- break;
148
- default: m(this, e, t);
149
- }
150
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
151
- }
152
- };
153
- function re(e) {
154
- return new ne(e);
155
- }
156
- //#endregion
157
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.js
158
- function ie(e) {
159
- this._context = e;
160
- }
161
- ie.prototype = {
162
- areaStart: function() {
163
- this._line = 0;
164
- },
165
- areaEnd: function() {
166
- this._line = NaN;
167
- },
168
- lineStart: function() {
169
- this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
170
- },
171
- lineEnd: function() {
172
- (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
173
- },
174
- point: function(e, t) {
175
- switch (e = +e, t = +t, this._point) {
176
- case 0:
177
- this._point = 1;
178
- break;
179
- case 1:
180
- this._point = 2;
181
- break;
182
- case 2:
183
- this._point = 3;
184
- var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
185
- this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
186
- break;
187
- case 3: this._point = 4;
188
- default: m(this, e, t);
189
- }
190
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
191
- }
192
- };
193
- function ae(e) {
194
- return new ie(e);
195
- }
196
- //#endregion
197
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.js
198
- function oe(e, t) {
199
- this._basis = new h(e), this._beta = t;
200
- }
201
- oe.prototype = {
202
- lineStart: function() {
203
- this._x = [], this._y = [], this._basis.lineStart();
204
- },
205
- lineEnd: function() {
206
- var e = this._x, t = this._y, n = e.length - 1;
207
- if (n > 0) for (var r = e[0], i = t[0], a = e[n] - r, o = t[n] - i, s = -1, c; ++s <= n;) c = s / n, this._basis.point(this._beta * e[s] + (1 - this._beta) * (r + c * a), this._beta * t[s] + (1 - this._beta) * (i + c * o));
208
- this._x = this._y = null, this._basis.lineEnd();
209
- },
210
- point: function(e, t) {
211
- this._x.push(+e), this._y.push(+t);
212
- }
213
- };
214
- var se = (function e(t) {
215
- function n(e) {
216
- return t === 1 ? new h(e) : new oe(e, t);
217
- }
218
- return n.beta = function(t) {
219
- return e(+t);
220
- }, n;
221
- })(.85);
222
- //#endregion
223
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.js
224
- function g(e, t, n) {
225
- e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
226
- }
227
- function _(e, t) {
228
- this._context = e, this._k = (1 - t) / 6;
229
- }
230
- _.prototype = {
231
- areaStart: function() {
232
- this._line = 0;
233
- },
234
- areaEnd: function() {
235
- this._line = NaN;
236
- },
237
- lineStart: function() {
238
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
239
- },
240
- lineEnd: function() {
241
- switch (this._point) {
242
- case 2:
243
- this._context.lineTo(this._x2, this._y2);
244
- break;
245
- case 3: g(this, this._x1, this._y1);
246
- }
247
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
248
- },
249
- point: function(e, t) {
250
- switch (e = +e, t = +t, this._point) {
251
- case 0:
252
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
253
- break;
254
- case 1:
255
- this._point = 2, this._x1 = e, this._y1 = t;
256
- break;
257
- case 2: this._point = 3;
258
- default: g(this, e, t);
259
- }
260
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
261
- }
262
- };
263
- var ce = (function e(t) {
264
- function n(e) {
265
- return new _(e, t);
266
- }
267
- return n.tension = function(t) {
268
- return e(+t);
269
- }, n;
270
- })(0);
271
- //#endregion
272
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.js
273
- function v(e, t) {
274
- this._context = e, this._k = (1 - t) / 6;
275
- }
276
- v.prototype = {
277
- areaStart: p,
278
- areaEnd: p,
279
- lineStart: function() {
280
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
281
- },
282
- lineEnd: function() {
283
- switch (this._point) {
284
- case 1:
285
- this._context.moveTo(this._x3, this._y3), this._context.closePath();
286
- break;
287
- case 2:
288
- this._context.lineTo(this._x3, this._y3), this._context.closePath();
289
- break;
290
- case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
291
- }
292
- },
293
- point: function(e, t) {
294
- switch (e = +e, t = +t, this._point) {
295
- case 0:
296
- this._point = 1, this._x3 = e, this._y3 = t;
297
- break;
298
- case 1:
299
- this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
300
- break;
301
- case 2:
302
- this._point = 3, this._x5 = e, this._y5 = t;
303
- break;
304
- default: g(this, e, t);
305
- }
306
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
307
- }
308
- };
309
- var le = (function e(t) {
310
- function n(e) {
311
- return new v(e, t);
312
- }
313
- return n.tension = function(t) {
314
- return e(+t);
315
- }, n;
316
- })(0);
317
- //#endregion
318
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.js
319
- function y(e, t) {
320
- this._context = e, this._k = (1 - t) / 6;
321
- }
322
- y.prototype = {
323
- areaStart: function() {
324
- this._line = 0;
325
- },
326
- areaEnd: function() {
327
- this._line = NaN;
328
- },
329
- lineStart: function() {
330
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
331
- },
332
- lineEnd: function() {
333
- (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
334
- },
335
- point: function(e, t) {
336
- switch (e = +e, t = +t, this._point) {
337
- case 0:
338
- this._point = 1;
339
- break;
340
- case 1:
341
- this._point = 2;
342
- break;
343
- case 2:
344
- this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
345
- break;
346
- case 3: this._point = 4;
347
- default: g(this, e, t);
348
- }
349
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
350
- }
351
- };
352
- var ue = (function e(t) {
353
- function n(e) {
354
- return new y(e, t);
355
- }
356
- return n.tension = function(t) {
357
- return e(+t);
358
- }, n;
359
- })(0);
360
- //#endregion
361
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.js
362
- function b(e, t, n) {
363
- var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
364
- if (e._l01_a > 1e-12) {
365
- var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
366
- r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c, i = (i * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c;
367
- }
368
- if (e._l23_a > 1e-12) {
369
- var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, u = 3 * e._l23_a * (e._l23_a + e._l12_a);
370
- a = (a * l + e._x1 * e._l23_2a - t * e._l12_2a) / u, o = (o * l + e._y1 * e._l23_2a - n * e._l12_2a) / u;
371
- }
372
- e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
373
- }
374
- function de(e, t) {
375
- this._context = e, this._alpha = t;
376
- }
377
- de.prototype = {
378
- areaStart: function() {
379
- this._line = 0;
380
- },
381
- areaEnd: function() {
382
- this._line = NaN;
383
- },
384
- lineStart: function() {
385
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
386
- },
387
- lineEnd: function() {
388
- switch (this._point) {
389
- case 2:
390
- this._context.lineTo(this._x2, this._y2);
391
- break;
392
- case 3: this.point(this._x2, this._y2);
393
- }
394
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
395
- },
396
- point: function(e, t) {
397
- if (e = +e, t = +t, this._point) {
398
- var n = this._x2 - e, r = this._y2 - t;
399
- this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
400
- }
401
- switch (this._point) {
402
- case 0:
403
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
404
- break;
405
- case 1:
406
- this._point = 2;
407
- break;
408
- case 2: this._point = 3;
409
- default: b(this, e, t);
410
- }
411
- this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
412
- }
413
- };
414
- var fe = (function e(t) {
415
- function n(e) {
416
- return t ? new de(e, t) : new _(e, 0);
417
- }
418
- return n.alpha = function(t) {
419
- return e(+t);
420
- }, n;
421
- })(.5);
422
- //#endregion
423
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.js
424
- function pe(e, t) {
425
- this._context = e, this._alpha = t;
426
- }
427
- pe.prototype = {
428
- areaStart: p,
429
- areaEnd: p,
430
- lineStart: function() {
431
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
432
- },
433
- lineEnd: function() {
434
- switch (this._point) {
435
- case 1:
436
- this._context.moveTo(this._x3, this._y3), this._context.closePath();
437
- break;
438
- case 2:
439
- this._context.lineTo(this._x3, this._y3), this._context.closePath();
440
- break;
441
- case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
442
- }
443
- },
444
- point: function(e, t) {
445
- if (e = +e, t = +t, this._point) {
446
- var n = this._x2 - e, r = this._y2 - t;
447
- this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
448
- }
449
- switch (this._point) {
450
- case 0:
451
- this._point = 1, this._x3 = e, this._y3 = t;
452
- break;
453
- case 1:
454
- this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
455
- break;
456
- case 2:
457
- this._point = 3, this._x5 = e, this._y5 = t;
458
- break;
459
- default: b(this, e, t);
460
- }
461
- this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
462
- }
463
- };
464
- var me = (function e(t) {
465
- function n(e) {
466
- return t ? new pe(e, t) : new v(e, 0);
467
- }
468
- return n.alpha = function(t) {
469
- return e(+t);
470
- }, n;
471
- })(.5);
472
- //#endregion
473
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.js
474
- function he(e, t) {
475
- this._context = e, this._alpha = t;
476
- }
477
- he.prototype = {
478
- areaStart: function() {
479
- this._line = 0;
480
- },
481
- areaEnd: function() {
482
- this._line = NaN;
483
- },
484
- lineStart: function() {
485
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
486
- },
487
- lineEnd: function() {
488
- (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
489
- },
490
- point: function(e, t) {
491
- if (e = +e, t = +t, this._point) {
492
- var n = this._x2 - e, r = this._y2 - t;
493
- this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
494
- }
495
- switch (this._point) {
496
- case 0:
497
- this._point = 1;
498
- break;
499
- case 1:
500
- this._point = 2;
501
- break;
502
- case 2:
503
- this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
504
- break;
505
- case 3: this._point = 4;
506
- default: b(this, e, t);
507
- }
508
- this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
509
- }
510
- };
511
- var ge = (function e(t) {
512
- function n(e) {
513
- return t ? new he(e, t) : new y(e, 0);
514
- }
515
- return n.alpha = function(t) {
516
- return e(+t);
517
- }, n;
518
- })(.5);
519
- //#endregion
520
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.js
521
- function _e(e) {
522
- this._context = e;
523
- }
524
- _e.prototype = {
525
- areaStart: p,
526
- areaEnd: p,
527
- lineStart: function() {
528
- this._point = 0;
529
- },
530
- lineEnd: function() {
531
- this._point && this._context.closePath();
532
- },
533
- point: function(e, t) {
534
- e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
535
- }
536
- };
537
- function ve(e) {
538
- return new _e(e);
539
- }
540
- //#endregion
541
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.js
542
- function ye(e) {
543
- return e < 0 ? -1 : 1;
544
- }
545
- function be(e, t, n) {
546
- var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
547
- return (ye(a) + ye(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
548
- }
549
- function xe(e, t) {
550
- var n = e._x1 - e._x0;
551
- return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
552
- }
553
- function x(e, t, n) {
554
- var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
555
- e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
556
- }
557
- function S(e) {
558
- this._context = e;
559
- }
560
- S.prototype = {
561
- areaStart: function() {
562
- this._line = 0;
563
- },
564
- areaEnd: function() {
565
- this._line = NaN;
566
- },
567
- lineStart: function() {
568
- this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
569
- },
570
- lineEnd: function() {
571
- switch (this._point) {
572
- case 2:
573
- this._context.lineTo(this._x1, this._y1);
574
- break;
575
- case 3: x(this, this._t0, xe(this, this._t0));
576
- }
577
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
578
- },
579
- point: function(e, t) {
580
- var n = NaN;
581
- if (e = +e, t = +t, e !== this._x1 || t !== this._y1) {
582
- switch (this._point) {
583
- case 0:
584
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
585
- break;
586
- case 1:
587
- this._point = 2;
588
- break;
589
- case 2:
590
- this._point = 3, x(this, xe(this, n = be(this, e, t)), n);
591
- break;
592
- default: x(this, this._t0, n = be(this, e, t));
593
- }
594
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
595
- }
596
- }
597
- };
598
- function Se(e) {
599
- this._context = new Ce(e);
600
- }
601
- (Se.prototype = Object.create(S.prototype)).point = function(e, t) {
602
- S.prototype.point.call(this, t, e);
603
- };
604
- function Ce(e) {
605
- this._context = e;
606
- }
607
- Ce.prototype = {
608
- moveTo: function(e, t) {
609
- this._context.moveTo(t, e);
610
- },
611
- closePath: function() {
612
- this._context.closePath();
613
- },
614
- lineTo: function(e, t) {
615
- this._context.lineTo(t, e);
616
- },
617
- bezierCurveTo: function(e, t, n, r, i, a) {
618
- this._context.bezierCurveTo(t, e, r, n, a, i);
619
- }
620
- };
621
- function we(e) {
622
- return new S(e);
623
- }
624
- function Te(e) {
625
- return new Se(e);
626
- }
627
- //#endregion
628
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.js
629
- function Ee(e) {
630
- this._context = e;
631
- }
632
- Ee.prototype = {
633
- areaStart: function() {
634
- this._line = 0;
635
- },
636
- areaEnd: function() {
637
- this._line = NaN;
638
- },
639
- lineStart: function() {
640
- this._x = [], this._y = [];
641
- },
642
- lineEnd: function() {
643
- var e = this._x, t = this._y, n = e.length;
644
- if (n) {
645
- if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
646
- else for (var r = De(e), i = De(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
647
- }
648
- (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
649
- },
650
- point: function(e, t) {
651
- this._x.push(+e), this._y.push(+t);
652
- }
653
- };
654
- function De(e) {
655
- var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
656
- for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
657
- for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
658
- for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];
659
- for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
660
- return [i, a];
661
- }
662
- function Oe(e) {
663
- return new Ee(e);
664
- }
665
- //#endregion
666
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.js
667
- function C(e, t) {
668
- this._context = e, this._t = t;
669
- }
670
- C.prototype = {
671
- areaStart: function() {
672
- this._line = 0;
673
- },
674
- areaEnd: function() {
675
- this._line = NaN;
676
- },
677
- lineStart: function() {
678
- this._x = this._y = NaN, this._point = 0;
679
- },
680
- lineEnd: function() {
681
- 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
682
- },
683
- point: function(e, t) {
684
- switch (e = +e, t = +t, this._point) {
685
- case 0:
686
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
687
- break;
688
- case 1: this._point = 2;
689
- default: if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
690
- else {
691
- var n = this._x * (1 - this._t) + e * this._t;
692
- this._context.lineTo(n, this._y), this._context.lineTo(n, t);
693
- }
694
- }
695
- this._x = e, this._y = t;
696
- }
697
- };
698
- function w(e) {
699
- return new C(e, .5);
700
- }
701
- function T(e) {
702
- return new C(e, 0);
703
- }
704
- function ke(e) {
705
- return new C(e, 1);
706
- }
707
- //#endregion
708
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isLength.mjs
709
- function Ae(e) {
710
- return Number.isSafeInteger(e) && e >= 0;
711
- }
712
- //#endregion
713
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
714
- function je(e) {
715
- return e != null && typeof e != "function" && Ae(e.length);
716
- }
717
- //#endregion
718
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
719
- function Me(e) {
720
- return e === "__proto__";
721
- }
722
- //#endregion
723
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
724
- function E(e) {
725
- return e == null || typeof e != "object" && typeof e != "function";
726
- }
727
- //#endregion
728
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
729
- function Ne(e) {
730
- return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
731
- }
732
- //#endregion
733
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
734
- function D(e) {
735
- return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
736
- }
737
- //#endregion
738
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/tags.mjs
739
- var Pe = "[object RegExp]", O = "[object String]", k = "[object Number]", A = "[object Boolean]", j = "[object Arguments]", Fe = "[object Symbol]", Ie = "[object Date]", Le = "[object Map]", Re = "[object Set]", ze = "[object Array]", Be = "[object ArrayBuffer]", Ve = "[object Object]", He = "[object DataView]", Ue = "[object Uint8Array]", We = "[object Uint8ClampedArray]", Ge = "[object Uint16Array]", Ke = "[object Uint32Array]", qe = "[object Int8Array]", M = "[object Int16Array]", Je = "[object Int32Array]", Ye = "[object Float32Array]", Xe = "[object Float64Array]", Ze = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
740
- return this;
741
- })() || Function("return this")();
742
- //#endregion
743
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isBuffer.mjs
744
- function N(e) {
745
- return Ze.Buffer !== void 0 && Ze.Buffer.isBuffer(e);
746
- }
747
- //#endregion
748
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
749
- function P(e) {
750
- return ArrayBuffer.isView(e) && !(e instanceof DataView);
751
- }
752
- //#endregion
753
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
754
- function Qe(e, t) {
755
- return F(e, void 0, e, /* @__PURE__ */ new Map(), t);
756
- }
757
- function F(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
758
- let a = i?.(e, t, n, r);
759
- if (a !== void 0) return a;
760
- if (E(e)) return e;
761
- if (r.has(e)) return r.get(e);
762
- if (Array.isArray(e)) {
763
- let t = Array(e.length);
764
- r.set(e, t);
765
- for (let a = 0; a < e.length; a++) t[a] = F(e[a], a, n, r, i);
766
- return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
767
- }
768
- if (e instanceof Date) return new Date(e.getTime());
769
- if (e instanceof RegExp) {
770
- let t = new RegExp(e.source, e.flags);
771
- return t.lastIndex = e.lastIndex, t;
772
- }
773
- if (e instanceof Map) {
774
- let t = /* @__PURE__ */ new Map();
775
- r.set(e, t);
776
- for (let [a, o] of e) t.set(a, F(o, a, n, r, i));
777
- return t;
778
- }
779
- if (e instanceof Set) {
780
- let t = /* @__PURE__ */ new Set();
781
- r.set(e, t);
782
- for (let a of e) t.add(F(a, void 0, n, r, i));
783
- return t;
784
- }
785
- if (N(e)) return e.subarray();
786
- if (P(e)) {
787
- let t = new (Object.getPrototypeOf(e)).constructor(e.length);
788
- r.set(e, t);
789
- for (let a = 0; a < e.length; a++) t[a] = F(e[a], a, n, r, i);
790
- return t;
791
- }
792
- if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
793
- if (e instanceof DataView) {
794
- let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
795
- return r.set(e, t), I(t, e, n, r, i), t;
796
- }
797
- if (typeof File < "u" && e instanceof File) {
798
- let t = new File([e], e.name, { type: e.type });
799
- return r.set(e, t), I(t, e, n, r, i), t;
800
- }
801
- if (typeof Blob < "u" && e instanceof Blob) {
802
- let t = new Blob([e], { type: e.type });
803
- return r.set(e, t), I(t, e, n, r, i), t;
804
- }
805
- if (e instanceof Error) {
806
- let t = structuredClone(e);
807
- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, I(t, e, n, r, i), t;
808
- }
809
- if (e instanceof Boolean) {
810
- let t = new Boolean(e.valueOf());
811
- return r.set(e, t), I(t, e, n, r, i), t;
812
- }
813
- if (e instanceof Number) {
814
- let t = new Number(e.valueOf());
815
- return r.set(e, t), I(t, e, n, r, i), t;
816
- }
817
- if (e instanceof String) {
818
- let t = new String(e.valueOf());
819
- return r.set(e, t), I(t, e, n, r, i), t;
820
- }
821
- if (typeof e == "object" && $e(e)) {
822
- let t = Object.create(Object.getPrototypeOf(e));
823
- return r.set(e, t), I(t, e, n, r, i), t;
824
- }
825
- return e;
826
- }
827
- function I(e, t, n = e, r, i) {
828
- let a = [...Object.keys(t), ...Ne(t)];
829
- for (let o = 0; o < a.length; o++) {
830
- let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
831
- (c == null || c.writable) && (e[s] = F(t[s], s, n, r, i));
832
- }
833
- }
834
- function $e(e) {
835
- switch (D(e)) {
836
- case j:
837
- case ze:
838
- case Be:
839
- case He:
840
- case A:
841
- case Ie:
842
- case Ye:
843
- case Xe:
844
- case qe:
845
- case M:
846
- case Je:
847
- case Le:
848
- case k:
849
- case Ve:
850
- case Pe:
851
- case Re:
852
- case O:
853
- case Fe:
854
- case Ue:
855
- case We:
856
- case Ge:
857
- case Ke: return !0;
858
- default: return !1;
859
- }
860
- }
861
- //#endregion
862
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
863
- function et(e, t) {
864
- return Qe(e, (n, r, i, a) => {
865
- let o = t?.(n, r, i, a);
866
- if (o !== void 0) return o;
867
- if (typeof e == "object") {
868
- if (D(e) === "[object Object]" && typeof e.constructor != "function") {
869
- let t = {};
870
- return a.set(e, t), I(t, e, i, a), t;
871
- }
872
- switch (Object.prototype.toString.call(e)) {
873
- case k:
874
- case O:
875
- case A: {
876
- let t = new e.constructor(e?.valueOf());
877
- return I(t, e), t;
878
- }
879
- case j: {
880
- let t = {};
881
- return I(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
882
- }
883
- default: return;
884
- }
885
- }
886
- });
887
- }
888
- //#endregion
889
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
890
- function tt(e) {
891
- return et(e);
892
- }
893
- //#endregion
894
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
895
- function L(e) {
896
- return typeof e == "object" && !!e && D(e) === "[object Arguments]";
897
- }
898
- //#endregion
899
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
900
- function R(e) {
901
- return typeof e == "object" && !!e;
902
- }
903
- //#endregion
904
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs
905
- function nt(e) {
906
- return R(e) && je(e);
907
- }
908
- //#endregion
909
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/function/memoize.mjs
910
- function z(e, t) {
911
- if (typeof e != "function" || t != null && typeof t != "function") throw TypeError("Expected a function");
912
- let n = function(...r) {
913
- let i = t ? t.apply(this, r) : r[0], a = n.cache;
914
- if (a.has(i)) return a.get(i);
915
- let o = e.apply(this, r);
916
- return n.cache = a.set(i, o) || a, o;
917
- };
918
- return n.cache = new (z.Cache || Map)(), n;
919
- }
920
- z.Cache = Map;
921
- //#endregion
922
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/function/noop.mjs
923
- function rt() {}
924
- //#endregion
925
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
926
- function B(e) {
927
- return P(e);
928
- }
929
- //#endregion
930
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
931
- function V(e) {
932
- if (typeof e != "object" || !e) return !1;
933
- if (Object.getPrototypeOf(e) === null) return !0;
934
- if (Object.prototype.toString.call(e) !== "[object Object]") {
935
- let t = e[Symbol.toStringTag];
936
- return t == null || !Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)?.writable ? !1 : e.toString() === `[object ${t}]`;
937
- }
938
- let t = e;
939
- for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
940
- return Object.getPrototypeOf(e) === t;
941
- }
942
- //#endregion
943
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/object/clone.mjs
944
- function it(e) {
945
- if (E(e)) return e;
946
- if (Array.isArray(e) || P(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
947
- let t = Object.getPrototypeOf(e);
948
- if (t == null) return Object.assign(Object.create(t), e);
949
- let n = t.constructor;
950
- if (e instanceof Date || e instanceof Map || e instanceof Set) return new n(e);
951
- if (e instanceof RegExp) {
952
- let t = new n(e);
953
- return t.lastIndex = e.lastIndex, t;
954
- }
955
- if (e instanceof DataView) return new n(e.buffer.slice(0));
956
- if (e instanceof Error) {
957
- let t;
958
- return t = e instanceof AggregateError ? new n(e.errors, e.message, { cause: e.cause }) : new n(e.message, { cause: e.cause }), t.stack = e.stack, Object.assign(t, e), t;
959
- }
960
- if (typeof File < "u" && e instanceof File) return new n([e], e.name, {
961
- type: e.type,
962
- lastModified: e.lastModified
963
- });
964
- if (typeof e == "object") {
965
- let n = Object.create(t);
966
- return Object.assign(n, e);
967
- }
968
- return e;
969
- }
970
- //#endregion
971
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
972
- function at(e, ...t) {
973
- let n = t.slice(0, -1), r = t[t.length - 1], i = e;
974
- for (let e = 0; e < n.length; e++) {
975
- let t = n[e];
976
- i = H(i, t, r, /* @__PURE__ */ new Map());
977
- }
978
- return i;
979
- }
980
- function H(e, t, n, r) {
981
- if (E(e) && (e = Object(e)), typeof t != "object" || !t) return e;
982
- if (r.has(t)) return it(r.get(t));
983
- if (r.set(t, e), Array.isArray(t)) {
984
- t = t.slice();
985
- for (let e = 0; e < t.length; e++) t[e] = t[e] ?? void 0;
986
- }
987
- let i = [...Object.keys(t), ...Ne(t)];
988
- for (let a = 0; a < i.length; a++) {
989
- let o = i[a];
990
- if (Me(o)) continue;
991
- let s = t[o], c = e[o];
992
- if (L(s) && (s = { ...s }), L(c) && (c = { ...c }), N(s) && (s = tt(s)), Array.isArray(s)) {
993
- if (Array.isArray(c)) {
994
- let e = [], t = Reflect.ownKeys(c);
995
- for (let n = 0; n < t.length; n++) {
996
- let r = t[n];
997
- e[r] = c[r];
998
- }
999
- c = e;
1000
- } else if (nt(c)) {
1001
- let e = [];
1002
- for (let t = 0; t < c.length; t++) e[t] = c[t];
1003
- c = e;
1004
- } else c = [];
1005
- }
1006
- let l = n(c, s, o, e, t, r);
1007
- l === void 0 ? Array.isArray(s) || R(c) && R(s) && (V(c) || V(s) || B(c) || B(s)) ? e[o] = H(c, s, n, r) : c == null && V(s) ? e[o] = H({}, s, n, r) : c == null && B(s) ? e[o] = tt(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
1008
- }
1009
- return e;
1010
- }
1011
- //#endregion
1012
- //#region ../../node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/merge.mjs
1013
- function ot(e, ...t) {
1014
- return at(e, ...t, rt);
1015
- }
1016
- //#endregion
1017
- //#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.mjs
1018
- var st = c(), ct = {
1019
- curveBasis: te,
1020
- curveBasisClosed: re,
1021
- curveBasisOpen: ae,
1022
- curveBumpX: f,
1023
- curveBumpY: ee,
1024
- curveBundle: se,
1025
- curveCardinalClosed: le,
1026
- curveCardinalOpen: ue,
1027
- curveCardinal: ce,
1028
- curveCatmullRomClosed: me,
1029
- curveCatmullRomOpen: ge,
1030
- curveCatmullRom: fe,
1031
- curveLinear: u,
1032
- curveLinearClosed: ve,
1033
- curveMonotoneX: we,
1034
- curveMonotoneY: Te,
1035
- curveNatural: Oe,
1036
- curveStep: w,
1037
- curveStepAfter: ke,
1038
- curveStepBefore: T
1039
- }, lt = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ut = /* @__PURE__ */ e(function(e, t) {
1040
- let n = dt(e, /(?:init\b)|(?:initialize\b)/), i = {};
1041
- if (Array.isArray(n)) {
1042
- let e = n.map((e) => e.args);
1043
- r(e), i = o(i, [...e]);
1044
- } else i = n.args;
1045
- if (!i) return;
1046
- let s = a(e, t), c = "config";
1047
- return i[c] !== void 0 && (s === "flowchart-v2" && (s = "flowchart"), i[s] = i[c], delete i[c]), i;
1048
- }, "detectInit"), dt = /* @__PURE__ */ e(function(e, n = null) {
1049
- try {
1050
- let r = RegExp(`[%]{2}(?![{]${lt.source})(?=[}][%]{2}).*
1051
- `, "ig");
1052
- e = e.trim().replace(r, "").replace(/'/gm, "\""), t.debug(`Detecting diagram directive${n === null ? "" : " type:" + n} based on the text:${e}`);
1053
- let a, o = [];
1054
- for (; (a = i.exec(e)) !== null;) if (a.index === i.lastIndex && i.lastIndex++, a && !n || n && a[1]?.match(n) || n && a[2]?.match(n)) {
1055
- let e = a[1] ? a[1] : a[2], t = a[3] ? a[3].trim() : a[4] ? JSON.parse(a[4].trim()) : null;
1056
- o.push({
1057
- type: e,
1058
- args: t
1059
- });
1060
- }
1061
- return o.length === 0 ? {
1062
- type: e,
1063
- args: null
1064
- } : o.length === 1 ? o[0] : o;
1065
- } catch (r) {
1066
- return t.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${e}'`), {
1067
- type: void 0,
1068
- args: null
1069
- };
1070
- }
1071
- }, "detectDirective"), ft = /* @__PURE__ */ e(function(e) {
1072
- return e.replace(i, "");
1073
- }, "removeDirectives"), pt = /* @__PURE__ */ e(function(e, t) {
1074
- for (let [n, r] of t.entries()) if (r.match(e)) return n;
1075
- return -1;
1076
- }, "isSubstringInArray");
1077
- function U(e, t) {
1078
- return e ? ct[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
1079
- }
1080
- e(U, "interpolateToCurve");
1081
- function mt(e, t) {
1082
- let n = e.trim();
1083
- if (n) return t.securityLevel === "loose" ? n : (0, st.sanitizeUrl)(n);
1084
- }
1085
- e(mt, "formatUrl");
1086
- var ht = /* @__PURE__ */ e((e, ...n) => {
1087
- let r = e.split("."), i = r.length - 1, a = r[i], o = window;
1088
- for (let n = 0; n < i; n++) if (o = o[r[n]], !o) {
1089
- t.error(`Function name: ${e} not found in window`);
1090
- return;
1091
- }
1092
- o[a](...n);
1093
- }, "runFunc");
1094
- function W(e, t) {
1095
- return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
1096
- }
1097
- e(W, "distance");
1098
- function gt(e) {
1099
- let t, n = 0;
1100
- return e.forEach((e) => {
1101
- n += W(e, t), t = e;
1102
- }), G(e, n / 2);
1103
- }
1104
- e(gt, "traverseEdge");
1105
- function _t(e) {
1106
- return e.length === 1 ? e[0] : gt(e);
1107
- }
1108
- e(_t, "calcLabelPosition");
1109
- var vt = /* @__PURE__ */ e((e, t = 2) => {
1110
- let n = 10 ** t;
1111
- return Math.round(e * n) / n;
1112
- }, "roundNumber"), G = /* @__PURE__ */ e((e, t) => {
1113
- let n, r = t;
1114
- for (let t of e) {
1115
- if (n) {
1116
- let e = W(t, n);
1117
- if (e === 0) return n;
1118
- if (e < r) r -= e;
1119
- else {
1120
- let i = r / e;
1121
- if (i <= 0) return n;
1122
- if (i >= 1) return {
1123
- x: t.x,
1124
- y: t.y
1125
- };
1126
- if (i > 0 && i < 1) return {
1127
- x: vt((1 - i) * n.x + i * t.x, 5),
1128
- y: vt((1 - i) * n.y + i * t.y, 5)
1129
- };
1130
- }
1131
- }
1132
- n = t;
1133
- }
1134
- throw Error("Could not find a suitable point for the given distance");
1135
- }, "calculatePoint"), yt = /* @__PURE__ */ e((e, n, r) => {
1136
- t.info(`our points ${JSON.stringify(n)}`), n[0] !== r && (n = n.reverse());
1137
- let i = G(n, 25), a = e ? 10 : 5, o = Math.atan2(n[0].y - i.y, n[0].x - i.x), s = {
1138
- x: 0,
1139
- y: 0
1140
- };
1141
- return s.x = Math.sin(o) * a + (n[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (n[0].y + i.y) / 2, s;
1142
- }, "calcCardinalityPosition");
1143
- function bt(e, n, r) {
1144
- let i = structuredClone(r);
1145
- t.info("our points", i), n !== "start_left" && n !== "start_right" && i.reverse();
1146
- let a = G(i, 25 + e), o = 10 + e * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
1147
- x: 0,
1148
- y: 0
1149
- };
1150
- return n === "start_left" ? (c.x = Math.sin(s + Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s + Math.PI) * o + (i[0].y + a.y) / 2) : n === "end_right" ? (c.x = Math.sin(s - Math.PI) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s - Math.PI) * o + (i[0].y + a.y) / 2 - 5) : n === "end_left" ? (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2 - 5) : (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2), c;
1151
- }
1152
- e(bt, "calcTerminalLabelPosition");
1153
- function K(e) {
1154
- let t = "", n = "";
1155
- for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
1156
- return {
1157
- style: t,
1158
- labelStyle: n
1159
- };
1160
- }
1161
- e(K, "getStylesFromArray");
1162
- var xt = 0, St = /* @__PURE__ */ e(() => (xt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + xt), "generateId");
1163
- function Ct(e) {
1164
- let t = "";
1165
- for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
1166
- return t;
1167
- }
1168
- e(Ct, "makeRandomHex");
1169
- var wt = /* @__PURE__ */ e((e) => Ct(e.length), "random"), Tt = /* @__PURE__ */ e(function() {
1170
- return {
1171
- x: 0,
1172
- y: 0,
1173
- fill: void 0,
1174
- anchor: "start",
1175
- style: "#666",
1176
- width: 100,
1177
- height: 100,
1178
- textMargin: 0,
1179
- rx: 0,
1180
- ry: 0,
1181
- valign: void 0,
1182
- text: ""
1183
- };
1184
- }, "getTextObj"), Et = /* @__PURE__ */ e(function(e, t) {
1185
- let n = t.text.replace(s.lineBreakRegex, " "), [, r] = Z(t.fontSize), i = e.append("text");
1186
- i.attr("x", t.x), i.attr("y", t.y), i.style("text-anchor", t.anchor), i.style("font-family", t.fontFamily), i.style("font-size", r), i.style("font-weight", t.fontWeight), i.attr("fill", t.fill), t.class !== void 0 && i.attr("class", t.class);
1187
- let a = i.append("tspan");
1188
- return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
1189
- }, "drawSimpleText"), Dt = z((e, t, n) => {
1190
- if (!e || (n = Object.assign({
1191
- fontSize: 12,
1192
- fontWeight: 400,
1193
- fontFamily: "Arial",
1194
- joinWith: "<br/>"
1195
- }, n), s.lineBreakRegex.test(e))) return e;
1196
- let r = e.split(" ").filter(Boolean), i = [], a = "";
1197
- return r.forEach((e, o) => {
1198
- let s = J(`${e} `, n), c = J(a, n);
1199
- if (s > t) {
1200
- let { hyphenatedStrings: r, remainingWord: o } = Ot(e, t, "-", n);
1201
- i.push(a, ...r), a = o;
1202
- } else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
1203
- o + 1 === r.length && i.push(a);
1204
- }), i.filter((e) => e !== "").join(n.joinWith);
1205
- }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), Ot = z((e, t, n = "-", r) => {
1206
- r = Object.assign({
1207
- fontSize: 12,
1208
- fontWeight: 400,
1209
- fontFamily: "Arial",
1210
- margin: 0
1211
- }, r);
1212
- let i = [...e], a = [], o = "";
1213
- return i.forEach((e, s) => {
1214
- let c = `${o}${e}`;
1215
- if (J(c, r) >= t) {
1216
- let e = s + 1, t = i.length === e, r = `${c}${n}`;
1217
- a.push(t ? c : r), o = "";
1218
- } else o = c;
1219
- }), {
1220
- hyphenatedStrings: a,
1221
- remainingWord: o
1222
- };
1223
- }, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
1224
- function q(e, t) {
1225
- return Y(e, t).height;
1226
- }
1227
- e(q, "calculateTextHeight");
1228
- function J(e, t) {
1229
- return Y(e, t).width;
1230
- }
1231
- e(J, "calculateTextWidth");
1232
- var Y = z((e, t) => {
1233
- let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = t;
1234
- if (!e) return {
1235
- width: 0,
1236
- height: 0
1237
- };
1238
- let [, o] = Z(r), c = ["sans-serif", i], l = e.split(s.lineBreakRegex), u = [], d = n("body");
1239
- if (!d.remove) return {
1240
- width: 0,
1241
- height: 0,
1242
- lineHeight: 0
1243
- };
1244
- let f = d.append("svg");
1245
- for (let e of c) {
1246
- let t = 0, n = {
1247
- width: 0,
1248
- height: 0,
1249
- lineHeight: 0
1250
- };
1251
- for (let r of l) {
1252
- let i = Tt();
1253
- i.text = r || "​";
1254
- let s = Et(f, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1255
- if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
1256
- n.width = Math.round(Math.max(n.width, c.width)), t = Math.round(c.height), n.height += t, n.lineHeight = Math.round(Math.max(n.lineHeight, t));
1257
- }
1258
- u.push(n);
1259
- }
1260
- return f.remove(), u[isNaN(u[1].height) || isNaN(u[1].width) || isNaN(u[1].lineHeight) || u[0].height > u[1].height && u[0].width > u[1].width && u[0].lineHeight > u[1].lineHeight ? 0 : 1];
1261
- }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), kt = class {
1262
- constructor(e = !1, t) {
1263
- this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
1264
- }
1265
- static {
1266
- e(this, "InitIDGenerator");
1267
- }
1268
- }, X, At = /* @__PURE__ */ e(function(e) {
1269
- return X ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), X.innerHTML = e, unescape(X.textContent);
1270
- }, "entityDecode");
1271
- function jt(e) {
1272
- return "str" in e;
1273
- }
1274
- e(jt, "isDetailedError");
1275
- var Mt = /* @__PURE__ */ e((e, t, n, r) => {
1276
- if (!r) return;
1277
- let i = e.node()?.getBBox();
1278
- i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
1279
- }, "insertTitle"), Z = /* @__PURE__ */ e((e) => {
1280
- if (typeof e == "number") return [e, e + "px"];
1281
- let t = parseInt(e ?? "", 10);
1282
- return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
1283
- }, "parseFontSize");
1284
- function Q(e, t) {
1285
- return ot({}, e, t);
1286
- }
1287
- e(Q, "cleanAndMerge");
1288
- var Nt = {
1289
- assignWithDepth: o,
1290
- wrapLabel: Dt,
1291
- calculateTextHeight: q,
1292
- calculateTextWidth: J,
1293
- calculateTextDimensions: Y,
1294
- cleanAndMerge: Q,
1295
- detectInit: ut,
1296
- detectDirective: dt,
1297
- isSubstringInArray: pt,
1298
- interpolateToCurve: U,
1299
- calcLabelPosition: _t,
1300
- calcCardinalityPosition: yt,
1301
- calcTerminalLabelPosition: bt,
1302
- formatUrl: mt,
1303
- getStylesFromArray: K,
1304
- generateId: St,
1305
- random: wt,
1306
- runFunc: ht,
1307
- entityDecode: At,
1308
- insertTitle: Mt,
1309
- isLabelCoordinateInPath: $,
1310
- parseFontSize: Z,
1311
- InitIDGenerator: kt
1312
- }, Pt = /* @__PURE__ */ e(function(e) {
1313
- let t = e;
1314
- return t = t.replace(/style.*:\S*#.*;/g, function(e) {
1315
- return e.substring(0, e.length - 1);
1316
- }), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
1317
- return e.substring(0, e.length - 1);
1318
- }), t = t.replace(/#\w+;/g, function(e) {
1319
- let t = e.substring(1, e.length - 1);
1320
- return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
1321
- }), t;
1322
- }, "encodeEntities"), Ft = /* @__PURE__ */ e(function(e) {
1323
- return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
1324
- }, "decodeEntities"), It = /* @__PURE__ */ e((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1325
- function Lt(e) {
1326
- return e ?? null;
1327
- }
1328
- e(Lt, "handleUndefinedAttr");
1329
- function $(e, t) {
1330
- let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
1331
- return i.includes(n.toString()) || i.includes(r.toString());
1332
- }
1333
- e($, "isLabelCoordinateInPath");
1334
- //#endregion
1335
- export { ce as $, Je as A, Ke as B, ze as C, Ye as D, Ie as E, Pe as F, je as G, We as H, Re as I, w as J, ke as K, O as L, Le as M, k as N, Xe as O, Ve as P, fe as Q, Fe as R, Be as S, He as T, D as U, Ue as V, E as W, we as X, Oe as Y, Te as Z, Dt as _, Ft as a, N as b, It as c, U as d, te as et, jt as f, Nt as g, ft as h, Q as i, qe as j, M as k, K as l, wt as m, q as n, ee as nt, Pt as o, Z as p, T as q, J as r, u as rt, St as s, Y as t, f as tt, Lt as u, B as v, A as w, j as x, L as y, Ge as z };