@bitflow/core 0.2.0 → 0.5.1

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.
@@ -13,7 +13,7 @@ export declare const TaskSchema: z.ZodObject<{
13
13
  name: z.ZodString;
14
14
  description: z.ZodOptional<z.ZodString>;
15
15
  subtype: z.ZodString;
16
- view: z.ZodRecord<z.ZodAny>;
16
+ view: z.ZodRecord<z.ZodString, z.ZodAny>;
17
17
  evaluation: z.ZodObject<{
18
18
  mode: z.ZodEnum<["auto", "skip", "manual"]>;
19
19
  enableRetry: z.ZodBoolean;
@@ -27,7 +27,7 @@ export declare const TaskSchema: z.ZodObject<{
27
27
  enableRetry: boolean;
28
28
  showFeedback: boolean;
29
29
  }>;
30
- feedback: z.ZodOptional<z.ZodRecord<z.ZodAny>>;
30
+ feedback: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  description?: string | undefined;
33
33
  feedback?: Record<string, any> | undefined;
@@ -162,12 +162,99 @@ export declare const makeDoBaseTrySchema: (flowNodeSchemas: makeDoTrySchemaProps
162
162
  y: number;
163
163
  };
164
164
  data: Bitflow.Title;
165
+ }>, z.ZodObject<z.extendShape<{
166
+ id: z.ZodString;
167
+ position: z.ZodObject<{
168
+ x: z.ZodNumber;
169
+ y: z.ZodNumber;
170
+ }, "strip", z.ZodTypeAny, {
171
+ x: number;
172
+ y: number;
173
+ }, {
174
+ x: number;
175
+ y: number;
176
+ }>;
177
+ }, {
178
+ type: z.ZodLiteral<"synchronize">;
179
+ data: z.ZodObject<{
180
+ unlocked: z.ZodBoolean;
181
+ }, "strip", z.ZodTypeAny, {
182
+ unlocked: boolean;
183
+ }, {
184
+ unlocked: boolean;
185
+ }>;
186
+ }>, "strip", z.ZodTypeAny, {
187
+ id: string;
188
+ type: "synchronize";
189
+ position: {
190
+ x: number;
191
+ y: number;
192
+ };
193
+ data: {
194
+ unlocked: boolean;
195
+ };
196
+ }, {
197
+ id: string;
198
+ type: "synchronize";
199
+ position: {
200
+ x: number;
201
+ y: number;
202
+ };
203
+ data: {
204
+ unlocked: boolean;
205
+ };
206
+ }>, z.ZodObject<z.extendShape<{
207
+ id: z.ZodString;
208
+ position: z.ZodObject<{
209
+ x: z.ZodNumber;
210
+ y: z.ZodNumber;
211
+ }, "strip", z.ZodTypeAny, {
212
+ x: number;
213
+ y: number;
214
+ }, {
215
+ x: number;
216
+ y: number;
217
+ }>;
218
+ }, {
219
+ type: z.ZodLiteral<"checkpoint">;
220
+ }>, "strip", z.ZodTypeAny, {
221
+ id: string;
222
+ type: "checkpoint";
223
+ position: {
224
+ x: number;
225
+ y: number;
226
+ };
227
+ }, {
228
+ id: string;
229
+ type: "checkpoint";
230
+ position: {
231
+ x: number;
232
+ y: number;
233
+ };
165
234
  }>]>;
166
235
  startDate: z.ZodDate;
167
236
  try: z.ZodNumber;
168
237
  status: z.ZodString;
