@happyvertical/smrt-education 0.57.42 → 0.57.44
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/AGENTS.md +12 -0
- package/README.md +5 -0
- package/agents/course-authoring-service.md +179 -0
- package/agents/course-generation-review.md +79 -0
- package/agents/learner-service.md +33 -0
- package/agents/question-records.md +100 -0
- package/dist/chunks/{workbook-photo-service-C6mbUUp6.js → workbook-photo-service-BxvZDqjM.js} +1440 -309
- package/dist/chunks/workbook-photo-service-BxvZDqjM.js.map +1 -0
- package/dist/course-append-only.d.ts +15 -0
- package/dist/course-append-only.d.ts.map +1 -0
- package/dist/course-authoring-contracts.d.ts +464 -0
- package/dist/course-authoring-contracts.d.ts.map +1 -0
- package/dist/course-authoring-licence.d.ts +15 -0
- package/dist/course-authoring-licence.d.ts.map +1 -0
- package/dist/course-authoring-models.d.ts +291 -0
- package/dist/course-authoring-models.d.ts.map +1 -0
- package/dist/course-authoring-service.d.ts +244 -0
- package/dist/course-authoring-service.d.ts.map +1 -0
- package/dist/course-delegation.d.ts +26 -0
- package/dist/course-delegation.d.ts.map +1 -0
- package/dist/course-generation-contracts.d.ts +150 -0
- package/dist/course-generation-contracts.d.ts.map +1 -0
- package/dist/course-generation-models.d.ts +94 -0
- package/dist/course-generation-models.d.ts.map +1 -0
- package/dist/course-generation-output.d.ts +31 -0
- package/dist/course-generation-output.d.ts.map +1 -0
- package/dist/course-generation-proposal-generator.d.ts +94 -0
- package/dist/course-generation-proposal-generator.d.ts.map +1 -0
- package/dist/course-generation-review-service.d.ts +149 -0
- package/dist/course-generation-review-service.d.ts.map +1 -0
- package/dist/course-release-scope.d.ts +37 -0
- package/dist/course-release-scope.d.ts.map +1 -0
- package/dist/course-review-contracts.d.ts +127 -0
- package/dist/course-review-contracts.d.ts.map +1 -0
- package/dist/course-review-digest.d.ts +4 -0
- package/dist/course-review-digest.d.ts.map +1 -0
- package/dist/course-review-evaluation.d.ts +63 -0
- package/dist/course-review-evaluation.d.ts.map +1 -0
- package/dist/course-review-gate.d.ts +15 -0
- package/dist/course-review-gate.d.ts.map +1 -0
- package/dist/course-review-models.d.ts +96 -0
- package/dist/course-review-models.d.ts.map +1 -0
- package/dist/group-sharing-contracts.d.ts +5 -0
- package/dist/group-sharing-contracts.d.ts.map +1 -1
- package/dist/group-sharing-policy.d.ts.map +1 -1
- package/dist/group-sharing-reader.d.ts.map +1 -1
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5658 -116
- package/dist/index.js.map +1 -1
- package/dist/ingestion.js +1 -1
- package/dist/learner-plan-service.d.ts.map +1 -1
- package/dist/learner-service.d.ts +81 -7
- package/dist/learner-service.d.ts.map +1 -1
- package/dist/learners.d.ts +6 -0
- package/dist/learners.d.ts.map +1 -1
- package/dist/manifest.json +14304 -2177
- package/dist/question-authoring-service.d.ts +125 -0
- package/dist/question-authoring-service.d.ts.map +1 -0
- package/dist/question-content.d.ts +25 -0
- package/dist/question-content.d.ts.map +1 -0
- package/dist/question-contracts.d.ts +240 -0
- package/dist/question-contracts.d.ts.map +1 -0
- package/dist/question-models.d.ts +124 -0
- package/dist/question-models.d.ts.map +1 -0
- package/dist/question-render.d.ts +20 -0
- package/dist/question-render.d.ts.map +1 -0
- package/dist/question-response-contracts.d.ts +54 -0
- package/dist/question-response-contracts.d.ts.map +1 -0
- package/dist/question-response-service.d.ts +63 -0
- package/dist/question-response-service.d.ts.map +1 -0
- package/dist/question-rubric.d.ts +23 -0
- package/dist/question-rubric.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +5410 -910
- package/dist/submission-service.d.ts.map +1 -1
- package/dist/submissions.d.ts +5 -0
- package/dist/submissions.d.ts.map +1 -1
- package/dist/workbook-contracts.d.ts +6 -0
- package/dist/workbook-contracts.d.ts.map +1 -1
- package/dist/workbook-models.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/chunks/workbook-photo-service-C6mbUUp6.js.map +0 -1
package/dist/ingestion.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as validateWorkbookAssessment, I as WORKBOOK_MATH_VOCABULARY, L as WorkbookAssessmentValidationError, Q as FamilyIntakeCollection, V as workbookAggregateFeedback, Z as FamilyIntakeAssetCollection, d as WorkbookPhotoIntakeCollection, et as FamilyIntakeDecisionCollection, f as validateWorkbookPhotoIdentification, m as normalizeWorkbookAnswerRegions, n as preservePhotoProposal, p as normalizeWorkbookObservedLayout, r as WorkbookService, s as WorkbookPhotoAssetCollection, t as WorkbookPhotoService, tt as familyIntakeScopeId, v as LearnerAuthorizationError, z as aggregateWorkbookQuestions } from "./chunks/workbook-photo-service-
|
|
1
|
+
import { B as validateWorkbookAssessment, I as WORKBOOK_MATH_VOCABULARY, L as WorkbookAssessmentValidationError, Q as FamilyIntakeCollection, V as workbookAggregateFeedback, Z as FamilyIntakeAssetCollection, d as WorkbookPhotoIntakeCollection, et as FamilyIntakeDecisionCollection, f as validateWorkbookPhotoIdentification, m as normalizeWorkbookAnswerRegions, n as preservePhotoProposal, p as normalizeWorkbookObservedLayout, r as WorkbookService, s as WorkbookPhotoAssetCollection, t as WorkbookPhotoService, tt as familyIntakeScopeId, v as LearnerAuthorizationError, z as aggregateWorkbookQuestions } from "./chunks/workbook-photo-service-BxvZDqjM.js";
|
|
2
2
|
import { getCurrentTenant, withTenant } from "@happyvertical/smrt-tenancy";
|
|
3
3
|
import { withPrivateAssetAccess } from "@happyvertical/smrt-assets";
|
|
4
4
|
import { registerPermissionDefinitions } from "@happyvertical/smrt-users";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"learner-plan-service.d.ts","sourceRoot":"","sources":["../src/learner-plan-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"learner-plan-service.d.ts","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,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;QAC9B,EAAE,EAAE,IAAI,CAAC;QACT,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC,GAAG,IAAI,CAAC;CACX,CAAC,CAAC;AAaH,kFAAkF;AAClF,qBAAa,kBAAmB,SAAQ,qBAAqB;cACxC,wBAAwB,CAAC,EAAE,EAAE,iBAAiB,GAAG,IAAI;IAQlE,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAehE,iBAAiB,CACrB,OAAO,EAAE,cAAc,GAAG;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,GACjD,OAAO,CAAC,kBAAkB,CAAC;CAkH/B"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import type { DatabaseInterface } from '@happyvertical/sql';
|
|
2
|
-
import {
|
|
2
|
+
import type { Course, Lesson } from './catalog.js';
|
|
3
|
+
import { type CatalogAuthorizer, type CatalogProjection } from './catalog-service.js';
|
|
4
|
+
import { type CourseDelegation } from './course-delegation.js';
|
|
3
5
|
import type { Curriculum, Enrollment, Learner, LessonProgress } from './learners.js';
|
|
6
|
+
/** One lesson row an enrollment may work on, with the course row it belongs to. */
|
|
7
|
+
export type EnrollmentLessonEntry = Readonly<{
|
|
8
|
+
lesson: Lesson;
|
|
9
|
+
course: Course;
|
|
10
|
+
}>;
|
|
11
|
+
/** Course display row plus every lesson that applies to an enrollment, in order. */
|
|
12
|
+
export type EnrollmentLessonScope = Readonly<{
|
|
13
|
+
course: Course;
|
|
14
|
+
entries: ReadonlyArray<EnrollmentLessonEntry>;
|
|
15
|
+
}>;
|
|
4
16
|
/** Inputs are identifiers, never an authority claim or model patch. */
|
|
5
17
|
export interface LearnerRequest {
|
|
6
18
|
tenantId: string;
|
|
@@ -8,6 +20,13 @@ export interface LearnerRequest {
|
|
|
8
20
|
learnerId: string;
|
|
9
21
|
guardianRelationshipId?: string;
|
|
10
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Delegated-agent claim for assignment (`enroll` only). The actor is the agent;
|
|
25
|
+
* the guardian relationship and membership checked are the DELEGATING guardian's,
|
|
26
|
+
* never the agent's. Both members are required together and the guardian cannot
|
|
27
|
+
* be the agent. The host authorizer still decides whether the agent may act.
|
|
28
|
+
*/
|
|
29
|
+
export type LearnerDelegationRequest = Partial<CourseDelegation>;
|
|
11
30
|
/** A host-owned onboarding probe; it exposes no learner or relationship data. */
|
|
12
31
|
export interface LearnerSetupStatusRequest {
|
|
13
32
|
tenantId: string;
|
|
@@ -17,13 +36,45 @@ export interface LearnerSetupStatusRequest {
|
|
|
17
36
|
export type LearnerSetupStatus = Readonly<{
|
|
18
37
|
needsSetup: boolean;
|
|
19
38
|
}>;
|
|
39
|
+
/** Result of the host delegation check; a bare boolean is accepted as well. */
|
|
40
|
+
export type LearnerDelegationDecision = boolean | {
|
|
41
|
+
allowed: boolean;
|
|
42
|
+
reason?: string;
|
|
43
|
+
code?: string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Host port proving that this agent may assign for this guardian under this
|
|
47
|
+
* delegation id. Required for delegated `enroll`: without it, or when it denies
|
|
48
|
+
* or throws, the request is refused before the learner authorizer is consulted.
|
|
49
|
+
*/
|
|
50
|
+
export type LearnerDelegationVerifier = (executor: DatabaseInterface, request: {
|
|
51
|
+
tenantId: string;
|
|
52
|
+
actorUserId: string;
|
|
53
|
+
delegatingGuardianUserId: string;
|
|
54
|
+
delegationId: string;
|
|
55
|
+
learnerId: string;
|
|
56
|
+
courseId?: string;
|
|
57
|
+
/** Which operation is being delegated; absent only from older callers. */
|
|
58
|
+
operation?: 'create-curriculum' | 'enroll';
|
|
59
|
+
}) => LearnerDelegationDecision | Promise<LearnerDelegationDecision>;
|
|
60
|
+
export interface LearnerServiceOptions {
|
|
61
|
+
verifyDelegation?: LearnerDelegationVerifier;
|
|
62
|
+
}
|
|
20
63
|
/** The host validates relationship type/terms and its own permission policy. */
|
|
21
64
|
export type LearnerAuthorizer = (request: LearnerRequest & {
|
|
22
65
|
/** The active service executor; host policy reads must share its transaction. */
|
|
23
66
|
executor: DatabaseInterface;
|
|
24
|
-
action: 'education.learner.read' | 'education.learner.plan' | 'education.learner.start' | 'education.learner.submit' | 'education.learner.grade' | 'education.learner.packet' | 'education.learner.notes.read' | 'education.learner.notes.add' | 'education.learner.complete' | 'education.learner.setup';
|
|
67
|
+
action: 'education.learner.read' | 'education.learner.plan' | 'education.learner.start' | 'education.learner.submit' | 'education.learner.grade' | 'education.learner.packet' | 'education.learner.notes.read' | 'education.learner.notes.add' | 'education.learner.complete' | 'education.learner.respond' | 'education.learner.review-response' | 'education.learner.setup';
|
|
25
68
|
own: boolean;
|
|
26
69
|
relationshipTypeId?: string;
|
|
70
|
+
/** True only for a delegated assignment; `relationshipTypeId` is then undefined. */
|
|
71
|
+
delegated?: boolean;
|
|
72
|
+
/** Delegated assignment only: the DELEGATING guardian's verified relationship type. */
|
|
73
|
+
delegatingRelationshipTypeId?: string;
|
|
74
|
+
/** Delegated assignment only: the guardian whose live relationship was verified. */
|
|
75
|
+
delegatingGuardianUserId?: string;
|
|
76
|
+
/** Delegated assignment only: the host's opaque delegation id. */
|
|
77
|
+
delegationId?: string;
|
|
27
78
|
/** Present only for the setup-status probe; it is not a relationship grant. */
|
|
28
79
|
learnerUserId?: string;
|
|
29
80
|
}) => boolean | Promise<boolean>;
|
|
@@ -70,6 +121,7 @@ export declare class LearnerService {
|
|
|
70
121
|
protected readonly db: DatabaseInterface;
|
|
71
122
|
protected readonly authorize: LearnerAuthorizer;
|
|
72
123
|
protected readonly authorizeCatalog: CatalogAuthorizer;
|
|
124
|
+
protected readonly learnerOptions: LearnerServiceOptions;
|
|
73
125
|
private transactionState;
|
|
74
126
|
private writeFailure;
|
|
75
127
|
private writeTail;
|
|
@@ -78,7 +130,7 @@ export declare class LearnerService {
|
|
|
78
130
|
private postgres;
|
|
79
131
|
/** A trusted host transaction; capture/storage is forbidden on this scope. */
|
|
80
132
|
protected executorBorrowed: boolean;
|
|
81
|
-
constructor(db: DatabaseInterface, authorize: LearnerAuthorizer, authorizeCatalog: CatalogAuthorizer);
|
|
133
|
+
constructor(db: DatabaseInterface, authorize: LearnerAuthorizer, authorizeCatalog: CatalogAuthorizer, learnerOptions?: LearnerServiceOptions);
|
|
82
134
|
/** Compose planning/start operations atomically using the callback's service. */
|
|
83
135
|
withTransaction<T>(operation: (service: this) => Promise<T>): Promise<T>;
|
|
84
136
|
/**
|
|
@@ -99,7 +151,10 @@ export declare class LearnerService {
|
|
|
99
151
|
protected mutate<T>(operation: (service: this) => Promise<T>): Promise<T>;
|
|
100
152
|
/** Prevent escaped transaction-scoped services from using a released executor. */
|
|
101
153
|
protected assertServiceOpen(): void;
|
|
102
|
-
protected requireActor(request: LearnerRequest, action: Parameters<LearnerAuthorizer>[0]['action']
|
|
154
|
+
protected requireActor(request: LearnerRequest, action: Parameters<LearnerAuthorizer>[0]['action'], delegation?: (CourseDelegation & {
|
|
155
|
+
courseId?: string;
|
|
156
|
+
operation?: 'create-curriculum' | 'enroll';
|
|
157
|
+
}) | null): Promise<Learner>;
|
|
103
158
|
getLearner(request: LearnerRequest): Promise<LearnerView>;
|
|
104
159
|
/**
|
|
105
160
|
* Checks whether an active tenant member still needs a Learner row.
|
|
@@ -123,12 +178,31 @@ export declare class LearnerService {
|
|
|
123
178
|
displayName: string;
|
|
124
179
|
level?: number;
|
|
125
180
|
}): Promise<LearnerView>;
|
|
126
|
-
|
|
181
|
+
/**
|
|
182
|
+
* Creates a planned curriculum. A delegated agent passes
|
|
183
|
+
* `delegatingGuardianUserId` + `delegationId` (as for `enroll`); the new
|
|
184
|
+
* curriculum then also appends one `CurriculumCreationRecord`.
|
|
185
|
+
*/
|
|
186
|
+
createCurriculum(request: LearnerRequest & LearnerDelegationRequest & {
|
|
127
187
|
title: string;
|
|
128
188
|
}): Promise<CurriculumView>;
|
|
129
|
-
protected catalog(request: LearnerRequest, courseId: string): Promise<
|
|
189
|
+
protected catalog(request: LearnerRequest, courseId: string): Promise<CatalogProjection>;
|
|
190
|
+
/**
|
|
191
|
+
* The lessons that apply to an authorized enrollment. An unpinned enrollment
|
|
192
|
+
* reads its own course, exactly as before. A pinned one reads the effective
|
|
193
|
+
* set shared with `CourseAuthoringService.getEnrollmentRelease`: started
|
|
194
|
+
* lessons stay on their original immutable rows, the rest follow the current
|
|
195
|
+
* release. Every course row is still authorized through the catalog.
|
|
196
|
+
*/
|
|
197
|
+
protected lessonScope(request: LearnerRequest, enrollment: Enrollment): Promise<EnrollmentLessonScope>;
|
|
198
|
+
protected lessonInScope(request: LearnerRequest, enrollment: Enrollment, lessonId: string): Promise<boolean>;
|
|
130
199
|
protected lock(table: 'curricula' | 'enrollments', id: string, tenant: string): Promise<void>;
|
|
131
|
-
|
|
200
|
+
/**
|
|
201
|
+
* Creates (or returns) the enrollment that assigns a course to a learner. A
|
|
202
|
+
* delegated agent passes `delegatingGuardianUserId` + `delegationId`; a new
|
|
203
|
+
* delegated enrollment also appends an `EnrollmentAssignmentRecord`.
|
|
204
|
+
*/
|
|
205
|
+
enroll(request: LearnerRequest & LearnerDelegationRequest & {
|
|
132
206
|
curriculumId: string;
|
|
133
207
|
courseId: string;
|
|
134
208
|
}): Promise<EnrollmentView>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"learner-service.d.ts","sourceRoot":"","sources":["../src/learner-service.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"learner-service.d.ts","sourceRoot":"","sources":["../src/learner-service.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EACL,KAAK,iBAAiB,EACtB,KA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,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAWzE;;;OAGG;IACG,WAAW,CACf,OAAO,EAAE,cAAc,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CACR,aAAa,CAAC;QACZ,UAAU,EAAE,cAAc,CAAC;QAC3B,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAAC;QACpC,MAAM,EAAE;YACN,EAAE,EAAE,MAAM,CAAC;YACX,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;YACb,sBAAsB,EAAE,OAAO,CAAC;SACjC,CAAC;KACH,CAAC,CACH;IAgED,qEAAqE;IAC/D,iBAAiB,CACrB,OAAO,EAAE,cAAc,GAAG;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,GACjD,OAAO,CACR,aAAa,CAAC;QACZ,UAAU,EAAE,cAAc,CAAC;QAC3B,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAAC;QACpC,MAAM,EAAE;YACN,EAAE,EAAE,MAAM,CAAC;YACX,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;YACb,sBAAsB,EAAE,OAAO,CAAC;SACjC,CAAC;KACH,CAAC,CACH;IAoCD,0FAA0F;IACpF,WAAW,CACf,OAAO,EAAE,cAAc,GAAG;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GACnE,OAAO,CAAC,kBAAkB,CAAC;CAuC/B"}
|
package/dist/learners.d.ts
CHANGED
|
@@ -53,6 +53,12 @@ export declare class LessonProgress extends SmrtObject {
|
|
|
53
53
|
attempts: number;
|
|
54
54
|
bestScore: number | null;
|
|
55
55
|
constructor(options?: Record<string, unknown>);
|
|
56
|
+
/**
|
|
57
|
+
* A pinned enrollment may follow a later release, whose lessons live on that
|
|
58
|
+
* release's own materialized Course row. Hosts that have not migrated the
|
|
59
|
+
* authoring tables keep the strict enrollment-course rule.
|
|
60
|
+
*/
|
|
61
|
+
private inPinnedRelease;
|
|
56
62
|
save(options?: SmrtSaveOptions): Promise<this>;
|
|
57
63
|
}
|
|
58
64
|
//# sourceMappingURL=learners.d.ts.map
|
package/dist/learners.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"learners.d.ts","sourceRoot":"","sources":["../src/learners.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EACV,KAAK,eAAe,EAErB,MAAM,0BAA0B,CAAC;AAiClC,+EAA+E;AAC/E,qBAEa,OAAQ,SAAQ,UAAU;IACzB,QAAQ,SAAM;IAE1B,MAAM,SAAM;IAEZ,SAAS,SAAM;IACf,WAAW,SAAM;IACjB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAQ;IAC9B,KAAK,SAAK;IACV,QAAQ,SAAQ;gBAEJ,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;IAKjD,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAatC,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMlC,IAAI,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;CA6B9D;AAED,0DAA0D;AAC1D,qBAEa,UAAW,SAAQ,UAAU;IAC5B,QAAQ,SAAM;IACiB,SAAS,SAAM;IAC/B,KAAK,SAAM;IACtC,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAQ;IAC7B,MAAM,EAAE,IAAI,GAAG,IAAI,CAAQ;IAC3B,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAa;gBACxD,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;IAIlC,IAAI,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;CAY9D;AAED,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT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