@nfdi4plants/arctrl 3.2.3 → 3.3.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.
Files changed (453) hide show
  1. package/dist/ts/index.d.ts +44 -7
  2. package/dist/ts/index.d.ts.map +1 -1
  3. package/dist/ts/index.js +45 -8
  4. package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
  5. package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
  6. package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
  7. package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
  8. package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
  10. package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
  11. package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
  12. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
  13. package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
  14. package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
  15. package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
  16. package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
  17. package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
  18. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
  19. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
  20. package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
  22. package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
  23. package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
  24. package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
  25. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
  26. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
  27. package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
  28. package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
  29. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
  30. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
  31. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
  32. package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
  33. package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
  34. package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
  35. package/dist/ts/ts/ARC.d.ts +19 -2
  36. package/dist/ts/ts/ARC.d.ts.map +1 -1
  37. package/dist/ts/ts/ARC.js +128 -89
  38. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
  39. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
  40. package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
  41. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
  42. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
  43. package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
  44. package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
  45. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  46. package/dist/ts/ts/CWL/CWLTypes.js +887 -201
  47. package/dist/ts/ts/CWL/Decode.d.ts +480 -211
  48. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  49. package/dist/ts/ts/CWL/Decode.js +3614 -2462
  50. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
  51. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
  52. package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
  53. package/dist/ts/ts/CWL/Encode.d.ts +225 -85
  54. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  55. package/dist/ts/ts/CWL/Encode.js +1858 -970
  56. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
  57. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  58. package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
  59. package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
  60. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
  61. package/dist/ts/ts/CWL/HashHelpers.js +255 -6
  62. package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
  63. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  64. package/dist/ts/ts/CWL/Inputs.js +107 -16
  65. package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
  66. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  67. package/dist/ts/ts/CWL/OperationDescription.js +35 -9
  68. package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
  69. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  70. package/dist/ts/ts/CWL/Outputs.js +101 -19
  71. package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
  72. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  73. package/dist/ts/ts/CWL/ParameterReference.js +18 -25
  74. package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
  75. package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
  76. package/dist/ts/ts/CWL/ParameterValue.js +59 -35
  77. package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
  78. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  79. package/dist/ts/ts/CWL/Requirements.js +462 -89
  80. package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
  81. package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
  82. package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
  83. package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
  84. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  85. package/dist/ts/ts/CWL/ToolDescription.js +34 -13
  86. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
  87. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  88. package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
  89. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
  90. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  91. package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
  92. package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
  93. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
  94. package/dist/ts/ts/CWLRunResolver.js +221 -86
  95. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  96. package/dist/ts/ts/Contract/ARC.js +13 -14
  97. package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
  98. package/dist/ts/ts/Contract/ArcAssay.js +4 -4
  99. package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
  100. package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
  101. package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
  102. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  103. package/dist/ts/ts/Contract/ArcRun.js +47 -20
  104. package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
  105. package/dist/ts/ts/Contract/ArcStudy.js +4 -4
  106. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
  107. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  108. package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
  109. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  110. package/dist/ts/ts/Contract/Datamap.js +16 -17
  111. package/dist/ts/ts/Contract/Git.js +1 -1
  112. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
  113. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
  114. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  115. package/dist/ts/ts/ContractIO/ContractIO.js +15 -16
  116. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  117. package/dist/ts/ts/Conversion/Assay.js +26 -18
  118. package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
  119. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  120. package/dist/ts/ts/Conversion/Basic.js +55 -31
  121. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
  122. package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
  123. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
  124. package/dist/ts/ts/Conversion/DateTime.js +1 -2
  125. package/dist/ts/ts/Conversion/Investigation.js +11 -11
  126. package/dist/ts/ts/Conversion/Person.js +11 -11
  127. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
  128. package/dist/ts/ts/Conversion/Process.js +107 -86
  129. package/dist/ts/ts/Conversion/Run.d.ts +36 -6
  130. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  131. package/dist/ts/ts/Conversion/Run.js +320 -136
  132. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  133. package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
  134. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  135. package/dist/ts/ts/Conversion/Study.js +23 -12
  136. package/dist/ts/ts/Conversion/Table.js +5 -5
  137. package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
  138. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  139. package/dist/ts/ts/Conversion/Workflow.js +655 -163
  140. package/dist/ts/ts/Conversion.js +6 -6
  141. package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
  142. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  143. package/dist/ts/ts/Core/ArcTypes.js +219 -129
  144. package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
  145. package/dist/ts/ts/Core/Comment.js +2 -2
  146. package/dist/ts/ts/Core/CommentList.js +7 -7
  147. package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
  148. package/dist/ts/ts/Core/Conversion.js +41 -41
  149. package/dist/ts/ts/Core/Data.d.ts.map +1 -1
  150. package/dist/ts/ts/Core/Data.js +14 -11
  151. package/dist/ts/ts/Core/DataContext.d.ts +1 -1
  152. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  153. package/dist/ts/ts/Core/DataContext.js +4 -4
  154. package/dist/ts/ts/Core/DataFile.d.ts +11 -8
  155. package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
  156. package/dist/ts/ts/Core/DataFile.js +55 -61
  157. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  158. package/dist/ts/ts/Core/Datamap.js +2 -3
  159. package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
  160. package/dist/ts/ts/Core/Helper/Collections.js +2 -4
  161. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  162. package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
  163. package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
  164. package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
  165. package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
  166. package/dist/ts/ts/Core/Helper/Regex.js +52 -53
  167. package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
  168. package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
  169. package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
  170. package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
  171. package/dist/ts/ts/Core/Helper/Url.js +1 -1
  172. package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
  173. package/dist/ts/ts/Core/Person.d.ts.map +1 -1
  174. package/dist/ts/ts/Core/Person.js +2 -2
  175. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
  176. package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
  177. package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
  178. package/dist/ts/ts/Core/Process/Component.js +22 -22
  179. package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
  180. package/dist/ts/ts/Core/Process/Factor.js +7 -7
  181. package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
  182. package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
  183. package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
  184. package/dist/ts/ts/Core/Process/Material.js +2 -2
  185. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
  186. package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
  187. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
  188. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
  189. package/dist/ts/ts/Core/Process/Process.js +21 -21
  190. package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
  191. package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
  192. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
  193. package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
  194. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
  195. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
  196. package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
  197. package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
  198. package/dist/ts/ts/Core/Process/Protocol.js +9 -9
  199. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
  200. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
  201. package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
  202. package/dist/ts/ts/Core/Publication.js +3 -3
  203. package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
  204. package/dist/ts/ts/Core/ScalarValue.js +9 -13
  205. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  206. package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
  207. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
  208. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  209. package/dist/ts/ts/Core/Table/ArcTableAux.js +50 -70
  210. package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
  211. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
  212. package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
  213. package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
  214. package/dist/ts/ts/Core/Templates.js +2 -2
  215. package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
  216. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  217. package/dist/ts/ts/FileSystem/Path.js +37 -19
  218. package/dist/ts/ts/Json/Assay.js +22 -22
  219. package/dist/ts/ts/Json/Comment.js +9 -9
  220. package/dist/ts/ts/Json/Data.d.ts.map +1 -1
  221. package/dist/ts/ts/Json/Data.js +11 -11
  222. package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
  223. package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
  224. package/dist/ts/ts/Json/Decode.js +3 -5
  225. package/dist/ts/ts/Json/Encode.js +2 -2
  226. package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
  227. package/dist/ts/ts/Json/Investigation.js +20 -20
  228. package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
  229. package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
  230. package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
  231. package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
  232. package/dist/ts/ts/Json/Person.d.ts.map +1 -1
  233. package/dist/ts/ts/Json/Person.js +20 -20
  234. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
  235. package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
  236. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  237. package/dist/ts/ts/Json/Process/Component.js +5 -6
  238. package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
  239. package/dist/ts/ts/Json/Process/Factor.js +7 -7
  240. package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
  241. package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
  242. package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
  243. package/dist/ts/ts/Json/Process/Material.js +9 -10
  244. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
  245. package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
  246. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
  247. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
  248. package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
  249. package/dist/ts/ts/Json/Process/Process.js +8 -9
  250. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
  251. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
  252. package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
  253. package/dist/ts/ts/Json/Process/Protocol.js +17 -17
  254. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  255. package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
  256. package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
  257. package/dist/ts/ts/Json/Process/Sample.js +9 -9
  258. package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
  259. package/dist/ts/ts/Json/Process/Source.js +10 -11
  260. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
  261. package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
  262. package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
  263. package/dist/ts/ts/Json/PropertyValue.js +24 -24
  264. package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
  265. package/dist/ts/ts/Json/Publication.js +10 -10
  266. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
  267. package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
  268. package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
  269. package/dist/ts/ts/Json/Run.js +9 -9
  270. package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
  271. package/dist/ts/ts/Json/StringTable.js +4 -7
  272. package/dist/ts/ts/Json/Study.js +20 -20
  273. package/dist/ts/ts/Json/Table/CellTable.js +1 -2
  274. package/dist/ts/ts/Json/Table/OATable.js +1 -2
  275. package/dist/ts/ts/Json/Workflow.js +9 -9
  276. package/dist/ts/ts/Json.d.ts +121 -1
  277. package/dist/ts/ts/Json.d.ts.map +1 -1
  278. package/dist/ts/ts/Json.js +310 -2
  279. package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
  280. package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
  281. package/dist/ts/ts/JsonIO/Comment.js +67 -0
  282. package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
  283. package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
  284. package/dist/ts/ts/JsonIO/Data.js +49 -0
  285. package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
  286. package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
  287. package/dist/ts/ts/JsonIO/DataFile.js +48 -0
  288. package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
  289. package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
  290. package/dist/ts/ts/JsonIO/LDObject.js +173 -17
  291. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
  292. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
  293. package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
  294. package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
  295. package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
  296. package/dist/ts/ts/JsonIO/Publication.js +68 -0
  297. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
  298. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
  299. package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
  300. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
  301. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
  302. package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
  303. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
  304. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
  305. package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
  306. package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
  307. package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
  308. package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
  309. package/dist/ts/ts/License.d.ts.map +1 -1
  310. package/dist/ts/ts/License.js +6 -6
  311. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  312. package/dist/ts/ts/ROCrate/LDContext.js +31 -39
  313. package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
  314. package/dist/ts/ts/ROCrate/LDObject.js +56 -49
  315. package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
  316. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
  317. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
  318. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
  319. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
  320. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
  321. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
  322. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
  323. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
  324. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
  325. package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
  326. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
  327. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
  328. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
  329. package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
  330. package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
  331. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
  332. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
  333. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
  334. package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
  335. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
  336. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
  337. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
  338. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
  339. package/dist/ts/ts/ROCrateIO.d.ts +18 -4
  340. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  341. package/dist/ts/ts/ROCrateIO.js +49 -38
  342. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  343. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
  344. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
  345. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
  346. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  347. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
  348. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
  349. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  350. package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
  351. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +8 -8
  352. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  353. package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
  354. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  355. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  356. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  357. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
  358. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
  359. package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
  360. package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
  361. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
  362. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
  363. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  364. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
  365. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
  366. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
  367. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
  368. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +5 -5
  369. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
  370. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
  371. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
  372. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +4 -4
  373. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
  374. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +3 -3
  375. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
  376. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +5 -5
  377. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
  378. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +4 -4
  379. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
  380. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
  381. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +7 -7
  382. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  383. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
  384. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
  385. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +8 -8
  386. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  387. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
  388. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
  389. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
  390. package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
  391. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
  392. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
  393. package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
  394. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
  395. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
  396. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
  397. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
  398. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  399. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
  400. package/dist/ts/ts/Xlsx.js +3 -3
  401. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
  402. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  403. package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
  404. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
  405. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  406. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
  407. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
  408. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
  409. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
  410. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
  411. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
  412. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
  413. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
  414. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
  415. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
  416. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
  417. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
  418. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
  419. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
  420. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
  421. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
  422. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
  423. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
  424. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
  425. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
  426. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
  427. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
  428. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
  429. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
  430. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
  431. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
  432. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
  433. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
  434. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
  435. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
  436. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
  437. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
  438. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
  439. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
  440. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
  441. package/package.json +5 -4
  442. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
  443. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
  444. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
  445. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
  446. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
  447. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
  448. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
  449. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
  450. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
  451. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
  452. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
  453. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
