json10 18.0.16 → 18.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.
2
2
 
3
- Assets from this folder are being shipped with this npm package (json10@18.0.16)
3
+ Assets from this folder are being shipped with this npm package (json10@18.0.17)
4
4
  created from this project.
5
5
 
6
6
  THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
package/browser/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -1 +1 @@
1
- {"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/browser';\nimport { walk, Models } from 'lodash-walk-object/browser';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/browser';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,EAAA;QAChG,IAAI,MAAM,GAAG,EAAE;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS;QACjD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAI;YAEzC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;AACzB,gBAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;;SAG1B,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AAC7C,QAAA,OAAO,MAAM;;AAIR,IAAA,OAAO,OAAO,CAAC,IAAI,EAAE,OAAgC,EAAE,OAK3D,EAAA;AAED,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE;AACxC,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC;QAE7E,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,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,EAAE;oBAC7B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC;;qBACrB;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC;oBACtC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;;AAG5B,aAAC,CAAC;;AAEJ,QAAA,OAAO,GAAG;;AAEb;AAEA;AAAC,CAAC,EAAE,EAAE;;AC/EP;;AAEG;;;;"}
1
+ {"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/browser';\nimport { walk, Models } from 'lodash-walk-object/browser';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/browser';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,EAAA;QAChG,IAAI,MAAM,GAAG,EAAE,CAAA;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS,CAAC;QAClD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAI;YAEzC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;AACzB,gBAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;aACxB;SAEF,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;AAC7C,QAAA,OAAO,MAAM,CAAC;KACf;AAGM,IAAA,OAAO,OAAO,CAAC,IAAI,EAAE,OAAgC,EAAE,OAK3D,EAAA;AAED,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAA;AACxC,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,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G,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC3B,QAAA,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACpB,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAI;AAElD,gBAAA,IAAI,kBAAkB,KAAK,EAAE,EAAE;oBAC7B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;iBAC3B;qBAAM;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;oBACvC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;iBACzB;AAEH,aAAC,CAAC,CAAA;SACH;AACD,QAAA,OAAO,GAAG,CAAC;KACZ;AACF,CAAA;AAEA,CAAC;AAAA,CAAC,EAAE,EAAE;;AC/EP;;AAEG;;;;"}
package/client/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -1 +1 @@
1
- {"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/browser';\nimport { walk, Models } from 'lodash-walk-object/browser';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/browser';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,EAAA;QAChG,IAAI,MAAM,GAAG,EAAE;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS;QACjD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAI;YAEzC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;AACzB,gBAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;;SAG1B,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AAC7C,QAAA,OAAO,MAAM;;AAIR,IAAA,OAAO,OAAO,CAAC,IAAI,EAAE,OAAgC,EAAE,OAK3D,EAAA;AAED,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,GAA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K,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAA;QAClD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;AAC1B,QAAA,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACpB,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAI;AAElD,gBAAA,IAAI,kBAAkB,KAAK,EAAE,EAAE;oBAC7B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC;;qBACrB;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC;oBACtC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;;AAG5B,aAAC,CAAC;;AAEJ,QAAA,OAAO,GAAG;;AAEb;AAEA;AAAC,CAAC,EAAE,EAAE;;AC/EP;;AAEG;;;;"}
1
+ {"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/browser';\nimport { walk, Models } from 'lodash-walk-object/browser';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/browser';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,EAAA;QAChG,IAAI,MAAM,GAAG,EAAE,CAAA;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS,CAAC;QAClD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAI;YAEzC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;AACzB,gBAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;aACxB;SAEF,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;AAC7C,QAAA,OAAO,MAAM,CAAC;KACf;AAGM,IAA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,EAAE,MAAe,EAAE,OAAgC,EAAA;QACvG,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;KAC9C;AAEM,IAAA,OAAO,KAAK,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAA;QAClD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC3B,QAAA,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACpB,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAI;AAElD,gBAAA,IAAI,kBAAkB,KAAK,EAAE,EAAE;oBAC7B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;iBAC3B;qBAAM;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;oBACvC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;iBACzB;AAEH,aAAC,CAAC,CAAA;SACH;AACD,QAAA,OAAO,GAAG,CAAC;KACZ;AACF,CAAA;AAEA,CAAC;AAAA,CAAC,EAAE,EAAE;;AC/EP;;AAEG;;;;"}
package/package.json CHANGED
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "name": "json10",
49
49
  "description": "Handle circural references, comments and many more inside JSON",
