@akshay-rajput/git-graph-svg 1.0.4 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/components/GitGraph/GitGraph.d.ts +3 -2
- package/dist/git-repo-graph.es.js +431 -429
- package/dist/git-repo-graph.umd.js +8 -8
- package/package.json +1 -1
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
for (
|
|
12
|
-
if (
|
|
13
|
-
return { $$typeof:
|
|
1
|
+
import Ir, { useMemo as z } from "react";
|
|
2
|
+
var X = { exports: {} }, N = {};
|
|
3
|
+
var Dr;
|
|
4
|
+
function ve() {
|
|
5
|
+
if (Dr) return N;
|
|
6
|
+
Dr = 1;
|
|
7
|
+
var P = Ir, j = /* @__PURE__ */ Symbol.for("react.element"), $ = /* @__PURE__ */ Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, k = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, D = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
8
|
+
function _(T, f, w) {
|
|
9
|
+
var p, O = {}, m = null, I = null;
|
|
10
|
+
w !== void 0 && (m = "" + w), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (I = f.ref);
|
|
11
|
+
for (p in f) x.call(f, p) && !D.hasOwnProperty(p) && (O[p] = f[p]);
|
|
12
|
+
if (T && T.defaultProps) for (p in f = T.defaultProps, f) O[p] === void 0 && (O[p] = f[p]);
|
|
13
|
+
return { $$typeof: j, type: T, key: m, ref: I, props: O, _owner: k.current };
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return N.Fragment = $, N.jsx = _, N.jsxs = _, N;
|
|
16
16
|
}
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
return
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
17
|
+
var J = {};
|
|
18
|
+
var Ar;
|
|
19
|
+
function pe() {
|
|
20
|
+
return Ar || (Ar = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
21
|
+
var P = Ir, j = /* @__PURE__ */ Symbol.for("react.element"), $ = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), D = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), f = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), p = /* @__PURE__ */ Symbol.for("react.suspense_list"), O = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), i = Symbol.iterator, c = "@@iterator";
|
|
22
|
+
function h(r) {
|
|
23
|
+
if (r === null || typeof r != "object")
|
|
24
24
|
return null;
|
|
25
|
-
var
|
|
26
|
-
return typeof
|
|
25
|
+
var e = i && r[i] || r[c];
|
|
26
|
+
return typeof e == "function" ? e : null;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
28
|
+
var E = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
29
|
+
function s(r) {
|
|
30
30
|
{
|
|
31
|
-
for (var
|
|
32
|
-
t
|
|
33
|
-
|
|
31
|
+
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), t = 1; t < e; t++)
|
|
32
|
+
n[t - 1] = arguments[t];
|
|
33
|
+
S("error", r, n);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function S(r, e, n) {
|
|
37
37
|
{
|
|
38
|
-
var
|
|
39
|
-
u !== "" && (
|
|
40
|
-
var
|
|
38
|
+
var t = E.ReactDebugCurrentFrame, u = t.getStackAddendum();
|
|
39
|
+
u !== "" && (e += "%s", n = n.concat([u]));
|
|
40
|
+
var l = n.map(function(o) {
|
|
41
41
|
return String(o);
|
|
42
42
|
});
|
|
43
|
-
|
|
43
|
+
l.unshift("Warning: " + e), Function.prototype.apply.call(console[r], console, l);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
function
|
|
49
|
-
return !!(typeof
|
|
46
|
+
var Y = !1, y = !1, ir = !1, L = !1, Wr = !1, ur;
|
|
47
|
+
ur = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
48
|
+
function Mr(r) {
|
|
49
|
+
return !!(typeof r == "string" || typeof r == "function" || r === x || r === D || Wr || r === k || r === w || r === p || L || r === I || Y || y || ir || typeof r == "object" && r !== null && (r.$$typeof === m || r.$$typeof === O || r.$$typeof === _ || r.$$typeof === T || r.$$typeof === f || // This needs to include all possible module reference object
|
|
50
50
|
// types supported by any Flight configuration anywhere since
|
|
51
51
|
// we don't know which Flight build this will end up being used
|
|
52
52
|
// with.
|
|
53
|
-
|
|
53
|
+
r.$$typeof === ur || r.getModuleId !== void 0));
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
var
|
|
57
|
-
if (
|
|
58
|
-
return
|
|
59
|
-
var u =
|
|
60
|
-
return u !== "" ?
|
|
55
|
+
function Yr(r, e, n) {
|
|
56
|
+
var t = r.displayName;
|
|
57
|
+
if (t)
|
|
58
|
+
return t;
|
|
59
|
+
var u = e.displayName || e.name || "";
|
|
60
|
+
return u !== "" ? n + "(" + u + ")" : n;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
62
|
+
function sr(r) {
|
|
63
|
+
return r.displayName || "Context";
|
|
64
64
|
}
|
|
65
|
-
function C(
|
|
66
|
-
if (
|
|
65
|
+
function C(r) {
|
|
66
|
+
if (r == null)
|
|
67
67
|
return null;
|
|
68
|
-
if (typeof
|
|
69
|
-
return
|
|
70
|
-
if (typeof
|
|
71
|
-
return
|
|
72
|
-
switch (
|
|
73
|
-
case
|
|
68
|
+
if (typeof r.tag == "number" && s("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
69
|
+
return r.displayName || r.name || null;
|
|
70
|
+
if (typeof r == "string")
|
|
71
|
+
return r;
|
|
72
|
+
switch (r) {
|
|
73
|
+
case x:
|
|
74
74
|
return "Fragment";
|
|
75
|
-
case
|
|
75
|
+
case $:
|
|
76
76
|
return "Portal";
|
|
77
|
-
case
|
|
77
|
+
case D:
|
|
78
78
|
return "Profiler";
|
|
79
|
-
case F:
|
|
80
|
-
return "StrictMode";
|
|
81
79
|
case k:
|
|
80
|
+
return "StrictMode";
|
|
81
|
+
case w:
|
|
82
82
|
return "Suspense";
|
|
83
|
-
case
|
|
83
|
+
case p:
|
|
84
84
|
return "SuspenseList";
|
|
85
85
|
}
|
|
86
|
-
if (typeof
|
|
87
|
-
switch (
|
|
88
|
-
case
|
|
89
|
-
var
|
|
90
|
-
return
|
|
91
|
-
case
|
|
92
|
-
var
|
|
93
|
-
return
|
|
94
|
-
case
|
|
95
|
-
return
|
|
96
|
-
case
|
|
97
|
-
var
|
|
98
|
-
return
|
|
99
|
-
case
|
|
100
|
-
var u =
|
|
86
|
+
if (typeof r == "object")
|
|
87
|
+
switch (r.$$typeof) {
|
|
88
|
+
case T:
|
|
89
|
+
var e = r;
|
|
90
|
+
return sr(e) + ".Consumer";
|
|
91
|
+
case _:
|
|
92
|
+
var n = r;
|
|
93
|
+
return sr(n._context) + ".Provider";
|
|
94
|
+
case f:
|
|
95
|
+
return Yr(r, r.render, "ForwardRef");
|
|
96
|
+
case O:
|
|
97
|
+
var t = r.displayName || null;
|
|
98
|
+
return t !== null ? t : C(r.type) || "Memo";
|
|
99
|
+
case m: {
|
|
100
|
+
var u = r, l = u._payload, o = u._init;
|
|
101
101
|
try {
|
|
102
|
-
return C(o(
|
|
102
|
+
return C(o(l));
|
|
103
103
|
} catch {
|
|
104
104
|
return null;
|
|
105
105
|
}
|
|
@@ -107,103 +107,103 @@ function pr() {
|
|
|
107
107
|
}
|
|
108
108
|
return null;
|
|
109
109
|
}
|
|
110
|
-
var
|
|
111
|
-
function
|
|
110
|
+
var A = Object.assign, V = 0, lr, fr, cr, dr, vr, pr, hr;
|
|
111
|
+
function br() {
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
function
|
|
113
|
+
br.__reactDisabledLog = !0;
|
|
114
|
+
function Lr() {
|
|
115
115
|
{
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
var
|
|
116
|
+
if (V === 0) {
|
|
117
|
+
lr = console.log, fr = console.info, cr = console.warn, dr = console.error, vr = console.group, pr = console.groupCollapsed, hr = console.groupEnd;
|
|
118
|
+
var r = {
|
|
119
119
|
configurable: !0,
|
|
120
120
|
enumerable: !0,
|
|
121
|
-
value:
|
|
121
|
+
value: br,
|
|
122
122
|
writable: !0
|
|
123
123
|
};
|
|
124
124
|
Object.defineProperties(console, {
|
|
125
|
-
info:
|
|
126
|
-
log:
|
|
127
|
-
warn:
|
|
128
|
-
error:
|
|
129
|
-
group:
|
|
130
|
-
groupCollapsed:
|
|
131
|
-
groupEnd:
|
|
125
|
+
info: r,
|
|
126
|
+
log: r,
|
|
127
|
+
warn: r,
|
|
128
|
+
error: r,
|
|
129
|
+
group: r,
|
|
130
|
+
groupCollapsed: r,
|
|
131
|
+
groupEnd: r
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
V++;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Vr() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
var
|
|
139
|
+
if (V--, V === 0) {
|
|
140
|
+
var r = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
143
|
writable: !0
|
|
144
144
|
};
|
|
145
145
|
Object.defineProperties(console, {
|
|
146
|
-
log:
|
|
147
|
-
value:
|
|
146
|
+
log: A({}, r, {
|
|
147
|
+
value: lr
|
|
148
148
|
}),
|
|
149
|
-
info:
|
|
150
|
-
value:
|
|
149
|
+
info: A({}, r, {
|
|
150
|
+
value: fr
|
|
151
151
|
}),
|
|
152
|
-
warn:
|
|
153
|
-
value:
|
|
152
|
+
warn: A({}, r, {
|
|
153
|
+
value: cr
|
|
154
154
|
}),
|
|
155
|
-
error:
|
|
156
|
-
value:
|
|
155
|
+
error: A({}, r, {
|
|
156
|
+
value: dr
|
|
157
157
|
}),
|
|
158
|
-
group:
|
|
159
|
-
value:
|
|
158
|
+
group: A({}, r, {
|
|
159
|
+
value: vr
|
|
160
160
|
}),
|
|
161
|
-
groupCollapsed:
|
|
162
|
-
value:
|
|
161
|
+
groupCollapsed: A({}, r, {
|
|
162
|
+
value: pr
|
|
163
163
|
}),
|
|
164
|
-
groupEnd:
|
|
165
|
-
value:
|
|
164
|
+
groupEnd: A({}, r, {
|
|
165
|
+
value: hr
|
|
166
166
|
})
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
V < 0 && s("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
var
|
|
173
|
-
function
|
|
172
|
+
var H = E.ReactCurrentDispatcher, Z;
|
|
173
|
+
function q(r, e, n) {
|
|
174
174
|
{
|
|
175
|
-
if (
|
|
175
|
+
if (Z === void 0)
|
|
176
176
|
try {
|
|
177
177
|
throw Error();
|
|
178
178
|
} catch (u) {
|
|
179
|
-
var
|
|
180
|
-
|
|
179
|
+
var t = u.stack.trim().match(/\n( *(at )?)/);
|
|
180
|
+
Z = t && t[1] || "";
|
|
181
181
|
}
|
|
182
182
|
return `
|
|
183
|
-
` +
|
|
183
|
+
` + Z + r;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
var
|
|
186
|
+
var Q = !1, B;
|
|
187
187
|
{
|
|
188
|
-
var
|
|
189
|
-
|
|
188
|
+
var Ur = typeof WeakMap == "function" ? WeakMap : Map;
|
|
189
|
+
B = new Ur();
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
if (!
|
|
191
|
+
function gr(r, e) {
|
|
192
|
+
if (!r || Q)
|
|
193
193
|
return "";
|
|
194
194
|
{
|
|
195
|
-
var
|
|
196
|
-
if (
|
|
197
|
-
return
|
|
195
|
+
var n = B.get(r);
|
|
196
|
+
if (n !== void 0)
|
|
197
|
+
return n;
|
|
198
198
|
}
|
|
199
|
-
var
|
|
200
|
-
|
|
199
|
+
var t;
|
|
200
|
+
Q = !0;
|
|
201
201
|
var u = Error.prepareStackTrace;
|
|
202
202
|
Error.prepareStackTrace = void 0;
|
|
203
|
-
var
|
|
204
|
-
|
|
203
|
+
var l;
|
|
204
|
+
l = H.current, H.current = null, Lr();
|
|
205
205
|
try {
|
|
206
|
-
if (
|
|
206
|
+
if (e) {
|
|
207
207
|
var o = function() {
|
|
208
208
|
throw Error();
|
|
209
209
|
};
|
|
@@ -214,196 +214,196 @@ function pr() {
|
|
|
214
214
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
215
215
|
try {
|
|
216
216
|
Reflect.construct(o, []);
|
|
217
|
-
} catch (
|
|
218
|
-
|
|
217
|
+
} catch (g) {
|
|
218
|
+
t = g;
|
|
219
219
|
}
|
|
220
|
-
Reflect.construct(
|
|
220
|
+
Reflect.construct(r, [], o);
|
|
221
221
|
} else {
|
|
222
222
|
try {
|
|
223
223
|
o.call();
|
|
224
|
-
} catch (
|
|
225
|
-
|
|
224
|
+
} catch (g) {
|
|
225
|
+
t = g;
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
r.call(o.prototype);
|
|
228
228
|
}
|
|
229
229
|
} else {
|
|
230
230
|
try {
|
|
231
231
|
throw Error();
|
|
232
|
-
} catch (
|
|
233
|
-
|
|
232
|
+
} catch (g) {
|
|
233
|
+
t = g;
|
|
234
234
|
}
|
|
235
|
-
|
|
235
|
+
r();
|
|
236
236
|
}
|
|
237
|
-
} catch (
|
|
238
|
-
if (
|
|
239
|
-
for (var a =
|
|
240
|
-
`),
|
|
241
|
-
`),
|
|
242
|
-
|
|
243
|
-
for (;
|
|
244
|
-
if (a[
|
|
245
|
-
if (
|
|
237
|
+
} catch (g) {
|
|
238
|
+
if (g && t && typeof g.stack == "string") {
|
|
239
|
+
for (var a = g.stack.split(`
|
|
240
|
+
`), b = t.stack.split(`
|
|
241
|
+
`), d = a.length - 1, v = b.length - 1; d >= 1 && v >= 0 && a[d] !== b[v]; )
|
|
242
|
+
v--;
|
|
243
|
+
for (; d >= 1 && v >= 0; d--, v--)
|
|
244
|
+
if (a[d] !== b[v]) {
|
|
245
|
+
if (d !== 1 || v !== 1)
|
|
246
246
|
do
|
|
247
|
-
if (
|
|
248
|
-
var
|
|
249
|
-
` + a[
|
|
250
|
-
return
|
|
247
|
+
if (d--, v--, v < 0 || a[d] !== b[v]) {
|
|
248
|
+
var R = `
|
|
249
|
+
` + a[d].replace(" at new ", " at ");
|
|
250
|
+
return r.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", r.displayName)), typeof r == "function" && B.set(r, R), R;
|
|
251
251
|
}
|
|
252
|
-
while (
|
|
252
|
+
while (d >= 1 && v >= 0);
|
|
253
253
|
break;
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
} finally {
|
|
257
|
-
|
|
257
|
+
Q = !1, H.current = l, Vr(), Error.prepareStackTrace = u;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
260
|
-
return typeof
|
|
259
|
+
var M = r ? r.displayName || r.name : "", F = M ? q(M) : "";
|
|
260
|
+
return typeof r == "function" && B.set(r, F), F;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
return
|
|
262
|
+
function Nr(r, e, n) {
|
|
263
|
+
return gr(r, !1);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
var
|
|
267
|
-
return !!(
|
|
265
|
+
function Jr(r) {
|
|
266
|
+
var e = r.prototype;
|
|
267
|
+
return !!(e && e.isReactComponent);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
if (
|
|
269
|
+
function G(r, e, n) {
|
|
270
|
+
if (r == null)
|
|
271
271
|
return "";
|
|
272
|
-
if (typeof
|
|
273
|
-
return
|
|
274
|
-
if (typeof
|
|
275
|
-
return
|
|
276
|
-
switch (
|
|
277
|
-
case
|
|
278
|
-
return
|
|
279
|
-
case
|
|
280
|
-
return
|
|
272
|
+
if (typeof r == "function")
|
|
273
|
+
return gr(r, Jr(r));
|
|
274
|
+
if (typeof r == "string")
|
|
275
|
+
return q(r);
|
|
276
|
+
switch (r) {
|
|
277
|
+
case w:
|
|
278
|
+
return q("Suspense");
|
|
279
|
+
case p:
|
|
280
|
+
return q("SuspenseList");
|
|
281
281
|
}
|
|
282
|
-
if (typeof
|
|
283
|
-
switch (
|
|
284
|
-
case
|
|
285
|
-
return
|
|
286
|
-
case
|
|
287
|
-
return
|
|
288
|
-
case
|
|
289
|
-
var
|
|
282
|
+
if (typeof r == "object")
|
|
283
|
+
switch (r.$$typeof) {
|
|
284
|
+
case f:
|
|
285
|
+
return Nr(r.render);
|
|
286
|
+
case O:
|
|
287
|
+
return G(r.type, e, n);
|
|
288
|
+
case m: {
|
|
289
|
+
var t = r, u = t._payload, l = t._init;
|
|
290
290
|
try {
|
|
291
|
-
return
|
|
291
|
+
return G(l(u), e, n);
|
|
292
292
|
} catch {
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
return "";
|
|
297
297
|
}
|
|
298
|
-
var
|
|
299
|
-
function
|
|
300
|
-
if (
|
|
301
|
-
var
|
|
302
|
-
|
|
298
|
+
var U = Object.prototype.hasOwnProperty, Er = {}, _r = E.ReactDebugCurrentFrame;
|
|
299
|
+
function K(r) {
|
|
300
|
+
if (r) {
|
|
301
|
+
var e = r._owner, n = G(r.type, r._source, e ? e.type : null);
|
|
302
|
+
_r.setExtraStackFrame(n);
|
|
303
303
|
} else
|
|
304
|
-
|
|
304
|
+
_r.setExtraStackFrame(null);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function qr(r, e, n, t, u) {
|
|
307
307
|
{
|
|
308
|
-
var
|
|
309
|
-
for (var o in
|
|
310
|
-
if (
|
|
308
|
+
var l = Function.call.bind(U);
|
|
309
|
+
for (var o in r)
|
|
310
|
+
if (l(r, o)) {
|
|
311
311
|
var a = void 0;
|
|
312
312
|
try {
|
|
313
|
-
if (typeof
|
|
314
|
-
var
|
|
315
|
-
throw
|
|
313
|
+
if (typeof r[o] != "function") {
|
|
314
|
+
var b = Error((t || "React class") + ": " + n + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
315
|
+
throw b.name = "Invariant Violation", b;
|
|
316
316
|
}
|
|
317
|
-
a =
|
|
318
|
-
} catch (
|
|
319
|
-
a =
|
|
317
|
+
a = r[o](e, o, t, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
318
|
+
} catch (d) {
|
|
319
|
+
a = d;
|
|
320
320
|
}
|
|
321
|
-
a && !(a instanceof Error) && (
|
|
321
|
+
a && !(a instanceof Error) && (K(u), s("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", t || "React class", n, o, typeof a), K(null)), a instanceof Error && !(a.message in Er) && (Er[a.message] = !0, K(u), s("Failed %s type: %s", n, a.message), K(null));
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
var
|
|
326
|
-
function
|
|
327
|
-
return
|
|
325
|
+
var Br = Array.isArray;
|
|
326
|
+
function rr(r) {
|
|
327
|
+
return Br(r);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Gr(r) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
332
|
-
return
|
|
331
|
+
var e = typeof Symbol == "function" && Symbol.toStringTag, n = e && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
332
|
+
return n;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Kr(r) {
|
|
336
336
|
try {
|
|
337
|
-
return
|
|
337
|
+
return yr(r), !1;
|
|
338
338
|
} catch {
|
|
339
339
|
return !0;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
function
|
|
343
|
-
return "" +
|
|
342
|
+
function yr(r) {
|
|
343
|
+
return "" + r;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
if (
|
|
347
|
-
return
|
|
345
|
+
function Rr(r) {
|
|
346
|
+
if (Kr(r))
|
|
347
|
+
return s("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gr(r)), yr(r);
|
|
348
348
|
}
|
|
349
|
-
var
|
|
349
|
+
var Tr = E.ReactCurrentOwner, zr = {
|
|
350
350
|
key: !0,
|
|
351
351
|
ref: !0,
|
|
352
352
|
__self: !0,
|
|
353
353
|
__source: !0
|
|
354
|
-
},
|
|
355
|
-
function
|
|
356
|
-
if (
|
|
357
|
-
var
|
|
358
|
-
if (
|
|
354
|
+
}, Or, mr;
|
|
355
|
+
function Xr(r) {
|
|
356
|
+
if (U.call(r, "ref")) {
|
|
357
|
+
var e = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
358
|
+
if (e && e.isReactWarning)
|
|
359
359
|
return !1;
|
|
360
360
|
}
|
|
361
|
-
return
|
|
361
|
+
return r.ref !== void 0;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
if (
|
|
365
|
-
var
|
|
366
|
-
if (
|
|
363
|
+
function Hr(r) {
|
|
364
|
+
if (U.call(r, "key")) {
|
|
365
|
+
var e = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
366
|
+
if (e && e.isReactWarning)
|
|
367
367
|
return !1;
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return r.key !== void 0;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
typeof
|
|
371
|
+
function Zr(r, e) {
|
|
372
|
+
typeof r.ref == "string" && Tr.current;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Qr(r, e) {
|
|
375
375
|
{
|
|
376
|
-
var
|
|
377
|
-
|
|
376
|
+
var n = function() {
|
|
377
|
+
Or || (Or = !0, s("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", e));
|
|
378
378
|
};
|
|
379
|
-
|
|
380
|
-
get:
|
|
379
|
+
n.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
380
|
+
get: n,
|
|
381
381
|
configurable: !0
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function re(r, e) {
|
|
386
386
|
{
|
|
387
|
-
var
|
|
388
|
-
|
|
387
|
+
var n = function() {
|
|
388
|
+
mr || (mr = !0, s("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", e));
|
|
389
389
|
};
|
|
390
|
-
|
|
391
|
-
get:
|
|
390
|
+
n.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
391
|
+
get: n,
|
|
392
392
|
configurable: !0
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var ee = function(r, e, n, t, u, l, o) {
|
|
397
397
|
var a = {
|
|
398
398
|
// This tag allows us to uniquely identify this as a React Element
|
|
399
|
-
$$typeof:
|
|
399
|
+
$$typeof: j,
|
|
400
400
|
// Built-in properties that belong on the element
|
|
401
|
-
type:
|
|
402
|
-
key:
|
|
403
|
-
ref:
|
|
401
|
+
type: r,
|
|
402
|
+
key: e,
|
|
403
|
+
ref: n,
|
|
404
404
|
props: o,
|
|
405
405
|
// Record the component responsible for creating this element.
|
|
406
|
-
_owner:
|
|
406
|
+
_owner: l
|
|
407
407
|
};
|
|
408
408
|
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
409
409
|
configurable: !1,
|
|
@@ -414,7 +414,7 @@ function pr() {
|
|
|
414
414
|
configurable: !1,
|
|
415
415
|
enumerable: !1,
|
|
416
416
|
writable: !1,
|
|
417
|
-
value:
|
|
417
|
+
value: t
|
|
418
418
|
}), Object.defineProperty(a, "_source", {
|
|
419
419
|
configurable: !1,
|
|
420
420
|
enumerable: !1,
|
|
@@ -422,288 +422,290 @@ function pr() {
|
|
|
422
422
|
value: u
|
|
423
423
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
424
424
|
};
|
|
425
|
-
function
|
|
425
|
+
function ne(r, e, n, t, u) {
|
|
426
426
|
{
|
|
427
|
-
var
|
|
428
|
-
|
|
429
|
-
for (
|
|
430
|
-
|
|
431
|
-
if (
|
|
432
|
-
var
|
|
433
|
-
for (
|
|
434
|
-
o[
|
|
427
|
+
var l, o = {}, a = null, b = null;
|
|
428
|
+
n !== void 0 && (Rr(n), a = "" + n), Hr(e) && (Rr(e.key), a = "" + e.key), Xr(e) && (b = e.ref, Zr(e, u));
|
|
429
|
+
for (l in e)
|
|
430
|
+
U.call(e, l) && !zr.hasOwnProperty(l) && (o[l] = e[l]);
|
|
431
|
+
if (r && r.defaultProps) {
|
|
432
|
+
var d = r.defaultProps;
|
|
433
|
+
for (l in d)
|
|
434
|
+
o[l] === void 0 && (o[l] = d[l]);
|
|
435
435
|
}
|
|
436
|
-
if (a ||
|
|
437
|
-
var
|
|
438
|
-
a &&
|
|
436
|
+
if (a || b) {
|
|
437
|
+
var v = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
438
|
+
a && Qr(o, v), b && re(o, v);
|
|
439
439
|
}
|
|
440
|
-
return
|
|
440
|
+
return ee(r, a, b, u, t, Tr.current, o);
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
var
|
|
444
|
-
function
|
|
445
|
-
if (
|
|
446
|
-
var
|
|
447
|
-
|
|
443
|
+
var er = E.ReactCurrentOwner, Sr = E.ReactDebugCurrentFrame;
|
|
444
|
+
function W(r) {
|
|
445
|
+
if (r) {
|
|
446
|
+
var e = r._owner, n = G(r.type, r._source, e ? e.type : null);
|
|
447
|
+
Sr.setExtraStackFrame(n);
|
|
448
448
|
} else
|
|
449
|
-
|
|
449
|
+
Sr.setExtraStackFrame(null);
|
|
450
450
|
}
|
|
451
|
-
var
|
|
452
|
-
|
|
453
|
-
function
|
|
454
|
-
return typeof
|
|
451
|
+
var nr;
|
|
452
|
+
nr = !1;
|
|
453
|
+
function tr(r) {
|
|
454
|
+
return typeof r == "object" && r !== null && r.$$typeof === j;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function wr() {
|
|
457
457
|
{
|
|
458
|
-
if (
|
|
459
|
-
var
|
|
460
|
-
if (
|
|
458
|
+
if (er.current) {
|
|
459
|
+
var r = C(er.current.type);
|
|
460
|
+
if (r)
|
|
461
461
|
return `
|
|
462
462
|
|
|
463
|
-
Check the render method of \`` +
|
|
463
|
+
Check the render method of \`` + r + "`.";
|
|
464
464
|
}
|
|
465
465
|
return "";
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function te(r) {
|
|
469
469
|
return "";
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
function
|
|
471
|
+
var xr = {};
|
|
472
|
+
function ae(r) {
|
|
473
473
|
{
|
|
474
|
-
var
|
|
475
|
-
if (!
|
|
476
|
-
var
|
|
477
|
-
|
|
474
|
+
var e = wr();
|
|
475
|
+
if (!e) {
|
|
476
|
+
var n = typeof r == "string" ? r : r.displayName || r.name;
|
|
477
|
+
n && (e = `
|
|
478
478
|
|
|
479
|
-
Check the top-level render call using <` +
|
|
479
|
+
Check the top-level render call using <` + n + ">.");
|
|
480
480
|
}
|
|
481
|
-
return
|
|
481
|
+
return e;
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Cr(r, e) {
|
|
485
485
|
{
|
|
486
|
-
if (!
|
|
486
|
+
if (!r._store || r._store.validated || r.key != null)
|
|
487
487
|
return;
|
|
488
|
-
|
|
489
|
-
var
|
|
490
|
-
if (
|
|
488
|
+
r._store.validated = !0;
|
|
489
|
+
var n = ae(e);
|
|
490
|
+
if (xr[n])
|
|
491
491
|
return;
|
|
492
|
-
|
|
493
|
-
var
|
|
494
|
-
|
|
492
|
+
xr[n] = !0;
|
|
493
|
+
var t = "";
|
|
494
|
+
r && r._owner && r._owner !== er.current && (t = " It was passed a child from " + C(r._owner.type) + "."), W(r), s('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, t), W(null);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Pr(r, e) {
|
|
498
498
|
{
|
|
499
|
-
if (typeof
|
|
499
|
+
if (typeof r != "object")
|
|
500
500
|
return;
|
|
501
|
-
if (
|
|
502
|
-
for (var
|
|
503
|
-
var
|
|
504
|
-
|
|
501
|
+
if (rr(r))
|
|
502
|
+
for (var n = 0; n < r.length; n++) {
|
|
503
|
+
var t = r[n];
|
|
504
|
+
tr(t) && Cr(t, e);
|
|
505
505
|
}
|
|
506
|
-
else if (
|
|
507
|
-
|
|
508
|
-
else if (
|
|
509
|
-
var u =
|
|
510
|
-
if (typeof u == "function" && u !==
|
|
511
|
-
for (var
|
|
512
|
-
|
|
506
|
+
else if (tr(r))
|
|
507
|
+
r._store && (r._store.validated = !0);
|
|
508
|
+
else if (r) {
|
|
509
|
+
var u = h(r);
|
|
510
|
+
if (typeof u == "function" && u !== r.entries)
|
|
511
|
+
for (var l = u.call(r), o; !(o = l.next()).done; )
|
|
512
|
+
tr(o.value) && Cr(o.value, e);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function oe(r) {
|
|
517
517
|
{
|
|
518
|
-
var
|
|
519
|
-
if (
|
|
518
|
+
var e = r.type;
|
|
519
|
+
if (e == null || typeof e == "string")
|
|
520
520
|
return;
|
|
521
|
-
var
|
|
522
|
-
if (typeof
|
|
523
|
-
|
|
524
|
-
else if (typeof
|
|
521
|
+
var n;
|
|
522
|
+
if (typeof e == "function")
|
|
523
|
+
n = e.propTypes;
|
|
524
|
+
else if (typeof e == "object" && (e.$$typeof === f || // Note: Memo only checks outer props here.
|
|
525
525
|
// Inner props are checked in the reconciler.
|
|
526
|
-
|
|
527
|
-
|
|
526
|
+
e.$$typeof === O))
|
|
527
|
+
n = e.propTypes;
|
|
528
528
|
else
|
|
529
529
|
return;
|
|
530
|
-
if (
|
|
531
|
-
var
|
|
532
|
-
|
|
533
|
-
} else if (
|
|
534
|
-
|
|
535
|
-
var u = C(
|
|
536
|
-
|
|
530
|
+
if (n) {
|
|
531
|
+
var t = C(e);
|
|
532
|
+
qr(n, r.props, "prop", t, r);
|
|
533
|
+
} else if (e.PropTypes !== void 0 && !nr) {
|
|
534
|
+
nr = !0;
|
|
535
|
+
var u = C(e);
|
|
536
|
+
s("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
537
537
|
}
|
|
538
|
-
typeof
|
|
538
|
+
typeof e.getDefaultProps == "function" && !e.getDefaultProps.isReactClassApproved && s("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function ie(r) {
|
|
542
542
|
{
|
|
543
|
-
for (var
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
546
|
-
|
|
543
|
+
for (var e = Object.keys(r.props), n = 0; n < e.length; n++) {
|
|
544
|
+
var t = e[n];
|
|
545
|
+
if (t !== "children" && t !== "key") {
|
|
546
|
+
W(r), s("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), W(null);
|
|
547
547
|
break;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
|
|
550
|
+
r.ref !== null && (W(r), s("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
var
|
|
554
|
-
function
|
|
553
|
+
var jr = {};
|
|
554
|
+
function kr(r, e, n, t, u, l) {
|
|
555
555
|
{
|
|
556
|
-
var o =
|
|
556
|
+
var o = Mr(r);
|
|
557
557
|
if (!o) {
|
|
558
558
|
var a = "";
|
|
559
|
-
(
|
|
560
|
-
var
|
|
561
|
-
|
|
562
|
-
var
|
|
563
|
-
|
|
559
|
+
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
560
|
+
var b = te();
|
|
561
|
+
b ? a += b : a += wr();
|
|
562
|
+
var d;
|
|
563
|
+
r === null ? d = "null" : rr(r) ? d = "array" : r !== void 0 && r.$$typeof === j ? (d = "<" + (C(r.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : d = typeof r, s("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, a);
|
|
564
564
|
}
|
|
565
|
-
var
|
|
566
|
-
if (
|
|
567
|
-
return
|
|
565
|
+
var v = ne(r, e, n, u, l);
|
|
566
|
+
if (v == null)
|
|
567
|
+
return v;
|
|
568
568
|
if (o) {
|
|
569
|
-
var
|
|
570
|
-
if (
|
|
571
|
-
if (
|
|
572
|
-
if (
|
|
573
|
-
for (var
|
|
574
|
-
|
|
575
|
-
Object.freeze && Object.freeze(
|
|
569
|
+
var R = e.children;
|
|
570
|
+
if (R !== void 0)
|
|
571
|
+
if (t)
|
|
572
|
+
if (rr(R)) {
|
|
573
|
+
for (var M = 0; M < R.length; M++)
|
|
574
|
+
Pr(R[M], r);
|
|
575
|
+
Object.freeze && Object.freeze(R);
|
|
576
576
|
} else
|
|
577
|
-
|
|
577
|
+
s("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
578
578
|
else
|
|
579
|
-
|
|
579
|
+
Pr(R, r);
|
|
580
580
|
}
|
|
581
|
-
if (
|
|
582
|
-
var
|
|
583
|
-
return
|
|
584
|
-
}),
|
|
585
|
-
if (!
|
|
586
|
-
var
|
|
587
|
-
|
|
581
|
+
if (U.call(e, "key")) {
|
|
582
|
+
var F = C(r), g = Object.keys(e).filter(function(de) {
|
|
583
|
+
return de !== "key";
|
|
584
|
+
}), ar = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
585
|
+
if (!jr[F + ar]) {
|
|
586
|
+
var ce = g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}";
|
|
587
|
+
s(`A props object containing a "key" prop is being spread into JSX:
|
|
588
588
|
let props = %s;
|
|
589
589
|
<%s {...props} />
|
|
590
590
|
React keys must be passed directly to JSX without using spread:
|
|
591
591
|
let props = %s;
|
|
592
|
-
<%s key={someKey} {...props} />`,
|
|
592
|
+
<%s key={someKey} {...props} />`, ar, F, ce, F), jr[F + ar] = !0;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
return
|
|
595
|
+
return r === x ? ie(v) : oe(v), v;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
function
|
|
599
|
-
return
|
|
598
|
+
function ue(r, e, n) {
|
|
599
|
+
return kr(r, e, n, !0);
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function se(r, e, n) {
|
|
602
|
+
return kr(r, e, n, !1);
|
|
603
603
|
}
|
|
604
|
-
var
|
|
605
|
-
|
|
606
|
-
})()),
|
|
604
|
+
var le = se, fe = ue;
|
|
605
|
+
J.Fragment = x, J.jsx = le, J.jsxs = fe;
|
|
606
|
+
})()), J;
|
|
607
607
|
}
|
|
608
|
-
var
|
|
609
|
-
function
|
|
610
|
-
return
|
|
608
|
+
var Fr;
|
|
609
|
+
function he() {
|
|
610
|
+
return Fr || (Fr = 1, process.env.NODE_ENV === "production" ? X.exports = ve() : X.exports = pe()), X.exports;
|
|
611
611
|
}
|
|
612
|
-
var
|
|
613
|
-
const
|
|
614
|
-
commits:
|
|
615
|
-
rowHeight:
|
|
616
|
-
colorPalette:
|
|
617
|
-
laneWidth:
|
|
618
|
-
renderNode:
|
|
619
|
-
renderEdge:
|
|
612
|
+
var or = he();
|
|
613
|
+
const $r = 50, be = 5, ge = ["#3a86ff", "#8338ec", "#ff006e", "#fb5607", "#ffbe0b"], _e = ({
|
|
614
|
+
commits: P,
|
|
615
|
+
rowHeight: j,
|
|
616
|
+
colorPalette: $,
|
|
617
|
+
laneWidth: x,
|
|
618
|
+
renderNode: k,
|
|
619
|
+
renderEdge: D
|
|
620
620
|
}) => {
|
|
621
|
-
const
|
|
622
|
-
(
|
|
623
|
-
color:
|
|
621
|
+
const _ = x || $r, T = j || $r, f = z(
|
|
622
|
+
() => ($ || ge).map((i, c) => ({
|
|
623
|
+
color: i,
|
|
624
624
|
branch: null,
|
|
625
|
-
lane:
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
625
|
+
lane: c + 1,
|
|
626
|
+
index: c
|
|
627
|
+
})),
|
|
628
|
+
[$, P]
|
|
629
|
+
);
|
|
630
|
+
function w() {
|
|
631
|
+
var i = f.findIndex((h) => !h.branch);
|
|
632
|
+
if (i > -1)
|
|
633
|
+
return f[i];
|
|
634
|
+
var c = {
|
|
633
635
|
color: "#" + Math.floor(Math.random() * 16777215).toString(16),
|
|
634
636
|
branch: null,
|
|
635
|
-
lane:
|
|
637
|
+
lane: f.length + 1,
|
|
638
|
+
index: i
|
|
636
639
|
};
|
|
637
|
-
return
|
|
640
|
+
return f.push(c), c;
|
|
638
641
|
}
|
|
639
|
-
const
|
|
640
|
-
var
|
|
641
|
-
const
|
|
642
|
-
return
|
|
643
|
-
var
|
|
644
|
-
...
|
|
642
|
+
const p = z(() => {
|
|
643
|
+
var i = [];
|
|
644
|
+
const c = /* @__PURE__ */ new Map();
|
|
645
|
+
return P.forEach((h, E) => {
|
|
646
|
+
var s = {
|
|
647
|
+
...h,
|
|
645
648
|
color: "",
|
|
646
649
|
lane: 0,
|
|
647
650
|
cx: 0,
|
|
648
651
|
cy: 0,
|
|
649
|
-
prev: []
|
|
652
|
+
prev: [],
|
|
650
653
|
// initialize empty
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
654
|
+
index: E
|
|
655
|
+
}, S = f.find((y) => y.branch == h.id);
|
|
656
|
+
S ? f.forEach((y) => {
|
|
657
|
+
y.branch === h.id && y.index !== S?.index && (y.branch = null);
|
|
658
|
+
}) : S = w();
|
|
659
|
+
for (const y of h.parents)
|
|
660
|
+
if (f.find((L) => L.branch === y))
|
|
661
|
+
S.branch = y;
|
|
662
|
+
else if (S.branch == h.id) S.branch = y;
|
|
663
|
+
else {
|
|
664
|
+
var Y = f.find((L) => !L.branch);
|
|
665
|
+
Y || (Y = w()), Y.branch = y;
|
|
666
|
+
}
|
|
667
|
+
s.color = S.color, s.lane = S.lane, s.cx = s.lane * _ - _ / 2, s.cy = T * E + _ / 2, i.push(s), c.set(s.id, s);
|
|
668
|
+
}), i.forEach((h) => {
|
|
669
|
+
h.parents.forEach((E) => {
|
|
670
|
+
const s = c.get(E);
|
|
671
|
+
s && s.prev.push(h);
|
|
663
672
|
});
|
|
664
|
-
}),
|
|
665
|
-
}, [
|
|
666
|
-
function
|
|
667
|
-
|
|
668
|
-
Math.floor(de / D),
|
|
669
|
-
Math.floor(ve / I)
|
|
670
|
-
), C = I * J, w = D * 1;
|
|
671
|
-
let m = p, P = _, q = `M ${m} ${P} `;
|
|
672
|
-
for (let ue = 0; ue < te; ue++) {
|
|
673
|
-
const W = m + fe * D, Y = P + C, B = m, Z = P + J * w, G = W, he = Y - J * w;
|
|
674
|
-
q += `C ${B} ${Z}, ${G} ${he}, ${W} ${Y} `, m = W, P = Y;
|
|
675
|
-
}
|
|
676
|
-
const ne = R - P, z = Math.sign(ne), H = D * 1, ae = m, oe = P + z * H, ie = i, pe = R - z * H;
|
|
677
|
-
return q += `C ${ae} ${oe}, ${ie} ${pe}, ${i} ${R}`, q;
|
|
673
|
+
}), i;
|
|
674
|
+
}, [P, T, _]);
|
|
675
|
+
function O(i, c) {
|
|
676
|
+
return `M ${i.cx} ${i.cy} L ${c.cx} ${c.cy}`;
|
|
678
677
|
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
678
|
+
const m = z(() => Math.max(...p.map((i) => i.lane), 0), [p]), I = z(() => m * _ + 100, [m, _]);
|
|
679
|
+
return /* @__PURE__ */ or.jsxs("svg", { width: I, height: T * p.length, children: [
|
|
680
|
+
p.flatMap(
|
|
681
|
+
(i) => i.prev.map((c, h) => {
|
|
682
|
+
if (D)
|
|
683
|
+
return D(i, c, h);
|
|
684
|
+
const E = O(i, c);
|
|
685
|
+
return /* @__PURE__ */ or.jsx(
|
|
684
686
|
"path",
|
|
685
687
|
{
|
|
686
|
-
d:
|
|
688
|
+
d: E,
|
|
687
689
|
fill: "none",
|
|
688
|
-
stroke:
|
|
690
|
+
stroke: i.lane <= c.lane ? c.color : i.color,
|
|
689
691
|
strokeWidth: 2
|
|
690
692
|
},
|
|
691
|
-
`${
|
|
693
|
+
`${i.id}-${c.id}_${h}`
|
|
692
694
|
);
|
|
693
695
|
})
|
|
694
696
|
),
|
|
695
|
-
|
|
697
|
+
p.map((i, c) => k ? k(i, c) : /* @__PURE__ */ or.jsx(
|
|
696
698
|
"circle",
|
|
697
699
|
{
|
|
698
|
-
cx:
|
|
699
|
-
cy:
|
|
700
|
-
r:
|
|
701
|
-
fill:
|
|
700
|
+
cx: i.cx,
|
|
701
|
+
cy: i.cy,
|
|
702
|
+
r: be,
|
|
703
|
+
fill: i.color
|
|
702
704
|
},
|
|
703
|
-
|
|
705
|
+
`${i.id}_${c}`
|
|
704
706
|
))
|
|
705
707
|
] });
|
|
706
708
|
};
|
|
707
709
|
export {
|
|
708
|
-
|
|
710
|
+
_e as GitGraphSVG
|
|
709
711
|
};
|