@g9tm/lynxcontrols-canvas 0.0.0-stage → 2.5.9

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 (60) hide show
  1. package/README.md +39 -2
  2. package/catalog/cards/G9Canvas.md +17 -0
  3. package/catalog/cards/G9CanvasStylePanel.md +13 -0
  4. package/catalog/catalog.json +2334 -0
  5. package/catalog/index.md +6 -0
  6. package/dist/.tsbuildinfo +1 -0
  7. package/dist/board-controller.d.ts +161 -0
  8. package/dist/board-controller.d.ts.map +1 -0
  9. package/dist/board-controller.jsx +812 -0
  10. package/dist/board-model.d.ts +42 -0
  11. package/dist/board-model.d.ts.map +1 -0
  12. package/dist/board-model.jsx +66 -0
  13. package/dist/canvas.css +81 -0
  14. package/dist/canvas.css.map +1 -0
  15. package/dist/canvas.d.ts +144 -0
  16. package/dist/canvas.d.ts.map +1 -0
  17. package/dist/canvas.jsx +481 -0
  18. package/dist/element-core.d.ts +155 -0
  19. package/dist/element-core.d.ts.map +1 -0
  20. package/dist/element-core.jsx +1104 -0
  21. package/dist/export.d.ts +7 -0
  22. package/dist/export.d.ts.map +1 -0
  23. package/dist/export.jsx +75 -0
  24. package/dist/index.d.ts +8 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.jsx +7 -0
  27. package/dist/observable.d.ts +5 -0
  28. package/dist/observable.d.ts.map +1 -0
  29. package/dist/observable.jsx +14 -0
  30. package/dist/protocol.d.ts +258 -0
  31. package/dist/protocol.d.ts.map +1 -0
  32. package/dist/protocol.jsx +2 -0
  33. package/dist/scene/edit.d.ts +59 -0
  34. package/dist/scene/edit.d.ts.map +1 -0
  35. package/dist/scene/edit.jsx +895 -0
  36. package/dist/scene/elements.d.ts +160 -0
  37. package/dist/scene/elements.d.ts.map +1 -0
  38. package/dist/scene/elements.jsx +392 -0
  39. package/dist/scene/geometry.d.ts +36 -0
  40. package/dist/scene/geometry.d.ts.map +1 -0
  41. package/dist/scene/geometry.jsx +367 -0
  42. package/dist/scene/index.d.ts +8 -0
  43. package/dist/scene/index.d.ts.map +1 -0
  44. package/dist/scene/index.jsx +6 -0
  45. package/dist/scene/path-data-parser.d.ts +17 -0
  46. package/dist/scene/path-data-parser.d.ts.map +1 -0
  47. package/dist/scene/path-data-parser.jsx +128 -0
  48. package/dist/scene/scene.d.ts +58 -0
  49. package/dist/scene/scene.d.ts.map +1 -0
  50. package/dist/scene/scene.jsx +169 -0
  51. package/dist/scene/shapes.d.ts +24 -0
  52. package/dist/scene/shapes.d.ts.map +1 -0
  53. package/dist/scene/shapes.jsx +807 -0
  54. package/dist/scene/types.d.ts +118 -0
  55. package/dist/scene/types.d.ts.map +1 -0
  56. package/dist/scene/types.jsx +1 -0
  57. package/dist/words.d.ts +100 -0
  58. package/dist/words.d.ts.map +1 -0
  59. package/dist/words.jsx +186 -0
  60. package/package.json +50 -4
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Whiteboard element bookkeeping (Plan-V3 §5.3), free of Excalidraw imports so it is testable (board-model.test.ts):
3
+ * which elements changed since they were last synced, the reconciliation rule the server applies, batching of pushes
4
+ * under the hub's message size, and restoring a version as ordinary edits.
5
+ */
6
+ export interface BoardElement {
7
+ id: string;
8
+ type: string;
9
+ version: number;
10
+ versionNonce: number;
11
+ isDeleted?: boolean;
12
+ index?: string | null;
13
+ text?: string;
14
+ fileId?: string | null;
15
+ [key: string]: unknown;
16
+ }
17
+ /** Excalidraw's (and the server's) rule: a higher version wins; on a tie the lower versionNonce wins. */
18
+ export declare function isNewer(candidate: Pick<BoardElement, 'version' | 'versionNonce'>, current: Pick<BoardElement, 'version' | 'versionNonce'> | undefined): boolean;
19
+ /** Elements whose version moved past what the server confirmed (or that it never saw). */
20
+ export declare function changedSince<T extends BoardElement>(elements: readonly T[], synced: ReadonlyMap<string, {
21
+ version: number;
22
+ versionNonce: number;
23
+ }>): T[];
24
+ /**
25
+ * JSON arrays of elements, each under <paramref name="maxChars"/> characters (a hub message is at most 1 MiB, and the
26
+ * array travels as a string inside JSON). An element larger than the limit goes alone (the server refuses it if it is
27
+ * over its own per-element limit).
28
+ */
29
+ export declare function chunkElements(elements: readonly BoardElement[], maxChars?: number): string[];
30
+ /** A 32-bit random nonce, like Excalidraw's `randomInteger`. */
31
+ export declare function randomNonce(): number;
32
+ /**
33
+ * Restoring a saved version as edits everybody receives: the version's elements come back with versions above anything
34
+ * seen now, and elements added since are deleted (tombstones), so the reconciliation on every client and the server
35
+ * converges on the old scene.
36
+ */
37
+ export declare function restoreAsEdits(saved: readonly BoardElement[], current: readonly BoardElement[], nonce?: () => number): BoardElement[];
38
+ /** The words on a board (text elements), for search. */
39
+ export declare function boardText(elements: readonly BoardElement[]): string;
40
+ /** Fractional-index order (Excalidraw's z-order); elements without an index keep their place at the end. */
41
+ export declare function byIndex<T extends BoardElement>(elements: readonly T[]): T[];
42
+ //# sourceMappingURL=board-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"board-model.d.ts","sourceRoot":"","sources":["../src/board-model.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,yGAAyG;AACzG,wBAAgB,OAAO,CACrB,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,cAAc,CAAC,EACzD,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,cAAc,CAAC,GAAG,SAAS,GAClE,OAAO,CAMT;AAED,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,CAAC,SAAS,YAAY,EACjD,QAAQ,EAAE,SAAS,CAAC,EAAE,EACtB,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,GACrE,CAAC,EAAE,CAEL;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,SAAS,YAAY,EAAE,EAAE,QAAQ,SAAU,GAAG,MAAM,EAAE,CAgB7F;AAED,gEAAgE;AAChE,wBAAgB,WAAW,IAAI,MAAM,CAEpC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,KAAK,GAAE,MAAM,MAAoB,GAChC,YAAY,EAAE,CAahB;AAED,wDAAwD;AACxD,wBAAgB,SAAS,CAAC,QAAQ,EAAE,SAAS,YAAY,EAAE,GAAG,MAAM,CAKnE;AAED,4GAA4G;AAC5G,wBAAgB,OAAO,CAAC,CAAC,SAAS,YAAY,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,CAI3E"}
@@ -0,0 +1,66 @@
1
+ function isNewer(candidate, current) {
2
+ if (!current) return true;
3
+ return candidate.version > current.version || candidate.version === current.version && candidate.versionNonce < current.versionNonce;
4
+ }
5
+ function changedSince(elements, synced) {
6
+ return elements.filter((element)=>isNewer(element, synced.get(element.id)));
7
+ }
8
+ function chunkElements(elements, maxChars = 600000) {
9
+ const chunks = [];
10
+ let current = [];
11
+ let size = 2;
12
+ for (const element of elements){
13
+ const json = JSON.stringify(element);
14
+ if (current.length && size + json.length + 1 > maxChars) {
15
+ chunks.push(`[${current.join(',')}]`);
16
+ current = [];
17
+ size = 2;
18
+ }
19
+ current.push(json);
20
+ size += json.length + 1;
21
+ }
22
+ if (current.length) chunks.push(`[${current.join(',')}]`);
23
+ return chunks;
24
+ }
25
+ function randomNonce() {
26
+ return Math.floor(Math.random() * 2 ** 31);
27
+ }
28
+ function restoreAsEdits(saved, current, nonce = randomNonce) {
29
+ const now = new Map(current.map((element)=>[
30
+ element.id,
31
+ element
32
+ ]));
33
+ const kept = new Set(saved.map((element)=>element.id));
34
+ const restored = saved.map((element)=>{
35
+ var _ref;
36
+ var _now_get;
37
+ return {
38
+ ...element,
39
+ isDeleted: false,
40
+ version: Math.max(element.version, null != (_ref = null == (_now_get = now.get(element.id)) ? void 0 : _now_get.version) ? _ref : 0) + 1,
41
+ versionNonce: nonce()
42
+ };
43
+ });
44
+ const removed = current.filter((element)=>!kept.has(element.id) && !element.isDeleted).map((element)=>({
45
+ ...element,
46
+ isDeleted: true,
47
+ version: element.version + 1,
48
+ versionNonce: nonce()
49
+ }));
50
+ return [
51
+ ...restored,
52
+ ...removed
53
+ ];
54
+ }
55
+ function boardText(elements) {
56
+ return elements.filter((element)=>!element.isDeleted && 'string' == typeof element.text && element.text.trim()).map((element)=>element.text.trim()).join('\n');
57
+ }
58
+ function byIndex(elements) {
59
+ return [
60
+ ...elements
61
+ ].sort((a, b)=>{
62
+ var _a_index, _b_index, _a_index1, _b_index1;
63
+ return (null != (_a_index = a.index) ? _a_index : '￿') < (null != (_b_index = b.index) ? _b_index : '￿') ? -1 : (null != (_a_index1 = a.index) ? _a_index1 : '￿') > (null != (_b_index1 = b.index) ? _b_index1 : '￿') ? 1 : 0;
64
+ });
65
+ }
66
+ export { boardText, byIndex, changedSince, chunkElements, isNewer, randomNonce, restoreAsEdits };
@@ -0,0 +1,81 @@
1
+ .g9-canvas {
2
+ flex: 1;
3
+ min-height: 0;
4
+ }
5
+
6
+ .g9-cvpanel {
7
+ flex-direction: column;
8
+ row-gap: 10px;
9
+ padding: 8px 12px;
10
+ display: flex;
11
+ }
12
+
13
+ .g9-cvpanel__section {
14
+ flex-direction: column;
15
+ row-gap: 6px;
16
+ display: flex;
17
+ }
18
+
19
+ .g9-cvpanel__label {
20
+ font-size: 12px;
21
+ font-weight: 600;
22
+ font-family: var(--g9-font-text-600);
23
+ color: var(--g9-text-secondary);
24
+ }
25
+
26
+ .g9-cvpanel__row {
27
+ flex-flow: wrap;
28
+ gap: 6px;
29
+ display: flex;
30
+ }
31
+
32
+ .g9-cvpanel__swatch {
33
+ border-style: solid;
34
+ border-width: 1px;
35
+ border-color: var(--g9-outline-variant);
36
+ border-radius: 8px;
37
+ justify-content: center;
38
+ align-items: center;
39
+ width: 32px;
40
+ height: 32px;
41
+ display: flex;
42
+ }
43
+
44
+ .g9-cvpanel__swatch--on {
45
+ border-width: 2px;
46
+ border-color: #6965db;
47
+ }
48
+
49
+ .g9-cvpanel__none {
50
+ font-size: 18px;
51
+ font-family: var(--g9-font-text);
52
+ color: #adb5bd;
53
+ }
54
+
55
+ .g9-cvpanel__choice {
56
+ background-color: var(--g9-surface-container);
57
+ border-radius: 8px;
58
+ justify-content: center;
59
+ align-items: center;
60
+ min-width: 36px;
61
+ height: 32px;
62
+ padding: 0 10px;
63
+ display: flex;
64
+ }
65
+
66
+ .g9-cvpanel__choice--on {
67
+ background-color: #e0dfff;
68
+ }
69
+
70
+ .g9-cvpanel__choice-text {
71
+ font-size: 13px;
72
+ font-family: var(--g9-font-text);
73
+ color: var(--g9-text-primary);
74
+ }
75
+
76
+ .g9-cvpanel__choice-text--on {
77
+ color: #3b3897;
78
+ }
79
+
80
+
81
+ /*# sourceMappingURL=canvas.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack://./src/canvas.css"],"names":[],"mappings":"AACA;EAAE,OAAO;EACP,aAAa;AACf;;AAGA;EAAE,sBAAsB;EACtB,aAAa;EACb,iBAAiB;EACjB,aAAa;AACf;;AAGA;EAAE,sBAAsB;EACtB,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,eAAe;EACf,gBAAgB;EAChB,oCAAoC;EACpC,+BAA+B;AACjC;;AAGA;EAAE,eAAe;EACf,QAAQ;EACR,aAAa;AACf;;AAKA;EAFE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,kBAAkB;EAClB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAKA;EAFE,iBAAiB;EACjB,qBAAqB;AACvB;;AAKA;EAFE,eAAe;EACf,gCAAgC;EAChC,cAAc;AAChB;;AAKA;EAFE,6CAA6C;EAC7C,kBAAkB;EAClB,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,eAAe;EACf,aAAa;AACf;;AAKA;EAFE,yBAAyB;AAC3B;;AAKA;EAFE,eAAe;EACf,gCAAgC;EAChC,6BAA6B;AAC/B;;AAKA;EAFE,cAAc;AAChB","sourcesContent":["/* The whiteboard (2.5.8, G9Hub item 51). */\n.g9-canvas {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-cvpanel {\n display: flex;\n flex-direction: column;\n row-gap: 10px;\n padding: 8px 12px;\n}\n\n.g9-cvpanel__section {\n display: flex;\n flex-direction: column;\n row-gap: 6px;\n}\n\n.g9-cvpanel__label {\n font-size: 12px;\n font-weight: 600;\n font-family: var(--g9-font-text-600);\n color: var(--g9-text-secondary);\n}\n\n.g9-cvpanel__row {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n column-gap: 6px;\n row-gap: 6px;\n}\n\n.g9-cvpanel__swatch {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 8px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-cvpanel__swatch--on {\n border-width: 2px;\n border-color: #6965db;\n}\n\n.g9-cvpanel__none {\n font-size: 18px;\n font-family: var(--g9-font-text);\n color: #adb5bd;\n}\n\n.g9-cvpanel__choice {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 36px;\n height: 32px;\n padding: 0px 10px;\n border-radius: 8px;\n background-color: var(--g9-surface-container);\n}\n\n.g9-cvpanel__choice--on {\n background-color: #e0dfff;\n}\n\n.g9-cvpanel__choice-text {\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-primary);\n}\n\n.g9-cvpanel__choice-text--on {\n color: #3b3897;\n}\n"],"sourceRoot":""}
@@ -0,0 +1,144 @@
1
+ import { type ReactNode } from '@lynx-js/react';
2
+ import type { NodesRef, StandardProps } from '@lynx-js/types';
3
+ import type { BoardController, BoardState } from './board-controller.js';
4
+ import type { CvBoxEvent, CvCursorEvent, CvDownEvent, CvEraseEvent, CvExportEvent, CvLineEvent, CvMessage, CvMoveEvent, CvPointEvent, CvShapeEvent, CvStrokeEvent, CvStrokeStyle, CvTapEvent, CvTool, CvTransformEvent, CvViewEvent } from './protocol.js';
5
+ import type { ExElement, ItemStyle } from './scene/types.js';
6
+ import { type G9CanvasWords } from './words.js';
7
+ import './canvas.css';
8
+ /** The attributes and events of `<g9-canvas>`. */
9
+ export interface G9CanvasElementProps extends StandardProps {
10
+ tool?: CvTool;
11
+ editable?: boolean;
12
+ theme?: 'light' | 'dark';
13
+ background?: string;
14
+ accent?: string;
15
+ /** `CvStrokeStyle` as JSON (the live previews). */
16
+ stroke?: string;
17
+ bindcvview?: (event: {
18
+ detail: CvViewEvent;
19
+ }) => void;
20
+ bindcvdown?: (event: {
21
+ detail: CvDownEvent;
22
+ }) => void;
23
+ bindcvtap?: (event: {
24
+ detail: CvTapEvent;
25
+ }) => void;
26
+ bindcvmove?: (event: {
27
+ detail: CvMoveEvent;
28
+ }) => void;
29
+ bindcvtransform?: (event: {
30
+ detail: CvTransformEvent;
31
+ }) => void;
32
+ bindcvbox?: (event: {
33
+ detail: CvBoxEvent;
34
+ }) => void;
35
+ bindcvshape?: (event: {
36
+ detail: CvShapeEvent;
37
+ }) => void;
38
+ bindcvline?: (event: {
39
+ detail: CvLineEvent;
40
+ }) => void;
41
+ bindcvpoint?: (event: {
42
+ detail: CvPointEvent;
43
+ }) => void;
44
+ bindcvstroke?: (event: {
45
+ detail: CvStrokeEvent;
46
+ }) => void;
47
+ bindcverase?: (event: {
48
+ detail: CvEraseEvent;
49
+ }) => void;
50
+ bindcvcursor?: (event: {
51
+ detail: CvCursorEvent;
52
+ }) => void;
53
+ bindcvexport?: (event: {
54
+ detail: CvExportEvent;
55
+ }) => void;
56
+ }
57
+ declare module '@lynx-js/types' {
58
+ interface IntrinsicElements {
59
+ 'g9-canvas': G9CanvasElementProps;
60
+ }
61
+ }
62
+ /** A host that shows the web element in a page of its own (Lynxtron): the app wires it. */
63
+ export interface G9CanvasDesktopHost {
64
+ /** Gets the page ready; false when it cannot be shown. */
65
+ prepare(): Promise<boolean>;
66
+ /** The page's address for a canvas id (a `<webview src>`), or null. */
67
+ pageUrl(id: string): string | null;
68
+ send(id: string, message: {
69
+ type: 'apply';
70
+ json: string;
71
+ } | {
72
+ type: 'attrs';
73
+ attrs: Record<string, string>;
74
+ } | {
75
+ type: 'export';
76
+ params: Record<string, unknown>;
77
+ }): void;
78
+ /** The page's events (`cvready` when it (re)loaded); returns the unsubscribe. */
79
+ onEvent(listener: (event: {
80
+ id: string;
81
+ name: string;
82
+ detail: unknown;
83
+ }) => void): () => void;
84
+ }
85
+ /** The controller's way to the element (create it, give it to the controller and to {@link G9Canvas}). */
86
+ export declare class G9CanvasPort {
87
+ private target;
88
+ private desktop;
89
+ private readonly exports;
90
+ /** Sends a message to the element (or the desktop page). */
91
+ send: (message: CvMessage) => void;
92
+ attach(target: NodesRef | null): void;
93
+ attachDesktop(desktop: {
94
+ id: string;
95
+ host: G9CanvasDesktopHost;
96
+ } | null): void;
97
+ /** The element (or page) exists. */
98
+ get attached(): boolean;
99
+ /** Renders the board to a PNG (the host registers it like a picked file); rejects after 30 s. */
100
+ exportImage(options: {
101
+ scale?: number;
102
+ padding?: number;
103
+ background?: boolean;
104
+ name: string;
105
+ }): Promise<CvExportEvent>;
106
+ /** The element answered an export. */
107
+ exported(event: CvExportEvent): void;
108
+ }
109
+ /** The controller's state, re-rendering on every change. */
110
+ export declare function useG9CanvasState(controller: BoardController): BoardState;
111
+ /** An element event into the controller (the same names on every host). */
112
+ export declare function dispatchG9CanvasEvent(controller: BoardController, port: G9CanvasPort, name: string, detail: unknown): void;
113
+ /** Props of {@link G9Canvas}. */
114
+ export interface G9CanvasProps {
115
+ readonly id?: string;
116
+ readonly controller: BoardController;
117
+ readonly port: G9CanvasPort;
118
+ readonly tool: CvTool;
119
+ readonly editable: boolean;
120
+ readonly dark?: boolean;
121
+ readonly stroke: CvStrokeStyle;
122
+ /** The board's colour (light; the dark look is the element's filter). Default white. */
123
+ readonly background?: string;
124
+ /** Selection handles. Default Excalidraw's violet. */
125
+ readonly accent?: string;
126
+ readonly className?: string;
127
+ /** A host without the element (Lynxtron). */
128
+ readonly desktop?: G9CanvasDesktopHost;
129
+ }
130
+ /** A whiteboard on the host's `<g9-canvas>` (or the desktop's page). */
131
+ export declare function G9Canvas(props: G9CanvasProps): ReactNode;
132
+ /** Props of {@link G9CanvasStylePanel}. */
133
+ export interface G9CanvasStylePanelProps {
134
+ readonly id?: string;
135
+ readonly controller: BoardController;
136
+ readonly style: ItemStyle;
137
+ readonly tool: string;
138
+ readonly selected: readonly ExElement[];
139
+ /** The panel's words (default English: `g9CanvasWordsEn`). */
140
+ readonly words?: G9CanvasWords;
141
+ }
142
+ /** The style of the tool in hand or the selection: colours, fill, stroke, sloppiness, edges, text, arrows, layers. */
143
+ export declare function G9CanvasStylePanel(props: G9CanvasStylePanelProps): ReactNode;
144
+ //# sourceMappingURL=canvas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../src/canvas.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAA8D,MAAM,gBAAgB,CAAC;AAC5G,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACtE,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