@nfdi4plants/arctrl 3.2.3 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (453) hide show
  1. package/dist/ts/index.d.ts +44 -7
  2. package/dist/ts/index.d.ts.map +1 -1
  3. package/dist/ts/index.js +45 -8
  4. package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
  5. package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
  6. package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
  7. package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
  8. package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
  10. package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
  11. package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
  12. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
  13. package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
  14. package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
  15. package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
  16. package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
  17. package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
  18. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
  19. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
  20. package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
  22. package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
  23. package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
  24. package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
  25. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
  26. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
  27. package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
  28. package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
  29. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
  30. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
  31. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
  32. package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
  33. package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
  34. package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
  35. package/dist/ts/ts/ARC.d.ts +19 -2
  36. package/dist/ts/ts/ARC.d.ts.map +1 -1
  37. package/dist/ts/ts/ARC.js +128 -89
  38. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
  39. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
  40. package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
  41. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
  42. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
  43. package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
  44. package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
  45. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  46. package/dist/ts/ts/CWL/CWLTypes.js +887 -201
  47. package/dist/ts/ts/CWL/Decode.d.ts +480 -211
  48. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  49. package/dist/ts/ts/CWL/Decode.js +3614 -2462
  50. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
  51. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
  52. package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
  53. package/dist/ts/ts/CWL/Encode.d.ts +225 -85
  54. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  55. package/dist/ts/ts/CWL/Encode.js +1858 -970
  56. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
  57. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  58. package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
  59. package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
  60. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
  61. package/dist/ts/ts/CWL/HashHelpers.js +255 -6
  62. package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
  63. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  64. package/dist/ts/ts/CWL/Inputs.js +107 -16
  65. package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
  66. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  67. package/dist/ts/ts/CWL/OperationDescription.js +35 -9
  68. package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
  69. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  70. package/dist/ts/ts/CWL/Outputs.js +101 -19
  71. package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
  72. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  73. package/dist/ts/ts/CWL/ParameterReference.js +18 -25
  74. package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
  75. package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
  76. package/dist/ts/ts/CWL/ParameterValue.js +59 -35
  77. package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
  78. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  79. package/dist/ts/ts/CWL/Requirements.js +462 -89
  80. package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
  81. package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
  82. package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
  83. package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
  84. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  85. package/dist/ts/ts/CWL/ToolDescription.js +34 -13
  86. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
  87. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  88. package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
  89. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
  90. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  91. package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
  92. package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
  93. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
  94. package/dist/ts/ts/CWLRunResolver.js +221 -86
  95. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  96. package/dist/ts/ts/Contract/ARC.js +13 -14
  97. package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
  98. package/dist/ts/ts/Contract/ArcAssay.js +4 -4
  99. package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
  100. package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
  101. package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
  102. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  103. package/dist/ts/ts/Contract/ArcRun.js +47 -20
  104. package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
  105. package/dist/ts/ts/Contract/ArcStudy.js +4 -4
  106. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
  107. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  108. package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
  109. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  110. package/dist/ts/ts/Contract/Datamap.js +16 -17
  111. package/dist/ts/ts/Contract/Git.js +1 -1
  112. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
  113. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
  114. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  115. package/dist/ts/ts/ContractIO/ContractIO.js +15 -16
  116. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  117. package/dist/ts/ts/Conversion/Assay.js +26 -18
  118. package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
  119. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  120. package/dist/ts/ts/Conversion/Basic.js +55 -31
  121. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
  122. package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
  123. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
  124. package/dist/ts/ts/Conversion/DateTime.js +1 -2
  125. package/dist/ts/ts/Conversion/Investigation.js +11 -11
  126. package/dist/ts/ts/Conversion/Person.js +11 -11
  127. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
  128. package/dist/ts/ts/Conversion/Process.js +107 -86
  129. package/dist/ts/ts/Conversion/Run.d.ts +36 -6
  130. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  131. package/dist/ts/ts/Conversion/Run.js +320 -136
  132. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  133. package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
  134. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  135. package/dist/ts/ts/Conversion/Study.js +23 -12
  136. package/dist/ts/ts/Conversion/Table.js +5 -5
  137. package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
  138. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  139. package/dist/ts/ts/Conversion/Workflow.js +655 -163
  140. package/dist/ts/ts/Conversion.js +6 -6
  141. package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
  142. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  143. package/dist/ts/ts/Core/ArcTypes.js +219 -129
  144. package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
  145. package/dist/ts/ts/Core/Comment.js +2 -2
  146. package/dist/ts/ts/Core/CommentList.js +7 -7
  147. package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
  148. package/dist/ts/ts/Core/Conversion.js +41 -41
  149. package/dist/ts/ts/Core/Data.d.ts.map +1 -1
  150. package/dist/ts/ts/Core/Data.js +14 -11
  151. package/dist/ts/ts/Core/DataContext.d.ts +1 -1
  152. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  153. package/dist/ts/ts/Core/DataContext.js +4 -4
  154. package/dist/ts/ts/Core/DataFile.d.ts +11 -8
  155. package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
  156. package/dist/ts/ts/Core/DataFile.js +55 -61
  157. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  158. package/dist/ts/ts/Core/Datamap.js +2 -3
  159. package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
  160. package/dist/ts/ts/Core/Helper/Collections.js +2 -4
  161. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  162. package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
  163. package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
  164. package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
  165. package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
  166. package/dist/ts/ts/Core/Helper/Regex.js +52 -53
  167. package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
  168. package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
  169. package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
  170. package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
  171. package/dist/ts/ts/Core/Helper/Url.js +1 -1
  172. package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
  173. package/dist/ts/ts/Core/Person.d.ts.map +1 -1
  174. package/dist/ts/ts/Core/Person.js +2 -2
  175. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
  176. package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
  177. package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
  178. package/dist/ts/ts/Core/Process/Component.js +22 -22
  179. package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
  180. package/dist/ts/ts/Core/Process/Factor.js +7 -7
  181. package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
  182. package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
  183. package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
  184. package/dist/ts/ts/Core/Process/Material.js +2 -2
  185. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
  186. package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
  187. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
  188. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
  189. package/dist/ts/ts/Core/Process/Process.js +21 -21
  190. package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
  191. package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
  192. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
  193. package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
  194. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
  195. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
  196. package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
  197. package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
  198. package/dist/ts/ts/Core/Process/Protocol.js +9 -9
  199. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
  200. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
  201. package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
  202. package/dist/ts/ts/Core/Publication.js +3 -3
  203. package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
  204. package/dist/ts/ts/Core/ScalarValue.js +9 -13
  205. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  206. package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
  207. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
  208. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  209. package/dist/ts/ts/Core/Table/ArcTableAux.js +50 -70
  210. package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
  211. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
  212. package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
  213. package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
  214. package/dist/ts/ts/Core/Templates.js +2 -2
  215. package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
  216. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  217. package/dist/ts/ts/FileSystem/Path.js +37 -19
  218. package/dist/ts/ts/Json/Assay.js +22 -22
  219. package/dist/ts/ts/Json/Comment.js +9 -9
  220. package/dist/ts/ts/Json/Data.d.ts.map +1 -1
  221. package/dist/ts/ts/Json/Data.js +11 -11
  222. package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
  223. package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
  224. package/dist/ts/ts/Json/Decode.js +3 -5
  225. package/dist/ts/ts/Json/Encode.js +2 -2
  226. package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
  227. package/dist/ts/ts/Json/Investigation.js +20 -20
  228. package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
  229. package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
  230. package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
  231. package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
  232. package/dist/ts/ts/Json/Person.d.ts.map +1 -1
  233. package/dist/ts/ts/Json/Person.js +20 -20
  234. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
  235. package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
  236. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  237. package/dist/ts/ts/Json/Process/Component.js +5 -6
  238. package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
  239. package/dist/ts/ts/Json/Process/Factor.js +7 -7
  240. package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
  241. package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
  242. package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
  243. package/dist/ts/ts/Json/Process/Material.js +9 -10
  244. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
  245. package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
  246. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
  247. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
  248. package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
  249. package/dist/ts/ts/Json/Process/Process.js +8 -9
  250. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
  251. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
  252. package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
  253. package/dist/ts/ts/Json/Process/Protocol.js +17 -17
  254. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  255. package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
  256. package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
  257. package/dist/ts/ts/Json/Process/Sample.js +9 -9
  258. package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
  259. package/dist/ts/ts/Json/Process/Source.js +10 -11
  260. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
  261. package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
  262. package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
  263. package/dist/ts/ts/Json/PropertyValue.js +24 -24
  264. package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
  265. package/dist/ts/ts/Json/Publication.js +10 -10
  266. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
  267. package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
  268. package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
  269. package/dist/ts/ts/Json/Run.js +9 -9
  270. package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
  271. package/dist/ts/ts/Json/StringTable.js +4 -7
  272. package/dist/ts/ts/Json/Study.js +20 -20
  273. package/dist/ts/ts/Json/Table/CellTable.js +1 -2
  274. package/dist/ts/ts/Json/Table/OATable.js +1 -2
  275. package/dist/ts/ts/Json/Workflow.js +9 -9
  276. package/dist/ts/ts/Json.d.ts +121 -1
  277. package/dist/ts/ts/Json.d.ts.map +1 -1
  278. package/dist/ts/ts/Json.js +310 -2
  279. package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
  280. package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
  281. package/dist/ts/ts/JsonIO/Comment.js +67 -0
  282. package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
  283. package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
  284. package/dist/ts/ts/JsonIO/Data.js +49 -0
  285. package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
  286. package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
  287. package/dist/ts/ts/JsonIO/DataFile.js +48 -0
  288. package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
  289. package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
  290. package/dist/ts/ts/JsonIO/LDObject.js +173 -17
  291. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
  292. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
  293. package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
  294. package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
  295. package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
  296. package/dist/ts/ts/JsonIO/Publication.js +68 -0
  297. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
  298. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
  299. package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
  300. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
  301. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
  302. package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
  303. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
  304. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
  305. package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
  306. package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
  307. package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
  308. package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
  309. package/dist/ts/ts/License.d.ts.map +1 -1
  310. package/dist/ts/ts/License.js +6 -6
  311. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  312. package/dist/ts/ts/ROCrate/LDContext.js +31 -39
  313. package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
  314. package/dist/ts/ts/ROCrate/LDObject.js +56 -49
  315. package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
  316. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
  317. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
  318. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
  319. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
  320. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
  321. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
  322. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
  323. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
  324. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
  325. package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
  326. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
  327. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
  328. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
  329. package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
  330. package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
  331. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
  332. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
  333. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
  334. package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
  335. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
  336. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
  337. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
  338. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
  339. package/dist/ts/ts/ROCrateIO.d.ts +18 -4
  340. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  341. package/dist/ts/ts/ROCrateIO.js +49 -38
  342. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  343. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
  344. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
  345. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
  346. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  347. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
  348. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
  349. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  350. package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
  351. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +8 -8
  352. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  353. package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
  354. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  355. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  356. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  357. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
  358. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
  359. package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
  360. package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
  361. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
  362. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
  363. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  364. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
  365. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
  366. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
  367. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
  368. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +5 -5
  369. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
  370. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
  371. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
  372. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +4 -4
  373. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
  374. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +3 -3
  375. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
  376. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +5 -5
  377. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
  378. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +4 -4
  379. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
  380. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
  381. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +7 -7
  382. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  383. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
  384. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
  385. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +8 -8
  386. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  387. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
  388. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
  389. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
  390. package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
  391. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
  392. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
  393. package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
  394. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
  395. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
  396. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
  397. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
  398. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  399. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
  400. package/dist/ts/ts/Xlsx.js +3 -3
  401. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
  402. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  403. package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
  404. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
  405. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  406. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
  407. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
  408. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
  409. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
  410. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
  411. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
  412. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
  413. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
  414. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
  415. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
  416. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
  417. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
  418. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
  419. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
  420. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
  421. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
  422. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
  423. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
  424. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
  425. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
  426. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
  427. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
  428. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
  429. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
  430. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
  431. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
  432. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
  433. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
  434. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
  435. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
  436. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
  437. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
  438. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
  439. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
  440. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
  441. package/package.json +5 -4
  442. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
  443. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
  444. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
  445. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
  446. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
  447. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
  448. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
  449. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
  450. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
  451. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
  452. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
  453. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