@@ -1,18 +1,19 @@
1
- import { NotSupportedException_$ctor_Z721C83C5, InvalidOperationException_$ctor_Z721C83C5 } from './System.js';
2
- import { getEnumerator, disposeSafe, toIterator, isArrayLike, isDisposable, Exception, clear } from './Util.js';
1
+ import { NotSupportedException_$ctor_Z721C83C5, InvalidOperationException_$ctor_Z721C83C5, ArgumentOutOfRangeException_$ctor_Z721C83C5 } from './System.js';
2
+ import { getEnumerator, disposeSafe, toIterator, isArrayLike, isDisposable, clear } from './Util.js';
3
3
  import { toString } from './Types.js';
4
4
  import { class_type } from './Reflection.js';
5
5
  import { value, some } from './Option.js';
6
6
  import { KeyNotFoundException_$ctor_Z721C83C5 } from './System.Collections.Generic.js';
7
- import { Operators_NullArgCheck, Operators_Lock } from './FSharp.Core.js';
8
- import { singleton as singleton$1, tryFindBack as tryFindBack$1, tryFindIndexBack as tryFindIndexBack$1, foldBack as foldBack$1, item as item$1, tryHead as tryHead$1, tryItem as tryItem$1, mapFold as mapFold$1, mapFoldBack as mapFoldBack$1, reverse as reverse$1, scanBack as scanBack$1, pairwise as pairwise$1, splitInto as splitInto$1, windowed as windowed$1, map as map$1, transpose as transpose$1, permute as permute$1, chunkBySize as chunkBySize$1, randomShuffleInPlaceBy, randomChoiceBy as randomChoiceBy$1, randomChoiceWith as randomChoiceWith$1, randomChoice as randomChoice$1, randomChoicesBy as randomChoicesBy$1, randomSampleBy as randomSampleBy$1 } from './Array.js';
7
+ import { Operators_NullArgCheck, Operators_InvalidArg, Operators_Lock, Operators_InvalidOp } from './FSharp.Core.js';
8
+ import { singleton as singleton$1, tryFindBack as tryFindBack$1, tryFindIndexBack as tryFindIndexBack$1, foldBack as foldBack$1, item as item$1, tryHead as tryHead$1, tryItem as tryItem$1, mapFold as mapFold$1, mapFoldBack as mapFoldBack$1, reduceBack as reduceBack$1, reverse as reverse$1, scanBack as scanBack$1, pairwise as pairwise$1, splitInto as splitInto$1, windowed as windowed$1, permute as permute$1, chunkBySize as chunkBySize$1, randomShuffleInPlaceBy, randomChoiceBy as randomChoiceBy$1, randomChoiceWith as randomChoiceWith$1, randomChoice as randomChoice$1, randomChoicesBy as randomChoicesBy$1, randomSampleBy as randomSampleBy$1 } from './Array.js';
9
9
  import { FSharpList, toArray as toArray$1, ofArray as ofArray$1, ofSeq as ofSeq$1, tryHead as tryHead$2, isEmpty as isEmpty$1, tryItem as tryItem$2, length as length$1 } from './List.js';
