mindoodb 0.0.60 → 0.0.63
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.
- package/README-server.md +13 -3
- package/README.md +1 -0
- package/dist/appendonlystores/network/ClientNetworkContentAddressedStore.d.ts.map +1 -1
- package/dist/appendonlystores/network/ClientNetworkContentAddressedStore.js +41 -5
- package/dist/appendonlystores/network/ClientNetworkContentAddressedStore.js.map +1 -1
- package/dist/core/BaseMindooTenant.d.ts +9 -2
- package/dist/core/BaseMindooTenant.d.ts.map +1 -1
- package/dist/core/BaseMindooTenant.js +102 -11
- package/dist/core/BaseMindooTenant.js.map +1 -1
- package/dist/core/appendonlystores/network/IrohNetworkTransport.d.ts +29 -0
- package/dist/core/appendonlystores/network/IrohNetworkTransport.d.ts.map +1 -1
- package/dist/core/appendonlystores/network/IrohNetworkTransport.js +204 -25
- package/dist/core/appendonlystores/network/IrohNetworkTransport.js.map +1 -1
- package/dist/core/appendonlystores/network/IrohStreamIO.d.ts +30 -1
- package/dist/core/appendonlystores/network/IrohStreamIO.d.ts.map +1 -1
- package/dist/core/appendonlystores/network/IrohStreamIO.js +43 -11
- package/dist/core/appendonlystores/network/IrohStreamIO.js.map +1 -1
- package/dist/core/appendonlystores/syncStores.d.ts.map +1 -1
- package/dist/core/appendonlystores/syncStores.js +20 -3
- package/dist/core/appendonlystores/syncStores.js.map +1 -1
- package/dist/core/types.d.ts +21 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/iroh/index.d.ts +5 -1
- package/dist/iroh/index.d.ts.map +1 -1
- package/dist/iroh/index.js +4 -0
- package/dist/iroh/index.js.map +1 -1
- package/dist/iroh/node.d.ts +26 -0
- package/dist/iroh/node.d.ts.map +1 -0
- package/dist/iroh/node.js +27 -0
- package/dist/iroh/node.js.map +1 -0
- package/dist/node/server/IrohServerEndpoint.d.ts +5 -0
- package/dist/node/server/IrohServerEndpoint.d.ts.map +1 -1
- package/dist/node/server/IrohServerEndpoint.js +14 -104
- package/dist/node/server/IrohServerEndpoint.js.map +1 -1
- package/dist/node/server/IrohServerRpc.d.ts +57 -0
- package/dist/node/server/IrohServerRpc.d.ts.map +1 -1
- package/dist/node/server/IrohServerRpc.js +422 -5
- package/dist/node/server/IrohServerRpc.js.map +1 -1
- package/dist/node/server/MindooDBServer.d.ts +3 -0
- package/dist/node/server/MindooDBServer.d.ts.map +1 -1
- package/dist/node/server/MindooDBServer.js +36 -0
- package/dist/node/server/MindooDBServer.js.map +1 -1
- package/dist/node/server/nativeIrohStreamIO.d.ts +13 -0
- package/dist/node/server/nativeIrohStreamIO.d.ts.map +1 -0
- package/dist/node/server/nativeIrohStreamIO.js +259 -0
- package/dist/node/server/nativeIrohStreamIO.js.map +1 -0
- package/dist/node/server/peer/ClusterManager.d.ts +6 -0
- package/dist/node/server/peer/ClusterManager.d.ts.map +1 -1
- package/dist/node/server/peer/ClusterManager.js +1 -0
- package/dist/node/server/peer/ClusterManager.js.map +1 -1
- package/dist/node/server/peer/IrohPeerLink.d.ts +24 -0
- package/dist/node/server/peer/IrohPeerLink.d.ts.map +1 -0
- package/dist/node/server/peer/IrohPeerLink.js +115 -0
- package/dist/node/server/peer/IrohPeerLink.js.map +1 -0
- package/dist/node/server/peer/PeerReplicator.d.ts +9 -0
- package/dist/node/server/peer/PeerReplicator.d.ts.map +1 -1
- package/dist/node/server/peer/PeerReplicator.js +103 -6
- package/dist/node/server/peer/PeerReplicator.js.map +1 -1
- package/dist/node/server/types.d.ts +5 -3
- package/dist/node/server/types.d.ts.map +1 -1
- package/dist/node/server/types.js.map +1 -1
- package/package.json +7 -1
- package/scripts/iroh-live-test-server.mjs +30 -0
- package/scripts/iroh-live-test-server.ts +61 -0
- package/scripts/iroh-multistream-spike.mjs +113 -0
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IrohServerEndpoint = void 0;
|
|
4
|
-
const fs_1 = require("fs");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const crypto_1 = require("crypto");
|
|
7
4
|
const IrohNetworkTransport_1 = require("../../core/appendonlystores/network/IrohNetworkTransport");
|
|
8
5
|
const IrohStreamIO_1 = require("../../core/appendonlystores/network/IrohStreamIO");
|
|
6
|
+
const nativeIrohStreamIO_1 = require("./nativeIrohStreamIO");
|
|
9
7
|
/**
|
|
10
8
|
* Optional native Iroh listen loop. `@number0/iroh` is loaded dynamically so
|
|
11
9
|
* tests and HTTP-only installs do not need the N-API binary.
|
|
@@ -13,27 +11,34 @@ const IrohStreamIO_1 = require("../../core/appendonlystores/network/IrohStreamIO
|
|
|
13
11
|
class IrohServerEndpoint {
|
|
14
12
|
constructor() {
|
|
15
13
|
this.stop = null;
|
|
14
|
+
this.io = null;
|
|
16
15
|
this.status = { enabled: false };
|
|
17
16
|
}
|
|
18
17
|
getStatus() {
|
|
19
18
|
return this.status;
|
|
20
19
|
}
|
|
20
|
+
/** The bound native endpoint, or `null` until listen succeeds. */
|
|
21
|
+
getStreamIO() {
|
|
22
|
+
return this.io;
|
|
23
|
+
}
|
|
21
24
|
async start(options) {
|
|
22
25
|
await this.stopListening();
|
|
23
26
|
if (!options.config.enabled) {
|
|
24
27
|
this.status = { enabled: false };
|
|
25
28
|
return this.status;
|
|
26
29
|
}
|
|
27
|
-
const io = await createNativeIrohStreamIO(options.dataDir, options.config);
|
|
30
|
+
const io = await (0, nativeIrohStreamIO_1.createNativeIrohStreamIO)(options.dataDir, options.config);
|
|
31
|
+
this.io = io;
|
|
28
32
|
const abort = new AbortController();
|
|
29
|
-
const
|
|
33
|
+
const listenDone = (0, IrohNetworkTransport_1.listenForIrohPeers)(io, options.handler, { signal: abort.signal }).catch((error) => {
|
|
34
|
+
console.error("[Iroh] listen loop failed:", error);
|
|
35
|
+
});
|
|
30
36
|
this.stop = async () => {
|
|
31
37
|
abort.abort();
|
|
38
|
+
this.io = null;
|
|
32
39
|
await io.close?.();
|
|
40
|
+
await listenDone;
|
|
33
41
|
};
|
|
34
|
-
void listen.catch((error) => {
|
|
35
|
-
console.error("[Iroh] listen loop failed:", error);
|
|
36
|
-
});
|
|
37
42
|
const ticket = await io.getLocalTicket();
|
|
38
43
|
this.status = {
|
|
39
44
|
enabled: true,
|
|
@@ -53,104 +58,9 @@ class IrohServerEndpoint {
|
|
|
53
58
|
console.error("[Iroh] stop failed:", error);
|
|
54
59
|
});
|
|
55
60
|
}
|
|
61
|
+
this.io = null;
|
|
56
62
|
this.status = { enabled: false };
|
|
57
63
|
}
|
|
58
64
|
}
|
|
59
65
|
exports.IrohServerEndpoint = IrohServerEndpoint;
|
|
60
|
-
async function createNativeIrohStreamIO(dataDir, config) {
|
|
61
|
-
let iroh;
|
|
62
|
-
try {
|
|
63
|
-
iroh = await import("@number0/iroh");
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
throw new Error("Iroh is enabled in config.json but @number0/iroh is missing from the server image. " +
|
|
67
|
-
"Rebuild with ./serversetup.sh --update " +
|
|
68
|
-
`(${error instanceof Error ? error.message : String(error)}).`);
|
|
69
|
-
}
|
|
70
|
-
const secretBytes = loadOrCreateIrohSecret(dataDir, config.secretKeyPath);
|
|
71
|
-
const alpn = Array.from(Buffer.from(IrohStreamIO_1.MINDOODB_IROH_ALPN));
|
|
72
|
-
const secretKey = createSecretKey(iroh, secretBytes);
|
|
73
|
-
const endpoint = (await iroh.Endpoint.bind({
|
|
74
|
-
alpns: [alpn],
|
|
75
|
-
secretKey,
|
|
76
|
-
}));
|
|
77
|
-
const ticket = iroh.EndpointTicket.fromAddr(endpoint.addr()).toString();
|
|
78
|
-
const endpointId = endpoint.id().toString();
|
|
79
|
-
return {
|
|
80
|
-
endpointId,
|
|
81
|
-
async getLocalTicket() {
|
|
82
|
-
return ticket;
|
|
83
|
-
},
|
|
84
|
-
async connect(peerTicket, protocolAlpn) {
|
|
85
|
-
const addr = iroh.EndpointTicket.fromString(peerTicket).endpointAddr();
|
|
86
|
-
const conn = await endpoint.connect(addr, protocolAlpn ? Array.from(Buffer.from(protocolAlpn)) : alpn);
|
|
87
|
-
const bi = await conn.openBi();
|
|
88
|
-
return wrapNativeBiStream(bi);
|
|
89
|
-
},
|
|
90
|
-
async *listen() {
|
|
91
|
-
const acceptNext = endpoint.acceptNext.bind(endpoint);
|
|
92
|
-
while (true) {
|
|
93
|
-
const incoming = await acceptNext();
|
|
94
|
-
const connecting = await incoming.accept();
|
|
95
|
-
const conn = await connecting.connect();
|
|
96
|
-
const bi = await conn.acceptBi();
|
|
97
|
-
yield wrapNativeBiStream(bi);
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
async close() {
|
|
101
|
-
await endpoint.close();
|
|
102
|
-
},
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
function wrapNativeBiStream(bi) {
|
|
106
|
-
return (0, IrohStreamIO_1.wrapLengthPrefixedByteStream)({
|
|
107
|
-
async write(bytes) {
|
|
108
|
-
await bi.send.writeAll(bytes);
|
|
109
|
-
},
|
|
110
|
-
async read(max) {
|
|
111
|
-
if (typeof bi.recv.read === "function") {
|
|
112
|
-
const chunk = await bi.recv.read(max);
|
|
113
|
-
return chunk ? toUint8Array(chunk) : null;
|
|
114
|
-
}
|
|
115
|
-
const chunk = await bi.recv.readToEnd?.(max);
|
|
116
|
-
return chunk ? toUint8Array(chunk) : null;
|
|
117
|
-
},
|
|
118
|
-
async close() {
|
|
119
|
-
await bi.send.finish().catch(() => undefined);
|
|
120
|
-
},
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
function toUint8Array(value) {
|
|
124
|
-
return value instanceof Uint8Array ? value : new Uint8Array(value);
|
|
125
|
-
}
|
|
126
|
-
function createSecretKey(iroh, secretBytes) {
|
|
127
|
-
const SecretKey = iroh.SecretKey;
|
|
128
|
-
if (typeof SecretKey?.fromBytes === "function") {
|
|
129
|
-
return SecretKey.fromBytes(secretBytes);
|
|
130
|
-
}
|
|
131
|
-
if (typeof SecretKey?.fromString === "function") {
|
|
132
|
-
return SecretKey.fromString(Buffer.from(secretBytes).toString("hex"));
|
|
133
|
-
}
|
|
134
|
-
throw new Error("@number0/iroh SecretKey.fromBytes is not available");
|
|
135
|
-
}
|
|
136
|
-
function loadOrCreateIrohSecret(dataDir, configuredPath) {
|
|
137
|
-
const filePath = configuredPath
|
|
138
|
-
? (0, path_1.isAbsolute)(configuredPath)
|
|
139
|
-
? configuredPath
|
|
140
|
-
: (0, path_1.join)(dataDir, configuredPath)
|
|
141
|
-
: (0, path_1.join)(dataDir, "iroh-secret.key");
|
|
142
|
-
if ((0, fs_1.existsSync)(filePath)) {
|
|
143
|
-
const raw = (0, fs_1.readFileSync)(filePath, "utf-8").trim();
|
|
144
|
-
const bytes = Buffer.from(raw, raw.length === 64 ? "hex" : "base64");
|
|
145
|
-
if (bytes.length !== 32) {
|
|
146
|
-
throw new Error(`Iroh secret key at ${filePath} must be 32 bytes`);
|
|
147
|
-
}
|
|
148
|
-
return new Uint8Array(bytes);
|
|
149
|
-
}
|
|
150
|
-
const bytes = (0, crypto_1.randomBytes)(32);
|
|
151
|
-
(0, fs_1.mkdirSync)((0, path_1.dirname)(filePath), { recursive: true });
|
|
152
|
-
(0, fs_1.writeFileSync)(filePath, bytes.toString("hex"), { encoding: "utf-8", mode: 0o600 });
|
|
153
|
-
console.log(`[Iroh] Wrote new secret key to ${filePath}`);
|
|
154
|
-
return new Uint8Array(bytes);
|
|
155
|
-
}
|
|
156
66
|
//# sourceMappingURL=IrohServerEndpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IrohServerEndpoint.js","sourceRoot":"","sources":["../../../src/node/server/IrohServerEndpoint.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"IrohServerEndpoint.js","sourceRoot":"","sources":["../../../src/node/server/IrohServerEndpoint.ts"],"names":[],"mappings":";;;AAAA,mGAGkE;AAClE,mFAAsF;A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AC;QACF,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,cAAc,EAAE,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG;YACZ,OAAO,EAAE,IAAI;YACb,MAAM;YACN,UAAU,EAAE,EAAE,CAAC,UAAU;SAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,4BAA4B,iCAAkB,EAAE,CAAC,CAAC;QAC9D,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,CAAC,MAAM,CAAC,UAAU,IAAI,WAAW,EAAE,CAAC,CAAC;QAC5E,OAAO,CAAC,GAAG,CAAC,kBAAkB,MAAM,EAAE,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;YACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,MAAM,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBAC3B,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;YAC9C,CAAC,CAAC,CAAC;QACL,CAAC;QACD,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACnC,CAAC;CACF;AA9DD,gDA8DC"}
|
|
@@ -2,6 +2,18 @@ import { StoreKind } from "../../core/appendonlystores/types";
|
|
|
2
2
|
import type { IrohRpcHandler } from "../../core/appendonlystores/network/IrohNetworkTransport";
|
|
3
3
|
import type { MindooDBServerInfo } from "../../core/types";
|
|
4
4
|
import { ValidationError } from "./validation";
|
|
5
|
+
import type { RegisterTenantRequest } from "./types";
|
|
6
|
+
import type { SyncEventBus } from "./SyncEventBus";
|
|
7
|
+
import type { PeerTokenPayload } from "./peer/PeerAuthService";
|
|
8
|
+
import type { SystemAdminTokenPayload } from "./SystemAdminAuth";
|
|
9
|
+
/** QUIC idle timeout is ~30s; keep the feed alive below that. */
|
|
10
|
+
export declare const IROH_CHANGE_FEED_HEARTBEAT_MS = 20000;
|
|
11
|
+
export declare const IROH_CHANGE_FEED_HEARTBEAT: {
|
|
12
|
+
readonly type: "heartbeat";
|
|
13
|
+
};
|
|
14
|
+
/** Unauthenticated `peer.challenge` / `peer.authenticate` window. */
|
|
15
|
+
export declare const IROH_PEER_UNAUTH_WINDOW_MS = 60000;
|
|
16
|
+
export declare const IROH_PEER_UNAUTH_MAX = 30;
|
|
5
17
|
export interface IrohServerAuthService {
|
|
6
18
|
generateChallenge(username?: string, options?: {
|
|
7
19
|
signingPublicKey?: string;
|
|
@@ -32,6 +44,41 @@ export interface IrohServerStore {
|
|
|
32
44
|
handlePlanDocumentMaterializationBatch(token: string, docIds: string[], options?: unknown): Promise<unknown>;
|
|
33
45
|
handlePlanAttachmentReadByWalkingMetadata(token: string, lastChunkId: string, attachmentSize: number, options: unknown): Promise<unknown>;
|
|
34
46
|
}
|
|
47
|
+
export interface IrohPeerAuthHost {
|
|
48
|
+
generateChallenge(publicsignkey: string): Promise<string>;
|
|
49
|
+
authenticate(challenge: string, signature: Uint8Array): Promise<{
|
|
50
|
+
success: boolean;
|
|
51
|
+
token?: string;
|
|
52
|
+
error?: string;
|
|
53
|
+
}>;
|
|
54
|
+
validateToken(token: string): Promise<PeerTokenPayload | null>;
|
|
55
|
+
}
|
|
56
|
+
export interface IrohPeerClusterHost {
|
|
57
|
+
recordPeerIntersection(peerName: string, tenantIds: string[]): void;
|
|
58
|
+
peerMaySeeTenant(peerName: string, tenantId: string): boolean;
|
|
59
|
+
listTenants(): string[];
|
|
60
|
+
listDatabases(tenantId: string): string[];
|
|
61
|
+
requestSync(peerName: string, scope?: {
|
|
62
|
+
tenantId?: string;
|
|
63
|
+
dbId?: string;
|
|
64
|
+
}): void;
|
|
65
|
+
}
|
|
66
|
+
export interface IrohSystemAdminHost {
|
|
67
|
+
generateChallenge(username: string, publicsignkey: string): Promise<string>;
|
|
68
|
+
authenticate(challenge: string, signature: Uint8Array): Promise<{
|
|
69
|
+
success: boolean;
|
|
70
|
+
token?: string;
|
|
71
|
+
error?: string;
|
|
72
|
+
}>;
|
|
73
|
+
validateToken(token: string): Promise<SystemAdminTokenPayload | null>;
|
|
74
|
+
isAuthorized(method: string, path: string, username: string, publicsignkey: string): boolean;
|
|
75
|
+
registerTenant(request: RegisterTenantRequest): Promise<{
|
|
76
|
+
created: boolean;
|
|
77
|
+
context: {
|
|
78
|
+
tenantId: string;
|
|
79
|
+
};
|
|
80
|
+
}>;
|
|
81
|
+
}
|
|
35
82
|
export interface IrohServerRpcHost {
|
|
36
83
|
getServerPublicInfo(): MindooDBServerInfo | null;
|
|
37
84
|
getJsonBodyLimit?: () => {
|
|
@@ -42,11 +89,21 @@ export interface IrohServerRpcHost {
|
|
|
42
89
|
listTenantPublicInfosFingerprints(tenantId: string): Promise<string[]>;
|
|
43
90
|
getAuthService(tenantId: string): Promise<IrohServerAuthService>;
|
|
44
91
|
getServerStore(tenantId: string, dbId: string, storeKind: StoreKind): Promise<IrohServerStore>;
|
|
92
|
+
syncEventBus?: SyncEventBus;
|
|
93
|
+
peerAuth?: IrohPeerAuthHost;
|
|
94
|
+
peerCluster?: IrohPeerClusterHost;
|
|
95
|
+
systemAdmin?: IrohSystemAdminHost;
|
|
96
|
+
getPeerUnauthRateLimit?: () => {
|
|
97
|
+
windowMs: number;
|
|
98
|
+
max: number;
|
|
99
|
+
};
|
|
45
100
|
}
|
|
46
101
|
/**
|
|
47
102
|
* Inverse of {@link IrohNetworkTransport}: same method names, same args.
|
|
48
103
|
* Discovery methods are unauthenticated, matching `/.well-known/*`.
|
|
49
104
|
*/
|
|
50
105
|
export declare function createMindooDBServerIrohHandler(host: IrohServerRpcHost): IrohRpcHandler;
|
|
106
|
+
/** Test hook: drop recorded unauthenticated peer hits. */
|
|
107
|
+
export declare function resetIrohPeerUnauthLimiter(): void;
|
|
51
108
|
export declare function isIrohValidationError(error: unknown): error is ValidationError;
|
|
52
109
|
//# sourceMappingURL=IrohServerRpc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IrohServerRpc.d.ts","sourceRoot":"","sources":["../../../src/node/server/IrohServerRpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"IrohServerRpc.d.ts","sourceRoot":"","sources":["../../../src/node/server/IrohServerRpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA4B,MAAM,mCAAmC,CAAC;AAExF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAE/F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAML,eAAe,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,iEAAiE;AACjE,eAAO,MAAM,6BAA6B,QAAS,CAAC;AAEpD,eAAO,MAAM,0BAA0B;;CAAiC,CAAC;AAEzE,qEAAqE;AACrE,eAAO,MAAM,0BAA0B,QAAS,CAAC;AACjD,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAIvC,MAAM,WAAW,qBAAqB;IACpC,iBAAiB,CACf,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE,GACtC,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB,YAAY,CACV,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,UAAU,GACpB,OAAO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