@glutinum/cli 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -2
- package/dist/Glutinum.Converter/FsharpAST.js +34 -14
- package/dist/Glutinum.Converter/FsharpAST.js.map +1 -1
- package/dist/Glutinum.Converter/Generate.js.map +1 -1
- package/dist/Glutinum.Converter/GlueAST.js +144 -9
- package/dist/Glutinum.Converter/GlueAST.js.map +1 -1
- package/dist/Glutinum.Converter/Merge.js +1 -1
- package/dist/Glutinum.Converter/Merge.js.map +1 -1
- package/dist/Glutinum.Converter/Printer.js +104 -62
- package/dist/Glutinum.Converter/Printer.js.map +1 -1
- package/dist/Glutinum.Converter/Read.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +1 -1
- package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Declaration.js +2 -2
- package/dist/Glutinum.Converter/Reader/Declaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Documentation.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +2 -2
- package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +1 -1
- package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +1 -1
- package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +1 -1
- package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +2 -1
- package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Node.js +1 -1
- package/dist/Glutinum.Converter/Reader/Node.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Parameters.js +1 -1
- package/dist/Glutinum.Converter/Reader/Parameters.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Report.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeNode.js +192 -73
- package/dist/Glutinum.Converter/Reader/TypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +5 -5
- package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeParameters.js +1 -1
- package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +8 -8
- package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +2 -2
- package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/Utils.js +34 -2
- package/dist/Glutinum.Converter/Reader/Utils.js.map +1 -1
- package/dist/Glutinum.Converter/Reader/VariableStatement.js +1 -1
- package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +1 -1
- package/dist/Glutinum.Converter/Transform.js +886 -256
- package/dist/Glutinum.Converter/Transform.js.map +1 -1
- package/dist/Glutinum.Converter/TypeScript.Extensions.js +10 -0
- package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +1 -1
- package/dist/Glutinum.Converter/Utils/Naming.js +18 -5
- package/dist/Glutinum.Converter/Utils/Naming.js.map +1 -1
- package/dist/fable_modules/project_cracked.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,52 @@
|
|
|
2
2
|
|
|
3
3
|
This is a compiler from `.d.ts` to F# bindings for [Fable](https://fable.io/).
|
|
4
4
|
|
|
5
|
+
## Getting Started
|
|
6
|
+
|
|
7
|
+
Glutinum is delivered both as a CLI tool and web interface.
|
|
8
|
+
|
|
9
|
+
### Web Interface
|
|
10
|
+
|
|
11
|
+
The web interface is available [here](https://glutinum.net/).
|
|
12
|
+
|
|
13
|
+
It is a simple and easy-to-use tool, allowing you to convert `.d.ts` files to F# bindings directly from your browser without installing anything.
|
|
14
|
+
|
|
15
|
+
This is also the tool that you should use to report issues if possible.
|
|
16
|
+
|
|
17
|
+
💡 The web interface is more often updated than the NPM package
|
|
18
|
+
|
|
19
|
+
### CLI via NPM
|
|
20
|
+
|
|
21
|
+
The CLI can be invoked using `npx`:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx @glutinum/cli --help
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
or installed locally:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm i -D @glutinum/cli
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Usage
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Without installing the package
|
|
37
|
+
npx @glutinum/cli ./node_modules/my-lib/index.d.ts --out-file ./Glutinum.MyLib.fs
|
|
38
|
+
# Or with the installed package
|
|
39
|
+
npx glue ./node_modules/my-lib/index.d.ts --out-file ./Glutinum.MyLib.fs
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
or if you prefer you can pipe the output to a file:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Without installing the package
|
|
46
|
+
npx @glutinum/cli ./node_modules/my-lib/index.d.ts > ./Glutinum.MyLib.fs
|
|
47
|
+
# Or with the installed package
|
|
48
|
+
npx glue ./node_modules/my-lib/index.d.ts > ./Glutinum.MyLib.fs
|
|
49
|
+
```
|
|
50
|
+
|
|
5
51
|
## Contributing
|
|
6
52
|
|
|
7
53
|
Glutinum.CLI use `./build.sh` or `./build.bat` as a build script.
|
|
@@ -15,12 +61,26 @@ You can see the available options by running:
|
|
|
15
61
|
When using the test command, you can focus on a specific by forwarding arguments to `vitest`:
|
|
16
62
|
|
|
17
63
|
```bash
|
|
18
|
-
# Focus all tests containing related to specs/class/
|
|
19
|
-
./build.sh test
|
|
64
|
+
# Focus on all tests containing related to specs/references/class/
|
|
65
|
+
./build.sh test specs -- -t class/
|
|
66
|
+
# Do the same, but in watch mode
|
|
67
|
+
./build.sh test specs --watch -- -t class/
|
|
20
68
|
```
|
|
21
69
|
|
|
22
70
|
If you need to run a local version of `@glutinum/cli`, you can use `./build.sh cli [--watch]` and then run `node cli.js <args>`.
|
|
23
71
|
|
|
72
|
+
### Tmux setup
|
|
73
|
+
|
|
74
|
+
When working on Glutinum, I often need to start both the web interface and the tests watcher.
|
|
75
|
+
|
|
76
|
+
To make it easier, I created a tmux script that starts both in a single command.
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
./start-dev.sh
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
> ℹ You need to have `tmux` installed.
|
|
83
|
+
|
|
24
84
|
### Debugging
|
|
25
85
|
|
|
26
86
|
If you use VSCode, you can run the build script/commands from the `JavaScript Debug Terminal`. This allows you to have access to the debugger, breakpoints, etc. (it works from the F# files too).
|
|
@@ -71,6 +131,8 @@ type FSharpAttribute =
|
|
|
71
131
|
| EmitIndexer
|
|
72
132
|
```
|
|
73
133
|
|
|
134
|
+
You can find more information about the internals of Glutinum and the developer workflow by watching the following [Amplifying F# session.](https://www.youtube.com/watch?v=Bq00D2xsa7Q)
|
|
135
|
+
|
|
74
136
|
### Tests
|
|
75
137
|
|
|
76
138
|
#### Vitest
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { toString, Union, Record } from "../fable_modules/fable-library-js.4.14.0/Types.js";
|
|
2
2
|
import { enum_type, option_type, bool_type, float64_type, int32_type, union_type, list_type, record_type, string_type } from "../fable_modules/fable-library-js.4.14.0/Reflection.js";
|
|
3
|
+
import { GlueMember_$reflection } from "./GlueAST.js";
|
|
3
4
|
import { int32ToString } from "../fable_modules/fable-library-js.4.14.0/Util.js";
|
|
4
5
|
import { empty, forAll } from "../fable_modules/fable-library-js.4.14.0/List.js";
|
|
5
6
|
|
|
@@ -202,26 +203,27 @@ export class FSharpAttribute extends Union {
|
|
|
202
203
|
this.fields = fields;
|
|
203
204
|
}
|
|
204
205
|
cases() {
|
|
205
|
-
return ["Text", "EmitSelfInvoke", "EmitSelf", "Import", "ImportAll", "ImportDefault", "Erase", "AbstractClass", "AllowNullLiteral", "Obsolete", "StringEnum", "CompiledName", "RequireQualifiedAccess", "EmitConstructor", "EmitMacroConstructor", "EmitMacroInvoke", "EmitIndexer", "Global", "ParamObject", "ParamArray", "Interface"];
|
|
206
|
+
return ["Text", "EmitSelfInvoke", "EmitSelf", "Import", "ImportAll", "ImportDefault", "Erase", "AbstractClass", "AllowNullLiteral", "Obsolete", "StringEnum", "CompiledName", "RequireQualifiedAccess", "EmitConstructor", "EmitMacroConstructor", "EmitMacroInvoke", "EmitMacroProperty", "EmitIndexer", "Global", "ParamObject", "ParamArray", "Interface"];
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
export function FSharpAttribute_$reflection() {
|
|
210
|
-
return union_type("Glutinum.Converter.FSharpAST.FSharpAttribute", [], FSharpAttribute, () => [[["Item", string_type]], [], [], [["selector", string_type], ["from", string_type]], [["moduleName", string_type]], [["moduleName", string_type]], [], [], [], [["Item", option_type(string_type)]], [["Item", enum_type("Fable.Core.CaseRules", int32_type, [["None", 0], ["LowerFirst", 1], ["SnakeCase", 2], ["SnakeCaseAllCaps", 3], ["KebabCase", 4]])]], [["Item", string_type]], [], [], [["className", string_type]], [["methodName", string_type]], [], [], [], [], []]);
|
|
211
|
+
return union_type("Glutinum.Converter.FSharpAST.FSharpAttribute", [], FSharpAttribute, () => [[["Item", string_type]], [], [], [["selector", string_type], ["from", string_type]], [["moduleName", string_type]], [["moduleName", string_type]], [], [], [], [["Item", option_type(string_type)]], [["Item", enum_type("Fable.Core.CaseRules", int32_type, [["None", 0], ["LowerFirst", 1], ["SnakeCase", 2], ["SnakeCaseAllCaps", 3], ["KebabCase", 4]])]], [["Item", string_type]], [], [], [["className", string_type]], [["methodName", string_type]], [["propertyName", string_type]], [], [], [], [], []]);
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
export class FSharpParameter extends Record {
|
|
214
|
-
constructor(Attributes, Name, IsOptional, Type) {
|
|
215
|
+
constructor(Attributes, Name, IsOptional, Type, OriginalGlueMember) {
|
|
215
216
|
super();
|
|
216
217
|
this.Attributes = Attributes;
|
|
217
218
|
this.Name = Name;
|
|
218
219
|
this.IsOptional = IsOptional;
|
|
219
220
|
this.Type = Type;
|
|
221
|
+
this.OriginalGlueMember = OriginalGlueMember;
|
|
220
222
|
}
|
|
221
223
|
}
|
|
222
224
|
|
|
223
225
|
export function FSharpParameter_$reflection() {
|
|
224
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpParameter", [], FSharpParameter, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["IsOptional", bool_type], ["Type", FSharpType_$reflection()]]);
|
|
226
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpParameter", [], FSharpParameter, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["IsOptional", bool_type], ["Type", FSharpType_$reflection()], ["OriginalGlueMember", option_type(GlueMember_$reflection())]]);
|
|
225
227
|
}
|
|
226
228
|
|
|
227
229
|
export class FSharpMemberInfoBody extends Union {
|
|
@@ -262,7 +264,7 @@ export function FSharpMemberInfo_$reflection() {
|
|
|
262
264
|
}
|
|
263
265
|
|
|
264
266
|
export class FSharpStaticMemberInfo extends Record {
|
|
265
|
-
constructor(Attributes, Name, OriginalName, TypeParameters, Parameters, Type, IsOptional, Accessor, Accessibility) {
|
|
267
|
+
constructor(Attributes, Name, OriginalName, TypeParameters, Parameters, Type, IsOptional, Accessor, Accessibility, XmlDoc) {
|
|
266
268
|
super();
|
|
267
269
|
this.Attributes = Attributes;
|
|
268
270
|
this.Name = Name;
|
|
@@ -273,11 +275,12 @@ export class FSharpStaticMemberInfo extends Record {
|
|
|
273
275
|
this.IsOptional = IsOptional;
|
|
274
276
|
this.Accessor = Accessor;
|
|
275
277
|
this.Accessibility = Accessibility;
|
|
278
|
+
this.XmlDoc = XmlDoc;
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
281
|
|
|
279
282
|
export function FSharpStaticMemberInfo_$reflection() {
|
|
280
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpStaticMemberInfo", [], FSharpStaticMemberInfo, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["OriginalName", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Parameters", list_type(FSharpParameter_$reflection())], ["Type", FSharpType_$reflection()], ["IsOptional", bool_type], ["Accessor", option_type(FSharpAccessor_$reflection())], ["Accessibility", FSharpAccessibility_$reflection()]]);
|
|
283
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpStaticMemberInfo", [], FSharpStaticMemberInfo, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["OriginalName", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Parameters", list_type(FSharpParameter_$reflection())], ["Type", FSharpType_$reflection()], ["IsOptional", bool_type], ["Accessor", option_type(FSharpAccessor_$reflection())], ["Accessibility", FSharpAccessibility_$reflection()], ["XmlDoc", list_type(FSharpXmlDoc_$reflection())]]);
|
|
281
284
|
}
|
|
282
285
|
|
|
283
286
|
export class FSharpMember extends Union {
|
|
@@ -296,10 +299,11 @@ export function FSharpMember_$reflection() {
|
|
|
296
299
|
}
|
|
297
300
|
|
|
298
301
|
export class FSharpInterface extends Record {
|
|
299
|
-
constructor(Attributes, Name, OriginalName, TypeParameters, Members, Inheritance) {
|
|
302
|
+
constructor(Attributes, Name, XmlDoc, OriginalName, TypeParameters, Members, Inheritance) {
|
|
300
303
|
super();
|
|
301
304
|
this.Attributes = Attributes;
|
|
302
305
|
this.Name = Name;
|
|
306
|
+
this.XmlDoc = XmlDoc;
|
|
303
307
|
this.OriginalName = OriginalName;
|
|
304
308
|
this.TypeParameters = TypeParameters;
|
|
305
309
|
this.Members = Members;
|
|
@@ -308,19 +312,20 @@ export class FSharpInterface extends Record {
|
|
|
308
312
|
}
|
|
309
313
|
|
|
310
314
|
export function FSharpInterface_$reflection() {
|
|
311
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpInterface", [], FSharpInterface, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["OriginalName", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Members", list_type(FSharpMember_$reflection())], ["Inheritance", list_type(FSharpType_$reflection())]]);
|
|
315
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpInterface", [], FSharpInterface, () => [["Attributes", list_type(FSharpAttribute_$reflection())], ["Name", string_type], ["XmlDoc", list_type(FSharpXmlDoc_$reflection())], ["OriginalName", string_type], ["TypeParameters", list_type(FSharpTypeParameter_$reflection())], ["Members", list_type(FSharpMember_$reflection())], ["Inheritance", list_type(FSharpType_$reflection())]]);
|
|
312
316
|
}
|
|
313
317
|
|
|
314
318
|
export class FSharpExplicitField extends Record {
|
|
315
|
-
constructor(Name, Type) {
|
|
319
|
+
constructor(Name, Type, Accessor) {
|
|
316
320
|
super();
|
|
317
321
|
this.Name = Name;
|
|
318
322
|
this.Type = Type;
|
|
323
|
+
this.Accessor = Accessor;
|
|
319
324
|
}
|
|
320
325
|
}
|
|
321
326
|
|
|
322
327
|
export function FSharpExplicitField_$reflection() {
|
|
323
|
-
return record_type("Glutinum.Converter.FSharpAST.FSharpExplicitField", [], FSharpExplicitField, () => [["Name", string_type], ["Type", FSharpType_$reflection()]]);
|
|
328
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpExplicitField", [], FSharpExplicitField, () => [["Name", string_type], ["Type", FSharpType_$reflection()], ["Accessor", option_type(FSharpAccessor_$reflection())]]);
|
|
324
329
|
}
|
|
325
330
|
|
|
326
331
|
export class FSharpConstructor extends Record {
|
|
@@ -379,7 +384,7 @@ export function FSharpPrimitive_$reflection() {
|
|
|
379
384
|
return union_type("Glutinum.Converter.FSharpAST.FSharpPrimitive", [], FSharpPrimitive, () => [[], [], [], [], [], [], []]);
|
|
380
385
|
}
|
|
381
386
|
|
|
382
|
-
export class
|
|
387
|
+
export class FSharpTypeParameterInfo extends Record {
|
|
383
388
|
constructor(Name, Constraint, Default) {
|
|
384
389
|
super();
|
|
385
390
|
this.Name = Name;
|
|
@@ -388,8 +393,23 @@ export class FSharpTypeParameter extends Record {
|
|
|
388
393
|
}
|
|
389
394
|
}
|
|
390
395
|
|
|
396
|
+
export function FSharpTypeParameterInfo_$reflection() {
|
|
397
|
+
return record_type("Glutinum.Converter.FSharpAST.FSharpTypeParameterInfo", [], FSharpTypeParameterInfo, () => [["Name", string_type], ["Constraint", option_type(FSharpType_$reflection())], ["Default", option_type(FSharpType_$reflection())]]);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export class FSharpTypeParameter extends Union {
|
|
401
|
+
constructor(tag, fields) {
|
|
402
|
+
super();
|
|
403
|
+
this.tag = tag;
|
|
404
|
+
this.fields = fields;
|
|
405
|
+
}
|
|
406
|
+
cases() {
|
|
407
|
+
return ["FSharpType", "FSharpTypeParameter"];
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
391
411
|
export function FSharpTypeParameter_$reflection() {
|
|
392
|
-
return
|
|
412
|
+
return union_type("Glutinum.Converter.FSharpAST.FSharpTypeParameter", [], FSharpTypeParameter, () => [[["Item", FSharpType_$reflection()]], [["Item", FSharpTypeParameterInfo_$reflection()]]]);
|
|
393
413
|
}
|
|
394
414
|
|
|
395
415
|
export class FSharpTypeAlias extends Record {
|
|
@@ -583,8 +603,8 @@ export function FSharpConstructor_get_EmptyPrivate() {
|
|
|
583
603
|
return new FSharpConstructor(empty(), empty(), new FSharpAccessibility(1, []));
|
|
584
604
|
}
|
|
585
605
|
|
|
586
|
-
export function
|
|
587
|
-
return new
|
|
606
|
+
export function FSharpTypeParameterInfo_Create_Z6CFD3565(name, constraint_, default_) {
|
|
607
|
+
return new FSharpTypeParameterInfo(name, constraint_, default_);
|
|
588
608
|
}
|
|
589
609
|
|
|
590
610
|
//# sourceMappingURL=FsharpAST.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Glutinum.Converter/FsharpAST.fs"],"names":["this","value","isString","matchValue","c","name","constraint_","default_"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Glutinum.Converter/FsharpAST.fs"],"names":["this","value","isString","matchValue","c","name","constraint_","default_"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2BcA;;iCAES,AAAAA;;mBACSC,AAAP,AAAAD;;AACD,mBAAA,SAAA,AAAAA;;mBACN;;AAJQ,mBAAA,AAAAA;;;;;AA0BdE,qBAEG;AACOC,2BAAA,AAAAC;gBAAAD;;;;;uBAKkB;;uBAJI;;OAHhC,AAAAH;AAqBJ,QATO;AACOG,6BAAA,AAAAC;gBAAAD;;;;uBAKkB;;uBAHE;;OAJ9B,AAAAH;AAWA,eAAA;;SACJ,IAAKE;AACD,eAAA;;;AAEA,eAAA;;;;;YA\u002BCEF;;mBAEO;;mBACE;;mBAFH;;;;;WAiJZ,sBACiB,SACA,SACG;;;;WAIpB,sBACiB,SACA,SACG;;;;WAqCpB,4BACWK,MACMC,aACHC","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Glutinum.Converter/Generate.fs"],"names":["filePath","program","createProgramForCLI","checker","sourceFile","printer","readerResult","enumerator","transformResult"],"mappings":";;;;;;;;;;;;AAaI,QAAwC,CAArC,cAAwBA;AACvB,wBAAS,wBAAwBA;;AAIjCC,oBAAU,AAAAC,oBAAoBF,UAAU,SAF1B,gBAAgBA;AAI9BG,oBAAU,AAAAF;AAEVG,uBAAa,AAAAH,sBAAsBD;AAEnCK,oBAAU;AAEVC,yBAAe,eAAoBH,SAAQC;AAGhCG,qBAAA,cAAA,AAAAD;AAAf;AAAA,eAAe,AAAAC;AACX,iBADW,AAAAA;;;;AAAf,oBAAeA;;AAGXC,
|
|
1
|
+
{"version":3,"sources":["../../src/Glutinum.Converter/Generate.fs"],"names":["filePath","program","createProgramForCLI","checker","sourceFile","printer","readerResult","enumerator","transformResult"],"mappings":";;;;;;;;;;;;AAaI,QAAwC,CAArC,cAAwBA;AACvB,wBAAS,wBAAwBA;;AAIjCC,oBAAU,AAAAC,oBAAoBF,UAAU,SAF1B,gBAAgBA;AAI9BG,oBAAU,AAAAF;AAEVG,uBAAa,AAAAH,sBAAsBD;AAEnCK,oBAAU;AAEVC,yBAAe,eAAoBH,SAAQC;AAGhCG,qBAAA,cAAA,AAAAD;AAAf;AAAA,eAAe,AAAAC;AACX,iBADW,AAAAA;;;;AAAf,oBAAeA;;AAGXC,4BAAkB,MAAgB,AAAAF,yBAAwB,AAAAA;AAG9CC,uBAAA,cAAA,AAAAC;AAAhB;AAAA,eAAgB,AAAAD;AACZ,iBADY,AAAAA;;;;AAAhB,oBAAgBA;;AAGAA,uBAAA,cAAA,AAAAC;AAAhB;AAAA,eAAgB,AAAAD;AACZ,kBADY,AAAAA;;;;AAAhB,oBAAgBA;;AAGhB,cAAkBF,SAAQG;AAE1B,WAAA,SAAAH","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { toString, Union, Record } from "../fable_modules/fable-library-js.4.14.0/Types.js";
|
|
2
2
|
import { float64_type, int32_type, bool_type, union_type, list_type, record_type, option_type, string_type } from "../fable_modules/fable-library-js.4.14.0/Reflection.js";
|
|
3
|
+
import { singleton, map, collect, empty } from "../fable_modules/fable-library-js.4.14.0/List.js";
|
|
3
4
|
import { int32ToString } from "../fable_modules/fable-library-js.4.14.0/Util.js";
|
|
5
|
+
import { join } from "../fable_modules/fable-library-js.4.14.0/String.js";
|
|
4
6
|
|
|
5
7
|
export class GlueCommentParam extends Record {
|
|
6
8
|
constructor(Name, Content) {
|
|
@@ -69,9 +71,10 @@ export function GlueTypeParameter_$reflection() {
|
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
export class GlueMethod extends Record {
|
|
72
|
-
constructor(Name, Parameters, Type, IsOptional, IsStatic) {
|
|
74
|
+
constructor(Name, Documentation, Parameters, Type, IsOptional, IsStatic) {
|
|
73
75
|
super();
|
|
74
76
|
this.Name = Name;
|
|
77
|
+
this.Documentation = Documentation;
|
|
75
78
|
this.Parameters = Parameters;
|
|
76
79
|
this.Type = Type;
|
|
77
80
|
this.IsOptional = IsOptional;
|
|
@@ -80,7 +83,7 @@ export class GlueMethod extends Record {
|
|
|
80
83
|
}
|
|
81
84
|
|
|
82
85
|
export function GlueMethod_$reflection() {
|
|
83
|
-
return record_type("Glutinum.Converter.GlueAST.GlueMethod", [], GlueMethod, () => [["Name", string_type], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()], ["IsOptional", bool_type], ["IsStatic", bool_type]]);
|
|
86
|
+
return record_type("Glutinum.Converter.GlueAST.GlueMethod", [], GlueMethod, () => [["Name", string_type], ["Documentation", list_type(GlueComment_$reflection())], ["Parameters", list_type(GlueParameter_$reflection())], ["Type", GlueType_$reflection()], ["IsOptional", bool_type], ["IsStatic", bool_type]]);
|
|
84
87
|
}
|
|
85
88
|
|
|
86
89
|
export class GlueCallSignature extends Record {
|
|
@@ -335,9 +338,10 @@ export function GlueFunctionDeclaration_$reflection() {
|
|
|
335
338
|
}
|
|
336
339
|
|
|
337
340
|
export class GlueModuleDeclaration extends Record {
|
|
338
|
-
constructor(Name, IsNamespace, IsRecursive, Types) {
|
|
341
|
+
constructor(Name, IsTopLevel, IsNamespace, IsRecursive, Types) {
|
|
339
342
|
super();
|
|
340
343
|
this.Name = Name;
|
|
344
|
+
this.IsTopLevel = IsTopLevel;
|
|
341
345
|
this.IsNamespace = IsNamespace;
|
|
342
346
|
this.IsRecursive = IsRecursive;
|
|
343
347
|
this.Types = Types;
|
|
@@ -345,7 +349,7 @@ export class GlueModuleDeclaration extends Record {
|
|
|
345
349
|
}
|
|
346
350
|
|
|
347
351
|
export function GlueModuleDeclaration_$reflection() {
|
|
348
|
-
return record_type("Glutinum.Converter.GlueAST.GlueModuleDeclaration", [], GlueModuleDeclaration, () => [["Name", string_type], ["IsNamespace", bool_type], ["IsRecursive", bool_type], ["Types", list_type(GlueType_$reflection())]]);
|
|
352
|
+
return record_type("Glutinum.Converter.GlueAST.GlueModuleDeclaration", [], GlueModuleDeclaration, () => [["Name", string_type], ["IsTopLevel", bool_type], ["IsNamespace", bool_type], ["IsRecursive", bool_type], ["Types", list_type(GlueType_$reflection())]]);
|
|
349
353
|
}
|
|
350
354
|
|
|
351
355
|
export class GlueConstructor extends Record {
|
|
@@ -361,8 +365,9 @@ export function GlueConstructor_$reflection() {
|
|
|
361
365
|
}
|
|
362
366
|
|
|
363
367
|
export class GlueClassDeclaration extends Record {
|
|
364
|
-
constructor(Name, Constructors, Members, TypeParameters, HeritageClauses) {
|
|
368
|
+
constructor(Documentation, Name, Constructors, Members, TypeParameters, HeritageClauses) {
|
|
365
369
|
super();
|
|
370
|
+
this.Documentation = Documentation;
|
|
366
371
|
this.Name = Name;
|
|
367
372
|
this.Constructors = Constructors;
|
|
368
373
|
this.Members = Members;
|
|
@@ -372,7 +377,7 @@ export class GlueClassDeclaration extends Record {
|
|
|
372
377
|
}
|
|
373
378
|
|
|
374
379
|
export function GlueClassDeclaration_$reflection() {
|
|
375
|
-
return record_type("Glutinum.Converter.GlueAST.GlueClassDeclaration", [], GlueClassDeclaration, () => [["Name", string_type], ["Constructors", list_type(GlueConstructor_$reflection())], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["HeritageClauses", list_type(GlueType_$reflection())]]);
|
|
380
|
+
return record_type("Glutinum.Converter.GlueAST.GlueClassDeclaration", [], GlueClassDeclaration, () => [["Documentation", list_type(GlueComment_$reflection())], ["Name", string_type], ["Constructors", list_type(GlueConstructor_$reflection())], ["Members", list_type(GlueMember_$reflection())], ["TypeParameters", list_type(GlueTypeParameter_$reflection())], ["HeritageClauses", list_type(GlueType_$reflection())]]);
|
|
376
381
|
}
|
|
377
382
|
|
|
378
383
|
export class GlueTypeReference extends Record {
|
|
@@ -457,6 +462,21 @@ export function GlueRecord_$reflection() {
|
|
|
457
462
|
return record_type("Glutinum.Converter.GlueAST.GlueRecord", [], GlueRecord, () => [["KeyType", GlueType_$reflection()], ["ValueType", GlueType_$reflection()]]);
|
|
458
463
|
}
|
|
459
464
|
|
|
465
|
+
export class GlueReadonly extends Union {
|
|
466
|
+
constructor(tag, fields) {
|
|
467
|
+
super();
|
|
468
|
+
this.tag = tag;
|
|
469
|
+
this.fields = fields;
|
|
470
|
+
}
|
|
471
|
+
cases() {
|
|
472
|
+
return ["Members", "Union"];
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export function GlueReadonly_$reflection() {
|
|
477
|
+
return union_type("Glutinum.Converter.GlueAST.GlueReadonly", [], GlueReadonly, () => [[["Item", list_type(GlueMember_$reflection())]], [["Item", list_type(GlueInterface_$reflection())]]]);
|
|
478
|
+
}
|
|
479
|
+
|
|
460
480
|
export class GlueUtilityType extends Union {
|
|
461
481
|
constructor(tag, fields) {
|
|
462
482
|
super();
|
|
@@ -464,12 +484,12 @@ export class GlueUtilityType extends Union {
|
|
|
464
484
|
this.fields = fields;
|
|
465
485
|
}
|
|
466
486
|
cases() {
|
|
467
|
-
return ["Partial", "Record", "ReturnType", "ThisParameterType"];
|
|
487
|
+
return ["Partial", "Record", "ReturnType", "ThisParameterType", "Omit", "Readonly"];
|
|
468
488
|
}
|
|
469
489
|
}
|
|
470
490
|
|
|
471
491
|
export function GlueUtilityType_$reflection() {
|
|
472
|
-
return union_type("Glutinum.Converter.GlueAST.GlueUtilityType", [], GlueUtilityType, () => [[["Item", GlueInterface_$reflection()]], [["Item", GlueRecord_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueType_$reflection()]]]);
|
|
492
|
+
return union_type("Glutinum.Converter.GlueAST.GlueUtilityType", [], GlueUtilityType, () => [[["Item", GlueInterface_$reflection()]], [["Item", GlueRecord_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", list_type(GlueMember_$reflection())]], [["Item", GlueReadonly_$reflection()]]]);
|
|
473
493
|
}
|
|
474
494
|
|
|
475
495
|
export class GlueMappedType extends Record {
|
|
@@ -523,6 +543,44 @@ export function GlueType_$reflection() {
|
|
|
523
543
|
return union_type("Glutinum.Converter.GlueAST.GlueType", [], GlueType, () => [[], [["Item", GlueInterface_$reflection()]], [["Item", GlueVariable_$reflection()]], [["Item", GluePrimitive_$reflection()]], [["Item", GlueEnum_$reflection()]], [["Item", GlueTypeAliasDeclaration_$reflection()]], [["Item", GlueFunctionDeclaration_$reflection()]], [["Item", GlueTypeUnion_$reflection()]], [["Item", GlueLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueIndexedAccessType_$reflection()]], [["Item", GlueModuleDeclaration_$reflection()]], [["Item", GlueClassDeclaration_$reflection()]], [["Item", GlueTypeReference_$reflection()]], [["Item", GlueType_$reflection()]], [["Item", GlueFunctionType_$reflection()]], [["Item", string_type]], [["Item", GlueThisType_$reflection()]], [["Item", list_type(GlueType_$reflection())]], [["Item", NamedTupleType_$reflection()]], [["Item", list_type(GlueMember_$reflection())]], [["Item", GlueTypeLiteral_$reflection()]], [["Item", GlueType_$reflection()]], [], [["Item", GlueType_$reflection()]], [], [["Item", GlueUtilityType_$reflection()]], [["Item", GlueMappedType_$reflection()]], [], [["Item", GlueType_$reflection()]]]);
|
|
524
544
|
}
|
|
525
545
|
|
|
546
|
+
export function GlueMember__TryGetAccessor(this$) {
|
|
547
|
+
switch (this$.tag) {
|
|
548
|
+
case 2:
|
|
549
|
+
return new GlueAccessor(0, []);
|
|
550
|
+
case 3:
|
|
551
|
+
return new GlueAccessor(1, []);
|
|
552
|
+
case 0:
|
|
553
|
+
case 4:
|
|
554
|
+
case 5:
|
|
555
|
+
case 6:
|
|
556
|
+
case 7:
|
|
557
|
+
return void 0;
|
|
558
|
+
default:
|
|
559
|
+
return this$.fields[0].Accessor;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export function GlueMember__get_TypeParameters(this$) {
|
|
564
|
+
switch (this$.tag) {
|
|
565
|
+
case 1:
|
|
566
|
+
return GlueType__get_TypeParameters(this$.fields[0].Type);
|
|
567
|
+
case 2:
|
|
568
|
+
return empty();
|
|
569
|
+
case 3:
|
|
570
|
+
return empty();
|
|
571
|
+
case 4:
|
|
572
|
+
return GlueType__get_TypeParameters(this$.fields[0].Type);
|
|
573
|
+
case 5:
|
|
574
|
+
return GlueType__get_TypeParameters(this$.fields[0].Type);
|
|
575
|
+
case 6:
|
|
576
|
+
return GlueType__get_TypeParameters(this$.fields[0].Type);
|
|
577
|
+
case 7:
|
|
578
|
+
return GlueType__get_TypeParameters(this$.fields[0].Type);
|
|
579
|
+
default:
|
|
580
|
+
return GlueType__get_TypeParameters(this$.fields[0].Type);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
526
584
|
export function GlueLiteral__ToText(this$) {
|
|
527
585
|
switch (this$.tag) {
|
|
528
586
|
case 1:
|
|
@@ -538,6 +596,28 @@ export function GlueLiteral__ToText(this$) {
|
|
|
538
596
|
}
|
|
539
597
|
}
|
|
540
598
|
|
|
599
|
+
export function GlueUtilityType__get_TypeParameters(this$) {
|
|
600
|
+
switch (this$.tag) {
|
|
601
|
+
case 1:
|
|
602
|
+
return empty();
|
|
603
|
+
case 2:
|
|
604
|
+
return GlueType__get_TypeParameters(this$.fields[0]);
|
|
605
|
+
case 3:
|
|
606
|
+
return GlueType__get_TypeParameters(this$.fields[0]);
|
|
607
|
+
case 4:
|
|
608
|
+
return collect(GlueMember__get_TypeParameters, this$.fields[0]);
|
|
609
|
+
case 5:
|
|
610
|
+
if (this$.fields[0].tag === 1) {
|
|
611
|
+
return collect((interfaceInfo) => interfaceInfo.TypeParameters, this$.fields[0].fields[0]);
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
return collect(GlueMember__get_TypeParameters, this$.fields[0].fields[0]);
|
|
615
|
+
}
|
|
616
|
+
default:
|
|
617
|
+
return this$.fields[0].TypeParameters;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
541
621
|
export function GlueType__get_Name(this$) {
|
|
542
622
|
switch (this$.tag) {
|
|
543
623
|
case 2:
|
|
@@ -604,11 +684,12 @@ export function GlueType__get_Name(this$) {
|
|
|
604
684
|
}
|
|
605
685
|
case 17:
|
|
606
686
|
return this$.fields[0].Name;
|
|
687
|
+
case 7:
|
|
688
|
+
return join(" | ", map(GlueType__get_Name, this$.fields[0].fields[0]));
|
|
607
689
|
case 19:
|
|
608
690
|
case 21:
|
|
609
691
|
case 20:
|
|
610
692
|
case 10:
|
|
611
|
-
case 7:
|
|
612
693
|
case 15:
|
|
613
694
|
case 18:
|
|
614
695
|
case 22:
|
|
@@ -635,4 +716,58 @@ export function GlueType__get_Name(this$) {
|
|
|
635
716
|
}
|
|
636
717
|
}
|
|
637
718
|
|
|
719
|
+
export function GlueType__get_TypeParameters(this$) {
|
|
720
|
+
switch (this$.tag) {
|
|
721
|
+
case 5:
|
|
722
|
+
return this$.fields[0].TypeParameters;
|
|
723
|
+
case 12:
|
|
724
|
+
return this$.fields[0].TypeParameters;
|
|
725
|
+
case 13:
|
|
726
|
+
return map((t) => (new GlueTypeParameter(GlueType__get_Name(t), void 0, void 0)), this$.fields[0].TypeArguments);
|
|
727
|
+
case 6:
|
|
728
|
+
return this$.fields[0].TypeParameters;
|
|
729
|
+
case 2:
|
|
730
|
+
return GlueType__get_TypeParameters(this$.fields[0].Type);
|
|
731
|
+
case 7:
|
|
732
|
+
return collect(GlueType__get_TypeParameters, this$.fields[0].fields[0]);
|
|
733
|
+
case 9:
|
|
734
|
+
return GlueType__get_TypeParameters(this$.fields[0]);
|
|
735
|
+
case 14:
|
|
736
|
+
return GlueType__get_TypeParameters(this$.fields[0]);
|
|
737
|
+
case 15:
|
|
738
|
+
return this$.fields[0].TypeParameters;
|
|
739
|
+
case 17:
|
|
740
|
+
return this$.fields[0].TypeParameters;
|
|
741
|
+
case 18:
|
|
742
|
+
return collect(GlueType__get_TypeParameters, this$.fields[0]);
|
|
743
|
+
case 19:
|
|
744
|
+
return GlueType__get_TypeParameters(this$.fields[0].Type);
|
|
745
|
+
case 22:
|
|
746
|
+
return GlueType__get_TypeParameters(this$.fields[0]);
|
|
747
|
+
case 27:
|
|
748
|
+
return singleton(this$.fields[0].TypeParameter);
|
|
749
|
+
case 29:
|
|
750
|
+
return GlueType__get_TypeParameters(this$.fields[0]);
|
|
751
|
+
case 20:
|
|
752
|
+
return collect(GlueMember__get_TypeParameters, this$.fields[0]);
|
|
753
|
+
case 26:
|
|
754
|
+
return GlueUtilityType__get_TypeParameters(this$.fields[0]);
|
|
755
|
+
case 23:
|
|
756
|
+
case 24:
|
|
757
|
+
case 25:
|
|
758
|
+
case 0:
|
|
759
|
+
case 3:
|
|
760
|
+
case 4:
|
|
761
|
+
case 8:
|
|
762
|
+
case 10:
|
|
763
|
+
case 11:
|
|
764
|
+
case 16:
|
|
765
|
+
case 21:
|
|
766
|
+
case 28:
|
|
767
|
+
return empty();
|
|
768
|
+
default:
|
|
769
|
+
return this$.fields[0].TypeParameters;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
638
773
|
//# sourceMappingURL=GlueAST.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Glutinum.Converter/GlueAST.fs"],"names":["this","value","info","ToText","Name","utilityType"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Glutinum.Converter/GlueAST.fs"],"names":["this","TypeParameters","value","interfaceInfo","info","ToText","Name","utilityType","t"],"mappings":"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","file":null,"sourcesContent":null,"sourceRoot":null}
|
|
@@ -18,7 +18,7 @@ function mergeTypes(types) {
|
|
|
18
18
|
const existing = result[index];
|
|
19
19
|
if (existing.tag === 5) {
|
|
20
20
|
const existingInterfaceInfo = existing.fields[0];
|
|
21
|
-
const merged = new FSharpInterface(existingInterfaceInfo.Attributes, existingInterfaceInfo.Name, existingInterfaceInfo.OriginalName, existingInterfaceInfo.TypeParameters, append(existingInterfaceInfo.Members, interfaceInfo.Members), append(existingInterfaceInfo.Inheritance, interfaceInfo.Inheritance));
|
|
21
|
+
const merged = new FSharpInterface(existingInterfaceInfo.Attributes, existingInterfaceInfo.Name, existingInterfaceInfo.XmlDoc, existingInterfaceInfo.OriginalName, existingInterfaceInfo.TypeParameters, append(existingInterfaceInfo.Members, interfaceInfo.Members), append(existingInterfaceInfo.Inheritance, interfaceInfo.Inheritance));
|
|
22
22
|
setItem(result, index, new FSharpType(5, [merged]));
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Glutinum.Converter/Merge.fs"],"names":["indexes","result","enumerator","types","typ","interfaceInfo","index","existing","existingInterfaceInfo","merged","moduleInfo","newModuleInfo","mergeModules","mergeTypes","existingModuleInfo"],"mappings":";;;;;;;AA4BQA,oBAAU;AACVC;AAEOC,uBAAA,cAAAC;AAAX;AAAA,eAAW,AAAAD;AAAPE,wBAAO,AAAAF;AACD,gBAAA,AAAAE;AACiBC,sCACnB,AAAAD;AAAA,oBAAG,AAAAJ,YAAoB,AAAAK;AACfC,kCAAQ,gBAAAN,SAAS,AAAAK;AACjBE,qCAAW,AAAAN,OAAQK;AAEjB,wBAAA,AAAAC;AACiBC,sDACf,AAAAD;AAAAE,uCACA,oBAAA,AAAAD,kCAAA,AAAAA,4BAAA,AAAAA,oCAAA,AAAAA,
|
|
1
|
+
{"version":3,"sources":["../../src/Glutinum.Converter/Merge.fs"],"names":["indexes","result","enumerator","types","typ","interfaceInfo","index","existing","existingInterfaceInfo","merged","moduleInfo","newModuleInfo","mergeModules","mergeTypes","existingModuleInfo"],"mappings":";;;;;;;AA4BQA,oBAAU;AACVC;AAEOC,uBAAA,cAAAC;AAAX;AAAA,eAAW,AAAAD;AAAPE,wBAAO,AAAAF;AACD,gBAAA,AAAAE;AACiBC,sCACnB,AAAAD;AAAA,oBAAG,AAAAJ,YAAoB,AAAAK;AACfC,kCAAQ,gBAAAN,SAAS,AAAAK;AACjBE,qCAAW,AAAAN,OAAQK;AAEjB,wBAAA,AAAAC;AACiBC,sDACf,AAAAD;AAAAE,uCACA,oBAAA,AAAAD,kCAAA,AAAAA,4BAAA,AAAAA,8BAAA,AAAAA,oCAAA,AAAAA,sCACc,OAAA,AAAAA,\u002BBAAgC,AAAAH,wBAEtC,OAAA,AAAAG,mCAAoC,AAAAH;AAGhD,gCAAAJ,QAAQK,OAAU,mBAAqBG;;;AACpC,wCAAS;;;;AAEhB,8BAAAT,SAAY,AAAAK,oBAAoB,AAAAJ;AAChC,0BAAAA,YAAWG;;;;AAEZ,sBAAAH,YAAWG;;;;;AAtBtB,oBAAWF;;AAwBD,WAAA,MAAVD;;;;AAGID,oBAAU;AACVC;AAEOC,uBAAA,cAAAC;AAAX;AAAA,eAAW,AAAAD;AAAPE,wBAAO,AAAAF;AACD,gBAAA,AAAAE;AACcM,mCAEZ,AAAAN;AAAAO,sCACA,iBAAA,AAAAD,iBAAA,AAAAA,wBAC8C,AAAAE,aAAd,AAAAC,WAApB,AAAAH;AAGhB,oBAAG,AAAAV,YAAoB,AAAAU;AACfJ,kCAAQ,gBAAAN,SAAS,AAAAU;AACjBH,qCAAW,AAAAN,OAAQK;AAEjB,wBAAA,AAAAC;AACcO,mDACZ,AAAAP;AAAAE,uCACA,iBAAA,AAAAK,yBAAA,AAAAA,gCAIW,AAAAF,aADA,AAAAC,WADH,OAAA,AAAAC,0BAA2B,AAAAH;AAKvC,gCAAAV,QAAQK,OAAU,mBAAkBG;;;AACjC,wCAAS;;;;AAEhB,8BAAAT,SAAY,AAAAW,oBAAoB,AAAAV;AAChC,0BAAAA,YAA4B,mBAAjBU;;;;AAEZ,sBAAAV,YAAWG;;;;;AA7BtB,oBAAWF;;AA\u002BBD,WAAA,MAAVD;;;;WAEwD,AAAAW,aAAd,AAAAC,WAATV","file":null,"sourcesContent":null,"sourceRoot":null}
|