@nfdi4plants/arctrl 3.2.2 → 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 (470) hide show
  1. package/README.md +0 -64
  2. package/dist/ts/index.d.ts +44 -7
  3. package/dist/ts/index.d.ts.map +1 -1
  4. package/dist/ts/index.js +45 -8
  5. package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
  6. package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
  7. package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
  8. package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
  9. package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
  11. package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
  12. package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
  13. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
  14. package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
  15. package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
  16. package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
  17. package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
  18. package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
  19. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
  20. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
  21. package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
  23. package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
  24. package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
  25. package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
  26. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
  27. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
  28. package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
  29. package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
  30. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
  31. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
  32. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
  33. package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
  34. package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
  35. package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
  36. package/dist/ts/ts/ARC.d.ts +22 -5
  37. package/dist/ts/ts/ARC.d.ts.map +1 -1
  38. package/dist/ts/ts/ARC.js +282 -185
  39. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
  40. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
  41. package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
  42. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
  43. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
  44. package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
  45. package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
  46. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  47. package/dist/ts/ts/CWL/CWLTypes.js +887 -201
  48. package/dist/ts/ts/CWL/Decode.d.ts +480 -211
  49. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  50. package/dist/ts/ts/CWL/Decode.js +3614 -2462
  51. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
  52. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
  53. package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
  54. package/dist/ts/ts/CWL/Encode.d.ts +225 -85
  55. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  56. package/dist/ts/ts/CWL/Encode.js +1858 -970
  57. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
  58. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  59. package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
  60. package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
  61. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
  62. package/dist/ts/ts/CWL/HashHelpers.js +255 -6
  63. package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
  64. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  65. package/dist/ts/ts/CWL/Inputs.js +107 -16
  66. package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
  67. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  68. package/dist/ts/ts/CWL/OperationDescription.js +35 -9
  69. package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
  70. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  71. package/dist/ts/ts/CWL/Outputs.js +101 -19
  72. package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
  73. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  74. package/dist/ts/ts/CWL/ParameterReference.js +18 -25
  75. package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
  76. package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
  77. package/dist/ts/ts/CWL/ParameterValue.js +59 -35
  78. package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
  79. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  80. package/dist/ts/ts/CWL/Requirements.js +462 -89
  81. package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
  82. package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
  83. package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
  84. package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
  85. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  86. package/dist/ts/ts/CWL/ToolDescription.js +34 -13
  87. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
  88. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  89. package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
  90. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
  91. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  92. package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
  93. package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
  94. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
  95. package/dist/ts/ts/CWLRunResolver.js +221 -86
  96. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  97. package/dist/ts/ts/Contract/ARC.js +13 -14
  98. package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
  99. package/dist/ts/ts/Contract/ArcAssay.js +4 -4
  100. package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
  101. package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
  102. package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
  103. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  104. package/dist/ts/ts/Contract/ArcRun.js +47 -20
  105. package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
  106. package/dist/ts/ts/Contract/ArcStudy.js +4 -4
  107. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
  108. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  109. package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
  110. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  111. package/dist/ts/ts/Contract/Datamap.js +16 -17
  112. package/dist/ts/ts/Contract/Git.js +1 -1
  113. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
  114. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
  115. package/dist/ts/ts/ContractIO/ContractIO.d.ts +7 -0
  116. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  117. package/dist/ts/ts/ContractIO/ContractIO.js +95 -18
  118. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -0
  119. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  120. package/dist/ts/ts/ContractIO/FileSystemHelper.js +12 -5
  121. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  122. package/dist/ts/ts/Conversion/Assay.js +26 -18
  123. package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
  124. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  125. package/dist/ts/ts/Conversion/Basic.js +55 -31
  126. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
  127. package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
  128. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
  129. package/dist/ts/ts/Conversion/DateTime.js +1 -2
  130. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -1
  131. package/dist/ts/ts/Conversion/Investigation.js +15 -14
  132. package/dist/ts/ts/Conversion/Person.js +11 -11
  133. package/dist/ts/ts/Conversion/Process.d.ts +4 -2
  134. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
  135. package/dist/ts/ts/Conversion/Process.js +134 -97
  136. package/dist/ts/ts/Conversion/Run.d.ts +36 -6
  137. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  138. package/dist/ts/ts/Conversion/Run.js +320 -136
  139. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  140. package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
  141. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  142. package/dist/ts/ts/Conversion/Study.js +23 -12
  143. package/dist/ts/ts/Conversion/Table.d.ts +3 -2
  144. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -1
  145. package/dist/ts/ts/Conversion/Table.js +8 -8
  146. package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
  147. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  148. package/dist/ts/ts/Conversion/Workflow.js +655 -163
  149. package/dist/ts/ts/Conversion.js +6 -6
  150. package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
  151. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  152. package/dist/ts/ts/Core/ArcTypes.js +219 -129
  153. package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
  154. package/dist/ts/ts/Core/Comment.js +2 -2
  155. package/dist/ts/ts/Core/CommentList.js +7 -7
  156. package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
  157. package/dist/ts/ts/Core/Conversion.js +68 -59
  158. package/dist/ts/ts/Core/Data.d.ts +6 -0
  159. package/dist/ts/ts/Core/Data.d.ts.map +1 -1
  160. package/dist/ts/ts/Core/Data.js +32 -12
  161. package/dist/ts/ts/Core/DataContext.d.ts +1 -1
  162. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  163. package/dist/ts/ts/Core/DataContext.js +4 -4
  164. package/dist/ts/ts/Core/DataFile.d.ts +11 -8
  165. package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
  166. package/dist/ts/ts/Core/DataFile.js +55 -61
  167. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  168. package/dist/ts/ts/Core/Datamap.js +2 -3
  169. package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
  170. package/dist/ts/ts/Core/Helper/Collections.js +2 -4
  171. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  172. package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
  173. package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
  174. package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
  175. package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
  176. package/dist/ts/ts/Core/Helper/Regex.js +52 -53
  177. package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
  178. package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
  179. package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
  180. package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
  181. package/dist/ts/ts/Core/Helper/Url.js +1 -1
  182. package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
  183. package/dist/ts/ts/Core/Person.d.ts.map +1 -1
  184. package/dist/ts/ts/Core/Person.js +2 -2
  185. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
  186. package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
  187. package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
  188. package/dist/ts/ts/Core/Process/Component.js +22 -22
  189. package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
  190. package/dist/ts/ts/Core/Process/Factor.js +7 -7
  191. package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
  192. package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
  193. package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
  194. package/dist/ts/ts/Core/Process/Material.js +2 -2
  195. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
  196. package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
  197. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
  198. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
  199. package/dist/ts/ts/Core/Process/Process.js +21 -21
  200. package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
  201. package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
  202. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
  203. package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
  204. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
  205. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
  206. package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
  207. package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
  208. package/dist/ts/ts/Core/Process/Protocol.js +9 -9
  209. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
  210. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
  211. package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
  212. package/dist/ts/ts/Core/Publication.js +3 -3
  213. package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
  214. package/dist/ts/ts/Core/ScalarValue.js +9 -13
  215. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  216. package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
  217. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
  218. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  219. package/dist/ts/ts/Core/Table/ArcTableAux.js +59 -70
  220. package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
  221. package/dist/ts/ts/Core/Table/CompositeCell.d.ts +4 -0
  222. package/dist/ts/ts/Core/Table/CompositeCell.d.ts.map +1 -1
  223. package/dist/ts/ts/Core/Table/CompositeCell.js +39 -2
  224. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
  225. package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
  226. package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
  227. package/dist/ts/ts/Core/Templates.js +2 -2
  228. package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
  229. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  230. package/dist/ts/ts/FileSystem/Path.js +37 -19
  231. package/dist/ts/ts/Json/Assay.js +22 -22
  232. package/dist/ts/ts/Json/Comment.js +9 -9
  233. package/dist/ts/ts/Json/Data.d.ts.map +1 -1
  234. package/dist/ts/ts/Json/Data.js +11 -11
  235. package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
  236. package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
  237. package/dist/ts/ts/Json/Decode.js +3 -5
  238. package/dist/ts/ts/Json/Encode.js +2 -2
  239. package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
  240. package/dist/ts/ts/Json/Investigation.js +20 -20
  241. package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
  242. package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
  243. package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
  244. package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
  245. package/dist/ts/ts/Json/Person.d.ts.map +1 -1
  246. package/dist/ts/ts/Json/Person.js +20 -20
  247. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
  248. package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
  249. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  250. package/dist/ts/ts/Json/Process/Component.js +5 -6
  251. package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
  252. package/dist/ts/ts/Json/Process/Factor.js +7 -7
  253. package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
  254. package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
  255. package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
  256. package/dist/ts/ts/Json/Process/Material.js +9 -10
  257. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
  258. package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
  259. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
  260. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
  261. package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
  262. package/dist/ts/ts/Json/Process/Process.js +8 -9
  263. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
  264. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
  265. package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
  266. package/dist/ts/ts/Json/Process/Protocol.js +17 -17
  267. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  268. package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
  269. package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
  270. package/dist/ts/ts/Json/Process/Sample.js +9 -9
  271. package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
  272. package/dist/ts/ts/Json/Process/Source.js +10 -11
  273. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
  274. package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
  275. package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
  276. package/dist/ts/ts/Json/PropertyValue.js +24 -24
  277. package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
  278. package/dist/ts/ts/Json/Publication.js +10 -10
  279. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
  280. package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
  281. package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
  282. package/dist/ts/ts/Json/Run.js +9 -9
  283. package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
  284. package/dist/ts/ts/Json/StringTable.js +4 -7
  285. package/dist/ts/ts/Json/Study.js +20 -20
  286. package/dist/ts/ts/Json/Table/CellTable.js +1 -2
  287. package/dist/ts/ts/Json/Table/OATable.js +1 -2
  288. package/dist/ts/ts/Json/Workflow.js +9 -9
  289. package/dist/ts/ts/Json.d.ts +121 -1
  290. package/dist/ts/ts/Json.d.ts.map +1 -1
  291. package/dist/ts/ts/Json.js +310 -2
  292. package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
  293. package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
  294. package/dist/ts/ts/JsonIO/Comment.js +67 -0
  295. package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
  296. package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
  297. package/dist/ts/ts/JsonIO/Data.js +49 -0
  298. package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
  299. package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
  300. package/dist/ts/ts/JsonIO/DataFile.js +48 -0
  301. package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
  302. package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
  303. package/dist/ts/ts/JsonIO/LDObject.js +173 -17
  304. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
  305. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
  306. package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
  307. package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
  308. package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
  309. package/dist/ts/ts/JsonIO/Publication.js +68 -0
  310. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
  311. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
  312. package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
  313. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
  314. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
  315. package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
  316. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
  317. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
  318. package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
  319. package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
  320. package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
  321. package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
  322. package/dist/ts/ts/License.d.ts.map +1 -1
  323. package/dist/ts/ts/License.js +6 -6
  324. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  325. package/dist/ts/ts/ROCrate/LDContext.js +31 -39
  326. package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
  327. package/dist/ts/ts/ROCrate/LDObject.js +56 -49
  328. package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
  329. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
  330. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
  331. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
  332. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
  333. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
  334. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
  335. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
  336. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
  337. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
  338. package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
  339. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
  340. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
  341. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
  342. package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
  343. package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
  344. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
  345. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
  346. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
  347. package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
  348. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
  349. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
  350. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
  351. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
  352. package/dist/ts/ts/ROCrateIO.d.ts +18 -4
  353. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  354. package/dist/ts/ts/ROCrateIO.js +49 -38
  355. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  356. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
  357. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
  358. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
  359. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  360. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
  361. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
  362. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  363. package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
  364. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  365. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +10 -12
  366. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  367. package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
  368. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  369. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  370. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  371. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
  372. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
  373. package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
  374. package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
  375. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
  376. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
  377. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  378. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
  379. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
  380. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +8 -10
  381. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts +8 -0
  382. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
  383. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +18 -7
  384. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
  385. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +4 -6
  386. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
  387. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -8
  388. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
  389. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +5 -7
  390. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.d.ts.map +1 -1
  391. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +2 -4
  392. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
  393. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +7 -9
  394. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
  395. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +6 -8
  396. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
  397. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
  398. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +9 -11
  399. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  400. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
  401. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
  402. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +10 -12
  403. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  404. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +7 -9
  405. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
  406. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
  407. package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
  408. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
  409. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
  410. package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
  411. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
  412. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
  413. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
  414. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
  415. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  416. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
  417. package/dist/ts/ts/Xlsx.js +3 -3
  418. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
  419. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  420. package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
  421. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
  422. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  423. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
  424. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
  425. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
  426. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
  427. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
  428. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
  429. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
  430. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
  431. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
  432. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
  433. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
  434. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
  435. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
  436. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
  437. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
  438. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
  439. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
  440. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
  441. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
  442. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
  443. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
  444. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
  445. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
  446. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
  447. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
  448. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
  449. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
  450. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
  451. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
  452. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
  453. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
  454. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
  455. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
  456. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
  457. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
  458. package/package.json +5 -4
  459. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
  460. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
  461. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
  462. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
  463. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
  464. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
  465. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
  466. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
  467. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
  468. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
  469. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
  470. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
