@corsa-labs/sdk 4.25.0 → 4.26.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.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/models/ConditionResultDto.d.ts +1 -1
- package/dist/models/TransactionEvaluationRecordDto.d.ts +84 -0
- package/dist/models/TransactionEvaluationRecordDto.js +15 -0
- package/dist/models/TransactionEvaluationRecordDto.js.map +1 -0
- package/dist/models/TransactionEvaluationsResponseDto.d.ts +20 -0
- package/dist/models/TransactionEvaluationsResponseDto.js +3 -0
- package/dist/models/TransactionEvaluationsResponseDto.js.map +1 -0
- package/dist/services/EvaluationService.d.ts +21 -0
- package/dist/services/EvaluationService.js +44 -0
- package/dist/services/EvaluationService.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export type { SumsubVerificationDto } from './models/SumsubVerificationDto';
|
|
|
77
77
|
export type { SumsubVerificationImageDto } from './models/SumsubVerificationImageDto';
|
|
78
78
|
export type { TransactionAmountDto } from './models/TransactionAmountDto';
|
|
79
79
|
export type { TransactionCustomFieldDto } from './models/TransactionCustomFieldDto';
|
|
80
|
+
export type { TransactionEvaluationsResponseDto } from './models/TransactionEvaluationsResponseDto';
|
|
80
81
|
export type { TransactionIntegrationsDto } from './models/TransactionIntegrationsDto';
|
|
81
82
|
export type { TransactionSourceOrDestinationClientDto } from './models/TransactionSourceOrDestinationClientDto';
|
|
82
83
|
export type { TransactionSourceOrDestinationDto } from './models/TransactionSourceOrDestinationDto';
|
|
@@ -149,6 +150,7 @@ export { RuleMatchDto } from './models/RuleMatchDto';
|
|
|
149
150
|
export { RuleResponseDto } from './models/RuleResponseDto';
|
|
150
151
|
export { TradeOperationDto } from './models/TradeOperationDto';
|
|
151
152
|
export { TransactionDto } from './models/TransactionDto';
|
|
153
|
+
export { TransactionEvaluationRecordDto } from './models/TransactionEvaluationRecordDto';
|
|
152
154
|
export { TransactionStatusDto } from './models/TransactionStatusDto';
|
|
153
155
|
export { UpdateAlertDto } from './models/UpdateAlertDto';
|
|
154
156
|
export { UpdateAttachmentDto } from './models/UpdateAttachmentDto';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateTransactionDto = exports.CreateTradeOperationDto = exports.CreateOrUpdateRiskDto = exports.CreateIndividualMemberDto = exports.CreateIndividualClientDto = exports.CreateIdentityDocumentDto = exports.CreateExternalDocumentDto = exports.CreateCorporateMemberDto = exports.CreateCorporateClientDto = exports.CreateChecklistTemplateItemDto = exports.CreateChecklistTemplateDto = exports.CreateCaseDto = exports.CreateBankAccountDto = exports.CreateAlertDto = exports.CorporateMemberDto = exports.CorporateClientSourceOfFundsDto = exports.CorporateClientPEPDto = exports.CorporateClientDto = exports.CorporateClientCustomFieldDataDto = exports.CorporateClientBusinessDto = exports.CorporateClientAdverseMediaDto = exports.ConditionDto = exports.ClientBlockchainWalletRelationDto = exports.ClientBankAccountRelationDto = exports.ClientAssociatedToBlockchainWalletDto = exports.ClientAssociatedToAccountDto = exports.ChecklistTemplateResponseDto = exports.ChecklistTemplateItemResponseDto = exports.ChecklistResponseDto = exports.ChecklistItemResponseDto = exports.CaseStatusData = exports.CasePriority = exports.CaseDto = exports.CaseCategory = exports.BulkUpdatedCaseDto = exports.BulkUpdatedAlertDto = exports.BulkUpdateCaseStatusDto = exports.BulkUpdateCaseReviewersDto = exports.BulkUpdateAlertStatusDto = exports.AlertStatusData = exports.AlertSourceDto = exports.AlertDto = exports.AggregationFilterDto = exports.ActionConfigDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.ComplianceClient = void 0;
|
|
4
|
-
exports.WithdrawalsService = exports.TransactionsService = exports.TradesService = exports.SessionsService = exports.RulesService = exports.RuleTemplatesService = exports.PlatformService = exports.MembersService = exports.EvaluationService = exports.DepositsService = exports.ClientsService = exports.ChecklistsService = exports.CasesService = exports.BlockchainWalletsService = exports.BankAccountsService = exports.AttachmentsService = exports.AlertsService = exports.UpdateTransactionDto = exports.UpdateIndividualMemberDto = exports.UpdateIndividualClientDto = exports.UpdateIdentityDocumentDto = exports.UpdateCorporateMemberDto = exports.UpdateCorporateClientDto = exports.UpdateChecklistTemplateItemDto = exports.UpdateChecklistItemDto = exports.UpdateCaseStatusDto = exports.UpdateCaseDto = exports.UpdateBankAccountDto = exports.UpdateAttachmentDto = exports.UpdateAlertDto = exports.TransactionStatusDto = exports.TransactionDto = exports.TradeOperationDto = exports.RuleResponseDto = exports.RuleMatchDto = exports.RiskDto = exports.RelateAttachmentsDto = exports.ParticipantDto = exports.OperationStatusUpdateDto = exports.OperationStatusDto = exports.IndividualMemberDto = exports.IndividualClientGeneralInformationDto = exports.IndividualClientDto = exports.IndividualClientCustomFieldDataDto = exports.IdentityDocumentDto = exports.FactPathDto = exports.EvaluationResultDto = exports.DeviceResponseDto = exports.DeviceDto = void 0;
|
|
4
|
+
exports.WithdrawalsService = exports.TransactionsService = exports.TradesService = exports.SessionsService = exports.RulesService = exports.RuleTemplatesService = exports.PlatformService = exports.MembersService = exports.EvaluationService = exports.DepositsService = exports.ClientsService = exports.ChecklistsService = exports.CasesService = exports.BlockchainWalletsService = exports.BankAccountsService = exports.AttachmentsService = exports.AlertsService = exports.UpdateTransactionDto = exports.UpdateIndividualMemberDto = exports.UpdateIndividualClientDto = exports.UpdateIdentityDocumentDto = exports.UpdateCorporateMemberDto = exports.UpdateCorporateClientDto = exports.UpdateChecklistTemplateItemDto = exports.UpdateChecklistItemDto = exports.UpdateCaseStatusDto = exports.UpdateCaseDto = exports.UpdateBankAccountDto = exports.UpdateAttachmentDto = exports.UpdateAlertDto = exports.TransactionStatusDto = exports.TransactionEvaluationRecordDto = exports.TransactionDto = exports.TradeOperationDto = exports.RuleResponseDto = exports.RuleMatchDto = exports.RiskDto = exports.RelateAttachmentsDto = exports.ParticipantDto = exports.OperationStatusUpdateDto = exports.OperationStatusDto = exports.IndividualMemberDto = exports.IndividualClientGeneralInformationDto = exports.IndividualClientDto = exports.IndividualClientCustomFieldDataDto = exports.IdentityDocumentDto = exports.FactPathDto = exports.EvaluationResultDto = exports.DeviceResponseDto = exports.DeviceDto = void 0;
|
|
5
5
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
6
6
|
/* istanbul ignore file */
|
|
7
7
|
/* tslint:disable */
|
|
@@ -141,6 +141,8 @@ var TradeOperationDto_1 = require("./models/TradeOperationDto");
|
|
|
141
141
|
Object.defineProperty(exports, "TradeOperationDto", { enumerable: true, get: function () { return TradeOperationDto_1.TradeOperationDto; } });
|
|
142
142
|
var TransactionDto_1 = require("./models/TransactionDto");
|
|
143
143
|
Object.defineProperty(exports, "TransactionDto", { enumerable: true, get: function () { return TransactionDto_1.TransactionDto; } });
|
|
144
|
+
var TransactionEvaluationRecordDto_1 = require("./models/TransactionEvaluationRecordDto");
|
|
145
|
+
Object.defineProperty(exports, "TransactionEvaluationRecordDto", { enumerable: true, get: function () { return TransactionEvaluationRecordDto_1.TransactionEvaluationRecordDto; } });
|
|
144
146
|
var TransactionStatusDto_1 = require("./models/TransactionStatusDto");
|
|
145
147
|
Object.defineProperty(exports, "TransactionStatusDto", { enumerable: true, get: function () { return TransactionStatusDto_1.TransactionStatusDto; } });
|
|
146
148
|
var UpdateAlertDto_1 = require("./models/UpdateAlertDto");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AAEzB,4CAA2C;AAAlC,oGAAA,QAAQ,OAAA;AACjB,0DAAyD;AAAhD,kHAAA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sIAAA,yBAAyB,OAAA;AAClC,gFAA+E;AAAtE,sIAAA,yBAAyB,OAAA;AAClC,sEAAqE;AAA5D,4HAAA,oBAAoB,OAAA;AAE7B,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,oEAAmE;AAA1D,wHAAA,kBAAkB,OAAA;AAC3B,sEAAqE;AAA5D,0HAAA,mBAAmB,OAAA;AAC5B,gFAA+E;AAAtE,oIAAA,wBAAwB,OAAA;AACjC,wDAAuD;AAA9C,4GAAA,YAAY,OAAA;AACrB,kEAAiE;AAAxD,sHAAA,iBAAiB,OAAA;AAC1B,4DAA2D;AAAlD,gHAAA,cAAc,OAAA;AACvB,8DAA6D;AAApD,kHAAA,eAAe,OAAA;AACxB,kEAAiE;AAAxD,sHAAA,iBAAiB,OAAA;AAC1B,4DAA2D;AAAlD,gHAAA,cAAc,OAAA;AACvB,8DAA6D;AAApD,kHAAA,eAAe,OAAA;AACxB,wEAAuE;AAA9D,4HAAA,oBAAoB,OAAA;AAC7B,wDAAuD;AAA9C,4GAAA,YAAY,OAAA;AACrB,8DAA6D;AAApD,kHAAA,eAAe,OAAA;AACxB,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,sEAAqE;AAA5D,0HAAA,mBAAmB,OAAA;AAC5B,oEAAmE;AAA1D,wHAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { ConditionResultDto } from './ConditionResultDto';
|
|
2
|
+
export type TransactionEvaluationRecordDto = {
|
|
3
|
+
/**
|
|
4
|
+
* Evaluation record unique identifier
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* Rule ID that was evaluated
|
|
9
|
+
*/
|
|
10
|
+
ruleId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Rule name at time of evaluation
|
|
13
|
+
*/
|
|
14
|
+
ruleName: string;
|
|
15
|
+
/**
|
|
16
|
+
* Rule version at time of evaluation
|
|
17
|
+
*/
|
|
18
|
+
ruleVersion: number;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the rule matched (hit)
|
|
21
|
+
*/
|
|
22
|
+
matched: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Rule decision: FREEZE if rule would halt the transaction, ALLOW otherwise. Null for legacy records.
|
|
25
|
+
*/
|
|
26
|
+
decision?: TransactionEvaluationRecordDto.decision | null;
|
|
27
|
+
/**
|
|
28
|
+
* How the evaluation was triggered (API or EVENT)
|
|
29
|
+
*/
|
|
30
|
+
evaluationSource: string;
|
|
31
|
+
/**
|
|
32
|
+
* Detailed condition results for this evaluation
|
|
33
|
+
*/
|
|
34
|
+
conditionResults: Array<ConditionResultDto> | null;
|
|
35
|
+
/**
|
|
36
|
+
* Hash of the passing condition pattern for path analytics
|
|
37
|
+
*/
|
|
38
|
+
conditionPatternHash: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* When the rule engine processed this evaluation
|
|
41
|
+
*/
|
|
42
|
+
evaluatedAt: string;
|
|
43
|
+
/**
|
|
44
|
+
* Evaluation latency in milliseconds
|
|
45
|
+
*/
|
|
46
|
+
latencyMs: number | null;
|
|
47
|
+
/**
|
|
48
|
+
* Transaction ID
|
|
49
|
+
*/
|
|
50
|
+
transactionId?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Current (latest) version of this rule, null if rule no longer exists
|
|
53
|
+
*/
|
|
54
|
+
currentRuleVersion?: number | null;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the rule still exists in the system (not soft-deleted)
|
|
57
|
+
*/
|
|
58
|
+
ruleExists?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the rule is currently active
|
|
61
|
+
*/
|
|
62
|
+
ruleActive?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Current display name of the rule from the latest version
|
|
65
|
+
*/
|
|
66
|
+
currentRuleName?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Current description of the rule from the latest version
|
|
69
|
+
*/
|
|
70
|
+
currentRuleDescription?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* AI-generated human-readable narrative for this evaluation
|
|
73
|
+
*/
|
|
74
|
+
narrative?: string | null;
|
|
75
|
+
};
|
|
76
|
+
export declare namespace TransactionEvaluationRecordDto {
|
|
77
|
+
/**
|
|
78
|
+
* Rule decision: FREEZE if rule would halt the transaction, ALLOW otherwise. Null for legacy records.
|
|
79
|
+
*/
|
|
80
|
+
enum decision {
|
|
81
|
+
FREEZE = "FREEZE",
|
|
82
|
+
ALLOW = "ALLOW"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionEvaluationRecordDto = void 0;
|
|
4
|
+
var TransactionEvaluationRecordDto;
|
|
5
|
+
(function (TransactionEvaluationRecordDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Rule decision: FREEZE if rule would halt the transaction, ALLOW otherwise. Null for legacy records.
|
|
8
|
+
*/
|
|
9
|
+
let decision;
|
|
10
|
+
(function (decision) {
|
|
11
|
+
decision["FREEZE"] = "FREEZE";
|
|
12
|
+
decision["ALLOW"] = "ALLOW";
|
|
13
|
+
})(decision = TransactionEvaluationRecordDto.decision || (TransactionEvaluationRecordDto.decision = {}));
|
|
14
|
+
})(TransactionEvaluationRecordDto || (exports.TransactionEvaluationRecordDto = TransactionEvaluationRecordDto = {}));
|
|
15
|
+
//# sourceMappingURL=TransactionEvaluationRecordDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionEvaluationRecordDto.js","sourceRoot":"","sources":["../../models/TransactionEvaluationRecordDto.ts"],"names":[],"mappings":";;;AA+EA,IAAiB,8BAA8B,CAQ9C;AARD,WAAiB,8BAA8B;IAC3C;;OAEG;IACH,IAAY,QAGX;IAHD,WAAY,QAAQ;QAChB,6BAAiB,CAAA;QACjB,2BAAe,CAAA;IACnB,CAAC,EAHW,QAAQ,GAAR,uCAAQ,KAAR,uCAAQ,QAGnB;AACL,CAAC,EARgB,8BAA8B,8CAA9B,8BAA8B,QAQ9C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TransactionEvaluationRecordDto } from './TransactionEvaluationRecordDto';
|
|
2
|
+
export type TransactionEvaluationsResponseDto = {
|
|
3
|
+
data: Array<TransactionEvaluationRecordDto>;
|
|
4
|
+
/**
|
|
5
|
+
* Total number of matching records
|
|
6
|
+
*/
|
|
7
|
+
totalItems: number;
|
|
8
|
+
/**
|
|
9
|
+
* Current page number
|
|
10
|
+
*/
|
|
11
|
+
page: number;
|
|
12
|
+
/**
|
|
13
|
+
* Page size
|
|
14
|
+
*/
|
|
15
|
+
pageSize: number;
|
|
16
|
+
/**
|
|
17
|
+
* Total number of pages
|
|
18
|
+
*/
|
|
19
|
+
totalPages: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionEvaluationsResponseDto.js","sourceRoot":"","sources":["../../models/TransactionEvaluationsResponseDto.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EvaluationRequestDto } from '../models/EvaluationRequestDto';
|
|
2
2
|
import type { EvaluationResultDto } from '../models/EvaluationResultDto';
|
|
3
|
+
import type { TransactionEvaluationsResponseDto } from '../models/TransactionEvaluationsResponseDto';
|
|
3
4
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
5
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
6
|
export declare class EvaluationService {
|
|
@@ -13,4 +14,24 @@ export declare class EvaluationService {
|
|
|
13
14
|
* @throws ApiError
|
|
14
15
|
*/
|
|
15
16
|
evaluate(requestBody: EvaluationRequestDto): CancelablePromise<EvaluationResultDto>;
|
|
17
|
+
/**
|
|
18
|
+
* Get all rule evaluations for a transaction
|
|
19
|
+
* Get all rule evaluations for a specific transaction
|
|
20
|
+
* @param transactionId
|
|
21
|
+
* @param page
|
|
22
|
+
* @param pageSize
|
|
23
|
+
* @returns TransactionEvaluationsResponseDto
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
getTransactionEvaluations(transactionId: string, page?: number, pageSize?: number): CancelablePromise<TransactionEvaluationsResponseDto>;
|
|
27
|
+
/**
|
|
28
|
+
* Get all transaction evaluations for a rule
|
|
29
|
+
* Get all transaction evaluations for a specific rule
|
|
30
|
+
* @param ruleId
|
|
31
|
+
* @param page
|
|
32
|
+
* @param pageSize
|
|
33
|
+
* @returns TransactionEvaluationsResponseDto
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
getRuleEvaluations(ruleId: string, page?: number, pageSize?: number): CancelablePromise<TransactionEvaluationsResponseDto>;
|
|
16
37
|
}
|
|
@@ -21,6 +21,50 @@ class EvaluationService {
|
|
|
21
21
|
mediaType: 'application/json',
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Get all rule evaluations for a transaction
|
|
26
|
+
* Get all rule evaluations for a specific transaction
|
|
27
|
+
* @param transactionId
|
|
28
|
+
* @param page
|
|
29
|
+
* @param pageSize
|
|
30
|
+
* @returns TransactionEvaluationsResponseDto
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
getTransactionEvaluations(transactionId, page, pageSize) {
|
|
34
|
+
return this.httpRequest.request({
|
|
35
|
+
method: 'GET',
|
|
36
|
+
url: '/v1/evaluation/transaction/{transactionId}/results',
|
|
37
|
+
path: {
|
|
38
|
+
'transactionId': transactionId,
|
|
39
|
+
},
|
|
40
|
+
query: {
|
|
41
|
+
'page': page,
|
|
42
|
+
'pageSize': pageSize,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get all transaction evaluations for a rule
|
|
48
|
+
* Get all transaction evaluations for a specific rule
|
|
49
|
+
* @param ruleId
|
|
50
|
+
* @param page
|
|
51
|
+
* @param pageSize
|
|
52
|
+
* @returns TransactionEvaluationsResponseDto
|
|
53
|
+
* @throws ApiError
|
|
54
|
+
*/
|
|
55
|
+
getRuleEvaluations(ruleId, page, pageSize) {
|
|
56
|
+
return this.httpRequest.request({
|
|
57
|
+
method: 'GET',
|
|
58
|
+
url: '/v1/evaluation/rule/{ruleId}/results',
|
|
59
|
+
path: {
|
|
60
|
+
'ruleId': ruleId,
|
|
61
|
+
},
|
|
62
|
+
query: {
|
|
63
|
+
'page': page,
|
|
64
|
+
'pageSize': pageSize,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
24
68
|
}
|
|
25
69
|
exports.EvaluationService = EvaluationService;
|
|
26
70
|
//# sourceMappingURL=EvaluationService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EvaluationService.js","sourceRoot":"","sources":["../../services/EvaluationService.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"EvaluationService.js","sourceRoot":"","sources":["../../services/EvaluationService.ts"],"names":[],"mappings":";;;AASA,MAAa,iBAAiB;IACE;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,QAAQ,CACX,WAAiC;QAEjC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;OAQG;IACI,yBAAyB,CAC5B,aAAqB,EACrB,IAAa,EACb,QAAiB;QAEjB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,oDAAoD;YACzD,IAAI,EAAE;gBACF,eAAe,EAAE,aAAa;aACjC;YACD,KAAK,EAAE;gBACH,MAAM,EAAE,IAAI;gBACZ,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;OAQG;IACI,kBAAkB,CACrB,MAAc,EACd,IAAa,EACb,QAAiB;QAEjB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sCAAsC;YAC3C,IAAI,EAAE;gBACF,QAAQ,EAAE,MAAM;aACnB;YACD,KAAK,EAAE;gBACH,MAAM,EAAE,IAAI;gBACZ,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAvED,8CAuEC"}
|