50
- "version": "18.0.16",
50
+ "version": "18.0.17",
51
51
  "scripts": {
52
52
  "test": "mocha --require ts-node/register src/**/*.spec.ts",
53
53
  "test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
@@ -67,11 +67,11 @@
67
67
  },
68
68
  "homepage": "https://github.com/darekf77/json10#readme",
69
69
  "dependencies": {
70
- "lodash-walk-object": "~18.0.16"
70
+ "lodash-walk-object": "~18.0.17"
71
71
  },
72
72
  "license": "MIT",
73
73
  "private": false,
74
- "lastBuildTagHash": "647588a33ff01b1a9a13c156c5cea2329e5dab9e",
74
+ "lastBuildTagHash": "74d101e67cc84e7050061a1973c6e16de414e049",
75
75
  "devDependencies": {},
76
76
  "main": "dist/app.electron.js"
77
77
  }
package/taon.jsonc CHANGED
@@ -1,44 +1,44 @@
1
- {
2
- "resources": [],
3
-
4
- "overrided": {
5
- "includeAsDev": [],
6
- "includeOnly": ["lodash-walk-object"],
7
- "ignoreDepsPattern": [],
8
- "dependencies": {},
9
- "linkedFolders": [],
10
- "npmFixes": []
11
- },
12
-
13
- "smartContainerBuildTarget": "",
14
- "linkedRepos": [],
15
-
16
- "libReleaseOptions": {
17
- "nodts": false,
18
- "obscure": false,
19
- "ugly": false,
20
- "includeNodeModules": false,
21
- "cliBuildNoDts": false,
22
- "cliBuildObscure": false,
23
- "cliBuildIncludeNodeModules": false,
24
- "cliBuildUglify": false
25
- },
26
-
27
- "smartContainerTarget": "",
28
- "type": "isomorphic-lib",
29
- "version": "v18",
30
- "additionalNpmNames": ["taon-json"],
31
- "license": "MIT",
32
- "private": false,
33
-
34
- "scripts": {
35
- "test": "mocha --require ts-node/register src/**/*.spec.ts",
36
- "test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
37
- },
38
-
39
- "description": "Handle circural references, comments and many more inside JSON",
40
- "author": "Dariusz Filipiak",
41
- "homepage": "https://github.com/darekf77/json10#readme",
42
- "keywords": ["ng2-rest", "docs", "documentation"],
43
- "workerPlugins": {}
44
- }
1
+ {
2
+ "resources": [],
3
+
4
+ "overrided": {
5
+ "includeAsDev": [],
6
+ "includeOnly": ["lodash-walk-object"],
7
+ "ignoreDepsPattern": [],
8
+ "dependencies": {},
9
+ "linkedFolders": [],
10
+ "npmFixes": []
11
+ },
12
+
13
+ "smartContainerBuildTarget": "",
14
+ "linkedRepos": [],
15
+
16
+ "libReleaseOptions": {
17
+ "nodts": false,
18
+ "obscure": false,
19
+ "ugly": false,
20
+ "includeNodeModules": false,
21
+ "cliBuildNoDts": false,
22
+ "cliBuildObscure": false,
23
+ "cliBuildIncludeNodeModules": false,
24
+ "cliBuildUglify": false
25
+ },
26
+
27
+ "smartContainerTarget": "",
28
+ "type": "isomorphic-lib",
29
+ "version": "v18",
30
+ "additionalNpmNames": ["taon-json"],
31
+ "license": "MIT",
32
+ "private": false,
33
+
34
+ "scripts": {
35
+ "test": "mocha --require ts-node/register src/**/*.spec.ts",
36
+ "test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
37
+ },
38
+
39
+ "description": "Handle circural references, comments and many more inside JSON",
40
+ "author": "Dariusz Filipiak",
41
+ "homepage": "https://github.com/darekf77/json10#readme",
42
+ "keywords": ["ng2-rest", "docs", "documentation"],
43
+ "workerPlugins": {}
44
+ }
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "name": "json10",
53
53
  "description": "Handle circural references, comments and many more inside JSON",
54
- "version": "18.0.16",
54
+ "version": "18.0.17",
55
55
  "scripts": {
56
56
  "test": "mocha --require ts-node/register src/**/*.spec.ts",
57
57
  "test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
@@ -71,11 +71,11 @@
71
71
  },
72
72
  "homepage": "https://github.com/darekf77/json10#readme",
73
73
  "dependencies": {
74
- "lodash-walk-object": "~18.0.16"
74
+ "lodash-walk-object": "~18.0.17"
75
75
  },
