lowcoder-comps 0.0.20 → 0.0.22

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 (58) hide show
  1. package/029c585a.js +825 -0
  2. package/0f49842f.js +915 -0
  3. package/14c95def.js +2396 -0
  4. package/{5a7c40d7.js → 14de54b2.js} +7120 -6939
  5. package/17b0984b.js +1116 -0
  6. package/{a1f987b7.js → 1a4b39ab.js} +29 -30
  7. package/1e35aee7.js +932 -0
  8. package/{804e952b.js → 1f97d569.js} +73 -76
  9. package/3120eee5.js +1235 -0
  10. package/313e94fb.js +796 -0
  11. package/{384b70d4.js → 41a4677f.js} +10 -12
  12. package/{e1466a22.js → 48a69d01.js} +89 -97
  13. package/4a8006fe.js +2501 -0
  14. package/{a06ced05.js → 585231df.js} +64 -71
  15. package/5e96f5d8.js +64 -0
  16. package/5f9be850.js +1055 -0
  17. package/{3196b84f.js → 6e0c66a6.js} +97 -109
  18. package/76d315c1.js +2192 -0
  19. package/{31c6e136.js → 867cdd47.js} +1 -1
  20. package/{0d5d7030.js → 8a65542f.js} +58 -64
  21. package/913e1a65.js +804 -0
  22. package/92e85b65.js +65 -0
  23. package/97298a99.js +2966 -0
  24. package/{5fd0f607.js → a396e61e.js} +44 -44
  25. package/a6d42292.js +1284 -0
  26. package/afd2e4d5.js +86 -0
  27. package/be5f3226.js +768 -0
  28. package/{4791bdd6.js → bf75928a.js} +30142 -30663
  29. package/{011ccb4a.js → bfd01456.js} +4257 -4221
  30. package/c239ec69.js +1000 -0
  31. package/e731f493.js +502 -0
  32. package/ef3524ce.js +960 -0
  33. package/f5b4a4bc.js +365 -0
  34. package/{8d714103.js → fa29410e.js} +598 -622
  35. package/fbc7bdd4.js +218 -0
  36. package/index.js +2 -2
  37. package/package.json +2 -2
  38. package/01102044.js +0 -940
  39. package/0e8dfd52.js +0 -793
  40. package/0f25771b.js +0 -1118
  41. package/2470e1d8.js +0 -91
  42. package/32432dc3.js +0 -86
  43. package/36552e14.js +0 -849
  44. package/3ad35722.js +0 -365
  45. package/3f4db197.js +0 -943
  46. package/71827e37.js +0 -1032
  47. package/7a200c6a.js +0 -607
  48. package/872f2918.js +0 -7
  49. package/93b98f3e.js +0 -832
  50. package/a42a2ba9.js +0 -2103
  51. package/af0489f3.js +0 -2456
  52. package/b56f953d.js +0 -985
  53. package/b89c6a6a.js +0 -159
  54. package/bc7030d3.js +0 -70
  55. package/c739ba3e.js +0 -2679
  56. package/d306d59c.js +0 -2827
  57. package/d8adcd1e.js +0 -823
  58. package/ef845d7f.js +0 -1246
