n8n-nodes-segment 1.0.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.
Files changed (96) hide show
  1. package/LICENSE +46 -0
  2. package/README.md +419 -0
  3. package/dist/credentials/SegmentApi.credentials.d.ts +10 -0
  4. package/dist/credentials/SegmentApi.credentials.d.ts.map +1 -0
  5. package/dist/credentials/SegmentApi.credentials.js +88 -0
  6. package/dist/credentials/SegmentApi.credentials.js.map +1 -0
  7. package/dist/index.d.ts +4 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +26 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/nodes/Segment/Segment.node.d.ts +6 -0
  12. package/dist/nodes/Segment/Segment.node.d.ts.map +1 -0
  13. package/dist/nodes/Segment/Segment.node.js +283 -0
  14. package/dist/nodes/Segment/Segment.node.js.map +1 -0
  15. package/dist/nodes/Segment/SegmentTrigger.node.d.ts +6 -0
  16. package/dist/nodes/Segment/SegmentTrigger.node.d.ts.map +1 -0
  17. package/dist/nodes/Segment/SegmentTrigger.node.js +257 -0
  18. package/dist/nodes/Segment/SegmentTrigger.node.js.map +1 -0
  19. package/dist/nodes/Segment/actions/audiences/index.d.ts +5 -0
  20. package/dist/nodes/Segment/actions/audiences/index.d.ts.map +1 -0
  21. package/dist/nodes/Segment/actions/audiences/index.js +304 -0
  22. package/dist/nodes/Segment/actions/audiences/index.js.map +1 -0
  23. package/dist/nodes/Segment/actions/auditTrail/index.d.ts +5 -0
  24. package/dist/nodes/Segment/actions/auditTrail/index.d.ts.map +1 -0
  25. package/dist/nodes/Segment/actions/auditTrail/index.js +192 -0
  26. package/dist/nodes/Segment/actions/auditTrail/index.js.map +1 -0
  27. package/dist/nodes/Segment/actions/catalog/index.d.ts +5 -0
  28. package/dist/nodes/Segment/actions/catalog/index.d.ts.map +1 -0
  29. package/dist/nodes/Segment/actions/catalog/index.js +144 -0
  30. package/dist/nodes/Segment/actions/catalog/index.js.map +1 -0
  31. package/dist/nodes/Segment/actions/computedTraits/index.d.ts +5 -0
  32. package/dist/nodes/Segment/actions/computedTraits/index.d.ts.map +1 -0
  33. package/dist/nodes/Segment/actions/computedTraits/index.js +257 -0
  34. package/dist/nodes/Segment/actions/computedTraits/index.js.map +1 -0
  35. package/dist/nodes/Segment/actions/destinations/index.d.ts +5 -0
  36. package/dist/nodes/Segment/actions/destinations/index.d.ts.map +1 -0
  37. package/dist/nodes/Segment/actions/destinations/index.js +297 -0
  38. package/dist/nodes/Segment/actions/destinations/index.js.map +1 -0
  39. package/dist/nodes/Segment/actions/functions/index.d.ts +5 -0
  40. package/dist/nodes/Segment/actions/functions/index.d.ts.map +1 -0
  41. package/dist/nodes/Segment/actions/functions/index.js +389 -0
  42. package/dist/nodes/Segment/actions/functions/index.js.map +1 -0
  43. package/dist/nodes/Segment/actions/labels/index.d.ts +5 -0
  44. package/dist/nodes/Segment/actions/labels/index.d.ts.map +1 -0
  45. package/dist/nodes/Segment/actions/labels/index.js +221 -0
  46. package/dist/nodes/Segment/actions/labels/index.js.map +1 -0
  47. package/dist/nodes/Segment/actions/regulations/index.d.ts +5 -0
  48. package/dist/nodes/Segment/actions/regulations/index.d.ts.map +1 -0
  49. package/dist/nodes/Segment/actions/regulations/index.js +322 -0
  50. package/dist/nodes/Segment/actions/regulations/index.js.map +1 -0
  51. package/dist/nodes/Segment/actions/sources/index.d.ts +5 -0
  52. package/dist/nodes/Segment/actions/sources/index.d.ts.map +1 -0
  53. package/dist/nodes/Segment/actions/sources/index.js +371 -0
  54. package/dist/nodes/Segment/actions/sources/index.js.map +1 -0
  55. package/dist/nodes/Segment/actions/spaces/index.d.ts +5 -0
  56. package/dist/nodes/Segment/actions/spaces/index.d.ts.map +1 -0
  57. package/dist/nodes/Segment/actions/spaces/index.js +328 -0
  58. package/dist/nodes/Segment/actions/spaces/index.js.map +1 -0
  59. package/dist/nodes/Segment/actions/track/index.d.ts +5 -0
  60. package/dist/nodes/Segment/actions/track/index.d.ts.map +1 -0
  61. package/dist/nodes/Segment/actions/track/index.js +499 -0
  62. package/dist/nodes/Segment/actions/track/index.js.map +1 -0
  63. package/dist/nodes/Segment/actions/trackingPlans/index.d.ts +5 -0
  64. package/dist/nodes/Segment/actions/trackingPlans/index.d.ts.map +1 -0
  65. package/dist/nodes/Segment/actions/trackingPlans/index.js +340 -0
  66. package/dist/nodes/Segment/actions/trackingPlans/index.js.map +1 -0
  67. package/dist/nodes/Segment/actions/transformations/index.d.ts +5 -0
  68. package/dist/nodes/Segment/actions/transformations/index.d.ts.map +1 -0
  69. package/dist/nodes/Segment/actions/transformations/index.js +280 -0
  70. package/dist/nodes/Segment/actions/transformations/index.js.map +1 -0
  71. package/dist/nodes/Segment/actions/users/index.d.ts +5 -0
  72. package/dist/nodes/Segment/actions/users/index.d.ts.map +1 -0
  73. package/dist/nodes/Segment/actions/users/index.js +233 -0
  74. package/dist/nodes/Segment/actions/users/index.js.map +1 -0
  75. package/dist/nodes/Segment/actions/warehouses/index.d.ts +5 -0
  76. package/dist/nodes/Segment/actions/warehouses/index.d.ts.map +1 -0
  77. package/dist/nodes/Segment/actions/warehouses/index.js +313 -0
  78. package/dist/nodes/Segment/actions/warehouses/index.js.map +1 -0
  79. package/dist/nodes/Segment/actions/workspace/index.d.ts +5 -0
  80. package/dist/nodes/Segment/actions/workspace/index.d.ts.map +1 -0
  81. package/dist/nodes/Segment/actions/workspace/index.js +100 -0
  82. package/dist/nodes/Segment/actions/workspace/index.js.map +1 -0
  83. package/dist/nodes/Segment/constants/index.d.ts +23 -0
  84. package/dist/nodes/Segment/constants/index.d.ts.map +1 -0
  85. package/dist/nodes/Segment/constants/index.js +720 -0
  86. package/dist/nodes/Segment/constants/index.js.map +1 -0
  87. package/dist/nodes/Segment/segment.svg +6 -0
  88. package/dist/nodes/Segment/transport/index.d.ts +35 -0
  89. package/dist/nodes/Segment/transport/index.d.ts.map +1 -0
  90. package/dist/nodes/Segment/transport/index.js +127 -0
  91. package/dist/nodes/Segment/transport/index.js.map +1 -0
  92. package/dist/nodes/Segment/utils/index.d.ts +67 -0
  93. package/dist/nodes/Segment/utils/index.d.ts.map +1 -0
  94. package/dist/nodes/Segment/utils/index.js +216 -0
  95. package/dist/nodes/Segment/utils/index.js.map +1 -0
  96. package/package.json +73 -0
