@markupai/sidebar-adapter 1.3.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -17
- package/asyncapi.json +125 -20
- package/dist/adapters/pluginAdapter.d.ts +4 -4
- package/dist/adapters/pluginAdapter.d.ts.map +1 -1
- package/dist/adapters/sidebarAdapter.d.ts +12 -1
- package/dist/adapters/sidebarAdapter.d.ts.map +1 -1
- package/dist/document-reference/documentReference.d.ts +57 -0
- package/dist/document-reference/documentReference.d.ts.map +1 -0
- package/dist/document-reference/index.d.ts +2 -0
- package/dist/document-reference/index.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/ipc/call-signatures.d.ts +30 -6
- package/dist/ipc/call-signatures.d.ts.map +1 -1
- package/dist/ipc/plugin-ipc-adapter.d.ts +4 -4
- package/dist/ipc/plugin-ipc-adapter.d.ts.map +1 -1
- package/dist/ipc/sidebar-ipc-adapter.d.ts +12 -1
- package/dist/ipc/sidebar-ipc-adapter.d.ts.map +1 -1
- package/dist/main.js +225 -197
- package/dist/main.umd.cjs +7 -7
- package/dist/types/common.d.ts +54 -2
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/pluginInterface.d.ts +21 -6
- package/dist/types/pluginInterface.d.ts.map +1 -1
- package/dist/types/sidebarInterface.d.ts +22 -1
- package/dist/types/sidebarInterface.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebarAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/sidebarAdapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC3B,eAAe,EACf,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC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C,IAAI,CAAC;IAKvF;;;;;;;OAOG;IACU,oBAAoB,CAC/B,OAAO,EAAE,MAAM,EACf,iBAAiB,GAAE,MAAM,GAAG,IAAW,GACtC,OAAO,CAAC,IAAI,CAAC;IAIhB;;OAEG;IACU,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAInE;;;;OAIG;IACU,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrE;;;;OAIG;IACU,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhE;;;;;;;;;;OAUG;IACU,wBAAwB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrF;;;;;;;;;OASG;IACU,sBAAsB,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAI3E;;;;OAIG;IACU,2BAA2B,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzF;;OAEG;IACI,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;CAG1C"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical `document_ref` composition.
|
|
3
|
+
*
|
|
4
|
+
* A `document_ref` identifies a document across scans and across Markup
|
|
5
|
+
* products. Its value is only useful if **every** surface spells the same
|
|
6
|
+
* document the same way: the backend keys `document_registry` on it, and the
|
|
7
|
+
* Markup session id embeds the high 48 bits of `SHA-256(document_ref)` so a
|
|
8
|
+
* session can be recognised as belonging to a known document.
|
|
9
|
+
*
|
|
10
|
+
* The format is `<prefix>:<id>` — a platform prefix, then an id that is stable
|
|
11
|
+
* and unique within that platform. **The integration supplies both.** It knows
|
|
12
|
+
* what platform it is and which identifier is stable there; the adapter cannot
|
|
13
|
+
* infer either, and hard-coding a list of platforms here would mean an adapter
|
|
14
|
+
* release every time a new one appears — and would still be wrong for hosts
|
|
15
|
+
* whose stable id is not derivable from a URL.
|
|
16
|
+
*
|
|
17
|
+
* ## What an integration is responsible for
|
|
18
|
+
*
|
|
19
|
+
* - **Choose a prefix once and never change it.** The prefix is part of the
|
|
20
|
+
* document's identity. Changing it re-keys every document that integration
|
|
21
|
+
* has ever checked, breaking continuity with its own history. Coordinate a
|
|
22
|
+
* change with the data team; do not ship one quietly.
|
|
23
|
+
* - **Use an id that is stable for the document.** Not the editor URL with its
|
|
24
|
+
* volatile query parameters, not a per-session handle — the thing that still
|
|
25
|
+
* identifies the document tomorrow.
|
|
26
|
+
* - **Use the same reference for the whole document and for a selection.** A
|
|
27
|
+
* selection is a view of one document, not a different document. Varying the
|
|
28
|
+
* reference between them splits one document into two everywhere downstream.
|
|
29
|
+
*
|
|
30
|
+
* Reuse an existing prefix when the platform already has one, so the same
|
|
31
|
+
* document seen from another Markup surface correlates: `gdocs`, `word`,
|
|
32
|
+
* `heretto`, `madcapflare`, `ixiasoft`, or `url` for anything addressed by a
|
|
33
|
+
* plain URL.
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* Whether a value already looks like a composed reference.
|
|
37
|
+
*
|
|
38
|
+
* A shape test, not a membership test — there is no list of known prefixes to
|
|
39
|
+
* check against, by design.
|
|
40
|
+
*/
|
|
41
|
+
export declare function isDocumentReference(value: string): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Compose a `document_ref` from a platform prefix and a document id.
|
|
44
|
+
*
|
|
45
|
+
* Idempotent: a value already prefixed with `prefix` is returned unchanged, so
|
|
46
|
+
* a host that stores composed references can pass them back through without
|
|
47
|
+
* doubling the prefix.
|
|
48
|
+
*
|
|
49
|
+
* @param prefix Platform identifier the integration owns, e.g. `"word"`. Case
|
|
50
|
+
* and surrounding whitespace are normalized; the value is otherwise yours.
|
|
51
|
+
* @param id Stable, unique id for the document within that platform.
|
|
52
|
+
* @throws If either part is empty, or the prefix is not a lowercase
|
|
53
|
+
* alphanumeric name. Both are programming errors that would otherwise
|
|
54
|
+
* produce a reference silently unusable for correlation.
|
|
55
|
+
*/
|
|
56
|
+
export declare function buildDocumentReference(prefix: string, id: string): string;
|
|
57
|
+
//# sourceMappingURL=documentReference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentReference.d.ts","sourceRoot":"","sources":["../../src/document-reference/documentReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAQH;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAI1D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAiBzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/document-reference/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC;AAG3B,cAAc,OAAO,CAAC;AAGtB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC;AAGzB,cAAc,sBAAsB,CAAC;AAGrC,cAAc,YAAY,CAAC;AAG3B,cAAc,OAAO,CAAC;AAGtB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,gBAAgB,CAAC"}
|
|
@@ -15,14 +15,20 @@ export interface CallSignatures {
|
|
|
15
15
|
getSelectedContent(): Promise<ContentInfo>;
|
|
16
16
|
/**
|
|
17
17
|
* Replace content in the editor over the half-open span `[range.start, range.end)`.
|
|
18
|
+
* `documentReference` identifies the document to apply the edit to; omitted
|
|
19
|
+
* or `null` means the integration's currently active document. Optional so
|
|
20
|
+
* callers written against the previous, shorter arity keep compiling.
|
|
18
21
|
* @throws {TextLookupError} When the requested text cannot be found or located
|
|
19
22
|
*/
|
|
20
|
-
replaceContent(suggestion: string, range: ContentRange): Promise<void>;
|
|
23
|
+
replaceContent(suggestion: string, range: ContentRange, documentReference?: string | null): Promise<void>;
|
|
21
24
|
/**
|
|
22
25
|
* Select content in the editor at the half-open span `[range.start, range.end)`.
|
|
26
|
+
* `documentReference` identifies the document to select within; omitted or
|
|
27
|
+
* `null` means the integration's currently active document. Optional so
|
|
28
|
+
* callers written against the previous, shorter arity keep compiling.
|
|
23
29
|
* @throws {TextLookupError} When the requested text cannot be found or located
|
|
24
30
|
*/
|
|
25
|
-
selectContent(range: ContentRange): Promise<void>;
|
|
31
|
+
selectContent(range: ContentRange, documentReference?: string | null): Promise<void>;
|
|
26
32
|
/**
|
|
27
33
|
* Show a dialog in the editor
|
|
28
34
|
*/
|
|
@@ -42,12 +48,18 @@ export interface CallSignatures {
|
|
|
42
48
|
getInitConfig(): Promise<SidebarConfig>;
|
|
43
49
|
/**
|
|
44
50
|
* Notify plugin when one agent's agentic results are available (streaming).
|
|
51
|
+
* `documentReference` is the run's originating document (`null` when
|
|
52
|
+
* `multiDocument` is not enabled) — see {@link PluginInterface.onAgenticAgentResults}.
|
|
53
|
+
* Optional so callers written against the previous, shorter arity keep compiling.
|
|
45
54
|
*/
|
|
46
|
-
onAgenticAgentResults(agentName: string, issues: AgenticIssuePayload[]): Promise<void>;
|
|
55
|
+
onAgenticAgentResults(agentName: string, issues: AgenticIssuePayload[], documentReference?: string | null): Promise<void>;
|
|
47
56
|
/**
|
|
48
|
-
* Notify plugin when the agentic stream has finished.
|
|
57
|
+
* Notify plugin when the agentic stream has finished. `documentReference`
|
|
58
|
+
* is the run's originating document (`null` when `multiDocument` is not
|
|
59
|
+
* enabled) — see {@link PluginInterface.onAgenticStreamComplete}. Optional
|
|
60
|
+
* so callers written against the previous, shorter arity keep compiling.
|
|
49
61
|
*/
|
|
50
|
-
onAgenticStreamComplete(): Promise<void>;
|
|
62
|
+
onAgenticStreamComplete(documentReference?: string | null): Promise<void>;
|
|
51
63
|
/**
|
|
52
64
|
* Notify plugin after every successful agentic-issue status transition.
|
|
53
65
|
* Optional on the plugin side; absent handler is a no-op. See
|
|
@@ -80,8 +92,13 @@ export interface CallSignatures {
|
|
|
80
92
|
onPluginStatusChange?(status: string, type?: PluginStatusType): Promise<void>;
|
|
81
93
|
/**
|
|
82
94
|
* Request sidebar to activate (expand and scroll to) the card for the given issue id.
|
|
95
|
+
* `documentReference` identifies the document the issue belongs to; when it
|
|
96
|
+
* differs from the sidebar's currently displayed document, the sidebar
|
|
97
|
+
* switches to it before activating. Omitted or `null` means the sidebar's
|
|
98
|
+
* currently displayed document. Optional so callers written against the
|
|
99
|
+
* previous, shorter arity keep compiling.
|
|
83
100
|
*/
|
|
84
|
-
activateAgenticIssue(issueId: string): Promise<void>;
|
|
101
|
+
activateAgenticIssue(issueId: string, documentReference?: string | null): Promise<void>;
|
|
85
102
|
/**
|
|
86
103
|
* Request sidebar to invalidate (dismiss) the card for the given issue id.
|
|
87
104
|
*/
|
|
@@ -110,5 +127,12 @@ export interface CallSignatures {
|
|
|
110
127
|
* {@link SidebarInterface.getIntegrationSettings}.
|
|
111
128
|
*/
|
|
112
129
|
getIntegrationSettings(): Promise<IntegrationSettingsSnapshot>;
|
|
130
|
+
/**
|
|
131
|
+
* Notify sidebar that the active document changed, for hosts that enable
|
|
132
|
+
* `multiDocument`. `null` means no checkable document is currently active.
|
|
133
|
+
* Optional on the sidebar side; absent handler is a no-op. See
|
|
134
|
+
* {@link SidebarInterface.onActiveDocumentChanged}.
|
|
135
|
+
*/
|
|
136
|
+
onActiveDocumentChanged?(documentReference: string | null): Promise<void>;
|
|
113
137
|
}
|
|
114
138
|
//# sourceMappingURL=call-signatures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-signatures.d.ts","sourceRoot":"","sources":["../../src/ipc/call-signatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAK7B;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAEnC;;OAEG;IACH,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAE3C
|
|
1
|
+
{"version":3,"file":"call-signatures.d.ts","sourceRoot":"","sources":["../../src/ipc/call-signatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAK7B;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAEnC;;OAEG;IACH,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAE3C;;;;;;OAMG;IACH,cAAc,CACZ,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,YAAY,EACnB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GA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C,CAC1B,MAAM,EAAE,yBAAyB,EACjC,IAAI,EAAE,6BAA6B,GAClC,OAAO,CAAC,IAAI,CAAC,CAAC;IAMjB;;;;;;OAMG;IACH,oBAAoB,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9E;;;;;;;OAOG;IACH,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExF;;OAEG;IACH,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvD;;;;;OAKG;IACH,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzD;;;;;OAKG;IACH,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpD;;;OAGG;IACH,wBAAwB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzE;;;OAGG;IACH,sBAAsB,IAAI,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAE/D;;;;;OAKG;IACH,uBAAuB,CAAC,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3E"}
|
|
@@ -33,11 +33,11 @@ export declare class PluginIPCAdapter {
|
|
|
33
33
|
/**
|
|
34
34
|
* Replace content in the editor
|
|
35
35
|
*/
|
|
36
|
-
replaceContent(suggestion: string, range: ContentRange): Promise<void>;
|
|
36
|
+
replaceContent(suggestion: string, range: ContentRange, documentReference?: string | null): Promise<void>;
|
|
37
37
|
/**
|
|
38
38
|
* Select content in the editor
|
|
39
39
|
*/
|
|
40
|
-
selectContent(range: ContentRange): Promise<void>;
|
|
40
|
+
selectContent(range: ContentRange, documentReference?: string | null): Promise<void>;
|
|
41
41
|
/**
|
|
42
42
|
* Show a dialog in the editor
|
|
43
43
|
*/
|
|
@@ -53,11 +53,11 @@ export declare class PluginIPCAdapter {
|
|
|
53
53
|
/**
|
|
54
54
|
* Notify plugin that one agent's results are available (streaming).
|
|
55
55
|
*/
|
|
56
|
-
onAgenticAgentResults(agentName: string, issues: AgenticIssuePayload[]): Promise<void>;
|
|
56
|
+
onAgenticAgentResults(agentName: string, issues: AgenticIssuePayload[], documentReference?: string | null): Promise<void>;
|
|
57
57
|
/**
|
|
58
58
|
* Notify plugin that the agentic stream has finished.
|
|
59
59
|
*/
|
|
60
|
-
onAgenticStreamComplete(): Promise<void>;
|
|
60
|
+
onAgenticStreamComplete(documentReference?: string | null): Promise<void>;
|
|
61
61
|
/**
|
|
62
62
|
* Notify plugin after a successful agentic-issue status transition.
|
|
63
63
|
* Hosts may not have registered a handler — callers swallow the resulting
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-ipc-adapter.d.ts","sourceRoot":"","sources":["../../src/ipc/plugin-ipc-adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAc,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,mBAAmB,EAEpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAE9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE;;;;;;GAMG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAU;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAS;gBAEjB,OAAO,CAAC,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,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IAkBlD;;OAEG;IACI,eAAe,IAAI,MAAM;IAIhC;;OAEG;IACI,OAAO,IAAI,IAAI;CAKvB"}
|
|
@@ -17,8 +17,13 @@ export declare class SidebarIPCAdapter {
|
|
|
17
17
|
private registerReceivers;
|
|
18
18
|
/**
|
|
19
19
|
* Request sidebar to activate (expand and scroll to) the card for the given issue.
|
|
20
|
+
*
|
|
21
|
+
* @param documentReference - The document the issue belongs to. When it
|
|
22
|
+
* differs from the sidebar's currently displayed document, the sidebar
|
|
23
|
+
* switches to it before activating. Omitted or `null` means the
|
|
24
|
+
* sidebar's currently displayed document.
|
|
20
25
|
*/
|
|
21
|
-
activateAgenticIssue(issueId: string): Promise<void>;
|
|
26
|
+
activateAgenticIssue(issueId: string, documentReference?: string | null): Promise<void>;
|
|
22
27
|
/**
|
|
23
28
|
* Request sidebar to invalidate (dismiss) the card for the given issue.
|
|
24
29
|
*/
|
|
@@ -44,6 +49,12 @@ export declare class SidebarIPCAdapter {
|
|
|
44
49
|
* Read back the sidebar's current integration-settings snapshot.
|
|
45
50
|
*/
|
|
46
51
|
getIntegrationSettings(): Promise<IntegrationSettingsSnapshot>;
|
|
52
|
+
/**
|
|
53
|
+
* Notify the sidebar that the active document changed, for hosts that
|
|
54
|
+
* enable `multiDocument`. Pass `null` when there is no checkable document
|
|
55
|
+
* currently active. No-op if the sidebar has not registered a handler.
|
|
56
|
+
*/
|
|
57
|
+
notifyActiveDocumentChanged(documentReference: string | null): Promise<void>;
|
|
47
58
|
/**
|
|
48
59
|
* Update IPC configuration
|
|
49
60
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-ipc-adapter.d.ts","sourceRoot":"","sources":["../../src/ipc/sidebar-ipc-adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAuB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAG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