@kong-ui-public/documentation 1.8.13 → 1.8.14-pr.4048.7a10d83bb.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 (168) hide show
  1. package/package.json +2 -2
  2. package/dist/abnfDiagram-VCTEODGH-Bzbg7AHk-DFERbIEu.js +0 -92
  3. package/dist/arc-CKhg5DVn-BIpMje7c.js +0 -80
  4. package/dist/architectureDiagram-5GKGNRK7-CqHVyBRI-CLWcRmoG.js +0 -4149
  5. package/dist/astro-DdQ3Kp7Q-BDE5qFXd.js +0 -18
  6. package/dist/blockDiagram-I7D4REHJ-DWFqHR0L-D8v5LhXM.js +0 -2029
  7. package/dist/c-lfOsiBpu-DMPKLUI8.js +0 -4
  8. package/dist/c4Diagram-7LVT6UL2-DXHigzTJ-BR9440iK.js +0 -3067
  9. package/dist/catppuccin-latte-D9NPLB7Y-sAlQrrP2.js +0 -4
  10. package/dist/channel-DUDXYB-g-BsX3Acdu.js +0 -5
  11. package/dist/chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js +0 -12
  12. package/dist/chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js +0 -19
  13. package/dist/chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js +0 -65
  14. package/dist/chunk-IMKFNOWR-DIsz_YLV-B6u2fLNJ.js +0 -2116
  15. package/dist/chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js +0 -8
  16. package/dist/chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js +0 -24
  17. package/dist/chunk-SHT3W25Y-CKxDgOBI-OOdqZuVE.js +0 -4307
  18. package/dist/chunk-SVP7TREG-tW_qYlvV-vP5bsK2H.js +0 -500
  19. package/dist/chunk-TICWLB2K-CuiDrX3P-WR-FPNea.js +0 -3451
  20. package/dist/chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js +0 -8
  21. package/dist/classDiagram-ZZMXUADV-WzcguFxl-CKKn1Tfx.js +0 -17
  22. package/dist/classDiagram-v2-VYDZK3BY-jdAXYY7W-CKKn1Tfx.js +0 -17
  23. package/dist/cose-bilkent-JH36ORCC-DbS7GVMv-bbQOsy5Y.js +0 -2256
  24. package/dist/csharp-RRkgh3c4-lim_vKPd.js +0 -4
  25. package/dist/css-BbwcBM_4-B_2PRTA_.js +0 -4
  26. package/dist/csv-DFU5sVkH-BPWcOTV4.js +0 -4
  27. package/dist/cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js +0 -21781
  28. package/dist/cynefinDiagram-5FMLGOSQ-BNb88xpJ-DfS9O7P4.js +0 -351
  29. package/dist/cytoscape.esm-YSf_2rtb-CoO8mT3p.js +0 -18279
  30. package/dist/dagre-C9xJrfGe-Di-1Ikh0.js +0 -1667
  31. package/dist/dagre-GXQ25YYZ-uiXfyLw2-PU-qeT6_.js +0 -429
  32. package/dist/defaultLocale-TbxLDlcU-BrdwcF9K.js +0 -180
  33. package/dist/diagram-S7CK7UJ4-g67BXvGR-Cp9bzjGj.js +0 -303
  34. package/dist/diagram-UQ7AKVKN-DfJJIsVs-CC7ekguS.js +0 -210
  35. package/dist/diagram-VSXAHHWV-DmtFfqWN-C9ZLHKzj.js +0 -439
  36. package/dist/diagram-VX7I27RA--gfQ90BY-QNtwG6Ck.js +0 -477
  37. package/dist/diagram-Z3DM3KII-Cu_rSHu0-CCCsIuz4.js +0 -127
  38. package/dist/diff-D_LJiFgV-DenOJuyV.js +0 -4
  39. package/dist/docker-DMpUQ2UE-xX8PDoIv.js +0 -4
  40. package/dist/documentation.es.js +0 -7
  41. package/dist/documentation.umd.js +0 -3715
  42. package/dist/ebnfDiagram-PWID7BFC-B_qfACMJ-D_Xjruh2.js +0 -109
  43. package/dist/erDiagram-RLTQ6QDP-Dt9efGmz-BPS1Iwl5.js +0 -2042
  44. package/dist/flowDiagram-HODETNUW-sAcaB3rt-Ci8x-zG0.js +0 -6
  45. package/dist/ganttDiagram-EL5Y4UJY-CtWGP-hX-qar4oLEq.js +0 -3098
  46. package/dist/git-commit--2NDNcyW-Dw9_h8sQ.js +0 -5
  47. package/dist/git-rebase-CbNvxADk-DAgBrkyL.js +0 -5
  48. package/dist/gitGraphDiagram-WWUBYQGX-B7B7IG_5-x8UcOce8.js +0 -737
  49. package/dist/go-BEdBk4fh-DqSXHrGo.js +0 -4
  50. package/dist/graphql-BMuT9GwB-BP9pcQru.js +0 -14
  51. package/dist/haml-D3QmTYiV-BTaBXoPr.js +0 -10
  52. package/dist/handlebars-C_aYHp26-CWcrQHYv.js +0 -14
  53. package/dist/haskell-DSSJ-2AO-BlmVjKNy.js +0 -4
  54. package/dist/html-derivative-DgZQ_xNe-BAs__2u-.js +0 -5
  55. package/dist/html-zcQqUZxh-Dg8OkMBp.js +0 -10
  56. package/dist/http-BGkfDG8i-lqXytFlH.js +0 -14
  57. package/dist/index-BaAWoj3P.js +0 -43522
  58. package/dist/infoDiagram-27XIBGKW-DAx9hub5-CDUrF89O.js +0 -18
  59. package/dist/ini-CmgEGOBJ-70PBzbbb.js +0 -4
  60. package/dist/init-Cgg2UTSf-BsHkAom2.js +0 -15
  61. package/dist/ishikawaDiagram-5VMMS53U-CnBB9iXH-2YyZ3Nxy.js +0 -729
  62. package/dist/java-CaG1IqbK-D6YBp1XX.js +0 -4
  63. package/dist/javascript--0qAxhnA-BRPKgr3C.js +0 -4
  64. package/dist/journeyDiagram-3NMN7TZE-B0a4pOJX-CgtsuE-Y.js +0 -909
  65. package/dist/json-DVwBUiza-D8uacQj0.js +0 -4
  66. package/dist/json5-D2Eltym1-Biib5ALh.js +0 -4
  67. package/dist/jsonc-BPIJyZ7u-BZEKkMok.js +0 -4
  68. package/dist/jsonl-BGkjXns2-BG2V-IA2.js +0 -4
  69. package/dist/jsx-cVAJ0Z2c-Cl0AMtmu.js +0 -4
  70. package/dist/kanban-definition-UXKFOSKX-BGnOZMUl-CHT2EG_7.js +0 -1029
  71. package/dist/katex-Be3DWdAP-BWcdC2Xb.js +0 -22287
  72. package/dist/kotlin-CQsNEM2o-Dy_91eL4.js +0 -4
  73. package/dist/latex-g3NZbvcl-tKQf8TuW.js +0 -5
  74. package/dist/less-9LYkHheD-tcNg8M2_.js +0 -4
  75. package/dist/linear-Cf872ac2-BjGvLlX5.js +0 -254
  76. package/dist/liquid-CG3ph2-5-wZo8nDay.js +0 -14
  77. package/dist/lua-BdA7_iyX-Fg4s9W4F.js +0 -5
  78. package/dist/make-CE9Hryyp-CrUl7LOH.js +0 -4
  79. package/dist/markdown-Gqx6-FHJ-Bcqt-5kX.js +0 -4
  80. package/dist/material-theme-darker-DL4lHZSa-DMHCIvq5.js +0 -4
  81. package/dist/mdc-C-RLGlI2-DzcUIqJQ.js +0 -12
  82. package/dist/mdx-DswfiFg4-CK6jOqmu.js +0 -4
  83. package/dist/mermaid-CAl3BhSL-CpQh0Vft.js +0 -4
  84. package/dist/mindmap-definition-YA3MSWOX-D0iYuN9C-B3uI77eT.js +0 -1026
  85. package/dist/nginx-CokYOiS8-DjML3dpY.js +0 -5
  86. package/dist/objective-c-DK-EKgyd-C809HPrX.js +0 -4
  87. package/dist/ordinal-CNzaYghg-B_JXdapq.js +0 -63
  88. package/dist/pascal-CRtegPzh-a8whuidZ.js +0 -4
  89. package/dist/pegDiagram-XKGWAZYB-6oG4KeYC-CG27veJ_.js +0 -104
  90. package/dist/perl-C45KUBhP-Q6opd9qO.js +0 -16
  91. package/dist/php-COzTb61D-DW91EkjY.js +0 -18
  92. package/dist/pieDiagram-E7YTZNPT-DsNO0m7t-CMKObJlC.js +0 -191
  93. package/dist/plsql-Bx7tup_v-BJoF2Vrf.js +0 -4
  94. package/dist/postcss-DjDdOEzv-DaHMm3XW.js +0 -4
  95. package/dist/powershell-BeUvHe6o-BC3uPZPS.js +0 -4
  96. package/dist/proto-DGLklcji-w0B_itsp.js +0 -4
  97. package/dist/pug-BQ5MM2xz-DMZvJUHt.js +0 -12
  98. package/dist/python-C_6ySqsv-D_5pfY__.js +0 -4
  99. package/dist/quadrantDiagram-AXDQQJYC-B6Dc7fje-C23uvcHP.js +0 -2046
  100. package/dist/r-CNL4a0Qi-pixge7f9.js +0 -4
  101. package/dist/railroadDiagram-O6MQD6OU-D8qLcD4O-B_Hr3s-n.js +0 -80
  102. package/dist/reg-D6txjqBF-bHAwx9Pm.js +0 -4
  103. package/dist/requirementDiagram-BXWQKSXE-Cx28BZaS-Bu-h1fa9.js +0 -2283
  104. package/dist/rst-xmthoFSf-BdN-iqJu.js +0 -20
  105. package/dist/ruby-CmwqiOyg-B5qGUHPy.js +0 -44
  106. package/dist/rust-BrRMzTsN-CaZtBt24.js +0 -4
  107. package/dist/sankeyDiagram-P5KCCOFB-CqEXebJJ-BrChTi-e.js +0 -948
  108. package/dist/sass-CL6GLiPQ-pslLeRRb.js +0 -4
  109. package/dist/scss-CiLZCexj-CladYQkr.js +0 -5
  110. package/dist/sequenceDiagram-WJ2MYXX4-Bs_1V5D1-Da6JW3KG.js +0 -4263
  111. package/dist/shellscript-Dfpezy65-BtH46UX7.js +0 -4
  112. package/dist/shellsession-CRcAC04a-BFLTslz7.js +0 -5
  113. package/dist/sizeCapture-INFHLROL-Bc4fS2u3-DMniWWy4.js +0 -46
  114. package/dist/splunk-MGILMmew-BP8P7eWt.js +0 -4
  115. package/dist/sql-D_W5grEC-Dcn2WLbD.js +0 -4
  116. package/dist/ssh-config-CFmUyPR7-BB1rrGb9.js +0 -4
  117. package/dist/stateDiagram-D77RDMKH-oTiwIYVV-BphZk0uR.js +0 -210
  118. package/dist/stateDiagram-v2-MP3YSRHH-gbAY2cmo-D78HyGx1.js +0 -17
  119. package/dist/style.css +0 -1
  120. package/dist/stylus-Kh83dApl-DAu5PNZ9.js +0 -4
  121. package/dist/svelte-HVIHTyhe-BdPJXyv7.js +0 -14
  122. package/dist/swift-B7Z-rXzN-CQtmhAMw.js +0 -4
  123. package/dist/swimlanes-42K2YHIH-BSXAPn2j-C7pTnVuk.js +0 -4983
  124. package/dist/swimlanesDiagram-VR7AAH4N-Ror_0lre-Di8OVgei.js +0 -17
  125. package/dist/timeline-definition-24CTP7MA-gOHmAY1H-aIgAzo7s.js +0 -1096
  126. package/dist/toml-CIQJnU5u-DjT9Bjqu.js +0 -4
  127. package/dist/tsx-DiMnnori-B-5hSr15.js +0 -4
  128. package/dist/twig-BXXOiPVV-CmgmU-L-.js +0 -18
  129. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  130. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  131. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  132. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  133. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  134. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  135. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  136. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  137. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  138. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  139. package/dist/types/composables/index.d.ts +0 -6
  140. package/dist/types/composables/index.d.ts.map +0 -1
  141. package/dist/types/composables/useI18n.d.ts +0 -9
  142. package/dist/types/composables/useI18n.d.ts.map +0 -1
  143. package/dist/types/external-links.d.ts +0 -5
  144. package/dist/types/external-links.d.ts.map +0 -1
  145. package/dist/types/helpers.d.ts +0 -8
  146. package/dist/types/helpers.d.ts.map +0 -1
  147. package/dist/types/index.d.ts +0 -7
  148. package/dist/types/index.d.ts.map +0 -1
  149. package/dist/types/types/document-list.d.ts +0 -28
  150. package/dist/types/types/document-list.d.ts.map +0 -1
  151. package/dist/types/types/document-modal.d.ts +0 -8
  152. package/dist/types/types/document-modal.d.ts.map +0 -1
  153. package/dist/types/types/index.d.ts +0 -3
  154. package/dist/types/types/index.d.ts.map +0 -1
  155. package/dist/typescript-DFf19o_s-B0ag8pir.js +0 -4
  156. package/dist/v-DbYZLS97-CAPuTPjr.js +0 -4
  157. package/dist/vb-DRaXf86R-Bx9Rwnco.js +0 -4
  158. package/dist/vennDiagram-4TSXK5OY-Cr4BWMuk-BjBvyxCC.js +0 -1911
  159. package/dist/viml-DgaHry3T-BeYQ8dZh.js +0 -4
  160. package/dist/vue-DPI5F0qT-D-Ahkoja.js +0 -22
  161. package/dist/vue-html-D7FCsiW2-DLSUNIPr.js +0 -5
  162. package/dist/wardleyDiagram-VM6X3IG4-a6H91k9Q-CsH4gQQ0.js +0 -639
  163. package/dist/wasm-DXa1gtBd-CfuK9YWP.js +0 -4
  164. package/dist/wgsl-Vcm3Lg52-C2IZ7ENh.js +0 -4
  165. package/dist/xml-DnOpIvRK-C-akVYiK.js +0 -5
  166. package/dist/xsl-K_2BlT3G-D3eRZGNO.js +0 -5
  167. package/dist/xychartDiagram-S5SC5T6Z-7mX_nPmO-CoM4SG9q.js +0 -2218
  168. package/dist/yaml-BswqmnDe-X78l_Ibz.js +0 -4
