@nfdi4plants/arctrl 3.0.0 → 3.0.3

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.
Files changed (54) hide show
  1. package/dist/ts/ts/CWL/Decode.d.ts +15 -11
  2. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  3. package/dist/ts/ts/CWL/Decode.js +73 -23
  4. package/dist/ts/ts/CWL/Encode.d.ts +8 -1
  5. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  6. package/dist/ts/ts/CWL/Encode.js +15 -11
  7. package/dist/ts/ts/CWL/Requirements.d.ts +1 -1
  8. package/dist/ts/ts/CWL/Requirements.js +1 -1
  9. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +1 -1
  10. package/dist/ts/ts/CWL/WorkflowSteps.js +1 -1
  11. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  12. package/dist/ts/ts/Conversion/Basic.js +6 -6
  13. package/dist/ts/ts/Conversion/Workflow.js +3 -3
  14. package/dist/ts/ts/Core/DataContext.d.ts +21 -29
  15. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  16. package/dist/ts/ts/Core/DataContext.js +70 -84
  17. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  18. package/dist/ts/ts/Core/Datamap.js +9 -10
  19. package/dist/ts/ts/Json/Datamap/DataContext.d.ts.map +1 -1
  20. package/dist/ts/ts/Json/Datamap/DataContext.js +6 -6
  21. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +1 -1
  22. package/dist/ts/ts/ROCrateIO.d.ts +1 -0
  23. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  24. package/dist/ts/ts/ROCrateIO.js +6 -3
  25. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.d.ts.map +1 -1
  26. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +1 -2
  27. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.d.ts.map +1 -1
  28. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +6 -7
  29. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  30. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +2 -2
  31. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
  32. package/dist/ts/ts/Yaml/ValidationPackage.js +6 -6
  33. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
  34. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +6 -6
  35. package/dist/ts/ts/Yaml.js +1 -1
  36. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Encode.fs.js +9 -9
  37. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Escapes.fs.js +313 -0
  38. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/FlowToBlock.fs.js +14 -12
  39. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Persil.fs.js +562 -0
  40. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Preprocessing.fs.js +52 -12
  41. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Reader.fs.js +1314 -0
  42. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Regex.fs.js +7 -1
  43. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/RegexActivePatterns.fs.js +313 -0
  44. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/StringBuffer.fs.js +60 -0
  45. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Writer.fs.js +391 -0
  46. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js +317 -0
  47. package/package.json +1 -1
  48. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Persil.fs.js +0 -45
  49. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Reader.fs.js +0 -539
  50. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/RegexActivePatterns.fs.js +0 -216
  51. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Writer.fs.js +0 -164
  52. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/YAMLiciousTypes.fs.js +0 -152
  53. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Decode.fs.js +0 -0
  54. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Interop/JsInterop.fs.js +0 -0
@@ -1,14 +1,14 @@
1
1
  import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
2
- import { YAMLElement_Nil, YAMLElement_Object, YAMLElement_Mapping, YAMLContent_create_27AED5E3, Config } from '../fable_modules/YAMLicious.1.0.0-alpha.3/YAMLiciousTypes.fs.js';
2
+ import { YAMLElement_Nil, YAMLElement_Object, YAMLElement_Mapping, YAMLContent_create_Z1C3A29C9, Config } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
3
3
  import { equals } from '../../node_modules/@fable-org/fable-library-js/Util.js';
