@nfdi4plants/arctrl 1.1.0 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/ARC.js +53 -35
  2. package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
  3. package/Contract/ArcAssay.js +102 -0
  4. package/Contract/ArcInvestigation.js +78 -0
  5. package/Contract/ArcStudy.js +102 -0
  6. package/Contract/Contract.js +3 -3
  7. package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
  8. package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
  9. package/Core/Comment.js +97 -0
  10. package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
  11. package/Core/Conversion.js +1056 -0
  12. package/Core/Helper/Collections.js +318 -0
  13. package/Core/Helper/HashCodes.js +39 -0
  14. package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
  15. package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
  16. package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
  17. package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
  18. package/Core/OntologyAnnotation.js +186 -0
  19. package/Core/OntologySourceReference.js +92 -0
  20. package/Core/Person.js +194 -0
  21. package/Core/Process/ColumnIndex.js +248 -0
  22. package/Core/Process/Component.js +188 -0
  23. package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
  24. package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
  25. package/Core/Process/Factor.js +109 -0
  26. package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
  27. package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
  28. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
  29. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
  30. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
  31. package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
  32. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
  33. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
  34. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
  35. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
  36. package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
  37. package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
  38. package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
  39. package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
  40. package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +24 -31
  41. package/Core/Publication.js +116 -0
  42. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +49 -155
  43. package/Core/Table/ArcTableAux.js +532 -0
  44. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
  45. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
  46. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +9 -8
  47. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
  48. package/{Templates → Core}/Template.js +16 -17
  49. package/Core/Templates.js +84 -0
  50. package/FileSystem/Commit.js +2 -2
  51. package/FileSystem/FileSystem.js +4 -4
  52. package/FileSystem/FileSystemTree.js +46 -8
  53. package/FileSystem/Path.js +10 -2
  54. package/Json/ARC.js +25 -0
  55. package/Json/Assay.js +202 -0
  56. package/Json/Comment.js +130 -0
  57. package/Json/ConverterOptions.js +18 -0
  58. package/Json/Decode.js +128 -0
  59. package/Json/Encode.js +45 -0
  60. package/Json/Investigation.js +220 -0
  61. package/Json/OntologyAnnotation.js +169 -0
  62. package/Json/OntologySourceReference.js +122 -0
  63. package/Json/Person.js +250 -0
  64. package/Json/Process/AssayMaterials.js +22 -0
  65. package/Json/Process/Component.js +79 -0
  66. package/Json/Process/Data.js +102 -0
  67. package/Json/Process/DataFile.js +81 -0
  68. package/Json/Process/Factor.js +48 -0
  69. package/Json/Process/FactorValue.js +53 -0
  70. package/Json/Process/Material.js +107 -0
  71. package/Json/Process/MaterialAttribute.js +45 -0
  72. package/Json/Process/MaterialAttributeValue.js +70 -0
  73. package/Json/Process/MaterialType.js +60 -0
  74. package/Json/Process/Process.js +107 -0
  75. package/Json/Process/ProcessInput.js +59 -0
  76. package/Json/Process/ProcessOutput.js +71 -0
  77. package/Json/Process/ProcessParameterValue.js +69 -0
  78. package/Json/Process/ProcessSequence.js +53 -0
  79. package/Json/Process/PropertyValue.js +82 -0
  80. package/Json/Process/Protocol.js +147 -0
  81. package/Json/Process/ProtocolParameter.js +45 -0
  82. package/Json/Process/Sample.js +134 -0
  83. package/Json/Process/Source.js +101 -0
  84. package/Json/Process/StudyMaterials.js +24 -0
  85. package/Json/Process/Value.js +42 -0
  86. package/Json/Publication.js +142 -0
  87. package/Json/StringTable.js +44 -0
  88. package/Json/Study.js +306 -0
  89. package/Json/Table/ArcTable.js +223 -0
  90. package/Json/Table/CellTable.js +40 -0
  91. package/Json/Table/CompositeCell.js +65 -0
  92. package/Json/Table/CompositeHeader.js +57 -0
  93. package/Json/Table/Compression.js +38 -0
  94. package/Json/Table/IOType.js +37 -0
  95. package/Json/Table/OATable.js +40 -0
  96. package/Json/Table/Templates.js +107 -0
  97. package/Json/context/rocrate/isa_assay_context.js +32 -0
  98. package/Json/context/rocrate/isa_comment_context.js +23 -0
  99. package/Json/context/rocrate/isa_component_context.js +24 -0
  100. package/Json/context/rocrate/isa_data_context.js +25 -0
  101. package/Json/context/rocrate/isa_factor_context.js +25 -0
  102. package/Json/context/rocrate/isa_factor_value_context.js +23 -0
  103. package/Json/context/rocrate/isa_investigation_context.js +33 -0
  104. package/Json/context/rocrate/isa_material_attribute_context.js +23 -0
  105. package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
  106. package/Json/context/rocrate/isa_material_context.js +26 -0
  107. package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
  108. package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
  109. package/Json/context/rocrate/isa_organization_context.js +22 -0
  110. package/Json/context/rocrate/isa_person_context.js +33 -0
  111. package/Json/context/rocrate/isa_process_context.js +29 -0
  112. package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
  113. package/Json/context/rocrate/isa_protocol_context.js +28 -0
  114. package/Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
  115. package/Json/context/rocrate/isa_publication_context.js +25 -0
  116. package/Json/context/rocrate/isa_sample_context.js +24 -0
  117. package/Json/context/rocrate/isa_source_context.js +25 -0
  118. package/Json/context/rocrate/isa_study_context.js +40 -0
  119. package/Json/context/rocrate/property_value_context.js +4 -0
  120. package/Json/context/rocrate/rocrate_context.js +23 -0
  121. package/Json.js +193 -0
  122. package/README.md +50 -12
  123. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
  124. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
  125. package/Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
  126. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
  127. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
  128. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
  129. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
  130. package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +8 -8
  131. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
  132. package/Spreadsheet/Metadata/Comment.js +71 -0
  133. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
  134. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
  135. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
  136. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
  137. package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
  138. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
  139. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
  140. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
  141. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +34 -28
  142. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
  143. package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
  144. package/Template.Web.js +27 -0
  145. package/WebRequest/WebRequest.Node.js +15 -0
  146. package/WebRequest/WebRequest.js +10 -29
  147. package/Xlsx.js +85 -0
  148. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
  149. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
  150. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  151. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  152. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
  153. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
  154. package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
  155. package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
  156. package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
  157. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
  158. package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
  159. package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
  160. package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
  161. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
  162. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
  163. package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
  164. package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
  165. package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
  166. package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
  167. package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
  168. package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
  169. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
  170. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
  171. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
  172. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
  173. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
  174. package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
  175. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
  176. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
  177. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
  178. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
  179. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
  180. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
  181. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
  182. package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
  183. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
  184. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
  185. package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  186. package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
  187. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
  188. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
  189. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
  190. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
  191. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
  192. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  193. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
  194. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  195. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
  196. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.d.ts +4 -1
  197. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.js +124 -86
  198. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
  199. package/fable_modules/fable-library-js.4.16.0/CHANGELOG.md +47 -0
  200. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -17
  201. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.js +0 -43
  202. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
  203. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
  204. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.js +340 -42
  205. package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.d.ts +12 -0
  206. package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.js +27 -0
  207. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.js +3 -3
  208. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.js +3 -3
  209. package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
  210. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
  211. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.js +2 -1
  212. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.js +2 -1
  213. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.js +7 -7
  214. package/fable_modules/fable-library-js.4.16.0/Result.d.ts +37 -0
  215. package/fable_modules/fable-library-js.4.16.0/Result.js +165 -0
  216. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.js +2 -2
  217. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.d.ts +1 -0
  218. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.js +8 -5
  219. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +15 -7
  220. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +46 -36
  221. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.d.ts +9 -1
  222. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.js +60 -8
  223. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
  224. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.js +2 -13
  225. package/fable_modules/fable-library-js.4.16.0/big.d.ts +338 -0
  226. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/package.json +4 -3
  227. package/fable_modules/project_cracked.json +1 -1
  228. package/index.js +14 -12
  229. package/package.json +1 -1
  230. package/Contracts/Contracts.ArcTypes.js +0 -268
  231. package/FileSystemTree.js +0 -51
  232. package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
  233. package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
  234. package/ISA/ISA/Builder/Types.js +0 -243
  235. package/ISA/ISA/Fable.js +0 -123
  236. package/ISA/ISA/Helper.js +0 -503
  237. package/ISA/ISA/JsonTypes/Assay.js +0 -620
  238. package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
  239. package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
  240. package/ISA/ISA/JsonTypes/Comment.js +0 -58
  241. package/ISA/ISA/JsonTypes/Component.js +0 -165
  242. package/ISA/ISA/JsonTypes/Factor.js +0 -128
  243. package/ISA/ISA/JsonTypes/Investigation.js +0 -204
  244. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
  245. package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
  246. package/ISA/ISA/JsonTypes/Person.js +0 -137
  247. package/ISA/ISA/JsonTypes/Publication.js +0 -105
  248. package/ISA/ISA/JsonTypes/Study.js +0 -942
  249. package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
  250. package/ISA/ISA/UIHelper.js +0 -19
  251. package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -282
  252. package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -93
  253. package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -170
  254. package/ISA/ISA.Json/ArcTypes/ArcTable.js +0 -178
  255. package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -46
  256. package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -77
  257. package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +0 -82
  258. package/ISA/ISA.Json/ArcTypes/IOType.js +0 -35
  259. package/ISA/ISA.Json/ArcTypes/OATable.js +0 -48
  260. package/ISA/ISA.Json/Assay.js +0 -105
  261. package/ISA/ISA.Json/Comment.js +0 -84
  262. package/ISA/ISA.Json/ConverterOptions.js +0 -33
  263. package/ISA/ISA.Json/Data.js +0 -271
  264. package/ISA/ISA.Json/Decode.js +0 -46
  265. package/ISA/ISA.Json/Factor.js +0 -194
  266. package/ISA/ISA.Json/GEncode.js +0 -15
  267. package/ISA/ISA.Json/Investigation.js +0 -114
  268. package/ISA/ISA.Json/Material.js +0 -233
  269. package/ISA/ISA.Json/Ontology.js +0 -223
  270. package/ISA/ISA.Json/Person.js +0 -204
  271. package/ISA/ISA.Json/Process.js +0 -291
  272. package/ISA/ISA.Json/Protocol.js +0 -242
  273. package/ISA/ISA.Json/Publication.js +0 -92
  274. package/ISA/ISA.Json/StringTable.js +0 -43
  275. package/ISA/ISA.Json/Study.js +0 -212
  276. package/ISA/ISA.Json/Validation/Fable.js +0 -69
  277. package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
  278. package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
  279. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +0 -59
  280. package/ISA/ISA.Spreadsheet/Metadata/Comment.js +0 -60
  281. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
  282. package/Path.js +0 -10
  283. package/Templates/Template.Json.js +0 -83
  284. package/Templates/Template.Web.js +0 -27
  285. package/Templates/Templates.js +0 -82
  286. package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
  287. package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
  288. package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
  289. package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
  290. package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
  291. package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
  292. package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
  293. package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
  294. package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
  295. package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
  296. package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
  297. package/fable_modules/fable-library.4.5.0/MapUtil.d.ts +0 -10
  298. /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
  299. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
  300. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.js +0 -0
  301. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
  302. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
  303. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
  304. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
  305. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
  306. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
  307. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
  308. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
  309. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.js +0 -0
  310. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
  311. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
  312. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
  313. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
  314. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
  315. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
  316. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
  317. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
  318. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.js +0 -0
  319. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
  320. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
  321. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
  322. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.js +0 -0
  323. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
  324. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
  325. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
  326. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
  327. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
  328. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.js +0 -0
  329. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
  330. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.js +0 -0
  331. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
  332. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.js +0 -0
  333. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
  334. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
  335. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.js +0 -0
  336. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
  337. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
  338. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
  339. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
  340. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
  341. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
  342. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.js +0 -0
  343. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
  344. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
  345. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
  346. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.js +0 -0
  347. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
  348. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.js +0 -0
  349. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/README.md +0 -0
  350. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
  351. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
  352. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.js +0 -0
  353. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
  354. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
  355. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
  356. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
  357. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
  358. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.js +0 -0
  359. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
  360. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
  361. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
  362. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
  363. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
  364. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
  365. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
  366. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
  367. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
  368. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
  369. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.js +0 -0
  370. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
  371. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.js +0 -0
  372. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
  373. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
  374. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
  375. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.js +0 -0
  376. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
  377. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
