@aiquants/markdown 6.0.0 → 6.2.0

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 (150) hide show
  1. package/README.md +142 -7
  2. package/dist/{abnfDiagram-VRR7QNED-D7Rp9EaV.js → abnfDiagram-VRR7QNED-Csrzuwyl.js} +3 -3
  3. package/dist/{abnfDiagram-VRR7QNED-KTGT9TWM.cjs → abnfDiagram-VRR7QNED-DX6eyf4O.cjs} +1 -1
  4. package/dist/arc-Gw7Urszo.js +83 -0
  5. package/dist/{arc-D5T_urCC.cjs → arc-ZAQ3z7kr.cjs} +1 -1
  6. package/dist/{architectureDiagram-ZJ3FMSHR-DLrGYTYy.js → architectureDiagram-ZJ3FMSHR-Coy6_Fcg.js} +2 -2
  7. package/dist/{architectureDiagram-ZJ3FMSHR-BOo3y9aD.cjs → architectureDiagram-ZJ3FMSHR-DxzMbkp1.cjs} +1 -1
  8. package/dist/{blockDiagram-677ZJIJ3-B60l5Fpl.js → blockDiagram-677ZJIJ3-CbR-wn2x.js} +3 -3
  9. package/dist/{blockDiagram-677ZJIJ3-DnjCjo0a.cjs → blockDiagram-677ZJIJ3-THmR4OyE.cjs} +1 -1
  10. package/dist/{c4Diagram-LMCZKHZV-bd8fWQ1F.cjs → c4Diagram-LMCZKHZV-BcJpuXK1.cjs} +1 -1
  11. package/dist/{c4Diagram-LMCZKHZV-BmbplKCu.js → c4Diagram-LMCZKHZV-DHMqNO9p.js} +2 -2
  12. package/dist/{channel-B3oXm84X.js → channel-CfC4eqki.js} +1 -1
  13. package/dist/{channel-DJ_PyD9w.cjs → channel-Cryph4zI.cjs} +1 -1
  14. package/dist/{chunk-2Q5K7J3B-C0hbxO3D.js → chunk-2Q5K7J3B-C3BIc3MH.js} +1 -1
  15. package/dist/{chunk-2Q5K7J3B-CWLCO342.cjs → chunk-2Q5K7J3B-CxWyY331.cjs} +1 -1
  16. package/dist/{chunk-32BRIVSS-DUWtkDEY.js → chunk-32BRIVSS-C37ccuiX.js} +1 -1
  17. package/dist/{chunk-32BRIVSS-Cb9nTxqN.cjs → chunk-32BRIVSS-C3w_aYfI.cjs} +1 -1
  18. package/dist/{chunk-5VM5RSS4-DHA5n_Ls.cjs → chunk-5VM5RSS4-Cbt79-V5.cjs} +1 -1
  19. package/dist/{chunk-5VM5RSS4-C3mSh-gE.js → chunk-5VM5RSS4-DVLmkcyq.js} +1 -1
  20. package/dist/{chunk-EX3LRPZG-ByY6_kep.cjs → chunk-EX3LRPZG-BZOxrSRn.cjs} +1 -1
  21. package/dist/{chunk-EX3LRPZG-DCF1zjtT.js → chunk-EX3LRPZG-Co0Bql0-.js} +37 -37
  22. package/dist/{chunk-JWPE2WC7-CUBzYD4G.cjs → chunk-JWPE2WC7-Cvt_ToFU.cjs} +1 -1
  23. package/dist/{chunk-JWPE2WC7-CPLOunIL.js → chunk-JWPE2WC7-DUndc3Wb.js} +1 -1
  24. package/dist/{chunk-MOJQB5TN-P8-yb3-j.cjs → chunk-MOJQB5TN-AAMW2q8N.cjs} +1 -1
  25. package/dist/{chunk-MOJQB5TN-CmOhW6SK.js → chunk-MOJQB5TN-aTSDPliR.js} +11 -11
  26. package/dist/{chunk-PUDLZKDR-pKdIELvz.cjs → chunk-PUDLZKDR-CzCdcyAN.cjs} +1 -1
  27. package/dist/{chunk-PUDLZKDR-DH7B7ZTK.js → chunk-PUDLZKDR-Q5QzbDtY.js} +11 -11
  28. package/dist/{chunk-RYQCIY6F-DcvQCEoc.cjs → chunk-RYQCIY6F-DbjhsOnH.cjs} +1 -1
  29. package/dist/{chunk-RYQCIY6F-C7ytn_QX.js → chunk-RYQCIY6F-O6wbIIFF.js} +10 -10
  30. package/dist/{chunk-V7JOEXUC-CtXgqODy.cjs → chunk-V7JOEXUC-B6Qc5ABc.cjs} +1 -1
  31. package/dist/{chunk-V7JOEXUC-BgLcssUF.js → chunk-V7JOEXUC-OTS1fN7j.js} +10 -10
  32. package/dist/{chunk-VR4S4FIN-BK6xeIQk.js → chunk-VR4S4FIN-D4tY80kq.js} +1 -1
  33. package/dist/{chunk-VR4S4FIN-Cc4GDi2Z.cjs → chunk-VR4S4FIN-DlneMFEg.cjs} +1 -1
  34. package/dist/{chunk-XXDRQBXY-COtZ25Ez.js → chunk-XXDRQBXY-58rTAwvh.js} +1 -1
  35. package/dist/{chunk-XXDRQBXY-D1OixGzR.cjs → chunk-XXDRQBXY-CvhBfnFQ.cjs} +1 -1
  36. package/dist/{classDiagram-OUVF2IWQ-DDLmqaG6.cjs → classDiagram-OUVF2IWQ-C0S2HAJU.cjs} +1 -1
  37. package/dist/{classDiagram-v2-EOCWNBFH-Jc-IwOm0.js → classDiagram-OUVF2IWQ-hcuKRiyp.js} +2 -2
  38. package/dist/{classDiagram-v2-EOCWNBFH-DDLmqaG6.cjs → classDiagram-v2-EOCWNBFH-C0S2HAJU.cjs} +1 -1
  39. package/dist/{classDiagram-OUVF2IWQ-Jc-IwOm0.js → classDiagram-v2-EOCWNBFH-hcuKRiyp.js} +2 -2
  40. package/dist/components/HostedScrollArea.d.ts +15 -0
  41. package/dist/components/MarkdownViewer.d.ts +3 -1
  42. package/dist/components/embeds/LinkCard.d.ts +14 -3
  43. package/dist/components/mermaidInteraction.d.ts +1 -0
  44. package/dist/{cose-bilkent-JH36ORCC-DaucPocG.js → cose-bilkent-JH36ORCC-BwltbHKG.js} +5 -5
  45. package/dist/{cose-bilkent-JH36ORCC-OwiXHdQY.cjs → cose-bilkent-JH36ORCC-DVZVn03H.cjs} +1 -1
  46. package/dist/{cynefinDiagram-TSTJHNR4-Ag-HcuUm.cjs → cynefinDiagram-TSTJHNR4-DYCBxaEi.cjs} +1 -1
  47. package/dist/{cynefinDiagram-TSTJHNR4-Dkmz7gDw.js → cynefinDiagram-TSTJHNR4-ogTeIoNY.js} +28 -28
  48. package/dist/{dagre-VKFMJZFB-BHGdcjt3.js → dagre-VKFMJZFB-BfNdgMHQ.js} +9 -9
  49. package/dist/{dagre-VKFMJZFB-Q4CcAQ09.cjs → dagre-VKFMJZFB-DJW9o9XX.cjs} +1 -1
  50. package/dist/{diagram-FQU43EPY-jWCrN_AW.cjs → diagram-FQU43EPY-BRpNVpgn.cjs} +1 -1
  51. package/dist/{diagram-FQU43EPY-DBASKnKu.js → diagram-FQU43EPY-CJf3yD8h.js} +25 -25
  52. package/dist/{diagram-G47NLZAW-B4XMStX7.cjs → diagram-G47NLZAW-5rZfUeWV.cjs} +1 -1
  53. package/dist/{diagram-G47NLZAW-BY1mmnYA.js → diagram-G47NLZAW-D0-6oupP.js} +25 -25
  54. package/dist/{diagram-NH7WQ7WH-BXFvYRtm.js → diagram-NH7WQ7WH-BwrWWWZJ.js} +19 -19
  55. package/dist/{diagram-NH7WQ7WH-BS1eEa9R.cjs → diagram-NH7WQ7WH-g7m8p5fK.cjs} +1 -1
  56. package/dist/{diagram-OA4YK3LP-DgGrzezu.js → diagram-OA4YK3LP-BBqA1m8s.js} +13 -13
  57. package/dist/{diagram-OA4YK3LP-CTaL_2Nc.cjs → diagram-OA4YK3LP-BxP8KUna.cjs} +1 -1
  58. package/dist/{diagram-WEI45ONY-BHxWKH3v.js → diagram-WEI45ONY-CMexm2GN.js} +35 -35
  59. package/dist/{diagram-WEI45ONY-DX7BGSMI.cjs → diagram-WEI45ONY-DgJyq1w0.cjs} +1 -1
  60. package/dist/{ebnfDiagram-CCIWWBDH-BUK_anpV.js → ebnfDiagram-CCIWWBDH-DvLr_8nV.js} +3 -3
  61. package/dist/{ebnfDiagram-CCIWWBDH-BpDmVVJY.cjs → ebnfDiagram-CCIWWBDH-sfiWOXCW.cjs} +1 -1
  62. package/dist/embeds/linkCards.d.ts +32 -0
  63. package/dist/embeds/testing.cjs +1 -1
  64. package/dist/embeds/testing.js +1 -1
  65. package/dist/embeds.cjs +1 -1
  66. package/dist/embeds.d.ts +1 -1
  67. package/dist/embeds.js +53 -74
  68. package/dist/{erDiagram-Q63AITRT-Cd9H9BtP.cjs → erDiagram-Q63AITRT-B11THykZ.cjs} +1 -1
  69. package/dist/{erDiagram-Q63AITRT-Qb2bmkNp.js → erDiagram-Q63AITRT-D6U6Ng3Y.js} +4 -4
  70. package/dist/{extractHeadings-B2pUyEPa.js → extractHeadings-CdLPwHlC.js} +4882 -4827
  71. package/dist/extractHeadings-DRUBnhbi.cjs +311 -0
  72. package/dist/flowDiagram-23GEKE2U-CDscoQ9F.cjs +1 -0
  73. package/dist/flowDiagram-23GEKE2U-CLibi_u4.js +7 -0
  74. package/dist/{ganttDiagram-NO4QXBWP-C6-ExcDz.cjs → ganttDiagram-NO4QXBWP-BLlXK3zo.cjs} +1 -1
  75. package/dist/{ganttDiagram-NO4QXBWP-BVISsrzr.js → ganttDiagram-NO4QXBWP-CGCdgj0K.js} +2 -2
  76. package/dist/{gitGraphDiagram-IHSO6WYX-DLzPc702.cjs → gitGraphDiagram-IHSO6WYX-BHOyibqH.cjs} +1 -1
  77. package/dist/{gitGraphDiagram-IHSO6WYX-BDVA2TFP.js → gitGraphDiagram-IHSO6WYX-Bib3c0C6.js} +3 -3
  78. package/dist/index.cjs +1 -1
  79. package/dist/index.client.cjs +1 -1
  80. package/dist/index.client.d.ts +1 -0
  81. package/dist/index.client.js +33 -32
  82. package/dist/index.js +33 -32
  83. package/dist/index.server.cjs +1 -1
  84. package/dist/index.server.d.ts +1 -0
  85. package/dist/index.server.js +598 -151
  86. package/dist/{infoDiagram-FWYZ7A6U-D31UwqjR.js → infoDiagram-FWYZ7A6U-BUqDBIaP.js} +3 -3
  87. package/dist/{infoDiagram-FWYZ7A6U-DMF_wb2h.cjs → infoDiagram-FWYZ7A6U-BcDp6g1Y.cjs} +1 -1
  88. package/dist/{ishikawaDiagram-FXEZZL3T-DUlnwraq.cjs → ishikawaDiagram-FXEZZL3T-C3QHQ1ia.cjs} +1 -1
  89. package/dist/{ishikawaDiagram-FXEZZL3T-XA6-gyHY.js → ishikawaDiagram-FXEZZL3T-CcPh4nuP.js} +18 -18
  90. package/dist/{journeyDiagram-5HDEW3XC-CwQyFcYa.cjs → journeyDiagram-5HDEW3XC-B17v98Wb.cjs} +1 -1
  91. package/dist/{journeyDiagram-5HDEW3XC-B8sfsWpu.js → journeyDiagram-5HDEW3XC-MdxndgF1.js} +30 -30
  92. package/dist/{kanban-definition-HUTT4EX6-BjPlt2-E.cjs → kanban-definition-HUTT4EX6-BApVXeVQ.cjs} +1 -1
  93. package/dist/{kanban-definition-HUTT4EX6-FTrTBare.js → kanban-definition-HUTT4EX6-JhfZ6Qik.js} +120 -120
  94. package/dist/{linear-D3AJM3sY.cjs → linear-CIVwb13z.cjs} +1 -1
  95. package/dist/{linear-DI9P_z72.js → linear-dbOUbGpD.js} +8 -8
  96. package/dist/linkCardServer/addressGuard.server.d.ts +25 -0
  97. package/dist/linkCardServer/htmlEncoding.server.d.ts +6 -0
  98. package/dist/linkCardServer/linkCardHandler.server.d.ts +7 -0
  99. package/dist/linkCardServer/metadataCache.server.d.ts +5 -0
  100. package/dist/linkCardServer/pageFetch.server.d.ts +37 -0
  101. package/dist/linkCardServer/pageMetadata.server.d.ts +11 -0
  102. package/dist/linkCards-1JxY8wdm.js +48 -0
  103. package/dist/linkCards-Bjd_vW39.cjs +1 -0
  104. package/dist/markdown.css +1 -1
  105. package/dist/{mindmap-definition-LN4V7U3C-CxgWZidl.cjs → mindmap-definition-LN4V7U3C-BUbo0u-Y.cjs} +1 -1
  106. package/dist/{mindmap-definition-LN4V7U3C-YW4YcL9x.js → mindmap-definition-LN4V7U3C-gNTBga2z.js} +16 -16
  107. package/dist/{pegDiagram-2B236MQR-sJjLKeF3.js → pegDiagram-2B236MQR-BqjpbNkG.js} +3 -3
  108. package/dist/{pegDiagram-2B236MQR-CUo7q5bl.cjs → pegDiagram-2B236MQR-DZiQVxu1.cjs} +1 -1
  109. package/dist/{pieDiagram-ENE6RG2P-D4VanIOv.js → pieDiagram-ENE6RG2P-C1Gr48CK.js} +60 -60
  110. package/dist/{pieDiagram-ENE6RG2P-Cy_sUuLQ.cjs → pieDiagram-ENE6RG2P-D2nxDVFV.cjs} +1 -1
  111. package/dist/providers-BO7J62-7.cjs +1 -0
  112. package/dist/{providers-Drq7MT_K.js → providers-L5RM3KgR.js} +23 -23
  113. package/dist/{quadrantDiagram-ABIIQ3AL-D3c8xLpt.cjs → quadrantDiagram-ABIIQ3AL-C855tL3K.cjs} +1 -1
  114. package/dist/{quadrantDiagram-ABIIQ3AL-ubxphjb_.js → quadrantDiagram-ABIIQ3AL-DuD9ZdUQ.js} +18 -18
  115. package/dist/{railroadDiagram-RFXS5EU6-_Q4W5hB-.cjs → railroadDiagram-RFXS5EU6-BZsnhaQd.cjs} +1 -1
  116. package/dist/{railroadDiagram-RFXS5EU6-DvpD4C_A.js → railroadDiagram-RFXS5EU6-xx1d3Md8.js} +3 -3
  117. package/dist/{requirementDiagram-TGXJPOKE-Dk_6BuX9.js → requirementDiagram-TGXJPOKE-CCu1UYFH.js} +3 -3
  118. package/dist/{requirementDiagram-TGXJPOKE-DdYIO-wU.cjs → requirementDiagram-TGXJPOKE-D_NbFRkb.cjs} +1 -1
  119. package/dist/{sankeyDiagram-HTMAVEWB-zuYg6LTg.cjs → sankeyDiagram-HTMAVEWB-Dn2Ta-XX.cjs} +1 -1
  120. package/dist/{sankeyDiagram-HTMAVEWB-s3Kd7T8n.js → sankeyDiagram-HTMAVEWB-QGzXzczJ.js} +1 -1
  121. package/dist/{sequenceDiagram-DBY2YBRQ-BvNPCevg.cjs → sequenceDiagram-DBY2YBRQ-BA3Oc4pz.cjs} +1 -1
  122. package/dist/{sequenceDiagram-DBY2YBRQ-YQic4wxL.js → sequenceDiagram-DBY2YBRQ-CjnUnaw9.js} +3 -3
  123. package/dist/simple-logger-9yf7ypyB.cjs +1 -0
  124. package/dist/simple-logger-DwH1YQvq.js +103 -0
  125. package/dist/{sizeCapture-X5ZJPWSS-BqrdzzsI.cjs → sizeCapture-X5ZJPWSS-BPQhVBe0.cjs} +1 -1
  126. package/dist/{sizeCapture-X5ZJPWSS-qMsWGfjy.js → sizeCapture-X5ZJPWSS-nb9uU-BE.js} +1 -1
  127. package/dist/{stateDiagram-2N3HPSRC-D1Ub8LYq.js → stateDiagram-2N3HPSRC-Byg3E1AA.js} +11 -11
  128. package/dist/{stateDiagram-2N3HPSRC-Ds8f-scd.cjs → stateDiagram-2N3HPSRC-DSqLqSY5.cjs} +1 -1
  129. package/dist/{stateDiagram-v2-6OUMAXLB-PmrsPXuZ.cjs → stateDiagram-v2-6OUMAXLB-VRhXyf-C.cjs} +1 -1
  130. package/dist/{stateDiagram-v2-6OUMAXLB-DW8wjtk3.js → stateDiagram-v2-6OUMAXLB-hKcuYy9t.js} +2 -2
  131. package/dist/styles/markdown.css +1 -1
  132. package/dist/{swimlanes-5IMT3BWC-jZhcesRT.cjs → swimlanes-5IMT3BWC-CVnOKNcb.cjs} +1 -1
  133. package/dist/{swimlanes-5IMT3BWC-C8P8vU0w.js → swimlanes-5IMT3BWC-DyIDdThc.js} +3 -3
  134. package/dist/{swimlanesDiagram-G3AALYLV-B9FKeJRf.js → swimlanesDiagram-G3AALYLV-BF1ofRjP.js} +2 -2
  135. package/dist/{swimlanesDiagram-G3AALYLV-M5Cg2MHU.cjs → swimlanesDiagram-G3AALYLV-C3U5wLlX.cjs} +1 -1
  136. package/dist/{timeline-definition-FHXFAJF6-Ch-He--D.js → timeline-definition-FHXFAJF6-DBmE_qU3.js} +38 -38
  137. package/dist/{timeline-definition-FHXFAJF6-DZm1-KlQ.cjs → timeline-definition-FHXFAJF6-KUETCXLT.cjs} +1 -1
  138. package/dist/utils/simple-logger.d.ts +1 -0
  139. package/dist/{vennDiagram-L72KCM5P-CaoPscCM.js → vennDiagram-L72KCM5P-C6j4k5X-.js} +102 -102
  140. package/dist/{vennDiagram-L72KCM5P-mUSI238J.cjs → vennDiagram-L72KCM5P-DkSV3dIE.cjs} +1 -1
  141. package/dist/{wardleyDiagram-EHGQE667-CSAqF366.js → wardleyDiagram-EHGQE667-BaG6Cf_u.js} +18 -18
  142. package/dist/{wardleyDiagram-EHGQE667-CkKP97H-.cjs → wardleyDiagram-EHGQE667-uWMTMxL-.cjs} +1 -1
  143. package/dist/{xychartDiagram-FW5EYKEG-OEsTD_k4.js → xychartDiagram-FW5EYKEG-BPl5BnMB.js} +27 -27
  144. package/dist/{xychartDiagram-FW5EYKEG-BivGpkVk.cjs → xychartDiagram-FW5EYKEG-QAFE-xqg.cjs} +1 -1
  145. package/package.json +12 -8
  146. package/dist/arc-DzZml7Bc.js +0 -83
  147. package/dist/extractHeadings-DgefF9l1.cjs +0 -311
  148. package/dist/flowDiagram-23GEKE2U-BOmNlv7X.cjs +0 -1
  149. package/dist/flowDiagram-23GEKE2U-DMZnRz-6.js +0 -7
  150. package/dist/providers-Bxr2Wb-j.cjs +0 -1
