@kernhq/module-hr 0.18.1 → 0.20.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.
Files changed (50) hide show
  1. package/dist/contract/capabilities.d.ts.map +1 -1
  2. package/dist/contract/capabilities.js +45 -0
  3. package/dist/contract/capabilities.js.map +1 -1
  4. package/dist/contract/exports.d.ts +459 -0
  5. package/dist/contract/exports.d.ts.map +1 -0
  6. package/dist/contract/exports.js +331 -0
  7. package/dist/contract/exports.js.map +1 -0
  8. package/dist/contract/index.d.ts +2 -0
  9. package/dist/contract/index.d.ts.map +1 -1
  10. package/dist/contract/index.js +2 -0
  11. package/dist/contract/index.js.map +1 -1
  12. package/dist/contract/permissions.d.ts +10 -2
  13. package/dist/contract/permissions.d.ts.map +1 -1
  14. package/dist/contract/permissions.js +44 -5
  15. package/dist/contract/permissions.js.map +1 -1
  16. package/dist/contract/rosters.d.ts +183 -0
  17. package/dist/contract/rosters.d.ts.map +1 -0
  18. package/dist/contract/rosters.js +138 -0
  19. package/dist/contract/rosters.js.map +1 -0
  20. package/dist/contract/router.d.ts +893 -0
  21. package/dist/contract/router.d.ts.map +1 -1
  22. package/dist/contract/router.js +220 -1
  23. package/dist/contract/router.js.map +1 -1
  24. package/dist/server/router.d.ts +1210 -0
  25. package/dist/server/router.d.ts.map +1 -1
  26. package/dist/server/router.js +578 -1
  27. package/dist/server/router.js.map +1 -1
  28. package/dist/server/schema.d.ts +727 -1
  29. package/dist/server/schema.d.ts.map +1 -1
  30. package/dist/server/schema.js +105 -0
  31. package/dist/server/schema.js.map +1 -1
  32. package/dist/server/services/exports.d.ts +321 -0
  33. package/dist/server/services/exports.d.ts.map +1 -0
  34. package/dist/server/services/exports.js +765 -0
  35. package/dist/server/services/exports.js.map +1 -0
  36. package/dist/server/services/rosters.d.ts +166 -0
  37. package/dist/server/services/rosters.d.ts.map +1 -0
  38. package/dist/server/services/rosters.js +268 -0
  39. package/dist/server/services/rosters.js.map +1 -0
  40. package/migrations/0012_rosters.sql +163 -0
  41. package/migrations/meta/0012_snapshot.json +4847 -0
  42. package/migrations/meta/_journal.json +7 -0
  43. package/package.json +1 -1
  44. package/src/client/messages.ts +13 -0
  45. package/src/contract/capabilities.ts +45 -0
  46. package/src/contract/exports.ts +354 -0
  47. package/src/contract/index.ts +2 -0
  48. package/src/contract/permissions.ts +47 -5
  49. package/src/contract/rosters.ts +156 -0
  50. package/src/contract/router.ts +256 -0
