lowcoder-comps 2.4.13 → 2.4.15

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 (51) hide show
  1. package/{0fa873f8.js → 0bb0c92e.js} +4 -4
  2. package/{1d0578cc.js → 0cc36377.js} +919 -969
  3. package/{4ee1107f.js → 0fa86771.js} +411 -451
  4. package/{7ceb1a86.js → 19a2ee87.js} +1067 -1085
  5. package/{62a4e802.js → 1b41afb7.js} +6 -6
  6. package/{140d1965.js → 1e5b4466.js} +1 -1
  7. package/21ce624b.js +433 -0
  8. package/247d363c.js +797 -0
  9. package/{66d40f47.js → 2dc10e5c.js} +96 -99
  10. package/{48262065.js → 3a91cb5c.js} +8 -8
  11. package/{bfff0c9e.js → 3ebe8123.js} +26 -27
  12. package/{e60eb1d6.js → 3f2bde45.js} +1 -1
  13. package/{08ce8965.js → 4046c39a.js} +247 -258
  14. package/{256b619e.js → 428ebac9.js} +14 -15
  15. package/{f85b9955.js → 4b8936b0.js} +68 -69
  16. package/{722d14f3.js → 4d48e6df.js} +6 -6
  17. package/{93e77b54.js → 558e8ee5.js} +4 -4
  18. package/{d2b89014.js → 56f6e990.js} +92 -92
  19. package/{6c5168e9.js → 5a31cef7.js} +2 -2
  20. package/{7873457c.js → 5d41cf38.js} +6 -6
  21. package/{5d259708.js → 5fd9a898.js} +4 -5
  22. package/{2c7a98c7.js → 63a771ab.js} +8 -8
  23. package/6a32f1c1.js +206 -0
  24. package/{e7717e30.js → 7035666f.js} +7 -7
  25. package/{c840f94c.js → 74ef17ae.js} +140 -141
  26. package/{eeeac330.js → 7cc252e4.js} +65540 -59868
  27. package/81d6ce63.js +817 -0
  28. package/{c8211b18.js → 832e744b.js} +1 -1
  29. package/{81a0d6f1.js → 8718dc59.js} +12 -12
  30. package/{7a22ada0.js → 88953f96.js} +18 -18
  31. package/a8d4a50e.js +373 -0
  32. package/aa88392e.js +190 -0
  33. package/b0862b2f.js +1083 -0
  34. package/{62c4dc6e.js → c1b710aa.js} +5 -5
  35. package/{4cf9b6b3.js → d72b57c8.js} +12713 -12735
  36. package/{629dfdca.js → e441921a.js} +4 -4
  37. package/{47848c42.js → e5b014a9.js} +5 -5
  38. package/{b7fefb34.js → eb3bf879.js} +2 -2
  39. package/{febae45b.js → eb5cf40c.js} +2 -2
  40. package/{ddee0e99.js → edc74d11.js} +3 -3
  41. package/f0f41787.js +1264 -0
  42. package/index.js +2 -2
  43. package/package.json +1 -1
  44. package/1de1a3c9.js +0 -1102
  45. package/2510669f.js +0 -237
  46. package/68ee7280.js +0 -1276
  47. package/89baa2e6.js +0 -391
  48. package/9dc6adcd.js +0 -819
  49. package/ab55adad.js +0 -818
  50. package/c459c043.js +0 -208
  51. package/e47dc9ca.js +0 -455
