@osaas/client-services 0.8.0 → 0.10.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/lib/generated/eyevinn-auto-subtitles.d.ts +5 -0
- package/lib/generated/eyevinn-auto-subtitles.d.ts.map +1 -1
- package/lib/generated/eyevinn-auto-subtitles.js +1 -0
- package/lib/generated/eyevinn-auto-subtitles.js.map +1 -1
- package/lib/generated/eyevinn-intercom-manager.d.ts +1 -1
- package/lib/generated/eyevinn-intercom-manager.js +1 -1
- package/lib/generated/eyevinn-web-runner.d.ts +10 -0
- package/lib/generated/eyevinn-web-runner.d.ts.map +1 -1
- package/lib/generated/eyevinn-web-runner.js +2 -0
- package/lib/generated/eyevinn-web-runner.js.map +1 -1
- package/lib/generated/matomo-org-matomo.d.ts +360 -0
- package/lib/generated/matomo-org-matomo.d.ts.map +1 -0
- package/lib/generated/matomo-org-matomo.js +83 -0
- package/lib/generated/matomo-org-matomo.js.map +1 -0
- package/lib/generated/nfrederiksen-hls-viewer.d.ts +330 -0
- package/lib/generated/nfrederiksen-hls-viewer.d.ts.map +1 -0
- package/lib/generated/nfrederiksen-hls-viewer.js +77 -0
- package/lib/generated/nfrederiksen-hls-viewer.js.map +1 -0
- package/lib/generated/umami-software-umami.d.ts +335 -0
- package/lib/generated/umami-software-umami.d.ts.map +1 -0
- package/lib/generated/umami-software-umami.js +78 -0
- package/lib/generated/umami-software-umami.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +13 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
'/': {
|
|
7
|
+
/** Say hello */
|
|
8
|
+
get: {
|
|
9
|
+
responses: {
|
|
10
|
+
/** The magical words! */
|
|
11
|
+
200: {
|
|
12
|
+
schema: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
'/hls-viewerinstance': {
|
|
18
|
+
/** List all running hls-viewer instances */
|
|
19
|
+
get: {
|
|
20
|
+
responses: {
|
|
21
|
+
/** Default Response */
|
|
22
|
+
200: {
|
|
23
|
+
schema: {
|
|
24
|
+
/** @description Name of the hls-viewer instance */
|
|
25
|
+
name: string;
|
|
26
|
+
/** @description URL to instance API */
|
|
27
|
+
url: string;
|
|
28
|
+
resources: {
|
|
29
|
+
license: {
|
|
30
|
+
/** @description URL to license information */
|
|
31
|
+
url: string;
|
|
32
|
+
};
|
|
33
|
+
apiDocs?: {
|
|
34
|
+
/** @description URL to instance API documentation */
|
|
35
|
+
url: string;
|
|
36
|
+
};
|
|
37
|
+
app?: {
|
|
38
|
+
/** @description URL to instance application (GUI) */
|
|
39
|
+
url: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
/** Default Response */
|
|
45
|
+
500: {
|
|
46
|
+
schema: {
|
|
47
|
+
/** @description Reason why something failed */
|
|
48
|
+
reason: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
/** Launch a new hls-viewer instance */
|
|
54
|
+
post: {
|
|
55
|
+
parameters: {
|
|
56
|
+
body: {
|
|
57
|
+
body?: {
|
|
58
|
+
/** @description Name of the hls-viewer instance */
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
responses: {
|
|
64
|
+
/** Default Response */
|
|
65
|
+
200: {
|
|
66
|
+
schema: {
|
|
67
|
+
/** @description Name of the hls-viewer instance */
|
|
68
|
+
name: string;
|
|
69
|
+
/** @description URL to instance API */
|
|
70
|
+
url: string;
|
|
71
|
+
resources: {
|
|
72
|
+
license: {
|
|
73
|
+
/** @description URL to license information */
|
|
74
|
+
url: string;
|
|
75
|
+
};
|
|
76
|
+
apiDocs?: {
|
|
77
|
+
/** @description URL to instance API documentation */
|
|
78
|
+
url: string;
|
|
79
|
+
};
|
|
80
|
+
app?: {
|
|
81
|
+
/** @description URL to instance application (GUI) */
|
|
82
|
+
url: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
/** Default Response */
|
|
88
|
+
403: {
|
|
89
|
+
schema: {
|
|
90
|
+
/** @description Reason why something failed */
|
|
91
|
+
reason: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
/** Default Response */
|
|
95
|
+
409: {
|
|
96
|
+
schema: {
|
|
97
|
+
/** @description Reason why something failed */
|
|
98
|
+
reason: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
/** Default Response */
|
|
102
|
+
500: {
|
|
103
|
+
schema: {
|
|
104
|
+
/** @description Reason why something failed */
|
|
105
|
+
reason: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
'/hls-viewerinstance/{id}': {
|
|
112
|
+
/** Obtain status and resource URLs for an hls-viewer instance */
|
|
113
|
+
get: {
|
|
114
|
+
parameters: {
|
|
115
|
+
path: {
|
|
116
|
+
/** Name of the hls-viewer instance */
|
|
117
|
+
id: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
responses: {
|
|
121
|
+
/** Default Response */
|
|
122
|
+
200: {
|
|
123
|
+
schema: {
|
|
124
|
+
/** @description Name of the hls-viewer instance */
|
|
125
|
+
name: string;
|
|
126
|
+
/** @description URL to instance API */
|
|
127
|
+
url: string;
|
|
128
|
+
resources: {
|
|
129
|
+
license: {
|
|
130
|
+
/** @description URL to license information */
|
|
131
|
+
url: string;
|
|
132
|
+
};
|
|
133
|
+
apiDocs?: {
|
|
134
|
+
/** @description URL to instance API documentation */
|
|
135
|
+
url: string;
|
|
136
|
+
};
|
|
137
|
+
app?: {
|
|
138
|
+
/** @description URL to instance application (GUI) */
|
|
139
|
+
url: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
/** Default Response */
|
|
145
|
+
404: {
|
|
146
|
+
schema: {
|
|
147
|
+
/** @description Reason why something failed */
|
|
148
|
+
reason: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/** Default Response */
|
|
152
|
+
500: {
|
|
153
|
+
schema: {
|
|
154
|
+
/** @description Reason why something failed */
|
|
155
|
+
reason: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
/** Stop and remove an hls-viewer instance */
|
|
161
|
+
delete: {
|
|
162
|
+
parameters: {
|
|
163
|
+
path: {
|
|
164
|
+
/** Name of the hls-viewer instance */
|
|
165
|
+
id: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
responses: {
|
|
169
|
+
/** Default Response */
|
|
170
|
+
204: {
|
|
171
|
+
schema: string;
|
|
172
|
+
};
|
|
173
|
+
/** Default Response */
|
|
174
|
+
500: {
|
|
175
|
+
schema: {
|
|
176
|
+
/** @description Reason why something failed */
|
|
177
|
+
reason: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
'/health/{id}': {
|
|
184
|
+
/** Return status of hls-viewer instance */
|
|
185
|
+
get: {
|
|
186
|
+
parameters: {
|
|
187
|
+
path: {
|
|
188
|
+
/** Name of the hls-viewer instance */
|
|
189
|
+
id: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
responses: {
|
|
193
|
+
/** Default Response */
|
|
194
|
+
200: {
|
|
195
|
+
schema: {
|
|
196
|
+
/** @enum {string} */
|
|
197
|
+
status: 'starting' | 'running' | 'stopped' | 'failed' | 'unknown';
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
/** Default Response */
|
|
201
|
+
500: {
|
|
202
|
+
schema: {
|
|
203
|
+
/** @description Reason why something failed */
|
|
204
|
+
reason: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
'/logs/{id}': {
|
|
211
|
+
/** Return the latest logs from the hls-viewer instance */
|
|
212
|
+
get: {
|
|
213
|
+
parameters: {
|
|
214
|
+
query: {
|
|
215
|
+
timestamps?: boolean;
|
|
216
|
+
sinceSeconds?: number;
|
|
217
|
+
};
|
|
218
|
+
path: {
|
|
219
|
+
/** Name of the hls-viewer instance */
|
|
220
|
+
id: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
responses: {
|
|
224
|
+
/** Default Response */
|
|
225
|
+
200: {
|
|
226
|
+
schema: string;
|
|
227
|
+
};
|
|
228
|
+
/** Default Response */
|
|
229
|
+
500: {
|
|
230
|
+
schema: {
|
|
231
|
+
/** @description Reason why something failed */
|
|
232
|
+
reason: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
'/ports/{id}': {
|
|
239
|
+
/** Return the exposed extra ports for hls-viewer instance */
|
|
240
|
+
get: {
|
|
241
|
+
parameters: {
|
|
242
|
+
path: {
|
|
243
|
+
/** Name of the hls-viewer instance */
|
|
244
|
+
id: string;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
responses: {
|
|
248
|
+
/** Default Response */
|
|
249
|
+
200: {
|
|
250
|
+
schema: {
|
|
251
|
+
externalIp: string;
|
|
252
|
+
externalPort: number;
|
|
253
|
+
internalPort: number;
|
|
254
|
+
}[];
|
|
255
|
+
};
|
|
256
|
+
/** Default Response */
|
|
257
|
+
500: {
|
|
258
|
+
schema: {
|
|
259
|
+
/** @description Reason why something failed */
|
|
260
|
+
reason: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
export interface definitions {
|
|
268
|
+
}
|
|
269
|
+
export interface operations {
|
|
270
|
+
}
|
|
271
|
+
export interface external {
|
|
272
|
+
}
|
|
273
|
+
export type NfrederiksenHlsViewer = paths['/hls-viewerinstance/{id}']['get']['responses']['200']['schema'];
|
|
274
|
+
export type NfrederiksenHlsViewerConfig = paths['/hls-viewerinstance']['post']['parameters']['body']['body'];
|
|
275
|
+
import { Context } from '@osaas/client-core';
|
|
276
|
+
/**
|
|
277
|
+
* @namespace nfrederiksen-hls-viewer
|
|
278
|
+
* @description Effortlessly inspect and analyze HLS playlist manifests directly in your browser. No installation needed—just paste your URL and dive into comprehensive metrics with ease. Ideal for streamlined streaming analysis!
|
|
279
|
+
* @author Eyevinn Technology AB <osc@eyevinn.se>
|
|
280
|
+
* @copyright 2025 Eyevinn Technology AB
|
|
281
|
+
*
|
|
282
|
+
*/
|
|
283
|
+
/**
|
|
284
|
+
* @typedef {Object} NfrederiksenHlsViewerConfig
|
|
285
|
+
* @property {string} name - Name of hls-viewer
|
|
286
|
+
|
|
287
|
+
*
|
|
288
|
+
*/
|
|
289
|
+
/**
|
|
290
|
+
* @typedef {Object} NfrederiksenHlsViewer
|
|
291
|
+
* @property {string} name - Name of the HLS Playlist Viewer instance
|
|
292
|
+
* @property {string} url - URL of the HLS Playlist Viewer instance
|
|
293
|
+
*
|
|
294
|
+
*/
|
|
295
|
+
/**
|
|
296
|
+
* Create a new HLS Playlist Viewer instance
|
|
297
|
+
*
|
|
298
|
+
* @memberOf nfrederiksen-hls-viewer
|
|
299
|
+
* @async
|
|
300
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
301
|
+
* @param {NfrederiksenHlsViewerConfig} body - Service instance configuration
|
|
302
|
+
* @returns {NfrederiksenHlsViewer} - Service instance
|
|
303
|
+
* @example
|
|
304
|
+
* import { Context, createNfrederiksenHlsViewerInstance } from '@osaas/client-services';
|
|
305
|
+
*
|
|
306
|
+
* const ctx = new Context();
|
|
307
|
+
* const instance = await createNfrederiksenHlsViewerInstance(ctx, { name: 'myinstance' });
|
|
308
|
+
* console.log(instance.url);
|
|
309
|
+
*/
|
|
310
|
+
export declare function createNfrederiksenHlsViewerInstance(ctx: Context, body: NfrederiksenHlsViewerConfig): Promise<NfrederiksenHlsViewer>;
|
|
311
|
+
/**
|
|
312
|
+
* Remove a HLS Playlist Viewer instance
|
|
313
|
+
*
|
|
314
|
+
* @memberOf nfrederiksen-hls-viewer
|
|
315
|
+
* @async
|
|
316
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
317
|
+
* @param {string} name - Name of the viewer to be removed
|
|
318
|
+
*/
|
|
319
|
+
export declare function removeNfrederiksenHlsViewerInstance(ctx: Context, name: string): Promise<void>;
|
|
320
|
+
/**
|
|
321
|
+
* Get a HLS Playlist Viewer instance
|
|
322
|
+
*
|
|
323
|
+
* @memberOf nfrederiksen-hls-viewer
|
|
324
|
+
* @async
|
|
325
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
326
|
+
* @param {string} name - Name of the viewer to be retrieved
|
|
327
|
+
* @returns {NfrederiksenHlsViewer} - Service instance
|
|
328
|
+
*/
|
|
329
|
+
export declare function getNfrederiksenHlsViewerInstance(ctx: Context, name: string): Promise<NfrederiksenHlsViewer>;
|
|
330
|
+
//# sourceMappingURL=nfrederiksen-hls-viewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nfrederiksen-hls-viewer.d.ts","sourceRoot":"","sources":["../../src/generated/nfrederiksen-hls-viewer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE;QACH,gBAAgB;QAChB,GAAG,EAAE;YACH,SAAS,EAAE;gBACT,yBAAyB;gBACzB,GAAG,EAAE;oBACH,MAAM,EAAE,MAAM,CAAC;iBAChB,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAA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GAMG;AAEH;;;;;GAKG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mCAAmC,CACvD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,2BAA2B,GAChC,OAAO,CAAC,qBAAqB,CAAC,CAYhC;AAED;;;;;;;GAOG;AACH,wBAAsB,mCAAmC,CACvD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAUf;AAED;;;;;;;;GAQG;AACH,wBAAsB,gCAAgC,CACpD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,qBAAqB,CAAC,CAUhC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by openapi-typescript.
|
|
4
|
+
* Do not make direct changes to the file.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getNfrederiksenHlsViewerInstance = exports.removeNfrederiksenHlsViewerInstance = exports.createNfrederiksenHlsViewerInstance = void 0;
|
|
8
|
+
const client_core_1 = require("@osaas/client-core");
|
|
9
|
+
/**
|
|
10
|
+
* @namespace nfrederiksen-hls-viewer
|
|
11
|
+
* @description Effortlessly inspect and analyze HLS playlist manifests directly in your browser. No installation needed—just paste your URL and dive into comprehensive metrics with ease. Ideal for streamlined streaming analysis!
|
|
12
|
+
* @author Eyevinn Technology AB <osc@eyevinn.se>
|
|
13
|
+
* @copyright 2025 Eyevinn Technology AB
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {Object} NfrederiksenHlsViewerConfig
|
|
18
|
+
* @property {string} name - Name of hls-viewer
|
|
19
|
+
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* @typedef {Object} NfrederiksenHlsViewer
|
|
24
|
+
* @property {string} name - Name of the HLS Playlist Viewer instance
|
|
25
|
+
* @property {string} url - URL of the HLS Playlist Viewer instance
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Create a new HLS Playlist Viewer instance
|
|
30
|
+
*
|
|
31
|
+
* @memberOf nfrederiksen-hls-viewer
|
|
32
|
+
* @async
|
|
33
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
34
|
+
* @param {NfrederiksenHlsViewerConfig} body - Service instance configuration
|
|
35
|
+
* @returns {NfrederiksenHlsViewer} - Service instance
|
|
36
|
+
* @example
|
|
37
|
+
* import { Context, createNfrederiksenHlsViewerInstance } from '@osaas/client-services';
|
|
38
|
+
*
|
|
39
|
+
* const ctx = new Context();
|
|
40
|
+
* const instance = await createNfrederiksenHlsViewerInstance(ctx, { name: 'myinstance' });
|
|
41
|
+
* console.log(instance.url);
|
|
42
|
+
*/
|
|
43
|
+
async function createNfrederiksenHlsViewerInstance(ctx, body) {
|
|
44
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('nfrederiksen-hls-viewer');
|
|
45
|
+
const instance = await (0, client_core_1.createInstance)(ctx, 'nfrederiksen-hls-viewer', serviceAccessToken, body);
|
|
46
|
+
await (0, client_core_1.waitForInstanceReady)('nfrederiksen-hls-viewer', instance.name, ctx);
|
|
47
|
+
return instance;
|
|
48
|
+
}
|
|
49
|
+
exports.createNfrederiksenHlsViewerInstance = createNfrederiksenHlsViewerInstance;
|
|
50
|
+
/**
|
|
51
|
+
* Remove a HLS Playlist Viewer instance
|
|
52
|
+
*
|
|
53
|
+
* @memberOf nfrederiksen-hls-viewer
|
|
54
|
+
* @async
|
|
55
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
56
|
+
* @param {string} name - Name of the viewer to be removed
|
|
57
|
+
*/
|
|
58
|
+
async function removeNfrederiksenHlsViewerInstance(ctx, name) {
|
|
59
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('nfrederiksen-hls-viewer');
|
|
60
|
+
await (0, client_core_1.removeInstance)(ctx, 'nfrederiksen-hls-viewer', name, serviceAccessToken);
|
|
61
|
+
}
|
|
62
|
+
exports.removeNfrederiksenHlsViewerInstance = removeNfrederiksenHlsViewerInstance;
|
|
63
|
+
/**
|
|
64
|
+
* Get a HLS Playlist Viewer instance
|
|
65
|
+
*
|
|
66
|
+
* @memberOf nfrederiksen-hls-viewer
|
|
67
|
+
* @async
|
|
68
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
69
|
+
* @param {string} name - Name of the viewer to be retrieved
|
|
70
|
+
* @returns {NfrederiksenHlsViewer} - Service instance
|
|
71
|
+
*/
|
|
72
|
+
async function getNfrederiksenHlsViewerInstance(ctx, name) {
|
|
73
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('nfrederiksen-hls-viewer');
|
|
74
|
+
return await (0, client_core_1.getInstance)(ctx, 'nfrederiksen-hls-viewer', name, serviceAccessToken);
|
|
75
|
+
}
|
|
76
|
+
exports.getNfrederiksenHlsViewerInstance = getNfrederiksenHlsViewerInstance;
|
|
77
|
+
//# sourceMappingURL=nfrederiksen-hls-viewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nfrederiksen-hls-viewer.js","sourceRoot":"","sources":["../../src/generated/nfrederiksen-hls-viewer.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAoRH,oDAM4B;AAC5B;;;;;;GAMG;AAEH;;;;;GAKG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;GAcG;AACI,KAAK,UAAU,mCAAmC,CACvD,GAAY,EACZ,IAAiC;IAEjC,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,yBAAyB,CAC1B,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,IAAA,4BAAc,EACnC,GAAG,EACH,yBAAyB,EACzB,kBAAkB,EAClB,IAAI,CACL,CAAC;IACF,MAAM,IAAA,kCAAoB,EAAC,yBAAyB,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1E,OAAO,QAAQ,CAAC;AAClB,CAAC;AAfD,kFAeC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,mCAAmC,CACvD,GAAY,EACZ,IAAY;IAEZ,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,yBAAyB,CAC1B,CAAC;IACF,MAAM,IAAA,4BAAc,EAClB,GAAG,EACH,yBAAyB,EACzB,IAAI,EACJ,kBAAkB,CACnB,CAAC;AACJ,CAAC;AAbD,kFAaC;AAED;;;;;;;;GAQG;AACI,KAAK,UAAU,gCAAgC,CACpD,GAAY,EACZ,IAAY;IAEZ,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,yBAAyB,CAC1B,CAAC;IACF,OAAO,MAAM,IAAA,yBAAW,EACtB,GAAG,EACH,yBAAyB,EACzB,IAAI,EACJ,kBAAkB,CACnB,CAAC;AACJ,CAAC;AAbD,4EAaC"}
|