@@ -96,6 +96,13 @@ export function addToSet(v, set) {
96
96
  set.add(v);
97
97
  return true;
98
98
  }
99
+ export function tryAddToDict(dict, k, v) {
100
+ if (dict.has(k)) {
101
+ return false;
102
+ }
103
+ dict.set(k, v);
104
+ return true;
105
+ }
99
106
  export function addToDict(dict, k, v) {
100
107
  if (dict.has(k)) {
101
108
  throw new Error("An item with the same key has already been added. Key: " + k);
@@ -110,3 +117,11 @@ export function getItemFromDict(map, key) {
110
117
  throw new Error(`The given key '${key}' was not present in the dictionary.`);
111
118
  }
112
119
  }
120
+ export function getItemFromDictOrCreate(map, key, createValue) {
121
+ if (map.has(key)) {
122
+ return map.get(key);
123
+ }
124
+ const value = createValue(key);
125
+ map.set(key, value);
126
+ return value;
127
+ }
@@ -1,6 +1,7 @@
1
1
  import { disposeSafe, defaultOf, equals, toIterator, getEnumerator } from "./Util.js";
2
2
  import { iterate, map, delay, toArray, iterateIndexed, concat } from "./Seq.js";
3
3
  import { value as value_1 } from "./Option.js";
4
+ import { setItem } from "./Array.js";
4
5
  import { FSharpRef } from "./Types.js";
5
6
  import { class_type } from "./Reflection.js";
6
7
  import { getItemFromDict, tryGetValue } from "./MapUtil.js";
@@ -75,7 +76,7 @@ export class Dictionary {
75
76
  "System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(array, arrayIndex) {
76
77
  const this$ = this;
77
78
  iterateIndexed((i, e) => {
78
- array[arrayIndex + i] = e;
79
+ setItem(array, arrayIndex + i, e);
79
80
  }, this$);
80
81
  }
81
82
  "System.Collections.Generic.ICollection`1.get_Count"() {
@@ -1,5 +1,6 @@
1
1
  import { disposeSafe, defaultOf, toIterator, getEnumerator } from "./Util.js";
2
2
  import { iterate, map, iterateIndexed, concat } from "./Seq.js";
3
+ import { setItem } from "./Array.js";
3
4
  import { some } from "./Option.js";
4
5
  import { FSharpRef } from "./Types.js";
5
6
  import { class_type } from "./Reflection.js";
@@ -55,7 +56,7 @@ export class HashSet {
55
56
  "System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(array, arrayIndex) {
56
57
  const this$ = this;
57
58
  iterateIndexed((i, e) => {
58
- array[arrayIndex + i] = e;
59
+ setItem(array, arrayIndex + i, e);
59
60
  }, this$);
60
61
  }
61
62
  "System.Collections.Generic.ICollection`1.get_Count"() {
@@ -1,6 +1,6 @@
1
1
  import { class_type } from "./Reflection.js";
2
2
  import { fromFloat64, op_Addition, toInt32, toFloat64, compare, fromInt32, toInt64 } from "./BigInt.js";
3
- import { fill } from "./Array.js";
3
+ import { item, fill, setItem } from "./Array.js";
4
4
  function Native_random() {
5
5
  return Math.random();
6
6
  }
@@ -73,13 +73,13 @@ export class Seeded {
73
73
  if (mk < 0) {
74
74
  mk = ((mk + this.MBIG) | 0);
75
75
  }
76
- mj = (this.seedArray[ii] | 0);
76
+ mj = (item(ii, this.seedArray) | 0);
77
77
  }
78
78
  for (let k = 1; k <= 4; k++) {
79
79
  for (let i_1 = 1; i_1 <= 55; i_1++) {
80
- this.seedArray[i_1] = ((this.seedArray[i_1] - this.seedArray[1 + ((i_1 + 30) % 55)]) | 0);
81
- if (this.seedArray[i_1] < 0) {
82
- this.seedArray[i_1] = ((this.seedArray[i_1] + this.MBIG) | 0);
80
+ this.seedArray[i_1] = ((item(i_1, this.seedArray) - item(1 + ((i_1 + 30) % 55), this.seedArray)) | 0);
81
+ if (item(i_1, this.seedArray) < 0) {
82
+ this.seedArray[i_1] = ((item(i_1, this.seedArray) + this.MBIG) | 0);
83
83
  }
84
84
  }
85
85
  }
@@ -115,7 +115,7 @@ export class Seeded {
115
115
  throw new Error("buffer");
116
116
  }
117
117
  for (let i = 0; i <= (buffer.length - 1); i++) {
118
- buffer[i] = ((Seeded__InternalSample(this$) % (~~255 + 1)) & 0xFF);
118
+ setItem(buffer, i, (Seeded__InternalSample(this$) % (~~255 + 1)) & 0xFF);
119
119
  }
120
120
  }
121
121
  }
@@ -137,7 +137,7 @@ function Seeded__InternalSample(_) {
137
137
  if (locINextp >= 56) {
138
138
  locINextp = 1;
139
139
  }
140
- retVal = ((_.seedArray[locINext] - _.seedArray[locINextp]) | 0);
140
+ retVal = ((item(locINext, _.seedArray) - item(locINextp, _.seedArray)) | 0);
141
141
  if (retVal === _.MBIG) {
142
142
  retVal = ((retVal - 1) | 0);
143
143
  }
@@ -0,0 +1,37 @@
1
+ import { Union } from "./Types.js";
2
+ import { TypeInfo } from "./Reflection.js";
3
+ import { int32 } from "./Int32.js";
4
+ import { FSharpList } from "./List.js";
5
+ import { Option } from "./Option.js";
6
+ export type FSharpResult$2_$union<T, TError> = FSharpResult$2<T, TError, 0> | FSharpResult$2<T, TError, 1>;
7
+ export type FSharpResult$2_$cases<T, TError> = {
8
+ 0: ["Ok", [T]];
9
+ 1: ["Error", [TError]];
10
+ };
11
+ export declare function FSharpResult$2_Ok<T, TError>(ResultValue: T): FSharpResult$2<T, TError, 0>;
12
+ export declare function FSharpResult$2_Error<T, TError>(ErrorValue: TError): FSharpResult$2<T, TError, 1>;
13
+ export declare class FSharpResult$2<T, TError, Tag extends keyof FSharpResult$2_$cases<T, TError>> extends Union<Tag, FSharpResult$2_$cases<T, TError>[Tag][0]> {
14
+ readonly tag: Tag;
15
+ readonly fields: FSharpResult$2_$cases<T, TError>[Tag][1];
16
+ constructor(tag: Tag, fields: FSharpResult$2_$cases<T, TError>[Tag][1]);
17
+ cases(): string[];
18
+ }
19
+ export declare function FSharpResult$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
20
+ export declare function Result_Map<a, b, c>(mapping: ((arg0: a) => b), result: FSharpResult$2_$union<a, c>): FSharpResult$2_$union<b, c>;
21
+ export declare function Result_MapError<a, b, c>(mapping: ((arg0: a) => b), result: FSharpResult$2_$union<c, a>): FSharpResult$2_$union<c, b>;
22
+ export declare function Result_Bind<a, b, c>(binder: ((arg0: a) => FSharpResult$2_$union<b, c>), result: FSharpResult$2_$union<a, c>): FSharpResult$2_$union<b, c>;
23
+ export declare function Result_IsOk<a, b>(result: FSharpResult$2_$union<a, b>): boolean;
24
+ export declare function Result_IsError<a, b>(result: FSharpResult$2_$union<a, b>): boolean;
25
+ export declare function Result_Contains<a, b>(value: a, result: FSharpResult$2_$union<a, b>): boolean;
26
+ export declare function Result_Count<a, b>(result: FSharpResult$2_$union<a, b>): int32;
27
+ export declare function Result_DefaultValue<a, b>(defaultValue: a, result: FSharpResult$2_$union<a, b>): a;
28
+ export declare function Result_DefaultWith<b, a>(defThunk: ((arg0: b) => a), result: FSharpResult$2_$union<a, b>): a;
29
+ export declare function Result_Exists<a, b>(predicate: ((arg0: a) => boolean), result: FSharpResult$2_$union<a, b>): boolean;
30
+ export declare function Result_Fold<a, b, s>(folder: ((arg0: s, arg1: a) => s), state: s, result: FSharpResult$2_$union<a, b>): s;
31
+ export declare function Result_FoldBack<a, b, s>(folder: ((arg0: a, arg1: s) => s), result: FSharpResult$2_$union<a, b>, state: s): s;
32
+ export declare function Result_ForAll<a, b>(predicate: ((arg0: a) => boolean), result: FSharpResult$2_$union<a, b>): boolean;
33
+ export declare function Result_Iterate<a, b>(action: ((arg0: a) => void), result: FSharpResult$2_$union<a, b>): void;
34
+ export declare function Result_ToArray<a, b>(result: FSharpResult$2_$union<a, b>): a[];
35
+ export declare function Result_ToList<a, b>(result: FSharpResult$2_$union<a, b>): FSharpList<a>;
36
+ export declare function Result_ToOption<a, b>(result: FSharpResult$2_$union<a, b>): Option<a>;
37
+ export declare function Result_ToValueOption<a, b>(result: FSharpResult$2_$union<a, b>): Option<a>;
@@ -0,0 +1,165 @@
1
+ import { Union } from "./Types.js";
2
+ import { union_type } from "./Reflection.js";
3
+ import { equals } from "./Util.js";
4
+ import { empty, singleton } from "./List.js";
5
+ import { some } from "./Option.js";
6
+ export function FSharpResult$2_Ok(ResultValue) {
7
+ return new FSharpResult$2(0, [ResultValue]);
8
+ }
9
+ export function FSharpResult$2_Error(ErrorValue) {
10
+ return new FSharpResult$2(1, [ErrorValue]);
11
+ }
12
+ export class FSharpResult$2 extends Union {
13
+ constructor(tag, fields) {
14
+ super();
15
+ this.tag = tag;
16
+ this.fields = fields;
17
+ }
18
+ cases() {
19
+ return ["Ok", "Error"];
20
+ }
21
+ }
22
+ export function FSharpResult$2_$reflection(gen0, gen1) {
23
+ return union_type("FSharp.Core.FSharpResult`2", [gen0, gen1], FSharpResult$2, () => [[["ResultValue", gen0]], [["ErrorValue", gen1]]]);
24
+ }
25
+ export function Result_Map(mapping, result) {
26
+ if (result.tag === /* Ok */ 0) {
27
+ return FSharpResult$2_Ok(mapping(result.fields[0]));
28
+ }
29
+ else {
30
+ return FSharpResult$2_Error(result.fields[0]);
31
+ }
32
+ }
33
+ export function Result_MapError(mapping, result) {
34
+ if (result.tag === /* Ok */ 0) {
35
+ return FSharpResult$2_Ok(result.fields[0]);
36
+ }
37
+ else {
38
+ return FSharpResult$2_Error(mapping(result.fields[0]));
39
+ }
40
+ }
41
+ export function Result_Bind(binder, result) {
42
+ if (result.tag === /* Ok */ 0) {
43
+ return binder(result.fields[0]);
44
+ }
45
+ else {
46
+ return FSharpResult$2_Error(result.fields[0]);
47
+ }
48
+ }
49
+ export function Result_IsOk(result) {
50
+ if (result.tag === /* Ok */ 0) {
51
+ return true;
52
+ }
53
+ else {
54
+ return false;
55
+ }
56
+ }
57
+ export function Result_IsError(result) {
58
+ if (result.tag === /* Ok */ 0) {
59
+ return false;
60
+ }
61
+ else {
62
+ return true;
63
+ }
64
+ }
65
+ export function Result_Contains(value, result) {
66
+ if (result.tag === /* Ok */ 0) {
67
+ return equals(result.fields[0], value);
68
+ }
69
+ else {
70
+ return false;
71
+ }
72
+ }
73
+ export function Result_Count(result) {
74
+ if (result.tag === /* Ok */ 0) {
75
+ return 1;
76
+ }
77
+ else {
78
+ return 0;
79
+ }
80
+ }
81
+ export function Result_DefaultValue(defaultValue, result) {
82
+ if (result.tag === /* Ok */ 0) {
83
+ return result.fields[0];
84
+ }
85
+ else {
86
+ return defaultValue;
87
+ }
88
+ }
89
+ export function Result_DefaultWith(defThunk, result) {
90
+ if (result.tag === /* Ok */ 0) {
91
+ return result.fields[0];
92
+ }
93
+ else {
94
+ return defThunk(result.fields[0]);
95
+ }
96
+ }
97
+ export function Result_Exists(predicate, result) {
98
+ if (result.tag === /* Ok */ 0) {
99
+ return predicate(result.fields[0]);
100
+ }
101
+ else {
102
+ return false;
103
+ }
104
+ }
105
+ export function Result_Fold(folder, state, result) {
106
+ if (result.tag === /* Ok */ 0) {
107
+ return folder(state, result.fields[0]);
108
+ }
109
+ else {
110
+ return state;
111
+ }
112
+ }
113
+ export function Result_FoldBack(folder, result, state) {
114
+ if (result.tag === /* Ok */ 0) {
115
+ return folder(result.fields[0], state);
116
+ }
117
+ else {
118
+ return state;
119
+ }
120
+ }
121
+ export function Result_ForAll(predicate, result) {
122
+ if (result.tag === /* Ok */ 0) {
123
+ return predicate(result.fields[0]);
124
+ }
125
+ else {
126
+ return true;
127
+ }
128
+ }
129
+ export function Result_Iterate(action, result) {
130
+ if (result.tag === /* Ok */ 0) {
131
+ action(result.fields[0]);
132
+ }
133
+ }
134
+ export function Result_ToArray(result) {
135
+ if (result.tag === /* Ok */ 0) {
136
+ return [result.fields[0]];
137
+ }
138
+ else {
139
+ return [];
140
+ }
141
+ }
142
+ export function Result_ToList(result) {
143
+ if (result.tag === /* Ok */ 0) {
144
+ return singleton(result.fields[0]);
145
+ }
146
+ else {
147
+ return empty();
148
+ }
149
+ }
150
+ export function Result_ToOption(result) {
151
+ if (result.tag === /* Ok */ 0) {
152
+ return some(result.fields[0]);
153
+ }
154
+ else {
155
+ return void 0;
156
+ }
157
+ }
158
+ export function Result_ToValueOption(result) {
159
+ if (result.tag === /* Ok */ 0) {
160
+ return some(result.fields[0]);
161
+ }
162
+ else {
163
+ return void 0;
164
+ }
165
+ }
@@ -3,7 +3,7 @@ import { some, value as value_3 } from "./Option.js";
3
3
  import { structuralHash, toIterator, disposeSafe, getEnumerator, isArrayLike } from "./Util.js";
4
4
  import { toString, Record } from "./Types.js";
5
5
  import { fold as fold_2, cons, singleton as singleton_1, empty as empty_1, ofArrayWithTail, tail, head, isEmpty as isEmpty_1, FSharpList } from "./List.js";
6
- import { fold as fold_1, fill } from "./Array.js";
6
+ import { fold as fold_1, fill, setItem } from "./Array.js";
7
7
  import { join } from "./String.js";
8
8
  import { exists as exists_1, cache, forAll as forAll_1, fold as fold_3, reduce, iterate as iterate_1, map as map_1 } from "./Seq.js";
9
9
  import { HashSet__get_Comparer, HashSet_$ctor_Z6150332D, HashSet } from "./MutableSet.js";
@@ -1337,7 +1337,7 @@ export function SetTreeModule_toList(t) {
1337
1337
  export function SetTreeModule_copyToArray(s, arr, i) {
1338
1338
  let j = i;
1339
1339
  SetTreeModule_iter((x) => {
1340
- arr[j] = x;
1340
+ setItem(arr, j, x);
1341
1341
  j = ((j + 1) | 0);
1342
1342
  }, s);
1343
1343
  }
@@ -38,6 +38,7 @@ export declare function trimStart(str: string, ...chars: string[]): any;
38
38
  export declare function trimEnd(str: string, ...chars: string[]): any;
39
39
  export declare function filter(pred: (char: string) => boolean, x: string): string;
40
40
  export declare function substring(str: string, startIndex: number, length?: number): string;
41
+ export declare function toCharArray2(str: string, startIndex: number, length: number): string[];
41
42
  interface FormattableString {
42
43
  strs: TemplateStringsArray;
43
44
  args: any[];
@@ -78,11 +78,11 @@ export function indexOfAny(str, anyOf, ...args) {
78
78
  if (startIndex + length > str.length) {
79
79
  throw new Error("Invalid startIndex and length");
80
80
  }
81
- str = str.substring(startIndex, startIndex + length);
82
- for (const c of anyOf) {
83
- const index = str.indexOf(c);
84
- if (index > -1) {
85
- return index + startIndex;
81
+ const endIndex = startIndex + length;
82
+ const anyOfAsStr = "".concat.apply("", anyOf);
83
+ for (let i = startIndex; i < endIndex; i++) {
84
+ if (anyOfAsStr.indexOf(str[i]) > -1) {
85
+ return i;
86
86
  }
87
87
  }
88
88
  return -1;
@@ -527,6 +527,9 @@ export function substring(str, startIndex, length) {
527
527
  }
528
528
  return length != null ? str.substr(startIndex, length) : str.substr(startIndex);
529
529
  }
530
+ export function toCharArray2(str, startIndex, length) {
531
+ return substring(str, startIndex, length).split("");
532
+ }
530
533
  export function fmt(strs, ...args) {
531
534
  return ({ strs, args });
532
535
  }
@@ -1,22 +1,30 @@
1
- import { IEnumerator, IEqualityComparer, IComparer } from "./Util.js";
2
1
  import { int32 } from "./Int32.js";
2
+ import { IEnumerator, IEqualityComparer, IComparer } from "./Util.js";
3
3
  import { TypeInfo } from "./Reflection.js";
4
4
  import { FSharpRef } from "./Types.js";
5
5
  export declare class Comparer$1<T> implements IComparer<T> {
6
- constructor();
6
+ readonly comparison: ((arg0: T, arg1: T) => int32);
7
+ constructor(comparison: ((arg0: T, arg1: T) => int32));
7
8
  Compare(x: T, y: T): int32;
8
9
  }
9
10
  export declare function Comparer$1_$reflection(gen0: TypeInfo): TypeInfo;
10
- export declare function Comparer$1_$ctor<T>(): Comparer$1<T>;
11
- export declare function Comparer$1_get_Default<T>(): IComparer<T>;
11
+ export declare function Comparer$1_$ctor_47C913C<T>(comparison: ((arg0: T, arg1: T) => int32)): Comparer$1<T>;
12
+ export declare function Comparer$1_get_Default<T>(): Comparer$1<T>;
13
+ export declare function Comparer$1_Create_47C913C<T>(comparison: ((arg0: T, arg1: T) => int32)): Comparer$1<T>;
14
+ export declare function Comparer$1__Compare_5BDDA0<T>(_: Comparer$1<T>, x: T, y: T): int32;
12
15
  export declare class EqualityComparer$1<T> implements IEqualityComparer<T> {
13
- constructor();
16
+ readonly getHashCode: ((arg0: T) => int32);
17
+ readonly equals: ((arg0: T, arg1: T) => boolean);
18
+ constructor(equals: ((arg0: T, arg1: T) => boolean), getHashCode: ((arg0: T) => int32));
14
19
  Equals(x: T, y: T): boolean;
15
20
  GetHashCode(x: T): int32;
16
21
  }
17
22
  export declare function EqualityComparer$1_$reflection(gen0: TypeInfo): TypeInfo;
18
- export declare function EqualityComparer$1_$ctor<T>(): EqualityComparer$1<T>;
19
- export declare function EqualityComparer$1_get_Default<T>(): IEqualityComparer<T>;
23
+ export declare function EqualityComparer$1_$ctor_Z6EE254AB<T>(equals: ((arg0: T, arg1: T) => boolean), getHashCode: ((arg0: T) => int32)): EqualityComparer$1<T>;
24
+ export declare function EqualityComparer$1_get_Default<T>(): EqualityComparer$1<T>;
25
+ export declare function EqualityComparer$1_Create_Z6EE254AB<T>(equals: ((arg0: T, arg1: T) => boolean), getHashCode: ((arg0: T) => int32)): EqualityComparer$1<T>;
26
+ export declare function EqualityComparer$1__Equals_5BDDA0<T>(_: EqualityComparer$1<T>, x: T, y: T): boolean;
27
+ export declare function EqualityComparer$1__GetHashCode_2B595<T>(_: EqualityComparer$1<T>, x: T): int32;
20
28
  export declare class Stack$1<T> implements Iterable<T> {
21
29
  contents: T[];
22
30
  count: int32;
@@ -1,53 +1,63 @@
1
- import { disposeSafe, defaultOf, toIterator, getEnumerator, structuralHash, equals, compare } from "./Util.js";
1
+ import { disposeSafe, defaultOf, toIterator, getEnumerator, structuralHash, equals as equals_1, compare } from "./Util.js";
2
2
  import { class_type } from "./Reflection.js";
3
3
  import { toArray, empty, singleton, append, enumerateWhile, delay } from "./Seq.js";
4
- import { initialize, copyTo, fill } from "./Array.js";
4
+ import { setItem, initialize, copyTo, fill, item as item_1 } from "./Array.js";
5
5
  import { max } from "./Double.js";
6
6
  export class Comparer$1 {
7
- constructor() {
7
+ constructor(comparison) {
8
+ this.comparison = comparison;
8
9
  }
9
10
  Compare(x, y) {
10
- return compare(x, y);
11
+ const _ = this;
12
+ return _.comparison(x, y) | 0;
11
13
  }
12
14
  }
13
15
  export function Comparer$1_$reflection(gen0) {
14
16
  return class_type("System.Collections.Generic.Comparer`1", [gen0], Comparer$1);
15
17
  }
16
- export function Comparer$1_$ctor() {
17
- return new Comparer$1();
18
+ export function Comparer$1_$ctor_47C913C(comparison) {
19
+ return new Comparer$1(comparison);
18
20
  }
19
21
  export function Comparer$1_get_Default() {
20
- return {
21
- Compare(x, y) {
22
- return compare(x, y);
23
- },
24
- };
22
+ return Comparer$1_$ctor_47C913C(compare);
23
+ }
24
+ export function Comparer$1_Create_47C913C(comparison) {
25
+ return Comparer$1_$ctor_47C913C(comparison);
26
+ }
27
+ export function Comparer$1__Compare_5BDDA0(_, x, y) {
28
+ return _.comparison(x, y);
25
29
  }
26
30
  export class EqualityComparer$1 {
27
- constructor() {
31
+ constructor(equals, getHashCode) {
32
+ this.equals = equals;
33
+ this.getHashCode = getHashCode;
28
34
  }
29
35
  Equals(x, y) {
30
- return equals(x, y);
36
+ const _ = this;
37
+ return _.equals(x, y);
31
38
  }
32
39
  GetHashCode(x) {
33
- return structuralHash(x);
40
+ const _ = this;
41
+ return _.getHashCode(x) | 0;
34
42
  }
35
43
  }
36
44
  export function EqualityComparer$1_$reflection(gen0) {
37
45
  return class_type("System.Collections.Generic.EqualityComparer`1", [gen0], EqualityComparer$1);
38
46
  }
39
- export function EqualityComparer$1_$ctor() {
40
- return new EqualityComparer$1();
47
+ export function EqualityComparer$1_$ctor_Z6EE254AB(equals, getHashCode) {
48
+ return new EqualityComparer$1(equals, getHashCode);
41
49
  }
42
50
  export function EqualityComparer$1_get_Default() {
43
- return {
44
- Equals(x, y) {
45
- return equals(x, y);
46
- },
47
- GetHashCode(x_1) {
48
- return structuralHash(x_1);
49
- },
50
- };
51
+ return EqualityComparer$1_$ctor_Z6EE254AB(equals_1, structuralHash);
52
+ }
53
+ export function EqualityComparer$1_Create_Z6EE254AB(equals, getHashCode) {
54
+ return EqualityComparer$1_$ctor_Z6EE254AB(equals, getHashCode);
55
+ }
56
+ export function EqualityComparer$1__Equals_5BDDA0(_, x, y) {
57
+ return _.equals(x, y);
58
+ }
59
+ export function EqualityComparer$1__GetHashCode_2B595(_, x) {
60
+ return _.getHashCode(x);
51
61
  }
52
62
  export class Stack$1 {
53
63
  constructor(initialContents, initialCount) {
@@ -58,7 +68,7 @@ export class Stack$1 {
58
68
  const _ = this;
59
69
  return getEnumerator(delay(() => {
60
70
  let index = _.count - 1;
61
- return enumerateWhile(() => (index >= 0), delay(() => append(singleton(_.contents[index]), delay(() => {
71
+ return enumerateWhile(() => (index >= 0), delay(() => append(singleton(item_1(index, _.contents)), delay(() => {
62
72
  index = ((index - 1) | 0);
63
73
  return empty();
64
74
  }))));
@@ -101,16 +111,16 @@ export function Stack$1__get_Count(_) {
101
111
  }
102
112
  export function Stack$1__Pop(_) {
103
113
  _.count = ((_.count - 1) | 0);
104
- return _.contents[_.count];
114
+ return item_1(_.count, _.contents);
105
115
  }
106
116
  export function Stack$1__Peek(_) {
107
- return _.contents[_.count - 1];
117
+ return item_1(_.count - 1, _.contents);
108
118
  }
109
119
  export function Stack$1__Contains_2B595(_, x) {
110
120
  let found = false;
111
121
  let i = 0;
112
122
  while ((i < _.count) && !found) {
113
- if (equals(x, _.contents[i])) {
123
+ if (equals_1(x, item_1(i, _.contents))) {
114
124
  found = true;
115
125
  }
116
126
  else {
@@ -152,14 +162,14 @@ export function Stack$1__TrimExcess(this$) {
152
162
  }
153
163
  }
154
164
  export function Stack$1__ToArray(_) {
155
- return initialize(_.count, (i) => _.contents[(_.count - 1) - i]);
165
+ return initialize(_.count, (i) => item_1((_.count - 1) - i, _.contents));
156
166
  }
157
167
  export class Queue$1 {
158
168
  constructor(initialContents, initialCount) {
159
169
  this.contents = initialContents;
160
170
  this.count = (initialCount | 0);
161
171
  this.head = 0;
162
- this.tail = (initialCount | 0);
172
+ this.tail = (((initialCount === this.contents.length) ? 0 : initialCount) | 0);
163
173
  }
164
174
  GetEnumerator() {
165
175
  const _ = this;
@@ -207,7 +217,7 @@ export function Queue$1__Dequeue(_) {
207
217
  if (_.count === 0) {
208
218
  throw new Error("Queue is empty");
209
219
  }
210
- const value = _.contents[_.head];
220
+ const value = item_1(_.head, _.contents);
211
221
  _.head = (((_.head + 1) % Queue$1__size(_)) | 0);
212
222
  _.count = ((_.count - 1) | 0);
213
223
  return value;
@@ -216,7 +226,7 @@ export function Queue$1__Peek(_) {
216
226
  if (_.count === 0) {
217
227
  throw new Error("Queue is empty");
218
228
  }
219
- return _.contents[_.head];
229
+ return item_1(_.head, _.contents);
220
230
  }
221
231
  export function Queue$1__TryDequeue_1F3DB691(this$, result) {
222
232
  if (this$.count === 0) {
@@ -240,7 +250,7 @@ export function Queue$1__Contains_2B595(_, x) {
240
250
  let found = false;
241
251
  let i = 0;
242
252
  while ((i < _.count) && !found) {
243
- if (equals(x, _.contents[Queue$1__toIndex_Z524259A4(_, i)])) {
253
+ if (equals_1(x, item_1(Queue$1__toIndex_Z524259A4(_, i), _.contents))) {
244
254
  found = true;
245
255
  }
246
256
  else {
@@ -269,7 +279,7 @@ export function Queue$1__CopyTo_Z3B4C077E(_, target, start) {
269
279
  try {
270
280
  while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
271
281
  const item = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
272
- target[i] = item;
282
+ setItem(target, i, item);
273
283
  i = ((i + 1) | 0);
274
284
  }
275
285
  }
@@ -293,13 +303,13 @@ export function Queue$1__ensure_Z524259A4(this$, requiredSize) {
293
303
  copyTo(this$.contents, 0, newBuffer, Queue$1__size(this$) - this$.head, this$.tail);
294
304
  }
295
305
  this$.head = 0;
296
- this$.tail = (this$.count | 0);
297
306
  this$.contents = newBuffer;
307
+ this$.tail = (((this$.count === Queue$1__size(this$)) ? 0 : this$.count) | 0);
298
308
  }
299
309
  export function Queue$1__toSeq(this$) {
300
310
  return delay(() => {
301
311
  let i = 0;
302
- return enumerateWhile(() => (i < this$.count), delay(() => append(singleton(this$.contents[Queue$1__toIndex_Z524259A4(this$, i)]), delay(() => {
312
+ return enumerateWhile(() => (i < this$.count), delay(() => append(singleton(item_1(Queue$1__toIndex_Z524259A4(this$, i), this$.contents)), delay(() => {
303
313
  i = ((i + 1) | 0);
304
314
  return empty();
305
315
  }))));
@@ -20,11 +20,19 @@ export declare function StringBuilder__Append_4E60E31B(x: StringBuilder, o: any)
20
20
  export declare function StringBuilder__Append_Z372E4D23(x: StringBuilder, cs: string[]): StringBuilder;
21
21
  export declare function StringBuilder__Append_43A65C09(x: StringBuilder, s: StringBuilder): StringBuilder;
22
22
  export declare function StringBuilder__AppendFormat_433E080(x: StringBuilder, fmt: string, o: any): StringBuilder;
23
+ export declare function StringBuilder__AppendFormat_Z3B30EC65(x: StringBuilder, fmt: string, o1: any, o2: any): StringBuilder;
24
+ export declare function StringBuilder__AppendFormat_10D165E0(x: StringBuilder, fmt: string, o1: any, o2: any, o3: any): StringBuilder;
25
+ export declare function StringBuilder__AppendFormat_Z17053F5(x: StringBuilder, fmt: string, arr: any[]): StringBuilder;
23
26
  export declare function StringBuilder__AppendFormat_Z696D8D1B(x: StringBuilder, provider: any, fmt: string, o: any): StringBuilder;
27
+ export declare function StringBuilder__AppendFormat_26802C9E(x: StringBuilder, provider: any, fmt: string, o1: any, o2: any): StringBuilder;
28
+ export declare function StringBuilder__AppendFormat_Z471ADCBB(x: StringBuilder, provider: any, fmt: string, o1: any, o2: any, o3: any): StringBuilder;
29
+ export declare function StringBuilder__AppendFormat_6C2E3E6E(x: StringBuilder, provider: any, fmt: string, arr: any[]): StringBuilder;
24
30
  export declare function StringBuilder__AppendLine(x: StringBuilder): StringBuilder;
25
31
  export declare function StringBuilder__AppendLine_Z721C83C5(x: StringBuilder, s: string): StringBuilder;
32
+ export declare function StringBuilder__Clear(x: StringBuilder): StringBuilder;
33
+ export declare function StringBuilder__get_Chars_Z524259A4(x: StringBuilder, index: int32): string;
34
+ export declare function StringBuilder__set_Chars_413E0D0A(x: StringBuilder, index: int32, value: string): void;
26
35
  export declare function StringBuilder__Replace_Z766F94C0(x: StringBuilder, oldValue: string, newValue: string): StringBuilder;
27
36
  export declare function StringBuilder__Replace_Z384F8060(x: StringBuilder, oldValue: string, newValue: string): StringBuilder;
28
37
  export declare function StringBuilder__get_Length(x: StringBuilder): int32;
29
38
  export declare function StringBuilder__ToString_Z37302880(x: StringBuilder, firstIndex: int32, length: int32): string;
30
- export declare function StringBuilder__Clear(x: StringBuilder): StringBuilder;