@@ -0,0 +1,183 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Rosters: which shift a person works on a **date**.
4
+ *
5
+ * A `Schedule` is a week that repeats for ever, so `ScheduleWeek` is keyed by weekday name. That is
6
+ * the right shape for an office and cannot express a factory: 4-on-4-off has no weekly period at
7
+ * all, and neither does any 2- or 3-week rotation, so there is no length of `ScheduleWeek` that
8
+ * describes one. A roster is keyed by the calendar instead, and adds exactly three things a
9
+ * schedule does not have:
10
+ *
11
+ * - **A shift on a date.** The key is the day, not a modulus of seven.
12
+ * - **Coverage** — "who is on Early on Tuesday" is a question about an office-day, not about a
13
+ * person, and it cannot be asked of a set of weekly schedules without walking everybody's week.
14
+ * - **A one-day exception that survives.** A schedule change is effective-dated and rewrites every
15
+ * day after it; a roster override changes one day and leaves the rotation alone.
16
+ *
17
+ * Everything else attendance already does — grace, rounding, overnight shifts, night-shift business
18
+ * date attribution, the auto-close sweep — stays where it is. A roster is not a second computation
19
+ * of hours; it is a different answer to "what was this person meant to work today".
20
+ *
21
+ * **The rotation is computed, never stored per day.** A `RosterPattern` is a cycle of days and the
22
+ * date `days[0]` falls on; what somebody works on any date at all is arithmetic from those two.
23
+ * Generating a year of rows per person is what makes a roster impossible to change afterwards —
24
+ * moving a crew forward by a day becomes a bulk rewrite of thousands of rows with no way to say
25
+ * which of them a human had touched. Only the exceptions are rows.
26
+ */
27
+ /**
28
+ * A named shift: Early, Late, Night.
29
+ *
30
+ * Named rather than inlined into each pattern because coverage groups by it — "Early" in the
31
+ * warehouse pattern and "Early" in the picking pattern have to be the same column of the same grid.
32
+ * `graceInMinutes` / `graceOutMinutes` sit here rather than on the schedule for the same reason a
33
+ * night shift usually has a wider grace than a day one: they are properties of the shift.
34
+ */
35
+ export declare const RosterShift: z.ZodObject<{
36
+ name: z.ZodString;
37
+ code: z.ZodNullable<z.ZodString>;
38
+ start: z.ZodString;
39
+ end: z.ZodString;
40
+ breakMinutes: z.ZodNumber;
41
+ graceInMinutes: z.ZodNumber;
42
+ graceOutMinutes: z.ZodNumber;
43
+ color: z.ZodNullable<z.ZodString>;
44
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
45
+ workspaceId: z.core.$ZodBranded<z.ZodUUID, "WorkspaceId", "out">;
46
+ id: z.ZodUUID;
47
+ }, z.core.$strip>;
48
+ export type RosterShift = z.infer<typeof RosterShift>;
49
+ /**
50
+ * One position in a rotation: the shifts worked on that day of the cycle.
51
+ *
52
+ * An **array**, so a split shift — 06:00–10:00 and 16:00–20:00, ordinary in hospitality — is a
53
+ * cycle day with two entries rather than something the model forbids. An empty array is a rest day,
54
+ * which is a different fact from "nothing is rostered": a rest day is planned.
55
+ */
56
+ export declare const RosterCycleDay: z.ZodArray<z.ZodUUID>;
57
+ export type RosterCycleDay = z.infer<typeof RosterCycleDay>;
58
+ /**
59
+ * A rotation, as a cycle and the date it starts from.
60
+ *
61
+ * The cycle length is `days.length` and is not stored separately — two numbers that must agree is
62
+ * one number and a bug. `anchorDate` is the date `days[0]` applies to; every other date is
63
+ * `(dayNumber(date) - dayNumber(anchorDate) + cycleOffset) mod days.length`, which answers for
64
+ * dates before the anchor as readily as after it.
65
+ */
66
+ export declare const RosterPattern: z.ZodObject<{
67
+ name: z.ZodString;
68
+ anchorDate: z.ZodISODate;
69
+ days: z.ZodArray<z.ZodArray<z.ZodUUID>>;
70
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
71
+ workspaceId: z.core.$ZodBranded<z.ZodUUID, "WorkspaceId", "out">;
72
+ id: z.ZodUUID;
73
+ }, z.core.$strip>;
74
+ export type RosterPattern = z.infer<typeof RosterPattern>;
75
+ /**
76
+ * A person on a rotation, over a period.
77
+ *
78
+ * Effective-dated like every other assignment here, and at most one may be in force on a day — the
79
+ * exclusion constraint in migration 0012 is what guarantees that rather than the handler, because
80
+ * two concurrent requests cannot both win against a constraint.
81
+ *
82
+ * `cycleOffset` is what puts two crews on one pattern out of phase: crew B on a 4-on-4-off cycle
83
+ * with `cycleOffset: 4` works exactly the days crew A is off. Without it every crew needs its own
84
+ * copy of the same rotation, and a change to the rotation has to be made once per crew.
85
+ */
86
+ export declare const RosterAssignment: z.ZodObject<{
87
+ personId: z.ZodUUID;
88
+ patternId: z.ZodUUID;
89
+ effectiveFrom: z.ZodISODate;
90
+ effectiveTo: z.ZodNullable<z.ZodISODate>;
91
+ cycleOffset: z.ZodNumber;
92
+ createdAt: z.ZodISODateTime;
93
+ workspaceId: z.core.$ZodBranded<z.ZodUUID, "WorkspaceId", "out">;
94
+ id: z.ZodUUID;
95
+ }, z.core.$strip>;
96
+ export type RosterAssignment = z.infer<typeof RosterAssignment>;
97
+ /**
98
+ * Where a rostered day came from.
99
+ *
100
+ * `none` is not the same as a rest day: it means nothing rosters this person on this date at all,
101
+ * and a screen that renders it identically to a planned day off is telling somebody their absence
102
+ * was intended. A rest day is `pattern` with no shifts.
103
+ */
104
+ export declare const RosterDaySource: z.ZodEnum<{
105
+ pattern: "pattern";
106
+ override: "override";
107
+ none: "none";
108
+ }>;
109
+ export type RosterDaySource = z.infer<typeof RosterDaySource>;
110
+ export declare const RosterDay: z.ZodObject<{
111
+ personId: z.ZodUUID;
112
+ businessDate: z.ZodISODate;
113
+ shifts: z.ZodArray<z.ZodObject<{
114
+ name: z.ZodString;
115
+ code: z.ZodNullable<z.ZodString>;
116
+ start: z.ZodString;
117
+ end: z.ZodString;
118
+ breakMinutes: z.ZodNumber;
119
+ graceInMinutes: z.ZodNumber;
120
+ graceOutMinutes: z.ZodNumber;
121
+ color: z.ZodNullable<z.ZodString>;
122
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
123
+ workspaceId: z.core.$ZodBranded<z.ZodUUID, "WorkspaceId", "out">;
124
+ id: z.ZodUUID;
125
+ }, z.core.$strip>>;
126
+ source: z.ZodEnum<{
127
+ pattern: "pattern";
128
+ override: "override";
129
+ none: "none";
130
+ }>;
131
+ note: z.ZodNullable<z.ZodString>;
132
+ }, z.core.$strip>;
133
+ export type RosterDay = z.infer<typeof RosterDay>;
134
+ /** Enough of a person to fill a coverage grid. The name every member may already read. */
135
+ export declare const RosterPerson: z.ZodObject<{
136
+ personId: z.ZodUUID;
137
+ displayName: z.ZodString;
138
+ }, z.core.$strip>;
139
+ export type RosterPerson = z.infer<typeof RosterPerson>;
140
+ /**
141
+ * One office-day, which is the question a roster exists to answer.
142
+ *
143
+ * `off` carries the people a pattern covers on this date and does not put on a shift — the answer
144
+ * to "who could I call in", which is the second thing anybody looking at a coverage grid wants and
145
+ * the one a list of who is working cannot give.
146
+ */
147
+ export declare const RosterCoverageDay: z.ZodObject<{
148
+ businessDate: z.ZodISODate;
149
+ slots: z.ZodArray<z.ZodObject<{
150
+ shift: z.ZodObject<{
151
+ name: z.ZodString;
152
+ code: z.ZodNullable<z.ZodString>;
153
+ start: z.ZodString;
154
+ end: z.ZodString;
155
+ breakMinutes: z.ZodNumber;
156
+ graceInMinutes: z.ZodNumber;
157
+ graceOutMinutes: z.ZodNumber;
158
+ color: z.ZodNullable<z.ZodString>;
159
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
160
+ workspaceId: z.core.$ZodBranded<z.ZodUUID, "WorkspaceId", "out">;
161
+ id: z.ZodUUID;
162
+ }, z.core.$strip>;
163
+ people: z.ZodArray<z.ZodObject<{
164
+ personId: z.ZodUUID;
165
+ displayName: z.ZodString;
166
+ }, z.core.$strip>>;
167
+ }, z.core.$strip>>;
168
+ off: z.ZodArray<z.ZodObject<{
169
+ personId: z.ZodUUID;
170
+ displayName: z.ZodString;
171
+ }, z.core.$strip>>;
172
+ }, z.core.$strip>;
173
+ export type RosterCoverageDay = z.infer<typeof RosterCoverageDay>;
174
+ /**
175
+ * How long a roster range may be.
176
+ *
177
+ * Expansion is arithmetic and cheap; the cost is the person-days a coverage grid resolves and the
178
+ * size of what comes back. A quarter covers the longest rotation anybody plans by hand, and
179
+ * coverage is capped tighter because it multiplies by the population of an office.
180
+ */
181
+ export declare const MAX_ROSTER_DAYS = 186;
182
+ export declare const MAX_COVERAGE_DAYS = 42;
183
+ //# sourceMappingURL=rosters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rosters.d.ts","sourceRoot":"","sources":["../../src/contract/rosters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;iBActB,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,uBAA2B,CAAA;AACtD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;;;;;iBAQxB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEzD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;iBAS3B,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE/D;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;EAA0C,CAAA;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;iBAOpB,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAEjD,0FAA0F;AAC1F,eAAO,MAAM,YAAY;;;iBAA4D,CAAA;AACrF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;iBAI5B,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,MAAM,CAAA;AAClC,eAAO,MAAM,iBAAiB,KAAK,CAAA"}
@@ -0,0 +1,138 @@
1
+ import { Timestamp, WorkspaceId } from '@kernhq/contracts';
2
+ import { z } from 'zod';
3
+ import { IsoDate, WallClock } from './models.js';
4
+ const ws = { workspaceId: WorkspaceId };
5
+ /**
6
+ * Rosters: which shift a person works on a **date**.
7
+ *
8
+ * A `Schedule` is a week that repeats for ever, so `ScheduleWeek` is keyed by weekday name. That is
9
+ * the right shape for an office and cannot express a factory: 4-on-4-off has no weekly period at
10
+ * all, and neither does any 2- or 3-week rotation, so there is no length of `ScheduleWeek` that
11
+ * describes one. A roster is keyed by the calendar instead, and adds exactly three things a
12
+ * schedule does not have:
13
+ *
14
+ * - **A shift on a date.** The key is the day, not a modulus of seven.
15
+ * - **Coverage** — "who is on Early on Tuesday" is a question about an office-day, not about a
16
+ * person, and it cannot be asked of a set of weekly schedules without walking everybody's week.
17
+ * - **A one-day exception that survives.** A schedule change is effective-dated and rewrites every
18
+ * day after it; a roster override changes one day and leaves the rotation alone.
19
+ *
20
+ * Everything else attendance already does — grace, rounding, overnight shifts, night-shift business
21
+ * date attribution, the auto-close sweep — stays where it is. A roster is not a second computation
22
+ * of hours; it is a different answer to "what was this person meant to work today".
23
+ *
24
+ * **The rotation is computed, never stored per day.** A `RosterPattern` is a cycle of days and the
25
+ * date `days[0]` falls on; what somebody works on any date at all is arithmetic from those two.
26
+ * Generating a year of rows per person is what makes a roster impossible to change afterwards —
27
+ * moving a crew forward by a day becomes a bulk rewrite of thousands of rows with no way to say
28
+ * which of them a human had touched. Only the exceptions are rows.
29
+ */
30
+ /**
31
+ * A named shift: Early, Late, Night.
32
+ *
33
+ * Named rather than inlined into each pattern because coverage groups by it — "Early" in the
34
+ * warehouse pattern and "Early" in the picking pattern have to be the same column of the same grid.
35
+ * `graceInMinutes` / `graceOutMinutes` sit here rather than on the schedule for the same reason a
36
+ * night shift usually has a wider grace than a day one: they are properties of the shift.
37
+ */
38
+ export const RosterShift = z.object({
39
+ id: z.uuid(),
40
+ ...ws,
41
+ name: z.string().min(1).max(80),
42
+ /** A one- or two-letter code, for a grid too dense to carry a name. */
43
+ code: z.string().max(8).nullable(),
44
+ start: WallClock,
45
+ /** Earlier than `start` for a shift that ends the next morning — the same rule `ShiftSpec` uses. */
46
+ end: WallClock,
47
+ breakMinutes: z.number().int().min(0).max(480),
48
+ graceInMinutes: z.number().int().min(0).max(240),
49
+ graceOutMinutes: z.number().int().min(0).max(240),
50
+ color: z.string().max(32).nullable(),
51
+ archivedAt: Timestamp.nullable(),
52
+ });
53
+ /**
54
+ * One position in a rotation: the shifts worked on that day of the cycle.
55
+ *
56
+ * An **array**, so a split shift — 06:00–10:00 and 16:00–20:00, ordinary in hospitality — is a
57
+ * cycle day with two entries rather than something the model forbids. An empty array is a rest day,
58
+ * which is a different fact from "nothing is rostered": a rest day is planned.
59
+ */
60
+ export const RosterCycleDay = z.array(z.uuid()).max(4);
61
+ /**
62
+ * A rotation, as a cycle and the date it starts from.
63
+ *
64
+ * The cycle length is `days.length` and is not stored separately — two numbers that must agree is
65
+ * one number and a bug. `anchorDate` is the date `days[0]` applies to; every other date is
66
+ * `(dayNumber(date) - dayNumber(anchorDate) + cycleOffset) mod days.length`, which answers for
67
+ * dates before the anchor as readily as after it.
68
+ */
69
+ export const RosterPattern = z.object({
70
+ id: z.uuid(),
71
+ ...ws,
72
+ name: z.string().min(1).max(120),
73
+ /** The date `days[0]` falls on. Moving it rotates every assignment on this pattern at once. */
74
+ anchorDate: IsoDate,
75
+ days: z.array(RosterCycleDay).min(1).max(56),
76
+ archivedAt: Timestamp.nullable(),
77
+ });
78
+ /**
79
+ * A person on a rotation, over a period.
80
+ *
81
+ * Effective-dated like every other assignment here, and at most one may be in force on a day — the
82
+ * exclusion constraint in migration 0012 is what guarantees that rather than the handler, because
83
+ * two concurrent requests cannot both win against a constraint.
84
+ *
85
+ * `cycleOffset` is what puts two crews on one pattern out of phase: crew B on a 4-on-4-off cycle
86
+ * with `cycleOffset: 4` works exactly the days crew A is off. Without it every crew needs its own
87
+ * copy of the same rotation, and a change to the rotation has to be made once per crew.
88
+ */
89
+ export const RosterAssignment = z.object({
90
+ id: z.uuid(),
91
+ ...ws,
92
+ personId: z.uuid(),
93
+ patternId: z.uuid(),
94
+ effectiveFrom: IsoDate,
95
+ effectiveTo: IsoDate.nullable(),
96
+ cycleOffset: z.number().int().min(0).max(55),
97
+ createdAt: Timestamp,
98
+ });
99
+ /**
100
+ * Where a rostered day came from.
101
+ *
102
+ * `none` is not the same as a rest day: it means nothing rosters this person on this date at all,
103
+ * and a screen that renders it identically to a planned day off is telling somebody their absence
104
+ * was intended. A rest day is `pattern` with no shifts.
105
+ */
106
+ export const RosterDaySource = z.enum(['pattern', 'override', 'none']);
107
+ export const RosterDay = z.object({
108
+ personId: z.uuid(),
109
+ businessDate: IsoDate,
110
+ shifts: z.array(RosterShift),
111
+ source: RosterDaySource,
112
+ /** Why this day differs from the rotation. Only ever set on an override. */
113
+ note: z.string().max(500).nullable(),
114
+ });
115
+ /** Enough of a person to fill a coverage grid. The name every member may already read. */
116
+ export const RosterPerson = z.object({ personId: z.uuid(), displayName: z.string() });
117
+ /**
118
+ * One office-day, which is the question a roster exists to answer.
119
+ *
120
+ * `off` carries the people a pattern covers on this date and does not put on a shift — the answer
121
+ * to "who could I call in", which is the second thing anybody looking at a coverage grid wants and
122
+ * the one a list of who is working cannot give.
123
+ */
124
+ export const RosterCoverageDay = z.object({
125
+ businessDate: IsoDate,
126
+ slots: z.array(z.object({ shift: RosterShift, people: z.array(RosterPerson) })),
127
+ off: z.array(RosterPerson),
128
+ });
129
+ /**
130
+ * How long a roster range may be.
131
+ *
132
+ * Expansion is arithmetic and cheap; the cost is the person-days a coverage grid resolves and the
133
+ * size of what comes back. A quarter covers the longest rotation anybody plans by hand, and
134
+ * coverage is capped tighter because it multiplies by the population of an office.
135
+ */
136
+ export const MAX_ROSTER_DAYS = 186;
137
+ export const MAX_COVERAGE_DAYS = 42;
138
+ //# sourceMappingURL=rosters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rosters.js","sourceRoot":"","sources":["../../src/contract/rosters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;IACZ,GAAG,EAAE;IACL,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAC/B,uEAAuE;IACvE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IA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