@harbour-enterprises/superdoc 0.11.37 → 0.11.39

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 (29) hide show
  1. package/dist/chunks/{super-editor.es-CjnJi9EI.es.js → super-editor.es-CfOoZR7Y.es.js} +3 -3
  2. package/dist/chunks/{super-editor.es-CJ7-KcXD.cjs → super-editor.es-Oav3pft6.cjs} +3 -3
  3. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts +1 -2
  4. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts.map +1 -1
  5. package/dist/core/SuperDoc.d.ts +262 -40
  6. package/dist/core/SuperDoc.d.ts.map +1 -1
  7. package/dist/stores/superdoc-store.d.ts +6 -744
  8. package/dist/stores/superdoc-store.d.ts.map +1 -1
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-DsjQE-ty.js → converter-BaPyRYsP.js} +2 -2
  11. package/dist/super-editor/chunks/{docx-zipper-SxaBdzlS.js → docx-zipper-DWp5ugUc.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-DYLzFO1Q.js → editor-C80oU8zg.js} +3 -3
  13. package/dist/super-editor/chunks/{toolbar-CXKqr_40.js → toolbar-BfR55xSN.js} +2 -2
  14. package/dist/super-editor/components/toolbar/super-toolbar.d.ts +1 -1
  15. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/super-editor.es.js +6 -6
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.d.ts +3 -0
  24. package/dist/super-editor.es.js +1 -1
  25. package/dist/superdoc.cjs +3 -3
  26. package/dist/superdoc.es.js +111 -9
  27. package/dist/superdoc.umd.js +111 -11
  28. package/dist/superdoc.umd.js.map +1 -1
  29. package/package.json +1 -1
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * This renders a list of comments into an element, connected to main SuperDoc instance
5
5
  */
