@glutinum/cli 0.13.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/README.md +19 -1
  2. package/dist/Glutinum.Converter/Abbreviations.js +246 -0
  3. package/dist/Glutinum.Converter/FsharpAST.js +87 -28
  4. package/dist/Glutinum.Converter/Generate.js +55 -8
  5. package/dist/Glutinum.Converter/GlueAST.js +333 -34
  6. package/dist/Glutinum.Converter/Log.js +7 -8
  7. package/dist/Glutinum.Converter/Merge.js +683 -31
  8. package/dist/Glutinum.Converter/Packages.js +308 -0
  9. package/dist/Glutinum.Converter/Printer.js +323 -186
  10. package/dist/Glutinum.Converter/Read.js +279 -6
  11. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +13 -7
  12. package/dist/Glutinum.Converter/Reader/Declaration.js +102 -17
  13. package/dist/Glutinum.Converter/Reader/Documentation.js +168 -73
  14. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +7 -51
  15. package/dist/Glutinum.Converter/Reader/ExportAssignment.js +64 -15
  16. package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +165 -0
  17. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +30 -5
  18. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +122 -4
  19. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +83 -7
  20. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +8 -8
  21. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +11 -9
  22. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js +3 -2
  23. package/dist/Glutinum.Converter/Reader/Node.js +24 -10
  24. package/dist/Glutinum.Converter/Reader/Parameters.js +110 -7
  25. package/dist/Glutinum.Converter/Reader/Report.js +31 -12
  26. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +4 -3
  27. package/dist/Glutinum.Converter/Reader/TypeNode.js +1524 -253
  28. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +75 -20
  29. package/dist/Glutinum.Converter/Reader/TypeParameters.js +8 -5
  30. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +184 -50
  31. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +32 -13
  32. package/dist/Glutinum.Converter/Reader/Types.js +180 -0
  33. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +99 -43
  34. package/dist/Glutinum.Converter/Reader/Utils.js +1143 -55
  35. package/dist/Glutinum.Converter/Reader/VariableStatement.js +59 -14
  36. package/dist/Glutinum.Converter/Transform.js +8292 -1119
  37. package/dist/Glutinum.Converter/TypeScript.Extensions.js +3 -3
  38. package/dist/Glutinum.Converter/TypeScript.js +3 -3
  39. package/dist/Glutinum.Converter/Utils/Keywords.js +6 -6
  40. package/dist/Glutinum.Converter/Utils/List.js +3 -3
  41. package/dist/Glutinum.Converter/Utils/Naming.js +61 -12
  42. package/dist/Glutinum.Converter/Utils/String.js +7 -3
  43. package/dist/Program.js +230 -72
  44. package/dist/fable_modules/Fable.Promise.3.2.1/AsyncIterable.fs +89 -0
  45. package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/AsyncIterable.fs.js +29 -29
  46. package/dist/fable_modules/Fable.Promise.3.2.1/Fable.Promise.fableproj +25 -0
  47. package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/Promise.fs +842 -766
  48. package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/Promise.fs.js +26 -12
  49. package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/PromiseImpl.fs +31 -31
  50. package/dist/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.3.2.1}/PromiseImpl.fs.js +5 -5
  51. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Array.fs +235 -0
  52. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Array.fs.js +384 -0
  53. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AssemblyInfo.fs +4 -4
  54. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Async.fs +89 -9
  55. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Async.fs.js +13 -12
  56. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOption.fs +50 -4
  57. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOptionCE.fs +30 -39
  58. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOptionCE.fs.js +10 -10
  59. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResult.fs +52 -8
  60. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultCE.fs +26 -42
  61. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultCE.fs.js +3 -3
  62. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOption.fs +17 -5
  63. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncResultOption.fs.js +26 -0
  64. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOptionCE.fs +31 -33
  65. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOptionCE.fs.js +3 -3
  66. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidation.fs +1 -6
  67. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidationCE.fs +10 -18
  68. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidationCE.fs.js +3 -3
  69. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/FsToolkit.ErrorHandling.fableproj +69 -0
  70. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/List.fs +68 -10
  71. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/List.fs.js +47 -41
  72. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Nullness.fs +81 -0
  73. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Option.fs +133 -2
  74. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/OptionCE.fs +139 -0
  75. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/OptionCE.fs.js +48 -0
  76. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/OptionOp.fs +3 -3
  77. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResult.fs +88 -0
  78. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResult.fs.js +30 -0
  79. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResultCE.fs +200 -0
  80. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResultCE.fs.js +18 -0
  81. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidation.fs +34 -0
  82. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidationCE.fs +244 -0
  83. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidationCE.fs.js +18 -0
  84. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Result.fs +87 -0
  85. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Result.fs.js +8 -8
  86. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultCE.fs +8 -23
  87. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultCE.fs.js +5 -5
  88. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOption.fs +1 -1
  89. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOption.fs.js +10 -10
  90. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOptionCE.fs +7 -18
  91. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOptionCE.fs.js +3 -3
  92. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Seq.fs +503 -0
  93. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Seq.fs.js +295 -0
  94. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/Validation.fs +0 -5
  95. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValidationCE.fs +7 -13
  96. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValidationCE.fs.js +3 -3
  97. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValueOption.fs +1 -4
  98. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValueTaskValueOption.fs +102 -0
  99. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValueTaskValueOptionCE.fs +587 -0
  100. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValueTaskValueOptionOp.fs +10 -0
  101. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Debug/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +3 -3
  102. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/obj/Release/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.fs +3 -0
  103. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1 → FsToolkit.ErrorHandling.5.2.0/obj/Release/net9.0}/FsToolkit.ErrorHandling.AssemblyInfo.fs +4 -4
  104. package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Release/netstandard2.0/FsToolkit.ErrorHandling.AssemblyInfo.fs +4 -4
  105. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/obj/Release/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +20 -0
  106. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Array.js +192 -86
  107. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Async.js +58 -53
  108. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/AsyncBuilder.js +29 -8
  109. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/BigInt.js +71 -46
  110. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/BitConverter.js +2 -2
  111. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Boolean.js +4 -3
  112. package/dist/fable_modules/fable-library-js.5.17.2/CHANGELOG.md +348 -0
  113. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Char.js +64 -31
  114. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Choice.js +2 -2
  115. package/dist/fable_modules/fable-library-js.5.17.2/CollectionUtil.js +182 -0
  116. package/dist/fable_modules/fable-library-js.5.17.2/ConditionalWeakTable.js +21 -0
  117. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Date.js +197 -112
  118. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/DateOffset.js +46 -62
  119. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/DateOnly.js +6 -6
  120. package/dist/fable_modules/fable-library-js.5.17.2/DateOnlyTemporal.js +146 -0
  121. package/dist/fable_modules/fable-library-js.5.17.2/DateTimeFormat.js +523 -0
  122. package/dist/fable_modules/fable-library-js.5.17.2/DateTimeOffsetTemporal.js +283 -0
  123. package/dist/fable_modules/fable-library-js.5.17.2/DateTimeTemporal.js +243 -0
  124. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Decimal.js +39 -13
  125. package/dist/fable_modules/fable-library-js.5.17.2/Directory.js +11 -0
  126. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Double.js +10 -3
  127. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Encoding.js +20 -8
  128. package/dist/fable_modules/fable-library-js.5.17.2/Environment.js +3 -0
  129. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Event.js +10 -1
  130. package/dist/fable_modules/fable-library-js.5.17.2/FSharp.Collections.js +45 -0
  131. package/dist/fable_modules/fable-library-js.5.17.2/FSharp.Core.js +156 -0
  132. package/dist/fable_modules/fable-library-js.5.17.2/File.js +27 -0
  133. package/dist/fable_modules/fable-library-js.5.17.2/Global.js +29 -0
  134. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Guid.js +33 -12
  135. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Int32.js +17 -17
  136. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/List.js +170 -106
  137. package/dist/fable_modules/fable-library-js.5.17.2/Long.js +38 -0
  138. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MailboxProcessor.js +13 -6
  139. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Map.js +65 -61
  140. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MapUtil.js +22 -4
  141. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MutableMap.js +28 -16
  142. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/MutableSet.js +7 -7
  143. package/dist/fable_modules/fable-library-js.5.17.2/Native.js +14 -0
  144. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Numeric.js +44 -3
  145. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Observable.js +5 -3
  146. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Option.js +11 -20
  147. package/dist/fable_modules/fable-library-js.5.17.2/Path.js +31 -0
  148. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Random.js +22 -20
  149. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Range.js +12 -12
  150. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Reflection.js +50 -22
  151. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/RegExp.js +68 -30
  152. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Result.js +6 -6
  153. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Seq.js +229 -104
  154. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Seq2.js +1 -1
  155. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Set.js +153 -113
  156. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/String.js +238 -50
  157. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/System.Collections.Generic.js +30 -14
  158. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/System.Text.js +69 -31
  159. package/dist/fable_modules/fable-library-js.5.17.2/System.js +289 -0
  160. package/dist/fable_modules/fable-library-js.5.17.2/Task.js +27 -0
  161. package/dist/fable_modules/fable-library-js.5.17.2/TaskBuilder.js +72 -0
  162. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/TimeOnly.js +6 -6
  163. package/dist/fable_modules/fable-library-js.5.17.2/TimeOnlyTemporal.js +142 -0
  164. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/TimeSpan.js +18 -15
  165. package/dist/fable_modules/fable-library-js.5.17.2/TimeSpanTemporal.js +259 -0
  166. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Types.js +14 -24
  167. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Uri.js +44 -21
  168. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Util.js +49 -12
  169. package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/lib/big.js +14 -11
  170. package/dist/fable_modules/fable-library-js.5.17.2/package.json +24 -0
  171. package/dist/fable_modules/fable-library-js.5.17.2/quotation.js +682 -0
  172. package/package.json +4 -4
  173. package/src/Glutinum.Converter/js/bootstrap.js +109 -2
  174. package/src/Glutinum.Converter/js/host.js +144 -0
  175. package/src/Glutinum.Converter/js/npm.js +137 -0
  176. package/src/Glutinum.Converter/js/resolve.js +402 -0
  177. package/dist/Glutinum.Converter/FsharpAST.js.map +0 -1
  178. package/dist/Glutinum.Converter/Generate.js.map +0 -1
  179. package/dist/Glutinum.Converter/GlueAST.js.map +0 -1
  180. package/dist/Glutinum.Converter/Log.js.map +0 -1
  181. package/dist/Glutinum.Converter/Merge.js.map +0 -1
  182. package/dist/Glutinum.Converter/Printer.js.map +0 -1
  183. package/dist/Glutinum.Converter/Read.js.map +0 -1
  184. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +0 -1
  185. package/dist/Glutinum.Converter/Reader/Declaration.js.map +0 -1
  186. package/dist/Glutinum.Converter/Reader/Documentation.js.map +0 -1
  187. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +0 -1
  188. package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +0 -1
  189. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +0 -1
  190. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +0 -1
  191. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +0 -1
  192. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +0 -1
  193. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +0 -1
  194. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +0 -1
  195. package/dist/Glutinum.Converter/Reader/Node.js.map +0 -1
  196. package/dist/Glutinum.Converter/Reader/Parameters.js.map +0 -1
  197. package/dist/Glutinum.Converter/Reader/Report.js.map +0 -1
  198. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +0 -1
  199. package/dist/Glutinum.Converter/Reader/TypeNode.js.map +0 -1
  200. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +0 -1
  201. package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +0 -1
  202. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +0 -1
  203. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +0 -1
  204. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +0 -1
  205. package/dist/Glutinum.Converter/Reader/Utils.js.map +0 -1
  206. package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +0 -1
  207. package/dist/Glutinum.Converter/Transform.js.map +0 -1
  208. package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +0 -1
  209. package/dist/Glutinum.Converter/TypeScript.js.map +0 -1
  210. package/dist/Glutinum.Converter/Utils/Keywords.js.map +0 -1
  211. package/dist/Glutinum.Converter/Utils/List.js.map +0 -1
  212. package/dist/Glutinum.Converter/Utils/Naming.js.map +0 -1
  213. package/dist/Glutinum.Converter/Utils/String.js.map +0 -1
  214. package/dist/Program.js.map +0 -1
  215. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
  216. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +0 -1
  217. package/dist/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
  218. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +0 -1
  219. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
  220. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js.map +0 -1
  221. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js.map +0 -1
  222. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js.map +0 -1
  223. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js +0 -26
  224. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js.map +0 -1
  225. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js.map +0 -1
  226. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js.map +0 -1
  227. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/FsToolkit.ErrorHandling.fableproj +0 -51
  228. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js.map +0 -1
  229. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs +0 -186
  230. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js +0 -18
  231. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js.map +0 -1
  232. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js.map +0 -1
  233. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js.map +0 -1
  234. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js.map +0 -1
  235. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js.map +0 -1
  236. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs +0 -19
  237. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js +0 -31
  238. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js.map +0 -1
  239. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs +0 -22
  240. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js +0 -18
  241. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js.map +0 -1
  242. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js.map +0 -1
  243. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOptionCE.fs +0 -165
  244. package/dist/fable_modules/fable-library-js.4.14.0/Array.d.ts +0 -123
  245. package/dist/fable_modules/fable-library-js.4.14.0/Async.d.ts +0 -32
  246. package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.d.ts +0 -59
  247. package/dist/fable_modules/fable-library-js.4.14.0/BigInt.d.ts +0 -115
  248. package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.d.ts +0 -27
  249. package/dist/fable_modules/fable-library-js.4.14.0/Boolean.d.ts +0 -3
  250. package/dist/fable_modules/fable-library-js.4.14.0/CHANGELOG.md +0 -37
  251. package/dist/fable_modules/fable-library-js.4.14.0/Char.d.ts +0 -65
  252. package/dist/fable_modules/fable-library-js.4.14.0/Choice.d.ts +0 -121
  253. package/dist/fable_modules/fable-library-js.4.14.0/Date.d.ts +0 -70
  254. package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.d.ts +0 -63
  255. package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.d.ts +0 -18
  256. package/dist/fable_modules/fable-library-js.4.14.0/Decimal.d.ts +0 -45
  257. package/dist/fable_modules/fable-library-js.4.14.0/Double.d.ts +0 -11
  258. package/dist/fable_modules/fable-library-js.4.14.0/Encoding.d.ts +0 -12
  259. package/dist/fable_modules/fable-library-js.4.14.0/Event.d.ts +0 -31
  260. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.d.ts +0 -7
  261. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.js +0 -27
  262. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.d.ts +0 -12
  263. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.d.ts +0 -17
  264. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.js +0 -69
  265. package/dist/fable_modules/fable-library-js.4.14.0/Global.d.ts +0 -24
  266. package/dist/fable_modules/fable-library-js.4.14.0/Global.js +0 -8
  267. package/dist/fable_modules/fable-library-js.4.14.0/Guid.d.ts +0 -10
  268. package/dist/fable_modules/fable-library-js.4.14.0/Int32.d.ts +0 -28
  269. package/dist/fable_modules/fable-library-js.4.14.0/List.d.ts +0 -143
  270. package/dist/fable_modules/fable-library-js.4.14.0/Long.d.ts +0 -3
  271. package/dist/fable_modules/fable-library-js.4.14.0/Long.js +0 -46
  272. package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.d.ts +0 -25
  273. package/dist/fable_modules/fable-library-js.4.14.0/Map.d.ts +0 -178
  274. package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.d.ts +0 -10
  275. package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.d.ts +0 -52
  276. package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.d.ts +0 -39
  277. package/dist/fable_modules/fable-library-js.4.14.0/Native.d.ts +0 -2
  278. package/dist/fable_modules/fable-library-js.4.14.0/Native.js +0 -8
  279. package/dist/fable_modules/fable-library-js.4.14.0/Numeric.d.ts +0 -19
  280. package/dist/fable_modules/fable-library-js.4.14.0/Observable.d.ts +0 -32
  281. package/dist/fable_modules/fable-library-js.4.14.0/Option.d.ts +0 -28
  282. package/dist/fable_modules/fable-library-js.4.14.0/Random.d.ts +0 -37
  283. package/dist/fable_modules/fable-library-js.4.14.0/Range.d.ts +0 -12
  284. package/dist/fable_modules/fable-library-js.4.14.0/Reflection.d.ts +0 -119
  285. package/dist/fable_modules/fable-library-js.4.14.0/RegExp.d.ts +0 -10
  286. package/dist/fable_modules/fable-library-js.4.14.0/Result.d.ts +0 -37
  287. package/dist/fable_modules/fable-library-js.4.14.0/Seq.d.ts +0 -165
  288. package/dist/fable_modules/fable-library-js.4.14.0/Seq2.d.ts +0 -18
  289. package/dist/fable_modules/fable-library-js.4.14.0/Set.d.ts +0 -190
  290. package/dist/fable_modules/fable-library-js.4.14.0/String.d.ts +0 -50
  291. package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.d.ts +0 -79
  292. package/dist/fable_modules/fable-library-js.4.14.0/System.Text.d.ts +0 -38
  293. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.d.ts +0 -5
  294. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.js +0 -5
  295. package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.d.ts +0 -15
  296. package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.d.ts +0 -34
  297. package/dist/fable_modules/fable-library-js.4.14.0/Timer.d.ts +0 -19
  298. package/dist/fable_modules/fable-library-js.4.14.0/Types.d.ts +0 -58
  299. package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.d.ts +0 -2
  300. package/dist/fable_modules/fable-library-js.4.14.0/Uri.d.ts +0 -29
  301. package/dist/fable_modules/fable-library-js.4.14.0/Util.d.ts +0 -207
  302. package/dist/fable_modules/fable-library-js.4.14.0/lib/big.d.ts +0 -5
  303. package/dist/fable_modules/fable-library-js.4.14.0/package.json +0 -24
  304. package/dist/fable_modules/project_cracked.json +0 -1
  305. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncOptionOp.fs +0 -0
  306. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOp.fs +0 -0
  307. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncResultOptionOp.fs +0 -0
  308. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/AsyncValidationOp.fs +0 -0
  309. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOp.fs +0 -0
  310. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ResultOptionOp.fs +0 -0
  311. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/ValidationOp.fs +0 -0
  312. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Debug/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -0
  313. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  314. /package/dist/fable_modules/{FsToolkit.ErrorHandling.4.16.0 → FsToolkit.ErrorHandling.5.2.0}/obj/Release/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -0
  315. /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/FSharp.Core.CompilerServices.js +0 -0
  316. /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/README.md +0 -0
  317. /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Timer.js +0 -0
  318. /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/Unicode.13.0.0.js +0 -0
  319. /package/dist/fable_modules/{fable-library-js.4.14.0 → fable-library-js.5.17.2}/big.d.ts +0 -0
