@salesforce/plugin-signups 2.3.6 → 2.3.8

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -123,7 +123,7 @@ EXAMPLES
123
123
  $ sf org create shape --target-org SourceOrg
124
124
  ```
125
125
 
126
- _See code: [src/commands/org/create/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.6/src/commands/org/create/shape.ts)_
126
+ _See code: [src/commands/org/create/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.8/src/commands/org/create/shape.ts)_
127
127
 
128
128
  ## `sf org create snapshot`
129
129
 
@@ -179,7 +179,7 @@ FLAG DESCRIPTIONS
179
179
  as a version control system tag or commit ID.
180
180
  ```
181
181
 
182
- _See code: [src/commands/org/create/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.6/src/commands/org/create/snapshot.ts)_
182
+ _See code: [src/commands/org/create/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.8/src/commands/org/create/snapshot.ts)_
183
183
 
184
184
  ## `sf org delete shape`
185
185
 
@@ -219,7 +219,7 @@ EXAMPLES
219
219
  $ sf org delete shape --target-org SourceOrg --no-prompt
220
220
  ```
221
221
 
222
- _See code: [src/commands/org/delete/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.6/src/commands/org/delete/shape.ts)_
222
+ _See code: [src/commands/org/delete/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.8/src/commands/org/delete/shape.ts)_
223
223
 
224
224
  ## `sf org delete snapshot`
225
225
 
@@ -264,7 +264,7 @@ FLAG DESCRIPTIONS
264
264
  The IDs of scratch org snapshots start with 0Oo.
265
265
  ```
266
266
 
267
- _See code: [src/commands/org/delete/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.6/src/commands/org/delete/snapshot.ts)_
267
+ _See code: [src/commands/org/delete/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.8/src/commands/org/delete/snapshot.ts)_
268
268
 
269
269
  ## `sf org get snapshot`
270
270
 
@@ -311,7 +311,7 @@ FLAG DESCRIPTIONS
311
311
  The IDs of scratch org snapshots start with 0Oo.
312
312
  ```
313
313
 
314
- _See code: [src/commands/org/get/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.6/src/commands/org/get/snapshot.ts)_
314
+ _See code: [src/commands/org/get/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.8/src/commands/org/get/snapshot.ts)_
315
315
 
316
316
  ## `sf org list shape`
317
317
 
@@ -344,7 +344,7 @@ EXAMPLES
344
344
  $ sf org list shape --json > tmp/MyOrgShapeList.json
345
345
  ```
346
346
 
347
- _See code: [src/commands/org/list/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.6/src/commands/org/list/shape.ts)_
347
+ _See code: [src/commands/org/list/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.8/src/commands/org/list/shape.ts)_
348
348
 
349
349
  ## `sf org list snapshot`
350
350
 
@@ -386,6 +386,6 @@ EXAMPLES
386
386
  $ sf org list snapshot --target-dev-hub SnapshotDevHub
