e-virt-table 0.0.3

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 (90) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -0
  3. package/dist/index.cjs.js +14 -0
  4. package/dist/index.cjs.js.map +1 -0
  5. package/dist/index.es.js +5422 -0
  6. package/dist/index.es.js.map +1 -0
  7. package/dist/index.umd.js +14 -0
  8. package/dist/index.umd.js.map +1 -0
  9. package/dist/lib/Autofill.d.ts +20 -0
  10. package/dist/lib/Autofill.js +185 -0
  11. package/dist/lib/Autofill.js.map +1 -0
  12. package/dist/lib/BaseCell.d.ts +22 -0
  13. package/dist/lib/BaseCell.js +111 -0
  14. package/dist/lib/BaseCell.js.map +1 -0
  15. package/dist/lib/Body.d.ts +29 -0
  16. package/dist/lib/Body.js +382 -0
  17. package/dist/lib/Body.js.map +1 -0
  18. package/dist/lib/Cell.d.ts +101 -0
  19. package/dist/lib/Cell.js +943 -0
  20. package/dist/lib/Cell.js.map +1 -0
  21. package/dist/lib/CellHeader.d.ts +64 -0
  22. package/dist/lib/CellHeader.js +355 -0
  23. package/dist/lib/CellHeader.js.map +1 -0
  24. package/dist/lib/Config.d.ts +106 -0
  25. package/dist/lib/Config.js +617 -0
  26. package/dist/lib/Config.js.map +1 -0
  27. package/dist/lib/Context.d.ts +123 -0
  28. package/dist/lib/Context.js +419 -0
  29. package/dist/lib/Context.js.map +1 -0
  30. package/dist/lib/Database.d.ts +228 -0
  31. package/dist/lib/Database.js +931 -0
  32. package/dist/lib/Database.js.map +1 -0
  33. package/dist/lib/EVirtTable.d.ts +61 -0
  34. package/dist/lib/EVirtTable.js +321 -0
  35. package/dist/lib/EVirtTable.js.map +1 -0
  36. package/dist/lib/Editor.d.ts +16 -0
  37. package/dist/lib/Editor.js +251 -0
  38. package/dist/lib/Editor.js.map +1 -0
  39. package/dist/lib/Empty.d.ts +7 -0
  40. package/dist/lib/Empty.js +45 -0
  41. package/dist/lib/Empty.js.map +1 -0
  42. package/dist/lib/EventBrowser.d.ts +17 -0
  43. package/dist/lib/EventBrowser.js +79 -0
  44. package/dist/lib/EventBrowser.js.map +1 -0
  45. package/dist/lib/EventBus.d.ts +12 -0
  46. package/dist/lib/EventBus.js +58 -0
  47. package/dist/lib/EventBus.js.map +1 -0
  48. package/dist/lib/EventTable.d.ts +26 -0
  49. package/dist/lib/EventTable.js +358 -0
  50. package/dist/lib/EventTable.js.map +1 -0
  51. package/dist/lib/Footer.d.ts +17 -0
  52. package/dist/lib/Footer.js +138 -0
  53. package/dist/lib/Footer.js.map +1 -0
  54. package/dist/lib/Header.d.ts +37 -0
  55. package/dist/lib/Header.js +482 -0
  56. package/dist/lib/Header.js.map +1 -0
  57. package/dist/lib/History.d.ts +27 -0
  58. package/dist/lib/History.js +106 -0
  59. package/dist/lib/History.js.map +1 -0
  60. package/dist/lib/Icons.d.ts +15 -0
  61. package/dist/lib/Icons.js +145 -0
  62. package/dist/lib/Icons.js.map +1 -0
  63. package/dist/lib/Overlayer.d.ts +10 -0
  64. package/dist/lib/Overlayer.js +267 -0
  65. package/dist/lib/Overlayer.js.map +1 -0
  66. package/dist/lib/Paint.d.ts +65 -0
  67. package/dist/lib/Paint.js +223 -0
  68. package/dist/lib/Paint.js.map +1 -0
  69. package/dist/lib/Row.d.ts +22 -0
  70. package/dist/lib/Row.js +125 -0
  71. package/dist/lib/Row.js.map +1 -0
  72. package/dist/lib/Scroller.d.ts +20 -0
  73. package/dist/lib/Scroller.js +448 -0
  74. package/dist/lib/Scroller.js.map +1 -0
  75. package/dist/lib/Selector.d.ts +38 -0
  76. package/dist/lib/Selector.js +532 -0
  77. package/dist/lib/Selector.js.map +1 -0
  78. package/dist/lib/Tooltip.d.ts +13 -0
  79. package/dist/lib/Tooltip.js +204 -0
  80. package/dist/lib/Tooltip.js.map +1 -0
  81. package/dist/lib/index.d.ts +3 -0
  82. package/dist/lib/index.js +4 -0
  83. package/dist/lib/index.js.map +1 -0
  84. package/dist/lib/types.d.ts +160 -0
  85. package/dist/lib/types.js +2 -0
  86. package/dist/lib/types.js.map +1 -0
  87. package/dist/lib/util.d.ts +15 -0
  88. package/dist/lib/util.js +113 -0
  89. package/dist/lib/util.js.map +1 -0
  90. package/package.json +37 -0