169
238
  }, "strip", z.ZodTypeAny, {
239
+ status: string;
170
240
  node: {
241
+ id: string;
242
+ type: "checkpoint";
243
+ position: {
244
+ x: number;
245
+ y: number;
246
+ };
247
+ } | {
248
+ id: string;
249
+ type: "synchronize";
250
+ position: {
251
+ x: number;
252
+ y: number;
253
+ };
254
+ data: {
255
+ unlocked: boolean;
256
+ };
257
+ } | {
171
258
  id: string;
172
259
  type: "task";
173
260
  position: {
@@ -210,9 +297,26 @@ export declare const makeDoBaseTrySchema: (flowNodeSchemas: makeDoTrySchemaProps
210
297
  };
211
298
  startDate: Date;
212
299
  try: number;
213
- status: string;
214
300
  }, {
301
+ status: string;
215
302
  node: {
303
+ id: string;
304
+ type: "checkpoint";
305
+ position: {
306
+ x: number;
307
+ y: number;
308
+ };
309
+ } | {
310
+ id: string;
311
+ type: "synchronize";
312
+ position: {
313
+ x: number;
314
+ y: number;
315
+ };
316
+ data: {
317
+ unlocked: boolean;
318
+ };
319
+ } | {
216
320
  id: string;
217
321
  type: "task";
218
322
  position: {
@@ -255,7 +359,6 @@ export declare const makeDoBaseTrySchema: (flowNodeSchemas: makeDoTrySchemaProps
255
359
  };
256
360
  startDate: Date;
257
361
  try: number;
258
- status: string;
259
362
  }>;
260
363
  export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
261
364
  node: z.ZodUnion<[z.ZodObject<z.extendShape<{
@@ -413,6 +516,75 @@ export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
413
516
  y: number;
414
517
  };
415
518
  data: Bitflow.Title;
519
+ }>, z.ZodObject<z.extendShape<{
520
+ id: z.ZodString;
521
+ position: z.ZodObject<{
522
+ x: z.ZodNumber;
523
+ y: z.ZodNumber;
524
+ }, "strip", z.ZodTypeAny, {
525
+ x: number;
526
+ y: number;
527
+ }, {
528
+ x: number;
529
+ y: number;
530
+ }>;
531
+ }, {
532
+ type: z.ZodLiteral<"synchronize">;
533
+ data: z.ZodObject<{
534
+ unlocked: z.ZodBoolean;
535
+ }, "strip", z.ZodTypeAny, {
536
+ unlocked: boolean;
537
+ }, {
538
+ unlocked: boolean;
539
+ }>;
540
+ }>, "strip", z.ZodTypeAny, {
541
+ id: string;
542
+ type: "synchronize";
543
+ position: {
544
+ x: number;
545
+ y: number;
546
+ };
547
+ data: {
548
+ unlocked: boolean;
549
+ };
550
+ }, {
551
+ id: string;
552
+ type: "synchronize";
553
+ position: {
554
+ x: number;
555
+ y: number;
556
+ };
557
+ data: {
558
+ unlocked: boolean;
559
+ };
560
+ }>, z.ZodObject<z.extendShape<{
561
+ id: z.ZodString;
562
+ position: z.ZodObject<{
563
+ x: z.ZodNumber;
564
+ y: z.ZodNumber;
565
+ }, "strip", z.ZodTypeAny, {
566
+ x: number;
567
+ y: number;
568
+ }, {
569
+ x: number;
570
+ y: number;
571
+ }>;
572
+ }, {
573
+ type: z.ZodLiteral<"checkpoint">;
574
+ }>, "strip", z.ZodTypeAny, {
575
+ id: string;
576
+ type: "checkpoint";
577
+ position: {
578
+ x: number;
579
+ y: number;
580
+ };
581
+ }, {
582
+ id: string;
583
+ type: "checkpoint";
584
+ position: {
585
+ x: number;
586
+ y: number;
587
+ };
416
588
  }>]>;
417
589
  startDate: z.ZodDate;
418
590
  try: z.ZodNumber;
@@ -420,7 +592,25 @@ export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
420
592
  }, {
421
593
  status: z.ZodLiteral<"started">;
422
594
  }>, "strip", z.ZodTypeAny, {
595
+ status: "started";
423
596
  node: {
597
+ id: string;
598
+ type: "checkpoint";
599
+ position: {
600
+ x: number;
601
+ y: number;
602
+ };
603
+ } | {
604
+ id: string;
605
+ type: "synchronize";
606
+ position: {
607
+ x: number;
608
+ y: number;
609
+ };
610
+ data: {
611
+ unlocked: boolean;
612
+ };
613
+ } | {
424
614
  id: string;
425
615
  type: "task";
426
616
  position: {
@@ -463,9 +653,26 @@ export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
463
653
  };
464
654
  startDate: Date;
465
655
  try: number;
466
- status: "started";
467
656
  }, {
657
+ status: "started";
468
658
  node: {
659
+ id: string;
660
+ type: "checkpoint";
661
+ position: {
662
+ x: number;
663
+ y: number;
664
+ };
665
+ } | {
666
+ id: string;
667
+ type: "synchronize";
668
+ position: {
669
+ x: number;
670
+ y: number;
671
+ };
672
+ data: {
673
+ unlocked: boolean;
674
+ };
675
+ } | {
469
676
  id: string;
470
677
  type: "task";
471
678
  position: {
@@ -508,7 +715,6 @@ export declare const makeDoStartedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
508
715
  };
509
716
  startDate: Date;
510
717
  try: number;
511
- status: "started";
512
718
  }>;
513
719
  export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
514
720
  node: z.ZodUnion<[z.ZodObject<z.extendShape<{
@@ -666,6 +872,75 @@ export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps)
666
872
  y: number;
667
873
  };
668
874
  data: Bitflow.Title;
875
+ }>, z.ZodObject<z.extendShape<{
876
+ id: z.ZodString;
877
+ position: z.ZodObject<{
878
+ x: z.ZodNumber;
879
+ y: z.ZodNumber;
880
+ }, "strip", z.ZodTypeAny, {
881
+ x: number;
882
+ y: number;
883
+ }, {
884
+ x: number;
885
+ y: number;
886
+ }>;
887
+ }, {
888
+ type: z.ZodLiteral<"synchronize">;
889
+ data: z.ZodObject<{
890
+ unlocked: z.ZodBoolean;
891
+ }, "strip", z.ZodTypeAny, {
892
+ unlocked: boolean;
893
+ }, {
894
+ unlocked: boolean;
895
+ }>;
896
+ }>, "strip", z.ZodTypeAny, {
897
+ id: string;
898
+ type: "synchronize";
899
+ position: {
900
+ x: number;
901
+ y: number;
902
+ };
903
+ data: {
904
+ unlocked: boolean;
905
+ };
906
+ }, {
907
+ id: string;
908
+ type: "synchronize";
909
+ position: {
910
+ x: number;
911
+ y: number;
912
+ };
913
+ data: {
914
+ unlocked: boolean;
915
+ };
916
+ }>, z.ZodObject<z.extendShape<{
917
+ id: z.ZodString;
918
+ position: z.ZodObject<{
919
+ x: z.ZodNumber;
920
+ y: z.ZodNumber;
921
+ }, "strip", z.ZodTypeAny, {
922
+ x: number;
923
+ y: number;
924
+ }, {
925
+ x: number;
926
+ y: number;
927
+ }>;
928
+ }, {
929
+ type: z.ZodLiteral<"checkpoint">;
930
+ }>, "strip", z.ZodTypeAny, {
931
+ id: string;
932
+ type: "checkpoint";
933
+ position: {
934
+ x: number;
935
+ y: number;
936
+ };
937
+ }, {
938
+ id: string;
939
+ type: "checkpoint";
940
+ position: {
941
+ x: number;
942
+ y: number;
943
+ };
669
944
  }>]>;
670
945
  startDate: z.ZodDate;
671
946
  try: z.ZodNumber;
@@ -697,16 +972,35 @@ export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps)
697
972
  state: "manual" | "unknown" | "correct" | "wrong";
698
973
  }>>;
