@vscode/component-explorer 0.1.1-5 → 0.1.1-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,10 @@
1
1
  import { FixtureRegistry } from '../core/index.js';
2
+ import { DaemonModel } from '../daemon/index.js';
2
3
  export declare const Explorer: import('react').ComponentType<{
3
4
  registry: FixtureRegistry;
4
- } & {} & {} & {}>;
5
+ daemonModel: DaemonModel | undefined;
6
+ } & {} & {
7
+ daemonModel: DaemonModel | undefined;
8
+ } & {}>;
5
9
  export declare function ExplorerWithDefaults(): import("react/jsx-runtime").JSX.Element;
6
10
  //# sourceMappingURL=Explorer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Explorer.d.ts","sourceRoot":"","sources":["../../src/components/Explorer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAiB,MAAM,kBAAkB,CAAC;AAQlE,eAAO,MAAM,QAAQ;;iBAsBpB,CAAC;AAgEF,wBAAgB,oBAAoB,4CAGnC"}
1
+ {"version":3,"file":"Explorer.d.ts","sourceRoot":"","sources":["../../src/components/Explorer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAiB,MAAM,kBAAkB,CAAC;AAOlE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,eAAO,MAAM,QAAQ;;;;;OAsBpB,CAAC;AAgEF,wBAAgB,oBAAoB,4CAGnC"}
@@ -1,6 +1,8 @@
1
1
  import { IReader } from '@vscode/observables';
2
2
  import { FixtureRegistry, ComponentDefinition } from '../core/index.js';
3
3
  import { ExplorerTreeNode } from './types.js';
4
+ import { DaemonModel } from '../daemon/index.js';
5
+ export type ViewMode = 'session' | 'diff';
4
6
  /**
5
7
  * A fixture item to be rendered in the preview area.
6
8
  */
@@ -11,7 +13,15 @@ export interface FixtureItem {
11
13
  readonly component: ComponentDefinition;
12
14
  }
13
15
  /**
14
- * A preview row can be either a single fixture or a horizontal variant group.
16
+ * A screenshot comparison item for diff mode.
17
+ */
18
+ export interface ScreenshotComparisonItem {
19
+ readonly fixtureId: string;
20
+ readonly name: string;
21
+ readonly path: string;
22
+ }
23
+ /**
24
+ * A preview row can be a live fixture, a variant group, or a screenshot comparison.
15
25
  */
16
26
  export type PreviewRow = {
17
27
  readonly type: 'single';
@@ -22,9 +32,16 @@ export type PreviewRow = {
22
32
  readonly name: string;
23
33
  readonly path: string;
24
34
  readonly fixtures: readonly FixtureItem[];
35
+ } | {
36
+ readonly type: 'screenshot-comparison';
37
+ readonly id: string;
38
+ readonly name: string;
39
+ readonly path: string;
40
+ readonly items: readonly ScreenshotComparisonItem[];
25
41
  };
26
42
  declare const ExplorerModel_base: import('@vscode/observables-react').ViewModelClass<{
27
43
  registry: import('@vscode/observables-react').IPropertyTransformerFactory<FixtureRegistry, FixtureRegistry>;
44
+ daemonModel: import('@vscode/observables-react').IPropertyTransformerFactory<DaemonModel | undefined, DaemonModel | undefined>;
28
45
  }>;
29
46
  export declare class ExplorerModel extends ExplorerModel_base {
30
47
  readonly leftSidebarVisible: import('@vscode/observables').ISettableObservable<boolean, void>;
@@ -32,11 +49,16 @@ export declare class ExplorerModel extends ExplorerModel_base {
32
49
  readonly isDarkTheme: import('@vscode/observables').ISettableObservable<boolean, void>;
33
50
  readonly selectedNodeId: import('@vscode/observables').ISettableObservable<string | undefined, void>;
34
51
  readonly expandedNodeIds: import('@vscode/observables').ISettableObservable<ReadonlySet<string>, void>;
52
+ readonly viewMode: import('@vscode/observables').ISettableObservable<ViewMode, void>;
53
+ get daemonAvailable(): boolean;
54
+ get daemon(): DaemonModel | undefined;
35
55
  /** The explorer's tree derived from the registry */
36
56
  readonly tree: import('@vscode/observables').IObservableWithChange<ExplorerTreeNode, void>;
37
57
  readonly selectedNode: import('@vscode/observables').IObservableWithChange<ExplorerTreeNode | undefined, void>;
38
- /** List of preview rows to render based on current selection */
58
+ /** List of preview rows to render based on current selection and view mode */
39
59
  readonly selectedFixtures: import('@vscode/observables').IObservableWithChange<readonly PreviewRow[], void>;
60
+ setViewMode: (mode: ViewMode) => void;
61
+ navigateToSession: (sessionName: string) => void;
40
62
  toggleLeftSidebar: () => void;
41
63
  toggleRightSidebar: () => void;
42
64
  toggleTheme: () => void;
@@ -45,6 +67,11 @@ export declare class ExplorerModel extends ExplorerModel_base {
45
67
  isNodeExpanded(nodeId: string, reader: IReader): boolean;
46
68
  private _findNode;
47
69
  private _collectPreviewRows;
70
+ /**
71
+ * In diff mode: fixtures become screenshot comparison items showing current vs baseline.
72
+ * Variants become comparison groups.
73
+ */
74
+ private _collectDiffRows;
48
75
  }
49
76
  export {};
50
77
  //# sourceMappingURL=ExplorerModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExplorerModel.d.ts","sourceRoot":"","sources":["../../src/components/ExplorerModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,YAAY,CAAC;AAGnE;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;CAAE,GAC1D;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ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C/E,IAAI,MAAM,IAAI,WAAW,GAAG,SAAS,CAAmC;IAExE,oDAAoD;IACpD,QAAQ,CAAC,IAAI,8EAGV;IAEH,QAAQ,CAAC,YAAY,0FAKlB;IAEH,8EAA8E;IAC9E,QAAQ,CAAC,gBAAgB,mFAUtB;IAEH,WAAW,GAAI,MAAM,QAAQ,KAAG,IAAI,CAElC;IAEF,iBAAiB,GAAI,aAAa,MAAM,KAAG,IAAI,CAO7C;IAEF,iBAAiB,QAAO,IAAI,CAE1B;IAEF,kBAAkB,QAAO,IAAI,CAE3B;IAEF,WAAW,QAAO,IAAI,CAEpB;IAEF,UAAU,GAAI,QAAQ,MAAM,KAAG,IAAI,CAEjC;IAEF,kBAAkB,GAAI,QAAQ,MAAM,KAAG,IAAI,CASzC;IAEF,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO;IAIxD,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,mBAAmB;IA+C3B;;;OAGG;IACH,OAAO,CAAC,gBAAgB;CA6CzB"}
@@ -0,0 +1,12 @@
1
+ import { DaemonModel } from '../daemon/index.js';
2
+ import * as React from 'react';
3
+ /**
4
+ * Displays a single screenshot from the daemon, with loading/error states.
5
+ * Re-fetches automatically when the session's sourceTreeId changes.
6
+ */
7
+ export declare const FixtureScreenshotView: React.ComponentType<{
8
+ fixtureId: string;
9
+ sessionName: string;
10
+ daemon: DaemonModel;
11
+ } & {} & {} & {}>;
12
+ //# sourceMappingURL=FixtureScreenshotView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FixtureScreenshotView.d.ts","sourceRoot":"","sources":["../../src/components/FixtureScreenshotView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,WAAW,EAA0B,MAAM,oBAAoB,CAAC;AA6C9E;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;iBAuCjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PreviewArea.d.ts","sourceRoot":"","sources":["../../src/components/PreviewArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,oBAAoB,CAAC;AAgRpE,eAAO,MAAM,WAAW;;iBA+CvB,CAAC"}
1
+ {"version":3,"file":"PreviewArea.d.ts","sourceRoot":"","sources":["../../src/components/PreviewArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,oBAAoB,CAAC;AAiRpE,eAAO,MAAM,WAAW;;iBAwDvB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { DaemonModel } from '../daemon/index.js';
2
+ import { ScreenshotComparisonItem } from './ExplorerModel.js';
3
+ import * as React from 'react';
4
+ export declare const ScreenshotComparisonRow: React.ComponentType<import('@vscode/observables-react').PropsIn<{
5
+ name: import('@vscode/observables-react').IPropertyTransformerFactory<string, string>;
6
+ path: import('@vscode/observables-react').IPropertyTransformerFactory<string, string>;
7
+ items: import('@vscode/observables-react').IPropertyTransformerFactory<readonly ScreenshotComparisonItem[], readonly ScreenshotComparisonItem[]>;
8
+ daemon: import('@vscode/observables-react').IPropertyTransformerFactory<DaemonModel, DaemonModel>;
9
+ baselineSession: import('@vscode/observables-react').IPropertyTransformerFactory<string, string>;
10
+ currentSession: import('@vscode/observables-react').IPropertyTransformerFactory<string, string>;
11
+ }>>;
12
+ //# sourceMappingURL=ScreenshotComparisonRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScreenshotComparisonRow.d.ts","sourceRoot":"","sources":["../../src/components/ScreenshotComparisonRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAmGnE,eAAO,MAAM,uBAAuB;;;;;;;GA6BnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleBar.d.ts","sourceRoot":"","sources":["../../src/components/TitleBar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,eAAO,MAAM,QAAQ;;GAoDpB,CAAC"}
1
+ {"version":3,"file":"TitleBar.d.ts","sourceRoot":"","sources":["../../src/components/TitleBar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAY,MAAM,oBAAoB,CAAC;AAkDlE,eAAO,MAAM,QAAQ;;GAqDpB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export { Explorer, ExplorerWithDefaults } from './Explorer.js';
2
2
  export { ExplorerModel } from './ExplorerModel.js';
3
- export type { FixtureItem } from './ExplorerModel.js';
3
+ export type { FixtureItem, ViewMode, ScreenshotComparisonItem, PreviewRow } from './ExplorerModel.js';
4
4
  export type { ExplorerTreeNode } from './types.js';
5
5
  export { toExplorerTree } from './types.js';
6
6
  export { TitleBar } from './TitleBar.js';
@@ -10,6 +10,8 @@ export { RightSidebar } from './RightSidebar.js';
10
10
  export { TreeView, TreeItem } from './TreeView.js';
11
11
  export { PreviewArea } from './PreviewArea.js';
12
12
  export { FixturePreviewItem } from './FixturePreviewItem.js';
13
+ export { FixtureScreenshotView } from './FixtureScreenshotView.js';
14
+ export { ScreenshotComparisonRow } from './ScreenshotComparisonRow.js';
13
15
  export * from './icons.js';
14
16
  export { styles, mergeStyles } from './styles.js';
15
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,aAAa,E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,CAAC,cAAc,CAAK;IAC3B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,eAAe,CAAiB;IACxC,OAAO,CAAC,kBAAkB,CAAyB;IACnD,OAAO,CAAC,iBAAiB,CAA0B;gBAGjC,iBAAiB,EAAE,WAAW,EAC/C,cAAc,EAAE,cAAc;IAU/B,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,cAAc,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IAQpD,WAAW,IAAI,IAAI;IAKnB,YAAY,IAAI,WAAW,EAAE;IAIvB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAoCrD,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,iBAAiB;CAYzB"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Configuration injected by the daemon via the Vite plugin.
3
+ * Set as `window.__EXPLORER_DAEMON__` when the explorer is served from a daemon-managed Vite server.
4
+ */
5
+ export interface DaemonConfig {
6
+ /** Name of the session this explorer instance belongs to (e.g. 'current' or 'baseline') */
7
+ readonly sessionName: string;
8
+ }
9
+ declare global {
10
+ interface Window {
11
+ __EXPLORER_DAEMON__?: DaemonConfig;
12
+ }
13
+ }
14
+ /**
15
+ * Reads daemon config from the global window object.
16
+ * Returns undefined if the explorer is not running under a daemon.
17
+ */
18
+ export declare function getDaemonConfig(): DaemonConfig | undefined;
19
+ //# sourceMappingURL=DaemonConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DaemonConfig.d.ts","sourceRoot":"","sources":["../../src/daemon/DaemonConfig.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC5B,2FAA2F;IAC3F,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC7B;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,mBAAmB,CAAC,EAAE,YAAY,CAAC;KACnC;CACD;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,YAAY,GAAG,SAAS,CAE1D"}
@@ -0,0 +1,57 @@
1
+ import { IObservable } from '@vscode/observables';
2
+ import { DaemonApiType } from '@vscode/component-explorer-cli/daemon-types';
3
+ import { DaemonConfig } from './DaemonConfig.js';
4
+ /** Screenshot result from the daemon */
5
+ export type DaemonScreenshotResult = DaemonApiType['screenshots']['take']['TResult'];
6
+ /** Comparison result from the daemon */
7
+ export type DaemonCompareResult = DaemonApiType['screenshots']['compare']['TResult'];
8
+ /** Fixture info from the daemon */
9
+ export type DaemonFixtureInfo = DaemonApiType['fixtures']['list']['TResult'][number];
10
+ /**
11
+ * Client-side model for interacting with the daemon.
12
+ * Manages source tree IDs, screenshot caching, and the event stream.
13
+ */
14
+ export declare class DaemonModel {
15
+ readonly config: DaemonConfig;
16
+ private readonly _sourceTreeIds;
17
+ private readonly _sessions;
18
+ private readonly _screenshotCache;
19
+ private readonly _client;
20
+ private _eventStreamAbort;
21
+ readonly sessionName: string;
22
+ /** Observable map of sessionName → current sourceTreeId */
23
+ readonly sourceTreeIds: IObservable<ReadonlyMap<string, string>>;
24
+ /** Observable list of sessions from the daemon */
25
+ readonly sessions: IObservable<readonly {
26
+ name: string;
27
+ serverUrl: string;
28
+ }[]>;
29
+ constructor(config: DaemonConfig);
30
+ /**
31
+ * Initializes the model: fetches initial session info and starts listening to events.
32
+ * Call this once after construction.
33
+ */
34
+ initialize(): Promise<void>;
35
+ /**
36
+ * Get a screenshot for a fixture in a session, using cache when available.
37
+ * Cache is keyed on sessionName + fixtureId and invalidated when sourceTreeId changes.
38
+ */
39
+ getScreenshot(sessionName: string, fixtureId: string): Promise<DaemonScreenshotResult>;
40
+ /**
41
+ * Compare a fixture across two sessions. Returns match status and hashes (no images).
42
+ */
43
+ compare(fixtureId: string, baselineSessionName: string, currentSessionName: string): Promise<DaemonCompareResult>;
44
+ /**
45
+ * List fixtures from a session.
46
+ */
47
+ listFixtures(sessionName: string): Promise<readonly DaemonFixtureInfo[]>;
48
+ /**
49
+ * Get the explorer URL for a different session (for session switching via full navigation).
50
+ */
51
+ getSessionExplorerUrl(sessionName: string): string | undefined;
52
+ dispose(): void;
53
+ private _fetchSessionInfos;
54
+ private _startEventStream;
55
+ private _handleEvent;
56
+ }
57
+ //# sourceMappingURL=DaemonModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DaemonModel.d.ts","sourceRoot":"","sources":["../../src/daemon/DaemonModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAe,MAAM,6CAA6C,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,wCAAwC;AACxC,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;AAErF,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC;AAErF,mCAAmC;AACnC,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAOrF;;;GAGG;AACH,qBAAa,WAAW;IAeX,QAAQ,CAAC,MAAM,EAAE,YAAY;IAdzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiE;IAChG,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6E;IACvG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAuC;IACxE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgC;IACxD,OAAO,CAAC,iBAAiB,CAAgC;IAEzD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,2DAA2D;IAC3D,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAuB;IAEvF,kDAAkD;IAClD,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAAkB;gBAE3E,MAAM,EAAE,YAAY;IAKzC;;;OAGG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAKjC;;;OAGG;IACG,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAuB5F;;OAEG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAgBvH;;OAEG;IACG,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,iBAAiB,EAAE,CAAC;IAQ9E;;OAEG;IACH,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAM9D,OAAO,IAAI,IAAI;YASD,kBAAkB;YAYlB,iBAAiB;IAuB/B,OAAO,CAAC,YAAY;CAepB"}
@@ -0,0 +1,5 @@
1
+ export { DaemonModel } from './DaemonModel.js';
2
+ export type { DaemonScreenshotResult, DaemonCompareResult, DaemonFixtureInfo } from './DaemonModel.js';
3
+ export { getDaemonConfig } from './DaemonConfig.js';
4
+ export type { DaemonConfig } from './DaemonConfig.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/daemon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACvG,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}