@@ -1,11 +1,11 @@
1
1
  import { record_type, bool_type, list_type, option_type, class_type } from "./Reflection.js";
2
- import { some, value as value_3 } from "./Option.js";
3
- import { structuralHash, toIterator, disposeSafe, getEnumerator, isArrayLike } from "./Util.js";
2
+ import { some, value as value_2 } from "./Option.js";
3
+ import { structuralHash, toIterator, disposeSafe, getEnumerator, isArrayLike, Exception } from "./Util.js";
4
4
  import { toString, Record } from "./Types.js";
5
5
  import { fold as fold_2, cons, singleton as singleton_1, empty as empty_1, ofArrayWithTail, tail, head, isEmpty as isEmpty_1, FSharpList } from "./List.js";
6
6
  import { fold as fold_1, fill, setItem } from "./Array.js";
7
- import { join } from "./String.js";
8
- import { exists as exists_1, cache, forAll as forAll_1, fold as fold_3, reduce, iterate as iterate_1, map as map_1 } from "./Seq.js";
7
+ import { NotSupportedException_$ctor_Z721C83C5 } from "./System.js";
8
+ import { skip, truncate, iterateIndexed, exists as exists_1, forAll as forAll_1, fold as fold_3, reduce, iterate as iterate_1, map as map_1 } from "./Seq.js";
9
9
  import { HashSet__get_Comparer, HashSet_$ctor_Z6150332D, HashSet } from "./MutableSet.js";