package/7a200c6a.js DELETED
@@ -1,607 +0,0 @@
1
- import { Q as nt, c as Q, s as gt, g as dt, z as mt, A as _t, a as vt, b as bt, m as kt, j as xt, l as U, B as St, h as rt, i as wt, S as At } from "./4791bdd6.js";
2
- import { i as Et } from "./f9637058.js";
3
- import { a as Dt } from "./2ff2c7a6.js";
4
- import { c as z } from "./256b619e.js";
5
- import { a as ct } from "./32432dc3.js";
6
- class ot extends Map {
7
- constructor(r, o = It) {
8
- if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: o } }), r != null)
9
- for (const [u, p] of r)
10
- this.set(u, p);
11
- }
12
- get(r) {
13
- return super.get(ht(this, r));
14
- }
15
- has(r) {
16
- return super.has(ht(this, r));
17
- }
18
- set(r, o) {
19
- return super.set($t(this, r), o);
20
- }
21
- delete(r) {
22
- return super.delete(Tt(this, r));
23
- }
24
- }
25
- function ht({ _intern: t, _key: r }, o) {
26
- const u = r(o);
27
- return t.has(u) ? t.get(u) : o;
28
- }
29
- function $t({ _intern: t, _key: r }, o) {
30
- const u = r(o);
31
- return t.has(u) ? t.get(u) : (t.set(u, o), o);
32
- }
33
- function Tt({ _intern: t, _key: r }, o) {
34
- const u = r(o);
35
- return t.has(u) && (o = t.get(u), t.delete(u)), o;
36
- }
37
- function It(t) {
38
- return t !== null && typeof t == "object" ? t.valueOf() : t;
39
- }
40
- const ut = Symbol("implicit");
41
- function ft() {
42
- var t = new ot(), r = [], o = [], u = ut;
43
- function p(g) {
44
- let f = t.get(g);
45
- if (f === void 0) {
46
- if (u !== ut)
47
- return u;
48
- t.set(g, f = r.push(g) - 1);
49
- }
50
- return o[f % o.length];
51
- }
52
- return p.domain = function(g) {
53
- if (!arguments.length)
54
- return r.slice();
55
- r = [], t = new ot();
56
- for (const f of g)
57
- t.has(f) || t.set(f, r.push(f) - 1);
58
- return p;
59
- }, p.range = function(g) {
60
- return arguments.length ? (o = Array.from(g), p) : o.slice();
61
- }, p.unknown = function(g) {
62
- return arguments.length ? (u = g, p) : u;
63
- }, p.copy = function() {
64
- return ft(r, o).unknown(u);
65
- }, Et.apply(p, arguments), p;
66
- }
67
- function Vt(t, r) {
68
- return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
69
- }
70
- function Pt(t) {
71
- return t;
72
- }
73
- function Ot() {
74
- var t = Pt, r = Vt, o = null, u = z(0), p = z(nt), g = z(0);
75
- function f(h) {
76
- var d, y = (h = Dt(h)).length, S, N, C = 0, b = new Array(y), w = new Array(y), I = +u.apply(this, arguments), D = Math.min(nt, Math.max(-nt, p.apply(this, arguments) - I)), F, M = Math.min(Math.abs(D) / y, g.apply(this, arguments)), V = M * (D < 0 ? -1 : 1), A;
77
- for (d = 0; d < y; ++d)
78
- (A = w[b[d] = d] = +t(h[d], d, h)) > 0 && (C += A);
79
- for (r != null ? b.sort(function(k, _) {
80
- return r(w[k], w[_]);
81
- }) : o != null && b.sort(function(k, _) {
82
- return o(h[k], h[_]);
83
- }), d = 0, N = C ? (D - y * V) / C : 0; d < y; ++d, I = F)
84
- S = b[d], A = w[S], F = I + (A > 0 ? A * N : 0) + V, w[S] = {
85
- data: h[S],
86
- index: d,
87
- value: A,
88
- startAngle: I,
89
- endAngle: F,
90
- padAngle: M
91
- };
92
- return w;
93
- }
94
- return f.value = function(h) {
95
- return arguments.length ? (t = typeof h == "function" ? h : z(+h), f) : t;
96
- }, f.sortValues = function(h) {
97
- return arguments.length ? (r = h, o = null, f) : r;
98
- }, f.sort = function(h) {
99
- return arguments.length ? (o = h, r = null, f) : o;
100
- }, f.startAngle = function(h) {
101
- return arguments.length ? (u = typeof h == "function" ? h : z(+h), f) : u;
102
- }, f.endAngle = function(h) {
103
- return arguments.length ? (p = typeof h == "function" ? h : z(+h), f) : p;
104
- }, f.padAngle = function(h) {
105
- return arguments.length ? (g = typeof h == "function" ? h : z(+h), f) : g;
106
- }, f;
107
- }
108
- var st = function() {
109
- var t = function(_, e, i, s) {
110
- for (i = i || {}, s = _.length; s--; i[_[s]] = e)
111
- ;
112
- return i;
113
- }, r = [1, 4], o = [1, 5], u = [1, 6], p = [1, 7], g = [1, 9], f = [1, 11, 13, 15, 17, 19, 20, 26, 27, 28, 29], h = [2, 5], d = [1, 6, 11, 13, 15, 17, 19, 20, 26, 27, 28, 29], y = [26, 27, 28], S = [2, 8], N = [1, 18], C = [1, 19], b = [1, 20], w = [1, 21], I = [1, 22], D = [1, 23], F = [1, 28], M = [6, 26, 27, 28, 29], V = {
114
- trace: function() {
115
- },
116
- yy: {},
117
- symbols_: { error: 2, start: 3, eol: 4, directive: 5, PIE: 6, document: 7, showData: 8, line: 9, statement: 10, txt: 11, value: 12, title: 13, title_value: 14, acc_title: 15, acc_title_value: 16, acc_descr: 17, acc_descr_value: 18, acc_descr_multiline_value: 19, section: 20, openDirective: 21, typeDirective: 22, closeDirective: 23, ":": 24, argDirective: 25, NEWLINE: 26, ";": 27, EOF: 28, open_directive: 29, type_directive: 30, arg_directive: 31, close_directive: 32, $accept: 0, $end: 1 },
118
- terminals_: { 2: "error", 6: "PIE", 8: "showData", 11: "txt", 12: "value", 13: "title", 14: "title_value", 15: "acc_title", 16: "acc_title_value", 17: "acc_descr", 18: "acc_descr_value", 19: "acc_descr_multiline_value", 20: "section", 24: ":", 26: "NEWLINE", 27: ";", 28: "EOF", 29: "open_directive", 30: "type_directive", 31: "arg_directive", 32: "close_directive" },
119
- productions_: [0, [3, 2], [3, 2], [3, 2], [3, 3], [7, 0], [7, 2], [9, 2], [10, 0], [10, 2], [10, 2], [10, 2], [10, 2], [10, 1], [10, 1], [10, 1], [5, 3], [5, 5], [4, 1], [4, 1], [4, 1], [21, 1], [22, 1], [25, 1], [23, 1]],
120
- performAction: function(e, i, s, l, a, n, E) {
121
- var c = n.length - 1;
122
- switch (a) {
123
- case 4:
124
- l.setShowData(!0);
125
- break;
126
- case 7:
127
- this.$ = n[c - 1];
128
- break;
129
- case 9:
130
- l.addSection(n[c - 1], l.cleanupValue(n[c]));
131
- break;
132
- case 10:
133
- this.$ = n[c].trim(), l.setDiagramTitle(this.$);
134
- break;
135
- case 11:
136
- this.$ = n[c].trim(), l.setAccTitle(this.$);
137
- break;
138
- case 12:
139
- case 13:
140
- this.$ = n[c].trim(), l.setAccDescription(this.$);
141
- break;
142
- case 14:
143
- l.addSection(n[c].substr(8)), this.$ = n[c].substr(8);
144
- break;
145
- case 21:
146
- l.parseDirective("%%{", "open_directive");
147
- break;
148
- case 22:
149
- l.parseDirective(n[c], "type_directive");
150
- break;
151
- case 23:
152
- n[c] = n[c].trim().replace(/'/g, '"'), l.parseDirective(n[c], "arg_directive");
153
- break;
154
- case 24:
155
- l.parseDirective("}%%", "close_directive", "pie");
156
- break;
157
- }
158
- },
159
- table: [{ 3: 1, 4: 2, 5: 3, 6: r, 21: 8, 26: o, 27: u, 28: p, 29: g }, { 1: [3] }, { 3: 10, 4: 2, 5: 3, 6: r, 21: 8, 26: o, 27: u, 28: p, 29: g }, { 3: 11, 4: 2, 5: 3, 6: r, 21: 8, 26: o, 27: u, 28: p, 29: g }, t(f, h, { 7: 12, 8: [1, 13] }), t(d, [2, 18]), t(d, [2, 19]), t(d, [2, 20]), { 22: 14, 30: [1, 15] }, { 30: [2, 21] }, { 1: [2, 1] }, { 1: [2, 2] }, t(y, S, { 21: 8, 9: 16, 10: 17, 5: 24, 1: [2, 3], 11: N, 13: C, 15: b, 17: w, 19: I, 20: D, 29: g }), t(f, h, { 7: 25 }), { 23: 26, 24: [1, 27], 32: F }, t([24, 32], [2, 22]), t(f, [2, 6]), { 4: 29, 26: o, 27: u, 28: p }, { 12: [1, 30] }, { 14: [1, 31] }, { 16: [1, 32] }, { 18: [1, 33] }, t(y, [2, 13]), t(y, [2, 14]), t(y, [2, 15]), t(y, S, { 21: 8, 9: 16, 10: 17, 5: 24, 1: [2, 4], 11: N, 13: C, 15: b, 17: w, 19: I, 20: D, 29: g }), t(M, [2, 16]), { 25: 34, 31: [1, 35] }, t(M, [2, 24]), t(f, [2, 7]), t(y, [2, 9]), t(y, [2, 10]), t(y, [2, 11]), t(y, [2, 12]), { 23: 36, 32: F }, { 32: [2, 23] }, t(M, [2, 17])],
160
- defaultActions: { 9: [2, 21], 10: [2, 1], 11: [2, 2], 35: [2, 23] },
161
- parseError: function(e, i) {
162
- if (i.recoverable)
163
- this.trace(e);
164
- else {
165
- var s = new Error(e);
166
- throw s.hash = i, s;
167
- }
168
- },
169
- parse: function(e) {
170
- var i = this, s = [0], l = [], a = [null], n = [], E = this.table, c = "", $ = 0, B = 0, K = 2, q = 1, X = n.slice.call(arguments, 1), m = Object.create(this.lexer), W = { yy: {} };
171
- for (var Z in this.yy)
172
- Object.prototype.hasOwnProperty.call(this.yy, Z) && (W.yy[Z] = this.yy[Z]);
173
- m.setInput(e, W.yy), W.yy.lexer = m, W.yy.parser = this, typeof m.yylloc == "undefined" && (m.yylloc = {});
174
- var tt = m.yylloc;
175
- n.push(tt);
176
- var pt = m.options && m.options.ranges;
177
- typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
178
- function yt() {
179
- var O;
180
- return O = l.pop() || m.lex() || q, typeof O != "number" && (O instanceof Array && (l = O, O = l.pop()), O = i.symbols_[O] || O), O;
181
- }
182
- for (var v, j, x, et, R = {}, G, P, lt, H; ; ) {
183
- if (j = s[s.length - 1], this.defaultActions[j] ? x = this.defaultActions[j] : ((v === null || typeof v == "undefined") && (v = yt()), x = E[j] && E[j][v]), typeof x == "undefined" || !x.length || !x[0]) {
184
- var it = "";
185
- H = [];
186
- for (G in E[j])
187
- this.terminals_[G] && G > K && H.push("'" + this.terminals_[G] + "'");
188
- m.showPosition ? it = "Parse error on line " + ($ + 1) + `:
189
- ` + m.showPosition() + `
190
- Expecting ` + H.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : it = "Parse error on line " + ($ + 1) + ": Unexpected " + (v == q ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(it, {
191
- text: m.match,
192
- token: this.terminals_[v] || v,
193
- line: m.yylineno,
194
- loc: tt,
195
- expected: H
196
- });
197
- }
198
- if (x[0] instanceof Array && x.length > 1)
199
- throw new Error("Parse Error: multiple actions possible at state: " + j + ", token: " + v);
200
- switch (x[0]) {
201
- case 1:
202
- s.push(v), a.push(m.yytext), n.push(m.yylloc), s.push(x[1]), v = null, B = m.yyleng, c = m.yytext, $ = m.yylineno, tt = m.yylloc;
203
- break;
204
- case 2:
205
- if (P = this.productions_[x[1]][1], R.$ = a[a.length - P], R._$ = {
206
- first_line: n[n.length - (P || 1)].first_line,
207
- last_line: n[n.length - 1].last_line,
208
- first_column: n[n.length - (P || 1)].first_column,
209
- last_column: n[n.length - 1].last_column
210
- }, pt && (R._$.range = [
211
- n[n.length - (P || 1)].range[0],
212
- n[n.length - 1].range[1]
213
- ]), et = this.performAction.apply(R, [
214
- c,
215
- B,
216
- $,
217
- W.yy,
218
- x[1],
219
- a,
220
- n
221
- ].concat(X)), typeof et != "undefined")
222
- return et;
223
- P && (s = s.slice(0, -1 * P * 2), a = a.slice(0, -1 * P), n = n.slice(0, -1 * P)), s.push(this.productions_[x[1]][0]), a.push(R.$), n.push(R._$), lt = E[s[s.length - 2]][s[s.length - 1]], s.push(lt);
224
- break;
225
- case 3:
226
- return !0;
227
- }
228
- }
229
- return !0;
230
- }
231
- }, A = function() {
232
- var _ = {
233
- EOF: 1,
234
- parseError: function(i, s) {
235
- if (this.yy.parser)
236
- this.yy.parser.parseError(i, s);
237
- else
238
- throw new Error(i);
239
- },
240
- // resets the lexer, sets new input
241
- setInput: function(e, i) {
242
- return this.yy = i || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
243
- first_line: 1,
244
- first_column: 0,
245
- last_line: 1,
246
- last_column: 0
247
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
248
- },
249
- // consumes and returns one char from the input
250
- input: function() {
251
- var e = this._input[0];
252
- this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e;
253
- var i = e.match(/(?:\r\n?|\n).*/g);
254
- return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
255
- },
256
- // unshifts one char (or a string) into the input
257
- unput: function(e) {
258
- var i = e.length, s = e.split(/(?:\r\n?|\n)/g);
259
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
260
- var l = this.match.split(/(?:\r\n?|\n)/g);
261
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), s.length - 1 && (this.yylineno -= s.length - 1);
262
- var a = this.yylloc.range;
263
- return this.yylloc = {
264
- first_line: this.yylloc.first_line,
265
- last_line: this.yylineno + 1,
266
- first_column: this.yylloc.first_column,
267
- last_column: s ? (s.length === l.length ? this.yylloc.first_column : 0) + l[l.length - s.length].length - s[0].length : this.yylloc.first_column - i
268
- }, this.options.ranges && (this.yylloc.range = [a[0], a[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
269
- },
270
- // When called from action, caches matched text and appends it on next action
271
- more: function() {
272
- return this._more = !0, this;
273
- },
274
- // 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.
275
- reject: function() {
276
- if (this.options.backtrack_lexer)
277
- this._backtrack = !0;
278
- else
279
- 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).
280
- ` + this.showPosition(), {
281
- text: "",
282
- token: null,
283
- line: this.yylineno
284
- });
285
- return this;
286
- },
287
- // retain first n characters of the match
288
- less: function(e) {
289
- this.unput(this.match.slice(e));
290
- },
291
- // displays already matched input, i.e. for error messages
292
- pastInput: function() {
293
- var e = this.matched.substr(0, this.matched.length - this.match.length);
294
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
295
- },
296
- // displays upcoming input, i.e. for error messages
297
- upcomingInput: function() {
298
- var e = this.match;
299
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
300
- },
301
- // displays the character position where the lexing error occurred, i.e. for error messages
302
- showPosition: function() {
303
- var e = this.pastInput(), i = new Array(e.length + 1).join("-");
304
- return e + this.upcomingInput() + `
305
- ` + i + "^";
306
- },
307
- // test the lexed token: return FALSE when not a match, otherwise return token
308
- test_match: function(e, i) {
309
- var s, l, a;
310
- if (this.options.backtrack_lexer && (a = {
311
- yylineno: this.yylineno,
312
- yylloc: {
313
- first_line: this.yylloc.first_line,
314
- last_line: this.last_line,
315
- first_column: this.yylloc.first_column,
316
- last_column: this.yylloc.last_column
317
- },
318
- yytext: this.yytext,
319
- match: this.match,
320
- matches: this.matches,
321
- matched: this.matched,
322
- yyleng: this.yyleng,
323
- offset: this.offset,
324
- _more: this._more,
325
- _input: this._input,
326
- yy: this.yy,
327
- conditionStack: this.conditionStack.slice(0),
328
- done: this.done
329
- }, this.options.ranges && (a.yylloc.range = this.yylloc.range.slice(0))), l = e[0].match(/(?:\r\n?|\n).*/g), l && (this.yylineno += l.length), this.yylloc = {
330
- first_line: this.yylloc.last_line,
331
- last_line: this.yylineno + 1,
332
- first_column: this.yylloc.last_column,
333
- last_column: l ? l[l.length - 1].length - l[l.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
334
- }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], s = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), s)
335
- return s;
336
- if (this._backtrack) {
337
- for (var n in a)
338
- this[n] = a[n];
339
- return !1;
340
- }
341
- return !1;
342
- },
343
- // return next match in input
344
- next: function() {
345
- if (this.done)
346
- return this.EOF;
347
- this._input || (this.done = !0);
348
- var e, i, s, l;
349
- this._more || (this.yytext = "", this.match = "");
350
- for (var a = this._currentRules(), n = 0; n < a.length; n++)
351
- if (s = this._input.match(this.rules[a[n]]), s && (!i || s[0].length > i[0].length)) {
352
- if (i = s, l = n, this.options.backtrack_lexer) {
353
- if (e = this.test_match(s, a[n]), e !== !1)
354
- return e;
355
- if (this._backtrack) {
356
- i = !1;
357
- continue;
358
- } else
359
- return !1;
360
- } else if (!this.options.flex)
361
- break;
362
- }
363
- return i ? (e = this.test_match(i, a[l]), e !== !1 ? e : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
364
- ` + this.showPosition(), {
365
- text: "",
366
- token: null,
367
- line: this.yylineno
368
- });
369
- },
370
- // return next match that has a token
371
- lex: function() {
372
- var i = this.next();
373
- return i || this.lex();
374
- },
375
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
376
- begin: function(i) {
377
- this.conditionStack.push(i);
378
- },
379
- // pop the previously active lexer condition state off the condition stack
380
- popState: function() {
381
- var i = this.conditionStack.length - 1;
382
- return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
383
- },
384
- // produce the lexer rule set which is active for the currently active lexer condition state
385
- _currentRules: function() {
386
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
387
- },
388
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
389
- topState: function(i) {
390
- return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
391
- },
392
- // alias for begin(condition)
393
- pushState: function(i) {
394
- this.begin(i);
395
- },
396
- // return the number of states currently on the stack
397
- stateStackSize: function() {
398
- return this.conditionStack.length;
399
- },
400
- options: { "case-insensitive": !0 },
401
- performAction: function(i, s, l, a) {
402
- switch (l) {
403
- case 0:
404
- return this.begin("open_directive"), 29;
405
- case 1:
406
- return this.begin("type_directive"), 30;
407
- case 2:
408
- return this.popState(), this.begin("arg_directive"), 24;
409
- case 3:
410
- return this.popState(), this.popState(), 32;
411
- case 4:
412
- return 31;
413
- case 5:
414
- break;
415
- case 6:
416
- break;
417
- case 7:
418
- return 26;
419
- case 8:
420
- break;
421
- case 9:
422
- break;
423
- case 10:
424
- return this.begin("title"), 13;
425
- case 11:
426
- return this.popState(), "title_value";
427
- case 12:
428
- return this.begin("acc_title"), 15;
429
- case 13:
430
- return this.popState(), "acc_title_value";
431
- case 14:
432
- return this.begin("acc_descr"), 17;
433
- case 15:
434
- return this.popState(), "acc_descr_value";
435
- case 16:
436
- this.begin("acc_descr_multiline");
437
- break;
438
- case 17:
439
- this.popState();
440
- break;
441
- case 18:
442
- return "acc_descr_multiline_value";
443
- case 19:
444
- this.begin("string");
445
- break;
446
- case 20:
447
- this.popState();
448
- break;
449
- case 21:
450
- return "txt";
451
- case 22:
452
- return 6;
453
- case 23:
454
- return 8;
455
- case 24:
456
- return "value";
457
- case 25:
458
- return 28;
459
- }
460
- },
461
- rules: [/^(?:%%\{)/i, /^(?:((?:(?!\}%%)[^:.])*))/i, /^(?::)/i, /^(?:\}%%)/i, /^(?:((?:(?!\}%%).|\n)*))/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:[\s]+)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:pie\b)/i, /^(?:showData\b)/i, /^(?::[\s]*[\d]+(?:\.[\d]+)?)/i, /^(?:$)/i],
462
- conditions: { acc_descr_multiline: { rules: [17, 18], inclusive: !1 }, acc_descr: { rules: [15], inclusive: !1 }, acc_title: { rules: [13], inclusive: !1 }, close_directive: { rules: [], inclusive: !1 }, arg_directive: { rules: [3, 4], inclusive: !1 }, type_directive: { rules: [2, 3], inclusive: !1 }, open_directive: { rules: [1], inclusive: !1 }, title: { rules: [11], inclusive: !1 }, string: { rules: [20, 21], inclusive: !1 }, INITIAL: { rules: [0, 5, 6, 7, 8, 9, 10, 12, 14, 16, 19, 22, 23, 24, 25], inclusive: !0 } }
463
- };
464
- return _;
465
- }();
466
- V.lexer = A;
467
- function k() {
468
- this.yy = {};
469
- }
470
- return k.prototype = V, V.Parser = k, new k();
471
- }();
472
- st.parser = st;
473
- const Lt = st;
474
- let J = {}, at = !1;
475
- const Nt = function(t, r, o) {
476
- kt.parseDirective(this, t, r, o);
477
- }, Ct = function(t, r) {
478
- t = xt.sanitizeText(t, Q()), J[t] === void 0 && (J[t] = r, U.debug("Added new section :", t));
479
- }, Ft = () => J, Mt = function(t) {
480
- at = t;
481
- }, Wt = function() {
482
- return at;
483
- }, jt = function(t) {
484
- return t.substring(0, 1) === ":" && (t = t.substring(1).trim()), Number(t.trim());
485
- }, zt = function() {
486
- J = {}, at = !1, St();
487
- }, Rt = {
488
- parseDirective: Nt,
489
- getConfig: () => Q().pie,
490
- addSection: Ct,
491
- getSections: Ft,
492
- cleanupValue: jt,
493
- clear: zt,
494
- setAccTitle: gt,
495
- getAccTitle: dt,
496
- setDiagramTitle: mt,
497
- getDiagramTitle: _t,
498
- setShowData: Mt,
499
- getShowData: Wt,
500
- getAccDescription: vt,
501
- setAccDescription: bt
502
- }, Bt = (t) => `
503
- .pieCircle{
504
- stroke: ${t.pieStrokeColor};
505
- stroke-width : ${t.pieStrokeWidth};
506
- opacity : ${t.pieOpacity};
507
- }
508
- .pieOuterCircle{
509
- stroke: ${t.pieOuterStrokeColor};
510
- stroke-width: ${t.pieOuterStrokeWidth};
511
- fill: none;
512
- }
513
- .pieTitleText {
514
- text-anchor: middle;
515
- font-size: ${t.pieTitleTextSize};
516
- fill: ${t.pieTitleTextColor};
517
- font-family: ${t.fontFamily};
518
- }
519
- .slice {
520
- font-family: ${t.fontFamily};
521
- fill: ${t.pieSectionTextColor};
522
- font-size:${t.pieSectionTextSize};
523
- // fill: white;
524
- }
525
- .legend text {
526
- fill: ${t.pieLegendTextColor};
527
- font-family: ${t.fontFamily};
528
- font-size: ${t.pieLegendTextSize};
529
- }
530
- `, Yt = Bt;
531
- let T = Q(), L;
532
- const Y = 450, Ut = (t, r, o, u) => {
533
- var A;
534
- var p;
535
- try {
536
- T = Q(), U.debug(`Rendering info diagram
537
- ` + t);
538
- const k = Q().securityLevel;
539
- let _;
540
- k === "sandbox" && (_ = rt("#i" + r));
541
- const e = k === "sandbox" ? rt(_.nodes()[0].contentDocument.body) : rt("body"), i = k === "sandbox" ? _.nodes()[0].contentDocument : document;
542
- u.db.clear(), u.parser.parse(t), U.debug("Parsed info diagram");
543
- const s = i.getElementById(r);
544
- L = s.parentElement.offsetWidth, L === void 0 && (L = 1200), T.useWidth !== void 0 && (L = T.useWidth), T.pie.useWidth !== void 0 && (L = T.pie.useWidth);
545
- const l = e.select("#" + r);
546
- wt(l, Y, L, T.pie.useMaxWidth), s.setAttribute("viewBox", "0 0 " + L + " " + Y);
547
- var g = 40, f = 18, h = 4, d = Math.min(L, Y) / 2 - g, y = l.append("g").attr("transform", "translate(" + L / 2 + "," + Y / 2 + ")"), S = u.db.getSections(), N = 0;
548
- Object.keys(S).forEach(function(c) {
549
- N += S[c];
550
- });
551
- const a = T.themeVariables;
552
- var C = [
553
- a.pie1,
554
- a.pie2,
555
- a.pie3,
556
- a.pie4,
557
- a.pie5,
558
- a.pie6,
559
- a.pie7,
560
- a.pie8,
561
- a.pie9,
562
- a.pie10,
563
- a.pie11,
564
- a.pie12
565
- ];
566
- const n = (A = (p = T.pie) == null ? void 0 : p.textPosition) != null ? A : 0.75;
567
- let [E] = At(a.pieOuterStrokeWidth);
568
- E != null || (E = 2);
569
- var b = ft().range(C), w = Object.entries(S).map(function(c, $) {
570
- return {
571
- order: $,
572
- name: c[0],
573
- value: c[1]
574
- };
575
- }), I = Ot().value(function(c) {
576
- return c.value;
577
- }).sort(function(c, $) {
578
- return c.order - $.order;
579
- }), D = I(w), F = ct().innerRadius(0).outerRadius(d), M = ct().innerRadius(d * n).outerRadius(d * n);
580
- y.append("circle").attr("cx", 0).attr("cy", 0).attr("r", d + E / 2).attr("class", "pieOuterCircle"), y.selectAll("mySlices").data(D).enter().append("path").attr("d", F).attr("fill", function(c) {
581
- return b(c.data.name);
582
- }).attr("class", "pieCircle"), y.selectAll("mySlices").data(D).enter().append("text").text(function(c) {
583
- return (c.data.value / N * 100).toFixed(0) + "%";
584
- }).attr("transform", function(c) {
585
- return "translate(" + M.centroid(c) + ")";
586
- }).style("text-anchor", "middle").attr("class", "slice"), y.append("text").text(u.db.getDiagramTitle()).attr("x", 0).attr("y", -(Y - 50) / 2).attr("class", "pieTitleText");
587
- var V = y.selectAll(".legend").data(b.domain()).enter().append("g").attr("class", "legend").attr("transform", function(c, $) {
588
- const B = f + h, K = B * b.domain().length / 2, q = 12 * f, X = $ * B - K;
589
- return "translate(" + q + "," + X + ")";
590
- });
591
- V.append("rect").attr("width", f).attr("height", f).style("fill", b).style("stroke", b), V.data(D).append("text").attr("x", f + h).attr("y", f - h).text(function(c) {
592
- return u.db.getShowData() || T.showData || T.pie.showData ? c.data.name + " [" + c.data.value + "]" : c.data.name;
593
- });
594
- } catch (k) {
595
- U.error("Error while rendering info diagram"), U.error(k);
596
- }
597
- }, Qt = {
598
- draw: Ut
599
- }, Xt = {
600
- parser: Lt,
601
- db: Rt,
602
- renderer: Qt,
603
- styles: Yt
604
- };
605
- export {
606
- Xt as diagram
607
- };
package/872f2918.js DELETED
@@ -1,7 +0,0 @@
1
- import { a1 as t, a2 as n, a3 as o } from "./4791bdd6.js";
2
- function r(e) {
3
- return typeof e == "string" ? new t([document.querySelectorAll(e)], [document.documentElement]) : new t([o(e)], n);
4
- }
5
- export {
6
- r as s
7
- };