@fairspec/agent 0.9.3 → 0.11.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fairspec/agent",
3
3
  "type": "module",
4
- "version": "0.9.3",
4
+ "version": "0.11.0",
5
5
  "exports": "./build/index.js",
6
6
  "sideEffects": false,
7
7
  "files": [
package/build/server.js CHANGED
@@ -5,7 +5,7 @@ import { inferDataSchemaTool } from "./tools/dataSchema/infer.js";
5
5
  import { validateDataSchemaTool } from "./tools/dataSchema/validate.js";
6
6
  import { inferDatasetTool } from "./tools/dataset/infer.js";
7
7
  import { validateDatasetTool } from "./tools/dataset/validate.js";
8
- import { inferDialectTool } from "./tools/dialect/infer.js";
8
+ import { inferFileDialectTool } from "./tools/fileDialect/infer.js";
9
9
  import { queryTableTool } from "./tools/table/query.js";
10
10
  import { validateTableTool } from "./tools/table/validate.js";
11
11
  import { inferTableSchemaTool } from "./tools/tableSchema/infer.js";
@@ -17,7 +17,7 @@ export const server = new MCPServer({
17
17
  tools: {
18
18
  inferDataSchemaTool,
19
19
  inferDatasetTool,
20
- inferDialectTool,
20
+ inferFileDialectTool,
21
21
  inferTableSchemaTool,
22
22
  queryTableTool,
23
23
  validateDataSchemaTool,
@@ -27,4 +27,4 @@ export const server = new MCPServer({
27
27
  validateTableTool,
28
28
  },
29
29
  });
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc2VydmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxhQUFhLENBQUE7QUFDdkMsT0FBTyxXQUFXLE1BQU0sZ0JBQWdCLENBQUMsT0FBTyxJQUFJLEVBQUUsTUFBTSxFQUFFLENBQUE7QUFDOUQsT0F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cbiAgICB2YWxpZGF0ZURhdGFzZXRUb29sLFxuICAgIHZhbGlkYXRlRGF0YVRvb2wsXG4gICAgdmFsaWRhdGVUYWJsZVNjaGVtYVRvb2wsXG4gICAgdmFsaWRhdGVUYWJsZVRvb2wsXG4gIH0sXG59KVxuIl19
@@ -197,7 +197,11 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
197
197
  data?: unknown;
198
198
  name?: string | undefined;
199
199
  textual?: boolean | undefined;
200
- dialect?: string | {
200
+ integrity?: {
201
+ type: "md5" | "sha1" | "sha256" | "sha512";
202
+ hash: string;
203
+ } | undefined;
204
+ fileDialect?: string | {
201
205
  format: "csv";
202
206
  $schema?: string | undefined;
203
207
  title?: string | undefined;
@@ -287,18 +291,15 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
287
291
  title?: string | undefined;
288
292
  description?: string | undefined;
289
293
  } | undefined;
290
- integrity?: {
291
- type: "md5" | "sha1" | "sha256" | "sha512";
292
- hash: string;
293
- } | undefined;
294
294
  dataSchema?: string | Record<string, unknown> | undefined;
295
295
  tableSchema?: string | {
296
296
  $schema?: string | undefined;
297
297
  title?: string | undefined;
298
298
  description?: string | undefined;
299
299
  required?: string[] | undefined;
300
+ allRequired?: boolean | undefined;
300
301
  properties?: Record<string, {
301
- type: "boolean";
302
+ type: "boolean" | ["boolean", "null"] | ["null", "boolean"];
302
303
  title?: string | undefined;
303
304
  description?: string | undefined;
304
305
  rdfType?: string | undefined;
@@ -314,7 +315,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
314
315
  trueValues?: string[] | undefined;
315
316
  falseValues?: string[] | undefined;
316
317
  } | {
317
- type: "integer";
318
+ type: "integer" | ["integer", "null"] | ["null", "integer"];
318
319
  title?: string | undefined;
319
320
  description?: string | undefined;
320
321
  rdfType?: string | undefined;
@@ -335,7 +336,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
335
336
  withText?: boolean | undefined;
336
337
  format?: "" | undefined;
337
338
  } | {
338
- type: "integer";
339
+ type: "integer" | ["integer", "null"] | ["null", "integer"];
339
340
  format: "categorical";
340
341
  title?: string | undefined;
341
342
  description?: string | undefined;
@@ -361,7 +362,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
361
362
  })[] | undefined;
362
363
  withOrder?: boolean | undefined;
363
364
  } | {
364
- type: "number";
365
+ type: "number" | ["number", "null"] | ["null", "number"];
365
366
  title?: string | undefined;
366
367
  description?: string | undefined;
367
368
  rdfType?: string | undefined;
@@ -383,7 +384,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
383
384
  withText?: boolean | undefined;
384
385
  format?: "" | undefined;
385
386
  } | {
386
- type: "string";
387
+ type: "string" | ["string", "null"] | ["null", "string"];
387
388
  format: "list";
388
389
  title?: string | undefined;
389
390
  description?: string | undefined;
@@ -404,7 +405,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
404
405
  minItems?: number | undefined;
405
406
  maxItems?: number | undefined;
406
407
  } | {
407
- type: "string";
408
+ type: "string" | ["string", "null"] | ["null", "string"];
408
409
  format: "base64";
409
410
  title?: string | undefined;
410
411
  description?: string | undefined;
@@ -421,7 +422,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
421
422
  maxLength?: number | undefined;
422
423
  pattern?: string | undefined;
423
424
  } | {
424
- type: "string";
425
+ type: "string" | ["string", "null"] | ["null", "string"];
425
426
  format: "hex";
426
427
  title?: string | undefined;
427
428
  description?: string | undefined;
@@ -438,7 +439,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
438
439
  maxLength?: number | undefined;
439
440
  pattern?: string | undefined;
440
441
  } | {
441
- type: "string";
442
+ type: "string" | ["string", "null"] | ["null", "string"];
442
443
  format: "email";
443
444
  title?: string | undefined;
444
445
  description?: string | undefined;
@@ -455,7 +456,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
455
456
  maxLength?: number | undefined;
456
457
  pattern?: string | undefined;
457
458
  } | {
458
- type: "string";
459
+ type: "string" | ["string", "null"] | ["null", "string"];
459
460
  format: "url";
460
461
  title?: string | undefined;
461
462
  description?: string | undefined;
@@ -472,7 +473,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
472
473
  maxLength?: number | undefined;
473
474
  pattern?: string | undefined;
474
475
  } | {
475
- type: "string";
476
+ type: "string" | ["string", "null"] | ["null", "string"];
476
477
  format: "date-time";
477
478
  title?: string | undefined;
478
479
  description?: string | undefined;
@@ -490,7 +491,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
490
491
  pattern?: string | undefined;
491
492
  temporalFormat?: string | undefined;
492
493
  } | {
493
- type: "string";
494
+ type: "string" | ["string", "null"] | ["null", "string"];
494
495
  format: "date";
495
496
  title?: string | undefined;
496
497
  description?: string | undefined;
@@ -508,7 +509,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
508
509
  pattern?: string | undefined;
509
510
  temporalFormat?: string | undefined;
510
511
  } | {
511
- type: "string";
512
+ type: "string" | ["string", "null"] | ["null", "string"];
512
513
  format: "time";
513
514
  title?: string | undefined;
514
515
  description?: string | undefined;
@@ -526,7 +527,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
526
527
  pattern?: string | undefined;
527
528
  temporalFormat?: string | undefined;
528
529
  } | {
529
- type: "string";
530
+ type: "string" | ["string", "null"] | ["null", "string"];
530
531
  format: "duration";
531
532
  title?: string | undefined;
532
533
  description?: string | undefined;
@@ -543,7 +544,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
543
544
  maxLength?: number | undefined;
544
545
  pattern?: string | undefined;
545
546
  } | {
546
- type: "string";
547
+ type: "string" | ["string", "null"] | ["null", "string"];
547
548
  format: "wkt";
548
549
  title?: string | undefined;
549
550
  description?: string | undefined;
@@ -560,7 +561,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
560
561
  maxLength?: number | undefined;
561
562
  pattern?: string | undefined;
562
563
  } | {
563
- type: "string";
564
+ type: "string" | ["string", "null"] | ["null", "string"];
564
565
  format: "wkb";
565
566
  title?: string | undefined;
566
567
  description?: string | undefined;
@@ -577,7 +578,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
577
578
  maxLength?: number | undefined;
578
579
  pattern?: string | undefined;
579
580
  } | {
580
- type: "string";
581
+ type: "string" | ["string", "null"] | ["null", "string"];
581
582
  title?: string | undefined;
582
583
  description?: string | undefined;
583
584
  rdfType?: string | undefined;
@@ -594,7 +595,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
594
595
  pattern?: string | undefined;
595
596
  format?: "" | undefined;
596
597
  } | {
597
- type: "string";
598
+ type: "string" | ["string", "null"] | ["null", "string"];
598
599
  format: "categorical";
599
600
  title?: string | undefined;
600
601
  description?: string | undefined;
@@ -616,7 +617,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
616
617
  })[] | undefined;
617
618
  withOrder?: boolean | undefined;
618
619
  } | {
619
- type: "string";
620
+ type: "string" | ["string", "null"] | ["null", "string"];
620
621
  format: "decimal";
621
622
  title?: string | undefined;
622
623
  description?: string | undefined;
@@ -641,7 +642,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
641
642
  groupChar?: string | undefined;
642
643
  withText?: boolean | undefined;
643
644
  } | {
644
- type: "array";
645
+ type: "array" | ["array", "null"] | ["null", "array"];
645
646
  title?: string | undefined;
646
647
  description?: string | undefined;
647
648
  rdfType?: string | undefined;
@@ -671,7 +672,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
671
672
  minItems?: number | undefined;
672
673
  uniqueItems?: boolean | undefined;
673
674
  } | {
674
- type: "object";
675
+ type: "object" | ["object", "null"] | ["null", "object"];
675
676
  format: "geojson";
676
677
  title?: string | undefined;
677
678
  description?: string | undefined;
@@ -702,7 +703,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
702
703
  dependentSchemas?: unknown;
703
704
  required?: unknown;
704
705
  } | {
705
- type: "object";
706
+ type: "object" | ["object", "null"] | ["null", "object"];
706
707
  format: "topojson";
707
708
  title?: string | undefined;
708
709
  description?: string | undefined;
@@ -733,7 +734,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
733
734
  dependentSchemas?: unknown;
734
735
  required?: unknown;
735
736
  } | {
736
- type: "object";
737
+ type: "object" | ["object", "null"] | ["null", "object"];
737
738
  title?: string | undefined;
738
739
  description?: string | undefined;
739
740
  rdfType?: string | undefined;
@@ -842,7 +843,7 @@ export declare const validateDataTool: import("@mastra/core/tools").Tool<{
842
843
  columnName: string;
843
844
  rowNumber: number;
844
845
  cell: string;
845
- type: "cell/required";
846
+ type: "cell/missing";
846
847
  resourceName?: string | undefined;
847
848
  } | {
848
849
  columnName: string;
@@ -197,7 +197,11 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
197
197
  data?: unknown;
198
198
  name?: string | undefined;
199
199
  textual?: boolean | undefined;
200
- dialect?: string | {
200
+ integrity?: {
201
+ type: "md5" | "sha1" | "sha256" | "sha512";
202
+ hash: string;
203
+ } | undefined;
204
+ fileDialect?: string | {
201
205
  format: "csv";
202
206
  $schema?: string | undefined;
203
207
  title?: string | undefined;
@@ -287,18 +291,15 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
287
291
  title?: string | undefined;
288
292
  description?: string | undefined;
289
293
  } | undefined;
290
- integrity?: {
291
- type: "md5" | "sha1" | "sha256" | "sha512";
292
- hash: string;
293
- } | undefined;
294
294
  dataSchema?: string | Record<string, unknown> | undefined;
295
295
  tableSchema?: string | {
296
296
  $schema?: string | undefined;
297
297
  title?: string | undefined;
298
298
  description?: string | undefined;
299
299
  required?: string[] | undefined;
300
+ allRequired?: boolean | undefined;
300
301
  properties?: Record<string, {
301
- type: "boolean";
302
+ type: "boolean" | ["boolean", "null"] | ["null", "boolean"];
302
303
  title?: string | undefined;
303
304
  description?: string | undefined;
304
305
  rdfType?: string | undefined;
@@ -314,7 +315,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
314
315
  trueValues?: string[] | undefined;
315
316
  falseValues?: string[] | undefined;
316
317
  } | {
317
- type: "integer";
318
+ type: "integer" | ["integer", "null"] | ["null", "integer"];
318
319
  title?: string | undefined;
319
320
  description?: string | undefined;
320
321
  rdfType?: string | undefined;
@@ -335,7 +336,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
335
336
  withText?: boolean | undefined;
336
337
  format?: "" | undefined;
337
338
  } | {
338
- type: "integer";
339
+ type: "integer" | ["integer", "null"] | ["null", "integer"];
339
340
  format: "categorical";
340
341
  title?: string | undefined;
341
342
  description?: string | undefined;
@@ -361,7 +362,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
361
362
  })[] | undefined;
362
363
  withOrder?: boolean | undefined;
363
364
  } | {
364
- type: "number";
365
+ type: "number" | ["number", "null"] | ["null", "number"];
365
366
  title?: string | undefined;
366
367
  description?: string | undefined;
367
368
  rdfType?: string | undefined;
@@ -383,7 +384,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
383
384
  withText?: boolean | undefined;
384
385
  format?: "" | undefined;
385
386
  } | {
386
- type: "string";
387
+ type: "string" | ["string", "null"] | ["null", "string"];
387
388
  format: "list";
388
389
  title?: string | undefined;
389
390
  description?: string | undefined;
@@ -404,7 +405,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
404
405
  minItems?: number | undefined;
405
406
  maxItems?: number | undefined;
406
407
  } | {
407
- type: "string";
408
+ type: "string" | ["string", "null"] | ["null", "string"];
408
409
  format: "base64";
409
410
  title?: string | undefined;
410
411
  description?: string | undefined;
@@ -421,7 +422,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
421
422
  maxLength?: number | undefined;
422
423
  pattern?: string | undefined;
423
424
  } | {
424
- type: "string";
425
+ type: "string" | ["string", "null"] | ["null", "string"];
425
426
  format: "hex";
426
427
  title?: string | undefined;
427
428
  description?: string | undefined;
@@ -438,7 +439,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
438
439
  maxLength?: number | undefined;
439
440
  pattern?: string | undefined;
440
441
  } | {
441
- type: "string";
442
+ type: "string" | ["string", "null"] | ["null", "string"];
442
443
  format: "email";
443
444
  title?: string | undefined;
444
445
  description?: string | undefined;
@@ -455,7 +456,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
455
456
  maxLength?: number | undefined;
456
457
  pattern?: string | undefined;
457
458
  } | {
458
- type: "string";
459
+ type: "string" | ["string", "null"] | ["null", "string"];
459
460
  format: "url";
460
461
  title?: string | undefined;
461
462
  description?: string | undefined;
@@ -472,7 +473,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
472
473
  maxLength?: number | undefined;
473
474
  pattern?: string | undefined;
474
475
  } | {
475
- type: "string";
476
+ type: "string" | ["string", "null"] | ["null", "string"];
476
477
  format: "date-time";
477
478
  title?: string | undefined;
478
479
  description?: string | undefined;
@@ -490,7 +491,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
490
491
  pattern?: string | undefined;
491
492
  temporalFormat?: string | undefined;
492
493
  } | {
493
- type: "string";
494
+ type: "string" | ["string", "null"] | ["null", "string"];
494
495
  format: "date";
495
496
  title?: string | undefined;
496
497
  description?: string | undefined;
@@ -508,7 +509,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
508
509
  pattern?: string | undefined;
509
510
  temporalFormat?: string | undefined;
510
511
  } | {
511
- type: "string";
512
+ type: "string" | ["string", "null"] | ["null", "string"];
512
513
  format: "time";
513
514
  title?: string | undefined;
514
515
  description?: string | undefined;
@@ -526,7 +527,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
526
527
  pattern?: string | undefined;
527
528
  temporalFormat?: string | undefined;
528
529
  } | {
529
- type: "string";
530
+ type: "string" | ["string", "null"] | ["null", "string"];
530
531
  format: "duration";
531
532
  title?: string | undefined;
532
533
  description?: string | undefined;
@@ -543,7 +544,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
543
544
  maxLength?: number | undefined;
544
545
  pattern?: string | undefined;
545
546
  } | {
546
- type: "string";
547
+ type: "string" | ["string", "null"] | ["null", "string"];
547
548
  format: "wkt";
548
549
  title?: string | undefined;
549
550
  description?: string | undefined;
@@ -560,7 +561,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
560
561
  maxLength?: number | undefined;
561
562
  pattern?: string | undefined;
562
563
  } | {
563
- type: "string";
564
+ type: "string" | ["string", "null"] | ["null", "string"];
564
565
  format: "wkb";
565
566
  title?: string | undefined;
566
567
  description?: string | undefined;
@@ -577,7 +578,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
577
578
  maxLength?: number | undefined;
578
579
  pattern?: string | undefined;
579
580
  } | {
580
- type: "string";
581
+ type: "string" | ["string", "null"] | ["null", "string"];
581
582
  title?: string | undefined;
582
583
  description?: string | undefined;
583
584
  rdfType?: string | undefined;
@@ -594,7 +595,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
594
595
  pattern?: string | undefined;
595
596
  format?: "" | undefined;
596
597
  } | {
597
- type: "string";
598
+ type: "string" | ["string", "null"] | ["null", "string"];
598
599
  format: "categorical";
599
600
  title?: string | undefined;
600
601
  description?: string | undefined;
@@ -616,7 +617,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
616
617
  })[] | undefined;
617
618
  withOrder?: boolean | undefined;
618
619
  } | {
619
- type: "string";
620
+ type: "string" | ["string", "null"] | ["null", "string"];
620
621
  format: "decimal";
621
622
  title?: string | undefined;
622
623
  description?: string | undefined;
@@ -641,7 +642,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
641
642
  groupChar?: string | undefined;
642
643
  withText?: boolean | undefined;
643
644
  } | {
644
- type: "array";
645
+ type: "array" | ["array", "null"] | ["null", "array"];
645
646
  title?: string | undefined;
646
647
  description?: string | undefined;
647
648
  rdfType?: string | undefined;
@@ -671,7 +672,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
671
672
  minItems?: number | undefined;
672
673
  uniqueItems?: boolean | undefined;
673
674
  } | {
674
- type: "object";
675
+ type: "object" | ["object", "null"] | ["null", "object"];
675
676
  format: "geojson";
676
677
  title?: string | undefined;
677
678
  description?: string | undefined;
@@ -702,7 +703,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
702
703
  dependentSchemas?: unknown;
703
704
  required?: unknown;
704
705
  } | {
705
- type: "object";
706
+ type: "object" | ["object", "null"] | ["null", "object"];
706
707
  format: "topojson";
707
708
  title?: string | undefined;
708
709
  description?: string | undefined;
@@ -733,7 +734,7 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
733
734
  dependentSchemas?: unknown;
734
735
  required?: unknown;
735
736
  } | {
736
- type: "object";
737
+ type: "object" | ["object", "null"] | ["null", "object"];
737
738
  title?: string | undefined;
738
739
  description?: string | undefined;
739
740
  rdfType?: string | undefined;
@@ -795,5 +796,5 @@ export declare const inferDataSchemaTool: import("@mastra/core/tools").Tool<{
795
796
  unstable_customMetadata?: Record<string, unknown> | undefined;
796
797
  };
797
798
  }, {
798
- schema?: Record<string, unknown> | undefined;
799
+ dataSchema?: Record<string, unknown> | undefined;
799
800
  }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "infer-data-schema", unknown>;
@@ -8,11 +8,11 @@ export const inferDataSchemaTool = createTool({
8
8
  resource: Resource.describe("The data resource to infer schema from"),
9
9
  }),
10
10
  outputSchema: z.object({
11
- schema: DataSchema.optional(),
11
+ dataSchema: DataSchema.optional(),
12
12
  }),
13
13
  execute: async (input) => {
14
- const schema = await inferDataSchema(input.resource);
15
- return { schema };
14
+ const dataSchema = await inferDataSchema(input.resource);
15
+ return { dataSchema };
16
16
  },
17
17
  });
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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