effect 2.0.0-next.37 → 2.0.0-next.39

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 (1696) hide show
  1. package/Bigint/dist/effect-Bigint.cjs.dev.js +5 -5
  2. package/Bigint/dist/effect-Bigint.cjs.prod.js +5 -5
  3. package/Bigint/dist/effect-Bigint.esm.js +346 -5
  4. package/Boolean/dist/effect-Boolean.cjs.dev.js +5 -5
  5. package/Boolean/dist/effect-Boolean.cjs.prod.js +5 -5
  6. package/Boolean/dist/effect-Boolean.esm.js +230 -5
  7. package/Brand/dist/effect-Brand.cjs.dev.js +20 -20
  8. package/Brand/dist/effect-Brand.cjs.prod.js +20 -20
  9. package/Brand/dist/effect-Brand.esm.js +204 -20
  10. package/Cache/dist/effect-Cache.cjs.dev.js +72 -72
  11. package/Cache/dist/effect-Cache.cjs.prod.js +72 -72
  12. package/Cache/dist/effect-Cache.esm.js +111 -74
  13. package/Cause/dist/effect-Cause.cjs.dev.js +32 -32
  14. package/Cause/dist/effect-Cause.cjs.prod.js +32 -32
  15. package/Cause/dist/effect-Cause.esm.js +668 -33
  16. package/Channel/dist/effect-Channel.cjs.dev.js +105 -105
  17. package/Channel/dist/effect-Channel.cjs.prod.js +105 -105
  18. package/Channel/dist/effect-Channel.esm.js +1001 -107
  19. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.dev.js +3 -3
  20. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.prod.js +3 -3
  21. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.esm.js +112 -3
  22. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.dev.js +3 -3
  23. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.prod.js +3 -3
  24. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.esm.js +60 -3
  25. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.dev.js +3 -3
  26. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.prod.js +3 -3
  27. package/ChannelMergeState/dist/effect-ChannelMergeState.esm.js +101 -3
  28. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.dev.js +3 -3
  29. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.prod.js +3 -3
  30. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.esm.js +84 -3
  31. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.dev.js +89 -89
  32. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.prod.js +89 -89
  33. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.esm.js +47 -91
  34. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.dev.js +3 -3
  35. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.prod.js +3 -3
  36. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.esm.js +84 -3
  37. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.dev.js +3 -3
  38. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.prod.js +3 -3
  39. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.esm.js +83 -3
  40. package/Chunk/dist/effect-Chunk.cjs.dev.js +20 -20
  41. package/Chunk/dist/effect-Chunk.cjs.prod.js +20 -20
  42. package/Chunk/dist/effect-Chunk.esm.js +1084 -20
  43. package/Clock/dist/effect-Clock.cjs.dev.js +40 -40
  44. package/Clock/dist/effect-Clock.cjs.prod.js +40 -40
  45. package/Clock/dist/effect-Clock.esm.js +78 -42
  46. package/Config/dist/effect-Config.cjs.dev.js +36 -36
  47. package/Config/dist/effect-Config.cjs.prod.js +36 -36
  48. package/Config/dist/effect-Config.esm.js +321 -37
  49. package/ConfigError/dist/effect-ConfigError.cjs.dev.js +21 -21
  50. package/ConfigError/dist/effect-ConfigError.cjs.prod.js +21 -21
  51. package/ConfigError/dist/effect-ConfigError.esm.js +185 -21
  52. package/ConfigProvider/dist/effect-ConfigProvider.cjs.dev.js +38 -38
  53. package/ConfigProvider/dist/effect-ConfigProvider.cjs.prod.js +38 -38
  54. package/ConfigProvider/dist/effect-ConfigProvider.esm.js +198 -39
  55. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.dev.js +24 -24
  56. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.prod.js +24 -24
  57. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.esm.js +70 -24
  58. package/ConfigSecret/dist/effect-ConfigSecret.cjs.dev.js +22 -22
  59. package/ConfigSecret/dist/effect-ConfigSecret.cjs.prod.js +22 -22
  60. package/ConfigSecret/dist/effect-ConfigSecret.esm.js +63 -22
  61. package/Console/dist/effect-Console.cjs.dev.js +81 -81
  62. package/Console/dist/effect-Console.cjs.prod.js +81 -81
  63. package/Console/dist/effect-Console.esm.js +154 -83
  64. package/Context/dist/effect-Context.cjs.dev.js +17 -17
  65. package/Context/dist/effect-Context.cjs.prod.js +17 -17
  66. package/Context/dist/effect-Context.esm.js +295 -17
  67. package/Data/dist/effect-Data.cjs.dev.js +7 -7
  68. package/Data/dist/effect-Data.cjs.prod.js +7 -7
  69. package/Data/dist/effect-Data.esm.js +163 -7
  70. package/DefaultServices/dist/effect-DefaultServices.cjs.dev.js +40 -40
  71. package/DefaultServices/dist/effect-DefaultServices.cjs.prod.js +40 -40
  72. package/DefaultServices/dist/effect-DefaultServices.esm.js +24 -42
  73. package/Deferred/dist/effect-Deferred.cjs.dev.js +32 -32
  74. package/Deferred/dist/effect-Deferred.cjs.prod.js +32 -32
  75. package/Deferred/dist/effect-Deferred.esm.js +206 -33
  76. package/Differ/dist/effect-Differ.cjs.dev.js +25 -25
  77. package/Differ/dist/effect-Differ.cjs.prod.js +25 -25
  78. package/Differ/dist/effect-Differ.esm.js +137 -26
  79. package/Duration/dist/effect-Duration.cjs.dev.js +17 -16
  80. package/Duration/dist/effect-Duration.cjs.mjs +1 -0
  81. package/Duration/dist/effect-Duration.cjs.prod.js +17 -16
  82. package/Duration/dist/effect-Duration.esm.js +438 -16
  83. package/Effect/dist/effect-Effect.cjs.dev.js +87 -87
  84. package/Effect/dist/effect-Effect.cjs.prod.js +87 -87
  85. package/Effect/dist/effect-Effect.esm.js +3093 -89
  86. package/Effectable/dist/effect-Effectable.cjs.dev.js +10 -10
  87. package/Effectable/dist/effect-Effectable.cjs.prod.js +10 -10
  88. package/Effectable/dist/effect-Effectable.esm.js +77 -10
  89. package/Either/dist/effect-Either.cjs.dev.js +13 -13
  90. package/Either/dist/effect-Either.cjs.prod.js +13 -13
  91. package/Either/dist/effect-Either.esm.js +442 -13
  92. package/Encoding/dist/effect-Encoding.cjs.dev.js +14 -14
  93. package/Encoding/dist/effect-Encoding.cjs.prod.js +14 -14
  94. package/Encoding/dist/effect-Encoding.esm.js +123 -14
  95. package/Equal/dist/effect-Equal.cjs.dev.js +6 -6
  96. package/Equal/dist/effect-Equal.cjs.prod.js +6 -6
  97. package/Equal/dist/effect-Equal.esm.js +57 -6
  98. package/Equivalence/dist/effect-Equivalence.cjs.dev.js +2 -2
  99. package/Equivalence/dist/effect-Equivalence.cjs.prod.js +2 -2
  100. package/Equivalence/dist/effect-Equivalence.esm.js +196 -2
  101. package/Error/dist/effect-Error.cjs.dev.js +89 -89
  102. package/Error/dist/effect-Error.cjs.prod.js +89 -89
  103. package/Error/dist/effect-Error.esm.js +47 -91
  104. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.dev.js +2 -2
  105. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.prod.js +2 -2
  106. package/ExecutionStrategy/dist/effect-ExecutionStrategy.esm.js +99 -2
  107. package/Exit/dist/effect-Exit.cjs.dev.js +32 -32
  108. package/Exit/dist/effect-Exit.cjs.prod.js +32 -32
  109. package/Exit/dist/effect-Exit.esm.js +332 -33
  110. package/Fiber/dist/effect-Fiber.cjs.dev.js +75 -75
  111. package/Fiber/dist/effect-Fiber.cjs.prod.js +75 -75
  112. package/Fiber/dist/effect-Fiber.esm.js +423 -77
  113. package/FiberId/dist/effect-FiberId.cjs.dev.js +19 -19
  114. package/FiberId/dist/effect-FiberId.cjs.prod.js +19 -19
  115. package/FiberId/dist/effect-FiberId.esm.js +161 -20
  116. package/FiberRef/dist/effect-FiberRef.cjs.dev.js +73 -73
  117. package/FiberRef/dist/effect-FiberRef.cjs.prod.js +73 -73
  118. package/FiberRef/dist/effect-FiberRef.esm.js +289 -75
  119. package/FiberRefs/dist/effect-FiberRefs.cjs.dev.js +33 -33
  120. package/FiberRefs/dist/effect-FiberRefs.cjs.prod.js +33 -33
  121. package/FiberRefs/dist/effect-FiberRefs.esm.js +107 -34
  122. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.dev.js +34 -34
  123. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js +34 -34
  124. package/FiberRefsPatch/dist/effect-FiberRefsPatch.esm.js +76 -35
  125. package/FiberStatus/dist/effect-FiberStatus.cjs.dev.js +7 -7
  126. package/FiberStatus/dist/effect-FiberStatus.cjs.prod.js +7 -7
  127. package/FiberStatus/dist/effect-FiberStatus.esm.js +89 -7
  128. package/Function/dist/effect-Function.cjs.dev.js +1 -1
  129. package/Function/dist/effect-Function.cjs.prod.js +1 -1
  130. package/Function/dist/effect-Function.esm.js +492 -1
  131. package/GlobalValue/dist/effect-GlobalValue.cjs.dev.js +1 -1
  132. package/GlobalValue/dist/effect-GlobalValue.cjs.prod.js +1 -1
  133. package/GlobalValue/dist/effect-GlobalValue.esm.js +20 -1
  134. package/GroupBy/dist/effect-GroupBy.cjs.dev.js +106 -106
  135. package/GroupBy/dist/effect-GroupBy.cjs.prod.js +106 -106
  136. package/GroupBy/dist/effect-GroupBy.esm.js +63 -108
  137. package/Hash/dist/effect-Hash.cjs.dev.js +5 -5
  138. package/Hash/dist/effect-Hash.cjs.prod.js +5 -5
  139. package/Hash/dist/effect-Hash.esm.js +164 -5
  140. package/HashMap/dist/effect-HashMap.cjs.dev.js +17 -17
  141. package/HashMap/dist/effect-HashMap.cjs.prod.js +17 -17
  142. package/HashMap/dist/effect-HashMap.esm.js +287 -18
  143. package/HashSet/dist/effect-HashSet.cjs.dev.js +17 -17
  144. package/HashSet/dist/effect-HashSet.cjs.prod.js +17 -17
  145. package/HashSet/dist/effect-HashSet.esm.js +227 -18
  146. package/Hub/dist/effect-Hub.cjs.dev.js +72 -72
  147. package/Hub/dist/effect-Hub.cjs.prod.js +72 -72
  148. package/Hub/dist/effect-Hub.esm.js +148 -74
  149. package/Inspectable/dist/effect-Inspectable.cjs.dev.js +1 -1
  150. package/Inspectable/dist/effect-Inspectable.cjs.prod.js +1 -1
  151. package/Inspectable/dist/effect-Inspectable.esm.js +38 -1
  152. package/KeyedPool/dist/effect-KeyedPool.cjs.dev.js +73 -73
  153. package/KeyedPool/dist/effect-KeyedPool.cjs.prod.js +73 -73
  154. package/KeyedPool/dist/effect-KeyedPool.esm.js +104 -75
  155. package/Layer/dist/effect-Layer.cjs.dev.js +81 -81
  156. package/Layer/dist/effect-Layer.cjs.prod.js +81 -81
  157. package/Layer/dist/effect-Layer.esm.js +557 -83
  158. package/List/dist/effect-List.cjs.dev.js +21 -21
  159. package/List/dist/effect-List.cjs.prod.js +21 -21
  160. package/List/dist/effect-List.esm.js +816 -21
  161. package/LogLevel/dist/effect-LogLevel.cjs.dev.js +32 -32
  162. package/LogLevel/dist/effect-LogLevel.cjs.prod.js +32 -32
  163. package/LogLevel/dist/effect-LogLevel.esm.js +202 -33
  164. package/LogSpan/dist/effect-LogSpan.cjs.dev.js +1 -1
  165. package/LogSpan/dist/effect-LogSpan.cjs.prod.js +1 -1
  166. package/LogSpan/dist/effect-LogSpan.esm.js +24 -1
  167. package/Logger/dist/effect-Logger.cjs.dev.js +83 -83
  168. package/Logger/dist/effect-Logger.cjs.prod.js +83 -83
  169. package/Logger/dist/effect-Logger.esm.js +198 -85
  170. package/Metric/dist/effect-Metric.cjs.dev.js +69 -69
  171. package/Metric/dist/effect-Metric.cjs.prod.js +69 -69
  172. package/Metric/dist/effect-Metric.esm.js +395 -71
  173. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.dev.js +22 -22
  174. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.prod.js +22 -22
  175. package/MetricBoundaries/dist/effect-MetricBoundaries.esm.js +52 -22
  176. package/MetricHook/dist/effect-MetricHook.cjs.dev.js +26 -26
  177. package/MetricHook/dist/effect-MetricHook.cjs.prod.js +26 -26
  178. package/MetricHook/dist/effect-MetricHook.esm.js +68 -27
  179. package/MetricKey/dist/effect-MetricKey.cjs.dev.js +22 -22
  180. package/MetricKey/dist/effect-MetricKey.cjs.prod.js +22 -22
  181. package/MetricKey/dist/effect-MetricKey.esm.js +104 -23
  182. package/MetricKeyType/dist/effect-MetricKeyType.cjs.dev.js +18 -18
  183. package/MetricKeyType/dist/effect-MetricKeyType.cjs.prod.js +18 -18
  184. package/MetricKeyType/dist/effect-MetricKeyType.esm.js +147 -18
  185. package/MetricLabel/dist/effect-MetricLabel.cjs.dev.js +9 -9
  186. package/MetricLabel/dist/effect-MetricLabel.cjs.prod.js +9 -9
  187. package/MetricLabel/dist/effect-MetricLabel.esm.js +41 -9
  188. package/MetricPair/dist/effect-MetricPair.cjs.dev.js +3 -3
  189. package/MetricPair/dist/effect-MetricPair.cjs.prod.js +3 -3
  190. package/MetricPair/dist/effect-MetricPair.esm.js +38 -3
  191. package/MetricPolling/dist/effect-MetricPolling.cjs.dev.js +75 -75
  192. package/MetricPolling/dist/effect-MetricPolling.cjs.prod.js +75 -75
  193. package/MetricPolling/dist/effect-MetricPolling.esm.js +84 -77
  194. package/MetricRegistry/dist/effect-MetricRegistry.cjs.dev.js +32 -32
  195. package/MetricRegistry/dist/effect-MetricRegistry.cjs.prod.js +32 -32
  196. package/MetricRegistry/dist/effect-MetricRegistry.esm.js +28 -33
  197. package/MetricState/dist/effect-MetricState.cjs.dev.js +9 -9
  198. package/MetricState/dist/effect-MetricState.cjs.prod.js +9 -9
  199. package/MetricState/dist/effect-MetricState.esm.js +151 -9
  200. package/MutableHashMap/dist/effect-MutableHashMap.cjs.dev.js +19 -19
  201. package/MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js +19 -19
  202. package/MutableHashMap/dist/effect-MutableHashMap.esm.js +128 -20
  203. package/MutableHashSet/dist/effect-MutableHashSet.cjs.dev.js +20 -20
  204. package/MutableHashSet/dist/effect-MutableHashSet.cjs.prod.js +20 -20
  205. package/MutableHashSet/dist/effect-MutableHashSet.esm.js +90 -21
  206. package/MutableList/dist/effect-MutableList.cjs.dev.js +4 -4
  207. package/MutableList/dist/effect-MutableList.cjs.prod.js +4 -4
  208. package/MutableList/dist/effect-MutableList.esm.js +264 -4
  209. package/MutableQueue/dist/effect-MutableQueue.cjs.dev.js +22 -22
  210. package/MutableQueue/dist/effect-MutableQueue.cjs.prod.js +22 -22
  211. package/MutableQueue/dist/effect-MutableQueue.esm.js +187 -22
  212. package/MutableRef/dist/effect-MutableRef.cjs.dev.js +9 -9
  213. package/MutableRef/dist/effect-MutableRef.cjs.prod.js +9 -9
  214. package/MutableRef/dist/effect-MutableRef.esm.js +156 -9
  215. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.dev.js +1 -1
  216. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.prod.js +1 -1
  217. package/NonEmptyIterable/dist/effect-NonEmptyIterable.esm.js +28 -1
  218. package/Number/dist/effect-Number.cjs.dev.js +5 -5
  219. package/Number/dist/effect-Number.cjs.prod.js +5 -5
  220. package/Number/dist/effect-Number.esm.js +369 -5
  221. package/Option/dist/effect-Option.cjs.dev.js +15 -15
  222. package/Option/dist/effect-Option.cjs.prod.js +15 -15
  223. package/Option/dist/effect-Option.esm.js +1071 -15
  224. package/Order/dist/effect-Order.cjs.dev.js +2 -2
  225. package/Order/dist/effect-Order.cjs.prod.js +2 -2
  226. package/Order/dist/effect-Order.esm.js +263 -2
  227. package/Ordering/dist/effect-Ordering.cjs.dev.js +2 -2
  228. package/Ordering/dist/effect-Ordering.cjs.prod.js +2 -2
  229. package/Ordering/dist/effect-Ordering.esm.js +88 -2
  230. package/Pipeable/dist/effect-Pipeable.cjs.dev.js +1 -1
  231. package/Pipeable/dist/effect-Pipeable.cjs.prod.js +1 -1
  232. package/Pipeable/dist/effect-Pipeable.esm.js +44 -1
  233. package/Pool/dist/effect-Pool.cjs.dev.js +73 -73
  234. package/Pool/dist/effect-Pool.cjs.prod.js +73 -73
  235. package/Pool/dist/effect-Pool.esm.js +104 -75
  236. package/Predicate/dist/effect-Predicate.cjs.dev.js +2 -2
  237. package/Predicate/dist/effect-Predicate.cjs.prod.js +2 -2
  238. package/Predicate/dist/effect-Predicate.esm.js +634 -2
  239. package/Queue/dist/effect-Queue.cjs.dev.js +72 -72
  240. package/Queue/dist/effect-Queue.cjs.prod.js +72 -72
  241. package/Queue/dist/effect-Queue.esm.js +328 -74
  242. package/Random/dist/effect-Random.cjs.dev.js +40 -40
  243. package/Random/dist/effect-Random.cjs.prod.js +40 -40
  244. package/Random/dist/effect-Random.esm.js +83 -42
  245. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.dev.js +19 -19
  246. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js +19 -19
  247. package/ReadonlyArray/dist/effect-ReadonlyArray.esm.js +1445 -19
  248. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.dev.js +17 -17
  249. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.prod.js +17 -17
  250. package/ReadonlyRecord/dist/effect-ReadonlyRecord.esm.js +518 -17
  251. package/RedBlackTree/dist/effect-RedBlackTree.cjs.dev.js +21 -21
  252. package/RedBlackTree/dist/effect-RedBlackTree.cjs.prod.js +21 -21
  253. package/RedBlackTree/dist/effect-RedBlackTree.esm.js +314 -22
  254. package/Ref/dist/effect-Ref.cjs.dev.js +32 -32
  255. package/Ref/dist/effect-Ref.cjs.prod.js +32 -32
  256. package/Ref/dist/effect-Ref.esm.js +111 -33
  257. package/Reloadable/dist/effect-Reloadable.cjs.dev.js +82 -82
  258. package/Reloadable/dist/effect-Reloadable.cjs.prod.js +82 -82
  259. package/Reloadable/dist/effect-Reloadable.esm.js +88 -84
  260. package/Request/dist/effect-Request.cjs.dev.js +72 -72
  261. package/Request/dist/effect-Request.cjs.prod.js +72 -72
  262. package/Request/dist/effect-Request.esm.js +160 -74
  263. package/RequestBlock/dist/effect-RequestBlock.cjs.dev.js +89 -89
  264. package/RequestBlock/dist/effect-RequestBlock.cjs.prod.js +89 -89
  265. package/RequestBlock/dist/effect-RequestBlock.esm.js +103 -91
  266. package/RequestResolver/dist/effect-RequestResolver.cjs.dev.js +89 -89
  267. package/RequestResolver/dist/effect-RequestResolver.cjs.prod.js +89 -89
  268. package/RequestResolver/dist/effect-RequestResolver.esm.js +191 -91
  269. package/Resource/dist/effect-Resource.cjs.dev.js +77 -77
  270. package/Resource/dist/effect-Resource.cjs.prod.js +77 -77
  271. package/Resource/dist/effect-Resource.esm.js +70 -79
  272. package/Runtime/dist/effect-Runtime.cjs.dev.js +77 -77
  273. package/Runtime/dist/effect-Runtime.cjs.prod.js +77 -77
  274. package/Runtime/dist/effect-Runtime.esm.js +157 -79
  275. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.dev.js +83 -83
  276. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.prod.js +83 -83
  277. package/RuntimeFlags/dist/effect-RuntimeFlags.esm.js +305 -85
  278. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.dev.js +26 -26
  279. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.prod.js +26 -26
  280. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.esm.js +158 -27
  281. package/STM/dist/effect-STM.cjs.dev.js +110 -110
  282. package/STM/dist/effect-STM.cjs.prod.js +110 -110
  283. package/STM/dist/effect-STM.esm.js +1193 -112
  284. package/Schedule/dist/effect-Schedule.cjs.dev.js +55 -55
  285. package/Schedule/dist/effect-Schedule.cjs.prod.js +55 -55
  286. package/Schedule/dist/effect-Schedule.esm.js +957 -57
  287. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.dev.js +24 -24
  288. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js +24 -24
  289. package/ScheduleDecision/dist/effect-ScheduleDecision.esm.js +48 -24
  290. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.dev.js +17 -17
  291. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js +17 -17
  292. package/ScheduleInterval/dist/effect-ScheduleInterval.esm.js +130 -17
  293. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.dev.js +23 -23
  294. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js +23 -23
  295. package/ScheduleIntervals/dist/effect-ScheduleIntervals.esm.js +105 -23
  296. package/Scheduler/dist/effect-Scheduler.cjs.dev.js +32 -32
  297. package/Scheduler/dist/effect-Scheduler.cjs.prod.js +32 -32
  298. package/Scheduler/dist/effect-Scheduler.esm.js +326 -34
  299. package/Scope/dist/effect-Scope.cjs.dev.js +69 -69
  300. package/Scope/dist/effect-Scope.cjs.prod.js +69 -69
  301. package/Scope/dist/effect-Scope.esm.js +117 -71
  302. package/ScopedCache/dist/effect-ScopedCache.cjs.dev.js +73 -73
  303. package/ScopedCache/dist/effect-ScopedCache.cjs.prod.js +73 -73
  304. package/ScopedCache/dist/effect-ScopedCache.esm.js +52 -75
  305. package/ScopedRef/dist/effect-ScopedRef.cjs.dev.js +77 -77
  306. package/ScopedRef/dist/effect-ScopedRef.cjs.prod.js +77 -77
  307. package/ScopedRef/dist/effect-ScopedRef.esm.js +71 -79
  308. package/Sink/dist/effect-Sink.cjs.dev.js +99 -99
  309. package/Sink/dist/effect-Sink.cjs.prod.js +99 -99
  310. package/Sink/dist/effect-Sink.esm.js +997 -101
  311. package/SortedMap/dist/effect-SortedMap.cjs.dev.js +22 -22
  312. package/SortedMap/dist/effect-SortedMap.cjs.prod.js +22 -22
  313. package/SortedMap/dist/effect-SortedMap.esm.js +168 -23
  314. package/SortedSet/dist/effect-SortedSet.cjs.dev.js +22 -22
  315. package/SortedSet/dist/effect-SortedSet.cjs.prod.js +22 -22
  316. package/SortedSet/dist/effect-SortedSet.esm.js +263 -23
  317. package/Stream/dist/effect-Stream.cjs.dev.js +106 -106
  318. package/Stream/dist/effect-Stream.cjs.prod.js +106 -106
  319. package/Stream/dist/effect-Stream.esm.js +2879 -108
  320. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.dev.js +2 -2
  321. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.prod.js +2 -2
  322. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.esm.js +97 -2
  323. package/String/dist/effect-String.cjs.dev.js +17 -17
  324. package/String/dist/effect-String.cjs.prod.js +17 -17
  325. package/String/dist/effect-String.esm.js +600 -17
  326. package/Struct/dist/effect-Struct.cjs.dev.js +4 -4
  327. package/Struct/dist/effect-Struct.cjs.prod.js +4 -4
  328. package/Struct/dist/effect-Struct.esm.js +125 -4
  329. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.dev.js +106 -106
  330. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.prod.js +106 -106
  331. package/SubscriptionRef/dist/effect-SubscriptionRef.esm.js +160 -108
  332. package/Supervisor/dist/effect-Supervisor.cjs.dev.js +83 -83
  333. package/Supervisor/dist/effect-Supervisor.cjs.prod.js +83 -83
  334. package/Supervisor/dist/effect-Supervisor.esm.js +148 -85
  335. package/Symbol/dist/effect-Symbol.cjs.dev.js +4 -4
  336. package/Symbol/dist/effect-Symbol.cjs.prod.js +4 -4
  337. package/Symbol/dist/effect-Symbol.esm.js +30 -4
  338. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.dev.js +76 -76
  339. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.prod.js +76 -76
  340. package/SynchronizedRef/dist/effect-SynchronizedRef.esm.js +160 -78
  341. package/TArray/dist/effect-TArray.cjs.dev.js +112 -112
  342. package/TArray/dist/effect-TArray.cjs.prod.js +112 -112
  343. package/TArray/dist/effect-TArray.esm.js +367 -114
  344. package/TDeferred/dist/effect-TDeferred.cjs.dev.js +111 -111
  345. package/TDeferred/dist/effect-TDeferred.cjs.prod.js +111 -111
  346. package/TDeferred/dist/effect-TDeferred.esm.js +63 -113
  347. package/THub/dist/effect-THub.cjs.dev.js +113 -113
  348. package/THub/dist/effect-THub.cjs.prod.js +113 -113
  349. package/THub/dist/effect-THub.esm.js +157 -115
  350. package/TMap/dist/effect-TMap.cjs.dev.js +114 -114
  351. package/TMap/dist/effect-TMap.cjs.prod.js +114 -114
  352. package/TMap/dist/effect-TMap.esm.js +373 -116
  353. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.dev.js +111 -111
  354. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.prod.js +111 -111
  355. package/TPriorityQueue/dist/effect-TPriorityQueue.esm.js +184 -113
  356. package/TQueue/dist/effect-TQueue.cjs.dev.js +113 -113
  357. package/TQueue/dist/effect-TQueue.cjs.prod.js +113 -113
  358. package/TQueue/dist/effect-TQueue.esm.js +293 -115
  359. package/TRandom/dist/effect-TRandom.cjs.dev.js +112 -112
  360. package/TRandom/dist/effect-TRandom.cjs.prod.js +112 -112
  361. package/TRandom/dist/effect-TRandom.esm.js +93 -114
  362. package/TReentrantLock/dist/effect-TReentrantLock.cjs.dev.js +110 -110
  363. package/TReentrantLock/dist/effect-TReentrantLock.cjs.prod.js +110 -110
  364. package/TReentrantLock/dist/effect-TReentrantLock.esm.js +199 -112
  365. package/TRef/dist/effect-TRef.cjs.dev.js +110 -110
  366. package/TRef/dist/effect-TRef.cjs.prod.js +110 -110
  367. package/TRef/dist/effect-TRef.esm.js +116 -112
  368. package/TSemaphore/dist/effect-TSemaphore.cjs.dev.js +112 -112
  369. package/TSemaphore/dist/effect-TSemaphore.cjs.prod.js +112 -112
  370. package/TSemaphore/dist/effect-TSemaphore.esm.js +97 -114
  371. package/TSet/dist/effect-TSet.cjs.dev.js +114 -114
  372. package/TSet/dist/effect-TSet.cjs.prod.js +114 -114
  373. package/TSet/dist/effect-TSet.esm.js +268 -116
  374. package/Take/dist/effect-Take.cjs.dev.js +89 -89
  375. package/Take/dist/effect-Take.cjs.prod.js +89 -89
  376. package/Take/dist/effect-Take.esm.js +190 -91
  377. package/TestAnnotation/dist/effect-TestAnnotation.cjs.dev.js +25 -25
  378. package/TestAnnotation/dist/effect-TestAnnotation.cjs.prod.js +25 -25
  379. package/TestAnnotation/dist/effect-TestAnnotation.esm.js +111 -26
  380. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.dev.js +2 -2
  381. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.prod.js +2 -2
  382. package/TestAnnotationMap/dist/effect-TestAnnotationMap.esm.js +101 -2
  383. package/TestAnnotations/dist/effect-TestAnnotations.cjs.dev.js +57 -57
  384. package/TestAnnotations/dist/effect-TestAnnotations.cjs.prod.js +57 -57
  385. package/TestAnnotations/dist/effect-TestAnnotations.esm.js +83 -59
  386. package/TestClock/dist/effect-TestClock.cjs.dev.js +85 -85
  387. package/TestClock/dist/effect-TestClock.cjs.prod.js +85 -85
  388. package/TestClock/dist/effect-TestClock.esm.js +411 -87
  389. package/TestConfig/dist/effect-TestConfig.cjs.dev.js +18 -18
  390. package/TestConfig/dist/effect-TestConfig.cjs.prod.js +18 -18
  391. package/TestConfig/dist/effect-TestConfig.esm.js +27 -18
  392. package/TestContext/dist/effect-TestContext.cjs.dev.js +96 -96
  393. package/TestContext/dist/effect-TestContext.cjs.prod.js +96 -96
  394. package/TestContext/dist/effect-TestContext.esm.js +29 -98
  395. package/TestLive/dist/effect-TestLive.cjs.dev.js +40 -40
  396. package/TestLive/dist/effect-TestLive.cjs.prod.js +40 -40
  397. package/TestLive/dist/effect-TestLive.esm.js +48 -42
  398. package/TestServices/dist/effect-TestServices.cjs.dev.js +94 -94
  399. package/TestServices/dist/effect-TestServices.cjs.prod.js +94 -94
  400. package/TestServices/dist/effect-TestServices.esm.js +269 -96
  401. package/TestSized/dist/effect-TestSized.cjs.dev.js +32 -32
  402. package/TestSized/dist/effect-TestSized.cjs.prod.js +32 -32
  403. package/TestSized/dist/effect-TestSized.esm.js +50 -33
  404. package/Tracer/dist/effect-Tracer.cjs.dev.js +40 -40
  405. package/Tracer/dist/effect-Tracer.cjs.prod.js +40 -40
  406. package/Tracer/dist/effect-Tracer.esm.js +68 -42
  407. package/Tuple/dist/effect-Tuple.cjs.dev.js +4 -4
  408. package/Tuple/dist/effect-Tuple.cjs.prod.js +4 -4
  409. package/Tuple/dist/effect-Tuple.esm.js +173 -4
  410. package/Unify/dist/effect-Unify.cjs.dev.js +2 -2
  411. package/Unify/dist/effect-Unify.cjs.prod.js +2 -2
  412. package/Unify/dist/effect-Unify.esm.js +40 -2
  413. package/Utils/dist/effect-Utils.cjs.dev.js +3 -3
  414. package/Utils/dist/effect-Utils.cjs.prod.js +3 -3
  415. package/Utils/dist/effect-Utils.esm.js +352 -3
  416. package/dist/Bigint-0ebd807c.cjs.dev.js +392 -0
  417. package/dist/Bigint-912c77f3.cjs.prod.js +392 -0
  418. package/dist/Boolean-97839b78.cjs.prod.js +264 -0
  419. package/dist/Boolean-f0bc3abf.cjs.dev.js +264 -0
  420. package/dist/Brand-93578f43.cjs.prod.js +224 -0
  421. package/dist/Brand-b238487d.cjs.dev.js +224 -0
  422. package/dist/Cache-1688e584.cjs.dev.js +127 -0
  423. package/dist/Cache-8f2f2b55.cjs.prod.js +127 -0
  424. package/dist/Cause-384e2165.cjs.prod.js +791 -0
  425. package/dist/Cause-96c29074.cjs.dev.js +791 -0
  426. package/dist/Channel-2ce019f1.cjs.prod.js +1217 -0
  427. package/dist/Channel-544108d2.cjs.dev.js +1217 -0
  428. package/dist/ChannelChildExecutorDecision-168278f6.cjs.prod.js +136 -0
  429. package/dist/ChannelChildExecutorDecision-b0e715de.cjs.dev.js +136 -0
  430. package/dist/ChannelMergeDecision-9c266aeb.cjs.prod.js +78 -0
  431. package/dist/ChannelMergeDecision-eeaf4779.cjs.dev.js +78 -0
  432. package/dist/ChannelMergeState-4366d090.cjs.prod.js +125 -0
  433. package/dist/ChannelMergeState-abce1d88.cjs.dev.js +125 -0
  434. package/dist/ChannelMergeStrategy-6193b8e0.cjs.prod.js +104 -0
  435. package/dist/ChannelMergeStrategy-e7ddbb7a.cjs.dev.js +104 -0
  436. package/dist/ChannelSingleProducerAsyncInput-62f4749c.cjs.dev.js +55 -0
  437. package/dist/ChannelSingleProducerAsyncInput-6e0084c3.cjs.prod.js +55 -0
  438. package/dist/ChannelUpstreamPullRequest-1ca7d2bd.cjs.dev.js +104 -0
  439. package/dist/ChannelUpstreamPullRequest-208751c3.cjs.prod.js +104 -0
  440. package/dist/ChannelUpstreamPullStrategy-266b5a77.cjs.prod.js +103 -0
  441. package/dist/ChannelUpstreamPullStrategy-ec57dc70.cjs.dev.js +103 -0
  442. package/dist/Chunk-6cf5a8e6.cjs.prod.js +1248 -0
  443. package/dist/Chunk-bd290b8e.cjs.dev.js +1248 -0
  444. package/dist/Clock-09ecce0a.cjs.prod.js +97 -0
  445. package/dist/Clock-bec722c1.cjs.dev.js +97 -0
  446. package/dist/Config-85ae6286.cjs.prod.js +393 -0
  447. package/dist/Config-dc58cf69.cjs.dev.js +393 -0
  448. package/dist/ConfigError-c1f762d2.cjs.dev.js +225 -0
  449. package/dist/ConfigError-cee682fa.cjs.prod.js +225 -0
  450. package/dist/ConfigProvider-8341a5f5.cjs.prod.js +240 -0
  451. package/dist/ConfigProvider-de45b085.cjs.dev.js +240 -0
  452. package/dist/ConfigProviderPathPatch-52422b32.cjs.prod.js +86 -0
  453. package/dist/ConfigProviderPathPatch-d22442e3.cjs.dev.js +86 -0
  454. package/dist/ConfigSecret-c76717e8.cjs.dev.js +83 -0
  455. package/dist/ConfigSecret-ebab2ae7.cjs.prod.js +83 -0
  456. package/dist/Console-150b7b40.cjs.prod.js +271 -0
  457. package/dist/Console-4825ee9f.cjs.dev.js +271 -0
  458. package/dist/Context-25a49952.cjs.prod.js +327 -0
  459. package/dist/Context-3c9e986b.cjs.dev.js +327 -0
  460. package/dist/Context-96739709.cjs.dev.js +222 -0
  461. package/dist/Context-f958cabc.cjs.prod.js +222 -0
  462. package/dist/Data-07dc27f1.cjs.prod.js +237 -0
  463. package/dist/Data-85559fb3.cjs.dev.js +237 -0
  464. package/dist/DefaultServices-d5740d37.cjs.dev.js +34 -0
  465. package/dist/DefaultServices-df7495bb.cjs.prod.js +34 -0
  466. package/dist/Deferred-5d5c886c.cjs.dev.js +253 -0
  467. package/dist/Deferred-9d825b3b.cjs.prod.js +253 -0
  468. package/dist/Differ-0122f60e.cjs.dev.js +992 -0
  469. package/dist/Differ-0bd34066.cjs.prod.js +992 -0
  470. package/dist/Duration-0bc08d03.cjs.prod.js +508 -0
  471. package/dist/Duration-604874d1.cjs.dev.js +508 -0
  472. package/dist/Effect-1442090f.cjs.prod.js +3740 -0
  473. package/dist/Effect-6e9780e6.cjs.dev.js +3740 -0
  474. package/dist/Effectable-04f3cd30.cjs.dev.js +99 -0
  475. package/dist/Effectable-8997112d.cjs.prod.js +99 -0
  476. package/dist/Effectable-a6403e5f.cjs.dev.js +181 -0
  477. package/dist/Effectable-f867d1cb.cjs.prod.js +181 -0
  478. package/dist/Either-3fab3796.cjs.prod.js +502 -0
  479. package/dist/Either-9c349424.cjs.dev.js +178 -0
  480. package/dist/Either-a806809d.cjs.dev.js +502 -0
  481. package/dist/Either-d03d5f05.cjs.prod.js +178 -0
  482. package/dist/Encoding-0cab52d5.cjs.prod.js +309 -0
  483. package/dist/Encoding-d993b1b0.cjs.dev.js +309 -0
  484. package/dist/Equal-281b6ca8.cjs.dev.js +71 -0
  485. package/dist/Equal-ce9977a8.cjs.prod.js +71 -0
  486. package/dist/Equivalence-0bc84518.cjs.prod.js +238 -0
  487. package/dist/Equivalence-de7a0d51.cjs.dev.js +238 -0
  488. package/dist/Error-5ab157f2.cjs.dev.js +57 -0
  489. package/dist/Error-e9d25c53.cjs.prod.js +57 -0
  490. package/dist/ExecutionStrategy-89fbe735.cjs.dev.js +180 -0
  491. package/dist/ExecutionStrategy-dc778180.cjs.prod.js +180 -0
  492. package/dist/Exit-5691142c.cjs.prod.js +408 -0
  493. package/dist/Exit-a23874e1.cjs.dev.js +408 -0
  494. package/dist/Fiber-6432d5f7.cjs.dev.js +521 -0
  495. package/dist/Fiber-e61b3c65.cjs.prod.js +521 -0
  496. package/dist/FiberId-929dcce4.cjs.dev.js +443 -0
  497. package/dist/FiberId-b79e8047.cjs.prod.js +443 -0
  498. package/dist/FiberRef-1db44a9b.cjs.dev.js +385 -0
  499. package/dist/FiberRef-efb4a3ac.cjs.prod.js +385 -0
  500. package/dist/FiberRefs-43bfd8b9.cjs.dev.js +135 -0
  501. package/dist/FiberRefs-4cb171f7.cjs.prod.js +135 -0
  502. package/dist/FiberRefsPatch-5236f61e.cjs.dev.js +90 -0
  503. package/dist/FiberRefsPatch-cb847553.cjs.prod.js +90 -0
  504. package/dist/FiberStatus-b82dad24.cjs.prod.js +197 -0
  505. package/dist/FiberStatus-bac7d58d.cjs.dev.js +197 -0
  506. package/dist/Function-2e6b0cda.cjs.prod.js +538 -0
  507. package/dist/Function-41ce433d.cjs.dev.js +538 -0
  508. package/dist/GlobalValue-81ab6908.cjs.dev.js +28 -0
  509. package/dist/GlobalValue-cb645c99.cjs.prod.js +28 -0
  510. package/dist/GroupBy-8a8149b4.cjs.dev.js +79 -0
  511. package/dist/GroupBy-b74084af.cjs.prod.js +79 -0
  512. package/dist/Hash-1bd73210.cjs.prod.js +192 -0
  513. package/dist/Hash-bd154268.cjs.dev.js +192 -0
  514. package/dist/HashMap-12668911.cjs.prod.js +361 -0
  515. package/dist/HashMap-68e290b6.cjs.dev.js +361 -0
  516. package/dist/HashSet-6978c08e.cjs.dev.js +283 -0
  517. package/dist/HashSet-6fe62df2.cjs.prod.js +965 -0
  518. package/dist/HashSet-c40a52b1.cjs.prod.js +283 -0
  519. package/dist/HashSet-ece2cfe8.cjs.dev.js +965 -0
  520. package/dist/Hub-6e64debd.cjs.prod.js +1280 -0
  521. package/dist/Hub-74834668.cjs.dev.js +1280 -0
  522. package/dist/Inspectable-3c4a0f5d.cjs.prod.js +50 -0
  523. package/dist/Inspectable-ac929af4.cjs.dev.js +50 -0
  524. package/dist/KeyedPool-b05481e9.cjs.dev.js +282 -0
  525. package/dist/KeyedPool-cd8abf95.cjs.prod.js +282 -0
  526. package/dist/Layer-297269fd.cjs.prod.js +687 -0
  527. package/dist/Layer-c69f3fdc.cjs.dev.js +687 -0
  528. package/dist/List-c6ea7efe.cjs.dev.js +912 -0
  529. package/dist/List-d9775087.cjs.prod.js +912 -0
  530. package/dist/LogLevel-99f64f82.cjs.dev.js +240 -0
  531. package/dist/LogLevel-e9848e15.cjs.prod.js +240 -0
  532. package/dist/LogSpan-c905a192.cjs.prod.js +46 -0
  533. package/dist/LogSpan-e345ba58.cjs.dev.js +46 -0
  534. package/dist/Logger-680763c7.cjs.dev.js +275 -0
  535. package/dist/Logger-7a664cc3.cjs.prod.js +275 -0
  536. package/dist/Metric-09d012ff.cjs.dev.js +488 -0
  537. package/dist/Metric-b7563a68.cjs.prod.js +488 -0
  538. package/dist/MetricBoundaries-cf5df220.cjs.prod.js +68 -0
  539. package/dist/MetricBoundaries-f5f5aae1.cjs.dev.js +68 -0
  540. package/dist/MetricHook-3104e93b.cjs.dev.js +90 -0
  541. package/dist/MetricHook-efd05d72.cjs.prod.js +90 -0
  542. package/dist/MetricKey-9cfcaec8.cjs.prod.js +130 -0
  543. package/dist/MetricKey-c3ba437e.cjs.dev.js +130 -0
  544. package/dist/MetricKeyType-6d2d9036.cjs.prod.js +187 -0
  545. package/dist/MetricKeyType-c1d7ebe8.cjs.dev.js +187 -0
  546. package/dist/MetricLabel-6a1886c6.cjs.dev.js +53 -0
  547. package/dist/MetricLabel-7e1d569e.cjs.prod.js +53 -0
  548. package/dist/MetricPair-658ab13d.cjs.dev.js +50 -0
  549. package/dist/MetricPair-aec13967.cjs.prod.js +50 -0
  550. package/dist/MetricPolling-5af0ff67.cjs.dev.js +177 -0
  551. package/dist/MetricPolling-a0a4e798.cjs.prod.js +177 -0
  552. package/dist/MetricRegistry-e4af936b.cjs.dev.js +38 -0
  553. package/dist/MetricRegistry-ff6df283.cjs.prod.js +38 -0
  554. package/dist/MetricState-b65340a4.cjs.dev.js +191 -0
  555. package/dist/MetricState-bd6a5001.cjs.prod.js +191 -0
  556. package/dist/MutableHashMap-74e83e84.cjs.dev.js +154 -0
  557. package/dist/MutableHashMap-95493edb.cjs.prod.js +154 -0
  558. package/dist/MutableHashSet-780dfd63.cjs.prod.js +110 -0
  559. package/dist/MutableHashSet-ec8d7cc4.cjs.dev.js +110 -0
  560. package/dist/MutableList-58124ef2.cjs.dev.js +296 -0
  561. package/dist/MutableList-732af09a.cjs.prod.js +296 -0
  562. package/dist/MutableQueue-0e9f2466.cjs.dev.js +215 -0
  563. package/dist/MutableQueue-f8aba856.cjs.prod.js +215 -0
  564. package/dist/MutableRef-4a2f1f23.cjs.prod.js +194 -0
  565. package/dist/MutableRef-724c4082.cjs.dev.js +194 -0
  566. package/dist/NonEmptyIterable-418cef14.cjs.prod.js +36 -0
  567. package/dist/NonEmptyIterable-bb452f41.cjs.dev.js +36 -0
  568. package/dist/Number-588f6483.cjs.dev.js +417 -0
  569. package/dist/Number-cb2ba2e8.cjs.prod.js +417 -0
  570. package/dist/Option-02025c86.cjs.prod.js +1198 -0
  571. package/dist/Option-03997d77.cjs.dev.js +1198 -0
  572. package/dist/Order-28bdebd2.cjs.dev.js +321 -0
  573. package/dist/Order-8a112bfb.cjs.prod.js +321 -0
  574. package/dist/Ordering-60bf9127.cjs.prod.js +104 -0
  575. package/dist/Ordering-b955b746.cjs.dev.js +104 -0
  576. package/dist/Pipeable-4698db72.cjs.dev.js +52 -0
  577. package/dist/Pipeable-d3ec6711.cjs.prod.js +52 -0
  578. package/dist/Pool-54389592.cjs.prod.js +122 -0
  579. package/dist/Pool-fe1b506a.cjs.dev.js +122 -0
  580. package/dist/Predicate-9e859c9c.cjs.dev.js +718 -0
  581. package/dist/Predicate-daa86e61.cjs.prod.js +718 -0
  582. package/dist/Queue-5f954287.cjs.prod.js +394 -0
  583. package/dist/Queue-8d082fe4.cjs.dev.js +394 -0
  584. package/dist/Random-35304046.cjs.dev.js +104 -0
  585. package/dist/Random-b4709b6a.cjs.prod.js +104 -0
  586. package/dist/ReadonlyArray-48949ee7.cjs.dev.js +1721 -0
  587. package/dist/ReadonlyArray-8157f697.cjs.prod.js +1721 -0
  588. package/dist/ReadonlyArray-9a1474f6.cjs.dev.js +10 -0
  589. package/dist/ReadonlyArray-f9ed7a05.cjs.prod.js +10 -0
  590. package/dist/ReadonlyRecord-605a625b.cjs.dev.js +568 -0
  591. package/dist/ReadonlyRecord-8db8bada.cjs.prod.js +568 -0
  592. package/dist/RedBlackTree-e6bd147c.cjs.dev.js +1669 -0
  593. package/dist/RedBlackTree-eb41ea8a.cjs.prod.js +1669 -0
  594. package/dist/Ref-30e5ee58.cjs.prod.js +282 -0
  595. package/dist/Ref-af783b72.cjs.dev.js +282 -0
  596. package/dist/Reloadable-2b8ba75d.cjs.prod.js +169 -0
  597. package/dist/Reloadable-b01c9297.cjs.dev.js +169 -0
  598. package/dist/Request-53592fe4.cjs.prod.js +190 -0
  599. package/dist/Request-d3b63af6.cjs.dev.js +190 -0
  600. package/dist/RequestBlock-1aa4c3bd.cjs.dev.js +124 -0
  601. package/dist/RequestBlock-8c3b51d1.cjs.prod.js +124 -0
  602. package/dist/RequestResolver-133197d5.cjs.prod.js +233 -0
  603. package/dist/RequestResolver-86c21b80.cjs.dev.js +233 -0
  604. package/dist/Resource-2530fe45.cjs.prod.js +118 -0
  605. package/dist/Resource-e50b4b25.cjs.dev.js +118 -0
  606. package/dist/Runtime-0d643f0c.cjs.prod.js +191 -0
  607. package/dist/Runtime-c4b887ff.cjs.dev.js +191 -0
  608. package/dist/RuntimeFlags-9d8fac5a.cjs.prod.js +381 -0
  609. package/dist/RuntimeFlags-f67e3984.cjs.dev.js +381 -0
  610. package/dist/RuntimeFlagsPatch-130e990c.cjs.dev.js +411 -0
  611. package/dist/RuntimeFlagsPatch-5570758d.cjs.prod.js +411 -0
  612. package/dist/STM-23270be2.cjs.prod.js +1447 -0
  613. package/dist/STM-5a4c9921.cjs.dev.js +1447 -0
  614. package/dist/Schedule-0444792d.cjs.prod.js +1159 -0
  615. package/dist/Schedule-b6c7b49a.cjs.dev.js +1159 -0
  616. package/dist/ScheduleDecision-369f2d2b.cjs.prod.js +106 -0
  617. package/dist/ScheduleDecision-ba8d0e87.cjs.dev.js +106 -0
  618. package/dist/ScheduleInterval-51f42533.cjs.dev.js +244 -0
  619. package/dist/ScheduleInterval-78037484.cjs.prod.js +244 -0
  620. package/dist/ScheduleIntervals-b0bfcf3b.cjs.dev.js +265 -0
  621. package/dist/ScheduleIntervals-db13140c.cjs.prod.js +265 -0
  622. package/dist/Scheduler-819ee02a.cjs.prod.js +358 -0
  623. package/dist/Scheduler-d080442d.cjs.dev.js +358 -0
  624. package/dist/Scope-311c7eb9.cjs.prod.js +143 -0
  625. package/dist/Scope-6ba9ec6d.cjs.dev.js +143 -0
  626. package/dist/ScopedCache-3f58b125.cjs.dev.js +467 -0
  627. package/dist/ScopedCache-8f99505c.cjs.prod.js +467 -0
  628. package/dist/ScopedRef-7946d287.cjs.prod.js +87 -0
  629. package/dist/ScopedRef-b92e1633.cjs.dev.js +87 -0
  630. package/dist/Sink-9f13da17.cjs.dev.js +1215 -0
  631. package/dist/Sink-9f82fc3b.cjs.prod.js +1215 -0
  632. package/dist/SortedMap-bb3311c3.cjs.prod.js +210 -0
  633. package/dist/SortedMap-f452cc44.cjs.dev.js +210 -0
  634. package/dist/SortedSet-424670fe.cjs.prod.js +311 -0
  635. package/dist/SortedSet-f90b14a2.cjs.dev.js +311 -0
  636. package/dist/Stream-14325ecb.cjs.dev.js +3469 -0
  637. package/dist/Stream-cf262c16.cjs.prod.js +3469 -0
  638. package/dist/StreamHaltStrategy-07f544a6.cjs.prod.js +214 -0
  639. package/dist/StreamHaltStrategy-66a53f66.cjs.dev.js +214 -0
  640. package/dist/String-23b18ca9.cjs.prod.js +694 -0
  641. package/dist/String-830aaa3e.cjs.dev.js +694 -0
  642. package/dist/Struct-14648d76.cjs.dev.js +141 -0
  643. package/dist/Struct-c6b00f29.cjs.prod.js +141 -0
  644. package/dist/SubscriptionRef-aa7bdc5f.cjs.prod.js +269 -0
  645. package/dist/SubscriptionRef-d3c1aa07.cjs.dev.js +269 -0
  646. package/dist/Supervisor-21087253.cjs.prod.js +170 -0
  647. package/dist/Supervisor-40dd7ce5.cjs.dev.js +170 -0
  648. package/dist/Symbol-55d0b3d8.cjs.prod.js +40 -0
  649. package/dist/Symbol-5d74a5f2.cjs.dev.js +40 -0
  650. package/dist/SynchronizedRef-3181eb0a.cjs.dev.js +212 -0
  651. package/dist/SynchronizedRef-c6e0884b.cjs.prod.js +212 -0
  652. package/dist/TArray-6767b4bd.cjs.prod.js +455 -0
  653. package/dist/TArray-a0a4c6e6.cjs.dev.js +455 -0
  654. package/dist/TDeferred-a9839479.cjs.prod.js +129 -0
  655. package/dist/TDeferred-ac2c4025.cjs.dev.js +129 -0
  656. package/dist/THub-25b77864.cjs.prod.js +570 -0
  657. package/dist/THub-38053ae1.cjs.dev.js +570 -0
  658. package/dist/TMap-91505efa.cjs.prod.js +463 -0
  659. package/dist/TMap-de8ac080.cjs.dev.js +463 -0
  660. package/dist/TPriorityQueue-00b65d1a.cjs.prod.js +381 -0
  661. package/dist/TPriorityQueue-96ff0e15.cjs.dev.js +381 -0
  662. package/dist/TQueue-5e242ca2.cjs.prod.js +353 -0
  663. package/dist/TQueue-707762bf.cjs.dev.js +353 -0
  664. package/dist/TRandom-5eb21d23.cjs.dev.js +203 -0
  665. package/dist/TRandom-ec9c7bf7.cjs.prod.js +203 -0
  666. package/dist/TReentrantLock-1b77d76f.cjs.dev.js +456 -0
  667. package/dist/TReentrantLock-c5a8401e.cjs.prod.js +456 -0
  668. package/dist/TRef-b87580d7.cjs.prod.js +152 -0
  669. package/dist/TRef-cf2e8ad7.cjs.dev.js +152 -0
  670. package/dist/TSemaphore-29503416.cjs.prod.js +197 -0
  671. package/dist/TSemaphore-50edec08.cjs.dev.js +197 -0
  672. package/dist/TSet-3c2568e9.cjs.prod.js +444 -0
  673. package/dist/TSet-bb4775ca.cjs.dev.js +444 -0
  674. package/dist/Take-684c9901.cjs.dev.js +236 -0
  675. package/dist/Take-b4c91438.cjs.prod.js +236 -0
  676. package/dist/TestAnnotation-73be7a68.cjs.dev.js +135 -0
  677. package/dist/TestAnnotation-b9b93d03.cjs.prod.js +135 -0
  678. package/dist/TestAnnotationMap-80c87410.cjs.dev.js +125 -0
  679. package/dist/TestAnnotationMap-e946bab5.cjs.prod.js +125 -0
  680. package/dist/TestAnnotations-5db95828.cjs.prod.js +97 -0
  681. package/dist/TestAnnotations-733b39ef.cjs.dev.js +97 -0
  682. package/dist/TestClock-89a36b89.cjs.prod.js +581 -0
  683. package/dist/TestClock-e2773846.cjs.dev.js +581 -0
  684. package/dist/TestConfig-1a73e844.cjs.prod.js +37 -0
  685. package/dist/TestConfig-e5ffa946.cjs.dev.js +37 -0
  686. package/dist/TestContext-3328163e.cjs.dev.js +41 -0
  687. package/dist/TestContext-917bf305.cjs.prod.js +41 -0
  688. package/dist/TestLive-465ad3ef.cjs.dev.js +60 -0
  689. package/dist/TestLive-f3232ac4.cjs.prod.js +60 -0
  690. package/dist/TestServices-605f726e.cjs.prod.js +341 -0
  691. package/dist/TestServices-921e5c42.cjs.dev.js +341 -0
  692. package/dist/TestSized-6c1abc21.cjs.dev.js +64 -0
  693. package/dist/TestSized-a9a87d64.cjs.prod.js +64 -0
  694. package/dist/Tracer-d06d0b61.cjs.prod.js +81 -0
  695. package/dist/Tracer-da182c8c.cjs.dev.js +81 -0
  696. package/dist/Tuple-27ecf3a1.cjs.prod.js +199 -0
  697. package/dist/Tuple-75d2a389.cjs.dev.js +199 -0
  698. package/dist/Unify-99be0499.cjs.dev.js +48 -0
  699. package/dist/Unify-e86fd412.cjs.prod.js +48 -0
  700. package/dist/Utils-864e1d48.cjs.prod.js +370 -0
  701. package/dist/Utils-b0c14d1b.cjs.dev.js +370 -0
  702. package/dist/boundaries-03c7494a.cjs.dev.js +54 -0
  703. package/dist/boundaries-5d1a46e1.cjs.prod.js +54 -0
  704. package/dist/cache-6cdc31f7.cjs.dev.js +523 -0
  705. package/dist/cache-ab7bbfbd.cjs.prod.js +523 -0
  706. package/dist/childExecutorDecision-2b30946c.cjs.prod.js +98 -0
  707. package/dist/childExecutorDecision-ad3db696.cjs.dev.js +98 -0
  708. package/dist/circular-4cb0b79d.cjs.dev.js +341 -0
  709. package/dist/circular-5b3558d9.cjs.prod.js +341 -0
  710. package/dist/circular-78011d6b.cjs.dev.js +107 -0
  711. package/dist/circular-81b4c556.cjs.prod.js +107 -0
  712. package/dist/config-10f2a1d1.cjs.dev.js +474 -0
  713. package/dist/config-78feb1ac.cjs.prod.js +474 -0
  714. package/dist/configError-1686533e.cjs.dev.js +323 -0
  715. package/dist/configError-6a3652f8.cjs.prod.js +323 -0
  716. package/dist/configProvider-2b177eac.cjs.prod.js +447 -0
  717. package/dist/configProvider-e2eb112d.cjs.dev.js +447 -0
  718. package/dist/configSecret-5812fa69.cjs.dev.js +74 -0
  719. package/dist/configSecret-ecb6c5b3.cjs.prod.js +74 -0
  720. package/dist/core-4ced6e17.cjs.prod.js +1072 -0
  721. package/dist/core-ac668be0.cjs.dev.js +3502 -0
  722. package/dist/core-c2eb171a.cjs.prod.js +3502 -0
  723. package/dist/core-d9eea905.cjs.dev.js +1072 -0
  724. package/dist/core-effect-a9b8ee08.cjs.dev.js +1030 -0
  725. package/dist/core-effect-bf806dd9.cjs.prod.js +1030 -0
  726. package/dist/dataSource-abccc876.cjs.prod.js +74 -0
  727. package/dist/dataSource-d5f79f4e.cjs.dev.js +74 -0
  728. package/dist/declarations/src/Bigint.d.ts +22 -22
  729. package/dist/declarations/src/Boolean.d.ts +15 -15
  730. package/dist/declarations/src/Brand.d.ts +20 -20
  731. package/dist/declarations/src/Cache.d.ts +14 -14
  732. package/dist/declarations/src/Cause.d.ts +81 -81
  733. package/dist/declarations/src/Channel.d.ts +117 -117
  734. package/dist/declarations/src/ChannelChildExecutorDecision.d.ts +16 -16
  735. package/dist/declarations/src/ChannelMergeDecision.d.ts +11 -11
  736. package/dist/declarations/src/ChannelMergeState.d.ts +17 -17
  737. package/dist/declarations/src/ChannelMergeStrategy.d.ts +13 -13
  738. package/dist/declarations/src/ChannelSingleProducerAsyncInput.d.ts +5 -5
  739. package/dist/declarations/src/ChannelUpstreamPullRequest.d.ts +13 -13
  740. package/dist/declarations/src/ChannelUpstreamPullStrategy.d.ts +13 -13
  741. package/dist/declarations/src/Chunk.d.ts +84 -84
  742. package/dist/declarations/src/Clock.d.ts +13 -13
  743. package/dist/declarations/src/Config.d.ts +40 -40
  744. package/dist/declarations/src/ConfigError.d.ts +31 -31
  745. package/dist/declarations/src/ConfigProvider.d.ts +27 -27
  746. package/dist/declarations/src/ConfigProviderPathPatch.d.ts +11 -11
  747. package/dist/declarations/src/ConfigSecret.d.ts +12 -12
  748. package/dist/declarations/src/Console.d.ts +26 -26
  749. package/dist/declarations/src/Context.d.ts +24 -24
  750. package/dist/declarations/src/Data.d.ts +22 -22
  751. package/dist/declarations/src/DefaultServices.d.ts +4 -4
  752. package/dist/declarations/src/Deferred.d.ts +26 -26
  753. package/dist/declarations/src/Differ.d.ts +34 -34
  754. package/dist/declarations/src/Duration.d.ts +42 -37
  755. package/dist/declarations/src/Duration.d.ts.map +1 -1
  756. package/dist/declarations/src/Effect.d.ts +351 -351
  757. package/dist/declarations/src/Effectable.d.ts +16 -16
  758. package/dist/declarations/src/Either.d.ts +35 -35
  759. package/dist/declarations/src/Encoding.d.ts +15 -15
  760. package/dist/declarations/src/Equal.d.ts +6 -6
  761. package/dist/declarations/src/Equivalence.d.ts +20 -20
  762. package/dist/declarations/src/Error.d.ts +4 -4
  763. package/dist/declarations/src/ExecutionStrategy.d.ts +12 -12
  764. package/dist/declarations/src/Exit.d.ts +41 -41
  765. package/dist/declarations/src/Fiber.d.ts +57 -57
  766. package/dist/declarations/src/FiberId.d.ts +23 -23
  767. package/dist/declarations/src/FiberRef.d.ts +49 -49
  768. package/dist/declarations/src/FiberRefs.d.ts +14 -14
  769. package/dist/declarations/src/FiberRefsPatch.d.ts +11 -11
  770. package/dist/declarations/src/FiberStatus.d.ts +14 -14
  771. package/dist/declarations/src/Function.d.ts +24 -24
  772. package/dist/declarations/src/GlobalValue.d.ts +1 -1
  773. package/dist/declarations/src/GroupBy.d.ts +9 -9
  774. package/dist/declarations/src/HKT.d.ts +5 -5
  775. package/dist/declarations/src/Hash.d.ts +12 -12
  776. package/dist/declarations/src/HashMap.d.ts +37 -37
  777. package/dist/declarations/src/HashSet.d.ts +28 -28
  778. package/dist/declarations/src/Hub.d.ts +16 -16
  779. package/dist/declarations/src/Inspectable.d.ts +6 -6
  780. package/dist/declarations/src/KeyedPool.d.ts +12 -12
  781. package/dist/declarations/src/Layer.d.ts +70 -70
  782. package/dist/declarations/src/List.d.ts +50 -50
  783. package/dist/declarations/src/LogLevel.d.ts +27 -27
  784. package/dist/declarations/src/LogSpan.d.ts +3 -3
  785. package/dist/declarations/src/Logger.d.ts +33 -33
  786. package/dist/declarations/src/Metric.d.ts +55 -55
  787. package/dist/declarations/src/MetricBoundaries.d.ts +8 -8
  788. package/dist/declarations/src/MetricHook.d.ts +20 -20
  789. package/dist/declarations/src/MetricKey.d.ts +21 -21
  790. package/dist/declarations/src/MetricKeyType.d.ts +35 -35
  791. package/dist/declarations/src/MetricLabel.d.ts +6 -6
  792. package/dist/declarations/src/MetricPair.d.ts +8 -8
  793. package/dist/declarations/src/MetricPolling.d.ts +11 -11
  794. package/dist/declarations/src/MetricRegistry.d.ts +5 -5
  795. package/dist/declarations/src/MetricState.d.ts +33 -33
  796. package/dist/declarations/src/MutableHashMap.d.ts +12 -12
  797. package/dist/declarations/src/MutableHashSet.d.ts +9 -9
  798. package/dist/declarations/src/MutableList.d.ts +13 -13
  799. package/dist/declarations/src/MutableQueue.d.ts +16 -16
  800. package/dist/declarations/src/MutableRef.d.ts +18 -18
  801. package/dist/declarations/src/NonEmptyIterable.d.ts +4 -4
  802. package/dist/declarations/src/Number.d.ts +22 -22
  803. package/dist/declarations/src/Option.d.ts +69 -69
  804. package/dist/declarations/src/Order.d.ts +28 -28
  805. package/dist/declarations/src/Ordering.d.ts +7 -7
  806. package/dist/declarations/src/Pipeable.d.ts +3 -3
  807. package/dist/declarations/src/Pool.d.ts +11 -11
  808. package/dist/declarations/src/Predicate.d.ts +42 -42
  809. package/dist/declarations/src/Queue.d.ts +44 -44
  810. package/dist/declarations/src/Random.d.ts +11 -11
  811. package/dist/declarations/src/ReadonlyArray.d.ts +139 -139
  812. package/dist/declarations/src/ReadonlyRecord.d.ts +25 -25
  813. package/dist/declarations/src/RedBlackTree.d.ts +40 -40
  814. package/dist/declarations/src/Ref.d.ts +20 -20
  815. package/dist/declarations/src/Reloadable.d.ts +13 -13
  816. package/dist/declarations/src/Request.d.ts +29 -29
  817. package/dist/declarations/src/RequestBlock.d.ts +16 -16
  818. package/dist/declarations/src/RequestResolver.d.ts +23 -23
  819. package/dist/declarations/src/Resource.d.ts +10 -10
  820. package/dist/declarations/src/Runtime.d.ts +22 -22
  821. package/dist/declarations/src/RuntimeFlags.d.ts +38 -38
  822. package/dist/declarations/src/RuntimeFlagsPatch.d.ts +18 -18
  823. package/dist/declarations/src/STM.d.ts +140 -140
  824. package/dist/declarations/src/Schedule.d.ts +106 -106
  825. package/dist/declarations/src/ScheduleDecision.d.ts +8 -8
  826. package/dist/declarations/src/ScheduleInterval.d.ts +16 -16
  827. package/dist/declarations/src/ScheduleIntervals.d.ts +14 -14
  828. package/dist/declarations/src/Scheduler.d.ts +34 -34
  829. package/dist/declarations/src/Scope.d.ts +18 -18
  830. package/dist/declarations/src/ScopedCache.d.ts +9 -9
  831. package/dist/declarations/src/ScopedRef.d.ts +10 -10
  832. package/dist/declarations/src/Sink.d.ts +115 -115
  833. package/dist/declarations/src/SortedMap.d.ts +21 -21
  834. package/dist/declarations/src/SortedSet.d.ts +24 -24
  835. package/dist/declarations/src/Stream.d.ts +303 -303
  836. package/dist/declarations/src/StreamEmit.d.ts +3 -3
  837. package/dist/declarations/src/StreamHaltStrategy.d.ts +16 -16
  838. package/dist/declarations/src/String.d.ts +50 -50
  839. package/dist/declarations/src/Struct.d.ts +6 -6
  840. package/dist/declarations/src/SubscriptionRef.d.ts +27 -27
  841. package/dist/declarations/src/Supervisor.d.ts +23 -23
  842. package/dist/declarations/src/Symbol.d.ts +3 -3
  843. package/dist/declarations/src/SynchronizedRef.d.ts +28 -28
  844. package/dist/declarations/src/TArray.d.ts +46 -46
  845. package/dist/declarations/src/TDeferred.d.ts +12 -12
  846. package/dist/declarations/src/THub.d.ts +18 -18
  847. package/dist/declarations/src/TMap.d.ts +46 -46
  848. package/dist/declarations/src/TPriorityQueue.d.ts +23 -23
  849. package/dist/declarations/src/TQueue.d.ts +36 -36
  850. package/dist/declarations/src/TRandom.d.ts +12 -12
  851. package/dist/declarations/src/TReentrantLock.d.ts +24 -24
  852. package/dist/declarations/src/TRef.d.ts +19 -19
  853. package/dist/declarations/src/TSemaphore.d.ts +17 -17
  854. package/dist/declarations/src/TSet.d.ts +35 -35
  855. package/dist/declarations/src/Take.d.ts +25 -25
  856. package/dist/declarations/src/TestAnnotation.d.ts +12 -12
  857. package/dist/declarations/src/TestAnnotationMap.d.ts +11 -11
  858. package/dist/declarations/src/TestAnnotations.d.ts +7 -7
  859. package/dist/declarations/src/TestClock.d.ts +16 -16
  860. package/dist/declarations/src/TestConfig.d.ts +4 -4
  861. package/dist/declarations/src/TestContext.d.ts +3 -3
  862. package/dist/declarations/src/TestLive.d.ts +6 -6
  863. package/dist/declarations/src/TestServices.d.ts +35 -35
  864. package/dist/declarations/src/TestSized.d.ts +7 -7
  865. package/dist/declarations/src/Tracer.d.ts +13 -13
  866. package/dist/declarations/src/Tuple.d.ts +12 -12
  867. package/dist/declarations/src/Types.d.ts +10 -10
  868. package/dist/declarations/src/Unify.d.ts +9 -9
  869. package/dist/declarations/src/Utils.d.ts +29 -29
  870. package/dist/declarations/src/index.d.ts +169 -141
  871. package/dist/declarations/src/index.d.ts.map +1 -1
  872. package/dist/defaultServices-4112c0c9.cjs.prod.js +388 -0
  873. package/dist/defaultServices-60c753dc.cjs.dev.js +388 -0
  874. package/dist/effect.cjs.dev.js +199 -193
  875. package/dist/effect.cjs.mjs +7 -1
  876. package/dist/effect.cjs.prod.js +199 -193
  877. package/dist/effect.esm.js +283 -197
  878. package/dist/fiber-90ffaf8c.cjs.prod.js +411 -0
  879. package/dist/fiber-da1a207c.cjs.dev.js +411 -0
  880. package/dist/fiberRefs-64c35250.cjs.prod.js +181 -0
  881. package/dist/fiberRefs-a7e00f7e.cjs.dev.js +181 -0
  882. package/dist/fiberRuntime-1c369a47.cjs.prod.js +3012 -0
  883. package/dist/fiberRuntime-e9680313.cjs.dev.js +3012 -0
  884. package/dist/groupBy-0cc85afb.cjs.prod.js +216 -0
  885. package/dist/groupBy-b204a881.cjs.dev.js +216 -0
  886. package/dist/hook-6c7550dc.cjs.prod.js +371 -0
  887. package/dist/hook-822704ea.cjs.dev.js +371 -0
  888. package/dist/key-330b98b1.cjs.prod.js +79 -0
  889. package/dist/key-a474fc0d.cjs.dev.js +79 -0
  890. package/dist/keyType-1e916ae2.cjs.dev.js +236 -0
  891. package/dist/keyType-8460e792.cjs.prod.js +236 -0
  892. package/dist/label-246fb11d.cjs.dev.js +44 -0
  893. package/dist/label-3e143765.cjs.prod.js +44 -0
  894. package/dist/layer-ae8eefad.cjs.dev.js +658 -0
  895. package/dist/layer-ffacc2c5.cjs.prod.js +658 -0
  896. package/dist/mergeDecision-e457a76b.cjs.dev.js +86 -0
  897. package/dist/mergeDecision-e483c280.cjs.prod.js +86 -0
  898. package/dist/mergeState-83204f38.cjs.dev.js +109 -0
  899. package/dist/mergeState-dba66248.cjs.prod.js +109 -0
  900. package/dist/mergeStrategy-845a1279.cjs.prod.js +72 -0
  901. package/dist/mergeStrategy-b19dc19a.cjs.dev.js +72 -0
  902. package/dist/pair-08a8685e.cjs.dev.js +42 -0
  903. package/dist/pair-e5443c93.cjs.prod.js +42 -0
  904. package/dist/patch-4671ab7f.cjs.dev.js +132 -0
  905. package/dist/patch-f27e9f08.cjs.prod.js +132 -0
  906. package/dist/pathPatch-ded405f6.cjs.prod.js +90 -0
  907. package/dist/pathPatch-e46d4168.cjs.dev.js +90 -0
  908. package/dist/pool-3f16af61.cjs.dev.js +278 -0
  909. package/dist/pool-59a31f55.cjs.prod.js +278 -0
  910. package/dist/query-193d0a89.cjs.dev.js +104 -0
  911. package/dist/query-fe4a82d6.cjs.prod.js +104 -0
  912. package/dist/queue-04ae7ec7.cjs.dev.js +538 -0
  913. package/dist/queue-b81aee38.cjs.prod.js +538 -0
  914. package/dist/registry-29905dcc.cjs.prod.js +114 -0
  915. package/dist/registry-c883cf52.cjs.dev.js +114 -0
  916. package/dist/runtime-3ae98f19.cjs.dev.js +288 -0
  917. package/dist/runtime-8c3f1bd3.cjs.prod.js +288 -0
  918. package/dist/schedule-479d8fcc.cjs.dev.js +956 -0
  919. package/dist/schedule-7e30db2d.cjs.prod.js +956 -0
  920. package/dist/scopedRef-16d9d192.cjs.dev.js +55 -0
  921. package/dist/scopedRef-40b5bb82.cjs.prod.js +55 -0
  922. package/dist/singleProducerAsyncInput-552122e6.cjs.dev.js +193 -0
  923. package/dist/singleProducerAsyncInput-c5ff73b7.cjs.prod.js +193 -0
  924. package/dist/sink-16a1a901.cjs.dev.js +3094 -0
  925. package/dist/sink-c9ae7558.cjs.prod.js +3094 -0
  926. package/dist/state-0d29362f.cjs.prod.js +227 -0
  927. package/dist/state-8a8a647c.cjs.dev.js +227 -0
  928. package/dist/stm-44f045e5.cjs.dev.js +678 -0
  929. package/dist/stm-59af7e62.cjs.prod.js +678 -0
  930. package/dist/stream-84a13e23.cjs.dev.js +3645 -0
  931. package/dist/stream-8acbee57.cjs.prod.js +3645 -0
  932. package/dist/synchronizedRef-58a64ffe.cjs.dev.js +62 -0
  933. package/dist/synchronizedRef-6cfe9354.cjs.prod.js +62 -0
  934. package/dist/tArray-a690480d.cjs.prod.js +330 -0
  935. package/dist/tArray-c0a3d1e2.cjs.dev.js +330 -0
  936. package/dist/tMap-1c1b10c4.cjs.dev.js +535 -0
  937. package/dist/tMap-8dfc92f5.cjs.prod.js +535 -0
  938. package/dist/tQueue-48a29f8b.cjs.prod.js +367 -0
  939. package/dist/tQueue-aaec000f.cjs.dev.js +367 -0
  940. package/dist/tRef-1df89632.cjs.dev.js +133 -0
  941. package/dist/tRef-cc473a9f.cjs.prod.js +133 -0
  942. package/dist/take-906e6ef4.cjs.prod.js +152 -0
  943. package/dist/take-e1c6b82a.cjs.dev.js +152 -0
  944. package/dist/upstreamPullRequest-705e868d.cjs.prod.js +79 -0
  945. package/dist/upstreamPullRequest-c08f06a4.cjs.dev.js +79 -0
  946. package/dist/upstreamPullStrategy-0ccf2960.cjs.dev.js +81 -0
  947. package/dist/upstreamPullStrategy-34452db1.cjs.prod.js +81 -0
  948. package/internal/Context.esm.js +208 -0
  949. package/internal/Data.esm.js +49 -0
  950. package/internal/Differ/ChunkPatch.esm.js +131 -0
  951. package/internal/Differ/ContextPatch.esm.js +158 -0
  952. package/internal/Differ/HashMapPatch.esm.js +133 -0
  953. package/internal/Differ/HashSetPatch.esm.js +107 -0
  954. package/internal/Differ/OrPatch.esm.js +196 -0
  955. package/internal/Differ.esm.js +130 -0
  956. package/internal/Effectable.esm.js +89 -0
  957. package/internal/Either.esm.js +95 -0
  958. package/internal/Encoding/Base64.esm.js +74 -0
  959. package/internal/Encoding/Base64Url.esm.js +24 -0
  960. package/internal/Encoding/Common.esm.js +21 -0
  961. package/internal/Encoding/Hex.esm.js +55 -0
  962. package/internal/HashMap/array.esm.js +51 -0
  963. package/internal/HashMap/bitwise.esm.js +34 -0
  964. package/internal/HashMap/config.esm.js +16 -0
  965. package/internal/HashMap/keySet.esm.js +8 -0
  966. package/internal/HashMap/node.esm.js +253 -0
  967. package/internal/HashMap.esm.js +366 -0
  968. package/internal/HashSet.esm.js +211 -0
  969. package/internal/Option.esm.js +75 -0
  970. package/internal/ReadonlyArray.esm.js +8 -0
  971. package/internal/RedBlackTree/iterator.esm.js +204 -0
  972. package/internal/RedBlackTree/node.esm.js +43 -0
  973. package/internal/RedBlackTree.esm.js +1042 -0
  974. package/internal/Stack.esm.js +9 -0
  975. package/internal/blockedRequests.esm.js +365 -0
  976. package/internal/cache.esm.js +514 -0
  977. package/internal/cause.esm.js +1067 -0
  978. package/internal/channel/channelExecutor.esm.js +692 -0
  979. package/internal/channel/channelState.esm.js +78 -0
  980. package/internal/channel/childExecutorDecision.esm.js +71 -0
  981. package/internal/channel/continuation.esm.js +58 -0
  982. package/internal/channel/mergeDecision.esm.js +69 -0
  983. package/internal/channel/mergeState.esm.js +82 -0
  984. package/internal/channel/mergeStrategy.esm.js +55 -0
  985. package/internal/channel/singleProducerAsyncInput.esm.js +191 -0
  986. package/internal/channel/subexecutor.esm.js +153 -0
  987. package/internal/channel/upstreamPullRequest.esm.js +62 -0
  988. package/internal/channel/upstreamPullStrategy.esm.js +62 -0
  989. package/internal/channel.esm.js +648 -0
  990. package/internal/clock.esm.js +82 -0
  991. package/internal/completedRequestMap.esm.js +7 -0
  992. package/internal/concurrency.esm.js +47 -0
  993. package/internal/config.esm.js +374 -0
  994. package/internal/configError.esm.js +276 -0
  995. package/internal/configProvider/pathPatch.esm.js +83 -0
  996. package/internal/configProvider.esm.js +365 -0
  997. package/internal/configSecret.esm.js +66 -0
  998. package/internal/console.esm.js +72 -0
  999. package/internal/core-effect.esm.js +875 -0
  1000. package/internal/core-stream.esm.js +293 -0
  1001. package/internal/core.esm.js +1745 -0
  1002. package/internal/dataSource.esm.js +61 -0
  1003. package/internal/defaultServices/console.esm.js +96 -0
  1004. package/internal/defaultServices.esm.js +84 -0
  1005. package/internal/deferred.esm.js +37 -0
  1006. package/internal/effect/circular.esm.js +314 -0
  1007. package/internal/executionStrategy.esm.js +61 -0
  1008. package/internal/fiber.esm.js +257 -0
  1009. package/internal/fiberId.esm.js +243 -0
  1010. package/internal/fiberMessage.esm.js +54 -0
  1011. package/internal/fiberRefs/patch.esm.js +127 -0
  1012. package/internal/fiberRefs.esm.js +169 -0
  1013. package/internal/fiberRuntime.esm.js +2003 -0
  1014. package/internal/fiberScope.esm.js +58 -0
  1015. package/internal/fiberStatus.esm.js +89 -0
  1016. package/internal/groupBy.esm.js +208 -0
  1017. package/internal/hub.esm.js +1102 -0
  1018. package/internal/keyedPool.esm.js +161 -0
  1019. package/internal/layer/circular.esm.js +84 -0
  1020. package/internal/layer.esm.js +552 -0
  1021. package/internal/logSpan.esm.js +15 -0
  1022. package/internal/logger-circular.esm.js +21 -0
  1023. package/internal/logger.esm.js +213 -0
  1024. package/internal/metric/boundaries.esm.js +48 -0
  1025. package/internal/metric/hook.esm.js +362 -0
  1026. package/internal/metric/key.esm.js +68 -0
  1027. package/internal/metric/keyType.esm.js +218 -0
  1028. package/internal/metric/label.esm.js +40 -0
  1029. package/internal/metric/pair.esm.js +38 -0
  1030. package/internal/metric/polling.esm.js +74 -0
  1031. package/internal/metric/registry.esm.js +111 -0
  1032. package/internal/metric/state.esm.js +209 -0
  1033. package/internal/metric.esm.js +204 -0
  1034. package/internal/opCodes/cause.esm.js +31 -0
  1035. package/internal/opCodes/channel.esm.js +71 -0
  1036. package/internal/opCodes/channelChildExecutorDecision.esm.js +16 -0
  1037. package/internal/opCodes/channelMergeDecision.esm.js +11 -0
  1038. package/internal/opCodes/channelMergeState.esm.js +16 -0
  1039. package/internal/opCodes/channelMergeStrategy.esm.js +11 -0
  1040. package/internal/opCodes/channelState.esm.js +21 -0
  1041. package/internal/opCodes/channelUpstreamPullRequest.esm.js +11 -0
  1042. package/internal/opCodes/channelUpstreamPullStrategy.esm.js +11 -0
  1043. package/internal/opCodes/config.esm.js +56 -0
  1044. package/internal/opCodes/configError.esm.js +31 -0
  1045. package/internal/opCodes/continuation.esm.js +11 -0
  1046. package/internal/opCodes/deferred.esm.js +11 -0
  1047. package/internal/opCodes/effect.esm.js +71 -0
  1048. package/internal/opCodes/layer.esm.js +46 -0
  1049. package/internal/opCodes/streamHaltStrategy.esm.js +21 -0
  1050. package/internal/pool.esm.js +271 -0
  1051. package/internal/query.esm.js +100 -0
  1052. package/internal/queue.esm.js +505 -0
  1053. package/internal/random.esm.js +58 -0
  1054. package/internal/ref.esm.js +121 -0
  1055. package/internal/reloadable.esm.js +62 -0
  1056. package/internal/request.esm.js +81 -0
  1057. package/internal/resource.esm.js +35 -0
  1058. package/internal/ringBuffer.esm.js +56 -0
  1059. package/internal/runtime.esm.js +268 -0
  1060. package/internal/runtimeFlags.esm.js +137 -0
  1061. package/internal/runtimeFlagsPatch.esm.js +57 -0
  1062. package/internal/schedule/decision.esm.js +45 -0
  1063. package/internal/schedule/interval.esm.js +85 -0
  1064. package/internal/schedule/intervals.esm.js +135 -0
  1065. package/internal/schedule.esm.js +844 -0
  1066. package/internal/scopedCache.esm.js +406 -0
  1067. package/internal/scopedRef.esm.js +49 -0
  1068. package/internal/singleShotGen.esm.js +30 -0
  1069. package/internal/sink.esm.js +918 -0
  1070. package/internal/stm/core.esm.js +553 -0
  1071. package/internal/stm/opCodes/stm.esm.js +56 -0
  1072. package/internal/stm/opCodes/stmState.esm.js +16 -0
  1073. package/internal/stm/opCodes/strategy.esm.js +16 -0
  1074. package/internal/stm/opCodes/tExit.esm.js +26 -0
  1075. package/internal/stm/opCodes/tryCommit.esm.js +11 -0
  1076. package/internal/stm/stm/entry.esm.js +47 -0
  1077. package/internal/stm/stm/journal.esm.js +96 -0
  1078. package/internal/stm/stm/stmState.esm.js +104 -0
  1079. package/internal/stm/stm/tExit.esm.js +113 -0
  1080. package/internal/stm/stm/tryCommit.esm.js +25 -0
  1081. package/internal/stm/stm/txnId.esm.js +15 -0
  1082. package/internal/stm/stm/versioned.esm.js +8 -0
  1083. package/internal/stm/stm.esm.js +584 -0
  1084. package/internal/stm/tArray.esm.js +287 -0
  1085. package/internal/stm/tDeferred.esm.js +49 -0
  1086. package/internal/stm/tHub.esm.js +381 -0
  1087. package/internal/stm/tMap.esm.js +492 -0
  1088. package/internal/stm/tPriorityQueue.esm.js +156 -0
  1089. package/internal/stm/tQueue.esm.js +317 -0
  1090. package/internal/stm/tRandom.esm.js +89 -0
  1091. package/internal/stm/tReentrantLock.esm.js +216 -0
  1092. package/internal/stm/tRef.esm.js +117 -0
  1093. package/internal/stm/tSemaphore.esm.js +73 -0
  1094. package/internal/stm/tSet.esm.js +113 -0
  1095. package/internal/stream/debounceState.esm.js +39 -0
  1096. package/internal/stream/emit.esm.js +51 -0
  1097. package/internal/stream/haltStrategy.esm.js +74 -0
  1098. package/internal/stream/handoff.esm.js +79 -0
  1099. package/internal/stream/handoffSignal.esm.js +40 -0
  1100. package/internal/stream/pull.esm.js +10 -0
  1101. package/internal/stream/sinkEndReason.esm.js +27 -0
  1102. package/internal/stream/zipAllState.esm.js +65 -0
  1103. package/internal/stream/zipChunksState.esm.js +41 -0
  1104. package/internal/stream.esm.js +2984 -0
  1105. package/internal/string-utils.esm.js +66 -0
  1106. package/internal/subscriptionRef.esm.js +65 -0
  1107. package/internal/supervisor/patch.esm.js +156 -0
  1108. package/internal/supervisor.esm.js +204 -0
  1109. package/internal/synchronizedRef.esm.js +53 -0
  1110. package/internal/take.esm.js +130 -0
  1111. package/internal/testing/suspendedWarningData.esm.js +66 -0
  1112. package/internal/testing/warningData.esm.js +75 -0
  1113. package/internal/timeout.esm.js +22 -0
  1114. package/internal/tracer.esm.js +61 -0
  1115. package/package.json +700 -554
  1116. package/dist/Bigint-1c684209.esm.js +0 -370
  1117. package/dist/Bigint-504df838.cjs.dev.js +0 -392
  1118. package/dist/Bigint-d1a7e44e.cjs.prod.js +0 -392
  1119. package/dist/Boolean-7513c999.cjs.prod.js +0 -264
  1120. package/dist/Boolean-9427fc24.cjs.dev.js +0 -264
  1121. package/dist/Boolean-f564d31a.esm.js +0 -248
  1122. package/dist/Brand-c3918667.cjs.dev.js +0 -224
  1123. package/dist/Brand-fa4e9f22.esm.js +0 -215
  1124. package/dist/Brand-ff4af468.cjs.prod.js +0 -224
  1125. package/dist/Cache-447337f2.esm.js +0 -120
  1126. package/dist/Cache-4b4ea2b3.cjs.prod.js +0 -127
  1127. package/dist/Cache-62ebdae3.cjs.dev.js +0 -127
  1128. package/dist/Cause-8be0b9a6.esm.js +0 -730
  1129. package/dist/Cause-b769f517.cjs.prod.js +0 -791
  1130. package/dist/Cause-d77e20dc.cjs.dev.js +0 -791
  1131. package/dist/Channel-2039c280.cjs.dev.js +0 -1217
  1132. package/dist/Channel-806a0a5a.esm.js +0 -1109
  1133. package/dist/Channel-dcff73a4.cjs.prod.js +0 -1217
  1134. package/dist/ChannelChildExecutorDecision-2d3c20b1.esm.js +0 -125
  1135. package/dist/ChannelChildExecutorDecision-adce4b58.cjs.dev.js +0 -136
  1136. package/dist/ChannelChildExecutorDecision-fc90c987.cjs.prod.js +0 -136
  1137. package/dist/ChannelMergeDecision-39e12893.cjs.prod.js +0 -78
  1138. package/dist/ChannelMergeDecision-4488ba22.esm.js +0 -70
  1139. package/dist/ChannelMergeDecision-f05da806.cjs.dev.js +0 -78
  1140. package/dist/ChannelMergeState-65723a71.cjs.dev.js +0 -125
  1141. package/dist/ChannelMergeState-937282d2.esm.js +0 -114
  1142. package/dist/ChannelMergeState-ab626a77.cjs.prod.js +0 -125
  1143. package/dist/ChannelMergeStrategy-c2f956a9.esm.js +0 -95
  1144. package/dist/ChannelMergeStrategy-d5bdc89d.cjs.prod.js +0 -104
  1145. package/dist/ChannelMergeStrategy-d956e3fa.cjs.dev.js +0 -104
  1146. package/dist/ChannelSingleProducerAsyncInput-00708a29.esm.js +0 -52
  1147. package/dist/ChannelSingleProducerAsyncInput-90f3b171.cjs.prod.js +0 -55
  1148. package/dist/ChannelSingleProducerAsyncInput-ecc79242.cjs.dev.js +0 -55
  1149. package/dist/ChannelUpstreamPullRequest-011526e6.esm.js +0 -95
  1150. package/dist/ChannelUpstreamPullRequest-6a610523.cjs.dev.js +0 -104
  1151. package/dist/ChannelUpstreamPullRequest-d7413c53.cjs.prod.js +0 -104
  1152. package/dist/ChannelUpstreamPullStrategy-0af49b72.esm.js +0 -94
  1153. package/dist/ChannelUpstreamPullStrategy-6e0a338e.cjs.prod.js +0 -103
  1154. package/dist/ChannelUpstreamPullStrategy-90ec240c.cjs.dev.js +0 -103
  1155. package/dist/Chunk-937f4423.cjs.dev.js +0 -1248
  1156. package/dist/Chunk-98371336.esm.js +0 -1167
  1157. package/dist/Chunk-f001938d.cjs.prod.js +0 -1248
  1158. package/dist/Clock-27c1110d.cjs.prod.js +0 -97
  1159. package/dist/Clock-589e9dc5.cjs.dev.js +0 -97
  1160. package/dist/Clock-ab907687.esm.js +0 -88
  1161. package/dist/Config-50e56bbd.cjs.prod.js +0 -393
  1162. package/dist/Config-7e7f7335.cjs.dev.js +0 -393
  1163. package/dist/Config-a3a06665.esm.js +0 -358
  1164. package/dist/ConfigError-5801d561.esm.js +0 -206
  1165. package/dist/ConfigError-684b6267.cjs.dev.js +0 -225
  1166. package/dist/ConfigError-f5303a19.cjs.prod.js +0 -225
  1167. package/dist/ConfigProvider-0aeb6513.esm.js +0 -220
  1168. package/dist/ConfigProvider-b47b08f3.cjs.dev.js +0 -240
  1169. package/dist/ConfigProvider-e278c5f7.cjs.prod.js +0 -240
  1170. package/dist/ConfigProviderPathPatch-78826e8c.cjs.dev.js +0 -86
  1171. package/dist/ConfigProviderPathPatch-97b52760.esm.js +0 -79
  1172. package/dist/ConfigProviderPathPatch-bb5f5228.cjs.prod.js +0 -86
  1173. package/dist/ConfigSecret-2db4c372.cjs.prod.js +0 -83
  1174. package/dist/ConfigSecret-646df696.esm.js +0 -74
  1175. package/dist/ConfigSecret-a10a12aa.cjs.dev.js +0 -83
  1176. package/dist/Console-b92ceaf0.esm.js +0 -247
  1177. package/dist/Console-d4590f3a.cjs.prod.js +0 -271
  1178. package/dist/Console-f063615c.cjs.dev.js +0 -271
  1179. package/dist/Context-119d62eb.cjs.prod.js +0 -327
  1180. package/dist/Context-231e9c1b.cjs.prod.js +0 -222
  1181. package/dist/Context-48179faa.esm.js +0 -312
  1182. package/dist/Context-5099940c.cjs.dev.js +0 -222
  1183. package/dist/Context-fcee7bba.esm.js +0 -208
  1184. package/dist/Context-fdaa5c44.cjs.dev.js +0 -327
  1185. package/dist/Data-3389525f.cjs.dev.js +0 -237
  1186. package/dist/Data-815a1868.cjs.prod.js +0 -237
  1187. package/dist/Data-bad1ffeb.esm.js +0 -224
  1188. package/dist/DefaultServices-848d6929.cjs.dev.js +0 -34
  1189. package/dist/DefaultServices-8c298120.esm.js +0 -30
  1190. package/dist/DefaultServices-9ea98d30.cjs.prod.js +0 -34
  1191. package/dist/Deferred-143efa7b.cjs.dev.js +0 -253
  1192. package/dist/Deferred-554d3588.esm.js +0 -230
  1193. package/dist/Deferred-77579e00.cjs.prod.js +0 -253
  1194. package/dist/Differ-0069a8c0.cjs.dev.js +0 -992
  1195. package/dist/Differ-3be1df41.esm.js +0 -975
  1196. package/dist/Differ-cbfa45cb.cjs.prod.js +0 -992
  1197. package/dist/Duration-205d0b80.cjs.prod.js +0 -500
  1198. package/dist/Duration-5e9f2327.esm.js +0 -467
  1199. package/dist/Duration-8b174e0b.cjs.dev.js +0 -500
  1200. package/dist/Effect-6713972b.cjs.prod.js +0 -3740
  1201. package/dist/Effect-d362f43a.cjs.dev.js +0 -3740
  1202. package/dist/Effect-d5910dae.esm.js +0 -3417
  1203. package/dist/Effectable-2c8e8441.cjs.prod.js +0 -99
  1204. package/dist/Effectable-954172fc.cjs.prod.js +0 -181
  1205. package/dist/Effectable-a76b6aa1.esm.js +0 -158
  1206. package/dist/Effectable-bc017f96.cjs.dev.js +0 -99
  1207. package/dist/Effectable-e85a1847.cjs.dev.js +0 -181
  1208. package/dist/Effectable-ec9e4204.esm.js +0 -89
  1209. package/dist/Either-09270bbc.esm.js +0 -473
  1210. package/dist/Either-34ce9059.cjs.dev.js +0 -178
  1211. package/dist/Either-41cb7522.cjs.prod.js +0 -178
  1212. package/dist/Either-ae722a9e.cjs.dev.js +0 -502
  1213. package/dist/Either-be9c40b9.esm.js +0 -163
  1214. package/dist/Either-d995ebb4.cjs.prod.js +0 -502
  1215. package/dist/Encoding-0d990bbf.esm.js +0 -295
  1216. package/dist/Encoding-39f7d9a8.cjs.dev.js +0 -309
  1217. package/dist/Encoding-82d009b9.cjs.prod.js +0 -309
  1218. package/dist/Equal-7d4ae7e7.esm.js +0 -65
  1219. package/dist/Equal-8654b1af.cjs.dev.js +0 -71
  1220. package/dist/Equal-ed1e8c3c.cjs.prod.js +0 -71
  1221. package/dist/Equivalence-87295c78.cjs.prod.js +0 -238
  1222. package/dist/Equivalence-a4b5f56d.cjs.dev.js +0 -238
  1223. package/dist/Equivalence-e5c9cba4.esm.js +0 -218
  1224. package/dist/Error-7e84d828.esm.js +0 -53
  1225. package/dist/Error-be89adc9.cjs.prod.js +0 -57
  1226. package/dist/Error-e1ceeea7.cjs.dev.js +0 -57
  1227. package/dist/ExecutionStrategy-080f0b2b.cjs.prod.js +0 -180
  1228. package/dist/ExecutionStrategy-c6f7c490.esm.js +0 -168
  1229. package/dist/ExecutionStrategy-cd9204b4.cjs.dev.js +0 -180
  1230. package/dist/Exit-7a385294.cjs.dev.js +0 -408
  1231. package/dist/Exit-e31718e3.esm.js +0 -371
  1232. package/dist/Exit-eb04f98e.cjs.prod.js +0 -408
  1233. package/dist/Fiber-1a996e3f.cjs.dev.js +0 -521
  1234. package/dist/Fiber-38517971.esm.js +0 -473
  1235. package/dist/Fiber-a7306b77.cjs.prod.js +0 -521
  1236. package/dist/FiberId-3b23bc04.cjs.dev.js +0 -443
  1237. package/dist/FiberId-556ab9ef.esm.js +0 -422
  1238. package/dist/FiberId-95c92b7e.cjs.prod.js +0 -443
  1239. package/dist/FiberRef-6f63843b.cjs.prod.js +0 -385
  1240. package/dist/FiberRef-912b6248.cjs.dev.js +0 -385
  1241. package/dist/FiberRef-b81d5a7e.esm.js +0 -338
  1242. package/dist/FiberRefs-1a6a1b5f.cjs.prod.js +0 -135
  1243. package/dist/FiberRefs-44fda74a.cjs.dev.js +0 -135
  1244. package/dist/FiberRefs-a6ab4b8d.esm.js +0 -122
  1245. package/dist/FiberRefsPatch-549967e3.cjs.prod.js +0 -90
  1246. package/dist/FiberRefsPatch-56f10acc.cjs.dev.js +0 -90
  1247. package/dist/FiberRefsPatch-f84453c3.esm.js +0 -84
  1248. package/dist/FiberStatus-90291b8c.esm.js +0 -187
  1249. package/dist/FiberStatus-db497d70.cjs.dev.js +0 -197
  1250. package/dist/FiberStatus-ff18b445.cjs.prod.js +0 -197
  1251. package/dist/Function-52fb7d21.esm.js +0 -516
  1252. package/dist/Function-8336aeeb.cjs.prod.js +0 -538
  1253. package/dist/Function-fd10bde3.cjs.dev.js +0 -538
  1254. package/dist/GlobalValue-00457222.cjs.dev.js +0 -28
  1255. package/dist/GlobalValue-c5f1e8e5.esm.js +0 -25
  1256. package/dist/GlobalValue-f65cc41d.cjs.prod.js +0 -28
  1257. package/dist/GroupBy-cabfa667.cjs.dev.js +0 -79
  1258. package/dist/GroupBy-d0ad2148.cjs.prod.js +0 -79
  1259. package/dist/GroupBy-eef333fa.esm.js +0 -72
  1260. package/dist/HKT-1990744d.esm.js +0 -5
  1261. package/dist/Hash-039222d1.esm.js +0 -179
  1262. package/dist/Hash-2171bcec.cjs.prod.js +0 -192
  1263. package/dist/Hash-9d5502e5.cjs.dev.js +0 -192
  1264. package/dist/HashMap-2604a8b0.cjs.prod.js +0 -361
  1265. package/dist/HashMap-e644e23b.esm.js +0 -327
  1266. package/dist/HashMap-ee35ace5.cjs.dev.js +0 -361
  1267. package/dist/HashSet-206ea53b.cjs.dev.js +0 -965
  1268. package/dist/HashSet-286fb998.cjs.prod.js +0 -965
  1269. package/dist/HashSet-43b520e9.cjs.dev.js +0 -283
  1270. package/dist/HashSet-99f1529e.cjs.prod.js +0 -283
  1271. package/dist/HashSet-d051e0ea.esm.js +0 -907
  1272. package/dist/HashSet-dff2542b.esm.js +0 -256
  1273. package/dist/Hub-4223bb07.cjs.prod.js +0 -1280
  1274. package/dist/Hub-9f3d5c5d.esm.js +0 -1264
  1275. package/dist/Hub-dd9d70e7.cjs.dev.js +0 -1280
  1276. package/dist/Inspectable-46a7668e.cjs.prod.js +0 -50
  1277. package/dist/Inspectable-654412c2.cjs.dev.js +0 -50
  1278. package/dist/Inspectable-bda84223.esm.js +0 -45
  1279. package/dist/KeyedPool-0b5851a2.cjs.prod.js +0 -282
  1280. package/dist/KeyedPool-50b8f75b.esm.js +0 -273
  1281. package/dist/KeyedPool-8b979aac.cjs.dev.js +0 -282
  1282. package/dist/Layer-11122c64.cjs.dev.js +0 -687
  1283. package/dist/Layer-79fa5f4a.cjs.prod.js +0 -687
  1284. package/dist/Layer-f7be72db.esm.js +0 -623
  1285. package/dist/List-48f2b78f.cjs.prod.js +0 -912
  1286. package/dist/List-95e1e081.cjs.dev.js +0 -912
  1287. package/dist/List-c066a506.esm.js +0 -865
  1288. package/dist/LogLevel-2e6b00c7.esm.js +0 -222
  1289. package/dist/LogLevel-a609dd63.cjs.prod.js +0 -240
  1290. package/dist/LogLevel-c14e29fb.cjs.dev.js +0 -240
  1291. package/dist/LogSpan-c216a78b.cjs.prod.js +0 -46
  1292. package/dist/LogSpan-cd4b8f34.cjs.dev.js +0 -46
  1293. package/dist/LogSpan-e5cf11a5.esm.js +0 -42
  1294. package/dist/Logger-029fccab.cjs.prod.js +0 -275
  1295. package/dist/Logger-28d5e7ff.cjs.dev.js +0 -275
  1296. package/dist/Logger-52ffeafa.esm.js +0 -246
  1297. package/dist/Metric-2b4867b2.cjs.dev.js +0 -488
  1298. package/dist/Metric-cd4dfaba.cjs.prod.js +0 -488
  1299. package/dist/Metric-f2c8888b.esm.js +0 -442
  1300. package/dist/MetricBoundaries-8ef331f0.cjs.dev.js +0 -68
  1301. package/dist/MetricBoundaries-9707829f.esm.js +0 -61
  1302. package/dist/MetricBoundaries-fc377a5e.cjs.prod.js +0 -68
  1303. package/dist/MetricHook-74ebef65.esm.js +0 -80
  1304. package/dist/MetricHook-9d1ff9f5.cjs.prod.js +0 -90
  1305. package/dist/MetricHook-ebd34eea.cjs.dev.js +0 -90
  1306. package/dist/MetricKey-7536999c.cjs.dev.js +0 -130
  1307. package/dist/MetricKey-d96ef128.cjs.prod.js +0 -130
  1308. package/dist/MetricKey-fb261d1b.esm.js +0 -118
  1309. package/dist/MetricKeyType-637f6694.cjs.prod.js +0 -187
  1310. package/dist/MetricKeyType-6a10f955.esm.js +0 -168
  1311. package/dist/MetricKeyType-ed70a508.cjs.dev.js +0 -187
  1312. package/dist/MetricLabel-30df73d1.esm.js +0 -48
  1313. package/dist/MetricLabel-b6a3c628.cjs.prod.js +0 -53
  1314. package/dist/MetricLabel-e6d1cb96.cjs.dev.js +0 -53
  1315. package/dist/MetricPair-5f5f6f1b.esm.js +0 -45
  1316. package/dist/MetricPair-a1551790.cjs.prod.js +0 -50
  1317. package/dist/MetricPair-f1f0edbd.cjs.dev.js +0 -50
  1318. package/dist/MetricPolling-258af71e.esm.js +0 -167
  1319. package/dist/MetricPolling-b2accbbd.cjs.dev.js +0 -177
  1320. package/dist/MetricPolling-c6caba9d.cjs.prod.js +0 -177
  1321. package/dist/MetricRegistry-2ae45fdf.cjs.dev.js +0 -38
  1322. package/dist/MetricRegistry-44d3af51.esm.js +0 -34
  1323. package/dist/MetricRegistry-d61eb47d.cjs.prod.js +0 -38
  1324. package/dist/MetricState-a3499d98.cjs.prod.js +0 -191
  1325. package/dist/MetricState-cd7a1775.cjs.dev.js +0 -191
  1326. package/dist/MetricState-d4fcb7d0.esm.js +0 -172
  1327. package/dist/MutableHashMap-b3ab7261.esm.js +0 -142
  1328. package/dist/MutableHashMap-d6cb38d9.cjs.prod.js +0 -154
  1329. package/dist/MutableHashMap-f08d01f5.cjs.dev.js +0 -154
  1330. package/dist/MutableHashSet-9e2ea672.cjs.dev.js +0 -110
  1331. package/dist/MutableHashSet-ec9f7a0b.esm.js +0 -101
  1332. package/dist/MutableHashSet-fa860611.cjs.prod.js +0 -110
  1333. package/dist/MutableList-4ef847b7.cjs.prod.js +0 -296
  1334. package/dist/MutableList-85cf4e37.cjs.dev.js +0 -296
  1335. package/dist/MutableList-8c671944.esm.js +0 -281
  1336. package/dist/MutableQueue-3dfd5fea.cjs.dev.js +0 -215
  1337. package/dist/MutableQueue-416dfcd9.cjs.prod.js +0 -215
  1338. package/dist/MutableQueue-54a4b584.esm.js +0 -202
  1339. package/dist/MutableRef-82c6fe46.cjs.prod.js +0 -194
  1340. package/dist/MutableRef-cb4d2fc0.esm.js +0 -176
  1341. package/dist/MutableRef-ef31c15d.cjs.dev.js +0 -194
  1342. package/dist/NonEmptyIterable-26ed16e4.cjs.prod.js +0 -36
  1343. package/dist/NonEmptyIterable-7ef320e0.esm.js +0 -33
  1344. package/dist/NonEmptyIterable-b064c1af.cjs.dev.js +0 -36
  1345. package/dist/Number-d021c8f9.cjs.prod.js +0 -417
  1346. package/dist/Number-dc454336.esm.js +0 -394
  1347. package/dist/Number-dddf713e.cjs.dev.js +0 -417
  1348. package/dist/Option-1d073850.esm.js +0 -1135
  1349. package/dist/Option-837ae0da.cjs.dev.js +0 -1198
  1350. package/dist/Option-b07f2b1d.cjs.prod.js +0 -1198
  1351. package/dist/Order-2f11aa24.esm.js +0 -293
  1352. package/dist/Order-2f785421.cjs.prod.js +0 -321
  1353. package/dist/Order-cbf22e18.cjs.dev.js +0 -321
  1354. package/dist/Ordering-9892085c.esm.js +0 -97
  1355. package/dist/Ordering-e20427cc.cjs.dev.js +0 -104
  1356. package/dist/Ordering-f3e378ef.cjs.prod.js +0 -104
  1357. package/dist/Pipeable-856ddd7c.cjs.prod.js +0 -52
  1358. package/dist/Pipeable-ef202667.cjs.dev.js +0 -52
  1359. package/dist/Pipeable-fe51dc02.esm.js +0 -49
  1360. package/dist/Pool-68590a64.cjs.dev.js +0 -122
  1361. package/dist/Pool-718f79ff.cjs.prod.js +0 -122
  1362. package/dist/Pool-cdfcfabe.esm.js +0 -114
  1363. package/dist/Predicate-52271838.esm.js +0 -677
  1364. package/dist/Predicate-54d8c8de.cjs.dev.js +0 -718
  1365. package/dist/Predicate-a3fd4088.cjs.prod.js +0 -718
  1366. package/dist/Queue-48d0b9d4.cjs.dev.js +0 -394
  1367. package/dist/Queue-9f8579c0.cjs.prod.js +0 -394
  1368. package/dist/Queue-bbebbeda.esm.js +0 -362
  1369. package/dist/Random-0bdc1bcb.cjs.prod.js +0 -104
  1370. package/dist/Random-14987953.esm.js +0 -94
  1371. package/dist/Random-f495bcbc.cjs.dev.js +0 -104
  1372. package/dist/ReadonlyArray-199ff80e.esm.js +0 -1584
  1373. package/dist/ReadonlyArray-3b1a15d8.cjs.dev.js +0 -10
  1374. package/dist/ReadonlyArray-6fbc78a1.cjs.prod.js +0 -1721
  1375. package/dist/ReadonlyArray-84c71385.esm.js +0 -8
  1376. package/dist/ReadonlyArray-885e80a2.cjs.dev.js +0 -1721
  1377. package/dist/ReadonlyArray-8adb9a46.cjs.prod.js +0 -10
  1378. package/dist/ReadonlyRecord-4969b34f.cjs.prod.js +0 -568
  1379. package/dist/ReadonlyRecord-c1f5d048.esm.js +0 -544
  1380. package/dist/ReadonlyRecord-c6dc7deb.cjs.dev.js +0 -568
  1381. package/dist/RedBlackTree-22839235.esm.js +0 -1632
  1382. package/dist/RedBlackTree-59192950.cjs.prod.js +0 -1669
  1383. package/dist/RedBlackTree-98a93ec6.cjs.dev.js +0 -1669
  1384. package/dist/Ref-88c1d56d.cjs.prod.js +0 -282
  1385. package/dist/Ref-8d85fc7a.cjs.dev.js +0 -282
  1386. package/dist/Ref-9a9de951.esm.js +0 -248
  1387. package/dist/Reloadable-10cfae17.esm.js +0 -159
  1388. package/dist/Reloadable-3ca716d9.cjs.prod.js +0 -169
  1389. package/dist/Reloadable-65bf6783.cjs.dev.js +0 -169
  1390. package/dist/Request-5b794c27.cjs.dev.js +0 -190
  1391. package/dist/Request-6d646956.cjs.prod.js +0 -190
  1392. package/dist/Request-9f0b571a.esm.js +0 -175
  1393. package/dist/RequestBlock-15e7d048.cjs.prod.js +0 -124
  1394. package/dist/RequestBlock-6105623d.esm.js +0 -114
  1395. package/dist/RequestBlock-ec5299d4.cjs.dev.js +0 -124
  1396. package/dist/RequestResolver-10227a7b.esm.js +0 -213
  1397. package/dist/RequestResolver-a3fe9b72.cjs.prod.js +0 -233
  1398. package/dist/RequestResolver-bc7e6050.cjs.dev.js +0 -233
  1399. package/dist/Resource-966460b5.cjs.dev.js +0 -118
  1400. package/dist/Resource-9f1084b9.cjs.prod.js +0 -118
  1401. package/dist/Resource-afd128d6.esm.js +0 -111
  1402. package/dist/Runtime-15bf8fcd.cjs.prod.js +0 -191
  1403. package/dist/Runtime-1a63e954.cjs.dev.js +0 -191
  1404. package/dist/Runtime-4f6fc384.esm.js +0 -175
  1405. package/dist/RuntimeFlags-4d3b4ba7.esm.js +0 -344
  1406. package/dist/RuntimeFlags-a43dcce7.cjs.dev.js +0 -381
  1407. package/dist/RuntimeFlags-ef10d73a.cjs.prod.js +0 -381
  1408. package/dist/RuntimeFlagsPatch-0c131e8e.cjs.dev.js +0 -411
  1409. package/dist/RuntimeFlagsPatch-a1da6096.esm.js +0 -365
  1410. package/dist/RuntimeFlagsPatch-bfdf133d.cjs.prod.js +0 -411
  1411. package/dist/STM-2bdad2bd.cjs.dev.js +0 -1447
  1412. package/dist/STM-55e91604.esm.js +0 -1321
  1413. package/dist/STM-e6749b84.cjs.prod.js +0 -1447
  1414. package/dist/Schedule-35a9436e.cjs.prod.js +0 -1159
  1415. package/dist/Schedule-d9b0f037.cjs.dev.js +0 -1159
  1416. package/dist/Schedule-da001b13.esm.js +0 -1059
  1417. package/dist/ScheduleDecision-2ab823c2.cjs.dev.js +0 -106
  1418. package/dist/ScheduleDecision-369cf2a1.cjs.prod.js +0 -106
  1419. package/dist/ScheduleDecision-e794f66d.esm.js +0 -99
  1420. package/dist/ScheduleInterval-2db9be83.cjs.dev.js +0 -244
  1421. package/dist/ScheduleInterval-3e9b8eca.cjs.prod.js +0 -244
  1422. package/dist/ScheduleInterval-94e80ec4.esm.js +0 -229
  1423. package/dist/ScheduleIntervals-ab412802.cjs.dev.js +0 -265
  1424. package/dist/ScheduleIntervals-e6ed15fa.cjs.prod.js +0 -265
  1425. package/dist/ScheduleIntervals-ef5cd7c5.esm.js +0 -252
  1426. package/dist/Scheduler-44f252da.cjs.prod.js +0 -358
  1427. package/dist/Scheduler-6122a3ee.cjs.dev.js +0 -358
  1428. package/dist/Scheduler-d2f7e5c7.esm.js +0 -343
  1429. package/dist/Scope-0ffde3bb.esm.js +0 -131
  1430. package/dist/Scope-326194e2.cjs.prod.js +0 -143
  1431. package/dist/Scope-3cf29072.cjs.dev.js +0 -143
  1432. package/dist/ScopedCache-01a07a6d.cjs.prod.js +0 -467
  1433. package/dist/ScopedCache-77c605e8.cjs.dev.js +0 -467
  1434. package/dist/ScopedCache-9c558fd1.esm.js +0 -462
  1435. package/dist/ScopedRef-2f0e2b33.cjs.dev.js +0 -87
  1436. package/dist/ScopedRef-5c29a8a2.cjs.prod.js +0 -87
  1437. package/dist/ScopedRef-dd8a823e.esm.js +0 -80
  1438. package/dist/Sink-923b4ad8.esm.js +0 -1107
  1439. package/dist/Sink-c4ca577a.cjs.prod.js +0 -1215
  1440. package/dist/Sink-fa1f105b.cjs.dev.js +0 -1215
  1441. package/dist/SortedMap-44f47d83.esm.js +0 -190
  1442. package/dist/SortedMap-abf39a75.cjs.prod.js +0 -210
  1443. package/dist/SortedMap-b04da739.cjs.dev.js +0 -210
  1444. package/dist/SortedSet-3339ea7f.esm.js +0 -288
  1445. package/dist/SortedSet-4efa4f05.cjs.dev.js +0 -311
  1446. package/dist/SortedSet-b588ac70.cjs.prod.js +0 -311
  1447. package/dist/Stack-765c2298.esm.js +0 -9
  1448. package/dist/Stream-1d51d0be.esm.js +0 -3175
  1449. package/dist/Stream-55dd689b.cjs.prod.js +0 -3469
  1450. package/dist/Stream-b1eaedfc.cjs.dev.js +0 -3469
  1451. package/dist/StreamEmit-bd696ab0.esm.js +0 -5
  1452. package/dist/StreamHaltStrategy-292ed375.cjs.dev.js +0 -214
  1453. package/dist/StreamHaltStrategy-506d4abb.cjs.prod.js +0 -214
  1454. package/dist/StreamHaltStrategy-9864a080.esm.js +0 -201
  1455. package/dist/String-9702a941.cjs.dev.js +0 -694
  1456. package/dist/String-ba45d520.esm.js +0 -648
  1457. package/dist/String-fa7c1c88.cjs.prod.js +0 -694
  1458. package/dist/Struct-3d8b2a81.cjs.prod.js +0 -141
  1459. package/dist/Struct-62f329c0.cjs.dev.js +0 -141
  1460. package/dist/Struct-8bc142d1.esm.js +0 -134
  1461. package/dist/SubscriptionRef-1eb76544.cjs.prod.js +0 -269
  1462. package/dist/SubscriptionRef-33b302b6.esm.js +0 -245
  1463. package/dist/SubscriptionRef-faf570c5.cjs.dev.js +0 -269
  1464. package/dist/Supervisor-34de9985.cjs.dev.js +0 -170
  1465. package/dist/Supervisor-3706300f.cjs.prod.js +0 -170
  1466. package/dist/Supervisor-5b9943cf.esm.js +0 -160
  1467. package/dist/Symbol-9ad0bde8.esm.js +0 -36
  1468. package/dist/Symbol-e3ea5627.cjs.dev.js +0 -40
  1469. package/dist/Symbol-e5af99ce.cjs.prod.js +0 -40
  1470. package/dist/SynchronizedRef-01f585dc.cjs.prod.js +0 -212
  1471. package/dist/SynchronizedRef-c389137f.esm.js +0 -187
  1472. package/dist/SynchronizedRef-cda883b7.cjs.dev.js +0 -212
  1473. package/dist/TArray-1200bf6a.esm.js +0 -412
  1474. package/dist/TArray-97bc3f87.cjs.prod.js +0 -455
  1475. package/dist/TArray-9bd73c38.cjs.dev.js +0 -455
  1476. package/dist/TDeferred-875fd41c.esm.js +0 -120
  1477. package/dist/TDeferred-bf21b756.cjs.prod.js +0 -129
  1478. package/dist/TDeferred-f97247d3.cjs.dev.js +0 -129
  1479. package/dist/THub-917198c0.esm.js +0 -553
  1480. package/dist/THub-c4a3e52c.cjs.dev.js +0 -570
  1481. package/dist/THub-d9d3b223.cjs.prod.js +0 -570
  1482. package/dist/TMap-459696e5.cjs.dev.js +0 -463
  1483. package/dist/TMap-786b8508.esm.js +0 -419
  1484. package/dist/TMap-a6aab3c3.cjs.prod.js +0 -463
  1485. package/dist/TPriorityQueue-31c32afb.esm.js +0 -360
  1486. package/dist/TPriorityQueue-918056c3.cjs.prod.js +0 -381
  1487. package/dist/TPriorityQueue-e8429066.cjs.dev.js +0 -381
  1488. package/dist/TQueue-adee58b8.esm.js +0 -324
  1489. package/dist/TQueue-b9593214.cjs.prod.js +0 -353
  1490. package/dist/TQueue-d1c8153e.cjs.dev.js +0 -353
  1491. package/dist/TRandom-65721a5b.cjs.prod.js +0 -203
  1492. package/dist/TRandom-677ba64f.esm.js +0 -192
  1493. package/dist/TRandom-79057bd9.cjs.dev.js +0 -203
  1494. package/dist/TReentrantLock-0dbd6074.cjs.prod.js +0 -456
  1495. package/dist/TReentrantLock-164c0898.cjs.dev.js +0 -456
  1496. package/dist/TReentrantLock-65156c11.esm.js +0 -435
  1497. package/dist/TRef-4a45f5af.cjs.dev.js +0 -152
  1498. package/dist/TRef-edd5ff88.esm.js +0 -135
  1499. package/dist/TRef-ff8497e4.cjs.prod.js +0 -152
  1500. package/dist/TSemaphore-1f5dc074.cjs.dev.js +0 -197
  1501. package/dist/TSemaphore-bccebfec.esm.js +0 -183
  1502. package/dist/TSemaphore-d1096593.cjs.prod.js +0 -197
  1503. package/dist/TSet-0f61d448.cjs.prod.js +0 -444
  1504. package/dist/TSet-48903882.cjs.dev.js +0 -444
  1505. package/dist/TSet-bd3a1de2.esm.js +0 -412
  1506. package/dist/Take-1e6b1ba3.esm.js +0 -214
  1507. package/dist/Take-7797160f.cjs.dev.js +0 -236
  1508. package/dist/Take-d245cc08.cjs.prod.js +0 -236
  1509. package/dist/TestAnnotation-5b23b64a.cjs.prod.js +0 -135
  1510. package/dist/TestAnnotation-c2b6bb64.esm.js +0 -124
  1511. package/dist/TestAnnotation-ca7ea5d9.cjs.dev.js +0 -135
  1512. package/dist/TestAnnotationMap-5ef91d33.cjs.prod.js +0 -125
  1513. package/dist/TestAnnotationMap-83b0e761.cjs.dev.js +0 -125
  1514. package/dist/TestAnnotationMap-d180214b.esm.js +0 -114
  1515. package/dist/TestAnnotations-758011e7.cjs.prod.js +0 -97
  1516. package/dist/TestAnnotations-89733ab7.cjs.dev.js +0 -97
  1517. package/dist/TestAnnotations-cf445345.esm.js +0 -91
  1518. package/dist/TestClock-0a012f75.esm.js +0 -565
  1519. package/dist/TestClock-0abac759.cjs.prod.js +0 -581
  1520. package/dist/TestClock-3bdb0c0b.cjs.dev.js +0 -581
  1521. package/dist/TestConfig-3f48c7f2.cjs.prod.js +0 -37
  1522. package/dist/TestConfig-e52495c3.esm.js +0 -33
  1523. package/dist/TestConfig-ff283076.cjs.dev.js +0 -37
  1524. package/dist/TestContext-64f40523.esm.js +0 -36
  1525. package/dist/TestContext-7a6420d3.cjs.prod.js +0 -41
  1526. package/dist/TestContext-b44d97ae.cjs.dev.js +0 -41
  1527. package/dist/TestLive-64c62bfe.cjs.dev.js +0 -60
  1528. package/dist/TestLive-906c173d.cjs.prod.js +0 -60
  1529. package/dist/TestLive-bfab4add.esm.js +0 -55
  1530. package/dist/TestServices-844e305d.esm.js +0 -306
  1531. package/dist/TestServices-944b625c.cjs.prod.js +0 -341
  1532. package/dist/TestServices-f8c51bbd.cjs.dev.js +0 -341
  1533. package/dist/TestSized-0fa739ff.cjs.prod.js +0 -64
  1534. package/dist/TestSized-3a0fa658.esm.js +0 -58
  1535. package/dist/TestSized-955a228e.cjs.dev.js +0 -64
  1536. package/dist/Tracer-1610aba4.cjs.dev.js +0 -81
  1537. package/dist/Tracer-700da80a.cjs.prod.js +0 -81
  1538. package/dist/Tracer-b07052e2.esm.js +0 -75
  1539. package/dist/Tuple-1fa12d6e.esm.js +0 -187
  1540. package/dist/Tuple-73682170.cjs.prod.js +0 -199
  1541. package/dist/Tuple-9822259f.cjs.dev.js +0 -199
  1542. package/dist/Types-be3804ad.esm.js +0 -5
  1543. package/dist/Unify-150ebcee.cjs.dev.js +0 -48
  1544. package/dist/Unify-77f78d08.cjs.prod.js +0 -48
  1545. package/dist/Unify-9d27a1f3.esm.js +0 -45
  1546. package/dist/Utils-32587b0c.cjs.dev.js +0 -370
  1547. package/dist/Utils-6484334f.cjs.prod.js +0 -370
  1548. package/dist/Utils-657e8bfa.esm.js +0 -362
  1549. package/dist/boundaries-6bacf30a.cjs.prod.js +0 -54
  1550. package/dist/boundaries-8475a9b4.esm.js +0 -48
  1551. package/dist/boundaries-c6f4c3da.cjs.dev.js +0 -54
  1552. package/dist/cache-2fa366f0.esm.js +0 -514
  1553. package/dist/cache-7b578624.cjs.prod.js +0 -523
  1554. package/dist/cache-8db60799.cjs.dev.js +0 -523
  1555. package/dist/childExecutorDecision-49f0f19c.esm.js +0 -85
  1556. package/dist/childExecutorDecision-744cd5fb.cjs.prod.js +0 -98
  1557. package/dist/childExecutorDecision-c1c3b8b6.cjs.dev.js +0 -98
  1558. package/dist/circular-1dfea59d.cjs.prod.js +0 -107
  1559. package/dist/circular-3ebc9b78.esm.js +0 -82
  1560. package/dist/circular-604e98e5.cjs.prod.js +0 -341
  1561. package/dist/circular-8088cc19.cjs.dev.js +0 -341
  1562. package/dist/circular-cff58c30.esm.js +0 -311
  1563. package/dist/circular-e5da795a.cjs.dev.js +0 -107
  1564. package/dist/config-05de256b.cjs.dev.js +0 -474
  1565. package/dist/config-3003c43a.cjs.prod.js +0 -474
  1566. package/dist/config-64a67e36.esm.js +0 -428
  1567. package/dist/configError-84c0742e.esm.js +0 -305
  1568. package/dist/configError-a7c4fcc2.cjs.dev.js +0 -323
  1569. package/dist/configError-b3dd6ec2.cjs.prod.js +0 -323
  1570. package/dist/configProvider-35a1a3c7.cjs.prod.js +0 -447
  1571. package/dist/configProvider-56d1b842.cjs.dev.js +0 -447
  1572. package/dist/configProvider-cd15d971.esm.js +0 -428
  1573. package/dist/configSecret-18ba6f6e.cjs.dev.js +0 -74
  1574. package/dist/configSecret-3dd7ab72.cjs.prod.js +0 -74
  1575. package/dist/configSecret-793e52b4.esm.js +0 -66
  1576. package/dist/core-01c0ed9d.cjs.prod.js +0 -1072
  1577. package/dist/core-218f7617.cjs.prod.js +0 -3502
  1578. package/dist/core-5346c1e5.cjs.dev.js +0 -1072
  1579. package/dist/core-9276b625.esm.js +0 -1032
  1580. package/dist/core-9f5f0dc2.esm.js +0 -3225
  1581. package/dist/core-bedc63fe.cjs.dev.js +0 -3502
  1582. package/dist/core-effect-a839563d.cjs.dev.js +0 -1030
  1583. package/dist/core-effect-e762d50b.esm.js +0 -902
  1584. package/dist/core-effect-fea8dde9.cjs.prod.js +0 -1030
  1585. package/dist/dataSource-43c62f8e.esm.js +0 -60
  1586. package/dist/dataSource-8ab8a0ec.cjs.dev.js +0 -74
  1587. package/dist/dataSource-cc1edaa1.cjs.prod.js +0 -74
  1588. package/dist/defaultServices-1d4f144a.cjs.prod.js +0 -388
  1589. package/dist/defaultServices-1f1298e8.cjs.dev.js +0 -388
  1590. package/dist/defaultServices-86214de4.esm.js +0 -359
  1591. package/dist/fiber-1511340a.esm.js +0 -363
  1592. package/dist/fiber-18f7cf87.cjs.dev.js +0 -411
  1593. package/dist/fiber-957d5291.cjs.prod.js +0 -411
  1594. package/dist/fiberRefs-76ecbcfd.cjs.dev.js +0 -181
  1595. package/dist/fiberRefs-b32de18b.esm.js +0 -169
  1596. package/dist/fiberRefs-f0429b31.cjs.prod.js +0 -181
  1597. package/dist/fiberRuntime-233db874.cjs.dev.js +0 -3012
  1598. package/dist/fiberRuntime-5e42f85c.cjs.prod.js +0 -3012
  1599. package/dist/fiberRuntime-98f09d31.esm.js +0 -2857
  1600. package/dist/groupBy-36e6ca3f.cjs.prod.js +0 -216
  1601. package/dist/groupBy-3a32c4b6.cjs.dev.js +0 -216
  1602. package/dist/groupBy-8d753c19.esm.js +0 -206
  1603. package/dist/hook-8fc9006f.esm.js +0 -362
  1604. package/dist/hook-e169b712.cjs.prod.js +0 -371
  1605. package/dist/hook-fe9f948d.cjs.dev.js +0 -371
  1606. package/dist/key-215ea6fd.esm.js +0 -68
  1607. package/dist/key-4824d1ad.cjs.prod.js +0 -79
  1608. package/dist/key-d8dc829b.cjs.dev.js +0 -79
  1609. package/dist/keyType-c980adcc.cjs.dev.js +0 -236
  1610. package/dist/keyType-d85714ed.cjs.prod.js +0 -236
  1611. package/dist/keyType-fefd9ef8.esm.js +0 -218
  1612. package/dist/label-14b7d517.cjs.dev.js +0 -44
  1613. package/dist/label-5cb21441.esm.js +0 -40
  1614. package/dist/label-e78b2f8f.cjs.prod.js +0 -44
  1615. package/dist/layer-3da5a933.cjs.prod.js +0 -658
  1616. package/dist/layer-e1d1db03.cjs.dev.js +0 -658
  1617. package/dist/layer-f8ec8454.esm.js +0 -596
  1618. package/dist/mergeDecision-32146c34.esm.js +0 -78
  1619. package/dist/mergeDecision-75feaab3.cjs.dev.js +0 -86
  1620. package/dist/mergeDecision-a1822db2.cjs.prod.js +0 -86
  1621. package/dist/mergeState-21728f0b.esm.js +0 -96
  1622. package/dist/mergeState-2c24c562.cjs.prod.js +0 -109
  1623. package/dist/mergeState-e9aa09b9.cjs.dev.js +0 -109
  1624. package/dist/mergeStrategy-84dd9011.esm.js +0 -64
  1625. package/dist/mergeStrategy-8fe47c7e.cjs.dev.js +0 -72
  1626. package/dist/mergeStrategy-909bebb0.cjs.prod.js +0 -72
  1627. package/dist/pair-67530b23.cjs.dev.js +0 -42
  1628. package/dist/pair-cb46f77c.esm.js +0 -38
  1629. package/dist/pair-fb591d12.cjs.prod.js +0 -42
  1630. package/dist/patch-99e8591b.esm.js +0 -127
  1631. package/dist/patch-cdcb5e42.cjs.dev.js +0 -132
  1632. package/dist/patch-f440dab6.cjs.prod.js +0 -132
  1633. package/dist/pathPatch-5ac830c8.esm.js +0 -83
  1634. package/dist/pathPatch-75afe967.cjs.dev.js +0 -90
  1635. package/dist/pathPatch-775a0838.cjs.prod.js +0 -90
  1636. package/dist/pool-0da00d67.cjs.prod.js +0 -278
  1637. package/dist/pool-54820a71.esm.js +0 -271
  1638. package/dist/pool-bfa5c974.cjs.dev.js +0 -278
  1639. package/dist/query-1685a476.esm.js +0 -97
  1640. package/dist/query-3ab8cd4e.cjs.prod.js +0 -104
  1641. package/dist/query-68bb7c45.cjs.dev.js +0 -104
  1642. package/dist/queue-499cacee.cjs.prod.js +0 -538
  1643. package/dist/queue-b79c472d.esm.js +0 -505
  1644. package/dist/queue-bf262207.cjs.dev.js +0 -538
  1645. package/dist/registry-38f0ed9d.esm.js +0 -111
  1646. package/dist/registry-6f465b2f.cjs.prod.js +0 -114
  1647. package/dist/registry-dfe7ed01.cjs.dev.js +0 -114
  1648. package/dist/runtime-5b7472d5.cjs.dev.js +0 -288
  1649. package/dist/runtime-68e90981.cjs.prod.js +0 -288
  1650. package/dist/runtime-f91ca239.esm.js +0 -266
  1651. package/dist/schedule-0d31f4cc.esm.js +0 -843
  1652. package/dist/schedule-616cf1b8.cjs.prod.js +0 -956
  1653. package/dist/schedule-d3f9b258.cjs.dev.js +0 -956
  1654. package/dist/scopedRef-5e59cf54.cjs.prod.js +0 -55
  1655. package/dist/scopedRef-730d8d35.cjs.dev.js +0 -55
  1656. package/dist/scopedRef-e54a3d93.esm.js +0 -49
  1657. package/dist/singleProducerAsyncInput-6508b7f1.cjs.dev.js +0 -193
  1658. package/dist/singleProducerAsyncInput-c67ef1c6.esm.js +0 -191
  1659. package/dist/singleProducerAsyncInput-d3225b4e.cjs.prod.js +0 -193
  1660. package/dist/sink-05d54662.cjs.prod.js +0 -3094
  1661. package/dist/sink-3105a90f.cjs.dev.js +0 -3094
  1662. package/dist/sink-3f26fc31.esm.js +0 -2877
  1663. package/dist/state-38610229.esm.js +0 -209
  1664. package/dist/state-6d974829.cjs.dev.js +0 -227
  1665. package/dist/state-abef4d59.cjs.prod.js +0 -227
  1666. package/dist/stm-43c3b262.cjs.dev.js +0 -678
  1667. package/dist/stm-d01a804c.esm.js +0 -582
  1668. package/dist/stm-e1200304.cjs.prod.js +0 -678
  1669. package/dist/stream-3ebec4f3.cjs.prod.js +0 -3649
  1670. package/dist/stream-9270c6b1.esm.js +0 -3355
  1671. package/dist/stream-b819c5b3.cjs.dev.js +0 -3649
  1672. package/dist/synchronizedRef-5bbb64b2.cjs.prod.js +0 -62
  1673. package/dist/synchronizedRef-e9682c8e.cjs.dev.js +0 -62
  1674. package/dist/synchronizedRef-f7077a5f.esm.js +0 -53
  1675. package/dist/tArray-0d2e8fae.cjs.dev.js +0 -330
  1676. package/dist/tArray-442d22a4.cjs.prod.js +0 -330
  1677. package/dist/tArray-fa2759e8.esm.js +0 -287
  1678. package/dist/tMap-2a001015.cjs.prod.js +0 -535
  1679. package/dist/tMap-2a98e9a7.esm.js +0 -492
  1680. package/dist/tMap-2fd8c9e6.cjs.dev.js +0 -535
  1681. package/dist/tQueue-13f8f402.esm.js +0 -331
  1682. package/dist/tQueue-84a0d0eb.cjs.dev.js +0 -367
  1683. package/dist/tQueue-e2e96d1f.cjs.prod.js +0 -367
  1684. package/dist/tRef-4772a528.cjs.prod.js +0 -133
  1685. package/dist/tRef-b5d0cc28.esm.js +0 -115
  1686. package/dist/tRef-bbbdd134.cjs.dev.js +0 -133
  1687. package/dist/take-68ed448f.cjs.dev.js +0 -152
  1688. package/dist/take-7c168e8e.esm.js +0 -130
  1689. package/dist/take-d293f721.cjs.prod.js +0 -152
  1690. package/dist/timeout-4180303d.esm.js +0 -22
  1691. package/dist/upstreamPullRequest-be86e51c.esm.js +0 -71
  1692. package/dist/upstreamPullRequest-d2eaf7f5.cjs.prod.js +0 -79
  1693. package/dist/upstreamPullRequest-f986731f.cjs.dev.js +0 -79
  1694. package/dist/upstreamPullStrategy-08e7185f.cjs.prod.js +0 -81
  1695. package/dist/upstreamPullStrategy-29c0b698.cjs.dev.js +0 -81
  1696. package/dist/upstreamPullStrategy-d1505fa4.esm.js +0 -71