10
10
  export class SetTreeLeaf$1 {
11
11
  constructor(k) {
@@ -42,16 +42,16 @@ export function SetTreeNode$1__get_Right(_) {
42
42
  return _.right;
43
43
  }
44
44
  export function SetTreeNode$1__get_Height(_) {
45
- return _.h;
45
+ return _.h | 0;
46
46
  }
47
47
  export function SetTreeModule_empty() {
48
- return void 0;
48
+ return undefined;
49
49
  }
50
50
  export function SetTreeModule_countAux(t_mut, acc_mut) {
51
51
  SetTreeModule_countAux: while (true) {
52
52
  const t = t_mut, acc = acc_mut;
53
53
  if (t != null) {
54
- const t2 = value_3(t);
54
+ const t2 = value_2(t);
55
55
  if (t2 instanceof SetTreeNode$1) {
56
56
  const tn = t2;
57
57
  t_mut = SetTreeNode$1__get_Left(tn);
@@ -69,14 +69,14 @@ export function SetTreeModule_countAux(t_mut, acc_mut) {
69
69
  }
70
70
  }
71
71
  export function SetTreeModule_count(s) {
72
- return SetTreeModule_countAux(s, 0);
72
+ return SetTreeModule_countAux(s, 0) | 0;
73
73
  }
74
74
  export function SetTreeModule_mk(l, k, r) {
75
- let tn, tn_1;
75
+ let tn = undefined, tn_1 = undefined;
76
76
  let hl;
77
77
  const t = l;
78
78
  if (t != null) {
79
- const t2 = value_3(t);
79
+ const t2 = value_2(t);
80
80
  hl = ((t2 instanceof SetTreeNode$1) ? ((tn = t2, SetTreeNode$1__get_Height(tn))) : 1);
81
81
  }
82
82
  else {
@@ -85,7 +85,7 @@ export function SetTreeModule_mk(l, k, r) {
85
85
  let hr;
86
86
  const t_1 = r;
87
87
  if (t_1 != null) {
88
- const t2_1 = value_3(t_1);
88
+ const t2_1 = value_2(t_1);
89
89
  hr = ((t2_1 instanceof SetTreeNode$1) ? ((tn_1 = t2_1, SetTreeNode$1__get_Height(tn_1))) : 1);
90
90
  }
91
91
  else {
@@ -100,11 +100,11 @@ export function SetTreeModule_mk(l, k, r) {
100
100
  }
101
101
  }
102
102
  export function SetTreeModule_rebalance(t1, v, t2) {
103
- let tn, tn_1, t_2, t2_3, tn_2, t_3, t2_4, tn_3;
103
+ let tn = undefined, tn_1 = undefined, t_2 = undefined, t2_3 = undefined, tn_2 = undefined, t_3 = undefined, t2_4 = undefined, tn_3 = undefined;
104
104
  let t1h;
105
105
  const t = t1;
106
106
  if (t != null) {
107
- const t2_1 = value_3(t);
107
+ const t2_1 = value_2(t);
108
108
  t1h = ((t2_1 instanceof SetTreeNode$1) ? ((tn = t2_1, SetTreeNode$1__get_Height(tn))) : 1);
109
109
  }
110
110
  else {
@@ -113,24 +113,24 @@ export function SetTreeModule_rebalance(t1, v, t2) {
113
113
  let t2h;
114
114
  const t_1 = t2;
115
115
  if (t_1 != null) {
116
- const t2_2 = value_3(t_1);
116
+ const t2_2 = value_2(t_1);
117
117
  t2h = ((t2_2 instanceof SetTreeNode$1) ? ((tn_1 = t2_2, SetTreeNode$1__get_Height(tn_1))) : 1);
118
118
  }
119
119
  else {
120
120
  t2h = 0;
121
121
  }
122
122
  if (t2h > (t1h + 2)) {
123
- const matchValue = value_3(t2);
123
+ const matchValue = value_2(t2);
124
124
  if (matchValue instanceof SetTreeNode$1) {
125
125
  const t2$0027 = matchValue;
126
- if (((t_2 = SetTreeNode$1__get_Left(t2$0027), (t_2 != null) ? ((t2_3 = value_3(t_2), (t2_3 instanceof SetTreeNode$1) ? ((tn_2 = t2_3, SetTreeNode$1__get_Height(tn_2))) : 1)) : 0)) > (t1h + 1)) {
127
- const matchValue_1 = value_3(SetTreeNode$1__get_Left(t2$0027));
126
+ if (((t_2 = SetTreeNode$1__get_Left(t2$0027), (t_2 != null) ? ((t2_3 = value_2(t_2), (t2_3 instanceof SetTreeNode$1) ? ((tn_2 = t2_3, SetTreeNode$1__get_Height(tn_2))) : 1)) : 0)) > (t1h + 1)) {
127
+ const matchValue_1 = value_2(SetTreeNode$1__get_Left(t2$0027));
128
128
  if (matchValue_1 instanceof SetTreeNode$1) {
129
129
  const t2l = matchValue_1;
130
130
  return SetTreeModule_mk(SetTreeModule_mk(t1, v, SetTreeNode$1__get_Left(t2l)), SetTreeLeaf$1__get_Key(t2l), SetTreeModule_mk(SetTreeNode$1__get_Right(t2l), SetTreeLeaf$1__get_Key(t2$0027), SetTreeNode$1__get_Right(t2$0027)));
131
131
  }
132
132
  else {
133
- throw new Error("internal error: Set.rebalance");
133
+ throw new Exception("internal error: Set.rebalance");
134
134
  }
135
135
  }
136
136
  else {
@@ -138,21 +138,21 @@ export function SetTreeModule_rebalance(t1, v, t2) {
138
138
  }
139
139
  }
140
140
  else {
141
- throw new Error("internal error: Set.rebalance");
141
+ throw new Exception("internal error: Set.rebalance");
142
142
  }
143
143
  }
144
144
  else if (t1h > (t2h + 2)) {
145
- const matchValue_2 = value_3(t1);
145
+ const matchValue_2 = value_2(t1);
146
146
  if (matchValue_2 instanceof SetTreeNode$1) {
147
147
  const t1$0027 = matchValue_2;
148
- if (((t_3 = SetTreeNode$1__get_Right(t1$0027), (t_3 != null) ? ((t2_4 = value_3(t_3), (t2_4 instanceof SetTreeNode$1) ? ((tn_3 = t2_4, SetTreeNode$1__get_Height(tn_3))) : 1)) : 0)) > (t2h + 1)) {
149
- const matchValue_3 = value_3(SetTreeNode$1__get_Right(t1$0027));
148
+ if (((t_3 = SetTreeNode$1__get_Right(t1$0027), (t_3 != null) ? ((t2_4 = value_2(t_3), (t2_4 instanceof SetTreeNode$1) ? ((tn_3 = t2_4, SetTreeNode$1__get_Height(tn_3))) : 1)) : 0)) > (t2h + 1)) {
149
+ const matchValue_3 = value_2(SetTreeNode$1__get_Right(t1$0027));
150
150
  if (matchValue_3 instanceof SetTreeNode$1) {
151
151
  const t1r = matchValue_3;
152
152
  return SetTreeModule_mk(SetTreeModule_mk(SetTreeNode$1__get_Left(t1$0027), SetTreeLeaf$1__get_Key(t1$0027), SetTreeNode$1__get_Left(t1r)), SetTreeLeaf$1__get_Key(t1r), SetTreeModule_mk(SetTreeNode$1__get_Right(t1r), v, t2));
153
153
  }
154
154
  else {
155
- throw new Error("internal error: Set.rebalance");
155
+ throw new Exception("internal error: Set.rebalance");
156
156
  }
157
157
  }
158
158
  else {
@@ -160,7 +160,7 @@ export function SetTreeModule_rebalance(t1, v, t2) {
160
160
  }
161
161
  }
162
162
  else {
163
- throw new Error("internal error: Set.rebalance");
163
+ throw new Exception("internal error: Set.rebalance");
164
164
  }
165
165
  }
166
166
  else {
@@ -169,7 +169,7 @@ export function SetTreeModule_rebalance(t1, v, t2) {
169
169
  }
170
170
  export function SetTreeModule_add(comparer, k, t) {
171
171
  if (t != null) {
172
- const t2 = value_3(t);
172
+ const t2 = value_2(t);
173
173
  const c = comparer.Compare(k, SetTreeLeaf$1__get_Key(t2)) | 0;
174
174
  if (t2 instanceof SetTreeNode$1) {
175
175
  const tn = t2;
@@ -202,9 +202,9 @@ export function SetTreeModule_add(comparer, k, t) {
202
202
  }
203
203
  export function SetTreeModule_balance(comparer, t1, k, t2) {
204
204
  if (t1 != null) {
205
- const t1$0027 = value_3(t1);
205
+ const t1$0027 = value_2(t1);
206
206
  if (t2 != null) {
207
- const t2$0027 = value_3(t2);
207
+ const t2$0027 = value_2(t2);
208
208
  if (t1$0027 instanceof SetTreeNode$1) {
209
209
  const t1n = t1$0027;
210
210
  if (t2$0027 instanceof SetTreeNode$1) {
@@ -237,7 +237,7 @@ export function SetTreeModule_balance(comparer, t1, k, t2) {
237
237
  }
238
238
  export function SetTreeModule_split(comparer, pivot, t) {
239
239
  if (t != null) {
240
- const t2 = value_3(t);
240
+ const t2 = value_2(t);
241
241
  if (t2 instanceof SetTreeNode$1) {
242
242
  const tn = t2;
243
243
  const c = comparer.Compare(pivot, SetTreeLeaf$1__get_Key(tn)) | 0;
@@ -272,7 +272,7 @@ export function SetTreeModule_split(comparer, pivot, t) {
272
272
  }
273
273
  export function SetTreeModule_spliceOutSuccessor(t) {
274
274
  if (t != null) {
275
- const t2 = value_3(t);
275
+ const t2 = value_2(t);
276
276
  if (t2 instanceof SetTreeNode$1) {
277
277
  const tn = t2;
278
278
  if (SetTreeNode$1__get_Left(tn) == null) {
@@ -288,12 +288,12 @@ export function SetTreeModule_spliceOutSuccessor(t) {
288
288
  }
289
289
  }
290
290
  else {
291
- throw new Error("internal error: Set.spliceOutSuccessor");
291
+ throw new Exception("internal error: Set.spliceOutSuccessor");
292
292
  }
293
293
  }
294
294
  export function SetTreeModule_remove(comparer, k, t) {
295
295
  if (t != null) {
296
- const t2 = value_3(t);
296
+ const t2 = value_2(t);
297
297
  const c = comparer.Compare(k, SetTreeLeaf$1__get_Key(t2)) | 0;
298
298
  if (t2 instanceof SetTreeNode$1) {
299
299
  const tn = t2;
@@ -331,7 +331,7 @@ export function SetTreeModule_mem(comparer_mut, k_mut, t_mut) {
331
331
  SetTreeModule_mem: while (true) {
332
332
  const comparer = comparer_mut, k = k_mut, t = t_mut;
333
333
  if (t != null) {
334
- const t2 = value_3(t);
334
+ const t2 = value_2(t);
335
335
  const c = comparer.Compare(k, SetTreeLeaf$1__get_Key(t2)) | 0;
336
336
  if (t2 instanceof SetTreeNode$1) {
337
337
  const tn = t2;
@@ -365,7 +365,7 @@ export function SetTreeModule_iter(f_mut, t_mut) {
365
365
  SetTreeModule_iter: while (true) {
366
366
  const f = f_mut, t = t_mut;
367
367
  if (t != null) {
368
- const t2 = value_3(t);
368
+ const t2 = value_2(t);
369
369
  if (t2 instanceof SetTreeNode$1) {
370
370
  const tn = t2;
371
371
  SetTreeModule_iter(f, SetTreeNode$1__get_Left(tn));
@@ -385,7 +385,7 @@ export function SetTreeModule_foldBackOpt(f_mut, t_mut, x_mut) {
385
385
  SetTreeModule_foldBackOpt: while (true) {
386
386
  const f = f_mut, t = t_mut, x = x_mut;
387
387
  if (t != null) {
388
- const t2 = value_3(t);
388
+ const t2 = value_2(t);
389
389
  if (t2 instanceof SetTreeNode$1) {
390
390
  const tn = t2;
391
391
  f_mut = f;
@@ -410,7 +410,7 @@ export function SetTreeModule_foldOpt(f_mut, x_mut, t_mut) {
410
410
  SetTreeModule_foldOpt: while (true) {
411
411
  const f = f_mut, x = x_mut, t = t_mut;
412
412
  if (t != null) {
413
- const t2 = value_3(t);
413
+ const t2 = value_2(t);
414
414
  if (t2 instanceof SetTreeNode$1) {
415
415
  const tn = t2;
416
416
  f_mut = f;
@@ -435,7 +435,7 @@ export function SetTreeModule_forall(f_mut, t_mut) {
435
435
  SetTreeModule_forall: while (true) {
436
436
  const f = f_mut, t = t_mut;
437
437
  if (t != null) {
438
- const t2 = value_3(t);
438
+ const t2 = value_2(t);
439
439
  if (t2 instanceof SetTreeNode$1) {
440
440
  const tn = t2;
441
441
  if (f(SetTreeLeaf$1__get_Key(tn)) && SetTreeModule_forall(f, SetTreeNode$1__get_Left(tn))) {
@@ -461,7 +461,7 @@ export function SetTreeModule_exists(f_mut, t_mut) {
461
461
  SetTreeModule_exists: while (true) {
462
462
  const f = f_mut, t = t_mut;
463
463
  if (t != null) {
464
- const t2 = value_3(t);
464
+ const t2 = value_2(t);
465
465
  if (t2 instanceof SetTreeNode$1) {
466
466
  const tn = t2;
467
467
  if (f(SetTreeLeaf$1__get_Key(tn)) ? true : SetTreeModule_exists(f, SetTreeNode$1__get_Left(tn))) {
@@ -498,7 +498,7 @@ export function SetTreeModule_filterAux(comparer_mut, f_mut, t_mut, acc_mut) {
498
498
  SetTreeModule_filterAux: while (true) {
499
499
  const comparer = comparer_mut, f = f_mut, t = t_mut, acc = acc_mut;
500
500
  if (t != null) {
501
- const t2 = value_3(t);
501
+ const t2 = value_2(t);
502
502
  if (t2 instanceof SetTreeNode$1) {
503
503
  const tn = t2;
504
504
  const acc_1 = f(SetTreeLeaf$1__get_Key(tn)) ? SetTreeModule_add(comparer, SetTreeLeaf$1__get_Key(tn), acc) : acc;
@@ -531,7 +531,7 @@ export function SetTreeModule_diffAux(comparer_mut, t_mut, acc_mut) {
531
531
  return acc;
532
532
  }
533
533
  else if (t != null) {
534
- const t2 = value_3(t);
534
+ const t2 = value_2(t);
535
535
  if (t2 instanceof SetTreeNode$1) {
536
536
  const tn = t2;
537
537
  comparer_mut = comparer;
@@ -554,9 +554,9 @@ export function SetTreeModule_diff(comparer, a, b) {
554
554
  }
555
555
  export function SetTreeModule_union(comparer, t1, t2) {
556
556
  if (t1 != null) {
557
- const t1$0027 = value_3(t1);
557
+ const t1$0027 = value_2(t1);
558
558
  if (t2 != null) {
559
- const t2$0027 = value_3(t2);
559
+ const t2$0027 = value_2(t2);
560
560
  if (t1$0027 instanceof SetTreeNode$1) {
561
561
  const t1n = t1$0027;
562
562
  if (t2$0027 instanceof SetTreeNode$1) {
@@ -590,7 +590,7 @@ export function SetTreeModule_intersectionAux(comparer_mut, b_mut, t_mut, acc_mu
590
590
  SetTreeModule_intersectionAux: while (true) {
591
591
  const comparer = comparer_mut, b = b_mut, t = t_mut, acc = acc_mut;
592
592
  if (t != null) {
593
- const t2 = value_3(t);
593
+ const t2 = value_2(t);
594
594
  if (t2 instanceof SetTreeNode$1) {
595
595
  const tn = t2;
596
596
  const acc_1 = SetTreeModule_intersectionAux(comparer, b, SetTreeNode$1__get_Right(tn), acc);
@@ -630,7 +630,7 @@ export function SetTreeModule_partitionAux(comparer_mut, f_mut, t_mut, acc__mut,
630
630
  const comparer = comparer_mut, f = f_mut, t = t_mut, acc_ = acc__mut, acc__1 = acc__1_mut;
631
631
  const acc = [acc_, acc__1];
632
632
  if (t != null) {
633
- const t2 = value_3(t);
633
+ const t2 = value_2(t);
634
634
  if (t2 instanceof SetTreeNode$1) {
635
635
  const tn = t2;
636
636
  const acc_1 = SetTreeModule_partitionAux(comparer, f, SetTreeNode$1__get_Right(tn), acc[0], acc[1]);
@@ -659,7 +659,7 @@ export function SetTreeModule_minimumElementAux(t_mut, n_mut) {
659
659
  SetTreeModule_minimumElementAux: while (true) {
660
660
  const t = t_mut, n = n_mut;
661
661
  if (t != null) {
662
- const t2 = value_3(t);
662
+ const t2 = value_2(t);
663
663
  if (t2 instanceof SetTreeNode$1) {
664
664
  const tn = t2;
665
665
  t_mut = SetTreeNode$1__get_Left(tn);
@@ -678,7 +678,7 @@ export function SetTreeModule_minimumElementAux(t_mut, n_mut) {
678
678
  }
679
679
  export function SetTreeModule_minimumElementOpt(t) {
680
680
  if (t != null) {
681
- const t2 = value_3(t);
681
+ const t2 = value_2(t);
682
682
  if (t2 instanceof SetTreeNode$1) {
683
683
  const tn = t2;
684
684
  return some(SetTreeModule_minimumElementAux(SetTreeNode$1__get_Left(tn), SetTreeLeaf$1__get_Key(tn)));
@@ -688,14 +688,14 @@ export function SetTreeModule_minimumElementOpt(t) {
688
688
  }
689
689
  }
690
690
  else {
691
- return void 0;
691
+ return undefined;
692
692
  }
693
693
  }
694
694
  export function SetTreeModule_maximumElementAux(t_mut, n_mut) {
695
695
  SetTreeModule_maximumElementAux: while (true) {
696
696
  const t = t_mut, n = n_mut;
697
697
  if (t != null) {
698
- const t2 = value_3(t);
698
+ const t2 = value_2(t);
699
699
  if (t2 instanceof SetTreeNode$1) {
700
700
  const tn = t2;
701
701
  t_mut = SetTreeNode$1__get_Right(tn);
@@ -714,7 +714,7 @@ export function SetTreeModule_maximumElementAux(t_mut, n_mut) {
714
714
  }
715
715
  export function SetTreeModule_maximumElementOpt(t) {
716
716
  if (t != null) {
717
- const t2 = value_3(t);
717
+ const t2 = value_2(t);
718
718
  if (t2 instanceof SetTreeNode$1) {
719
719
  const tn = t2;
720
720
  return some(SetTreeModule_maximumElementAux(SetTreeNode$1__get_Right(tn), SetTreeLeaf$1__get_Key(tn)));
@@ -724,25 +724,25 @@ export function SetTreeModule_maximumElementOpt(t) {
724
724
  }
725
725
  }
726
726
  else {
727
- return void 0;
727
+ return undefined;
728
728
  }
729
729
  }
730
730
  export function SetTreeModule_minimumElement(s) {
731
731
  const matchValue = SetTreeModule_minimumElementOpt(s);
732
732
  if (matchValue == null) {
733
- throw new Error("Set contains no elements");
733
+ throw new Exception("Set contains no elements");
734
734
  }
735
735
  else {
736
- return value_3(matchValue);
736
+ return value_2(matchValue);
737
737
  }
738
738
  }
739
739
  export function SetTreeModule_maximumElement(s) {
740
740
  const matchValue = SetTreeModule_maximumElementOpt(s);
741
741
  if (matchValue == null) {
742
- throw new Error("Set contains no elements");
742
+ throw new Exception("Set contains no elements");
743
743
  }
744
744
  else {
745
- return value_3(matchValue);
745
+ return value_2(matchValue);
746
746
  }
747
747
  }
748
748
  export class SetTreeModule_SetIterator$1 extends Record {
@@ -762,7 +762,7 @@ export function SetTreeModule_collapseLHS(stack_mut) {
762
762
  const x = head(stack);
763
763
  const rest = tail(stack);
764
764
  if (x != null) {
765
- const x2 = value_3(x);
765
+ const x2 = value_2(x);
766
766
  if (x2 instanceof SetTreeNode$1) {
767
767
  const xn = x2;
768
768
  stack_mut = ofArrayWithTail([SetTreeNode$1__get_Left(xn), SetTreeLeaf$1_$ctor_2B595(SetTreeLeaf$1__get_Key(xn)), SetTreeNode$1__get_Right(xn)], rest);
@@ -787,10 +787,10 @@ export function SetTreeModule_mkIterator(s) {
787
787
  return new SetTreeModule_SetIterator$1(SetTreeModule_collapseLHS(singleton_1(s)), false);
788
788
  }
789
789
  export function SetTreeModule_notStarted() {
790
- throw new Error("Enumeration not started");
790
+ throw new Exception("Enumeration not started");
791
791
  }
792
792
  export function SetTreeModule_alreadyFinished() {
793
- throw new Error("Enumeration already started");
793
+ throw new Exception("Enumeration already started");
794
794
  }
795
795
  export function SetTreeModule_current(i) {
796
796
  if (i.started) {
@@ -799,11 +799,11 @@ export function SetTreeModule_current(i) {
799
799
  return SetTreeModule_alreadyFinished();
800
800
  }
801
801
  else if (head(matchValue) != null) {
802
- const t = value_3(head(matchValue));
802
+ const t = value_2(head(matchValue));
803
803
  return SetTreeLeaf$1__get_Key(t);
804
804
  }
805
805
  else {
806
- throw new Error("Please report error: Set iterator, unexpected stack for current");
806
+ throw new Exception("Please report error: Set iterator, unexpected stack for current");
807
807
  }
808
808
  }
809
809
  else {
@@ -815,9 +815,9 @@ export function SetTreeModule_moveNext(i) {
815
815
  const matchValue = i.stack;
816
816
  if (!isEmpty_1(matchValue)) {
817
817
  if (head(matchValue) != null) {
818
- const t = value_3(head(matchValue));
818
+ const t = value_2(head(matchValue));
819
819
  if (t instanceof SetTreeNode$1) {
820
- throw new Error("Please report error: Set iterator, unexpected stack for moveNext");
820
+ throw new Exception("Please report error: Set iterator, unexpected stack for moveNext");
821
821
  }
822
822
  else {
823
823
  i.stack = SetTreeModule_collapseLHS(tail(matchValue));
@@ -825,7 +825,7 @@ export function SetTreeModule_moveNext(i) {
825
825
  }
826
826
  }
827
827
  else {
828
- throw new Error("Please report error: Set iterator, unexpected stack for moveNext");
828
+ throw new Exception("Please report error: Set iterator, unexpected stack for moveNext");
829
829
  }
830
830
  }
831
831
  else {
@@ -866,8 +866,8 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
866
866
  if (!isEmpty_1(l2)) {
867
867
  if (head(l2) != null) {
868
868
  if (head(l1) != null) {
869
- const x1_3 = value_3(head(l1));
870
- const x2_3 = value_3(head(l2));
869
+ const x1_3 = value_2(head(l1));
870
+ const x2_3 = value_2(head(l2));
871
871
  if (x1_3 instanceof SetTreeNode$1) {
872
872
  const x1n_2 = x1_3;
873
873
  if (SetTreeNode$1__get_Left(x1n_2) == null) {
@@ -886,18 +886,18 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
886
886
  }
887
887
  }
888
888
  else {
889
- let matchResult, t1_6, x1_4, t2_6, x2_4;
889
+ let matchResult = undefined, t1_6 = undefined, x1_4 = undefined, t2_6 = undefined, x2_4 = undefined;
890
890
  if (!isEmpty_1(l1)) {
891
891
  if (head(l1) != null) {
892
892
  matchResult = 0;
893
893
  t1_6 = tail(l1);
894
- x1_4 = value_3(head(l1));
894
+ x1_4 = value_2(head(l1));
895
895
  }
896
896
  else if (!isEmpty_1(l2)) {
897
897
  if (head(l2) != null) {
898
898
  matchResult = 1;
899
899
  t2_6 = tail(l2);
900
- x2_4 = value_3(head(l2));
900
+ x2_4 = value_2(head(l2));
901
901
  }
902
902
  else {
903
903
  matchResult = 2;
@@ -911,7 +911,7 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
911
911
  if (head(l2) != null) {
912
912
  matchResult = 1;
913
913
  t2_6 = tail(l2);
914
- x2_4 = value_3(head(l2));
914
+ x2_4 = value_2(head(l2));
915
915
  }
916
916
  else {
917
917
  matchResult = 2;
@@ -950,7 +950,7 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
950
950
  continue SetTreeModule_compareStacks;
951
951
  }
952
952
  default:
953
- throw new Error("unexpected state in SetTree.compareStacks");
953
+ throw new Exception("unexpected state in SetTree.compareStacks");
954
954
  }
955
955
  }
956
956
  }
@@ -968,18 +968,18 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
968
968
  }
969
969
  }
970
970
  else {
971
- let matchResult_1, t1_7, x1_5, t2_7, x2_5;
971
+ let matchResult_1 = undefined, t1_7 = undefined, x1_5 = undefined, t2_7 = undefined, x2_5 = undefined;
972
972
  if (!isEmpty_1(l1)) {
973
973
  if (head(l1) != null) {
974
974
  matchResult_1 = 0;
975
975
  t1_7 = tail(l1);
976
- x1_5 = value_3(head(l1));
976
+ x1_5 = value_2(head(l1));
977
977
  }
978
978
  else if (!isEmpty_1(l2)) {
979
979
  if (head(l2) != null) {
980
980
  matchResult_1 = 1;
981
981
  t2_7 = tail(l2);
982
- x2_5 = value_3(head(l2));
982
+ x2_5 = value_2(head(l2));
983
983
  }
984
984
  else {
985
985
  matchResult_1 = 2;
@@ -993,7 +993,7 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
993
993
  if (head(l2) != null) {
994
994
  matchResult_1 = 1;
995
995
  t2_7 = tail(l2);
996
- x2_5 = value_3(head(l2));
996
+ x2_5 = value_2(head(l2));
997
997
  }
998
998
  else {
999
999
  matchResult_1 = 2;
@@ -1032,7 +1032,7 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1032
1032
  continue SetTreeModule_compareStacks;
1033
1033
  }
1034
1034
  default:
1035
- throw new Error("unexpected state in SetTree.compareStacks");
1035
+ throw new Exception("unexpected state in SetTree.compareStacks");
1036
1036
  }
1037
1037
  }
1038
1038
  }
@@ -1051,18 +1051,18 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1051
1051
  }
1052
1052
  }
1053
1053
  else {
1054
- let matchResult_2, t1_8, x1_6, t2_8, x2_6;
1054
+ let matchResult_2 = undefined, t1_8 = undefined, x1_6 = undefined, t2_8 = undefined, x2_6 = undefined;
1055
1055
  if (!isEmpty_1(l1)) {
1056
1056
  if (head(l1) != null) {
1057
1057
  matchResult_2 = 0;
1058
1058
  t1_8 = tail(l1);
1059
- x1_6 = value_3(head(l1));
1059
+ x1_6 = value_2(head(l1));
1060
1060
  }
1061
1061
  else if (!isEmpty_1(l2)) {
1062
1062
  if (head(l2) != null) {
1063
1063
  matchResult_2 = 1;
1064
1064
  t2_8 = tail(l2);
1065
- x2_6 = value_3(head(l2));
1065
+ x2_6 = value_2(head(l2));
1066
1066
  }
1067
1067
  else {
1068
1068
  matchResult_2 = 2;
@@ -1076,7 +1076,7 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1076
1076
  if (head(l2) != null) {
1077
1077
  matchResult_2 = 1;
1078
1078
  t2_8 = tail(l2);
1079
- x2_6 = value_3(head(l2));
1079
+ x2_6 = value_2(head(l2));
1080
1080
  }
1081
1081
  else {
1082
1082
  matchResult_2 = 2;
@@ -1115,7 +1115,7 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1115
1115
  continue SetTreeModule_compareStacks;
1116
1116
  }
1117
1117
  default:
1118
- throw new Error("unexpected state in SetTree.compareStacks");
1118
+ throw new Exception("unexpected state in SetTree.compareStacks");
1119
1119
  }
1120
1120
  }
1121
1121
  }
@@ -1133,19 +1133,19 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1133
1133
  }
1134
1134
  }
1135
1135
  else {
1136
- const x2 = value_3(head(l2));
1137
- let matchResult_3, t1_2, x1, t2_2, x2_1;
1136
+ const x2 = value_2(head(l2));
1137
+ let matchResult_3 = undefined, t1_2 = undefined, x1 = undefined, t2_2 = undefined, x2_1 = undefined;
1138
1138
  if (!isEmpty_1(l1)) {
1139
1139
  if (head(l1) != null) {
1140
1140
  matchResult_3 = 0;
1141
1141
  t1_2 = tail(l1);
1142
- x1 = value_3(head(l1));
1142
+ x1 = value_2(head(l1));
1143
1143
  }
1144
1144
  else if (!isEmpty_1(l2)) {
1145
1145
  if (head(l2) != null) {
1146
1146
  matchResult_3 = 1;
1147
1147
  t2_2 = tail(l2);
1148
- x2_1 = value_3(head(l2));
1148
+ x2_1 = value_2(head(l2));
1149
1149
  }
1150
1150
  else {
1151
1151
  matchResult_3 = 2;
@@ -1159,7 +1159,7 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1159
1159
  if (head(l2) != null) {
1160
1160
  matchResult_3 = 1;
1161
1161
  t2_2 = tail(l2);
1162
- x2_1 = value_3(head(l2));
1162
+ x2_1 = value_2(head(l2));
1163
1163
  }
1164
1164
  else {
1165
1165
  matchResult_3 = 2;
@@ -1198,24 +1198,24 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1198
1198
  continue SetTreeModule_compareStacks;
1199
1199
  }
1200
1200
  default:
1201
- throw new Error("unexpected state in SetTree.compareStacks");
1201
+ throw new Exception("unexpected state in SetTree.compareStacks");
1202
1202
  }
1203
1203
  }
1204
1204
  }
1205
1205
  else if (head(l1) != null) {
1206
- const x1_1 = value_3(head(l1));
1207
- let matchResult_4, t1_4, x1_2, t2_4, x2_2;
1206
+ const x1_1 = value_2(head(l1));
1207
+ let matchResult_4 = undefined, t1_4 = undefined, x1_2 = undefined, t2_4 = undefined, x2_2 = undefined;
1208
1208
  if (!isEmpty_1(l1)) {
1209
1209
  if (head(l1) != null) {
1210
1210
  matchResult_4 = 0;
1211
1211
  t1_4 = tail(l1);
1212
- x1_2 = value_3(head(l1));
1212
+ x1_2 = value_2(head(l1));
1213
1213
  }
1214
1214
  else if (!isEmpty_1(l2)) {
1215
1215
  if (head(l2) != null) {
1216
1216
  matchResult_4 = 1;
1217
1217
  t2_4 = tail(l2);
1218
- x2_2 = value_3(head(l2));
1218
+ x2_2 = value_2(head(l2));
1219
1219
  }
1220
1220
  else {
1221
1221
  matchResult_4 = 2;
@@ -1229,7 +1229,7 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1229
1229
  if (head(l2) != null) {
1230
1230
  matchResult_4 = 1;
1231
1231
  t2_4 = tail(l2);
1232
- x2_2 = value_3(head(l2));
1232
+ x2_2 = value_2(head(l2));
1233
1233
  }
1234
1234
  else {
1235
1235
  matchResult_4 = 2;
@@ -1268,7 +1268,7 @@ export function SetTreeModule_compareStacks(comparer_mut, l1_mut, l2_mut) {
1268
1268
  continue SetTreeModule_compareStacks;
1269
1269
  }
1270
1270
  default:
1271
- throw new Error("unexpected state in SetTree.compareStacks");
1271
+ throw new Exception("unexpected state in SetTree.compareStacks");
1272
1272
  }
1273
1273
  }
1274
1274
  else {
@@ -1315,7 +1315,7 @@ export function SetTreeModule_toList(t) {
1315
1315
  loop: while (true) {
1316
1316
  const t$0027 = t$0027_mut, acc = acc_mut;
1317
1317
  if (t$0027 != null) {
1318
- const t2 = value_3(t$0027);
1318
+ const t2 = value_2(t$0027);
1319
1319
  if (t2 instanceof SetTreeNode$1) {
1320
1320
  const tn = t2;
1321
1321
  t$0027_mut = SetTreeNode$1__get_Left(tn);
@@ -1394,17 +1394,28 @@ export class FSharpSet {
1394
1394
  const this$ = this;
1395
1395
  return FSharpSet__ComputeHashCode(this$) | 0;
1396
1396
  }
1397
- Equals(that) {
1398
- let that_1;
1397
+ Equals(other) {
1398
+ let that = undefined;
1399
1399
  const this$ = this;
1400
- return (that instanceof FSharpSet) && ((that_1 = that, SetTreeModule_compare(FSharpSet__get_Comparer(this$), FSharpSet__get_Tree(this$), FSharpSet__get_Tree(that_1)) === 0));
1400
+ return (other instanceof FSharpSet) && ((that = other, SetTreeModule_compare(FSharpSet__get_Comparer(this$), FSharpSet__get_Tree(this$), FSharpSet__get_Tree(that)) === 0));
1401
1401
  }
1402
1402
  toString() {
1403
1403
  const this$ = this;
1404
- return ("set [" + join("; ", map_1((x) => {
1405
- let copyOfStruct = x;
1406
- return toString(copyOfStruct);
1407
- }, this$))) + "]";
1404
+ let result = "set [";
1405
+ let first = true;
1406
+ const enumerator = getEnumerator(this$);
1407
+ try {
1408
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
1409
+ let x = undefined, matchValue = undefined, s = undefined;
1410
+ const x_1 = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
1411
+ result = ((first ? result : (result + "; ")) + ((x = x_1, (matchValue = x, (typeof matchValue === "string") ? ((s = matchValue, ("\"" + s) + "\"")) : toString(x)))));
1412
+ first = false;
1413
+ }
1414
+ }
1415
+ finally {
1416
+ disposeSafe(enumerator);
1417
+ }
1418
+ return result + "]";
1408
1419
  }
1409
1420
  get [Symbol.toStringTag]() {
1410
1421
  return "FSharpSet";
@@ -1413,18 +1424,19 @@ export class FSharpSet {
1413
1424
  const this$ = this;
1414
1425
  return Array.from(this$);
1415
1426
  }
1416
- CompareTo(that) {
1417
- const s = this;
1418
- return SetTreeModule_compare(FSharpSet__get_Comparer(s), FSharpSet__get_Tree(s), FSharpSet__get_Tree(that)) | 0;
1427
+ CompareTo(other) {
1428
+ let that = undefined;
1429
+ const this$ = this;
1430
+ return ((other instanceof FSharpSet) ? ((that = other, SetTreeModule_compare(FSharpSet__get_Comparer(this$), FSharpSet__get_Tree(this$), FSharpSet__get_Tree(that)))) : 1) | 0;
1419
1431
  }
1420
1432
  "System.Collections.Generic.ICollection`1.Add2B595"(x) {
1421
- throw new Error("ReadOnlyCollection");
1433
+ throw NotSupportedException_$ctor_Z721C83C5("ReadOnlyCollection");
1422
1434
  }
1423
1435
  "System.Collections.Generic.ICollection`1.Clear"() {
1424
- throw new Error("ReadOnlyCollection");
1436
+ throw NotSupportedException_$ctor_Z721C83C5("ReadOnlyCollection");
1425
1437
  }
1426
1438
  "System.Collections.Generic.ICollection`1.Remove2B595"(x) {
1427
- throw new Error("ReadOnlyCollection");
1439
+ throw NotSupportedException_$ctor_Z721C83C5("ReadOnlyCollection");
1428
1440
  }
1429
1441
  "System.Collections.Generic.ICollection`1.Contains2B595"(x) {
1430
1442
  const s = this;
@@ -1462,14 +1474,14 @@ export class FSharpSet {
1462
1474
  }
1463
1475
  add(k) {
1464
1476
  const s = this;
1465
- throw new Error("Set cannot be mutated");
1477
+ throw new Exception("Set cannot be mutated");
1466
1478
  return s;
1467
1479
  }
1468
1480
  clear() {
1469
- throw new Error("Set cannot be mutated");
1481
+ throw new Exception("Set cannot be mutated");
1470
1482
  }
1471
1483
  delete(k) {
1472
- throw new Error("Set cannot be mutated");
1484
+ throw new Exception("Set cannot be mutated");
1473
1485
  return false;
1474
1486
  }
1475
1487
  has(k) {
@@ -1517,7 +1529,7 @@ export function FSharpSet__Remove(s, value) {
1517
1529
  return FSharpSet_$ctor(FSharpSet__get_Comparer(s), SetTreeModule_remove(FSharpSet__get_Comparer(s), value, FSharpSet__get_Tree(s)));
1518
1530
  }
1519
1531
  export function FSharpSet__get_Count(s) {
1520
- return SetTreeModule_count(FSharpSet__get_Tree(s));
1532
+ return SetTreeModule_count(FSharpSet__get_Tree(s)) | 0;
1521
1533
  }
1522
1534
  export function FSharpSet__Contains(s, value) {
1523
1535
  return SetTreeModule_mem(FSharpSet__get_Comparer(s), value, FSharpSet__get_Tree(s));
@@ -1598,7 +1610,7 @@ export function FSharpSet_Equality(a, b) {
1598
1610
  return SetTreeModule_compare(FSharpSet__get_Comparer(a), FSharpSet__get_Tree(a), FSharpSet__get_Tree(b)) === 0;
1599
1611
  }
1600
1612
  export function FSharpSet_Compare(a, b) {
1601
- return SetTreeModule_compare(FSharpSet__get_Comparer(a), FSharpSet__get_Tree(a), FSharpSet__get_Tree(b));
1613
+ return SetTreeModule_compare(FSharpSet__get_Comparer(a), FSharpSet__get_Tree(a), FSharpSet__get_Tree(b)) | 0;
1602
1614
  }
1603
1615
  export function FSharpSet__get_Choose(x) {
1604
1616
  return SetTreeModule_choose(FSharpSet__get_Tree(x));
@@ -1696,7 +1708,7 @@ export function map(mapping, set$, comparer) {
1696
1708
  return FSharpSet__Map(set$, mapping, comparer);
1697
1709
  }
1698
1710
  export function count(set$) {
1699
- return FSharpSet__get_Count(set$);
1711
+ return FSharpSet__get_Count(set$) | 0;
1700
1712
  }
1701
1713
  export function ofList(elements, comparer) {
1702
1714
  return FSharpSet_$ctor(comparer, SetTreeModule_ofSeq(comparer, elements));
@@ -1779,11 +1791,39 @@ export function isProperSubsetOf(s1, s2) {
1779
1791
  }
1780
1792
  }
1781
1793
  export function isProperSupersetOf(s1, s2) {
1782
- const s2_1 = cache(s2);
1783
- if (exists_1((arg) => !s1.has(arg), s2_1)) {
1784
- return forAll_1((value_2) => s1.has(value_2), s2_1);
1794
+ const s2_1 = newMutableSetWith(s1, s2);
1795
+ if (s1.size > s2_1.size) {
1796
+ return forAll_1((value) => s1.has(value), s2_1.values());
1797
+ }
1798
+ else {
1799
+ return false;
1800
+ }
1801
+ }
1802
+ export function symmetricExceptWith(s1, s2) {
1803
+ const s2_1 = newMutableSetWith(s1, s2);
1804
+ iterate_1((x) => {
1805
+ if (s1.has(x)) {
1806
+ s1.delete(x);
1807
+ }
1808
+ else {
1809
+ s1.add(x);
1810
+ }
1811
+ }, s2_1.values());
1812
+ }
1813
+ export function overlaps(s1, s2) {
1814
+ return exists_1((value) => s1.has(value), s2);
1815
+ }
1816
+ export function setEquals(s1, s2) {
1817
+ const s2_1 = newMutableSetWith(s1, s2);
1818
+ if (s1.size === s2_1.size) {
1819
+ return forAll_1((value) => s2_1.has(value), s1.values());
1785
1820
  }
1786
1821
  else {
1787
1822
  return false;
1788
1823
  }
1789
1824
  }
1825
+ export function copyToArray(s1, target, sourceIndex, targetIndex, count_1) {
1826
+ iterateIndexed((index, value) => {
1827
+ setItem(target, targetIndex + index, value);
1828
+ }, truncate(count_1, skip(sourceIndex, s1.values())));
1829
+ }