699
974
  }>, "strip", z.ZodTypeAny, {
975
+ answer?: {
976
+ subtype: string;
977
+ } | undefined;
700
978
  result?: {
701
979
  feedback?: any;
702
980
  allowRetry?: boolean | undefined;
703
981
  subtype: string;
704
982
  state: "manual" | "unknown" | "correct" | "wrong";
705
983
  } | undefined;
706
- answer?: {
707
- subtype: string;
708
- } | undefined;
984
+ endDate: Date;
985
+ status: "finished";
709
986
  node: {
987
+ id: string;
988
+ type: "checkpoint";
989
+ position: {
990
+ x: number;
991
+ y: number;
992
+ };
993
+ } | {
994
+ id: string;
995
+ type: "synchronize";
996
+ position: {
997
+ x: number;
998
+ y: number;
999
+ };
1000
+ data: {
1001
+ unlocked: boolean;
1002
+ };
1003
+ } | {
710
1004
  id: string;
711
1005
  type: "task";
712
1006
  position: {
@@ -749,19 +1043,36 @@ export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps)
749
1043
  };
750
1044
  startDate: Date;
751
1045
  try: number;
752
- status: "finished";
753
- endDate: Date;
754
1046
  }, {
1047
+ answer?: {
1048
+ subtype: string;
1049
+ } | undefined;
755
1050
  result?: {
756
1051
  feedback?: any;
757
1052
  allowRetry?: boolean | undefined;
758
1053
  subtype: string;
759
1054
  state: "manual" | "unknown" | "correct" | "wrong";
760
1055
  } | undefined;
761
- answer?: {
762
- subtype: string;
763
- } | undefined;
1056
+ endDate: Date;
1057
+ status: "finished";
764
1058
  node: {
1059
+ id: string;
1060
+ type: "checkpoint";
1061
+ position: {
1062
+ x: number;
1063
+ y: number;
1064
+ };
1065
+ } | {
1066
+ id: string;
1067
+ type: "synchronize";
1068
+ position: {
1069
+ x: number;
1070
+ y: number;
1071
+ };
1072
+ data: {
1073
+ unlocked: boolean;
1074
+ };
1075
+ } | {
765
1076
  id: string;
766
1077
  type: "task";
767
1078
  position: {
@@ -804,8 +1115,6 @@ export declare const makeDoFinishedTry: (flowNodeSchemas: makeDoTrySchemaProps)
804
1115
  };
805
1116
  startDate: Date;
806
1117
  try: number;
807
- status: "finished";
808
- endDate: Date;
809
1118
  }>;
810
1119
  export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) => z.ZodObject<z.extendShape<{
811
1120
  node: z.ZodUnion<[z.ZodObject<z.extendShape<{
@@ -963,6 +1272,75 @@ export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
963
1272
  y: number;
964
1273
  };
965
1274
  data: Bitflow.Title;
1275
+ }>, z.ZodObject<z.extendShape<{
1276
+ id: z.ZodString;
1277
+ position: z.ZodObject<{
1278
+ x: z.ZodNumber;
1279
+ y: z.ZodNumber;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ x: number;
1282
+ y: number;
1283
+ }, {
1284
+ x: number;
1285
+ y: number;
1286
+ }>;
1287
+ }, {
1288
+ type: z.ZodLiteral<"synchronize">;
1289
+ data: z.ZodObject<{
1290
+ unlocked: z.ZodBoolean;
1291
+ }, "strip", z.ZodTypeAny, {
1292
+ unlocked: boolean;
1293
+ }, {
1294
+ unlocked: boolean;
1295
+ }>;
1296
+ }>, "strip", z.ZodTypeAny, {
1297
+ id: string;
1298
+ type: "synchronize";
1299
+ position: {
1300
+ x: number;
1301
+ y: number;
1302
+ };
1303
+ data: {
1304
+ unlocked: boolean;
1305
+ };
1306
+ }, {
1307
+ id: string;
1308
+ type: "synchronize";
1309
+ position: {
1310
+ x: number;
1311
+ y: number;
1312
+ };
1313
+ data: {
1314
+ unlocked: boolean;
1315
+ };
1316
+ }>, z.ZodObject<z.extendShape<{
1317
+ id: z.ZodString;
1318
+ position: z.ZodObject<{
1319
+ x: z.ZodNumber;
1320
+ y: z.ZodNumber;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ x: number;
1323
+ y: number;
1324
+ }, {
1325
+ x: number;
1326
+ y: number;
1327
+ }>;
1328
+ }, {
1329
+ type: z.ZodLiteral<"checkpoint">;
1330
+ }>, "strip", z.ZodTypeAny, {
1331
+ id: string;
1332
+ type: "checkpoint";
1333
+ position: {
1334
+ x: number;
1335
+ y: number;
1336
+ };
1337
+ }, {
1338
+ id: string;
1339
+ type: "checkpoint";
1340
+ position: {
1341
+ x: number;
1342
+ y: number;
1343
+ };
966
1344
  }>]>;