76
76
  "license": "MIT",
77
77
  "private": false,
78
- "lastBuildTagHash": "647588a33ff01b1a9a13c156c5cea2329e5dab9e",
78
+ "lastBuildTagHash": "74d101e67cc84e7050061a1973c6e16de414e049",
79
79
  "devDependencies": {
80
80
  "@angular-builders/custom-webpack": "~18.0.0",
81
81
  "@angular-devkit/build-angular": "~18.1.4",
@@ -240,13 +240,13 @@
240
240
  "image-focus": "1.2.1",
241
241
  "immer": "10.0.2",
242
242
  "immutable": "4.3.7",
243
- "incremental-compiler": "~18.0.16",
243
+ "incremental-compiler": "~18.0.17",
244
244
  "inquirer": "7.3.3",
245
245
  "inquirer-autocomplete-prompt": "1.4.0",
246
246
  "inquirer-autocomplete-standalone": "0.8.1",
247
247
  "inquirer-select-pro": "1.0.0-alpha.7",
248
248
  "is-elevated": "3.0.0",
249
- "isomorphic-region-loader": "~18.0.16",
249
+ "isomorphic-region-loader": "~18.0.17",
250
250
  "istanbul-instrumenter-loader": "3.0.1",
251
251
  "jest": "29.7.0",
252
252
  "jest-date-mock": "1.0.10",
@@ -257,8 +257,8 @@
257
257
  "joi": "17.13.3",
258
258
  "jscodeshift": "0.6.3",
259
259
  "json-stringify-safe": "5.0.1",
260
- "json10": "~18.0.15",
261
- "json10-writer": "~18.0.15",
260
+ "json10": "~18.0.16",
261
+ "json10-writer": "~18.0.16",
262
262
  "json5": "2.2.3",
263
263
  "json5-writer": "0.2.0",
264
264
  "jszip": "3.10.1",
@@ -268,7 +268,7 @@
268
268
  "lockfile": "1.0.4",
269
269
  "lodash": "4.17.21",
270
270
  "lowdb": "7.0.1",
271
- "magic-renamer": "~18.0.15",
271
+ "magic-renamer": "~18.0.16",
272
272
  "material-design-icons": "3.0.1",
273
273
  "method-override": "2.3.10",
274
274
  "minimist": "1.2.8",
@@ -279,11 +279,11 @@
279
279
  "ng-in-viewport": "16.1.0",
280
280
  "ng-lock": "18.0.1",
281
281
  "ng-packagr": "18.1.0",
282
- "ng-talkback": "~18.0.14",
283
- "ng2-logger": "~18.0.18",
282
+ "ng-talkback": "~18.0.15",
283
+ "ng2-logger": "~18.0.19",
284
284
  "ng2-pdfjs-viewer": "18.0.0",
285
- "ng2-rest": "~18.0.15",
286
- "ng2-rest-swagger-generator": "18.0.12",
285
+ "ng2-rest": "~18.0.16",
286
+ "ng2-rest-swagger-generator": "18.0.13",
287
287
  "ngx-ace-wrapper": "17.0.0",
288
288
  "ngx-editor": "17.5.4",
289
289
  "ngx-highlightjs": "12.0.0",
@@ -297,7 +297,7 @@
297
297
  "ngx-scrolltop": "18.0.0",
298
298
  "ngx-store": "3.1.1",
299
299
  "ngx-typed-js": "2.1.1",
300
- "node-cli-tester": "~18.0.14",
300
+ "node-cli-tester": "~18.0.15",
301
301
  "node-localstorage": "2.1.6",
302
302
  "node-notifier": "10.0.1",
303
303
  "node-polyfill-webpack-plugin": "2.0.1",
@@ -328,7 +328,7 @@
328
328
  "q": "1.5.1",
329
329
  "rallax.js": "2.0.4",
330
330
  "randomcolor": "0.5.3",
331
- "record-replay-req-res-scenario": "~18.0.14",
331
+ "record-replay-req-res-scenario": "~18.0.15",
332
332
  "reflect-metadata": "0.2.2",
333
333
  "rimraf": "2.6.2",
334
334
  "rxjs": "~7.8.1",
@@ -342,23 +342,23 @@
342
342
  "sql-template-strings": "2.2.2",
343
343
  "sql-template-tag": "5.2.1",
344
344
  "sql.js": "1.8.0",
345
- "static-columns": "~18.0.16",
345
+ "static-columns": "~18.0.17",
346
346
  "string-similarity": "4.0.4",
347
347
  "sudo-block": "3.0.0",
348
348
  "supertest": "7.0.0",
349
349
  "sweetalert2": "11.7.32",
350
350
  "systeminformation": "3.45.7",
351
351
  "taon": "^18",
352
- "taon-storage": "18.0.24",
353
- "taon-type-sql": "18.0.15",
354
- "taon-typeorm": "18.0.14",
352
+ "taon-storage": "18.0.25",
353
+ "taon-type-sql": "18.0.16",
354
+ "taon-typeorm": "18.0.15",
355
355
  "task.js": "0.1.5",
356
356
  "threads": "1.7.0",
357
- "tnp": "~18.0.15",
358
- "tnp-config": "~18.0.18",
359
- "tnp-core": "~18.0.42",
360
- "tnp-helpers": "~18.0.15",
361
- "tnp-models": "~18.0.17",
357
+ "tnp": "~18.0.18",
358
+ "tnp-config": "~18.0.19",
359
+ "tnp-core": "~18.0.43",
360
+ "tnp-helpers": "~18.0.16",
361
+ "tnp-models": "~18.0.18",
362
362
  "ts-debug": "1.3.0",
363
363
  "ts-json-schema-generator": "2.3.0-next.5",
364
364
  "ts-loader": "2.3.1",
@@ -370,14 +370,14 @@
370
370
  "typedoc": "0.26.5",
371
371
  "typedoc-plugin-markdown": "4.2.3",
372
372
  "typescript": "~5.5.4",
373
- "typescript-class-helpers": "~18.0.17",
373
+ "typescript-class-helpers": "~18.0.18",
374
374
  "typescript-formatter": "~7.2.2",
375
375
  "typescript-string-enums": "~1.0.0",
376
376
  "underscore": "1.13.7",
377
377
  "uuid": "10.0.0",
378
378
  "validator": "13.5.2",
379
379
  "video.js": "8.3.0",
380
- "vpn-split": "~18.0.14",
380
+ "vpn-split": "~18.0.15",
381
381
  "vscode": "1.1.37",
382
382
  "wait-on": "8.0.1",
383
383
  "watch": "1.0.2",
@@ -390,14 +390,14 @@
390
390
  "main": "dist/app.electron.js"
391
391
  },
