@vscode/component-explorer 0.1.1-9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/LICENSE +21 -0
  2. package/SECURITY.md +14 -0
  3. package/dist/components/Explorer.d.ts +4 -3
  4. package/dist/components/Explorer.d.ts.map +1 -1
  5. package/dist/components/ExplorerModel.d.ts +18 -2
  6. package/dist/components/ExplorerModel.d.ts.map +1 -1
  7. package/dist/components/FixturePreviewItem.d.ts +1 -0
  8. package/dist/components/FixturePreviewItem.d.ts.map +1 -1
  9. package/dist/components/LeftSidebar.d.ts.map +1 -1
  10. package/dist/components/PreviewArea.d.ts.map +1 -1
  11. package/dist/components/ReportComparisonRow.d.ts +16 -0
  12. package/dist/components/ReportComparisonRow.d.ts.map +1 -0
  13. package/dist/components/ScreenshotComparisonRow.d.ts.map +1 -1
  14. package/dist/components/SearchInput.d.ts +6 -0
  15. package/dist/components/SearchInput.d.ts.map +1 -0
  16. package/dist/components/TitleBar.d.ts.map +1 -1
  17. package/dist/components/TreeView.d.ts.map +1 -1
  18. package/dist/components/index.d.ts +3 -1
  19. package/dist/components/index.d.ts.map +1 -1
  20. package/dist/components/styles.d.ts +32 -32
  21. package/dist/components/treeFilter.d.ts +3 -0
  22. package/dist/components/treeFilter.d.ts.map +1 -0
  23. package/dist/components/types.d.ts +3 -1
  24. package/dist/components/types.d.ts.map +1 -1
  25. package/dist/core/ComponentRenderer.d.ts +17 -0
  26. package/dist/core/ComponentRenderer.d.ts.map +1 -0
  27. package/dist/core/ErrorInfo.d.ts +16 -0
  28. package/dist/core/ErrorInfo.d.ts.map +1 -0
  29. package/dist/core/FixtureNode.d.ts +16 -4
  30. package/dist/core/FixtureNode.d.ts.map +1 -1
  31. package/dist/core/FixturePath.d.ts +8 -0
  32. package/dist/core/FixturePath.d.ts.map +1 -0
  33. package/dist/core/FixtureRegistry.d.ts +3 -25
  34. package/dist/core/FixtureRegistry.d.ts.map +1 -1
  35. package/dist/core/fixtureApi.d.ts +358 -0
  36. package/dist/core/fixtureApi.d.ts.map +1 -0
  37. package/dist/core/fixtureApiConsumer.d.ts +84 -0
  38. package/dist/core/fixtureApiConsumer.d.ts.map +1 -0
  39. package/dist/core/index.d.ts +15 -8
  40. package/dist/core/index.d.ts.map +1 -1
  41. package/dist/daemon/DaemonConfig.d.ts +5 -11
  42. package/dist/daemon/DaemonConfig.d.ts.map +1 -1
  43. package/dist/daemon/DaemonModel.d.ts +7 -4
  44. package/dist/daemon/DaemonModel.d.ts.map +1 -1
  45. package/dist/daemon/index.d.ts +1 -2
  46. package/dist/daemon/index.d.ts.map +1 -1
  47. package/dist/index.d.ts +9 -33
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +10 -3687
  50. package/dist/index.js.map +1 -1
  51. package/dist/lib/explorerQueryParams.d.ts +4 -0
  52. package/dist/lib/explorerQueryParams.d.ts.map +1 -0
  53. package/dist/lib/explorerShadowHost.d.ts +3 -0
  54. package/dist/lib/explorerShadowHost.d.ts.map +1 -0
  55. package/dist/lib/fixtureFocusTrap.d.ts +2 -0
  56. package/dist/lib/fixtureFocusTrap.d.ts.map +1 -0
  57. package/dist/lib/fixtureSizeCache.d.ts +3 -0
  58. package/dist/lib/fixtureSizeCache.d.ts.map +1 -1
  59. package/dist/lib/queryParamObservable.d.ts +4 -0
  60. package/dist/lib/queryParamObservable.d.ts.map +1 -0
  61. package/dist/modes/EmbeddedMode.d.ts +15 -0
  62. package/dist/modes/EmbeddedMode.d.ts.map +1 -0
  63. package/dist/modes/ExplorerUIMode.d.ts +16 -0
  64. package/dist/modes/ExplorerUIMode.d.ts.map +1 -0
  65. package/dist/{core/CliRuntime.d.ts → modes/HeadlessMode.d.ts} +20 -25
  66. package/dist/modes/HeadlessMode.d.ts.map +1 -0
  67. package/dist/report/ReportModel.d.ts +23 -0
  68. package/dist/report/ReportModel.d.ts.map +1 -0
  69. package/dist/report/ScreenshotReport.d.ts +26 -0
  70. package/dist/report/ScreenshotReport.d.ts.map +1 -0
  71. package/dist/report/index.d.ts +3 -0
  72. package/dist/report/index.d.ts.map +1 -0
  73. package/dist/runtimeVersion-CnnW4nSy.js +84 -0
  74. package/dist/runtimeVersion-CnnW4nSy.js.map +1 -0
  75. package/dist/runtimeVersion.d.ts +3 -0
  76. package/dist/runtimeVersion.d.ts.map +1 -0
  77. package/dist/viewer.d.ts +34 -0
  78. package/dist/viewer.d.ts.map +1 -0
  79. package/dist/viewer.js +4104 -0
  80. package/dist/viewer.js.map +1 -0
  81. package/package.json +29 -9
  82. package/dist/core/CliRuntime.d.ts.map +0 -1
  83. package/dist/core/ComponentDefinition.d.ts +0 -70
  84. package/dist/core/ComponentDefinition.d.ts.map +0 -1
  85. package/dist/core/defineFixture.d.ts +0 -109
  86. package/dist/core/defineFixture.d.ts.map +0 -1
  87. package/dist/index.css +0 -1