@@ -0,0 +1,3012 @@
1
+ 'use strict';
2
+
3
+ var Boolean_dist_effectBoolean = require('./Boolean-97839b78.cjs.prod.js');
4
+ var Chunk_dist_effectChunk = require('./Chunk-6cf5a8e6.cjs.prod.js');
5
+ var Context_dist_effectContext = require('./Context-25a49952.cjs.prod.js');
6
+ var Deferred_dist_effectDeferred = require('./Deferred-9d825b3b.cjs.prod.js');
7
+ var ExecutionStrategy_dist_effectExecutionStrategy = require('./ExecutionStrategy-dc778180.cjs.prod.js');
8
+ var FiberId_dist_effectFiberId = require('./FiberId-b79e8047.cjs.prod.js');
9
+ var FiberRefs_dist_effectFiberRefs = require('./FiberRefs-4cb171f7.cjs.prod.js');
10
+ var FiberRefsPatch_dist_effectFiberRefsPatch = require('./FiberRefsPatch-cb847553.cjs.prod.js');
11
+ var FiberStatus_dist_effectFiberStatus = require('./FiberStatus-b82dad24.cjs.prod.js');
12
+ var Function_dist_effectFunction = require('./Function-2e6b0cda.cjs.prod.js');
13
+ var HashSet_dist_effectHashSet = require('./HashSet-c40a52b1.cjs.prod.js');
14
+ var core = require('./core-c2eb171a.cjs.prod.js');
15
+ var defaultServices = require('./defaultServices-4112c0c9.cjs.prod.js');
16
+ var GlobalValue_dist_effectGlobalValue = require('./GlobalValue-cb645c99.cjs.prod.js');
17
+ var configProvider = require('./configProvider-2b177eac.cjs.prod.js');
18
+ var coreEffect = require('./core-effect-bf806dd9.cjs.prod.js');
19
+ var fiber = require('./fiber-90ffaf8c.cjs.prod.js');
20
+ var fiberRefs = require('./fiberRefs-64c35250.cjs.prod.js');
21
+ var HashMap_dist_effectHashMap = require('./HashMap-12668911.cjs.prod.js');
22
+ var List_dist_effectList = require('./List-d9775087.cjs.prod.js');
23
+ var LogSpan_dist_effectLogSpan = require('./LogSpan-c905a192.cjs.prod.js');
24
+ var Option_dist_effectOption = require('./Option-02025c86.cjs.prod.js');
25
+ var Pipeable_dist_effectPipeable = require('./Pipeable-d3ec6711.cjs.prod.js');
26
+ var Clock_dist_effectClock = require('./Clock-09ecce0a.cjs.prod.js');
27
+ var Duration_dist_effectDuration = require('./Duration-0bc08d03.cjs.prod.js');
28
+ var boundaries = require('./boundaries-5d1a46e1.cjs.prod.js');
29
+ var key = require('./key-330b98b1.cjs.prod.js');
30
+ var label = require('./label-3e143765.cjs.prod.js');
31
+ var registry = require('./registry-29905dcc.cjs.prod.js');
32
+ var ReadonlyArray_dist_effectReadonlyArray = require('./ReadonlyArray-8157f697.cjs.prod.js');
33
+ var Effectable = require('./Effectable-f867d1cb.cjs.prod.js');
34
+ var Data_dist_effectData = require('./Data-07dc27f1.cjs.prod.js');
35
+ var RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch = require('./RuntimeFlagsPatch-5570758d.cjs.prod.js');
36
+ var MutableRef_dist_effectMutableRef = require('./MutableRef-4a2f1f23.cjs.prod.js');
37
+ var SortedSet_dist_effectSortedSet = require('./SortedSet-424670fe.cjs.prod.js');
38
+ var Differ_dist_effectDiffer = require('./Differ-0bd34066.cjs.prod.js');
39
+ var Equal_dist_effectEqual = require('./Equal-ce9977a8.cjs.prod.js');
40
+ var LogLevel_dist_effectLogLevel = require('./LogLevel-e9848e15.cjs.prod.js');
41
+ var Predicate_dist_effectPredicate = require('./Predicate-daa86e61.cjs.prod.js');
42
+ var Ref_dist_effectRef = require('./Ref-30e5ee58.cjs.prod.js');
43
+ var Scheduler_dist_effectScheduler = require('./Scheduler-819ee02a.cjs.prod.js');
44
+
45
+ /** @internal */
46
+ const currentRequestMap = /*#__PURE__*/GlobalValue_dist_effectGlobalValue.globalValue( /*#__PURE__*/Symbol.for("effect/FiberRef/currentRequestMap"), () => core.fiberRefUnsafeMake(new Map()));
47
+
48
+ /** @internal */
49
+ const match = (options, sequential, unbounded, bounded) => {
50
+ switch (options?.concurrency) {
51
+ case undefined:
52
+ {
53
+ return sequential();
54
+ }
55
+ case "unbounded":
56
+ {
57
+ return unbounded();
58
+ }
59
+ case "inherit":
60
+ {
61
+ return core.fiberRefGetWith(core.currentConcurrency, concurrency => concurrency === "unbounded" ? unbounded() : concurrency > 1 ? bounded(concurrency) : sequential());
62
+ }
63
+ default:
64
+ {
65
+ return options.concurrency > 1 ? bounded(options.concurrency) : sequential();
66
+ }
67
+ }
68
+ };
69
+
70
+ /** @internal */
71
+ const matchSimple = (options, sequential, concurrent) => {
72
+ switch (options?.concurrency) {
73
+ case undefined:
74
+ {
75
+ return sequential();
76
+ }
77
+ case "unbounded":
78
+ {
79
+ return concurrent();
80
+ }
81
+ case "inherit":
82
+ {
83
+ return core.fiberRefGetWith(core.currentConcurrency, concurrency => concurrency === "unbounded" ? concurrent() : concurrency > 1 ? concurrent() : sequential());
84
+ }
85
+ default:
86
+ {
87
+ return options.concurrency > 1 ? concurrent() : sequential();
88
+ }
89
+ }
90
+ };
91
+
92
+ /** @internal */
93
+ const LoggerSymbolKey = "effect/Logger";
94
+
95
+ /** @internal */
96
+ const LoggerTypeId = /*#__PURE__*/Symbol.for(LoggerSymbolKey);
97
+
98
+ /** @internal */
99
+ const loggerVariance = {
100
+ _Message: _ => _,
101
+ _Output: _ => _
102
+ };
103
+
104
+ /** @internal */
105
+ const makeLogger = log => ({
106
+ [LoggerTypeId]: loggerVariance,
107
+ log,
108
+ pipe() {
109
+ return Pipeable_dist_effectPipeable.pipeArguments(this, arguments);
110
+ }
111
+ });
112
+
113
+ /** @internal */
114
+ const mapInput$1 = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, f) => makeLogger(options => self.log({
115
+ ...options,
116
+ message: f(options.message)
117
+ })));
118
+
119
+ /** @internal */
120
+ const filterLogLevel = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, f) => makeLogger(options => f(options.logLevel) ? Option_dist_effectOption.some(self.log(options)) : Option_dist_effectOption.none()));
121
+
122
+ /** @internal */
123
+ const map$1 = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, f) => makeLogger(options => f(self.log(options))));
124
+
125
+ /** @internal */
126
+ const none$1 = {
127
+ [LoggerTypeId]: loggerVariance,
128
+ log: Function_dist_effectFunction.constVoid,
129
+ pipe() {
130
+ return Pipeable_dist_effectPipeable.pipeArguments(this, arguments);
131
+ }
132
+ };
133
+
134
+ /** @internal */
135
+ const simple = log => ({
136
+ [LoggerTypeId]: loggerVariance,
137
+ log: ({
138
+ message
139
+ }) => log(message),
140
+ pipe() {
141
+ return Pipeable_dist_effectPipeable.pipeArguments(this, arguments);
142
+ }
143
+ });
144
+
145
+ /** @internal */
146
+ const succeed$2 = value => {
147
+ return simple(() => value);
148
+ };
149
+
150
+ /** @internal */
151
+ const sync$1 = evaluate => {
152
+ return simple(evaluate);
153
+ };
154
+
155
+ /** @internal */
156
+ const zip$1 = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => makeLogger(options => [self.log(options), that.log(options)]));
157
+
158
+ /** @internal */
159
+ const zipLeft = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => map$1(zip$1(self, that), tuple => tuple[0]));
160
+
161
+ /** @internal */
162
+ const zipRight = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => map$1(zip$1(self, that), tuple => tuple[1]));
163
+
164
+ /** @internal */
165
+ const stringLogger = /*#__PURE__*/makeLogger(({
166
+ annotations,
167
+ cause,
168
+ date,
169
+ fiberId,
170
+ logLevel,
171
+ message,
172
+ spans
173
+ }) => {
174
+ const nowMillis = date.getTime();
175
+ const outputArray = [`timestamp=${date.toISOString()}`, `level=${logLevel.label}`, `fiber=${FiberId_dist_effectFiberId.threadName(fiberId)}`];
176
+ let output = outputArray.join(" ");
177
+ const stringMessage = serializeUnknown(message);
178
+ if (stringMessage.length > 0) {
179
+ output = output + " message=";
180
+ output = appendQuoted(stringMessage, output);
181
+ }
182
+ if (cause != null && cause != core.empty) {
183
+ output = output + " cause=";
184
+ output = appendQuoted(core.pretty(cause), output);
185
+ }
186
+ if (List_dist_effectList.isCons(spans)) {
187
+ output = output + " ";
188
+ let first = true;
189
+ for (const span of spans) {
190
+ if (first) {
191
+ first = false;
192
+ } else {
193
+ output = output + " ";
194
+ }
195
+ output = output + Function_dist_effectFunction.pipe(span, LogSpan_dist_effectLogSpan.render(nowMillis));
196
+ }
197
+ }
198
+ if (Function_dist_effectFunction.pipe(annotations, HashMap_dist_effectHashMap.size) > 0) {
199
+ output = output + " ";
200
+ let first = true;
201
+ for (const [key, value] of annotations) {
202
+ if (first) {
203
+ first = false;
204
+ } else {
205
+ output = output + " ";
206
+ }
207
+ output = output + filterKeyName(key);
208
+ output = output + "=";
209
+ output = appendQuoted(String(value), output);
210
+ }
211
+ }
212
+ return output;
213
+ });
214
+ const serializeUnknown = u => {
215
+ try {
216
+ return typeof u === "object" ? JSON.stringify(u) : String(u);
217
+ } catch (_) {
218
+ return String(u);
219
+ }
220
+ };
221
+
222
+ /** @internal */
223
+ const escapeDoubleQuotes = str => `"${str.replace(/\\([\s\S])|(")/g, "\\$1$2")}"`;
224
+ const textOnly = /^[^\s"=]+$/;
225
+
226
+ /** @internal */
227
+ const appendQuoted = (label, output) => output + (label.match(textOnly) ? label : escapeDoubleQuotes(label));
228
+
229
+ /** @internal */
230
+ const logfmtLogger = /*#__PURE__*/makeLogger(({
231
+ annotations,
232
+ cause,
233
+ date,
234
+ fiberId,
235
+ logLevel,
236
+ message,
237
+ spans
238
+ }) => {
239
+ const nowMillis = date.getTime();
240
+ const outputArray = [`timestamp=${date.toISOString()}`, `level=${logLevel.label}`, `fiber=${FiberId_dist_effectFiberId.threadName(fiberId)}`];
241
+ let output = outputArray.join(" ");
242
+ const stringMessage = serializeUnknown(message);
243
+ if (stringMessage.length > 0) {
244
+ output = output + " message=";
245
+ output = appendQuotedLogfmt(stringMessage, output);
246
+ }
247
+ if (cause != null && cause != core.empty) {
248
+ output = output + " cause=";
249
+ output = appendQuotedLogfmt(core.pretty(cause), output);
250
+ }
251
+ if (List_dist_effectList.isCons(spans)) {
252
+ output = output + " ";
253
+ let first = true;
254
+ for (const span of spans) {
255
+ if (first) {
256
+ first = false;
257
+ } else {
258
+ output = output + " ";
259
+ }
260
+ output = output + Function_dist_effectFunction.pipe(span, renderLogSpanLogfmt(nowMillis));
261
+ }
262
+ }
263
+ if (Function_dist_effectFunction.pipe(annotations, HashMap_dist_effectHashMap.size) > 0) {
264
+ output = output + " ";
265
+ let first = true;
266
+ for (const [key, value] of annotations) {
267
+ if (first) {
268
+ first = false;
269
+ } else {
270
+ output = output + " ";
271
+ }
272
+ output = output + filterKeyName(key);
273
+ output = output + "=";
274
+ output = appendQuotedLogfmt(String(value), output);
275
+ }
276
+ }
277
+ return output;
278
+ });
279
+
280
+ /** @internal */
281
+ const filterKeyName = key => key.replace(/[\s="]/g, "_");
282
+
283
+ /** @internal */
284
+ const escapeDoubleQuotesLogfmt = str => JSON.stringify(str);
285
+
286
+ /** @internal */
287
+ const appendQuotedLogfmt = (label, output) => output + (label.match(textOnly) ? label : escapeDoubleQuotesLogfmt(label));
288
+
289
+ /** @internal */
290
+ const renderLogSpanLogfmt = now => self => {
291
+ const label = filterKeyName(self.label);
292
+ return `${label}=${now - self.startTime}ms`;
293
+ };
294
+
295
+ /** @internal */
296
+ const MetricSymbolKey = "effect/Metric";
297
+
298
+ /** @internal */
299
+ const MetricTypeId = /*#__PURE__*/Symbol.for(MetricSymbolKey);
300
+
301
+ /** @internal */
302
+ const metricVariance = {
303
+ _Type: _ => _,
304
+ _In: _ => _,
305
+ _Out: _ => _
306
+ };
307
+
308
+ /** @internal */
309
+ const globalMetricRegistry = /*#__PURE__*/GlobalValue_dist_effectGlobalValue.globalValue( /*#__PURE__*/Symbol.for("effect/Metric/globalMetricRegistry"), () => registry.make());
310
+
311
+ /** @internal */
312
+ const make = function (keyType, unsafeUpdate, unsafeValue) {
313
+ const metric = Object.assign(effect => core.tap(effect, a => core.sync(() => unsafeUpdate(a, HashSet_dist_effectHashSet.empty()))), {
314
+ [MetricTypeId]: metricVariance,
315
+ keyType,
316
+ unsafeUpdate,
317
+ unsafeValue,
318
+ pipe() {
319
+ return Pipeable_dist_effectPipeable.pipeArguments(this, arguments);
320
+ }
321
+ });
322
+ return metric;
323
+ };
324
+
325
+ /** @internal */
326
+ const mapInput = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, f) => make(self.keyType, (input, extraTags) => self.unsafeUpdate(f(input), extraTags), self.unsafeValue));
327
+
328
+ /** @internal */
329
+ const counter = (name, description) => fromMetricKey(key.counter(name, description));
330
+
331
+ /** @internal */
332
+ const frequency = (name, description) => fromMetricKey(key.frequency(name, description));
333
+
334
+ /** @internal */
335
+ const withConstantInput = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, input) => mapInput(self, () => input));
336
+
337
+ /** @internal */
338
+ const fromMetricKey = key$1 => {
339
+ const hook = extraTags => {
340
+ const fullKey = Function_dist_effectFunction.pipe(key$1, key.taggedWithLabelSet(extraTags));
341
+ return globalMetricRegistry.get(fullKey);
342
+ };
343
+ return make(key$1.keyType, (input, extraTags) => hook(extraTags).update(input), extraTags => hook(extraTags).get());
344
+ };
345
+
346
+ /** @internal */
347
+ const gauge = (name, description) => fromMetricKey(key.gauge(name, description));
348
+
349
+ /** @internal */
350
+ const histogram = (name, boundaries, description) => fromMetricKey(key.histogram(name, boundaries, description));
351
+
352
+ /* @internal */
353
+ const increment = self => update(self, 1);
354
+
355
+ /* @internal */
356
+ const incrementBy = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, amount) => update(self, amount));
357
+
358
+ /** @internal */
359
+ const map = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, f) => make(self.keyType, self.unsafeUpdate, extraTags => f(self.unsafeValue(extraTags))));
360
+
361
+ /** @internal */
362
+ const mapType = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, f) => make(f(self.keyType), self.unsafeUpdate, self.unsafeValue));
363
+
364
+ /* @internal */
365
+ const set = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, value) => update(self, value));
366
+
367
+ /** @internal */
368
+ const succeed$1 = out => make(void 0, Function_dist_effectFunction.constVoid, () => out);
369
+
370
+ /** @internal */
371
+ const sync = evaluate => make(void 0, Function_dist_effectFunction.constVoid, evaluate);
372
+
373
+ /** @internal */
374
+ const summary = options => withNow(summaryTimestamp(options));
375
+
376
+ /** @internal */
377
+ const summaryTimestamp = options => fromMetricKey(key.summary(options));
378
+
379
+ /** @internal */
380
+ const tagged$1 = /*#__PURE__*/Function_dist_effectFunction.dual(3, (self, key, value) => taggedWithLabels(self, HashSet_dist_effectHashSet.make(label.make(key, value))));
381
+
382
+ /** @internal */
383
+ const taggedWithLabelsInput = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, f) => map(make(self.keyType, (input, extraTags) => self.unsafeUpdate(input, HashSet_dist_effectHashSet.union(HashSet_dist_effectHashSet.fromIterable(f(input)), extraTags)), self.unsafeValue), Function_dist_effectFunction.constVoid));
384
+
385
+ /** @internal */
386
+ const taggedWithLabels = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, extraTagsIterable) => {
387
+ const extraTags = HashSet_dist_effectHashSet.isHashSet(extraTagsIterable) ? extraTagsIterable : HashSet_dist_effectHashSet.fromIterable(extraTagsIterable);
388
+ return make(self.keyType, (input, extraTags1) => self.unsafeUpdate(input, Function_dist_effectFunction.pipe(extraTags, HashSet_dist_effectHashSet.union(extraTags1))), extraTags1 => self.unsafeValue(Function_dist_effectFunction.pipe(extraTags, HashSet_dist_effectHashSet.union(extraTags1))));
389
+ });
390
+
391
+ /** @internal */
392
+ const timer = name => {
393
+ const boundaries$1 = boundaries.exponential({
394
+ start: 1,
395
+ factor: 2,
396
+ count: 100
397
+ });
398
+ const base = Function_dist_effectFunction.pipe(histogram(name, boundaries$1), tagged$1("time_unit", "milliseconds"));
399
+ return mapInput(base, Duration_dist_effectDuration.toMillis);
400
+ };
401
+
402
+ /** @internal */
403
+ const timerWithBoundaries = (name, boundaries$1) => {
404
+ const base = Function_dist_effectFunction.pipe(histogram(name, boundaries.fromChunk(boundaries$1)), tagged$1("time_unit", "milliseconds"));
405
+ return mapInput(base, Duration_dist_effectDuration.toMillis);
406
+ };
407
+
408
+ /* @internal */
409
+ const trackAll = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, input) => effect => core.matchCauseEffect(effect, {
410
+ onFailure: cause => {
411
+ self.unsafeUpdate(input, HashSet_dist_effectHashSet.empty());
412
+ return core.failCause(cause);
413
+ },
414
+ onSuccess: value => {
415
+ self.unsafeUpdate(input, HashSet_dist_effectHashSet.empty());
416
+ return core.succeed(value);
417
+ }
418
+ }));
419
+
420
+ /* @internal */
421
+ const trackDefect = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, metric) => trackDefectWith(self, metric, Function_dist_effectFunction.identity));
422
+
423
+ /* @internal */
424
+ const trackDefectWith = /*#__PURE__*/Function_dist_effectFunction.dual(3, (self, metric, f) => {
425
+ const updater = defect => metric.unsafeUpdate(f(defect), HashSet_dist_effectHashSet.empty());
426
+ return coreEffect.tapDefect(self, cause => core.sync(() => Function_dist_effectFunction.pipe(core.defects(cause), ReadonlyArray_dist_effectReadonlyArray.forEach(updater))));
427
+ });
428
+
429
+ /* @internal */
430
+ const trackDuration = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, metric) => trackDurationWith(self, metric, Function_dist_effectFunction.identity));
431
+
432
+ /* @internal */
433
+ const trackDurationWith = /*#__PURE__*/Function_dist_effectFunction.dual(3, (self, metric, f) => Clock_dist_effectClock.clockWith(clock => {
434
+ const startTime = clock.unsafeCurrentTimeNanos();
435
+ return core.map(self, a => {
436
+ const endTime = clock.unsafeCurrentTimeNanos();
437
+ const duration = Duration_dist_effectDuration.nanos(endTime - startTime);
438
+ metric.unsafeUpdate(f(duration), HashSet_dist_effectHashSet.empty());
439
+ return a;
440
+ });
441
+ }));
442
+
443
+ /* @internal */
444
+ const trackError = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, metric) => trackErrorWith(self, metric, a => a));
445
+
446
+ /* @internal */
447
+ const trackErrorWith = /*#__PURE__*/Function_dist_effectFunction.dual(3, (self, metric, f) => {
448
+ const updater = error => update(metric, f(error));
449
+ return coreEffect.tapError(self, updater);
450
+ });
451
+
452
+ /* @internal */
453
+ const trackSuccess = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, metric) => trackSuccessWith(self, metric, a => a));
454
+
455
+ /* @internal */
456
+ const trackSuccessWith = /*#__PURE__*/Function_dist_effectFunction.dual(3, (self, metric, f) => {
457
+ const updater = value => update(metric, f(value));
458
+ return core.tap(self, updater);
459
+ });
460
+
461
+ /* @internal */
462
+ const update = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, input) => core.fiberRefGetWith(core.currentMetricLabels, tags => core.sync(() => self.unsafeUpdate(input, tags))));
463
+
464
+ /* @internal */
465
+ const value = self => core.fiberRefGetWith(core.currentMetricLabels, tags => core.sync(() => self.unsafeValue(tags)));
466
+
467
+ /** @internal */
468
+ const withNow = self => mapInput(self, input => [input, Date.now()]);
469
+
470
+ /** @internal */
471
+ const zip = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => make([self.keyType, that.keyType], (input, extraTags) => {
472
+ const [l, r] = input;
473
+ self.unsafeUpdate(l, extraTags);
474
+ that.unsafeUpdate(r, extraTags);
475
+ }, extraTags => [self.unsafeValue(extraTags), that.unsafeValue(extraTags)]));
476
+
477
+ /** @internal */
478
+ const unsafeSnapshot = () => globalMetricRegistry.snapshot();
479
+
480
+ /** @internal */
481
+ const snapshot = /*#__PURE__*/core.sync(unsafeSnapshot);
482
+
483
+ /** @internal */
484
+ const RequestSymbolKey = "effect/Request";
485
+
486
+ /** @internal */
487
+ const RequestTypeId = /*#__PURE__*/Symbol.for(RequestSymbolKey);
488
+
489
+ /** @internal */
490
+ const requestVariance = {
491
+ _E: _ => _,
492
+ _A: _ => _
493
+ };
494
+
495
+ /** @internal */
496
+ const isRequest = u => typeof u === "object" && u != null && RequestTypeId in u;
497
+
498
+ /** @internal */
499
+ const of = () => args =>
500
+ // @ts-expect-error
501
+ Data_dist_effectData.struct({
502
+ [RequestTypeId]: requestVariance,
503
+ ...args
504
+ });
505
+
506
+ /** @internal */
507
+ const tagged = tag => args =>
508
+ // @ts-expect-error
509
+ Data_dist_effectData.struct({
510
+ [RequestTypeId]: requestVariance,
511
+ _tag: tag,
512
+ ...args
513
+ });
514
+
515
+ /** @internal */
516
+ const complete = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, result) => core.fiberRefGetWith(currentRequestMap, map => core.sync(() => {
517
+ if (map.has(self)) {
518
+ const entry = map.get(self);
519
+ if (!entry.state.completed) {
520
+ entry.state.completed = true;
521
+ core.deferredUnsafeDone(entry.result, result);
522
+ }
523
+ }
524
+ })));
525
+
526
+ /** @internal */
527
+ const completeEffect = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, effect) => core.matchEffect(effect, {
528
+ onFailure: error => complete(self, core.exitFail(error)),
529
+ onSuccess: value => complete(self, core.exitSucceed(value))
530
+ }));
531
+
532
+ /** @internal */
533
+ const fail = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, error) => complete(self, core.exitFail(error)));
534
+
535
+ /** @internal */
536
+ const succeed = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, value) => complete(self, core.exitSucceed(value)));
537
+
538
+ /** @internal */
539
+ class Listeners {
540
+ count = 0;
541
+ observers = new Set();
542
+ addObserver(f) {
543
+ this.observers.add(f);
544
+ }
545
+ removeObserver(f) {
546
+ this.observers.delete(f);
547
+ }
548
+ increment() {
549
+ this.count++;
550
+ this.observers.forEach(f => f(this.count));
551
+ }
552
+ decrement() {
553
+ this.count--;
554
+ this.observers.forEach(f => f(this.count));
555
+ }
556
+ }
557
+
558
+ /** @internal */
559
+ const SupervisorSymbolKey = "effect/Supervisor";
560
+
561
+ /** @internal */
562
+ const SupervisorTypeId = /*#__PURE__*/Symbol.for(SupervisorSymbolKey);
563
+
564
+ /** @internal */
565
+ const supervisorVariance = {
566
+ _T: _ => _
567
+ };
568
+
569
+ /** @internal */
570
+ class ProxySupervisor {
571
+ [SupervisorTypeId] = supervisorVariance;
572
+ constructor(underlying, value0) {
573
+ this.underlying = underlying;
574
+ this.value0 = value0;
575
+ }
576
+ value() {
577
+ return this.value0();
578
+ }
579
+ onStart(context, effect, parent, fiber) {
580
+ this.underlying.onStart(context, effect, parent, fiber);
581
+ }
582
+ onEnd(value, fiber) {
583
+ this.underlying.onEnd(value, fiber);
584
+ }
585
+ onEffect(fiber, effect) {
586
+ this.underlying.onEffect(fiber, effect);
587
+ }
588
+ onSuspend(fiber) {
589
+ this.underlying.onSuspend(fiber);
590
+ }
591
+ onResume(fiber) {
592
+ this.underlying.onResume(fiber);
593
+ }
594
+ map(f) {
595
+ return new ProxySupervisor(this, () => Function_dist_effectFunction.pipe(this.value(), core.map(f)));
596
+ }
597
+ zip(right) {
598
+ return new Zip(this, right);
599
+ }
600
+ }
601
+
602
+ /** @internal */
603
+ class Zip {
604
+ [SupervisorTypeId] = supervisorVariance;
605
+ constructor(left, right) {
606
+ this.left = left;
607
+ this.right = right;
608
+ }
609
+ value() {
610
+ return core.zip(this.left.value(), this.right.value());
611
+ }
612
+ onStart(context, effect, parent, fiber) {
613
+ this.left.onStart(context, effect, parent, fiber);
614
+ this.right.onStart(context, effect, parent, fiber);
615
+ }
616
+ onEnd(value, fiber) {
617
+ this.left.onEnd(value, fiber);
618
+ this.right.onEnd(value, fiber);
619
+ }
620
+ onEffect(fiber, effect) {
621
+ this.left.onEffect(fiber, effect);
622
+ this.right.onEffect(fiber, effect);
623
+ }
624
+ onSuspend(fiber) {
625
+ this.left.onSuspend(fiber);
626
+ this.right.onSuspend(fiber);
627
+ }
628
+ onResume(fiber) {
629
+ this.left.onResume(fiber);
630
+ this.right.onResume(fiber);
631
+ }
632
+ map(f) {
633
+ return new ProxySupervisor(this, () => Function_dist_effectFunction.pipe(this.value(), core.map(f)));
634
+ }
635
+ zip(right) {
636
+ return new Zip(this, right);
637
+ }
638
+ }
639
+ class Track {
640
+ [SupervisorTypeId] = supervisorVariance;
641
+ fibers = new Set();
642
+ value() {
643
+ return core.sync(() => Array.from(this.fibers));
644
+ }
645
+ onStart(_context, _effect, _parent, fiber) {
646
+ this.fibers.add(fiber);
647
+ }
648
+ onEnd(_value, fiber) {
649
+ this.fibers.delete(fiber);
650
+ }
651
+ onEffect(_fiber, _effect) {
652
+ //
653
+ }
654
+ onSuspend(_fiber) {
655
+ //
656
+ }
657
+ onResume(_fiber) {
658
+ //
659
+ }
660
+ map(f) {
661
+ return new ProxySupervisor(this, () => Function_dist_effectFunction.pipe(this.value(), core.map(f)));
662
+ }
663
+ zip(right) {
664
+ return new Zip(this, right);
665
+ }
666
+ onRun(execution, _fiber) {
667
+ return execution();
668
+ }
669
+ }
670
+ class Const {
671
+ [SupervisorTypeId] = supervisorVariance;
672
+ constructor(effect) {
673
+ this.effect = effect;
674
+ }
675
+ value() {
676
+ return this.effect;
677
+ }
678
+ onStart(_context, _effect, _parent, _fiber) {
679
+ //
680
+ }
681
+ onEnd(_value, _fiber) {
682
+ //
683
+ }
684
+ onEffect(_fiber, _effect) {
685
+ //
686
+ }
687
+ onSuspend(_fiber) {
688
+ //
689
+ }
690
+ onResume(_fiber) {
691
+ //
692
+ }
693
+ map(f) {
694
+ return new ProxySupervisor(this, () => Function_dist_effectFunction.pipe(this.value(), core.map(f)));
695
+ }
696
+ zip(right) {
697
+ return new Zip(this, right);
698
+ }
699
+ onRun(execution, _fiber) {
700
+ return execution();
701
+ }
702
+ }
703
+ class FibersIn {
704
+ [SupervisorTypeId] = supervisorVariance;
705
+ constructor(ref) {
706
+ this.ref = ref;
707
+ }
708
+ value() {
709
+ return core.sync(() => MutableRef_dist_effectMutableRef.get(this.ref));
710
+ }
711
+ onStart(_context, _effect, _parent, fiber) {
712
+ Function_dist_effectFunction.pipe(this.ref, MutableRef_dist_effectMutableRef.set(Function_dist_effectFunction.pipe(MutableRef_dist_effectMutableRef.get(this.ref), SortedSet_dist_effectSortedSet.add(fiber))));
713
+ }
714
+ onEnd(_value, fiber) {
715
+ Function_dist_effectFunction.pipe(this.ref, MutableRef_dist_effectMutableRef.set(Function_dist_effectFunction.pipe(MutableRef_dist_effectMutableRef.get(this.ref), SortedSet_dist_effectSortedSet.remove(fiber))));
716
+ }
717
+ onEffect(_fiber, _effect) {
718
+ //
719
+ }
720
+ onSuspend(_fiber) {
721
+ //
722
+ }
723
+ onResume(_fiber) {
724
+ //
725
+ }
726
+ map(f) {
727
+ return new ProxySupervisor(this, () => Function_dist_effectFunction.pipe(this.value(), core.map(f)));
728
+ }
729
+ zip(right) {
730
+ return new Zip(this, right);
731
+ }
732
+ onRun(execution, _fiber) {
733
+ return execution();
734
+ }
735
+ }
736
+
737
+ /** @internal */
738
+ const unsafeTrack = () => {
739
+ return new Track();
740
+ };
741
+
742
+ /** @internal */
743
+ const track = /*#__PURE__*/core.sync(unsafeTrack);
744
+
745
+ /** @internal */
746
+ const fromEffect = effect => {
747
+ return new Const(effect);
748
+ };
749
+
750
+ /** @internal */
751
+ const none = /*#__PURE__*/fromEffect(core.unit);
752
+
753
+ /** @internal */
754
+ const fibersIn = ref => core.sync(() => new FibersIn(ref));
755
+
756
+ /** @internal */
757
+
758
+ /** @internal */
759
+ const OP_EMPTY = "Empty";
760
+
761
+ /** @internal */
762
+
763
+ /** @internal */
764
+ const OP_ADD_SUPERVISOR = "AddSupervisor";
765
+
766
+ /** @internal */
767
+
768
+ /** @internal */
769
+ const OP_REMOVE_SUPERVISOR = "RemoveSupervisor";
770
+
771
+ /** @internal */
772
+
773
+ /** @internal */
774
+ const OP_AND_THEN = "AndThen";
775
+
776
+ /** @internal */
777
+
778
+ /** @internal */
779
+
780
+ /** @internal */
781
+
782
+ /** @internal */
783
+
784
+ /** @internal */
785
+
786
+ /**
787
+ * The empty `SupervisorPatch`.
788
+ *
789
+ * @internal
790
+ */
791
+ const empty = {
792
+ _tag: OP_EMPTY
793
+ };
794
+
795
+ /**
796
+ * Combines two patches to produce a new patch that describes applying the
797
+ * updates from this patch and then the updates from the specified patch.
798
+ *
799
+ * @internal
800
+ */
801
+ const combine = (self, that) => {
802
+ return {
803
+ _tag: OP_AND_THEN,
804
+ first: self,
805
+ second: that
806
+ };
807
+ };
808
+
809
+ /**
810
+ * Applies a `SupervisorPatch` to a `Supervisor` to produce a new `Supervisor`.
811
+ *
812
+ * @internal
813
+ */
814
+ const patch = (self, supervisor) => {
815
+ return patchLoop(supervisor, Chunk_dist_effectChunk.of(self));
816
+ };
817
+
818
+ /** @internal */
819
+ const patchLoop = (_supervisor, _patches) => {
820
+ let supervisor = _supervisor;
821
+ let patches = _patches;
822
+ while (Chunk_dist_effectChunk.isNonEmpty(patches)) {
823
+ const head = Chunk_dist_effectChunk.headNonEmpty(patches);
824
+ switch (head._tag) {
825
+ case OP_EMPTY:
826
+ {
827
+ patches = Chunk_dist_effectChunk.tailNonEmpty(patches);
828
+ break;
829
+ }
830
+ case OP_ADD_SUPERVISOR:
831
+ {
832
+ supervisor = supervisor.zip(head.supervisor);
833
+ patches = Chunk_dist_effectChunk.tailNonEmpty(patches);
834
+ break;
835
+ }
836
+ case OP_REMOVE_SUPERVISOR:
837
+ {
838
+ supervisor = removeSupervisor(supervisor, head.supervisor);
839
+ patches = Chunk_dist_effectChunk.tailNonEmpty(patches);
840
+ break;
841
+ }
842
+ case OP_AND_THEN:
843
+ {
844
+ patches = Chunk_dist_effectChunk.prepend(head.first)(Chunk_dist_effectChunk.prepend(head.second)(Chunk_dist_effectChunk.tailNonEmpty(patches)));
845
+ break;
846
+ }
847
+ }
848
+ }
849
+ return supervisor;
850
+ };
851
+
852
+ /** @internal */
853
+ const removeSupervisor = (self, that) => {
854
+ if (Equal_dist_effectEqual.equals(self, that)) {
855
+ return none;
856
+ } else {
857
+ if (self instanceof Zip) {
858
+ return removeSupervisor(self.left, that).zip(removeSupervisor(self.right, that));
859
+ } else {
860
+ return self;
861
+ }
862
+ }
863
+ };
864
+
865
+ /** @internal */
866
+ const toSet = self => {
867
+ if (Equal_dist_effectEqual.equals(self, none)) {
868
+ return HashSet_dist_effectHashSet.empty();
869
+ } else {
870
+ if (self instanceof Zip) {
871
+ return Function_dist_effectFunction.pipe(toSet(self.left), HashSet_dist_effectHashSet.union(toSet(self.right)));
872
+ } else {
873
+ return HashSet_dist_effectHashSet.make(self);
874
+ }
875
+ }
876
+ };
877
+
878
+ /** @internal */
879
+ const diff = (oldValue, newValue) => {
880
+ if (Equal_dist_effectEqual.equals(oldValue, newValue)) {
881
+ return empty;
882
+ }
883
+ const oldSupervisors = toSet(oldValue);
884
+ const newSupervisors = toSet(newValue);
885
+ const added = Function_dist_effectFunction.pipe(newSupervisors, HashSet_dist_effectHashSet.difference(oldSupervisors), HashSet_dist_effectHashSet.reduce(empty, (patch, supervisor) => combine(patch, {
886
+ _tag: OP_ADD_SUPERVISOR,
887
+ supervisor
888
+ })));
889
+ const removed = Function_dist_effectFunction.pipe(oldSupervisors, HashSet_dist_effectHashSet.difference(newSupervisors), HashSet_dist_effectHashSet.reduce(empty, (patch, supervisor) => combine(patch, {
890
+ _tag: OP_REMOVE_SUPERVISOR,
891
+ supervisor
892
+ })));
893
+ return combine(added, removed);
894
+ };
895
+
896
+ /** @internal */
897
+ const differ = /*#__PURE__*/Differ_dist_effectDiffer.make({
898
+ empty,
899
+ patch,
900
+ combine,
901
+ diff
902
+ });
903
+
904
+ /** @internal */
905
+ const fiberStarted = /*#__PURE__*/counter("effect_fiber_started");
906
+ /** @internal */
907
+ const fiberActive = /*#__PURE__*/counter("effect_fiber_active");
908
+ /** @internal */
909
+ const fiberSuccesses = /*#__PURE__*/counter("effect_fiber_successes");
910
+ /** @internal */
911
+ const fiberFailures = /*#__PURE__*/counter("effect_fiber_failures");
912
+ /** @internal */
913
+ const fiberLifetimes = /*#__PURE__*/tagged$1( /*#__PURE__*/histogram("effect_fiber_lifetimes", /*#__PURE__*/boundaries.exponential({
914
+ start: 1.0,
915
+ factor: 1.3,
916
+ count: 100
917
+ })), "time_unit", "milliseconds");
918
+
919
+ /** @internal */
920
+
921
+ /** @internal */
922
+ const EvaluationSignalContinue = "Continue";
923
+
924
+ /** @internal */
925
+
926
+ /** @internal */
927
+ const EvaluationSignalDone = "Done";
928
+
929
+ /** @internal */
930
+
931
+ /** @internal */
932
+ const EvaluationSignalYieldNow = "Yield";
933
+
934
+ /** @internal */
935
+
936
+ /** @internal */
937
+ const runtimeFiberVariance = {
938
+ _E: _ => _,
939
+ _A: _ => _
940
+ };
941
+ const absurd = _ => {
942
+ throw new Error(`BUG: FiberRuntime - ${JSON.stringify(_)} - please report an issue at https://github.com/Effect-TS/io/issues`);
943
+ };
944
+ const contOpSuccess = {
945
+ [Effectable.OP_ON_SUCCESS]: (_, cont, value) => {
946
+ return cont.i1(value);
947
+ },
948
+ ["OnStep"]: (_, cont, value) => {
949
+ return cont.i1(core.exitSucceed(value));
950
+ },
951
+ [Effectable.OP_ON_SUCCESS_AND_FAILURE]: (_, cont, value) => {
952
+ return cont.i2(value);
953
+ },
954
+ [Effectable.OP_REVERT_FLAGS]: (self, cont, value) => {
955
+ self.patchRuntimeFlags(self._runtimeFlags, cont.patch);
956
+ if (RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.interruptible(self._runtimeFlags) && self.isInterrupted()) {
957
+ return core.exitFailCause(self.getInterruptedCause());
958
+ } else {
959
+ return core.exitSucceed(value);
960
+ }
961
+ },
962
+ [Effectable.OP_WHILE]: (self, cont, value) => {
963
+ cont.i2(value);
964
+ if (cont.i0()) {
965
+ self.pushStack(cont);
966
+ return cont.i1();
967
+ } else {
968
+ return core.unit;
969
+ }
970
+ }
971
+ };
972
+ const drainQueueWhileRunningTable = {
973
+ [fiber.OP_INTERRUPT_SIGNAL]: (self, runtimeFlags, cur, message) => {
974
+ self.processNewInterruptSignal(message.cause);
975
+ return RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.interruptible(runtimeFlags) ? core.exitFailCause(message.cause) : cur;
976
+ },
977
+ [fiber.OP_RESUME]: (_self, _runtimeFlags, _cur, _message) => {
978
+ throw new Error("It is illegal to have multiple concurrent run loops in a single fiber");
979
+ },
980
+ [fiber.OP_STATEFUL]: (self, runtimeFlags, cur, message) => {
981
+ message.onFiber(self, FiberStatus_dist_effectFiberStatus.running(runtimeFlags));
982
+ return cur;
983
+ },
984
+ [fiber.OP_YIELD_NOW]: (_self, _runtimeFlags, cur, _message) => {
985
+ return core.flatMap(core.yieldNow(), () => cur);
986
+ }
987
+ };
988
+
989
+ /**
990
+ * Executes all requests, submitting requests to each data source in parallel.
991
+ */
992
+ const runBlockedRequests = self => core.forEachSequentialDiscard(core.flatten$1(self), requestsByRequestResolver => forEachParUnboundedDiscard(core.sequentialCollectionToChunk(requestsByRequestResolver), ([dataSource, sequential]) => {
993
+ const map = new Map();
994
+ for (const block of sequential) {
995
+ for (const entry of block) {
996
+ map.set(entry.request, entry);
997
+ }
998
+ }
999
+ return core.fiberRefLocally(invokeWithInterrupt(dataSource.runAll(sequential), sequential.flat()), currentRequestMap, map);
1000
+ }, false));
1001
+
1002
+ /** @internal */
1003
+ class FiberRuntime {
1004
+ [fiber.FiberTypeId] = fiber.fiberVariance;
1005
+ [fiber.RuntimeFiberTypeId] = runtimeFiberVariance;
1006
+ pipe() {
1007
+ return Pipeable_dist_effectPipeable.pipeArguments(this, arguments);
1008
+ }
1009
+ _queue = new Array();
1010
+ _children = null;
1011
+ _observers = new Array();
1012
+ _running = false;
1013
+ _stack = [];
1014
+ _asyncInterruptor = null;
1015
+ _asyncBlockingOn = null;
1016
+ _exitValue = null;
1017
+ _steps = [false];
1018
+ currentOpCount = 0;
1019
+ constructor(fiberId, fiberRefs0, runtimeFlags0) {
1020
+ this._runtimeFlags = runtimeFlags0;
1021
+ this._fiberId = fiberId;
1022
+ this._fiberRefs = fiberRefs0;
1023
+ this._supervisor = this.getFiberRef(currentSupervisor);
1024
+ this._scheduler = this.getFiberRef(Scheduler_dist_effectScheduler.currentScheduler);
1025
+ if (RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.runtimeMetrics(runtimeFlags0)) {
1026
+ const tags = this.getFiberRef(core.currentMetricLabels);
1027
+ fiberStarted.unsafeUpdate(1, tags);
1028
+ fiberActive.unsafeUpdate(1, tags);
1029
+ }
1030
+ this._tracer = Context_dist_effectContext.get(this.getFiberRef(defaultServices.currentServices), defaultServices.tracerTag);
1031
+ }
1032
+
1033
+ /**
1034
+ * The identity of the fiber.
1035
+ */
1036
+ id() {
1037
+ return this._fiberId;
1038
+ }
1039
+
1040
+ /**
1041
+ * Begins execution of the effect associated with this fiber on in the
1042
+ * background. This can be called to "kick off" execution of a fiber after
1043
+ * it has been created.
1044
+ */
1045
+ resume(effect) {
1046
+ this.tell(fiber.resume(effect));
1047
+ }
1048
+
1049
+ /**
1050
+ * The status of the fiber.
1051
+ */
1052
+ status() {
1053
+ return this.ask((_, status) => status);
1054
+ }
1055
+
1056
+ /**
1057
+ * Gets the fiber runtime flags.
1058
+ */
1059
+ runtimeFlags() {
1060
+ return this.ask((state, status) => {
1061
+ if (FiberStatus_dist_effectFiberStatus.isDone(status)) {
1062
+ return state._runtimeFlags;
1063
+ }
1064
+ return status.runtimeFlags;
1065
+ });
1066
+ }
1067
+
1068
+ /**
1069
+ * Returns the current `FiberScope` for the fiber.
1070
+ */
1071
+ scope() {
1072
+ return fiber.unsafeMake(this);
1073
+ }
1074
+
1075
+ /**
1076
+ * Retrieves the immediate children of the fiber.
1077
+ */
1078
+ children() {
1079
+ return this.ask(fiber => Array.from(fiber.getChildren()));
1080
+ }
1081
+
1082
+ /**
1083
+ * Gets the fiber's set of children.
1084
+ */
1085
+ getChildren() {
1086
+ if (this._children === null) {
1087
+ this._children = new Set();
1088
+ }
1089
+ return this._children;
1090
+ }
1091
+
1092
+ /**
1093
+ * Retrieves the interrupted cause of the fiber, which will be `Cause.empty`
1094
+ * if the fiber has not been interrupted.
1095
+ *
1096
+ * **NOTE**: This method is safe to invoke on any fiber, but if not invoked
1097
+ * on this fiber, then values derived from the fiber's state (including the
1098
+ * log annotations and log level) may not be up-to-date.
1099
+ */
1100
+ getInterruptedCause() {
1101
+ return this.getFiberRef(core.currentInterruptedCause);
1102
+ }
1103
+
1104
+ /**
1105
+ * Retrieves the whole set of fiber refs.
1106
+ */
1107
+ fiberRefs() {
1108
+ return this.ask(fiber => fiber.getFiberRefs());
1109
+ }
1110
+
1111
+ /**
1112
+ * Returns an effect that will contain information computed from the fiber
1113
+ * state and status while running on the fiber.
1114
+ *
1115
+ * This allows the outside world to interact safely with mutable fiber state
1116
+ * without locks or immutable data.
1117
+ */
1118
+ ask(f) {
1119
+ return core.suspend(() => {
1120
+ const deferred = core.deferredUnsafeMake(this._fiberId);
1121
+ this.tell(fiber.stateful((fiber, status) => {
1122
+ core.deferredUnsafeDone(deferred, core.sync(() => f(fiber, status)));
1123
+ }));
1124
+ return core.deferredAwait(deferred);
1125
+ });
1126
+ }
1127
+
1128
+ /**
1129
+ * Adds a message to be processed by the fiber on the fiber.
1130
+ */
1131
+ tell(message) {
1132
+ this._queue.push(message);
1133
+ if (!this._running) {
1134
+ this._running = true;
1135
+ this.drainQueueLaterOnExecutor();
1136
+ }
1137
+ }
1138
+ await() {
1139
+ return core.async(resume => {
1140
+ const cb = exit => resume(core.succeed(exit));
1141
+ this.tell(fiber.stateful((fiber, _) => {
1142
+ if (fiber._exitValue !== null) {
1143
+ cb(this._exitValue);
1144
+ } else {
1145
+ fiber.addObserver(cb);
1146
+ }
1147
+ }));
1148
+ return core.sync(() => this.tell(fiber.stateful((fiber, _) => {
1149
+ fiber.removeObserver(cb);
1150
+ })));
1151
+ }, this.id());
1152
+ }
1153
+ inheritAll() {
1154
+ return core.withFiberRuntime((parentFiber, parentStatus) => {
1155
+ const parentFiberId = parentFiber.id();
1156
+ const parentFiberRefs = parentFiber.getFiberRefs();
1157
+ const parentRuntimeFlags = parentStatus.runtimeFlags;
1158
+ const childFiberRefs = this.getFiberRefs();
1159
+ const updatedFiberRefs = fiberRefs.joinAs(parentFiberRefs, parentFiberId, childFiberRefs);
1160
+ parentFiber.setFiberRefs(updatedFiberRefs);
1161
+ const updatedRuntimeFlags = parentFiber.getFiberRef(currentRuntimeFlags);
1162
+ const patch = Function_dist_effectFunction.pipe(RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.diff(parentRuntimeFlags, updatedRuntimeFlags),
1163
+ // Do not inherit WindDown or Interruption!
1164
+ RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.exclude(RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.Interruption), RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.exclude(RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.WindDown));
1165
+ return core.updateRuntimeFlags(patch);
1166
+ });
1167
+ }
1168
+
1169
+ /**
1170
+ * Tentatively observes the fiber, but returns immediately if it is not
1171
+ * already done.
1172
+ */
1173
+ poll() {
1174
+ return core.sync(() => Option_dist_effectOption.fromNullable(this._exitValue));
1175
+ }
1176
+
1177
+ /**
1178
+ * Unsafely observes the fiber, but returns immediately if it is not
1179
+ * already done.
1180
+ */
1181
+ unsafePoll() {
1182
+ return this._exitValue;
1183
+ }
1184
+
1185
+ /**
1186
+ * In the background, interrupts the fiber as if interrupted from the specified fiber.
1187
+ */
1188
+ interruptAsFork(fiberId) {
1189
+ return core.sync(() => this.tell(fiber.interruptSignal(core.interrupt$1(fiberId))));
1190
+ }
1191
+
1192
+ /**
1193
+ * Adds an observer to the list of observers.
1194
+ *
1195
+ * **NOTE**: This method must be invoked by the fiber itself.
1196
+ */
1197
+ addObserver(observer) {
1198
+ if (this._exitValue !== null) {
1199
+ observer(this._exitValue);
1200
+ } else {
1201
+ this._observers.push(observer);
1202
+ }
1203
+ }
1204
+
1205
+ /**
1206
+ * Removes the specified observer from the list of observers that will be
1207
+ * notified when the fiber exits.
1208
+ *
1209
+ * **NOTE**: This method must be invoked by the fiber itself.
1210
+ */
1211
+ removeObserver(observer) {
1212
+ this._observers = this._observers.filter(o => o !== observer);
1213
+ }
1214
+ /**
1215
+ * Retrieves all fiber refs of the fiber.
1216
+ *
1217
+ * **NOTE**: This method is safe to invoke on any fiber, but if not invoked
1218
+ * on this fiber, then values derived from the fiber's state (including the
1219
+ * log annotations and log level) may not be up-to-date.
1220
+ */
1221
+ getFiberRefs() {
1222
+ this.setFiberRef(currentRuntimeFlags, this._runtimeFlags);
1223
+ return this._fiberRefs;
1224
+ }
1225
+
1226
+ /**
1227
+ * Deletes the specified fiber ref.
1228
+ *
1229
+ * **NOTE**: This method must be invoked by the fiber itself.
1230
+ */
1231
+ unsafeDeleteFiberRef(fiberRef) {
1232
+ this._fiberRefs = fiberRefs.delete_(this._fiberRefs, fiberRef);
1233
+ }
1234
+
1235
+ /**
1236
+ * Retrieves the state of the fiber ref, or else its initial value.
1237
+ *
1238
+ * **NOTE**: This method is safe to invoke on any fiber, but if not invoked
1239
+ * on this fiber, then values derived from the fiber's state (including the
1240
+ * log annotations and log level) may not be up-to-date.
1241
+ */
1242
+ getFiberRef(fiberRef) {
1243
+ if (this._fiberRefs.locals.has(fiberRef)) {
1244
+ return this._fiberRefs.locals.get(fiberRef)[0][1];
1245
+ }
1246
+ return fiberRef.initial;
1247
+ }
1248
+
1249
+ /**
1250
+ * Sets the fiber ref to the specified value.
1251
+ *
1252
+ * **NOTE**: This method must be invoked by the fiber itself.
1253
+ */
1254
+ setFiberRef(fiberRef, value) {
1255
+ this._fiberRefs = fiberRefs.updatedAs(this._fiberRefs, {
1256
+ fiberId: this._fiberId,
1257
+ fiberRef,
1258
+ value
1259
+ });
1260
+ this.refreshRefCache();
1261
+ }
1262
+ refreshRefCache() {
1263
+ this._tracer = Context_dist_effectContext.get(this.getFiberRef(defaultServices.currentServices), defaultServices.tracerTag);
1264
+ this._supervisor = this.getFiberRef(currentSupervisor);
1265
+ this._scheduler = this.getFiberRef(Scheduler_dist_effectScheduler.currentScheduler);
1266
+ }
1267
+
1268
+ /**
1269
+ * Wholesale replaces all fiber refs of this fiber.
1270
+ *
1271
+ * **NOTE**: This method must be invoked by the fiber itself.
1272
+ */
1273
+ setFiberRefs(fiberRefs) {
1274
+ this._fiberRefs = fiberRefs;
1275
+ this.refreshRefCache();
1276
+ }
1277
+
1278
+ /**
1279
+ * Adds a reference to the specified fiber inside the children set.
1280
+ *
1281
+ * **NOTE**: This method must be invoked by the fiber itself.
1282
+ */
1283
+ addChild(child) {
1284
+ this.getChildren().add(child);
1285
+ }
1286
+
1287
+ /**
1288
+ * Removes a reference to the specified fiber inside the children set.
1289
+ *
1290
+ * **NOTE**: This method must be invoked by the fiber itself.
1291
+ */
1292
+ removeChild(child) {
1293
+ this.getChildren().delete(child);
1294
+ }
1295
+
1296
+ /**
1297
+ * On the current thread, executes all messages in the fiber's inbox. This
1298
+ * method may return before all work is done, in the event the fiber executes
1299
+ * an asynchronous operation.
1300
+ *
1301
+ * **NOTE**: This method must be invoked by the fiber itself.
1302
+ */
1303
+ drainQueueOnCurrentThread() {
1304
+ let recurse = true;
1305
+ while (recurse) {
1306
+ let evaluationSignal = EvaluationSignalContinue;
1307
+ const prev = globalThis[fiber.currentFiberURI];
1308
+ globalThis[fiber.currentFiberURI] = this;
1309
+ try {
1310
+ while (evaluationSignal === EvaluationSignalContinue) {
1311
+ evaluationSignal = this._queue.length === 0 ? EvaluationSignalDone : this.evaluateMessageWhileSuspended(this._queue.splice(0, 1)[0]);
1312
+ }
1313
+ } finally {
1314
+ this._running = false;
1315
+ globalThis[fiber.currentFiberURI] = prev;
1316
+ }
1317
+ // Maybe someone added something to the queue between us checking, and us
1318
+ // giving up the drain. If so, we need to restart the draining, but only
1319
+ // if we beat everyone else to the restart:
1320
+ if (this._queue.length > 0 && !this._running) {
1321
+ this._running = true;
1322
+ if (evaluationSignal === EvaluationSignalYieldNow) {
1323
+ this.drainQueueLaterOnExecutor();
1324
+ recurse = false;
1325
+ } else {
1326
+ recurse = true;
1327
+ }
1328
+ } else {
1329
+ recurse = false;
1330
+ }
1331
+ }
1332
+ }
1333
+
1334
+ /**
1335
+ * Schedules the execution of all messages in the fiber's inbox.
1336
+ *
1337
+ * This method will return immediately after the scheduling
1338
+ * operation is completed, but potentially before such messages have been
1339
+ * executed.
1340
+ *
1341
+ * **NOTE**: This method must be invoked by the fiber itself.
1342
+ */
1343
+ drainQueueLaterOnExecutor() {
1344
+ this._scheduler.scheduleTask(this.run, this.getFiberRef(core.currentSchedulingPriority));
1345
+ }
1346
+
1347
+ /**
1348
+ * Drains the fiber's message queue while the fiber is actively running,
1349
+ * returning the next effect to execute, which may be the input effect if no
1350
+ * additional effect needs to be executed.
1351
+ *
1352
+ * **NOTE**: This method must be invoked by the fiber itself.
1353
+ */
1354
+ drainQueueWhileRunning(runtimeFlags, cur0) {
1355
+ let cur = cur0;
1356
+ while (this._queue.length > 0) {
1357
+ const message = this._queue.splice(0, 1)[0];
1358
+ // @ts-expect-error
1359
+ cur = drainQueueWhileRunningTable[message._tag](this, runtimeFlags, cur, message);
1360
+ }
1361
+ return cur;
1362
+ }
1363
+
1364
+ /**
1365
+ * Determines if the fiber is interrupted.
1366
+ *
1367
+ * **NOTE**: This method is safe to invoke on any fiber, but if not invoked
1368
+ * on this fiber, then values derived from the fiber's state (including the
1369
+ * log annotations and log level) may not be up-to-date.
1370
+ */
1371
+ isInterrupted() {
1372
+ return !core.isEmpty(this.getFiberRef(core.currentInterruptedCause));
1373
+ }
1374
+
1375
+ /**
1376
+ * Adds an interruptor to the set of interruptors that are interrupting this
1377
+ * fiber.
1378
+ *
1379
+ * **NOTE**: This method must be invoked by the fiber itself.
1380
+ */
1381
+ addInterruptedCause(cause) {
1382
+ const oldSC = this.getFiberRef(core.currentInterruptedCause);
1383
+ this.setFiberRef(core.currentInterruptedCause, core.sequential(oldSC, cause));
1384
+ }
1385
+
1386
+ /**
1387
+ * Processes a new incoming interrupt signal.
1388
+ *
1389
+ * **NOTE**: This method must be invoked by the fiber itself.
1390
+ */
1391
+ processNewInterruptSignal(cause) {
1392
+ this.addInterruptedCause(cause);
1393
+ this.sendInterruptSignalToAllChildren();
1394
+ }
1395
+
1396
+ /**
1397
+ * Interrupts all children of the current fiber, returning an effect that will
1398
+ * await the exit of the children. This method will return null if the fiber
1399
+ * has no children.
1400
+ *
1401
+ * **NOTE**: This method must be invoked by the fiber itself.
1402
+ */
1403
+ sendInterruptSignalToAllChildren() {
1404
+ if (this._children === null || this._children.size === 0) {
1405
+ return false;
1406
+ }
1407
+ let told = false;
1408
+ for (const child of this._children) {
1409
+ child.tell(fiber.interruptSignal(core.interrupt$1(this.id())));
1410
+ told = true;
1411
+ }
1412
+ return told;
1413
+ }
1414
+
1415
+ /**
1416
+ * Interrupts all children of the current fiber, returning an effect that will
1417
+ * await the exit of the children. This method will return null if the fiber
1418
+ * has no children.
1419
+ *
1420
+ * **NOTE**: This method must be invoked by the fiber itself.
1421
+ */
1422
+ interruptAllChildren() {
1423
+ if (this.sendInterruptSignalToAllChildren()) {
1424
+ const it = this._children.values();
1425
+ this._children = null;
1426
+ let isDone = false;
1427
+ const body = () => {
1428
+ const next = it.next();
1429
+ if (!next.done) {
1430
+ return core.asUnit(next.value.await());
1431
+ } else {
1432
+ return core.sync(() => {
1433
+ isDone = true;
1434
+ });
1435
+ }
1436
+ };
1437
+ return core.whileLoop({
1438
+ while: () => !isDone,
1439
+ body,
1440
+ step: () => {
1441
+ //
1442
+ }
1443
+ });
1444
+ }
1445
+ return null;
1446
+ }
1447
+ reportExitValue(exit) {
1448
+ if (RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.runtimeMetrics(this._runtimeFlags)) {
1449
+ const tags = this.getFiberRef(core.currentMetricLabels);
1450
+ fiberActive.unsafeUpdate(-1, tags);
1451
+ switch (exit._tag) {
1452
+ case Effectable.OP_SUCCESS:
1453
+ {
1454
+ fiberSuccesses.unsafeUpdate(1, tags);
1455
+ break;
1456
+ }
1457
+ case Effectable.OP_FAILURE:
1458
+ {
1459
+ fiberFailures.unsafeUpdate(1, tags);
1460
+ break;
1461
+ }
1462
+ }
1463
+ }
1464
+ if (exit._tag === "Failure") {
1465
+ const level = this.getFiberRef(core.currentUnhandledErrorLogLevel);
1466
+ if (!core.isInterruptedOnly(exit.cause) && level._tag === "Some") {
1467
+ this.log("Fiber terminated with a non handled error", exit.cause, level);
1468
+ }
1469
+ }
1470
+ }
1471
+ setExitValue(exit) {
1472
+ this._exitValue = exit;
1473
+ if (RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.runtimeMetrics(this._runtimeFlags)) {
1474
+ const tags = this.getFiberRef(core.currentMetricLabels);
1475
+ const startTimeMillis = this.id().startTimeMillis;
1476
+ const endTimeMillis = new Date().getTime();
1477
+ fiberLifetimes.unsafeUpdate(endTimeMillis - startTimeMillis, tags);
1478
+ }
1479
+ this.reportExitValue(exit);
1480
+ for (let i = this._observers.length - 1; i >= 0; i--) {
1481
+ this._observers[i](exit);
1482
+ }
1483
+ }
1484
+ getLoggers() {
1485
+ return this.getFiberRef(currentLoggers);
1486
+ }
1487
+ log(message, cause, overrideLogLevel) {
1488
+ const logLevel = Option_dist_effectOption.isSome(overrideLogLevel) ? overrideLogLevel.value : this.getFiberRef(core.currentLogLevel);
1489
+ const minimumLogLevel = this.getFiberRef(currentMinimumLogLevel);
1490
+ if (LogLevel_dist_effectLogLevel.greaterThan(minimumLogLevel, logLevel)) {
1491
+ return;
1492
+ }
1493
+ const spans = this.getFiberRef(core.currentLogSpan);
1494
+ const annotations = this.getFiberRef(core.currentLogAnnotations);
1495
+ const loggers = this.getLoggers();
1496
+ const contextMap = this.getFiberRefs();
1497
+ if (HashSet_dist_effectHashSet.size(loggers) > 0) {
1498
+ const clockService = Context_dist_effectContext.get(this.getFiberRef(defaultServices.currentServices), defaultServices.clockTag);
1499
+ const date = new Date(clockService.unsafeCurrentTimeMillis());
1500
+ for (const logger of loggers) {
1501
+ logger.log({
1502
+ fiberId: this.id(),
1503
+ logLevel,
1504
+ message,
1505
+ cause,
1506
+ context: contextMap,
1507
+ spans,
1508
+ annotations,
1509
+ date
1510
+ });
1511
+ }
1512
+ }
1513
+ }
1514
+
1515
+ /**
1516
+ * Evaluates a single message on the current thread, while the fiber is
1517
+ * suspended. This method should only be called while evaluation of the
1518
+ * fiber's effect is suspended due to an asynchronous operation.
1519
+ *
1520
+ * **NOTE**: This method must be invoked by the fiber itself.
1521
+ */
1522
+ evaluateMessageWhileSuspended(message) {
1523
+ switch (message._tag) {
1524
+ case fiber.OP_YIELD_NOW:
1525
+ {
1526
+ return EvaluationSignalYieldNow;
1527
+ }
1528
+ case fiber.OP_INTERRUPT_SIGNAL:
1529
+ {
1530
+ this.processNewInterruptSignal(message.cause);
1531
+ if (this._asyncInterruptor !== null) {
1532
+ this._asyncInterruptor(core.exitFailCause(message.cause));
1533
+ this._asyncInterruptor = null;
1534
+ }
1535
+ return EvaluationSignalContinue;
1536
+ }
1537
+ case fiber.OP_RESUME:
1538
+ {
1539
+ this._asyncInterruptor = null;
1540
+ this._asyncBlockingOn = null;
1541
+ this.evaluateEffect(message.effect);
1542
+ return EvaluationSignalContinue;
1543
+ }
1544
+ case fiber.OP_STATEFUL:
1545
+ {
1546
+ message.onFiber(this, this._exitValue !== null ? FiberStatus_dist_effectFiberStatus.done : FiberStatus_dist_effectFiberStatus.suspended(this._runtimeFlags, this._asyncBlockingOn));
1547
+ return EvaluationSignalContinue;
1548
+ }
1549
+ default:
1550
+ {
1551
+ return absurd(message);
1552
+ }
1553
+ }
1554
+ }
1555
+
1556
+ /**
1557
+ * Evaluates an effect until completion, potentially asynchronously.
1558
+ *
1559
+ * **NOTE**: This method must be invoked by the fiber itself.
1560
+ */
1561
+ evaluateEffect(effect0) {
1562
+ this._supervisor.onResume(this);
1563
+ try {
1564
+ let effect = RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.interruptible(this._runtimeFlags) && this.isInterrupted() ? core.exitFailCause(this.getInterruptedCause()) : effect0;
1565
+ while (effect !== null) {
1566
+ try {
1567
+ const eff = effect;
1568
+ const exit = this.runLoop(eff);
1569
+ this._runtimeFlags = Function_dist_effectFunction.pipe(this._runtimeFlags, RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.enable$1(RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.WindDown));
1570
+ const interruption = this.interruptAllChildren();
1571
+ if (interruption !== null) {
1572
+ effect = core.flatMap(interruption, () => exit);
1573
+ } else {
1574
+ if (this._queue.length === 0) {
1575
+ // No more messages to process, so we will allow the fiber to end life:
1576
+ this.setExitValue(exit);
1577
+ } else {
1578
+ // There are messages, possibly added by the final op executed by
1579
+ // the fiber. To be safe, we should execute those now before we
1580
+ // allow the fiber to end life:
1581
+ this.tell(fiber.resume(exit));
1582
+ }
1583
+ effect = null;
1584
+ }
1585
+ } catch (e) {
1586
+ if (core.isEffect(e)) {
1587
+ if (e._op === Effectable.OP_YIELD) {
1588
+ if (RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.cooperativeYielding(this._runtimeFlags)) {
1589
+ this.tell(fiber.yieldNow());
1590
+ this.tell(fiber.resume(core.exitUnit));
1591
+ effect = null;
1592
+ } else {
1593
+ effect = core.exitUnit;
1594
+ }
1595
+ } else if (e._op === Effectable.OP_ASYNC) {
1596
+ // Terminate this evaluation, async resumption will continue evaluation:
1597
+ effect = null;
1598
+ }
1599
+ } else {
1600
+ throw e;
1601
+ }
1602
+ }
1603
+ }
1604
+ } finally {
1605
+ this._supervisor.onSuspend(this);
1606
+ }
1607
+ }
1608
+
1609
+ /**
1610
+ * Begins execution of the effect associated with this fiber on the current
1611
+ * thread. This can be called to "kick off" execution of a fiber after it has
1612
+ * been created, in hopes that the effect can be executed synchronously.
1613
+ *
1614
+ * This is not the normal way of starting a fiber, but it is useful when the
1615
+ * express goal of executing the fiber is to synchronously produce its exit.
1616
+ */
1617
+ start(effect) {
1618
+ if (!this._running) {
1619
+ this._running = true;
1620
+ const prev = globalThis[fiber.currentFiberURI];
1621
+ globalThis[fiber.currentFiberURI] = this;
1622
+ try {
1623
+ this.evaluateEffect(effect);
1624
+ } finally {
1625
+ this._running = false;
1626
+ globalThis[fiber.currentFiberURI] = prev;
1627
+ // Because we're special casing `start`, we have to be responsible
1628
+ // for spinning up the fiber if there were new messages added to
1629
+ // the queue between the completion of the effect and the transition
1630
+ // to the not running state.
1631
+ if (this._queue.length > 0) {
1632
+ this.drainQueueLaterOnExecutor();
1633
+ }
1634
+ }
1635
+ } else {
1636
+ this.tell(fiber.resume(effect));
1637
+ }
1638
+ }
1639
+
1640
+ /**
1641
+ * Begins execution of the effect associated with this fiber on in the
1642
+ * background, and on the correct thread pool. This can be called to "kick
1643
+ * off" execution of a fiber after it has been created, in hopes that the
1644
+ * effect can be executed synchronously.
1645
+ */
1646
+ startFork(effect) {
1647
+ this.tell(fiber.resume(effect));
1648
+ }
1649
+
1650
+ /**
1651
+ * Takes the current runtime flags, patches them to return the new runtime
1652
+ * flags, and then makes any changes necessary to fiber state based on the
1653
+ * specified patch.
1654
+ *
1655
+ * **NOTE**: This method must be invoked by the fiber itself.
1656
+ */
1657
+ patchRuntimeFlags(oldRuntimeFlags, patch) {
1658
+ const newRuntimeFlags = RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.patch(oldRuntimeFlags, patch);
1659
+ globalThis[fiber.currentFiberURI] = this;
1660
+ this._runtimeFlags = newRuntimeFlags;
1661
+ return newRuntimeFlags;
1662
+ }
1663
+
1664
+ /**
1665
+ * Initiates an asynchronous operation, by building a callback that will
1666
+ * resume execution, and then feeding that callback to the registration
1667
+ * function, handling error cases and repeated resumptions appropriately.
1668
+ *
1669
+ * **NOTE**: This method must be invoked by the fiber itself.
1670
+ */
1671
+ initiateAsync(runtimeFlags, asyncRegister) {
1672
+ let alreadyCalled = false;
1673
+ const callback = effect => {
1674
+ if (!alreadyCalled) {
1675
+ alreadyCalled = true;
1676
+ this.tell(fiber.resume(effect));
1677
+ }
1678
+ };
1679
+ if (RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.interruptible(runtimeFlags)) {
1680
+ this._asyncInterruptor = callback;
1681
+ }
1682
+ try {
1683
+ asyncRegister(callback);
1684
+ } catch (e) {
1685
+ callback(core.failCause(core.die(e)));
1686
+ }
1687
+ }
1688
+ pushStack(cont) {
1689
+ this._stack.push(cont);
1690
+ if (cont._op === "OnStep") {
1691
+ this._steps.push(true);
1692
+ }
1693
+ if (cont._op === "RevertFlags") {
1694
+ this._steps.push(false);
1695
+ }
1696
+ }
1697
+ popStack() {
1698
+ const item = this._stack.pop();
1699
+ if (item) {
1700
+ if (item._op === "OnStep" || item._op === "RevertFlags") {
1701
+ this._steps.pop();
1702
+ }
1703
+ return item;
1704
+ }
1705
+ return;
1706
+ }
1707
+ getNextSuccessCont() {
1708
+ let frame = this.popStack();
1709
+ while (frame) {
1710
+ if (frame._op !== Effectable.OP_ON_FAILURE) {
1711
+ return frame;
1712
+ }
1713
+ frame = this.popStack();
1714
+ }
1715
+ }
1716
+ getNextFailCont() {
1717
+ let frame = this.popStack();
1718
+ while (frame) {
1719
+ if (frame._op !== Effectable.OP_ON_SUCCESS && frame._op !== Effectable.OP_WHILE) {
1720
+ return frame;
1721
+ }
1722
+ frame = this.popStack();
1723
+ }
1724
+ }
1725
+ [Effectable.OP_TAG](op) {
1726
+ return core.map(core.fiberRefGet(core.currentContext), context => {
1727
+ try {
1728
+ return Context_dist_effectContext.unsafeGet(context, op);
1729
+ } catch (e) {
1730
+ console.log(e);
1731
+ throw e;
1732
+ }
1733
+ });
1734
+ }
1735
+ ["Left"](op) {
1736
+ return core.exitFail(op.left);
1737
+ }
1738
+ ["None"](_) {
1739
+ return core.exitFail(core.NoSuchElementException());
1740
+ }
1741
+ ["Right"](op) {
1742
+ return core.exitSucceed(op.right);
1743
+ }
1744
+ ["Some"](op) {
1745
+ return core.exitSucceed(op.value);
1746
+ }
1747
+ [Effectable.OP_SYNC](op) {
1748
+ const value = op.i0();
1749
+ const cont = this.getNextSuccessCont();
1750
+ if (cont !== undefined) {
1751
+ if (!(cont._op in contOpSuccess)) {
1752
+ // @ts-expect-error
1753
+ absurd(cont);
1754
+ }
1755
+ // @ts-expect-error
1756
+ return contOpSuccess[cont._op](this, cont, value);
1757
+ } else {
1758
+ throw core.exitSucceed(value);
1759
+ }
1760
+ }
1761
+ [Effectable.OP_SUCCESS](op) {
1762
+ const oldCur = op;
1763
+ const cont = this.getNextSuccessCont();
1764
+ if (cont !== undefined) {
1765
+ if (!(cont._op in contOpSuccess)) {
1766
+ // @ts-expect-error
1767
+ absurd(cont);
1768
+ }
1769
+ // @ts-expect-error
1770
+ return contOpSuccess[cont._op](this, cont, oldCur.i0);
1771
+ } else {
1772
+ throw oldCur;
1773
+ }
1774
+ }
1775
+ [Effectable.OP_FAILURE](op) {
1776
+ const cause = op.i0;
1777
+ const cont = this.getNextFailCont();
1778
+ if (cont !== undefined) {
1779
+ switch (cont._op) {
1780
+ case Effectable.OP_ON_FAILURE:
1781
+ case Effectable.OP_ON_SUCCESS_AND_FAILURE:
1782
+ {
1783
+ if (!(RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.interruptible(this._runtimeFlags) && this.isInterrupted())) {
1784
+ return cont.i1(cause);
1785
+ } else {
1786
+ return core.exitFailCause(core.stripFailures(cause));
1787
+ }
1788
+ }
1789
+ case "OnStep":
1790
+ {
1791
+ if (!(RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.interruptible(this._runtimeFlags) && this.isInterrupted())) {
1792
+ return cont.i1(core.exitFailCause(cause));
1793
+ } else {
1794
+ return core.exitFailCause(core.stripFailures(cause));
1795
+ }
1796
+ }
1797
+ case Effectable.OP_REVERT_FLAGS:
1798
+ {
1799
+ this.patchRuntimeFlags(this._runtimeFlags, cont.patch);
1800
+ if (RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.interruptible(this._runtimeFlags) && this.isInterrupted()) {
1801
+ return core.exitFailCause(core.sequential(cause, this.getInterruptedCause()));
1802
+ } else {
1803
+ return core.exitFailCause(cause);
1804
+ }
1805
+ }
1806
+ default:
1807
+ {
1808
+ absurd(cont);
1809
+ }
1810
+ }
1811
+ } else {
1812
+ throw core.exitFailCause(cause);
1813
+ }
1814
+ }
1815
+ [Effectable.OP_WITH_RUNTIME](op) {
1816
+ return op.i0(this, FiberStatus_dist_effectFiberStatus.running(this._runtimeFlags));
1817
+ }
1818
+ ["Blocked"](op) {
1819
+ if (this._steps[this._steps.length - 1]) {
1820
+ const nextOp = this.popStack();
1821
+ if (nextOp) {
1822
+ switch (nextOp._op) {
1823
+ case "OnStep":
1824
+ {
1825
+ return nextOp.i1(op);
1826
+ }
1827
+ case "OnSuccess":
1828
+ {
1829
+ return core.blocked(op.i0, core.flatMap(op.i1, nextOp.i1));
1830
+ }
1831
+ case "OnSuccessAndFailure":
1832
+ {
1833
+ return core.blocked(op.i0, core.matchCauseEffect(op.i1, {
1834
+ onFailure: nextOp.i1,
1835
+ onSuccess: nextOp.i2
1836
+ }));
1837
+ }
1838
+ case "OnFailure":
1839
+ {
1840
+ return core.blocked(op.i0, core.catchAllCause(op.i1, nextOp.i1));
1841
+ }
1842
+ case "While":
1843
+ {
1844
+ return core.blocked(op.i0, core.flatMap(op.i1, a => {
1845
+ nextOp.i2(a);
1846
+ if (nextOp.i0()) {
1847
+ return core.whileLoop({
1848
+ while: nextOp.i0,
1849
+ body: nextOp.i1,
1850
+ step: nextOp.i2
1851
+ });
1852
+ }
1853
+ return core.unit;
1854
+ }));
1855
+ }
1856
+ case "RevertFlags":
1857
+ {
1858
+ this.pushStack(nextOp);
1859
+ break;
1860
+ }
1861
+ }
1862
+ }
1863
+ }
1864
+ return core.uninterruptibleMask(restore => core.flatMap(fork(core.runRequestBlock(op.i0)), () => restore(op.i1)));
1865
+ }
1866
+ ["RunBlocked"](op) {
1867
+ return runBlockedRequests(op.i0);
1868
+ }
1869
+ [Effectable.OP_UPDATE_RUNTIME_FLAGS](op) {
1870
+ const updateFlags = op.i0;
1871
+ const oldRuntimeFlags = this._runtimeFlags;
1872
+ const newRuntimeFlags = RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.patch(oldRuntimeFlags, updateFlags);
1873
+ // One more chance to short circuit: if we're immediately going
1874
+ // to interrupt. Interruption will cause immediate reversion of
1875
+ // the flag, so as long as we "peek ahead", there's no need to
1876
+ // set them to begin with.
1877
+ if (RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.interruptible(newRuntimeFlags) && this.isInterrupted()) {
1878
+ return core.exitFailCause(this.getInterruptedCause());
1879
+ } else {
1880
+ // Impossible to short circuit, so record the changes
1881
+ this.patchRuntimeFlags(this._runtimeFlags, updateFlags);
1882
+ if (op.i1) {
1883
+ // Since we updated the flags, we need to revert them
1884
+ const revertFlags = RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.diff(newRuntimeFlags, oldRuntimeFlags);
1885
+ this.pushStack(new core.RevertFlags(revertFlags, op));
1886
+ return op.i1(oldRuntimeFlags);
1887
+ } else {
1888
+ return core.exitUnit;
1889
+ }
1890
+ }
1891
+ }
1892
+ [Effectable.OP_ON_SUCCESS](op) {
1893
+ this.pushStack(op);
1894
+ return op.i0;
1895
+ }
1896
+ ["OnStep"](op) {
1897
+ this.pushStack(op);
1898
+ return op.i0;
1899
+ }
1900
+ [Effectable.OP_ON_FAILURE](op) {
1901
+ this.pushStack(op);
1902
+ return op.i0;
1903
+ }
1904
+ [Effectable.OP_ON_SUCCESS_AND_FAILURE](op) {
1905
+ this.pushStack(op);
1906
+ return op.i0;
1907
+ }
1908
+ [Effectable.OP_ASYNC](op) {
1909
+ this._asyncBlockingOn = op.i1;
1910
+ this.initiateAsync(this._runtimeFlags, op.i0);
1911
+ throw op;
1912
+ }
1913
+ [Effectable.OP_YIELD](op) {
1914
+ throw op;
1915
+ }
1916
+ [Effectable.OP_WHILE](op) {
1917
+ const check = op.i0;
1918
+ const body = op.i1;
1919
+ if (check()) {
1920
+ this.pushStack(op);
1921
+ return body();
1922
+ } else {
1923
+ return core.exitUnit;
1924
+ }
1925
+ }
1926
+ [Effectable.OP_COMMIT](op) {
1927
+ return op.commit();
1928
+ }
1929
+
1930
+ /**
1931
+ * The main run-loop for evaluating effects.
1932
+ *
1933
+ * **NOTE**: This method must be invoked by the fiber itself.
1934
+ */
1935
+ runLoop(effect0) {
1936
+ let cur = effect0;
1937
+ this.currentOpCount = 0;
1938
+ // eslint-disable-next-line no-constant-condition
1939
+ while (true) {
1940
+ if ((this._runtimeFlags & RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.OpSupervision) !== 0) {
1941
+ this._supervisor.onEffect(this, cur);
1942
+ }
1943
+ if (this._queue.length > 0) {
1944
+ cur = this.drainQueueWhileRunning(this._runtimeFlags, cur);
1945
+ }
1946
+ this.currentOpCount += 1;
1947
+ const shouldYield = this._scheduler.shouldYield(this);
1948
+ if (shouldYield !== false) {
1949
+ this.currentOpCount = 0;
1950
+ const oldCur = cur;
1951
+ cur = core.flatMap(core.yieldNow({
1952
+ priority: shouldYield
1953
+ }), () => oldCur);
1954
+ }
1955
+ try {
1956
+ if (!("_op" in cur)) {
1957
+ console.log(cur);
1958
+ }
1959
+ if (!(cur._op in this)) {
1960
+ if (typeof cur === "function") {
1961
+ console.log(cur());
1962
+ }
1963
+ // @ts-expect-error
1964
+ absurd(cur);
1965
+ }
1966
+ // @ts-expect-error
1967
+ cur = this._tracer.context(
1968
+ // @ts-expect-error
1969
+ () => this[cur._op](cur), this);
1970
+ } catch (e) {
1971
+ if (core.isEffect(e)) {
1972
+ if (e._op === Effectable.OP_YIELD || e._op === Effectable.OP_ASYNC) {
1973
+ throw e;
1974
+ }
1975
+ if (e._op === Effectable.OP_SUCCESS || e._op === Effectable.OP_FAILURE) {
1976
+ return e;
1977
+ }
1978
+ } else {
1979
+ if (core.isEffectError(e)) {
1980
+ cur = core.exitFailCause(e.cause);
1981
+ } else if (core.isInterruptedException(e)) {
1982
+ cur = core.exitFailCause(core.sequential(core.die(e), core.interrupt$1(FiberId_dist_effectFiberId.none)));
1983
+ } else {
1984
+ cur = core.exitFailCause(core.die(e));
1985
+ }
1986
+ }
1987
+ }
1988
+ }
1989
+ }
1990
+ run = () => {
1991
+ this.drainQueueOnCurrentThread();
1992
+ };
1993
+ }
1994
+
1995
+ // circular with Logger
1996
+
1997
+ /** @internal */
1998
+ const currentMinimumLogLevel = /*#__PURE__*/core.fiberRefUnsafeMake( /*#__PURE__*/LogLevel_dist_effectLogLevel.fromLiteral("Info"));
1999
+
2000
+ /** @internal */
2001
+ const getConsole = refs => {
2002
+ const defaultServicesValue = FiberRefs_dist_effectFiberRefs.getOrDefault(refs, defaultServices.currentServices);
2003
+ const cnsl = Context_dist_effectContext.get(defaultServicesValue, defaultServices.consoleTag);
2004
+ return cnsl.unsafe;
2005
+ };
2006
+
2007
+ /** @internal */
2008
+ const defaultLogger = /*#__PURE__*/makeLogger(options => {
2009
+ const formatted = stringLogger.log(options);
2010
+ getConsole(options.context).log(formatted);
2011
+ });
2012
+
2013
+ /** @internal */
2014
+ const logFmtLogger = /*#__PURE__*/makeLogger(options => {
2015
+ const formatted = logfmtLogger.log(options);
2016
+ getConsole(options.context).log(formatted);
2017
+ });
2018
+
2019
+ /** @internal */
2020
+ const tracerLogger = /*#__PURE__*/makeLogger(({
2021
+ annotations,
2022
+ cause,
2023
+ context,
2024
+ fiberId,
2025
+ logLevel,
2026
+ message
2027
+ }) => {
2028
+ const span = Option_dist_effectOption.flatMap(fiberRefs.get(context, core.currentTracerSpan), List_dist_effectList.head);
2029
+ const clockService = Option_dist_effectOption.map(fiberRefs.get(context, defaultServices.currentServices), _ => Context_dist_effectContext.get(_, defaultServices.clockTag));
2030
+ if (span._tag === "None" || span.value._tag === "ExternalSpan" || clockService._tag === "None") {
2031
+ return;
2032
+ }
2033
+ const attributes = Object.fromEntries(annotations);
2034
+ attributes["effect.fiberId"] = FiberId_dist_effectFiberId.threadName$1(fiberId);
2035
+ attributes["effect.logLevel"] = logLevel.label;
2036
+ if (cause !== null && cause !== core.empty) {
2037
+ attributes["effect.cause"] = core.pretty(cause);
2038
+ }
2039
+ span.value.event(String(message), clockService.value.unsafeCurrentTimeNanos(), attributes);
2040
+ });
2041
+
2042
+ /** @internal */
2043
+ const currentLoggers = /*#__PURE__*/core.fiberRefUnsafeMakeHashSet( /*#__PURE__*/HashSet_dist_effectHashSet.make(defaultLogger, tracerLogger));
2044
+
2045
+ // circular with Effect
2046
+
2047
+ /* @internal */
2048
+ const acquireRelease = /*#__PURE__*/Function_dist_effectFunction.dual(args => core.isEffect(args[0]), (acquire, release) => {
2049
+ return core.uninterruptible(core.tap(acquire, a => addFinalizer(exit => release(a, exit))));
2050
+ });
2051
+
2052
+ /* @internal */
2053
+ const acquireReleaseInterruptible = /*#__PURE__*/Function_dist_effectFunction.dual(args => core.isEffect(args[0]), (acquire, release) => {
2054
+ return ensuring(acquire, addFinalizer(exit => release(exit)));
2055
+ });
2056
+
2057
+ /* @internal */
2058
+ const addFinalizer = finalizer => core.withFiberRuntime(runtime => {
2059
+ const acquireRefs = runtime.getFiberRefs();
2060
+ const acquireFlags = runtime._runtimeFlags;
2061
+ return core.flatMap(scope, scope => core.scopeAddFinalizerExit(scope, exit => core.withFiberRuntime(runtimeFinalizer => {
2062
+ const preRefs = runtimeFinalizer.getFiberRefs();
2063
+ const preFlags = runtimeFinalizer._runtimeFlags;
2064
+ const patchRefs = FiberRefsPatch_dist_effectFiberRefsPatch.diff(preRefs, acquireRefs);
2065
+ const patchFlags = RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.diff(preFlags, acquireFlags);
2066
+ const inverseRefs = FiberRefsPatch_dist_effectFiberRefsPatch.diff(acquireRefs, preRefs);
2067
+ runtimeFinalizer.setFiberRefs(FiberRefsPatch_dist_effectFiberRefsPatch.patch(patchRefs, runtimeFinalizer.id(), acquireRefs));
2068
+ return ensuring(core.withRuntimeFlags(finalizer(exit), patchFlags), core.sync(() => {
2069
+ runtimeFinalizer.setFiberRefs(FiberRefsPatch_dist_effectFiberRefsPatch.patch(inverseRefs, runtimeFinalizer.id(), runtimeFinalizer.getFiberRefs()));
2070
+ }));
2071
+ })));
2072
+ });
2073
+
2074
+ /* @internal */
2075
+ const daemonChildren = self => {
2076
+ const forkScope = core.fiberRefLocally(core.currentForkScopeOverride, Option_dist_effectOption.some(fiber.globalScope));
2077
+ return forkScope(self);
2078
+ };
2079
+
2080
+ /** @internal */
2081
+ const _existsParFound = /*#__PURE__*/Symbol("effect/Effect/existsPar/found");
2082
+
2083
+ /* @internal */
2084
+ const exists = /*#__PURE__*/Function_dist_effectFunction.dual(args => Predicate_dist_effectPredicate.isIterable(args[0]), (elements, f, options) => matchSimple(options, () => core.suspend(() => existsLoop(elements[Symbol.iterator](), 0, f)), () => core.matchEffect(forEachOptions(elements, (a, i) => core.if_(f(a, i), {
2085
+ onTrue: core.fail(_existsParFound),
2086
+ onFalse: core.unit
2087
+ }), options), {
2088
+ onFailure: e => e === _existsParFound ? core.succeed(true) : core.fail(e),
2089
+ onSuccess: () => core.succeed(false)
2090
+ })));
2091
+ const existsLoop = (iterator, index, f) => {
2092
+ const next = iterator.next();
2093
+ if (next.done) {
2094
+ return core.succeed(false);
2095
+ }
2096
+ return Function_dist_effectFunction.pipe(core.flatMap(f(next.value, index), b => b ? core.succeed(b) : existsLoop(iterator, index + 1, f)));
2097
+ };
2098
+
2099
+ /* @internal */
2100
+ const filter = /*#__PURE__*/Function_dist_effectFunction.dual(args => Predicate_dist_effectPredicate.isIterable(args[0]), (elements, f, options) => {
2101
+ const predicate = options?.negate ? (a, i) => core.map(f(a, i), Boolean_dist_effectBoolean.not) : f;
2102
+ return matchSimple(options, () => core.suspend(() => ReadonlyArray_dist_effectReadonlyArray.fromIterable(elements).reduceRight((effect, a, i) => core.zipWith(effect, core.suspend(() => predicate(a, i)), (list, b) => b ? [a, ...list] : list), core.sync(() => new Array()))), () => core.map(forEachOptions(elements, (a, i) => core.map(predicate(a, i), b => b ? Option_dist_effectOption.some(a) : Option_dist_effectOption.none()), options), ReadonlyArray_dist_effectReadonlyArray.compact));
2103
+ });
2104
+
2105
+ // === all
2106
+
2107
+ const allResolveInput = input => {
2108
+ if (Array.isArray(input) || Predicate_dist_effectPredicate.isIterable(input)) {
2109
+ return [input, Option_dist_effectOption.none()];
2110
+ }
2111
+ const keys = Object.keys(input);
2112
+ const size = keys.length;
2113
+ return [keys.map(k => input[k]), Option_dist_effectOption.some(values => {
2114
+ const res = {};
2115
+ for (let i = 0; i < size; i++) {
2116
+ res[keys[i]] = values[i];
2117
+ }
2118
+ return res;
2119
+ })];
2120
+ };
2121
+ const allValidate = (effects, reconcile, options) => {
2122
+ const eitherEffects = [];
2123
+ for (const effect of effects) {
2124
+ eitherEffects.push(core.either(effect));
2125
+ }
2126
+ return core.flatMap(forEachOptions(eitherEffects, Function_dist_effectFunction.identity, {
2127
+ concurrency: options?.concurrency,
2128
+ batching: options?.batching
2129
+ }), eithers => {
2130
+ const none = Option_dist_effectOption.none();
2131
+ const size = eithers.length;
2132
+ const errors = new Array(size);
2133
+ const successes = new Array(size);
2134
+ let errored = false;
2135
+ for (let i = 0; i < size; i++) {
2136
+ const either = eithers[i];
2137
+ if (either._tag === "Left") {
2138
+ errors[i] = Option_dist_effectOption.some(either.left);
2139
+ errored = true;
2140
+ } else {
2141
+ successes[i] = either.right;
2142
+ errors[i] = none;
2143
+ }
2144
+ }
2145
+ if (errored) {
2146
+ return reconcile._tag === "Some" ? core.fail(reconcile.value(errors)) : core.fail(errors);
2147
+ } else if (options?.discard) {
2148
+ return core.unit;
2149
+ }
2150
+ return reconcile._tag === "Some" ? core.succeed(reconcile.value(successes)) : core.succeed(successes);
2151
+ });
2152
+ };
2153
+ const allEither = (effects, reconcile, options) => {
2154
+ const eitherEffects = [];
2155
+ for (const effect of effects) {
2156
+ eitherEffects.push(core.either(effect));
2157
+ }
2158
+ if (options?.discard) {
2159
+ return forEachOptions(eitherEffects, Function_dist_effectFunction.identity, {
2160
+ concurrency: options?.concurrency,
2161
+ batching: options?.batching,
2162
+ discard: true
2163
+ });
2164
+ }
2165
+ return core.map(forEachOptions(eitherEffects, Function_dist_effectFunction.identity, {
2166
+ concurrency: options?.concurrency,
2167
+ batching: options?.batching
2168
+ }), eithers => reconcile._tag === "Some" ? reconcile.value(eithers) : eithers);
2169
+ };
2170
+
2171
+ /* @internal */
2172
+ const all = (arg, options) => {
2173
+ const [effects, reconcile] = allResolveInput(arg);
2174
+ if (options?.mode === "validate") {
2175
+ return allValidate(effects, reconcile, options);
2176
+ } else if (options?.mode === "either") {
2177
+ return allEither(effects, reconcile, options);
2178
+ }
2179
+ return reconcile._tag === "Some" ? core.map(forEachOptions(effects, Function_dist_effectFunction.identity, options), reconcile.value) : forEachOptions(effects, Function_dist_effectFunction.identity, options);
2180
+ };
2181
+
2182
+ /* @internal */
2183
+ const allWith = options => arg => all(arg, options);
2184
+
2185
+ /* @internal */
2186
+ const allSuccesses = (elements, options) => core.map(all(ReadonlyArray_dist_effectReadonlyArray.fromIterable(elements).map(core.exit), options), ReadonlyArray_dist_effectReadonlyArray.filterMap(exit => core.exitIsSuccess(exit) ? Option_dist_effectOption.some(exit.i0) : Option_dist_effectOption.none()));
2187
+
2188
+ /* @internal */
2189
+ const replicate = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, n) => Array.from({
2190
+ length: n
2191
+ }, () => self));
2192
+
2193
+ /* @internal */
2194
+ const replicateEffect = /*#__PURE__*/Function_dist_effectFunction.dual(args => core.isEffect(args[0]), (self, n, options) => all(replicate(self, n), options));
2195
+
2196
+ // @ts-expect-error
2197
+ const forEachOptions = /*#__PURE__*/Function_dist_effectFunction.dual(args => Predicate_dist_effectPredicate.isIterable(args[0]), (self, f, options) => core.withFiberRuntime(r => {
2198
+ const requestBatchingEnabled = options?.batching === true || options?.batching === "inherit" && r.getFiberRef(core.currentRequestBatching);
2199
+ if (options?.discard) {
2200
+ return match(options, () => finalizersMask(ExecutionStrategy_dist_effectExecutionStrategy.sequential$1)(restore => requestBatchingEnabled ? forEachBatchedDiscard(self, (a, i) => restore(f(a, i))) : core.forEachSequentialDiscard(self, (a, i) => restore(f(a, i)))), () => finalizersMask(ExecutionStrategy_dist_effectExecutionStrategy.parallel)(restore => forEachParUnboundedDiscard(self, (a, i) => restore(f(a, i)), requestBatchingEnabled)), n => finalizersMask(ExecutionStrategy_dist_effectExecutionStrategy.parallelN(n))(restore => forEachParNDiscard(self, n, (a, i) => restore(f(a, i)), requestBatchingEnabled)));
2201
+ }
2202
+ return match(options, () => finalizersMask(ExecutionStrategy_dist_effectExecutionStrategy.sequential$1)(restore => requestBatchingEnabled ? forEachParN(self, 1, (a, i) => restore(f(a, i)), true) : core.forEachSequential(self, (a, i) => restore(f(a, i)))), () => finalizersMask(ExecutionStrategy_dist_effectExecutionStrategy.parallel)(restore => forEachParUnbounded(self, (a, i) => restore(f(a, i)), requestBatchingEnabled)), n => finalizersMask(ExecutionStrategy_dist_effectExecutionStrategy.parallelN(n))(restore => forEachParN(self, n, (a, i) => restore(f(a, i)), requestBatchingEnabled)));
2203
+ }));
2204
+
2205
+ /* @internal */
2206
+ const forEachParUnbounded = (self, f, batching) => core.suspend(() => {
2207
+ const as = ReadonlyArray_dist_effectReadonlyArray.fromIterable(self);
2208
+ const array = new Array(as.length);
2209
+ const fn = (a, i) => core.flatMap(f(a, i), b => core.sync(() => array[i] = b));
2210
+ return core.zipRight(forEachParUnboundedDiscard(as, fn, batching), core.succeed(array));
2211
+ });
2212
+ const forEachBatchedDiscard = (self, f) => core.suspend(() => {
2213
+ const as = ReadonlyArray_dist_effectReadonlyArray.fromIterable(self);
2214
+ const size = as.length;
2215
+ if (size === 0) {
2216
+ return core.unit;
2217
+ } else if (size === 1) {
2218
+ return core.asUnit(f(as[0], 0));
2219
+ }
2220
+ const effects = as.map(f);
2221
+ const blocked = new Array();
2222
+ const loop = i => i === effects.length ? core.suspend(() => {
2223
+ if (blocked.length > 0) {
2224
+ const requests = blocked.map(b => b.i0).reduce(core.par);
2225
+ return core.blocked(requests, forEachBatchedDiscard(blocked.map(b => b.i1), Function_dist_effectFunction.identity));
2226
+ }
2227
+ return core.unit;
2228
+ }) : core.flatMapStep(effects[i], s => {
2229
+ if (s._op === "Blocked") {
2230
+ blocked.push(s);
2231
+ return loop(i + 1);
2232
+ } else if (s._op === "Failure") {
2233
+ return core.suspend(() => {
2234
+ if (blocked.length > 0) {
2235
+ const requests = blocked.map(b => b.i0).reduce(core.par);
2236
+ return core.blocked(requests, core.flatMap(forEachBatchedDiscard(blocked.map(b => b.i1), Function_dist_effectFunction.identity), () => s));
2237
+ }
2238
+ return core.unit;
2239
+ });
2240
+ } else {
2241
+ return loop(i + 1);
2242
+ }
2243
+ });
2244
+ return loop(0);
2245
+ });
2246
+
2247
+ /* @internal */
2248
+ const forEachParUnboundedDiscard = (self, f, batching) => core.suspend(() => {
2249
+ const as = ReadonlyArray_dist_effectReadonlyArray.fromIterable(self);
2250
+ const size = as.length;
2251
+ if (size === 0) {
2252
+ return core.unit;
2253
+ } else if (size === 1) {
2254
+ return core.asUnit(f(as[0], 0));
2255
+ }
2256
+ return core.uninterruptibleMask(restore => {
2257
+ const deferred = core.deferredUnsafeMake(FiberId_dist_effectFiberId.none);
2258
+ let ref = 0;
2259
+ const residual = [];
2260
+ const joinOrder = [];
2261
+ const process = core.transplant(graft => core.forEachSequential(as, (a, i) => Function_dist_effectFunction.pipe(graft(Function_dist_effectFunction.pipe(core.suspend(() => restore((batching ? core.step : core.exit)(f(a, i)))), core.flatMap(exit => {
2262
+ switch (exit._op) {
2263
+ case "Failure":
2264
+ {
2265
+ if (residual.length > 0) {
2266
+ const requests = residual.map(blocked => blocked.i0).reduce(core.par);
2267
+ const _continue = forEachParUnboundedDiscard(residual, blocked => blocked.i1, batching);
2268
+ return core.blocked(requests, core.matchCauseEffect(_continue, {
2269
+ onFailure: cause => core.zipRight(core.deferredFail(deferred, void 0), core.failCause(core.parallel(cause, exit.cause))),
2270
+ onSuccess: () => core.zipRight(core.deferredFail(deferred, void 0), core.failCause(exit.cause))
2271
+ }));
2272
+ }
2273
+ return core.zipRight(core.deferredFail(deferred, void 0), core.failCause(exit.cause));
2274
+ }
2275
+ default:
2276
+ {
2277
+ if (exit._op === "Blocked") {
2278
+ residual.push(exit);
2279
+ }
2280
+ if (ref + 1 === size) {
2281
+ if (residual.length > 0) {
2282
+ const requests = residual.map(blocked => blocked.i0).reduce(core.par);
2283
+ const _continue = forEachParUnboundedDiscard(residual, blocked => blocked.i1, batching);
2284
+ return core.deferredSucceed(deferred, core.blocked(requests, _continue));
2285
+ } else {
2286
+ core.deferredUnsafeDone(deferred, core.exitSucceed(core.exitUnit));
2287
+ }
2288
+ } else {
2289
+ ref = ref + 1;
2290
+ }
2291
+ return core.unit;
2292
+ }
2293
+ }
2294
+ }))), forkDaemon, core.map(fiber => {
2295
+ fiber.addObserver(() => {
2296
+ joinOrder.push(fiber);
2297
+ });
2298
+ return fiber;
2299
+ }))));
2300
+ return core.flatMap(process, fibers => core.matchCauseEffect(restore(core.deferredAwait(deferred)), {
2301
+ onFailure: cause => core.flatMap(forEachParUnbounded(fibers, core.interruptFiber, batching), exits => {
2302
+ const exit = core.exitCollectAll(exits, {
2303
+ parallel: true
2304
+ });
2305
+ if (exit._tag === "Some" && core.exitIsFailure(exit.value)) {
2306
+ return core.failCause(core.parallel(core.stripFailures(cause), exit.value.i0));
2307
+ } else {
2308
+ return core.failCause(core.stripFailures(cause));
2309
+ }
2310
+ }),
2311
+ onSuccess: rest => core.flatMap(rest, () => core.forEachSequentialDiscard(joinOrder, f => f.inheritAll()))
2312
+ }));
2313
+ });
2314
+ });
2315
+
2316
+ /* @internal */
2317
+ const forEachParN = (self, n, f, batching) => core.suspend(() => {
2318
+ const as = ReadonlyArray_dist_effectReadonlyArray.fromIterable(self);
2319
+ const array = new Array(as.length);
2320
+ const fn = (a, i) => core.map(f(a, i), b => array[i] = b);
2321
+ return core.zipRight(forEachParNDiscard(as, n, fn, batching), core.succeed(array));
2322
+ });
2323
+
2324
+ /* @internal */
2325
+ const forEachParNDiscard = (self, n, f, batching) => core.suspend(() => {
2326
+ let i = 0;
2327
+ const iterator = self[Symbol.iterator]();
2328
+ const residual = [];
2329
+ const worker = core.flatMap(core.sync(() => iterator.next()), next => next.done ? core.unit : core.flatMap((batching ? core.step : core.exit)(core.asUnit(f(next.value, i++))), res => {
2330
+ switch (res._op) {
2331
+ case "Blocked":
2332
+ {
2333
+ residual.push(res);
2334
+ return worker;
2335
+ }
2336
+ case "Failure":
2337
+ {
2338
+ return res;
2339
+ }
2340
+ case "Success":
2341
+ return worker;
2342
+ }
2343
+ }));
2344
+ const effects = [];
2345
+ for (let i = 0; i < n; i++) {
2346
+ effects.push(worker);
2347
+ }
2348
+ return core.flatMap(core.exit(forEachParUnboundedDiscard(effects, Function_dist_effectFunction.identity, batching)), exit => {
2349
+ if (residual.length === 0) {
2350
+ return exit;
2351
+ }
2352
+ const requests = residual.map(blocked => blocked.i0).reduce(core.par);
2353
+ const _continue = forEachParNDiscard(residual, n, blocked => blocked.i1, batching);
2354
+ if (exit._tag === "Failure") {
2355
+ return core.blocked(requests, core.matchCauseEffect(_continue, {
2356
+ onFailure: cause => core.exitFailCause(core.parallel(exit.cause, cause)),
2357
+ onSuccess: () => exit
2358
+ }));
2359
+ }
2360
+ return core.blocked(requests, _continue);
2361
+ });
2362
+ });
2363
+
2364
+ /* @internal */
2365
+ const fork = self => core.withFiberRuntime((state, status) => core.succeed(unsafeFork(self, state, status.runtimeFlags)));
2366
+
2367
+ /* @internal */
2368
+ const forkDaemon = self => forkWithScopeOverride(self, fiber.globalScope);
2369
+
2370
+ /* @internal */
2371
+ const forkWithErrorHandler = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, handler) => fork(core.onError(self, cause => {
2372
+ const either = core.failureOrCause(cause);
2373
+ switch (either._tag) {
2374
+ case "Left":
2375
+ {
2376
+ return handler(either.left);
2377
+ }
2378
+ case "Right":
2379
+ {
2380
+ return core.failCause(either.right);
2381
+ }
2382
+ }
2383
+ })));
2384
+
2385
+ /** @internal */
2386
+ const unsafeFork = (effect, parentFiber, parentRuntimeFlags, overrideScope = null) => {
2387
+ const childFiber = unsafeMakeChildFiber(effect, parentFiber, parentRuntimeFlags, overrideScope);
2388
+ childFiber.resume(effect);
2389
+ return childFiber;
2390
+ };
2391
+
2392
+ /** @internal */
2393
+ const unsafeMakeChildFiber = (effect, parentFiber, parentRuntimeFlags, overrideScope = null) => {
2394
+ const childId = FiberId_dist_effectFiberId.unsafeMake();
2395
+ const parentFiberRefs = parentFiber.getFiberRefs();
2396
+ const childFiberRefs = fiberRefs.forkAs(parentFiberRefs, childId);
2397
+ const childFiber = new FiberRuntime(childId, childFiberRefs, parentRuntimeFlags);
2398
+ const childContext = fiberRefs.getOrDefault(childFiberRefs, core.currentContext);
2399
+ const supervisor = childFiber._supervisor;
2400
+ supervisor.onStart(childContext, effect, Option_dist_effectOption.some(parentFiber), childFiber);
2401
+ childFiber.addObserver(exit => supervisor.onEnd(exit, childFiber));
2402
+ const parentScope = overrideScope !== null ? overrideScope : Function_dist_effectFunction.pipe(parentFiber.getFiberRef(core.currentForkScopeOverride), Option_dist_effectOption.getOrElse(() => parentFiber.scope()));
2403
+ parentScope.add(parentRuntimeFlags, childFiber);
2404
+ return childFiber;
2405
+ };
2406
+
2407
+ /* @internal */
2408
+ const forkWithScopeOverride = (self, scopeOverride) => core.withFiberRuntime((parentFiber, parentStatus) => core.succeed(unsafeFork(self, parentFiber, parentStatus.runtimeFlags, scopeOverride)));
2409
+
2410
+ /* @internal */
2411
+ const mergeAll = /*#__PURE__*/Function_dist_effectFunction.dual(args => Predicate_dist_effectPredicate.isIterable(args[0]), (elements, zero, f, options) => matchSimple(options, () => ReadonlyArray_dist_effectReadonlyArray.fromIterable(elements).reduce((acc, a, i) => core.zipWith(acc, a, (acc, a) => f(acc, a, i)), core.succeed(zero)), () => core.flatMap(Ref_dist_effectRef.make(zero), acc => core.flatMap(forEachOptions(elements, (effect, i) => core.flatMap(effect, a => Ref_dist_effectRef.update(acc, b => f(b, a, i))), options), () => Ref_dist_effectRef.get(acc)))));
2412
+
2413
+ /* @internal */
2414
+ const partition = /*#__PURE__*/Function_dist_effectFunction.dual(args => Predicate_dist_effectPredicate.isIterable(args[0]), (elements, f, options) => Function_dist_effectFunction.pipe(forEachOptions(elements, (a, i) => core.either(f(a, i)), options), core.map(chunk => core.partitionMap(chunk, Function_dist_effectFunction.identity))));
2415
+
2416
+ /* @internal */
2417
+ const validateAll = /*#__PURE__*/Function_dist_effectFunction.dual(args => Predicate_dist_effectPredicate.isIterable(args[0]), (elements, f, options) => core.flatMap(partition(elements, f, {
2418
+ concurrency: options?.concurrency,
2419
+ batching: options?.batching
2420
+ }), ([es, bs]) => es.length === 0 ? options?.discard ? core.unit : core.succeed(bs) : core.fail(es)));
2421
+
2422
+ /* @internal */
2423
+ const raceAll = all => {
2424
+ const list = Chunk_dist_effectChunk.fromIterable(all);
2425
+ if (!Chunk_dist_effectChunk.isNonEmpty(list)) {
2426
+ return core.dieSync(() => core.IllegalArgumentException(`Received an empty collection of effects`));
2427
+ }
2428
+ const self = Chunk_dist_effectChunk.headNonEmpty(list);
2429
+ const effects = Chunk_dist_effectChunk.tailNonEmpty(list);
2430
+ const inheritAll = res => Function_dist_effectFunction.pipe(fiber.inheritAll(res[1]), core.as(res[0]));
2431
+ return Function_dist_effectFunction.pipe(core.deferredMake(), core.flatMap(done => Function_dist_effectFunction.pipe(Ref_dist_effectRef.make(effects.length), core.flatMap(fails => core.uninterruptibleMask(restore => Function_dist_effectFunction.pipe(fork(core.interruptible(self)), core.flatMap(head => Function_dist_effectFunction.pipe(effects, core.forEachSequential(effect => fork(core.interruptible(effect))), core.map(Chunk_dist_effectChunk.unsafeFromArray), core.map(tail => Function_dist_effectFunction.pipe(tail, Chunk_dist_effectChunk.prepend(head))), core.tap(fibers => Function_dist_effectFunction.pipe(fibers, ReadonlyArray_dist_effectReadonlyArray.reduce(core.unit, (effect, fiber$1) => Function_dist_effectFunction.pipe(effect, core.zipRight(Function_dist_effectFunction.pipe(fiber._await(fiber$1), core.flatMap(raceAllArbiter(fibers, fiber$1, done, fails)), fork, core.asUnit)))))), core.flatMap(fibers => Function_dist_effectFunction.pipe(restore(Function_dist_effectFunction.pipe(Deferred_dist_effectDeferred._await(done), core.flatMap(inheritAll))), core.onInterrupt(() => Function_dist_effectFunction.pipe(fibers, ReadonlyArray_dist_effectReadonlyArray.reduce(core.unit, (effect, fiber) => Function_dist_effectFunction.pipe(effect, core.zipLeft(core.interruptFiber(fiber))))))))))))))));
2432
+ };
2433
+
2434
+ /* @internal */
2435
+ const raceAllArbiter = (fibers, winner, deferred, fails) => exit => core.exitMatchEffect(exit, {
2436
+ onFailure: cause => Function_dist_effectFunction.pipe(Ref_dist_effectRef.modify(fails, fails => [fails === 0 ? Function_dist_effectFunction.pipe(core.deferredFailCause(deferred, cause), core.asUnit) : core.unit, fails - 1]), core.flatten),
2437
+ onSuccess: value => Function_dist_effectFunction.pipe(core.deferredSucceed(deferred, [value, winner]), core.flatMap(set => set ? Function_dist_effectFunction.pipe(Chunk_dist_effectChunk.fromIterable(fibers), ReadonlyArray_dist_effectReadonlyArray.reduce(core.unit, (effect, fiber) => fiber === winner ? effect : Function_dist_effectFunction.pipe(effect, core.zipLeft(core.interruptFiber(fiber))))) : core.unit))
2438
+ });
2439
+
2440
+ /* @internal */
2441
+ const reduceEffect = /*#__PURE__*/Function_dist_effectFunction.dual(args => Predicate_dist_effectPredicate.isIterable(args[0]), (elements, zero, f, options) => matchSimple(options, () => ReadonlyArray_dist_effectReadonlyArray.fromIterable(elements).reduce((acc, a, i) => core.zipWith(acc, a, (acc, a) => f(acc, a, i)), zero), () => core.suspend(() => Function_dist_effectFunction.pipe(mergeAll([zero, ...elements], Option_dist_effectOption.none(), (acc, elem, i) => {
2442
+ switch (acc._tag) {
2443
+ case "None":
2444
+ {
2445
+ return Option_dist_effectOption.some(elem);
2446
+ }
2447
+ case "Some":
2448
+ {
2449
+ return Option_dist_effectOption.some(f(acc.value, elem, i));
2450
+ }
2451
+ }
2452
+ }, options), core.map(option => {
2453
+ switch (option._tag) {
2454
+ case "None":
2455
+ {
2456
+ throw new Error("BUG: Effect.reduceEffect - please report an issue at https://github.com/Effect-TS/io/issues");
2457
+ }
2458
+ case "Some":
2459
+ {
2460
+ return option.value;
2461
+ }
2462
+ }
2463
+ })))));
2464
+
2465
+ /* @internal */
2466
+ const parallelFinalizers = self => core.contextWithEffect(context => Option_dist_effectOption.match(Context_dist_effectContext.getOption(context, scopeTag), {
2467
+ onNone: () => self,
2468
+ onSome: scope => {
2469
+ switch (scope.strategy._tag) {
2470
+ case "Parallel":
2471
+ return self;
2472
+ case "Sequential":
2473
+ case "ParallelN":
2474
+ return core.flatMap(core.scopeFork(scope, ExecutionStrategy_dist_effectExecutionStrategy.parallel), inner => scopeExtend(self, inner));
2475
+ }
2476
+ }
2477
+ }));
2478
+
2479
+ /* @internal */
2480
+ const parallelNFinalizers = parallelism => self => core.contextWithEffect(context => Option_dist_effectOption.match(Context_dist_effectContext.getOption(context, scopeTag), {
2481
+ onNone: () => self,
2482
+ onSome: scope => {
2483
+ if (scope.strategy._tag === "ParallelN" && scope.strategy.parallelism === parallelism) {
2484
+ return self;
2485
+ }
2486
+ return core.flatMap(core.scopeFork(scope, ExecutionStrategy_dist_effectExecutionStrategy.parallelN(parallelism)), inner => scopeExtend(self, inner));
2487
+ }
2488
+ }));
2489
+
2490
+ /* @internal */
2491
+ const finalizersMask = strategy => self => core.contextWithEffect(context => Option_dist_effectOption.match(Context_dist_effectContext.getOption(context, scopeTag), {
2492
+ onNone: () => self(Function_dist_effectFunction.identity),
2493
+ onSome: scope => {
2494
+ const patch = strategy._tag === "Parallel" ? parallelFinalizers : strategy._tag === "Sequential" ? sequentialFinalizers : parallelNFinalizers(strategy.parallelism);
2495
+ switch (scope.strategy._tag) {
2496
+ case "Parallel":
2497
+ return patch(self(parallelFinalizers));
2498
+ case "Sequential":
2499
+ return patch(self(sequentialFinalizers));
2500
+ case "ParallelN":
2501
+ return patch(self(parallelNFinalizers(scope.strategy.parallelism)));
2502
+ }
2503
+ }
2504
+ }));
2505
+
2506
+ /* @internal */
2507
+ const scopeWith = f => core.flatMap(scopeTag, f);
2508
+
2509
+ /* @internal */
2510
+ const scopedEffect = effect => core.flatMap(scopeMake(), scope => scopeUse(scope)(effect));
2511
+
2512
+ /* @internal */
2513
+ const sequentialFinalizers = self => core.contextWithEffect(context => Option_dist_effectOption.match(Context_dist_effectContext.getOption(context, scopeTag), {
2514
+ onNone: () => self,
2515
+ onSome: scope => {
2516
+ switch (scope.strategy._tag) {
2517
+ case "Sequential":
2518
+ return self;
2519
+ case "Parallel":
2520
+ case "ParallelN":
2521
+ return core.flatMap(core.scopeFork(scope, ExecutionStrategy_dist_effectExecutionStrategy.sequential$1), inner => scopeExtend(self, inner));
2522
+ }
2523
+ }
2524
+ }));
2525
+
2526
+ /* @internal */
2527
+ const tagMetricsScoped = (key, value) => labelMetricsScoped([label.make(key, value)]);
2528
+
2529
+ /* @internal */
2530
+ const labelMetricsScoped = labels => labelMetricsScopedSet(HashSet_dist_effectHashSet.fromIterable(labels));
2531
+
2532
+ /* @internal */
2533
+ const labelMetricsScopedSet = labels => fiberRefLocallyScopedWith(core.currentMetricLabels, set => Function_dist_effectFunction.pipe(set, HashSet_dist_effectHashSet.union(labels)));
2534
+
2535
+ /* @internal */
2536
+ const using = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, use) => core.acquireUseRelease(scopeMake(), scope => core.flatMap(scopeExtend(self, scope), use), (scope, exit) => core.scopeClose(scope, exit)));
2537
+
2538
+ /** @internal */
2539
+ const validate = /*#__PURE__*/Function_dist_effectFunction.dual(args => core.isEffect(args[1]), (self, that, options) => validateWith(self, that, (a, b) => [a, b], options));
2540
+
2541
+ /** @internal */
2542
+ const validateWith = /*#__PURE__*/Function_dist_effectFunction.dual(args => core.isEffect(args[1]), (self, that, f, options) => core.flatten(zipWithOptions(core.exit(self), core.exit(that), (ea, eb) => core.exitZipWith(ea, eb, {
2543
+ onSuccess: f,
2544
+ onFailure: (ca, cb) => options?.concurrent ? core.parallel(ca, cb) : core.sequential(ca, cb)
2545
+ }), options)));
2546
+
2547
+ /* @internal */
2548
+ const validateFirst = /*#__PURE__*/Function_dist_effectFunction.dual(args => Predicate_dist_effectPredicate.isIterable(args[0]), (elements, f, options) => core.flip(forEachOptions(elements, (a, i) => core.flip(f(a, i)), options)));
2549
+
2550
+ /* @internal */
2551
+ const withClockScoped = value => fiberRefLocallyScopedWith(defaultServices.currentServices, Context_dist_effectContext.add(defaultServices.clockTag, value));
2552
+
2553
+ /* @internal */
2554
+ const withConfigProviderScoped = value => fiberRefLocallyScopedWith(defaultServices.currentServices, Context_dist_effectContext.add(configProvider.configProviderTag, value));
2555
+
2556
+ /* @internal */
2557
+ const withEarlyRelease = self => scopeWith(parent => core.flatMap(core.scopeFork(parent, ExecutionStrategy_dist_effectExecutionStrategy.sequential), child => Function_dist_effectFunction.pipe(self, scopeExtend(child), core.map(value => [core.fiberIdWith(fiberId => core.scopeClose(child, core.exitInterrupt(fiberId))), value]))));
2558
+
2559
+ /** @internal */
2560
+ const zipOptions = /*#__PURE__*/Function_dist_effectFunction.dual(args => core.isEffect(args[1]), (self, that, options) => zipWithOptions(self, that, (a, b) => [a, b], options));
2561
+
2562
+ /** @internal */
2563
+ const zipLeftOptions = /*#__PURE__*/Function_dist_effectFunction.dual(args => core.isEffect(args[1]), (self, that, options) => zipWithOptions(self, that, (a, _) => a, options));
2564
+
2565
+ /** @internal */
2566
+ const zipRightOptions = /*#__PURE__*/Function_dist_effectFunction.dual(args => core.isEffect(args[1]), (self, that, options) => zipWithOptions(self, that, (_, b) => b, options));
2567
+
2568
+ /** @internal */
2569
+ const zipWithOptions = /*#__PURE__*/Function_dist_effectFunction.dual(args => core.isEffect(args[1]), (self, that, f, options) => core.map(all([self, that], {
2570
+ concurrency: options?.concurrent ? 2 : 1,
2571
+ batching: options?.batching
2572
+ }), ([a, a2]) => f(a, a2)));
2573
+
2574
+ /* @internal */
2575
+ const withRuntimeFlagsScoped = update => {
2576
+ if (update === RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.empty) {
2577
+ return core.unit;
2578
+ }
2579
+ return Function_dist_effectFunction.pipe(core.runtimeFlags, core.flatMap(runtimeFlags => {
2580
+ const updatedRuntimeFlags = RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.patch(runtimeFlags, update);
2581
+ const revertRuntimeFlags = RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.diff(updatedRuntimeFlags, runtimeFlags);
2582
+ return Function_dist_effectFunction.pipe(core.updateRuntimeFlags(update), core.zipRight(addFinalizer(() => core.updateRuntimeFlags(revertRuntimeFlags))), core.asUnit);
2583
+ }), core.uninterruptible);
2584
+ };
2585
+
2586
+ // circular with ReleaseMap
2587
+
2588
+ /* @internal */
2589
+ const releaseMapReleaseAll = (strategy, exit) => self => core.suspend(() => {
2590
+ switch (self.state._tag) {
2591
+ case "Exited":
2592
+ {
2593
+ return core.unit;
2594
+ }
2595
+ case "Running":
2596
+ {
2597
+ const finalizersMap = self.state.finalizers;
2598
+ const update = self.state.update;
2599
+ const finalizers = Array.from(finalizersMap.keys()).sort((a, b) => b - a).map(key => finalizersMap.get(key));
2600
+ self.state = {
2601
+ _tag: "Exited",
2602
+ nextKey: self.state.nextKey,
2603
+ exit,
2604
+ update
2605
+ };
2606
+ return ExecutionStrategy_dist_effectExecutionStrategy.isSequential(strategy) ? Function_dist_effectFunction.pipe(finalizers, core.forEachSequential(fin => core.exit(update(fin)(exit))), core.flatMap(results => Function_dist_effectFunction.pipe(core.exitCollectAll(results), Option_dist_effectOption.map(core.exitAsUnit), Option_dist_effectOption.getOrElse(() => core.exitUnit)))) : ExecutionStrategy_dist_effectExecutionStrategy.isParallel(strategy) ? Function_dist_effectFunction.pipe(forEachParUnbounded(finalizers, fin => core.exit(update(fin)(exit)), false), core.flatMap(results => Function_dist_effectFunction.pipe(core.exitCollectAll(results, {
2607
+ parallel: true
2608
+ }), Option_dist_effectOption.map(core.exitAsUnit), Option_dist_effectOption.getOrElse(() => core.exitUnit)))) : Function_dist_effectFunction.pipe(forEachParN(finalizers, strategy.parallelism, fin => core.exit(update(fin)(exit)), false), core.flatMap(results => Function_dist_effectFunction.pipe(core.exitCollectAll(results, {
2609
+ parallel: true
2610
+ }), Option_dist_effectOption.map(core.exitAsUnit), Option_dist_effectOption.getOrElse(() => core.exitUnit))));
2611
+ }
2612
+ }
2613
+ });
2614
+
2615
+ // circular with Scope
2616
+
2617
+ /** @internal */
2618
+ const scopeTag = /*#__PURE__*/Context_dist_effectContext.Tag(core.ScopeTypeId);
2619
+
2620
+ /* @internal */
2621
+ const scope = scopeTag;
2622
+
2623
+ /* @internal */
2624
+ const scopeMake = (strategy = ExecutionStrategy_dist_effectExecutionStrategy.sequential) => core.map(core.releaseMapMake, rm => ({
2625
+ [core.ScopeTypeId]: core.ScopeTypeId,
2626
+ [core.CloseableScopeTypeId]: core.CloseableScopeTypeId,
2627
+ strategy,
2628
+ pipe() {
2629
+ return Pipeable_dist_effectPipeable.pipeArguments(this, arguments);
2630
+ },
2631
+ fork: strategy => core.uninterruptible(Function_dist_effectFunction.pipe(scopeMake(strategy), core.flatMap(scope => Function_dist_effectFunction.pipe(core.releaseMapAdd(rm, exit => core.scopeClose(scope, exit)), core.tap(fin => core.scopeAddFinalizerExit(scope, fin)), core.as(scope))))),
2632
+ close: exit => core.asUnit(releaseMapReleaseAll(strategy, exit)(rm)),
2633
+ addFinalizer: fin => core.asUnit(core.releaseMapAdd(fin)(rm))
2634
+ }));
2635
+
2636
+ /* @internal */
2637
+ const scopeExtend = /*#__PURE__*/Function_dist_effectFunction.dual(2, (effect, scope) => core.mapInputContext(effect,
2638
+ // @ts-expect-error
2639
+ Context_dist_effectContext.merge(Context_dist_effectContext.make(scopeTag, scope))));
2640
+
2641
+ /* @internal */
2642
+ const scopeUse = /*#__PURE__*/Function_dist_effectFunction.dual(2, (effect, scope) => Function_dist_effectFunction.pipe(effect, scopeExtend(scope), core.onExit(exit => scope.close(exit))));
2643
+
2644
+ // circular with Supervisor
2645
+
2646
+ /** @internal */
2647
+ const fiberRefUnsafeMakeSupervisor = initial => core.fiberRefUnsafeMakePatch(initial, {
2648
+ differ: differ,
2649
+ fork: empty
2650
+ });
2651
+
2652
+ // circular with FiberRef
2653
+
2654
+ /* @internal */
2655
+ const fiberRefLocallyScoped = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, value) => core.asUnit(acquireRelease(core.flatMap(core.fiberRefGet(self), oldValue => core.as(core.fiberRefSet(self, value), oldValue)), oldValue => core.fiberRefSet(self, oldValue))));
2656
+
2657
+ /* @internal */
2658
+ const fiberRefLocallyScopedWith = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, f) => core.fiberRefGetWith(self, a => fiberRefLocallyScoped(self, f(a))));
2659
+
2660
+ /* @internal */
2661
+ const fiberRefMake = (initial, options) => fiberRefMakeWith(() => core.fiberRefUnsafeMake(initial, options));
2662
+
2663
+ /* @internal */
2664
+ const fiberRefMakeWith = ref => acquireRelease(core.tap(core.sync(ref), ref => core.fiberRefUpdate(ref, Function_dist_effectFunction.identity)), fiberRef => core.fiberRefDelete(fiberRef));
2665
+
2666
+ /* @internal */
2667
+ const fiberRefMakeContext = initial => fiberRefMakeWith(() => core.fiberRefUnsafeMakeContext(initial));
2668
+
2669
+ /* @internal */
2670
+ const fiberRefMakeRuntimeFlags = initial => fiberRefMakeWith(() => core.fiberRefUnsafeMakeRuntimeFlags(initial));
2671
+
2672
+ /** @internal */
2673
+ const currentRuntimeFlags = /*#__PURE__*/core.fiberRefUnsafeMakeRuntimeFlags(RuntimeFlagsPatch_dist_effectRuntimeFlagsPatch.none);
2674
+
2675
+ /** @internal */
2676
+ const currentSupervisor = /*#__PURE__*/fiberRefUnsafeMakeSupervisor(none);
2677
+
2678
+ // circular with Fiber
2679
+
2680
+ /* @internal */
2681
+ const fiberAwaitAll = fibers => core.asUnit(fiber._await(fiberAll(fibers)));
2682
+
2683
+ /** @internal */
2684
+ const fiberAll = fibers => ({
2685
+ [fiber.FiberTypeId]: fiber.fiberVariance,
2686
+ id: () => ReadonlyArray_dist_effectReadonlyArray.fromIterable(fibers).reduce((id, fiber) => FiberId_dist_effectFiberId.combine(id, fiber.id()), FiberId_dist_effectFiberId.none),
2687
+ await: () => core.exit(forEachParUnbounded(fibers, fiber => core.flatten(fiber.await()), false)),
2688
+ children: () => core.map(forEachParUnbounded(fibers, fiber => fiber.children(), false), ReadonlyArray_dist_effectReadonlyArray.flatten),
2689
+ inheritAll: () => core.forEachSequentialDiscard(fibers, fiber => fiber.inheritAll()),
2690
+ poll: () => core.map(core.forEachSequential(fibers, fiber => fiber.poll()), ReadonlyArray_dist_effectReadonlyArray.reduceRight(Option_dist_effectOption.some(core.exitSucceed(new Array())), (optionB, optionA) => {
2691
+ switch (optionA._tag) {
2692
+ case "None":
2693
+ {
2694
+ return Option_dist_effectOption.none();
2695
+ }
2696
+ case "Some":
2697
+ {
2698
+ switch (optionB._tag) {
2699
+ case "None":
2700
+ {
2701
+ return Option_dist_effectOption.none();
2702
+ }
2703
+ case "Some":
2704
+ {
2705
+ return Option_dist_effectOption.some(core.exitZipWith(optionA.value, optionB.value, {
2706
+ onSuccess: (a, chunk) => [a, ...chunk],
2707
+ onFailure: core.parallel
2708
+ }));
2709
+ }
2710
+ }
2711
+ }
2712
+ }
2713
+ })),
2714
+ interruptAsFork: fiberId => core.forEachSequentialDiscard(fibers, fiber => fiber.interruptAsFork(fiberId)),
2715
+ pipe() {
2716
+ return Pipeable_dist_effectPipeable.pipeArguments(this, arguments);
2717
+ }
2718
+ });
2719
+
2720
+ /* @internal */
2721
+ const fiberInterruptFork = self => core.asUnit(forkDaemon(core.interruptFiber(self)));
2722
+
2723
+ /* @internal */
2724
+ const fiberJoinAll = fibers => core.asUnit(fiber.join(fiberAll(fibers)));
2725
+
2726
+ /* @internal */
2727
+ const fiberScoped = self => acquireRelease(core.succeed(self), core.interruptFiber);
2728
+
2729
+ //
2730
+ // circular race
2731
+ //
2732
+
2733
+ /** @internal */
2734
+ const raceWith = /*#__PURE__*/Function_dist_effectFunction.dual(3, (self, other, options) => raceFibersWith(self, other, {
2735
+ onSelfWin: (winner, loser) => core.flatMap(winner.await(), exit => {
2736
+ switch (exit._tag) {
2737
+ case Effectable.OP_SUCCESS:
2738
+ {
2739
+ return core.flatMap(winner.inheritAll(), () => options.onSelfDone(exit, loser));
2740
+ }
2741
+ case Effectable.OP_FAILURE:
2742
+ {
2743
+ return options.onSelfDone(exit, loser);
2744
+ }
2745
+ }
2746
+ }),
2747
+ onOtherWin: (winner, loser) => core.flatMap(winner.await(), exit => {
2748
+ switch (exit._tag) {
2749
+ case Effectable.OP_SUCCESS:
2750
+ {
2751
+ return core.flatMap(winner.inheritAll(), () => options.onOtherDone(exit, loser));
2752
+ }
2753
+ case Effectable.OP_FAILURE:
2754
+ {
2755
+ return options.onOtherDone(exit, loser);
2756
+ }
2757
+ }
2758
+ })
2759
+ }));
2760
+
2761
+ /** @internal */
2762
+ const disconnect = self => core.uninterruptibleMask(restore => core.fiberIdWith(fiberId => core.flatMap(forkDaemon(restore(self)), fiber$1 => Function_dist_effectFunction.pipe(restore(fiber.join(fiber$1)), core.onInterrupt(() => Function_dist_effectFunction.pipe(fiber$1, fiber.interruptAsFork(fiberId)))))));
2763
+
2764
+ /** @internal */
2765
+ const race = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, that) => core.fiberIdWith(parentFiberId => raceWith(self, that, {
2766
+ onSelfDone: (exit, right) => core.exitMatchEffect(exit, {
2767
+ onFailure: cause => Function_dist_effectFunction.pipe(fiber.join(right), coreEffect.mapErrorCause(cause2 => core.parallel(cause, cause2))),
2768
+ onSuccess: value => Function_dist_effectFunction.pipe(right, core.interruptAsFiber(parentFiberId), core.as(value))
2769
+ }),
2770
+ onOtherDone: (exit, left) => core.exitMatchEffect(exit, {
2771
+ onFailure: cause => Function_dist_effectFunction.pipe(fiber.join(left), coreEffect.mapErrorCause(cause2 => core.parallel(cause2, cause))),
2772
+ onSuccess: value => Function_dist_effectFunction.pipe(left, core.interruptAsFiber(parentFiberId), core.as(value))
2773
+ })
2774
+ })));
2775
+
2776
+ /** @internal */
2777
+ const raceFibersWith = /*#__PURE__*/Function_dist_effectFunction.dual(3, (self, other, options) => core.withFiberRuntime((parentFiber, parentStatus) => {
2778
+ const parentRuntimeFlags = parentStatus.runtimeFlags;
2779
+ const raceIndicator = MutableRef_dist_effectMutableRef.make(true);
2780
+ const leftFiber = unsafeMakeChildFiber(self, parentFiber, parentRuntimeFlags, options.selfScope);
2781
+ const rightFiber = unsafeMakeChildFiber(other, parentFiber, parentRuntimeFlags, options.otherScope);
2782
+ return core.async(cb => {
2783
+ leftFiber.addObserver(() => completeRace(leftFiber, rightFiber, options.onSelfWin, raceIndicator, cb));
2784
+ rightFiber.addObserver(() => completeRace(rightFiber, leftFiber, options.onOtherWin, raceIndicator, cb));
2785
+ leftFiber.startFork(self);
2786
+ rightFiber.startFork(other);
2787
+ }, FiberId_dist_effectFiberId.combine(leftFiber.id(), rightFiber.id()));
2788
+ }));
2789
+ const completeRace = (winner, loser, cont, ab, cb) => {
2790
+ if (MutableRef_dist_effectMutableRef.compareAndSet(true, false)(ab)) {
2791
+ cb(cont(winner, loser));
2792
+ }
2793
+ };
2794
+
2795
+ /** @internal */
2796
+ const ensuring = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, finalizer) => core.uninterruptibleMask(restore => core.matchCauseEffect(restore(self), {
2797
+ onFailure: cause1 => core.matchCauseEffect(finalizer, {
2798
+ onFailure: cause2 => core.failCause(core.sequential(cause1, cause2)),
2799
+ onSuccess: () => core.failCause(cause1)
2800
+ }),
2801
+ onSuccess: a => core.as(finalizer, a)
2802
+ })));
2803
+
2804
+ /** @internal */
2805
+ const invokeWithInterrupt = (dataSource, all) => core.fiberIdWith(id => core.flatMap(core.flatMap(forkDaemon(core.interruptible(dataSource)), processing => core.async(cb => {
2806
+ const counts = all.map(_ => _.listeners.count);
2807
+ const checkDone = () => {
2808
+ if (counts.every(count => count === 0)) {
2809
+ cleanup.forEach(f => f());
2810
+ cb(core.interruptFiber(processing));
2811
+ }
2812
+ };
2813
+ processing.addObserver(exit => {
2814
+ cleanup.forEach(f => f());
2815
+ cb(exit);
2816
+ });
2817
+ const cleanup = all.map((r, i) => {
2818
+ const observer = count => {
2819
+ counts[i] = count;
2820
+ checkDone();
2821
+ };
2822
+ r.listeners.addObserver(observer);
2823
+ return () => r.listeners.removeObserver(observer);
2824
+ });
2825
+ checkDone();
2826
+ return core.sync(() => {
2827
+ cleanup.forEach(f => f());
2828
+ });
2829
+ })), () => core.suspend(() => {
2830
+ const residual = all.flatMap(entry => {
2831
+ if (!entry.state.completed) {
2832
+ return [entry];
2833
+ }
2834
+ return [];
2835
+ });
2836
+ return core.forEachSequentialDiscard(residual, entry => complete(entry.request, core.exitInterrupt(id)));
2837
+ })));
2838
+
2839
+ /** @internal */
2840
+ const interruptWhenPossible = /*#__PURE__*/Function_dist_effectFunction.dual(2, (self, all) => core.fiberRefGetWith(currentRequestMap, map => core.suspend(() => {
2841
+ const entries = ReadonlyArray_dist_effectReadonlyArray.fromIterable(all).flatMap(_ => map.has(_) ? [map.get(_)] : []);
2842
+ return invokeWithInterrupt(self, entries);
2843
+ })));
2844
+
2845
+ // circular Tracer
2846
+
2847
+ /** @internal */
2848
+ const useSpanScoped = (name, options) => acquireRelease(coreEffect.makeSpan(name, options), (span, exit) => core.flatMap(coreEffect.currentTimeNanosTracing, endTime => core.sync(() => span.end(endTime, exit))));
2849
+
2850
+ /* @internal */
2851
+ const withSpanScoped = (name, options) => core.flatMap(useSpanScoped(name, options), span => fiberRefLocallyScopedWith(core.currentTracerSpan, List_dist_effectList.prepend(span)));
2852
+
2853
+ /* @internal */
2854
+ const withTracerScoped = value => fiberRefLocallyScopedWith(defaultServices.currentServices, Context_dist_effectContext.add(defaultServices.tracerTag, value));
2855
+
2856
+ /* @internal */
2857
+ const withParentSpanScoped = span => fiberRefLocallyScopedWith(core.currentTracerSpan, List_dist_effectList.prepend(span));
2858
+
2859
+ exports.FiberRuntime = FiberRuntime;
2860
+ exports.Listeners = Listeners;
2861
+ exports.LoggerTypeId = LoggerTypeId;
2862
+ exports.MetricTypeId = MetricTypeId;
2863
+ exports.ProxySupervisor = ProxySupervisor;
2864
+ exports.RequestTypeId = RequestTypeId;
2865
+ exports.SupervisorTypeId = SupervisorTypeId;
2866
+ exports.Zip = Zip;
2867
+ exports.acquireRelease = acquireRelease;
2868
+ exports.acquireReleaseInterruptible = acquireReleaseInterruptible;
2869
+ exports.addFinalizer = addFinalizer;
2870
+ exports.all = all;
2871
+ exports.allSuccesses = allSuccesses;
2872
+ exports.allWith = allWith;
2873
+ exports.complete = complete;
2874
+ exports.completeEffect = completeEffect;
2875
+ exports.counter = counter;
2876
+ exports.currentLoggers = currentLoggers;
2877
+ exports.currentMinimumLogLevel = currentMinimumLogLevel;
2878
+ exports.currentRuntimeFlags = currentRuntimeFlags;
2879
+ exports.currentSupervisor = currentSupervisor;
2880
+ exports.daemonChildren = daemonChildren;
2881
+ exports.defaultLogger = defaultLogger;
2882
+ exports.disconnect = disconnect;
2883
+ exports.ensuring = ensuring;
2884
+ exports.exists = exists;
2885
+ exports.fail = fail;
2886
+ exports.fiberActive = fiberActive;
2887
+ exports.fiberAll = fiberAll;
2888
+ exports.fiberAwaitAll = fiberAwaitAll;
2889
+ exports.fiberFailures = fiberFailures;
2890
+ exports.fiberInterruptFork = fiberInterruptFork;
2891
+ exports.fiberJoinAll = fiberJoinAll;
2892
+ exports.fiberLifetimes = fiberLifetimes;
2893
+ exports.fiberRefLocallyScoped = fiberRefLocallyScoped;
2894
+ exports.fiberRefLocallyScopedWith = fiberRefLocallyScopedWith;
2895
+ exports.fiberRefMake = fiberRefMake;
2896
+ exports.fiberRefMakeContext = fiberRefMakeContext;
2897
+ exports.fiberRefMakeRuntimeFlags = fiberRefMakeRuntimeFlags;
2898
+ exports.fiberRefMakeWith = fiberRefMakeWith;
2899
+ exports.fiberRefUnsafeMakeSupervisor = fiberRefUnsafeMakeSupervisor;
2900
+ exports.fiberScoped = fiberScoped;
2901
+ exports.fiberStarted = fiberStarted;
2902
+ exports.fiberSuccesses = fiberSuccesses;
2903
+ exports.fibersIn = fibersIn;
2904
+ exports.filter = filter;
2905
+ exports.filterLogLevel = filterLogLevel;
2906
+ exports.finalizersMask = finalizersMask;
2907
+ exports.forEachOptions = forEachOptions;
2908
+ exports.forEachParUnbounded = forEachParUnbounded;
2909
+ exports.forEachParUnboundedDiscard = forEachParUnboundedDiscard;
2910
+ exports.fork = fork;
2911
+ exports.forkDaemon = forkDaemon;
2912
+ exports.forkWithErrorHandler = forkWithErrorHandler;
2913
+ exports.frequency = frequency;
2914
+ exports.fromEffect = fromEffect;
2915
+ exports.fromMetricKey = fromMetricKey;
2916
+ exports.gauge = gauge;
2917
+ exports.globalMetricRegistry = globalMetricRegistry;
2918
+ exports.histogram = histogram;
2919
+ exports.increment = increment;
2920
+ exports.incrementBy = incrementBy;
2921
+ exports.interruptWhenPossible = interruptWhenPossible;
2922
+ exports.invokeWithInterrupt = invokeWithInterrupt;
2923
+ exports.isRequest = isRequest;
2924
+ exports.labelMetricsScoped = labelMetricsScoped;
2925
+ exports.labelMetricsScopedSet = labelMetricsScopedSet;
2926
+ exports.logFmtLogger = logFmtLogger;
2927
+ exports.logfmtLogger = logfmtLogger;
2928
+ exports.make = make;
2929
+ exports.makeLogger = makeLogger;
2930
+ exports.map = map$1;
2931
+ exports.map$1 = map;
2932
+ exports.mapInput = mapInput$1;
2933
+ exports.mapInput$1 = mapInput;
2934
+ exports.mapType = mapType;
2935
+ exports.mergeAll = mergeAll;
2936
+ exports.none = none;
2937
+ exports.none$1 = none$1;
2938
+ exports.of = of;
2939
+ exports.parallelFinalizers = parallelFinalizers;
2940
+ exports.partition = partition;
2941
+ exports.race = race;
2942
+ exports.raceAll = raceAll;
2943
+ exports.raceFibersWith = raceFibersWith;
2944
+ exports.raceWith = raceWith;
2945
+ exports.reduceEffect = reduceEffect;
2946
+ exports.replicate = replicate;
2947
+ exports.replicateEffect = replicateEffect;
2948
+ exports.scope = scope;
2949
+ exports.scopeExtend = scopeExtend;
2950
+ exports.scopeMake = scopeMake;
2951
+ exports.scopeTag = scopeTag;
2952
+ exports.scopeUse = scopeUse;
2953
+ exports.scopeWith = scopeWith;
2954
+ exports.scopedEffect = scopedEffect;
2955
+ exports.sequentialFinalizers = sequentialFinalizers;
2956
+ exports.set = set;
2957
+ exports.simple = simple;
2958
+ exports.snapshot = snapshot;
2959
+ exports.stringLogger = stringLogger;
2960
+ exports.succeed = succeed$2;
2961
+ exports.succeed$1 = succeed$1;
2962
+ exports.succeed$2 = succeed;
2963
+ exports.summary = summary;
2964
+ exports.summaryTimestamp = summaryTimestamp;
2965
+ exports.supervisorVariance = supervisorVariance;
2966
+ exports.sync = sync$1;
2967
+ exports.sync$1 = sync;
2968
+ exports.tagMetricsScoped = tagMetricsScoped;
2969
+ exports.tagged = tagged$1;
2970
+ exports.tagged$1 = tagged;
2971
+ exports.taggedWithLabels = taggedWithLabels;
2972
+ exports.taggedWithLabelsInput = taggedWithLabelsInput;
2973
+ exports.timer = timer;
2974
+ exports.timerWithBoundaries = timerWithBoundaries;
2975
+ exports.tracerLogger = tracerLogger;
2976
+ exports.track = track;
2977
+ exports.trackAll = trackAll;
2978
+ exports.trackDefect = trackDefect;
2979
+ exports.trackDefectWith = trackDefectWith;
2980
+ exports.trackDuration = trackDuration;
2981
+ exports.trackDurationWith = trackDurationWith;
2982
+ exports.trackError = trackError;
2983
+ exports.trackErrorWith = trackErrorWith;
2984
+ exports.trackSuccess = trackSuccess;
2985
+ exports.trackSuccessWith = trackSuccessWith;
2986
+ exports.unsafeSnapshot = unsafeSnapshot;
2987
+ exports.unsafeTrack = unsafeTrack;
2988
+ exports.update = update;
2989
+ exports.useSpanScoped = useSpanScoped;
2990
+ exports.using = using;
2991
+ exports.validate = validate;
2992
+ exports.validateAll = validateAll;
2993
+ exports.validateFirst = validateFirst;
2994
+ exports.validateWith = validateWith;
2995
+ exports.value = value;
2996
+ exports.withClockScoped = withClockScoped;
2997
+ exports.withConfigProviderScoped = withConfigProviderScoped;
2998
+ exports.withConstantInput = withConstantInput;
2999
+ exports.withEarlyRelease = withEarlyRelease;
3000
+ exports.withNow = withNow;
3001
+ exports.withParentSpanScoped = withParentSpanScoped;
3002
+ exports.withRuntimeFlagsScoped = withRuntimeFlagsScoped;
3003
+ exports.withSpanScoped = withSpanScoped;
3004
+ exports.withTracerScoped = withTracerScoped;
3005
+ exports.zip = zip$1;
3006
+ exports.zip$1 = zip;
3007
+ exports.zipLeft = zipLeft;
3008
+ exports.zipLeftOptions = zipLeftOptions;
3009
+ exports.zipOptions = zipOptions;
3010
+ exports.zipRight = zipRight;
3011
+ exports.zipRightOptions = zipRightOptions;
3012
+ exports.zipWithOptions = zipWithOptions;