@funcd-dev/ui 0.6.0 → 0.7.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/index.es.js +1087 -985
- package/dist/index.umd.js +2 -2
- package/dist/reactive-chart/reactive-charts/reactive-bar-chart/reactive-bar-chart.util.d.ts +26 -0
- package/dist/reactive-chart/reactive-charts/reactive-bar-chart/types.d.ts +22 -0
- package/dist/reactive-chart/reactive-charts/reactive-pie-chart/types.d.ts +7 -0
- package/dist/reactive-chart/reactive-charts/types/reactive-chart-base.d.ts +9 -0
- package/dist/reactive-chart/reactive-charts/utils/chart-option.util.d.ts +22 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -851,25 +851,94 @@ var _n = { replaceMerge: ["series", "dataset"] }, vn = (e) => {
|
|
|
851
851
|
return n === void 0 ? a : Sn(n) && Sn(a) ? Cn(a, n) : n;
|
|
852
852
|
}) : n[e] = r;
|
|
853
853
|
}), n;
|
|
854
|
-
}, wn =
|
|
854
|
+
}, wn = (e) => e == null || e === "" ? NaN : Number(e), Tn = (e) => {
|
|
855
|
+
let t = new Intl.NumberFormat(void 0, e);
|
|
856
|
+
return (e) => {
|
|
857
|
+
let n = wn(e);
|
|
858
|
+
return Number.isNaN(n) ? "-" : t.format(n);
|
|
859
|
+
};
|
|
860
|
+
}, En = (e) => ({ formatter: Tn({
|
|
861
|
+
notation: "compact",
|
|
862
|
+
...e
|
|
863
|
+
}) }), Dn = (e) => {
|
|
864
|
+
try {
|
|
865
|
+
e.forEach((e) => e && new Intl.NumberFormat(void 0, e));
|
|
866
|
+
} catch (e) {
|
|
867
|
+
return `Invalid format: ${e.message}`;
|
|
868
|
+
}
|
|
869
|
+
}, On = [], kn = (e) => {
|
|
855
870
|
let { data: t, dataKey: n } = e, r = I(() => {
|
|
856
871
|
let e = wt(n.split("."), t);
|
|
857
|
-
return Array.isArray(e) ? e :
|
|
872
|
+
return Array.isArray(e) ? e : On;
|
|
858
873
|
}, [t, n]);
|
|
859
874
|
return {
|
|
860
875
|
rows: r,
|
|
861
876
|
flatRows: I(() => r.map((e) => Tt(e)), [r])
|
|
862
877
|
};
|
|
878
|
+
}, An = (e) => e == null || e === "", jn = (e) => {
|
|
879
|
+
let { rows: t, flatRows: n, xKey: r, series: i, splitBy: a, xValues: o } = e, s = [], c = /* @__PURE__ */ new Map(), l = (e) => {
|
|
880
|
+
let t = c.get(String(e)) ?? s.length;
|
|
881
|
+
return t === s.length && (c.set(String(e), t), s.push(e)), t;
|
|
882
|
+
};
|
|
883
|
+
o?.forEach(l);
|
|
884
|
+
let u = a ? [] : i.map((e) => ({
|
|
885
|
+
series: e,
|
|
886
|
+
sums: [],
|
|
887
|
+
rows: []
|
|
888
|
+
})), d = /* @__PURE__ */ new Map(), f = (e) => {
|
|
889
|
+
let [{ key: t, name: n, format: r }] = i, a = An(e) ? n : String(e), o = d.get(a) ?? u.length;
|
|
890
|
+
return o === u.length && (d.set(a, o), u.push({
|
|
891
|
+
series: {
|
|
892
|
+
key: t,
|
|
893
|
+
name: a,
|
|
894
|
+
format: r
|
|
895
|
+
},
|
|
896
|
+
sums: [],
|
|
897
|
+
rows: []
|
|
898
|
+
})), u[o];
|
|
899
|
+
};
|
|
900
|
+
return n.forEach((e, n) => {
|
|
901
|
+
let i = e[r];
|
|
902
|
+
if (An(i) || o && !c.has(String(i))) return;
|
|
903
|
+
let s = l(i);
|
|
904
|
+
(a ? [f(e[a])] : u).forEach(({ series: { key: r }, sums: i, rows: a }) => {
|
|
905
|
+
let o = wn(e[r]);
|
|
906
|
+
Number.isNaN(o) || (i[s] = (i[s] ?? 0) + o), a[s] ??= t[n];
|
|
907
|
+
});
|
|
908
|
+
}), a && u.length === 0 && f(), u.map(({ series: e, sums: t, rows: n }) => ({
|
|
909
|
+
...e,
|
|
910
|
+
data: s.map((e, n) => [e, t[n] ?? null]),
|
|
911
|
+
rows: n
|
|
912
|
+
}));
|
|
863
913
|
};
|
|
864
914
|
//#endregion
|
|
865
915
|
//#region src/reactive-chart/reactive-charts/reactive-bar-chart/reactive-bar-chart.tsx
|
|
866
916
|
Je.use([Be]);
|
|
867
|
-
var
|
|
868
|
-
let { chartKey: t, dataKey: n, title: r, options: i, data: a, loading: o, onChartClick: s, customProps: c } = e, { hidden: l, xKey: u, series: d, stacked: f, horizontal: p } = c,
|
|
917
|
+
var Mn = (e) => {
|
|
918
|
+
let { chartKey: t, dataKey: n, title: r, options: i, data: a, loading: o, onChartClick: s, customProps: c } = e, { hidden: l, xKey: u, series: d, stacked: f, horizontal: p, splitBy: m, xValues: h } = c, g = de(), _ = j("light"), { rows: v, flatRows: y } = kn({
|
|
869
919
|
data: a,
|
|
870
920
|
dataKey: n
|
|
871
|
-
}),
|
|
872
|
-
|
|
921
|
+
}), b = m && d.length !== 1 ? `A chart split by "${m}" takes one series, not ${d.length}` : Dn(d.map(({ format: e }) => e)), x = I(() => !b && (m || h) ? jn({
|
|
922
|
+
rows: v,
|
|
923
|
+
flatRows: y,
|
|
924
|
+
xKey: u,
|
|
925
|
+
series: d,
|
|
926
|
+
splitBy: m,
|
|
927
|
+
xValues: h
|
|
928
|
+
}) : void 0, [
|
|
929
|
+
b,
|
|
930
|
+
v,
|
|
931
|
+
y,
|
|
932
|
+
u,
|
|
933
|
+
d,
|
|
934
|
+
m,
|
|
935
|
+
h
|
|
936
|
+
]), S = I(() => {
|
|
937
|
+
if (b) return {};
|
|
938
|
+
let e = xn(y, u), t = { type: e === "value" || h ? "category" : e }, n = d[0]?.format, r = {
|
|
939
|
+
type: "value",
|
|
940
|
+
...n && { axisLabel: En(n) }
|
|
941
|
+
}, a = p ? [
|
|
873
942
|
0,
|
|
874
943
|
4,
|
|
875
944
|
4,
|
|
@@ -879,18 +948,18 @@ var En = (e) => {
|
|
|
879
948
|
4,
|
|
880
949
|
0,
|
|
881
950
|
0
|
|
882
|
-
],
|
|
951
|
+
], o = hn(g, _), s = x ?? d;
|
|
883
952
|
return Cn({
|
|
884
|
-
dataset: {
|
|
885
|
-
source:
|
|
953
|
+
...!x && { dataset: {
|
|
954
|
+
source: y,
|
|
886
955
|
dimensions: [u, ...d.map(({ key: e }) => e)]
|
|
887
|
-
},
|
|
956
|
+
} },
|
|
888
957
|
tooltip: {
|
|
889
958
|
trigger: "axis",
|
|
890
959
|
axisPointer: { type: "shadow" }
|
|
891
960
|
},
|
|
892
961
|
legend: {
|
|
893
|
-
show:
|
|
962
|
+
show: s.length > 1,
|
|
894
963
|
top: 0,
|
|
895
964
|
right: 0,
|
|
896
965
|
icon: "roundRect",
|
|
@@ -898,65 +967,83 @@ var En = (e) => {
|
|
|
898
967
|
itemHeight: 10
|
|
899
968
|
},
|
|
900
969
|
grid: {
|
|
901
|
-
top:
|
|
970
|
+
top: s.length > 1 ? 36 : 16,
|
|
902
971
|
right: 16,
|
|
903
972
|
bottom: 16,
|
|
904
973
|
left: 16
|
|
905
974
|
},
|
|
906
|
-
xAxis: p ?
|
|
907
|
-
yAxis: p ? t :
|
|
908
|
-
series:
|
|
975
|
+
xAxis: p ? r : t,
|
|
976
|
+
yAxis: p ? t : r,
|
|
977
|
+
series: s.map(({ key: e, name: t, color: n, format: r }, i) => ({
|
|
909
978
|
type: "bar",
|
|
910
979
|
name: t,
|
|
911
980
|
stack: f ? "total" : void 0,
|
|
912
981
|
barMaxWidth: 24,
|
|
913
|
-
|
|
982
|
+
...x ? {
|
|
983
|
+
data: x[i].data,
|
|
984
|
+
encode: p ? {
|
|
985
|
+
x: 1,
|
|
986
|
+
y: 0
|
|
987
|
+
} : {
|
|
988
|
+
x: 0,
|
|
989
|
+
y: 1
|
|
990
|
+
}
|
|
991
|
+
} : { encode: p ? {
|
|
914
992
|
x: e,
|
|
915
993
|
y: u
|
|
916
994
|
} : {
|
|
917
995
|
x: u,
|
|
918
996
|
y: e
|
|
919
|
-
},
|
|
997
|
+
} },
|
|
920
998
|
itemStyle: {
|
|
921
|
-
...n && { color: pn(
|
|
922
|
-
borderRadius: !f || i ===
|
|
999
|
+
...n && { color: pn(g, n, _) },
|
|
1000
|
+
borderRadius: !f || i === s.length - 1 ? a : 0,
|
|
923
1001
|
...f && {
|
|
924
|
-
borderColor:
|
|
1002
|
+
borderColor: o,
|
|
925
1003
|
borderWidth: 1
|
|
926
1004
|
}
|
|
927
|
-
}
|
|
1005
|
+
},
|
|
1006
|
+
...r && { tooltip: { valueFormatter: Tn(r) } }
|
|
928
1007
|
}))
|
|
929
1008
|
}, i);
|
|
930
1009
|
}, [
|
|
931
|
-
|
|
1010
|
+
b,
|
|
1011
|
+
x,
|
|
1012
|
+
y,
|
|
932
1013
|
u,
|
|
1014
|
+
h,
|
|
933
1015
|
d,
|
|
934
1016
|
f,
|
|
935
1017
|
p,
|
|
936
1018
|
i,
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
]),
|
|
940
|
-
s
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
1019
|
+
g,
|
|
1020
|
+
_
|
|
1021
|
+
]), C = P((e) => {
|
|
1022
|
+
if (s) {
|
|
1023
|
+
let n = x ? x[e.seriesIndex ?? 0].rows[e.dataIndex] : v[e.dataIndex];
|
|
1024
|
+
s({
|
|
1025
|
+
chartKey: t,
|
|
1026
|
+
row: n,
|
|
1027
|
+
event: e
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
945
1030
|
}, [
|
|
946
1031
|
t,
|
|
947
1032
|
s,
|
|
948
|
-
|
|
1033
|
+
x,
|
|
1034
|
+
v
|
|
949
1035
|
]);
|
|
950
1036
|
return /* @__PURE__ */ V(bn, {
|
|
951
1037
|
chartKey: t,
|
|
952
1038
|
title: r,
|
|
953
1039
|
hidden: l,
|
|
954
1040
|
loading: o,
|
|
955
|
-
isEmpty:
|
|
1041
|
+
isEmpty: y.length === 0,
|
|
1042
|
+
error: b,
|
|
956
1043
|
children: /* @__PURE__ */ V(vn, {
|
|
957
|
-
option:
|
|
1044
|
+
option: S,
|
|
958
1045
|
loading: o,
|
|
959
|
-
onClick:
|
|
1046
|
+
onClick: C,
|
|
960
1047
|
style: { height: "100%" }
|
|
961
1048
|
})
|
|
962
1049
|
});
|
|
@@ -964,56 +1051,65 @@ var En = (e) => {
|
|
|
964
1051
|
//#endregion
|
|
965
1052
|
//#region src/reactive-chart/reactive-charts/reactive-line-chart/reactive-line-chart.tsx
|
|
966
1053
|
Je.use([Ve]);
|
|
967
|
-
var
|
|
968
|
-
let { chartKey: t, dataKey: n, title: r, options: i, data: a, loading: o, onChartClick: s, customProps: c } = e, { hidden: l, xKey: u, series: d, smooth: f, area: p } = c, m = de(), h = j("light"), { rows: g, flatRows: _ } =
|
|
1054
|
+
var Nn = (e) => {
|
|
1055
|
+
let { chartKey: t, dataKey: n, title: r, options: i, data: a, loading: o, onChartClick: s, customProps: c } = e, { hidden: l, xKey: u, series: d, smooth: f, area: p } = c, m = de(), h = j("light"), { rows: g, flatRows: _ } = kn({
|
|
969
1056
|
data: a,
|
|
970
1057
|
dataKey: n
|
|
971
|
-
}), v = I(() =>
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
axisPointer: { type: "line" }
|
|
979
|
-
},
|
|
980
|
-
legend: {
|
|
981
|
-
show: d.length > 1,
|
|
982
|
-
top: 0,
|
|
983
|
-
right: 0
|
|
984
|
-
},
|
|
985
|
-
grid: {
|
|
986
|
-
top: d.length > 1 ? 36 : 16,
|
|
987
|
-
right: 16,
|
|
988
|
-
bottom: 16,
|
|
989
|
-
left: 16
|
|
990
|
-
},
|
|
991
|
-
xAxis: { type: xn(_, u) },
|
|
992
|
-
yAxis: { type: "value" },
|
|
993
|
-
series: d.map(({ key: e, name: t, color: n }) => ({
|
|
994
|
-
type: "line",
|
|
995
|
-
name: t,
|
|
996
|
-
smooth: f,
|
|
997
|
-
showSymbol: !1,
|
|
998
|
-
symbol: "circle",
|
|
999
|
-
symbolSize: 8,
|
|
1000
|
-
lineStyle: {
|
|
1001
|
-
width: 2,
|
|
1002
|
-
cap: "round",
|
|
1003
|
-
join: "round"
|
|
1058
|
+
}), v = Dn(d.map(({ format: e }) => e)), y = I(() => {
|
|
1059
|
+
if (v) return {};
|
|
1060
|
+
let e = d[0]?.format;
|
|
1061
|
+
return Cn({
|
|
1062
|
+
dataset: {
|
|
1063
|
+
source: _,
|
|
1064
|
+
dimensions: [u, ...d.map(({ key: e }) => e)]
|
|
1004
1065
|
},
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
y: e
|
|
1066
|
+
tooltip: {
|
|
1067
|
+
trigger: "axis",
|
|
1068
|
+
axisPointer: { type: "line" }
|
|
1009
1069
|
},
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1070
|
+
legend: {
|
|
1071
|
+
show: d.length > 1,
|
|
1072
|
+
top: 0,
|
|
1073
|
+
right: 0
|
|
1074
|
+
},
|
|
1075
|
+
grid: {
|
|
1076
|
+
top: d.length > 1 ? 36 : 16,
|
|
1077
|
+
right: 16,
|
|
1078
|
+
bottom: 16,
|
|
1079
|
+
left: 16
|
|
1080
|
+
},
|
|
1081
|
+
xAxis: { type: xn(_, u) },
|
|
1082
|
+
yAxis: {
|
|
1083
|
+
type: "value",
|
|
1084
|
+
...e && { axisLabel: En(e) }
|
|
1085
|
+
},
|
|
1086
|
+
series: d.map(({ key: e, name: t, color: n, format: r }) => ({
|
|
1087
|
+
type: "line",
|
|
1088
|
+
name: t,
|
|
1089
|
+
smooth: f,
|
|
1090
|
+
showSymbol: !1,
|
|
1091
|
+
symbol: "circle",
|
|
1092
|
+
symbolSize: 8,
|
|
1093
|
+
lineStyle: {
|
|
1094
|
+
width: 2,
|
|
1095
|
+
cap: "round",
|
|
1096
|
+
join: "round"
|
|
1097
|
+
},
|
|
1098
|
+
areaStyle: p ? { opacity: .1 } : void 0,
|
|
1099
|
+
encode: {
|
|
1100
|
+
x: u,
|
|
1101
|
+
y: e
|
|
1102
|
+
},
|
|
1103
|
+
itemStyle: {
|
|
1104
|
+
...n && { color: pn(m, n, h) },
|
|
1105
|
+
borderColor: hn(m, h),
|
|
1106
|
+
borderWidth: 2
|
|
1107
|
+
},
|
|
1108
|
+
...r && { tooltip: { valueFormatter: Tn(r) } }
|
|
1109
|
+
}))
|
|
1110
|
+
}, i);
|
|
1111
|
+
}, [
|
|
1112
|
+
v,
|
|
1017
1113
|
_,
|
|
1018
1114
|
u,
|
|
1019
1115
|
d,
|
|
@@ -1022,7 +1118,7 @@ var Dn = (e) => {
|
|
|
1022
1118
|
i,
|
|
1023
1119
|
m,
|
|
1024
1120
|
h
|
|
1025
|
-
]),
|
|
1121
|
+
]), b = P((e) => {
|
|
1026
1122
|
s && s({
|
|
1027
1123
|
chartKey: t,
|
|
1028
1124
|
row: g[e.dataIndex],
|
|
@@ -1039,10 +1135,11 @@ var Dn = (e) => {
|
|
|
1039
1135
|
hidden: l,
|
|
1040
1136
|
loading: o,
|
|
1041
1137
|
isEmpty: _.length === 0,
|
|
1138
|
+
error: v,
|
|
1042
1139
|
children: /* @__PURE__ */ V(vn, {
|
|
1043
|
-
option:
|
|
1140
|
+
option: y,
|
|
1044
1141
|
loading: o,
|
|
1045
|
-
onClick:
|
|
1142
|
+
onClick: b,
|
|
1046
1143
|
style: { height: "100%" }
|
|
1047
1144
|
})
|
|
1048
1145
|
});
|
|
@@ -1050,15 +1147,16 @@ var Dn = (e) => {
|
|
|
1050
1147
|
//#endregion
|
|
1051
1148
|
//#region src/reactive-chart/reactive-charts/reactive-pie-chart/reactive-pie-chart.tsx
|
|
1052
1149
|
Je.use([He]);
|
|
1053
|
-
var
|
|
1054
|
-
let { chartKey: t, dataKey: n, title: r, options: i, data: a, loading: o, onChartClick: s, customProps: c } = e, { hidden: l, nameKey: u, valueKey: d, donut: f, colors: p } = c,
|
|
1150
|
+
var Pn = (e) => {
|
|
1151
|
+
let { chartKey: t, dataKey: n, title: r, options: i, data: a, loading: o, onChartClick: s, customProps: c } = e, { hidden: l, nameKey: u, valueKey: d, donut: f, colors: p, format: m } = c, h = de(), g = j("light"), { rows: _, flatRows: v } = kn({
|
|
1055
1152
|
data: a,
|
|
1056
1153
|
dataKey: n
|
|
1057
|
-
}),
|
|
1058
|
-
|
|
1154
|
+
}), y = Dn([m]), b = I(() => {
|
|
1155
|
+
if (y) return {};
|
|
1156
|
+
let e = mn(h, g), t = Tn(m), n = v.reduce((e, t) => e + (Number(t[d]) || 0), 0);
|
|
1059
1157
|
return Cn({
|
|
1060
1158
|
dataset: {
|
|
1061
|
-
source:
|
|
1159
|
+
source: v,
|
|
1062
1160
|
dimensions: [u, d]
|
|
1063
1161
|
},
|
|
1064
1162
|
tooltip: { trigger: "item" },
|
|
@@ -1070,7 +1168,7 @@ var On = (e) => {
|
|
|
1070
1168
|
itemHeight: 8
|
|
1071
1169
|
},
|
|
1072
1170
|
title: f ? {
|
|
1073
|
-
text: t
|
|
1171
|
+
text: t(n),
|
|
1074
1172
|
left: "50%",
|
|
1075
1173
|
top: "55%",
|
|
1076
1174
|
textAlign: "center",
|
|
@@ -1086,51 +1184,55 @@ var On = (e) => {
|
|
|
1086
1184
|
radius: f ? ["50%", "75%"] : "75%",
|
|
1087
1185
|
label: { show: !1 },
|
|
1088
1186
|
itemStyle: {
|
|
1089
|
-
borderColor: hn(
|
|
1187
|
+
borderColor: hn(h, g),
|
|
1090
1188
|
borderWidth: 2,
|
|
1091
1189
|
borderRadius: 4,
|
|
1092
|
-
...p && { color: ({ name: t, dataIndex: n }) => p[t] ? pn(
|
|
1190
|
+
...p && { color: ({ name: t, dataIndex: n }) => p[t] ? pn(h, p[t], g) : e[n % e.length] }
|
|
1093
1191
|
},
|
|
1094
1192
|
encode: {
|
|
1095
1193
|
itemName: u,
|
|
1096
1194
|
value: d
|
|
1097
|
-
}
|
|
1195
|
+
},
|
|
1196
|
+
...m && { tooltip: { valueFormatter: t } }
|
|
1098
1197
|
}]
|
|
1099
1198
|
}, i);
|
|
1100
1199
|
}, [
|
|
1101
|
-
|
|
1200
|
+
y,
|
|
1201
|
+
v,
|
|
1102
1202
|
u,
|
|
1103
1203
|
d,
|
|
1104
1204
|
f,
|
|
1105
1205
|
p,
|
|
1106
|
-
i,
|
|
1107
1206
|
m,
|
|
1108
|
-
|
|
1109
|
-
|
|
1207
|
+
i,
|
|
1208
|
+
h,
|
|
1209
|
+
g
|
|
1210
|
+
]), x = P((e) => {
|
|
1110
1211
|
s && s({
|
|
1111
1212
|
chartKey: t,
|
|
1112
|
-
row:
|
|
1213
|
+
row: _[e.dataIndex],
|
|
1113
1214
|
event: e
|
|
1114
1215
|
});
|
|
1115
1216
|
}, [
|
|
1116
1217
|
t,
|
|
1117
1218
|
s,
|
|
1118
|
-
|
|
1219
|
+
_
|
|
1119
1220
|
]);
|
|
1120
1221
|
return /* @__PURE__ */ V(bn, {
|
|
1121
1222
|
chartKey: t,
|
|
1122
1223
|
title: r,
|
|
1123
1224
|
hidden: l,
|
|
1124
1225
|
loading: o,
|
|
1125
|
-
isEmpty:
|
|
1226
|
+
isEmpty: v.length === 0,
|
|
1227
|
+
error: y,
|
|
1126
1228
|
children: /* @__PURE__ */ V(vn, {
|
|
1127
|
-
option:
|
|
1229
|
+
option: b,
|
|
1128
1230
|
loading: o,
|
|
1129
|
-
onClick:
|
|
1231
|
+
onClick: x,
|
|
1130
1232
|
style: { height: "100%" }
|
|
1131
1233
|
})
|
|
1132
1234
|
});
|
|
1133
|
-
},
|
|
1235
|
+
}, Fn = (e) => {
|
|
1134
1236
|
let { rowHeight: t = 150, children: n } = e, r = de(), i = fe.toArray(n).filter((e) => ge(e)).sort((e, t) => e.props.layout.y - t.props.layout.y || e.props.layout.x - t.props.layout.x).reduce((e, t) => {
|
|
1135
1237
|
let n = e[e.length - 1];
|
|
1136
1238
|
return n && n[0].props.layout.y === t.props.layout.y ? n.push(t) : e.push([t]), e;
|
|
@@ -1149,10 +1251,10 @@ var On = (e) => {
|
|
|
1149
1251
|
})
|
|
1150
1252
|
}, e[0].props.layout.y))
|
|
1151
1253
|
});
|
|
1152
|
-
},
|
|
1254
|
+
}, In = {
|
|
1153
1255
|
root: "_root_1l8b5_2",
|
|
1154
1256
|
chart: "_chart_1l8b5_8"
|
|
1155
|
-
},
|
|
1257
|
+
}, Ln = (e) => {
|
|
1156
1258
|
let { layout: t, offset: n = 0, children: i } = e, { w: a, h: o, minRows: s, maxRows: c, maxWidth: l } = t, u = o === void 0;
|
|
1157
1259
|
return /* @__PURE__ */ V(f.Col, {
|
|
1158
1260
|
span: {
|
|
@@ -1163,9 +1265,9 @@ var On = (e) => {
|
|
|
1163
1265
|
base: 0,
|
|
1164
1266
|
sm: n
|
|
1165
1267
|
},
|
|
1166
|
-
className:
|
|
1268
|
+
className: In.root,
|
|
1167
1269
|
children: /* @__PURE__ */ V(r, {
|
|
1168
|
-
className:
|
|
1270
|
+
className: In.chart,
|
|
1169
1271
|
mod: { "auto-height": u },
|
|
1170
1272
|
style: {
|
|
1171
1273
|
"--chart-rows": o,
|
|
@@ -1176,7 +1278,7 @@ var On = (e) => {
|
|
|
1176
1278
|
children: i
|
|
1177
1279
|
})
|
|
1178
1280
|
});
|
|
1179
|
-
},
|
|
1281
|
+
}, Rn = (e) => {
|
|
1180
1282
|
let { name: t, component: n, children: i } = e;
|
|
1181
1283
|
return /* @__PURE__ */ H(r, {
|
|
1182
1284
|
component: "section",
|
|
@@ -1186,19 +1288,19 @@ var On = (e) => {
|
|
|
1186
1288
|
children: t
|
|
1187
1289
|
}), n ? pe(n, { children: i }) : i]
|
|
1188
1290
|
});
|
|
1189
|
-
},
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1291
|
+
}, zn = {};
|
|
1292
|
+
function Bn(e) {
|
|
1293
|
+
return zn[e];
|
|
1192
1294
|
}
|
|
1193
|
-
var
|
|
1194
|
-
chartMap:
|
|
1295
|
+
var Vn = {
|
|
1296
|
+
chartMap: zn,
|
|
1195
1297
|
defineWidget: (e) => {
|
|
1196
1298
|
let { name: t, component: n } = e;
|
|
1197
|
-
|
|
1299
|
+
zn[t] || (zn[t] = n);
|
|
1198
1300
|
},
|
|
1199
|
-
getChart:
|
|
1200
|
-
},
|
|
1201
|
-
let { chart: t, data: n, loading: r, onChartClick: i } = e, { chartKey: a, dataKey: o, title: s, type: c, options: l, customProps: u } = t, d = I(() =>
|
|
1301
|
+
getChart: Bn
|
|
1302
|
+
}, Hn = (e) => {
|
|
1303
|
+
let { chart: t, data: n, loading: r, onChartClick: i } = e, { chartKey: a, dataKey: o, title: s, type: c, options: l, customProps: u } = t, d = I(() => Vn.getChart(c), [c]), f;
|
|
1202
1304
|
return d ? u ? !r && !Array.isArray(wt(o.split("."), n)) && (f = `No rows at "${o}"`) : f = "Missing custom props" : f = `Unknown chart type "${c}"`, !d || f ? /* @__PURE__ */ V(bn, {
|
|
1203
1305
|
chartKey: a,
|
|
1204
1306
|
title: s,
|
|
@@ -1213,16 +1315,16 @@ var Fn = {
|
|
|
1213
1315
|
onChartClick: i,
|
|
1214
1316
|
customProps: u
|
|
1215
1317
|
});
|
|
1216
|
-
},
|
|
1318
|
+
}, Un = (e) => {
|
|
1217
1319
|
let { meta: t, data: n, loading: r, rowHeight: i, onChartClick: a } = e;
|
|
1218
1320
|
return /* @__PURE__ */ V(T, {
|
|
1219
1321
|
gap: "xl",
|
|
1220
|
-
children: t.map(({ groupKey: e, name: t, charts: o }) => /* @__PURE__ */ V(
|
|
1322
|
+
children: t.map(({ groupKey: e, name: t, charts: o }) => /* @__PURE__ */ V(Rn, {
|
|
1221
1323
|
name: t,
|
|
1222
|
-
component: /* @__PURE__ */ V(
|
|
1223
|
-
children: o.map((e) => /* @__PURE__ */ V(
|
|
1324
|
+
component: /* @__PURE__ */ V(Fn, { rowHeight: i }),
|
|
1325
|
+
children: o.map((e) => /* @__PURE__ */ V(Ln, {
|
|
1224
1326
|
layout: e.layout,
|
|
1225
|
-
children: /* @__PURE__ */ V(
|
|
1327
|
+
children: /* @__PURE__ */ V(Hn, {
|
|
1226
1328
|
chart: e,
|
|
1227
1329
|
data: n,
|
|
1228
1330
|
loading: r,
|
|
@@ -1231,7 +1333,7 @@ var Fn = {
|
|
|
1231
1333
|
}, e.chartKey))
|
|
1232
1334
|
}, e))
|
|
1233
1335
|
});
|
|
1234
|
-
},
|
|
1336
|
+
}, Wn = (e) => {
|
|
1235
1337
|
let { color: t = "#926aab" } = e;
|
|
1236
1338
|
return /* @__PURE__ */ H("svg", {
|
|
1237
1339
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1250,7 +1352,7 @@ var Fn = {
|
|
|
1250
1352
|
})
|
|
1251
1353
|
]
|
|
1252
1354
|
});
|
|
1253
|
-
},
|
|
1355
|
+
}, Gn = (e) => {
|
|
1254
1356
|
let { accentColor: t = "var(--mantine-primary-color-9, #6D5CE7)", color: n = "#FFFFFF", size: r = 48, ...i } = e;
|
|
1255
1357
|
return /* @__PURE__ */ H("svg", {
|
|
1256
1358
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1301,7 +1403,7 @@ var Fn = {
|
|
|
1301
1403
|
})
|
|
1302
1404
|
]
|
|
1303
1405
|
});
|
|
1304
|
-
},
|
|
1406
|
+
}, Kn = (e) => {
|
|
1305
1407
|
let { color: t = "#FFFFFF", width: n = 160, height: r, ...i } = e;
|
|
1306
1408
|
return /* @__PURE__ */ H("svg", {
|
|
1307
1409
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1342,7 +1444,7 @@ var Fn = {
|
|
|
1342
1444
|
})
|
|
1343
1445
|
]
|
|
1344
1446
|
});
|
|
1345
|
-
},
|
|
1447
|
+
}, qn = (e) => {
|
|
1346
1448
|
let { to: t, children: n, handleIsActive: r, ...i } = e, a = rt(t), o = tt({
|
|
1347
1449
|
path: a.pathname,
|
|
1348
1450
|
end: a.pathname === "/"
|
|
@@ -1354,7 +1456,7 @@ var Fn = {
|
|
|
1354
1456
|
...i,
|
|
1355
1457
|
children: n
|
|
1356
1458
|
});
|
|
1357
|
-
},
|
|
1459
|
+
}, Jn = (t) => {
|
|
1358
1460
|
let n = de();
|
|
1359
1461
|
return /* @__PURE__ */ V(k, {
|
|
1360
1462
|
leftSection: /* @__PURE__ */ V(W, {
|
|
@@ -1377,7 +1479,7 @@ var Fn = {
|
|
|
1377
1479
|
rightSectionWidth: 42,
|
|
1378
1480
|
...t
|
|
1379
1481
|
});
|
|
1380
|
-
},
|
|
1482
|
+
}, Yn = (t) => {
|
|
1381
1483
|
let { colorScheme: n, toggleColorScheme: r } = M();
|
|
1382
1484
|
return /* @__PURE__ */ V(e, {
|
|
1383
1485
|
variant: "default",
|
|
@@ -1387,7 +1489,7 @@ var Fn = {
|
|
|
1387
1489
|
...t,
|
|
1388
1490
|
children: V(n === "dark" ? Le : Pe, { size: 16 })
|
|
1389
1491
|
});
|
|
1390
|
-
},
|
|
1492
|
+
}, Xn = ({ ...e }) => {
|
|
1391
1493
|
let { children: t } = e, n = nt(), r = de();
|
|
1392
1494
|
return /* @__PURE__ */ V(B, { children: /* @__PURE__ */ V(l, {
|
|
1393
1495
|
opened: !0,
|
|
@@ -1407,14 +1509,14 @@ var Fn = {
|
|
|
1407
1509
|
children: t
|
|
1408
1510
|
})
|
|
1409
1511
|
}) });
|
|
1410
|
-
},
|
|
1512
|
+
}, Zn = { root: "_root_ifi2q_2" }, Qn = {
|
|
1411
1513
|
up: De,
|
|
1412
1514
|
down: Te
|
|
1413
|
-
},
|
|
1414
|
-
let { label: t, stats: n, progress: i, color: a, icon: s, ...c } = e, l =
|
|
1515
|
+
}, $n = (e) => {
|
|
1516
|
+
let { label: t, stats: n, progress: i, color: a, icon: s, ...c } = e, l = Qn[s];
|
|
1415
1517
|
return /* @__PURE__ */ V(r, {
|
|
1416
1518
|
p: "md",
|
|
1417
|
-
className:
|
|
1519
|
+
className: Zn.root,
|
|
1418
1520
|
...c,
|
|
1419
1521
|
children: /* @__PURE__ */ H(p, { children: [/* @__PURE__ */ V(ee, {
|
|
1420
1522
|
size: 80,
|
|
@@ -1440,14 +1542,14 @@ var Fn = {
|
|
|
1440
1542
|
children: n
|
|
1441
1543
|
})] })] })
|
|
1442
1544
|
});
|
|
1443
|
-
},
|
|
1545
|
+
}, er = {
|
|
1444
1546
|
root: "_root_1ogkv_2",
|
|
1445
1547
|
value: "_value_1ogkv_12"
|
|
1446
|
-
},
|
|
1548
|
+
}, tr = (e) => {
|
|
1447
1549
|
let { label: t, value: n, hint: i, color: a = "primary", icon: o, ...s } = e;
|
|
1448
1550
|
return /* @__PURE__ */ H(r, {
|
|
1449
1551
|
p: "md",
|
|
1450
|
-
className:
|
|
1552
|
+
className: er.root,
|
|
1451
1553
|
...s,
|
|
1452
1554
|
children: [
|
|
1453
1555
|
/* @__PURE__ */ H(p, {
|
|
@@ -1469,7 +1571,7 @@ var Fn = {
|
|
|
1469
1571
|
})]
|
|
1470
1572
|
}),
|
|
1471
1573
|
/* @__PURE__ */ V(O, {
|
|
1472
|
-
className:
|
|
1574
|
+
className: er.value,
|
|
1473
1575
|
fw: 700,
|
|
1474
1576
|
children: n
|
|
1475
1577
|
}),
|
|
@@ -1480,27 +1582,27 @@ var Fn = {
|
|
|
1480
1582
|
})
|
|
1481
1583
|
]
|
|
1482
1584
|
});
|
|
1483
|
-
},
|
|
1585
|
+
}, nr = {
|
|
1484
1586
|
root: "_root_1fps1_2",
|
|
1485
1587
|
track: "_track_1fps1_6",
|
|
1486
1588
|
segment: "_segment_1fps1_17"
|
|
1487
|
-
},
|
|
1589
|
+
}, rr = (e) => J(e).format("MMM D, HH:mm"), ir = (e) => {
|
|
1488
1590
|
let { from: t, to: n, segments: i, height: a = 12 } = e, o = J(t).valueOf(), s = J(n).valueOf(), c = Math.max(s - o, 1), l = i.map((e) => ({
|
|
1489
1591
|
segment: e,
|
|
1490
1592
|
start: Math.max(J(e.start).valueOf(), o),
|
|
1491
1593
|
end: Math.min(J(e.end).valueOf(), s)
|
|
1492
1594
|
})).filter(({ start: e, end: t }) => t > e);
|
|
1493
1595
|
return /* @__PURE__ */ H(r, {
|
|
1494
|
-
className:
|
|
1596
|
+
className: nr.root,
|
|
1495
1597
|
children: [/* @__PURE__ */ V(r, {
|
|
1496
|
-
className:
|
|
1598
|
+
className: nr.track,
|
|
1497
1599
|
style: { height: a },
|
|
1498
1600
|
children: l.map(({ segment: e, start: t, end: n }) => /* @__PURE__ */ V(ce, {
|
|
1499
|
-
label: `${e.label} · ${
|
|
1601
|
+
label: `${e.label} · ${rr(e.start)} – ${rr(e.end)}`,
|
|
1500
1602
|
withArrow: !0,
|
|
1501
1603
|
children: /* @__PURE__ */ V(r, {
|
|
1502
1604
|
component: "span",
|
|
1503
|
-
className:
|
|
1605
|
+
className: nr.segment,
|
|
1504
1606
|
style: {
|
|
1505
1607
|
left: `${(t - o) / c * 100}%`,
|
|
1506
1608
|
width: `max(2px, ${(n - t) / c * 100}%)`,
|
|
@@ -1514,28 +1616,28 @@ var Fn = {
|
|
|
1514
1616
|
children: [/* @__PURE__ */ V(O, {
|
|
1515
1617
|
c: "dimmed",
|
|
1516
1618
|
size: "xs",
|
|
1517
|
-
children:
|
|
1619
|
+
children: rr(t)
|
|
1518
1620
|
}), /* @__PURE__ */ V(O, {
|
|
1519
1621
|
c: "dimmed",
|
|
1520
1622
|
size: "xs",
|
|
1521
|
-
children:
|
|
1623
|
+
children: rr(n)
|
|
1522
1624
|
})]
|
|
1523
1625
|
})]
|
|
1524
1626
|
});
|
|
1525
1627
|
};
|
|
1526
1628
|
//#endregion
|
|
1527
1629
|
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
1528
|
-
function
|
|
1630
|
+
function ar(e) {
|
|
1529
1631
|
var t, n, r = "";
|
|
1530
1632
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1531
1633
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1532
1634
|
var i = e.length;
|
|
1533
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
1635
|
+
for (t = 0; t < i; t++) e[t] && (n = ar(e[t])) && (r && (r += " "), r += n);
|
|
1534
1636
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1535
1637
|
return r;
|
|
1536
1638
|
}
|
|
1537
|
-
function
|
|
1538
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
1639
|
+
function or() {
|
|
1640
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = ar(e)) && (r && (r += " "), r += t);
|
|
1539
1641
|
return r;
|
|
1540
1642
|
}
|
|
1541
1643
|
//#endregion
|
|
@@ -1544,16 +1646,16 @@ function X(e, t, n) {
|
|
|
1544
1646
|
let r = typeof e.colSpan == "function" ? e.colSpan(n) : 1;
|
|
1545
1647
|
if (Number.isInteger(r) && r > 1 && (!e.frozen || e.idx + r - 1 <= t)) return r;
|
|
1546
1648
|
}
|
|
1547
|
-
function
|
|
1649
|
+
function sr(e) {
|
|
1548
1650
|
e.stopPropagation();
|
|
1549
1651
|
}
|
|
1550
|
-
function
|
|
1652
|
+
function cr(e) {
|
|
1551
1653
|
e?.scrollIntoView({
|
|
1552
1654
|
inline: "nearest",
|
|
1553
1655
|
block: "nearest"
|
|
1554
1656
|
});
|
|
1555
1657
|
}
|
|
1556
|
-
function
|
|
1658
|
+
function lr(e) {
|
|
1557
1659
|
let t = !1, n = {
|
|
1558
1660
|
...e,
|
|
1559
1661
|
preventGridDefault() {
|
|
@@ -1565,20 +1667,20 @@ function rr(e) {
|
|
|
1565
1667
|
};
|
|
1566
1668
|
return Object.setPrototypeOf(n, Object.getPrototypeOf(e)), n;
|
|
1567
1669
|
}
|
|
1568
|
-
var
|
|
1569
|
-
function
|
|
1670
|
+
var ur = /* @__PURE__ */ new Set(/* @__PURE__ */ "Unidentified.Alt.AltGraph.CapsLock.Control.Fn.FnLock.Meta.NumLock.ScrollLock.Shift.Tab.ArrowDown.ArrowLeft.ArrowRight.ArrowUp.End.Home.PageDown.PageUp.Insert.ContextMenu.Escape.Pause.Play.PrintScreen.F1.F3.F4.F5.F6.F7.F8.F9.F10.F11.F12".split("."));
|
|
1671
|
+
function dr(e) {
|
|
1570
1672
|
return (e.ctrlKey || e.metaKey) && e.key !== "Control";
|
|
1571
1673
|
}
|
|
1572
|
-
function
|
|
1573
|
-
return
|
|
1674
|
+
function fr(e) {
|
|
1675
|
+
return dr(e) && e.keyCode !== 86 ? !1 : !ur.has(e.key);
|
|
1574
1676
|
}
|
|
1575
|
-
function
|
|
1677
|
+
function pr({ key: e, target: t }) {
|
|
1576
1678
|
return e === "Tab" && (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || t instanceof HTMLSelectElement) && t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length === 1;
|
|
1577
1679
|
}
|
|
1578
|
-
var
|
|
1579
|
-
function
|
|
1680
|
+
var mr = "mlln6zg7-0-0-beta-46";
|
|
1681
|
+
function hr(e) {
|
|
1580
1682
|
return e.map(({ key: e, idx: t, minWidth: n, maxWidth: r }) => /*#__PURE__*/ V("div", {
|
|
1581
|
-
className:
|
|
1683
|
+
className: mr,
|
|
1582
1684
|
style: {
|
|
1583
1685
|
gridColumnStart: t + 1,
|
|
1584
1686
|
minWidth: n,
|
|
@@ -1587,14 +1689,14 @@ function lr(e) {
|
|
|
1587
1689
|
"data-measuring-cell-key": e
|
|
1588
1690
|
}, e));
|
|
1589
1691
|
}
|
|
1590
|
-
function
|
|
1692
|
+
function gr({ selectedPosition: e, columns: t, rows: n }) {
|
|
1591
1693
|
let r = t[e.idx], i = n[e.rowIdx];
|
|
1592
|
-
return
|
|
1694
|
+
return _r(r, i);
|
|
1593
1695
|
}
|
|
1594
|
-
function
|
|
1696
|
+
function _r(e, t) {
|
|
1595
1697
|
return e.renderEditCell != null && (typeof e.editable == "function" ? e.editable(t) : e.editable) !== !1;
|
|
1596
1698
|
}
|
|
1597
|
-
function
|
|
1699
|
+
function vr({ rows: e, topSummaryRows: t, bottomSummaryRows: n, rowIdx: r, mainHeaderRowIdx: i, lastFrozenColumnIndex: a, column: o }) {
|
|
1598
1700
|
let s = t?.length ?? 0;
|
|
1599
1701
|
if (r === i) return X(o, a, { type: "HEADER" });
|
|
1600
1702
|
if (t && r > i && r <= s + i) return X(o, a, {
|
|
@@ -1613,12 +1715,12 @@ function fr({ rows: e, topSummaryRows: t, bottomSummaryRows: n, rowIdx: r, mainH
|
|
|
1613
1715
|
row: n[r - e.length]
|
|
1614
1716
|
});
|
|
1615
1717
|
}
|
|
1616
|
-
function
|
|
1718
|
+
function yr({ moveUp: e, moveNext: t, cellNavigationMode: n, columns: r, colSpanColumns: i, rows: a, topSummaryRows: o, bottomSummaryRows: s, minRowIdx: c, mainHeaderRowIdx: l, maxRowIdx: u, currentPosition: { idx: d, rowIdx: f }, nextPosition: p, lastFrozenColumnIndex: m, isCellWithinBounds: h }) {
|
|
1617
1719
|
let { idx: g, rowIdx: _ } = p, v = r.length, y = (e) => {
|
|
1618
1720
|
for (let t of i) {
|
|
1619
1721
|
let n = t.idx;
|
|
1620
1722
|
if (n > g) break;
|
|
1621
|
-
let r =
|
|
1723
|
+
let r = vr({
|
|
1622
1724
|
rows: a,
|
|
1623
1725
|
topSummaryRows: o,
|
|
1624
1726
|
bottomSummaryRows: s,
|
|
@@ -1668,14 +1770,14 @@ function pr({ moveUp: e, moveNext: t, cellNavigationMode: n, columns: r, colSpan
|
|
|
1668
1770
|
rowIdx: _
|
|
1669
1771
|
};
|
|
1670
1772
|
}
|
|
1671
|
-
function
|
|
1773
|
+
function br({ maxColIdx: e, minRowIdx: t, maxRowIdx: n, selectedPosition: { rowIdx: r, idx: i }, shiftKey: a }) {
|
|
1672
1774
|
return a ? i === 0 && r === t : i === e && r === n;
|
|
1673
1775
|
}
|
|
1674
|
-
var
|
|
1675
|
-
function
|
|
1776
|
+
var xr = "rdg-cell cj343x07-0-0-beta-46", Sr = "rdg-cell-frozen csofj7r7-0-0-beta-46";
|
|
1777
|
+
function Cr(e) {
|
|
1676
1778
|
return { "--rdg-grid-row-start": e };
|
|
1677
1779
|
}
|
|
1678
|
-
function
|
|
1780
|
+
function wr(e, t, n) {
|
|
1679
1781
|
let r = t + 1, i = `calc(${n - 1} * var(--rdg-header-row-height))`;
|
|
1680
1782
|
return e.parent === void 0 ? {
|
|
1681
1783
|
insetBlockStart: 0,
|
|
@@ -1689,7 +1791,7 @@ function vr(e, t, n) {
|
|
|
1689
1791
|
paddingBlockStart: i
|
|
1690
1792
|
};
|
|
1691
1793
|
}
|
|
1692
|
-
function
|
|
1794
|
+
function Tr(e, t = 1) {
|
|
1693
1795
|
let n = e.idx + 1;
|
|
1694
1796
|
return {
|
|
1695
1797
|
gridColumnStart: n,
|
|
@@ -1697,47 +1799,47 @@ function yr(e, t = 1) {
|
|
|
1697
1799
|
insetInlineStart: e.frozen ? `var(--rdg-frozen-left-${e.idx})` : void 0
|
|
1698
1800
|
};
|
|
1699
1801
|
}
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
1802
|
+
function Er(e, ...t) {
|
|
1803
|
+
return or(xr, ...t, e.frozen && Sr);
|
|
1702
1804
|
}
|
|
1703
|
-
var { min:
|
|
1704
|
-
function
|
|
1805
|
+
var { min: Dr, max: Or, floor: kr, sign: Ar, abs: jr } = Math;
|
|
1806
|
+
function Mr(e) {
|
|
1705
1807
|
if (typeof e != "function") throw Error("Please specify the rowKeyGetter prop to use selection");
|
|
1706
1808
|
}
|
|
1707
|
-
function
|
|
1708
|
-
return e =
|
|
1809
|
+
function Nr(e, { minWidth: t, maxWidth: n }) {
|
|
1810
|
+
return e = Or(e, t), typeof n == "number" && n >= t ? Dr(e, n) : e;
|
|
1709
1811
|
}
|
|
1710
|
-
function
|
|
1812
|
+
function Pr(e, t) {
|
|
1711
1813
|
return e.parent === void 0 ? t : e.level - e.parent.level;
|
|
1712
1814
|
}
|
|
1713
|
-
var
|
|
1714
|
-
function
|
|
1815
|
+
var Fr = "c1bn88vv7-0-0-beta-46", Ir = "rdg-checkbox-input c1qt073l7-0-0-beta-46";
|
|
1816
|
+
function Lr({ onChange: e, ...t }) {
|
|
1715
1817
|
function n(t) {
|
|
1716
1818
|
e(t.target.checked, t.nativeEvent.shiftKey);
|
|
1717
1819
|
}
|
|
1718
1820
|
return /*#__PURE__*/ V("div", {
|
|
1719
|
-
className:
|
|
1821
|
+
className: Fr,
|
|
1720
1822
|
children: /*#__PURE__*/ V("input", {
|
|
1721
1823
|
type: "checkbox",
|
|
1722
1824
|
...t,
|
|
1723
|
-
className:
|
|
1825
|
+
className: Ir,
|
|
1724
1826
|
onChange: n
|
|
1725
1827
|
})
|
|
1726
1828
|
});
|
|
1727
1829
|
}
|
|
1728
|
-
function
|
|
1830
|
+
function Rr(e) {
|
|
1729
1831
|
try {
|
|
1730
1832
|
return e.row[e.column.key];
|
|
1731
1833
|
} catch {
|
|
1732
1834
|
return null;
|
|
1733
1835
|
}
|
|
1734
1836
|
}
|
|
1735
|
-
var
|
|
1736
|
-
function
|
|
1737
|
-
return ve(
|
|
1837
|
+
var zr = /*#__PURE__*/ me(void 0), Br = zr.Provider;
|
|
1838
|
+
function Vr() {
|
|
1839
|
+
return ve(zr);
|
|
1738
1840
|
}
|
|
1739
|
-
function
|
|
1740
|
-
let o =
|
|
1841
|
+
function Hr({ value: e, tabIndex: t, disabled: n, onChange: r, "aria-label": i, "aria-labelledby": a }) {
|
|
1842
|
+
let o = Vr().renderCheckbox;
|
|
1741
1843
|
return o({
|
|
1742
1844
|
"aria-label": i,
|
|
1743
1845
|
"aria-labelledby": a,
|
|
@@ -1747,16 +1849,16 @@ function Ir({ value: e, tabIndex: t, disabled: n, onChange: r, "aria-label": i,
|
|
|
1747
1849
|
onChange: r
|
|
1748
1850
|
});
|
|
1749
1851
|
}
|
|
1750
|
-
var
|
|
1751
|
-
function
|
|
1752
|
-
let e = ve(
|
|
1852
|
+
var Ur = /*#__PURE__*/ me(void 0), Wr = Ur.Provider, Gr = /*#__PURE__*/ me(void 0), Kr = Gr.Provider;
|
|
1853
|
+
function qr() {
|
|
1854
|
+
let e = ve(Ur), t = ve(Gr);
|
|
1753
1855
|
if (e === void 0 || t === void 0) throw Error("useRowSelection must be used within DataGrid cells");
|
|
1754
1856
|
return [e, t];
|
|
1755
1857
|
}
|
|
1756
|
-
var
|
|
1757
|
-
function
|
|
1758
|
-
let [t, n] =
|
|
1759
|
-
return /*#__PURE__*/ V(
|
|
1858
|
+
var Jr = "select-row";
|
|
1859
|
+
function Yr(e) {
|
|
1860
|
+
let [t, n] = qr();
|
|
1861
|
+
return /*#__PURE__*/ V(Hr, {
|
|
1760
1862
|
"aria-label": "Select All",
|
|
1761
1863
|
tabIndex: e.tabIndex,
|
|
1762
1864
|
value: t,
|
|
@@ -1768,9 +1870,9 @@ function Ur(e) {
|
|
|
1768
1870
|
}
|
|
1769
1871
|
});
|
|
1770
1872
|
}
|
|
1771
|
-
function
|
|
1772
|
-
let [t, n] =
|
|
1773
|
-
return /*#__PURE__*/ V(
|
|
1873
|
+
function Xr(e) {
|
|
1874
|
+
let [t, n] = qr();
|
|
1875
|
+
return /*#__PURE__*/ V(Hr, {
|
|
1774
1876
|
"aria-label": "Select",
|
|
1775
1877
|
tabIndex: e.tabIndex,
|
|
1776
1878
|
value: t,
|
|
@@ -1784,9 +1886,9 @@ function Wr(e) {
|
|
|
1784
1886
|
}
|
|
1785
1887
|
});
|
|
1786
1888
|
}
|
|
1787
|
-
function
|
|
1788
|
-
let [t, n] =
|
|
1789
|
-
return /*#__PURE__*/ V(
|
|
1889
|
+
function Zr(e) {
|
|
1890
|
+
let [t, n] = qr();
|
|
1891
|
+
return /*#__PURE__*/ V(Hr, {
|
|
1790
1892
|
"aria-label": "Select Group",
|
|
1791
1893
|
tabIndex: e.tabIndex,
|
|
1792
1894
|
value: t,
|
|
@@ -1800,8 +1902,8 @@ function Gr(e) {
|
|
|
1800
1902
|
}
|
|
1801
1903
|
});
|
|
1802
1904
|
}
|
|
1803
|
-
var
|
|
1804
|
-
key:
|
|
1905
|
+
var Qr = {
|
|
1906
|
+
key: Jr,
|
|
1805
1907
|
name: "",
|
|
1806
1908
|
width: 35,
|
|
1807
1909
|
minWidth: 35,
|
|
@@ -1810,17 +1912,17 @@ var Kr = {
|
|
|
1810
1912
|
sortable: !1,
|
|
1811
1913
|
frozen: !0,
|
|
1812
1914
|
renderHeaderCell(e) {
|
|
1813
|
-
return /*#__PURE__*/ V(
|
|
1915
|
+
return /*#__PURE__*/ V(Yr, { ...e });
|
|
1814
1916
|
},
|
|
1815
1917
|
renderCell(e) {
|
|
1816
|
-
return /*#__PURE__*/ V(
|
|
1918
|
+
return /*#__PURE__*/ V(Xr, { ...e });
|
|
1817
1919
|
},
|
|
1818
1920
|
renderGroupCell(e) {
|
|
1819
|
-
return /*#__PURE__*/ V(
|
|
1921
|
+
return /*#__PURE__*/ V(Zr, { ...e });
|
|
1820
1922
|
}
|
|
1821
|
-
},
|
|
1822
|
-
function
|
|
1823
|
-
let o = t?.width ??
|
|
1923
|
+
}, $r = "auto", ei = 50;
|
|
1924
|
+
function ti({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewportWidth: r, scrollLeft: i, enableVirtualization: a }) {
|
|
1925
|
+
let o = t?.width ?? $r, s = t?.minWidth ?? ei, c = t?.maxWidth ?? void 0, l = t?.renderCell ?? Rr, u = t?.sortable ?? !1, d = t?.resizable ?? !1, f = t?.draggable ?? !1, { columns: p, colSpanColumns: m, lastFrozenColumnIndex: h, headerRowsCount: g } = I(() => {
|
|
1824
1926
|
let t = -1, n = 1, r = [];
|
|
1825
1927
|
i(e, 1);
|
|
1826
1928
|
function i(e, a, p) {
|
|
@@ -1857,7 +1959,7 @@ function Yr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewpor
|
|
|
1857
1959
|
r.sort(({ key: e, frozen: t }, { key: n, frozen: r }) => e === "select-row" ? -1 : n === "select-row" ? 1 : t ? r ? 0 : -1 : +!!r);
|
|
1858
1960
|
let a = [];
|
|
1859
1961
|
return r.forEach((e, t) => {
|
|
1860
|
-
e.idx = t,
|
|
1962
|
+
e.idx = t, ni(e, t, 0), e.colSpan != null && a.push(e);
|
|
1861
1963
|
}), {
|
|
1862
1964
|
columns: r,
|
|
1863
1965
|
colSpanColumns: a,
|
|
@@ -1877,7 +1979,7 @@ function Yr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewpor
|
|
|
1877
1979
|
let e = /* @__PURE__ */ new Map(), t = 0, r = 0, i = [];
|
|
1878
1980
|
for (let r of p) {
|
|
1879
1981
|
let a = n(r);
|
|
1880
|
-
a = typeof a == "number" ?
|
|
1982
|
+
a = typeof a == "number" ? Nr(a, r) : r.minWidth, i.push(`${a}px`), e.set(r, {
|
|
1881
1983
|
width: a,
|
|
1882
1984
|
left: t
|
|
1883
1985
|
}), t += a;
|
|
@@ -1903,7 +2005,7 @@ function Yr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewpor
|
|
|
1903
2005
|
h
|
|
1904
2006
|
]), [x, S] = I(() => {
|
|
1905
2007
|
if (!a) return [0, p.length - 1];
|
|
1906
|
-
let e = i + y, t = i + r, n = p.length - 1, o =
|
|
2008
|
+
let e = i + y, t = i + r, n = p.length - 1, o = Dr(h + 1, n);
|
|
1907
2009
|
if (e >= t) return [o, o];
|
|
1908
2010
|
let s = o;
|
|
1909
2011
|
for (; s < n;) {
|
|
@@ -1917,7 +2019,7 @@ function Yr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewpor
|
|
|
1917
2019
|
if (e + n >= t) break;
|
|
1918
2020
|
c++;
|
|
1919
2021
|
}
|
|
1920
|
-
return [
|
|
2022
|
+
return [Or(o, s - 1), Dr(n, c + 1)];
|
|
1921
2023
|
}, [
|
|
1922
2024
|
b,
|
|
1923
2025
|
p,
|
|
@@ -1939,25 +2041,25 @@ function Yr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewpor
|
|
|
1939
2041
|
totalFrozenColumnWidth: y
|
|
1940
2042
|
};
|
|
1941
2043
|
}
|
|
1942
|
-
function
|
|
2044
|
+
function ni(e, t, n) {
|
|
1943
2045
|
if (n < e.level && (e.level = n), e.parent !== void 0) {
|
|
1944
2046
|
let { parent: r } = e;
|
|
1945
|
-
r.idx === -1 && (r.idx = t), r.colSpan += 1,
|
|
2047
|
+
r.idx === -1 && (r.idx = t), r.colSpan += 1, ni(r, t, n - 1);
|
|
1946
2048
|
}
|
|
1947
2049
|
}
|
|
1948
|
-
var
|
|
1949
|
-
function
|
|
2050
|
+
var ri = typeof window > "u" ? F : xe;
|
|
2051
|
+
function ii(e, t, n, r, i, a, o, s, c, l) {
|
|
1950
2052
|
let u = L(i), d = e.length === t.length, f = d && i !== u.current, p = [...n], m = [];
|
|
1951
2053
|
for (let { key: e, idx: n, width: r } of t) typeof r == "string" && (f || !o.has(e)) && !a.has(e) && (p[n] = r, m.push(e));
|
|
1952
2054
|
let h = p.join(" ");
|
|
1953
|
-
|
|
2055
|
+
ri(() => {
|
|
1954
2056
|
u.current = i, g(m);
|
|
1955
2057
|
});
|
|
1956
2058
|
function g(e) {
|
|
1957
2059
|
e.length !== 0 && c((t) => {
|
|
1958
2060
|
let n = new Map(t), i = !1;
|
|
1959
2061
|
for (let a of e) {
|
|
1960
|
-
let e =
|
|
2062
|
+
let e = ai(r, a);
|
|
1961
2063
|
i ||= e !== t.get(a), e === void 0 ? n.delete(a) : n.set(a, e);
|
|
1962
2064
|
}
|
|
1963
2065
|
return i ? n : t;
|
|
@@ -1967,7 +2069,7 @@ function Qr(e, t, n, r, i, a, o, s, c, l) {
|
|
|
1967
2069
|
let { key: o } = e, c = [...n], u = [];
|
|
1968
2070
|
for (let { key: e, idx: n, width: r } of t) o === e ? c[n] = typeof i == "number" ? `${i}px` : i : d && typeof r == "string" && !a.has(e) && (c[n] = r, u.push(e));
|
|
1969
2071
|
r.current.style.gridTemplateColumns = c.join(" ");
|
|
1970
|
-
let f = typeof i == "number" ? i :
|
|
2072
|
+
let f = typeof i == "number" ? i : ai(r, o);
|
|
1971
2073
|
ot(() => {
|
|
1972
2074
|
s((e) => {
|
|
1973
2075
|
let t = new Map(e);
|
|
@@ -1980,13 +2082,13 @@ function Qr(e, t, n, r, i, a, o, s, c, l) {
|
|
|
1980
2082
|
handleColumnResize: _
|
|
1981
2083
|
};
|
|
1982
2084
|
}
|
|
1983
|
-
function
|
|
2085
|
+
function ai(e, t) {
|
|
1984
2086
|
let n = `[data-measuring-cell-key="${CSS.escape(t)}"]`;
|
|
1985
2087
|
return (e.current?.querySelector(n))?.getBoundingClientRect().width;
|
|
1986
2088
|
}
|
|
1987
|
-
function
|
|
2089
|
+
function oi() {
|
|
1988
2090
|
let e = L(null), [t, n] = R(1), [r, i] = R(1), [a, o] = R(0);
|
|
1989
|
-
return
|
|
2091
|
+
return ri(() => {
|
|
1990
2092
|
let { ResizeObserver: t } = window;
|
|
1991
2093
|
if (t == null) return;
|
|
1992
2094
|
let { clientWidth: r, clientHeight: a, offsetWidth: s, offsetHeight: c } = e.current, { width: l, height: u } = e.current.getBoundingClientRect(), d = c - a, f = l - s + r, p = u - d;
|
|
@@ -2017,7 +2119,7 @@ function Z(e) {
|
|
|
2017
2119
|
}, []);
|
|
2018
2120
|
return e && n;
|
|
2019
2121
|
}
|
|
2020
|
-
function
|
|
2122
|
+
function si(e) {
|
|
2021
2123
|
let [t, n] = R(!1);
|
|
2022
2124
|
t && !e && n(!1);
|
|
2023
2125
|
function r(e) {
|
|
@@ -2029,7 +2131,7 @@ function ti(e) {
|
|
|
2029
2131
|
onFocus: e ? r : void 0
|
|
2030
2132
|
};
|
|
2031
2133
|
}
|
|
2032
|
-
function
|
|
2134
|
+
function ci({ columns: e, colSpanColumns: t, rows: n, topSummaryRows: r, bottomSummaryRows: i, colOverscanStartIdx: a, colOverscanEndIdx: o, lastFrozenColumnIndex: s, rowOverscanStartIdx: c, rowOverscanEndIdx: l }) {
|
|
2033
2135
|
let u = I(() => {
|
|
2034
2136
|
if (a === 0) return 0;
|
|
2035
2137
|
let e = a, o = (t, n) => n !== void 0 && t + n > a ? (e = t, !0) : !1;
|
|
@@ -2080,14 +2182,14 @@ function ni({ columns: e, colSpanColumns: t, rows: n, topSummaryRows: r, bottomS
|
|
|
2080
2182
|
e
|
|
2081
2183
|
]);
|
|
2082
2184
|
}
|
|
2083
|
-
function
|
|
2185
|
+
function li({ rows: e, rowHeight: t, clientHeight: n, scrollTop: r, enableVirtualization: i }) {
|
|
2084
2186
|
let { totalRowHeight: a, gridTemplateRows: o, getRowTop: s, getRowHeight: c, findRowIdx: l } = I(() => {
|
|
2085
2187
|
if (typeof t == "number") return {
|
|
2086
2188
|
totalRowHeight: t * e.length,
|
|
2087
2189
|
gridTemplateRows: ` repeat(${e.length}, ${t}px)`,
|
|
2088
2190
|
getRowTop: (e) => e * t,
|
|
2089
2191
|
getRowHeight: () => t,
|
|
2090
|
-
findRowIdx: (e) =>
|
|
2192
|
+
findRowIdx: (e) => kr(e / t)
|
|
2091
2193
|
};
|
|
2092
2194
|
let n = 0, r = " ", i = e.map((e) => {
|
|
2093
2195
|
let i = t(e), a = {
|
|
@@ -2095,7 +2197,7 @@ function ri({ rows: e, rowHeight: t, clientHeight: n, scrollTop: r, enableVirtua
|
|
|
2095
2197
|
height: i
|
|
2096
2198
|
};
|
|
2097
2199
|
return r += `${i}px `, n += i, a;
|
|
2098
|
-
}), a = (t) =>
|
|
2200
|
+
}), a = (t) => Or(0, Dr(e.length - 1, t));
|
|
2099
2201
|
return {
|
|
2100
2202
|
totalRowHeight: n,
|
|
2101
2203
|
gridTemplateRows: r,
|
|
@@ -2104,7 +2206,7 @@ function ri({ rows: e, rowHeight: t, clientHeight: n, scrollTop: r, enableVirtua
|
|
|
2104
2206
|
findRowIdx(e) {
|
|
2105
2207
|
let t = 0, n = i.length - 1;
|
|
2106
2208
|
for (; t <= n;) {
|
|
2107
|
-
let r = t +
|
|
2209
|
+
let r = t + kr((n - t) / 2), a = i[r].top;
|
|
2108
2210
|
if (a === e) return r;
|
|
2109
2211
|
if (a < e ? t = r + 1 : a > e && (n = r - 1), t > n) return n;
|
|
2110
2212
|
}
|
|
@@ -2114,7 +2216,7 @@ function ri({ rows: e, rowHeight: t, clientHeight: n, scrollTop: r, enableVirtua
|
|
|
2114
2216
|
}, [t, e]), u = 0, d = e.length - 1;
|
|
2115
2217
|
if (i) {
|
|
2116
2218
|
let t = l(r), i = l(r + n);
|
|
2117
|
-
u =
|
|
2219
|
+
u = Or(0, t - 4), d = Dr(e.length - 1, i + 4);
|
|
2118
2220
|
}
|
|
2119
2221
|
return {
|
|
2120
2222
|
rowOverscanStartIdx: u,
|
|
@@ -2126,8 +2228,8 @@ function ri({ rows: e, rowHeight: t, clientHeight: n, scrollTop: r, enableVirtua
|
|
|
2126
2228
|
findRowIdx: l
|
|
2127
2229
|
};
|
|
2128
2230
|
}
|
|
2129
|
-
var
|
|
2130
|
-
function
|
|
2231
|
+
var ui = "c1w9bbhr7-0-0-beta-46", di = "c1creorc7-0-0-beta-46", fi = `rdg-cell-drag-handle ${ui}`;
|
|
2232
|
+
function pi({ gridRowStart: e, rows: t, column: n, columnWidth: r, maxColIdx: i, isLastRow: a, selectedPosition: o, latestDraggedOverRowIdx: s, isCellEditable: c, onRowsChange: l, onFill: u, onClick: d, setDragging: f, setDraggedOverRowIdx: p }) {
|
|
2131
2233
|
let { idx: m, rowIdx: h } = o;
|
|
2132
2234
|
function g(e) {
|
|
2133
2235
|
if (e.preventDefault(), e.buttons !== 1) return;
|
|
@@ -2168,7 +2270,7 @@ function si({ gridRowStart: e, rows: t, column: n, columnWidth: r, maxColIdx: i,
|
|
|
2168
2270
|
let o = n.colSpan?.({
|
|
2169
2271
|
type: "ROW",
|
|
2170
2272
|
row: t[h]
|
|
2171
|
-
}) ?? 1, { insetInlineStart: s, ...c } =
|
|
2273
|
+
}) ?? 1, { insetInlineStart: s, ...c } = Tr(n, o), l = "calc(var(--rdg-drag-handle-size) * -0.5 + 1px)", u = n.idx + o - 1 === i;
|
|
2172
2274
|
return {
|
|
2173
2275
|
...c,
|
|
2174
2276
|
gridRowStart: e,
|
|
@@ -2179,14 +2281,14 @@ function si({ gridRowStart: e, rows: t, column: n, columnWidth: r, maxColIdx: i,
|
|
|
2179
2281
|
}
|
|
2180
2282
|
return /*#__PURE__*/ V("div", {
|
|
2181
2283
|
style: b(),
|
|
2182
|
-
className:
|
|
2284
|
+
className: or(fi, n.frozen && di),
|
|
2183
2285
|
onClick: d,
|
|
2184
2286
|
onMouseDown: g,
|
|
2185
2287
|
onDoubleClick: v
|
|
2186
2288
|
});
|
|
2187
2289
|
}
|
|
2188
|
-
var
|
|
2189
|
-
function
|
|
2290
|
+
var mi = "cis5rrm7-0-0-beta-46";
|
|
2291
|
+
function hi({ column: e, colSpan: t, row: n, rowIdx: r, onRowChange: i, closeEditor: a, onKeyDown: o, navigate: s }) {
|
|
2190
2292
|
let c = L(void 0), l = e.editorOptions?.commitOnOutsideClick !== !1, u = Z(() => {
|
|
2191
2293
|
p(!0, !1);
|
|
2192
2294
|
});
|
|
@@ -2204,7 +2306,7 @@ function li({ column: e, colSpan: t, row: n, rowIdx: r, onRowChange: i, closeEdi
|
|
|
2204
2306
|
}
|
|
2205
2307
|
function f(t) {
|
|
2206
2308
|
if (o) {
|
|
2207
|
-
let i =
|
|
2309
|
+
let i = lr(t);
|
|
2208
2310
|
if (o({
|
|
2209
2311
|
mode: "EDIT",
|
|
2210
2312
|
row: n,
|
|
@@ -2216,7 +2318,7 @@ function li({ column: e, colSpan: t, row: n, rowIdx: r, onRowChange: i, closeEdi
|
|
|
2216
2318
|
onClose: p
|
|
2217
2319
|
}, i), i.isGridDefaultPrevented()) return;
|
|
2218
2320
|
}
|
|
2219
|
-
t.key === "Escape" ? p() : t.key === "Enter" ? p(!0) :
|
|
2321
|
+
t.key === "Escape" ? p() : t.key === "Enter" ? p(!0) : pr(t) && s(t);
|
|
2220
2322
|
}
|
|
2221
2323
|
function p(e = !1, t = !0) {
|
|
2222
2324
|
e ? i(n, !0, t) : a(t);
|
|
@@ -2224,14 +2326,14 @@ function li({ column: e, colSpan: t, row: n, rowIdx: r, onRowChange: i, closeEdi
|
|
|
2224
2326
|
function m(e, t = !1) {
|
|
2225
2327
|
i(e, t, t);
|
|
2226
2328
|
}
|
|
2227
|
-
let { cellClass: h } = e, g =
|
|
2329
|
+
let { cellClass: h } = e, g = Er(e, "rdg-editor-container", typeof h == "function" ? h(n) : h, !e.editorOptions?.displayCellContent && mi);
|
|
2228
2330
|
return /*#__PURE__*/ V("div", {
|
|
2229
2331
|
role: "gridcell",
|
|
2230
2332
|
"aria-colindex": e.idx + 1,
|
|
2231
2333
|
"aria-colspan": t,
|
|
2232
2334
|
"aria-selected": !0,
|
|
2233
2335
|
className: g,
|
|
2234
|
-
style:
|
|
2336
|
+
style: Tr(e, t),
|
|
2235
2337
|
onKeyDown: f,
|
|
2236
2338
|
onMouseDownCapture: d,
|
|
2237
2339
|
children: e.renderEditCell != null && /*#__PURE__*/ H(B, { children: [e.renderEditCell({
|
|
@@ -2250,8 +2352,8 @@ function li({ column: e, colSpan: t, row: n, rowIdx: r, onRowChange: i, closeEdi
|
|
|
2250
2352
|
})] })
|
|
2251
2353
|
});
|
|
2252
2354
|
}
|
|
2253
|
-
function
|
|
2254
|
-
let { tabIndex: i, onFocus: a } =
|
|
2355
|
+
function gi({ column: e, rowIdx: t, isCellSelected: n, selectCell: r }) {
|
|
2356
|
+
let { tabIndex: i, onFocus: a } = si(n), { colSpan: o } = e, s = Pr(e, t), c = e.idx + 1;
|
|
2255
2357
|
function l() {
|
|
2256
2358
|
r({
|
|
2257
2359
|
idx: e.idx,
|
|
@@ -2265,9 +2367,9 @@ function ui({ column: e, rowIdx: t, isCellSelected: n, selectCell: r }) {
|
|
|
2265
2367
|
"aria-rowspan": s,
|
|
2266
2368
|
"aria-selected": n,
|
|
2267
2369
|
tabIndex: i,
|
|
2268
|
-
className:
|
|
2370
|
+
className: or(xr, e.headerCellClass),
|
|
2269
2371
|
style: {
|
|
2270
|
-
...
|
|
2372
|
+
...wr(e, t, s),
|
|
2271
2373
|
gridColumnStart: c,
|
|
2272
2374
|
gridColumnEnd: c + o
|
|
2273
2375
|
},
|
|
@@ -2276,20 +2378,20 @@ function ui({ column: e, rowIdx: t, isCellSelected: n, selectCell: r }) {
|
|
|
2276
2378
|
children: e.name
|
|
2277
2379
|
});
|
|
2278
2380
|
}
|
|
2279
|
-
var
|
|
2280
|
-
function
|
|
2281
|
-
return e.sortable ? /*#__PURE__*/ V(
|
|
2381
|
+
var _i = "h44jtk67-0-0-beta-46", vi = "rdg-header-sort-name hcgkhxz7-0-0-beta-46";
|
|
2382
|
+
function yi({ column: e, sortDirection: t, priority: n }) {
|
|
2383
|
+
return e.sortable ? /*#__PURE__*/ V(bi, {
|
|
2282
2384
|
sortDirection: t,
|
|
2283
2385
|
priority: n,
|
|
2284
2386
|
children: e.name
|
|
2285
2387
|
}) : e.name;
|
|
2286
2388
|
}
|
|
2287
|
-
function
|
|
2288
|
-
let r =
|
|
2389
|
+
function bi({ sortDirection: e, priority: t, children: n }) {
|
|
2390
|
+
let r = Vr().renderSortStatus;
|
|
2289
2391
|
return /*#__PURE__*/ H("span", {
|
|
2290
|
-
className:
|
|
2392
|
+
className: _i,
|
|
2291
2393
|
children: [/*#__PURE__*/ V("span", {
|
|
2292
|
-
className:
|
|
2394
|
+
className: vi,
|
|
2293
2395
|
children: n
|
|
2294
2396
|
}), /*#__PURE__*/ V("span", { children: r({
|
|
2295
2397
|
sortDirection: e,
|
|
@@ -2297,16 +2399,16 @@ function mi({ sortDirection: e, priority: t, children: n }) {
|
|
|
2297
2399
|
}) })]
|
|
2298
2400
|
});
|
|
2299
2401
|
}
|
|
2300
|
-
var
|
|
2301
|
-
function
|
|
2302
|
-
let [f, p] = R(!1), [m, h] = R(!1), g = u === "rtl", _ =
|
|
2402
|
+
var xi = "c6l2wv17-0-0-beta-46", Si = "rdg-cell-resizable c1kqdw7y7-0-0-beta-46", Ci = "r1y6ywlx7-0-0-beta-46", wi = "rdg-cell-draggable", Ti = "rdg-cell-dragging c1bezg5o7-0-0-beta-46", Ei = "rdg-cell-drag-over c1vc96037-0-0-beta-46";
|
|
2403
|
+
function Di({ column: e, colSpan: t, rowIdx: n, isCellSelected: r, onColumnResize: i, onColumnsReorder: a, sortColumns: o, onSortColumnsChange: s, selectCell: c, shouldFocusGrid: l, direction: u, dragDropKey: d }) {
|
|
2404
|
+
let [f, p] = R(!1), [m, h] = R(!1), g = u === "rtl", _ = Pr(e, n), { tabIndex: v, childTabIndex: y, onFocus: b } = si(r), x = o?.findIndex((t) => t.columnKey === e.key), S = x !== void 0 && x > -1 ? o[x] : void 0, C = S?.direction, ee = S !== void 0 && o.length > 1 ? x + 1 : void 0, te = C && !ee ? C === "ASC" ? "ascending" : "descending" : void 0, { sortable: w, resizable: ne, draggable: re } = e, T = Er(e, e.headerCellClass, w && xi, ne && Si, re && wi, f && Ti, m && Ei), ie = e.renderHeaderCell ?? yi;
|
|
2303
2405
|
function E(t) {
|
|
2304
2406
|
if (t.pointerType === "mouse" && t.buttons !== 1) return;
|
|
2305
2407
|
t.preventDefault();
|
|
2306
2408
|
let { currentTarget: n, pointerId: r } = t, a = n.parentElement, { right: o, left: s } = a.getBoundingClientRect(), c = g ? t.clientX - s : o - t.clientX;
|
|
2307
2409
|
function l(t) {
|
|
2308
2410
|
let { right: n, left: r } = a.getBoundingClientRect(), o = g ? n + c - t.clientX : t.clientX + c - r;
|
|
2309
|
-
o > 0 && i(e,
|
|
2411
|
+
o > 0 && i(e, Nr(o, e));
|
|
2310
2412
|
}
|
|
2311
2413
|
function u() {
|
|
2312
2414
|
n.removeEventListener("pointermove", l), n.removeEventListener("lostpointercapture", u);
|
|
@@ -2367,10 +2469,10 @@ function xi({ column: e, colSpan: t, rowIdx: n, isCellSelected: r, onColumnResiz
|
|
|
2367
2469
|
}
|
|
2368
2470
|
}
|
|
2369
2471
|
function A(e) {
|
|
2370
|
-
|
|
2472
|
+
Oi(e) && h(!0);
|
|
2371
2473
|
}
|
|
2372
2474
|
function j(e) {
|
|
2373
|
-
|
|
2475
|
+
Oi(e) && h(!1);
|
|
2374
2476
|
}
|
|
2375
2477
|
let M;
|
|
2376
2478
|
return re && (M = {
|
|
@@ -2391,8 +2493,8 @@ function xi({ column: e, colSpan: t, rowIdx: n, isCellSelected: r, onColumnResiz
|
|
|
2391
2493
|
tabIndex: l ? 0 : v,
|
|
2392
2494
|
className: T,
|
|
2393
2495
|
style: {
|
|
2394
|
-
...
|
|
2395
|
-
...
|
|
2496
|
+
...wr(e, n, _),
|
|
2497
|
+
...Tr(e, t)
|
|
2396
2498
|
},
|
|
2397
2499
|
onFocus: ae,
|
|
2398
2500
|
onClick: O,
|
|
@@ -2404,23 +2506,23 @@ function xi({ column: e, colSpan: t, rowIdx: n, isCellSelected: r, onColumnResiz
|
|
|
2404
2506
|
priority: ee,
|
|
2405
2507
|
tabIndex: y
|
|
2406
2508
|
}), ne && /*#__PURE__*/ V("div", {
|
|
2407
|
-
className:
|
|
2408
|
-
onClick:
|
|
2509
|
+
className: Ci,
|
|
2510
|
+
onClick: sr,
|
|
2409
2511
|
onDoubleClick: k,
|
|
2410
2512
|
onPointerDown: E
|
|
2411
2513
|
})]
|
|
2412
2514
|
});
|
|
2413
2515
|
}
|
|
2414
|
-
function
|
|
2516
|
+
function Oi(e) {
|
|
2415
2517
|
let t = e.relatedTarget;
|
|
2416
2518
|
return !e.currentTarget.contains(t);
|
|
2417
2519
|
}
|
|
2418
|
-
var
|
|
2419
|
-
function
|
|
2520
|
+
var ki = "rdg-row r1upfr807-0-0-beta-46", Ai = "r190mhd37-0-0-beta-46", ji = "rdg-row-selected", Mi = "r139qu9m7-0-0-beta-46", Ni = "rdg-top-summary-row", Pi = "rdg-bottom-summary-row", Fi = "rdg-header-row h10tskcx7-0-0-beta-46";
|
|
2521
|
+
function Ii({ rowIdx: e, columns: t, onColumnResize: n, onColumnsReorder: r, sortColumns: i, onSortColumnsChange: a, lastFrozenColumnIndex: o, selectedCellIdx: s, selectCell: c, shouldFocusGrid: l, direction: u }) {
|
|
2420
2522
|
let d = ye(), f = [];
|
|
2421
2523
|
for (let p = 0; p < t.length; p++) {
|
|
2422
2524
|
let m = t[p], h = X(m, o, { type: "HEADER" });
|
|
2423
|
-
h !== void 0 && (p += h - 1), f.push(/*#__PURE__*/ V(
|
|
2525
|
+
h !== void 0 && (p += h - 1), f.push(/*#__PURE__*/ V(Di, {
|
|
2424
2526
|
column: m,
|
|
2425
2527
|
colSpan: h,
|
|
2426
2528
|
rowIdx: e,
|
|
@@ -2438,12 +2540,12 @@ function Ai({ rowIdx: e, columns: t, onColumnResize: n, onColumnsReorder: r, sor
|
|
|
2438
2540
|
return /*#__PURE__*/ V("div", {
|
|
2439
2541
|
role: "row",
|
|
2440
2542
|
"aria-rowindex": e,
|
|
2441
|
-
className:
|
|
2543
|
+
className: or(Fi, s === -1 && ji),
|
|
2442
2544
|
children: f
|
|
2443
2545
|
});
|
|
2444
2546
|
}
|
|
2445
|
-
var
|
|
2446
|
-
function
|
|
2547
|
+
var Li = /*#__PURE__*/ _e(Ii);
|
|
2548
|
+
function Ri({ rowIdx: e, level: t, columns: n, selectedCellIdx: r, selectCell: i }) {
|
|
2447
2549
|
let a = [], o = /* @__PURE__ */ new Set();
|
|
2448
2550
|
for (let s of n) {
|
|
2449
2551
|
let { parent: n } = s;
|
|
@@ -2452,7 +2554,7 @@ function Mi({ rowIdx: e, level: t, columns: n, selectedCellIdx: r, selectCell: i
|
|
|
2452
2554
|
if (n.level === t && !o.has(n)) {
|
|
2453
2555
|
o.add(n);
|
|
2454
2556
|
let { idx: t } = n;
|
|
2455
|
-
a.push(/*#__PURE__*/ V(
|
|
2557
|
+
a.push(/*#__PURE__*/ V(gi, {
|
|
2456
2558
|
column: n,
|
|
2457
2559
|
rowIdx: e,
|
|
2458
2560
|
isCellSelected: r === t,
|
|
@@ -2464,13 +2566,13 @@ function Mi({ rowIdx: e, level: t, columns: n, selectedCellIdx: r, selectCell: i
|
|
|
2464
2566
|
return /*#__PURE__*/ V("div", {
|
|
2465
2567
|
role: "row",
|
|
2466
2568
|
"aria-rowindex": e,
|
|
2467
|
-
className:
|
|
2569
|
+
className: Fi,
|
|
2468
2570
|
children: a
|
|
2469
2571
|
});
|
|
2470
2572
|
}
|
|
2471
|
-
var
|
|
2472
|
-
function
|
|
2473
|
-
let { tabIndex: p, childTabIndex: m, onFocus: h } =
|
|
2573
|
+
var zi = /*#__PURE__*/ _e(Ri), Bi = "rdg-cell-copied c6ra8a37-0-0-beta-46", Vi = "rdg-cell-dragged-over cq910m07-0-0-beta-46";
|
|
2574
|
+
function Hi({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOver: i, row: a, rowIdx: o, onClick: s, onDoubleClick: c, onContextMenu: l, onRowChange: u, selectCell: d, ...f }) {
|
|
2575
|
+
let { tabIndex: p, childTabIndex: m, onFocus: h } = si(n), { cellClass: g } = e, _ = Er(e, typeof g == "function" ? g(a) : g, r && Bi, i && Vi), v = _r(e, a);
|
|
2474
2576
|
function y(t) {
|
|
2475
2577
|
d({
|
|
2476
2578
|
rowIdx: o,
|
|
@@ -2479,7 +2581,7 @@ function Ii({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOv
|
|
|
2479
2581
|
}
|
|
2480
2582
|
function b(t) {
|
|
2481
2583
|
if (s) {
|
|
2482
|
-
let n =
|
|
2584
|
+
let n = lr(t);
|
|
2483
2585
|
if (s({
|
|
2484
2586
|
row: a,
|
|
2485
2587
|
column: e,
|
|
@@ -2490,7 +2592,7 @@ function Ii({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOv
|
|
|
2490
2592
|
}
|
|
2491
2593
|
function x(t) {
|
|
2492
2594
|
if (l) {
|
|
2493
|
-
let n =
|
|
2595
|
+
let n = lr(t);
|
|
2494
2596
|
if (l({
|
|
2495
2597
|
row: a,
|
|
2496
2598
|
column: e,
|
|
@@ -2501,7 +2603,7 @@ function Ii({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOv
|
|
|
2501
2603
|
}
|
|
2502
2604
|
function S(t) {
|
|
2503
2605
|
if (c) {
|
|
2504
|
-
let n =
|
|
2606
|
+
let n = lr(t);
|
|
2505
2607
|
if (c({
|
|
2506
2608
|
row: a,
|
|
2507
2609
|
column: e,
|
|
@@ -2521,7 +2623,7 @@ function Ii({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOv
|
|
|
2521
2623
|
"aria-readonly": !v || void 0,
|
|
2522
2624
|
tabIndex: p,
|
|
2523
2625
|
className: _,
|
|
2524
|
-
style:
|
|
2626
|
+
style: Tr(e, t),
|
|
2525
2627
|
onClick: b,
|
|
2526
2628
|
onDoubleClick: S,
|
|
2527
2629
|
onContextMenu: x,
|
|
@@ -2537,15 +2639,15 @@ function Ii({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOv
|
|
|
2537
2639
|
})
|
|
2538
2640
|
});
|
|
2539
2641
|
}
|
|
2540
|
-
var
|
|
2541
|
-
function
|
|
2642
|
+
var Ui = /*#__PURE__*/ _e(Hi);
|
|
2643
|
+
function Wi({ className: e, rowIdx: t, gridRowStart: n, selectedCellIdx: r, isRowSelected: i, copiedCellIdx: a, draggedOverCellIdx: o, lastFrozenColumnIndex: s, row: c, viewportColumns: l, selectedCellEditor: u, onCellClick: d, onCellDoubleClick: f, onCellContextMenu: p, rowClass: m, setDraggedOverRowIdx: h, onMouseEnter: g, onRowChange: _, selectCell: v, ...y }, b) {
|
|
2542
2644
|
let x = Z((e, n) => {
|
|
2543
2645
|
_(e, t, n);
|
|
2544
2646
|
});
|
|
2545
2647
|
function S(e) {
|
|
2546
2648
|
h?.(t), g?.(e);
|
|
2547
2649
|
}
|
|
2548
|
-
e =
|
|
2650
|
+
e = or(ki, `rdg-row-${t % 2 == 0 ? "even" : "odd"}`, m?.(c, t), e, r === -1 && ji);
|
|
2549
2651
|
let C = [];
|
|
2550
2652
|
for (let e = 0; e < l.length; e++) {
|
|
2551
2653
|
let n = l[e], { idx: i } = n, m = X(n, s, {
|
|
@@ -2554,7 +2656,7 @@ function Ri({ className: e, rowIdx: t, gridRowStart: n, selectedCellIdx: r, isRo
|
|
|
2554
2656
|
});
|
|
2555
2657
|
m !== void 0 && (e += m - 1);
|
|
2556
2658
|
let h = r === i;
|
|
2557
|
-
h && u ? C.push(u) : C.push(/*#__PURE__*/ V(
|
|
2659
|
+
h && u ? C.push(u) : C.push(/*#__PURE__*/ V(Ui, {
|
|
2558
2660
|
column: n,
|
|
2559
2661
|
colSpan: m,
|
|
2560
2662
|
row: c,
|
|
@@ -2569,28 +2671,28 @@ function Ri({ className: e, rowIdx: t, gridRowStart: n, selectedCellIdx: r, isRo
|
|
|
2569
2671
|
selectCell: v
|
|
2570
2672
|
}, n.key));
|
|
2571
2673
|
}
|
|
2572
|
-
return /*#__PURE__*/ V(
|
|
2674
|
+
return /*#__PURE__*/ V(Wr, {
|
|
2573
2675
|
value: i,
|
|
2574
2676
|
children: /*#__PURE__*/ V("div", {
|
|
2575
2677
|
role: "row",
|
|
2576
2678
|
ref: b,
|
|
2577
2679
|
className: e,
|
|
2578
2680
|
onMouseEnter: S,
|
|
2579
|
-
style:
|
|
2681
|
+
style: Cr(n),
|
|
2580
2682
|
...y,
|
|
2581
2683
|
children: C
|
|
2582
2684
|
})
|
|
2583
2685
|
});
|
|
2584
2686
|
}
|
|
2585
|
-
var
|
|
2586
|
-
function
|
|
2587
|
-
return /*#__PURE__*/ V(
|
|
2687
|
+
var Gi = /*#__PURE__*/ _e(/*#__PURE__*/ N(Wi));
|
|
2688
|
+
function Ki(e, t) {
|
|
2689
|
+
return /*#__PURE__*/ V(Gi, { ...t }, e);
|
|
2588
2690
|
}
|
|
2589
|
-
function
|
|
2691
|
+
function qi({ scrollToPosition: { idx: e, rowIdx: t }, gridElement: n, setScrollToCellPosition: r }) {
|
|
2590
2692
|
let i = L(null);
|
|
2591
|
-
return
|
|
2592
|
-
|
|
2593
|
-
}),
|
|
2693
|
+
return ri(() => {
|
|
2694
|
+
cr(i.current);
|
|
2695
|
+
}), ri(() => {
|
|
2594
2696
|
function e() {
|
|
2595
2697
|
r(null);
|
|
2596
2698
|
}
|
|
@@ -2609,26 +2711,26 @@ function Vi({ scrollToPosition: { idx: e, rowIdx: t }, gridElement: n, setScroll
|
|
|
2609
2711
|
}
|
|
2610
2712
|
});
|
|
2611
2713
|
}
|
|
2612
|
-
var
|
|
2613
|
-
function
|
|
2614
|
-
return /*#__PURE__*/ H(B, { children: [
|
|
2714
|
+
var Ji = "rdg-sort-arrow a3ejtar7-0-0-beta-46";
|
|
2715
|
+
function Yi({ sortDirection: e, priority: t }) {
|
|
2716
|
+
return /*#__PURE__*/ H(B, { children: [Xi({ sortDirection: e }), Zi({ priority: t })] });
|
|
2615
2717
|
}
|
|
2616
|
-
function
|
|
2718
|
+
function Xi({ sortDirection: e }) {
|
|
2617
2719
|
return e === void 0 ? null : /*#__PURE__*/ V("svg", {
|
|
2618
2720
|
viewBox: "0 0 12 8",
|
|
2619
2721
|
width: "12",
|
|
2620
2722
|
height: "8",
|
|
2621
|
-
className:
|
|
2723
|
+
className: Ji,
|
|
2622
2724
|
"aria-hidden": !0,
|
|
2623
2725
|
children: /*#__PURE__*/ V("path", { d: e === "ASC" ? "M0 8 6 0 12 8" : "M0 0 6 8 12 0" })
|
|
2624
2726
|
});
|
|
2625
2727
|
}
|
|
2626
|
-
function
|
|
2728
|
+
function Zi({ priority: e }) {
|
|
2627
2729
|
return e;
|
|
2628
2730
|
}
|
|
2629
|
-
var
|
|
2630
|
-
function
|
|
2631
|
-
let { tabIndex: o, childTabIndex: s, onFocus: c } =
|
|
2731
|
+
var Qi = "rdg rnvodz57-0-0-beta-46", $i = "rdg-viewport-dragging vlqv91k7-0-0-beta-46", ea = "f1lsfrzw7-0-0-beta-46", ta = "f1cte0lg7-0-0-beta-46", na = "s8wc6fl7-0-0-beta-46";
|
|
2732
|
+
function ra({ column: e, colSpan: t, row: n, rowIdx: r, isCellSelected: i, selectCell: a }) {
|
|
2733
|
+
let { tabIndex: o, childTabIndex: s, onFocus: c } = si(i), { summaryCellClass: l } = e, u = Er(e, na, typeof l == "function" ? l(n) : l);
|
|
2632
2734
|
function d() {
|
|
2633
2735
|
a({
|
|
2634
2736
|
rowIdx: r,
|
|
@@ -2642,7 +2744,7 @@ function Zi({ column: e, colSpan: t, row: n, rowIdx: r, isCellSelected: i, selec
|
|
|
2642
2744
|
"aria-selected": i,
|
|
2643
2745
|
tabIndex: o,
|
|
2644
2746
|
className: u,
|
|
2645
|
-
style:
|
|
2747
|
+
style: Tr(e, t),
|
|
2646
2748
|
onClick: d,
|
|
2647
2749
|
onFocus: c,
|
|
2648
2750
|
children: e.renderSummaryCell?.({
|
|
@@ -2652,8 +2754,8 @@ function Zi({ column: e, colSpan: t, row: n, rowIdx: r, isCellSelected: i, selec
|
|
|
2652
2754
|
})
|
|
2653
2755
|
});
|
|
2654
2756
|
}
|
|
2655
|
-
var
|
|
2656
|
-
function
|
|
2757
|
+
var ia = /*#__PURE__*/ _e(ra), aa = "skuhp557-0-0-beta-46", oa = "tf8l5ub7-0-0-beta-46", sa = `rdg-summary-row ${aa}`;
|
|
2758
|
+
function ca({ rowIdx: e, gridRowStart: t, row: n, viewportColumns: r, top: i, bottom: a, lastFrozenColumnIndex: o, selectedCellIdx: s, isTop: c, selectCell: l, "aria-rowindex": u }) {
|
|
2657
2759
|
let d = [];
|
|
2658
2760
|
for (let t = 0; t < r.length; t++) {
|
|
2659
2761
|
let i = r[t], a = X(i, o, {
|
|
@@ -2662,7 +2764,7 @@ function na({ rowIdx: e, gridRowStart: t, row: n, viewportColumns: r, top: i, bo
|
|
|
2662
2764
|
});
|
|
2663
2765
|
a !== void 0 && (t += a - 1);
|
|
2664
2766
|
let c = s === i.idx;
|
|
2665
|
-
d.push(/*#__PURE__*/ V(
|
|
2767
|
+
d.push(/*#__PURE__*/ V(ia, {
|
|
2666
2768
|
column: i,
|
|
2667
2769
|
colSpan: a,
|
|
2668
2770
|
row: n,
|
|
@@ -2674,18 +2776,18 @@ function na({ rowIdx: e, gridRowStart: t, row: n, viewportColumns: r, top: i, bo
|
|
|
2674
2776
|
return /*#__PURE__*/ V("div", {
|
|
2675
2777
|
role: "row",
|
|
2676
2778
|
"aria-rowindex": u,
|
|
2677
|
-
className:
|
|
2779
|
+
className: or(ki, `rdg-row-${e % 2 == 0 ? "even" : "odd"}`, sa, c ? `${Ni} ${oa}` : Pi, s === -1 && ji),
|
|
2678
2780
|
style: {
|
|
2679
|
-
...
|
|
2781
|
+
...Cr(t),
|
|
2680
2782
|
"--rdg-summary-row-top": i === void 0 ? void 0 : `${i}px`,
|
|
2681
2783
|
"--rdg-summary-row-bottom": a === void 0 ? void 0 : `${a}px`
|
|
2682
2784
|
},
|
|
2683
2785
|
children: d
|
|
2684
2786
|
});
|
|
2685
2787
|
}
|
|
2686
|
-
var
|
|
2687
|
-
function
|
|
2688
|
-
let { columns: n, rows: r, topSummaryRows: i, bottomSummaryRows: a, rowKeyGetter: o, onRowsChange: s, rowHeight: c, headerRowHeight: l, summaryRowHeight: u, selectedRows: d, onSelectedRowsChange: f, sortColumns: p, onSortColumnsChange: m, defaultColumnOptions: h, onCellClick: g, onCellDoubleClick: _, onCellContextMenu: v, onCellKeyDown: y, onSelectedCellChange: b, onScroll: x, onColumnResize: S, onColumnsReorder: C, onFill: ee, onCopy: te, onPaste: w, enableVirtualization: ne, renderers: re, className: T, style: ie, rowClass: E, direction: D, role: O, "aria-label": k, "aria-labelledby": ae, "aria-describedby": oe, "aria-rowcount": se, "data-testid": ce } = e, le =
|
|
2788
|
+
var la = /*#__PURE__*/ _e(ca);
|
|
2789
|
+
function ua(e, t) {
|
|
2790
|
+
let { columns: n, rows: r, topSummaryRows: i, bottomSummaryRows: a, rowKeyGetter: o, onRowsChange: s, rowHeight: c, headerRowHeight: l, summaryRowHeight: u, selectedRows: d, onSelectedRowsChange: f, sortColumns: p, onSortColumnsChange: m, defaultColumnOptions: h, onCellClick: g, onCellDoubleClick: _, onCellContextMenu: v, onCellKeyDown: y, onSelectedCellChange: b, onScroll: x, onColumnResize: S, onColumnsReorder: C, onFill: ee, onCopy: te, onPaste: w, enableVirtualization: ne, renderers: re, className: T, style: ie, rowClass: E, direction: D, role: O, "aria-label": k, "aria-labelledby": ae, "aria-describedby": oe, "aria-rowcount": se, "data-testid": ce } = e, le = Vr(), ue = O ?? "grid", A = c ?? 35, j = l ?? (typeof A == "number" ? A : 35), M = u ?? (typeof A == "number" ? A : 35), de = re?.renderRow ?? le?.renderRow ?? Ki, fe = re?.renderSortStatus ?? le?.renderSortStatus ?? Yi, pe = re?.renderCheckbox ?? le?.renderCheckbox ?? Lr, me = re?.noRowsFallback ?? le?.noRowsFallback, he = ne ?? !0, N = D ?? "ltr", [ge, _e] = R(0), [ve, F] = R(0), [ye, xe] = R(() => /* @__PURE__ */ new Map()), [z, Se] = R(() => /* @__PURE__ */ new Map()), [Ce, we] = R(null), [Te, Ee] = R(!1), [De, Oe] = R(void 0), [ke, Ae] = R(null), je = P((e) => ye.get(e.key) ?? z.get(e.key) ?? e.width, [z, ye]), [Me, Ne, Pe, Fe] = oi(), { columns: U, colSpanColumns: Ie, lastFrozenColumnIndex: W, headerRowsCount: Le, colOverscanStartIdx: Re, colOverscanEndIdx: ze, templateColumns: Be, layoutCssVars: Ve, totalFrozenColumnWidth: He } = ti({
|
|
2689
2791
|
rawColumns: n,
|
|
2690
2792
|
defaultColumnOptions: h,
|
|
2691
2793
|
getColumnWidth: je,
|
|
@@ -2706,13 +2808,13 @@ function ia(e, t) {
|
|
|
2706
2808
|
r,
|
|
2707
2809
|
d,
|
|
2708
2810
|
o
|
|
2709
|
-
]), { rowOverscanStartIdx: ft, rowOverscanEndIdx: pt, totalRowHeight: mt, gridTemplateRows: ht, getRowTop: gt, getRowHeight: _t, findRowIdx: vt } =
|
|
2811
|
+
]), { rowOverscanStartIdx: ft, rowOverscanEndIdx: pt, totalRowHeight: mt, gridTemplateRows: ht, getRowTop: gt, getRowHeight: _t, findRowIdx: vt } = li({
|
|
2710
2812
|
rows: r,
|
|
2711
2813
|
rowHeight: A,
|
|
2712
2814
|
clientHeight: it,
|
|
2713
2815
|
scrollTop: ge,
|
|
2714
2816
|
enableVirtualization: he
|
|
2715
|
-
}), yt =
|
|
2817
|
+
}), yt = ci({
|
|
2716
2818
|
columns: U,
|
|
2717
2819
|
colSpanColumns: Ie,
|
|
2718
2820
|
colOverscanStartIdx: Re,
|
|
@@ -2723,19 +2825,19 @@ function ia(e, t) {
|
|
|
2723
2825
|
rows: r,
|
|
2724
2826
|
topSummaryRows: i,
|
|
2725
2827
|
bottomSummaryRows: a
|
|
2726
|
-
}), { gridTemplateColumns: bt, handleColumnResize: xt } =
|
|
2828
|
+
}), { gridTemplateColumns: bt, handleColumnResize: xt } = ii(U, yt, Be, Me, Ne, ye, z, xe, Se, S), St = tt ? -1 : 0, Ct = U.length - 1, wt = qt(q), Tt = Yt(q), Et = j + mt + rt + Fe, Dt = Z(xt), Ot = Z(C), kt = Z(m), At = Z(g), jt = Z(_), Mt = Z(v), Nt = Z(Lt), Pt = Z(Bt), Y = Z(Zt), Ft = Z(({ idx: e, rowIdx: t }) => {
|
|
2727
2829
|
Zt({
|
|
2728
2830
|
rowIdx: G + t - 1,
|
|
2729
2831
|
idx: e
|
|
2730
2832
|
});
|
|
2731
2833
|
});
|
|
2732
|
-
|
|
2733
|
-
if (!wt ||
|
|
2834
|
+
ri(() => {
|
|
2835
|
+
if (!wt || fa(q, Xe.current)) {
|
|
2734
2836
|
Xe.current = q;
|
|
2735
2837
|
return;
|
|
2736
2838
|
}
|
|
2737
|
-
Xe.current = q, q.idx === -1 && ($e.current.focus({ preventScroll: !0 }),
|
|
2738
|
-
}),
|
|
2839
|
+
Xe.current = q, q.idx === -1 && ($e.current.focus({ preventScroll: !0 }), cr($e.current));
|
|
2840
|
+
}), ri(() => {
|
|
2739
2841
|
et.current && (et.current = !1, tn());
|
|
2740
2842
|
}), be(t, () => ({
|
|
2741
2843
|
element: Me.current,
|
|
@@ -2753,7 +2855,7 @@ function ia(e, t) {
|
|
|
2753
2855
|
}, []);
|
|
2754
2856
|
function Lt(e) {
|
|
2755
2857
|
if (!f) return;
|
|
2756
|
-
if (
|
|
2858
|
+
if (Mr(o), e.type === "HEADER") {
|
|
2757
2859
|
let t = new Set(d);
|
|
2758
2860
|
for (let n of r) {
|
|
2759
2861
|
let r = o(n);
|
|
@@ -2764,7 +2866,7 @@ function ia(e, t) {
|
|
|
2764
2866
|
}
|
|
2765
2867
|
let { row: t, checked: n, isShiftClick: i } = e, a = new Set(d), s = o(t), c = Qe.current, l = r.indexOf(t);
|
|
2766
2868
|
if (Qe.current = l, n ? a.add(s) : a.delete(s), i && c !== -1 && c !== l && c < r.length) {
|
|
2767
|
-
let e =
|
|
2869
|
+
let e = Ar(l - c);
|
|
2768
2870
|
for (let t = c + e; t !== l; t += e) {
|
|
2769
2871
|
let e = r[t];
|
|
2770
2872
|
n ? a.add(o(e)) : a.delete(o(e));
|
|
@@ -2776,7 +2878,7 @@ function ia(e, t) {
|
|
|
2776
2878
|
let { idx: t, rowIdx: n, mode: i } = q;
|
|
2777
2879
|
if (i === "EDIT") return;
|
|
2778
2880
|
if (y && Kt(n)) {
|
|
2779
|
-
let i = r[n], a =
|
|
2881
|
+
let i = r[n], a = lr(e);
|
|
2780
2882
|
if (y({
|
|
2781
2883
|
mode: "SELECT",
|
|
2782
2884
|
row: i,
|
|
@@ -2789,7 +2891,7 @@ function ia(e, t) {
|
|
|
2789
2891
|
let a = e.target.closest(".rdg-cell") !== null, o = tt && e.target === $e.current;
|
|
2790
2892
|
if (!a && !o) return;
|
|
2791
2893
|
let { keyCode: s } = e;
|
|
2792
|
-
if (Tt && (w != null || te != null) &&
|
|
2894
|
+
if (Tt && (w != null || te != null) && dr(e)) {
|
|
2793
2895
|
if (s === 67) {
|
|
2794
2896
|
if (window.getSelection()?.isCollapsed === !1) return;
|
|
2795
2897
|
Ht();
|
|
@@ -2823,7 +2925,7 @@ function ia(e, t) {
|
|
|
2823
2925
|
function zt(e) {
|
|
2824
2926
|
let { scrollTop: t, scrollLeft: n } = e.currentTarget;
|
|
2825
2927
|
ot(() => {
|
|
2826
|
-
_e(t), F(
|
|
2928
|
+
_e(t), F(jr(n));
|
|
2827
2929
|
}), x?.(e);
|
|
2828
2930
|
}
|
|
2829
2931
|
function Bt(e, t, n) {
|
|
@@ -2861,7 +2963,7 @@ function ia(e, t) {
|
|
|
2861
2963
|
if (!Tt) return;
|
|
2862
2964
|
let t = r[q.rowIdx], { key: n, shiftKey: i } = e;
|
|
2863
2965
|
if (at && i && n === " ") {
|
|
2864
|
-
|
|
2966
|
+
Mr(o);
|
|
2865
2967
|
let n = o(t);
|
|
2866
2968
|
Lt({
|
|
2867
2969
|
type: "ROW",
|
|
@@ -2871,7 +2973,7 @@ function ia(e, t) {
|
|
|
2871
2973
|
}), e.preventDefault();
|
|
2872
2974
|
return;
|
|
2873
2975
|
}
|
|
2874
|
-
Xt(q) &&
|
|
2976
|
+
Xt(q) && fr(e) && Ye(({ idx: e, rowIdx: n }) => ({
|
|
2875
2977
|
idx: e,
|
|
2876
2978
|
rowIdx: n,
|
|
2877
2979
|
mode: "EDIT",
|
|
@@ -2895,7 +2997,7 @@ function ia(e, t) {
|
|
|
2895
2997
|
return Kt(t) && Gt(e);
|
|
2896
2998
|
}
|
|
2897
2999
|
function Xt(e) {
|
|
2898
|
-
return Jt(e) &&
|
|
3000
|
+
return Jt(e) && gr({
|
|
2899
3001
|
columns: U,
|
|
2900
3002
|
rows: r,
|
|
2901
3003
|
selectedPosition: e
|
|
@@ -2904,13 +3006,13 @@ function ia(e, t) {
|
|
|
2904
3006
|
function Zt(e, t) {
|
|
2905
3007
|
if (!qt(e)) return;
|
|
2906
3008
|
Vt();
|
|
2907
|
-
let n = r[e.rowIdx], i =
|
|
3009
|
+
let n = r[e.rowIdx], i = fa(q, e);
|
|
2908
3010
|
t && Xt(e) ? Ye({
|
|
2909
3011
|
...e,
|
|
2910
3012
|
mode: "EDIT",
|
|
2911
3013
|
row: n,
|
|
2912
3014
|
originalRow: n
|
|
2913
|
-
}) : i ?
|
|
3015
|
+
}) : i ? cr(da(Me.current)) : (et.current = !0, Ye({
|
|
2914
3016
|
...e,
|
|
2915
3017
|
mode: "SELECT"
|
|
2916
3018
|
})), b && !i && b({
|
|
@@ -2978,7 +3080,7 @@ function ia(e, t) {
|
|
|
2978
3080
|
function $t(e) {
|
|
2979
3081
|
let { key: t, shiftKey: n } = e, o = "NONE";
|
|
2980
3082
|
if (t === "Tab") {
|
|
2981
|
-
if (
|
|
3083
|
+
if (br({
|
|
2982
3084
|
shiftKey: n,
|
|
2983
3085
|
maxColIdx: Ct,
|
|
2984
3086
|
minRowIdx: G,
|
|
@@ -2991,8 +3093,8 @@ function ia(e, t) {
|
|
|
2991
3093
|
o = "CHANGE_ROW";
|
|
2992
3094
|
}
|
|
2993
3095
|
e.preventDefault();
|
|
2994
|
-
let s = Qt(t,
|
|
2995
|
-
|
|
3096
|
+
let s = Qt(t, dr(e), n);
|
|
3097
|
+
fa(q, s) || Zt(yr({
|
|
2996
3098
|
moveUp: t === "ArrowUp",
|
|
2997
3099
|
moveNext: t === ct || t === "Tab" && !n,
|
|
2998
3100
|
columns: U,
|
|
@@ -3016,15 +3118,15 @@ function ia(e, t) {
|
|
|
3016
3118
|
return (t < De ? t < e && e <= De : t > e && e >= De) ? q.idx : void 0;
|
|
3017
3119
|
}
|
|
3018
3120
|
function tn() {
|
|
3019
|
-
let e =
|
|
3020
|
-
e !== null && (
|
|
3121
|
+
let e = da(Me.current);
|
|
3122
|
+
e !== null && (cr(e), (e.querySelector("[tabindex=\"0\"]") ?? e).focus({ preventScroll: !0 }));
|
|
3021
3123
|
}
|
|
3022
3124
|
function nn() {
|
|
3023
3125
|
if (ee == null || q.mode === "EDIT" || !Yt(q)) return;
|
|
3024
3126
|
let { idx: e, rowIdx: t } = q, n = U[e];
|
|
3025
3127
|
if (n.renderEditCell == null || n.editable === !1) return;
|
|
3026
3128
|
let i = je(n);
|
|
3027
|
-
return /*#__PURE__*/ V(
|
|
3129
|
+
return /*#__PURE__*/ V(pi, {
|
|
3028
3130
|
gridRowStart: Ke + t + 1,
|
|
3029
3131
|
rows: r,
|
|
3030
3132
|
column: n,
|
|
@@ -3053,7 +3155,7 @@ function ia(e, t) {
|
|
|
3053
3155
|
mode: "SELECT"
|
|
3054
3156
|
}));
|
|
3055
3157
|
};
|
|
3056
|
-
return r[q.rowIdx] !== q.originalRow && o(!1), /*#__PURE__*/ V(
|
|
3158
|
+
return r[q.rowIdx] !== q.originalRow && o(!1), /*#__PURE__*/ V(hi, {
|
|
3057
3159
|
column: i,
|
|
3058
3160
|
colSpan: a,
|
|
3059
3161
|
row: n,
|
|
@@ -3125,7 +3227,7 @@ function ia(e, t) {
|
|
|
3125
3227
|
"aria-multiselectable": at ? !0 : void 0,
|
|
3126
3228
|
"aria-colcount": U.length,
|
|
3127
3229
|
"aria-rowcount": lt,
|
|
3128
|
-
className:
|
|
3230
|
+
className: or(Qi, T, Te && $i),
|
|
3129
3231
|
style: {
|
|
3130
3232
|
...ie,
|
|
3131
3233
|
scrollPaddingInlineStart: q.idx > W || ke?.idx !== void 0 ? `${He}px` : void 0,
|
|
@@ -3142,19 +3244,19 @@ function ia(e, t) {
|
|
|
3142
3244
|
onKeyDown: Rt,
|
|
3143
3245
|
"data-testid": ce,
|
|
3144
3246
|
children: [
|
|
3145
|
-
/*#__PURE__*/ V(
|
|
3247
|
+
/*#__PURE__*/ V(Br, {
|
|
3146
3248
|
value: ut,
|
|
3147
|
-
children: /*#__PURE__*/ H(
|
|
3249
|
+
children: /*#__PURE__*/ H(Kr, {
|
|
3148
3250
|
value: Nt,
|
|
3149
|
-
children: [/*#__PURE__*/ H(
|
|
3251
|
+
children: [/*#__PURE__*/ H(Wr, {
|
|
3150
3252
|
value: dt,
|
|
3151
|
-
children: [Array.from({ length: qe }, (e, t) => /*#__PURE__*/ V(
|
|
3253
|
+
children: [Array.from({ length: qe }, (e, t) => /*#__PURE__*/ V(zi, {
|
|
3152
3254
|
rowIdx: t + 1,
|
|
3153
3255
|
level: -qe + t,
|
|
3154
3256
|
columns: an(G + t),
|
|
3155
3257
|
selectedCellIdx: q.rowIdx === G + t ? q.idx : void 0,
|
|
3156
3258
|
selectCell: Ft
|
|
3157
|
-
}, t)), /*#__PURE__*/ V(
|
|
3259
|
+
}, t)), /*#__PURE__*/ V(Li, {
|
|
3158
3260
|
rowIdx: Le,
|
|
3159
3261
|
columns: an(Je),
|
|
3160
3262
|
onColumnResize: Dt,
|
|
@@ -3170,7 +3272,7 @@ function ia(e, t) {
|
|
|
3170
3272
|
}), r.length === 0 && me ? me : /*#__PURE__*/ H(B, { children: [
|
|
3171
3273
|
i?.map((e, t) => {
|
|
3172
3274
|
let n = Le + 1 + t, r = Je + 1 + t, i = q.rowIdx === r;
|
|
3173
|
-
return /*#__PURE__*/ V(
|
|
3275
|
+
return /*#__PURE__*/ V(la, {
|
|
3174
3276
|
"aria-rowindex": n,
|
|
3175
3277
|
rowIdx: r,
|
|
3176
3278
|
gridRowStart: n,
|
|
@@ -3187,7 +3289,7 @@ function ia(e, t) {
|
|
|
3187
3289
|
on(),
|
|
3188
3290
|
a?.map((e, t) => {
|
|
3189
3291
|
let n = Ke + r.length + t + 1, i = r.length + t, o = q.rowIdx === i, s = it > mt ? Pe - M * (a.length - t) : void 0, c = s === void 0 ? M * (a.length - 1 - t) : void 0;
|
|
3190
|
-
return /*#__PURE__*/ V(
|
|
3292
|
+
return /*#__PURE__*/ V(la, {
|
|
3191
3293
|
"aria-rowindex": lt - We + t + 1,
|
|
3192
3294
|
rowIdx: i,
|
|
3193
3295
|
gridRowStart: n,
|
|
@@ -3205,14 +3307,14 @@ function ia(e, t) {
|
|
|
3205
3307
|
})
|
|
3206
3308
|
}),
|
|
3207
3309
|
nn(),
|
|
3208
|
-
|
|
3310
|
+
hr(yt),
|
|
3209
3311
|
tt && /*#__PURE__*/ V("div", {
|
|
3210
3312
|
ref: $e,
|
|
3211
3313
|
tabIndex: cn ? 0 : -1,
|
|
3212
|
-
className:
|
|
3314
|
+
className: or(ea, cn && [Ai, W !== -1 && Mi], !Kt(q.rowIdx) && ta),
|
|
3213
3315
|
style: { gridRowStart: q.rowIdx + Ke + 1 }
|
|
3214
3316
|
}),
|
|
3215
|
-
ke !== null && /*#__PURE__*/ V(
|
|
3317
|
+
ke !== null && /*#__PURE__*/ V(qi, {
|
|
3216
3318
|
scrollToPosition: ke,
|
|
3217
3319
|
setScrollToCellPosition: Ae,
|
|
3218
3320
|
gridElement: Me.current
|
|
@@ -3220,29 +3322,29 @@ function ia(e, t) {
|
|
|
3220
3322
|
]
|
|
3221
3323
|
});
|
|
3222
3324
|
}
|
|
3223
|
-
function
|
|
3325
|
+
function da(e) {
|
|
3224
3326
|
return e.querySelector(":scope > [role=\"row\"] > [tabindex=\"0\"]");
|
|
3225
3327
|
}
|
|
3226
|
-
function
|
|
3328
|
+
function fa(e, t) {
|
|
3227
3329
|
return e.idx === t.idx && e.rowIdx === t.rowIdx;
|
|
3228
3330
|
}
|
|
3229
|
-
var
|
|
3331
|
+
var pa = /*#__PURE__*/ N(ua), ma = { root: "_root_k4sin_2" }, ha = {
|
|
3230
3332
|
list: "_list_1rpm1_1",
|
|
3231
3333
|
root: "_root_1rpm1_6",
|
|
3232
3334
|
header: "_header_1rpm1_41",
|
|
3233
3335
|
selectedText: "_selectedText_1rpm1_61",
|
|
3234
3336
|
footer: "_footer_1rpm1_67"
|
|
3235
|
-
},
|
|
3337
|
+
}, ga = (e) => {
|
|
3236
3338
|
let { children: t, theme: n, selectedRowCount: a = 0, selectionActions: o, selectedText: s = (e) => `${e} selected`, clearText: c = "Clear", onClearSelection: l, footer: u, ...d } = e;
|
|
3237
3339
|
return /* @__PURE__ */ H(b, {
|
|
3238
3340
|
radius: "var(--mantine-grid-border-radius)",
|
|
3239
|
-
classNames: { root:
|
|
3341
|
+
classNames: { root: ha.root },
|
|
3240
3342
|
...d,
|
|
3241
3343
|
children: [
|
|
3242
3344
|
a ? /* @__PURE__ */ H(r, {
|
|
3243
|
-
className:
|
|
3345
|
+
className: ha.header,
|
|
3244
3346
|
children: [/* @__PURE__ */ V(O, {
|
|
3245
|
-
className:
|
|
3347
|
+
className: ha.selectedText,
|
|
3246
3348
|
children: s(a)
|
|
3247
3349
|
}), /* @__PURE__ */ H(p, {
|
|
3248
3350
|
gap: "xs",
|
|
@@ -3255,33 +3357,33 @@ var sa = /*#__PURE__*/ N(ia), ca = { root: "_root_k4sin_2" }, la = {
|
|
|
3255
3357
|
})]
|
|
3256
3358
|
}) : null,
|
|
3257
3359
|
/* @__PURE__ */ V(r, {
|
|
3258
|
-
className:
|
|
3360
|
+
className: ha.list,
|
|
3259
3361
|
children: t
|
|
3260
3362
|
}),
|
|
3261
3363
|
/* @__PURE__ */ V(r, {
|
|
3262
|
-
className:
|
|
3364
|
+
className: ha.footer,
|
|
3263
3365
|
children: u
|
|
3264
3366
|
})
|
|
3265
3367
|
]
|
|
3266
3368
|
});
|
|
3267
|
-
},
|
|
3369
|
+
}, _a = {
|
|
3268
3370
|
root: "_root_6ifly_2",
|
|
3269
3371
|
text: "_text_6ifly_12"
|
|
3270
|
-
},
|
|
3372
|
+
}, va = (e) => {
|
|
3271
3373
|
let { icon: t = /* @__PURE__ */ V(Me, { size: 24 }), text: n = "Nothing to show" } = e;
|
|
3272
3374
|
return /* @__PURE__ */ H(r, {
|
|
3273
|
-
className:
|
|
3375
|
+
className: _a.root,
|
|
3274
3376
|
children: [/* @__PURE__ */ V(oe, {
|
|
3275
3377
|
variant: "light",
|
|
3276
3378
|
size: 48,
|
|
3277
3379
|
radius: "50%",
|
|
3278
3380
|
children: t
|
|
3279
3381
|
}), /* @__PURE__ */ V(r, {
|
|
3280
|
-
className:
|
|
3382
|
+
className: _a.text,
|
|
3281
3383
|
children: n
|
|
3282
3384
|
})]
|
|
3283
3385
|
});
|
|
3284
|
-
},
|
|
3386
|
+
}, ya = ({ onChange: e, ...t }) => {
|
|
3285
3387
|
if (!e) return;
|
|
3286
3388
|
let n = (t) => {
|
|
3287
3389
|
e(t.target.checked, t.nativeEvent.shiftKey);
|
|
@@ -3292,9 +3394,9 @@ var sa = /*#__PURE__*/ N(ia), ca = { root: "_root_k4sin_2" }, la = {
|
|
|
3292
3394
|
radius: "sm",
|
|
3293
3395
|
onChange: n
|
|
3294
3396
|
});
|
|
3295
|
-
},
|
|
3397
|
+
}, ba = /* @__PURE__ */ function(e) {
|
|
3296
3398
|
return e[e.small = 20] = "small", e[e.standard = 36] = "standard", e[e.big = 45] = "big", e;
|
|
3297
|
-
}({}),
|
|
3399
|
+
}({}), xa = (e) => {
|
|
3298
3400
|
let { components: t, columns: n, withSorting: r, withColumnResizing: i, withRowSelection: a, rowHeight: o, headerRowHeight: s, rows: c, rowKeyGetter: l, onRowClick: u, sortColumns: d, onSort: f, setSortColumns: p, selectedRows: m, onSelectedRowsChange: h } = e, g = (e) => {
|
|
3299
3401
|
let t = (t) => e.render({
|
|
3300
3402
|
row: t.row,
|
|
@@ -3335,8 +3437,8 @@ var sa = /*#__PURE__*/ N(ia), ca = { root: "_root_k4sin_2" }, la = {
|
|
|
3335
3437
|
selectedRows: m,
|
|
3336
3438
|
renderers: { renderCheckbox: t ? (e) => t.DGSelectComponent(e) : void 0 }
|
|
3337
3439
|
};
|
|
3338
|
-
return a && (v.columns = [
|
|
3339
|
-
},
|
|
3440
|
+
return a && (v.columns = [Qr, ...v.columns]), v;
|
|
3441
|
+
}, Sa = (e, t) => {
|
|
3340
3442
|
switch (typeof e) {
|
|
3341
3443
|
case "number": return (e, n) => e[t] - n[t];
|
|
3342
3444
|
case "string":
|
|
@@ -3351,8 +3453,8 @@ var sa = /*#__PURE__*/ N(ia), ca = { root: "_root_k4sin_2" }, la = {
|
|
|
3351
3453
|
};
|
|
3352
3454
|
//#endregion
|
|
3353
3455
|
//#region src/molecules/data-grid/hm/use-data-gri-parser.hook.ts
|
|
3354
|
-
function
|
|
3355
|
-
let [t, n] = R([]), r = I(() =>
|
|
3456
|
+
function Ca(e) {
|
|
3457
|
+
let [t, n] = R([]), r = I(() => xa({
|
|
3356
3458
|
...e,
|
|
3357
3459
|
setSortColumns: n,
|
|
3358
3460
|
sortColumns: t
|
|
@@ -3364,7 +3466,7 @@ function _a(e) {
|
|
|
3364
3466
|
]);
|
|
3365
3467
|
return r.rows = I(() => t.length === 0 ? r.rows : [...r.rows].sort((e, n) => {
|
|
3366
3468
|
for (let r of t) {
|
|
3367
|
-
let { columnKey: t } = r, i = e[t], a =
|
|
3469
|
+
let { columnKey: t } = r, i = e[t], a = Sa(i, r.columnKey)(e, n);
|
|
3368
3470
|
if (a !== 0) return r.direction === "ASC" ? a : -a;
|
|
3369
3471
|
}
|
|
3370
3472
|
return 0;
|
|
@@ -3376,7 +3478,7 @@ function _a(e) {
|
|
|
3376
3478
|
}
|
|
3377
3479
|
//#endregion
|
|
3378
3480
|
//#region src/molecules/data-grid/hm/render-row.tsx
|
|
3379
|
-
var
|
|
3481
|
+
var wa = {
|
|
3380
3482
|
text: (e) => /* @__PURE__ */ V(B, { children: String(e) }),
|
|
3381
3483
|
checkbox: (e) => /* @__PURE__ */ V(s, {
|
|
3382
3484
|
radius: "sm",
|
|
@@ -3387,14 +3489,14 @@ var va = {
|
|
|
3387
3489
|
};
|
|
3388
3490
|
//#endregion
|
|
3389
3491
|
//#region src/molecules/data-grid/hm/use-render-row.hook.tsx
|
|
3390
|
-
function
|
|
3492
|
+
function Ta(e) {
|
|
3391
3493
|
return I(() => {
|
|
3392
3494
|
let { columns: t, rows: n } = e, r = n ? n[0] : void 0;
|
|
3393
3495
|
if (!r) return e;
|
|
3394
3496
|
let i = n.map((e) => Tt(e)), a = (e, t, n) => ({
|
|
3395
3497
|
...t,
|
|
3396
3498
|
render: (t) => {
|
|
3397
|
-
let r = n, i = t.row[r], a =
|
|
3499
|
+
let r = n, i = t.row[r], a = wa[e];
|
|
3398
3500
|
return a(i);
|
|
3399
3501
|
}
|
|
3400
3502
|
}), o = t.map((e) => {
|
|
@@ -3422,8 +3524,8 @@ function ya(e) {
|
|
|
3422
3524
|
}
|
|
3423
3525
|
//#endregion
|
|
3424
3526
|
//#region src/molecules/data-grid/hm-data-grid.tsx
|
|
3425
|
-
var
|
|
3426
|
-
let t = de(), { columns: n, components: r = { DGSelectComponent:
|
|
3527
|
+
var Ea = (e) => {
|
|
3528
|
+
let t = de(), { columns: n, components: r = { DGSelectComponent: ya }, onRowsChange: i, rows: a, selectedRows: o, headerRowHeight: s, rowHeight: c = ba.standard, maxRows: l, onRowClick: u, onSelectedRowsChange: d, onSort: f, rowKeyGetter: p = (e) => e.id, withColumnResizing: m = !1, withRowSelection: h = !1, withSorting: g = !1, withFill: _ = !1, footer: v, emptyIcon: y, emptyText: b, withCellOutline: x = !1, selectionActions: S, selectedText: C, clearText: ee } = e, te = j("light"), w = Ca(Ta({
|
|
3427
3529
|
components: r,
|
|
3428
3530
|
columns: n,
|
|
3429
3531
|
rows: a,
|
|
@@ -3439,9 +3541,9 @@ var ba = (e) => {
|
|
|
3439
3541
|
withRowSelection: h,
|
|
3440
3542
|
withSorting: g
|
|
3441
3543
|
}));
|
|
3442
|
-
return /* @__PURE__ */ V(B, { children: /* @__PURE__ */ V(
|
|
3544
|
+
return /* @__PURE__ */ V(B, { children: /* @__PURE__ */ V(ga, {
|
|
3443
3545
|
theme: t,
|
|
3444
|
-
className:
|
|
3546
|
+
className: ma.root,
|
|
3445
3547
|
selectedRowCount: o?.size ?? 0,
|
|
3446
3548
|
selectionActions: S,
|
|
3447
3549
|
selectedText: C,
|
|
@@ -3457,113 +3559,113 @@ var ba = (e) => {
|
|
|
3457
3559
|
"--data-grid-row-height": A(c),
|
|
3458
3560
|
"--data-grid-max-rows": l
|
|
3459
3561
|
},
|
|
3460
|
-
children: /* @__PURE__ */ V(
|
|
3562
|
+
children: /* @__PURE__ */ V(pa, {
|
|
3461
3563
|
...w,
|
|
3462
3564
|
className: te === "dark" ? "rdg-dark" : "rdg-light",
|
|
3463
3565
|
renderers: {
|
|
3464
3566
|
...w.renderers,
|
|
3465
|
-
noRowsFallback: /* @__PURE__ */ V(
|
|
3567
|
+
noRowsFallback: /* @__PURE__ */ V(va, {
|
|
3466
3568
|
icon: y,
|
|
3467
3569
|
text: b
|
|
3468
3570
|
})
|
|
3469
3571
|
}
|
|
3470
3572
|
})
|
|
3471
3573
|
}) });
|
|
3472
|
-
},
|
|
3574
|
+
}, Da = { root: "_root_1nvb8_2" }, Oa = (e) => {
|
|
3473
3575
|
let { label: t, icon: n, ...i } = e;
|
|
3474
3576
|
return /* @__PURE__ */ H(r, {
|
|
3475
|
-
className:
|
|
3577
|
+
className: Da.root,
|
|
3476
3578
|
...i,
|
|
3477
3579
|
children: [n, t]
|
|
3478
3580
|
});
|
|
3479
|
-
},
|
|
3581
|
+
}, ka = {
|
|
3480
3582
|
root: "_root_1ux1t_2",
|
|
3481
3583
|
track: "_track_1ux1t_9",
|
|
3482
3584
|
bar: "_bar_1ux1t_20",
|
|
3483
3585
|
value: "_value_1ux1t_27"
|
|
3484
|
-
},
|
|
3586
|
+
}, Aa = (e) => {
|
|
3485
3587
|
let { value: t, color: n, ...i } = e, a = Math.min(Math.max(t, 0), 100);
|
|
3486
3588
|
return /* @__PURE__ */ H(r, {
|
|
3487
|
-
className:
|
|
3589
|
+
className: ka.root,
|
|
3488
3590
|
style: { "--progress-color": `var(--mantine-color-${n}-6)` },
|
|
3489
3591
|
...i,
|
|
3490
3592
|
children: [/* @__PURE__ */ V(r, {
|
|
3491
3593
|
component: "span",
|
|
3492
|
-
className:
|
|
3594
|
+
className: ka.track,
|
|
3493
3595
|
children: /* @__PURE__ */ V(r, {
|
|
3494
3596
|
component: "span",
|
|
3495
|
-
className:
|
|
3597
|
+
className: ka.bar,
|
|
3496
3598
|
style: { width: `${a}%` }
|
|
3497
3599
|
})
|
|
3498
3600
|
}), /* @__PURE__ */ H(r, {
|
|
3499
3601
|
component: "span",
|
|
3500
|
-
className:
|
|
3602
|
+
className: ka.value,
|
|
3501
3603
|
children: [t.toFixed(1), "%"]
|
|
3502
3604
|
})]
|
|
3503
3605
|
});
|
|
3504
|
-
},
|
|
3606
|
+
}, ja = {
|
|
3505
3607
|
root: "_root_a970n_2",
|
|
3506
3608
|
dot: "_dot_a970n_11"
|
|
3507
|
-
},
|
|
3609
|
+
}, Ma = (e) => {
|
|
3508
3610
|
let { label: t, color: n, ...i } = e;
|
|
3509
3611
|
return /* @__PURE__ */ H(r, {
|
|
3510
|
-
className:
|
|
3612
|
+
className: ja.root,
|
|
3511
3613
|
style: { "--status-color": `var(--mantine-color-${n}-6)` },
|
|
3512
3614
|
...i,
|
|
3513
3615
|
children: [/* @__PURE__ */ V(r, {
|
|
3514
3616
|
component: "span",
|
|
3515
|
-
className:
|
|
3617
|
+
className: ja.dot
|
|
3516
3618
|
}), t]
|
|
3517
3619
|
});
|
|
3518
|
-
},
|
|
3620
|
+
}, Na = { root: "_root_1spj2_2" };
|
|
3519
3621
|
//#endregion
|
|
3520
3622
|
//#region src/molecules/data-grid/hm/time-ago-cell.tsx
|
|
3521
3623
|
J.extend(st);
|
|
3522
|
-
var
|
|
3624
|
+
var Pa = (e) => {
|
|
3523
3625
|
let { date: t, ...n } = e;
|
|
3524
3626
|
return /* @__PURE__ */ V(ce, {
|
|
3525
3627
|
label: J(t).format("YYYY-MM-DD | HH:mm"),
|
|
3526
3628
|
withArrow: !0,
|
|
3527
3629
|
children: /* @__PURE__ */ V(r, {
|
|
3528
3630
|
component: "span",
|
|
3529
|
-
className:
|
|
3631
|
+
className: Na.root,
|
|
3530
3632
|
...n,
|
|
3531
3633
|
children: J(t).fromNow()
|
|
3532
3634
|
})
|
|
3533
3635
|
});
|
|
3534
|
-
},
|
|
3636
|
+
}, Fa = {
|
|
3535
3637
|
root: "_root_1tvl9_2",
|
|
3536
3638
|
leftIcon: "_leftIcon_1tvl9_9",
|
|
3537
3639
|
leftImage: "_leftImage_1tvl9_10",
|
|
3538
3640
|
text: "_text_1tvl9_25",
|
|
3539
3641
|
title: "_title_1tvl9_30",
|
|
3540
3642
|
subtitle: "_subtitle_1tvl9_35"
|
|
3541
|
-
},
|
|
3643
|
+
}, Ia = (e) => {
|
|
3542
3644
|
let { title: t, subtitle: n, leftIcon: i, leftImage: a, ...o } = e;
|
|
3543
3645
|
return /* @__PURE__ */ H(r, {
|
|
3544
|
-
className:
|
|
3646
|
+
className: Fa.root,
|
|
3545
3647
|
...o,
|
|
3546
3648
|
children: [i ? /* @__PURE__ */ V(r, {
|
|
3547
|
-
className:
|
|
3649
|
+
className: Fa.leftIcon,
|
|
3548
3650
|
children: i
|
|
3549
3651
|
}) : a ? /* @__PURE__ */ V(h, {
|
|
3550
3652
|
src: a,
|
|
3551
3653
|
alt: t,
|
|
3552
|
-
className:
|
|
3654
|
+
className: Fa.leftImage
|
|
3553
3655
|
}) : null, /* @__PURE__ */ H(r, {
|
|
3554
|
-
className:
|
|
3656
|
+
className: Fa.text,
|
|
3555
3657
|
children: [/* @__PURE__ */ V(O, {
|
|
3556
|
-
className:
|
|
3658
|
+
className: Fa.title,
|
|
3557
3659
|
truncate: !0,
|
|
3558
3660
|
children: t
|
|
3559
3661
|
}), n && /* @__PURE__ */ V(O, {
|
|
3560
|
-
className:
|
|
3662
|
+
className: Fa.subtitle,
|
|
3561
3663
|
truncate: !0,
|
|
3562
3664
|
children: n
|
|
3563
3665
|
})]
|
|
3564
3666
|
})]
|
|
3565
3667
|
});
|
|
3566
|
-
},
|
|
3668
|
+
}, La = {
|
|
3567
3669
|
root: "_root_12tc0_1",
|
|
3568
3670
|
inner: "_inner_12tc0_24",
|
|
3569
3671
|
rightSection: "_rightSection_12tc0_36",
|
|
@@ -3572,35 +3674,35 @@ var Oa = (e) => {
|
|
|
3572
3674
|
leftIcon: "_leftIcon_12tc0_58",
|
|
3573
3675
|
leftImageRoot: "_leftImageRoot_12tc0_74",
|
|
3574
3676
|
leftImage: "_leftImage_12tc0_74"
|
|
3575
|
-
},
|
|
3677
|
+
}, Ra = (t) => {
|
|
3576
3678
|
let { flowName: n, subtitle: i, lastUpdated: o, leftIcon: s, leftImage: c, withRightSection: l = !0, onClick: u, onDelete: d, ...f } = t, p = o ? J(o).format("YYYY-MM-DD | HH:mm") : "";
|
|
3577
3679
|
return /* @__PURE__ */ V(a, {
|
|
3578
3680
|
padding: 0,
|
|
3579
|
-
className:
|
|
3681
|
+
className: La.root,
|
|
3580
3682
|
...f,
|
|
3581
3683
|
children: /* @__PURE__ */ H(r, {
|
|
3582
|
-
className:
|
|
3684
|
+
className: La.inner,
|
|
3583
3685
|
children: [/* @__PURE__ */ V(a.Section, {
|
|
3584
3686
|
onClick: u,
|
|
3585
3687
|
children: /* @__PURE__ */ H(r, {
|
|
3586
|
-
className:
|
|
3688
|
+
className: La.rightSection,
|
|
3587
3689
|
children: [s ? /* @__PURE__ */ V(r, {
|
|
3588
|
-
className:
|
|
3690
|
+
className: La.leftIcon,
|
|
3589
3691
|
children: s
|
|
3590
3692
|
}) : c ? /* @__PURE__ */ V(r, {
|
|
3591
|
-
className:
|
|
3693
|
+
className: La.leftImageRoot,
|
|
3592
3694
|
children: /* @__PURE__ */ V(h, {
|
|
3593
3695
|
src: c,
|
|
3594
3696
|
alt: c
|
|
3595
3697
|
})
|
|
3596
3698
|
}) : null, /* @__PURE__ */ H(r, { children: [/* @__PURE__ */ V(r, {
|
|
3597
|
-
className:
|
|
3699
|
+
className: La.flowName,
|
|
3598
3700
|
children: n
|
|
3599
3701
|
}), i ? /* @__PURE__ */ V(r, {
|
|
3600
|
-
className:
|
|
3702
|
+
className: La.subtitle,
|
|
3601
3703
|
children: i
|
|
3602
3704
|
}) : /* @__PURE__ */ H(r, {
|
|
3603
|
-
className:
|
|
3705
|
+
className: La.subtitle,
|
|
3604
3706
|
children: [
|
|
3605
3707
|
/* @__PURE__ */ V(je, {}),
|
|
3606
3708
|
" ",
|
|
@@ -3618,15 +3720,15 @@ var Oa = (e) => {
|
|
|
3618
3720
|
}) })]
|
|
3619
3721
|
})
|
|
3620
3722
|
});
|
|
3621
|
-
},
|
|
3723
|
+
}, za = {
|
|
3622
3724
|
root: "_root_uhf5c_1",
|
|
3623
3725
|
navbar: "_navbar_uhf5c_10",
|
|
3624
3726
|
bottomMenu: "_bottomMenu_uhf5c_31",
|
|
3625
3727
|
logo: "_logo_uhf5c_35",
|
|
3626
3728
|
link: "_link_uhf5c_41"
|
|
3627
|
-
},
|
|
3729
|
+
}, Ba = (e) => {
|
|
3628
3730
|
let { label: t, onClick: n, color: r, to: i, children: a } = e, [o, s] = R(!1);
|
|
3629
|
-
return /* @__PURE__ */ V(
|
|
3731
|
+
return /* @__PURE__ */ V(qn, {
|
|
3630
3732
|
to: i,
|
|
3631
3733
|
handleIsActive: (e) => {
|
|
3632
3734
|
s(e);
|
|
@@ -3640,23 +3742,23 @@ var Oa = (e) => {
|
|
|
3640
3742
|
variant: "subtle",
|
|
3641
3743
|
onClick: n,
|
|
3642
3744
|
mod: [{ active: o }],
|
|
3643
|
-
className:
|
|
3745
|
+
className: za.link,
|
|
3644
3746
|
children: a
|
|
3645
3747
|
})
|
|
3646
3748
|
})
|
|
3647
3749
|
});
|
|
3648
|
-
},
|
|
3750
|
+
}, Va = (e) => {
|
|
3649
3751
|
let { modules: t, ...n } = e, i = P((e) => e.filter((e) => e.isIndex)[0], [t]), a = P((e) => e.filter((e) => !e.isBottom), [t]), s = P((e) => e.filter((e) => e.isBottom).sort((e, t) => e.label.localeCompare(t.label)), [t]);
|
|
3650
3752
|
return i(t), /* @__PURE__ */ V(r, {
|
|
3651
|
-
className:
|
|
3753
|
+
className: za.root,
|
|
3652
3754
|
component: "nav",
|
|
3653
3755
|
...n,
|
|
3654
3756
|
children: /* @__PURE__ */ H(r, {
|
|
3655
|
-
className:
|
|
3757
|
+
className: za.navbar,
|
|
3656
3758
|
children: [
|
|
3657
3759
|
/* @__PURE__ */ V(o, { children: /* @__PURE__ */ V(p, {
|
|
3658
|
-
className:
|
|
3659
|
-
children: /* @__PURE__ */ V(
|
|
3760
|
+
className: za.logo,
|
|
3761
|
+
children: /* @__PURE__ */ V(Wn, {})
|
|
3660
3762
|
}) }),
|
|
3661
3763
|
/* @__PURE__ */ V(p, {
|
|
3662
3764
|
grow: !0,
|
|
@@ -3665,7 +3767,7 @@ var Oa = (e) => {
|
|
|
3665
3767
|
children: /* @__PURE__ */ V(T, {
|
|
3666
3768
|
justify: "center",
|
|
3667
3769
|
gap: "sm",
|
|
3668
|
-
children: a(t).map((e) => /* @__PURE__ */ V(
|
|
3770
|
+
children: a(t).map((e) => /* @__PURE__ */ V(Ba, {
|
|
3669
3771
|
to: e.to ?? "",
|
|
3670
3772
|
color: e.color,
|
|
3671
3773
|
label: e.label,
|
|
@@ -3676,12 +3778,12 @@ var Oa = (e) => {
|
|
|
3676
3778
|
/* @__PURE__ */ V(p, {
|
|
3677
3779
|
grow: !0,
|
|
3678
3780
|
component: "section",
|
|
3679
|
-
className:
|
|
3781
|
+
className: za.bottomMenu,
|
|
3680
3782
|
children: /* @__PURE__ */ V(T, {
|
|
3681
3783
|
justify: "flex-end",
|
|
3682
3784
|
align: "stretch",
|
|
3683
3785
|
gap: "sm",
|
|
3684
|
-
children: s(t).map((e) => /* @__PURE__ */ V(
|
|
3786
|
+
children: s(t).map((e) => /* @__PURE__ */ V(Ba, {
|
|
3685
3787
|
to: e.to ?? "",
|
|
3686
3788
|
color: e.color,
|
|
3687
3789
|
label: e.label,
|
|
@@ -3692,13 +3794,13 @@ var Oa = (e) => {
|
|
|
3692
3794
|
]
|
|
3693
3795
|
})
|
|
3694
3796
|
});
|
|
3695
|
-
},
|
|
3797
|
+
}, Ha = {
|
|
3696
3798
|
bottombar: "_bottombar_13qxs_1",
|
|
3697
3799
|
list: "_list_13qxs_23",
|
|
3698
3800
|
link: "_link_13qxs_57"
|
|
3699
|
-
},
|
|
3801
|
+
}, Ua = (e) => {
|
|
3700
3802
|
let { icon: t, label: n, onClick: r, color: i, to: a } = e, [o, s] = R(!1);
|
|
3701
|
-
return /* @__PURE__ */ V(
|
|
3803
|
+
return /* @__PURE__ */ V(qn, {
|
|
3702
3804
|
to: a,
|
|
3703
3805
|
handleIsActive: (e) => {
|
|
3704
3806
|
s(e);
|
|
@@ -3711,27 +3813,27 @@ var Oa = (e) => {
|
|
|
3711
3813
|
children: /* @__PURE__ */ V(le, {
|
|
3712
3814
|
onClick: r,
|
|
3713
3815
|
mod: [{ active: o }],
|
|
3714
|
-
className:
|
|
3816
|
+
className: Ha.link,
|
|
3715
3817
|
children: /* @__PURE__ */ V(t, { stroke: 1.5 })
|
|
3716
3818
|
})
|
|
3717
3819
|
})
|
|
3718
3820
|
});
|
|
3719
|
-
},
|
|
3720
|
-
|
|
3721
|
-
var
|
|
3821
|
+
}, Wa = document.createElement("div"), Ga = "#hm-overlay-bottom";
|
|
3822
|
+
Wa.id = Ga;
|
|
3823
|
+
var Ka = (e) => {
|
|
3722
3824
|
let { modules: t, visible: n } = e;
|
|
3723
|
-
F(() => (n && document.body.appendChild(
|
|
3825
|
+
F(() => (n && document.body.appendChild(Wa), () => document.getElementById(Ga)?.remove()), [n]);
|
|
3724
3826
|
let i = P((e) => e.filter((e) => !e.isBottom), [t]), a = P((e) => e.filter((e) => e.isBottom).sort((e, t) => e.label.localeCompare(t.label)), [t]);
|
|
3725
3827
|
return /* @__PURE__ */ V(S, {
|
|
3726
|
-
target:
|
|
3828
|
+
target: Wa,
|
|
3727
3829
|
children: /* @__PURE__ */ V(r, {
|
|
3728
3830
|
component: "nav",
|
|
3729
|
-
className:
|
|
3831
|
+
className: Ha.bottombar,
|
|
3730
3832
|
children: /* @__PURE__ */ V(p, {
|
|
3731
3833
|
grow: !0,
|
|
3732
3834
|
component: "section",
|
|
3733
|
-
className:
|
|
3734
|
-
children: [...i(t), ...a(t)].map((e) => /* @__PURE__ */ V(
|
|
3835
|
+
className: Ha.list,
|
|
3836
|
+
children: [...i(t), ...a(t)].map((e) => /* @__PURE__ */ V(Ua, {
|
|
3735
3837
|
to: e.to ?? "",
|
|
3736
3838
|
color: e.color,
|
|
3737
3839
|
label: e.label,
|
|
@@ -3740,40 +3842,40 @@ var Ba = (e) => {
|
|
|
3740
3842
|
})
|
|
3741
3843
|
})
|
|
3742
3844
|
});
|
|
3743
|
-
},
|
|
3845
|
+
}, qa = {
|
|
3744
3846
|
header: "_header_sy4ce_2",
|
|
3745
3847
|
featureBar: "_featureBar_sy4ce_24",
|
|
3746
3848
|
title: "_title_sy4ce_44",
|
|
3747
3849
|
titleLink: "_titleLink_sy4ce_52",
|
|
3748
3850
|
searchBar: "_searchBar_sy4ce_64"
|
|
3749
|
-
},
|
|
3750
|
-
|
|
3751
|
-
var
|
|
3851
|
+
}, Ja = document.createElement("div"), Ya = "#hm-overlay-header";
|
|
3852
|
+
Ja.id = Ya;
|
|
3853
|
+
var Xa = (e) => {
|
|
3752
3854
|
let { moduleName: t, modulePath: i, imageSrc: a, offset: o = 0 } = e, s = et();
|
|
3753
|
-
F(() => (document.body.appendChild(
|
|
3855
|
+
F(() => (document.body.appendChild(Ja), () => document.getElementById(Ya)?.remove()), []);
|
|
3754
3856
|
let c = !!i && s.pathname !== i && s.pathname.startsWith(i?.endsWith("/") ? i : `${i}/`);
|
|
3755
3857
|
return /* @__PURE__ */ V(S, {
|
|
3756
|
-
target:
|
|
3858
|
+
target: Ja,
|
|
3757
3859
|
children: /* @__PURE__ */ H(r, {
|
|
3758
3860
|
component: "header",
|
|
3759
|
-
className:
|
|
3861
|
+
className: qa.header,
|
|
3760
3862
|
children: [/* @__PURE__ */ V(se, {
|
|
3761
3863
|
size: "h1",
|
|
3762
3864
|
mod: { link: c },
|
|
3763
|
-
className:
|
|
3865
|
+
className: qa.title,
|
|
3764
3866
|
children: c && i ? /* @__PURE__ */ V(Qe, {
|
|
3765
3867
|
to: i,
|
|
3766
|
-
className:
|
|
3868
|
+
className: qa.titleLink,
|
|
3767
3869
|
children: t
|
|
3768
3870
|
}) : t
|
|
3769
3871
|
}), /* @__PURE__ */ H(r, {
|
|
3770
|
-
className:
|
|
3872
|
+
className: qa.featureBar,
|
|
3771
3873
|
children: [
|
|
3772
|
-
/* @__PURE__ */ V(
|
|
3773
|
-
className:
|
|
3874
|
+
/* @__PURE__ */ V(Jn, {
|
|
3875
|
+
className: qa.searchBar,
|
|
3774
3876
|
onClick: () => ct.open()
|
|
3775
3877
|
}),
|
|
3776
|
-
/* @__PURE__ */ V(
|
|
3878
|
+
/* @__PURE__ */ V(Yn, {}),
|
|
3777
3879
|
/* @__PURE__ */ V(n, {
|
|
3778
3880
|
radius: "xl",
|
|
3779
3881
|
mx: "xs",
|
|
@@ -3784,10 +3886,10 @@ var Wa = (e) => {
|
|
|
3784
3886
|
})]
|
|
3785
3887
|
})
|
|
3786
3888
|
});
|
|
3787
|
-
},
|
|
3889
|
+
}, Za = {
|
|
3788
3890
|
mainParent: "_mainParent_tqzon_1",
|
|
3789
3891
|
main: "_main_tqzon_1"
|
|
3790
|
-
},
|
|
3892
|
+
}, Qa = (e) => {
|
|
3791
3893
|
let { modules: t, imageSrc: n, offset: i, withHeader: a = !0, headerMatches: o, ...s } = e, c = et(), [l, u] = R(""), [d, p] = R(), m = at(`(min-width: ${de().breakpoints.sm})`);
|
|
3792
3894
|
return F(() => {
|
|
3793
3895
|
let e = o?.find(({ matchPath: e }) => c.pathname.startsWith(e));
|
|
@@ -3803,7 +3905,7 @@ var Wa = (e) => {
|
|
|
3803
3905
|
]), /* @__PURE__ */ V(r, {
|
|
3804
3906
|
...s,
|
|
3805
3907
|
children: /* @__PURE__ */ H(f, { children: [
|
|
3806
|
-
a && /* @__PURE__ */ V(f.Col, { children: /* @__PURE__ */ V(
|
|
3908
|
+
a && /* @__PURE__ */ V(f.Col, { children: /* @__PURE__ */ V(Xa, {
|
|
3807
3909
|
moduleName: l,
|
|
3808
3910
|
modulePath: d,
|
|
3809
3911
|
imageSrc: n,
|
|
@@ -3811,7 +3913,7 @@ var Wa = (e) => {
|
|
|
3811
3913
|
}) }),
|
|
3812
3914
|
/* @__PURE__ */ V(f.Col, {
|
|
3813
3915
|
span: "content",
|
|
3814
|
-
children: m ? /* @__PURE__ */ V(
|
|
3916
|
+
children: m ? /* @__PURE__ */ V(Va, { modules: t }) : /* @__PURE__ */ V(Ka, {
|
|
3815
3917
|
modules: t,
|
|
3816
3918
|
visible: !0
|
|
3817
3919
|
})
|
|
@@ -3819,25 +3921,25 @@ var Wa = (e) => {
|
|
|
3819
3921
|
/* @__PURE__ */ V(f.Col, {
|
|
3820
3922
|
span: "auto",
|
|
3821
3923
|
mod: { header: !a },
|
|
3822
|
-
className:
|
|
3924
|
+
className: Za.mainParent,
|
|
3823
3925
|
children: /* @__PURE__ */ V(r, {
|
|
3824
3926
|
component: "main",
|
|
3825
|
-
className:
|
|
3927
|
+
className: Za.main,
|
|
3826
3928
|
children: /* @__PURE__ */ V($e, {})
|
|
3827
3929
|
})
|
|
3828
3930
|
})
|
|
3829
3931
|
] })
|
|
3830
3932
|
});
|
|
3831
|
-
},
|
|
3933
|
+
}, $a = {
|
|
3832
3934
|
root: "_root_yh1ks_1",
|
|
3833
3935
|
header: "_header_yh1ks_8"
|
|
3834
|
-
},
|
|
3936
|
+
}, eo = (e) => {
|
|
3835
3937
|
let { header: t, itemMinWidth: n = 280, children: i, ...a } = e;
|
|
3836
3938
|
return /* @__PURE__ */ H(r, {
|
|
3837
|
-
className:
|
|
3939
|
+
className: $a.root,
|
|
3838
3940
|
...a,
|
|
3839
3941
|
children: [t && /* @__PURE__ */ V(r, {
|
|
3840
|
-
className:
|
|
3942
|
+
className: $a.header,
|
|
3841
3943
|
children: t
|
|
3842
3944
|
}), /* @__PURE__ */ V(ne, {
|
|
3843
3945
|
minColWidth: A(n),
|
|
@@ -3846,15 +3948,15 @@ var Wa = (e) => {
|
|
|
3846
3948
|
children: i
|
|
3847
3949
|
})]
|
|
3848
3950
|
});
|
|
3849
|
-
},
|
|
3951
|
+
}, to = {
|
|
3850
3952
|
root: "_root_1ba37_3",
|
|
3851
3953
|
body: "_body_1ba37_11",
|
|
3852
3954
|
main: "_main_1ba37_23",
|
|
3853
3955
|
aside: "_aside_1ba37_24"
|
|
3854
|
-
},
|
|
3956
|
+
}, no = (e) => {
|
|
3855
3957
|
let { header: t, aside: n, headerItemMinWidth: i = 220, children: a, ...o } = e;
|
|
3856
3958
|
return /* @__PURE__ */ H(r, {
|
|
3857
|
-
className:
|
|
3959
|
+
className: to.root,
|
|
3858
3960
|
...o,
|
|
3859
3961
|
children: [t && /* @__PURE__ */ V(ne, {
|
|
3860
3962
|
minColWidth: A(i),
|
|
@@ -3862,55 +3964,55 @@ var Wa = (e) => {
|
|
|
3862
3964
|
spacing: "md",
|
|
3863
3965
|
children: t
|
|
3864
3966
|
}), /* @__PURE__ */ H(r, {
|
|
3865
|
-
className:
|
|
3967
|
+
className: to.body,
|
|
3866
3968
|
mod: { "with-aside": !!n },
|
|
3867
3969
|
children: [/* @__PURE__ */ V(r, {
|
|
3868
|
-
className:
|
|
3970
|
+
className: to.main,
|
|
3869
3971
|
children: a
|
|
3870
3972
|
}), n && /* @__PURE__ */ V(r, {
|
|
3871
3973
|
component: "aside",
|
|
3872
|
-
className:
|
|
3974
|
+
className: to.aside,
|
|
3873
3975
|
children: n
|
|
3874
3976
|
})]
|
|
3875
3977
|
})]
|
|
3876
3978
|
});
|
|
3877
|
-
},
|
|
3979
|
+
}, ro = {
|
|
3878
3980
|
root: "_root_t2qit_4",
|
|
3879
3981
|
grid: "_grid_t2qit_9",
|
|
3880
3982
|
side: "_side_t2qit_20",
|
|
3881
3983
|
detail: "_detail_t2qit_28"
|
|
3882
|
-
},
|
|
3984
|
+
}, io = (e) => {
|
|
3883
3985
|
let { side: t, sideWidth: n = 320, sidePosition: i = "left", children: a, ...o } = e;
|
|
3884
3986
|
return /* @__PURE__ */ V(r, {
|
|
3885
|
-
className:
|
|
3987
|
+
className: ro.root,
|
|
3886
3988
|
mod: { "side-position": i },
|
|
3887
3989
|
style: { "--split-side-width": A(n) },
|
|
3888
3990
|
...o,
|
|
3889
3991
|
children: /* @__PURE__ */ H(r, {
|
|
3890
|
-
className:
|
|
3992
|
+
className: ro.grid,
|
|
3891
3993
|
children: [/* @__PURE__ */ V(r, {
|
|
3892
|
-
className:
|
|
3994
|
+
className: ro.side,
|
|
3893
3995
|
children: t
|
|
3894
3996
|
}), /* @__PURE__ */ V(r, {
|
|
3895
|
-
className:
|
|
3997
|
+
className: ro.detail,
|
|
3896
3998
|
children: a
|
|
3897
3999
|
})]
|
|
3898
4000
|
})
|
|
3899
4001
|
});
|
|
3900
|
-
},
|
|
4002
|
+
}, ao = me({}), oo = ({ theme: e, children: t }) => /* @__PURE__ */ V(ao.Provider, {
|
|
3901
4003
|
value: e,
|
|
3902
4004
|
children: t
|
|
3903
|
-
}),
|
|
4005
|
+
}), so = { root: "_root_v8d1j_1" }, co = {
|
|
3904
4006
|
root: "_root_yctbq_1",
|
|
3905
4007
|
list: "_list_yctbq_12",
|
|
3906
4008
|
tab: "_tab_yctbq_47"
|
|
3907
|
-
},
|
|
4009
|
+
}, lo = { root: "_root_m2ekt_1" }, uo = {
|
|
3908
4010
|
xs: "36em",
|
|
3909
4011
|
sm: "48em",
|
|
3910
4012
|
md: "62em",
|
|
3911
4013
|
lg: "75em",
|
|
3912
4014
|
xl: "88em"
|
|
3913
|
-
},
|
|
4015
|
+
}, fo = [
|
|
3914
4016
|
"#eeeffe",
|
|
3915
4017
|
"#dee0fd",
|
|
3916
4018
|
"#ced0fc",
|
|
@@ -3930,17 +4032,17 @@ var Wa = (e) => {
|
|
|
3930
4032
|
"#0d0a28",
|
|
3931
4033
|
"#040313",
|
|
3932
4034
|
"#000003"
|
|
3933
|
-
],
|
|
4035
|
+
], po = (e, t, n) => {
|
|
3934
4036
|
let r = (e) => [
|
|
3935
4037
|
1,
|
|
3936
4038
|
3,
|
|
3937
4039
|
5
|
|
3938
4040
|
].map((t) => parseInt(e.slice(t, t + 2), 16)), [i, a] = [r(e), r(t)];
|
|
3939
4041
|
return `#${i.map((e, t) => Math.round(e + (a[t] - e) * n).toString(16).padStart(2, "0")).join("")}`;
|
|
3940
|
-
},
|
|
4042
|
+
}, mo = ue({
|
|
3941
4043
|
fontFamily: "Roboto, sans-serif",
|
|
3942
4044
|
colors: {
|
|
3943
|
-
primary:
|
|
4045
|
+
primary: fo,
|
|
3944
4046
|
secondary: [
|
|
3945
4047
|
"#ffedeb",
|
|
3946
4048
|
"#ffdad7",
|
|
@@ -4056,7 +4158,7 @@ var Wa = (e) => {
|
|
|
4056
4158
|
["#181818", .08],
|
|
4057
4159
|
["#101010", .08],
|
|
4058
4160
|
["#0a0a0a", .07]
|
|
4059
|
-
].map(([e, t]) =>
|
|
4161
|
+
].map(([e, t]) => po(e, fo[9], t)),
|
|
4060
4162
|
gray: [
|
|
4061
4163
|
["#f8f8f8", .03],
|
|
4062
4164
|
["#f1f1f1", .04],
|
|
@@ -4068,9 +4170,9 @@ var Wa = (e) => {
|
|
|
4068
4170
|
["#494949", .12],
|
|
4069
4171
|
["#343434", .12],
|
|
4070
4172
|
["#212121", .12]
|
|
4071
|
-
].map(([e, t]) =>
|
|
4173
|
+
].map(([e, t]) => po(e, fo[9], t))
|
|
4072
4174
|
},
|
|
4073
|
-
breakpoints:
|
|
4175
|
+
breakpoints: uo,
|
|
4074
4176
|
primaryColor: "primary",
|
|
4075
4177
|
primaryShade: 9,
|
|
4076
4178
|
radius: {
|
|
@@ -4090,7 +4192,7 @@ var Wa = (e) => {
|
|
|
4090
4192
|
},
|
|
4091
4193
|
components: {
|
|
4092
4194
|
Button: i.extend({
|
|
4093
|
-
classNames:
|
|
4195
|
+
classNames: lo,
|
|
4094
4196
|
defaultProps: {
|
|
4095
4197
|
variant: "filled",
|
|
4096
4198
|
mod: { color: "primary" },
|
|
@@ -4098,7 +4200,7 @@ var Wa = (e) => {
|
|
|
4098
4200
|
}
|
|
4099
4201
|
}),
|
|
4100
4202
|
ActionIcon: e.extend({
|
|
4101
|
-
classNames:
|
|
4203
|
+
classNames: so,
|
|
4102
4204
|
defaultProps: {
|
|
4103
4205
|
variant: "filled",
|
|
4104
4206
|
mod: { color: "primary" },
|
|
@@ -4106,11 +4208,11 @@ var Wa = (e) => {
|
|
|
4106
4208
|
}
|
|
4107
4209
|
}),
|
|
4108
4210
|
Tabs: D.extend({
|
|
4109
|
-
classNames:
|
|
4211
|
+
classNames: co,
|
|
4110
4212
|
defaultProps: { variant: "pills" }
|
|
4111
4213
|
})
|
|
4112
4214
|
}
|
|
4113
|
-
}),
|
|
4215
|
+
}), ho = (e) => ({
|
|
4114
4216
|
variables: {
|
|
4115
4217
|
"--mantine-header-offset": e.other.headerOffset,
|
|
4116
4218
|
"--mantine-bar-border-radius": `var(--mantine-radius-${e.other.barBorderRadius})`,
|
|
@@ -4120,28 +4222,28 @@ var Wa = (e) => {
|
|
|
4120
4222
|
},
|
|
4121
4223
|
light: {},
|
|
4122
4224
|
dark: {}
|
|
4123
|
-
}),
|
|
4225
|
+
}), go = {
|
|
4124
4226
|
root: "_root_1a5we_1",
|
|
4125
4227
|
input: "_input_1a5we_30"
|
|
4126
|
-
},
|
|
4228
|
+
}, _o = me({}), vo = (e) => {
|
|
4127
4229
|
let { children: t, deps: n } = e;
|
|
4128
|
-
return /* @__PURE__ */ V(
|
|
4230
|
+
return /* @__PURE__ */ V(_o.Provider, {
|
|
4129
4231
|
value: { deps: n },
|
|
4130
4232
|
children: t
|
|
4131
4233
|
});
|
|
4132
|
-
},
|
|
4234
|
+
}, yo = me({}), bo = (e) => {
|
|
4133
4235
|
let { children: t, nodeTypes: n } = e;
|
|
4134
|
-
return /* @__PURE__ */ V(
|
|
4236
|
+
return /* @__PURE__ */ V(yo.Provider, {
|
|
4135
4237
|
value: { nodeTypes: n },
|
|
4136
4238
|
children: t
|
|
4137
4239
|
});
|
|
4138
|
-
},
|
|
4240
|
+
}, xo = (e) => {
|
|
4139
4241
|
let { children: t } = e;
|
|
4140
|
-
return /* @__PURE__ */ V(_t, { children: /* @__PURE__ */ V(
|
|
4242
|
+
return /* @__PURE__ */ V(_t, { children: /* @__PURE__ */ V(bo, {
|
|
4141
4243
|
...e,
|
|
4142
4244
|
children: t
|
|
4143
4245
|
}) });
|
|
4144
|
-
},
|
|
4246
|
+
}, So = (e) => {
|
|
4145
4247
|
let { reactFlowWrapper: t, setDrawerOpened: n, setCurrentTab: r } = e, { screenToFlowPosition: i, toObject: a, setViewport: o } = St(), [s, c] = R(null);
|
|
4146
4248
|
return {
|
|
4147
4249
|
clickedPosition: s,
|
|
@@ -4155,34 +4257,34 @@ var Wa = (e) => {
|
|
|
4155
4257
|
};
|
|
4156
4258
|
}, Q = [];
|
|
4157
4259
|
for (let e = 0; e < 256; ++e) Q.push((e + 256).toString(16).slice(1));
|
|
4158
|
-
function
|
|
4260
|
+
function Co(e, t = 0) {
|
|
4159
4261
|
return (Q[e[t + 0]] + Q[e[t + 1]] + Q[e[t + 2]] + Q[e[t + 3]] + "-" + Q[e[t + 4]] + Q[e[t + 5]] + "-" + Q[e[t + 6]] + Q[e[t + 7]] + "-" + Q[e[t + 8]] + Q[e[t + 9]] + "-" + Q[e[t + 10]] + Q[e[t + 11]] + Q[e[t + 12]] + Q[e[t + 13]] + Q[e[t + 14]] + Q[e[t + 15]]).toLowerCase();
|
|
4160
4262
|
}
|
|
4161
4263
|
//#endregion
|
|
4162
4264
|
//#region node_modules/uuid/dist/rng.js
|
|
4163
|
-
var
|
|
4164
|
-
function
|
|
4165
|
-
return crypto.getRandomValues(
|
|
4265
|
+
var wo = /* @__PURE__ */ new Uint8Array(16);
|
|
4266
|
+
function To() {
|
|
4267
|
+
return crypto.getRandomValues(wo);
|
|
4166
4268
|
}
|
|
4167
4269
|
//#endregion
|
|
4168
4270
|
//#region node_modules/uuid/dist/v4.js
|
|
4169
|
-
function
|
|
4170
|
-
return !t && !e && crypto.randomUUID ? crypto.randomUUID() :
|
|
4271
|
+
function Eo(e, t, n) {
|
|
4272
|
+
return !t && !e && crypto.randomUUID ? crypto.randomUUID() : Do(e, t, n);
|
|
4171
4273
|
}
|
|
4172
|
-
function
|
|
4274
|
+
function Do(e, t, n) {
|
|
4173
4275
|
e ||= {};
|
|
4174
|
-
let r = e.random ?? e.rng?.() ??
|
|
4276
|
+
let r = e.random ?? e.rng?.() ?? To();
|
|
4175
4277
|
if (r.length < 16) throw Error("Random bytes length must be >= 16");
|
|
4176
4278
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
4177
4279
|
if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
|
|
4178
4280
|
for (let e = 0; e < 16; ++e) t[n + e] = r[e];
|
|
4179
4281
|
return t;
|
|
4180
4282
|
}
|
|
4181
|
-
return
|
|
4283
|
+
return Co(r);
|
|
4182
4284
|
}
|
|
4183
4285
|
//#endregion
|
|
4184
4286
|
//#region src/hm-flow/utils.ts
|
|
4185
|
-
var
|
|
4287
|
+
var Oo = (e, t, n, r) => {
|
|
4186
4288
|
let i = r[t] || 0, a = `${e}-${i}`, o = i;
|
|
4187
4289
|
for (; n.some((e) => e.data.label === a);) o++, a = `${e}-${o}`;
|
|
4188
4290
|
let s = {
|
|
@@ -4193,11 +4295,11 @@ var So = (e, t, n, r) => {
|
|
|
4193
4295
|
name: a,
|
|
4194
4296
|
updatedCounters: s
|
|
4195
4297
|
};
|
|
4196
|
-
},
|
|
4298
|
+
}, ko = (e) => {
|
|
4197
4299
|
let { defaultActions: t } = e, n = P((e) => {
|
|
4198
4300
|
let { node: t, deps: n } = e, { nodes: r, stateJoinsNode: i, nodeCounters: a, clickedPosition: o, setDrawerOpened: s, currentNode: c, setEdges: l, setNodeCounters: u, setNodes: d, setStateJoinsNode: f } = n;
|
|
4199
4301
|
if (!t) return;
|
|
4200
|
-
let { name: p, updatedCounters: m } =
|
|
4302
|
+
let { name: p, updatedCounters: m } = Oo(t.data.label, t.id, r, a);
|
|
4201
4303
|
if (c && i) {
|
|
4202
4304
|
if (!c || !c.position) {
|
|
4203
4305
|
console.error("Source node is invalid or missing position.");
|
|
@@ -4207,7 +4309,7 @@ var So = (e, t, n, r) => {
|
|
|
4207
4309
|
x: c.position.x + 150,
|
|
4208
4310
|
y: c.position.y
|
|
4209
4311
|
}, n = {
|
|
4210
|
-
id:
|
|
4312
|
+
id: Eo(),
|
|
4211
4313
|
type: t.type,
|
|
4212
4314
|
position: e,
|
|
4213
4315
|
data: {
|
|
@@ -4220,13 +4322,13 @@ var So = (e, t, n, r) => {
|
|
|
4220
4322
|
}
|
|
4221
4323
|
};
|
|
4222
4324
|
d((e) => [...e, n]), u(m), l((e) => [...e, {
|
|
4223
|
-
id:
|
|
4325
|
+
id: Eo(),
|
|
4224
4326
|
source: c.id,
|
|
4225
4327
|
target: n.id
|
|
4226
4328
|
}]), s(!1), f(!1);
|
|
4227
4329
|
} else if (o) {
|
|
4228
4330
|
let e = {
|
|
4229
|
-
id:
|
|
4331
|
+
id: Eo(),
|
|
4230
4332
|
type: t.type,
|
|
4231
4333
|
position: {
|
|
4232
4334
|
x: o.x,
|
|
@@ -4251,10 +4353,10 @@ var So = (e, t, n, r) => {
|
|
|
4251
4353
|
o((e) => {
|
|
4252
4354
|
let t = e.find((e) => e.id === r);
|
|
4253
4355
|
if (!t) return e;
|
|
4254
|
-
let n = t.data.label, o = t.data.name, { name: s, updatedCounters: c } =
|
|
4356
|
+
let n = t.data.label, o = t.data.name, { name: s, updatedCounters: c } = Oo(n, o, e, i), l = {
|
|
4255
4357
|
x: t.position.x + 70,
|
|
4256
4358
|
y: t.position.y + 70
|
|
4257
|
-
}, u =
|
|
4359
|
+
}, u = Eo(), d = {
|
|
4258
4360
|
...t,
|
|
4259
4361
|
id: u,
|
|
4260
4362
|
position: l,
|
|
@@ -4334,7 +4436,7 @@ var So = (e, t, n, r) => {
|
|
|
4334
4436
|
onUpdateNode: c,
|
|
4335
4437
|
searchNode: l
|
|
4336
4438
|
};
|
|
4337
|
-
},
|
|
4439
|
+
}, Ao = (e) => {
|
|
4338
4440
|
let { onHmflowSave: t, onHmflowRun: n, onHmflowDelete: r, headerActions: i, bottomActions: a, defaultHmFlowMetadata: o = {
|
|
4339
4441
|
name: "default",
|
|
4340
4442
|
description: "",
|
|
@@ -4405,25 +4507,25 @@ var So = (e, t, n, r) => {
|
|
|
4405
4507
|
};
|
|
4406
4508
|
}) : []
|
|
4407
4509
|
};
|
|
4408
|
-
},
|
|
4510
|
+
}, jo = Object.defineProperty, Mo = (e, t, n) => t in e ? jo(e, t, {
|
|
4409
4511
|
enumerable: !0,
|
|
4410
4512
|
configurable: !0,
|
|
4411
4513
|
writable: !0,
|
|
4412
4514
|
value: n
|
|
4413
|
-
}) : e[t] = n,
|
|
4414
|
-
for (var n in t)
|
|
4515
|
+
}) : e[t] = n, No = (e, t) => {
|
|
4516
|
+
for (var n in t) jo(e, n, {
|
|
4415
4517
|
get: t[n],
|
|
4416
4518
|
enumerable: !0
|
|
4417
4519
|
});
|
|
4418
|
-
},
|
|
4419
|
-
|
|
4520
|
+
}, Po = (e, t, n) => Mo(e, typeof t == "symbol" ? t : t + "", n), Fo = {};
|
|
4521
|
+
No(Fo, {
|
|
4420
4522
|
Graph: () => $,
|
|
4421
|
-
alg: () =>
|
|
4422
|
-
json: () =>
|
|
4423
|
-
version: () =>
|
|
4523
|
+
alg: () => Yo,
|
|
4524
|
+
json: () => Wo,
|
|
4525
|
+
version: () => Uo
|
|
4424
4526
|
});
|
|
4425
|
-
var
|
|
4426
|
-
for (var n in t)
|
|
4527
|
+
var Io = Object.defineProperty, Lo = (e, t) => {
|
|
4528
|
+
for (var n in t) Io(e, n, {
|
|
4427
4529
|
get: t[n],
|
|
4428
4530
|
enumerable: !0
|
|
4429
4531
|
});
|
|
@@ -4562,15 +4664,15 @@ var Ao = Object.defineProperty, jo = (e, t) => {
|
|
|
4562
4664
|
setEdge(e, t, n, r) {
|
|
4563
4665
|
let i, a, o, s, c = !1;
|
|
4564
4666
|
typeof e == "object" && e && "v" in e ? (i = e.v, a = e.w, o = e.name, arguments.length === 2 && (s = t, c = !0)) : (i = e, a = t, o = r, arguments.length > 2 && (s = n, c = !0)), i = "" + i, a = "" + a, o !== void 0 && (o = "" + o);
|
|
4565
|
-
let l =
|
|
4667
|
+
let l = Bo(this._isDirected, i, a, o);
|
|
4566
4668
|
if (l in this._edgeLabels) return c && (this._edgeLabels[l] = s), this;
|
|
4567
4669
|
if (o !== void 0 && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
|
|
4568
4670
|
this.setNode(i), this.setNode(a), this._edgeLabels[l] = c ? s : this._defaultEdgeLabelFn(i, a, o);
|
|
4569
|
-
let u =
|
|
4570
|
-
return i = u.v, a = u.w, Object.freeze(u), this._edgeObjs[l] = u,
|
|
4671
|
+
let u = Vo(this._isDirected, i, a, o);
|
|
4672
|
+
return i = u.v, a = u.w, Object.freeze(u), this._edgeObjs[l] = u, Ro(this._preds[a], i), Ro(this._sucs[i], a), this._in[a][l] = u, this._out[i][l] = u, this._edgeCount++, this;
|
|
4571
4673
|
}
|
|
4572
4674
|
edge(e, t, n) {
|
|
4573
|
-
let r = arguments.length === 1 ?
|
|
4675
|
+
let r = arguments.length === 1 ? Ho(this._isDirected, e) : Bo(this._isDirected, e, t, n);
|
|
4574
4676
|
return this._edgeLabels[r];
|
|
4575
4677
|
}
|
|
4576
4678
|
edgeAsObj(e, t, n) {
|
|
@@ -4578,13 +4680,13 @@ var Ao = Object.defineProperty, jo = (e, t) => {
|
|
|
4578
4680
|
return typeof r == "object" ? r : { label: r };
|
|
4579
4681
|
}
|
|
4580
4682
|
hasEdge(e, t, n) {
|
|
4581
|
-
return (arguments.length === 1 ?
|
|
4683
|
+
return (arguments.length === 1 ? Ho(this._isDirected, e) : Bo(this._isDirected, e, t, n)) in this._edgeLabels;
|
|
4582
4684
|
}
|
|
4583
4685
|
removeEdge(e, t, n) {
|
|
4584
|
-
let r = arguments.length === 1 ?
|
|
4686
|
+
let r = arguments.length === 1 ? Ho(this._isDirected, e) : Bo(this._isDirected, e, t, n), i = this._edgeObjs[r];
|
|
4585
4687
|
if (i) {
|
|
4586
4688
|
let e = i.v, t = i.w;
|
|
4587
|
-
delete this._edgeLabels[r], delete this._edgeObjs[r],
|
|
4689
|
+
delete this._edgeLabels[r], delete this._edgeObjs[r], zo(this._preds[t], e), zo(this._sucs[e], t), delete this._in[t][r], delete this._out[e][r], this._edgeCount--;
|
|
4588
4690
|
}
|
|
4589
4691
|
return this;
|
|
4590
4692
|
}
|
|
@@ -4609,13 +4711,13 @@ var Ao = Object.defineProperty, jo = (e, t) => {
|
|
|
4609
4711
|
return n ? r.filter((e) => e.v === t && e.w === n || e.v === n && e.w === t) : r;
|
|
4610
4712
|
}
|
|
4611
4713
|
};
|
|
4612
|
-
function
|
|
4714
|
+
function Ro(e, t) {
|
|
4613
4715
|
e[t] ? e[t]++ : e[t] = 1;
|
|
4614
4716
|
}
|
|
4615
|
-
function
|
|
4717
|
+
function zo(e, t) {
|
|
4616
4718
|
e[t] !== void 0 && !--e[t] && delete e[t];
|
|
4617
4719
|
}
|
|
4618
|
-
function
|
|
4720
|
+
function Bo(e, t, n, r) {
|
|
4619
4721
|
let i = "" + t, a = "" + n;
|
|
4620
4722
|
if (!e && i > a) {
|
|
4621
4723
|
let e = i;
|
|
@@ -4623,7 +4725,7 @@ function Po(e, t, n, r) {
|
|
|
4623
4725
|
}
|
|
4624
4726
|
return i + "" + a + "" + (r === void 0 ? "\0" : r);
|
|
4625
4727
|
}
|
|
4626
|
-
function
|
|
4728
|
+
function Vo(e, t, n, r) {
|
|
4627
4729
|
let i = "" + t, a = "" + n;
|
|
4628
4730
|
if (!e && i > a) {
|
|
4629
4731
|
let e = i;
|
|
@@ -4635,33 +4737,33 @@ function Fo(e, t, n, r) {
|
|
|
4635
4737
|
};
|
|
4636
4738
|
return r && (o.name = r), o;
|
|
4637
4739
|
}
|
|
4638
|
-
function
|
|
4639
|
-
return
|
|
4740
|
+
function Ho(e, t) {
|
|
4741
|
+
return Bo(e, t.v, t.w, t.name);
|
|
4640
4742
|
}
|
|
4641
|
-
var
|
|
4642
|
-
|
|
4643
|
-
read: () =>
|
|
4644
|
-
write: () =>
|
|
4743
|
+
var Uo = "4.0.1", Wo = {};
|
|
4744
|
+
Lo(Wo, {
|
|
4745
|
+
read: () => Jo,
|
|
4746
|
+
write: () => Go
|
|
4645
4747
|
});
|
|
4646
|
-
function
|
|
4748
|
+
function Go(e) {
|
|
4647
4749
|
let t = {
|
|
4648
4750
|
options: {
|
|
4649
4751
|
directed: e.isDirected(),
|
|
4650
4752
|
multigraph: e.isMultigraph(),
|
|
4651
4753
|
compound: e.isCompound()
|
|
4652
4754
|
},
|
|
4653
|
-
nodes:
|
|
4654
|
-
edges:
|
|
4755
|
+
nodes: Ko(e),
|
|
4756
|
+
edges: qo(e)
|
|
4655
4757
|
}, n = e.graph();
|
|
4656
4758
|
return n !== void 0 && (t.value = structuredClone(n)), t;
|
|
4657
4759
|
}
|
|
4658
|
-
function
|
|
4760
|
+
function Ko(e) {
|
|
4659
4761
|
return e.nodes().map((t) => {
|
|
4660
4762
|
let n = e.node(t), r = e.parent(t), i = { v: t };
|
|
4661
4763
|
return n !== void 0 && (i.value = n), r !== void 0 && (i.parent = r), i;
|
|
4662
4764
|
});
|
|
4663
4765
|
}
|
|
4664
|
-
function
|
|
4766
|
+
function qo(e) {
|
|
4665
4767
|
return e.edges().map((t) => {
|
|
4666
4768
|
let n = e.edge(t), r = {
|
|
4667
4769
|
v: t.v,
|
|
@@ -4670,7 +4772,7 @@ function Vo(e) {
|
|
|
4670
4772
|
return t.name !== void 0 && (r.name = t.name), n !== void 0 && (r.value = n), r;
|
|
4671
4773
|
});
|
|
4672
4774
|
}
|
|
4673
|
-
function
|
|
4775
|
+
function Jo(e) {
|
|
4674
4776
|
let t = new $(e.options);
|
|
4675
4777
|
return e.value !== void 0 && t.setGraph(e.value), e.nodes.forEach((e) => {
|
|
4676
4778
|
t.setNode(e.v, e.value), e.parent && t.setParent(e.v, e.parent);
|
|
@@ -4682,30 +4784,30 @@ function Ho(e) {
|
|
|
4682
4784
|
}, e.value);
|
|
4683
4785
|
}), t;
|
|
4684
4786
|
}
|
|
4685
|
-
var
|
|
4686
|
-
|
|
4687
|
-
CycleException: () =>
|
|
4688
|
-
bellmanFord: () =>
|
|
4689
|
-
components: () =>
|
|
4690
|
-
dijkstra: () =>
|
|
4691
|
-
dijkstraAll: () =>
|
|
4692
|
-
findCycles: () =>
|
|
4693
|
-
floydWarshall: () =>
|
|
4694
|
-
isAcyclic: () =>
|
|
4695
|
-
postorder: () =>
|
|
4696
|
-
preorder: () =>
|
|
4697
|
-
prim: () =>
|
|
4698
|
-
shortestPaths: () =>
|
|
4699
|
-
tarjan: () =>
|
|
4700
|
-
topsort: () =>
|
|
4787
|
+
var Yo = {};
|
|
4788
|
+
Lo(Yo, {
|
|
4789
|
+
CycleException: () => us,
|
|
4790
|
+
bellmanFord: () => Zo,
|
|
4791
|
+
components: () => $o,
|
|
4792
|
+
dijkstra: () => ns,
|
|
4793
|
+
dijkstraAll: () => is,
|
|
4794
|
+
findCycles: () => os,
|
|
4795
|
+
floydWarshall: () => cs,
|
|
4796
|
+
isAcyclic: () => fs,
|
|
4797
|
+
postorder: () => gs,
|
|
4798
|
+
preorder: () => _s,
|
|
4799
|
+
prim: () => vs,
|
|
4800
|
+
shortestPaths: () => ys,
|
|
4801
|
+
tarjan: () => as,
|
|
4802
|
+
topsort: () => ds
|
|
4701
4803
|
});
|
|
4702
|
-
var
|
|
4703
|
-
function
|
|
4704
|
-
return
|
|
4804
|
+
var Xo = () => 1;
|
|
4805
|
+
function Zo(e, t, n, r) {
|
|
4806
|
+
return Qo(e, String(t), n || Xo, r || function(t) {
|
|
4705
4807
|
return e.outEdges(t);
|
|
4706
4808
|
});
|
|
4707
4809
|
}
|
|
4708
|
-
function
|
|
4810
|
+
function Qo(e, t, n, r) {
|
|
4709
4811
|
let i = {}, a, o = 0, s = e.nodes(), c = function(e) {
|
|
4710
4812
|
let t = n(e);
|
|
4711
4813
|
i[e.v].distance + t < i[e.w].distance && (i[e.w] = {
|
|
@@ -4734,7 +4836,7 @@ function Ko(e, t, n, r) {
|
|
|
4734
4836
|
if (o === u - 1 && (a = !1, l(), a)) throw Error("The graph contains a negative weight cycle");
|
|
4735
4837
|
return i;
|
|
4736
4838
|
}
|
|
4737
|
-
function
|
|
4839
|
+
function $o(e) {
|
|
4738
4840
|
let t = {}, n = [], r;
|
|
4739
4841
|
function i(n) {
|
|
4740
4842
|
n in t || (t[n] = !0, r.push(n), e.successors(n).forEach(i), e.predecessors(n).forEach(i));
|
|
@@ -4743,7 +4845,7 @@ function qo(e) {
|
|
|
4743
4845
|
r = [], i(e), r.length && n.push(r);
|
|
4744
4846
|
}), n;
|
|
4745
4847
|
}
|
|
4746
|
-
var
|
|
4848
|
+
var es = class {
|
|
4747
4849
|
constructor() {
|
|
4748
4850
|
this._arr = [], this._keyIndices = {};
|
|
4749
4851
|
}
|
|
@@ -4799,14 +4901,14 @@ var Jo = class {
|
|
|
4799
4901
|
let n = this._arr, r = this._keyIndices, i = n[e], a = n[t];
|
|
4800
4902
|
n[e] = a, n[t] = i, r[a.key] = e, r[i.key] = t;
|
|
4801
4903
|
}
|
|
4802
|
-
},
|
|
4803
|
-
function
|
|
4804
|
-
return
|
|
4904
|
+
}, ts = () => 1;
|
|
4905
|
+
function ns(e, t, n, r) {
|
|
4906
|
+
return rs(e, String(t), n || ts, r || function(t) {
|
|
4805
4907
|
return e.outEdges(t);
|
|
4806
4908
|
});
|
|
4807
4909
|
}
|
|
4808
|
-
function
|
|
4809
|
-
let i = {}, a = new
|
|
4910
|
+
function rs(e, t, n, r) {
|
|
4911
|
+
let i = {}, a = new es(), o, s, c = function(e) {
|
|
4810
4912
|
let t = e.v === o ? e.w : e.v, r = i[t], c = n(e), l = s.distance + c;
|
|
4811
4913
|
if (c < 0) throw Error("dijkstra does not allow negative edge weights. Bad edge: " + e + " Weight: " + c);
|
|
4812
4914
|
l < r.distance && (r.distance = l, r.predecessor = o, a.decrease(t, l));
|
|
@@ -4820,12 +4922,12 @@ function Zo(e, t, n, r) {
|
|
|
4820
4922
|
}); a.size() > 0 && (o = a.removeMin(), s = i[o], s.distance !== Infinity);) r(o).forEach(c);
|
|
4821
4923
|
return i;
|
|
4822
4924
|
}
|
|
4823
|
-
function
|
|
4925
|
+
function is(e, t, n) {
|
|
4824
4926
|
return e.nodes().reduce(function(r, i) {
|
|
4825
|
-
return r[i] =
|
|
4927
|
+
return r[i] = ns(e, i, t, n), r;
|
|
4826
4928
|
}, {});
|
|
4827
4929
|
}
|
|
4828
|
-
function
|
|
4930
|
+
function as(e) {
|
|
4829
4931
|
let t = 0, n = [], r = {}, i = [];
|
|
4830
4932
|
function a(o) {
|
|
4831
4933
|
let s = r[o] = {
|
|
@@ -4847,18 +4949,18 @@ function $o(e) {
|
|
|
4847
4949
|
e in r || a(e);
|
|
4848
4950
|
}), i;
|
|
4849
4951
|
}
|
|
4850
|
-
function
|
|
4851
|
-
return
|
|
4952
|
+
function os(e) {
|
|
4953
|
+
return as(e).filter(function(t) {
|
|
4852
4954
|
return t.length > 1 || t.length === 1 && e.hasEdge(t[0], t[0]);
|
|
4853
4955
|
});
|
|
4854
4956
|
}
|
|
4855
|
-
var
|
|
4856
|
-
function
|
|
4857
|
-
return
|
|
4957
|
+
var ss = () => 1;
|
|
4958
|
+
function cs(e, t, n) {
|
|
4959
|
+
return ls(e, t || ss, n || function(t) {
|
|
4858
4960
|
return e.outEdges(t);
|
|
4859
4961
|
});
|
|
4860
4962
|
}
|
|
4861
|
-
function
|
|
4963
|
+
function ls(e, t, n) {
|
|
4862
4964
|
let r = {}, i = e.nodes();
|
|
4863
4965
|
return i.forEach(function(e) {
|
|
4864
4966
|
r[e] = {}, r[e][e] = {
|
|
@@ -4887,55 +4989,55 @@ function rs(e, t, n) {
|
|
|
4887
4989
|
});
|
|
4888
4990
|
}), r;
|
|
4889
4991
|
}
|
|
4890
|
-
var
|
|
4992
|
+
var us = class extends Error {
|
|
4891
4993
|
constructor(...e) {
|
|
4892
4994
|
super(...e);
|
|
4893
4995
|
}
|
|
4894
4996
|
};
|
|
4895
|
-
function
|
|
4997
|
+
function ds(e) {
|
|
4896
4998
|
let t = {}, n = {}, r = [];
|
|
4897
4999
|
function i(a) {
|
|
4898
|
-
if (a in n) throw new
|
|
5000
|
+
if (a in n) throw new us();
|
|
4899
5001
|
a in t || (n[a] = !0, t[a] = !0, e.predecessors(a).forEach(i), delete n[a], r.push(a));
|
|
4900
5002
|
}
|
|
4901
|
-
if (e.sinks().forEach(i), Object.keys(t).length !== e.nodeCount()) throw new
|
|
5003
|
+
if (e.sinks().forEach(i), Object.keys(t).length !== e.nodeCount()) throw new us();
|
|
4902
5004
|
return r;
|
|
4903
5005
|
}
|
|
4904
|
-
function
|
|
5006
|
+
function fs(e) {
|
|
4905
5007
|
try {
|
|
4906
|
-
|
|
5008
|
+
ds(e);
|
|
4907
5009
|
} catch (e) {
|
|
4908
|
-
if (e instanceof
|
|
5010
|
+
if (e instanceof us) return !1;
|
|
4909
5011
|
throw e;
|
|
4910
5012
|
}
|
|
4911
5013
|
return !0;
|
|
4912
5014
|
}
|
|
4913
|
-
function
|
|
5015
|
+
function ps(e, t, n, r, i) {
|
|
4914
5016
|
Array.isArray(t) || (t = [t]);
|
|
4915
5017
|
let a = ((t) => (e.isDirected() ? e.successors(t) : e.neighbors(t)) ?? []), o = {};
|
|
4916
5018
|
return t.forEach(function(t) {
|
|
4917
5019
|
if (!e.hasNode(t)) throw Error("Graph does not have node: " + t);
|
|
4918
|
-
i =
|
|
5020
|
+
i = ms(e, t, n === "post", o, a, r, i);
|
|
4919
5021
|
}), i;
|
|
4920
5022
|
}
|
|
4921
|
-
function
|
|
5023
|
+
function ms(e, t, n, r, i, a, o) {
|
|
4922
5024
|
return t in r || (r[t] = !0, n || (o = a(o, t)), i(t).forEach(function(t) {
|
|
4923
|
-
o =
|
|
5025
|
+
o = ms(e, t, n, r, i, a, o);
|
|
4924
5026
|
}), n && (o = a(o, t))), o;
|
|
4925
5027
|
}
|
|
4926
|
-
function
|
|
4927
|
-
return
|
|
5028
|
+
function hs(e, t, n) {
|
|
5029
|
+
return ps(e, t, n, function(e, t) {
|
|
4928
5030
|
return e.push(t), e;
|
|
4929
5031
|
}, []);
|
|
4930
5032
|
}
|
|
4931
|
-
function
|
|
4932
|
-
return
|
|
5033
|
+
function gs(e, t) {
|
|
5034
|
+
return hs(e, t, "post");
|
|
4933
5035
|
}
|
|
4934
|
-
function
|
|
4935
|
-
return
|
|
5036
|
+
function _s(e, t) {
|
|
5037
|
+
return hs(e, t, "pre");
|
|
4936
5038
|
}
|
|
4937
|
-
function
|
|
4938
|
-
let n = new $(), r = {}, i = new
|
|
5039
|
+
function vs(e, t) {
|
|
5040
|
+
let n = new $(), r = {}, i = new es(), a;
|
|
4939
5041
|
function o(e) {
|
|
4940
5042
|
let n = e.v === a ? e.w : e.v, o = i.priority(n);
|
|
4941
5043
|
if (o !== void 0) {
|
|
@@ -4958,11 +5060,11 @@ function fs(e, t) {
|
|
|
4958
5060
|
}
|
|
4959
5061
|
return n;
|
|
4960
5062
|
}
|
|
4961
|
-
function
|
|
4962
|
-
return
|
|
5063
|
+
function ys(e, t, n, r) {
|
|
5064
|
+
return bs(e, t, n, r ?? ((t) => e.outEdges(t) ?? []));
|
|
4963
5065
|
}
|
|
4964
|
-
function
|
|
4965
|
-
if (n === void 0) return
|
|
5066
|
+
function bs(e, t, n, r) {
|
|
5067
|
+
if (n === void 0) return ns(e, t, n, r);
|
|
4966
5068
|
let i = !1, a = e.nodes();
|
|
4967
5069
|
for (let o = 0; o < a.length; o++) {
|
|
4968
5070
|
let s = r(a[o]);
|
|
@@ -4973,16 +5075,16 @@ function ms(e, t, n, r) {
|
|
|
4973
5075
|
w: r === t.v ? t.w : t.v
|
|
4974
5076
|
}) < 0 && (i = !0);
|
|
4975
5077
|
}
|
|
4976
|
-
if (i) return
|
|
5078
|
+
if (i) return Zo(e, t, n, r);
|
|
4977
5079
|
}
|
|
4978
|
-
return
|
|
5080
|
+
return ns(e, t, n, r);
|
|
4979
5081
|
}
|
|
4980
|
-
function
|
|
5082
|
+
function xs(e, t, n, r) {
|
|
4981
5083
|
let i = r;
|
|
4982
|
-
for (; e.hasNode(i);) i =
|
|
5084
|
+
for (; e.hasNode(i);) i = Ls(r);
|
|
4983
5085
|
return n.dummy = t, e.setNode(i, n), i;
|
|
4984
5086
|
}
|
|
4985
|
-
function
|
|
5087
|
+
function Ss(e) {
|
|
4986
5088
|
let t = new $().setGraph(e.graph());
|
|
4987
5089
|
return e.nodes().forEach((n) => t.setNode(n, e.node(n))), e.edges().forEach((n) => {
|
|
4988
5090
|
let r = t.edge(n.v, n.w) || {
|
|
@@ -4995,7 +5097,7 @@ function gs(e) {
|
|
|
4995
5097
|
});
|
|
4996
5098
|
}), t;
|
|
4997
5099
|
}
|
|
4998
|
-
function
|
|
5100
|
+
function Cs(e) {
|
|
4999
5101
|
let t = new $({ multigraph: e.isMultigraph() }).setGraph(e.graph());
|
|
5000
5102
|
return e.nodes().forEach((n) => {
|
|
5001
5103
|
e.children(n).length || t.setNode(n, e.node(n));
|
|
@@ -5003,7 +5105,7 @@ function _s(e) {
|
|
|
5003
5105
|
t.setEdge(n, e.edge(n));
|
|
5004
5106
|
}), t;
|
|
5005
5107
|
}
|
|
5006
|
-
function
|
|
5108
|
+
function ws(e, t) {
|
|
5007
5109
|
let n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2;
|
|
5008
5110
|
if (!i && !a) throw Error("Not possible to find intersection inside of the rectangle");
|
|
5009
5111
|
let c, l;
|
|
@@ -5012,25 +5114,25 @@ function vs(e, t) {
|
|
|
5012
5114
|
y: r + l
|
|
5013
5115
|
};
|
|
5014
5116
|
}
|
|
5015
|
-
function
|
|
5016
|
-
let t = Ms(
|
|
5117
|
+
function Ts(e) {
|
|
5118
|
+
let t = Rs(Ms(e) + 1).map(() => []);
|
|
5017
5119
|
return e.nodes().forEach((n) => {
|
|
5018
5120
|
let r = e.node(n), i = r.rank;
|
|
5019
5121
|
i !== void 0 && (t[i] || (t[i] = []), t[i][r.order] = n);
|
|
5020
5122
|
}), t;
|
|
5021
5123
|
}
|
|
5022
|
-
function
|
|
5124
|
+
function Es(e) {
|
|
5023
5125
|
let t = e.nodes().map((t) => {
|
|
5024
5126
|
let n = e.node(t).rank;
|
|
5025
5127
|
return n === void 0 ? Number.MAX_VALUE : n;
|
|
5026
|
-
}), n =
|
|
5128
|
+
}), n = js(Math.min, t);
|
|
5027
5129
|
e.nodes().forEach((t) => {
|
|
5028
5130
|
let r = e.node(t);
|
|
5029
5131
|
Object.hasOwn(r, "rank") && (r.rank -= n);
|
|
5030
5132
|
});
|
|
5031
5133
|
}
|
|
5032
|
-
function
|
|
5033
|
-
let t = e.nodes().map((t) => e.node(t).rank).filter((e) => e !== void 0), n =
|
|
5134
|
+
function Ds(e) {
|
|
5135
|
+
let t = e.nodes().map((t) => e.node(t).rank).filter((e) => e !== void 0), n = js(Math.min, t), r = [];
|
|
5034
5136
|
e.nodes().forEach((t) => {
|
|
5035
5137
|
let i = e.node(t).rank - n;
|
|
5036
5138
|
r[i] || (r[i] = []), r[i].push(t);
|
|
@@ -5040,14 +5142,14 @@ function xs(e) {
|
|
|
5040
5142
|
t === void 0 && n % a !== 0 ? --i : t !== void 0 && i && t.forEach((t) => e.node(t).rank += i);
|
|
5041
5143
|
});
|
|
5042
5144
|
}
|
|
5043
|
-
function
|
|
5145
|
+
function Os(e, t, n, r) {
|
|
5044
5146
|
let i = {
|
|
5045
5147
|
width: 0,
|
|
5046
5148
|
height: 0
|
|
5047
5149
|
};
|
|
5048
|
-
return arguments.length >= 4 && (i.rank = n, i.order = r),
|
|
5150
|
+
return arguments.length >= 4 && (i.rank = n, i.order = r), xs(e, "border", i, t);
|
|
5049
5151
|
}
|
|
5050
|
-
function
|
|
5152
|
+
function ks(e, t = As) {
|
|
5051
5153
|
let n = [];
|
|
5052
5154
|
for (let r = 0; r < e.length; r += t) {
|
|
5053
5155
|
let i = e.slice(r, r + t);
|
|
@@ -5055,18 +5157,18 @@ function Cs(e, t = ws) {
|
|
|
5055
5157
|
}
|
|
5056
5158
|
return n;
|
|
5057
5159
|
}
|
|
5058
|
-
var
|
|
5059
|
-
function
|
|
5060
|
-
return t.length >
|
|
5160
|
+
var As = 65535;
|
|
5161
|
+
function js(e, t) {
|
|
5162
|
+
return t.length > As ? e(...ks(t).map((t) => e(...t))) : e(...t);
|
|
5061
5163
|
}
|
|
5062
|
-
function
|
|
5164
|
+
function Ms(e) {
|
|
5063
5165
|
let t = e.nodes().map((t) => {
|
|
5064
5166
|
let n = e.node(t).rank;
|
|
5065
5167
|
return n === void 0 ? Number.MIN_VALUE : n;
|
|
5066
5168
|
});
|
|
5067
|
-
return
|
|
5169
|
+
return js(Math.max, t);
|
|
5068
5170
|
}
|
|
5069
|
-
function
|
|
5171
|
+
function Ns(e, t) {
|
|
5070
5172
|
let n = {
|
|
5071
5173
|
lhs: [],
|
|
5072
5174
|
rhs: []
|
|
@@ -5075,7 +5177,7 @@ function Ds(e, t) {
|
|
|
5075
5177
|
t(e) ? n.lhs.push(e) : n.rhs.push(e);
|
|
5076
5178
|
}), n;
|
|
5077
5179
|
}
|
|
5078
|
-
function
|
|
5180
|
+
function Ps(e, t) {
|
|
5079
5181
|
let n = Date.now();
|
|
5080
5182
|
try {
|
|
5081
5183
|
return t();
|
|
@@ -5083,14 +5185,14 @@ function Os(e, t) {
|
|
|
5083
5185
|
console.log(e + " time: " + (Date.now() - n) + "ms");
|
|
5084
5186
|
}
|
|
5085
5187
|
}
|
|
5086
|
-
function
|
|
5188
|
+
function Fs(e, t) {
|
|
5087
5189
|
return t();
|
|
5088
5190
|
}
|
|
5089
|
-
var
|
|
5090
|
-
function
|
|
5091
|
-
return e + ("" + ++
|
|
5191
|
+
var Is = 0;
|
|
5192
|
+
function Ls(e) {
|
|
5193
|
+
return e + ("" + ++Is);
|
|
5092
5194
|
}
|
|
5093
|
-
function
|
|
5195
|
+
function Rs(e, t, n = 1) {
|
|
5094
5196
|
t ?? (t = e, e = 0);
|
|
5095
5197
|
let r = (e) => e < t;
|
|
5096
5198
|
n < 0 && (r = (e) => t < e);
|
|
@@ -5098,78 +5200,78 @@ function Ms(e, t, n = 1) {
|
|
|
5098
5200
|
for (let t = e; r(t); t += n) i.push(t);
|
|
5099
5201
|
return i;
|
|
5100
5202
|
}
|
|
5101
|
-
function
|
|
5203
|
+
function zs(e, t) {
|
|
5102
5204
|
let n = {};
|
|
5103
5205
|
for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
|
|
5104
5206
|
return n;
|
|
5105
5207
|
}
|
|
5106
|
-
function
|
|
5208
|
+
function Bs(e, t) {
|
|
5107
5209
|
let n;
|
|
5108
5210
|
return n = typeof t == "string" ? (e) => e[t] : t, Object.entries(e).reduce((e, [t, r]) => (e[t] = n(r, t), e), {});
|
|
5109
5211
|
}
|
|
5110
|
-
function
|
|
5212
|
+
function Vs(e, t) {
|
|
5111
5213
|
return e.reduce((e, n, r) => (e[n] = t[r], e), {});
|
|
5112
5214
|
}
|
|
5113
|
-
var
|
|
5215
|
+
var Hs = "\0", Us = "3.0.0", Ws = class {
|
|
5114
5216
|
constructor() {
|
|
5115
|
-
|
|
5217
|
+
Po(this, "_sentinel");
|
|
5116
5218
|
let e = {};
|
|
5117
5219
|
e._next = e._prev = e, this._sentinel = e;
|
|
5118
5220
|
}
|
|
5119
5221
|
dequeue() {
|
|
5120
5222
|
let e = this._sentinel, t = e._prev;
|
|
5121
|
-
if (t !== e) return
|
|
5223
|
+
if (t !== e) return Gs(t), t;
|
|
5122
5224
|
}
|
|
5123
5225
|
enqueue(e) {
|
|
5124
5226
|
let t = this._sentinel;
|
|
5125
|
-
e._prev && e._next &&
|
|
5227
|
+
e._prev && e._next && Gs(e), e._next = t._next, t._next._prev = e, t._next = e, e._prev = t;
|
|
5126
5228
|
}
|
|
5127
5229
|
toString() {
|
|
5128
5230
|
let e = [], t = this._sentinel, n = t._prev;
|
|
5129
|
-
for (; n !== t;) e.push(JSON.stringify(n,
|
|
5231
|
+
for (; n !== t;) e.push(JSON.stringify(n, Ks)), n = n._prev;
|
|
5130
5232
|
return "[" + e.join(", ") + "]";
|
|
5131
5233
|
}
|
|
5132
5234
|
};
|
|
5133
|
-
function
|
|
5235
|
+
function Gs(e) {
|
|
5134
5236
|
e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
|
|
5135
5237
|
}
|
|
5136
|
-
function
|
|
5238
|
+
function Ks(e, t) {
|
|
5137
5239
|
if (e !== "_next" && e !== "_prev") return t;
|
|
5138
5240
|
}
|
|
5139
|
-
var
|
|
5140
|
-
function
|
|
5241
|
+
var qs = Ws, Js = () => 1;
|
|
5242
|
+
function Ys(e, t) {
|
|
5141
5243
|
if (e.nodeCount() <= 1) return [];
|
|
5142
|
-
let n =
|
|
5143
|
-
return
|
|
5244
|
+
let n = Qs(e, t || Js);
|
|
5245
|
+
return Xs(n.graph, n.buckets, n.zeroIdx).flatMap((t) => e.outEdges(t.v, t.w) || []);
|
|
5144
5246
|
}
|
|
5145
|
-
function
|
|
5247
|
+
function Xs(e, t, n) {
|
|
5146
5248
|
let r = [], i = t[t.length - 1], a = t[0], o;
|
|
5147
5249
|
for (; e.nodeCount();) {
|
|
5148
|
-
for (; o = a.dequeue();)
|
|
5149
|
-
for (; o = i.dequeue();)
|
|
5250
|
+
for (; o = a.dequeue();) Zs(e, t, n, o);
|
|
5251
|
+
for (; o = i.dequeue();) Zs(e, t, n, o);
|
|
5150
5252
|
if (e.nodeCount()) {
|
|
5151
5253
|
for (let i = t.length - 2; i > 0; --i) if (o = t[i]?.dequeue(), o) {
|
|
5152
|
-
r = r.concat(
|
|
5254
|
+
r = r.concat(Zs(e, t, n, o, !0) || []);
|
|
5153
5255
|
break;
|
|
5154
5256
|
}
|
|
5155
5257
|
}
|
|
5156
5258
|
}
|
|
5157
5259
|
return r;
|
|
5158
5260
|
}
|
|
5159
|
-
function
|
|
5261
|
+
function Zs(e, t, n, r, i) {
|
|
5160
5262
|
let a = [], o = i ? a : void 0;
|
|
5161
5263
|
return (e.inEdges(r.v) || []).forEach((r) => {
|
|
5162
5264
|
let o = e.edge(r), s = e.node(r.v);
|
|
5163
5265
|
i && a.push({
|
|
5164
5266
|
v: r.v,
|
|
5165
5267
|
w: r.w
|
|
5166
|
-
}), s.out -= o,
|
|
5268
|
+
}), s.out -= o, $s(t, n, s);
|
|
5167
5269
|
}), (e.outEdges(r.v) || []).forEach((r) => {
|
|
5168
5270
|
let i = e.edge(r), a = r.w, o = e.node(a);
|
|
5169
|
-
o.in -= i,
|
|
5271
|
+
o.in -= i, $s(t, n, o);
|
|
5170
5272
|
}), e.removeNode(r.v), o;
|
|
5171
5273
|
}
|
|
5172
|
-
function
|
|
5274
|
+
function Qs(e, t) {
|
|
5173
5275
|
let n = new $(), r = 0, i = 0;
|
|
5174
5276
|
e.nodes().forEach((e) => {
|
|
5175
5277
|
n.setNode(e, {
|
|
@@ -5183,34 +5285,34 @@ function Ks(e, t) {
|
|
|
5183
5285
|
let c = n.node(e.v), l = n.node(e.w);
|
|
5184
5286
|
i = Math.max(i, c.out += o), r = Math.max(r, l.in += o);
|
|
5185
5287
|
});
|
|
5186
|
-
let a =
|
|
5288
|
+
let a = ec(i + r + 3).map(() => new qs()), o = r + 1;
|
|
5187
5289
|
return n.nodes().forEach((e) => {
|
|
5188
|
-
|
|
5290
|
+
$s(a, o, n.node(e));
|
|
5189
5291
|
}), {
|
|
5190
5292
|
graph: n,
|
|
5191
5293
|
buckets: a,
|
|
5192
5294
|
zeroIdx: o
|
|
5193
5295
|
};
|
|
5194
5296
|
}
|
|
5195
|
-
function
|
|
5297
|
+
function $s(e, t, n) {
|
|
5196
5298
|
var r, i, a;
|
|
5197
5299
|
n.out ? n.in ? (a = e[n.out - n.in + t]) == null || a.enqueue(n) : (i = e[e.length - 1]) == null || i.enqueue(n) : (r = e[0]) == null || r.enqueue(n);
|
|
5198
5300
|
}
|
|
5199
|
-
function
|
|
5301
|
+
function ec(e) {
|
|
5200
5302
|
let t = [];
|
|
5201
5303
|
for (let n = 0; n < e; n++) t.push(n);
|
|
5202
5304
|
return t;
|
|
5203
5305
|
}
|
|
5204
|
-
function
|
|
5205
|
-
(e.graph().acyclicer === "greedy" ?
|
|
5306
|
+
function tc(e) {
|
|
5307
|
+
(e.graph().acyclicer === "greedy" ? Ys(e, t(e)) : nc(e)).forEach((t) => {
|
|
5206
5308
|
let n = e.edge(t);
|
|
5207
|
-
e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n,
|
|
5309
|
+
e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n, Ls("rev"));
|
|
5208
5310
|
});
|
|
5209
5311
|
function t(e) {
|
|
5210
5312
|
return (t) => e.edge(t).weight;
|
|
5211
5313
|
}
|
|
5212
5314
|
}
|
|
5213
|
-
function
|
|
5315
|
+
function nc(e) {
|
|
5214
5316
|
let t = [], n = {}, r = {};
|
|
5215
5317
|
function i(a) {
|
|
5216
5318
|
Object.hasOwn(r, a) || (r[a] = !0, n[a] = !0, e.outEdges(a).forEach((e) => {
|
|
@@ -5219,7 +5321,7 @@ function Xs(e) {
|
|
|
5219
5321
|
}
|
|
5220
5322
|
return e.nodes().forEach(i), t;
|
|
5221
5323
|
}
|
|
5222
|
-
function
|
|
5324
|
+
function rc(e) {
|
|
5223
5325
|
e.edges().forEach((t) => {
|
|
5224
5326
|
let n = e.edge(t);
|
|
5225
5327
|
if (n.reversed) {
|
|
@@ -5229,10 +5331,10 @@ function Zs(e) {
|
|
|
5229
5331
|
}
|
|
5230
5332
|
});
|
|
5231
5333
|
}
|
|
5232
|
-
function
|
|
5233
|
-
e.graph().dummyChains = [], e.edges().forEach((t) =>
|
|
5334
|
+
function ic(e) {
|
|
5335
|
+
e.graph().dummyChains = [], e.edges().forEach((t) => ac(e, t));
|
|
5234
5336
|
}
|
|
5235
|
-
function
|
|
5337
|
+
function ac(e, t) {
|
|
5236
5338
|
let n = t.v, r = e.node(n).rank, i = t.w, a = e.node(i).rank, o = t.name, s = e.edge(t), c = s.labelRank;
|
|
5237
5339
|
if (a === r + 1) return;
|
|
5238
5340
|
e.removeEdge(t);
|
|
@@ -5243,10 +5345,10 @@ function $s(e, t) {
|
|
|
5243
5345
|
edgeLabel: s,
|
|
5244
5346
|
edgeObj: t,
|
|
5245
5347
|
rank: r
|
|
5246
|
-
}, l =
|
|
5348
|
+
}, l = xs(e, "edge", u, "_d"), r === c && (u.width = s.width, u.height = s.height, u.dummy = "edge-label", u.labelpos = s.labelpos), e.setEdge(n, l, { weight: s.weight }, o), d === 0 && e.graph().dummyChains.push(l), n = l;
|
|
5247
5349
|
e.setEdge(n, i, { weight: s.weight }, o);
|
|
5248
5350
|
}
|
|
5249
|
-
function
|
|
5351
|
+
function oc(e) {
|
|
5250
5352
|
e.graph().dummyChains.forEach((t) => {
|
|
5251
5353
|
let n = e.node(t), r = n.edgeLabel, i;
|
|
5252
5354
|
for (e.setEdge(n.edgeObj, r); n.dummy;) i = e.successors(t)[0], e.removeNode(t), r.points.push({
|
|
@@ -5255,67 +5357,67 @@ function ec(e) {
|
|
|
5255
5357
|
}), n.dummy === "edge-label" && (r.x = n.x, r.y = n.y, r.width = n.width, r.height = n.height), t = i, n = e.node(t);
|
|
5256
5358
|
});
|
|
5257
5359
|
}
|
|
5258
|
-
function
|
|
5360
|
+
function sc(e) {
|
|
5259
5361
|
let t = {};
|
|
5260
5362
|
function n(r) {
|
|
5261
5363
|
let i = e.node(r);
|
|
5262
5364
|
if (Object.hasOwn(t, r)) return i.rank;
|
|
5263
5365
|
t[r] = !0;
|
|
5264
|
-
let a = e.outEdges(r), o = a ? a.map((t) => t == null ? Infinity : n(t.w) - e.edge(t).minlen) : [], s =
|
|
5366
|
+
let a = e.outEdges(r), o = a ? a.map((t) => t == null ? Infinity : n(t.w) - e.edge(t).minlen) : [], s = js(Math.min, o);
|
|
5265
5367
|
return s === Infinity && (s = 0), i.rank = s;
|
|
5266
5368
|
}
|
|
5267
5369
|
e.sources().forEach(n);
|
|
5268
5370
|
}
|
|
5269
|
-
function
|
|
5371
|
+
function cc(e, t) {
|
|
5270
5372
|
return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
|
|
5271
5373
|
}
|
|
5272
|
-
var
|
|
5273
|
-
function
|
|
5374
|
+
var lc = uc;
|
|
5375
|
+
function uc(e) {
|
|
5274
5376
|
let t = new $({ directed: !1 }), n = e.nodes();
|
|
5275
5377
|
if (n.length === 0) throw Error("Graph must have at least one node");
|
|
5276
5378
|
let r = n[0], i = e.nodeCount();
|
|
5277
5379
|
t.setNode(r, {});
|
|
5278
5380
|
let a, o;
|
|
5279
|
-
for (;
|
|
5381
|
+
for (; dc(t, e) < i && (a = fc(t, e), a);) o = t.hasNode(a.v) ? cc(e, a) : -cc(e, a), pc(t, e, o);
|
|
5280
5382
|
return t;
|
|
5281
5383
|
}
|
|
5282
|
-
function
|
|
5384
|
+
function dc(e, t) {
|
|
5283
5385
|
function n(r) {
|
|
5284
5386
|
let i = t.nodeEdges(r);
|
|
5285
5387
|
i && i.forEach((i) => {
|
|
5286
5388
|
let a = i.v, o = r === a ? i.w : a;
|
|
5287
|
-
!e.hasNode(o) && !
|
|
5389
|
+
!e.hasNode(o) && !cc(t, i) && (e.setNode(o, {}), e.setEdge(r, o, {}), n(o));
|
|
5288
5390
|
});
|
|
5289
5391
|
}
|
|
5290
5392
|
return e.nodes().forEach(n), e.nodeCount();
|
|
5291
5393
|
}
|
|
5292
|
-
function
|
|
5394
|
+
function fc(e, t) {
|
|
5293
5395
|
return t.edges().reduce((n, r) => {
|
|
5294
5396
|
let i = Infinity;
|
|
5295
|
-
return e.hasNode(r.v) !== e.hasNode(r.w) && (i =
|
|
5397
|
+
return e.hasNode(r.v) !== e.hasNode(r.w) && (i = cc(t, r)), i < n[0] ? [i, r] : n;
|
|
5296
5398
|
}, [Infinity, null])[1];
|
|
5297
5399
|
}
|
|
5298
|
-
function
|
|
5400
|
+
function pc(e, t, n) {
|
|
5299
5401
|
e.nodes().forEach((e) => t.node(e).rank += n);
|
|
5300
5402
|
}
|
|
5301
|
-
var { preorder:
|
|
5302
|
-
|
|
5303
|
-
function
|
|
5304
|
-
e =
|
|
5305
|
-
let t =
|
|
5306
|
-
|
|
5403
|
+
var { preorder: mc, postorder: hc } = Yo, gc = _c;
|
|
5404
|
+
_c.initLowLimValues = xc, _c.initCutValues = vc, _c.calcCutValue = bc, _c.leaveEdge = Cc, _c.enterEdge = wc, _c.exchangeEdges = Tc;
|
|
5405
|
+
function _c(e) {
|
|
5406
|
+
e = Ss(e), sc(e);
|
|
5407
|
+
let t = lc(e);
|
|
5408
|
+
xc(t), vc(t, e);
|
|
5307
5409
|
let n, r;
|
|
5308
|
-
for (; n =
|
|
5410
|
+
for (; n = Cc(t);) r = wc(t, e, n), Tc(t, e, n, r);
|
|
5309
5411
|
}
|
|
5310
|
-
function
|
|
5311
|
-
let n =
|
|
5312
|
-
n = n.slice(0, n.length - 1), n.forEach((n) =>
|
|
5412
|
+
function vc(e, t) {
|
|
5413
|
+
let n = hc(e, e.nodes());
|
|
5414
|
+
n = n.slice(0, n.length - 1), n.forEach((n) => yc(e, t, n));
|
|
5313
5415
|
}
|
|
5314
|
-
function
|
|
5416
|
+
function yc(e, t, n) {
|
|
5315
5417
|
let r = e.node(n).parent, i = e.edge(n, r);
|
|
5316
|
-
i.cutvalue =
|
|
5418
|
+
i.cutvalue = bc(e, t, n);
|
|
5317
5419
|
}
|
|
5318
|
-
function
|
|
5420
|
+
function bc(e, t, n) {
|
|
5319
5421
|
let r = e.node(n).parent, i = !0, a = t.edge(n, r), o = 0;
|
|
5320
5422
|
a ||= (i = !1, t.edge(r, n)), o = a.weight;
|
|
5321
5423
|
let s = t.nodeEdges(n);
|
|
@@ -5323,82 +5425,82 @@ function mc(e, t, n) {
|
|
|
5323
5425
|
let s = a.v === n, c = s ? a.w : a.v;
|
|
5324
5426
|
if (c !== r) {
|
|
5325
5427
|
let r = s === i, l = t.edge(a).weight;
|
|
5326
|
-
if (o += r ? l : -l,
|
|
5428
|
+
if (o += r ? l : -l, Dc(e, n, c)) {
|
|
5327
5429
|
let t = e.edge(n, c).cutvalue;
|
|
5328
5430
|
o += r ? -t : t;
|
|
5329
5431
|
}
|
|
5330
5432
|
}
|
|
5331
5433
|
}), o;
|
|
5332
5434
|
}
|
|
5333
|
-
function
|
|
5334
|
-
arguments.length < 2 && (t = e.nodes()[0]),
|
|
5435
|
+
function xc(e, t) {
|
|
5436
|
+
arguments.length < 2 && (t = e.nodes()[0]), Sc(e, {}, 1, t);
|
|
5335
5437
|
}
|
|
5336
|
-
function
|
|
5438
|
+
function Sc(e, t, n, r, i) {
|
|
5337
5439
|
let a = n, o = e.node(r);
|
|
5338
5440
|
t[r] = !0;
|
|
5339
5441
|
let s = e.neighbors(r);
|
|
5340
5442
|
return s && s.forEach((i) => {
|
|
5341
|
-
Object.hasOwn(t, i) || (n =
|
|
5443
|
+
Object.hasOwn(t, i) || (n = Sc(e, t, n, i, r));
|
|
5342
5444
|
}), o.low = a, o.lim = n++, i ? o.parent = i : delete o.parent, n;
|
|
5343
5445
|
}
|
|
5344
|
-
function
|
|
5446
|
+
function Cc(e) {
|
|
5345
5447
|
return e.edges().find((t) => e.edge(t).cutvalue < 0);
|
|
5346
5448
|
}
|
|
5347
|
-
function
|
|
5449
|
+
function wc(e, t, n) {
|
|
5348
5450
|
let r = n.v, i = n.w;
|
|
5349
5451
|
t.hasEdge(r, i) || (r = n.w, i = n.v);
|
|
5350
5452
|
let a = e.node(r), o = e.node(i), s = a, c = !1;
|
|
5351
|
-
return a.lim > o.lim && (s = o, c = !0), t.edges().filter((t) => c ===
|
|
5453
|
+
return a.lim > o.lim && (s = o, c = !0), t.edges().filter((t) => c === Oc(e, e.node(t.v), s) && c !== Oc(e, e.node(t.w), s)).reduce((e, n) => cc(t, n) < cc(t, e) ? n : e);
|
|
5352
5454
|
}
|
|
5353
|
-
function
|
|
5455
|
+
function Tc(e, t, n, r) {
|
|
5354
5456
|
let i = n.v, a = n.w;
|
|
5355
|
-
e.removeEdge(i, a), e.setEdge(r.v, r.w, {}),
|
|
5457
|
+
e.removeEdge(i, a), e.setEdge(r.v, r.w, {}), xc(e), vc(e, t), Ec(e, t);
|
|
5356
5458
|
}
|
|
5357
|
-
function
|
|
5459
|
+
function Ec(e, t) {
|
|
5358
5460
|
let n = e.nodes().find((t) => !e.node(t).parent);
|
|
5359
5461
|
if (!n) return;
|
|
5360
|
-
let r =
|
|
5462
|
+
let r = mc(e, [n]);
|
|
5361
5463
|
r = r.slice(1), r.forEach((n) => {
|
|
5362
5464
|
let r = e.node(n).parent, i = t.edge(n, r), a = !1;
|
|
5363
5465
|
i || (i = t.edge(r, n), a = !0), t.node(n).rank = t.node(r).rank + (a ? i.minlen : -i.minlen);
|
|
5364
5466
|
});
|
|
5365
5467
|
}
|
|
5366
|
-
function
|
|
5468
|
+
function Dc(e, t, n) {
|
|
5367
5469
|
return e.hasEdge(t, n);
|
|
5368
5470
|
}
|
|
5369
|
-
function
|
|
5471
|
+
function Oc(e, t, n) {
|
|
5370
5472
|
return n.low <= t.lim && t.lim <= n.lim;
|
|
5371
5473
|
}
|
|
5372
|
-
var
|
|
5373
|
-
function
|
|
5474
|
+
var kc = Ac;
|
|
5475
|
+
function Ac(e) {
|
|
5374
5476
|
let t = e.graph().ranker;
|
|
5375
5477
|
if (typeof t == "function") return t(e);
|
|
5376
5478
|
switch (t) {
|
|
5377
5479
|
case "network-simplex":
|
|
5378
|
-
|
|
5480
|
+
Nc(e);
|
|
5379
5481
|
break;
|
|
5380
5482
|
case "tight-tree":
|
|
5381
|
-
|
|
5483
|
+
Mc(e);
|
|
5382
5484
|
break;
|
|
5383
5485
|
case "longest-path":
|
|
5384
|
-
|
|
5486
|
+
jc(e);
|
|
5385
5487
|
break;
|
|
5386
5488
|
case "none": break;
|
|
5387
|
-
default:
|
|
5489
|
+
default: Nc(e);
|
|
5388
5490
|
}
|
|
5389
5491
|
}
|
|
5390
|
-
var
|
|
5391
|
-
function
|
|
5392
|
-
|
|
5492
|
+
var jc = sc;
|
|
5493
|
+
function Mc(e) {
|
|
5494
|
+
sc(e), lc(e);
|
|
5393
5495
|
}
|
|
5394
|
-
function
|
|
5395
|
-
|
|
5496
|
+
function Nc(e) {
|
|
5497
|
+
gc(e);
|
|
5396
5498
|
}
|
|
5397
|
-
var
|
|
5398
|
-
function
|
|
5399
|
-
let t =
|
|
5499
|
+
var Pc = Fc;
|
|
5500
|
+
function Fc(e) {
|
|
5501
|
+
let t = Lc(e);
|
|
5400
5502
|
e.graph().dummyChains.forEach((n) => {
|
|
5401
|
-
let r = e.node(n), i = r.edgeObj, a =
|
|
5503
|
+
let r = e.node(n), i = r.edgeObj, a = Ic(e, t, i.v, i.w), o = a.path, s = a.lca, c = 0, l = o[c], u = !0;
|
|
5402
5504
|
for (; n !== i.w;) {
|
|
5403
5505
|
if (r = e.node(n), u) {
|
|
5404
5506
|
for (; (l = o[c]) !== s && e.node(l).maxRank < r.rank;) c++;
|
|
@@ -5412,7 +5514,7 @@ function kc(e) {
|
|
|
5412
5514
|
}
|
|
5413
5515
|
});
|
|
5414
5516
|
}
|
|
5415
|
-
function
|
|
5517
|
+
function Ic(e, t, n, r) {
|
|
5416
5518
|
let i = [], a = [], o = Math.min(t[n].low, t[r].low), s = Math.max(t[n].lim, t[r].lim), c;
|
|
5417
5519
|
c = n;
|
|
5418
5520
|
do
|
|
@@ -5425,7 +5527,7 @@ function Ac(e, t, n, r) {
|
|
|
5425
5527
|
lca: l
|
|
5426
5528
|
};
|
|
5427
5529
|
}
|
|
5428
|
-
function
|
|
5530
|
+
function Lc(e) {
|
|
5429
5531
|
let t = {}, n = 0;
|
|
5430
5532
|
function r(i) {
|
|
5431
5533
|
let a = n;
|
|
@@ -5434,15 +5536,15 @@ function jc(e) {
|
|
|
5434
5536
|
lim: n++
|
|
5435
5537
|
};
|
|
5436
5538
|
}
|
|
5437
|
-
return e.children(
|
|
5539
|
+
return e.children(Hs).forEach(r), t;
|
|
5438
5540
|
}
|
|
5439
|
-
function
|
|
5440
|
-
let t =
|
|
5541
|
+
function Rc(e) {
|
|
5542
|
+
let t = xs(e, "root", {}, "_root"), n = Bc(e), r = Object.values(n), i = js(Math.max, r) - 1, a = 2 * i + 1;
|
|
5441
5543
|
e.graph().nestingRoot = t, e.edges().forEach((t) => e.edge(t).minlen *= a);
|
|
5442
|
-
let o =
|
|
5443
|
-
e.children(
|
|
5544
|
+
let o = Vc(e) + 1;
|
|
5545
|
+
e.children(Hs).forEach((r) => zc(e, t, a, o, i, n, r)), e.graph().nodeRankFactor = a;
|
|
5444
5546
|
}
|
|
5445
|
-
function
|
|
5547
|
+
function zc(e, t, n, r, i, a, o) {
|
|
5446
5548
|
let s = e.children(o);
|
|
5447
5549
|
if (!s.length) {
|
|
5448
5550
|
o !== t && e.setEdge(t, o, {
|
|
@@ -5451,9 +5553,9 @@ function Nc(e, t, n, r, i, a, o) {
|
|
|
5451
5553
|
});
|
|
5452
5554
|
return;
|
|
5453
5555
|
}
|
|
5454
|
-
let c =
|
|
5556
|
+
let c = Os(e, "_bt"), l = Os(e, "_bb"), u = e.node(o);
|
|
5455
5557
|
e.setParent(c, o), u.borderTop = c, e.setParent(l, o), u.borderBottom = l, s.forEach((s) => {
|
|
5456
|
-
|
|
5558
|
+
zc(e, t, n, r, i, a, s);
|
|
5457
5559
|
let u = e.node(s), d = u.borderTop ? u.borderTop : s, f = u.borderBottom ? u.borderBottom : s, p = u.borderTop ? r : 2 * r, m = d === f ? i - (a[o] ?? 0) + 1 : 1;
|
|
5458
5560
|
e.setEdge(c, d, {
|
|
5459
5561
|
weight: p,
|
|
@@ -5469,81 +5571,81 @@ function Nc(e, t, n, r, i, a, o) {
|
|
|
5469
5571
|
minlen: i + (a[o] ?? 0)
|
|
5470
5572
|
});
|
|
5471
5573
|
}
|
|
5472
|
-
function
|
|
5574
|
+
function Bc(e) {
|
|
5473
5575
|
let t = {};
|
|
5474
5576
|
function n(r, i) {
|
|
5475
5577
|
let a = e.children(r);
|
|
5476
5578
|
a && a.length && a.forEach((e) => n(e, i + 1)), t[r] = i;
|
|
5477
5579
|
}
|
|
5478
|
-
return e.children(
|
|
5580
|
+
return e.children(Hs).forEach((e) => n(e, 1)), t;
|
|
5479
5581
|
}
|
|
5480
|
-
function
|
|
5582
|
+
function Vc(e) {
|
|
5481
5583
|
return e.edges().reduce((t, n) => t + e.edge(n).weight, 0);
|
|
5482
5584
|
}
|
|
5483
|
-
function
|
|
5585
|
+
function Hc(e) {
|
|
5484
5586
|
let t = e.graph();
|
|
5485
5587
|
e.removeNode(t.nestingRoot), delete t.nestingRoot, e.edges().forEach((t) => {
|
|
5486
5588
|
e.edge(t).nestingEdge && e.removeEdge(t);
|
|
5487
5589
|
});
|
|
5488
5590
|
}
|
|
5489
|
-
var
|
|
5490
|
-
function
|
|
5591
|
+
var Uc = Wc;
|
|
5592
|
+
function Wc(e) {
|
|
5491
5593
|
function t(n) {
|
|
5492
5594
|
let r = e.children(n), i = e.node(n);
|
|
5493
5595
|
if (r.length && r.forEach(t), Object.hasOwn(i, "minRank")) {
|
|
5494
5596
|
i.borderLeft = [], i.borderRight = [];
|
|
5495
|
-
for (let t = i.minRank, r = i.maxRank + 1; t < r; ++t)
|
|
5597
|
+
for (let t = i.minRank, r = i.maxRank + 1; t < r; ++t) Gc(e, "borderLeft", "_bl", n, i, t), Gc(e, "borderRight", "_br", n, i, t);
|
|
5496
5598
|
}
|
|
5497
5599
|
}
|
|
5498
|
-
e.children(
|
|
5600
|
+
e.children(Hs).forEach(t);
|
|
5499
5601
|
}
|
|
5500
|
-
function
|
|
5602
|
+
function Gc(e, t, n, r, i, a) {
|
|
5501
5603
|
let o = {
|
|
5502
5604
|
width: 0,
|
|
5503
5605
|
height: 0,
|
|
5504
5606
|
rank: a,
|
|
5505
5607
|
borderType: t
|
|
5506
|
-
}, s = i[t][a - 1], c =
|
|
5608
|
+
}, s = i[t][a - 1], c = xs(e, "border", o, n);
|
|
5507
5609
|
i[t][a] = c, e.setParent(c, r), s && e.setEdge(s, c, { weight: 1 });
|
|
5508
5610
|
}
|
|
5509
|
-
function
|
|
5611
|
+
function Kc(e) {
|
|
5510
5612
|
let t = e.graph().rankdir?.toLowerCase();
|
|
5511
|
-
(t === "lr" || t === "rl") &&
|
|
5613
|
+
(t === "lr" || t === "rl") && Jc(e);
|
|
5512
5614
|
}
|
|
5513
|
-
function
|
|
5615
|
+
function qc(e) {
|
|
5514
5616
|
let t = e.graph().rankdir?.toLowerCase();
|
|
5515
|
-
(t === "bt" || t === "rl") &&
|
|
5617
|
+
(t === "bt" || t === "rl") && Xc(e), (t === "lr" || t === "rl") && (Qc(e), Jc(e));
|
|
5516
5618
|
}
|
|
5517
|
-
function
|
|
5518
|
-
e.nodes().forEach((t) =>
|
|
5619
|
+
function Jc(e) {
|
|
5620
|
+
e.nodes().forEach((t) => Yc(e.node(t))), e.edges().forEach((t) => Yc(e.edge(t)));
|
|
5519
5621
|
}
|
|
5520
|
-
function
|
|
5622
|
+
function Yc(e) {
|
|
5521
5623
|
let t = e.width;
|
|
5522
5624
|
e.width = e.height, e.height = t;
|
|
5523
5625
|
}
|
|
5524
|
-
function
|
|
5525
|
-
e.nodes().forEach((t) =>
|
|
5626
|
+
function Xc(e) {
|
|
5627
|
+
e.nodes().forEach((t) => Zc(e.node(t))), e.edges().forEach((t) => {
|
|
5526
5628
|
var n;
|
|
5527
5629
|
let r = e.edge(t);
|
|
5528
|
-
(n = r.points) == null || n.forEach(
|
|
5630
|
+
(n = r.points) == null || n.forEach(Zc), Object.hasOwn(r, "y") && Zc(r);
|
|
5529
5631
|
});
|
|
5530
5632
|
}
|
|
5531
|
-
function
|
|
5633
|
+
function Zc(e) {
|
|
5532
5634
|
e.y = -e.y;
|
|
5533
5635
|
}
|
|
5534
|
-
function
|
|
5535
|
-
e.nodes().forEach((t) =>
|
|
5636
|
+
function Qc(e) {
|
|
5637
|
+
e.nodes().forEach((t) => $c(e.node(t))), e.edges().forEach((t) => {
|
|
5536
5638
|
var n;
|
|
5537
5639
|
let r = e.edge(t);
|
|
5538
|
-
(n = r.points) == null || n.forEach(
|
|
5640
|
+
(n = r.points) == null || n.forEach($c), Object.hasOwn(r, "x") && $c(r);
|
|
5539
5641
|
});
|
|
5540
5642
|
}
|
|
5541
|
-
function
|
|
5643
|
+
function $c(e) {
|
|
5542
5644
|
let t = e.x;
|
|
5543
5645
|
e.x = e.y, e.y = t;
|
|
5544
5646
|
}
|
|
5545
|
-
function
|
|
5546
|
-
let t = {}, n = e.nodes().filter((t) => !e.children(t).length), r = n.map((t) => e.node(t).rank), i =
|
|
5647
|
+
function el(e) {
|
|
5648
|
+
let t = {}, n = e.nodes().filter((t) => !e.children(t).length), r = n.map((t) => e.node(t).rank), i = Rs(js(Math.max, r) + 1).map(() => []);
|
|
5547
5649
|
function a(n) {
|
|
5548
5650
|
if (t[n]) return;
|
|
5549
5651
|
t[n] = !0;
|
|
@@ -5554,13 +5656,13 @@ function Jc(e) {
|
|
|
5554
5656
|
}
|
|
5555
5657
|
return n.sort((t, n) => e.node(t).rank - e.node(n).rank).forEach(a), i;
|
|
5556
5658
|
}
|
|
5557
|
-
function
|
|
5659
|
+
function tl(e, t) {
|
|
5558
5660
|
let n = 0;
|
|
5559
|
-
for (let r = 1; r < t.length; ++r) n +=
|
|
5661
|
+
for (let r = 1; r < t.length; ++r) n += nl(e, t[r - 1], t[r]);
|
|
5560
5662
|
return n;
|
|
5561
5663
|
}
|
|
5562
|
-
function
|
|
5563
|
-
let r =
|
|
5664
|
+
function nl(e, t, n) {
|
|
5665
|
+
let r = Vs(n, n.map((e, t) => t)), i = t.flatMap((t) => {
|
|
5564
5666
|
let n = e.outEdges(t);
|
|
5565
5667
|
return n ? n.map((t) => ({
|
|
5566
5668
|
pos: r[t.w],
|
|
@@ -5579,7 +5681,7 @@ function Xc(e, t, n) {
|
|
|
5579
5681
|
c += e.weight * n;
|
|
5580
5682
|
}), c;
|
|
5581
5683
|
}
|
|
5582
|
-
function
|
|
5684
|
+
function rl(e, t = []) {
|
|
5583
5685
|
return t.map((t) => {
|
|
5584
5686
|
let n = e.inEdges(t);
|
|
5585
5687
|
if (!n || !n.length) return { v: t };
|
|
@@ -5602,7 +5704,7 @@ function Zc(e, t = []) {
|
|
|
5602
5704
|
}
|
|
5603
5705
|
});
|
|
5604
5706
|
}
|
|
5605
|
-
function
|
|
5707
|
+
function il(e, t) {
|
|
5606
5708
|
let n = {};
|
|
5607
5709
|
return e.forEach((e, t) => {
|
|
5608
5710
|
let r = {
|
|
@@ -5616,13 +5718,13 @@ function Qc(e, t) {
|
|
|
5616
5718
|
}), t.edges().forEach((e) => {
|
|
5617
5719
|
let t = n[e.v], r = n[e.w];
|
|
5618
5720
|
t !== void 0 && r !== void 0 && (r.indegree++, t.out.push(r));
|
|
5619
|
-
}),
|
|
5721
|
+
}), al(Object.values(n).filter((e) => !e.indegree));
|
|
5620
5722
|
}
|
|
5621
|
-
function
|
|
5723
|
+
function al(e) {
|
|
5622
5724
|
let t = [];
|
|
5623
5725
|
function n(e) {
|
|
5624
5726
|
return (t) => {
|
|
5625
|
-
t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) &&
|
|
5727
|
+
t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) && ol(e, t);
|
|
5626
5728
|
};
|
|
5627
5729
|
}
|
|
5628
5730
|
function r(t) {
|
|
@@ -5634,46 +5736,46 @@ function $c(e) {
|
|
|
5634
5736
|
let i = e.pop();
|
|
5635
5737
|
t.push(i), i.in.reverse().forEach(n(i)), i.out.forEach(r(i));
|
|
5636
5738
|
}
|
|
5637
|
-
return t.filter((e) => !e.merged).map((e) =>
|
|
5739
|
+
return t.filter((e) => !e.merged).map((e) => zs(e, [
|
|
5638
5740
|
"vs",
|
|
5639
5741
|
"i",
|
|
5640
5742
|
"barycenter",
|
|
5641
5743
|
"weight"
|
|
5642
5744
|
]));
|
|
5643
5745
|
}
|
|
5644
|
-
function
|
|
5746
|
+
function ol(e, t) {
|
|
5645
5747
|
let n = 0, r = 0;
|
|
5646
5748
|
e.weight && (n += e.barycenter * e.weight, r += e.weight), t.weight && (n += t.barycenter * t.weight, r += t.weight), e.vs = t.vs.concat(e.vs), e.barycenter = n / r, e.weight = r, e.i = Math.min(t.i, e.i), t.merged = !0;
|
|
5647
5749
|
}
|
|
5648
|
-
function
|
|
5649
|
-
let n =
|
|
5650
|
-
r.sort(
|
|
5651
|
-
c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c =
|
|
5750
|
+
function sl(e, t) {
|
|
5751
|
+
let n = Ns(e, (e) => Object.hasOwn(e, "barycenter")), r = n.lhs, i = n.rhs.sort((e, t) => t.i - e.i), a = [], o = 0, s = 0, c = 0;
|
|
5752
|
+
r.sort(ll(!!t)), c = cl(a, i, c), r.forEach((e) => {
|
|
5753
|
+
c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c = cl(a, i, c);
|
|
5652
5754
|
});
|
|
5653
5755
|
let l = { vs: a.flat(1) };
|
|
5654
5756
|
return s && (l.barycenter = o / s, l.weight = s), l;
|
|
5655
5757
|
}
|
|
5656
|
-
function
|
|
5758
|
+
function cl(e, t, n) {
|
|
5657
5759
|
let r;
|
|
5658
5760
|
for (; t.length && (r = t[t.length - 1]).i <= n;) t.pop(), e.push(r.vs), n++;
|
|
5659
5761
|
return n;
|
|
5660
5762
|
}
|
|
5661
|
-
function
|
|
5763
|
+
function ll(e) {
|
|
5662
5764
|
return (t, n) => t.barycenter < n.barycenter ? -1 : t.barycenter > n.barycenter ? 1 : e ? n.i - t.i : t.i - n.i;
|
|
5663
5765
|
}
|
|
5664
|
-
function
|
|
5766
|
+
function ul(e, t, n, r) {
|
|
5665
5767
|
let i = e.children(t), a = e.node(t), o = a ? a.borderLeft : void 0, s = a ? a.borderRight : void 0, c = {};
|
|
5666
5768
|
o && (i = i.filter((e) => e !== o && e !== s));
|
|
5667
|
-
let l =
|
|
5769
|
+
let l = rl(e, i);
|
|
5668
5770
|
l.forEach((t) => {
|
|
5669
5771
|
if (e.children(t.v).length) {
|
|
5670
|
-
let i =
|
|
5671
|
-
c[t.v] = i, Object.hasOwn(i, "barycenter") &&
|
|
5772
|
+
let i = ul(e, t.v, n, r);
|
|
5773
|
+
c[t.v] = i, Object.hasOwn(i, "barycenter") && fl(t, i);
|
|
5672
5774
|
}
|
|
5673
5775
|
});
|
|
5674
|
-
let u =
|
|
5675
|
-
|
|
5676
|
-
let d =
|
|
5776
|
+
let u = il(l, n);
|
|
5777
|
+
dl(u, c);
|
|
5778
|
+
let d = sl(u, r);
|
|
5677
5779
|
if (o && s) {
|
|
5678
5780
|
d.vs = [
|
|
5679
5781
|
o,
|
|
@@ -5688,17 +5790,17 @@ function il(e, t, n, r) {
|
|
|
5688
5790
|
}
|
|
5689
5791
|
return d;
|
|
5690
5792
|
}
|
|
5691
|
-
function
|
|
5793
|
+
function dl(e, t) {
|
|
5692
5794
|
e.forEach((e) => {
|
|
5693
5795
|
e.vs = e.vs.flatMap((e) => t[e] ? t[e].vs : e);
|
|
5694
5796
|
});
|
|
5695
5797
|
}
|
|
5696
|
-
function
|
|
5798
|
+
function fl(e, t) {
|
|
5697
5799
|
e.barycenter === void 0 ? (e.barycenter = t.barycenter, e.weight = t.weight) : (e.barycenter = (e.barycenter * e.weight + t.barycenter * t.weight) / (e.weight + t.weight), e.weight += t.weight);
|
|
5698
5800
|
}
|
|
5699
|
-
function
|
|
5801
|
+
function pl(e, t, n, r) {
|
|
5700
5802
|
r ||= e.nodes();
|
|
5701
|
-
let i =
|
|
5803
|
+
let i = ml(e), a = new $({ compound: !0 }).setGraph({ root: i }).setDefaultNodeLabel((t) => e.node(t));
|
|
5702
5804
|
return r.forEach((r) => {
|
|
5703
5805
|
let o = e.node(r), s = e.parent(r);
|
|
5704
5806
|
if (o.rank === t || o.minRank <= t && t <= o.maxRank) {
|
|
@@ -5714,12 +5816,12 @@ function sl(e, t, n, r) {
|
|
|
5714
5816
|
}
|
|
5715
5817
|
}), a;
|
|
5716
5818
|
}
|
|
5717
|
-
function
|
|
5819
|
+
function ml(e) {
|
|
5718
5820
|
let t;
|
|
5719
|
-
for (; e.hasNode(t =
|
|
5821
|
+
for (; e.hasNode(t = Ls("_root")););
|
|
5720
5822
|
return t;
|
|
5721
5823
|
}
|
|
5722
|
-
function
|
|
5824
|
+
function hl(e, t, n) {
|
|
5723
5825
|
let r = {}, i;
|
|
5724
5826
|
n.forEach((n) => {
|
|
5725
5827
|
let a = e.parent(n), o, s;
|
|
@@ -5732,22 +5834,22 @@ function ll(e, t, n) {
|
|
|
5732
5834
|
}
|
|
5733
5835
|
});
|
|
5734
5836
|
}
|
|
5735
|
-
function
|
|
5837
|
+
function gl(e, t = {}) {
|
|
5736
5838
|
if (typeof t.customOrder == "function") {
|
|
5737
|
-
t.customOrder(e,
|
|
5839
|
+
t.customOrder(e, gl);
|
|
5738
5840
|
return;
|
|
5739
5841
|
}
|
|
5740
|
-
let n =
|
|
5741
|
-
if (
|
|
5842
|
+
let n = Ms(e), r = _l(e, Rs(1, n + 1), "inEdges"), i = _l(e, Rs(n - 1, -1, -1), "outEdges"), a = el(e);
|
|
5843
|
+
if (yl(e, a), t.disableOptimalOrderHeuristic) return;
|
|
5742
5844
|
let o = Infinity, s, c = t.constraints || [];
|
|
5743
5845
|
for (let t = 0, n = 0; n < 4; ++t, ++n) {
|
|
5744
|
-
|
|
5745
|
-
let l =
|
|
5846
|
+
vl(t % 2 ? r : i, t % 4 >= 2, c), a = Ts(e);
|
|
5847
|
+
let l = tl(e, a);
|
|
5746
5848
|
l < o ? (n = 0, s = Object.assign({}, a), o = l) : l === o && (s = structuredClone(a));
|
|
5747
5849
|
}
|
|
5748
|
-
|
|
5850
|
+
yl(e, s);
|
|
5749
5851
|
}
|
|
5750
|
-
function
|
|
5852
|
+
function _l(e, t, n) {
|
|
5751
5853
|
let r = /* @__PURE__ */ new Map(), i = (e, t) => {
|
|
5752
5854
|
r.has(e) || r.set(e, []), r.get(e).push(t);
|
|
5753
5855
|
};
|
|
@@ -5756,48 +5858,48 @@ function dl(e, t, n) {
|
|
|
5756
5858
|
if (typeof n.rank == "number" && i(n.rank, t), typeof n.minRank == "number" && typeof n.maxRank == "number") for (let e = n.minRank; e <= n.maxRank; e++) e !== n.rank && i(e, t);
|
|
5757
5859
|
}
|
|
5758
5860
|
return t.map(function(t) {
|
|
5759
|
-
return
|
|
5861
|
+
return pl(e, t, n, r.get(t) || []);
|
|
5760
5862
|
});
|
|
5761
5863
|
}
|
|
5762
|
-
function
|
|
5864
|
+
function vl(e, t, n) {
|
|
5763
5865
|
let r = new $();
|
|
5764
5866
|
e.forEach(function(e) {
|
|
5765
5867
|
n.forEach((e) => r.setEdge(e.left, e.right));
|
|
5766
|
-
let i = e.graph().root, a =
|
|
5767
|
-
a.vs.forEach((t, n) => e.node(t).order = n),
|
|
5868
|
+
let i = e.graph().root, a = ul(e, i, r, t);
|
|
5869
|
+
a.vs.forEach((t, n) => e.node(t).order = n), hl(e, r, a.vs);
|
|
5768
5870
|
});
|
|
5769
5871
|
}
|
|
5770
|
-
function
|
|
5872
|
+
function yl(e, t) {
|
|
5771
5873
|
Object.values(t).forEach((t) => t.forEach((t, n) => e.node(t).order = n));
|
|
5772
5874
|
}
|
|
5773
|
-
function
|
|
5875
|
+
function bl(e, t) {
|
|
5774
5876
|
let n = {};
|
|
5775
5877
|
function r(t, r) {
|
|
5776
5878
|
let i = 0, a = 0, o = t.length, s = r[r.length - 1];
|
|
5777
5879
|
return r.forEach((t, c) => {
|
|
5778
|
-
let l =
|
|
5880
|
+
let l = Sl(e, t), u = l ? e.node(l).order : o;
|
|
5779
5881
|
(l || t === s) && (r.slice(a, c + 1).forEach((t) => {
|
|
5780
5882
|
let r = e.predecessors(t);
|
|
5781
5883
|
r && r.forEach((r) => {
|
|
5782
5884
|
let a = e.node(r), o = a.order;
|
|
5783
|
-
(o < i || u < o) && !(a.dummy && e.node(t).dummy) &&
|
|
5885
|
+
(o < i || u < o) && !(a.dummy && e.node(t).dummy) && Cl(n, r, t);
|
|
5784
5886
|
});
|
|
5785
5887
|
}), a = c + 1, i = u);
|
|
5786
5888
|
}), r;
|
|
5787
5889
|
}
|
|
5788
5890
|
return t.length && t.reduce(r), n;
|
|
5789
5891
|
}
|
|
5790
|
-
function
|
|
5892
|
+
function xl(e, t) {
|
|
5791
5893
|
let n = {};
|
|
5792
5894
|
function r(t, r, i, a, o) {
|
|
5793
|
-
|
|
5895
|
+
Rs(r, i).forEach((r) => {
|
|
5794
5896
|
let i = t[r];
|
|
5795
5897
|
if (i !== void 0 && e.node(i).dummy) {
|
|
5796
5898
|
let t = e.predecessors(i);
|
|
5797
5899
|
t && t.forEach((t) => {
|
|
5798
5900
|
if (t === void 0) return;
|
|
5799
5901
|
let r = e.node(t);
|
|
5800
|
-
r.dummy && (r.order < a || r.order > o) &&
|
|
5902
|
+
r.dummy && (r.order < a || r.order > o) && Cl(n, t, i);
|
|
5801
5903
|
});
|
|
5802
5904
|
}
|
|
5803
5905
|
});
|
|
@@ -5818,13 +5920,13 @@ function hl(e, t) {
|
|
|
5818
5920
|
}
|
|
5819
5921
|
return t.length && t.reduce(i), n;
|
|
5820
5922
|
}
|
|
5821
|
-
function
|
|
5923
|
+
function Sl(e, t) {
|
|
5822
5924
|
if (e.node(t).dummy) {
|
|
5823
5925
|
let n = e.predecessors(t);
|
|
5824
5926
|
if (n) return n.find((t) => e.node(t).dummy);
|
|
5825
5927
|
}
|
|
5826
5928
|
}
|
|
5827
|
-
function
|
|
5929
|
+
function Cl(e, t, n) {
|
|
5828
5930
|
if (t > n) {
|
|
5829
5931
|
let e = t;
|
|
5830
5932
|
t = n, n = e;
|
|
@@ -5832,7 +5934,7 @@ function _l(e, t, n) {
|
|
|
5832
5934
|
let r = e[t];
|
|
5833
5935
|
r || (e[t] = r = {}), r[n] = !0;
|
|
5834
5936
|
}
|
|
5835
|
-
function
|
|
5937
|
+
function wl(e, t, n) {
|
|
5836
5938
|
if (t > n) {
|
|
5837
5939
|
let e = t;
|
|
5838
5940
|
t = n, n = e;
|
|
@@ -5840,7 +5942,7 @@ function vl(e, t, n) {
|
|
|
5840
5942
|
let r = e[t];
|
|
5841
5943
|
return r !== void 0 && Object.hasOwn(r, n);
|
|
5842
5944
|
}
|
|
5843
|
-
function
|
|
5945
|
+
function Tl(e, t, n, r) {
|
|
5844
5946
|
let i = {}, a = {}, o = {};
|
|
5845
5947
|
return t.forEach((e) => {
|
|
5846
5948
|
e.forEach((e, t) => {
|
|
@@ -5859,7 +5961,7 @@ function yl(e, t, n, r) {
|
|
|
5859
5961
|
let c = r[s];
|
|
5860
5962
|
if (c === void 0) continue;
|
|
5861
5963
|
let l = o[c];
|
|
5862
|
-
if (l !== void 0 && a[e] === e && t < l && !
|
|
5964
|
+
if (l !== void 0 && a[e] === e && t < l && !wl(n, e, c)) {
|
|
5863
5965
|
let n = i[c];
|
|
5864
5966
|
n !== void 0 && (a[c] = e, a[e] = i[e] = n, t = l);
|
|
5865
5967
|
}
|
|
@@ -5871,8 +5973,8 @@ function yl(e, t, n, r) {
|
|
|
5871
5973
|
align: a
|
|
5872
5974
|
};
|
|
5873
5975
|
}
|
|
5874
|
-
function
|
|
5875
|
-
let a = {}, o =
|
|
5976
|
+
function El(e, t, n, r, i = !1) {
|
|
5977
|
+
let a = {}, o = Dl(e, t, n, i), s = i ? "borderLeft" : "borderRight";
|
|
5876
5978
|
function c(e, t) {
|
|
5877
5979
|
let n = o.nodes().slice(), r = {}, i = n.pop();
|
|
5878
5980
|
for (; i;) {
|
|
@@ -5911,8 +6013,8 @@ function bl(e, t, n, r, i = !1) {
|
|
|
5911
6013
|
t !== void 0 && (a[e] = a[t] ?? 0);
|
|
5912
6014
|
}), a;
|
|
5913
6015
|
}
|
|
5914
|
-
function
|
|
5915
|
-
let i = new $(), a = e.graph(), o =
|
|
6016
|
+
function Dl(e, t, n, r) {
|
|
6017
|
+
let i = new $(), a = e.graph(), o = Ml(a.nodesep, a.edgesep, r);
|
|
5916
6018
|
return t.forEach((t) => {
|
|
5917
6019
|
let r;
|
|
5918
6020
|
t.forEach((t) => {
|
|
@@ -5930,31 +6032,31 @@ function xl(e, t, n, r) {
|
|
|
5930
6032
|
});
|
|
5931
6033
|
}), i;
|
|
5932
6034
|
}
|
|
5933
|
-
function
|
|
6035
|
+
function Ol(e, t) {
|
|
5934
6036
|
return Object.values(t).reduce((t, n) => {
|
|
5935
6037
|
let r = -Infinity, i = Infinity;
|
|
5936
6038
|
Object.entries(n).forEach(([t, n]) => {
|
|
5937
|
-
let a =
|
|
6039
|
+
let a = Nl(e, t) / 2;
|
|
5938
6040
|
r = Math.max(n + a, r), i = Math.min(n - a, i);
|
|
5939
6041
|
});
|
|
5940
6042
|
let a = r - i;
|
|
5941
6043
|
return a < t[0] && (t = [a, n]), t;
|
|
5942
6044
|
}, [Infinity, null])[1];
|
|
5943
6045
|
}
|
|
5944
|
-
function
|
|
5945
|
-
let n = Object.values(t), r =
|
|
6046
|
+
function kl(e, t) {
|
|
6047
|
+
let n = Object.values(t), r = js(Math.min, n), i = js(Math.max, n);
|
|
5946
6048
|
["u", "d"].forEach((n) => {
|
|
5947
6049
|
["l", "r"].forEach((a) => {
|
|
5948
6050
|
let o = n + a, s = e[o];
|
|
5949
6051
|
if (!s || s === t) return;
|
|
5950
|
-
let c = Object.values(s), l = r -
|
|
5951
|
-
a !== "l" && (l = i -
|
|
6052
|
+
let c = Object.values(s), l = r - js(Math.min, c);
|
|
6053
|
+
a !== "l" && (l = i - js(Math.max, c)), l && (e[o] = Bs(s, (e) => e + l));
|
|
5952
6054
|
});
|
|
5953
6055
|
});
|
|
5954
6056
|
}
|
|
5955
|
-
function
|
|
6057
|
+
function Al(e, t = void 0) {
|
|
5956
6058
|
let n = e.ul;
|
|
5957
|
-
return n ?
|
|
6059
|
+
return n ? Bs(n, (n, r) => {
|
|
5958
6060
|
if (t) {
|
|
5959
6061
|
let n = e[t.toLowerCase()];
|
|
5960
6062
|
if (n && n[r] !== void 0) return n[r];
|
|
@@ -5966,17 +6068,17 @@ function wl(e, t = void 0) {
|
|
|
5966
6068
|
return ((i[1] ?? 0) + (i[2] ?? 0)) / 2;
|
|
5967
6069
|
}) : {};
|
|
5968
6070
|
}
|
|
5969
|
-
function
|
|
5970
|
-
let t =
|
|
6071
|
+
function jl(e) {
|
|
6072
|
+
let t = Ts(e), n = Object.assign(bl(e, t), xl(e, t)), r = {}, i;
|
|
5971
6073
|
return ["u", "d"].forEach((a) => {
|
|
5972
6074
|
i = a === "u" ? t : Object.values(t).reverse(), ["l", "r"].forEach((t) => {
|
|
5973
6075
|
t === "r" && (i = i.map((e) => Object.values(e).reverse()));
|
|
5974
|
-
let o =
|
|
5975
|
-
t === "r" && (s =
|
|
6076
|
+
let o = Tl(e, i, n, (t) => (a === "u" ? e.predecessors(t) : e.successors(t)) || []), s = El(e, i, o.root, o.align, t === "r");
|
|
6077
|
+
t === "r" && (s = Bs(s, (e) => -e)), r[a + t] = s;
|
|
5976
6078
|
});
|
|
5977
|
-
}),
|
|
6079
|
+
}), kl(r, Ol(e, r)), Al(r, e.graph().align);
|
|
5978
6080
|
}
|
|
5979
|
-
function
|
|
6081
|
+
function Ml(e, t, n) {
|
|
5980
6082
|
return (r, i, a) => {
|
|
5981
6083
|
let o = r.node(i), s = r.node(a), c = 0, l;
|
|
5982
6084
|
if (c += o.width / 2, Object.hasOwn(o, "labelpos")) switch (o.labelpos.toLowerCase()) {
|
|
@@ -5998,14 +6100,14 @@ function El(e, t, n) {
|
|
|
5998
6100
|
return l && (c += n ? l : -l), c;
|
|
5999
6101
|
};
|
|
6000
6102
|
}
|
|
6001
|
-
function
|
|
6103
|
+
function Nl(e, t) {
|
|
6002
6104
|
return e.node(t).width;
|
|
6003
6105
|
}
|
|
6004
|
-
function
|
|
6005
|
-
e =
|
|
6106
|
+
function Pl(e) {
|
|
6107
|
+
e = Cs(e), Fl(e), Object.entries(jl(e)).forEach(([t, n]) => e.node(t).x = n);
|
|
6006
6108
|
}
|
|
6007
|
-
function
|
|
6008
|
-
let t =
|
|
6109
|
+
function Fl(e) {
|
|
6110
|
+
let t = Ts(e), n = e.graph(), r = n.ranksep, i = n.rankalign, a = 0;
|
|
6009
6111
|
t.forEach((t) => {
|
|
6010
6112
|
let n = t.reduce((t, n) => {
|
|
6011
6113
|
let r = e.node(n).height ?? 0;
|
|
@@ -6017,17 +6119,17 @@ function kl(e) {
|
|
|
6017
6119
|
}), a += n + r;
|
|
6018
6120
|
});
|
|
6019
6121
|
}
|
|
6020
|
-
function
|
|
6021
|
-
let n = t.debugTiming ?
|
|
6122
|
+
function Il(e, t = {}) {
|
|
6123
|
+
let n = t.debugTiming ? Ps : Fs;
|
|
6022
6124
|
return n("layout", () => {
|
|
6023
|
-
let r = n(" buildLayoutGraph", () =>
|
|
6024
|
-
return n(" runLayout", () =>
|
|
6125
|
+
let r = n(" buildLayoutGraph", () => ql(e));
|
|
6126
|
+
return n(" runLayout", () => Ll(r, n, t)), n(" updateInputGraph", () => Rl(e, r)), r;
|
|
6025
6127
|
});
|
|
6026
6128
|
}
|
|
6027
|
-
function
|
|
6028
|
-
t(" makeSpaceForEdgeLabels", () =>
|
|
6129
|
+
function Ll(e, t, n) {
|
|
6130
|
+
t(" makeSpaceForEdgeLabels", () => Jl(e)), t(" removeSelfEdges", () => ru(e)), t(" acyclic", () => tc(e)), t(" nestingGraph.run", () => Rc(e)), t(" rank", () => kc(Cs(e))), t(" injectEdgeLabelProxies", () => Yl(e)), t(" removeEmptyRanks", () => Ds(e)), t(" nestingGraph.cleanup", () => Hc(e)), t(" normalizeRanks", () => Es(e)), t(" assignRankMinMax", () => Xl(e)), t(" removeEdgeLabelProxies", () => Zl(e)), t(" normalize.run", () => ic(e)), t(" parentDummyChains", () => Pc(e)), t(" addBorderSegments", () => Uc(e)), t(" order", () => gl(e, n)), t(" insertSelfEdges", () => iu(e)), t(" adjustCoordinateSystem", () => Kc(e)), t(" position", () => Pl(e)), t(" positionSelfEdges", () => au(e)), t(" removeBorderNodes", () => nu(e)), t(" normalize.undo", () => oc(e)), t(" fixupEdgeLabelCoords", () => eu(e)), t(" undoCoordinateSystem", () => qc(e)), t(" translateGraph", () => Ql(e)), t(" assignNodeIntersects", () => $l(e)), t(" reversePoints", () => tu(e)), t(" acyclic.undo", () => rc(e));
|
|
6029
6131
|
}
|
|
6030
|
-
function
|
|
6132
|
+
function Rl(e, t) {
|
|
6031
6133
|
e.nodes().forEach((n) => {
|
|
6032
6134
|
let r = e.node(n), i = t.node(n);
|
|
6033
6135
|
r && (r.x = i.x, r.y = i.y, r.order = i.order, r.rank = i.rank, t.children(n).length && (r.width = i.width, r.height = i.height));
|
|
@@ -6036,89 +6138,89 @@ function Ml(e, t) {
|
|
|
6036
6138
|
r.points = i.points, Object.hasOwn(i, "x") && (r.x = i.x, r.y = i.y);
|
|
6037
6139
|
}), e.graph().width = t.graph().width, e.graph().height = t.graph().height;
|
|
6038
6140
|
}
|
|
6039
|
-
var
|
|
6141
|
+
var zl = [
|
|
6040
6142
|
"nodesep",
|
|
6041
6143
|
"edgesep",
|
|
6042
6144
|
"ranksep",
|
|
6043
6145
|
"marginx",
|
|
6044
6146
|
"marginy"
|
|
6045
|
-
],
|
|
6147
|
+
], Bl = {
|
|
6046
6148
|
ranksep: 50,
|
|
6047
6149
|
edgesep: 20,
|
|
6048
6150
|
nodesep: 50,
|
|
6049
6151
|
rankdir: "TB",
|
|
6050
6152
|
rankalign: "center"
|
|
6051
|
-
},
|
|
6153
|
+
}, Vl = [
|
|
6052
6154
|
"acyclicer",
|
|
6053
6155
|
"ranker",
|
|
6054
6156
|
"rankdir",
|
|
6055
6157
|
"align",
|
|
6056
6158
|
"rankalign"
|
|
6057
|
-
],
|
|
6159
|
+
], Hl = [
|
|
6058
6160
|
"width",
|
|
6059
6161
|
"height",
|
|
6060
6162
|
"rank"
|
|
6061
|
-
],
|
|
6163
|
+
], Ul = {
|
|
6062
6164
|
width: 0,
|
|
6063
6165
|
height: 0
|
|
6064
|
-
},
|
|
6166
|
+
}, Wl = [
|
|
6065
6167
|
"minlen",
|
|
6066
6168
|
"weight",
|
|
6067
6169
|
"width",
|
|
6068
6170
|
"height",
|
|
6069
6171
|
"labeloffset"
|
|
6070
|
-
],
|
|
6172
|
+
], Gl = {
|
|
6071
6173
|
minlen: 1,
|
|
6072
6174
|
weight: 1,
|
|
6073
6175
|
width: 0,
|
|
6074
6176
|
height: 0,
|
|
6075
6177
|
labeloffset: 10,
|
|
6076
6178
|
labelpos: "r"
|
|
6077
|
-
},
|
|
6078
|
-
function
|
|
6179
|
+
}, Kl = ["labelpos"];
|
|
6180
|
+
function ql(e) {
|
|
6079
6181
|
let t = new $({
|
|
6080
6182
|
multigraph: !0,
|
|
6081
6183
|
compound: !0
|
|
6082
|
-
}), n =
|
|
6083
|
-
return t.setGraph(Object.assign({},
|
|
6084
|
-
let r =
|
|
6085
|
-
Object.keys(
|
|
6086
|
-
r[e] === void 0 && (r[e] =
|
|
6184
|
+
}), n = su(e.graph());
|
|
6185
|
+
return t.setGraph(Object.assign({}, Bl, ou(n, zl), zs(n, Vl))), e.nodes().forEach((n) => {
|
|
6186
|
+
let r = ou(su(e.node(n)), Hl);
|
|
6187
|
+
Object.keys(Ul).forEach((e) => {
|
|
6188
|
+
r[e] === void 0 && (r[e] = Ul[e]);
|
|
6087
6189
|
}), t.setNode(n, r);
|
|
6088
6190
|
let i = e.parent(n);
|
|
6089
6191
|
i !== void 0 && t.setParent(n, i);
|
|
6090
6192
|
}), e.edges().forEach((n) => {
|
|
6091
|
-
let r =
|
|
6092
|
-
t.setEdge(n, Object.assign({},
|
|
6193
|
+
let r = su(e.edge(n));
|
|
6194
|
+
t.setEdge(n, Object.assign({}, Gl, ou(r, Wl), zs(r, Kl)));
|
|
6093
6195
|
}), t;
|
|
6094
6196
|
}
|
|
6095
|
-
function
|
|
6197
|
+
function Jl(e) {
|
|
6096
6198
|
let t = e.graph();
|
|
6097
6199
|
t.ranksep /= 2, e.edges().forEach((n) => {
|
|
6098
6200
|
let r = e.edge(n);
|
|
6099
6201
|
r.minlen *= 2, r.labelpos.toLowerCase() !== "c" && (t.rankdir === "TB" || t.rankdir === "BT" ? r.width += r.labeloffset : r.height += r.labeloffset);
|
|
6100
6202
|
});
|
|
6101
6203
|
}
|
|
6102
|
-
function
|
|
6204
|
+
function Yl(e) {
|
|
6103
6205
|
e.edges().forEach((t) => {
|
|
6104
6206
|
let n = e.edge(t);
|
|
6105
6207
|
if (n.width && n.height) {
|
|
6106
6208
|
let n = e.node(t.v);
|
|
6107
|
-
|
|
6209
|
+
xs(e, "edge-proxy", {
|
|
6108
6210
|
rank: (e.node(t.w).rank - n.rank) / 2 + n.rank,
|
|
6109
6211
|
e: t
|
|
6110
6212
|
}, "_ep");
|
|
6111
6213
|
}
|
|
6112
6214
|
});
|
|
6113
6215
|
}
|
|
6114
|
-
function
|
|
6216
|
+
function Xl(e) {
|
|
6115
6217
|
let t = 0;
|
|
6116
6218
|
e.nodes().forEach((n) => {
|
|
6117
6219
|
let r = e.node(n);
|
|
6118
6220
|
r.borderTop && (r.minRank = e.node(r.borderTop).rank, r.maxRank = e.node(r.borderBottom).rank, t = Math.max(t, r.maxRank));
|
|
6119
6221
|
}), e.graph().maxRank = t;
|
|
6120
6222
|
}
|
|
6121
|
-
function
|
|
6223
|
+
function Zl(e) {
|
|
6122
6224
|
e.nodes().forEach((t) => {
|
|
6123
6225
|
let n = e.node(t);
|
|
6124
6226
|
if (n.dummy === "edge-proxy") {
|
|
@@ -6127,7 +6229,7 @@ function Gl(e) {
|
|
|
6127
6229
|
}
|
|
6128
6230
|
});
|
|
6129
6231
|
}
|
|
6130
|
-
function
|
|
6232
|
+
function Ql(e) {
|
|
6131
6233
|
let t = Infinity, n = 0, r = Infinity, i = 0, a = e.graph(), o = a.marginx || 0, s = a.marginy || 0;
|
|
6132
6234
|
function c(e) {
|
|
6133
6235
|
let a = e.x, o = e.y, s = e.width, c = e.height;
|
|
@@ -6146,13 +6248,13 @@ function Kl(e) {
|
|
|
6146
6248
|
}), Object.hasOwn(i, "x") && (i.x -= t), Object.hasOwn(i, "y") && (i.y -= r);
|
|
6147
6249
|
}), a.width = n - t + o, a.height = i - r + s;
|
|
6148
6250
|
}
|
|
6149
|
-
function
|
|
6251
|
+
function $l(e) {
|
|
6150
6252
|
e.edges().forEach((t) => {
|
|
6151
6253
|
let n = e.edge(t), r = e.node(t.v), i = e.node(t.w), a, o;
|
|
6152
|
-
n.points ? (a = n.points[0], o = n.points[n.points.length - 1]) : (n.points = [], a = i, o = r), n.points.unshift(
|
|
6254
|
+
n.points ? (a = n.points[0], o = n.points[n.points.length - 1]) : (n.points = [], a = i, o = r), n.points.unshift(ws(r, a)), n.points.push(ws(i, o));
|
|
6153
6255
|
});
|
|
6154
6256
|
}
|
|
6155
|
-
function
|
|
6257
|
+
function eu(e) {
|
|
6156
6258
|
e.edges().forEach((t) => {
|
|
6157
6259
|
let n = e.edge(t);
|
|
6158
6260
|
if (Object.hasOwn(n, "x")) switch ((n.labelpos === "l" || n.labelpos === "r") && (n.width -= n.labeloffset), n.labelpos) {
|
|
@@ -6165,13 +6267,13 @@ function Jl(e) {
|
|
|
6165
6267
|
}
|
|
6166
6268
|
});
|
|
6167
6269
|
}
|
|
6168
|
-
function
|
|
6270
|
+
function tu(e) {
|
|
6169
6271
|
e.edges().forEach((t) => {
|
|
6170
6272
|
let n = e.edge(t);
|
|
6171
6273
|
n.reversed && n.points.reverse();
|
|
6172
6274
|
});
|
|
6173
6275
|
}
|
|
6174
|
-
function
|
|
6276
|
+
function nu(e) {
|
|
6175
6277
|
e.nodes().forEach((t) => {
|
|
6176
6278
|
if (e.children(t).length) {
|
|
6177
6279
|
let n = e.node(t), r = e.node(n.borderTop), i = e.node(n.borderBottom), a = e.node(n.borderLeft[n.borderLeft.length - 1]), o = e.node(n.borderRight[n.borderRight.length - 1]);
|
|
@@ -6181,7 +6283,7 @@ function Xl(e) {
|
|
|
6181
6283
|
e.node(t).dummy === "border" && e.removeNode(t);
|
|
6182
6284
|
});
|
|
6183
6285
|
}
|
|
6184
|
-
function
|
|
6286
|
+
function ru(e) {
|
|
6185
6287
|
e.edges().forEach((t) => {
|
|
6186
6288
|
if (t.v === t.w) {
|
|
6187
6289
|
let n = e.node(t.v);
|
|
@@ -6192,13 +6294,13 @@ function Zl(e) {
|
|
|
6192
6294
|
}
|
|
6193
6295
|
});
|
|
6194
6296
|
}
|
|
6195
|
-
function
|
|
6196
|
-
|
|
6297
|
+
function iu(e) {
|
|
6298
|
+
Ts(e).forEach((t) => {
|
|
6197
6299
|
let n = 0;
|
|
6198
6300
|
t.forEach((t, r) => {
|
|
6199
6301
|
let i = e.node(t);
|
|
6200
6302
|
i.order = r + n, (i.selfEdges || []).forEach((t) => {
|
|
6201
|
-
|
|
6303
|
+
xs(e, "selfedge", {
|
|
6202
6304
|
width: t.label.width,
|
|
6203
6305
|
height: t.label.height,
|
|
6204
6306
|
rank: i.rank,
|
|
@@ -6210,7 +6312,7 @@ function Ql(e) {
|
|
|
6210
6312
|
});
|
|
6211
6313
|
});
|
|
6212
6314
|
}
|
|
6213
|
-
function
|
|
6315
|
+
function au(e) {
|
|
6214
6316
|
e.nodes().forEach((t) => {
|
|
6215
6317
|
let n = e.node(t);
|
|
6216
6318
|
if (n.dummy === "selfedge") {
|
|
@@ -6240,17 +6342,17 @@ function $l(e) {
|
|
|
6240
6342
|
}
|
|
6241
6343
|
});
|
|
6242
6344
|
}
|
|
6243
|
-
function
|
|
6244
|
-
return
|
|
6345
|
+
function ou(e, t) {
|
|
6346
|
+
return Bs(zs(e, t), Number);
|
|
6245
6347
|
}
|
|
6246
|
-
function
|
|
6348
|
+
function su(e) {
|
|
6247
6349
|
let t = {};
|
|
6248
6350
|
return e && Object.entries(e).forEach(([e, n]) => {
|
|
6249
6351
|
typeof e == "string" && (e = e.toLowerCase()), t[e] = n;
|
|
6250
6352
|
}), t;
|
|
6251
6353
|
}
|
|
6252
|
-
function
|
|
6253
|
-
let t =
|
|
6354
|
+
function cu(e) {
|
|
6355
|
+
let t = Ts(e), n = new $({
|
|
6254
6356
|
compound: !0,
|
|
6255
6357
|
multigraph: !0
|
|
6256
6358
|
}).setGraph({});
|
|
@@ -6261,26 +6363,26 @@ function nu(e) {
|
|
|
6261
6363
|
n.setNode(r, { rank: "same" }), e.reduce((e, t) => (n.setEdge(e, t, { style: "invis" }), t));
|
|
6262
6364
|
}), n;
|
|
6263
6365
|
}
|
|
6264
|
-
var
|
|
6265
|
-
graphlib:
|
|
6266
|
-
version:
|
|
6267
|
-
layout:
|
|
6268
|
-
debug:
|
|
6366
|
+
var lu = {
|
|
6367
|
+
graphlib: Fo,
|
|
6368
|
+
version: Us,
|
|
6369
|
+
layout: Il,
|
|
6370
|
+
debug: cu,
|
|
6269
6371
|
util: {
|
|
6270
|
-
time:
|
|
6271
|
-
notime:
|
|
6372
|
+
time: Ps,
|
|
6373
|
+
notime: Fs
|
|
6272
6374
|
}
|
|
6273
|
-
},
|
|
6375
|
+
}, uu = 172, du = 36, fu = (e) => {
|
|
6274
6376
|
let { initialData: t } = e, n = P((e, t, n = "TB") => {
|
|
6275
|
-
let r = new
|
|
6377
|
+
let r = new lu.graphlib.Graph().setDefaultEdgeLabel(() => ({})), i = n === "LR";
|
|
6276
6378
|
return r.setGraph({ rankdir: n }), e.forEach((e) => {
|
|
6277
6379
|
r.setNode(e.id, {
|
|
6278
|
-
width:
|
|
6279
|
-
height:
|
|
6380
|
+
width: uu,
|
|
6381
|
+
height: du
|
|
6280
6382
|
});
|
|
6281
6383
|
}), t.forEach((e) => {
|
|
6282
6384
|
r.setEdge(e.source, e.target);
|
|
6283
|
-
}),
|
|
6385
|
+
}), lu.layout(r), {
|
|
6284
6386
|
nodes: e.map((e) => {
|
|
6285
6387
|
let t = r.node(e.id);
|
|
6286
6388
|
return {
|
|
@@ -6288,8 +6390,8 @@ var ru = {
|
|
|
6288
6390
|
targetPosition: i ? "left" : "top",
|
|
6289
6391
|
sourcePosition: i ? "right" : "bottom",
|
|
6290
6392
|
position: {
|
|
6291
|
-
x: t.x -
|
|
6292
|
-
y: t.y -
|
|
6393
|
+
x: t.x - uu / 2,
|
|
6394
|
+
y: t.y - du / 2
|
|
6293
6395
|
}
|
|
6294
6396
|
};
|
|
6295
6397
|
}),
|
|
@@ -6331,7 +6433,7 @@ var ru = {
|
|
|
6331
6433
|
}
|
|
6332
6434
|
p((t) => vt({
|
|
6333
6435
|
...e,
|
|
6334
|
-
id:
|
|
6436
|
+
id: Eo()
|
|
6335
6437
|
}, t));
|
|
6336
6438
|
}, [p]),
|
|
6337
6439
|
onLayout: P((e) => {
|
|
@@ -6345,16 +6447,16 @@ var ru = {
|
|
|
6345
6447
|
n
|
|
6346
6448
|
])
|
|
6347
6449
|
};
|
|
6348
|
-
},
|
|
6349
|
-
let e = ve(
|
|
6450
|
+
}, pu = () => {
|
|
6451
|
+
let e = ve(yo);
|
|
6350
6452
|
if (!e) throw Error("useHmFlow must be used within a HmFlowProvider");
|
|
6351
6453
|
return e;
|
|
6352
|
-
},
|
|
6353
|
-
let e = ve(
|
|
6454
|
+
}, mu = () => {
|
|
6455
|
+
let e = ve(_o);
|
|
6354
6456
|
if (!e) throw Error("HmFlowChildrenDepsContext is not defined");
|
|
6355
6457
|
return e;
|
|
6356
|
-
},
|
|
6357
|
-
let { initialData: t, canvasConfig: n = {}, sideBarComponent: r, modalComponent: i, bottomComponent: a, headerComponent: o, onCanvasDoubleClick: s, onCanvasDoubleClicked: c, onNodeDoubleClick: l } = e, { miniMap: u = !1, controls: d = !1, background: f = !1, colorMode: p = "light" } = n || {}, [m, h] = R(!1), [g, _] = R(!1), [v, y] = R(null), [b, x] = R(null), [S, C] = R(!1), [ee, te] = R({}), { nodeTypes: w } =
|
|
6458
|
+
}, hu = (e) => {
|
|
6459
|
+
let { initialData: t, canvasConfig: n = {}, sideBarComponent: r, modalComponent: i, bottomComponent: a, headerComponent: o, onCanvasDoubleClick: s, onCanvasDoubleClicked: c, onNodeDoubleClick: l } = e, { miniMap: u = !1, controls: d = !1, background: f = !1, colorMode: p = "light" } = n || {}, [m, h] = R(!1), [g, _] = R(!1), [v, y] = R(null), [b, x] = R(null), [S, C] = R(!1), [ee, te] = R({}), { nodeTypes: w } = pu(), { nodes: ne, setNodes: re, selectedNodes: T, currentNode: ie, setCurrentNode: E, edges: D, setEdges: O, onNodesChange: k, onEdgesChange: ae, onConnect: oe, onLayout: se } = fu({ initialData: t }), ce = L(null), { clickedPosition: le, setClickedPosition: ue, screenToFlowPosition: A, toObject: j, setViewport: M } = So({
|
|
6358
6460
|
reactFlowWrapper: ce,
|
|
6359
6461
|
setDrawerOpened: h,
|
|
6360
6462
|
setCurrentTab: y
|
|
@@ -6441,10 +6543,10 @@ var ru = {
|
|
|
6441
6543
|
s,
|
|
6442
6544
|
c
|
|
6443
6545
|
]), _e = P((e, t) => l(e, t, N), [l, N]);
|
|
6444
|
-
return /* @__PURE__ */ V(
|
|
6546
|
+
return /* @__PURE__ */ V(vo, {
|
|
6445
6547
|
deps: N,
|
|
6446
6548
|
children: /* @__PURE__ */ H("div", {
|
|
6447
|
-
className:
|
|
6549
|
+
className: go.root,
|
|
6448
6550
|
ref: ce,
|
|
6449
6551
|
onDoubleClick: ge,
|
|
6450
6552
|
children: [
|
|
@@ -6487,20 +6589,20 @@ var ru = {
|
|
|
6487
6589
|
]
|
|
6488
6590
|
})
|
|
6489
6591
|
});
|
|
6490
|
-
},
|
|
6592
|
+
}, gu = {
|
|
6491
6593
|
root: "_root_1l21o_1",
|
|
6492
6594
|
status: "_status_1l21o_21",
|
|
6493
6595
|
inner: "_inner_1l21o_63",
|
|
6494
6596
|
title: "_title_1l21o_86"
|
|
6495
|
-
},
|
|
6496
|
-
let { title: n, textStatus: i, color: a = "green", actions: o } = t, { deps: s } =
|
|
6597
|
+
}, _u = (t) => {
|
|
6598
|
+
let { title: n, textStatus: i, color: a = "green", actions: o } = t, { deps: s } = mu(), c = I(() => o.find((e) => e.type === "edit"), [o]), l = P((e) => () => {
|
|
6497
6599
|
e.onClick({ deps: s });
|
|
6498
6600
|
}, [s]);
|
|
6499
6601
|
return /* @__PURE__ */ V("div", {
|
|
6500
|
-
className:
|
|
6602
|
+
className: gu.root,
|
|
6501
6603
|
"data-status": a,
|
|
6502
6604
|
children: /* @__PURE__ */ H("div", {
|
|
6503
|
-
className:
|
|
6605
|
+
className: gu.inner,
|
|
6504
6606
|
children: [
|
|
6505
6607
|
c && /* @__PURE__ */ V(e, {
|
|
6506
6608
|
variant: "subtle",
|
|
@@ -6508,30 +6610,30 @@ var ru = {
|
|
|
6508
6610
|
children: c.icon
|
|
6509
6611
|
}),
|
|
6510
6612
|
/* @__PURE__ */ V("h2", {
|
|
6511
|
-
className:
|
|
6613
|
+
className: gu.title,
|
|
6512
6614
|
children: n
|
|
6513
6615
|
}),
|
|
6514
6616
|
/* @__PURE__ */ V(r, {
|
|
6515
|
-
className:
|
|
6617
|
+
className: gu.status,
|
|
6516
6618
|
"data-status": a,
|
|
6517
6619
|
children: i
|
|
6518
6620
|
})
|
|
6519
6621
|
]
|
|
6520
6622
|
})
|
|
6521
6623
|
});
|
|
6522
|
-
},
|
|
6624
|
+
}, vu = (e) => {
|
|
6523
6625
|
let { items: t } = e;
|
|
6524
6626
|
return /* @__PURE__ */ V("div", { children: t.map((e) => {
|
|
6525
6627
|
let { component: t, name: n } = e;
|
|
6526
6628
|
return /* @__PURE__ */ V(t, {}, n);
|
|
6527
6629
|
}) });
|
|
6528
|
-
},
|
|
6630
|
+
}, yu = (e) => {
|
|
6529
6631
|
let { items: t } = e;
|
|
6530
6632
|
return /* @__PURE__ */ V("div", { children: t.map((e) => {
|
|
6531
6633
|
let { component: t, name: n } = e;
|
|
6532
6634
|
return /* @__PURE__ */ V(t, {}, n);
|
|
6533
6635
|
}) });
|
|
6534
|
-
},
|
|
6636
|
+
}, bu = (e) => {
|
|
6535
6637
|
let { modalOpened: t, items: n, currentModalTab: r, testMode: i = !1, setModalOpened: a } = e;
|
|
6536
6638
|
return /* @__PURE__ */ V(_, {
|
|
6537
6639
|
radius: "lg",
|
|
@@ -6558,7 +6660,7 @@ var ru = {
|
|
|
6558
6660
|
})]
|
|
6559
6661
|
})
|
|
6560
6662
|
});
|
|
6561
|
-
},
|
|
6663
|
+
}, xu = (e) => {
|
|
6562
6664
|
let { drawerOpened: t, items: n, onDrawerClose: r, currentTab: i, testMode: a = !1 } = e, [o, s] = R(i);
|
|
6563
6665
|
return /* @__PURE__ */ V(l, {
|
|
6564
6666
|
opened: t,
|
|
@@ -6588,14 +6690,14 @@ var ru = {
|
|
|
6588
6690
|
})]
|
|
6589
6691
|
})
|
|
6590
6692
|
});
|
|
6591
|
-
},
|
|
6693
|
+
}, Su = {
|
|
6592
6694
|
editor: "_editor_5cxze_1",
|
|
6593
6695
|
icon: "_icon_5cxze_5",
|
|
6594
6696
|
label: "_label_5cxze_11",
|
|
6595
6697
|
input: "_input_5cxze_18",
|
|
6596
6698
|
dropdown: "_dropdown_5cxze_22"
|
|
6597
|
-
},
|
|
6598
|
-
let { onUpdateNode: t } = e, { deps: n } =
|
|
6699
|
+
}, Cu = (e) => {
|
|
6700
|
+
let { onUpdateNode: t } = e, { deps: n } = mu(), { setCurrentNode: i, currentNode: a } = n, [o, s] = R(a?.data || {});
|
|
6599
6701
|
if (F(() => {
|
|
6600
6702
|
s(a?.data || {});
|
|
6601
6703
|
}, [a?.data]), !a || !a.data) return console.warn("currentNode ou ses données ne sont pas disponibles."), null;
|
|
@@ -6613,7 +6715,7 @@ var ru = {
|
|
|
6613
6715
|
...o.parameters,
|
|
6614
6716
|
[e]: {
|
|
6615
6717
|
...o.parameters[e],
|
|
6616
|
-
value:
|
|
6718
|
+
value: wu(o.parameters[e].type, t)
|
|
6617
6719
|
}
|
|
6618
6720
|
}, r = {
|
|
6619
6721
|
...o,
|
|
@@ -6634,18 +6736,18 @@ var ru = {
|
|
|
6634
6736
|
}
|
|
6635
6737
|
};
|
|
6636
6738
|
return /* @__PURE__ */ H(r, {
|
|
6637
|
-
className:
|
|
6739
|
+
className: Su.nodeEditor,
|
|
6638
6740
|
children: [/* @__PURE__ */ V(p, {
|
|
6639
6741
|
gap: 8,
|
|
6640
|
-
className:
|
|
6742
|
+
className: Su.label,
|
|
6641
6743
|
children: /* @__PURE__ */ V(g, {
|
|
6642
6744
|
leftSection: /* @__PURE__ */ V(h, {
|
|
6643
6745
|
src: o.icon,
|
|
6644
6746
|
alt: o.label,
|
|
6645
|
-
className:
|
|
6747
|
+
className: Su.icon
|
|
6646
6748
|
}),
|
|
6647
6749
|
value: o.label,
|
|
6648
|
-
classNames: { input:
|
|
6750
|
+
classNames: { input: Su.input },
|
|
6649
6751
|
onChange: (e) => c(e.currentTarget.value),
|
|
6650
6752
|
onBlur: u,
|
|
6651
6753
|
placeholder: "Enter node label",
|
|
@@ -6669,7 +6771,7 @@ var ru = {
|
|
|
6669
6771
|
}, e))
|
|
6670
6772
|
})]
|
|
6671
6773
|
});
|
|
6672
|
-
},
|
|
6774
|
+
}, wu = (e, t) => {
|
|
6673
6775
|
switch (e) {
|
|
6674
6776
|
case "number": return Number(t);
|
|
6675
6777
|
case "string": return String(t);
|
|
@@ -6687,23 +6789,23 @@ var ru = {
|
|
|
6687
6789
|
}
|
|
6688
6790
|
default: return t;
|
|
6689
6791
|
}
|
|
6690
|
-
},
|
|
6792
|
+
}, Tu = {
|
|
6691
6793
|
icon: "_icon_xqktb_1",
|
|
6692
6794
|
inner: "_inner_xqktb_7",
|
|
6693
6795
|
nodeItem: "_nodeItem_xqktb_11",
|
|
6694
6796
|
label: "_label_xqktb_26"
|
|
6695
|
-
},
|
|
6696
|
-
className:
|
|
6797
|
+
}, Eu = ({ img: e, label: t, onSelect: n }) => /* @__PURE__ */ H(p, {
|
|
6798
|
+
className: Tu.nodeItem,
|
|
6697
6799
|
onClick: () => n(t),
|
|
6698
6800
|
children: [/* @__PURE__ */ V(h, {
|
|
6699
6801
|
src: e,
|
|
6700
|
-
className:
|
|
6802
|
+
className: Tu.icon
|
|
6701
6803
|
}), /* @__PURE__ */ V("p", {
|
|
6702
|
-
className:
|
|
6804
|
+
className: Tu.label,
|
|
6703
6805
|
children: t
|
|
6704
6806
|
})]
|
|
6705
|
-
}),
|
|
6706
|
-
let { searchItems: t, actions: n } = e, { deps: r } =
|
|
6807
|
+
}), Du = (e) => {
|
|
6808
|
+
let { searchItems: t, actions: n } = e, { deps: r } = mu(), [i, a] = R(""), o = I(() => {
|
|
6707
6809
|
let e = i.trim().toLowerCase();
|
|
6708
6810
|
return t.filter((t) => t.data.label.toLowerCase().includes(e));
|
|
6709
6811
|
}, [t, i]), s = P((e) => {
|
|
@@ -6719,18 +6821,18 @@ var ru = {
|
|
|
6719
6821
|
className: "space-y-0",
|
|
6720
6822
|
children: o.map((e) => {
|
|
6721
6823
|
let { id: t, data: { icon: n, label: i } } = e;
|
|
6722
|
-
return /* @__PURE__ */ V(
|
|
6824
|
+
return /* @__PURE__ */ V(Eu, {
|
|
6723
6825
|
img: n,
|
|
6724
6826
|
label: i,
|
|
6725
6827
|
onSelect: () => s({
|
|
6726
|
-
node:
|
|
6828
|
+
node: ju(e),
|
|
6727
6829
|
deps: r
|
|
6728
6830
|
})
|
|
6729
6831
|
}, t);
|
|
6730
6832
|
})
|
|
6731
6833
|
})] });
|
|
6732
|
-
},
|
|
6733
|
-
let { meta: t, submitButtonText: n, defaultValues: a, onSubmit: o } = e, { deps: s } =
|
|
6834
|
+
}, Ou = (e) => {
|
|
6835
|
+
let { meta: t, submitButtonText: n, defaultValues: a, onSubmit: o } = e, { deps: s } = mu(), c = we({
|
|
6734
6836
|
mode: "onSubmit",
|
|
6735
6837
|
reValidateMode: "onSubmit",
|
|
6736
6838
|
defaultValues: a
|
|
@@ -6754,7 +6856,7 @@ var ru = {
|
|
|
6754
6856
|
})]
|
|
6755
6857
|
})
|
|
6756
6858
|
}) });
|
|
6757
|
-
},
|
|
6859
|
+
}, ku = {
|
|
6758
6860
|
root: "_root_qhu9s_1",
|
|
6759
6861
|
inner: "_inner_qhu9s_8",
|
|
6760
6862
|
rightActions: "_rightActions_qhu9s_15",
|
|
@@ -6762,23 +6864,23 @@ var ru = {
|
|
|
6762
6864
|
mainAction: "_mainAction_qhu9s_38",
|
|
6763
6865
|
execute: "_execute_qhu9s_1",
|
|
6764
6866
|
mainInner: "_mainInner_qhu9s_64"
|
|
6765
|
-
},
|
|
6766
|
-
let { actions: n } = t, { deps: i } =
|
|
6867
|
+
}, Au = (t) => {
|
|
6868
|
+
let { actions: n } = t, { deps: i } = mu(), a = P((e) => () => {
|
|
6767
6869
|
e.onClick({ deps: i });
|
|
6768
6870
|
}, [i]), o = I(() => n.filter((e) => e.position === "right"), [n]), s = I(() => n.find((e) => e.position === "main"), [n]);
|
|
6769
6871
|
return /* @__PURE__ */ H("div", {
|
|
6770
|
-
className:
|
|
6872
|
+
className: ku.root,
|
|
6771
6873
|
children: [s && /* @__PURE__ */ V("div", {
|
|
6772
|
-
className:
|
|
6874
|
+
className: ku.mainAction,
|
|
6773
6875
|
children: /* @__PURE__ */ V("div", {
|
|
6774
|
-
className:
|
|
6876
|
+
className: ku.mainInner,
|
|
6775
6877
|
onClick: a(s),
|
|
6776
6878
|
children: s.icon
|
|
6777
6879
|
})
|
|
6778
6880
|
}, s.name), /* @__PURE__ */ V("div", {
|
|
6779
|
-
className:
|
|
6881
|
+
className: ku.inner,
|
|
6780
6882
|
children: /* @__PURE__ */ V(r, {
|
|
6781
|
-
className:
|
|
6883
|
+
className: ku.rightActions,
|
|
6782
6884
|
children: o.map((t) => /* @__PURE__ */ V(e, {
|
|
6783
6885
|
size: 40,
|
|
6784
6886
|
radius: 800,
|
|
@@ -6790,7 +6892,7 @@ var ru = {
|
|
|
6790
6892
|
})
|
|
6791
6893
|
})]
|
|
6792
6894
|
});
|
|
6793
|
-
},
|
|
6895
|
+
}, ju = (e) => ({
|
|
6794
6896
|
...e,
|
|
6795
6897
|
dragging: !1,
|
|
6796
6898
|
isConnectable: !0,
|
|
@@ -6801,7 +6903,7 @@ var ru = {
|
|
|
6801
6903
|
deletable: !0,
|
|
6802
6904
|
selected: !1,
|
|
6803
6905
|
draggable: !0
|
|
6804
|
-
}),
|
|
6906
|
+
}), Mu = {
|
|
6805
6907
|
root: "_root_1ec6v_1",
|
|
6806
6908
|
main: "_main_1ec6v_5",
|
|
6807
6909
|
inner: "_inner_1ec6v_18",
|
|
@@ -6811,8 +6913,8 @@ var ru = {
|
|
|
6811
6913
|
handle: "_handle_1ec6v_62",
|
|
6812
6914
|
dropdown: "_dropdown_1ec6v_74",
|
|
6813
6915
|
add: "_add_1ec6v_85"
|
|
6814
|
-
},
|
|
6815
|
-
let { id: n, selected: i, data: a, ...o } = t, { actions: s, ...c } = a, { deps: l } =
|
|
6916
|
+
}, Nu = (t) => {
|
|
6917
|
+
let { id: n, selected: i, data: a, ...o } = t, { actions: s, ...c } = a, { deps: l } = mu(), u = ["add", "selectSearchItem"], d = Ct((e) => e.edges), f = I(() => d.some((e) => e.source === n), [d, n]), g = P((e) => {
|
|
6816
6918
|
let t = s.find((e) => e.type === "add");
|
|
6817
6919
|
t && t.onClick(e);
|
|
6818
6920
|
}, [s]), _ = P((e) => {
|
|
@@ -6823,24 +6925,24 @@ var ru = {
|
|
|
6823
6925
|
});
|
|
6824
6926
|
}, []);
|
|
6825
6927
|
return /* @__PURE__ */ H("div", {
|
|
6826
|
-
className:
|
|
6928
|
+
className: Mu.root,
|
|
6827
6929
|
children: [
|
|
6828
6930
|
/* @__PURE__ */ V(m, {
|
|
6829
|
-
classNames: { dropdown:
|
|
6931
|
+
classNames: { dropdown: Mu.dropdown },
|
|
6830
6932
|
radius: 400,
|
|
6831
6933
|
shadow: "md",
|
|
6832
6934
|
children: /* @__PURE__ */ V("div", {
|
|
6833
|
-
className:
|
|
6935
|
+
className: Mu.main,
|
|
6834
6936
|
children: /* @__PURE__ */ H("div", {
|
|
6835
|
-
className:
|
|
6937
|
+
className: Mu.inner,
|
|
6836
6938
|
children: [
|
|
6837
6939
|
/* @__PURE__ */ V(m.Target, { children: /* @__PURE__ */ V(r, {
|
|
6838
6940
|
mod: { "data-selected": i },
|
|
6839
|
-
className:
|
|
6941
|
+
className: Mu.section,
|
|
6840
6942
|
style: { "--hover-color": c.color },
|
|
6841
6943
|
children: /* @__PURE__ */ V(h, {
|
|
6842
6944
|
src: c.icon,
|
|
6843
|
-
className:
|
|
6945
|
+
className: Mu.icon
|
|
6844
6946
|
})
|
|
6845
6947
|
}) }),
|
|
6846
6948
|
/* @__PURE__ */ V(m.Dropdown, { children: s && /* @__PURE__ */ V(p, {
|
|
@@ -6860,7 +6962,7 @@ var ru = {
|
|
|
6860
6962
|
}, r))
|
|
6861
6963
|
}) }),
|
|
6862
6964
|
/* @__PURE__ */ V("h3", {
|
|
6863
|
-
className:
|
|
6965
|
+
className: Mu.label,
|
|
6864
6966
|
children: c.label
|
|
6865
6967
|
})
|
|
6866
6968
|
]
|
|
@@ -6868,7 +6970,7 @@ var ru = {
|
|
|
6868
6970
|
})
|
|
6869
6971
|
}),
|
|
6870
6972
|
!f && /* @__PURE__ */ V("button", {
|
|
6871
|
-
className:
|
|
6973
|
+
className: Mu.add,
|
|
6872
6974
|
onClick: () => {
|
|
6873
6975
|
g({
|
|
6874
6976
|
node: t,
|
|
@@ -6878,7 +6980,7 @@ var ru = {
|
|
|
6878
6980
|
children: /* @__PURE__ */ V(Ie, { size: 200 })
|
|
6879
6981
|
}),
|
|
6880
6982
|
/* @__PURE__ */ V("div", {
|
|
6881
|
-
className:
|
|
6983
|
+
className: Mu.handle,
|
|
6882
6984
|
children: /* @__PURE__ */ V(ft, {
|
|
6883
6985
|
type: "source",
|
|
6884
6986
|
position: ht.Right,
|
|
@@ -6886,7 +6988,7 @@ var ru = {
|
|
|
6886
6988
|
})
|
|
6887
6989
|
}),
|
|
6888
6990
|
/* @__PURE__ */ V("div", {
|
|
6889
|
-
className:
|
|
6991
|
+
className: Mu.handle,
|
|
6890
6992
|
children: /* @__PURE__ */ V(ft, {
|
|
6891
6993
|
type: "target",
|
|
6892
6994
|
position: ht.Left,
|
|
@@ -6896,7 +6998,7 @@ var ru = {
|
|
|
6896
6998
|
})
|
|
6897
6999
|
]
|
|
6898
7000
|
});
|
|
6899
|
-
},
|
|
7001
|
+
}, Pu = (e) => {
|
|
6900
7002
|
let { NodeType: t, actions: n, data: r, ...i } = e;
|
|
6901
7003
|
return /* @__PURE__ */ V(t, {
|
|
6902
7004
|
data: {
|
|
@@ -6905,7 +7007,7 @@ var ru = {
|
|
|
6905
7007
|
},
|
|
6906
7008
|
...i
|
|
6907
7009
|
});
|
|
6908
|
-
},
|
|
7010
|
+
}, Fu = [
|
|
6909
7011
|
{
|
|
6910
7012
|
label: "Edit",
|
|
6911
7013
|
type: "edit",
|
|
@@ -6967,7 +7069,7 @@ var ru = {
|
|
|
6967
7069
|
console.log("add");
|
|
6968
7070
|
}
|
|
6969
7071
|
}
|
|
6970
|
-
],
|
|
7072
|
+
], Iu = [
|
|
6971
7073
|
{
|
|
6972
7074
|
name: "Execute",
|
|
6973
7075
|
type: "run",
|
|
@@ -7004,7 +7106,7 @@ var ru = {
|
|
|
7004
7106
|
console.log("trash");
|
|
7005
7107
|
}
|
|
7006
7108
|
}
|
|
7007
|
-
],
|
|
7109
|
+
], Lu = [{
|
|
7008
7110
|
name: "Edit Canvas Config",
|
|
7009
7111
|
type: "edit",
|
|
7010
7112
|
icon: /* @__PURE__ */ V(Fe, {
|
|
@@ -7012,7 +7114,7 @@ var ru = {
|
|
|
7012
7114
|
stroke: 1.5
|
|
7013
7115
|
}),
|
|
7014
7116
|
onClick: () => {}
|
|
7015
|
-
}],
|
|
7117
|
+
}], Ru = [{
|
|
7016
7118
|
name: "Flow Metadata",
|
|
7017
7119
|
fields: [
|
|
7018
7120
|
{
|
|
@@ -7037,35 +7139,35 @@ var ru = {
|
|
|
7037
7139
|
}
|
|
7038
7140
|
}
|
|
7039
7141
|
]
|
|
7040
|
-
}],
|
|
7041
|
-
let { searchItems: t, defaultHmFlowData: n, canvasConfig: r = {}, textStatus: i, color: a, onHmflowSave: o, onHmflowRun: s, onCanvasDoubleClicked: c, onHmflowDelete: l } = e, { actions: u, onNodeDoubleClick: d, onUpdateNode: f, searchNode: p } =
|
|
7042
|
-
bottomActions:
|
|
7043
|
-
headerActions:
|
|
7142
|
+
}], zu = (e) => {
|
|
7143
|
+
let { searchItems: t, defaultHmFlowData: n, canvasConfig: r = {}, textStatus: i, color: a, onHmflowSave: o, onHmflowRun: s, onCanvasDoubleClicked: c, onHmflowDelete: l } = e, { actions: u, onNodeDoubleClick: d, onUpdateNode: f, searchNode: p } = ko({ defaultActions: Fu }), { bottomAction: m, headerAction: h, hmflowData: g } = Ao({
|
|
7144
|
+
bottomActions: Iu,
|
|
7145
|
+
headerActions: Lu,
|
|
7044
7146
|
onHmflowSave: o,
|
|
7045
7147
|
onHmflowRun: s,
|
|
7046
7148
|
onHmflowDelete: l,
|
|
7047
7149
|
defaultHmFlowMetadata: n.metadata
|
|
7048
|
-
}), _ = I(() => ({ pyNode: (e) => /* @__PURE__ */ V(
|
|
7150
|
+
}), _ = I(() => ({ pyNode: (e) => /* @__PURE__ */ V(Pu, {
|
|
7049
7151
|
...e,
|
|
7050
|
-
NodeType:
|
|
7152
|
+
NodeType: Nu,
|
|
7051
7153
|
actions: u
|
|
7052
7154
|
}) }), [u]), v = [{
|
|
7053
7155
|
name: "nodesSearch",
|
|
7054
|
-
component: () => /* @__PURE__ */ V(
|
|
7156
|
+
component: () => /* @__PURE__ */ V(Du, {
|
|
7055
7157
|
searchItems: t,
|
|
7056
7158
|
actions: u
|
|
7057
7159
|
})
|
|
7058
7160
|
}, {
|
|
7059
7161
|
name: "flowFormMetadata",
|
|
7060
|
-
component: () => /* @__PURE__ */ V(
|
|
7162
|
+
component: () => /* @__PURE__ */ V(Ou, {
|
|
7061
7163
|
submitButtonText: "Update",
|
|
7062
|
-
meta:
|
|
7164
|
+
meta: Ru,
|
|
7063
7165
|
defaultValues: g.current.metadata,
|
|
7064
7166
|
onSubmit: (e) => g.current.metadata = e
|
|
7065
7167
|
})
|
|
7066
7168
|
}], y = I(() => [{
|
|
7067
7169
|
name: "headerStatus",
|
|
7068
|
-
component: () => /* @__PURE__ */ V(
|
|
7170
|
+
component: () => /* @__PURE__ */ V(_u, {
|
|
7069
7171
|
title: g.current.metadata.name,
|
|
7070
7172
|
textStatus: i,
|
|
7071
7173
|
color: a,
|
|
@@ -7077,14 +7179,14 @@ var ru = {
|
|
|
7077
7179
|
h
|
|
7078
7180
|
]), b = I(() => [{
|
|
7079
7181
|
name: "toolbar",
|
|
7080
|
-
component: () => /* @__PURE__ */ V(
|
|
7182
|
+
component: () => /* @__PURE__ */ V(Au, { actions: m })
|
|
7081
7183
|
}], [m]), x = [{
|
|
7082
7184
|
name: "nodeEditor",
|
|
7083
|
-
component: () => /* @__PURE__ */ V(
|
|
7084
|
-
}], S = P(() => /* @__PURE__ */ V(
|
|
7085
|
-
return /* @__PURE__ */ V(
|
|
7185
|
+
component: () => /* @__PURE__ */ V(Cu, { onUpdateNode: f })
|
|
7186
|
+
}], S = P(() => /* @__PURE__ */ V(yu, { items: y }), [y]), C = P(() => /* @__PURE__ */ V(vu, { items: b }), [b]);
|
|
7187
|
+
return /* @__PURE__ */ V(xo, {
|
|
7086
7188
|
nodeTypes: _,
|
|
7087
|
-
children: /* @__PURE__ */ V(
|
|
7189
|
+
children: /* @__PURE__ */ V(hu, {
|
|
7088
7190
|
initialData: I(() => ({
|
|
7089
7191
|
edges: n.edges,
|
|
7090
7192
|
nodes: n.nodes
|
|
@@ -7093,26 +7195,26 @@ var ru = {
|
|
|
7093
7195
|
onCanvasDoubleClicked: c,
|
|
7094
7196
|
onCanvasDoubleClick: p,
|
|
7095
7197
|
onNodeDoubleClick: d,
|
|
7096
|
-
sideBarComponent: ({ ...e }) => /* @__PURE__ */ V(
|
|
7198
|
+
sideBarComponent: ({ ...e }) => /* @__PURE__ */ V(xu, {
|
|
7097
7199
|
...e,
|
|
7098
7200
|
items: v
|
|
7099
7201
|
}),
|
|
7100
7202
|
headerComponent: S,
|
|
7101
7203
|
bottomComponent: C,
|
|
7102
|
-
modalComponent: ({ ...e }) => /* @__PURE__ */ V(
|
|
7204
|
+
modalComponent: ({ ...e }) => /* @__PURE__ */ V(bu, {
|
|
7103
7205
|
...e,
|
|
7104
7206
|
items: x
|
|
7105
7207
|
})
|
|
7106
7208
|
})
|
|
7107
7209
|
});
|
|
7108
|
-
},
|
|
7210
|
+
}, Bu = {
|
|
7109
7211
|
dots: ut.Dots,
|
|
7110
7212
|
cross: ut.Cross,
|
|
7111
7213
|
lines: ut.Lines
|
|
7112
|
-
},
|
|
7214
|
+
}, Vu = {
|
|
7113
7215
|
parameterRoot: "_parameterRoot_1e1qy_1",
|
|
7114
7216
|
fieldset: "_fieldset_1e1qy_7"
|
|
7115
|
-
},
|
|
7217
|
+
}, Hu = [
|
|
7116
7218
|
{
|
|
7117
7219
|
value: "string",
|
|
7118
7220
|
label: "string"
|
|
@@ -7137,12 +7239,12 @@ var ru = {
|
|
|
7137
7239
|
value: "object",
|
|
7138
7240
|
label: "object"
|
|
7139
7241
|
}
|
|
7140
|
-
],
|
|
7141
|
-
className:
|
|
7242
|
+
], Uu = ({ index: e, param: t, onUpdate: n, onDelete: a }) => /* @__PURE__ */ V(r, {
|
|
7243
|
+
className: Vu.parameterRoot,
|
|
7142
7244
|
mt: "md",
|
|
7143
7245
|
children: /* @__PURE__ */ H(u, {
|
|
7144
7246
|
legend: `Parameter ${e + 1}`,
|
|
7145
|
-
className:
|
|
7247
|
+
className: Vu.fieldset,
|
|
7146
7248
|
children: [
|
|
7147
7249
|
/* @__PURE__ */ H(T, {
|
|
7148
7250
|
gap: 6,
|
|
@@ -7163,7 +7265,7 @@ var ru = {
|
|
|
7163
7265
|
label: "Type parameter",
|
|
7164
7266
|
placeholder: "Select type",
|
|
7165
7267
|
radius: "md",
|
|
7166
|
-
data:
|
|
7268
|
+
data: Hu,
|
|
7167
7269
|
value: t.type,
|
|
7168
7270
|
onChange: (t) => n(e, "type", t || "")
|
|
7169
7271
|
}),
|
|
@@ -7211,15 +7313,15 @@ var ru = {
|
|
|
7211
7313
|
})
|
|
7212
7314
|
]
|
|
7213
7315
|
})
|
|
7214
|
-
}),
|
|
7316
|
+
}), Wu = {
|
|
7215
7317
|
name: "",
|
|
7216
7318
|
label: "",
|
|
7217
7319
|
icon: null,
|
|
7218
7320
|
color: "",
|
|
7219
7321
|
version: "",
|
|
7220
7322
|
description: ""
|
|
7221
|
-
},
|
|
7222
|
-
let [e, t] = R(
|
|
7323
|
+
}, Gu = () => {
|
|
7324
|
+
let [e, t] = R(Wu), [n, r] = R([]), [i, a] = R(null);
|
|
7223
7325
|
return {
|
|
7224
7326
|
formValues: e,
|
|
7225
7327
|
updateFormValue: (e, n) => {
|
|
@@ -7250,11 +7352,11 @@ var ru = {
|
|
|
7250
7352
|
wasmFile: i,
|
|
7251
7353
|
setWasmFile: a,
|
|
7252
7354
|
resetForm: () => {
|
|
7253
|
-
t(
|
|
7355
|
+
t(Wu), r([]), a(null);
|
|
7254
7356
|
}
|
|
7255
7357
|
};
|
|
7256
|
-
},
|
|
7257
|
-
let { wasmFile: n, parameters: a, formValues: o, updateFormValue: s, addParameter: l, updateParameter: u, deleteParameter: f, setWasmFile: p } =
|
|
7358
|
+
}, Ku = ({ submitButtonText: e, onSubmit: t }) => {
|
|
7359
|
+
let { wasmFile: n, parameters: a, formValues: o, updateFormValue: s, addParameter: l, updateParameter: u, deleteParameter: f, setWasmFile: p } = Gu(), [m, h] = R("");
|
|
7258
7360
|
return F(() => {
|
|
7259
7361
|
if (!o.icon) return;
|
|
7260
7362
|
let e = URL.createObjectURL(o.icon);
|
|
@@ -7326,7 +7428,7 @@ var ru = {
|
|
|
7326
7428
|
mt: "md",
|
|
7327
7429
|
children: "Add Parameter"
|
|
7328
7430
|
}),
|
|
7329
|
-
a.map((e, t) => /* @__PURE__ */ V(
|
|
7431
|
+
a.map((e, t) => /* @__PURE__ */ V(Uu, {
|
|
7330
7432
|
index: t,
|
|
7331
7433
|
param: e,
|
|
7332
7434
|
onUpdate: u,
|
|
@@ -7344,4 +7446,4 @@ var ru = {
|
|
|
7344
7446
|
});
|
|
7345
7447
|
};
|
|
7346
7448
|
//#endregion
|
|
7347
|
-
export {
|
|
7449
|
+
export { Qa as AppLayout, Ka as BottomBar, Wn as CNDIcon, eo as CardGridLayout, Vn as ChartBuilder, bn as ChartContainer, no as ContentLayout, Ku as CreateNodeForm, Ra as FlowCard, $t as FormBuilder, Gn as FuncdLogo, Kn as FuncdWordmark, vn as HMChart, Ea as HMDataGrid, Xn as HMDrawer, oo as HMThemeProvider, zu as HmFlow, Bu as HmFlowBackgroundVariant, hu as HmFlowBase, xo as HmFlowProvider, Oa as IconLabelCell, qn as NavBarLink, Pu as NodeWrapper, Aa as ProgressCell, Nu as PyNode, It as ReactiveAutocomplete, Mn as ReactiveBarChart, Lt as ReactiveCheckbox, Un as ReactiveDashboard, ln as ReactiveForm, Nn as ReactiveLineChart, rn as ReactiveListField, Ft as ReactiveMultiSelect, Rt as ReactiveNumberField, zt as ReactivePasswordField, Pn as ReactivePieChart, Bt as ReactiveRadio, Vt as ReactiveRange, Ht as ReactiveSelect, Ut as ReactiveSwitch, Wt as ReactiveTextField, Gt as ReactiveTextareaField, ba as RowHeight, Jn as SearchBar, Va as SideBar, io as SplitLayout, tr as StatCard, $n as StatsRing, Ma as StatusCell, Pa as TimeAgoCell, ir as TimelineBar, Ia as TitleCell, Yn as ToggleThemeMode, ho as cssVarResolver, Fu as defaultActions, kt as errorParser, Dt as errorResponse, Pt as errorsArrayToObject, jt as fieldRegex, Tt as flattenObj, xn as getChartAxisType, wn as getChartNumber, Nt as getError, Dn as getFormatError, Y as getMantineError, En as getValueAxisLabel, Tn as getValueFormatter, wt as getValuePath, Wu as initialFormValues, Et as isResolved, Mt as keepEnterInDropdown, Cn as mergeChartOptions, ju as pyNodeToNodeProps, mo as pyTheme, Ot as response, kn as useChartRows, Gu as useCreateNodeForm, pu as useHmFlow, mu as useHmFlowChildrenDeps, So as useHmFlowInteractions, Ao as useHmFlowService, fu as useNodeAndEdgeHandlers, ko as useNodesService, At as wait };
|