@magnusopera/fscript 0.87.2 → 0.90.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 (101) hide show
  1. package/README.md +15 -0
  2. package/dist/FScript.Language/Ast.js +2 -2
  3. package/dist/FScript.Language/BuiltinFunctions.js +81 -69
  4. package/dist/FScript.Language/BuiltinSignatures.js +9 -8
  5. package/dist/FScript.Language/BuiltinTypes.js +1 -1
  6. package/dist/FScript.Language/Error.js +2 -2
  7. package/dist/FScript.Language/Eval.js +176 -127
  8. package/dist/FScript.Language/Execution.js +8 -7
  9. package/dist/FScript.Language/ExportSignatures.js +5 -5
  10. package/dist/FScript.Language/HostInterop.js +41 -11
  11. package/dist/FScript.Language/IncludeResolver.js +15 -19
  12. package/dist/FScript.Language/Interactive.js +9 -9
  13. package/dist/FScript.Language/Lexer.js +39 -39
  14. package/dist/FScript.Language/Parser.js +17 -17
  15. package/dist/FScript.Language/Pretty.js +5 -5
  16. package/dist/FScript.Language/Span.js +2 -2
  17. package/dist/FScript.Language/SupportCollections.js +2871 -0
  18. package/dist/FScript.Language/SupportLibrary.js +1998 -0
  19. package/dist/FScript.Language/TaskFunctions.js +51 -7
  20. package/dist/FScript.Language/TaskSharingAnalysis.js +310 -129
  21. package/dist/FScript.Language/Token.js +2 -2
  22. package/dist/FScript.Language/TypeInfer.js +21 -25
  23. package/dist/FScript.Language/Types.js +9 -9
  24. package/dist/FScript.Language/Value.js +11 -8
  25. package/dist/Library.js +54 -28
  26. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Array.js +325 -198
  27. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/BigInt.js +18 -6
  28. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/CHANGELOG.md +64 -1
  29. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Date.js +1 -1
  30. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Decimal.js +33 -47
  31. package/dist/fable_modules/fable-library-js.5.27.0/Double.js +78 -0
  32. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/FSharp.Core.js +7 -1
  33. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Global.js +1 -1
  34. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Int32.js +10 -1
  35. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/List.js +230 -157
  36. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Long.js +7 -2
  37. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Map.js +46 -39
  38. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/MutableMap.js +76 -96
  39. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/MutableSet.js +58 -80
  40. package/dist/fable_modules/fable-library-js.5.27.0/NumberStyles.js +56 -0
  41. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Numeric.js +72 -4
  42. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Random.js +26 -17
  43. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Range.js +4 -3
  44. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Reflection.js +7 -1
  45. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/RegExp.js +3 -2
  46. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Seq.js +149 -70
  47. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Seq2.js +4 -8
  48. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Set.js +66 -59
  49. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/String.js +160 -39
  50. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/System.Collections.Generic.js +3 -2
  51. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/System.Text.js +10 -10
  52. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/System.js +5 -5
  53. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/TimeOnly.js +1 -1
  54. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Types.js +28 -10
  55. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Util.js +151 -54
  56. package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/package.json +1 -1
  57. package/dist/fable_modules/project_cracked.json +1 -1
  58. package/package.json +1 -1
  59. package/dist/fable_modules/fable-library-js.5.24.0/Double.js +0 -53
  60. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Async.js +0 -0
  61. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/AsyncBuilder.js +0 -0
  62. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/BitConverter.js +0 -0
  63. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Boolean.js +0 -0
  64. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Char.js +0 -0
  65. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Choice.js +0 -0
  66. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/CollectionUtil.js +0 -0
  67. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/ConditionalWeakTable.js +0 -0
  68. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/DateOffset.js +0 -0
  69. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/DateOnly.js +0 -0
  70. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/DateOnlyTemporal.js +0 -0
  71. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/DateTimeFormat.js +0 -0
  72. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/DateTimeOffsetTemporal.js +0 -0
  73. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/DateTimeTemporal.js +0 -0
  74. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Directory.js +0 -0
  75. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Encoding.js +0 -0
  76. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Environment.js +0 -0
  77. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Event.js +0 -0
  78. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/FSharp.Collections.js +0 -0
  79. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/FSharp.Core.CompilerServices.js +0 -0
  80. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/File.js +0 -0
  81. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Guid.js +0 -0
  82. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/MailboxProcessor.js +0 -0
  83. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/MapUtil.js +0 -0
  84. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Native.js +0 -0
  85. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Observable.js +0 -0
  86. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Option.js +0 -0
  87. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Path.js +0 -0
  88. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/README.md +0 -0
  89. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Result.js +0 -0
  90. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Stopwatch.js +0 -0
  91. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Task.js +0 -0
  92. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/TaskBuilder.js +0 -0
  93. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/TimeOnlyTemporal.js +0 -0
  94. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/TimeSpan.js +0 -0
  95. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/TimeSpanTemporal.js +0 -0
  96. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Timer.js +0 -0
  97. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Unicode.13.0.0.js +0 -0
  98. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/Uri.js +0 -0
  99. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/big.d.ts +0 -0
  100. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/lib/big.js +0 -0
  101. /package/dist/fable_modules/{fable-library-js.5.24.0 → fable-library-js.5.27.0}/quotation.js +0 -0