10
10
  import { min as min$1 } from './Double.js';
11
- import { SR_indexOutOfBounds } from './Global.js';
11
+ import { SR_inputMustBeNonNegative, SR_indexOutOfBounds } from './Global.js';
12
12
  import { nonSeeded } from './Random.js';
13
13
 
14
14
  const SR_enumerationAlreadyFinished = "Enumeration already finished.";
15
15
  const SR_enumerationNotStarted = "Enumeration has not started. Call MoveNext.";
16
+ const SR_inputMustBePositive = "The input must be positive.";
16
17
  const SR_inputSequenceEmpty = "The input sequence was empty.";
17
18
  const SR_inputSequenceTooLong = "The input sequence contains more than one element.";
18
19
  const SR_keyNotFoundAlt = "An index satisfying the predicate was not found in the collection.";
@@ -116,7 +117,7 @@ function Enumerator_concat(sources) {
116
117
  const finish = () => {
117
118
  finished = true;
118
119
  if (innerOpt != null) {
119
- const inner = value(innerOpt);
120
+ const inner = innerOpt;
120
121
  try {
121
122
  disposeSafe(inner);
122
123
  } finally {
@@ -124,7 +125,7 @@ function Enumerator_concat(sources) {
124
125
  }
125
126
  }
126
127
  if (outerOpt != null) {
127
- const outer = value(outerOpt);
128
+ const outer = outerOpt;
128
129
  try {
129
130
  disposeSafe(outer);
130
131
  } finally {
@@ -157,7 +158,7 @@ function Enumerator_concat(sources) {
157
158
  const innerOpt_1 = innerOpt;
158
159
  if (outerOpt_1 != null) {
159
160
  if (innerOpt_1 != null) {
160
- const inner_1 = value(innerOpt_1);
161
+ const inner_1 = innerOpt_1;
161
162
  if (inner_1["System.Collections.IEnumerator.MoveNext"]()) {
162
163
  curr = some(inner_1["System.Collections.Generic.IEnumerator`1.get_Current"]());
163
164
  res = true;
@@ -169,7 +170,7 @@ function Enumerator_concat(sources) {
169
170
  }
170
171
  }
171
172
  } else {
172
- const outer_1 = value(outerOpt_1);
173
+ const outer_1 = outerOpt_1;
173
174
  if (outer_1["System.Collections.IEnumerator.MoveNext"]()) {
174
175
  const ie = outer_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
175
176
  innerOpt = (copyOfStruct = ie, getEnumerator(copyOfStruct));
@@ -259,8 +260,8 @@ function Enumerator_unfold(f, state) {
259
260
  let acc = state;
260
261
  return Enumerator_FromFunctions$1_$ctor_58C54629(() => {
261
262
  if (curr != null) {
262
- const x = value(curr)[0];
263
- value(curr)[1];
263
+ const x = curr[0];
264
+ curr[1];
264
265
  return x;
265
266
  } else {
266
267
  return Enumerator_notStarted();
@@ -268,8 +269,8 @@ function Enumerator_unfold(f, state) {
268
269
  }, () => {
269
270
  curr = f(acc);
270
271
  if (curr != null) {
271
- value(curr)[0];
272
- const st_1 = value(curr)[1];
272
+ curr[0];
273
+ const st_1 = curr[1];
273
274
  acc = st_1;
274
275
  return true;
275
276
  } else {
@@ -306,11 +307,21 @@ function ofArray(arr) {
306
307
  return arr;
307
308
  }
308
309
  function toArray(xs) {
309
- if (xs instanceof FSharpList) {
310
- const a = xs;
311
- return toArray$1(a);
312
- } else {
310
+ if (isArrayLike(xs)) {
313
311
  return Array.from(xs);
312
+ } else if (xs instanceof FSharpList) {
313
+ return toArray$1(xs);
314
+ } else {
315
+ const res = [];
316
+ const e = getEnumerator(xs);
317
+ try {
318
+ while (e["System.Collections.IEnumerator.MoveNext"]()) {
319
+ void res.push(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
320
+ }
321
+ return res.slice();
322
+ } finally {
323
+ disposeSafe(e);
324
+ }
314
325
  }
315
326
  }
316
327
  function ofList(xs) {
@@ -444,7 +455,7 @@ function enumerateTryWith(source, catchFilter, catchHandler) {
444
455
  e = en_1;
445
456
  en_2 = en_1;
446
457
  } else {
447
- en_2 = value(e);
458
+ en_2 = e;
448
459
  }
449
460
  if (en_2["System.Collections.IEnumerator.MoveNext"]()) {
450
461
  curr = some(en_2["System.Collections.Generic.IEnumerator`1.get_Current"]());
@@ -460,7 +471,7 @@ function enumerateTryWith(source, catchFilter, catchHandler) {
460
471
  caught = true;
461
472
  if (e == null) {
462
473
  } else {
463
- const en_3 = value(e);
474
+ const en_3 = e;
464
475
  try {
465
476
  disposeSafe(en_3);
466
477
  } catch (matchValue_1) {
@@ -500,7 +511,7 @@ function enumerateTryWith(source, catchFilter, catchHandler) {
500
511
  }, () => {
501
512
  if (e == null) {
502
513
  } else {
503
- disposeSafe(value(e));
514
+ disposeSafe(e);
504
515
  }
505
516
  });
506
517
  });
@@ -549,12 +560,12 @@ function exactlyOne(xs) {
549
560
  if (e["System.Collections.IEnumerator.MoveNext"]()) {
550
561
  const v = e["System.Collections.Generic.IEnumerator`1.get_Current"]();
551
562
  if (e["System.Collections.IEnumerator.MoveNext"]()) {
552
- throw new Exception(SR_inputSequenceTooLong + " (Parameter 'source')");
563
+ throw Operators_InvalidArg("source", SR_inputSequenceTooLong);
553
564
  } else {
554
565
  return v;
555
566
  }
556
567
  } else {
557
- throw new Exception(SR_inputSequenceEmpty + " (Parameter 'source')");
568
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
558
569
  }
559
570
  } finally {
560
571
  disposeSafe(e);
@@ -638,7 +649,7 @@ function findIndex(predicate, xs) {
638
649
  indexNotFound();
639
650
  return -1;
640
651
  } else {
641
- return value(matchValue) | 0;
652
+ return matchValue | 0;
642
653
  }
643
654
  }
644
655
  function tryFindIndexBack(predicate, xs) {
@@ -650,7 +661,7 @@ function findIndexBack(predicate, xs) {
650
661
  indexNotFound();
651
662
  return -1;
652
663
  } else {
653
- return value(matchValue) | 0;
664
+ return matchValue | 0;
654
665
  }
655
666
  }
656
667
  function fold(folder, state, xs) {
@@ -718,12 +729,15 @@ function tryHead(xs) {
718
729
  function head(xs) {
719
730
  const matchValue = tryHead(xs);
720
731
  if (matchValue == null) {
721
- throw new Exception(SR_inputSequenceEmpty + " (Parameter 'source')");
732
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
722
733
  } else {
723
734
  return value(matchValue);
724
735
  }
725
736
  }
726
737
  function initialize(count, f) {
738
+ if (count < 0) {
739
+ throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
740
+ }
727
741
  return unfold((i) => i < count ? [f(i), i + 1] : void 0, 0);
728
742
  }
729
743
  function initializeInfinite(f) {
@@ -776,7 +790,7 @@ function tryItem(index, xs) {
776
790
  function item(index, xs) {
777
791
  const matchValue = tryItem(index, xs);
778
792
  if (matchValue == null) {
779
- throw new Exception(SR_notEnoughElements + " (Parameter 'index')");
793
+ throw Operators_InvalidArg("index", SR_notEnoughElements);
780
794
  } else {
781
795
  return value(matchValue);
782
796
  }
@@ -827,7 +841,7 @@ function tryLast(xs) {
827
841
  function last(xs) {
828
842
  const matchValue = tryLast(xs);
829
843
  if (matchValue == null) {
830
- throw new Exception(SR_notEnoughElements + " (Parameter 'source')");
844
+ throw Operators_InvalidArg("source", SR_notEnoughElements);
831
845
  } else {
832
846
  return value(matchValue);
833
847
  }
@@ -952,7 +966,7 @@ function cache(source) {
952
966
  if (enumeratorR != null) {
953
967
  if (value(enumeratorR) != null) {
954
968
  matchResult = 0;
955
- e = value(value(enumeratorR));
969
+ e = value(enumeratorR);
956
970
  } else {
957
971
  matchResult = 1;
958
972
  }
@@ -982,7 +996,7 @@ function cache(source) {
982
996
  }
983
997
  if (optEnumerator_2 == null) {
984
998
  } else {
985
- const enumerator = value(optEnumerator_2);
999
+ const enumerator = optEnumerator_2;
986
1000
  if (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
987
1001
  void prefix.push(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
988
1002
  } else {
@@ -1050,7 +1064,7 @@ function reduce(folder, xs) {
1050
1064
  if (e["System.Collections.IEnumerator.MoveNext"]()) {
1051
1065
  return loop(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
1052
1066
  } else {
1053
- throw new Exception(SR_inputSequenceEmpty);
1067
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
1054
1068
  }
1055
1069
  } finally {
1056
1070
  disposeSafe(e);
@@ -1059,12 +1073,15 @@ function reduce(folder, xs) {
1059
1073
  function reduceBack(folder, xs) {
1060
1074
  const arr = toArray(xs);
1061
1075
  if (arr.length > 0) {
1062
- return arr.reduceRight(folder);
1076
+ return reduceBack$1(folder, arr);
1063
1077
  } else {
1064
- throw new Exception(SR_inputSequenceEmpty);
1078
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
1065
1079
  }
1066
1080
  }
1067
1081
  function replicate(n, x) {
1082
+ if (n < 0) {
1083
+ throw ArgumentOutOfRangeException_$ctor_Z721C83C5("count");
1084
+ }
1068
1085
  return initialize(n, (_arg) => x);
1069
1086
  }
1070
1087
  function reverse(xs) {
@@ -1088,7 +1105,7 @@ function skip(count, source) {
1088
1105
  try {
1089
1106
  for (let _ = 1; _ <= count; _++) {
1090
1107
  if (!e["System.Collections.IEnumerator.MoveNext"]()) {
1091
- throw new Exception(SR_notEnoughElements + " (Parameter 'source')");
1108
+ throw Operators_InvalidOp(SR_notEnoughElements);
1092
1109
  }
1093
1110
  }
1094
1111
  return Enumerator_enumerateThenFinally(() => {
@@ -1111,15 +1128,30 @@ function skipWhile(predicate, xs) {
1111
1128
  });
1112
1129
  }
1113
1130
  function tail(xs) {
1114
- return skip(1, xs);
1131
+ return mkSeq(() => {
1132
+ const e = ofSeq(xs);
1133
+ try {
1134
+ if (!e["System.Collections.IEnumerator.MoveNext"]()) {
1135
+ throw Operators_InvalidArg("source", SR_notEnoughElements);
1136
+ }
1137
+ return Enumerator_enumerateThenFinally(() => {
1138
+ }, e);
1139
+ } catch (matchValue) {
1140
+ disposeSafe(e);
1141
+ throw matchValue;
1142
+ }
1143
+ });
1115
1144
  }
1116
1145
  function take(count, xs) {
1146
+ if (count < 0) {
1147
+ throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
1148
+ }
1117
1149
  return generateIndexed(() => ofSeq(xs), (i, e) => {
1118
1150
  if (i < count) {
1119
1151
  if (e["System.Collections.IEnumerator.MoveNext"]()) {
1120
1152
  return some(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
1121
1153
  } else {
1122
- throw new Exception(SR_notEnoughElements + " (Parameter 'source')");
1154
+ throw Operators_InvalidOp(SR_notEnoughElements);
1123
1155
  }
1124
1156
  } else {
1125
1157
  return void 0;
@@ -1154,13 +1186,45 @@ function pairwise(xs) {
1154
1186
  return delay(() => ofArray(pairwise$1(toArray(xs))));
1155
1187
  }
1156
1188
  function splitInto(chunks, xs) {
1189
+ if (chunks < 1) {
1190
+ throw Operators_InvalidArg("count", SR_inputMustBePositive);
1191
+ }
1157
1192
  return delay(() => ofArray(splitInto$1(chunks, toArray(xs))));
1158
1193
  }
1159
1194
  function windowed(windowSize, xs) {
1195
+ if (windowSize < 1) {
1196
+ throw Operators_InvalidArg("windowSize", SR_inputMustBePositive);
1197
+ }
1160
1198
  return delay(() => ofArray(windowed$1(windowSize, toArray(xs))));
1161
1199
  }
1162
1200
  function transpose(xss) {
1163
- return delay(() => ofArray(map$1(ofArray, transpose$1(map$1(toArray, toArray(xss))))));
1201
+ return delay(() => {
1202
+ const rows = [];
1203
+ const enumerator = getEnumerator(xss);
1204
+ try {
1205
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
1206
+ let i = 0;
1207
+ let enumerator_1;
1208
+ let copyOfStruct = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
1209
+ enumerator_1 = getEnumerator(copyOfStruct);
1210
+ try {
1211
+ while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
1212
+ const x = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
1213
+ if (i === rows.length) {
1214
+ void rows.push([]);
1215
+ }
1216
+ void item$1(i, rows).push(x);
1217
+ i = i + 1 | 0;
1218
+ }
1219
+ } finally {
1220
+ disposeSafe(enumerator_1);
1221
+ }
1222
+ }
1223
+ } finally {
1224
+ disposeSafe(enumerator);
1225
+ }
1226
+ return map((row) => row, rows);
1227
+ });
1164
1228
  }
1165
1229
  function sortWith(comparer, xs) {
1166
1230
  return delay(() => {
@@ -1206,7 +1270,7 @@ function average(xs, averager) {
1206
1270
  return averager.Add(acc, x);
1207
1271
  }, averager.GetZero(), xs);
1208
1272
  if (count === 0) {
1209
- throw new Exception(SR_inputSequenceEmpty + " (Parameter 'source')");
1273
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
1210
1274
  } else {
1211
1275
  return averager.DivideByInt(total, count);
1212
1276
  }
@@ -1218,7 +1282,7 @@ function averageBy(f, xs, averager) {
1218
1282
  return averager.Add(acc, f(x));
1219
1283
  }, averager.GetZero(), xs);
1220
1284
  if (count === 0) {
1221
- throw new Exception(SR_inputSequenceEmpty + " (Parameter 'source')");
1285
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
1222
1286
  } else {
1223
1287
  return averager.DivideByInt(total, count);
1224
1288
  }
@@ -1227,12 +1291,15 @@ function permute(f, xs) {
1227
1291
  return delay(() => ofArray(permute$1(f, toArray(xs))));
1228
1292
  }
1229
1293
  function chunkBySize(chunkSize, xs) {
1294
+ if (chunkSize < 1) {
1295
+ throw Operators_InvalidArg("chunkSize", SR_inputMustBePositive);
1296
+ }
1230
1297
  return delay(() => ofArray(chunkBySize$1(chunkSize, toArray(xs))));
1231
1298
  }
1232
1299
  function insertAt(index, y, xs) {
1233
1300
  let isDone = false;
1234
1301
  if (index < 0) {
1235
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1302
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1236
1303
  }
1237
1304
  return generateIndexed(() => ofSeq(xs), (i, e) => {
1238
1305
  if ((isDone ? true : i < index) && e["System.Collections.IEnumerator.MoveNext"]()) {
@@ -1242,7 +1309,7 @@ function insertAt(index, y, xs) {
1242
1309
  return some(y);
1243
1310
  } else {
1244
1311
  if (!isDone) {
1245
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1312
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1246
1313
  }
1247
1314
  return void 0;
1248
1315
  }
@@ -1253,7 +1320,7 @@ function insertAt(index, y, xs) {
1253
1320
  function insertManyAt(index, ys, xs) {
1254
1321
  let status = -1;
1255
1322
  if (index < 0) {
1256
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1323
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1257
1324
  }
1258
1325
  return generateIndexed(() => [ofSeq(xs), ofSeq(ys)], (i, tupledArg) => {
1259
1326
  const e1 = tupledArg[0];
@@ -1277,7 +1344,7 @@ function insertManyAt(index, ys, xs) {
1277
1344
  return some(e1["System.Collections.Generic.IEnumerator`1.get_Current"]());
1278
1345
  } else {
1279
1346
  if (status < 1) {
1280
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1347
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1281
1348
  }
1282
1349
  return void 0;
1283
1350
  }
@@ -1292,7 +1359,7 @@ function insertManyAt(index, ys, xs) {
1292
1359
  function removeAt(index, xs) {
1293
1360
  let isDone = false;
1294
1361
  if (index < 0) {
1295
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1362
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1296
1363
  }
1297
1364
  return generateIndexed(() => ofSeq(xs), (i, e) => {
1298
1365
  if ((isDone ? true : i < index) && e["System.Collections.IEnumerator.MoveNext"]()) {
@@ -1302,7 +1369,7 @@ function removeAt(index, xs) {
1302
1369
  return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : void 0;
1303
1370
  } else {
1304
1371
  if (!isDone) {
1305
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1372
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1306
1373
  }
1307
1374
  return void 0;
1308
1375
  }
@@ -1312,33 +1379,30 @@ function removeAt(index, xs) {
1312
1379
  }
1313
1380
  function removeManyAt(index, count, xs) {
1314
1381
  if (index < 0) {
1315
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1382
+ throw Operators_InvalidArg("index", "index must be within bounds of the array");
1316
1383
  }
1317
- return generateIndexed(() => ofSeq(xs), (i, e) => {
1318
- if (i < index) {
1319
- if (e["System.Collections.IEnumerator.MoveNext"]()) {
1320
- return some(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
1384
+ const endIndex = index + count | 0;
1385
+ return delay(() => {
1386
+ let i = -1;
1387
+ return append(filter((_arg) => {
1388
+ i = i + 1 | 0;
1389
+ if (i < index) {
1390
+ return true;
1321
1391
  } else {
1322
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1392
+ return i >= endIndex;
1323
1393
  }
1324
- } else {
1325
- if (i === index) {
1326
- for (let _ = 1; _ <= count; _++) {
1327
- if (!e["System.Collections.IEnumerator.MoveNext"]()) {
1328
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'count')");
1329
- }
1330
- }
1394
+ }, xs), delay(() => {
1395
+ if (i < index) {
1396
+ throw Operators_InvalidArg("index", "index must be within bounds of the array");
1331
1397
  }
1332
- return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : void 0;
1333
- }
1334
- }, (e_1) => {
1335
- disposeSafe(e_1);
1398
+ return empty();
1399
+ }));
1336
1400
  });
1337
1401
  }
1338
1402
  function updateAt(index, y, xs) {
1339
1403
  let isDone = false;
1340
1404
  if (index < 0) {
1341
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1405
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1342
1406
  }
1343
1407
  return generateIndexed(() => ofSeq(xs), (i, e) => {
1344
1408
  if ((isDone ? true : i < index) && e["System.Collections.IEnumerator.MoveNext"]()) {
@@ -1348,7 +1412,7 @@ function updateAt(index, y, xs) {
1348
1412
  return some(y);
1349
1413
  } else {
1350
1414
  if (!isDone) {
1351
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1415
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1352
1416
  }
1353
1417
  return void 0;
1354
1418
  }
@@ -1395,4 +1459,4 @@ function randomSample(count, xs) {
1395
1459
  return randomSampleWith(nonSeeded(), count, xs);
1396
1460
  }
1397
1461
 
1398
- export { CachedSeq$1, CachedSeq$1_$ctor_Z7A8347D4, CachedSeq$1_$reflection, CachedSeq$1__Clear, Enumerator_FromFunctions$1, Enumerator_FromFunctions$1_$ctor_58C54629, Enumerator_FromFunctions$1_$reflection, Enumerator_Seq, Enumerator_Seq_$ctor_673A07F2, Enumerator_Seq_$reflection, Enumerator_alreadyFinished, Enumerator_cast, Enumerator_concat, Enumerator_enumerateThenFinally, Enumerator_generateWhileSome, Enumerator_noReset, Enumerator_notStarted, Enumerator_unfold, SR_enumerationAlreadyFinished, SR_enumerationNotStarted, SR_inputSequenceEmpty, SR_inputSequenceTooLong, SR_keyNotFoundAlt, SR_notEnoughElements, SR_resetNotSupported, allPairs, append, average, averageBy, cache, cast, choose, chunkBySize, collect, compareWith, concat, contains, delay, empty, enumerateFromFunctions, enumerateThenFinally, enumerateTryWith, enumerateUsing, enumerateWhile, exactlyOne, exists, exists2, filter, find, findBack, findIndex, findIndexBack, fold, fold2, foldBack, foldBack2, forAll, forAll2, generate, generateIndexed, head, indexNotFound, indexed, initialize, initializeInfinite, insertAt, insertManyAt, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, length, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, max, maxBy, min, minBy, mkSeq, ofArray, ofList, ofSeq, pairwise, permute, pick, randomChoice, randomChoiceBy, randomChoiceWith, randomChoices, randomChoicesBy, randomChoicesWith, randomSample, randomSampleBy, randomSampleWith, randomShuffle, randomShuffleBy, randomShuffleWith, readOnly, reduce, reduceBack, removeAt, removeManyAt, replicate, reverse, scan, scanBack, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortWith, splitInto, sum, sumBy, tail, take, takeWhile, toArray, toList, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, updateAt, where, windowed, zip, zip3 };
1462
+ export { CachedSeq$1, CachedSeq$1_$ctor_Z7A8347D4, CachedSeq$1_$reflection, CachedSeq$1__Clear, Enumerator_FromFunctions$1, Enumerator_FromFunctions$1_$ctor_58C54629, Enumerator_FromFunctions$1_$reflection, Enumerator_Seq, Enumerator_Seq_$ctor_673A07F2, Enumerator_Seq_$reflection, Enumerator_alreadyFinished, Enumerator_cast, Enumerator_concat, Enumerator_enumerateThenFinally, Enumerator_generateWhileSome, Enumerator_noReset, Enumerator_notStarted, Enumerator_unfold, SR_enumerationAlreadyFinished, SR_enumerationNotStarted, SR_inputMustBePositive, SR_inputSequenceEmpty, SR_inputSequenceTooLong, SR_keyNotFoundAlt, SR_notEnoughElements, SR_resetNotSupported, allPairs, append, average, averageBy, cache, cast, choose, chunkBySize, collect, compareWith, concat, contains, delay, empty, enumerateFromFunctions, enumerateThenFinally, enumerateTryWith, enumerateUsing, enumerateWhile, exactlyOne, exists, exists2, filter, find, findBack, findIndex, findIndexBack, fold, fold2, foldBack, foldBack2, forAll, forAll2, generate, generateIndexed, head, indexNotFound, indexed, initialize, initializeInfinite, insertAt, insertManyAt, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, length, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, max, maxBy, min, minBy, mkSeq, ofArray, ofList, ofSeq, pairwise, permute, pick, randomChoice, randomChoiceBy, randomChoiceWith, randomChoices, randomChoicesBy, randomChoicesWith, randomSample, randomSampleBy, randomSampleWith, randomShuffle, randomShuffleBy, randomShuffleWith, readOnly, reduce, reduceBack, removeAt, removeManyAt, replicate, reverse, scan, scanBack, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortWith, splitInto, sum, sumBy, tail, take, takeWhile, toArray, toList, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, updateAt, where, windowed, zip, zip3 };
@@ -32,10 +32,8 @@ function countBy(projection, xs, comparer) {
32
32
  while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
33
33
  const key = projection(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
34
34
  let matchValue;
35
- let outArg = 0;
36
- matchValue = [tryGetValue(dict, key, new FSharpRef(() => outArg | 0, (v) => {
37
- outArg = v | 0;
38
- })), outArg];
35
+ const cell = new FSharpRef(0);
36
+ matchValue = [tryGetValue(dict, key, cell), cell.contents];
39
37
  if (matchValue[0]) {
40
38
  dict.set(key, matchValue[1] + 1);
41
39
  } else {
@@ -59,10 +57,8 @@ function groupBy(projection, xs, comparer) {
59
57
  const x = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
60
58
  const key = projection(x);
61
59
  let matchValue;
62
- let outArg = defaultOf();
63
- matchValue = [tryGetValue(dict, key, new FSharpRef(() => outArg, (v) => {
64
- outArg = v;
65
- })), outArg];
60
+ const cell = new FSharpRef(defaultOf());
61
+ matchValue = [tryGetValue(dict, key, cell), cell.contents];
66
62
  if (matchValue[0]) {
67
63
  void matchValue[1].push(x);
68
64
  } else {