4
4
  import { unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
5
- import { string, tryInclude } from '../fable_modules/YAMLicious.1.0.0-alpha.3/Encode.fs.js';
5
+ import { string, tryInclude } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Encode.fs.js';
6
6
  import { toList, delay, collect, singleton } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
7
7
  import { ValidationPackage } from '../ValidationPackages/ValidationPackage.js';
8
- import { object, string as string$1 } from '../fable_modules/YAMLicious.1.0.0-alpha.3/Decode.fs.js';
9
- import { read } from '../fable_modules/YAMLicious.1.0.0-alpha.3/Reader.fs.js';
8
+ import { object, string as string$1 } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Decode.fs.js';
9
+ import { read } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Reader.fs.js';
10
10
  import { defaultWhitespace } from './Encode.js';
11
- import { write } from '../fable_modules/YAMLicious.1.0.0-alpha.3/Writer.fs.js';
11
+ import { write } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Writer.fs.js';
12
12
 
13
13
  function ValidationPackage_encoder(validationpackage) {
14
14
  const objSeq = choose((tupledArg) => {
@@ -19,7 +19,7 @@ function ValidationPackage_encoder(validationpackage) {
19
19
  return [tupledArg[0], v];
20
20
  }
21
21
  }, ofArray([["name", string(validationpackage.Name)], tryInclude("version", string, validationpackage.Version)]));
22
- return YAMLElement_Object(toList(delay(() => collect((matchValue) => singleton(YAMLElement_Mapping(YAMLContent_create_27AED5E3(matchValue[0]), matchValue[1])), objSeq))));
22
+ return YAMLElement_Object(toList(delay(() => collect((matchValue) => singleton(YAMLElement_Mapping(YAMLContent_create_Z1C3A29C9(matchValue[0]), matchValue[1])), objSeq))));
23
23
  }
24
24
  const ValidationPackage_decoder = (value_2) => object((get$) => {
25
25
  let objectArg, objectArg_1;
@@ -1,4 +1,4 @@
1
- import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.3/YAMLiciousTypes.fs.js';
1
+ import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
2
2
  import { Option } from '@fable-org/fable-library-js/Option.js';
3
3
  import { ValidationPackagesConfig } from '../ValidationPackages/ValidationPackagesConfig.js';
4
4
  import { int32 } from '@fable-org/fable-library-js/Int32.js';
@@ -1,15 +1,15 @@
1
1
  import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
2
- import { YAMLElement_Nil, YAMLElement_Object, YAMLElement_Mapping, YAMLContent_create_27AED5E3, Config } from '../fable_modules/YAMLicious.1.0.0-alpha.3/YAMLiciousTypes.fs.js';
2
+ import { YAMLElement_Nil, YAMLElement_Object, YAMLElement_Mapping, YAMLContent_create_Z1C3A29C9, Config } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
3
3
  import { equals } from '../../node_modules/@fable-org/fable-library-js/Util.js';
4
4
  import { unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
5
- import { tryInclude, resizearray, string } from '../fable_modules/YAMLicious.1.0.0-alpha.3/Encode.fs.js';
5
+ import { tryInclude, resizearray, string } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Encode.fs.js';
6
6
  import { ValidationPackage_encoder, ValidationPackage_decoder } from './ValidationPackage.js';
7
7
  import { toList, delay, collect, singleton } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
8
8
  import { ValidationPackagesConfig } from '../ValidationPackages/ValidationPackagesConfig.js';
9
- import { object, resizearray as resizearray$1, string as string$1 } from '../fable_modules/YAMLicious.1.0.0-alpha.3/Decode.fs.js';
10
- import { read } from '../fable_modules/YAMLicious.1.0.0-alpha.3/Reader.fs.js';
9
+ import { object, resizearray as resizearray$1, string as string$1 } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Decode.fs.js';
10
+ import { read } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Reader.fs.js';
11
11
  import { defaultWhitespace } from './Encode.js';
12
- import { write } from '../fable_modules/YAMLicious.1.0.0-alpha.3/Writer.fs.js';
12
+ import { write } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Writer.fs.js';
13
13
 
14
14
  function ValidationPackagesConfig_encoder(validationpackage) {
15
15
  const objSeq = choose((tupledArg) => {
@@ -20,7 +20,7 @@ function ValidationPackagesConfig_encoder(validationpackage) {
20
20
  return [tupledArg[0], v];
21
21
  }
22
22
  }, ofArray([tryInclude("arc_specification", string, validationpackage.ARCSpecification), ["validation_packages", resizearray(ValidationPackage_encoder, validationpackage.ValidationPackages)]]));
23
- return YAMLElement_Object(toList(delay(() => collect((matchValue) => singleton(YAMLElement_Mapping(YAMLContent_create_27AED5E3(matchValue[0]), matchValue[1])), objSeq))));
23
+ return YAMLElement_Object(toList(delay(() => collect((matchValue) => singleton(YAMLElement_Mapping(YAMLContent_create_Z1C3A29C9(matchValue[0]), matchValue[1])), objSeq))));
24
24
  }
25
25
  const ValidationPackagesConfig_decoder = (value_2) => object((get$) => {
26
26
  let objectArg, objectArg_1;
@@ -2,7 +2,7 @@ import { Decode_decodeCWLProcessingUnit, DecodeParameters_decodeYAMLParameterFil
2
2
  import { encodeProcessingUnit, writeYaml, yMap } from './CWL/Encode.js';
3
3
  import { class_type } from '../node_modules/@fable-org/fable-library-js/Reflection.js';
4
4
  import { toList, map } from '../node_modules/@fable-org/fable-library-js/Seq.js';
5
- import { string, seq } from './fable_modules/YAMLicious.1.0.0-alpha.3/Encode.fs.js';
5
+ import { string, seq } from './fable_modules/YAMLicious.1.0.0-alpha.5/Encode.fs.js';
6
6
 
7
7
  class YamlHelper_ProcessingUnitYAML {
8
8
  constructor() {
@@ -1,4 +1,4 @@
1
- import { YAMLElement_Value, YAMLContent_create_27AED5E3, YAMLElement_Sequence, YAMLElement_Object, YAMLElement_Comment, YAMLElement_Nil, Config } from './YAMLiciousTypes.fs.js';
1
+ import { YAMLElement_Value, YAMLContent_create_Z1C3A29C9, YAMLElement_Sequence, YAMLElement_Object, YAMLElement_Comment, YAMLElement_Nil, Config } from './YAMLiciousTypes.fs.js';
2
2
  import { int32ToString } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
3
3
  import { toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
4
4
  import { toString as toString$1 } from '../../../node_modules/@fable-org/fable-library-js/Date.js';
@@ -8,25 +8,25 @@ import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.
8
8
  import { write as write$1 } from './Writer.fs.js';
9
9
 
10
10
  function int(value) {
11
- return YAMLElement_Value(YAMLContent_create_27AED5E3(int32ToString(value)));
11
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(int32ToString(value)));
12
12
  }
13
13
  function float(value) {
14
- return YAMLElement_Value(YAMLContent_create_27AED5E3(value.toString()));
14
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(value.toString()));
15
15
  }
16
16
  function char(value) {
17
- return YAMLElement_Value(YAMLContent_create_27AED5E3(value));
17
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(value));
18
18
  }
19
19
  function bool(value) {
20
- return YAMLElement_Value(YAMLContent_create_27AED5E3(toString(value)));
20
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(toString(value)));
21
21
  }
22
22
  function datetime(value) {
23
- return YAMLElement_Value(YAMLContent_create_27AED5E3(toString$1(value, "O", {})));
23
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(toString$1(value, "O", {})));
24
24
  }
25
25
  function datetimeOffset(value) {
26
- return YAMLElement_Value(YAMLContent_create_27AED5E3(toString$1(value, "O", {})));
26
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(toString$1(value, "O", {})));
27
27
  }
28
28
  function string(value) {
29
- return YAMLElement_Value(YAMLContent_create_27AED5E3(value));
29
+ return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(value));
30
30
  }
31
31
  function seq(encoder, s) {
32
32
  return YAMLElement_Sequence(ofSeq(map(encoder, s)));
@@ -41,7 +41,7 @@ function list(encoder, l) {
41
41
  return YAMLElement_Sequence(map$1(encoder, l));
42
42
  }
43
43
  function values(encoder, values_1) {
44
- return YAMLElement_Object(ofSeq(map((arg_1) => YAMLElement_Value(YAMLContent_create_27AED5E3(encoder(arg_1))), values_1)));
44
+ return YAMLElement_Object(ofSeq(map((arg_1) => YAMLElement_Value(YAMLContent_create_Z1C3A29C9(encoder(arg_1))), values_1)));
45
45
  }
46
46
  function comment(string_1) {
47
47
  return YAMLElement_Comment(string_1);
@@ -0,0 +1,313 @@
1
+ import { StringBuffer_$ctor, StringBuffer__Append_244C7CD6, StringBuffer__TrimEndWhitespace, StringBuffer__Append_Z721C83C5 } from './StringBuffer.fs.js';
2
+ import { parse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
3
+ import { replicate, substring } from '../../../node_modules/@fable-org/fable-library-js/String.js';
4
+ import { toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
5
+
6
+ function unescapeDoubleQuoted(s) {
7
+ const sb = StringBuffer_$ctor();
8
+ const consumeEscapedLineBreaks = (index_mut, extraBreaks_mut) => {
9
+ consumeEscapedLineBreaks:
10
+ while (true) {
11
+ const index = index_mut, extraBreaks = extraBreaks_mut;
12
+ let j = index + 2;
13
+ while (j < s.length && (s[j] === " " ? true : s[j] === " ")) {
14
+ j = j + 1 | 0;
15
+ }
16
+ if (j + 1 < s.length && s[j] === "\\" && s[j + 1] === "\n") {
17
+ index_mut = j;
18
+ extraBreaks_mut = extraBreaks + 1;
19
+ continue consumeEscapedLineBreaks;
20
+ } else {
21
+ return [extraBreaks, j];
22
+ }
23
+ break;
24
+ }
25
+ };
26
+ const loop = (i_mut) => {
27
+ loop:
28
+ while (true) {
29
+ const i = i_mut;
30
+ if (i >= s.length) {
31
+ } else if (s[i] === "\\" && i + 1 < s.length) {
32
+ const matchValue = s[i + 1];
33
+ let matchResult, c;
34
+ switch (matchValue) {
35
+ case "\n": {
36
+ matchResult = 20;
37
+ break;
38
+ }
39
+ case " ": {
40
+ matchResult = 9;
41
+ break;
42
+ }
43
+ case '"': {
44
+ matchResult = 10;
45
+ break;
46
+ }
47
+ case "/": {
48
+ matchResult = 11;
49
+ break;
50
+ }
51
+ case "0": {
52
+ matchResult = 0;
53
+ break;
54
+ }
55
+ case "L": {
56
+ matchResult = 15;
57
+ break;
58
+ }
59
+ case "N": {
60
+ matchResult = 13;
61
+ break;
62
+ }
63
+ case "P": {
64
+ matchResult = 16;
65
+ break;
66
+ }
67
+ case "U": {
68
+ if (i + 9 < s.length) {
69
+ matchResult = 19;
70
+ } else {
71
+ matchResult = 21;
72
+ c = matchValue;
73
+ }
74
+ break;
75
+ }
76
+ case "\\": {
77
+ matchResult = 12;
78
+ break;
79
+ }
80
+ case "_": {
81
+ matchResult = 14;
82
+ break;
83
+ }
84
+ case "a": {
85
+ matchResult = 1;
86
+ break;
87
+ }
88
+ case "b": {
89
+ matchResult = 2;
90
+ break;
91
+ }
92
+ case "e": {
93
+ matchResult = 8;
94
+ break;
95
+ }
96
+ case "f": {
97
+ matchResult = 6;
98
+ break;
99
+ }
100
+ case "n": {
101
+ matchResult = 4;
102
+ break;
103
+ }
104
+ case "r": {
105
+ matchResult = 7;
106
+ break;
107
+ }
108
+ case "t": {
109
+ matchResult = 3;
110
+ break;
111
+ }
112
+ case "u": {
113
+ if (i + 5 < s.length) {
114
+ matchResult = 18;
115
+ } else {
116
+ matchResult = 21;
117
+ c = matchValue;
118
+ }
119
+ break;
120
+ }
121
+ case "v": {
122
+ matchResult = 5;
123
+ break;
124
+ }
125
+ case "x": {
126
+ if (i + 3 < s.length) {
127
+ matchResult = 17;
128
+ } else {
129
+ matchResult = 21;
130
+ c = matchValue;
131
+ }
132
+ break;
133
+ }
134
+ default: {
135
+ matchResult = 21;
136
+ c = matchValue;
137
+ }
138
+ }
139
+ switch (matchResult) {
140
+ case 0: {
141
+ StringBuffer__Append_244C7CD6(sb, "\0");
142
+ i_mut = i + 2;
143
+ continue loop;
144
+ break;
145
+ }
146
+ case 1: {
147
+ StringBuffer__Append_244C7CD6(sb, "\x07");
148
+ i_mut = i + 2;
149
+ continue loop;
150
+ break;
151
+ }
152
+ case 2: {
153
+ StringBuffer__Append_244C7CD6(sb, "\b");
154
+ i_mut = i + 2;
155
+ continue loop;
156
+ break;
157
+ }
158
+ case 3: {
159
+ StringBuffer__Append_244C7CD6(sb, " ");
160
+ i_mut = i + 2;
161
+ continue loop;
162
+ break;
163
+ }
164
+ case 4: {
165
+ StringBuffer__Append_244C7CD6(sb, "\n");
166
+ i_mut = i + 2;
167
+ continue loop;
168
+ break;
169
+ }
170
+ case 5: {
171
+ StringBuffer__Append_244C7CD6(sb, "\v");
172
+ i_mut = i + 2;
173
+ continue loop;
174
+ break;
175
+ }
176
+ case 6: {
177
+ StringBuffer__Append_244C7CD6(sb, "\f");
178
+ i_mut = i + 2;
179
+ continue loop;
180
+ break;
181
+ }
182
+ case 7: {
183
+ StringBuffer__Append_244C7CD6(sb, "\r");
184
+ i_mut = i + 2;
185
+ continue loop;
186
+ break;
187
+ }
188
+ case 8: {
189
+ StringBuffer__Append_244C7CD6(sb, "\x1B");
190
+ i_mut = i + 2;
191
+ continue loop;
192
+ break;
193
+ }
194
+ case 9: {
195
+ StringBuffer__Append_244C7CD6(sb, " ");
196
+ i_mut = i + 2;
197
+ continue loop;
198
+ break;
199
+ }
200
+ case 10: {
201
+ StringBuffer__Append_244C7CD6(sb, '"');
202
+ i_mut = i + 2;
203
+ continue loop;
204
+ break;
205
+ }
206
+ case 11: {
207
+ StringBuffer__Append_244C7CD6(sb, "/");
208
+ i_mut = i + 2;
209
+ continue loop;
210
+ break;
211
+ }
212
+ case 12: {
213
+ StringBuffer__Append_244C7CD6(sb, "\\");
214
+ i_mut = i + 2;
215
+ continue loop;
216
+ break;
217
+ }
218
+ case 13: {
219
+ StringBuffer__Append_244C7CD6(sb, "…");
220
+ i_mut = i + 2;
221
+ continue loop;
222
+ break;
223
+ }
224
+ case 14: {
225
+ StringBuffer__Append_244C7CD6(sb, " ");
226
+ i_mut = i + 2;
227
+ continue loop;
228
+ break;
229
+ }
230
+ case 15: {
231
+ StringBuffer__Append_244C7CD6(sb, "\u2028");
232
+ i_mut = i + 2;
233
+ continue loop;
234
+ break;
235
+ }
236
+ case 16: {
237
+ StringBuffer__Append_244C7CD6(sb, "\u2029");
238
+ i_mut = i + 2;
239
+ continue loop;
240
+ break;
241
+ }
242
+ case 17: {
243
+ const hex = substring(s, i + 2, 2);
244
+ try {
245
+ StringBuffer__Append_244C7CD6(sb, String.fromCharCode(parse(hex, 511, false, 32, 16)));
246
+ loop(i + 4);
247
+ } catch (matchValue_1) {
248
+ StringBuffer__Append_Z721C83C5(StringBuffer__Append_244C7CD6(StringBuffer__Append_244C7CD6(sb, "\\"), "x"), hex);
249
+ loop(i + 4);
250
+ }
251
+ break;
252
+ }
253
+ case 18: {
254
+ const hex_1 = substring(s, i + 2, 4);
255
+ try {
256
+ StringBuffer__Append_244C7CD6(sb, String.fromCharCode(parse(hex_1, 511, false, 32, 16)));
257
+ loop(i + 6);
258
+ } catch (matchValue_2) {
259
+ StringBuffer__Append_Z721C83C5(StringBuffer__Append_244C7CD6(StringBuffer__Append_244C7CD6(sb, "\\"), "u"), hex_1);
260
+ loop(i + 6);
261
+ }
262
+ break;
263
+ }
264
+ case 19: {
265
+ const hex_2 = substring(s, i + 2, 8);
266
+ try {
267
+ const codePoint = parse(hex_2, 511, false, 32, 16) | 0;
268
+ if (codePoint >= 65536) {
269
+ const cp = codePoint - 65536 | 0;
270
+ const high = 55296 + ~~(cp / 1024) | 0;
271
+ const low = 56320 + cp % 1024 | 0;
272
+ StringBuffer__Append_244C7CD6(StringBuffer__Append_244C7CD6(sb, String.fromCharCode(high)), String.fromCharCode(low));
273
+ } else {
274
+ StringBuffer__Append_244C7CD6(sb, String.fromCharCode(codePoint));
275
+ }
276
+ loop(i + 10);
277
+ } catch (matchValue_3) {
278
+ StringBuffer__Append_Z721C83C5(StringBuffer__Append_244C7CD6(StringBuffer__Append_244C7CD6(sb, "\\"), "U"), hex_2);
279
+ loop(i + 10);
280
+ }
281
+ break;
282
+ }
283
+ case 20: {
284
+ StringBuffer__TrimEndWhitespace(sb);
285
+ const patternInput = consumeEscapedLineBreaks(i, 0);
286
+ const extraBreaks_1 = patternInput[0] | 0;
287
+ if (extraBreaks_1 > 0) {
288
+ StringBuffer__Append_Z721C83C5(sb, replicate(extraBreaks_1, "\n"));
289
+ }
290
+ i_mut = patternInput[1];
291
+ continue loop;
292
+ break;
293
+ }
294
+ case 21: {
295
+ StringBuffer__Append_244C7CD6(StringBuffer__Append_244C7CD6(sb, "\\"), c);
296
+ i_mut = i + 2;
297
+ continue loop;
298
+ break;
299
+ }
300
+ }
301
+ } else {
302
+ StringBuffer__Append_244C7CD6(sb, s[i]);
303
+ i_mut = i + 1;
304
+ continue loop;
305
+ }
306
+ break;
307
+ }
308
+ };
309
+ loop(0);
310
+ return toString(sb);
311
+ }
312
+
313
+ export { unescapeDoubleQuoted };
@@ -1,9 +1,9 @@
1
1
  import { Record, Union } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
2
  import { parse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
3
- import { record_type, int32_type, class_type, string_type, union_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
3
+ import { StringMapEntry_$reflection, PreprocessorElement_Line, PreprocessorElement_Intendation } from './YAMLiciousTypes.fs.js';
4
+ import { record_type, int32_type, class_type, union_type, string_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
4
5
  import { isEmpty, head, tail, cons, ofArrayWithTail, reverse, empty, ofArray, append, toArray, ofSeq, singleton, collect } from '../../../node_modules/@fable-org/fable-library-js/List.js';
5
- import { PreprocessorElement_Line, PreprocessorElement_Intendation } from './YAMLiciousTypes.fs.js';
6
- import { toText, printf, trimEnd, join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
6
+ import { toText, printf, trimStart, trimEnd, join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
7
7
  import { match, create } from '../../../node_modules/@fable-org/fable-library-js/RegExp.js';
8
8
  import { FlowStyleObjectPattern, FlowStyleArrayPattern, FlowStyleObjectOpenerPattern, FlowStyleObjectCloserPattern } from './Regex.fs.js';
9
9
 
@@ -16,7 +16,7 @@ class TransformContext extends Record {
16
16
  }
17
17
  }
18
18
  function TransformContext_$reflection() {
19
- return record_type("YAMLicious.FlowToBlock.TransformContext", [], TransformContext, () => [["BaseIndent", int32_type], ["IndentStep", int32_type], ["StringDict", class_type("System.Collections.Generic.Dictionary`2", [int32_type, string_type])]]);
19
+ return record_type("YAMLicious.FlowToBlock.TransformContext", [], TransformContext, () => [["BaseIndent", int32_type], ["IndentStep", int32_type], ["StringDict", class_type("System.Collections.Generic.Dictionary`2", [int32_type, StringMapEntry_$reflection()])]]);
20
20
  }
21
21
  function defaultContext(stringDict) {
22
22
  return new TransformContext(0, 2, stringDict);
@@ -784,8 +784,8 @@ function transformElement(ctx, element) {
784
784
  switch (element.tag) {
785
785
  case /* Line */
786
786
  2: {
787
- const s = element.fields[0];
788
- const keyValueMatch = match(/^(?<key>[^\{{\[]+):\s+(?<value>(.*))$/gu, s);
787
+ const line = trimStart(element.fields[0]);
788
+ const keyValueMatch = match(/^(?<key>[^\{{\[]+):\s+(?<value>(.*))$/gu, line);
789
789
  if (keyValueMatch != null) {
790
790
  const key = keyValueMatch.groups && keyValueMatch.groups.key || "";
791
791
  const value = (keyValueMatch.groups && keyValueMatch.groups.value || "").trim();
@@ -828,7 +828,7 @@ function transformElement(ctx, element) {
828
828
  return singleton(element);
829
829
  }
830
830
  } else {
831
- const inlineJsonMatch = match(create(FlowStyleObjectPattern), s);
831
+ const inlineJsonMatch = match(create(FlowStyleObjectPattern), line);
832
832
  if (inlineJsonMatch != null) {
833
833
  const content = inlineJsonMatch.groups && inlineJsonMatch.groups.inlineSequence || "";
834
834
  if (content.trim() === "") {
@@ -837,7 +837,7 @@ function transformElement(ctx, element) {
837
837
  return transformFlowContent(ctx, "{" + content + "}");
838
838
  }
839
839
  } else {
840
- const inlineSeqMatch = match(create(FlowStyleArrayPattern), s);
840
+ const inlineSeqMatch = match(create(FlowStyleArrayPattern), line);
841
841
  if (inlineSeqMatch != null) {
842
842
  const content_1 = inlineSeqMatch.groups && inlineSeqMatch.groups.inlineSequence || "";
843
843
  const commentGroup_2 = inlineSeqMatch.groups && inlineSeqMatch.groups.comment;
@@ -913,14 +913,16 @@ function transformElements(ctx, elements) {
913
913
  case 0:
914
914
  return reverse(acc);
915
915
  case 1: {
916
- const jsonOpenerMatch = match(create(FlowStyleObjectOpenerPattern), opener);
917
- if (jsonOpenerMatch != null && match(create(FlowStyleObjectCloserPattern), closer) != null) {
916
+ const jsonOpenerMatch = match(create(FlowStyleObjectOpenerPattern), trimStart(opener));
917
+ if (jsonOpenerMatch != null && match(create(FlowStyleObjectCloserPattern), trimStart(closer)) != null) {
918
918
  const key = jsonOpenerMatch.groups && jsonOpenerMatch.groups.key || "";
919
919
  const flattenLines = (eles) => collect((_arg) => {
920
920
  switch (_arg.tag) {
921
921
  case /* Line */
922
- 2:
923
- return singleton(trimEnd(_arg.fields[0], ","));
922
+ 2: {
923
+ const s = _arg.fields[0];
924
+ return singleton(trimEnd(s.trim(), ","));
925
+ }
924
926
  case /* Intendation */
925
927
  1:
926
928
  return flattenLines(_arg.fields[0]);