@@ -0,0 +1,1998 @@
1
+
2
+ import { filter, zip, append, contains, tail as tail_2, head as head_2, isEmpty, cons, reverse, singleton, empty, map, ofArray, foldBack } from "../fable_modules/fable-library-js.5.27.0/List.js";
3
+ import { Scheme, Type } from "./Types.js";
4
+ import { FSharpMap__get_Item, ofList } from "../fable_modules/fable-library-js.5.27.0/Map.js";
5
+ import { round, curry2, sign, stringHash, equals, comparePrimitives } from "../fable_modules/fable-library-js.5.27.0/Util.js";
6
+ import { ofSeq, ofList as ofList_1 } from "../fable_modules/fable-library-js.5.27.0/Set.js";
7
+ import { concat, replicate, padRight, padLeft, indexOf, replace, compareOrdinal, getCharAtIndex, substring, trimEnd, split, join, startsWith } from "../fable_modules/fable-library-js.5.27.0/String.js";
8
+ import { item, setItem, fill, fold } from "../fable_modules/fable-library-js.5.27.0/Array.js";
9
+ import { Operators_InvalidArg } from "../fable_modules/fable-library-js.5.27.0/FSharp.Core.js";
10
+ import { map as map_1, delay, toArray, forAll } from "../fable_modules/fable-library-js.5.27.0/Seq.js";
11
+ import { Value } from "./Value.js";
12
+ import { compare, toInt32_unchecked, fromFloat64, max, min, toFloat64, abs, equals as equals_1, fromInt32, toInt64_unchecked } from "../fable_modules/fable-library-js.5.27.0/BigInt.js";
13
+ import { isInfinity, max as max_1, min as min_1 } from "../fable_modules/fable-library-js.5.27.0/Double.js";
14
+
15
+ function fn(arguments$, result) {
16
+ return foldBack((argument, result_1) => (new Type(/* TFun */ 11, [argument, result_1])), arguments$, result);
17
+ }
18
+
19
+ export const patternInput$00408 = [new Type(/* TVar */ 15, [0]), new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [2]), new Type(/* TVar */ 15, [3])];
20
+
21
+ export const s = patternInput$00408[3];
22
+
23
+ export const k = patternInput$00408[2];
24
+
25
+ export const b = patternInput$00408[1];
26
+
27
+ const a = patternInput$00408[0];
28
+
29
+ export const versionFields = ofArray(["Major", "Minor", "Patch", "PreRelease", "Build"]);
30
+
31
+ export const versionType = new Type(/* TRecord */ 8, [ofList(map((name) => [name, Type.TString], versionFields), {
32
+ Compare: (x, y) => (comparePrimitives(x, y) | 0),
33
+ })]);
34
+
35
+ export const signatures = ofArray([["String.compare", new Scheme(empty(), fn(ofArray([Type.TString, Type.TString]), Type.TInt)), ofArray(["left", "right"])], ["Int.abs", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TInt, Type.TInt])), singleton("value")], ["Int.sign", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TInt, Type.TInt])), singleton("value")], ["Int.min", new Scheme(empty(), fn(ofArray([Type.TInt, Type.TInt]), Type.TInt)), ofArray(["left", "right"])], ["Int.max", new Scheme(empty(), fn(ofArray([Type.TInt, Type.TInt]), Type.TInt)), ofArray(["left", "right"])], ["Int.clamp", new Scheme(empty(), fn(ofArray([Type.TInt, Type.TInt, Type.TInt]), Type.TInt)), ofArray(["minimum", "maximum", "value"])], ["Float.abs", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.sign", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TInt])), singleton("value")], ["Float.min", new Scheme(empty(), fn(ofArray([Type.TFloat, Type.TFloat]), Type.TFloat)), ofArray(["left", "right"])], ["Float.max", new Scheme(empty(), fn(ofArray([Type.TFloat, Type.TFloat]), Type.TFloat)), ofArray(["left", "right"])], ["Float.clamp", new Scheme(empty(), fn(ofArray([Type.TFloat, Type.TFloat, Type.TFloat]), Type.TFloat)), ofArray(["minimum", "maximum", "value"])], ["Float.floor", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.ceil", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.round", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.truncate", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.sqrt", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.log", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.log10", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.exp", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.sin", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.cos", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.tan", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.asin", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.acos", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.atan", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TFloat])), singleton("value")], ["Float.pow", new Scheme(empty(), fn(ofArray([Type.TFloat, Type.TFloat]), Type.TFloat)), ofArray(["left", "right"])], ["Float.atan2", new Scheme(empty(), fn(ofArray([Type.TFloat, Type.TFloat]), Type.TFloat)), ofArray(["left", "right"])], ["Float.isNaN", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TBool])), singleton("value")], ["Float.isInfinity", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TBool])), singleton("value")], ["Float.isFinite", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TBool])), singleton("value")], ["Float.pi", new Scheme(empty(), Type.TFloat), empty()], ["Int.toFloat", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TInt, Type.TFloat])), singleton("value")], ["Float.tryToInt", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, new Type(/* TOption */ 10, [Type.TInt])])), singleton("value")], ["String.length", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, Type.TInt])), singleton("source")], ["String.isEmpty", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, Type.TBool])), singleton("source")], ["String.isWhiteSpace", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, Type.TBool])), singleton("source")], ["String.trim", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, Type.TString])), singleton("source")], ["String.trimStart", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, Type.TString])), singleton("source")], ["String.trimEnd", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, Type.TString])), singleton("source")], ["String.splitLines", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, new Type(/* TList */ 5, [Type.TString])])), singleton("source")], ["String.startsWith", new Scheme(empty(), fn(ofArray([Type.TString, Type.TString]), Type.TBool)), ofArray(["value", "source"])], ["String.contains", new Scheme(empty(), fn(ofArray([Type.TString, Type.TString]), Type.TBool)), ofArray(["value", "source"])], ["String.padLeft", new Scheme(empty(), fn(ofArray([Type.TInt, Type.TString]), Type.TString)), ofArray(["count", "source"])], ["String.padRight", new Scheme(empty(), fn(ofArray([Type.TInt, Type.TString]), Type.TString)), ofArray(["count", "source"])], ["String.repeat", new Scheme(empty(), fn(ofArray([Type.TInt, Type.TString]), Type.TString)), ofArray(["count", "source"])], ["List.isEmpty", new Scheme(singleton(0), fn(singleton(new Type(/* TList */ 5, [a])), Type.TBool)), singleton("values")], ["List.forall", new Scheme(singleton(0), fn(ofArray([fn(singleton(a), Type.TBool), new Type(/* TList */ 5, [a])]), Type.TBool)), ofArray(["predicate", "values"])], ["List.mapi", new Scheme(ofArray([0, 1]), fn(ofArray([fn(ofArray([Type.TInt, a]), b), new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [b]))), ofArray(["mapper", "values"])], ["List.indexed", new Scheme(singleton(0), fn(singleton(new Type(/* TList */ 5, [a])), new Type(/* TList */ 5, [new Type(/* TTuple */ 7, [ofArray([Type.TInt, a])])]))), singleton("values")], ["List.init", new Scheme(singleton(0), fn(ofArray([Type.TInt, fn(singleton(Type.TInt), a)]), new Type(/* TList */ 5, [a]))), ofArray(["count", "initializer"])], ["List.take", new Scheme(singleton(0), fn(ofArray([Type.TInt, new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [a]))), ofArray(["count", "values"])], ["List.skip", new Scheme(singleton(0), fn(ofArray([Type.TInt, new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [a]))), ofArray(["count", "values"])], ["List.takeWhile", new Scheme(singleton(0), fn(ofArray([fn(singleton(a), Type.TBool), new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [a]))), ofArray(["predicate", "values"])], ["List.skipWhile", new Scheme(singleton(0), fn(ofArray([fn(singleton(a), Type.TBool), new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [a]))), ofArray(["predicate", "values"])], ["List.partition", new Scheme(singleton(0), fn(ofArray([fn(singleton(a), Type.TBool), new Type(/* TList */ 5, [a])]), new Type(/* TTuple */ 7, [ofArray([new Type(/* TList */ 5, [a]), new Type(/* TList */ 5, [a])])]))), ofArray(["predicate", "values"])], ["List.zip", new Scheme(ofArray([0, 1]), fn(ofArray([new Type(/* TList */ 5, [a]), new Type(/* TList */ 5, [b])]), new Type(/* TList */ 5, [new Type(/* TTuple */ 7, [ofArray([a, b])])]))), ofArray(["left", "right"])], ["List.unzip", new Scheme(ofArray([0, 1]), fn(singleton(new Type(/* TList */ 5, [new Type(/* TTuple */ 7, [ofArray([a, b])])])), new Type(/* TTuple */ 7, [ofArray([new Type(/* TList */ 5, [a]), new Type(/* TList */ 5, [b])])]))), singleton("pairs")], ["List.chunkBySize", new Scheme(singleton(0), fn(ofArray([Type.TInt, new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [new Type(/* TList */ 5, [a])]))), ofArray(["size", "values"])], ["List.scan", new Scheme(ofArray([0, 3]), fn(ofArray([fn(ofArray([s, a]), s), s, new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [s]))), ofArray(["folder", "state", "values"])], ["List.sortWith", new Scheme(singleton(0), fn(ofArray([fn(ofArray([a, a]), Type.TInt), new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [a]))), ofArray(["comparer", "values"])], ["List.sortBy", new Scheme(ofArray([0, 2]), fn(ofArray([fn(singleton(a), k), new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [a]))), ofArray(["projection", "values"])], ["List.distinctBy", new Scheme(ofArray([0, 2]), fn(ofArray([fn(singleton(a), k), new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [a]))), ofArray(["projection", "values"])], ["List.groupBy", new Scheme(ofArray([0, 2]), fn(ofArray([fn(singleton(a), k), new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [new Type(/* TTuple */ 7, [ofArray([k, new Type(/* TList */ 5, [a])])])]))), ofArray(["projection", "values"])], ["List.countBy", new Scheme(ofArray([0, 2]), fn(ofArray([fn(singleton(a), k), new Type(/* TList */ 5, [a])]), new Type(/* TList */ 5, [new Type(/* TTuple */ 7, [ofArray([k, Type.TInt])])]))), ofArray(["projection", "values"])], ["Map.keys", new Scheme(ofArray([0, 2]), fn(singleton(new Type(/* TMap */ 9, [k, a])), new Type(/* TList */ 5, [k]))), singleton("values")], ["Map.values", new Scheme(ofArray([0, 2]), fn(singleton(new Type(/* TMap */ 9, [k, a])), new Type(/* TList */ 5, [a]))), singleton("values")], ["Map.toList", new Scheme(ofArray([0, 2]), fn(singleton(new Type(/* TMap */ 9, [k, a])), new Type(/* TList */ 5, [new Type(/* TTuple */ 7, [ofArray([k, a])])]))), singleton("values")], ["Map.exists", new Scheme(ofArray([0, 2]), fn(ofArray([fn(ofArray([k, a]), Type.TBool), new Type(/* TMap */ 9, [k, a])]), Type.TBool)), ofArray(["predicate", "values"])], ["Map.forall", new Scheme(ofArray([0, 2]), fn(ofArray([fn(ofArray([k, a]), Type.TBool), new Type(/* TMap */ 9, [k, a])]), Type.TBool)), ofArray(["predicate", "values"])], ["Map.update", new Scheme(ofArray([0, 2]), fn(ofArray([k, fn(singleton(new Type(/* TOption */ 10, [a])), new Type(/* TOption */ 10, [a])), new Type(/* TMap */ 9, [k, a])]), new Type(/* TMap */ 9, [k, a]))), ofArray(["key", "updater", "values"])], ["Map.mergeWith", new Scheme(ofArray([0, 2]), fn(ofArray([fn(ofArray([k, a, a]), a), new Type(/* TMap */ 9, [k, a]), new Type(/* TMap */ 9, [k, a])]), new Type(/* TMap */ 9, [k, a]))), ofArray(["resolver", "left", "right"])], ["Option.bind", new Scheme(ofArray([0, 1]), fn(ofArray([fn(singleton(a), new Type(/* TOption */ 10, [b])), new Type(/* TOption */ 10, [a])]), new Type(/* TOption */ 10, [b]))), ofArray(["binder", "value"])], ["Option.flatten", new Scheme(singleton(0), fn(singleton(new Type(/* TOption */ 10, [new Type(/* TOption */ 10, [a])])), new Type(/* TOption */ 10, [a]))), singleton("value")], ["Option.filter", new Scheme(singleton(0), fn(ofArray([fn(singleton(a), Type.TBool), new Type(/* TOption */ 10, [a])]), new Type(/* TOption */ 10, [a]))), ofArray(["predicate", "value"])], ["Option.orElse", new Scheme(singleton(0), fn(ofArray([new Type(/* TOption */ 10, [a]), new Type(/* TOption */ 10, [a])]), new Type(/* TOption */ 10, [a]))), ofArray(["fallback", "value"])], ["Option.orElseWith", new Scheme(singleton(0), fn(ofArray([fn(singleton(Type.TUnit), new Type(/* TOption */ 10, [a])), new Type(/* TOption */ 10, [a])]), new Type(/* TOption */ 10, [a]))), ofArray(["fallback", "value"])], ["Option.map2", new Scheme(ofArray([0, 1, 3]), fn(ofArray([fn(ofArray([a, b]), s), new Type(/* TOption */ 10, [a]), new Type(/* TOption */ 10, [b])]), new Type(/* TOption */ 10, [s]))), ofArray(["mapper", "left", "right"])], ["Option.toList", new Scheme(singleton(0), fn(singleton(new Type(/* TOption */ 10, [a])), new Type(/* TList */ 5, [a]))), singleton("value")], ["Path.normalize", new Scheme(empty(), fn(singleton(Type.TString), Type.TString)), singleton("path")], ["Path.isAbsolute", new Scheme(empty(), fn(singleton(Type.TString), Type.TBool)), singleton("path")], ["Path.combine", new Scheme(empty(), fn(ofArray([Type.TString, Type.TString]), Type.TString)), ofArray(["left", "right"])], ["Path.fileName", new Scheme(empty(), fn(singleton(Type.TString), Type.TString)), singleton("path")], ["Path.extension", new Scheme(empty(), fn(singleton(Type.TString), new Type(/* TOption */ 10, [Type.TString]))), singleton("path")], ["Path.fileNameWithoutExtension", new Scheme(empty(), fn(singleton(Type.TString), Type.TString)), singleton("path")], ["Path.parent", new Scheme(empty(), fn(singleton(Type.TString), new Type(/* TOption */ 10, [Type.TString]))), singleton("path")], ["Path.relative", new Scheme(empty(), fn(ofArray([Type.TString, Type.TString]), new Type(/* TOption */ 10, [Type.TString]))), ofArray(["basePath", "targetPath"])], ["Glob.isMatch", new Scheme(empty(), fn(ofArray([Type.TString, Type.TString]), Type.TBool)), ofArray(["pattern", "path"])], ["Glob.filter", new Scheme(empty(), fn(ofArray([Type.TString, new Type(/* TList */ 5, [Type.TString])]), new Type(/* TList */ 5, [Type.TString]))), ofArray(["pattern", "paths"])], ["SemVer.tryParse", new Scheme(empty(), fn(singleton(Type.TString), new Type(/* TOption */ 10, [versionType]))), singleton("version")], ["SemVer.format", new Scheme(empty(), fn(singleton(versionType), Type.TString)), singleton("version")], ["SemVer.compare", new Scheme(empty(), fn(ofArray([Type.TString, Type.TString]), new Type(/* TOption */ 10, [Type.TInt]))), ofArray(["left", "right"])]]);
36
+
37
+ export const names = ofList_1(map((tupledArg) => tupledArg[0], signatures), {
38
+ Compare: (x, y) => (comparePrimitives(x, y) | 0),
39
+ });
40
+
41
+ export const totalFunctions = ofSeq(["String.compare", "Int.min", "Int.max", "Float.abs", "Float.min", "Float.max", "Float.floor", "Float.ceil", "Float.round", "Float.truncate", "Float.sqrt", "Float.log", "Float.log10", "Float.exp", "Float.sin", "Float.cos", "Float.tan", "Float.asin", "Float.acos", "Float.atan", "Float.pow", "Float.atan2", "Float.isNaN", "Float.isInfinity", "Float.isFinite", "Float.pi", "Int.toFloat", "Float.tryToInt", "String.length", "String.isEmpty", "String.isWhiteSpace", "String.trim", "String.trimStart", "String.trimEnd", "String.splitLines", "String.startsWith", "String.contains"], {
42
+ Compare: (x, y) => (comparePrimitives(x, y) | 0),
43
+ });
44
+
45
+ export function normalizePath(path) {
46
+ const absolute = startsWith(path, "/", 4);
47
+ const text = join("/", reverse(fold((acc, part) => {
48
+ let matchResult, head_1, tail_1;
49
+ switch (part) {
50
+ case "":
51
+ case ".": {
52
+ matchResult = 0;
53
+ break;
54
+ }
55
+ case "..": {
56
+ if (!isEmpty(acc)) {
57
+ if (head_2(acc) !== "..") {
58
+ matchResult = 1;
59
+ head_1 = head_2(acc);
60
+ tail_1 = tail_2(acc);
61
+ }
62
+ else if (absolute) {
63
+ matchResult = 2;
64
+ }
65
+ else {
66
+ matchResult = 3;
67
+ }
68
+ }
69
+ else if (absolute) {
70
+ matchResult = 2;
71
+ }
72
+ else {
73
+ matchResult = 3;
74
+ }
75
+ break;
76
+ }
77
+ default:
78
+ matchResult = 3;
79
+ }
80
+ switch (matchResult) {
81
+ case 0:
82
+ return acc;
83
+ case 1:
84
+ return tail_1;
85
+ case 2:
86
+ return acc;
87
+ default:
88
+ return cons(part, acc);
89
+ }
90
+ }, empty(), split(path, ["/"], undefined, 0))));
91
+ if (absolute) {
92
+ return "/" + text;
93
+ }
94
+ else if (text === "") {
95
+ return ".";
96
+ }
97
+ else {
98
+ return text;
99
+ }
100
+ }
101
+
102
+ export function fileName(path) {
103
+ const path_1 = trimEnd(path, "/");
104
+ return substring(path_1, path_1.lastIndexOf("/") + 1);
105
+ }
106
+
107
+ export function relativePath(basis, target) {
108
+ const matchValue = normalizePath(basis);
109
+ const target_1 = normalizePath(target);
110
+ const basis_1 = matchValue;
111
+ if (startsWith(basis_1, "/", 4) !== startsWith(target_1, "/", 4)) {
112
+ return undefined;
113
+ }
114
+ else {
115
+ const parts = (path) => {
116
+ let array;
117
+ return ofArray((array = split(path, ["/"], undefined, 0), array.filter((part) => {
118
+ if (part !== "") {
119
+ return part !== ".";
120
+ }
121
+ else {
122
+ return false;
123
+ }
124
+ })));
125
+ };
126
+ const removeCommon = (left_mut, right_mut) => {
127
+ removeCommon:
128
+ while (true) {
129
+ const left = left_mut, right = right_mut;
130
+ let matchResult, a_2, b_2, xs_1, ys_1;
131
+ if (!isEmpty(left)) {
132
+ if (!isEmpty(right)) {
133
+ if (equals(head_2(left), head_2(right))) {
134
+ matchResult = 0;
135
+ a_2 = head_2(left);
136
+ b_2 = head_2(right);
137
+ xs_1 = tail_2(left);
138
+ ys_1 = tail_2(right);
139
+ }
140
+ else {
141
+ matchResult = 1;
142
+ }
143
+ }
144
+ else {
145
+ matchResult = 1;
146
+ }
147
+ }
148
+ else {
149
+ matchResult = 1;
150
+ }
151
+ switch (matchResult) {
152
+ case 0: {
153
+ left_mut = xs_1;
154
+ right_mut = ys_1;
155
+ continue removeCommon;
156
+ }
157
+ default:
158
+ return [left, right];
159
+ }
160
+ break;
161
+ }
162
+ };
163
+ const patternInput_1 = removeCommon(parts(basis_1), parts(target_1));
164
+ const left_1 = patternInput_1[0];
165
+ if (contains("..", left_1, {
166
+ Equals: (x, y) => (x === y),
167
+ GetHashCode: (x) => (stringHash(x) | 0),
168
+ })) {
169
+ return undefined;
170
+ }
171
+ else {
172
+ return normalizePath(join("/", append(map((_arg) => "..", left_1), patternInput_1[1])));
173
+ }
174
+ }
175
+ }
176
+
177
+ function segmentMatch(pattern, text) {
178
+ let previous = fill(new Array(text.length + 1), 0, text.length + 1, false);
179
+ setItem(previous, 0, true);
180
+ for (let tokenIndex = 0; tokenIndex <= (pattern.length - 1); tokenIndex++) {
181
+ const token = getCharAtIndex(pattern, tokenIndex);
182
+ const current = fill(new Array(text.length + 1), 0, text.length + 1, false);
183
+ if (token === "*") {
184
+ setItem(current, 0, item(0, previous));
185
+ }
186
+ for (let index = 1; index <= text.length; index++) {
187
+ setItem(current, index, (token === "*") ? (item(index, previous) ? true : item(index - 1, current)) : (item(index - 1, previous) && ((token === "?") ? true : (token === getCharAtIndex(text, index - 1)))));
188
+ }
189
+ previous = current;
190
+ }
191
+ return item(text.length, previous);
192
+ }
193
+
194
+ export function globMatch(pattern, path) {
195
+ const tokens = split(pattern, ["/"], undefined, 0);
196
+ const parts = split(path, ["/"], undefined, 0);
197
+ if (tokens.some((token) => {
198
+ if (token.indexOf("**") >= 0) {
199
+ return token !== "**";
200
+ }
201
+ else {
202
+ return false;
203
+ }
204
+ })) {
205
+ throw Operators_InvalidArg("pattern", "Glob ** must occupy an entire path segment.");
206
+ }
207
+ let previous = fill(new Array(parts.length + 1), 0, parts.length + 1, false);
208
+ setItem(previous, 0, true);
209
+ for (let idx = 0; idx <= (tokens.length - 1); idx++) {
210
+ const token_1 = item(idx, tokens);
211
+ const current = fill(new Array(parts.length + 1), 0, parts.length + 1, false);
212
+ if (token_1 === "**") {
213
+ setItem(current, 0, item(0, previous));
214
+ }
215
+ for (let index = 1; index <= parts.length; index++) {
216
+ setItem(current, index, (token_1 === "**") ? (item(index, previous) ? true : (item(index - 1, current) && (item(index - 1, parts) !== ""))) : (item(index - 1, previous) && segmentMatch(token_1, item(index - 1, parts))));
217
+ }
218
+ previous = current;
219
+ }
220
+ return item(parts.length, previous);
221
+ }
222
+
223
+ function digits(text) {
224
+ if (text.length > 0) {
225
+ return forAll((c) => {
226
+ if (c >= "0") {
227
+ return c <= "9";
228
+ }
229
+ else {
230
+ return false;
231
+ }
232
+ }, text.split(""));
233
+ }
234
+ else {
235
+ return false;
236
+ }
237
+ }
238
+
239
+ function numericIdentifier(text) {
240
+ if (digits(text)) {
241
+ if (text === "0") {
242
+ return true;
243
+ }
244
+ else {
245
+ return !startsWith(text, "0", 4);
246
+ }
247
+ }
248
+ else {
249
+ return false;
250
+ }
251
+ }
252
+
253
+ function validIdentifiers(allowLeadingZeros, text) {
254
+ const array = split(text, ["."], undefined, 0);
255
+ return array.every((part) => {
256
+ if ((part.length > 0) && forAll((c) => {
257
+ if ((((c >= "0") && (c <= "9")) ? true : ((c >= "a") && (c <= "z"))) ? true : ((c >= "A") && (c <= "Z"))) {
258
+ return true;
259
+ }
260
+ else {
261
+ return c === "-";
262
+ }
263
+ }, part.split(""))) {
264
+ if (allowLeadingZeros ? true : !digits(part)) {
265
+ return true;
266
+ }
267
+ else {
268
+ return numericIdentifier(part);
269
+ }
270
+ }
271
+ else {
272
+ return false;
273
+ }
274
+ });
275
+ }
276
+
277
+ /**
278
+ * Decimal components remain strings so SemVer precedence has no integer size limit.
279
+ */
280
+ export function parseVersion(text) {
281
+ const splitOnce = (separator, value) => {
282
+ const matchValue = value.indexOf(separator) | 0;
283
+ if (matchValue === -1) {
284
+ return [value, ""];
285
+ }
286
+ else {
287
+ const index = matchValue | 0;
288
+ return [substring(value, 0, index), substring(value, index + 1)];
289
+ }
290
+ };
291
+ const patternInput = splitOnce("+", text);
292
+ const withoutBuild = patternInput[0];
293
+ const build = patternInput[1];
294
+ const patternInput_1 = splitOnce("-", withoutBuild);
295
+ const prerelease = patternInput_1[1];
296
+ const numbers = split(patternInput_1[0], ["."], undefined, 0);
297
+ if ((((numbers.length !== 3) ? true : !numbers.every(numericIdentifier)) ? true : ((text.indexOf("+") >= 0) && !validIdentifiers(true, build))) ? true : ((withoutBuild.indexOf("-") >= 0) && !validIdentifiers(false, prerelease))) {
298
+ return undefined;
299
+ }
300
+ else {
301
+ return [item(0, numbers), item(1, numbers), item(2, numbers), prerelease, build];
302
+ }
303
+ }
304
+
305
+ export function formatVersion(parts) {
306
+ const text = (join(".", parts.slice(0, 3)) + ((item(3, parts) === "") ? "" : ("-" + item(3, parts)))) + ((item(4, parts) === "") ? "" : ("+" + item(4, parts)));
307
+ if (parseVersion(text) == null) {
308
+ throw Operators_InvalidArg("version", "Invalid semantic version components.");
309
+ }
310
+ return text;
311
+ }
312
+
313
+ export function compareVersions(left, right) {
314
+ const ordinal = (a_1, b_1) => (sign(compareOrdinal(a_1, b_1)) | 0);
315
+ const number = (a_2, b_2) => {
316
+ if (a_2.length === b_2.length) {
317
+ return ordinal(a_2, b_2) | 0;
318
+ }
319
+ else {
320
+ return comparePrimitives(a_2.length, b_2.length) | 0;
321
+ }
322
+ };
323
+ const compareParts = (comparePart_mut, left_1_mut, right_1_mut) => {
324
+ compareParts:
325
+ while (true) {
326
+ const comparePart = comparePart_mut, left_1 = left_1_mut, right_1 = right_1_mut;
327
+ if (!isEmpty(left_1)) {
328
+ if (!isEmpty(right_1)) {
329
+ const order = comparePart(head_2(left_1))(head_2(right_1)) | 0;
330
+ if (order === 0) {
331
+ comparePart_mut = comparePart;
332
+ left_1_mut = tail_2(left_1);
333
+ right_1_mut = tail_2(right_1);
334
+ continue compareParts;
335
+ }
336
+ else {
337
+ return order | 0;
338
+ }
339
+ }
340
+ else {
341
+ return 1;
342
+ }
343
+ }
344
+ else if (isEmpty(right_1)) {
345
+ return 0;
346
+ }
347
+ else {
348
+ return -1;
349
+ }
350
+ break;
351
+ }
352
+ };
353
+ const core = compareParts(curry2(number), ofArray(left.slice(0, 3)), ofArray(right.slice(0, 3))) | 0;
354
+ if (core !== 0) {
355
+ return core | 0;
356
+ }
357
+ else if (item(3, left) === item(3, right)) {
358
+ return 0;
359
+ }
360
+ else if (item(3, left) === "") {
361
+ return 1;
362
+ }
363
+ else if (item(3, right) === "") {
364
+ return -1;
365
+ }
366
+ else {
367
+ return compareParts((a_4) => ((b_4) => {
368
+ const matchValue_1 = digits(a_4);
369
+ const matchValue_2 = digits(b_4);
370
+ return (matchValue_1 ? (matchValue_2 ? number(a_4, b_4) : -1) : (matchValue_2 ? 1 : ordinal(a_4, b_4))) | 0;
371
+ }), ofArray(split(item(3, left), ["."], undefined, 0)), ofArray(split(item(3, right), ["."], undefined, 0))) | 0;
372
+ }
373
+ }
374
+
375
+ function versionValue(parts) {
376
+ return new Value(/* VRecord */ 7, [ofList(zip(versionFields, map((Item) => (new Value(/* VString */ 4, [Item])), ofArray(parts))), {
377
+ Compare: (x, y) => (comparePrimitives(x, y) | 0),
378
+ })]);
379
+ }
380
+
381
+ function whitespace(c) {
382
+ if (((((((((((c >= "\t") && (c <= "\r")) ? true : (c === " ")) ? true : (c === "\u0085")) ? true : (c === " ")) ? true : (c === " ")) ? true : ((c >= " ") && (c <= " "))) ? true : (c === "\u2028")) ? true : (c === "\u2029")) ? true : (c === " ")) ? true : (c === " ")) {
383
+ return true;
384
+ }
385
+ else {
386
+ return c === " ";
387
+ }
388
+ }
389
+
390
+ function trimText(left, right, text) {
391
+ let start = 0;
392
+ let finish = text.length;
393
+ if (left) {
394
+ while ((start < finish) && whitespace(getCharAtIndex(text, start))) {
395
+ start = ((start + 1) | 0);
396
+ }
397
+ }
398
+ if (right) {
399
+ while ((finish > start) && whitespace(getCharAtIndex(text, finish - 1))) {
400
+ finish = ((finish - 1) | 0);
401
+ }
402
+ }
403
+ return substring(text, start, finish - start);
404
+ }
405
+
406
+ export function invokeScalar(name, arguments$) {
407
+ let option_1, option_3, n, n_1, n_2;
408
+ let matchResult, left, right, x_6, x_7, x_8, y, x_9, y_1, high_2, low_2, x_10, x_11, x_12, x_13, y_2, x_14, y_3, high_3, low_3, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_27, x_28, x_29, x_30, y_4, x_31, y_5, x_32, x_33, x_34, x_35, x_36, x_37, x_38, x_39, x_40, x_41, x_42, x_43, needle, x_44, needle_1, x_45, n_3, x_46, n_4, x_47, n_5, x_48, path, path_1, left_1, right_1, path_2, path_3, path_4, path_5, basis, target, path_6, pattern, paths, pattern_1, text, fields, left_2, right_2;
409
+ switch (name) {
410
+ case "String.compare": {
411
+ if (!isEmpty(arguments$)) {
412
+ if (head_2(arguments$).tag === 4) {
413
+ if (!isEmpty(tail_2(arguments$))) {
414
+ if (head_2(tail_2(arguments$)).tag === 4) {
415
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
416
+ matchResult = 0;
417
+ left = head_2(arguments$).fields[0];
418
+ right = head_2(tail_2(arguments$)).fields[0];
419
+ }
420
+ else {
421
+ matchResult = 58;
422
+ }
423
+ }
424
+ else {
425
+ matchResult = 58;
426
+ }
427
+ }
428
+ else {
429
+ matchResult = 58;
430
+ }
431
+ }
432
+ else {
433
+ matchResult = 58;
434
+ }
435
+ }
436
+ else {
437
+ matchResult = 58;
438
+ }
439
+ break;
440
+ }
441
+ case "Int.abs": {
442
+ if (!isEmpty(arguments$)) {
443
+ if (head_2(arguments$).tag === 1) {
444
+ if (isEmpty(tail_2(arguments$))) {
445
+ matchResult = 1;
446
+ x_6 = head_2(arguments$).fields[0];
447
+ }
448
+ else {
449
+ matchResult = 58;
450
+ }
451
+ }
452
+ else {
453
+ matchResult = 58;
454
+ }
455
+ }
456
+ else {
457
+ matchResult = 58;
458
+ }
459
+ break;
460
+ }
461
+ case "Int.sign": {
462
+ if (!isEmpty(arguments$)) {
463
+ if (head_2(arguments$).tag === 1) {
464
+ if (isEmpty(tail_2(arguments$))) {
465
+ matchResult = 2;
466
+ x_7 = head_2(arguments$).fields[0];
467
+ }
468
+ else {
469
+ matchResult = 58;
470
+ }
471
+ }
472
+ else {
473
+ matchResult = 58;
474
+ }
475
+ }
476
+ else {
477
+ matchResult = 58;
478
+ }
479
+ break;
480
+ }
481
+ case "Int.min": {
482
+ if (!isEmpty(arguments$)) {
483
+ if (head_2(arguments$).tag === 1) {
484
+ if (!isEmpty(tail_2(arguments$))) {
485
+ if (head_2(tail_2(arguments$)).tag === 1) {
486
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
487
+ matchResult = 3;
488
+ x_8 = head_2(arguments$).fields[0];
489
+ y = head_2(tail_2(arguments$)).fields[0];
490
+ }
491
+ else {
492
+ matchResult = 58;
493
+ }
494
+ }
495
+ else {
496
+ matchResult = 58;
497
+ }
498
+ }
499
+ else {
500
+ matchResult = 58;
501
+ }
502
+ }
503
+ else {
504
+ matchResult = 58;
505
+ }
506
+ }
507
+ else {
508
+ matchResult = 58;
509
+ }
510
+ break;
511
+ }
512
+ case "Int.max": {
513
+ if (!isEmpty(arguments$)) {
514
+ if (head_2(arguments$).tag === 1) {
515
+ if (!isEmpty(tail_2(arguments$))) {
516
+ if (head_2(tail_2(arguments$)).tag === 1) {
517
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
518
+ matchResult = 4;
519
+ x_9 = head_2(arguments$).fields[0];
520
+ y_1 = head_2(tail_2(arguments$)).fields[0];
521
+ }
522
+ else {
523
+ matchResult = 58;
524
+ }
525
+ }
526
+ else {
527
+ matchResult = 58;
528
+ }
529
+ }
530
+ else {
531
+ matchResult = 58;
532
+ }
533
+ }
534
+ else {
535
+ matchResult = 58;
536
+ }
537
+ }
538
+ else {
539
+ matchResult = 58;
540
+ }
541
+ break;
542
+ }
543
+ case "Int.clamp": {
544
+ if (!isEmpty(arguments$)) {
545
+ if (head_2(arguments$).tag === 1) {
546
+ if (!isEmpty(tail_2(arguments$))) {
547
+ if (head_2(tail_2(arguments$)).tag === 1) {
548
+ if (!isEmpty(tail_2(tail_2(arguments$)))) {
549
+ if (head_2(tail_2(tail_2(arguments$))).tag === 1) {
550
+ if (isEmpty(tail_2(tail_2(tail_2(arguments$))))) {
551
+ if (compare(head_2(arguments$).fields[0], head_2(tail_2(arguments$)).fields[0]) <= 0) {
552
+ matchResult = 5;
553
+ high_2 = head_2(tail_2(arguments$)).fields[0];
554
+ low_2 = head_2(arguments$).fields[0];
555
+ x_10 = head_2(tail_2(tail_2(arguments$))).fields[0];
556
+ }
557
+ else {
558
+ matchResult = 58;
559
+ }
560
+ }
561
+ else {
562
+ matchResult = 58;
563
+ }
564
+ }
565
+ else {
566
+ matchResult = 58;
567
+ }
568
+ }
569
+ else {
570
+ matchResult = 58;
571
+ }
572
+ }
573
+ else {
574
+ matchResult = 58;
575
+ }
576
+ }
577
+ else {
578
+ matchResult = 58;
579
+ }
580
+ }
581
+ else {
582
+ matchResult = 58;
583
+ }
584
+ }
585
+ else {
586
+ matchResult = 58;
587
+ }
588
+ break;
589
+ }
590
+ case "Float.abs": {
591
+ if (!isEmpty(arguments$)) {
592
+ if (head_2(arguments$).tag === 2) {
593
+ if (isEmpty(tail_2(arguments$))) {
594
+ matchResult = 6;
595
+ x_11 = head_2(arguments$).fields[0];
596
+ }
597
+ else {
598
+ matchResult = 58;
599
+ }
600
+ }
601
+ else {
602
+ matchResult = 58;
603
+ }
604
+ }
605
+ else {
606
+ matchResult = 58;
607
+ }
608
+ break;
609
+ }
610
+ case "Float.sign": {
611
+ if (!isEmpty(arguments$)) {
612
+ if (head_2(arguments$).tag === 2) {
613
+ if (isEmpty(tail_2(arguments$))) {
614
+ if (!Number.isNaN(head_2(arguments$).fields[0])) {
615
+ matchResult = 7;
616
+ x_12 = head_2(arguments$).fields[0];
617
+ }
618
+ else {
619
+ matchResult = 58;
620
+ }
621
+ }
622
+ else {
623
+ matchResult = 58;
624
+ }
625
+ }
626
+ else {
627
+ matchResult = 58;
628
+ }
629
+ }
630
+ else {
631
+ matchResult = 58;
632
+ }
633
+ break;
634
+ }
635
+ case "Float.min": {
636
+ if (!isEmpty(arguments$)) {
637
+ if (head_2(arguments$).tag === 2) {
638
+ if (!isEmpty(tail_2(arguments$))) {
639
+ if (head_2(tail_2(arguments$)).tag === 2) {
640
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
641
+ matchResult = 8;
642
+ x_13 = head_2(arguments$).fields[0];
643
+ y_2 = head_2(tail_2(arguments$)).fields[0];
644
+ }
645
+ else {
646
+ matchResult = 58;
647
+ }
648
+ }
649
+ else {
650
+ matchResult = 58;
651
+ }
652
+ }
653
+ else {
654
+ matchResult = 58;
655
+ }
656
+ }
657
+ else {
658
+ matchResult = 58;
659
+ }
660
+ }
661
+ else {
662
+ matchResult = 58;
663
+ }
664
+ break;
665
+ }
666
+ case "Float.max": {
667
+ if (!isEmpty(arguments$)) {
668
+ if (head_2(arguments$).tag === 2) {
669
+ if (!isEmpty(tail_2(arguments$))) {
670
+ if (head_2(tail_2(arguments$)).tag === 2) {
671
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
672
+ matchResult = 9;
673
+ x_14 = head_2(arguments$).fields[0];
674
+ y_3 = head_2(tail_2(arguments$)).fields[0];
675
+ }
676
+ else {
677
+ matchResult = 58;
678
+ }
679
+ }
680
+ else {
681
+ matchResult = 58;
682
+ }
683
+ }
684
+ else {
685
+ matchResult = 58;
686
+ }
687
+ }
688
+ else {
689
+ matchResult = 58;
690
+ }
691
+ }
692
+ else {
693
+ matchResult = 58;
694
+ }
695
+ break;
696
+ }
697
+ case "Float.clamp": {
698
+ if (!isEmpty(arguments$)) {
699
+ if (head_2(arguments$).tag === 2) {
700
+ if (!isEmpty(tail_2(arguments$))) {
701
+ if (head_2(tail_2(arguments$)).tag === 2) {
702
+ if (!isEmpty(tail_2(tail_2(arguments$)))) {
703
+ if (head_2(tail_2(tail_2(arguments$))).tag === 2) {
704
+ if (isEmpty(tail_2(tail_2(tail_2(arguments$))))) {
705
+ if (head_2(arguments$).fields[0] <= head_2(tail_2(arguments$)).fields[0]) {
706
+ matchResult = 10;
707
+ high_3 = head_2(tail_2(arguments$)).fields[0];
708
+ low_3 = head_2(arguments$).fields[0];
709
+ x_15 = head_2(tail_2(tail_2(arguments$))).fields[0];
710
+ }
711
+ else {
712
+ matchResult = 58;
713
+ }
714
+ }
715
+ else {
716
+ matchResult = 58;
717
+ }
718
+ }
719
+ else {
720
+ matchResult = 58;
721
+ }
722
+ }
723
+ else {
724
+ matchResult = 58;
725
+ }
726
+ }
727
+ else {
728
+ matchResult = 58;
729
+ }
730
+ }
731
+ else {
732
+ matchResult = 58;
733
+ }
734
+ }
735
+ else {
736
+ matchResult = 58;
737
+ }
738
+ }
739
+ else {
740
+ matchResult = 58;
741
+ }
742
+ break;
743
+ }
744
+ case "Float.floor": {
745
+ if (!isEmpty(arguments$)) {
746
+ if (head_2(arguments$).tag === 2) {
747
+ if (isEmpty(tail_2(arguments$))) {
748
+ matchResult = 11;
749
+ x_16 = head_2(arguments$).fields[0];
750
+ }
751
+ else {
752
+ matchResult = 58;
753
+ }
754
+ }
755
+ else {
756
+ matchResult = 58;
757
+ }
758
+ }
759
+ else {
760
+ matchResult = 58;
761
+ }
762
+ break;
763
+ }
764
+ case "Float.ceil": {
765
+ if (!isEmpty(arguments$)) {
766
+ if (head_2(arguments$).tag === 2) {
767
+ if (isEmpty(tail_2(arguments$))) {
768
+ matchResult = 12;
769
+ x_17 = head_2(arguments$).fields[0];
770
+ }
771
+ else {
772
+ matchResult = 58;
773
+ }
774
+ }
775
+ else {
776
+ matchResult = 58;
777
+ }
778
+ }
779
+ else {
780
+ matchResult = 58;
781
+ }
782
+ break;
783
+ }
784
+ case "Float.round": {
785
+ if (!isEmpty(arguments$)) {
786
+ if (head_2(arguments$).tag === 2) {
787
+ if (isEmpty(tail_2(arguments$))) {
788
+ matchResult = 13;
789
+ x_18 = head_2(arguments$).fields[0];
790
+ }
791
+ else {
792
+ matchResult = 58;
793
+ }
794
+ }
795
+ else {
796
+ matchResult = 58;
797
+ }
798
+ }
799
+ else {
800
+ matchResult = 58;
801
+ }
802
+ break;
803
+ }
804
+ case "Float.truncate": {
805
+ if (!isEmpty(arguments$)) {
806
+ if (head_2(arguments$).tag === 2) {
807
+ if (isEmpty(tail_2(arguments$))) {
808
+ matchResult = 14;
809
+ x_19 = head_2(arguments$).fields[0];
810
+ }
811
+ else {
812
+ matchResult = 58;
813
+ }
814
+ }
815
+ else {
816
+ matchResult = 58;
817
+ }
818
+ }
819
+ else {
820
+ matchResult = 58;
821
+ }
822
+ break;
823
+ }
824
+ case "Float.sqrt": {
825
+ if (!isEmpty(arguments$)) {
826
+ if (head_2(arguments$).tag === 2) {
827
+ if (isEmpty(tail_2(arguments$))) {
828
+ matchResult = 15;
829
+ x_20 = head_2(arguments$).fields[0];
830
+ }
831
+ else {
832
+ matchResult = 58;
833
+ }
834
+ }
835
+ else {
836
+ matchResult = 58;
837
+ }
838
+ }
839
+ else {
840
+ matchResult = 58;
841
+ }
842
+ break;
843
+ }
844
+ case "Float.log": {
845
+ if (!isEmpty(arguments$)) {
846
+ if (head_2(arguments$).tag === 2) {
847
+ if (isEmpty(tail_2(arguments$))) {
848
+ matchResult = 16;
849
+ x_21 = head_2(arguments$).fields[0];
850
+ }
851
+ else {
852
+ matchResult = 58;
853
+ }
854
+ }
855
+ else {
856
+ matchResult = 58;
857
+ }
858
+ }
859
+ else {
860
+ matchResult = 58;
861
+ }
862
+ break;
863
+ }
864
+ case "Float.log10": {
865
+ if (!isEmpty(arguments$)) {
866
+ if (head_2(arguments$).tag === 2) {
867
+ if (isEmpty(tail_2(arguments$))) {
868
+ matchResult = 17;
869
+ x_22 = head_2(arguments$).fields[0];
870
+ }
871
+ else {
872
+ matchResult = 58;
873
+ }
874
+ }
875
+ else {
876
+ matchResult = 58;
877
+ }
878
+ }
879
+ else {
880
+ matchResult = 58;
881
+ }
882
+ break;
883
+ }
884
+ case "Float.exp": {
885
+ if (!isEmpty(arguments$)) {
886
+ if (head_2(arguments$).tag === 2) {
887
+ if (isEmpty(tail_2(arguments$))) {
888
+ matchResult = 18;
889
+ x_23 = head_2(arguments$).fields[0];
890
+ }
891
+ else {
892
+ matchResult = 58;
893
+ }
894
+ }
895
+ else {
896
+ matchResult = 58;
897
+ }
898
+ }
899
+ else {
900
+ matchResult = 58;
901
+ }
902
+ break;
903
+ }
904
+ case "Float.sin": {
905
+ if (!isEmpty(arguments$)) {
906
+ if (head_2(arguments$).tag === 2) {
907
+ if (isEmpty(tail_2(arguments$))) {
908
+ matchResult = 19;
909
+ x_24 = head_2(arguments$).fields[0];
910
+ }
911
+ else {
912
+ matchResult = 58;
913
+ }
914
+ }
915
+ else {
916
+ matchResult = 58;
917
+ }
918
+ }
919
+ else {
920
+ matchResult = 58;
921
+ }
922
+ break;
923
+ }
924
+ case "Float.cos": {
925
+ if (!isEmpty(arguments$)) {
926
+ if (head_2(arguments$).tag === 2) {
927
+ if (isEmpty(tail_2(arguments$))) {
928
+ matchResult = 20;
929
+ x_25 = head_2(arguments$).fields[0];
930
+ }
931
+ else {
932
+ matchResult = 58;
933
+ }
934
+ }
935
+ else {
936
+ matchResult = 58;
937
+ }
938
+ }
939
+ else {
940
+ matchResult = 58;
941
+ }
942
+ break;
943
+ }
944
+ case "Float.tan": {
945
+ if (!isEmpty(arguments$)) {
946
+ if (head_2(arguments$).tag === 2) {
947
+ if (isEmpty(tail_2(arguments$))) {
948
+ matchResult = 21;
949
+ x_26 = head_2(arguments$).fields[0];
950
+ }
951
+ else {
952
+ matchResult = 58;
953
+ }
954
+ }
955
+ else {
956
+ matchResult = 58;
957
+ }
958
+ }
959
+ else {
960
+ matchResult = 58;
961
+ }
962
+ break;
963
+ }
964
+ case "Float.asin": {
965
+ if (!isEmpty(arguments$)) {
966
+ if (head_2(arguments$).tag === 2) {
967
+ if (isEmpty(tail_2(arguments$))) {
968
+ matchResult = 22;
969
+ x_27 = head_2(arguments$).fields[0];
970
+ }
971
+ else {
972
+ matchResult = 58;
973
+ }
974
+ }
975
+ else {
976
+ matchResult = 58;
977
+ }
978
+ }
979
+ else {
980
+ matchResult = 58;
981
+ }
982
+ break;
983
+ }
984
+ case "Float.acos": {
985
+ if (!isEmpty(arguments$)) {
986
+ if (head_2(arguments$).tag === 2) {
987
+ if (isEmpty(tail_2(arguments$))) {
988
+ matchResult = 23;
989
+ x_28 = head_2(arguments$).fields[0];
990
+ }
991
+ else {
992
+ matchResult = 58;
993
+ }
994
+ }
995
+ else {
996
+ matchResult = 58;
997
+ }
998
+ }
999
+ else {
1000
+ matchResult = 58;
1001
+ }
1002
+ break;
1003
+ }
1004
+ case "Float.atan": {
1005
+ if (!isEmpty(arguments$)) {
1006
+ if (head_2(arguments$).tag === 2) {
1007
+ if (isEmpty(tail_2(arguments$))) {
1008
+ matchResult = 24;
1009
+ x_29 = head_2(arguments$).fields[0];
1010
+ }
1011
+ else {
1012
+ matchResult = 58;
1013
+ }
1014
+ }
1015
+ else {
1016
+ matchResult = 58;
1017
+ }
1018
+ }
1019
+ else {
1020
+ matchResult = 58;
1021
+ }
1022
+ break;
1023
+ }
1024
+ case "Float.pow": {
1025
+ if (!isEmpty(arguments$)) {
1026
+ if (head_2(arguments$).tag === 2) {
1027
+ if (!isEmpty(tail_2(arguments$))) {
1028
+ if (head_2(tail_2(arguments$)).tag === 2) {
1029
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1030
+ matchResult = 25;
1031
+ x_30 = head_2(arguments$).fields[0];
1032
+ y_4 = head_2(tail_2(arguments$)).fields[0];
1033
+ }
1034
+ else {
1035
+ matchResult = 58;
1036
+ }
1037
+ }
1038
+ else {
1039
+ matchResult = 58;
1040
+ }
1041
+ }
1042
+ else {
1043
+ matchResult = 58;
1044
+ }
1045
+ }
1046
+ else {
1047
+ matchResult = 58;
1048
+ }
1049
+ }
1050
+ else {
1051
+ matchResult = 58;
1052
+ }
1053
+ break;
1054
+ }
1055
+ case "Float.atan2": {
1056
+ if (!isEmpty(arguments$)) {
1057
+ if (head_2(arguments$).tag === 2) {
1058
+ if (!isEmpty(tail_2(arguments$))) {
1059
+ if (head_2(tail_2(arguments$)).tag === 2) {
1060
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1061
+ matchResult = 26;
1062
+ x_31 = head_2(arguments$).fields[0];
1063
+ y_5 = head_2(tail_2(arguments$)).fields[0];
1064
+ }
1065
+ else {
1066
+ matchResult = 58;
1067
+ }
1068
+ }
1069
+ else {
1070
+ matchResult = 58;
1071
+ }
1072
+ }
1073
+ else {
1074
+ matchResult = 58;
1075
+ }
1076
+ }
1077
+ else {
1078
+ matchResult = 58;
1079
+ }
1080
+ }
1081
+ else {
1082
+ matchResult = 58;
1083
+ }
1084
+ break;
1085
+ }
1086
+ case "Float.isNaN": {
1087
+ if (!isEmpty(arguments$)) {
1088
+ if (head_2(arguments$).tag === 2) {
1089
+ if (isEmpty(tail_2(arguments$))) {
1090
+ matchResult = 27;
1091
+ x_32 = head_2(arguments$).fields[0];
1092
+ }
1093
+ else {
1094
+ matchResult = 58;
1095
+ }
1096
+ }
1097
+ else {
1098
+ matchResult = 58;
1099
+ }
1100
+ }
1101
+ else {
1102
+ matchResult = 58;
1103
+ }
1104
+ break;
1105
+ }
1106
+ case "Float.isInfinity": {
1107
+ if (!isEmpty(arguments$)) {
1108
+ if (head_2(arguments$).tag === 2) {
1109
+ if (isEmpty(tail_2(arguments$))) {
1110
+ matchResult = 28;
1111
+ x_33 = head_2(arguments$).fields[0];
1112
+ }
1113
+ else {
1114
+ matchResult = 58;
1115
+ }
1116
+ }
1117
+ else {
1118
+ matchResult = 58;
1119
+ }
1120
+ }
1121
+ else {
1122
+ matchResult = 58;
1123
+ }
1124
+ break;
1125
+ }
1126
+ case "Float.isFinite": {
1127
+ if (!isEmpty(arguments$)) {
1128
+ if (head_2(arguments$).tag === 2) {
1129
+ if (isEmpty(tail_2(arguments$))) {
1130
+ matchResult = 29;
1131
+ x_34 = head_2(arguments$).fields[0];
1132
+ }
1133
+ else {
1134
+ matchResult = 58;
1135
+ }
1136
+ }
1137
+ else {
1138
+ matchResult = 58;
1139
+ }
1140
+ }
1141
+ else {
1142
+ matchResult = 58;
1143
+ }
1144
+ break;
1145
+ }
1146
+ case "Float.pi": {
1147
+ if (isEmpty(arguments$)) {
1148
+ matchResult = 30;
1149
+ }
1150
+ else {
1151
+ matchResult = 58;
1152
+ }
1153
+ break;
1154
+ }
1155
+ case "Int.toFloat": {
1156
+ if (!isEmpty(arguments$)) {
1157
+ if (head_2(arguments$).tag === 1) {
1158
+ if (isEmpty(tail_2(arguments$))) {
1159
+ matchResult = 31;
1160
+ x_35 = head_2(arguments$).fields[0];
1161
+ }
1162
+ else {
1163
+ matchResult = 58;
1164
+ }
1165
+ }
1166
+ else {
1167
+ matchResult = 58;
1168
+ }
1169
+ }
1170
+ else {
1171
+ matchResult = 58;
1172
+ }
1173
+ break;
1174
+ }
1175
+ case "Float.tryToInt": {
1176
+ if (!isEmpty(arguments$)) {
1177
+ if (head_2(arguments$).tag === 2) {
1178
+ if (isEmpty(tail_2(arguments$))) {
1179
+ matchResult = 32;
1180
+ x_36 = head_2(arguments$).fields[0];
1181
+ }
1182
+ else {
1183
+ matchResult = 58;
1184
+ }
1185
+ }
1186
+ else {
1187
+ matchResult = 58;
1188
+ }
1189
+ }
1190
+ else {
1191
+ matchResult = 58;
1192
+ }
1193
+ break;
1194
+ }
1195
+ case "String.length": {
1196
+ if (!isEmpty(arguments$)) {
1197
+ if (head_2(arguments$).tag === 4) {
1198
+ if (isEmpty(tail_2(arguments$))) {
1199
+ matchResult = 33;
1200
+ x_37 = head_2(arguments$).fields[0];
1201
+ }
1202
+ else {
1203
+ matchResult = 58;
1204
+ }
1205
+ }
1206
+ else {
1207
+ matchResult = 58;
1208
+ }
1209
+ }
1210
+ else {
1211
+ matchResult = 58;
1212
+ }
1213
+ break;
1214
+ }
1215
+ case "String.isEmpty": {
1216
+ if (!isEmpty(arguments$)) {
1217
+ if (head_2(arguments$).tag === 4) {
1218
+ if (isEmpty(tail_2(arguments$))) {
1219
+ matchResult = 34;
1220
+ x_38 = head_2(arguments$).fields[0];
1221
+ }
1222
+ else {
1223
+ matchResult = 58;
1224
+ }
1225
+ }
1226
+ else {
1227
+ matchResult = 58;
1228
+ }
1229
+ }
1230
+ else {
1231
+ matchResult = 58;
1232
+ }
1233
+ break;
1234
+ }
1235
+ case "String.isWhiteSpace": {
1236
+ if (!isEmpty(arguments$)) {
1237
+ if (head_2(arguments$).tag === 4) {
1238
+ if (isEmpty(tail_2(arguments$))) {
1239
+ matchResult = 35;
1240
+ x_39 = head_2(arguments$).fields[0];
1241
+ }
1242
+ else {
1243
+ matchResult = 58;
1244
+ }
1245
+ }
1246
+ else {
1247
+ matchResult = 58;
1248
+ }
1249
+ }
1250
+ else {
1251
+ matchResult = 58;
1252
+ }
1253
+ break;
1254
+ }
1255
+ case "String.trim": {
1256
+ if (!isEmpty(arguments$)) {
1257
+ if (head_2(arguments$).tag === 4) {
1258
+ if (isEmpty(tail_2(arguments$))) {
1259
+ matchResult = 36;
1260
+ x_40 = head_2(arguments$).fields[0];
1261
+ }
1262
+ else {
1263
+ matchResult = 58;
1264
+ }
1265
+ }
1266
+ else {
1267
+ matchResult = 58;
1268
+ }
1269
+ }
1270
+ else {
1271
+ matchResult = 58;
1272
+ }
1273
+ break;
1274
+ }
1275
+ case "String.trimStart": {
1276
+ if (!isEmpty(arguments$)) {
1277
+ if (head_2(arguments$).tag === 4) {
1278
+ if (isEmpty(tail_2(arguments$))) {
1279
+ matchResult = 37;
1280
+ x_41 = head_2(arguments$).fields[0];
1281
+ }
1282
+ else {
1283
+ matchResult = 58;
1284
+ }
1285
+ }
1286
+ else {
1287
+ matchResult = 58;
1288
+ }
1289
+ }
1290
+ else {
1291
+ matchResult = 58;
1292
+ }
1293
+ break;
1294
+ }
1295
+ case "String.trimEnd": {
1296
+ if (!isEmpty(arguments$)) {
1297
+ if (head_2(arguments$).tag === 4) {
1298
+ if (isEmpty(tail_2(arguments$))) {
1299
+ matchResult = 38;
1300
+ x_42 = head_2(arguments$).fields[0];
1301
+ }
1302
+ else {
1303
+ matchResult = 58;
1304
+ }
1305
+ }
1306
+ else {
1307
+ matchResult = 58;
1308
+ }
1309
+ }
1310
+ else {
1311
+ matchResult = 58;
1312
+ }
1313
+ break;
1314
+ }
1315
+ case "String.splitLines": {
1316
+ if (!isEmpty(arguments$)) {
1317
+ if (head_2(arguments$).tag === 4) {
1318
+ if (isEmpty(tail_2(arguments$))) {
1319
+ matchResult = 39;
1320
+ x_43 = head_2(arguments$).fields[0];
1321
+ }
1322
+ else {
1323
+ matchResult = 58;
1324
+ }
1325
+ }
1326
+ else {
1327
+ matchResult = 58;
1328
+ }
1329
+ }
1330
+ else {
1331
+ matchResult = 58;
1332
+ }
1333
+ break;
1334
+ }
1335
+ case "String.startsWith": {
1336
+ if (!isEmpty(arguments$)) {
1337
+ if (head_2(arguments$).tag === 4) {
1338
+ if (!isEmpty(tail_2(arguments$))) {
1339
+ if (head_2(tail_2(arguments$)).tag === 4) {
1340
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1341
+ matchResult = 40;
1342
+ needle = head_2(arguments$).fields[0];
1343
+ x_44 = head_2(tail_2(arguments$)).fields[0];
1344
+ }
1345
+ else {
1346
+ matchResult = 58;
1347
+ }
1348
+ }
1349
+ else {
1350
+ matchResult = 58;
1351
+ }
1352
+ }
1353
+ else {
1354
+ matchResult = 58;
1355
+ }
1356
+ }
1357
+ else {
1358
+ matchResult = 58;
1359
+ }
1360
+ }
1361
+ else {
1362
+ matchResult = 58;
1363
+ }
1364
+ break;
1365
+ }
1366
+ case "String.contains": {
1367
+ if (!isEmpty(arguments$)) {
1368
+ if (head_2(arguments$).tag === 4) {
1369
+ if (!isEmpty(tail_2(arguments$))) {
1370
+ if (head_2(tail_2(arguments$)).tag === 4) {
1371
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1372
+ matchResult = 41;
1373
+ needle_1 = head_2(arguments$).fields[0];
1374
+ x_45 = head_2(tail_2(arguments$)).fields[0];
1375
+ }
1376
+ else {
1377
+ matchResult = 58;
1378
+ }
1379
+ }
1380
+ else {
1381
+ matchResult = 58;
1382
+ }
1383
+ }
1384
+ else {
1385
+ matchResult = 58;
1386
+ }
1387
+ }
1388
+ else {
1389
+ matchResult = 58;
1390
+ }
1391
+ }
1392
+ else {
1393
+ matchResult = 58;
1394
+ }
1395
+ break;
1396
+ }
1397
+ case "String.padLeft": {
1398
+ if (!isEmpty(arguments$)) {
1399
+ if (head_2(arguments$).tag === 1) {
1400
+ if (!isEmpty(tail_2(arguments$))) {
1401
+ if (head_2(tail_2(arguments$)).tag === 4) {
1402
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1403
+ if ((n = head_2(arguments$).fields[0], (compare(n, 0n) >= 0) && (compare(n, toInt64_unchecked(fromInt32(2147483647))) <= 0))) {
1404
+ matchResult = 42;
1405
+ n_3 = head_2(arguments$).fields[0];
1406
+ x_46 = head_2(tail_2(arguments$)).fields[0];
1407
+ }
1408
+ else {
1409
+ matchResult = 58;
1410
+ }
1411
+ }
1412
+ else {
1413
+ matchResult = 58;
1414
+ }
1415
+ }
1416
+ else {
1417
+ matchResult = 58;
1418
+ }
1419
+ }
1420
+ else {
1421
+ matchResult = 58;
1422
+ }
1423
+ }
1424
+ else {
1425
+ matchResult = 58;
1426
+ }
1427
+ }
1428
+ else {
1429
+ matchResult = 58;
1430
+ }
1431
+ break;
1432
+ }
1433
+ case "String.padRight": {
1434
+ if (!isEmpty(arguments$)) {
1435
+ if (head_2(arguments$).tag === 1) {
1436
+ if (!isEmpty(tail_2(arguments$))) {
1437
+ if (head_2(tail_2(arguments$)).tag === 4) {
1438
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1439
+ if ((n_1 = head_2(arguments$).fields[0], (compare(n_1, 0n) >= 0) && (compare(n_1, toInt64_unchecked(fromInt32(2147483647))) <= 0))) {
1440
+ matchResult = 43;
1441
+ n_4 = head_2(arguments$).fields[0];
1442
+ x_47 = head_2(tail_2(arguments$)).fields[0];
1443
+ }
1444
+ else {
1445
+ matchResult = 58;
1446
+ }
1447
+ }
1448
+ else {
1449
+ matchResult = 58;
1450
+ }
1451
+ }
1452
+ else {
1453
+ matchResult = 58;
1454
+ }
1455
+ }
1456
+ else {
1457
+ matchResult = 58;
1458
+ }
1459
+ }
1460
+ else {
1461
+ matchResult = 58;
1462
+ }
1463
+ }
1464
+ else {
1465
+ matchResult = 58;
1466
+ }
1467
+ break;
1468
+ }
1469
+ case "String.repeat": {
1470
+ if (!isEmpty(arguments$)) {
1471
+ if (head_2(arguments$).tag === 1) {
1472
+ if (!isEmpty(tail_2(arguments$))) {
1473
+ if (head_2(tail_2(arguments$)).tag === 4) {
1474
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1475
+ if ((n_2 = head_2(arguments$).fields[0], (compare(n_2, 0n) >= 0) && (compare(n_2, toInt64_unchecked(fromInt32(2147483647))) <= 0))) {
1476
+ matchResult = 44;
1477
+ n_5 = head_2(arguments$).fields[0];
1478
+ x_48 = head_2(tail_2(arguments$)).fields[0];
1479
+ }
1480
+ else {
1481
+ matchResult = 58;
1482
+ }
1483
+ }
1484
+ else {
1485
+ matchResult = 58;
1486
+ }
1487
+ }
1488
+ else {
1489
+ matchResult = 58;
1490
+ }
1491
+ }
1492
+ else {
1493
+ matchResult = 58;
1494
+ }
1495
+ }
1496
+ else {
1497
+ matchResult = 58;
1498
+ }
1499
+ }
1500
+ else {
1501
+ matchResult = 58;
1502
+ }
1503
+ break;
1504
+ }
1505
+ case "Path.normalize": {
1506
+ if (!isEmpty(arguments$)) {
1507
+ if (head_2(arguments$).tag === 4) {
1508
+ if (isEmpty(tail_2(arguments$))) {
1509
+ matchResult = 45;
1510
+ path = head_2(arguments$).fields[0];
1511
+ }
1512
+ else {
1513
+ matchResult = 58;
1514
+ }
1515
+ }
1516
+ else {
1517
+ matchResult = 58;
1518
+ }
1519
+ }
1520
+ else {
1521
+ matchResult = 58;
1522
+ }
1523
+ break;
1524
+ }
1525
+ case "Path.isAbsolute": {
1526
+ if (!isEmpty(arguments$)) {
1527
+ if (head_2(arguments$).tag === 4) {
1528
+ if (isEmpty(tail_2(arguments$))) {
1529
+ matchResult = 46;
1530
+ path_1 = head_2(arguments$).fields[0];
1531
+ }
1532
+ else {
1533
+ matchResult = 58;
1534
+ }
1535
+ }
1536
+ else {
1537
+ matchResult = 58;
1538
+ }
1539
+ }
1540
+ else {
1541
+ matchResult = 58;
1542
+ }
1543
+ break;
1544
+ }
1545
+ case "Path.combine": {
1546
+ if (!isEmpty(arguments$)) {
1547
+ if (head_2(arguments$).tag === 4) {
1548
+ if (!isEmpty(tail_2(arguments$))) {
1549
+ if (head_2(tail_2(arguments$)).tag === 4) {
1550
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1551
+ matchResult = 47;
1552
+ left_1 = head_2(arguments$).fields[0];
1553
+ right_1 = head_2(tail_2(arguments$)).fields[0];
1554
+ }
1555
+ else {
1556
+ matchResult = 58;
1557
+ }
1558
+ }
1559
+ else {
1560
+ matchResult = 58;
1561
+ }
1562
+ }
1563
+ else {
1564
+ matchResult = 58;
1565
+ }
1566
+ }
1567
+ else {
1568
+ matchResult = 58;
1569
+ }
1570
+ }
1571
+ else {
1572
+ matchResult = 58;
1573
+ }
1574
+ break;
1575
+ }
1576
+ case "Path.fileName": {
1577
+ if (!isEmpty(arguments$)) {
1578
+ if (head_2(arguments$).tag === 4) {
1579
+ if (isEmpty(tail_2(arguments$))) {
1580
+ matchResult = 48;
1581
+ path_2 = head_2(arguments$).fields[0];
1582
+ }
1583
+ else {
1584
+ matchResult = 58;
1585
+ }
1586
+ }
1587
+ else {
1588
+ matchResult = 58;
1589
+ }
1590
+ }
1591
+ else {
1592
+ matchResult = 58;
1593
+ }
1594
+ break;
1595
+ }
1596
+ case "Path.extension": {
1597
+ if (!isEmpty(arguments$)) {
1598
+ if (head_2(arguments$).tag === 4) {
1599
+ if (isEmpty(tail_2(arguments$))) {
1600
+ matchResult = 49;
1601
+ path_3 = head_2(arguments$).fields[0];
1602
+ }
1603
+ else {
1604
+ matchResult = 58;
1605
+ }
1606
+ }
1607
+ else {
1608
+ matchResult = 58;
1609
+ }
1610
+ }
1611
+ else {
1612
+ matchResult = 58;
1613
+ }
1614
+ break;
1615
+ }
1616
+ case "Path.fileNameWithoutExtension": {
1617
+ if (!isEmpty(arguments$)) {
1618
+ if (head_2(arguments$).tag === 4) {
1619
+ if (isEmpty(tail_2(arguments$))) {
1620
+ matchResult = 50;
1621
+ path_4 = head_2(arguments$).fields[0];
1622
+ }
1623
+ else {
1624
+ matchResult = 58;
1625
+ }
1626
+ }
1627
+ else {
1628
+ matchResult = 58;
1629
+ }
1630
+ }
1631
+ else {
1632
+ matchResult = 58;
1633
+ }
1634
+ break;
1635
+ }
1636
+ case "Path.parent": {
1637
+ if (!isEmpty(arguments$)) {
1638
+ if (head_2(arguments$).tag === 4) {
1639
+ if (isEmpty(tail_2(arguments$))) {
1640
+ matchResult = 51;
1641
+ path_5 = head_2(arguments$).fields[0];
1642
+ }
1643
+ else {
1644
+ matchResult = 58;
1645
+ }
1646
+ }
1647
+ else {
1648
+ matchResult = 58;
1649
+ }
1650
+ }
1651
+ else {
1652
+ matchResult = 58;
1653
+ }
1654
+ break;
1655
+ }
1656
+ case "Path.relative": {
1657
+ if (!isEmpty(arguments$)) {
1658
+ if (head_2(arguments$).tag === 4) {
1659
+ if (!isEmpty(tail_2(arguments$))) {
1660
+ if (head_2(tail_2(arguments$)).tag === 4) {
1661
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1662
+ matchResult = 52;
1663
+ basis = head_2(arguments$).fields[0];
1664
+ target = head_2(tail_2(arguments$)).fields[0];
1665
+ }
1666
+ else {
1667
+ matchResult = 58;
1668
+ }
1669
+ }
1670
+ else {
1671
+ matchResult = 58;
1672
+ }
1673
+ }
1674
+ else {
1675
+ matchResult = 58;
1676
+ }
1677
+ }
1678
+ else {
1679
+ matchResult = 58;
1680
+ }
1681
+ }
1682
+ else {
1683
+ matchResult = 58;
1684
+ }
1685
+ break;
1686
+ }
1687
+ case "Glob.isMatch": {
1688
+ if (!isEmpty(arguments$)) {
1689
+ if (head_2(arguments$).tag === 4) {
1690
+ if (!isEmpty(tail_2(arguments$))) {
1691
+ if (head_2(tail_2(arguments$)).tag === 4) {
1692
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1693
+ matchResult = 53;
1694
+ path_6 = head_2(tail_2(arguments$)).fields[0];
1695
+ pattern = head_2(arguments$).fields[0];
1696
+ }
1697
+ else {
1698
+ matchResult = 58;
1699
+ }
1700
+ }
1701
+ else {
1702
+ matchResult = 58;
1703
+ }
1704
+ }
1705
+ else {
1706
+ matchResult = 58;
1707
+ }
1708
+ }
1709
+ else {
1710
+ matchResult = 58;
1711
+ }
1712
+ }
1713
+ else {
1714
+ matchResult = 58;
1715
+ }
1716
+ break;
1717
+ }
1718
+ case "Glob.filter": {
1719
+ if (!isEmpty(arguments$)) {
1720
+ if (head_2(arguments$).tag === 4) {
1721
+ if (!isEmpty(tail_2(arguments$))) {
1722
+ if (head_2(tail_2(arguments$)).tag === 5) {
1723
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1724
+ matchResult = 54;
1725
+ paths = head_2(tail_2(arguments$)).fields[0];
1726
+ pattern_1 = head_2(arguments$).fields[0];
1727
+ }
1728
+ else {
1729
+ matchResult = 58;
1730
+ }
1731
+ }
1732
+ else {
1733
+ matchResult = 58;
1734
+ }
1735
+ }
1736
+ else {
1737
+ matchResult = 58;
1738
+ }
1739
+ }
1740
+ else {
1741
+ matchResult = 58;
1742
+ }
1743
+ }
1744
+ else {
1745
+ matchResult = 58;
1746
+ }
1747
+ break;
1748
+ }
1749
+ case "SemVer.tryParse": {
1750
+ if (!isEmpty(arguments$)) {
1751
+ if (head_2(arguments$).tag === 4) {
1752
+ if (isEmpty(tail_2(arguments$))) {
1753
+ matchResult = 55;
1754
+ text = head_2(arguments$).fields[0];
1755
+ }
1756
+ else {
1757
+ matchResult = 58;
1758
+ }
1759
+ }
1760
+ else {
1761
+ matchResult = 58;
1762
+ }
1763
+ }
1764
+ else {
1765
+ matchResult = 58;
1766
+ }
1767
+ break;
1768
+ }
1769
+ case "SemVer.format": {
1770
+ if (!isEmpty(arguments$)) {
1771
+ if (head_2(arguments$).tag === 7) {
1772
+ if (isEmpty(tail_2(arguments$))) {
1773
+ matchResult = 56;
1774
+ fields = head_2(arguments$).fields[0];
1775
+ }
1776
+ else {
1777
+ matchResult = 58;
1778
+ }
1779
+ }
1780
+ else {
1781
+ matchResult = 58;
1782
+ }
1783
+ }
1784
+ else {
1785
+ matchResult = 58;
1786
+ }
1787
+ break;
1788
+ }
1789
+ case "SemVer.compare": {
1790
+ if (!isEmpty(arguments$)) {
1791
+ if (head_2(arguments$).tag === 4) {
1792
+ if (!isEmpty(tail_2(arguments$))) {
1793
+ if (head_2(tail_2(arguments$)).tag === 4) {
1794
+ if (isEmpty(tail_2(tail_2(arguments$)))) {
1795
+ matchResult = 57;
1796
+ left_2 = head_2(arguments$).fields[0];
1797
+ right_2 = head_2(tail_2(arguments$)).fields[0];
1798
+ }
1799
+ else {
1800
+ matchResult = 58;
1801
+ }
1802
+ }
1803
+ else {
1804
+ matchResult = 58;
1805
+ }
1806
+ }
1807
+ else {
1808
+ matchResult = 58;
1809
+ }
1810
+ }
1811
+ else {
1812
+ matchResult = 58;
1813
+ }
1814
+ }
1815
+ else {
1816
+ matchResult = 58;
1817
+ }
1818
+ break;
1819
+ }
1820
+ default:
1821
+ matchResult = 58;
1822
+ }
1823
+ switch (matchResult) {
1824
+ case 0:
1825
+ return new Value(/* VInt */ 1, [toInt64_unchecked(fromInt32(sign(compareOrdinal(left, right))))]);
1826
+ case 1: {
1827
+ if (equals_1(x_6, -9223372036854775808n)) {
1828
+ throw Operators_InvalidArg("value", "Integer overflow.");
1829
+ }
1830
+ return new Value(/* VInt */ 1, [abs(x_6)]);
1831
+ }
1832
+ case 2:
1833
+ return new Value(/* VInt */ 1, [toInt64_unchecked(fromInt32(sign(toFloat64(x_7))))]);
1834
+ case 3:
1835
+ return new Value(/* VInt */ 1, [min(x_8, y)]);
1836
+ case 4:
1837
+ return new Value(/* VInt */ 1, [max(x_9, y_1)]);
1838
+ case 5:
1839
+ return new Value(/* VInt */ 1, [max(low_2, min(high_2, x_10))]);
1840
+ case 6:
1841
+ return new Value(/* VFloat */ 2, [Math.abs(x_11)]);
1842
+ case 7:
1843
+ return new Value(/* VInt */ 1, [toInt64_unchecked(fromInt32(sign(x_12)))]);
1844
+ case 8:
1845
+ return new Value(/* VFloat */ 2, [min_1(x_13, y_2)]);
1846
+ case 9:
1847
+ return new Value(/* VFloat */ 2, [max_1(x_14, y_3)]);
1848
+ case 10:
1849
+ return new Value(/* VFloat */ 2, [max_1(low_3, min_1(high_3, x_15))]);
1850
+ case 11:
1851
+ return new Value(/* VFloat */ 2, [Math.floor(x_16)]);
1852
+ case 12:
1853
+ return new Value(/* VFloat */ 2, [Math.ceil(x_17)]);
1854
+ case 13:
1855
+ return new Value(/* VFloat */ 2, [round(x_18)]);
1856
+ case 14:
1857
+ return new Value(/* VFloat */ 2, [Math.trunc(x_19)]);
1858
+ case 15:
1859
+ return new Value(/* VFloat */ 2, [Math.sqrt(x_20)]);
1860
+ case 16:
1861
+ return new Value(/* VFloat */ 2, [Math.log(x_21)]);
1862
+ case 17:
1863
+ return new Value(/* VFloat */ 2, [Math.log10(x_22)]);
1864
+ case 18:
1865
+ return new Value(/* VFloat */ 2, [Math.exp(x_23)]);
1866
+ case 19:
1867
+ return new Value(/* VFloat */ 2, [Math.sin(x_24)]);
1868
+ case 20:
1869
+ return new Value(/* VFloat */ 2, [Math.cos(x_25)]);
1870
+ case 21:
1871
+ return new Value(/* VFloat */ 2, [Math.tan(x_26)]);
1872
+ case 22:
1873
+ return new Value(/* VFloat */ 2, [Math.asin(x_27)]);
1874
+ case 23:
1875
+ return new Value(/* VFloat */ 2, [Math.acos(x_28)]);
1876
+ case 24:
1877
+ return new Value(/* VFloat */ 2, [Math.atan(x_29)]);
1878
+ case 25:
1879
+ return new Value(/* VFloat */ 2, [Math.pow(x_30, y_4)]);
1880
+ case 26:
1881
+ return new Value(/* VFloat */ 2, [Math.atan2(x_31, y_5)]);
1882
+ case 27:
1883
+ return new Value(/* VBool */ 3, [Number.isNaN(x_32)]);
1884
+ case 28:
1885
+ return new Value(/* VBool */ 3, [isInfinity(x_33)]);
1886
+ case 29:
1887
+ return new Value(/* VBool */ 3, [!(Number.isNaN(x_34) ? true : isInfinity(x_34))]);
1888
+ case 30:
1889
+ return new Value(/* VFloat */ 2, [3.141592653589793]);
1890
+ case 31:
1891
+ return new Value(/* VFloat */ 2, [toFloat64(x_35)]);
1892
+ case 32:
1893
+ return new Value(/* VOption */ 9, [((Number.isNaN(x_36) ? true : (x_36 < -9.223372036854776E+18)) ? true : (x_36 >= 9.223372036854776E+18)) ? undefined : (new Value(/* VInt */ 1, [toInt64_unchecked(fromFloat64(x_36))]))]);
1894
+ case 33:
1895
+ return new Value(/* VInt */ 1, [toInt64_unchecked(fromInt32(x_37.length))]);
1896
+ case 34:
1897
+ return new Value(/* VBool */ 3, [x_38.length === 0]);
1898
+ case 35:
1899
+ return new Value(/* VBool */ 3, [forAll(whitespace, x_39.split(""))]);
1900
+ case 36:
1901
+ return new Value(/* VString */ 4, [trimText(true, true, x_40)]);
1902
+ case 37:
1903
+ return new Value(/* VString */ 4, [trimText(true, false, x_41)]);
1904
+ case 38:
1905
+ return new Value(/* VString */ 4, [trimText(false, true, x_42)]);
1906
+ case 39:
1907
+ return new Value(/* VList */ 5, [map((Item) => (new Value(/* VString */ 4, [Item])), ofArray(split(replace(replace(x_43, "\r\n", "\n"), "\r", "\n"), ["\n"], undefined, 0)))]);
1908
+ case 40:
1909
+ return new Value(/* VBool */ 3, [startsWith(x_44, needle, 4)]);
1910
+ case 41:
1911
+ return new Value(/* VBool */ 3, [indexOf(x_45, needle_1, 4) >= 0]);
1912
+ case 42:
1913
+ return new Value(/* VString */ 4, [padLeft(x_46, ~~toInt32_unchecked(n_3))]);
1914
+ case 43:
1915
+ return new Value(/* VString */ 4, [padRight(x_47, ~~toInt32_unchecked(n_4))]);
1916
+ case 44:
1917
+ return new Value(/* VString */ 4, [replicate(~~toInt32_unchecked(n_5), x_48)]);
1918
+ case 45:
1919
+ return new Value(/* VString */ 4, [normalizePath(path)]);
1920
+ case 46:
1921
+ return new Value(/* VBool */ 3, [startsWith(path_1, "/", 4)]);
1922
+ case 47:
1923
+ return new Value(/* VString */ 4, [normalizePath(startsWith(right_1, "/", 4) ? right_1 : ((left_1 === "") ? right_1 : ((left_1 + "/") + right_1)))]);
1924
+ case 48:
1925
+ return new Value(/* VString */ 4, [fileName(path_2)]);
1926
+ case 49: {
1927
+ const name_1 = fileName(path_3);
1928
+ const dot = name_1.lastIndexOf(".") | 0;
1929
+ return new Value(/* VOption */ 9, [((dot <= 0) ? true : (dot === (name_1.length - 1))) ? undefined : (new Value(/* VString */ 4, [substring(name_1, dot)]))]);
1930
+ }
1931
+ case 50: {
1932
+ const name_2 = fileName(path_4);
1933
+ const dot_1 = name_2.lastIndexOf(".") | 0;
1934
+ return new Value(/* VString */ 4, [(dot_1 <= 0) ? name_2 : substring(name_2, 0, dot_1)]);
1935
+ }
1936
+ case 51: {
1937
+ const normalized = normalizePath(path_5);
1938
+ const slash = normalized.lastIndexOf("/") | 0;
1939
+ return new Value(/* VOption */ 9, [((normalized === "/") ? true : (normalized === ".")) ? undefined : ((slash < 0) ? (new Value(/* VString */ 4, ["."])) : ((slash === 0) ? (new Value(/* VString */ 4, ["/"])) : (new Value(/* VString */ 4, [substring(normalized, 0, slash)]))))]);
1940
+ }
1941
+ case 52:
1942
+ return new Value(/* VOption */ 9, [(option_1 = relativePath(basis, target), (option_1 != null) ? (new Value(/* VString */ 4, [option_1])) : undefined)]);
1943
+ case 53:
1944
+ return new Value(/* VBool */ 3, [globMatch(pattern, path_6)]);
1945
+ case 54: {
1946
+ globMatch(pattern_1, "");
1947
+ return new Value(/* VList */ 5, [filter((_arg) => {
1948
+ if (_arg.tag === 4) {
1949
+ return globMatch(pattern_1, _arg.fields[0]);
1950
+ }
1951
+ else {
1952
+ return false;
1953
+ }
1954
+ }, paths)]);
1955
+ }
1956
+ case 55:
1957
+ return new Value(/* VOption */ 9, [(option_3 = parseVersion(text), (option_3 != null) ? versionValue(option_3) : undefined)]);
1958
+ case 56:
1959
+ return new Value(/* VString */ 4, [formatVersion(toArray(delay(() => map_1((name_3) => {
1960
+ const matchValue_1 = FSharpMap__get_Item(fields, name_3);
1961
+ if (matchValue_1.tag === 4) {
1962
+ return matchValue_1.fields[0];
1963
+ }
1964
+ else {
1965
+ throw Operators_InvalidArg("version", "Invalid semantic version");
1966
+ }
1967
+ }, versionFields))))]);
1968
+ case 57: {
1969
+ const matchValue_2 = parseVersion(left_2);
1970
+ const matchValue_3 = parseVersion(right_2);
1971
+ let matchResult_1, a_1, b_1;
1972
+ if (matchValue_2 != null) {
1973
+ if (matchValue_3 != null) {
1974
+ matchResult_1 = 0;
1975
+ a_1 = matchValue_2;
1976
+ b_1 = matchValue_3;
1977
+ }
1978
+ else {
1979
+ matchResult_1 = 1;
1980
+ }
1981
+ }
1982
+ else {
1983
+ matchResult_1 = 1;
1984
+ }
1985
+ switch (matchResult_1) {
1986
+ case 0:
1987
+ return new Value(/* VOption */ 9, [new Value(/* VInt */ 1, [toInt64_unchecked(fromInt32(compareVersions(a_1, b_1)))])]);
1988
+ default:
1989
+ return new Value(/* VOption */ 9, [undefined]);
1990
+ }
1991
+ }
1992
+ default:
1993
+ throw Operators_InvalidArg("arguments", concat("Invalid arguments to ", name, "."));
1994
+ }
1995
+ }
1996
+
1997
+ export const runtimeSignatures = ofArray([["Encoding.utf8Encode", new Scheme(empty(), fn(singleton(Type.TString), new Type(/* TOption */ 10, [new Type(/* TList */ 5, [Type.TInt])]))), singleton("text")], ["Encoding.utf8Decode", new Scheme(empty(), fn(singleton(new Type(/* TList */ 5, [Type.TInt])), new Type(/* TOption */ 10, [Type.TString]))), singleton("bytes")], ["Encoding.base64Encode", new Scheme(empty(), fn(singleton(new Type(/* TList */ 5, [Type.TInt])), new Type(/* TOption */ 10, [Type.TString]))), singleton("bytes")], ["Encoding.base64Decode", new Scheme(empty(), fn(singleton(Type.TString), new Type(/* TOption */ 10, [new Type(/* TList */ 5, [Type.TInt])]))), singleton("text")], ["Encoding.hexEncode", new Scheme(empty(), fn(singleton(new Type(/* TList */ 5, [Type.TInt])), new Type(/* TOption */ 10, [Type.TString]))), singleton("bytes")], ["Encoding.hexDecode", new Scheme(empty(), fn(singleton(Type.TString), new Type(/* TOption */ 10, [new Type(/* TList */ 5, [Type.TInt])]))), singleton("text")], ["Encoding.uriEncode", new Scheme(empty(), fn(singleton(Type.TString), new Type(/* TOption */ 10, [Type.TString]))), singleton("text")], ["Encoding.uriDecode", new Scheme(empty(), fn(singleton(Type.TString), new Type(/* TOption */ 10, [Type.TString]))), singleton("text")], ["Hash.sha256", new Scheme(empty(), fn(singleton(Type.TString), new Type(/* TOption */ 10, [Type.TString]))), singleton("text")], ["Hash.sha256Bytes", new Scheme(empty(), fn(singleton(new Type(/* TList */ 5, [Type.TInt])), new Type(/* TOption */ 10, [Type.TString]))), singleton("bytes")]]);
1998
+