@effect-vfs/nfs 0.1.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.
@@ -0,0 +1,224 @@
1
+ import * as ByteSize from "effect/ByteSize";
2
+ import * as Data from "effect/Data";
3
+ import * as Effect from "effect/Effect";
4
+ import * as Exit from "effect/Exit";
5
+ import * as Result from "effect/Result";
6
+ import * as Scope from "effect/Scope";
7
+ import * as Semaphore from "effect/Semaphore";
8
+ const HANDLE_VERSION = 1;
9
+ const HANDLE_BYTES = 25;
10
+ /** @internal */
11
+ export class ExportCapacityError extends Data.TaggedError("ExportCapacityError") {
12
+ constructor(message) {
13
+ super({ detail: message });
14
+ }
15
+ }
16
+ /** @internal */
17
+ export class InvalidFilehandleError extends Data.TaggedError("InvalidFilehandleError") {
18
+ constructor(reason) {
19
+ super({ reason });
20
+ }
21
+ }
22
+ /** @internal */
23
+ export class InvalidNameError extends Data.TaggedError("InvalidNameError") {
24
+ constructor(message, reason) {
25
+ super({ detail: message, reason });
26
+ }
27
+ }
28
+ const assertPositiveInteger = (name, value) => {
29
+ if (!Number.isSafeInteger(value) || value <= 0)
30
+ throw new RangeError(`${name} must be a positive safe integer`);
31
+ };
32
+ const sameBytes = (left, right) => {
33
+ if (left.length !== right.length)
34
+ return false;
35
+ let difference = 0;
36
+ for (let index = 0; index < left.length; index++)
37
+ difference |= left[index] ^ right[index];
38
+ return difference === 0;
39
+ };
40
+ const validateGeneration = (generation) => {
41
+ if (generation.length !== 16)
42
+ throw new RangeError("generation must contain exactly 16 bytes");
43
+ };
44
+ const decodeUtf8 = (bytes) => {
45
+ try {
46
+ return new TextDecoder("utf-8", { fatal: true }).decode(bytes);
47
+ }
48
+ catch {
49
+ throw new InvalidNameError("Name is not valid UTF-8", "Encoding");
50
+ }
51
+ };
52
+ /** @internal */
53
+ export const validateName = (bytes, maxNameBytes) => {
54
+ if (bytes.length === 0)
55
+ throw new InvalidNameError("Name is empty", "Empty");
56
+ if (BigInt(bytes.length) > maxNameBytes)
57
+ throw new InvalidNameError("Name is too long", "TooLong");
58
+ if (bytes.includes(0) || bytes.includes(0x2f)) {
59
+ throw new InvalidNameError("Name contains a forbidden byte", "ForbiddenByte");
60
+ }
61
+ const decoded = decodeUtf8(bytes);
62
+ if (decoded === "." || decoded === "..") {
63
+ throw new InvalidNameError("Reserved path components are not names", "Reserved");
64
+ }
65
+ // A fatal decode plus byte-for-byte re-encoding prevents replacement or normalization.
66
+ if (!sameBytes(bytes, new TextEncoder().encode(decoded))) {
67
+ throw new InvalidNameError("Name cannot be represented exactly", "Encoding");
68
+ }
69
+ return decoded;
70
+ };
71
+ const uint64From = (bytes, offset) => new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength).getBigUint64(offset);
72
+ /** @internal */
73
+ export const makeExport = (caller, generation, limits, identity = generation, capacity) => {
74
+ validateGeneration(generation);
75
+ validateGeneration(identity);
76
+ assertPositiveInteger("maxFilehandles", limits.maxFilehandles);
77
+ assertPositiveInteger("maxNameBytes", ByteSize.toNumberUnsafe(limits.maxNameBytes));
78
+ const generationCopy = new Uint8Array(generation);
79
+ const identityCopy = new Uint8Array(identity);
80
+ const referencesById = new Map();
81
+ const idsByReference = new WeakMap();
82
+ const registryGate = Semaphore.makeUnsafe(1);
83
+ let nextId = 1n;
84
+ const admitHandle = Effect.gen(function* () {
85
+ if (referencesById.size >= limits.maxFilehandles) {
86
+ for (const [candidateId, candidate] of referencesById) {
87
+ const result = yield* Effect.result(caller.observeMetadata(candidate));
88
+ if (Result.isFailure(result) && result.failure.code === "StaleReference") {
89
+ referencesById.delete(candidateId);
90
+ // SAFETY: ObjectReference values are opaque object identities created by the core volume.
91
+ idsByReference.delete(candidate);
92
+ }
93
+ }
94
+ if (referencesById.size >= limits.maxFilehandles) {
95
+ return yield* new ExportCapacityError("Filehandle registry is full");
96
+ }
97
+ }
98
+ });
99
+ const registerHandle = (reference) => {
100
+ // SAFETY: ObjectReference values are opaque object identities created by the core volume.
101
+ let id = idsByReference.get(reference);
102
+ if (id === undefined) {
103
+ id = nextId++;
104
+ // SAFETY: ObjectReference values are opaque object identities created by the core volume.
105
+ idsByReference.set(reference, id);
106
+ referencesById.set(id, reference);
107
+ }
108
+ const bytes = new Uint8Array(HANDLE_BYTES);
109
+ bytes[0] = HANDLE_VERSION;
110
+ bytes.set(generationCopy, 1);
111
+ new DataView(bytes.buffer).setBigUint64(17, id);
112
+ return bytes;
113
+ };
114
+ const handleFor = (reference) => registryGate.withPermit(Effect.gen(function* () {
115
+ if (!idsByReference.has(reference))
116
+ yield* admitHandle;
117
+ return registerHandle(reference);
118
+ }));
119
+ const resolve = (handle) => Effect.suspend(() => {
120
+ if (handle.length !== HANDLE_BYTES || handle[0] !== HANDLE_VERSION) {
121
+ return Effect.fail(new InvalidFilehandleError("Malformed"));
122
+ }
123
+ if (!sameBytes(handle.subarray(1, 17), generationCopy)) {
124
+ return Effect.fail(new InvalidFilehandleError("WrongGeneration"));
125
+ }
126
+ const reference = referencesById.get(uint64From(handle, 17));
127
+ if (reference === undefined)
128
+ return Effect.fail(new InvalidFilehandleError("Unknown"));
129
+ return caller.observeMetadata(reference).pipe(Effect.as(reference), Effect.mapError((error) => new InvalidFilehandleError(error.code === "StaleReference" ? "Stale" : error.code === "VolumeUnavailable" ? "Unavailable" : "Unknown")));
130
+ });
131
+ const open = (activeCaller, reference, access = "read") => Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
132
+ const scope = yield* Scope.make();
133
+ const opened = yield* Effect.exit(restore(activeCaller.openReference(reference, { access }).pipe(Effect.provideService(Scope.Scope, scope))));
134
+ if (Exit.isFailure(opened)) {
135
+ yield* Scope.close(scope, opened);
136
+ return yield* Effect.failCause(opened.cause);
137
+ }
138
+ return {
139
+ handle: opened.value,
140
+ close: Scope.close(scope, Exit.void).pipe(Effect.orDie)
141
+ };
142
+ }));
143
+ const withCaller = (activeCaller) => ({
144
+ capacity,
145
+ withCaller,
146
+ root: activeCaller.rootReference,
147
+ handleFor,
148
+ resolve,
149
+ observeMetadata: activeCaller.observeMetadata,
150
+ observeDirectory: activeCaller.observeDirectory,
151
+ lookup: (directory, name) => Effect.suspend(() => {
152
+ try {
153
+ validateName(name, limits.maxNameBytes);
154
+ return activeCaller.lookupReference(directory, name);
155
+ }
156
+ catch (error) {
157
+ if (error instanceof InvalidNameError)
158
+ return Effect.fail(error);
159
+ throw error;
160
+ }
161
+ }),
162
+ parent: activeCaller.parentReference,
163
+ readLink: activeCaller.readLinkReference,
164
+ mkdir: (directory, name, settings) => registryGate.withPermit(Effect.gen(function* () {
165
+ yield* Effect.try({
166
+ try: () => validateName(name, limits.maxNameBytes),
167
+ catch: (error) => {
168
+ if (error instanceof InvalidNameError)
169
+ return error;
170
+ throw error;
171
+ }
172
+ });
173
+ yield* admitHandle;
174
+ const result = yield* activeCaller.mkdirReference(directory, name, settings);
175
+ registerHandle(result.reference);
176
+ return result;
177
+ })),
178
+ symlink: (target, directory, name, settings) => registryGate.withPermit(Effect.gen(function* () {
179
+ yield* Effect.try({
180
+ try: () => validateName(name, limits.maxNameBytes),
181
+ catch: (error) => {
182
+ if (error instanceof InvalidNameError)
183
+ return error;
184
+ throw error;
185
+ }
186
+ });
187
+ yield* admitHandle;
188
+ const result = yield* activeCaller.symlinkReference(target, directory, name, settings);
189
+ registerHandle(result.reference);
190
+ return result;
191
+ })),
192
+ link: activeCaller.linkReference,
193
+ remove: activeCaller.removeReference,
194
+ rename: activeCaller.renameReference,
195
+ chmod: activeCaller.chmodReference,
196
+ chown: activeCaller.chownReference,
197
+ utimes: activeCaller.utimesReference,
198
+ truncate: activeCaller.truncateReference,
199
+ open: (reference, access) => open(activeCaller, reference, access),
200
+ openChild: (directory, name, settings) => registryGate.withPermit(Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
201
+ yield* Effect.try({
202
+ try: () => validateName(name, limits.maxNameBytes),
203
+ catch: (error) => {
204
+ if (error instanceof InvalidNameError)
205
+ return error;
206
+ throw error;
207
+ }
208
+ });
209
+ const expected = settings.expectedChild;
210
+ if (expected == null || !idsByReference.has(expected.reference))
211
+ yield* restore(admitHandle);
212
+ const scope = yield* Scope.make();
213
+ const opened = yield* Effect.exit(restore(activeCaller.openChildReference(directory, name, settings).pipe(Effect.provideService(Scope.Scope, scope))));
214
+ if (Exit.isFailure(opened)) {
215
+ yield* Scope.close(scope, opened);
216
+ return yield* Effect.failCause(opened.cause);
217
+ }
218
+ registerHandle(opened.value.reference);
219
+ return { ...opened.value, close: Scope.close(scope, Exit.void).pipe(Effect.orDie) };
220
+ }))),
221
+ fsid: [uint64From(identityCopy, 0), uint64From(identityCopy, 8)]
222
+ });
223
+ return withCaller(caller);
224
+ };
@@ -0,0 +1,16 @@
1
+ /** @internal */
2
+ export declare const MAX_OFFSET = 18446744073709551615n;
3
+ /** @internal */
4
+ export interface LockRange {
5
+ readonly offset: bigint;
6
+ readonly length: bigint;
7
+ /** Exclusive end; one past uint64's maximum denotes a lock through EOF. */
8
+ readonly end: bigint;
9
+ }
10
+ /** @internal */
11
+ export declare const lockRange: (offset: bigint, length: bigint) => LockRange | undefined;
12
+ /** @internal */
13
+ export declare const overlaps: (left: LockRange, right: LockRange) => boolean;
14
+ /** @internal */
15
+ export declare const sameRange: (left: LockRange, right: LockRange) => boolean;
16
+ //# sourceMappingURL=lockRanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lockRanges.d.ts","sourceRoot":"","sources":["../../src/internal/lockRanges.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,eAAO,MAAM,UAAU,wBAAyB,CAAA;AAEhD,gBAAgB;AAChB,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,2EAA2E;IAC3E,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CACrB;AAED,gBAAgB;AAChB,eAAO,MAAM,SAAS,WAAY,MAAM,UAAU,MAAM,KAAG,SAAS,GAAG,SAItE,CAAA;AAED,gBAAgB;AAChB,eAAO,MAAM,QAAQ,SAAU,SAAS,SAAS,SAAS,KAAG,OACT,CAAA;AAEpD,gBAAgB;AAChB,eAAO,MAAM,SAAS,SAAU,SAAS,SAAS,SAAS,KAAG,OACA,CAAA"}
@@ -0,0 +1,12 @@
1
+ /** @internal */
2
+ export const MAX_OFFSET = 0xffffffffffffffffn;
3
+ /** @internal */
4
+ export const lockRange = (offset, length) => {
5
+ if (length === 0n || (length !== MAX_OFFSET && offset + length > MAX_OFFSET))
6
+ return undefined;
7
+ return { offset, length, end: length === MAX_OFFSET ? MAX_OFFSET + 1n : offset + length };
8
+ };
9
+ /** @internal */
10
+ export const overlaps = (left, right) => left.offset < right.end && right.offset < left.end;
11
+ /** @internal */
12
+ export const sameRange = (left, right) => left.offset === right.offset && left.length === right.length;
@@ -0,0 +1,194 @@
1
+ import type { VirtualFileSystem as Vfs } from "@effect-vfs/core";
2
+ import * as ByteSize from "effect/ByteSize";
3
+ import * as Crypto from "effect/Crypto";
4
+ import * as Duration from "effect/Duration";
5
+ import * as Effect from "effect/Effect";
6
+ import type * as PlatformError from "effect/PlatformError";
7
+ import type * as Scope from "effect/Scope";
8
+ import { type NfsExport } from "./export.js";
9
+ import { type CompoundCall, type Connection, RpcPolicyDenied } from "./rpc.js";
10
+ import { type DecodeLimits } from "./xdr.js";
11
+ /** @internal */
12
+ export declare const Status: {
13
+ readonly OK: 0;
14
+ readonly PERM: 1;
15
+ readonly NOENT: 2;
16
+ readonly IO: 5;
17
+ readonly ACCESS: 13;
18
+ readonly EXIST: 17;
19
+ readonly NOTDIR: 20;
20
+ readonly ISDIR: 21;
21
+ readonly INVAL: 22;
22
+ readonly FBIG: 27;
23
+ readonly NOSPC: 28;
24
+ readonly ROFS: 30;
25
+ readonly NAMETOOLONG: 63;
26
+ readonly NOTEMPTY: 66;
27
+ readonly STALE: 70;
28
+ readonly BADHANDLE: 10001;
29
+ readonly BAD_COOKIE: 10003;
30
+ readonly NOTSUPP: 10004;
31
+ readonly TOOSMALL: 10005;
32
+ readonly SERVERFAULT: 10006;
33
+ readonly BADTYPE: 10007;
34
+ readonly DELAY: 10008;
35
+ readonly SAME: 10009;
36
+ readonly EXPIRED: 10011;
37
+ readonly LOCKED: 10012;
38
+ readonly DENIED: 10010;
39
+ readonly OPENMODE: 10038;
40
+ readonly FHEXPIRED: 10014;
41
+ readonly SHARE_DENIED: 10015;
42
+ readonly CLID_INUSE: 10017;
43
+ readonly NOFILEHANDLE: 10020;
44
+ readonly MINOR_VERS_MISMATCH: 10021;
45
+ readonly STALE_CLIENTID: 10022;
46
+ readonly OLD_STATEID: 10024;
47
+ readonly BAD_STATEID: 10025;
48
+ readonly BAD_SEQID: 10026;
49
+ readonly NOT_SAME: 10027;
50
+ readonly LOCK_RANGE: 10028;
51
+ readonly SYMLINK: 10029;
52
+ readonly ATTRNOTSUPP: 10032;
53
+ readonly BADOWNER: 10039;
54
+ readonly NO_GRACE: 10033;
55
+ readonly BADXDR: 10036;
56
+ readonly LOCKS_HELD: 10037;
57
+ readonly BADCHAR: 10040;
58
+ readonly BADNAME: 10041;
59
+ readonly OP_ILLEGAL: 10044;
60
+ readonly BADSESSION: 10052;
61
+ readonly BADSLOT: 10053;
62
+ readonly COMPLETE_ALREADY: 10054;
63
+ readonly CONN_NOT_BOUND_TO_SESSION: 10055;
64
+ readonly SEQ_MISORDERED: 10063;
65
+ readonly SEQUENCE_POS: 10064;
66
+ readonly REQ_TOO_BIG: 10065;
67
+ readonly REP_TOO_BIG: 10066;
68
+ readonly REP_TOO_BIG_TO_CACHE: 10067;
69
+ readonly RETRY_UNCACHED_REP: 10068;
70
+ readonly TOO_MANY_OPS: 10070;
71
+ readonly OP_NOT_IN_SESSION: 10071;
72
+ readonly CLIENTID_BUSY: 10074;
73
+ readonly SEQ_FALSE_RETRY: 10076;
74
+ readonly BAD_HIGH_SLOT: 10077;
75
+ readonly ENCR_ALG_UNSUPP: 10079;
76
+ readonly NOT_ONLY_OP: 10081;
77
+ readonly WRONG_TYPE: 10083;
78
+ };
79
+ /** @internal */
80
+ export declare const Operation: {
81
+ readonly ACCESS: 3;
82
+ readonly CLOSE: 4;
83
+ readonly COMMIT: 5;
84
+ readonly CREATE: 6;
85
+ readonly DELEGPURGE: 7;
86
+ readonly DELEGRETURN: 8;
87
+ readonly GETATTR: 9;
88
+ readonly GETFH: 10;
89
+ readonly LINK: 11;
90
+ readonly LOCK: 12;
91
+ readonly LOCKT: 13;
92
+ readonly LOCKU: 14;
93
+ readonly LOOKUP: 15;
94
+ readonly LOOKUPP: 16;
95
+ readonly NVERIFY: 17;
96
+ readonly OPEN: 18;
97
+ readonly OPENATTR: 19;
98
+ readonly OPEN_CONFIRM: 20;
99
+ readonly OPEN_DOWNGRADE: 21;
100
+ readonly PUTFH: 22;
101
+ readonly PUTPUBFH: 23;
102
+ readonly PUTROOTFH: 24;
103
+ readonly READ: 25;
104
+ readonly READDIR: 26;
105
+ readonly READLINK: 27;
106
+ readonly REMOVE: 28;
107
+ readonly RENAME: 29;
108
+ readonly RENEW: 30;
109
+ readonly RESTOREFH: 31;
110
+ readonly SAVEFH: 32;
111
+ readonly SECINFO: 33;
112
+ readonly SETATTR: 34;
113
+ readonly SETCLIENTID: 35;
114
+ readonly SETCLIENTID_CONFIRM: 36;
115
+ readonly VERIFY: 37;
116
+ readonly WRITE: 38;
117
+ readonly RELEASE_LOCKOWNER: 39;
118
+ readonly BACKCHANNEL_CTL: 40;
119
+ readonly BIND_CONN_TO_SESSION: 41;
120
+ readonly EXCHANGE_ID: 42;
121
+ readonly CREATE_SESSION: 43;
122
+ readonly DESTROY_SESSION: 44;
123
+ readonly FREE_STATEID: 45;
124
+ readonly GET_DIR_DELEGATION: 46;
125
+ readonly GETDEVICEINFO: 47;
126
+ readonly GETDEVICELIST: 48;
127
+ readonly LAYOUTCOMMIT: 49;
128
+ readonly LAYOUTGET: 50;
129
+ readonly LAYOUTRETURN: 51;
130
+ readonly SECINFO_NO_NAME: 52;
131
+ readonly SEQUENCE: 53;
132
+ readonly SET_SSV: 54;
133
+ readonly TEST_STATEID: 55;
134
+ readonly WANT_DELEGATION: 56;
135
+ readonly DESTROY_CLIENTID: 57;
136
+ readonly RECLAIM_COMPLETE: 58;
137
+ readonly ILLEGAL: 10044;
138
+ };
139
+ /** @internal */
140
+ export interface Nfs4Limits extends DecodeLimits {
141
+ readonly maxRecordBytes: ByteSize.ByteSize;
142
+ readonly maxCompoundBytes: ByteSize.ByteSize;
143
+ readonly maxOperations: number;
144
+ readonly maxBitmapWords: number;
145
+ readonly maxClients: number;
146
+ readonly maxPendingClientReplacements: number;
147
+ readonly maxSessions: number;
148
+ readonly maxSlotsPerSession: number;
149
+ readonly maxReplayBytes: ByteSize.ByteSize;
150
+ readonly maxOpens: number;
151
+ readonly maxLockOwners: number;
152
+ readonly maxLocks: number;
153
+ readonly maxOwnerBytes: ByteSize.ByteSize;
154
+ readonly maxReadBytes: ByteSize.ByteSize;
155
+ readonly maxWriteBytes: ByteSize.ByteSize;
156
+ readonly maxReaddirEntries: number;
157
+ readonly maxReaddirReplyBytes: ByteSize.ByteSize;
158
+ readonly maxNameBytes: ByteSize.ByteSize;
159
+ }
160
+ /** @internal */
161
+ export interface Nfs4Options {
162
+ /** Staged writable-state support; the public export remains read-only until durability is qualified. */
163
+ readonly writable?: boolean;
164
+ readonly leaseDurationSeconds: number;
165
+ /** How long a callback waits for the client's reply before the path is treated as down. */
166
+ readonly callbackTimeout: Duration.Input;
167
+ /** NFS server lifetime used for sessions, state IDs, and server-owner fields. */
168
+ readonly generation: Uint8Array;
169
+ /** Volume storage lifetime used for filehandles, write, and directory-cookie verifiers. */
170
+ readonly storageGeneration?: Uint8Array;
171
+ readonly now: () => number;
172
+ readonly limits: Nfs4Limits;
173
+ /** Resolves a networked request to its VFS caller; null rejects the RPC before dispatch. */
174
+ readonly callerFor?: (call: CompoundCall) => Effect.Effect<Vfs.Caller | null>;
175
+ readonly securityFlavors?: ReadonlyArray<number>;
176
+ }
177
+ /** @internal */
178
+ export interface Nfs4Handler {
179
+ readonly compound: (call: CompoundCall) => Effect.Effect<Uint8Array, RpcPolicyDenied>;
180
+ readonly disconnect: (connection: Connection) => Effect.Effect<void>;
181
+ readonly callbackReply: (connection: Connection, message: Uint8Array) => Effect.Effect<void>;
182
+ /**
183
+ * Sends a CB_SEQUENCE-only CB_COMPOUND down a session's backchannel and reports whether the
184
+ * client answered. Answers `false` when the session has no backchannel to probe.
185
+ */
186
+ readonly probeBackChannel: (session: Uint8Array) => Effect.Effect<boolean>;
187
+ }
188
+ /** @internal */
189
+ export declare const nextSequenceId: (sequence: number) => number;
190
+ /** @internal */
191
+ export declare const failureForFs: (error: Vfs.FsError) => number;
192
+ /** @internal */
193
+ export declare const makeNfs4Handler: (export_: NfsExport, options: Nfs4Options) => Effect.Effect<Nfs4Handler, PlatformError.PlatformError, Scope.Scope | Crypto.Crypto>;
194
+ //# sourceMappingURL=nfs4.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nfs4.d.ts","sourceRoot":"","sources":["../../src/internal/nfs4.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAChE,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,KAAK,aAAa,MAAM,sBAAsB,CAAA;AAI1D,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAG1C,OAAO,EAIL,KAAK,SAAS,EAEf,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAC9E,OAAO,EAAE,KAAK,YAAY,EAAkC,MA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