@webiny/api-websockets 6.6.0-alpha.0 → 6.6.0-alpha.2
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/handler/types.d.ts +0 -10
- package/handler/types.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/package.json +15 -18
- package/WebSocketLambdaHandler.d.ts +0 -22
- package/WebSocketLambdaHandler.js +0 -87
- package/WebSocketLambdaHandler.js.map +0 -1
package/handler/types.d.ts
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import type { IWebsocketsEventValidator } from "../validator/index.js";
|
|
2
|
-
import type { IWebsocketsResponse } from "../response/index.js";
|
|
3
|
-
import type { APIGatewayProxyResult, Context as LambdaContext } from "@webiny/aws-sdk/types/index.js";
|
|
4
1
|
import type { GenericRecord } from "@webiny/api/types.js";
|
|
5
2
|
import type { PartialDeep } from "type-fest";
|
|
6
|
-
export interface HandlerCallable {
|
|
7
|
-
(event: IWebsocketsIncomingEvent, context: LambdaContext): Promise<APIGatewayProxyResult>;
|
|
8
|
-
}
|
|
9
|
-
export interface HandlerParams {
|
|
10
|
-
validator?: IWebsocketsEventValidator;
|
|
11
|
-
response?: IWebsocketsResponse;
|
|
12
|
-
}
|
|
13
3
|
export declare enum WebsocketsEventRoute {
|
|
14
4
|
connect = "$connect",
|
|
15
5
|
disconnect = "$disconnect",
|
package/handler/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler/types.js","sources":["../../src/handler/types.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"handler/types.js","sources":["../../src/handler/types.ts"],"sourcesContent":["import type { GenericRecord } from \"@webiny/api/types.js\";\nimport type { PartialDeep } from \"type-fest\";\n\nexport enum WebsocketsEventRoute {\n connect = \"$connect\",\n disconnect = \"$disconnect\",\n default = \"$default\"\n}\n\nexport interface IWebsocketsEventData {\n token?: string;\n tenant?: string;\n messageId?: string;\n action?: string;\n data?: GenericRecord;\n}\n\nexport enum WebsocketsEventRequestContextEventType {\n message = \"MESSAGE\",\n connect = \"CONNECT\",\n disconnect = \"DISCONNECT\"\n}\n\nexport interface IWebsocketsEventRequestContext {\n connectionId: string;\n connectedAt: number;\n domainName: string;\n eventType: WebsocketsEventRequestContextEventType;\n routeKey: WebsocketsEventRoute | string;\n stage: string;\n}\n\nexport interface IWebsocketsEventHeaders {\n \"Accept-Encoding\"?: string;\n \"Accept-Language\"?: string;\n \"Cache-Control\"?: string;\n Host?: string;\n Origin?: string;\n Pragma?: string;\n \"Sec-WebSocket-Extensions\"?: string;\n \"Sec-WebSocket-Key\"?: string;\n \"Sec-WebSocket-Version\"?: string;\n \"Sec-WebSocket-Protocol\"?: string;\n \"User-Agent\"?: string;\n \"X-Amzn-Trace-Id\"?: string;\n \"X-Forwarded-For\"?: string;\n \"X-Forwarded-Port\"?: `${number}`;\n \"X-Forwarded-Proto\"?: \"https\" | \"http\";\n [\"x-tenant\"]?: string;\n [\"x-webiny-cms-endpoint\"]?: string;\n}\n\nexport interface IWebsocketsEventQueryStringParameters {\n tenant?: string;\n token?: string;\n}\n\nexport interface IWebsocketsEvent<T extends IWebsocketsEventData = IWebsocketsEventData> {\n headers?: IWebsocketsEventHeaders;\n queryStringParameters?: IWebsocketsEventQueryStringParameters;\n requestContext: IWebsocketsEventRequestContext;\n body?: T;\n}\n\nexport interface IWebsocketsIncomingEvent extends PartialDeep<Omit<IWebsocketsEvent, \"body\">> {\n body?: string | GenericRecord;\n}\n"],"names":["WebsocketsEventRoute","WebsocketsEventRequestContextEventType"],"mappings":"AAGO,IAAKA,6BAAoBA,WAAAA,GAAAA,SAApBA,oBAAoB;;;;WAApBA;;AAcL,IAAKC,+CAAsCA,WAAAA,GAAAA,SAAtCA,sCAAsC;;;;WAAtCA"}
|
package/index.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export { WebsocketsRouteHandler } from "./features/Routes/abstractions.js";
|
|
|
7
7
|
export type { IWebsocketsRouteHandler, IWebsocketsRouteHandlerParams } from "./features/Routes/abstractions.js";
|
|
8
8
|
export type * from "./types.js";
|
|
9
9
|
export { WebsocketsFeature } from "./WebsocketsFeature.js";
|
|
10
|
-
export { WebSocketLambdaHandler } from "./WebSocketLambdaHandler.js";
|
package/index.js
CHANGED
|
@@ -5,4 +5,3 @@ export * from "./registry/index.js";
|
|
|
5
5
|
export * from "./features/ConnectionRegistry/abstractions.js";
|
|
6
6
|
export { WebsocketsRouteHandler } from "./features/Routes/abstractions.js";
|
|
7
7
|
export { WebsocketsFeature } from "./WebsocketsFeature.js";
|
|
8
|
-
export { WebSocketLambdaHandler } from "./WebSocketLambdaHandler.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-websockets",
|
|
3
|
-
"version": "6.6.0-alpha.
|
|
3
|
+
"version": "6.6.0-alpha.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,30 +16,27 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@webiny/api": "6.6.0-alpha.
|
|
20
|
-
"@webiny/api-core": "6.6.0-alpha.
|
|
21
|
-
"@webiny/api-graphql": "6.6.0-alpha.
|
|
22
|
-
"@webiny/error": "6.6.0-alpha.
|
|
23
|
-
"@webiny/
|
|
24
|
-
"@webiny/
|
|
25
|
-
"@webiny/feature": "6.6.0-alpha.0",
|
|
26
|
-
"@webiny/handler": "6.6.0-alpha.0",
|
|
19
|
+
"@webiny/api": "6.6.0-alpha.2",
|
|
20
|
+
"@webiny/api-core": "6.6.0-alpha.2",
|
|
21
|
+
"@webiny/api-graphql": "6.6.0-alpha.2",
|
|
22
|
+
"@webiny/error": "6.6.0-alpha.2",
|
|
23
|
+
"@webiny/feature": "6.6.0-alpha.2",
|
|
24
|
+
"@webiny/handler": "6.6.0-alpha.2",
|
|
27
25
|
"type-fest": "5.8.0"
|
|
28
26
|
},
|
|
29
27
|
"devDependencies": {
|
|
30
|
-
"@webiny/api-core-testing": "6.6.0-alpha.
|
|
31
|
-
"@webiny/api-graphql": "6.6.0-alpha.
|
|
32
|
-
"@webiny/api-headless-cms": "6.6.0-alpha.
|
|
33
|
-
"@webiny/
|
|
34
|
-
"@webiny/
|
|
35
|
-
"@webiny/
|
|
36
|
-
"@webiny/
|
|
37
|
-
"@webiny/wcp": "6.6.0-alpha.0",
|
|
28
|
+
"@webiny/api-core-testing": "6.6.0-alpha.2",
|
|
29
|
+
"@webiny/api-graphql": "6.6.0-alpha.2",
|
|
30
|
+
"@webiny/api-headless-cms": "6.6.0-alpha.2",
|
|
31
|
+
"@webiny/build-tools": "6.6.0-alpha.2",
|
|
32
|
+
"@webiny/di": "1.1.0",
|
|
33
|
+
"@webiny/event-handler-core": "6.6.0-alpha.2",
|
|
34
|
+
"@webiny/wcp": "6.6.0-alpha.2",
|
|
38
35
|
"graphql": "16.14.2",
|
|
39
36
|
"rimraf": "6.1.3",
|
|
40
37
|
"type-fest": "5.8.0",
|
|
41
38
|
"typescript": "7.0.2",
|
|
42
|
-
"vitest": "4.1.
|
|
39
|
+
"vitest": "4.1.11"
|
|
43
40
|
},
|
|
44
41
|
"publishConfig": {
|
|
45
42
|
"access": "public"
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Container } from "@webiny/feature/api";
|
|
2
|
-
import { WebSocketEventHandler } from "@webiny/event-handler-aws/abstractions/handlers/WebSocketEventHandler.js";
|
|
3
|
-
import type { IWebSocketEvent } from "@webiny/event-handler-aws/eventTypes/WebSocketEventType.js";
|
|
4
|
-
import type { IAuthenticationContext } from "@webiny/api-core/features/security/authentication/AuthenticationContext/abstractions.js";
|
|
5
|
-
import type { IIdentityContext } from "@webiny/api-core/features/security/IdentityContext/abstractions.js";
|
|
6
|
-
import type { ITenantContext } from "@webiny/api-core/features/tenancy/TenantContext/abstractions.js";
|
|
7
|
-
import type { IGetTenantByIdUseCase } from "@webiny/api-core/features/tenancy/GetTenantById/abstractions.js";
|
|
8
|
-
import type { EventContext, NextFunction } from "@webiny/event-handler-core";
|
|
9
|
-
import type { APIGatewayProxyResult } from "@webiny/aws-sdk/types/index.js";
|
|
10
|
-
declare class WebSocketLambdaHandlerImpl implements WebSocketEventHandler.Interface {
|
|
11
|
-
private container;
|
|
12
|
-
private authCtx;
|
|
13
|
-
private identityCtx;
|
|
14
|
-
private tenantCtx;
|
|
15
|
-
private getTenantById;
|
|
16
|
-
constructor(container: Container, authCtx: IAuthenticationContext, identityCtx: IIdentityContext, tenantCtx: ITenantContext, getTenantById: IGetTenantByIdUseCase);
|
|
17
|
-
execute(eventCtx: EventContext<IWebSocketEvent>, _next: NextFunction): Promise<APIGatewayProxyResult>;
|
|
18
|
-
}
|
|
19
|
-
export declare const WebSocketLambdaHandler: typeof WebSocketLambdaHandlerImpl & {
|
|
20
|
-
__abstraction: import("@webiny/di").Abstraction<import("@webiny/event-handler-aws/abstractions/handlers/WebSocketEventHandler.js").IWebSocketEventHandler>;
|
|
21
|
-
};
|
|
22
|
-
export {};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { WebSocketEventHandler } from "@webiny/event-handler-aws/abstractions/handlers/WebSocketEventHandler.js";
|
|
2
|
-
import { RequestContainer } from "@webiny/event-handler-core";
|
|
3
|
-
import { AuthenticationContext } from "@webiny/api-core/features/security/authentication/AuthenticationContext/index.js";
|
|
4
|
-
import { IdentityContext } from "@webiny/api-core/features/security/IdentityContext/index.js";
|
|
5
|
-
import { TenantContext } from "@webiny/api-core/features/tenancy/TenantContext/index.js";
|
|
6
|
-
import { GetTenantByIdUseCase } from "@webiny/api-core/features/tenancy/GetTenantById/index.js";
|
|
7
|
-
import { WebsocketsRunner } from "./runner/index.js";
|
|
8
|
-
import { WebsocketsResponse } from "./response/index.js";
|
|
9
|
-
import { getEventValues } from "./handler/headers.js";
|
|
10
|
-
import { WebsocketsEventRequestContextEventType, WebsocketsEventRoute } from "./handler/types.js";
|
|
11
|
-
const toWebsocketsEvent = (raw, endpoint)=>{
|
|
12
|
-
const rc = raw.requestContext ?? {};
|
|
13
|
-
const eventTypeMap = {
|
|
14
|
-
[WebsocketsEventRequestContextEventType.message]: "message",
|
|
15
|
-
[WebsocketsEventRequestContextEventType.connect]: "connect",
|
|
16
|
-
[WebsocketsEventRequestContextEventType.disconnect]: "disconnect"
|
|
17
|
-
};
|
|
18
|
-
const routeMap = {
|
|
19
|
-
[WebsocketsEventRoute.connect]: "connect",
|
|
20
|
-
[WebsocketsEventRoute.disconnect]: "disconnect",
|
|
21
|
-
[WebsocketsEventRoute["default"]]: "default"
|
|
22
|
-
};
|
|
23
|
-
const routeKey = rc.routeKey;
|
|
24
|
-
const route = routeMap[routeKey ?? ""] ?? "default";
|
|
25
|
-
return {
|
|
26
|
-
headers: raw.headers,
|
|
27
|
-
context: {
|
|
28
|
-
connectionId: rc.connectionId ?? "",
|
|
29
|
-
connectedAt: rc.connectedAt ?? 0,
|
|
30
|
-
host: rc.domainName ?? "",
|
|
31
|
-
eventType: eventTypeMap[rc.eventType ?? ""] ?? "message",
|
|
32
|
-
route,
|
|
33
|
-
endpoint
|
|
34
|
-
},
|
|
35
|
-
body: "string" == typeof raw.body ? (()=>{
|
|
36
|
-
try {
|
|
37
|
-
return JSON.parse(raw.body);
|
|
38
|
-
} catch {
|
|
39
|
-
return {};
|
|
40
|
-
}
|
|
41
|
-
})() : raw.body
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
class WebSocketLambdaHandlerImpl {
|
|
45
|
-
constructor(container, authCtx, identityCtx, tenantCtx, getTenantById){
|
|
46
|
-
this.container = container;
|
|
47
|
-
this.authCtx = authCtx;
|
|
48
|
-
this.identityCtx = identityCtx;
|
|
49
|
-
this.tenantCtx = tenantCtx;
|
|
50
|
-
this.getTenantById = getTenantById;
|
|
51
|
-
}
|
|
52
|
-
async execute(eventCtx, _next) {
|
|
53
|
-
const ctx = {
|
|
54
|
-
container: this.container
|
|
55
|
-
};
|
|
56
|
-
const raw = eventCtx.event;
|
|
57
|
-
const { token, tenant, endpoint } = getEventValues(raw);
|
|
58
|
-
const identity = await this.authCtx.authenticate(token ?? "");
|
|
59
|
-
this.identityCtx.setIdentity(identity);
|
|
60
|
-
const tenantResult = await this.getTenantById.execute(tenant);
|
|
61
|
-
if (tenantResult.isOk()) this.tenantCtx.setTenant(tenantResult.value);
|
|
62
|
-
const response = this.container.resolve(WebsocketsResponse);
|
|
63
|
-
const runner = new WebsocketsRunner(ctx, response);
|
|
64
|
-
const event = toWebsocketsEvent(raw, endpoint);
|
|
65
|
-
const result = await runner.run(event);
|
|
66
|
-
return {
|
|
67
|
-
statusCode: result.statusCode,
|
|
68
|
-
headers: {
|
|
69
|
-
"sec-websocket-protocol": "webiny-ws-v1"
|
|
70
|
-
},
|
|
71
|
-
body: ""
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
const WebSocketLambdaHandler = WebSocketEventHandler.createImplementation({
|
|
76
|
-
implementation: WebSocketLambdaHandlerImpl,
|
|
77
|
-
dependencies: [
|
|
78
|
-
RequestContainer,
|
|
79
|
-
AuthenticationContext,
|
|
80
|
-
IdentityContext,
|
|
81
|
-
TenantContext,
|
|
82
|
-
GetTenantByIdUseCase
|
|
83
|
-
]
|
|
84
|
-
});
|
|
85
|
-
export { WebSocketLambdaHandler };
|
|
86
|
-
|
|
87
|
-
//# sourceMappingURL=WebSocketLambdaHandler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebSocketLambdaHandler.js","sources":["../src/WebSocketLambdaHandler.ts"],"sourcesContent":["import type { Container } from \"@webiny/feature/api\";\nimport { WebSocketEventHandler } from \"@webiny/event-handler-aws/abstractions/handlers/WebSocketEventHandler.js\";\nimport type { IWebSocketEvent } from \"@webiny/event-handler-aws/eventTypes/WebSocketEventType.js\";\nimport { RequestContainer } from \"@webiny/event-handler-core\";\nimport { AuthenticationContext } from \"@webiny/api-core/features/security/authentication/AuthenticationContext/index.js\";\nimport { IdentityContext } from \"@webiny/api-core/features/security/IdentityContext/index.js\";\nimport { TenantContext } from \"@webiny/api-core/features/tenancy/TenantContext/index.js\";\nimport { GetTenantByIdUseCase } from \"@webiny/api-core/features/tenancy/GetTenantById/index.js\";\nimport type { IAuthenticationContext } from \"@webiny/api-core/features/security/authentication/AuthenticationContext/abstractions.js\";\nimport type { IIdentityContext } from \"@webiny/api-core/features/security/IdentityContext/abstractions.js\";\nimport type { ITenantContext } from \"@webiny/api-core/features/tenancy/TenantContext/abstractions.js\";\nimport type { IGetTenantByIdUseCase } from \"@webiny/api-core/features/tenancy/GetTenantById/abstractions.js\";\nimport type { EventContext, NextFunction } from \"@webiny/event-handler-core\";\nimport type { APIGatewayProxyResult } from \"@webiny/aws-sdk/types/index.js\";\nimport { WebsocketsRunner } from \"~/runner/index.js\";\nimport { WebsocketsResponse } from \"~/response/index.js\";\nimport type { Context, IWebsocketsEvent, WebsocketsEventType, WebsocketsRoute } from \"~/types.js\";\nimport { getEventValues } from \"~/handler/headers.js\";\nimport type { IWebsocketsIncomingEvent } from \"~/handler/types.js\";\nimport { WebsocketsEventRequestContextEventType, WebsocketsEventRoute } from \"~/handler/types.js\";\n\nconst toWebsocketsEvent = (raw: IWebsocketsIncomingEvent, endpoint: string): IWebsocketsEvent => {\n const rc = raw.requestContext ?? {};\n const eventTypeMap: Record<string, WebsocketsEventType> = {\n [WebsocketsEventRequestContextEventType.message]: \"message\",\n [WebsocketsEventRequestContextEventType.connect]: \"connect\",\n [WebsocketsEventRequestContextEventType.disconnect]: \"disconnect\"\n };\n // AWS delivers routeKey as \"$connect\"/\"$disconnect\"/\"$default\"; route handlers register under the\n // un-prefixed WebsocketsRoute (\"connect\"/\"disconnect\"/\"default\"). Without this map the runner\n // matches the raw \"$connect\" and finds no handler (\"There are no handlers for the route: $connect\").\n const routeMap: Record<string, WebsocketsRoute> = {\n [WebsocketsEventRoute.connect]: \"connect\",\n [WebsocketsEventRoute.disconnect]: \"disconnect\",\n [WebsocketsEventRoute.default]: \"default\"\n };\n const routeKey = rc.routeKey as string | undefined;\n const route = routeMap[routeKey ?? \"\"] ?? \"default\";\n return {\n headers: raw.headers as Record<string, string> | undefined,\n context: {\n connectionId: rc.connectionId ?? \"\",\n connectedAt: rc.connectedAt ?? 0,\n host: rc.domainName ?? \"\",\n eventType: eventTypeMap[rc.eventType ?? \"\"] ?? \"message\",\n route,\n endpoint\n },\n body:\n typeof raw.body === \"string\"\n ? (() => {\n try {\n return JSON.parse(raw.body as string);\n } catch {\n return {};\n }\n })()\n : (raw.body as any)\n };\n};\n\nclass WebSocketLambdaHandlerImpl implements WebSocketEventHandler.Interface {\n constructor(\n private container: Container,\n private authCtx: IAuthenticationContext,\n private identityCtx: IIdentityContext,\n private tenantCtx: ITenantContext,\n private getTenantById: IGetTenantByIdUseCase\n ) {}\n\n async execute(\n eventCtx: EventContext<IWebSocketEvent>,\n _next: NextFunction\n ): Promise<APIGatewayProxyResult> {\n // Route handlers and all websockets services are resolved from the DI container;\n // the runner only needs `container` on the context object.\n const ctx: Record<string, any> = { container: this.container };\n\n const raw = eventCtx.event as IWebsocketsIncomingEvent;\n const { token, tenant, endpoint } = getEventValues(raw);\n\n const identity = await this.authCtx.authenticate(token ?? \"\");\n this.identityCtx.setIdentity(identity);\n\n const tenantResult = await this.getTenantById.execute(tenant);\n if (tenantResult.isOk()) {\n this.tenantCtx.setTenant(tenantResult.value);\n }\n\n const response = this.container.resolve(WebsocketsResponse);\n const runner = new WebsocketsRunner(ctx as Context, response);\n const event = toWebsocketsEvent(raw, endpoint);\n const result = await runner.run(event);\n\n return {\n statusCode: result.statusCode,\n headers: { \"sec-websocket-protocol\": \"webiny-ws-v1\" },\n body: \"\"\n };\n }\n}\n\nexport const WebSocketLambdaHandler = WebSocketEventHandler.createImplementation({\n implementation: WebSocketLambdaHandlerImpl,\n dependencies: [\n RequestContainer,\n AuthenticationContext,\n IdentityContext,\n TenantContext,\n GetTenantByIdUseCase\n ]\n});\n"],"names":["toWebsocketsEvent","raw","endpoint","rc","eventTypeMap","WebsocketsEventRequestContextEventType","routeMap","WebsocketsEventRoute","routeKey","route","JSON","WebSocketLambdaHandlerImpl","container","authCtx","identityCtx","tenantCtx","getTenantById","eventCtx","_next","ctx","token","tenant","getEventValues","identity","tenantResult","response","WebsocketsResponse","runner","WebsocketsRunner","event","result","WebSocketLambdaHandler","WebSocketEventHandler","RequestContainer","AuthenticationContext","IdentityContext","TenantContext","GetTenantByIdUseCase"],"mappings":";;;;;;;;;;AAqBA,MAAMA,oBAAoB,CAACC,KAA+BC;IACtD,MAAMC,KAAKF,IAAI,cAAc,IAAI,CAAC;IAClC,MAAMG,eAAoD;QACtD,CAACC,uCAAuC,OAAO,CAAC,EAAE;QAClD,CAACA,uCAAuC,OAAO,CAAC,EAAE;QAClD,CAACA,uCAAuC,UAAU,CAAC,EAAE;IACzD;IAIA,MAAMC,WAA4C;QAC9C,CAACC,qBAAqB,OAAO,CAAC,EAAE;QAChC,CAACA,qBAAqB,UAAU,CAAC,EAAE;QACnC,CAACA,oBAAoB,CAApBA,UAA4B,CAAC,EAAE;IACpC;IACA,MAAMC,WAAWL,GAAG,QAAQ;IAC5B,MAAMM,QAAQH,QAAQ,CAACE,YAAY,GAAG,IAAI;IAC1C,OAAO;QACH,SAASP,IAAI,OAAO;QACpB,SAAS;YACL,cAAcE,GAAG,YAAY,IAAI;YACjC,aAAaA,GAAG,WAAW,IAAI;YAC/B,MAAMA,GAAG,UAAU,IAAI;YACvB,WAAWC,YAAY,CAACD,GAAG,SAAS,IAAI,GAAG,IAAI;YAC/CM;YACAP;QACJ;QACA,MACI,AAAoB,YAApB,OAAOD,IAAI,IAAI,GACR,AAAC;YACE,IAAI;gBACA,OAAOS,KAAK,KAAK,CAACT,IAAI,IAAI;YAC9B,EAAE,OAAM;gBACJ,OAAO,CAAC;YACZ;QACJ,OACCA,IAAI,IAAI;IACvB;AACJ;AAEA,MAAMU;IACF,YACYC,SAAoB,EACpBC,OAA+B,EAC/BC,WAA6B,EAC7BC,SAAyB,EACzBC,aAAoC,CAC9C;aALUJ,SAAS,GAATA;aACAC,OAAO,GAAPA;aACAC,WAAW,GAAXA;aACAC,SAAS,GAATA;aACAC,aAAa,GAAbA;IACT;IAEH,MAAM,QACFC,QAAuC,EACvCC,KAAmB,EACW;QAG9B,MAAMC,MAA2B;YAAE,WAAW,IAAI,CAAC,SAAS;QAAC;QAE7D,MAAMlB,MAAMgB,SAAS,KAAK;QAC1B,MAAM,EAAEG,KAAK,EAAEC,MAAM,EAAEnB,QAAQ,EAAE,GAAGoB,eAAerB;QAEnD,MAAMsB,WAAW,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,CAACH,SAAS;QAC1D,IAAI,CAAC,WAAW,CAAC,WAAW,CAACG;QAE7B,MAAMC,eAAe,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAACH;QACtD,IAAIG,aAAa,IAAI,IACjB,IAAI,CAAC,SAAS,CAAC,SAAS,CAACA,aAAa,KAAK;QAG/C,MAAMC,WAAW,IAAI,CAAC,SAAS,CAAC,OAAO,CAACC;QACxC,MAAMC,SAAS,IAAIC,iBAAiBT,KAAgBM;QACpD,MAAMI,QAAQ7B,kBAAkBC,KAAKC;QACrC,MAAM4B,SAAS,MAAMH,OAAO,GAAG,CAACE;QAEhC,OAAO;YACH,YAAYC,OAAO,UAAU;YAC7B,SAAS;gBAAE,0BAA0B;YAAe;YACpD,MAAM;QACV;IACJ;AACJ;AAEO,MAAMC,yBAAyBC,sBAAsB,oBAAoB,CAAC;IAC7E,gBAAgBrB;IAChB,cAAc;QACVsB;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
|