@fossa-app/bridge 0.1.6 → 0.1.8

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 (265) hide show
  1. package/dist/Models/ApiModels.d.ts +199 -0
  2. package/dist/Models/ApiModels.js +350 -0
  3. package/dist/Models/ApiModels.js.map +1 -0
  4. package/dist/Services/Clients/BranchClient.d.ts +16 -0
  5. package/dist/Services/Clients/BranchClient.js +54 -0
  6. package/dist/Services/Clients/BranchClient.js.map +1 -0
  7. package/dist/Services/Clients/CompanyClient.d.ts +13 -0
  8. package/dist/Services/Clients/CompanyClient.js +38 -0
  9. package/dist/Services/Clients/CompanyClient.js.map +1 -0
  10. package/dist/Services/Clients/CompanyLicenseClient.d.ts +10 -0
  11. package/dist/Services/Clients/CompanyLicenseClient.js +30 -0
  12. package/dist/Services/Clients/CompanyLicenseClient.js.map +1 -0
  13. package/dist/Services/Clients/CompanySettingsClient.d.ts +13 -0
  14. package/dist/Services/Clients/CompanySettingsClient.js +38 -0
  15. package/dist/Services/Clients/CompanySettingsClient.js.map +1 -0
  16. package/dist/Services/Clients/DepartmentClient.d.ts +16 -0
  17. package/dist/Services/Clients/DepartmentClient.js +54 -0
  18. package/dist/Services/Clients/DepartmentClient.js.map +1 -0
  19. package/dist/Services/Clients/EmployeeClient.d.ts +18 -0
  20. package/dist/Services/Clients/EmployeeClient.js +63 -0
  21. package/dist/Services/Clients/EmployeeClient.js.map +1 -0
  22. package/dist/Services/Clients/IdentityClient.d.ts +9 -0
  23. package/dist/Services/Clients/IdentityClient.js +26 -0
  24. package/dist/Services/Clients/IdentityClient.js.map +1 -0
  25. package/dist/Services/Clients/SystemLicenseClient.d.ts +9 -0
  26. package/dist/Services/Clients/SystemLicenseClient.js +26 -0
  27. package/dist/Services/Clients/SystemLicenseClient.js.map +1 -0
  28. package/dist/Services/Endpoints.d.ts +10 -0
  29. package/dist/Services/Endpoints.js +14 -0
  30. package/dist/Services/Endpoints.js.map +1 -0
  31. package/dist/Services/IHttpTransport.d.ts +6 -0
  32. package/dist/Services/IHttpTransport.js +3 -0
  33. package/dist/Services/IHttpTransport.js.map +1 -0
  34. package/dist/Services/UrlHelpers.d.ts +25 -0
  35. package/dist/Services/UrlHelpers.js +103 -0
  36. package/dist/Services/UrlHelpers.js.map +1 -0
  37. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.d.ts +125 -0
  38. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.js +1371 -0
  39. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.js.map +1 -0
  40. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.d.ts +27 -0
  41. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.js +172 -0
  42. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.js.map +1 -0
  43. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.d.ts +59 -0
  44. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.js +194 -0
  45. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.js.map +1 -0
  46. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.d.ts +129 -0
  47. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.js +428 -0
  48. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.js.map +1 -0
  49. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.d.ts +27 -0
  50. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.js +165 -0
  51. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.js.map +1 -0
  52. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.d.ts +3 -0
  53. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.js +27 -0
  54. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.js.map +1 -0
  55. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.d.ts +66 -0
  56. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.js +271 -0
  57. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.js.map +1 -0
  58. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.d.ts +121 -0
  59. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.js +231 -0
  60. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.js.map +1 -0
  61. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.d.ts +8 -0
  62. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.js +192 -0
  63. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.js.map +1 -0
  64. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.d.ts +9 -0
  65. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.js +26 -0
  66. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.js.map +1 -0
  67. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.d.ts +70 -0
  68. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.js +812 -0
  69. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.js.map +1 -0
  70. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.d.ts +65 -0
  71. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.js +345 -0
  72. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.js.map +1 -0
  73. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.d.ts +18 -0
  74. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.js +143 -0
  75. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.js.map +1 -0
  76. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.d.ts +63 -0
  77. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.js +322 -0
  78. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.js.map +1 -0
  79. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.d.ts +11 -0
  80. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.js +60 -0
  81. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.js.map +1 -0
  82. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.d.ts +12 -0
  83. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.js +178 -0
  84. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.js.map +1 -0
  85. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.d.ts +31 -0
  86. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.js +109 -0
  87. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.js.map +1 -0
  88. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.d.ts +7 -0
  89. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.js +53 -0
  90. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.js.map +1 -0
  91. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.d.ts +12 -0
  92. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.js +38 -0
  93. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.js.map +1 -0
  94. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.d.ts +30 -0
  95. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.js +185 -0
  96. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.js.map +1 -0
  97. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.d.ts +45 -0
  98. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.js +33 -0
  99. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.js.map +1 -0
  100. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.d.ts +10 -0
  101. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.js +152 -0
  102. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.js.map +1 -0
  103. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.d.ts +29 -0
  104. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.js +148 -0
  105. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.js.map +1 -0
  106. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.d.ts +143 -0
  107. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.js +1404 -0
  108. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.js.map +1 -0
  109. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.d.ts +3 -0
  110. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.js +52 -0
  111. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.js.map +1 -0
  112. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.d.ts +25 -0
  113. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.js +104 -0
  114. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.js.map +1 -0
  115. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.d.ts +178 -0
  116. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.js +1525 -0
  117. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.js.map +1 -0
  118. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.d.ts +12 -0
  119. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.js +141 -0
  120. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.js.map +1 -0
  121. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.d.ts +52 -0
  122. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.js +355 -0
  123. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.js.map +1 -0
  124. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.d.ts +39 -0
  125. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.js +246 -0
  126. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.js.map +1 -0
  127. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.d.ts +3 -0
  128. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.js +18 -0
  129. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.js.map +1 -0
  130. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.d.ts +20 -0
  131. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.js +87 -0
  132. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.js.map +1 -0
  133. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.d.ts +32 -0
  134. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.js +128 -0
  135. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.js.map +1 -0
  136. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.d.ts +29 -0
  137. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.js +127 -0
  138. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.js.map +1 -0
  139. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.d.ts +38 -0
  140. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.js +186 -0
  141. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.js.map +1 -0
  142. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.d.ts +12 -0
  143. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.js +56 -0
  144. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.js.map +1 -0
  145. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.d.ts +119 -0
  146. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js +529 -0
  147. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js.map +1 -0
  148. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.d.ts +10 -0
  149. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.js +144 -0
  150. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.js.map +1 -0
  151. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.d.ts +38 -0
  152. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.js +191 -0
  153. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.js.map +1 -0
  154. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.d.ts +164 -0
  155. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.js +1501 -0
  156. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.js.map +1 -0
  157. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.d.ts +18 -0
  158. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.js +129 -0
  159. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.js.map +1 -0
  160. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.d.ts +190 -0
  161. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.js +1931 -0
  162. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.js.map +1 -0
  163. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.d.ts +59 -0
  164. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.js +677 -0
  165. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.js.map +1 -0
  166. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.d.ts +85 -0
  167. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.js +390 -0
  168. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.js.map +1 -0
  169. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.d.ts +40 -0
  170. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.js +204 -0
  171. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.js.map +1 -0
  172. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.d.ts +121 -0
  173. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.js +367 -0
  174. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.js.map +1 -0
  175. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.d.ts +15 -0
  176. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.js +138 -0
  177. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.js.map +1 -0
  178. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.d.ts +35 -0
  179. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.js +210 -0
  180. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.js.map +1 -0
  181. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.d.ts +19 -0
  182. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.js +72 -0
  183. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.js.map +1 -0
  184. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.d.ts +51 -0
  185. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.js +205 -0
  186. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.js.map +1 -0
  187. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.d.ts +2 -0
  188. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.js +8 -0
  189. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.js.map +1 -0
  190. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.d.ts +32 -0
  191. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.js +170 -0
  192. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.js.map +1 -0
  193. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.d.ts +243 -0
  194. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.js +903 -0
  195. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.js.map +1 -0
  196. package/package.json +5 -2
  197. package/.build.ps1 +0 -308
  198. package/.gitattributes +0 -43
  199. package/.github/dependabot.yml +0 -38
  200. package/.github/release-drafter.yml +0 -52
  201. package/.github/workflows/cicd.yml +0 -87
  202. package/.github/workflows/lint.yml +0 -34
  203. package/.github/workflows/release-drafter.yml +0 -27
  204. package/Bridge.slnx +0 -8
  205. package/Directory.Build.props +0 -25
  206. package/Images/Icon.png +0 -0
  207. package/build.ps1 +0 -11
  208. package/dotnet-tools.json +0 -27
  209. package/format.ps1 +0 -11
  210. package/gig.ps1 +0 -17
  211. package/global.json +0 -6
  212. package/lint.ps1 +0 -20
  213. package/pack.ps1 +0 -11
  214. package/publish.ps1 +0 -11
  215. package/restore.ps1 +0 -11
  216. package/src/Bridge/Bridge.fsproj +0 -26
  217. package/src/Bridge/Models/ApiModels.fs +0 -142
  218. package/src/Bridge/Services/Clients/BranchClient.fs +0 -46
  219. package/src/Bridge/Services/Clients/CompanyClient.fs +0 -24
  220. package/src/Bridge/Services/Clients/CompanyLicenseClient.fs +0 -17
  221. package/src/Bridge/Services/Clients/CompanySettingsClient.fs +0 -24
  222. package/src/Bridge/Services/Clients/DepartmentClient.fs +0 -48
  223. package/src/Bridge/Services/Clients/EmployeeClient.fs +0 -71
  224. package/src/Bridge/Services/Clients/IdentityClient.fs +0 -11
  225. package/src/Bridge/Services/Clients/SystemLicenseClient.fs +0 -11
  226. package/src/Bridge/Services/Endpoints.fs +0 -13
  227. package/src/Bridge/Services/IHttpTransport.fs +0 -10
  228. package/src/Bridge/Services/UrlHelpers.fs +0 -18
  229. package/src/Bridge/bin/Release/net10.0/Fossa.Bridge.deps.json +0 -98
  230. package/src/Bridge/bin/Release/net10.0/Fossa.Bridge.xml +0 -6
  231. package/src/Bridge/obj/Bridge.fsproj.nuget.dgspec.json +0 -357
  232. package/src/Bridge/obj/Bridge.fsproj.nuget.g.props +0 -29
  233. package/src/Bridge/obj/Bridge.fsproj.nuget.g.targets +0 -2
  234. package/src/Bridge/obj/Release/Fossa.Bridge.0.1.6.nuspec +0 -31
  235. package/src/Bridge/obj/Release/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.fs +0 -3
  236. package/src/Bridge/obj/Release/net10.0/Bridge.AssemblyInfo.fs +0 -20
  237. package/src/Bridge/obj/Release/net10.0/Bridge.fsproj.FileListAbsolute.txt +0 -14
  238. package/src/Bridge/obj/Release/net10.0/Bridge.sourcelink.json +0 -1
  239. package/src/Bridge/obj/Release/net10.0/Fossa.Bridge.xml +0 -6
  240. package/src/Bridge/obj/Release/net10.0/ILLink.Substitutions.xml +0 -15
  241. package/src/Bridge/obj/project.assets.json +0 -501
  242. package/src/Directory.Build.props +0 -23
  243. package/test.ps1 +0 -11
  244. package/tests/Bridge.Tests/Bridge.Tests.fsproj +0 -19
  245. package/tests/Bridge.Tests/Main.fs +0 -7
  246. package/tests/Bridge.Tests/UrlHelpersTests.fs +0 -33
  247. package/tests/Bridge.Tests/bin/Release/net10.0/.msCoverageSourceRootsMapping_Fossa.Bridge.Tests +0 -0
  248. package/tests/Bridge.Tests/bin/Release/net10.0/Fossa.Bridge.Tests +0 -0
  249. package/tests/Bridge.Tests/bin/Release/net10.0/Fossa.Bridge.Tests.deps.json +0 -819
  250. package/tests/Bridge.Tests/bin/Release/net10.0/Fossa.Bridge.Tests.runtimeconfig.json +0 -14
  251. package/tests/Bridge.Tests/bin/Release/net10.0/Fossa.Bridge.xml +0 -6
  252. package/tests/Bridge.Tests/obj/Bridge.Tests.fsproj.nuget.dgspec.json +0 -712
  253. package/tests/Bridge.Tests/obj/Bridge.Tests.fsproj.nuget.g.props +0 -30
  254. package/tests/Bridge.Tests/obj/Bridge.Tests.fsproj.nuget.g.targets +0 -11
  255. package/tests/Bridge.Tests/obj/Release/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.fs +0 -3
  256. package/tests/Bridge.Tests/obj/Release/net10.0/Bridge.T.A317E392.Up2Date +0 -0
  257. package/tests/Bridge.Tests/obj/Release/net10.0/Bridge.Tests.AssemblyInfo.fs +0 -19
  258. package/tests/Bridge.Tests/obj/Release/net10.0/Bridge.Tests.fsproj.FileListAbsolute.txt +0 -190
  259. package/tests/Bridge.Tests/obj/Release/net10.0/Bridge.Tests.sourcelink.json +0 -1
  260. package/tests/Bridge.Tests/obj/Release/net10.0/ILLink.Substitutions.xml +0 -15
  261. package/tests/Bridge.Tests/obj/Release/net10.0/apphost +0 -0
  262. package/tests/Bridge.Tests/obj/project.assets.json +0 -2144
  263. package/trigger.ps1 +0 -32
  264. package/tsconfig.json +0 -18
  265. package/version.ps1 +0 -11
