@blueking/ai-blueking 2.0.0-dev.1 → 2.0.0-dev.3

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 (183) hide show
  1. package/dist/vue2/_baseFor-DAbrc8SN.js +309 -0
  2. package/dist/vue2/arc-BqlAOiZb.js +78 -0
  3. package/dist/vue2/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
  4. package/dist/vue2/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
  5. package/dist/vue2/array-TB8zN_HT.js +5 -0
  6. package/dist/vue2/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
  7. package/dist/vue2/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
  8. package/dist/vue2/channel-edTl5mpN.js +3 -0
  9. package/dist/vue2/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
  10. package/dist/vue2/chunk-55IACEB6-CTzuTcHv.js +6 -0
  11. package/dist/vue2/chunk-76Q3JFCE-BrJX66ha.js +19 -0
  12. package/dist/vue2/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
  13. package/dist/vue2/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
  14. package/dist/vue2/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
  15. package/dist/vue2/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
  16. package/dist/vue2/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
  17. package/dist/vue2/chunk-DNh5sLlG.js +18 -0
  18. package/dist/vue2/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
  19. package/dist/vue2/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
  20. package/dist/vue2/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
  21. package/dist/vue2/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
  22. package/dist/vue2/chunk-HN2XXSSU-DueSY85P.js +74 -0
  23. package/dist/vue2/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
  24. package/dist/vue2/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
  25. package/dist/vue2/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
  26. package/dist/vue2/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
  27. package/dist/vue2/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
  28. package/dist/vue2/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
  29. package/dist/vue2/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
  30. package/dist/vue2/chunk-QN33PNHL-DsC-XeM9.js +23 -0
  31. package/dist/vue2/chunk-QXUST7PY-DxFRymyS.js +486 -0
  32. package/dist/vue2/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
  33. package/dist/vue2/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
  34. package/dist/vue2/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
  35. package/dist/vue2/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
  36. package/dist/vue2/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
  37. package/dist/vue2/chunk-XAJISQIX-XsDvU4jW.js +135 -0
  38. package/dist/vue2/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
  39. package/dist/vue2/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
  40. package/dist/vue2/clone-Bbr3WSpg.js +7 -0
  41. package/dist/vue2/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
  42. package/dist/vue2/cytoscape.esm-nrcriBSO.js +18100 -0
  43. package/dist/vue2/dagre-6UL2VRFP-CTl_U96l.js +298 -0
  44. package/dist/vue2/dagre-DUjlMe_B.js +1496 -0
  45. package/dist/vue2/defaultLocale-BLATqOV5.js +177 -0
  46. package/dist/vue2/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
  47. package/dist/vue2/diagram-QEK2KX5R-CAeywSxy.js +226 -0
  48. package/dist/vue2/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
  49. package/dist/vue2/dist-xWJvauxf.js +49 -0
  50. package/dist/vue2/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
  51. package/dist/vue2/flatten-CfPhNHUL.js +34 -0
  52. package/dist/vue2/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
  53. package/dist/vue2/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
  54. package/dist/vue2/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
  55. package/dist/vue2/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
  56. package/dist/vue2/graphlib-KDKEjVHX.js +344 -0
  57. package/dist/vue2/index.es.min.js +26703 -786
  58. package/dist/vue2/index.umd.min.js +2796 -9
  59. package/dist/vue2/info-NVLQJR56-DBsOnIKy.js +7 -0
  60. package/dist/vue2/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
  61. package/dist/vue2/init-hAkIK9Bd.js +13 -0
  62. package/dist/vue2/isEmpty-z27q3o-D.js +32 -0
  63. package/dist/vue2/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
  64. package/dist/vue2/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
  65. package/dist/vue2/katex-CEAw-xiA.js +22097 -0
  66. package/dist/vue2/katex-D8o5-F7C.js +2 -0
  67. package/dist/vue2/line-wvheYP7S.js +30 -0
  68. package/dist/vue2/linear-STTevhnH.js +250 -0
  69. package/dist/vue2/math-DF_v6dOl.js +8 -0
  70. package/dist/vue2/mermaid-parser.core-VAa8Vi1g.js +48 -0
  71. package/dist/vue2/mermaid.core-vqI6KB9k.js +895 -0
  72. package/dist/vue2/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
  73. package/dist/vue2/ordinal-DOM6Fa9P.js +61 -0
  74. package/dist/vue2/packet-BFZMPI3H-CG049KmZ.js +7 -0
  75. package/dist/vue2/path-CW_-_Ti7.js +79 -0
  76. package/dist/vue2/pie-7BOR55EZ-BHq0KcLP.js +7 -0
  77. package/dist/vue2/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
  78. package/dist/vue2/purify.es-Cm_tUMzZ.js +547 -0
  79. package/dist/vue2/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
  80. package/dist/vue2/radar-NHE76QYJ-CUoVtrAx.js +7 -0
  81. package/dist/vue2/reduce-BFKSG9Rs.js +451 -0
  82. package/dist/vue2/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
  83. package/dist/vue2/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
  84. package/dist/vue2/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
  85. package/dist/vue2/src-VlKYSsxJ.js +1975 -0
  86. package/dist/vue2/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
  87. package/dist/vue2/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
  88. package/dist/vue2/style.css +1 -1
  89. package/dist/vue2/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
  90. package/dist/vue2/treemap-KMMF4GRG--FdijCcy.js +7 -0
  91. package/dist/vue2/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
  92. package/dist/vue3/_baseFor-DAbrc8SN.js +309 -0
  93. package/dist/vue3/arc-BqlAOiZb.js +78 -0
  94. package/dist/vue3/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
  95. package/dist/vue3/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
  96. package/dist/vue3/array-TB8zN_HT.js +5 -0
  97. package/dist/vue3/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
  98. package/dist/vue3/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
  99. package/dist/vue3/channel-edTl5mpN.js +3 -0
  100. package/dist/vue3/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
  101. package/dist/vue3/chunk-55IACEB6-CTzuTcHv.js +6 -0
  102. package/dist/vue3/chunk-76Q3JFCE-BrJX66ha.js +19 -0
  103. package/dist/vue3/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
  104. package/dist/vue3/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
  105. package/dist/vue3/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
  106. package/dist/vue3/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
  107. package/dist/vue3/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
  108. package/dist/vue3/chunk-DNh5sLlG.js +18 -0
  109. package/dist/vue3/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
  110. package/dist/vue3/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
  111. package/dist/vue3/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
  112. package/dist/vue3/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
  113. package/dist/vue3/chunk-HN2XXSSU-DueSY85P.js +74 -0
  114. package/dist/vue3/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
  115. package/dist/vue3/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
  116. package/dist/vue3/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
  117. package/dist/vue3/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
  118. package/dist/vue3/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
  119. package/dist/vue3/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
  120. package/dist/vue3/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
  121. package/dist/vue3/chunk-QN33PNHL-DsC-XeM9.js +23 -0
  122. package/dist/vue3/chunk-QXUST7PY-DxFRymyS.js +486 -0
  123. package/dist/vue3/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
  124. package/dist/vue3/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
  125. package/dist/vue3/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
  126. package/dist/vue3/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
  127. package/dist/vue3/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
  128. package/dist/vue3/chunk-XAJISQIX-XsDvU4jW.js +135 -0
  129. package/dist/vue3/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
  130. package/dist/vue3/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
  131. package/dist/vue3/clone-Bbr3WSpg.js +7 -0
  132. package/dist/vue3/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
  133. package/dist/vue3/cytoscape.esm-nrcriBSO.js +18100 -0
  134. package/dist/vue3/dagre-6UL2VRFP-CTl_U96l.js +298 -0
  135. package/dist/vue3/dagre-DUjlMe_B.js +1496 -0
  136. package/dist/vue3/defaultLocale-BLATqOV5.js +177 -0
  137. package/dist/vue3/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
  138. package/dist/vue3/diagram-QEK2KX5R-CAeywSxy.js +226 -0
  139. package/dist/vue3/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
  140. package/dist/vue3/dist-xWJvauxf.js +49 -0
  141. package/dist/vue3/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
  142. package/dist/vue3/flatten-CfPhNHUL.js +34 -0
  143. package/dist/vue3/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
  144. package/dist/vue3/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
  145. package/dist/vue3/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
  146. package/dist/vue3/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
  147. package/dist/vue3/graphlib-KDKEjVHX.js +344 -0
  148. package/dist/vue3/index.es.min.js +26730 -813
  149. package/dist/vue3/index.umd.min.js +2796 -9
  150. package/dist/vue3/info-NVLQJR56-DBsOnIKy.js +7 -0
  151. package/dist/vue3/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
  152. package/dist/vue3/init-hAkIK9Bd.js +13 -0
  153. package/dist/vue3/isEmpty-z27q3o-D.js +32 -0
  154. package/dist/vue3/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
  155. package/dist/vue3/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
  156. package/dist/vue3/katex-CEAw-xiA.js +22097 -0
  157. package/dist/vue3/katex-D8o5-F7C.js +2 -0
  158. package/dist/vue3/line-wvheYP7S.js +30 -0
  159. package/dist/vue3/linear-STTevhnH.js +250 -0
  160. package/dist/vue3/math-DF_v6dOl.js +8 -0
  161. package/dist/vue3/mermaid-parser.core-VAa8Vi1g.js +48 -0
  162. package/dist/vue3/mermaid.core-vqI6KB9k.js +895 -0
  163. package/dist/vue3/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
  164. package/dist/vue3/ordinal-DOM6Fa9P.js +61 -0
  165. package/dist/vue3/packet-BFZMPI3H-CG049KmZ.js +7 -0
  166. package/dist/vue3/path-CW_-_Ti7.js +79 -0
  167. package/dist/vue3/pie-7BOR55EZ-BHq0KcLP.js +7 -0
  168. package/dist/vue3/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
  169. package/dist/vue3/purify.es-Cm_tUMzZ.js +547 -0
  170. package/dist/vue3/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
  171. package/dist/vue3/radar-NHE76QYJ-CUoVtrAx.js +7 -0
  172. package/dist/vue3/reduce-BFKSG9Rs.js +451 -0
  173. package/dist/vue3/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
  174. package/dist/vue3/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
  175. package/dist/vue3/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
  176. package/dist/vue3/src-VlKYSsxJ.js +1975 -0
  177. package/dist/vue3/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
  178. package/dist/vue3/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
  179. package/dist/vue3/style.css +1 -1
  180. package/dist/vue3/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
  181. package/dist/vue3/treemap-KMMF4GRG--FdijCcy.js +7 -0
  182. package/dist/vue3/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
  183. package/package.json +3 -3