@@ -1,6 +1,7 @@
1
1
  import { class_type, record_type, list_type, bool_type, option_type } from './Reflection.js';
2
2
  import { value, some } from './Option.js';
3
- import { Exception, isArrayLike, getEnumerator, disposeSafe, toIterator, structuralHash } from './Util.js';
3
+ import { Exception, physicalHash, isArrayLike, getEnumerator, disposeSafe, toIterator, structuralHash } from './Util.js';
4
+ import { Operators_InvalidArg, Operators_InvalidOp } from './FSharp.Core.js';
4
5
  import { Record, toString } from './Types.js';
5
6
  import { isEmpty as isEmpty$1, head, tail, ofArrayWithTail, empty as empty$1, singleton as singleton$1, cons, fold as fold$2, FSharpList } from './List.js';
6
7
  import { setItem, fill, fold as fold$1 } from './Array.js';
@@ -53,7 +54,7 @@ function SetTreeModule_countAux(t_mut, acc_mut) {
53
54
  while (true) {
54
55
  const t = t_mut, acc = acc_mut;
55
56
  if (t != null) {
56
- const t2 = value(t);
57
+ const t2 = t;
57
58
  if (t2 instanceof SetTreeNode$1) {
58
59
  const tn = t2;
59
60
  t_mut = SetTreeNode$1__get_Left(tn);
@@ -76,7 +77,7 @@ function SetTreeModule_mk(l, k, r) {
76
77
  let hl;
77
78
  const t = l;
78
79
  if (t != null) {
79
- const t2 = value(t);
80
+ const t2 = t;
80
81
  hl = t2 instanceof SetTreeNode$1 ? (tn = t2, SetTreeNode$1__get_Height(tn)) : 1;
81
82
  } else {
82
83
  hl = 0;
@@ -84,7 +85,7 @@ function SetTreeModule_mk(l, k, r) {
84
85
  let hr;
85
86
  const t_1 = r;
86
87
  if (t_1 != null) {
87
- const t2_1 = value(t_1);
88
+ const t2_1 = t_1;
88
89
  hr = t2_1 instanceof SetTreeNode$1 ? (tn_1 = t2_1, SetTreeNode$1__get_Height(tn_1)) : 1;
89
90
  } else {
90
91
  hr = 0;
@@ -101,7 +102,7 @@ function SetTreeModule_rebalance(t1, v, t2) {
101
102
  let t1h;
102
103
  const t = t1;
103
104
  if (t != null) {
104
- const t2_1 = value(t);
105
+ const t2_1 = t;
105
106
  t1h = t2_1 instanceof SetTreeNode$1 ? (tn = t2_1, SetTreeNode$1__get_Height(tn)) : 1;
106
107
  } else {
107
108
  t1h = 0;
@@ -109,7 +110,7 @@ function SetTreeModule_rebalance(t1, v, t2) {
109
110
  let t2h;
110
111
  const t_1 = t2;
111
112
  if (t_1 != null) {
112
- const t2_2 = value(t_1);
113
+ const t2_2 = t_1;
113
114
  t2h = t2_2 instanceof SetTreeNode$1 ? (tn_1 = t2_2, SetTreeNode$1__get_Height(tn_1)) : 1;
114
115
  } else {
115
116
  t2h = 0;
@@ -118,7 +119,7 @@ function SetTreeModule_rebalance(t1, v, t2) {
118
119
  const matchValue = value(t2);
119
120
  if (matchValue instanceof SetTreeNode$1) {
120
121
  const t2$0027 = matchValue;
121
- if ((t_2 = SetTreeNode$1__get_Left(t2$0027), t_2 != null ? (t2_3 = value(t_2), t2_3 instanceof SetTreeNode$1 ? (tn_2 = t2_3, SetTreeNode$1__get_Height(tn_2)) : 1) : 0) > t1h + 1) {
122
+ if ((t_2 = SetTreeNode$1__get_Left(t2$0027), t_2 != null ? (t2_3 = t_2, t2_3 instanceof SetTreeNode$1 ? (tn_2 = t2_3, SetTreeNode$1__get_Height(tn_2)) : 1) : 0) > t1h + 1) {
122
123
  const matchValue_1 = value(SetTreeNode$1__get_Left(t2$0027));
123
124
  if (matchValue_1 instanceof SetTreeNode$1) {
124
125
  const t2l = matchValue_1;
@@ -136,7 +137,7 @@ function SetTreeModule_rebalance(t1, v, t2) {
136
137
  const matchValue_2 = value(t1);
137
138
  if (matchValue_2 instanceof SetTreeNode$1) {
138
139
  const t1$0027 = matchValue_2;
139
- if ((t_3 = SetTreeNode$1__get_Right(t1$0027), t_3 != null ? (t2_4 = value(t_3), t2_4 instanceof SetTreeNode$1 ? (tn_3 = t2_4, SetTreeNode$1__get_Height(tn_3)) : 1) : 0) > t2h + 1) {
140
+ if ((t_3 = SetTreeNode$1__get_Right(t1$0027), t_3 != null ? (t2_4 = t_3, t2_4 instanceof SetTreeNode$1 ? (tn_3 = t2_4, SetTreeNode$1__get_Height(tn_3)) : 1) : 0) > t2h + 1) {
140
141
  const matchValue_3 = value(SetTreeNode$1__get_Right(t1$0027));
141
142
  if (matchValue_3 instanceof SetTreeNode$1) {
142
143
  const t1r = matchValue_3;
@@ -156,7 +157,7 @@ function SetTreeModule_rebalance(t1, v, t2) {
156
157
  }
157
158
  function SetTreeModule_add(comparer, k, t) {
158
159
  if (t != null) {
159
- const t2 = value(t);
160
+ const t2 = t;
160
161
  const c = comparer.Compare(k, SetTreeLeaf$1__get_Key(t2)) | 0;
161
162
  if (t2 instanceof SetTreeNode$1) {
162
163
  const tn = t2;
@@ -183,9 +184,9 @@ function SetTreeModule_add(comparer, k, t) {
183
184
  }
184
185
  function SetTreeModule_balance(comparer, t1, k, t2) {
185
186
  if (t1 != null) {
186
- const t1$0027 = value(t1);
187
+ const t1$0027 = t1;
187
188
  if (t2 != null) {
188
- const t2$0027 = value(t2);
189
+ const t2$0027 = t2;
189
190
  if (t1$0027 instanceof SetTreeNode$1) {
190
191
  const t1n = t1$0027;
191
192
  if (t2$0027 instanceof SetTreeNode$1) {
@@ -212,7 +213,7 @@ function SetTreeModule_balance(comparer, t1, k, t2) {
212
213
  }
213
214
  function SetTreeModule_split(comparer, pivot, t) {
214
215
  if (t != null) {
215
- const t2 = value(t);
216
+ const t2 = t;
216
217
  if (t2 instanceof SetTreeNode$1) {
217
218
  const tn = t2;
218
219
  const c = comparer.Compare(pivot, SetTreeLeaf$1__get_Key(tn)) | 0;
@@ -241,7 +242,7 @@ function SetTreeModule_split(comparer, pivot, t) {
241
242
  }
242
243
  function SetTreeModule_spliceOutSuccessor(t) {
243
244
  if (t != null) {
244
- const t2 = value(t);
245
+ const t2 = t;
245
246
  if (t2 instanceof SetTreeNode$1) {
246
247
  const tn = t2;
247
248
  if (SetTreeNode$1__get_Left(tn) == null) {
@@ -259,7 +260,7 @@ function SetTreeModule_spliceOutSuccessor(t) {
259
260
  }
260
261
  function SetTreeModule_remove(comparer, k, t) {
261
262
  if (t != null) {
262
- const t2 = value(t);
263
+ const t2 = t;
263
264
  const c = comparer.Compare(k, SetTreeLeaf$1__get_Key(t2)) | 0;
264
265
  if (t2 instanceof SetTreeNode$1) {
265
266
  const tn = t2;
@@ -291,7 +292,7 @@ function SetTreeModule_mem(comparer_mut, k_mut, t_mut) {
291
292
  while (true) {
292
293
  const comparer = comparer_mut, k = k_mut, t = t_mut;
293
294
  if (t != null) {
294
- const t2 = value(t);
295
+ const t2 = t;
295
296
  const c = comparer.Compare(k, SetTreeLeaf$1__get_Key(t2)) | 0;
296
297
  if (t2 instanceof SetTreeNode$1) {
297
298
  const tn = t2;
@@ -322,7 +323,7 @@ function SetTreeModule_iter(f_mut, t_mut) {
322
323
  while (true) {
323
324
  const f = f_mut, t = t_mut;
324
325
  if (t != null) {
325
- const t2 = value(t);
326
+ const t2 = t;
326
327
  if (t2 instanceof SetTreeNode$1) {
327
328
  const tn = t2;
328
329
  SetTreeModule_iter(f, SetTreeNode$1__get_Left(tn));
@@ -342,7 +343,7 @@ function SetTreeModule_foldBackOpt(f_mut, t_mut, x_mut) {
342
343
  while (true) {
343
344
  const f = f_mut, t = t_mut, x = x_mut;
344
345
  if (t != null) {
345
- const t2 = value(t);
346
+ const t2 = t;
346
347
  if (t2 instanceof SetTreeNode$1) {
347
348
  const tn = t2;
348
349
  f_mut = f;
@@ -366,7 +367,7 @@ function SetTreeModule_foldOpt(f_mut, x_mut, t_mut) {
366
367
  while (true) {
367
368
  const f = f_mut, x = x_mut, t = t_mut;
368
369
  if (t != null) {
369
- const t2 = value(t);
370
+ const t2 = t;
370
371
  if (t2 instanceof SetTreeNode$1) {
371
372
  const tn = t2;
372
373
  f_mut = f;
@@ -390,7 +391,7 @@ function SetTreeModule_forall(f_mut, t_mut) {
390
391
  while (true) {
391
392
  const f = f_mut, t = t_mut;
392
393
  if (t != null) {
393
- const t2 = value(t);
394
+ const t2 = t;
394
395
  if (t2 instanceof SetTreeNode$1) {
395
396
  const tn = t2;
396
397
  if (f(SetTreeLeaf$1__get_Key(tn)) && SetTreeModule_forall(f, SetTreeNode$1__get_Left(tn))) {
@@ -414,7 +415,7 @@ function SetTreeModule_exists(f_mut, t_mut) {
414
415
  while (true) {
415
416
  const f = f_mut, t = t_mut;
416
417
  if (t != null) {
417
- const t2 = value(t);
418
+ const t2 = t;
418
419
  if (t2 instanceof SetTreeNode$1) {
419
420
  const tn = t2;
420
421
  if (f(SetTreeLeaf$1__get_Key(tn)) ? true : SetTreeModule_exists(f, SetTreeNode$1__get_Left(tn))) {
@@ -448,7 +449,7 @@ function SetTreeModule_filterAux(comparer_mut, f_mut, t_mut, acc_mut) {
448
449
  while (true) {
449
450
  const comparer = comparer_mut, f = f_mut, t = t_mut, acc = acc_mut;
450
451
  if (t != null) {
451
- const t2 = value(t);
452
+ const t2 = t;
452
453
  if (t2 instanceof SetTreeNode$1) {
453
454
  const tn = t2;
454
455
  const acc_1 = f(SetTreeLeaf$1__get_Key(tn)) ? SetTreeModule_add(comparer, SetTreeLeaf$1__get_Key(tn), acc) : acc;
@@ -478,7 +479,7 @@ function SetTreeModule_diffAux(comparer_mut, t_mut, acc_mut) {
478
479
  if (acc == null) {
479
480
  return acc;
480
481
  } else if (t != null) {
481
- const t2 = value(t);
482
+ const t2 = t;
482
483
  if (t2 instanceof SetTreeNode$1) {
483
484
  const tn = t2;
484
485
  comparer_mut = comparer;
@@ -499,9 +500,9 @@ function SetTreeModule_diff(comparer, a, b) {
499
500
  }
500
501
  function SetTreeModule_union(comparer, t1, t2) {
501
502
  if (t1 != null) {
502
- const t1$0027 = value(t1);
503
+ const t1$0027 = t1;
503
504
  if (t2 != null) {
504
- const t2$0027 = value(t2);
505
+ const t2$0027 = t2;
505
506
  if (t1$0027 instanceof SetTreeNode$1) {
506
507
  const t1n = t1$0027;
507
508
  if (t2$0027 instanceof SetTreeNode$1) {
@@ -531,7 +532,7 @@ function SetTreeModule_intersectionAux(comparer_mut, b_mut, t_mut, acc_mut) {
531
532
  while (true) {
532
533
  const comparer = comparer_mut, b = b_mut, t = t_mut, acc = acc_mut;
533
534
  if (t != null) {
534
- const t2 = value(t);
535
+ const t2 = t;
535
536
  if (t2 instanceof SetTreeNode$1) {
536
537
  const tn = t2;
537
538
  const acc_1 = SetTreeModule_intersectionAux(comparer, b, SetTreeNode$1__get_Right(tn), acc);
@@ -568,7 +569,7 @@ function SetTreeModule_partitionAux(comparer_mut, f_mut, t_mut, acc__mut, acc__1
568
569
  const comparer = comparer_mut, f = f_mut, t = t_mut, acc_ = acc__mut, acc__1 = acc__1_mut;
569
570
  const acc = [acc_, acc__1];
570
571
  if (t != null) {
571
- const t2 = value(t);
572
+ const t2 = t;
572
573
  if (t2 instanceof SetTreeNode$1) {
573
574
  const tn = t2;
574
575
  const acc_1 = SetTreeModule_partitionAux(comparer, f, SetTreeNode$1__get_Right(tn), acc[0], acc[1]);
@@ -596,7 +597,7 @@ function SetTreeModule_minimumElementAux(t_mut, n_mut) {
596
597
  while (true) {
597
598
  const t = t_mut, n = n_mut;
598
599
  if (t != null) {
599
- const t2 = value(t);
600
+ const t2 = t;
600
601
  if (t2 instanceof SetTreeNode$1) {
601
602
  const tn = t2;
602
603
  t_mut = SetTreeNode$1__get_Left(tn);
@@ -613,7 +614,7 @@ function SetTreeModule_minimumElementAux(t_mut, n_mut) {
613
614
  }
614
615
  function SetTreeModule_minimumElementOpt(t) {
615
616
  if (t != null) {
616
- const t2 = value(t);
617
+ const t2 = t;
617
618
  if (t2 instanceof SetTreeNode$1) {
618
619
  const tn = t2;
619
620
  return some(SetTreeModule_minimumElementAux(SetTreeNode$1__get_Left(tn), SetTreeLeaf$1__get_Key(tn)));
@@ -629,7 +630,7 @@ function SetTreeModule_maximumElementAux(t_mut, n_mut) {
629
630
  while (true) {
630
631
  const t = t_mut, n = n_mut;
631
632
  if (t != null) {
632
- const t2 = value(t);
633
+ const t2 = t;
633
634
  if (t2 instanceof SetTreeNode$1) {
634
635
  const tn = t2;
635
636
  t_mut = SetTreeNode$1__get_Right(tn);
@@ -646,7 +647,7 @@ function SetTreeModule_maximumElementAux(t_mut, n_mut) {
646
647
  }
647
648
  function SetTreeModule_maximumElementOpt(t) {
648
649
  if (t != null) {
649
- const t2 = value(t);
650
+ const t2 = t;
650
651
  if (t2 instanceof SetTreeNode$1) {
651
652
  const tn = t2;
652
653
  return some(SetTreeModule_maximumElementAux(SetTreeNode$1__get_Right(tn), SetTreeLeaf$1__get_Key(tn)));
@@ -660,7 +661,7 @@ function SetTreeModule_maximumElementOpt(t) {
660
661
  function SetTreeModule_minimumElement(s) {
661
662
  const matchValue = SetTreeModule_minimumElementOpt(s);
662
663
  if (matchValue == null) {
663
- throw new Exception("Set contains no elements");
664
+ throw Operators_InvalidArg("s", "Set contains no elements.");
664
665
  } else {
665
666
  return value(matchValue);
666
667
  }
@@ -668,7 +669,7 @@ function SetTreeModule_minimumElement(s) {
668
669
  function SetTreeModule_maximumElement(s) {
669
670
  const matchValue = SetTreeModule_maximumElementOpt(s);
670
671
  if (matchValue == null) {
671
- throw new Exception("Set contains no elements");
672
+ throw Operators_InvalidArg("s", "Set contains no elements.");
672
673
  } else {
673
674
  return value(matchValue);
674
675
  }
@@ -679,6 +680,12 @@ class SetTreeModule_SetIterator$1 extends Record {
679
680
  this.stack = stack;
680
681
  this.started = started;
681
682
  }
683
+ Equals(other) {
684
+ return this === other;
685
+ }
686
+ GetHashCode() {
687
+ return physicalHash(this);
688
+ }
682
689
  }
683
690
  function SetTreeModule_SetIterator$1_$reflection(gen0) {
684
691
  return record_type("Set.SetTreeModule.SetIterator`1", [gen0], SetTreeModule_SetIterator$1, () => [["stack", list_type(option_type(SetTreeLeaf$1_$reflection(gen0)))], ["started", bool_type]]);
@@ -691,7 +698,7 @@ function SetTreeModule_collapseLHS(stack_mut) {
691
698
  const x = head(stack);
692
699
  const rest = tail(stack);
693
700
  if (x != null) {
694
- const x2 = value(x);
701
+ const x2 = x;
695
702
  if (x2 instanceof SetTreeNode$1) {
696
703
  const xn = x2;
697
704
  stack_mut = ofArrayWithTail([SetTreeNode$1__get_Left(xn), SetTreeLeaf$1_$ctor_2B595(SetTreeLeaf$1__get_Key(xn)), SetTreeNode$1__get_Right(xn)], rest);
@@ -713,10 +720,10 @@ function SetTreeModule_mkIterator(s) {
713
720
  return new SetTreeModule_SetIterator$1(SetTreeModule_collapseLHS(singleton$1(s)), false);
714
721
  }
715
722
  function SetTreeModule_notStarted() {
716
- throw new Exception("Enumeration not started");
723
+ throw Operators_InvalidOp("Enumeration has not started. Call MoveNext.");
717
724
  }
718
725
  function SetTreeModule_alreadyFinished() {
719
- throw new Exception("Enumeration already started");
726
+ throw Operators_InvalidOp("Enumeration already finished.");
720
727
  }
721
728
  function SetTreeModule_current(i) {
722
729
  if (i.started) {
@@ -724,7 +731,7 @@ function SetTreeModule_current(i) {
724
731
  if (isEmpty$1(matchValue)) {
725
732
  return SetTreeModule_alreadyFinished();
726
733
  } else if (head(matchValue) != null) {
727
- const t = value(head(matchValue));
734
+ const t = head(matchValue);
728
735
  return SetTreeLeaf$1__get_Key(t);
729
736
  } else {
730
737
  throw new Exception("Please report error: Set iterator, unexpected stack for current");
@@ -738,7 +745,7 @@ function SetTreeModule_moveNext(i) {
738
745
  const matchValue = i.stack;
739
746
  if (!isEmpty$1(matchValue)) {
740
747
  if (head(matchValue) != null) {
741
- const t = value(head(matchValue));
748
+ const t = head(matchValue);
742
749
  if (t instanceof SetTreeNode$1) {
743
750
  throw new Exception("Please report error: Set iterator, unexpected stack for moveNext");
744
751
  } else {
@@ -783,8 +790,8 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
783
790
  if (!isEmpty$1(l2)) {
784
791
  if (head(l2) != null) {
785
792
  if (head(l1) != null) {
786
- const x1_3 = value(head(l1));
787
- const x2_3 = value(head(l2));
793
+ const x1_3 = head(l1);
794
+ const x2_3 = head(l2);
788
795
  if (x1_3 instanceof SetTreeNode$1) {
789
796
  const x1n_2 = x1_3;
790
797
  if (SetTreeNode$1__get_Left(x1n_2) == null) {
@@ -806,12 +813,12 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
806
813
  if (head(l1) != null) {
807
814
  matchResult = 0;
808
815
  t1_6 = tail(l1);
809
- x1_4 = value(head(l1));
816
+ x1_4 = head(l1);
810
817
  } else if (!isEmpty$1(l2)) {
811
818
  if (head(l2) != null) {
812
819
  matchResult = 1;
813
820
  t2_6 = tail(l2);
814
- x2_4 = value(head(l2));
821
+ x2_4 = head(l2);
815
822
  } else {
816
823
  matchResult = 2;
817
824
  }
@@ -822,7 +829,7 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
822
829
  if (head(l2) != null) {
823
830
  matchResult = 1;
824
831
  t2_6 = tail(l2);
825
- x2_4 = value(head(l2));
832
+ x2_4 = head(l2);
826
833
  } else {
827
834
  matchResult = 2;
828
835
  }
@@ -877,12 +884,12 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
877
884
  if (head(l1) != null) {
878
885
  matchResult_1 = 0;
879
886
  t1_7 = tail(l1);
880
- x1_5 = value(head(l1));
887
+ x1_5 = head(l1);
881
888
  } else if (!isEmpty$1(l2)) {
882
889
  if (head(l2) != null) {
883
890
  matchResult_1 = 1;
884
891
  t2_7 = tail(l2);
885
- x2_5 = value(head(l2));
892
+ x2_5 = head(l2);
886
893
  } else {
887
894
  matchResult_1 = 2;
888
895
  }
@@ -893,7 +900,7 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
893
900
  if (head(l2) != null) {
894
901
  matchResult_1 = 1;
895
902
  t2_7 = tail(l2);
896
- x2_5 = value(head(l2));
903
+ x2_5 = head(l2);
897
904
  } else {
898
905
  matchResult_1 = 2;
899
906
  }
@@ -949,12 +956,12 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
949
956
  if (head(l1) != null) {
950
957
  matchResult_2 = 0;
951
958
  t1_8 = tail(l1);
952
- x1_6 = value(head(l1));
959
+ x1_6 = head(l1);
953
960
  } else if (!isEmpty$1(l2)) {
954
961
  if (head(l2) != null) {
955
962
  matchResult_2 = 1;
956
963
  t2_8 = tail(l2);
957
- x2_6 = value(head(l2));
964
+ x2_6 = head(l2);
958
965
  } else {
959
966
  matchResult_2 = 2;
960
967
  }
@@ -965,7 +972,7 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
965
972
  if (head(l2) != null) {
966
973
  matchResult_2 = 1;
967
974
  t2_8 = tail(l2);
968
- x2_6 = value(head(l2));
975
+ x2_6 = head(l2);
969
976
  } else {
970
977
  matchResult_2 = 2;
971
978
  }
@@ -1015,18 +1022,18 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1015
1022
  }
1016
1023
  }
1017
1024
  } else {
1018
- const x2 = value(head(l2));
1025
+ const x2 = head(l2);
1019
1026
  let matchResult_3 = void 0, t1_2 = void 0, x1 = void 0, t2_2 = void 0, x2_1 = void 0;
1020
1027
  if (!isEmpty$1(l1)) {
1021
1028
  if (head(l1) != null) {
1022
1029
  matchResult_3 = 0;
1023
1030
  t1_2 = tail(l1);
1024
- x1 = value(head(l1));
1031
+ x1 = head(l1);
1025
1032
  } else if (!isEmpty$1(l2)) {
1026
1033
  if (head(l2) != null) {
1027
1034
  matchResult_3 = 1;
1028
1035
  t2_2 = tail(l2);
1029
- x2_1 = value(head(l2));
1036
+ x2_1 = head(l2);
1030
1037
  } else {
1031
1038
  matchResult_3 = 2;
1032
1039
  }
@@ -1037,7 +1044,7 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1037
1044
  if (head(l2) != null) {
1038
1045
  matchResult_3 = 1;
1039
1046
  t2_2 = tail(l2);
1040
- x2_1 = value(head(l2));
1047
+ x2_1 = head(l2);
1041
1048
  } else {
1042
1049
  matchResult_3 = 2;
1043
1050
  }
@@ -1076,18 +1083,18 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1076
1083
  }
1077
1084
  }
1078
1085
  } else if (head(l1) != null) {
1079
- const x1_1 = value(head(l1));
1086
+ const x1_1 = head(l1);
1080
1087
  let matchResult_4 = void 0, t1_4 = void 0, x1_2 = void 0, t2_4 = void 0, x2_2 = void 0;
1081
1088
  if (!isEmpty$1(l1)) {
1082
1089
  if (head(l1) != null) {
1083
1090
  matchResult_4 = 0;
1084
1091
  t1_4 = tail(l1);
1085
- x1_2 = value(head(l1));
1092
+ x1_2 = head(l1);
1086
1093
  } else if (!isEmpty$1(l2)) {
1087
1094
  if (head(l2) != null) {
1088
1095
  matchResult_4 = 1;
1089
1096
  t2_4 = tail(l2);
1090
- x2_2 = value(head(l2));
1097
+ x2_2 = head(l2);
1091
1098
  } else {
1092
1099
  matchResult_4 = 2;
1093
1100
  }
@@ -1098,7 +1105,7 @@ function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1098
1105
  if (head(l2) != null) {
1099
1106
  matchResult_4 = 1;
1100
1107
  t2_4 = tail(l2);
1101
- x2_2 = value(head(l2));
1108
+ x2_2 = head(l2);
1102
1109
  } else {
1103
1110
  matchResult_4 = 2;
1104
1111
  }
@@ -1174,7 +1181,7 @@ function SetTreeModule_toList(t) {
1174
1181
  while (true) {
1175
1182
  const t$0027 = t$0027_mut, acc = acc_mut;
1176
1183
  if (t$0027 != null) {
1177
- const t2 = value(t$0027);
1184
+ const t2 = t$0027;
1178
1185
  if (t2 instanceof SetTreeNode$1) {
1179
1186
  const tn = t2;
1180
1187
  t$0027_mut = SetTreeNode$1__get_Left(tn);
@@ -1,5 +1,5 @@
1
1
  import { toString } from './Date.js';
2
- import { compare as compare$1, isNumeric, multiply, toHex, toExponential, toPrecision, toFixed, divide, isIntegral } from './Numeric.js';
2
+ import { compare as compare$1, isNumeric, multiply, toRadix, toExponential, toPrecision, toFixed, divide, isIntegral, toHex } from './Numeric.js';
3
3
  import { escape } from './RegExp.js';
4
4
  import { toString as toString$1 } from './Types.js';
5
5
  import { Exception } from './Util.js';
@@ -200,17 +200,14 @@ function formatReplacement(rep, flags, padLength, precision, format2) {
200
200
  flags = flags || "";
201
201
  format2 = format2 || "";
202
202
  if (isNumeric(rep)) {
203
- if (format2.toLowerCase() !== "x") {
204
- if (isLessThan(rep, 0)) {
205
- rep = multiply(rep, -1);
206
- sign = "-";
207
- } else {
208
- if (flags.indexOf(" ") >= 0) {
209
- sign = " ";
210
- } else if (flags.indexOf("+") >= 0) {
211
- sign = "+";
212
- }
213
- }
203
+ const radix = format2 === "x" || format2 === "X" ? 16 : format2 === "o" ? 8 : 10;
204
+ if (radix === 10 && isLessThan(rep, 0)) {
205
+ rep = multiply(rep, -1);
206
+ sign = "-";
207
+ } else if (flags.indexOf(" ") >= 0) {
208
+ sign = " ";
209
+ } else if (flags.indexOf("+") >= 0) {
210
+ sign = "+";
214
211
  }
215
212
  precision = precision == null ? null : parseInt(precision, 10);
216
213
  switch (format2) {
@@ -228,10 +225,11 @@ function formatReplacement(rep, flags, padLength, precision, format2) {
228
225
  rep = precision != null ? toExponential(rep, precision) : toExponential(rep);
229
226
  break;
230
227
  case "x":
231
- rep = toHex(rep);
228
+ case "o":
229
+ rep = toRadix(rep, radix);
232
230
  break;
233
231
  case "X":
234
- rep = toHex(rep).toUpperCase();
232
+ rep = toRadix(rep, radix).toUpperCase();
235
233
  break;
236
234
  default:
237
235
  rep = String(rep);
@@ -325,6 +323,48 @@ function splitIntAndDecimalPart(value) {
325
323
  function thousandSeparate(value) {
326
324
  return value.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
327
325
  }
326
+ function splitExponential(s) {
327
+ const eIdx = s.indexOf("e");
328
+ return [s.slice(0, eIdx).replace(".", ""), Number(s.slice(eIdx + 1))];
329
+ }
330
+ function shortestSingle(x) {
331
+ const [digits, exponent] = splitExponential(x.toExponential(99));
332
+ for (let p = 1; ; p++) {
333
+ const down = Number(digits.slice(0, p));
334
+ const rest = digits.slice(p);
335
+ const half = "5".padEnd(rest.length, "0");
336
+ const roundUp = rest > half || rest === half && down % 2 === 1;
337
+ for (const n of roundUp ? [down + 1, down] : [down, down + 1]) {
338
+ if (Math.fround(Number(n + "e" + (exponent - p + 1))) === x) {
339
+ return [String(n), exponent + String(n).length - p];
340
+ }
341
+ }
342
+ }
343
+ }
344
+ function formatGeneral(x, format2, precision, isSingle = false) {
345
+ if (!Number.isFinite(x)) {
346
+ return String(x);
347
+ }
348
+ const sign = x < 0 || Object.is(x, -0) ? "-" : "";
349
+ x = Math.abs(x);
350
+ const p = format2 === "r" || format2 === "R" ? 0 : precision ?? 0;
351
+ const [significand, exponent] = p > 0 ? splitExponential(x.toExponential(p - 1)) : isSingle ? shortestSingle(x) : splitExponential(x.toExponential());
352
+ const digits = trimEnd(significand, "0") || "0";
353
+ if (exponent < -4 || exponent >= (p > 0 ? p : isSingle ? 9 : 17)) {
354
+ const mantissa = digits.length > 1 ? digits[0] + "." + digits.slice(1) : digits;
355
+ const eChar = format2 === "G" || format2 === "R" ? "E" : "e";
356
+ return sign + mantissa + eChar + (exponent < 0 ? "-" : "+") + padLeft(String(Math.abs(exponent)), 2, "0");
357
+ } else if (exponent < 0) {
358
+ return sign + "0." + "0".repeat(-exponent - 1) + digits;
359
+ } else {
360
+ const decimals = digits.slice(exponent + 1);
361
+ return sign + digits.slice(0, exponent + 1).padEnd(exponent + 1, "0") + (decimals ? "." + decimals : "");
362
+ }
363
+ }
364
+ function formatSingle(str, x) {
365
+ const m = /^\{0:([GgRr])(\d{0,2})\}$/.exec(str);
366
+ return m != null ? formatGeneral(Math.fround(x), m[1], m[2] ? parseInt(m[2], 10) : null, true) : format(str, x);
367
+ }
328
368
  function format(str, ...args) {
329
369
  let str2;
330
370
  if (typeof str === "object") {
@@ -399,15 +439,25 @@ function format(str, ...args) {
399
439
  }
400
440
  break;
401
441
  case "g":
402
- case "G": {
403
- rep = precision != null ? toPrecision(rep, precision) : toPrecision(rep);
442
+ case "G":
443
+ case "r":
444
+ case "R": {
445
+ if (typeof rep === "number") {
446
+ rep = formatGeneral(rep, format2, precision);
447
+ break;
448
+ }
449
+ if (precision == null) {
450
+ rep = String(rep);
451
+ break;
452
+ }
453
+ rep = toPrecision(rep, precision);
404
454
  const eIdx = rep.indexOf("e");
405
455
  if (eIdx >= 0) {
406
456
  const mantissa = trimEnd(trimEnd(rep.slice(0, eIdx), "0"), ".");
407
457
  const expSign = rep[eIdx + 1];
408
458
  const expDigits = rep.slice(eIdx + 2);
409
459
  const paddedExpDigits = expDigits.length < 2 ? "0" + expDigits : expDigits;
410
- const eChar = format2 === "G" ? "E" : "e";
460
+ const eChar = format2 === "G" || format2 === "R" ? "E" : "e";
411
461
  rep = mantissa + eChar + expSign + paddedExpDigits;
412
462
  } else if (rep.indexOf(".") >= 0) {
413
463
  rep = trimEnd(trimEnd(rep, "0"), ".");
@@ -436,9 +486,6 @@ function format(str, ...args) {
436
486
  rep = thousandSeparate(parts.integral) + " %";
437
487
  }
438
488
  break;
439
- case "r":
440
- case "R":
441
- throw new Exception("The round-trip format is not supported by Fable");
442
489
  case "x":
443
490
  case "X":
444
491
  if (!isIntegral(rep)) {
@@ -678,4 +725,4 @@ function getFormat(s) {
678
725
  return s.fmts ? strs.reduce((acc, newPart, index) => acc + `{${String(index - 1) + s.fmts[index - 1]}}` + newPart) : strs.reduce((acc, newPart, index) => acc + `{${index - 1}}` + newPart);
679
726
  }
680
727
 
681
- export { StringComparison, compare, compareOrdinal, compareTo, concat, contains, endsWith, filter, fmt, fmtWith, format, fromBase64String, fsFormat, getCharAtIndex, getFormat, indexOf, indexOfAny, initialize, insert, interpolate, isNullOrEmpty, isNullOrWhiteSpace, join, joinWithIndices, lastIndexOf, padLeft, padRight, printf, remove, replace, replicate, split, startsWith, substring, toBase64String, toCharArray2, toConsole, toConsoleError, toFail, toText, trim, trimEnd, trimStart };
728
+ export { StringComparison, compare, compareOrdinal, compareTo, concat, contains, endsWith, filter, fmt, fmtWith, format, formatSingle, fromBase64String, fsFormat, getCharAtIndex, getFormat, indexOf, indexOfAny, initialize, insert, interpolate, isNullOrEmpty, isNullOrWhiteSpace, join, joinWithIndices, lastIndexOf, padLeft, padRight, printf, remove, replace, replicate, split, startsWith, substring, toBase64String, toCharArray2, toConsole, toConsoleError, toFail, toText, trim, trimEnd, trimStart };
@@ -5,6 +5,7 @@ import { delay, enumerateWhile, append, singleton, empty, toArray } from './Seq.
5
5
  import { item, fill, copyTo, initialize, setItem } from './Array.js';
6
6
  import { max } from './Double.js';
7
7
  import { ArgumentOutOfRangeException_$ctor_Z721C83C5 } from './System.js';
8
+ import { Operators_InvalidOp } from './FSharp.Core.js';
8
9
 
9
10
  class KeyNotFoundException extends Exception {
10
11
  constructor(message) {
@@ -229,7 +230,7 @@ function Queue$1__Enqueue_2B595(_, value) {
229
230
  }
230
231
  function Queue$1__Dequeue(_) {
231
232
  if (_.count === 0) {
232
- throw new Exception("Queue is empty");
233
+ throw Operators_InvalidOp("Queue is empty");
233
234
  }
234
235
  const value = item(_.head, _.contents);
235
236
  _.head = (_.head + 1) % Queue$1__size(_) | 0;
@@ -238,7 +239,7 @@ function Queue$1__Dequeue(_) {
238
239
  }
239
240
  function Queue$1__Peek(_) {
240
241
  if (_.count === 0) {
241
- throw new Exception("Queue is empty");
242
+ throw Operators_InvalidOp("Queue is empty");
242
243
  }
243
244
  return item(_.head, _.contents);
244
245
  }
@@ -1,4 +1,4 @@
1
- import { isNullOrEmpty, join, substring, replicate, format, replace } from './String.js';
1
+ import { isNullOrEmpty, join, substring, replicate, format, getCharAtIndex, replace } from './String.js';
2
2
  import { class_type } from './Reflection.js';
3
3
  import { toString } from './Types.js';
4
4
  import { int16ToString, int32ToString, int64ToString, clear, Exception } from './Util.js';
@@ -160,7 +160,7 @@ function StringBuilder__get_Chars_Z524259A4(x, index) {
160
160
  throw new Exception("Index was outside the bounds of the array");
161
161
  } else {
162
162
  const pos = index - len | 0;
163
- return item(i, x.buf)[pos];
163
+ return getCharAtIndex(item(i, x.buf), pos);
164
164
  }
165
165
  }
166
166
  function StringBuilder__set_Chars_413E0D0A(x, index, value) {