@nfdi4plants/arctrl 3.0.0-beta.3 → 3.0.0-beta.4

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 (380) hide show
  1. package/README.md +2 -0
  2. package/dist/ts/index.js +63 -0
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
  37. package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
  38. package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
  39. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
  40. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
  41. package/dist/ts/ts/ARC.js +914 -0
  42. package/dist/ts/ts/Contract/ARC.js +52 -0
  43. package/dist/ts/ts/Contract/ArcAssay.js +80 -0
  44. package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
  45. package/dist/ts/ts/Contract/ArcRun.js +76 -0
  46. package/dist/ts/ts/Contract/ArcStudy.js +76 -0
  47. package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
  48. package/dist/ts/ts/Contract/Contract.js +45 -0
  49. package/dist/ts/ts/Contract/Datamap.js +221 -0
  50. package/dist/ts/ts/Contract/Git.js +57 -0
  51. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
  52. package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
  53. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
  54. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  55. package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
  56. package/dist/ts/ts/Conversion.js +1247 -0
  57. package/dist/ts/ts/Core/ArcTypes.js +3393 -0
  58. package/dist/ts/ts/Core/Comment.js +91 -0
  59. package/dist/ts/ts/Core/CommentList.js +27 -0
  60. package/dist/ts/ts/Core/Conversion.js +923 -0
  61. package/dist/ts/ts/Core/Data.js +179 -0
  62. package/dist/ts/ts/Core/DataContext.js +108 -0
  63. package/dist/ts/ts/Core/DataFile.js +50 -0
  64. package/dist/ts/ts/Core/DataMap.js +53 -0
  65. package/dist/ts/ts/Core/Helper/Collections.js +323 -0
  66. package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
  67. package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
  68. package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
  69. package/dist/ts/ts/Core/Helper/Regex.js +296 -0
  70. package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
  71. package/dist/ts/ts/Core/Helper/Url.js +32 -0
  72. package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
  73. package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
  74. package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
  75. package/dist/ts/ts/Core/Person.js +183 -0
  76. package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
  77. package/dist/ts/ts/Core/Process/Component.js +121 -0
  78. package/dist/ts/ts/Core/Process/Factor.js +104 -0
  79. package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
  80. package/dist/ts/ts/Core/Process/Material.js +49 -0
  81. package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
  82. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
  83. package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
  84. package/dist/ts/ts/Core/Process/Process.js +136 -0
  85. package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
  86. package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
  87. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
  88. package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
  89. package/dist/ts/ts/Core/Process/Protocol.js +54 -0
  90. package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
  91. package/dist/ts/ts/Core/Process/Sample.js +44 -0
  92. package/dist/ts/ts/Core/Process/Source.js +38 -0
  93. package/dist/ts/ts/Core/Publication.js +108 -0
  94. package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
  95. package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
  96. package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
  97. package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
  98. package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
  99. package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
  100. package/dist/ts/ts/Core/Template.js +180 -0
  101. package/dist/ts/ts/Core/Templates.js +75 -0
  102. package/dist/ts/ts/Core/URI.js +8 -0
  103. package/dist/ts/ts/Core/Value.js +194 -0
  104. package/dist/ts/ts/CrossAsync.js +20 -0
  105. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
  106. package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
  107. package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
  108. package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
  109. package/dist/ts/ts/FileSystem/Path.js +36 -0
  110. package/dist/ts/ts/Json/Assay.d.ts +1 -1
  111. package/dist/ts/ts/Json/Assay.js +221 -0
  112. package/dist/ts/ts/Json/Comment.d.ts +1 -1
  113. package/dist/ts/ts/Json/Comment.js +112 -0
  114. package/dist/ts/ts/Json/Data.d.ts +1 -1
  115. package/dist/ts/ts/Json/Data.js +138 -0
  116. package/dist/ts/ts/Json/DataFile.d.ts +1 -1
  117. package/dist/ts/ts/Json/DataFile.js +55 -0
  118. package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
  119. package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
  120. package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
  121. package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
  122. package/dist/ts/ts/Json/Decode.d.ts +2 -2
  123. package/dist/ts/ts/Json/Decode.js +209 -0
  124. package/dist/ts/ts/Json/Encode.d.ts +1 -1
  125. package/dist/ts/ts/Json/Encode.js +65 -0
  126. package/dist/ts/ts/Json/IDTable.d.ts +1 -1
  127. package/dist/ts/ts/Json/IDTable.js +28 -0
  128. package/dist/ts/ts/Json/Investigation.d.ts +1 -1
  129. package/dist/ts/ts/Json/Investigation.js +229 -0
  130. package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
  131. package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
  132. package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
  133. package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
  134. package/dist/ts/ts/Json/Person.d.ts +1 -1
  135. package/dist/ts/ts/Json/Person.js +316 -0
  136. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
  137. package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
  138. package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
  139. package/dist/ts/ts/Json/Process/Component.js +41 -0
  140. package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
  141. package/dist/ts/ts/Json/Process/Factor.js +53 -0
  142. package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
  143. package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
  144. package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
  145. package/dist/ts/ts/Json/Process/Material.js +112 -0
  146. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
  147. package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
  148. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
  149. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
  150. package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
  151. package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
  152. package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
  153. package/dist/ts/ts/Json/Process/Process.js +103 -0
  154. package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
  155. package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
  156. package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
  157. package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
  158. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
  159. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
  160. package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
  161. package/dist/ts/ts/Json/Process/Protocol.js +166 -0
  162. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
  163. package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
  164. package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
  165. package/dist/ts/ts/Json/Process/Sample.js +165 -0
  166. package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
  167. package/dist/ts/ts/Json/Process/Source.js +133 -0
  168. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
  169. package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
  170. package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
  171. package/dist/ts/ts/Json/Process/Value.js +41 -0
  172. package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
  173. package/dist/ts/ts/Json/PropertyValue.js +280 -0
  174. package/dist/ts/ts/Json/Publication.d.ts +1 -1
  175. package/dist/ts/ts/Json/Publication.js +123 -0
  176. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
  177. package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
  178. package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
  179. package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
  180. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
  181. package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
  182. package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
  183. package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
  184. package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
  185. package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
  186. package/dist/ts/ts/Json/StringTable.d.ts +1 -1
  187. package/dist/ts/ts/Json/StringTable.js +66 -0
  188. package/dist/ts/ts/Json/Study.d.ts +1 -1
  189. package/dist/ts/ts/Json/Study.js +326 -0
  190. package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
  191. package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
  192. package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
  193. package/dist/ts/ts/Json/Table/CellTable.js +53 -0
  194. package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
  195. package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
  196. package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
  197. package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
  198. package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
  199. package/dist/ts/ts/Json/Table/IOType.js +15 -0
  200. package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
  201. package/dist/ts/ts/Json/Table/OATable.js +50 -0
  202. package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
  203. package/dist/ts/ts/Json/Table/Templates.js +15 -0
  204. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
  205. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
  206. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
  207. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
  208. package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
  209. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
  210. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
  211. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
  212. package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
  213. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
  214. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
  215. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
  216. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
  217. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
  218. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
  219. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
  220. package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
  221. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
  222. package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
  223. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
  224. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
  225. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
  226. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
  227. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
  228. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
  229. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
  230. package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
  231. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
  232. package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
  233. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
  234. package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
  235. package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
  236. package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
  237. package/dist/ts/ts/Json.js +171 -0
  238. package/dist/ts/ts/JsonIO/Assay.js +77 -0
  239. package/dist/ts/ts/JsonIO/Investigation.js +77 -0
  240. package/dist/ts/ts/JsonIO/LDObject.js +77 -0
  241. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
  242. package/dist/ts/ts/JsonIO/Study.js +77 -0
  243. package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
  244. package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
  245. package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
  246. package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
  247. package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
  248. package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
  249. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
  250. package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
  251. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
  252. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
  253. package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
  254. package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
  255. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
  256. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
  257. package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
  258. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
  259. package/dist/ts/ts/ROCrate/Helper.js +7 -0
  260. package/dist/ts/ts/ROCrate/LDContext.js +288 -0
  261. package/dist/ts/ts/ROCrate/LDObject.js +855 -0
  262. package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
  263. package/dist/ts/ts/ROCrateIO.d.ts +1 -1
  264. package/dist/ts/ts/ROCrateIO.js +58 -0
  265. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
  266. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  267. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
  268. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
  269. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
  270. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  271. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
  272. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
  273. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
  274. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  275. package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
  276. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
  277. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  278. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
  279. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
  280. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  281. package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
  282. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
  283. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  284. package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
  285. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
  286. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  287. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
  288. package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
  289. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
  290. package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
  291. package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
  292. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
  293. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
  294. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
  295. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
  296. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
  297. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
  298. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
  299. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
  300. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
  301. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
  302. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
  303. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
  304. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
  305. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
  306. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
  307. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
  308. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
  309. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
  310. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
  311. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
  312. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
  313. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  314. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
  315. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
  316. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
  317. package/dist/ts/ts/Template.Web.js +22 -0
  318. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
  319. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
  320. package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
  321. package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
  322. package/dist/ts/ts/Xlsx.d.ts +1 -1
  323. package/dist/ts/ts/Xlsx.d.ts.map +1 -1
  324. package/dist/ts/ts/Xlsx.js +91 -0
  325. package/dist/ts/ts/Yaml/Encode.js +8 -0
  326. package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
  327. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
  328. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
  329. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
  330. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
  331. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
  332. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
  333. package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
  334. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
  335. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
  336. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
  337. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
  338. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
  339. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
  340. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
  341. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
  342. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
  343. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
  344. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
  345. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
  346. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
  347. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
  348. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
  349. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
  350. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
  351. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
  352. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
  353. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
  354. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
  355. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
  356. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
  357. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
  358. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
  359. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
  360. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
  361. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
  362. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
  363. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
  364. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
  365. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
  366. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
  367. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
  368. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
  369. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
  370. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
  371. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
  372. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
  373. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
  374. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
  375. package/package.json +10 -7
  376. package/dist/ts/__vite-browser-external-2447137e.js +0 -4
  377. package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
  378. package/dist/ts/arctrl.cjs.js +0 -5691
  379. package/dist/ts/arctrl.es.js +0 -35562
  380. package/dist/ts/arctrl.umd.js +0 -5691
