@fgv/ts-utils 4.5.0 → 4.5.1

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/CHANGELOG.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "@fgv/ts-utils",
3
3
  "entries": [
4
+ {
5
+ "version": "4.5.1",
6
+ "tag": "@fgv/ts-utils_v4.5.1",
7
+ "date": "Mon, 01 Jul 2025 21:51:00 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Fix TypeScript compilation error: replace non-existent MapIterator type with IterableIterator in iterator method return types"
12
+ }
13
+ ]
14
+ }
15
+ },
4
16
  {
5
17
  "version": "4.5.0",
6
18
  "tag": "@fgv/ts-utils_v4.5.0",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @fgv/ts-utils
2
2
 
3
- This log was last generated on Tue, 01 Jul 2025 03:26:11 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 01 Jul 2025 21:51:00 GMT and should not be manually modified.
4
+
5
+ ## 4.5.1
6
+ Mon, 01 Jul 2025 21:51:00 GMT
7
+
8
+ ### Patches
9
+
10
+ - Fix TypeScript compilation error: replace non-existent MapIterator type with IterableIterator in iterator method return types
4
11
 
5
12
  ## 4.5.0
6
13
  Tue, 01 Jul 2025 03:26:11 GMT
@@ -444,7 +444,7 @@ declare class Collectible<TKEY extends string = string, TINDEX extends number =
444
444
  /**
445
445
  * {@inheritdoc Collections.ResultMap.entries}
446
446
  */
447
- entries(): MapIterator<KeyValueEntry<CollectibleKey<TITEM>, TITEM>>;
447
+ entries(): IterableIterator<KeyValueEntry<CollectibleKey<TITEM>, TITEM>>;
448
448
  /**
449
449
  * {@inheritdoc Collections.ResultMap.forEach}
450
450
  */
@@ -1879,7 +1879,7 @@ declare class Collectible<TKEY extends string = string, TINDEX extends number =
1879
1879
  /**
1880
1880
  * {@inheritdoc Collections.ResultMap.entries}
1881
1881
  */
1882
- entries(): MapIterator<KeyValueEntry<TK, TV>>;
1882
+ entries(): IterableIterator<KeyValueEntry<TK, TV>>;
1883
1883
  /**
1884
1884
  * {@inheritdoc Collections.ResultMap.forEach}
1885
1885
  */
@@ -1895,11 +1895,11 @@ declare class Collectible<TKEY extends string = string, TINDEX extends number =
1895
1895
  /**
1896
1896
  * {@inheritdoc Collections.ResultMap.keys}
1897
1897
  */
1898
- keys(): MapIterator<TK>;
1898
+ keys(): IterableIterator<TK>;
1899
1899
  /**
1900
1900
  * {@inheritdoc Collections.ResultMap.values}
1901
1901
  */
1902
- values(): MapIterator<TV>;
1902
+ values(): IterableIterator<TV>;
1903
1903
  /**
1904
1904
  * Gets an iterator over the map entries.
1905
1905
  * @returns An iterator over the map entries.
@@ -3306,7 +3306,7 @@ declare class Collectible<TKEY extends string = string, TINDEX extends number =
3306
3306
  * Returns an iterator over the map entries.
3307
3307
  * @returns An iterator over the map entries.
3308
3308
  */
3309
- entries(): MapIterator<KeyValueEntry<TK, TV>>;
3309
+ entries(): IterableIterator<KeyValueEntry<TK, TV>>;
3310
3310
  /**
3311
3311
  * Calls a function for each entry in the map.
3312
3312
  * @param cb - The function to call for each entry.
@@ -3353,7 +3353,7 @@ declare class Collectible<TKEY extends string = string, TINDEX extends number =
3353
3353
  * Returns an iterator over the map keys.
3354
3354
  * @returns An iterator over the map keys.
3355
3355
  */
3356
- keys(): MapIterator<TK>;
3356
+ keys(): IterableIterator<TK>;
3357
3357
  /**
3358
3358
  * Sets a key/value pair in the map.
3359
3359
  * @param key - The key to set.
@@ -3383,7 +3383,7 @@ declare class Collectible<TKEY extends string = string, TINDEX extends number =
3383
3383
  * Returns an iterator over the map values.
3384
3384
  * @returns An iterator over the map values.
3385
3385
  */
3386
- values(): MapIterator<TV>;
3386
+ values(): IterableIterator<TV>;
3387
3387
  /**
3388
3388
  * Gets an iterator over the map entries.
3389
3389
  * @returns An iterator over the map entries.
@@ -69,7 +69,7 @@ export declare class Collector<TITEM extends ICollectible<any, any>> implements
69
69
  /**
70
70
  * {@inheritdoc Collections.ResultMap.entries}
71
71
  */
72
- entries(): MapIterator<KeyValueEntry<CollectibleKey<TITEM>, TITEM>>;
72
+ entries(): IterableIterator<KeyValueEntry<CollectibleKey<TITEM>, TITEM>>;
73
73
  /**
74
74
  * {@inheritdoc Collections.ResultMap.forEach}
75
75
  */
@@ -1 +1 @@
1
- {"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../src/packlets/collections/collector.ts"],"names":[],"mappings":"AAsBA,OAAO,EAEL,cAAc,EAEd,MAAM,EAIP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEpG;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,GAAG,eAAe,CAAC;AAE5E;;;GAGG;AACH,MAAM,WAAW,kBAAkB,CAEjC,KAAK,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CACpC,SAAQ,kBAAkB,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACxD;;;;;OAKG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B,CAE1C,KAAK,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC;IAEpC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,qBAAa,SAAS,CAEpB,KAAK,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CACpC,YAAW,kBAAkB,CAAC,KAAK,CAAC;IAEpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;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,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;IACxC,CAAC;IAES,OAAO,CAAC,SAAwC;QACxD,OAAO,OAAO,SAAS,KAAK,QAAQ,CAAC;IACvC,CAAC;CACF;AAlMD,8BAkMC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport {\n captureResult,\n DetailedResult,\n failWithDetail,\n Result,\n fail,\n succeed,\n succeedWithDetail\n} from '../base';\nimport { CollectibleFactoryCallback, CollectibleKey, ICollectible } from './collectible';\nimport { KeyValueEntry } from './common';\nimport { IReadOnlyResultMap, ResultMapForEachCb, ResultMapResultDetail } from './readonlyResultMap';\n\n/**\n * Additional success or failure details for mutating collector calls.\n * @public\n */\nexport type CollectorResultDetail = ResultMapResultDetail | 'invalid-index';\n\n/**\n * A read-only interface exposing only the non-mutating methods of a {@link Collections.Collector | ICollector}.\n * @public\n */\nexport interface IReadOnlyCollector<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TITEM extends ICollectible<any, any>\n> extends IReadOnlyResultMap<CollectibleKey<TITEM>, TITEM> {\n /**\n * Gets the item at a specified index.\n * @param index - The index of the item to retrieve.\n * @returns Returns {@link Success | Success} with the item if it exists, or {@link Failure | Failure}\n * with an error if the index is out of range.\n */\n getAt(index: number): Result<TITEM>;\n}\n\n/**\n * Parameters for constructing a {@link Collections.Collector | ICollector}.\n * @public\n */\nexport interface ICollectorConstructorParams<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TITEM extends ICollectible<any, any>\n> {\n items?: TITEM[];\n}\n\n/**\n * A {@link Collections.Collector | Collector} that is a specialized collection\n * which contains items of type {@link Collections.ICollectible | ICollectible},\n * which have a unique key and a write-once index.\n *\n * Items are assigned an index sequentially as they are added to the collection.\n * Once added, items are immutable - they cannot be removed or replaced.\n * @public\n */\nexport class Collector<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TITEM extends ICollectible<any, any>\n> implements IReadOnlyCollector<TITEM>\n{\n private readonly _byKey: Map<CollectibleKey<TITEM>, TITEM>;\n private readonly _byIndex: TITEM[];\n\n /**\n * {@inheritdoc Collections.ResultMap.size}\n */\n public get size(): number {\n return this._byIndex.length;\n }\n\n /**\n * Constructs a new {@link Collections.Collector | Collector}.\n * @param params - Optional {@link Collections.ICollectorConstructorParams | initialization parameters} used\n * to construct the collector.\n */\n public constructor(params?: ICollectorConstructorParams<TITEM>) {\n this._byKey = new Map<CollectibleKey<TITEM>, TITEM>();\n this._byIndex = [];\n for (const item of params?.items ?? []) {\n this.add(item).orThrow();\n }\n }\n\n /**\n * Creates a new {@link Collections.Collector | Collector} instance.\n * @param params - Optional {@link Collections.ICollectorConstructorParams | initialization parameters} used\n * to create the collector.\n * @returns Returns {@link Success | Success} with the new collector if it was created successfully,\n * or {@link Failure | Failure} with an error if the collector could not be created.\n */\n public static createCollector<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TITEM extends ICollectible<any, any>\n >(params?: ICollectorConstructorParams<TITEM>): Result<Collector<TITEM>> {\n return captureResult(() => new Collector(params));\n }\n\n /**\n * Adds an item to the collection, failing if a different item with the same key already exists. Note\n * that adding an object that is already in the collection again will succeed without updating the collection.\n * @param item - The item to add.\n * @returns Returns {@link DetailedSuccess | Success} with the item and detail `added` if it was added\n * or detail `exists` if the item was already in the map. Returns {@link DetailedFailure | Failure} with\n * an error message and appropriate detail if the item could not be added.\n */\n public add(item: TITEM): DetailedResult<TITEM, CollectorResultDetail> {\n const existing = this._byKey.get(item.key);\n if (existing === item) {\n return succeedWithDetail(item, 'exists');\n } else if (existing) {\n return failWithDetail(`${item.key}: already exists`, 'exists');\n }\n const indexResult = item.setIndex(this._byIndex.length);\n if (indexResult.isFailure()) {\n return failWithDetail(`${item.key}: ${indexResult.message}`, 'invalid-index');\n } else if (item.index !== this._byIndex.length) {\n return failWithDetail(`${item.key}: index mismatch - built item has ${item.index}`, 'invalid-index');\n }\n this._byKey.set(item.key, item);\n this._byIndex.push(item);\n return succeedWithDetail(item, 'added');\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.entries}\n */\n public entries(): MapIterator<KeyValueEntry<CollectibleKey<TITEM>, TITEM>> {\n return this._byKey.entries();\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.forEach}\n */\n public forEach(callback: ResultMapForEachCb<CollectibleKey<TITEM>, TITEM>, arg?: unknown): void {\n for (const [key, value] of this._byKey.entries()) {\n callback(value, key, this, arg);\n }\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.get}\n */\n public get(key: CollectibleKey<TITEM>): DetailedResult<TITEM, ResultMapResultDetail> {\n const item = this._byKey.get(key);\n return item ? succeedWithDetail(item, 'exists') : failWithDetail(`${key}: not found`, 'not-found');\n }\n\n /**\n * {@inheritdoc Collections.IReadOnlyCollector.getAt}\n */\n public getAt(index: number): Result<TITEM> {\n if (index < 0 || index >= this._byIndex.length) {\n return fail(`${index}: out of range.`);\n }\n return succeed(this._byIndex[index]);\n }\n\n /**\n * Gets an existing item with a key matching that of a supplied item, or adds the supplied\n * item to the collector if no item with that key exists.\n * @param item - The item to get or add.\n * @returns Returns {@link DetailedSuccess | Success} with the item stored in the collector -\n * detail `exists` indicates that an existing item return and detail `added` indicates that the\n * item was added. Returns {@link DetailedFailure | Failure} with an error and appropriate\n * detail if the item could not be added.\n */\n public getOrAdd(item: TITEM): DetailedResult<TITEM, CollectorResultDetail>;\n\n /**\n * Gets an existing item with a key matching the supplied key, or adds a new item to the collector\n * using a factory callback if no item with that key exists.\n * @param key - The key of the item to add.\n * @param callback - The factory callback to create the item.\n * @returns Returns {@link DetailedSuccess | Success} with the item stored in the collector -\n * detail `exists` indicates that an existing item return and detail `added` indicates that the\n * item was added. Returns {@link DetailedFailure | Failure} with an error and appropriate\n * detail if the item could not be added.\n */\n public getOrAdd(\n key: CollectibleKey<TITEM>,\n factory: CollectibleFactoryCallback<TITEM>\n ): DetailedResult<TITEM, CollectorResultDetail>;\n\n public getOrAdd(\n keyOrItem: CollectibleKey<TITEM> | TITEM,\n factory?: CollectibleFactoryCallback<TITEM>\n ): DetailedResult<TITEM, CollectorResultDetail> {\n const key = !this._isItem(keyOrItem) ? keyOrItem : keyOrItem.key;\n const existing = this._byKey.get(key);\n if (existing) {\n return succeedWithDetail(existing, 'exists');\n }\n\n const itemResult = !this._isItem(keyOrItem)\n ? factory!(keyOrItem, this._byIndex.length)\n : succeed(keyOrItem);\n if (itemResult.isFailure()) {\n return failWithDetail(`${key}: ${itemResult.message}`, 'invalid-value');\n }\n const item = itemResult.value;\n\n if (item.key !== key) {\n return failWithDetail(`${key}: key mismatch - built item has ${key}`, 'invalid-key');\n }\n\n return itemResult.withFailureDetail<CollectorResultDetail>('invalid-index').onSuccess((item) => {\n return this.add(item);\n });\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.has}\n */\n public has(key: CollectibleKey<TITEM>): boolean {\n return this._byKey.has(key);\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.keys}\n */\n public keys(): IterableIterator<CollectibleKey<TITEM>> {\n return this._byKey.keys();\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.values}\n */\n public values(): IterableIterator<TITEM> {\n return this._byKey.values();\n }\n\n /**\n * Gets a read-only version of this collector.\n */\n public toReadOnly(): IReadOnlyCollector<TITEM> {\n return this;\n }\n\n /**\n * Gets an iterator over the map entries.\n * @returns An iterator over the map entries.\n */\n public [Symbol.iterator](): IterableIterator<KeyValueEntry<CollectibleKey<TITEM>, TITEM>> {\n return this._byKey[Symbol.iterator]();\n }\n\n protected _isItem(keyOrItem: CollectibleKey<TITEM> | TITEM): keyOrItem is TITEM {\n return typeof keyOrItem !== 'string';\n }\n}\n"]}
1
+ {"version":3,"file":"collector.js","sourceRoot":"","sources":["../../../src/packlets/collections/collector.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AAEH,kCAQiB;AAuCjB;;;;;;;;GAQG;AACH,MAAa,SAAS;IAQpB;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED;;;;OAIG;IACH,YAAmB,MAA2C;;QAC5D,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,EAAgC,CAAC;QACtD,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,KAAK,MAAM,IAAI,IAAI,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,mCAAI,EAAE,EAAE,CAAC;YACvC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,eAAe,CAG3B,MAA2C;QAC3C,OAAO,IAAA,oBAAa,EAAC,GAAG,EAAE,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IACpD,CAAC;IAED;;;;;;;OAOG;IACI,GAAG,CAAC,IAAW;QACpB,MAAM,QAAQ,GAAG,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AC,SAAS,CAAC,CAAC;QACvB,IAAI,UAAU,CAAC,SAAS,EAAE,EAAE,CAAC;YAC3B,OAAO,IAAA,qBAAc,EAAC,GAAG,GAAG,KAAK,UAAU,CAAC,OAAO,EAAE,EAAE,eAAe,CAAC,CAAC;QAC1E,CAAC;QACD,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC;QAE9B,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;YACrB,OAAO,IAAA,qBAAc,EAAC,GAAG,GAAG,mCAAmC,GAAG,EAAE,EAAE,aAAa,CAAC,CAAC;QACvF,CAAC;QAED,OAAO,UAAU,CAAC,iBAAiB,CAAwB,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE;YAC7F,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACI,GAAG,CAAC,GAA0B;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED;;OAEG;IACI,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;IAED;;OAEG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;IAC9B,CAAC;IAED;;OAEG;IACI,UAAU;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;IACxC,CAAC;IAES,OAAO,CAAC,SAAwC;QACxD,OAAO,OAAO,SAAS,KAAK,QAAQ,CAAC;IACvC,CAAC;CACF;AAlMD,8BAkMC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport {\n captureResult,\n DetailedResult,\n failWithDetail,\n Result,\n fail,\n succeed,\n succeedWithDetail\n} from '../base';\nimport { CollectibleFactoryCallback, CollectibleKey, ICollectible } from './collectible';\nimport { KeyValueEntry } from './common';\nimport { IReadOnlyResultMap, ResultMapForEachCb, ResultMapResultDetail } from './readonlyResultMap';\n\n/**\n * Additional success or failure details for mutating collector calls.\n * @public\n */\nexport type CollectorResultDetail = ResultMapResultDetail | 'invalid-index';\n\n/**\n * A read-only interface exposing only the non-mutating methods of a {@link Collections.Collector | ICollector}.\n * @public\n */\nexport interface IReadOnlyCollector<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TITEM extends ICollectible<any, any>\n> extends IReadOnlyResultMap<CollectibleKey<TITEM>, TITEM> {\n /**\n * Gets the item at a specified index.\n * @param index - The index of the item to retrieve.\n * @returns Returns {@link Success | Success} with the item if it exists, or {@link Failure | Failure}\n * with an error if the index is out of range.\n */\n getAt(index: number): Result<TITEM>;\n}\n\n/**\n * Parameters for constructing a {@link Collections.Collector | ICollector}.\n * @public\n */\nexport interface ICollectorConstructorParams<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TITEM extends ICollectible<any, any>\n> {\n items?: TITEM[];\n}\n\n/**\n * A {@link Collections.Collector | Collector} that is a specialized collection\n * which contains items of type {@link Collections.ICollectible | ICollectible},\n * which have a unique key and a write-once index.\n *\n * Items are assigned an index sequentially as they are added to the collection.\n * Once added, items are immutable - they cannot be removed or replaced.\n * @public\n */\nexport class Collector<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TITEM extends ICollectible<any, any>\n> implements IReadOnlyCollector<TITEM>\n{\n private readonly _byKey: Map<CollectibleKey<TITEM>, TITEM>;\n private readonly _byIndex: TITEM[];\n\n /**\n * {@inheritdoc Collections.ResultMap.size}\n */\n public get size(): number {\n return this._byIndex.length;\n }\n\n /**\n * Constructs a new {@link Collections.Collector | Collector}.\n * @param params - Optional {@link Collections.ICollectorConstructorParams | initialization parameters} used\n * to construct the collector.\n */\n public constructor(params?: ICollectorConstructorParams<TITEM>) {\n this._byKey = new Map<CollectibleKey<TITEM>, TITEM>();\n this._byIndex = [];\n for (const item of params?.items ?? []) {\n this.add(item).orThrow();\n }\n }\n\n /**\n * Creates a new {@link Collections.Collector | Collector} instance.\n * @param params - Optional {@link Collections.ICollectorConstructorParams | initialization parameters} used\n * to create the collector.\n * @returns Returns {@link Success | Success} with the new collector if it was created successfully,\n * or {@link Failure | Failure} with an error if the collector could not be created.\n */\n public static createCollector<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TITEM extends ICollectible<any, any>\n >(params?: ICollectorConstructorParams<TITEM>): Result<Collector<TITEM>> {\n return captureResult(() => new Collector(params));\n }\n\n /**\n * Adds an item to the collection, failing if a different item with the same key already exists. Note\n * that adding an object that is already in the collection again will succeed without updating the collection.\n * @param item - The item to add.\n * @returns Returns {@link DetailedSuccess | Success} with the item and detail `added` if it was added\n * or detail `exists` if the item was already in the map. Returns {@link DetailedFailure | Failure} with\n * an error message and appropriate detail if the item could not be added.\n */\n public add(item: TITEM): DetailedResult<TITEM, CollectorResultDetail> {\n const existing = this._byKey.get(item.key);\n if (existing === item) {\n return succeedWithDetail(item, 'exists');\n } else if (existing) {\n return failWithDetail(`${item.key}: already exists`, 'exists');\n }\n const indexResult = item.setIndex(this._byIndex.length);\n if (indexResult.isFailure()) {\n return failWithDetail(`${item.key}: ${indexResult.message}`, 'invalid-index');\n } else if (item.index !== this._byIndex.length) {\n return failWithDetail(`${item.key}: index mismatch - built item has ${item.index}`, 'invalid-index');\n }\n this._byKey.set(item.key, item);\n this._byIndex.push(item);\n return succeedWithDetail(item, 'added');\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.entries}\n */\n public entries(): IterableIterator<KeyValueEntry<CollectibleKey<TITEM>, TITEM>> {\n return this._byKey.entries();\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.forEach}\n */\n public forEach(callback: ResultMapForEachCb<CollectibleKey<TITEM>, TITEM>, arg?: unknown): void {\n for (const [key, value] of this._byKey.entries()) {\n callback(value, key, this, arg);\n }\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.get}\n */\n public get(key: CollectibleKey<TITEM>): DetailedResult<TITEM, ResultMapResultDetail> {\n const item = this._byKey.get(key);\n return item ? succeedWithDetail(item, 'exists') : failWithDetail(`${key}: not found`, 'not-found');\n }\n\n /**\n * {@inheritdoc Collections.IReadOnlyCollector.getAt}\n */\n public getAt(index: number): Result<TITEM> {\n if (index < 0 || index >= this._byIndex.length) {\n return fail(`${index}: out of range.`);\n }\n return succeed(this._byIndex[index]);\n }\n\n /**\n * Gets an existing item with a key matching that of a supplied item, or adds the supplied\n * item to the collector if no item with that key exists.\n * @param item - The item to get or add.\n * @returns Returns {@link DetailedSuccess | Success} with the item stored in the collector -\n * detail `exists` indicates that an existing item return and detail `added` indicates that the\n * item was added. Returns {@link DetailedFailure | Failure} with an error and appropriate\n * detail if the item could not be added.\n */\n public getOrAdd(item: TITEM): DetailedResult<TITEM, CollectorResultDetail>;\n\n /**\n * Gets an existing item with a key matching the supplied key, or adds a new item to the collector\n * using a factory callback if no item with that key exists.\n * @param key - The key of the item to add.\n * @param callback - The factory callback to create the item.\n * @returns Returns {@link DetailedSuccess | Success} with the item stored in the collector -\n * detail `exists` indicates that an existing item return and detail `added` indicates that the\n * item was added. Returns {@link DetailedFailure | Failure} with an error and appropriate\n * detail if the item could not be added.\n */\n public getOrAdd(\n key: CollectibleKey<TITEM>,\n factory: CollectibleFactoryCallback<TITEM>\n ): DetailedResult<TITEM, CollectorResultDetail>;\n\n public getOrAdd(\n keyOrItem: CollectibleKey<TITEM> | TITEM,\n factory?: CollectibleFactoryCallback<TITEM>\n ): DetailedResult<TITEM, CollectorResultDetail> {\n const key = !this._isItem(keyOrItem) ? keyOrItem : keyOrItem.key;\n const existing = this._byKey.get(key);\n if (existing) {\n return succeedWithDetail(existing, 'exists');\n }\n\n const itemResult = !this._isItem(keyOrItem)\n ? factory!(keyOrItem, this._byIndex.length)\n : succeed(keyOrItem);\n if (itemResult.isFailure()) {\n return failWithDetail(`${key}: ${itemResult.message}`, 'invalid-value');\n }\n const item = itemResult.value;\n\n if (item.key !== key) {\n return failWithDetail(`${key}: key mismatch - built item has ${key}`, 'invalid-key');\n }\n\n return itemResult.withFailureDetail<CollectorResultDetail>('invalid-index').onSuccess((item) => {\n return this.add(item);\n });\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.has}\n */\n public has(key: CollectibleKey<TITEM>): boolean {\n return this._byKey.has(key);\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.keys}\n */\n public keys(): IterableIterator<CollectibleKey<TITEM>> {\n return this._byKey.keys();\n }\n\n /**\n * {@inheritdoc Collections.ResultMap.values}\n */\n public values(): IterableIterator<TITEM> {\n return this._byKey.values();\n }\n\n /**\n * Gets a read-only version of this collector.\n */\n public toReadOnly(): IReadOnlyCollector<TITEM> {\n return this;\n }\n\n /**\n * Gets an iterator over the map entries.\n * @returns An iterator over the map entries.\n */\n public [Symbol.iterator](): IterableIterator<KeyValueEntry<CollectibleKey<TITEM>, TITEM>> {\n return this._byKey[Symbol.iterator]();\n }\n\n protected _isItem(keyOrItem: CollectibleKey<TITEM> | TITEM): keyOrItem is TITEM {\n return typeof keyOrItem !== 'string';\n }\n}\n"]}
@@ -24,7 +24,7 @@ export interface IReadOnlyResultMap<TK extends string = string, TV = unknown> {
24
24
  /**
25
25
  * {@inheritdoc Collections.ResultMap.entries}
26
26
  */
27
- entries(): MapIterator<KeyValueEntry<TK, TV>>;
27
+ entries(): IterableIterator<KeyValueEntry<TK, TV>>;
28
28
  /**
29
29
  * {@inheritdoc Collections.ResultMap.forEach}
30
30
  */
@@ -40,11 +40,11 @@ export interface IReadOnlyResultMap<TK extends string = string, TV = unknown> {
40
40
  /**
41
41
  * {@inheritdoc Collections.ResultMap.keys}
42
42
  */
43
- keys(): MapIterator<TK>;
43
+ keys(): IterableIterator<TK>;
44
44
  /**
45
45
  * {@inheritdoc Collections.ResultMap.values}
46
46
  */
47
- values(): MapIterator<TV>;
47
+ values(): IterableIterator<TV>;
48
48
  /**
49
49
  * Gets an iterator over the map entries.
50
50
  * @returns An iterator over the map entries.
@@ -1 +1 @@
1
- {"version":3,"file":"readonlyResultMap.d.ts","sourceRoot":"","sources":["../../../src/packlets/collections/readonlyResultMap.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAC7B,OAAO,GACP,SAAS,GACT,QAAQ,GACR,SAAS,GACT,aAAa,GACb,eAAe,GACf,WAAW,GACX,SAAS,GACT,SAAS,CAAC;AAEd;;;GAGG;AACH,MAAM,MAAM,kBAAkB,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO,IAAI,CACzE,KAAK,EAAE,EAAE,EACT,GAAG,EAAE,EAAE,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,MAAM,kBAAkB,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO,IAAI,CACzE,KAAK,EAAE,EAAE,EACT,GAAG,EAAE,EAAE,EACP,GAAG,EAAE,kBAAkB,CAAC,EAAE,EAAE,EAAE,CAAC,EAC/B,OAAO,CAAC,EAAE,OAAO,KACd,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO;IAC1E;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,IAAI,gBAAgB,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAEnD;;OAEG;IACH,OAAO,CAAC,EAAE,EAAE,kBAAkB,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,cAAc,CAAC,EAAE,EAAE,qBAAqB,CAAC,CAAC;IAExD;;OAEG;IACH,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;IAEtB;;OAEG;IACH,IAAI,IAAI,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE7B;;OAEG;IACH,MAAM,IAAI,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE/B;;;OAGG;IACH,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,gBAAgB,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;CAC9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"readonlyResultMap.js","sourceRoot":"","sources":["../../../src/packlets/collections/readonlyResultMap.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { DetailedResult } from '../base';\nimport { KeyValueEntry } from './common';\n\n/**\n * Additional success or failure details for {@link Collections.ResultMap | ResultMap} calls.\n * @public\n */\nexport type ResultMapResultDetail =\n | 'added'\n | 'deleted'\n | 'exists'\n | 'failure'\n | 'invalid-key'\n | 'invalid-value'\n | 'not-found'\n | 'success'\n | 'updated';\n\n/**\n * Callback for {@link Collections.ResultMap | ResultMap} `forEach` method.\n * @public\n */\nexport type ResultMapForEachCb<TK extends string = string, TE = unknown> = (\n value: TE,\n key: TK,\n map: IReadOnlyResultMap<TK, TE>,\n thisArg?: unknown\n) => void;\n\n/**\n * A readonly `ReadonlyMap<TK, TV>`-like object which reports success or failure\n * with additional details using the\n * {@link https://github.com/ErikFortune/fgv/tree/main/libraries/ts-utils#the-result-pattern | result pattern}.\n * @public\n */\nexport interface IReadOnlyResultMap<TK extends string = string, TV = unknown> {\n /**\n * {@inheritdoc Collections.ResultMap.size}\n */\n readonly size: number;\n\n /**\n * {@inheritdoc Collections.ResultMap.entries}\n */\n entries(): MapIterator<KeyValueEntry<TK, TV>>;\n\n /**\n * {@inheritdoc Collections.ResultMap.forEach}\n */\n forEach(cb: ResultMapForEachCb, arg?: unknown): void;\n\n /**\n * {@inheritdoc Collections.ResultMap.get}\n */\n get(key: TK): DetailedResult<TV, ResultMapResultDetail>;\n\n /**\n * {@inheritdoc Collections.ResultMap.has}\n */\n has(key: TK): boolean;\n\n /**\n * {@inheritdoc Collections.ResultMap.keys}\n */\n keys(): MapIterator<TK>;\n\n /**\n * {@inheritdoc Collections.ResultMap.values}\n */\n values(): MapIterator<TV>;\n\n /**\n * Gets an iterator over the map entries.\n * @returns An iterator over the map entries.\n */\n [Symbol.iterator](): IterableIterator<KeyValueEntry<TK, TV>>;\n}\n"]}
1
+ {"version":3,"file":"readonlyResultMap.js","sourceRoot":"","sources":["../../../src/packlets/collections/readonlyResultMap.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { DetailedResult } from '../base';\nimport { KeyValueEntry } from './common';\n\n/**\n * Additional success or failure details for {@link Collections.ResultMap | ResultMap} calls.\n * @public\n */\nexport type ResultMapResultDetail =\n | 'added'\n | 'deleted'\n | 'exists'\n | 'failure'\n | 'invalid-key'\n | 'invalid-value'\n | 'not-found'\n | 'success'\n | 'updated';\n\n/**\n * Callback for {@link Collections.ResultMap | ResultMap} `forEach` method.\n * @public\n */\nexport type ResultMapForEachCb<TK extends string = string, TE = unknown> = (\n value: TE,\n key: TK,\n map: IReadOnlyResultMap<TK, TE>,\n thisArg?: unknown\n) => void;\n\n/**\n * A readonly `ReadonlyMap<TK, TV>`-like object which reports success or failure\n * with additional details using the\n * {@link https://github.com/ErikFortune/fgv/tree/main/libraries/ts-utils#the-result-pattern | result pattern}.\n * @public\n */\nexport interface IReadOnlyResultMap<TK extends string = string, TV = unknown> {\n /**\n * {@inheritdoc Collections.ResultMap.size}\n */\n readonly size: number;\n\n /**\n * {@inheritdoc Collections.ResultMap.entries}\n */\n entries(): IterableIterator<KeyValueEntry<TK, TV>>;\n\n /**\n * {@inheritdoc Collections.ResultMap.forEach}\n */\n forEach(cb: ResultMapForEachCb, arg?: unknown): void;\n\n /**\n * {@inheritdoc Collections.ResultMap.get}\n */\n get(key: TK): DetailedResult<TV, ResultMapResultDetail>;\n\n /**\n * {@inheritdoc Collections.ResultMap.has}\n */\n has(key: TK): boolean;\n\n /**\n * {@inheritdoc Collections.ResultMap.keys}\n */\n keys(): IterableIterator<TK>;\n\n /**\n * {@inheritdoc Collections.ResultMap.values}\n */\n values(): IterableIterator<TV>;\n\n /**\n * Gets an iterator over the map entries.\n * @returns An iterator over the map entries.\n */\n [Symbol.iterator](): IterableIterator<KeyValueEntry<TK, TV>>;\n}\n"]}
@@ -76,7 +76,7 @@ export declare class ResultMap<TK extends string = string, TV = unknown> impleme
76
76
  * Returns an iterator over the map entries.
77
77
  * @returns An iterator over the map entries.
78
78
  */
79
- entries(): MapIterator<KeyValueEntry<TK, TV>>;
79
+ entries(): IterableIterator<KeyValueEntry<TK, TV>>;
80
80
  /**
81
81
  * Calls a function for each entry in the map.
82
82
  * @param cb - The function to call for each entry.
@@ -123,7 +123,7 @@ export declare class ResultMap<TK extends string = string, TV = unknown> impleme
123
123
  * Returns an iterator over the map keys.
124
124
  * @returns An iterator over the map keys.
125
125
  */
126
- keys(): MapIterator<TK>;
126
+ keys(): IterableIterator<TK>;
127
127
  /**
128
128
  * Sets a key/value pair in the map.
129
129
  * @param key - The key to set.
@@ -153,7 +153,7 @@ export declare class ResultMap<TK extends string = string, TV = unknown> impleme
153
153
  * Returns an iterator over the map values.
154
154
  * @returns An iterator over the map values.
155
155
  */
156
- values(): MapIterator<TV>;
156
+ values(): IterableIterator<TV>;
157
157
  /**
158
158
  * Gets an iterator over the map entries.
159
159
  * @returns An iterator over the map entries.
@@ -1 +1 @@
1
- {"version":3,"file":"resultMap.d.ts","sourceRoot":"","sources":["../../../src/packlets/collections/resultMap.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAiB,cAAc,EAAkB,MAAM,EAA8B,MAAM,SAAS,CAAC;AAC5G,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGpG;;;GAGG;AACH,MAAM,WAAW,2BAA2B,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO;IACnF,OAAO,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;CAC3C;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtG;;;;;GAKG;AACH,qB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AyC;QAEzC,OAAO,OAAO,KAAK,KAAK,UAAU,CAAC;IACrC,CAAC;CACF;AAlRD,8BAkRC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { captureResult, DetailedResult, failWithDetail, Result, succeed, succeedWithDetail } from '../base';\nimport { KeyValueEntry } from './common';\nimport { IReadOnlyResultMap, ResultMapForEachCb, ResultMapResultDetail } from './readonlyResultMap';\nimport { isIterable } from './utils';\n\n/**\n * Parameters for constructing a {@link Collections.ResultMap | ResultMap}.\n * @public\n */\nexport interface IResultMapConstructorParams<TK extends string = string, TV = unknown> {\n entries?: Iterable<KeyValueEntry<TK, TV>>;\n}\n\n/**\n * Deferred constructor for the {@link Collections.ResultMap.(getOrAdd:2) | getOrAdd} method.\n * @public\n */\nexport type ResultMapValueFactory<TK extends string = string, TV = unknown> = (key: TK) => Result<TV>;\n\n/**\n * A {@link Collections.ResultMap | ResultMap} class as a `Map<TK, TV>`-like object which\n * reports success or failure with additional details using the\n * {@link https://github.com/ErikFortune/fgv/tree/main/libraries/ts-utils#the-result-pattern | result pattern}.\n * @public\n */\nexport class ResultMap<TK extends string = string, TV = unknown> implements IReadOnlyResultMap<TK, TV> {\n /**\n * Protected raw access to the inner `Map<TK, TV>` object.\n * @public\n */\n protected readonly _inner: Map<TK, TV>;\n\n /**\n * Constructs a new {@link Collections.ResultMap | ResultMap}.\n * @param iterable - An iterable to initialize the map.\n */\n public constructor(iterable?: Iterable<KeyValueEntry<TK, TV>>);\n\n /**\n * Constructs a new {@link Collections.ResultMap | ResultMap}.\n * @param params - An optional set of parameters to configure the map.\n */\n public constructor(params: IResultMapConstructorParams);\n\n /**\n * Constructs a new {@link Collections.ResultMap | ResultMap}.\n * @param iterableOrParams - An iterable to initialize the map, or a set of parameters\n * to configure the map.\n */\n public constructor(\n iterableOrParams?: Iterable<KeyValueEntry<TK, TV>> | IResultMapConstructorParams<TK, TV>\n ) {\n const params = isIterable(iterableOrParams) ? { entries: iterableOrParams } : iterableOrParams ?? {};\n this._inner = new Map(params.entries);\n }\n\n /**\n * Creates a new {@link Collections.ResultMap | ResultMap}.\n * @param elements - An optional iterable to initialize the map.\n * @returns `Success` with the new map, or `Failure` with error details\n * if an error occurred.\n * @public\n */\n public static create<TK extends string = string, TV = unknown>(\n elements: Iterable<KeyValueEntry<TK, TV>>\n ): Result<ResultMap<TK, TV>>;\n\n /**\n * Creates a new {@link Collections.ResultMap | ResultMap}.\n * @param params - An optional set of parameters to configure the map.\n * @returns `Success` with the new map, or `Failure` with error details\n * if an error occurred.\n * @public\n */\n public static create<TK extends string = string, TV = unknown>(\n params?: IResultMapConstructorParams<TK, TV>\n ): Result<ResultMap<TK, TV>>;\n\n /**\n * Creates a new {@link Collections.ResultMap | ResultMap}.\n * @param elementsOrParams - An optional iterable to initialize the map, or a set of parameters\n * to configure the map.\n * @returns `Success` with the new map, or `Failure` with error details\n * if an error occurred.\n * @public\n */\n public static create<TK extends string = string, TV = unknown>(\n elementsOrParams?: Iterable<KeyValueEntry<TK, TV>> | IResultMapConstructorParams<TK, TV>\n ): Result<ResultMap<TK, TV>> {\n return captureResult(() => new ResultMap(elementsOrParams as IResultMapConstructorParams<TK, TV>));\n }\n\n /**\n * Sets a key/value pair in the map if the key does not already exist.\n * @param key - The key to set.\n * @param value - The value to set.\n * @returns `Success` with the value and detail `added` if the key was added,\n * `Failure` with detail `exists` if the key already exists. Fails with detail\n * 'invalid-key' or 'invalid-value' and an error message if either is invalid.\n */\n public add(key: TK, value: TV): DetailedResult<TV, ResultMapResultDetail> {\n if (this._inner.has(key)) {\n return failWithDetail(`${key}: already exists.`, 'exists');\n }\n this._inner.set(key, value);\n return succeedWithDetail(value, 'added');\n }\n\n /**\n * Clears the map.\n */\n public clear(): void {\n this._inner.clear();\n }\n\n /**\n * Deletes a key from the map.\n * @param key - The key to delete.\n * @returns `Success` with the previous value and the detail 'deleted'\n * if the key was found and deleted, `Failure` with detail 'not-found'\n * if the key was not found, or with detail 'invalid-key' if the key is invalid.\n */\n public delete(key: TK): DetailedResult<TV, ResultMapResultDetail> {\n const was = this._inner.get(key);\n if (this._inner.delete(key)) {\n return succeedWithDetail(was!, 'deleted');\n }\n return failWithDetail(`${key}: not found.`, 'not-found');\n }\n\n /**\n * Returns an iterator over the map entries.\n * @returns An iterator over the map entries.\n */\n public entries(): MapIterator<KeyValueEntry<TK, TV>> {\n return this._inner.entries();\n }\n\n /**\n * Calls a function for each entry in the map.\n * @param cb - The function to call for each entry.\n * @param arg - An optional argument to pass to the callback.\n */\n public forEach(cb: ResultMapForEachCb<TK, TV>, arg?: unknown): void {\n for (const [key, value] of this._inner.entries()) {\n cb(value, key as TK, this, arg);\n }\n }\n\n /**\n * Gets a value from the map.\n * @param key - The key to retrieve.\n * @returns `Success` with the value and detail `exists` if the key was found,\n * `Failure` with detail `not-found` if the key was not found or with detail\n * `invalid-key` if the key is invalid.\n */\n public get(key: TK): DetailedResult<TV, ResultMapResultDetail> {\n if (this._inner.has(key)) {\n return succeedWithDetail(this._inner.get(key)!, 'exists');\n }\n return failWithDetail(`${key}: not found.`, 'not-found');\n }\n\n /**\n * Gets a value from the map, or adds a supplied value it if it does not exist.\n * @param key - The key to be retrieved or created.\n * @param value - The value to add if the key does not exist.\n * @returns `Success` with the value and detail `exists` if the key was found,\n * `Success` with the value and detail `added` if the key was not found and added.\n * Fails with detail 'invalid-key' or 'invalid-value' and an error message if either\n * is invalid.\n * {@label WITH_VALUE}\n */\n public getOrAdd(key: TK, value: TV): DetailedResult<TV, ResultMapResultDetail>;\n\n /**\n * Gets a value from the map, or adds a value created by a factory function if it does not exist.\n * @param key - The key of the element to be retrieved or created.\n * @param factory - A {@link Collections.ResultMapValueFactory | factory function} to create the value if\n * the key does not exist.\n * @returns `Success` with the value and detail `exists` if the key was found, `Success` with\n * the value and detail `added` if the key was not found and added. Fails with detail 'invalid-key'\n * or 'invalid-value' and an error message if either is invalid.\n * {@label WITH_FACTORY}\n */\n public getOrAdd(key: TK, factory: ResultMapValueFactory<TK, TV>): DetailedResult<TV, ResultMapResultDetail>;\n public getOrAdd(\n key: TK,\n valueOrFactory: TV | ResultMapValueFactory<TK, TV>\n ): DetailedResult<TV, ResultMapResultDetail> {\n if (this._inner.has(key)) {\n return succeedWithDetail(this._inner.get(key)!, 'exists');\n }\n\n const factory: ResultMapValueFactory<TK, TV> = this._isResultMapValueFactory(valueOrFactory)\n ? valueOrFactory\n : () => succeed(valueOrFactory);\n\n return factory(key)\n .onSuccess((val) => {\n this._inner.set(key, val);\n return succeedWithDetail(val, 'added');\n })\n .withDetail('invalid-value', 'added');\n }\n\n /**\n * Returns `true` if the map contains a key.\n * @param key - The key to check.\n * @returns `true` if the key exists, `false` otherwise.\n */\n public has(key: TK): boolean {\n return this._inner.has(key);\n }\n\n /**\n * Returns an iterator over the map keys.\n * @returns An iterator over the map keys.\n */\n public keys(): MapIterator<TK> {\n return this._inner.keys();\n }\n\n /**\n * Sets a key/value pair in the map.\n * @param key - The key to set.\n * @param value - The value to set.\n * @returns `Success` with the new value and the detail `updated` if the\n * key was found and updated, `Success` with the new value and detail\n * `added` if the key was not found and added. Fails with detail\n * 'invalid-key' or 'invalid-value' and an error message if either is invalid.\n */\n public set(key: TK, value: TV): DetailedResult<TV, ResultMapResultDetail> {\n const detail: ResultMapResultDetail = this._inner.has(key) ? 'updated' : 'added';\n this._inner.set(key, value);\n return succeedWithDetail(value, detail);\n }\n\n /**\n * Returns the number of entries in the map.\n */\n public get size(): number {\n return this._inner.size;\n }\n\n /**\n * Updates an existing key in the map - the map is not updated if the key does\n * not exist.\n * @param key - The key to update.\n * @param value - The value to set.\n * @returns `Success` with the value and detail 'exists' if the key was found\n * and the value updated, `Failure` an error message and with detail `not-found`\n * if the key was not found, or with detail 'invalid-key' or 'invalid-value'\n * if either is invalid.\n */\n public update(key: TK, value: TV): DetailedResult<TV, ResultMapResultDetail> {\n if (this._inner.has(key)) {\n this._inner.set(key, value);\n return succeedWithDetail(value, 'updated');\n }\n return failWithDetail(`${key}: not found.`, 'not-found');\n }\n\n /**\n * Returns an iterator over the map values.\n * @returns An iterator over the map values.\n */\n public values(): MapIterator<TV> {\n return this._inner.values();\n }\n\n /**\n * Gets an iterator over the map entries.\n * @returns An iterator over the map entries.\n */\n public [Symbol.iterator](): IterableIterator<KeyValueEntry<TK, TV>> {\n return this._inner[Symbol.iterator]();\n }\n\n /**\n * Gets a readonly version of this map.\n * @returns A readonly version of this map.\n */\n public toReadOnly(): IReadOnlyResultMap<TK, TV> {\n return this;\n }\n\n /**\n * Determines if a value is a {@link Collections.ResultMapValueFactory | ResultMapValueFactory}.\n * @param value - The value to check.\n * @returns `true` if the value is a {@link Collections.ResultMapValueFactory | ResultMapValueFactory},\n * `false` otherwise.\n * @public\n */\n protected _isResultMapValueFactory<TK extends string, TV>(\n value: TV | ResultMapValueFactory<TK, TV>\n ): value is ResultMapValueFactory<TK, TV> {\n return typeof value === 'function';\n }\n}\n"]}
1
+ {"version":3,"file":"resultMap.js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Ac,EAAC,GAAG,GAAG,cAAc,EAAE,WAAW,CAAC,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;IACxC,CAAC;IAED;;;OAGG;IACI,UAAU;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;OAMG;IACO,wBAAwB,CAChC,KAAyC;QAEzC,OAAO,OAAO,KAAK,KAAK,UAAU,CAAC;IACrC,CAAC;CACF;AAlRD,8BAkRC","sourcesContent":["/*\n * Copyright (c) 2025 Erik Fortune\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\nimport { captureResult, DetailedResult, failWithDetail, Result, succeed, succeedWithDetail } from '../base';\nimport { KeyValueEntry } from './common';\nimport { IReadOnlyResultMap, ResultMapForEachCb, ResultMapResultDetail } from './readonlyResultMap';\nimport { isIterable } from './utils';\n\n/**\n * Parameters for constructing a {@link Collections.ResultMap | ResultMap}.\n * @public\n */\nexport interface IResultMapConstructorParams<TK extends string = string, TV = unknown> {\n entries?: Iterable<KeyValueEntry<TK, TV>>;\n}\n\n/**\n * Deferred constructor for the {@link Collections.ResultMap.(getOrAdd:2) | getOrAdd} method.\n * @public\n */\nexport type ResultMapValueFactory<TK extends string = string, TV = unknown> = (key: TK) => Result<TV>;\n\n/**\n * A {@link Collections.ResultMap | ResultMap} class as a `Map<TK, TV>`-like object which\n * reports success or failure with additional details using the\n * {@link https://github.com/ErikFortune/fgv/tree/main/libraries/ts-utils#the-result-pattern | result pattern}.\n * @public\n */\nexport class ResultMap<TK extends string = string, TV = unknown> implements IReadOnlyResultMap<TK, TV> {\n /**\n * Protected raw access to the inner `Map<TK, TV>` object.\n * @public\n */\n protected readonly _inner: Map<TK, TV>;\n\n /**\n * Constructs a new {@link Collections.ResultMap | ResultMap}.\n * @param iterable - An iterable to initialize the map.\n */\n public constructor(iterable?: Iterable<KeyValueEntry<TK, TV>>);\n\n /**\n * Constructs a new {@link Collections.ResultMap | ResultMap}.\n * @param params - An optional set of parameters to configure the map.\n */\n public constructor(params: IResultMapConstructorParams);\n\n /**\n * Constructs a new {@link Collections.ResultMap | ResultMap}.\n * @param iterableOrParams - An iterable to initialize the map, or a set of parameters\n * to configure the map.\n */\n public constructor(\n iterableOrParams?: Iterable<KeyValueEntry<TK, TV>> | IResultMapConstructorParams<TK, TV>\n ) {\n const params = isIterable(iterableOrParams) ? { entries: iterableOrParams } : iterableOrParams ?? {};\n this._inner = new Map(params.entries);\n }\n\n /**\n * Creates a new {@link Collections.ResultMap | ResultMap}.\n * @param elements - An optional iterable to initialize the map.\n * @returns `Success` with the new map, or `Failure` with error details\n * if an error occurred.\n * @public\n */\n public static create<TK extends string = string, TV = unknown>(\n elements: Iterable<KeyValueEntry<TK, TV>>\n ): Result<ResultMap<TK, TV>>;\n\n /**\n * Creates a new {@link Collections.ResultMap | ResultMap}.\n * @param params - An optional set of parameters to configure the map.\n * @returns `Success` with the new map, or `Failure` with error details\n * if an error occurred.\n * @public\n */\n public static create<TK extends string = string, TV = unknown>(\n params?: IResultMapConstructorParams<TK, TV>\n ): Result<ResultMap<TK, TV>>;\n\n /**\n * Creates a new {@link Collections.ResultMap | ResultMap}.\n * @param elementsOrParams - An optional iterable to initialize the map, or a set of parameters\n * to configure the map.\n * @returns `Success` with the new map, or `Failure` with error details\n * if an error occurred.\n * @public\n */\n public static create<TK extends string = string, TV = unknown>(\n elementsOrParams?: Iterable<KeyValueEntry<TK, TV>> | IResultMapConstructorParams<TK, TV>\n ): Result<ResultMap<TK, TV>> {\n return captureResult(() => new ResultMap(elementsOrParams as IResultMapConstructorParams<TK, TV>));\n }\n\n /**\n * Sets a key/value pair in the map if the key does not already exist.\n * @param key - The key to set.\n * @param value - The value to set.\n * @returns `Success` with the value and detail `added` if the key was added,\n * `Failure` with detail `exists` if the key already exists. Fails with detail\n * 'invalid-key' or 'invalid-value' and an error message if either is invalid.\n */\n public add(key: TK, value: TV): DetailedResult<TV, ResultMapResultDetail> {\n if (this._inner.has(key)) {\n return failWithDetail(`${key}: already exists.`, 'exists');\n }\n this._inner.set(key, value);\n return succeedWithDetail(value, 'added');\n }\n\n /**\n * Clears the map.\n */\n public clear(): void {\n this._inner.clear();\n }\n\n /**\n * Deletes a key from the map.\n * @param key - The key to delete.\n * @returns `Success` with the previous value and the detail 'deleted'\n * if the key was found and deleted, `Failure` with detail 'not-found'\n * if the key was not found, or with detail 'invalid-key' if the key is invalid.\n */\n public delete(key: TK): DetailedResult<TV, ResultMapResultDetail> {\n const was = this._inner.get(key);\n if (this._inner.delete(key)) {\n return succeedWithDetail(was!, 'deleted');\n }\n return failWithDetail(`${key}: not found.`, 'not-found');\n }\n\n /**\n * Returns an iterator over the map entries.\n * @returns An iterator over the map entries.\n */\n public entries(): IterableIterator<KeyValueEntry<TK, TV>> {\n return this._inner.entries();\n }\n\n /**\n * Calls a function for each entry in the map.\n * @param cb - The function to call for each entry.\n * @param arg - An optional argument to pass to the callback.\n */\n public forEach(cb: ResultMapForEachCb<TK, TV>, arg?: unknown): void {\n for (const [key, value] of this._inner.entries()) {\n cb(value, key as TK, this, arg);\n }\n }\n\n /**\n * Gets a value from the map.\n * @param key - The key to retrieve.\n * @returns `Success` with the value and detail `exists` if the key was found,\n * `Failure` with detail `not-found` if the key was not found or with detail\n * `invalid-key` if the key is invalid.\n */\n public get(key: TK): DetailedResult<TV, ResultMapResultDetail> {\n if (this._inner.has(key)) {\n return succeedWithDetail(this._inner.get(key)!, 'exists');\n }\n return failWithDetail(`${key}: not found.`, 'not-found');\n }\n\n /**\n * Gets a value from the map, or adds a supplied value it if it does not exist.\n * @param key - The key to be retrieved or created.\n * @param value - The value to add if the key does not exist.\n * @returns `Success` with the value and detail `exists` if the key was found,\n * `Success` with the value and detail `added` if the key was not found and added.\n * Fails with detail 'invalid-key' or 'invalid-value' and an error message if either\n * is invalid.\n * {@label WITH_VALUE}\n */\n public getOrAdd(key: TK, value: TV): DetailedResult<TV, ResultMapResultDetail>;\n\n /**\n * Gets a value from the map, or adds a value created by a factory function if it does not exist.\n * @param key - The key of the element to be retrieved or created.\n * @param factory - A {@link Collections.ResultMapValueFactory | factory function} to create the value if\n * the key does not exist.\n * @returns `Success` with the value and detail `exists` if the key was found, `Success` with\n * the value and detail `added` if the key was not found and added. Fails with detail 'invalid-key'\n * or 'invalid-value' and an error message if either is invalid.\n * {@label WITH_FACTORY}\n */\n public getOrAdd(key: TK, factory: ResultMapValueFactory<TK, TV>): DetailedResult<TV, ResultMapResultDetail>;\n public getOrAdd(\n key: TK,\n valueOrFactory: TV | ResultMapValueFactory<TK, TV>\n ): DetailedResult<TV, ResultMapResultDetail> {\n if (this._inner.has(key)) {\n return succeedWithDetail(this._inner.get(key)!, 'exists');\n }\n\n const factory: ResultMapValueFactory<TK, TV> = this._isResultMapValueFactory(valueOrFactory)\n ? valueOrFactory\n : () => succeed(valueOrFactory);\n\n return factory(key)\n .onSuccess((val) => {\n this._inner.set(key, val);\n return succeedWithDetail(val, 'added');\n })\n .withDetail('invalid-value', 'added');\n }\n\n /**\n * Returns `true` if the map contains a key.\n * @param key - The key to check.\n * @returns `true` if the key exists, `false` otherwise.\n */\n public has(key: TK): boolean {\n return this._inner.has(key);\n }\n\n /**\n * Returns an iterator over the map keys.\n * @returns An iterator over the map keys.\n */\n public keys(): IterableIterator<TK> {\n return this._inner.keys();\n }\n\n /**\n * Sets a key/value pair in the map.\n * @param key - The key to set.\n * @param value - The value to set.\n * @returns `Success` with the new value and the detail `updated` if the\n * key was found and updated, `Success` with the new value and detail\n * `added` if the key was not found and added. Fails with detail\n * 'invalid-key' or 'invalid-value' and an error message if either is invalid.\n */\n public set(key: TK, value: TV): DetailedResult<TV, ResultMapResultDetail> {\n const detail: ResultMapResultDetail = this._inner.has(key) ? 'updated' : 'added';\n this._inner.set(key, value);\n return succeedWithDetail(value, detail);\n }\n\n /**\n * Returns the number of entries in the map.\n */\n public get size(): number {\n return this._inner.size;\n }\n\n /**\n * Updates an existing key in the map - the map is not updated if the key does\n * not exist.\n * @param key - The key to update.\n * @param value - The value to set.\n * @returns `Success` with the value and detail 'exists' if the key was found\n * and the value updated, `Failure` an error message and with detail `not-found`\n * if the key was not found, or with detail 'invalid-key' or 'invalid-value'\n * if either is invalid.\n */\n public update(key: TK, value: TV): DetailedResult<TV, ResultMapResultDetail> {\n if (this._inner.has(key)) {\n this._inner.set(key, value);\n return succeedWithDetail(value, 'updated');\n }\n return failWithDetail(`${key}: not found.`, 'not-found');\n }\n\n /**\n * Returns an iterator over the map values.\n * @returns An iterator over the map values.\n */\n public values(): IterableIterator<TV> {\n return this._inner.values();\n }\n\n /**\n * Gets an iterator over the map entries.\n * @returns An iterator over the map entries.\n */\n public [Symbol.iterator](): IterableIterator<KeyValueEntry<TK, TV>> {\n return this._inner[Symbol.iterator]();\n }\n\n /**\n * Gets a readonly version of this map.\n * @returns A readonly version of this map.\n */\n public toReadOnly(): IReadOnlyResultMap<TK, TV> {\n return this;\n }\n\n /**\n * Determines if a value is a {@link Collections.ResultMapValueFactory | ResultMapValueFactory}.\n * @param value - The value to check.\n * @returns `true` if the value is a {@link Collections.ResultMapValueFactory | ResultMapValueFactory},\n * `false` otherwise.\n * @public\n */\n protected _isResultMapValueFactory<TK extends string, TV>(\n value: TV | ResultMapValueFactory<TK, TV>\n ): value is ResultMapValueFactory<TK, TV> {\n return typeof value === 'function';\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fgv/ts-utils",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "Assorted Typescript Utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "dist/ts-utils.d.ts",
@@ -0,0 +1 @@
1
+ {"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.dom.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./src/packlets/collections/utils.ts","./src/packlets/base/result.ts","./src/packlets/base/logger.ts","./src/packlets/base/brand.ts","./src/packlets/base/mapResults.ts","./src/packlets/base/messageAggregator.ts","./src/packlets/base/normalize.ts","./src/packlets/base/utils.ts","./src/packlets/base/index.ts","./src/packlets/validation/common.ts","./src/packlets/validation/traits.ts","./src/packlets/validation/validator.ts","./src/packlets/validation/genericValidator.ts","./src/packlets/validation/validatorBase.ts","./src/packlets/validation/array.ts","./src/packlets/validation/boolean.ts","./src/packlets/validation/number.ts","./src/packlets/validation/field.ts","./src/packlets/validation/object.ts","./src/packlets/validation/oneOf.ts","./src/packlets/validation/string.ts","./src/packlets/validation/typeGuard.ts","./src/packlets/validation/classes.ts","./src/packlets/validation/validators.ts","./src/packlets/validation/index.ts","./src/packlets/conversion/converter.ts","./src/packlets/conversion/defaultingConverter.ts","./src/packlets/conversion/baseConverter.ts","./src/packlets/conversion/objectConverter.ts","./src/packlets/conversion/stringConverter.ts","./src/packlets/conversion/converters.ts","./src/packlets/conversion/index.ts","./src/packlets/collections/collectible.ts","./src/packlets/collections/common.ts","./src/packlets/collections/readonlyResultMap.ts","./src/packlets/collections/collector.ts","./src/packlets/collections/convertingCollector.ts","./src/packlets/collections/resultMap.ts","./src/packlets/collections/keyValueConverters.ts","./src/packlets/collections/resultMapValidator.ts","./src/packlets/collections/collectorValidator.ts","./src/packlets/collections/convertingCollectorValidator.ts","./src/packlets/collections/validatingResultMap.ts","./src/packlets/collections/validatingCollector.ts","./src/packlets/collections/validatingConvertingCollector.ts","./src/packlets/collections/index.ts","./src/packlets/hash/hashingNormalizer.ts","./src/packlets/hash/crcNormalizer.ts","./src/packlets/hash/index.ts","./src/index.ts","./node_modules/chalk/index.d.ts","./node_modules/@sinclair/typebox/typebox.d.ts","./node_modules/@jest/schemas/build/index.d.ts","./node_modules/pretty-format/build/index.d.ts","./node_modules/jest-diff/build/index.d.ts","./node_modules/jest-matcher-utils/build/index.d.ts","./src/test/helpers/jest/ts-utils.ts","./src/test/helpers/jest/utils/matcherHelpers.ts","./src/test/helpers/jest/matchers/toFail/predicate.ts","./src/test/helpers/jest/matchers/toFail/index.ts","./src/test/helpers/jest/matchers/toFailTest/predicate.ts","./src/test/helpers/jest/matchers/toFailTest/index.ts","./src/test/helpers/jest/matchers/toFailTestAndMatchSnapshot/predicate.ts","./node_modules/@types/node/compatibility/disposable.d.ts","./node_modules/@types/node/compatibility/indexable.d.ts","./node_modules/@types/node/compatibility/iterators.d.ts","./node_modules/@types/node/compatibility/index.d.ts","./node_modules/@types/node/globals.typedarray.d.ts","./node_modules/@types/node/buffer.buffer.d.ts","../../node_modules/buffer/index.d.ts","./node_modules/undici-types/header.d.ts","./node_modules/undici-types/readable.d.ts","./node_modules/undici-types/file.d.ts","./node_modules/undici-types/fetch.d.ts","./node_modules/undici-types/formdata.d.ts","./node_modules/undici-types/connector.d.ts","./node_modules/undici-types/client.d.ts","./node_modules/undici-types/errors.d.ts","./node_modules/undici-types/dispatcher.d.ts","./node_modules/undici-types/global-dispatcher.d.ts","./node_modules/undici-types/global-origin.d.ts","./node_modules/undici-types/pool-stats.d.ts","./node_modules/undici-types/pool.d.ts","./node_modules/undici-types/handlers.d.ts","./node_modules/undici-types/balanced-pool.d.ts","./node_modules/undici-types/agent.d.ts","./node_modules/undici-types/mock-interceptor.d.ts","./node_modules/undici-types/mock-agent.d.ts","./node_modules/undici-types/mock-client.d.ts","./node_modules/undici-types/mock-pool.d.ts","./node_modules/undici-types/mock-errors.d.ts","./node_modules/undici-types/proxy-agent.d.ts","./node_modules/undici-types/env-http-proxy-agent.d.ts","./node_modules/undici-types/retry-handler.d.ts","./node_modules/undici-types/retry-agent.d.ts","./node_modules/undici-types/api.d.ts","./node_modules/undici-types/interceptors.d.ts","./node_modules/undici-types/util.d.ts","./node_modules/undici-types/cookies.d.ts","./node_modules/undici-types/patch.d.ts","./node_modules/undici-types/websocket.d.ts","./node_modules/undici-types/eventsource.d.ts","./node_modules/undici-types/filereader.d.ts","./node_modules/undici-types/diagnostics-channel.d.ts","./node_modules/undici-types/content-type.d.ts","./node_modules/undici-types/cache.d.ts","./node_modules/undici-types/index.d.ts","./node_modules/@types/node/globals.d.ts","./node_modules/@types/node/assert.d.ts","./node_modules/@types/node/assert/strict.d.ts","./node_modules/@types/node/async_hooks.d.ts","./node_modules/@types/node/buffer.d.ts","./node_modules/@types/node/child_process.d.ts","./node_modules/@types/node/cluster.d.ts","./node_modules/@types/node/console.d.ts","./node_modules/@types/node/constants.d.ts","./node_modules/@types/node/crypto.d.ts","./node_modules/@types/node/dgram.d.ts","./node_modules/@types/node/diagnostics_channel.d.ts","./node_modules/@types/node/dns.d.ts","./node_modules/@types/node/dns/promises.d.ts","./node_modules/@types/node/domain.d.ts","./node_modules/@types/node/dom-events.d.ts","./node_modules/@types/node/events.d.ts","./node_modules/@types/node/fs.d.ts","./node_modules/@types/node/fs/promises.d.ts","./node_modules/@types/node/http.d.ts","./node_modules/@types/node/http2.d.ts","./node_modules/@types/node/https.d.ts","./node_modules/@types/node/inspector.d.ts","./node_modules/@types/node/module.d.ts","./node_modules/@types/node/net.d.ts","./node_modules/@types/node/os.d.ts","./node_modules/@types/node/path.d.ts","./node_modules/@types/node/perf_hooks.d.ts","./node_modules/@types/node/process.d.ts","./node_modules/@types/node/punycode.d.ts","./node_modules/@types/node/querystring.d.ts","./node_modules/@types/node/readline.d.ts","./node_modules/@types/node/readline/promises.d.ts","./node_modules/@types/node/repl.d.ts","./node_modules/@types/node/sea.d.ts","./node_modules/@types/node/stream.d.ts","./node_modules/@types/node/stream/promises.d.ts","./node_modules/@types/node/stream/consumers.d.ts","./node_modules/@types/node/stream/web.d.ts","./node_modules/@types/node/string_decoder.d.ts","./node_modules/@types/node/test.d.ts","./node_modules/@types/node/timers.d.ts","./node_modules/@types/node/timers/promises.d.ts","./node_modules/@types/node/tls.d.ts","./node_modules/@types/node/trace_events.d.ts","./node_modules/@types/node/tty.d.ts","./node_modules/@types/node/url.d.ts","./node_modules/@types/node/util.d.ts","./node_modules/@types/node/v8.d.ts","./node_modules/@types/node/vm.d.ts","./node_modules/@types/node/wasi.d.ts","./node_modules/@types/node/worker_threads.d.ts","./node_modules/@types/node/zlib.d.ts","./node_modules/@types/node/index.d.ts","./node_modules/@types/yargs-parser/index.d.ts","./node_modules/@types/yargs/index.d.ts","./node_modules/@types/istanbul-lib-coverage/index.d.ts","./node_modules/@types/istanbul-lib-report/index.d.ts","./node_modules/@types/istanbul-reports/index.d.ts","./node_modules/@jest/types/build/index.d.ts","./node_modules/@jest/expect-utils/build/index.d.ts","./node_modules/expect/build/index.d.ts","./node_modules/jest-snapshot/build/index.d.ts","./src/test/helpers/jest/matchers/toFailTestAndMatchSnapshot/index.ts","./src/test/helpers/jest/matchers/toFailTestWith/predicate.ts","./src/test/helpers/jest/matchers/toFailTestWith/index.ts","./src/test/helpers/jest/matchers/toFailWith/predicate.ts","./src/test/helpers/jest/matchers/toFailWith/index.ts","./src/test/helpers/jest/matchers/toFailWithDetail/predicate.ts","./src/test/helpers/jest/matchers/toFailWithDetail/index.ts","./src/test/helpers/jest/matchers/toSucceed/predicate.ts","./src/test/helpers/jest/matchers/toSucceed/index.ts","./src/test/helpers/jest/matchers/toSucceedAndMatchInlineSnapshot/index.ts","./src/test/helpers/jest/matchers/toSucceedAndMatchSnapshot/index.ts","./src/test/helpers/jest/matchers/toSucceedAndSatisfy/predicate.ts","./src/test/helpers/jest/matchers/toSucceedAndSatisfy/index.ts","./src/test/helpers/jest/matchers/toSucceedWith/predicate.ts","./src/test/helpers/jest/matchers/toSucceedWith/index.ts","./src/test/helpers/jest/matchers/toSucceedWithDetail/predicate.ts","./src/test/helpers/jest/matchers/toSucceedWithDetail/index.ts","./src/test/helpers/jest/matchers/index.ts","./node_modules/@types/jest/index.d.ts","./src/test/helpers/jest/types/index.ts","./src/test/helpers/jest/helpers/fsHelpers.ts","./src/test/helpers/jest/helpers/index.ts","./src/test/helpers/jest/index.ts","./src/test/helpers/jest/utils/snapshotResolver.ts","./src/test/helpers/jest/resolvers/cli.ts","./src/test/helpers/jest/resolvers/ide.ts","./src/test/unit/converter.test.ts","./src/test/unit/converters.test.ts","./src/test/unit/defaultingConverter.test.ts","./src/test/unit/hash.test.ts","./src/test/unit/logger.test.ts","./node_modules/jest-extended/types/index.d.ts","./src/test/unit/mapResults.test.ts","./src/test/unit/messageAggregator.test.ts","./src/test/unit/normalize.test.ts","./src/test/unit/result.test.ts","./src/test/unit/utils.test.ts","./src/test/unit/collections/collectible.test.ts","./src/test/unit/collections/helpers.ts","./src/test/unit/collections/collector.test.ts","./src/test/unit/collections/collectors.test.ts","./src/test/unit/collections/convertingCollector.test.ts","./src/test/unit/collections/resultMap.test.ts","./src/test/unit/collections/validatingCollector.test.ts","./src/test/unit/collections/validatingConvertingCollector.test.ts","./src/test/unit/collections/validatingResultMap.test.ts","./src/test/unit/validation/array.test.ts","./src/test/unit/validation/boolean.test.ts","./src/test/unit/validation/genericValidator.test.ts","./src/test/unit/validation/number.test.ts","./src/test/unit/validation/object.test.ts","./src/test/unit/validation/oneOf.test.ts","./src/test/unit/validation/recordOf.test.ts","./src/test/unit/validation/string.test.ts","./src/test/unit/validation/traits.test.ts","./src/test/unit/validation/typeGuard.test.ts","./src/test/unit/validation/validators.test.ts","./node_modules/@types/heft-jest/mocked.d.ts","./node_modules/@types/heft-jest/index.d.ts"],"fileIdsList":[[115,158],[98,115,158],[97,99,115,158,207,209,210,212],[115,158,235,274],[115,158,210],[115,158,211],[100,115,158,215],[115,155,158],[115,157,158],[158],[115,158,163,192],[115,158,159,164,170,171,178,189,200],[115,158,159,160,170,178],[110,111,112,115,158],[115,158,161,201],[115,158,162,163,171,179],[115,158,163,189,197],[115,158,164,166,170,178],[115,157,158,165],[115,158,166,167],[115,158,168,170],[115,157,158,170],[115,158,170,171,172,189,200],[115,158,170,171,172,185,189,192],[115,153,158],[115,158,166,170,173,178,189,200],[115,158,170,171,173,174,178,189,197,200],[115,158,173,175,189,197,200],[113,114,115,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206],[115,158,170,176],[115,158,177,200,205],[115,158,166,170,178,189],[115,158,179],[115,158,180],[115,157,158,181],[115,155,156,157,158,159,160,161,162,163,164,165,166,167,168,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206],[115,158,183],[115,158,184],[115,158,170,185,186],[115,158,185,187,201,203],[115,158,170,189,190,192],[115,158,191,192],[115,158,189,190],[115,158,192],[115,158,193],[115,155,158,189,194],[115,158,170,195,196],[115,158,195,196],[115,158,163,178,189,197],[115,158,198],[115,158,178,199],[115,158,173,184,200],[115,158,163,201],[115,158,189,202],[115,158,177,203],[115,158,204],[115,158,170,172,181,189,192,200,203,205],[115,158,189,206],[115,158,208],[102,115,158,214],[100,115,158],[97,101,115,158],[100,115,158,213,215],[99,115,158],[115,125,129,158,200],[115,125,158,189,200],[115,120,158],[115,122,125,158,197,200],[115,158,178,197],[115,158,207],[115,120,158,207],[115,122,125,158,178,200],[115,117,118,121,124,158,170,189,200],[115,125,132,158],[115,117,123,158],[115,125,146,147,158],[115,121,125,158,192,200,207],[115,146,158,207],[115,119,120,158,207],[115,125,158],[115,119,120,121,122,123,124,125,126,127,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,147,148,149,150,151,152,158],[115,125,140,158],[115,125,132,133,158],[115,123,125,133,134,158],[115,124,158],[115,117,120,125,158],[115,125,129,133,134,158],[115,129,158],[115,123,125,128,158,200],[115,117,122,125,132,158],[115,158,189],[115,120,125,146,158,205,207],[55,71,78,92,95,115,158],[48,49,50,51,52,53,54,115,158],[48,115,158],[48,51,115,158],[55,71,78,115,158],[55,79,80,81,115,158],[55,79,81,82,84,85,86,115,158],[55,79,80,82,115,158],[55,79,81,82,83,84,85,87,115,158],[47,79,80,81,82,83,84,85,86,87,88,89,90,91,115,158],[55,71,78,80,81,115,158],[55,80,115,158],[47,55,80,81,115,158],[55,81,84,85,115,158],[55,79,82,85,87,89,115,158],[55,79,80,83,85,88,90,115,158],[55,80,81,84,85,86,115,158],[55,72,73,115,158],[55,115,158],[55,71,72,74,75,76,115,158],[55,72,115,158],[72,73,74,75,76,77,115,158],[55,71,72,74,77,115,158],[55,72,74,115,158],[93,115,158],[93,94,115,158],[55,58,60,115,158],[55,59,115,158],[61,62,63,65,66,67,68,115,158],[55,56,57,58,115,158],[56,57,58,59,69,70,115,158],[55,58,60,64,115,158],[55,56,58,60,115,158],[55,57,115,158],[55,56,58,59,61,62,63,65,66,67,68,115,158],[115,158,171,180],[115,158,237],[115,158,234,236,238],[106,108,115,158,217,219,221,223,225,226,227,229,231,233],[96,102,104,105,115,158],[96,115,158],[102,104,107,115,158],[103,115,158],[102,109,115,158,216],[102,103,104,115,158,218],[102,103,115,158,214],[96,102,104,115,158,220],[102,103,104,115,158,222],[103,115,158,214],[96,102,104,115,158,224],[96,102,104,115,158,216],[102,103,104,115,158,228],[96,102,104,115,158,230],[96,115,158,214],[102,103,104,115,158,232],[115,158,240],[103,115,158,235],[102,103,115,158],[55,78,92,115,158,239],[55,92,115,158,239,255],[55,78,92,115,158],[55,92,115,158,239],[96,115,158,239],[55,78,96,115,158,239],[78,96,115,158,239],[95,115,158,239],[49,55,115,158,239],[55,115,158,239,248],[55,115,158,239],[71,115,158,239],[55,71,115,158,239],[71,115,158]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"485aff21757cd5e79ac8fa4a98618850e4b6404305fa3129c7777804cb4af0d5","signature":"83556ac80f638b097f60df90decb8398c5b5721ffb4da1c8f968c81731374a54"},{"version":"6153798e594cfe38558bf694287c276a875c71a1a87bd0a1661ff879029175cf","signature":"cf7836297d9fe4dedcaccc238a4d69ba61afd661f01a7f652f1a35bbc2850086"},{"version":"b3a31b0cce3ecaad9dac492bd9198d1ec2335f4dc4e35de45806291c6ffcf38a","signature":"43311fdd9e0e6b2f3b03d9f6a53e537da5b30e0992f2287658c2826f5bfd153b"},{"version":"f1bd58bdb6194821d44da448a469c837cad25ee95af450dd356b2fcb219bd76d","signature":"b1f09201688a6c7774cf94b05a7f52d75656da442d781fd6fc0133b643692153"},{"version":"c698f2041472c6b48d62a87a179d56e8fc2d9b1372232f5f962c35d22198f237","signature":"8cb7752fee8f4c4090d0aa424a1e575c989954e5e3accb9de05ef83a4338d68f"},{"version":"9947ab5510edd76f2f29639a5951ddfe4d3835e293343f39e0e0327514691159","signature":"b78c2376f07d4e8c4c4cf490de83747a69235f8755eaa5e6ae85ed1339ea0774"},{"version":"50da18d89a318abe4f11cb3fe0d2ec202e5a440d10f330818a034fd1f6604e97","signature":"bd006375df27b79a712581e30c5b29b2845fefe3e282835d9c53720544d5e0ac"},{"version":"0605f2056cc6baecf7a6ac1d40087777ac69850687cac35c69853090e7e47e2b","signature":"d81f2d8a285449733dce4ee691b99ee1206ac32c3fd0d12ffa6037a88691ddf0"},{"version":"bf86d7feff4e324b05e1961325bacd83a21f5387f5823585fb0209994f36e9a3","signature":"c852f029d7a195947b9080c3440ecedfea518cf32665fc3a7e3f519f47ad8381"},{"version":"b6c364002a34294715c6424cb24f10abaa010a6ffaca1d4992ecbc1697dad60c","signature":"fa66f80c648435ade6c542ffd6e3f17a621921f35929b42c33044c9a876e1738"},{"version":"1f7bef512ff4b3f4411bbf34085cc60675d0f7f0971fbc81c751ec880e8bf572","signature":"259762eb38c803014cc25dbb7b1fdbdfe2b354653930c0cb66ff59888a5437ec"},{"version":"52c53168ba23364dfbcef6a2d3cc39d6ee8ea0e50523abd435cbf393f0c80ce6","signature":"b4636281bbb68aca9c880864b2a5ccbdc15d417142fa101d0c81685e07c304f1"},{"version":"2aa3e2316f91182b945f189ba1fbd9e5581c93f2a71e4531440e3d3750e1e1ef","signature":"d59748385e2ed6f71fe1b16ca8261500bf4140e68a0ee417625cea050e7e4c83"},{"version":"2cada5d4220de5f315c7091620473b41df24874888545205c711e764672f8455","signature":"acd0ad3714ad314279e12b171c5bb9308c9fbc076103afad9a435b420567d062"},{"version":"f13ba4a8a818f6f9852dd12812f9dcfc038cb86179e99e58321fd0a0580f5ced","signature":"b6e2565d87c5732563d919ed238372d2a627a3e8e0ffb04cca1c5c9897e0a295"},{"version":"e473433b50e92ca653c9c78966dbd0771901726fa28957ea6588724c44c3f8cd","signature":"77a3a5908d19211c6f2eb69a7643076ea808c0cf0dd5cbb52fc76e5d3cbd8094"},{"version":"a7ba9b369396da961a483f4488603578f6134bc9c2a2ebb430f09d2b5cee0731","signature":"a200673c8eb32b3317332f48f5d6bf64eacc870512b8e0cd97ab345b2d353fe6"},{"version":"25bc50888293c520fb1e7463a1f4fbfb9a99457e71699334c92dac209ba16338","signature":"57ab50fb21b007e19415acf21cacdc12658234cb09ebdf083a83644be059d4f8"},{"version":"de599521ed29952f039acebbb98f52edded154b43bd706b81a1401ab3178cac7","signature":"366d6ffb604a3593a96d677240db0be8152759ace6a0319f1402f4d4cdef5ecd"},{"version":"adc6a83197b9ac349b3e3ccab8493cd15656b02d08cf3deb105816694c98ee8c","signature":"77c64406303f602de1c01e793299632fa98a115c38ffd58952d7295d230e8c9c"},{"version":"e68faa4434b0534c37b8e48e6e748dab373c4f93801f593c281dcc69d91ff31d","signature":"7c79a39baa7f20f6b6a767d3720f391fd66915e58d8ba669a806adc078dc9122"},{"version":"ab92ec4ab285db39a508eb5d33a85965bbadb4413a6e369b50b8c96ad363afc7","signature":"43693f90eda734c056f35ae457b450bae0e13b5b91cc5163a4e9dd15923ed592"},{"version":"34b6f71525e037602717bca8828fb8b218ef57d4289e2ff4825e7fc9c25220f7","signature":"4ac7e9df97dc158317818436d1f9e7454f5266d13e6e0eb0f9fddeae821a910e"},{"version":"45c7ff04c3e6dca8f929c2db73e719b116669c3ffd1fe7f26b28ce6dafbc69ba","signature":"4ad1e6029e60150bd6cb50b05e7aaaa037585a7b9f3d073e6c0339cf36a3f10a"},{"version":"1c2eb787a82d77551c202882624eb4a28fb39ce6cb53b6250ae7c6914014f8da","signature":"1abc41c55990a24b7e2032505c41d60d1ad2774364256cfed4bc1a73a5fe096a"},{"version":"1f211d66d225ddf2101d001474354a4d9511540aa9f760e484575b6844fa0472","signature":"80d71dee306225ab311ac5e500c9231a557e3519de46696281d62d940a9b4f8e"},{"version":"c00b294dffd287c784a1428479f5ae39df8805bdcb55e47331af88c18816ce94","signature":"e42f988fbf86e73cf467e96779625d74bdd3cccf147eaa85b67d6be8ec87eed2"},{"version":"e0cac443feba56b04f6770975f46ad3d027f7e568d90926ac18f9af2cecae8f8","signature":"31fd217bfebe1ddef5d116cb0b19a8a60577ba73cabedb4d4f766100bc3c22cb"},{"version":"d2ceb292f5b46076443359fcd719fee8bd7f35d0706c1478d05e7fd3bafa403b","signature":"62dfe78855fd0a11c7bbc24d9ae4d215ea91de634c5464fdb2997a9d46c7780d"},{"version":"fd57a131fad6c15c8452362b7ee768cca251a507e80ce32a863a9f49dd608305","signature":"b73ff9c11da2b41c5ed4a2ca90da09d40e60c55b81ddf8d26880af84645f1fbd"},{"version":"91949f714e4a0166513c0ff7c88e5499617c6bca97fef724bb1d1682c51a69be","signature":"e10414edd60c23c5cd545315e28b78bd2c656ca8c5a42af24dabf8bd6882ac64"},{"version":"5907d91c79a44ea35a8ad830198dbf51d4843b3f49ed6c03fe1697f5388059d1","signature":"ce7f1307bf03dda2b7c73ef76873c801ca1660aa0496b535b320f1d18b98df3e"},{"version":"ab5a09ec97480af55485be7c4d2f12d4e7d42f923c7d5fbcdab4244fbc14bc04","signature":"d9c299564cd303806d9aa8e80417ee2b45d564b0e954afe02017ad347c5e28b2"},{"version":"71857d1c26c2d75894722e344354120ebe2894f542de422b16377b6419f96ca5","signature":"d02c97909d243a31df5ebe01b281ac8ea86576a266afde1cfd752bf56654ff21"},{"version":"78edfb88367a5bbf82d3d9a33c553a87694d6e37b74d670e4763bbfa6430ccbf","signature":"c5d73fd3f9881e788a77ce60fb13fabc0431b33fdb6b0bb5ca8d8b2887b707fa"},{"version":"f299016d80ebf36fdcf953467608a5f778b91d0b3ce48d0e17d7ff5e193abf2b","signature":"8701f8621e448ef73f03d3442bb26c73ca1d8091b8517dd77a9c8a0474fb66d5"},{"version":"1e17fc39f615bd21fcff6c54a0e9eb01dba72ab677ae85b1cc7be4b7f50f01e7","signature":"9fbd63b0138df1d4ed6ccee9c4985d880e5dc0269b5ff7577989e6e52c4b620b"},{"version":"081e037bdfdbbe7e83854d754aa1f8d52a7878354128abbbbf48fe9c5fdd8226","signature":"e5fce31c5b5988ef97ea7c8b3ef84691e0241e74b29757c67779cf8e8ac48fda"},{"version":"c4f6f34b2909d78541aa7fe9e9b88ac5ecda0ed8c31d58b14f1a3c184d480aaa","signature":"5fc6570a7711d003c6f638ef22ff2e12db09a803130a7d6988814b50ef3b0282"},{"version":"5863b72d8805b07a5b99a282049b6aa677aae30782aed40d275b6368368f6151","signature":"f4889b0c004560712081fb6053b026fd2dbc1d0e9d190525680e277c84de0f3b"},{"version":"d08d99a54a103b9f71d1f9c5e7c648d54cceaf22c2cf8cca0f93095257683821","signature":"598f9651c49229b65d4a59c9d839a0f23b7307301c6e8cfadda353087bdc1b0a"},{"version":"b27a61578f40dd54a8c3b79000e5b801c08a1901ab5932ea06a5c8a19401aeaa","signature":"3ca0ff99695c8f6fc9acb57f92982823fbcec6c78b37ee9773495c16783891d8"},{"version":"761c3c3f5331d7b7dff26203b576d031f99ff1ae28ca4c59f4f4dc16fd900487","signature":"678f1574d385d5204fcca238e81826d7bb249e498240b9dda6ceedc87c014201"},{"version":"52b065b4464e2168c8edd07eec467cb5f5c2fb9b35f7919a37188cd728f99b91","signature":"cb9d0ec06260a2607f598bfa299efaa9df878403e8813b6bc85470eec3fe2cdb"},{"version":"2fa3708c7422eca855ff73cc301741ba9c07441fc791e048ea2de4e6b6c45c4e","signature":"9e0ac74cf502f345e82773af51e16e0f4479c1f20e0bf01b326dbc467f934e8b"},{"version":"6556f6cfdbf45d9296c83abaa83179413dbd66203b80ccc36fbbe91f59a6d87b","signature":"bd49b151174a1a236f87df6b055d828a395483b5236111d411d212936fa4b9bc"},{"version":"cad5c8ef34df59602e44da5be69a749cbef0c8ae2a8509b61c30f1b093933194","signature":"6fdad21c72c81fcf8abd6d0664db84d38fe3f687f335468e5b453db69af46534"},{"version":"0b05c86cf466535f91ecb1d1c5a2cf1f9db162e935aba51b0997195a2c5b6eba","signature":"cf9b827ac321d6e51cd5cd6153872e7ad7072fed5e418287706d9f54620cdea1"},{"version":"ac3feaa7d814c6da8a35d15550df93dbb737a11252b522d99015b67268586407","signature":"e48a9b78fccc9984adf04cc7993d2b98ce8cba95342cf7c0ac78b799e245d340"},{"version":"2038ef3c1a8d7cb4aa07a5037a2210e356ca27b21257793889b57e4558882438","signature":"7e4359dee637ec552678ee68fa7a028bf84b18528dfdffde3b75c3c5664f8cb6"},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","impliedFormat":1},{"version":"f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","impliedFormat":1},{"version":"5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","impliedFormat":1},{"version":"3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","impliedFormat":1},{"version":"ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","impliedFormat":1},"cd15bbca5d1a89ffab9ab7a615569cc577c108abcc26d0201aa6ff0cd5945c1d",{"version":"4a4a0f929d21a7bc9e599cecbe487db8cc5639b1507a64d42024ab491c112339","signature":"1c284e587ffdc297b7733880e31626961a6f9718f5b26e158d59e7e794d4babb"},{"version":"f09ea9c4009e5875dda960b3adb88429c219129fa9abed9d9b9d601c4ed4b8f4","signature":"1e20a445d8dabdd420f6bca44639452678c53bcee597b7bd6ac5879e97e5ea76"},{"version":"d0c5e4aaba38941ac2ab77fa6de466176e06f2de850be4de8f39ae1872bc29b6","signature":"f792768dde591bf255914b8b60ea52c47a21fce5fbdd68123740b6df4fb1145d","affectsGlobalScope":true},{"version":"a660831087a6af8fb1ebeb13465bccdf062ee66c28232a45d09476e48506d715","signature":"7db6010db9426f833873257c9814750a4765ed05ce3cbbf85c4fd03ec5f5caab"},{"version":"024addf23e63cff3e55092da91b4a7dee0ae58be3aeccb1f9756633e79ddd98a","signature":"a0b011811a5ae48b23a4618570459753d3c0105648c9516086e802b6204297a7","affectsGlobalScope":true},{"version":"afe0d38a80c7ba089d14c3139fa24056364d9c233bbb963e7dc90ad850cf80ef","signature":"b81bde4d255e0243069304db3d077280118079f8bb8acac5d54a9aa7b12a8e6f"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"49a5a44f2e68241a1d2bd9ec894535797998841c09729e506a7cbfcaa40f2180","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"1ca84b44ad1d8e4576f24904d8b95dd23b94ea67e1575f89614ac90062fc67f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d586db0a09a9495ebb5dece28f54df9684bfbd6e1f568426ca153126dac4a40","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"6c09ec7dab82153ee79c7fcc302c3510d287b86b157b76ccbb5d646233373af4","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3e58c4c18a031cbb17abec7a4ad0bd5ae9fc70c1f4ba1e7fb921ad87c504aca","impliedFormat":1},{"version":"84c1930e33d1bb12ad01bcbe11d656f9646bd21b2fb2afd96e8e10615a021aef","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4b87f767c7bc841511113c876a6b8bf1fd0cb0b718c888ad84478b372ec486b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d04e3640dd9eb67f7f1e5bd3d0bf96c784666f7aefc8ac1537af6f2d38d4c29","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"5a369483ac4cfbdf0331c248deeb36140e6907db5e1daed241546b4a2055f82c","impliedFormat":1},{"version":"e8f5b5cc36615c17d330eaf8eebbc0d6bdd942c25991f96ef122f246f4ff722f","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"71450bbc2d82821d24ca05699a533e72758964e9852062c53b30f31c36978ab8","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ada07543808f3b967624645a8e1ccd446f8b01ade47842acf1328aec899fed0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c21aaa8257d7950a5b75a251d9075b6a371208fc948c9c8402f6690ef3b5b55","impliedFormat":1},{"version":"b5895e6353a5d708f55d8685c38a235c3a6d8138e374dee8ceb8ffde5aa8002a","impliedFormat":1},{"version":"b76cc102b903161a152821ed3e09c2a32d678b2a1d196dabc15cfb92c53a4fd0","impliedFormat":1},{"version":"de735eca2c51dd8b860254e9fdb6d9ec19fe402dfe597c23090841ce3937cfc5","impliedFormat":1},{"version":"4ff41188773cbf465807dd2f7059c7494cbee5115608efc297383832a1150c43","impliedFormat":1},{"version":"5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"5155da3047ef977944d791a2188ff6e6c225f6975cc1910ab7bb6838ab84cede","impliedFormat":1},{"version":"93f437e1398a4f06a984f441f7fa7a9f0535c04399619b5c22e0b87bdee182cb","impliedFormat":1},{"version":"afbe24ab0d74694372baa632ecb28bb375be53f3be53f9b07ecd7fc994907de5","impliedFormat":1},{"version":"e16d218a30f6a6810b57f7e968124eaa08c7bb366133ea34bbf01e7cd6b8c0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb8692dea24c27821f77e397272d9ed2eda0b95e4a75beb0fdda31081d15a8ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"5b6844ad931dcc1d3aca53268f4bd671428421464b1286746027aede398094f2","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"0dbcebe2126d03936c70545e96a6e41007cf065be38a1ce4d32a39fcedefead4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1851a3b4db78664f83901bb9cac9e45e03a37bb5933cc5bf37e10bb7e91ab4eb","impliedFormat":1},{"version":"461e54289e6287e8494a0178ba18182acce51a02bca8dea219149bf2cf96f105","impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"e31e51c55800014d926e3f74208af49cb7352803619855c89296074d1ecbb524","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"dfb96ba5177b68003deec9e773c47257da5c4c8a74053d8956389d832df72002","affectsGlobalScope":true,"impliedFormat":1},{"version":"92d3070580cf72b4bb80959b7f16ede9a3f39e6f4ef2ac87cfa4561844fdc69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3dffd70e6375b872f0b4e152de4ae682d762c61a24881ecc5eb9f04c5caf76f","impliedFormat":1},{"version":"613deebaec53731ff6b74fe1a89f094b708033db6396b601df3e6d5ab0ec0a47","impliedFormat":1},{"version":"d91a7d8b5655c42986f1bdfe2105c4408f472831c8f20cf11a8c3345b6b56c8c","impliedFormat":1},{"version":"e56eb632f0281c9f8210eb8c86cc4839a427a4ffffcfd2a5e40b956050b3e042","affectsGlobalScope":true,"impliedFormat":1},{"version":"e8a979b8af001c9fc2e774e7809d233c8ca955a28756f52ee5dee88ccb0611d2","impliedFormat":1},{"version":"cac793cc47c29e26e4ac3601dcb00b4435ebed26203485790e44f2ad8b6ad847","impliedFormat":1},{"version":"bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960","impliedFormat":1},{"version":"26a770cec4bd2e7dbba95c6e536390fffe83c6268b78974a93727903b515c4e7","impliedFormat":1},{"version":"035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245","impliedFormat":1},{"version":"a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54","impliedFormat":1},{"version":"5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434","impliedFormat":1},{"version":"e00243d23c495ca2170c9b9e20b5c92331239100b51efdc2b4401cdad859bbef","impliedFormat":1},{"version":"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","impliedFormat":1},{"version":"d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec","impliedFormat":1},{"version":"ac5f598a09eed39b957ae3d909b88126f3faf605bd4589c19e9ae85d23ef71e3","impliedFormat":1},{"version":"94ef4ad908506ee9dc7c1af2396d5e48aad474d0e8e6050bef69183dacdbccc7","signature":"c4c60e5c6c852f79ba637c5e16f4b18339ffb782ad2ba11fd453991e22cf0466","affectsGlobalScope":true},{"version":"e51e42993b86c29801cf723c772ebfd16958c61ae0f233ba662892e389df939e","signature":"64e06cbda2699cc738a75aacdd7fcd41e9565f543f1ecf5899c77082529cf8ed"},{"version":"169d890d24ee4ce01dea89aa6d270f54c8a5a955bca2eb1447849cb5d89ff1b6","signature":"a6bb4ff9e4cfa286489dd9e506b65c193dd1b850aa0b342dc358c2fb7a368882","affectsGlobalScope":true},{"version":"27ea659d4218bf0726a5a5b446bb7b6c3019e983b3f4f20b44fe3d5c5ded4b11","signature":"b5e90455332d62279bea136ebed20f29e0b35287a5cbab18e5352a2327c1b3e6"},{"version":"6e2fcb28e0664024f342d782d1c664d3098c205ecf805223c3e86267116a5b56","signature":"54dfbc9bb74be972fba27475934eff62764706412f54c88cce0d2614e8601e98","affectsGlobalScope":true},{"version":"5d07e25a84f43b5d8d6bddd0985a50f9b3cdcd2ba4f34917204cb354bc6e7db3","signature":"6a2fbd994c852902e80f42b9020a8cd92c95a42c55b3ef7d4a867c2d649a18ed"},{"version":"030fe3cda7bd97db766fe14fd3050742704f23c4bcc7d7bf5fd9ddc3987bde31","signature":"b95fa8cd6db99dff429f68a2bb9096c13f6da3e391bba47beb627046d568fea7","affectsGlobalScope":true},{"version":"4eb5f8fcb44e67446d13a7a57804b7eb68e3e709125818ce9fff19da600f084b","signature":"1e20a445d8dabdd420f6bca44639452678c53bcee597b7bd6ac5879e97e5ea76"},{"version":"7ff89582857554be9e305937fc92cd581537b9dfdf01d1d5a433239a391c0306","signature":"293babcc1c23c39fac05e5d78e036bd9b15ad6f49c2072a3e8db8ea2ed3d6036","affectsGlobalScope":true},{"version":"dd894e5220324c28664d734de45490908ad7f84eae1d833ccd0f126650cf3434","signature":"db9f79679ecc32b9024d928628d4f044945b9d1c2d7a23bf75b0d744f15323ce","affectsGlobalScope":true},{"version":"8a9a6223f395fb17e0d3abdd4dac1c0ecebd4921fdcdcc8ba32eedf4892eba83","signature":"8a04a20f8f3ad9a2872ba13b04ad42e365e4607a253ea9ccd4d3fae377ea167b","affectsGlobalScope":true},{"version":"54a209897425f8ac9db7174f2d00cf39c63cec26cf3448e46776aef6d4d789dd","signature":"c82ad6c85929f3da1ea792636fa8516b5931950b51d8d95603648bb86627e594"},{"version":"2b9f294470a2532fa6cc9ed798c64204404fc3d7d3f228e93c94e667ddadbdef","signature":"9d1a2905dbb1ef4837c15cb7e14de800d88a21bf89e9ce1b5ec48a50ff418363","affectsGlobalScope":true},{"version":"f3ac15572ea0a5355e90f275da9c0b164aca96c5501b684569ab25d864ac4706","signature":"1b1e21f613c002f43179748f79826aa6ce2750a6affda17c0c5dc5e241491b9c"},{"version":"64b9080b2691cea5cfaa734a383190206495374ef9dfaebe97b214809d7f7484","signature":"17bd2073cef9dc7aec620d1317cf1151394ed7b3b8e79c0098a0df6654e7c155","affectsGlobalScope":true},{"version":"01b7e024c3d1f5efce02cbedc3d7cdb632b43004c7a9c7f36180c80147013369","signature":"c4d1ca77edfc87f2c9fb1b5bacbd52a348c430987ad78a2168888225f89c53dd"},{"version":"e7c7e18c4f2470640b2f0c1aafb2dad40b25331fbfd1c527822ef466953e7114","signature":"7c0723e56bfe0981da11d856014c75a0755f298d00a4b694d83407f729736bba","affectsGlobalScope":true},{"version":"6b7c541ddfe1d0a956cc90e63662a0b0f9ae593df922787f685033063340d459","signature":"ec1574d0b59dad455ddc604957135557843269a0f08cba38e5809d4576406e68"},{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3e3ab1f11f8b64958caba36e170cc68a96fd11965d103739f53c8fa89c2f786","signature":"a5c055fc50b84a3a078e6314c6d88093622402970bedc5fff105b4f660eec5bc","affectsGlobalScope":true},{"version":"9b4ca6c94e962933b02de8cd0732aaf17840c36abf1345d0cadb226f45a4f344","signature":"4d647c8c8d83b1219118b05541905318d83be5daef3927a56152fe61f15e0190"},"16d4585e5822fcbbb2fca56d9937052bd3a8fa6e42ab3ce250cbe401c1e5c52b",{"version":"1a1232dceebe705a37f5fd54d720d083adaca7ab950351eb0150ada724bacceb","signature":"b4e96c4978c45ea5beb50ae21c94ecb7ff8fe6bb168c2214c57d94857c41a23e"},{"version":"b9a4654c5fd088fe4e1ff17ad76b941d61c929fc005d0497c54f80827c1cf56e","signature":"2df0a405d1c8e1c8c2c68fab67309e992dfeb0573bde61966fccd7f280016e5d"},{"version":"0e2ecfcbee0f1b7c9ef686900d84b1dd5e1e3afd8359fb497d884e1800616faa","signature":"1e4afe976ec682bda664aae199a3dd62bbf0d7e451319c5075f0332cc5bb7680"},{"version":"c66d9f889c919390705f5af4a816f786b9a4b52a56cbafdf8da9c01d7432bbcf","signature":"1e4afe976ec682bda664aae199a3dd62bbf0d7e451319c5075f0332cc5bb7680"},{"version":"a966acac847150cfad043899e1446dbffbc56c713f3381af6f01362b56be0e24","signature":"7d4fc4b1a5c6fd637eeb71b6cd9dc069eb70ae53b5b104d16f1e5616a61adceb"},{"version":"d6ad20f728cd1d7a233a9e535285e8858a85ab6a65484771ff1942bd5a9ae725","signature":"7d4fc4b1a5c6fd637eeb71b6cd9dc069eb70ae53b5b104d16f1e5616a61adceb"},{"version":"e97eee07c7ffa52e51984ede94881de6e484c185f06b560f78c2885e4e20104b","signature":"7d4fc4b1a5c6fd637eeb71b6cd9dc069eb70ae53b5b104d16f1e5616a61adceb"},{"version":"aa0f37aa7bbe2b75274a42581d25bea75a2f3d04f28c481989fd44869016d6f4","signature":"7d4fc4b1a5c6fd637eeb71b6cd9dc069eb70ae53b5b104d16f1e5616a61adceb"},{"version":"576168c6a2fbbc98b9bf7bba663798e99e61608602f8a74aadc753cac3e60d50","signature":"7d4fc4b1a5c6fd637eeb71b6cd9dc069eb70ae53b5b104d16f1e5616a61adceb"},{"version":"178469c5c536507a14810bb07a3a8f1922f4045efd1b6dde00ffb2281f98b733","affectsGlobalScope":true,"impliedFormat":1},{"version":"84bd0ed89fe616b90737bc8ab1af1e7f7ebda04e1aabd5ee4145702edd362bcf","signature":"37caef2b9ec1a59ce1e58390f18b55f4cfffc672c2181ad030ebfc3563ccfba8"},{"version":"e7427d1e75e332d73a046aa77deab3d73e6a8ad97e16fedc7419619a595b9ba8","signature":"37caef2b9ec1a59ce1e58390f18b55f4cfffc672c2181ad030ebfc3563ccfba8"},{"version":"64b779c16d6db4d999017d49e0c8095c78f78a159aa99e95edc1172b538888d5","signature":"7d4fc4b1a5c6fd637eeb71b6cd9dc069eb70ae53b5b104d16f1e5616a61adceb"},{"version":"994887a2e06196f005549bb68fe69df153704615a10f3dbe8f46fe6393615084","signature":"37caef2b9ec1a59ce1e58390f18b55f4cfffc672c2181ad030ebfc3563ccfba8"},{"version":"536404e63f94973c08dce80f3bab13a27df365838649014ae1665527e377c1df","signature":"37caef2b9ec1a59ce1e58390f18b55f4cfffc672c2181ad030ebfc3563ccfba8"},{"version":"825df9b29ca75f29715efac777733ca2e34f49e210b76f6055fa088d954f3e03","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"4f35a29a109d18e27dad1528502ea91a05b50b5b0450cdc4f74869d8708216f6","signature":"fc42d9d508b9ca3a623f597c2aa96eac43b489a32c50c63e943df72e141d8741"},{"version":"a8740c560c6e6278d9f0acffe0c2b5759f53f165520b3df75aeaf2a71b7938c3","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"e8197c7800900cb1d7823e997987d15e6ec9b6a15806500f384e92df6baeb669","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"9be2996429fb47b7a4299db196cae1c68bede5e74e33ebd68aa2ff67aea53de0","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"e51e44a2bd37bac70ccb0049d9aca8f6f5cf0ef73cd0f27cb085d58e866f74b9","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"b2aedb954349e2416d71fb028015b961a720127db1932ab170a4d2776efcfb36","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"ded6b89eae6684f09f83a9028a69a25970c0da3a4db5a41e21ac3f96b9a8045b","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"f58ddb35cd39aa3b7f1fbee9f0f748d7fa88be30c0ab945097d030b8a5195b20","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"fb5a7b986d6356d49b857cc5096f5faf9a01d7c998557e0786c6a4e16a2295ab","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"bb004796baa2a1cbb25373077f6ef3dae74393e0ad9906c35054a4b267a3eb25","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"7be09e5e532e26cc0a7cd79038a0eaab2e0a6e95ebb93e2ce9c8695e926774c8","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"7317cbb1595b80fcdee24384c2f55ae846f93c89aae37de1399c1c76a55ba7db","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"8a0618096d39d1e7278405ba67a1380d09988c11fe747d8b91fa49fb8b7cb003","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"c20211050088b2cbba61641b53e28cdf77f4505485cd50ecae11e0f8fe0f5ebf","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"504a092d7c4ee07d79af322fce16af5aaaa8f55daf29c0a334470705a62b6116","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"03e23dd7614eeb02f425ae2d390fb865d8664395474241410a788f4d015d85a4","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"1b63769c5153d0b4dcff280bbd6a0b0be35236408c166478e8eb69fa896d3494","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"e70d63b82a276c6f7942587b705ecbbc57f13b12f73f11fe88655248569bd9a3","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"21ee3fed4fa8fa83b5f8af25f9973c57b43f1e1f8ad77057fd814f214570692e","signature":"9e091ddb3ddf379df8360ea4adc5ac73a28f74f910ae27f7524a1f46531c71bd"},{"version":"451d384cf4019e816adf1d72550d9d0d81e77061f394c8a2261b7044cfc1e793","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c9e8e05e528f96c9a463466b04940227303bf050600f4d80d6ecaad03d7b42f","affectsGlobalScope":true,"impliedFormat":1}],"root":[[47,96],[103,109],[217,234],[236,247],[249,273]],"options":{"allowUnreachableCode":false,"declaration":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"inlineSources":true,"jsx":2,"module":1,"noEmitOnError":false,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":4,"useUnknownInCatchVariables":false},"referencedMap":[[214,1],[99,2],[213,3],[98,1],[275,4],[274,1],[210,1],[211,5],[212,6],[235,7],[155,8],[156,8],[157,9],[115,10],[158,11],[159,12],[160,13],[110,1],[113,14],[111,1],[112,1],[161,15],[162,16],[163,17],[164,18],[165,19],[166,20],[167,20],[169,1],[168,21],[170,22],[171,23],[172,24],[154,25],[114,1],[173,26],[174,27],[175,28],[207,29],[176,30],[177,31],[178,32],[179,33],[180,34],[181,35],[182,36],[183,37],[184,38],[185,39],[186,39],[187,40],[188,1],[189,41],[191,42],[190,43],[192,44],[193,45],[194,46],[195,47],[196,48],[197,49],[198,50],[199,51],[200,52],[201,53],[202,54],[203,55],[204,56],[205,57],[206,58],[208,1],[209,59],[97,1],[215,60],[101,61],[248,1],[102,62],[216,63],[100,64],[45,1],[46,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[19,1],[20,1],[4,1],[21,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[36,1],[33,1],[34,1],[35,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[1,1],[132,65],[142,66],[131,65],[152,67],[123,68],[122,69],[151,70],[145,71],[150,72],[125,73],[139,74],[124,75],[148,76],[120,77],[119,70],[149,78],[121,79],[126,80],[127,1],[130,80],[117,1],[153,81],[143,82],[134,83],[135,84],[137,85],[133,86],[136,87],[146,70],[128,88],[129,89],[138,90],[118,91],[141,82],[140,80],[144,1],[147,92],[96,93],[50,1],[55,94],[49,95],[51,95],[52,95],[53,96],[48,1],[54,95],[79,97],[82,98],[87,99],[80,1],[83,100],[88,101],[92,102],[85,103],[81,104],[84,105],[86,106],[47,1],[90,107],[91,108],[89,109],[74,110],[72,111],[77,112],[73,113],[78,114],[75,115],[76,116],[94,117],[93,111],[95,118],[61,119],[62,120],[69,121],[56,111],[64,119],[59,122],[71,123],[63,120],[65,124],[66,119],[67,120],[57,1],[68,125],[58,126],[60,120],[70,127],[237,128],[238,129],[239,130],[234,131],[106,132],[105,133],[108,134],[107,135],[217,136],[109,135],[219,137],[218,138],[221,139],[220,133],[223,140],[222,141],[225,142],[224,133],[226,143],[227,143],[229,144],[228,135],[231,145],[230,146],[233,147],[232,141],[241,148],[242,148],[103,133],[236,149],[104,150],[240,34],[254,151],[256,152],[257,152],[258,152],[255,153],[259,154],[260,152],[261,151],[262,155],[243,156],[244,156],[245,157],[246,158],[247,159],[249,160],[250,160],[251,161],[252,160],[253,160],[263,162],[264,162],[265,163],[266,163],[267,162],[268,162],[269,162],[270,163],[271,164],[272,162],[273,163],[116,1]],"version":"5.8.3"}