package/68ee7280.js DELETED
@@ -1,1276 +0,0 @@
1
- var Ge = Object.defineProperty, Se = Object.defineProperties;
2
- var Ae = Object.getOwnPropertyDescriptors;
3
- var ge = Object.getOwnPropertySymbols;
4
- var Ie = Object.prototype.hasOwnProperty, Ne = Object.prototype.propertyIsEnumerable;
5
- var de = (r, a, o) => a in r ? Ge(r, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[a] = o, ke = (r, a) => {
6
- for (var o in a || (a = {}))
7
- Ie.call(a, o) && de(r, o, a[o]);
8
- if (ge)
9
- for (var o of ge(a))
10
- Ne.call(a, o) && de(r, o, a[o]);
11
- return r;
12
- }, xe = (r, a) => Se(r, Ae(a));
13
- import { e as v, s as He, a as Be, b as Ve, d as De, F as ze, G as je, l as B, m as D, H as qe, j as Ye, C as Fe, K as Ke, L as Ue } from "./eeeac330.js";
14
- var me = function() {
15
- var r = function(S, l, u, k) {
16
- for (u = u || {}, k = S.length; k--; u[S[k]] = l)
17
- ;
18
- return u;
19
- }, a = [1, 3], o = [1, 6], h = [1, 4], i = [1, 5], c = [2, 5], b = [1, 12], m = [5, 7, 13, 19, 21, 23, 24, 26, 28, 31, 37, 40, 47], x = [7, 13, 19, 21, 23, 24, 26, 28, 31, 37, 40], y = [7, 12, 13, 19, 21, 23, 24, 26, 28, 31, 37, 40], n = [7, 13, 47], C = [1, 42], _ = [1, 41], g = [7, 13, 29, 32, 35, 38, 47], f = [1, 55], d = [1, 56], p = [1, 57], E = [7, 13, 32, 35, 42, 47], z = {
20
- trace: function() {
21
- },
22
- yy: {},
23
- symbols_: { error: 2, start: 3, eol: 4, GG: 5, document: 6, EOF: 7, ":": 8, DIR: 9, options: 10, body: 11, OPT: 12, NL: 13, line: 14, statement: 15, commitStatement: 16, mergeStatement: 17, cherryPickStatement: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, section: 24, branchStatement: 25, CHECKOUT: 26, ref: 27, BRANCH: 28, ORDER: 29, NUM: 30, CHERRY_PICK: 31, COMMIT_ID: 32, STR: 33, PARENT_COMMIT: 34, COMMIT_TAG: 35, EMPTYSTR: 36, MERGE: 37, COMMIT_TYPE: 38, commitType: 39, COMMIT: 40, commit_arg: 41, COMMIT_MSG: 42, NORMAL: 43, REVERSE: 44, HIGHLIGHT: 45, ID: 46, ";": 47, $accept: 0, $end: 1 },
24
- terminals_: { 2: "error", 5: "GG", 7: "EOF", 8: ":", 9: "DIR", 12: "OPT", 13: "NL", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "section", 26: "CHECKOUT", 28: "BRANCH", 29: "ORDER", 30: "NUM", 31: "CHERRY_PICK", 32: "COMMIT_ID", 33: "STR", 34: "PARENT_COMMIT", 35: "COMMIT_TAG", 36: "EMPTYSTR", 37: "MERGE", 38: "COMMIT_TYPE", 40: "COMMIT", 42: "COMMIT_MSG", 43: "NORMAL", 44: "REVERSE", 45: "HIGHLIGHT", 46: "ID", 47: ";" },
25
- productions_: [0, [3, 2], [3, 3], [3, 4], [3, 5], [6, 0], [6, 2], [10, 2], [10, 1], [11, 0], [11, 2], [14, 2], [14, 1], [15, 1], [15, 1], [15, 1], [15, 2], [15, 2], [15, 1], [15, 1], [15, 1], [15, 2], [25, 2], [25, 4], [18, 3], [18, 5], [18, 5], [18, 7], [18, 7], [18, 5], [18, 5], [18, 5], [18, 7], [18, 7], [18, 7], [18, 7], [17, 2], [17, 4], [17, 4], [17, 4], [17, 6], [17, 6], [17, 6], [17, 6], [17, 6], [17, 6], [17, 8], [17, 8], [17, 8], [17, 8], [17, 8], [17, 8], [16, 2], [16, 3], [16, 3], [16, 5], [16, 5], [16, 3], [16, 5], [16, 5], [16, 5], [16, 5], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 3], [16, 5], [16, 5], [16, 5], [16, 5], [16, 5], [16, 5], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [41, 0], [41, 1], [39, 1], [39, 1], [39, 1], [27, 1], [27, 1], [4, 1], [4, 1], [4, 1]],
26
- performAction: function(l, u, k, s, T, e, X) {
27
- var t = e.length - 1;
28
- switch (T) {
29
- case 2:
30
- return e[t];
31
- case 3:
32
- return e[t - 1];
33
- case 4:
34
- return s.setDirection(e[t - 3]), e[t - 1];
35
- case 6:
36
- s.setOptions(e[t - 1]), this.$ = e[t];
37
- break;
38
- case 7:
39
- e[t - 1] += e[t], this.$ = e[t - 1];
40
- break;
41
- case 9:
42
- this.$ = [];
43
- break;
44
- case 10:
45
- e[t - 1].push(e[t]), this.$ = e[t - 1];
46
- break;
47
- case 11:
48
- this.$ = e[t - 1];
49
- break;
50
- case 16:
51
- this.$ = e[t].trim(), s.setAccTitle(this.$);
52
- break;
53
- case 17:
54
- case 18:
55
- this.$ = e[t].trim(), s.setAccDescription(this.$);
56
- break;
57
- case 19:
58
- s.addSection(e[t].substr(8)), this.$ = e[t].substr(8);
59
- break;
60
- case 21:
61
- s.checkout(e[t]);
62
- break;
63
- case 22:
64
- s.branch(e[t]);
65
- break;
66
- case 23:
67
- s.branch(e[t - 2], e[t]);
68
- break;
69
- case 24:
70
- s.cherryPick(e[t], "", void 0);
71
- break;
72
- case 25:
73
- s.cherryPick(e[t - 2], "", void 0, e[t]);
74
- break;
75
- case 26:
76
- s.cherryPick(e[t - 2], "", e[t]);
77
- break;
78
- case 27:
79
- s.cherryPick(e[t - 4], "", e[t], e[t - 2]);
80
- break;
81
- case 28:
82
- s.cherryPick(e[t - 4], "", e[t - 2], e[t]);
83
- break;
84
- case 29:
85
- s.cherryPick(e[t], "", e[t - 2]);
86
- break;
87
- case 30:
88
- s.cherryPick(e[t], "", "");
89
- break;
90
- case 31:
91
- s.cherryPick(e[t - 2], "", "");
92
- break;
93
- case 32:
94
- s.cherryPick(e[t - 4], "", "", e[t - 2]);
95
- break;
96
- case 33:
97
- s.cherryPick(e[t - 4], "", "", e[t]);
98
- break;
99
- case 34:
100
- s.cherryPick(e[t - 2], "", e[t - 4], e[t]);
101
- break;
102
- case 35:
103
- s.cherryPick(e[t - 2], "", "", e[t]);
104
- break;
105
- case 36:
106
- s.merge(e[t], "", "", "");
107
- break;
108
- case 37:
109
- s.merge(e[t - 2], e[t], "", "");
110
- break;
111
- case 38:
112
- s.merge(e[t - 2], "", e[t], "");
113
- break;
114
- case 39:
115
- s.merge(e[t - 2], "", "", e[t]);
116
- break;
117
- case 40:
118
- s.merge(e[t - 4], e[t], "", e[t - 2]);
119
- break;
120
- case 41:
121
- s.merge(e[t - 4], "", e[t], e[t - 2]);
122
- break;
123
- case 42:
124
- s.merge(e[t - 4], "", e[t - 2], e[t]);
125
- break;
126
- case 43:
127
- s.merge(e[t - 4], e[t - 2], e[t], "");
128
- break;
129
- case 44:
130
- s.merge(e[t - 4], e[t - 2], "", e[t]);
131
- break;
132
- case 45:
133
- s.merge(e[t - 4], e[t], e[t - 2], "");
134
- break;
135
- case 46:
136
- s.merge(e[t - 6], e[t - 4], e[t - 2], e[t]);
137
- break;
138
- case 47:
139
- s.merge(e[t - 6], e[t], e[t - 4], e[t - 2]);
140
- break;
141
- case 48:
142
- s.merge(e[t - 6], e[t - 4], e[t], e[t - 2]);
143
- break;
144
- case 49:
145
- s.merge(e[t - 6], e[t - 2], e[t - 4], e[t]);
146
- break;
147
- case 50:
148
- s.merge(e[t - 6], e[t], e[t - 2], e[t - 4]);
149
- break;
150
- case 51:
151
- s.merge(e[t - 6], e[t - 2], e[t], e[t - 4]);
152
- break;
153
- case 52:
154
- s.commit(e[t]);
155
- break;
156
- case 53:
157
- s.commit("", "", s.commitType.NORMAL, e[t]);
158
- break;
159
- case 54:
160
- s.commit("", "", e[t], "");
161
- break;
162
- case 55:
163
- s.commit("", "", e[t], e[t - 2]);
164
- break;
165
- case 56:
166
- s.commit("", "", e[t - 2], e[t]);
167
- break;
168
- case 57:
169
- s.commit("", e[t], s.commitType.NORMAL, "");
170
- break;
171
- case 58:
172
- s.commit("", e[t - 2], s.commitType.NORMAL, e[t]);
173
- break;
174
- case 59:
175
- s.commit("", e[t], s.commitType.NORMAL, e[t - 2]);
176
- break;
177
- case 60:
178
- s.commit("", e[t - 2], e[t], "");
179
- break;
180
- case 61:
181
- s.commit("", e[t], e[t - 2], "");
182
- break;
183
- case 62:
184
- s.commit("", e[t - 4], e[t - 2], e[t]);
185
- break;
186
- case 63:
187
- s.commit("", e[t - 4], e[t], e[t - 2]);
188
- break;
189
- case 64:
190
- s.commit("", e[t - 2], e[t - 4], e[t]);
191
- break;
192
- case 65:
193
- s.commit("", e[t], e[t - 4], e[t - 2]);
194
- break;
195
- case 66:
196
- s.commit("", e[t], e[t - 2], e[t - 4]);
197
- break;
198
- case 67:
199
- s.commit("", e[t - 2], e[t], e[t - 4]);
200
- break;
201
- case 68:
202
- s.commit(e[t], "", s.commitType.NORMAL, "");
203
- break;
204
- case 69:
205
- s.commit(e[t], "", s.commitType.NORMAL, e[t - 2]);
206
- break;
207
- case 70:
208
- s.commit(e[t - 2], "", s.commitType.NORMAL, e[t]);
209
- break;
210
- case 71:
211
- s.commit(e[t - 2], "", e[t], "");
212
- break;
213
- case 72:
214
- s.commit(e[t], "", e[t - 2], "");
215
- break;
216
- case 73:
217
- s.commit(e[t], e[t - 2], s.commitType.NORMAL, "");
218
- break;
219
- case 74:
220
- s.commit(e[t - 2], e[t], s.commitType.NORMAL, "");
221
- break;
222
- case 75:
223
- s.commit(e[t - 4], "", e[t - 2], e[t]);
224
- break;
225
- case 76:
226
- s.commit(e[t - 4], "", e[t], e[t - 2]);
227
- break;
228
- case 77:
229
- s.commit(e[t - 2], "", e[t - 4], e[t]);
230
- break;
231
- case 78:
232
- s.commit(e[t], "", e[t - 4], e[t - 2]);
233
- break;
234
- case 79:
235
- s.commit(e[t], "", e[t - 2], e[t - 4]);
236
- break;
237
- case 80:
238
- s.commit(e[t - 2], "", e[t], e[t - 4]);
239
- break;
240
- case 81:
241
- s.commit(e[t - 4], e[t], e[t - 2], "");
242
- break;
243
- case 82:
244
- s.commit(e[t - 4], e[t - 2], e[t], "");
245
- break;
246
- case 83:
247
- s.commit(e[t - 2], e[t], e[t - 4], "");
248
- break;
249
- case 84:
250
- s.commit(e[t], e[t - 2], e[t - 4], "");
251
- break;
252
- case 85:
253
- s.commit(e[t], e[t - 4], e[t - 2], "");
254
- break;
255
- case 86:
256
- s.commit(e[t - 2], e[t - 4], e[t], "");
257
- break;
258
- case 87:
259
- s.commit(e[t - 4], e[t], s.commitType.NORMAL, e[t - 2]);
260
- break;
261
- case 88:
262
- s.commit(e[t - 4], e[t - 2], s.commitType.NORMAL, e[t]);
263
- break;
264
- case 89:
265
- s.commit(e[t - 2], e[t], s.commitType.NORMAL, e[t - 4]);
266
- break;
267
- case 90:
268
- s.commit(e[t], e[t - 2], s.commitType.NORMAL, e[t - 4]);
269
- break;
270
- case 91:
271
- s.commit(e[t], e[t - 4], s.commitType.NORMAL, e[t - 2]);
272
- break;
273
- case 92:
274
- s.commit(e[t - 2], e[t - 4], s.commitType.NORMAL, e[t]);
275
- break;
276
- case 93:
277
- s.commit(e[t - 6], e[t - 4], e[t - 2], e[t]);
278
- break;
279
- case 94:
280
- s.commit(e[t - 6], e[t - 4], e[t], e[t - 2]);
281
- break;
282
- case 95:
283
- s.commit(e[t - 6], e[t - 2], e[t - 4], e[t]);
284
- break;
285
- case 96:
286
- s.commit(e[t - 6], e[t], e[t - 4], e[t - 2]);
287
- break;
288
- case 97:
289
- s.commit(e[t - 6], e[t - 2], e[t], e[t - 4]);
290
- break;
291
- case 98:
292
- s.commit(e[t - 6], e[t], e[t - 2], e[t - 4]);
293
- break;
294
- case 99:
295
- s.commit(e[t - 4], e[t - 6], e[t - 2], e[t]);
296
- break;
297
- case 100:
298
- s.commit(e[t - 4], e[t - 6], e[t], e[t - 2]);
299
- break;
300
- case 101:
301
- s.commit(e[t - 2], e[t - 6], e[t - 4], e[t]);
302
- break;
303
- case 102:
304
- s.commit(e[t], e[t - 6], e[t - 4], e[t - 2]);
305
- break;
306
- case 103:
307
- s.commit(e[t - 2], e[t - 6], e[t], e[t - 4]);
308
- break;
309
- case 104:
310
- s.commit(e[t], e[t - 6], e[t - 2], e[t - 4]);
311
- break;
312
- case 105:
313
- s.commit(e[t], e[t - 4], e[t - 2], e[t - 6]);
314
- break;
315
- case 106:
316
- s.commit(e[t - 2], e[t - 4], e[t], e[t - 6]);
317
- break;
318
- case 107:
319
- s.commit(e[t], e[t - 2], e[t - 4], e[t - 6]);
320
- break;
321
- case 108:
322
- s.commit(e[t - 2], e[t], e[t - 4], e[t - 6]);
323
- break;
324
- case 109:
325
- s.commit(e[t - 4], e[t - 2], e[t], e[t - 6]);
326
- break;
327
- case 110:
328
- s.commit(e[t - 4], e[t], e[t - 2], e[t - 6]);
329
- break;
330
- case 111:
331
- s.commit(e[t - 2], e[t - 4], e[t - 6], e[t]);
332
- break;
333
- case 112:
334
- s.commit(e[t], e[t - 4], e[t - 6], e[t - 2]);
335
- break;
336
- case 113:
337
- s.commit(e[t - 2], e[t], e[t - 6], e[t - 4]);
338
- break;
339
- case 114:
340
- s.commit(e[t], e[t - 2], e[t - 6], e[t - 4]);
341
- break;
342
- case 115:
343
- s.commit(e[t - 4], e[t - 2], e[t - 6], e[t]);
344
- break;
345
- case 116:
346
- s.commit(e[t - 4], e[t], e[t - 6], e[t - 2]);
347
- break;
348
- case 117:
349
- this.$ = "";
350
- break;
351
- case 118:
352
- this.$ = e[t];
353
- break;
354
- case 119:
355
- this.$ = s.commitType.NORMAL;
356
- break;
357
- case 120:
358
- this.$ = s.commitType.REVERSE;
359
- break;
360
- case 121:
361
- this.$ = s.commitType.HIGHLIGHT;
362
- break;
363
- }
364
- },
365
- table: [{ 3: 1, 4: 2, 5: a, 7: o, 13: h, 47: i }, { 1: [3] }, { 3: 7, 4: 2, 5: a, 7: o, 13: h, 47: i }, { 6: 8, 7: c, 8: [1, 9], 9: [1, 10], 10: 11, 13: b }, r(m, [2, 124]), r(m, [2, 125]), r(m, [2, 126]), { 1: [2, 1] }, { 7: [1, 13] }, { 6: 14, 7: c, 10: 11, 13: b }, { 8: [1, 15] }, r(x, [2, 9], { 11: 16, 12: [1, 17] }), r(y, [2, 8]), { 1: [2, 2] }, { 7: [1, 18] }, { 6: 19, 7: c, 10: 11, 13: b }, { 7: [2, 6], 13: [1, 22], 14: 20, 15: 21, 16: 23, 17: 24, 18: 25, 19: [1, 26], 21: [1, 27], 23: [1, 28], 24: [1, 29], 25: 30, 26: [1, 31], 28: [1, 35], 31: [1, 34], 37: [1, 33], 40: [1, 32] }, r(y, [2, 7]), { 1: [2, 3] }, { 7: [1, 36] }, r(x, [2, 10]), { 4: 37, 7: o, 13: h, 47: i }, r(x, [2, 12]), r(n, [2, 13]), r(n, [2, 14]), r(n, [2, 15]), { 20: [1, 38] }, { 22: [1, 39] }, r(n, [2, 18]), r(n, [2, 19]), r(n, [2, 20]), { 27: 40, 33: C, 46: _ }, r(n, [2, 117], { 41: 43, 32: [1, 46], 33: [1, 48], 35: [1, 44], 38: [1, 45], 42: [1, 47] }), { 27: 49, 33: C, 46: _ }, { 32: [1, 50], 35: [1, 51] }, { 27: 52, 33: C, 46: _ }, { 1: [2, 4] }, r(x, [2, 11]), r(n, [2, 16]), r(n, [2, 17]), r(n, [2, 21]), r(g, [2, 122]), r(g, [2, 123]), r(n, [2, 52]), { 33: [1, 53] }, { 39: 54, 43: f, 44: d, 45: p }, { 33: [1, 58] }, { 33: [1, 59] }, r(n, [2, 118]), r(n, [2, 36], { 32: [1, 60], 35: [1, 62], 38: [1, 61] }), { 33: [1, 63] }, { 33: [1, 64], 36: [1, 65] }, r(n, [2, 22], { 29: [1, 66] }), r(n, [2, 53], { 32: [1, 68], 38: [1, 67], 42: [1, 69] }), r(n, [2, 54], { 32: [1, 71], 35: [1, 70], 42: [1, 72] }), r(E, [2, 119]), r(E, [2, 120]), r(E, [2, 121]), r(n, [2, 57], { 35: [1, 73], 38: [1, 74], 42: [1, 75] }), r(n, [2, 68], { 32: [1, 78], 35: [1, 76], 38: [1, 77] }), { 33: [1, 79] }, { 39: 80, 43: f, 44: d, 45: p }, { 33: [1, 81] }, r(n, [2, 24], { 34: [1, 82], 35: [1, 83] }), { 32: [1, 84] }, { 32: [1, 85] }, { 30: [1, 86] }, { 39: 87, 43: f, 44: d, 45: p }, { 33: [1, 88] }, { 33: [1, 89] }, { 33: [1, 90] }, { 33: [1, 91] }, { 33: [1, 92] }, { 33: [1, 93] }, { 39: 94, 43: f, 44: d, 45: p }, { 33: [1, 95] }, { 33: [1, 96] }, { 39: 97, 43: f, 44: d, 45: p }, { 33: [1, 98] }, r(n, [2, 37], { 35: [1, 100], 38: [1, 99] }), r(n, [2, 38], { 32: [1, 102], 35: [1, 101] }), r(n, [2, 39], { 32: [1, 103], 38: [1, 104] }), { 33: [1, 105] }, { 33: [1, 106], 36: [1, 107] }, { 33: [1, 108] }, { 33: [1, 109] }, r(n, [2, 23]), r(n, [2, 55], { 32: [1, 110], 42: [1, 111] }), r(n, [2, 59], { 38: [1, 112], 42: [1, 113] }), r(n, [2, 69], { 32: [1, 115], 38: [1, 114] }), r(n, [2, 56], { 32: [1, 116], 42: [1, 117] }), r(n, [2, 61], { 35: [1, 118], 42: [1, 119] }), r(n, [2, 72], { 32: [1, 121], 35: [1, 120] }), r(n, [2, 58], { 38: [1, 122], 42: [1, 123] }), r(n, [2, 60], { 35: [1, 124], 42: [1, 125] }), r(n, [2, 73], { 35: [1, 127], 38: [1, 126] }), r(n, [2, 70], { 32: [1, 129], 38: [1, 128] }), r(n, [2, 71], { 32: [1, 131], 35: [1, 130] }), r(n, [2, 74], { 35: [1, 133], 38: [1, 132] }), { 39: 134, 43: f, 44: d, 45: p }, { 33: [1, 135] }, { 33: [1, 136] }, { 33: [1, 137] }, { 33: [1, 138] }, { 39: 139, 43: f, 44: d, 45: p }, r(n, [2, 25], { 35: [1, 140] }), r(n, [2, 26], { 34: [1, 141] }), r(n, [2, 31], { 34: [1, 142] }), r(n, [2, 29], { 34: [1, 143] }), r(n, [2, 30], { 34: [1, 144] }), { 33: [1, 145] }, { 33: [1, 146] }, { 39: 147, 43: f, 44: d, 45: p }, { 33: [1, 148] }, { 39: 149, 43: f, 44: d, 45: p }, { 33: [1, 150] }, { 33: [1, 151] }, { 33: [1, 152] }, { 33: [1, 153] }, { 33: [1, 154] }, { 33: [1, 155] }, { 33: [1, 156] }, { 39: 157, 43: f, 44: d, 45: p }, { 33: [1, 158] }, { 33: [1, 159] }, { 33: [1, 160] }, { 39: 161, 43: f, 44: d, 45: p }, { 33: [1, 162] }, { 39: 163, 43: f, 44: d, 45: p }, { 33: [1, 164] }, { 33: [1, 165] }, { 33: [1, 166] }, { 39: 167, 43: f, 44: d, 45: p }, { 33: [1, 168] }, r(n, [2, 43], { 35: [1, 169] }), r(n, [2, 44], { 38: [1, 170] }), r(n, [2, 42], { 32: [1, 171] }), r(n, [2, 45], { 35: [1, 172] }), r(n, [2, 40], { 38: [1, 173] }), r(n, [2, 41], { 32: [1, 174] }), { 33: [1, 175], 36: [1, 176] }, { 33: [1, 177] }, { 33: [1, 178] }, { 33: [1, 179] }, { 33: [1, 180] }, r(n, [2, 66], { 42: [1, 181] }), r(n, [2, 79], { 32: [1, 182] }), r(n, [2, 67], { 42: [1, 183] }), r(n, [2, 90], { 38: [1, 184] }), r(n, [2, 80], { 32: [1, 185] }), r(n, [2, 89], { 38: [1, 186] }), r(n, [2, 65], { 42: [1, 187] }), r(n, [2, 78], { 32: [1, 188] }), r(n, [2, 64], { 42: [1, 189] }), r(n, [2, 84], { 35: [1, 190] }), r(n, [2, 77], { 32: [1, 191] }), r(n, [2, 83], { 35: [1, 192] }), r(n, [2, 63], { 42: [1, 193] }), r(n, [2, 91], { 38: [1, 194] }), r(n, [2, 62], { 42: [1, 195] }), r(n, [2, 85], { 35: [1, 196] }), r(n, [2, 86], { 35: [1, 197] }), r(n, [2, 92], { 38: [1, 198] }), r(n, [2, 76], { 32: [1, 199] }), r(n, [2, 87], { 38: [1, 200] }), r(n, [2, 75], { 32: [1, 201] }), r(n, [2, 81], { 35: [1, 202] }), r(n, [2, 82], { 35: [1, 203] }), r(n, [2, 88], { 38: [1, 204] }), { 33: [1, 205] }, { 39: 206, 43: f, 44: d, 45: p }, { 33: [1, 207] }, { 33: [1, 208] }, { 39: 209, 43: f, 44: d, 45: p }, { 33: [1, 210] }, r(n, [2, 27]), r(n, [2, 32]), r(n, [2, 28]), r(n, [2, 33]), r(n, [2, 34]), r(n, [2, 35]), { 33: [1, 211] }, { 33: [1, 212] }, { 33: [1, 213] }, { 39: 214, 43: f, 44: d, 45: p }, { 33: [1, 215] }, { 39: 216, 43: f, 44: d, 45: p }, { 33: [1, 217] }, { 33: [1, 218] }, { 33: [1, 219] }, { 33: [1, 220] }, { 33: [1, 221] }, { 33: [1, 222] }, { 33: [1, 223] }, { 39: 224, 43: f, 44: d, 45: p }, { 33: [1, 225] }, { 33: [1, 226] }, { 33: [1, 227] }, { 39: 228, 43: f, 44: d, 45: p }, { 33: [1, 229] }, { 39: 230, 43: f, 44: d, 45: p }, { 33: [1, 231] }, { 33: [1, 232] }, { 33: [1, 233] }, { 39: 234, 43: f, 44: d, 45: p }, r(n, [2, 46]), r(n, [2, 48]), r(n, [2, 47]), r(n, [2, 49]), r(n, [2, 51]), r(n, [2, 50]), r(n, [2, 107]), r(n, [2, 108]), r(n, [2, 105]), r(n, [2, 106]), r(n, [2, 110]), r(n, [2, 109]), r(n, [2, 114]), r(n, [2, 113]), r(n, [2, 112]), r(n, [2, 111]), r(n, [2, 116]), r(n, [2, 115]), r(n, [2, 104]), r(n, [2, 103]), r(n, [2, 102]), r(n, [2, 101]), r(n, [2, 99]), r(n, [2, 100]), r(n, [2, 98]), r(n, [2, 97]), r(n, [2, 96]), r(n, [2, 95]), r(n, [2, 93]), r(n, [2, 94])],
366
- defaultActions: { 7: [2, 1], 13: [2, 2], 18: [2, 3], 36: [2, 4] },
367
- parseError: function(l, u) {
368
- if (u.recoverable)
369
- this.trace(l);
370
- else {
371
- var k = new Error(l);
372
- throw k.hash = u, k;
373
- }
374
- },
375
- parse: function(l) {
376
- var u = this, k = [0], s = [], T = [null], e = [], X = this.table, t = "", re = 0, fe = 0, ve = 2, pe = 1, Ce = e.slice.call(arguments, 1), O = Object.create(this.lexer), F = { yy: {} };
377
- for (var ce in this.yy)
378
- Object.prototype.hasOwnProperty.call(this.yy, ce) && (F.yy[ce] = this.yy[ce]);
379
- O.setInput(l, F.yy), F.yy.lexer = O, F.yy.parser = this, typeof O.yylloc == "undefined" && (O.yylloc = {});
380
- var oe = O.yylloc;
381
- e.push(oe);
382
- var Oe = O.options && O.options.ranges;
383
- typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
384
- function Pe() {
385
- var q;
386
- return q = s.pop() || O.lex() || pe, typeof q != "number" && (q instanceof Array && (s = q, q = s.pop()), q = u.symbols_[q] || q), q;
387
- }
388
- for (var N, K, V, le, J = {}, ie, j, be, se; ; ) {
389
- if (K = k[k.length - 1], this.defaultActions[K] ? V = this.defaultActions[K] : ((N === null || typeof N == "undefined") && (N = Pe()), V = X[K] && X[K][N]), typeof V == "undefined" || !V.length || !V[0]) {
390
- var he = "";
391
- se = [];
392
- for (ie in X[K])
393
- this.terminals_[ie] && ie > ve && se.push("'" + this.terminals_[ie] + "'");
394
- O.showPosition ? he = "Parse error on line " + (re + 1) + `:
395
- ` + O.showPosition() + `
396
- Expecting ` + se.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : he = "Parse error on line " + (re + 1) + ": Unexpected " + (N == pe ? "end of input" : "'" + (this.terminals_[N] || N) + "'"), this.parseError(he, {
397
- text: O.match,
398
- token: this.terminals_[N] || N,
399
- line: O.yylineno,
400
- loc: oe,
401
- expected: se
402
- });
403
- }
404
- if (V[0] instanceof Array && V.length > 1)
405
- throw new Error("Parse Error: multiple actions possible at state: " + K + ", token: " + N);
406
- switch (V[0]) {
407
- case 1:
408
- k.push(N), T.push(O.yytext), e.push(O.yylloc), k.push(V[1]), N = null, fe = O.yyleng, t = O.yytext, re = O.yylineno, oe = O.yylloc;
409
- break;
410
- case 2:
411
- if (j = this.productions_[V[1]][1], J.$ = T[T.length - j], J._$ = {
412
- first_line: e[e.length - (j || 1)].first_line,
413
- last_line: e[e.length - 1].last_line,
414
- first_column: e[e.length - (j || 1)].first_column,
415
- last_column: e[e.length - 1].last_column
416
- }, Oe && (J._$.range = [
417
- e[e.length - (j || 1)].range[0],
418
- e[e.length - 1].range[1]
419
- ]), le = this.performAction.apply(J, [
420
- t,
421
- fe,
422
- re,
423
- F.yy,
424
- V[1],
425
- T,
426
- e
427
- ].concat(Ce)), typeof le != "undefined")
428
- return le;
429
- j && (k = k.slice(0, -1 * j * 2), T = T.slice(0, -1 * j), e = e.slice(0, -1 * j)), k.push(this.productions_[V[1]][0]), T.push(J.$), e.push(J._$), be = X[k[k.length - 2]][k[k.length - 1]], k.push(be);
430
- break;
431
- case 3:
432
- return !0;
433
- }
434
- }
435
- return !0;
436
- }
437
- }, R = function() {
438
- var S = {
439
- EOF: 1,
440
- parseError: function(u, k) {
441
- if (this.yy.parser)
442
- this.yy.parser.parseError(u, k);
443
- else
444
- throw new Error(u);
445
- },
446
- // resets the lexer, sets new input
447
- setInput: function(l, u) {
448
- return this.yy = u || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
449
- first_line: 1,
450
- first_column: 0,
451
- last_line: 1,
452
- last_column: 0
453
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
454
- },
455
- // consumes and returns one char from the input
456
- input: function() {
457
- var l = this._input[0];
458
- this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
459
- var u = l.match(/(?:\r\n?|\n).*/g);
460
- return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
461
- },
462
- // unshifts one char (or a string) into the input
463
- unput: function(l) {
464
- var u = l.length, k = l.split(/(?:\r\n?|\n)/g);
465
- this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
466
- var s = this.match.split(/(?:\r\n?|\n)/g);
467
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), k.length - 1 && (this.yylineno -= k.length - 1);
468
- var T = this.yylloc.range;
469
- return this.yylloc = {
470
- first_line: this.yylloc.first_line,
471
- last_line: this.yylineno + 1,
472
- first_column: this.yylloc.first_column,
473
- last_column: k ? (k.length === s.length ? this.yylloc.first_column : 0) + s[s.length - k.length].length - k[0].length : this.yylloc.first_column - u
474
- }, this.options.ranges && (this.yylloc.range = [T[0], T[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
475
- },
476
- // When called from action, caches matched text and appends it on next action
477
- more: function() {
478
- return this._more = !0, this;
479
- },
480
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
481
- reject: function() {
482
- if (this.options.backtrack_lexer)
483
- this._backtrack = !0;
484
- else
485
- 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).
486
- ` + this.showPosition(), {
487
- text: "",
488
- token: null,
489
- line: this.yylineno
490
- });
491
- return this;
492
- },
493
- // retain first n characters of the match
494
- less: function(l) {
495
- this.unput(this.match.slice(l));
496
- },
497
- // displays already matched input, i.e. for error messages
498
- pastInput: function() {
499
- var l = this.matched.substr(0, this.matched.length - this.match.length);
500
- return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
501
- },
502
- // displays upcoming input, i.e. for error messages
503
- upcomingInput: function() {
504
- var l = this.match;
505
- return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
506
- },
507
- // displays the character position where the lexing error occurred, i.e. for error messages
508
- showPosition: function() {
509
- var l = this.pastInput(), u = new Array(l.length + 1).join("-");
510
- return l + this.upcomingInput() + `
511
- ` + u + "^";
512
- },
513
- // test the lexed token: return FALSE when not a match, otherwise return token
514
- test_match: function(l, u) {
515
- var k, s, T;
516
- if (this.options.backtrack_lexer && (T = {
517
- yylineno: this.yylineno,
518
- yylloc: {
519
- first_line: this.yylloc.first_line,
520
- last_line: this.last_line,
521
- first_column: this.yylloc.first_column,
522
- last_column: this.yylloc.last_column
523
- },
524
- yytext: this.yytext,
525
- match: this.match,
526
- matches: this.matches,
527
- matched: this.matched,
528
- yyleng: this.yyleng,
529
- offset: this.offset,
530
- _more: this._more,
531
- _input: this._input,
532
- yy: this.yy,
533
- conditionStack: this.conditionStack.slice(0),
534
- done: this.done
535
- }, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), s = l[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
536
- first_line: this.yylloc.last_line,
537
- last_line: this.yylineno + 1,
538
- first_column: this.yylloc.last_column,
539
- last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
540
- }, this.yytext += l[0], this.match += l[0], this.matches = l, 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(l[0].length), this.matched += l[0], k = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), k)
541
- return k;
542
- if (this._backtrack) {
543
- for (var e in T)
544
- this[e] = T[e];
545
- return !1;
546
- }
547
- return !1;
548
- },
549
- // return next match in input
550
- next: function() {
551
- if (this.done)
552
- return this.EOF;
553
- this._input || (this.done = !0);
554
- var l, u, k, s;
555
- this._more || (this.yytext = "", this.match = "");
556
- for (var T = this._currentRules(), e = 0; e < T.length; e++)
557
- if (k = this._input.match(this.rules[T[e]]), k && (!u || k[0].length > u[0].length)) {
558
- if (u = k, s = e, this.options.backtrack_lexer) {
559
- if (l = this.test_match(k, T[e]), l !== !1)
560
- return l;
561
- if (this._backtrack) {
562
- u = !1;
563
- continue;
564
- } else
565
- return !1;
566
- } else if (!this.options.flex)
567
- break;
568
- }
569
- return u ? (l = this.test_match(u, T[s]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
570
- ` + this.showPosition(), {
571
- text: "",
572
- token: null,
573
- line: this.yylineno
574
- });
575
- },
576
- // return next match that has a token
577
- lex: function() {
578
- var u = this.next();
579
- return u || this.lex();
580
- },
581
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
582
- begin: function(u) {
583
- this.conditionStack.push(u);
584
- },
585
- // pop the previously active lexer condition state off the condition stack
586
- popState: function() {
587
- var u = this.conditionStack.length - 1;
588
- return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
589
- },
590
- // produce the lexer rule set which is active for the currently active lexer condition state
591
- _currentRules: function() {
592
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
593
- },
594
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
595
- topState: function(u) {
596
- return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
597
- },
598
- // alias for begin(condition)
599
- pushState: function(u) {
600
- this.begin(u);
601
- },
602
- // return the number of states currently on the stack
603
- stateStackSize: function() {
604
- return this.conditionStack.length;
605
- },
606
- options: { "case-insensitive": !0 },
607
- performAction: function(u, k, s, T) {
608
- switch (s) {
609
- case 0:
610
- return this.begin("acc_title"), 19;
611
- case 1:
612
- return this.popState(), "acc_title_value";
613
- case 2:
614
- return this.begin("acc_descr"), 21;
615
- case 3:
616
- return this.popState(), "acc_descr_value";
617
- case 4:
618
- this.begin("acc_descr_multiline");
619
- break;
620
- case 5:
621
- this.popState();
622
- break;
623
- case 6:
624
- return "acc_descr_multiline_value";
625
- case 7:
626
- return 13;
627
- case 8:
628
- break;
629
- case 9:
630
- break;
631
- case 10:
632
- return 5;
633
- case 11:
634
- return 40;
635
- case 12:
636
- return 32;
637
- case 13:
638
- return 38;
639
- case 14:
640
- return 42;
641
- case 15:
642
- return 43;
643
- case 16:
644
- return 44;
645
- case 17:
646
- return 45;
647
- case 18:
648
- return 35;
649
- case 19:
650
- return 28;
651
- case 20:
652
- return 29;
653
- case 21:
654
- return 37;
655
- case 22:
656
- return 31;
657
- case 23:
658
- return 34;
659
- case 24:
660
- return 26;
661
- case 25:
662
- return 9;
663
- case 26:
664
- return 9;
665
- case 27:
666
- return 8;
667
- case 28:
668
- return "CARET";
669
- case 29:
670
- this.begin("options");
671
- break;
672
- case 30:
673
- this.popState();
674
- break;
675
- case 31:
676
- return 12;
677
- case 32:
678
- return 36;
679
- case 33:
680
- this.begin("string");
681
- break;
682
- case 34:
683
- this.popState();
684
- break;
685
- case 35:
686
- return 33;
687
- case 36:
688
- return 30;
689
- case 37:
690
- return 46;
691
- case 38:
692
- return 7;
693
- }
694
- },
695
- rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:(\r?\n)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:gitGraph\b)/i, /^(?:commit(?=\s|$))/i, /^(?:id:)/i, /^(?:type:)/i, /^(?:msg:)/i, /^(?:NORMAL\b)/i, /^(?:REVERSE\b)/i, /^(?:HIGHLIGHT\b)/i, /^(?:tag:)/i, /^(?:branch(?=\s|$))/i, /^(?:order:)/i, /^(?:merge(?=\s|$))/i, /^(?:cherry-pick(?=\s|$))/i, /^(?:parent:)/i, /^(?:checkout(?=\s|$))/i, /^(?:LR\b)/i, /^(?:TB\b)/i, /^(?::)/i, /^(?:\^)/i, /^(?:options\r?\n)/i, /^(?:[ \r\n\t]+end\b)/i, /^(?:[\s\S]+(?=[ \r\n\t]+end))/i, /^(?:["]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[0-9]+(?=\s|$))/i, /^(?:\w([-\./\w]*[-\w])?)/i, /^(?:$)/i, /^(?:\s+)/i],
696
- conditions: { acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, options: { rules: [30, 31], inclusive: !1 }, string: { rules: [34, 35], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 32, 33, 36, 37, 38, 39], inclusive: !0 } }
697
- };
698
- return S;
699
- }();
700
- z.lexer = R;
701
- function A() {
702
- this.yy = {};
703
- }
704
- return A.prototype = z, z.Parser = A, new A();
705
- }();
706
- me.parser = me;
707
- const We = me;
708
- let ae = v().gitGraph.mainBranchName, Je = v().gitGraph.mainBranchOrder, M = {}, I = null, ee = {};
709
- ee[ae] = { name: ae, order: Je };
710
- let L = {};
711
- L[ae] = I;
712
- let G = ae, Ee = "LR", W = 0;
713
- function ue() {
714
- return Ue({ length: 7 });
715
- }
716
- function Qe(r, a) {
717
- const o = /* @__PURE__ */ Object.create(null);
718
- return r.reduce((h, i) => {
719
- const c = a(i);
720
- return o[c] || (o[c] = !0, h.push(i)), h;
721
- }, []);
722
- }
723
- const Xe = function(r) {
724
- Ee = r;
725
- };
726
- let Te = {};
727
- const Ze = function(r) {
728
- B.debug("options str", r), r = r && r.trim(), r = r || "{}";
729
- try {
730
- Te = JSON.parse(r);
731
- } catch (a) {
732
- B.error("error while parsing gitGraph options", a.message);
733
- }
734
- }, $e = function() {
735
- return Te;
736
- }, et = function(r, a, o, h) {
737
- B.debug("Entering commit:", r, a, o, h), a = D.sanitizeText(a, v()), r = D.sanitizeText(r, v()), h = D.sanitizeText(h, v());
738
- const i = {
739
- id: a || W + "-" + ue(),
740
- message: r,
741
- seq: W++,
742
- type: o || Q.NORMAL,
743
- tag: h || "",
744
- parents: I == null ? [] : [I.id],
745
- branch: G
746
- };
747
- I = i, M[i.id] = i, L[G] = i.id, B.debug("in pushCommit " + i.id);
748
- }, tt = function(r, a) {
749
- if (r = D.sanitizeText(r, v()), L[r] === void 0)
750
- L[r] = I != null ? I.id : null, ee[r] = { name: r, order: a ? parseInt(a, 10) : null }, we(r), B.debug("in createBranch");
751
- else {
752
- let o = new Error(
753
- 'Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ' + r + '")'
754
- );
755
- throw o.hash = {
756
- text: "branch " + r,
757
- token: "branch " + r,
758
- line: "1",
759
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
760
- expected: ['"checkout ' + r + '"']
761
- }, o;
762
- }
763
- }, rt = function(r, a, o, h) {
764
- r = D.sanitizeText(r, v()), a = D.sanitizeText(a, v());
765
- const i = M[L[G]], c = M[L[r]];
766
- if (G === r) {
767
- let m = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
768
- throw m.hash = {
769
- text: "merge " + r,
770
- token: "merge " + r,
771
- line: "1",
772
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
773
- expected: ["branch abc"]
774
- }, m;
775
- } else if (i === void 0 || !i) {
776
- let m = new Error(
777
- 'Incorrect usage of "merge". Current branch (' + G + ")has no commits"
778
- );
779
- throw m.hash = {
780
- text: "merge " + r,
781
- token: "merge " + r,
782
- line: "1",
783
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
784
- expected: ["commit"]
785
- }, m;
786
- } else if (L[r] === void 0) {
787
- let m = new Error(
788
- 'Incorrect usage of "merge". Branch to be merged (' + r + ") does not exist"
789
- );
790
- throw m.hash = {
791
- text: "merge " + r,
792
- token: "merge " + r,
793
- line: "1",
794
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
795
- expected: ["branch " + r]
796
- }, m;
797
- } else if (c === void 0 || !c) {
798
- let m = new Error(
799
- 'Incorrect usage of "merge". Branch to be merged (' + r + ") has no commits"
800
- );
801
- throw m.hash = {
802
- text: "merge " + r,
803
- token: "merge " + r,
804
- line: "1",
805
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
806
- expected: ['"commit"']
807
- }, m;
808
- } else if (i === c) {
809
- let m = new Error('Incorrect usage of "merge". Both branches have same head');
810
- throw m.hash = {
811
- text: "merge " + r,
812
- token: "merge " + r,
813
- line: "1",
814
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
815
- expected: ["branch abc"]
816
- }, m;
817
- } else if (a && M[a] !== void 0) {
818
- let m = new Error(
819
- 'Incorrect usage of "merge". Commit with id:' + a + " already exists, use different custom Id"
820
- );
821
- throw m.hash = {
822
- text: "merge " + r + a + o + h,
823
- token: "merge " + r + a + o + h,
824
- line: "1",
825
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
826
- expected: [
827
- "merge " + r + " " + a + "_UNIQUE " + o + " " + h
828
- ]
829
- }, m;
830
- }
831
- const b = {
832
- id: a || W + "-" + ue(),
833
- message: "merged branch " + r + " into " + G,
834
- seq: W++,
835
- parents: [I == null ? null : I.id, L[r]],
836
- branch: G,
837
- type: Q.MERGE,
838
- customType: o,
839
- customId: !!a,
840
- tag: h || ""
841
- };
842
- I = b, M[b.id] = b, L[G] = b.id, B.debug(L), B.debug("in mergeBranch");
843
- }, it = function(r, a, o, h) {
844
- if (B.debug("Entering cherryPick:", r, a, o), r = D.sanitizeText(r, v()), a = D.sanitizeText(a, v()), o = D.sanitizeText(o, v()), h = D.sanitizeText(h, v()), !r || M[r] === void 0) {
845
- let b = new Error(
846
- 'Incorrect usage of "cherryPick". Source commit id should exist and provided'
847
- );
848
- throw b.hash = {
849
- text: "cherryPick " + r + " " + a,
850
- token: "cherryPick " + r + " " + a,
851
- line: "1",
852
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
853
- expected: ["cherry-pick abc"]
854
- }, b;
855
- }
856
- let i = M[r], c = i.branch;
857
- if (h && !(Array.isArray(i.parents) && i.parents.includes(h)))
858
- throw new Error(
859
- "Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit."
860
- );
861
- if (i.type === Q.MERGE && !h)
862
- throw new Error(
863
- "Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified."
864
- );
865
- if (!a || M[a] === void 0) {
866
- if (c === G) {
867
- let x = new Error(
868
- 'Incorrect usage of "cherryPick". Source commit is already on current branch'
869
- );
870
- throw x.hash = {
871
- text: "cherryPick " + r + " " + a,
872
- token: "cherryPick " + r + " " + a,
873
- line: "1",
874
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
875
- expected: ["cherry-pick abc"]
876
- }, x;
877
- }
878
- const b = M[L[G]];
879
- if (b === void 0 || !b) {
880
- let x = new Error(
881
- 'Incorrect usage of "cherry-pick". Current branch (' + G + ")has no commits"
882
- );
883
- throw x.hash = {
884
- text: "cherryPick " + r + " " + a,
885
- token: "cherryPick " + r + " " + a,
886
- line: "1",
887
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
888
- expected: ["cherry-pick abc"]
889
- }, x;
890
- }
891
- const m = {
892
- id: W + "-" + ue(),
893
- message: "cherry-picked " + i + " into " + G,
894
- seq: W++,
895
- parents: [I == null ? null : I.id, i.id],
896
- branch: G,
897
- type: Q.CHERRY_PICK,
898
- tag: o != null ? o : `cherry-pick:${i.id}${i.type === Q.MERGE ? `|parent:${h}` : ""}`
899
- };
900
- I = m, M[m.id] = m, L[G] = m.id, B.debug(L), B.debug("in cherryPick");
901
- }
902
- }, we = function(r) {
903
- if (r = D.sanitizeText(r, v()), L[r] === void 0) {
904
- let a = new Error(
905
- 'Trying to checkout branch which is not yet created. (Help try using "branch ' + r + '")'
906
- );
907
- throw a.hash = {
908
- text: "checkout " + r,
909
- token: "checkout " + r,
910
- line: "1",
911
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
912
- expected: ['"branch ' + r + '"']
913
- }, a;
914
- } else {
915
- G = r;
916
- const a = L[G];
917
- I = M[a];
918
- }
919
- };
920
- function ye(r, a, o) {
921
- const h = r.indexOf(a);
922
- h === -1 ? r.push(o) : r.splice(h, 1, o);
923
- }
924
- function Le(r) {
925
- const a = r.reduce((i, c) => i.seq > c.seq ? i : c, r[0]);
926
- let o = "";
927
- r.forEach(function(i) {
928
- i === a ? o += " *" : o += " |";
929
- });
930
- const h = [o, a.id, a.seq];
931
- for (let i in L)
932
- L[i] === a.id && h.push(i);
933
- if (B.debug(h.join(" ")), a.parents && a.parents.length == 2) {
934
- const i = M[a.parents[0]];
935
- ye(r, a, i), r.push(M[a.parents[1]]);
936
- } else {
937
- if (a.parents.length == 0)
938
- return;
939
- {
940
- const i = M[a.parents];
941
- ye(r, a, i);
942
- }
943
- }
944
- r = Qe(r, (i) => i.id), Le(r);
945
- }
946
- const st = function() {
947
- B.debug(M);
948
- const r = Re()[0];
949
- Le([r]);
950
- }, at = function() {
951
- M = {}, I = null;
952
- let r = v().gitGraph.mainBranchName, a = v().gitGraph.mainBranchOrder;
953
- L = {}, L[r] = null, ee = {}, ee[r] = { name: r, order: a }, G = r, W = 0, qe();
954
- }, nt = function() {
955
- return Object.values(ee).map((a, o) => a.order !== null ? a : xe(ke({}, a), {
956
- order: parseFloat(`0.${o}`, 10)
957
- })).sort((a, o) => a.order - o.order).map(({ name: a }) => ({ name: a }));
958
- }, ct = function() {
959
- return L;
960
- }, ot = function() {
961
- return M;
962
- }, Re = function() {
963
- const r = Object.keys(M).map(function(a) {
964
- return M[a];
965
- });
966
- return r.forEach(function(a) {
967
- B.debug(a.id);
968
- }), r.sort((a, o) => a.seq - o.seq), r;
969
- }, lt = function() {
970
- return G;
971
- }, ht = function() {
972
- return Ee;
973
- }, mt = function() {
974
- return I;
975
- }, Q = {
976
- NORMAL: 0,
977
- REVERSE: 1,
978
- HIGHLIGHT: 2,
979
- MERGE: 3,
980
- CHERRY_PICK: 4
981
- }, ut = {
982
- getConfig: () => v().gitGraph,
983
- setDirection: Xe,
984
- setOptions: Ze,
985
- getOptions: $e,
986
- commit: et,
987
- branch: tt,
988
- merge: rt,
989
- cherryPick: it,
990
- checkout: we,
991
- //reset,
992
- prettyPrint: st,
993
- clear: at,
994
- getBranchesAsObjArray: nt,
995
- getBranches: ct,
996
- getCommits: ot,
997
- getCommitsArray: Re,
998
- getCurrentBranch: lt,
999
- getDirection: ht,
1000
- getHead: mt,
1001
- setAccTitle: He,
1002
- getAccTitle: Be,
1003
- getAccDescription: Ve,
1004
- setAccDescription: De,
1005
- setDiagramTitle: ze,
1006
- getDiagramTitle: je,
1007
- commitType: Q
1008
- };
1009
- let Z = {};
1010
- const P = {
1011
- NORMAL: 0,
1012
- REVERSE: 1,
1013
- HIGHLIGHT: 2,
1014
- MERGE: 3,
1015
- CHERRY_PICK: 4
1016
- }, U = 8;
1017
- let H = {}, Y = {}, ne = [], te = 0, w = "LR";
1018
- const ft = () => {
1019
- H = {}, Y = {}, Z = {}, te = 0, ne = [], w = "LR";
1020
- }, Me = (r) => {
1021
- const a = document.createElementNS("http://www.w3.org/2000/svg", "text");
1022
- let o = [];
1023
- typeof r == "string" ? o = r.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(r) ? o = r : o = [];
1024
- for (const h of o) {
1025
- const i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
1026
- i.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), i.setAttribute("dy", "1em"), i.setAttribute("x", "0"), i.setAttribute("class", "row"), i.textContent = h.trim(), a.appendChild(i);
1027
- }
1028
- return a;
1029
- }, pt = (r) => {
1030
- let a = "", o = 0;
1031
- return r.forEach((h) => {
1032
- const i = w === "TB" ? Y[h].y : Y[h].x;
1033
- i >= o && (a = h, o = i);
1034
- }), a || void 0;
1035
- }, _e = (r, a, o) => {
1036
- const h = v().gitGraph, i = r.append("g").attr("class", "commit-bullets"), c = r.append("g").attr("class", "commit-labels");
1037
- let b = 0;
1038
- w === "TB" && (b = 30);
1039
- const x = Object.keys(a).sort((_, g) => a[_].seq - a[g].seq), y = h.parallelCommits, n = 10, C = 40;
1040
- x.forEach((_) => {
1041
- const g = a[_];
1042
- if (y)
1043
- if (g.parents.length) {
1044
- const E = pt(g.parents);
1045
- b = w === "TB" ? Y[E].y + C : Y[E].x + C;
1046
- } else
1047
- b = 0, w === "TB" && (b = 30);
1048
- const f = b + n, d = w === "TB" ? f : H[g.branch].pos, p = w === "TB" ? H[g.branch].pos : f;
1049
- if (o) {
1050
- let E, z = g.customType !== void 0 && g.customType !== "" ? g.customType : g.type;
1051
- switch (z) {
1052
- case P.NORMAL:
1053
- E = "commit-normal";
1054
- break;
1055
- case P.REVERSE:
1056
- E = "commit-reverse";
1057
- break;
1058
- case P.HIGHLIGHT:
1059
- E = "commit-highlight";
1060
- break;
1061
- case P.MERGE:
1062
- E = "commit-merge";
1063
- break;
1064
- case P.CHERRY_PICK:
1065
- E = "commit-cherry-pick";
1066
- break;
1067
- default:
1068
- E = "commit-normal";
1069
- }
1070
- if (z === P.HIGHLIGHT) {
1071
- const R = i.append("rect");
1072
- R.attr("x", p - 10), R.attr("y", d - 10), R.attr("height", 20), R.attr("width", 20), R.attr(
1073
- "class",
1074
- `commit ${g.id} commit-highlight${H[g.branch].index % U} ${E}-outer`
1075
- ), i.append("rect").attr("x", p - 6).attr("y", d - 6).attr("height", 12).attr("width", 12).attr(
1076
- "class",
1077
- `commit ${g.id} commit${H[g.branch].index % U} ${E}-inner`
1078
- );
1079
- } else if (z === P.CHERRY_PICK)
1080
- i.append("circle").attr("cx", p).attr("cy", d).attr("r", 10).attr("class", `commit ${g.id} ${E}`), i.append("circle").attr("cx", p - 3).attr("cy", d + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${g.id} ${E}`), i.append("circle").attr("cx", p + 3).attr("cy", d + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${g.id} ${E}`), i.append("line").attr("x1", p + 3).attr("y1", d + 1).attr("x2", p).attr("y2", d - 5).attr("stroke", "#fff").attr("class", `commit ${g.id} ${E}`), i.append("line").attr("x1", p - 3).attr("y1", d + 1).attr("x2", p).attr("y2", d - 5).attr("stroke", "#fff").attr("class", `commit ${g.id} ${E}`);
1081
- else {
1082
- const R = i.append("circle");
1083
- if (R.attr("cx", p), R.attr("cy", d), R.attr("r", g.type === P.MERGE ? 9 : 10), R.attr(
1084
- "class",
1085
- `commit ${g.id} commit${H[g.branch].index % U}`
1086
- ), z === P.MERGE) {
1087
- const A = i.append("circle");
1088
- A.attr("cx", p), A.attr("cy", d), A.attr("r", 6), A.attr(
1089
- "class",
1090
- `commit ${E} ${g.id} commit${H[g.branch].index % U}`
1091
- );
1092
- }
1093
- z === P.REVERSE && i.append("path").attr("d", `M ${p - 5},${d - 5}L${p + 5},${d + 5}M${p - 5},${d + 5}L${p + 5},${d - 5}`).attr(
1094
- "class",
1095
- `commit ${E} ${g.id} commit${H[g.branch].index % U}`
1096
- );
1097
- }
1098
- }
1099
- if (w === "TB" ? Y[g.id] = { x: p, y: f } : Y[g.id] = { x: f, y: d }, o) {
1100
- if (g.type !== P.CHERRY_PICK && (g.customId && g.type === P.MERGE || g.type !== P.MERGE) && h.showCommitLabel) {
1101
- const R = c.append("g"), A = R.insert("rect").attr("class", "commit-label-bkg"), S = R.append("text").attr("x", b).attr("y", d + 25).attr("class", "commit-label").text(g.id);
1102
- let l = S.node().getBBox();
1103
- if (A.attr("x", f - l.width / 2 - 2).attr("y", d + 13.5).attr("width", l.width + 2 * 2).attr("height", l.height + 2 * 2), w === "TB" && (A.attr("x", p - (l.width + 4 * 4 + 5)).attr("y", d - 12), S.attr("x", p - (l.width + 4 * 4)).attr("y", d + l.height - 12)), w !== "TB" && S.attr("x", f - l.width / 2), h.rotateCommitLabel)
1104
- if (w === "TB")
1105
- S.attr("transform", "rotate(-45, " + p + ", " + d + ")"), A.attr("transform", "rotate(-45, " + p + ", " + d + ")");
1106
- else {
1107
- let u = -7.5 - (l.width + 10) / 25 * 9.5, k = 10 + l.width / 25 * 8.5;
1108
- R.attr(
1109
- "transform",
1110
- "translate(" + u + ", " + k + ") rotate(-45, " + b + ", " + d + ")"
1111
- );
1112
- }
1113
- }
1114
- if (g.tag) {
1115
- const R = c.insert("polygon"), A = c.append("circle"), S = c.append("text").attr("y", d - 16).attr("class", "tag-label").text(g.tag);
1116
- let l = S.node().getBBox();
1117
- S.attr("x", f - l.width / 2);
1118
- const u = l.height / 2, k = d - 19.2;
1119
- R.attr("class", "tag-label-bkg").attr(
1120
- "points",
1121
- `
1122
- ${b - l.width / 2 - 4 / 2},${k + 2}
1123
- ${b - l.width / 2 - 4 / 2},${k - 2}
1124
- ${f - l.width / 2 - 4},${k - u - 2}
1125
- ${f + l.width / 2 + 4},${k - u - 2}
1126
- ${f + l.width / 2 + 4},${k + u + 2}
1127
- ${f - l.width / 2 - 4},${k + u + 2}`
1128
- ), A.attr("cx", b - l.width / 2 + 4 / 2).attr("cy", k).attr("r", 1.5).attr("class", "tag-hole"), w === "TB" && (R.attr("class", "tag-label-bkg").attr(
1129
- "points",
1130
- `
1131
- ${p},${b + 2}
1132
- ${p},${b - 2}
1133
- ${p + n},${b - u - 2}
1134
- ${p + n + l.width + 4},${b - u - 2}
1135
- ${p + n + l.width + 4},${b + u + 2}
1136
- ${p + n},${b + u + 2}`
1137
- ).attr("transform", "translate(12,12) rotate(45, " + p + "," + b + ")"), A.attr("cx", p + 4 / 2).attr("cy", b).attr("transform", "translate(12,12) rotate(45, " + p + "," + b + ")"), S.attr("x", p + 5).attr("y", b + 3).attr("transform", "translate(14,14) rotate(45, " + p + "," + b + ")"));
1138
- }
1139
- }
1140
- b += C + n, b > te && (te = b);
1141
- });
1142
- }, bt = (r, a, o, h, i) => {
1143
- const b = (w === "TB" ? o.x < h.x : o.y < h.y) ? a.branch : r.branch, m = (y) => y.branch === b, x = (y) => y.seq > r.seq && y.seq < a.seq;
1144
- return Object.values(i).some((y) => x(y) && m(y));
1145
- }, $ = (r, a, o = 0) => {
1146
- const h = r + Math.abs(r - a) / 2;
1147
- if (o > 5)
1148
- return h;
1149
- if (ne.every((b) => Math.abs(b - h) >= 10))
1150
- return ne.push(h), h;
1151
- const c = Math.abs(r - a);
1152
- return $(r, a - c / 5, o + 1);
1153
- }, gt = (r, a, o, h) => {
1154
- const i = Y[a.id], c = Y[o.id], b = bt(a, o, i, c, h);
1155
- let m = "", x = "", y = 0, n = 0, C = H[o.branch].index;
1156
- o.type === P.MERGE && a.id !== o.parents[0] && (C = H[a.branch].index);
1157
- let _;
1158
- if (b) {
1159
- m = "A 10 10, 0, 0, 0,", x = "A 10 10, 0, 0, 1,", y = 10, n = 10;
1160
- const g = i.y < c.y ? $(i.y, c.y) : $(c.y, i.y), f = i.x < c.x ? $(i.x, c.x) : $(c.x, i.x);
1161
- w === "TB" ? i.x < c.x ? _ = `M ${i.x} ${i.y} L ${f - y} ${i.y} ${x} ${f} ${i.y + n} L ${f} ${c.y - y} ${m} ${f + n} ${c.y} L ${c.x} ${c.y}` : (C = H[a.branch].index, _ = `M ${i.x} ${i.y} L ${f + y} ${i.y} ${m} ${f} ${i.y + n} L ${f} ${c.y - y} ${x} ${f - n} ${c.y} L ${c.x} ${c.y}`) : i.y < c.y ? _ = `M ${i.x} ${i.y} L ${i.x} ${g - y} ${m} ${i.x + n} ${g} L ${c.x - y} ${g} ${x} ${c.x} ${g + n} L ${c.x} ${c.y}` : (C = H[a.branch].index, _ = `M ${i.x} ${i.y} L ${i.x} ${g + y} ${x} ${i.x + n} ${g} L ${c.x - y} ${g} ${m} ${c.x} ${g - n} L ${c.x} ${c.y}`);
1162
- } else
1163
- m = "A 20 20, 0, 0, 0,", x = "A 20 20, 0, 0, 1,", y = 20, n = 20, w === "TB" ? (i.x < c.x && (o.type === P.MERGE && a.id !== o.parents[0] ? _ = `M ${i.x} ${i.y} L ${i.x} ${c.y - y} ${m} ${i.x + n} ${c.y} L ${c.x} ${c.y}` : _ = `M ${i.x} ${i.y} L ${c.x - y} ${i.y} ${x} ${c.x} ${i.y + n} L ${c.x} ${c.y}`), i.x > c.x && (m = "A 20 20, 0, 0, 0,", x = "A 20 20, 0, 0, 1,", y = 20, n = 20, o.type === P.MERGE && a.id !== o.parents[0] ? _ = `M ${i.x} ${i.y} L ${i.x} ${c.y - y} ${x} ${i.x - n} ${c.y} L ${c.x} ${c.y}` : _ = `M ${i.x} ${i.y} L ${c.x + y} ${i.y} ${m} ${c.x} ${i.y + n} L ${c.x} ${c.y}`), i.x === c.x && (_ = `M ${i.x} ${i.y} L ${c.x} ${c.y}`)) : (i.y < c.y && (o.type === P.MERGE && a.id !== o.parents[0] ? _ = `M ${i.x} ${i.y} L ${c.x - y} ${i.y} ${x} ${c.x} ${i.y + n} L ${c.x} ${c.y}` : _ = `M ${i.x} ${i.y} L ${i.x} ${c.y - y} ${m} ${i.x + n} ${c.y} L ${c.x} ${c.y}`), i.y > c.y && (o.type === P.MERGE && a.id !== o.parents[0] ? _ = `M ${i.x} ${i.y} L ${c.x - y} ${i.y} ${m} ${c.x} ${i.y - n} L ${c.x} ${c.y}` : _ = `M ${i.x} ${i.y} L ${i.x} ${c.y + y} ${x} ${i.x + n} ${c.y} L ${c.x} ${c.y}`), i.y === c.y && (_ = `M ${i.x} ${i.y} L ${c.x} ${c.y}`));
1164
- r.append("path").attr("d", _).attr("class", "arrow arrow" + C % U);
1165
- }, dt = (r, a) => {
1166
- const o = r.append("g").attr("class", "commit-arrows");
1167
- Object.keys(a).forEach((h) => {
1168
- const i = a[h];
1169
- i.parents && i.parents.length > 0 && i.parents.forEach((c) => {
1170
- gt(o, a[c], i, a);
1171
- });
1172
- });
1173
- }, kt = (r, a) => {
1174
- const o = v().gitGraph, h = r.append("g");
1175
- a.forEach((i, c) => {
1176
- const b = c % U, m = H[i.name].pos, x = h.append("line");
1177
- x.attr("x1", 0), x.attr("y1", m), x.attr("x2", te), x.attr("y2", m), x.attr("class", "branch branch" + b), w === "TB" && (x.attr("y1", 30), x.attr("x1", m), x.attr("y2", te), x.attr("x2", m)), ne.push(m);
1178
- let y = i.name;
1179
- const n = Me(y), C = h.insert("rect"), g = h.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + b);
1180
- g.node().appendChild(n);
1181
- let f = n.getBBox();
1182
- C.attr("class", "branchLabelBkg label" + b).attr("rx", 4).attr("ry", 4).attr("x", -f.width - 4 - (o.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -f.height / 2 + 8).attr("width", f.width + 18).attr("height", f.height + 4), g.attr(
1183
- "transform",
1184
- "translate(" + (-f.width - 14 - (o.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (m - f.height / 2 - 1) + ")"
1185
- ), w === "TB" && (C.attr("x", m - f.width / 2 - 10).attr("y", 0), g.attr("transform", "translate(" + (m - f.width / 2 - 5) + ", 0)")), w !== "TB" && C.attr("transform", "translate(-19, " + (m - f.height / 2) + ")");
1186
- });
1187
- }, xt = function(r, a, o, h) {
1188
- var y;
1189
- ft();
1190
- const i = v(), c = i.gitGraph;
1191
- B.debug("in gitgraph renderer", r + `
1192
- `, "id:", a, o), Z = h.db.getCommits();
1193
- const b = h.db.getBranchesAsObjArray();
1194
- w = h.db.getDirection();
1195
- const m = Ye(`[id="${a}"]`);
1196
- let x = 0;
1197
- b.forEach((n, C) => {
1198
- const _ = Me(n.name), g = m.append("g"), f = g.insert("g").attr("class", "branchLabel"), d = f.insert("g").attr("class", "label branch-label");
1199
- d.node().appendChild(_);
1200
- let p = _.getBBox();
1201
- H[n.name] = { pos: x, index: C }, x += 50 + (c.rotateCommitLabel ? 40 : 0) + (w === "TB" ? p.width / 2 : 0), d.remove(), f.remove(), g.remove();
1202
- }), _e(m, Z, !1), c.showBranches && kt(m, b), dt(m, Z), _e(m, Z, !0), Fe.insertTitle(
1203
- m,
1204
- "gitTitleText",
1205
- c.titleTopMargin,
1206
- h.db.getDiagramTitle()
1207
- ), Ke(
1208
- void 0,
1209
- m,
1210
- c.diagramPadding,
1211
- (y = c.useMaxWidth) != null ? y : i.useMaxWidth
1212
- );
1213
- }, yt = {
1214
- draw: xt
1215
- }, _t = (r) => `
1216
- .commit-id,
1217
- .commit-msg,
1218
- .branch-label {
1219
- fill: lightgrey;
1220
- color: lightgrey;
1221
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
1222
- font-family: var(--mermaid-font-family);
1223
- }
1224
- ${[0, 1, 2, 3, 4, 5, 6, 7].map(
1225
- (a) => `
1226
- .branch-label${a} { fill: ${r["gitBranchLabel" + a]}; }
1227
- .commit${a} { stroke: ${r["git" + a]}; fill: ${r["git" + a]}; }
1228
- .commit-highlight${a} { stroke: ${r["gitInv" + a]}; fill: ${r["gitInv" + a]}; }
1229
- .label${a} { fill: ${r["git" + a]}; }
1230
- .arrow${a} { stroke: ${r["git" + a]}; }
1231
- `
1232
- ).join(`
1233
- `)}
1234
-
1235
- .branch {
1236
- stroke-width: 1;
1237
- stroke: ${r.lineColor};
1238
- stroke-dasharray: 2;
1239
- }
1240
- .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}
1241
- .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }
1242
- .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
1243
- .tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }
1244
- .tag-hole { fill: ${r.textColor}; }
1245
-
1246
- .commit-merge {
1247
- stroke: ${r.primaryColor};
1248
- fill: ${r.primaryColor};
1249
- }
1250
- .commit-reverse {
1251
- stroke: ${r.primaryColor};
1252
- fill: ${r.primaryColor};
1253
- stroke-width: 3;
1254
- }
1255
- .commit-highlight-outer {
1256
- }
1257
- .commit-highlight-inner {
1258
- stroke: ${r.primaryColor};
1259
- fill: ${r.primaryColor};
1260
- }
1261
-
1262
- .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
1263
- .gitTitleText {
1264
- text-anchor: middle;
1265
- font-size: 18px;
1266
- fill: ${r.textColor};
1267
- }
1268
- `, Et = _t, Lt = {
1269
- parser: We,
1270
- db: ut,
1271
- renderer: yt,
1272
- styles: Et
1273
- };
1274
- export {
1275
- Lt as diagram
1276
- };