@vscode/component-explorer 0.1.1-9 → 0.2.1-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 +329 -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 -9
  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} +21 -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-BeD9fm3Y.js +86 -0
  74. package/dist/runtimeVersion-BeD9fm3Y.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 +4098 -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,4098 @@
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 ne, _ as Po } from "./runtimeVersion-BeD9fm3Y.js";
5
+ import { e as Rt, d as Et, a as Ht, b as Tt, g as Mt } from "./runtimeVersion-BeD9fm3Y.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 ke } from "react/jsx-runtime";
9
+ import { unstable_batchedUpdates as co } from "react-dom";
10
+ import { SemanticVersion as ae } from "@hediet/semver";
11
+ function ye(r) {
12
+ return typeof r == "object" && r !== null && Te in r && r[Te] === !0 && "_options" in r && typeof r._options == "object";
13
+ }
14
+ function we(r) {
15
+ return typeof r == "object" && r !== null && Ee in r && r[Ee] === !0 && "_entries" in r && typeof r._entries == "object";
16
+ }
17
+ function Be(r) {
18
+ return typeof r == "object" && r !== null && He in r && r[He] === !0 && "_variants" in r && typeof r._variants == "object";
19
+ }
20
+ function yt(r) {
21
+ return ye(r) ? { success: !0, data: r } : we(r) ? { success: !0, data: r } : Be(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 wt(r) {
24
+ return ye(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a SingleFixtureExport" };
25
+ }
26
+ function Bt(r) {
27
+ return we(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a FixtureGroupExport" };
28
+ }
29
+ function _t(r) {
30
+ return Be(r) ? { success: !0, data: r } : { success: !1, error: "Value is not a FixtureVariantsExport" };
31
+ }
32
+ function Oe(r, e, o, n, t = []) {
33
+ const i = r._options, c = i.expectedVisualDescriptions ? typeof i.expectedVisualDescriptions == "string" ? [i.expectedVisualDescriptions] : [...i.expectedVisualDescriptions] : [], d = [...t, ...c];
34
+ return {
35
+ id: e,
36
+ name: o,
37
+ description: i.description,
38
+ isolation: i.isolation ?? "none",
39
+ displayMode: i.displayMode ?? { type: "component" },
40
+ styles: i.styles,
41
+ background: i.background ?? "light",
42
+ labels: i.labels ?? [],
43
+ expectedVisualDescriptions: d,
44
+ sourceFile: n,
45
+ render: i.render
46
+ };
47
+ }
48
+ function Ct(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 Ve(r) {
72
+ if (r.startsWith("/"))
73
+ throw new Error(`Fixture path cannot start with '/': ${r}`);
74
+ if (r.includes("//"))
75
+ throw new Error(`Fixture path cannot contain empty segments: ${r}`);
76
+ if (r === "")
77
+ throw new Error("Fixture path cannot be empty (use undefined for default)");
78
+ }
79
+ function Jo(r, e) {
80
+ const o = ao(r);
81
+ if (e === void 0)
82
+ return [o];
83
+ if (e.endsWith("/")) {
84
+ const n = e.slice(0, -1);
85
+ if (n)
86
+ return Ve(n), [...n.split("/"), o];
87
+ throw new Error(`Fixture path cannot be just '/': ${e}`);
88
+ } else
89
+ return Ve(e), e.split("/");
90
+ }
91
+ function te(r) {
92
+ const e = {
93
+ id: new T(""),
94
+ name: "Components",
95
+ type: "folder",
96
+ children: [],
97
+ labels: []
98
+ };
99
+ for (const [o, n] of r)
100
+ if (n === void 0) {
101
+ const t = ao(o), i = {
102
+ id: new T(t),
103
+ name: t,
104
+ type: "component",
105
+ labels: [],
106
+ sourceFile: o
107
+ };
108
+ e.children || (e.children = []), e.children.push(i);
109
+ } else {
110
+ const t = "_path" in n ? n._path : void 0, i = Jo(o, t);
111
+ lo(e, i, n, [], o);
112
+ }
113
+ return e;
114
+ }
115
+ function ao(r) {
116
+ return (r.split("/").pop() ?? r).replace(/\.fixture\.(tsx?|jsx?)$/, "");
117
+ }
118
+ function lo(r, e, o, n = [], t = "", i = []) {
119
+ var g, v;
120
+ let c = r;
121
+ const d = [...n];
122
+ for (let b = 0; b < e.length - 1; b++) {
123
+ const k = e[b];
124
+ d.push(k);
125
+ const _ = new T(d.join("/"));
126
+ let u = (g = c.children) == null ? void 0 : g.find(
127
+ (h) => h.type === "folder" && h.name === k
128
+ );
129
+ u || (u = {
130
+ id: _,
131
+ name: k,
132
+ type: "folder",
133
+ children: [],
134
+ labels: []
135
+ }, c.children || (c.children = []), c.children.push(u)), c = u;
136
+ }
137
+ const l = e[e.length - 1];
138
+ d.push(l);
139
+ const p = new T(d.join("/"));
140
+ if (ye(o)) {
141
+ const b = Oe(o, p.value, l, t, i), k = {
142
+ id: p,
143
+ name: l,
144
+ type: "component",
145
+ component: b,
146
+ labels: [...b.labels]
147
+ };
148
+ c.children || (c.children = []), c.children.push(k);
149
+ } else if (we(o)) {
150
+ let b = (v = c.children) == null ? void 0 : v.find(
151
+ (k) => k.type === "folder" && k.name === l
152
+ );
153
+ b || (b = {
154
+ id: p,
155
+ name: l,
156
+ type: "folder",
157
+ children: [],
158
+ labels: [...o._labels ?? []]
159
+ }, c.children || (c.children = []), c.children.push(b));
160
+ for (const [k, _] of Object.entries(o._entries)) {
161
+ const u = o._expectedVisualDescriptions, h = u ? typeof u == "string" ? [u] : [...u] : [], y = [...i, ...h];
162
+ lo(b, [k], _, d, t, y);
163
+ }
164
+ } else if (Be(o)) {
165
+ const b = {
166
+ id: p,
167
+ name: l,
168
+ type: "variants",
169
+ children: [],
170
+ labels: [...o._labels ?? []]
171
+ };
172
+ c.children || (c.children = []), c.children.push(b);
173
+ for (const [k, _] of Object.entries(o._variants)) {
174
+ const u = o._expectedVisualDescriptions, h = u ? typeof u == "string" ? [u] : [...u] : [], y = [...i, ...h], C = new T([...d, k].join("/")), ee = {
175
+ id: C,
176
+ name: k,
177
+ type: "component",
178
+ component: Oe(_, C.value, k, t, y),
179
+ labels: [..._._options.labels ?? []]
180
+ };
181
+ b.children.push(ee);
182
+ }
183
+ }
184
+ }
185
+ function Le(r, e) {
186
+ if (e.length === 0)
187
+ return r;
188
+ let o = r;
189
+ for (const n of e) {
190
+ if (!o || !o.children)
191
+ return;
192
+ o = o.children.find((t) => t.name === n);
193
+ }
194
+ return o;
195
+ }
196
+ function Zo(r) {
197
+ if (r.type === "component" && r.component)
198
+ return [r.component];
199
+ const e = [];
200
+ for (const o of r.children ?? [])
201
+ e.push(...Zo(o));
202
+ return e;
203
+ }
204
+ let A;
205
+ function Yo(r) {
206
+ A ? A instanceof De ? A.loggers.push(r) : A = new De([A, r]) : A = r;
207
+ }
208
+ function w() {
209
+ return A;
210
+ }
211
+ let se;
212
+ function Xo(r) {
213
+ se = r;
214
+ }
215
+ function er(r) {
216
+ se && se(r);
217
+ }
218
+ class De {
219
+ constructor(e) {
220
+ this.loggers = e;
221
+ }
222
+ handleObservableCreated(e, o) {
223
+ for (const n of this.loggers)
224
+ n.handleObservableCreated(e, o);
225
+ }
226
+ handleOnListenerCountChanged(e, o) {
227
+ for (const n of this.loggers)
228
+ n.handleOnListenerCountChanged(e, o);
229
+ }
230
+ handleObservableUpdated(e, o) {
231
+ for (const n of this.loggers)
232
+ n.handleObservableUpdated(e, o);
233
+ }
234
+ handleAutorunCreated(e, o) {
235
+ for (const n of this.loggers)
236
+ n.handleAutorunCreated(e, o);
237
+ }
238
+ handleAutorunDisposed(e) {
239
+ for (const o of this.loggers)
240
+ o.handleAutorunDisposed(e);
241
+ }
242
+ handleAutorunDependencyChanged(e, o, n) {
243
+ for (const t of this.loggers)
244
+ t.handleAutorunDependencyChanged(e, o, n);
245
+ }
246
+ handleAutorunStarted(e) {
247
+ for (const o of this.loggers)
248
+ o.handleAutorunStarted(e);
249
+ }
250
+ handleAutorunFinished(e) {
251
+ for (const o of this.loggers)
252
+ o.handleAutorunFinished(e);
253
+ }
254
+ handleDerivedDependencyChanged(e, o, n) {
255
+ for (const t of this.loggers)
256
+ t.handleDerivedDependencyChanged(e, o, n);
257
+ }
258
+ handleDerivedCleared(e) {
259
+ for (const o of this.loggers)
260
+ o.handleDerivedCleared(e);
261
+ }
262
+ handleBeginTransaction(e) {
263
+ for (const o of this.loggers)
264
+ o.handleBeginTransaction(e);
265
+ }
266
+ handleEndTransaction(e) {
267
+ for (const o of this.loggers)
268
+ o.handleEndTransaction(e);
269
+ }
270
+ }
271
+ var M;
272
+ (function(r) {
273
+ let e = !1;
274
+ function o() {
275
+ e = !0;
276
+ }
277
+ r.enable = o;
278
+ function n() {
279
+ return t(1);
280
+ }
281
+ r.ofCaller = n;
282
+ function t(i) {
283
+ if (!e)
284
+ return;
285
+ const c = Error, d = c.stackTraceLimit;
286
+ c.stackTraceLimit = 3;
287
+ const l = new Error().stack;
288
+ return c.stackTraceLimit = d, _e.fromStack(l, i + 1);
289
+ }
290
+ r.ofNthCaller = t;
291
+ })(M || (M = {}));
292
+ class _e {
293
+ static fromStack(e, o) {
294
+ const n = e.split(`
295
+ `), t = or(n[o + 1]);
296
+ if (t)
297
+ return new _e(t.fileName, t.line, t.column, t.id);
298
+ }
299
+ constructor(e, o, n, t) {
300
+ this.fileName = e, this.line = o, this.column = n, this.id = t;
301
+ }
302
+ }
303
+ function or(r) {
304
+ if (!r)
305
+ return;
306
+ const e = r.match(/\((.*):(\d+):(\d+)\)/);
307
+ if (e)
308
+ return {
309
+ fileName: e[1],
310
+ line: parseInt(e[2]),
311
+ column: parseInt(e[3]),
312
+ id: r
313
+ };
314
+ const o = r.match(/at ([^\(\)]*):(\d+):(\d+)/);
315
+ if (o)
316
+ return {
317
+ fileName: o[1],
318
+ line: parseInt(o[2]),
319
+ column: parseInt(o[3]),
320
+ id: r
321
+ };
322
+ }
323
+ class V {
324
+ constructor(e, o, n) {
325
+ this.owner = e, this.debugNameSource = o, this.referenceFn = n;
326
+ }
327
+ getDebugName(e) {
328
+ return rr(e, this);
329
+ }
330
+ }
331
+ const Ne = /* @__PURE__ */ new Map(), pe = /* @__PURE__ */ new WeakMap();
332
+ function rr(r, e) {
333
+ const o = pe.get(r);
334
+ if (o)
335
+ return o;
336
+ const n = nr(r, e);
337
+ if (n) {
338
+ let t = Ne.get(n) ?? 0;
339
+ t++, Ne.set(n, t);
340
+ const i = t === 1 ? n : `${n}#${t}`;
341
+ return pe.set(r, i), i;
342
+ }
343
+ }
344
+ function nr(r, e) {
345
+ const o = pe.get(r);
346
+ if (o)
347
+ return o;
348
+ const n = e.owner ? ir(e.owner) + "." : "";
349
+ let t;
350
+ const i = e.debugNameSource;
351
+ if (i !== void 0)
352
+ if (typeof i == "function") {
353
+ if (t = i(), t !== void 0)
354
+ return n + t;
355
+ } else
356
+ return n + i;
357
+ const c = e.referenceFn;
358
+ if (c !== void 0 && (t = Ce(c), t !== void 0))
359
+ return n + t;
360
+ if (e.owner !== void 0) {
361
+ const d = tr(e.owner, r);
362
+ if (d !== void 0)
363
+ return n + d;
364
+ }
365
+ }
366
+ function tr(r, e) {
367
+ for (const o in r)
368
+ if (r[o] === e)
369
+ return o;
370
+ }
371
+ const Ge = /* @__PURE__ */ new Map(), Ae = /* @__PURE__ */ new WeakMap();
372
+ function ir(r) {
373
+ const e = Ae.get(r);
374
+ if (e)
375
+ return e;
376
+ const o = so(r) ?? "Object";
377
+ let n = Ge.get(o) ?? 0;
378
+ n++, Ge.set(o, n);
379
+ const t = n === 1 ? o : `${o}#${n}`;
380
+ return Ae.set(r, t), t;
381
+ }
382
+ function so(r) {
383
+ const e = r.constructor;
384
+ if (e)
385
+ return e.name === "Object" ? void 0 : e.name;
386
+ }
387
+ function Ce(r) {
388
+ const e = r.toString(), n = /\/\*\*\s*@description\s*([^*]*)\*\//.exec(e), t = n ? n[1] : void 0;
389
+ return t == null ? void 0 : t.trim();
390
+ }
391
+ let ge;
392
+ function cr(r) {
393
+ ge = r;
394
+ }
395
+ let po;
396
+ function ar(r) {
397
+ po = r;
398
+ }
399
+ let go;
400
+ function dr(r) {
401
+ go = r;
402
+ }
403
+ let uo;
404
+ function lr(r) {
405
+ uo = r;
406
+ }
407
+ class sr {
408
+ get TChange() {
409
+ return null;
410
+ }
411
+ reportChanges() {
412
+ this.get();
413
+ }
414
+ /** @sealed */
415
+ read(e) {
416
+ return e ? e.readObservable(this) : this.get();
417
+ }
418
+ map(e, o, n = M.ofCaller()) {
419
+ const t = o === void 0 ? void 0 : e, i = o === void 0 ? e : o;
420
+ return ge({
421
+ owner: t,
422
+ debugName: () => {
423
+ const c = Ce(i);
424
+ if (c !== void 0)
425
+ return c;
426
+ 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());
427
+ if (l)
428
+ return `${this.debugName}.${l[2]}`;
429
+ if (!t)
430
+ return `${this.debugName} (mapped)`;
431
+ },
432
+ debugReferenceFn: i
433
+ }, (c) => i(this.read(c), c), n);
434
+ }
435
+ /**
436
+ * @sealed
437
+ * Converts an observable of an observable value into a direct observable of the value.
438
+ */
439
+ flatten() {
440
+ return ge({
441
+ owner: void 0,
442
+ debugName: () => `${this.debugName} (flattened)`
443
+ }, (e) => this.read(e).read(e));
444
+ }
445
+ recomputeInitiallyAndOnChange(e, o) {
446
+ return e.add(po(this, o)), this;
447
+ }
448
+ /**
449
+ * Ensures that this observable is observed. This keeps the cache alive.
450
+ * However, in case of deriveds, it does not force eager evaluation (only when the value is read/get).
451
+ * Use `recomputeInitiallyAndOnChange` for eager evaluation.
452
+ */
453
+ keepObserved(e) {
454
+ return e.add(go(this)), this;
455
+ }
456
+ get debugValue() {
457
+ return this.get();
458
+ }
459
+ debugGetDependencyGraph() {
460
+ return uo(this);
461
+ }
462
+ }
463
+ class Se extends sr {
464
+ constructor(e) {
465
+ var o;
466
+ super(), this._observers = /* @__PURE__ */ new Set(), (o = w()) == null || o.handleObservableCreated(this, e);
467
+ }
468
+ addObserver(e) {
469
+ var n;
470
+ const o = this._observers.size;
471
+ this._observers.add(e), o === 0 && this.onFirstObserverAdded(), o !== this._observers.size && ((n = w()) == null || n.handleOnListenerCountChanged(this, this._observers.size));
472
+ }
473
+ removeObserver(e) {
474
+ var n;
475
+ const o = this._observers.delete(e);
476
+ o && this._observers.size === 0 && this.onLastObserverRemoved(), o && ((n = w()) == null || n.handleOnListenerCountChanged(this, this._observers.size));
477
+ }
478
+ onFirstObserverAdded() {
479
+ }
480
+ onLastObserverRemoved() {
481
+ }
482
+ log() {
483
+ var o;
484
+ const e = !!w();
485
+ return er(this), e || (o = w()) == null || o.handleObservableCreated(this, M.ofCaller()), this;
486
+ }
487
+ debugGetObservers() {
488
+ return this._observers;
489
+ }
490
+ }
491
+ function mo(r) {
492
+ return {
493
+ dispose: r
494
+ };
495
+ }
496
+ class P extends Error {
497
+ constructor(e) {
498
+ super(e || "An unexpected bug occurred."), Object.setPrototypeOf(this, P.prototype);
499
+ }
500
+ }
501
+ function ie(r) {
502
+ throw r;
503
+ }
504
+ function pr(r) {
505
+ console.error("Unexpected error:", r);
506
+ }
507
+ const Y = (r, e) => r === e;
508
+ class X {
509
+ constructor() {
510
+ this.disposables = [], this._isDisposed = !1;
511
+ }
512
+ get isDisposed() {
513
+ return this._isDisposed;
514
+ }
515
+ dispose() {
516
+ this.clear(), this._isDisposed = !0;
517
+ }
518
+ add(e) {
519
+ return e && this.disposables.push(e), e;
520
+ }
521
+ remove(e) {
522
+ if (!e)
523
+ return e;
524
+ const o = this.disposables.indexOf(e);
525
+ return o !== -1 && this.disposables.splice(o, 1), e;
526
+ }
527
+ clear() {
528
+ for (const e of this.disposables)
529
+ e.dispose();
530
+ this.disposables = [];
531
+ }
532
+ leakItems() {
533
+ this.disposables = [];
534
+ }
535
+ }
536
+ function gr(r) {
537
+ switch (r) {
538
+ case 0:
539
+ return "initial";
540
+ case 1:
541
+ return "dependenciesMightHaveChanged";
542
+ case 2:
543
+ return "stale";
544
+ case 3:
545
+ return "upToDate";
546
+ default:
547
+ return "<unknown>";
548
+ }
549
+ }
550
+ class W extends Se {
551
+ get debugName() {
552
+ return this._debugNameData.getDebugName(this) ?? "(anonymous)";
553
+ }
554
+ constructor(e, o, n, t = void 0, i, c) {
555
+ var d;
556
+ 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);
557
+ }
558
+ onLastObserverRemoved() {
559
+ var e, o;
560
+ this._state = 0, this._value = void 0, (e = w()) == null || e.handleDerivedCleared(this);
561
+ for (const n of this._dependencies)
562
+ n.removeObserver(this);
563
+ 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);
564
+ }
565
+ get() {
566
+ var o, n;
567
+ if (this._isComputing, this._observers.size === 0) {
568
+ let t;
569
+ try {
570
+ this._isReaderValid = !0;
571
+ let i;
572
+ this._changeTracker && (i = this._changeTracker.createChangeSummary(void 0), (n = (o = this._changeTracker).beforeUpdate) == null || n.call(o, this, i)), t = this._computeFn(this, i);
573
+ } finally {
574
+ this._isReaderValid = !1;
575
+ }
576
+ return this.onLastObserverRemoved(), t;
577
+ } else {
578
+ do {
579
+ if (this._state === 1) {
580
+ for (const t of this._dependencies)
581
+ if (t.reportChanges(), this._state === 2)
582
+ break;
583
+ }
584
+ this._state === 1 && (this._state = 3), this._state !== 3 && this._recompute();
585
+ } while (this._state !== 3);
586
+ return this._value;
587
+ }
588
+ }
589
+ _recompute() {
590
+ var n, t, i, c;
591
+ let e = !1;
592
+ this._isComputing = !0, this._didReportChange = !1;
593
+ const o = this._dependenciesToBeRemoved;
594
+ this._dependenciesToBeRemoved = this._dependencies, this._dependencies = o;
595
+ try {
596
+ const d = this._changeSummary;
597
+ 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));
598
+ const l = this._state !== 0, p = this._value;
599
+ this._state = 3;
600
+ const g = this._delayedStore;
601
+ g !== void 0 && (this._delayedStore = void 0);
602
+ try {
603
+ this._store !== void 0 && (this._store.dispose(), this._store = void 0), this._value = this._computeFn(this, d);
604
+ } finally {
605
+ this._isReaderValid = !1;
606
+ for (const v of this._dependenciesToBeRemoved)
607
+ v.removeObserver(this);
608
+ this._dependenciesToBeRemoved.clear(), g !== void 0 && g.dispose();
609
+ }
610
+ e = this._didReportChange || l && !this._equalityComparator(p, this._value), (c = w()) == null || c.handleObservableUpdated(this, {
611
+ oldValue: p,
612
+ newValue: this._value,
613
+ change: void 0,
614
+ didChange: e,
615
+ hadValue: l
616
+ });
617
+ } catch (d) {
618
+ ie(d);
619
+ }
620
+ if (this._isComputing = !1, !this._didReportChange && e)
621
+ for (const d of this._observers)
622
+ d.handleChange(this, void 0);
623
+ else
624
+ this._didReportChange = !1;
625
+ }
626
+ toString() {
627
+ return `LazyDerived<${this.debugName}>`;
628
+ }
629
+ // IObserver Implementation
630
+ beginUpdate(e) {
631
+ if (this._isUpdating)
632
+ throw new P("Cyclic deriveds are not supported yet!");
633
+ this._updateCount++, this._isUpdating = !0;
634
+ try {
635
+ const o = this._updateCount === 1;
636
+ if (this._state === 3 && (this._state = 1, !o))
637
+ for (const n of this._observers)
638
+ n.handlePossibleChange(this);
639
+ if (o)
640
+ for (const n of this._observers)
641
+ n.beginUpdate(this);
642
+ } finally {
643
+ this._isUpdating = !1;
644
+ }
645
+ }
646
+ endUpdate(e) {
647
+ if (this._updateCount--, this._updateCount === 0) {
648
+ const o = [...this._observers];
649
+ for (const n of o)
650
+ n.endUpdate(this);
651
+ if (this._removedObserverToCallEndUpdateOn) {
652
+ const n = [...this._removedObserverToCallEndUpdateOn];
653
+ this._removedObserverToCallEndUpdateOn = null;
654
+ for (const t of n)
655
+ t.endUpdate(this);
656
+ }
657
+ }
658
+ }
659
+ handlePossibleChange(e) {
660
+ if (this._state === 3 && this._dependencies.has(e) && !this._dependenciesToBeRemoved.has(e)) {
661
+ this._state = 1;
662
+ for (const o of this._observers)
663
+ o.handlePossibleChange(this);
664
+ }
665
+ }
666
+ handleChange(e, o) {
667
+ var n;
668
+ if (this._dependencies.has(e) && !this._dependenciesToBeRemoved.has(e) || this._isInBeforeUpdate) {
669
+ (n = w()) == null || n.handleDerivedDependencyChanged(this, e, o);
670
+ let t = !1;
671
+ try {
672
+ t = this._changeTracker ? this._changeTracker.handleChange({
673
+ changedObservable: e,
674
+ change: o,
675
+ didChange: (c) => c === e
676
+ }, this._changeSummary) : !0;
677
+ } catch (c) {
678
+ ie(c);
679
+ }
680
+ const i = this._state === 3;
681
+ if (t && (this._state === 1 || i) && (this._state = 2, i))
682
+ for (const c of this._observers)
683
+ c.handlePossibleChange(this);
684
+ }
685
+ }
686
+ // IReader Implementation
687
+ _ensureReaderValid() {
688
+ if (!this._isReaderValid)
689
+ throw new P("The reader object cannot be used outside its compute function!");
690
+ }
691
+ readObservable(e) {
692
+ this._ensureReaderValid(), e.addObserver(this);
693
+ const o = e.get();
694
+ return this._dependencies.add(e), this._dependenciesToBeRemoved.delete(e), o;
695
+ }
696
+ reportChange(e) {
697
+ this._ensureReaderValid(), this._didReportChange = !0;
698
+ for (const o of this._observers)
699
+ o.handleChange(this, e);
700
+ }
701
+ get store() {
702
+ return this._ensureReaderValid(), this._store === void 0 && (this._store = new X()), this._store;
703
+ }
704
+ get delayedStore() {
705
+ return this._ensureReaderValid(), this._delayedStore === void 0 && (this._delayedStore = new X()), this._delayedStore;
706
+ }
707
+ addObserver(e) {
708
+ const o = !this._observers.has(e) && this._updateCount > 0;
709
+ super.addObserver(e), o && (this._removedObserverToCallEndUpdateOn && this._removedObserverToCallEndUpdateOn.has(e) ? this._removedObserverToCallEndUpdateOn.delete(e) : e.beginUpdate(this));
710
+ }
711
+ removeObserver(e) {
712
+ this._observers.has(e) && this._updateCount > 0 && (this._removedObserverToCallEndUpdateOn || (this._removedObserverToCallEndUpdateOn = /* @__PURE__ */ new Set()), this._removedObserverToCallEndUpdateOn.add(e)), super.removeObserver(e);
713
+ }
714
+ debugGetState() {
715
+ return {
716
+ state: this._state,
717
+ stateStr: gr(this._state),
718
+ updateCount: this._updateCount,
719
+ isComputing: this._isComputing,
720
+ dependencies: this._dependencies,
721
+ value: this._value
722
+ };
723
+ }
724
+ debugSetValue(e) {
725
+ this._value = e;
726
+ }
727
+ debugRecompute() {
728
+ this._isComputing ? this._state = 2 : this._recompute();
729
+ }
730
+ setValue(e, o, n) {
731
+ this._value = e;
732
+ const t = this._observers;
733
+ o.updateObserver(this, this);
734
+ for (const i of t)
735
+ i.handleChange(this, n);
736
+ }
737
+ }
738
+ function R(r, e, o = M.ofCaller()) {
739
+ 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);
740
+ }
741
+ function ur(r, e, o = M.ofCaller()) {
742
+ return new W(new V(r.owner, r.debugName, r.debugReferenceFn), e, void 0, r.onLastObserverRemoved, r.equalsFn ?? Y, o);
743
+ }
744
+ cr(ur);
745
+ function mr(r, e, o = M.ofCaller()) {
746
+ let n, t;
747
+ n = r, t = void 0;
748
+ let i;
749
+ return new W(new V(t, void 0, n), (c) => {
750
+ i ? i.clear() : i = new X();
751
+ const d = n(c);
752
+ return d && i.add(d), d;
753
+ }, void 0, () => {
754
+ i && (i.dispose(), i = void 0);
755
+ }, Y, o);
756
+ }
757
+ function fr(r) {
758
+ switch (r) {
759
+ case 1:
760
+ return "dependenciesMightHaveChanged";
761
+ case 2:
762
+ return "stale";
763
+ case 3:
764
+ return "upToDate";
765
+ default:
766
+ return "<unknown>";
767
+ }
768
+ }
769
+ class fo {
770
+ get debugName() {
771
+ return this._debugNameData.getDebugName(this) ?? "(anonymous)";
772
+ }
773
+ constructor(e, o, n, t) {
774
+ var i, c;
775
+ 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 = w()) == null || c.handleAutorunCreated(this, t), this._run();
776
+ }
777
+ dispose() {
778
+ var e;
779
+ if (!this._disposed) {
780
+ this._disposed = !0;
781
+ for (const o of this._dependencies)
782
+ o.removeObserver(this);
783
+ this._dependencies.clear(), this._store !== void 0 && this._store.dispose(), this._delayedStore !== void 0 && this._delayedStore.dispose(), (e = w()) == null || e.handleAutorunDisposed(this);
784
+ }
785
+ }
786
+ _run() {
787
+ var o, n, t, i;
788
+ const e = this._dependenciesToBeRemoved;
789
+ this._dependenciesToBeRemoved = this._dependencies, this._dependencies = e, this._state = 3;
790
+ try {
791
+ if (!this._disposed) {
792
+ (o = w()) == null || o.handleAutorunStarted(this);
793
+ const c = this._changeSummary, d = this._delayedStore;
794
+ d !== void 0 && (this._delayedStore = void 0);
795
+ try {
796
+ 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);
797
+ } catch (l) {
798
+ ie(l);
799
+ } finally {
800
+ this._isRunning = !1, d !== void 0 && d.dispose();
801
+ }
802
+ }
803
+ } finally {
804
+ this._disposed || (i = w()) == null || i.handleAutorunFinished(this);
805
+ for (const c of this._dependenciesToBeRemoved)
806
+ c.removeObserver(this);
807
+ this._dependenciesToBeRemoved.clear();
808
+ }
809
+ }
810
+ toString() {
811
+ return `Autorun<${this.debugName}>`;
812
+ }
813
+ // IObserver implementation
814
+ beginUpdate(e) {
815
+ this._state === 3 && (this._state = 1), this._updateCount++;
816
+ }
817
+ endUpdate(e) {
818
+ try {
819
+ if (this._updateCount === 1)
820
+ do {
821
+ if (this._state === 1) {
822
+ this._state = 3;
823
+ for (const o of this._dependencies)
824
+ if (o.reportChanges(), this._state === 2)
825
+ break;
826
+ }
827
+ this._state !== 3 && this._run();
828
+ } while (this._state !== 3);
829
+ } finally {
830
+ this._updateCount--;
831
+ }
832
+ }
833
+ handlePossibleChange(e) {
834
+ this._state === 3 && this._isDependency(e) && (this._state = 1);
835
+ }
836
+ handleChange(e, o) {
837
+ var n;
838
+ if (this._isDependency(e)) {
839
+ (n = w()) == null || n.handleAutorunDependencyChanged(this, e, o);
840
+ try {
841
+ (this._changeTracker ? this._changeTracker.handleChange({
842
+ changedObservable: e,
843
+ change: o,
844
+ didChange: (i) => i === e
845
+ }, this._changeSummary) : !0) && (this._state = 2);
846
+ } catch (t) {
847
+ ie(t);
848
+ }
849
+ }
850
+ }
851
+ _isDependency(e) {
852
+ return this._dependencies.has(e) && !this._dependenciesToBeRemoved.has(e);
853
+ }
854
+ // IReader implementation
855
+ _ensureNoRunning() {
856
+ if (!this._isRunning)
857
+ throw new P("The reader object cannot be used outside its compute function!");
858
+ }
859
+ readObservable(e) {
860
+ if (this._ensureNoRunning(), this._disposed)
861
+ return e.get();
862
+ e.addObserver(this);
863
+ const o = e.get();
864
+ return this._dependencies.add(e), this._dependenciesToBeRemoved.delete(e), o;
865
+ }
866
+ get store() {
867
+ if (this._ensureNoRunning(), this._disposed)
868
+ throw new P("Cannot access store after dispose");
869
+ return this._store === void 0 && (this._store = new X()), this._store;
870
+ }
871
+ get delayedStore() {
872
+ if (this._ensureNoRunning(), this._disposed)
873
+ throw new P("Cannot access store after dispose");
874
+ return this._delayedStore === void 0 && (this._delayedStore = new X()), this._delayedStore;
875
+ }
876
+ debugGetState() {
877
+ return {
878
+ isRunning: this._isRunning,
879
+ updateCount: this._updateCount,
880
+ dependencies: this._dependencies,
881
+ state: this._state,
882
+ stateStr: fr(this._state)
883
+ };
884
+ }
885
+ debugRerun() {
886
+ this._isRunning ? this._state = 2 : this._run();
887
+ }
888
+ }
889
+ function ho(r, e = M.ofCaller()) {
890
+ return new fo(new V(void 0, void 0, r), r, void 0, e);
891
+ }
892
+ function ze(r) {
893
+ const e = new Error("BugIndicatingErrorRecovery: " + r);
894
+ pr(e), console.error("recovered from an error that indicates a bug", e);
895
+ }
896
+ function xo(r, e) {
897
+ const o = new bo(r, e);
898
+ try {
899
+ r(o);
900
+ } finally {
901
+ o.finish();
902
+ }
903
+ }
904
+ function hr(r, e, o) {
905
+ r ? e(r) : xo(e, o);
906
+ }
907
+ class bo {
908
+ constructor(e, o) {
909
+ var n;
910
+ this._fn = e, this._getDebugName = o, this._updatingObservers = [], (n = w()) == null || n.handleBeginTransaction(this);
911
+ }
912
+ getDebugName() {
913
+ return this._getDebugName ? this._getDebugName() : Ce(this._fn);
914
+ }
915
+ updateObserver(e, o) {
916
+ if (!this._updatingObservers) {
917
+ ze("Transaction already finished!"), xo((n) => {
918
+ n.updateObserver(e, o);
919
+ });
920
+ return;
921
+ }
922
+ this._updatingObservers.push({ observer: e, observable: o }), e.beginUpdate(o);
923
+ }
924
+ finish() {
925
+ var o;
926
+ const e = this._updatingObservers;
927
+ if (!e) {
928
+ ze("transaction.finish() has already been called!");
929
+ return;
930
+ }
931
+ for (let n = 0; n < e.length; n++) {
932
+ const { observer: t, observable: i } = e[n];
933
+ t.endUpdate(i);
934
+ }
935
+ this._updatingObservers = null, (o = w()) == null || o.handleEndTransaction(this);
936
+ }
937
+ debugGetUpdatingObservers() {
938
+ return this._updatingObservers;
939
+ }
940
+ }
941
+ function B(r, e, o = M.ofCaller()) {
942
+ let n;
943
+ 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);
944
+ }
945
+ class vo extends Se {
946
+ get debugName() {
947
+ return this._debugNameData.getDebugName(this) ?? "ObservableValue";
948
+ }
949
+ constructor(e, o, n, t) {
950
+ var i;
951
+ super(t), this._debugNameData = e, this._equalityComparator = n, this._value = o, (i = w()) == null || i.handleObservableUpdated(this, { hadValue: !1, newValue: o, change: void 0, didChange: !0, oldValue: void 0 });
952
+ }
953
+ get() {
954
+ return this._value;
955
+ }
956
+ set(e, o, n) {
957
+ var i;
958
+ if (n === void 0 && this._equalityComparator(this._value, e))
959
+ return;
960
+ let t;
961
+ o || (o = t = new bo(() => {
962
+ }, () => `Setting ${this.debugName}`));
963
+ try {
964
+ const c = this._value;
965
+ this._setValue(e), (i = w()) == null || i.handleObservableUpdated(this, { oldValue: c, newValue: e, change: n, didChange: !0, hadValue: !0 });
966
+ for (const d of this._observers)
967
+ o.updateObserver(d, this), d.handleChange(this, n);
968
+ } finally {
969
+ t && t.finish();
970
+ }
971
+ }
972
+ toString() {
973
+ return `${this.debugName}: ${this._value}`;
974
+ }
975
+ _setValue(e) {
976
+ this._value = e;
977
+ }
978
+ debugGetState() {
979
+ return {
980
+ value: this._value
981
+ };
982
+ }
983
+ debugSetValue(e) {
984
+ this._value = e;
985
+ }
986
+ }
987
+ function Pe(...r) {
988
+ let e, o, n, t;
989
+ 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());
990
+ }
991
+ class z extends Se {
992
+ constructor(e, o, n, t, i, c) {
993
+ super(c), this._debugNameData = e, this.event = o, this._getValue = n, this._getTransaction = t, this._equalityComparator = i, this._hasValue = !1, this.handleEvent = (d) => {
994
+ var b;
995
+ const l = this._getValue(d), p = this._value, g = !this._hasValue || !this._equalityComparator(p, l);
996
+ let v = !1;
997
+ g && (this._value = l, this._hasValue && (v = !0, hr(this._getTransaction(), (k) => {
998
+ var _;
999
+ (_ = w()) == null || _.handleObservableUpdated(this, { oldValue: p, newValue: l, change: void 0, didChange: g, hadValue: this._hasValue });
1000
+ for (const u of this._observers)
1001
+ k.updateObserver(u, this), u.handleChange(this, void 0);
1002
+ }, () => {
1003
+ const k = this.getDebugName();
1004
+ return "Event fired" + (k ? `: ${k}` : "");
1005
+ })), this._hasValue = !0), v || (b = w()) == null || b.handleObservableUpdated(this, { oldValue: p, newValue: l, change: void 0, didChange: g, hadValue: this._hasValue });
1006
+ };
1007
+ }
1008
+ getDebugName() {
1009
+ return this._debugNameData.getDebugName(this);
1010
+ }
1011
+ get debugName() {
1012
+ const e = this.getDebugName();
1013
+ return "From Event" + (e ? `: ${e}` : "");
1014
+ }
1015
+ onFirstObserverAdded() {
1016
+ this._subscription = this.event(this.handleEvent);
1017
+ }
1018
+ onLastObserverRemoved() {
1019
+ this._subscription.dispose(), this._subscription = void 0, this._hasValue = !1, this._value = void 0;
1020
+ }
1021
+ get() {
1022
+ return this._subscription ? (this._hasValue || this.handleEvent(void 0), this._value) : this._getValue(void 0);
1023
+ }
1024
+ debugSetValue(e) {
1025
+ this._value = e;
1026
+ }
1027
+ debugGetState() {
1028
+ return { value: this._value, hasValue: this._hasValue };
1029
+ }
1030
+ }
1031
+ (function(r) {
1032
+ r.Observer = z;
1033
+ function e(o, n) {
1034
+ let t = !1;
1035
+ z.globalTransaction === void 0 && (z.globalTransaction = o, t = !0);
1036
+ try {
1037
+ n();
1038
+ } finally {
1039
+ t && (z.globalTransaction = void 0);
1040
+ }
1041
+ }
1042
+ r.batchEventsGlobally = e;
1043
+ })(Pe || (Pe = {}));
1044
+ function xr(r) {
1045
+ const e = new ko(!1, void 0);
1046
+ return r.addObserver(e), mo(() => {
1047
+ r.removeObserver(e);
1048
+ });
1049
+ }
1050
+ dr(xr);
1051
+ function br(r, e) {
1052
+ const o = new ko(!0, e);
1053
+ r.addObserver(o);
1054
+ try {
1055
+ o.beginUpdate(r);
1056
+ } finally {
1057
+ o.endUpdate(r);
1058
+ }
1059
+ return mo(() => {
1060
+ r.removeObserver(o);
1061
+ });
1062
+ }
1063
+ ar(br);
1064
+ class ko {
1065
+ constructor(e, o) {
1066
+ this._forceRecompute = e, this._handleValue = o, this._counter = 0;
1067
+ }
1068
+ beginUpdate(e) {
1069
+ this._counter++;
1070
+ }
1071
+ endUpdate(e) {
1072
+ this._counter === 1 && this._forceRecompute && (this._handleValue ? this._handleValue(e.get()) : e.reportChanges()), this._counter--;
1073
+ }
1074
+ handlePossibleChange(e) {
1075
+ }
1076
+ handleChange(e, o) {
1077
+ }
1078
+ }
1079
+ let oe;
1080
+ function vr(r) {
1081
+ oe || (oe = new kr(), Yo(oe)), oe.addFilteredObj(r);
1082
+ }
1083
+ class kr {
1084
+ constructor() {
1085
+ this.indentation = 0, this.changedObservablesSets = /* @__PURE__ */ new WeakMap();
1086
+ }
1087
+ addFilteredObj(e) {
1088
+ this._filteredObjects || (this._filteredObjects = /* @__PURE__ */ new Set()), this._filteredObjects.add(e);
1089
+ }
1090
+ _isIncluded(e) {
1091
+ var o;
1092
+ return ((o = this._filteredObjects) == null ? void 0 : o.has(e)) ?? !0;
1093
+ }
1094
+ textToConsoleArgs(e) {
1095
+ return yr([
1096
+ $(Cr("| ", this.indentation)),
1097
+ e
1098
+ ]);
1099
+ }
1100
+ formatInfo(e) {
1101
+ return e.hadValue ? e.didChange ? [
1102
+ $(" "),
1103
+ I(Z(e.oldValue, 70), {
1104
+ color: "red",
1105
+ strikeThrough: !0
1106
+ }),
1107
+ $(" "),
1108
+ I(Z(e.newValue, 60), {
1109
+ color: "green"
1110
+ })
1111
+ ] : [$(" (unchanged)")] : [
1112
+ $(" "),
1113
+ I(Z(e.newValue, 60), {
1114
+ color: "green"
1115
+ }),
1116
+ $(" (initial)")
1117
+ ];
1118
+ }
1119
+ handleObservableCreated(e) {
1120
+ if (e instanceof W) {
1121
+ const o = e;
1122
+ this.changedObservablesSets.set(o, /* @__PURE__ */ new Set());
1123
+ }
1124
+ }
1125
+ handleOnListenerCountChanged(e, o) {
1126
+ }
1127
+ handleObservableUpdated(e, o) {
1128
+ if (this._isIncluded(e)) {
1129
+ if (e instanceof W) {
1130
+ this._handleDerivedRecomputed(e, o);
1131
+ return;
1132
+ }
1133
+ console.log(...this.textToConsoleArgs([
1134
+ U("observable value changed"),
1135
+ I(e.debugName, { color: "BlueViolet" }),
1136
+ ...this.formatInfo(o)
1137
+ ]));
1138
+ }
1139
+ }
1140
+ formatChanges(e) {
1141
+ if (e.size !== 0)
1142
+ return I(" (changed deps: " + [...e].map((o) => o.debugName).join(", ") + ")", { color: "gray" });
1143
+ }
1144
+ handleDerivedDependencyChanged(e, o, n) {
1145
+ var t;
1146
+ this._isIncluded(e) && ((t = this.changedObservablesSets.get(e)) == null || t.add(o));
1147
+ }
1148
+ _handleDerivedRecomputed(e, o) {
1149
+ if (!this._isIncluded(e))
1150
+ return;
1151
+ const n = this.changedObservablesSets.get(e);
1152
+ n && (console.log(...this.textToConsoleArgs([
1153
+ U("derived recomputed"),
1154
+ I(e.debugName, { color: "BlueViolet" }),
1155
+ ...this.formatInfo(o),
1156
+ this.formatChanges(n),
1157
+ { data: [{ fn: e._debugNameData.referenceFn ?? e._computeFn }] }
1158
+ ])), n.clear());
1159
+ }
1160
+ handleDerivedCleared(e) {
1161
+ this._isIncluded(e) && console.log(...this.textToConsoleArgs([
1162
+ U("derived cleared"),
1163
+ I(e.debugName, { color: "BlueViolet" })
1164
+ ]));
1165
+ }
1166
+ handleFromEventObservableTriggered(e, o) {
1167
+ this._isIncluded(e) && console.log(...this.textToConsoleArgs([
1168
+ U("observable from event triggered"),
1169
+ I(e.debugName, { color: "BlueViolet" }),
1170
+ ...this.formatInfo(o),
1171
+ { data: [{ fn: e._getValue }] }
1172
+ ]));
1173
+ }
1174
+ handleAutorunCreated(e) {
1175
+ this._isIncluded(e) && this.changedObservablesSets.set(e, /* @__PURE__ */ new Set());
1176
+ }
1177
+ handleAutorunDisposed(e) {
1178
+ }
1179
+ handleAutorunDependencyChanged(e, o, n) {
1180
+ this._isIncluded(e) && this.changedObservablesSets.get(e).add(o);
1181
+ }
1182
+ handleAutorunStarted(e) {
1183
+ const o = this.changedObservablesSets.get(e);
1184
+ o && (this._isIncluded(e) && console.log(...this.textToConsoleArgs([
1185
+ U("autorun"),
1186
+ I(e.debugName, { color: "BlueViolet" }),
1187
+ this.formatChanges(o),
1188
+ { data: [{ fn: e._debugNameData.referenceFn ?? e._runFn }] }
1189
+ ])), o.clear(), this.indentation++);
1190
+ }
1191
+ handleAutorunFinished(e) {
1192
+ this.indentation--;
1193
+ }
1194
+ handleBeginTransaction(e) {
1195
+ let o = e.getDebugName();
1196
+ o === void 0 && (o = ""), this._isIncluded(e) && console.log(...this.textToConsoleArgs([
1197
+ U("transaction"),
1198
+ I(o, { color: "BlueViolet" }),
1199
+ { data: [{ fn: e._fn }] }
1200
+ ])), this.indentation++;
1201
+ }
1202
+ handleEndTransaction() {
1203
+ this.indentation--;
1204
+ }
1205
+ }
1206
+ function yr(r) {
1207
+ const e = new Array(), o = [];
1208
+ let n = "";
1209
+ function t(c) {
1210
+ if ("length" in c)
1211
+ for (const d of c)
1212
+ d && t(d);
1213
+ 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);
1214
+ }
1215
+ t(r);
1216
+ const i = [n, ...e];
1217
+ return i.push(...o), i;
1218
+ }
1219
+ function $(r) {
1220
+ return I(r, { color: "black" });
1221
+ }
1222
+ function U(r) {
1223
+ return I(Sr(`${r}: `, 10), { color: "black", bold: !0 });
1224
+ }
1225
+ function I(r, e = {
1226
+ color: "black"
1227
+ }) {
1228
+ function o(t) {
1229
+ return Object.entries(t).reduce((i, [c, d]) => `${i}${c}:${d};`, "");
1230
+ }
1231
+ const n = {
1232
+ color: e.color
1233
+ };
1234
+ return e.strikeThrough && (n["text-decoration"] = "line-through"), e.bold && (n["font-weight"] = "bold"), {
1235
+ text: r,
1236
+ style: o(n)
1237
+ };
1238
+ }
1239
+ function Z(r, e) {
1240
+ try {
1241
+ return wr(r, e);
1242
+ } catch {
1243
+ return "[[???]]";
1244
+ }
1245
+ }
1246
+ function wr(r, e) {
1247
+ switch (typeof r) {
1248
+ case "number":
1249
+ return "" + r;
1250
+ case "string":
1251
+ return r.length + 2 <= e ? `"${r}"` : `"${r.substr(0, e - 7)}"+...`;
1252
+ case "boolean":
1253
+ return r ? "true" : "false";
1254
+ case "undefined":
1255
+ return "undefined";
1256
+ case "object":
1257
+ return r === null ? "null" : Array.isArray(r) ? Br(r, e) : _r(r, e);
1258
+ case "symbol":
1259
+ return r.toString();
1260
+ case "function":
1261
+ return `[[Function${r.name ? " " + r.name : ""}]]`;
1262
+ default:
1263
+ return "" + r;
1264
+ }
1265
+ }
1266
+ function Br(r, e) {
1267
+ let o = "[ ", n = !0;
1268
+ for (const t of r) {
1269
+ if (n || (o += ", "), o.length - 5 > e) {
1270
+ o += "...";
1271
+ break;
1272
+ }
1273
+ n = !1, o += `${Z(t, e - o.length)}`;
1274
+ }
1275
+ return o += " ]", o;
1276
+ }
1277
+ function _r(r, e) {
1278
+ try {
1279
+ if (typeof r.toString == "function" && r.toString !== Object.prototype.toString) {
1280
+ const c = r.toString();
1281
+ return c.length <= e ? c : c.substring(0, e - 3) + "...";
1282
+ }
1283
+ } catch {
1284
+ return "[[Object]]";
1285
+ }
1286
+ const o = so(r);
1287
+ let n = o ? o + "(" : "{ ", t = !0, i;
1288
+ try {
1289
+ i = Object.entries(r);
1290
+ } catch {
1291
+ return o ? `${o}(...)` : "[[Object]]";
1292
+ }
1293
+ for (const [c, d] of i) {
1294
+ if (t || (n += ", "), n.length - 5 > e) {
1295
+ n += "...";
1296
+ break;
1297
+ }
1298
+ t = !1, n += `${c}: ${Z(d, e - n.length)}`;
1299
+ }
1300
+ return n += o ? ")" : " }", n;
1301
+ }
1302
+ function Cr(r, e) {
1303
+ let o = "";
1304
+ for (let n = 1; n <= e; n++)
1305
+ o += r;
1306
+ return o;
1307
+ }
1308
+ function Sr(r, e) {
1309
+ for (; r.length < e; )
1310
+ r += " ";
1311
+ return r;
1312
+ }
1313
+ function Fr(r, e) {
1314
+ const o = (e == null ? void 0 : e.debugNamePostProcessor) ?? ((i) => i), n = H.from(r, o);
1315
+ return n ? yo(n, 0, /* @__PURE__ */ new Set()).trim() : "";
1316
+ }
1317
+ function yo(r, e, o) {
1318
+ const n = " ".repeat(e), t = [];
1319
+ if (o.has(r.sourceObj))
1320
+ return t.push(`${n}* ${r.type} ${r.name} (already listed)`), t.join(`
1321
+ `);
1322
+ 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) {
1323
+ t.push(`${n} dependencies:`);
1324
+ for (const c of r.dependencies)
1325
+ t.push(yo(c, e + 1, o));
1326
+ }
1327
+ return t.join(`
1328
+ `);
1329
+ }
1330
+ class H {
1331
+ static from(e, o) {
1332
+ if (e instanceof fo) {
1333
+ const n = e.debugGetState();
1334
+ 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)));
1335
+ } else if (e instanceof W) {
1336
+ const n = e.debugGetState();
1337
+ 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)));
1338
+ } else if (e instanceof vo) {
1339
+ const n = e.debugGetState();
1340
+ return new H(e, o(e.debugName), "observableValue", n.value, "upToDate", []);
1341
+ } else if (e instanceof z) {
1342
+ const n = e.debugGetState();
1343
+ return new H(e, o(e.debugName), "fromEvent", n.value, n.hasValue ? "upToDate" : "initial", []);
1344
+ }
1345
+ }
1346
+ static unknown(e) {
1347
+ return new H(e, "(unknown)", "unknown", void 0, "unknown", []);
1348
+ }
1349
+ constructor(e, o, n, t, i, c) {
1350
+ this.sourceObj = e, this.name = o, this.type = n, this.value = t, this.state = i, this.dependencies = c;
1351
+ }
1352
+ }
1353
+ lr(Fr);
1354
+ Xo(vr);
1355
+ class Ir {
1356
+ constructor() {
1357
+ s(this, "_fixtures", B(this, /* @__PURE__ */ new Map()));
1358
+ s(this, "loading", B(this, !1));
1359
+ s(this, "root", R(this, (e) => {
1360
+ const o = this._fixtures.read(e);
1361
+ return te(o);
1362
+ }));
1363
+ }
1364
+ register(e, o) {
1365
+ const n = new Map(this._fixtures.get());
1366
+ n.set(e, o), this._fixtures.set(n, void 0);
1367
+ }
1368
+ unregister(e) {
1369
+ const o = new Map(this._fixtures.get());
1370
+ o.delete(e) && this._fixtures.set(o, void 0);
1371
+ }
1372
+ clear() {
1373
+ this._fixtures.set(/* @__PURE__ */ new Map(), void 0);
1374
+ }
1375
+ getNode(e, o) {
1376
+ const n = this.root.read(e);
1377
+ return Le(n, o);
1378
+ }
1379
+ getComponentByPath(e) {
1380
+ const o = this._fixtures.get(), n = te(o), t = Le(n, e);
1381
+ return t == null ? void 0 : t.component;
1382
+ }
1383
+ }
1384
+ class Rr {
1385
+ constructor(e) {
1386
+ this._run = e, this._changes = [], this._map = /* @__PURE__ */ new Map(), this._updateCounter = 0;
1387
+ }
1388
+ addDependency(e, o) {
1389
+ return this._map.set(e, o), e.addObserver(this), {
1390
+ dispose: () => {
1391
+ this._map.delete(e), e.removeObserver(this);
1392
+ }
1393
+ };
1394
+ }
1395
+ beginUpdate(e) {
1396
+ this._updateCounter++, this._changes.push(this._map.get(e));
1397
+ }
1398
+ endUpdate(e) {
1399
+ if (this._updateCounter--, this._updateCounter === 0 && this._changes.length > 0) {
1400
+ const o = this._changes;
1401
+ this._changes = [], this._run(o);
1402
+ }
1403
+ }
1404
+ handlePossibleChange(e) {
1405
+ this._changes.push(this._map.get(e));
1406
+ }
1407
+ handleChange(e, o) {
1408
+ }
1409
+ }
1410
+ function m() {
1411
+ return ue.instance;
1412
+ }
1413
+ function Er() {
1414
+ return me.instance;
1415
+ }
1416
+ function Hr() {
1417
+ return fe.instance;
1418
+ }
1419
+ m.const = Er;
1420
+ m.obs = Hr;
1421
+ class ue {
1422
+ create(e) {
1423
+ const o = R((n) => e(n));
1424
+ return { read: (n) => o };
1425
+ }
1426
+ }
1427
+ ue.instance = new ue();
1428
+ class me {
1429
+ create(e) {
1430
+ const o = R((n) => e(n));
1431
+ return { read: (n) => o.read(n) };
1432
+ }
1433
+ }
1434
+ me.instance = new me();
1435
+ class fe {
1436
+ create(e) {
1437
+ const o = R((n) => {
1438
+ const t = e(n);
1439
+ return Tr(t) ? t.read(n) : t;
1440
+ });
1441
+ return { read: (n) => o };
1442
+ }
1443
+ }
1444
+ fe.instance = new fe();
1445
+ function Tr(r) {
1446
+ return typeof r == "object" && r !== null && "read" in r;
1447
+ }
1448
+ function K(r, e) {
1449
+ return Object.fromEntries(Object.entries(r).map(([o, n]) => [o, e(n, o)]));
1450
+ }
1451
+ const de = Symbol("ViewModelContext");
1452
+ class Mr {
1453
+ constructor(e) {
1454
+ this._store = new X(), this.props = e;
1455
+ }
1456
+ dispose() {
1457
+ this._store.dispose();
1458
+ }
1459
+ }
1460
+ function Or(r) {
1461
+ return r[de] || (r[de] = io(void 0)), r[de];
1462
+ }
1463
+ function L(r = {}) {
1464
+ var e;
1465
+ return e = class extends Mr {
1466
+ }, e._props = r, e;
1467
+ }
1468
+ let he = 0;
1469
+ const Vr = new Rr((r) => {
1470
+ for (const e of r)
1471
+ e.rendered = !1;
1472
+ if (he > 0) {
1473
+ const e = r.find((o) => o.isRendering);
1474
+ e.itemsToRender = r;
1475
+ } else
1476
+ co(() => {
1477
+ for (const e of r)
1478
+ e.rendered || e.forceUpdate();
1479
+ });
1480
+ });
1481
+ let Lr = 0;
1482
+ class Dr {
1483
+ constructor(e, o) {
1484
+ 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 = () => () => {
1485
+ var n;
1486
+ (n = this._disposable) == null || n.dispose();
1487
+ }, this.itemsToRender = [], this.handleAfterRender = () => {
1488
+ co(() => {
1489
+ for (const n of this.itemsToRender)
1490
+ n.rendered || n.forceUpdate();
1491
+ }), this.itemsToRender = [];
1492
+ }, this.rendering = void 0, this.isRendering = !1, this.rendered = !1;
1493
+ }
1494
+ toString() {
1495
+ return this.debugName;
1496
+ }
1497
+ updateProps(e) {
1498
+ this._obsProps ? this._obsProps.set(e, void 0) : (this._obsProps = B(this, e), this._render = this.renderFactory(this._obsProps, () => this.contextValues), this.rendering = R(this, this._render), this._disposable = Vr.addDependency(this.rendering, this));
1499
+ }
1500
+ }
1501
+ function Fe(r, e, o) {
1502
+ const n = (c) => c + 1, t = () => new Dr(r + ++Lr, e), i = function(c) {
1503
+ const d = $o(n, 0)[1], l = Uo(t)[0];
1504
+ for (const p of o ?? [])
1505
+ l.contextValues.set(p, jo(p));
1506
+ if (Me(l.cleanupEffect, []), Me(l.handleAfterRender), l.isRendering)
1507
+ throw new Error("Component is already rendering");
1508
+ l.isRendering = !0, he++;
1509
+ try {
1510
+ l.forceUpdate = d, l.updateProps(c);
1511
+ const p = l.rendering.get();
1512
+ return l.rendered = !0, p;
1513
+ } finally {
1514
+ l.isRendering = !1, he--;
1515
+ }
1516
+ };
1517
+ return i.displayName = r, i;
1518
+ }
1519
+ Fe("ObsView", (r) => (e) => r.read(e).children(e));
1520
+ function E(r, e) {
1521
+ return Fe("view", (o) => {
1522
+ const n = K(r, (t, i) => t.create((c) => o.read(c)[i], void 0));
1523
+ return (t) => {
1524
+ const i = K(n, (c) => c.read(t));
1525
+ return e(t, i);
1526
+ };
1527
+ });
1528
+ }
1529
+ function Nr(r) {
1530
+ const e = [];
1531
+ for (const o of Object.values(r)) {
1532
+ const n = o._requiredContext;
1533
+ n && !e.includes(n) && e.push(n);
1534
+ }
1535
+ return e;
1536
+ }
1537
+ function D(r, e, o) {
1538
+ const n = typeof e == "function" ? {} : e, t = typeof e == "function" ? e : o, i = "_props" in r ? r._props : {}, c = Nr({ ...i, ...n }), d = Or(r), l = [...c, d];
1539
+ return Fe("viewWithModel", (p, g) => {
1540
+ const v = g(), b = v.get(d), k = "_props" in r ? K(r._props, (h, y) => h.create((C) => p.read(C)[y], v.get(h._requiredContext))) : {}, _ = b ? { read: () => b, dispose: () => {
1541
+ } } : mr((h) => {
1542
+ const y = K(k, (C) => C.read(h));
1543
+ return new r(y);
1544
+ }), u = K(n, (h, y) => h.create((C) => p.read(C)[y], v.get(h._requiredContext)));
1545
+ return (h) => {
1546
+ const y = _.read(h), C = K(u, (ee) => ee.read(h));
1547
+ return t(h, y, C);
1548
+ };
1549
+ }, l.length > 0 ? l : void 0);
1550
+ }
1551
+ E({ value: m.obs() }, (r, e) => e.value.read(r));
1552
+ io(null);
1553
+ function wo(r) {
1554
+ var e;
1555
+ return {
1556
+ id: r.id,
1557
+ name: r.name,
1558
+ type: r.type,
1559
+ children: (e = r.children) == null ? void 0 : e.map(wo),
1560
+ component: r.component,
1561
+ labels: r.labels
1562
+ };
1563
+ }
1564
+ function Gr(r, e) {
1565
+ if (r.name.toLowerCase().includes(e)) return !0;
1566
+ for (const o of r.labels)
1567
+ if (o.toLowerCase().includes(e)) return !0;
1568
+ return !1;
1569
+ }
1570
+ function Ar(r, e) {
1571
+ if (!e) return r;
1572
+ const o = e.toLowerCase();
1573
+ return Bo(r, o);
1574
+ }
1575
+ function Bo(r, e) {
1576
+ const o = Gr(r, e);
1577
+ if (!r.children || r.children.length === 0)
1578
+ return o ? r : void 0;
1579
+ if (o) return r;
1580
+ const n = [];
1581
+ for (const t of r.children) {
1582
+ const i = Bo(t, e);
1583
+ i && n.push(i);
1584
+ }
1585
+ if (n.length !== 0)
1586
+ return {
1587
+ ...r,
1588
+ children: n
1589
+ };
1590
+ }
1591
+ function re(r, e) {
1592
+ const {
1593
+ storageKey: o,
1594
+ defaultValue: n,
1595
+ serialize: t = JSON.stringify,
1596
+ deserialize: i = JSON.parse
1597
+ } = e;
1598
+ let c = n;
1599
+ try {
1600
+ const p = localStorage.getItem(o);
1601
+ p !== null && (c = i(p));
1602
+ } catch {
1603
+ }
1604
+ const d = B(r, c), l = d.set.bind(d);
1605
+ return d.set = (p, g) => {
1606
+ try {
1607
+ localStorage.setItem(o, t(p));
1608
+ } catch {
1609
+ }
1610
+ l(p, g);
1611
+ }, d;
1612
+ }
1613
+ function We(r, e) {
1614
+ const n = new URLSearchParams(location.search).get(e) || void 0, t = B(r, n);
1615
+ window.addEventListener("popstate", () => {
1616
+ const c = new URLSearchParams(location.search);
1617
+ t.set(c.get(e) || void 0, void 0);
1618
+ });
1619
+ const i = t.set.bind(t);
1620
+ return t.set = (c, d) => {
1621
+ const l = new URLSearchParams(location.search);
1622
+ c ? l.set(e, c) : l.delete(e);
1623
+ const p = l.toString(), g = location.pathname + (p ? "?" + p : "") + location.hash;
1624
+ history.replaceState(history.state, "", g), i(c, d);
1625
+ }, t;
1626
+ }
1627
+ function _o(r, e) {
1628
+ const o = new URLSearchParams(location.search);
1629
+ return o.set(r, e), location.pathname + "?" + o.toString();
1630
+ }
1631
+ class zr extends L({
1632
+ registry: m.const(),
1633
+ daemonModel: m.const(),
1634
+ reportModel: m.const()
1635
+ }) {
1636
+ constructor() {
1637
+ super(...arguments);
1638
+ s(this, "leftSidebarVisible", re(this, {
1639
+ storageKey: "component-explorer:leftSidebarVisible",
1640
+ defaultValue: !0
1641
+ }));
1642
+ s(this, "rightSidebarVisible", re(this, {
1643
+ storageKey: "component-explorer:rightSidebarVisible",
1644
+ defaultValue: !1
1645
+ }));
1646
+ s(this, "isDarkTheme", re(this, {
1647
+ storageKey: "component-explorer:isDarkTheme",
1648
+ defaultValue: !0
1649
+ }));
1650
+ s(this, "selectedNodeId", We(this, "fixture"));
1651
+ s(this, "expandedNodeIds", B(this, this._initialExpandedNodes()));
1652
+ s(this, "viewMode", re(this, {
1653
+ storageKey: "component-explorer:viewMode",
1654
+ defaultValue: "session"
1655
+ }));
1656
+ s(this, "loading", R(this, (o) => this.props.registry.loading.read(o)));
1657
+ s(this, "searchQuery", We(this, "search"));
1658
+ /** The explorer's tree derived from the registry or report */
1659
+ s(this, "tree", R(this, (o) => {
1660
+ const n = this.props.reportModel;
1661
+ if (n)
1662
+ return n.buildTree(o);
1663
+ const t = this.props.registry.root.read(o);
1664
+ return wo(t);
1665
+ }));
1666
+ s(this, "filteredTree", R(this, (o) => {
1667
+ const n = this.tree.read(o), t = this.searchQuery.read(o);
1668
+ return Ar(n, t) ?? { ...n, children: [] };
1669
+ }));
1670
+ s(this, "selectedNode", R(this, (o) => {
1671
+ const n = this.selectedNodeId.read(o);
1672
+ if (n === void 0) return;
1673
+ const t = this.filteredTree.read(o);
1674
+ return t.id.value === n ? t : this._findNode(t.children ?? [], n);
1675
+ }));
1676
+ /** List of preview rows to render based on current selection and view mode */
1677
+ s(this, "selectedFixtures", R(this, (o) => {
1678
+ const n = this.selectedNode.read(o);
1679
+ if (!n) return [];
1680
+ const t = n.type === "component" ? n.id.segments.slice(-3).join(" / ") : n.name;
1681
+ 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);
1682
+ }));
1683
+ s(this, "setViewMode", (o) => {
1684
+ this.viewMode.set(o, void 0);
1685
+ });
1686
+ s(this, "navigateToSession", (o) => {
1687
+ const n = this.props.daemonModel;
1688
+ if (!n) return;
1689
+ const t = n.getSessionExplorerUrl(o);
1690
+ t && (window.location.href = t);
1691
+ });
1692
+ s(this, "toggleLeftSidebar", () => {
1693
+ this.leftSidebarVisible.set(!this.leftSidebarVisible.get(), void 0);
1694
+ });
1695
+ s(this, "toggleRightSidebar", () => {
1696
+ this.rightSidebarVisible.set(!this.rightSidebarVisible.get(), void 0);
1697
+ });
1698
+ s(this, "toggleTheme", () => {
1699
+ this.isDarkTheme.set(!this.isDarkTheme.get(), void 0);
1700
+ });
1701
+ s(this, "selectNode", (o) => {
1702
+ this.selectedNodeId.set(o, void 0);
1703
+ });
1704
+ s(this, "toggleNodeExpanded", (o) => {
1705
+ const n = this.expandedNodeIds.get(), t = new Set(n);
1706
+ t.has(o) ? t.delete(o) : t.add(o), this.expandedNodeIds.set(t, void 0);
1707
+ });
1708
+ }
1709
+ get daemonAvailable() {
1710
+ return this.props.daemonModel !== void 0;
1711
+ }
1712
+ get daemon() {
1713
+ return this.props.daemonModel;
1714
+ }
1715
+ get reportModel() {
1716
+ return this.props.reportModel;
1717
+ }
1718
+ get isReportMode() {
1719
+ return this.props.reportModel !== void 0;
1720
+ }
1721
+ isNodeExpanded(o, n) {
1722
+ return this.searchQuery.read(n) ? !0 : this.expandedNodeIds.read(n).has(o);
1723
+ }
1724
+ _initialExpandedNodes() {
1725
+ const o = this.selectedNodeId.get();
1726
+ if (!o) return /* @__PURE__ */ new Set([""]);
1727
+ const n = new T(o).segments, t = /* @__PURE__ */ new Set([""]);
1728
+ for (let i = 1; i <= n.length; i++)
1729
+ t.add(n.slice(0, i).join("/"));
1730
+ return t;
1731
+ }
1732
+ _findNode(o, n) {
1733
+ for (const t of o) {
1734
+ if (t.id.value === n) return t;
1735
+ if (t.children) {
1736
+ const i = this._findNode(t.children, n);
1737
+ if (i) return i;
1738
+ }
1739
+ }
1740
+ }
1741
+ _collectPreviewRows(o, n) {
1742
+ if (o.type === "component" && o.component)
1743
+ return [{
1744
+ type: "single",
1745
+ fixture: {
1746
+ id: o.id.value,
1747
+ name: o.name,
1748
+ path: n,
1749
+ component: o.component
1750
+ }
1751
+ }];
1752
+ if (o.type === "variants") {
1753
+ const i = [];
1754
+ for (const c of o.children ?? [])
1755
+ c.type === "component" && c.component && i.push({
1756
+ id: c.id.value,
1757
+ name: c.name,
1758
+ path: `${n} / ${c.name}`,
1759
+ component: c.component
1760
+ });
1761
+ return i.length > 0 ? [{
1762
+ type: "variants",
1763
+ id: o.id.value,
1764
+ name: o.name,
1765
+ path: n,
1766
+ fixtures: i
1767
+ }] : [];
1768
+ }
1769
+ const t = [];
1770
+ for (const i of o.children ?? []) {
1771
+ const c = n ? `${n} / ${i.name}` : i.name;
1772
+ t.push(...this._collectPreviewRows(i, c));
1773
+ }
1774
+ return t;
1775
+ }
1776
+ /**
1777
+ * In diff mode: fixtures become screenshot comparison items showing current vs baseline.
1778
+ * Variants become comparison groups.
1779
+ */
1780
+ _collectDiffRows(o, n) {
1781
+ if (o.type === "component")
1782
+ return [{
1783
+ type: "screenshot-comparison",
1784
+ id: o.id.value,
1785
+ name: o.name,
1786
+ path: n,
1787
+ items: [{
1788
+ fixtureId: o.id.value,
1789
+ name: o.name,
1790
+ path: n
1791
+ }]
1792
+ }];
1793
+ if (o.type === "variants") {
1794
+ const i = [];
1795
+ for (const c of o.children ?? [])
1796
+ c.type === "component" && i.push({
1797
+ fixtureId: c.id.value,
1798
+ name: c.name,
1799
+ path: `${n} / ${c.name}`
1800
+ });
1801
+ return i.length > 0 ? [{
1802
+ type: "screenshot-comparison",
1803
+ id: o.id.value,
1804
+ name: o.name,
1805
+ path: n,
1806
+ items: i
1807
+ }] : [];
1808
+ }
1809
+ const t = [];
1810
+ for (const i of o.children ?? []) {
1811
+ const c = n ? `${n} / ${i.name}` : i.name;
1812
+ t.push(...this._collectDiffRows(i, c));
1813
+ }
1814
+ return t;
1815
+ }
1816
+ _collectReportRows(o, n) {
1817
+ const t = this.props.reportModel.state.get();
1818
+ if (t.status !== "ready") return [];
1819
+ const i = t.report.fixtures;
1820
+ if (o.type === "component") {
1821
+ const d = i[o.id.value];
1822
+ return d ? [{
1823
+ type: "report-comparison",
1824
+ id: o.id.value,
1825
+ name: o.name,
1826
+ path: n,
1827
+ items: [{
1828
+ fixtureId: o.id.value,
1829
+ name: o.name,
1830
+ path: n,
1831
+ entry: d
1832
+ }]
1833
+ }] : [];
1834
+ }
1835
+ const c = [];
1836
+ for (const d of o.children ?? []) {
1837
+ const l = n ? `${n} / ${d.name}` : d.name;
1838
+ c.push(...this._collectReportRows(d, l));
1839
+ }
1840
+ return c;
1841
+ }
1842
+ }
1843
+ const x = {
1844
+ container: {
1845
+ display: "flex",
1846
+ flexDirection: "row",
1847
+ height: "100%",
1848
+ width: "100%",
1849
+ fontFamily: "var(--component-explorer-font-family)",
1850
+ fontSize: "var(--component-explorer-font-size)",
1851
+ color: "var(--component-explorer-foreground)",
1852
+ backgroundColor: "var(--component-explorer-editor-background)"
1853
+ },
1854
+ centerArea: {
1855
+ display: "flex",
1856
+ flexDirection: "column",
1857
+ flex: 1,
1858
+ overflow: "hidden"
1859
+ },
1860
+ titleBar: {
1861
+ display: "flex",
1862
+ alignItems: "center",
1863
+ justifyContent: "space-between",
1864
+ height: "35px",
1865
+ minHeight: "35px",
1866
+ padding: "0 10px",
1867
+ backgroundColor: "var(--component-explorer-titleBar-activeBackground)",
1868
+ color: "var(--component-explorer-titleBar-activeForeground)",
1869
+ borderBottom: "1px solid var(--component-explorer-titleBar-border, var(--component-explorer-panel-border))"
1870
+ },
1871
+ titleBarSection: {
1872
+ display: "flex",
1873
+ alignItems: "center",
1874
+ gap: "2px"
1875
+ },
1876
+ titleBarCenter: {
1877
+ display: "flex",
1878
+ alignItems: "center",
1879
+ gap: "4px",
1880
+ fontSize: "13px",
1881
+ fontWeight: 400
1882
+ },
1883
+ titleBarButton: {
1884
+ display: "flex",
1885
+ alignItems: "center",
1886
+ justifyContent: "center",
1887
+ width: "28px",
1888
+ height: "28px",
1889
+ border: "none",
1890
+ background: "transparent",
1891
+ color: "var(--component-explorer-titleBar-activeForeground)",
1892
+ cursor: "pointer",
1893
+ borderRadius: "4px"
1894
+ },
1895
+ titleBarButtonHover: {
1896
+ backgroundColor: "var(--component-explorer-toolbar-hoverBackground)"
1897
+ },
1898
+ titleBarButtonActive: {
1899
+ backgroundColor: "var(--component-explorer-toolbar-activeBackground)",
1900
+ color: "var(--component-explorer-focusBorder)"
1901
+ },
1902
+ sidebar: {
1903
+ display: "flex",
1904
+ flexDirection: "column",
1905
+ width: "260px",
1906
+ minWidth: "200px",
1907
+ backgroundColor: "var(--component-explorer-sideBar-background)",
1908
+ borderRight: "1px solid var(--component-explorer-titleBar-border, var(--component-explorer-panel-border))"
1909
+ },
1910
+ sidebarRight: {
1911
+ borderRight: "none",
1912
+ borderLeft: "1px solid var(--component-explorer-titleBar-border, var(--component-explorer-panel-border))"
1913
+ },
1914
+ sidebarHeader: {
1915
+ display: "flex",
1916
+ alignItems: "center",
1917
+ height: "35px",
1918
+ minHeight: "35px",
1919
+ padding: "0 12px",
1920
+ fontSize: "11px",
1921
+ fontWeight: 700,
1922
+ textTransform: "uppercase",
1923
+ letterSpacing: "0.04em",
1924
+ color: "var(--component-explorer-titleBar-activeForeground)",
1925
+ backgroundColor: "var(--component-explorer-titleBar-activeBackground)",
1926
+ borderBottom: "1px solid var(--component-explorer-titleBar-border, var(--component-explorer-panel-border))"
1927
+ },
1928
+ sidebarContent: {
1929
+ flex: 1,
1930
+ overflow: "auto",
1931
+ padding: "4px 0"
1932
+ },
1933
+ treeItem: {
1934
+ display: "flex",
1935
+ alignItems: "center",
1936
+ height: "22px",
1937
+ paddingRight: "8px",
1938
+ cursor: "pointer",
1939
+ userSelect: "none"
1940
+ },
1941
+ treeItemSelected: {
1942
+ backgroundColor: "var(--component-explorer-list-activeSelectionBackground)",
1943
+ color: "var(--component-explorer-list-activeSelectionForeground)"
1944
+ },
1945
+ treeItemHover: {
1946
+ backgroundColor: "var(--component-explorer-list-hoverBackground)"
1947
+ },
1948
+ treeItemChevron: {
1949
+ display: "flex",
1950
+ alignItems: "center",
1951
+ justifyContent: "center",
1952
+ width: "16px",
1953
+ height: "16px",
1954
+ color: "var(--component-explorer-foreground)",
1955
+ opacity: 0.8,
1956
+ cursor: "pointer"
1957
+ },
1958
+ treeItemChevronPlaceholder: {
1959
+ width: "16px"
1960
+ },
1961
+ treeItemIcon: {
1962
+ display: "flex",
1963
+ alignItems: "center",
1964
+ justifyContent: "center",
1965
+ width: "16px",
1966
+ height: "16px",
1967
+ marginRight: "4px"
1968
+ },
1969
+ treeItemLabel: {
1970
+ flex: 1,
1971
+ overflow: "hidden",
1972
+ textOverflow: "ellipsis",
1973
+ whiteSpace: "nowrap",
1974
+ fontSize: "13px"
1975
+ },
1976
+ treeItemCount: {
1977
+ marginLeft: "8px",
1978
+ fontSize: "11px",
1979
+ color: "var(--component-explorer-descriptionForeground)"
1980
+ },
1981
+ mainContent: {
1982
+ flex: 1,
1983
+ display: "flex",
1984
+ alignItems: "center",
1985
+ justifyContent: "center",
1986
+ backgroundColor: "var(--component-explorer-editor-background)",
1987
+ color: "var(--component-explorer-descriptionForeground)",
1988
+ fontSize: "14px"
1989
+ },
1990
+ propertiesPanel: {
1991
+ padding: "12px"
1992
+ },
1993
+ propertyRow: {
1994
+ marginBottom: "12px"
1995
+ },
1996
+ propertyLabel: {
1997
+ fontSize: "12px",
1998
+ color: "var(--component-explorer-foreground)",
1999
+ marginBottom: "4px"
2000
+ },
2001
+ propertyDescription: {
2002
+ fontSize: "11px",
2003
+ color: "var(--component-explorer-descriptionForeground)",
2004
+ marginTop: "2px"
2005
+ },
2006
+ propertyInput: {
2007
+ width: "100%",
2008
+ height: "26px",
2009
+ padding: "0 8px",
2010
+ fontSize: "13px",
2011
+ color: "var(--component-explorer-input-foreground)",
2012
+ backgroundColor: "var(--component-explorer-input-background)",
2013
+ border: "1px solid var(--component-explorer-input-border, transparent)",
2014
+ borderRadius: "2px",
2015
+ outline: "none",
2016
+ boxSizing: "border-box"
2017
+ },
2018
+ propertySelect: {
2019
+ width: "100%",
2020
+ height: "26px",
2021
+ padding: "0 8px",
2022
+ fontSize: "13px",
2023
+ color: "var(--component-explorer-dropdown-foreground)",
2024
+ backgroundColor: "var(--component-explorer-dropdown-background)",
2025
+ border: "1px solid var(--component-explorer-dropdown-border)",
2026
+ borderRadius: "2px",
2027
+ outline: "none",
2028
+ boxSizing: "border-box",
2029
+ cursor: "pointer"
2030
+ }
2031
+ };
2032
+ function Ie(...r) {
2033
+ return Object.assign({}, ...r.filter(Boolean));
2034
+ }
2035
+ class Pr extends L({
2036
+ active: m()
2037
+ }) {
2038
+ constructor() {
2039
+ super(...arguments);
2040
+ s(this, "isHovered", B(this, !1));
2041
+ s(this, "setHovered", (o) => {
2042
+ this.isHovered.set(o, void 0);
2043
+ });
2044
+ }
2045
+ get active() {
2046
+ return this.props.active;
2047
+ }
2048
+ }
2049
+ const le = D(
2050
+ Pr,
2051
+ {
2052
+ onClick: m.const(),
2053
+ title: m.const(),
2054
+ children: m.const()
2055
+ },
2056
+ (r, e, o) => {
2057
+ const n = e.isHovered.read(r), t = e.active.read(r), i = Ie(
2058
+ x.titleBarButton,
2059
+ n && !t && x.titleBarButtonHover,
2060
+ t && x.titleBarButtonActive
2061
+ );
2062
+ return /* @__PURE__ */ a(
2063
+ "button",
2064
+ {
2065
+ style: i,
2066
+ onClick: o.onClick,
2067
+ title: o.title,
2068
+ onMouseEnter: () => e.setHovered(!0),
2069
+ onMouseLeave: () => e.setHovered(!1),
2070
+ children: o.children
2071
+ }
2072
+ );
2073
+ }
2074
+ ), Wr = ({ 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" }) }), $r = ({ 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)" }) }), Ur = ({ 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" }) }), 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 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" }) }), Qr = () => /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ a("path", { d: "M2 2v12h12V2H2zm6 11V3h5v10H8zM3 3h4v10H3V3z" }) }), Kr = () => /* @__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" }) }), Jr = () => /* @__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" }) }), Zr = E(
2075
+ { model: m.const() },
2076
+ (r, e) => {
2077
+ var d, l;
2078
+ 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);
2079
+ return t.length <= 1 ? null : /* @__PURE__ */ f("div", { style: J.container, children: [
2080
+ /* @__PURE__ */ f("div", { style: J.segmentedControl, children: [
2081
+ /* @__PURE__ */ a($e, { label: "Live", mode: "session", active: n === "session", onClick: () => o.setViewMode("session") }),
2082
+ /* @__PURE__ */ a($e, { label: "Diff", mode: "diff", active: n === "diff", onClick: () => o.setViewMode("diff") })
2083
+ ] }),
2084
+ c.length > 0 && /* @__PURE__ */ a("div", { style: J.sessionLinks, children: c.map((p) => /* @__PURE__ */ f(
2085
+ "button",
2086
+ {
2087
+ style: J.sessionLink,
2088
+ onClick: () => o.navigateToSession(p.name),
2089
+ title: `Switch to ${p.name} session`,
2090
+ children: [
2091
+ "→ ",
2092
+ p.name
2093
+ ]
2094
+ },
2095
+ p.name
2096
+ )) })
2097
+ ] });
2098
+ }
2099
+ );
2100
+ function $e({ label: r, mode: e, active: o, onClick: n }) {
2101
+ return /* @__PURE__ */ a(
2102
+ "button",
2103
+ {
2104
+ style: o ? J.segmentActive : J.segment,
2105
+ onClick: n,
2106
+ children: r
2107
+ }
2108
+ );
2109
+ }
2110
+ const Yr = E(
2111
+ {
2112
+ model: m.const()
2113
+ },
2114
+ (r, e) => {
2115
+ const o = e.model, n = o.leftSidebarVisible.read(r), t = o.rightSidebarVisible.read(r), i = o.isDarkTheme.read(r), c = o.selectedNode.read(r);
2116
+ return /* @__PURE__ */ f("div", { style: x.titleBar, children: [
2117
+ /* @__PURE__ */ a("div", { style: x.titleBarSection, children: /* @__PURE__ */ a(
2118
+ le,
2119
+ {
2120
+ active: n,
2121
+ onClick: o.toggleLeftSidebar,
2122
+ title: "Toggle left sidebar",
2123
+ children: /* @__PURE__ */ a(qr, {})
2124
+ }
2125
+ ) }),
2126
+ /* @__PURE__ */ f("div", { style: x.titleBarCenter, children: [
2127
+ o.isReportMode ? /* @__PURE__ */ a("span", { style: { fontSize: 12, color: "var(--component-explorer-descriptionForeground)" }, children: "Screenshot Report" }) : o.daemonAvailable ? /* @__PURE__ */ a(Zr, { model: o }) : null,
2128
+ c ? /* @__PURE__ */ f(ke, { children: [
2129
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-textLink-foreground)" }, children: "<" }),
2130
+ /* @__PURE__ */ a("span", { children: c.name }),
2131
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-textLink-foreground)" }, children: "/>" })
2132
+ ] }) : /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-descriptionForeground)" }, children: "No component selected" })
2133
+ ] }),
2134
+ /* @__PURE__ */ f("div", { style: x.titleBarSection, children: [
2135
+ /* @__PURE__ */ a(
2136
+ le,
2137
+ {
2138
+ active: !1,
2139
+ onClick: o.toggleTheme,
2140
+ title: i ? "Switch to light theme" : "Switch to dark theme",
2141
+ children: i ? /* @__PURE__ */ a(Kr, {}) : /* @__PURE__ */ a(Jr, {})
2142
+ }
2143
+ ),
2144
+ /* @__PURE__ */ a(
2145
+ le,
2146
+ {
2147
+ active: t,
2148
+ onClick: o.toggleRightSidebar,
2149
+ title: "Toggle right sidebar",
2150
+ children: /* @__PURE__ */ a(Qr, {})
2151
+ }
2152
+ )
2153
+ ] })
2154
+ ] });
2155
+ }
2156
+ ), J = {
2157
+ container: {
2158
+ display: "flex",
2159
+ alignItems: "center",
2160
+ gap: 8,
2161
+ marginRight: 12
2162
+ },
2163
+ segmentedControl: {
2164
+ display: "flex",
2165
+ borderRadius: 4,
2166
+ overflow: "hidden",
2167
+ border: "1px solid var(--component-explorer-panel-border)"
2168
+ },
2169
+ segment: {
2170
+ padding: "2px 10px",
2171
+ fontSize: 11,
2172
+ fontWeight: 500,
2173
+ border: "none",
2174
+ background: "transparent",
2175
+ color: "var(--component-explorer-descriptionForeground)",
2176
+ cursor: "pointer"
2177
+ },
2178
+ segmentActive: {
2179
+ padding: "2px 10px",
2180
+ fontSize: 11,
2181
+ fontWeight: 500,
2182
+ border: "none",
2183
+ background: "var(--component-explorer-button-background)",
2184
+ color: "var(--component-explorer-button-foreground)",
2185
+ cursor: "pointer"
2186
+ },
2187
+ sessionLinks: {
2188
+ display: "flex",
2189
+ gap: 4
2190
+ },
2191
+ sessionLink: {
2192
+ padding: "2px 8px",
2193
+ fontSize: 11,
2194
+ border: "1px solid var(--component-explorer-panel-border)",
2195
+ borderRadius: 4,
2196
+ background: "transparent",
2197
+ color: "var(--component-explorer-textLink-foreground)",
2198
+ cursor: "pointer"
2199
+ }
2200
+ }, Xr = {
2201
+ display: "flex",
2202
+ gap: "3px",
2203
+ marginLeft: "6px",
2204
+ overflow: "hidden",
2205
+ flexShrink: 1,
2206
+ minWidth: 0
2207
+ };
2208
+ function Co(r) {
2209
+ return r.type === "component" ? 1 : (r.children ?? []).reduce((e, o) => e + Co(o), 0);
2210
+ }
2211
+ const en = {
2212
+ fontSize: "10px",
2213
+ lineHeight: "14px",
2214
+ padding: "0 4px",
2215
+ borderRadius: "2px",
2216
+ backgroundColor: "var(--component-explorer-badge-background)",
2217
+ color: "var(--component-explorer-badge-foreground)",
2218
+ whiteSpace: "nowrap",
2219
+ overflow: "hidden",
2220
+ textOverflow: "ellipsis",
2221
+ maxWidth: "60px",
2222
+ cursor: "pointer"
2223
+ }, So = E(
2224
+ {
2225
+ model: m.const(),
2226
+ nodes: m.const(),
2227
+ depth: m.const()
2228
+ },
2229
+ (r, e) => /* @__PURE__ */ a(ke, { children: e.nodes.map((o) => /* @__PURE__ */ a(rn, { model: e.model, node: o, depth: e.depth }, o.id.value)) })
2230
+ );
2231
+ class on extends L({
2232
+ model: m.const(),
2233
+ node: m.const(),
2234
+ depth: m.const()
2235
+ }) {
2236
+ constructor() {
2237
+ super(...arguments);
2238
+ s(this, "isHovered", B(this, !1));
2239
+ s(this, "setHovered", (o) => {
2240
+ this.isHovered.set(o, void 0);
2241
+ });
2242
+ s(this, "handleClick", () => {
2243
+ this.props.model.selectNode(this.props.node.id.value);
2244
+ });
2245
+ s(this, "handleDoubleClick", () => {
2246
+ this._hasChildren && this.props.model.toggleNodeExpanded(this.props.node.id.value);
2247
+ });
2248
+ s(this, "handleChevronClick", (o) => {
2249
+ o.stopPropagation(), this.props.model.toggleNodeExpanded(this.props.node.id.value);
2250
+ });
2251
+ }
2252
+ // Expose props for render function
2253
+ get explorerModel() {
2254
+ return this.props.model;
2255
+ }
2256
+ get treeNode() {
2257
+ return this.props.node;
2258
+ }
2259
+ get treeDepth() {
2260
+ return this.props.depth;
2261
+ }
2262
+ get _hasChildren() {
2263
+ return !!(this.props.node.children && this.props.node.children.length > 0);
2264
+ }
2265
+ }
2266
+ const rn = D(on, {}, (r, e) => {
2267
+ 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 = Ie(
2268
+ x.treeItem,
2269
+ { paddingLeft: `${8 + t * 12}px` },
2270
+ l && x.treeItemSelected,
2271
+ !l && p && x.treeItemHover
2272
+ );
2273
+ return /* @__PURE__ */ f(ke, { children: [
2274
+ /* @__PURE__ */ f(
2275
+ "div",
2276
+ {
2277
+ style: g,
2278
+ onClick: e.handleClick,
2279
+ onDoubleClick: e.handleDoubleClick,
2280
+ onMouseEnter: () => e.setHovered(!0),
2281
+ onMouseLeave: () => e.setHovered(!1),
2282
+ children: [
2283
+ i ? /* @__PURE__ */ a("div", { style: x.treeItemChevron, onClick: e.handleChevronClick, children: c ? /* @__PURE__ */ a($r, {}) : /* @__PURE__ */ a(Wr, {}) }) : /* @__PURE__ */ a("div", { style: x.treeItemChevronPlaceholder }),
2284
+ /* @__PURE__ */ a("div", { style: x.treeItemIcon, children: n.type === "folder" ? /* @__PURE__ */ a(jr, { style: { color: "var(--component-explorer-symbolIcon-folderForeground)" } }) : /* @__PURE__ */ a(Ur, { style: { color: "#deb45b" } }) }),
2285
+ /* @__PURE__ */ a("span", { style: x.treeItemLabel, children: n.name }),
2286
+ n.labels.some((v) => !v.startsWith(".")) && /* @__PURE__ */ a("span", { style: Xr, children: n.labels.filter((v) => !v.startsWith(".")).map((v) => /* @__PURE__ */ a(
2287
+ "span",
2288
+ {
2289
+ style: en,
2290
+ onClick: (b) => {
2291
+ b.stopPropagation(), o.searchQuery.set(v, void 0);
2292
+ },
2293
+ title: v,
2294
+ children: v
2295
+ },
2296
+ v
2297
+ )) }),
2298
+ n.type === "folder" && i && /* @__PURE__ */ a("span", { style: x.treeItemCount, children: Co(n) })
2299
+ ]
2300
+ }
2301
+ ),
2302
+ i && c && /* @__PURE__ */ a(So, { model: o, nodes: n.children, depth: t + 1 })
2303
+ ] });
2304
+ }), nn = {
2305
+ padding: "4px 8px",
2306
+ borderBottom: "1px solid var(--component-explorer-panel-border)"
2307
+ }, tn = {
2308
+ width: "100%",
2309
+ height: "24px",
2310
+ padding: "0 22px 0 6px",
2311
+ fontSize: "12px",
2312
+ color: "var(--component-explorer-input-foreground)",
2313
+ backgroundColor: "var(--component-explorer-input-background)",
2314
+ border: "1px solid var(--component-explorer-input-border, transparent)",
2315
+ borderRadius: "2px",
2316
+ outline: "none",
2317
+ boxSizing: "border-box"
2318
+ }, cn = {
2319
+ position: "relative"
2320
+ }, an = {
2321
+ position: "absolute",
2322
+ right: "2px",
2323
+ top: "50%",
2324
+ transform: "translateY(-50%)",
2325
+ display: "flex",
2326
+ alignItems: "center",
2327
+ justifyContent: "center",
2328
+ width: "18px",
2329
+ height: "18px",
2330
+ border: "none",
2331
+ background: "transparent",
2332
+ color: "var(--component-explorer-input-foreground)",
2333
+ cursor: "pointer",
2334
+ borderRadius: "2px",
2335
+ fontSize: "14px",
2336
+ opacity: 0.7
2337
+ }, dn = E(
2338
+ {
2339
+ model: m.const()
2340
+ },
2341
+ (r, e) => {
2342
+ const o = e.model.searchQuery.read(r);
2343
+ return /* @__PURE__ */ a("div", { style: nn, children: /* @__PURE__ */ f("div", { style: cn, children: [
2344
+ /* @__PURE__ */ a(
2345
+ "input",
2346
+ {
2347
+ type: "text",
2348
+ placeholder: "Filter (name or label)",
2349
+ style: tn,
2350
+ value: o ?? "",
2351
+ onChange: (n) => e.model.searchQuery.set(n.target.value || void 0, void 0),
2352
+ onFocus: (n) => n.target.style.borderColor = "var(--component-explorer-focusBorder)",
2353
+ onBlur: (n) => n.target.style.borderColor = "var(--component-explorer-input-border, transparent)"
2354
+ }
2355
+ ),
2356
+ o && /* @__PURE__ */ a(
2357
+ "button",
2358
+ {
2359
+ style: an,
2360
+ onClick: () => e.model.searchQuery.set(void 0, void 0),
2361
+ title: "Clear filter",
2362
+ children: "×"
2363
+ }
2364
+ )
2365
+ ] }) });
2366
+ }
2367
+ ), ln = E(
2368
+ {
2369
+ model: m.const()
2370
+ },
2371
+ (r, e) => {
2372
+ const o = e.model.filteredTree.read(r);
2373
+ return /* @__PURE__ */ f("div", { style: x.sidebar, children: [
2374
+ /* @__PURE__ */ a("div", { style: x.sidebarHeader, children: "Explorer" }),
2375
+ /* @__PURE__ */ a(dn, { model: e.model }),
2376
+ /* @__PURE__ */ a("div", { style: x.sidebarContent, children: /* @__PURE__ */ a(So, { model: e.model, nodes: [o], depth: 0 }) })
2377
+ ] });
2378
+ }
2379
+ );
2380
+ class sn extends L({}) {
2381
+ constructor() {
2382
+ super(...arguments);
2383
+ s(this, "checked", B(this, !1));
2384
+ s(this, "toggle", () => {
2385
+ this.checked.set(!this.checked.get(), void 0);
2386
+ });
2387
+ }
2388
+ }
2389
+ const pn = D(sn, {}, (r, e) => {
2390
+ const o = e.checked.read(r), n = {
2391
+ position: "relative",
2392
+ width: "36px",
2393
+ height: "18px",
2394
+ backgroundColor: o ? "var(--component-explorer-button-background)" : "var(--component-explorer-input-background)",
2395
+ borderRadius: "9px",
2396
+ cursor: "pointer",
2397
+ transition: "background-color 0.2s",
2398
+ border: "1px solid var(--component-explorer-input-border, transparent)"
2399
+ }, t = {
2400
+ position: "absolute",
2401
+ top: "2px",
2402
+ left: o ? "18px" : "2px",
2403
+ width: "12px",
2404
+ height: "12px",
2405
+ backgroundColor: "var(--component-explorer-foreground)",
2406
+ borderRadius: "50%",
2407
+ transition: "left 0.2s"
2408
+ };
2409
+ return /* @__PURE__ */ a("div", { style: n, onClick: e.toggle, children: /* @__PURE__ */ a("div", { style: t }) });
2410
+ }), gn = E(
2411
+ {
2412
+ node: m.const()
2413
+ },
2414
+ (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: x.propertiesPanel, children: [
2415
+ /* @__PURE__ */ f("div", { style: x.propertyRow, children: [
2416
+ /* @__PURE__ */ f("div", { style: x.propertyLabel, children: [
2417
+ "children",
2418
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-descriptionForeground)" }, children: " : string" })
2419
+ ] }),
2420
+ /* @__PURE__ */ a(
2421
+ "input",
2422
+ {
2423
+ type: "text",
2424
+ style: x.propertyInput,
2425
+ defaultValue: "Click me",
2426
+ placeholder: "Enter text..."
2427
+ }
2428
+ ),
2429
+ /* @__PURE__ */ a("div", { style: x.propertyDescription, children: "Button text content" })
2430
+ ] }),
2431
+ /* @__PURE__ */ f("div", { style: x.propertyRow, children: [
2432
+ /* @__PURE__ */ f("div", { style: x.propertyLabel, children: [
2433
+ "variant",
2434
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-descriptionForeground)" }, children: " : select" })
2435
+ ] }),
2436
+ /* @__PURE__ */ f("select", { style: x.propertySelect, defaultValue: "default", children: [
2437
+ /* @__PURE__ */ a("option", { value: "default", children: "default" }),
2438
+ /* @__PURE__ */ a("option", { value: "primary", children: "primary" }),
2439
+ /* @__PURE__ */ a("option", { value: "secondary", children: "secondary" }),
2440
+ /* @__PURE__ */ a("option", { value: "destructive", children: "destructive" })
2441
+ ] }),
2442
+ /* @__PURE__ */ a("div", { style: x.propertyDescription, children: "Visual style variant" })
2443
+ ] }),
2444
+ /* @__PURE__ */ f("div", { style: x.propertyRow, children: [
2445
+ /* @__PURE__ */ f("div", { style: x.propertyLabel, children: [
2446
+ "size",
2447
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-descriptionForeground)" }, children: " : select" })
2448
+ ] }),
2449
+ /* @__PURE__ */ f("select", { style: x.propertySelect, defaultValue: "default", children: [
2450
+ /* @__PURE__ */ a("option", { value: "sm", children: "sm" }),
2451
+ /* @__PURE__ */ a("option", { value: "default", children: "default" }),
2452
+ /* @__PURE__ */ a("option", { value: "lg", children: "lg" })
2453
+ ] }),
2454
+ /* @__PURE__ */ a("div", { style: x.propertyDescription, children: "Button size" })
2455
+ ] }),
2456
+ /* @__PURE__ */ f("div", { style: x.propertyRow, children: [
2457
+ /* @__PURE__ */ f("div", { style: x.propertyLabel, children: [
2458
+ "disabled",
2459
+ /* @__PURE__ */ a("span", { style: { color: "var(--component-explorer-descriptionForeground)" }, children: " : boolean" })
2460
+ ] }),
2461
+ /* @__PURE__ */ a(pn, {}),
2462
+ /* @__PURE__ */ a("div", { style: x.propertyDescription, children: "Disable the button" })
2463
+ ] })
2464
+ ] })
2465
+ ), un = E(
2466
+ {
2467
+ selectedNode: m.const()
2468
+ },
2469
+ (r, e) => /* @__PURE__ */ f("div", { style: Ie(x.sidebar, x.sidebarRight), children: [
2470
+ /* @__PURE__ */ f("div", { style: x.sidebarHeader, children: [
2471
+ /* @__PURE__ */ a("span", { style: { marginRight: "6px", color: "var(--component-explorer-textLink-foreground)" }, children: "</>" }),
2472
+ "Props"
2473
+ ] }),
2474
+ /* @__PURE__ */ a("div", { style: x.sidebarContent, children: e.selectedNode ? /* @__PURE__ */ a(gn, { node: e.selectedNode }) : /* @__PURE__ */ a("div", { style: { padding: "12px", color: "var(--component-explorer-descriptionForeground)", fontSize: "12px" }, children: "Select a component to view its properties" }) })
2475
+ ] })
2476
+ ), Ue = 500;
2477
+ function Fo(r) {
2478
+ let e = null;
2479
+ function o() {
2480
+ if (e !== null) return e;
2481
+ try {
2482
+ const t = localStorage.getItem(r);
2483
+ if (t)
2484
+ return e = JSON.parse(t), e;
2485
+ } catch {
2486
+ }
2487
+ return e = {}, e;
2488
+ }
2489
+ function n() {
2490
+ if (e !== null)
2491
+ try {
2492
+ const t = Object.entries(e);
2493
+ t.length > Ue && (e = Object.fromEntries(t.slice(-Ue))), localStorage.setItem(r, JSON.stringify(e));
2494
+ } catch {
2495
+ }
2496
+ }
2497
+ return {
2498
+ get(t) {
2499
+ return o()[t];
2500
+ },
2501
+ set(t, i) {
2502
+ o()[t] = i, n();
2503
+ },
2504
+ getAll() {
2505
+ return new Map(Object.entries(o()));
2506
+ }
2507
+ };
2508
+ }
2509
+ const Io = Fo("component-explorer:fixtureHeights"), Ro = Fo("component-explorer:fixtureContentHeights");
2510
+ function mn(r, e) {
2511
+ Io.set(r, e);
2512
+ }
2513
+ function fn() {
2514
+ return Io.getAll();
2515
+ }
2516
+ function hn(r, e) {
2517
+ Ro.set(r, e);
2518
+ }
2519
+ function xn(r) {
2520
+ return Ro.get(r);
2521
+ }
2522
+ function je(r, e) {
2523
+ const o = [], n = [], t = e instanceof ShadowRoot ? e : e.head;
2524
+ for (const i of r)
2525
+ if (i.type === "css") {
2526
+ const c = document.createElement("style");
2527
+ c.textContent = i.content, t.appendChild(c), o.push(c);
2528
+ } else if (i.type === "url") {
2529
+ const c = document.createElement("link");
2530
+ c.rel = "stylesheet", c.href = i.href, t.appendChild(c), o.push(c);
2531
+ } else i.type === "adopted" && (e.adoptedStyleSheets = [...e.adoptedStyleSheets, i.sheet], n.push(i.sheet));
2532
+ return { injectedElements: o, adoptedSheets: n };
2533
+ }
2534
+ function bn(r, e, o) {
2535
+ for (const n of r)
2536
+ n.remove();
2537
+ for (const n of e)
2538
+ o.adoptedStyleSheets = o.adoptedStyleSheets.filter((t) => t !== n);
2539
+ }
2540
+ class Re {
2541
+ constructor(e, o) {
2542
+ s(this, "renderTarget");
2543
+ s(this, "iframe", null);
2544
+ s(this, "_abortController", new AbortController());
2545
+ s(this, "_resolvedResult");
2546
+ s(this, "_injectedElements", []);
2547
+ s(this, "_adoptedSheets", []);
2548
+ s(this, "_styleTarget", document);
2549
+ s(this, "_rendered");
2550
+ this.component = o;
2551
+ const n = o.isolation;
2552
+ if (n === "shadow-dom") {
2553
+ const i = e.attachShadow({ mode: "open" });
2554
+ if (this._styleTarget = i, o.styles) {
2555
+ const { injectedElements: c, adoptedSheets: d } = je(o.styles, i);
2556
+ this._injectedElements = c, this._adoptedSheets = d;
2557
+ }
2558
+ this.renderTarget = document.createElement("div"), i.appendChild(this.renderTarget);
2559
+ } else if (n === "iframe") {
2560
+ const i = document.createElement("iframe");
2561
+ i.style.border = "none", i.style.display = "block", i.style.width = "100%", i.style.height = (xn(o.id) ?? 0) + "px";
2562
+ const c = new URL(location.pathname, location.origin);
2563
+ c.searchParams.set("mode", "embedded"), c.searchParams.set("fixture", o.id), c.searchParams.set("file", o.sourceFile), i.src = c.toString(), e.appendChild(i), this.iframe = i;
2564
+ const d = (l) => {
2565
+ var p;
2566
+ if (l.source === i.contentWindow && ((p = l.data) == null ? void 0 : p.type) === "component-explorer:resize") {
2567
+ const g = l.data.height;
2568
+ i.style.height = g + "px", hn(o.id, g);
2569
+ }
2570
+ };
2571
+ window.addEventListener("message", d), this._abortController.signal.addEventListener("abort", () => {
2572
+ window.removeEventListener("message", d);
2573
+ }), this.renderTarget = i, this._rendered = Promise.resolve(void 0);
2574
+ return;
2575
+ } else {
2576
+ if (o.styles) {
2577
+ const { injectedElements: i, adoptedSheets: c } = je(o.styles, document);
2578
+ this._injectedElements = i, this._adoptedSheets = c;
2579
+ }
2580
+ this.renderTarget = document.createElement("div"), e.appendChild(this.renderTarget);
2581
+ }
2582
+ const t = o.render(this.renderTarget, {
2583
+ signal: this._abortController.signal
2584
+ });
2585
+ t instanceof Promise ? this._rendered = t.then((i) => {
2586
+ var c;
2587
+ if (this._abortController.signal.aborted) {
2588
+ (c = i == null ? void 0 : i.dispose) == null || c.call(i);
2589
+ return;
2590
+ }
2591
+ return this._resolvedResult = i ?? void 0, this._resolvedResult;
2592
+ }) : (this._resolvedResult = t ?? void 0, this._rendered = Promise.resolve(this._resolvedResult));
2593
+ }
2594
+ async waitForRendering() {
2595
+ const e = await this._rendered;
2596
+ return await (e == null ? void 0 : e.ready), e;
2597
+ }
2598
+ dispose() {
2599
+ var e, o;
2600
+ this._abortController.abort(), (o = (e = this._resolvedResult) == null ? void 0 : e.dispose) == null || o.call(e), this._resolvedResult = void 0, bn(this._injectedElements, this._adoptedSheets, this._styleTarget);
2601
+ }
2602
+ }
2603
+ let xe;
2604
+ function vn(r) {
2605
+ xe = r;
2606
+ }
2607
+ function kn() {
2608
+ if (!xe)
2609
+ throw new Error("Explorer shadow host not initialized");
2610
+ return xe;
2611
+ }
2612
+ const Eo = /* @__PURE__ */ new WeakSet(), qe = HTMLElement.prototype.focus;
2613
+ HTMLElement.prototype.focus = function(r) {
2614
+ !(r != null && r.preventScroll) && yn(this) ? qe.call(this, { ...r, preventScroll: !0 }) : qe.call(this, r);
2615
+ };
2616
+ function yn(r) {
2617
+ let e = r;
2618
+ for (; e; ) {
2619
+ if (e instanceof HTMLElement && Eo.has(e))
2620
+ return !0;
2621
+ e = e.parentElement;
2622
+ }
2623
+ return !1;
2624
+ }
2625
+ function wn(r) {
2626
+ Eo.add(r);
2627
+ }
2628
+ let Bn = 0;
2629
+ class _n extends L({
2630
+ fixture: m.const(),
2631
+ compact: m.const(),
2632
+ onSelect: m.const()
2633
+ }) {
2634
+ constructor() {
2635
+ super(...arguments);
2636
+ s(this, "_canvasRef", null);
2637
+ s(this, "_fixtureContainer", null);
2638
+ s(this, "_rendering", null);
2639
+ s(this, "_resizeObserver", null);
2640
+ s(this, "measuredWidth", B(this, void 0));
2641
+ s(this, "measuredHeight", B(this, void 0));
2642
+ s(this, "slotName", `fixture-${Bn++}`);
2643
+ s(this, "setCanvasRef", (o) => {
2644
+ if (o === this._canvasRef || (this._cleanup(), this._canvasRef = o, !o)) return;
2645
+ const n = kn(), t = document.createElement("div");
2646
+ t.slot = this.slotName;
2647
+ const i = this.fixture.component, c = i.displayMode;
2648
+ if (c.type === "page") {
2649
+ const l = c.viewports[0], p = Ko(l);
2650
+ t.style.width = `${p.width}px`, t.style.height = `${p.height}px`, t.style.overflow = "auto";
2651
+ } else
2652
+ t.style.all = "initial", t.style.display = "inline-block";
2653
+ n.appendChild(t), this._fixtureContainer = t, wn(t);
2654
+ const d = new Re(t, i);
2655
+ this._rendering = d, this._resizeObserver = new ResizeObserver((l) => {
2656
+ for (const p of l) {
2657
+ const { width: g, height: v } = p.contentRect;
2658
+ v > 0 && (this.measuredWidth.set(Math.round(g), void 0), this.measuredHeight.set(Math.round(v), void 0));
2659
+ }
2660
+ }), this._resizeObserver.observe(d.renderTarget);
2661
+ });
2662
+ }
2663
+ get fixture() {
2664
+ return this.props.fixture;
2665
+ }
2666
+ get compact() {
2667
+ return this.props.compact ?? !1;
2668
+ }
2669
+ get onSelect() {
2670
+ return this.props.onSelect;
2671
+ }
2672
+ _cleanup() {
2673
+ var o, n, t;
2674
+ (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;
2675
+ }
2676
+ dispose() {
2677
+ this._cleanup();
2678
+ }
2679
+ }
2680
+ const Ho = D(
2681
+ _n,
2682
+ {},
2683
+ (r, e) => {
2684
+ 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;
2685
+ return /* @__PURE__ */ f("div", { style: l, children: [
2686
+ /* @__PURE__ */ f("div", { style: q.labelRow, children: [
2687
+ c && /* @__PURE__ */ a(
2688
+ "a",
2689
+ {
2690
+ href: _o("fixture", o.id),
2691
+ style: { ...p, textDecoration: "none", color: "inherit" },
2692
+ onClick: (g) => {
2693
+ e.onSelect && (g.preventDefault(), e.onSelect(o.id));
2694
+ },
2695
+ children: o.name
2696
+ }
2697
+ ),
2698
+ !c && d && /* @__PURE__ */ a("span", { style: q.dimensions, children: d })
2699
+ ] }),
2700
+ /* @__PURE__ */ a("div", { ref: e.setCanvasRef, style: In(n.background), children: /* @__PURE__ */ a("slot", { name: e.slotName }) })
2701
+ ] });
2702
+ }
2703
+ ), j = 8;
2704
+ function To(r, e) {
2705
+ return `
2706
+ linear-gradient(45deg, ${e} 25%, transparent 25%),
2707
+ linear-gradient(-45deg, ${e} 25%, transparent 25%),
2708
+ linear-gradient(45deg, transparent 75%, ${e} 75%),
2709
+ linear-gradient(-45deg, transparent 75%, ${e} 75%)
2710
+ `;
2711
+ }
2712
+ const Cn = {
2713
+ backgroundColor: "#ffffff",
2714
+ backgroundImage: To("#ffffff", "#e5e5e5")
2715
+ }, Sn = {
2716
+ backgroundColor: "#1e1e1e",
2717
+ backgroundImage: To("#1e1e1e", "#2d2d2d")
2718
+ }, Fn = {
2719
+ display: "inline-block",
2720
+ padding: "12px",
2721
+ borderRadius: "4px",
2722
+ backgroundSize: `${j * 2}px ${j * 2}px`,
2723
+ backgroundPosition: `0 0, 0 ${j}px, ${j}px -${j}px, -${j}px 0`,
2724
+ boxShadow: "0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08)",
2725
+ overflow: "hidden",
2726
+ position: "relative"
2727
+ };
2728
+ function In(r) {
2729
+ const e = r === "dark" ? Sn : Cn;
2730
+ return {
2731
+ ...Fn,
2732
+ backgroundColor: e.backgroundColor,
2733
+ backgroundImage: e.backgroundImage
2734
+ };
2735
+ }
2736
+ const q = {
2737
+ wrapper: {
2738
+ marginBottom: "32px"
2739
+ },
2740
+ wrapperCompact: {
2741
+ marginBottom: "0"
2742
+ },
2743
+ labelRow: {
2744
+ display: "flex",
2745
+ alignItems: "baseline",
2746
+ gap: "8px",
2747
+ marginBottom: "8px"
2748
+ },
2749
+ name: {
2750
+ fontSize: "12px",
2751
+ fontWeight: 500,
2752
+ color: "var(--component-explorer-foreground)"
2753
+ },
2754
+ nameCompact: {
2755
+ fontSize: "11px",
2756
+ fontWeight: 500,
2757
+ color: "var(--component-explorer-descriptionForeground)"
2758
+ },
2759
+ dimensions: {
2760
+ fontSize: "11px",
2761
+ color: "var(--component-explorer-descriptionForeground)",
2762
+ fontFamily: "var(--component-explorer-editor-font-family, monospace)"
2763
+ }
2764
+ };
2765
+ class Rn extends L({
2766
+ fixtureId: m.const(),
2767
+ sessionName: m.const(),
2768
+ daemon: m.const()
2769
+ }) {
2770
+ constructor(o) {
2771
+ super(o);
2772
+ s(this, "screenshot", B(this, { status: "idle" }));
2773
+ s(this, "_fetchVersion", 0);
2774
+ this._store.add(ho((n) => {
2775
+ this.props.daemon.sourceTreeIds.read(n).get(this.props.sessionName) && this._fetchScreenshot();
2776
+ }));
2777
+ }
2778
+ get fixtureId() {
2779
+ return this.props.fixtureId;
2780
+ }
2781
+ async _fetchScreenshot() {
2782
+ const o = ++this._fetchVersion;
2783
+ this.screenshot.set({ status: "loading" }, void 0);
2784
+ try {
2785
+ const n = await this.props.daemon.getScreenshot(this.props.sessionName, this.props.fixtureId);
2786
+ o === this._fetchVersion && this.screenshot.set({ status: "ready", data: n }, void 0);
2787
+ } catch (n) {
2788
+ o === this._fetchVersion && this.screenshot.set({ status: "error", message: String(n) }, void 0);
2789
+ }
2790
+ }
2791
+ }
2792
+ const Qe = D(
2793
+ Rn,
2794
+ {},
2795
+ (r, e) => {
2796
+ const o = e.screenshot.read(r);
2797
+ if (o.status === "idle" || o.status === "loading")
2798
+ return /* @__PURE__ */ a("div", { style: N.placeholder, children: /* @__PURE__ */ a("div", { style: N.shimmer }) });
2799
+ if (o.status === "error")
2800
+ return /* @__PURE__ */ a("div", { style: N.error, children: /* @__PURE__ */ a("span", { style: N.errorText, children: "Screenshot failed" }) });
2801
+ const { data: n } = o;
2802
+ return n.image ? /* @__PURE__ */ a(
2803
+ "img",
2804
+ {
2805
+ src: `data:image/png;base64,${n.image}`,
2806
+ style: N.image,
2807
+ alt: `Screenshot of ${e.fixtureId}`
2808
+ }
2809
+ ) : /* @__PURE__ */ a("div", { style: N.placeholder, children: /* @__PURE__ */ a("span", { style: N.hashText, children: n.hash.slice(0, 12) }) });
2810
+ }
2811
+ ), N = {
2812
+ placeholder: {
2813
+ minHeight: 80,
2814
+ display: "flex",
2815
+ alignItems: "center",
2816
+ justifyContent: "center",
2817
+ backgroundColor: "var(--component-explorer-editor-background)",
2818
+ border: "1px solid var(--component-explorer-panel-border)",
2819
+ borderRadius: 4,
2820
+ overflow: "hidden"
2821
+ },
2822
+ shimmer: {
2823
+ width: "100%",
2824
+ height: 80,
2825
+ background: "linear-gradient(90deg, var(--component-explorer-editor-background) 25%, var(--component-explorer-list-hoverBackground) 50%, var(--component-explorer-editor-background) 75%)",
2826
+ backgroundSize: "200% 100%",
2827
+ animation: "shimmer 1.5s infinite"
2828
+ },
2829
+ error: {
2830
+ minHeight: 80,
2831
+ display: "flex",
2832
+ alignItems: "center",
2833
+ justifyContent: "center",
2834
+ backgroundColor: "var(--component-explorer-inputValidation-errorBackground)",
2835
+ border: "1px solid var(--component-explorer-inputValidation-errorBorder)",
2836
+ borderRadius: 4
2837
+ },
2838
+ errorText: {
2839
+ fontSize: 12,
2840
+ color: "var(--component-explorer-errorForeground)"
2841
+ },
2842
+ hashText: {
2843
+ fontSize: 11,
2844
+ color: "var(--component-explorer-descriptionForeground)",
2845
+ fontFamily: "var(--component-explorer-editor-font-family, monospace)"
2846
+ },
2847
+ image: {
2848
+ maxWidth: "100%",
2849
+ display: "block",
2850
+ borderRadius: 4,
2851
+ border: "1px solid var(--component-explorer-panel-border)"
2852
+ }
2853
+ };
2854
+ class En extends L({
2855
+ fixtureId: m.const(),
2856
+ daemon: m.const(),
2857
+ baselineSession: m.const(),
2858
+ currentSession: m.const()
2859
+ }) {
2860
+ constructor(o) {
2861
+ super(o);
2862
+ s(this, "comparisonStatus", B(this, { status: "loading" }));
2863
+ this._store.add(ho((n) => {
2864
+ const t = this.props.daemon.sourceTreeIds.read(n), i = t.get(this.props.baselineSession), c = t.get(this.props.currentSession);
2865
+ i && c && this._fetchComparison();
2866
+ }));
2867
+ }
2868
+ get fixtureId() {
2869
+ return this.props.fixtureId;
2870
+ }
2871
+ get daemon() {
2872
+ return this.props.daemon;
2873
+ }
2874
+ get baselineSession() {
2875
+ return this.props.baselineSession;
2876
+ }
2877
+ get currentSession() {
2878
+ return this.props.currentSession;
2879
+ }
2880
+ async _fetchComparison() {
2881
+ this.comparisonStatus.set({ status: "loading" }, void 0);
2882
+ try {
2883
+ const o = await this.props.daemon.compare(
2884
+ this.props.fixtureId,
2885
+ this.props.baselineSession,
2886
+ this.props.currentSession
2887
+ );
2888
+ this.comparisonStatus.set({ status: "ready", match: o.match }, void 0);
2889
+ } catch (o) {
2890
+ this.comparisonStatus.set({ status: "error", message: String(o) }, void 0);
2891
+ }
2892
+ }
2893
+ }
2894
+ const Hn = D(
2895
+ En,
2896
+ {},
2897
+ (r, e) => {
2898
+ 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" });
2899
+ return /* @__PURE__ */ f("div", { style: F.fixtureRow, children: [
2900
+ /* @__PURE__ */ f("div", { style: F.fixtureLabel, children: [
2901
+ /* @__PURE__ */ a("span", { style: F.fixtureName, children: e.fixtureId }),
2902
+ n
2903
+ ] }),
2904
+ /* @__PURE__ */ f("div", { style: F.sideBySide, children: [
2905
+ /* @__PURE__ */ f("div", { style: F.screenshotColumn, children: [
2906
+ /* @__PURE__ */ a("span", { style: F.columnLabel, children: "Current" }),
2907
+ /* @__PURE__ */ a(
2908
+ Qe,
2909
+ {
2910
+ fixtureId: e.fixtureId,
2911
+ sessionName: e.currentSession,
2912
+ daemon: e.daemon
2913
+ }
2914
+ )
2915
+ ] }),
2916
+ /* @__PURE__ */ f("div", { style: F.screenshotColumn, children: [
2917
+ /* @__PURE__ */ a("span", { style: F.columnLabel, children: "Baseline" }),
2918
+ /* @__PURE__ */ a(
2919
+ Qe,
2920
+ {
2921
+ fixtureId: e.fixtureId,
2922
+ sessionName: e.baselineSession,
2923
+ daemon: e.daemon
2924
+ }
2925
+ )
2926
+ ] })
2927
+ ] })
2928
+ ] });
2929
+ }
2930
+ ), Tn = E(
2931
+ {
2932
+ name: m.const(),
2933
+ path: m.const(),
2934
+ items: m.const(),
2935
+ daemon: m.const(),
2936
+ baselineSession: m.const(),
2937
+ currentSession: m.const()
2938
+ },
2939
+ (r, e) => /* @__PURE__ */ a("div", { style: F.groupContent, children: e.items.map((o) => /* @__PURE__ */ a(
2940
+ Hn,
2941
+ {
2942
+ fixtureId: o.fixtureId,
2943
+ daemon: e.daemon,
2944
+ baselineSession: e.baselineSession,
2945
+ currentSession: e.currentSession
2946
+ },
2947
+ o.fixtureId
2948
+ )) })
2949
+ ), F = {
2950
+ groupContent: {
2951
+ display: "flex",
2952
+ flexDirection: "column",
2953
+ gap: 24
2954
+ },
2955
+ fixtureRow: {
2956
+ display: "flex",
2957
+ flexDirection: "column",
2958
+ gap: 8
2959
+ },
2960
+ fixtureLabel: {
2961
+ display: "flex",
2962
+ alignItems: "center",
2963
+ gap: 8
2964
+ },
2965
+ fixtureName: {
2966
+ fontSize: 12,
2967
+ fontWeight: 500,
2968
+ color: "var(--component-explorer-foreground)"
2969
+ },
2970
+ sideBySide: {
2971
+ display: "flex",
2972
+ flexDirection: "row",
2973
+ gap: 16
2974
+ },
2975
+ screenshotColumn: {
2976
+ flex: 1,
2977
+ display: "flex",
2978
+ flexDirection: "column",
2979
+ gap: 4,
2980
+ minWidth: 0
2981
+ },
2982
+ columnLabel: {
2983
+ fontSize: 11,
2984
+ fontWeight: 500,
2985
+ color: "var(--component-explorer-descriptionForeground)",
2986
+ textTransform: "uppercase",
2987
+ letterSpacing: "0.05em"
2988
+ },
2989
+ badgeMatch: {
2990
+ fontSize: 11,
2991
+ color: "var(--component-explorer-testing-iconPassed)",
2992
+ fontWeight: 500
2993
+ },
2994
+ badgeChanged: {
2995
+ fontSize: 11,
2996
+ color: "var(--component-explorer-testing-iconFailed)",
2997
+ fontWeight: 500
2998
+ },
2999
+ badgeLoading: {
3000
+ fontSize: 11,
3001
+ color: "var(--component-explorer-descriptionForeground)",
3002
+ fontStyle: "italic"
3003
+ },
3004
+ badgeError: {
3005
+ fontSize: 11,
3006
+ color: "var(--component-explorer-errorForeground)",
3007
+ fontWeight: 500
3008
+ }
3009
+ }, Q = 8;
3010
+ function Mo(r, e) {
3011
+ return `
3012
+ linear-gradient(45deg, ${e} 25%, transparent 25%),
3013
+ linear-gradient(-45deg, ${e} 25%, transparent 25%),
3014
+ linear-gradient(45deg, transparent 75%, ${e} 75%),
3015
+ linear-gradient(-45deg, transparent 75%, ${e} 75%)
3016
+ `;
3017
+ }
3018
+ const Mn = {
3019
+ backgroundColor: "#ffffff",
3020
+ backgroundImage: Mo("#ffffff", "#e5e5e5")
3021
+ }, On = {
3022
+ backgroundColor: "#1e1e1e",
3023
+ backgroundImage: Mo("#1e1e1e", "#2d2d2d")
3024
+ }, Vn = {
3025
+ display: "inline-block",
3026
+ padding: "12px",
3027
+ borderRadius: "4px",
3028
+ backgroundSize: `${Q * 2}px ${Q * 2}px`,
3029
+ backgroundPosition: `0 0, 0 ${Q}px, ${Q}px -${Q}px, -${Q}px 0`,
3030
+ boxShadow: "0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08)"
3031
+ };
3032
+ function Ln(r) {
3033
+ const e = r === "dark" ? On : Mn;
3034
+ return {
3035
+ ...Vn,
3036
+ backgroundColor: e.backgroundColor,
3037
+ backgroundImage: e.backgroundImage
3038
+ };
3039
+ }
3040
+ function Ke({ src: r, alt: e, background: o }) {
3041
+ return /* @__PURE__ */ a("div", { style: Ln(o), children: /* @__PURE__ */ a("img", { src: r, alt: e, style: S.image }) });
3042
+ }
3043
+ const Dn = E(
3044
+ {
3045
+ item: m.const(),
3046
+ reportModel: m.const()
3047
+ },
3048
+ (r, e) => {
3049
+ const { item: o, reportModel: n } = e, { entry: t } = o, i = t.background ?? "light", c = t.status === "unchanged" ? /* @__PURE__ */ a("span", { style: S.badgeMatch, children: "✓ match" }) : t.status === "changed" ? /* @__PURE__ */ a("span", { style: S.badgeChanged, children: "● changed" }) : /* @__PURE__ */ a("span", { style: S.badgeAdded, children: "+ added" }), d = t.baselineScreenshot || t.currentScreenshot;
3050
+ return /* @__PURE__ */ f("div", { style: S.fixtureRow, children: [
3051
+ /* @__PURE__ */ f("div", { style: S.fixtureLabel, children: [
3052
+ /* @__PURE__ */ a("span", { style: S.fixtureName, children: o.fixtureId }),
3053
+ c
3054
+ ] }),
3055
+ d && /* @__PURE__ */ f("div", { style: S.sideBySide, children: [
3056
+ t.baselineScreenshot && /* @__PURE__ */ f("div", { style: S.screenshotColumn, children: [
3057
+ /* @__PURE__ */ a("span", { style: S.columnLabel, children: "Baseline" }),
3058
+ /* @__PURE__ */ a(
3059
+ Ke,
3060
+ {
3061
+ src: n.resolveScreenshotUrl(t.baselineScreenshot),
3062
+ alt: `Baseline screenshot of ${o.fixtureId}`,
3063
+ background: i
3064
+ }
3065
+ )
3066
+ ] }),
3067
+ t.currentScreenshot && /* @__PURE__ */ f("div", { style: S.screenshotColumn, children: [
3068
+ /* @__PURE__ */ a("span", { style: S.columnLabel, children: "Current" }),
3069
+ /* @__PURE__ */ a(
3070
+ Ke,
3071
+ {
3072
+ src: n.resolveScreenshotUrl(t.currentScreenshot),
3073
+ alt: `Current screenshot of ${o.fixtureId}`,
3074
+ background: i
3075
+ }
3076
+ )
3077
+ ] })
3078
+ ] }),
3079
+ !d && t.status === "unchanged" && /* @__PURE__ */ a("div", { style: S.hashRow, children: /* @__PURE__ */ f("span", { style: S.hashText, children: [
3080
+ "hash: ",
3081
+ t.targetHash
3082
+ ] }) })
3083
+ ] });
3084
+ }
3085
+ ), Nn = E(
3086
+ {
3087
+ name: m.const(),
3088
+ path: m.const(),
3089
+ items: m.const(),
3090
+ reportModel: m.const()
3091
+ },
3092
+ (r, e) => /* @__PURE__ */ a("div", { style: S.groupContent, children: e.items.map((o) => /* @__PURE__ */ a(
3093
+ Dn,
3094
+ {
3095
+ item: o,
3096
+ reportModel: e.reportModel
3097
+ },
3098
+ o.fixtureId
3099
+ )) })
3100
+ ), S = {
3101
+ groupContent: {
3102
+ display: "flex",
3103
+ flexDirection: "column",
3104
+ gap: 24
3105
+ },
3106
+ fixtureRow: {
3107
+ display: "flex",
3108
+ flexDirection: "column",
3109
+ gap: 8
3110
+ },
3111
+ fixtureLabel: {
3112
+ display: "flex",
3113
+ alignItems: "center",
3114
+ gap: 8
3115
+ },
3116
+ fixtureName: {
3117
+ fontSize: 12,
3118
+ fontWeight: 500,
3119
+ color: "var(--component-explorer-foreground)"
3120
+ },
3121
+ sideBySide: {
3122
+ display: "flex",
3123
+ flexDirection: "row",
3124
+ gap: 16
3125
+ },
3126
+ screenshotColumn: {
3127
+ display: "flex",
3128
+ flexDirection: "column",
3129
+ gap: 4
3130
+ },
3131
+ columnLabel: {
3132
+ fontSize: 11,
3133
+ fontWeight: 500,
3134
+ color: "var(--component-explorer-descriptionForeground)",
3135
+ textTransform: "uppercase",
3136
+ letterSpacing: "0.05em"
3137
+ },
3138
+ image: {
3139
+ display: "block"
3140
+ },
3141
+ hashRow: {
3142
+ padding: "8px 0"
3143
+ },
3144
+ hashText: {
3145
+ fontSize: 11,
3146
+ color: "var(--component-explorer-descriptionForeground)",
3147
+ fontFamily: "monospace"
3148
+ },
3149
+ badgeMatch: {
3150
+ fontSize: 11,
3151
+ color: "var(--component-explorer-testing-iconPassed)",
3152
+ fontWeight: 500
3153
+ },
3154
+ badgeChanged: {
3155
+ fontSize: 11,
3156
+ color: "var(--component-explorer-testing-iconFailed)",
3157
+ fontWeight: 500
3158
+ },
3159
+ badgeAdded: {
3160
+ fontSize: 11,
3161
+ color: "var(--component-explorer-testing-iconQueued)",
3162
+ fontWeight: 500
3163
+ }
3164
+ }, Gn = 280, An = 32, ce = 32, Je = 400;
3165
+ let Oo = 0;
3166
+ function G(r, e) {
3167
+ const o = ++Oo, n = performance.now().toFixed(1);
3168
+ console.log(
3169
+ `%c[scroll #${o} @${n}ms] ${r}`,
3170
+ "color: #3b82f6; font-weight: bold",
3171
+ e
3172
+ );
3173
+ }
3174
+ function Ze(r, e) {
3175
+ const o = ++Oo, n = performance.now().toFixed(1);
3176
+ console.warn(
3177
+ `[scroll #${o} @${n}ms] ${r}`,
3178
+ e
3179
+ );
3180
+ }
3181
+ const Vo = "component-explorer:scrollAnchors", Ye = 100;
3182
+ function Lo() {
3183
+ try {
3184
+ const r = localStorage.getItem(Vo);
3185
+ if (r) return JSON.parse(r);
3186
+ } catch {
3187
+ }
3188
+ return {};
3189
+ }
3190
+ function zn(r, e) {
3191
+ try {
3192
+ const o = Lo();
3193
+ o[r] = e;
3194
+ const n = Object.entries(o), t = n.length > Ye ? Object.fromEntries(n.slice(-Ye)) : o;
3195
+ localStorage.setItem(Vo, JSON.stringify(t));
3196
+ } catch {
3197
+ }
3198
+ }
3199
+ function Pn(r) {
3200
+ return Lo()[r];
3201
+ }
3202
+ function Do(r) {
3203
+ return r.type === "single" ? r.fixture.id : r.id;
3204
+ }
3205
+ function Wn(r, e) {
3206
+ const o = new Array(r.length);
3207
+ let n = ce;
3208
+ for (let t = 0; t < r.length; t++) {
3209
+ const i = e.get(Do(r[t])) ?? Gn;
3210
+ o[t] = { top: n, height: i }, n += i + An;
3211
+ }
3212
+ return o;
3213
+ }
3214
+ function be(r) {
3215
+ if (r.length === 0) return 0;
3216
+ const e = r[r.length - 1];
3217
+ return e.top + e.height + ce;
3218
+ }
3219
+ function No(r, e) {
3220
+ let o = 0, n = r.length;
3221
+ for (; o < n; ) {
3222
+ const t = o + n >> 1;
3223
+ r[t].top + r[t].height < e ? o = t + 1 : n = t;
3224
+ }
3225
+ return o;
3226
+ }
3227
+ function $n(r, e, o) {
3228
+ if (r.length === 0) return { start: 0, end: 0 };
3229
+ const n = No(r, e - Je);
3230
+ let t = n;
3231
+ const i = e + o + Je;
3232
+ for (; t < r.length && r[t].top < i; )
3233
+ t++;
3234
+ return { start: n, end: t };
3235
+ }
3236
+ function Xe(r, e) {
3237
+ if (r.length === 0) return;
3238
+ const o = No(r, e), n = Math.min(o, r.length - 1);
3239
+ return {
3240
+ rowIndex: n,
3241
+ offsetFromViewport: r[n].top - e
3242
+ };
3243
+ }
3244
+ function eo(r, e) {
3245
+ return e.rowIndex >= r.length ? 0 : r[e.rowIndex].top - e.offsetFromViewport;
3246
+ }
3247
+ function oo(r) {
3248
+ return r.type === "single" ? r.fixture.path : r.path;
3249
+ }
3250
+ function ro(r) {
3251
+ return r.split(" / ").slice(1);
3252
+ }
3253
+ function Un(r, e, o) {
3254
+ const n = o.split("/"), t = n.length - r.length;
3255
+ for (let i = 0; i < r.length; i++)
3256
+ if (!e || i >= e.length || r[i] !== e[i])
3257
+ return r.slice(i).map((c, d) => ({
3258
+ depth: i + d,
3259
+ name: c,
3260
+ nodeId: n.slice(0, t + i + d + 1).join("/")
3261
+ }));
3262
+ return [];
3263
+ }
3264
+ const no = ["h1", "h2", "h3", "h4"];
3265
+ function jn(r) {
3266
+ return no[Math.min(r, no.length - 1)];
3267
+ }
3268
+ const to = ["22px", "15px", "13px", "12px"];
3269
+ function qn(r) {
3270
+ return {
3271
+ fontSize: to[Math.min(r, to.length - 1)],
3272
+ fontWeight: r <= 1 ? 600 : 500,
3273
+ color: "var(--component-explorer-foreground)",
3274
+ margin: 0,
3275
+ marginBottom: r === 0 ? "8px" : "4px",
3276
+ paddingBottom: r === 0 ? "6px" : void 0,
3277
+ borderBottom: r === 0 ? "1px solid var(--component-explorer-widget-border, var(--component-explorer-panel-border, rgba(128,128,128,0.35)))" : void 0
3278
+ };
3279
+ }
3280
+ class Qn extends L({
3281
+ model: m.const()
3282
+ }) {
3283
+ constructor() {
3284
+ super(...arguments);
3285
+ s(this, "_rowHeights", B(this, fn()));
3286
+ s(this, "_scrollTop", B(this, 0));
3287
+ s(this, "_viewportHeight", B(this, 0));
3288
+ s(this, "_scrollContainerRef", null);
3289
+ s(this, "_resizeObserver", null);
3290
+ s(this, "_viewportResizeObserver", null);
3291
+ s(this, "_currentNodeId");
3292
+ s(this, "_scrollSaveTimeout", null);
3293
+ s(this, "_suppressScrollHandler", !1);
3294
+ s(this, "layout", R(this, (o) => {
3295
+ const n = this.explorerModel.selectedFixtures.read(o), t = this._rowHeights.read(o);
3296
+ return Wn(n, t);
3297
+ }));
3298
+ s(this, "visibleRowRange", R(this, (o) => {
3299
+ const n = this.layout.read(o), t = this._scrollTop.read(o), i = this._viewportHeight.read(o);
3300
+ return $n(n, t, i);
3301
+ }));
3302
+ s(this, "setScrollContainerRef", (o) => {
3303
+ var n;
3304
+ 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]) => {
3305
+ const i = Math.round(t.contentRect.height), c = this._viewportHeight.get();
3306
+ i !== c && G("viewportResize", { prev: c, new: i }), this._viewportHeight.set(i, void 0);
3307
+ }), this._viewportResizeObserver.observe(o), this._restoreScrollPosition());
3308
+ });
3309
+ s(this, "_handleScroll", () => {
3310
+ if (!this._scrollContainerRef) return;
3311
+ const o = this._scrollTop.get(), n = this._scrollContainerRef.scrollTop, t = n - o;
3312
+ if (this._scrollTop.set(n, void 0), Math.abs(t) > 200 && Ze("handleScroll:LARGE_JUMP", {
3313
+ prevObsScrollTop: o,
3314
+ newScrollTop: n,
3315
+ delta: t,
3316
+ suppressed: this._suppressScrollHandler,
3317
+ stack: new Error().stack
3318
+ }), this._suppressScrollHandler || !this._currentNodeId) {
3319
+ this._suppressScrollHandler && G("handleScroll:suppressed", { newScrollTop: n, delta: t });
3320
+ return;
3321
+ }
3322
+ this._scrollSaveTimeout && clearTimeout(this._scrollSaveTimeout), this._scrollSaveTimeout = setTimeout(() => {
3323
+ if (!this._currentNodeId) return;
3324
+ const i = this.layout.get(), c = Xe(i, this._scrollTop.get());
3325
+ c && zn(this._currentNodeId, c);
3326
+ }, 150);
3327
+ });
3328
+ s(this, "observeRowElement", (o, n) => {
3329
+ o && (this._resizeObserver || (this._resizeObserver = new ResizeObserver((t) => {
3330
+ const i = this._rowHeights.get();
3331
+ let c;
3332
+ const d = [];
3333
+ for (const l of t) {
3334
+ const p = l.target.getAttribute("data-row-id");
3335
+ if (!p) continue;
3336
+ const g = Math.round(l.contentRect.height);
3337
+ 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), mn(p, g));
3338
+ }
3339
+ if (c) {
3340
+ const l = this.layout.get(), p = this._scrollTop.get(), g = Xe(l, p);
3341
+ this._rowHeights.set(c, void 0);
3342
+ const v = this.layout.get();
3343
+ if (g && this._scrollContainerRef) {
3344
+ const b = eo(v, g), k = b - p;
3345
+ Math.abs(k) > 2 && G("resizeObserver:reAnchor", {
3346
+ changedRows: d,
3347
+ anchor: g,
3348
+ scrollTopBefore: p,
3349
+ newScrollTop: b,
3350
+ delta: k,
3351
+ oldTotalHeight: be(l),
3352
+ newTotalHeight: be(v)
3353
+ }), Math.abs(k) > 200 && Ze("resizeObserver:LARGE_REANCHOR", {
3354
+ changedRows: d,
3355
+ anchor: g,
3356
+ scrollTopBefore: p,
3357
+ newScrollTop: b,
3358
+ delta: k
3359
+ }), this._suppressScrollHandler = !0, this._scrollContainerRef.scrollTop = b, this._scrollTop.set(b, void 0), requestAnimationFrame(() => {
3360
+ this._suppressScrollHandler = !1;
3361
+ });
3362
+ }
3363
+ }
3364
+ })), o.setAttribute("data-row-id", n), this._resizeObserver.observe(o));
3365
+ });
3366
+ }
3367
+ get explorerModel() {
3368
+ return this.props.model;
3369
+ }
3370
+ get currentSessionName() {
3371
+ var t, i;
3372
+ const o = this.explorerModel.daemon;
3373
+ if (!o) return "current";
3374
+ const n = o.sessions.get();
3375
+ return ((t = n.find((c) => c.sourceKind === "current")) == null ? void 0 : t.name) ?? ((i = n[0]) == null ? void 0 : i.name) ?? "current";
3376
+ }
3377
+ get baselineSessionName() {
3378
+ var t, i;
3379
+ const o = this.explorerModel.daemon;
3380
+ if (!o) return "baseline";
3381
+ const n = o.sessions.get();
3382
+ return ((t = n.find((c) => c.sourceKind === "worktree")) == null ? void 0 : t.name) ?? ((i = n[1]) == null ? void 0 : i.name) ?? "baseline";
3383
+ }
3384
+ updateForSelection(o) {
3385
+ this._currentNodeId !== o && (G("updateForSelection", { prev: this._currentNodeId, new: o }), this._currentNodeId = o, this._restoreScrollPosition());
3386
+ }
3387
+ _restoreScrollPosition() {
3388
+ if (!this._scrollContainerRef || !this._currentNodeId) return;
3389
+ const o = Pn(this._currentNodeId);
3390
+ if (!o) {
3391
+ G("restoreScroll:noAnchor", { nodeId: this._currentNodeId });
3392
+ return;
3393
+ }
3394
+ const n = this.layout.get(), t = eo(n, o), i = this._scrollContainerRef.scrollTop;
3395
+ G("restoreScroll", {
3396
+ nodeId: this._currentNodeId,
3397
+ anchor: o,
3398
+ prevScrollTop: i,
3399
+ targetScrollTop: t,
3400
+ delta: t - i,
3401
+ layoutLength: n.length
3402
+ }), this._suppressScrollHandler = !0, this._scrollContainerRef.scrollTop = t, this._scrollTop.set(t, void 0), requestAnimationFrame(() => {
3403
+ this._suppressScrollHandler = !1;
3404
+ });
3405
+ }
3406
+ dispose() {
3407
+ var o, n;
3408
+ (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);
3409
+ }
3410
+ }
3411
+ const Kn = D(
3412
+ Qn,
3413
+ {},
3414
+ (r, e) => {
3415
+ 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);
3416
+ if (e.updateForSelection(n), o.length === 0) {
3417
+ const l = e.explorerModel.reportModel;
3418
+ if (l) {
3419
+ const p = l.state.read(r);
3420
+ if (p.status === "loading")
3421
+ return /* @__PURE__ */ a("div", { style: O.emptyState, children: /* @__PURE__ */ a("span", { style: O.emptyText, children: "Loading report..." }) });
3422
+ if (p.status === "error")
3423
+ return /* @__PURE__ */ a("div", { style: O.emptyState, children: /* @__PURE__ */ f("span", { style: { ...O.emptyText, color: "var(--component-explorer-errorForeground)" }, children: [
3424
+ "Failed to load report: ",
3425
+ p.message
3426
+ ] }) });
3427
+ }
3428
+ return /* @__PURE__ */ a("div", { style: O.emptyState, children: /* @__PURE__ */ a("span", { style: O.emptyText, children: "Select a component or folder to preview" }) });
3429
+ }
3430
+ const d = be(t);
3431
+ 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) => {
3432
+ const g = i + p, { top: v } = t[g], b = Do(l), k = ro(oo(l)), _ = g > 0 ? ro(oo(o[g - 1])) : void 0, u = Un(k, _, b);
3433
+ return /* @__PURE__ */ f(
3434
+ "div",
3435
+ {
3436
+ ref: (h) => e.observeRowElement(h, b),
3437
+ style: { position: "absolute", top: v, left: ce, right: ce },
3438
+ children: [
3439
+ u.map((h) => {
3440
+ const y = jn(h.depth);
3441
+ return /* @__PURE__ */ a(y, { style: qn(h.depth), children: /* @__PURE__ */ a(
3442
+ "a",
3443
+ {
3444
+ href: _o("fixture", h.nodeId),
3445
+ style: O.headingLink,
3446
+ onClick: (C) => {
3447
+ C.preventDefault(), e.explorerModel.selectNode(h.nodeId);
3448
+ },
3449
+ children: h.name
3450
+ }
3451
+ ) }, h.depth);
3452
+ }),
3453
+ l.type === "single" ? /* @__PURE__ */ a(Ho, { fixture: l.fixture, compact: !1, onSelect: e.explorerModel.selectNode }) : l.type === "variants" ? /* @__PURE__ */ a(Jn, { row: l, onSelect: e.explorerModel.selectNode }) : l.type === "screenshot-comparison" && e.explorerModel.daemon ? /* @__PURE__ */ a(
3454
+ Tn,
3455
+ {
3456
+ name: l.name,
3457
+ path: l.path,
3458
+ items: l.items,
3459
+ daemon: e.explorerModel.daemon,
3460
+ baselineSession: e.baselineSessionName,
3461
+ currentSession: e.currentSessionName
3462
+ }
3463
+ ) : l.type === "report-comparison" && e.explorerModel.reportModel ? /* @__PURE__ */ a(
3464
+ Nn,
3465
+ {
3466
+ name: l.name,
3467
+ path: l.path,
3468
+ items: l.items,
3469
+ reportModel: e.explorerModel.reportModel
3470
+ }
3471
+ ) : null
3472
+ ]
3473
+ },
3474
+ b
3475
+ );
3476
+ }) }) });
3477
+ }
3478
+ ), Jn = E(
3479
+ {
3480
+ row: m.const(),
3481
+ onSelect: m.const()
3482
+ },
3483
+ (r, e) => {
3484
+ const o = e.row;
3485
+ return /* @__PURE__ */ a("div", { style: O.variantsContent, children: o.fixtures.map((n) => /* @__PURE__ */ a(Ho, { fixture: n, compact: !0, onSelect: e.onSelect }, n.id)) });
3486
+ }
3487
+ ), O = {
3488
+ scrollContainer: {
3489
+ flex: 1,
3490
+ overflow: "auto",
3491
+ backgroundColor: "var(--component-explorer-editor-background)"
3492
+ },
3493
+ emptyState: {
3494
+ flex: 1,
3495
+ display: "flex",
3496
+ alignItems: "center",
3497
+ justifyContent: "center",
3498
+ backgroundColor: "var(--component-explorer-editor-background)"
3499
+ },
3500
+ emptyText: {
3501
+ color: "var(--component-explorer-descriptionForeground)",
3502
+ fontSize: "14px"
3503
+ },
3504
+ variantsContent: {
3505
+ display: "flex",
3506
+ flexDirection: "row",
3507
+ flexWrap: "wrap",
3508
+ gap: "16px"
3509
+ },
3510
+ headingLink: {
3511
+ textDecoration: "none",
3512
+ color: "inherit"
3513
+ }
3514
+ }, Zn = {
3515
+ display: "flex",
3516
+ flexDirection: "column",
3517
+ alignItems: "center",
3518
+ justifyContent: "center",
3519
+ gap: "12px",
3520
+ height: "100%",
3521
+ width: "100%",
3522
+ color: "var(--component-explorer-foreground)",
3523
+ opacity: 0.5,
3524
+ fontSize: "13px"
3525
+ }, Yn = {
3526
+ width: "24px",
3527
+ height: "24px",
3528
+ border: "2px solid currentColor",
3529
+ borderTopColor: "transparent",
3530
+ borderRadius: "50%",
3531
+ animation: "explorer-spin 0.8s linear infinite"
3532
+ }, Xn = D(
3533
+ zr,
3534
+ { daemonModel: m.const(), reportModel: m.const() },
3535
+ (r, e) => {
3536
+ const o = e.isDarkTheme.read(r), n = e.loading.read(r), t = o ? "vscode-theme default-dark-plus" : "vscode-theme default-light-plus";
3537
+ if (n)
3538
+ return /* @__PURE__ */ f("div", { className: t, style: { ...x.container, backgroundColor: "var(--component-explorer-editor-background)" }, children: [
3539
+ /* @__PURE__ */ a("style", { children: "@keyframes explorer-spin { to { transform: rotate(360deg); } }" }),
3540
+ /* @__PURE__ */ f("div", { style: Zn, children: [
3541
+ /* @__PURE__ */ a("div", { style: Yn }),
3542
+ "Loading fixtures…"
3543
+ ] })
3544
+ ] });
3545
+ const i = e.leftSidebarVisible.read(r), c = e.rightSidebarVisible.read(r), d = e.selectedNode.read(r);
3546
+ return /* @__PURE__ */ f("div", { className: t, style: x.container, children: [
3547
+ i && /* @__PURE__ */ a(ln, { model: e }),
3548
+ /* @__PURE__ */ f("div", { style: x.centerArea, children: [
3549
+ /* @__PURE__ */ a(Yr, { model: e }),
3550
+ /* @__PURE__ */ a(Kn, { model: e })
3551
+ ] }),
3552
+ c && /* @__PURE__ */ a(un, { selectedNode: d })
3553
+ ] });
3554
+ }
3555
+ );
3556
+ var et = class ve {
3557
+ constructor(e) {
3558
+ this.iterator = e;
3559
+ }
3560
+ static fromIterable(e) {
3561
+ return new ve(e[Symbol.asyncIterator]());
3562
+ }
3563
+ static fromFn(e) {
3564
+ return new ve(e());
3565
+ }
3566
+ [Symbol.asyncIterator]() {
3567
+ return this.iterator;
3568
+ }
3569
+ }, ot = class extends Error {
3570
+ constructor(r, e, o) {
3571
+ super(o), this.statusCode = r, this.method = e, this.name = "ApiError";
3572
+ }
3573
+ }, rt = class {
3574
+ constructor(r) {
3575
+ s(this, "methods", this._createProxy(""));
3576
+ this._request = r;
3577
+ }
3578
+ _createProxy(r) {
3579
+ return new Proxy(() => {
3580
+ }, {
3581
+ apply: async (e, o, n) => await this._request(r, n[0]),
3582
+ get: (e, o) => {
3583
+ 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"))
3584
+ return this._createProxy(`${r}${r ? "/" : ""}${o}`);
3585
+ }
3586
+ });
3587
+ }
3588
+ };
3589
+ function nt(r, e) {
3590
+ return new rt(async (o, n) => {
3591
+ var d, l;
3592
+ const t = await fetch(`${r}/${o}`, {
3593
+ method: "POST",
3594
+ headers: {
3595
+ "Content-Type": "application/json",
3596
+ ...(d = e == null ? void 0 : e.getHeaders) == null ? void 0 : d.call(e)
3597
+ },
3598
+ body: JSON.stringify(n)
3599
+ });
3600
+ if (t.status !== 200) {
3601
+ const p = await t.json().catch(() => null);
3602
+ let g;
3603
+ if (p && typeof p == "object" && ("errorMessage" in p || "error" in p)) {
3604
+ const b = p.errorMessage ?? p.error, k = p.stack;
3605
+ g = `${b}${k ? `
3606
+ ${k}` : ""}`;
3607
+ } else
3608
+ g = `Error calling API method "${o}" (${t.status}): ${JSON.stringify(p)}`;
3609
+ const v = new ot(t.status, o, g);
3610
+ throw (l = e == null ? void 0 : e.onError) == null || l.call(e, v), v;
3611
+ }
3612
+ const i = t.headers.get("Content-Type");
3613
+ return i != null && i.startsWith("application/jsonl") ? et.fromFn(async function* () {
3614
+ var k;
3615
+ const p = (k = t.body) == null ? void 0 : k.getReader();
3616
+ if (!p)
3617
+ return;
3618
+ let g = "";
3619
+ const v = new TextDecoder("utf-8");
3620
+ for (; ; ) {
3621
+ const { done: _, value: u } = await p.read();
3622
+ if (_)
3623
+ break;
3624
+ g += v.decode(u, { stream: !0 });
3625
+ let h;
3626
+ for (; (h = g.indexOf(`
3627
+ `)) >= 0; ) {
3628
+ const y = g.slice(0, h).trim();
3629
+ g = g.slice(h + 1), y.length > 0 && (yield JSON.parse(y));
3630
+ }
3631
+ }
3632
+ const b = g.trim();
3633
+ b.length > 0 && (yield JSON.parse(b));
3634
+ }) : await t.json();
3635
+ });
3636
+ }
3637
+ class tt {
3638
+ constructor(e) {
3639
+ s(this, "_sourceTreeIds", B(this, /* @__PURE__ */ new Map()));
3640
+ s(this, "_sessions", B(this, []));
3641
+ s(this, "_screenshotCache", /* @__PURE__ */ new Map());
3642
+ s(this, "_client");
3643
+ s(this, "_eventStreamAbort", null);
3644
+ s(this, "sessionName");
3645
+ /** Observable map of sessionName → current sourceTreeId */
3646
+ s(this, "sourceTreeIds", this._sourceTreeIds);
3647
+ /** Observable list of sessions from the daemon */
3648
+ s(this, "sessions", this._sessions);
3649
+ this.config = e, this.sessionName = e.sessionName, this._client = nt("/__explorer/daemon-api", {
3650
+ getHeaders: () => ({ "X-Client-Name": "explorer-ui" })
3651
+ });
3652
+ }
3653
+ /**
3654
+ * Initializes the model: fetches initial session info and starts listening to events.
3655
+ * Call this once after construction.
3656
+ */
3657
+ async initialize() {
3658
+ this._validateProtocolVersions(), await this._fetchSessionInfos(), this._startEventStream();
3659
+ }
3660
+ /**
3661
+ * Get a screenshot for a fixture in a session, using cache when available.
3662
+ * Cache is keyed on sessionName + fixtureId and invalidated when sourceTreeId changes.
3663
+ */
3664
+ async getScreenshot(e, o) {
3665
+ const n = this._sourceTreeIds.get().get(e);
3666
+ if (!n)
3667
+ throw new Error(`No sourceTreeId known for session '${e}'`);
3668
+ const t = `${e}:${o}`, i = this._screenshotCache.get(t);
3669
+ if (i && i.sourceTreeId === n)
3670
+ return i.data;
3671
+ const c = await this._client.methods.screenshots.take({
3672
+ fixtureId: o,
3673
+ sessionName: e,
3674
+ sourceTreeId: n,
3675
+ includeImage: !0
3676
+ });
3677
+ return this._screenshotCache.set(t, { sourceTreeId: n, data: c }), c;
3678
+ }
3679
+ /**
3680
+ * Compare a fixture across two sessions. Returns match status and hashes (no images).
3681
+ */
3682
+ async compare(e, o, n) {
3683
+ const t = this._sourceTreeIds.get().get(o), i = this._sourceTreeIds.get().get(n);
3684
+ if (!t || !i)
3685
+ throw new Error("Missing sourceTreeId for sessions");
3686
+ return this._client.methods.screenshots.compare({
3687
+ fixtureId: e,
3688
+ baselineSessionName: o,
3689
+ baselineSourceTreeId: t,
3690
+ currentSessionName: n,
3691
+ currentSourceTreeId: i,
3692
+ includeImages: !1
3693
+ });
3694
+ }
3695
+ /**
3696
+ * List fixtures from a session.
3697
+ */
3698
+ async listFixtures(e) {
3699
+ const o = this._sourceTreeIds.get().get(e);
3700
+ if (!o)
3701
+ throw new Error(`No sourceTreeId known for session '${e}'`);
3702
+ return this._client.methods.fixtures.list({ sessionName: e, sourceTreeId: o });
3703
+ }
3704
+ /**
3705
+ * Get the explorer URL for a different session (for session switching via full navigation).
3706
+ */
3707
+ getSessionExplorerUrl(e) {
3708
+ const o = this._sessions.get().find((n) => n.name === e);
3709
+ if (o)
3710
+ return o.serverUrl + "/___explorer";
3711
+ }
3712
+ dispose() {
3713
+ var e;
3714
+ (e = this._eventStreamAbort) == null || e.abort(), this._eventStreamAbort = null;
3715
+ }
3716
+ // ---------------------------------------------------------------------------
3717
+ // Private
3718
+ // ---------------------------------------------------------------------------
3719
+ async _fetchSessionInfos() {
3720
+ const e = await this._client.methods.sessions(), o = /* @__PURE__ */ new Map(), n = [];
3721
+ for (const t of e)
3722
+ t.isLoading || (o.set(t.name, t.sourceTreeId), n.push({ name: t.name, serverUrl: t.serverUrl, sourceKind: t.sourceKind }));
3723
+ this._sourceTreeIds.set(o, void 0), this._sessions.set(n, void 0);
3724
+ }
3725
+ async _startEventStream() {
3726
+ this._eventStreamAbort = new AbortController();
3727
+ const e = this._eventStreamAbort.signal;
3728
+ try {
3729
+ const o = await this._client.methods.events();
3730
+ for await (const n of o) {
3731
+ if (e.aborted) break;
3732
+ this._handleEvent(n);
3733
+ }
3734
+ } catch (o) {
3735
+ e.aborted || (console.error("[DaemonModel] Event stream error:", o), setTimeout(() => {
3736
+ e.aborted || this._startEventStream();
3737
+ }, 2e3));
3738
+ }
3739
+ }
3740
+ _handleEvent(e) {
3741
+ if (e.type === "source-change") {
3742
+ const o = new Map(this._sourceTreeIds.get());
3743
+ o.set(e.sessionName, e.sourceTreeId), this._sourceTreeIds.set(o, void 0);
3744
+ for (const n of this._screenshotCache.keys())
3745
+ n.startsWith(`${e.sessionName}:`) && this._screenshotCache.delete(n);
3746
+ }
3747
+ }
3748
+ _validateProtocolVersions() {
3749
+ const e = ae.parse("1.0.0"), o = ae.parse(this.config.daemonApiVersion);
3750
+ if (e.major !== o.major || e.minor !== o.minor)
3751
+ throw new Error(
3752
+ `Daemon API version mismatch. Explorer expects 1.0.0, daemon provides ${this.config.daemonApiVersion}. Update CLI, vite plugin, and explorer together.`
3753
+ );
3754
+ const n = ae.parse(this.config.runtimeVersionNeededByPlugin);
3755
+ if (n.major !== ne.major || n.minor !== ne.minor)
3756
+ throw new Error(
3757
+ `Explorer runtime version mismatch. Plugin requires ${this.config.runtimeVersionNeededByPlugin}, explorer provides ${ne.toString()}. Reinstall dependencies to align plugin and explorer runtime versions.`
3758
+ );
3759
+ }
3760
+ }
3761
+ class it {
3762
+ constructor(e) {
3763
+ s(this, "state", B(this, { status: "loading" }));
3764
+ s(this, "_baseUrl");
3765
+ this.reportUrl = e;
3766
+ const o = e.lastIndexOf("/");
3767
+ this._baseUrl = o >= 0 ? e.slice(0, o + 1) : "", this._fetch();
3768
+ }
3769
+ resolveScreenshotUrl(e) {
3770
+ return this._baseUrl + e;
3771
+ }
3772
+ buildTree(e) {
3773
+ const o = this.state.read(e);
3774
+ return o.status !== "ready" ? { id: new T(""), name: "Report", type: "folder", children: [], labels: [] } : ct(o.report.fixtures);
3775
+ }
3776
+ async _fetch() {
3777
+ this.state.set({ status: "loading" }, void 0);
3778
+ try {
3779
+ const e = await fetch(this.reportUrl);
3780
+ if (!e.ok)
3781
+ throw new Error(`HTTP ${e.status}: ${e.statusText}`);
3782
+ const o = await e.json();
3783
+ this.state.set({ status: "ready", report: o }, void 0);
3784
+ } catch (e) {
3785
+ this.state.set({ status: "error", message: String(e) }, void 0);
3786
+ }
3787
+ }
3788
+ }
3789
+ function ct(r) {
3790
+ const e = { id: new T(""), name: "Components", type: "folder", children: [], labels: [] };
3791
+ for (const [o, n] of Object.entries(r)) {
3792
+ const t = new T(o).segments;
3793
+ let i = e;
3794
+ for (let c = 0; c < t.length; c++) {
3795
+ const d = t[c], l = c === t.length - 1, p = new T(t.slice(0, c + 1).join("/"));
3796
+ if (l) {
3797
+ const g = [...(n == null ? void 0 : n.labels) ?? []];
3798
+ (n == null ? void 0 : n.status) === "changed" && !g.includes("changed") && g.push("changed"), i.children.push({
3799
+ id: p,
3800
+ name: d,
3801
+ type: "component",
3802
+ reportEntry: n,
3803
+ labels: g
3804
+ });
3805
+ } else {
3806
+ let g = i.children.find((v) => v.type === "folder" && v.name === d);
3807
+ g || (g = { id: p, name: d, type: "folder", children: [], labels: [] }, i.children.push(g)), i = g;
3808
+ }
3809
+ }
3810
+ }
3811
+ return e;
3812
+ }
3813
+ const at = '/*! 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}', dt = '.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}', lt = '.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}';
3814
+ class st {
3815
+ constructor(e, o, n, t) {
3816
+ s(this, "_root");
3817
+ s(this, "_registry", new Ir());
3818
+ s(this, "_daemonModel");
3819
+ s(this, "_reportModel");
3820
+ this._populateRegistry(o), this._registry.loading.set(n, void 0), this._reportModel = this._initializeReportModel(), this._daemonModel = this._reportModel ? void 0 : this._initializeDaemonModel(t);
3821
+ const i = e.attachShadow({ mode: "open" }), c = new CSSStyleSheet();
3822
+ c.replaceSync([at, dt, lt].join(`
3823
+ `)), i.adoptedStyleSheets = [c], vn(e);
3824
+ const d = document.createElement("div");
3825
+ d.style.height = "100%", d.style.width = "100%", i.appendChild(d), this._root = Wo(d), this._root.render(qo(Xn, {
3826
+ registry: this._registry,
3827
+ daemonModel: this._daemonModel,
3828
+ reportModel: this._reportModel
3829
+ }));
3830
+ }
3831
+ _initializeReportModel() {
3832
+ const o = new URLSearchParams(location.search).get("report");
3833
+ if (o)
3834
+ return new it(o);
3835
+ }
3836
+ _initializeDaemonModel(e) {
3837
+ if (!e)
3838
+ return;
3839
+ const o = new tt(e);
3840
+ return o.initialize().catch((n) => {
3841
+ console.error("[ExplorerUIMode] Failed to initialize DaemonModel:", n);
3842
+ }), o;
3843
+ }
3844
+ _populateRegistry(e) {
3845
+ this._registry.clear();
3846
+ for (const [o, n] of Object.entries(e)) {
3847
+ const t = n.default;
3848
+ t && typeof t == "object" && this._registry.register(o, t);
3849
+ }
3850
+ }
3851
+ updateFixtures(e) {
3852
+ this._populateRegistry(e), this._registry.loading.set(!1, void 0);
3853
+ }
3854
+ bumpVersion() {
3855
+ }
3856
+ dispose() {
3857
+ var e;
3858
+ (e = this._daemonModel) == null || e.dispose(), this._root.unmount();
3859
+ }
3860
+ }
3861
+ class pt {
3862
+ constructor(e, o) {
3863
+ s(this, "sessionId", Math.random().toString(36).slice(2));
3864
+ s(this, "_updateVersion", 0);
3865
+ s(this, "_root");
3866
+ s(this, "_fixtureModules");
3867
+ s(this, "_currentRendering");
3868
+ s(this, "_currentContainer");
3869
+ this._containerElement = e, this._fixtureModules = o, this._root = this._buildTree(o), this._installGlobalApi();
3870
+ const n = this._flattenFixtures(this._root).length;
3871
+ console.log("[headless] Initialized, sessionId:", this.sessionId, "version:", this._updateVersion, "fixtures:", n);
3872
+ }
3873
+ get updateVersion() {
3874
+ return this._updateVersion;
3875
+ }
3876
+ updateFixtures(e) {
3877
+ this._fixtureModules = e, this._root = this._buildTree(e), this._updateVersion++;
3878
+ const o = this._flattenFixtures(this._root).length;
3879
+ console.log("[headless] Registry rebuilt, version:", this._updateVersion, "fixtures:", o);
3880
+ }
3881
+ bumpVersion() {
3882
+ this._updateVersion++, console.log("[headless] Version bumped:", this._updateVersion);
3883
+ }
3884
+ listFixtures() {
3885
+ return this._flattenFixtures(this._root);
3886
+ }
3887
+ async renderFixture(e) {
3888
+ const o = this._findFixtureNode(this._root, e);
3889
+ if (!o || !o.component)
3890
+ throw new Error("Fixture not found: " + e);
3891
+ this._currentRendering && (this._currentRendering.dispose(), this._currentRendering = void 0), this._currentContainer && (this._currentContainer.remove(), this._currentContainer = void 0);
3892
+ const n = document.createElement("div");
3893
+ n.style.display = "inline-block", this._containerElement.appendChild(n), this._currentContainer = n;
3894
+ const t = o.component, i = [];
3895
+ let c;
3896
+ const d = (u) => {
3897
+ c || (c = u);
3898
+ }, l = console.error, p = console.warn, g = console.log;
3899
+ console.error = (...u) => {
3900
+ i.push({ type: "console.error", message: u.map(String).join(" ") }), l.apply(console, u);
3901
+ }, console.warn = (...u) => {
3902
+ i.push({ type: "console.warn", message: u.map(String).join(" ") }), p.apply(console, u);
3903
+ }, console.log = (...u) => {
3904
+ i.push({ type: "console.log", message: u.map(String).join(" ") }), g.apply(console, u);
3905
+ };
3906
+ const v = (u) => {
3907
+ i.push({ type: "window.error", message: u.message });
3908
+ }, b = (u) => {
3909
+ const h = u.reason, y = h instanceof Error ? h.message : String(h);
3910
+ i.push({ type: "window.unhandledrejection", message: y });
3911
+ };
3912
+ window.addEventListener("error", v), window.addEventListener("unhandledrejection", b);
3913
+ let k;
3914
+ try {
3915
+ const u = new Re(n, t);
3916
+ this._currentRendering = u;
3917
+ const h = 3e3, y = new Promise((ee, Go) => setTimeout(() => Go(new Error(`Fixture timed out after ${h}ms`)), h)), C = await Promise.race([u.waitForRendering(), y]);
3918
+ k = C == null ? void 0 : C.data;
3919
+ } catch (u) {
3920
+ const h = u instanceof Error ? u : new Error(String(u));
3921
+ d({ message: h.message, stack: h.stack });
3922
+ } finally {
3923
+ console.error = l, console.warn = p, console.log = g;
3924
+ }
3925
+ return c || await new Promise((u) => requestAnimationFrame(() => requestAnimationFrame(() => u()))), window.removeEventListener("error", v), window.removeEventListener("unhandledrejection", b), { hasError: !!c || i.some((u) => u.type !== "console.log" && u.type !== "console.warn"), error: c, events: i, resultData: k };
3926
+ }
3927
+ _buildTree(e) {
3928
+ const o = /* @__PURE__ */ new Map();
3929
+ for (const [n, t] of Object.entries(e)) {
3930
+ const i = t.default;
3931
+ i && typeof i == "object" && o.set(n, i);
3932
+ }
3933
+ return te(o);
3934
+ }
3935
+ _flattenFixtures(e, o = [], n = []) {
3936
+ var c, d;
3937
+ const t = n.length > 0 && e.labels.length > 0 ? [.../* @__PURE__ */ new Set([...n, ...e.labels])] : e.labels.length > 0 ? [...e.labels] : [...n], i = [];
3938
+ 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, expectedVisualDescriptions: ((d = e.component) == null ? void 0 : d.expectedVisualDescriptions) ?? [] });
3939
+ for (const l of e.children ?? []) {
3940
+ const p = e.id.value ? [...o, e.name] : o;
3941
+ i.push(...this._flattenFixtures(l, p, t));
3942
+ }
3943
+ return i;
3944
+ }
3945
+ _findFixtureNode(e, o) {
3946
+ if (e.id.value === o) return e;
3947
+ for (const n of e.children ?? []) {
3948
+ const t = this._findFixtureNode(n, o);
3949
+ if (t) return t;
3950
+ }
3951
+ }
3952
+ _installGlobalApi() {
3953
+ const e = this, o = {
3954
+ sessionId: this.sessionId,
3955
+ get updateVersion() {
3956
+ return e._updateVersion;
3957
+ },
3958
+ runtimeVersion: ne.toString(),
3959
+ listFixtures: () => this.listFixtures(),
3960
+ renderFixture: (n) => this.renderFixture(n)
3961
+ };
3962
+ window.__componentExplorer__ = o;
3963
+ }
3964
+ }
3965
+ class gt {
3966
+ constructor(e, o, n) {
3967
+ s(this, "_root");
3968
+ s(this, "_rendering");
3969
+ s(this, "_resizeObserver");
3970
+ this._container = e, this._fixtureId = o, n.then((t) => {
3971
+ this._root = this._buildTree(t), this._render();
3972
+ });
3973
+ }
3974
+ updateFixtures(e) {
3975
+ this._root = this._buildTree(e), this._render();
3976
+ }
3977
+ bumpVersion() {
3978
+ this._render();
3979
+ }
3980
+ _render() {
3981
+ var c, d;
3982
+ 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;
3983
+ const e = this._findNode(this._root, this._fixtureId);
3984
+ if (!(e != null && e.component)) {
3985
+ console.error(`[EmbeddedMode] Fixture not found: ${this._fixtureId}`);
3986
+ return;
3987
+ }
3988
+ const o = { ...e.component, isolation: "none" }, n = new Re(this._container, o);
3989
+ this._rendering = n;
3990
+ const t = this._fixtureId, i = () => {
3991
+ const l = n.renderTarget.getBoundingClientRect();
3992
+ window.parent.postMessage({
3993
+ type: "component-explorer:resize",
3994
+ fixtureId: t,
3995
+ width: l.width,
3996
+ height: l.height
3997
+ }, "*");
3998
+ };
3999
+ this._resizeObserver = new ResizeObserver(i), this._resizeObserver.observe(n.renderTarget);
4000
+ }
4001
+ _buildTree(e) {
4002
+ const o = /* @__PURE__ */ new Map();
4003
+ for (const [n, t] of Object.entries(e)) {
4004
+ const i = t.default;
4005
+ i && typeof i == "object" && o.set(n, i);
4006
+ }
4007
+ return te(o);
4008
+ }
4009
+ _findNode(e, o) {
4010
+ if (e.id.value === o) return e;
4011
+ for (const n of e.children ?? []) {
4012
+ const t = this._findNode(n, o);
4013
+ if (t) return t;
4014
+ }
4015
+ }
4016
+ }
4017
+ function ut(r) {
4018
+ const e = r.get("mode");
4019
+ return {
4020
+ mode: e === "headless" || e === "embedded" ? e : void 0,
4021
+ fixture: r.get("fixture") ?? void 0,
4022
+ file: r.get("file") ?? void 0,
4023
+ report: r.get("report") ?? void 0
4024
+ };
4025
+ }
4026
+ globalThis._buildInfo = Po;
4027
+ class St {
4028
+ constructor(e, o) {
4029
+ s(this, "_runtime");
4030
+ const n = globalThis._buildInfo;
4031
+ n && console.log(`[component-explorer] v${n.version} (built ${n.date})`);
4032
+ const t = new URLSearchParams(location.search), i = ut(t), c = i.fixture;
4033
+ if (i.mode === "embedded") {
4034
+ if (!c)
4035
+ throw new Error("Embedded mode requires a fixture query parameter");
4036
+ const d = i.file, l = o.loadFixtures(d ? { file: d } : void 0);
4037
+ this._runtime = new gt(e, c, l);
4038
+ } else {
4039
+ const d = i.mode === "headless" ? new pt(e, {}) : new st(e, {}, !0, o.daemonConfig);
4040
+ this._runtime = d, o.loadFixtures().then((l) => this._runtime.updateFixtures(l));
4041
+ }
4042
+ }
4043
+ updateFixtures(e) {
4044
+ this._runtime.updateFixtures(e);
4045
+ }
4046
+ bumpVersion() {
4047
+ this._runtime.bumpVersion();
4048
+ }
4049
+ }
4050
+ export {
4051
+ $r as ChevronDownIcon,
4052
+ Wr as ChevronRightIcon,
4053
+ Ur as ComponentIcon,
4054
+ tt as DaemonModel,
4055
+ Xn as Explorer,
4056
+ St as ExplorerApp,
4057
+ zr as ExplorerModel,
4058
+ T as FixturePath,
4059
+ Ir as FixtureRegistry,
4060
+ jr as FolderIcon,
4061
+ ln as LeftSidebar,
4062
+ Jr as MoonIcon,
4063
+ qr as PanelLeftIcon,
4064
+ Qr as PanelRightIcon,
4065
+ it as ReportModel,
4066
+ un as RightSidebar,
4067
+ Kr as SunIcon,
4068
+ Yr as TitleBar,
4069
+ le as TitleBarButton,
4070
+ rn as TreeItem,
4071
+ So as TreeView,
4072
+ Qo as VIEWPORT_SIZES,
4073
+ Rt as asyncRender,
4074
+ Zo as collectComponents,
4075
+ Oe as createComponentDefinition,
4076
+ te as createFixtureTree,
4077
+ Et as defineFixture,
4078
+ Ht as defineFixtureGroup,
4079
+ Tt as defineFixtureVariants,
4080
+ Le as findNodeByPath,
4081
+ Ee as fixtureGroupBrand,
4082
+ He as fixtureVariantsBrand,
4083
+ Ct as isComponentDefinition,
4084
+ we as isFixtureGroup,
4085
+ Be as isFixtureVariants,
4086
+ ye as isSingleFixture,
4087
+ Ie as mergeStyles,
4088
+ yt as parseFixtureExport,
4089
+ Bt as parseFixtureGroup,
4090
+ _t as parseFixtureVariants,
4091
+ wt as parseSingleFixture,
4092
+ Ko as resolveViewport,
4093
+ Te as singleFixtureBrand,
4094
+ x as styles,
4095
+ Mt as syncRender,
4096
+ wo as toExplorerTree
4097
+ };
4098
+ //# sourceMappingURL=viewer.js.map