6
- export class SuperComments extends EventEmitter<string | symbol, any> {
6
+ export class SuperComments {
7
7
  constructor(options: any, superdoc: any);
8
8
  element: any;
9
9
  config: {
@@ -18,5 +18,4 @@ export class SuperComments extends EventEmitter<string | symbol, any> {
18
18
  close(): void;
19
19
  open(): void;
20
20
  }
21
- import EventEmitter from 'eventemitter3';
22
21
  //# sourceMappingURL=super-comments-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"super-comments-list.d.ts","sourceRoot":"","sources":["../../../../src/components/CommentsLayer/commentsList/super-comments-list.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;IAUE,yCAOC;IAfD,aAAQ;IAER;;;;MAIE;IAMA,gCAAe;IACf,cAAwB;IAI1B,qBAUC;IADC,yQAA6C;IAG/C,cAOC;IAED,aAIC;CACF;yBAxDwB,eAAe"}
1
+ {"version":3,"file":"super-comments-list.d.ts","sourceRoot":"","sources":["../../../../src/components/CommentsLayer/commentsList/super-comments-list.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;IAUE,yCAOC;IAfD,aAAQ;IAER;;;;MAIE;IAMA,gCAAe;IACf,cAAwB;IAI1B,qBAUC;IADC,yQAA6C;IAG/C,cAOC;IAED,aAIC;CACF"}
@@ -2,19 +2,25 @@
2
2
  * @typedef {Object} User The current user of this superdoc
3
3
  * @property {string} name The user's name
4
4
  * @property {string} email The user's email
5
- * @property {string | null} image The user's photo
5
+ * @property {string | null} [image] The user's photo
6
6
  */
7
7
  /**
8
- * @typedef {Object} Telemetry Telemetry configuration
8
+ * @typedef {Object} TelemetryConfig Telemetry configuration
9
9
  * @property {boolean} [enabled=true] Whether telemetry is enabled
10
- * @property {string} [licenceKey] The licence key for telemetry
10
+ * @property {string} [licenseKey] The licence key for telemetry
11
11
  * @property {string} [endpoint] The endpoint for telemetry
12
+ * @property {string} [superdocVersion] The version of the superdoc
12
13
  */
13
14
  /**
14
15
  * @typedef {Object} Document
15
- * @property {string} id The ID of the document
16
+ * @property {string} [id] The ID of the document
16
17
  * @property {string} type The type of the document
17
18
  * @property {File | null} [data] The initial data of the document
19
+ * @property {string} [name] The name of the document
20
+ * @property {string} [url] The URL of the document
21
+ * @property {boolean} [isNewFile] Whether the document is a new file
22
+ * @property {import('yjs').Doc} [ydoc] The Yjs document for collaboration
23
+ * @property {import('@hocuspocus/provider').HocuspocusProvider} [provider] The provider for collaboration
18
24
  */
19
25
  /**
20
26
  * @typedef {Object} Modules
@@ -22,12 +28,21 @@
22
28
  * @property {Object} [ai] AI module configuration
23
29
  * @property {string} [ai.apiKey] Harbour API key for AI features
24
30
  * @property {string} [ai.endpoint] Custom endpoint URL for AI services
31
+ * @property {Object} [collaboration] Collaboration module configuration
32
+ * @property {Object} [toolbar] Toolbar module configuration
33
+ */
34
+ /** @typedef {import('@harbour-enterprises/super-editor').Editor} Editor */
35
+ /**
36
+ * @typedef {string} DocumentMode
37
+ * @property {'editing'} editing The document is in editing mode
38
+ * @property {'viewing'} viewing The document is in viewing mode
39
+ * @property {'suggesting'} suggesting The document is in suggesting mode
25
40
  */
26
41
  /**
27
42
  * @typedef {Object} Config
28
43
  * @property {string} [superdocId] The ID of the SuperDoc
29
44
  * @property {string} selector The selector to mount the SuperDoc into
30
- * @property {'editing' | 'viewing' | 'suggesting'} documentMode The mode of the document
45
+ * @property {DocumentMode} documentMode The mode of the document
31
46
  * @property {'editor' | 'viewer' | 'suggester'} [role] The role of the user in this SuperDoc
32
47
  * @property {Object | string} [document] The document to load. If a string, it will be treated as a URL
33
48
  * @property {Array<Document>} documents The documents to load
@@ -40,11 +55,11 @@
40
55
  * @property {Array<string>} [toolbarGroups] Toolbar groups to show
41
56
  * @property {Object} [toolbarIcons] Icons to show in the toolbar
42
57
  * @property {boolean} [isDev] Whether the SuperDoc is in development mode
43
- * @property {Telemetry} [telemetry] Telemetry configuration
58
+ * @property {TelemetryConfig} [telemetry] Telemetry configuration
44
59
  * @property {(editor: Editor) => void} [onEditorBeforeCreate] Callback before an editor is created
45
60
  * @property {(editor: Editor) => void} [onEditorCreate] Callback after an editor is created
46
61
  * @property {() => void} [onEditorDestroy] Callback after an editor is destroyed
47
- * @property {(params: { error: object, editor: Editor, documentId: string, file: File })} [onContentError] Callback when there is an error in the content
62
+ * @property {(params: { error: object, editor: Editor, documentId: string, file: File }) => void} [onContentError] Callback when there is an error in the content
48
63
  * @property {(editor: { superdoc: SuperDoc }) => void} [onReady] Callback when the SuperDoc is ready
49
64
  * @property {(params: { type: string, data: object}) => void} [onCommentsUpdate] Callback when comments are updated
50
65
  * @property {(params: { context: SuperDoc, states: Array }) => void} [onAwarenessUpdate] Callback when awareness is updated
@@ -53,12 +68,26 @@
53
68
  * @property {(isOpened: boolean) => void} [onSidebarToggle] Callback when the sidebar is toggled
54
69
  * @property {(params: { editor: Editor }) => void} [onCollaborationReady] Callback when collaboration is ready
55
70
  * @property {(params: { editor: Editor }) => void} [onEditorUpdate] Callback when document is updated
56
- * @property {(params: { error: Exception }) => void} [onException] Callback when an exception is thrown
71
+ * @property {(params: { error: Error }) => void} [onException] Callback when an exception is thrown
72
+ * @property {(params: { isRendered: boolean }) => void} [onCommentsListChange] Callback when the comments list is rendered
73
+ * @property {string} [format] The format of the document (docx, pdf, html)
74
+ * @property {Object[]} [editorExtensions] The extensions to load for the editor
75
+ * @property {boolean} [isInternal] Whether the SuperDoc is internal
76
+ * @property {string} [title] The title of the SuperDoc
77
+ * @property {Object[]} [conversations] The conversations to load
78
+ * @property {boolean} [isLocked] Whether the SuperDoc is locked
79
+ * @property {Object} [pdfViewer] The PDF viewer configuration
80
+ * @property {function(File): Promise<string>} [handleImageUpload] The function to handle image uploads
81
+ * @property {User} [lockedBy] The user who locked the SuperDoc
82
+ * @property {HocuspocusProviderWebsocket} [socket] The socket connection for collaboration
83
+ * @property {boolean} [rulers] Whether to show the ruler in the editor
57
84
  */
58
85
  /**
59
86
  * SuperDoc class
60
87
  * Expects a config object
88
+ *
61
89
  * @class
90
+ * @extends EventEmitter
62
91
  */
63
92
  export class SuperDoc extends EventEmitter<string | symbol, any> {
64
93
  /** @type {Array<string>} */
@@ -67,9 +96,14 @@ export class SuperDoc extends EventEmitter<string | symbol, any> {
67
96
  * @param {Config} config
68
97
  */
69
98
  constructor(config: Config);
70
- /** @type {number} */
71
- version: number;
72
- users: any;
99
+ /** @type {string} */
100
+ version: string;
101
+ /** @type {User[]} */
102
+ users: User[];
103
+ /** @type {import('yjs').Doc | undefined} */
104
+ ydoc: import("yjs").Doc | undefined;
105
+ /** @type {import('@hocuspocus/provider').HocuspocusProvider | undefined} */
106
+ provider: import("@hocuspocus/provider").HocuspocusProvider | undefined;
73
107
  /** @type {Config} */
74
108
  config: Config;
75
109
  userColorMap: Map<any, any>;
@@ -79,15 +113,19 @@ export class SuperDoc extends EventEmitter<string | symbol, any> {
79
113
  user: User;
80
114
  socket: any;
81
115
  isDev: boolean;
82
- activeEditor: any;
116
+ activeEditor: import("@harbour-enterprises/super-editor").Editor;
83
117
  comments: any[];
84
118
  readyEditors: number;
85
- isLocked: any;
86
- lockedBy: any;
87
- get requiredNumberOfEditors(): any;
119
+ isLocked: boolean;
120
+ lockedBy: User;
121
+ /**
122
+ * Get the number of editors that are required for this superdoc
123
+ * @returns {number} The number of required editors
124
+ */
125
+ get requiredNumberOfEditors(): number;
88
126
  get state(): {
89
127
  documents: any;
90
- users: any;
128
+ users: User[];
91
129
  };
92
130
  app: any;
93
131
  pinia: any;
@@ -96,31 +134,66 @@ export class SuperDoc extends EventEmitter<string | symbol, any> {
96
134
  isCollaborative: boolean;
97
135
  /**
98
136
  * Add a user to the shared users list
99
- *
100
137
  * @param {Object} user The user to add
101
138
  * @returns {void}
102
139
  */
103
140
  addSharedUser(user: any): void;
104
141
  /**
105
142
  * Remove a user from the shared users list
106
- *
107
143
  * @param {String} email The email of the user to remove
108
144
  * @returns {void}
109
145
  */
110
146
  removeSharedUser(email: string): void;
111
147
  telemetry: Telemetry;
148
+ /**
149
+ * Triggered when there is an error in the content
150
+ * @param {Object} param0
151
+ * @param {Error} param0.error The error that occurred
152
+ * @param {Editor} param0.editor The editor that caused the error
153
+ */
112
154
  onContentError({ error, editor }: {
113
- error: any;
114
- editor: any;
155
+ error: Error;
156
+ editor: Editor;
115
157
  }): void;
158
+ /**
159
+ * Triggered when the PDF document is ready
160
+ * @returns {void}
161
+ */
116
162
  broadcastPdfDocumentReady(): void;
163
+ /**
164
+ * Triggered when the superdoc is ready
165
+ * @returns {void}
166
+ */
117
167
  broadcastReady(): void;
118
- broadcastEditorBeforeCreate(editor: any): void;
119
- broadcastEditorCreate(editor: any): void;
168
+ /**
169
+ * Triggered before an editor is created
170
+ * @param {Editor} editor The editor that is about to be created
171
+ * @returns {void}
172
+ */
173
+ broadcastEditorBeforeCreate(editor: Editor): void;
174
+ /**
175
+ * Triggered when an editor is created
176
+ * @param {Editor} editor The editor that was created
177
+ * @returns {void}
178
+ */
179
+ broadcastEditorCreate(editor: Editor): void;
180
+ /**
181
+ * Triggered when an editor is destroyed
182
+ * @returns {void}
183
+ */
120
184
  broadcastEditorDestroy(): void;
121
- broadcastSidebarToggle(isOpened: any): void;
185
+ /**
186
+ * Triggered when the comments sidebar is toggled
187
+ * @param {boolean} isOpened
188
+ */
189
+ broadcastSidebarToggle(isOpened: boolean): void;
122
190
  log(...args: any[]): void;
123
- setActiveEditor(editor: any): void;
191
+ /**
192
+ * Set the active editor
193
+ * @param {Editor} editor The editor to set as active
194
+ * @returns {void}
195
+ */
196
+ setActiveEditor(editor: Editor): void;
124
197
  /**
125
198
  * Toggle the ruler visibility for SuperEditors
126
199
  *
@@ -129,37 +202,101 @@ export class SuperDoc extends EventEmitter<string | symbol, any> {
129
202
  toggleRuler(): void;
130
203
  toolbarElement: any;
131
204
  toolbar: SuperToolbar;
132
- addCommentsList(element: any): void;
205
+ /**
206
+ * Add a comments list to the superdoc
207
+ * Requires the comments module to be enabled
208
+ * @param {Element} element The DOM element to render the comments list in
209
+ * @returns {void}
210
+ */
211
+ addCommentsList(element: Element): void;
133
212
  commentsList: SuperComments;
213
+ /**
214
+ * Remove the comments list from the superdoc
215
+ * @returns {void}
216
+ */
134
217
  removeCommentsList(): void;
218
+ /**
219
+ * Triggered when a toolbar command is executed
220
+ * @param {Object} param0
221
+ * @param {Object} param0.item The toolbar item that was clicked
222
+ * @param {string} param0.argument The argument passed to the command
223
+ */
135
224
  onToolbarCommand({ item, argument }: {
136
225
  item: any;
137
- argument: any;
226
+ argument: string;
138
227
  }): void;
139
- setDocumentMode(type: any): void;
140
- search(text: any): any;
141
- goToSearchResult(match: any): any;
228
+ /**
229
+ * Set the document mode.
230
+ * @param {DocumentMode} type
231
+ * @returns {void}
232
+ */
233
+ setDocumentMode(type: DocumentMode): void;
234
+ /**
235
+ * Search for text or regex in the active editor
236
+ * @param {string | RegExp} text The text or regex to search for
237
+ * @returns {Object[]} The search results
238
+ */
239
+ search(text: string | RegExp): any[];
240
+ /**
241
+ * Go to the next search result
242
+ * @param {Object} match The match object
243
+ * @returns {void}
244
+ */
245
+ goToSearchResult(match: any): void;
142
246
  /**
143
247
  * Set the document to locked or unlocked
144
248
  * @param {boolean} lock
145
249
  */
146
250
  setLocked(lock?: boolean): void;
147
- getHTML(): any[];
251
+ /**
252
+ * Get the HTML content of all editors
253
+ * @returns {Array<string>} The HTML content of all editors
254
+ */
255
+ getHTML(): Array<string>;
148
256
  /**
149
257
  * Lock the current superdoc
150
258
  * @param {Boolean} isLocked
151
259
  * @param {User} lockedBy The user who locked the superdoc
152
260
  */
153
261
  lockSuperdoc(isLocked: boolean, lockedBy: User): void;
262
+ /**
263
+ * Export the superdoc to a file
264
+ * @param {Object} params
265
+ * @param {string[]} [params.exportType]
266
+ * @param {string} [params.commentsType]
267
+ * @param {string} [params.exportedName]
268
+ * @param {Array} [params.additionalFiles]
269
+ * @param {Array} [params.additionalFileNames]
270
+ * @param {boolean} [params.isFinalDoc]
271
+ * @returns {Promise<void>} The exported file
272
+ */
154
273
  export({ exportType, commentsType, exportedName, additionalFiles, additionalFileNames, isFinalDoc, }?: {
155
274
  exportType?: string[];
275
+ commentsType?: string;
276
+ exportedName?: string;
156
277
  additionalFiles?: any[];
157
278
  additionalFileNames?: any[];
158
279
  isFinalDoc?: boolean;
159
280
  }): Promise<void>;
160
- exportEditorsToDOCX({ commentsType, isFinalDoc }?: {}): Promise<any[]>;
281
+ /**
282
+ * Export editors to DOCX format.
283
+ * @param {{ commentsType?: string, isFinalDoc?: boolean }} [options]
284
+ * @returns {Promise<Array<Blob>>}
285
+ */
286
+ exportEditorsToDOCX({ commentsType, isFinalDoc }?: {
287
+ commentsType?: string;
288
+ isFinalDoc?: boolean;
289
+ }): Promise<Array<Blob>>;
161
290
  pendingCollaborationSaves: number;
291
+ /**
292
+ * Save the superdoc if in collaboration mode
293
+ * @returns {Promise<void[]>} Resolves when all documents have saved
294
+ */
162
295
  save(): Promise<void[]>;
296
+ /**
297
+ * Destroy the superdoc instance
298
+ * @returns {void}
299
+ */
163
300
  destroy(): void;
164
301
  /**
165
302
  * Focus the active editor or the first editor in the superdoc
@@ -183,12 +320,12 @@ export type User = {
183
320
  /**
184
321
  * The user's photo
185
322
  */
186
- image: string | null;
323
+ image?: string | null;
187
324
  };
188
325
  /**
189
326
  * Telemetry configuration
190
327
  */
191
- export type Telemetry = {
328
+ export type TelemetryConfig = {
192
329
  /**
193
330
  * Whether telemetry is enabled
194
331
  */
@@ -196,17 +333,21 @@ export type Telemetry = {
196
333
  /**
197
334
  * The licence key for telemetry
198
335
  */
199
- licenceKey?: string;
336
+ licenseKey?: string;
200
337
  /**
201
338
  * The endpoint for telemetry
202
339
  */
203
340
  endpoint?: string;
341
+ /**
342
+ * The version of the superdoc
343
+ */
344
+ superdocVersion?: string;
204
345
  };
205
346
  export type Document = {
206
347
  /**
207
348
  * The ID of the document
208
349
  */
209
- id: string;
350
+ id?: string;
210
351
  /**
211
352
  * The type of the document
212
353
  */
@@ -215,6 +356,26 @@ export type Document = {
215
356
  * The initial data of the document
216
357
  */
217
358
  data?: File | null;
359
+ /**
360
+ * The name of the document
361
+ */
362
+ name?: string;
363
+ /**
364
+ * The URL of the document
365
+ */
366
+ url?: string;
367
+ /**
368
+ * Whether the document is a new file
369
+ */
370
+ isNewFile?: boolean;
371
+ /**
372
+ * The Yjs document for collaboration
373
+ */
374
+ ydoc?: import("yjs").Doc;
375
+ /**
376
+ * The provider for collaboration
377
+ */
378
+ provider?: import("@hocuspocus/provider").HocuspocusProvider;
218
379
  };
219
380
  export type Modules = {
220
381
  /**
@@ -228,7 +389,17 @@ export type Modules = {
228
389
  apiKey?: string;
229
390
  endpoint?: string;
230
391
  };
392
+ /**
393
+ * Collaboration module configuration
394
+ */
395
+ collaboration?: any;
396
+ /**
397
+ * Toolbar module configuration
398
+ */
399
+ toolbar?: any;
231
400
  };
401
+ export type Editor = import("@harbour-enterprises/super-editor").Editor;
402
+ export type DocumentMode = string;
232
403
  export type Config = {
233
404
  /**
234
405
  * The ID of the SuperDoc
@@ -241,7 +412,7 @@ export type Config = {
241
412
  /**
242
413
  * The mode of the document
243
414
  */
244
- documentMode: "editing" | "viewing" | "suggesting";
415
+ documentMode: DocumentMode;
245
416
  /**
246
417
  * The role of the user in this SuperDoc
247
418
  */
@@ -293,7 +464,7 @@ export type Config = {
293
464
  /**
294
465
  * Telemetry configuration
295
466
  */
296
- telemetry?: Telemetry;
467
+ telemetry?: TelemetryConfig;
297
468
  /**
298
469
  * Callback before an editor is created
299
470
  */
@@ -314,7 +485,7 @@ export type Config = {
314
485
  editor: Editor;
315
486
  documentId: string;
316
487
  file: File;
317
- }) => any;
488
+ }) => void;
318
489
  /**
319
490
  * Callback when the SuperDoc is ready
320
491
  */
@@ -366,11 +537,62 @@ export type Config = {
366
537
  * Callback when an exception is thrown
367
538
  */
368
539
  onException?: (params: {
369
- error: Exception;
540
+ error: Error;
370
541
  }) => void;
542
+ /**
543
+ * Callback when the comments list is rendered
544
+ */
545
+ onCommentsListChange?: (params: {
546
+ isRendered: boolean;
547
+ }) => void;
548
+ /**
549
+ * The format of the document (docx, pdf, html)
550
+ */
551
+ format?: string;
552
+ /**
553
+ * The extensions to load for the editor
554
+ */
555
+ editorExtensions?: any[];
556
+ /**
557
+ * Whether the SuperDoc is internal
558
+ */
559
+ isInternal?: boolean;
560
+ /**
561
+ * The title of the SuperDoc
562
+ */
563
+ title?: string;
564
+ /**
565
+ * The conversations to load
566
+ */
567
+ conversations?: any[];
568
+ /**
569
+ * Whether the SuperDoc is locked
570
+ */
571
+ isLocked?: boolean;
572
+ /**
573
+ * The PDF viewer configuration
574
+ */
575
+ pdfViewer?: any;
576
+ /**
577
+ * The function to handle image uploads
578
+ */
579
+ handleImageUpload?: (arg0: File) => Promise<string>;
580
+ /**
581
+ * The user who locked the SuperDoc
582
+ */
583
+ lockedBy?: User;
584
+ /**
585
+ * The socket connection for collaboration
586
+ */
587
+ socket?: HocuspocusProviderWebsocket;
588
+ /**
589
+ * Whether to show the ruler in the editor
590
+ */
591
+ rulers?: boolean;
371
592
  };
372
- import EventEmitter from 'eventemitter3';
593
+ import { EventEmitter } from 'eventemitter3';
373
594
  import { Telemetry } from '@harbour-enterprises/common/Telemetry.js';
374
595
  import { SuperToolbar } from '@harbour-enterprises/super-editor';
375
596
  import { SuperComments } from '../components/CommentsLayer/commentsList/super-comments-list.js';
597
+ import { HocuspocusProviderWebsocket } from '@hocuspocus/provider';
376
598
  //# sourceMappingURL=SuperDoc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../src/core/SuperDoc.js"],"names":[],"mappings":"AAqBA;;;;;GAKG;AAEH;;;;;GAKG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;GAIG;AACH;IACE,4B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