@tangle-network/sandbox-ui 2.0.21 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/dist/{record-CnxPRyxC.js → AgentTree-CJRVpgPq.js} +196 -83
- package/dist/ResearchReport-CSNpZ-pj.js +2063 -0
- package/dist/ResearchReport-CmFYqNVY.d.ts +36 -0
- package/dist/{WorkflowGraph-CADReIDl.js → WorkflowGraph-B8cRtVaw.js} +2 -2
- package/dist/{chat-BU39pb2j.js → chat-BrlLa4rg.js} +2 -2
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +1 -1
- package/dist/globals.css +5837 -419
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{index-Due7tY0w.d.ts → index-5zOVKgDT.d.ts} +2 -2
- package/dist/{index-DxMX-DlX.d.ts → index-YU_b9xCK.d.ts} +3 -3
- package/dist/{index-1qlc9-S2.d.ts → index-gXcuwPOX.d.ts} +5 -6
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -6
- package/dist/record/ResearchReport.d.ts +2 -0
- package/dist/record/ResearchReport.js +1 -0
- package/dist/record-Ct_MZeZC.js +47 -0
- package/dist/record.d.ts +33 -0
- package/dist/record.js +270 -0
- package/dist/report-viewer.js +554 -0
- package/dist/run/live.js +14 -33
- package/dist/run/record.d.ts +2 -2
- package/dist/run/record.js +3 -2
- package/dist/run.d.ts +3 -3
- package/dist/run.js +5 -4
- package/dist/runtime-viewer/{AgentGraphCanvas-B74GN1o6-DC3EH_ss.js → AgentGraphCanvas-CcBWMidO-DIW8tof6.js} +1366 -1348
- package/dist/runtime-viewer/{latest-events-iiWwpIck-BTK0vSlR.js → latest-events-BfRc-7l9-QhJD89rn.js} +899 -748
- package/dist/runtime-viewer/sandbox-ui-CUj4Q1P_.css +2 -0
- package/dist/styles.css +5838 -420
- package/dist/tailwind.css +5677 -5
- package/dist/tokens.css +7 -1
- package/dist/{trace-workspace-DkakKRLV.js → trace-workspace-BiJbv9WQ.js} +2 -2
- package/dist/use-follow-tail-Ht7fZGQQ.js +1 -0
- package/dist/workflows.js +1 -1
- package/dist/workspace-viewer.js +8785 -11045
- package/package.json +30 -12
- package/dist/runtime-viewer/sandbox-ui-z5RGk327.css +0 -2
- package/dist/use-follow-tail-Ckx5ZSV2.js +0 -1
|
@@ -132,7 +132,7 @@ var n = /* @__PURE__ */ t(((e) => {
|
|
|
132
132
|
if (e._status === 1) return e._result.default;
|
|
133
133
|
throw e._result;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
135
|
+
var te = typeof reportError == "function" ? reportError : function(e) {
|
|
136
136
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
137
137
|
var t = new window.ErrorEvent("error", {
|
|
138
138
|
bubbles: !0,
|
|
@@ -147,26 +147,26 @@ var n = /* @__PURE__ */ t(((e) => {
|
|
|
147
147
|
}
|
|
148
148
|
console.error(e);
|
|
149
149
|
};
|
|
150
|
-
function
|
|
150
|
+
function ne(e) {
|
|
151
151
|
var t = T.T, n = {};
|
|
152
152
|
n.types = t === null ? null : t.types, T.T = n;
|
|
153
153
|
try {
|
|
154
154
|
var r = e(), i = T.S;
|
|
155
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w,
|
|
155
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, te);
|
|
156
156
|
} catch (e) {
|
|
157
|
-
|
|
157
|
+
te(e);
|
|
158
158
|
} finally {
|
|
159
159
|
t !== null && n.types !== null && (t.types = n.types), T.T = t;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function re(e) {
|
|
163
163
|
var t = T.T;
|
|
164
164
|
if (t !== null) {
|
|
165
165
|
var n = t.types;
|
|
166
166
|
n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);
|
|
167
|
-
} else
|
|
167
|
+
} else ne(re.bind(null, e));
|
|
168
168
|
}
|
|
169
|
-
var
|
|
169
|
+
var ie = {
|
|
170
170
|
map: P,
|
|
171
171
|
forEach: function(e, t, n) {
|
|
172
172
|
P(e, function() {
|
|
@@ -189,12 +189,12 @@ var n = /* @__PURE__ */ t(((e) => {
|
|
|
189
189
|
return e;
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
e.Activity = f, e.Children =
|
|
192
|
+
e.Activity = f, e.Children = ie, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
|
|
193
193
|
__proto__: null,
|
|
194
194
|
c: function(e) {
|
|
195
195
|
return T.H.useMemoCache(e);
|
|
196
196
|
}
|
|
197
|
-
}, e.addTransitionType =
|
|
197
|
+
}, e.addTransitionType = re, e.cache = function(e) {
|
|
198
198
|
return function() {
|
|
199
199
|
return e.apply(null, arguments);
|
|
200
200
|
};
|
|
@@ -256,7 +256,7 @@ var n = /* @__PURE__ */ t(((e) => {
|
|
|
256
256
|
type: e,
|
|
257
257
|
compare: t === void 0 ? null : t
|
|
258
258
|
};
|
|
259
|
-
}, e.startTransition =
|
|
259
|
+
}, e.startTransition = ne, e.unstable_useCacheRefresh = function() {
|
|
260
260
|
return T.H.useCacheRefresh();
|
|
261
261
|
}, e.use = function(e) {
|
|
262
262
|
return T.H.use(e);
|
|
@@ -434,126 +434,105 @@ var n = /* @__PURE__ */ t(((e) => {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
n(), t.exports = i();
|
|
437
|
-
})), o = /* @__PURE__ */
|
|
438
|
-
|
|
439
|
-
function r(e, n, r) {
|
|
440
|
-
var i = null;
|
|
441
|
-
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
442
|
-
else r = n;
|
|
443
|
-
return n = r.ref, {
|
|
444
|
-
$$typeof: t,
|
|
445
|
-
type: e,
|
|
446
|
-
key: i,
|
|
447
|
-
ref: n === void 0 ? null : n,
|
|
448
|
-
props: r
|
|
449
|
-
};
|
|
450
|
-
}
|
|
451
|
-
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
452
|
-
})), s = /* @__PURE__ */ t(((e, t) => {
|
|
453
|
-
t.exports = o();
|
|
454
|
-
})), c = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, l = (e) => typeof e == "number" && Number.isSafeInteger(e) && e >= 0 ? e : void 0;
|
|
455
|
-
function u(e) {
|
|
456
|
-
if (e.length && !e.some((e) => l(e) === void 0)) return l(e.reduce((e, t) => e + t, 0));
|
|
457
|
-
}
|
|
458
|
-
// node_modules/.pnpm/@tangle-network+charts@2.0.17_@xyflow+react@12.12.0_@types+react-dom@19.3.0_@types+reac_8e3190d6d56297d136c67efaea3d6d83/node_modules/@tangle-network/charts/dist/flow-waterfall-model-DvrgPLGS.js
|
|
459
|
-
var d = s(), f = /* @__PURE__ */ e(r(), 1);
|
|
460
|
-
function p(e) {
|
|
437
|
+
})), o = /* @__PURE__ */ e(r(), 1);
|
|
438
|
+
function s(e) {
|
|
461
439
|
var t, n, r = "";
|
|
462
440
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
463
441
|
else if (typeof e == "object") {
|
|
464
442
|
if (Array.isArray(e)) {
|
|
465
443
|
var i = e.length;
|
|
466
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
444
|
+
for (t = 0; t < i; t++) e[t] && (n = s(e[t])) && (r && (r += " "), r += n);
|
|
467
445
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
468
446
|
}
|
|
469
447
|
return r;
|
|
470
448
|
}
|
|
471
|
-
function
|
|
472
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
449
|
+
function c() {
|
|
450
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = s(e)) && (r && (r += " "), r += t);
|
|
473
451
|
return r;
|
|
474
452
|
}
|
|
475
|
-
|
|
453
|
+
// node_modules/.pnpm/tailwind-merge@3.7.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
454
|
+
var l = (e, t) => {
|
|
476
455
|
let n = Array(e.length + t.length);
|
|
477
456
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
478
457
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
479
458
|
return n;
|
|
480
|
-
},
|
|
459
|
+
}, u = (e, t) => ({
|
|
481
460
|
classGroupId: e,
|
|
482
461
|
validator: t
|
|
483
|
-
}),
|
|
462
|
+
}), d = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
484
463
|
nextPart: e,
|
|
485
464
|
validators: t,
|
|
486
465
|
classGroupId: n
|
|
487
|
-
}),
|
|
488
|
-
let t =
|
|
466
|
+
}), f = "-", p = [], m = "arbitrary..", h = (e) => {
|
|
467
|
+
let t = v(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
489
468
|
return {
|
|
490
469
|
getClassGroupId: (e) => {
|
|
491
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
492
|
-
let n = e.split(
|
|
493
|
-
return
|
|
470
|
+
if (e.startsWith("[") && e.endsWith("]")) return _(e);
|
|
471
|
+
let n = e.split(f);
|
|
472
|
+
return g(n, +(n[0] === "" && n.length > 1), t);
|
|
494
473
|
},
|
|
495
474
|
getConflictingClassGroupIds: (e, t) => {
|
|
496
475
|
if (t) {
|
|
497
476
|
let t = r[e], i = n[e];
|
|
498
|
-
return t ? i ?
|
|
477
|
+
return t ? i ? l(i, t) : t : i || p;
|
|
499
478
|
}
|
|
500
|
-
return n[e] ||
|
|
479
|
+
return n[e] || p;
|
|
501
480
|
}
|
|
502
481
|
};
|
|
503
|
-
},
|
|
482
|
+
}, g = (e, t, n) => {
|
|
504
483
|
if (e.length - t === 0) return n.classGroupId;
|
|
505
484
|
let r = e[t], i = n.nextPart.get(r);
|
|
506
485
|
if (i) {
|
|
507
|
-
let n =
|
|
486
|
+
let n = g(e, t + 1, i);
|
|
508
487
|
if (n) return n;
|
|
509
488
|
}
|
|
510
489
|
let a = n.validators;
|
|
511
490
|
if (a === null) return;
|
|
512
|
-
let o = t === 0 ? e.join(
|
|
491
|
+
let o = t === 0 ? e.join(f) : e.slice(t).join(f), s = a.length;
|
|
513
492
|
for (let e = 0; e < s; e++) {
|
|
514
493
|
let t = a[e];
|
|
515
494
|
if (t.validator(o)) return t.classGroupId;
|
|
516
495
|
}
|
|
517
|
-
},
|
|
496
|
+
}, _ = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
518
497
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
519
|
-
return r ?
|
|
520
|
-
})(),
|
|
498
|
+
return r ? m + r : void 0;
|
|
499
|
+
})(), v = (e) => {
|
|
521
500
|
let { theme: t, classGroups: n } = e;
|
|
522
|
-
return
|
|
523
|
-
},
|
|
524
|
-
let n =
|
|
501
|
+
return y(n, t);
|
|
502
|
+
}, y = (e, t) => {
|
|
503
|
+
let n = d();
|
|
525
504
|
for (let r in e) {
|
|
526
505
|
let i = e[r];
|
|
527
|
-
|
|
506
|
+
b(i, n, r, t);
|
|
528
507
|
}
|
|
529
508
|
return n;
|
|
530
|
-
},
|
|
509
|
+
}, b = (e, t, n, r) => {
|
|
531
510
|
let i = e.length;
|
|
532
511
|
for (let a = 0; a < i; a++) {
|
|
533
512
|
let i = e[a];
|
|
534
|
-
|
|
513
|
+
x(i, t, n, r);
|
|
535
514
|
}
|
|
536
|
-
},
|
|
537
|
-
typeof e == "string" ?
|
|
538
|
-
},
|
|
539
|
-
let r = e === "" ? t :
|
|
515
|
+
}, x = (e, t, n, r) => {
|
|
516
|
+
typeof e == "string" ? S(e, t, n) : typeof e == "function" ? C(e, t, n, r) : w(e, t, n, r);
|
|
517
|
+
}, S = (e, t, n) => {
|
|
518
|
+
let r = e === "" ? t : T(t, e);
|
|
540
519
|
r.classGroupId = n;
|
|
541
|
-
},
|
|
542
|
-
|
|
543
|
-
},
|
|
520
|
+
}, C = (e, t, n, r) => {
|
|
521
|
+
E(e) ? b(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(u(n, e)));
|
|
522
|
+
}, w = (e, t, n, r) => {
|
|
544
523
|
let i = Object.entries(e), a = i.length;
|
|
545
524
|
for (let e = 0; e < a; e++) {
|
|
546
525
|
let [a, o] = i[e];
|
|
547
|
-
|
|
526
|
+
b(o, T(t, a), n, r);
|
|
548
527
|
}
|
|
549
|
-
},
|
|
550
|
-
let n = e, r = t.split(
|
|
528
|
+
}, T = (e, t) => {
|
|
529
|
+
let n = e, r = t.split(f), i = r.length;
|
|
551
530
|
for (let e = 0; e < i; e++) {
|
|
552
531
|
let t = r[e], i = n.nextPart.get(t);
|
|
553
|
-
i || (i =
|
|
532
|
+
i || (i = d(), n.nextPart.set(t, i)), n = i;
|
|
554
533
|
}
|
|
555
534
|
return n;
|
|
556
|
-
},
|
|
535
|
+
}, E = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, D = (e) => {
|
|
557
536
|
if (e < 1) return {
|
|
558
537
|
get: () => void 0,
|
|
559
538
|
set: () => {}
|
|
@@ -571,19 +550,19 @@ var h = (e, t) => {
|
|
|
571
550
|
e in n ? n[e] = t : i(e, t);
|
|
572
551
|
}
|
|
573
552
|
};
|
|
574
|
-
},
|
|
553
|
+
}, O = "!", k = ":", ee = [], A = (e, t, n, r, i) => ({
|
|
575
554
|
modifiers: e,
|
|
576
555
|
hasImportantModifier: t,
|
|
577
556
|
baseClassName: n,
|
|
578
557
|
maybePostfixModifierPosition: r,
|
|
579
558
|
isExternal: i
|
|
580
|
-
}),
|
|
559
|
+
}), j = (e) => {
|
|
581
560
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
582
561
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
583
562
|
for (let s = 0; s < o; s++) {
|
|
584
563
|
let o = e[s];
|
|
585
564
|
if (n === 0 && r === 0) {
|
|
586
|
-
if (o ===
|
|
565
|
+
if (o === k) {
|
|
587
566
|
t.push(e.slice(i, s)), i = s + 1;
|
|
588
567
|
continue;
|
|
589
568
|
}
|
|
@@ -595,13 +574,13 @@ var h = (e, t) => {
|
|
|
595
574
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
596
575
|
}
|
|
597
576
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
598
|
-
s.endsWith(
|
|
577
|
+
s.endsWith(O) ? (c = s.slice(0, -1), l = !0) : s.startsWith(O) && (c = s.slice(1), l = !0);
|
|
599
578
|
let u = a && a > i ? a - i : void 0;
|
|
600
|
-
return
|
|
579
|
+
return A(t, l, c, u);
|
|
601
580
|
};
|
|
602
581
|
if (t) {
|
|
603
|
-
let e = t +
|
|
604
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
582
|
+
let e = t + k, n = r;
|
|
583
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : A(ee, !1, t, void 0, !0);
|
|
605
584
|
}
|
|
606
585
|
if (n) {
|
|
607
586
|
let e = r;
|
|
@@ -611,7 +590,7 @@ var h = (e, t) => {
|
|
|
611
590
|
});
|
|
612
591
|
}
|
|
613
592
|
return r;
|
|
614
|
-
},
|
|
593
|
+
}, M = (e) => {
|
|
615
594
|
let t = /* @__PURE__ */ new Map();
|
|
616
595
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
617
596
|
t.set(e, 1e6 + n);
|
|
@@ -623,18 +602,18 @@ var h = (e, t) => {
|
|
|
623
602
|
}
|
|
624
603
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
625
604
|
};
|
|
626
|
-
},
|
|
627
|
-
cache:
|
|
628
|
-
parseClassName:
|
|
629
|
-
sortModifiers:
|
|
630
|
-
postfixLookupClassGroupIds:
|
|
631
|
-
...
|
|
632
|
-
}),
|
|
605
|
+
}, N = (e) => ({
|
|
606
|
+
cache: D(e.cacheSize),
|
|
607
|
+
parseClassName: j(e),
|
|
608
|
+
sortModifiers: M(e),
|
|
609
|
+
postfixLookupClassGroupIds: P(e),
|
|
610
|
+
...h(e)
|
|
611
|
+
}), P = (e) => {
|
|
633
612
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
634
613
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
635
614
|
return t;
|
|
636
|
-
},
|
|
637
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
615
|
+
}, F = /\s+/, te = (e, t) => {
|
|
616
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(F), l = "";
|
|
638
617
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
639
618
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
640
619
|
if (u) {
|
|
@@ -654,7 +633,7 @@ var h = (e, t) => {
|
|
|
654
633
|
}
|
|
655
634
|
h = !1;
|
|
656
635
|
}
|
|
657
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
636
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + O : _, y = v + g;
|
|
658
637
|
if (s.indexOf(y) > -1) continue;
|
|
659
638
|
s.push(y);
|
|
660
639
|
let b = i(g, h);
|
|
@@ -665,34 +644,34 @@ var h = (e, t) => {
|
|
|
665
644
|
l = t + (l.length > 0 ? " " + l : l);
|
|
666
645
|
}
|
|
667
646
|
return l;
|
|
668
|
-
},
|
|
647
|
+
}, ne = (...e) => {
|
|
669
648
|
let t = 0, n, r, i = "";
|
|
670
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
649
|
+
for (; t < e.length;) (n = e[t++]) && (r = re(n)) && (i && (i += " "), i += r);
|
|
671
650
|
return i;
|
|
672
|
-
},
|
|
651
|
+
}, re = (e) => {
|
|
673
652
|
if (typeof e == "string") return e;
|
|
674
653
|
let t, n = "";
|
|
675
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
654
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = re(e[r])) && (n && (n += " "), n += t);
|
|
676
655
|
return n;
|
|
677
|
-
},
|
|
678
|
-
let n, r, i, a, o = (o) => (n =
|
|
656
|
+
}, ie = (e, ...t) => {
|
|
657
|
+
let n, r, i, a, o = (o) => (n = N(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
679
658
|
let t = r(e);
|
|
680
659
|
if (t) return t;
|
|
681
|
-
let a =
|
|
660
|
+
let a = te(e, n);
|
|
682
661
|
return i(e, a), a;
|
|
683
662
|
};
|
|
684
|
-
return a = o, (...e) => a(
|
|
685
|
-
},
|
|
686
|
-
let t = (t) => t[e] ||
|
|
663
|
+
return a = o, (...e) => a(ne(...e));
|
|
664
|
+
}, I = [], L = (e) => {
|
|
665
|
+
let t = (t) => t[e] || I;
|
|
687
666
|
return t.isThemeGetter = !0, t.themeKey = e, t;
|
|
688
|
-
},
|
|
689
|
-
let r =
|
|
667
|
+
}, R = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ae = /^\((?:(\w[\w-]*):)?(.+)\)$/i, oe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, z = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, se = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ce = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, le = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ue = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, B = (e) => oe.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), H = (e) => !!e && Number.isInteger(Number(e)), de = (e) => e.endsWith("%") && V(e.slice(0, -1)), U = (e) => z.test(e), fe = () => !0, pe = (e) => se.test(e) && !ce.test(e), me = () => !1, he = (e) => le.test(e), ge = (e) => ue.test(e), _e = (e) => !W(e) && !K(e), ve = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), ye = (e) => q(e, Ie, me), W = (e) => R.test(e), G = (e) => q(e, Le, pe), be = (e) => q(e, Re, V), xe = (e) => q(e, Be, fe), Se = (e) => q(e, ze, me), Ce = (e) => q(e, Pe, me), we = (e) => q(e, Fe, ge), Te = (e) => q(e, Ve, he), K = (e) => ae.test(e), Ee = (e) => Ne(e, Le), De = (e) => Ne(e, ze), Oe = (e) => Ne(e, Pe), ke = (e) => Ne(e, Ie), Ae = (e) => Ne(e, Fe), je = (e) => Ne(e, Ve, !0), Me = (e) => Ne(e, Be, !0), q = (e, t, n) => {
|
|
668
|
+
let r = R.exec(e);
|
|
690
669
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
691
|
-
},
|
|
692
|
-
let r =
|
|
670
|
+
}, Ne = (e, t, n = !1) => {
|
|
671
|
+
let r = ae.exec(e);
|
|
693
672
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
694
|
-
},
|
|
695
|
-
let e =
|
|
673
|
+
}, Pe = (e) => e === "position" || e === "percentage", Fe = (e) => e === "image" || e === "url", Ie = (e) => e === "length" || e === "size" || e === "bg-size", Le = (e) => e === "length", Re = (e) => e === "number", ze = (e) => e === "family-name", Be = (e) => e === "number" || e === "weight", Ve = (e) => e === "shadow", He = /*#__PURE__*/ ie(() => {
|
|
674
|
+
let e = L("color"), t = L("font"), n = L("text"), r = L("font-weight"), i = L("tracking"), a = L("leading"), o = L("breakpoint"), s = L("container"), c = L("spacing"), l = L("radius"), u = L("shadow"), d = L("inset-shadow"), f = L("text-shadow"), p = L("drop-shadow"), m = L("blur"), h = L("perspective"), g = L("aspect"), _ = L("ease"), v = L("animate"), y = () => [
|
|
696
675
|
"auto",
|
|
697
676
|
"avoid",
|
|
698
677
|
"all",
|
|
@@ -717,8 +696,8 @@ var h = (e, t) => {
|
|
|
717
696
|
"left-bottom"
|
|
718
697
|
], x = () => [
|
|
719
698
|
...b(),
|
|
720
|
-
|
|
721
|
-
|
|
699
|
+
K,
|
|
700
|
+
W
|
|
722
701
|
], S = () => [
|
|
723
702
|
"auto",
|
|
724
703
|
"hidden",
|
|
@@ -730,43 +709,43 @@ var h = (e, t) => {
|
|
|
730
709
|
"contain",
|
|
731
710
|
"none"
|
|
732
711
|
], w = () => [
|
|
733
|
-
|
|
734
|
-
|
|
712
|
+
K,
|
|
713
|
+
W,
|
|
735
714
|
c
|
|
736
715
|
], T = () => [
|
|
737
|
-
|
|
716
|
+
B,
|
|
738
717
|
"full",
|
|
739
718
|
"auto",
|
|
740
719
|
...w()
|
|
741
720
|
], E = () => [
|
|
742
|
-
|
|
721
|
+
H,
|
|
743
722
|
"none",
|
|
744
723
|
"subgrid",
|
|
745
|
-
|
|
746
|
-
|
|
724
|
+
K,
|
|
725
|
+
W
|
|
747
726
|
], D = () => [
|
|
748
727
|
"auto",
|
|
749
728
|
{ span: [
|
|
750
729
|
"full",
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
730
|
+
H,
|
|
731
|
+
K,
|
|
732
|
+
W
|
|
754
733
|
] },
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
734
|
+
H,
|
|
735
|
+
K,
|
|
736
|
+
W
|
|
758
737
|
], O = () => [
|
|
759
|
-
|
|
738
|
+
H,
|
|
760
739
|
"auto",
|
|
761
|
-
|
|
762
|
-
|
|
740
|
+
K,
|
|
741
|
+
W
|
|
763
742
|
], k = () => [
|
|
764
743
|
"auto",
|
|
765
744
|
"min",
|
|
766
745
|
"max",
|
|
767
746
|
"fr",
|
|
768
|
-
|
|
769
|
-
|
|
747
|
+
K,
|
|
748
|
+
W
|
|
770
749
|
], ee = () => [
|
|
771
750
|
"start",
|
|
772
751
|
"end",
|
|
@@ -786,7 +765,7 @@ var h = (e, t) => {
|
|
|
786
765
|
"center-safe",
|
|
787
766
|
"end-safe"
|
|
788
767
|
], j = () => ["auto", ...w()], M = () => [
|
|
789
|
-
|
|
768
|
+
B,
|
|
790
769
|
"auto",
|
|
791
770
|
"full",
|
|
792
771
|
"dvw",
|
|
@@ -801,7 +780,7 @@ var h = (e, t) => {
|
|
|
801
780
|
...w()
|
|
802
781
|
], N = () => [
|
|
803
782
|
s,
|
|
804
|
-
|
|
783
|
+
B,
|
|
805
784
|
"screen",
|
|
806
785
|
"full",
|
|
807
786
|
"dvw",
|
|
@@ -812,7 +791,7 @@ var h = (e, t) => {
|
|
|
812
791
|
"fit",
|
|
813
792
|
...w()
|
|
814
793
|
], P = () => [
|
|
815
|
-
|
|
794
|
+
B,
|
|
816
795
|
"screen",
|
|
817
796
|
"full",
|
|
818
797
|
"lh",
|
|
@@ -825,48 +804,48 @@ var h = (e, t) => {
|
|
|
825
804
|
...w()
|
|
826
805
|
], F = () => [
|
|
827
806
|
e,
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
],
|
|
807
|
+
K,
|
|
808
|
+
W
|
|
809
|
+
], te = () => [
|
|
831
810
|
...b(),
|
|
832
|
-
Ne,
|
|
833
811
|
Oe,
|
|
834
|
-
|
|
835
|
-
|
|
812
|
+
Ce,
|
|
813
|
+
{ position: [K, W] }
|
|
814
|
+
], ne = () => ["no-repeat", { repeat: [
|
|
836
815
|
"",
|
|
837
816
|
"x",
|
|
838
817
|
"y",
|
|
839
818
|
"space",
|
|
840
819
|
"round"
|
|
841
|
-
] }],
|
|
820
|
+
] }], re = () => [
|
|
842
821
|
"auto",
|
|
843
822
|
"cover",
|
|
844
823
|
"contain",
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
{ size: [
|
|
848
|
-
],
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
],
|
|
824
|
+
ke,
|
|
825
|
+
ye,
|
|
826
|
+
{ size: [K, W] }
|
|
827
|
+
], ie = () => [
|
|
828
|
+
de,
|
|
829
|
+
Ee,
|
|
830
|
+
G
|
|
831
|
+
], I = () => [
|
|
853
832
|
"",
|
|
854
833
|
"none",
|
|
855
834
|
"full",
|
|
856
835
|
l,
|
|
857
|
-
|
|
858
|
-
|
|
836
|
+
K,
|
|
837
|
+
W
|
|
859
838
|
], R = () => [
|
|
860
839
|
"",
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
],
|
|
840
|
+
V,
|
|
841
|
+
Ee,
|
|
842
|
+
G
|
|
843
|
+
], ae = () => [
|
|
865
844
|
"solid",
|
|
866
845
|
"dashed",
|
|
867
846
|
"dotted",
|
|
868
847
|
"double"
|
|
869
|
-
],
|
|
848
|
+
], oe = () => [
|
|
870
849
|
"normal",
|
|
871
850
|
"multiply",
|
|
872
851
|
"screen",
|
|
@@ -884,32 +863,32 @@ var h = (e, t) => {
|
|
|
884
863
|
"color",
|
|
885
864
|
"luminosity"
|
|
886
865
|
], z = () => [
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
],
|
|
866
|
+
V,
|
|
867
|
+
de,
|
|
868
|
+
Oe,
|
|
869
|
+
Ce
|
|
870
|
+
], se = () => [
|
|
892
871
|
"",
|
|
893
872
|
"none",
|
|
894
873
|
m,
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
], se = () => [
|
|
898
|
-
"none",
|
|
899
|
-
H,
|
|
900
|
-
q,
|
|
901
|
-
G
|
|
874
|
+
K,
|
|
875
|
+
W
|
|
902
876
|
], ce = () => [
|
|
903
877
|
"none",
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
878
|
+
V,
|
|
879
|
+
K,
|
|
880
|
+
W
|
|
907
881
|
], le = () => [
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
882
|
+
"none",
|
|
883
|
+
V,
|
|
884
|
+
K,
|
|
885
|
+
W
|
|
911
886
|
], ue = () => [
|
|
912
887
|
V,
|
|
888
|
+
K,
|
|
889
|
+
W
|
|
890
|
+
], pe = () => [
|
|
891
|
+
B,
|
|
913
892
|
"full",
|
|
914
893
|
...w()
|
|
915
894
|
];
|
|
@@ -923,17 +902,17 @@ var h = (e, t) => {
|
|
|
923
902
|
"bounce"
|
|
924
903
|
],
|
|
925
904
|
aspect: ["video"],
|
|
926
|
-
blur: [
|
|
927
|
-
breakpoint: [
|
|
928
|
-
color: [
|
|
929
|
-
container: [
|
|
930
|
-
"drop-shadow": [
|
|
905
|
+
blur: [U],
|
|
906
|
+
breakpoint: [U],
|
|
907
|
+
color: [fe],
|
|
908
|
+
container: [U],
|
|
909
|
+
"drop-shadow": [U],
|
|
931
910
|
ease: [
|
|
932
911
|
"in",
|
|
933
912
|
"out",
|
|
934
913
|
"in-out"
|
|
935
914
|
],
|
|
936
|
-
font: [
|
|
915
|
+
font: [_e],
|
|
937
916
|
"font-weight": [
|
|
938
917
|
"thin",
|
|
939
918
|
"extralight",
|
|
@@ -945,7 +924,7 @@ var h = (e, t) => {
|
|
|
945
924
|
"extrabold",
|
|
946
925
|
"black"
|
|
947
926
|
],
|
|
948
|
-
"inset-shadow": [
|
|
927
|
+
"inset-shadow": [U],
|
|
949
928
|
leading: [
|
|
950
929
|
"none",
|
|
951
930
|
"tight",
|
|
@@ -962,11 +941,11 @@ var h = (e, t) => {
|
|
|
962
941
|
"distant",
|
|
963
942
|
"none"
|
|
964
943
|
],
|
|
965
|
-
radius: [
|
|
966
|
-
shadow: [
|
|
967
|
-
spacing: ["px",
|
|
968
|
-
text: [
|
|
969
|
-
"text-shadow": [
|
|
944
|
+
radius: [U],
|
|
945
|
+
shadow: [U],
|
|
946
|
+
spacing: ["px", V],
|
|
947
|
+
text: [U],
|
|
948
|
+
"text-shadow": [U],
|
|
970
949
|
tracking: [
|
|
971
950
|
"tighter",
|
|
972
951
|
"tight",
|
|
@@ -980,9 +959,9 @@ var h = (e, t) => {
|
|
|
980
959
|
aspect: [{ aspect: [
|
|
981
960
|
"auto",
|
|
982
961
|
"square",
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
962
|
+
B,
|
|
963
|
+
W,
|
|
964
|
+
K,
|
|
986
965
|
g
|
|
987
966
|
] }],
|
|
988
967
|
container: ["container"],
|
|
@@ -990,15 +969,15 @@ var h = (e, t) => {
|
|
|
990
969
|
"",
|
|
991
970
|
"normal",
|
|
992
971
|
"size",
|
|
993
|
-
|
|
994
|
-
|
|
972
|
+
K,
|
|
973
|
+
W
|
|
995
974
|
] }],
|
|
996
|
-
"container-named": [
|
|
975
|
+
"container-named": [ve],
|
|
997
976
|
columns: [{ columns: [
|
|
998
|
-
|
|
977
|
+
V,
|
|
999
978
|
"auto",
|
|
1000
|
-
|
|
1001
|
-
|
|
979
|
+
W,
|
|
980
|
+
K,
|
|
1002
981
|
s
|
|
1003
982
|
] }],
|
|
1004
983
|
"break-after": [{ "break-after": y() }],
|
|
@@ -1095,13 +1074,13 @@ var h = (e, t) => {
|
|
|
1095
1074
|
"collapse"
|
|
1096
1075
|
],
|
|
1097
1076
|
z: [{ z: [
|
|
1098
|
-
|
|
1077
|
+
H,
|
|
1099
1078
|
"auto",
|
|
1100
|
-
|
|
1101
|
-
|
|
1079
|
+
K,
|
|
1080
|
+
W
|
|
1102
1081
|
] }],
|
|
1103
1082
|
basis: [{ basis: [
|
|
1104
|
-
|
|
1083
|
+
B,
|
|
1105
1084
|
"full",
|
|
1106
1085
|
"auto",
|
|
1107
1086
|
s,
|
|
@@ -1119,32 +1098,32 @@ var h = (e, t) => {
|
|
|
1119
1098
|
"wrap-reverse"
|
|
1120
1099
|
] }],
|
|
1121
1100
|
flex: [{ flex: [
|
|
1122
|
-
H,
|
|
1123
1101
|
V,
|
|
1102
|
+
B,
|
|
1124
1103
|
"auto",
|
|
1125
1104
|
"initial",
|
|
1126
1105
|
"none",
|
|
1127
|
-
|
|
1106
|
+
W
|
|
1128
1107
|
] }],
|
|
1129
1108
|
grow: [{ grow: [
|
|
1130
1109
|
"",
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1110
|
+
V,
|
|
1111
|
+
K,
|
|
1112
|
+
W
|
|
1134
1113
|
] }],
|
|
1135
1114
|
shrink: [{ shrink: [
|
|
1136
1115
|
"",
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1116
|
+
V,
|
|
1117
|
+
K,
|
|
1118
|
+
W
|
|
1140
1119
|
] }],
|
|
1141
1120
|
order: [{ order: [
|
|
1142
|
-
|
|
1121
|
+
H,
|
|
1143
1122
|
"first",
|
|
1144
1123
|
"last",
|
|
1145
1124
|
"none",
|
|
1146
|
-
|
|
1147
|
-
|
|
1125
|
+
K,
|
|
1126
|
+
W
|
|
1148
1127
|
] }],
|
|
1149
1128
|
"grid-cols": [{ "grid-cols": E() }],
|
|
1150
1129
|
"col-start-end": [{ col: D() }],
|
|
@@ -1251,15 +1230,15 @@ var h = (e, t) => {
|
|
|
1251
1230
|
"font-size": [{ text: [
|
|
1252
1231
|
"base",
|
|
1253
1232
|
n,
|
|
1254
|
-
|
|
1255
|
-
|
|
1233
|
+
Ee,
|
|
1234
|
+
G
|
|
1256
1235
|
] }],
|
|
1257
1236
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1258
1237
|
"font-style": ["italic", "not-italic"],
|
|
1259
1238
|
"font-weight": [{ font: [
|
|
1260
1239
|
r,
|
|
1261
|
-
|
|
1262
|
-
|
|
1240
|
+
Me,
|
|
1241
|
+
xe
|
|
1263
1242
|
] }],
|
|
1264
1243
|
"font-stretch": [{ "font-stretch": [
|
|
1265
1244
|
"ultra-condensed",
|
|
@@ -1271,15 +1250,15 @@ var h = (e, t) => {
|
|
|
1271
1250
|
"expanded",
|
|
1272
1251
|
"extra-expanded",
|
|
1273
1252
|
"ultra-expanded",
|
|
1274
|
-
|
|
1275
|
-
|
|
1253
|
+
de,
|
|
1254
|
+
W
|
|
1276
1255
|
] }],
|
|
1277
1256
|
"font-family": [{ font: [
|
|
1278
|
-
Me,
|
|
1279
1257
|
De,
|
|
1258
|
+
Se,
|
|
1280
1259
|
t
|
|
1281
1260
|
] }],
|
|
1282
|
-
"font-features": [{ "font-features": [
|
|
1261
|
+
"font-features": [{ "font-features": [W] }],
|
|
1283
1262
|
"fvn-normal": ["normal-nums"],
|
|
1284
1263
|
"fvn-ordinal": ["ordinal"],
|
|
1285
1264
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -1288,14 +1267,14 @@ var h = (e, t) => {
|
|
|
1288
1267
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1289
1268
|
tracking: [{ tracking: [
|
|
1290
1269
|
i,
|
|
1291
|
-
|
|
1292
|
-
|
|
1270
|
+
K,
|
|
1271
|
+
W
|
|
1293
1272
|
] }],
|
|
1294
1273
|
"line-clamp": [{ "line-clamp": [
|
|
1295
|
-
|
|
1274
|
+
V,
|
|
1296
1275
|
"none",
|
|
1297
|
-
|
|
1298
|
-
|
|
1276
|
+
K,
|
|
1277
|
+
be
|
|
1299
1278
|
] }],
|
|
1300
1279
|
leading: [{ leading: [
|
|
1301
1280
|
"none",
|
|
@@ -1304,16 +1283,16 @@ var h = (e, t) => {
|
|
|
1304
1283
|
] }],
|
|
1305
1284
|
"list-image": [{ "list-image": [
|
|
1306
1285
|
"none",
|
|
1307
|
-
|
|
1308
|
-
|
|
1286
|
+
K,
|
|
1287
|
+
W
|
|
1309
1288
|
] }],
|
|
1310
1289
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
1311
1290
|
"list-style-type": [{ list: [
|
|
1312
1291
|
"disc",
|
|
1313
1292
|
"decimal",
|
|
1314
1293
|
"none",
|
|
1315
|
-
|
|
1316
|
-
|
|
1294
|
+
K,
|
|
1295
|
+
W
|
|
1317
1296
|
] }],
|
|
1318
1297
|
"text-alignment": [{ text: [
|
|
1319
1298
|
"left",
|
|
@@ -1331,20 +1310,20 @@ var h = (e, t) => {
|
|
|
1331
1310
|
"line-through",
|
|
1332
1311
|
"no-underline"
|
|
1333
1312
|
],
|
|
1334
|
-
"text-decoration-style": [{ decoration: [...
|
|
1313
|
+
"text-decoration-style": [{ decoration: [...ae(), "wavy"] }],
|
|
1335
1314
|
"text-decoration-thickness": [{ decoration: [
|
|
1336
|
-
|
|
1315
|
+
V,
|
|
1337
1316
|
"from-font",
|
|
1338
1317
|
"auto",
|
|
1339
|
-
|
|
1340
|
-
|
|
1318
|
+
K,
|
|
1319
|
+
G
|
|
1341
1320
|
] }],
|
|
1342
1321
|
"text-decoration-color": [{ decoration: F() }],
|
|
1343
1322
|
"underline-offset": [{ "underline-offset": [
|
|
1344
|
-
|
|
1323
|
+
V,
|
|
1345
1324
|
"auto",
|
|
1346
|
-
|
|
1347
|
-
|
|
1325
|
+
K,
|
|
1326
|
+
W
|
|
1348
1327
|
] }],
|
|
1349
1328
|
"text-transform": [
|
|
1350
1329
|
"uppercase",
|
|
@@ -1365,9 +1344,9 @@ var h = (e, t) => {
|
|
|
1365
1344
|
] }],
|
|
1366
1345
|
indent: [{ indent: w() }],
|
|
1367
1346
|
"tab-size": [{ tab: [
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1347
|
+
H,
|
|
1348
|
+
K,
|
|
1349
|
+
W
|
|
1371
1350
|
] }],
|
|
1372
1351
|
"vertical-align": [{ align: [
|
|
1373
1352
|
"baseline",
|
|
@@ -1378,8 +1357,8 @@ var h = (e, t) => {
|
|
|
1378
1357
|
"text-bottom",
|
|
1379
1358
|
"sub",
|
|
1380
1359
|
"super",
|
|
1381
|
-
|
|
1382
|
-
|
|
1360
|
+
K,
|
|
1361
|
+
W
|
|
1383
1362
|
] }],
|
|
1384
1363
|
whitespace: [{ whitespace: [
|
|
1385
1364
|
"normal",
|
|
@@ -1407,8 +1386,8 @@ var h = (e, t) => {
|
|
|
1407
1386
|
] }],
|
|
1408
1387
|
content: [{ content: [
|
|
1409
1388
|
"none",
|
|
1410
|
-
|
|
1411
|
-
|
|
1389
|
+
K,
|
|
1390
|
+
W
|
|
1412
1391
|
] }],
|
|
1413
1392
|
"bg-attachment": [{ bg: [
|
|
1414
1393
|
"fixed",
|
|
@@ -1426,9 +1405,9 @@ var h = (e, t) => {
|
|
|
1426
1405
|
"padding",
|
|
1427
1406
|
"content"
|
|
1428
1407
|
] }],
|
|
1429
|
-
"bg-position": [{ bg:
|
|
1430
|
-
"bg-repeat": [{ bg:
|
|
1431
|
-
"bg-size": [{ bg:
|
|
1408
|
+
"bg-position": [{ bg: te() }],
|
|
1409
|
+
"bg-repeat": [{ bg: ne() }],
|
|
1410
|
+
"bg-size": [{ bg: re() }],
|
|
1432
1411
|
"bg-image": [{ bg: [
|
|
1433
1412
|
"none",
|
|
1434
1413
|
{
|
|
@@ -1443,47 +1422,47 @@ var h = (e, t) => {
|
|
|
1443
1422
|
"l",
|
|
1444
1423
|
"tl"
|
|
1445
1424
|
] },
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1425
|
+
H,
|
|
1426
|
+
K,
|
|
1427
|
+
W
|
|
1449
1428
|
],
|
|
1450
1429
|
radial: [
|
|
1451
1430
|
"",
|
|
1452
|
-
|
|
1453
|
-
|
|
1431
|
+
K,
|
|
1432
|
+
W
|
|
1454
1433
|
],
|
|
1455
1434
|
conic: [
|
|
1456
1435
|
"",
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1436
|
+
H,
|
|
1437
|
+
K,
|
|
1438
|
+
W
|
|
1460
1439
|
]
|
|
1461
1440
|
},
|
|
1462
|
-
|
|
1463
|
-
|
|
1441
|
+
Ae,
|
|
1442
|
+
we
|
|
1464
1443
|
] }],
|
|
1465
1444
|
"bg-color": [{ bg: F() }],
|
|
1466
|
-
"gradient-from-pos": [{ from:
|
|
1467
|
-
"gradient-via-pos": [{ via:
|
|
1468
|
-
"gradient-to-pos": [{ to:
|
|
1445
|
+
"gradient-from-pos": [{ from: ie() }],
|
|
1446
|
+
"gradient-via-pos": [{ via: ie() }],
|
|
1447
|
+
"gradient-to-pos": [{ to: ie() }],
|
|
1469
1448
|
"gradient-from": [{ from: F() }],
|
|
1470
1449
|
"gradient-via": [{ via: F() }],
|
|
1471
1450
|
"gradient-to": [{ to: F() }],
|
|
1472
|
-
rounded: [{ rounded:
|
|
1473
|
-
"rounded-s": [{ "rounded-s":
|
|
1474
|
-
"rounded-e": [{ "rounded-e":
|
|
1475
|
-
"rounded-t": [{ "rounded-t":
|
|
1476
|
-
"rounded-r": [{ "rounded-r":
|
|
1477
|
-
"rounded-b": [{ "rounded-b":
|
|
1478
|
-
"rounded-l": [{ "rounded-l":
|
|
1479
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1480
|
-
"rounded-se": [{ "rounded-se":
|
|
1481
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1482
|
-
"rounded-es": [{ "rounded-es":
|
|
1483
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1484
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1485
|
-
"rounded-br": [{ "rounded-br":
|
|
1486
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1451
|
+
rounded: [{ rounded: I() }],
|
|
1452
|
+
"rounded-s": [{ "rounded-s": I() }],
|
|
1453
|
+
"rounded-e": [{ "rounded-e": I() }],
|
|
1454
|
+
"rounded-t": [{ "rounded-t": I() }],
|
|
1455
|
+
"rounded-r": [{ "rounded-r": I() }],
|
|
1456
|
+
"rounded-b": [{ "rounded-b": I() }],
|
|
1457
|
+
"rounded-l": [{ "rounded-l": I() }],
|
|
1458
|
+
"rounded-ss": [{ "rounded-ss": I() }],
|
|
1459
|
+
"rounded-se": [{ "rounded-se": I() }],
|
|
1460
|
+
"rounded-ee": [{ "rounded-ee": I() }],
|
|
1461
|
+
"rounded-es": [{ "rounded-es": I() }],
|
|
1462
|
+
"rounded-tl": [{ "rounded-tl": I() }],
|
|
1463
|
+
"rounded-tr": [{ "rounded-tr": I() }],
|
|
1464
|
+
"rounded-br": [{ "rounded-br": I() }],
|
|
1465
|
+
"rounded-bl": [{ "rounded-bl": I() }],
|
|
1487
1466
|
"border-w": [{ border: R() }],
|
|
1488
1467
|
"border-w-x": [{ "border-x": R() }],
|
|
1489
1468
|
"border-w-y": [{ "border-y": R() }],
|
|
@@ -1500,12 +1479,12 @@ var h = (e, t) => {
|
|
|
1500
1479
|
"divide-y": [{ "divide-y": R() }],
|
|
1501
1480
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1502
1481
|
"border-style": [{ border: [
|
|
1503
|
-
...
|
|
1482
|
+
...ae(),
|
|
1504
1483
|
"hidden",
|
|
1505
1484
|
"none"
|
|
1506
1485
|
] }],
|
|
1507
1486
|
"divide-style": [{ divide: [
|
|
1508
|
-
...
|
|
1487
|
+
...ae(),
|
|
1509
1488
|
"hidden",
|
|
1510
1489
|
"none"
|
|
1511
1490
|
] }],
|
|
@@ -1522,20 +1501,20 @@ var h = (e, t) => {
|
|
|
1522
1501
|
"border-color-l": [{ "border-l": F() }],
|
|
1523
1502
|
"divide-color": [{ divide: F() }],
|
|
1524
1503
|
"outline-style": [{ outline: [
|
|
1525
|
-
...
|
|
1504
|
+
...ae(),
|
|
1526
1505
|
"none",
|
|
1527
1506
|
"hidden"
|
|
1528
1507
|
] }],
|
|
1529
1508
|
"outline-offset": [{ "outline-offset": [
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1509
|
+
V,
|
|
1510
|
+
K,
|
|
1511
|
+
W
|
|
1533
1512
|
] }],
|
|
1534
1513
|
"outline-w": [{ outline: [
|
|
1535
1514
|
"",
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1515
|
+
V,
|
|
1516
|
+
Ee,
|
|
1517
|
+
G
|
|
1539
1518
|
] }],
|
|
1540
1519
|
"outline-color": [{ outline: F() }],
|
|
1541
1520
|
shadow: [{ shadow: [
|
|
@@ -1543,42 +1522,42 @@ var h = (e, t) => {
|
|
|
1543
1522
|
"inner",
|
|
1544
1523
|
"none",
|
|
1545
1524
|
u,
|
|
1546
|
-
|
|
1547
|
-
|
|
1525
|
+
je,
|
|
1526
|
+
Te
|
|
1548
1527
|
] }],
|
|
1549
1528
|
"shadow-color": [{ shadow: F() }],
|
|
1550
1529
|
"inset-shadow": [{ "inset-shadow": [
|
|
1551
1530
|
"none",
|
|
1552
1531
|
d,
|
|
1553
|
-
|
|
1554
|
-
|
|
1532
|
+
je,
|
|
1533
|
+
Te
|
|
1555
1534
|
] }],
|
|
1556
1535
|
"inset-shadow-color": [{ "inset-shadow": F() }],
|
|
1557
1536
|
"ring-w": [{ ring: R() }],
|
|
1558
1537
|
"ring-w-inset": ["ring-inset"],
|
|
1559
1538
|
"ring-color": [{ ring: F() }],
|
|
1560
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1539
|
+
"ring-offset-w": [{ "ring-offset": [V, G] }],
|
|
1561
1540
|
"ring-offset-color": [{ "ring-offset": F() }],
|
|
1562
1541
|
"inset-ring-w": [{ "inset-ring": R() }],
|
|
1563
1542
|
"inset-ring-color": [{ "inset-ring": F() }],
|
|
1564
1543
|
"text-shadow": [{ "text-shadow": [
|
|
1565
1544
|
"none",
|
|
1566
1545
|
f,
|
|
1567
|
-
|
|
1568
|
-
|
|
1546
|
+
je,
|
|
1547
|
+
Te
|
|
1569
1548
|
] }],
|
|
1570
1549
|
"text-shadow-color": [{ "text-shadow": F() }],
|
|
1571
1550
|
opacity: [{ opacity: [
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1551
|
+
V,
|
|
1552
|
+
K,
|
|
1553
|
+
W
|
|
1575
1554
|
] }],
|
|
1576
1555
|
"mix-blend": [{ "mix-blend": [
|
|
1577
|
-
...
|
|
1556
|
+
...oe(),
|
|
1578
1557
|
"plus-darker",
|
|
1579
1558
|
"plus-lighter"
|
|
1580
1559
|
] }],
|
|
1581
|
-
"bg-blend": [{ "bg-blend":
|
|
1560
|
+
"bg-blend": [{ "bg-blend": oe() }],
|
|
1582
1561
|
"mask-clip": [{ "mask-clip": [
|
|
1583
1562
|
"border",
|
|
1584
1563
|
"padding",
|
|
@@ -1593,7 +1572,7 @@ var h = (e, t) => {
|
|
|
1593
1572
|
"intersect",
|
|
1594
1573
|
"exclude"
|
|
1595
1574
|
] }],
|
|
1596
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1575
|
+
"mask-image-linear-pos": [{ "mask-linear": [V] }],
|
|
1597
1576
|
"mask-image-linear-from-pos": [{ "mask-linear-from": z() }],
|
|
1598
1577
|
"mask-image-linear-to-pos": [{ "mask-linear-to": z() }],
|
|
1599
1578
|
"mask-image-linear-from-color": [{ "mask-linear-from": F() }],
|
|
@@ -1622,7 +1601,7 @@ var h = (e, t) => {
|
|
|
1622
1601
|
"mask-image-y-to-pos": [{ "mask-y-to": z() }],
|
|
1623
1602
|
"mask-image-y-from-color": [{ "mask-y-from": F() }],
|
|
1624
1603
|
"mask-image-y-to-color": [{ "mask-y-to": F() }],
|
|
1625
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1604
|
+
"mask-image-radial": [{ "mask-radial": [K, W] }],
|
|
1626
1605
|
"mask-image-radial-from-pos": [{ "mask-radial-from": z() }],
|
|
1627
1606
|
"mask-image-radial-to-pos": [{ "mask-radial-to": z() }],
|
|
1628
1607
|
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
|
|
@@ -1633,7 +1612,7 @@ var h = (e, t) => {
|
|
|
1633
1612
|
farthest: ["side", "corner"]
|
|
1634
1613
|
}] }],
|
|
1635
1614
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1636
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1615
|
+
"mask-image-conic-pos": [{ "mask-conic": [V] }],
|
|
1637
1616
|
"mask-image-conic-from-pos": [{ "mask-conic-from": z() }],
|
|
1638
1617
|
"mask-image-conic-to-pos": [{ "mask-conic-to": z() }],
|
|
1639
1618
|
"mask-image-conic-from-color": [{ "mask-conic-from": F() }],
|
|
@@ -1651,117 +1630,117 @@ var h = (e, t) => {
|
|
|
1651
1630
|
"stroke",
|
|
1652
1631
|
"view"
|
|
1653
1632
|
] }],
|
|
1654
|
-
"mask-position": [{ mask:
|
|
1655
|
-
"mask-repeat": [{ mask:
|
|
1656
|
-
"mask-size": [{ mask:
|
|
1633
|
+
"mask-position": [{ mask: te() }],
|
|
1634
|
+
"mask-repeat": [{ mask: ne() }],
|
|
1635
|
+
"mask-size": [{ mask: re() }],
|
|
1657
1636
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1658
1637
|
"mask-image": [{ mask: [
|
|
1659
1638
|
"none",
|
|
1660
|
-
|
|
1661
|
-
|
|
1639
|
+
K,
|
|
1640
|
+
W
|
|
1662
1641
|
] }],
|
|
1663
1642
|
filter: [{ filter: [
|
|
1664
1643
|
"",
|
|
1665
1644
|
"none",
|
|
1666
|
-
|
|
1667
|
-
|
|
1645
|
+
K,
|
|
1646
|
+
W
|
|
1668
1647
|
] }],
|
|
1669
|
-
blur: [{ blur:
|
|
1648
|
+
blur: [{ blur: se() }],
|
|
1670
1649
|
brightness: [{ brightness: [
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1650
|
+
V,
|
|
1651
|
+
K,
|
|
1652
|
+
W
|
|
1674
1653
|
] }],
|
|
1675
1654
|
contrast: [{ contrast: [
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1655
|
+
V,
|
|
1656
|
+
K,
|
|
1657
|
+
W
|
|
1679
1658
|
] }],
|
|
1680
1659
|
"drop-shadow": [{ "drop-shadow": [
|
|
1681
1660
|
"",
|
|
1682
1661
|
"none",
|
|
1683
1662
|
p,
|
|
1684
|
-
|
|
1685
|
-
|
|
1663
|
+
je,
|
|
1664
|
+
Te
|
|
1686
1665
|
] }],
|
|
1687
1666
|
"drop-shadow-color": [{ "drop-shadow": F() }],
|
|
1688
1667
|
grayscale: [{ grayscale: [
|
|
1689
1668
|
"",
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1669
|
+
V,
|
|
1670
|
+
K,
|
|
1671
|
+
W
|
|
1693
1672
|
] }],
|
|
1694
1673
|
"hue-rotate": [{ "hue-rotate": [
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1674
|
+
V,
|
|
1675
|
+
K,
|
|
1676
|
+
W
|
|
1698
1677
|
] }],
|
|
1699
1678
|
invert: [{ invert: [
|
|
1700
1679
|
"",
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1680
|
+
V,
|
|
1681
|
+
K,
|
|
1682
|
+
W
|
|
1704
1683
|
] }],
|
|
1705
1684
|
saturate: [{ saturate: [
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1685
|
+
V,
|
|
1686
|
+
K,
|
|
1687
|
+
W
|
|
1709
1688
|
] }],
|
|
1710
1689
|
sepia: [{ sepia: [
|
|
1711
1690
|
"",
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1691
|
+
V,
|
|
1692
|
+
K,
|
|
1693
|
+
W
|
|
1715
1694
|
] }],
|
|
1716
1695
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1717
1696
|
"",
|
|
1718
1697
|
"none",
|
|
1719
|
-
|
|
1720
|
-
|
|
1698
|
+
K,
|
|
1699
|
+
W
|
|
1721
1700
|
] }],
|
|
1722
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1701
|
+
"backdrop-blur": [{ "backdrop-blur": se() }],
|
|
1723
1702
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1703
|
+
V,
|
|
1704
|
+
K,
|
|
1705
|
+
W
|
|
1727
1706
|
] }],
|
|
1728
1707
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1708
|
+
V,
|
|
1709
|
+
K,
|
|
1710
|
+
W
|
|
1732
1711
|
] }],
|
|
1733
1712
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1734
1713
|
"",
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1714
|
+
V,
|
|
1715
|
+
K,
|
|
1716
|
+
W
|
|
1738
1717
|
] }],
|
|
1739
1718
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1719
|
+
V,
|
|
1720
|
+
K,
|
|
1721
|
+
W
|
|
1743
1722
|
] }],
|
|
1744
1723
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1745
1724
|
"",
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1725
|
+
V,
|
|
1726
|
+
K,
|
|
1727
|
+
W
|
|
1749
1728
|
] }],
|
|
1750
1729
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1730
|
+
V,
|
|
1731
|
+
K,
|
|
1732
|
+
W
|
|
1754
1733
|
] }],
|
|
1755
1734
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1735
|
+
V,
|
|
1736
|
+
K,
|
|
1737
|
+
W
|
|
1759
1738
|
] }],
|
|
1760
1739
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1761
1740
|
"",
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1741
|
+
V,
|
|
1742
|
+
K,
|
|
1743
|
+
W
|
|
1765
1744
|
] }],
|
|
1766
1745
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1767
1746
|
"border-spacing": [{ "border-spacing": w() }],
|
|
@@ -1777,56 +1756,56 @@ var h = (e, t) => {
|
|
|
1777
1756
|
"shadow",
|
|
1778
1757
|
"transform",
|
|
1779
1758
|
"none",
|
|
1780
|
-
|
|
1781
|
-
|
|
1759
|
+
K,
|
|
1760
|
+
W
|
|
1782
1761
|
] }],
|
|
1783
1762
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1784
1763
|
duration: [{ duration: [
|
|
1785
|
-
|
|
1764
|
+
V,
|
|
1786
1765
|
"initial",
|
|
1787
|
-
|
|
1788
|
-
|
|
1766
|
+
K,
|
|
1767
|
+
W
|
|
1789
1768
|
] }],
|
|
1790
1769
|
ease: [{ ease: [
|
|
1791
1770
|
"linear",
|
|
1792
1771
|
"initial",
|
|
1793
1772
|
_,
|
|
1794
|
-
|
|
1795
|
-
|
|
1773
|
+
K,
|
|
1774
|
+
W
|
|
1796
1775
|
] }],
|
|
1797
1776
|
delay: [{ delay: [
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1777
|
+
V,
|
|
1778
|
+
K,
|
|
1779
|
+
W
|
|
1801
1780
|
] }],
|
|
1802
1781
|
animate: [{ animate: [
|
|
1803
1782
|
"none",
|
|
1804
1783
|
v,
|
|
1805
|
-
|
|
1806
|
-
|
|
1784
|
+
K,
|
|
1785
|
+
W
|
|
1807
1786
|
] }],
|
|
1808
1787
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1809
1788
|
perspective: [{ perspective: [
|
|
1810
1789
|
h,
|
|
1811
|
-
|
|
1812
|
-
|
|
1790
|
+
K,
|
|
1791
|
+
W
|
|
1813
1792
|
] }],
|
|
1814
1793
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1815
|
-
rotate: [{ rotate:
|
|
1816
|
-
"rotate-x": [{ "rotate-x":
|
|
1817
|
-
"rotate-y": [{ "rotate-y":
|
|
1818
|
-
"rotate-z": [{ "rotate-z":
|
|
1819
|
-
scale: [{ scale:
|
|
1820
|
-
"scale-x": [{ "scale-x":
|
|
1821
|
-
"scale-y": [{ "scale-y":
|
|
1822
|
-
"scale-z": [{ "scale-z":
|
|
1794
|
+
rotate: [{ rotate: ce() }],
|
|
1795
|
+
"rotate-x": [{ "rotate-x": ce() }],
|
|
1796
|
+
"rotate-y": [{ "rotate-y": ce() }],
|
|
1797
|
+
"rotate-z": [{ "rotate-z": ce() }],
|
|
1798
|
+
scale: [{ scale: le() }],
|
|
1799
|
+
"scale-x": [{ "scale-x": le() }],
|
|
1800
|
+
"scale-y": [{ "scale-y": le() }],
|
|
1801
|
+
"scale-z": [{ "scale-z": le() }],
|
|
1823
1802
|
"scale-3d": ["scale-3d"],
|
|
1824
|
-
skew: [{ skew:
|
|
1825
|
-
"skew-x": [{ "skew-x":
|
|
1826
|
-
"skew-y": [{ "skew-y":
|
|
1803
|
+
skew: [{ skew: ue() }],
|
|
1804
|
+
"skew-x": [{ "skew-x": ue() }],
|
|
1805
|
+
"skew-y": [{ "skew-y": ue() }],
|
|
1827
1806
|
transform: [{ transform: [
|
|
1828
|
-
|
|
1829
|
-
|
|
1807
|
+
K,
|
|
1808
|
+
W,
|
|
1830
1809
|
"",
|
|
1831
1810
|
"none",
|
|
1832
1811
|
"gpu",
|
|
@@ -1834,15 +1813,15 @@ var h = (e, t) => {
|
|
|
1834
1813
|
] }],
|
|
1835
1814
|
"transform-origin": [{ origin: x() }],
|
|
1836
1815
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1837
|
-
translate: [{ translate:
|
|
1838
|
-
"translate-x": [{ "translate-x":
|
|
1839
|
-
"translate-y": [{ "translate-y":
|
|
1840
|
-
"translate-z": [{ "translate-z":
|
|
1816
|
+
translate: [{ translate: pe() }],
|
|
1817
|
+
"translate-x": [{ "translate-x": pe() }],
|
|
1818
|
+
"translate-y": [{ "translate-y": pe() }],
|
|
1819
|
+
"translate-z": [{ "translate-z": pe() }],
|
|
1841
1820
|
"translate-none": ["translate-none"],
|
|
1842
1821
|
zoom: [{ zoom: [
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1822
|
+
H,
|
|
1823
|
+
K,
|
|
1824
|
+
W
|
|
1846
1825
|
] }],
|
|
1847
1826
|
accent: [{ accent: F() }],
|
|
1848
1827
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
@@ -1892,8 +1871,8 @@ var h = (e, t) => {
|
|
|
1892
1871
|
"nwse-resize",
|
|
1893
1872
|
"zoom-in",
|
|
1894
1873
|
"zoom-out",
|
|
1895
|
-
|
|
1896
|
-
|
|
1874
|
+
K,
|
|
1875
|
+
W
|
|
1897
1876
|
] }],
|
|
1898
1877
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1899
1878
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -1979,15 +1958,15 @@ var h = (e, t) => {
|
|
|
1979
1958
|
"scroll",
|
|
1980
1959
|
"contents",
|
|
1981
1960
|
"transform",
|
|
1982
|
-
|
|
1983
|
-
|
|
1961
|
+
K,
|
|
1962
|
+
W
|
|
1984
1963
|
] }],
|
|
1985
1964
|
fill: [{ fill: ["none", ...F()] }],
|
|
1986
1965
|
"stroke-w": [{ stroke: [
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1966
|
+
V,
|
|
1967
|
+
Ee,
|
|
1968
|
+
G,
|
|
1969
|
+
be
|
|
1991
1970
|
] }],
|
|
1992
1971
|
stroke: [{ stroke: ["none", ...F()] }],
|
|
1993
1972
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
@@ -2246,27 +2225,48 @@ var h = (e, t) => {
|
|
|
2246
2225
|
]
|
|
2247
2226
|
};
|
|
2248
2227
|
});
|
|
2249
|
-
|
|
2250
|
-
|
|
2228
|
+
// node_modules/.pnpm/@tangle-network+ui@11.51.7_d56e3d7864cba854d7eacd97c62b4344/node_modules/@tangle-network/ui/dist/lib/utils.js
|
|
2229
|
+
function Ue(...e) {
|
|
2230
|
+
return He(c(e));
|
|
2251
2231
|
}
|
|
2252
|
-
|
|
2253
|
-
|
|
2232
|
+
// node_modules/.pnpm/react@19.3.1/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
2233
|
+
var We = /* @__PURE__ */ t(((e) => {
|
|
2234
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
2235
|
+
function r(e, n, r) {
|
|
2236
|
+
var i = null;
|
|
2237
|
+
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
2238
|
+
else r = n;
|
|
2239
|
+
return n = r.ref, {
|
|
2240
|
+
$$typeof: t,
|
|
2241
|
+
type: e,
|
|
2242
|
+
key: i,
|
|
2243
|
+
ref: n === void 0 ? null : n,
|
|
2244
|
+
props: r
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
2248
|
+
})), Ge = /* @__PURE__ */ t(((e, t) => {
|
|
2249
|
+
t.exports = We();
|
|
2250
|
+
})), Ke = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
2251
|
+
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
|
|
2252
|
+
function qe(e, t, n = []) {
|
|
2254
2253
|
if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
|
|
2255
2254
|
return {
|
|
2256
|
-
name:
|
|
2255
|
+
name: Ke(e),
|
|
2257
2256
|
size: 24,
|
|
2258
2257
|
node: t,
|
|
2259
2258
|
...n.length > 0 ? { aliases: n } : {}
|
|
2260
2259
|
};
|
|
2261
2260
|
}
|
|
2262
|
-
|
|
2261
|
+
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
|
|
2262
|
+
var Je = (e) => {
|
|
2263
2263
|
let t = "", n = !1;
|
|
2264
2264
|
for (let r of e) r === "-" || r === "_" || r <= " " ? n = t.length > 0 : (t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1);
|
|
2265
2265
|
return t;
|
|
2266
|
-
},
|
|
2267
|
-
let t =
|
|
2266
|
+
}, Ye = (e) => {
|
|
2267
|
+
let t = Je(e);
|
|
2268
2268
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2269
|
-
},
|
|
2269
|
+
}, Xe = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Ze = {
|
|
2270
2270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2271
2271
|
width: 24,
|
|
2272
2272
|
height: 24,
|
|
@@ -2277,22 +2277,23 @@ var Xe = (e) => {
|
|
|
2277
2277
|
"stroke-linecap": "round",
|
|
2278
2278
|
"stroke-linejoin": "round"
|
|
2279
2279
|
};
|
|
2280
|
-
|
|
2280
|
+
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
|
|
2281
|
+
function Qe(e) {
|
|
2281
2282
|
return e != null;
|
|
2282
2283
|
}
|
|
2283
|
-
function
|
|
2284
|
-
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ??
|
|
2284
|
+
function $e(e, t = {}) {
|
|
2285
|
+
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? Ze.width, a = e.size ?? e.height ?? Ze.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? Xe(...c) : Xe("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? Ze["stroke-width"]) * Number(e.size ?? e.width ?? Ze.width) / Number(t.size ?? t.width ?? Ze.width) : t.strokeWidth ?? Ze["stroke-width"];
|
|
2285
2286
|
return [
|
|
2286
2287
|
"svg",
|
|
2287
2288
|
{
|
|
2288
|
-
...Object.entries(
|
|
2289
|
+
...Object.entries(Ze).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
|
|
2289
2290
|
..."color" in t && t.color && { [r("stroke")]: t.color },
|
|
2290
|
-
..."size" in t &&
|
|
2291
|
+
..."size" in t && Qe(t.size) && {
|
|
2291
2292
|
[r("width")]: t.size,
|
|
2292
2293
|
[r("height")]: t.size
|
|
2293
2294
|
},
|
|
2294
|
-
..."width" in t &&
|
|
2295
|
-
..."height" in t &&
|
|
2295
|
+
..."width" in t && Qe(t.width) && { [r("width")]: t.width },
|
|
2296
|
+
..."height" in t && Qe(t.height) && { [r("height")]: t.height },
|
|
2296
2297
|
[r("stroke-width")]: u,
|
|
2297
2298
|
...l && { [r("class")]: l },
|
|
2298
2299
|
[r("viewBox")]: `0 0 ${i} ${a}`,
|
|
@@ -2312,8 +2313,9 @@ function et(e, t = {}) {
|
|
|
2312
2313
|
})
|
|
2313
2314
|
];
|
|
2314
2315
|
}
|
|
2315
|
-
|
|
2316
|
-
|
|
2316
|
+
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
|
|
2317
|
+
function et(e, t = {}) {
|
|
2318
|
+
return $e(e, {
|
|
2317
2319
|
...t,
|
|
2318
2320
|
attributeNames: {
|
|
2319
2321
|
...t.attributeNames,
|
|
@@ -2325,40 +2327,43 @@ function tt(e, t = {}) {
|
|
|
2325
2327
|
}
|
|
2326
2328
|
});
|
|
2327
2329
|
}
|
|
2328
|
-
|
|
2330
|
+
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
|
|
2331
|
+
var tt = (e) => {
|
|
2329
2332
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
2330
2333
|
return !1;
|
|
2331
|
-
},
|
|
2332
|
-
node:
|
|
2334
|
+
}, nt = (0, o.createContext)({}), rt = () => (0, o.useContext)(nt), it = (0, o.forwardRef)(({ color: e, size: t, width: n, height: r, strokeWidth: i, absoluteStrokeWidth: a, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
|
|
2335
|
+
node: u,
|
|
2333
2336
|
aliases: [],
|
|
2334
2337
|
size: 24
|
|
2335
|
-
}, ...
|
|
2336
|
-
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } =
|
|
2338
|
+
}, ...f }, p) => {
|
|
2339
|
+
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = rt() ?? {}, b = !!l || tt(f), [x, S, C = []] = et(d, {
|
|
2337
2340
|
color: e ?? v,
|
|
2338
2341
|
width: n ?? t ?? m,
|
|
2339
2342
|
height: r ?? t ?? m,
|
|
2340
2343
|
strokeWidth: i ?? h,
|
|
2341
2344
|
absoluteStrokeWidth: a ?? g,
|
|
2342
|
-
nonScalingStroke:
|
|
2343
|
-
className:
|
|
2345
|
+
nonScalingStroke: s ?? _,
|
|
2346
|
+
className: Xe(y, c),
|
|
2344
2347
|
hasA11yProp: b,
|
|
2345
|
-
attributes:
|
|
2348
|
+
attributes: f
|
|
2346
2349
|
});
|
|
2347
|
-
return (0,
|
|
2350
|
+
return (0, o.createElement)(x, {
|
|
2348
2351
|
ref: p,
|
|
2349
2352
|
...S
|
|
2350
|
-
}, [...C.map(([e, t]) => (0,
|
|
2353
|
+
}, [...C.map(([e, t]) => (0, o.createElement)(e, t)), ...Array.isArray(l) ? l : [l]]);
|
|
2351
2354
|
});
|
|
2352
|
-
|
|
2353
|
-
|
|
2355
|
+
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
|
|
2356
|
+
function J(e, t = [], n = []) {
|
|
2357
|
+
let r = typeof e == "string" ? qe(e, t, n) : e, i = (0, o.forwardRef)(({ className: e, ...t }, n) => (0, o.createElement)(it, {
|
|
2354
2358
|
ref: n,
|
|
2355
2359
|
icon: r,
|
|
2356
2360
|
className: e,
|
|
2357
2361
|
...t
|
|
2358
2362
|
}));
|
|
2359
|
-
return r.name && (i.displayName =
|
|
2363
|
+
return r.name && (i.displayName = Ye(r.name)), i;
|
|
2360
2364
|
}
|
|
2361
|
-
|
|
2365
|
+
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/circle-check.mjs
|
|
2366
|
+
var at = {
|
|
2362
2367
|
name: "circle-check",
|
|
2363
2368
|
size: 24,
|
|
2364
2369
|
node: [["circle", {
|
|
@@ -2372,8 +2377,8 @@ var ot = {
|
|
|
2372
2377
|
}]],
|
|
2373
2378
|
aliases: ["check-circle-2"]
|
|
2374
2379
|
};
|
|
2375
|
-
|
|
2376
|
-
var
|
|
2380
|
+
at.node;
|
|
2381
|
+
var ot = J(at), st = {
|
|
2377
2382
|
name: "circle-dashed",
|
|
2378
2383
|
size: 24,
|
|
2379
2384
|
node: [
|
|
@@ -2411,8 +2416,8 @@ var st = Z(ot), ct = {
|
|
|
2411
2416
|
}]
|
|
2412
2417
|
]
|
|
2413
2418
|
};
|
|
2414
|
-
|
|
2415
|
-
var
|
|
2419
|
+
st.node;
|
|
2420
|
+
var ct = J(st), lt = {
|
|
2416
2421
|
name: "circle-dot",
|
|
2417
2422
|
size: 24,
|
|
2418
2423
|
node: [["circle", {
|
|
@@ -2427,8 +2432,8 @@ var lt = Z(ct), ut = {
|
|
|
2427
2432
|
key: "1mglay"
|
|
2428
2433
|
}]]
|
|
2429
2434
|
};
|
|
2430
|
-
|
|
2431
|
-
var
|
|
2435
|
+
lt.node;
|
|
2436
|
+
var ut = J(lt), dt = {
|
|
2432
2437
|
name: "circle-question-mark",
|
|
2433
2438
|
size: 24,
|
|
2434
2439
|
node: [
|
|
@@ -2449,8 +2454,8 @@ var dt = Z(ut), ft = {
|
|
|
2449
2454
|
],
|
|
2450
2455
|
aliases: ["help-circle", "circle-help"]
|
|
2451
2456
|
};
|
|
2452
|
-
|
|
2453
|
-
var
|
|
2457
|
+
dt.node;
|
|
2458
|
+
var ft = J(dt), pt = {
|
|
2454
2459
|
name: "circle-stop",
|
|
2455
2460
|
size: 24,
|
|
2456
2461
|
node: [["circle", {
|
|
@@ -2468,8 +2473,8 @@ var pt = Z(ft), mt = {
|
|
|
2468
2473
|
}]],
|
|
2469
2474
|
aliases: ["stop-circle"]
|
|
2470
2475
|
};
|
|
2471
|
-
|
|
2472
|
-
var
|
|
2476
|
+
pt.node;
|
|
2477
|
+
var mt = J(pt), ht = {
|
|
2473
2478
|
name: "circle-x",
|
|
2474
2479
|
size: 24,
|
|
2475
2480
|
node: [
|
|
@@ -2490,8 +2495,8 @@ var ht = Z(mt), gt = {
|
|
|
2490
2495
|
],
|
|
2491
2496
|
aliases: ["x-circle"]
|
|
2492
2497
|
};
|
|
2493
|
-
|
|
2494
|
-
var
|
|
2498
|
+
ht.node;
|
|
2499
|
+
var gt = J(ht), _t = {
|
|
2495
2500
|
name: "hand",
|
|
2496
2501
|
size: 24,
|
|
2497
2502
|
node: [
|
|
@@ -2513,8 +2518,8 @@ var _t = Z(gt), vt = {
|
|
|
2513
2518
|
}]
|
|
2514
2519
|
]
|
|
2515
2520
|
};
|
|
2516
|
-
|
|
2517
|
-
var
|
|
2521
|
+
_t.node;
|
|
2522
|
+
var vt = J(_t), yt = {
|
|
2518
2523
|
name: "hourglass",
|
|
2519
2524
|
size: 24,
|
|
2520
2525
|
node: [
|
|
@@ -2536,50 +2541,88 @@ var yt = Z(vt), bt = {
|
|
|
2536
2541
|
}]
|
|
2537
2542
|
]
|
|
2538
2543
|
};
|
|
2539
|
-
|
|
2540
|
-
var xt =
|
|
2544
|
+
yt.node;
|
|
2545
|
+
var bt = J(yt), xt = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, Y = (e) => typeof e == "number" && Number.isSafeInteger(e) && e >= 0 ? e : void 0;
|
|
2546
|
+
function St(e) {
|
|
2547
|
+
if (e.length && !e.some((e) => Y(e) === void 0)) return Y(e.reduce((e, t) => e + t, 0));
|
|
2548
|
+
}
|
|
2549
|
+
function Ct(e) {
|
|
2550
|
+
if (e >= 864e5) {
|
|
2551
|
+
let t = Math.floor(e / 864e5), n = Math.floor(e % 864e5 / 36e5);
|
|
2552
|
+
return `${t}d${n ? ` ${n}h` : ""}`;
|
|
2553
|
+
}
|
|
2554
|
+
let t = e / 1e3;
|
|
2555
|
+
return t < 60 ? `${Math.round(t)} s` : t < 3600 ? `${(t / 60).toFixed(1)} min` : `${(t / 3600).toFixed(1)} h`;
|
|
2556
|
+
}
|
|
2557
|
+
var wt = (e) => e == null || !Number.isFinite(e) ? "—" : new Intl.NumberFormat("en-US", {
|
|
2558
|
+
notation: "compact",
|
|
2559
|
+
maximumFractionDigits: 1
|
|
2560
|
+
}).format(e);
|
|
2561
|
+
function Tt(e) {
|
|
2562
|
+
if (!Number.isFinite(e) || e < 0) return "—";
|
|
2563
|
+
let t = e < 1e4 ? 100 : e < 36e5 ? 1e3 : 6e4;
|
|
2564
|
+
return e >= 864e5 ? Ct(e) : e < 1e3 ? `${Math.round(e)}ms` : Dt(Math.round(e / t) * t);
|
|
2565
|
+
}
|
|
2566
|
+
function X(e) {
|
|
2567
|
+
return xt(e) === void 0 || e < 0 ? "—" : e === 0 ? "$0.00" : e < .01 ? `$${e.toPrecision(1)}` : `$${e.toFixed(2)}`;
|
|
2568
|
+
}
|
|
2569
|
+
function Et(e) {
|
|
2570
|
+
return Y(e) === void 0 ? "—" : wt(e);
|
|
2571
|
+
}
|
|
2572
|
+
function Dt(e) {
|
|
2573
|
+
if (!Number.isFinite(e) || e < 0) return "—";
|
|
2574
|
+
let t = Math.round(e) / 1e3, n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = Number((t % 60).toFixed(3));
|
|
2575
|
+
return [
|
|
2576
|
+
n ? `${n}h` : "",
|
|
2577
|
+
r ? `${r}m` : "",
|
|
2578
|
+
i ? `${i}s` : ""
|
|
2579
|
+
].filter(Boolean).join(" ") || "0s";
|
|
2580
|
+
}
|
|
2581
|
+
// node_modules/.pnpm/@tangle-network+ui@11.51.7_d56e3d7864cba854d7eacd97c62b4344/node_modules/@tangle-network/ui/dist/run/status-meta.js
|
|
2582
|
+
var Z = Ge(), Ot = {
|
|
2541
2583
|
running: {
|
|
2542
2584
|
label: "Running",
|
|
2543
|
-
icon:
|
|
2585
|
+
icon: ut,
|
|
2544
2586
|
token: "--surface-info-text"
|
|
2545
2587
|
},
|
|
2546
2588
|
waiting: {
|
|
2547
2589
|
label: "Waiting",
|
|
2548
|
-
icon:
|
|
2590
|
+
icon: bt,
|
|
2549
2591
|
token: "--surface-neutral-text"
|
|
2550
2592
|
},
|
|
2551
2593
|
"needs-you": {
|
|
2552
2594
|
label: "Needs you",
|
|
2553
|
-
icon:
|
|
2595
|
+
icon: vt,
|
|
2554
2596
|
token: "--surface-warning-text"
|
|
2555
2597
|
},
|
|
2556
2598
|
done: {
|
|
2557
2599
|
label: "Done",
|
|
2558
|
-
icon:
|
|
2600
|
+
icon: ot,
|
|
2559
2601
|
token: "--surface-success-text"
|
|
2560
2602
|
},
|
|
2561
2603
|
failed: {
|
|
2562
2604
|
label: "Failed",
|
|
2563
|
-
icon:
|
|
2605
|
+
icon: gt,
|
|
2564
2606
|
token: "--surface-danger-text"
|
|
2565
2607
|
},
|
|
2566
2608
|
stopped: {
|
|
2567
2609
|
label: "Stopped",
|
|
2568
|
-
icon:
|
|
2610
|
+
icon: mt,
|
|
2569
2611
|
token: "--surface-neutral-text"
|
|
2570
2612
|
},
|
|
2571
2613
|
idle: {
|
|
2572
2614
|
label: "Idle",
|
|
2573
|
-
icon:
|
|
2615
|
+
icon: ct,
|
|
2574
2616
|
token: "--surface-neutral-text"
|
|
2575
2617
|
},
|
|
2576
2618
|
unknown: {
|
|
2577
2619
|
label: "Unknown",
|
|
2578
|
-
icon:
|
|
2620
|
+
icon: ft,
|
|
2579
2621
|
token: "--surface-neutral-text"
|
|
2580
2622
|
}
|
|
2581
|
-
},
|
|
2623
|
+
}, kt = {
|
|
2582
2624
|
active: "running",
|
|
2625
|
+
working: "running",
|
|
2583
2626
|
in_progress: "running",
|
|
2584
2627
|
"in-progress": "running",
|
|
2585
2628
|
streaming: "running",
|
|
@@ -2590,6 +2633,7 @@ var xt = Z(bt), St = {
|
|
|
2590
2633
|
needs_you: "needs-you",
|
|
2591
2634
|
needs_input: "needs-you",
|
|
2592
2635
|
awaiting_input: "needs-you",
|
|
2636
|
+
winner: "done",
|
|
2593
2637
|
completed: "done",
|
|
2594
2638
|
complete: "done",
|
|
2595
2639
|
success: "done",
|
|
@@ -2597,27 +2641,35 @@ var xt = Z(bt), St = {
|
|
|
2597
2641
|
shipped: "done",
|
|
2598
2642
|
error: "failed",
|
|
2599
2643
|
errored: "failed",
|
|
2644
|
+
"driver-failed": "failed",
|
|
2645
|
+
down: "stopped",
|
|
2646
|
+
"no-winner": "stopped",
|
|
2600
2647
|
cancelled: "stopped",
|
|
2601
2648
|
canceled: "stopped",
|
|
2602
2649
|
aborted: "stopped"
|
|
2603
2650
|
};
|
|
2604
|
-
function
|
|
2651
|
+
function At(e) {
|
|
2605
2652
|
let t = e.trim().toLowerCase();
|
|
2606
|
-
return Object.hasOwn(
|
|
2607
|
-
}
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2653
|
+
return Object.hasOwn(Ot, t) ? t : Object.hasOwn(kt, t) ? kt[t] : "unknown";
|
|
2654
|
+
}
|
|
2655
|
+
var jt = (e) => [
|
|
2656
|
+
"running",
|
|
2657
|
+
"waiting",
|
|
2658
|
+
"needs-you"
|
|
2659
|
+
].includes(At(e));
|
|
2660
|
+
function Mt(e) {
|
|
2661
|
+
return Ot[At(e)];
|
|
2662
|
+
}
|
|
2663
|
+
function Nt({ status: e, className: t, style: n, ...r }) {
|
|
2664
|
+
let i = At(e), { label: a, icon: o, token: s } = Ot[i], c = i === "running";
|
|
2665
|
+
return /* @__PURE__ */ (0, Z.jsx)(o, {
|
|
2614
2666
|
role: "img",
|
|
2615
2667
|
"aria-label": a,
|
|
2616
2668
|
size: 16,
|
|
2617
2669
|
strokeWidth: 1.75,
|
|
2618
2670
|
"data-run-status": i,
|
|
2619
2671
|
"data-motion": c ? "essential" : void 0,
|
|
2620
|
-
className:
|
|
2672
|
+
className: Ue("shrink-0", c && "animate-[tangle-breathe_var(--motion-ambient)_infinite]", t),
|
|
2621
2673
|
style: {
|
|
2622
2674
|
color: `var(${s})`,
|
|
2623
2675
|
...n
|
|
@@ -2625,26 +2677,32 @@ function Et({ status: e, className: t, style: n, ...r }) {
|
|
|
2625
2677
|
...r
|
|
2626
2678
|
});
|
|
2627
2679
|
}
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
let
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2680
|
+
// node_modules/.pnpm/@tangle-network+ui@11.51.7_d56e3d7864cba854d7eacd97c62b4344/node_modules/@tangle-network/ui/dist/hooks/use-live-time.js
|
|
2681
|
+
var Pt = /* @__PURE__ */ new Set(), Ft = Date.now(), It;
|
|
2682
|
+
function Lt() {
|
|
2683
|
+
clearTimeout(It), Pt.size && (It = setTimeout(() => {
|
|
2684
|
+
Ft = Date.now();
|
|
2685
|
+
for (let e of Pt) Ft >= e.next && (e.next = Ft + e.period, e.notify());
|
|
2686
|
+
Lt();
|
|
2687
|
+
}, Math.max(0, Math.min(...[...Pt].map((e) => e.next)) - Date.now())));
|
|
2688
|
+
}
|
|
2689
|
+
function Rt(e, t, n) {
|
|
2690
|
+
let r = (0, o.useCallback)((n) => {
|
|
2691
|
+
if (t !== void 0) return () => {};
|
|
2692
|
+
Pt.size || (Ft = Date.now());
|
|
2693
|
+
let r = {
|
|
2694
|
+
period: e,
|
|
2695
|
+
next: Math.floor(Ft / e + 1) * e,
|
|
2696
|
+
notify: n
|
|
2697
|
+
};
|
|
2698
|
+
return Pt.add(r), Lt(), () => {
|
|
2699
|
+
Pt.delete(r), Lt();
|
|
2700
|
+
};
|
|
2701
|
+
}, [e, t]);
|
|
2702
|
+
return (0, o.useSyncExternalStore)(r, () => t ?? Math.max(Ft, n), () => t ?? n);
|
|
2646
2703
|
}
|
|
2647
|
-
|
|
2704
|
+
var zt = (e) => Rt(1e3, e, 0), Bt = (e) => e.kind === "model" || e.modelCall ? "model" : "tool", Vt = (e) => e?.split(" · ")[0], Ht = (e) => e > 0 && e <= 5 ? e : 0, Ut = (e) => e.status === "failed", Q = (e) => e.status === "running", Wt = (e, t) => new Map((e.facts ?? []).map((e) => [e.label.toLowerCase(), e.value])).get(t.toLowerCase()), Gt = (e) => Number.isFinite(e.startMs) && Number.isFinite(e.endMs) && e.endMs >= e.startMs;
|
|
2705
|
+
function Kt(e, t, n = 240) {
|
|
2648
2706
|
e.sort((e, t) => e.startMs - t.startMs);
|
|
2649
2707
|
let r = t;
|
|
2650
2708
|
for (let t = 0; t < 40; t++, r *= 2) {
|
|
@@ -2663,16 +2721,16 @@ function Ft(e, t, n = 240) {
|
|
|
2663
2721
|
}
|
|
2664
2722
|
return e;
|
|
2665
2723
|
}
|
|
2666
|
-
function
|
|
2724
|
+
function qt(e, t) {
|
|
2667
2725
|
let n = /* @__PURE__ */ new Set(), r = [...e.spans].map((e, t) => {
|
|
2668
|
-
let n =
|
|
2669
|
-
label:
|
|
2726
|
+
let n = At(e.status ?? "unknown"), r = {
|
|
2727
|
+
label: Mt(n).label,
|
|
2670
2728
|
tone: n === "running" ? "live" : n === "done" ? "ok" : n === "needs-you" ? "warn" : n === "failed" ? "failed" : "neutral",
|
|
2671
2729
|
...n === "unknown" ? { ring: !0 } : {}
|
|
2672
2730
|
}, i = {
|
|
2673
2731
|
...e,
|
|
2674
2732
|
outcome: e.outcome ?? r,
|
|
2675
|
-
detail:
|
|
2733
|
+
detail: Wt(e, e.kind === "tool" ? "Provider" : "Model") ?? e.detail
|
|
2676
2734
|
};
|
|
2677
2735
|
return {
|
|
2678
2736
|
span: i,
|
|
@@ -2686,9 +2744,9 @@ function It(e, t) {
|
|
|
2686
2744
|
parentId: t.parentId,
|
|
2687
2745
|
name: t.name,
|
|
2688
2746
|
kind: t.kind,
|
|
2689
|
-
durationLabel:
|
|
2747
|
+
durationLabel: Gt(t) ? `${Tt(t.endMs - t.startMs)}${t.approx ? "~" : ""}` : "—",
|
|
2690
2748
|
approx: t.approx === !0,
|
|
2691
|
-
ok: !
|
|
2749
|
+
ok: !Ut(t),
|
|
2692
2750
|
depth: 0,
|
|
2693
2751
|
hasChildren: !1,
|
|
2694
2752
|
span: t,
|
|
@@ -2715,31 +2773,31 @@ function It(e, t) {
|
|
|
2715
2773
|
t.push(e), a.set(e.parentId, t);
|
|
2716
2774
|
}
|
|
2717
2775
|
}
|
|
2718
|
-
let o = Math.max(1, Number.isFinite(e.totalMs) ? e.totalMs : 1), s = t ?? o / 900, c = [],
|
|
2719
|
-
e.depth = t, e.tone = e.kind === "pipeline" ?
|
|
2776
|
+
let o = Math.max(1, Number.isFinite(e.totalMs) ? e.totalMs : 1), s = t ?? o / 900, c = [], l = 0, u = (e, t, n) => {
|
|
2777
|
+
e.depth = t, e.tone = e.kind === "pipeline" ? l++ : n;
|
|
2720
2778
|
let r = a.get(e.id) ?? [];
|
|
2721
2779
|
e.hasChildren = r.length > 0, c.push(e);
|
|
2722
|
-
let i = [], o = e.span.promptTokens !== void 0 || e.span.completionTokens !== void 0 || e.span.cachedTokens !== void 0,
|
|
2780
|
+
let i = [], o = e.span.promptTokens !== void 0 || e.span.completionTokens !== void 0 || e.span.cachedTokens !== void 0, d = e.span.costUsd ?? 0, f = e.span.kind !== "model" || e.span.costUsd !== void 0;
|
|
2723
2781
|
for (let n of r) {
|
|
2724
|
-
for (let r of
|
|
2782
|
+
for (let r of u(n, t + 1, e.tone)) i.push(r);
|
|
2725
2783
|
e.descendants += 1 + n.descendants, n.kind === "pipeline" && (e.hasAgents = !0);
|
|
2726
2784
|
let r = n.hasChildren ? n.rollupCostUsd : n.span.costUsd;
|
|
2727
|
-
r === void 0 ? (n.kind === "model" || n.hasChildren) && (
|
|
2785
|
+
r === void 0 ? (n.kind === "model" || n.hasChildren) && (f = !1) : d += r, n.kind !== "pipeline" && n.kind !== "waiting" && Gt(n.span) && e.own.push(Zt(n));
|
|
2728
2786
|
}
|
|
2729
|
-
Object.assign(e,
|
|
2730
|
-
let
|
|
2731
|
-
prompt:
|
|
2732
|
-
completion:
|
|
2733
|
-
cached:
|
|
2734
|
-
} :
|
|
2735
|
-
return
|
|
2787
|
+
Object.assign(e, Jt(r));
|
|
2788
|
+
let p = o ? {
|
|
2789
|
+
prompt: Y(e.span.promptTokens),
|
|
2790
|
+
completion: Y(e.span.completionTokens),
|
|
2791
|
+
cached: Y(e.span.cachedTokens)
|
|
2792
|
+
} : Xt(r);
|
|
2793
|
+
return p && (e.tokens = p), e.hasChildren && f && (e.rollupCostUsd = d), e.hasChildren && (e.segments = Kt(i.map((e) => ({ ...e })), s), e.own = Kt(e.own, s)), e.kind === "pipeline" || e.kind === "waiting" || !Gt(e.span) || i.push(Zt(e)), i;
|
|
2736
2794
|
};
|
|
2737
|
-
for (let e of r) e.parentId ||
|
|
2795
|
+
for (let e of r) e.parentId || u(e, 0, -1);
|
|
2738
2796
|
return c;
|
|
2739
2797
|
}
|
|
2740
|
-
function
|
|
2798
|
+
function Jt(e) {
|
|
2741
2799
|
let t, n = [];
|
|
2742
|
-
for (let r of e) if (r.kind !== "pipeline" && r.kind !== "waiting" &&
|
|
2800
|
+
for (let r of e) if (r.kind !== "pipeline" && r.kind !== "waiting" && Gt(r.span)) {
|
|
2743
2801
|
if (t ??= {
|
|
2744
2802
|
model: 0,
|
|
2745
2803
|
tool: 0,
|
|
@@ -2749,7 +2807,7 @@ function Lt(e) {
|
|
|
2749
2807
|
}, r.ok || t.failed++, r.retry && t.retried++, r.kind === "model") t.model++, Q(r.span) || n.push(r.span.endMs - r.span.startMs);
|
|
2750
2808
|
else {
|
|
2751
2809
|
t.tool++;
|
|
2752
|
-
let e =
|
|
2810
|
+
let e = Vt(r.name) || r.kind;
|
|
2753
2811
|
t.tools[e] = (t.tools[e] ?? 0) + 1;
|
|
2754
2812
|
}
|
|
2755
2813
|
}
|
|
@@ -2758,7 +2816,7 @@ function Lt(e) {
|
|
|
2758
2816
|
modelMs: n.sort((e, t) => e - t)
|
|
2759
2817
|
} : {};
|
|
2760
2818
|
}
|
|
2761
|
-
function
|
|
2819
|
+
function Yt(e) {
|
|
2762
2820
|
let t;
|
|
2763
2821
|
for (let n of e) if (n.counts) {
|
|
2764
2822
|
t ??= {
|
|
@@ -2770,7 +2828,7 @@ function Rt(e) {
|
|
|
2770
2828
|
}, t.model += n.counts.model, t.tool += n.counts.tool, t.failed += n.counts.failed, t.retried += n.counts.retried;
|
|
2771
2829
|
for (let [e, r] of Object.entries(n.counts.tools)) t.tools[e] = (t.tools[e] ?? 0) + r;
|
|
2772
2830
|
}
|
|
2773
|
-
let n =
|
|
2831
|
+
let n = Xt(e);
|
|
2774
2832
|
return {
|
|
2775
2833
|
...t ? {
|
|
2776
2834
|
counts: t,
|
|
@@ -2779,19 +2837,19 @@ function Rt(e) {
|
|
|
2779
2837
|
...n ? { tokens: n } : {}
|
|
2780
2838
|
};
|
|
2781
2839
|
}
|
|
2782
|
-
function
|
|
2840
|
+
function Xt(e) {
|
|
2783
2841
|
let t, n = e.filter((e) => e.kind === "model" || e.tokens !== void 0);
|
|
2784
2842
|
for (let e of [
|
|
2785
2843
|
"prompt",
|
|
2786
2844
|
"completion",
|
|
2787
2845
|
"cached"
|
|
2788
2846
|
]) {
|
|
2789
|
-
let r =
|
|
2847
|
+
let r = St(n.map((t) => t.tokens?.[e]));
|
|
2790
2848
|
r !== void 0 && ((t ??= {})[e] = r);
|
|
2791
2849
|
}
|
|
2792
2850
|
return t;
|
|
2793
2851
|
}
|
|
2794
|
-
function
|
|
2852
|
+
function Zt(e) {
|
|
2795
2853
|
return {
|
|
2796
2854
|
startMs: e.span.startMs,
|
|
2797
2855
|
endMs: Q(e.span) ? Infinity : e.span.endMs,
|
|
@@ -2801,20 +2859,20 @@ function Bt(e) {
|
|
|
2801
2859
|
count: 1,
|
|
2802
2860
|
retry: e.retry,
|
|
2803
2861
|
name: e.name,
|
|
2804
|
-
tool:
|
|
2862
|
+
tool: Vt(e.name),
|
|
2805
2863
|
...e.span.costUsd === void 0 ? {} : { costUsd: e.span.costUsd },
|
|
2806
2864
|
...!e.ok && e.kind === "model" ? { modelCall: !0 } : {}
|
|
2807
2865
|
};
|
|
2808
2866
|
}
|
|
2809
|
-
function
|
|
2867
|
+
function Qt(e, t, n) {
|
|
2810
2868
|
let r = t.trim(), i = r.toLowerCase();
|
|
2811
2869
|
return new Set(e.filter((e) => n ? n(e.span, r) : `${e.name} ${e.span.detail ?? ""} ${e.kind} ${e.ok ? "" : "failed"} ${e.span.status ?? ""}`.toLowerCase().includes(i)).map((e) => e.id));
|
|
2812
2870
|
}
|
|
2813
|
-
function
|
|
2871
|
+
function $t(e, t, n, r) {
|
|
2814
2872
|
let i = new Map(e.map((e) => [e.id, e]));
|
|
2815
2873
|
if (t.trim()) {
|
|
2816
2874
|
let n = /* @__PURE__ */ new Set();
|
|
2817
|
-
for (let a of
|
|
2875
|
+
for (let a of Qt(e, t, r)) {
|
|
2818
2876
|
let e = i.get(a);
|
|
2819
2877
|
for (; e && !n.has(e.id);) n.add(e.id), e = e.parentId ? i.get(e.parentId) : void 0;
|
|
2820
2878
|
}
|
|
@@ -2826,7 +2884,7 @@ function Ht(e, t, n, r) {
|
|
|
2826
2884
|
return t && a.add(e.id), !t;
|
|
2827
2885
|
});
|
|
2828
2886
|
}
|
|
2829
|
-
function
|
|
2887
|
+
function en(e, t) {
|
|
2830
2888
|
let n, r = -1;
|
|
2831
2889
|
for (let i of e) {
|
|
2832
2890
|
if (i.hasChildren || i.kind === "pipeline" || i.kind === "waiting" || i.durationLabel === "—" || i.span.startMs > t) continue;
|
|
@@ -2835,7 +2893,7 @@ function Ut(e, t) {
|
|
|
2835
2893
|
}
|
|
2836
2894
|
return n;
|
|
2837
2895
|
}
|
|
2838
|
-
function
|
|
2896
|
+
function tn(e) {
|
|
2839
2897
|
let t = /* @__PURE__ */ new Map();
|
|
2840
2898
|
for (let n of e) {
|
|
2841
2899
|
if (!n.parentId) continue;
|
|
@@ -2854,13 +2912,13 @@ function Wt(e) {
|
|
|
2854
2912
|
}
|
|
2855
2913
|
return new Set(n?.chain);
|
|
2856
2914
|
}
|
|
2857
|
-
function
|
|
2915
|
+
function nn(e, t) {
|
|
2858
2916
|
let n, r = -1, i, a = -1, o = 0, s = 0;
|
|
2859
2917
|
for (let c of e) {
|
|
2860
2918
|
if (c.durationLabel === "—" || c.span.startMs > t || c.kind !== "pipeline" || c.hasAgents || c.id.startsWith("family:") || c.id.startsWith("run:")) continue;
|
|
2861
2919
|
let e = (Q(c.span) ? Math.max(c.span.endMs, t) : Math.min(c.span.endMs, t)) - c.span.startMs;
|
|
2862
|
-
|
|
2863
|
-
let l =
|
|
2920
|
+
Wt(c.span, "Ran for") === void 0 && (s += 1, e > r && (n = c, r = e));
|
|
2921
|
+
let l = Wt(c.span, "Cost") === void 0 ? c.span.costUsd ?? c.rollupCostUsd : void 0;
|
|
2864
2922
|
typeof l == "number" && Number.isFinite(l) && (o += 1, l > a && (i = c, a = l));
|
|
2865
2923
|
}
|
|
2866
2924
|
return {
|
|
@@ -2868,7 +2926,7 @@ function Gt(e, t) {
|
|
|
2868
2926
|
costliestId: o > 1 && a > 0 ? i?.id : void 0
|
|
2869
2927
|
};
|
|
2870
2928
|
}
|
|
2871
|
-
function
|
|
2929
|
+
function rn(e, t) {
|
|
2872
2930
|
let n = 0, r = -Infinity;
|
|
2873
2931
|
for (let i of e.own) {
|
|
2874
2932
|
let e = Math.max(i.startMs, r), a = Math.min(i.endMs, t);
|
|
@@ -2876,58 +2934,58 @@ function Kt(e, t) {
|
|
|
2876
2934
|
}
|
|
2877
2935
|
return n;
|
|
2878
2936
|
}
|
|
2879
|
-
function
|
|
2937
|
+
function an(e, t) {
|
|
2880
2938
|
let n = 0, r = !1, i = !1, a = [];
|
|
2881
2939
|
for (let o of e.spans) {
|
|
2882
2940
|
if (o.startMs > t) continue;
|
|
2883
2941
|
let e = o.meta?.["cli_bridge.usage.scope"] === "sum_of_children";
|
|
2884
|
-
o.endMs > t || (o.costUsd !== void 0 && (n += o.costUsd, r = !0), e || o.kind !== "model" && o.promptTokens === void 0 && o.completionTokens === void 0 || (a.push(
|
|
2942
|
+
o.endMs > t || (o.costUsd !== void 0 && (n += o.costUsd, r = !0), e || o.kind !== "model" && o.promptTokens === void 0 && o.completionTokens === void 0 || (a.push(St([o.promptTokens, o.completionTokens])), i ||= o.promptTokens !== void 0 || o.completionTokens !== void 0));
|
|
2885
2943
|
}
|
|
2886
2944
|
return {
|
|
2887
2945
|
costUsd: e.costUsd === void 0 ? void 0 : r ? n : e.costUsd,
|
|
2888
|
-
tokens:
|
|
2889
|
-
modelCalls:
|
|
2890
|
-
toolCalls:
|
|
2891
|
-
errors:
|
|
2946
|
+
tokens: St(i ? a : [e.promptTokens, e.completionTokens]),
|
|
2947
|
+
modelCalls: Y(e.modelCalls),
|
|
2948
|
+
toolCalls: Y(e.toolCalls),
|
|
2949
|
+
errors: Y(e.errors)
|
|
2892
2950
|
};
|
|
2893
2951
|
}
|
|
2894
|
-
function
|
|
2895
|
-
e =
|
|
2896
|
-
let n =
|
|
2952
|
+
function on(e, t) {
|
|
2953
|
+
e = xt(e);
|
|
2954
|
+
let n = xt(t.billedUsd), r = t.costBasis === "list", i = r ? "Cost · list price" : "Cost";
|
|
2897
2955
|
if (e === void 0) return n === void 0 ? {
|
|
2898
2956
|
value: "—",
|
|
2899
2957
|
title: "No cost source: the harness recorded no cost and no price catalog was given",
|
|
2900
2958
|
label: i
|
|
2901
2959
|
} : {
|
|
2902
|
-
value: `${
|
|
2960
|
+
value: `${X(n)} billed`,
|
|
2903
2961
|
title: "No list price for these calls; billed is the seat charge",
|
|
2904
2962
|
label: i
|
|
2905
2963
|
};
|
|
2906
2964
|
let a = t.costCoverage, o = a !== void 0 && a.priced < a.total, s = !o && t.costBound === "upper";
|
|
2907
2965
|
return {
|
|
2908
|
-
value: `${o || t.costBound === "lower" ? "≥" : s ? "≤" : r ? "≈" : ""}${
|
|
2966
|
+
value: `${o || t.costBound === "lower" ? "≥" : s ? "≤" : r ? "≈" : ""}${X(e)}${n === void 0 ? "" : ` · ${X(n)} billed`}`,
|
|
2909
2967
|
title: [
|
|
2910
2968
|
o ? `${a.priced} of ${a.total} model calls priced` : a ? `all ${a.total} model calls priced` : "",
|
|
2911
2969
|
r ? "at the model catalog list price; not a bill" : "",
|
|
2912
2970
|
s ? "cached input is not split out, so it is priced as fresh input: at most this" : "",
|
|
2913
2971
|
t.costBound === "lower" ? "a floor: the producer reports at least this" : "",
|
|
2914
|
-
n === void 0 ? "" : `billed ${
|
|
2972
|
+
n === void 0 ? "" : `billed ${X(n)} (the seat charge)`
|
|
2915
2973
|
].filter(Boolean).join("; "),
|
|
2916
2974
|
label: i
|
|
2917
2975
|
};
|
|
2918
2976
|
}
|
|
2919
|
-
var
|
|
2920
|
-
function
|
|
2921
|
-
let r = e.length <= t, i =
|
|
2977
|
+
var sn = (e) => e.replace(/[-\s]\d+$/, "");
|
|
2978
|
+
function cn(e, t, n) {
|
|
2979
|
+
let r = e.length <= t, i = ln(e, /* @__PURE__ */ new Set()).filter((e) => e.id.startsWith("family:")).map((e) => e.id);
|
|
2922
2980
|
return new Set(i.filter((e) => r !== n.has(e)));
|
|
2923
2981
|
}
|
|
2924
|
-
function
|
|
2982
|
+
function ln(e, t) {
|
|
2925
2983
|
let n = /* @__PURE__ */ new Map();
|
|
2926
2984
|
for (let t of e) {
|
|
2927
|
-
let e = t.parentId === void 0 ? `root:${t.id}` :
|
|
2985
|
+
let e = t.parentId === void 0 ? `root:${t.id}` : sn(t.name);
|
|
2928
2986
|
n.set(e, [...n.get(e) ?? [], t]);
|
|
2929
2987
|
}
|
|
2930
|
-
let r = [], i = 0, a = (e) => e.tone <= 0 || ++i > 5 ? 0 : 1 + [...
|
|
2988
|
+
let r = [], i = 0, a = (e) => e.tone <= 0 || ++i > 5 ? 0 : 1 + [...sn(e.name)].reduce((e, t) => e * 31 + t.charCodeAt(0) >>> 0, 0) % 5;
|
|
2931
2989
|
for (let [e, i] of n) {
|
|
2932
2990
|
if (i.length < 2) {
|
|
2933
2991
|
let e = i[0], t = a(e);
|
|
@@ -2941,7 +2999,7 @@ function Zt(e, t) {
|
|
|
2941
2999
|
});
|
|
2942
3000
|
continue;
|
|
2943
3001
|
}
|
|
2944
|
-
let n = a(i[0]), o = `family:${e}`, s = Math.min(...i.map((e) => e.span.startMs)), c = Math.max(...i.map((e) => e.span.endMs)), l = i.some((e) => Q(e.span)), u = i.map((e) => e.span.costUsd ?? (
|
|
3002
|
+
let n = a(i[0]), o = `family:${e}`, s = Math.min(...i.map((e) => e.span.startMs)), c = Math.max(...i.map((e) => e.span.endMs)), l = i.some((e) => Q(e.span)), u = i.map((e) => e.span.costUsd ?? (Wt(e.span, "Cost") === void 0 ? e.rollupCostUsd : void 0)).filter((e) => e !== void 0 && Number.isFinite(e)), d = i.filter((e) => e.span.outcome ? e.span.outcome.tone === "failed" : !e.ok).length, f = i.every((e) => e.span.outcome && e.span.outcome.tone === i[0].span.outcome?.tone && !e.span.outcome.ring == !i[0].span.outcome?.ring) ? i[0].span.outcome : void 0, p = i.flatMap((e) => (e.span.facts ?? []).filter(({ label: t }) => [
|
|
2945
3003
|
"model",
|
|
2946
3004
|
"model calls",
|
|
2947
3005
|
"tool calls",
|
|
@@ -2962,7 +3020,7 @@ function Zt(e, t) {
|
|
|
2962
3020
|
parentId: i[0].parentId,
|
|
2963
3021
|
name: e,
|
|
2964
3022
|
kind: "pipeline",
|
|
2965
|
-
durationLabel:
|
|
3023
|
+
durationLabel: Tt(c - s),
|
|
2966
3024
|
approx: i.some((e) => e.approx),
|
|
2967
3025
|
ok: d === 0,
|
|
2968
3026
|
depth: 0,
|
|
@@ -2986,7 +3044,7 @@ function Zt(e, t) {
|
|
|
2986
3044
|
alt: t % 2 == 1
|
|
2987
3045
|
}))).sort((e, t) => e.startMs - t.startMs),
|
|
2988
3046
|
...u.length ? { rollupCostUsd: u.reduce((e, t) => e + t, 0) } : {},
|
|
2989
|
-
...
|
|
3047
|
+
...Yt(i),
|
|
2990
3048
|
span: {
|
|
2991
3049
|
id: o,
|
|
2992
3050
|
kind: "pipeline",
|
|
@@ -3018,7 +3076,7 @@ function Zt(e, t) {
|
|
|
3018
3076
|
}
|
|
3019
3077
|
return r;
|
|
3020
3078
|
}
|
|
3021
|
-
function
|
|
3079
|
+
function un(e) {
|
|
3022
3080
|
if (e.id.startsWith("family:")) {
|
|
3023
3081
|
let t = Number(e.span.meta?.failedAgents ?? 0);
|
|
3024
3082
|
return [`${e.descendants} agents`, ...t ? [`${t} failed`] : []];
|
|
@@ -3038,12 +3096,12 @@ function Qt(e) {
|
|
|
3038
3096
|
]].map(([e, n, r]) => t.has(e.toLowerCase()) ? `${e}: ${t.get(e.toLowerCase())}` : n ? `${n} ${r} ${n === 1 ? "call" : "calls"}` : "");
|
|
3039
3097
|
return [e.span.outcome?.label ?? (Q(e.span) ? "running" : e.ok ? e.kind === "pipeline" ? "" : "done" : "failed"), ...n].filter(Boolean);
|
|
3040
3098
|
}
|
|
3041
|
-
function
|
|
3042
|
-
let i =
|
|
3099
|
+
function dn(e, t, n, r) {
|
|
3100
|
+
let i = ln(e, n);
|
|
3043
3101
|
if (r.size === 0) return i;
|
|
3044
3102
|
let a = /* @__PURE__ */ new Map();
|
|
3045
3103
|
for (let e of t) e.parentId !== void 0 && r.has(e.parentId) && e.kind !== "pipeline" && a.set(e.parentId, [...a.get(e.parentId) ?? [], e]);
|
|
3046
|
-
return i.flatMap((e) => r.has(e.id) ? [e, ...
|
|
3104
|
+
return i.flatMap((e) => r.has(e.id) ? [e, ...fn(a.get(e.id) ?? []).map((t) => ({
|
|
3047
3105
|
...t,
|
|
3048
3106
|
stepOf: e.id,
|
|
3049
3107
|
inset: (e.inset ?? 0) + 1,
|
|
@@ -3054,7 +3112,7 @@ function $t(e, t, n, r) {
|
|
|
3054
3112
|
}))
|
|
3055
3113
|
}))] : [e]);
|
|
3056
3114
|
}
|
|
3057
|
-
function
|
|
3115
|
+
function fn(e) {
|
|
3058
3116
|
let t = [];
|
|
3059
3117
|
for (let n = 0; n < e.length;) {
|
|
3060
3118
|
let r = n;
|
|
@@ -3069,15 +3127,15 @@ function en(e) {
|
|
|
3069
3127
|
...a,
|
|
3070
3128
|
id: `run:${a.id}`,
|
|
3071
3129
|
name: `${i.length} ${u}`,
|
|
3072
|
-
durationLabel:
|
|
3130
|
+
durationLabel: Tt(s - o),
|
|
3073
3131
|
ok: c === 0,
|
|
3074
3132
|
hasChildren: !1,
|
|
3075
3133
|
descendants: 0,
|
|
3076
3134
|
segments: [],
|
|
3077
|
-
...
|
|
3078
|
-
tokens:
|
|
3135
|
+
...Jt(i),
|
|
3136
|
+
tokens: Xt(i),
|
|
3079
3137
|
own: i.map((e) => ({
|
|
3080
|
-
...
|
|
3138
|
+
...Zt(e),
|
|
3081
3139
|
tone: a.tone
|
|
3082
3140
|
})),
|
|
3083
3141
|
...l.length ? { rollupCostUsd: l.reduce((e, t) => e + t, 0) } : {},
|
|
@@ -3094,7 +3152,7 @@ function en(e) {
|
|
|
3094
3152
|
}
|
|
3095
3153
|
return t;
|
|
3096
3154
|
}
|
|
3097
|
-
function
|
|
3155
|
+
function pn(e, t) {
|
|
3098
3156
|
let n = t.find((t) => t.id === e.id);
|
|
3099
3157
|
if (n) return n;
|
|
3100
3158
|
let r = t.find((t) => (t.span.meta?.members)?.includes(e.id));
|
|
@@ -3103,94 +3161,61 @@ function tn(e, t) {
|
|
|
3103
3161
|
tone: r.tone
|
|
3104
3162
|
} : e;
|
|
3105
3163
|
}
|
|
3106
|
-
var
|
|
3107
|
-
function
|
|
3108
|
-
let n = [...e.span.activityAt ?? e.own.flatMap((e) => [e.startMs, e.endMs])].filter(Number.isFinite).sort((e, t) => e - t), r = n.at(-1) ?? NaN, i = n.slice(1).map((e, t) => e - n[t]).sort((e, t) => e - t), a = Math.floor(i.length / 2), o = i.length ? i.length % 2 ? i[a] : (i[a - 1] + i[a]) / 2 : 0, s = e.span.medianEventGapMs, c =
|
|
3164
|
+
var mn = (e, t) => Wt(e.span, "Cost") ?? (t === void 0 ? "" : `${e.costFloor ? "≥" : ""}${X(t)}`);
|
|
3165
|
+
function hn(e, t) {
|
|
3166
|
+
let n = [...e.span.activityAt ?? e.own.flatMap((e) => [e.startMs, e.endMs])].filter(Number.isFinite).sort((e, t) => e - t), r = n.at(-1) ?? NaN, i = n.slice(1).map((e, t) => e - n[t]).sort((e, t) => e - t), a = Math.floor(i.length / 2), o = i.length ? i.length % 2 ? i[a] : (i[a - 1] + i[a]) / 2 : 0, s = e.span.medianEventGapMs, c = gn(r, typeof s == "number" && Number.isFinite(s) && s >= 0 ? s : o, t);
|
|
3109
3167
|
return {
|
|
3110
3168
|
last: r,
|
|
3111
3169
|
...c,
|
|
3112
3170
|
quiet: Q(e.span) && c.quiet
|
|
3113
3171
|
};
|
|
3114
3172
|
}
|
|
3115
|
-
function
|
|
3173
|
+
function gn(e, t, n) {
|
|
3116
3174
|
let r = Number.isFinite(e) ? Math.max(0, n - e) : 0;
|
|
3117
3175
|
return {
|
|
3118
3176
|
quietMs: r,
|
|
3119
3177
|
quiet: Number.isFinite(e) && r > Math.max(3e5, 3 * t)
|
|
3120
3178
|
};
|
|
3121
3179
|
}
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
if (!(e === void 0 || !Number.isFinite(e) || e < 0)) return e === 0 ? "$0" : e < .01 ? `$${e.toFixed(4)}` : `$${e.toFixed(2)}`;
|
|
3125
|
-
}
|
|
3126
|
-
function sn(e) {
|
|
3127
|
-
if (!(e == null || !Number.isFinite(e) || e < 0)) return e < 1e3 ? `${Math.round(e)} tok` : e < 1e6 ? `${(e / 1e3).toFixed(+(e < 1e4))}k tok` : `${(e / 1e6).toFixed(1)}M tok`;
|
|
3128
|
-
}
|
|
3129
|
-
function cn(e, t, n = !1) {
|
|
3130
|
-
if (e == null || !Number.isFinite(e)) return "—";
|
|
3131
|
-
if (n) return new Date(e).toLocaleTimeString([], {
|
|
3132
|
-
hour: "2-digit",
|
|
3133
|
-
minute: "2-digit",
|
|
3134
|
-
hourCycle: "h23"
|
|
3135
|
-
});
|
|
3136
|
-
let r = Math.max(0, Math.floor((t - e) / 1e3));
|
|
3137
|
-
return r < 5 ? "now" : r < 60 ? `${r}s` : r < 3600 ? `${Math.floor(r / 60)}m` : `${Math.floor(r / 3600)}h`;
|
|
3138
|
-
}
|
|
3139
|
-
var ln = /* @__PURE__ */ new Set(), un = Date.now(), dn;
|
|
3140
|
-
function fn() {
|
|
3141
|
-
un = Date.now();
|
|
3142
|
-
for (let e of ln) e();
|
|
3143
|
-
dn = setTimeout(fn, 1e3 - Date.now() % 1e3);
|
|
3144
|
-
}
|
|
3145
|
-
function pn(e) {
|
|
3146
|
-
return ln.add(e), ln.size === 1 && fn(), () => {
|
|
3147
|
-
ln.delete(e), ln.size || clearTimeout(dn);
|
|
3148
|
-
};
|
|
3149
|
-
}
|
|
3150
|
-
var mn = () => () => {};
|
|
3151
|
-
function hn(e) {
|
|
3152
|
-
let t = (0, f.useSyncExternalStore)(e === void 0 ? pn : mn, () => e ?? un, () => e ?? 0);
|
|
3153
|
-
return e ?? t;
|
|
3154
|
-
}
|
|
3155
|
-
var gn = () => typeof matchMedia > "u" ? null : matchMedia("(prefers-reduced-motion: reduce)"), _n = (e) => {
|
|
3156
|
-
let t = gn();
|
|
3180
|
+
var _n = () => typeof matchMedia > "u" ? null : matchMedia("(prefers-reduced-motion: reduce)"), vn = (e) => {
|
|
3181
|
+
let t = _n();
|
|
3157
3182
|
return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
|
|
3158
3183
|
};
|
|
3159
|
-
function
|
|
3160
|
-
return (0,
|
|
3184
|
+
function yn() {
|
|
3185
|
+
return (0, o.useSyncExternalStore)(vn, () => _n()?.matches === !1, () => !1);
|
|
3161
3186
|
}
|
|
3162
|
-
function
|
|
3187
|
+
function bn(e, t) {
|
|
3163
3188
|
if (typeof document > "u") return 0;
|
|
3164
3189
|
let n = getComputedStyle(t ?? document.documentElement).getPropertyValue(e).trim();
|
|
3165
3190
|
return (parseFloat(n) || 0) * (n.endsWith("ms") ? 1 : 1e3);
|
|
3166
3191
|
}
|
|
3167
|
-
var
|
|
3168
|
-
function
|
|
3192
|
+
var xn = { animation: "tangle-breathe var(--motion-ambient) infinite" };
|
|
3193
|
+
function Sn(e) {
|
|
3169
3194
|
for (let t of e.currentTarget.getAnimations()) t.animationName === "tangle-breathe" && (t.startTime = 0);
|
|
3170
3195
|
}
|
|
3171
|
-
function
|
|
3196
|
+
function Cn(e) {
|
|
3172
3197
|
let t = Number.isFinite(e.lastActivityAt) && Number.isFinite(e.medianEventGapMs) && e.medianEventGapMs >= 0 ? [] : (e.events ?? []).flatMap((e) => e.at != null && Number.isFinite(e.at) ? [e.at] : []).sort((e, t) => e - t), n = Number.isFinite(e.lastActivityAt) ? e.lastActivityAt : t.at(-1), r = t.slice(1).map((e, n) => e - t[n]).sort((e, t) => e - t), i = Math.floor(r.length / 2);
|
|
3173
3198
|
return {
|
|
3174
3199
|
lastActivityAt: n,
|
|
3175
3200
|
medianEventGapMs: Number.isFinite(e.medianEventGapMs) && e.medianEventGapMs >= 0 ? e.medianEventGapMs : r.length ? r.length % 2 ? r[i] : (r[i - 1] + r[i]) / 2 : 0
|
|
3176
3201
|
};
|
|
3177
3202
|
}
|
|
3178
|
-
function
|
|
3203
|
+
function wn(e, t) {
|
|
3179
3204
|
if (e.status !== "running") return null;
|
|
3180
|
-
let { lastActivityAt: n, medianEventGapMs: r } =
|
|
3205
|
+
let { lastActivityAt: n, medianEventGapMs: r } = Cn(e);
|
|
3181
3206
|
if (n == null || !Number.isFinite(n)) return null;
|
|
3182
|
-
let { quietMs: i, quiet: a } =
|
|
3207
|
+
let { quietMs: i, quiet: a } = gn(n, r, t);
|
|
3183
3208
|
return a ? {
|
|
3184
3209
|
quietMs: i,
|
|
3185
|
-
label: `Quiet ${
|
|
3210
|
+
label: `Quiet ${Tt(i)}`
|
|
3186
3211
|
} : null;
|
|
3187
3212
|
}
|
|
3188
|
-
function
|
|
3189
|
-
let n =
|
|
3190
|
-
(0,
|
|
3213
|
+
function Tn(e, t) {
|
|
3214
|
+
let n = yn();
|
|
3215
|
+
(0, o.useEffect)(() => {
|
|
3191
3216
|
let r = e.current;
|
|
3192
3217
|
if (!r || !n || t !== "needs-you" && t !== "failed") return;
|
|
3193
|
-
let i =
|
|
3218
|
+
let i = Mt(t).token, a = bn("--duration-ambient", r) * (t === "needs-you" ? .45 : .3);
|
|
3194
3219
|
r.dataset.attn = t;
|
|
3195
3220
|
let o = getComputedStyle(r).boxShadow, s = o === "none" ? "" : `, ${o}`, c = r.animate([{ boxShadow: `0 0 0 0 color-mix(in srgb, var(${i}) 40%, transparent)${s}` }, { boxShadow: `0 0 0 6px transparent${s}` }], {
|
|
3196
3221
|
duration: a,
|
|
@@ -3208,15 +3233,32 @@ function wn(e, t) {
|
|
|
3208
3233
|
n
|
|
3209
3234
|
]);
|
|
3210
3235
|
}
|
|
3211
|
-
|
|
3236
|
+
// node_modules/.pnpm/@tangle-network+charts@4.0.1_@tangle-network+brand@1.31.3_react@19.3.1__@tangle-network_8214af05d0383b56bf644dc573d5230c/node_modules/@tangle-network/charts/dist/graph-style-6hvhmogR.js
|
|
3237
|
+
function En(e) {
|
|
3238
|
+
return e === void 0 || !Number.isFinite(e) || e < 0 ? void 0 : X(e);
|
|
3239
|
+
}
|
|
3240
|
+
function Dn(e) {
|
|
3241
|
+
return Y(e) === void 0 ? void 0 : `${Et(e)} tok`;
|
|
3242
|
+
}
|
|
3243
|
+
function On(e, t, n = !1) {
|
|
3244
|
+
if (e == null || !Number.isFinite(e)) return "—";
|
|
3245
|
+
if (n) return new Date(e).toLocaleTimeString([], {
|
|
3246
|
+
hour: "2-digit",
|
|
3247
|
+
minute: "2-digit",
|
|
3248
|
+
hourCycle: "h23"
|
|
3249
|
+
});
|
|
3250
|
+
let r = Math.max(0, Math.floor((t - e) / 1e3));
|
|
3251
|
+
return r < 5 ? "now" : r < 60 ? `${r}s` : r < 3600 ? `${Math.floor(r / 60)}m` : `${Math.floor(r / 3600)}h`;
|
|
3252
|
+
}
|
|
3253
|
+
function kn(e, t = 2, n = 350) {
|
|
3212
3254
|
return e().catch((r) => {
|
|
3213
3255
|
if (t <= 0) throw r;
|
|
3214
3256
|
return new Promise((r, i) => {
|
|
3215
|
-
setTimeout(() =>
|
|
3257
|
+
setTimeout(() => kn(e, t - 1, n).then(r, i), n);
|
|
3216
3258
|
});
|
|
3217
3259
|
});
|
|
3218
3260
|
}
|
|
3219
|
-
var
|
|
3261
|
+
var An = class extends o.Component {
|
|
3220
3262
|
state = { hasError: !1 };
|
|
3221
3263
|
static getDerivedStateFromError() {
|
|
3222
3264
|
return { hasError: !0 };
|
|
@@ -3224,39 +3266,39 @@ var En = class extends f.Component {
|
|
|
3224
3266
|
render() {
|
|
3225
3267
|
return this.state.hasError ? this.props.fallback : this.props.children;
|
|
3226
3268
|
}
|
|
3227
|
-
},
|
|
3228
|
-
function
|
|
3229
|
-
return
|
|
3269
|
+
}, jn;
|
|
3270
|
+
function Mn() {
|
|
3271
|
+
return jn ??= import("./elk.bundled-CqF3Dyp2.js").then((t) => /* @__PURE__ */ e(t.default, 1)).then((e) => {
|
|
3230
3272
|
let t = e.default;
|
|
3231
3273
|
return new t();
|
|
3232
|
-
}).catch(() => null),
|
|
3274
|
+
}).catch(() => null), jn;
|
|
3233
3275
|
}
|
|
3234
|
-
var
|
|
3235
|
-
function
|
|
3276
|
+
var Nn = /* @__PURE__ */ new Set(/* @__PURE__ */ "ai.api.cd.ci.cli.cpu.css.csv.db.dns.gpu.html.http.https.id.io.ip.json.llm.mcp.ml.pr.qa.sdk.sla.sql.ssh.ui.url.uuid.vm.yaml".split("."));
|
|
3277
|
+
function Pn(e) {
|
|
3236
3278
|
return e.replace(/[._\-/]+/g, " ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").trim().split(/\s+/).filter(Boolean);
|
|
3237
3279
|
}
|
|
3238
|
-
function
|
|
3239
|
-
let n =
|
|
3280
|
+
function Fn(e, t = "sentence") {
|
|
3281
|
+
let n = Pn(e);
|
|
3240
3282
|
return n.length === 0 ? e : n.map((e, n) => {
|
|
3241
3283
|
let r = e.toLowerCase();
|
|
3242
|
-
if (
|
|
3284
|
+
if (Nn.has(r)) return r.toUpperCase();
|
|
3243
3285
|
let i = r.charAt(0).toUpperCase() + r.slice(1);
|
|
3244
3286
|
return t === "title" ? i : n > 0 || t === "lower" ? r : i;
|
|
3245
3287
|
}).join(" ");
|
|
3246
3288
|
}
|
|
3247
|
-
function
|
|
3289
|
+
function In(e) {
|
|
3248
3290
|
let t = e.lastIndexOf("/");
|
|
3249
3291
|
return t === -1 ? e : e.slice(t + 1);
|
|
3250
3292
|
}
|
|
3251
|
-
function
|
|
3293
|
+
function Ln(e) {
|
|
3252
3294
|
if (typeof document > "u" || typeof window > "u") return "light";
|
|
3253
3295
|
let t = window.getComputedStyle(e ?? document.documentElement).colorScheme;
|
|
3254
3296
|
return t.startsWith("dark") ? "dark" : t.startsWith("light") ? "light" : (e ?? document.documentElement).closest(".dark") ? "dark" : "light";
|
|
3255
3297
|
}
|
|
3256
|
-
function
|
|
3257
|
-
let [n, r] = (0,
|
|
3258
|
-
return (0,
|
|
3259
|
-
let n = t ? e.current : null, i = () => r(
|
|
3298
|
+
function Rn(e, t) {
|
|
3299
|
+
let [n, r] = (0, o.useState)(() => Ln(null));
|
|
3300
|
+
return (0, o.useLayoutEffect)(() => {
|
|
3301
|
+
let n = t ? e.current : null, i = () => r(Ln(n));
|
|
3260
3302
|
i();
|
|
3261
3303
|
let a = new MutationObserver(i);
|
|
3262
3304
|
for (let e = n ?? document.documentElement; e; e = e.parentElement) a.observe(e, {
|
|
@@ -3271,15 +3313,124 @@ function Pn(e, t) {
|
|
|
3271
3313
|
return () => a.disconnect();
|
|
3272
3314
|
}, [e, t]), n;
|
|
3273
3315
|
}
|
|
3274
|
-
var
|
|
3316
|
+
var zn = {
|
|
3275
3317
|
outline: "1px solid hsl(var(--foreground) / .45)",
|
|
3276
3318
|
outlineOffset: 2
|
|
3277
|
-
},
|
|
3278
|
-
function
|
|
3279
|
-
return e === "failed" || e === "waiting" ? `var(${
|
|
3319
|
+
}, Bn = "inset 0 1px 0 hsl(var(--foreground) / 0.06), 0 1px 3px hsl(var(--shadow-color) / 0.08)", Vn = "hsl(var(--foreground) / 0.14)";
|
|
3320
|
+
function Hn(e) {
|
|
3321
|
+
return e === "failed" || e === "waiting" ? `var(${Mt(e === "waiting" ? "needs-you" : "failed").token})` : "color-mix(in srgb, hsl(var(--muted-foreground)) 80%, transparent)";
|
|
3280
3322
|
}
|
|
3281
|
-
// node_modules/.pnpm/@tangle-network+charts@
|
|
3282
|
-
var
|
|
3323
|
+
// node_modules/.pnpm/@tangle-network+charts@4.0.1_@tangle-network+brand@1.31.3_react@19.3.1__@tangle-network_8214af05d0383b56bf644dc573d5230c/node_modules/@tangle-network/charts/dist/latest-events-BfRc-7l9.js
|
|
3324
|
+
var Un = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
3325
|
+
function Wn(e, t, n = []) {
|
|
3326
|
+
if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
|
|
3327
|
+
return {
|
|
3328
|
+
name: Un(e),
|
|
3329
|
+
size: 24,
|
|
3330
|
+
node: t,
|
|
3331
|
+
...n.length > 0 ? { aliases: n } : {}
|
|
3332
|
+
};
|
|
3333
|
+
}
|
|
3334
|
+
var Gn = (e) => {
|
|
3335
|
+
let t = "", n = !1;
|
|
3336
|
+
for (let r of e) r === "-" || r === "_" || r <= " " ? n = t.length > 0 : (t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1);
|
|
3337
|
+
return t;
|
|
3338
|
+
}, Kn = (e) => {
|
|
3339
|
+
let t = Gn(e);
|
|
3340
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3341
|
+
}, qn = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), $ = {
|
|
3342
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3343
|
+
width: 24,
|
|
3344
|
+
height: 24,
|
|
3345
|
+
viewBox: "0 0 24 24",
|
|
3346
|
+
fill: "none",
|
|
3347
|
+
stroke: "currentColor",
|
|
3348
|
+
"stroke-width": 2,
|
|
3349
|
+
"stroke-linecap": "round",
|
|
3350
|
+
"stroke-linejoin": "round"
|
|
3351
|
+
};
|
|
3352
|
+
function Jn(e) {
|
|
3353
|
+
return e != null;
|
|
3354
|
+
}
|
|
3355
|
+
function Yn(e, t = {}) {
|
|
3356
|
+
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? $.width, a = e.size ?? e.height ?? $.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? qn(...c) : qn("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? $["stroke-width"]) * Number(e.size ?? e.width ?? $.width) / Number(t.size ?? t.width ?? $.width) : t.strokeWidth ?? $["stroke-width"];
|
|
3357
|
+
return [
|
|
3358
|
+
"svg",
|
|
3359
|
+
{
|
|
3360
|
+
...Object.entries($).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
|
|
3361
|
+
..."color" in t && t.color && { [r("stroke")]: t.color },
|
|
3362
|
+
..."size" in t && Jn(t.size) && {
|
|
3363
|
+
[r("width")]: t.size,
|
|
3364
|
+
[r("height")]: t.size
|
|
3365
|
+
},
|
|
3366
|
+
..."width" in t && Jn(t.width) && { [r("width")]: t.width },
|
|
3367
|
+
..."height" in t && Jn(t.height) && { [r("height")]: t.height },
|
|
3368
|
+
[r("stroke-width")]: u,
|
|
3369
|
+
...l && { [r("class")]: l },
|
|
3370
|
+
[r("viewBox")]: `0 0 ${i} ${a}`,
|
|
3371
|
+
...t.hasA11yProp === !1 ? { [r("aria-hidden")]: "true" } : {},
|
|
3372
|
+
..."attributes" in t && t.attributes
|
|
3373
|
+
},
|
|
3374
|
+
e.node.map((e) => {
|
|
3375
|
+
let [n, i, a] = e, o = t.nonScalingStroke ? {
|
|
3376
|
+
[r("vector-effect")]: "non-scaling-stroke",
|
|
3377
|
+
...i
|
|
3378
|
+
} : i;
|
|
3379
|
+
return a ? [
|
|
3380
|
+
n,
|
|
3381
|
+
o,
|
|
3382
|
+
a
|
|
3383
|
+
] : [n, o];
|
|
3384
|
+
})
|
|
3385
|
+
];
|
|
3386
|
+
}
|
|
3387
|
+
function Xn(e, t = {}) {
|
|
3388
|
+
return Yn(e, {
|
|
3389
|
+
...t,
|
|
3390
|
+
attributeNames: {
|
|
3391
|
+
...t.attributeNames,
|
|
3392
|
+
class: "className",
|
|
3393
|
+
"stroke-width": "strokeWidth",
|
|
3394
|
+
"stroke-linecap": "strokeLinecap",
|
|
3395
|
+
"stroke-linejoin": "strokeLinejoin",
|
|
3396
|
+
"vector-effect": "vectorEffect"
|
|
3397
|
+
}
|
|
3398
|
+
});
|
|
3399
|
+
}
|
|
3400
|
+
var Zn = (e) => {
|
|
3401
|
+
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
3402
|
+
return !1;
|
|
3403
|
+
}, Qn = (0, o.createContext)({}), $n = () => (0, o.useContext)(Qn), er = (0, o.forwardRef)(({ color: e, size: t, width: n, height: r, strokeWidth: i, absoluteStrokeWidth: a, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
|
|
3404
|
+
node: u,
|
|
3405
|
+
aliases: [],
|
|
3406
|
+
size: 24
|
|
3407
|
+
}, ...f }, p) => {
|
|
3408
|
+
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = $n() ?? {}, b = !!l || Zn(f), [x, S, C = []] = Xn(d, {
|
|
3409
|
+
color: e ?? v,
|
|
3410
|
+
width: n ?? t ?? m,
|
|
3411
|
+
height: r ?? t ?? m,
|
|
3412
|
+
strokeWidth: i ?? h,
|
|
3413
|
+
absoluteStrokeWidth: a ?? g,
|
|
3414
|
+
nonScalingStroke: s ?? _,
|
|
3415
|
+
className: qn(y, c),
|
|
3416
|
+
hasA11yProp: b,
|
|
3417
|
+
attributes: f
|
|
3418
|
+
});
|
|
3419
|
+
return (0, o.createElement)(x, {
|
|
3420
|
+
ref: p,
|
|
3421
|
+
...S
|
|
3422
|
+
}, [...C.map(([e, t]) => (0, o.createElement)(e, t)), ...Array.isArray(l) ? l : [l]]);
|
|
3423
|
+
});
|
|
3424
|
+
function tr(e, t = [], n = []) {
|
|
3425
|
+
let r = typeof e == "string" ? Wn(e, t, n) : e, i = (0, o.forwardRef)(({ className: e, ...t }, n) => (0, o.createElement)(er, {
|
|
3426
|
+
ref: n,
|
|
3427
|
+
icon: r,
|
|
3428
|
+
className: e,
|
|
3429
|
+
...t
|
|
3430
|
+
}));
|
|
3431
|
+
return r.name && (i.displayName = Kn(r.name)), i;
|
|
3432
|
+
}
|
|
3433
|
+
var nr = {
|
|
3283
3434
|
name: "bot",
|
|
3284
3435
|
size: 24,
|
|
3285
3436
|
node: [
|
|
@@ -3313,8 +3464,8 @@ var zn = {
|
|
|
3313
3464
|
}]
|
|
3314
3465
|
]
|
|
3315
3466
|
};
|
|
3316
|
-
|
|
3317
|
-
var
|
|
3467
|
+
nr.node;
|
|
3468
|
+
var rr = tr(nr), ir = {
|
|
3318
3469
|
name: "wrench",
|
|
3319
3470
|
size: 24,
|
|
3320
3471
|
node: [["path", {
|
|
@@ -3322,30 +3473,30 @@ var Bn = Z(zn), Vn = {
|
|
|
3322
3473
|
key: "1ngwbx"
|
|
3323
3474
|
}]]
|
|
3324
3475
|
};
|
|
3325
|
-
|
|
3326
|
-
var
|
|
3327
|
-
function
|
|
3328
|
-
let { renderAgentMark: r } = (0,
|
|
3329
|
-
return e && r ? r(e, t, n) : /* @__PURE__ */ (0,
|
|
3476
|
+
ir.node;
|
|
3477
|
+
var ar = tr(ir), or = (0, o.createContext)({}), sr = or.Provider;
|
|
3478
|
+
function cr({ agent: e, layout: t, size: n }) {
|
|
3479
|
+
let { renderAgentMark: r } = (0, o.useContext)(or);
|
|
3480
|
+
return e && r ? r(e, t, n) : /* @__PURE__ */ (0, Z.jsx)(rr, {
|
|
3330
3481
|
size: t === "tree" ? n : 16,
|
|
3331
3482
|
"aria-hidden": !0
|
|
3332
3483
|
});
|
|
3333
3484
|
}
|
|
3334
|
-
function
|
|
3335
|
-
let { renderToolMark: r } = (0,
|
|
3336
|
-
return r ? r(e, t, n) : /* @__PURE__ */ (0,
|
|
3485
|
+
function lr({ tool: e, label: t, size: n }) {
|
|
3486
|
+
let { renderToolMark: r } = (0, o.useContext)(or);
|
|
3487
|
+
return r ? r(e, t, n) : /* @__PURE__ */ (0, Z.jsx)(ar, {
|
|
3337
3488
|
size: n * .4,
|
|
3338
3489
|
"aria-hidden": !0
|
|
3339
3490
|
});
|
|
3340
3491
|
}
|
|
3341
|
-
var
|
|
3342
|
-
width:
|
|
3343
|
-
height:
|
|
3344
|
-
},
|
|
3492
|
+
var ur = {
|
|
3493
|
+
width: 232,
|
|
3494
|
+
height: 120
|
|
3495
|
+
}, dr = {
|
|
3345
3496
|
width: 296,
|
|
3346
3497
|
height: 164
|
|
3347
|
-
},
|
|
3348
|
-
function
|
|
3498
|
+
}, fr = 10, pr = 12, mr = 56, hr = 24;
|
|
3499
|
+
function gr(e, t) {
|
|
3349
3500
|
let n = /* @__PURE__ */ new Set(), r = [];
|
|
3350
3501
|
for (let t of e) n.has(t.id) || (n.add(t.id), r.push(t.id));
|
|
3351
3502
|
let i = /* @__PURE__ */ new Set(), a = [], o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
@@ -3377,43 +3528,40 @@ function $n(e, t) {
|
|
|
3377
3528
|
groupOf: l
|
|
3378
3529
|
};
|
|
3379
3530
|
}
|
|
3380
|
-
function
|
|
3531
|
+
function _r(e, t, n, r = !1) {
|
|
3381
3532
|
if (r) return {
|
|
3382
3533
|
width: n.width + 24,
|
|
3383
3534
|
height: 80
|
|
3384
3535
|
};
|
|
3385
3536
|
let i = Math.max(1, Math.min(t, e)), a = Math.ceil(e / i);
|
|
3386
3537
|
return {
|
|
3387
|
-
width: i * n.width + (i - 1) *
|
|
3388
|
-
height: 80 + a * n.height + (a - 1) *
|
|
3538
|
+
width: i * n.width + (i - 1) * fr + 24,
|
|
3539
|
+
height: 80 + a * n.height + (a - 1) * fr + pr
|
|
3389
3540
|
};
|
|
3390
3541
|
}
|
|
3391
|
-
function
|
|
3392
|
-
let
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
});
|
|
3402
|
-
let o = (t) => e.groupOf.get(t) ?? a.get(t) ?? t, s = /* @__PURE__ */ new Set(), c = [];
|
|
3403
|
-
for (let t of e.spawns) {
|
|
3404
|
-
let e = o(t.from), n = o(t.to), r = `${e}\u0000${n}`;
|
|
3405
|
-
e === n || s.has(r) || (s.add(r), c.push({
|
|
3406
|
-
from: e,
|
|
3407
|
-
to: n
|
|
3408
|
-
}));
|
|
3409
|
-
}
|
|
3542
|
+
function vr(e, t, n, r, i) {
|
|
3543
|
+
let a = new Map(i ? e.groups.map((e) => [e.parentId, e.id]) : []), o = e.agentIds.filter((t) => !e.groupOf.has(t) && !a.has(t)).map((e) => ({
|
|
3544
|
+
id: e,
|
|
3545
|
+
...n
|
|
3546
|
+
}));
|
|
3547
|
+
o.push(...e.groups.map((e) => ({
|
|
3548
|
+
id: e.id,
|
|
3549
|
+
..._r(e.memberIds.length, t, n, r.has(e.id))
|
|
3550
|
+
})));
|
|
3551
|
+
let s = (t) => e.groupOf.get(t) ?? a.get(t) ?? t, c = /* @__PURE__ */ new Set();
|
|
3410
3552
|
return {
|
|
3411
|
-
units:
|
|
3412
|
-
links:
|
|
3553
|
+
units: o,
|
|
3554
|
+
links: e.spawns.flatMap((e) => {
|
|
3555
|
+
let t = s(e.from), n = s(e.to), r = `${t}\u0000${n}`;
|
|
3556
|
+
return t === n || c.has(r) ? [] : (c.add(r), [{
|
|
3557
|
+
from: t,
|
|
3558
|
+
to: n
|
|
3559
|
+
}]);
|
|
3560
|
+
})
|
|
3413
3561
|
};
|
|
3414
3562
|
}
|
|
3415
|
-
async function
|
|
3416
|
-
let r = await
|
|
3563
|
+
async function yr(e, t, n) {
|
|
3564
|
+
let r = await Mn();
|
|
3417
3565
|
if (!r) return null;
|
|
3418
3566
|
let i = {
|
|
3419
3567
|
id: "root",
|
|
@@ -3423,8 +3571,8 @@ async function nr(e, t, n) {
|
|
|
3423
3571
|
"elk.layered.considerModelOrder.strategy": "NODES_AND_EDGES",
|
|
3424
3572
|
"elk.layered.nodePlacement.strategy": "BRANDES_KOEPF",
|
|
3425
3573
|
"elk.layered.nodePlacement.bk.fixedAlignment": "BALANCED",
|
|
3426
|
-
"elk.layered.spacing.nodeNodeBetweenLayers": String(
|
|
3427
|
-
"elk.spacing.nodeNode": String(
|
|
3574
|
+
"elk.layered.spacing.nodeNodeBetweenLayers": String(mr),
|
|
3575
|
+
"elk.spacing.nodeNode": String(hr),
|
|
3428
3576
|
"elk.spacing.componentComponent": "48",
|
|
3429
3577
|
"elk.separateConnectedComponents": "true",
|
|
3430
3578
|
"elk.padding": "[top=0,left=0,bottom=0,right=0]"
|
|
@@ -3451,7 +3599,7 @@ async function nr(e, t, n) {
|
|
|
3451
3599
|
return null;
|
|
3452
3600
|
}
|
|
3453
3601
|
}
|
|
3454
|
-
function
|
|
3602
|
+
function br(e, t, n) {
|
|
3455
3603
|
let r = /* @__PURE__ */ new Map();
|
|
3456
3604
|
for (let e of t) r.set(e.to, [...r.get(e.to) ?? [], e.from]);
|
|
3457
3605
|
let i = /* @__PURE__ */ new Map(), a = (e, t) => {
|
|
@@ -3463,7 +3611,7 @@ function rr(e, t, n) {
|
|
|
3463
3611
|
return t.delete(e), i.set(e, o), o;
|
|
3464
3612
|
}, o = [];
|
|
3465
3613
|
for (let t of e) (o[a(t.id, /* @__PURE__ */ new Set())] ??= []).push(t);
|
|
3466
|
-
let s = (e) => n === "TB" ? e.width : e.height, c = (e) => n === "TB" ? e.height : e.width, l = o.map((e) => e.reduce((e, t) => e + s(t), 0) + (e.length - 1) *
|
|
3614
|
+
let s = (e) => n === "TB" ? e.width : e.height, c = (e) => n === "TB" ? e.height : e.width, l = o.map((e) => e.reduce((e, t) => e + s(t), 0) + (e.length - 1) * hr), u = Math.max(...l), d = /* @__PURE__ */ new Map(), f = 0;
|
|
3467
3615
|
return o.forEach((e, t) => {
|
|
3468
3616
|
let r = (u - l[t]) / 2;
|
|
3469
3617
|
for (let t of e) d.set(t.id, n === "TB" ? {
|
|
@@ -3472,60 +3620,63 @@ function rr(e, t, n) {
|
|
|
3472
3620
|
} : {
|
|
3473
3621
|
x: f,
|
|
3474
3622
|
y: r
|
|
3475
|
-
}), r += s(t) +
|
|
3476
|
-
f += Math.max(...e.map(c)) +
|
|
3623
|
+
}), r += s(t) + hr;
|
|
3624
|
+
f += Math.max(...e.map(c)) + mr;
|
|
3477
3625
|
}), d;
|
|
3478
3626
|
}
|
|
3479
|
-
async function
|
|
3480
|
-
let { units:
|
|
3481
|
-
for (let e of
|
|
3482
|
-
let t =
|
|
3627
|
+
async function xr(e, t, n, r = ur, i = /* @__PURE__ */ new Set(), a = !0) {
|
|
3628
|
+
let { units: o, links: s } = vr(e, n, r, i, a), c = await yr(o, s, t) ?? br(o, s, t), l = /* @__PURE__ */ new Map(), u = [], d = 0, f = 0;
|
|
3629
|
+
for (let e of o) {
|
|
3630
|
+
let t = c.get(e.id) ?? {
|
|
3483
3631
|
x: 0,
|
|
3484
3632
|
y: 0
|
|
3485
3633
|
};
|
|
3486
|
-
|
|
3634
|
+
d = Math.max(d, t.x + e.width), f = Math.max(f, t.y + e.height), l.set(e.id, t);
|
|
3487
3635
|
}
|
|
3488
3636
|
for (let t of e.groups) {
|
|
3489
|
-
let e =
|
|
3637
|
+
let e = l.get(t.id) ?? {
|
|
3490
3638
|
x: 0,
|
|
3491
3639
|
y: 0
|
|
3492
3640
|
};
|
|
3493
|
-
|
|
3494
|
-
let
|
|
3495
|
-
if (
|
|
3641
|
+
l.delete(t.id);
|
|
3642
|
+
let o = i.has(t.id), s = _r(t.memberIds.length, n, r, o);
|
|
3643
|
+
if (u.push({
|
|
3496
3644
|
group: t,
|
|
3497
3645
|
...e,
|
|
3498
|
-
...
|
|
3499
|
-
collapsed:
|
|
3500
|
-
}),
|
|
3501
|
-
x: e.x +
|
|
3646
|
+
...s,
|
|
3647
|
+
collapsed: o
|
|
3648
|
+
}), l.set(t.parentId, a ? {
|
|
3649
|
+
x: e.x + pr,
|
|
3502
3650
|
y: e.y + 8
|
|
3503
|
-
}
|
|
3504
|
-
|
|
3651
|
+
} : {
|
|
3652
|
+
...l.get(t.parentId),
|
|
3653
|
+
y: e.y
|
|
3654
|
+
}), o) continue;
|
|
3655
|
+
let c = Math.max(1, Math.min(n, t.memberIds.length));
|
|
3505
3656
|
t.memberIds.forEach((t, n) => {
|
|
3506
|
-
|
|
3507
|
-
x: e.x +
|
|
3508
|
-
y: e.y + 80 + Math.floor(n /
|
|
3657
|
+
l.set(t, {
|
|
3658
|
+
x: e.x + pr + n % c * (r.width + fr),
|
|
3659
|
+
y: e.y + 80 + Math.floor(n / c) * (r.height + fr)
|
|
3509
3660
|
});
|
|
3510
3661
|
});
|
|
3511
3662
|
}
|
|
3512
3663
|
return {
|
|
3513
3664
|
columns: n,
|
|
3514
|
-
positions:
|
|
3515
|
-
frames:
|
|
3516
|
-
width:
|
|
3517
|
-
height:
|
|
3665
|
+
positions: l,
|
|
3666
|
+
frames: u,
|
|
3667
|
+
width: d,
|
|
3668
|
+
height: f
|
|
3518
3669
|
};
|
|
3519
3670
|
}
|
|
3520
|
-
function
|
|
3521
|
-
let r =
|
|
3522
|
-
return /* @__PURE__ */ (0,
|
|
3671
|
+
function Sr({ entry: e, now: t, onSelect: n }) {
|
|
3672
|
+
let r = Mt(e.observed ? e.status : "unknown"), i = On(e.at, t);
|
|
3673
|
+
return /* @__PURE__ */ (0, Z.jsx)("li", { children: /* @__PURE__ */ (0, Z.jsxs)("button", {
|
|
3523
3674
|
type: "button",
|
|
3524
3675
|
disabled: !n,
|
|
3525
3676
|
onClick: () => n?.(e),
|
|
3526
3677
|
title: e.name + ": " + e.label,
|
|
3527
3678
|
children: [
|
|
3528
|
-
/* @__PURE__ */ (0,
|
|
3679
|
+
/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
3529
3680
|
className: "ag-latest-dot",
|
|
3530
3681
|
style: {
|
|
3531
3682
|
background: e.observed ? "var(" + r.token + ")" : "transparent",
|
|
@@ -3533,21 +3684,21 @@ function ar({ entry: e, now: t, onSelect: n }) {
|
|
|
3533
3684
|
},
|
|
3534
3685
|
"aria-hidden": !0
|
|
3535
3686
|
}),
|
|
3536
|
-
/* @__PURE__ */ (0,
|
|
3537
|
-
e.observed && /* @__PURE__ */ (0,
|
|
3687
|
+
/* @__PURE__ */ (0, Z.jsx)("strong", { children: e.name }),
|
|
3688
|
+
e.observed && /* @__PURE__ */ (0, Z.jsxs)("span", {
|
|
3538
3689
|
className: "ag-latest-state",
|
|
3539
3690
|
style: { color: "var(" + r.token + ")" },
|
|
3540
|
-
children: [e.status !== "running" && /* @__PURE__ */ (0,
|
|
3691
|
+
children: [e.status !== "running" && /* @__PURE__ */ (0, Z.jsx)(Nt, {
|
|
3541
3692
|
status: e.status,
|
|
3542
3693
|
size: 14,
|
|
3543
3694
|
"aria-hidden": !0
|
|
3544
3695
|
}), r.label]
|
|
3545
3696
|
}),
|
|
3546
|
-
/* @__PURE__ */ (0,
|
|
3697
|
+
/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
3547
3698
|
className: "ag-latest-label",
|
|
3548
3699
|
children: e.label
|
|
3549
3700
|
}),
|
|
3550
|
-
/* @__PURE__ */ (0,
|
|
3701
|
+
/* @__PURE__ */ (0, Z.jsxs)("time", { children: [
|
|
3551
3702
|
e.observed ? "Observed " : "",
|
|
3552
3703
|
i,
|
|
3553
3704
|
i !== "now" && i !== "—" ? " ago" : ""
|
|
@@ -3555,103 +3706,103 @@ function ar({ entry: e, now: t, onSelect: n }) {
|
|
|
3555
3706
|
]
|
|
3556
3707
|
}) });
|
|
3557
3708
|
}
|
|
3558
|
-
function
|
|
3559
|
-
let
|
|
3709
|
+
function Cr({ agents: e, n: t = 5, now: n, live: r = n === void 0, selectedId: i, onSelect: a }) {
|
|
3710
|
+
let s = zt(n), c = Number.isFinite(t) ? Math.max(1, Math.trunc(t)) : 5, l = (0, o.useMemo)(() => e.flatMap((e) => (e.events ?? []).map((t) => ({
|
|
3560
3711
|
id: e.id + ":" + t.id,
|
|
3561
3712
|
agentId: e.id,
|
|
3562
3713
|
name: e.label,
|
|
3563
3714
|
label: t.label,
|
|
3564
3715
|
at: t.at,
|
|
3565
3716
|
status: e.status
|
|
3566
|
-
}))).sort((e, t) => (Number.isFinite(t.at) ? t.at : -Infinity) - (Number.isFinite(e.at) ? e.at : -Infinity) || e.id.localeCompare(t.id)).slice(0,
|
|
3567
|
-
|
|
3568
|
-
let
|
|
3569
|
-
(0,
|
|
3570
|
-
let t = e.filter((e) =>
|
|
3571
|
-
id: e.id + ":status:" +
|
|
3717
|
+
}))).sort((e, t) => (Number.isFinite(t.at) ? t.at : -Infinity) - (Number.isFinite(e.at) ? e.at : -Infinity) || e.id.localeCompare(t.id)).slice(0, c), [e, c]), [u, d] = (0, o.useState)(l), [f, p] = (0, o.useState)([]), [m, h] = (0, o.useState)(""), [g, _] = (0, o.useState)(!1), [v, y] = (0, o.useState)(!1), b = g || v, x = (0, o.useRef)(l), S = (0, o.useRef)(void 0), C = (0, o.useRef)(void 0), w = (0, o.useRef)(/* @__PURE__ */ new Map());
|
|
3718
|
+
x.current = l;
|
|
3719
|
+
let T = (0, o.useRef)(new Map(e.map((e) => [e.id, e.status])));
|
|
3720
|
+
(0, o.useEffect)(() => {
|
|
3721
|
+
let t = e.filter((e) => T.current.has(e.id) && T.current.get(e.id) !== e.status).map((e) => ({
|
|
3722
|
+
id: e.id + ":status:" + s,
|
|
3572
3723
|
agentId: e.id,
|
|
3573
3724
|
name: e.label,
|
|
3574
3725
|
status: e.status,
|
|
3575
3726
|
label: e.result ?? e.turn ?? "Status changed",
|
|
3576
|
-
at:
|
|
3727
|
+
at: s,
|
|
3577
3728
|
observed: !0
|
|
3578
3729
|
}));
|
|
3579
|
-
if (
|
|
3580
|
-
|
|
3730
|
+
if (T.current = new Map(e.map((e) => [e.id, e.status])), !r) {
|
|
3731
|
+
p((e) => e.length ? [] : e), w.current.clear(), clearTimeout(C.current), C.current = void 0;
|
|
3581
3732
|
return;
|
|
3582
3733
|
}
|
|
3583
3734
|
let n = new Set(e.map((e) => e.id));
|
|
3584
|
-
if (
|
|
3585
|
-
let r = [...t, ...e.filter((e) => n.has(e.agentId) && !t.some((t) => t.agentId === e.agentId))].slice(0,
|
|
3735
|
+
if (p((e) => {
|
|
3736
|
+
let r = [...t, ...e.filter((e) => n.has(e.agentId) && !t.some((t) => t.agentId === e.agentId))].slice(0, c);
|
|
3586
3737
|
return !t.length && r.length === e.length ? e : r;
|
|
3587
3738
|
}), t.length) {
|
|
3588
|
-
for (let e of t)
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
},
|
|
3739
|
+
for (let e of t) w.current.set(e.agentId, e.name + ": " + Mt(e.status).label);
|
|
3740
|
+
C.current === void 0 && (C.current = setTimeout(() => {
|
|
3741
|
+
h([...w.current.values()].join("; ")), w.current.clear(), C.current = void 0;
|
|
3742
|
+
}, bn("--duration-ambient")));
|
|
3592
3743
|
}
|
|
3593
3744
|
}, [
|
|
3594
3745
|
e,
|
|
3595
|
-
o,
|
|
3596
3746
|
s,
|
|
3747
|
+
c,
|
|
3597
3748
|
r
|
|
3598
|
-
]), (0,
|
|
3599
|
-
i &&
|
|
3600
|
-
}, [i]), (0,
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
},
|
|
3604
|
-
}, [
|
|
3605
|
-
clearTimeout(
|
|
3749
|
+
]), (0, o.useEffect)(() => {
|
|
3750
|
+
i && p((e) => e.filter((e) => e.agentId !== i));
|
|
3751
|
+
}, [i]), (0, o.useEffect)(() => {
|
|
3752
|
+
b ? (clearTimeout(S.current), S.current = void 0) : S.current === void 0 && (S.current = setTimeout(() => {
|
|
3753
|
+
d(x.current), S.current = void 0;
|
|
3754
|
+
}, bn("--duration-ambient") / 2));
|
|
3755
|
+
}, [l, b]), (0, o.useEffect)(() => () => {
|
|
3756
|
+
clearTimeout(S.current), clearTimeout(C.current);
|
|
3606
3757
|
}, []);
|
|
3607
|
-
let
|
|
3608
|
-
(0,
|
|
3609
|
-
|
|
3610
|
-
}, [
|
|
3611
|
-
let
|
|
3612
|
-
return /* @__PURE__ */ (0,
|
|
3758
|
+
let E = [...f, ...u.filter((e) => !f.some((t) => t.agentId === e.agentId))].slice(0, c), D = (0, o.useRef)(E);
|
|
3759
|
+
(0, o.useLayoutEffect)(() => {
|
|
3760
|
+
b || (D.current = E);
|
|
3761
|
+
}, [E, b]);
|
|
3762
|
+
let O = b ? D.current : E;
|
|
3763
|
+
return /* @__PURE__ */ (0, Z.jsxs)("section", {
|
|
3613
3764
|
className: "ag-latest",
|
|
3614
3765
|
"aria-label": "Latest activity",
|
|
3615
3766
|
tabIndex: 0,
|
|
3616
|
-
onPointerEnter: () =>
|
|
3617
|
-
onPointerLeave: () =>
|
|
3618
|
-
onFocusCapture: () =>
|
|
3767
|
+
onPointerEnter: () => _(!0),
|
|
3768
|
+
onPointerLeave: () => _(!1),
|
|
3769
|
+
onFocusCapture: () => y(!0),
|
|
3619
3770
|
onBlurCapture: (e) => {
|
|
3620
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
3771
|
+
e.currentTarget.contains(e.relatedTarget) || y(!1);
|
|
3621
3772
|
},
|
|
3622
3773
|
children: [
|
|
3623
|
-
/* @__PURE__ */ (0,
|
|
3624
|
-
/* @__PURE__ */ (0,
|
|
3625
|
-
/* @__PURE__ */ (0,
|
|
3626
|
-
|
|
3774
|
+
/* @__PURE__ */ (0, Z.jsxs)("header", { children: [
|
|
3775
|
+
/* @__PURE__ */ (0, Z.jsx)("strong", { children: "Latest activity" }),
|
|
3776
|
+
/* @__PURE__ */ (0, Z.jsx)("span", { children: b ? "Paused while reading" : "Recorded events · age" }),
|
|
3777
|
+
b && /* @__PURE__ */ (0, Z.jsx)("button", {
|
|
3627
3778
|
type: "button",
|
|
3628
3779
|
onClick: () => {
|
|
3629
|
-
|
|
3780
|
+
d([...x.current]), D.current = [...f, ...x.current.filter((e) => !f.some((t) => t.agentId === e.agentId))].slice(0, c);
|
|
3630
3781
|
},
|
|
3631
3782
|
children: "Show latest"
|
|
3632
3783
|
})
|
|
3633
3784
|
] }),
|
|
3634
|
-
/* @__PURE__ */ (0,
|
|
3785
|
+
/* @__PURE__ */ (0, Z.jsx)("ol", {
|
|
3635
3786
|
tabIndex: 0,
|
|
3636
3787
|
"aria-label": "Recorded activity events",
|
|
3637
|
-
children:
|
|
3788
|
+
children: O.length ? O.map((e) => /* @__PURE__ */ (0, Z.jsx)(Sr, {
|
|
3638
3789
|
entry: e,
|
|
3639
|
-
now:
|
|
3790
|
+
now: s,
|
|
3640
3791
|
onSelect: a ? (e) => {
|
|
3641
|
-
|
|
3792
|
+
p((t) => t.filter((t) => t.agentId !== e.agentId)), a(e.agentId);
|
|
3642
3793
|
} : void 0
|
|
3643
|
-
}, e.id)) : /* @__PURE__ */ (0,
|
|
3794
|
+
}, e.id)) : /* @__PURE__ */ (0, Z.jsx)("li", {
|
|
3644
3795
|
className: "ag-latest-empty",
|
|
3645
3796
|
children: "No activity events were reported."
|
|
3646
3797
|
})
|
|
3647
3798
|
}),
|
|
3648
|
-
/* @__PURE__ */ (0,
|
|
3799
|
+
/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
3649
3800
|
className: "sr-only",
|
|
3650
3801
|
role: "status",
|
|
3651
3802
|
"aria-live": "polite",
|
|
3652
|
-
children:
|
|
3803
|
+
children: m
|
|
3653
3804
|
})
|
|
3654
3805
|
]
|
|
3655
3806
|
});
|
|
3656
3807
|
}
|
|
3657
|
-
export {
|
|
3808
|
+
export { At as $, on as A, Ut as B, Cn as C, dn as D, un as E, hn as F, an as G, Sn as H, mn as I, $t as J, Tn as K, Qt as L, cn as M, pn as N, xn as O, qt as P, jt as Q, en as R, Rn as S, wn as T, bn as U, Q as V, Ht as W, zt as X, Bt as Y, Nt as Z, On as _, Cr as a, Tt as at, kn as b, gr as c, ut as ct, An as d, Ue as dt, Mt as et, Vn as f, c as ft, En as g, Hn as h, dr as i, Et as it, tn as j, rn as k, tr as l, J as lt, zn as m, r as mt, cr as n, Dt as nt, lr as o, Y as ot, Bn as p, a as pt, yn as q, sr as r, X as rt, ar as s, St as st, ur as t, Ct as tt, xr as u, Ge as ut, Dn as v, nn as w, In as x, Fn as y, Wt as z };
|