@praxisjs/devtools 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/assets/uno.generated.css +2 -1
- package/dist/index.d.ts +4 -25
- package/dist/index.js +969 -627
- package/package.json +6 -6
- package/src/__tests__/debug.test.ts +82 -12
- package/src/__tests__/event-bus.test.ts +47 -0
- package/src/__tests__/registry.test.ts +55 -0
- package/src/__tests__/trace.test.ts +51 -0
- package/src/core/event-bus.ts +17 -3
- package/src/decorators/debug.ts +91 -147
- package/src/decorators/trace.ts +39 -36
package/dist/index.js
CHANGED
|
@@ -1,141 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
for (var i = 0, a = r[t >> 1], c = a && a.length; i < c; i++) t & 1 ? a[i].call(e) : n = a[i].call(e, n);
|
|
11
|
-
return n;
|
|
12
|
-
}, l = (r, t, e, n, i, a) => {
|
|
13
|
-
var c, p, g, h, w, u = t & 7, k = !!(t & 8), z = !!(t & 16), j = u > 3 ? r.length + 1 : u ? k ? 1 : 2 : 0, A = He[u + 5], R = u > 3 && (r[j - 1] = []), Rt = r[j] || (r[j] = []), $ = u && (!z && !k && (i = i.prototype), u < 5 && (u > 3 || !z) && qt(u < 4 ? i : { get [e]() {
|
|
14
|
-
return Oe(this, a);
|
|
15
|
-
}, set [e](M) {
|
|
16
|
-
return Fe(this, a, M);
|
|
17
|
-
} }, e));
|
|
18
|
-
u ? z && u < 4 && Ue(a, (u > 2 ? "set " : u > 1 ? "get " : "") + e) : Ue(i, e);
|
|
19
|
-
for (var de = n.length - 1; de >= 0; de--)
|
|
20
|
-
h = Xt(u, e, g = {}, r[3], Rt), u && (h.static = k, h.private = z, w = h.access = { has: z ? (M) => Zt(i, M) : (M) => e in M }, u ^ 3 && (w.get = z ? (M) => (u ^ 1 ? Oe : Qt)(M, i, u ^ 4 ? a : $.get) : (M) => M[e]), u > 2 && (w.set = z ? (M, ue) => Fe(M, i, ue, u ^ 4 ? a : $.set) : (M, ue) => M[e] = ue)), p = (0, n[de])(u ? u < 4 ? z ? a : $[A] : u > 4 ? void 0 : { get: $.get, set: $.set } : i, h), g._ = 1, u ^ 4 || p === void 0 ? T(p) && (u > 4 ? R.unshift(p) : u ? z ? a = p : $[A] = p : i = p) : typeof p != "object" || p === null ? q("Object expected") : (T(c = p.get) && ($.get = c), T(c = p.set) && ($.set = c), T(c = p.init) && R.unshift(c));
|
|
21
|
-
return u || Kt(r, i), $ && pe(i, e, $), z ? u ^ 4 ? a : $ : i;
|
|
22
|
-
}, f = (r, t, e) => Be(r, typeof t != "symbol" ? t + "" : t, e), he = (r, t, e) => t.has(r) || q("Cannot " + e), Zt = (r, t) => Object(t) !== t ? q('Cannot use the "in" operator on this value') : r.has(t), Oe = (r, t, e) => (he(r, t, "read from private field"), e ? e.call(r) : t.get(r));
|
|
23
|
-
var Fe = (r, t, e, n) => (he(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e), Qt = (r, t, e) => (he(r, t, "access private method"), e);
|
|
24
|
-
import { jsxs as d, jsx as o } from "@praxisjs/jsx/jsx-runtime";
|
|
25
|
-
import { StatelessComponent as y, StatefulComponent as J } from "@praxisjs/core";
|
|
26
|
-
import { Component as m, State as C, Prop as Z, Emit as Vt } from "@praxisjs/decorators";
|
|
27
|
-
import { render as Ge } from "@praxisjs/runtime";
|
|
28
|
-
import { computed as Pt } from "@praxisjs/core/internal";
|
|
29
|
-
const Jt = "data:image/svg+xml,%3csvg%20width='1024'%20height='1024'%20viewBox='0%200%201024%201024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M605.411%20445.66L641.322%20498.293L641.342%20498.278L697.538%20578.57L742.673%20512.806L512.5%20178.878L281.327%20512.806L512.5%20848.182L603.519%20715.561L650.559%20782.134L512.701%20983L187%20510.478L512.701%2040L837%20510.478L698.206%20712.709L668.895%20671.104L604.033%20578.775L512%20712.504L373.199%20511.5L512.233%20309.092L584.13%20414.469L536.746%20480.456L513.69%20445.66L466.305%20511.5L512.166%20577.425L556.48%20513.91L605.411%20445.66Z'%20fill='url(%23paint0_linear_3024_20)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_3024_20'%20x1='512'%20y1='40'%20x2='512'%20y2='983'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%239B76FF'%20stop-opacity='0.86'/%3e%3cstop%20offset='1'%20stop-color='%232D246B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", en = '*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:host{all:initial;display:block;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}input::placeholder{color:#6f6a8f}input:focus{outline:none;box-shadow:0 0 0 2px #9b90e64d}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#9b90e633;border-radius:2px}::-webkit-scrollbar-thumb:hover{background:#9b90e666}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.right-0{right:0}.right-5{right:1.25rem}.top-0{top:0}.top-full{top:100%}.z-\\[2147483647\\]{z-index:2147483647}.z-10{z-index:10}.grid{display:grid}.grid-cols-\\[1\\.2fr_0\\.8fr_1fr_auto\\]{grid-template-columns:1.2fr .8fr 1fr auto}.m6{margin:1.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mr-\\[2px\\]{margin-right:2px}.ms{margin-inline-start:1rem}.mt-1{margin-top:.25rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.h-\\[13px\\]{height:13px}.h-\\[22px\\]{height:22px}.h-\\[2px\\]{height:2px}.h-\\[32px\\]{height:32px}.h-\\[6px\\]{height:6px}.h-1,.h1{height:.25rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-7{height:1.75rem}.h-full{height:100%}.h-screen{height:100vh}.h2{height:.5rem}.max-w-\\[200px\\]{max-width:200px}.min-w-0{min-width:0}.w-\\[13px\\]{width:13px}.w-\\[22px\\]{width:22px}.w-\\[2px\\]{width:2px}.w-\\[6px\\]{width:6px}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-4{width:1rem}.w-full{width:100%}.w-px{width:1px}.flex{display:flex}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.cursor-\\[ew-resize\\]{cursor:ew-resize}.cursor-\\[ns-resize\\]{cursor:ns-resize}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[2px\\]{gap:2px}.gap-\\[3px\\]{gap:3px}.gap-\\[6px\\]{gap:6px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b,.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-border{--un-border-opacity:.25;border-color:rgba(155,144,230,var(--un-border-opacity))}.border-warn{--un-border-opacity:1;border-color:rgb(217 119 6 / var(--un-border-opacity))}.hover\\:border-accent:hover{--un-border-opacity:1;border-color:rgb(155 144 230 / var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.bg-\\[rgba\\(124\\,109\\,214\\,0\\.14\\)\\]{--un-bg-opacity:.14;background-color:rgba(124,109,214,var(--un-bg-opacity))}.bg-\\[rgba\\(14\\,165\\,122\\,0\\.14\\)\\]{--un-bg-opacity:.14;background-color:rgba(14,165,122,var(--un-bg-opacity))}.bg-\\[rgba\\(155\\,144\\,230\\,0\\.14\\)\\]{--un-bg-opacity:.14;background-color:rgba(155,144,230,var(--un-bg-opacity))}.bg-\\[rgba\\(217\\,119\\,6\\,0\\.14\\)\\]{--un-bg-opacity:.14;background-color:rgba(217,119,6,var(--un-bg-opacity))}.bg-\\[rgba\\(220\\,38\\,38\\,0\\.14\\)\\]{--un-bg-opacity:.14;background-color:rgba(220,38,38,var(--un-bg-opacity))}.bg-\\[rgba\\(74\\,222\\,128\\,0\\.12\\)\\]{--un-bg-opacity:.12;background-color:rgba(74,222,128,var(--un-bg-opacity))}.bg-accent{--un-bg-opacity:1;background-color:rgb(155 144 230 / var(--un-bg-opacity))}.bg-bg{--un-bg-opacity:1;background-color:rgb(15 13 23 / var(--un-bg-opacity))}.bg-border{--un-bg-opacity:.25;background-color:rgba(155,144,230,var(--un-bg-opacity))}.bg-header{--un-bg-opacity:1;background-color:rgb(22 19 38 / var(--un-bg-opacity))}.bg-input,.bg-section{--un-bg-opacity:1;background-color:rgb(27 24 48 / var(--un-bg-opacity))}.bg-selected{--un-bg-opacity:1;background-color:rgb(34 30 61 / var(--un-bg-opacity))}.bg-soft{--un-bg-opacity:.18;background-color:rgba(155,144,230,var(--un-bg-opacity))}.bg-subtle{--un-bg-opacity:1;background-color:rgb(111 106 143 / var(--un-bg-opacity))}.bg-success{--un-bg-opacity:1;background-color:rgb(14 165 122 / var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.hover\\:bg-accent:hover{--un-bg-opacity:1;background-color:rgb(155 144 230 / var(--un-bg-opacity))}.hover\\:bg-section:hover{--un-bg-opacity:1;background-color:rgb(27 24 48 / var(--un-bg-opacity))}.hover\\:bg-soft:hover{--un-bg-opacity:.18;background-color:rgba(155,144,230,var(--un-bg-opacity))}.p-1{padding:.25rem}.px{padding-left:1rem;padding-right:1rem}.px-\\[6px\\]{padding-left:6px;padding-right:6px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-\\[2px\\]{padding-top:2px;padding-bottom:2px}.py-\\[3px\\]{padding-top:3px;padding-bottom:3px}.py-\\[4px\\]{padding-top:4px;padding-bottom:4px}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pl-\\[10px\\]{padding-left:10px}.pl-\\[56px\\]{padding-left:56px}.pl-1{padding-left:.25rem}.pr-\\[14px\\]{padding-right:14px}.pr-3{padding-right:.75rem}.text-center{text-align:center}.text-right{text-align:right}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[20px\\]{font-size:20px}.text-\\[9px\\]{font-size:9px}.text-\\[\\#0ea57a\\]{--un-text-opacity:1;color:rgb(14 165 122 / var(--un-text-opacity))}.text-\\[\\#4ade80\\]{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.text-\\[\\#7c6dd6\\]{--un-text-opacity:1;color:rgb(124 109 214 / var(--un-text-opacity))}.text-\\[\\#9b90e6\\],.text-accent{--un-text-opacity:1;color:rgb(155 144 230 / var(--un-text-opacity))}.text-\\[\\#d97706\\],.text-warn{--un-text-opacity:1;color:rgb(217 119 6 / var(--un-text-opacity))}.text-\\[\\#dc2626\\]{--un-text-opacity:1;color:rgb(220 38 38 / var(--un-text-opacity))}.text-muted{--un-text-opacity:1;color:rgb(199 195 230 / var(--un-text-opacity))}.text-subtle{--un-text-opacity:1;color:rgb(111 106 143 / var(--un-text-opacity))}.text-text,.hover\\:text-text:hover{--un-text-opacity:1;color:rgb(244 242 255 / var(--un-text-opacity))}.color-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.hover\\:color-muted:hover{--un-text-opacity:1;color:rgb(199 195 230 / var(--un-text-opacity))}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-\\[0\\.07em\\]{letter-spacing:.07em}.tracking-\\[0\\.12em\\]{letter-spacing:.12em}.tracking-widest{letter-spacing:.1em}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.uppercase{text-transform:uppercase}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-\\[0_8px_32px_rgba\\(0\\,0\\,0\\,0\\.7\\)\\]{--un-shadow:0 8px 32px var(--un-shadow-color, rgba(0, 0, 0, .7));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.hover\\:shadow-\\[0_8px_32px_rgba\\(56\\,189\\,248\\,0\\.1\\)\\]:hover{--un-shadow:0 8px 32px var(--un-shadow-color, rgba(56, 189, 248, .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}';
|
|
30
|
-
class tn {
|
|
31
|
-
handlers = /* @__PURE__ */ new Map();
|
|
32
|
-
on(t, e) {
|
|
33
|
-
return this.handlers.has(t) || this.handlers.set(t, /* @__PURE__ */ new Set()), this.handlers.get(t).add(e), () => this.handlers.get(t)?.delete(e);
|
|
1
|
+
import { jsxs as f, jsx as u } from "@praxisjs/jsx/jsx-runtime";
|
|
2
|
+
import { StatelessComponent as k, StatefulComponent as K } from "@praxisjs/core";
|
|
3
|
+
import { Component as x, State as O, Prop as ie, Emit as Tn, createMethodDecorator as jn, createGetterObserverDecorator as Fn, createFieldDecorator as Ln, ClassBehavior as An, createClassDecorator as Nn } from "@praxisjs/decorators";
|
|
4
|
+
import { render as Ft } from "@praxisjs/runtime";
|
|
5
|
+
import { computed as Bn } from "@praxisjs/core/internal";
|
|
6
|
+
const ir = "data:image/svg+xml,%3csvg%20width='1024'%20height='1024'%20viewBox='0%200%201024%201024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M605.411%20445.66L641.322%20498.293L641.342%20498.278L697.538%20578.57L742.673%20512.806L512.5%20178.878L281.327%20512.806L512.5%20848.182L603.519%20715.561L650.559%20782.134L512.701%20983L187%20510.478L512.701%2040L837%20510.478L698.206%20712.709L668.895%20671.104L604.033%20578.775L512%20712.504L373.199%20511.5L512.233%20309.092L584.13%20414.469L536.746%20480.456L513.69%20445.66L466.305%20511.5L512.166%20577.425L556.48%20513.91L605.411%20445.66Z'%20fill='url(%23paint0_linear_3024_20)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_3024_20'%20x1='512'%20y1='40'%20x2='512'%20y2='983'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%239B76FF'%20stop-opacity='0.86'/%3e%3cstop%20offset='1'%20stop-color='%232D246B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Rn = '*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:host{all:initial;display:block;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}input::placeholder{color:#6f6a8f}input:focus{outline:none;box-shadow:0 0 0 2px #9b90e64d}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#9b90e633;border-radius:2px}::-webkit-scrollbar-thumb:hover{background:#9b90e666}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.right-0{right:0}.right-5{right:1.25rem}.top-0{top:0}.top-full{top:100%}.z-\\[2147483647\\]{z-index:2147483647}.z-10{z-index:10}.grid{display:grid}.grid-cols-\\[1\\.2fr_0\\.8fr_1fr_auto\\]{grid-template-columns:1.2fr .8fr 1fr auto}.m6{margin:1.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mr-\\[2px\\]{margin-right:2px}.ms{margin-inline-start:1rem}.mt-1{margin-top:.25rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.h-\\[13px\\]{height:13px}.h-\\[22px\\]{height:22px}.h-\\[2px\\]{height:2px}.h-\\[32px\\]{height:32px}.h-\\[6px\\]{height:6px}.h-1,.h1{height:.25rem}.h-10{height:2.5rem}.h-3,.h3{height:.75rem}.h-7{height:1.75rem}.h-full{height:100%}.h-screen{height:100vh}.h2{height:.5rem}.max-w-\\[200px\\]{max-width:200px}.min-w-0{min-width:0}.w-\\[13px\\]{width:13px}.w-\\[22px\\]{width:22px}.w-\\[2px\\]{width:2px}.w-\\[6px\\]{width:6px}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-4{width:1rem}.w-full{width:100%}.w-px{width:1px}.flex{display:flex}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.cursor-\\[ew-resize\\]{cursor:ew-resize}.cursor-\\[ns-resize\\]{cursor:ns-resize}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[2px\\]{gap:2px}.gap-\\[3px\\]{gap:3px}.gap-\\[6px\\]{gap:6px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b,.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-border{--un-border-opacity:.25;border-color:rgba(155,144,230,var(--un-border-opacity))}.border-warn{--un-border-opacity:1;border-color:rgb(217 119 6 / var(--un-border-opacity))}.hover\\:border-accent:hover{--un-border-opacity:1;border-color:rgb(155 144 230 / var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.bg-\\[rgba\\(124\\,109\\,214\\,0\\.14\\)\\]{--un-bg-opacity:.14;background-color:rgba(124,109,214,var(--un-bg-opacity))}.bg-\\[rgba\\(14\\,165\\,122\\,0\\.14\\)\\]{--un-bg-opacity:.14;background-color:rgba(14,165,122,var(--un-bg-opacity))}.bg-\\[rgba\\(155\\,144\\,230\\,0\\.14\\)\\]{--un-bg-opacity:.14;background-color:rgba(155,144,230,var(--un-bg-opacity))}.bg-\\[rgba\\(217\\,119\\,6\\,0\\.14\\)\\]{--un-bg-opacity:.14;background-color:rgba(217,119,6,var(--un-bg-opacity))}.bg-\\[rgba\\(220\\,38\\,38\\,0\\.14\\)\\]{--un-bg-opacity:.14;background-color:rgba(220,38,38,var(--un-bg-opacity))}.bg-\\[rgba\\(74\\,222\\,128\\,0\\.12\\)\\]{--un-bg-opacity:.12;background-color:rgba(74,222,128,var(--un-bg-opacity))}.bg-accent{--un-bg-opacity:1;background-color:rgb(155 144 230 / var(--un-bg-opacity))}.bg-bg{--un-bg-opacity:1;background-color:rgb(15 13 23 / var(--un-bg-opacity))}.bg-border{--un-bg-opacity:.25;background-color:rgba(155,144,230,var(--un-bg-opacity))}.bg-header{--un-bg-opacity:1;background-color:rgb(22 19 38 / var(--un-bg-opacity))}.bg-input,.bg-section{--un-bg-opacity:1;background-color:rgb(27 24 48 / var(--un-bg-opacity))}.bg-selected{--un-bg-opacity:1;background-color:rgb(34 30 61 / var(--un-bg-opacity))}.bg-soft{--un-bg-opacity:.18;background-color:rgba(155,144,230,var(--un-bg-opacity))}.bg-subtle{--un-bg-opacity:1;background-color:rgb(111 106 143 / var(--un-bg-opacity))}.bg-success{--un-bg-opacity:1;background-color:rgb(14 165 122 / var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.hover\\:bg-accent:hover{--un-bg-opacity:1;background-color:rgb(155 144 230 / var(--un-bg-opacity))}.hover\\:bg-section:hover{--un-bg-opacity:1;background-color:rgb(27 24 48 / var(--un-bg-opacity))}.hover\\:bg-soft:hover{--un-bg-opacity:.18;background-color:rgba(155,144,230,var(--un-bg-opacity))}.p-1{padding:.25rem}.px{padding-left:1rem;padding-right:1rem}.px-\\[6px\\]{padding-left:6px;padding-right:6px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-\\[2px\\]{padding-top:2px;padding-bottom:2px}.py-\\[3px\\]{padding-top:3px;padding-bottom:3px}.py-\\[4px\\]{padding-top:4px;padding-bottom:4px}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pl-\\[10px\\]{padding-left:10px}.pl-\\[56px\\]{padding-left:56px}.pl-1{padding-left:.25rem}.pr-\\[14px\\]{padding-right:14px}.pr-3{padding-right:.75rem}.text-center{text-align:center}.text-right{text-align:right}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[20px\\]{font-size:20px}.text-\\[9px\\]{font-size:9px}.text-\\[\\#0ea57a\\]{--un-text-opacity:1;color:rgb(14 165 122 / var(--un-text-opacity))}.text-\\[\\#4ade80\\]{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.text-\\[\\#7c6dd6\\]{--un-text-opacity:1;color:rgb(124 109 214 / var(--un-text-opacity))}.text-\\[\\#9b90e6\\],.text-accent{--un-text-opacity:1;color:rgb(155 144 230 / var(--un-text-opacity))}.text-\\[\\#d97706\\],.text-warn{--un-text-opacity:1;color:rgb(217 119 6 / var(--un-text-opacity))}.text-\\[\\#dc2626\\]{--un-text-opacity:1;color:rgb(220 38 38 / var(--un-text-opacity))}.text-muted{--un-text-opacity:1;color:rgb(199 195 230 / var(--un-text-opacity))}.text-subtle{--un-text-opacity:1;color:rgb(111 106 143 / var(--un-text-opacity))}.text-text,.hover\\:text-text:hover{--un-text-opacity:1;color:rgb(244 242 255 / var(--un-text-opacity))}.color-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.hover\\:color-muted:hover{--un-text-opacity:1;color:rgb(199 195 230 / var(--un-text-opacity))}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-\\[0\\.07em\\]{letter-spacing:.07em}.tracking-\\[0\\.12em\\]{letter-spacing:.12em}.tracking-widest{letter-spacing:.1em}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.uppercase{text-transform:uppercase}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-\\[0_8px_32px_rgba\\(0\\,0\\,0\\,0\\.7\\)\\]{--un-shadow:0 8px 32px var(--un-shadow-color, rgba(0, 0, 0, .7));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.hover\\:shadow-\\[0_8px_32px_rgba\\(56\\,189\\,248\\,0\\.1\\)\\]:hover{--un-shadow:0 8px 32px var(--un-shadow-color, rgba(56, 189, 248, .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}';
|
|
7
|
+
class Un {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.handlers = /* @__PURE__ */ new Map();
|
|
34
10
|
}
|
|
35
|
-
|
|
36
|
-
this.handlers.get(t)
|
|
37
|
-
|
|
38
|
-
|
|
11
|
+
on(t, r) {
|
|
12
|
+
return this.handlers.has(t) || this.handlers.set(t, /* @__PURE__ */ new Set()), this.handlers.get(t).add(r), () => this.handlers.get(t)?.delete(r);
|
|
13
|
+
}
|
|
14
|
+
emit(t, r) {
|
|
15
|
+
const n = this.handlers.get(t);
|
|
16
|
+
if (!n) return;
|
|
17
|
+
const o = [];
|
|
18
|
+
for (const i of n)
|
|
19
|
+
try {
|
|
20
|
+
i(r);
|
|
21
|
+
} catch (s) {
|
|
22
|
+
o.push(s);
|
|
23
|
+
}
|
|
24
|
+
if (o.length === 1)
|
|
25
|
+
throw o[0];
|
|
26
|
+
if (o.length > 1)
|
|
27
|
+
throw new AggregateError(o, "Multiple event handler errors");
|
|
39
28
|
}
|
|
40
29
|
}
|
|
41
|
-
const
|
|
42
|
-
let
|
|
43
|
-
function
|
|
44
|
-
return `v${(++
|
|
30
|
+
const Gn = 200;
|
|
31
|
+
let Hn = 0;
|
|
32
|
+
function Lt() {
|
|
33
|
+
return `v${(++Hn).toString()}_${Date.now().toString(36)}`;
|
|
45
34
|
}
|
|
46
|
-
class
|
|
47
|
-
|
|
35
|
+
const H = class H {
|
|
36
|
+
constructor() {
|
|
37
|
+
this.bus = new Un(), this.instanceIds = /* @__PURE__ */ new WeakMap(), this.signals = /* @__PURE__ */ new Map(), this.components = /* @__PURE__ */ new Map(), this.timeline = [];
|
|
38
|
+
}
|
|
48
39
|
static get instance() {
|
|
49
|
-
return
|
|
40
|
+
return H._instance ??= new H(), H._instance;
|
|
50
41
|
}
|
|
51
|
-
bus = new tn();
|
|
52
|
-
instanceIds = /* @__PURE__ */ new WeakMap();
|
|
53
|
-
signals = /* @__PURE__ */ new Map();
|
|
54
|
-
components = /* @__PURE__ */ new Map();
|
|
55
|
-
timeline = [];
|
|
56
42
|
getInstanceId(t) {
|
|
57
|
-
return this.instanceIds.has(t) || this.instanceIds.set(t,
|
|
43
|
+
return this.instanceIds.has(t) || this.instanceIds.set(t, Lt()), this.instanceIds.get(t);
|
|
58
44
|
}
|
|
59
|
-
registerSignal(t,
|
|
60
|
-
const
|
|
61
|
-
id:
|
|
62
|
-
label:
|
|
63
|
-
componentId:
|
|
64
|
-
componentName:
|
|
45
|
+
registerSignal(t, r, n, o) {
|
|
46
|
+
const i = this.getInstanceId(t), s = `${i}:${r}`, c = {
|
|
47
|
+
id: s,
|
|
48
|
+
label: r,
|
|
49
|
+
componentId: i,
|
|
50
|
+
componentName: o,
|
|
65
51
|
value: n,
|
|
66
52
|
history: [{ value: n, timestamp: Date.now() }],
|
|
67
53
|
changedAt: Date.now()
|
|
68
54
|
};
|
|
69
|
-
this.signals.set(
|
|
55
|
+
this.signals.set(s, c), this.bus.emit("signal:registered", c);
|
|
70
56
|
}
|
|
71
|
-
updateSignal(t,
|
|
72
|
-
const
|
|
73
|
-
if (!
|
|
74
|
-
const
|
|
75
|
-
...
|
|
57
|
+
updateSignal(t, r, n, o) {
|
|
58
|
+
const s = `${this.getInstanceId(t)}:${r}`, c = this.signals.get(s);
|
|
59
|
+
if (!c) return;
|
|
60
|
+
const h = [
|
|
61
|
+
...c.history,
|
|
76
62
|
{ value: n, timestamp: Date.now() }
|
|
77
|
-
].slice(-20),
|
|
78
|
-
...
|
|
63
|
+
].slice(-20), l = {
|
|
64
|
+
...c,
|
|
79
65
|
value: n,
|
|
80
|
-
history:
|
|
66
|
+
history: h,
|
|
81
67
|
changedAt: Date.now()
|
|
82
68
|
};
|
|
83
|
-
this.signals.set(
|
|
69
|
+
this.signals.set(s, l), this.bus.emit("signal:changed", { entry: l, oldValue: o }), this.pushTimeline({
|
|
84
70
|
type: "signal:change",
|
|
85
|
-
label: `${
|
|
86
|
-
data: { old:
|
|
71
|
+
label: `${c.componentName}.${r}`,
|
|
72
|
+
data: { old: o, new: n, signalId: s }
|
|
87
73
|
});
|
|
88
74
|
}
|
|
89
|
-
registerComponent(t,
|
|
90
|
-
const n = this.getInstanceId(t),
|
|
75
|
+
registerComponent(t, r) {
|
|
76
|
+
const n = this.getInstanceId(t), o = {
|
|
91
77
|
id: n,
|
|
92
|
-
name:
|
|
78
|
+
name: r,
|
|
93
79
|
renderCount: 0,
|
|
94
80
|
lastRenderDuration: 0,
|
|
95
81
|
mountedAt: Date.now(),
|
|
96
82
|
status: "mounted",
|
|
97
83
|
lifecycle: []
|
|
98
84
|
};
|
|
99
|
-
this.components.set(n,
|
|
85
|
+
this.components.set(n, o), this.bus.emit("component:registered", o);
|
|
100
86
|
}
|
|
101
|
-
recordRender(t,
|
|
102
|
-
const n = this.getInstanceId(t),
|
|
103
|
-
|
|
87
|
+
recordRender(t, r) {
|
|
88
|
+
const n = this.getInstanceId(t), o = this.components.get(n);
|
|
89
|
+
o && (o.renderCount++, o.lastRenderDuration = r, this.bus.emit("component:render", { ...o }), this.pushTimeline({
|
|
104
90
|
type: "component:render",
|
|
105
|
-
label: `<${
|
|
91
|
+
label: `<${o.name}>`,
|
|
106
92
|
data: {
|
|
107
93
|
componentId: n,
|
|
108
|
-
duration: +
|
|
109
|
-
renderCount:
|
|
94
|
+
duration: +r.toFixed(3),
|
|
95
|
+
renderCount: o.renderCount
|
|
110
96
|
}
|
|
111
97
|
}));
|
|
112
98
|
}
|
|
113
|
-
recordLifecycle(t,
|
|
114
|
-
const n = this.getInstanceId(t),
|
|
115
|
-
if (!
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
const
|
|
99
|
+
recordLifecycle(t, r) {
|
|
100
|
+
const n = this.getInstanceId(t), o = this.components.get(n);
|
|
101
|
+
if (!o) return;
|
|
102
|
+
const i = { hook: r, timestamp: Date.now() };
|
|
103
|
+
o.lifecycle.push(i), this.bus.emit("lifecycle", { componentId: n, name: o.name, hook: r });
|
|
104
|
+
const s = r === "onUnmount" ? "component:unmount" : r === "onBeforeMount" ? "component:mount" : "lifecycle";
|
|
119
105
|
if (this.pushTimeline({
|
|
120
|
-
type:
|
|
121
|
-
label: `<${
|
|
122
|
-
data: { componentId: n, hook:
|
|
123
|
-
}),
|
|
124
|
-
|
|
125
|
-
for (const [
|
|
126
|
-
|
|
106
|
+
type: s,
|
|
107
|
+
label: `<${o.name}>.${r}`,
|
|
108
|
+
data: { componentId: n, hook: r }
|
|
109
|
+
}), r === "onUnmount") {
|
|
110
|
+
o.status = "unmounted", this.bus.emit("component:unmount", { ...o }), this.components.delete(n);
|
|
111
|
+
for (const [c, h] of this.signals)
|
|
112
|
+
h.componentId === n && this.signals.delete(c);
|
|
127
113
|
}
|
|
128
114
|
}
|
|
129
|
-
recordMethodCall(t,
|
|
130
|
-
const
|
|
115
|
+
recordMethodCall(t, r, n, o, i, s) {
|
|
116
|
+
const c = this.getInstanceId(t);
|
|
131
117
|
this.pushTimeline({
|
|
132
118
|
type: "method:call",
|
|
133
|
-
label: `${
|
|
119
|
+
label: `${s}.${r}()`,
|
|
134
120
|
data: {
|
|
135
|
-
componentId:
|
|
121
|
+
componentId: c,
|
|
136
122
|
args: n,
|
|
137
|
-
result:
|
|
138
|
-
duration: +
|
|
123
|
+
result: o,
|
|
124
|
+
duration: +i.toFixed(3)
|
|
139
125
|
}
|
|
140
126
|
});
|
|
141
127
|
}
|
|
@@ -149,91 +135,156 @@ class v {
|
|
|
149
135
|
return [...this.timeline];
|
|
150
136
|
}
|
|
151
137
|
getSignalsByComponent(t) {
|
|
152
|
-
return this.getSignals().filter((
|
|
138
|
+
return this.getSignals().filter((r) => r.componentId === t);
|
|
153
139
|
}
|
|
154
140
|
pushTimeline(t) {
|
|
155
|
-
const
|
|
156
|
-
id:
|
|
141
|
+
const r = {
|
|
142
|
+
id: Lt(),
|
|
157
143
|
timestamp: Date.now(),
|
|
158
144
|
...t
|
|
159
145
|
};
|
|
160
|
-
this.timeline.push(
|
|
146
|
+
this.timeline.push(r), this.timeline.length > Gn && this.timeline.shift(), this.bus.emit("timeline:push", r);
|
|
161
147
|
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
148
|
+
};
|
|
149
|
+
H._instance = null;
|
|
150
|
+
let I = H;
|
|
151
|
+
var Xn = Object.create, Fe = Object.defineProperty, Wn = Object.getOwnPropertyDescriptor, ar = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), sr = (e) => {
|
|
152
|
+
throw TypeError(e);
|
|
153
|
+
}, Yn = (e, t, r) => t in e ? Fe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => Fe(e, "name", { value: t, configurable: !0 }), qn = (e) => [, , , Xn(e?.[ar("metadata")] ?? null)], Kn = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], lr = (e) => e !== void 0 && typeof e != "function" ? sr("Function expected") : e, Zn = (e, t, r, n, o) => ({ kind: Kn[e], name: t, metadata: n, addInitializer: (i) => r._ ? sr("Already initialized") : o.push(lr(i || null)) }), Qn = (e, t) => Yn(t, ar("metadata"), e[3]), Vn = (e, t, r, n) => {
|
|
154
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
155
|
+
return n;
|
|
156
|
+
}, ei = (e, t, r, n, o, i) => {
|
|
157
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Wn(o, r));
|
|
158
|
+
Jn(o, r);
|
|
159
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
160
|
+
h = Zn(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, lr(s) && (o = s);
|
|
161
|
+
return Qn(e, o), d && Fe(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
162
|
+
}, cr, Le, dr;
|
|
163
|
+
cr = [x()];
|
|
164
|
+
class Y extends (dr = k) {
|
|
166
165
|
render() {
|
|
167
|
-
return /* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
166
|
+
return /* @__PURE__ */ f("div", { class: "flex flex-col items-center justify-center gap-2 py-12", children: [
|
|
167
|
+
/* @__PURE__ */ u("span", { class: "text-subtle text-[20px] leading-none select-none font-mono", children: "—" }),
|
|
168
|
+
/* @__PURE__ */ u("p", { class: "text-subtle text-[11px] text-center leading-relaxed max-w-[200px]", children: this.props.message })
|
|
170
169
|
] });
|
|
171
170
|
}
|
|
172
171
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
Le = qn(dr);
|
|
173
|
+
Y = ei(Le, 0, "EmptyState", cr, Y);
|
|
174
|
+
Vn(Le, 1, Y);
|
|
175
|
+
var ti = Object.create, Ae = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, pr = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), ur = (e) => {
|
|
176
|
+
throw TypeError(e);
|
|
177
|
+
}, oi = (e, t, r) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ni = (e, t) => Ae(e, "name", { value: t, configurable: !0 }), ii = (e) => [, , , ti(e?.[pr("metadata")] ?? null)], ai = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], hr = (e) => e !== void 0 && typeof e != "function" ? ur("Function expected") : e, si = (e, t, r, n, o) => ({ kind: ai[e], name: t, metadata: n, addInitializer: (i) => r._ ? ur("Already initialized") : o.push(hr(i || null)) }), li = (e, t) => oi(t, pr("metadata"), e[3]), ci = (e, t, r, n) => {
|
|
178
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
179
|
+
return n;
|
|
180
|
+
}, di = (e, t, r, n, o, i) => {
|
|
181
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && ri(o, r));
|
|
182
|
+
ni(o, r);
|
|
183
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
184
|
+
h = si(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, hr(s) && (o = s);
|
|
185
|
+
return li(e, o), d && Ae(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
186
|
+
}, _r, Ne, vr;
|
|
187
|
+
_r = [x()];
|
|
188
|
+
class ae extends (vr = k) {
|
|
177
189
|
render() {
|
|
178
|
-
const { children: t, width:
|
|
179
|
-
return /* @__PURE__ */
|
|
190
|
+
const { children: t, width: r = "280px" } = this.props;
|
|
191
|
+
return /* @__PURE__ */ u(
|
|
180
192
|
"div",
|
|
181
193
|
{
|
|
182
194
|
class: "shrink-0 border-l border-border flex flex-col overflow-hidden",
|
|
183
|
-
style: { width:
|
|
195
|
+
style: { width: r },
|
|
184
196
|
children: t
|
|
185
197
|
}
|
|
186
198
|
);
|
|
187
199
|
}
|
|
188
200
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
if (
|
|
194
|
-
if (
|
|
201
|
+
Ne = ii(vr);
|
|
202
|
+
ae = di(Ne, 0, "SidePanel", _r, ae);
|
|
203
|
+
ci(Ne, 1, ae);
|
|
204
|
+
function Be(e) {
|
|
205
|
+
if (e === null) return "null";
|
|
206
|
+
if (e === void 0) return "undefined";
|
|
207
|
+
if (typeof e == "string") return `"${e}"`;
|
|
208
|
+
if (typeof e == "object")
|
|
195
209
|
try {
|
|
196
|
-
return JSON.stringify(
|
|
210
|
+
return JSON.stringify(e);
|
|
197
211
|
} catch {
|
|
198
212
|
return "[object]";
|
|
199
213
|
}
|
|
200
|
-
return String(
|
|
214
|
+
return String(e);
|
|
201
215
|
}
|
|
202
|
-
var
|
|
203
|
-
|
|
204
|
-
class
|
|
216
|
+
var pi = Object.create, Re = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, br = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), gr = (e) => {
|
|
217
|
+
throw TypeError(e);
|
|
218
|
+
}, hi = (e, t, r) => t in e ? Re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _i = (e, t) => Re(e, "name", { value: t, configurable: !0 }), vi = (e) => [, , , pi(e?.[br("metadata")] ?? null)], bi = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], fr = (e) => e !== void 0 && typeof e != "function" ? gr("Function expected") : e, gi = (e, t, r, n, o) => ({ kind: bi[e], name: t, metadata: n, addInitializer: (i) => r._ ? gr("Already initialized") : o.push(fr(i || null)) }), fi = (e, t) => hi(t, br("metadata"), e[3]), mi = (e, t, r, n) => {
|
|
219
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
220
|
+
return n;
|
|
221
|
+
}, xi = (e, t, r, n, o, i) => {
|
|
222
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && ui(o, r));
|
|
223
|
+
_i(o, r);
|
|
224
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
225
|
+
h = gi(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, fr(s) && (o = s);
|
|
226
|
+
return fi(e, o), d && Re(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
227
|
+
}, mr, Ue, xr;
|
|
228
|
+
mr = [x()];
|
|
229
|
+
class R extends (xr = k) {
|
|
205
230
|
render() {
|
|
206
|
-
const { k: t, v:
|
|
207
|
-
return /* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
231
|
+
const { k: t, v: r, signal: n } = this.props;
|
|
232
|
+
return /* @__PURE__ */ f("div", { class: "flex justify-between items-center px-3 py-2 border-b border-border gap-3", children: [
|
|
233
|
+
/* @__PURE__ */ u(
|
|
209
234
|
"span",
|
|
210
235
|
{
|
|
211
236
|
class: `text-[11px] font-mono shrink-0 ${n ? "text-accent" : "text-muted"}`,
|
|
212
237
|
children: t
|
|
213
238
|
}
|
|
214
239
|
),
|
|
215
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ u("span", { class: "text-[11px] text-text font-mono truncate text-right", children: r })
|
|
216
241
|
] });
|
|
217
242
|
}
|
|
218
243
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
244
|
+
Ue = vi(xr);
|
|
245
|
+
R = xi(Ue, 0, "DetailRow", mr, R);
|
|
246
|
+
mi(Ue, 1, R);
|
|
247
|
+
var wi = Object.create, Ge = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, wr = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), $r = (e) => {
|
|
248
|
+
throw TypeError(e);
|
|
249
|
+
}, yi = (e, t, r) => t in e ? Ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Si = (e, t) => Ge(e, "name", { value: t, configurable: !0 }), ki = (e) => [, , , wi(e?.[wr("metadata")] ?? null)], zi = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], yr = (e) => e !== void 0 && typeof e != "function" ? $r("Function expected") : e, Ii = (e, t, r, n, o) => ({ kind: zi[e], name: t, metadata: n, addInitializer: (i) => r._ ? $r("Already initialized") : o.push(yr(i || null)) }), Oi = (e, t) => yi(t, wr("metadata"), e[3]), Pi = (e, t, r, n) => {
|
|
250
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
251
|
+
return n;
|
|
252
|
+
}, Ci = (e, t, r, n, o, i) => {
|
|
253
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && $i(o, r));
|
|
254
|
+
Si(o, r);
|
|
255
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
256
|
+
h = Ii(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, yr(s) && (o = s);
|
|
257
|
+
return Oi(e, o), d && Ge(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
258
|
+
}, Sr, He, kr;
|
|
259
|
+
Sr = [x()];
|
|
260
|
+
class X extends (kr = k) {
|
|
223
261
|
render() {
|
|
224
|
-
return /* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
262
|
+
return /* @__PURE__ */ f("div", { class: "border-b border-border", children: [
|
|
263
|
+
/* @__PURE__ */ u("div", { class: "px-3 py-[4px] text-[9px] text-subtle font-bold tracking-[0.12em] uppercase bg-section border-b border-border", children: this.props.label }),
|
|
226
264
|
this.props.children
|
|
227
265
|
] });
|
|
228
266
|
}
|
|
229
267
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
268
|
+
He = ki(kr);
|
|
269
|
+
X = Ci(He, 0, "DetailSection", Sr, X);
|
|
270
|
+
Pi(He, 1, X);
|
|
271
|
+
var Ei = Object.create, Xe = Object.defineProperty, Di = Object.getOwnPropertyDescriptor, zr = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), Ir = (e) => {
|
|
272
|
+
throw TypeError(e);
|
|
273
|
+
}, Mi = (e, t, r) => t in e ? Xe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ti = (e, t) => Xe(e, "name", { value: t, configurable: !0 }), ji = (e) => [, , , Ei(e?.[zr("metadata")] ?? null)], Fi = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Or = (e) => e !== void 0 && typeof e != "function" ? Ir("Function expected") : e, Li = (e, t, r, n, o) => ({ kind: Fi[e], name: t, metadata: n, addInitializer: (i) => r._ ? Ir("Already initialized") : o.push(Or(i || null)) }), Ai = (e, t) => Mi(t, zr("metadata"), e[3]), Ni = (e, t, r, n) => {
|
|
274
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
275
|
+
return n;
|
|
276
|
+
}, Bi = (e, t, r, n, o, i) => {
|
|
277
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Di(o, r));
|
|
278
|
+
Ti(o, r);
|
|
279
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
280
|
+
h = Li(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, Or(s) && (o = s);
|
|
281
|
+
return Ai(e, o), d && Xe(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
282
|
+
}, Pr, We, Cr;
|
|
283
|
+
Pr = [x()];
|
|
284
|
+
class se extends (Cr = k) {
|
|
234
285
|
render() {
|
|
235
286
|
const { status: t } = this.props;
|
|
236
|
-
return /* @__PURE__ */
|
|
287
|
+
return /* @__PURE__ */ u(
|
|
237
288
|
"span",
|
|
238
289
|
{
|
|
239
290
|
class: `inline-block w-[6px] h-[6px] rounded-full shrink-0 ${t === "mounted" ? "bg-success" : "bg-subtle"}`,
|
|
@@ -242,81 +293,107 @@ class K extends (wn = y) {
|
|
|
242
293
|
);
|
|
243
294
|
}
|
|
244
295
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
296
|
+
We = ji(Cr);
|
|
297
|
+
se = Bi(We, 0, "StatusDot", Pr, se);
|
|
298
|
+
Ni(We, 1, se);
|
|
299
|
+
var Ri = Object.create, Ye = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, Er = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), Dr = (e) => {
|
|
300
|
+
throw TypeError(e);
|
|
301
|
+
}, Gi = (e, t, r) => t in e ? Ye(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => Ye(e, "name", { value: t, configurable: !0 }), Xi = (e) => [, , , Ri(e?.[Er("metadata")] ?? null)], Wi = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Mr = (e) => e !== void 0 && typeof e != "function" ? Dr("Function expected") : e, Yi = (e, t, r, n, o) => ({ kind: Wi[e], name: t, metadata: n, addInitializer: (i) => r._ ? Dr("Already initialized") : o.push(Mr(i || null)) }), Ji = (e, t) => Gi(t, Er("metadata"), e[3]), qi = (e, t, r, n) => {
|
|
302
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
303
|
+
return n;
|
|
304
|
+
}, Ki = (e, t, r, n, o, i) => {
|
|
305
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Ui(o, r));
|
|
306
|
+
Hi(o, r);
|
|
307
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
308
|
+
h = Yi(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, Mr(s) && (o = s);
|
|
309
|
+
return Ji(e, o), d && Ye(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
310
|
+
}, Tr, Je, jr;
|
|
311
|
+
Tr = [x()];
|
|
312
|
+
class _e extends (jr = k) {
|
|
249
313
|
render() {
|
|
250
|
-
const { entry: t, signals:
|
|
251
|
-
return /* @__PURE__ */
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */
|
|
314
|
+
const { entry: t, signals: r } = this.props;
|
|
315
|
+
return /* @__PURE__ */ f(ae, { children: [
|
|
316
|
+
/* @__PURE__ */ f("div", { class: "px-3 py-2 border-b border-border flex items-center gap-2 bg-bg shrink-0", children: [
|
|
317
|
+
/* @__PURE__ */ u(se, { status: t.status }),
|
|
318
|
+
/* @__PURE__ */ f("span", { class: "text-accent font-mono text-[11px] font-semibold truncate pl-1", children: [
|
|
255
319
|
"<",
|
|
256
320
|
t.name,
|
|
257
321
|
">"
|
|
258
322
|
] })
|
|
259
323
|
] }),
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
|
|
324
|
+
/* @__PURE__ */ f("div", { class: "flex-1 overflow-y-auto", children: [
|
|
325
|
+
/* @__PURE__ */ f(X, { label: "Stats", children: [
|
|
326
|
+
/* @__PURE__ */ u(R, { k: "renders", v: String(t.renderCount) }),
|
|
327
|
+
/* @__PURE__ */ u(
|
|
328
|
+
R,
|
|
265
329
|
{
|
|
266
330
|
k: "last render",
|
|
267
331
|
v: `${t.lastRenderDuration.toFixed(3)}ms`
|
|
268
332
|
}
|
|
269
333
|
),
|
|
270
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ u(R, { k: "status", v: t.status })
|
|
271
335
|
] }),
|
|
272
|
-
|
|
273
|
-
|
|
336
|
+
r.length > 0 && /* @__PURE__ */ u(X, { label: "State", children: r.map((n) => /* @__PURE__ */ u(
|
|
337
|
+
R,
|
|
274
338
|
{
|
|
275
339
|
k: n.label,
|
|
276
|
-
v:
|
|
340
|
+
v: Be(n.value),
|
|
277
341
|
signal: !0
|
|
278
342
|
},
|
|
279
343
|
n.id
|
|
280
344
|
)) }),
|
|
281
|
-
t.lifecycle.length > 0 && /* @__PURE__ */
|
|
345
|
+
t.lifecycle.length > 0 && /* @__PURE__ */ u(X, { label: "Lifecycle", children: [...t.lifecycle].reverse().slice(0, 20).map((n, o) => /* @__PURE__ */ f(
|
|
282
346
|
"div",
|
|
283
347
|
{
|
|
284
348
|
class: "px-3 py-2 flex justify-between items-center border-b border-border",
|
|
285
349
|
children: [
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ u("span", { class: "text-[11px] text-text font-mono", children: n.hook }),
|
|
351
|
+
/* @__PURE__ */ u("span", { class: "text-[10px] text-subtle tabular-nums", children: new Date(n.timestamp).toLocaleTimeString() })
|
|
288
352
|
]
|
|
289
353
|
},
|
|
290
|
-
String(
|
|
354
|
+
String(o)
|
|
291
355
|
)) })
|
|
292
356
|
] })
|
|
293
357
|
] });
|
|
294
358
|
}
|
|
295
359
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
360
|
+
Je = Xi(jr);
|
|
361
|
+
_e = Ki(Je, 0, "ComponentDetail", Tr, _e);
|
|
362
|
+
qi(Je, 1, _e);
|
|
363
|
+
var Zi = Object.create, qe = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, Fr = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), Lr = (e) => {
|
|
364
|
+
throw TypeError(e);
|
|
365
|
+
}, Vi = (e, t, r) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ea = (e, t) => qe(e, "name", { value: t, configurable: !0 }), ta = (e) => [, , , Zi(e?.[Fr("metadata")] ?? null)], ra = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ar = (e) => e !== void 0 && typeof e != "function" ? Lr("Function expected") : e, oa = (e, t, r, n, o) => ({ kind: ra[e], name: t, metadata: n, addInitializer: (i) => r._ ? Lr("Already initialized") : o.push(Ar(i || null)) }), na = (e, t) => Vi(t, Fr("metadata"), e[3]), ia = (e, t, r, n) => {
|
|
366
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
367
|
+
return n;
|
|
368
|
+
}, aa = (e, t, r, n, o, i) => {
|
|
369
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Qi(o, r));
|
|
370
|
+
ea(o, r);
|
|
371
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
372
|
+
h = oa(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, Ar(s) && (o = s);
|
|
373
|
+
return na(e, o), d && qe(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
374
|
+
}, Nr, Ke, Br;
|
|
375
|
+
Nr = [x()];
|
|
376
|
+
class ve extends (Br = k) {
|
|
300
377
|
render() {
|
|
301
|
-
const { entry: t, selected:
|
|
302
|
-
return /* @__PURE__ */
|
|
378
|
+
const { entry: t, selected: r, onClick: n } = this.props;
|
|
379
|
+
return /* @__PURE__ */ f(
|
|
303
380
|
"div",
|
|
304
381
|
{
|
|
305
382
|
onClick: n,
|
|
306
|
-
class: () => `relative flex items-center gap-2 px-3 py-2 cursor-pointer border-b border-border transition-colors duration-100 ${
|
|
383
|
+
class: () => `relative flex items-center gap-2 px-3 py-2 cursor-pointer border-b border-border transition-colors duration-100 ${r() ? "bg-selected" : "hover:bg-section"}`,
|
|
307
384
|
children: [
|
|
308
|
-
() =>
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */
|
|
385
|
+
() => r() && /* @__PURE__ */ u("span", { class: "absolute left-0 top-0 bottom-0 w-[2px] bg-accent rounded-r" }),
|
|
386
|
+
/* @__PURE__ */ u(se, { status: t.status }),
|
|
387
|
+
/* @__PURE__ */ f("span", { class: "text-accent font-mono text-[11px] flex-1 truncate pl-1", children: [
|
|
311
388
|
"<",
|
|
312
389
|
t.name,
|
|
313
390
|
">"
|
|
314
391
|
] }),
|
|
315
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ f("span", { class: "text-muted text-[11px] tabular-nums", children: [
|
|
316
393
|
"×",
|
|
317
394
|
t.renderCount
|
|
318
395
|
] }),
|
|
319
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ f(
|
|
320
397
|
"span",
|
|
321
398
|
{
|
|
322
399
|
class: `text-[10px] tabular-nums w-12 text-right ${t.lastRenderDuration > 16 ? "text-warn" : "text-subtle"}`,
|
|
@@ -331,22 +408,36 @@ class V extends (vn = y) {
|
|
|
331
408
|
);
|
|
332
409
|
}
|
|
333
410
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
411
|
+
Ke = ta(Br);
|
|
412
|
+
ve = aa(Ke, 0, "ComponentRow", Nr, ve);
|
|
413
|
+
ia(Ke, 1, ve);
|
|
414
|
+
var sa = Object.create, Ze = Object.defineProperty, la = Object.getOwnPropertyDescriptor, Rr = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), le = (e) => {
|
|
415
|
+
throw TypeError(e);
|
|
416
|
+
}, ca = (e, t, r) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, At = (e, t) => Ze(e, "name", { value: t, configurable: !0 }), da = (e) => [, , , sa(e?.[Rr("metadata")] ?? null)], Ur = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Z = (e) => e !== void 0 && typeof e != "function" ? le("Function expected") : e, pa = (e, t, r, n, o) => ({ kind: Ur[e], name: t, metadata: n, addInitializer: (i) => r._ ? le("Already initialized") : o.push(Z(i || null)) }), ua = (e, t) => ca(t, Rr("metadata"), e[3]), Q = (e, t, r, n) => {
|
|
417
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) t & 1 ? i[o].call(r) : n = i[o].call(r, n);
|
|
418
|
+
return n;
|
|
419
|
+
}, Qe = (e, t, r, n, o, i) => {
|
|
420
|
+
var s, c, h, l, _, a = t & 7, b = !!(t & 8), d = !!(t & 16), p = a > 3 ? e.length + 1 : a ? b ? 1 : 2 : 0, w = Ur[a + 5], S = a > 3 && (e[p - 1] = []), P = e[p] || (e[p] = []), g = a && (!d && !b && (o = o.prototype), a < 5 && (a > 3 || !d) && la(a < 4 ? o : { get [r]() {
|
|
421
|
+
return Nt(this, i);
|
|
422
|
+
}, set [r](v) {
|
|
423
|
+
return Bt(this, i, v);
|
|
424
|
+
} }, r));
|
|
425
|
+
a ? d && a < 4 && At(i, (a > 2 ? "set " : a > 1 ? "get " : "") + r) : At(o, r);
|
|
426
|
+
for (var $ = n.length - 1; $ >= 0; $--)
|
|
427
|
+
l = pa(a, r, h = {}, e[3], P), a && (l.static = b, l.private = d, _ = l.access = { has: d ? (v) => ha(o, v) : (v) => r in v }, a ^ 3 && (_.get = d ? (v) => (a ^ 1 ? Nt : _a)(v, o, a ^ 4 ? i : g.get) : (v) => v[r]), a > 2 && (_.set = d ? (v, y) => Bt(v, o, y, a ^ 4 ? i : g.set) : (v, y) => v[r] = y)), c = (0, n[$])(a ? a < 4 ? d ? i : g[w] : a > 4 ? void 0 : { get: g.get, set: g.set } : o, l), h._ = 1, a ^ 4 || c === void 0 ? Z(c) && (a > 4 ? S.unshift(c) : a ? d ? i = c : g[w] = c : o = c) : typeof c != "object" || c === null ? le("Object expected") : (Z(s = c.get) && (g.get = s), Z(s = c.set) && (g.set = s), Z(s = c.init) && S.unshift(s));
|
|
428
|
+
return a || ua(e, o), g && Ze(o, r, g), d ? a ^ 4 ? i : g : o;
|
|
429
|
+
}, Ve = (e, t, r) => t.has(e) || le("Cannot " + r), ha = (e, t) => Object(t) !== t ? le('Cannot use the "in" operator on this value') : e.has(t), Nt = (e, t, r) => (Ve(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Bt = (e, t, r, n) => (Ve(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), _a = (e, t, r) => (Ve(e, t, "access private method"), r), Gr, Hr, Ce, Xr, T;
|
|
430
|
+
Xr = [x()];
|
|
431
|
+
class J extends (Ce = K, Hr = [O()], Gr = [O()], Ce) {
|
|
338
432
|
constructor() {
|
|
339
|
-
super(...arguments);
|
|
340
|
-
f(this, "components", s(E, 8, this, [])), s(E, 11, this);
|
|
341
|
-
f(this, "selectedId", s(E, 12, this, null)), s(E, 15, this);
|
|
342
|
-
f(this, "_handlers", []);
|
|
433
|
+
super(...arguments), this.components = Q(T, 8, this, []), Q(T, 11, this), this.selectedId = Q(T, 12, this, null), Q(T, 15, this), this._handlers = [];
|
|
343
434
|
}
|
|
344
435
|
get registry() {
|
|
345
436
|
return this.props.registry;
|
|
346
437
|
}
|
|
347
438
|
onMount() {
|
|
348
439
|
this.components = this.registry.getComponents();
|
|
349
|
-
const
|
|
440
|
+
const t = () => {
|
|
350
441
|
this.components = this.registry.getComponents();
|
|
351
442
|
};
|
|
352
443
|
this._handlers = [
|
|
@@ -356,134 +447,201 @@ class B extends (tt = J, et = [C()], Pe = [C()], tt) {
|
|
|
356
447
|
"lifecycle",
|
|
357
448
|
"signal:registered",
|
|
358
449
|
"signal:changed"
|
|
359
|
-
].map((
|
|
450
|
+
].map((r) => this.registry.bus.on(r, t));
|
|
360
451
|
}
|
|
361
452
|
onUnmount() {
|
|
362
|
-
this._handlers.forEach((
|
|
363
|
-
|
|
453
|
+
this._handlers.forEach((t) => {
|
|
454
|
+
t();
|
|
364
455
|
});
|
|
365
456
|
}
|
|
366
457
|
render() {
|
|
367
|
-
const { registry:
|
|
368
|
-
return /* @__PURE__ */
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
-
/* @__PURE__ */
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
-
/* @__PURE__ */
|
|
458
|
+
const { registry: t } = this;
|
|
459
|
+
return /* @__PURE__ */ f("div", { class: "flex h-full overflow-hidden", children: [
|
|
460
|
+
/* @__PURE__ */ f("div", { class: "flex-1 flex flex-col overflow-hidden min-w-0", children: [
|
|
461
|
+
/* @__PURE__ */ f("div", { class: "flex items-center px-3 h-7 text-[9px] text-subtle font-bold tracking-[0.12em] uppercase border-b border-border bg-section gap-2 shrink-0", children: [
|
|
462
|
+
/* @__PURE__ */ u("span", { class: "flex-1", children: "Component" }),
|
|
463
|
+
/* @__PURE__ */ u("span", { children: "Renders" }),
|
|
464
|
+
/* @__PURE__ */ u("span", { class: "w-12 text-right", children: "Last" })
|
|
374
465
|
] }),
|
|
375
|
-
/* @__PURE__ */
|
|
376
|
-
|
|
466
|
+
/* @__PURE__ */ u("div", { class: "flex-1 overflow-y-auto", children: () => this.components.length === 0 ? /* @__PURE__ */ u(Y, { message: "No components tracked. Add @Trace() to component classes." }) : this.components.map((r) => /* @__PURE__ */ u(
|
|
467
|
+
ve,
|
|
377
468
|
{
|
|
378
|
-
entry:
|
|
379
|
-
selected: () => this.selectedId ===
|
|
469
|
+
entry: r,
|
|
470
|
+
selected: () => this.selectedId === r.id,
|
|
380
471
|
onClick: () => {
|
|
381
|
-
this.selectedId = this.selectedId ===
|
|
472
|
+
this.selectedId = this.selectedId === r.id ? null : r.id;
|
|
382
473
|
}
|
|
383
474
|
},
|
|
384
|
-
|
|
475
|
+
r.id
|
|
385
476
|
)) })
|
|
386
477
|
] }),
|
|
387
478
|
() => {
|
|
388
|
-
const
|
|
389
|
-
return
|
|
479
|
+
const r = this.selectedId, n = r ? this.components.find((i) => i.id === r) ?? null : null, o = r ? t.getSignalsByComponent(r) : [];
|
|
480
|
+
return n ? /* @__PURE__ */ u(_e, { entry: n, signals: o }) : null;
|
|
390
481
|
}
|
|
391
482
|
] });
|
|
392
483
|
}
|
|
393
484
|
}
|
|
394
|
-
|
|
395
|
-
|
|
485
|
+
T = da(Ce);
|
|
486
|
+
Qe(T, 5, "components", Hr, J);
|
|
487
|
+
Qe(T, 5, "selectedId", Gr, J);
|
|
488
|
+
J = Qe(T, 0, "ComponentsTab", Xr, J);
|
|
489
|
+
Q(T, 1, J);
|
|
490
|
+
const va = {
|
|
396
491
|
id: "components",
|
|
397
492
|
label: "Components",
|
|
398
|
-
component:
|
|
493
|
+
component: J
|
|
399
494
|
};
|
|
400
|
-
var
|
|
401
|
-
|
|
402
|
-
class
|
|
495
|
+
var ba = Object.create, et = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, Wr = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), Yr = (e) => {
|
|
496
|
+
throw TypeError(e);
|
|
497
|
+
}, fa = (e, t, r) => t in e ? et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ma = (e, t) => et(e, "name", { value: t, configurable: !0 }), xa = (e) => [, , , ba(e?.[Wr("metadata")] ?? null)], wa = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Jr = (e) => e !== void 0 && typeof e != "function" ? Yr("Function expected") : e, $a = (e, t, r, n, o) => ({ kind: wa[e], name: t, metadata: n, addInitializer: (i) => r._ ? Yr("Already initialized") : o.push(Jr(i || null)) }), ya = (e, t) => fa(t, Wr("metadata"), e[3]), Sa = (e, t, r, n) => {
|
|
498
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
499
|
+
return n;
|
|
500
|
+
}, ka = (e, t, r, n, o, i) => {
|
|
501
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && ga(o, r));
|
|
502
|
+
ma(o, r);
|
|
503
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
504
|
+
h = $a(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, Jr(s) && (o = s);
|
|
505
|
+
return ya(e, o), d && et(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
506
|
+
}, qr, tt, Kr;
|
|
507
|
+
qr = [x()];
|
|
508
|
+
class be extends (Kr = k) {
|
|
403
509
|
render() {
|
|
404
|
-
const { placeholder: t, onInput:
|
|
405
|
-
return /* @__PURE__ */
|
|
510
|
+
const { placeholder: t, onInput: r } = this.props;
|
|
511
|
+
return /* @__PURE__ */ u(
|
|
406
512
|
"input",
|
|
407
513
|
{
|
|
408
514
|
type: "text",
|
|
409
515
|
placeholder: t,
|
|
410
516
|
class: "w-full bg-input border border-border rounded-lg text-text text-[11px] px-3 py-[5px] outline-none box-border transition-shadow duration-150",
|
|
411
517
|
onInput: (n) => {
|
|
412
|
-
|
|
518
|
+
r(n.target.value);
|
|
413
519
|
}
|
|
414
520
|
}
|
|
415
521
|
);
|
|
416
522
|
}
|
|
417
523
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
524
|
+
tt = xa(Kr);
|
|
525
|
+
be = ka(tt, 0, "SearchInput", qr, be);
|
|
526
|
+
Sa(tt, 1, be);
|
|
527
|
+
var za = Object.create, rt = Object.defineProperty, Ia = Object.getOwnPropertyDescriptor, Zr = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), Qr = (e) => {
|
|
528
|
+
throw TypeError(e);
|
|
529
|
+
}, Oa = (e, t, r) => t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pa = (e, t) => rt(e, "name", { value: t, configurable: !0 }), Ca = (e) => [, , , za(e?.[Zr("metadata")] ?? null)], Ea = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Vr = (e) => e !== void 0 && typeof e != "function" ? Qr("Function expected") : e, Da = (e, t, r, n, o) => ({ kind: Ea[e], name: t, metadata: n, addInitializer: (i) => r._ ? Qr("Already initialized") : o.push(Vr(i || null)) }), Ma = (e, t) => Oa(t, Zr("metadata"), e[3]), Ta = (e, t, r, n) => {
|
|
530
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
531
|
+
return n;
|
|
532
|
+
}, ja = (e, t, r, n, o, i) => {
|
|
533
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Ia(o, r));
|
|
534
|
+
Pa(o, r);
|
|
535
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
536
|
+
h = Da(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, Vr(s) && (o = s);
|
|
537
|
+
return Ma(e, o), d && rt(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
538
|
+
}, eo, ot, to;
|
|
539
|
+
eo = [x()];
|
|
540
|
+
class ge extends (to = k) {
|
|
422
541
|
render() {
|
|
423
|
-
return /* @__PURE__ */
|
|
424
|
-
/* @__PURE__ */
|
|
542
|
+
return /* @__PURE__ */ f("div", { class: "border-b border-border", children: [
|
|
543
|
+
/* @__PURE__ */ u("div", { class: "px-3 py-[4px] text-[9px] text-subtle font-bold tracking-[0.12em] uppercase bg-section border-b border-border", children: this.props.label }),
|
|
425
544
|
this.props.children
|
|
426
545
|
] });
|
|
427
546
|
}
|
|
428
547
|
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
548
|
+
ot = Ca(to);
|
|
549
|
+
ge = ja(ot, 0, "PanelSection", eo, ge);
|
|
550
|
+
Ta(ot, 1, ge);
|
|
551
|
+
function nt(e, t) {
|
|
552
|
+
const r = t ? ` ${t}` : "", n = Date.now() - e;
|
|
553
|
+
return n < 1e3 ? `${n.toString()}ms${r}` : n < 6e4 ? `${(n / 1e3).toFixed(1)}s${r}` : `${Math.floor(n / 6e4).toString()}m${r}`;
|
|
433
554
|
}
|
|
434
|
-
var it,
|
|
435
|
-
|
|
436
|
-
class
|
|
555
|
+
var Fa = Object.create, it = Object.defineProperty, La = Object.getOwnPropertyDescriptor, ro = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), oo = (e) => {
|
|
556
|
+
throw TypeError(e);
|
|
557
|
+
}, Aa = (e, t, r) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Na = (e, t) => it(e, "name", { value: t, configurable: !0 }), Ba = (e) => [, , , Fa(e?.[ro("metadata")] ?? null)], Ra = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], no = (e) => e !== void 0 && typeof e != "function" ? oo("Function expected") : e, Ua = (e, t, r, n, o) => ({ kind: Ra[e], name: t, metadata: n, addInitializer: (i) => r._ ? oo("Already initialized") : o.push(no(i || null)) }), Ga = (e, t) => Aa(t, ro("metadata"), e[3]), Ha = (e, t, r, n) => {
|
|
558
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
559
|
+
return n;
|
|
560
|
+
}, Xa = (e, t, r, n, o, i) => {
|
|
561
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && La(o, r));
|
|
562
|
+
Na(o, r);
|
|
563
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
564
|
+
h = Ua(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, no(s) && (o = s);
|
|
565
|
+
return Ga(e, o), d && it(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
566
|
+
}, io, at, ao;
|
|
567
|
+
io = [x()];
|
|
568
|
+
class fe extends (ao = k) {
|
|
437
569
|
render() {
|
|
438
570
|
const { entry: t } = this.props;
|
|
439
|
-
return /* @__PURE__ */
|
|
440
|
-
[...t.history].reverse().map((
|
|
571
|
+
return /* @__PURE__ */ u(ae, { width: "260px", children: /* @__PURE__ */ u(ge, { label: "History", children: /* @__PURE__ */ f("div", { class: "overflow-y-auto", children: [
|
|
572
|
+
[...t.history].reverse().map((r, n) => /* @__PURE__ */ f(
|
|
441
573
|
"div",
|
|
442
574
|
{
|
|
443
575
|
class: "px-3 py-2 border-b border-border flex justify-between items-center gap-3",
|
|
444
576
|
children: [
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ u("span", { class: "font-mono text-[11px] text-text truncate", children: Be(r.value) }),
|
|
578
|
+
/* @__PURE__ */ u("span", { class: "text-[10px] text-subtle shrink-0 tabular-nums", children: nt(r.timestamp, "ago") })
|
|
447
579
|
]
|
|
448
580
|
},
|
|
449
581
|
String(n)
|
|
450
582
|
)),
|
|
451
|
-
t.history.length === 0 && /* @__PURE__ */
|
|
583
|
+
t.history.length === 0 && /* @__PURE__ */ u("p", { class: "px-3 py-6 text-[11px] text-subtle text-center", children: "No history yet." })
|
|
452
584
|
] }) }) });
|
|
453
585
|
}
|
|
454
586
|
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
587
|
+
at = Ba(ao);
|
|
588
|
+
fe = Xa(at, 0, "SignalDetail", io, fe);
|
|
589
|
+
Ha(at, 1, fe);
|
|
590
|
+
var Wa = Object.create, st = Object.defineProperty, Ya = Object.getOwnPropertyDescriptor, so = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), lo = (e) => {
|
|
591
|
+
throw TypeError(e);
|
|
592
|
+
}, Ja = (e, t, r) => t in e ? st(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qa = (e, t) => st(e, "name", { value: t, configurable: !0 }), Ka = (e) => [, , , Wa(e?.[so("metadata")] ?? null)], Za = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], co = (e) => e !== void 0 && typeof e != "function" ? lo("Function expected") : e, Qa = (e, t, r, n, o) => ({ kind: Za[e], name: t, metadata: n, addInitializer: (i) => r._ ? lo("Already initialized") : o.push(co(i || null)) }), Va = (e, t) => Ja(t, so("metadata"), e[3]), es = (e, t, r, n) => {
|
|
593
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
594
|
+
return n;
|
|
595
|
+
}, ts = (e, t, r, n, o, i) => {
|
|
596
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Ya(o, r));
|
|
597
|
+
qa(o, r);
|
|
598
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
599
|
+
h = Qa(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, co(s) && (o = s);
|
|
600
|
+
return Va(e, o), d && st(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
601
|
+
}, po, lt, uo;
|
|
602
|
+
po = [x()];
|
|
603
|
+
class me extends (uo = k) {
|
|
459
604
|
render() {
|
|
460
|
-
const { entry: t, selected:
|
|
461
|
-
return /* @__PURE__ */
|
|
605
|
+
const { entry: t, selected: r, onClick: n } = this.props;
|
|
606
|
+
return /* @__PURE__ */ f(
|
|
462
607
|
"div",
|
|
463
608
|
{
|
|
464
609
|
onClick: n,
|
|
465
|
-
class: `relative grid grid-cols-[1.2fr_0.8fr_1fr_auto] items-center px-3 py-2 cursor-pointer border-b border-border transition-colors duration-100 ${
|
|
610
|
+
class: `relative grid grid-cols-[1.2fr_0.8fr_1fr_auto] items-center px-3 py-2 cursor-pointer border-b border-border transition-colors duration-100 ${r ? "bg-selected" : "hover:bg-section"}`,
|
|
466
611
|
children: [
|
|
467
|
-
|
|
468
|
-
/* @__PURE__ */
|
|
469
|
-
/* @__PURE__ */
|
|
470
|
-
/* @__PURE__ */
|
|
471
|
-
/* @__PURE__ */
|
|
612
|
+
r && /* @__PURE__ */ u("span", { class: "absolute left-0 top-0 bottom-0 w-[2px] bg-accent rounded-r" }),
|
|
613
|
+
/* @__PURE__ */ u("span", { class: "text-accent font-mono text-[11px] truncate pl-1", children: t.label }),
|
|
614
|
+
/* @__PURE__ */ u("span", { class: "text-muted text-[11px] truncate", children: t.componentName }),
|
|
615
|
+
/* @__PURE__ */ u("span", { class: "text-text font-mono text-[11px] truncate", children: Be(t.value) }),
|
|
616
|
+
/* @__PURE__ */ u("span", { class: "text-subtle text-[10px] text-right tabular-nums", children: nt(t.changedAt, "ago") })
|
|
472
617
|
]
|
|
473
618
|
}
|
|
474
619
|
);
|
|
475
620
|
}
|
|
476
621
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
622
|
+
lt = Ka(uo);
|
|
623
|
+
me = ts(lt, 0, "SignalRow", po, me);
|
|
624
|
+
es(lt, 1, me);
|
|
625
|
+
var rs = Object.create, ct = Object.defineProperty, os = Object.getOwnPropertyDescriptor, ho = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), ce = (e) => {
|
|
626
|
+
throw TypeError(e);
|
|
627
|
+
}, ns = (e, t, r) => t in e ? ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Rt = (e, t) => ct(e, "name", { value: t, configurable: !0 }), is = (e) => [, , , rs(e?.[ho("metadata")] ?? null)], _o = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], V = (e) => e !== void 0 && typeof e != "function" ? ce("Function expected") : e, as = (e, t, r, n, o) => ({ kind: _o[e], name: t, metadata: n, addInitializer: (i) => r._ ? ce("Already initialized") : o.push(V(i || null)) }), ss = (e, t) => ns(t, ho("metadata"), e[3]), A = (e, t, r, n) => {
|
|
628
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) t & 1 ? i[o].call(r) : n = i[o].call(r, n);
|
|
629
|
+
return n;
|
|
630
|
+
}, Ie = (e, t, r, n, o, i) => {
|
|
631
|
+
var s, c, h, l, _, a = t & 7, b = !!(t & 8), d = !!(t & 16), p = a > 3 ? e.length + 1 : a ? b ? 1 : 2 : 0, w = _o[a + 5], S = a > 3 && (e[p - 1] = []), P = e[p] || (e[p] = []), g = a && (!d && !b && (o = o.prototype), a < 5 && (a > 3 || !d) && os(a < 4 ? o : { get [r]() {
|
|
632
|
+
return Ut(this, i);
|
|
633
|
+
}, set [r](v) {
|
|
634
|
+
return Gt(this, i, v);
|
|
635
|
+
} }, r));
|
|
636
|
+
a ? d && a < 4 && Rt(i, (a > 2 ? "set " : a > 1 ? "get " : "") + r) : Rt(o, r);
|
|
637
|
+
for (var $ = n.length - 1; $ >= 0; $--)
|
|
638
|
+
l = as(a, r, h = {}, e[3], P), a && (l.static = b, l.private = d, _ = l.access = { has: d ? (v) => ls(o, v) : (v) => r in v }, a ^ 3 && (_.get = d ? (v) => (a ^ 1 ? Ut : cs)(v, o, a ^ 4 ? i : g.get) : (v) => v[r]), a > 2 && (_.set = d ? (v, y) => Gt(v, o, y, a ^ 4 ? i : g.set) : (v, y) => v[r] = y)), c = (0, n[$])(a ? a < 4 ? d ? i : g[w] : a > 4 ? void 0 : { get: g.get, set: g.set } : o, l), h._ = 1, a ^ 4 || c === void 0 ? V(c) && (a > 4 ? S.unshift(c) : a ? d ? i = c : g[w] = c : o = c) : typeof c != "object" || c === null ? ce("Object expected") : (V(s = c.get) && (g.get = s), V(s = c.set) && (g.set = s), V(s = c.init) && S.unshift(s));
|
|
639
|
+
return a || ss(e, o), g && ct(o, r, g), d ? a ^ 4 ? i : g : o;
|
|
640
|
+
}, dt = (e, t, r) => t.has(e) || ce("Cannot " + r), ls = (e, t) => Object(t) !== t ? ce('Cannot use the "in" operator on this value') : e.has(t), Ut = (e, t, r) => (dt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Gt = (e, t, r, n) => (dt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), cs = (e, t, r) => (dt(e, t, "access private method"), r), vo, bo, go, Ee, fo, C;
|
|
641
|
+
fo = [x()];
|
|
642
|
+
class U extends (Ee = K, go = [O()], bo = [O()], vo = [O()], Ee) {
|
|
481
643
|
constructor() {
|
|
482
|
-
super(...arguments);
|
|
483
|
-
f(this, "signals", s(S, 8, this, [])), s(S, 11, this);
|
|
484
|
-
f(this, "search", s(S, 12, this, "")), s(S, 15, this);
|
|
485
|
-
f(this, "selectedId", s(S, 16, this, null)), s(S, 19, this);
|
|
486
|
-
f(this, "_handlers", []);
|
|
644
|
+
super(...arguments), this.signals = A(C, 8, this, []), A(C, 11, this), this.search = A(C, 12, this, ""), A(C, 15, this), this.selectedId = A(C, 16, this, null), A(C, 19, this), this._handlers = [];
|
|
487
645
|
}
|
|
488
646
|
get registry() {
|
|
489
647
|
return this.props.registry;
|
|
@@ -499,70 +657,75 @@ class U extends (dt = J, ct = [C()], lt = [C()], at = [C()], dt) {
|
|
|
499
657
|
];
|
|
500
658
|
}
|
|
501
659
|
onUnmount() {
|
|
502
|
-
this._handlers.forEach((
|
|
503
|
-
|
|
660
|
+
this._handlers.forEach((t) => {
|
|
661
|
+
t();
|
|
504
662
|
});
|
|
505
663
|
}
|
|
506
664
|
render() {
|
|
507
|
-
return /* @__PURE__ */
|
|
508
|
-
/* @__PURE__ */
|
|
509
|
-
/* @__PURE__ */
|
|
510
|
-
|
|
665
|
+
return /* @__PURE__ */ f("div", { class: "flex h-full overflow-hidden", children: [
|
|
666
|
+
/* @__PURE__ */ f("div", { class: "flex-1 flex flex-col overflow-hidden min-w-0", children: [
|
|
667
|
+
/* @__PURE__ */ u("div", { class: "px-3 py-2 border-b border-border bg-bg shrink-0", children: /* @__PURE__ */ u(
|
|
668
|
+
be,
|
|
511
669
|
{
|
|
512
670
|
placeholder: "Search signals…",
|
|
513
|
-
onInput: (
|
|
514
|
-
this.search =
|
|
671
|
+
onInput: (t) => {
|
|
672
|
+
this.search = t;
|
|
515
673
|
}
|
|
516
674
|
}
|
|
517
675
|
) }),
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
/* @__PURE__ */
|
|
520
|
-
/* @__PURE__ */
|
|
521
|
-
/* @__PURE__ */
|
|
522
|
-
/* @__PURE__ */
|
|
676
|
+
/* @__PURE__ */ f("div", { class: "grid grid-cols-[1.2fr_0.8fr_1fr_auto] items-center px-3 h-7 text-[9px] text-subtle font-bold tracking-[0.12em] uppercase border-b border-border bg-section gap-2 shrink-0", children: [
|
|
677
|
+
/* @__PURE__ */ u("span", { children: "Signal" }),
|
|
678
|
+
/* @__PURE__ */ u("span", { children: "Component" }),
|
|
679
|
+
/* @__PURE__ */ u("span", { children: "Value" }),
|
|
680
|
+
/* @__PURE__ */ u("span", { children: "Age" })
|
|
523
681
|
] }),
|
|
524
|
-
/* @__PURE__ */
|
|
525
|
-
const
|
|
526
|
-
(
|
|
682
|
+
/* @__PURE__ */ u("div", { class: "flex-1 overflow-y-auto", children: () => {
|
|
683
|
+
const t = this.search.toLowerCase(), r = t === "" ? this.signals : this.signals.filter(
|
|
684
|
+
(n) => n.label.toLowerCase().includes(t) || n.componentName.toLowerCase().includes(t)
|
|
527
685
|
);
|
|
528
|
-
return
|
|
529
|
-
|
|
686
|
+
return r.length === 0 ? /* @__PURE__ */ u(
|
|
687
|
+
Y,
|
|
530
688
|
{
|
|
531
689
|
message: this.signals.length === 0 ? "No signals tracked. Add @Debug() on top of @State() properties." : "No signals match your search."
|
|
532
690
|
}
|
|
533
|
-
) :
|
|
534
|
-
|
|
691
|
+
) : r.map((n) => /* @__PURE__ */ u(
|
|
692
|
+
me,
|
|
535
693
|
{
|
|
536
|
-
entry:
|
|
537
|
-
selected: this.selectedId ===
|
|
694
|
+
entry: n,
|
|
695
|
+
selected: this.selectedId === n.id,
|
|
538
696
|
onClick: () => {
|
|
539
|
-
this.selectedId = this.selectedId ===
|
|
697
|
+
this.selectedId = this.selectedId === n.id ? null : n.id;
|
|
540
698
|
}
|
|
541
699
|
},
|
|
542
|
-
|
|
700
|
+
n.id
|
|
543
701
|
));
|
|
544
702
|
} })
|
|
545
703
|
] }),
|
|
546
704
|
() => {
|
|
547
|
-
const
|
|
548
|
-
return
|
|
705
|
+
const t = this.selectedId, r = t ? this.signals.find((n) => n.id === t) ?? null : null;
|
|
706
|
+
return r ? /* @__PURE__ */ u(fe, { entry: r }) : null;
|
|
549
707
|
}
|
|
550
708
|
] });
|
|
551
709
|
}
|
|
552
710
|
}
|
|
553
|
-
|
|
554
|
-
|
|
711
|
+
C = is(Ee);
|
|
712
|
+
Ie(C, 5, "signals", go, U);
|
|
713
|
+
Ie(C, 5, "search", bo, U);
|
|
714
|
+
Ie(C, 5, "selectedId", vo, U);
|
|
715
|
+
U = Ie(C, 0, "SignalsTab", fo, U);
|
|
716
|
+
A(C, 1, U);
|
|
717
|
+
const ds = {
|
|
555
718
|
id: "signals",
|
|
556
719
|
label: "Signals",
|
|
557
720
|
component: U
|
|
558
|
-
},
|
|
721
|
+
}, ps = {
|
|
559
722
|
"signal:change": { label: "signal", cls: "text-[#9b90e6] bg-[rgba(155,144,230,0.14)]" },
|
|
560
723
|
"component:render": { label: "render", cls: "text-[#4ade80] bg-[rgba(74,222,128,0.12)]" },
|
|
561
724
|
"component:mount": { label: "mount", cls: "text-[#0ea57a] bg-[rgba(14,165,122,0.14)]" },
|
|
562
725
|
"component:unmount": { label: "unmount", cls: "text-[#dc2626] bg-[rgba(220,38,38,0.14)]" },
|
|
563
726
|
lifecycle: { label: "lifecycle", cls: "text-[#d97706] bg-[rgba(217,119,6,0.14)]" },
|
|
564
727
|
"method:call": { label: "method", cls: "text-[#7c6dd6] bg-[rgba(124,109,214,0.14)]" }
|
|
565
|
-
},
|
|
728
|
+
}, us = [
|
|
566
729
|
{ value: "all", label: "All" },
|
|
567
730
|
{ value: "signal:change", label: "Signals" },
|
|
568
731
|
{ value: "component:render", label: "Renders" },
|
|
@@ -570,12 +733,23 @@ const sn = {
|
|
|
570
733
|
{ value: "lifecycle", label: "Lifecycle" },
|
|
571
734
|
{ value: "method:call", label: "Methods" }
|
|
572
735
|
];
|
|
573
|
-
var pt,
|
|
574
|
-
|
|
575
|
-
class
|
|
736
|
+
var hs = Object.create, pt = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, mo = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), xo = (e) => {
|
|
737
|
+
throw TypeError(e);
|
|
738
|
+
}, vs = (e, t, r) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bs = (e, t) => pt(e, "name", { value: t, configurable: !0 }), gs = (e) => [, , , hs(e?.[mo("metadata")] ?? null)], fs = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], wo = (e) => e !== void 0 && typeof e != "function" ? xo("Function expected") : e, ms = (e, t, r, n, o) => ({ kind: fs[e], name: t, metadata: n, addInitializer: (i) => r._ ? xo("Already initialized") : o.push(wo(i || null)) }), xs = (e, t) => vs(t, mo("metadata"), e[3]), ws = (e, t, r, n) => {
|
|
739
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
740
|
+
return n;
|
|
741
|
+
}, $s = (e, t, r, n, o, i) => {
|
|
742
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && _s(o, r));
|
|
743
|
+
bs(o, r);
|
|
744
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
745
|
+
h = ms(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, wo(s) && (o = s);
|
|
746
|
+
return xs(e, o), d && pt(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
747
|
+
}, $o, ut, yo;
|
|
748
|
+
$o = [x()];
|
|
749
|
+
class xe extends (yo = k) {
|
|
576
750
|
render() {
|
|
577
|
-
const t =
|
|
578
|
-
return /* @__PURE__ */
|
|
751
|
+
const t = ps[this.props.type];
|
|
752
|
+
return /* @__PURE__ */ u(
|
|
579
753
|
"span",
|
|
580
754
|
{
|
|
581
755
|
class: `text-[9px] px-[6px] py-[2px] rounded font-bold uppercase tracking-[0.07em] shrink-0 ${t.cls}`,
|
|
@@ -584,55 +758,85 @@ class re extends (Sn = y) {
|
|
|
584
758
|
);
|
|
585
759
|
}
|
|
586
760
|
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
761
|
+
ut = gs(yo);
|
|
762
|
+
xe = $s(ut, 0, "Badge", $o, xe);
|
|
763
|
+
ws(ut, 1, xe);
|
|
764
|
+
var ys = Object.create, ht = Object.defineProperty, Ss = Object.getOwnPropertyDescriptor, So = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), de = (e) => {
|
|
765
|
+
throw TypeError(e);
|
|
766
|
+
}, ks = (e, t, r) => t in e ? ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ht = (e, t) => ht(e, "name", { value: t, configurable: !0 }), zs = (e) => [, , , ys(e?.[So("metadata")] ?? null)], ko = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ee = (e) => e !== void 0 && typeof e != "function" ? de("Function expected") : e, Is = (e, t, r, n, o) => ({ kind: ko[e], name: t, metadata: n, addInitializer: (i) => r._ ? de("Already initialized") : o.push(ee(i || null)) }), Os = (e, t) => ks(t, So("metadata"), e[3]), te = (e, t, r, n) => {
|
|
767
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) t & 1 ? i[o].call(r) : n = i[o].call(r, n);
|
|
768
|
+
return n;
|
|
769
|
+
}, _t = (e, t, r, n, o, i) => {
|
|
770
|
+
var s, c, h, l, _, a = t & 7, b = !!(t & 8), d = !!(t & 16), p = a > 3 ? e.length + 1 : a ? b ? 1 : 2 : 0, w = ko[a + 5], S = a > 3 && (e[p - 1] = []), P = e[p] || (e[p] = []), g = a && (!d && !b && (o = o.prototype), a < 5 && (a > 3 || !d) && Ss(a < 4 ? o : { get [r]() {
|
|
771
|
+
return Xt(this, i);
|
|
772
|
+
}, set [r](v) {
|
|
773
|
+
return Wt(this, i, v);
|
|
774
|
+
} }, r));
|
|
775
|
+
a ? d && a < 4 && Ht(i, (a > 2 ? "set " : a > 1 ? "get " : "") + r) : Ht(o, r);
|
|
776
|
+
for (var $ = n.length - 1; $ >= 0; $--)
|
|
777
|
+
l = Is(a, r, h = {}, e[3], P), a && (l.static = b, l.private = d, _ = l.access = { has: d ? (v) => Ps(o, v) : (v) => r in v }, a ^ 3 && (_.get = d ? (v) => (a ^ 1 ? Xt : Cs)(v, o, a ^ 4 ? i : g.get) : (v) => v[r]), a > 2 && (_.set = d ? (v, y) => Wt(v, o, y, a ^ 4 ? i : g.set) : (v, y) => v[r] = y)), c = (0, n[$])(a ? a < 4 ? d ? i : g[w] : a > 4 ? void 0 : { get: g.get, set: g.set } : o, l), h._ = 1, a ^ 4 || c === void 0 ? ee(c) && (a > 4 ? S.unshift(c) : a ? d ? i = c : g[w] = c : o = c) : typeof c != "object" || c === null ? de("Object expected") : (ee(s = c.get) && (g.get = s), ee(s = c.set) && (g.set = s), ee(s = c.init) && S.unshift(s));
|
|
778
|
+
return a || Os(e, o), g && ht(o, r, g), d ? a ^ 4 ? i : g : o;
|
|
779
|
+
}, vt = (e, t, r) => t.has(e) || de("Cannot " + r), Ps = (e, t) => Object(t) !== t ? de('Cannot use the "in" operator on this value') : e.has(t), Xt = (e, t, r) => (vt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Wt = (e, t, r, n) => (vt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), Cs = (e, t, r) => (vt(e, t, "access private method"), r), zo, Io, De, Oo, j;
|
|
780
|
+
Oo = [x()];
|
|
781
|
+
class q extends (De = K, Io = [O()], zo = [ie()], De) {
|
|
591
782
|
constructor() {
|
|
592
|
-
super(...arguments);
|
|
593
|
-
f(this, "open", s(N, 8, this, !1)), s(N, 11, this);
|
|
594
|
-
f(this, "entry", s(N, 12, this)), s(N, 15, this);
|
|
783
|
+
super(...arguments), this.open = te(j, 8, this, !1), te(j, 11, this), this.entry = te(j, 12, this), te(j, 15, this);
|
|
595
784
|
}
|
|
596
785
|
render() {
|
|
597
|
-
const
|
|
598
|
-
if (!
|
|
599
|
-
const
|
|
600
|
-
return /* @__PURE__ */
|
|
601
|
-
/* @__PURE__ */
|
|
786
|
+
const t = this.entry;
|
|
787
|
+
if (!t) return null;
|
|
788
|
+
const r = Object.keys(t.data).length > 0;
|
|
789
|
+
return /* @__PURE__ */ f("div", { class: "border-b border-border", children: [
|
|
790
|
+
/* @__PURE__ */ f(
|
|
602
791
|
"div",
|
|
603
792
|
{
|
|
604
793
|
onClick: () => {
|
|
605
|
-
|
|
794
|
+
r && (this.open = !this.open);
|
|
606
795
|
},
|
|
607
|
-
class: `flex items-center gap-2 px-3 py-2 transition-colors duration-100 ${
|
|
796
|
+
class: `flex items-center gap-2 px-3 py-2 transition-colors duration-100 ${r ? "cursor-pointer hover:bg-section" : "cursor-default"}`,
|
|
608
797
|
children: [
|
|
609
|
-
/* @__PURE__ */
|
|
610
|
-
/* @__PURE__ */
|
|
611
|
-
/* @__PURE__ */
|
|
612
|
-
|
|
798
|
+
/* @__PURE__ */ u("span", { class: "text-subtle text-[10px] w-10 shrink-0 text-right tabular-nums font-mono", children: nt(t.timestamp) }),
|
|
799
|
+
/* @__PURE__ */ u(xe, { type: t.type }),
|
|
800
|
+
/* @__PURE__ */ u("span", { class: "flex-1 text-text font-mono text-[11px] truncate", children: t.label }),
|
|
801
|
+
r && /* @__PURE__ */ u("span", { class: "text-subtle text-[11px] shrink-0 w-4 text-center", children: () => this.open ? "▾" : "▸" })
|
|
613
802
|
]
|
|
614
803
|
}
|
|
615
804
|
),
|
|
616
|
-
() => this.open &&
|
|
617
|
-
/* @__PURE__ */
|
|
618
|
-
|
|
805
|
+
() => this.open && r ? /* @__PURE__ */ u("div", { class: "px-3 py-2 pl-[56px] font-mono text-[11px] bg-section border-t border-border", children: Object.entries(t.data).map(([n, o]) => /* @__PURE__ */ f("div", { class: "flex gap-3 py-[3px]", children: [
|
|
806
|
+
/* @__PURE__ */ f("span", { class: "text-accent shrink-0", children: [
|
|
807
|
+
n,
|
|
619
808
|
":"
|
|
620
809
|
] }),
|
|
621
|
-
/* @__PURE__ */
|
|
622
|
-
] },
|
|
810
|
+
/* @__PURE__ */ u("span", { class: "text-muted truncate", children: typeof o == "object" ? JSON.stringify(o) : String(o) })
|
|
811
|
+
] }, n)) }) : null
|
|
623
812
|
] });
|
|
624
813
|
}
|
|
625
814
|
}
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
815
|
+
j = zs(De);
|
|
816
|
+
_t(j, 5, "open", Io, q);
|
|
817
|
+
_t(j, 5, "entry", zo, q);
|
|
818
|
+
q = _t(j, 0, "TimelineRow", Oo, q);
|
|
819
|
+
te(j, 1, q);
|
|
820
|
+
var Es = Object.create, bt = Object.defineProperty, Ds = Object.getOwnPropertyDescriptor, Po = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), pe = (e) => {
|
|
821
|
+
throw TypeError(e);
|
|
822
|
+
}, Ms = (e, t, r) => t in e ? bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yt = (e, t) => bt(e, "name", { value: t, configurable: !0 }), Ts = (e) => [, , , Es(e?.[Po("metadata")] ?? null)], Co = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], re = (e) => e !== void 0 && typeof e != "function" ? pe("Function expected") : e, js = (e, t, r, n, o) => ({ kind: Co[e], name: t, metadata: n, addInitializer: (i) => r._ ? pe("Already initialized") : o.push(re(i || null)) }), Fs = (e, t) => Ms(t, Po("metadata"), e[3]), N = (e, t, r, n) => {
|
|
823
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) t & 1 ? i[o].call(r) : n = i[o].call(r, n);
|
|
824
|
+
return n;
|
|
825
|
+
}, Oe = (e, t, r, n, o, i) => {
|
|
826
|
+
var s, c, h, l, _, a = t & 7, b = !!(t & 8), d = !!(t & 16), p = a > 3 ? e.length + 1 : a ? b ? 1 : 2 : 0, w = Co[a + 5], S = a > 3 && (e[p - 1] = []), P = e[p] || (e[p] = []), g = a && (!d && !b && (o = o.prototype), a < 5 && (a > 3 || !d) && Ds(a < 4 ? o : { get [r]() {
|
|
827
|
+
return Jt(this, i);
|
|
828
|
+
}, set [r](v) {
|
|
829
|
+
return qt(this, i, v);
|
|
830
|
+
} }, r));
|
|
831
|
+
a ? d && a < 4 && Yt(i, (a > 2 ? "set " : a > 1 ? "get " : "") + r) : Yt(o, r);
|
|
832
|
+
for (var $ = n.length - 1; $ >= 0; $--)
|
|
833
|
+
l = js(a, r, h = {}, e[3], P), a && (l.static = b, l.private = d, _ = l.access = { has: d ? (v) => Ls(o, v) : (v) => r in v }, a ^ 3 && (_.get = d ? (v) => (a ^ 1 ? Jt : As)(v, o, a ^ 4 ? i : g.get) : (v) => v[r]), a > 2 && (_.set = d ? (v, y) => qt(v, o, y, a ^ 4 ? i : g.set) : (v, y) => v[r] = y)), c = (0, n[$])(a ? a < 4 ? d ? i : g[w] : a > 4 ? void 0 : { get: g.get, set: g.set } : o, l), h._ = 1, a ^ 4 || c === void 0 ? re(c) && (a > 4 ? S.unshift(c) : a ? d ? i = c : g[w] = c : o = c) : typeof c != "object" || c === null ? pe("Object expected") : (re(s = c.get) && (g.get = s), re(s = c.set) && (g.set = s), re(s = c.init) && S.unshift(s));
|
|
834
|
+
return a || Fs(e, o), g && bt(o, r, g), d ? a ^ 4 ? i : g : o;
|
|
835
|
+
}, gt = (e, t, r) => t.has(e) || pe("Cannot " + r), Ls = (e, t) => Object(t) !== t ? pe('Cannot use the "in" operator on this value') : e.has(t), Jt = (e, t, r) => (gt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), qt = (e, t, r, n) => (gt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), As = (e, t, r) => (gt(e, t, "access private method"), r), Eo, Do, Mo, Me, To, E;
|
|
836
|
+
To = [x()];
|
|
837
|
+
class G extends (Me = K, Mo = [O()], Do = [O()], Eo = [O()], Me) {
|
|
630
838
|
constructor() {
|
|
631
|
-
super(...arguments);
|
|
632
|
-
f(this, "entries", s(I, 8, this, [])), s(I, 11, this);
|
|
633
|
-
f(this, "filter", s(I, 12, this, "all")), s(I, 15, this);
|
|
634
|
-
f(this, "paused", s(I, 16, this, !1)), s(I, 19, this);
|
|
635
|
-
f(this, "_handlers", []);
|
|
839
|
+
super(...arguments), this.entries = N(E, 8, this, []), N(E, 11, this), this.filter = N(E, 12, this, "all"), N(E, 15, this), this.paused = N(E, 16, this, !1), N(E, 19, this), this._handlers = [];
|
|
636
840
|
}
|
|
637
841
|
get registry() {
|
|
638
842
|
return this.props.registry;
|
|
@@ -645,26 +849,26 @@ class O extends (yt = J, wt = [C()], ft = [C()], mt = [C()], yt) {
|
|
|
645
849
|
];
|
|
646
850
|
}
|
|
647
851
|
onUnmount() {
|
|
648
|
-
this._handlers.forEach((
|
|
649
|
-
|
|
852
|
+
this._handlers.forEach((t) => {
|
|
853
|
+
t();
|
|
650
854
|
});
|
|
651
855
|
}
|
|
652
856
|
render() {
|
|
653
|
-
return /* @__PURE__ */
|
|
654
|
-
/* @__PURE__ */
|
|
655
|
-
|
|
857
|
+
return /* @__PURE__ */ f("div", { class: "flex flex-col h-full overflow-hidden", children: [
|
|
858
|
+
/* @__PURE__ */ f("div", { class: "flex items-center gap-[3px] px-2 py-2 border-b border-border bg-bg shrink-0 flex-wrap", children: [
|
|
859
|
+
us.map((t) => /* @__PURE__ */ u(
|
|
656
860
|
"button",
|
|
657
861
|
{
|
|
658
862
|
onClick: () => {
|
|
659
|
-
this.filter =
|
|
863
|
+
this.filter = t.value;
|
|
660
864
|
},
|
|
661
|
-
class: () => this.filter ===
|
|
662
|
-
children:
|
|
865
|
+
class: () => this.filter === t.value ? "text-[11px] px-2 py-[3px] rounded cursor-pointer font-sans bg-soft text-accent font-semibold" : "text-[11px] px-2 py-[3px] rounded cursor-pointer font-sans text-muted hover:text-text hover:bg-section transition-colors duration-150",
|
|
866
|
+
children: t.label
|
|
663
867
|
},
|
|
664
|
-
|
|
868
|
+
t.value
|
|
665
869
|
)),
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ u("div", { class: "flex-1" }),
|
|
871
|
+
/* @__PURE__ */ u(
|
|
668
872
|
"button",
|
|
669
873
|
{
|
|
670
874
|
onClick: () => {
|
|
@@ -674,7 +878,7 @@ class O extends (yt = J, wt = [C()], ft = [C()], mt = [C()], yt) {
|
|
|
674
878
|
children: () => this.paused ? "Resume" : "Pause"
|
|
675
879
|
}
|
|
676
880
|
),
|
|
677
|
-
/* @__PURE__ */
|
|
881
|
+
/* @__PURE__ */ u(
|
|
678
882
|
"button",
|
|
679
883
|
{
|
|
680
884
|
onClick: () => {
|
|
@@ -685,26 +889,42 @@ class O extends (yt = J, wt = [C()], ft = [C()], mt = [C()], yt) {
|
|
|
685
889
|
}
|
|
686
890
|
)
|
|
687
891
|
] }),
|
|
688
|
-
/* @__PURE__ */
|
|
689
|
-
const
|
|
690
|
-
(
|
|
892
|
+
/* @__PURE__ */ u("div", { class: "flex-1 overflow-y-auto", children: () => {
|
|
893
|
+
const t = this.filter, r = t === "all" ? this.entries : this.entries.filter(
|
|
894
|
+
(n) => n.type === t || t === "component:mount" && n.type === "component:unmount"
|
|
691
895
|
);
|
|
692
|
-
return
|
|
896
|
+
return r.length === 0 ? /* @__PURE__ */ u(Y, { message: "No events yet. Interact with your app to see the timeline." }) : [...r].reverse().map((n) => /* @__PURE__ */ u(q, { entry: n }, n.id));
|
|
693
897
|
} })
|
|
694
898
|
] });
|
|
695
899
|
}
|
|
696
900
|
}
|
|
697
|
-
|
|
698
|
-
|
|
901
|
+
E = Ts(Me);
|
|
902
|
+
Oe(E, 5, "entries", Mo, G);
|
|
903
|
+
Oe(E, 5, "filter", Do, G);
|
|
904
|
+
Oe(E, 5, "paused", Eo, G);
|
|
905
|
+
G = Oe(E, 0, "TimelineTab", To, G);
|
|
906
|
+
N(E, 1, G);
|
|
907
|
+
const Ns = {
|
|
699
908
|
id: "timeline",
|
|
700
909
|
label: "Timeline",
|
|
701
|
-
component:
|
|
702
|
-
},
|
|
703
|
-
var
|
|
704
|
-
|
|
705
|
-
class
|
|
910
|
+
component: G
|
|
911
|
+
}, Bs = '*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}';
|
|
912
|
+
var Rs = Object.create, ft = Object.defineProperty, Us = Object.getOwnPropertyDescriptor, jo = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), Fo = (e) => {
|
|
913
|
+
throw TypeError(e);
|
|
914
|
+
}, Gs = (e, t, r) => t in e ? ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hs = (e, t) => ft(e, "name", { value: t, configurable: !0 }), Xs = (e) => [, , , Rs(e?.[jo("metadata")] ?? null)], Ws = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Lo = (e) => e !== void 0 && typeof e != "function" ? Fo("Function expected") : e, Ys = (e, t, r, n, o) => ({ kind: Ws[e], name: t, metadata: n, addInitializer: (i) => r._ ? Fo("Already initialized") : o.push(Lo(i || null)) }), Js = (e, t) => Gs(t, jo("metadata"), e[3]), qs = (e, t, r, n) => {
|
|
915
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
916
|
+
return n;
|
|
917
|
+
}, Ks = (e, t, r, n, o, i) => {
|
|
918
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Us(o, r));
|
|
919
|
+
Hs(o, r);
|
|
920
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
921
|
+
h = Ys(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, Lo(s) && (o = s);
|
|
922
|
+
return Js(e, o), d && ft(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
923
|
+
}, Ao, mt, No;
|
|
924
|
+
Ao = [x()];
|
|
925
|
+
class we extends (No = k) {
|
|
706
926
|
render() {
|
|
707
|
-
return /* @__PURE__ */
|
|
927
|
+
return /* @__PURE__ */ f(
|
|
708
928
|
"svg",
|
|
709
929
|
{
|
|
710
930
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -718,20 +938,33 @@ class oe extends (In = y) {
|
|
|
718
938
|
"stroke-linejoin": "round",
|
|
719
939
|
class: "lucide lucide-ellipsis-vertical-icon lucide-ellipsis-vertical",
|
|
720
940
|
children: [
|
|
721
|
-
/* @__PURE__ */
|
|
722
|
-
/* @__PURE__ */
|
|
723
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ u("circle", { cx: "12", cy: "12", r: "1" }),
|
|
942
|
+
/* @__PURE__ */ u("circle", { cx: "12", cy: "5", r: "1" }),
|
|
943
|
+
/* @__PURE__ */ u("circle", { cx: "12", cy: "19", r: "1" })
|
|
724
944
|
]
|
|
725
945
|
}
|
|
726
946
|
);
|
|
727
947
|
}
|
|
728
948
|
}
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
949
|
+
mt = Xs(No);
|
|
950
|
+
we = Ks(mt, 0, "EllipsisVerticalIcon", Ao, we);
|
|
951
|
+
qs(mt, 1, we);
|
|
952
|
+
var Zs = Object.create, xt = Object.defineProperty, Qs = Object.getOwnPropertyDescriptor, Bo = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), Ro = (e) => {
|
|
953
|
+
throw TypeError(e);
|
|
954
|
+
}, Vs = (e, t, r) => t in e ? xt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, el = (e, t) => xt(e, "name", { value: t, configurable: !0 }), tl = (e) => [, , , Zs(e?.[Bo("metadata")] ?? null)], rl = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Uo = (e) => e !== void 0 && typeof e != "function" ? Ro("Function expected") : e, ol = (e, t, r, n, o) => ({ kind: rl[e], name: t, metadata: n, addInitializer: (i) => r._ ? Ro("Already initialized") : o.push(Uo(i || null)) }), nl = (e, t) => Vs(t, Bo("metadata"), e[3]), il = (e, t, r, n) => {
|
|
955
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
956
|
+
return n;
|
|
957
|
+
}, al = (e, t, r, n, o, i) => {
|
|
958
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Qs(o, r));
|
|
959
|
+
el(o, r);
|
|
960
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
961
|
+
h = ol(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, Uo(s) && (o = s);
|
|
962
|
+
return nl(e, o), d && xt(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
963
|
+
}, Go, wt, Ho;
|
|
964
|
+
Go = [x()];
|
|
965
|
+
class $e extends (Ho = k) {
|
|
733
966
|
render() {
|
|
734
|
-
return /* @__PURE__ */
|
|
967
|
+
return /* @__PURE__ */ f(
|
|
735
968
|
"svg",
|
|
736
969
|
{
|
|
737
970
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -745,19 +978,32 @@ class ie extends (Ln = y) {
|
|
|
745
978
|
"stroke-linejoin": "round",
|
|
746
979
|
class: "lucide lucide-panel-bottom-icon lucide-panel-bottom",
|
|
747
980
|
children: [
|
|
748
|
-
/* @__PURE__ */
|
|
749
|
-
/* @__PURE__ */
|
|
981
|
+
/* @__PURE__ */ u("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
982
|
+
/* @__PURE__ */ u("path", { d: "M3 15h18" })
|
|
750
983
|
]
|
|
751
984
|
}
|
|
752
985
|
);
|
|
753
986
|
}
|
|
754
987
|
}
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
988
|
+
wt = tl(Ho);
|
|
989
|
+
$e = al(wt, 0, "PanelBottomIcon", Go, $e);
|
|
990
|
+
il(wt, 1, $e);
|
|
991
|
+
var sl = Object.create, $t = Object.defineProperty, ll = Object.getOwnPropertyDescriptor, Xo = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), Wo = (e) => {
|
|
992
|
+
throw TypeError(e);
|
|
993
|
+
}, cl = (e, t, r) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dl = (e, t) => $t(e, "name", { value: t, configurable: !0 }), pl = (e) => [, , , sl(e?.[Xo("metadata")] ?? null)], ul = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Yo = (e) => e !== void 0 && typeof e != "function" ? Wo("Function expected") : e, hl = (e, t, r, n, o) => ({ kind: ul[e], name: t, metadata: n, addInitializer: (i) => r._ ? Wo("Already initialized") : o.push(Yo(i || null)) }), _l = (e, t) => cl(t, Xo("metadata"), e[3]), vl = (e, t, r, n) => {
|
|
994
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
995
|
+
return n;
|
|
996
|
+
}, bl = (e, t, r, n, o, i) => {
|
|
997
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && ll(o, r));
|
|
998
|
+
dl(o, r);
|
|
999
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
1000
|
+
h = hl(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, Yo(s) && (o = s);
|
|
1001
|
+
return _l(e, o), d && $t(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
1002
|
+
}, Jo, yt, qo;
|
|
1003
|
+
Jo = [x()];
|
|
1004
|
+
class ye extends (qo = k) {
|
|
759
1005
|
render() {
|
|
760
|
-
return /* @__PURE__ */
|
|
1006
|
+
return /* @__PURE__ */ f(
|
|
761
1007
|
"svg",
|
|
762
1008
|
{
|
|
763
1009
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -771,19 +1017,32 @@ class se extends (_n = y) {
|
|
|
771
1017
|
"stroke-linejoin": "round",
|
|
772
1018
|
class: "lucide lucide-panel-left-icon lucide-panel-left",
|
|
773
1019
|
children: [
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
/* @__PURE__ */
|
|
1020
|
+
/* @__PURE__ */ u("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
1021
|
+
/* @__PURE__ */ u("path", { d: "M9 3v18" })
|
|
776
1022
|
]
|
|
777
1023
|
}
|
|
778
1024
|
);
|
|
779
1025
|
}
|
|
780
1026
|
}
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
1027
|
+
yt = pl(qo);
|
|
1028
|
+
ye = bl(yt, 0, "PanelLeftIcon", Jo, ye);
|
|
1029
|
+
vl(yt, 1, ye);
|
|
1030
|
+
var gl = Object.create, St = Object.defineProperty, fl = Object.getOwnPropertyDescriptor, Ko = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), Zo = (e) => {
|
|
1031
|
+
throw TypeError(e);
|
|
1032
|
+
}, ml = (e, t, r) => t in e ? St(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xl = (e, t) => St(e, "name", { value: t, configurable: !0 }), wl = (e) => [, , , gl(e?.[Ko("metadata")] ?? null)], $l = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Qo = (e) => e !== void 0 && typeof e != "function" ? Zo("Function expected") : e, yl = (e, t, r, n, o) => ({ kind: $l[e], name: t, metadata: n, addInitializer: (i) => r._ ? Zo("Already initialized") : o.push(Qo(i || null)) }), Sl = (e, t) => ml(t, Ko("metadata"), e[3]), kl = (e, t, r, n) => {
|
|
1033
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
1034
|
+
return n;
|
|
1035
|
+
}, zl = (e, t, r, n, o, i) => {
|
|
1036
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && fl(o, r));
|
|
1037
|
+
xl(o, r);
|
|
1038
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
1039
|
+
h = yl(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, Qo(s) && (o = s);
|
|
1040
|
+
return Sl(e, o), d && St(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
1041
|
+
}, Vo, kt, en;
|
|
1042
|
+
Vo = [x()];
|
|
1043
|
+
class Se extends (en = k) {
|
|
785
1044
|
render() {
|
|
786
|
-
return /* @__PURE__ */
|
|
1045
|
+
return /* @__PURE__ */ f(
|
|
787
1046
|
"svg",
|
|
788
1047
|
{
|
|
789
1048
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -797,19 +1056,32 @@ class ae extends ($n = y) {
|
|
|
797
1056
|
"stroke-linejoin": "round",
|
|
798
1057
|
class: "lucide lucide-panel-right-icon lucide-panel-right",
|
|
799
1058
|
children: [
|
|
800
|
-
/* @__PURE__ */
|
|
801
|
-
/* @__PURE__ */
|
|
1059
|
+
/* @__PURE__ */ u("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
1060
|
+
/* @__PURE__ */ u("path", { d: "M15 3v18" })
|
|
802
1061
|
]
|
|
803
1062
|
}
|
|
804
1063
|
);
|
|
805
1064
|
}
|
|
806
1065
|
}
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
1066
|
+
kt = wl(en);
|
|
1067
|
+
Se = zl(kt, 0, "PanelRightIcon", Vo, Se);
|
|
1068
|
+
kl(kt, 1, Se);
|
|
1069
|
+
var Il = Object.create, zt = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor, tn = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), rn = (e) => {
|
|
1070
|
+
throw TypeError(e);
|
|
1071
|
+
}, Pl = (e, t, r) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Cl = (e, t) => zt(e, "name", { value: t, configurable: !0 }), El = (e) => [, , , Il(e?.[tn("metadata")] ?? null)], Dl = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], on = (e) => e !== void 0 && typeof e != "function" ? rn("Function expected") : e, Ml = (e, t, r, n, o) => ({ kind: Dl[e], name: t, metadata: n, addInitializer: (i) => r._ ? rn("Already initialized") : o.push(on(i || null)) }), Tl = (e, t) => Pl(t, tn("metadata"), e[3]), jl = (e, t, r, n) => {
|
|
1072
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
1073
|
+
return n;
|
|
1074
|
+
}, Fl = (e, t, r, n, o, i) => {
|
|
1075
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Ol(o, r));
|
|
1076
|
+
Cl(o, r);
|
|
1077
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
1078
|
+
h = Ml(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, on(s) && (o = s);
|
|
1079
|
+
return Tl(e, o), d && zt(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
1080
|
+
}, nn, It, an;
|
|
1081
|
+
nn = [x()];
|
|
1082
|
+
class ke extends (an = k) {
|
|
811
1083
|
render() {
|
|
812
|
-
return /* @__PURE__ */
|
|
1084
|
+
return /* @__PURE__ */ f(
|
|
813
1085
|
"svg",
|
|
814
1086
|
{
|
|
815
1087
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -823,19 +1095,32 @@ class le extends (jn = y) {
|
|
|
823
1095
|
"stroke-linejoin": "round",
|
|
824
1096
|
class: "lucide lucide-panel-top-icon lucide-panel-top",
|
|
825
1097
|
children: [
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
/* @__PURE__ */
|
|
1098
|
+
/* @__PURE__ */ u("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
1099
|
+
/* @__PURE__ */ u("path", { d: "M3 9h18" })
|
|
828
1100
|
]
|
|
829
1101
|
}
|
|
830
1102
|
);
|
|
831
1103
|
}
|
|
832
1104
|
}
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
It
|
|
836
|
-
|
|
1105
|
+
It = El(an);
|
|
1106
|
+
ke = Fl(It, 0, "PanelTopIcon", nn, ke);
|
|
1107
|
+
jl(It, 1, ke);
|
|
1108
|
+
var Ll = Object.create, Ot = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, sn = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), ln = (e) => {
|
|
1109
|
+
throw TypeError(e);
|
|
1110
|
+
}, Nl = (e, t, r) => t in e ? Ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bl = (e, t) => Ot(e, "name", { value: t, configurable: !0 }), Rl = (e) => [, , , Ll(e?.[sn("metadata")] ?? null)], Ul = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], cn = (e) => e !== void 0 && typeof e != "function" ? ln("Function expected") : e, Gl = (e, t, r, n, o) => ({ kind: Ul[e], name: t, metadata: n, addInitializer: (i) => r._ ? ln("Already initialized") : o.push(cn(i || null)) }), Hl = (e, t) => Nl(t, sn("metadata"), e[3]), Xl = (e, t, r, n) => {
|
|
1111
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
1112
|
+
return n;
|
|
1113
|
+
}, Wl = (e, t, r, n, o, i) => {
|
|
1114
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Al(o, r));
|
|
1115
|
+
Bl(o, r);
|
|
1116
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
1117
|
+
h = Gl(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, cn(s) && (o = s);
|
|
1118
|
+
return Hl(e, o), d && Ot(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
1119
|
+
}, dn, Pt, pn;
|
|
1120
|
+
dn = [x()];
|
|
1121
|
+
class ze extends (pn = k) {
|
|
837
1122
|
render() {
|
|
838
|
-
return /* @__PURE__ */
|
|
1123
|
+
return /* @__PURE__ */ f(
|
|
839
1124
|
"svg",
|
|
840
1125
|
{
|
|
841
1126
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -849,170 +1134,192 @@ class ce extends (En = y) {
|
|
|
849
1134
|
"stroke-linejoin": "round",
|
|
850
1135
|
class: "lucide lucide-x-icon lucide-x",
|
|
851
1136
|
children: [
|
|
852
|
-
/* @__PURE__ */
|
|
853
|
-
/* @__PURE__ */
|
|
1137
|
+
/* @__PURE__ */ u("path", { d: "M18 6 6 18" }),
|
|
1138
|
+
/* @__PURE__ */ u("path", { d: "m6 6 12 12" })
|
|
854
1139
|
]
|
|
855
1140
|
}
|
|
856
1141
|
);
|
|
857
1142
|
}
|
|
858
1143
|
}
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
1144
|
+
Pt = Rl(pn);
|
|
1145
|
+
ze = Wl(Pt, 0, "XIcon", dn, ze);
|
|
1146
|
+
Xl(Pt, 1, ze);
|
|
1147
|
+
var Yl = Object.create, Ct = Object.defineProperty, Jl = Object.getOwnPropertyDescriptor, un = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), hn = (e) => {
|
|
1148
|
+
throw TypeError(e);
|
|
1149
|
+
}, ql = (e, t, r) => t in e ? Ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kl = (e, t) => Ct(e, "name", { value: t, configurable: !0 }), Zl = (e) => [, , , Yl(e?.[un("metadata")] ?? null)], Ql = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], _n = (e) => e !== void 0 && typeof e != "function" ? hn("Function expected") : e, Vl = (e, t, r, n, o) => ({ kind: Ql[e], name: t, metadata: n, addInitializer: (i) => r._ ? hn("Already initialized") : o.push(_n(i || null)) }), ec = (e, t) => ql(t, un("metadata"), e[3]), tc = (e, t, r, n) => {
|
|
1150
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(r);
|
|
1151
|
+
return n;
|
|
1152
|
+
}, rc = (e, t, r, n, o, i) => {
|
|
1153
|
+
var s, c, h, l = t & 7, _ = !1, a = 0, b = e[a] || (e[a] = []), d = l && (o = o.prototype, l < 5 && (l > 3 || !_) && Jl(o, r));
|
|
1154
|
+
Kl(o, r);
|
|
1155
|
+
for (var p = n.length - 1; p >= 0; p--)
|
|
1156
|
+
h = Vl(l, r, c = {}, e[3], b), s = (0, n[p])(o, h), c._ = 1, _n(s) && (o = s);
|
|
1157
|
+
return ec(e, o), d && Ct(o, r, d), _ ? l ^ 4 ? i : d : o;
|
|
1158
|
+
}, vn, Et, bn;
|
|
1159
|
+
vn = [x()];
|
|
1160
|
+
class W extends (bn = k) {
|
|
863
1161
|
render() {
|
|
864
|
-
const { title: t, active:
|
|
865
|
-
return /* @__PURE__ */
|
|
1162
|
+
const { title: t, active: r, icon: n, onClick: o } = this.props;
|
|
1163
|
+
return /* @__PURE__ */ u(
|
|
866
1164
|
"button",
|
|
867
1165
|
{
|
|
868
1166
|
title: t,
|
|
869
|
-
onClick:
|
|
870
|
-
class: () => `w-[22px] h-[22px] flex items-center justify-center rounded-md text-[11px] cursor-pointer transition-colors duration-150 ${(typeof
|
|
871
|
-
children: /* @__PURE__ */
|
|
1167
|
+
onClick: o,
|
|
1168
|
+
class: () => `w-[22px] h-[22px] flex items-center justify-center rounded-md text-[11px] cursor-pointer transition-colors duration-150 ${(typeof r == "function" ? r() : r) ? "text-accent bg-soft color-white" : "text-subtle hover:color-muted hover:bg-section"}`,
|
|
1169
|
+
children: /* @__PURE__ */ u(n, {})
|
|
872
1170
|
}
|
|
873
1171
|
);
|
|
874
1172
|
}
|
|
875
1173
|
}
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
1174
|
+
Et = Zl(bn);
|
|
1175
|
+
W = rc(Et, 0, "IconButton", vn, W);
|
|
1176
|
+
tc(Et, 1, W);
|
|
1177
|
+
var oc = Object.create, Dt = Object.defineProperty, nc = Object.getOwnPropertyDescriptor, gn = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), ue = (e) => {
|
|
1178
|
+
throw TypeError(e);
|
|
1179
|
+
}, ic = (e, t, r) => t in e ? Dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kt = (e, t) => Dt(e, "name", { value: t, configurable: !0 }), ac = (e) => [, , , oc(e?.[gn("metadata")] ?? null)], fn = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], oe = (e) => e !== void 0 && typeof e != "function" ? ue("Function expected") : e, sc = (e, t, r, n, o) => ({ kind: fn[e], name: t, metadata: n, addInitializer: (i) => r._ ? ue("Already initialized") : o.push(oe(i || null)) }), lc = (e, t) => ic(t, gn("metadata"), e[3]), z = (e, t, r, n) => {
|
|
1180
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) t & 1 ? i[o].call(r) : n = i[o].call(r, n);
|
|
1181
|
+
return n;
|
|
1182
|
+
}, F = (e, t, r, n, o, i) => {
|
|
1183
|
+
var s, c, h, l, _, a = t & 7, b = !!(t & 8), d = !!(t & 16), p = a > 3 ? e.length + 1 : a ? b ? 1 : 2 : 0, w = fn[a + 5], S = a > 3 && (e[p - 1] = []), P = e[p] || (e[p] = []), g = a && (!d && !b && (o = o.prototype), a < 5 && (a > 3 || !d) && nc(a < 4 ? o : { get [r]() {
|
|
1184
|
+
return Zt(this, i);
|
|
1185
|
+
}, set [r](v) {
|
|
1186
|
+
return Qt(this, i, v);
|
|
1187
|
+
} }, r));
|
|
1188
|
+
a ? d && a < 4 && Kt(i, (a > 2 ? "set " : a > 1 ? "get " : "") + r) : Kt(o, r);
|
|
1189
|
+
for (var $ = n.length - 1; $ >= 0; $--)
|
|
1190
|
+
l = sc(a, r, h = {}, e[3], P), a && (l.static = b, l.private = d, _ = l.access = { has: d ? (v) => cc(o, v) : (v) => r in v }, a ^ 3 && (_.get = d ? (v) => (a ^ 1 ? Zt : dc)(v, o, a ^ 4 ? i : g.get) : (v) => v[r]), a > 2 && (_.set = d ? (v, y) => Qt(v, o, y, a ^ 4 ? i : g.set) : (v, y) => v[r] = y)), c = (0, n[$])(a ? a < 4 ? d ? i : g[w] : a > 4 ? void 0 : { get: g.get, set: g.set } : o, l), h._ = 1, a ^ 4 || c === void 0 ? oe(c) && (a > 4 ? S.unshift(c) : a ? d ? i = c : g[w] = c : o = c) : typeof c != "object" || c === null ? ue("Object expected") : (oe(s = c.get) && (g.get = s), oe(s = c.set) && (g.set = s), oe(s = c.init) && S.unshift(s));
|
|
1191
|
+
return a || lc(e, o), g && Dt(o, r, g), d ? a ^ 4 ? i : g : o;
|
|
1192
|
+
}, Mt = (e, t, r) => t.has(e) || ue("Cannot " + r), cc = (e, t) => Object(t) !== t ? ue('Cannot use the "in" operator on this value') : e.has(t), Zt = (e, t, r) => (Mt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Qt = (e, t, r, n) => (Mt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), dc = (e, t, r) => (Mt(e, t, "access private method"), r), mn, xn, wn, $n, yn, Sn, kn, zn, Te, In, m;
|
|
1193
|
+
const Vt = 180, pc = 300, er = 240, uc = 380, hc = {
|
|
1194
|
+
bottom: $e,
|
|
1195
|
+
top: ke,
|
|
1196
|
+
left: ye,
|
|
1197
|
+
right: Se
|
|
882
1198
|
};
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
class _ extends (Ft = J, Ot = [C()], Ut = [C()], Dt = [C()], Nt = [C()], Et = [C()], jt = [Z()], $t = [Z()], _t = [Vt("onClose")], Ft) {
|
|
1199
|
+
In = [x()];
|
|
1200
|
+
class M extends (Te = K, zn = [O()], kn = [O()], Sn = [O()], yn = [O()], $n = [O()], wn = [ie()], xn = [ie()], mn = [Tn("onClose")], Te) {
|
|
886
1201
|
constructor() {
|
|
887
|
-
super(...arguments);
|
|
888
|
-
s(x, 5, this);
|
|
889
|
-
f(this, "activeTab", s(x, 8, this, "")), s(x, 11, this);
|
|
890
|
-
f(this, "dock", s(x, 12, this, "bottom")), s(x, 15, this);
|
|
891
|
-
f(this, "dockMenuOpen", s(x, 16, this, !1)), s(x, 19, this);
|
|
892
|
-
f(this, "bottomSize", s(x, 20, this, un)), s(x, 23, this);
|
|
893
|
-
f(this, "vertSize", s(x, 24, this, pn)), s(x, 27, this);
|
|
894
|
-
f(this, "plugins", s(x, 28, this, [])), s(x, 31, this);
|
|
895
|
-
f(this, "registry", s(x, 32, this)), s(x, 35, this);
|
|
1202
|
+
super(...arguments), z(m, 5, this), this.activeTab = z(m, 8, this, ""), z(m, 11, this), this.dock = z(m, 12, this, "bottom"), z(m, 15, this), this.dockMenuOpen = z(m, 16, this, !1), z(m, 19, this), this.bottomSize = z(m, 20, this, pc), z(m, 23, this), this.vertSize = z(m, 24, this, uc), z(m, 27, this), this.plugins = z(m, 28, this, []), z(m, 31, this), this.registry = z(m, 32, this), z(m, 35, this);
|
|
896
1203
|
}
|
|
897
1204
|
handleClose() {
|
|
898
1205
|
}
|
|
899
1206
|
onMount() {
|
|
900
1207
|
this.plugins.length > 0 && (this.activeTab = this.plugins[0].id);
|
|
901
1208
|
}
|
|
902
|
-
handleMouseDown(
|
|
903
|
-
|
|
904
|
-
const
|
|
905
|
-
const
|
|
906
|
-
|
|
907
|
-
|
|
1209
|
+
handleMouseDown(t) {
|
|
1210
|
+
t.preventDefault();
|
|
1211
|
+
const r = t.clientX, n = t.clientY, o = this.dock, i = o === "bottom" || o === "top" ? this.bottomSize : this.vertSize, s = (h) => {
|
|
1212
|
+
const l = this.dock;
|
|
1213
|
+
l === "bottom" ? this.bottomSize = Math.max(
|
|
1214
|
+
Vt,
|
|
908
1215
|
Math.min(
|
|
909
1216
|
window.innerHeight * 0.85,
|
|
910
|
-
|
|
1217
|
+
i + (n - h.clientY)
|
|
911
1218
|
)
|
|
912
|
-
) :
|
|
913
|
-
|
|
1219
|
+
) : l === "top" ? this.bottomSize = Math.max(
|
|
1220
|
+
Vt,
|
|
914
1221
|
Math.min(
|
|
915
1222
|
window.innerHeight * 0.85,
|
|
916
|
-
|
|
1223
|
+
i + (h.clientY - n)
|
|
917
1224
|
)
|
|
918
|
-
) :
|
|
919
|
-
|
|
920
|
-
Math.min(window.innerWidth * 0.6,
|
|
1225
|
+
) : l === "left" ? this.vertSize = Math.max(
|
|
1226
|
+
er,
|
|
1227
|
+
Math.min(window.innerWidth * 0.6, i + (h.clientX - r))
|
|
921
1228
|
) : this.vertSize = Math.max(
|
|
922
|
-
|
|
923
|
-
Math.min(window.innerWidth * 0.6,
|
|
1229
|
+
er,
|
|
1230
|
+
Math.min(window.innerWidth * 0.6, i + (r - h.clientX))
|
|
924
1231
|
);
|
|
925
|
-
},
|
|
926
|
-
document.removeEventListener("mousemove",
|
|
1232
|
+
}, c = () => {
|
|
1233
|
+
document.removeEventListener("mousemove", s), document.removeEventListener("mouseup", c);
|
|
927
1234
|
};
|
|
928
|
-
document.addEventListener("mousemove",
|
|
1235
|
+
document.addEventListener("mousemove", s), document.addEventListener("mouseup", c);
|
|
929
1236
|
}
|
|
930
1237
|
render() {
|
|
931
|
-
return /* @__PURE__ */
|
|
1238
|
+
return /* @__PURE__ */ f(
|
|
932
1239
|
"div",
|
|
933
1240
|
{
|
|
934
1241
|
class: () => {
|
|
935
|
-
const
|
|
936
|
-
return
|
|
1242
|
+
const t = this.dock;
|
|
1243
|
+
return t === "top" ? "flex flex-col-reverse fixed top-0 left-0 w-full z-[2147483647]" : t === "left" ? "flex flex-row-reverse fixed left-0 top-0 h-screen z-[2147483647]" : t === "right" ? "flex fixed right-0 top-0 h-screen z-[2147483647]" : "flex flex-col fixed bottom-0 left-0 w-full z-[2147483647]";
|
|
937
1244
|
},
|
|
938
1245
|
children: [
|
|
939
|
-
/* @__PURE__ */
|
|
1246
|
+
/* @__PURE__ */ u(
|
|
940
1247
|
"div",
|
|
941
1248
|
{
|
|
942
1249
|
class: () => {
|
|
943
|
-
const
|
|
944
|
-
return
|
|
1250
|
+
const t = this.dock;
|
|
1251
|
+
return t === "bottom" || t === "top" ? "h-1 cursor-[ns-resize] bg-transparent hover:bg-accent transition-colors duration-200" : "w-1 cursor-[ew-resize] bg-transparent hover:bg-accent transition-colors duration-200";
|
|
945
1252
|
},
|
|
946
|
-
onMouseDown: (
|
|
947
|
-
this.handleMouseDown(
|
|
1253
|
+
onMouseDown: (t) => {
|
|
1254
|
+
this.handleMouseDown(t);
|
|
948
1255
|
}
|
|
949
1256
|
}
|
|
950
1257
|
),
|
|
951
|
-
/* @__PURE__ */
|
|
1258
|
+
/* @__PURE__ */ u(
|
|
952
1259
|
"div",
|
|
953
1260
|
{
|
|
954
1261
|
class: () => {
|
|
955
|
-
const
|
|
956
|
-
return
|
|
1262
|
+
const t = this.dock;
|
|
1263
|
+
return t === "top" ? "w-full h-full bg-bg border-b border-border" : t === "left" ? "w-full h-full bg-bg border-r border-border" : t === "right" ? "w-full h-full bg-bg border-l border-border" : "w-full h-full bg-bg border-t border-border";
|
|
957
1264
|
},
|
|
958
1265
|
style: () => {
|
|
959
|
-
const
|
|
960
|
-
return
|
|
1266
|
+
const t = this.dock;
|
|
1267
|
+
return t === "bottom" || t === "top" ? { height: `${this.bottomSize.toString()}px` } : { width: `${this.vertSize.toString()}px` };
|
|
961
1268
|
},
|
|
962
|
-
children: /* @__PURE__ */
|
|
963
|
-
/* @__PURE__ */
|
|
964
|
-
/* @__PURE__ */
|
|
965
|
-
/* @__PURE__ */
|
|
966
|
-
/* @__PURE__ */
|
|
1269
|
+
children: /* @__PURE__ */ f("div", { class: "flex flex-col flex-1 w-full h-full overflow-hidden", children: [
|
|
1270
|
+
/* @__PURE__ */ f("div", { class: "flex h-10 items-stretch border-b border-border bg-header shrink-0 px-2 gap-[2px]", children: [
|
|
1271
|
+
/* @__PURE__ */ f("div", { class: "flex items-center gap-[6px] pr-3 mr-[2px] border-r border-border shrink-0", children: [
|
|
1272
|
+
/* @__PURE__ */ u("img", { class: "h-[13px] w-[13px]", src: ir }),
|
|
1273
|
+
/* @__PURE__ */ u("span", { class: "text-[10px] font-bold text-accent tracking-widest uppercase", children: "praxisjs" })
|
|
967
1274
|
] }),
|
|
968
|
-
/* @__PURE__ */
|
|
1275
|
+
/* @__PURE__ */ u("div", { class: "flex items-stretch flex-1", children: () => this.plugins.map((t) => /* @__PURE__ */ f(
|
|
969
1276
|
"button",
|
|
970
1277
|
{
|
|
971
|
-
class: () => this.activeTab ===
|
|
1278
|
+
class: () => this.activeTab === t.id ? "relative flex items-center px-3 text-[11px] font-semibold text-accent cursor-pointer" : "flex items-center px-3 text-[11px] text-muted cursor-pointer hover:text-text transition-colors duration-150",
|
|
972
1279
|
onClick: () => {
|
|
973
|
-
this.activeTab =
|
|
1280
|
+
this.activeTab = t.id;
|
|
974
1281
|
},
|
|
975
1282
|
children: [
|
|
976
|
-
|
|
977
|
-
() => this.activeTab ===
|
|
1283
|
+
t.label,
|
|
1284
|
+
() => this.activeTab === t.id ? /* @__PURE__ */ u("span", { class: "absolute bottom-0 left-0 right-0 h-[2px] bg-accent" }) : null
|
|
978
1285
|
]
|
|
979
1286
|
},
|
|
980
|
-
|
|
1287
|
+
t.id
|
|
981
1288
|
)) }),
|
|
982
|
-
/* @__PURE__ */
|
|
983
|
-
/* @__PURE__ */
|
|
984
|
-
/* @__PURE__ */
|
|
985
|
-
|
|
1289
|
+
/* @__PURE__ */ f("div", { class: "flex items-center gap-[2px] shrink-0", children: [
|
|
1290
|
+
/* @__PURE__ */ f("div", { class: "relative", children: [
|
|
1291
|
+
/* @__PURE__ */ u(
|
|
1292
|
+
W,
|
|
986
1293
|
{
|
|
987
1294
|
title: "Dock position",
|
|
988
|
-
icon:
|
|
1295
|
+
icon: we,
|
|
989
1296
|
active: () => this.dockMenuOpen,
|
|
990
1297
|
onClick: () => {
|
|
991
1298
|
this.dockMenuOpen = !this.dockMenuOpen;
|
|
992
1299
|
}
|
|
993
1300
|
}
|
|
994
1301
|
),
|
|
995
|
-
() => this.dockMenuOpen ? /* @__PURE__ */
|
|
996
|
-
(
|
|
997
|
-
|
|
1302
|
+
() => this.dockMenuOpen ? /* @__PURE__ */ u("div", { class: "absolute right-0 top-full mt-1 flex gap-[2px] bg-bg border border-border rounded-md shadow-lg p-1 z-10", children: ["bottom", "top", "left", "right"].map(
|
|
1303
|
+
(t) => /* @__PURE__ */ u(
|
|
1304
|
+
W,
|
|
998
1305
|
{
|
|
999
|
-
title: `Dock ${
|
|
1000
|
-
active: () => this.dock ===
|
|
1001
|
-
icon:
|
|
1306
|
+
title: `Dock ${t}`,
|
|
1307
|
+
active: () => this.dock === t,
|
|
1308
|
+
icon: hc[t],
|
|
1002
1309
|
onClick: () => {
|
|
1003
|
-
this.dock =
|
|
1310
|
+
this.dock = t, this.dockMenuOpen = !1;
|
|
1004
1311
|
}
|
|
1005
1312
|
},
|
|
1006
|
-
|
|
1313
|
+
t
|
|
1007
1314
|
)
|
|
1008
1315
|
) }) : null
|
|
1009
1316
|
] }),
|
|
1010
|
-
/* @__PURE__ */
|
|
1011
|
-
/* @__PURE__ */
|
|
1012
|
-
|
|
1317
|
+
/* @__PURE__ */ u("div", { class: "w-px h-3 bg-border mx-1" }),
|
|
1318
|
+
/* @__PURE__ */ u(
|
|
1319
|
+
W,
|
|
1013
1320
|
{
|
|
1014
1321
|
title: "Close",
|
|
1015
|
-
icon:
|
|
1322
|
+
icon: ze,
|
|
1016
1323
|
onClick: () => {
|
|
1017
1324
|
this.handleClose();
|
|
1018
1325
|
}
|
|
@@ -1020,11 +1327,11 @@ class _ extends (Ft = J, Ot = [C()], Ut = [C()], Dt = [C()], Nt = [C()], Et = [C
|
|
|
1020
1327
|
)
|
|
1021
1328
|
] })
|
|
1022
1329
|
] }),
|
|
1023
|
-
/* @__PURE__ */
|
|
1024
|
-
const
|
|
1025
|
-
(
|
|
1330
|
+
/* @__PURE__ */ u("div", { class: "flex-1 overflow-hidden flex flex-col", children: () => {
|
|
1331
|
+
const r = this.plugins.find(
|
|
1332
|
+
(n) => n.id === this.activeTab
|
|
1026
1333
|
)?.component;
|
|
1027
|
-
return
|
|
1334
|
+
return r ? /* @__PURE__ */ u(r, { registry: this.registry }) : null;
|
|
1028
1335
|
} })
|
|
1029
1336
|
] })
|
|
1030
1337
|
}
|
|
@@ -1034,24 +1341,46 @@ class _ extends (Ft = J, Ot = [C()], Ut = [C()], Dt = [C()], Nt = [C()], Et = [C
|
|
|
1034
1341
|
);
|
|
1035
1342
|
}
|
|
1036
1343
|
}
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1344
|
+
m = ac(Te);
|
|
1345
|
+
F(m, 1, "handleClose", mn, M);
|
|
1346
|
+
F(m, 5, "activeTab", zn, M);
|
|
1347
|
+
F(m, 5, "dock", kn, M);
|
|
1348
|
+
F(m, 5, "dockMenuOpen", Sn, M);
|
|
1349
|
+
F(m, 5, "bottomSize", yn, M);
|
|
1350
|
+
F(m, 5, "vertSize", $n, M);
|
|
1351
|
+
F(m, 5, "plugins", wn, M);
|
|
1352
|
+
F(m, 5, "registry", xn, M);
|
|
1353
|
+
M = F(m, 0, "Panel", In, M);
|
|
1354
|
+
z(m, 1, M);
|
|
1355
|
+
var _c = Object.create, Tt = Object.defineProperty, vc = Object.getOwnPropertyDescriptor, On = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), he = (e) => {
|
|
1356
|
+
throw TypeError(e);
|
|
1357
|
+
}, bc = (e, t, r) => t in e ? Tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tr = (e, t) => Tt(e, "name", { value: t, configurable: !0 }), gc = (e) => [, , , _c(e?.[On("metadata")] ?? null)], Pn = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ne = (e) => e !== void 0 && typeof e != "function" ? he("Function expected") : e, fc = (e, t, r, n, o) => ({ kind: Pn[e], name: t, metadata: n, addInitializer: (i) => r._ ? he("Already initialized") : o.push(ne(i || null)) }), mc = (e, t) => bc(t, On("metadata"), e[3]), B = (e, t, r, n) => {
|
|
1358
|
+
for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) t & 1 ? i[o].call(r) : n = i[o].call(r, n);
|
|
1359
|
+
return n;
|
|
1360
|
+
}, Pe = (e, t, r, n, o, i) => {
|
|
1361
|
+
var s, c, h, l, _, a = t & 7, b = !!(t & 8), d = !!(t & 16), p = a > 3 ? e.length + 1 : a ? b ? 1 : 2 : 0, w = Pn[a + 5], S = a > 3 && (e[p - 1] = []), P = e[p] || (e[p] = []), g = a && (!d && !b && (o = o.prototype), a < 5 && (a > 3 || !d) && vc(a < 4 ? o : { get [r]() {
|
|
1362
|
+
return rr(this, i);
|
|
1363
|
+
}, set [r](v) {
|
|
1364
|
+
return or(this, i, v);
|
|
1365
|
+
} }, r));
|
|
1366
|
+
a ? d && a < 4 && tr(i, (a > 2 ? "set " : a > 1 ? "get " : "") + r) : tr(o, r);
|
|
1367
|
+
for (var $ = n.length - 1; $ >= 0; $--)
|
|
1368
|
+
l = fc(a, r, h = {}, e[3], P), a && (l.static = b, l.private = d, _ = l.access = { has: d ? (v) => xc(o, v) : (v) => r in v }, a ^ 3 && (_.get = d ? (v) => (a ^ 1 ? rr : wc)(v, o, a ^ 4 ? i : g.get) : (v) => v[r]), a > 2 && (_.set = d ? (v, y) => or(v, o, y, a ^ 4 ? i : g.set) : (v, y) => v[r] = y)), c = (0, n[$])(a ? a < 4 ? d ? i : g[w] : a > 4 ? void 0 : { get: g.get, set: g.set } : o, l), h._ = 1, a ^ 4 || c === void 0 ? ne(c) && (a > 4 ? S.unshift(c) : a ? d ? i = c : g[w] = c : o = c) : typeof c != "object" || c === null ? he("Object expected") : (ne(s = c.get) && (g.get = s), ne(s = c.set) && (g.set = s), ne(s = c.init) && S.unshift(s));
|
|
1369
|
+
return a || mc(e, o), g && Tt(o, r, g), d ? a ^ 4 ? i : g : o;
|
|
1370
|
+
}, jt = (e, t, r) => t.has(e) || he("Cannot " + r), xc = (e, t) => Object(t) !== t ? he('Cannot use the "in" operator on this value') : e.has(t), rr = (e, t, r) => (jt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), or = (e, t, r, n) => (jt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), wc = (e, t, r) => (jt(e, t, "access private method"), r), Cn, En, Dn, je, Mn, D;
|
|
1371
|
+
const $c = [
|
|
1372
|
+
ds,
|
|
1373
|
+
va,
|
|
1374
|
+
Ns
|
|
1042
1375
|
];
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
class D extends (Wt = J, Gt = [C()], Ht = [Z()], Bt = [Z()], Wt) {
|
|
1376
|
+
Mn = [x()];
|
|
1377
|
+
class L extends (je = K, Dn = [O()], En = [ie()], Cn = [ie()], je) {
|
|
1046
1378
|
constructor() {
|
|
1047
|
-
super(...arguments);
|
|
1048
|
-
f(this, "open", s(L, 8, this, !1)), s(L, 11, this);
|
|
1049
|
-
f(this, "plugins", s(L, 12, this, [])), s(L, 15, this);
|
|
1050
|
-
f(this, "registry", s(L, 16, this)), s(L, 19, this);
|
|
1379
|
+
super(...arguments), this.open = B(D, 8, this, !1), B(D, 11, this), this.plugins = B(D, 12, this, []), B(D, 15, this), this.registry = B(D, 16, this), B(D, 19, this);
|
|
1051
1380
|
}
|
|
1052
1381
|
render() {
|
|
1053
|
-
return /* @__PURE__ */
|
|
1054
|
-
|
|
1382
|
+
return /* @__PURE__ */ u("div", { children: () => this.open ? /* @__PURE__ */ u(
|
|
1383
|
+
M,
|
|
1055
1384
|
{
|
|
1056
1385
|
plugins: this.plugins,
|
|
1057
1386
|
registry: this.registry,
|
|
@@ -1059,7 +1388,7 @@ class D extends (Wt = J, Gt = [C()], Ht = [Z()], Bt = [Z()], Wt) {
|
|
|
1059
1388
|
this.open = !1;
|
|
1060
1389
|
}
|
|
1061
1390
|
}
|
|
1062
|
-
) : /* @__PURE__ */
|
|
1391
|
+
) : /* @__PURE__ */ f(
|
|
1063
1392
|
"button",
|
|
1064
1393
|
{
|
|
1065
1394
|
onClick: () => {
|
|
@@ -1067,186 +1396,199 @@ class D extends (Wt = J, Gt = [C()], Ht = [Z()], Bt = [Z()], Wt) {
|
|
|
1067
1396
|
},
|
|
1068
1397
|
class: "fixed bottom-5 right-5 z-[2147483647] flex items-center gap-1 pl-[10px] pr-[14px] h-[32px] rounded-xl font-sans font-semibold text-[12px] text-accent bg-header border border-border cursor-pointer select-none shadow-[0_8px_32px_rgba(0,0,0,0.7)] transition-all duration-200 hover:border-accent hover:bg-soft hover:shadow-[0_8px_32px_rgba(56,189,248,0.1)]",
|
|
1069
1398
|
children: [
|
|
1070
|
-
/* @__PURE__ */
|
|
1071
|
-
/* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ u("img", { class: "h-[13px] w-[13px]", src: ir }),
|
|
1400
|
+
/* @__PURE__ */ u("span", { class: "text-[10px] font-bold text-accent tracking-widest uppercase", children: "devtools" })
|
|
1072
1401
|
]
|
|
1073
1402
|
}
|
|
1074
1403
|
) });
|
|
1075
1404
|
}
|
|
1076
1405
|
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1406
|
+
D = gc(je);
|
|
1407
|
+
Pe(D, 5, "open", Dn, L);
|
|
1408
|
+
Pe(D, 5, "plugins", En, L);
|
|
1409
|
+
Pe(D, 5, "registry", Cn, L);
|
|
1410
|
+
L = Pe(D, 0, "DevToolsApp", Mn, L);
|
|
1411
|
+
B(D, 1, L);
|
|
1412
|
+
const Ec = {
|
|
1413
|
+
plugins: [...$c],
|
|
1080
1414
|
host: null,
|
|
1081
1415
|
cleanup: null,
|
|
1082
|
-
init(
|
|
1416
|
+
init(e = {}) {
|
|
1083
1417
|
if (this.host) return;
|
|
1084
|
-
|
|
1418
|
+
e.plugins && (this.plugins = e.plugins), this.plugins.forEach((i) => i.setup?.(I.instance));
|
|
1085
1419
|
const t = document.createElement("div");
|
|
1086
1420
|
t.id = "praxisjs-devtools", document.body.appendChild(t), this.host = t;
|
|
1087
|
-
const
|
|
1088
|
-
n.textContent =
|
|
1089
|
-
const
|
|
1090
|
-
|
|
1091
|
-
() => /* @__PURE__ */
|
|
1092
|
-
|
|
1421
|
+
const r = t.attachShadow({ mode: "open" }), n = document.createElement("style");
|
|
1422
|
+
n.textContent = Bs + Rn, r.appendChild(n);
|
|
1423
|
+
const o = document.createElement("div");
|
|
1424
|
+
r.appendChild(o), this.cleanup = Ft(
|
|
1425
|
+
() => /* @__PURE__ */ u(L, { plugins: this.plugins, registry: I.instance }),
|
|
1426
|
+
o
|
|
1093
1427
|
);
|
|
1094
1428
|
},
|
|
1095
|
-
registerPlugin(
|
|
1096
|
-
this.plugins.find((t) => t.id ===
|
|
1429
|
+
registerPlugin(e) {
|
|
1430
|
+
this.plugins.find((t) => t.id === e.id) || (e.setup?.(I.instance), this.plugins.push(e), this.remount());
|
|
1097
1431
|
},
|
|
1098
1432
|
get registry() {
|
|
1099
|
-
return
|
|
1433
|
+
return I.instance;
|
|
1100
1434
|
},
|
|
1101
1435
|
remount() {
|
|
1102
1436
|
if (!this.host) return;
|
|
1103
1437
|
const t = this.host.shadowRoot.querySelector("div:last-child");
|
|
1104
|
-
this.cleanup?.(), this.cleanup =
|
|
1105
|
-
() => /* @__PURE__ */
|
|
1438
|
+
this.cleanup?.(), this.cleanup = Ft(
|
|
1439
|
+
() => /* @__PURE__ */ u(L, { plugins: this.plugins, registry: I.instance }),
|
|
1106
1440
|
t
|
|
1107
1441
|
);
|
|
1108
1442
|
}
|
|
1109
1443
|
};
|
|
1110
|
-
function
|
|
1111
|
-
return typeof
|
|
1444
|
+
function nr(e) {
|
|
1445
|
+
return typeof e == "function" && typeof e.subscribe == "function" && !("set" in e);
|
|
1112
1446
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return function(
|
|
1115
|
-
const
|
|
1447
|
+
function Dc(e = {}) {
|
|
1448
|
+
return function(r, n) {
|
|
1449
|
+
const o = e.label ?? n.name;
|
|
1116
1450
|
if (n.kind === "method") {
|
|
1117
|
-
const
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1451
|
+
const i = r;
|
|
1452
|
+
jn({
|
|
1453
|
+
wrap(s, c, h) {
|
|
1454
|
+
return function(...l) {
|
|
1455
|
+
const _ = this.constructor.name, a = performance.now();
|
|
1456
|
+
let b, d = !1;
|
|
1457
|
+
try {
|
|
1458
|
+
b = i.apply(this, l);
|
|
1459
|
+
} catch (p) {
|
|
1460
|
+
throw d = !0, b = p, p;
|
|
1461
|
+
} finally {
|
|
1462
|
+
const p = performance.now() - a;
|
|
1463
|
+
I.instance.recordMethodCall(
|
|
1464
|
+
this,
|
|
1465
|
+
o,
|
|
1466
|
+
l,
|
|
1467
|
+
d ? `throw ${String(b)}` : b,
|
|
1468
|
+
p,
|
|
1469
|
+
_
|
|
1470
|
+
);
|
|
1471
|
+
}
|
|
1472
|
+
return b;
|
|
1473
|
+
};
|
|
1135
1474
|
}
|
|
1136
|
-
|
|
1137
|
-
|
|
1475
|
+
})(i, n);
|
|
1476
|
+
return;
|
|
1138
1477
|
}
|
|
1139
1478
|
if (n.kind === "getter") {
|
|
1140
|
-
const
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1479
|
+
const i = r;
|
|
1480
|
+
Fn({
|
|
1481
|
+
observe(s, c, h) {
|
|
1482
|
+
const l = c.constructor.name;
|
|
1483
|
+
queueMicrotask(() => {
|
|
1484
|
+
const _ = Bn(() => s.call(c));
|
|
1485
|
+
let a = !0, b = _();
|
|
1486
|
+
I.instance.registerSignal(c, o, b, l), _.subscribe((d) => {
|
|
1487
|
+
if (a) {
|
|
1488
|
+
a = !1;
|
|
1489
|
+
return;
|
|
1490
|
+
}
|
|
1491
|
+
I.instance.updateSignal(c, o, d, b), b = d;
|
|
1492
|
+
});
|
|
1152
1493
|
});
|
|
1153
|
-
}
|
|
1154
|
-
});
|
|
1494
|
+
}
|
|
1495
|
+
})(i, n);
|
|
1155
1496
|
return;
|
|
1156
1497
|
}
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1498
|
+
Ln({
|
|
1499
|
+
bind(i, s, c) {
|
|
1500
|
+
const h = i.constructor.name, l = Object.getOwnPropertyDescriptor(i, s);
|
|
1501
|
+
if (l?.get && l.set) {
|
|
1502
|
+
const d = l.get, p = l.set;
|
|
1503
|
+
return I.instance.registerSignal(i, o, d.call(i), h), {
|
|
1504
|
+
descriptor: {
|
|
1505
|
+
get() {
|
|
1506
|
+
return d.call(this);
|
|
1507
|
+
},
|
|
1508
|
+
set(w) {
|
|
1509
|
+
const S = d.call(this);
|
|
1510
|
+
p.call(this, w), I.instance.updateSignal(this, o, w, S);
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
};
|
|
1514
|
+
}
|
|
1515
|
+
const _ = c;
|
|
1516
|
+
if (!nr(_))
|
|
1517
|
+
return _ !== void 0 && console.warn(
|
|
1518
|
+
`[PraxisJS DevTools] @Debug() on "${h}.${s}": expected a computed() value but got ${typeof _}. Skipping.`
|
|
1519
|
+
), {};
|
|
1520
|
+
let a;
|
|
1521
|
+
function b(d) {
|
|
1522
|
+
let p = !0, w = d();
|
|
1523
|
+
const S = d.subscribe((P) => {
|
|
1524
|
+
if (p) {
|
|
1525
|
+
p = !1;
|
|
1526
|
+
return;
|
|
1527
|
+
}
|
|
1528
|
+
I.instance.updateSignal(i, o, P, w), w = P;
|
|
1529
|
+
});
|
|
1530
|
+
return I.instance.registerSignal(i, o, w, h), S;
|
|
1531
|
+
}
|
|
1532
|
+
return a = { computed: _, unsub: b(_) }, {
|
|
1533
|
+
descriptor: {
|
|
1534
|
+
get() {
|
|
1535
|
+
return a.computed;
|
|
1536
|
+
},
|
|
1537
|
+
set(d) {
|
|
1538
|
+
if (a.unsub(), !nr(d)) {
|
|
1539
|
+
console.warn(
|
|
1540
|
+
`[PraxisJS DevTools] @Debug() on "${h}.${s}": expected a computed() value but got ${typeof d}. Skipping.`
|
|
1541
|
+
);
|
|
1542
|
+
return;
|
|
1543
|
+
}
|
|
1544
|
+
a = { computed: d, unsub: b(d) };
|
|
1545
|
+
}
|
|
1193
1546
|
}
|
|
1194
|
-
|
|
1195
|
-
});
|
|
1196
|
-
return v.instance.registerSignal(a, i, j, p), A;
|
|
1547
|
+
};
|
|
1197
1548
|
}
|
|
1198
|
-
|
|
1199
|
-
get() {
|
|
1200
|
-
return w.computed;
|
|
1201
|
-
},
|
|
1202
|
-
set(k) {
|
|
1203
|
-
if (w.unsub(), !Re(k)) {
|
|
1204
|
-
console.warn(
|
|
1205
|
-
`[PraxisJS DevTools] @Debug() on "${p}.${c}": expected a computed() value but got ${typeof k}. Skipping.`
|
|
1206
|
-
);
|
|
1207
|
-
return;
|
|
1208
|
-
}
|
|
1209
|
-
w = { computed: k, unsub: u(k) };
|
|
1210
|
-
},
|
|
1211
|
-
enumerable: !0,
|
|
1212
|
-
configurable: !0
|
|
1213
|
-
});
|
|
1214
|
-
});
|
|
1549
|
+
})(void 0, n);
|
|
1215
1550
|
};
|
|
1216
1551
|
}
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1552
|
+
const yc = ["onBeforeUpdate", "onUpdate", "onAfterUpdate"];
|
|
1553
|
+
class Sc extends An {
|
|
1554
|
+
create(t) {
|
|
1555
|
+
const r = I.instance;
|
|
1556
|
+
return {
|
|
1557
|
+
onMount() {
|
|
1558
|
+
r.recordLifecycle(t, "onMount");
|
|
1559
|
+
},
|
|
1560
|
+
onUnmount() {
|
|
1561
|
+
r.recordLifecycle(t, "onUnmount");
|
|
1562
|
+
},
|
|
1563
|
+
render(n) {
|
|
1564
|
+
const o = performance.now(), i = n(), s = performance.now() - o;
|
|
1565
|
+
return r.recordRender(t, s), i;
|
|
1566
|
+
}
|
|
1227
1567
|
};
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
"
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
return n.recordLifecycle(this, g), h?.call(this, ...w);
|
|
1568
|
+
}
|
|
1569
|
+
initialize(t, r) {
|
|
1570
|
+
const n = r.name, o = I.instance, i = t.prototype, s = i.onBeforeMount;
|
|
1571
|
+
i.onBeforeMount = function(...c) {
|
|
1572
|
+
return o.registerComponent(this, n), o.recordLifecycle(this, "onBeforeMount"), s?.call(this, ...c);
|
|
1573
|
+
};
|
|
1574
|
+
for (const c of yc) {
|
|
1575
|
+
const h = i[c];
|
|
1576
|
+
i[c] = function(...l) {
|
|
1577
|
+
return o.recordLifecycle(this, c), h?.call(this, ...l);
|
|
1239
1578
|
};
|
|
1240
1579
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
const kc = new Sc();
|
|
1583
|
+
function Mc() {
|
|
1584
|
+
return Nn(kc);
|
|
1243
1585
|
}
|
|
1244
1586
|
export {
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1587
|
+
va as ComponentsPlugin,
|
|
1588
|
+
Dc as Debug,
|
|
1589
|
+
Ec as DevTools,
|
|
1590
|
+
I as Registry,
|
|
1591
|
+
ds as SignalsPlugin,
|
|
1592
|
+
Ns as TimelinePlugin,
|
|
1593
|
+
Mc as Trace
|
|
1252
1594
|
};
|