387
387
  ```
388
388
 
389
- _See code: [src/commands/org/list/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.6/src/commands/org/list/snapshot.ts)_
389
+ _See code: [src/commands/org/list/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.8/src/commands/org/list/snapshot.ts)_
390
390
 
391
391
  <!-- commandsstop -->
@@ -11,9 +11,9 @@ export declare class OrgShapeCreateCommand extends SfCommand<ShapeCreateResult>
11
11
  static readonly aliases: string[];
12
12
  static readonly deprecateAliases = true;
13
13
  static readonly flags: {
14
- 'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
15
- 'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
16
- loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
14
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
15
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
17
  };
18
18
  run(): Promise<ShapeCreateResult>;
19
19
  }
@@ -8,12 +8,12 @@ export declare class SnapshotCreate extends SfCommand<OrgSnapshot> {
8
8
  static readonly deprecateAliases = true;
9
9
  static readonly state = "beta";
10
10
  static readonly flags: {
11
- 'target-dev-hub': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
- 'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
- loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
14
- 'source-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
15
- name: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
16
- description: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
11
+ 'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
12
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ 'source-org': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
+ name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
16
+ description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
17
  };
18
18
  run(): Promise<OrgSnapshot>;
19
19
  }
@@ -10,10 +10,10 @@ export declare class OrgShapeDeleteCommand extends SfCommand<OrgShapeDeleteResul
10
10
  static readonly aliases: string[];
11
11
  static readonly deprecateAliases = true;
12
12
  static readonly flags: {
13
- 'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
14
- 'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
15
- loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
16
- 'no-prompt': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
13
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
14
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ 'no-prompt': import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  };
18
18
  run(): Promise<OrgShapeDeleteResult | undefined>;
19
19
  }
@@ -8,11 +8,11 @@ export declare class SnapshotDelete extends SfCommand<SaveResult | undefined> {
8
8
  static readonly deprecateAliases = true;
9
9
  static readonly state = "beta";
10
10
  static readonly flags: {
11
- 'target-dev-hub': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
- 'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
- loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
14
- snapshot: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
15
- 'no-prompt': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
11
+ 'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
12
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ snapshot: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
+ 'no-prompt': import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  };
17
17
  run(): Promise<SaveResult | undefined>;
18
18
  }
@@ -8,10 +8,10 @@ export declare class SnapshotGet extends SfCommand<OrgSnapshot> {
8
8
  static readonly deprecateAliases = true;
9
9
  static readonly state = "beta";
10
10
  static readonly flags: {
11
- 'target-dev-hub': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
- 'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
- loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
14
- snapshot: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
11
+ 'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
12
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ snapshot: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
15
  };
16
16
  run(): Promise<OrgSnapshot>;
17
17
  }
@@ -7,8 +7,8 @@ export declare class OrgShapeListCommand extends SfCommand<OrgShapeListResult[]>
7
7
  static readonly aliases: string[];
8
8
  static readonly deprecateAliases = true;
9
9
  static readonly flags: {
10
- verbose: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
11
- loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
10
+ verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
11
+ loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
12
  };
13
13
  run(): Promise<OrgShapeListResult[]>;
14
14
  }
@@ -4,9 +4,8 @@
4
4
  * Licensed under the BSD 3-Clause license.
5
5
  * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
6
  */
7
- import { Flags, loglevel, SfCommand } from '@salesforce/sf-plugins-core';
7
+ import { Flags, loglevel, SfCommand, StandardColors } from '@salesforce/sf-plugins-core';
8
8
  import { Messages } from '@salesforce/core';
9
- import chalk from 'chalk';
10
9
  import utils from '../../../shared/orgShapeListUtils.js';
11
10
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
12
11
  const messages = Messages.loadMessages('@salesforce/plugin-signups', 'shape.list');
@@ -46,7 +45,7 @@ export class OrgShapeListCommand extends SfCommand {
46
45
  return orgShapes;
47
46
  }
48
47
  this.styledHeader('Org Shapes');
49
- this.table(orgShapes.map((shape) => (shape.status === 'Active' ? { ...shape, status: chalk.green(shape.status) } : shape)), orgShapeColumns);
48
+ this.table(orgShapes.map((shape) => shape.status === 'Active' ? { ...shape, status: StandardColors.success(shape.status) } : shape), orgShapeColumns);
50
49
  return orgShapes;
51
50
  }
52
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"shape.js","sourceRoot":"","sources":["../../../../src/commands/org/list/shape.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAA6B,MAAM,sCAAsC,CAAC;AAEjF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,YAAY,CAAC,CAAC;AAEnF,qCAAqC;AACrC,MAAM,eAAe,GAAG;IACtB,KAAK,EAAE;QACL,MAAM,EAAE,OAAO;QACf,GAAG,EAAE,CAAC,IAAwB,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;KAC5D;IACD,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;IAChC,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;IAC3B,MAAM,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE;IAClC,SAAS,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;IACnC,WAAW,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE;CACxC,CAAC;AAEF,MAAM,OAAO,mBAAoB,SAAQ,SAA+B;IAC/D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC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,KAAK,CAAC,OAAO,CAAC;YACrB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;YACrD,MAAM,EAAE,IAAI;SACb,CAAC;QACF,QAAQ;KACT,CAAC;IAEF,kDAAkD;IAClD,wDAAwD;IACjD,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,KAAK,CAAC,oCAAoC,EAAE,CAAC;QACjF,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACpC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,IAAI,CAAC,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC;YAC9C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;QAChC,IAAI,CAAC,KAAK,CACR,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACtB,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAC/F,EACD,eAAe,CAChB,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC"}
@@ -8,9 +8,9 @@ export declare class SnapshotList extends SfCommand<OrgSnapshot[]> {
8
8
  static readonly deprecateAliases = true;
9
9
  static readonly state = "beta";
10
10
  static readonly flags: {
11
- 'target-dev-hub': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
- 'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
- loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
11
+ 'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
12
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
14
  };
15
15
  run(): Promise<OrgSnapshot[]>;
16
16
  }
@@ -4,7 +4,7 @@
4
4
  * Licensed under the BSD 3-Clause license.
5
5
  * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
6
  */
7
- import { ux } from '@oclif/core';
7
+ import { Ux } from '@salesforce/sf-plugins-core';
8
8
  import { SfError, Messages } from '@salesforce/core';
9
9
  import { capitalCase } from 'change-case';
10
10
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
@@ -78,7 +78,7 @@ export const queryByNameOrId = async (conn, nameOrId) => {
78
78
  }
79
79
  };
80
80
  export const printSingleRecordTable = (snapshotRecord) => {
81
- ux.table(Object.entries(snapshotRecord)
81
+ new Ux().table(Object.entries(snapshotRecord)
82
82
  .filter(([key]) => key !== 'attributes')
83
83
  // remove empty error field
84
84
  .filter(([key, value]) => key !== 'Error' || typeof value === 'string')
@@ -93,10 +93,10 @@ export const printSingleRecordTable = (snapshotRecord) => {
93
93
  };
94
94
  export const printRecordTable = (snapshotRecords) => {
95
95
  if (snapshotRecords.length === 0) {
96
- ux.log('No snapshots found');
96
+ new Ux().log('No snapshots found');
97
97
  return;
98
98
  }
99
- ux.table(
99
+ new Ux().table(
100
100
  // we know what columns we want, so filter out the other fields
101
101
  snapshotRecords.map((s) => Object.fromEntries(Object.entries(s).filter(([key]) => Object.keys(ORG_SNAPSHOT_COLUMNS).includes(key)))), ORG_SNAPSHOT_COLUMNS, { title: `Org Snapshots [${snapshotRecords.length}]`, 'no-truncate': true });
102
102
  };
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/shared/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAc,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,UAAU,CAAC,CAAC;AAkBxF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI;IACJ,cAAc;IACd,aAAa;IACb,QAAQ;IACR,WAAW;IACX,aAAa;IACb,kBAAkB;IAClB,gBAAgB;IAChB,OAAO;CACR,CAAC;AACF,MAAM,iBAAiB,GAAG,CAAC,UAAmB,EAAU,EAAE,CACxD,UAAU;IACR,CAAC,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,cAAc,CAAC,SAAS,EAAE;QAC7C,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;QACf,GAAG,EAAE,SAAS;QACd,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,SAAS;KAClB,CAAC;IACJ,CAAC,CAAC,EAAE,CAAC;AAET,MAAM,oBAAoB,GAAG,CAAC,GAAgB,EAAE,KAAwB,EAAU,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AAEnH,MAAM,oBAAoB,GAAG;IAC3B,EAAE,EAAE,EAAE;IACN,YAAY,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE;IACzC,MAAM,EAAE,EAAE;IACV,SAAS,E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