392
392
  "build": {
393
- "number": 349,
394
- "date": "2024-11-25T02:20:36.000Z",
395
- "hash": "74d101e67cc84e7050061a1973c6e16de414e049"
393
+ "number": 350,
394
+ "date": "2024-12-31T17:53:11.000Z",
395
+ "hash": "bc1937d8e0e1694460f947bc85e88b53b25208af"
396
396
  },
397
397
  "currentProjectName": "json10",
398
398
  "currentProjectGenericName": "json10",
399
399
  "currentProjectType": "isomorphic-lib",
400
- "currentFrameworkVersion": "18.0.17",
400
+ "currentFrameworkVersion": "18.0.18",
401
401
  "isStandaloneProject": true,
402
402
  "isSmartContainer": false,
403
403
  "pathesTsconfig": "\"paths\": {\"json10\":[\"./src/lib\"],\"json10/*\":[\"./src/lib/*\"]},",
package/websql/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -1 +1 @@
1
- {"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist-websql/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist-websql/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/websql';\nimport { walk, Models } from 'lodash-walk-object/websql';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/websql';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,EAAA;QAChG,IAAI,MAAM,GAAG,EAAE;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS;QACjD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAI;YAEzC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;AACzB,gBAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;;SAG1B,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G1E,OAAO,SAAS,CAAC,OAAe,EAAE,OAAa,EAAE,MAAe,EAAE,OAAgC,EAAA;QACvG,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC;QAC3C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC;;AAGvC,IAAA,OAAO,KAAK,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAA;QAClD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;AAC1B,QAAA,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACpB,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAI;AAElD,gBAAA,IAAI,kBAAkB,KAAK,EAAE,EAAE;oBAC7B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC;;qBACrB;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC;oBACtC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;;AAG5B,aAAC,CAAC;;AAEJ,QAAA,OAAO,GAAG;;AAEb;AAEA;AAAC,CAAC,EAAE,EAAE;;AC/EP;;AAEG;;;;"}
1
+ {"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist-websql/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist-websql/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/websql';\nimport { walk, Models } from 'lodash-walk-object/websql';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/websql';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,EAAA;QAChG,IAAI,MAAM,GAAG,EAAE,CAAA;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS,CAAC;QAClD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAA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