@@ -0,0 +1,371 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Velocity BPA, LLC
4
+ * Licensed under the Business Source License 1.1
5
+ * Commercial use requires a separate commercial license.
6
+ * See LICENSE file for details.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.sourcesFields = exports.sourcesOperations = void 0;
10
+ exports.executeSources = executeSources;
11
+ const transport_1 = require("../../transport");
12
+ const utils_1 = require("../../utils");
13
+ exports.sourcesOperations = [
14
+ {
15
+ displayName: 'Operation',
16
+ name: 'operation',
17
+ type: 'options',
18
+ noDataExpression: true,
19
+ displayOptions: {
20
+ show: {
21
+ resource: ['sources'],
22
+ },
23
+ },
24
+ options: [
25
+ {
26
+ name: 'Create',
27
+ value: 'create',
28
+ description: 'Create a new source',
29
+ action: 'Create a source',
30
+ },
31
+ {
32
+ name: 'Delete',
33
+ value: 'delete',
34
+ description: 'Delete a source',
35
+ action: 'Delete a source',
36
+ },
37
+ {
38
+ name: 'Get',
39
+ value: 'get',
40
+ description: 'Get a source by ID',
41
+ action: 'Get a source',
42
+ },
43
+ {
44
+ name: 'Get Connected Destinations',
45
+ value: 'getConnectedDestinations',
46
+ description: 'Get destinations connected to a source',
47
+ action: 'Get connected destinations',
48
+ },
49
+ {
50
+ name: 'Get Many',
51
+ value: 'getAll',
52
+ description: 'List all sources',
53
+ action: 'List all sources',
54
+ },
55
+ {
56
+ name: 'Get Schema',
57
+ value: 'getSchema',
58
+ description: 'Get source schema',
59
+ action: 'Get source schema',
60
+ },
61
+ {
62
+ name: 'Update',
63
+ value: 'update',
64
+ description: 'Update source settings',
65
+ action: 'Update a source',
66
+ },
67
+ {
68
+ name: 'Update Schema',
69
+ value: 'updateSchema',
70
+ description: 'Update source schema settings',
71
+ action: 'Update source schema',
72
+ },
73
+ ],
74
+ default: 'getAll',
75
+ },
76
+ ];
77
+ exports.sourcesFields = [
78
+ // Source ID field
79
+ {
80
+ displayName: 'Source ID',
81
+ name: 'sourceId',
82
+ type: 'string',
83
+ required: true,
84
+ default: '',
85
+ description: 'The unique identifier of the source',
86
+ displayOptions: {
87
+ show: {
88
+ resource: ['sources'],
89
+ operation: ['get', 'update', 'delete', 'getSchema', 'updateSchema', 'getConnectedDestinations'],
90
+ },
91
+ },
92
+ },
93
+ // Create fields
94
+ {
95
+ displayName: 'Source Slug',
96
+ name: 'slug',
97
+ type: 'string',
98
+ required: true,
99
+ default: '',
100
+ description: 'The slug/name for the source (e.g., "javascript", "python")',
101
+ displayOptions: {
102
+ show: {
103
+ resource: ['sources'],
104
+ operation: ['create'],
105
+ },
106
+ },
107
+ },
108
+ {
109
+ displayName: 'Source Name',
110
+ name: 'name',
111
+ type: 'string',
112
+ default: '',
113
+ description: 'Display name for the source',
114
+ displayOptions: {
115
+ show: {
116
+ resource: ['sources'],
117
+ operation: ['create'],
118
+ },
119
+ },
120
+ },
121
+ {
122
+ displayName: 'Enabled',
123
+ name: 'enabled',
124
+ type: 'boolean',
125
+ default: true,
126
+ description: 'Whether the source is enabled',
127
+ displayOptions: {
128
+ show: {
129
+ resource: ['sources'],
130
+ operation: ['create', 'update'],
131
+ },
132
+ },
133
+ },
134
+ // Update fields
135
+ {
136
+ displayName: 'Update Fields',
137
+ name: 'updateFields',
138
+ type: 'collection',
139
+ placeholder: 'Add Field',
140
+ default: {},
141
+ displayOptions: {
142
+ show: {
143
+ resource: ['sources'],
144
+ operation: ['update'],
145
+ },
146
+ },
147
+ options: [
148
+ {
149
+ displayName: 'Name',
150
+ name: 'name',
151
+ type: 'string',
152
+ default: '',
153
+ description: 'Display name for the source',
154
+ },
155
+ {
156
+ displayName: 'Enabled',
157
+ name: 'enabled',
158
+ type: 'boolean',
159
+ default: true,
160
+ description: 'Whether the source is enabled',
161
+ },
162
+ {
163
+ displayName: 'Settings (JSON)',
164
+ name: 'settings',
165
+ type: 'json',
166
+ default: '{}',
167
+ description: 'Source settings as JSON',
168
+ },
169
+ ],
170
+ },
171
+ // Schema update fields
172
+ {
173
+ displayName: 'Schema Settings',
174
+ name: 'schemaSettings',
175
+ type: 'collection',
176
+ placeholder: 'Add Setting',
177
+ default: {},
178
+ displayOptions: {
179
+ show: {
180
+ resource: ['sources'],
181
+ operation: ['updateSchema'],
182
+ },
183
+ },
184
+ options: [
185
+ {
186
+ displayName: 'Track',
187
+ name: 'track',
188
+ type: 'json',
189
+ default: '{}',
190
+ description: 'Track event schema settings',
191
+ },
192
+ {
193
+ displayName: 'Identify',
194
+ name: 'identify',
195
+ type: 'json',
196
+ default: '{}',
197
+ description: 'Identify event schema settings',
198
+ },
199
+ {
200
+ displayName: 'Group',
201
+ name: 'group',
202
+ type: 'json',
203
+ default: '{}',
204
+ description: 'Group event schema settings',
205
+ },
206
+ ],
207
+ },
208
+ // Pagination
209
+ {
210
+ displayName: 'Return All',
211
+ name: 'returnAll',
212
+ type: 'boolean',
213
+ default: false,
214
+ description: 'Whether to return all results or only up to a given limit',
215
+ displayOptions: {
216
+ show: {
217
+ resource: ['sources'],
218
+ operation: ['getAll', 'getConnectedDestinations'],
219
+ },
220
+ },
221
+ },
222
+ {
223
+ displayName: 'Limit',
224
+ name: 'limit',
225
+ type: 'number',
226
+ default: 50,
227
+ description: 'Max number of results to return',
228
+ typeOptions: {
229
+ minValue: 1,
230
+ maxValue: 200,
231
+ },
232
+ displayOptions: {
233
+ show: {
234
+ resource: ['sources'],
235
+ operation: ['getAll', 'getConnectedDestinations'],
236
+ returnAll: [false],
237
+ },
238
+ },
239
+ },
240
+ // Additional options for create
241
+ {
242
+ displayName: 'Additional Options',
243
+ name: 'additionalOptions',
244
+ type: 'collection',
245
+ placeholder: 'Add Option',
246
+ default: {},
247
+ displayOptions: {
248
+ show: {
249
+ resource: ['sources'],
250
+ operation: ['create'],
251
+ },
252
+ },
253
+ options: [
254
+ {
255
+ displayName: 'Metadata ID',
256
+ name: 'metadataId',
257
+ type: 'string',
258
+ default: '',
259
+ description: 'The catalog metadata ID for the source type',
260
+ },
261
+ {
262
+ displayName: 'Settings (JSON)',
263
+ name: 'settings',
264
+ type: 'json',
265
+ default: '{}',
266
+ description: 'Source-specific settings as JSON',
267
+ },
268
+ ],
269
+ },
270
+ ];
271
+ async function executeSources(index) {
272
+ const operation = this.getNodeParameter('operation', index);
273
+ let response;
274
+ if (operation === 'getAll') {
275
+ const returnAll = this.getNodeParameter('returnAll', index);
276
+ if (returnAll) {
277
+ response = await transport_1.publicApiRequestAllItems.call(this, 'GET', '/sources', 'sources');
278
+ }
279
+ else {
280
+ const limit = this.getNodeParameter('limit', index);
281
+ const result = await transport_1.publicApiRequest.call(this, 'GET', '/sources', {}, { count: limit });
282
+ response = result.sources;
283
+ }
284
+ }
285
+ else if (operation === 'get') {
286
+ const sourceId = this.getNodeParameter('sourceId', index);
287
+ const result = await transport_1.publicApiRequest.call(this, 'GET', `/sources/${sourceId}`);
288
+ response = result.source;
289
+ }
290
+ else if (operation === 'create') {
291
+ const slug = this.getNodeParameter('slug', index);
292
+ const name = this.getNodeParameter('name', index, '');
293
+ const enabled = this.getNodeParameter('enabled', index);
294
+ const additionalOptions = this.getNodeParameter('additionalOptions', index, {});
295
+ const body = {
296
+ slug,
297
+ enabled,
298
+ };
299
+ if (name) {
300
+ body.name = name;
301
+ }
302
+ if (additionalOptions.metadataId) {
303
+ body.metadataId = additionalOptions.metadataId;
304
+ }
305
+ if (additionalOptions.settings) {
306
+ body.settings = (0, utils_1.parseJson)(additionalOptions.settings);
307
+ }
308
+ const result = await transport_1.publicApiRequest.call(this, 'POST', '/sources', body);
309
+ response = result.source;
310
+ }
311
+ else if (operation === 'update') {
312
+ const sourceId = this.getNodeParameter('sourceId', index);
313
+ const updateFields = this.getNodeParameter('updateFields', index);
314
+ const body = {};
315
+ if (updateFields.name !== undefined) {
316
+ body.name = updateFields.name;
317
+ }
318
+ if (updateFields.enabled !== undefined) {
319
+ body.enabled = updateFields.enabled;
320
+ }
321
+ if (updateFields.settings) {
322
+ body.settings = (0, utils_1.parseJson)(updateFields.settings);
323
+ }
324
+ const result = await transport_1.publicApiRequest.call(this, 'PATCH', `/sources/${sourceId}`, body);
325
+ response = result.source;
326
+ }
327
+ else if (operation === 'delete') {
328
+ const sourceId = this.getNodeParameter('sourceId', index);
329
+ await transport_1.publicApiRequest.call(this, 'DELETE', `/sources/${sourceId}`);
330
+ response = { success: true, sourceId };
331
+ }
332
+ else if (operation === 'getSchema') {
333
+ const sourceId = this.getNodeParameter('sourceId', index);
334
+ response = await transport_1.publicApiRequest.call(this, 'GET', `/sources/${sourceId}/schema`);
335
+ }
336
+ else if (operation === 'updateSchema') {
337
+ const sourceId = this.getNodeParameter('sourceId', index);
338
+ const schemaSettings = this.getNodeParameter('schemaSettings', index);
339
+ const body = {};
340
+ if (schemaSettings.track) {
341
+ body.track = (0, utils_1.parseJson)(schemaSettings.track);
342
+ }
343
+ if (schemaSettings.identify) {
344
+ body.identify = (0, utils_1.parseJson)(schemaSettings.identify);
345
+ }
346
+ if (schemaSettings.group) {
347
+ body.group = (0, utils_1.parseJson)(schemaSettings.group);
348
+ }
349
+ response = await transport_1.publicApiRequest.call(this, 'PATCH', `/sources/${sourceId}/schema`, body);
350
+ }
351
+ else if (operation === 'getConnectedDestinations') {
352
+ const sourceId = this.getNodeParameter('sourceId', index);
353
+ const returnAll = this.getNodeParameter('returnAll', index);
354
+ if (returnAll) {
355
+ response = await transport_1.publicApiRequestAllItems.call(this, 'GET', `/sources/${sourceId}/connected-destinations`, 'destinations');
356
+ }
357
+ else {
358
+ const limit = this.getNodeParameter('limit', index);
359
+ const result = await transport_1.publicApiRequest.call(this, 'GET', `/sources/${sourceId}/connected-destinations`, {}, { count: limit });
360
+ response = result.destinations;
361
+ }
362
+ }
363
+ else {
364
+ throw new Error(`Unknown operation: ${operation}`);
365
+ }
366
+ const executionData = Array.isArray(response)
367
+ ? response.map((item) => ({ json: item }))
368
+ : [{ json: response }];
369
+ return executionData;
370
+ }
371
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Segment/actions/sources/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA0QH,wCAuIC;AA9YD,+CAA6E;AAC7E,uCAAwC;AAE3B,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,oBAAoB;gBACjC,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,4BAA4B;gBAClC,KAAK,EAAE,0BAA0B;gBACjC,WAAW,EAAE,wCAAwC;gBACrD,MAAM,EAAE,4BAA4B;aACpC;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,mBAAmB;aAC3B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K,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;YAC9D,MAAM,MAAM,GAAG,MAAM,4BAAgB,CAAC,IAAI,CACzC,IAAI,EACJ,KAAK,EACL,YAAY,QAAQ,yBAAyB,EAC7C,EAAE,EACF,EAAE,KAAK,EAAE,KAAK,EAAE,CAChB,CAAC;YACF,QAAQ,GAAG,MAAM,CAAC,YAA6B,CAAC;QACjD,CAAC;IACF,CAAC;SAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,sBAAsB,SAAS,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;QAC5C,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAExB,OAAO,aAAa,CAAC;AACtB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
2
+ export declare const spacesOperations: INodeProperties[];
3
+ export declare const spacesFields: INodeProperties[];
4
+ export declare function executeSpaces(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../nodes/Segment/actions/spaces/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIxG,eAAO,MAAM,gBAAgB,EAAE,eAAe,EAyD7C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,EAkKzC,CAAC;AAEF,wBAAsB,aAAa,CAClC,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAyI/B"}