967
1345
  startDate: z.ZodDate;
968
1346
  try: z.ZodNumber;
@@ -971,7 +1349,26 @@ export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
971
1349
  status: z.ZodLiteral<"skipped">;
972
1350
  endDate: z.ZodDate;
973
1351
  }>, "strip", z.ZodTypeAny, {
1352
+ endDate: Date;
1353
+ status: "skipped";
974
1354
  node: {
1355
+ id: string;
1356
+ type: "checkpoint";
1357
+ position: {
1358
+ x: number;
1359
+ y: number;
1360
+ };
1361
+ } | {
1362
+ id: string;
1363
+ type: "synchronize";
1364
+ position: {
1365
+ x: number;
1366
+ y: number;
1367
+ };
1368
+ data: {
1369
+ unlocked: boolean;
1370
+ };
1371
+ } | {
975
1372
  id: string;
976
1373
  type: "task";
977
1374
  position: {
@@ -1014,10 +1411,27 @@ export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
1014
1411
  };
1015
1412
  startDate: Date;
1016
1413
  try: number;
1017
- status: "skipped";
1018
- endDate: Date;
1019
1414
  }, {
1415
+ endDate: Date;
1416
+ status: "skipped";
1020
1417
  node: {
1418
+ id: string;
1419
+ type: "checkpoint";
1420
+ position: {
1421
+ x: number;
1422
+ y: number;
1423
+ };
1424
+ } | {
1425
+ id: string;
1426
+ type: "synchronize";
1427
+ position: {
1428
+ x: number;
1429
+ y: number;
1430
+ };
1431
+ data: {
1432
+ unlocked: boolean;
1433
+ };
1434
+ } | {
1021
1435
  id: string;
1022
1436
  type: "task";
1023
1437
  position: {
@@ -1060,7 +1474,5 @@ export declare const makeDoSkippedTry: (flowNodeSchemas: makeDoTrySchemaProps) =
1060
1474
  };
1061
1475
  startDate: Date;
1062
1476
  try: number;
1063
- status: "skipped";
1064
- endDate: Date;
1065
1477
  }>;
1066
1478
  export {};
@@ -11,6 +11,9 @@ export declare type FlowCheckpointNode = NodeBase & {
11
11
  export declare type FlowCheckpointPublicNode = Pick<FlowCheckpointNode, "id" | "type">;
12
12
  export declare type FlowSynchronizeNode = NodeBase & {
13
13
  type: "synchronize";
14
+ data?: {
15
+ unlocked: boolean;
16
+ };
14
17
  };
15
18
  export declare type FlowSynchronizePublicNode = Pick<FlowSynchronizeNode, "id" | "type">;
16
19
  export declare type FlowTaskNode = NodeBase & {
@@ -102,6 +105,7 @@ export declare type FlowSplitAnswerNode = NodeBase & {
102
105
  type: "split-answer";
103
106
  data: SplitAnswer;
104
107
  };
108
+ export declare const isFlowSplitAnswerNode: (n: FlowNode) => n is FlowSplitAnswerNode;
105
109
  export declare type SplitResult = {
106
110
  condition: Condition;
107
111
  };
@@ -109,6 +113,7 @@ export declare type FlowSplitResultNode = NodeBase & {
109
113
  type: "split-result";
110
114
  data: SplitResult;
111
115
  };
116
+ export declare const isFlowSplitResultNode: (n: FlowNode) => n is FlowSplitResultNode;
112
117
  export declare type SplitPoints = {
113
118
  points: number;
114
119
  };
@@ -116,6 +121,7 @@ export declare type FlowSplitPointsNode = NodeBase & {
116
121
  type: "split-points";
117
122
  data: SplitPoints;
118
123
  };
124
+ export declare const isFlowSplitPointsNode: (n: FlowNode) => n is FlowSplitPointsNode;
119
125
  export declare type PortalInput = {
120
126
  portal: string;
121
127
  description: string;
@@ -128,14 +134,18 @@ export declare type FlowPortalInputNode = NodeBase & {
128
134
  type: "portal-input";
129
135
  data: PortalInput;
130
136
  };
137
+ export declare const isFlowPortalInputNode: (n: FlowNode) => n is FlowPortalInputNode;
131
138
  export declare type FlowPortalOutputNode = NodeBase & {
132
139
  type: "portal-output";
133
140
  data: PortalOutput;
134
141
  };
142
+ export declare const isFlowPortalOutputNode: (n: FlowNode) => n is FlowPortalOutputNode;
135
143
  export declare type FlowSplitRandomNode = NodeBase & {
136
144
  type: "split-random";
137
145
  };
146
+ export declare const isFlowSplitRandomNode: (n: FlowNode) => n is FlowSplitRandomNode;
138
147
  export declare type ControlFlowNode = FlowSplitAnswerNode | FlowSplitResultNode | FlowSplitPointsNode | FlowSplitRandomNode | FlowPortalInputNode | FlowPortalOutputNode;
148
+ export declare const isControlFlowNode: (n: FlowNode) => n is ControlFlowNode;
139
149
  export declare type FlowNode = InteractiveFlowNode | ControlFlowNode;
140
150
  export declare const isInteractiveFlowNode: (n: FlowNode) => n is InteractiveFlowNode;
141
151
  export declare type FlowEdge = {
package/dist/esm/flow.js CHANGED
@@ -28,6 +28,32 @@ export const isFlowTitleNode = (n) => {
28
28
  }
29
29
  return false;
30
30
  };
31
+ export const isFlowSplitAnswerNode = (n) => {
32
+ return n.type === "split-answer";
33
+ };
34
+ export const isFlowSplitResultNode = (n) => {
35
+ return n.type === "split-result";
36
+ };
37
+ export const isFlowSplitPointsNode = (n) => {
38
+ return n.type === "split-points";
39
+ };
40
+ export const isFlowPortalInputNode = (n) => {
41
+ return n.type === "portal-input";
42
+ };
43
+ export const isFlowPortalOutputNode = (n) => {
44
+ return n.type === "portal-output";
45
+ };
46
+ export const isFlowSplitRandomNode = (n) => {
47
+ return n.type === "split-random";
48
+ };
49
+ export const isControlFlowNode = (n) => {
50
+ return (n.type === "portal-input" ||
51
+ n.type === "portal-output" ||
52
+ n.type === "split-answer" ||
53
+ n.type === "split-points" ||
54
+ n.type === "split-random" ||
55
+ n.type === "split-result");
56
+ };
31
57
  export const isInteractiveFlowNode = (n) => {
32
58
  if (n.type === "checkpoint" ||
33
59
  n.type === "end" ||
@@ -1 +1 @@
1
- {"version":3,"file":"flow.js","sourceRoot":"","sources":["../../src/flow.ts"],"names":[],"mappings":"AAgCA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAW,EAAqB,EAAE;IAC/D,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,EAAE;QACrB,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AASF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAW,EAAsB,EAAE;IACjE,IAAI,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