@infinilabs/ai-chat 0.0.0 → 0.0.1

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 (61) hide show
  1. package/README.md +301 -56
  2. package/dist/_baseUniq-BQcAhV7E.js +152 -0
  3. package/dist/arc-2jwvQ2TN.js +131 -0
  4. package/dist/architecture-U656AL7Q-WuSilpZW.js +5 -0
  5. package/dist/architectureDiagram-VXUJARFQ-D6SKNy5z.js +8681 -0
  6. package/dist/blockDiagram-VD42YOAC-Ct2DD8jj.js +3606 -0
  7. package/dist/c4Diagram-YG6GDRKO-B7wBU4mz.js +2481 -0
  8. package/dist/channel-BRREX19f.js +7 -0
  9. package/dist/chunk-4BX2VUAB-BnghU1_v.js +16 -0
  10. package/dist/chunk-55IACEB6-Dduk-DEL.js +13 -0
  11. package/dist/chunk-B4BG7PRW-DeHw-z-x.js +1826 -0
  12. package/dist/chunk-DI55MBZ5-GTHMAr0M.js +1915 -0
  13. package/dist/chunk-FMBD7UC4-Bchh4_3W.js +19 -0
  14. package/dist/chunk-QN33PNHL-H6S-NYp0.js +24 -0
  15. package/dist/chunk-QZHKN3VN-DdcyNnvM.js +17 -0
  16. package/dist/chunk-TZMSLE5B-C7te_j4V.js +108 -0
  17. package/dist/classDiagram-2ON5EDUG-CNkHY_Y7.js +19 -0
  18. package/dist/classDiagram-v2-WZHVMYZB-CNkHY_Y7.js +19 -0
  19. package/dist/clone-DnOD7gQ4.js +8 -0
  20. package/dist/cose-bilkent-S5V4N54A-2EKtTYth.js +4942 -0
  21. package/dist/cytoscape.esm-BfvZ3QT_.js +30239 -0
  22. package/dist/dagre-6UL2VRFP-oJLNDO4O.js +693 -0
  23. package/dist/defaultLocale-DVr69WTU.js +206 -0
  24. package/dist/diagram-PSM6KHXK-DhMgmu9h.js +845 -0
  25. package/dist/diagram-QEK2KX5R-pB1vUeno.js +300 -0
  26. package/dist/diagram-S2PKOQOG-HTooIr24.js +210 -0
  27. package/dist/erDiagram-Q2GNP2WA-CCaN2EHf.js +1158 -0
  28. package/dist/flowDiagram-NV44I4VS-CG0erQtl.js +2331 -0
  29. package/dist/ganttDiagram-JELNMOA3-D3rSLJec.js +3679 -0
  30. package/dist/gitGraph-F6HP7TQM-BDWdXs6A.js +5 -0
  31. package/dist/gitGraphDiagram-NY62KEGX-Ip-PiLDb.js +1203 -0
  32. package/dist/graph-wCViE1vL.js +596 -0
  33. package/dist/index-BQvQI7yA.js +117302 -0
  34. package/dist/index.css +1834 -82
  35. package/dist/index.js +5 -19966
  36. package/dist/info-NVLQJR56-pJlVBPs6.js +5 -0
  37. package/dist/infoDiagram-WHAUD3N6-BbVs4x8y.js +31 -0
  38. package/dist/init-ZxktEp_H.js +16 -0
  39. package/dist/journeyDiagram-XKPGCS4Q-Cz9ox9GA.js +1254 -0
  40. package/dist/kanban-definition-3W4ZIXB7-ChdUHO5f.js +1047 -0
  41. package/dist/katex-ei8sH3Uy.js +14524 -0
  42. package/dist/layout-BaZPdTGN.js +2183 -0
  43. package/dist/linear-D_RX7hM-.js +340 -0
  44. package/dist/mermaid-parser.core-_sn6A3wB.js +18704 -0
  45. package/dist/min-BxeM4Drj.js +41 -0
  46. package/dist/mindmap-definition-VGOIOE7T-BkjJibdi.js +1126 -0
  47. package/dist/ordinal-CxptdPJm.js +76 -0
  48. package/dist/packet-BFZMPI3H-D3RtU0mc.js +5 -0
  49. package/dist/pie-7BOR55EZ-xH--CiaM.js +5 -0
  50. package/dist/pieDiagram-ADFJNKIX-2Yr1gkth.js +237 -0
  51. package/dist/quadrantDiagram-AYHSOK5B-CjicpXRv.js +1335 -0
  52. package/dist/radar-NHE76QYJ-CL0tHnUP.js +5 -0
  53. package/dist/requirementDiagram-UZGBJVZJ-DBnhlfjR.js +1161 -0
  54. package/dist/sankeyDiagram-TZEHDZUN-B2FErKCa.js +1193 -0
  55. package/dist/sequenceDiagram-WL72ISMW-BkNTlRlB.js +3874 -0
  56. package/dist/stateDiagram-FKZM4ZOC-CAAFQtS9.js +447 -0
  57. package/dist/stateDiagram-v2-4FDKWEC3-lF6kUebI.js +19 -0
  58. package/dist/timeline-definition-IT6M3QCI-CQgMFEPA.js +1222 -0
  59. package/dist/treemap-KMMF4GRG-B0Mc-u8X.js +5 -0
  60. package/dist/xychartDiagram-PRI3JC2R-Cee7LdLr.js +1886 -0
  61. package/package.json +6 -7