@@ -0,0 +1,680 @@
1
+ import { join } from './String.js';
2
+ import { value, some } from './Option.js';
3
+ import { toIterator, getEnumerator, equals, structuralHash, compare, defaultOf, isArrayLike, disposeSafe } from './Util.js';
4
+ import { Record } from './Types.js';
5
+ import { SR_inputWasEmpty, SR_keyNotFoundAlt, SR_indexOutOfBounds } from './Global.js';
6
+ import { fill, setItem, item as item$1, foldBack as foldBack$1, map as map$1, transpose as transpose$1 } from './Array.js';
7
+
8
+ class FSharpList extends Record {
9
+ constructor(head, tail) {
10
+ super();
11
+ this.head = head;
12
+ this.tail = tail;
13
+ }
14
+ toString() {
15
+ const xs = this;
16
+ return ("[" + join("; ", xs)) + "]";
17
+ }
18
+ Equals(other) {
19
+ const xs = this;
20
+ if (xs === other) {
21
+ return true;
22
+ }
23
+ else {
24
+ const loop = (xs_1_mut, ys_1_mut) => {
25
+ loop: while (true) {
26
+ const xs_1 = xs_1_mut, ys_1 = ys_1_mut;
27
+ const matchValue = xs_1.tail;
28
+ const matchValue_1 = ys_1.tail;
29
+ if (matchValue != null) {
30
+ if (matchValue_1 != null) {
31
+ const xt = value(matchValue);
32
+ const yt = value(matchValue_1);
33
+ if (equals(xs_1.head, ys_1.head)) {
34
+ xs_1_mut = xt;
35
+ ys_1_mut = yt;
36
+ continue loop;
37
+ }
38
+ else {
39
+ return false;
40
+ }
41
+ }
42
+ else {
43
+ return false;
44
+ }
45
+ }
46
+ else if (matchValue_1 != null) {
47
+ return false;
48
+ }
49
+ else {
50
+ return true;
51
+ }
52
+ }
53
+ };
54
+ return loop(xs, other);
55
+ }
56
+ }
57
+ GetHashCode() {
58
+ const xs = this;
59
+ const loop = (i_mut, h_mut, xs_1_mut) => {
60
+ loop: while (true) {
61
+ const i = i_mut, h = h_mut, xs_1 = xs_1_mut;
62
+ const matchValue = xs_1.tail;
63
+ if (matchValue != null) {
64
+ const t = value(matchValue);
65
+ if (i > 18) {
66
+ return h | 0;
67
+ }
68
+ else {
69
+ i_mut = (i + 1);
70
+ h_mut = (((h << 1) + structuralHash(xs_1.head)) + (631 * i));
71
+ xs_1_mut = t;
72
+ continue loop;
73
+ }
74
+ }
75
+ else {
76
+ return h | 0;
77
+ }
78
+ }
79
+ };
80
+ return loop(0, 0, xs) | 0;
81
+ }
82
+ toJSON() {
83
+ const this$ = this;
84
+ return Array.from(this$);
85
+ }
86
+ CompareTo(other) {
87
+ const xs = this;
88
+ const loop = (xs_1_mut, ys_1_mut) => {
89
+ loop: while (true) {
90
+ const xs_1 = xs_1_mut, ys_1 = ys_1_mut;
91
+ const matchValue = xs_1.tail;
92
+ const matchValue_1 = ys_1.tail;
93
+ if (matchValue != null) {
94
+ if (matchValue_1 != null) {
95
+ const xt = value(matchValue);
96
+ const yt = value(matchValue_1);
97
+ const c = compare(xs_1.head, ys_1.head) | 0;
98
+ if (c === 0) {
99
+ xs_1_mut = xt;
100
+ ys_1_mut = yt;
101
+ continue loop;
102
+ }
103
+ else {
104
+ return c | 0;
105
+ }
106
+ }
107
+ else {
108
+ return 1;
109
+ }
110
+ }
111
+ else if (matchValue_1 != null) {
112
+ return -1;
113
+ }
114
+ else {
115
+ return 0;
116
+ }
117
+ }
118
+ };
119
+ return loop(xs, other) | 0;
120
+ }
121
+ GetEnumerator() {
122
+ const xs = this;
123
+ return ListEnumerator$1_$ctor_3002E699(xs);
124
+ }
125
+ [Symbol.iterator]() {
126
+ return toIterator(getEnumerator(this));
127
+ }
128
+ "System.Collections.IEnumerable.GetEnumerator"() {
129
+ const xs = this;
130
+ return getEnumerator(xs);
131
+ }
132
+ }
133
+ class ListEnumerator$1 {
134
+ constructor(xs) {
135
+ this.xs = xs;
136
+ this.it = this.xs;
137
+ this.current = defaultOf();
138
+ }
139
+ "System.Collections.Generic.IEnumerator`1.get_Current"() {
140
+ const _ = this;
141
+ return _.current;
142
+ }
143
+ "System.Collections.IEnumerator.get_Current"() {
144
+ const _ = this;
145
+ return _.current;
146
+ }
147
+ "System.Collections.IEnumerator.MoveNext"() {
148
+ const _ = this;
149
+ const matchValue = _.it.tail;
150
+ if (matchValue != null) {
151
+ const t = value(matchValue);
152
+ _.current = _.it.head;
153
+ _.it = t;
154
+ return true;
155
+ }
156
+ else {
157
+ return false;
158
+ }
159
+ }
160
+ "System.Collections.IEnumerator.Reset"() {
161
+ const _ = this;
162
+ _.it = _.xs;
163
+ _.current = defaultOf();
164
+ }
165
+ Dispose() {
166
+ }
167
+ }
168
+ function ListEnumerator$1_$ctor_3002E699(xs) {
169
+ return new ListEnumerator$1(xs);
170
+ }
171
+ function FSharpList_get_Empty() {
172
+ return new FSharpList(defaultOf(), undefined);
173
+ }
174
+ function FSharpList_Cons_305B8EAC(x, xs) {
175
+ return new FSharpList(x, xs);
176
+ }
177
+ function FSharpList__get_IsEmpty(xs) {
178
+ return xs.tail == null;
179
+ }
180
+ function FSharpList__get_Length(xs) {
181
+ const loop = (i_mut, xs_1_mut) => {
182
+ loop: while (true) {
183
+ const i = i_mut, xs_1 = xs_1_mut;
184
+ const matchValue = xs_1.tail;
185
+ if (matchValue != null) {
186
+ i_mut = (i + 1);
187
+ xs_1_mut = value(matchValue);
188
+ continue loop;
189
+ }
190
+ else {
191
+ return i | 0;
192
+ }
193
+ }
194
+ };
195
+ return loop(0, xs) | 0;
196
+ }
197
+ function FSharpList__get_Head(xs) {
198
+ const matchValue = xs.tail;
199
+ if (matchValue != null) {
200
+ return xs.head;
201
+ }
202
+ else {
203
+ throw new Error((SR_inputWasEmpty + "\\nParameter name: ") + "list");
204
+ }
205
+ }
206
+ function FSharpList__get_Tail(xs) {
207
+ const matchValue = xs.tail;
208
+ if (matchValue != null) {
209
+ return value(matchValue);
210
+ }
211
+ else {
212
+ throw new Error((SR_inputWasEmpty + "\\nParameter name: ") + "list");
213
+ }
214
+ }
215
+ function FSharpList__get_Item_Z524259A4(xs, index) {
216
+ const loop = (i_mut, xs_1_mut) => {
217
+ loop: while (true) {
218
+ const i = i_mut, xs_1 = xs_1_mut;
219
+ const matchValue = xs_1.tail;
220
+ if (matchValue != null) {
221
+ if (i === index) {
222
+ return xs_1.head;
223
+ }
224
+ else {
225
+ i_mut = (i + 1);
226
+ xs_1_mut = value(matchValue);
227
+ continue loop;
228
+ }
229
+ }
230
+ else {
231
+ throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
232
+ }
233
+ }
234
+ };
235
+ return loop(0, xs);
236
+ }
237
+ function indexNotFound() {
238
+ throw new Error(SR_keyNotFoundAlt);
239
+ }
240
+ function empty() {
241
+ return FSharpList_get_Empty();
242
+ }
243
+ function cons(x, xs) {
244
+ return FSharpList_Cons_305B8EAC(x, xs);
245
+ }
246
+ function singleton(x) {
247
+ return FSharpList_Cons_305B8EAC(x, FSharpList_get_Empty());
248
+ }
249
+ function isEmpty(xs) {
250
+ return FSharpList__get_IsEmpty(xs);
251
+ }
252
+ function length(xs) {
253
+ return FSharpList__get_Length(xs);
254
+ }
255
+ function head(xs) {
256
+ return FSharpList__get_Head(xs);
257
+ }
258
+ function tryHead(xs) {
259
+ if (FSharpList__get_IsEmpty(xs)) {
260
+ return undefined;
261
+ }
262
+ else {
263
+ return some(FSharpList__get_Head(xs));
264
+ }
265
+ }
266
+ function tail(xs) {
267
+ return FSharpList__get_Tail(xs);
268
+ }
269
+ function tryLast(xs_mut) {
270
+ tryLast: while (true) {
271
+ const xs = xs_mut;
272
+ if (FSharpList__get_IsEmpty(xs)) {
273
+ return undefined;
274
+ }
275
+ else {
276
+ const t = FSharpList__get_Tail(xs);
277
+ if (FSharpList__get_IsEmpty(t)) {
278
+ return some(FSharpList__get_Head(xs));
279
+ }
280
+ else {
281
+ xs_mut = t;
282
+ continue tryLast;
283
+ }
284
+ }
285
+ }
286
+ }
287
+ function toArray(xs) {
288
+ const len = FSharpList__get_Length(xs) | 0;
289
+ const res = fill(new Array(len), 0, len, null);
290
+ const loop = (i_mut, xs_1_mut) => {
291
+ loop: while (true) {
292
+ const i = i_mut, xs_1 = xs_1_mut;
293
+ if (!FSharpList__get_IsEmpty(xs_1)) {
294
+ setItem(res, i, FSharpList__get_Head(xs_1));
295
+ i_mut = (i + 1);
296
+ xs_1_mut = FSharpList__get_Tail(xs_1);
297
+ continue loop;
298
+ }
299
+ break;
300
+ }
301
+ };
302
+ loop(0, xs);
303
+ return res;
304
+ }
305
+ function fold(folder, state, xs) {
306
+ let acc = state;
307
+ let xs_1 = xs;
308
+ while (!FSharpList__get_IsEmpty(xs_1)) {
309
+ acc = folder(acc, head(xs_1));
310
+ xs_1 = FSharpList__get_Tail(xs_1);
311
+ }
312
+ return acc;
313
+ }
314
+ function reverse(xs) {
315
+ return fold((acc, x) => FSharpList_Cons_305B8EAC(x, acc), FSharpList_get_Empty(), xs);
316
+ }
317
+ function foldBack(folder, xs, state) {
318
+ return foldBack$1(folder, toArray(xs), state);
319
+ }
320
+ function foldIndexed(folder, state, xs) {
321
+ const loop = (i_mut, acc_mut, xs_1_mut) => {
322
+ loop: while (true) {
323
+ const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut;
324
+ if (FSharpList__get_IsEmpty(xs_1)) {
325
+ return acc;
326
+ }
327
+ else {
328
+ i_mut = (i + 1);
329
+ acc_mut = folder(i, acc, FSharpList__get_Head(xs_1));
330
+ xs_1_mut = FSharpList__get_Tail(xs_1);
331
+ continue loop;
332
+ }
333
+ }
334
+ };
335
+ return loop(0, state, xs);
336
+ }
337
+ function fold2(folder, state, xs, ys) {
338
+ let acc = state;
339
+ let xs_1 = xs;
340
+ let ys_1 = ys;
341
+ while (!FSharpList__get_IsEmpty(xs_1) && !FSharpList__get_IsEmpty(ys_1)) {
342
+ acc = folder(acc, FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1));
343
+ xs_1 = FSharpList__get_Tail(xs_1);
344
+ ys_1 = FSharpList__get_Tail(ys_1);
345
+ }
346
+ return acc;
347
+ }
348
+ function iterate(action, xs) {
349
+ fold((unitVar, x) => {
350
+ action(x);
351
+ }, undefined, xs);
352
+ }
353
+ function iterateIndexed(action, xs) {
354
+ fold((i, x) => {
355
+ action(i, x);
356
+ return (i + 1) | 0;
357
+ }, 0, xs);
358
+ }
359
+ function ofArrayWithTail(xs, tail_1) {
360
+ let res = tail_1;
361
+ for (let i = xs.length - 1; i >= 0; i--) {
362
+ res = FSharpList_Cons_305B8EAC(item$1(i, xs), res);
363
+ }
364
+ return res;
365
+ }
366
+ function ofArray(xs) {
367
+ return ofArrayWithTail(xs, FSharpList_get_Empty());
368
+ }
369
+ function ofSeq(xs) {
370
+ let xs_3, t;
371
+ if (isArrayLike(xs)) {
372
+ return ofArray(xs);
373
+ }
374
+ else if (xs instanceof FSharpList) {
375
+ return xs;
376
+ }
377
+ else {
378
+ const root = FSharpList_get_Empty();
379
+ let node = root;
380
+ const enumerator = getEnumerator(xs);
381
+ try {
382
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
383
+ const x = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
384
+ node = ((xs_3 = node, (t = (new FSharpList(x, undefined)), (xs_3.tail = t, t))));
385
+ }
386
+ }
387
+ finally {
388
+ disposeSafe(enumerator);
389
+ }
390
+ const xs_5 = node;
391
+ const t_2 = FSharpList_get_Empty();
392
+ xs_5.tail = t_2;
393
+ return FSharpList__get_Tail(root);
394
+ }
395
+ }
396
+ function concat(lists) {
397
+ const root = FSharpList_get_Empty();
398
+ let node = root;
399
+ const action = (xs) => {
400
+ node = fold((acc, x) => {
401
+ const t = new FSharpList(x, undefined);
402
+ acc.tail = t;
403
+ return t;
404
+ }, node, xs);
405
+ };
406
+ if (isArrayLike(lists)) {
407
+ const xs_3 = lists;
408
+ xs_3.forEach(action);
409
+ }
410
+ else if (lists instanceof FSharpList) {
411
+ iterate(action, lists);
412
+ }
413
+ else {
414
+ const enumerator = getEnumerator(lists);
415
+ try {
416
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
417
+ action(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
418
+ }
419
+ }
420
+ finally {
421
+ disposeSafe(enumerator);
422
+ }
423
+ }
424
+ const xs_6 = node;
425
+ const t_2 = FSharpList_get_Empty();
426
+ xs_6.tail = t_2;
427
+ return FSharpList__get_Tail(root);
428
+ }
429
+ function append(xs, ys) {
430
+ return fold((acc, x) => FSharpList_Cons_305B8EAC(x, acc), ys, reverse(xs));
431
+ }
432
+ function collect(mapping, xs) {
433
+ let xs_1, t;
434
+ const root = FSharpList_get_Empty();
435
+ let node = root;
436
+ let ys = xs;
437
+ while (!FSharpList__get_IsEmpty(ys)) {
438
+ let zs = mapping(FSharpList__get_Head(ys));
439
+ while (!FSharpList__get_IsEmpty(zs)) {
440
+ node = ((xs_1 = node, (t = (new FSharpList(FSharpList__get_Head(zs), undefined)), (xs_1.tail = t, t))));
441
+ zs = FSharpList__get_Tail(zs);
442
+ }
443
+ ys = FSharpList__get_Tail(ys);
444
+ }
445
+ const xs_3 = node;
446
+ const t_2 = FSharpList_get_Empty();
447
+ xs_3.tail = t_2;
448
+ return FSharpList__get_Tail(root);
449
+ }
450
+ function mapIndexed(mapping, xs) {
451
+ const root = FSharpList_get_Empty();
452
+ const node = foldIndexed((i, acc, x) => {
453
+ const t = new FSharpList(mapping(i, x), undefined);
454
+ acc.tail = t;
455
+ return t;
456
+ }, root, xs);
457
+ const t_2 = FSharpList_get_Empty();
458
+ node.tail = t_2;
459
+ return FSharpList__get_Tail(root);
460
+ }
461
+ function map(mapping, xs) {
462
+ const root = FSharpList_get_Empty();
463
+ const node = fold((acc, x) => {
464
+ const t = new FSharpList(mapping(x), undefined);
465
+ acc.tail = t;
466
+ return t;
467
+ }, root, xs);
468
+ const t_2 = FSharpList_get_Empty();
469
+ node.tail = t_2;
470
+ return FSharpList__get_Tail(root);
471
+ }
472
+ function map2(mapping, xs, ys) {
473
+ const root = FSharpList_get_Empty();
474
+ const node = fold2((acc, x, y) => {
475
+ const t = new FSharpList(mapping(x, y), undefined);
476
+ acc.tail = t;
477
+ return t;
478
+ }, root, xs, ys);
479
+ const t_2 = FSharpList_get_Empty();
480
+ node.tail = t_2;
481
+ return FSharpList__get_Tail(root);
482
+ }
483
+ function tryPick(f, xs) {
484
+ const loop = (xs_1_mut) => {
485
+ loop: while (true) {
486
+ const xs_1 = xs_1_mut;
487
+ if (FSharpList__get_IsEmpty(xs_1)) {
488
+ return undefined;
489
+ }
490
+ else {
491
+ const matchValue = f(FSharpList__get_Head(xs_1));
492
+ if (matchValue == null) {
493
+ xs_1_mut = FSharpList__get_Tail(xs_1);
494
+ continue loop;
495
+ }
496
+ else {
497
+ return matchValue;
498
+ }
499
+ }
500
+ }
501
+ };
502
+ return loop(xs);
503
+ }
504
+ function pick(f, xs) {
505
+ const matchValue = tryPick(f, xs);
506
+ if (matchValue == null) {
507
+ return indexNotFound();
508
+ }
509
+ else {
510
+ return value(matchValue);
511
+ }
512
+ }
513
+ function tryFind(f, xs) {
514
+ return tryPick((x) => (f(x) ? some(x) : undefined), xs);
515
+ }
516
+ function find(f, xs) {
517
+ const matchValue = tryFind(f, xs);
518
+ if (matchValue == null) {
519
+ return indexNotFound();
520
+ }
521
+ else {
522
+ return value(matchValue);
523
+ }
524
+ }
525
+ function tryFindIndex(f, xs) {
526
+ const loop = (i_mut, xs_1_mut) => {
527
+ loop: while (true) {
528
+ const i = i_mut, xs_1 = xs_1_mut;
529
+ if (FSharpList__get_IsEmpty(xs_1)) {
530
+ return undefined;
531
+ }
532
+ else if (f(FSharpList__get_Head(xs_1))) {
533
+ return i;
534
+ }
535
+ else {
536
+ i_mut = (i + 1);
537
+ xs_1_mut = FSharpList__get_Tail(xs_1);
538
+ continue loop;
539
+ }
540
+ }
541
+ };
542
+ return loop(0, xs);
543
+ }
544
+ function tryItem(n, xs) {
545
+ const loop = (i_mut, xs_1_mut) => {
546
+ loop: while (true) {
547
+ const i = i_mut, xs_1 = xs_1_mut;
548
+ if (FSharpList__get_IsEmpty(xs_1)) {
549
+ return undefined;
550
+ }
551
+ else if (i === n) {
552
+ return some(FSharpList__get_Head(xs_1));
553
+ }
554
+ else {
555
+ i_mut = (i + 1);
556
+ xs_1_mut = FSharpList__get_Tail(xs_1);
557
+ continue loop;
558
+ }
559
+ }
560
+ };
561
+ return loop(0, xs);
562
+ }
563
+ function item(n, xs) {
564
+ return FSharpList__get_Item_Z524259A4(xs, n);
565
+ }
566
+ function filter(f, xs) {
567
+ const root = FSharpList_get_Empty();
568
+ const node = fold((acc, x) => {
569
+ if (f(x)) {
570
+ const t = new FSharpList(x, undefined);
571
+ acc.tail = t;
572
+ return t;
573
+ }
574
+ else {
575
+ return acc;
576
+ }
577
+ }, root, xs);
578
+ const t_2 = FSharpList_get_Empty();
579
+ node.tail = t_2;
580
+ return FSharpList__get_Tail(root);
581
+ }
582
+ function choose(f, xs) {
583
+ const root = FSharpList_get_Empty();
584
+ const node = fold((acc, x) => {
585
+ const matchValue = f(x);
586
+ if (matchValue == null) {
587
+ return acc;
588
+ }
589
+ else {
590
+ const t = new FSharpList(value(matchValue), undefined);
591
+ acc.tail = t;
592
+ return t;
593
+ }
594
+ }, root, xs);
595
+ const t_2 = FSharpList_get_Empty();
596
+ node.tail = t_2;
597
+ return FSharpList__get_Tail(root);
598
+ }
599
+ function initialize(n, f) {
600
+ let xs, t;
601
+ const root = FSharpList_get_Empty();
602
+ let node = root;
603
+ for (let i = 0; i <= (n - 1); i++) {
604
+ node = ((xs = node, (t = (new FSharpList(f(i), undefined)), (xs.tail = t, t))));
605
+ }
606
+ const xs_2 = node;
607
+ const t_2 = FSharpList_get_Empty();
608
+ xs_2.tail = t_2;
609
+ return FSharpList__get_Tail(root);
610
+ }
611
+ function reduce(f, xs) {
612
+ if (FSharpList__get_IsEmpty(xs)) {
613
+ throw new Error(SR_inputWasEmpty);
614
+ }
615
+ else {
616
+ return fold(f, head(xs), tail(xs));
617
+ }
618
+ }
619
+ function exists(f, xs) {
620
+ return tryFindIndex(f, xs) != null;
621
+ }
622
+ function unzip(xs) {
623
+ return foldBack((tupledArg, tupledArg_1) => [FSharpList_Cons_305B8EAC(tupledArg[0], tupledArg_1[0]), FSharpList_Cons_305B8EAC(tupledArg[1], tupledArg_1[1])], xs, [FSharpList_get_Empty(), FSharpList_get_Empty()]);
624
+ }
625
+ function zip(xs, ys) {
626
+ return map2((x, y) => [x, y], xs, ys);
627
+ }
628
+ function sortWith(comparer, xs) {
629
+ const arr = toArray(xs);
630
+ arr.sort(comparer);
631
+ return ofArray(arr);
632
+ }
633
+ function sortBy(projection, xs, comparer) {
634
+ return sortWith((x, y) => comparer.Compare(projection(x), projection(y)), xs);
635
+ }
636
+ function skipWhile(predicate_mut, xs_mut) {
637
+ skipWhile: while (true) {
638
+ const predicate = predicate_mut, xs = xs_mut;
639
+ if (FSharpList__get_IsEmpty(xs)) {
640
+ return xs;
641
+ }
642
+ else if (!predicate(FSharpList__get_Head(xs))) {
643
+ return xs;
644
+ }
645
+ else {
646
+ predicate_mut = predicate;
647
+ xs_mut = FSharpList__get_Tail(xs);
648
+ continue skipWhile;
649
+ }
650
+ }
651
+ }
652
+ function takeWhile(predicate, xs) {
653
+ const loop = (acc_mut, xs_1_mut) => {
654
+ let t;
655
+ loop: while (true) {
656
+ const acc = acc_mut, xs_1 = xs_1_mut;
657
+ if (FSharpList__get_IsEmpty(xs_1)) {
658
+ return acc;
659
+ }
660
+ else if (!predicate(FSharpList__get_Head(xs_1))) {
661
+ return acc;
662
+ }
663
+ else {
664
+ acc_mut = ((t = (new FSharpList(FSharpList__get_Head(xs_1), undefined)), (acc.tail = t, t)));
665
+ xs_1_mut = FSharpList__get_Tail(xs_1);
666
+ continue loop;
667
+ }
668
+ }
669
+ };
670
+ const root = FSharpList_get_Empty();
671
+ const node = loop(root, xs);
672
+ const t_2 = FSharpList_get_Empty();
673
+ node.tail = t_2;
674
+ return FSharpList__get_Tail(root);
675
+ }
676
+ function transpose(lists) {
677
+ return ofArray(map$1(ofArray, transpose$1(map$1(toArray, Array.from(lists)))));
678
+ }
679
+
680
+ export { FSharpList, FSharpList_Cons_305B8EAC, FSharpList__get_Head, FSharpList__get_IsEmpty, FSharpList__get_Item_Z524259A4, FSharpList__get_Length, FSharpList__get_Tail, FSharpList_get_Empty, ListEnumerator$1, ListEnumerator$1_$ctor_3002E699, append, choose, collect, concat, cons, empty, exists, filter, find, fold, fold2, foldBack, foldIndexed, head, indexNotFound, initialize, isEmpty, item, iterate, iterateIndexed, length, map, map2, mapIndexed, ofArray, ofArrayWithTail, ofSeq, pick, reduce, reverse, singleton, skipWhile, sortBy, sortWith, tail, takeWhile, toArray, transpose, tryFind, tryFindIndex, tryHead, tryItem, tryLast, tryPick, unzip, zip };
@@ -0,0 +1,40 @@
1
+ import { isValid, getPrefix } from './Int32.js';
2
+ import { fromString } from './BigInt.js';
3
+
4
+ function getMaxValue(unsigned, radix, isNegative) {
5
+ switch (radix) {
6
+ case 2: return unsigned ?
7
+ "1111111111111111111111111111111111111111111111111111111111111111" :
8
+ (isNegative ? "1000000000000000000000000000000000000000000000000000000000000000"
9
+ : "111111111111111111111111111111111111111111111111111111111111111");
10
+ case 8: return unsigned ?
11
+ "1777777777777777777777" :
12
+ (isNegative ? "1000000000000000000000" : "777777777777777777777");
13
+ case 10: return unsigned ?
14
+ "18446744073709551615" :
15
+ (isNegative ? "9223372036854775808" : "9223372036854775807");
16
+ case 16: return unsigned ?
17
+ "FFFFFFFFFFFFFFFF" :
18
+ (isNegative ? "8000000000000000" : "7FFFFFFFFFFFFFFF");
19
+ default: throw new Error("Invalid radix.");
20
+ }
21
+ }
22
+ function parse(str, style, unsigned, _bitsize, radix) {
23
+ const res = isValid(str, style, radix);
24
+ if (res != null) {
25
+ const lessOrEqual = (x, y) => {
26
+ const len = Math.max(x.length, y.length);
27
+ return x.padStart(len, "0") <= y.padStart(len, "0");
28
+ };
29
+ const isNegative = res.sign === "-";
30
+ const maxValue = getMaxValue(unsigned || res.radix !== 10, res.radix, isNegative);
31
+ if (lessOrEqual(res.digits.toUpperCase(), maxValue)) {
32
+ str = getPrefix(res.radix) + res.digits;
33
+ str = isNegative ? res.sign + str : str;
34
+ return fromString(str);
35
+ }
36
+ }
37
+ throw new Error(`The input string ${str} was not in a correct format.`);
38
+ }
39
+
40
+ export { parse };