@@ -1,17 +1,17 @@
1
- import { _ as o, O as te, J as H, ak as fe, aR as ye, aS as be, aT as me, aA as ke, ai as K, V as F, a7 as _e, a8 as Ee, ax as Se, ay as ce, az as le } from "./extractHeadings-B2pUyEPa.js";
2
- import { g as Ne } from "./chunk-5VM5RSS4-C3mSh-gE.js";
1
+ import { _ as o, Q as te, K as H, al as fe, aS as ye, aT as be, aU as me, aB as _e, aj as X, W as F, a8 as ke, a9 as Ee, ay as Se, az as ce, aA as le } from "./extractHeadings-CdLPwHlC.js";
2
+ import { g as Ne } from "./chunk-5VM5RSS4-DVLmkcyq.js";
3
3
  var $ = (function() {
4
- var e = /* @__PURE__ */ o(function(O, i, n, r) {
5
- for (n = n || {}, r = O.length; r--; n[O[r]] = i) ;
4
+ var e = /* @__PURE__ */ o(function(O, s, n, r) {
5
+ for (n = n || {}, r = O.length; r--; n[O[r]] = s) ;
6
6
  return n;
7
- }, "o"), h = [1, 4], p = [1, 13], s = [1, 12], d = [1, 15], k = [1, 16], m = [1, 20], l = [1, 19], D = [6, 7, 8], I = [1, 26], g = [1, 24], w = [1, 25], _ = [6, 7, 11], G = [1, 31], N = [6, 7, 11, 24], V = [1, 6, 13, 16, 17, 20, 23], f = [1, 35], A = [1, 36], L = [1, 6, 7, 11, 13, 16, 17, 20, 23], M = [1, 38], T = {
7
+ }, "o"), h = [1, 4], p = [1, 13], i = [1, 12], d = [1, 15], _ = [1, 16], m = [1, 20], l = [1, 19], D = [6, 7, 8], I = [1, 26], g = [1, 24], w = [1, 25], k = [6, 7, 11], G = [1, 31], N = [6, 7, 11, 24], B = [1, 6, 13, 16, 17, 20, 23], f = [1, 35], A = [1, 36], L = [1, 6, 7, 11, 13, 16, 17, 20, 23], U = [1, 38], T = {
8
8
  trace: /* @__PURE__ */ o(function() {
9
9
  }, "trace"),
10
10
  yy: {},
11
11
  symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
12
12
  terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
13
13
  productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
14
- performAction: /* @__PURE__ */ o(function(i, n, r, a, u, t, U) {
14
+ performAction: /* @__PURE__ */ o(function(s, n, r, a, u, t, M) {
15
15
  var c = t.length - 1;
16
16
  switch (u) {
17
17
  case 6:
@@ -71,23 +71,23 @@ var $ = (function() {
71
71
  break;
72
72
  }
73
73
  }, "anonymous"),
74
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: h }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: h }, { 6: p, 7: [1, 10], 9: 9, 12: 11, 13: s, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, e(D, [2, 3]), { 1: [2, 2] }, e(D, [2, 4]), e(D, [2, 5]), { 1: [2, 6], 6: p, 12: 21, 13: s, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, { 6: p, 9: 22, 12: 11, 13: s, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, { 6: I, 7: g, 10: 23, 11: w }, e(_, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: m, 23: l }), e(_, [2, 19]), e(_, [2, 21], { 15: 30, 24: G }), e(_, [2, 22]), e(_, [2, 23]), e(N, [2, 25]), e(N, [2, 26]), e(N, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: I, 7: g, 10: 34, 11: w }, { 1: [2, 7], 6: p, 12: 21, 13: s, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, e(V, [2, 14], { 7: f, 11: A }), e(L, [2, 8]), e(L, [2, 9]), e(L, [2, 10]), e(_, [2, 16], { 15: 37, 24: G }), e(_, [2, 17]), e(_, [2, 18]), e(_, [2, 20], { 24: M }), e(N, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, e(V, [2, 13], { 7: f, 11: A }), e(L, [2, 11]), e(L, [2, 12]), e(_, [2, 15], { 24: M }), e(N, [2, 30]), { 22: [1, 41] }, e(N, [2, 27]), e(N, [2, 29])],
74
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: h }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: h }, { 6: p, 7: [1, 10], 9: 9, 12: 11, 13: i, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, e(D, [2, 3]), { 1: [2, 2] }, e(D, [2, 4]), e(D, [2, 5]), { 1: [2, 6], 6: p, 12: 21, 13: i, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, { 6: p, 9: 22, 12: 11, 13: i, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, { 6: I, 7: g, 10: 23, 11: w }, e(k, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: m, 23: l }), e(k, [2, 19]), e(k, [2, 21], { 15: 30, 24: G }), e(k, [2, 22]), e(k, [2, 23]), e(N, [2, 25]), e(N, [2, 26]), e(N, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: I, 7: g, 10: 34, 11: w }, { 1: [2, 7], 6: p, 12: 21, 13: i, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, e(B, [2, 14], { 7: f, 11: A }), e(L, [2, 8]), e(L, [2, 9]), e(L, [2, 10]), e(k, [2, 16], { 15: 37, 24: G }), e(k, [2, 17]), e(k, [2, 18]), e(k, [2, 20], { 24: U }), e(N, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, e(B, [2, 13], { 7: f, 11: A }), e(L, [2, 11]), e(L, [2, 12]), e(k, [2, 15], { 24: U }), e(N, [2, 30]), { 22: [1, 41] }, e(N, [2, 27]), e(N, [2, 29])],
75
75
  defaultActions: { 2: [2, 1], 6: [2, 2] },
76
- parseError: /* @__PURE__ */ o(function(i, n) {
76
+ parseError: /* @__PURE__ */ o(function(s, n) {
77
77
  if (n.recoverable)
78
- this.trace(i);
78
+ this.trace(s);
79
79
  else {
80
- var r = new Error(i);
80
+ var r = new Error(s);
81
81
  throw r.hash = n, r;
82
82
  }
83
83
  }, "parseError"),
84
- parse: /* @__PURE__ */ o(function(i) {
85
- var n = this, r = [0], a = [], u = [null], t = [], U = this.table, c = "", W = 0, se = 0, ue = 2, re = 1, ge = t.slice.call(arguments, 1), b = Object.create(this.lexer), R = { yy: {} };
84
+ parse: /* @__PURE__ */ o(function(s) {
85
+ var n = this, r = [0], a = [], u = [null], t = [], M = this.table, c = "", W = 0, ie = 0, ue = 2, re = 1, ge = t.slice.call(arguments, 1), b = Object.create(this.lexer), R = { yy: {} };
86
86
  for (var J in this.yy)
87
87
  Object.prototype.hasOwnProperty.call(this.yy, J) && (R.yy[J] = this.yy[J]);
88
- b.setInput(i, R.yy), R.yy.lexer = b, R.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
89
- var q = b.yylloc;
90
- t.push(q);
88
+ b.setInput(s, R.yy), R.yy.lexer = b, R.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
89
+ var Q = b.yylloc;
90
+ t.push(Q);
91
91
  var de = b.options && b.options.ranges;
92
92
  typeof R.yy.parseError == "function" ? this.parseError = R.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
93
93
  function pe(S) {
@@ -99,27 +99,27 @@ var $ = (function() {
99
99
  return S = a.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = n.symbols_[S] || S), S;
100
100
  }
101
101
  o(ae, "lex");
102
- for (var E, P, x, Q, j = {}, z, C, oe, X; ; ) {
103
- if (P = r[r.length - 1], this.defaultActions[P] ? x = this.defaultActions[P] : ((E === null || typeof E > "u") && (E = ae()), x = U[P] && U[P][E]), typeof x > "u" || !x.length || !x[0]) {
102
+ for (var E, P, x, q, j = {}, z, C, oe, K; ; ) {
103
+ if (P = r[r.length - 1], this.defaultActions[P] ? x = this.defaultActions[P] : ((E === null || typeof E > "u") && (E = ae()), x = M[P] && M[P][E]), typeof x > "u" || !x.length || !x[0]) {
104
104
  var Z = "";
105
- X = [];
106
- for (z in U[P])
107
- this.terminals_[z] && z > ue && X.push("'" + this.terminals_[z] + "'");
105
+ K = [];
106
+ for (z in M[P])
107
+ this.terminals_[z] && z > ue && K.push("'" + this.terminals_[z] + "'");
108
108
  b.showPosition ? Z = "Parse error on line " + (W + 1) + `:
109
109
  ` + b.showPosition() + `
110
- Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "Parse error on line " + (W + 1) + ": Unexpected " + (E == re ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Z, {
110
+ Expecting ` + K.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "Parse error on line " + (W + 1) + ": Unexpected " + (E == re ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Z, {
111
111
  text: b.match,
112
112
  token: this.terminals_[E] || E,
113
113
  line: b.yylineno,
114
- loc: q,
115
- expected: X
114
+ loc: Q,
115
+ expected: K
116
116
  });
117
117
  }
118
118
  if (x[0] instanceof Array && x.length > 1)
119
119
  throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + E);
120
120
  switch (x[0]) {
121
121
  case 1:
122
- r.push(E), u.push(b.yytext), t.push(b.yylloc), r.push(x[1]), E = null, se = b.yyleng, c = b.yytext, W = b.yylineno, q = b.yylloc;
122
+ r.push(E), u.push(b.yytext), t.push(b.yylloc), r.push(x[1]), E = null, ie = b.yyleng, c = b.yytext, W = b.yylineno, Q = b.yylloc;
123
123
  break;
124
124
  case 2:
125
125
  if (C = this.productions_[x[1]][1], j.$ = u[u.length - C], j._$ = {
@@ -130,17 +130,17 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
130
130
  }, de && (j._$.range = [
131
131
  t[t.length - (C || 1)].range[0],
132
132
  t[t.length - 1].range[1]
133
- ]), Q = this.performAction.apply(j, [
133
+ ]), q = this.performAction.apply(j, [
134
134
  c,
135
- se,
135
+ ie,
136
136
  W,
137
137
  R.yy,
138
138
  x[1],
139
139
  u,
140
140
  t
141
- ].concat(ge)), typeof Q < "u")
142
- return Q;
143
- C && (r = r.slice(0, -1 * C * 2), u = u.slice(0, -1 * C), t = t.slice(0, -1 * C)), r.push(this.productions_[x[1]][0]), u.push(j.$), t.push(j._$), oe = U[r[r.length - 2]][r[r.length - 1]], r.push(oe);
141
+ ].concat(ge)), typeof q < "u")
142
+ return q;
143
+ C && (r = r.slice(0, -1 * C * 2), u = u.slice(0, -1 * C), t = t.slice(0, -1 * C)), r.push(this.productions_[x[1]][0]), u.push(j.$), t.push(j._$), oe = M[r[r.length - 2]][r[r.length - 1]], r.push(oe);
144
144
  break;
145
145
  case 3:
146
146
  return !0;
@@ -158,8 +158,8 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
158
158
  throw new Error(n);
159
159
  }, "parseError"),
160
160
  // resets the lexer, sets new input
161
- setInput: /* @__PURE__ */ o(function(i, n) {
162
- return this.yy = n || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
161
+ setInput: /* @__PURE__ */ o(function(s, n) {
162
+ return this.yy = n || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
163
163
  first_line: 1,
164
164
  first_column: 0,
165
165
  last_line: 1,
@@ -168,15 +168,15 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
168
168
  }, "setInput"),
169
169
  // consumes and returns one char from the input
170
170
  input: /* @__PURE__ */ o(function() {
171
- var i = this._input[0];
172
- this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
173
- var n = i.match(/(?:\r\n?|\n).*/g);
174
- return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
171
+ var s = this._input[0];
172
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
173
+ var n = s.match(/(?:\r\n?|\n).*/g);
174
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
175
175
  }, "input"),
176
176
  // unshifts one char (or a string) into the input
177
- unput: /* @__PURE__ */ o(function(i) {
178
- var n = i.length, r = i.split(/(?:\r\n?|\n)/g);
179
- this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
177
+ unput: /* @__PURE__ */ o(function(s) {
178
+ var n = s.length, r = s.split(/(?:\r\n?|\n)/g);
179
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
180
180
  var a = this.match.split(/(?:\r\n?|\n)/g);
181
181
  this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
182
182
  var u = this.yylloc.range;
@@ -205,27 +205,27 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
205
205
  return this;
206
206
  }, "reject"),
207
207
  // retain first n characters of the match
208
- less: /* @__PURE__ */ o(function(i) {
209
- this.unput(this.match.slice(i));
208
+ less: /* @__PURE__ */ o(function(s) {
209
+ this.unput(this.match.slice(s));
210
210
  }, "less"),
211
211
  // displays already matched input, i.e. for error messages
212
212
  pastInput: /* @__PURE__ */ o(function() {
213
- var i = this.matched.substr(0, this.matched.length - this.match.length);
214
- return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
213
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
214
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
215
215
  }, "pastInput"),
216
216
  // displays upcoming input, i.e. for error messages
217
217
  upcomingInput: /* @__PURE__ */ o(function() {
218
- var i = this.match;
219
- return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
218
+ var s = this.match;
219
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
220
220
  }, "upcomingInput"),
221
221
  // displays the character position where the lexing error occurred, i.e. for error messages
222
222
  showPosition: /* @__PURE__ */ o(function() {
223
- var i = this.pastInput(), n = new Array(i.length + 1).join("-");
224
- return i + this.upcomingInput() + `
223
+ var s = this.pastInput(), n = new Array(s.length + 1).join("-");
224
+ return s + this.upcomingInput() + `
225
225
  ` + n + "^";
226
226
  }, "showPosition"),
227
227
  // test the lexed token: return FALSE when not a match, otherwise return token
228
- test_match: /* @__PURE__ */ o(function(i, n) {
228
+ test_match: /* @__PURE__ */ o(function(s, n) {
229
229
  var r, a, u;
230
230
  if (this.options.backtrack_lexer && (u = {
231
231
  yylineno: this.yylineno,
@@ -246,12 +246,12 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
246
246
  yy: this.yy,
247
247
  conditionStack: this.conditionStack.slice(0),
248
248
  done: this.done
249
- }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), a = i[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
249
+ }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
250
250
  first_line: this.yylloc.last_line,
251
251
  last_line: this.yylineno + 1,
252
252
  first_column: this.yylloc.last_column,
253
- last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
254
- }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
253
+ last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
254
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
255
255
  return r;
256
256
  if (this._backtrack) {
257
257
  for (var t in u)
@@ -265,13 +265,13 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
265
265
  if (this.done)
266
266
  return this.EOF;
267
267
  this._input || (this.done = !0);
268
- var i, n, r, a;
268
+ var s, n, r, a;
269
269
  this._more || (this.yytext = "", this.match = "");
270
270
  for (var u = this._currentRules(), t = 0; t < u.length; t++)
271
271
  if (r = this._input.match(this.rules[u[t]]), r && (!n || r[0].length > n[0].length)) {
272
272
  if (n = r, a = t, this.options.backtrack_lexer) {
273
- if (i = this.test_match(r, u[t]), i !== !1)
274
- return i;
273
+ if (s = this.test_match(r, u[t]), s !== !1)
274
+ return s;
275
275
  if (this._backtrack) {
276
276
  n = !1;
277
277
  continue;
@@ -280,7 +280,7 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
280
280
  } else if (!this.options.flex)
281
281
  break;
282
282
  }
283
- return n ? (i = this.test_match(n, u[a]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
283
+ return n ? (s = this.test_match(n, u[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
284
284
  ` + this.showPosition(), {
285
285
  text: "",
286
286
  token: null,
@@ -424,45 +424,45 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "
424
424
  return O;
425
425
  })();
426
426
  T.lexer = Y;
427
- function B() {
427
+ function V() {
428
428
  this.yy = {};
429
429
  }
430
- return o(B, "Parser"), B.prototype = T, T.Parser = B, new B();
430
+ return o(V, "Parser"), V.prototype = T, T.Parser = V, new V();
431
431
  })();
432
432
  $.parser = $;
433
- var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
434
- v = [], ne = [], ee = 0, ie = {};
433
+ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
434
+ v = [], ne = [], ee = 0, se = {};
435
435
  }, "clear"), De = /* @__PURE__ */ o((e) => {
436
436
  if (v.length === 0)
437
437
  return null;
438
438
  const h = v[0].level;
439
439
  let p = null;
440
- for (let s = v.length - 1; s >= 0; s--)
441
- if (v[s].level === h && !p && (p = v[s]), v[s].level < h)
442
- throw new Error('Items without section detected, found section ("' + v[s].label + '")');
440
+ for (let i = v.length - 1; i >= 0; i--)
441
+ if (v[i].level === h && !p && (p = v[i]), v[i].level < h)
442
+ throw new Error('Items without section detected, found section ("' + v[i].label + '")');
443
443
  return e === p?.level ? null : p;
444
444
  }, "getSection"), he = /* @__PURE__ */ o(function() {
445
445
  return ne;
446
446
  }, "getSections"), Le = /* @__PURE__ */ o(function() {
447
- const e = [], h = [], p = he(), s = H();
447
+ const e = [], h = [], p = he(), i = H();
448
448
  for (const d of p) {
449
- const k = {
449
+ const _ = {
450
450
  id: d.id,
451
- label: F(d.label ?? "", s),
451
+ label: F(d.label ?? "", i),
452
452
  labelType: "markdown",
453
453
  isGroup: !0,
454
454
  ticket: d.ticket,
455
455
  shape: "kanbanSection",
456
456
  level: d.level,
457
- look: s.look
457
+ look: i.look
458
458
  };
459
- h.push(k);
459
+ h.push(_);
460
460
  const m = v.filter((l) => l.parentId === d.id);
461
461
  for (const l of m) {
462
462
  const D = {
463
463
  id: l.id,
464
464
  parentId: d.id,
465
- label: F(l.label ?? "", s),
465
+ label: F(l.label ?? "", i),
466
466
  labelType: "markdown",
467
467
  isGroup: !1,
468
468
  ticket: l?.ticket,
@@ -479,20 +479,20 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
479
479
  }
480
480
  }
481
481
  return { nodes: h, edges: e, other: {}, config: H() };
482
- }, "getData"), Oe = /* @__PURE__ */ o((e, h, p, s, d) => {
483
- const k = H();
484
- let m = k.mindmap?.padding ?? K.mindmap.padding;
485
- switch (s) {
482
+ }, "getData"), Oe = /* @__PURE__ */ o((e, h, p, i, d) => {
483
+ const _ = H();
484
+ let m = _.mindmap?.padding ?? X.mindmap.padding;
485
+ switch (i) {
486
486
  case y.ROUNDED_RECT:
487
487
  case y.RECT:
488
488
  case y.HEXAGON:
489
489
  m *= 2;
490
490
  }
491
491
  const l = {
492
- id: F(h, k) || "kbn" + ee++,
492
+ id: F(h, _) || "kbn" + ee++,
493
493
  level: e,
494
- label: F(p, k),
495
- width: k.mindmap?.maxNodeWidth ?? K.mindmap.maxNodeWidth,
494
+ label: F(p, _),
495
+ width: _.mindmap?.maxNodeWidth ?? X.mindmap.maxNodeWidth,
496
496
  padding: m,
497
497
  isGroup: !1
498
498
  };
@@ -503,7 +503,7 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
503
503
  ` : I = `{
504
504
  ` + d + `
505
505
  }`;
506
- const g = _e(I, { schema: Ee });
506
+ const g = ke(I, { schema: Ee });
507
507
  if (g.shape && (g.shape !== g.shape.toLowerCase() || g.shape.includes("_")))
508
508
  throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);
509
509
  g?.shape && g.shape === "kanbanItem" && (l.shape = g?.shape), g?.label && (l.label = g?.label), g?.icon && (l.icon = g?.icon.toString()), g?.assigned && (l.assigned = g?.assigned.toString()), g?.ticket && (l.ticket = g?.ticket.toString()), g?.priority && (l.priority = g?.priority);
@@ -537,7 +537,7 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
537
537
  return y.DEFAULT;
538
538
  }
539
539
  }, "getType"), Ce = /* @__PURE__ */ o((e, h) => {
540
- ie[e] = h;
540
+ se[e] = h;
541
541
  }, "setElementForId"), we = /* @__PURE__ */ o((e) => {
542
542
  if (!e)
543
543
  return;
@@ -563,7 +563,7 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
563
563
  default:
564
564
  return "no-border";
565
565
  }
566
- }, "type2Str"), Te = /* @__PURE__ */ o(() => te, "getLogger"), Re = /* @__PURE__ */ o((e) => ie[e], "getElementById"), Pe = {
566
+ }, "type2Str"), Te = /* @__PURE__ */ o(() => te, "getLogger"), Re = /* @__PURE__ */ o((e) => se[e], "getElementById"), Pe = {
567
567
  clear: ve,
568
568
  addNode: Oe,
569
569
  getSections: he,
@@ -575,84 +575,84 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
575
575
  type2Str: Ae,
576
576
  getLogger: Te,
577
577
  getElementById: Re
578
- }, Ve = Pe, Be = /* @__PURE__ */ o(async (e, h, p, s) => {
578
+ }, Be = Pe, Ve = /* @__PURE__ */ o(async (e, h, p, i) => {
579
579
  te.debug(`Rendering kanban diagram
580
580
  ` + e);
581
- const k = s.db.getData(), m = H();
581
+ const _ = i.db.getData(), m = H();
582
582
  m.htmlLabels = !1;
583
583
  const l = fe(h);
584
- for (const f of k.nodes)
584
+ for (const f of _.nodes)
585
585
  f.domId = `${h}-${f.id}`;
586
586
  const D = l.append("g");
587
587
  D.attr("class", "sections");
588
588
  const I = l.append("g");
589
589
  I.attr("class", "items");
590
- const g = k.nodes.filter(
590
+ const g = _.nodes.filter(
591
591
  // TODO: TypeScript 5.5 will infer this predicate automatically
592
592
  (f) => f.isGroup
593
593
  );
594
594
  let w = 0;
595
- const _ = 10, G = [];
595
+ const k = 10, G = [];
596
596
  let N = 25;
597
597
  for (const f of g) {
598
598
  const A = m?.kanban?.sectionWidth || 200;
599
- w = w + 1, f.x = A * w + (w - 1) * _ / 2, f.width = A, f.y = 0, f.height = A * 3, f.rx = 5, f.ry = 5, f.cssClasses = f.cssClasses + " section-" + w;
599
+ w = w + 1, f.x = A * w + (w - 1) * k / 2, f.width = A, f.y = 0, f.height = A * 3, f.rx = 5, f.ry = 5, f.cssClasses = f.cssClasses + " section-" + w;
600
600
  const L = await ye(D, f);
601
601
  N = Math.max(N, L?.labelBBox?.height), G.push(L);
602
602
  }
603
- let V = 0;
603
+ let B = 0;
604
604
  for (const f of g) {
605
- const A = G[V];
606
- V = V + 1;
607
- const L = m?.kanban?.sectionWidth || 200, M = -L * 3 / 2 + N;
608
- let T = M;
609
- const Y = k.nodes.filter((i) => i.parentId === f.id);
610
- for (const i of Y) {
611
- if (i.isGroup)
605
+ const A = G[B];
606
+ B = B + 1;
607
+ const L = m?.kanban?.sectionWidth || 200, U = -L * 3 / 2 + N;
608
+ let T = U;
609
+ const Y = _.nodes.filter((s) => s.parentId === f.id);
610
+ for (const s of Y) {
611
+ if (s.isGroup)
612
612
  throw new Error("Groups within groups are not allowed in Kanban diagrams");
613
- i.x = f.x, i.width = L - 1.5 * _;
614
- const r = (await be(I, i, { config: m })).node().getBBox();
615
- i.y = T + r.height / 2, await me(i), T = i.y + r.height / 2 + _ / 2;
613
+ s.x = f.x, s.width = L - 1.5 * k;
614
+ const r = (await be(I, s, { config: m })).node().getBBox();
615
+ s.y = T + r.height / 2, await me(s), T = s.y + r.height / 2 + k / 2;
616
616
  }
617
- const B = A.cluster.select("rect"), O = Math.max(T - M + 3 * _, 50) + (N - 25);
618
- B.attr("height", O);
617
+ const V = A.cluster.select("rect"), O = Math.max(T - U + 3 * k, 50) + (N - 25);
618
+ V.attr("height", O);
619
619
  }
620
- ke(
620
+ _e(
621
621
  void 0,
622
622
  l,
623
- m.mindmap?.padding ?? K.kanban.padding,
624
- m.mindmap?.useMaxWidth ?? K.kanban.useMaxWidth
623
+ m.mindmap?.padding ?? X.kanban.padding,
624
+ m.mindmap?.useMaxWidth ?? X.kanban.useMaxWidth
625
625
  );
626
626
  }, "draw"), je = {
627
- draw: Be
627
+ draw: Ve
628
628
  }, Fe = /* @__PURE__ */ o((e) => {
629
629
  let h = "";
630
- for (let s = 0; s < e.THEME_COLOR_LIMIT; s++)
631
- e["lineColor" + s] = e["lineColor" + s] || e["cScaleInv" + s], Se(e["lineColor" + s]) ? e["lineColor" + s] = ce(e["lineColor" + s], 20) : e["lineColor" + s] = le(e["lineColor" + s], 20);
632
- const p = /* @__PURE__ */ o((s, d) => e.darkMode ? le(s, d) : ce(s, d), "adjuster");
633
- for (let s = 0; s < e.THEME_COLOR_LIMIT; s++) {
634
- const d = "" + (17 - 3 * s);
630
+ for (let i = 0; i < e.THEME_COLOR_LIMIT; i++)
631
+ e["lineColor" + i] = e["lineColor" + i] || e["cScaleInv" + i], Se(e["lineColor" + i]) ? e["lineColor" + i] = ce(e["lineColor" + i], 20) : e["lineColor" + i] = le(e["lineColor" + i], 20);
632
+ const p = /* @__PURE__ */ o((i, d) => e.darkMode ? le(i, d) : ce(i, d), "adjuster");
633
+ for (let i = 0; i < e.THEME_COLOR_LIMIT; i++) {
634
+ const d = "" + (17 - 3 * i);
635
635
  h += `
636
- .section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path {
637
- fill: ${p(e["cScale" + s], 10)};
638
- stroke: ${p(e["cScale" + s], 10)};
636
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
637
+ fill: ${p(e["cScale" + i], 10)};
638
+ stroke: ${p(e["cScale" + i], 10)};
639
639
 
640
640
  }
641
- .section-${s - 1} text {
642
- fill: ${e["cScaleLabel" + s]};
641
+ .section-${i - 1} text {
642
+ fill: ${e["cScaleLabel" + i]};
643
643
  }
644
- .node-icon-${s - 1} {
644
+ .node-icon-${i - 1} {
645
645
  font-size: 40px;
646
- color: ${e["cScaleLabel" + s]};
646
+ color: ${e["cScaleLabel" + i]};
647
647
  }
648
- .section-edge-${s - 1}{
649
- stroke: ${e["cScale" + s]};
648
+ .section-edge-${i - 1}{
649
+ stroke: ${e["cScale" + i]};
650
650
  }
651
- .edge-depth-${s - 1}{
651
+ .edge-depth-${i - 1}{
652
652
  stroke-width: ${d};
653
653
  }
654
- .section-${s - 1} line {
655
- stroke: ${e["cScaleInv" + s]} ;
654
+ .section-${i - 1} line {
655
+ stroke: ${e["cScaleInv" + i]} ;
656
656
  stroke-width: 3;
657
657
  }
658
658
 
@@ -713,11 +713,11 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
713
713
  text-align: center;
714
714
  }
715
715
  ${Ne()}
716
- `, "getStyles"), Me = Ge, We = {
717
- db: Ve,
716
+ `, "getStyles"), Ue = Ge, We = {
717
+ db: Be,
718
718
  renderer: je,
719
719
  parser: xe,
720
- styles: Me
720
+ styles: Ue
721
721
  };
722
722
  export {
723
723
  We as diagram
@@ -1 +1 @@
1
- "use strict";const m=require("./extractHeadings-DgefF9l1.cjs"),j=require("./init-CHZsXQcr.cjs"),g=require("./defaultLocale-C4wbwF1n.cjs");function p(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function D(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function d(n){let r,t,e;n.length!==2?(r=p,t=(a,f)=>p(n(a),f),e=(a,f)=>n(a)-f):(r=n===p||n===D?n:F,t=n,e=n);function u(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<0?i=l+1:s=l}while(i<s)}return i}function c(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<=0?i=l+1:s=l}while(i<s)}return i}function o(a,f,i=0,s=a.length){const l=u(a,f,i,s-1);return l>i&&e(a[l-1],f)>-e(a[l],f)?l-1:l}return{left:u,center:o,right:c}}function F(){return 0}function $(n){return n===null?NaN:+n}const z=d(p),B=z.right;d($).center;const I=Math.sqrt(50),P=Math.sqrt(10),V=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),c=e/Math.pow(10,u),o=c>=I?10:c>=P?5:c>=V?2:1;let a,f,i;return u<0?(i=Math.pow(10,-u)/o,a=Math.round(n*i),f=Math.round(r*i),a/i<n&&++a,f/i>r&&--f,i=-i):(i=Math.pow(10,u)*o,a=Math.round(n/i),f=Math.round(r/i),a*i<n&&++a,f*i>r&&--f),f<a&&.5<=t&&t<2?v(n,r,t*2):[a,f,i]}function H(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,c,o]=e?v(r,n,t):v(n,r,t);if(!(c>=u))return[];const a=c-u+1,f=new Array(a);if(e)if(o<0)for(let i=0;i<a;++i)f[i]=(c-i)/-o;else for(let i=0;i<a;++i)f[i]=(c-i)*o;else if(o<0)for(let i=0;i<a;++i)f[i]=(u+i)/-o;else for(let i=0;i<a;++i)f[i]=(u+i)*o;return f}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function A(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function L(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(c){for(u=0;u<t;++u)e[u]=n[u]*(1-c)+r[u]*c;return e}}function O(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function T(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),c=new Array(t),o;for(o=0;o<e;++o)u[o]=w(n[o],r[o]);for(;o<t;++o)c[o]=r[o];return function(a){for(o=0;o<e;++o)c[o]=u[o](a);return c}}function C(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function E(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=w(n[u],r[u]):e[u]=r[u];return function(c){for(u in t)e[u]=t[u](c);return e}}function w(n,r){var t=typeof r,e;return r==null||t==="boolean"?m.constant$1(r):(t==="number"?m.interpolateNumber:t==="string"?(e=m.color(r))?(r=e,m.interpolateRgb):m.interpolateString:r instanceof m.color?m.interpolateRgb:r instanceof Date?C:O(r)?L:Array.isArray(r)?T:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?E:m.interpolateNumber)(n,r)}function G(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function J(n){return Math.max(0,-g.exponent(Math.abs(n)))}function K(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g.exponent(r)/3)))*3-g.exponent(Math.abs(n)))}function Q(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g.exponent(r)-g.exponent(n))+1}function U(n){return function(){return n}}function W(n){return+n}var k=[0,1];function M(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:U(isNaN(r)?NaN:.5)}function X(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Y(n,r,t){var e=n[0],u=n[1],c=r[0],o=r[1];return u<e?(e=N(u,e),c=t(o,c)):(e=N(e,u),c=t(c,o)),function(a){return c(e(a))}}function Z(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),c=new Array(e),o=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++o<e;)u[o]=N(n[o],n[o+1]),c[o]=t(r[o],r[o+1]);return function(a){var f=B(n,a,1,e)-1;return c[f](u[f](a))}}function R(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function _(){var n=k,r=k,t=w,e,u,c,o=M,a,f,i;function s(){var h=Math.min(n.length,r.length);return o!==M&&(o=X(n[0],n[h-1])),a=h>2?Z:Y,f=i=null,l}function l(h){return h==null||isNaN(h=+h)?c:(f||(f=a(n.map(e),r,t)))(e(o(h)))}return l.invert=function(h){return o(u((i||(i=a(r,n.map(e),m.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,W),s()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),s()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),t=G,s()},l.clamp=function(h){return arguments.length?(o=h?!0:M,s()):o!==M},l.interpolate=function(h){return arguments.length?(t=h,s()):t},l.unknown=function(h){return arguments.length?(c=h,l):c},function(h,x){return e=h,u=x,s()}}function q(){return _()(M,M)}function b(n,r,t,e){var u=A(n,r,t),c;switch(e=g.formatSpecifier(e??",f"),e.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(c=K(u,o))&&(e.precision=c),g.formatPrefix(e,o)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(c=Q(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=c-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(c=J(u))&&(e.precision=c-(e.type==="%")*2);break}}return g.format(e)}function nn(n){var r=n.domain;return n.ticks=function(t){var e=r();return H(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return b(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,c=e.length-1,o=e[u],a=e[c],f,i,s=10;for(a<o&&(i=o,o=a,a=i,i=u,u=c,c=i);s-- >0;){if(i=y(o,a,t),i===f)return e[u]=o,e[c]=a,r(e);if(i>0)o=Math.floor(o/i)*i,a=Math.ceil(a/i)*i;else if(i<0)o=Math.ceil(o*i)/i,a=Math.floor(a*i)/i;else break;f=i}return n},n}function S(){var n=q();return n.copy=function(){return R(n,S())},j.initRange.apply(n,arguments),nn(n)}exports.bisector=d;exports.continuous=q;exports.copy=R;exports.linear=S;exports.tickStep=A;
1
+ "use strict";const m=require("./extractHeadings-DRUBnhbi.cjs"),j=require("./init-CHZsXQcr.cjs"),g=require("./defaultLocale-C4wbwF1n.cjs");function p(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function D(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function d(n){let r,t,e;n.length!==2?(r=p,t=(a,f)=>p(n(a),f),e=(a,f)=>n(a)-f):(r=n===p||n===D?n:F,t=n,e=n);function u(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<0?i=l+1:s=l}while(i<s)}return i}function c(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<=0?i=l+1:s=l}while(i<s)}return i}function o(a,f,i=0,s=a.length){const l=u(a,f,i,s-1);return l>i&&e(a[l-1],f)>-e(a[l],f)?l-1:l}return{left:u,center:o,right:c}}function F(){return 0}function $(n){return n===null?NaN:+n}const z=d(p),B=z.right;d($).center;const I=Math.sqrt(50),P=Math.sqrt(10),V=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),c=e/Math.pow(10,u),o=c>=I?10:c>=P?5:c>=V?2:1;let a,f,i;return u<0?(i=Math.pow(10,-u)/o,a=Math.round(n*i),f=Math.round(r*i),a/i<n&&++a,f/i>r&&--f,i=-i):(i=Math.pow(10,u)*o,a=Math.round(n/i),f=Math.round(r/i),a*i<n&&++a,f*i>r&&--f),f<a&&.5<=t&&t<2?v(n,r,t*2):[a,f,i]}function H(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,c,o]=e?v(r,n,t):v(n,r,t);if(!(c>=u))return[];const a=c-u+1,f=new Array(a);if(e)if(o<0)for(let i=0;i<a;++i)f[i]=(c-i)/-o;else for(let i=0;i<a;++i)f[i]=(c-i)*o;else if(o<0)for(let i=0;i<a;++i)f[i]=(u+i)/-o;else for(let i=0;i<a;++i)f[i]=(u+i)*o;return f}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function A(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function L(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(c){for(u=0;u<t;++u)e[u]=n[u]*(1-c)+r[u]*c;return e}}function O(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function T(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),c=new Array(t),o;for(o=0;o<e;++o)u[o]=w(n[o],r[o]);for(;o<t;++o)c[o]=r[o];return function(a){for(o=0;o<e;++o)c[o]=u[o](a);return c}}function C(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function E(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=w(n[u],r[u]):e[u]=r[u];return function(c){for(u in t)e[u]=t[u](c);return e}}function w(n,r){var t=typeof r,e;return r==null||t==="boolean"?m.constant$1(r):(t==="number"?m.interpolateNumber:t==="string"?(e=m.color(r))?(r=e,m.interpolateRgb):m.interpolateString:r instanceof m.color?m.interpolateRgb:r instanceof Date?C:O(r)?L:Array.isArray(r)?T:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?E:m.interpolateNumber)(n,r)}function G(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function J(n){return Math.max(0,-g.exponent(Math.abs(n)))}function K(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g.exponent(r)/3)))*3-g.exponent(Math.abs(n)))}function Q(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g.exponent(r)-g.exponent(n))+1}function U(n){return function(){return n}}function W(n){return+n}var k=[0,1];function M(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:U(isNaN(r)?NaN:.5)}function X(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Y(n,r,t){var e=n[0],u=n[1],c=r[0],o=r[1];return u<e?(e=N(u,e),c=t(o,c)):(e=N(e,u),c=t(c,o)),function(a){return c(e(a))}}function Z(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),c=new Array(e),o=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++o<e;)u[o]=N(n[o],n[o+1]),c[o]=t(r[o],r[o+1]);return function(a){var f=B(n,a,1,e)-1;return c[f](u[f](a))}}function R(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function _(){var n=k,r=k,t=w,e,u,c,o=M,a,f,i;function s(){var h=Math.min(n.length,r.length);return o!==M&&(o=X(n[0],n[h-1])),a=h>2?Z:Y,f=i=null,l}function l(h){return h==null||isNaN(h=+h)?c:(f||(f=a(n.map(e),r,t)))(e(o(h)))}return l.invert=function(h){return o(u((i||(i=a(r,n.map(e),m.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,W),s()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),s()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),t=G,s()},l.clamp=function(h){return arguments.length?(o=h?!0:M,s()):o!==M},l.interpolate=function(h){return arguments.length?(t=h,s()):t},l.unknown=function(h){return arguments.length?(c=h,l):c},function(h,x){return e=h,u=x,s()}}function q(){return _()(M,M)}function b(n,r,t,e){var u=A(n,r,t),c;switch(e=g.formatSpecifier(e??",f"),e.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(c=K(u,o))&&(e.precision=c),g.formatPrefix(e,o)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(c=Q(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=c-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(c=J(u))&&(e.precision=c-(e.type==="%")*2);break}}return g.format(e)}function nn(n){var r=n.domain;return n.ticks=function(t){var e=r();return H(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return b(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,c=e.length-1,o=e[u],a=e[c],f,i,s=10;for(a<o&&(i=o,o=a,a=i,i=u,u=c,c=i);s-- >0;){if(i=y(o,a,t),i===f)return e[u]=o,e[c]=a,r(e);if(i>0)o=Math.floor(o/i)*i,a=Math.ceil(a/i)*i;else if(i<0)o=Math.ceil(o*i)/i,a=Math.floor(a*i)/i;else break;f=i}return n},n}function S(){var n=q();return n.copy=function(){return R(n,S())},j.initRange.apply(n,arguments),nn(n)}exports.bisector=d;exports.continuous=q;exports.copy=R;exports.linear=S;exports.tickStep=A;
@@ -1,7 +1,7 @@
1
- import { bM as j, bN as p, bO as w, bP as k, bQ as q } from "./extractHeadings-B2pUyEPa.js";
1
+ import { bN as j, bO as p, bP as w, bQ as k, bR as q } from "./extractHeadings-CdLPwHlC.js";
2
2
  import { i as D } from "./init-DjUOC4st.js";
3
- import { e as M, f as F, a as P, b as z } from "./defaultLocale-BgPVtth8.js";
4
- function g(n, r) {
3
+ import { e as g, f as F, a as P, b as z } from "./defaultLocale-BgPVtth8.js";
4
+ function M(n, r) {
5
5
  return n == null || r == null ? NaN : n < r ? -1 : n > r ? 1 : n >= r ? 0 : NaN;
6
6
  }
7
7
  function B(n, r) {
@@ -9,7 +9,7 @@ function B(n, r) {
9
9
  }
10
10
  function R(n) {
11
11
  let r, t, e;
12
- n.length !== 2 ? (r = g, t = (o, c) => g(n(o), c), e = (o, c) => n(o) - c) : (r = n === g || n === B ? n : I, t = n, e = n);
12
+ n.length !== 2 ? (r = M, t = (o, c) => M(n(o), c), e = (o, c) => n(o) - c) : (r = n === M || n === B ? n : I, t = n, e = n);
13
13
  function u(o, c, i = 0, h = o.length) {
14
14
  if (i < h) {
15
15
  if (r(c, c) !== 0) return h;
@@ -42,7 +42,7 @@ function I() {
42
42
  function O(n) {
43
43
  return n === null ? NaN : +n;
44
44
  }
45
- const V = R(g), $ = V.right;
45
+ const V = R(M), $ = V.right;
46
46
  R(O).center;
47
47
  const x = Math.sqrt(50), Q = Math.sqrt(10), T = Math.sqrt(2);
48
48
  function v(n, r, t) {
@@ -117,13 +117,13 @@ function U(n, r) {
117
117
  };
118
118
  }
119
119
  function W(n) {
120
- return Math.max(0, -M(Math.abs(n)));
120
+ return Math.max(0, -g(Math.abs(n)));
121
121
  }
122
122
  function X(n, r) {
123
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(M(r) / 3))) * 3 - M(Math.abs(n)));
123
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(g(r) / 3))) * 3 - g(Math.abs(n)));
124
124
  }
125
125
  function Y(n, r) {
126
- return n = Math.abs(n), r = Math.abs(r) - n, Math.max(0, M(r) - M(n)) + 1;
126
+ return n = Math.abs(n), r = Math.abs(r) - n, Math.max(0, g(r) - g(n)) + 1;
127
127
  }
128
128
  function Z(n) {
129
129
  return function() {
@@ -0,0 +1,25 @@
1
+ import { LookupAddress, LookupOptions } from "node:dns";
2
+ import { BlockList } from "node:net";
3
+ import { LinkCardSkipReason } from "../embeds/linkCards.ts";
4
+ export declare const PRIVATE_ADDRESSES: BlockList;
5
+ export declare const isPrivateIpAddress: (address: string) => boolean;
6
+ export declare const PRIVATE_ADDRESS_ERROR_CODE = "ERR_LINK_CARD_PRIVATE_ADDRESS";
7
+ export declare const LINK_CARD_DNS_LIMITS: Readonly<{
8
+ timeoutMs: 1000;
9
+ tries: 2;
10
+ }>;
11
+ type LookupCallback = (error: NodeJS.ErrnoException | null, address: string | LookupAddress[], family?: number) => void;
12
+ export declare const privateAddressGuardedLookup: (hostname: string, options: LookupOptions, callback: LookupCallback) => void;
13
+ export type FetchScope = "public" | "unguarded-test";
14
+ export type UrlRefusalReason = Extract<LinkCardSkipReason, "private-network" | "forbidden-url">;
15
+ export type ExternalUrlCheck = {
16
+ readonly ok: true;
17
+ readonly href: string;
18
+ } | {
19
+ readonly ok: false;
20
+ readonly reason: UrlRefusalReason;
21
+ readonly detail: string;
22
+ };
23
+ export declare const externalUrlCheckOf: (url: string, scope: FetchScope) => ExternalUrlCheck;
24
+ export declare const loggableUrlOf: (url: URL | string) => string;
25
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare const htmlEncodingOf: (bytes: Uint8Array, contentType: string) => string;
2
+ export interface HtmlDecoder {
3
+ readonly write: (bytes: Uint8Array) => string;
4
+ readonly end: () => string;
5
+ }
6
+ export declare const createHtmlDecoder: (contentType: string) => HtmlDecoder;
@@ -0,0 +1,7 @@
1
+ import { FetchScope } from "./addressGuard.server.ts";
2
+ export interface LinkCardHandlerOptions {
3
+ readonly authorize: (request: Request) => boolean | Promise<boolean>;
4
+ }
5
+ export type LinkCardHandler = (request: Request) => Promise<Response>;
6
+ export declare const createScopedLinkCardHandler: (options: LinkCardHandlerOptions, scope: FetchScope) => LinkCardHandler;
7
+ export declare const createLinkCardHandler: (options: LinkCardHandlerOptions) => LinkCardHandler;
@@ -0,0 +1,5 @@
1
+ export interface MetadataCacheSettings<T> {
2
+ readonly ttlMsOf: (value: T) => number;
3
+ readonly maxEntries: number;
4
+ }
5
+ export declare const createMetadataCache: <T>(load: (key: string) => Promise<T>, settings: MetadataCacheSettings<T>, now: () => number) => ((key: string) => Promise<T>);