@@ -0,0 +1,206 @@
1
+ function formatDecimal(x) {
2
+ return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
3
+ }
4
+ function formatDecimalParts(x, p) {
5
+ if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null;
6
+ var i, coefficient = x.slice(0, i);
7
+ return [
8
+ coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
9
+ +x.slice(i + 1)
10
+ ];
11
+ }
12
+ function exponent(x) {
13
+ return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
14
+ }
15
+ function formatGroup(grouping, thousands) {
16
+ return function(value, width) {
17
+ var i = value.length, t = [], j = 0, g = grouping[0], length = 0;
18
+ while (i > 0 && g > 0) {
19
+ if (length + g + 1 > width) g = Math.max(1, width - length);
20
+ t.push(value.substring(i -= g, i + g));
21
+ if ((length += g + 1) > width) break;
22
+ g = grouping[j = (j + 1) % grouping.length];
23
+ }
24
+ return t.reverse().join(thousands);
25
+ };
26
+ }
27
+ function formatNumerals(numerals) {
28
+ return function(value) {
29
+ return value.replace(/[0-9]/g, function(i) {
30
+ return numerals[+i];
31
+ });
32
+ };
33
+ }
34
+ var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
35
+ function formatSpecifier(specifier) {
36
+ if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
37
+ var match;
38
+ return new FormatSpecifier({
39
+ fill: match[1],
40
+ align: match[2],
41
+ sign: match[3],
42
+ symbol: match[4],
43
+ zero: match[5],
44
+ width: match[6],
45
+ comma: match[7],
46
+ precision: match[8] && match[8].slice(1),
47
+ trim: match[9],
48
+ type: match[10]
49
+ });
50
+ }
51
+ formatSpecifier.prototype = FormatSpecifier.prototype;
52
+ function FormatSpecifier(specifier) {
53
+ this.fill = specifier.fill === void 0 ? " " : specifier.fill + "";
54
+ this.align = specifier.align === void 0 ? ">" : specifier.align + "";
55
+ this.sign = specifier.sign === void 0 ? "-" : specifier.sign + "";
56
+ this.symbol = specifier.symbol === void 0 ? "" : specifier.symbol + "";
57
+ this.zero = !!specifier.zero;
58
+ this.width = specifier.width === void 0 ? void 0 : +specifier.width;
59
+ this.comma = !!specifier.comma;
60
+ this.precision = specifier.precision === void 0 ? void 0 : +specifier.precision;
61
+ this.trim = !!specifier.trim;
62
+ this.type = specifier.type === void 0 ? "" : specifier.type + "";
63
+ }
64
+ FormatSpecifier.prototype.toString = function() {
65
+ return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
66
+ };
67
+ function formatTrim(s) {
68
+ out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
69
+ switch (s[i]) {
70
+ case ".":
71
+ i0 = i1 = i;
72
+ break;
73
+ case "0":
74
+ if (i0 === 0) i0 = i;
75
+ i1 = i;
76
+ break;
77
+ default:
78
+ if (!+s[i]) break out;
79
+ if (i0 > 0) i0 = 0;
80
+ break;
81
+ }
82
+ }
83
+ return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
84
+ }
85
+ var prefixExponent;
86
+ function formatPrefixAuto(x, p) {
87
+ var d = formatDecimalParts(x, p);
88
+ if (!d) return x + "";
89
+ var coefficient = d[0], exponent2 = d[1], i = exponent2 - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent2 / 3))) * 3) + 1, n = coefficient.length;
90
+ return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0];
91
+ }
92
+ function formatRounded(x, p) {
93
+ var d = formatDecimalParts(x, p);
94
+ if (!d) return x + "";
95
+ var coefficient = d[0], exponent2 = d[1];
96
+ return exponent2 < 0 ? "0." + new Array(-exponent2).join("0") + coefficient : coefficient.length > exponent2 + 1 ? coefficient.slice(0, exponent2 + 1) + "." + coefficient.slice(exponent2 + 1) : coefficient + new Array(exponent2 - coefficient.length + 2).join("0");
97
+ }
98
+ const formatTypes = {
99
+ "%": (x, p) => (x * 100).toFixed(p),
100
+ "b": (x) => Math.round(x).toString(2),
101
+ "c": (x) => x + "",
102
+ "d": formatDecimal,
103
+ "e": (x, p) => x.toExponential(p),
104
+ "f": (x, p) => x.toFixed(p),
105
+ "g": (x, p) => x.toPrecision(p),
106
+ "o": (x) => Math.round(x).toString(8),
107
+ "p": (x, p) => formatRounded(x * 100, p),
108
+ "r": formatRounded,
109
+ "s": formatPrefixAuto,
110
+ "X": (x) => Math.round(x).toString(16).toUpperCase(),
111
+ "x": (x) => Math.round(x).toString(16)
112
+ };
113
+ function identity(x) {
114
+ return x;
115
+ }
116
+ var map = Array.prototype.map, prefixes = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
117
+ function formatLocale(locale2) {
118
+ var group = locale2.grouping === void 0 || locale2.thousands === void 0 ? identity : formatGroup(map.call(locale2.grouping, Number), locale2.thousands + ""), currencyPrefix = locale2.currency === void 0 ? "" : locale2.currency[0] + "", currencySuffix = locale2.currency === void 0 ? "" : locale2.currency[1] + "", decimal = locale2.decimal === void 0 ? "." : locale2.decimal + "", numerals = locale2.numerals === void 0 ? identity : formatNumerals(map.call(locale2.numerals, String)), percent = locale2.percent === void 0 ? "%" : locale2.percent + "", minus = locale2.minus === void 0 ? "−" : locale2.minus + "", nan = locale2.nan === void 0 ? "NaN" : locale2.nan + "";
119
+ function newFormat(specifier) {
120
+ specifier = formatSpecifier(specifier);
121
+ var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type;
122
+ if (type === "n") comma = true, type = "g";
123
+ else if (!formatTypes[type]) precision === void 0 && (precision = 12), trim = true, type = "g";
124
+ if (zero || fill === "0" && align === "=") zero = true, fill = "0", align = "=";
125
+ var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "", suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "";
126
+ var formatType = formatTypes[type], maybeSuffix = /[defgprs%]/.test(type);
127
+ precision = precision === void 0 ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
128
+ function format2(value) {
129
+ var valuePrefix = prefix, valueSuffix = suffix, i, n, c;
130
+ if (type === "c") {
131
+ valueSuffix = formatType(value) + valueSuffix;
132
+ value = "";
133
+ } else {
134
+ value = +value;
135
+ var valueNegative = value < 0 || 1 / value < 0;
136
+ value = isNaN(value) ? nan : formatType(Math.abs(value), precision);
137
+ if (trim) value = formatTrim(value);
138
+ if (valueNegative && +value === 0 && sign !== "+") valueNegative = false;
139
+ valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
140
+ valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
141
+ if (maybeSuffix) {
142
+ i = -1, n = value.length;
143
+ while (++i < n) {
144
+ if (c = value.charCodeAt(i), 48 > c || c > 57) {
145
+ valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
146
+ value = value.slice(0, i);
147
+ break;
148
+ }
149
+ }
150
+ }
151
+ }
152
+ if (comma && !zero) value = group(value, Infinity);
153
+ var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : "";
154
+ if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
155
+ switch (align) {
156
+ case "<":
157
+ value = valuePrefix + value + valueSuffix + padding;
158
+ break;
159
+ case "=":
160
+ value = valuePrefix + padding + value + valueSuffix;
161
+ break;
162
+ case "^":
163
+ value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
164
+ break;
165
+ default:
166
+ value = padding + valuePrefix + value + valueSuffix;
167
+ break;
168
+ }
169
+ return numerals(value);
170
+ }
171
+ format2.toString = function() {
172
+ return specifier + "";
173
+ };
174
+ return format2;
175
+ }
176
+ function formatPrefix2(specifier, value) {
177
+ var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)), e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3, k = Math.pow(10, -e), prefix = prefixes[8 + e / 3];
178
+ return function(value2) {
179
+ return f(k * value2) + prefix;
180
+ };
181
+ }
182
+ return {
183
+ format: newFormat,
184
+ formatPrefix: formatPrefix2
185
+ };
186
+ }
187
+ var locale;
188
+ var format;
189
+ var formatPrefix;
190
+ defaultLocale({
191
+ thousands: ",",
192
+ grouping: [3],
193
+ currency: ["$", ""]
194
+ });
195
+ function defaultLocale(definition) {
196
+ locale = formatLocale(definition);
197
+ format = locale.format;
198
+ formatPrefix = locale.formatPrefix;
199
+ return locale;
200
+ }
201
+ export {
202
+ formatPrefix as a,
203
+ format as b,
204
+ exponent as e,
205
+ formatSpecifier as f
206
+ };