@n8n-zengchao/chat 0.62.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/README.md +289 -0
- package/dist/App.vue.d.ts +2 -0
- package/dist/__stories__/App.stories.d.ts +18 -0
- package/dist/__tests__/Input.spec.d.ts +1 -0
- package/dist/__tests__/api/generic.spec.d.ts +1 -0
- package/dist/__tests__/api/message.spec.d.ts +1 -0
- package/dist/__tests__/index.spec.d.ts +1 -0
- package/dist/__tests__/plugins/chat.spec.d.ts +1 -0
- package/dist/__tests__/plugins/chat.test.d.ts +1 -0
- package/dist/__tests__/setup.d.ts +0 -0
- package/dist/__tests__/utils/create.d.ts +5 -0
- package/dist/__tests__/utils/fetch.d.ts +13 -0
- package/dist/__tests__/utils/index.d.ts +3 -0
- package/dist/__tests__/utils/selectors.d.ts +12 -0
- package/dist/__tests__/utils/streaming.spec.d.ts +1 -0
- package/dist/__tests__/utils/streamingHandlers.spec.d.ts +1 -0
- package/dist/_basePickBy-aQilsjEs.mjs +106 -0
- package/dist/_baseUniq-Agc10qFQ.mjs +232 -0
- package/dist/api/generic.d.ts +7 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/message.d.ts +11 -0
- package/dist/arc-EhYU_DB1.mjs +79 -0
- package/dist/architecture-U656AL7Q-B1STlXpR.mjs +10 -0
- package/dist/architectureDiagram-VXUJARFQ-DOVAbXSw.mjs +4054 -0
- package/dist/array-B5w981Vk.mjs +5 -0
- package/dist/blockDiagram-VD42YOAC-BsX3Fkg3.mjs +3013 -0
- package/dist/c4Diagram-YG6GDRKO-B5JaLuX6.mjs +2957 -0
- package/dist/channel-CqrIo07y.mjs +4 -0
- package/dist/chat.bundle.es.js +37656 -0
- package/dist/chat.bundle.umd.js +2784 -0
- package/dist/chat.es.js +35738 -0
- package/dist/chat.umd.js +2776 -0
- package/dist/chunk-4BX2VUAB-dn0RXIrC.mjs +7 -0
- package/dist/chunk-55IACEB6-DrIttNoL.mjs +7 -0
- package/dist/chunk-76Q3JFCE-D7DMbWeQ.mjs +20 -0
- package/dist/chunk-ABZYJK2D-_NXv778f.mjs +2516 -0
- package/dist/chunk-ATLVNIR6-CBnG7Ev9.mjs +66 -0
- package/dist/chunk-B4BG7PRW-DElmmAse.mjs +3109 -0
- package/dist/chunk-CVBHYZKI-kPsSw5G9.mjs +11 -0
- package/dist/chunk-DI55MBZ5-Bw6uFFfD.mjs +1995 -0
- package/dist/chunk-DZXZ2BO8.mjs +19 -0
- package/dist/chunk-EXTU4WIE-DWzncOZf.mjs +8 -0
- package/dist/chunk-FMBD7UC4-CQf-nVrj.mjs +4 -0
- package/dist/chunk-FPAJGGOC-HRc6DGju.mjs +12254 -0
- package/dist/chunk-FWNWRKHM-CGiJVNMo.mjs +57 -0
- package/dist/chunk-HN2XXSSU-DMfVdeUE.mjs +75 -0
- package/dist/chunk-JA3XYJ7Z-b0Li4NN8.mjs +1834 -0
- package/dist/chunk-JZLCHNYA-C_4MLySW.mjs +4862 -0
- package/dist/chunk-KS23V3DP-BRKOfbU6.mjs +136 -0
- package/dist/chunk-LBM3YZW2-JIQK8wiH.mjs +20 -0
- package/dist/chunk-LHMN2FUI-PNCyIUgu.mjs +20 -0
- package/dist/chunk-MI3HLSF2-B9GTCmLp.mjs +1146 -0
- package/dist/chunk-N4CR4FBY-CjlmnCPD.mjs +40 -0
- package/dist/chunk-O7ZBX7Z2-DmJUfqJj.mjs +27 -0
- package/dist/chunk-QN33PNHL-nN1zLFSf.mjs +24 -0
- package/dist/chunk-QXUST7PY-CY78Btj9.mjs +487 -0
- package/dist/chunk-QZHKN3VN-BF5N1pfB.mjs +12 -0
- package/dist/chunk-S3R3BYOJ-BhFsv0Go.mjs +1076 -0
- package/dist/chunk-S6J4BHB3-BvrWTdbl.mjs +20 -0
- package/dist/chunk-T53DSG4Q-XzY06amw.mjs +25 -0
- package/dist/chunk-TZMSLE5B-DVmJQ8eg.mjs +57 -0
- package/dist/classDiagram-2ON5EDUG-CKxiEVX9.mjs +33 -0
- package/dist/classDiagram-v2-WZHVMYZB-sAa_2keq.mjs +33 -0
- package/dist/clone-nkGlb0Gn.mjs +8 -0
- package/dist/components/Button.vue.d.ts +17 -0
- package/dist/components/Chat.vue.d.ts +2 -0
- package/dist/components/ChatFile.vue.d.ts +11 -0
- package/dist/components/ChatWindow.vue.d.ts +2 -0
- package/dist/components/GetStarted.vue.d.ts +2 -0
- package/dist/components/GetStartedFooter.vue.d.ts +2 -0
- package/dist/components/Input.vue.d.ts +39 -0
- package/dist/components/Layout.vue.d.ts +23 -0
- package/dist/components/Message.vue.d.ts +39 -0
- package/dist/components/MessageTyping.vue.d.ts +76 -0
- package/dist/components/MessagesList.vue.d.ts +164 -0
- package/dist/components/PoweredBy.vue.d.ts +2 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/composables/index.d.ts +3 -0
- package/dist/composables/useChat.d.ts +2 -0
- package/dist/composables/useI18n.d.ts +4 -0
- package/dist/composables/useOptions.d.ts +4 -0
- package/dist/constants/defaults.d.ts +3 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/localStorage.d.ts +2 -0
- package/dist/constants/symbols.d.ts +4 -0
- package/dist/cose-bilkent-S5V4N54A-1lKG2PUg.mjs +2251 -0
- package/dist/cytoscape.esm-Dls1_mGy.mjs +18108 -0
- package/dist/dagre-6UL2VRFP-CbWFu9xQ.mjs +300 -0
- package/dist/dagre-DEdOheHq.mjs +1385 -0
- package/dist/defaultLocale-CyoQm63E.mjs +178 -0
- package/dist/diagram-PSM6KHXK-CJcHbrJH.mjs +499 -0
- package/dist/diagram-QEK2KX5R-XQ9XOVL4.mjs +228 -0
- package/dist/diagram-S2PKOQOG-CmRfaeSf.mjs +146 -0
- package/dist/dist-BT0fjU7K.mjs +50 -0
- package/dist/erDiagram-Q2GNP2WA-iuoUWHwm.mjs +1603 -0
- package/dist/event-buses/chatEventBus.d.ts +1 -0
- package/dist/event-buses/index.d.ts +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/flowDiagram-NV44I4VS-D3GMS8-G.mjs +4132 -0
- package/dist/ganttDiagram-LVOFAZNH-DMTZVZDR.mjs +2832 -0
- package/dist/gitGraph-F6HP7TQM-CrdUzURw.mjs +10 -0
- package/dist/gitGraphDiagram-NY62KEGX-DipP5Fgt.mjs +636 -0
- package/dist/graphlib-D9eH5icd.mjs +224 -0
- package/dist/index.d.ts +2 -0
- package/dist/info-NVLQJR56-C-93Yf3U.mjs +10 -0
- package/dist/infoDiagram-F6ZHWCRC-jM50s26K.mjs +33 -0
- package/dist/init-CYeu4QfE.mjs +14 -0
- package/dist/isArrayLikeObject-BPcFdnyK.mjs +459 -0
- package/dist/isUndefined-BvarJ1wS.mjs +374 -0
- package/dist/journeyDiagram-XKPGCS4Q-BEEO_0Bh.mjs +885 -0
- package/dist/kanban-definition-3W4ZIXB7-B8u_HDmL.mjs +971 -0
- package/dist/katex-Dc1vXbUC.mjs +22094 -0
- package/dist/line-BJxACIPZ.mjs +31 -0
- package/dist/linear-DHHVI-cj.mjs +251 -0
- package/dist/math-Byg0NvhS.mjs +9 -0
- package/dist/mermaid-parser.core-YT4qvimq.mjs +49 -0
- package/dist/mindmap-definition-VGOIOE7T-ah41V88S.mjs +960 -0
- package/dist/now-DsJMgI1z.mjs +6 -0
- package/dist/ordinal-L0-EVPg8.mjs +62 -0
- package/dist/packet-BFZMPI3H-Cs4kRHct.mjs +10 -0
- package/dist/path-BcDHwjEr.mjs +80 -0
- package/dist/pie-7BOR55EZ-YZ5Xu4o6.mjs +10 -0
- package/dist/pieDiagram-ADFJNKIX-CqI33m1a.mjs +174 -0
- package/dist/plugins/chat.d.ts +3 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/quadrantDiagram-AYHSOK5B-DDv2X9c1.mjs +1971 -0
- package/dist/radar-NHE76QYJ-TpirOFtv.mjs +10 -0
- package/dist/requirementDiagram-UZGBJVZJ-DXa77VzO.mjs +2194 -0
- package/dist/sankeyDiagram-TZEHDZUN--B9DInJC.mjs +885 -0
- package/dist/sequenceDiagram-WL72ISMW-Dqn9jJ3g.mjs +3562 -0
- package/dist/src-DdwtiGjk.mjs +1976 -0
- package/dist/stateDiagram-FKZM4ZOC-D3eEcVjS.mjs +226 -0
- package/dist/stateDiagram-v2-4FDKWEC3-dzwJ4caL.mjs +32 -0
- package/dist/style.css +3 -0
- package/dist/timeline-definition-IT6M3QCI-z93ry7RN.mjs +831 -0
- package/dist/toInteger-1S_4Byef.mjs +36 -0
- package/dist/treemap-KMMF4GRG-BlF0Ev1z.mjs +10 -0
- package/dist/types/chat.d.ts +13 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/messages.d.ts +17 -0
- package/dist/types/options.d.ts +33 -0
- package/dist/types/streaming.d.ts +18 -0
- package/dist/types/webhook.d.ts +19 -0
- package/dist/utils/event-bus.d.ts +8 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/mount.d.ts +1 -0
- package/dist/utils/streaming.d.ts +26 -0
- package/dist/utils/streamingHandlers.d.ts +6 -0
- package/dist/utils/utils.d.ts +1 -0
- package/dist/xychartDiagram-PRI3JC2R-C3aDcgBz.mjs +2022 -0
- package/package.json +78 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*! Package version @n8n/chat@0.62.0 */
|
|
2
|
+
import { k as linear_default } from "./chunk-S3R3BYOJ-BhFsv0Go.mjs";
|
|
3
|
+
import { n as constant_default, t as withPath } from "./path-BcDHwjEr.mjs";
|
|
4
|
+
import { t as array_default } from "./array-B5w981Vk.mjs";
|
|
5
|
+
function x(e) {
|
|
6
|
+
return e[0];
|
|
7
|
+
}
|
|
8
|
+
function y(e) {
|
|
9
|
+
return e[1];
|
|
10
|
+
}
|
|
11
|
+
function line_default(o, s) {
|
|
12
|
+
var c = constant_default(!0), l = null, u = linear_default, d = null, f = withPath(p);
|
|
13
|
+
o = typeof o == "function" ? o : o === void 0 ? x : constant_default(o), s = typeof s == "function" ? s : s === void 0 ? y : constant_default(s);
|
|
14
|
+
function p(e) {
|
|
15
|
+
var n, r = (e = array_default(e)).length, i, a = !1, p;
|
|
16
|
+
for (l ?? (d = u(p = f())), n = 0; n <= r; ++n) !(n < r && c(i = e[n], n, e)) === a && ((a = !a) ? d.lineStart() : d.lineEnd()), a && d.point(+o(i, n, e), +s(i, n, e));
|
|
17
|
+
if (p) return d = null, p + "" || null;
|
|
18
|
+
}
|
|
19
|
+
return p.x = function(e) {
|
|
20
|
+
return arguments.length ? (o = typeof e == "function" ? e : constant_default(+e), p) : o;
|
|
21
|
+
}, p.y = function(e) {
|
|
22
|
+
return arguments.length ? (s = typeof e == "function" ? e : constant_default(+e), p) : s;
|
|
23
|
+
}, p.defined = function(e) {
|
|
24
|
+
return arguments.length ? (c = typeof e == "function" ? e : constant_default(!!e), p) : c;
|
|
25
|
+
}, p.curve = function(e) {
|
|
26
|
+
return arguments.length ? (u = e, l != null && (d = u(l)), p) : u;
|
|
27
|
+
}, p.context = function(e) {
|
|
28
|
+
return arguments.length ? (e == null ? l = d = null : d = u(l = e), p) : l;
|
|
29
|
+
}, p;
|
|
30
|
+
}
|
|
31
|
+
export { line_default as t };
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/*! Package version @n8n/chat@0.62.0 */
|
|
2
|
+
import { l as color, n as number_default, o as constant_default, r as rgb_default, t as string_default } from "./src-DdwtiGjk.mjs";
|
|
3
|
+
import { i as exponent_default, n as formatPrefix, r as formatSpecifier, t as format } from "./defaultLocale-CyoQm63E.mjs";
|
|
4
|
+
import { t as initRange } from "./init-CYeu4QfE.mjs";
|
|
5
|
+
function ascending(p, L) {
|
|
6
|
+
return p == null || L == null ? NaN : p < L ? -1 : p > L ? 1 : p >= L ? 0 : NaN;
|
|
7
|
+
}
|
|
8
|
+
function descending(p, L) {
|
|
9
|
+
return p == null || L == null ? NaN : L < p ? -1 : L > p ? 1 : L >= p ? 0 : NaN;
|
|
10
|
+
}
|
|
11
|
+
function bisector(p) {
|
|
12
|
+
let L, R, z;
|
|
13
|
+
p.length === 2 ? (L = p === ascending || p === descending ? p : zero, R = p, z = p) : (L = ascending, R = (L, R) => ascending(p(L), R), z = (L, R) => p(L) - R);
|
|
14
|
+
function B(p, z, B = 0, V = p.length) {
|
|
15
|
+
if (B < V) {
|
|
16
|
+
if (L(z, z) !== 0) return V;
|
|
17
|
+
do {
|
|
18
|
+
let L = B + V >>> 1;
|
|
19
|
+
R(p[L], z) < 0 ? B = L + 1 : V = L;
|
|
20
|
+
} while (B < V);
|
|
21
|
+
}
|
|
22
|
+
return B;
|
|
23
|
+
}
|
|
24
|
+
function V(p, z, B = 0, V = p.length) {
|
|
25
|
+
if (B < V) {
|
|
26
|
+
if (L(z, z) !== 0) return V;
|
|
27
|
+
do {
|
|
28
|
+
let L = B + V >>> 1;
|
|
29
|
+
R(p[L], z) <= 0 ? B = L + 1 : V = L;
|
|
30
|
+
} while (B < V);
|
|
31
|
+
}
|
|
32
|
+
return B;
|
|
33
|
+
}
|
|
34
|
+
function H(p, L, R = 0, V = p.length) {
|
|
35
|
+
let H = B(p, L, R, V - 1);
|
|
36
|
+
return H > R && z(p[H - 1], L) > -z(p[H], L) ? H - 1 : H;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
left: B,
|
|
40
|
+
center: H,
|
|
41
|
+
right: V
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function zero() {
|
|
45
|
+
return 0;
|
|
46
|
+
}
|
|
47
|
+
function number$1(p) {
|
|
48
|
+
return p === null ? NaN : +p;
|
|
49
|
+
}
|
|
50
|
+
var ascendingBisect = bisector(ascending);
|
|
51
|
+
const bisectRight = ascendingBisect.right;
|
|
52
|
+
ascendingBisect.left, bisector(number$1).center;
|
|
53
|
+
var bisect_default = bisectRight, e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
|
|
54
|
+
function tickSpec(p, L, R) {
|
|
55
|
+
let z = (L - p) / Math.max(0, R), B = Math.floor(Math.log10(z)), V = z / 10 ** B, H = V >= e10 ? 10 : V >= e5 ? 5 : V >= e2 ? 2 : 1, U, W, G;
|
|
56
|
+
return B < 0 ? (G = 10 ** -B / H, U = Math.round(p * G), W = Math.round(L * G), U / G < p && ++U, W / G > L && --W, G = -G) : (G = 10 ** B * H, U = Math.round(p / G), W = Math.round(L / G), U * G < p && ++U, W * G > L && --W), W < U && .5 <= R && R < 2 ? tickSpec(p, L, R * 2) : [
|
|
57
|
+
U,
|
|
58
|
+
W,
|
|
59
|
+
G
|
|
60
|
+
];
|
|
61
|
+
}
|
|
62
|
+
function ticks(p, L, R) {
|
|
63
|
+
if (L = +L, p = +p, R = +R, !(R > 0)) return [];
|
|
64
|
+
if (p === L) return [p];
|
|
65
|
+
let z = L < p, [B, V, H] = z ? tickSpec(L, p, R) : tickSpec(p, L, R);
|
|
66
|
+
if (!(V >= B)) return [];
|
|
67
|
+
let U = V - B + 1, W = Array(U);
|
|
68
|
+
if (z) if (H < 0) for (let p = 0; p < U; ++p) W[p] = (V - p) / -H;
|
|
69
|
+
else for (let p = 0; p < U; ++p) W[p] = (V - p) * H;
|
|
70
|
+
else if (H < 0) for (let p = 0; p < U; ++p) W[p] = (B + p) / -H;
|
|
71
|
+
else for (let p = 0; p < U; ++p) W[p] = (B + p) * H;
|
|
72
|
+
return W;
|
|
73
|
+
}
|
|
74
|
+
function tickIncrement(p, L, R) {
|
|
75
|
+
return L = +L, p = +p, R = +R, tickSpec(p, L, R)[2];
|
|
76
|
+
}
|
|
77
|
+
function tickStep(p, L, R) {
|
|
78
|
+
L = +L, p = +p, R = +R;
|
|
79
|
+
let z = L < p, B = z ? tickIncrement(L, p, R) : tickIncrement(p, L, R);
|
|
80
|
+
return (z ? -1 : 1) * (B < 0 ? 1 / -B : B);
|
|
81
|
+
}
|
|
82
|
+
function numberArray_default(p, L) {
|
|
83
|
+
L ||= [];
|
|
84
|
+
var R = p ? Math.min(L.length, p.length) : 0, z = L.slice(), B;
|
|
85
|
+
return function(V) {
|
|
86
|
+
for (B = 0; B < R; ++B) z[B] = p[B] * (1 - V) + L[B] * V;
|
|
87
|
+
return z;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function isNumberArray(p) {
|
|
91
|
+
return ArrayBuffer.isView(p) && !(p instanceof DataView);
|
|
92
|
+
}
|
|
93
|
+
function genericArray(p, L) {
|
|
94
|
+
var R = L ? L.length : 0, z = p ? Math.min(R, p.length) : 0, B = Array(z), V = Array(R), H;
|
|
95
|
+
for (H = 0; H < z; ++H) B[H] = value_default(p[H], L[H]);
|
|
96
|
+
for (; H < R; ++H) V[H] = L[H];
|
|
97
|
+
return function(p) {
|
|
98
|
+
for (H = 0; H < z; ++H) V[H] = B[H](p);
|
|
99
|
+
return V;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function date_default(p, L) {
|
|
103
|
+
var R = /* @__PURE__ */ new Date();
|
|
104
|
+
return p = +p, L = +L, function(z) {
|
|
105
|
+
return R.setTime(p * (1 - z) + L * z), R;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function object_default(p, L) {
|
|
109
|
+
var R = {}, z = {}, B;
|
|
110
|
+
for (B in (typeof p != "object" || !p) && (p = {}), (typeof L != "object" || !L) && (L = {}), L) B in p ? R[B] = value_default(p[B], L[B]) : z[B] = L[B];
|
|
111
|
+
return function(p) {
|
|
112
|
+
for (B in R) z[B] = R[B](p);
|
|
113
|
+
return z;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function value_default(V, H) {
|
|
117
|
+
var U = typeof H, W;
|
|
118
|
+
return H == null || U === "boolean" ? constant_default(H) : (U === "number" ? number_default : U === "string" ? (W = color(H)) ? (H = W, rgb_default) : string_default : H instanceof color ? rgb_default : H instanceof Date ? date_default : isNumberArray(H) ? numberArray_default : Array.isArray(H) ? genericArray : typeof H.valueOf != "function" && typeof H.toString != "function" || isNaN(H) ? object_default : number_default)(V, H);
|
|
119
|
+
}
|
|
120
|
+
function round_default(p, L) {
|
|
121
|
+
return p = +p, L = +L, function(R) {
|
|
122
|
+
return Math.round(p * (1 - R) + L * R);
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function precisionFixed_default(p) {
|
|
126
|
+
return Math.max(0, -exponent_default(Math.abs(p)));
|
|
127
|
+
}
|
|
128
|
+
function precisionPrefix_default(p, L) {
|
|
129
|
+
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent_default(L) / 3))) * 3 - exponent_default(Math.abs(p)));
|
|
130
|
+
}
|
|
131
|
+
function precisionRound_default(p, L) {
|
|
132
|
+
return p = Math.abs(p), L = Math.abs(L) - p, Math.max(0, exponent_default(L) - exponent_default(p)) + 1;
|
|
133
|
+
}
|
|
134
|
+
function constants(p) {
|
|
135
|
+
return function() {
|
|
136
|
+
return p;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
function number(p) {
|
|
140
|
+
return +p;
|
|
141
|
+
}
|
|
142
|
+
var unit = [0, 1];
|
|
143
|
+
function identity(p) {
|
|
144
|
+
return p;
|
|
145
|
+
}
|
|
146
|
+
function normalize(p, L) {
|
|
147
|
+
return (L -= p = +p) ? function(R) {
|
|
148
|
+
return (R - p) / L;
|
|
149
|
+
} : constants(isNaN(L) ? NaN : .5);
|
|
150
|
+
}
|
|
151
|
+
function clamper(p, L) {
|
|
152
|
+
var R;
|
|
153
|
+
return p > L && (R = p, p = L, L = R), function(R) {
|
|
154
|
+
return Math.max(p, Math.min(L, R));
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function bimap(p, L, R) {
|
|
158
|
+
var z = p[0], B = p[1], V = L[0], H = L[1];
|
|
159
|
+
return B < z ? (z = normalize(B, z), V = R(H, V)) : (z = normalize(z, B), V = R(V, H)), function(p) {
|
|
160
|
+
return V(z(p));
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function polymap(p, L, R) {
|
|
164
|
+
var z = Math.min(p.length, L.length) - 1, B = Array(z), V = Array(z), H = -1;
|
|
165
|
+
for (p[z] < p[0] && (p = p.slice().reverse(), L = L.slice().reverse()); ++H < z;) B[H] = normalize(p[H], p[H + 1]), V[H] = R(L[H], L[H + 1]);
|
|
166
|
+
return function(L) {
|
|
167
|
+
var R = bisect_default(p, L, 1, z) - 1;
|
|
168
|
+
return V[R](B[R](L));
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
function copy(p, L) {
|
|
172
|
+
return L.domain(p.domain()).range(p.range()).interpolate(p.interpolate()).clamp(p.clamp()).unknown(p.unknown());
|
|
173
|
+
}
|
|
174
|
+
function transformer() {
|
|
175
|
+
var p = unit, R = unit, z = value_default, B, V, H, U = identity, W, G, K;
|
|
176
|
+
function q() {
|
|
177
|
+
var L = Math.min(p.length, R.length);
|
|
178
|
+
return U !== identity && (U = clamper(p[0], p[L - 1])), W = L > 2 ? polymap : bimap, G = K = null, J;
|
|
179
|
+
}
|
|
180
|
+
function J(L) {
|
|
181
|
+
return L == null || isNaN(L = +L) ? H : (G ||= W(p.map(B), R, z))(B(U(L)));
|
|
182
|
+
}
|
|
183
|
+
return J.invert = function(z) {
|
|
184
|
+
return U(V((K ||= W(R, p.map(B), number_default))(z)));
|
|
185
|
+
}, J.domain = function(L) {
|
|
186
|
+
return arguments.length ? (p = Array.from(L, number), q()) : p.slice();
|
|
187
|
+
}, J.range = function(p) {
|
|
188
|
+
return arguments.length ? (R = Array.from(p), q()) : R.slice();
|
|
189
|
+
}, J.rangeRound = function(p) {
|
|
190
|
+
return R = Array.from(p), z = round_default, q();
|
|
191
|
+
}, J.clamp = function(p) {
|
|
192
|
+
return arguments.length ? (U = p ? !0 : identity, q()) : U !== identity;
|
|
193
|
+
}, J.interpolate = function(p) {
|
|
194
|
+
return arguments.length ? (z = p, q()) : z;
|
|
195
|
+
}, J.unknown = function(p) {
|
|
196
|
+
return arguments.length ? (H = p, J) : H;
|
|
197
|
+
}, function(p, L) {
|
|
198
|
+
return B = p, V = L, q();
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function continuous() {
|
|
202
|
+
return transformer()(identity, identity);
|
|
203
|
+
}
|
|
204
|
+
function tickFormat(p, L, R, z) {
|
|
205
|
+
var B = tickStep(p, L, R), V;
|
|
206
|
+
switch (z = formatSpecifier(z ?? ",f"), z.type) {
|
|
207
|
+
case "s":
|
|
208
|
+
var G = Math.max(Math.abs(p), Math.abs(L));
|
|
209
|
+
return z.precision == null && !isNaN(V = precisionPrefix_default(B, G)) && (z.precision = V), formatPrefix(z, G);
|
|
210
|
+
case "":
|
|
211
|
+
case "e":
|
|
212
|
+
case "g":
|
|
213
|
+
case "p":
|
|
214
|
+
case "r":
|
|
215
|
+
z.precision == null && !isNaN(V = precisionRound_default(B, Math.max(Math.abs(p), Math.abs(L)))) && (z.precision = V - (z.type === "e"));
|
|
216
|
+
break;
|
|
217
|
+
case "f":
|
|
218
|
+
case "%":
|
|
219
|
+
z.precision == null && !isNaN(V = precisionFixed_default(B)) && (z.precision = V - (z.type === "%") * 2);
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
return format(z);
|
|
223
|
+
}
|
|
224
|
+
function linearish(p) {
|
|
225
|
+
var L = p.domain;
|
|
226
|
+
return p.ticks = function(p) {
|
|
227
|
+
var R = L();
|
|
228
|
+
return ticks(R[0], R[R.length - 1], p ?? 10);
|
|
229
|
+
}, p.tickFormat = function(p, R) {
|
|
230
|
+
var z = L();
|
|
231
|
+
return tickFormat(z[0], z[z.length - 1], p ?? 10, R);
|
|
232
|
+
}, p.nice = function(R) {
|
|
233
|
+
R ??= 10;
|
|
234
|
+
var z = L(), B = 0, V = z.length - 1, H = z[B], U = z[V], W, G, K = 10;
|
|
235
|
+
for (U < H && (G = H, H = U, U = G, G = B, B = V, V = G); K-- > 0;) {
|
|
236
|
+
if (G = tickIncrement(H, U, R), G === W) return z[B] = H, z[V] = U, L(z);
|
|
237
|
+
if (G > 0) H = Math.floor(H / G) * G, U = Math.ceil(U / G) * G;
|
|
238
|
+
else if (G < 0) H = Math.ceil(H * G) / G, U = Math.floor(U * G) / G;
|
|
239
|
+
else break;
|
|
240
|
+
W = G;
|
|
241
|
+
}
|
|
242
|
+
return p;
|
|
243
|
+
}, p;
|
|
244
|
+
}
|
|
245
|
+
function linear() {
|
|
246
|
+
var p = continuous();
|
|
247
|
+
return p.copy = function() {
|
|
248
|
+
return copy(p, linear());
|
|
249
|
+
}, initRange.apply(p, arguments), linearish(p);
|
|
250
|
+
}
|
|
251
|
+
export { bisector as a, tickStep as i, continuous as n, copy as r, linear as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*! Package version @n8n/chat@0.62.0 */
|
|
2
|
+
const abs = Math.abs, atan2 = Math.atan2, cos = Math.cos, max = Math.max, min = Math.min, sin = Math.sin, sqrt = Math.sqrt, epsilon = 1e-12, pi = Math.PI, halfPi = pi / 2, tau = 2 * pi;
|
|
3
|
+
function acos(e) {
|
|
4
|
+
return e > 1 ? 0 : e < -1 ? pi : Math.acos(e);
|
|
5
|
+
}
|
|
6
|
+
function asin(e) {
|
|
7
|
+
return e >= 1 ? halfPi : e <= -1 ? -halfPi : Math.asin(e);
|
|
8
|
+
}
|
|
9
|
+
export { cos as a, max as c, sin as d, sqrt as f, atan2 as i, min as l, acos as n, epsilon as o, tau as p, asin as r, halfPi as s, abs as t, pi as u };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*! Package version @n8n/chat@0.62.0 */
|
|
2
|
+
import { f as __name } from "./chunk-FPAJGGOC-HRc6DGju.mjs";
|
|
3
|
+
var parsers = {}, initializers = {
|
|
4
|
+
info: /* @__PURE__ */ __name(async () => {
|
|
5
|
+
let { createInfoServices: e } = await import("./info-NVLQJR56-C-93Yf3U.mjs");
|
|
6
|
+
parsers.info = e().Info.parser.LangiumParser;
|
|
7
|
+
}, "info"),
|
|
8
|
+
packet: /* @__PURE__ */ __name(async () => {
|
|
9
|
+
let { createPacketServices: e } = await import("./packet-BFZMPI3H-Cs4kRHct.mjs");
|
|
10
|
+
parsers.packet = e().Packet.parser.LangiumParser;
|
|
11
|
+
}, "packet"),
|
|
12
|
+
pie: /* @__PURE__ */ __name(async () => {
|
|
13
|
+
let { createPieServices: e } = await import("./pie-7BOR55EZ-YZ5Xu4o6.mjs");
|
|
14
|
+
parsers.pie = e().Pie.parser.LangiumParser;
|
|
15
|
+
}, "pie"),
|
|
16
|
+
architecture: /* @__PURE__ */ __name(async () => {
|
|
17
|
+
let { createArchitectureServices: e } = await import("./architecture-U656AL7Q-B1STlXpR.mjs");
|
|
18
|
+
parsers.architecture = e().Architecture.parser.LangiumParser;
|
|
19
|
+
}, "architecture"),
|
|
20
|
+
gitGraph: /* @__PURE__ */ __name(async () => {
|
|
21
|
+
let { createGitGraphServices: e } = await import("./gitGraph-F6HP7TQM-CrdUzURw.mjs");
|
|
22
|
+
parsers.gitGraph = e().GitGraph.parser.LangiumParser;
|
|
23
|
+
}, "gitGraph"),
|
|
24
|
+
radar: /* @__PURE__ */ __name(async () => {
|
|
25
|
+
let { createRadarServices: e } = await import("./radar-NHE76QYJ-TpirOFtv.mjs");
|
|
26
|
+
parsers.radar = e().Radar.parser.LangiumParser;
|
|
27
|
+
}, "radar"),
|
|
28
|
+
treemap: /* @__PURE__ */ __name(async () => {
|
|
29
|
+
let { createTreemapServices: e } = await import("./treemap-KMMF4GRG-BlF0Ev1z.mjs");
|
|
30
|
+
parsers.treemap = e().Treemap.parser.LangiumParser;
|
|
31
|
+
}, "treemap")
|
|
32
|
+
};
|
|
33
|
+
async function parse(e, i) {
|
|
34
|
+
let a = initializers[e];
|
|
35
|
+
if (!a) throw Error(`Unknown diagram type: ${e}`);
|
|
36
|
+
parsers[e] || await a();
|
|
37
|
+
let o = parsers[e].parse(i);
|
|
38
|
+
if (o.lexerErrors.length > 0 || o.parserErrors.length > 0) throw new MermaidParseError(o);
|
|
39
|
+
return o.value;
|
|
40
|
+
}
|
|
41
|
+
__name(parse, "parse");
|
|
42
|
+
var MermaidParseError = class extends Error {
|
|
43
|
+
constructor(e) {
|
|
44
|
+
let n = e.lexerErrors.map((e) => e.message).join("\n"), r = e.parserErrors.map((e) => e.message).join("\n");
|
|
45
|
+
super(`Parsing failed: ${n} ${r}`), this.result = e;
|
|
46
|
+
}
|
|
47
|
+
static #_ = __name(this, "MermaidParseError");
|
|
48
|
+
};
|
|
49
|
+
export { parse as t };
|