@@ -0,0 +1,857 @@
1
+ import { BlockScalarStyle, YamlNode_$reflection } from './Model.fs.js';
2
+ import { length, forAll2, isEmpty, FSharpList__get_Head, FSharpList__get_Tail, map, reverse } from '../../../node_modules/@fable-org/fable-library-ts/List.js';
3
+ import { equals, int32ToString, getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-ts/Util.js';
4
+ import { YamlTagModule_identifier } from './Tag.fs.js';
5
+ import { item } from '../../../node_modules/@fable-org/fable-library-ts/Array.js';
6
+ import { replicate, replace, join } from '../../../node_modules/@fable-org/fable-library-ts/String.js';
7
+ import { StringBuilder_$ctor, StringBuilder__Append_Z721C83C5, StringBuilder__Append_244C7CD6 } from '../../../node_modules/@fable-org/fable-library-ts/System.Text.js';
8
+ import { toString, Union } from '../../../node_modules/@fable-org/fable-library-ts/Types.js';
9
+ import { union_type, int32_type, string_type } from '../../../node_modules/@fable-org/fable-library-ts/Reflection.js';
10
+
11
+ function commentsEqual(a, b) {
12
+ let matchResult = void 0, x = void 0, y = void 0;
13
+ if (a != null) {
14
+ if (b != null) {
15
+ matchResult = 1;
16
+ x = a;
17
+ y = b;
18
+ } else {
19
+ matchResult = 2;
20
+ }
21
+ } else if (b == null) {
22
+ matchResult = 0;
23
+ } else {
24
+ matchResult = 2;
25
+ }
26
+ switch (matchResult) {
27
+ case 0:
28
+ return true;
29
+ case 1:
30
+ return x.Text === y.Text;
31
+ default:
32
+ return false;
33
+ }
34
+ }
35
+ function triviaEqual(a, b) {
36
+ let matchResult = void 0, x = void 0, y = void 0;
37
+ if (a.tag === /* BlankLine */
38
+ 1) {
39
+ if (b.tag === /* BlankLine */
40
+ 1) {
41
+ matchResult = 1;
42
+ } else {
43
+ matchResult = 2;
44
+ }
45
+ } else if (b.tag === /* FullLineComment */
46
+ 0) {
47
+ matchResult = 0;
48
+ x = a.fields[0];
49
+ y = b.fields[0];
50
+ } else {
51
+ matchResult = 2;
52
+ }
53
+ switch (matchResult) {
54
+ case 0:
55
+ return x.Text === y.Text;
56
+ case 1:
57
+ return true;
58
+ default:
59
+ return false;
60
+ }
61
+ }
62
+ function triviaListEqual(a, b) {
63
+ if (length(a) === length(b)) {
64
+ return forAll2(triviaEqual, a, b);
65
+ } else {
66
+ return false;
67
+ }
68
+ }
69
+ function separationEqual(a, b) {
70
+ let matchResult = void 0, x = void 0, y = void 0;
71
+ if (a.tag === /* NewLine */
72
+ 1) {
73
+ if (b.tag === /* NewLine */
74
+ 1) {
75
+ matchResult = 1;
76
+ x = a.fields[0];
77
+ y = b.fields[0];
78
+ } else {
79
+ matchResult = 2;
80
+ }
81
+ } else if (b.tag === /* Inline */
82
+ 0) {
83
+ matchResult = 0;
84
+ } else {
85
+ matchResult = 2;
86
+ }
87
+ switch (matchResult) {
88
+ case 0:
89
+ return true;
90
+ case 1:
91
+ if (commentsEqual(x.Comment, y.Comment)) {
92
+ return triviaListEqual(x.Following, y.Following);
93
+ } else {
94
+ return false;
95
+ }
96
+ default:
97
+ return false;
98
+ }
99
+ }
100
+ function separationOptionEqual(a, b) {
101
+ let matchResult = void 0, x = void 0, y = void 0;
102
+ if (a != null) {
103
+ if (b != null) {
104
+ matchResult = 1;
105
+ x = a;
106
+ y = b;
107
+ } else {
108
+ matchResult = 2;
109
+ }
110
+ } else if (b == null) {
111
+ matchResult = 0;
112
+ } else {
113
+ matchResult = 2;
114
+ }
115
+ switch (matchResult) {
116
+ case 0:
117
+ return true;
118
+ case 1:
119
+ return separationEqual(x, y);
120
+ default:
121
+ return false;
122
+ }
123
+ }
124
+ function propertiesEqual(a, b) {
125
+ if (equals(a.Anchor, b.Anchor)) {
126
+ const matchValue = a.Tag;
127
+ const matchValue_1 = b.Tag;
128
+ let matchResult = void 0, x = void 0, y = void 0;
129
+ if (matchValue != null) {
130
+ if (matchValue_1 != null) {
131
+ matchResult = 1;
132
+ x = matchValue;
133
+ y = matchValue_1;
134
+ } else {
135
+ matchResult = 2;
136
+ }
137
+ } else if (matchValue_1 == null) {
138
+ matchResult = 0;
139
+ } else {
140
+ matchResult = 2;
141
+ }
142
+ switch (matchResult) {
143
+ case 0:
144
+ return true;
145
+ case 1:
146
+ return YamlTagModule_identifier(x) === YamlTagModule_identifier(y);
147
+ default:
148
+ return false;
149
+ }
150
+ } else {
151
+ return false;
152
+ }
153
+ }
154
+ function placementEqual(a, b) {
155
+ if (equals(a.Property, b.Property)) {
156
+ return separationEqual(a.After, b.After);
157
+ } else {
158
+ return false;
159
+ }
160
+ }
161
+ function scalarEqual(a, b) {
162
+ if (a.Value === b.Value && equals(a.Style, b.Style) && commentsEqual(a.HeaderComment, b.HeaderComment)) {
163
+ return equals(a.Layout, b.Layout);
164
+ } else {
165
+ return false;
166
+ }
167
+ }
168
+ function collectionEqual(a, b) {
169
+ if (equals(a.Style, b.Style) && commentsEqual(a.OpeningComment, b.OpeningComment) && triviaListEqual(a.End, b.End)) {
170
+ return length(a.Items) === length(b.Items);
171
+ } else {
172
+ return false;
173
+ }
174
+ }
175
+ function entryEqual(a, b) {
176
+ if (triviaListEqual(a.Before, b.Before) && separationOptionEqual(a.Question, b.Question) && triviaListEqual(a.BeforeColon, b.BeforeColon)) {
177
+ return separationOptionEqual(a.Colon, b.Colon);
178
+ } else {
179
+ return false;
180
+ }
181
+ }
182
+ function itemEqual(a, b) {
183
+ if (triviaListEqual(a.Before, b.Before)) {
184
+ return separationOptionEqual(a.Dash, b.Dash);
185
+ } else {
186
+ return false;
187
+ }
188
+ }
189
+ function nodesEqualIgnoringSpans(left, right) {
190
+ const pending = [];
191
+ void pending.push([left, right]);
192
+ let equal = true;
193
+ while (equal && pending.length > 0) {
194
+ const last = pending.length - 1 | 0;
195
+ const patternInput = item(last, pending);
196
+ const b = patternInput[1];
197
+ const a = patternInput[0];
198
+ pending.splice(last, 1);
199
+ if (!(propertiesEqual(a.Properties, b.Properties) && length(a.PropertyLayout) === length(b.PropertyLayout) && forAll2(placementEqual, a.PropertyLayout, b.PropertyLayout) && commentsEqual(a.TrailingComment, b.TrailingComment))) {
200
+ equal = false;
201
+ } else {
202
+ const matchValue = a.Kind;
203
+ const matchValue_1 = b.Kind;
204
+ let matchResult = void 0, x = void 0, y = void 0, x_1 = void 0, y_1 = void 0, x_2 = void 0, y_2 = void 0, x_3 = void 0, y_3 = void 0;
205
+ switch (matchValue.tag) {
206
+ case /* Alias */
207
+ 3: {
208
+ if (matchValue_1.tag === /* Alias */
209
+ 3) {
210
+ matchResult = 1;
211
+ x_1 = matchValue.fields[0];
212
+ y_1 = matchValue_1.fields[0];
213
+ } else {
214
+ matchResult = 4;
215
+ }
216
+ break;
217
+ }
218
+ case /* Mapping */
219
+ 1: {
220
+ if (matchValue_1.tag === /* Mapping */
221
+ 1) {
222
+ matchResult = 2;
223
+ x_2 = matchValue.fields[0];
224
+ y_2 = matchValue_1.fields[0];
225
+ } else {
226
+ matchResult = 4;
227
+ }
228
+ break;
229
+ }
230
+ case /* Sequence */
231
+ 2: {
232
+ if (matchValue_1.tag === /* Sequence */
233
+ 2) {
234
+ matchResult = 3;
235
+ x_3 = matchValue.fields[0];
236
+ y_3 = matchValue_1.fields[0];
237
+ } else {
238
+ matchResult = 4;
239
+ }
240
+ break;
241
+ }
242
+ default:
243
+ if (matchValue_1.tag === /* Scalar */
244
+ 0) {
245
+ matchResult = 0;
246
+ x = matchValue.fields[0];
247
+ y = matchValue_1.fields[0];
248
+ } else {
249
+ matchResult = 4;
250
+ }
251
+ }
252
+ switch (matchResult) {
253
+ case 0: {
254
+ if (!scalarEqual(x, y)) {
255
+ equal = false;
256
+ }
257
+ break;
258
+ }
259
+ case 1: {
260
+ if (x_1 !== y_1) {
261
+ equal = false;
262
+ }
263
+ break;
264
+ }
265
+ case 2: {
266
+ if (!collectionEqual(x_2, y_2)) {
267
+ equal = false;
268
+ } else {
269
+ let xs = x_2.Items;
270
+ let ys = y_2.Items;
271
+ while (equal && !isEmpty(xs)) {
272
+ const ex = FSharpList__get_Head(xs);
273
+ const ey = FSharpList__get_Head(ys);
274
+ if (!entryEqual(ex, ey)) {
275
+ equal = false;
276
+ } else {
277
+ void pending.push([ex.Value, ey.Value]);
278
+ void pending.push([ex.Key, ey.Key]);
279
+ }
280
+ xs = FSharpList__get_Tail(xs);
281
+ ys = FSharpList__get_Tail(ys);
282
+ }
283
+ }
284
+ break;
285
+ }
286
+ case 3: {
287
+ if (!collectionEqual(x_3, y_3)) {
288
+ equal = false;
289
+ } else {
290
+ let xs_1 = x_3.Items;
291
+ let ys_1 = y_3.Items;
292
+ while (equal && !isEmpty(xs_1)) {
293
+ const ix = FSharpList__get_Head(xs_1);
294
+ const iy = FSharpList__get_Head(ys_1);
295
+ if (!itemEqual(ix, iy)) {
296
+ equal = false;
297
+ } else {
298
+ void pending.push([ix.Node, iy.Node]);
299
+ }
300
+ xs_1 = FSharpList__get_Tail(xs_1);
301
+ ys_1 = FSharpList__get_Tail(ys_1);
302
+ }
303
+ }
304
+ break;
305
+ }
306
+ case 4: {
307
+ equal = false;
308
+ break;
309
+ }
310
+ }
311
+ }
312
+ }
313
+ return equal;
314
+ }
315
+ function markerEqual(a, b) {
316
+ let matchResult = void 0, x = void 0, y = void 0;
317
+ if (a != null) {
318
+ if (b != null) {
319
+ matchResult = 1;
320
+ x = a;
321
+ y = b;
322
+ } else {
323
+ matchResult = 2;
324
+ }
325
+ } else if (b == null) {
326
+ matchResult = 0;
327
+ } else {
328
+ matchResult = 2;
329
+ }
330
+ switch (matchResult) {
331
+ case 0:
332
+ return true;
333
+ case 1:
334
+ return commentsEqual(x.TrailingComment, y.TrailingComment);
335
+ default:
336
+ return false;
337
+ }
338
+ }
339
+ function preludeItemEqual(a, b) {
340
+ let matchResult = void 0, x = void 0, y = void 0, x_1 = void 0, y_1 = void 0;
341
+ if (a.tag === /* PreludeTrivia */
342
+ 1) {
343
+ if (b.tag === /* PreludeTrivia */
344
+ 1) {
345
+ matchResult = 1;
346
+ x_1 = a.fields[0];
347
+ y_1 = b.fields[0];
348
+ } else {
349
+ matchResult = 2;
350
+ }
351
+ } else if (b.tag === /* Directive */
352
+ 0) {
353
+ matchResult = 0;
354
+ x = a.fields[0];
355
+ y = b.fields[0];
356
+ } else {
357
+ matchResult = 2;
358
+ }
359
+ switch (matchResult) {
360
+ case 0:
361
+ if (equals(x.Kind, y.Kind)) {
362
+ return commentsEqual(x.TrailingComment, y.TrailingComment);
363
+ } else {
364
+ return false;
365
+ }
366
+ case 1:
367
+ return triviaEqual(x_1, y_1);
368
+ default:
369
+ return false;
370
+ }
371
+ }
372
+ function documentsEqualIgnoringSpans(left, right) {
373
+ if (length(left.Prelude) === length(right.Prelude) && forAll2(preludeItemEqual, left.Prelude, right.Prelude) && markerEqual(left.StartMarker, right.StartMarker) && triviaListEqual(left.BeforeRoot, right.BeforeRoot) && triviaListEqual(left.AfterRoot, right.AfterRoot) && markerEqual(left.EndMarker, right.EndMarker) && triviaListEqual(left.AfterEndMarker, right.AfterEndMarker)) {
374
+ return nodesEqualIgnoringSpans(left.Root, right.Root);
375
+ } else {
376
+ return false;
377
+ }
378
+ }
379
+ function partEqual(a, b) {
380
+ let matchResult = void 0, x = void 0, y = void 0, x_1 = void 0, y_1 = void 0, x_2 = void 0, y_2 = void 0;
381
+ switch (a.tag) {
382
+ case /* Trivia */
383
+ 1: {
384
+ if (b.tag === /* Trivia */
385
+ 1) {
386
+ matchResult = 1;
387
+ x_1 = a.fields[0];
388
+ y_1 = b.fields[0];
389
+ } else {
390
+ matchResult = 3;
391
+ }
392
+ break;
393
+ }
394
+ case /* ExtraEndMarker */
395
+ 2: {
396
+ if (b.tag === /* ExtraEndMarker */
397
+ 2) {
398
+ matchResult = 2;
399
+ x_2 = a.fields[0];
400
+ y_2 = b.fields[0];
401
+ } else {
402
+ matchResult = 3;
403
+ }
404
+ break;
405
+ }
406
+ default:
407
+ if (b.tag === /* Document */
408
+ 0) {
409
+ matchResult = 0;
410
+ x = a.fields[0];
411
+ y = b.fields[0];
412
+ } else {
413
+ matchResult = 3;
414
+ }
415
+ }
416
+ switch (matchResult) {
417
+ case 0:
418
+ return documentsEqualIgnoringSpans(x, y);
419
+ case 1:
420
+ return triviaEqual(x_1, y_1);
421
+ case 2:
422
+ return markerEqual(x_2, y_2);
423
+ default:
424
+ return false;
425
+ }
426
+ }
427
+ function streamsEqualIgnoringSpans(left, right) {
428
+ if (length(left.Parts) === length(right.Parts)) {
429
+ return forAll2(partEqual, left.Parts, right.Parts);
430
+ } else {
431
+ return false;
432
+ }
433
+ }
434
+ const maxIndentedDepth = 24;
435
+ function indent(depth) {
436
+ if (depth <= maxIndentedDepth) {
437
+ return replicate(2 * depth, " ");
438
+ } else {
439
+ return replicate(2 * maxIndentedDepth, " ") + "[" + int32ToString(depth) + "] ";
440
+ }
441
+ }
442
+ function escape(text) {
443
+ return replace(replace(replace(replace(replace(text, "\\", "\\\\"), '"', '\\"'), "\n", "\\n"), "\r", "\\r"), " ", "\\t");
444
+ }
445
+ function quoted(text) {
446
+ return '"' + escape(text) + '"';
447
+ }
448
+ function showComment(comment) {
449
+ return "#" + quoted(comment.Text);
450
+ }
451
+ function showTrivia(trivia) {
452
+ if (trivia.tag === /* BlankLine */
453
+ 1) {
454
+ return "blank";
455
+ } else {
456
+ return showComment(trivia.fields[0]);
457
+ }
458
+ }
459
+ function showTriviaList(items) {
460
+ return "[" + join("; ", map(showTrivia, items)) + "]";
461
+ }
462
+ function showBreaks(layout) {
463
+ return "[" + join("; ", map((boundary) => {
464
+ const matchValue = boundary.Kind;
465
+ if (matchValue.tag === /* EscapedBreak */
466
+ 1) {
467
+ if (matchValue.fields[0] === 0) {
468
+ return "e@" + int32ToString(boundary.At);
469
+ } else {
470
+ const lines_1 = matchValue.fields[0] | 0;
471
+ return "e" + int32ToString(lines_1) + "@" + int32ToString(boundary.At);
472
+ }
473
+ } else if (matchValue.fields[0] === 0) {
474
+ return "f@" + int32ToString(boundary.At);
475
+ } else {
476
+ const lines = matchValue.fields[0] | 0;
477
+ return "f" + int32ToString(lines) + "@" + int32ToString(boundary.At);
478
+ }
479
+ }, layout.Boundaries)) + "]";
480
+ }
481
+ function showSeparation(separation) {
482
+ let matchValue = void 0;
483
+ if (separation.tag === /* NewLine */
484
+ 1) {
485
+ const lineBreak = separation.fields[0];
486
+ return "newline(" + (matchValue = lineBreak.Comment, matchValue == null ? "" : showComment(matchValue) + " ") + showTriviaList(lineBreak.Following) + ")";
487
+ } else {
488
+ return "inline";
489
+ }
490
+ }
491
+ function showTag(tag) {
492
+ if (tag.tag === /* Named */
493
+ 1) {
494
+ return escape(YamlTagModule_identifier(tag));
495
+ } else {
496
+ return "!";
497
+ }
498
+ }
499
+ function showStyle(style) {
500
+ switch (style.tag) {
501
+ case /* SingleQuoted */
502
+ 1:
503
+ return "single";
504
+ case /* DoubleQuoted */
505
+ 2:
506
+ return "double";
507
+ case /* Block */
508
+ 3: {
509
+ const indentation = style.fields[2];
510
+ const chomping = style.fields[1];
511
+ return "block(" + (equals(style.fields[0], BlockScalarStyle.Literal) ? "|" : ">") + (indentation == null ? "" : int32ToString(indentation)) + (chomping.tag === /* Clip */
512
+ 1 ? "" : chomping.tag === /* Keep */
513
+ 2 ? "+" : "-") + ")";
514
+ }
515
+ default:
516
+ return "plain";
517
+ }
518
+ }
519
+ function showCollectionStyle(style) {
520
+ if (style.tag === /* Flow */
521
+ 1) {
522
+ return "flow";
523
+ } else {
524
+ return "block";
525
+ }
526
+ }
527
+ function showLayout(placement) {
528
+ return (placement.Property.tag === /* Anchor */
529
+ 1 ? "anchor" : "tag") + ":" + showSeparation(placement.After);
530
+ }
531
+ function nodeLine(role, node) {
532
+ const sb = StringBuilder_$ctor();
533
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, role), ": ");
534
+ const matchValue = node.Kind;
535
+ switch (matchValue.tag) {
536
+ case /* Mapping */
537
+ 1: {
538
+ const collection = matchValue.fields[0];
539
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, "mapping "), showCollectionStyle(collection.Style));
540
+ break;
541
+ }
542
+ case /* Sequence */
543
+ 2: {
544
+ const collection_1 = matchValue.fields[0];
545
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, "sequence "), showCollectionStyle(collection_1.Style));
546
+ break;
547
+ }
548
+ case /* Alias */
549
+ 3: {
550
+ const name = matchValue.fields[0];
551
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, "alias *"), escape(name));
552
+ break;
553
+ }
554
+ default: {
555
+ const scalar = matchValue.fields[0];
556
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_244C7CD6(StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, "scalar "), showStyle(scalar.Style)), " "), quoted(scalar.Value));
557
+ }
558
+ }
559
+ const matchValue_1 = node.Properties.Tag;
560
+ if (matchValue_1 == null) {
561
+ } else {
562
+ const tag = matchValue_1;
563
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " tag="), showTag(tag));
564
+ }
565
+ const matchValue_2 = node.Properties.Anchor;
566
+ if (matchValue_2 == null) {
567
+ } else {
568
+ const anchor = matchValue_2;
569
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " anchor=&"), escape(anchor));
570
+ }
571
+ if (!isEmpty(node.PropertyLayout)) {
572
+ StringBuilder__Append_244C7CD6(StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " layout=["), join("; ", map(showLayout, node.PropertyLayout))), "]");
573
+ }
574
+ const matchValue_3 = node.Kind;
575
+ switch (matchValue_3.tag) {
576
+ case /* Mapping */
577
+ 1: {
578
+ const matchValue_6 = matchValue_3.fields[0].OpeningComment;
579
+ if (matchValue_6 == null) {
580
+ } else {
581
+ const comment_1 = matchValue_6;
582
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " opening="), showComment(comment_1));
583
+ }
584
+ break;
585
+ }
586
+ case /* Sequence */
587
+ 2: {
588
+ const matchValue_7 = matchValue_3.fields[0].OpeningComment;
589
+ if (matchValue_7 == null) {
590
+ } else {
591
+ const comment_2 = matchValue_7;
592
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " opening="), showComment(comment_2));
593
+ }
594
+ break;
595
+ }
596
+ case /* Alias */
597
+ 3: {
598
+ break;
599
+ }
600
+ default: {
601
+ const scalar_1 = matchValue_3.fields[0];
602
+ const matchValue_4 = scalar_1.Layout;
603
+ if (matchValue_4 == null) {
604
+ } else {
605
+ const breaks = matchValue_4;
606
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " breaks="), showBreaks(breaks));
607
+ }
608
+ const matchValue_5 = scalar_1.HeaderComment;
609
+ if (matchValue_5 == null) {
610
+ } else {
611
+ const comment = matchValue_5;
612
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " header="), showComment(comment));
613
+ }
614
+ }
615
+ }
616
+ const matchValue_8 = node.TrailingComment;
617
+ if (matchValue_8 == null) {
618
+ } else {
619
+ const comment_3 = matchValue_8;
620
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " comment="), showComment(comment_3));
621
+ }
622
+ return toString(sb);
623
+ }
624
+ function entryLine(entry) {
625
+ const sb = StringBuilder_$ctor();
626
+ StringBuilder__Append_Z721C83C5(sb, "entry");
627
+ if (!isEmpty(entry.Before)) {
628
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " before="), showTriviaList(entry.Before));
629
+ }
630
+ const matchValue = entry.Question;
631
+ if (matchValue == null) {
632
+ } else {
633
+ const separation = matchValue;
634
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " question="), showSeparation(separation));
635
+ }
636
+ if (!isEmpty(entry.BeforeColon)) {
637
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " before-colon="), showTriviaList(entry.BeforeColon));
638
+ }
639
+ const matchValue_1 = entry.Colon;
640
+ if (matchValue_1 == null) {
641
+ StringBuilder__Append_Z721C83C5(sb, " colon=omitted");
642
+ } else if (matchValue_1.tag === /* Inline */
643
+ 0) {
644
+ } else {
645
+ const separation_1 = matchValue_1;
646
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " colon="), showSeparation(separation_1));
647
+ }
648
+ return toString(sb);
649
+ }
650
+ function itemLine(item) {
651
+ const sb = StringBuilder_$ctor();
652
+ StringBuilder__Append_Z721C83C5(sb, "item");
653
+ if (!isEmpty(item.Before)) {
654
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " before="), showTriviaList(item.Before));
655
+ }
656
+ const matchValue = item.Dash;
657
+ if (matchValue == null) {
658
+ } else if (matchValue.tag === /* Inline */
659
+ 0) {
660
+ } else {
661
+ const separation = matchValue;
662
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(sb, " dash="), showSeparation(separation));
663
+ }
664
+ return toString(sb);
665
+ }
666
+ function Work_Line(depth, text) {
667
+ return new Work(0, [depth, text]);
668
+ }
669
+ function Work_Node$(depth, role, node) {
670
+ return new Work(1, [depth, role, node]);
671
+ }
672
+ class Work extends Union {
673
+ constructor(tag, fields) {
674
+ super();
675
+ this.tag = tag;
676
+ this.fields = fields;
677
+ }
678
+ cases() {
679
+ return ["Line", "Node"];
680
+ }
681
+ }
682
+ function Work_$reflection() {
683
+ return union_type("YAMLicious.NodeComparison.Work", [], Work, () => [[["depth", int32_type], ["text", string_type]], [["depth", int32_type], ["role", string_type], ["node", YamlNode_$reflection()]]]);
684
+ }
685
+ function render(output, startDepth, role, node) {
686
+ const stack = [];
687
+ void stack.push(Work_Node$(startDepth, role, node));
688
+ while (stack.length > 0) {
689
+ const last = stack.length - 1 | 0;
690
+ const work = item(last, stack);
691
+ stack.splice(last, 1);
692
+ if (work.tag === /* Node */
693
+ 1) {
694
+ const nodeRole = work.fields[1];
695
+ const depth_1 = work.fields[0] | 0;
696
+ const current = work.fields[2];
697
+ StringBuilder__Append_244C7CD6(StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(output, indent(depth_1)), nodeLine(nodeRole, current)), "\n");
698
+ const matchValue = current.Kind;
699
+ switch (matchValue.tag) {
700
+ case /* Sequence */
701
+ 2: {
702
+ const collection_1 = matchValue.fields[0];
703
+ if (!isEmpty(collection_1.End)) {
704
+ void stack.push(Work_Line(depth_1 + 1, "end=" + showTriviaList(collection_1.End)));
705
+ }
706
+ const enumerator_1 = getEnumerator(reverse(collection_1.Items));
707
+ try {
708
+ while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
709
+ const item = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
710
+ void stack.push(Work_Node$(depth_1 + 2, "node", item.Node));
711
+ void stack.push(Work_Line(depth_1 + 1, itemLine(item)));
712
+ }
713
+ } finally {
714
+ disposeSafe(enumerator_1);
715
+ }
716
+ break;
717
+ }
718
+ case /* Scalar */
719
+ 0:
720
+ case /* Alias */
721
+ 3: {
722
+ break;
723
+ }
724
+ default: {
725
+ const collection = matchValue.fields[0];
726
+ if (!isEmpty(collection.End)) {
727
+ void stack.push(Work_Line(depth_1 + 1, "end=" + showTriviaList(collection.End)));
728
+ }
729
+ const enumerator = getEnumerator(reverse(collection.Items));
730
+ try {
731
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
732
+ const entry = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
733
+ void stack.push(Work_Node$(depth_1 + 2, "value", entry.Value));
734
+ void stack.push(Work_Node$(depth_1 + 2, "key", entry.Key));
735
+ void stack.push(Work_Line(depth_1 + 1, entryLine(entry)));
736
+ }
737
+ } finally {
738
+ disposeSafe(enumerator);
739
+ }
740
+ }
741
+ }
742
+ } else {
743
+ const text = work.fields[1];
744
+ StringBuilder__Append_244C7CD6(StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(output, indent(work.fields[0])), text), "\n");
745
+ }
746
+ }
747
+ }
748
+ function showNode(node) {
749
+ const output = StringBuilder_$ctor();
750
+ render(output, 0, "root", node);
751
+ return toString(output);
752
+ }
753
+ function showDirective(directive) {
754
+ let kind;
755
+ const matchValue = directive.Kind;
756
+ switch (matchValue.tag) {
757
+ case /* TagDirective */
758
+ 1: {
759
+ kind = "tag " + matchValue.fields[0] + " " + matchValue.fields[1];
760
+ break;
761
+ }
762
+ case /* ReservedDirective */
763
+ 2: {
764
+ kind = "reserved " + matchValue.fields[0] + " [" + join(" ", matchValue.fields[1]) + "]";
765
+ break;
766
+ }
767
+ default: {
768
+ const minor = matchValue.fields[1] | 0;
769
+ kind = "version " + int32ToString(matchValue.fields[0]) + "." + int32ToString(minor);
770
+ }
771
+ }
772
+ const matchValue_1 = directive.TrailingComment;
773
+ if (matchValue_1 == null) {
774
+ return kind;
775
+ } else {
776
+ return kind + " comment=" + showComment(matchValue_1);
777
+ }
778
+ }
779
+ function appendMarker(output, indentation, name, marker) {
780
+ if (marker != null) {
781
+ const m = marker;
782
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(output, indentation), name);
783
+ const matchValue = m.TrailingComment;
784
+ if (matchValue == null) {
785
+ } else {
786
+ const comment = matchValue;
787
+ StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(output, " comment="), showComment(comment));
788
+ }
789
+ StringBuilder__Append_244C7CD6(output, "\n");
790
+ }
791
+ }
792
+ function appendDocument(output, document$) {
793
+ StringBuilder__Append_Z721C83C5(output, "document\n");
794
+ const enumerator = getEnumerator(document$.Prelude);
795
+ try {
796
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
797
+ const item = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
798
+ if (item.tag === /* PreludeTrivia */
799
+ 1) {
800
+ const trivia = item.fields[0];
801
+ StringBuilder__Append_244C7CD6(StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(output, " prelude: "), showTrivia(trivia)), "\n");
802
+ } else {
803
+ const directive = item.fields[0];
804
+ StringBuilder__Append_244C7CD6(StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(output, " prelude: directive "), showDirective(directive)), "\n");
805
+ }
806
+ }
807
+ } finally {
808
+ disposeSafe(enumerator);
809
+ }
810
+ appendMarker(output, " ", "start-marker", document$.StartMarker);
811
+ if (!isEmpty(document$.BeforeRoot)) {
812
+ StringBuilder__Append_244C7CD6(StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(output, " before-root="), showTriviaList(document$.BeforeRoot)), "\n");
813
+ }
814
+ render(output, 1, "root", document$.Root);
815
+ if (!isEmpty(document$.AfterRoot)) {
816
+ StringBuilder__Append_244C7CD6(StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(output, " after-root="), showTriviaList(document$.AfterRoot)), "\n");
817
+ }
818
+ appendMarker(output, " ", "end-marker", document$.EndMarker);
819
+ if (!isEmpty(document$.AfterEndMarker)) {
820
+ StringBuilder__Append_244C7CD6(StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(output, " after-end-marker="), showTriviaList(document$.AfterEndMarker)), "\n");
821
+ }
822
+ }
823
+ function showDocument(document$) {
824
+ const output = StringBuilder_$ctor();
825
+ appendDocument(output, document$);
826
+ return toString(output);
827
+ }
828
+ function showStream(stream) {
829
+ const output = StringBuilder_$ctor();
830
+ StringBuilder__Append_Z721C83C5(output, "stream\n");
831
+ const enumerator = getEnumerator(stream.Parts);
832
+ try {
833
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
834
+ const part = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
835
+ switch (part.tag) {
836
+ case /* Trivia */
837
+ 1: {
838
+ const trivia = part.fields[0];
839
+ StringBuilder__Append_244C7CD6(StringBuilder__Append_Z721C83C5(StringBuilder__Append_Z721C83C5(output, "trivia: "), showTrivia(trivia)), "\n");
840
+ break;
841
+ }
842
+ case /* ExtraEndMarker */
843
+ 2: {
844
+ appendMarker(output, "", "extra-end-marker", part.fields[0]);
845
+ break;
846
+ }
847
+ default:
848
+ appendDocument(output, part.fields[0]);
849
+ }
850
+ }
851
+ } finally {
852
+ disposeSafe(enumerator);
853
+ }
854
+ return toString(output);
855
+ }
856
+
857
+ export { documentsEqualIgnoringSpans, nodesEqualIgnoringSpans, showDocument, showNode, showStream, streamsEqualIgnoringSpans };