@schmitech/chatbot-widget 0.5.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_basePickBy-C3-QE0dl-5eQ6L29l.js +152 -0
- package/dist/_baseUniq-CstiM9Lp-AFR_Ns0a.js +615 -0
- package/dist/arc-W3NKKXLI-DHbDwLx0.js +84 -0
- package/dist/architecture-U656AL7Q-fn9wJZsH-BLoGjtkP.js +6 -0
- package/dist/architectureDiagram-VXUJARFQ-zzJsgPC6-C4OfUE0m.js +4667 -0
- package/dist/blockDiagram-VD42YOAC-D-In4h7h-BYXdRmeG.js +2266 -0
- package/dist/c4Diagram-YG6GDRKO-DBs8r9gh-BdLuHgPT.js +1582 -0
- package/dist/channel-RBWQyMSg-Cx0HUumY.js +6 -0
- package/dist/chatbot-widget.bundle.js +4473 -1556
- package/dist/chatbot-widget.css +1 -1
- package/dist/chatbot-widget.es.js +12 -63659
- package/dist/chatbot-widget.umd.js +4472 -1555
- package/dist/chunk-4BX2VUAB-BqD7w0AR-CbA2613c.js +10 -0
- package/dist/chunk-55IACEB6-D8pvDVEJ-DrL4SJSR.js +9 -0
- package/dist/chunk-B4BG7PRW-Dwma1pSy-BWjG5dc6.js +1375 -0
- package/dist/chunk-DI55MBZ5-BY2XXvZz-DbAvz3Pq.js +1383 -0
- package/dist/chunk-FMBD7UC4-BeiLbQ8U-BNaZTCv4.js +20 -0
- package/dist/chunk-QN33PNHL-BkO3hOeq-DkU1EzGA.js +21 -0
- package/dist/chunk-QZHKN3VN-Cwlo2qTG-DMmeZmp5.js +16 -0
- package/dist/chunk-TZMSLE5B-BnXK-OiF-RfzVsOBe.js +65 -0
- package/dist/classDiagram-2ON5EDUG-Crd6O69V-kCZrFOLN.js +17 -0
- package/dist/classDiagram-v2-WZHVMYZB-Crd6O69V-kCZrFOLN.js +17 -0
- package/dist/clone-CfLgyC8S-DsDOh4B4.js +9 -0
- package/dist/config/index.d.ts +4 -2
- package/dist/cose-bilkent-S5V4N54A-DKeVcPDK-de_7nZTY.js +2609 -0
- package/dist/cytoscape.esm-CjI2IsL8-Be2K4mI6.js +18723 -0
- package/dist/dagre-6UL2VRFP-BPf604Df-BhZs6zCq.js +448 -0
- package/dist/diagram-PSM6KHXK-DeLcpEV3-qb4rujeN.js +532 -0
- package/dist/diagram-QEK2KX5R-C_5RR1NJ-C5kZWmRl.js +222 -0
- package/dist/diagram-S2PKOQOG-DVx43aon-4nlw6iDz.js +144 -0
- package/dist/erDiagram-Q2GNP2WA-DgUeO5_h-DHc9Yphl.js +841 -0
- package/dist/flowDiagram-NV44I4VS-C5HQUzU9-DHjbmAtJ.js +1628 -0
- package/dist/ganttDiagram-JELNMOA3-DgSZ1ixF-C3hJs_k9.js +1936 -0
- package/dist/gitGraph-F6HP7TQM-UL7-Bx1s-Cog5rj3j.js +6 -0
- package/dist/gitGraphDiagram-NY62KEGX-DY5loT9K-CEcKQNrM.js +713 -0
- package/dist/graph-BfwqPHx6-DErF9dBN.js +248 -0
- package/dist/index-B5s_uaP2.js +124168 -0
- package/dist/index-BAOVR-xx-thst7Pu6.js +13251 -0
- package/dist/info-NVLQJR56-BsqQ0RXQ-BcYgZCCY.js +6 -0
- package/dist/infoDiagram-WHAUD3N6-DIqQ6vCk-BuiAAMSH.js +25 -0
- package/dist/journeyDiagram-XKPGCS4Q-DXjg3S3r-Byi_TGXs.js +835 -0
- package/dist/kanban-definition-3W4ZIXB7-Uxt7Am6n-jy96nA-g.js +721 -0
- package/dist/layout-CSfkE668-BjigbqJL.js +1333 -0
- package/dist/mermaid-parser.core-LjuO4CL3-BLqmPe8-.js +12891 -0
- package/dist/mindmap-definition-VGOIOE7T-DXwVuAPE-SK4e1Sse.js +787 -0
- package/dist/packet-BFZMPI3H-DJWkrKrV-BamBev9S.js +6 -0
- package/dist/pie-7BOR55EZ-DC8hTFwn-D1bcIQbR.js +6 -0
- package/dist/pieDiagram-ADFJNKIX-Cj0EHHtj-Dbr09c-S.js +161 -0
- package/dist/quadrantDiagram-AYHSOK5B-CnLDz007-Ci0DQl2T.js +1024 -0
- package/dist/radar-NHE76QYJ-Bijk-Fk9-9nAmDCMr.js +6 -0
- package/dist/requirementDiagram-UZGBJVZJ-rDaI-8Be-CSEc4S33.js +851 -0
- package/dist/sankeyDiagram-TZEHDZUN-A0YO8ixs-Zj8Z0j0n.js +810 -0
- package/dist/sequenceDiagram-WL72ISMW-BFF7TtP7-Dcofckjv.js +2519 -0
- package/dist/shared/styles.d.ts +1 -1
- package/dist/stateDiagram-FKZM4ZOC-ofFsB7HJ-BJBX12rE.js +264 -0
- package/dist/stateDiagram-v2-4FDKWEC3-CEZFbksU-BywmU88h.js +17 -0
- package/dist/timeline-definition-IT6M3QCI-5W361ZNm-MP_ufVe7.js +800 -0
- package/dist/treemap-KMMF4GRG-pGRoYcSn-BeZ7sXgP.js +6 -0
- package/dist/ui/Message.d.ts +1 -5
- package/dist/ui/MessagesList.d.ts +1 -5
- package/dist/utils/contentFiltering.d.ts +12 -0
- package/dist/xychartDiagram-PRI3JC2R-CSr0GxaP-DBgCtplP.js +1297 -0
- package/package.json +3 -3
- package/dist/ui/TypingEffect.d.ts +0 -18
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { aM as g, bh as v, aD as E, bi as N, bj as b } from "./index-B5s_uaP2.js";
|
|
2
|
+
import { d as _, _ as p, $ as d, S as l, E as f, I as L, P as j, O as P } from "./_baseUniq-CstiM9Lp-AFR_Ns0a.js";
|
|
3
|
+
typeof window < "u" && (window.global = window);
|
|
4
|
+
var D = E(function(o) {
|
|
5
|
+
return j(P(o, 1, N, !0));
|
|
6
|
+
}), F = "\0", a = "\0", w = "";
|
|
7
|
+
class y {
|
|
8
|
+
constructor(t = {}) {
|
|
9
|
+
this._isDirected = Object.prototype.hasOwnProperty.call(t, "directed") ? t.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(t, "multigraph") ? t.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(t, "compound") ? t.compound : !1, this._label = void 0, this._defaultNodeLabelFn = g(void 0), this._defaultEdgeLabelFn = g(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[a] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
|
|
10
|
+
}
|
|
11
|
+
/* === Graph functions ========= */
|
|
12
|
+
isDirected() {
|
|
13
|
+
return this._isDirected;
|
|
14
|
+
}
|
|
15
|
+
isMultigraph() {
|
|
16
|
+
return this._isMultigraph;
|
|
17
|
+
}
|
|
18
|
+
isCompound() {
|
|
19
|
+
return this._isCompound;
|
|
20
|
+
}
|
|
21
|
+
setGraph(t) {
|
|
22
|
+
return this._label = t, this;
|
|
23
|
+
}
|
|
24
|
+
graph() {
|
|
25
|
+
return this._label;
|
|
26
|
+
}
|
|
27
|
+
/* === Node functions ========== */
|
|
28
|
+
setDefaultNodeLabel(t) {
|
|
29
|
+
return v(t) || (t = g(t)), this._defaultNodeLabelFn = t, this;
|
|
30
|
+
}
|
|
31
|
+
nodeCount() {
|
|
32
|
+
return this._nodeCount;
|
|
33
|
+
}
|
|
34
|
+
nodes() {
|
|
35
|
+
return _(this._nodes);
|
|
36
|
+
}
|
|
37
|
+
sources() {
|
|
38
|
+
var t = this;
|
|
39
|
+
return p(this.nodes(), function(e) {
|
|
40
|
+
return b(t._in[e]);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
sinks() {
|
|
44
|
+
var t = this;
|
|
45
|
+
return p(this.nodes(), function(e) {
|
|
46
|
+
return b(t._out[e]);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
setNodes(t, e) {
|
|
50
|
+
var s = arguments, i = this;
|
|
51
|
+
return d(t, function(r) {
|
|
52
|
+
s.length > 1 ? i.setNode(r, e) : i.setNode(r);
|
|
53
|
+
}), this;
|
|
54
|
+
}
|
|
55
|
+
setNode(t, e) {
|
|
56
|
+
return Object.prototype.hasOwnProperty.call(this._nodes, t) ? (arguments.length > 1 && (this._nodes[t] = e), this) : (this._nodes[t] = arguments.length > 1 ? e : this._defaultNodeLabelFn(t), this._isCompound && (this._parent[t] = a, this._children[t] = {}, this._children[a][t] = !0), this._in[t] = {}, this._preds[t] = {}, this._out[t] = {}, this._sucs[t] = {}, ++this._nodeCount, this);
|
|
57
|
+
}
|
|
58
|
+
node(t) {
|
|
59
|
+
return this._nodes[t];
|
|
60
|
+
}
|
|
61
|
+
hasNode(t) {
|
|
62
|
+
return Object.prototype.hasOwnProperty.call(this._nodes, t);
|
|
63
|
+
}
|
|
64
|
+
removeNode(t) {
|
|
65
|
+
if (Object.prototype.hasOwnProperty.call(this._nodes, t)) {
|
|
66
|
+
var e = (s) => this.removeEdge(this._edgeObjs[s]);
|
|
67
|
+
delete this._nodes[t], this._isCompound && (this._removeFromParentsChildList(t), delete this._parent[t], d(this.children(t), (s) => {
|
|
68
|
+
this.setParent(s);
|
|
69
|
+
}), delete this._children[t]), d(_(this._in[t]), e), delete this._in[t], delete this._preds[t], d(_(this._out[t]), e), delete this._out[t], delete this._sucs[t], --this._nodeCount;
|
|
70
|
+
}
|
|
71
|
+
return this;
|
|
72
|
+
}
|
|
73
|
+
setParent(t, e) {
|
|
74
|
+
if (!this._isCompound)
|
|
75
|
+
throw new Error("Cannot set parent in a non-compound graph");
|
|
76
|
+
if (l(e))
|
|
77
|
+
e = a;
|
|
78
|
+
else {
|
|
79
|
+
e += "";
|
|
80
|
+
for (var s = e; !l(s); s = this.parent(s))
|
|
81
|
+
if (s === t)
|
|
82
|
+
throw new Error("Setting " + e + " as parent of " + t + " would create a cycle");
|
|
83
|
+
this.setNode(e);
|
|
84
|
+
}
|
|
85
|
+
return this.setNode(t), this._removeFromParentsChildList(t), this._parent[t] = e, this._children[e][t] = !0, this;
|
|
86
|
+
}
|
|
87
|
+
_removeFromParentsChildList(t) {
|
|
88
|
+
delete this._children[this._parent[t]][t];
|
|
89
|
+
}
|
|
90
|
+
parent(t) {
|
|
91
|
+
if (this._isCompound) {
|
|
92
|
+
var e = this._parent[t];
|
|
93
|
+
if (e !== a)
|
|
94
|
+
return e;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
children(t) {
|
|
98
|
+
if (l(t) && (t = a), this._isCompound) {
|
|
99
|
+
var e = this._children[t];
|
|
100
|
+
if (e)
|
|
101
|
+
return _(e);
|
|
102
|
+
} else {
|
|
103
|
+
if (t === a)
|
|
104
|
+
return this.nodes();
|
|
105
|
+
if (this.hasNode(t))
|
|
106
|
+
return [];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
predecessors(t) {
|
|
110
|
+
var e = this._preds[t];
|
|
111
|
+
if (e)
|
|
112
|
+
return _(e);
|
|
113
|
+
}
|
|
114
|
+
successors(t) {
|
|
115
|
+
var e = this._sucs[t];
|
|
116
|
+
if (e)
|
|
117
|
+
return _(e);
|
|
118
|
+
}
|
|
119
|
+
neighbors(t) {
|
|
120
|
+
var e = this.predecessors(t);
|
|
121
|
+
if (e)
|
|
122
|
+
return D(e, this.successors(t));
|
|
123
|
+
}
|
|
124
|
+
isLeaf(t) {
|
|
125
|
+
var e;
|
|
126
|
+
return this.isDirected() ? e = this.successors(t) : e = this.neighbors(t), e.length === 0;
|
|
127
|
+
}
|
|
128
|
+
filterNodes(t) {
|
|
129
|
+
var e = new this.constructor({
|
|
130
|
+
directed: this._isDirected,
|
|
131
|
+
multigraph: this._isMultigraph,
|
|
132
|
+
compound: this._isCompound
|
|
133
|
+
});
|
|
134
|
+
e.setGraph(this.graph());
|
|
135
|
+
var s = this;
|
|
136
|
+
d(this._nodes, function(n, h) {
|
|
137
|
+
t(h) && e.setNode(h, n);
|
|
138
|
+
}), d(this._edgeObjs, function(n) {
|
|
139
|
+
e.hasNode(n.v) && e.hasNode(n.w) && e.setEdge(n, s.edge(n));
|
|
140
|
+
});
|
|
141
|
+
var i = {};
|
|
142
|
+
function r(n) {
|
|
143
|
+
var h = s.parent(n);
|
|
144
|
+
return h === void 0 || e.hasNode(h) ? (i[n] = h, h) : h in i ? i[h] : r(h);
|
|
145
|
+
}
|
|
146
|
+
return this._isCompound && d(e.nodes(), function(n) {
|
|
147
|
+
e.setParent(n, r(n));
|
|
148
|
+
}), e;
|
|
149
|
+
}
|
|
150
|
+
/* === Edge functions ========== */
|
|
151
|
+
setDefaultEdgeLabel(t) {
|
|
152
|
+
return v(t) || (t = g(t)), this._defaultEdgeLabelFn = t, this;
|
|
153
|
+
}
|
|
154
|
+
edgeCount() {
|
|
155
|
+
return this._edgeCount;
|
|
156
|
+
}
|
|
157
|
+
edges() {
|
|
158
|
+
return f(this._edgeObjs);
|
|
159
|
+
}
|
|
160
|
+
setPath(t, e) {
|
|
161
|
+
var s = this, i = arguments;
|
|
162
|
+
return L(t, function(r, n) {
|
|
163
|
+
return i.length > 1 ? s.setEdge(r, n, e) : s.setEdge(r, n), n;
|
|
164
|
+
}), this;
|
|
165
|
+
}
|
|
166
|
+
/*
|
|
167
|
+
* setEdge(v, w, [value, [name]])
|
|
168
|
+
* setEdge({ v, w, [name] }, [value])
|
|
169
|
+
*/
|
|
170
|
+
setEdge() {
|
|
171
|
+
var t, e, s, i, r = !1, n = arguments[0];
|
|
172
|
+
typeof n == "object" && n !== null && "v" in n ? (t = n.v, e = n.w, s = n.name, arguments.length === 2 && (i = arguments[1], r = !0)) : (t = n, e = arguments[1], s = arguments[3], arguments.length > 2 && (i = arguments[2], r = !0)), t = "" + t, e = "" + e, l(s) || (s = "" + s);
|
|
173
|
+
var h = c(this._isDirected, t, e, s);
|
|
174
|
+
if (Object.prototype.hasOwnProperty.call(this._edgeLabels, h))
|
|
175
|
+
return r && (this._edgeLabels[h] = i), this;
|
|
176
|
+
if (!l(s) && !this._isMultigraph)
|
|
177
|
+
throw new Error("Cannot set a named edge when isMultigraph = false");
|
|
178
|
+
this.setNode(t), this.setNode(e), this._edgeLabels[h] = r ? i : this._defaultEdgeLabelFn(t, e, s);
|
|
179
|
+
var u = M(this._isDirected, t, e, s);
|
|
180
|
+
return t = u.v, e = u.w, Object.freeze(u), this._edgeObjs[h] = u, C(this._preds[e], t), C(this._sucs[t], e), this._in[e][h] = u, this._out[t][h] = u, this._edgeCount++, this;
|
|
181
|
+
}
|
|
182
|
+
edge(t, e, s) {
|
|
183
|
+
var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, t, e, s);
|
|
184
|
+
return this._edgeLabels[i];
|
|
185
|
+
}
|
|
186
|
+
hasEdge(t, e, s) {
|
|
187
|
+
var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, t, e, s);
|
|
188
|
+
return Object.prototype.hasOwnProperty.call(this._edgeLabels, i);
|
|
189
|
+
}
|
|
190
|
+
removeEdge(t, e, s) {
|
|
191
|
+
var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, t, e, s), r = this._edgeObjs[i];
|
|
192
|
+
return r && (t = r.v, e = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i], O(this._preds[e], t), O(this._sucs[t], e), delete this._in[e][i], delete this._out[t][i], this._edgeCount--), this;
|
|
193
|
+
}
|
|
194
|
+
inEdges(t, e) {
|
|
195
|
+
var s = this._in[t];
|
|
196
|
+
if (s) {
|
|
197
|
+
var i = f(s);
|
|
198
|
+
return e ? p(i, function(r) {
|
|
199
|
+
return r.v === e;
|
|
200
|
+
}) : i;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
outEdges(t, e) {
|
|
204
|
+
var s = this._out[t];
|
|
205
|
+
if (s) {
|
|
206
|
+
var i = f(s);
|
|
207
|
+
return e ? p(i, function(r) {
|
|
208
|
+
return r.w === e;
|
|
209
|
+
}) : i;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
nodeEdges(t, e) {
|
|
213
|
+
var s = this.inEdges(t, e);
|
|
214
|
+
if (s)
|
|
215
|
+
return s.concat(this.outEdges(t, e));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
y.prototype._nodeCount = 0;
|
|
219
|
+
y.prototype._edgeCount = 0;
|
|
220
|
+
function C(o, t) {
|
|
221
|
+
o[t] ? o[t]++ : o[t] = 1;
|
|
222
|
+
}
|
|
223
|
+
function O(o, t) {
|
|
224
|
+
--o[t] || delete o[t];
|
|
225
|
+
}
|
|
226
|
+
function c(o, t, e, s) {
|
|
227
|
+
var i = "" + t, r = "" + e;
|
|
228
|
+
if (!o && i > r) {
|
|
229
|
+
var n = i;
|
|
230
|
+
i = r, r = n;
|
|
231
|
+
}
|
|
232
|
+
return i + w + r + w + (l(s) ? F : s);
|
|
233
|
+
}
|
|
234
|
+
function M(o, t, e, s) {
|
|
235
|
+
var i = "" + t, r = "" + e;
|
|
236
|
+
if (!o && i > r) {
|
|
237
|
+
var n = i;
|
|
238
|
+
i = r, r = n;
|
|
239
|
+
}
|
|
240
|
+
var h = { v: i, w: r };
|
|
241
|
+
return s && (h.name = s), h;
|
|
242
|
+
}
|
|
243
|
+
function m(o, t) {
|
|
244
|
+
return c(o, t.v, t.w, t.name);
|
|
245
|
+
}
|
|
246
|
+
export {
|
|
247
|
+
y as L
|
|
248
|
+
};
|