@@ -1,729 +0,0 @@
1
- import { a as r, c as ht, a3 as ut, a2 as dt, bZ as yt, $ as pt, b as ft, j as it, t as gt, e as mt, r as kt, n as xt, k as wt, V as bt } from "./index-BaAWoj3P.js";
2
- var Q = (function() {
3
- var e = /* @__PURE__ */ r(function(t, y, n, h) {
4
- for (n ||= {}, h = t.length; h--; n[t[h]] = y) ;
5
- return n;
6
- }, "o"), l = [1, 4], a = [1, 14], s = [1, 12], i = [1, 13], d = [
7
- 6,
8
- 7,
9
- 8
10
- ], p = [1, 20], u = [1, 18], f = [1, 19], g = [
11
- 6,
12
- 7,
13
- 11
14
- ], x = [
15
- 1,
16
- 6,
17
- 13,
18
- 14
19
- ], m = [1, 23], S = [1, 24], I = [
20
- 1,
21
- 6,
22
- 7,
23
- 11,
24
- 13,
25
- 14
26
- ], C = {
27
- trace: /* @__PURE__ */ r(function() {
28
- }, "trace"),
29
- yy: {},
30
- symbols_: {
31
- error: 2,
32
- start: 3,
33
- ishikawa: 4,
34
- spaceLines: 5,
35
- SPACELINE: 6,
36
- NL: 7,
37
- ISHIKAWA: 8,
38
- document: 9,
39
- stop: 10,
40
- EOF: 11,
41
- statement: 12,
42
- SPACELIST: 13,
43
- TEXT: 14,
44
- $accept: 0,
45
- $end: 1
46
- },
47
- terminals_: {
48
- 2: "error",
49
- 6: "SPACELINE",
50
- 7: "NL",
51
- 8: "ISHIKAWA",
52
- 11: "EOF",
53
- 13: "SPACELIST",
54
- 14: "TEXT"
55
- },
56
- productions_: [
57
- 0,
58
- [3, 1],
59
- [3, 2],
60
- [5, 1],
61
- [5, 2],
62
- [5, 2],
63
- [4, 2],
64
- [4, 3],
65
- [10, 1],
66
- [10, 1],
67
- [10, 1],
68
- [10, 2],
69
- [10, 2],
70
- [9, 3],
71
- [9, 2],
72
- [12, 2],
73
- [12, 1],
74
- [12, 1],
75
- [12, 1]
76
- ],
77
- performAction: /* @__PURE__ */ r(function(t, y, n, h, c, o, B) {
78
- var b = o.length - 1;
79
- switch (c) {
80
- case 6:
81
- case 7:
82
- return h;
83
- case 15:
84
- h.addNode(o[b - 1].length, o[b].trim());
85
- break;
86
- case 16:
87
- h.addNode(0, o[b].trim());
88
- }
89
- }, "anonymous"),
90
- table: [
91
- {
92
- 3: 1,
93
- 4: 2,
94
- 5: 3,
95
- 6: [1, 5],
96
- 8: l
97
- },
98
- { 1: [3] },
99
- { 1: [2, 1] },
100
- {
101
- 4: 6,
102
- 6: [1, 7],
103
- 7: [1, 8],
104
- 8: l
105
- },
106
- {
107
- 6: a,
108
- 7: [1, 10],
109
- 9: 9,
110
- 12: 11,
111
- 13: s,
112
- 14: i
113
- },
114
- e(d, [2, 3]),
115
- { 1: [2, 2] },
116
- e(d, [2, 4]),
117
- e(d, [2, 5]),
118
- {
119
- 1: [2, 6],
120
- 6: a,
121
- 12: 15,
122
- 13: s,
123
- 14: i
124
- },
125
- {
126
- 6: a,
127
- 9: 16,
128
- 12: 11,
129
- 13: s,
130
- 14: i
131
- },
132
- {
133
- 6: p,
134
- 7: u,
135
- 10: 17,
136
- 11: f
137
- },
138
- e(g, [2, 18], { 14: [1, 21] }),
139
- e(g, [2, 16]),
140
- e(g, [2, 17]),
141
- {
142
- 6: p,
143
- 7: u,
144
- 10: 22,
145
- 11: f
146
- },
147
- {
148
- 1: [2, 7],
149
- 6: a,
150
- 12: 15,
151
- 13: s,
152
- 14: i
153
- },
154
- e(x, [2, 14], {
155
- 7: m,
156
- 11: S
157
- }),
158
- e(I, [2, 8]),
159
- e(I, [2, 9]),
160
- e(I, [2, 10]),
161
- e(g, [2, 15]),
162
- e(x, [2, 13], {
163
- 7: m,
164
- 11: S
165
- }),
166
- e(I, [2, 11]),
167
- e(I, [2, 12])
168
- ],
169
- defaultActions: {
170
- 2: [2, 1],
171
- 6: [2, 2]
172
- },
173
- parseError: /* @__PURE__ */ r(function(t, y) {
174
- if (y.recoverable) this.trace(t);
175
- else {
176
- var n = Error(t);
177
- throw n.hash = y, n;
178
- }
179
- }, "parseError"),
180
- parse: /* @__PURE__ */ r(function(t) {
181
- var y = this, n = [0], h = [], c = [null], o = [], B = this.table, b = "", w = 0, v = 0, N = 0, $ = 2, E = 1, L = o.slice.call(arguments, 1), k = Object.create(this.lexer), _ = { yy: {} };
182
- for (var M in this.yy) Object.prototype.hasOwnProperty.call(this.yy, M) && (_.yy[M] = this.yy[M]);
183
- k.setInput(t, _.yy), _.yy.lexer = k, _.yy.parser = this, k.yylloc === void 0 && (k.yylloc = {});
184
- var j = k.yylloc;
185
- o.push(j);
186
- var Z = k.options && k.options.ranges;
187
- this.parseError = typeof _.yy.parseError == "function" ? _.yy.parseError : Object.getPrototypeOf(this).parseError;
188
- function K(R) {
189
- n.length -= 2 * R, c.length -= R, o.length -= R;
190
- }
191
- r(K, "popStack");
192
- function J() {
193
- var R = h.pop() || k.lex() || E;
194
- return typeof R != "number" && (R instanceof Array && (h = R, R = h.pop()), R = y.symbols_[R] || R), R;
195
- }
196
- r(J, "lex");
197
- for (var P, U, z, O, Y, T = {}, H, W, tt, X; ; ) {
198
- if (z = n[n.length - 1], this.defaultActions[z] ? O = this.defaultActions[z] : (P ??= J(), O = B[z] && B[z][P]), O === void 0 || !O.length || !O[0]) {
199
- var et = "";
200
- for (H in X = [], B[z]) this.terminals_[H] && H > $ && X.push("'" + this.terminals_[H] + "'");
201
- et = k.showPosition ? "Parse error on line " + (w + 1) + `:
202
- ` + k.showPosition() + `
203
- Expecting ` + X.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : "Parse error on line " + (w + 1) + ": Unexpected " + (P == E ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(et, {
204
- text: k.match,
205
- token: this.terminals_[P] || P,
206
- line: k.yylineno,
207
- loc: j,
208
- expected: X
209
- });
210
- }
211
- if (O[0] instanceof Array && O.length > 1) throw Error("Parse Error: multiple actions possible at state: " + z + ", token: " + P);
212
- switch (O[0]) {
213
- case 1:
214
- n.push(P), c.push(k.yytext), o.push(k.yylloc), n.push(O[1]), P = null, U ? (P = U, U = null) : (v = k.yyleng, b = k.yytext, w = k.yylineno, j = k.yylloc, N > 0);
215
- break;
216
- case 2:
217
- if (W = this.productions_[O[1]][1], T.$ = c[c.length - W], T._$ = {
218
- first_line: o[o.length - (W || 1)].first_line,
219
- last_line: o[o.length - 1].last_line,
220
- first_column: o[o.length - (W || 1)].first_column,
221
- last_column: o[o.length - 1].last_column
222
- }, Z && (T._$.range = [o[o.length - (W || 1)].range[0], o[o.length - 1].range[1]]), Y = this.performAction.apply(T, [
223
- b,
224
- v,
225
- w,
226
- _.yy,
227
- O[1],
228
- c,
229
- o
230
- ].concat(L)), Y !== void 0) return Y;
231
- W && (n = n.slice(0, -1 * W * 2), c = c.slice(0, -1 * W), o = o.slice(0, -1 * W)), n.push(this.productions_[O[1]][0]), c.push(T.$), o.push(T._$), tt = B[n[n.length - 2]][n[n.length - 1]], n.push(tt);
232
- break;
233
- case 3:
234
- return !0;
235
- }
236
- }
237
- return !0;
238
- }, "parse")
239
- };
240
- C.lexer = /* @__PURE__ */ (function() {
241
- return {
242
- EOF: 1,
243
- parseError: /* @__PURE__ */ r(function(t, y) {
244
- if (this.yy.parser) this.yy.parser.parseError(t, y);
245
- else throw Error(t);
246
- }, "parseError"),
247
- setInput: /* @__PURE__ */ r(function(t, y) {
248
- return this.yy = y || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
249
- first_line: 1,
250
- first_column: 0,
251
- last_line: 1,
252
- last_column: 0
253
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
254
- }, "setInput"),
255
- input: /* @__PURE__ */ r(function() {
256
- var t = this._input[0];
257
- return this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t, t.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
258
- }, "input"),
259
- unput: /* @__PURE__ */ r(function(t) {
260
- var y = t.length, n = t.split(/(?:\r\n?|\n)/g);
261
- this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - y), this.offset -= y;
262
- var h = this.match.split(/(?:\r\n?|\n)/g);
263
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
264
- var c = this.yylloc.range;
265
- return this.yylloc = {
266
- first_line: this.yylloc.first_line,
267
- last_line: this.yylineno + 1,
268
- first_column: this.yylloc.first_column,
269
- last_column: n ? (n.length === h.length ? this.yylloc.first_column : 0) + h[h.length - n.length].length - n[0].length : this.yylloc.first_column - y
270
- }, this.options.ranges && (this.yylloc.range = [c[0], c[0] + this.yyleng - y]), this.yyleng = this.yytext.length, this;
271
- }, "unput"),
272
- more: /* @__PURE__ */ r(function() {
273
- return this._more = !0, this;
274
- }, "more"),
275
- reject: /* @__PURE__ */ r(function() {
276
- if (this.options.backtrack_lexer) this._backtrack = !0;
277
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
278
- ` + this.showPosition(), {
279
- text: "",
280
- token: null,
281
- line: this.yylineno
282
- });
283
- return this;
284
- }, "reject"),
285
- less: /* @__PURE__ */ r(function(t) {
286
- this.unput(this.match.slice(t));
287
- }, "less"),
288
- pastInput: /* @__PURE__ */ r(function() {
289
- var t = this.matched.substr(0, this.matched.length - this.match.length);
290
- return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
291
- }, "pastInput"),
292
- upcomingInput: /* @__PURE__ */ r(function() {
293
- var t = this.match;
294
- return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
295
- }, "upcomingInput"),
296
- showPosition: /* @__PURE__ */ r(function() {
297
- var t = this.pastInput(), y = Array(t.length + 1).join("-");
298
- return t + this.upcomingInput() + `
299
- ` + y + "^";
300
- }, "showPosition"),
301
- test_match: /* @__PURE__ */ r(function(t, y) {
302
- var n, h, c;
303
- if (this.options.backtrack_lexer && (c = {
304
- yylineno: this.yylineno,
305
- yylloc: {
306
- first_line: this.yylloc.first_line,
307
- last_line: this.last_line,
308
- first_column: this.yylloc.first_column,
309
- last_column: this.yylloc.last_column
310
- },
311
- yytext: this.yytext,
312
- match: this.match,
313
- matches: this.matches,
314
- matched: this.matched,
315
- yyleng: this.yyleng,
316
- offset: this.offset,
317
- _more: this._more,
318
- _input: this._input,
319
- yy: this.yy,
320
- conditionStack: this.conditionStack.slice(0),
321
- done: this.done
322
- }, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))), h = t[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
323
- first_line: this.yylloc.last_line,
324
- last_line: this.yylineno + 1,
325
- first_column: this.yylloc.last_column,
326
- last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
327
- }, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], n = this.performAction.call(this, this.yy, this, y, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
328
- if (this._backtrack) {
329
- for (var o in c) this[o] = c[o];
330
- return !1;
331
- }
332
- return !1;
333
- }, "test_match"),
334
- next: /* @__PURE__ */ r(function() {
335
- if (this.done) return this.EOF;
336
- this._input || (this.done = !0);
337
- var t, y, n, h;
338
- this._more || (this.yytext = "", this.match = "");
339
- for (var c = this._currentRules(), o = 0; o < c.length; o++) if (n = this._input.match(this.rules[c[o]]), n && (!y || n[0].length > y[0].length)) {
340
- if (y = n, h = o, this.options.backtrack_lexer) {
341
- if (t = this.test_match(n, c[o]), t !== !1) return t;
342
- if (this._backtrack) {
343
- y = !1;
344
- continue;
345
- }
346
- return !1;
347
- }
348
- if (!this.options.flex) break;
349
- }
350
- return y ? (t = this.test_match(y, c[h]), t !== !1 && t) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
351
- ` + this.showPosition(), {
352
- text: "",
353
- token: null,
354
- line: this.yylineno
355
- });
356
- }, "next"),
357
- lex: /* @__PURE__ */ r(function() {
358
- return this.next() || this.lex();
359
- }, "lex"),
360
- begin: /* @__PURE__ */ r(function(t) {
361
- this.conditionStack.push(t);
362
- }, "begin"),
363
- popState: /* @__PURE__ */ r(function() {
364
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
365
- }, "popState"),
366
- _currentRules: /* @__PURE__ */ r(function() {
367
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
368
- }, "_currentRules"),
369
- topState: /* @__PURE__ */ r(function(t) {
370
- return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
371
- }, "topState"),
372
- pushState: /* @__PURE__ */ r(function(t) {
373
- this.begin(t);
374
- }, "pushState"),
375
- stateStackSize: /* @__PURE__ */ r(function() {
376
- return this.conditionStack.length;
377
- }, "stateStackSize"),
378
- options: { "case-insensitive": !0 },
379
- performAction: /* @__PURE__ */ r(function(t, y, n, h) {
380
- switch (n) {
381
- case 0:
382
- return 6;
383
- case 1:
384
- return 8;
385
- case 2:
386
- return 8;
387
- case 3:
388
- return 6;
389
- case 4:
390
- return 7;
391
- case 5:
392
- return 13;
393
- case 6:
394
- return 14;
395
- case 7:
396
- return 11;
397
- }
398
- }, "anonymous"),
399
- rules: [
400
- /^(?:\s*%%.*)/i,
401
- /^(?:ishikawa-beta\b)/i,
402
- /^(?:ishikawa\b)/i,
403
- /^(?:[\s]+[\n])/i,
404
- /^(?:[\n]+)/i,
405
- /^(?:[\s]+)/i,
406
- /^(?:[^\n]+)/i,
407
- /^(?:$)/i
408
- ],
409
- conditions: { INITIAL: {
410
- rules: [
411
- 0,
412
- 1,
413
- 2,
414
- 3,
415
- 4,
416
- 5,
417
- 6,
418
- 7
419
- ],
420
- inclusive: !0
421
- } }
422
- };
423
- })();
424
- function A() {
425
- this.yy = {};
426
- }
427
- return r(A, "Parser"), A.prototype = C, C.Parser = A, new A();
428
- })();
429
- Q.parser = Q;
430
- var _t = Q, V, vt = (V = class {
431
- constructor() {
432
- this.stack = [], this.clear = this.clear.bind(this), this.addNode = this.addNode.bind(this), this.getRoot = this.getRoot.bind(this);
433
- }
434
- clear() {
435
- this.root = void 0, this.stack = [], this.baseLevel = void 0, pt();
436
- }
437
- getRoot() {
438
- return this.root;
439
- }
440
- addNode(l, a) {
441
- let s = ft.sanitizeText(a, ht());
442
- if (!this.root) {
443
- this.root = {
444
- text: s,
445
- children: []
446
- }, this.stack = [{
447
- level: 0,
448
- node: this.root
449
- }], it(s);
450
- return;
451
- }
452
- this.baseLevel ??= l;
453
- let i = l - this.baseLevel + 1;
454
- for (i <= 0 && (i = 1); this.stack.length > 1 && this.stack[this.stack.length - 1].level >= i; ) this.stack.pop();
455
- let d = this.stack[this.stack.length - 1].node, p = {
456
- text: s,
457
- children: []
458
- };
459
- d.children.push(p), this.stack.push({
460
- level: i,
461
- node: p
462
- });
463
- }
464
- getAccTitle() {
465
- return gt();
466
- }
467
- setAccTitle(l) {
468
- mt(l);
469
- }
470
- getAccDescription() {
471
- return kt();
472
- }
473
- setAccDescription(l) {
474
- xt(l);
475
- }
476
- getDiagramTitle() {
477
- return wt();
478
- }
479
- setDiagramTitle(l) {
480
- it(l);
481
- }
482
- }, r(V, "IshikawaDB"), V), $t = 14, F = 250, St = 30, It = 60, At = 5, ot = 82 * Math.PI / 180, st = Math.cos(ot), nt = Math.sin(ot), at = /* @__PURE__ */ r((e, l, a) => {
483
- let s = e.node().getBBox(), i = s.width + l * 2, d = s.height + l * 2;
484
- bt(e, d, i, a), e.attr("viewBox", `${s.x - l} ${s.y - l} ${i} ${d}`);
485
- }, "applyPaddedViewBox"), Et = /* @__PURE__ */ r((e, l, a, s) => {
486
- let i = s.db.getRoot();
487
- if (!i) return;
488
- let d = ht(), { look: p, handDrawnSeed: u, themeVariables: f } = d, g = ut(d.fontSize)[0] ?? $t, x = p === "handDrawn", m = i.children ?? [], S = d.ishikawa?.diagramPadding ?? 20, I = d.ishikawa?.useMaxWidth ?? !1, C = dt(l), A = C.append("g").attr("class", "ishikawa"), t = x ? yt.svg(C.node()) : void 0, y = t ? {
489
- roughSvg: t,
490
- seed: u ?? 0,
491
- lineColor: f?.lineColor ?? "#333",
492
- fillColor: f?.mainBkg ?? "#fff"
493
- } : void 0, n = `ishikawa-arrow-${l}`;
494
- x || A.append("defs").append("marker").attr("id", n).attr("viewBox", "0 0 10 10").attr("refX", 0).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 Z").attr("class", "ishikawa-arrow");
495
- let h = 0, c = F, o = x ? void 0 : D(A, h, c, h, c, "ishikawa-spine");
496
- if (Ct(A, h, c, i.text, g, y), !m.length) {
497
- x && D(A, h, c, h, c, "ishikawa-spine", y), at(C, S, I);
498
- return;
499
- }
500
- h -= 20;
501
- let B = m.filter((_, M) => M % 2 == 0), b = m.filter((_, M) => M % 2 == 1), w = rt(B), v = rt(b), N = w.total + v.total, $ = F, E = F;
502
- if (N > 0) {
503
- let _ = F * 2, M = F * 0.3;
504
- $ = Math.max(M, _ * (w.total / N)), E = Math.max(M, _ * (v.total / N));
505
- }
506
- let L = g * 2;
507
- $ = Math.max($, w.max * L), E = Math.max(E, v.max * L), c = Math.max($, F), o && o.attr("y1", c).attr("y2", c), A.select(".ishikawa-head-group").attr("transform", `translate(0,${c})`);
508
- let k = Math.ceil(m.length / 2);
509
- for (let _ = 0; _ < k; _++) {
510
- let M = A.append("g").attr("class", "ishikawa-pair");
511
- for (let [j, Z, K] of [[
512
- m[_ * 2],
513
- -1,
514
- $
515
- ], [
516
- m[_ * 2 + 1],
517
- 1,
518
- E
519
- ]]) j && Pt(M, j, h, c, Z, K, g, y);
520
- h = M.selectAll("text").nodes().reduce((j, Z) => Math.min(j, Z.getBBox().x), 1 / 0);
521
- }
522
- if (x) D(A, h, c, 0, c, "ishikawa-spine", y);
523
- else {
524
- o.attr("x1", h);
525
- let _ = `url(#${n})`;
526
- A.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start", _);
527
- }
528
- at(C, S, I);
529
- }, "draw"), rt = /* @__PURE__ */ r((e) => {
530
- let l = /* @__PURE__ */ r((a) => a.children.reduce((s, i) => s + 1 + l(i), 0), "countDescendants");
531
- return e.reduce((a, s) => {
532
- let i = l(s);
533
- return a.total += i, a.max = Math.max(a.max, i), a;
534
- }, {
535
- total: 0,
536
- max: 0
537
- });
538
- }, "sideStats"), Ct = /* @__PURE__ */ r((e, l, a, s, i, d) => {
539
- let p = Math.max(6, Math.floor(110 / (i * 0.6))), u = e.append("g").attr("class", "ishikawa-head-group").attr("transform", `translate(${l},${a})`), f = G(u, ct(s, p), 0, 0, "ishikawa-head-label", "start", i), g = f.node().getBBox(), x = Math.max(60, g.width + 6), m = Math.max(40, g.height * 2 + 40), S = `M 0 ${-m / 2} L 0 ${m / 2} Q ${x * 2.4} 0 0 ${-m / 2} Z`;
540
- if (d) {
541
- let I = d.roughSvg.path(S, {
542
- roughness: 1.5,
543
- seed: d.seed,
544
- fill: d.fillColor,
545
- fillStyle: "hachure",
546
- fillWeight: 2.5,
547
- hachureGap: 5,
548
- stroke: d.lineColor,
549
- strokeWidth: 2
550
- });
551
- u.insert(() => I, ":first-child").attr("class", "ishikawa-head");
552
- } else u.insert("path", ":first-child").attr("class", "ishikawa-head").attr("d", S);
553
- f.attr("transform", `translate(${(x - g.width) / 2 - g.x + 3},${-g.y - g.height / 2})`);
554
- }, "drawHead"), Lt = /* @__PURE__ */ r((e, l) => {
555
- let a = [], s = [], i = /* @__PURE__ */ r((d, p, u) => {
556
- let f = l === -1 ? [...d].reverse() : d;
557
- for (let g of f) {
558
- let x = a.length, m = g.children ?? [];
559
- a.push({
560
- depth: u,
561
- text: ct(g.text, 15),
562
- parentIndex: p,
563
- childCount: m.length
564
- }), u % 2 == 0 ? (s.push(x), m.length && i(m, x, u + 1)) : (m.length && i(m, x, u + 1), s.push(x));
565
- }
566
- }, "walk");
567
- return i(e, -1, 2), {
568
- entries: a,
569
- yOrder: s
570
- };
571
- }, "flattenTree"), Mt = /* @__PURE__ */ r((e, l, a, s, i, d, p) => {
572
- let u = e.append("g").attr("class", "ishikawa-label-group"), f = G(u, l, a, s + 11 * i, "ishikawa-label cause", "middle", d).node().getBBox();
573
- if (p) {
574
- let g = p.roughSvg.rectangle(f.x - 20, f.y - 2, f.width + 40, f.height + 4, {
575
- roughness: 1.5,
576
- seed: p.seed,
577
- fill: p.fillColor,
578
- fillStyle: "hachure",
579
- fillWeight: 2.5,
580
- hachureGap: 5,
581
- stroke: p.lineColor,
582
- strokeWidth: 2
583
- });
584
- u.insert(() => g, ":first-child").attr("class", "ishikawa-label-box");
585
- } else u.insert("rect", ":first-child").attr("class", "ishikawa-label-box").attr("x", f.x - 20).attr("y", f.y - 2).attr("width", f.width + 40).attr("height", f.height + 4);
586
- }, "drawCauseLabel"), q = /* @__PURE__ */ r((e, l, a, s, i, d) => {
587
- let p = Math.sqrt(s * s + i * i);
588
- if (p === 0) return;
589
- let u = s / p, f = i / p, g = -f * 6, x = u * 6, m = l, S = a, I = `M ${m} ${S} L ${m - u * 6 * 2 + g} ${S - f * 6 * 2 + x} L ${m - u * 6 * 2 - g} ${S - f * 6 * 2 - x} Z`, C = d.roughSvg.path(I, {
590
- roughness: 1,
591
- seed: d.seed,
592
- fill: d.lineColor,
593
- fillStyle: "solid",
594
- stroke: d.lineColor,
595
- strokeWidth: 1
596
- });
597
- e.append(() => C);
598
- }, "drawArrowMarker"), Pt = /* @__PURE__ */ r((e, l, a, s, i, d, p, u) => {
599
- let f = l.children ?? [], g = d * (f.length ? 1 : 0.2), x = -st * g, m = nt * g * i, S = a + x, I = s + m;
600
- if (D(e, a, s, S, I, "ishikawa-branch", u), u && q(e, a, s, a - S, s - I, u), Mt(e, l.text, S, I, i, p, u), !f.length) return;
601
- let { entries: C, yOrder: A } = Lt(f, i), t = C.length, y = Array(t);
602
- for (let [B, b] of A.entries()) y[b] = s + m * ((B + 1) / (t + 1));
603
- let n = /* @__PURE__ */ new Map();
604
- n.set(-1, {
605
- x0: a,
606
- y0: s,
607
- x1: S,
608
- y1: I,
609
- childCount: f.length,
610
- childrenDrawn: 0
611
- });
612
- let h = -st, c = nt * i, o = i < 0 ? "ishikawa-label up" : "ishikawa-label down";
613
- for (let [B, b] of C.entries()) {
614
- let w = y[B], v = n.get(b.parentIndex), N = e.append("g").attr("class", "ishikawa-sub-group"), $ = 0, E = 0, L = 0;
615
- if (b.depth % 2 == 0) {
616
- let k = v.y1 - v.y0;
617
- $ = lt(v.x0, v.x1, k ? (w - v.y0) / k : 0.5), E = w, L = $ - (b.childCount > 0 ? It + b.childCount * At : St), D(N, $, w, L, w, "ishikawa-sub-branch", u), u && q(N, $, w, 1, 0, u), G(N, b.text, L, w, "ishikawa-label align", "end", p);
618
- } else {
619
- let k = v.childrenDrawn++;
620
- $ = lt(v.x0, v.x1, (v.childCount - k) / (v.childCount + 1)), E = v.y0, L = $ + h * ((w - E) / c), D(N, $, E, L, w, "ishikawa-sub-branch", u), u && q(N, $, E, $ - L, E - w, u), G(N, b.text, L, w, o, "end", p);
621
- }
622
- b.childCount > 0 && n.set(B, {
623
- x0: $,
624
- y0: E,
625
- x1: L,
626
- y1: w,
627
- childCount: b.childCount,
628
- childrenDrawn: 0
629
- });
630
- }
631
- }, "drawBranch"), Bt = /* @__PURE__ */ r((e) => e.split(/<br\s*\/?>|\n/), "splitLines"), ct = /* @__PURE__ */ r((e, l) => {
632
- if (e.length <= l) return e;
633
- let a = [];
634
- for (let s of e.split(/\s+/)) {
635
- let i = a.length - 1;
636
- i >= 0 && a[i].length + 1 + s.length <= l ? a[i] += " " + s : a.push(s);
637
- }
638
- return a.join(`
639
- `);
640
- }, "wrapText"), G = /* @__PURE__ */ r((e, l, a, s, i, d, p) => {
641
- let u = Bt(l), f = p * 1.05, g = e.append("text").attr("class", i).attr("text-anchor", d).attr("x", a).attr("y", s - (u.length - 1) * f / 2);
642
- for (let [x, m] of u.entries()) g.append("tspan").attr("x", a).attr("dy", x === 0 ? 0 : f).text(m);
643
- return g;
644
- }, "drawMultilineText"), lt = /* @__PURE__ */ r((e, l, a) => e + (l - e) * a, "lerp"), D = /* @__PURE__ */ r((e, l, a, s, i, d, p) => {
645
- if (p) {
646
- let u = p.roughSvg.line(l, a, s, i, {
647
- roughness: 1.5,
648
- seed: p.seed,
649
- stroke: p.lineColor,
650
- strokeWidth: 2
651
- });
652
- e.append(() => u).attr("class", d);
653
- return;
654
- }
655
- return e.append("line").attr("class", d).attr("x1", l).attr("y1", a).attr("x2", s).attr("y2", i);
656
- }, "drawLine"), Ot = {
657
- parser: _t,
658
- get db() {
659
- return new vt();
660
- },
661
- renderer: { draw: Et },
662
- styles: /* @__PURE__ */ r((e) => `
663
- .ishikawa .ishikawa-spine,
664
- .ishikawa .ishikawa-branch,
665
- .ishikawa .ishikawa-sub-branch {
666
- stroke: ${e.lineColor};
667
- stroke-width: 2;
668
- fill: none;
669
- }
670
-
671
- .ishikawa .ishikawa-sub-branch {
672
- stroke-width: 1;
673
- }
674
-
675
- .ishikawa .ishikawa-arrow {
676
- fill: ${e.lineColor};
677
- }
678
-
679
- .ishikawa .ishikawa-head {
680
- fill: ${e.mainBkg};
681
- stroke: ${e.lineColor};
682
- stroke-width: 2;
683
- }
684
-
685
- .ishikawa .ishikawa-label-box {
686
- fill: ${e.mainBkg};
687
- stroke: ${e.lineColor};
688
- stroke-width: 2;
689
- }
690
-
691
- .ishikawa text {
692
- font-family: ${e.fontFamily};
693
- font-size: ${e.fontSize};
694
- fill: ${e.textColor};
695
- }
696
-
697
- .ishikawa .ishikawa-head-label {
698
- font-weight: 600;
699
- text-anchor: middle;
700
- dominant-baseline: middle;
701
- font-size: 14px;
702
- }
703
-
704
- .ishikawa .ishikawa-label {
705
- text-anchor: end;
706
- }
707
-
708
- .ishikawa .ishikawa-label.cause {
709
- text-anchor: middle;
710
- dominant-baseline: middle;
711
- }
712
-
713
- .ishikawa .ishikawa-label.align {
714
- text-anchor: end;
715
- dominant-baseline: middle;
716
- }
717
-
718
- .ishikawa .ishikawa-label.up {
719
- dominant-baseline: baseline;
720
- }
721
-
722
- .ishikawa .ishikawa-label.down {
723
- dominant-baseline: hanging;
724
- }
725
- `, "getStyles")
726
- };
727
- export {
728
- Ot as diagram
729
- };