@@ -0,0 +1,61 @@
1
+ import { t as initRange } from "./init-hAkIK9Bd.js";
2
+ var InternMap = class extends Map {
3
+ constructor(e, r = keyof) {
4
+ if (super(), Object.defineProperties(this, {
5
+ _intern: { value: /* @__PURE__ */ new Map() },
6
+ _key: { value: r }
7
+ }), e != null) for (let [r, i] of e) this.set(r, i);
8
+ }
9
+ get(e) {
10
+ return super.get(intern_get(this, e));
11
+ }
12
+ has(e) {
13
+ return super.has(intern_get(this, e));
14
+ }
15
+ set(e, r) {
16
+ return super.set(intern_set(this, e), r);
17
+ }
18
+ delete(e) {
19
+ return super.delete(intern_delete(this, e));
20
+ }
21
+ };
22
+ function intern_get({ _intern: e, _key: r }, i) {
23
+ let a = r(i);
24
+ return e.has(a) ? e.get(a) : i;
25
+ }
26
+ function intern_set({ _intern: e, _key: r }, i) {
27
+ let a = r(i);
28
+ return e.has(a) ? e.get(a) : (e.set(a, i), i);
29
+ }
30
+ function intern_delete({ _intern: e, _key: r }, i) {
31
+ let a = r(i);
32
+ return e.has(a) && (i = e.get(a), e.delete(a)), i;
33
+ }
34
+ function keyof(e) {
35
+ return typeof e == "object" && e ? e.valueOf() : e;
36
+ }
37
+ const implicit = Symbol("implicit");
38
+ function ordinal() {
39
+ var i = new InternMap(), a = [], o = [], s = implicit;
40
+ function c(e) {
41
+ let r = i.get(e);
42
+ if (r === void 0) {
43
+ if (s !== implicit) return s;
44
+ i.set(e, r = a.push(e) - 1);
45
+ }
46
+ return o[r % o.length];
47
+ }
48
+ return c.domain = function(e) {
49
+ if (!arguments.length) return a.slice();
50
+ a = [], i = new InternMap();
51
+ for (let r of e) i.has(r) || i.set(r, a.push(r) - 1);
52
+ return c;
53
+ }, c.range = function(e) {
54
+ return arguments.length ? (o = Array.from(e), c) : o.slice();
55
+ }, c.unknown = function(e) {
56
+ return arguments.length ? (s = e, c) : s;
57
+ }, c.copy = function() {
58
+ return ordinal(a, o).unknown(s);
59
+ }, initRange.apply(c, arguments), c;
60
+ }
61
+ export { ordinal as t };
@@ -0,0 +1,7 @@
1
+ import "./chunk-FPAJGGOC-DPvjUKQ8.js";
2
+ import "./reduce-BFKSG9Rs.js";
3
+ import "./_baseFor-DAbrc8SN.js";
4
+ import "./isEmpty-z27q3o-D.js";
5
+ import "./flatten-CfPhNHUL.js";
6
+ import { n as createPacketServices, t as PacketModule } from "./chunk-76Q3JFCE-BrJX66ha.js";
7
+ export { createPacketServices };
@@ -0,0 +1,79 @@
1
+ var pi = Math.PI, tau = 2 * pi, epsilon = 1e-6, tauEpsilon = tau - epsilon;
2
+ function append(e) {
3
+ this._ += e[0];
4
+ for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
5
+ }
6
+ function appendRound(e) {
7
+ let t = Math.floor(e);
8
+ if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
9
+ if (t > 15) return append;
10
+ let n = 10 ** t;
11
+ return function(e) {
12
+ this._ += e[0];
13
+ for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
14
+ };
15
+ }
16
+ var Path = class {
17
+ constructor(e) {
18
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? append : appendRound(e);
19
+ }
20
+ moveTo(e, t) {
21
+ this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
22
+ }
23
+ closePath() {
24
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
25
+ }
26
+ lineTo(e, t) {
27
+ this._append`L${this._x1 = +e},${this._y1 = +t}`;
28
+ }
29
+ quadraticCurveTo(e, t, n, r) {
30
+ this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;
31
+ }
32
+ bezierCurveTo(e, t, n, r, i, a) {
33
+ this._append`C${+e},${+t},${+n},${+r},${this._x1 = +i},${this._y1 = +a}`;
34
+ }
35
+ arcTo(t, r, i, a, o) {
36
+ if (t = +t, r = +r, i = +i, a = +a, o = +o, o < 0) throw Error(`negative radius: ${o}`);
37
+ let s = this._x1, c = this._y1, l = i - t, u = a - r, d = s - t, f = c - r, p = d * d + f * f;
38
+ if (this._x1 === null) this._append`M${this._x1 = t},${this._y1 = r}`;
39
+ else if (p > epsilon) if (!(Math.abs(f * l - u * d) > epsilon) || !o) this._append`L${this._x1 = t},${this._y1 = r}`;
40
+ else {
41
+ let m = i - s, h = a - c, g = l * l + u * u, _ = m * m + h * h, v = Math.sqrt(g), y = Math.sqrt(p), b = o * Math.tan((pi - Math.acos((g + p - _) / (2 * v * y))) / 2), x = b / y, S = b / v;
42
+ Math.abs(x - 1) > epsilon && this._append`L${t + x * d},${r + x * f}`, this._append`A${o},${o},0,0,${+(f * m > d * h)},${this._x1 = t + S * l},${this._y1 = r + S * u}`;
43
+ }
44
+ }
45
+ arc(i, a, o, s, c, l) {
46
+ if (i = +i, a = +a, o = +o, l = !!l, o < 0) throw Error(`negative radius: ${o}`);
47
+ let u = o * Math.cos(s), d = o * Math.sin(s), f = i + u, p = a + d, m = 1 ^ l, h = l ? s - c : c - s;
48
+ this._x1 === null ? this._append`M${f},${p}` : (Math.abs(this._x1 - f) > epsilon || Math.abs(this._y1 - p) > epsilon) && this._append`L${f},${p}`, o && (h < 0 && (h = h % tau + tau), h > tauEpsilon ? this._append`A${o},${o},0,1,${m},${i - u},${a - d}A${o},${o},0,1,${m},${this._x1 = f},${this._y1 = p}` : h > epsilon && this._append`A${o},${o},0,${+(h >= pi)},${m},${this._x1 = i + o * Math.cos(c)},${this._y1 = a + o * Math.sin(c)}`);
49
+ }
50
+ rect(e, t, n, r) {
51
+ this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
52
+ }
53
+ toString() {
54
+ return this._;
55
+ }
56
+ };
57
+ function path() {
58
+ return new Path();
59
+ }
60
+ path.prototype = Path.prototype;
61
+ function constant_default(e) {
62
+ return function() {
63
+ return e;
64
+ };
65
+ }
66
+ function withPath(e) {
67
+ let t = 3;
68
+ return e.digits = function(n) {
69
+ if (!arguments.length) return t;
70
+ if (n == null) t = null;
71
+ else {
72
+ let e = Math.floor(n);
73
+ if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);
74
+ t = e;
75
+ }
76
+ return e;
77
+ }, () => new Path(t);
78
+ }
79
+ export { constant_default as n, withPath as t };
@@ -0,0 +1,7 @@
1
+ import "./chunk-FPAJGGOC-DPvjUKQ8.js";
2
+ import "./reduce-BFKSG9Rs.js";
3
+ import "./_baseFor-DAbrc8SN.js";
4
+ import "./isEmpty-z27q3o-D.js";
5
+ import "./flatten-CfPhNHUL.js";
6
+ import { n as createPieServices, t as PieModule } from "./chunk-T53DSG4Q-CNvqP6Iy.js";
7
+ export { createPieServices };
@@ -0,0 +1,172 @@
1
+ import "./purify.es-Cm_tUMzZ.js";
2
+ import "./chunk-FPAJGGOC-DPvjUKQ8.js";
3
+ import "./reduce-BFKSG9Rs.js";
4
+ import "./_baseFor-DAbrc8SN.js";
5
+ import "./isEmpty-z27q3o-D.js";
6
+ import "./flatten-CfPhNHUL.js";
7
+ import "./chunk-O7ZBX7Z2-BEP34BEE.js";
8
+ import "./chunk-S6J4BHB3-XXfWHJvh.js";
9
+ import "./chunk-LBM3YZW2-B0-w2HZs.js";
10
+ import "./chunk-76Q3JFCE-BrJX66ha.js";
11
+ import "./chunk-T53DSG4Q-CNvqP6Iy.js";
12
+ import "./chunk-LHMN2FUI-BOH3yE2u.js";
13
+ import "./chunk-FWNWRKHM-BlUTFsPK.js";
14
+ import { g as log, h as __name } from "./src-VlKYSsxJ.js";
15
+ import { B as setAccTitle, C as getDiagramTitle, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, c as configureSvgSize, d as defaultConfig_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-gsx40GnJ.js";
16
+ import { t as ordinal } from "./ordinal-DOM6Fa9P.js";
17
+ import { n as constant_default } from "./path-CW_-_Ti7.js";
18
+ import "./init-hAkIK9Bd.js";
19
+ import { p as tau } from "./math-DF_v6dOl.js";
20
+ import { t as arc_default } from "./arc-BqlAOiZb.js";
21
+ import { t as array_default } from "./array-TB8zN_HT.js";
22
+ import { i as cleanAndMerge, p as parseFontSize } from "./chunk-S3R3BYOJ-Bs_r55Kk.js";
23
+ import { t as selectSvgElement } from "./chunk-EXTU4WIE-BPc8ye_N.js";
24
+ import "./dist-xWJvauxf.js";
25
+ import { t as populateCommonDb } from "./chunk-4BX2VUAB-eAYYj1bL.js";
26
+ import { t as parse } from "./mermaid-parser.core-VAa8Vi1g.js";
27
+ function descending_default(e, o) {
28
+ return o < e ? -1 : o > e ? 1 : o >= e ? 0 : NaN;
29
+ }
30
+ function identity_default(e) {
31
+ return e;
32
+ }
33
+ function pie_default() {
34
+ var e = identity_default, o = descending_default, s = null, c = constant_default(0), l = constant_default(tau), u = constant_default(0);
35
+ function d(d) {
36
+ var f, p = (d = array_default(d)).length, m, h, g = 0, _ = Array(p), v = Array(p), b = +c.apply(this, arguments), S = Math.min(tau, Math.max(-tau, l.apply(this, arguments) - b)), C, w = Math.min(Math.abs(S) / p, u.apply(this, arguments)), T = w * (S < 0 ? -1 : 1), E;
37
+ for (f = 0; f < p; ++f) (E = v[_[f] = f] = +e(d[f], f, d)) > 0 && (g += E);
38
+ for (o == null ? s != null && _.sort(function(e, o) {
39
+ return s(d[e], d[o]);
40
+ }) : _.sort(function(e, s) {
41
+ return o(v[e], v[s]);
42
+ }), f = 0, h = g ? (S - p * T) / g : 0; f < p; ++f, b = C) m = _[f], E = v[m], C = b + (E > 0 ? E * h : 0) + T, v[m] = {
43
+ data: d[m],
44
+ index: f,
45
+ value: E,
46
+ startAngle: b,
47
+ endAngle: C,
48
+ padAngle: w
49
+ };
50
+ return v;
51
+ }
52
+ return d.value = function(o) {
53
+ return arguments.length ? (e = typeof o == "function" ? o : constant_default(+o), d) : e;
54
+ }, d.sortValues = function(e) {
55
+ return arguments.length ? (o = e, s = null, d) : o;
56
+ }, d.sort = function(e) {
57
+ return arguments.length ? (s = e, o = null, d) : s;
58
+ }, d.startAngle = function(e) {
59
+ return arguments.length ? (c = typeof e == "function" ? e : constant_default(+e), d) : c;
60
+ }, d.endAngle = function(e) {
61
+ return arguments.length ? (l = typeof e == "function" ? e : constant_default(+e), d) : l;
62
+ }, d.padAngle = function(e) {
63
+ return arguments.length ? (u = typeof e == "function" ? e : constant_default(+e), d) : u;
64
+ }, d;
65
+ }
66
+ var DEFAULT_PIE_CONFIG = defaultConfig_default.pie, DEFAULT_PIE_DB = {
67
+ sections: /* @__PURE__ */ new Map(),
68
+ showData: !1,
69
+ config: DEFAULT_PIE_CONFIG
70
+ }, sections = DEFAULT_PIE_DB.sections, showData = DEFAULT_PIE_DB.showData, config = structuredClone(DEFAULT_PIE_CONFIG), db = {
71
+ getConfig: /* @__PURE__ */ __name(() => structuredClone(config), "getConfig"),
72
+ clear: /* @__PURE__ */ __name(() => {
73
+ sections = /* @__PURE__ */ new Map(), showData = DEFAULT_PIE_DB.showData, clear();
74
+ }, "clear"),
75
+ setDiagramTitle,
76
+ getDiagramTitle,
77
+ setAccTitle,
78
+ getAccTitle,
79
+ setAccDescription,
80
+ getAccDescription,
81
+ addSection: /* @__PURE__ */ __name(({ label: o, value: s }) => {
82
+ if (s < 0) throw Error(`"${o}" has invalid value: ${s}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);
83
+ sections.has(o) || (sections.set(o, s), log.debug(`added new section: ${o}, with value: ${s}`));
84
+ }, "addSection"),
85
+ getSections: /* @__PURE__ */ __name(() => sections, "getSections"),
86
+ setShowData: /* @__PURE__ */ __name((e) => {
87
+ showData = e;
88
+ }, "setShowData"),
89
+ getShowData: /* @__PURE__ */ __name(() => showData, "getShowData")
90
+ }, populateDb = /* @__PURE__ */ __name((e, o) => {
91
+ populateCommonDb(e, o), o.setShowData(e.showData), e.sections.map(o.addSection);
92
+ }, "populateDb"), parser = { parse: /* @__PURE__ */ __name(async (o) => {
93
+ let s = await parse("pie", o);
94
+ log.debug(s), populateDb(s, db);
95
+ }, "parse") }, pieStyles_default = /* @__PURE__ */ __name((e) => `
96
+ .pieCircle{
97
+ stroke: ${e.pieStrokeColor};
98
+ stroke-width : ${e.pieStrokeWidth};
99
+ opacity : ${e.pieOpacity};
100
+ }
101
+ .pieOuterCircle{
102
+ stroke: ${e.pieOuterStrokeColor};
103
+ stroke-width: ${e.pieOuterStrokeWidth};
104
+ fill: none;
105
+ }
106
+ .pieTitleText {
107
+ text-anchor: middle;
108
+ font-size: ${e.pieTitleTextSize};
109
+ fill: ${e.pieTitleTextColor};
110
+ font-family: ${e.fontFamily};
111
+ }
112
+ .slice {
113
+ font-family: ${e.fontFamily};
114
+ fill: ${e.pieSectionTextColor};
115
+ font-size:${e.pieSectionTextSize};
116
+ // fill: white;
117
+ }
118
+ .legend text {
119
+ fill: ${e.pieLegendTextColor};
120
+ font-family: ${e.fontFamily};
121
+ font-size: ${e.pieLegendTextSize};
122
+ }
123
+ `, "getStyles"), createPieArcs = /* @__PURE__ */ __name((e) => {
124
+ let o = [...e.values()].reduce((e, o) => e + o, 0), s = [...e.entries()].map(([e, o]) => ({
125
+ label: e,
126
+ value: o
127
+ })).filter((e) => e.value / o * 100 >= 1).sort((e, o) => o.value - e.value);
128
+ return pie_default().value((e) => e.value)(s);
129
+ }, "createPieArcs"), diagram = {
130
+ parser,
131
+ db,
132
+ renderer: { draw: /* @__PURE__ */ __name((o, s, c, l) => {
133
+ log.debug("rendering pie chart\n" + o);
134
+ let u = l.db, d = getConfig2(), m = cleanAndMerge(u.getConfig(), d.pie), h = selectSvgElement(s), g = h.append("g");
135
+ g.attr("transform", "translate(225,225)");
136
+ let { themeVariables: v } = d, [y] = parseFontSize(v.pieOuterStrokeWidth);
137
+ y ??= 2;
138
+ let x = m.textPosition, T = arc_default().innerRadius(0).outerRadius(185), E = arc_default().innerRadius(185 * x).outerRadius(185 * x);
139
+ g.append("circle").attr("cx", 0).attr("cy", 0).attr("r", 185 + y / 2).attr("class", "pieOuterCircle");
140
+ let D = u.getSections(), O = createPieArcs(D), k = [
141
+ v.pie1,
142
+ v.pie2,
143
+ v.pie3,
144
+ v.pie4,
145
+ v.pie5,
146
+ v.pie6,
147
+ v.pie7,
148
+ v.pie8,
149
+ v.pie9,
150
+ v.pie10,
151
+ v.pie11,
152
+ v.pie12
153
+ ], A = 0;
154
+ D.forEach((e) => {
155
+ A += e;
156
+ });
157
+ let j = O.filter((e) => (e.data.value / A * 100).toFixed(0) !== "0"), M = ordinal(k);
158
+ g.selectAll("mySlices").data(j).enter().append("path").attr("d", T).attr("fill", (e) => M(e.data.label)).attr("class", "pieCircle"), g.selectAll("mySlices").data(j).enter().append("text").text((e) => (e.data.value / A * 100).toFixed(0) + "%").attr("transform", (e) => "translate(" + E.centroid(e) + ")").style("text-anchor", "middle").attr("class", "slice"), g.append("text").text(u.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
159
+ let N = [...D.entries()].map(([e, o]) => ({
160
+ label: e,
161
+ value: o
162
+ })), P = g.selectAll(".legend").data(N).enter().append("g").attr("class", "legend").attr("transform", (e, o) => {
163
+ let s = 22 * N.length / 2;
164
+ return "translate(216," + (o * 22 - s) + ")";
165
+ });
166
+ P.append("rect").attr("width", 18).attr("height", 18).style("fill", (e) => M(e.label)).style("stroke", (e) => M(e.label)), P.append("text").attr("x", 22).attr("y", 14).text((e) => u.getShowData() ? `${e.label} [${e.value}]` : e.label);
167
+ let F = 512 + Math.max(...P.selectAll("text").nodes().map((e) => e?.getBoundingClientRect().width ?? 0));
168
+ h.attr("viewBox", `0 0 ${F} 450`), configureSvgSize(h, 450, F, m.useMaxWidth);
169
+ }, "draw") },
170
+ styles: pieStyles_default
171
+ };
172
+ export { diagram };