@@ -0,0 +1,903 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObjectRef = exports.Lazy = exports.Comparer = exports.Enumerator = exports.Enumerable = exports.Exception = exports.DateTimeKind = void 0;
4
+ exports.isException = isException;
5
+ exports.isPromise = isPromise;
6
+ exports.ensureErrorOrException = ensureErrorOrException;
7
+ exports.isArrayLike = isArrayLike;
8
+ exports.isMutableArray = isMutableArray;
9
+ exports.isIterable = isIterable;
10
+ exports.isEnumerable = isEnumerable;
11
+ exports.isComparer = isComparer;
12
+ exports.isComparable = isComparable;
13
+ exports.isEquatable = isEquatable;
14
+ exports.isHashable = isHashable;
15
+ exports.isDisposable = isDisposable;
16
+ exports.disposeSafe = disposeSafe;
17
+ exports.defaultOf = defaultOf;
18
+ exports.sameConstructor = sameConstructor;
19
+ exports.toEnumerable = toEnumerable;
20
+ exports.getEnumerator = getEnumerator;
21
+ exports.toIterator = toIterator;
22
+ exports.enumerableToIterator = enumerableToIterator;
23
+ exports.comparerFromEqualityComparer = comparerFromEqualityComparer;
24
+ exports.assertEqual = assertEqual;
25
+ exports.assertNotEqual = assertNotEqual;
26
+ exports.lazyFromValue = lazyFromValue;
27
+ exports.padWithZeros = padWithZeros;
28
+ exports.padLeftAndRightWithZeros = padLeftAndRightWithZeros;
29
+ exports.dateOffset = dateOffset;
30
+ exports.int16ToString = int16ToString;
31
+ exports.int32ToString = int32ToString;
32
+ exports.int64ToString = int64ToString;
33
+ exports.stringHash = stringHash;
34
+ exports.numberHash = numberHash;
35
+ exports.bigintHash = bigintHash;
36
+ exports.combineHashCodes = combineHashCodes;
37
+ exports.physicalHash = physicalHash;
38
+ exports.identityHash = identityHash;
39
+ exports.dateHash = dateHash;
40
+ exports.arrayHash = arrayHash;
41
+ exports.structuralHash = structuralHash;
42
+ exports.fastStructuralHash = fastStructuralHash;
43
+ exports.safeHash = safeHash;
44
+ exports.equalArraysWith = equalArraysWith;
45
+ exports.equalArrays = equalArrays;
46
+ exports.physicalEquals = physicalEquals;
47
+ exports.equals = equals;
48
+ exports.compareDates = compareDates;
49
+ exports.comparePrimitives = comparePrimitives;
50
+ exports.compareArraysWith = compareArraysWith;
51
+ exports.compareArrays = compareArrays;
52
+ exports.compare = compare;
53
+ exports.min = min;
54
+ exports.max = max;
55
+ exports.clamp = clamp;
56
+ exports.createAtom = createAtom;
57
+ exports.createObj = createObj;
58
+ exports.jsOptions = jsOptions;
59
+ exports.round = round;
60
+ exports.sign = sign;
61
+ exports.unescapeDataString = unescapeDataString;
62
+ exports.escapeDataString = escapeDataString;
63
+ exports.escapeUriString = escapeUriString;
64
+ exports.count = count;
65
+ exports.clear = clear;
66
+ exports.uncurry2 = uncurry2;
67
+ exports.curry2 = curry2;
68
+ exports.uncurry3 = uncurry3;
69
+ exports.curry3 = curry3;
70
+ exports.uncurry4 = uncurry4;
71
+ exports.curry4 = curry4;
72
+ exports.uncurry5 = uncurry5;
73
+ exports.curry5 = curry5;
74
+ exports.uncurry6 = uncurry6;
75
+ exports.curry6 = curry6;
76
+ exports.uncurry7 = uncurry7;
77
+ exports.curry7 = curry7;
78
+ exports.uncurry8 = uncurry8;
79
+ exports.curry8 = curry8;
80
+ exports.uncurry9 = uncurry9;
81
+ exports.curry9 = curry9;
82
+ exports.uncurry10 = uncurry10;
83
+ exports.curry10 = curry10;
84
+ exports.uncurry11 = uncurry11;
85
+ exports.curry11 = curry11;
86
+ exports.uncurry12 = uncurry12;
87
+ exports.curry12 = curry12;
88
+ exports.uncurry13 = uncurry13;
89
+ exports.curry13 = curry13;
90
+ exports.uncurry14 = uncurry14;
91
+ exports.curry14 = curry14;
92
+ exports.uncurry15 = uncurry15;
93
+ exports.curry15 = curry15;
94
+ exports.uncurry16 = uncurry16;
95
+ exports.curry16 = curry16;
96
+ exports.uncurry17 = uncurry17;
97
+ exports.curry17 = curry17;
98
+ exports.uncurry18 = uncurry18;
99
+ exports.curry18 = curry18;
100
+ exports.uncurry19 = uncurry19;
101
+ exports.curry19 = curry19;
102
+ exports.uncurry20 = uncurry20;
103
+ exports.curry20 = curry20;
104
+ exports.copyToArray = copyToArray;
105
+ // Don't change, this corresponds to DateTimeKind.Kind enum values in .NET
106
+ exports.DateTimeKind = {
107
+ Unspecified: 0,
108
+ Utc: 1,
109
+ Local: 2,
110
+ };
111
+ // Exception is intentionally not derived from Error, for performance reasons (see #2160)
112
+ class Exception {
113
+ constructor(msg) {
114
+ this.message = msg ?? "";
115
+ }
116
+ }
117
+ exports.Exception = Exception;
118
+ function isException(x) {
119
+ return x instanceof Exception || x instanceof Error;
120
+ }
121
+ function isPromise(x) {
122
+ return x instanceof Promise;
123
+ }
124
+ function ensureErrorOrException(e) {
125
+ // Exceptionally admitting promises as errors for compatibility with React.suspense (see #3298)
126
+ return (isException(e) || isPromise(e)) ? e : new Exception(String(e));
127
+ }
128
+ function isArrayLike(x) {
129
+ return Array.isArray(x) || ArrayBuffer.isView(x);
130
+ }
131
+ function isMutableArray(x) {
132
+ return Array.isArray(x) || ArrayBuffer.isView(x);
133
+ }
134
+ function isIterable(x) {
135
+ return x != null && typeof x === "object" && Symbol.iterator in x;
136
+ }
137
+ function isEnumerable(x) {
138
+ return x != null && typeof x.GetEnumerator === "function";
139
+ }
140
+ function isComparer(x) {
141
+ return x != null && typeof x.Compare === "function";
142
+ }
143
+ function isComparable(x) {
144
+ return x != null && typeof x.CompareTo === "function";
145
+ }
146
+ function isEquatable(x) {
147
+ return x != null && typeof x.Equals === "function";
148
+ }
149
+ function isHashable(x) {
150
+ return x != null && typeof x.GetHashCode === "function";
151
+ }
152
+ function isDisposable(x) {
153
+ return x != null && typeof x.Dispose === "function";
154
+ }
155
+ function disposeSafe(x) {
156
+ if (isDisposable(x)) {
157
+ x.Dispose();
158
+ }
159
+ }
160
+ function defaultOf() {
161
+ return null;
162
+ }
163
+ function sameConstructor(x, y) {
164
+ return Object.getPrototypeOf(x)?.constructor === Object.getPrototypeOf(y)?.constructor;
165
+ }
166
+ class Enumerable {
167
+ constructor(en) { this.en = en; }
168
+ GetEnumerator() { return this.en; }
169
+ "System.Collections.IEnumerable.GetEnumerator"() { return this.en; }
170
+ [Symbol.iterator]() {
171
+ return this;
172
+ }
173
+ next() {
174
+ const hasNext = this.en["System.Collections.IEnumerator.MoveNext"]();
175
+ const current = hasNext ? this.en["System.Collections.Generic.IEnumerator`1.get_Current"]() : undefined;
176
+ return { done: !hasNext, value: current };
177
+ }
178
+ }
179
+ exports.Enumerable = Enumerable;
180
+ class Enumerator {
181
+ constructor(iter) {
182
+ this.current = defaultOf();
183
+ this.iter = iter;
184
+ }
185
+ ["System.Collections.Generic.IEnumerator`1.get_Current"]() {
186
+ return this.current;
187
+ }
188
+ ["System.Collections.IEnumerator.get_Current"]() {
189
+ return this.current;
190
+ }
191
+ ["System.Collections.IEnumerator.MoveNext"]() {
192
+ const cur = this.iter.next();
193
+ this.current = cur.value;
194
+ return !cur.done;
195
+ }
196
+ ["System.Collections.IEnumerator.Reset"]() {
197
+ throw new Exception("JS iterators cannot be reset");
198
+ }
199
+ Dispose() {
200
+ return;
201
+ }
202
+ }
203
+ exports.Enumerator = Enumerator;
204
+ function toEnumerable(e) {
205
+ if (isEnumerable(e)) {
206
+ return e;
207
+ }
208
+ else {
209
+ return new Enumerable(new Enumerator(e[Symbol.iterator]()));
210
+ }
211
+ }
212
+ function getEnumerator(e) {
213
+ if (isEnumerable(e)) {
214
+ return e.GetEnumerator();
215
+ }
216
+ else {
217
+ return new Enumerator(e[Symbol.iterator]());
218
+ }
219
+ }
220
+ function toIterator(en) {
221
+ return {
222
+ next() {
223
+ const hasNext = en["System.Collections.IEnumerator.MoveNext"]();
224
+ const current = hasNext ? en["System.Collections.Generic.IEnumerator`1.get_Current"]() : undefined;
225
+ return { done: !hasNext, value: current };
226
+ },
227
+ };
228
+ }
229
+ function enumerableToIterator(e) {
230
+ return toIterator(toEnumerable(e).GetEnumerator());
231
+ }
232
+ class Comparer {
233
+ constructor(f) {
234
+ this.Compare = f || compare;
235
+ }
236
+ }
237
+ exports.Comparer = Comparer;
238
+ function comparerFromEqualityComparer(comparer) {
239
+ // Sometimes IEqualityComparer also implements IComparer
240
+ if (isComparer(comparer)) {
241
+ return new Comparer(comparer.Compare);
242
+ }
243
+ else {
244
+ return new Comparer((x, y) => {
245
+ const xhash = comparer.GetHashCode(x);
246
+ const yhash = comparer.GetHashCode(y);
247
+ if (xhash === yhash) {
248
+ return comparer.Equals(x, y) ? 0 : -1;
249
+ }
250
+ else {
251
+ return xhash < yhash ? -1 : 1;
252
+ }
253
+ });
254
+ }
255
+ }
256
+ function assertEqual(actual, expected, msg) {
257
+ if (!equals(actual, expected)) {
258
+ throw Object.assign(new Exception(msg || `Expected: ${expected} - Actual: ${actual}`), {
259
+ actual,
260
+ expected,
261
+ });
262
+ }
263
+ }
264
+ function assertNotEqual(actual, expected, msg) {
265
+ if (equals(actual, expected)) {
266
+ throw Object.assign(new Exception(msg || `Expected: ${expected} - Actual: ${actual}`), {
267
+ actual,
268
+ expected,
269
+ });
270
+ }
271
+ }
272
+ class Lazy {
273
+ constructor(factory) {
274
+ this.factory = factory;
275
+ this.isValueCreated = false;
276
+ }
277
+ get Value() {
278
+ if (!this.isValueCreated) {
279
+ this.createdValue = this.factory();
280
+ this.isValueCreated = true;
281
+ }
282
+ return this.createdValue;
283
+ }
284
+ get IsValueCreated() {
285
+ return this.isValueCreated;
286
+ }
287
+ }
288
+ exports.Lazy = Lazy;
289
+ function lazyFromValue(v) {
290
+ return new Lazy(() => v);
291
+ }
292
+ function padWithZeros(i, length) {
293
+ return i.toString(10).padStart(length, "0");
294
+ }
295
+ function padLeftAndRightWithZeros(i, lengthLeft, lengthRight) {
296
+ return i.toString(10).padStart(lengthLeft, "0").padEnd(lengthRight, "0");
297
+ }
298
+ function dateOffset(date) {
299
+ const date1 = date;
300
+ return typeof date1.offset === "number"
301
+ ? date1.offset
302
+ : (date.kind === exports.DateTimeKind.Utc
303
+ ? 0 : date.getTimezoneOffset() * -60000);
304
+ }
305
+ function int16ToString(i, radix) {
306
+ i = i < 0 && radix != null && radix !== 10 ? 0xFFFF + i + 1 : i;
307
+ return i.toString(radix);
308
+ }
309
+ function int32ToString(i, radix) {
310
+ i = i < 0 && radix != null && radix !== 10 ? 0xFFFFFFFF + i + 1 : i;
311
+ return i.toString(radix);
312
+ }
313
+ function int64ToString(i, radix) {
314
+ i = i < 0 && radix != null && radix !== 10 ? 0xffffffffffffffffn + i + 1n : i;
315
+ return i.toString(radix);
316
+ }
317
+ class ObjectRef {
318
+ static id(o) {
319
+ if (!ObjectRef.idMap.has(o)) {
320
+ ObjectRef.idMap.set(o, ++ObjectRef.count);
321
+ }
322
+ return ObjectRef.idMap.get(o);
323
+ }
324
+ }
325
+ exports.ObjectRef = ObjectRef;
326
+ ObjectRef.idMap = new WeakMap();
327
+ ObjectRef.count = 0;
328
+ function stringHash(s) {
329
+ let i = 0;
330
+ let h = 5381;
331
+ const len = s.length;
332
+ while (i < len) {
333
+ h = (h * 33) ^ s.charCodeAt(i++);
334
+ }
335
+ return h;
336
+ }
337
+ function numberHash(x) {
338
+ return x * 2654435761 | 0;
339
+ }
340
+ function bigintHash(x) {
341
+ return stringHash(x.toString(32));
342
+ }
343
+ // From https://stackoverflow.com/a/37449594
344
+ function combineHashCodes(hashes) {
345
+ let h1 = 0;
346
+ const len = hashes.length;
347
+ for (let i = 0; i < len; i++) {
348
+ const h2 = hashes[i];
349
+ h1 = ((h1 << 5) + h1) ^ h2;
350
+ }
351
+ return h1;
352
+ }
353
+ function physicalHash(x) {
354
+ if (x == null) {
355
+ return 0;
356
+ }
357
+ switch (typeof x) {
358
+ case "boolean":
359
+ return x ? 1 : 0;
360
+ case "number":
361
+ return numberHash(x);
362
+ case "bigint":
363
+ return bigintHash(x);
364
+ case "string":
365
+ return stringHash(x);
366
+ default:
367
+ return numberHash(ObjectRef.id(x));
368
+ }
369
+ }
370
+ function identityHash(x) {
371
+ if (isHashable(x)) {
372
+ return x.GetHashCode();
373
+ }
374
+ else {
375
+ return physicalHash(x);
376
+ }
377
+ }
378
+ function dateHash(x) {
379
+ return x.getTime();
380
+ }
381
+ function arrayHash(x) {
382
+ const len = x.length;
383
+ const hashes = new Array(len);
384
+ for (let i = 0; i < len; i++) {
385
+ hashes[i] = structuralHash(x[i]);
386
+ }
387
+ return combineHashCodes(hashes);
388
+ }
389
+ function structuralHash(x) {
390
+ if (x == null) {
391
+ return 0;
392
+ }
393
+ switch (typeof x) {
394
+ case "boolean":
395
+ return x ? 1 : 0;
396
+ case "number":
397
+ return numberHash(x);
398
+ case "bigint":
399
+ return bigintHash(x);
400
+ case "string":
401
+ return stringHash(x);
402
+ default: {
403
+ if (isHashable(x)) {
404
+ return x.GetHashCode();
405
+ }
406
+ else if (isArrayLike(x)) {
407
+ return arrayHash(x);
408
+ }
409
+ else if (x instanceof Date) {
410
+ return dateHash(x);
411
+ }
412
+ else if (Object.getPrototypeOf(x)?.constructor === Object) {
413
+ // TODO: check call-stack to prevent cyclic objects?
414
+ const hashes = Object.values(x).map((v) => structuralHash(v));
415
+ return combineHashCodes(hashes);
416
+ }
417
+ else {
418
+ // Classes don't implement GetHashCode by default, but must use identity hashing
419
+ return numberHash(ObjectRef.id(x));
420
+ // return stringHash(String(x));
421
+ }
422
+ }
423
+ }
424
+ }
425
+ // Intended for custom numeric types, like long or decimal
426
+ function fastStructuralHash(x) {
427
+ return stringHash(String(x));
428
+ }
429
+ // Intended for declared types that may or may not implement GetHashCode
430
+ function safeHash(x) {
431
+ // return x == null ? 0 : isHashable(x) ? x.GetHashCode() : numberHash(ObjectRef.id(x));
432
+ return identityHash(x);
433
+ }
434
+ function equalArraysWith(x, y, eq) {
435
+ if (x == null) {
436
+ return y == null;
437
+ }
438
+ if (y == null) {
439
+ return false;
440
+ }
441
+ if (x.length !== y.length) {
442
+ return false;
443
+ }
444
+ for (let i = 0; i < x.length; i++) {
445
+ if (!eq(x[i], y[i])) {
446
+ return false;
447
+ }
448
+ }
449
+ return true;
450
+ }
451
+ function equalArrays(x, y) {
452
+ return equalArraysWith(x, y, equals);
453
+ }
454
+ function equalObjects(x, y) {
455
+ const xKeys = Object.keys(x);
456
+ const yKeys = Object.keys(y);
457
+ if (xKeys.length !== yKeys.length) {
458
+ return false;
459
+ }
460
+ xKeys.sort();
461
+ yKeys.sort();
462
+ for (let i = 0; i < xKeys.length; i++) {
463
+ if (xKeys[i] !== yKeys[i] || !equals(x[xKeys[i]], y[yKeys[i]])) {
464
+ return false;
465
+ }
466
+ }
467
+ return true;
468
+ }
469
+ function physicalEquals(x, y) {
470
+ return x === y;
471
+ }
472
+ function equals(x, y) {
473
+ if (x === y) {
474
+ return true;
475
+ }
476
+ else if (x == null) {
477
+ return y == null;
478
+ }
479
+ else if (y == null) {
480
+ return false;
481
+ }
482
+ else if (isEquatable(x)) {
483
+ return x.Equals(y);
484
+ }
485
+ else if (isArrayLike(x)) {
486
+ return isArrayLike(y) && equalArrays(x, y);
487
+ }
488
+ else if (typeof x !== "object") {
489
+ return false;
490
+ }
491
+ else if (x instanceof Date) {
492
+ return (y instanceof Date) && compareDates(x, y) === 0;
493
+ }
494
+ else {
495
+ return Object.getPrototypeOf(x)?.constructor === Object && equalObjects(x, y);
496
+ }
497
+ }
498
+ function compareDates(x, y) {
499
+ let xtime;
500
+ let ytime;
501
+ // DateTimeOffset and DateTime deals with equality differently.
502
+ if ("offset" in x && "offset" in y) {
503
+ xtime = x.getTime();
504
+ ytime = y.getTime();
505
+ }
506
+ else {
507
+ xtime = x.getTime() + dateOffset(x);
508
+ ytime = y.getTime() + dateOffset(y);
509
+ }
510
+ return xtime === ytime ? 0 : (xtime < ytime ? -1 : 1);
511
+ }
512
+ function comparePrimitives(x, y) {
513
+ return x === y ? 0 : (x < y ? -1 : 1);
514
+ }
515
+ function compareArraysWith(x, y, comp) {
516
+ if (x == null) {
517
+ return y == null ? 0 : 1;
518
+ }
519
+ if (y == null) {
520
+ return -1;
521
+ }
522
+ if (x.length !== y.length) {
523
+ return x.length < y.length ? -1 : 1;
524
+ }
525
+ for (let i = 0, j = 0; i < x.length; i++) {
526
+ j = comp(x[i], y[i]);
527
+ if (j !== 0) {
528
+ return j;
529
+ }
530
+ }
531
+ return 0;
532
+ }
533
+ function compareArrays(x, y) {
534
+ return compareArraysWith(x, y, compare);
535
+ }
536
+ function compareObjects(x, y) {
537
+ const xKeys = Object.keys(x);
538
+ const yKeys = Object.keys(y);
539
+ if (xKeys.length !== yKeys.length) {
540
+ return xKeys.length < yKeys.length ? -1 : 1;
541
+ }
542
+ xKeys.sort();
543
+ yKeys.sort();
544
+ for (let i = 0, j = 0; i < xKeys.length; i++) {
545
+ const key = xKeys[i];
546
+ if (key !== yKeys[i]) {
547
+ return key < yKeys[i] ? -1 : 1;
548
+ }
549
+ else {
550
+ j = compare(x[key], y[key]);
551
+ if (j !== 0) {
552
+ return j;
553
+ }
554
+ }
555
+ }
556
+ return 0;
557
+ }
558
+ function compare(x, y) {
559
+ if (x === y) {
560
+ return 0;
561
+ }
562
+ else if (x == null) {
563
+ return y == null ? 0 : -1;
564
+ }
565
+ else if (y == null) {
566
+ return 1;
567
+ }
568
+ else if (isComparable(x)) {
569
+ return x.CompareTo(y);
570
+ }
571
+ else if (isArrayLike(x)) {
572
+ return isArrayLike(y) ? compareArrays(x, y) : -1;
573
+ }
574
+ else if (typeof x !== "object") {
575
+ return x < y ? -1 : 1;
576
+ }
577
+ else if (x instanceof Date) {
578
+ return y instanceof Date ? compareDates(x, y) : -1;
579
+ }
580
+ else {
581
+ return Object.getPrototypeOf(x)?.constructor === Object ? compareObjects(x, y) : -1;
582
+ }
583
+ }
584
+ function min(comparer, x, y) {
585
+ return comparer(x, y) < 0 ? x : y;
586
+ }
587
+ function max(comparer, x, y) {
588
+ return comparer(x, y) > 0 ? x : y;
589
+ }
590
+ function clamp(comparer, value, min, max) {
591
+ return (comparer(value, min) < 0) ? min : (comparer(value, max) > 0) ? max : value;
592
+ }
593
+ function createAtom(value) {
594
+ let atom = value;
595
+ return (...args) => {
596
+ if (args.length === 0) {
597
+ return atom;
598
+ }
599
+ else {
600
+ atom = args[0];
601
+ }
602
+ };
603
+ }
604
+ function createObj(fields) {
605
+ const obj = {};
606
+ for (const kv of fields) {
607
+ obj[kv[0]] = kv[1];
608
+ }
609
+ return obj;
610
+ }
611
+ function jsOptions(mutator) {
612
+ const opts = {};
613
+ mutator(opts);
614
+ return opts;
615
+ }
616
+ function round(value, digits = 0) {
617
+ const m = Math.pow(10, digits);
618
+ const n = +(digits ? value * m : value).toFixed(8);
619
+ const i = Math.floor(n);
620
+ const f = n - i;
621
+ const e = 1e-8;
622
+ const r = (f > 0.5 - e && f < 0.5 + e) ? ((i % 2 === 0) ? i : i + 1) : Math.round(n);
623
+ return digits ? r / m : r;
624
+ }
625
+ function sign(x) {
626
+ return x > 0 ? 1 : x < 0 ? -1 : 0;
627
+ }
628
+ function unescapeDataString(s) {
629
+ // https://stackoverflow.com/a/4458580/524236
630
+ return decodeURIComponent((s).replace(/\+/g, "%20"));
631
+ }
632
+ function escapeDataString(s) {
633
+ return encodeURIComponent(s).replace(/!/g, "%21")
634
+ .replace(/'/g, "%27")
635
+ .replace(/\(/g, "%28")
636
+ .replace(/\)/g, "%29")
637
+ .replace(/\*/g, "%2A");
638
+ }
639
+ function escapeUriString(s) {
640
+ return encodeURI(s);
641
+ }
642
+ // ICollection.Clear and Count members can be called on Arrays
643
+ // or Dictionaries so we need a runtime check (see #1120)
644
+ function count(col) {
645
+ if (isArrayLike(col)) {
646
+ return col.length;
647
+ }
648
+ else {
649
+ let count = 0;
650
+ for (const _ of col) {
651
+ count++;
652
+ }
653
+ return count;
654
+ }
655
+ }
656
+ function clear(col) {
657
+ if (isArrayLike(col)) {
658
+ col.splice(0);
659
+ }
660
+ else {
661
+ col.clear();
662
+ }
663
+ }
664
+ const curried = new WeakMap();
665
+ function uncurry2(f) {
666
+ if (f == null) {
667
+ return null;
668
+ }
669
+ const f2 = (a1, a2) => f(a1)(a2);
670
+ curried.set(f2, f);
671
+ return f2;
672
+ }
673
+ function curry2(f) {
674
+ return curried.get(f) ?? ((a1) => (a2) => f(a1, a2));
675
+ }
676
+ function uncurry3(f) {
677
+ if (f == null) {
678
+ return null;
679
+ }
680
+ const f2 = (a1, a2, a3) => f(a1)(a2)(a3);
681
+ curried.set(f2, f);
682
+ return f2;
683
+ }
684
+ function curry3(f) {
685
+ return curried.get(f)
686
+ ?? ((a1) => (a2) => (a3) => f(a1, a2, a3));
687
+ }
688
+ function uncurry4(f) {
689
+ if (f == null) {
690
+ return null;
691
+ }
692
+ const f2 = (a1, a2, a3, a4) => f(a1)(a2)(a3)(a4);
693
+ curried.set(f2, f);
694
+ return f2;
695
+ }
696
+ function curry4(f) {
697
+ return curried.get(f)
698
+ ?? ((a1) => (a2) => (a3) => (a4) => f(a1, a2, a3, a4));
699
+ }
700
+ function uncurry5(f) {
701
+ if (f == null) {
702
+ return null;
703
+ }
704
+ const f2 = (a1, a2, a3, a4, a5) => f(a1)(a2)(a3)(a4)(a5);
705
+ curried.set(f2, f);
706
+ return f2;
707
+ }
708
+ function curry5(f) {
709
+ return curried.get(f)
710
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => f(a1, a2, a3, a4, a5));
711
+ }
712
+ function uncurry6(f) {
713
+ if (f == null) {
714
+ return null;
715
+ }
716
+ const f2 = (a1, a2, a3, a4, a5, a6) => f(a1)(a2)(a3)(a4)(a5)(a6);
717
+ curried.set(f2, f);
718
+ return f2;
719
+ }
720
+ function curry6(f) {
721
+ return curried.get(f)
722
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => f(a1, a2, a3, a4, a5, a6));
723
+ }
724
+ function uncurry7(f) {
725
+ if (f == null) {
726
+ return null;
727
+ }
728
+ const f2 = (a1, a2, a3, a4, a5, a6, a7) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7);
729
+ curried.set(f2, f);
730
+ return f2;
731
+ }
732
+ function curry7(f) {
733
+ return curried.get(f)
734
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => f(a1, a2, a3, a4, a5, a6, a7));
735
+ }
736
+ function uncurry8(f) {
737
+ if (f == null) {
738
+ return null;
739
+ }
740
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8);
741
+ curried.set(f2, f);
742
+ return f2;
743
+ }
744
+ function curry8(f) {
745
+ return curried.get(f)
746
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => f(a1, a2, a3, a4, a5, a6, a7, a8));
747
+ }
748
+ function uncurry9(f) {
749
+ if (f == null) {
750
+ return null;
751
+ }
752
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9);
753
+ curried.set(f2, f);
754
+ return f2;
755
+ }
756
+ function curry9(f) {
757
+ return curried.get(f)
758
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9));
759
+ }
760
+ function uncurry10(f) {
761
+ if (f == null) {
762
+ return null;
763
+ }
764
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10);
765
+ curried.set(f2, f);
766
+ return f2;
767
+ }
768
+ function curry10(f) {
769
+ return curried.get(f)
770
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10));
771
+ }
772
+ function uncurry11(f) {
773
+ if (f == null) {
774
+ return null;
775
+ }
776
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11);
777
+ curried.set(f2, f);
778
+ return f2;
779
+ }
780
+ function curry11(f) {
781
+ return curried.get(f)
782
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11));
783
+ }
784
+ function uncurry12(f) {
785
+ if (f == null) {
786
+ return null;
787
+ }
788
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12);
789
+ curried.set(f2, f);
790
+ return f2;
791
+ }
792
+ function curry12(f) {
793
+ return curried.get(f)
794
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12));
795
+ }
796
+ function uncurry13(f) {
797
+ if (f == null) {
798
+ return null;
799
+ }
800
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13);
801
+ curried.set(f2, f);
802
+ return f2;
803
+ }
804
+ function curry13(f) {
805
+ return curried.get(f)
806
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13));
807
+ }
808
+ function uncurry14(f) {
809
+ if (f == null) {
810
+ return null;
811
+ }
812
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14);
813
+ curried.set(f2, f);
814
+ return f2;
815
+ }
816
+ function curry14(f) {
817
+ return curried.get(f)
818
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14));
819
+ }
820
+ function uncurry15(f) {
821
+ if (f == null) {
822
+ return null;
823
+ }
824
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15);
825
+ curried.set(f2, f);
826
+ return f2;
827
+ }
828
+ function curry15(f) {
829
+ return curried.get(f)
830
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15));
831
+ }
832
+ function uncurry16(f) {
833
+ if (f == null) {
834
+ return null;
835
+ }
836
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15)(a16);
837
+ curried.set(f2, f);
838
+ return f2;
839
+ }
840
+ function curry16(f) {
841
+ return curried.get(f)
842
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => (a16) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16));
843
+ }
844
+ function uncurry17(f) {
845
+ if (f == null) {
846
+ return null;
847
+ }
848
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15)(a16)(a17);
849
+ curried.set(f2, f);
850
+ return f2;
851
+ }
852
+ function curry17(f) {
853
+ return curried.get(f)
854
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => (a16) => (a17) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17));
855
+ }
856
+ function uncurry18(f) {
857
+ if (f == null) {
858
+ return null;
859
+ }
860
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15)(a16)(a17)(a18);
861
+ curried.set(f2, f);
862
+ return f2;
863
+ }
864
+ function curry18(f) {
865
+ return curried.get(f)
866
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => (a16) => (a17) => (a18) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18));
867
+ }
868
+ function uncurry19(f) {
869
+ if (f == null) {
870
+ return null;
871
+ }
872
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15)(a16)(a17)(a18)(a19);
873
+ curried.set(f2, f);
874
+ return f2;
875
+ }
876
+ function curry19(f) {
877
+ return curried.get(f)
878
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => (a16) => (a17) => (a18) => (a19) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19));
879
+ }
880
+ function uncurry20(f) {
881
+ if (f == null) {
882
+ return null;
883
+ }
884
+ const f2 = (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) => f(a1)(a2)(a3)(a4)(a5)(a6)(a7)(a8)(a9)(a10)(a11)(a12)(a13)(a14)(a15)(a16)(a17)(a18)(a19)(a20);
885
+ curried.set(f2, f);
886
+ return f2;
887
+ }
888
+ function curry20(f) {
889
+ return curried.get(f)
890
+ ?? ((a1) => (a2) => (a3) => (a4) => (a5) => (a6) => (a7) => (a8) => (a9) => (a10) => (a11) => (a12) => (a13) => (a14) => (a15) => (a16) => (a17) => (a18) => (a19) => (a20) => f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20));
891
+ }
892
+ // More performant method to copy arrays, see #2352
893
+ function copyToArray(source, sourceIndex, target, targetIndex, count) {
894
+ if (ArrayBuffer.isView(source) && ArrayBuffer.isView(target)) {
895
+ target.set(source.subarray(sourceIndex, sourceIndex + count), targetIndex);
896
+ }
897
+ else {
898
+ for (let i = 0; i < count; ++i) {
899
+ target[targetIndex + i] = source[sourceIndex + i];
900
+ }
901
+ }
902
+ }
903
+ //# sourceMappingURL=Util.js.map