@@ -0,0 +1,123 @@
1
+ import Database from './Database';
2
+ import History from './History';
3
+ import { EventCallback } from './EventBus';
4
+ import Paint from './Paint';
5
+ import Config from './Config';
6
+ import { Column, EVirtTableOptions } from './types';
7
+ import Icons from './Icons';
8
+ import CellHeader from './CellHeader';
9
+ import Row from './Row';
10
+ import Cell from './Cell';
11
+ export type ConfigType = Partial<typeof Config>;
12
+ export type HeaderOptions = {
13
+ x: number;
14
+ y: number;
15
+ width: number;
16
+ height: number;
17
+ visibleHeight: number;
18
+ visibleWidth: number;
19
+ visibleLeafColumns: Column[];
20
+ leafCellHeaders: CellHeader[];
21
+ renderLeafCellHeaders: CellHeader[];
22
+ renderCellHeaders: CellHeader[];
23
+ fixedLeftCellHeaders: [];
24
+ fixedRightCellHeaders: [];
25
+ renderCenterCellHeaders: [];
26
+ };
27
+ export type BodyOptions = {
28
+ x: number;
29
+ y: number;
30
+ width: number;
31
+ height: number;
32
+ visibleHeight: number;
33
+ visibleWidth: number;
34
+ headIndex: number;
35
+ tailIndex: number;
36
+ visibleRows: any[];
37
+ renderRows: Row[];
38
+ data: any[];
39
+ };
40
+ export type FooterOptions = {
41
+ x: number;
42
+ y: number;
43
+ width: number;
44
+ height: number;
45
+ visibleHeight: number;
46
+ visibleWidth: number;
47
+ renderRows: Row[];
48
+ };
49
+ export type SelectorOptions = {
50
+ enable: boolean;
51
+ xArr: number[];
52
+ yArr: number[];
53
+ xArrCopy: number[];
54
+ yArrCopy: number[];
55
+ };
56
+ export type AutofillOptions = {
57
+ enable: boolean;
58
+ xArr: number[];
59
+ yArr: number[];
60
+ };
61
+ export default class Context {
62
+ private eventBus;
63
+ private eventBrowser;
64
+ private eventTable;
65
+ private uuid;
66
+ targetContainer: HTMLElement;
67
+ target: HTMLCanvasElement;
68
+ paint: Paint;
69
+ icons: Icons;
70
+ mousedown: boolean;
71
+ isPointer: boolean;
72
+ rowResizing: boolean;
73
+ columnResizing: boolean;
74
+ scrollerMove: boolean;
75
+ scrollerFocus: boolean;
76
+ autofillMove: boolean;
77
+ editing: boolean;
78
+ scrollY: number;
79
+ scrollX: number;
80
+ fixedLeftWidth: number;
81
+ fixedRightWidth: number;
82
+ maxColIndex: number;
83
+ maxRowIndex: number;
84
+ hoverRow?: Row;
85
+ clickCell?: Cell;
86
+ focusCell?: Cell;
87
+ hoverCell?: Cell;
88
+ clickCellHeader?: CellHeader;
89
+ focusCellHeader?: CellHeader;
90
+ hoverCellHeader?: CellHeader;
91
+ body: BodyOptions;
92
+ footer: FooterOptions;
93
+ header: HeaderOptions;
94
+ selector: SelectorOptions;
95
+ autofill: AutofillOptions;
96
+ database: Database;
97
+ history: History;
98
+ config: Config;
99
+ constructor(targetContainer: HTMLDivElement, target: HTMLCanvasElement, options: EVirtTableOptions);
100
+ setFocusCell(cell: Cell): void;
101
+ clearSelector(): void;
102
+ clearAutofill(): void;
103
+ /**
104
+ * 获取选中的数据
105
+ * @returns
106
+ */
107
+ getSelectedData(): {
108
+ xArr: number[];
109
+ yArr: number[];
110
+ text: string;
111
+ value: any[][];
112
+ };
113
+ setScroll(x: number, y: number): void;
114
+ setScrollX(x: number): void;
115
+ setScrollY(y: number): void;
116
+ isTarget(target: HTMLCanvasElement): boolean;
117
+ hasEvent(event: string): boolean;
118
+ on(event: string, callback: EventCallback): void;
119
+ once(event: string, callback: EventCallback): void;
120
+ off(event: string, callback: EventCallback): void;
121
+ emit(event: string, ...args: any[]): void;
122
+ destroy(): void;
123
+ }
@@ -0,0 +1,419 @@
1
+ import Database from './Database';
2
+ import History from './History';
3
+ import EventBrowser from './EventBrowser';
4
+ import EventBus from './EventBus';
5
+ import Paint from './Paint';
6
+ import Config from './Config';
7
+ import Icons from './Icons';
8
+ import { generateShortUUID } from './util';
9
+ import EventTable from './EventTable';
10
+ export default class Context {
11
+ constructor(targetContainer, target, options) {
12
+ Object.defineProperty(this, "eventBus", {
13
+ enumerable: true,
14
+ configurable: true,
15
+ writable: true,
16
+ value: void 0
17
+ });
18
+ Object.defineProperty(this, "eventBrowser", {
19
+ enumerable: true,
20
+ configurable: true,
21
+ writable: true,
22
+ value: void 0
23
+ });
24
+ Object.defineProperty(this, "eventTable", {
25
+ enumerable: true,
26
+ configurable: true,
27
+ writable: true,
28
+ value: void 0
29
+ });
30
+ Object.defineProperty(this, "uuid", {
31
+ enumerable: true,
32
+ configurable: true,
33
+ writable: true,
34
+ value: generateShortUUID()
35
+ });
36
+ Object.defineProperty(this, "targetContainer", {
37
+ enumerable: true,
38
+ configurable: true,
39
+ writable: true,
40
+ value: void 0
41
+ });
42
+ Object.defineProperty(this, "target", {
43
+ enumerable: true,
44
+ configurable: true,
45
+ writable: true,
46
+ value: void 0
47
+ });
48
+ Object.defineProperty(this, "paint", {
49
+ enumerable: true,
50
+ configurable: true,
51
+ writable: true,
52
+ value: void 0
53
+ });
54
+ Object.defineProperty(this, "icons", {
55
+ enumerable: true,
56
+ configurable: true,
57
+ writable: true,
58
+ value: void 0
59
+ });
60
+ Object.defineProperty(this, "mousedown", {
61
+ enumerable: true,
62
+ configurable: true,
63
+ writable: true,
64
+ value: false
65
+ });
66
+ Object.defineProperty(this, "isPointer", {
67
+ enumerable: true,
68
+ configurable: true,
69
+ writable: true,
70
+ value: false
71
+ });
72
+ Object.defineProperty(this, "rowResizing", {
73
+ enumerable: true,
74
+ configurable: true,
75
+ writable: true,
76
+ value: false
77
+ }); // 行调整大小中
78
+ Object.defineProperty(this, "columnResizing", {
79
+ enumerable: true,
80
+ configurable: true,
81
+ writable: true,
82
+ value: false
83
+ }); // 列调整大小中
84
+ Object.defineProperty(this, "scrollerMove", {
85
+ enumerable: true,
86
+ configurable: true,
87
+ writable: true,
88
+ value: false
89
+ }); // 滚动条移动中
90
+ Object.defineProperty(this, "scrollerFocus", {
91
+ enumerable: true,
92
+ configurable: true,
93
+ writable: true,
94
+ value: false
95
+ }); // 滚动条focus中
96
+ Object.defineProperty(this, "autofillMove", {
97
+ enumerable: true,
98
+ configurable: true,
99
+ writable: true,
100
+ value: false
101
+ }); // 自动填充移动中
102
+ Object.defineProperty(this, "editing", {
103
+ enumerable: true,
104
+ configurable: true,
105
+ writable: true,
106
+ value: false
107
+ }); // 编辑中
108
+ Object.defineProperty(this, "scrollY", {
109
+ enumerable: true,
110
+ configurable: true,
111
+ writable: true,
112
+ value: 0
113
+ });
114
+ Object.defineProperty(this, "scrollX", {
115
+ enumerable: true,
116
+ configurable: true,
117
+ writable: true,
118
+ value: 0
119
+ });
120
+ Object.defineProperty(this, "fixedLeftWidth", {
121
+ enumerable: true,
122
+ configurable: true,
123
+ writable: true,
124
+ value: 0
125
+ });
126
+ Object.defineProperty(this, "fixedRightWidth", {
127
+ enumerable: true,
128
+ configurable: true,
129
+ writable: true,
130
+ value: 0
131
+ });
132
+ Object.defineProperty(this, "maxColIndex", {
133
+ enumerable: true,
134
+ configurable: true,
135
+ writable: true,
136
+ value: 0
137
+ });
138
+ Object.defineProperty(this, "maxRowIndex", {
139
+ enumerable: true,
140
+ configurable: true,
141
+ writable: true,
142
+ value: 0
143
+ });
144
+ Object.defineProperty(this, "hoverRow", {
145
+ enumerable: true,
146
+ configurable: true,
147
+ writable: true,
148
+ value: void 0
149
+ });
150
+ Object.defineProperty(this, "clickCell", {
151
+ enumerable: true,
152
+ configurable: true,
153
+ writable: true,
154
+ value: void 0
155
+ });
156
+ Object.defineProperty(this, "focusCell", {
157
+ enumerable: true,
158
+ configurable: true,
159
+ writable: true,
160
+ value: void 0
161
+ });
162
+ Object.defineProperty(this, "hoverCell", {
163
+ enumerable: true,
164
+ configurable: true,
165
+ writable: true,
166
+ value: void 0
167
+ });
168
+ Object.defineProperty(this, "clickCellHeader", {
169
+ enumerable: true,
170
+ configurable: true,
171
+ writable: true,
172
+ value: void 0
173
+ });
174
+ Object.defineProperty(this, "focusCellHeader", {
175
+ enumerable: true,
176
+ configurable: true,
177
+ writable: true,
178
+ value: void 0
179
+ });
180
+ Object.defineProperty(this, "hoverCellHeader", {
181
+ enumerable: true,
182
+ configurable: true,
183
+ writable: true,
184
+ value: void 0
185
+ });
186
+ Object.defineProperty(this, "body", {
187
+ enumerable: true,
188
+ configurable: true,
189
+ writable: true,
190
+ value: {
191
+ x: 0,
192
+ y: 0,
193
+ width: 0,
194
+ height: 0,
195
+ visibleHeight: 0,
196
+ visibleWidth: 0,
197
+ headIndex: 0,
198
+ tailIndex: 0,
199
+ visibleRows: [],
200
+ renderRows: [],
201
+ data: [],
202
+ }
203
+ });
204
+ Object.defineProperty(this, "footer", {
205
+ enumerable: true,
206
+ configurable: true,
207
+ writable: true,
208
+ value: {
209
+ x: 0,
210
+ y: 0,
211
+ width: 0,
212
+ height: 0,
213
+ visibleHeight: 0,
214
+ visibleWidth: 0,
215
+ renderRows: [],
216
+ }
217
+ });
218
+ Object.defineProperty(this, "header", {
219
+ enumerable: true,
220
+ configurable: true,
221
+ writable: true,
222
+ value: {
223
+ x: 0,
224
+ y: 0,
225
+ width: 0,
226
+ height: 0,
227
+ visibleHeight: 0,
228
+ visibleWidth: 0,
229
+ visibleLeafColumns: [],
230
+ leafCellHeaders: [],
231
+ renderLeafCellHeaders: [],
232
+ renderCellHeaders: [],
233
+ fixedLeftCellHeaders: [],
234
+ fixedRightCellHeaders: [],
235
+ renderCenterCellHeaders: [],
236
+ }
237
+ });
238
+ Object.defineProperty(this, "selector", {
239
+ enumerable: true,
240
+ configurable: true,
241
+ writable: true,
242
+ value: {
243
+ enable: false,
244
+ xArr: [-1, -1],
245
+ yArr: [-1, -1],
246
+ xArrCopy: [-1, -1],
247
+ yArrCopy: [-1, -1],
248
+ }
249
+ });
250
+ Object.defineProperty(this, "autofill", {
251
+ enumerable: true,
252
+ configurable: true,
253
+ writable: true,
254
+ value: {
255
+ enable: false,
256
+ xArr: [-1, -1],
257
+ yArr: [-1, -1],
258
+ }
259
+ });
260
+ Object.defineProperty(this, "database", {
261
+ enumerable: true,
262
+ configurable: true,
263
+ writable: true,
264
+ value: void 0
265
+ });
266
+ Object.defineProperty(this, "history", {
267
+ enumerable: true,
268
+ configurable: true,
269
+ writable: true,
270
+ value: void 0
271
+ });
272
+ Object.defineProperty(this, "config", {
273
+ enumerable: true,
274
+ configurable: true,
275
+ writable: true,
276
+ value: void 0
277
+ });
278
+ this.target = target;
279
+ this.targetContainer = targetContainer;
280
+ this.target.setAttribute('uuid', this.uuid);
281
+ this.config = new Config(options.config || {});
282
+ this.eventBus = new EventBus();
283
+ this.eventBrowser = new EventBrowser(this);
284
+ this.eventTable = new EventTable(this);
285
+ this.paint = new Paint(target);
286
+ this.database = new Database(this, options);
287
+ this.history = new History(this);
288
+ this.icons = new Icons(this);
289
+ }
290
+ setFocusCell(cell) {
291
+ if (this.focusCell === cell)
292
+ return;
293
+ if (this.focusCell?.rowKey !== cell.rowKey) {
294
+ // 提前设置一下,保证rowFocusChange事件,能用focusCell
295
+ this.focusCell = cell;
296
+ this.emit('rowFocusChange', cell);
297
+ }
298
+ this.focusCell = cell;
299
+ this.emit('cellFocusChange', cell);
300
+ }
301
+ clearSelector() {
302
+ this.selector = {
303
+ enable: false,
304
+ xArr: [-1, -1],
305
+ yArr: [-1, -1],
306
+ xArrCopy: [-1, -1],
307
+ yArrCopy: [-1, -1],
308
+ };
309
+ }
310
+ clearAutofill() {
311
+ this.autofill = {
312
+ enable: false,
313
+ xArr: [-1, -1],
314
+ yArr: [-1, -1],
315
+ };
316
+ }
317
+ /**
318
+ * 获取选中的数据
319
+ * @returns
320
+ */
321
+ getSelectedData() {
322
+ const rowsData = [];
323
+ const yArr = this.selector.yArr;
324
+ const xArr = this.selector.xArr;
325
+ let text = '';
326
+ for (let ri = 0; ri <= yArr[1] - yArr[0]; ri++) {
327
+ const cellsData = [];
328
+ for (let ci = 0; ci <= xArr[1] - xArr[0]; ci++) {
329
+ const rowIndex = ri + yArr[0];
330
+ const colIndex = ci + xArr[0];
331
+ const item = this.database.getItemValueForRowIndexAndColIndex(rowIndex, colIndex);
332
+ if (item) {
333
+ cellsData.push(item.value);
334
+ }
335
+ }
336
+ text += `${cellsData.join('\t')}\r`;
337
+ rowsData.push(cellsData);
338
+ }
339
+ text = text ? text.replace(/\r$/, '') : ' '; // 去掉最后一个\n,否则会导致复制到excel里多一行空白
340
+ return {
341
+ xArr,
342
+ yArr,
343
+ text,
344
+ value: rowsData,
345
+ };
346
+ }
347
+ setScroll(x, y) {
348
+ let scrollX = Math.floor(x);
349
+ const scrollMaxX = this.body.width - this.body.visibleWidth;
350
+ // x边界处理
351
+ if (scrollX < 0) {
352
+ scrollX = 0;
353
+ }
354
+ else if (scrollX > scrollMaxX) {
355
+ scrollX = scrollMaxX;
356
+ }
357
+ // y边界处理
358
+ let scrollY = Math.floor(y);
359
+ const scrollMaxY = this.body.height - this.body.visibleHeight - this.footer.height;
360
+ if (scrollY < 0) {
361
+ scrollY = 0;
362
+ }
363
+ else if (scrollY > scrollMaxY) {
364
+ scrollY = scrollMaxY;
365
+ }
366
+ this.emit('setScroll', scrollX, scrollY);
367
+ }
368
+ setScrollX(x) {
369
+ let scrollX = Math.floor(x);
370
+ const scrollMaxX = this.body.width - this.body.visibleWidth;
371
+ // 边界处理
372
+ if (scrollX < 0) {
373
+ scrollX = 0;
374
+ }
375
+ else if (scrollX > scrollMaxX) {
376
+ scrollX = scrollMaxX;
377
+ }
378
+ this.emit('setScrollX', scrollX);
379
+ }
380
+ setScrollY(y) {
381
+ // 边界处理
382
+ let scrollY = Math.floor(y);
383
+ const scrollMaxY = this.body.height - this.body.visibleHeight - this.footer.height;
384
+ if (scrollY < 0) {
385
+ scrollY = 0;
386
+ }
387
+ else if (scrollY > scrollMaxY) {
388
+ scrollY = scrollMaxY;
389
+ }
390
+ this.emit('setScrollY', scrollY);
391
+ }
392
+ isTarget(target) {
393
+ if (target === null)
394
+ return false;
395
+ const uuid = target.getAttribute('uuid');
396
+ return this.uuid === uuid;
397
+ }
398
+ hasEvent(event) {
399
+ return this.eventBus.has(event);
400
+ }
401
+ on(event, callback) {
402
+ this.eventBus.on(event, callback);
403
+ }
404
+ once(event, callback) {
405
+ this.eventBus.once(event, callback);
406
+ }
407
+ off(event, callback) {
408
+ this.eventBus.off(event, callback);
409
+ }
410
+ emit(event, ...args) {
411
+ this.eventBus.emit(event, ...args);
412
+ }
413
+ destroy() {
414
+ this.eventTable.destroy();
415
+ this.eventBrowser.destroy();
416
+ this.eventBus.destroy();
417
+ }
418
+ }
419
+ //# sourceMappingURL=Context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../src/Context.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,QAA2B,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,UAAU,MAAM,cAAc,CAAC;AAmDtC,MAAM,CAAC,OAAO,OAAO,OAAO;IAmFxB,YAAY,eAA+B,EAAE,MAAyB,EAAE,OAA0B;QAlF1F;;;;;WAAmB;QACnB;;;;;WAA2B;QAC3B;;;;;WAAuB;QACvB;;;;mBAAO,iBAAiB,EAAE;WAAC;QACnC;;;;;WAA6B;QAC7B;;;;;WAA0B;QAC1B;;;;;WAAa;QACb;;;;;WAAa;QACb;;;;mBAAY,KAAK;WAAC;QAClB;;;;mBAAY,KAAK;WAAC;QAClB;;;;mBAAc,KAAK;WAAC,CAAC,SAAS;QAC9B;;;;mBAAiB,KAAK;WAAC,CAAC,SAAS;QACj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