package/dist/viewer.js ADDED
@@ -0,0 +1,4104 @@
1
+ var Ao = Object.defineProperty;
2
+ var zo = (r, e, o) => e in r ? Ao(r, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[e] = o;
3
+ var s = (r, e, o) => zo(r, typeof e != "symbol" ? e + "" : e, o);
4
+ import { f as Ee, c as He, s as Te, r as re, _ as Po } from "./runtimeVersion-CnnW4nSy.js";
5
+ import { e as Et, d as Ht, a as Tt, b as Mt, g as Ot } from "./runtimeVersion-CnnW4nSy.js";
6
+ import { createRoot as Wo } from "react-dom/client";
7
+ import { createContext as io, useReducer as $o, useState as Uo, useContext as jo, useEffect as Me, createElement as qo } from "react";
8
+ import { jsx as a, jsxs as f, Fragment as ve } from "react/jsx-runtime";
9
+ import { unstable_batchedUpdates as co } from "react-dom";
10
+ import { SemanticVersion as ce } from "@hediet/semver";
11
+ function ke(r) {
12
+ return typeof r == "object" && r !== null && Te in r && r[Te] === !0 && "_options" in r && typeof r._options == "object";
13
+ }
14
+ function ye(r) {
15
+ return typeof r == "object" && r !== null && Ee in r && r[Ee] === !0 && "_entries" in r && typeof r._entries == "object";
16
+ }
17
+ function we(r) {
18
+ return typeof r == "object" && r !== null && He in r && r[He] === !0 && "_variants" in r && typeof r._variants == "object";
19
+ }
20
+ function wt(r) {
21
+ return ke(r) ? { success: !0, data: r } : ye(r) ? { success: !0, data: r } : we(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a valid fixture export (missing brand symbol or _options/_entries/_variants)" };
22
+ }
23
+ function Bt(r) {
24
+ return ke(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a SingleFixtureExport" };
25
+ }
26
+ function _t(r) {
27
+ return ye(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a FixtureGroupExport" };
28
+ }
29
+ function Ct(r) {
30
+ return we(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a FixtureVariantsExport" };
31
+ }
32
+ function Oe(r, e, o, n) {
33
+ const t = r._options;
34
+ return {
35
+ id: e,
36
+ name: o,
37
+ description: t.description,
38
+ isolation: t.isolation ?? "none",
39
+ displayMode: t.displayMode ?? { type: "component" },
40
+ styles: t.styles,
41
+ background: t.background ?? "light",
42
+ labels: t.labels ?? [],
43
+ properties: t.properties ?? [],
44
+ sourceFile: n,
45
+ render: t.render
46
+ };
47
+ }
48
+ function St(r) {
49
+ return typeof r == "object" && r !== null && "render" in r && typeof r.render == "function" && "id" in r && "name" in r;
50
+ }
51
+ class T {
52
+ constructor(e) {
53
+ s(this, "_segments");
54
+ this.value = e;
55
+ }
56
+ get segments() {
57
+ return this._segments ?? (this._segments = this.value.split("/"));
58
+ }
59
+ toString() {
60
+ return this.value;
61
+ }
62
+ }
63
+ const Qo = {
64
+ mobile: { width: 390, height: 844 },
65
+ tablet: { width: 768, height: 1024 },
66
+ desktop: { width: 1440, height: 900 }
67
+ };
68
+ function Ko(r) {
69
+ return typeof r == "string" ? { name: r, ...Qo[r] } : r;
70
+ }
71
+ function Jo(r) {
72
+ const e = {};
73
+ for (const o of r)
74
+ e[o.name] = o.defaultValue;
75
+ return e;
76
+ }
77
+ function Ve(r) {
78
+ if (r.startsWith("/"))
79
+ throw new Error(`Fixture path cannot start with '/': ${r}`);
80
+ if (r.includes("//"))
81
+ throw new Error(`Fixture path cannot contain empty segments: ${r}`);
82
+ if (r === "")
83
+ throw new Error("Fixture path cannot be empty (use undefined for default)");
84
+ }
85
+ function Zo(r, e) {
86
+ const o = ao(r);
87
+ if (e === void 0)
88
+ return [o];
89
+ if (e.endsWith("/")) {
90
+ const n = e.slice(0, -1);
91
+ if (n)
92
+ return Ve(n), [...n.split("/"), o];
93
+ throw new Error(`Fixture path cannot be just '/': ${e}`);
94
+ } else
95
+ return Ve(e), e.split("/");
96
+ }
97
+ function ne(r) {
98
+ const e = {
99
+ id: new T(""),
100
+ name: "Components",
101
+ type: "folder",
102
+ children: [],
103
+ labels: []
104
+ };
105
+ for (const [o, n] of r)
106
+ if (n === void 0) {
107
+ const t = ao(o), i = {
108
+ id: new T(t),
109
+ name: t,
110
+ type: "component",
111
+ labels: [],
112
+ sourceFile: o
113
+ };
114
+ e.children || (e.children = []), e.children.push(i);
115
+ } else {
116
+ const t = "_path" in n ? n._path : void 0, i = Zo(o, t);
117
+ lo(e, i, n, [], o);
118
+ }
119
+ return e;
120
+ }
121
+ function ao(r) {
122
+ return (r.split("/").pop() ?? r).replace(/\.fixture\.(tsx?|jsx?)$/, "");
123
+ }
124
+ function lo(r, e, o, n = [], t = "") {
125
+ var p, g;
126
+ let i = r;
127
+ const c = [...n];
128
+ for (let u = 0; u < e.length - 1; u++) {
129
+ const x = e[u];
130
+ c.push(x);
131
+ const k = new T(c.join("/"));
132
+ let B = (p = i.children) == null ? void 0 : p.find(
133
+ (b) => b.type === "folder" && b.name === x
134
+ );
135
+ B || (B = {
136
+ id: k,
137
+ name: x,
138
+ type: "folder",
139
+ children: [],
140
+ labels: []
141
+ }, i.children || (i.children = []), i.children.push(B)), i = B;
142
+ }
143
+ const d = e[e.length - 1];
144
+ c.push(d);
145
+ const l = new T(c.join("/"));
146
+ if (ke(o)) {
147
+ const u = Oe(o, l.value, d, t), x = {
148
+ id: l,
149
+ name: d,
150
+ type: "component",
151
+ component: u,
152
+ labels: [...u.labels]
153
+ };
154
+ i.children || (i.children = []), i.children.push(x);
155
+ } else if (ye(o)) {
156
+ let u = (g = i.children) == null ? void 0 : g.find(
157
+ (x) => x.type === "folder" && x.name === d
158
+ );
159
+ u || (u = {
160
+ id: l,
161
+ name: d,
162
+ type: "folder",
163
+ children: [],
164
+ labels: [...o._labels ?? []]
165
+ }, i.children || (i.children = []), i.children.push(u));
166
+ for (const [x, k] of Object.entries(o._entries))
167
+ lo(u, [x], k, c, t);
168
+ } else if (we(o)) {
169
+ const u = {
170
+ id: l,
171
+ name: d,
172
+ type: "variants",
173
+ children: [],
174
+ labels: [...o._labels ?? []]
175
+ };
176
+ i.children || (i.children = []), i.children.push(u);
177
+ for (const [x, k] of Object.entries(o._variants)) {
178
+ const B = new T([...c, x].join("/")), b = {
179
+ id: B,
180
+ name: x,
181
+ type: "component",
182
+ component: Oe(k, B.value, x, t),
183
+ labels: [...k._options.labels ?? []]
184
+ };
185
+ u.children.push(b);
186
+ }
187
+ }
188
+ }
189
+ function Le(r, e) {
190
+ if (e.length === 0)
191
+ return r;
192
+ let o = r;
193
+ for (const n of e) {
194
+ if (!o || !o.children)
195
+ return;
196
+ o = o.children.find((t) => t.name === n);
197
+ }
198
+ return o;
199
+ }
200
+ function Yo(r) {
201
+ if (r.type === "component" && r.component)
202
+ return [r.component];
203
+ const e = [];
204
+ for (const o of r.children ?? [])
205
+ e.push(...Yo(o));
206
+ return e;
207
+ }
208
+ let A;
209
+ function Xo(r) {
210
+ A ? A instanceof Ne ? A.loggers.push(r) : A = new Ne([A, r]) : A = r;
211
+ }
212
+ function y() {
213
+ return A;
214
+ }
215
+ let le;
216
+ function er(r) {
217
+ le = r;
218
+ }
219
+ function or(r) {
220
+ le && le(r);
221
+ }
222
+ class Ne {
223
+ constructor(e) {
224
+ this.loggers = e;
225
+ }
226
+ handleObservableCreated(e, o) {
227
+ for (const n of this.loggers)
228
+ n.handleObservableCreated(e, o);
229
+ }
230
+ handleOnListenerCountChanged(e, o) {
231
+ for (const n of this.loggers)
232
+ n.handleOnListenerCountChanged(e, o);
233
+ }
234
+ handleObservableUpdated(e, o) {
235
+ for (const n of this.loggers)
236
+ n.handleObservableUpdated(e, o);
237
+ }
238
+ handleAutorunCreated(e, o) {
239
+ for (const n of this.loggers)
240
+ n.handleAutorunCreated(e, o);
241
+ }
242
+ handleAutorunDisposed(e) {
243
+ for (const o of this.loggers)
244
+ o.handleAutorunDisposed(e);
245
+ }
246
+ handleAutorunDependencyChanged(e, o, n) {
247
+ for (const t of this.loggers)
248
+ t.handleAutorunDependencyChanged(e, o, n);
249
+ }
250
+ handleAutorunStarted(e) {
251
+ for (const o of this.loggers)
252
+ o.handleAutorunStarted(e);
253
+ }
254
+ handleAutorunFinished(e) {
255
+ for (const o of this.loggers)
256
+ o.handleAutorunFinished(e);
257
+ }
258
+ handleDerivedDependencyChanged(e, o, n) {
259
+ for (const t of this.loggers)
260
+ t.handleDerivedDependencyChanged(e, o, n);
261
+ }
262
+ handleDerivedCleared(e) {
263
+ for (const o of this.loggers)
264
+ o.handleDerivedCleared(e);
265
+ }
266
+ handleBeginTransaction(e) {
267
+ for (const o of this.loggers)
268
+ o.handleBeginTransaction(e);
269
+ }
270
+ handleEndTransaction(e) {
271
+ for (const o of this.loggers)
272
+ o.handleEndTransaction(e);
273
+ }
274
+ }
275
+ var M;
276
+ (function(r) {
277
+ let e = !1;
278
+ function o() {
279
+ e = !0;
280
+ }
281
+ r.enable = o;
282
+ function n() {
283
+ return t(1);
284
+ }
285
+ r.ofCaller = n;
286
+ function t(i) {
287
+ if (!e)
288
+ return;
289
+ const c = Error, d = c.stackTraceLimit;
290
+ c.stackTraceLimit = 3;
291
+ const l = new Error().stack;
292
+ return c.stackTraceLimit = d, Be.fromStack(l, i + 1);
293
+ }
294
+ r.ofNthCaller = t;
295
+ })(M || (M = {}));
296
+ class Be {
297
+ static fromStack(e, o) {
298
+ const n = e.split(`
299
+ `), t = rr(n[o + 1]);
300
+ if (t)
301
+ return new Be(t.fileName, t.line, t.column, t.id);
302
+ }
303
+ constructor(e, o, n, t) {
304
+ this.fileName = e, this.line = o, this.column = n, this.id = t;
305
+ }
306
+ }
307
+ function rr(r) {
308
+ if (!r)
309
+ return;
310
+ const e = r.match(/\((.*):(\d+):(\d+)\)/);
311
+ if (e)
312
+ return {
313
+ fileName: e[1],
314
+ line: parseInt(e[2]),
315
+ column: parseInt(e[3]),
316
+ id: r
317
+ };
318
+ const o = r.match(/at ([^\(\)]*):(\d+):(\d+)/);
319
+ if (o)
320
+ return {
321
+ fileName: o[1],
322
+ line: parseInt(o[2]),
323
+ column: parseInt(o[3]),
324
+ id: r
325
+ };
326
+ }
327
+ class V {
328
+ constructor(e, o, n) {
329
+ this.owner = e, this.debugNameSource = o, this.referenceFn = n;
330
+ }
331
+ getDebugName(e) {
332
+ return nr(e, this);
333
+ }
334
+ }
335
+ const De = /* @__PURE__ */ new Map(), se = /* @__PURE__ */ new WeakMap();
336
+ function nr(r, e) {
337
+ const o = se.get(r);
338
+ if (o)
339
+ return o;
340
+ const n = tr(r, e);
341
+ if (n) {
342
+ let t = De.get(n) ?? 0;
343
+ t++, De.set(n, t);
344
+ const i = t === 1 ? n : `${n}#${t}`;
345
+ return se.set(r, i), i;
346
+ }
347
+ }
348
+ function tr(r, e) {
349
+ const o = se.get(r);
350
+ if (o)
351
+ return o;
352
+ const n = e.owner ? cr(e.owner) + "." : "";
353
+ let t;
354
+ const i = e.debugNameSource;
355
+ if (i !== void 0)
356
+ if (typeof i == "function") {
357
+ if (t = i(), t !== void 0)
358
+ return n + t;
359
+ } else
360
+ return n + i;
361
+ const c = e.referenceFn;
362
+ if (c !== void 0 && (t = _e(c), t !== void 0))
363
+ return n + t;
364
+ if (e.owner !== void 0) {
365
+ const d = ir(e.owner, r);
366
+ if (d !== void 0)
367
+ return n + d;
368
+ }
369
+ }
370
+ function ir(r, e) {
371
+ for (const o in r)
372
+ if (r[o] === e)
373
+ return o;
374
+ }
375
+ const Ge = /* @__PURE__ */ new Map(), Ae = /* @__PURE__ */ new WeakMap();
376
+ function cr(r) {
377
+ const e = Ae.get(r);
378
+ if (e)
379
+ return e;
380
+ const o = so(r) ?? "Object";
381
+ let n = Ge.get(o) ?? 0;
382
+ n++, Ge.set(o, n);
383
+ const t = n === 1 ? o : `${o}#${n}`;
384
+ return Ae.set(r, t), t;
385
+ }
386
+ function so(r) {
387
+ const e = r.constructor;
388
+ if (e)
389
+ return e.name === "Object" ? void 0 : e.name;
390
+ }
391
+ function _e(r) {
392
+ const e = r.toString(), n = /\/\*\*\s*@description\s*([^*]*)\*\//.exec(e), t = n ? n[1] : void 0;
393
+ return t == null ? void 0 : t.trim();
394
+ }
395
+ let pe;
396
+ function ar(r) {
397
+ pe = r;
398
+ }
399
+ let po;
400
+ function dr(r) {
401
+ po = r;
402
+ }
403
+ let go;
404
+ function lr(r) {
405
+ go = r;
406
+ }
407
+ let uo;
408
+ function sr(r) {
409
+ uo = r;
410
+ }
411
+ class pr {
412
+ get TChange() {
413
+ return null;
414
+ }
415
+ reportChanges() {
416
+ this.get();
417
+ }
418
+ /** @sealed */
419
+ read(e) {
420
+ return e ? e.readObservable(this) : this.get();
421
+ }
422
+ map(e, o, n = M.ofCaller()) {
423
+ const t = o === void 0 ? void 0 : e, i = o === void 0 ? e : o;
424
+ return pe({
425
+ owner: t,
426
+ debugName: () => {
427
+ const c = _e(i);
428
+ if (c !== void 0)
429
+ return c;
430
+ const l = /^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());
431
+ if (l)
432
+ return `${this.debugName}.${l[2]}`;
433
+ if (!t)
434
+ return `${this.debugName} (mapped)`;
435
+ },
436
+ debugReferenceFn: i
437
+ }, (c) => i(this.read(c), c), n);
438
+ }
439
+ /**
440
+ * @sealed
441
+ * Converts an observable of an observable value into a direct observable of the value.
442
+ */
443
+ flatten() {
444
+ return pe({
445
+ owner: void 0,
446
+ debugName: () => `${this.debugName} (flattened)`
447
+ }, (e) => this.read(e).read(e));
448
+ }
449
+ recomputeInitiallyAndOnChange(e, o) {
450
+ return e.add(po(this, o)), this;
451
+ }
452
+ /**
453
+ * Ensures that this observable is observed. This keeps the cache alive.
454
+ * However, in case of deriveds, it does not force eager evaluation (only when the value is read/get).
455
+ * Use `recomputeInitiallyAndOnChange` for eager evaluation.
456
+ */
457
+ keepObserved(e) {
458
+ return e.add(go(this)), this;
459
+ }
460
+ get debugValue() {
461
+ return this.get();
462
+ }
463
+ debugGetDependencyGraph() {
464
+ return uo(this);
465
+ }
466
+ }
467
+ class Ce extends pr {
468
+ constructor(e) {
469
+ var o;
470
+ super(), this._observers = /* @__PURE__ */ new Set(), (o = y()) == null || o.handleObservableCreated(this, e);
471
+ }
472
+ addObserver(e) {
473
+ var n;
474
+ const o = this._observers.size;
475
+ this._observers.add(e), o === 0 && this.onFirstObserverAdded(), o !== this._observers.size && ((n = y()) == null || n.handleOnListenerCountChanged(this, this._observers.size));
476
+ }
477
+ removeObserver(e) {
478
+ var n;
479
+ const o = this._observers.delete(e);
480
+ o && this._observers.size === 0 && this.onLastObserverRemoved(), o && ((n = y()) == null || n.handleOnListenerCountChanged(this, this._observers.size));
481
+ }
482
+ onFirstObserverAdded() {
483
+ }
484
+ onLastObserverRemoved() {
485
+ }
486
+ log() {
487
+ var o;
488
+ const e = !!y();
489
+ return or(this), e || (o = y()) == null || o.handleObservableCreated(this, M.ofCaller()), this;
490
+ }
491
+ debugGetObservers() {
492
+ return this._observers;
493
+ }
494
+ }
495
+ function mo(r) {
496
+ return {
497
+ dispose: r
498
+ };
499
+ }
500
+ class P extends Error {
501
+ constructor(e) {
502
+ super(e || "An unexpected bug occurred."), Object.setPrototypeOf(this, P.prototype);
503
+ }
504
+ }
505
+ function te(r) {
506
+ throw r;
507
+ }
508
+ function gr(r) {
509
+ console.error("Unexpected error:", r);
510
+ }
511
+ const Y = (r, e) => r === e;
512
+ class X {
513
+ constructor() {
514
+ this.disposables = [], this._isDisposed = !1;
515
+ }
516
+ get isDisposed() {
517
+ return this._isDisposed;
518
+ }
519
+ dispose() {
520
+ this.clear(), this._isDisposed = !0;
521
+ }
522
+ add(e) {
523
+ return e && this.disposables.push(e), e;
524
+ }
525
+ remove(e) {
526
+ if (!e)
527
+ return e;
528
+ const o = this.disposables.indexOf(e);
529
+ return o !== -1 && this.disposables.splice(o, 1), e;
530
+ }
531
+ clear() {
532
+ for (const e of this.disposables)
533
+ e.dispose();
534
+ this.disposables = [];
535
+ }
536
+ leakItems() {
537
+ this.disposables = [];
538
+ }
539
+ }
540
+ function ur(r) {
541
+ switch (r) {
542
+ case 0:
543
+ return "initial";
544
+ case 1:
545
+ return "dependenciesMightHaveChanged";
546
+ case 2:
547
+ return "stale";
548
+ case 3:
549
+ return "upToDate";
550
+ default:
551
+ return "<unknown>";
552
+ }
553
+ }
554
+ class W extends Ce {
555
+ get debugName() {
556
+ return this._debugNameData.getDebugName(this) ?? "(anonymous)";
557
+ }
558
+ constructor(e, o, n, t = void 0, i, c) {
559
+ var d;
560
+ super(c), this._debugNameData = e, this._computeFn = o, this._changeTracker = n, this._handleLastObserverRemoved = t, this._equalityComparator = i, this._state = 0, this._value = void 0, this._updateCount = 0, this._dependencies = /* @__PURE__ */ new Set(), this._dependenciesToBeRemoved = /* @__PURE__ */ new Set(), this._changeSummary = void 0, this._isUpdating = !1, this._isComputing = !1, this._didReportChange = !1, this._isInBeforeUpdate = !1, this._isReaderValid = !1, this._store = void 0, this._delayedStore = void 0, this._removedObserverToCallEndUpdateOn = null, this._changeSummary = (d = this._changeTracker) == null ? void 0 : d.createChangeSummary(void 0);
561
+ }
562
+ onLastObserverRemoved() {
563
+ var e, o;
564
+ this._state = 0, this._value = void 0, (e = y()) == null || e.handleDerivedCleared(this);
565
+ for (const n of this._dependencies)
566
+ n.removeObserver(this);
567
+ this._dependencies.clear(), this._store !== void 0 && (this._store.dispose(), this._store = void 0), this._delayedStore !== void 0 && (this._delayedStore.dispose(), this._delayedStore = void 0), (o = this._handleLastObserverRemoved) == null || o.call(this);
568
+ }
569
+ get() {
570
+ var o, n;
571
+ if (this._isComputing, this._observers.size === 0) {
572
+ let t;
573
+ try {
574
+ this._isReaderValid = !0;
575
+ let i;
576
+ this._changeTracker && (i = this._changeTracker.createChangeSummary(void 0), (n = (o = this._changeTracker).beforeUpdate) == null || n.call(o, this, i)), t = this._computeFn(this, i);
577
+ } finally {
578
+ this._isReaderValid = !1;
579
+ }
580
+ return this.onLastObserverRemoved(), t;
581
+ } else {
582
+ do {
583
+ if (this._state === 1) {
584
+ for (const t of this._dependencies)
585
+ if (t.reportChanges(), this._state === 2)
586
+ break;
587
+ }
588
+ this._state === 1 && (this._state = 3), this._state !== 3 && this._recompute();
589
+ } while (this._state !== 3);
590
+ return this._value;
591
+ }
592
+ }
593
+ _recompute() {
594
+ var n, t, i, c;
595
+ let e = !1;
596
+ this._isComputing = !0, this._didReportChange = !1;
597
+ const o = this._dependenciesToBeRemoved;
598
+ this._dependenciesToBeRemoved = this._dependencies, this._dependencies = o;
599
+ try {
600
+ const d = this._changeSummary;
601
+ this._isReaderValid = !0, this._changeTracker && (this._isInBeforeUpdate = !0, (t = (n = this._changeTracker).beforeUpdate) == null || t.call(n, this, d), this._isInBeforeUpdate = !1, this._changeSummary = (i = this._changeTracker) == null ? void 0 : i.createChangeSummary(d));
602
+ const l = this._state !== 0, p = this._value;
603
+ this._state = 3;
604
+ const g = this._delayedStore;
605
+ g !== void 0 && (this._delayedStore = void 0);
606
+ try {
607
+ this._store !== void 0 && (this._store.dispose(), this._store = void 0), this._value = this._computeFn(this, d);
608
+ } finally {
609
+ this._isReaderValid = !1;
610
+ for (const u of this._dependenciesToBeRemoved)
611
+ u.removeObserver(this);
612
+ this._dependenciesToBeRemoved.clear(), g !== void 0 && g.dispose();
613
+ }
614
+ e = this._didReportChange || l && !this._equalityComparator(p, this._value), (c = y()) == null || c.handleObservableUpdated(this, {
615
+ oldValue: p,
616
+ newValue: this._value,
617
+ change: void 0,
618
+ didChange: e,
619
+ hadValue: l
620
+ });
621
+ } catch (d) {
622
+ te(d);
623
+ }
624
+ if (this._isComputing = !1, !this._didReportChange && e)
625
+ for (const d of this._observers)
626
+ d.handleChange(this, void 0);
627
+ else
628
+ this._didReportChange = !1;
629
+ }
630
+ toString() {
631
+ return `LazyDerived<${this.debugName}>`;
632
+ }
633
+ // IObserver Implementation
634
+ beginUpdate(e) {
635
+ if (this._isUpdating)
636
+ throw new P("Cyclic deriveds are not supported yet!");
637
+ this._updateCount++, this._isUpdating = !0;
638
+ try {
639
+ const o = this._updateCount === 1;
640
+ if (this._state === 3 && (this._state = 1, !o))
641
+ for (const n of this._observers)
642
+ n.handlePossibleChange(this);
643
+ if (o)
644
+ for (const n of this._observers)
645
+ n.beginUpdate(this);
646
+ } finally {
647
+ this._isUpdating = !1;
648
+ }
649
+ }
650
+ endUpdate(e) {
651
+ if (this._updateCount--, this._updateCount === 0) {
652
+ const o = [...this._observers];
653
+ for (const n of o)
654
+ n.endUpdate(this);
655
+ if (this._removedObserverToCallEndUpdateOn) {
656
+ const n = [...this._removedObserverToCallEndUpdateOn];
657
+ this._removedObserverToCallEndUpdateOn = null;
658
+ for (const t of n)
659
+ t.endUpdate(this);
660
+ }
661
+ }
662
+ }
663
+ handlePossibleChange(e) {
664
+ if (this._state === 3 && this._dependencies.has(e) && !this._dependenciesToBeRemoved.has(e)) {
665
+ this._state = 1;
666
+ for (const o of this._observers)
667
+ o.handlePossibleChange(this);
668
+ }
669
+ }
670
+ handleChange(e, o) {
671
+ var n;
672
+ if (this._dependencies.has(e) && !this._dependenciesToBeRemoved.has(e) || this._isInBeforeUpdate) {
673
+ (n = y()) == null || n.handleDerivedDependencyChanged(this, e, o);
674
+ let t = !1;
675
+ try {
676
+ t = this._changeTracker ? this._changeTracker.handleChange({
677
+ changedObservable: e,
678
+ change: o,
679
+ didChange: (c) => c === e
680
+ }, this._changeSummary) : !0;
681
+ } catch (c) {
682
+ te(c);
683
+ }
684
+ const i = this._state === 3;
685
+ if (t && (this._state === 1 || i) && (this._state = 2, i))
686
+ for (const c of this._observers)
687
+ c.handlePossibleChange(this);
688
+ }
689
+ }
690
+ // IReader Implementation
691
+ _ensureReaderValid() {
692
+ if (!this._isReaderValid)
693
+ throw new P("The reader object cannot be used outside its compute function!");
694
+ }
695
+ readObservable(e) {
696
+ this._ensureReaderValid(), e.addObserver(this);
697
+ const o = e.get();
698
+ return this._dependencies.add(e), this._dependenciesToBeRemoved.delete(e), o;
699
+ }
700
+ reportChange(e) {
701
+ this._ensureReaderValid(), this._didReportChange = !0;
702
+ for (const o of this._observers)
703
+ o.handleChange(this, e);
704
+ }
705
+ get store() {
706
+ return this._ensureReaderValid(), this._store === void 0 && (this._store = new X()), this._store;
707
+ }
708
+ get delayedStore() {
709
+ return this._ensureReaderValid(), this._delayedStore === void 0 && (this._delayedStore = new X()), this._delayedStore;
710
+ }
711
+ addObserver(e) {
712
+ const o = !this._observers.has(e) && this._updateCount > 0;
713
+ super.addObserver(e), o && (this._removedObserverToCallEndUpdateOn && this._removedObserverToCallEndUpdateOn.has(e) ? this._removedObserverToCallEndUpdateOn.delete(e) : e.beginUpdate(this));
714
+ }
715
+ removeObserver(e) {
716
+ this._observers.has(e) && this._updateCount > 0 && (this._removedObserverToCallEndUpdateOn || (this._removedObserverToCallEndUpdateOn = /* @__PURE__ */ new Set()), this._removedObserverToCallEndUpdateOn.add(e)), super.removeObserver(e);
717
+ }
718
+ debugGetState() {
719
+ return {
720
+ state: this._state,
721
+ stateStr: ur(this._state),
722
+ updateCount: this._updateCount,
723
+ isComputing: this._isComputing,
724
+ dependencies: this._dependencies,
725
+ value: this._value
726
+ };
727
+ }
728
+ debugSetValue(e) {
729
+ this._value = e;
730
+ }
731
+ debugRecompute() {
732
+ this._isComputing ? this._state = 2 : this._recompute();
733
+ }
734
+ setValue(e, o, n) {
735
+ this._value = e;
736
+ const t = this._observers;
737
+ o.updateObserver(this, this);
738
+ for (const i of t)
739
+ i.handleChange(this, n);
740
+ }
741
+ }
742
+ function R(r, e, o = M.ofCaller()) {
743
+ return e !== void 0 ? new W(new V(r, void 0, e), e, void 0, void 0, Y, o) : new W(new V(void 0, void 0, r), r, void 0, void 0, Y, o);
744
+ }
745
+ function mr(r, e, o = M.ofCaller()) {
746
+ return new W(new V(r.owner, r.debugName, r.debugReferenceFn), e, void 0, r.onLastObserverRemoved, r.equalsFn ?? Y, o);
747
+ }
748
+ ar(mr);
749
+ function fr(r, e, o = M.ofCaller()) {
750
+ let n, t;
751
+ n = r, t = void 0;
752
+ let i;
753
+ return new W(new V(t, void 0, n), (c) => {
754
+ i ? i.clear() : i = new X();
755
+ const d = n(c);
756
+ return d && i.add(d), d;
757
+ }, void 0, () => {
758
+ i && (i.dispose(), i = void 0);
759
+ }, Y, o);
760
+ }
761
+ function hr(r) {
762
+ switch (r) {
763
+ case 1:
764
+ return "dependenciesMightHaveChanged";
765
+ case 2:
766
+ return "stale";
767
+ case 3:
768
+ return "upToDate";
769
+ default:
770
+ return "<unknown>";
771
+ }
772
+ }
773
+ class fo {
774
+ get debugName() {
775
+ return this._debugNameData.getDebugName(this) ?? "(anonymous)";
776
+ }
777
+ constructor(e, o, n, t) {
778
+ var i, c;
779
+ this._debugNameData = e, this._runFn = o, this._changeTracker = n, this._state = 2, this._updateCount = 0, this._disposed = !1, this._dependencies = /* @__PURE__ */ new Set(), this._dependenciesToBeRemoved = /* @__PURE__ */ new Set(), this._isRunning = !1, this._store = void 0, this._delayedStore = void 0, this._changeSummary = (i = this._changeTracker) == null ? void 0 : i.createChangeSummary(void 0), (c = y()) == null || c.handleAutorunCreated(this, t), this._run();
780
+ }
781
+ dispose() {
782
+ var e;
783
+ if (!this._disposed) {
784
+ this._disposed = !0;
785
+ for (const o of this._dependencies)
786
+ o.removeObserver(this);
787
+ this._dependencies.clear(), this._store !== void 0 && this._store.dispose(), this._delayedStore !== void 0 && this._delayedStore.dispose(), (e = y()) == null || e.handleAutorunDisposed(this);
788
+ }
789
+ }
790
+ _run() {
791
+ var o, n, t, i;
792
+ const e = this._dependenciesToBeRemoved;
793
+ this._dependenciesToBeRemoved = this._dependencies, this._dependencies = e, this._state = 3;
794
+ try {
795
+ if (!this._disposed) {
796
+ (o = y()) == null || o.handleAutorunStarted(this);
797
+ const c = this._changeSummary, d = this._delayedStore;
798
+ d !== void 0 && (this._delayedStore = void 0);
799
+ try {
800
+ this._isRunning = !0, this._changeTracker && ((t = (n = this._changeTracker).beforeUpdate) == null || t.call(n, this, c), this._changeSummary = this._changeTracker.createChangeSummary(c)), this._store !== void 0 && (this._store.dispose(), this._store = void 0), this._runFn(this, c);
801
+ } catch (l) {
802
+ te(l);
803
+ } finally {
804
+ this._isRunning = !1, d !== void 0 && d.dispose();
805
+ }
806
+ }
807
+ } finally {
808
+ this._disposed || (i = y()) == null || i.handleAutorunFinished(this);
809
+ for (const c of this._dependenciesToBeRemoved)
810
+ c.removeObserver(this);
811
+ this._dependenciesToBeRemoved.clear();
812
+ }
813
+ }
814
+ toString() {
815
+ return `Autorun<${this.debugName}>`;
816
+ }
817
+ // IObserver implementation
818
+ beginUpdate(e) {
819
+ this._state === 3 && (this._state = 1), this._updateCount++;
820
+ }
821
+ endUpdate(e) {
822
+ try {
823
+ if (this._updateCount === 1)
824
+ do {
825
+ if (this._state === 1) {
826
+ this._state = 3;
827
+ for (const o of this._dependencies)
828
+ if (o.reportChanges(), this._state === 2)
829
+ break;
830
+ }
831
+ this._state !== 3 && this._run();
832
+ } while (this._state !== 3);
833
+ } finally {
834
+ this._updateCount--;
835
+ }
836
+ }
837
+ handlePossibleChange(e) {
838
+ this._state === 3 && this._isDependency(e) && (this._state = 1);
839
+ }
840
+ handleChange(e, o) {
841
+ var n;
842
+ if (this._isDependency(e)) {
843
+ (n = y()) == null || n.handleAutorunDependencyChanged(this, e, o);
844
+ try {
845
+ (this._changeTracker ? this._changeTracker.handleChange({
846
+ changedObservable: e,
847
+ change: o,
848
+ didChange: (i) => i === e
849
+ }, this._changeSummary) : !0) && (this._state = 2);
850
+ } catch (t) {
851
+ te(t);
852
+ }
853
+ }
854
+ }
855
+ _isDependency(e) {
856
+ return this._dependencies.has(e) && !this._dependenciesToBeRemoved.has(e);
857
+ }
858
+ // IReader implementation
859
+ _ensureNoRunning() {
860
+ if (!this._isRunning)
861
+ throw new P("The reader object cannot be used outside its compute function!");
862
+ }
863
+ readObservable(e) {
864
+ if (this._ensureNoRunning(), this._disposed)
865
+ return e.get();
866
+ e.addObserver(this);
867
+ const o = e.get();
868
+ return this._dependencies.add(e), this._dependenciesToBeRemoved.delete(e), o;
869
+ }
870
+ get store() {
871
+ if (this._ensureNoRunning(), this._disposed)
872
+ throw new P("Cannot access store after dispose");
873
+ return this._store === void 0 && (this._store = new X()), this._store;
874
+ }
875
+ get delayedStore() {
876
+ if (this._ensureNoRunning(), this._disposed)
877
+ throw new P("Cannot access store after dispose");
878
+ return this._delayedStore === void 0 && (this._delayedStore = new X()), this._delayedStore;
879
+ }
880
+ debugGetState() {
881
+ return {
882
+ isRunning: this._isRunning,
883
+ updateCount: this._updateCount,
884
+ dependencies: this._dependencies,
885
+ state: this._state,
886
+ stateStr: hr(this._state)
887
+ };
888
+ }
889
+ debugRerun() {
890
+ this._isRunning ? this._state = 2 : this._run();
891
+ }
892
+ }
893
+ function ho(r, e = M.ofCaller()) {
894
+ return new fo(new V(void 0, void 0, r), r, void 0, e);
895
+ }
896
+ function ze(r) {
897
+ const e = new Error("BugIndicatingErrorRecovery: " + r);
898
+ gr(e), console.error("recovered from an error that indicates a bug", e);
899
+ }
900
+ function xo(r, e) {
901
+ const o = new bo(r, e);
902
+ try {
903
+ r(o);
904
+ } finally {
905
+ o.finish();
906
+ }
907
+ }
908
+ function xr(r, e, o) {
909
+ r ? e(r) : xo(e, o);
910
+ }
911
+ class bo {
912
+ constructor(e, o) {
913
+ var n;
914
+ this._fn = e, this._getDebugName = o, this._updatingObservers = [], (n = y()) == null || n.handleBeginTransaction(this);
915
+ }
916
+ getDebugName() {
917
+ return this._getDebugName ? this._getDebugName() : _e(this._fn);
918
+ }
919
+ updateObserver(e, o) {
920
+ if (!this._updatingObservers) {
921
+ ze("Transaction already finished!"), xo((n) => {
922
+ n.updateObserver(e, o);
923
+ });
924
+ return;
925
+ }
926
+ this._updatingObservers.push({ observer: e, observable: o }), e.beginUpdate(o);
927
+ }
928
+ finish() {
929
+ var o;
930
+ const e = this._updatingObservers;
931
+ if (!e) {
932
+ ze("transaction.finish() has already been called!");
933
+ return;
934
+ }
935
+ for (let n = 0; n < e.length; n++) {
936
+ const { observer: t, observable: i } = e[n];
937
+ t.endUpdate(i);
938
+ }
939
+ this._updatingObservers = null, (o = y()) == null || o.handleEndTransaction(this);
940
+ }
941
+ debugGetUpdatingObservers() {
942
+ return this._updatingObservers;
943
+ }
944
+ }
945
+ function w(r, e, o = M.ofCaller()) {
946
+ let n;
947
+ return typeof r == "string" ? n = new V(void 0, r, void 0) : n = new V(r, void 0, void 0), new vo(n, e, Y, o);
948
+ }
949
+ class vo extends Ce {
950
+ get debugName() {
951
+ return this._debugNameData.getDebugName(this) ?? "ObservableValue";
952
+ }
953
+ constructor(e, o, n, t) {
954
+ var i;
955
+ super(t), this._debugNameData = e, this._equalityComparator = n, this._value = o, (i = y()) == null || i.handleObservableUpdated(this, { hadValue: !1, newValue: o, change: void 0, didChange: !0, oldValue: void 0 });
956
+ }
957
+ get() {
958
+ return this._value;
959
+ }
960
+ set(e, o, n) {
961
+ var i;
962
+ if (n === void 0 && this._equalityComparator(this._value, e))
963
+ return;
964
+ let t;
965
+ o || (o = t = new bo(() => {
966
+ }, () => `Setting ${this.debugName}`));
967
+ try {
968
+ const c = this._value;
969
+ this._setValue(e), (i = y()) == null || i.handleObservableUpdated(this, { oldValue: c, newValue: e, change: n, didChange: !0, hadValue: !0 });
970
+ for (const d of this._observers)
971
+ o.updateObserver(d, this), d.handleChange(this, n);
972
+ } finally {
973
+ t && t.finish();
974
+ }
975
+ }
976
+ toString() {
977
+ return `${this.debugName}: ${this._value}`;
978
+ }
979
+ _setValue(e) {
980
+ this._value = e;
981
+ }
982
+ debugGetState() {
983
+ return {
984
+ value: this._value
985
+ };
986
+ }
987
+ debugSetValue(e) {
988
+ this._value = e;
989
+ }
990
+ }
991
+ function Pe(...r) {
992
+ let e, o, n, t;
993
+ return r.length === 2 ? [o, n] = r : [e, o, n, t] = r, new z(new V(e, void 0, n), o, n, () => z.globalTransaction, Y, t ?? M.ofCaller());
994
+ }
995
+ class z extends Ce {
996
+ constructor(e, o, n, t, i, c) {
997
+ super(c), this._debugNameData = e, this.event = o, this._getValue = n, this._getTransaction = t, this._equalityComparator = i, this._hasValue = !1, this.handleEvent = (d) => {
998
+ var x;
999
+ const l = this._getValue(d), p = this._value, g = !this._hasValue || !this._equalityComparator(p, l);
1000
+ let u = !1;
1001
+ g && (this._value = l, this._hasValue && (u = !0, xr(this._getTransaction(), (k) => {
1002
+ var B;
1003
+ (B = y()) == null || B.handleObservableUpdated(this, { oldValue: p, newValue: l, change: void 0, didChange: g, hadValue: this._hasValue });
1004
+ for (const b of this._observers)
1005
+ k.updateObserver(b, this), b.handleChange(this, void 0);
1006
+ }, () => {
1007
+ const k = this.getDebugName();
1008
+ return "Event fired" + (k ? `: ${k}` : "");
1009
+ })), this._hasValue = !0), u || (x = y()) == null || x.handleObservableUpdated(this, { oldValue: p, newValue: l, change: void 0, didChange: g, hadValue: this._hasValue });
1010
+ };
1011
+ }
1012
+ getDebugName() {
1013
+ return this._debugNameData.getDebugName(this);
1014
+ }
1015
+ get debugName() {
1016
+ const e = this.getDebugName();
1017
+ return "From Event" + (e ? `: ${e}` : "");
1018
+ }
1019
+ onFirstObserverAdded() {
1020
+ this._subscription = this.event(this.handleEvent);
1021
+ }
1022
+ onLastObserverRemoved() {
1023
+ this._subscription.dispose(), this._subscription = void 0, this._hasValue = !1, this._value = void 0;
1024
+ }
1025
+ get() {
1026
+ return this._subscription ? (this._hasValue || this.handleEvent(void 0), this._value) : this._getValue(void 0);
1027
+ }
1028
+ debugSetValue(e) {
1029
+ this._value = e;
1030
+ }
1031
+ debugGetState() {
1032
+ return { value: this._value, hasValue: this._hasValue };
1033
+ }
1034
+ }
1035
+ (function(r) {
1036
+ r.Observer = z;
1037
+ function e(o, n) {
1038
+ let t = !1;
1039
+ z.globalTransaction === void 0 && (z.globalTransaction = o, t = !0);
1040
+ try {
1041
+ n();
1042
+ } finally {
1043
+ t && (z.globalTransaction = void 0);
1044
+ }
1045
+ }
1046
+ r.batchEventsGlobally = e;
1047
+ })(Pe || (Pe = {}));
1048
+ function br(r) {
1049
+ const e = new ko(!1, void 0);
1050
+ return r.addObserver(e), mo(() => {
1051
+ r.removeObserver(e);
1052
+ });
1053
+ }
1054
+ lr(br);
1055
+ function vr(r, e) {
1056
+ const o = new ko(!0, e);
1057
+ r.addObserver(o);
1058
+ try {
1059
+ o.beginUpdate(r);
1060
+ } finally {
1061
+ o.endUpdate(r);
1062
+ }
1063
+ return mo(() => {
1064
+ r.removeObserver(o);
1065
+ });
1066
+ }
1067
+ dr(vr);
1068
+ class ko {
1069
+ constructor(e, o) {
1070
+ this._forceRecompute = e, this._handleValue = o, this._counter = 0;
1071
+ }
1072
+ beginUpdate(e) {
1073
+ this._counter++;
1074
+ }
1075
+ endUpdate(e) {
1076
+ this._counter === 1 && this._forceRecompute && (this._handleValue ? this._handleValue(e.get()) : e.reportChanges()), this._counter--;
1077
+ }
1078
+ handlePossibleChange(e) {
1079
+ }
1080
+ handleChange(e, o) {
1081
+ }
1082
+ }
1083
+ let ee;
1084
+ function kr(r) {
1085
+ ee || (ee = new yr(), Xo(ee)), ee.addFilteredObj(r);
1086
+ }
1087
+ class yr {
1088
+ constructor() {
1089
+ this.indentation = 0, this.changedObservablesSets = /* @__PURE__ */ new WeakMap();
1090
+ }
1091
+ addFilteredObj(e) {
1092
+ this._filteredObjects || (this._filteredObjects = /* @__PURE__ */ new Set()), this._filteredObjects.add(e);
1093
+ }
1094
+ _isIncluded(e) {
1095
+ var o;
1096
+ return ((o = this._filteredObjects) == null ? void 0 : o.has(e)) ?? !0;
1097
+ }
1098
+ textToConsoleArgs(e) {
1099
+ return wr([
1100
+ $(Sr("| ", this.indentation)),
1101
+ e
1102
+ ]);
1103
+ }
1104
+ formatInfo(e) {
1105
+ return e.hadValue ? e.didChange ? [
1106
+ $(" "),
1107
+ I(Z(e.oldValue, 70), {
1108
+ color: "red",
1109
+ strikeThrough: !0
1110
+ }),
1111
+ $(" "),
1112
+ I(Z(e.newValue, 60), {
1113
+ color: "green"
1114
+ })
1115
+ ] : [$(" (unchanged)")] : [
1116
+ $(" "),
1117
+ I(Z(e.newValue, 60), {
1118
+ color: "green"
1119
+ }),
1120
+ $(" (initial)")
1121
+ ];
1122
+ }
1123
+ handleObservableCreated(e) {
1124
+ if (e instanceof W) {
1125
+ const o = e;
1126
+ this.changedObservablesSets.set(o, /* @__PURE__ */ new Set());
1127
+ }
1128
+ }
1129
+ handleOnListenerCountChanged(e, o) {
1130
+ }
1131
+ handleObservableUpdated(e, o) {
1132
+ if (this._isIncluded(e)) {
1133
+ if (e instanceof W) {
1134
+ this._handleDerivedRecomputed(e, o);
1135
+ return;
1136
+ }
1137
+ console.log(...this.textToConsoleArgs([
1138
+ U("observable value changed"),
1139
+ I(e.debugName, { color: "BlueViolet" }),
1140
+ ...this.formatInfo(o)
1141
+ ]));
1142
+ }
1143
+ }
1144
+ formatChanges(e) {
1145
+ if (e.size !== 0)
1146
+ return I(" (changed deps: " + [...e].map((o) => o.debugName).join(", ") + ")", { color: "gray" });
1147
+ }
1148
+ handleDerivedDependencyChanged(e, o, n) {
1149
+ var t;
1150
+ this._isIncluded(e) && ((t = this.changedObservablesSets.get(e)) == null || t.add(o));
1151
+ }
1152
+ _handleDerivedRecomputed(e, o) {
1153
+ if (!this._isIncluded(e))
1154
+ return;
1155
+ const n = this.changedObservablesSets.get(e);
1156
+ n && (console.log(...this.textToConsoleArgs([
1157
+ U("derived recomputed"),
1158
+ I(e.debugName, { color: "BlueViolet" }),
1159
+ ...this.formatInfo(o),
1160
+ this.formatChanges(n),
1161
+ { data: [{ fn: e._debugNameData.referenceFn ?? e._computeFn }] }
1162
+ ])), n.clear());
1163
+ }
1164
+ handleDerivedCleared(e) {
1165
+ this._isIncluded(e) && console.log(...this.textToConsoleArgs([
1166
+ U("derived cleared"),
1167
+ I(e.debugName, { color: "BlueViolet" })
1168
+ ]));
1169
+ }
1170
+ handleFromEventObservableTriggered(e, o) {
1171
+ this._isIncluded(e) && console.log(...this.textToConsoleArgs([
1172
+ U("observable from event triggered"),
1173
+ I(e.debugName, { color: "BlueViolet" }),
1174
+ ...this.formatInfo(o),
1175
+ { data: [{ fn: e._getValue }] }
1176
+ ]));
1177
+ }
1178
+ handleAutorunCreated(e) {
1179
+ this._isIncluded(e) && this.changedObservablesSets.set(e, /* @__PURE__ */ new Set());
1180
+ }
1181
+ handleAutorunDisposed(e) {
1182
+ }
1183
+ handleAutorunDependencyChanged(e, o, n) {
1184
+ this._isIncluded(e) && this.changedObservablesSets.get(e).add(o);
1185
+ }
1186
+ handleAutorunStarted(e) {
1187
+ const o = this.changedObservablesSets.get(e);
1188
+ o && (this._isIncluded(e) && console.log(...this.textToConsoleArgs([
1189
+ U("autorun"),
1190
+ I(e.debugName, { color: "BlueViolet" }),
1191
+ this.formatChanges(o),
1192
+ { data: [{ fn: e._debugNameData.referenceFn ?? e._runFn }] }
1193
+ ])), o.clear(), this.indentation++);
1194
+ }
1195
+ handleAutorunFinished(e) {
1196
+ this.indentation--;
1197
+ }
1198
+ handleBeginTransaction(e) {
1199
+ let o = e.getDebugName();
1200
+ o === void 0 && (o = ""), this._isIncluded(e) && console.log(...this.textToConsoleArgs([
1201
+ U("transaction"),
1202
+ I(o, { color: "BlueViolet" }),
1203
+ { data: [{ fn: e._fn }] }
1204
+ ])), this.indentation++;
1205
+ }
1206
+ handleEndTransaction() {
1207
+ this.indentation--;
1208
+ }
1209
+ }
1210
+ function wr(r) {
1211
+ const e = new Array(), o = [];
1212
+ let n = "";
1213
+ function t(c) {
1214
+ if ("length" in c)
1215
+ for (const d of c)
1216
+ d && t(d);
1217
+ else "text" in c ? (n += `%c${c.text}`, e.push(c.style), c.data && o.push(...c.data)) : "data" in c && o.push(...c.data);
1218
+ }
1219
+ t(r);
1220
+ const i = [n, ...e];
1221
+ return i.push(...o), i;
1222
+ }
1223
+ function $(r) {
1224
+ return I(r, { color: "black" });
1225
+ }
1226
+ function U(r) {
1227
+ return I(Fr(`${r}: `, 10), { color: "black", bold: !0 });
1228
+ }
1229
+ function I(r, e = {
1230
+ color: "black"
1231
+ }) {
1232
+ function o(t) {
1233
+ return Object.entries(t).reduce((i, [c, d]) => `${i}${c}:${d};`, "");
1234
+ }
1235
+ const n = {
1236
+ color: e.color
1237
+ };
1238
+ return e.strikeThrough && (n["text-decoration"] = "line-through"), e.bold && (n["font-weight"] = "bold"), {
1239
+ text: r,
1240
+ style: o(n)
1241
+ };
1242
+ }
1243
+ function Z(r, e) {
1244
+ try {
1245
+ return Br(r, e);
1246
+ } catch {
1247
+ return "[[???]]";
1248
+ }
1249
+ }
1250
+ function Br(r, e) {
1251
+ switch (typeof r) {
1252
+ case "number":
1253
+ return "" + r;
1254
+ case "string":
1255
+ return r.length + 2 <= e ? `"${r}"` : `"${r.substr(0, e - 7)}"+...`;
1256
+ case "boolean":
1257
+ return r ? "true" : "false";
1258
+ case "undefined":
1259
+ return "undefined";
1260
+ case "object":
1261
+ return r === null ? "null" : Array.isArray(r) ? _r(r, e) : Cr(r, e);
1262
+ case "symbol":
1263
+ return r.toString();
1264
+ case "function":
1265
+ return `[[Function${r.name ? " " + r.name : ""}]]`;
1266
+ default:
1267
+ return "" + r;
1268
+ }
1269
+ }
1270
+ function _r(r, e) {
1271
+ let o = "[ ", n = !0;
1272
+ for (const t of r) {
1273
+ if (n || (o += ", "), o.length - 5 > e) {
1274
+ o += "...";
1275
+ break;
1276
+ }
1277
+ n = !1, o += `${Z(t, e - o.length)}`;
1278
+ }
1279
+ return o += " ]", o;
1280
+ }
1281
+ function Cr(r, e) {
1282
+ try {
1283
+ if (typeof r.toString == "function" && r.toString !== Object.prototype.toString) {
1284
+ const c = r.toString();
1285
+ return c.length <= e ? c : c.substring(0, e - 3) + "...";
1286
+ }
1287
+ } catch {
1288
+ return "[[Object]]";
1289
+ }
1290
+ const o = so(r);
1291
+ let n = o ? o + "(" : "{ ", t = !0, i;
1292
+ try {
1293
+ i = Object.entries(r);
1294
+ } catch {
1295
+ return o ? `${o}(...)` : "[[Object]]";
1296
+ }
1297
+ for (const [c, d] of i) {
1298
+ if (t || (n += ", "), n.length - 5 > e) {
1299
+ n += "...";
1300
+ break;
1301
+ }
1302
+ t = !1, n += `${c}: ${Z(d, e - n.length)}`;
1303
+ }
1304
+ return n += o ? ")" : " }", n;
1305
+ }
1306
+ function Sr(r, e) {
1307
+ let o = "";
1308
+ for (let n = 1; n <= e; n++)
1309
+ o += r;
1310
+ return o;
1311
+ }
1312
+ function Fr(r, e) {
1313
+ for (; r.length < e; )
1314
+ r += " ";
1315
+ return r;
1316
+ }
1317
+ function Ir(r, e) {
1318
+ const o = (e == null ? void 0 : e.debugNamePostProcessor) ?? ((i) => i), n = H.from(r, o);
1319
+ return n ? yo(n, 0, /* @__PURE__ */ new Set()).trim() : "";
1320
+ }
1321
+ function yo(r, e, o) {
1322
+ const n = " ".repeat(e), t = [];
1323
+ if (o.has(r.sourceObj))
1324
+ return t.push(`${n}* ${r.type} ${r.name} (already listed)`), t.join(`
1325
+ `);
1326
+ if (o.add(r.sourceObj), t.push(`${n}* ${r.type} ${r.name}:`), t.push(`${n} value: ${Z(r.value, 50)}`), t.push(`${n} state: ${r.state}`), r.dependencies.length > 0) {
1327
+ t.push(`${n} dependencies:`);
1328
+ for (const c of r.dependencies)
1329
+ t.push(yo(c, e + 1, o));
1330
+ }
1331
+ return t.join(`
1332
+ `);
1333
+ }
1334
+ class H {
1335
+ static from(e, o) {
1336
+ if (e instanceof fo) {
1337
+ const n = e.debugGetState();
1338
+ return new H(e, o(e.debugName), "autorun", void 0, n.stateStr, Array.from(n.dependencies).map((t) => H.from(t, o) || H.unknown(t)));
1339
+ } else if (e instanceof W) {
1340
+ const n = e.debugGetState();
1341
+ return new H(e, o(e.debugName), "derived", n.value, n.stateStr, Array.from(n.dependencies).map((t) => H.from(t, o) || H.unknown(t)));
1342
+ } else if (e instanceof vo) {
1343
+ const n = e.debugGetState();
1344
+ return new H(e, o(e.debugName), "observableValue", n.value, "upToDate", []);
1345
+ } else if (e instanceof z) {
1346
+ const n = e.debugGetState();
1347
+ return new H(e, o(e.debugName), "fromEvent", n.value, n.hasValue ? "upToDate" : "initial", []);
1348
+ }
1349
+ }
1350
+ static unknown(e) {
1351
+ return new H(e, "(unknown)", "unknown", void 0, "unknown", []);
1352
+ }
1353
+ constructor(e, o, n, t, i, c) {
1354
+ this.sourceObj = e, this.name = o, this.type = n, this.value = t, this.state = i, this.dependencies = c;
1355
+ }
1356
+ }
1357
+ sr(Ir);
1358
+ er(kr);
1359
+ class Rr {
1360
+ constructor() {
1361
+ s(this, "_fixtures", w(this, /* @__PURE__ */ new Map()));
1362
+ s(this, "loading", w(this, !1));
1363
+ s(this, "root", R(this, (e) => {
1364
+ const o = this._fixtures.read(e);
1365
+ return ne(o);
1366
+ }));
1367
+ }
1368
+ register(e, o) {
1369
+ const n = new Map(this._fixtures.get());
1370
+ n.set(e, o), this._fixtures.set(n, void 0);
1371
+ }
1372
+ unregister(e) {
1373
+ const o = new Map(this._fixtures.get());
1374
+ o.delete(e) && this._fixtures.set(o, void 0);
1375
+ }
1376
+ clear() {
1377
+ this._fixtures.set(/* @__PURE__ */ new Map(), void 0);
1378
+ }
1379
+ getNode(e, o) {
1380
+ const n = this.root.read(e);
1381
+ return Le(n, o);
1382
+ }
1383
+ getComponentByPath(e) {
1384
+ const o = this._fixtures.get(), n = ne(o), t = Le(n, e);
1385
+ return t == null ? void 0 : t.component;
1386
+ }
1387
+ }
1388
+ class Er {
1389
+ constructor(e) {
1390
+ this._run = e, this._changes = [], this._map = /* @__PURE__ */ new Map(), this._updateCounter = 0;
1391
+ }
1392
+ addDependency(e, o) {
1393
+ return this._map.set(e, o), e.addObserver(this), {
1394
+ dispose: () => {
1395
+ this._map.delete(e), e.removeObserver(this);
1396
+ }
1397
+ };
1398
+ }
1399
+ beginUpdate(e) {
1400
+ this._updateCounter++, this._changes.push(this._map.get(e));
1401
+ }
1402
+ endUpdate(e) {
1403
+ if (this._updateCounter--, this._updateCounter === 0 && this._changes.length > 0) {
1404
+ const o = this._changes;
1405
+ this._changes = [], this._run(o);
1406
+ }
1407
+ }
1408
+ handlePossibleChange(e) {
1409
+ this._changes.push(this._map.get(e));
1410
+ }
1411
+ handleChange(e, o) {
1412
+ }
1413
+ }
1414
+ function m() {
1415
+ return ge.instance;
1416
+ }
1417
+ function Hr() {
1418
+ return ue.instance;
1419
+ }
1420
+ function Tr() {
1421
+ return me.instance;
1422
+ }
1423
+ m.const = Hr;
1424
+ m.obs = Tr;
1425
+ class ge {
1426
+ create(e) {
1427
+ const o = R((n) => e(n));
1428
+ return { read: (n) => o };
1429
+ }
1430
+ }
1431
+ ge.instance = new ge();
1432
+ class ue {
1433
+ create(e) {
1434
+ const o = R((n) => e(n));
1435
+ return { read: (n) => o.read(n) };
1436
+ }
1437
+ }
1438
+ ue.instance = new ue();
1439
+ class me {
1440
+ create(e) {
1441
+ const o = R((n) => {
1442
+ const t = e(n);
1443
+ return Mr(t) ? t.read(n) : t;
1444
+ });
1445
+ return { read: (n) => o };
1446
+ }
1447
+ }
1448
+ me.instance = new me();
1449
+ function Mr(r) {
1450
+ return typeof r == "object" && r !== null && "read" in r;
1451
+ }
1452
+ function K(r, e) {
1453
+ return Object.fromEntries(Object.entries(r).map(([o, n]) => [o, e(n, o)]));
1454
+ }
1455
+ const ae = Symbol("ViewModelContext");
1456
+ class Or {
1457
+ constructor(e) {
1458
+ this._store = new X(), this.props = e;
1459
+ }
1460
+ dispose() {
1461
+ this._store.dispose();
1462
+ }
1463
+ }
1464
+ function Vr(r) {
1465
+ return r[ae] || (r[ae] = io(void 0)), r[ae];
1466
+ }
1467
+ function L(r = {}) {
1468
+ var e;
1469
+ return e = class extends Or {
1470
+ }, e._props = r, e;
1471
+ }
1472
+ let fe = 0;
1473
+ const Lr = new Er((r) => {
1474
+ for (const e of r)
1475
+ e.rendered = !1;
1476
+ if (fe > 0) {
1477
+ const e = r.find((o) => o.isRendering);
1478
+ e.itemsToRender = r;
1479
+ } else
1480
+ co(() => {
1481
+ for (const e of r)
1482
+ e.rendered || e.forceUpdate();
1483
+ });
1484
+ });
1485
+ let Nr = 0;
1486
+ class Dr {
1487
+ constructor(e, o) {
1488
+ this.debugName = e, this.renderFactory = o, this._obsProps = void 0, this.forceUpdate = void 0, this._render = void 0, this._disposable = void 0, this.contextValues = /* @__PURE__ */ new Map(), this.cleanupEffect = () => () => {
1489
+ var n;
1490
+ (n = this._disposable) == null || n.dispose();
1491
+ }, this.itemsToRender = [], this.handleAfterRender = () => {
1492
+ co(() => {
1493
+ for (const n of this.itemsToRender)
1494
+ n.rendered || n.forceUpdate();
1495
+ }), this.itemsToRender = [];
1496
+ }, this.rendering = void 0, this.isRendering = !1, this.rendered = !1;
1497
+ }
1498
+ toString() {
1499
+ return this.debugName;
1500
+ }
1501
+ updateProps(e) {
1502
+ this._obsProps ? this._obsProps.set(e, void 0) : (this._obsProps = w(this, e), this._render = this.renderFactory(this._obsProps, () => this.contextValues), this.rendering = R(this, this._render), this._disposable = Lr.addDependency(this.rendering, this));
1503
+ }
1504
+ }
1505
+ function Se(r, e, o) {
1506
+ const n = (c) => c + 1, t = () => new Dr(r + ++Nr, e), i = function(c) {
1507
+ const d = $o(n, 0)[1], l = Uo(t)[0];
1508
+ for (const p of o ?? [])
1509
+ l.contextValues.set(p, jo(p));
1510
+ if (Me(l.cleanupEffect, []), Me(l.handleAfterRender), l.isRendering)
1511
+ throw new Error("Component is already rendering");
1512
+ l.isRendering = !0, fe++;
1513
+ try {
1514
+ l.forceUpdate = d, l.updateProps(c);
1515
+ const p = l.rendering.get();
1516
+ return l.rendered = !0, p;
1517
+ } finally {
1518
+ l.isRendering = !1, fe--;
1519
+ }
1520
+ };
1521
+ return i.displayName = r, i;
1522
+ }
1523
+ Se("ObsView", (r) => (e) => r.read(e).children(e));
1524
+ function E(r, e) {
1525
+ return Se("view", (o) => {
1526
+ const n = K(r, (t, i) => t.create((c) => o.read(c)[i], void 0));
1527
+ return (t) => {
1528
+ const i = K(n, (c) => c.read(t));
1529
+ return e(t, i);
1530
+ };
1531
+ });
1532
+ }
1533
+ function Gr(r) {
1534
+ const e = [];
1535
+ for (const o of Object.values(r)) {
1536
+ const n = o._requiredContext;
1537
+ n && !e.includes(n) && e.push(n);
1538
+ }
1539
+ return e;
1540
+ }
1541
+ function N(r, e, o) {
1542
+ const n = typeof e == "function" ? {} : e, t = typeof e == "function" ? e : o, i = "_props" in r ? r._props : {}, c = Gr({ ...i, ...n }), d = Vr(r), l = [...c, d];
1543
+ return Se("viewWithModel", (p, g) => {
1544
+ const u = g(), x = u.get(d), k = "_props" in r ? K(r._props, (v, _) => v.create((S) => p.read(S)[_], u.get(v._requiredContext))) : {}, B = x ? { read: () => x, dispose: () => {
1545
+ } } : fr((v) => {
1546
+ const _ = K(k, (S) => S.read(v));
1547
+ return new r(_);
1548
+ }), b = K(n, (v, _) => v.create((S) => p.read(S)[_], u.get(v._requiredContext)));
1549
+ return (v) => {
1550
+ const _ = B.read(v), S = K(b, (Re) => Re.read(v));
1551
+ return t(v, _, S);
1552
+ };
1553
+ }, l.length > 0 ? l : void 0);
1554
+ }
1555
+ E({ value: m.obs() }, (r, e) => e.value.read(r));
1556
+ io(null);
1557
+ function wo(r) {
1558
+ var e;
1559
+ return {
1560
+ id: r.id,
1561
+ name: r.name,
1562
+ type: r.type,
1563
+ children: (e = r.children) == null ? void 0 : e.map(wo),
1564
+ component: r.component,
1565
+ labels: r.labels
1566
+ };
1567
+ }
1568
+ function Ar(r, e) {
1569
+ if (r.name.toLowerCase().includes(e)) return !0;
1570
+ for (const o of r.labels)
1571
+ if (o.toLowerCase().includes(e)) return !0;
1572
+ return !1;
1573
+ }
1574
+ function zr(r, e) {
1575
+ if (!e) return r;
1576
+ const o = e.toLowerCase();
1577
+ return Bo(r, o);
1578
+ }
1579
+ function Bo(r, e) {
1580
+ const o = Ar(r, e);
1581
+ if (!r.children || r.children.length === 0)
1582
+ return o ? r : void 0;
1583
+ if (o) return r;
1584
+ const n = [];
1585
+ for (const t of r.children) {
1586
+ const i = Bo(t, e);
1587
+ i && n.push(i);
1588
+ }
1589
+ if (n.length !== 0)
1590
+ return {
1591
+ ...r,
1592
+ children: n
1593
+ };
1594
+ }
1595
+ function oe(r, e) {
1596
+ const {
1597
+ storageKey: o,
1598
+ defaultValue: n,
1599
+ serialize: t = JSON.stringify,
1600
+ deserialize: i = JSON.parse
1601
+ } = e;
1602
+ let c = n;
1603
+ try {
1604
+ const p = localStorage.getItem(o);
1605
+ p !== null && (c = i(p));
1606
+ } catch {
1607
+ }
1608
+ const d = w(r, c), l = d.set.bind(d);
1609
+ return d.set = (p, g) => {
1610
+ try {
1611
+ localStorage.setItem(o, t(p));
1612
+ } catch {
1613
+ }
1614
+ l(p, g);
1615
+ }, d;
1616
+ }
1617
+ function We(r, e) {
1618
+ const n = new URLSearchParams(location.search).get(e) || void 0, t = w(r, n);
1619
+ window.addEventListener("popstate", () => {
1620
+ const c = new URLSearchParams(location.search);
1621
+ t.set(c.get(e) || void 0, void 0);
1622
+ });
1623
+ const i = t.set.bind(t);
1624
+ return t.set = (c, d) => {
1625
+ const l = new URLSearchParams(location.search);
1626
+ c ? l.set(e, c) : l.delete(e);
1627
+ const p = l.toString(), g = location.pathname + (p ? "?" + p : "") + location.hash;
1628
+ history.replaceState(history.state, "", g), i(c, d);
1629
+ }, t;
1630
+ }
1631
+ function _o(r, e) {
1632
+ const o = new URLSearchParams(location.search);
1633
+ return o.set(r, e), location.pathname + "?" + o.toString();
1634
+ }
1635
+ class Pr extends L({
1636
+ registry: m.const(),
1637
+ daemonModel: m.const(),
1638
+ reportModel: m.const()
1639
+ }) {
1640
+ constructor() {
1641
+ super(...arguments);
1642
+ s(this, "leftSidebarVisible", oe(this, {
1643
+ storageKey: "component-explorer:leftSidebarVisible",
1644
+ defaultValue: !0
1645
+ }));
1646
+ s(this, "rightSidebarVisible", oe(this, {
1647
+ storageKey: "component-explorer:rightSidebarVisible",
1648
+ defaultValue: !1
1649
+ }));
1650
+ s(this, "isDarkTheme", oe(this, {
1651
+ storageKey: "component-explorer:isDarkTheme",
1652
+ defaultValue: !0
1653
+ }));
1654
+ s(this, "selectedNodeId", We(this, "fixture"));
1655
+ s(this, "expandedNodeIds", w(this, this._initialExpandedNodes()));
1656
+ s(this, "viewMode", oe(this, {
1657
+ storageKey: "component-explorer:viewMode",
1658
+ defaultValue: "session"
1659
+ }));
1660
+ s(this, "loading", R(this, (o) => this.props.registry.loading.read(o)));
1661
+ s(this, "searchQuery", We(this, "search"));
1662
+ /** The explorer's tree derived from the registry or report */
1663
+ s(this, "tree", R(this, (o) => {
1664
+ const n = this.props.reportModel;
1665
+ if (n)
1666
+ return n.buildTree(o);
1667
+ const t = this.props.registry.root.read(o);
1668
+ return wo(t);
1669
+ }));
1670
+ s(this, "filteredTree", R(this, (o) => {
1671
+ const n = this.tree.read(o), t = this.searchQuery.read(o);
1672
+ return zr(n, t) ?? { ...n, children: [] };
1673
+ }));
1674
+ s(this, "selectedNode", R(this, (o) => {
1675
+ const n = this.selectedNodeId.read(o);
1676
+ if (n === void 0) return;
1677
+ const t = this.filteredTree.read(o);
1678
+ return t.id.value === n ? t : this._findNode(t.children ?? [], n);
1679
+ }));
1680
+ /** List of preview rows to render based on current selection and view mode */
1681
+ s(this, "selectedFixtures", R(this, (o) => {
1682
+ const n = this.selectedNode.read(o);
1683
+ if (!n) return [];
1684
+ const t = n.type === "component" ? n.id.segments.slice(-3).join(" / ") : n.name;
1685
+ return this.isReportMode ? (this.props.reportModel.state.read(o), this._collectReportRows(n, t)) : this.viewMode.read(o) === "diff" && this.daemonAvailable && this.daemon.sessions.read(o).length > 1 ? this._collectDiffRows(n, t) : this._collectPreviewRows(n, t);
1686
+ }));
1687
+ s(this, "setViewMode", (o) => {
1688
+ this.viewMode.set(o, void 0);
1689
+ });
1690
+ s(this, "navigateToSession", (o) => {
1691
+ const n = this.props.daemonModel;
1692
+ if (!n) return;
1693
+ const t = n.getSessionExplorerUrl(o);
1694
+ t && (window.location.href = t);
1695
+ });
1696
+ s(this, "toggleLeftSidebar", () => {
1697
+ this.leftSidebarVisible.set(!this.leftSidebarVisible.get(), void 0);
1698
+ });
1699
+ s(this, "toggleRightSidebar", () => {
1700
+ this.rightSidebarVisible.set(!this.rightSidebarVisible.get(), void 0);
1701
+ });
1702
+ s(this, "toggleTheme", () => {
1703
+ this.isDarkTheme.set(!this.isDarkTheme.get(), void 0);
1704
+ });
1705
+ s(this, "selectNode", (o) => {
1706
+ this.selectedNodeId.set(o, void 0);
1707
+ });
1708
+ s(this, "toggleNodeExpanded", (o) => {
1709
+ const n = this.expandedNodeIds.get(), t = new Set(n);
1710
+ t.has(o) ? t.delete(o) : t.add(o), this.expandedNodeIds.set(t, void 0);
1711
+ });
1712
+ }
1713
+ get daemonAvailable() {
1714
+ return this.props.daemonModel !== void 0;
1715
+ }
1716
+ get daemon() {
1717
+ return this.props.daemonModel;
1718
+ }
1719
+ get reportModel() {
1720
+ return this.props.reportModel;
1721
+ }
1722
+ get isReportMode() {
1723
+ return this.props.reportModel !== void 0;
1724
+ }
1725
+ isNodeExpanded(o, n) {
1726
+ return this.searchQuery.read(n) ? !0 : this.expandedNodeIds.read(n).has(o);
1727
+ }
1728
+ _initialExpandedNodes() {
1729
+ const o = this.selectedNodeId.get();
1730
+ if (!o) return /* @__PURE__ */ new Set([""]);
1731
+ const n = new T(o).segments, t = /* @__PURE__ */ new Set([""]);
1732
+ for (let i = 1; i <= n.length; i++)
1733
+ t.add(n.slice(0, i).join("/"));
1734
+ return t;
1735
+ }
1736
+ _findNode(o, n) {
1737
+ for (const t of o) {
1738
+ if (t.id.value === n) return t;
1739
+ if (t.children) {
1740
+ const i = this._findNode(t.children, n);
1741
+ if (i) return i;
1742
+ }
1743
+ }
1744
+ }
1745
+ _collectPreviewRows(o, n) {
1746
+ if (o.type === "component" && o.component)
1747
+ return [{
1748
+ type: "single",
1749
+ fixture: {
1750
+ id: o.id.value,
1751
+ name: o.name,
1752
+ path: n,
1753
+ component: o.component
1754
+ }
1755
+ }];
1756
+ if (o.type === "variants") {
1757
+ const i = [];
1758
+ for (const c of o.children ?? [])
1759
+ c.type === "component" && c.component && i.push({
1760
+ id: c.id.value,
1761
+ name: c.name,
1762
+ path: `${n} / ${c.name}`,
1763
+ component: c.component
1764
+ });
1765
+ return i.length > 0 ? [{
1766
+ type: "variants",
1767
+ id: o.id.value,
1768
+ name: o.name,
1769
+ path: n,
1770
+ fixtures: i
1771
+ }] : [];
1772
+ }
1773
+ const t = [];
1774
+ for (const i of o.children ?? []) {
1775
+ const c = n ? `${n} / ${i.name}` : i.name;
1776
+ t.push(...this._collectPreviewRows(i, c));
1777
+ }
1778
+ return t;
1779
+ }
1780
+ /**
1781
+ * In diff mode: fixtures become screenshot comparison items showing current vs baseline.
1782
+ * Variants become comparison groups.
1783
+ */
1784
+ _collectDiffRows(o, n) {
1785
+ if (o.type === "component")
1786
+ return [{
1787
+ type: "screenshot-comparison",
1788
+ id: o.id.value,
1789
+ name: o.name,
1790
+ path: n,
1791
+ items: [{
1792
+ fixtureId: o.id.value,
1793
+ name: o.name,
1794
+ path: n
1795
+ }]
1796
+ }];
1797
+ if (o.type === "variants") {
1798
+ const i = [];
1799
+ for (const c of o.children ?? [])
1800
+ c.type === "component" && i.push({
1801
+ fixtureId: c.id.value,
1802
+ name: c.name,
1803
+ path: `${n} / ${c.name}`
1804
+ });
1805
+ return i.length > 0 ? [{
1806
+ type: "screenshot-comparison",
1807
+ id: o.id.value,
1808
+ name: o.name,
1809
+ path: n,
1810
+ items: i
1811
+ }] : [];
1812
+ }
1813
+ const t = [];
1814
+ for (const i of o.children ?? []) {
1815
+ const c = n ? `${n} / ${i.name}` : i.name;
1816
+ t.push(...this._collectDiffRows(i, c));
1817
+ }
1818
+ return t;
1819
+ }
1820
+ _collectReportRows(o, n) {
1821
+ const t = this.props.reportModel.state.get();
1822
+ if (t.status !== "ready") return [];
1823
+ const i = t.report.fixtures;
1824
+ if (o.type === "component") {
1825
+ const d = i[o.id.value];
1826
+ return d ? [{
1827
+ type: "report-comparison",
1828
+ id: o.id.value,
1829
+ name: o.name,
1830
+ path: n,
1831
+ items: [{
1832
+ fixtureId: o.id.value,
1833
+ name: o.name,
1834
+ path: n,
1835
+ entry: d
1836
+ }]
1837
+ }] : [];
1838
+ }
1839
+ const c = [];
1840
+ for (const d of o.children ?? []) {
1841
+ const l = n ? `${n} / ${d.name}` : d.name;
1842
+ c.push(...this._collectReportRows(d, l));
1843
+ }
1844
+ return c;
1845
+ }
1846
+ }
1847
+ const h = {
1848
+ container: {
1849
+ display: "flex",
1850
+ flexDirection: "row",
1851
+ height: "100%",
1852
+ width: "100%",
1853
+ fontFamily: "var(--component-explorer-font-family)",
1854
+ fontSize: "var(--component-explorer-font-size)",
1855
+ color: "var(--component-explorer-foreground)",
1856
+ backgroundColor: "var(--component-explorer-editor-background)"
1857
+ },
1858
+ centerArea: {
1859
+ display: "flex",
1860
+ flexDirection: "column",
1861
+ flex: 1,
1862
+ overflow: "hidden"
1863
+ },
1864
+ titleBar: {
1865
+ display: "flex",
1866
+ alignItems: "center",
1867
+ justifyContent: "space-between",
1868
+ height: "35px",
1869
+ minHeight: "35px",
1870
+ padding: "0 10px",
1871
+ backgroundColor: "var(--component-explorer-titleBar-activeBackground)",
1872
+ color: "var(--component-explorer-titleBar-activeForeground)",
1873
+ borderBottom: "1px solid var(--component-explorer-titleBar-border, var(--component-explorer-panel-border))"
1874
+ },
1875
+ titleBarSection: {
1876
+ display: "flex",
1877
+ alignItems: "center",
1878
+ gap: "2px"
1879
+ },
1880
+ titleBarCenter: {
1881
+ display: "flex",
1882
+ alignItems: "center",
1883
+ gap: "4px",
1884
+ fontSize: "13px",
1885
+ fontWeight: 400
1886
+ },
1887
+ titleBarButton: {
1888
+ display: "flex",
1889
+ alignItems: "center",
1890
+ justifyContent: "center",
1891
+ width: "28px",
1892
+ height: "28px",
1893
+ border: "none",
1894
+ background: "transparent",
1895
+ color: "var(--component-explorer-titleBar-activeForeground)",
1896
+ cursor: "pointer",
1897
+ borderRadius: "4px"
1898
+ },
1899
+ titleBarButtonHover: {
1900
+ backgroundColor: "var(--component-explorer-toolbar-hoverBackground)"
1901
+ },
1902
+ titleBarButtonActive: {
1903
+ backgroundColor: "var(--component-explorer-toolbar-activeBackground)",
1904
+ color: "var(--component-explorer-focusBorder)"
1905
+ },
1906
+ sidebar: {
1907
+ display: "flex",
1908
+ flexDirection: "column",
1909
+ width: "260px",
1910
+ minWidth: "200px",
1911
+ backgroundColor: "var(--component-explorer-sideBar-background)",
1912
+ borderRight: "1px solid var(--component-explorer-titleBar-border, var(--component-explorer-panel-border))"
1913
+ },
1914
+ sidebarRight: {
1915
+ borderRight: "none",
1916
+ borderLeft: "1px solid var(--component-explorer-titleBar-border, var(--component-explorer-panel-border))"
1917
+ },
1918
+ sidebarHeader: {
1919
+ display: "flex",
1920
+ alignItems: "center",
1921
+ height: "35px",
1922
+ minHeight: "35px",
1923
+ padding: "0 12px",
1924
+ fontSize: "11px",
1925
+ fontWeight: 700,
1926
+ textTransform: "uppercase",
1927
+ letterSpacing: "0.04em",
1928
+ color: "var(--component-explorer-titleBar-activeForeground)",
1929
+ backgroundColor: "var(--component-explorer-titleBar-activeBackground)",
1930
+ borderBottom: "1px solid var(--component-explorer-titleBar-border, var(--component-explorer-panel-border))"
1931
+ },
1932
+ sidebarContent: {
1933
+ flex: 1,
1934
+ overflow: "auto",
1935
+ padding: "4px 0"
1936
+ },
1937
+ treeItem: {
1938
+ display: "flex",
1939
+ alignItems: "center",
1940
+ height: "22px",
1941
+ paddingRight: "8px",
1942
+ cursor: "pointer",
1943
+ userSelect: "none"
1944
+ },
1945
+ treeItemSelected: {
1946
+ backgroundColor: "var(--component-explorer-list-activeSelectionBackground)",
1947
+ color: "var(--component-explorer-list-activeSelectionForeground)"
1948
+ },
1949
+ treeItemHover: {
1950
+ backgroundColor: "var(--component-explorer-list-hoverBackground)"
1951
+ },
1952
+ treeItemChevron: {
1953
+ display: "flex",
1954
+ alignItems: "center",
1955
+ justifyContent: "center",
1956
+ width: "16px",
1957
+ height: "16px",
1958
+ color: "var(--component-explorer-foreground)",
1959
+ opacity: 0.8,
1960
+ cursor: "pointer"
1961
+ },
1962
+ treeItemChevronPlaceholder: {
1963
+ width: "16px"
1964
+ },
1965
+ treeItemIcon: {
1966
+ display: "flex",
1967
+ alignItems: "center",
1968
+ justifyContent: "center",
1969
+ width: "16px",
1970
+ height: "16px",
1971
+ marginRight: "4px"
1972
+ },
1973
+ treeItemLabel: {
1974
+ flex: 1,
1975
+ overflow: "hidden",
1976
+ textOverflow: "ellipsis",
1977
+ whiteSpace: "nowrap",
1978
+ fontSize: "13px"
1979
+ },
1980
+ treeItemCount: {
1981
+ marginLeft: "8px",
1982
+ fontSize: "11px",
1983
+ color: "var(--component-explorer-descriptionForeground)"
1984
+ },
1985
+ mainContent: {
1986
+ flex: 1,
1987
+ display: "flex",
1988
+ alignItems: "center",
1989
+ justifyContent: "center",
1990
+ backgroundColor: "var(--component-explorer-editor-background)",
1991
+ color: "var(--component-explorer-descriptionForeground)",
1992
+ fontSize: "14px"
1993
+ },
1994
+ propertiesPanel: {
1995
+ padding: "12px"
1996
+ },
1997
+ propertyRow: {
1998
+ marginBottom: "12px"
1999
+ },
2000
+ propertyLabel: {
2001
+ fontSize: "12px",
2002
+ color: "var(--component-explorer-foreground)",
2003
+ marginBottom: "4px"
2004
+ },
2005
+ propertyDescription: {
2006
+ fontSize: "11px",
2007
+ color: "var(--component-explorer-descriptionForeground)",
2008
+ marginTop: "2px"
2009
+ },
2010
+ propertyInput: {
2011
+ width: "100%",
2012
+ height: "26px",
2013
+ padding: "0 8px",
2014
+ fontSize: "13px",
2015
+ color: "var(--component-explorer-input-foreground)",
2016
+ backgroundColor: "var(--component-explorer-input-background)",
2017
+ border: "1px solid var(--component-explorer-input-border, transparent)",
2018
+ borderRadius: "2px",
2019
+ outline: "none",
2020
+ boxSizing: "border-box"
2021
+ },
2022
+ propertySelect: {
2023
+ width: "100%",
2024
+ height: "26px",
2025
+ padding: "0 8px",
2026
+ fontSize: "13px",
2027
+ color: "var(--component-explorer-dropdown-foreground)",
2028
+ backgroundColor: "var(--component-explorer-dropdown-background)",
2029
+ border: "1px solid var(--component-explorer-dropdown-border)",
2030
+ borderRadius: "2px",
2031
+ outline: "none",
2032
+ boxSizing: "border-box",
2033
+ cursor: "pointer"
2034
+ }
2035
+ };
2036
+ function Fe(...r) {
2037
+ return Object.assign({}, ...r.filter(Boolean));
2038
+ }
2039
+ class Wr extends L({
2040
+ active: m()
2041
+ }) {
2042
+ constructor() {
2043
+ super(...arguments);
2044
+ s(this, "isHovered", w(this, !1));
2045
+ s(this, "setHovered", (o) => {
2046
+ this.isHovered.set(o, void 0);
2047
+ });
2048
+ }
2049
+ get active() {
2050
+ return this.props.active;
2051
+ }
2052
+ }
2053
+ const de = N(
2054
+ Wr,
2055
+ {
2056
+ onClick: m.const(),
2057
+ title: m.const(),
2058
+ children: m.const()
2059
+ },
2060
+ (r, e, o) => {
2061
+ const n = e.isHovered.read(r), t = e.active.read(r), i = Fe(
2062
+ h.titleBarButton,
2063
+ n && !t && h.titleBarButtonHover,
2064
+ t && h.titleBarButtonActive
2065
+ );
2066
+ return /* @__PURE__ */ a(
2067
+ "button",
2068
+ {
2069
+ style: i,
2070
+ onClick: o.onClick,
2071
+ title: o.title,
2072
+ onMouseEnter: () => e.setHovered(!0),
2073
+ onMouseLeave: () => e.setHovered(!1),
2074
+ children: o.children
2075
+ }
2076
+ );
2077
+ }
2078
+ ), $r = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M5.7 13.7L5 13l4.6-4.6L5 3.7l.7-.7 5.3 5.4-5.3 5.3z" }) }), Ur = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M11 5.5L6 10.5L5.3 9.8L9.6 5.5L5.3 1.2L6 0.5L11 5.5z", transform: "rotate(90 8 5.5)" }) }), jr = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M14.5 2H9l-.35.15-.65.64-.65-.64L7 2H1.5l-.5.5v10l.5.5H7l.35-.15.65-.64.65.64.35.15h5.5l.5-.5v-10l-.5-.5zm-7 10H2V3h5v.86L5.85 5l1.15 1.14V10l-1.15-1.14L7 7.72V12zm6 0H8V7.72l1.15 1.14L8 10V6.14L9.15 5 8 3.86V3h5v9z" }) }), qr = ({ style: r }) => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", style: r, children: /* @__PURE__ */ a("path", { d: "M14.5 3H7.71l-.85-.85L6.5 2h-5l-.5.5v11l.5.5h13l.5-.5v-10l-.5-.5zm-.5 10H2V6h12v7zm0-8H2V3h4.29l.85.85.36.15H14v1z" }) }), Qr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm11 11H6V3h7v10zM3 3h2v10H3V3z" }) }), Kr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm6 11V3h5v10H8zM3 3h4v10H3V3z" }) }), Jr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z" }) }), Zr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z" }) }), Yr = E(
2079
+ { model: m.const() },
2080
+ (r, e) => {
2081
+ var d, l;
2082
+ const o = e.model, n = o.viewMode.read(r), t = ((d = o.daemon) == null ? void 0 : d.sessions.read(r)) ?? [], i = (l = o.daemon) == null ? void 0 : l.sessionName, c = t.filter((p) => p.name !== i);
2083
+ return t.length <= 1 ? null : /* @__PURE__ */ f("div", { style: J.container, children: [
2084
+ /* @__PURE__ */ f("div", { style: J.segmentedControl, children: [
2085
+ /* @__PURE__ */ a($e, { label: "Live", mode: "session", active: n === "session", onClick: () => o.setViewMode("session") }),
2086
+ /* @__PURE__ */ a($e, { label: "Diff", mode: "diff", active: n === "diff", onClick: () => o.setViewMode("diff") })
2087
+ ] }),
2088
+ c.length > 0 && /* @__PURE__ */ a("div", { style: J.sessionLinks, children: c.map((p) => /* @__PURE__ */ f(
2089
+ "button",
2090
+ {
2091
+ style: J.sessionLink,
2092
+ onClick: () => o.navigateToSession(p.name),
2093
+ title: `Switch to ${p.name} session`,
2094
+ children: [
2095
+ "→ ",
2096
+ p.name
2097
+ ]
2098
+ },
2099
+ p.name
2100
+ )) })
2101
+ ] });
2102
+ }
2103
+ );
2104
+ function $e({ label: r, mode: e, active: o, onClick: n }) {
2105
+ return /* @__PURE__ */ a(
2106
+ "button",
2107
+ {
2108
+ style: o ? J.segmentActive : J.segment,
2109
+ onClick: n,
2110
+ children: r
2111
+ }
2112
+ );
2113
+ }
2114
+ const Xr = E(
2115
+ {
2116
+ model: m.const()
2117
+ },
2118
+ (r, e) => {
2119
+ const o = e.model, n = o.leftSidebarVisible.read(r), t = o.rightSidebarVisible.read(r), i = o.isDarkTheme.read(r), c = o.selectedNode.read(r);
2120
+ return /* @__PURE__ */ f("div", { style: h.titleBar, children: [
2121
+ /* @__PURE__ */ a("div", { style: h.titleBarSection, children: /* @__PURE__ */ a(
2122
+ de,
2123
+ {
2124
+ active: n,
2125
+ onClick: o.toggleLeftSidebar,
2126
+ title: "Toggle left sidebar",
2127
+ children: /* @__PURE__ */ a(Qr, {})
2128
+ }
2129
+ ) }),
2130
+ /* @__PURE__ */ f("div", { style: h.titleBarCenter, children: [
2131
+ o.isReportMode ? /* @__PURE__ */ a("span", { style: { fontSize: 12, color: "var(--component-explorer-descriptionForeground)" }, children: "Screenshot Report" }) : o.daemonAvailable ? /* @__PURE__ */ a(Yr, { model: o }) : null,
2132
+ c ? /* @__PURE__ */ f(ve, { children: [
2133
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-textLink-foreground)" }, children: "<" }),
2134
+ /* @__PURE__ */ a("span", { children: c.name }),
2135
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-textLink-foreground)" }, children: "/>" })
2136
+ ] }) : /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-descriptionForeground)" }, children: "No component selected" })
2137
+ ] }),
2138
+ /* @__PURE__ */ f("div", { style: h.titleBarSection, children: [
2139
+ /* @__PURE__ */ a(
2140
+ de,
2141
+ {
2142
+ active: !1,
2143
+ onClick: o.toggleTheme,
2144
+ title: i ? "Switch to light theme" : "Switch to dark theme",
2145
+ children: i ? /* @__PURE__ */ a(Jr, {}) : /* @__PURE__ */ a(Zr, {})
2146
+ }
2147
+ ),
2148
+ /* @__PURE__ */ a(
2149
+ de,
2150
+ {
2151
+ active: t,
2152
+ onClick: o.toggleRightSidebar,
2153
+ title: "Toggle right sidebar",
2154
+ children: /* @__PURE__ */ a(Kr, {})
2155
+ }
2156
+ )
2157
+ ] })
2158
+ ] });
2159
+ }
2160
+ ), J = {
2161
+ container: {
2162
+ display: "flex",
2163
+ alignItems: "center",
2164
+ gap: 8,
2165
+ marginRight: 12
2166
+ },
2167
+ segmentedControl: {
2168
+ display: "flex",
2169
+ borderRadius: 4,
2170
+ overflow: "hidden",
2171
+ border: "1px solid var(--component-explorer-panel-border)"
2172
+ },
2173
+ segment: {
2174
+ padding: "2px 10px",
2175
+ fontSize: 11,
2176
+ fontWeight: 500,
2177
+ border: "none",
2178
+ background: "transparent",
2179
+ color: "var(--component-explorer-descriptionForeground)",
2180
+ cursor: "pointer"
2181
+ },
2182
+ segmentActive: {
2183
+ padding: "2px 10px",
2184
+ fontSize: 11,
2185
+ fontWeight: 500,
2186
+ border: "none",
2187
+ background: "var(--component-explorer-button-background)",
2188
+ color: "var(--component-explorer-button-foreground)",
2189
+ cursor: "pointer"
2190
+ },
2191
+ sessionLinks: {
2192
+ display: "flex",
2193
+ gap: 4
2194
+ },
2195
+ sessionLink: {
2196
+ padding: "2px 8px",
2197
+ fontSize: 11,
2198
+ border: "1px solid var(--component-explorer-panel-border)",
2199
+ borderRadius: 4,
2200
+ background: "transparent",
2201
+ color: "var(--component-explorer-textLink-foreground)",
2202
+ cursor: "pointer"
2203
+ }
2204
+ }, en = {
2205
+ display: "flex",
2206
+ gap: "3px",
2207
+ marginLeft: "6px",
2208
+ overflow: "hidden",
2209
+ flexShrink: 1,
2210
+ minWidth: 0
2211
+ };
2212
+ function Co(r) {
2213
+ return r.type === "component" ? 1 : (r.children ?? []).reduce((e, o) => e + Co(o), 0);
2214
+ }
2215
+ const on = {
2216
+ fontSize: "10px",
2217
+ lineHeight: "14px",
2218
+ padding: "0 4px",
2219
+ borderRadius: "2px",
2220
+ backgroundColor: "var(--component-explorer-badge-background)",
2221
+ color: "var(--component-explorer-badge-foreground)",
2222
+ whiteSpace: "nowrap",
2223
+ overflow: "hidden",
2224
+ textOverflow: "ellipsis",
2225
+ maxWidth: "60px",
2226
+ cursor: "pointer"
2227
+ }, So = E(
2228
+ {
2229
+ model: m.const(),
2230
+ nodes: m.const(),
2231
+ depth: m.const()
2232
+ },
2233
+ (r, e) => /* @__PURE__ */ a(ve, { children: e.nodes.map((o) => /* @__PURE__ */ a(nn, { model: e.model, node: o, depth: e.depth }, o.id.value)) })
2234
+ );
2235
+ class rn extends L({
2236
+ model: m.const(),
2237
+ node: m.const(),
2238
+ depth: m.const()
2239
+ }) {
2240
+ constructor() {
2241
+ super(...arguments);
2242
+ s(this, "isHovered", w(this, !1));
2243
+ s(this, "setHovered", (o) => {
2244
+ this.isHovered.set(o, void 0);
2245
+ });
2246
+ s(this, "handleClick", () => {
2247
+ this.props.model.selectNode(this.props.node.id.value);
2248
+ });
2249
+ s(this, "handleDoubleClick", () => {
2250
+ this._hasChildren && this.props.model.toggleNodeExpanded(this.props.node.id.value);
2251
+ });
2252
+ s(this, "handleChevronClick", (o) => {
2253
+ o.stopPropagation(), this.props.model.toggleNodeExpanded(this.props.node.id.value);
2254
+ });
2255
+ }
2256
+ // Expose props for render function
2257
+ get explorerModel() {
2258
+ return this.props.model;
2259
+ }
2260
+ get treeNode() {
2261
+ return this.props.node;
2262
+ }
2263
+ get treeDepth() {
2264
+ return this.props.depth;
2265
+ }
2266
+ get _hasChildren() {
2267
+ return !!(this.props.node.children && this.props.node.children.length > 0);
2268
+ }
2269
+ }
2270
+ const nn = N(rn, {}, (r, e) => {
2271
+ const o = e.explorerModel, n = e.treeNode, t = e.treeDepth, i = !!(n.children && n.children.length > 0), c = i ? o.isNodeExpanded(n.id.value, r) : !1, l = o.selectedNodeId.read(r) === n.id.value, p = e.isHovered.read(r), g = Fe(
2272
+ h.treeItem,
2273
+ { paddingLeft: `${8 + t * 12}px` },
2274
+ l && h.treeItemSelected,
2275
+ !l && p && h.treeItemHover
2276
+ );
2277
+ return /* @__PURE__ */ f(ve, { children: [
2278
+ /* @__PURE__ */ f(
2279
+ "div",
2280
+ {
2281
+ style: g,
2282
+ onClick: e.handleClick,
2283
+ onDoubleClick: e.handleDoubleClick,
2284
+ onMouseEnter: () => e.setHovered(!0),
2285
+ onMouseLeave: () => e.setHovered(!1),
2286
+ children: [
2287
+ i ? /* @__PURE__ */ a("div", { style: h.treeItemChevron, onClick: e.handleChevronClick, children: c ? /* @__PURE__ */ a(Ur, {}) : /* @__PURE__ */ a($r, {}) }) : /* @__PURE__ */ a("div", { style: h.treeItemChevronPlaceholder }),
2288
+ /* @__PURE__ */ a("div", { style: h.treeItemIcon, children: n.type === "folder" ? /* @__PURE__ */ a(qr, { style: { color: "var(--component-explorer-symbolIcon-folderForeground)" } }) : /* @__PURE__ */ a(jr, { style: { color: "#deb45b" } }) }),
2289
+ /* @__PURE__ */ a("span", { style: h.treeItemLabel, children: n.name }),
2290
+ n.labels.some((u) => !u.startsWith(".")) && /* @__PURE__ */ a("span", { style: en, children: n.labels.filter((u) => !u.startsWith(".")).map((u) => /* @__PURE__ */ a(
2291
+ "span",
2292
+ {
2293
+ style: on,
2294
+ onClick: (x) => {
2295
+ x.stopPropagation(), o.searchQuery.set(u, void 0);
2296
+ },
2297
+ title: u,
2298
+ children: u
2299
+ },
2300
+ u
2301
+ )) }),
2302
+ n.type === "folder" && i && /* @__PURE__ */ a("span", { style: h.treeItemCount, children: Co(n) })
2303
+ ]
2304
+ }
2305
+ ),
2306
+ i && c && /* @__PURE__ */ a(So, { model: o, nodes: n.children, depth: t + 1 })
2307
+ ] });
2308
+ }), tn = {
2309
+ padding: "4px 8px",
2310
+ borderBottom: "1px solid var(--component-explorer-panel-border)"
2311
+ }, cn = {
2312
+ width: "100%",
2313
+ height: "24px",
2314
+ padding: "0 22px 0 6px",
2315
+ fontSize: "12px",
2316
+ color: "var(--component-explorer-input-foreground)",
2317
+ backgroundColor: "var(--component-explorer-input-background)",
2318
+ border: "1px solid var(--component-explorer-input-border, transparent)",
2319
+ borderRadius: "2px",
2320
+ outline: "none",
2321
+ boxSizing: "border-box"
2322
+ }, an = {
2323
+ position: "relative"
2324
+ }, dn = {
2325
+ position: "absolute",
2326
+ right: "2px",
2327
+ top: "50%",
2328
+ transform: "translateY(-50%)",
2329
+ display: "flex",
2330
+ alignItems: "center",
2331
+ justifyContent: "center",
2332
+ width: "18px",
2333
+ height: "18px",
2334
+ border: "none",
2335
+ background: "transparent",
2336
+ color: "var(--component-explorer-input-foreground)",
2337
+ cursor: "pointer",
2338
+ borderRadius: "2px",
2339
+ fontSize: "14px",
2340
+ opacity: 0.7
2341
+ }, ln = E(
2342
+ {
2343
+ model: m.const()
2344
+ },
2345
+ (r, e) => {
2346
+ const o = e.model.searchQuery.read(r);
2347
+ return /* @__PURE__ */ a("div", { style: tn, children: /* @__PURE__ */ f("div", { style: an, children: [
2348
+ /* @__PURE__ */ a(
2349
+ "input",
2350
+ {
2351
+ type: "text",
2352
+ placeholder: "Filter (name or label)",
2353
+ style: cn,
2354
+ value: o ?? "",
2355
+ onChange: (n) => e.model.searchQuery.set(n.target.value || void 0, void 0),
2356
+ onFocus: (n) => n.target.style.borderColor = "var(--component-explorer-focusBorder)",
2357
+ onBlur: (n) => n.target.style.borderColor = "var(--component-explorer-input-border, transparent)"
2358
+ }
2359
+ ),
2360
+ o && /* @__PURE__ */ a(
2361
+ "button",
2362
+ {
2363
+ style: dn,
2364
+ onClick: () => e.model.searchQuery.set(void 0, void 0),
2365
+ title: "Clear filter",
2366
+ children: "×"
2367
+ }
2368
+ )
2369
+ ] }) });
2370
+ }
2371
+ ), sn = E(
2372
+ {
2373
+ model: m.const()
2374
+ },
2375
+ (r, e) => {
2376
+ const o = e.model.filteredTree.read(r);
2377
+ return /* @__PURE__ */ f("div", { style: h.sidebar, children: [
2378
+ /* @__PURE__ */ a("div", { style: h.sidebarHeader, children: "Explorer" }),
2379
+ /* @__PURE__ */ a(ln, { model: e.model }),
2380
+ /* @__PURE__ */ a("div", { style: h.sidebarContent, children: /* @__PURE__ */ a(So, { model: e.model, nodes: [o], depth: 0 }) })
2381
+ ] });
2382
+ }
2383
+ );
2384
+ class pn extends L({}) {
2385
+ constructor() {
2386
+ super(...arguments);
2387
+ s(this, "checked", w(this, !1));
2388
+ s(this, "toggle", () => {
2389
+ this.checked.set(!this.checked.get(), void 0);
2390
+ });
2391
+ }
2392
+ }
2393
+ const gn = N(pn, {}, (r, e) => {
2394
+ const o = e.checked.read(r), n = {
2395
+ position: "relative",
2396
+ width: "36px",
2397
+ height: "18px",
2398
+ backgroundColor: o ? "var(--component-explorer-button-background)" : "var(--component-explorer-input-background)",
2399
+ borderRadius: "9px",
2400
+ cursor: "pointer",
2401
+ transition: "background-color 0.2s",
2402
+ border: "1px solid var(--component-explorer-input-border, transparent)"
2403
+ }, t = {
2404
+ position: "absolute",
2405
+ top: "2px",
2406
+ left: o ? "18px" : "2px",
2407
+ width: "12px",
2408
+ height: "12px",
2409
+ backgroundColor: "var(--component-explorer-foreground)",
2410
+ borderRadius: "50%",
2411
+ transition: "left 0.2s"
2412
+ };
2413
+ return /* @__PURE__ */ a("div", { style: n, onClick: e.toggle, children: /* @__PURE__ */ a("div", { style: t }) });
2414
+ }), un = E(
2415
+ {
2416
+ node: m.const()
2417
+ },
2418
+ (r, e) => e.node.type !== "component" ? /* @__PURE__ */ a("div", { style: { padding: "12px", color: "var(--component-explorer-descriptionForeground)", fontSize: "12px" }, children: "Select a component (not a folder) to view its properties" }) : /* @__PURE__ */ f("div", { style: h.propertiesPanel, children: [
2419
+ /* @__PURE__ */ f("div", { style: h.propertyRow, children: [
2420
+ /* @__PURE__ */ f("div", { style: h.propertyLabel, children: [
2421
+ "children",
2422
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-descriptionForeground)" }, children: " : string" })
2423
+ ] }),
2424
+ /* @__PURE__ */ a(
2425
+ "input",
2426
+ {
2427
+ type: "text",
2428
+ style: h.propertyInput,
2429
+ defaultValue: "Click me",
2430
+ placeholder: "Enter text..."
2431
+ }
2432
+ ),
2433
+ /* @__PURE__ */ a("div", { style: h.propertyDescription, children: "Button text content" })
2434
+ ] }),
2435
+ /* @__PURE__ */ f("div", { style: h.propertyRow, children: [
2436
+ /* @__PURE__ */ f("div", { style: h.propertyLabel, children: [
2437
+ "variant",
2438
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-descriptionForeground)" }, children: " : select" })
2439
+ ] }),
2440
+ /* @__PURE__ */ f("select", { style: h.propertySelect, defaultValue: "default", children: [
2441
+ /* @__PURE__ */ a("option", { value: "default", children: "default" }),
2442
+ /* @__PURE__ */ a("option", { value: "primary", children: "primary" }),
2443
+ /* @__PURE__ */ a("option", { value: "secondary", children: "secondary" }),
2444
+ /* @__PURE__ */ a("option", { value: "destructive", children: "destructive" })
2445
+ ] }),
2446
+ /* @__PURE__ */ a("div", { style: h.propertyDescription, children: "Visual style variant" })
2447
+ ] }),
2448
+ /* @__PURE__ */ f("div", { style: h.propertyRow, children: [
2449
+ /* @__PURE__ */ f("div", { style: h.propertyLabel, children: [
2450
+ "size",
2451
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-descriptionForeground)" }, children: " : select" })
2452
+ ] }),
2453
+ /* @__PURE__ */ f("select", { style: h.propertySelect, defaultValue: "default", children: [
2454
+ /* @__PURE__ */ a("option", { value: "sm", children: "sm" }),
2455
+ /* @__PURE__ */ a("option", { value: "default", children: "default" }),
2456
+ /* @__PURE__ */ a("option", { value: "lg", children: "lg" })
2457
+ ] }),
2458
+ /* @__PURE__ */ a("div", { style: h.propertyDescription, children: "Button size" })
2459
+ ] }),
2460
+ /* @__PURE__ */ f("div", { style: h.propertyRow, children: [
2461
+ /* @__PURE__ */ f("div", { style: h.propertyLabel, children: [
2462
+ "disabled",
2463
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-descriptionForeground)" }, children: " : boolean" })
2464
+ ] }),
2465
+ /* @__PURE__ */ a(gn, {}),
2466
+ /* @__PURE__ */ a("div", { style: h.propertyDescription, children: "Disable the button" })
2467
+ ] })
2468
+ ] })
2469
+ ), mn = E(
2470
+ {
2471
+ selectedNode: m.const()
2472
+ },
2473
+ (r, e) => /* @__PURE__ */ f("div", { style: Fe(h.sidebar, h.sidebarRight), children: [
2474
+ /* @__PURE__ */ f("div", { style: h.sidebarHeader, children: [
2475
+ /* @__PURE__ */ a("span", { style: { marginRight: "6px", color: "var(--component-explorer-textLink-foreground)" }, children: "</>" }),
2476
+ "Props"
2477
+ ] }),
2478
+ /* @__PURE__ */ a("div", { style: h.sidebarContent, children: e.selectedNode ? /* @__PURE__ */ a(un, { node: e.selectedNode }) : /* @__PURE__ */ a("div", { style: { padding: "12px", color: "var(--component-explorer-descriptionForeground)", fontSize: "12px" }, children: "Select a component to view its properties" }) })
2479
+ ] })
2480
+ ), Ue = 500;
2481
+ function Fo(r) {
2482
+ let e = null;
2483
+ function o() {
2484
+ if (e !== null) return e;
2485
+ try {
2486
+ const t = localStorage.getItem(r);
2487
+ if (t)
2488
+ return e = JSON.parse(t), e;
2489
+ } catch {
2490
+ }
2491
+ return e = {}, e;
2492
+ }
2493
+ function n() {
2494
+ if (e !== null)
2495
+ try {
2496
+ const t = Object.entries(e);
2497
+ t.length > Ue && (e = Object.fromEntries(t.slice(-Ue))), localStorage.setItem(r, JSON.stringify(e));
2498
+ } catch {
2499
+ }
2500
+ }
2501
+ return {
2502
+ get(t) {
2503
+ return o()[t];
2504
+ },
2505
+ set(t, i) {
2506
+ o()[t] = i, n();
2507
+ },
2508
+ getAll() {
2509
+ return new Map(Object.entries(o()));
2510
+ }
2511
+ };
2512
+ }
2513
+ const Io = Fo("component-explorer:fixtureHeights"), Ro = Fo("component-explorer:fixtureContentHeights");
2514
+ function fn(r, e) {
2515
+ Io.set(r, e);
2516
+ }
2517
+ function hn() {
2518
+ return Io.getAll();
2519
+ }
2520
+ function xn(r, e) {
2521
+ Ro.set(r, e);
2522
+ }
2523
+ function bn(r) {
2524
+ return Ro.get(r);
2525
+ }
2526
+ function je(r, e) {
2527
+ const o = [], n = [], t = e instanceof ShadowRoot ? e : e.head;
2528
+ for (const i of r)
2529
+ if (i.type === "css") {
2530
+ const c = document.createElement("style");
2531
+ c.textContent = i.content, t.appendChild(c), o.push(c);
2532
+ } else if (i.type === "url") {
2533
+ const c = document.createElement("link");
2534
+ c.rel = "stylesheet", c.href = i.href, t.appendChild(c), o.push(c);
2535
+ } else i.type === "adopted" && (e.adoptedStyleSheets = [...e.adoptedStyleSheets, i.sheet], n.push(i.sheet));
2536
+ return { injectedElements: o, adoptedSheets: n };
2537
+ }
2538
+ function vn(r, e, o) {
2539
+ for (const n of r)
2540
+ n.remove();
2541
+ for (const n of e)
2542
+ o.adoptedStyleSheets = o.adoptedStyleSheets.filter((t) => t !== n);
2543
+ }
2544
+ class Ie {
2545
+ constructor(e, o) {
2546
+ s(this, "renderTarget");
2547
+ s(this, "iframe", null);
2548
+ s(this, "_abortController", new AbortController());
2549
+ s(this, "_resolvedResult");
2550
+ s(this, "_injectedElements", []);
2551
+ s(this, "_adoptedSheets", []);
2552
+ s(this, "_styleTarget", document);
2553
+ s(this, "_rendered");
2554
+ this.component = o;
2555
+ const n = o.isolation;
2556
+ if (n === "shadow-dom") {
2557
+ const c = e.attachShadow({ mode: "open" });
2558
+ if (this._styleTarget = c, o.styles) {
2559
+ const { injectedElements: d, adoptedSheets: l } = je(o.styles, c);
2560
+ this._injectedElements = d, this._adoptedSheets = l;
2561
+ }
2562
+ this.renderTarget = document.createElement("div"), c.appendChild(this.renderTarget);
2563
+ } else if (n === "iframe") {
2564
+ const c = document.createElement("iframe");
2565
+ c.style.border = "none", c.style.display = "block", c.style.width = "100%", c.style.height = (bn(o.id) ?? 0) + "px";
2566
+ const d = new URL(location.pathname, location.origin);
2567
+ d.searchParams.set("mode", "embedded"), d.searchParams.set("fixture", o.id), d.searchParams.set("file", o.sourceFile), c.src = d.toString(), e.appendChild(c), this.iframe = c;
2568
+ const l = (p) => {
2569
+ var g;
2570
+ if (p.source === c.contentWindow && ((g = p.data) == null ? void 0 : g.type) === "component-explorer:resize") {
2571
+ const u = p.data.height;
2572
+ c.style.height = u + "px", xn(o.id, u);
2573
+ }
2574
+ };
2575
+ window.addEventListener("message", l), this._abortController.signal.addEventListener("abort", () => {
2576
+ window.removeEventListener("message", l);
2577
+ }), this.renderTarget = c, this._rendered = Promise.resolve(void 0);
2578
+ return;
2579
+ } else {
2580
+ if (o.styles) {
2581
+ const { injectedElements: c, adoptedSheets: d } = je(o.styles, document);
2582
+ this._injectedElements = c, this._adoptedSheets = d;
2583
+ }
2584
+ this.renderTarget = document.createElement("div"), e.appendChild(this.renderTarget);
2585
+ }
2586
+ const t = Jo(o.properties), i = o.render(this.renderTarget, {
2587
+ props: t,
2588
+ signal: this._abortController.signal
2589
+ });
2590
+ i instanceof Promise ? this._rendered = i.then((c) => {
2591
+ var d;
2592
+ if (this._abortController.signal.aborted) {
2593
+ (d = c == null ? void 0 : c.dispose) == null || d.call(c);
2594
+ return;
2595
+ }
2596
+ return this._resolvedResult = c ?? void 0, this._resolvedResult;
2597
+ }) : (this._resolvedResult = i ?? void 0, this._rendered = Promise.resolve(this._resolvedResult));
2598
+ }
2599
+ async waitForRendering() {
2600
+ const e = await this._rendered;
2601
+ return await (e == null ? void 0 : e.ready), e;
2602
+ }
2603
+ dispose() {
2604
+ var e, o;
2605
+ this._abortController.abort(), (o = (e = this._resolvedResult) == null ? void 0 : e.dispose) == null || o.call(e), this._resolvedResult = void 0, vn(this._injectedElements, this._adoptedSheets, this._styleTarget);
2606
+ }
2607
+ }
2608
+ let he;
2609
+ function kn(r) {
2610
+ he = r;
2611
+ }
2612
+ function yn() {
2613
+ if (!he)
2614
+ throw new Error("Explorer shadow host not initialized");
2615
+ return he;
2616
+ }
2617
+ const Eo = /* @__PURE__ */ new WeakSet(), qe = HTMLElement.prototype.focus;
2618
+ HTMLElement.prototype.focus = function(r) {
2619
+ !(r != null && r.preventScroll) && wn(this) ? qe.call(this, { ...r, preventScroll: !0 }) : qe.call(this, r);
2620
+ };
2621
+ function wn(r) {
2622
+ let e = r;
2623
+ for (; e; ) {
2624
+ if (e instanceof HTMLElement && Eo.has(e))
2625
+ return !0;
2626
+ e = e.parentElement;
2627
+ }
2628
+ return !1;
2629
+ }
2630
+ function Bn(r) {
2631
+ Eo.add(r);
2632
+ }
2633
+ let _n = 0;
2634
+ class Cn extends L({
2635
+ fixture: m.const(),
2636
+ compact: m.const(),
2637
+ onSelect: m.const()
2638
+ }) {
2639
+ constructor() {
2640
+ super(...arguments);
2641
+ s(this, "_canvasRef", null);
2642
+ s(this, "_fixtureContainer", null);
2643
+ s(this, "_rendering", null);
2644
+ s(this, "_resizeObserver", null);
2645
+ s(this, "measuredWidth", w(this, void 0));
2646
+ s(this, "measuredHeight", w(this, void 0));
2647
+ s(this, "slotName", `fixture-${_n++}`);
2648
+ s(this, "setCanvasRef", (o) => {
2649
+ if (o === this._canvasRef || (this._cleanup(), this._canvasRef = o, !o)) return;
2650
+ const n = yn(), t = document.createElement("div");
2651
+ t.slot = this.slotName;
2652
+ const i = this.fixture.component, c = i.displayMode;
2653
+ if (c.type === "page") {
2654
+ const l = c.viewports[0], p = Ko(l);
2655
+ t.style.width = `${p.width}px`, t.style.height = `${p.height}px`, t.style.overflow = "auto";
2656
+ } else
2657
+ t.style.all = "initial", t.style.display = "inline-block";
2658
+ n.appendChild(t), this._fixtureContainer = t, Bn(t);
2659
+ const d = new Ie(t, i);
2660
+ this._rendering = d, this._resizeObserver = new ResizeObserver((l) => {
2661
+ for (const p of l) {
2662
+ const { width: g, height: u } = p.contentRect;
2663
+ u > 0 && (this.measuredWidth.set(Math.round(g), void 0), this.measuredHeight.set(Math.round(u), void 0));
2664
+ }
2665
+ }), this._resizeObserver.observe(d.renderTarget);
2666
+ });
2667
+ }
2668
+ get fixture() {
2669
+ return this.props.fixture;
2670
+ }
2671
+ get compact() {
2672
+ return this.props.compact ?? !1;
2673
+ }
2674
+ get onSelect() {
2675
+ return this.props.onSelect;
2676
+ }
2677
+ _cleanup() {
2678
+ var o, n, t;
2679
+ (o = this._rendering) == null || o.dispose(), this._rendering = null, (n = this._resizeObserver) == null || n.disconnect(), this._resizeObserver = null, (t = this._fixtureContainer) == null || t.remove(), this._fixtureContainer = null;
2680
+ }
2681
+ dispose() {
2682
+ this._cleanup();
2683
+ }
2684
+ }
2685
+ const Ho = N(
2686
+ Cn,
2687
+ {},
2688
+ (r, e) => {
2689
+ const o = e.fixture, n = o.component, t = e.measuredWidth.read(r), i = e.measuredHeight.read(r), c = e.compact, d = t && i ? `${t} × ${i}` : "", l = c ? q.wrapperCompact : q.wrapper, p = c ? q.nameCompact : q.name;
2690
+ return /* @__PURE__ */ f("div", { style: l, children: [
2691
+ /* @__PURE__ */ f("div", { style: q.labelRow, children: [
2692
+ c && /* @__PURE__ */ a(
2693
+ "a",
2694
+ {
2695
+ href: _o("fixture", o.id),
2696
+ style: { ...p, textDecoration: "none", color: "inherit" },
2697
+ onClick: (g) => {
2698
+ e.onSelect && (g.preventDefault(), e.onSelect(o.id));
2699
+ },
2700
+ children: o.name
2701
+ }
2702
+ ),
2703
+ !c && d && /* @__PURE__ */ a("span", { style: q.dimensions, children: d })
2704
+ ] }),
2705
+ /* @__PURE__ */ a("div", { ref: e.setCanvasRef, style: Rn(n.background), children: /* @__PURE__ */ a("slot", { name: e.slotName }) })
2706
+ ] });
2707
+ }
2708
+ ), j = 8;
2709
+ function To(r, e) {
2710
+ return `
2711
+ linear-gradient(45deg, ${e} 25%, transparent 25%),
2712
+ linear-gradient(-45deg, ${e} 25%, transparent 25%),
2713
+ linear-gradient(45deg, transparent 75%, ${e} 75%),
2714
+ linear-gradient(-45deg, transparent 75%, ${e} 75%)
2715
+ `;
2716
+ }
2717
+ const Sn = {
2718
+ backgroundColor: "#ffffff",
2719
+ backgroundImage: To("#ffffff", "#e5e5e5")
2720
+ }, Fn = {
2721
+ backgroundColor: "#1e1e1e",
2722
+ backgroundImage: To("#1e1e1e", "#2d2d2d")
2723
+ }, In = {
2724
+ display: "inline-block",
2725
+ padding: "12px",
2726
+ borderRadius: "4px",
2727
+ backgroundSize: `${j * 2}px ${j * 2}px`,
2728
+ backgroundPosition: `0 0, 0 ${j}px, ${j}px -${j}px, -${j}px 0`,
2729
+ boxShadow: "0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08)",
2730
+ overflow: "hidden",
2731
+ position: "relative"
2732
+ };
2733
+ function Rn(r) {
2734
+ const e = r === "dark" ? Fn : Sn;
2735
+ return {
2736
+ ...In,
2737
+ backgroundColor: e.backgroundColor,
2738
+ backgroundImage: e.backgroundImage
2739
+ };
2740
+ }
2741
+ const q = {
2742
+ wrapper: {
2743
+ marginBottom: "32px"
2744
+ },
2745
+ wrapperCompact: {
2746
+ marginBottom: "0"
2747
+ },
2748
+ labelRow: {
2749
+ display: "flex",
2750
+ alignItems: "baseline",
2751
+ gap: "8px",
2752
+ marginBottom: "8px"
2753
+ },
2754
+ name: {
2755
+ fontSize: "12px",
2756
+ fontWeight: 500,
2757
+ color: "var(--component-explorer-foreground)"
2758
+ },
2759
+ nameCompact: {
2760
+ fontSize: "11px",
2761
+ fontWeight: 500,
2762
+ color: "var(--component-explorer-descriptionForeground)"
2763
+ },
2764
+ dimensions: {
2765
+ fontSize: "11px",
2766
+ color: "var(--component-explorer-descriptionForeground)",
2767
+ fontFamily: "var(--component-explorer-editor-font-family, monospace)"
2768
+ }
2769
+ };
2770
+ class En extends L({
2771
+ fixtureId: m.const(),
2772
+ sessionName: m.const(),
2773
+ daemon: m.const()
2774
+ }) {
2775
+ constructor(o) {
2776
+ super(o);
2777
+ s(this, "screenshot", w(this, { status: "idle" }));
2778
+ s(this, "_fetchVersion", 0);
2779
+ this._store.add(ho((n) => {
2780
+ this.props.daemon.sourceTreeIds.read(n).get(this.props.sessionName) && this._fetchScreenshot();
2781
+ }));
2782
+ }
2783
+ get fixtureId() {
2784
+ return this.props.fixtureId;
2785
+ }
2786
+ async _fetchScreenshot() {
2787
+ const o = ++this._fetchVersion;
2788
+ this.screenshot.set({ status: "loading" }, void 0);
2789
+ try {
2790
+ const n = await this.props.daemon.getScreenshot(this.props.sessionName, this.props.fixtureId);
2791
+ o === this._fetchVersion && this.screenshot.set({ status: "ready", data: n }, void 0);
2792
+ } catch (n) {
2793
+ o === this._fetchVersion && this.screenshot.set({ status: "error", message: String(n) }, void 0);
2794
+ }
2795
+ }
2796
+ }
2797
+ const Qe = N(
2798
+ En,
2799
+ {},
2800
+ (r, e) => {
2801
+ const o = e.screenshot.read(r);
2802
+ if (o.status === "idle" || o.status === "loading")
2803
+ return /* @__PURE__ */ a("div", { style: D.placeholder, children: /* @__PURE__ */ a("div", { style: D.shimmer }) });
2804
+ if (o.status === "error")
2805
+ return /* @__PURE__ */ a("div", { style: D.error, children: /* @__PURE__ */ a("span", { style: D.errorText, children: "Screenshot failed" }) });
2806
+ const { data: n } = o;
2807
+ return n.image ? /* @__PURE__ */ a(
2808
+ "img",
2809
+ {
2810
+ src: `data:image/png;base64,${n.image}`,
2811
+ style: D.image,
2812
+ alt: `Screenshot of ${e.fixtureId}`
2813
+ }
2814
+ ) : /* @__PURE__ */ a("div", { style: D.placeholder, children: /* @__PURE__ */ a("span", { style: D.hashText, children: n.hash.slice(0, 12) }) });
2815
+ }
2816
+ ), D = {
2817
+ placeholder: {
2818
+ minHeight: 80,
2819
+ display: "flex",
2820
+ alignItems: "center",
2821
+ justifyContent: "center",
2822
+ backgroundColor: "var(--component-explorer-editor-background)",
2823
+ border: "1px solid var(--component-explorer-panel-border)",
2824
+ borderRadius: 4,
2825
+ overflow: "hidden"
2826
+ },
2827
+ shimmer: {
2828
+ width: "100%",
2829
+ height: 80,
2830
+ background: "linear-gradient(90deg, var(--component-explorer-editor-background) 25%, var(--component-explorer-list-hoverBackground) 50%, var(--component-explorer-editor-background) 75%)",
2831
+ backgroundSize: "200% 100%",
2832
+ animation: "shimmer 1.5s infinite"
2833
+ },
2834
+ error: {
2835
+ minHeight: 80,
2836
+ display: "flex",
2837
+ alignItems: "center",
2838
+ justifyContent: "center",
2839
+ backgroundColor: "var(--component-explorer-inputValidation-errorBackground)",
2840
+ border: "1px solid var(--component-explorer-inputValidation-errorBorder)",
2841
+ borderRadius: 4
2842
+ },
2843
+ errorText: {
2844
+ fontSize: 12,
2845
+ color: "var(--component-explorer-errorForeground)"
2846
+ },
2847
+ hashText: {
2848
+ fontSize: 11,
2849
+ color: "var(--component-explorer-descriptionForeground)",
2850
+ fontFamily: "var(--component-explorer-editor-font-family, monospace)"
2851
+ },
2852
+ image: {
2853
+ maxWidth: "100%",
2854
+ display: "block",
2855
+ borderRadius: 4,
2856
+ border: "1px solid var(--component-explorer-panel-border)"
2857
+ }
2858
+ };
2859
+ class Hn extends L({
2860
+ fixtureId: m.const(),
2861
+ daemon: m.const(),
2862
+ baselineSession: m.const(),
2863
+ currentSession: m.const()
2864
+ }) {
2865
+ constructor(o) {
2866
+ super(o);
2867
+ s(this, "comparisonStatus", w(this, { status: "loading" }));
2868
+ this._store.add(ho((n) => {
2869
+ const t = this.props.daemon.sourceTreeIds.read(n), i = t.get(this.props.baselineSession), c = t.get(this.props.currentSession);
2870
+ i && c && this._fetchComparison();
2871
+ }));
2872
+ }
2873
+ get fixtureId() {
2874
+ return this.props.fixtureId;
2875
+ }
2876
+ get daemon() {
2877
+ return this.props.daemon;
2878
+ }
2879
+ get baselineSession() {
2880
+ return this.props.baselineSession;
2881
+ }
2882
+ get currentSession() {
2883
+ return this.props.currentSession;
2884
+ }
2885
+ async _fetchComparison() {
2886
+ this.comparisonStatus.set({ status: "loading" }, void 0);
2887
+ try {
2888
+ const o = await this.props.daemon.compare(
2889
+ this.props.fixtureId,
2890
+ this.props.baselineSession,
2891
+ this.props.currentSession
2892
+ );
2893
+ this.comparisonStatus.set({ status: "ready", match: o.match }, void 0);
2894
+ } catch (o) {
2895
+ this.comparisonStatus.set({ status: "error", message: String(o) }, void 0);
2896
+ }
2897
+ }
2898
+ }
2899
+ const Tn = N(
2900
+ Hn,
2901
+ {},
2902
+ (r, e) => {
2903
+ const o = e.comparisonStatus.read(r), n = o.status === "loading" ? /* @__PURE__ */ a("span", { style: F.badgeLoading, children: "comparing..." }) : o.status === "error" ? /* @__PURE__ */ a("span", { style: F.badgeError, children: "error" }) : o.match ? /* @__PURE__ */ a("span", { style: F.badgeMatch, children: "✓ match" }) : /* @__PURE__ */ a("span", { style: F.badgeChanged, children: "● changed" });
2904
+ return /* @__PURE__ */ f("div", { style: F.fixtureRow, children: [
2905
+ /* @__PURE__ */ f("div", { style: F.fixtureLabel, children: [
2906
+ /* @__PURE__ */ a("span", { style: F.fixtureName, children: e.fixtureId }),
2907
+ n
2908
+ ] }),
2909
+ /* @__PURE__ */ f("div", { style: F.sideBySide, children: [
2910
+ /* @__PURE__ */ f("div", { style: F.screenshotColumn, children: [
2911
+ /* @__PURE__ */ a("span", { style: F.columnLabel, children: "Current" }),
2912
+ /* @__PURE__ */ a(
2913
+ Qe,
2914
+ {
2915
+ fixtureId: e.fixtureId,
2916
+ sessionName: e.currentSession,
2917
+ daemon: e.daemon
2918
+ }
2919
+ )
2920
+ ] }),
2921
+ /* @__PURE__ */ f("div", { style: F.screenshotColumn, children: [
2922
+ /* @__PURE__ */ a("span", { style: F.columnLabel, children: "Baseline" }),
2923
+ /* @__PURE__ */ a(
2924
+ Qe,
2925
+ {
2926
+ fixtureId: e.fixtureId,
2927
+ sessionName: e.baselineSession,
2928
+ daemon: e.daemon
2929
+ }
2930
+ )
2931
+ ] })
2932
+ ] })
2933
+ ] });
2934
+ }
2935
+ ), Mn = E(
2936
+ {
2937
+ name: m.const(),
2938
+ path: m.const(),
2939
+ items: m.const(),
2940
+ daemon: m.const(),
2941
+ baselineSession: m.const(),
2942
+ currentSession: m.const()
2943
+ },
2944
+ (r, e) => /* @__PURE__ */ a("div", { style: F.groupContent, children: e.items.map((o) => /* @__PURE__ */ a(
2945
+ Tn,
2946
+ {
2947
+ fixtureId: o.fixtureId,
2948
+ daemon: e.daemon,
2949
+ baselineSession: e.baselineSession,
2950
+ currentSession: e.currentSession
2951
+ },
2952
+ o.fixtureId
2953
+ )) })
2954
+ ), F = {
2955
+ groupContent: {
2956
+ display: "flex",
2957
+ flexDirection: "column",
2958
+ gap: 24
2959
+ },
2960
+ fixtureRow: {
2961
+ display: "flex",
2962
+ flexDirection: "column",
2963
+ gap: 8
2964
+ },
2965
+ fixtureLabel: {
2966
+ display: "flex",
2967
+ alignItems: "center",
2968
+ gap: 8
2969
+ },
2970
+ fixtureName: {
2971
+ fontSize: 12,
2972
+ fontWeight: 500,
2973
+ color: "var(--component-explorer-foreground)"
2974
+ },
2975
+ sideBySide: {
2976
+ display: "flex",
2977
+ flexDirection: "row",
2978
+ gap: 16
2979
+ },
2980
+ screenshotColumn: {
2981
+ flex: 1,
2982
+ display: "flex",
2983
+ flexDirection: "column",
2984
+ gap: 4,
2985
+ minWidth: 0
2986
+ },
2987
+ columnLabel: {
2988
+ fontSize: 11,
2989
+ fontWeight: 500,
2990
+ color: "var(--component-explorer-descriptionForeground)",
2991
+ textTransform: "uppercase",
2992
+ letterSpacing: "0.05em"
2993
+ },
2994
+ badgeMatch: {
2995
+ fontSize: 11,
2996
+ color: "var(--component-explorer-testing-iconPassed)",
2997
+ fontWeight: 500
2998
+ },
2999
+ badgeChanged: {
3000
+ fontSize: 11,
3001
+ color: "var(--component-explorer-testing-iconFailed)",
3002
+ fontWeight: 500
3003
+ },
3004
+ badgeLoading: {
3005
+ fontSize: 11,
3006
+ color: "var(--component-explorer-descriptionForeground)",
3007
+ fontStyle: "italic"
3008
+ },
3009
+ badgeError: {
3010
+ fontSize: 11,
3011
+ color: "var(--component-explorer-errorForeground)",
3012
+ fontWeight: 500
3013
+ }
3014
+ }, Q = 8;
3015
+ function Mo(r, e) {
3016
+ return `
3017
+ linear-gradient(45deg, ${e} 25%, transparent 25%),
3018
+ linear-gradient(-45deg, ${e} 25%, transparent 25%),
3019
+ linear-gradient(45deg, transparent 75%, ${e} 75%),
3020
+ linear-gradient(-45deg, transparent 75%, ${e} 75%)
3021
+ `;
3022
+ }
3023
+ const On = {
3024
+ backgroundColor: "#ffffff",
3025
+ backgroundImage: Mo("#ffffff", "#e5e5e5")
3026
+ }, Vn = {
3027
+ backgroundColor: "#1e1e1e",
3028
+ backgroundImage: Mo("#1e1e1e", "#2d2d2d")
3029
+ }, Ln = {
3030
+ display: "inline-block",
3031
+ padding: "12px",
3032
+ borderRadius: "4px",
3033
+ backgroundSize: `${Q * 2}px ${Q * 2}px`,
3034
+ backgroundPosition: `0 0, 0 ${Q}px, ${Q}px -${Q}px, -${Q}px 0`,
3035
+ boxShadow: "0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08)"
3036
+ };
3037
+ function Nn(r) {
3038
+ const e = r === "dark" ? Vn : On;
3039
+ return {
3040
+ ...Ln,
3041
+ backgroundColor: e.backgroundColor,
3042
+ backgroundImage: e.backgroundImage
3043
+ };
3044
+ }
3045
+ function Ke({ src: r, alt: e, background: o }) {
3046
+ return /* @__PURE__ */ a("div", { style: Nn(o), children: /* @__PURE__ */ a("img", { src: r, alt: e, style: C.image }) });
3047
+ }
3048
+ const Dn = E(
3049
+ {
3050
+ item: m.const(),
3051
+ reportModel: m.const()
3052
+ },
3053
+ (r, e) => {
3054
+ const { item: o, reportModel: n } = e, { entry: t } = o, i = t.background ?? "light", c = t.status === "unchanged" ? /* @__PURE__ */ a("span", { style: C.badgeMatch, children: "✓ match" }) : t.status === "changed" ? /* @__PURE__ */ a("span", { style: C.badgeChanged, children: "● changed" }) : /* @__PURE__ */ a("span", { style: C.badgeAdded, children: "+ added" }), d = t.baselineScreenshot || t.currentScreenshot;
3055
+ return /* @__PURE__ */ f("div", { style: C.fixtureRow, children: [
3056
+ /* @__PURE__ */ f("div", { style: C.fixtureLabel, children: [
3057
+ /* @__PURE__ */ a("span", { style: C.fixtureName, children: o.fixtureId }),
3058
+ c
3059
+ ] }),
3060
+ d && /* @__PURE__ */ f("div", { style: C.sideBySide, children: [
3061
+ t.baselineScreenshot && /* @__PURE__ */ f("div", { style: C.screenshotColumn, children: [
3062
+ /* @__PURE__ */ a("span", { style: C.columnLabel, children: "Baseline" }),
3063
+ /* @__PURE__ */ a(
3064
+ Ke,
3065
+ {
3066
+ src: n.resolveScreenshotUrl(t.baselineScreenshot),
3067
+ alt: `Baseline screenshot of ${o.fixtureId}`,
3068
+ background: i
3069
+ }
3070
+ )
3071
+ ] }),
3072
+ t.currentScreenshot && /* @__PURE__ */ f("div", { style: C.screenshotColumn, children: [
3073
+ /* @__PURE__ */ a("span", { style: C.columnLabel, children: "Current" }),
3074
+ /* @__PURE__ */ a(
3075
+ Ke,
3076
+ {
3077
+ src: n.resolveScreenshotUrl(t.currentScreenshot),
3078
+ alt: `Current screenshot of ${o.fixtureId}`,
3079
+ background: i
3080
+ }
3081
+ )
3082
+ ] })
3083
+ ] }),
3084
+ !d && t.status === "unchanged" && /* @__PURE__ */ a("div", { style: C.hashRow, children: /* @__PURE__ */ f("span", { style: C.hashText, children: [
3085
+ "hash: ",
3086
+ t.targetHash
3087
+ ] }) })
3088
+ ] });
3089
+ }
3090
+ ), Gn = E(
3091
+ {
3092
+ name: m.const(),
3093
+ path: m.const(),
3094
+ items: m.const(),
3095
+ reportModel: m.const()
3096
+ },
3097
+ (r, e) => /* @__PURE__ */ a("div", { style: C.groupContent, children: e.items.map((o) => /* @__PURE__ */ a(
3098
+ Dn,
3099
+ {
3100
+ item: o,
3101
+ reportModel: e.reportModel
3102
+ },
3103
+ o.fixtureId
3104
+ )) })
3105
+ ), C = {
3106
+ groupContent: {
3107
+ display: "flex",
3108
+ flexDirection: "column",
3109
+ gap: 24
3110
+ },
3111
+ fixtureRow: {
3112
+ display: "flex",
3113
+ flexDirection: "column",
3114
+ gap: 8
3115
+ },
3116
+ fixtureLabel: {
3117
+ display: "flex",
3118
+ alignItems: "center",
3119
+ gap: 8
3120
+ },
3121
+ fixtureName: {
3122
+ fontSize: 12,
3123
+ fontWeight: 500,
3124
+ color: "var(--component-explorer-foreground)"
3125
+ },
3126
+ sideBySide: {
3127
+ display: "flex",
3128
+ flexDirection: "row",
3129
+ gap: 16
3130
+ },
3131
+ screenshotColumn: {
3132
+ display: "flex",
3133
+ flexDirection: "column",
3134
+ gap: 4
3135
+ },
3136
+ columnLabel: {
3137
+ fontSize: 11,
3138
+ fontWeight: 500,
3139
+ color: "var(--component-explorer-descriptionForeground)",
3140
+ textTransform: "uppercase",
3141
+ letterSpacing: "0.05em"
3142
+ },
3143
+ image: {
3144
+ display: "block"
3145
+ },
3146
+ hashRow: {
3147
+ padding: "8px 0"
3148
+ },
3149
+ hashText: {
3150
+ fontSize: 11,
3151
+ color: "var(--component-explorer-descriptionForeground)",
3152
+ fontFamily: "monospace"
3153
+ },
3154
+ badgeMatch: {
3155
+ fontSize: 11,
3156
+ color: "var(--component-explorer-testing-iconPassed)",
3157
+ fontWeight: 500
3158
+ },
3159
+ badgeChanged: {
3160
+ fontSize: 11,
3161
+ color: "var(--component-explorer-testing-iconFailed)",
3162
+ fontWeight: 500
3163
+ },
3164
+ badgeAdded: {
3165
+ fontSize: 11,
3166
+ color: "var(--component-explorer-testing-iconQueued)",
3167
+ fontWeight: 500
3168
+ }
3169
+ }, An = 280, zn = 32, ie = 32, Je = 400;
3170
+ let Oo = 0;
3171
+ function G(r, e) {
3172
+ const o = ++Oo, n = performance.now().toFixed(1);
3173
+ console.log(
3174
+ `%c[scroll #${o} @${n}ms] ${r}`,
3175
+ "color: #3b82f6; font-weight: bold",
3176
+ e
3177
+ );
3178
+ }
3179
+ function Ze(r, e) {
3180
+ const o = ++Oo, n = performance.now().toFixed(1);
3181
+ console.warn(
3182
+ `[scroll #${o} @${n}ms] ${r}`,
3183
+ e
3184
+ );
3185
+ }
3186
+ const Vo = "component-explorer:scrollAnchors", Ye = 100;
3187
+ function Lo() {
3188
+ try {
3189
+ const r = localStorage.getItem(Vo);
3190
+ if (r) return JSON.parse(r);
3191
+ } catch {
3192
+ }
3193
+ return {};
3194
+ }
3195
+ function Pn(r, e) {
3196
+ try {
3197
+ const o = Lo();
3198
+ o[r] = e;
3199
+ const n = Object.entries(o), t = n.length > Ye ? Object.fromEntries(n.slice(-Ye)) : o;
3200
+ localStorage.setItem(Vo, JSON.stringify(t));
3201
+ } catch {
3202
+ }
3203
+ }
3204
+ function Wn(r) {
3205
+ return Lo()[r];
3206
+ }
3207
+ function No(r) {
3208
+ return r.type === "single" ? r.fixture.id : r.id;
3209
+ }
3210
+ function $n(r, e) {
3211
+ const o = new Array(r.length);
3212
+ let n = ie;
3213
+ for (let t = 0; t < r.length; t++) {
3214
+ const i = e.get(No(r[t])) ?? An;
3215
+ o[t] = { top: n, height: i }, n += i + zn;
3216
+ }
3217
+ return o;
3218
+ }
3219
+ function xe(r) {
3220
+ if (r.length === 0) return 0;
3221
+ const e = r[r.length - 1];
3222
+ return e.top + e.height + ie;
3223
+ }
3224
+ function Do(r, e) {
3225
+ let o = 0, n = r.length;
3226
+ for (; o < n; ) {
3227
+ const t = o + n >> 1;
3228
+ r[t].top + r[t].height < e ? o = t + 1 : n = t;
3229
+ }
3230
+ return o;
3231
+ }
3232
+ function Un(r, e, o) {
3233
+ if (r.length === 0) return { start: 0, end: 0 };
3234
+ const n = Do(r, e - Je);
3235
+ let t = n;
3236
+ const i = e + o + Je;
3237
+ for (; t < r.length && r[t].top < i; )
3238
+ t++;
3239
+ return { start: n, end: t };
3240
+ }
3241
+ function Xe(r, e) {
3242
+ if (r.length === 0) return;
3243
+ const o = Do(r, e), n = Math.min(o, r.length - 1);
3244
+ return {
3245
+ rowIndex: n,
3246
+ offsetFromViewport: r[n].top - e
3247
+ };
3248
+ }
3249
+ function eo(r, e) {
3250
+ return e.rowIndex >= r.length ? 0 : r[e.rowIndex].top - e.offsetFromViewport;
3251
+ }
3252
+ function oo(r) {
3253
+ return r.type === "single" ? r.fixture.path : r.path;
3254
+ }
3255
+ function ro(r) {
3256
+ return r.split(" / ").slice(1);
3257
+ }
3258
+ function jn(r, e, o) {
3259
+ const n = o.split("/"), t = n.length - r.length;
3260
+ for (let i = 0; i < r.length; i++)
3261
+ if (!e || i >= e.length || r[i] !== e[i])
3262
+ return r.slice(i).map((c, d) => ({
3263
+ depth: i + d,
3264
+ name: c,
3265
+ nodeId: n.slice(0, t + i + d + 1).join("/")
3266
+ }));
3267
+ return [];
3268
+ }
3269
+ const no = ["h1", "h2", "h3", "h4"];
3270
+ function qn(r) {
3271
+ return no[Math.min(r, no.length - 1)];
3272
+ }
3273
+ const to = ["22px", "15px", "13px", "12px"];
3274
+ function Qn(r) {
3275
+ return {
3276
+ fontSize: to[Math.min(r, to.length - 1)],
3277
+ fontWeight: r <= 1 ? 600 : 500,
3278
+ color: "var(--component-explorer-foreground)",
3279
+ margin: 0,
3280
+ marginBottom: r === 0 ? "8px" : "4px",
3281
+ paddingBottom: r === 0 ? "6px" : void 0,
3282
+ borderBottom: r === 0 ? "1px solid var(--component-explorer-widget-border, var(--component-explorer-panel-border, rgba(128,128,128,0.35)))" : void 0
3283
+ };
3284
+ }
3285
+ class Kn extends L({
3286
+ model: m.const()
3287
+ }) {
3288
+ constructor() {
3289
+ super(...arguments);
3290
+ s(this, "_rowHeights", w(this, hn()));
3291
+ s(this, "_scrollTop", w(this, 0));
3292
+ s(this, "_viewportHeight", w(this, 0));
3293
+ s(this, "_scrollContainerRef", null);
3294
+ s(this, "_resizeObserver", null);
3295
+ s(this, "_viewportResizeObserver", null);
3296
+ s(this, "_currentNodeId");
3297
+ s(this, "_scrollSaveTimeout", null);
3298
+ s(this, "_suppressScrollHandler", !1);
3299
+ s(this, "layout", R(this, (o) => {
3300
+ const n = this.explorerModel.selectedFixtures.read(o), t = this._rowHeights.read(o);
3301
+ return $n(n, t);
3302
+ }));
3303
+ s(this, "visibleRowRange", R(this, (o) => {
3304
+ const n = this.layout.read(o), t = this._scrollTop.read(o), i = this._viewportHeight.read(o);
3305
+ return Un(n, t, i);
3306
+ }));
3307
+ s(this, "setScrollContainerRef", (o) => {
3308
+ var n;
3309
+ this._scrollContainerRef && this._scrollContainerRef.removeEventListener("scroll", this._handleScroll), (n = this._viewportResizeObserver) == null || n.disconnect(), this._scrollContainerRef = o, o && (o.addEventListener("scroll", this._handleScroll, { passive: !0 }), this._viewportHeight.set(o.clientHeight, void 0), G("setScrollContainerRef", { clientHeight: o.clientHeight, scrollTop: o.scrollTop }), this._viewportResizeObserver = new ResizeObserver(([t]) => {
3310
+ const i = Math.round(t.contentRect.height), c = this._viewportHeight.get();
3311
+ i !== c && G("viewportResize", { prev: c, new: i }), this._viewportHeight.set(i, void 0);
3312
+ }), this._viewportResizeObserver.observe(o), this._restoreScrollPosition());
3313
+ });
3314
+ s(this, "_handleScroll", () => {
3315
+ if (!this._scrollContainerRef) return;
3316
+ const o = this._scrollTop.get(), n = this._scrollContainerRef.scrollTop, t = n - o;
3317
+ if (this._scrollTop.set(n, void 0), Math.abs(t) > 200 && Ze("handleScroll:LARGE_JUMP", {
3318
+ prevObsScrollTop: o,
3319
+ newScrollTop: n,
3320
+ delta: t,
3321
+ suppressed: this._suppressScrollHandler,
3322
+ stack: new Error().stack
3323
+ }), this._suppressScrollHandler || !this._currentNodeId) {
3324
+ this._suppressScrollHandler && G("handleScroll:suppressed", { newScrollTop: n, delta: t });
3325
+ return;
3326
+ }
3327
+ this._scrollSaveTimeout && clearTimeout(this._scrollSaveTimeout), this._scrollSaveTimeout = setTimeout(() => {
3328
+ if (!this._currentNodeId) return;
3329
+ const i = this.layout.get(), c = Xe(i, this._scrollTop.get());
3330
+ c && Pn(this._currentNodeId, c);
3331
+ }, 150);
3332
+ });
3333
+ s(this, "observeRowElement", (o, n) => {
3334
+ o && (this._resizeObserver || (this._resizeObserver = new ResizeObserver((t) => {
3335
+ const i = this._rowHeights.get();
3336
+ let c;
3337
+ const d = [];
3338
+ for (const l of t) {
3339
+ const p = l.target.getAttribute("data-row-id");
3340
+ if (!p) continue;
3341
+ const g = Math.round(l.contentRect.height);
3342
+ g > 0 && i.get(p) !== g && (d.push({ rid: p, oldH: i.get(p), newH: g }), c || (c = new Map(i)), c.set(p, g), fn(p, g));
3343
+ }
3344
+ if (c) {
3345
+ const l = this.layout.get(), p = this._scrollTop.get(), g = Xe(l, p);
3346
+ this._rowHeights.set(c, void 0);
3347
+ const u = this.layout.get();
3348
+ if (g && this._scrollContainerRef) {
3349
+ const x = eo(u, g), k = x - p;
3350
+ Math.abs(k) > 2 && G("resizeObserver:reAnchor", {
3351
+ changedRows: d,
3352
+ anchor: g,
3353
+ scrollTopBefore: p,
3354
+ newScrollTop: x,
3355
+ delta: k,
3356
+ oldTotalHeight: xe(l),
3357
+ newTotalHeight: xe(u)
3358
+ }), Math.abs(k) > 200 && Ze("resizeObserver:LARGE_REANCHOR", {
3359
+ changedRows: d,
3360
+ anchor: g,
3361
+ scrollTopBefore: p,
3362
+ newScrollTop: x,
3363
+ delta: k
3364
+ }), this._suppressScrollHandler = !0, this._scrollContainerRef.scrollTop = x, this._scrollTop.set(x, void 0), requestAnimationFrame(() => {
3365
+ this._suppressScrollHandler = !1;
3366
+ });
3367
+ }
3368
+ }
3369
+ })), o.setAttribute("data-row-id", n), this._resizeObserver.observe(o));
3370
+ });
3371
+ }
3372
+ get explorerModel() {
3373
+ return this.props.model;
3374
+ }
3375
+ get currentSessionName() {
3376
+ var t, i;
3377
+ const o = this.explorerModel.daemon;
3378
+ if (!o) return "current";
3379
+ const n = o.sessions.get();
3380
+ return ((t = n.find((c) => c.sourceKind === "current")) == null ? void 0 : t.name) ?? ((i = n[0]) == null ? void 0 : i.name) ?? "current";
3381
+ }
3382
+ get baselineSessionName() {
3383
+ var t, i;
3384
+ const o = this.explorerModel.daemon;
3385
+ if (!o) return "baseline";
3386
+ const n = o.sessions.get();
3387
+ return ((t = n.find((c) => c.sourceKind === "worktree")) == null ? void 0 : t.name) ?? ((i = n[1]) == null ? void 0 : i.name) ?? "baseline";
3388
+ }
3389
+ updateForSelection(o) {
3390
+ this._currentNodeId !== o && (G("updateForSelection", { prev: this._currentNodeId, new: o }), this._currentNodeId = o, this._restoreScrollPosition());
3391
+ }
3392
+ _restoreScrollPosition() {
3393
+ if (!this._scrollContainerRef || !this._currentNodeId) return;
3394
+ const o = Wn(this._currentNodeId);
3395
+ if (!o) {
3396
+ G("restoreScroll:noAnchor", { nodeId: this._currentNodeId });
3397
+ return;
3398
+ }
3399
+ const n = this.layout.get(), t = eo(n, o), i = this._scrollContainerRef.scrollTop;
3400
+ G("restoreScroll", {
3401
+ nodeId: this._currentNodeId,
3402
+ anchor: o,
3403
+ prevScrollTop: i,
3404
+ targetScrollTop: t,
3405
+ delta: t - i,
3406
+ layoutLength: n.length
3407
+ }), this._suppressScrollHandler = !0, this._scrollContainerRef.scrollTop = t, this._scrollTop.set(t, void 0), requestAnimationFrame(() => {
3408
+ this._suppressScrollHandler = !1;
3409
+ });
3410
+ }
3411
+ dispose() {
3412
+ var o, n;
3413
+ (o = this._resizeObserver) == null || o.disconnect(), (n = this._viewportResizeObserver) == null || n.disconnect(), this._scrollContainerRef && this._scrollContainerRef.removeEventListener("scroll", this._handleScroll), this._scrollSaveTimeout && clearTimeout(this._scrollSaveTimeout);
3414
+ }
3415
+ }
3416
+ const Jn = N(
3417
+ Kn,
3418
+ {},
3419
+ (r, e) => {
3420
+ const o = e.explorerModel.selectedFixtures.read(r), n = e.explorerModel.selectedNodeId.read(r), t = e.layout.read(r), { start: i, end: c } = e.visibleRowRange.read(r);
3421
+ if (e.updateForSelection(n), o.length === 0) {
3422
+ const l = e.explorerModel.reportModel;
3423
+ if (l) {
3424
+ const p = l.state.read(r);
3425
+ if (p.status === "loading")
3426
+ return /* @__PURE__ */ a("div", { style: O.emptyState, children: /* @__PURE__ */ a("span", { style: O.emptyText, children: "Loading report..." }) });
3427
+ if (p.status === "error")
3428
+ return /* @__PURE__ */ a("div", { style: O.emptyState, children: /* @__PURE__ */ f("span", { style: { ...O.emptyText, color: "var(--component-explorer-errorForeground)" }, children: [
3429
+ "Failed to load report: ",
3430
+ p.message
3431
+ ] }) });
3432
+ }
3433
+ return /* @__PURE__ */ a("div", { style: O.emptyState, children: /* @__PURE__ */ a("span", { style: O.emptyText, children: "Select a component or folder to preview" }) });
3434
+ }
3435
+ const d = xe(t);
3436
+ return /* @__PURE__ */ a("div", { ref: e.setScrollContainerRef, style: O.scrollContainer, children: /* @__PURE__ */ a("div", { style: { position: "relative", height: d }, children: o.slice(i, c).map((l, p) => {
3437
+ const g = i + p, { top: u } = t[g], x = No(l), k = ro(oo(l)), B = g > 0 ? ro(oo(o[g - 1])) : void 0, b = jn(k, B, x);
3438
+ return /* @__PURE__ */ f(
3439
+ "div",
3440
+ {
3441
+ ref: (v) => e.observeRowElement(v, x),
3442
+ style: { position: "absolute", top: u, left: ie, right: ie },
3443
+ children: [
3444
+ b.map((v) => {
3445
+ const _ = qn(v.depth);
3446
+ return /* @__PURE__ */ a(_, { style: Qn(v.depth), children: /* @__PURE__ */ a(
3447
+ "a",
3448
+ {
3449
+ href: _o("fixture", v.nodeId),
3450
+ style: O.headingLink,
3451
+ onClick: (S) => {
3452
+ S.preventDefault(), e.explorerModel.selectNode(v.nodeId);
3453
+ },
3454
+ children: v.name
3455
+ }
3456
+ ) }, v.depth);
3457
+ }),
3458
+ l.type === "single" ? /* @__PURE__ */ a(Ho, { fixture: l.fixture, compact: !1, onSelect: e.explorerModel.selectNode }) : l.type === "variants" ? /* @__PURE__ */ a(Zn, { row: l, onSelect: e.explorerModel.selectNode }) : l.type === "screenshot-comparison" && e.explorerModel.daemon ? /* @__PURE__ */ a(
3459
+ Mn,
3460
+ {
3461
+ name: l.name,
3462
+ path: l.path,
3463
+ items: l.items,
3464
+ daemon: e.explorerModel.daemon,
3465
+ baselineSession: e.baselineSessionName,
3466
+ currentSession: e.currentSessionName
3467
+ }
3468
+ ) : l.type === "report-comparison" && e.explorerModel.reportModel ? /* @__PURE__ */ a(
3469
+ Gn,
3470
+ {
3471
+ name: l.name,
3472
+ path: l.path,
3473
+ items: l.items,
3474
+ reportModel: e.explorerModel.reportModel
3475
+ }
3476
+ ) : null
3477
+ ]
3478
+ },
3479
+ x
3480
+ );
3481
+ }) }) });
3482
+ }
3483
+ ), Zn = E(
3484
+ {
3485
+ row: m.const(),
3486
+ onSelect: m.const()
3487
+ },
3488
+ (r, e) => {
3489
+ const o = e.row;
3490
+ return /* @__PURE__ */ a("div", { style: O.variantsContent, children: o.fixtures.map((n) => /* @__PURE__ */ a(Ho, { fixture: n, compact: !0, onSelect: e.onSelect }, n.id)) });
3491
+ }
3492
+ ), O = {
3493
+ scrollContainer: {
3494
+ flex: 1,
3495
+ overflow: "auto",
3496
+ backgroundColor: "var(--component-explorer-editor-background)"
3497
+ },
3498
+ emptyState: {
3499
+ flex: 1,
3500
+ display: "flex",
3501
+ alignItems: "center",
3502
+ justifyContent: "center",
3503
+ backgroundColor: "var(--component-explorer-editor-background)"
3504
+ },
3505
+ emptyText: {
3506
+ color: "var(--component-explorer-descriptionForeground)",
3507
+ fontSize: "14px"
3508
+ },
3509
+ variantsContent: {
3510
+ display: "flex",
3511
+ flexDirection: "row",
3512
+ flexWrap: "wrap",
3513
+ gap: "16px"
3514
+ },
3515
+ headingLink: {
3516
+ textDecoration: "none",
3517
+ color: "inherit"
3518
+ }
3519
+ }, Yn = {
3520
+ display: "flex",
3521
+ flexDirection: "column",
3522
+ alignItems: "center",
3523
+ justifyContent: "center",
3524
+ gap: "12px",
3525
+ height: "100%",
3526
+ width: "100%",
3527
+ color: "var(--component-explorer-foreground)",
3528
+ opacity: 0.5,
3529
+ fontSize: "13px"
3530
+ }, Xn = {
3531
+ width: "24px",
3532
+ height: "24px",
3533
+ border: "2px solid currentColor",
3534
+ borderTopColor: "transparent",
3535
+ borderRadius: "50%",
3536
+ animation: "explorer-spin 0.8s linear infinite"
3537
+ }, et = N(
3538
+ Pr,
3539
+ { daemonModel: m.const(), reportModel: m.const() },
3540
+ (r, e) => {
3541
+ const o = e.isDarkTheme.read(r), n = e.loading.read(r), t = o ? "vscode-theme default-dark-plus" : "vscode-theme default-light-plus";
3542
+ if (n)
3543
+ return /* @__PURE__ */ f("div", { className: t, style: { ...h.container, backgroundColor: "var(--component-explorer-editor-background)" }, children: [
3544
+ /* @__PURE__ */ a("style", { children: "@keyframes explorer-spin { to { transform: rotate(360deg); } }" }),
3545
+ /* @__PURE__ */ f("div", { style: Yn, children: [
3546
+ /* @__PURE__ */ a("div", { style: Xn }),
3547
+ "Loading fixtures…"
3548
+ ] })
3549
+ ] });
3550
+ const i = e.leftSidebarVisible.read(r), c = e.rightSidebarVisible.read(r), d = e.selectedNode.read(r);
3551
+ return /* @__PURE__ */ f("div", { className: t, style: h.container, children: [
3552
+ i && /* @__PURE__ */ a(sn, { model: e }),
3553
+ /* @__PURE__ */ f("div", { style: h.centerArea, children: [
3554
+ /* @__PURE__ */ a(Xr, { model: e }),
3555
+ /* @__PURE__ */ a(Jn, { model: e })
3556
+ ] }),
3557
+ c && /* @__PURE__ */ a(mn, { selectedNode: d })
3558
+ ] });
3559
+ }
3560
+ );
3561
+ var ot = class be {
3562
+ constructor(e) {
3563
+ this.iterator = e;
3564
+ }
3565
+ static fromIterable(e) {
3566
+ return new be(e[Symbol.asyncIterator]());
3567
+ }
3568
+ static fromFn(e) {
3569
+ return new be(e());
3570
+ }
3571
+ [Symbol.asyncIterator]() {
3572
+ return this.iterator;
3573
+ }
3574
+ }, rt = class extends Error {
3575
+ constructor(r, e, o) {
3576
+ super(o), this.statusCode = r, this.method = e, this.name = "ApiError";
3577
+ }
3578
+ }, nt = class {
3579
+ constructor(r) {
3580
+ s(this, "methods", this._createProxy(""));
3581
+ this._request = r;
3582
+ }
3583
+ _createProxy(r) {
3584
+ return new Proxy(() => {
3585
+ }, {
3586
+ apply: async (e, o, n) => await this._request(r, n[0]),
3587
+ get: (e, o) => {
3588
+ if (typeof o != "symbol" && !(o === "then" || o === "catch" || o === "finally" || o === "toString" || o === "valueOf" || o === "toJSON" || o === "name" || o === "length" || o === "prototype" || o === "constructor" || o === "caller" || o === "arguments"))
3589
+ return this._createProxy(`${r}${r ? "/" : ""}${o}`);
3590
+ }
3591
+ });
3592
+ }
3593
+ };
3594
+ function tt(r, e) {
3595
+ return new nt(async (o, n) => {
3596
+ var d, l;
3597
+ const t = await fetch(`${r}/${o}`, {
3598
+ method: "POST",
3599
+ headers: {
3600
+ "Content-Type": "application/json",
3601
+ ...(d = e == null ? void 0 : e.getHeaders) == null ? void 0 : d.call(e)
3602
+ },
3603
+ body: JSON.stringify(n)
3604
+ });
3605
+ if (t.status !== 200) {
3606
+ const p = await t.json().catch(() => null);
3607
+ let g;
3608
+ if (p && typeof p == "object" && ("errorMessage" in p || "error" in p)) {
3609
+ const x = p.errorMessage ?? p.error, k = p.stack;
3610
+ g = `${x}${k ? `
3611
+ ${k}` : ""}`;
3612
+ } else
3613
+ g = `Error calling API method "${o}" (${t.status}): ${JSON.stringify(p)}`;
3614
+ const u = new rt(t.status, o, g);
3615
+ throw (l = e == null ? void 0 : e.onError) == null || l.call(e, u), u;
3616
+ }
3617
+ const i = t.headers.get("Content-Type");
3618
+ return i != null && i.startsWith("application/jsonl") ? ot.fromFn(async function* () {
3619
+ var k;
3620
+ const p = (k = t.body) == null ? void 0 : k.getReader();
3621
+ if (!p)
3622
+ return;
3623
+ let g = "";
3624
+ const u = new TextDecoder("utf-8");
3625
+ for (; ; ) {
3626
+ const { done: B, value: b } = await p.read();
3627
+ if (B)
3628
+ break;
3629
+ g += u.decode(b, { stream: !0 });
3630
+ let v;
3631
+ for (; (v = g.indexOf(`
3632
+ `)) >= 0; ) {
3633
+ const _ = g.slice(0, v).trim();
3634
+ g = g.slice(v + 1), _.length > 0 && (yield JSON.parse(_));
3635
+ }
3636
+ }
3637
+ const x = g.trim();
3638
+ x.length > 0 && (yield JSON.parse(x));
3639
+ }) : await t.json();
3640
+ });
3641
+ }
3642
+ class it {
3643
+ constructor(e) {
3644
+ s(this, "_sourceTreeIds", w(this, /* @__PURE__ */ new Map()));
3645
+ s(this, "_sessions", w(this, []));
3646
+ s(this, "_screenshotCache", /* @__PURE__ */ new Map());
3647
+ s(this, "_client");
3648
+ s(this, "_eventStreamAbort", null);
3649
+ s(this, "sessionName");
3650
+ /** Observable map of sessionName → current sourceTreeId */
3651
+ s(this, "sourceTreeIds", this._sourceTreeIds);
3652
+ /** Observable list of sessions from the daemon */
3653
+ s(this, "sessions", this._sessions);
3654
+ this.config = e, this.sessionName = e.sessionName, this._client = tt("/__explorer/daemon-api", {
3655
+ getHeaders: () => ({ "X-Client-Name": "explorer-ui" })
3656
+ });
3657
+ }
3658
+ /**
3659
+ * Initializes the model: fetches initial session info and starts listening to events.
3660
+ * Call this once after construction.
3661
+ */
3662
+ async initialize() {
3663
+ this._validateProtocolVersions(), await this._fetchSessionInfos(), this._startEventStream();
3664
+ }
3665
+ /**
3666
+ * Get a screenshot for a fixture in a session, using cache when available.
3667
+ * Cache is keyed on sessionName + fixtureId and invalidated when sourceTreeId changes.
3668
+ */
3669
+ async getScreenshot(e, o) {
3670
+ const n = this._sourceTreeIds.get().get(e);
3671
+ if (!n)
3672
+ throw new Error(`No sourceTreeId known for session '${e}'`);
3673
+ const t = `${e}:${o}`, i = this._screenshotCache.get(t);
3674
+ if (i && i.sourceTreeId === n)
3675
+ return i.data;
3676
+ const c = await this._client.methods.screenshots.take({
3677
+ fixtureId: o,
3678
+ sessionName: e,
3679
+ sourceTreeId: n,
3680
+ includeImage: !0
3681
+ });
3682
+ return this._screenshotCache.set(t, { sourceTreeId: n, data: c }), c;
3683
+ }
3684
+ /**
3685
+ * Compare a fixture across two sessions. Returns match status and hashes (no images).
3686
+ */
3687
+ async compare(e, o, n) {
3688
+ const t = this._sourceTreeIds.get().get(o), i = this._sourceTreeIds.get().get(n);
3689
+ if (!t || !i)
3690
+ throw new Error("Missing sourceTreeId for sessions");
3691
+ return this._client.methods.screenshots.compare({
3692
+ fixtureId: e,
3693
+ baselineSessionName: o,
3694
+ baselineSourceTreeId: t,
3695
+ currentSessionName: n,
3696
+ currentSourceTreeId: i,
3697
+ includeImages: !1
3698
+ });
3699
+ }
3700
+ /**
3701
+ * List fixtures from a session.
3702
+ */
3703
+ async listFixtures(e) {
3704
+ const o = this._sourceTreeIds.get().get(e);
3705
+ if (!o)
3706
+ throw new Error(`No sourceTreeId known for session '${e}'`);
3707
+ return this._client.methods.fixtures.list({ sessionName: e, sourceTreeId: o });
3708
+ }
3709
+ /**
3710
+ * Get the explorer URL for a different session (for session switching via full navigation).
3711
+ */
3712
+ getSessionExplorerUrl(e) {
3713
+ const o = this._sessions.get().find((n) => n.name === e);
3714
+ if (o)
3715
+ return o.serverUrl + "/___explorer";
3716
+ }
3717
+ dispose() {
3718
+ var e;
3719
+ (e = this._eventStreamAbort) == null || e.abort(), this._eventStreamAbort = null;
3720
+ }
3721
+ // ---------------------------------------------------------------------------
3722
+ // Private
3723
+ // ---------------------------------------------------------------------------
3724
+ async _fetchSessionInfos() {
3725
+ const e = await this._client.methods.sessions(), o = /* @__PURE__ */ new Map(), n = [];
3726
+ for (const t of e)
3727
+ t.isLoading || (o.set(t.name, t.sourceTreeId), n.push({ name: t.name, serverUrl: t.serverUrl, sourceKind: t.sourceKind }));
3728
+ this._sourceTreeIds.set(o, void 0), this._sessions.set(n, void 0);
3729
+ }
3730
+ async _startEventStream() {
3731
+ this._eventStreamAbort = new AbortController();
3732
+ const e = this._eventStreamAbort.signal;
3733
+ try {
3734
+ const o = await this._client.methods.events();
3735
+ for await (const n of o) {
3736
+ if (e.aborted) break;
3737
+ this._handleEvent(n);
3738
+ }
3739
+ } catch (o) {
3740
+ e.aborted || (console.error("[DaemonModel] Event stream error:", o), setTimeout(() => {
3741
+ e.aborted || this._startEventStream();
3742
+ }, 2e3));
3743
+ }
3744
+ }
3745
+ _handleEvent(e) {
3746
+ if (e.type === "source-change") {
3747
+ const o = new Map(this._sourceTreeIds.get());
3748
+ o.set(e.sessionName, e.sourceTreeId), this._sourceTreeIds.set(o, void 0);
3749
+ for (const n of this._screenshotCache.keys())
3750
+ n.startsWith(`${e.sessionName}:`) && this._screenshotCache.delete(n);
3751
+ }
3752
+ }
3753
+ _validateProtocolVersions() {
3754
+ const e = ce.parse("1.0.0"), o = ce.parse(this.config.daemonApiVersion);
3755
+ if (e.major !== o.major || e.minor !== o.minor)
3756
+ throw new Error(
3757
+ `Daemon API version mismatch. Explorer expects 1.0.0, daemon provides ${this.config.daemonApiVersion}. Update CLI, vite plugin, and explorer together.`
3758
+ );
3759
+ const n = ce.parse(this.config.runtimeVersionNeededByPlugin);
3760
+ if (n.major !== re.major || n.minor !== re.minor)
3761
+ throw new Error(
3762
+ `Explorer runtime version mismatch. Plugin requires ${this.config.runtimeVersionNeededByPlugin}, explorer provides ${re.toString()}. Reinstall dependencies to align plugin and explorer runtime versions.`
3763
+ );
3764
+ }
3765
+ }
3766
+ class ct {
3767
+ constructor(e) {
3768
+ s(this, "state", w(this, { status: "loading" }));
3769
+ s(this, "_baseUrl");
3770
+ this.reportUrl = e;
3771
+ const o = e.lastIndexOf("/");
3772
+ this._baseUrl = o >= 0 ? e.slice(0, o + 1) : "", this._fetch();
3773
+ }
3774
+ resolveScreenshotUrl(e) {
3775
+ return this._baseUrl + e;
3776
+ }
3777
+ buildTree(e) {
3778
+ const o = this.state.read(e);
3779
+ return o.status !== "ready" ? { id: new T(""), name: "Report", type: "folder", children: [], labels: [] } : at(o.report.fixtures);
3780
+ }
3781
+ async _fetch() {
3782
+ this.state.set({ status: "loading" }, void 0);
3783
+ try {
3784
+ const e = await fetch(this.reportUrl);
3785
+ if (!e.ok)
3786
+ throw new Error(`HTTP ${e.status}: ${e.statusText}`);
3787
+ const o = await e.json();
3788
+ this.state.set({ status: "ready", report: o }, void 0);
3789
+ } catch (e) {
3790
+ this.state.set({ status: "error", message: String(e) }, void 0);
3791
+ }
3792
+ }
3793
+ }
3794
+ function at(r) {
3795
+ const e = { id: new T(""), name: "Components", type: "folder", children: [], labels: [] };
3796
+ for (const [o, n] of Object.entries(r)) {
3797
+ const t = new T(o).segments;
3798
+ let i = e;
3799
+ for (let c = 0; c < t.length; c++) {
3800
+ const d = t[c], l = c === t.length - 1, p = new T(t.slice(0, c + 1).join("/"));
3801
+ if (l) {
3802
+ const g = [...(n == null ? void 0 : n.labels) ?? []];
3803
+ (n == null ? void 0 : n.status) === "changed" && !g.includes("changed") && g.push("changed"), i.children.push({
3804
+ id: p,
3805
+ name: d,
3806
+ type: "component",
3807
+ reportEntry: n,
3808
+ labels: g
3809
+ });
3810
+ } else {
3811
+ let g = i.children.find((u) => u.type === "folder" && u.name === d);
3812
+ g || (g = { id: p, name: d, type: "folder", children: [], labels: [] }, i.children.push(g)), i = g;
3813
+ }
3814
+ }
3815
+ }
3816
+ return e;
3817
+ }
3818
+ const dt = '/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-blue-400:oklch(70.7% .165 254.624);--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--font-weight-medium:500;--font-weight-semibold:600;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-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:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}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{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}: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:currentColor}@supports (color:color-mix(in lab,red,red)){::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{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-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]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--component-explorer-panel-border)}:host{background-color:var(--component-explorer-editor-background);color:var(--component-explorer-foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:var(--component-explorer-font-family);font-size:var(--component-explorer-font-size);width:100%;height:100%;display:block}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--component-explorer-scrollbarSlider-background);border-radius:0}::-webkit-scrollbar-thumb:hover{background:var(--component-explorer-scrollbarSlider-hoverBackground)}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-1\\/2{top:50%}.right-2{right:calc(var(--spacing) * 2)}.left-2\\.5{left:calc(var(--spacing) * 2.5)}.isolate{isolation:isolate}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.my-1{margin-block:calc(var(--spacing) * 1)}.mt-1{margin-top:calc(var(--spacing) * 1)}.ml-3\\.5{margin-left:calc(var(--spacing) * 3.5)}.block{display:block}.flex{display:flex}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-96{max-height:calc(var(--spacing) * 96)}.min-h-\\[60px\\]{min-height:60px}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-9{width:calc(var(--spacing) * 9)}.w-64{width:calc(var(--spacing) * 64)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:4px}.rounded-sm{border-radius:2px}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-amber-500\\/30{border-color:#f99c004d}@supports (color:color-mix(in lab,red,red)){.border-amber-500\\/30{border-color:color-mix(in oklab,var(--color-amber-500) 30%,transparent)}}.border-border{border-color:var(--component-explorer-panel-border)}.border-destructive{border-color:var(--component-explorer-editorError-foreground)}.border-input{border-color:var(--component-explorer-input-background)}.border-primary{border-color:var(--component-explorer-focusBorder)}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.border-l-transparent{border-left-color:#0000}.bg-amber-500\\/10{background-color:#f99c001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\\/10{background-color:color-mix(in oklab,var(--color-amber-500) 10%,transparent)}}.bg-amber-500\\/15{background-color:#f99c0026}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\\/15{background-color:color-mix(in oklab,var(--color-amber-500) 15%,transparent)}}.bg-background{background-color:var(--component-explorer-editor-background)}.bg-border{background-color:var(--component-explorer-panel-border)}.bg-card{background-color:var(--component-explorer-editorWidget-background)}.bg-destructive,.bg-destructive\\/10{background-color:var(--component-explorer-editorError-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\\/10{background-color:color-mix(in oklab,var(--component-explorer-editorError-foreground) 10%,transparent)}}.bg-muted{background-color:var(--component-explorer-input-background)}.bg-popover{background-color:var(--component-explorer-editorWidget-background)}.bg-primary,.bg-primary\\/15{background-color:var(--component-explorer-focusBorder)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/15{background-color:color-mix(in oklab,var(--component-explorer-focusBorder) 15%,transparent)}}.bg-secondary{background-color:var(--component-explorer-button-secondaryBackground)}.bg-sidebar{background-color:var(--component-explorer-sideBar-background)}.bg-transparent{background-color:#0000}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-\\[1px\\]{padding:1px}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-8{padding-left:calc(var(--spacing) * 8)}.font-mono{font-family:var(--font-mono)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-blue-400{color:var(--color-blue-400)}.text-current{color:currentColor}.text-destructive{color:var(--component-explorer-editorError-foreground)}.text-foreground{color:var(--component-explorer-foreground)}.text-muted-foreground{color:var(--component-explorer-descriptionForeground)}.text-popover-foreground{color:var(--component-explorer-editorWidget-foreground)}.text-primary{color:var(--component-explorer-focusBorder)}.text-primary-foreground{color:var(--component-explorer-button-foreground)}.text-secondary-foreground{color:var(--component-explorer-button-secondaryForeground)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--component-explorer-editor-background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.peer-disabled\\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--component-explorer-foreground)}.placeholder\\:text-muted-foreground::placeholder{color:var(--component-explorer-descriptionForeground)}@media(hover:hover){.hover\\:bg-accent:hover{background-color:var(--component-explorer-list-hoverBackground)}.hover\\:bg-destructive\\/80:hover{background-color:var(--component-explorer-editorError-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in oklab,var(--component-explorer-editorError-foreground) 80%,transparent)}}.hover\\:bg-destructive\\/90:hover{background-color:var(--component-explorer-editorError-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--component-explorer-editorError-foreground) 90%,transparent)}}.hover\\:bg-primary\\/80:hover{background-color:var(--component-explorer-focusBorder)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/80:hover{background-color:color-mix(in oklab,var(--component-explorer-focusBorder) 80%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:var(--component-explorer-focusBorder)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--component-explorer-focusBorder) 90%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:var(--component-explorer-button-secondaryBackground)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--component-explorer-button-secondaryBackground) 80%,transparent)}}.hover\\:bg-sidebar-accent:hover{background-color:var(--component-explorer-list-hoverBackground)}.hover\\:text-accent-foreground:hover{color:var(--component-explorer-foreground)}.hover\\:underline:hover{text-decoration-line:underline}}.focus\\:bg-accent:focus{background-color:var(--component-explorer-list-hoverBackground)}.focus\\:text-accent-foreground:focus{color:var(--component-explorer-foreground)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-ring:focus{--tw-ring-color:var(--component-explorer-focusBorder)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-destructive:focus-visible{--tw-ring-color:var(--component-explorer-editorError-foreground)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:var(--component-explorer-focusBorder)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:var(--component-explorer-focusBorder)}.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:var(--component-explorer-button-foreground)}@media(min-width:48rem){.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&\\>span\\]\\:line-clamp-1>span{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}', lt = '.vscode-theme.default-dark-plus{--component-explorer-font-family: "Segoe WPC", "Segoe UI", sans-serif;--component-explorer-font-weight: normal;--component-explorer-font-size: 13px;--component-explorer-editor-font-family: "Cascadia Code", Consolas, "Courier New", monospace;--component-explorer-editor-font-weight: normal;--component-explorer-editor-font-size: 14px;--component-explorer-foreground: #cccccc;--component-explorer-disabledForeground: rgba(204, 204, 204, .5);--component-explorer-errorForeground: #f48771;--component-explorer-descriptionForeground: rgba(204, 204, 204, .7);--component-explorer-icon-foreground: #c5c5c5;--component-explorer-focusBorder: #007fd4;--component-explorer-textLink-foreground: #3794ff;--component-explorer-textLink-activeForeground: #3794ff;--component-explorer-textSeparator-foreground: rgba(255, 255, 255, .18);--component-explorer-textPreformat-foreground: #d7ba7d;--component-explorer-textPreformat-background: rgba(255, 255, 255, .1);--component-explorer-textBlockQuote-background: #222222;--component-explorer-textBlockQuote-border: rgba(0, 122, 204, .5);--component-explorer-textCodeBlock-background: rgba(10, 10, 10, .4);--component-explorer-sash-hoverBorder: #007fd4;--component-explorer-badge-background: #4d4d4d;--component-explorer-badge-foreground: #ffffff;--component-explorer-activityWarningBadge-foreground: #ffffff;--component-explorer-activityWarningBadge-background: #b27c00;--component-explorer-activityErrorBadge-foreground: #000000;--component-explorer-activityErrorBadge-background: #f14c4c;--component-explorer-scrollbar-shadow: #000000;--component-explorer-scrollbarSlider-background: rgba(121, 121, 121, .4);--component-explorer-scrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--component-explorer-scrollbarSlider-activeBackground: rgba(191, 191, 191, .4);--component-explorer-progressBar-background: #0e70c0;--component-explorer-chart-line: #236b8e;--component-explorer-chart-axis: rgba(191, 191, 191, .4);--component-explorer-chart-guide: rgba(191, 191, 191, .2);--component-explorer-editor-background: #1e1e1e;--component-explorer-editor-foreground: #d4d4d4;--component-explorer-editorStickyScroll-background: #1e1e1e;--component-explorer-editorStickyScrollGutter-background: #1e1e1e;--component-explorer-editorStickyScrollHover-background: #2a2d2e;--component-explorer-editorStickyScroll-shadow: #000000;--component-explorer-editorWidget-background: #252526;--component-explorer-editorWidget-foreground: #cccccc;--component-explorer-editorWidget-border: #454545;--component-explorer-editorError-foreground: #f14c4c;--component-explorer-editorWarning-foreground: #cca700;--component-explorer-editorInfo-foreground: #59a4f9;--component-explorer-editorHint-foreground: rgba(238, 238, 238, .7);--component-explorer-editorLink-activeForeground: #4e94ce;--component-explorer-editor-selectionBackground: #264f78;--component-explorer-editor-inactiveSelectionBackground: #3a3d41;--component-explorer-editor-selectionHighlightBackground: rgba(173, 214, 255, .15);--component-explorer-editor-compositionBorder: #ffffff;--component-explorer-editor-findMatchBackground: #515c6a;--component-explorer-editor-findMatchHighlightBackground: rgba(234, 92, 0, .33);--component-explorer-editor-findRangeHighlightBackground: rgba(58, 61, 65, .4);--component-explorer-editor-hoverHighlightBackground: rgba(38, 79, 120, .25);--component-explorer-editorHoverWidget-background: #252526;--component-explorer-editorHoverWidget-foreground: #cccccc;--component-explorer-editorHoverWidget-border: #454545;--component-explorer-editorHoverWidget-statusBarBackground: #2c2c2d;--component-explorer-editorInlayHint-foreground: #969696;--component-explorer-editorInlayHint-background: rgba(77, 77, 77, .1);--component-explorer-editorInlayHint-typeForeground: #969696;--component-explorer-editorInlayHint-typeBackground: rgba(77, 77, 77, .1);--component-explorer-editorInlayHint-parameterForeground: #969696;--component-explorer-editorInlayHint-parameterBackground: rgba(77, 77, 77, .1);--component-explorer-editorLightBulb-foreground: #ffcc00;--component-explorer-editorLightBulbAutoFix-foreground: #75beff;--component-explorer-editorLightBulbAi-foreground: #ffcc00;--component-explorer-editor-snippetTabstopHighlightBackground: rgba(124, 124, 124, .3);--component-explorer-editor-snippetFinalTabstopHighlightBorder: #525252;--component-explorer-diffEditor-insertedTextBackground: rgba(156, 204, 44, .2);--component-explorer-diffEditor-removedTextBackground: rgba(255, 0, 0, .2);--component-explorer-diffEditor-insertedLineBackground: rgba(155, 185, 85, .2);--component-explorer-diffEditor-removedLineBackground: rgba(255, 0, 0, .2);--component-explorer-diffEditor-diagonalFill: rgba(204, 204, 204, .2);--component-explorer-diffEditor-unchangedRegionBackground: #252526;--component-explorer-diffEditor-unchangedRegionForeground: #cccccc;--component-explorer-diffEditor-unchangedCodeBackground: rgba(116, 116, 116, .16);--component-explorer-widget-shadow: rgba(0, 0, 0, .36);--component-explorer-widget-border: #303031;--component-explorer-toolbar-hoverBackground: rgba(90, 93, 94, .31);--component-explorer-toolbar-activeBackground: rgba(99, 102, 103, .31);--component-explorer-breadcrumb-foreground: rgba(204, 204, 204, .8);--component-explorer-breadcrumb-background: #1e1e1e;--component-explorer-breadcrumb-focusForeground: #e0e0e0;--component-explorer-breadcrumb-activeSelectionForeground: #e0e0e0;--component-explorer-breadcrumbPicker-background: #252526;--component-explorer-merge-currentHeaderBackground: rgba(64, 200, 174, .5);--component-explorer-merge-currentContentBackground: rgba(64, 200, 174, .2);--component-explorer-merge-incomingHeaderBackground: rgba(64, 166, 255, .5);--component-explorer-merge-incomingContentBackground: rgba(64, 166, 255, .2);--component-explorer-merge-commonHeaderBackground: rgba(96, 96, 96, .4);--component-explorer-merge-commonContentBackground: rgba(96, 96, 96, .16);--component-explorer-editorOverviewRuler-currentContentForeground: rgba(64, 200, 174, .5);--component-explorer-editorOverviewRuler-incomingContentForeground: rgba(64, 166, 255, .5);--component-explorer-editorOverviewRuler-commonContentForeground: rgba(96, 96, 96, .4);--component-explorer-editorOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--component-explorer-editorOverviewRuler-selectionHighlightForeground: rgba(160, 160, 160, .8);--component-explorer-problemsErrorIcon-foreground: #f14c4c;--component-explorer-problemsWarningIcon-foreground: #cca700;--component-explorer-problemsInfoIcon-foreground: #59a4f9;--component-explorer-minimap-findMatchHighlight: rgba(234, 92, 0, .33);--component-explorer-minimap-selectionOccurrenceHighlight: rgba(173, 214, 255, .15);--component-explorer-minimap-selectionHighlight: #264f78;--component-explorer-minimap-infoHighlight: #59a4f9;--component-explorer-minimap-warningHighlight: #cca700;--component-explorer-minimap-errorHighlight: rgba(255, 18, 18, .7);--component-explorer-minimap-foregroundOpacity: #000000;--component-explorer-minimapSlider-background: rgba(121, 121, 121, .2);--component-explorer-minimapSlider-hoverBackground: rgba(100, 100, 100, .35);--component-explorer-minimapSlider-activeBackground: rgba(191, 191, 191, .2);--component-explorer-charts-foreground: #cccccc;--component-explorer-charts-lines: rgba(204, 204, 204, .5);--component-explorer-charts-red: #f14c4c;--component-explorer-charts-blue: #59a4f9;--component-explorer-charts-yellow: #cca700;--component-explorer-charts-orange: rgba(234, 92, 0, .33);--component-explorer-charts-green: #89d185;--component-explorer-charts-purple: #b180d7;--component-explorer-input-background: #3c3c3c;--component-explorer-input-foreground: #cccccc;--component-explorer-inputOption-activeBorder: #007acc;--component-explorer-inputOption-hoverBackground: rgba(90, 93, 94, .5);--component-explorer-inputOption-activeBackground: rgba(0, 127, 212, .4);--component-explorer-inputOption-activeForeground: #ffffff;--component-explorer-input-placeholderForeground: #a6a6a6;--component-explorer-inputValidation-infoBackground: #063b49;--component-explorer-inputValidation-infoBorder: #007acc;--component-explorer-inputValidation-warningBackground: #352a05;--component-explorer-inputValidation-warningBorder: #b89500;--component-explorer-inputValidation-errorBackground: #5a1d1d;--component-explorer-inputValidation-errorBorder: #be1100;--component-explorer-dropdown-background: #3c3c3c;--component-explorer-dropdown-foreground: #f0f0f0;--component-explorer-dropdown-border: #3c3c3c;--component-explorer-button-foreground: #ffffff;--component-explorer-button-separator: rgba(255, 255, 255, .4);--component-explorer-button-background: #0e639c;--component-explorer-button-hoverBackground: #1177bb;--component-explorer-button-secondaryForeground: #ffffff;--component-explorer-button-secondaryBackground: #3a3d41;--component-explorer-button-secondaryHoverBackground: #45494e;--component-explorer-radio-activeForeground: #ffffff;--component-explorer-radio-activeBackground: rgba(0, 127, 212, .4);--component-explorer-radio-activeBorder: #007acc;--component-explorer-radio-inactiveBorder: rgba(255, 255, 255, .2);--component-explorer-radio-inactiveHoverBackground: rgba(90, 93, 94, .5);--component-explorer-checkbox-background: #3c3c3c;--component-explorer-checkbox-selectBackground: #252526;--component-explorer-checkbox-foreground: #f0f0f0;--component-explorer-checkbox-border: #6b6b6b;--component-explorer-checkbox-selectBorder: #c5c5c5;--component-explorer-checkbox-disabled\\.background: #777777;--component-explorer-checkbox-disabled\\.foreground: #b4b4b4;--component-explorer-keybindingLabel-background: rgba(128, 128, 128, .17);--component-explorer-keybindingLabel-foreground: #cccccc;--component-explorer-keybindingLabel-border: rgba(51, 51, 51, .6);--component-explorer-keybindingLabel-bottomBorder: rgba(68, 68, 68, .6);--component-explorer-list-focusOutline: #007fd4;--component-explorer-list-activeSelectionBackground: #04395e;--component-explorer-list-activeSelectionForeground: #ffffff;--component-explorer-list-activeSelectionIconForeground: #ffffff;--component-explorer-list-inactiveSelectionBackground: #37373d;--component-explorer-list-hoverBackground: #2a2d2e;--component-explorer-list-dropBackground: #383b3d;--component-explorer-list-dropBetweenBackground: #c5c5c5;--component-explorer-list-highlightForeground: #2aaaff;--component-explorer-list-focusHighlightForeground: #2aaaff;--component-explorer-list-invalidItemForeground: #b89500;--component-explorer-list-errorForeground: #f88070;--component-explorer-list-warningForeground: #cca700;--component-explorer-listFilterWidget-background: #252526;--component-explorer-listFilterWidget-outline: rgba(0, 0, 0, 0);--component-explorer-listFilterWidget-noMatchesOutline: #be1100;--component-explorer-listFilterWidget-shadow: rgba(0, 0, 0, .36);--component-explorer-list-filterMatchBackground: rgba(234, 92, 0, .33);--component-explorer-list-deemphasizedForeground: #8c8c8c;--component-explorer-tree-indentGuidesStroke: #585858;--component-explorer-tree-inactiveIndentGuidesStroke: rgba(88, 88, 88, .4);--component-explorer-tree-tableColumnsBorder: rgba(204, 204, 204, .13);--component-explorer-tree-tableOddRowsBackground: rgba(204, 204, 204, .04);--component-explorer-editorActionList-background: #252526;--component-explorer-editorActionList-foreground: #cccccc;--component-explorer-editorActionList-focusForeground: #ffffff;--component-explorer-editorActionList-focusBackground: #04395e;--component-explorer-menu-border: #454545;--component-explorer-menu-foreground: #cccccc;--component-explorer-menu-background: #252526;--component-explorer-menu-selectionForeground: #ffffff;--component-explorer-menu-selectionBackground: #0078d4;--component-explorer-menu-separatorBackground: #454545;--component-explorer-quickInput-background: #252526;--component-explorer-quickInput-foreground: #cccccc;--component-explorer-quickInputTitle-background: rgba(255, 255, 255, .1);--component-explorer-pickerGroup-foreground: #3794ff;--component-explorer-pickerGroup-border: #3f3f46;--component-explorer-quickInputList-focusForeground: #ffffff;--component-explorer-quickInputList-focusIconForeground: #ffffff;--component-explorer-quickInputList-focusBackground: #04395e;--component-explorer-search-resultsInfoForeground: rgba(204, 204, 204, .65);--component-explorer-searchEditor-findMatchBackground: rgba(234, 92, 0, .22);--component-explorer-editor-lineHighlightBorder: #282828;--component-explorer-editor-rangeHighlightBackground: rgba(255, 255, 255, .04);--component-explorer-editor-symbolHighlightBackground: rgba(234, 92, 0, .33);--component-explorer-editorCursor-foreground: #aeafad;--component-explorer-editorMultiCursor-primary\\.foreground: #aeafad;--component-explorer-editorMultiCursor-secondary\\.foreground: #aeafad;--component-explorer-editorWhitespace-foreground: rgba(227, 228, 226, .16);--component-explorer-editorLineNumber-foreground: #858585;--component-explorer-editorIndentGuide-background: rgba(227, 228, 226, .16);--component-explorer-editorIndentGuide-activeBackground: rgba(227, 228, 226, .16);--component-explorer-editorIndentGuide-background1: #404040;--component-explorer-editorIndentGuide-background2: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-background3: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-background4: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-background5: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-background6: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-activeBackground1: #707070;--component-explorer-editorIndentGuide-activeBackground2: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-activeBackground3: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-activeBackground4: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-activeBackground5: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-activeBackground6: rgba(0, 0, 0, 0);--component-explorer-editorActiveLineNumber-foreground: #c6c6c6;--component-explorer-editorLineNumber-activeForeground: #c6c6c6;--component-explorer-editorRuler-foreground: #5a5a5a;--component-explorer-editorCodeLens-foreground: #999999;--component-explorer-editorBracketMatch-background: rgba(0, 100, 0, .1);--component-explorer-editorBracketMatch-border: #888888;--component-explorer-editorOverviewRuler-border: rgba(127, 127, 127, .3);--component-explorer-editorGutter-background: #1e1e1e;--component-explorer-editorUnnecessaryCode-opacity: rgba(0, 0, 0, .67);--component-explorer-editorGhostText-foreground: rgba(255, 255, 255, .34);--component-explorer-editorOverviewRuler-rangeHighlightForeground: rgba(0, 122, 204, .6);--component-explorer-editorOverviewRuler-errorForeground: rgba(255, 18, 18, .7);--component-explorer-editorOverviewRuler-warningForeground: #cca700;--component-explorer-editorOverviewRuler-infoForeground: #59a4f9;--component-explorer-editorBracketHighlight-foreground1: #ffd700;--component-explorer-editorBracketHighlight-foreground2: #da70d6;--component-explorer-editorBracketHighlight-foreground3: #179fff;--component-explorer-editorBracketHighlight-foreground4: rgba(0, 0, 0, 0);--component-explorer-editorBracketHighlight-foreground5: rgba(0, 0, 0, 0);--component-explorer-editorBracketHighlight-foreground6: rgba(0, 0, 0, 0);--component-explorer-editorBracketHighlight-unexpectedBracket\\.foreground: rgba(255, 18, 18, .8);--component-explorer-editorBracketPairGuide-background1: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-background2: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-background3: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-background4: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-background5: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-background6: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground1: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground2: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground3: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground4: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground5: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground6: rgba(0, 0, 0, 0);--component-explorer-editorUnicodeHighlight-border: #cca700;--component-explorer-diffEditor-move\\.border: rgba(139, 139, 139, .61);--component-explorer-diffEditor-moveActive\\.border: #ffa500;--component-explorer-diffEditor-unchangedRegionShadow: #000000;--component-explorer-editorOverviewRuler-bracketMatchForeground: #a0a0a0;--component-explorer-actionBar-toggledBackground: #383a49;--component-explorer-symbolIcon-arrayForeground: #cccccc;--component-explorer-symbolIcon-booleanForeground: #cccccc;--component-explorer-symbolIcon-classForeground: #ee9d28;--component-explorer-symbolIcon-colorForeground: #cccccc;--component-explorer-symbolIcon-constantForeground: #cccccc;--component-explorer-symbolIcon-constructorForeground: #b180d7;--component-explorer-symbolIcon-enumeratorForeground: #ee9d28;--component-explorer-symbolIcon-enumeratorMemberForeground: #75beff;--component-explorer-symbolIcon-eventForeground: #ee9d28;--component-explorer-symbolIcon-fieldForeground: #75beff;--component-explorer-symbolIcon-fileForeground: #cccccc;--component-explorer-symbolIcon-folderForeground: #cccccc;--component-explorer-symbolIcon-functionForeground: #b180d7;--component-explorer-symbolIcon-interfaceForeground: #75beff;--component-explorer-symbolIcon-keyForeground: #cccccc;--component-explorer-symbolIcon-keywordForeground: #cccccc;--component-explorer-symbolIcon-methodForeground: #b180d7;--component-explorer-symbolIcon-moduleForeground: #cccccc;--component-explorer-symbolIcon-namespaceForeground: #cccccc;--component-explorer-symbolIcon-nullForeground: #cccccc;--component-explorer-symbolIcon-numberForeground: #cccccc;--component-explorer-symbolIcon-objectForeground: #cccccc;--component-explorer-symbolIcon-operatorForeground: #cccccc;--component-explorer-symbolIcon-packageForeground: #cccccc;--component-explorer-symbolIcon-propertyForeground: #cccccc;--component-explorer-symbolIcon-referenceForeground: #cccccc;--component-explorer-symbolIcon-snippetForeground: #cccccc;--component-explorer-symbolIcon-stringForeground: #cccccc;--component-explorer-symbolIcon-structForeground: #cccccc;--component-explorer-symbolIcon-textForeground: #cccccc;--component-explorer-symbolIcon-typeParameterForeground: #cccccc;--component-explorer-symbolIcon-unitForeground: #cccccc;--component-explorer-symbolIcon-variableForeground: #75beff;--component-explorer-peekViewTitle-background: #252526;--component-explorer-peekViewTitleLabel-foreground: #ffffff;--component-explorer-peekViewTitleDescription-foreground: rgba(204, 204, 204, .7);--component-explorer-peekView-border: #59a4f9;--component-explorer-peekViewResult-background: #252526;--component-explorer-peekViewResult-lineForeground: #bbbbbb;--component-explorer-peekViewResult-fileForeground: #ffffff;--component-explorer-peekViewResult-selectionBackground: rgba(51, 153, 255, .2);--component-explorer-peekViewResult-selectionForeground: #ffffff;--component-explorer-peekViewEditor-background: #001f33;--component-explorer-peekViewEditorGutter-background: #001f33;--component-explorer-peekViewEditorStickyScroll-background: #001f33;--component-explorer-peekViewEditorStickyScrollGutter-background: #001f33;--component-explorer-peekViewResult-matchHighlightBackground: rgba(234, 92, 0, .3);--component-explorer-peekViewEditor-matchHighlightBackground: rgba(255, 143, 0, .6);--component-explorer-editorMarkerNavigationError-background: #f14c4c;--component-explorer-editorMarkerNavigationError-headerBackground: rgba(241, 76, 76, .1);--component-explorer-editorMarkerNavigationWarning-background: #cca700;--component-explorer-editorMarkerNavigationWarning-headerBackground: rgba(204, 167, 0, .1);--component-explorer-editorMarkerNavigationInfo-background: #59a4f9;--component-explorer-editorMarkerNavigationInfo-headerBackground: rgba(89, 164, 249, .1);--component-explorer-editorMarkerNavigation-background: #1e1e1e;--component-explorer-editor-foldBackground: rgba(38, 79, 120, .3);--component-explorer-editor-foldPlaceholderForeground: #808080;--component-explorer-editorGutter-foldingControlForeground: #c5c5c5;--component-explorer-editorSuggestWidget-background: #252526;--component-explorer-editorSuggestWidget-border: #454545;--component-explorer-editorSuggestWidget-foreground: #d4d4d4;--component-explorer-editorSuggestWidget-selectedForeground: #ffffff;--component-explorer-editorSuggestWidget-selectedIconForeground: #ffffff;--component-explorer-editorSuggestWidget-selectedBackground: #04395e;--component-explorer-editorSuggestWidget-highlightForeground: #2aaaff;--component-explorer-editorSuggestWidget-focusHighlightForeground: #2aaaff;--component-explorer-editorSuggestWidgetStatus-foreground: rgba(212, 212, 212, .5);--component-explorer-inlineEdit-originalBackground: rgba(255, 0, 0, .04);--component-explorer-inlineEdit-modifiedBackground: rgba(156, 204, 44, .06);--component-explorer-inlineEdit-originalChangedLineBackground: rgba(255, 0, 0, .16);--component-explorer-inlineEdit-originalChangedTextBackground: rgba(255, 0, 0, .16);--component-explorer-inlineEdit-modifiedChangedLineBackground: rgba(155, 185, 85, .14);--component-explorer-inlineEdit-modifiedChangedTextBackground: rgba(156, 204, 44, .14);--component-explorer-inlineEdit-gutterIndicator\\.primaryForeground: #ffffff;--component-explorer-inlineEdit-gutterIndicator\\.primaryBorder: #0e639c;--component-explorer-inlineEdit-gutterIndicator\\.primaryBackground: rgba(14, 99, 156, .4);--component-explorer-inlineEdit-gutterIndicator\\.secondaryForeground: #ffffff;--component-explorer-inlineEdit-gutterIndicator\\.secondaryBorder: #3a3d41;--component-explorer-inlineEdit-gutterIndicator\\.secondaryBackground: #3a3d41;--component-explorer-inlineEdit-gutterIndicator\\.successfulForeground: #ffffff;--component-explorer-inlineEdit-gutterIndicator\\.successfulBorder: #0e639c;--component-explorer-inlineEdit-gutterIndicator\\.successfulBackground: #0e639c;--component-explorer-inlineEdit-gutterIndicator\\.background: rgba(45, 45, 45, .5);--component-explorer-inlineEdit-originalBorder: rgba(255, 0, 0, .2);--component-explorer-inlineEdit-modifiedBorder: rgba(156, 204, 44, .2);--component-explorer-inlineEdit-tabWillAcceptModifiedBorder: rgba(156, 204, 44, .2);--component-explorer-inlineEdit-tabWillAcceptOriginalBorder: rgba(255, 0, 0, .2);--component-explorer-editor-linkedEditingBackground: rgba(255, 0, 0, .3);--component-explorer-editor-wordHighlightBackground: rgba(87, 87, 87, .72);--component-explorer-editor-wordHighlightStrongBackground: rgba(0, 73, 114, .72);--component-explorer-editor-wordHighlightTextBackground: rgba(87, 87, 87, .72);--component-explorer-editorOverviewRuler-wordHighlightForeground: rgba(160, 160, 160, .8);--component-explorer-editorOverviewRuler-wordHighlightStrongForeground: rgba(192, 160, 192, .8);--component-explorer-editorOverviewRuler-wordHighlightTextForeground: rgba(160, 160, 160, .8);--component-explorer-editorHoverWidget-highlightForeground: #2aaaff;--component-explorer-editor-placeholder\\.foreground: rgba(255, 255, 255, .34);--component-explorer-tab-activeBackground: #1e1e1e;--component-explorer-tab-unfocusedActiveBackground: #1e1e1e;--component-explorer-tab-inactiveBackground: #2d2d2d;--component-explorer-tab-unfocusedInactiveBackground: #2d2d2d;--component-explorer-tab-activeForeground: #ffffff;--component-explorer-tab-inactiveForeground: rgba(255, 255, 255, .5);--component-explorer-tab-unfocusedActiveForeground: rgba(255, 255, 255, .5);--component-explorer-tab-unfocusedInactiveForeground: rgba(255, 255, 255, .25);--component-explorer-tab-border: #252526;--component-explorer-tab-lastPinnedBorder: rgba(204, 204, 204, .2);--component-explorer-tab-selectedBackground: #222222;--component-explorer-tab-selectedForeground: rgba(255, 255, 255, .63);--component-explorer-tab-dragAndDropBorder: #ffffff;--component-explorer-tab-activeModifiedBorder: #3399cc;--component-explorer-tab-inactiveModifiedBorder: rgba(51, 153, 204, .5);--component-explorer-tab-unfocusedActiveModifiedBorder: rgba(51, 153, 204, .5);--component-explorer-tab-unfocusedInactiveModifiedBorder: rgba(51, 153, 204, .25);--component-explorer-editorPane-background: #1e1e1e;--component-explorer-editorGroupHeader-tabsBackground: #252526;--component-explorer-editorGroupHeader-noTabsBackground: #1e1e1e;--component-explorer-editorGroup-border: #444444;--component-explorer-editorGroup-dropBackground: rgba(83, 89, 93, .5);--component-explorer-editorGroup-dropIntoPromptForeground: #cccccc;--component-explorer-editorGroup-dropIntoPromptBackground: #252526;--component-explorer-sideBySideEditor-horizontalBorder: #444444;--component-explorer-sideBySideEditor-verticalBorder: #444444;--component-explorer-banner-background: #04395e;--component-explorer-banner-foreground: #ffffff;--component-explorer-banner-iconForeground: #59a4f9;--component-explorer-statusBar-foreground: #ffffff;--component-explorer-statusBar-noFolderForeground: #ffffff;--component-explorer-statusBar-background: #007acc;--component-explorer-statusBar-noFolderBackground: #68217a;--component-explorer-statusBar-focusBorder: #ffffff;--component-explorer-statusBarItem-activeBackground: rgba(255, 255, 255, .18);--component-explorer-statusBarItem-focusBorder: #ffffff;--component-explorer-statusBarItem-hoverBackground: rgba(255, 255, 255, .12);--component-explorer-statusBarItem-hoverForeground: #ffffff;--component-explorer-statusBarItem-compactHoverBackground: rgba(255, 255, 255, .12);--component-explorer-statusBarItem-prominentForeground: #ffffff;--component-explorer-statusBarItem-prominentBackground: rgba(0, 0, 0, .5);--component-explorer-statusBarItem-prominentHoverForeground: #ffffff;--component-explorer-statusBarItem-prominentHoverBackground: rgba(255, 255, 255, .12);--component-explorer-statusBarItem-errorBackground: #c72e0f;--component-explorer-statusBarItem-errorForeground: #ffffff;--component-explorer-statusBarItem-errorHoverForeground: #ffffff;--component-explorer-statusBarItem-errorHoverBackground: rgba(255, 255, 255, .12);--component-explorer-statusBarItem-warningBackground: #7a6400;--component-explorer-statusBarItem-warningForeground: #ffffff;--component-explorer-statusBarItem-warningHoverForeground: #ffffff;--component-explorer-statusBarItem-warningHoverBackground: rgba(255, 255, 255, .12);--component-explorer-activityBar-background: #333333;--component-explorer-activityBar-foreground: #ffffff;--component-explorer-activityBar-inactiveForeground: rgba(255, 255, 255, .4);--component-explorer-activityBar-activeBorder: #ffffff;--component-explorer-activityBar-dropBorder: #ffffff;--component-explorer-activityBarBadge-background: #007acc;--component-explorer-activityBarBadge-foreground: #ffffff;--component-explorer-activityBarTop-foreground: #e7e7e7;--component-explorer-activityBarTop-activeBorder: #e7e7e7;--component-explorer-activityBarTop-inactiveForeground: rgba(231, 231, 231, .6);--component-explorer-activityBarTop-dropBorder: #e7e7e7;--component-explorer-panel-background: #1e1e1e;--component-explorer-panel-border: rgba(128, 128, 128, .35);--component-explorer-panelTitle-activeForeground: #e7e7e7;--component-explorer-panelTitle-inactiveForeground: rgba(231, 231, 231, .6);--component-explorer-panelTitle-activeBorder: #e7e7e7;--component-explorer-panelTitleBadge-background: #007acc;--component-explorer-panelTitleBadge-foreground: #ffffff;--component-explorer-panel-dropBorder: #e7e7e7;--component-explorer-panelSection-dropBackground: rgba(83, 89, 93, .5);--component-explorer-panelSectionHeader-background: rgba(128, 128, 128, .2);--component-explorer-panelSection-border: rgba(128, 128, 128, .35);--component-explorer-panelStickyScroll-background: #1e1e1e;--component-explorer-panelStickyScroll-shadow: #000000;--component-explorer-profileBadge-background: #4d4d4d;--component-explorer-profileBadge-foreground: #ffffff;--component-explorer-statusBarItem-remoteBackground: #16825d;--component-explorer-statusBarItem-remoteForeground: #ffffff;--component-explorer-statusBarItem-remoteHoverForeground: #ffffff;--component-explorer-statusBarItem-remoteHoverBackground: rgba(255, 255, 255, .12);--component-explorer-statusBarItem-offlineBackground: #6c1717;--component-explorer-statusBarItem-offlineForeground: #ffffff;--component-explorer-statusBarItem-offlineHoverForeground: #ffffff;--component-explorer-statusBarItem-offlineHoverBackground: rgba(255, 255, 255, .12);--component-explorer-extensionBadge-remoteBackground: #007acc;--component-explorer-extensionBadge-remoteForeground: #ffffff;--component-explorer-sideBar-background: #252526;--component-explorer-sideBarTitle-background: #252526;--component-explorer-sideBarTitle-foreground: #bbbbbb;--component-explorer-sideBar-dropBackground: rgba(83, 89, 93, .5);--component-explorer-sideBarSectionHeader-background: rgba(0, 0, 0, 0);--component-explorer-sideBarSectionHeader-border: rgba(204, 204, 204, .2);--component-explorer-sideBarActivityBarTop-border: rgba(204, 204, 204, .2);--component-explorer-sideBarStickyScroll-background: #252526;--component-explorer-sideBarStickyScroll-shadow: #000000;--component-explorer-titleBar-activeForeground: #cccccc;--component-explorer-titleBar-inactiveForeground: rgba(204, 204, 204, .6);--component-explorer-titleBar-activeBackground: #3c3c3c;--component-explorer-titleBar-inactiveBackground: rgba(60, 60, 60, .6);--component-explorer-menubar-selectionForeground: #cccccc;--component-explorer-menubar-selectionBackground: rgba(90, 93, 94, .31);--component-explorer-commandCenter-foreground: #cccccc;--component-explorer-commandCenter-activeForeground: #cccccc;--component-explorer-commandCenter-inactiveForeground: rgba(204, 204, 204, .6);--component-explorer-commandCenter-background: rgba(255, 255, 255, .05);--component-explorer-commandCenter-activeBackground: rgba(255, 255, 255, .08);--component-explorer-commandCenter-border: rgba(204, 204, 204, .2);--component-explorer-commandCenter-activeBorder: rgba(204, 204, 204, .3);--component-explorer-commandCenter-inactiveBorder: rgba(204, 204, 204, .15);--component-explorer-notificationCenter-border: #303031;--component-explorer-notificationToast-border: #303031;--component-explorer-notifications-foreground: #cccccc;--component-explorer-notifications-background: #252526;--component-explorer-notificationLink-foreground: #3794ff;--component-explorer-notificationCenterHeader-background: #303031;--component-explorer-notifications-border: #303031;--component-explorer-notificationsErrorIcon-foreground: #f14c4c;--component-explorer-notificationsWarningIcon-foreground: #cca700;--component-explorer-notificationsInfoIcon-foreground: #59a4f9;--component-explorer-editorGutter-modifiedBackground: #1b81a8;--component-explorer-editorGutter-modifiedSecondaryBackground: #0d4054;--component-explorer-editorGutter-addedBackground: #487e02;--component-explorer-editorGutter-addedSecondaryBackground: #243f01;--component-explorer-editorGutter-deletedBackground: #f14c4c;--component-explorer-editorGutter-deletedSecondaryBackground: #b00e0e;--component-explorer-minimapGutter-modifiedBackground: #1b81a8;--component-explorer-minimapGutter-addedBackground: #487e02;--component-explorer-minimapGutter-deletedBackground: #f14c4c;--component-explorer-editorOverviewRuler-modifiedForeground: rgba(27, 129, 168, .6);--component-explorer-editorOverviewRuler-addedForeground: rgba(72, 126, 2, .6);--component-explorer-editorOverviewRuler-deletedForeground: rgba(241, 76, 76, .6);--component-explorer-editorGutter-itemGlyphForeground: #d4d4d4;--component-explorer-editorGutter-itemBackground: #37373d;--component-explorer-terminal-foreground: #cccccc;--component-explorer-terminal-selectionBackground: #264f78;--component-explorer-terminal-inactiveSelectionBackground: #3a3d41;--component-explorer-terminalCommandDecoration-defaultBackground: rgba(255, 255, 255, .25);--component-explorer-terminalCommandDecoration-successBackground: #1b81a8;--component-explorer-terminalCommandDecoration-errorBackground: #f14c4c;--component-explorer-terminalOverviewRuler-cursorForeground: rgba(160, 160, 160, .8);--component-explorer-terminal-border: rgba(128, 128, 128, .35);--component-explorer-terminalOverviewRuler-border: rgba(127, 127, 127, .3);--component-explorer-terminal-findMatchBackground: #515c6a;--component-explorer-terminal-hoverHighlightBackground: rgba(38, 79, 120, .13);--component-explorer-terminal-findMatchHighlightBackground: rgba(234, 92, 0, .33);--component-explorer-terminalOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--component-explorer-terminal-dropBackground: rgba(83, 89, 93, .5);--component-explorer-terminal-initialHintForeground: rgba(255, 255, 255, .34);--component-explorer-scmGraph-historyItemRefColor: #59a4f9;--component-explorer-scmGraph-historyItemRemoteRefColor: #b180d7;--component-explorer-scmGraph-historyItemBaseRefColor: #ea5c00;--component-explorer-scmGraph-historyItemHoverDefaultLabelForeground: #cccccc;--component-explorer-scmGraph-historyItemHoverDefaultLabelBackground: #4d4d4d;--component-explorer-scmGraph-historyItemHoverLabelForeground: #1e1e1e;--component-explorer-scmGraph-historyItemHoverAdditionsForeground: #81b88b;--component-explorer-scmGraph-historyItemHoverDeletionsForeground: #c74e39;--component-explorer-scmGraph-foreground1: #ffb000;--component-explorer-scmGraph-foreground2: #dc267f;--component-explorer-scmGraph-foreground3: #994f00;--component-explorer-scmGraph-foreground4: #40b0a6;--component-explorer-scmGraph-foreground5: #b66dff;--component-explorer-commentsView-resolvedIcon: rgba(204, 204, 204, .5);--component-explorer-commentsView-unresolvedIcon: #007fd4;--component-explorer-editorCommentsWidget-replyInputBackground: #252526;--component-explorer-editorCommentsWidget-resolvedBorder: rgba(204, 204, 204, .5);--component-explorer-editorCommentsWidget-unresolvedBorder: #007fd4;--component-explorer-editorCommentsWidget-rangeBackground: rgba(0, 127, 212, .1);--component-explorer-editorCommentsWidget-rangeActiveBackground: rgba(0, 127, 212, .1);--component-explorer-editorGutter-commentRangeForeground: #37373d;--component-explorer-editorOverviewRuler-commentForeground: #37373d;--component-explorer-editorOverviewRuler-commentUnresolvedForeground: #37373d;--component-explorer-editorOverviewRuler-commentDraftForeground: #37373d;--component-explorer-editorGutter-commentGlyphForeground: #d4d4d4;--component-explorer-editorGutter-commentUnresolvedGlyphForeground: #d4d4d4;--component-explorer-editorGutter-commentDraftGlyphForeground: #d4d4d4;--component-explorer-agentSessionReadIndicator-foreground: rgba(204, 204, 204, .15);--component-explorer-agentSessionSelectedBadge-border: rgba(255, 255, 255, .3);--component-explorer-agentSessionSelectedUnfocusedBadge-border: rgba(204, 204, 204, .3);--component-explorer-ports-iconRunningProcessForeground: #369432;--component-explorer-settings-headerForeground: #e7e7e7;--component-explorer-settings-settingsHeaderHoverForeground: rgba(231, 231, 231, .7);--component-explorer-settings-modifiedItemIndicator: #0c7d9d;--component-explorer-settings-headerBorder: rgba(128, 128, 128, .35);--component-explorer-settings-sashBorder: rgba(128, 128, 128, .35);--component-explorer-settings-dropdownBackground: #3c3c3c;--component-explorer-settings-dropdownForeground: #f0f0f0;--component-explorer-settings-dropdownBorder: #3c3c3c;--component-explorer-settings-dropdownListBorder: #454545;--component-explorer-settings-checkboxBackground: #3c3c3c;--component-explorer-settings-checkboxForeground: #f0f0f0;--component-explorer-settings-checkboxBorder: #6b6b6b;--component-explorer-settings-textInputBackground: #3c3c3c;--component-explorer-settings-textInputForeground: #cccccc;--component-explorer-settings-numberInputBackground: #3c3c3c;--component-explorer-settings-numberInputForeground: #cccccc;--component-explorer-settings-focusedRowBackground: rgba(42, 45, 46, .6);--component-explorer-settings-rowHoverBackground: rgba(42, 45, 46, .3);--component-explorer-settings-focusedRowBorder: #007fd4;--component-explorer-keybindingTable-headerBackground: rgba(204, 204, 204, .04);--component-explorer-keybindingTable-rowsBackground: rgba(204, 204, 204, .04);--component-explorer-extensionButton-background: #3a3d41;--component-explorer-extensionButton-foreground: #ffffff;--component-explorer-extensionButton-hoverBackground: #45494e;--component-explorer-extensionButton-separator: rgba(255, 255, 255, .4);--component-explorer-extensionButton-prominentBackground: #0e639c;--component-explorer-extensionButton-prominentForeground: #ffffff;--component-explorer-extensionButton-prominentHoverBackground: #1177bb;--component-explorer-debugToolBar-background: #333333;--component-explorer-debugIcon-startForeground: #89d185;--component-explorer-notebook-cellBorderColor: #37373d;--component-explorer-notebook-focusedEditorBorder: #007fd4;--component-explorer-notebookStatusSuccessIcon-foreground: #89d185;--component-explorer-notebookEditorOverviewRuler-runningCellForeground: #89d185;--component-explorer-notebookStatusErrorIcon-foreground: #f48771;--component-explorer-notebookStatusRunningIcon-foreground: #cccccc;--component-explorer-notebook-cellToolbarSeparator: rgba(128, 128, 128, .35);--component-explorer-notebook-selectedCellBackground: #37373d;--component-explorer-notebook-selectedCellBorder: #37373d;--component-explorer-notebook-focusedCellBorder: #007fd4;--component-explorer-notebook-inactiveFocusedCellBorder: #37373d;--component-explorer-notebook-cellStatusBarItemHoverBackground: rgba(255, 255, 255, .15);--component-explorer-notebook-cellInsertionIndicator: #007fd4;--component-explorer-notebookScrollbarSlider-background: rgba(121, 121, 121, .4);--component-explorer-notebookScrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--component-explorer-notebookScrollbarSlider-activeBackground: rgba(191, 191, 191, .4);--component-explorer-notebook-symbolHighlightBackground: rgba(255, 255, 255, .04);--component-explorer-notebook-cellEditorBackground: #252526;--component-explorer-notebook-editorBackground: #1e1e1e;--component-explorer-inlineChat-foreground: #cccccc;--component-explorer-inlineChat-background: #252526;--component-explorer-inlineChat-border: #454545;--component-explorer-inlineChat-shadow: rgba(0, 0, 0, .36);--component-explorer-inlineChatInput-border: #454545;--component-explorer-inlineChatInput-focusBorder: #007fd4;--component-explorer-inlineChatInput-placeholderForeground: #a6a6a6;--component-explorer-inlineChatInput-background: #3c3c3c;--component-explorer-inlineChatDiff-inserted: rgba(156, 204, 44, .1);--component-explorer-editorOverviewRuler-inlineChatInserted: rgba(156, 204, 44, .12);--component-explorer-editorMinimap-inlineChatInserted: rgba(156, 204, 44, .12);--component-explorer-inlineChatDiff-removed: rgba(255, 0, 0, .1);--component-explorer-editorOverviewRuler-inlineChatRemoved: rgba(255, 0, 0, .12);--component-explorer-multiDiffEditor-headerBackground: #262626;--component-explorer-multiDiffEditor-background: #1e1e1e;--component-explorer-multiDiffEditor-border: rgba(204, 204, 204, .2);--component-explorer-extensionIcon-verifiedForeground: #3794ff;--component-explorer-chat-requestBorder: rgba(255, 255, 255, .1);--component-explorer-chat-requestBackground: rgba(30, 30, 30, .62);--component-explorer-chat-slashCommandBackground: rgba(38, 71, 120, .4);--component-explorer-chat-slashCommandForeground: #85b6ff;--component-explorer-chat-avatarBackground: #1f1f1f;--component-explorer-chat-avatarForeground: #cccccc;--component-explorer-chat-editedFileForeground: #e2c08d;--component-explorer-chat-requestCodeBorder: rgba(0, 73, 114, .72);--component-explorer-chat-requestBubbleBackground: rgba(38, 79, 120, .3);--component-explorer-chat-requestBubbleHoverBackground: rgba(38, 79, 120, .6);--component-explorer-chat-checkpointSeparator: #585858;--component-explorer-chat-linesAddedForeground: #54b054;--component-explorer-chat-linesRemovedForeground: #fc6a6a;--component-explorer-chat-thinkingShimmer: #ffffff;--component-explorer-extensionIcon-starForeground: #ff8e00;--component-explorer-extensionIcon-preReleaseForeground: #1d9271;--component-explorer-extensionIcon-sponsorForeground: #d758b3;--component-explorer-extensionIcon-privateForeground: rgba(255, 255, 255, .38);--component-explorer-debugExceptionWidget-border: #a31515;--component-explorer-debugExceptionWidget-background: #420b0d;--component-explorer-editor-inlineValuesForeground: rgba(255, 255, 255, .5);--component-explorer-editor-inlineValuesBackground: rgba(255, 200, 0, .2);--component-explorer-debugIcon-breakpointForeground: #e51400;--component-explorer-debugIcon-breakpointDisabledForeground: #848484;--component-explorer-debugIcon-breakpointUnverifiedForeground: #848484;--component-explorer-debugIcon-breakpointCurrentStackframeForeground: #ffcc00;--component-explorer-debugIcon-breakpointStackframeForeground: #89d185;--component-explorer-editor-stackFrameHighlightBackground: rgba(255, 255, 0, .2);--component-explorer-editor-focusedStackFrameHighlightBackground: rgba(122, 189, 122, .3);--component-explorer-minimap-chatEditHighlight: rgba(30, 30, 30, .6);--component-explorer-chatManagement-sashBorder: rgba(128, 128, 128, .35);--component-explorer-gauge-foreground: #007acc;--component-explorer-gauge-background: rgba(0, 122, 204, .3);--component-explorer-gauge-warningForeground: #b89500;--component-explorer-gauge-warningBackground: rgba(184, 149, 0, .3);--component-explorer-gauge-errorForeground: #be1100;--component-explorer-gauge-errorBackground: rgba(190, 17, 0, .3);--component-explorer-mcpIcon-starForeground: #ff8e00;--component-explorer-interactive-activeCodeBorder: #007acc;--component-explorer-interactive-inactiveCodeBorder: #37373d;--component-explorer-testing-iconFailed: #f14c4c;--component-explorer-testing-iconErrored: #f14c4c;--component-explorer-testing-iconPassed: #73c991;--component-explorer-testing-runAction: #73c991;--component-explorer-testing-iconQueued: #cca700;--component-explorer-testing-iconUnset: #848484;--component-explorer-testing-iconSkipped: #848484;--component-explorer-testing-peekBorder: #f14c4c;--component-explorer-testing-messagePeekBorder: #59a4f9;--component-explorer-testing-peekHeaderBackground: rgba(241, 76, 76, .1);--component-explorer-testing-messagePeekHeaderBackground: rgba(89, 164, 249, .1);--component-explorer-testing-coveredBackground: rgba(156, 204, 44, .2);--component-explorer-testing-coveredBorder: rgba(156, 204, 44, .15);--component-explorer-testing-coveredGutterBackground: rgba(156, 204, 44, .12);--component-explorer-testing-uncoveredBranchBackground: #781212;--component-explorer-testing-uncoveredBackground: rgba(255, 0, 0, .2);--component-explorer-testing-uncoveredBorder: rgba(255, 0, 0, .15);--component-explorer-testing-uncoveredGutterBackground: rgba(255, 0, 0, .3);--component-explorer-testing-coverCountBadgeBackground: #4d4d4d;--component-explorer-testing-coverCountBadgeForeground: #ffffff;--component-explorer-testing-message\\.error\\.badgeBackground: #f14c4c;--component-explorer-testing-message\\.error\\.badgeBorder: #f14c4c;--component-explorer-testing-message\\.error\\.badgeForeground: #000000;--component-explorer-testing-message\\.info\\.decorationForeground: rgba(212, 212, 212, .5);--component-explorer-testing-iconErrored\\.retired: rgba(241, 76, 76, .7);--component-explorer-testing-iconFailed\\.retired: rgba(241, 76, 76, .7);--component-explorer-testing-iconPassed\\.retired: rgba(115, 201, 145, .7);--component-explorer-testing-iconQueued\\.retired: rgba(204, 167, 0, .7);--component-explorer-testing-iconUnset\\.retired: rgba(132, 132, 132, .7);--component-explorer-testing-iconSkipped\\.retired: rgba(132, 132, 132, .7);--component-explorer-statusBar-debuggingBackground: #cc6633;--component-explorer-statusBar-debuggingForeground: #ffffff;--component-explorer-commandCenter-debuggingBackground: rgba(204, 102, 51, .26);--component-explorer-debugTokenExpression-name: #c586c0;--component-explorer-debugTokenExpression-type: #4a90e2;--component-explorer-debugTokenExpression-value: rgba(204, 204, 204, .6);--component-explorer-debugTokenExpression-string: #ce9178;--component-explorer-debugTokenExpression-boolean: #4e94ce;--component-explorer-debugTokenExpression-number: #b5cea8;--component-explorer-debugTokenExpression-error: #f48771;--component-explorer-debugView-exceptionLabelForeground: #cccccc;--component-explorer-debugView-exceptionLabelBackground: #6c2022;--component-explorer-debugView-stateLabelForeground: #cccccc;--component-explorer-debugView-stateLabelBackground: rgba(136, 136, 136, .27);--component-explorer-debugView-valueChangedHighlight: #569cd6;--component-explorer-debugConsole-infoForeground: #59a4f9;--component-explorer-debugConsole-warningForeground: #cca700;--component-explorer-debugConsole-errorForeground: #f48771;--component-explorer-debugConsole-sourceForeground: #cccccc;--component-explorer-debugConsoleInputIcon-foreground: #cccccc;--component-explorer-debugIcon-pauseForeground: #75beff;--component-explorer-debugIcon-stopForeground: #f48771;--component-explorer-debugIcon-disconnectForeground: #f48771;--component-explorer-debugIcon-restartForeground: #89d185;--component-explorer-debugIcon-stepOverForeground: #75beff;--component-explorer-debugIcon-stepIntoForeground: #75beff;--component-explorer-debugIcon-stepOutForeground: #75beff;--component-explorer-debugIcon-continueForeground: #75beff;--component-explorer-debugIcon-stepBackForeground: #75beff;--component-explorer-mergeEditor-change\\.background: rgba(155, 185, 85, .2);--component-explorer-mergeEditor-change\\.word\\.background: rgba(156, 204, 44, .2);--component-explorer-mergeEditor-changeBase\\.background: #4b1818;--component-explorer-mergeEditor-changeBase\\.word\\.background: #6f1313;--component-explorer-mergeEditor-conflict\\.unhandledUnfocused\\.border: rgba(255, 166, 0, .48);--component-explorer-mergeEditor-conflict\\.unhandledFocused\\.border: #ffa600;--component-explorer-mergeEditor-conflict\\.handledUnfocused\\.border: rgba(134, 134, 134, .29);--component-explorer-mergeEditor-conflict\\.handledFocused\\.border: rgba(193, 193, 193, .8);--component-explorer-mergeEditor-conflict\\.handled\\.minimapOverViewRuler: rgba(173, 172, 168, .93);--component-explorer-mergeEditor-conflict\\.unhandled\\.minimapOverViewRuler: #fcba03;--component-explorer-mergeEditor-conflictingLines\\.background: rgba(255, 234, 0, .28);--component-explorer-mergeEditor-conflict\\.input1\\.background: rgba(64, 200, 174, .2);--component-explorer-mergeEditor-conflict\\.input2\\.background: rgba(64, 166, 255, .2);--component-explorer-terminal-ansiBlack: #000000;--component-explorer-terminal-ansiRed: #cd3131;--component-explorer-terminal-ansiGreen: #0dbc79;--component-explorer-terminal-ansiYellow: #e5e510;--component-explorer-terminal-ansiBlue: #2472c8;--component-explorer-terminal-ansiMagenta: #bc3fbc;--component-explorer-terminal-ansiCyan: #11a8cd;--component-explorer-terminal-ansiWhite: #e5e5e5;--component-explorer-terminal-ansiBrightBlack: #666666;--component-explorer-terminal-ansiBrightRed: #f14c4c;--component-explorer-terminal-ansiBrightGreen: #23d18b;--component-explorer-terminal-ansiBrightYellow: #f5f543;--component-explorer-terminal-ansiBrightBlue: #3b8eea;--component-explorer-terminal-ansiBrightMagenta: #d670d6;--component-explorer-terminal-ansiBrightCyan: #29b8db;--component-explorer-terminal-ansiBrightWhite: #e5e5e5;--component-explorer-simpleFindWidget-sashBorder: #454545;--component-explorer-terminalStickyScrollHover-background: #2a2d2e;--component-explorer-terminalCommandGuide-foreground: #37373d;--component-explorer-terminalSymbolIcon-flagForeground: #ee9d28;--component-explorer-terminalSymbolIcon-aliasForeground: #b180d7;--component-explorer-terminalSymbolIcon-optionValueForeground: #75beff;--component-explorer-terminalSymbolIcon-methodForeground: #b180d7;--component-explorer-terminalSymbolIcon-argumentForeground: #75beff;--component-explorer-terminalSymbolIcon-optionForeground: #ee9d28;--component-explorer-terminalSymbolIcon-fileForeground: #cccccc;--component-explorer-terminalSymbolIcon-folderForeground: #cccccc;--component-explorer-terminalSymbolIcon-commitForeground: #cccccc;--component-explorer-terminalSymbolIcon-branchForeground: #cccccc;--component-explorer-terminalSymbolIcon-tagForeground: #cccccc;--component-explorer-terminalSymbolIcon-stashForeground: #cccccc;--component-explorer-terminalSymbolIcon-remoteForeground: #cccccc;--component-explorer-terminalSymbolIcon-pullRequestForeground: #cccccc;--component-explorer-terminalSymbolIcon-pullRequestDoneForeground: #cccccc;--component-explorer-terminalSymbolIcon-symbolicLinkFileForeground: #cccccc;--component-explorer-terminalSymbolIcon-symbolicLinkFolderForeground: #cccccc;--component-explorer-terminalSymbolIcon-symbolText: #cccccc;--component-explorer-markdownAlert-note\\.foreground: #59a4f9;--component-explorer-markdownAlert-tip\\.foreground: #89d185;--component-explorer-markdownAlert-important\\.foreground: #b180d7;--component-explorer-markdownAlert-warning\\.foreground: #cca700;--component-explorer-markdownAlert-caution\\.foreground: #f14c4c;--component-explorer-welcomePage-tileBackground: #252526;--component-explorer-welcomePage-tileHoverBackground: #2c2c2d;--component-explorer-welcomePage-tileBorder: rgba(255, 255, 255, .1);--component-explorer-welcomePage-progress\\.background: #3c3c3c;--component-explorer-welcomePage-progress\\.foreground: #3794ff;--component-explorer-walkthrough-stepTitle\\.foreground: #ffffff;--component-explorer-walkThrough-embeddedEditorBackground: rgba(0, 0, 0, .4);--component-explorer-profiles-sashBorder: rgba(128, 128, 128, .35);--component-explorer-gitDecoration-addedResourceForeground: #81b88b;--component-explorer-gitDecoration-modifiedResourceForeground: #e2c08d;--component-explorer-gitDecoration-deletedResourceForeground: #c74e39;--component-explorer-gitDecoration-renamedResourceForeground: #73c991;--component-explorer-gitDecoration-untrackedResourceForeground: #73c991;--component-explorer-gitDecoration-ignoredResourceForeground: #8c8c8c;--component-explorer-gitDecoration-stageModifiedResourceForeground: #e2c08d;--component-explorer-gitDecoration-stageDeletedResourceForeground: #c74e39;--component-explorer-gitDecoration-conflictingResourceForeground: #e4676b;--component-explorer-gitDecoration-submoduleResourceForeground: #8db9e2;--component-explorer-git-blame\\.editorDecorationForeground: #969696;--component-explorer-gitlens-gutterBackgroundColor: rgba(255, 255, 255, .07);--component-explorer-gitlens-gutterForegroundColor: #bebebe;--component-explorer-gitlens-gutterUncommittedForegroundColor: rgba(0, 188, 242, .6);--component-explorer-gitlens-trailingLineBackgroundColor: rgba(0, 0, 0, 0);--component-explorer-gitlens-trailingLineForegroundColor: rgba(153, 153, 153, .35);--component-explorer-gitlens-lineHighlightBackgroundColor: rgba(0, 188, 242, .2);--component-explorer-gitlens-lineHighlightOverviewRulerColor: rgba(0, 188, 242, .6);--component-explorer-gitlens-openAutolinkedIssueIconColor: #3fb950;--component-explorer-gitlens-closedAutolinkedIssueIconColor: #a371f7;--component-explorer-gitlens-closedPullRequestIconColor: #f85149;--component-explorer-gitlens-openPullRequestIconColor: #3fb950;--component-explorer-gitlens-mergedPullRequestIconColor: #a371f7;--component-explorer-gitlens-unpublishedChangesIconColor: #35b15e;--component-explorer-gitlens-unpublishedCommitIconColor: #35b15e;--component-explorer-gitlens-unpulledChangesIconColor: #b15e35;--component-explorer-gitlens-decorations\\.addedForegroundColor: #81b88b;--component-explorer-gitlens-decorations\\.copiedForegroundColor: #73c991;--component-explorer-gitlens-decorations\\.deletedForegroundColor: #c74e39;--component-explorer-gitlens-decorations\\.ignoredForegroundColor: #8c8c8c;--component-explorer-gitlens-decorations\\.modifiedForegroundColor: #e2c08d;--component-explorer-gitlens-decorations\\.untrackedForegroundColor: #73c991;--component-explorer-gitlens-decorations\\.renamedForegroundColor: #73c991;--component-explorer-gitlens-decorations\\.branchAheadForegroundColor: #35b15e;--component-explorer-gitlens-decorations\\.branchBehindForegroundColor: #b15e35;--component-explorer-gitlens-decorations\\.branchDivergedForegroundColor: #d8af1b;--component-explorer-gitlens-decorations\\.branchMissingUpstreamForegroundColor: #c74e39;--component-explorer-gitlens-decorations\\.statusMergingOrRebasingConflictForegroundColor: #c74e39;--component-explorer-gitlens-decorations\\.statusMergingOrRebasingForegroundColor: #d8af1b;--component-explorer-gitlens-decorations\\.workspaceRepoMissingForegroundColor: #909090;--component-explorer-gitlens-decorations\\.workspaceCurrentForegroundColor: #35b15e;--component-explorer-gitlens-decorations\\.workspaceRepoOpenForegroundColor: #35b15e;--component-explorer-gitlens-decorations\\.worktreeHasUncommittedChangesForegroundColor: #e2c08d;--component-explorer-gitlens-decorations\\.worktreeMissingForegroundColor: #c74e39;--component-explorer-gitlens-graphLane1Color: #15a0bf;--component-explorer-gitlens-graphLane2Color: #0669f7;--component-explorer-gitlens-graphLane3Color: #8e00c2;--component-explorer-gitlens-graphLane4Color: #c517b6;--component-explorer-gitlens-graphLane5Color: #d90171;--component-explorer-gitlens-graphLane6Color: #cd0101;--component-explorer-gitlens-graphLane7Color: #f25d2e;--component-explorer-gitlens-graphLane8Color: #f2ca33;--component-explorer-gitlens-graphLane9Color: #7bd938;--component-explorer-gitlens-graphLane10Color: #2ece9d;--component-explorer-gitlens-graphChangesColumnAddedColor: #347d39;--component-explorer-gitlens-graphChangesColumnDeletedColor: #c93c37;--component-explorer-gitlens-graphMinimapMarkerHeadColor: #05e617;--component-explorer-gitlens-graphScrollMarkerHeadColor: #05e617;--component-explorer-gitlens-graphMinimapMarkerUpstreamColor: #09ae17;--component-explorer-gitlens-graphScrollMarkerUpstreamColor: #09ae17;--component-explorer-gitlens-graphMinimapMarkerHighlightsColor: #fbff0a;--component-explorer-gitlens-graphScrollMarkerHighlightsColor: #fbff0a;--component-explorer-gitlens-graphMinimapMarkerLocalBranchesColor: #3087cf;--component-explorer-gitlens-graphScrollMarkerLocalBranchesColor: #3087cf;--component-explorer-gitlens-graphMinimapMarkerPullRequestsColor: #c76801;--component-explorer-gitlens-graphScrollMarkerPullRequestsColor: #c76801;--component-explorer-gitlens-graphMinimapMarkerRemoteBranchesColor: #2b5e88;--component-explorer-gitlens-graphScrollMarkerRemoteBranchesColor: #2b5e88;--component-explorer-gitlens-graphMinimapMarkerStashesColor: #b34db3;--component-explorer-gitlens-graphScrollMarkerStashesColor: #b34db3;--component-explorer-gitlens-graphMinimapMarkerTagsColor: #6b562e;--component-explorer-gitlens-graphScrollMarkerTagsColor: #6b562e;--component-explorer-gitlens-launchpadIndicatorMergeableColor: #3fb950;--component-explorer-gitlens-launchpadIndicatorMergeableHoverColor: #3fb950;--component-explorer-gitlens-launchpadIndicatorBlockedColor: #c74e39;--component-explorer-gitlens-launchpadIndicatorBlockedHoverColor: #c74e39;--component-explorer-gitlens-launchpadIndicatorAttentionColor: #d8af1b;--component-explorer-gitlens-launchpadIndicatorAttentionHoverColor: #d8af1b;--component-explorer-issues-newIssueDecoration: rgba(255, 255, 255, .28);--component-explorer-issues-open: #3fb950;--component-explorer-issues-closed: #8957e5;--component-explorer-github-issues\\.closed: #8957e5;--component-explorer-pullRequests-merged: #8957e5;--component-explorer-pullRequests-draft: #6e7681;--component-explorer-pullRequests-open: #3fb950;--component-explorer-pullRequests-closed: #cb2431;--component-explorer-pullRequests-notification: #59a4f9;--component-explorer-testExplorer-errorDecorationBackground: #5a1d1d;--component-explorer-remoteHub-decorations\\.addedForegroundColor: #81b88b;--component-explorer-remoteHub-decorations\\.modifiedForegroundColor: #e2c08d;--component-explorer-remoteHub-decorations\\.deletedForegroundColor: #c74e39;--component-explorer-remoteHub-decorations\\.submoduleForegroundColor: #8db9e2;--component-explorer-remoteHub-decorations\\.conflictForegroundColor: #e4676b;--component-explorer-remoteHub-decorations\\.incomingAddedForegroundColor: #81b88b;--component-explorer-remoteHub-decorations\\.incomingModifiedForegroundColor: #e2c08d;--component-explorer-remoteHub-decorations\\.incomingDeletedForegroundColor: #c74e39;--component-explorer-remoteHub-decorations\\.incomingRenamedForegroundColor: #73c991;--component-explorer-remoteHub-decorations\\.possibleConflictForegroundColor: #cca700;--component-explorer-remoteHub-decorations\\.ignoredResourceForeground: #8c8c8c;--component-explorer-remoteHub-decorations\\.workspaceRepositoriesView\\.hasUncommittedChangesForegroundColor: #e2c08d;--component-explorer-editor-font-feature-settings: "liga" on,"calt" on}', st = '.vscode-theme.default-light-plus{--component-explorer-font-family: "Segoe WPC", "Segoe UI", sans-serif;--component-explorer-font-weight: normal;--component-explorer-font-size: 13px;--component-explorer-editor-font-family: "Cascadia Code", Consolas, "Courier New", monospace;--component-explorer-editor-font-weight: normal;--component-explorer-editor-font-size: 14px;--component-explorer-foreground: #616161;--component-explorer-disabledForeground: rgba(97, 97, 97, .5);--component-explorer-errorForeground: #a1260d;--component-explorer-descriptionForeground: #717171;--component-explorer-icon-foreground: #424242;--component-explorer-focusBorder: #0090f1;--component-explorer-textLink-foreground: #006ab1;--component-explorer-textLink-activeForeground: #006ab1;--component-explorer-textSeparator-foreground: rgba(0, 0, 0, .18);--component-explorer-textPreformat-foreground: #a31515;--component-explorer-textPreformat-background: rgba(0, 0, 0, .1);--component-explorer-textBlockQuote-background: #f2f2f2;--component-explorer-textBlockQuote-border: rgba(0, 122, 204, .5);--component-explorer-textCodeBlock-background: rgba(220, 220, 220, .4);--component-explorer-sash-hoverBorder: #0090f1;--component-explorer-badge-background: #c4c4c4;--component-explorer-badge-foreground: #333333;--component-explorer-activityWarningBadge-foreground: #ffffff;--component-explorer-activityWarningBadge-background: #b27c00;--component-explorer-activityErrorBadge-foreground: #ffffff;--component-explorer-activityErrorBadge-background: #e51400;--component-explorer-scrollbar-shadow: #dddddd;--component-explorer-scrollbarSlider-background: rgba(100, 100, 100, .4);--component-explorer-scrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--component-explorer-scrollbarSlider-activeBackground: rgba(0, 0, 0, .6);--component-explorer-progressBar-background: #0e70c0;--component-explorer-chart-line: #236b8e;--component-explorer-chart-axis: rgba(0, 0, 0, .6);--component-explorer-chart-guide: rgba(0, 0, 0, .2);--component-explorer-editor-background: #ffffff;--component-explorer-editor-foreground: #000000;--component-explorer-editorStickyScroll-background: #ffffff;--component-explorer-editorStickyScrollGutter-background: #ffffff;--component-explorer-editorStickyScrollHover-background: #f0f0f0;--component-explorer-editorStickyScroll-shadow: #dddddd;--component-explorer-editorWidget-background: #f3f3f3;--component-explorer-editorWidget-foreground: #616161;--component-explorer-editorWidget-border: #c8c8c8;--component-explorer-editorError-foreground: #e51400;--component-explorer-editorWarning-foreground: #bf8803;--component-explorer-editorInfo-foreground: #0063d3;--component-explorer-editorHint-foreground: #6c6c6c;--component-explorer-editorLink-activeForeground: #0000ff;--component-explorer-editor-selectionBackground: #add6ff;--component-explorer-editor-inactiveSelectionBackground: #e5ebf1;--component-explorer-editor-selectionHighlightBackground: rgba(173, 214, 255, .5);--component-explorer-editor-compositionBorder: #000000;--component-explorer-editor-findMatchBackground: #a8ac94;--component-explorer-editor-findMatchHighlightBackground: rgba(234, 92, 0, .33);--component-explorer-editor-findRangeHighlightBackground: rgba(180, 180, 180, .3);--component-explorer-editor-hoverHighlightBackground: rgba(173, 214, 255, .15);--component-explorer-editorHoverWidget-background: #f3f3f3;--component-explorer-editorHoverWidget-foreground: #616161;--component-explorer-editorHoverWidget-border: #c8c8c8;--component-explorer-editorHoverWidget-statusBarBackground: #e7e7e7;--component-explorer-editorInlayHint-foreground: #969696;--component-explorer-editorInlayHint-background: rgba(196, 196, 196, .1);--component-explorer-editorInlayHint-typeForeground: #969696;--component-explorer-editorInlayHint-typeBackground: rgba(196, 196, 196, .1);--component-explorer-editorInlayHint-parameterForeground: #969696;--component-explorer-editorInlayHint-parameterBackground: rgba(196, 196, 196, .1);--component-explorer-editorLightBulb-foreground: #ddb100;--component-explorer-editorLightBulbAutoFix-foreground: #007acc;--component-explorer-editorLightBulbAi-foreground: #ddb100;--component-explorer-editor-snippetTabstopHighlightBackground: rgba(10, 50, 100, .2);--component-explorer-editor-snippetFinalTabstopHighlightBorder: rgba(10, 50, 100, .5);--component-explorer-diffEditor-insertedTextBackground: rgba(23, 149, 44, .37);--component-explorer-diffEditor-removedTextBackground: rgba(255, 0, 0, .35);--component-explorer-diffEditor-insertedLineBackground: rgba(155, 185, 85, .2);--component-explorer-diffEditor-removedLineBackground: rgba(255, 0, 0, .2);--component-explorer-diffEditor-diagonalFill: rgba(34, 34, 34, .2);--component-explorer-diffEditor-unchangedRegionBackground: #f8f8f8;--component-explorer-diffEditor-unchangedRegionForeground: #616161;--component-explorer-diffEditor-unchangedCodeBackground: rgba(184, 184, 184, .16);--component-explorer-widget-shadow: rgba(0, 0, 0, .16);--component-explorer-widget-border: #d4d4d4;--component-explorer-toolbar-hoverBackground: rgba(184, 184, 184, .31);--component-explorer-toolbar-activeBackground: rgba(166, 166, 166, .31);--component-explorer-breadcrumb-foreground: rgba(97, 97, 97, .8);--component-explorer-breadcrumb-background: #ffffff;--component-explorer-breadcrumb-focusForeground: #4e4e4e;--component-explorer-breadcrumb-activeSelectionForeground: #4e4e4e;--component-explorer-breadcrumbPicker-background: #f3f3f3;--component-explorer-merge-currentHeaderBackground: rgba(64, 200, 174, .5);--component-explorer-merge-currentContentBackground: rgba(64, 200, 174, .2);--component-explorer-merge-incomingHeaderBackground: rgba(64, 166, 255, .5);--component-explorer-merge-incomingContentBackground: rgba(64, 166, 255, .2);--component-explorer-merge-commonHeaderBackground: rgba(96, 96, 96, .4);--component-explorer-merge-commonContentBackground: rgba(96, 96, 96, .16);--component-explorer-editorOverviewRuler-currentContentForeground: rgba(64, 200, 174, .5);--component-explorer-editorOverviewRuler-incomingContentForeground: rgba(64, 166, 255, .5);--component-explorer-editorOverviewRuler-commonContentForeground: rgba(96, 96, 96, .4);--component-explorer-editorOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--component-explorer-editorOverviewRuler-selectionHighlightForeground: rgba(160, 160, 160, .8);--component-explorer-problemsErrorIcon-foreground: #e51400;--component-explorer-problemsWarningIcon-foreground: #bf8803;--component-explorer-problemsInfoIcon-foreground: #0063d3;--component-explorer-minimap-findMatchHighlight: rgba(234, 92, 0, .33);--component-explorer-minimap-selectionOccurrenceHighlight: rgba(173, 214, 255, .5);--component-explorer-minimap-selectionHighlight: #add6ff;--component-explorer-minimap-infoHighlight: #0063d3;--component-explorer-minimap-warningHighlight: #bf8803;--component-explorer-minimap-errorHighlight: rgba(255, 18, 18, .7);--component-explorer-minimap-foregroundOpacity: #000000;--component-explorer-minimapSlider-background: rgba(100, 100, 100, .2);--component-explorer-minimapSlider-hoverBackground: rgba(100, 100, 100, .35);--component-explorer-minimapSlider-activeBackground: rgba(0, 0, 0, .3);--component-explorer-charts-foreground: #616161;--component-explorer-charts-lines: rgba(97, 97, 97, .5);--component-explorer-charts-red: #e51400;--component-explorer-charts-blue: #0063d3;--component-explorer-charts-yellow: #bf8803;--component-explorer-charts-orange: rgba(234, 92, 0, .33);--component-explorer-charts-green: #388a34;--component-explorer-charts-purple: #652d90;--component-explorer-list-focusOutline: #0090f1;--component-explorer-list-focusAndSelectionOutline: #90c2f9;--component-explorer-list-activeSelectionBackground: #0060c0;--component-explorer-list-activeSelectionForeground: #ffffff;--component-explorer-list-activeSelectionIconForeground: #ffffff;--component-explorer-list-inactiveSelectionBackground: #e4e6f1;--component-explorer-list-hoverBackground: #e8e8e8;--component-explorer-list-dropBackground: #d6ebff;--component-explorer-list-dropBetweenBackground: #424242;--component-explorer-list-highlightForeground: #0066bf;--component-explorer-list-focusHighlightForeground: #bbe7ff;--component-explorer-list-invalidItemForeground: #b89500;--component-explorer-list-errorForeground: #b01011;--component-explorer-list-warningForeground: #855f00;--component-explorer-listFilterWidget-background: #f3f3f3;--component-explorer-listFilterWidget-outline: rgba(0, 0, 0, 0);--component-explorer-listFilterWidget-noMatchesOutline: #be1100;--component-explorer-listFilterWidget-shadow: rgba(0, 0, 0, .16);--component-explorer-list-filterMatchBackground: rgba(234, 92, 0, .33);--component-explorer-list-deemphasizedForeground: #8e8e90;--component-explorer-tree-indentGuidesStroke: #a9a9a9;--component-explorer-tree-inactiveIndentGuidesStroke: rgba(169, 169, 169, .4);--component-explorer-tree-tableColumnsBorder: rgba(97, 97, 97, .13);--component-explorer-tree-tableOddRowsBackground: rgba(97, 97, 97, .04);--component-explorer-editorActionList-background: #f3f3f3;--component-explorer-editorActionList-foreground: #616161;--component-explorer-editorActionList-focusForeground: #ffffff;--component-explorer-editorActionList-focusBackground: #0060c0;--component-explorer-input-background: #ffffff;--component-explorer-input-foreground: #616161;--component-explorer-inputOption-activeBorder: #007acc;--component-explorer-inputOption-hoverBackground: rgba(184, 184, 184, .31);--component-explorer-inputOption-activeBackground: rgba(0, 144, 241, .2);--component-explorer-inputOption-activeForeground: #000000;--component-explorer-input-placeholderForeground: #767676;--component-explorer-inputValidation-infoBackground: #d6ecf2;--component-explorer-inputValidation-infoBorder: #007acc;--component-explorer-inputValidation-warningBackground: #f6f5d2;--component-explorer-inputValidation-warningBorder: #b89500;--component-explorer-inputValidation-errorBackground: #f2dede;--component-explorer-inputValidation-errorBorder: #be1100;--component-explorer-dropdown-background: #ffffff;--component-explorer-dropdown-foreground: #616161;--component-explorer-dropdown-border: #cecece;--component-explorer-button-foreground: #ffffff;--component-explorer-button-separator: rgba(255, 255, 255, .4);--component-explorer-button-background: #007acc;--component-explorer-button-hoverBackground: #0062a3;--component-explorer-button-secondaryForeground: #616161;--component-explorer-button-secondaryBorder: rgba(97, 97, 97, .2);--component-explorer-button-secondaryHoverBackground: #e8e8e8;--component-explorer-radio-activeForeground: #000000;--component-explorer-radio-activeBackground: rgba(0, 144, 241, .2);--component-explorer-radio-activeBorder: #007acc;--component-explorer-radio-inactiveBorder: rgba(0, 0, 0, .2);--component-explorer-radio-inactiveHoverBackground: rgba(184, 184, 184, .31);--component-explorer-checkbox-background: #ffffff;--component-explorer-checkbox-selectBackground: #f3f3f3;--component-explorer-checkbox-foreground: #616161;--component-explorer-checkbox-border: #919191;--component-explorer-checkbox-selectBorder: #424242;--component-explorer-checkbox-disabled\\.background: #cacaca;--component-explorer-checkbox-disabled\\.foreground: #959595;--component-explorer-keybindingLabel-background: rgba(221, 221, 221, .4);--component-explorer-keybindingLabel-foreground: #555555;--component-explorer-keybindingLabel-border: rgba(204, 204, 204, .4);--component-explorer-keybindingLabel-bottomBorder: rgba(187, 187, 187, .4);--component-explorer-menu-border: #d4d4d4;--component-explorer-menu-foreground: #616161;--component-explorer-menu-background: #ffffff;--component-explorer-menu-selectionForeground: #ffffff;--component-explorer-menu-selectionBackground: #0060c0;--component-explorer-menu-separatorBackground: #d4d4d4;--component-explorer-quickInput-background: #f3f3f3;--component-explorer-quickInput-foreground: #616161;--component-explorer-quickInputTitle-background: rgba(0, 0, 0, .06);--component-explorer-pickerGroup-foreground: #0066bf;--component-explorer-pickerGroup-border: #cccedb;--component-explorer-quickInputList-focusForeground: #ffffff;--component-explorer-quickInputList-focusIconForeground: #ffffff;--component-explorer-quickInputList-focusBackground: #0060c0;--component-explorer-search-resultsInfoForeground: #616161;--component-explorer-searchEditor-findMatchBackground: rgba(234, 92, 0, .22);--component-explorer-editor-lineHighlightBorder: #eeeeee;--component-explorer-editor-rangeHighlightBackground: rgba(253, 255, 0, .2);--component-explorer-editor-symbolHighlightBackground: rgba(234, 92, 0, .33);--component-explorer-editorCursor-foreground: #000000;--component-explorer-editorMultiCursor-primary\\.foreground: #000000;--component-explorer-editorMultiCursor-secondary\\.foreground: #000000;--component-explorer-editorWhitespace-foreground: rgba(51, 51, 51, .2);--component-explorer-editorLineNumber-foreground: #237893;--component-explorer-editorIndentGuide-background: rgba(51, 51, 51, .2);--component-explorer-editorIndentGuide-activeBackground: rgba(51, 51, 51, .2);--component-explorer-editorIndentGuide-background1: #d3d3d3;--component-explorer-editorIndentGuide-background2: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-background3: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-background4: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-background5: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-background6: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-activeBackground1: #939393;--component-explorer-editorIndentGuide-activeBackground2: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-activeBackground3: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-activeBackground4: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-activeBackground5: rgba(0, 0, 0, 0);--component-explorer-editorIndentGuide-activeBackground6: rgba(0, 0, 0, 0);--component-explorer-editorActiveLineNumber-foreground: #0b216f;--component-explorer-editorLineNumber-activeForeground: #0b216f;--component-explorer-editorRuler-foreground: rgba(177, 177, 177, .17);--component-explorer-editorCodeLens-foreground: #919191;--component-explorer-editorBracketMatch-background: rgba(0, 100, 0, .1);--component-explorer-editorBracketMatch-border: #b9b9b9;--component-explorer-editorOverviewRuler-border: rgba(127, 127, 127, .3);--component-explorer-editorGutter-background: #ffffff;--component-explorer-editorUnnecessaryCode-opacity: rgba(0, 0, 0, .47);--component-explorer-editorGhostText-foreground: rgba(0, 0, 0, .47);--component-explorer-editorOverviewRuler-rangeHighlightForeground: rgba(0, 122, 204, .6);--component-explorer-editorOverviewRuler-errorForeground: rgba(255, 18, 18, .7);--component-explorer-editorOverviewRuler-warningForeground: #bf8803;--component-explorer-editorOverviewRuler-infoForeground: #0063d3;--component-explorer-editorBracketHighlight-foreground1: #0431fa;--component-explorer-editorBracketHighlight-foreground2: #319331;--component-explorer-editorBracketHighlight-foreground3: #7b3814;--component-explorer-editorBracketHighlight-foreground4: rgba(0, 0, 0, 0);--component-explorer-editorBracketHighlight-foreground5: rgba(0, 0, 0, 0);--component-explorer-editorBracketHighlight-foreground6: rgba(0, 0, 0, 0);--component-explorer-editorBracketHighlight-unexpectedBracket\\.foreground: rgba(255, 18, 18, .8);--component-explorer-editorBracketPairGuide-background1: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-background2: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-background3: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-background4: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-background5: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-background6: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground1: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground2: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground3: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground4: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground5: rgba(0, 0, 0, 0);--component-explorer-editorBracketPairGuide-activeBackground6: rgba(0, 0, 0, 0);--component-explorer-editorUnicodeHighlight-border: #bf8803;--component-explorer-diffEditor-move\\.border: rgba(139, 139, 139, .61);--component-explorer-diffEditor-moveActive\\.border: #ffa500;--component-explorer-diffEditor-unchangedRegionShadow: rgba(115, 115, 115, .75);--component-explorer-editorOverviewRuler-bracketMatchForeground: #a0a0a0;--component-explorer-actionBar-toggledBackground: #dddddd;--component-explorer-symbolIcon-arrayForeground: #616161;--component-explorer-symbolIcon-booleanForeground: #616161;--component-explorer-symbolIcon-classForeground: #d67e00;--component-explorer-symbolIcon-colorForeground: #616161;--component-explorer-symbolIcon-constantForeground: #616161;--component-explorer-symbolIcon-constructorForeground: #652d90;--component-explorer-symbolIcon-enumeratorForeground: #d67e00;--component-explorer-symbolIcon-enumeratorMemberForeground: #007acc;--component-explorer-symbolIcon-eventForeground: #d67e00;--component-explorer-symbolIcon-fieldForeground: #007acc;--component-explorer-symbolIcon-fileForeground: #616161;--component-explorer-symbolIcon-folderForeground: #616161;--component-explorer-symbolIcon-functionForeground: #652d90;--component-explorer-symbolIcon-interfaceForeground: #007acc;--component-explorer-symbolIcon-keyForeground: #616161;--component-explorer-symbolIcon-keywordForeground: #616161;--component-explorer-symbolIcon-methodForeground: #652d90;--component-explorer-symbolIcon-moduleForeground: #616161;--component-explorer-symbolIcon-namespaceForeground: #616161;--component-explorer-symbolIcon-nullForeground: #616161;--component-explorer-symbolIcon-numberForeground: #616161;--component-explorer-symbolIcon-objectForeground: #616161;--component-explorer-symbolIcon-operatorForeground: #616161;--component-explorer-symbolIcon-packageForeground: #616161;--component-explorer-symbolIcon-propertyForeground: #616161;--component-explorer-symbolIcon-referenceForeground: #616161;--component-explorer-symbolIcon-snippetForeground: #616161;--component-explorer-symbolIcon-stringForeground: #616161;--component-explorer-symbolIcon-structForeground: #616161;--component-explorer-symbolIcon-textForeground: #616161;--component-explorer-symbolIcon-typeParameterForeground: #616161;--component-explorer-symbolIcon-unitForeground: #616161;--component-explorer-symbolIcon-variableForeground: #007acc;--component-explorer-peekViewTitle-background: #f3f3f3;--component-explorer-peekViewTitleLabel-foreground: #000000;--component-explorer-peekViewTitleDescription-foreground: #616161;--component-explorer-peekView-border: #0063d3;--component-explorer-peekViewResult-background: #f3f3f3;--component-explorer-peekViewResult-lineForeground: #646465;--component-explorer-peekViewResult-fileForeground: #1e1e1e;--component-explorer-peekViewResult-selectionBackground: rgba(51, 153, 255, .2);--component-explorer-peekViewResult-selectionForeground: #6c6c6c;--component-explorer-peekViewEditor-background: #f2f8fc;--component-explorer-peekViewEditorGutter-background: #f2f8fc;--component-explorer-peekViewEditorStickyScroll-background: #f2f8fc;--component-explorer-peekViewEditorStickyScrollGutter-background: #f2f8fc;--component-explorer-peekViewResult-matchHighlightBackground: rgba(234, 92, 0, .3);--component-explorer-peekViewEditor-matchHighlightBackground: rgba(245, 216, 2, .87);--component-explorer-editorMarkerNavigationError-background: #e51400;--component-explorer-editorMarkerNavigationError-headerBackground: rgba(229, 20, 0, .1);--component-explorer-editorMarkerNavigationWarning-background: #bf8803;--component-explorer-editorMarkerNavigationWarning-headerBackground: rgba(191, 136, 3, .1);--component-explorer-editorMarkerNavigationInfo-background: #0063d3;--component-explorer-editorMarkerNavigationInfo-headerBackground: rgba(0, 99, 211, .1);--component-explorer-editorMarkerNavigation-background: #ffffff;--component-explorer-editor-foldBackground: rgba(173, 214, 255, .3);--component-explorer-editor-foldPlaceholderForeground: #808080;--component-explorer-editorGutter-foldingControlForeground: #424242;--component-explorer-editorSuggestWidget-background: #f3f3f3;--component-explorer-editorSuggestWidget-border: #c8c8c8;--component-explorer-editorSuggestWidget-foreground: #000000;--component-explorer-editorSuggestWidget-selectedForeground: #ffffff;--component-explorer-editorSuggestWidget-selectedIconForeground: #ffffff;--component-explorer-editorSuggestWidget-selectedBackground: #0060c0;--component-explorer-editorSuggestWidget-highlightForeground: #0066bf;--component-explorer-editorSuggestWidget-focusHighlightForeground: #bbe7ff;--component-explorer-editorSuggestWidgetStatus-foreground: rgba(0, 0, 0, .5);--component-explorer-inlineEdit-originalBackground: rgba(255, 0, 0, .07);--component-explorer-inlineEdit-modifiedBackground: rgba(23, 149, 44, .11);--component-explorer-inlineEdit-originalChangedLineBackground: rgba(255, 0, 0, .28);--component-explorer-inlineEdit-originalChangedTextBackground: rgba(255, 0, 0, .28);--component-explorer-inlineEdit-modifiedChangedLineBackground: rgba(155, 185, 85, .14);--component-explorer-inlineEdit-modifiedChangedTextBackground: rgba(23, 149, 44, .26);--component-explorer-inlineEdit-gutterIndicator\\.primaryForeground: #ffffff;--component-explorer-inlineEdit-gutterIndicator\\.primaryBorder: #007acc;--component-explorer-inlineEdit-gutterIndicator\\.primaryBackground: rgba(0, 122, 204, .5);--component-explorer-inlineEdit-gutterIndicator\\.secondaryForeground: #616161;--component-explorer-inlineEdit-gutterIndicator\\.successfulForeground: #ffffff;--component-explorer-inlineEdit-gutterIndicator\\.successfulBorder: #007acc;--component-explorer-inlineEdit-gutterIndicator\\.successfulBackground: #007acc;--component-explorer-inlineEdit-gutterIndicator\\.background: rgba(95, 95, 95, .09);--component-explorer-inlineEdit-originalBorder: rgba(255, 0, 0, .35);--component-explorer-inlineEdit-modifiedBorder: rgba(9, 60, 18, .37);--component-explorer-inlineEdit-tabWillAcceptModifiedBorder: rgba(9, 60, 18, .37);--component-explorer-inlineEdit-tabWillAcceptOriginalBorder: rgba(255, 0, 0, .35);--component-explorer-editor-linkedEditingBackground: rgba(255, 0, 0, .3);--component-explorer-editor-wordHighlightBackground: rgba(87, 87, 87, .25);--component-explorer-editor-wordHighlightStrongBackground: rgba(14, 99, 156, .25);--component-explorer-editor-wordHighlightTextBackground: rgba(87, 87, 87, .25);--component-explorer-editorOverviewRuler-wordHighlightForeground: rgba(160, 160, 160, .8);--component-explorer-editorOverviewRuler-wordHighlightStrongForeground: rgba(192, 160, 192, .8);--component-explorer-editorOverviewRuler-wordHighlightTextForeground: rgba(160, 160, 160, .8);--component-explorer-editorHoverWidget-highlightForeground: #0066bf;--component-explorer-editor-placeholder\\.foreground: rgba(0, 0, 0, .47);--component-explorer-tab-activeBackground: #ffffff;--component-explorer-tab-unfocusedActiveBackground: #ffffff;--component-explorer-tab-inactiveBackground: #ececec;--component-explorer-tab-unfocusedInactiveBackground: #ececec;--component-explorer-tab-activeForeground: #333333;--component-explorer-tab-inactiveForeground: rgba(51, 51, 51, .7);--component-explorer-tab-unfocusedActiveForeground: rgba(51, 51, 51, .7);--component-explorer-tab-unfocusedInactiveForeground: rgba(51, 51, 51, .35);--component-explorer-tab-border: #f3f3f3;--component-explorer-tab-lastPinnedBorder: rgba(97, 97, 97, .19);--component-explorer-tab-selectedBackground: rgba(255, 255, 255, .65);--component-explorer-tab-selectedForeground: rgba(51, 51, 51, .7);--component-explorer-tab-dragAndDropBorder: #333333;--component-explorer-tab-activeModifiedBorder: #33aaee;--component-explorer-tab-inactiveModifiedBorder: rgba(51, 170, 238, .5);--component-explorer-tab-unfocusedActiveModifiedBorder: rgba(51, 170, 238, .7);--component-explorer-tab-unfocusedInactiveModifiedBorder: rgba(51, 170, 238, .25);--component-explorer-editorPane-background: #ffffff;--component-explorer-editorGroupHeader-tabsBackground: #f3f3f3;--component-explorer-editorGroupHeader-noTabsBackground: #ffffff;--component-explorer-editorGroup-border: #e7e7e7;--component-explorer-editorGroup-dropBackground: rgba(38, 119, 203, .18);--component-explorer-editorGroup-dropIntoPromptForeground: #616161;--component-explorer-editorGroup-dropIntoPromptBackground: #f3f3f3;--component-explorer-sideBySideEditor-horizontalBorder: #e7e7e7;--component-explorer-sideBySideEditor-verticalBorder: #e7e7e7;--component-explorer-banner-background: #004386;--component-explorer-banner-foreground: #ffffff;--component-explorer-banner-iconForeground: #0063d3;--component-explorer-statusBar-foreground: #ffffff;--component-explorer-statusBar-noFolderForeground: #ffffff;--component-explorer-statusBar-background: #007acc;--component-explorer-statusBar-noFolderBackground: #68217a;--component-explorer-statusBar-focusBorder: #ffffff;--component-explorer-statusBarItem-activeBackground: rgba(255, 255, 255, .18);--component-explorer-statusBarItem-focusBorder: #ffffff;--component-explorer-statusBarItem-hoverBackground: rgba(0, 0, 0, .12);--component-explorer-statusBarItem-hoverForeground: #ffffff;--component-explorer-statusBarItem-compactHoverBackground: rgba(0, 0, 0, .12);--component-explorer-statusBarItem-prominentForeground: #ffffff;--component-explorer-statusBarItem-prominentBackground: rgba(0, 0, 0, .5);--component-explorer-statusBarItem-prominentHoverForeground: #ffffff;--component-explorer-statusBarItem-prominentHoverBackground: rgba(0, 0, 0, .12);--component-explorer-statusBarItem-errorBackground: #c72e0f;--component-explorer-statusBarItem-errorForeground: #ffffff;--component-explorer-statusBarItem-errorHoverForeground: #ffffff;--component-explorer-statusBarItem-errorHoverBackground: rgba(0, 0, 0, .12);--component-explorer-statusBarItem-warningBackground: #725102;--component-explorer-statusBarItem-warningForeground: #ffffff;--component-explorer-statusBarItem-warningHoverForeground: #ffffff;--component-explorer-statusBarItem-warningHoverBackground: rgba(0, 0, 0, .12);--component-explorer-activityBar-background: #2c2c2c;--component-explorer-activityBar-foreground: #ffffff;--component-explorer-activityBar-inactiveForeground: rgba(255, 255, 255, .4);--component-explorer-activityBar-activeBorder: #ffffff;--component-explorer-activityBar-dropBorder: #ffffff;--component-explorer-activityBarBadge-background: #007acc;--component-explorer-activityBarBadge-foreground: #ffffff;--component-explorer-activityBarTop-foreground: #424242;--component-explorer-activityBarTop-activeBorder: #424242;--component-explorer-activityBarTop-inactiveForeground: rgba(66, 66, 66, .75);--component-explorer-activityBarTop-dropBorder: #424242;--component-explorer-panel-background: #ffffff;--component-explorer-panel-border: rgba(128, 128, 128, .35);--component-explorer-panelTitle-activeForeground: #424242;--component-explorer-panelTitle-inactiveForeground: rgba(66, 66, 66, .75);--component-explorer-panelTitle-activeBorder: #424242;--component-explorer-panelTitleBadge-background: #007acc;--component-explorer-panelTitleBadge-foreground: #ffffff;--component-explorer-panelInput-border: #dddddd;--component-explorer-panel-dropBorder: #424242;--component-explorer-panelSection-dropBackground: rgba(38, 119, 203, .18);--component-explorer-panelSectionHeader-background: rgba(128, 128, 128, .2);--component-explorer-panelSection-border: rgba(128, 128, 128, .35);--component-explorer-panelStickyScroll-background: #ffffff;--component-explorer-panelStickyScroll-shadow: #dddddd;--component-explorer-profileBadge-background: #c4c4c4;--component-explorer-profileBadge-foreground: #333333;--component-explorer-statusBarItem-remoteBackground: #16825d;--component-explorer-statusBarItem-remoteForeground: #ffffff;--component-explorer-statusBarItem-remoteHoverForeground: #ffffff;--component-explorer-statusBarItem-remoteHoverBackground: rgba(0, 0, 0, .12);--component-explorer-statusBarItem-offlineBackground: #6c1717;--component-explorer-statusBarItem-offlineForeground: #ffffff;--component-explorer-statusBarItem-offlineHoverForeground: #ffffff;--component-explorer-statusBarItem-offlineHoverBackground: rgba(0, 0, 0, .12);--component-explorer-extensionBadge-remoteBackground: #007acc;--component-explorer-extensionBadge-remoteForeground: #ffffff;--component-explorer-sideBar-background: #f3f3f3;--component-explorer-sideBarTitle-background: #f3f3f3;--component-explorer-sideBarTitle-foreground: #6f6f6f;--component-explorer-sideBar-dropBackground: rgba(38, 119, 203, .18);--component-explorer-sideBarSectionHeader-background: rgba(0, 0, 0, 0);--component-explorer-sideBarSectionHeader-border: rgba(97, 97, 97, .19);--component-explorer-sideBarActivityBarTop-border: rgba(97, 97, 97, .19);--component-explorer-sideBarStickyScroll-background: #f3f3f3;--component-explorer-sideBarStickyScroll-shadow: #dddddd;--component-explorer-titleBar-activeForeground: #333333;--component-explorer-titleBar-inactiveForeground: rgba(51, 51, 51, .6);--component-explorer-titleBar-activeBackground: #dddddd;--component-explorer-titleBar-inactiveBackground: rgba(221, 221, 221, .6);--component-explorer-menubar-selectionForeground: #333333;--component-explorer-menubar-selectionBackground: rgba(184, 184, 184, .31);--component-explorer-commandCenter-foreground: #333333;--component-explorer-commandCenter-activeForeground: #333333;--component-explorer-commandCenter-inactiveForeground: rgba(51, 51, 51, .6);--component-explorer-commandCenter-background: rgba(0, 0, 0, .05);--component-explorer-commandCenter-activeBackground: rgba(0, 0, 0, .08);--component-explorer-commandCenter-border: rgba(51, 51, 51, .2);--component-explorer-commandCenter-activeBorder: rgba(51, 51, 51, .3);--component-explorer-commandCenter-inactiveBorder: rgba(51, 51, 51, .15);--component-explorer-notificationCenter-border: #d4d4d4;--component-explorer-notificationToast-border: #d4d4d4;--component-explorer-notifications-foreground: #616161;--component-explorer-notifications-background: #f3f3f3;--component-explorer-notificationLink-foreground: #006ab1;--component-explorer-notificationCenterHeader-background: #e7e7e7;--component-explorer-notifications-border: #e7e7e7;--component-explorer-notificationsErrorIcon-foreground: #e51400;--component-explorer-notificationsWarningIcon-foreground: #bf8803;--component-explorer-notificationsInfoIcon-foreground: #0063d3;--component-explorer-editorGutter-modifiedBackground: #2090d3;--component-explorer-editorGutter-modifiedSecondaryBackground: #aad8f2;--component-explorer-editorGutter-addedBackground: #48985d;--component-explorer-editorGutter-addedSecondaryBackground: #a7d5b3;--component-explorer-editorGutter-deletedBackground: #e51400;--component-explorer-editorGutter-deletedSecondaryBackground: #ff3d2b;--component-explorer-minimapGutter-modifiedBackground: #2090d3;--component-explorer-minimapGutter-addedBackground: #48985d;--component-explorer-minimapGutter-deletedBackground: #e51400;--component-explorer-editorOverviewRuler-modifiedForeground: rgba(32, 144, 211, .6);--component-explorer-editorOverviewRuler-addedForeground: rgba(72, 152, 93, .6);--component-explorer-editorOverviewRuler-deletedForeground: rgba(229, 20, 0, .6);--component-explorer-editorGutter-itemGlyphForeground: #000000;--component-explorer-editorGutter-itemBackground: #d5d8e9;--component-explorer-terminal-foreground: #333333;--component-explorer-terminal-selectionBackground: #add6ff;--component-explorer-terminal-inactiveSelectionBackground: #e5ebf1;--component-explorer-terminalCommandDecoration-defaultBackground: rgba(0, 0, 0, .25);--component-explorer-terminalCommandDecoration-successBackground: #2090d3;--component-explorer-terminalCommandDecoration-errorBackground: #e51400;--component-explorer-terminalOverviewRuler-cursorForeground: rgba(160, 160, 160, .8);--component-explorer-terminal-border: rgba(128, 128, 128, .35);--component-explorer-terminalOverviewRuler-border: rgba(127, 127, 127, .3);--component-explorer-terminal-findMatchBackground: #a8ac94;--component-explorer-terminal-hoverHighlightBackground: rgba(173, 214, 255, .07);--component-explorer-terminal-findMatchHighlightBackground: rgba(234, 92, 0, .33);--component-explorer-terminalOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--component-explorer-terminal-dropBackground: rgba(38, 119, 203, .18);--component-explorer-terminal-initialHintForeground: rgba(0, 0, 0, .47);--component-explorer-scmGraph-historyItemRefColor: #0063d3;--component-explorer-scmGraph-historyItemRemoteRefColor: #652d90;--component-explorer-scmGraph-historyItemBaseRefColor: #ea5c00;--component-explorer-scmGraph-historyItemHoverDefaultLabelForeground: #616161;--component-explorer-scmGraph-historyItemHoverDefaultLabelBackground: #c4c4c4;--component-explorer-scmGraph-historyItemHoverLabelForeground: #ffffff;--component-explorer-scmGraph-historyItemHoverAdditionsForeground: #587c0c;--component-explorer-scmGraph-historyItemHoverDeletionsForeground: #ad0707;--component-explorer-scmGraph-foreground1: #ffb000;--component-explorer-scmGraph-foreground2: #dc267f;--component-explorer-scmGraph-foreground3: #994f00;--component-explorer-scmGraph-foreground4: #40b0a6;--component-explorer-scmGraph-foreground5: #b66dff;--component-explorer-commentsView-resolvedIcon: rgba(97, 97, 97, .5);--component-explorer-commentsView-unresolvedIcon: #0090f1;--component-explorer-editorCommentsWidget-replyInputBackground: #f3f3f3;--component-explorer-editorCommentsWidget-resolvedBorder: rgba(97, 97, 97, .5);--component-explorer-editorCommentsWidget-unresolvedBorder: #0090f1;--component-explorer-editorCommentsWidget-rangeBackground: rgba(0, 144, 241, .1);--component-explorer-editorCommentsWidget-rangeActiveBackground: rgba(0, 144, 241, .1);--component-explorer-editorGutter-commentRangeForeground: #d5d8e9;--component-explorer-editorOverviewRuler-commentForeground: #d5d8e9;--component-explorer-editorOverviewRuler-commentUnresolvedForeground: #d5d8e9;--component-explorer-editorOverviewRuler-commentDraftForeground: #d5d8e9;--component-explorer-editorGutter-commentGlyphForeground: #000000;--component-explorer-editorGutter-commentUnresolvedGlyphForeground: #000000;--component-explorer-editorGutter-commentDraftGlyphForeground: #000000;--component-explorer-agentSessionReadIndicator-foreground: rgba(97, 97, 97, .15);--component-explorer-agentSessionSelectedBadge-border: rgba(255, 255, 255, .3);--component-explorer-agentSessionSelectedUnfocusedBadge-border: rgba(97, 97, 97, .3);--component-explorer-ports-iconRunningProcessForeground: #369432;--component-explorer-settings-headerForeground: #444444;--component-explorer-settings-settingsHeaderHoverForeground: rgba(68, 68, 68, .7);--component-explorer-settings-modifiedItemIndicator: #66afe0;--component-explorer-settings-headerBorder: rgba(128, 128, 128, .35);--component-explorer-settings-sashBorder: rgba(128, 128, 128, .35);--component-explorer-settings-dropdownBackground: #ffffff;--component-explorer-settings-dropdownForeground: #616161;--component-explorer-settings-dropdownBorder: #cecece;--component-explorer-settings-dropdownListBorder: #c8c8c8;--component-explorer-settings-checkboxBackground: #ffffff;--component-explorer-settings-checkboxForeground: #616161;--component-explorer-settings-checkboxBorder: #919191;--component-explorer-settings-textInputBackground: #ffffff;--component-explorer-settings-textInputForeground: #616161;--component-explorer-settings-textInputBorder: #cecece;--component-explorer-settings-numberInputBackground: #ffffff;--component-explorer-settings-numberInputForeground: #616161;--component-explorer-settings-numberInputBorder: #cecece;--component-explorer-settings-focusedRowBackground: rgba(232, 232, 232, .6);--component-explorer-settings-rowHoverBackground: rgba(232, 232, 232, .3);--component-explorer-settings-focusedRowBorder: #0090f1;--component-explorer-keybindingTable-headerBackground: rgba(97, 97, 97, .04);--component-explorer-keybindingTable-rowsBackground: rgba(97, 97, 97, .04);--component-explorer-extensionButton-foreground: #616161;--component-explorer-extensionButton-hoverBackground: #e8e8e8;--component-explorer-extensionButton-border: rgba(97, 97, 97, .2);--component-explorer-extensionButton-separator: rgba(255, 255, 255, .4);--component-explorer-extensionButton-prominentBackground: #007acc;--component-explorer-extensionButton-prominentForeground: #ffffff;--component-explorer-extensionButton-prominentHoverBackground: #0062a3;--component-explorer-debugToolBar-background: #f3f3f3;--component-explorer-debugIcon-startForeground: #388a34;--component-explorer-notebook-cellBorderColor: #e8e8e8;--component-explorer-notebook-focusedEditorBorder: #0090f1;--component-explorer-notebookStatusSuccessIcon-foreground: #388a34;--component-explorer-notebookEditorOverviewRuler-runningCellForeground: #388a34;--component-explorer-notebookStatusErrorIcon-foreground: #a1260d;--component-explorer-notebookStatusRunningIcon-foreground: #616161;--component-explorer-notebook-cellToolbarSeparator: rgba(128, 128, 128, .35);--component-explorer-notebook-selectedCellBackground: rgba(200, 221, 241, .31);--component-explorer-notebook-selectedCellBorder: #e8e8e8;--component-explorer-notebook-focusedCellBorder: #0090f1;--component-explorer-notebook-inactiveFocusedCellBorder: #e8e8e8;--component-explorer-notebook-cellStatusBarItemHoverBackground: rgba(0, 0, 0, .08);--component-explorer-notebook-cellInsertionIndicator: #0090f1;--component-explorer-notebookScrollbarSlider-background: rgba(100, 100, 100, .4);--component-explorer-notebookScrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--component-explorer-notebookScrollbarSlider-activeBackground: rgba(0, 0, 0, .6);--component-explorer-notebook-symbolHighlightBackground: rgba(253, 255, 0, .2);--component-explorer-notebook-cellEditorBackground: #f3f3f3;--component-explorer-notebook-editorBackground: #ffffff;--component-explorer-inlineChat-foreground: #616161;--component-explorer-inlineChat-background: #f3f3f3;--component-explorer-inlineChat-border: #c8c8c8;--component-explorer-inlineChat-shadow: rgba(0, 0, 0, .16);--component-explorer-inlineChatInput-border: #c8c8c8;--component-explorer-inlineChatInput-focusBorder: #0090f1;--component-explorer-inlineChatInput-placeholderForeground: #767676;--component-explorer-inlineChatInput-background: #ffffff;--component-explorer-inlineChatDiff-inserted: rgba(23, 149, 44, .19);--component-explorer-editorOverviewRuler-inlineChatInserted: rgba(23, 149, 44, .3);--component-explorer-editorMinimap-inlineChatInserted: rgba(23, 149, 44, .3);--component-explorer-inlineChatDiff-removed: rgba(255, 0, 0, .17);--component-explorer-editorOverviewRuler-inlineChatRemoved: rgba(255, 0, 0, .28);--component-explorer-multiDiffEditor-headerBackground: #ececec;--component-explorer-multiDiffEditor-background: #ffffff;--component-explorer-multiDiffEditor-border: #cccccc;--component-explorer-extensionIcon-verifiedForeground: #006ab1;--component-explorer-chat-requestBorder: rgba(0, 0, 0, .1);--component-explorer-chat-requestBackground: rgba(255, 255, 255, .62);--component-explorer-chat-slashCommandBackground: rgba(173, 206, 255, .48);--component-explorer-chat-slashCommandForeground: #26569e;--component-explorer-chat-avatarBackground: #f2f2f2;--component-explorer-chat-avatarForeground: #616161;--component-explorer-chat-editedFileForeground: #895503;--component-explorer-chat-requestCodeBorder: rgba(14, 99, 156, .25);--component-explorer-chat-requestBubbleBackground: rgba(173, 214, 255, .3);--component-explorer-chat-requestBubbleHoverBackground: rgba(173, 214, 255, .6);--component-explorer-chat-checkpointSeparator: #a9a9a9;--component-explorer-chat-linesAddedForeground: #107c10;--component-explorer-chat-linesRemovedForeground: #bc2f32;--component-explorer-chat-thinkingShimmer: #000000;--component-explorer-extensionIcon-starForeground: #df6100;--component-explorer-extensionIcon-preReleaseForeground: #1d9271;--component-explorer-extensionIcon-sponsorForeground: #b51e78;--component-explorer-extensionIcon-privateForeground: rgba(0, 0, 0, .38);--component-explorer-debugExceptionWidget-border: #a31515;--component-explorer-debugExceptionWidget-background: #f1dfde;--component-explorer-editor-inlineValuesForeground: rgba(0, 0, 0, .5);--component-explorer-editor-inlineValuesBackground: rgba(255, 200, 0, .2);--component-explorer-debugIcon-breakpointForeground: #e51400;--component-explorer-debugIcon-breakpointDisabledForeground: #848484;--component-explorer-debugIcon-breakpointUnverifiedForeground: #848484;--component-explorer-debugIcon-breakpointCurrentStackframeForeground: #be8700;--component-explorer-debugIcon-breakpointStackframeForeground: #89d185;--component-explorer-editor-stackFrameHighlightBackground: rgba(255, 255, 102, .45);--component-explorer-editor-focusedStackFrameHighlightBackground: rgba(206, 231, 206, .45);--component-explorer-minimap-chatEditHighlight: rgba(255, 255, 255, .6);--component-explorer-chatManagement-sashBorder: rgba(128, 128, 128, .35);--component-explorer-gauge-foreground: #007acc;--component-explorer-gauge-background: rgba(0, 122, 204, .3);--component-explorer-gauge-warningForeground: #b89500;--component-explorer-gauge-warningBackground: rgba(184, 149, 0, .3);--component-explorer-gauge-errorForeground: #be1100;--component-explorer-gauge-errorBackground: rgba(190, 17, 0, .3);--component-explorer-mcpIcon-starForeground: #df6100;--component-explorer-interactive-activeCodeBorder: #007acc;--component-explorer-interactive-inactiveCodeBorder: #e4e6f1;--component-explorer-testing-iconFailed: #f14c4c;--component-explorer-testing-iconErrored: #f14c4c;--component-explorer-testing-iconPassed: #73c991;--component-explorer-testing-runAction: #73c991;--component-explorer-testing-iconQueued: #cca700;--component-explorer-testing-iconUnset: #848484;--component-explorer-testing-iconSkipped: #848484;--component-explorer-testing-peekBorder: #e51400;--component-explorer-testing-messagePeekBorder: #0063d3;--component-explorer-testing-peekHeaderBackground: rgba(229, 20, 0, .1);--component-explorer-testing-messagePeekHeaderBackground: rgba(0, 99, 211, .1);--component-explorer-testing-coveredBackground: rgba(23, 149, 44, .37);--component-explorer-testing-coveredBorder: rgba(23, 149, 44, .28);--component-explorer-testing-coveredGutterBackground: rgba(23, 149, 44, .22);--component-explorer-testing-uncoveredBranchBackground: #ff4d4d;--component-explorer-testing-uncoveredBackground: rgba(255, 0, 0, .35);--component-explorer-testing-uncoveredBorder: rgba(255, 0, 0, .26);--component-explorer-testing-uncoveredGutterBackground: rgba(255, 0, 0, .52);--component-explorer-testing-coverCountBadgeBackground: #c4c4c4;--component-explorer-testing-coverCountBadgeForeground: #333333;--component-explorer-testing-message\\.error\\.badgeBackground: #e51400;--component-explorer-testing-message\\.error\\.badgeBorder: #e51400;--component-explorer-testing-message\\.error\\.badgeForeground: #ffffff;--component-explorer-testing-message\\.info\\.decorationForeground: rgba(0, 0, 0, .5);--component-explorer-testing-iconErrored\\.retired: rgba(241, 76, 76, .7);--component-explorer-testing-iconFailed\\.retired: rgba(241, 76, 76, .7);--component-explorer-testing-iconPassed\\.retired: rgba(115, 201, 145, .7);--component-explorer-testing-iconQueued\\.retired: rgba(204, 167, 0, .7);--component-explorer-testing-iconUnset\\.retired: rgba(132, 132, 132, .7);--component-explorer-testing-iconSkipped\\.retired: rgba(132, 132, 132, .7);--component-explorer-searchEditor-textInputBorder: #cecece;--component-explorer-statusBar-debuggingBackground: #cc6633;--component-explorer-statusBar-debuggingForeground: #ffffff;--component-explorer-commandCenter-debuggingBackground: rgba(204, 102, 51, .26);--component-explorer-debugTokenExpression-name: #9b46b0;--component-explorer-debugTokenExpression-type: #4a90e2;--component-explorer-debugTokenExpression-value: rgba(108, 108, 108, .8);--component-explorer-debugTokenExpression-string: #a31515;--component-explorer-debugTokenExpression-boolean: #0000ff;--component-explorer-debugTokenExpression-number: #098658;--component-explorer-debugTokenExpression-error: #e51400;--component-explorer-debugView-exceptionLabelForeground: #ffffff;--component-explorer-debugView-exceptionLabelBackground: #a31515;--component-explorer-debugView-stateLabelForeground: #616161;--component-explorer-debugView-stateLabelBackground: rgba(136, 136, 136, .27);--component-explorer-debugView-valueChangedHighlight: #569cd6;--component-explorer-debugConsole-infoForeground: #0063d3;--component-explorer-debugConsole-warningForeground: #bf8803;--component-explorer-debugConsole-errorForeground: #a1260d;--component-explorer-debugConsole-sourceForeground: #616161;--component-explorer-debugConsoleInputIcon-foreground: #616161;--component-explorer-debugIcon-pauseForeground: #007acc;--component-explorer-debugIcon-stopForeground: #a1260d;--component-explorer-debugIcon-disconnectForeground: #a1260d;--component-explorer-debugIcon-restartForeground: #388a34;--component-explorer-debugIcon-stepOverForeground: #007acc;--component-explorer-debugIcon-stepIntoForeground: #007acc;--component-explorer-debugIcon-stepOutForeground: #007acc;--component-explorer-debugIcon-continueForeground: #007acc;--component-explorer-debugIcon-stepBackForeground: #007acc;--component-explorer-mergeEditor-change\\.background: rgba(155, 185, 85, .2);--component-explorer-mergeEditor-change\\.word\\.background: rgba(156, 204, 44, .4);--component-explorer-mergeEditor-changeBase\\.background: #ffcccc;--component-explorer-mergeEditor-changeBase\\.word\\.background: #ffa3a3;--component-explorer-mergeEditor-conflict\\.unhandledUnfocused\\.border: #ffa600;--component-explorer-mergeEditor-conflict\\.unhandledFocused\\.border: #ffa600;--component-explorer-mergeEditor-conflict\\.handledUnfocused\\.border: rgba(134, 134, 134, .29);--component-explorer-mergeEditor-conflict\\.handledFocused\\.border: rgba(193, 193, 193, .8);--component-explorer-mergeEditor-conflict\\.handled\\.minimapOverViewRuler: rgba(173, 172, 168, .93);--component-explorer-mergeEditor-conflict\\.unhandled\\.minimapOverViewRuler: #fcba03;--component-explorer-mergeEditor-conflictingLines\\.background: rgba(255, 234, 0, .28);--component-explorer-mergeEditor-conflict\\.input1\\.background: rgba(64, 200, 174, .2);--component-explorer-mergeEditor-conflict\\.input2\\.background: rgba(64, 166, 255, .2);--component-explorer-terminal-ansiBlack: #000000;--component-explorer-terminal-ansiRed: #cd3131;--component-explorer-terminal-ansiGreen: #107c10;--component-explorer-terminal-ansiYellow: #949800;--component-explorer-terminal-ansiBlue: #0451a5;--component-explorer-terminal-ansiMagenta: #bc05bc;--component-explorer-terminal-ansiCyan: #0598bc;--component-explorer-terminal-ansiWhite: #555555;--component-explorer-terminal-ansiBrightBlack: #666666;--component-explorer-terminal-ansiBrightRed: #cd3131;--component-explorer-terminal-ansiBrightGreen: #14ce14;--component-explorer-terminal-ansiBrightYellow: #b5ba00;--component-explorer-terminal-ansiBrightBlue: #0451a5;--component-explorer-terminal-ansiBrightMagenta: #bc05bc;--component-explorer-terminal-ansiBrightCyan: #0598bc;--component-explorer-terminal-ansiBrightWhite: #a5a5a5;--component-explorer-simpleFindWidget-sashBorder: #c8c8c8;--component-explorer-terminalStickyScrollHover-background: #f0f0f0;--component-explorer-terminalCommandGuide-foreground: #e4e6f1;--component-explorer-terminalSymbolIcon-flagForeground: #d67e00;--component-explorer-terminalSymbolIcon-aliasForeground: #652d90;--component-explorer-terminalSymbolIcon-optionValueForeground: #007acc;--component-explorer-terminalSymbolIcon-methodForeground: #652d90;--component-explorer-terminalSymbolIcon-argumentForeground: #007acc;--component-explorer-terminalSymbolIcon-optionForeground: #d67e00;--component-explorer-terminalSymbolIcon-fileForeground: #616161;--component-explorer-terminalSymbolIcon-folderForeground: #616161;--component-explorer-terminalSymbolIcon-commitForeground: #616161;--component-explorer-terminalSymbolIcon-branchForeground: #616161;--component-explorer-terminalSymbolIcon-tagForeground: #616161;--component-explorer-terminalSymbolIcon-stashForeground: #616161;--component-explorer-terminalSymbolIcon-remoteForeground: #616161;--component-explorer-terminalSymbolIcon-pullRequestForeground: #616161;--component-explorer-terminalSymbolIcon-pullRequestDoneForeground: #616161;--component-explorer-terminalSymbolIcon-symbolicLinkFileForeground: #616161;--component-explorer-terminalSymbolIcon-symbolicLinkFolderForeground: #616161;--component-explorer-terminalSymbolIcon-symbolText: #616161;--component-explorer-markdownAlert-note\\.foreground: #0063d3;--component-explorer-markdownAlert-tip\\.foreground: #388a34;--component-explorer-markdownAlert-important\\.foreground: #652d90;--component-explorer-markdownAlert-warning\\.foreground: #bf8803;--component-explorer-markdownAlert-caution\\.foreground: #e51400;--component-explorer-welcomePage-tileBackground: #f3f3f3;--component-explorer-welcomePage-tileHoverBackground: #dbdbdb;--component-explorer-welcomePage-tileBorder: rgba(0, 0, 0, .1);--component-explorer-welcomePage-progress\\.background: #ffffff;--component-explorer-welcomePage-progress\\.foreground: #006ab1;--component-explorer-walkthrough-stepTitle\\.foreground: #000000;--component-explorer-walkThrough-embeddedEditorBackground: #f4f4f4;--component-explorer-profiles-sashBorder: rgba(128, 128, 128, .35);--component-explorer-gitDecoration-addedResourceForeground: #587c0c;--component-explorer-gitDecoration-modifiedResourceForeground: #895503;--component-explorer-gitDecoration-deletedResourceForeground: #ad0707;--component-explorer-gitDecoration-renamedResourceForeground: #007100;--component-explorer-gitDecoration-untrackedResourceForeground: #007100;--component-explorer-gitDecoration-ignoredResourceForeground: #8e8e90;--component-explorer-gitDecoration-stageModifiedResourceForeground: #895503;--component-explorer-gitDecoration-stageDeletedResourceForeground: #ad0707;--component-explorer-gitDecoration-conflictingResourceForeground: #ad0707;--component-explorer-gitDecoration-submoduleResourceForeground: #1258a7;--component-explorer-git-blame\\.editorDecorationForeground: #969696;--component-explorer-gitlens-gutterBackgroundColor: rgba(0, 0, 0, .05);--component-explorer-gitlens-gutterForegroundColor: #747474;--component-explorer-gitlens-gutterUncommittedForegroundColor: rgba(0, 188, 242, .6);--component-explorer-gitlens-trailingLineBackgroundColor: rgba(0, 0, 0, 0);--component-explorer-gitlens-trailingLineForegroundColor: rgba(153, 153, 153, .35);--component-explorer-gitlens-lineHighlightBackgroundColor: rgba(0, 188, 242, .2);--component-explorer-gitlens-lineHighlightOverviewRulerColor: rgba(0, 188, 242, .6);--component-explorer-gitlens-openAutolinkedIssueIconColor: #1a7f37;--component-explorer-gitlens-closedAutolinkedIssueIconColor: #8250df;--component-explorer-gitlens-closedPullRequestIconColor: #cf222e;--component-explorer-gitlens-openPullRequestIconColor: #1a7f37;--component-explorer-gitlens-mergedPullRequestIconColor: #8250df;--component-explorer-gitlens-unpublishedChangesIconColor: #35b15e;--component-explorer-gitlens-unpublishedCommitIconColor: #35b15e;--component-explorer-gitlens-unpulledChangesIconColor: #b15e35;--component-explorer-gitlens-decorations\\.addedForegroundColor: #587c0c;--component-explorer-gitlens-decorations\\.copiedForegroundColor: #007100;--component-explorer-gitlens-decorations\\.deletedForegroundColor: #ad0707;--component-explorer-gitlens-decorations\\.ignoredForegroundColor: #8e8e90;--component-explorer-gitlens-decorations\\.modifiedForegroundColor: #895503;--component-explorer-gitlens-decorations\\.untrackedForegroundColor: #007100;--component-explorer-gitlens-decorations\\.renamedForegroundColor: #007100;--component-explorer-gitlens-decorations\\.branchAheadForegroundColor: #35b15e;--component-explorer-gitlens-decorations\\.branchBehindForegroundColor: #b15e35;--component-explorer-gitlens-decorations\\.branchDivergedForegroundColor: #d8af1b;--component-explorer-gitlens-decorations\\.branchMissingUpstreamForegroundColor: #ad0707;--component-explorer-gitlens-decorations\\.statusMergingOrRebasingConflictForegroundColor: #ad0707;--component-explorer-gitlens-decorations\\.statusMergingOrRebasingForegroundColor: #d8af1b;--component-explorer-gitlens-decorations\\.workspaceRepoMissingForegroundColor: #949494;--component-explorer-gitlens-decorations\\.workspaceCurrentForegroundColor: #35b15e;--component-explorer-gitlens-decorations\\.workspaceRepoOpenForegroundColor: #35b15e;--component-explorer-gitlens-decorations\\.worktreeHasUncommittedChangesForegroundColor: #895503;--component-explorer-gitlens-decorations\\.worktreeMissingForegroundColor: #ad0707;--component-explorer-gitlens-graphLane1Color: #15a0bf;--component-explorer-gitlens-graphLane2Color: #0669f7;--component-explorer-gitlens-graphLane3Color: #8e00c2;--component-explorer-gitlens-graphLane4Color: #c517b6;--component-explorer-gitlens-graphLane5Color: #d90171;--component-explorer-gitlens-graphLane6Color: #cd0101;--component-explorer-gitlens-graphLane7Color: #f25d2e;--component-explorer-gitlens-graphLane8Color: #f2ca33;--component-explorer-gitlens-graphLane9Color: #7bd938;--component-explorer-gitlens-graphLane10Color: #2ece9d;--component-explorer-gitlens-graphChangesColumnAddedColor: #2da44e;--component-explorer-gitlens-graphChangesColumnDeletedColor: #cf222e;--component-explorer-gitlens-graphMinimapMarkerHeadColor: #04c814;--component-explorer-gitlens-graphScrollMarkerHeadColor: #04c814;--component-explorer-gitlens-graphMinimapMarkerUpstreamColor: #8cd993;--component-explorer-gitlens-graphScrollMarkerUpstreamColor: #8cd993;--component-explorer-gitlens-graphMinimapMarkerHighlightsColor: #f5cc00;--component-explorer-gitlens-graphScrollMarkerHighlightsColor: #f5cc00;--component-explorer-gitlens-graphMinimapMarkerLocalBranchesColor: #3095e8;--component-explorer-gitlens-graphScrollMarkerLocalBranchesColor: #3095e8;--component-explorer-gitlens-graphMinimapMarkerPullRequestsColor: #ff8f18;--component-explorer-gitlens-graphScrollMarkerPullRequestsColor: #ff8f18;--component-explorer-gitlens-graphMinimapMarkerRemoteBranchesColor: #67ace4;--component-explorer-gitlens-graphScrollMarkerRemoteBranchesColor: #67ace4;--component-explorer-gitlens-graphMinimapMarkerStashesColor: #e467e4;--component-explorer-gitlens-graphScrollMarkerStashesColor: #e467e4;--component-explorer-gitlens-graphMinimapMarkerTagsColor: #d2a379;--component-explorer-gitlens-graphScrollMarkerTagsColor: #d2a379;--component-explorer-gitlens-launchpadIndicatorMergeableColor: #42c954;--component-explorer-gitlens-launchpadIndicatorMergeableHoverColor: #42c954;--component-explorer-gitlens-launchpadIndicatorBlockedColor: #ad0707;--component-explorer-gitlens-launchpadIndicatorBlockedHoverColor: #ad0707;--component-explorer-gitlens-launchpadIndicatorAttentionColor: #cc9b15;--component-explorer-gitlens-launchpadIndicatorAttentionHoverColor: #cc9b15;--component-explorer-issues-newIssueDecoration: rgba(0, 0, 0, .28);--component-explorer-issues-open: #3fb950;--component-explorer-issues-closed: #8957e5;--component-explorer-github-issues\\.closed: #8957e5;--component-explorer-pullRequests-merged: #8957e5;--component-explorer-pullRequests-draft: #6e7681;--component-explorer-pullRequests-open: #3fb950;--component-explorer-pullRequests-closed: #cb2431;--component-explorer-pullRequests-notification: #0063d3;--component-explorer-testExplorer-errorDecorationBackground: #f2dede;--component-explorer-remoteHub-decorations\\.addedForegroundColor: #587c0c;--component-explorer-remoteHub-decorations\\.modifiedForegroundColor: #895503;--component-explorer-remoteHub-decorations\\.deletedForegroundColor: #ad0707;--component-explorer-remoteHub-decorations\\.submoduleForegroundColor: #1258a7;--component-explorer-remoteHub-decorations\\.conflictForegroundColor: #ad0707;--component-explorer-remoteHub-decorations\\.incomingAddedForegroundColor: #587c0c;--component-explorer-remoteHub-decorations\\.incomingModifiedForegroundColor: #895503;--component-explorer-remoteHub-decorations\\.incomingDeletedForegroundColor: #ad0707;--component-explorer-remoteHub-decorations\\.incomingRenamedForegroundColor: #007100;--component-explorer-remoteHub-decorations\\.possibleConflictForegroundColor: #855f00;--component-explorer-remoteHub-decorations\\.ignoredResourceForeground: #8e8e90;--component-explorer-remoteHub-decorations\\.workspaceRepositoriesView\\.hasUncommittedChangesForegroundColor: #895503;--component-explorer-editor-font-feature-settings: "liga" on, "calt" on}';
3819
+ class pt {
3820
+ constructor(e, o, n, t) {
3821
+ s(this, "_root");
3822
+ s(this, "_registry", new Rr());
3823
+ s(this, "_daemonModel");
3824
+ s(this, "_reportModel");
3825
+ this._populateRegistry(o), this._registry.loading.set(n, void 0), this._reportModel = this._initializeReportModel(), this._daemonModel = this._reportModel ? void 0 : this._initializeDaemonModel(t);
3826
+ const i = e.attachShadow({ mode: "open" }), c = new CSSStyleSheet();
3827
+ c.replaceSync([dt, lt, st].join(`
3828
+ `)), i.adoptedStyleSheets = [c], kn(e);
3829
+ const d = document.createElement("div");
3830
+ d.style.height = "100%", d.style.width = "100%", i.appendChild(d), this._root = Wo(d), this._root.render(qo(et, {
3831
+ registry: this._registry,
3832
+ daemonModel: this._daemonModel,
3833
+ reportModel: this._reportModel
3834
+ }));
3835
+ }
3836
+ _initializeReportModel() {
3837
+ const o = new URLSearchParams(location.search).get("report");
3838
+ if (o)
3839
+ return new ct(o);
3840
+ }
3841
+ _initializeDaemonModel(e) {
3842
+ if (!e)
3843
+ return;
3844
+ const o = new it(e);
3845
+ return o.initialize().catch((n) => {
3846
+ console.error("[ExplorerUIMode] Failed to initialize DaemonModel:", n);
3847
+ }), o;
3848
+ }
3849
+ _populateRegistry(e) {
3850
+ this._registry.clear();
3851
+ for (const [o, n] of Object.entries(e)) {
3852
+ const t = n.default;
3853
+ t && typeof t == "object" && this._registry.register(o, t);
3854
+ }
3855
+ }
3856
+ updateFixtures(e) {
3857
+ this._populateRegistry(e), this._registry.loading.set(!1, void 0);
3858
+ }
3859
+ bumpVersion() {
3860
+ }
3861
+ dispose() {
3862
+ var e;
3863
+ (e = this._daemonModel) == null || e.dispose(), this._root.unmount();
3864
+ }
3865
+ }
3866
+ class gt {
3867
+ constructor(e, o) {
3868
+ s(this, "sessionId", Math.random().toString(36).slice(2));
3869
+ s(this, "_updateVersion", 0);
3870
+ s(this, "_root");
3871
+ s(this, "_fixtureModules");
3872
+ s(this, "_currentRendering");
3873
+ s(this, "_currentContainer");
3874
+ this._containerElement = e, this._fixtureModules = o, this._root = this._buildTree(o), this._installGlobalApi();
3875
+ const n = this._flattenFixtures(this._root).length;
3876
+ console.log("[headless] Initialized, sessionId:", this.sessionId, "version:", this._updateVersion, "fixtures:", n);
3877
+ }
3878
+ get updateVersion() {
3879
+ return this._updateVersion;
3880
+ }
3881
+ updateFixtures(e) {
3882
+ this._fixtureModules = e, this._root = this._buildTree(e), this._updateVersion++;
3883
+ const o = this._flattenFixtures(this._root).length;
3884
+ console.log("[headless] Registry rebuilt, version:", this._updateVersion, "fixtures:", o);
3885
+ }
3886
+ bumpVersion() {
3887
+ this._updateVersion++, console.log("[headless] Version bumped:", this._updateVersion);
3888
+ }
3889
+ listFixtures() {
3890
+ return this._flattenFixtures(this._root);
3891
+ }
3892
+ async renderFixture(e) {
3893
+ const o = this._findFixtureNode(this._root, e);
3894
+ if (!o || !o.component)
3895
+ throw new Error("Fixture not found: " + e);
3896
+ this._currentRendering && (this._currentRendering.dispose(), this._currentRendering = void 0), this._currentContainer && (this._currentContainer.remove(), this._currentContainer = void 0);
3897
+ const n = document.createElement("div");
3898
+ n.style.display = "inline-block", this._containerElement.appendChild(n), this._currentContainer = n;
3899
+ const t = o.component, i = [];
3900
+ let c;
3901
+ const d = (b) => {
3902
+ c || (c = b);
3903
+ }, l = console.error, p = console.warn, g = console.log;
3904
+ console.error = (...b) => {
3905
+ i.push({ type: "console.error", message: b.map(String).join(" ") }), l.apply(console, b);
3906
+ }, console.warn = (...b) => {
3907
+ i.push({ type: "console.warn", message: b.map(String).join(" ") }), p.apply(console, b);
3908
+ }, console.log = (...b) => {
3909
+ i.push({ type: "console.log", message: b.map(String).join(" ") }), g.apply(console, b);
3910
+ };
3911
+ const u = (b) => {
3912
+ i.push({ type: "window.error", message: b.message });
3913
+ }, x = (b) => {
3914
+ const v = b.reason, _ = v instanceof Error ? v.message : String(v);
3915
+ i.push({ type: "window.unhandledrejection", message: _ });
3916
+ };
3917
+ window.addEventListener("error", u), window.addEventListener("unhandledrejection", x);
3918
+ let k;
3919
+ try {
3920
+ const b = new Ie(n, t);
3921
+ this._currentRendering = b;
3922
+ const v = 3e3, _ = new Promise((Re, Go) => setTimeout(() => Go(new Error(`Fixture timed out after ${v}ms`)), v)), S = await Promise.race([b.waitForRendering(), _]);
3923
+ k = S == null ? void 0 : S.data;
3924
+ } catch (b) {
3925
+ const v = b instanceof Error ? b : new Error(String(b));
3926
+ d({ message: v.message, stack: v.stack });
3927
+ } finally {
3928
+ console.error = l, console.warn = p, console.log = g;
3929
+ }
3930
+ return await new Promise((b) => requestAnimationFrame(() => requestAnimationFrame(() => b()))), window.removeEventListener("error", u), window.removeEventListener("unhandledrejection", x), { hasError: !!c || i.some((b) => b.type !== "console.log" && b.type !== "console.warn"), error: c, events: i, resultData: k };
3931
+ }
3932
+ _buildTree(e) {
3933
+ const o = /* @__PURE__ */ new Map();
3934
+ for (const [n, t] of Object.entries(e)) {
3935
+ const i = t.default;
3936
+ i && typeof i == "object" && o.set(n, i);
3937
+ }
3938
+ return ne(o);
3939
+ }
3940
+ _flattenFixtures(e, o = [], n = []) {
3941
+ var c;
3942
+ const t = n.length > 0 && e.labels.length > 0 ? [.../* @__PURE__ */ new Set([...n, ...e.labels])] : e.labels.length > 0 ? [...e.labels] : [...n], i = [];
3943
+ e.type === "component" && i.push({ fixtureId: e.id.value, fixtureName: e.name, groupPath: o, background: ((c = e.component) == null ? void 0 : c.background) ?? "light", labels: t });
3944
+ for (const d of e.children ?? []) {
3945
+ const l = e.id.value ? [...o, e.name] : o;
3946
+ i.push(...this._flattenFixtures(d, l, t));
3947
+ }
3948
+ return i;
3949
+ }
3950
+ _findFixtureNode(e, o) {
3951
+ if (e.id.value === o) return e;
3952
+ for (const n of e.children ?? []) {
3953
+ const t = this._findFixtureNode(n, o);
3954
+ if (t) return t;
3955
+ }
3956
+ }
3957
+ _installGlobalApi() {
3958
+ const e = this, o = {
3959
+ sessionId: this.sessionId,
3960
+ get updateVersion() {
3961
+ return e._updateVersion;
3962
+ },
3963
+ runtimeVersion: re.toString(),
3964
+ listFixtures: () => this.listFixtures(),
3965
+ renderFixture: (n) => this.renderFixture(n)
3966
+ };
3967
+ window.__componentExplorer__ = o;
3968
+ }
3969
+ }
3970
+ class ut {
3971
+ constructor(e, o, n) {
3972
+ s(this, "_root");
3973
+ s(this, "_rendering");
3974
+ s(this, "_resizeObserver");
3975
+ this._container = e, this._fixtureId = o, n.then((t) => {
3976
+ this._root = this._buildTree(t), this._render();
3977
+ });
3978
+ }
3979
+ updateFixtures(e) {
3980
+ this._root = this._buildTree(e), this._render();
3981
+ }
3982
+ bumpVersion() {
3983
+ this._render();
3984
+ }
3985
+ _render() {
3986
+ var c, d;
3987
+ if ((c = this._rendering) == null || c.dispose(), this._rendering = void 0, (d = this._resizeObserver) == null || d.disconnect(), this._resizeObserver = void 0, this._container.innerHTML = "", !this._root) return;
3988
+ const e = this._findNode(this._root, this._fixtureId);
3989
+ if (!(e != null && e.component)) {
3990
+ console.error(`[EmbeddedMode] Fixture not found: ${this._fixtureId}`);
3991
+ return;
3992
+ }
3993
+ const o = { ...e.component, isolation: "none" }, n = new Ie(this._container, o);
3994
+ this._rendering = n;
3995
+ const t = this._fixtureId, i = () => {
3996
+ const l = n.renderTarget.getBoundingClientRect();
3997
+ window.parent.postMessage({
3998
+ type: "component-explorer:resize",
3999
+ fixtureId: t,
4000
+ width: l.width,
4001
+ height: l.height
4002
+ }, "*");
4003
+ };
4004
+ this._resizeObserver = new ResizeObserver(i), this._resizeObserver.observe(n.renderTarget);
4005
+ }
4006
+ _buildTree(e) {
4007
+ const o = /* @__PURE__ */ new Map();
4008
+ for (const [n, t] of Object.entries(e)) {
4009
+ const i = t.default;
4010
+ i && typeof i == "object" && o.set(n, i);
4011
+ }
4012
+ return ne(o);
4013
+ }
4014
+ _findNode(e, o) {
4015
+ if (e.id.value === o) return e;
4016
+ for (const n of e.children ?? []) {
4017
+ const t = this._findNode(n, o);
4018
+ if (t) return t;
4019
+ }
4020
+ }
4021
+ }
4022
+ function mt(r) {
4023
+ const e = r.get("mode");
4024
+ return {
4025
+ mode: e === "headless" || e === "embedded" ? e : void 0,
4026
+ fixture: r.get("fixture") ?? void 0,
4027
+ file: r.get("file") ?? void 0,
4028
+ report: r.get("report") ?? void 0
4029
+ };
4030
+ }
4031
+ globalThis._buildInfo = Po;
4032
+ class Ft {
4033
+ constructor(e, o) {
4034
+ s(this, "_runtime");
4035
+ const n = globalThis._buildInfo;
4036
+ n && console.log(`[component-explorer] v${n.version} (built ${n.date})`);
4037
+ const t = new URLSearchParams(location.search), i = mt(t), c = i.fixture;
4038
+ if (i.mode === "embedded") {
4039
+ if (!c)
4040
+ throw new Error("Embedded mode requires a fixture query parameter");
4041
+ const d = i.file, l = o.loadFixtures(d ? { file: d } : void 0);
4042
+ this._runtime = new ut(e, c, l);
4043
+ } else {
4044
+ const d = i.mode === "headless" ? new gt(e, {}) : new pt(e, {}, !0, o.daemonConfig);
4045
+ this._runtime = d, o.loadFixtures().then((l) => this._runtime.updateFixtures(l));
4046
+ }
4047
+ }
4048
+ updateFixtures(e) {
4049
+ this._runtime.updateFixtures(e);
4050
+ }
4051
+ bumpVersion() {
4052
+ this._runtime.bumpVersion();
4053
+ }
4054
+ }
4055
+ export {
4056
+ Ur as ChevronDownIcon,
4057
+ $r as ChevronRightIcon,
4058
+ jr as ComponentIcon,
4059
+ it as DaemonModel,
4060
+ et as Explorer,
4061
+ Ft as ExplorerApp,
4062
+ Pr as ExplorerModel,
4063
+ T as FixturePath,
4064
+ Rr as FixtureRegistry,
4065
+ qr as FolderIcon,
4066
+ sn as LeftSidebar,
4067
+ Zr as MoonIcon,
4068
+ Qr as PanelLeftIcon,
4069
+ Kr as PanelRightIcon,
4070
+ ct as ReportModel,
4071
+ mn as RightSidebar,
4072
+ Jr as SunIcon,
4073
+ Xr as TitleBar,
4074
+ de as TitleBarButton,
4075
+ nn as TreeItem,
4076
+ So as TreeView,
4077
+ Qo as VIEWPORT_SIZES,
4078
+ Et as asyncRender,
4079
+ Yo as collectComponents,
4080
+ Oe as createComponentDefinition,
4081
+ ne as createFixtureTree,
4082
+ Ht as defineFixture,
4083
+ Tt as defineFixtureGroup,
4084
+ Mt as defineFixtureVariants,
4085
+ Le as findNodeByPath,
4086
+ Ee as fixtureGroupBrand,
4087
+ He as fixtureVariantsBrand,
4088
+ Jo as getDefaultPropertyValues,
4089
+ St as isComponentDefinition,
4090
+ ye as isFixtureGroup,
4091
+ we as isFixtureVariants,
4092
+ ke as isSingleFixture,
4093
+ Fe as mergeStyles,
4094
+ wt as parseFixtureExport,
4095
+ _t as parseFixtureGroup,
4096
+ Ct as parseFixtureVariants,
4097
+ Bt as parseSingleFixture,
4098
+ Ko as resolveViewport,
4099
+ Te as singleFixtureBrand,
4100
+ h as styles,
4101
+ Ot as syncRender,
4102
+ wo as toExplorerTree
4103
+ };
4104
+ //# sourceMappingURL=viewer.js.map