effect 2.0.0-next.5 → 2.0.0-next.50

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 (2384) hide show
  1. package/BigInt/dist/effect-BigInt.cjs.d.mts +2 -0
  2. package/BigInt/dist/effect-BigInt.cjs.d.mts.map +1 -0
  3. package/BigInt/dist/effect-BigInt.cjs.d.ts +2 -0
  4. package/BigInt/dist/effect-BigInt.cjs.d.ts.map +1 -0
  5. package/BigInt/dist/effect-BigInt.cjs.dev.js +520 -0
  6. package/BigInt/dist/effect-BigInt.cjs.js +7 -0
  7. package/BigInt/dist/effect-BigInt.cjs.mjs +28 -0
  8. package/BigInt/dist/effect-BigInt.cjs.prod.js +520 -0
  9. package/BigInt/dist/effect-BigInt.esm.js +482 -0
  10. package/BigInt/package.json +4 -0
  11. package/Boolean/dist/effect-Boolean.cjs.d.mts +2 -0
  12. package/Boolean/dist/effect-Boolean.cjs.d.mts.map +1 -0
  13. package/Boolean/dist/effect-Boolean.cjs.d.ts +2 -0
  14. package/Boolean/dist/effect-Boolean.cjs.d.ts.map +1 -0
  15. package/Boolean/dist/effect-Boolean.cjs.dev.js +247 -0
  16. package/Boolean/dist/effect-Boolean.cjs.js +7 -0
  17. package/Boolean/dist/effect-Boolean.cjs.mjs +16 -0
  18. package/Boolean/dist/effect-Boolean.cjs.prod.js +247 -0
  19. package/Boolean/dist/effect-Boolean.esm.js +230 -0
  20. package/Boolean/package.json +4 -0
  21. package/Brand/dist/effect-Brand.cjs.d.mts +2 -0
  22. package/Brand/dist/effect-Brand.cjs.d.mts.map +1 -0
  23. package/Brand/dist/effect-Brand.cjs.d.ts +2 -0
  24. package/Brand/dist/effect-Brand.cjs.d.ts.map +1 -0
  25. package/Brand/dist/effect-Brand.cjs.dev.js +228 -0
  26. package/Brand/dist/effect-Brand.cjs.js +7 -0
  27. package/Brand/dist/effect-Brand.cjs.mjs +9 -0
  28. package/Brand/dist/effect-Brand.cjs.prod.js +228 -0
  29. package/Brand/dist/effect-Brand.esm.js +204 -0
  30. package/Brand/package.json +4 -0
  31. package/Cache/dist/effect-Cache.cjs.d.mts +2 -0
  32. package/Cache/dist/effect-Cache.cjs.d.mts.map +1 -0
  33. package/Cache/dist/effect-Cache.cjs.d.ts +2 -0
  34. package/Cache/dist/effect-Cache.cjs.d.ts.map +1 -0
  35. package/Cache/dist/effect-Cache.cjs.dev.js +191 -0
  36. package/Cache/dist/effect-Cache.cjs.js +7 -0
  37. package/Cache/dist/effect-Cache.cjs.mjs +7 -0
  38. package/Cache/dist/effect-Cache.cjs.prod.js +191 -0
  39. package/Cache/dist/effect-Cache.esm.js +111 -0
  40. package/Cache/package.json +4 -0
  41. package/Cause/dist/effect-Cause.cjs.d.mts +2 -0
  42. package/Cause/dist/effect-Cause.cjs.d.mts.map +1 -0
  43. package/Cause/dist/effect-Cause.cjs.d.ts +2 -0
  44. package/Cause/dist/effect-Cause.cjs.d.ts.map +1 -0
  45. package/Cause/dist/effect-Cause.cjs.dev.js +759 -0
  46. package/Cause/dist/effect-Cause.cjs.js +7 -0
  47. package/Cause/dist/effect-Cause.cjs.mjs +61 -0
  48. package/Cause/dist/effect-Cause.cjs.prod.js +759 -0
  49. package/Cause/dist/effect-Cause.esm.js +668 -0
  50. package/Cause/package.json +4 -0
  51. package/Channel/dist/effect-Channel.cjs.d.mts +2 -0
  52. package/Channel/dist/effect-Channel.cjs.d.mts.map +1 -0
  53. package/Channel/dist/effect-Channel.cjs.d.ts +2 -0
  54. package/Channel/dist/effect-Channel.cjs.d.ts.map +1 -0
  55. package/Channel/dist/effect-Channel.cjs.dev.js +1221 -0
  56. package/Channel/dist/effect-Channel.cjs.js +7 -0
  57. package/Channel/dist/effect-Channel.cjs.mjs +109 -0
  58. package/Channel/dist/effect-Channel.cjs.prod.js +1221 -0
  59. package/Channel/dist/effect-Channel.esm.js +1009 -0
  60. package/Channel/package.json +4 -0
  61. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.d.mts +2 -0
  62. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.d.mts.map +1 -0
  63. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.d.ts +2 -0
  64. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.d.ts.map +1 -0
  65. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.dev.js +125 -0
  66. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.js +7 -0
  67. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.mjs +11 -0
  68. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.prod.js +125 -0
  69. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.esm.js +112 -0
  70. package/ChannelChildExecutorDecision/package.json +4 -0
  71. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.d.mts +2 -0
  72. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.d.mts.map +1 -0
  73. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.d.ts +2 -0
  74. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.d.ts.map +1 -0
  75. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.dev.js +70 -0
  76. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.js +7 -0
  77. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.mjs +8 -0
  78. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.prod.js +70 -0
  79. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.esm.js +60 -0
  80. package/ChannelMergeDecision/package.json +4 -0
  81. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.d.mts +2 -0
  82. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.d.mts.map +1 -0
  83. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.d.ts +2 -0
  84. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.d.ts.map +1 -0
  85. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.dev.js +114 -0
  86. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.js +7 -0
  87. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.mjs +11 -0
  88. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.prod.js +114 -0
  89. package/ChannelMergeState/dist/effect-ChannelMergeState.esm.js +101 -0
  90. package/ChannelMergeState/package.json +4 -0
  91. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.d.mts +2 -0
  92. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.d.mts.map +1 -0
  93. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.d.ts +2 -0
  94. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.d.ts.map +1 -0
  95. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.dev.js +95 -0
  96. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.js +7 -0
  97. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.mjs +9 -0
  98. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.prod.js +95 -0
  99. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.esm.js +84 -0
  100. package/ChannelMergeStrategy/package.json +4 -0
  101. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.d.mts +2 -0
  102. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.d.mts.map +1 -0
  103. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.d.ts +2 -0
  104. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.d.ts.map +1 -0
  105. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.dev.js +138 -0
  106. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.js +7 -0
  107. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.mjs +3 -0
  108. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.prod.js +138 -0
  109. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.esm.js +47 -0
  110. package/ChannelSingleProducerAsyncInput/package.json +4 -0
  111. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.d.mts +2 -0
  112. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.d.mts.map +1 -0
  113. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.d.ts +2 -0
  114. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.d.ts.map +1 -0
  115. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.dev.js +95 -0
  116. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.js +7 -0
  117. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.mjs +9 -0
  118. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.prod.js +95 -0
  119. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.esm.js +84 -0
  120. package/ChannelUpstreamPullRequest/package.json +4 -0
  121. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.d.mts +2 -0
  122. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.d.mts.map +1 -0
  123. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.d.ts +2 -0
  124. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.d.ts.map +1 -0
  125. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.dev.js +94 -0
  126. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.js +7 -0
  127. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.mjs +9 -0
  128. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.prod.js +94 -0
  129. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.esm.js +83 -0
  130. package/ChannelUpstreamPullStrategy/package.json +4 -0
  131. package/Chunk/dist/effect-Chunk.cjs.d.mts +2 -0
  132. package/Chunk/dist/effect-Chunk.cjs.d.mts.map +1 -0
  133. package/Chunk/dist/effect-Chunk.cjs.d.ts +2 -0
  134. package/Chunk/dist/effect-Chunk.cjs.d.ts.map +1 -0
  135. package/Chunk/dist/effect-Chunk.cjs.dev.js +1183 -0
  136. package/Chunk/dist/effect-Chunk.cjs.js +7 -0
  137. package/Chunk/dist/effect-Chunk.cjs.mjs +82 -0
  138. package/Chunk/dist/effect-Chunk.cjs.prod.js +1183 -0
  139. package/Chunk/dist/effect-Chunk.esm.js +1092 -0
  140. package/Chunk/package.json +4 -0
  141. package/Clock/dist/effect-Clock.cjs.d.mts +2 -0
  142. package/Clock/dist/effect-Clock.cjs.d.mts.map +1 -0
  143. package/Clock/dist/effect-Clock.cjs.d.ts +2 -0
  144. package/Clock/dist/effect-Clock.cjs.d.ts.map +1 -0
  145. package/Clock/dist/effect-Clock.cjs.dev.js +127 -0
  146. package/Clock/dist/effect-Clock.cjs.js +7 -0
  147. package/Clock/dist/effect-Clock.cjs.mjs +9 -0
  148. package/Clock/dist/effect-Clock.cjs.prod.js +127 -0
  149. package/Clock/dist/effect-Clock.esm.js +78 -0
  150. package/Clock/package.json +4 -0
  151. package/Config/dist/effect-Config.cjs.d.mts +2 -0
  152. package/Config/dist/effect-Config.cjs.d.mts.map +1 -0
  153. package/Config/dist/effect-Config.cjs.d.ts +2 -0
  154. package/Config/dist/effect-Config.cjs.d.ts.map +1 -0
  155. package/Config/dist/effect-Config.cjs.dev.js +391 -0
  156. package/Config/dist/effect-Config.cjs.js +7 -0
  157. package/Config/dist/effect-Config.cjs.mjs +35 -0
  158. package/Config/dist/effect-Config.cjs.prod.js +391 -0
  159. package/Config/dist/effect-Config.esm.js +321 -0
  160. package/Config/package.json +4 -0
  161. package/ConfigError/dist/effect-ConfigError.cjs.d.mts +2 -0
  162. package/ConfigError/dist/effect-ConfigError.cjs.d.mts.map +1 -0
  163. package/ConfigError/dist/effect-ConfigError.cjs.d.ts +2 -0
  164. package/ConfigError/dist/effect-ConfigError.cjs.d.ts.map +1 -0
  165. package/ConfigError/dist/effect-ConfigError.cjs.dev.js +223 -0
  166. package/ConfigError/dist/effect-ConfigError.cjs.js +7 -0
  167. package/ConfigError/dist/effect-ConfigError.cjs.mjs +19 -0
  168. package/ConfigError/dist/effect-ConfigError.cjs.prod.js +223 -0
  169. package/ConfigError/dist/effect-ConfigError.esm.js +185 -0
  170. package/ConfigError/package.json +4 -0
  171. package/ConfigProvider/dist/effect-ConfigProvider.cjs.d.mts +2 -0
  172. package/ConfigProvider/dist/effect-ConfigProvider.cjs.d.mts.map +1 -0
  173. package/ConfigProvider/dist/effect-ConfigProvider.cjs.d.ts +2 -0
  174. package/ConfigProvider/dist/effect-ConfigProvider.cjs.d.ts.map +1 -0
  175. package/ConfigProvider/dist/effect-ConfigProvider.cjs.dev.js +256 -0
  176. package/ConfigProvider/dist/effect-ConfigProvider.cjs.js +7 -0
  177. package/ConfigProvider/dist/effect-ConfigProvider.cjs.mjs +20 -0
  178. package/ConfigProvider/dist/effect-ConfigProvider.cjs.prod.js +256 -0
  179. package/ConfigProvider/dist/effect-ConfigProvider.esm.js +198 -0
  180. package/ConfigProvider/package.json +4 -0
  181. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.d.mts +2 -0
  182. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.d.mts.map +1 -0
  183. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.d.ts +2 -0
  184. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.d.ts.map +1 -0
  185. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.dev.js +99 -0
  186. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.js +7 -0
  187. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.mjs +7 -0
  188. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.prod.js +99 -0
  189. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.esm.js +70 -0
  190. package/ConfigProviderPathPatch/package.json +4 -0
  191. package/ConfigSecret/dist/effect-ConfigSecret.cjs.d.mts +2 -0
  192. package/ConfigSecret/dist/effect-ConfigSecret.cjs.d.mts.map +1 -0
  193. package/ConfigSecret/dist/effect-ConfigSecret.cjs.d.ts +2 -0
  194. package/ConfigSecret/dist/effect-ConfigSecret.cjs.d.ts.map +1 -0
  195. package/ConfigSecret/dist/effect-ConfigSecret.cjs.dev.js +92 -0
  196. package/ConfigSecret/dist/effect-ConfigSecret.cjs.js +7 -0
  197. package/ConfigSecret/dist/effect-ConfigSecret.cjs.mjs +9 -0
  198. package/ConfigSecret/dist/effect-ConfigSecret.cjs.prod.js +92 -0
  199. package/ConfigSecret/dist/effect-ConfigSecret.esm.js +63 -0
  200. package/ConfigSecret/package.json +4 -0
  201. package/Console/dist/effect-Console.cjs.d.mts +2 -0
  202. package/Console/dist/effect-Console.cjs.d.mts.map +1 -0
  203. package/Console/dist/effect-Console.cjs.d.ts +2 -0
  204. package/Console/dist/effect-Console.cjs.d.ts.map +1 -0
  205. package/Console/dist/effect-Console.cjs.dev.js +322 -0
  206. package/Console/dist/effect-Console.cjs.js +7 -0
  207. package/Console/dist/effect-Console.cjs.mjs +24 -0
  208. package/Console/dist/effect-Console.cjs.prod.js +322 -0
  209. package/Console/dist/effect-Console.esm.js +154 -0
  210. package/Console/package.json +4 -0
  211. package/Context/dist/effect-Context.cjs.d.mts +2 -0
  212. package/Context/dist/effect-Context.cjs.d.mts.map +1 -0
  213. package/Context/dist/effect-Context.cjs.d.ts +2 -0
  214. package/Context/dist/effect-Context.cjs.d.ts.map +1 -0
  215. package/Context/dist/effect-Context.cjs.dev.js +321 -0
  216. package/Context/dist/effect-Context.cjs.js +7 -0
  217. package/Context/dist/effect-Context.cjs.mjs +15 -0
  218. package/Context/dist/effect-Context.cjs.prod.js +321 -0
  219. package/Context/dist/effect-Context.esm.js +295 -0
  220. package/Context/package.json +4 -0
  221. package/Data/dist/effect-Data.cjs.d.mts +2 -0
  222. package/Data/dist/effect-Data.cjs.d.mts.map +1 -0
  223. package/Data/dist/effect-Data.cjs.d.ts +2 -0
  224. package/Data/dist/effect-Data.cjs.d.ts.map +1 -0
  225. package/Data/dist/effect-Data.cjs.dev.js +318 -0
  226. package/Data/dist/effect-Data.cjs.js +7 -0
  227. package/Data/dist/effect-Data.cjs.mjs +15 -0
  228. package/Data/dist/effect-Data.cjs.prod.js +318 -0
  229. package/Data/dist/effect-Data.esm.js +217 -0
  230. package/Data/package.json +4 -0
  231. package/DefaultServices/dist/effect-DefaultServices.cjs.d.mts +2 -0
  232. package/DefaultServices/dist/effect-DefaultServices.cjs.d.mts.map +1 -0
  233. package/DefaultServices/dist/effect-DefaultServices.cjs.d.ts +2 -0
  234. package/DefaultServices/dist/effect-DefaultServices.cjs.d.ts.map +1 -0
  235. package/DefaultServices/dist/effect-DefaultServices.cjs.dev.js +69 -0
  236. package/DefaultServices/dist/effect-DefaultServices.cjs.js +7 -0
  237. package/DefaultServices/dist/effect-DefaultServices.cjs.mjs +4 -0
  238. package/DefaultServices/dist/effect-DefaultServices.cjs.prod.js +69 -0
  239. package/DefaultServices/dist/effect-DefaultServices.esm.js +24 -0
  240. package/DefaultServices/package.json +4 -0
  241. package/Deferred/dist/effect-Deferred.cjs.d.mts +2 -0
  242. package/Deferred/dist/effect-Deferred.cjs.d.mts.map +1 -0
  243. package/Deferred/dist/effect-Deferred.cjs.d.ts +2 -0
  244. package/Deferred/dist/effect-Deferred.cjs.d.ts.map +1 -0
  245. package/Deferred/dist/effect-Deferred.cjs.dev.js +259 -0
  246. package/Deferred/dist/effect-Deferred.cjs.js +7 -0
  247. package/Deferred/dist/effect-Deferred.cjs.mjs +23 -0
  248. package/Deferred/dist/effect-Deferred.cjs.prod.js +259 -0
  249. package/Deferred/dist/effect-Deferred.esm.js +206 -0
  250. package/Deferred/package.json +4 -0
  251. package/Differ/dist/effect-Differ.cjs.d.mts +2 -0
  252. package/Differ/dist/effect-Differ.cjs.d.mts.map +1 -0
  253. package/Differ/dist/effect-Differ.cjs.d.ts +2 -0
  254. package/Differ/dist/effect-Differ.cjs.d.ts.map +1 -0
  255. package/Differ/dist/effect-Differ.cjs.dev.js +990 -0
  256. package/Differ/dist/effect-Differ.cjs.js +7 -0
  257. package/Differ/dist/effect-Differ.cjs.mjs +17 -0
  258. package/Differ/dist/effect-Differ.cjs.prod.js +990 -0
  259. package/Differ/dist/effect-Differ.esm.js +137 -0
  260. package/Differ/package.json +4 -0
  261. package/Duration/dist/effect-Duration.cjs.d.mts +2 -0
  262. package/Duration/dist/effect-Duration.cjs.d.mts.map +1 -0
  263. package/Duration/dist/effect-Duration.cjs.d.ts +2 -0
  264. package/Duration/dist/effect-Duration.cjs.d.ts.map +1 -0
  265. package/Duration/dist/effect-Duration.cjs.dev.js +479 -0
  266. package/Duration/dist/effect-Duration.cjs.js +7 -0
  267. package/Duration/dist/effect-Duration.cjs.mjs +34 -0
  268. package/Duration/dist/effect-Duration.cjs.prod.js +479 -0
  269. package/Duration/dist/effect-Duration.esm.js +438 -0
  270. package/Duration/package.json +4 -0
  271. package/Effect/dist/effect-Effect.cjs.d.mts +2 -0
  272. package/Effect/dist/effect-Effect.cjs.d.mts.map +1 -0
  273. package/Effect/dist/effect-Effect.cjs.d.ts +2 -0
  274. package/Effect/dist/effect-Effect.cjs.d.ts.map +1 -0
  275. package/Effect/dist/effect-Effect.cjs.dev.js +3402 -0
  276. package/Effect/dist/effect-Effect.cjs.js +7 -0
  277. package/Effect/dist/effect-Effect.cjs.mjs +312 -0
  278. package/Effect/dist/effect-Effect.cjs.prod.js +3402 -0
  279. package/Effect/dist/effect-Effect.esm.js +3014 -0
  280. package/Effect/package.json +4 -0
  281. package/Effectable/dist/effect-Effectable.cjs.d.mts +2 -0
  282. package/Effectable/dist/effect-Effectable.cjs.d.mts.map +1 -0
  283. package/Effectable/dist/effect-Effectable.cjs.d.ts +2 -0
  284. package/Effectable/dist/effect-Effectable.cjs.d.ts.map +1 -0
  285. package/Effectable/dist/effect-Effectable.cjs.dev.js +106 -0
  286. package/Effectable/dist/effect-Effectable.cjs.js +7 -0
  287. package/Effectable/dist/effect-Effectable.cjs.mjs +11 -0
  288. package/Effectable/dist/effect-Effectable.cjs.prod.js +106 -0
  289. package/Effectable/dist/effect-Effectable.esm.js +87 -0
  290. package/Effectable/package.json +4 -0
  291. package/Either/dist/effect-Either.cjs.d.mts +2 -0
  292. package/Either/dist/effect-Either.cjs.d.mts.map +1 -0
  293. package/Either/dist/effect-Either.cjs.d.ts +2 -0
  294. package/Either/dist/effect-Either.cjs.d.ts.map +1 -0
  295. package/Either/dist/effect-Either.cjs.dev.js +493 -0
  296. package/Either/dist/effect-Either.cjs.js +7 -0
  297. package/Either/dist/effect-Either.cjs.mjs +31 -0
  298. package/Either/dist/effect-Either.cjs.prod.js +493 -0
  299. package/Either/dist/effect-Either.esm.js +454 -0
  300. package/Either/package.json +4 -0
  301. package/Encoding/dist/effect-Encoding.cjs.d.mts +2 -0
  302. package/Encoding/dist/effect-Encoding.cjs.d.mts.map +1 -0
  303. package/Encoding/dist/effect-Encoding.cjs.d.ts +2 -0
  304. package/Encoding/dist/effect-Encoding.cjs.d.ts.map +1 -0
  305. package/Encoding/dist/effect-Encoding.cjs.dev.js +306 -0
  306. package/Encoding/dist/effect-Encoding.cjs.js +7 -0
  307. package/Encoding/dist/effect-Encoding.cjs.mjs +14 -0
  308. package/Encoding/dist/effect-Encoding.cjs.prod.js +306 -0
  309. package/Encoding/dist/effect-Encoding.esm.js +123 -0
  310. package/Encoding/package.json +4 -0
  311. package/Equal/dist/effect-Equal.cjs.d.mts +2 -0
  312. package/Equal/dist/effect-Equal.cjs.d.mts.map +1 -0
  313. package/Equal/dist/effect-Equal.cjs.d.ts +2 -0
  314. package/Equal/dist/effect-Equal.cjs.d.ts.map +1 -0
  315. package/Equal/dist/effect-Equal.cjs.dev.js +68 -0
  316. package/Equal/dist/effect-Equal.cjs.js +7 -0
  317. package/Equal/dist/effect-Equal.cjs.mjs +6 -0
  318. package/Equal/dist/effect-Equal.cjs.prod.js +68 -0
  319. package/Equal/dist/effect-Equal.esm.js +57 -0
  320. package/Equal/package.json +4 -0
  321. package/Equivalence/dist/effect-Equivalence.cjs.d.mts +2 -0
  322. package/Equivalence/dist/effect-Equivalence.cjs.d.mts.map +1 -0
  323. package/Equivalence/dist/effect-Equivalence.cjs.d.ts +2 -0
  324. package/Equivalence/dist/effect-Equivalence.cjs.d.ts.map +1 -0
  325. package/Equivalence/dist/effect-Equivalence.cjs.dev.js +217 -0
  326. package/Equivalence/dist/effect-Equivalence.cjs.js +7 -0
  327. package/Equivalence/dist/effect-Equivalence.cjs.mjs +20 -0
  328. package/Equivalence/dist/effect-Equivalence.cjs.prod.js +217 -0
  329. package/Equivalence/dist/effect-Equivalence.esm.js +196 -0
  330. package/Equivalence/package.json +4 -0
  331. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.d.mts +2 -0
  332. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.d.mts.map +1 -0
  333. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.d.ts +2 -0
  334. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.d.ts.map +1 -0
  335. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.dev.js +16 -0
  336. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.js +7 -0
  337. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.mjs +9 -0
  338. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.prod.js +16 -0
  339. package/ExecutionStrategy/dist/effect-ExecutionStrategy.esm.js +99 -0
  340. package/ExecutionStrategy/package.json +4 -0
  341. package/Exit/dist/effect-Exit.cjs.d.mts +2 -0
  342. package/Exit/dist/effect-Exit.cjs.d.mts.map +1 -0
  343. package/Exit/dist/effect-Exit.cjs.d.ts +2 -0
  344. package/Exit/dist/effect-Exit.cjs.d.ts.map +1 -0
  345. package/Exit/dist/effect-Exit.cjs.dev.js +400 -0
  346. package/Exit/dist/effect-Exit.cjs.js +7 -0
  347. package/Exit/dist/effect-Exit.cjs.mjs +37 -0
  348. package/Exit/dist/effect-Exit.cjs.prod.js +400 -0
  349. package/Exit/dist/effect-Exit.esm.js +332 -0
  350. package/Exit/package.json +4 -0
  351. package/Fiber/dist/effect-Fiber.cjs.d.mts +2 -0
  352. package/Fiber/dist/effect-Fiber.cjs.d.mts.map +1 -0
  353. package/Fiber/dist/effect-Fiber.cjs.d.ts +2 -0
  354. package/Fiber/dist/effect-Fiber.cjs.d.ts.map +1 -0
  355. package/Fiber/dist/effect-Fiber.cjs.dev.js +544 -0
  356. package/Fiber/dist/effect-Fiber.cjs.js +7 -0
  357. package/Fiber/dist/effect-Fiber.cjs.mjs +48 -0
  358. package/Fiber/dist/effect-Fiber.cjs.prod.js +544 -0
  359. package/Fiber/dist/effect-Fiber.esm.js +423 -0
  360. package/Fiber/package.json +4 -0
  361. package/FiberId/dist/effect-FiberId.cjs.d.mts +2 -0
  362. package/FiberId/dist/effect-FiberId.cjs.d.mts.map +1 -0
  363. package/FiberId/dist/effect-FiberId.cjs.d.ts +2 -0
  364. package/FiberId/dist/effect-FiberId.cjs.d.ts.map +1 -0
  365. package/FiberId/dist/effect-FiberId.cjs.dev.js +43 -0
  366. package/FiberId/dist/effect-FiberId.cjs.js +7 -0
  367. package/FiberId/dist/effect-FiberId.cjs.mjs +19 -0
  368. package/FiberId/dist/effect-FiberId.cjs.prod.js +43 -0
  369. package/FiberId/dist/effect-FiberId.esm.js +161 -0
  370. package/FiberId/package.json +4 -0
  371. package/FiberRef/dist/effect-FiberRef.cjs.d.mts +2 -0
  372. package/FiberRef/dist/effect-FiberRef.cjs.d.mts.map +1 -0
  373. package/FiberRef/dist/effect-FiberRef.cjs.d.ts +2 -0
  374. package/FiberRef/dist/effect-FiberRef.cjs.d.ts.map +1 -0
  375. package/FiberRef/dist/effect-FiberRef.cjs.dev.js +400 -0
  376. package/FiberRef/dist/effect-FiberRef.cjs.js +7 -0
  377. package/FiberRef/dist/effect-FiberRef.cjs.mjs +46 -0
  378. package/FiberRef/dist/effect-FiberRef.cjs.prod.js +400 -0
  379. package/FiberRef/dist/effect-FiberRef.esm.js +283 -0
  380. package/FiberRef/package.json +4 -0
  381. package/FiberRefs/dist/effect-FiberRefs.cjs.d.mts +2 -0
  382. package/FiberRefs/dist/effect-FiberRefs.cjs.d.mts.map +1 -0
  383. package/FiberRefs/dist/effect-FiberRefs.cjs.d.ts +2 -0
  384. package/FiberRefs/dist/effect-FiberRefs.cjs.d.ts.map +1 -0
  385. package/FiberRefs/dist/effect-FiberRefs.cjs.dev.js +152 -0
  386. package/FiberRefs/dist/effect-FiberRefs.cjs.js +7 -0
  387. package/FiberRefs/dist/effect-FiberRefs.cjs.mjs +13 -0
  388. package/FiberRefs/dist/effect-FiberRefs.cjs.prod.js +152 -0
  389. package/FiberRefs/dist/effect-FiberRefs.esm.js +107 -0
  390. package/FiberRefs/package.json +4 -0
  391. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.d.mts +2 -0
  392. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.d.mts.map +1 -0
  393. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.d.ts +2 -0
  394. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.d.ts.map +1 -0
  395. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.dev.js +115 -0
  396. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.js +7 -0
  397. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.mjs +6 -0
  398. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js +115 -0
  399. package/FiberRefsPatch/dist/effect-FiberRefsPatch.esm.js +76 -0
  400. package/FiberRefsPatch/package.json +4 -0
  401. package/FiberStatus/dist/effect-FiberStatus.cjs.d.mts +2 -0
  402. package/FiberStatus/dist/effect-FiberStatus.cjs.d.mts.map +1 -0
  403. package/FiberStatus/dist/effect-FiberStatus.cjs.d.ts +2 -0
  404. package/FiberStatus/dist/effect-FiberStatus.cjs.d.ts.map +1 -0
  405. package/FiberStatus/dist/effect-FiberStatus.cjs.dev.js +189 -0
  406. package/FiberStatus/dist/effect-FiberStatus.cjs.js +7 -0
  407. package/FiberStatus/dist/effect-FiberStatus.cjs.mjs +10 -0
  408. package/FiberStatus/dist/effect-FiberStatus.cjs.prod.js +189 -0
  409. package/FiberStatus/dist/effect-FiberStatus.esm.js +89 -0
  410. package/FiberStatus/package.json +4 -0
  411. package/Function/dist/effect-Function.cjs.d.mts +2 -0
  412. package/Function/dist/effect-Function.cjs.d.mts.map +1 -0
  413. package/Function/dist/effect-Function.cjs.d.ts +2 -0
  414. package/Function/dist/effect-Function.cjs.d.ts.map +1 -0
  415. package/Function/dist/effect-Function.cjs.dev.js +515 -0
  416. package/Function/dist/effect-Function.cjs.js +7 -0
  417. package/Function/dist/effect-Function.cjs.mjs +22 -0
  418. package/Function/dist/effect-Function.cjs.prod.js +515 -0
  419. package/Function/dist/effect-Function.esm.js +492 -0
  420. package/Function/package.json +4 -0
  421. package/GlobalValue/dist/effect-GlobalValue.cjs.d.mts +2 -0
  422. package/GlobalValue/dist/effect-GlobalValue.cjs.d.mts.map +1 -0
  423. package/GlobalValue/dist/effect-GlobalValue.cjs.d.ts +2 -0
  424. package/GlobalValue/dist/effect-GlobalValue.cjs.d.ts.map +1 -0
  425. package/GlobalValue/dist/effect-GlobalValue.cjs.dev.js +24 -0
  426. package/GlobalValue/dist/effect-GlobalValue.cjs.js +7 -0
  427. package/GlobalValue/dist/effect-GlobalValue.cjs.mjs +3 -0
  428. package/GlobalValue/dist/effect-GlobalValue.cjs.prod.js +24 -0
  429. package/GlobalValue/dist/effect-GlobalValue.esm.js +20 -0
  430. package/GlobalValue/package.json +4 -0
  431. package/GroupBy/dist/effect-GroupBy.cjs.d.mts +2 -0
  432. package/GroupBy/dist/effect-GroupBy.cjs.d.mts.map +1 -0
  433. package/GroupBy/dist/effect-GroupBy.cjs.d.ts +2 -0
  434. package/GroupBy/dist/effect-GroupBy.cjs.d.ts.map +1 -0
  435. package/GroupBy/dist/effect-GroupBy.cjs.dev.js +177 -0
  436. package/GroupBy/dist/effect-GroupBy.cjs.js +7 -0
  437. package/GroupBy/dist/effect-GroupBy.cjs.mjs +7 -0
  438. package/GroupBy/dist/effect-GroupBy.cjs.prod.js +177 -0
  439. package/GroupBy/dist/effect-GroupBy.esm.js +63 -0
  440. package/GroupBy/package.json +4 -0
  441. package/HKT/dist/effect-HKT.cjs.d.mts +2 -0
  442. package/HKT/dist/effect-HKT.cjs.d.mts.map +1 -0
  443. package/HKT/dist/effect-HKT.cjs.d.ts +2 -0
  444. package/HKT/dist/effect-HKT.cjs.d.ts.map +1 -0
  445. package/HKT/dist/effect-HKT.cjs.dev.js +2 -0
  446. package/HKT/dist/effect-HKT.cjs.js +7 -0
  447. package/HKT/dist/effect-HKT.cjs.mjs +1 -0
  448. package/HKT/dist/effect-HKT.cjs.prod.js +2 -0
  449. package/HKT/dist/effect-HKT.esm.js +1 -0
  450. package/HKT/package.json +4 -0
  451. package/Hash/dist/effect-Hash.cjs.d.mts +2 -0
  452. package/Hash/dist/effect-Hash.cjs.d.mts.map +1 -0
  453. package/Hash/dist/effect-Hash.cjs.d.ts +2 -0
  454. package/Hash/dist/effect-Hash.cjs.d.ts.map +1 -0
  455. package/Hash/dist/effect-Hash.cjs.dev.js +179 -0
  456. package/Hash/dist/effect-Hash.cjs.js +7 -0
  457. package/Hash/dist/effect-Hash.cjs.mjs +13 -0
  458. package/Hash/dist/effect-Hash.cjs.prod.js +179 -0
  459. package/Hash/dist/effect-Hash.esm.js +164 -0
  460. package/Hash/package.json +4 -0
  461. package/HashMap/dist/effect-HashMap.cjs.d.mts +2 -0
  462. package/HashMap/dist/effect-HashMap.cjs.d.mts.map +1 -0
  463. package/HashMap/dist/effect-HashMap.cjs.d.ts +2 -0
  464. package/HashMap/dist/effect-HashMap.cjs.d.ts.map +1 -0
  465. package/HashMap/dist/effect-HashMap.cjs.dev.js +341 -0
  466. package/HashMap/dist/effect-HashMap.cjs.js +7 -0
  467. package/HashMap/dist/effect-HashMap.cjs.mjs +34 -0
  468. package/HashMap/dist/effect-HashMap.cjs.prod.js +341 -0
  469. package/HashMap/dist/effect-HashMap.esm.js +287 -0
  470. package/HashMap/package.json +4 -0
  471. package/HashSet/dist/effect-HashSet.cjs.d.mts +2 -0
  472. package/HashSet/dist/effect-HashSet.cjs.d.mts.map +1 -0
  473. package/HashSet/dist/effect-HashSet.cjs.d.ts +2 -0
  474. package/HashSet/dist/effect-HashSet.cjs.d.ts.map +1 -0
  475. package/HashSet/dist/effect-HashSet.cjs.dev.js +270 -0
  476. package/HashSet/dist/effect-HashSet.cjs.js +7 -0
  477. package/HashSet/dist/effect-HashSet.cjs.mjs +27 -0
  478. package/HashSet/dist/effect-HashSet.cjs.prod.js +270 -0
  479. package/HashSet/dist/effect-HashSet.esm.js +227 -0
  480. package/HashSet/package.json +4 -0
  481. package/Inspectable/dist/effect-Inspectable.cjs.d.mts +2 -0
  482. package/Inspectable/dist/effect-Inspectable.cjs.d.mts.map +1 -0
  483. package/Inspectable/dist/effect-Inspectable.cjs.d.ts +2 -0
  484. package/Inspectable/dist/effect-Inspectable.cjs.d.ts.map +1 -0
  485. package/Inspectable/dist/effect-Inspectable.cjs.dev.js +44 -0
  486. package/Inspectable/dist/effect-Inspectable.cjs.js +7 -0
  487. package/Inspectable/dist/effect-Inspectable.cjs.mjs +5 -0
  488. package/Inspectable/dist/effect-Inspectable.cjs.prod.js +44 -0
  489. package/Inspectable/dist/effect-Inspectable.esm.js +38 -0
  490. package/Inspectable/package.json +4 -0
  491. package/KeyedPool/dist/effect-KeyedPool.cjs.d.mts +2 -0
  492. package/KeyedPool/dist/effect-KeyedPool.cjs.d.mts.map +1 -0
  493. package/KeyedPool/dist/effect-KeyedPool.cjs.d.ts +2 -0
  494. package/KeyedPool/dist/effect-KeyedPool.cjs.d.ts.map +1 -0
  495. package/KeyedPool/dist/effect-KeyedPool.cjs.dev.js +334 -0
  496. package/KeyedPool/dist/effect-KeyedPool.cjs.js +7 -0
  497. package/KeyedPool/dist/effect-KeyedPool.cjs.mjs +9 -0
  498. package/KeyedPool/dist/effect-KeyedPool.cjs.prod.js +334 -0
  499. package/KeyedPool/dist/effect-KeyedPool.esm.js +104 -0
  500. package/KeyedPool/package.json +4 -0
  501. package/Layer/dist/effect-Layer.cjs.d.mts +2 -0
  502. package/Layer/dist/effect-Layer.cjs.d.mts.map +1 -0
  503. package/Layer/dist/effect-Layer.cjs.d.ts +2 -0
  504. package/Layer/dist/effect-Layer.cjs.d.ts.map +1 -0
  505. package/Layer/dist/effect-Layer.cjs.dev.js +802 -0
  506. package/Layer/dist/effect-Layer.cjs.js +7 -0
  507. package/Layer/dist/effect-Layer.cjs.mjs +77 -0
  508. package/Layer/dist/effect-Layer.cjs.prod.js +802 -0
  509. package/Layer/dist/effect-Layer.esm.js +646 -0
  510. package/Layer/package.json +4 -0
  511. package/List/dist/effect-List.cjs.d.mts +2 -0
  512. package/List/dist/effect-List.cjs.d.mts.map +1 -0
  513. package/List/dist/effect-List.cjs.d.ts +2 -0
  514. package/List/dist/effect-List.cjs.d.ts.map +1 -0
  515. package/List/dist/effect-List.cjs.dev.js +879 -0
  516. package/List/dist/effect-List.cjs.js +7 -0
  517. package/List/dist/effect-List.cjs.mjs +48 -0
  518. package/List/dist/effect-List.cjs.prod.js +879 -0
  519. package/List/dist/effect-List.esm.js +822 -0
  520. package/List/package.json +4 -0
  521. package/LogLevel/dist/effect-LogLevel.cjs.d.mts +2 -0
  522. package/LogLevel/dist/effect-LogLevel.cjs.d.mts.map +1 -0
  523. package/LogLevel/dist/effect-LogLevel.cjs.d.ts +2 -0
  524. package/LogLevel/dist/effect-LogLevel.cjs.d.ts.map +1 -0
  525. package/LogLevel/dist/effect-LogLevel.cjs.dev.js +249 -0
  526. package/LogLevel/dist/effect-LogLevel.cjs.js +7 -0
  527. package/LogLevel/dist/effect-LogLevel.cjs.mjs +18 -0
  528. package/LogLevel/dist/effect-LogLevel.cjs.prod.js +249 -0
  529. package/LogLevel/dist/effect-LogLevel.esm.js +202 -0
  530. package/LogLevel/package.json +4 -0
  531. package/LogSpan/dist/effect-LogSpan.cjs.d.mts +2 -0
  532. package/LogSpan/dist/effect-LogSpan.cjs.d.mts.map +1 -0
  533. package/LogSpan/dist/effect-LogSpan.cjs.d.ts +2 -0
  534. package/LogSpan/dist/effect-LogSpan.cjs.d.ts.map +1 -0
  535. package/LogSpan/dist/effect-LogSpan.cjs.dev.js +41 -0
  536. package/LogSpan/dist/effect-LogSpan.cjs.js +7 -0
  537. package/LogSpan/dist/effect-LogSpan.cjs.mjs +4 -0
  538. package/LogSpan/dist/effect-LogSpan.cjs.prod.js +41 -0
  539. package/LogSpan/dist/effect-LogSpan.esm.js +24 -0
  540. package/LogSpan/package.json +4 -0
  541. package/Logger/dist/effect-Logger.cjs.d.mts +2 -0
  542. package/Logger/dist/effect-Logger.cjs.d.mts.map +1 -0
  543. package/Logger/dist/effect-Logger.cjs.d.ts +2 -0
  544. package/Logger/dist/effect-Logger.cjs.d.ts.map +1 -0
  545. package/Logger/dist/effect-Logger.cjs.dev.js +314 -0
  546. package/Logger/dist/effect-Logger.cjs.js +7 -0
  547. package/Logger/dist/effect-Logger.cjs.mjs +29 -0
  548. package/Logger/dist/effect-Logger.cjs.prod.js +314 -0
  549. package/Logger/dist/effect-Logger.esm.js +193 -0
  550. package/Logger/package.json +4 -0
  551. package/Match/dist/effect-Match.cjs.d.mts +2 -0
  552. package/Match/dist/effect-Match.cjs.d.mts.map +1 -0
  553. package/Match/dist/effect-Match.cjs.d.ts +2 -0
  554. package/Match/dist/effect-Match.cjs.d.ts.map +1 -0
  555. package/Match/dist/effect-Match.cjs.dev.js +619 -0
  556. package/Match/dist/effect-Match.cjs.js +7 -0
  557. package/Match/dist/effect-Match.cjs.mjs +39 -0
  558. package/Match/dist/effect-Match.cjs.prod.js +619 -0
  559. package/Match/dist/effect-Match.esm.js +258 -0
  560. package/Match/package.json +4 -0
  561. package/Metric/dist/effect-Metric.cjs.d.mts +2 -0
  562. package/Metric/dist/effect-Metric.cjs.d.mts.map +1 -0
  563. package/Metric/dist/effect-Metric.cjs.d.ts +2 -0
  564. package/Metric/dist/effect-Metric.cjs.d.ts.map +1 -0
  565. package/Metric/dist/effect-Metric.cjs.dev.js +592 -0
  566. package/Metric/dist/effect-Metric.cjs.js +7 -0
  567. package/Metric/dist/effect-Metric.cjs.mjs +46 -0
  568. package/Metric/dist/effect-Metric.cjs.prod.js +592 -0
  569. package/Metric/dist/effect-Metric.esm.js +477 -0
  570. package/Metric/package.json +4 -0
  571. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.d.mts +2 -0
  572. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.d.mts.map +1 -0
  573. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.d.ts +2 -0
  574. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.d.ts.map +1 -0
  575. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.dev.js +79 -0
  576. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.js +7 -0
  577. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.mjs +7 -0
  578. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.prod.js +79 -0
  579. package/MetricBoundaries/dist/effect-MetricBoundaries.esm.js +52 -0
  580. package/MetricBoundaries/package.json +4 -0
  581. package/MetricHook/dist/effect-MetricHook.cjs.d.mts +2 -0
  582. package/MetricHook/dist/effect-MetricHook.cjs.d.mts.map +1 -0
  583. package/MetricHook/dist/effect-MetricHook.cjs.d.ts +2 -0
  584. package/MetricHook/dist/effect-MetricHook.cjs.d.ts.map +1 -0
  585. package/MetricHook/dist/effect-MetricHook.cjs.dev.js +104 -0
  586. package/MetricHook/dist/effect-MetricHook.cjs.js +7 -0
  587. package/MetricHook/dist/effect-MetricHook.cjs.mjs +10 -0
  588. package/MetricHook/dist/effect-MetricHook.cjs.prod.js +104 -0
  589. package/MetricHook/dist/effect-MetricHook.esm.js +68 -0
  590. package/MetricHook/package.json +4 -0
  591. package/MetricKey/dist/effect-MetricKey.cjs.d.mts +2 -0
  592. package/MetricKey/dist/effect-MetricKey.cjs.d.mts.map +1 -0
  593. package/MetricKey/dist/effect-MetricKey.cjs.d.ts +2 -0
  594. package/MetricKey/dist/effect-MetricKey.cjs.d.ts.map +1 -0
  595. package/MetricKey/dist/effect-MetricKey.cjs.dev.js +137 -0
  596. package/MetricKey/dist/effect-MetricKey.cjs.js +7 -0
  597. package/MetricKey/dist/effect-MetricKey.cjs.mjs +12 -0
  598. package/MetricKey/dist/effect-MetricKey.cjs.prod.js +137 -0
  599. package/MetricKey/dist/effect-MetricKey.esm.js +104 -0
  600. package/MetricKey/package.json +4 -0
  601. package/MetricKeyType/dist/effect-MetricKeyType.cjs.d.mts +2 -0
  602. package/MetricKeyType/dist/effect-MetricKeyType.cjs.d.mts.map +1 -0
  603. package/MetricKeyType/dist/effect-MetricKeyType.cjs.d.ts +2 -0
  604. package/MetricKeyType/dist/effect-MetricKeyType.cjs.d.ts.map +1 -0
  605. package/MetricKeyType/dist/effect-MetricKeyType.cjs.dev.js +182 -0
  606. package/MetricKeyType/dist/effect-MetricKeyType.cjs.js +7 -0
  607. package/MetricKeyType/dist/effect-MetricKeyType.cjs.mjs +19 -0
  608. package/MetricKeyType/dist/effect-MetricKeyType.cjs.prod.js +182 -0
  609. package/MetricKeyType/dist/effect-MetricKeyType.esm.js +147 -0
  610. package/MetricKeyType/package.json +4 -0
  611. package/MetricLabel/dist/effect-MetricLabel.cjs.d.mts +2 -0
  612. package/MetricLabel/dist/effect-MetricLabel.cjs.d.mts.map +1 -0
  613. package/MetricLabel/dist/effect-MetricLabel.cjs.d.ts +2 -0
  614. package/MetricLabel/dist/effect-MetricLabel.cjs.d.ts.map +1 -0
  615. package/MetricLabel/dist/effect-MetricLabel.cjs.dev.js +54 -0
  616. package/MetricLabel/dist/effect-MetricLabel.cjs.js +7 -0
  617. package/MetricLabel/dist/effect-MetricLabel.cjs.mjs +5 -0
  618. package/MetricLabel/dist/effect-MetricLabel.cjs.prod.js +54 -0
  619. package/MetricLabel/dist/effect-MetricLabel.esm.js +41 -0
  620. package/MetricLabel/package.json +4 -0
  621. package/MetricPair/dist/effect-MetricPair.cjs.d.mts +2 -0
  622. package/MetricPair/dist/effect-MetricPair.cjs.d.mts.map +1 -0
  623. package/MetricPair/dist/effect-MetricPair.cjs.d.ts +2 -0
  624. package/MetricPair/dist/effect-MetricPair.cjs.d.ts.map +1 -0
  625. package/MetricPair/dist/effect-MetricPair.cjs.dev.js +45 -0
  626. package/MetricPair/dist/effect-MetricPair.cjs.js +7 -0
  627. package/MetricPair/dist/effect-MetricPair.cjs.mjs +5 -0
  628. package/MetricPair/dist/effect-MetricPair.cjs.prod.js +45 -0
  629. package/MetricPair/dist/effect-MetricPair.esm.js +38 -0
  630. package/MetricPair/package.json +4 -0
  631. package/MetricPolling/dist/effect-MetricPolling.cjs.d.mts +2 -0
  632. package/MetricPolling/dist/effect-MetricPolling.cjs.d.mts.map +1 -0
  633. package/MetricPolling/dist/effect-MetricPolling.cjs.d.ts +2 -0
  634. package/MetricPolling/dist/effect-MetricPolling.cjs.d.ts.map +1 -0
  635. package/MetricPolling/dist/effect-MetricPolling.cjs.dev.js +236 -0
  636. package/MetricPolling/dist/effect-MetricPolling.cjs.js +7 -0
  637. package/MetricPolling/dist/effect-MetricPolling.cjs.mjs +10 -0
  638. package/MetricPolling/dist/effect-MetricPolling.cjs.prod.js +236 -0
  639. package/MetricPolling/dist/effect-MetricPolling.esm.js +84 -0
  640. package/MetricPolling/package.json +4 -0
  641. package/MetricRegistry/dist/effect-MetricRegistry.cjs.d.mts +2 -0
  642. package/MetricRegistry/dist/effect-MetricRegistry.cjs.d.mts.map +1 -0
  643. package/MetricRegistry/dist/effect-MetricRegistry.cjs.d.ts +2 -0
  644. package/MetricRegistry/dist/effect-MetricRegistry.cjs.d.ts.map +1 -0
  645. package/MetricRegistry/dist/effect-MetricRegistry.cjs.dev.js +64 -0
  646. package/MetricRegistry/dist/effect-MetricRegistry.cjs.js +7 -0
  647. package/MetricRegistry/dist/effect-MetricRegistry.cjs.mjs +4 -0
  648. package/MetricRegistry/dist/effect-MetricRegistry.cjs.prod.js +64 -0
  649. package/MetricRegistry/dist/effect-MetricRegistry.esm.js +28 -0
  650. package/MetricRegistry/package.json +4 -0
  651. package/MetricState/dist/effect-MetricState.cjs.d.mts +2 -0
  652. package/MetricState/dist/effect-MetricState.cjs.d.mts.map +1 -0
  653. package/MetricState/dist/effect-MetricState.cjs.d.ts +2 -0
  654. package/MetricState/dist/effect-MetricState.cjs.d.ts.map +1 -0
  655. package/MetricState/dist/effect-MetricState.cjs.dev.js +178 -0
  656. package/MetricState/dist/effect-MetricState.cjs.js +7 -0
  657. package/MetricState/dist/effect-MetricState.cjs.mjs +19 -0
  658. package/MetricState/dist/effect-MetricState.cjs.prod.js +178 -0
  659. package/MetricState/dist/effect-MetricState.esm.js +151 -0
  660. package/MetricState/package.json +4 -0
  661. package/MutableHashMap/dist/effect-MutableHashMap.cjs.d.mts +2 -0
  662. package/MutableHashMap/dist/effect-MutableHashMap.cjs.d.mts.map +1 -0
  663. package/MutableHashMap/dist/effect-MutableHashMap.cjs.d.ts +2 -0
  664. package/MutableHashMap/dist/effect-MutableHashMap.cjs.d.ts.map +1 -0
  665. package/MutableHashMap/dist/effect-MutableHashMap.cjs.dev.js +153 -0
  666. package/MutableHashMap/dist/effect-MutableHashMap.cjs.js +7 -0
  667. package/MutableHashMap/dist/effect-MutableHashMap.cjs.mjs +12 -0
  668. package/MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js +153 -0
  669. package/MutableHashMap/dist/effect-MutableHashMap.esm.js +128 -0
  670. package/MutableHashMap/package.json +4 -0
  671. package/MutableHashSet/dist/effect-MutableHashSet.cjs.d.mts +2 -0
  672. package/MutableHashSet/dist/effect-MutableHashSet.cjs.d.mts.map +1 -0
  673. package/MutableHashSet/dist/effect-MutableHashSet.cjs.d.ts +2 -0
  674. package/MutableHashSet/dist/effect-MutableHashSet.cjs.d.ts.map +1 -0
  675. package/MutableHashSet/dist/effect-MutableHashSet.cjs.dev.js +115 -0
  676. package/MutableHashSet/dist/effect-MutableHashSet.cjs.js +7 -0
  677. package/MutableHashSet/dist/effect-MutableHashSet.cjs.mjs +9 -0
  678. package/MutableHashSet/dist/effect-MutableHashSet.cjs.prod.js +115 -0
  679. package/MutableHashSet/dist/effect-MutableHashSet.esm.js +90 -0
  680. package/MutableHashSet/package.json +4 -0
  681. package/MutableList/dist/effect-MutableList.cjs.d.mts +2 -0
  682. package/MutableList/dist/effect-MutableList.cjs.d.mts.map +1 -0
  683. package/MutableList/dist/effect-MutableList.cjs.d.ts +2 -0
  684. package/MutableList/dist/effect-MutableList.cjs.d.ts.map +1 -0
  685. package/MutableList/dist/effect-MutableList.cjs.dev.js +280 -0
  686. package/MutableList/dist/effect-MutableList.cjs.js +7 -0
  687. package/MutableList/dist/effect-MutableList.cjs.mjs +15 -0
  688. package/MutableList/dist/effect-MutableList.cjs.prod.js +280 -0
  689. package/MutableList/dist/effect-MutableList.esm.js +264 -0
  690. package/MutableList/package.json +4 -0
  691. package/MutableQueue/dist/effect-MutableQueue.cjs.d.mts +2 -0
  692. package/MutableQueue/dist/effect-MutableQueue.cjs.d.mts.map +1 -0
  693. package/MutableQueue/dist/effect-MutableQueue.cjs.d.ts +2 -0
  694. package/MutableQueue/dist/effect-MutableQueue.cjs.d.ts.map +1 -0
  695. package/MutableQueue/dist/effect-MutableQueue.cjs.dev.js +216 -0
  696. package/MutableQueue/dist/effect-MutableQueue.cjs.js +7 -0
  697. package/MutableQueue/dist/effect-MutableQueue.cjs.mjs +13 -0
  698. package/MutableQueue/dist/effect-MutableQueue.cjs.prod.js +216 -0
  699. package/MutableQueue/dist/effect-MutableQueue.esm.js +187 -0
  700. package/MutableQueue/package.json +4 -0
  701. package/MutableRef/dist/effect-MutableRef.cjs.d.mts +2 -0
  702. package/MutableRef/dist/effect-MutableRef.cjs.d.mts.map +1 -0
  703. package/MutableRef/dist/effect-MutableRef.cjs.d.ts +2 -0
  704. package/MutableRef/dist/effect-MutableRef.cjs.d.ts.map +1 -0
  705. package/MutableRef/dist/effect-MutableRef.cjs.dev.js +179 -0
  706. package/MutableRef/dist/effect-MutableRef.cjs.js +7 -0
  707. package/MutableRef/dist/effect-MutableRef.cjs.mjs +18 -0
  708. package/MutableRef/dist/effect-MutableRef.cjs.prod.js +179 -0
  709. package/MutableRef/dist/effect-MutableRef.esm.js +156 -0
  710. package/MutableRef/package.json +4 -0
  711. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.d.mts +2 -0
  712. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.d.mts.map +1 -0
  713. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.d.ts +2 -0
  714. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.d.ts.map +1 -0
  715. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.dev.js +32 -0
  716. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.js +7 -0
  717. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.mjs +3 -0
  718. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.prod.js +32 -0
  719. package/NonEmptyIterable/dist/effect-NonEmptyIterable.esm.js +28 -0
  720. package/NonEmptyIterable/package.json +4 -0
  721. package/Number/dist/effect-Number.cjs.d.mts +2 -0
  722. package/Number/dist/effect-Number.cjs.d.mts.map +1 -0
  723. package/Number/dist/effect-Number.cjs.d.ts +2 -0
  724. package/Number/dist/effect-Number.cjs.d.ts.map +1 -0
  725. package/Number/dist/effect-Number.cjs.dev.js +422 -0
  726. package/Number/dist/effect-Number.cjs.js +7 -0
  727. package/Number/dist/effect-Number.cjs.mjs +24 -0
  728. package/Number/dist/effect-Number.cjs.prod.js +422 -0
  729. package/Number/dist/effect-Number.esm.js +390 -0
  730. package/Number/package.json +4 -0
  731. package/Option/dist/effect-Option.cjs.d.mts +2 -0
  732. package/Option/dist/effect-Option.cjs.d.mts.map +1 -0
  733. package/Option/dist/effect-Option.cjs.d.ts +2 -0
  734. package/Option/dist/effect-Option.cjs.d.ts.map +1 -0
  735. package/Option/dist/effect-Option.cjs.dev.js +1054 -0
  736. package/Option/dist/effect-Option.cjs.js +7 -0
  737. package/Option/dist/effect-Option.cjs.mjs +57 -0
  738. package/Option/dist/effect-Option.cjs.prod.js +1054 -0
  739. package/Option/dist/effect-Option.esm.js +990 -0
  740. package/Option/package.json +4 -0
  741. package/Order/dist/effect-Order.cjs.d.mts +2 -0
  742. package/Order/dist/effect-Order.cjs.d.mts.map +1 -0
  743. package/Order/dist/effect-Order.cjs.d.ts +2 -0
  744. package/Order/dist/effect-Order.cjs.d.ts.map +1 -0
  745. package/Order/dist/effect-Order.cjs.dev.js +292 -0
  746. package/Order/dist/effect-Order.cjs.js +7 -0
  747. package/Order/dist/effect-Order.cjs.mjs +28 -0
  748. package/Order/dist/effect-Order.cjs.prod.js +292 -0
  749. package/Order/dist/effect-Order.esm.js +263 -0
  750. package/Order/package.json +4 -0
  751. package/Ordering/dist/effect-Ordering.cjs.d.mts +2 -0
  752. package/Ordering/dist/effect-Ordering.cjs.d.mts.map +1 -0
  753. package/Ordering/dist/effect-Ordering.cjs.d.ts +2 -0
  754. package/Ordering/dist/effect-Ordering.cjs.d.ts.map +1 -0
  755. package/Ordering/dist/effect-Ordering.cjs.dev.js +96 -0
  756. package/Ordering/dist/effect-Ordering.cjs.js +7 -0
  757. package/Ordering/dist/effect-Ordering.cjs.mjs +7 -0
  758. package/Ordering/dist/effect-Ordering.cjs.prod.js +96 -0
  759. package/Ordering/dist/effect-Ordering.esm.js +88 -0
  760. package/Ordering/package.json +4 -0
  761. package/Pipeable/dist/effect-Pipeable.cjs.d.mts +2 -0
  762. package/Pipeable/dist/effect-Pipeable.cjs.d.mts.map +1 -0
  763. package/Pipeable/dist/effect-Pipeable.cjs.d.ts +2 -0
  764. package/Pipeable/dist/effect-Pipeable.cjs.d.ts.map +1 -0
  765. package/Pipeable/dist/effect-Pipeable.cjs.dev.js +48 -0
  766. package/Pipeable/dist/effect-Pipeable.cjs.js +7 -0
  767. package/Pipeable/dist/effect-Pipeable.cjs.mjs +3 -0
  768. package/Pipeable/dist/effect-Pipeable.cjs.prod.js +48 -0
  769. package/Pipeable/dist/effect-Pipeable.esm.js +44 -0
  770. package/Pipeable/package.json +4 -0
  771. package/Pool/dist/effect-Pool.cjs.d.mts +2 -0
  772. package/Pool/dist/effect-Pool.cjs.d.mts.map +1 -0
  773. package/Pool/dist/effect-Pool.cjs.d.ts +2 -0
  774. package/Pool/dist/effect-Pool.cjs.d.ts.map +1 -0
  775. package/Pool/dist/effect-Pool.cjs.dev.js +186 -0
  776. package/Pool/dist/effect-Pool.cjs.js +7 -0
  777. package/Pool/dist/effect-Pool.cjs.mjs +8 -0
  778. package/Pool/dist/effect-Pool.cjs.prod.js +186 -0
  779. package/Pool/dist/effect-Pool.esm.js +104 -0
  780. package/Pool/package.json +4 -0
  781. package/Predicate/dist/effect-Predicate.cjs.d.mts +2 -0
  782. package/Predicate/dist/effect-Predicate.cjs.d.mts.map +1 -0
  783. package/Predicate/dist/effect-Predicate.cjs.d.ts +2 -0
  784. package/Predicate/dist/effect-Predicate.cjs.d.ts.map +1 -0
  785. package/Predicate/dist/effect-Predicate.cjs.dev.js +676 -0
  786. package/Predicate/dist/effect-Predicate.cjs.js +7 -0
  787. package/Predicate/dist/effect-Predicate.cjs.mjs +41 -0
  788. package/Predicate/dist/effect-Predicate.cjs.prod.js +676 -0
  789. package/Predicate/dist/effect-Predicate.esm.js +634 -0
  790. package/Predicate/package.json +4 -0
  791. package/PubSub/dist/effect-PubSub.cjs.d.mts +2 -0
  792. package/PubSub/dist/effect-PubSub.cjs.d.mts.map +1 -0
  793. package/PubSub/dist/effect-PubSub.cjs.d.ts +2 -0
  794. package/PubSub/dist/effect-PubSub.cjs.d.ts.map +1 -0
  795. package/PubSub/dist/effect-PubSub.cjs.dev.js +1326 -0
  796. package/PubSub/dist/effect-PubSub.cjs.js +7 -0
  797. package/PubSub/dist/effect-PubSub.cjs.mjs +16 -0
  798. package/PubSub/dist/effect-PubSub.cjs.prod.js +1326 -0
  799. package/PubSub/dist/effect-PubSub.esm.js +148 -0
  800. package/PubSub/package.json +4 -0
  801. package/Queue/dist/effect-Queue.cjs.d.mts +2 -0
  802. package/Queue/dist/effect-Queue.cjs.d.mts.map +1 -0
  803. package/Queue/dist/effect-Queue.cjs.d.ts +2 -0
  804. package/Queue/dist/effect-Queue.cjs.d.ts.map +1 -0
  805. package/Queue/dist/effect-Queue.cjs.dev.js +433 -0
  806. package/Queue/dist/effect-Queue.cjs.js +7 -0
  807. package/Queue/dist/effect-Queue.cjs.mjs +32 -0
  808. package/Queue/dist/effect-Queue.cjs.prod.js +433 -0
  809. package/Queue/dist/effect-Queue.esm.js +328 -0
  810. package/Queue/package.json +4 -0
  811. package/README.md +48 -14
  812. package/Random/dist/effect-Random.cjs.d.mts +2 -0
  813. package/Random/dist/effect-Random.cjs.d.mts.map +1 -0
  814. package/Random/dist/effect-Random.cjs.d.ts +2 -0
  815. package/Random/dist/effect-Random.cjs.d.ts.map +1 -0
  816. package/Random/dist/effect-Random.cjs.dev.js +133 -0
  817. package/Random/dist/effect-Random.cjs.js +7 -0
  818. package/Random/dist/effect-Random.cjs.mjs +10 -0
  819. package/Random/dist/effect-Random.cjs.prod.js +133 -0
  820. package/Random/dist/effect-Random.esm.js +83 -0
  821. package/Random/package.json +4 -0
  822. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.d.mts +2 -0
  823. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.d.mts.map +1 -0
  824. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.d.ts +2 -0
  825. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.d.ts.map +1 -0
  826. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.dev.js +1592 -0
  827. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.js +7 -0
  828. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.mjs +137 -0
  829. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js +1592 -0
  830. package/ReadonlyArray/dist/effect-ReadonlyArray.esm.js +1445 -0
  831. package/ReadonlyArray/package.json +4 -0
  832. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.d.mts +2 -0
  833. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.d.mts.map +1 -0
  834. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.d.ts +2 -0
  835. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.d.ts.map +1 -0
  836. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.dev.js +798 -0
  837. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.js +7 -0
  838. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.mjs +37 -0
  839. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.prod.js +798 -0
  840. package/ReadonlyRecord/dist/effect-ReadonlyRecord.esm.js +749 -0
  841. package/ReadonlyRecord/package.json +4 -0
  842. package/RedBlackTree/dist/effect-RedBlackTree.cjs.d.mts +2 -0
  843. package/RedBlackTree/dist/effect-RedBlackTree.cjs.d.mts.map +1 -0
  844. package/RedBlackTree/dist/effect-RedBlackTree.cjs.d.ts +2 -0
  845. package/RedBlackTree/dist/effect-RedBlackTree.cjs.d.ts.map +1 -0
  846. package/RedBlackTree/dist/effect-RedBlackTree.cjs.dev.js +1642 -0
  847. package/RedBlackTree/dist/effect-RedBlackTree.cjs.js +7 -0
  848. package/RedBlackTree/dist/effect-RedBlackTree.cjs.mjs +37 -0
  849. package/RedBlackTree/dist/effect-RedBlackTree.cjs.prod.js +1642 -0
  850. package/RedBlackTree/dist/effect-RedBlackTree.esm.js +314 -0
  851. package/RedBlackTree/package.json +4 -0
  852. package/Ref/dist/effect-Ref.cjs.d.mts +2 -0
  853. package/Ref/dist/effect-Ref.cjs.d.mts.map +1 -0
  854. package/Ref/dist/effect-Ref.cjs.d.ts +2 -0
  855. package/Ref/dist/effect-Ref.cjs.d.ts.map +1 -0
  856. package/Ref/dist/effect-Ref.cjs.dev.js +54 -0
  857. package/Ref/dist/effect-Ref.cjs.js +7 -0
  858. package/Ref/dist/effect-Ref.cjs.mjs +17 -0
  859. package/Ref/dist/effect-Ref.cjs.prod.js +54 -0
  860. package/Ref/dist/effect-Ref.esm.js +111 -0
  861. package/Ref/package.json +4 -0
  862. package/Reloadable/dist/effect-Reloadable.cjs.d.mts +2 -0
  863. package/Reloadable/dist/effect-Reloadable.cjs.d.mts.map +1 -0
  864. package/Reloadable/dist/effect-Reloadable.cjs.d.ts +2 -0
  865. package/Reloadable/dist/effect-Reloadable.cjs.d.ts.map +1 -0
  866. package/Reloadable/dist/effect-Reloadable.cjs.dev.js +232 -0
  867. package/Reloadable/dist/effect-Reloadable.cjs.js +7 -0
  868. package/Reloadable/dist/effect-Reloadable.cjs.mjs +10 -0
  869. package/Reloadable/dist/effect-Reloadable.cjs.prod.js +232 -0
  870. package/Reloadable/dist/effect-Reloadable.esm.js +88 -0
  871. package/Reloadable/package.json +4 -0
  872. package/Request/dist/effect-Request.cjs.d.mts +2 -0
  873. package/Request/dist/effect-Request.cjs.d.mts.map +1 -0
  874. package/Request/dist/effect-Request.cjs.d.ts +2 -0
  875. package/Request/dist/effect-Request.cjs.d.ts.map +1 -0
  876. package/Request/dist/effect-Request.cjs.dev.js +244 -0
  877. package/Request/dist/effect-Request.cjs.js +7 -0
  878. package/Request/dist/effect-Request.cjs.mjs +15 -0
  879. package/Request/dist/effect-Request.cjs.prod.js +244 -0
  880. package/Request/dist/effect-Request.esm.js +160 -0
  881. package/Request/package.json +4 -0
  882. package/RequestBlock/dist/effect-RequestBlock.cjs.d.mts +2 -0
  883. package/RequestBlock/dist/effect-RequestBlock.cjs.d.mts.map +1 -0
  884. package/RequestBlock/dist/effect-RequestBlock.cjs.d.ts +2 -0
  885. package/RequestBlock/dist/effect-RequestBlock.cjs.d.ts.map +1 -0
  886. package/RequestBlock/dist/effect-RequestBlock.cjs.dev.js +199 -0
  887. package/RequestBlock/dist/effect-RequestBlock.cjs.js +7 -0
  888. package/RequestBlock/dist/effect-RequestBlock.cjs.mjs +10 -0
  889. package/RequestBlock/dist/effect-RequestBlock.cjs.prod.js +199 -0
  890. package/RequestBlock/dist/effect-RequestBlock.esm.js +103 -0
  891. package/RequestBlock/package.json +4 -0
  892. package/RequestResolver/dist/effect-RequestResolver.cjs.d.mts +2 -0
  893. package/RequestResolver/dist/effect-RequestResolver.cjs.d.mts.map +1 -0
  894. package/RequestResolver/dist/effect-RequestResolver.cjs.d.ts +2 -0
  895. package/RequestResolver/dist/effect-RequestResolver.cjs.d.ts.map +1 -0
  896. package/RequestResolver/dist/effect-RequestResolver.cjs.dev.js +296 -0
  897. package/RequestResolver/dist/effect-RequestResolver.cjs.js +7 -0
  898. package/RequestResolver/dist/effect-RequestResolver.cjs.mjs +20 -0
  899. package/RequestResolver/dist/effect-RequestResolver.cjs.prod.js +296 -0
  900. package/RequestResolver/dist/effect-RequestResolver.esm.js +191 -0
  901. package/RequestResolver/package.json +4 -0
  902. package/Resource/dist/effect-Resource.cjs.d.mts +2 -0
  903. package/Resource/dist/effect-Resource.cjs.d.mts.map +1 -0
  904. package/Resource/dist/effect-Resource.cjs.d.ts +2 -0
  905. package/Resource/dist/effect-Resource.cjs.d.ts.map +1 -0
  906. package/Resource/dist/effect-Resource.cjs.dev.js +183 -0
  907. package/Resource/dist/effect-Resource.cjs.js +7 -0
  908. package/Resource/dist/effect-Resource.cjs.mjs +7 -0
  909. package/Resource/dist/effect-Resource.cjs.prod.js +183 -0
  910. package/Resource/dist/effect-Resource.esm.js +70 -0
  911. package/Resource/package.json +4 -0
  912. package/Runtime/dist/effect-Runtime.cjs.d.mts +2 -0
  913. package/Runtime/dist/effect-Runtime.cjs.d.mts.map +1 -0
  914. package/Runtime/dist/effect-Runtime.cjs.d.ts +2 -0
  915. package/Runtime/dist/effect-Runtime.cjs.d.ts.map +1 -0
  916. package/Runtime/dist/effect-Runtime.cjs.dev.js +251 -0
  917. package/Runtime/dist/effect-Runtime.cjs.js +7 -0
  918. package/Runtime/dist/effect-Runtime.cjs.mjs +16 -0
  919. package/Runtime/dist/effect-Runtime.cjs.prod.js +251 -0
  920. package/Runtime/dist/effect-Runtime.esm.js +157 -0
  921. package/Runtime/package.json +4 -0
  922. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.d.mts +2 -0
  923. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.d.mts.map +1 -0
  924. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.d.ts +2 -0
  925. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.d.ts.map +1 -0
  926. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.dev.js +424 -0
  927. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.js +7 -0
  928. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.mjs +37 -0
  929. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.prod.js +424 -0
  930. package/RuntimeFlags/dist/effect-RuntimeFlags.esm.js +305 -0
  931. package/RuntimeFlags/package.json +4 -0
  932. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.d.mts +2 -0
  933. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.d.mts.map +1 -0
  934. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.d.ts +2 -0
  935. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.d.ts.map +1 -0
  936. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.dev.js +50 -0
  937. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.js +7 -0
  938. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.mjs +19 -0
  939. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.prod.js +50 -0
  940. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.esm.js +158 -0
  941. package/RuntimeFlagsPatch/package.json +4 -0
  942. package/STM/dist/effect-STM.cjs.d.mts +2 -0
  943. package/STM/dist/effect-STM.cjs.d.mts.map +1 -0
  944. package/STM/dist/effect-STM.cjs.d.ts +2 -0
  945. package/STM/dist/effect-STM.cjs.d.ts.map +1 -0
  946. package/STM/dist/effect-STM.cjs.dev.js +1427 -0
  947. package/STM/dist/effect-STM.cjs.js +7 -0
  948. package/STM/dist/effect-STM.cjs.mjs +126 -0
  949. package/STM/dist/effect-STM.cjs.prod.js +1427 -0
  950. package/STM/dist/effect-STM.esm.js +1193 -0
  951. package/STM/package.json +4 -0
  952. package/Schedule/dist/effect-Schedule.cjs.d.mts +2 -0
  953. package/Schedule/dist/effect-Schedule.cjs.d.mts.map +1 -0
  954. package/Schedule/dist/effect-Schedule.cjs.d.ts +2 -0
  955. package/Schedule/dist/effect-Schedule.cjs.d.ts.map +1 -0
  956. package/Schedule/dist/effect-Schedule.cjs.dev.js +1113 -0
  957. package/Schedule/dist/effect-Schedule.cjs.js +7 -0
  958. package/Schedule/dist/effect-Schedule.cjs.mjs +100 -0
  959. package/Schedule/dist/effect-Schedule.cjs.prod.js +1113 -0
  960. package/Schedule/dist/effect-Schedule.esm.js +957 -0
  961. package/Schedule/package.json +4 -0
  962. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.d.mts +2 -0
  963. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.d.mts.map +1 -0
  964. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.d.ts +2 -0
  965. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.d.ts.map +1 -0
  966. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.dev.js +118 -0
  967. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.js +7 -0
  968. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.mjs +7 -0
  969. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js +118 -0
  970. package/ScheduleDecision/dist/effect-ScheduleDecision.esm.js +48 -0
  971. package/ScheduleDecision/package.json +4 -0
  972. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.d.mts +2 -0
  973. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.d.mts.map +1 -0
  974. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.d.ts +2 -0
  975. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.d.ts.map +1 -0
  976. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.dev.js +240 -0
  977. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.js +7 -0
  978. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.mjs +15 -0
  979. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js +240 -0
  980. package/ScheduleInterval/dist/effect-ScheduleInterval.esm.js +130 -0
  981. package/ScheduleInterval/package.json +4 -0
  982. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.d.mts +2 -0
  983. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.d.mts.map +1 -0
  984. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.d.ts +2 -0
  985. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.d.ts.map +1 -0
  986. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.dev.js +268 -0
  987. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.js +7 -0
  988. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.mjs +13 -0
  989. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js +268 -0
  990. package/ScheduleIntervals/dist/effect-ScheduleIntervals.esm.js +105 -0
  991. package/ScheduleIntervals/package.json +4 -0
  992. package/Scheduler/dist/effect-Scheduler.cjs.d.mts +2 -0
  993. package/Scheduler/dist/effect-Scheduler.cjs.d.mts.map +1 -0
  994. package/Scheduler/dist/effect-Scheduler.cjs.d.ts +2 -0
  995. package/Scheduler/dist/effect-Scheduler.cjs.d.ts.map +1 -0
  996. package/Scheduler/dist/effect-Scheduler.cjs.dev.js +370 -0
  997. package/Scheduler/dist/effect-Scheduler.cjs.js +7 -0
  998. package/Scheduler/dist/effect-Scheduler.cjs.mjs +15 -0
  999. package/Scheduler/dist/effect-Scheduler.cjs.prod.js +370 -0
  1000. package/Scheduler/dist/effect-Scheduler.esm.js +326 -0
  1001. package/Scheduler/package.json +4 -0
  1002. package/Scope/dist/effect-Scope.cjs.d.mts +2 -0
  1003. package/Scope/dist/effect-Scope.cjs.d.mts.map +1 -0
  1004. package/Scope/dist/effect-Scope.cjs.d.ts +2 -0
  1005. package/Scope/dist/effect-Scope.cjs.d.ts.map +1 -0
  1006. package/Scope/dist/effect-Scope.cjs.dev.js +198 -0
  1007. package/Scope/dist/effect-Scope.cjs.js +7 -0
  1008. package/Scope/dist/effect-Scope.cjs.mjs +12 -0
  1009. package/Scope/dist/effect-Scope.cjs.prod.js +198 -0
  1010. package/Scope/dist/effect-Scope.esm.js +117 -0
  1011. package/Scope/package.json +4 -0
  1012. package/ScopedCache/dist/effect-ScopedCache.cjs.d.mts +2 -0
  1013. package/ScopedCache/dist/effect-ScopedCache.cjs.d.mts.map +1 -0
  1014. package/ScopedCache/dist/effect-ScopedCache.cjs.d.ts +2 -0
  1015. package/ScopedCache/dist/effect-ScopedCache.cjs.d.ts.map +1 -0
  1016. package/ScopedCache/dist/effect-ScopedCache.cjs.dev.js +533 -0
  1017. package/ScopedCache/dist/effect-ScopedCache.cjs.js +7 -0
  1018. package/ScopedCache/dist/effect-ScopedCache.cjs.mjs +5 -0
  1019. package/ScopedCache/dist/effect-ScopedCache.cjs.prod.js +533 -0
  1020. package/ScopedCache/dist/effect-ScopedCache.esm.js +52 -0
  1021. package/ScopedCache/package.json +4 -0
  1022. package/ScopedRef/dist/effect-ScopedRef.cjs.d.mts +2 -0
  1023. package/ScopedRef/dist/effect-ScopedRef.cjs.d.mts.map +1 -0
  1024. package/ScopedRef/dist/effect-ScopedRef.cjs.d.ts +2 -0
  1025. package/ScopedRef/dist/effect-ScopedRef.cjs.d.ts.map +1 -0
  1026. package/ScopedRef/dist/effect-ScopedRef.cjs.dev.js +156 -0
  1027. package/ScopedRef/dist/effect-ScopedRef.cjs.js +7 -0
  1028. package/ScopedRef/dist/effect-ScopedRef.cjs.mjs +7 -0
  1029. package/ScopedRef/dist/effect-ScopedRef.cjs.prod.js +156 -0
  1030. package/ScopedRef/dist/effect-ScopedRef.esm.js +71 -0
  1031. package/ScopedRef/package.json +4 -0
  1032. package/Sink/dist/effect-Sink.cjs.d.mts +2 -0
  1033. package/Sink/dist/effect-Sink.cjs.d.mts.map +1 -0
  1034. package/Sink/dist/effect-Sink.cjs.d.ts +2 -0
  1035. package/Sink/dist/effect-Sink.cjs.d.ts.map +1 -0
  1036. package/Sink/dist/effect-Sink.cjs.dev.js +1205 -0
  1037. package/Sink/dist/effect-Sink.cjs.js +7 -0
  1038. package/Sink/dist/effect-Sink.cjs.mjs +108 -0
  1039. package/Sink/dist/effect-Sink.cjs.prod.js +1205 -0
  1040. package/Sink/dist/effect-Sink.esm.js +997 -0
  1041. package/Sink/package.json +4 -0
  1042. package/SortedMap/dist/effect-SortedMap.cjs.d.mts +2 -0
  1043. package/SortedMap/dist/effect-SortedMap.cjs.d.mts.map +1 -0
  1044. package/SortedMap/dist/effect-SortedMap.cjs.d.ts +2 -0
  1045. package/SortedMap/dist/effect-SortedMap.cjs.d.ts.map +1 -0
  1046. package/SortedMap/dist/effect-SortedMap.cjs.dev.js +202 -0
  1047. package/SortedMap/dist/effect-SortedMap.cjs.js +7 -0
  1048. package/SortedMap/dist/effect-SortedMap.cjs.mjs +20 -0
  1049. package/SortedMap/dist/effect-SortedMap.cjs.prod.js +202 -0
  1050. package/SortedMap/dist/effect-SortedMap.esm.js +168 -0
  1051. package/SortedMap/package.json +4 -0
  1052. package/SortedSet/dist/effect-SortedSet.cjs.d.mts +2 -0
  1053. package/SortedSet/dist/effect-SortedSet.cjs.d.mts.map +1 -0
  1054. package/SortedSet/dist/effect-SortedSet.cjs.d.ts +2 -0
  1055. package/SortedSet/dist/effect-SortedSet.cjs.d.ts.map +1 -0
  1056. package/SortedSet/dist/effect-SortedSet.cjs.dev.js +301 -0
  1057. package/SortedSet/dist/effect-SortedSet.cjs.js +7 -0
  1058. package/SortedSet/dist/effect-SortedSet.cjs.mjs +23 -0
  1059. package/SortedSet/dist/effect-SortedSet.cjs.prod.js +301 -0
  1060. package/SortedSet/dist/effect-SortedSet.esm.js +263 -0
  1061. package/SortedSet/package.json +4 -0
  1062. package/Stream/dist/effect-Stream.cjs.d.mts +2 -0
  1063. package/Stream/dist/effect-Stream.cjs.d.mts.map +1 -0
  1064. package/Stream/dist/effect-Stream.cjs.d.ts +2 -0
  1065. package/Stream/dist/effect-Stream.cjs.d.ts.map +1 -0
  1066. package/Stream/dist/effect-Stream.cjs.dev.js +3279 -0
  1067. package/Stream/dist/effect-Stream.cjs.js +7 -0
  1068. package/Stream/dist/effect-Stream.cjs.mjs +294 -0
  1069. package/Stream/dist/effect-Stream.cjs.prod.js +3279 -0
  1070. package/Stream/dist/effect-Stream.esm.js +2879 -0
  1071. package/Stream/package.json +4 -0
  1072. package/StreamEmit/dist/effect-StreamEmit.cjs.d.mts +2 -0
  1073. package/StreamEmit/dist/effect-StreamEmit.cjs.d.mts.map +1 -0
  1074. package/StreamEmit/dist/effect-StreamEmit.cjs.d.ts +2 -0
  1075. package/StreamEmit/dist/effect-StreamEmit.cjs.d.ts.map +1 -0
  1076. package/StreamEmit/dist/effect-StreamEmit.cjs.dev.js +2 -0
  1077. package/StreamEmit/dist/effect-StreamEmit.cjs.js +7 -0
  1078. package/StreamEmit/dist/effect-StreamEmit.cjs.mjs +1 -0
  1079. package/StreamEmit/dist/effect-StreamEmit.cjs.prod.js +2 -0
  1080. package/StreamEmit/dist/effect-StreamEmit.esm.js +1 -0
  1081. package/StreamEmit/package.json +4 -0
  1082. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.d.mts +2 -0
  1083. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.d.mts.map +1 -0
  1084. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.d.ts +2 -0
  1085. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.d.ts.map +1 -0
  1086. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.dev.js +19 -0
  1087. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.js +7 -0
  1088. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.mjs +12 -0
  1089. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.prod.js +19 -0
  1090. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.esm.js +97 -0
  1091. package/StreamHaltStrategy/package.json +4 -0
  1092. package/Streamable/dist/effect-Streamable.cjs.d.mts +2 -0
  1093. package/Streamable/dist/effect-Streamable.cjs.d.mts.map +1 -0
  1094. package/Streamable/dist/effect-Streamable.cjs.d.ts +2 -0
  1095. package/Streamable/dist/effect-Streamable.cjs.d.ts.map +1 -0
  1096. package/Streamable/dist/effect-Streamable.cjs.dev.js +152 -0
  1097. package/Streamable/dist/effect-Streamable.cjs.js +7 -0
  1098. package/Streamable/dist/effect-Streamable.cjs.mjs +3 -0
  1099. package/Streamable/dist/effect-Streamable.cjs.prod.js +152 -0
  1100. package/Streamable/dist/effect-Streamable.esm.js +42 -0
  1101. package/Streamable/package.json +4 -0
  1102. package/String/dist/effect-String.cjs.d.mts +2 -0
  1103. package/String/dist/effect-String.cjs.d.mts.map +1 -0
  1104. package/String/dist/effect-String.cjs.d.ts +2 -0
  1105. package/String/dist/effect-String.cjs.d.ts.map +1 -0
  1106. package/String/dist/effect-String.cjs.dev.js +656 -0
  1107. package/String/dist/effect-String.cjs.js +7 -0
  1108. package/String/dist/effect-String.cjs.mjs +46 -0
  1109. package/String/dist/effect-String.cjs.prod.js +656 -0
  1110. package/String/dist/effect-String.esm.js +600 -0
  1111. package/String/package.json +4 -0
  1112. package/Struct/dist/effect-Struct.cjs.d.mts +2 -0
  1113. package/Struct/dist/effect-Struct.cjs.d.mts.map +1 -0
  1114. package/Struct/dist/effect-Struct.cjs.d.ts +2 -0
  1115. package/Struct/dist/effect-Struct.cjs.d.ts.map +1 -0
  1116. package/Struct/dist/effect-Struct.cjs.dev.js +133 -0
  1117. package/Struct/dist/effect-Struct.cjs.js +7 -0
  1118. package/Struct/dist/effect-Struct.cjs.mjs +7 -0
  1119. package/Struct/dist/effect-Struct.cjs.prod.js +133 -0
  1120. package/Struct/dist/effect-Struct.esm.js +125 -0
  1121. package/Struct/package.json +4 -0
  1122. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.d.mts +2 -0
  1123. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.d.mts.map +1 -0
  1124. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.d.ts +2 -0
  1125. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.d.ts.map +1 -0
  1126. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.dev.js +343 -0
  1127. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.js +7 -0
  1128. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.mjs +24 -0
  1129. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.prod.js +343 -0
  1130. package/SubscriptionRef/dist/effect-SubscriptionRef.esm.js +160 -0
  1131. package/SubscriptionRef/package.json +4 -0
  1132. package/Supervisor/dist/effect-Supervisor.cjs.d.mts +2 -0
  1133. package/Supervisor/dist/effect-Supervisor.cjs.d.mts.map +1 -0
  1134. package/Supervisor/dist/effect-Supervisor.cjs.d.ts +2 -0
  1135. package/Supervisor/dist/effect-Supervisor.cjs.d.ts.map +1 -0
  1136. package/Supervisor/dist/effect-Supervisor.cjs.dev.js +239 -0
  1137. package/Supervisor/dist/effect-Supervisor.cjs.js +7 -0
  1138. package/Supervisor/dist/effect-Supervisor.cjs.mjs +10 -0
  1139. package/Supervisor/dist/effect-Supervisor.cjs.prod.js +239 -0
  1140. package/Supervisor/dist/effect-Supervisor.esm.js +148 -0
  1141. package/Supervisor/package.json +4 -0
  1142. package/Symbol/dist/effect-Symbol.cjs.d.mts +2 -0
  1143. package/Symbol/dist/effect-Symbol.cjs.d.mts.map +1 -0
  1144. package/Symbol/dist/effect-Symbol.cjs.d.ts +2 -0
  1145. package/Symbol/dist/effect-Symbol.cjs.d.ts.map +1 -0
  1146. package/Symbol/dist/effect-Symbol.cjs.dev.js +36 -0
  1147. package/Symbol/dist/effect-Symbol.cjs.js +7 -0
  1148. package/Symbol/dist/effect-Symbol.cjs.mjs +4 -0
  1149. package/Symbol/dist/effect-Symbol.cjs.prod.js +36 -0
  1150. package/Symbol/dist/effect-Symbol.esm.js +30 -0
  1151. package/Symbol/package.json +4 -0
  1152. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.d.mts +2 -0
  1153. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.d.mts.map +1 -0
  1154. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.d.ts +2 -0
  1155. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.d.ts.map +1 -0
  1156. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.dev.js +260 -0
  1157. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.js +7 -0
  1158. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.mjs +25 -0
  1159. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.prod.js +260 -0
  1160. package/SynchronizedRef/dist/effect-SynchronizedRef.esm.js +160 -0
  1161. package/SynchronizedRef/package.json +4 -0
  1162. package/TArray/dist/effect-TArray.cjs.d.mts +2 -0
  1163. package/TArray/dist/effect-TArray.cjs.d.mts.map +1 -0
  1164. package/TArray/dist/effect-TArray.cjs.d.ts +2 -0
  1165. package/TArray/dist/effect-TArray.cjs.d.ts.map +1 -0
  1166. package/TArray/dist/effect-TArray.cjs.dev.js +523 -0
  1167. package/TArray/dist/effect-TArray.cjs.js +7 -0
  1168. package/TArray/dist/effect-TArray.cjs.mjs +43 -0
  1169. package/TArray/dist/effect-TArray.cjs.prod.js +523 -0
  1170. package/TArray/dist/effect-TArray.esm.js +367 -0
  1171. package/TArray/package.json +4 -0
  1172. package/TDeferred/dist/effect-TDeferred.cjs.d.mts +2 -0
  1173. package/TDeferred/dist/effect-TDeferred.cjs.d.mts.map +1 -0
  1174. package/TDeferred/dist/effect-TDeferred.cjs.d.ts +2 -0
  1175. package/TDeferred/dist/effect-TDeferred.cjs.d.ts.map +1 -0
  1176. package/TDeferred/dist/effect-TDeferred.cjs.dev.js +225 -0
  1177. package/TDeferred/dist/effect-TDeferred.cjs.js +7 -0
  1178. package/TDeferred/dist/effect-TDeferred.cjs.mjs +9 -0
  1179. package/TDeferred/dist/effect-TDeferred.cjs.prod.js +225 -0
  1180. package/TDeferred/dist/effect-TDeferred.esm.js +63 -0
  1181. package/TDeferred/package.json +4 -0
  1182. package/TMap/dist/effect-TMap.cjs.d.mts +2 -0
  1183. package/TMap/dist/effect-TMap.cjs.d.mts.map +1 -0
  1184. package/TMap/dist/effect-TMap.cjs.d.ts +2 -0
  1185. package/TMap/dist/effect-TMap.cjs.d.ts.map +1 -0
  1186. package/TMap/dist/effect-TMap.cjs.dev.js +532 -0
  1187. package/TMap/dist/effect-TMap.cjs.js +7 -0
  1188. package/TMap/dist/effect-TMap.cjs.mjs +44 -0
  1189. package/TMap/dist/effect-TMap.cjs.prod.js +532 -0
  1190. package/TMap/dist/effect-TMap.esm.js +373 -0
  1191. package/TMap/package.json +4 -0
  1192. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.d.mts +2 -0
  1193. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.d.mts.map +1 -0
  1194. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.d.ts +2 -0
  1195. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.d.ts.map +1 -0
  1196. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.dev.js +465 -0
  1197. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.js +7 -0
  1198. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.mjs +21 -0
  1199. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.prod.js +465 -0
  1200. package/TPriorityQueue/dist/effect-TPriorityQueue.esm.js +184 -0
  1201. package/TPriorityQueue/package.json +4 -0
  1202. package/TPubSub/dist/effect-TPubSub.cjs.d.mts +2 -0
  1203. package/TPubSub/dist/effect-TPubSub.cjs.d.mts.map +1 -0
  1204. package/TPubSub/dist/effect-TPubSub.cjs.d.ts +2 -0
  1205. package/TPubSub/dist/effect-TPubSub.cjs.d.ts.map +1 -0
  1206. package/TPubSub/dist/effect-TPubSub.cjs.dev.js +657 -0
  1207. package/TPubSub/dist/effect-TPubSub.cjs.js +7 -0
  1208. package/TPubSub/dist/effect-TPubSub.cjs.mjs +17 -0
  1209. package/TPubSub/dist/effect-TPubSub.cjs.prod.js +657 -0
  1210. package/TPubSub/dist/effect-TPubSub.esm.js +157 -0
  1211. package/TPubSub/package.json +4 -0
  1212. package/TQueue/dist/effect-TQueue.cjs.d.mts +2 -0
  1213. package/TQueue/dist/effect-TQueue.cjs.d.mts.map +1 -0
  1214. package/TQueue/dist/effect-TQueue.cjs.d.ts +2 -0
  1215. package/TQueue/dist/effect-TQueue.cjs.d.ts.map +1 -0
  1216. package/TQueue/dist/effect-TQueue.cjs.dev.js +436 -0
  1217. package/TQueue/dist/effect-TQueue.cjs.js +7 -0
  1218. package/TQueue/dist/effect-TQueue.cjs.mjs +29 -0
  1219. package/TQueue/dist/effect-TQueue.cjs.prod.js +436 -0
  1220. package/TQueue/dist/effect-TQueue.esm.js +293 -0
  1221. package/TQueue/package.json +4 -0
  1222. package/TRandom/dist/effect-TRandom.cjs.d.mts +2 -0
  1223. package/TRandom/dist/effect-TRandom.cjs.d.mts.map +1 -0
  1224. package/TRandom/dist/effect-TRandom.cjs.d.ts +2 -0
  1225. package/TRandom/dist/effect-TRandom.cjs.d.ts.map +1 -0
  1226. package/TRandom/dist/effect-TRandom.cjs.dev.js +296 -0
  1227. package/TRandom/dist/effect-TRandom.cjs.js +7 -0
  1228. package/TRandom/dist/effect-TRandom.cjs.mjs +11 -0
  1229. package/TRandom/dist/effect-TRandom.cjs.prod.js +296 -0
  1230. package/TRandom/dist/effect-TRandom.esm.js +93 -0
  1231. package/TRandom/package.json +4 -0
  1232. package/TReentrantLock/dist/effect-TReentrantLock.cjs.d.mts +2 -0
  1233. package/TReentrantLock/dist/effect-TReentrantLock.cjs.d.mts.map +1 -0
  1234. package/TReentrantLock/dist/effect-TReentrantLock.cjs.d.ts +2 -0
  1235. package/TReentrantLock/dist/effect-TReentrantLock.cjs.d.ts.map +1 -0
  1236. package/TReentrantLock/dist/effect-TReentrantLock.cjs.dev.js +537 -0
  1237. package/TReentrantLock/dist/effect-TReentrantLock.cjs.js +7 -0
  1238. package/TReentrantLock/dist/effect-TReentrantLock.cjs.mjs +21 -0
  1239. package/TReentrantLock/dist/effect-TReentrantLock.cjs.prod.js +537 -0
  1240. package/TReentrantLock/dist/effect-TReentrantLock.esm.js +199 -0
  1241. package/TReentrantLock/package.json +4 -0
  1242. package/TRef/dist/effect-TRef.cjs.d.mts +2 -0
  1243. package/TRef/dist/effect-TRef.cjs.d.mts.map +1 -0
  1244. package/TRef/dist/effect-TRef.cjs.d.ts +2 -0
  1245. package/TRef/dist/effect-TRef.cjs.d.ts.map +1 -0
  1246. package/TRef/dist/effect-TRef.cjs.dev.js +244 -0
  1247. package/TRef/dist/effect-TRef.cjs.js +7 -0
  1248. package/TRef/dist/effect-TRef.cjs.mjs +16 -0
  1249. package/TRef/dist/effect-TRef.cjs.prod.js +244 -0
  1250. package/TRef/dist/effect-TRef.esm.js +117 -0
  1251. package/TRef/package.json +4 -0
  1252. package/TSemaphore/dist/effect-TSemaphore.cjs.d.mts +2 -0
  1253. package/TSemaphore/dist/effect-TSemaphore.cjs.d.mts.map +1 -0
  1254. package/TSemaphore/dist/effect-TSemaphore.cjs.d.ts +2 -0
  1255. package/TSemaphore/dist/effect-TSemaphore.cjs.d.ts.map +1 -0
  1256. package/TSemaphore/dist/effect-TSemaphore.cjs.dev.js +289 -0
  1257. package/TSemaphore/dist/effect-TSemaphore.cjs.js +7 -0
  1258. package/TSemaphore/dist/effect-TSemaphore.cjs.mjs +14 -0
  1259. package/TSemaphore/dist/effect-TSemaphore.cjs.prod.js +289 -0
  1260. package/TSemaphore/dist/effect-TSemaphore.esm.js +97 -0
  1261. package/TSemaphore/package.json +4 -0
  1262. package/TSet/dist/effect-TSet.cjs.d.mts +2 -0
  1263. package/TSet/dist/effect-TSet.cjs.d.mts.map +1 -0
  1264. package/TSet/dist/effect-TSet.cjs.d.ts +2 -0
  1265. package/TSet/dist/effect-TSet.cjs.d.ts.map +1 -0
  1266. package/TSet/dist/effect-TSet.cjs.dev.js +521 -0
  1267. package/TSet/dist/effect-TSet.cjs.js +7 -0
  1268. package/TSet/dist/effect-TSet.cjs.mjs +32 -0
  1269. package/TSet/dist/effect-TSet.cjs.prod.js +521 -0
  1270. package/TSet/dist/effect-TSet.esm.js +268 -0
  1271. package/TSet/package.json +4 -0
  1272. package/Take/dist/effect-Take.cjs.d.mts +2 -0
  1273. package/Take/dist/effect-Take.cjs.d.mts.map +1 -0
  1274. package/Take/dist/effect-Take.cjs.d.ts +2 -0
  1275. package/Take/dist/effect-Take.cjs.d.ts.map +1 -0
  1276. package/Take/dist/effect-Take.cjs.dev.js +300 -0
  1277. package/Take/dist/effect-Take.cjs.js +7 -0
  1278. package/Take/dist/effect-Take.cjs.mjs +22 -0
  1279. package/Take/dist/effect-Take.cjs.prod.js +300 -0
  1280. package/Take/dist/effect-Take.esm.js +190 -0
  1281. package/Take/package.json +4 -0
  1282. package/TestAnnotation/dist/effect-TestAnnotation.cjs.d.mts +2 -0
  1283. package/TestAnnotation/dist/effect-TestAnnotation.cjs.d.mts.map +1 -0
  1284. package/TestAnnotation/dist/effect-TestAnnotation.cjs.d.ts +2 -0
  1285. package/TestAnnotation/dist/effect-TestAnnotation.cjs.d.ts.map +1 -0
  1286. package/TestAnnotation/dist/effect-TestAnnotation.cjs.dev.js +140 -0
  1287. package/TestAnnotation/dist/effect-TestAnnotation.cjs.js +7 -0
  1288. package/TestAnnotation/dist/effect-TestAnnotation.cjs.mjs +11 -0
  1289. package/TestAnnotation/dist/effect-TestAnnotation.cjs.prod.js +140 -0
  1290. package/TestAnnotation/dist/effect-TestAnnotation.esm.js +111 -0
  1291. package/TestAnnotation/package.json +4 -0
  1292. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.d.mts +2 -0
  1293. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.d.mts.map +1 -0
  1294. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.d.ts +2 -0
  1295. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.d.ts.map +1 -0
  1296. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.dev.js +113 -0
  1297. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.js +7 -0
  1298. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.mjs +11 -0
  1299. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.prod.js +113 -0
  1300. package/TestAnnotationMap/dist/effect-TestAnnotationMap.esm.js +101 -0
  1301. package/TestAnnotationMap/package.json +4 -0
  1302. package/TestAnnotations/dist/effect-TestAnnotations.cjs.d.mts +2 -0
  1303. package/TestAnnotations/dist/effect-TestAnnotations.cjs.d.mts.map +1 -0
  1304. package/TestAnnotations/dist/effect-TestAnnotations.cjs.d.ts +2 -0
  1305. package/TestAnnotations/dist/effect-TestAnnotations.cjs.d.ts.map +1 -0
  1306. package/TestAnnotations/dist/effect-TestAnnotations.cjs.dev.js +136 -0
  1307. package/TestAnnotations/dist/effect-TestAnnotations.cjs.js +7 -0
  1308. package/TestAnnotations/dist/effect-TestAnnotations.cjs.mjs +6 -0
  1309. package/TestAnnotations/dist/effect-TestAnnotations.cjs.prod.js +136 -0
  1310. package/TestAnnotations/dist/effect-TestAnnotations.esm.js +83 -0
  1311. package/TestAnnotations/package.json +4 -0
  1312. package/TestClock/dist/effect-TestClock.cjs.d.mts +2 -0
  1313. package/TestClock/dist/effect-TestClock.cjs.d.mts.map +1 -0
  1314. package/TestClock/dist/effect-TestClock.cjs.d.ts +2 -0
  1315. package/TestClock/dist/effect-TestClock.cjs.d.ts.map +1 -0
  1316. package/TestClock/dist/effect-TestClock.cjs.dev.js +630 -0
  1317. package/TestClock/dist/effect-TestClock.cjs.js +7 -0
  1318. package/TestClock/dist/effect-TestClock.cjs.mjs +16 -0
  1319. package/TestClock/dist/effect-TestClock.cjs.prod.js +630 -0
  1320. package/TestClock/dist/effect-TestClock.esm.js +411 -0
  1321. package/TestClock/package.json +4 -0
  1322. package/TestConfig/dist/effect-TestConfig.cjs.d.mts +2 -0
  1323. package/TestConfig/dist/effect-TestConfig.cjs.d.mts.map +1 -0
  1324. package/TestConfig/dist/effect-TestConfig.cjs.d.ts +2 -0
  1325. package/TestConfig/dist/effect-TestConfig.cjs.d.ts.map +1 -0
  1326. package/TestConfig/dist/effect-TestConfig.cjs.dev.js +43 -0
  1327. package/TestConfig/dist/effect-TestConfig.cjs.js +7 -0
  1328. package/TestConfig/dist/effect-TestConfig.cjs.mjs +4 -0
  1329. package/TestConfig/dist/effect-TestConfig.cjs.prod.js +43 -0
  1330. package/TestConfig/dist/effect-TestConfig.esm.js +27 -0
  1331. package/TestConfig/package.json +4 -0
  1332. package/TestContext/dist/effect-TestContext.cjs.d.mts +2 -0
  1333. package/TestContext/dist/effect-TestContext.cjs.d.mts.map +1 -0
  1334. package/TestContext/dist/effect-TestContext.cjs.d.ts +2 -0
  1335. package/TestContext/dist/effect-TestContext.cjs.d.ts.map +1 -0
  1336. package/TestContext/dist/effect-TestContext.cjs.dev.js +125 -0
  1337. package/TestContext/dist/effect-TestContext.cjs.js +7 -0
  1338. package/TestContext/dist/effect-TestContext.cjs.mjs +5 -0
  1339. package/TestContext/dist/effect-TestContext.cjs.prod.js +125 -0
  1340. package/TestContext/dist/effect-TestContext.esm.js +29 -0
  1341. package/TestContext/package.json +4 -0
  1342. package/TestLive/dist/effect-TestLive.cjs.d.mts +2 -0
  1343. package/TestLive/dist/effect-TestLive.cjs.d.mts.map +1 -0
  1344. package/TestLive/dist/effect-TestLive.cjs.d.ts +2 -0
  1345. package/TestLive/dist/effect-TestLive.cjs.d.ts.map +1 -0
  1346. package/TestLive/dist/effect-TestLive.cjs.dev.js +92 -0
  1347. package/TestLive/dist/effect-TestLive.cjs.js +7 -0
  1348. package/TestLive/dist/effect-TestLive.cjs.mjs +5 -0
  1349. package/TestLive/dist/effect-TestLive.cjs.prod.js +92 -0
  1350. package/TestLive/dist/effect-TestLive.esm.js +48 -0
  1351. package/TestLive/package.json +4 -0
  1352. package/TestServices/dist/effect-TestServices.cjs.d.mts +2 -0
  1353. package/TestServices/dist/effect-TestServices.cjs.d.mts.map +1 -0
  1354. package/TestServices/dist/effect-TestServices.cjs.d.ts +2 -0
  1355. package/TestServices/dist/effect-TestServices.cjs.d.ts.map +1 -0
  1356. package/TestServices/dist/effect-TestServices.cjs.dev.js +385 -0
  1357. package/TestServices/dist/effect-TestServices.cjs.js +7 -0
  1358. package/TestServices/dist/effect-TestServices.cjs.mjs +35 -0
  1359. package/TestServices/dist/effect-TestServices.cjs.prod.js +385 -0
  1360. package/TestServices/dist/effect-TestServices.esm.js +269 -0
  1361. package/TestServices/package.json +4 -0
  1362. package/TestSized/dist/effect-TestSized.cjs.d.mts +2 -0
  1363. package/TestSized/dist/effect-TestSized.cjs.d.mts.map +1 -0
  1364. package/TestSized/dist/effect-TestSized.cjs.d.ts +2 -0
  1365. package/TestSized/dist/effect-TestSized.cjs.d.ts.map +1 -0
  1366. package/TestSized/dist/effect-TestSized.cjs.dev.js +86 -0
  1367. package/TestSized/dist/effect-TestSized.cjs.js +7 -0
  1368. package/TestSized/dist/effect-TestSized.cjs.mjs +6 -0
  1369. package/TestSized/dist/effect-TestSized.cjs.prod.js +86 -0
  1370. package/TestSized/dist/effect-TestSized.esm.js +50 -0
  1371. package/TestSized/package.json +4 -0
  1372. package/Tracer/dist/effect-Tracer.cjs.d.mts +2 -0
  1373. package/Tracer/dist/effect-Tracer.cjs.d.mts.map +1 -0
  1374. package/Tracer/dist/effect-Tracer.cjs.d.ts +2 -0
  1375. package/Tracer/dist/effect-Tracer.cjs.d.ts.map +1 -0
  1376. package/Tracer/dist/effect-Tracer.cjs.dev.js +123 -0
  1377. package/Tracer/dist/effect-Tracer.cjs.js +7 -0
  1378. package/Tracer/dist/effect-Tracer.cjs.mjs +8 -0
  1379. package/Tracer/dist/effect-Tracer.cjs.prod.js +123 -0
  1380. package/Tracer/dist/effect-Tracer.esm.js +75 -0
  1381. package/Tracer/package.json +4 -0
  1382. package/Tuple/dist/effect-Tuple.cjs.d.mts +2 -0
  1383. package/Tuple/dist/effect-Tuple.cjs.d.mts.map +1 -0
  1384. package/Tuple/dist/effect-Tuple.cjs.d.ts +2 -0
  1385. package/Tuple/dist/effect-Tuple.cjs.d.ts.map +1 -0
  1386. package/Tuple/dist/effect-Tuple.cjs.dev.js +186 -0
  1387. package/Tuple/dist/effect-Tuple.cjs.js +7 -0
  1388. package/Tuple/dist/effect-Tuple.cjs.mjs +12 -0
  1389. package/Tuple/dist/effect-Tuple.cjs.prod.js +186 -0
  1390. package/Tuple/dist/effect-Tuple.esm.js +173 -0
  1391. package/Tuple/package.json +4 -0
  1392. package/Types/dist/effect-Types.cjs.d.mts +2 -0
  1393. package/Types/dist/effect-Types.cjs.d.mts.map +1 -0
  1394. package/Types/dist/effect-Types.cjs.d.ts +2 -0
  1395. package/Types/dist/effect-Types.cjs.d.ts.map +1 -0
  1396. package/Types/dist/effect-Types.cjs.dev.js +2 -0
  1397. package/Types/dist/effect-Types.cjs.js +7 -0
  1398. package/Types/dist/effect-Types.cjs.mjs +1 -0
  1399. package/Types/dist/effect-Types.cjs.prod.js +2 -0
  1400. package/Types/dist/effect-Types.esm.js +1 -0
  1401. package/Types/package.json +4 -0
  1402. package/Unify/dist/effect-Unify.cjs.d.mts +2 -0
  1403. package/Unify/dist/effect-Unify.cjs.d.mts.map +1 -0
  1404. package/Unify/dist/effect-Unify.cjs.d.ts +2 -0
  1405. package/Unify/dist/effect-Unify.cjs.d.ts.map +1 -0
  1406. package/Unify/dist/effect-Unify.cjs.dev.js +44 -0
  1407. package/Unify/dist/effect-Unify.cjs.js +7 -0
  1408. package/Unify/dist/effect-Unify.cjs.mjs +3 -0
  1409. package/Unify/dist/effect-Unify.cjs.prod.js +44 -0
  1410. package/Unify/dist/effect-Unify.esm.js +40 -0
  1411. package/Unify/package.json +4 -0
  1412. package/Utils/dist/effect-Utils.cjs.d.mts +2 -0
  1413. package/Utils/dist/effect-Utils.cjs.d.mts.map +1 -0
  1414. package/Utils/dist/effect-Utils.cjs.d.ts +2 -0
  1415. package/Utils/dist/effect-Utils.cjs.d.ts.map +1 -0
  1416. package/Utils/dist/effect-Utils.cjs.dev.js +361 -0
  1417. package/Utils/dist/effect-Utils.cjs.js +7 -0
  1418. package/Utils/dist/effect-Utils.cjs.mjs +8 -0
  1419. package/Utils/dist/effect-Utils.cjs.prod.js +361 -0
  1420. package/Utils/dist/effect-Utils.esm.js +352 -0
  1421. package/Utils/package.json +4 -0
  1422. package/dist/Context-607e9b4c.cjs.dev.js +222 -0
  1423. package/dist/Context-c91d8ca0.cjs.prod.js +222 -0
  1424. package/dist/Effectable-6a8a05f1.cjs.prod.js +234 -0
  1425. package/dist/Effectable-71c10ab9.cjs.dev.js +234 -0
  1426. package/dist/Either-a3f96c60.cjs.prod.js +105 -0
  1427. package/dist/Either-e7500e90.cjs.dev.js +105 -0
  1428. package/dist/ExecutionStrategy-4808fe5d.cjs.prod.js +168 -0
  1429. package/dist/ExecutionStrategy-7d9d457b.cjs.dev.js +168 -0
  1430. package/dist/FiberId-0f0b7779.cjs.prod.js +421 -0
  1431. package/dist/FiberId-6595cf4c.cjs.dev.js +421 -0
  1432. package/dist/HashSet-251c8294.cjs.prod.js +965 -0
  1433. package/dist/HashSet-c12c037b.cjs.dev.js +965 -0
  1434. package/dist/Option-01caa9d4.cjs.dev.js +81 -0
  1435. package/dist/Option-dd52e82a.cjs.prod.js +81 -0
  1436. package/dist/ReadonlyArray-9a1474f6.cjs.dev.js +10 -0
  1437. package/dist/ReadonlyArray-f9ed7a05.cjs.prod.js +10 -0
  1438. package/dist/Ref-00103de4.cjs.prod.js +262 -0
  1439. package/dist/Ref-f990026b.cjs.dev.js +262 -0
  1440. package/dist/RuntimeFlagsPatch-3890e860.cjs.prod.js +389 -0
  1441. package/dist/RuntimeFlagsPatch-7d62915d.cjs.dev.js +389 -0
  1442. package/dist/Stack-ada2d201.cjs.dev.js +11 -0
  1443. package/dist/Stack-fc8f9fe5.cjs.prod.js +11 -0
  1444. package/dist/StreamHaltStrategy-9a61b88d.cjs.dev.js +199 -0
  1445. package/dist/StreamHaltStrategy-b495622b.cjs.prod.js +199 -0
  1446. package/dist/boundaries-8dfe50cb.cjs.dev.js +54 -0
  1447. package/dist/boundaries-ebe66d32.cjs.prod.js +54 -0
  1448. package/dist/cache-0b148e42.cjs.prod.js +523 -0
  1449. package/dist/cache-d709d5cb.cjs.dev.js +523 -0
  1450. package/dist/childExecutorDecision-2eed6e25.cjs.dev.js +98 -0
  1451. package/dist/childExecutorDecision-b5842db5.cjs.prod.js +98 -0
  1452. package/dist/circular-5b6f6504.cjs.prod.js +108 -0
  1453. package/dist/circular-6d2bb353.cjs.dev.js +108 -0
  1454. package/dist/circular-952618e5.cjs.prod.js +341 -0
  1455. package/dist/circular-aa705e70.cjs.dev.js +341 -0
  1456. package/dist/config-8a7bf1ae.cjs.dev.js +474 -0
  1457. package/dist/config-f0bd27af.cjs.prod.js +474 -0
  1458. package/dist/configError-0c09b93c.cjs.dev.js +323 -0
  1459. package/dist/configError-9021016b.cjs.prod.js +323 -0
  1460. package/dist/configProvider-3d85d4ef.cjs.dev.js +447 -0
  1461. package/dist/configProvider-ae007b10.cjs.prod.js +447 -0
  1462. package/dist/configSecret-0bdfadd8.cjs.prod.js +74 -0
  1463. package/dist/configSecret-938818ad.cjs.dev.js +74 -0
  1464. package/dist/core-473934ce.cjs.prod.js +3572 -0
  1465. package/dist/core-b4bf44d3.cjs.dev.js +3572 -0
  1466. package/dist/core-d3f4e713.cjs.prod.js +1072 -0
  1467. package/dist/core-dd1edd7a.cjs.dev.js +1072 -0
  1468. package/dist/core-effect-6666f2dc.cjs.prod.js +1039 -0
  1469. package/dist/core-effect-f4b1aad8.cjs.dev.js +1039 -0
  1470. package/dist/dataSource-9f78e828.cjs.dev.js +74 -0
  1471. package/dist/dataSource-d5d7f338.cjs.prod.js +74 -0
  1472. package/dist/declarations/src/BigInt.d.ts +461 -0
  1473. package/dist/declarations/src/BigInt.d.ts.map +1 -0
  1474. package/dist/declarations/src/Boolean.d.ts +229 -0
  1475. package/dist/declarations/src/Boolean.d.ts.map +1 -0
  1476. package/dist/declarations/src/Brand.d.ts +230 -0
  1477. package/dist/declarations/src/Brand.d.ts.map +1 -0
  1478. package/dist/declarations/src/Cache.d.ts +218 -0
  1479. package/dist/declarations/src/Cache.d.ts.map +1 -0
  1480. package/dist/declarations/src/Cause.d.ts +718 -0
  1481. package/dist/declarations/src/Cause.d.ts.map +1 -0
  1482. package/dist/declarations/src/Channel.d.ts +1177 -0
  1483. package/dist/declarations/src/Channel.d.ts.map +1 -0
  1484. package/dist/declarations/src/ChannelChildExecutorDecision.d.ts +123 -0
  1485. package/dist/declarations/src/ChannelChildExecutorDecision.d.ts.map +1 -0
  1486. package/dist/declarations/src/ChannelMergeDecision.d.ts +77 -0
  1487. package/dist/declarations/src/ChannelMergeDecision.d.ts.map +1 -0
  1488. package/dist/declarations/src/ChannelMergeState.d.ts +122 -0
  1489. package/dist/declarations/src/ChannelMergeState.d.ts.map +1 -0
  1490. package/dist/declarations/src/ChannelMergeStrategy.d.ts +92 -0
  1491. package/dist/declarations/src/ChannelMergeStrategy.d.ts.map +1 -0
  1492. package/dist/declarations/src/ChannelSingleProducerAsyncInput.d.ts +57 -0
  1493. package/dist/declarations/src/ChannelSingleProducerAsyncInput.d.ts.map +1 -0
  1494. package/dist/declarations/src/ChannelUpstreamPullRequest.d.ts +96 -0
  1495. package/dist/declarations/src/ChannelUpstreamPullRequest.d.ts.map +1 -0
  1496. package/dist/declarations/src/ChannelUpstreamPullStrategy.d.ts +97 -0
  1497. package/dist/declarations/src/ChannelUpstreamPullStrategy.d.ts.map +1 -0
  1498. package/dist/declarations/src/Chunk.d.ts +754 -0
  1499. package/dist/declarations/src/Chunk.d.ts.map +1 -0
  1500. package/dist/declarations/src/Clock.d.ts +97 -0
  1501. package/dist/declarations/src/Clock.d.ts.map +1 -0
  1502. package/dist/declarations/src/Config.d.ts +388 -0
  1503. package/dist/declarations/src/Config.d.ts.map +1 -0
  1504. package/dist/declarations/src/ConfigError.d.ts +219 -0
  1505. package/dist/declarations/src/ConfigError.d.ts.map +1 -0
  1506. package/dist/declarations/src/ConfigProvider.d.ts +256 -0
  1507. package/dist/declarations/src/ConfigProvider.d.ts.map +1 -0
  1508. package/dist/declarations/src/ConfigProviderPathPatch.d.ts +86 -0
  1509. package/dist/declarations/src/ConfigProviderPathPatch.d.ts.map +1 -0
  1510. package/dist/declarations/src/ConfigSecret.d.ts +64 -0
  1511. package/dist/declarations/src/ConfigSecret.d.ts.map +1 -0
  1512. package/dist/declarations/src/Console.d.ts +196 -0
  1513. package/dist/declarations/src/Console.d.ts.map +1 -0
  1514. package/dist/declarations/src/Context.d.ts +339 -0
  1515. package/dist/declarations/src/Context.d.ts.map +1 -0
  1516. package/dist/declarations/src/Data.d.ts +248 -0
  1517. package/dist/declarations/src/Data.d.ts.map +1 -0
  1518. package/dist/declarations/src/DefaultServices.d.ts +26 -0
  1519. package/dist/declarations/src/DefaultServices.d.ts.map +1 -0
  1520. package/dist/declarations/src/Deferred.d.ts +247 -0
  1521. package/dist/declarations/src/Deferred.d.ts.map +1 -0
  1522. package/dist/declarations/src/Differ.d.ts +308 -0
  1523. package/dist/declarations/src/Differ.d.ts.map +1 -0
  1524. package/dist/declarations/src/Duration.d.ts +265 -0
  1525. package/dist/declarations/src/Duration.d.ts.map +1 -0
  1526. package/dist/declarations/src/Effect.d.ts +3735 -0
  1527. package/dist/declarations/src/Effect.d.ts.map +1 -0
  1528. package/dist/declarations/src/Effectable.d.ts +93 -0
  1529. package/dist/declarations/src/Effectable.d.ts.map +1 -0
  1530. package/dist/declarations/src/Either.d.ts +453 -0
  1531. package/dist/declarations/src/Either.d.ts.map +1 -0
  1532. package/dist/declarations/src/Encoding.d.ts +110 -0
  1533. package/dist/declarations/src/Encoding.d.ts.map +1 -0
  1534. package/dist/declarations/src/Equal.d.ts +34 -0
  1535. package/dist/declarations/src/Equal.d.ts.map +1 -0
  1536. package/dist/declarations/src/Equivalence.d.ts +134 -0
  1537. package/dist/declarations/src/Equivalence.d.ts.map +1 -0
  1538. package/dist/declarations/src/ExecutionStrategy.d.ts +100 -0
  1539. package/dist/declarations/src/ExecutionStrategy.d.ts.map +1 -0
  1540. package/dist/declarations/src/Exit.d.ts +406 -0
  1541. package/dist/declarations/src/Exit.d.ts.map +1 -0
  1542. package/dist/declarations/src/Fiber.d.ts +569 -0
  1543. package/dist/declarations/src/Fiber.d.ts.map +1 -0
  1544. package/dist/declarations/src/FiberId.d.ts +165 -0
  1545. package/dist/declarations/src/FiberId.d.ts.map +1 -0
  1546. package/dist/declarations/src/FiberRef.d.ts +307 -0
  1547. package/dist/declarations/src/FiberRef.d.ts.map +1 -0
  1548. package/dist/declarations/src/FiberRefs.d.ts +138 -0
  1549. package/dist/declarations/src/FiberRefs.d.ts.map +1 -0
  1550. package/dist/declarations/src/FiberRefsPatch.d.ts +95 -0
  1551. package/dist/declarations/src/FiberRefsPatch.d.ts.map +1 -0
  1552. package/dist/declarations/src/FiberStatus.d.ts +94 -0
  1553. package/dist/declarations/src/FiberStatus.d.ts.map +1 -0
  1554. package/dist/declarations/src/Function.d.ts +371 -0
  1555. package/dist/declarations/src/Function.d.ts.map +1 -0
  1556. package/dist/declarations/src/GlobalValue.d.ts +5 -0
  1557. package/dist/declarations/src/GlobalValue.d.ts.map +1 -0
  1558. package/dist/declarations/src/GroupBy.d.ts +86 -0
  1559. package/dist/declarations/src/GroupBy.d.ts.map +1 -0
  1560. package/dist/declarations/src/HKT.d.ts +40 -0
  1561. package/dist/declarations/src/HKT.d.ts.map +1 -0
  1562. package/dist/declarations/src/Hash.d.ts +63 -0
  1563. package/dist/declarations/src/Hash.d.ts.map +1 -0
  1564. package/dist/declarations/src/HashMap.d.ts +361 -0
  1565. package/dist/declarations/src/HashMap.d.ts.map +1 -0
  1566. package/dist/declarations/src/HashSet.d.ts +267 -0
  1567. package/dist/declarations/src/HashSet.d.ts.map +1 -0
  1568. package/dist/declarations/src/Inspectable.d.ts +31 -0
  1569. package/dist/declarations/src/Inspectable.d.ts.map +1 -0
  1570. package/dist/declarations/src/KeyedPool.d.ts +147 -0
  1571. package/dist/declarations/src/KeyedPool.d.ts.map +1 -0
  1572. package/dist/declarations/src/Layer.d.ts +747 -0
  1573. package/dist/declarations/src/Layer.d.ts.map +1 -0
  1574. package/dist/declarations/src/List.d.ts +478 -0
  1575. package/dist/declarations/src/List.d.ts.map +1 -0
  1576. package/dist/declarations/src/LogLevel.d.ts +203 -0
  1577. package/dist/declarations/src/LogLevel.d.ts.map +1 -0
  1578. package/dist/declarations/src/LogSpan.d.ts +19 -0
  1579. package/dist/declarations/src/LogSpan.d.ts.map +1 -0
  1580. package/dist/declarations/src/Logger.d.ts +238 -0
  1581. package/dist/declarations/src/Logger.d.ts.map +1 -0
  1582. package/dist/declarations/src/Match.d.ts +420 -0
  1583. package/dist/declarations/src/Match.d.ts.map +1 -0
  1584. package/dist/declarations/src/Metric.d.ts +595 -0
  1585. package/dist/declarations/src/Metric.d.ts.map +1 -0
  1586. package/dist/declarations/src/MetricBoundaries.d.ts +59 -0
  1587. package/dist/declarations/src/MetricBoundaries.d.ts.map +1 -0
  1588. package/dist/declarations/src/MetricHook.d.ts +120 -0
  1589. package/dist/declarations/src/MetricHook.d.ts.map +1 -0
  1590. package/dist/declarations/src/MetricKey.d.ts +182 -0
  1591. package/dist/declarations/src/MetricKey.d.ts.map +1 -0
  1592. package/dist/declarations/src/MetricKeyType.d.ts +221 -0
  1593. package/dist/declarations/src/MetricKeyType.d.ts.map +1 -0
  1594. package/dist/declarations/src/MetricLabel.d.ts +42 -0
  1595. package/dist/declarations/src/MetricLabel.d.ts.map +1 -0
  1596. package/dist/declarations/src/MetricPair.d.ts +53 -0
  1597. package/dist/declarations/src/MetricPair.d.ts.map +1 -0
  1598. package/dist/declarations/src/MetricPolling.d.ts +99 -0
  1599. package/dist/declarations/src/MetricPolling.d.ts.map +1 -0
  1600. package/dist/declarations/src/MetricRegistry.d.ts +38 -0
  1601. package/dist/declarations/src/MetricRegistry.d.ts.map +1 -0
  1602. package/dist/declarations/src/MetricState.d.ts +223 -0
  1603. package/dist/declarations/src/MetricState.d.ts.map +1 -0
  1604. package/dist/declarations/src/MutableHashMap.d.ts +87 -0
  1605. package/dist/declarations/src/MutableHashMap.d.ts.map +1 -0
  1606. package/dist/declarations/src/MutableHashSet.d.ts +61 -0
  1607. package/dist/declarations/src/MutableHashSet.d.ts.map +1 -0
  1608. package/dist/declarations/src/MutableList.d.ts +114 -0
  1609. package/dist/declarations/src/MutableList.d.ts.map +1 -0
  1610. package/dist/declarations/src/MutableQueue.d.ts +127 -0
  1611. package/dist/declarations/src/MutableQueue.d.ts.map +1 -0
  1612. package/dist/declarations/src/MutableRef.d.ts +118 -0
  1613. package/dist/declarations/src/MutableRef.d.ts.map +1 -0
  1614. package/dist/declarations/src/NonEmptyIterable.d.ts +21 -0
  1615. package/dist/declarations/src/NonEmptyIterable.d.ts.map +1 -0
  1616. package/dist/declarations/src/Number.d.ts +384 -0
  1617. package/dist/declarations/src/Number.d.ts.map +1 -0
  1618. package/dist/declarations/src/Option.d.ts +967 -0
  1619. package/dist/declarations/src/Option.d.ts.map +1 -0
  1620. package/dist/declarations/src/Order.d.ts +212 -0
  1621. package/dist/declarations/src/Order.d.ts.map +1 -0
  1622. package/dist/declarations/src/Ordering.d.ts +83 -0
  1623. package/dist/declarations/src/Ordering.d.ts.map +1 -0
  1624. package/dist/declarations/src/Pipeable.d.ts +35 -0
  1625. package/dist/declarations/src/Pipeable.d.ts.map +1 -0
  1626. package/dist/declarations/src/Pool.d.ts +136 -0
  1627. package/dist/declarations/src/Pool.d.ts.map +1 -0
  1628. package/dist/declarations/src/Predicate.d.ts +596 -0
  1629. package/dist/declarations/src/Predicate.d.ts.map +1 -0
  1630. package/dist/declarations/src/PubSub.d.ts +158 -0
  1631. package/dist/declarations/src/PubSub.d.ts.map +1 -0
  1632. package/dist/declarations/src/Queue.d.ts +501 -0
  1633. package/dist/declarations/src/Queue.d.ts.map +1 -0
  1634. package/dist/declarations/src/Random.d.ts +101 -0
  1635. package/dist/declarations/src/Random.d.ts.map +1 -0
  1636. package/dist/declarations/src/ReadonlyArray.d.ts +1254 -0
  1637. package/dist/declarations/src/ReadonlyArray.d.ts.map +1 -0
  1638. package/dist/declarations/src/ReadonlyRecord.d.ts +603 -0
  1639. package/dist/declarations/src/ReadonlyRecord.d.ts.map +1 -0
  1640. package/dist/declarations/src/RedBlackTree.d.ts +369 -0
  1641. package/dist/declarations/src/RedBlackTree.d.ts.map +1 -0
  1642. package/dist/declarations/src/Ref.d.ts +141 -0
  1643. package/dist/declarations/src/Ref.d.ts.map +1 -0
  1644. package/dist/declarations/src/Reloadable.d.ts +101 -0
  1645. package/dist/declarations/src/Reloadable.d.ts.map +1 -0
  1646. package/dist/declarations/src/Request.d.ts +251 -0
  1647. package/dist/declarations/src/Request.d.ts.map +1 -0
  1648. package/dist/declarations/src/RequestBlock.d.ts +113 -0
  1649. package/dist/declarations/src/RequestBlock.d.ts.map +1 -0
  1650. package/dist/declarations/src/RequestResolver.d.ts +218 -0
  1651. package/dist/declarations/src/RequestResolver.d.ts.map +1 -0
  1652. package/dist/declarations/src/Resource.d.ts +78 -0
  1653. package/dist/declarations/src/Resource.d.ts.map +1 -0
  1654. package/dist/declarations/src/Runtime.d.ts +180 -0
  1655. package/dist/declarations/src/Runtime.d.ts.map +1 -0
  1656. package/dist/declarations/src/RuntimeFlags.d.ts +297 -0
  1657. package/dist/declarations/src/RuntimeFlags.d.ts.map +1 -0
  1658. package/dist/declarations/src/RuntimeFlagsPatch.d.ts +161 -0
  1659. package/dist/declarations/src/RuntimeFlagsPatch.d.ts.map +1 -0
  1660. package/dist/declarations/src/STM.d.ts +1551 -0
  1661. package/dist/declarations/src/STM.d.ts.map +1 -0
  1662. package/dist/declarations/src/Schedule.d.ts +1073 -0
  1663. package/dist/declarations/src/Schedule.d.ts.map +1 -0
  1664. package/dist/declarations/src/ScheduleDecision.d.ts +50 -0
  1665. package/dist/declarations/src/ScheduleDecision.d.ts.map +1 -0
  1666. package/dist/declarations/src/ScheduleInterval.d.ts +136 -0
  1667. package/dist/declarations/src/ScheduleInterval.d.ts.map +1 -0
  1668. package/dist/declarations/src/ScheduleIntervals.d.ts +109 -0
  1669. package/dist/declarations/src/ScheduleIntervals.d.ts.map +1 -0
  1670. package/dist/declarations/src/Scheduler.d.ts +158 -0
  1671. package/dist/declarations/src/Scheduler.d.ts.map +1 -0
  1672. package/dist/declarations/src/Scope.d.ts +131 -0
  1673. package/dist/declarations/src/Scope.d.ts.map +1 -0
  1674. package/dist/declarations/src/ScopedCache.d.ts +126 -0
  1675. package/dist/declarations/src/ScopedCache.d.ts.map +1 -0
  1676. package/dist/declarations/src/ScopedRef.d.ts +82 -0
  1677. package/dist/declarations/src/ScopedRef.d.ts.map +1 -0
  1678. package/dist/declarations/src/Sink.d.ts +1127 -0
  1679. package/dist/declarations/src/Sink.d.ts.map +1 -0
  1680. package/dist/declarations/src/SortedMap.d.ts +136 -0
  1681. package/dist/declarations/src/SortedMap.d.ts.map +1 -0
  1682. package/dist/declarations/src/SortedSet.d.ts +185 -0
  1683. package/dist/declarations/src/SortedSet.d.ts.map +1 -0
  1684. package/dist/declarations/src/Stream.d.ts +3577 -0
  1685. package/dist/declarations/src/Stream.d.ts.map +1 -0
  1686. package/dist/declarations/src/StreamEmit.d.ts +73 -0
  1687. package/dist/declarations/src/StreamEmit.d.ts.map +1 -0
  1688. package/dist/declarations/src/StreamHaltStrategy.d.ts +92 -0
  1689. package/dist/declarations/src/StreamHaltStrategy.d.ts.map +1 -0
  1690. package/dist/declarations/src/Streamable.d.ts +27 -0
  1691. package/dist/declarations/src/Streamable.d.ts.map +1 -0
  1692. package/dist/declarations/src/String.d.ts +514 -0
  1693. package/dist/declarations/src/String.d.ts.map +1 -0
  1694. package/dist/declarations/src/Struct.d.ts +109 -0
  1695. package/dist/declarations/src/Struct.d.ts.map +1 -0
  1696. package/dist/declarations/src/SubscriptionRef.d.ts +211 -0
  1697. package/dist/declarations/src/SubscriptionRef.d.ts.map +1 -0
  1698. package/dist/declarations/src/Supervisor.d.ts +170 -0
  1699. package/dist/declarations/src/Supervisor.d.ts.map +1 -0
  1700. package/dist/declarations/src/Symbol.d.ts +25 -0
  1701. package/dist/declarations/src/Symbol.d.ts.map +1 -0
  1702. package/dist/declarations/src/SynchronizedRef.d.ts +205 -0
  1703. package/dist/declarations/src/SynchronizedRef.d.ts.map +1 -0
  1704. package/dist/declarations/src/TArray.d.ts +430 -0
  1705. package/dist/declarations/src/TArray.d.ts.map +1 -0
  1706. package/dist/declarations/src/TDeferred.d.ts +79 -0
  1707. package/dist/declarations/src/TDeferred.d.ts.map +1 -0
  1708. package/dist/declarations/src/TMap.d.ts +427 -0
  1709. package/dist/declarations/src/TMap.d.ts.map +1 -0
  1710. package/dist/declarations/src/TPriorityQueue.d.ts +185 -0
  1711. package/dist/declarations/src/TPriorityQueue.d.ts.map +1 -0
  1712. package/dist/declarations/src/TPubSub.d.ts +146 -0
  1713. package/dist/declarations/src/TPubSub.d.ts.map +1 -0
  1714. package/dist/declarations/src/TQueue.d.ts +383 -0
  1715. package/dist/declarations/src/TQueue.d.ts.map +1 -0
  1716. package/dist/declarations/src/TRandom.d.ts +108 -0
  1717. package/dist/declarations/src/TRandom.d.ts.map +1 -0
  1718. package/dist/declarations/src/TReentrantLock.d.ts +194 -0
  1719. package/dist/declarations/src/TReentrantLock.d.ts.map +1 -0
  1720. package/dist/declarations/src/TRef.d.ts +145 -0
  1721. package/dist/declarations/src/TRef.d.ts.map +1 -0
  1722. package/dist/declarations/src/TSemaphore.d.ts +105 -0
  1723. package/dist/declarations/src/TSemaphore.d.ts.map +1 -0
  1724. package/dist/declarations/src/TSet.d.ts +306 -0
  1725. package/dist/declarations/src/TSet.d.ts.map +1 -0
  1726. package/dist/declarations/src/Take.d.ts +214 -0
  1727. package/dist/declarations/src/Take.d.ts.map +1 -0
  1728. package/dist/declarations/src/TestAnnotation.d.ts +70 -0
  1729. package/dist/declarations/src/TestAnnotation.d.ts.map +1 -0
  1730. package/dist/declarations/src/TestAnnotationMap.d.ts +55 -0
  1731. package/dist/declarations/src/TestAnnotationMap.d.ts.map +1 -0
  1732. package/dist/declarations/src/TestAnnotations.d.ts +59 -0
  1733. package/dist/declarations/src/TestAnnotations.d.ts.map +1 -0
  1734. package/dist/declarations/src/TestClock.d.ts +149 -0
  1735. package/dist/declarations/src/TestClock.d.ts.map +1 -0
  1736. package/dist/declarations/src/TestConfig.d.ts +45 -0
  1737. package/dist/declarations/src/TestConfig.d.ts.map +1 -0
  1738. package/dist/declarations/src/TestContext.d.ts +15 -0
  1739. package/dist/declarations/src/TestContext.d.ts.map +1 -0
  1740. package/dist/declarations/src/TestLive.d.ts +35 -0
  1741. package/dist/declarations/src/TestLive.d.ts.map +1 -0
  1742. package/dist/declarations/src/TestServices.d.ts +231 -0
  1743. package/dist/declarations/src/TestServices.d.ts.map +1 -0
  1744. package/dist/declarations/src/TestSized.d.ts +36 -0
  1745. package/dist/declarations/src/TestSized.d.ts.map +1 -0
  1746. package/dist/declarations/src/Tracer.d.ts +112 -0
  1747. package/dist/declarations/src/Tracer.d.ts.map +1 -0
  1748. package/dist/declarations/src/Tuple.d.ts +173 -0
  1749. package/dist/declarations/src/Tuple.d.ts.map +1 -0
  1750. package/dist/declarations/src/Types.d.ts +113 -0
  1751. package/dist/declarations/src/Types.d.ts.map +1 -0
  1752. package/dist/declarations/src/Unify.d.ts +62 -0
  1753. package/dist/declarations/src/Unify.d.ts.map +1 -0
  1754. package/dist/declarations/src/Utils.d.ts +224 -0
  1755. package/dist/declarations/src/Utils.d.ts.map +1 -0
  1756. package/dist/declarations/src/index.d.ts +702 -0
  1757. package/dist/declarations/src/index.d.ts.map +1 -0
  1758. package/dist/defaultServices-6a9a2d2b.cjs.dev.js +328 -0
  1759. package/dist/defaultServices-8ea5e664.cjs.prod.js +328 -0
  1760. package/dist/effect.cjs.d.mts +2 -0
  1761. package/dist/effect.cjs.d.mts.map +1 -0
  1762. package/dist/effect.cjs.d.ts +2 -0
  1763. package/dist/effect.cjs.d.ts.map +1 -0
  1764. package/dist/effect.cjs.dev.js +476 -0
  1765. package/dist/effect.cjs.js +7 -0
  1766. package/dist/effect.cjs.mjs +150 -0
  1767. package/dist/effect.cjs.prod.js +476 -0
  1768. package/dist/effect.esm.js +285 -0
  1769. package/dist/fiber-3d944398.cjs.dev.js +411 -0
  1770. package/dist/fiber-cbd0613f.cjs.prod.js +411 -0
  1771. package/dist/fiberRefs-99808a27.cjs.prod.js +181 -0
  1772. package/dist/fiberRefs-ccc37f30.cjs.dev.js +181 -0
  1773. package/dist/fiberRuntime-0c1e7478.cjs.dev.js +3012 -0
  1774. package/dist/fiberRuntime-f1e80ca7.cjs.prod.js +3012 -0
  1775. package/dist/groupBy-30f6e9ba.cjs.prod.js +219 -0
  1776. package/dist/groupBy-8ae74e3b.cjs.dev.js +219 -0
  1777. package/dist/hook-ad5af092.cjs.dev.js +375 -0
  1778. package/dist/hook-cab99f9e.cjs.prod.js +375 -0
  1779. package/dist/key-9c7368c8.cjs.prod.js +79 -0
  1780. package/dist/key-e3189bbd.cjs.dev.js +79 -0
  1781. package/dist/keyType-2ae6a00e.cjs.prod.js +243 -0
  1782. package/dist/keyType-36962f62.cjs.dev.js +243 -0
  1783. package/dist/label-a588e6cd.cjs.prod.js +44 -0
  1784. package/dist/label-b0cebeae.cjs.dev.js +44 -0
  1785. package/dist/layer-bfb9802a.cjs.prod.js +684 -0
  1786. package/dist/layer-c284cf0d.cjs.dev.js +684 -0
  1787. package/dist/mergeDecision-07c6b5c9.cjs.prod.js +86 -0
  1788. package/dist/mergeDecision-be41e797.cjs.dev.js +86 -0
  1789. package/dist/mergeState-75990fa2.cjs.prod.js +109 -0
  1790. package/dist/mergeState-8153ce39.cjs.dev.js +109 -0
  1791. package/dist/mergeStrategy-3dd6e55f.cjs.prod.js +72 -0
  1792. package/dist/mergeStrategy-81ea5b80.cjs.dev.js +72 -0
  1793. package/dist/pair-291b78d7.cjs.dev.js +42 -0
  1794. package/dist/pair-6254cf85.cjs.prod.js +42 -0
  1795. package/dist/patch-256bc574.cjs.prod.js +132 -0
  1796. package/dist/patch-cda9b6c8.cjs.dev.js +132 -0
  1797. package/dist/pathPatch-31ce8101.cjs.dev.js +90 -0
  1798. package/dist/pathPatch-40b92af6.cjs.prod.js +90 -0
  1799. package/dist/pool-122f0fad.cjs.prod.js +278 -0
  1800. package/dist/pool-f6ca2038.cjs.dev.js +278 -0
  1801. package/dist/query-5cc0ddf8.cjs.prod.js +104 -0
  1802. package/dist/query-7bffa3c3.cjs.dev.js +104 -0
  1803. package/dist/queue-4166cfdb.cjs.dev.js +548 -0
  1804. package/dist/queue-e326fd89.cjs.prod.js +548 -0
  1805. package/dist/registry-081e18a3.cjs.prod.js +114 -0
  1806. package/dist/registry-377855a9.cjs.dev.js +114 -0
  1807. package/dist/runtime-4078f059.cjs.prod.js +290 -0
  1808. package/dist/runtime-d4514ab5.cjs.dev.js +290 -0
  1809. package/dist/schedule-31e38871.cjs.dev.js +956 -0
  1810. package/dist/schedule-f036b254.cjs.prod.js +956 -0
  1811. package/dist/scopedRef-5ecf6468.cjs.dev.js +55 -0
  1812. package/dist/scopedRef-8ce21228.cjs.prod.js +55 -0
  1813. package/dist/singleProducerAsyncInput-8879d87c.cjs.prod.js +193 -0
  1814. package/dist/singleProducerAsyncInput-ece7387b.cjs.dev.js +193 -0
  1815. package/dist/sink-1794329b.cjs.dev.js +3093 -0
  1816. package/dist/sink-9208df8d.cjs.prod.js +3093 -0
  1817. package/dist/state-40d5dc71.cjs.prod.js +223 -0
  1818. package/dist/state-620f7a22.cjs.dev.js +223 -0
  1819. package/dist/stm-6ad7b384.cjs.prod.js +678 -0
  1820. package/dist/stm-b080be31.cjs.dev.js +678 -0
  1821. package/dist/stream-09aeeac3.cjs.dev.js +3652 -0
  1822. package/dist/stream-e19805ca.cjs.prod.js +3652 -0
  1823. package/dist/synchronizedRef-8fa16866.cjs.dev.js +62 -0
  1824. package/dist/synchronizedRef-cc04ecbd.cjs.prod.js +62 -0
  1825. package/dist/tArray-5e42c290.cjs.prod.js +330 -0
  1826. package/dist/tArray-7d470ed7.cjs.dev.js +330 -0
  1827. package/dist/tMap-a2cfde88.cjs.prod.js +535 -0
  1828. package/dist/tMap-f0df0ea0.cjs.dev.js +535 -0
  1829. package/dist/tQueue-085f70b5.cjs.dev.js +367 -0
  1830. package/dist/tQueue-b80e940e.cjs.prod.js +367 -0
  1831. package/dist/tRef-2e495254.cjs.dev.js +133 -0
  1832. package/dist/tRef-42a212cb.cjs.prod.js +133 -0
  1833. package/dist/take-114476e5.cjs.prod.js +152 -0
  1834. package/dist/take-d4fa1beb.cjs.dev.js +152 -0
  1835. package/dist/timeout-489f3f86.cjs.prod.js +25 -0
  1836. package/dist/timeout-d380d3f8.cjs.dev.js +25 -0
  1837. package/dist/upstreamPullRequest-7a694281.cjs.dev.js +79 -0
  1838. package/dist/upstreamPullRequest-c89f818d.cjs.prod.js +79 -0
  1839. package/dist/upstreamPullStrategy-63cc8967.cjs.prod.js +81 -0
  1840. package/dist/upstreamPullStrategy-f9f1ab57.cjs.dev.js +81 -0
  1841. package/internal/Context.esm.js +208 -0
  1842. package/internal/Data.esm.js +52 -0
  1843. package/internal/Differ/ChunkPatch.esm.js +131 -0
  1844. package/internal/Differ/ContextPatch.esm.js +158 -0
  1845. package/internal/Differ/HashMapPatch.esm.js +133 -0
  1846. package/internal/Differ/HashSetPatch.esm.js +107 -0
  1847. package/internal/Differ/OrPatch.esm.js +196 -0
  1848. package/internal/Differ.esm.js +130 -0
  1849. package/internal/Effectable.esm.js +89 -0
  1850. package/internal/Either.esm.js +95 -0
  1851. package/internal/Encoding/Base64.esm.js +74 -0
  1852. package/internal/Encoding/Base64Url.esm.js +24 -0
  1853. package/internal/Encoding/Common.esm.js +21 -0
  1854. package/internal/Encoding/Hex.esm.js +55 -0
  1855. package/internal/HashMap/array.esm.js +51 -0
  1856. package/internal/HashMap/bitwise.esm.js +34 -0
  1857. package/internal/HashMap/config.esm.js +16 -0
  1858. package/internal/HashMap/keySet.esm.js +8 -0
  1859. package/internal/HashMap/node.esm.js +253 -0
  1860. package/internal/HashMap.esm.js +366 -0
  1861. package/internal/HashSet.esm.js +211 -0
  1862. package/internal/Option.esm.js +75 -0
  1863. package/internal/ReadonlyArray.esm.js +8 -0
  1864. package/internal/RedBlackTree/iterator.esm.js +204 -0
  1865. package/internal/RedBlackTree/node.esm.js +43 -0
  1866. package/internal/RedBlackTree.esm.js +1042 -0
  1867. package/internal/Stack.esm.js +9 -0
  1868. package/internal/blockedRequests.esm.js +365 -0
  1869. package/internal/cache.esm.js +514 -0
  1870. package/internal/cause.esm.js +1053 -0
  1871. package/internal/channel/channelExecutor.esm.js +692 -0
  1872. package/internal/channel/channelState.esm.js +78 -0
  1873. package/internal/channel/childExecutorDecision.esm.js +71 -0
  1874. package/internal/channel/continuation.esm.js +58 -0
  1875. package/internal/channel/mergeDecision.esm.js +69 -0
  1876. package/internal/channel/mergeState.esm.js +82 -0
  1877. package/internal/channel/mergeStrategy.esm.js +55 -0
  1878. package/internal/channel/singleProducerAsyncInput.esm.js +191 -0
  1879. package/internal/channel/subexecutor.esm.js +153 -0
  1880. package/internal/channel/upstreamPullRequest.esm.js +62 -0
  1881. package/internal/channel/upstreamPullStrategy.esm.js +62 -0
  1882. package/internal/channel.esm.js +647 -0
  1883. package/internal/clock.esm.js +82 -0
  1884. package/internal/completedRequestMap.esm.js +7 -0
  1885. package/internal/concurrency.esm.js +47 -0
  1886. package/internal/config.esm.js +374 -0
  1887. package/internal/configError.esm.js +276 -0
  1888. package/internal/configProvider/pathPatch.esm.js +83 -0
  1889. package/internal/configProvider.esm.js +365 -0
  1890. package/internal/configSecret.esm.js +66 -0
  1891. package/internal/console.esm.js +72 -0
  1892. package/internal/core-effect.esm.js +884 -0
  1893. package/internal/core-stream.esm.js +293 -0
  1894. package/internal/core.esm.js +1756 -0
  1895. package/internal/dataSource.esm.js +61 -0
  1896. package/internal/defaultServices/console.esm.js +96 -0
  1897. package/internal/defaultServices.esm.js +85 -0
  1898. package/internal/deferred.esm.js +37 -0
  1899. package/internal/effect/circular.esm.js +314 -0
  1900. package/internal/executionStrategy.esm.js +61 -0
  1901. package/internal/fiber.esm.js +257 -0
  1902. package/internal/fiberId.esm.js +243 -0
  1903. package/internal/fiberMessage.esm.js +54 -0
  1904. package/internal/fiberRefs/patch.esm.js +127 -0
  1905. package/internal/fiberRefs.esm.js +169 -0
  1906. package/internal/fiberRuntime.esm.js +2005 -0
  1907. package/internal/fiberScope.esm.js +58 -0
  1908. package/internal/fiberStatus.esm.js +89 -0
  1909. package/internal/groupBy.esm.js +211 -0
  1910. package/internal/keyedPool.esm.js +161 -0
  1911. package/internal/layer/circular.esm.js +86 -0
  1912. package/internal/layer.esm.js +575 -0
  1913. package/internal/logSpan.esm.js +15 -0
  1914. package/internal/logger-circular.esm.js +21 -0
  1915. package/internal/logger.esm.js +213 -0
  1916. package/internal/matcher.esm.js +314 -0
  1917. package/internal/metric/boundaries.esm.js +48 -0
  1918. package/internal/metric/hook.esm.js +366 -0
  1919. package/internal/metric/key.esm.js +68 -0
  1920. package/internal/metric/keyType.esm.js +225 -0
  1921. package/internal/metric/label.esm.js +40 -0
  1922. package/internal/metric/pair.esm.js +38 -0
  1923. package/internal/metric/polling.esm.js +74 -0
  1924. package/internal/metric/registry.esm.js +111 -0
  1925. package/internal/metric/state.esm.js +205 -0
  1926. package/internal/metric.esm.js +204 -0
  1927. package/internal/opCodes/cause.esm.js +31 -0
  1928. package/internal/opCodes/channel.esm.js +71 -0
  1929. package/internal/opCodes/channelChildExecutorDecision.esm.js +16 -0
  1930. package/internal/opCodes/channelMergeDecision.esm.js +11 -0
  1931. package/internal/opCodes/channelMergeState.esm.js +16 -0
  1932. package/internal/opCodes/channelMergeStrategy.esm.js +11 -0
  1933. package/internal/opCodes/channelState.esm.js +21 -0
  1934. package/internal/opCodes/channelUpstreamPullRequest.esm.js +11 -0
  1935. package/internal/opCodes/channelUpstreamPullStrategy.esm.js +11 -0
  1936. package/internal/opCodes/config.esm.js +56 -0
  1937. package/internal/opCodes/configError.esm.js +31 -0
  1938. package/internal/opCodes/continuation.esm.js +11 -0
  1939. package/internal/opCodes/deferred.esm.js +11 -0
  1940. package/internal/opCodes/effect.esm.js +71 -0
  1941. package/internal/opCodes/layer.esm.js +46 -0
  1942. package/internal/opCodes/streamHaltStrategy.esm.js +21 -0
  1943. package/internal/pool.esm.js +271 -0
  1944. package/internal/pubsub.esm.js +1102 -0
  1945. package/internal/query.esm.js +100 -0
  1946. package/internal/queue.esm.js +515 -0
  1947. package/internal/random.esm.js +58 -0
  1948. package/internal/ref.esm.js +121 -0
  1949. package/internal/reloadable.esm.js +62 -0
  1950. package/internal/request.esm.js +81 -0
  1951. package/internal/resource.esm.js +35 -0
  1952. package/internal/ringBuffer.esm.js +56 -0
  1953. package/internal/runtime.esm.js +270 -0
  1954. package/internal/runtimeFlags.esm.js +137 -0
  1955. package/internal/runtimeFlagsPatch.esm.js +57 -0
  1956. package/internal/schedule/decision.esm.js +45 -0
  1957. package/internal/schedule/interval.esm.js +85 -0
  1958. package/internal/schedule/intervals.esm.js +135 -0
  1959. package/internal/schedule.esm.js +844 -0
  1960. package/internal/scopedCache.esm.js +406 -0
  1961. package/internal/scopedRef.esm.js +49 -0
  1962. package/internal/singleShotGen.esm.js +30 -0
  1963. package/internal/sink.esm.js +918 -0
  1964. package/internal/stm/core.esm.js +553 -0
  1965. package/internal/stm/opCodes/stm.esm.js +56 -0
  1966. package/internal/stm/opCodes/stmState.esm.js +16 -0
  1967. package/internal/stm/opCodes/strategy.esm.js +16 -0
  1968. package/internal/stm/opCodes/tExit.esm.js +26 -0
  1969. package/internal/stm/opCodes/tryCommit.esm.js +11 -0
  1970. package/internal/stm/stm/entry.esm.js +47 -0
  1971. package/internal/stm/stm/journal.esm.js +96 -0
  1972. package/internal/stm/stm/stmState.esm.js +104 -0
  1973. package/internal/stm/stm/tExit.esm.js +113 -0
  1974. package/internal/stm/stm/tryCommit.esm.js +25 -0
  1975. package/internal/stm/stm/txnId.esm.js +15 -0
  1976. package/internal/stm/stm/versioned.esm.js +8 -0
  1977. package/internal/stm/stm.esm.js +584 -0
  1978. package/internal/stm/tArray.esm.js +287 -0
  1979. package/internal/stm/tDeferred.esm.js +49 -0
  1980. package/internal/stm/tMap.esm.js +492 -0
  1981. package/internal/stm/tPriorityQueue.esm.js +156 -0
  1982. package/internal/stm/tPubSub.esm.js +381 -0
  1983. package/internal/stm/tQueue.esm.js +317 -0
  1984. package/internal/stm/tRandom.esm.js +89 -0
  1985. package/internal/stm/tReentrantLock.esm.js +216 -0
  1986. package/internal/stm/tRef.esm.js +117 -0
  1987. package/internal/stm/tSemaphore.esm.js +73 -0
  1988. package/internal/stm/tSet.esm.js +113 -0
  1989. package/internal/stream/debounceState.esm.js +39 -0
  1990. package/internal/stream/emit.esm.js +51 -0
  1991. package/internal/stream/haltStrategy.esm.js +74 -0
  1992. package/internal/stream/handoff.esm.js +79 -0
  1993. package/internal/stream/handoffSignal.esm.js +40 -0
  1994. package/internal/stream/pull.esm.js +10 -0
  1995. package/internal/stream/sinkEndReason.esm.js +27 -0
  1996. package/internal/stream/zipAllState.esm.js +65 -0
  1997. package/internal/stream/zipChunksState.esm.js +41 -0
  1998. package/internal/stream.esm.js +2990 -0
  1999. package/internal/string-utils.esm.js +66 -0
  2000. package/internal/subscriptionRef.esm.js +65 -0
  2001. package/internal/supervisor/patch.esm.js +156 -0
  2002. package/internal/supervisor.esm.js +205 -0
  2003. package/internal/synchronizedRef.esm.js +53 -0
  2004. package/internal/take.esm.js +130 -0
  2005. package/internal/testing/suspendedWarningData.esm.js +66 -0
  2006. package/internal/testing/warningData.esm.js +75 -0
  2007. package/internal/timeout.esm.js +22 -0
  2008. package/internal/tracer.esm.js +74 -0
  2009. package/package.json +1091 -31
  2010. package/src/.index.ts +30 -0
  2011. package/src/BigInt.ts +531 -0
  2012. package/src/Boolean.ts +261 -0
  2013. package/src/Brand.ts +336 -0
  2014. package/src/Cache.ts +250 -0
  2015. package/src/Cause.ts +813 -0
  2016. package/src/Channel.ts +2254 -0
  2017. package/src/ChannelChildExecutorDecision.ts +138 -0
  2018. package/src/ChannelMergeDecision.ts +94 -0
  2019. package/src/ChannelMergeState.ts +166 -0
  2020. package/src/ChannelMergeStrategy.ts +107 -0
  2021. package/src/ChannelSingleProducerAsyncInput.ts +68 -0
  2022. package/src/ChannelUpstreamPullRequest.ts +110 -0
  2023. package/src/ChannelUpstreamPullStrategy.ts +120 -0
  2024. package/src/Chunk.ts +1325 -0
  2025. package/src/Clock.ts +111 -0
  2026. package/src/Config.ts +447 -0
  2027. package/src/ConfigError.ts +267 -0
  2028. package/src/ConfigProvider.ts +296 -0
  2029. package/src/ConfigProviderPathPatch.ts +100 -0
  2030. package/src/ConfigSecret.ts +76 -0
  2031. package/src/Console.ts +222 -0
  2032. package/src/Context.ts +365 -0
  2033. package/src/Data.ts +379 -0
  2034. package/src/DefaultServices.ts +34 -0
  2035. package/src/Deferred.ts +283 -0
  2036. package/src/Differ.ts +406 -0
  2037. package/src/Duration.ts +558 -0
  2038. package/src/Effect.ts +5075 -0
  2039. package/src/Effectable.ts +107 -0
  2040. package/src/Either.ts +626 -0
  2041. package/src/Encoding.ts +130 -0
  2042. package/src/Equal.ts +64 -0
  2043. package/src/Equivalence.ts +235 -0
  2044. package/src/ExecutionStrategy.ts +111 -0
  2045. package/src/Exit.ts +464 -0
  2046. package/src/Fiber.ts +650 -0
  2047. package/src/FiberId.ts +187 -0
  2048. package/src/FiberRef.ts +392 -0
  2049. package/src/FiberRefs.ts +160 -0
  2050. package/src/FiberRefsPatch.ts +105 -0
  2051. package/src/FiberStatus.ts +108 -0
  2052. package/src/Function.ts +834 -0
  2053. package/src/GlobalValue.ts +20 -0
  2054. package/src/GroupBy.ts +102 -0
  2055. package/src/HKT.ts +44 -0
  2056. package/src/Hash.ts +162 -0
  2057. package/src/HashMap.ts +403 -0
  2058. package/src/HashSet.ts +300 -0
  2059. package/src/Inspectable.ts +45 -0
  2060. package/src/KeyedPool.ts +160 -0
  2061. package/src/Layer.ts +1017 -0
  2062. package/src/List.ts +951 -0
  2063. package/src/LogLevel.ts +266 -0
  2064. package/src/LogSpan.ts +25 -0
  2065. package/src/Logger.ts +315 -0
  2066. package/src/Match.ts +800 -0
  2067. package/src/Metric.ts +739 -0
  2068. package/src/MetricBoundaries.ts +70 -0
  2069. package/src/MetricHook.ts +139 -0
  2070. package/src/MetricKey.ts +227 -0
  2071. package/src/MetricKeyType.ts +257 -0
  2072. package/src/MetricLabel.ts +47 -0
  2073. package/src/MetricPair.ts +70 -0
  2074. package/src/MetricPolling.ts +136 -0
  2075. package/src/MetricRegistry.ts +47 -0
  2076. package/src/MetricState.ts +256 -0
  2077. package/src/MutableHashMap.ts +187 -0
  2078. package/src/MutableHashSet.ts +118 -0
  2079. package/src/MutableList.ts +289 -0
  2080. package/src/MutableQueue.ts +227 -0
  2081. package/src/MutableRef.ts +204 -0
  2082. package/src/NonEmptyIterable.ts +30 -0
  2083. package/src/Number.ts +434 -0
  2084. package/src/Option.ts +1214 -0
  2085. package/src/Order.ts +328 -0
  2086. package/src/Ordering.ts +112 -0
  2087. package/src/Pipeable.ts +318 -0
  2088. package/src/Pool.ts +148 -0
  2089. package/src/Predicate.ts +704 -0
  2090. package/src/PubSub.ts +175 -0
  2091. package/src/Queue.ts +583 -0
  2092. package/src/Random.ts +115 -0
  2093. package/src/ReadonlyArray.ts +2017 -0
  2094. package/src/ReadonlyRecord.ts +914 -0
  2095. package/src/RedBlackTree.ts +415 -0
  2096. package/src/Ref.ts +159 -0
  2097. package/src/Reloadable.ts +136 -0
  2098. package/src/Request.ts +285 -0
  2099. package/src/RequestBlock.ts +157 -0
  2100. package/src/RequestResolver.ts +305 -0
  2101. package/src/Resource.ts +97 -0
  2102. package/src/Runtime.ts +216 -0
  2103. package/src/RuntimeFlags.ts +336 -0
  2104. package/src/RuntimeFlagsPatch.ts +183 -0
  2105. package/src/STM.ts +2076 -0
  2106. package/src/Schedule.ts +1396 -0
  2107. package/src/ScheduleDecision.ts +62 -0
  2108. package/src/ScheduleInterval.ts +151 -0
  2109. package/src/ScheduleIntervals.ts +122 -0
  2110. package/src/Scheduler.ts +359 -0
  2111. package/src/Scope.ts +171 -0
  2112. package/src/ScopedCache.ts +148 -0
  2113. package/src/ScopedRef.ts +95 -0
  2114. package/src/Sink.ts +1431 -0
  2115. package/src/SortedMap.ts +229 -0
  2116. package/src/SortedSet.ts +385 -0
  2117. package/src/Stream.ts +4540 -0
  2118. package/src/StreamEmit.ts +83 -0
  2119. package/src/StreamHaltStrategy.ts +111 -0
  2120. package/src/Streamable.ts +42 -0
  2121. package/src/String.ts +682 -0
  2122. package/src/Struct.ts +151 -0
  2123. package/src/SubscriptionRef.ts +273 -0
  2124. package/src/Supervisor.ts +239 -0
  2125. package/src/Symbol.ts +28 -0
  2126. package/src/SynchronizedRef.ts +249 -0
  2127. package/src/TArray.ts +494 -0
  2128. package/src/TDeferred.ts +99 -0
  2129. package/src/TMap.ts +510 -0
  2130. package/src/TPriorityQueue.ts +223 -0
  2131. package/src/TPubSub.ts +187 -0
  2132. package/src/TQueue.ts +431 -0
  2133. package/src/TRandom.ts +129 -0
  2134. package/src/TReentrantLock.ts +224 -0
  2135. package/src/TRef.ts +176 -0
  2136. package/src/TSemaphore.ts +129 -0
  2137. package/src/TSet.ts +349 -0
  2138. package/src/Take.ts +257 -0
  2139. package/src/TestAnnotation.ts +166 -0
  2140. package/src/TestAnnotationMap.ts +124 -0
  2141. package/src/TestAnnotations.ts +113 -0
  2142. package/src/TestClock.ts +552 -0
  2143. package/src/TestConfig.ts +49 -0
  2144. package/src/TestContext.ts +35 -0
  2145. package/src/TestLive.ts +55 -0
  2146. package/src/TestServices.ts +392 -0
  2147. package/src/TestSized.ts +55 -0
  2148. package/src/Tracer.ts +133 -0
  2149. package/src/Tuple.ts +204 -0
  2150. package/src/Types.ts +123 -0
  2151. package/src/Unify.ts +118 -0
  2152. package/src/Utils.ts +699 -0
  2153. package/src/index.ts +845 -0
  2154. package/src/internal/Common.ts +56 -0
  2155. package/src/internal/Context.ts +252 -0
  2156. package/src/internal/Data.ts +55 -0
  2157. package/src/internal/Differ/ChunkPatch.ts +209 -0
  2158. package/src/internal/Differ/ContextPatch.ts +229 -0
  2159. package/src/internal/Differ/HashMapPatch.ts +217 -0
  2160. package/src/internal/Differ/HashSetPatch.ts +174 -0
  2161. package/src/internal/Differ/OrPatch.ts +296 -0
  2162. package/src/internal/Differ.ts +184 -0
  2163. package/src/internal/Effectable.ts +92 -0
  2164. package/src/internal/Either.ts +107 -0
  2165. package/src/internal/Encoding/Base64.ts +282 -0
  2166. package/src/internal/Encoding/Base64Url.ts +28 -0
  2167. package/src/internal/Encoding/Common.ts +24 -0
  2168. package/src/internal/Encoding/Hex.ts +315 -0
  2169. package/src/internal/HashMap/array.ts +49 -0
  2170. package/src/internal/HashMap/bitwise.ts +32 -0
  2171. package/src/internal/HashMap/config.ts +14 -0
  2172. package/src/internal/HashMap/keySet.ts +8 -0
  2173. package/src/internal/HashMap/node.ts +390 -0
  2174. package/src/internal/HashMap.ts +533 -0
  2175. package/src/internal/HashSet.ts +319 -0
  2176. package/src/internal/Iterable.ts +54 -0
  2177. package/src/internal/Option.ts +79 -0
  2178. package/src/internal/ReadonlyArray.ts +8 -0
  2179. package/src/internal/RedBlackTree/iterator.ts +207 -0
  2180. package/src/internal/RedBlackTree/node.ts +48 -0
  2181. package/src/internal/RedBlackTree.ts +1195 -0
  2182. package/src/internal/Stack.ts +4 -0
  2183. package/src/internal/blockedRequests.ts +512 -0
  2184. package/src/internal/cache.ts +714 -0
  2185. package/src/internal/cause.ts +1205 -0
  2186. package/src/internal/channel/channelExecutor.ts +1193 -0
  2187. package/src/internal/channel/channelState.ts +132 -0
  2188. package/src/internal/channel/childExecutorDecision.ts +95 -0
  2189. package/src/internal/channel/continuation.ts +171 -0
  2190. package/src/internal/channel/mergeDecision.ts +115 -0
  2191. package/src/internal/channel/mergeState.ts +120 -0
  2192. package/src/internal/channel/mergeStrategy.ts +72 -0
  2193. package/src/internal/channel/singleProducerAsyncInput.ts +261 -0
  2194. package/src/internal/channel/subexecutor.ts +229 -0
  2195. package/src/internal/channel/upstreamPullRequest.ts +83 -0
  2196. package/src/internal/channel/upstreamPullStrategy.ts +86 -0
  2197. package/src/internal/channel.ts +2520 -0
  2198. package/src/internal/clock.ts +97 -0
  2199. package/src/internal/completedRequestMap.ts +9 -0
  2200. package/src/internal/concurrency.ts +83 -0
  2201. package/src/internal/config.ts +598 -0
  2202. package/src/internal/configError.ts +291 -0
  2203. package/src/internal/configProvider/pathPatch.ts +97 -0
  2204. package/src/internal/configProvider.ts +692 -0
  2205. package/src/internal/configSecret.ts +71 -0
  2206. package/src/internal/console.ts +136 -0
  2207. package/src/internal/core-effect.ts +2161 -0
  2208. package/src/internal/core-stream.ts +999 -0
  2209. package/src/internal/core.ts +2776 -0
  2210. package/src/internal/dataSource.ts +258 -0
  2211. package/src/internal/defaultServices/console.ts +97 -0
  2212. package/src/internal/defaultServices.ts +140 -0
  2213. package/src/internal/deferred.ts +44 -0
  2214. package/src/internal/effect/circular.ts +664 -0
  2215. package/src/internal/executionStrategy.ts +72 -0
  2216. package/src/internal/fiber.ts +350 -0
  2217. package/src/internal/fiberId.ts +270 -0
  2218. package/src/internal/fiberMessage.ts +85 -0
  2219. package/src/internal/fiberRefs/patch.ts +144 -0
  2220. package/src/internal/fiberRefs.ts +239 -0
  2221. package/src/internal/fiberRuntime.ts +3478 -0
  2222. package/src/internal/fiberScope.ts +72 -0
  2223. package/src/internal/fiberStatus.ts +118 -0
  2224. package/src/internal/groupBy.ts +520 -0
  2225. package/src/internal/keyedPool.ts +240 -0
  2226. package/src/internal/layer/circular.ts +215 -0
  2227. package/src/internal/layer.ts +1246 -0
  2228. package/src/internal/logSpan.ts +15 -0
  2229. package/src/internal/logger-circular.ts +24 -0
  2230. package/src/internal/logger.ts +307 -0
  2231. package/src/internal/matcher.ts +594 -0
  2232. package/src/internal/metric/boundaries.ts +72 -0
  2233. package/src/internal/metric/hook.ts +459 -0
  2234. package/src/internal/metric/key.ts +173 -0
  2235. package/src/internal/metric/keyType.ts +263 -0
  2236. package/src/internal/metric/label.ts +44 -0
  2237. package/src/internal/metric/pair.ts +48 -0
  2238. package/src/internal/metric/polling.ts +143 -0
  2239. package/src/internal/metric/registry.ts +188 -0
  2240. package/src/internal/metric/state.ts +286 -0
  2241. package/src/internal/metric.ts +522 -0
  2242. package/src/internal/opCodes/cause.ts +35 -0
  2243. package/src/internal/opCodes/channel.ts +83 -0
  2244. package/src/internal/opCodes/channelChildExecutorDecision.ts +17 -0
  2245. package/src/internal/opCodes/channelMergeDecision.ts +11 -0
  2246. package/src/internal/opCodes/channelMergeState.ts +17 -0
  2247. package/src/internal/opCodes/channelMergeStrategy.ts +11 -0
  2248. package/src/internal/opCodes/channelState.ts +23 -0
  2249. package/src/internal/opCodes/channelUpstreamPullRequest.ts +11 -0
  2250. package/src/internal/opCodes/channelUpstreamPullStrategy.ts +11 -0
  2251. package/src/internal/opCodes/config.ts +65 -0
  2252. package/src/internal/opCodes/configError.ts +35 -0
  2253. package/src/internal/opCodes/continuation.ts +11 -0
  2254. package/src/internal/opCodes/deferred.ts +11 -0
  2255. package/src/internal/opCodes/effect.ts +83 -0
  2256. package/src/internal/opCodes/layer.ts +53 -0
  2257. package/src/internal/opCodes/streamHaltStrategy.ts +23 -0
  2258. package/src/internal/pool.ts +499 -0
  2259. package/src/internal/pubsub.ts +1557 -0
  2260. package/src/internal/query.ts +199 -0
  2261. package/src/internal/queue.ts +744 -0
  2262. package/src/internal/random.ts +88 -0
  2263. package/src/internal/ref.ts +164 -0
  2264. package/src/internal/reloadable.ts +164 -0
  2265. package/src/internal/request.ts +137 -0
  2266. package/src/internal/resource.ts +64 -0
  2267. package/src/internal/ringBuffer.ts +68 -0
  2268. package/src/internal/runtime.ts +348 -0
  2269. package/src/internal/runtimeFlags.ts +176 -0
  2270. package/src/internal/runtimeFlagsPatch.ts +103 -0
  2271. package/src/internal/schedule/decision.ts +47 -0
  2272. package/src/internal/schedule/interval.ts +101 -0
  2273. package/src/internal/schedule/intervals.ts +179 -0
  2274. package/src/internal/schedule.ts +2096 -0
  2275. package/src/internal/scopedCache.ts +634 -0
  2276. package/src/internal/scopedRef.ts +133 -0
  2277. package/src/internal/singleShotGen.ts +35 -0
  2278. package/src/internal/sink.ts +2118 -0
  2279. package/src/internal/stm/core.ts +804 -0
  2280. package/src/internal/stm/opCodes/stm.ts +71 -0
  2281. package/src/internal/stm/opCodes/stmState.ts +17 -0
  2282. package/src/internal/stm/opCodes/strategy.ts +17 -0
  2283. package/src/internal/stm/opCodes/tExit.ts +29 -0
  2284. package/src/internal/stm/opCodes/tryCommit.ts +11 -0
  2285. package/src/internal/stm/stm/entry.ts +59 -0
  2286. package/src/internal/stm/stm/journal.ts +123 -0
  2287. package/src/internal/stm/stm/opCodes/stm.ts +71 -0
  2288. package/src/internal/stm/stm/opCodes/stmState.ts +17 -0
  2289. package/src/internal/stm/stm/opCodes/strategy.ts +17 -0
  2290. package/src/internal/stm/stm/opCodes/tExit.ts +29 -0
  2291. package/src/internal/stm/stm/opCodes/tryCommit.ts +11 -0
  2292. package/src/internal/stm/stm/stmState.ts +130 -0
  2293. package/src/internal/stm/stm/tExit.ts +180 -0
  2294. package/src/internal/stm/stm/tryCommit.ts +34 -0
  2295. package/src/internal/stm/stm/txnId.ts +14 -0
  2296. package/src/internal/stm/stm/versioned.ts +4 -0
  2297. package/src/internal/stm/stm.ts +1491 -0
  2298. package/src/internal/stm/tArray.ts +550 -0
  2299. package/src/internal/stm/tDeferred.ts +79 -0
  2300. package/src/internal/stm/tMap.ts +824 -0
  2301. package/src/internal/stm/tPriorityQueue.ts +259 -0
  2302. package/src/internal/stm/tPubSub.ts +542 -0
  2303. package/src/internal/stm/tQueue.ts +400 -0
  2304. package/src/internal/stm/tRandom.ts +140 -0
  2305. package/src/internal/stm/tReentrantLock.ts +352 -0
  2306. package/src/internal/stm/tRef.ts +190 -0
  2307. package/src/internal/stm/tSemaphore.ts +113 -0
  2308. package/src/internal/stm/tSet.ts +237 -0
  2309. package/src/internal/stream/debounceState.ts +57 -0
  2310. package/src/internal/stream/emit.ts +46 -0
  2311. package/src/internal/stream/haltStrategy.ts +85 -0
  2312. package/src/internal/stream/handoff.ts +185 -0
  2313. package/src/internal/stream/handoffSignal.ts +59 -0
  2314. package/src/internal/stream/pull.ts +35 -0
  2315. package/src/internal/stream/sinkEndReason.ts +30 -0
  2316. package/src/internal/stream/zipAllState.ts +88 -0
  2317. package/src/internal/stream/zipChunksState.ts +56 -0
  2318. package/src/internal/stream.ts +8092 -0
  2319. package/src/internal/string-utils.ts +107 -0
  2320. package/src/internal/subscriptionRef.ts +133 -0
  2321. package/src/internal/supervisor/patch.ts +190 -0
  2322. package/src/internal/supervisor.ts +301 -0
  2323. package/src/internal/synchronizedRef.ts +115 -0
  2324. package/src/internal/take.ts +198 -0
  2325. package/src/internal/testing/sleep.ts +27 -0
  2326. package/src/internal/testing/suspendedWarningData.ts +85 -0
  2327. package/src/internal/testing/warningData.ts +94 -0
  2328. package/src/internal/timeout.ts +23 -0
  2329. package/src/internal/tracer.ts +101 -0
  2330. package/src/tsconfig.json +49 -0
  2331. package/Debug.d.ts +0 -31
  2332. package/Debug.d.ts.map +0 -1
  2333. package/Debug.js +0 -31
  2334. package/Debug.js.map +0 -1
  2335. package/Differ.d.ts +0 -61
  2336. package/Differ.d.ts.map +0 -1
  2337. package/Differ.js +0 -38
  2338. package/Differ.js.map +0 -1
  2339. package/Fiber.d.ts +0 -51
  2340. package/Fiber.d.ts.map +0 -1
  2341. package/Fiber.js +0 -35
  2342. package/Fiber.js.map +0 -1
  2343. package/FiberRefs.d.ts +0 -21
  2344. package/FiberRefs.d.ts.map +0 -1
  2345. package/FiberRefs.js +0 -26
  2346. package/FiberRefs.js.map +0 -1
  2347. package/Metric.d.ts +0 -101
  2348. package/Metric.d.ts.map +0 -1
  2349. package/Metric.js +0 -50
  2350. package/Metric.js.map +0 -1
  2351. package/Optic.d.ts +0 -62
  2352. package/Optic.d.ts.map +0 -1
  2353. package/Optic.js +0 -70
  2354. package/Optic.js.map +0 -1
  2355. package/Ref.d.ts +0 -31
  2356. package/Ref.d.ts.map +0 -1
  2357. package/Ref.js +0 -29
  2358. package/Ref.js.map +0 -1
  2359. package/Schedule.d.ts +0 -41
  2360. package/Schedule.d.ts.map +0 -1
  2361. package/Schedule.js +0 -32
  2362. package/Schedule.js.map +0 -1
  2363. package/_mjs/Debug.mjs +0 -27
  2364. package/_mjs/Debug.mjs.map +0 -1
  2365. package/_mjs/Differ.mjs +0 -61
  2366. package/_mjs/Differ.mjs.map +0 -1
  2367. package/_mjs/Fiber.mjs +0 -51
  2368. package/_mjs/Fiber.mjs.map +0 -1
  2369. package/_mjs/FiberRefs.mjs +0 -21
  2370. package/_mjs/FiberRefs.mjs.map +0 -1
  2371. package/_mjs/Metric.mjs +0 -101
  2372. package/_mjs/Metric.mjs.map +0 -1
  2373. package/_mjs/Optic.mjs +0 -62
  2374. package/_mjs/Optic.mjs.map +0 -1
  2375. package/_mjs/Ref.mjs +0 -31
  2376. package/_mjs/Ref.mjs.map +0 -1
  2377. package/_mjs/Schedule.mjs +0 -41
  2378. package/_mjs/Schedule.mjs.map +0 -1
  2379. package/_mjs/index.mjs +0 -939
  2380. package/_mjs/index.mjs.map +0 -1
  2381. package/index.d.ts +0 -939
  2382. package/index.d.ts.map +0 -1
  2383. package/index.js +0 -217
  2384. package/index.js.map +0 -1
@@ -0,0 +1,2990 @@
1
+ import { flipCauseOption, failureOrCause, map as map$3, isInterrupted, die as die$2, IllegalArgumentException, RuntimeException, isDieType, isRuntimeException, squash } from '../Cause/dist/effect-Cause.esm.js';
2
+ import { Done, Await } from '../ChannelMergeDecision/dist/effect-ChannelMergeDecision.esm.js';
3
+ import { empty as empty$1, isNonEmpty, of, map as map$2, range as range$1, unsafeFromArray, reduceRight, prepend as prepend$1, isEmpty, dropWhile as dropWhile$1, filter as filter$1, filterMap as filterMap$1, filterMapWhile as filterMapWhile$1, findFirst, fromIterable as fromIterable$1, flatMap as flatMap$3, takeWhile as takeWhile$1, take as take$3, drop as drop$1, appendAll, unsafeLast, zipWith as zipWith$2, reduce, append, last as last$1, splitWhere, head as head$1, isChunk, mapAccum as mapAccum$1, unsafeGet as unsafeGet$1, make as make$7, flatten as flatten$2, splitAt, appendAllNonEmpty, takeRight as takeRight$1 } from '../Chunk/dist/effect-Chunk.esm.js';
4
+ import { sleep, currentTimeMillis } from '../Clock/dist/effect-Clock.esm.js';
5
+ import { add, unsafeGet } from '../Context/dist/effect-Context.esm.js';
6
+ import { make as make$4, succeed as succeed$2, await as _await, failCause as failCause$3, poll, fail as fail$4 } from '../Deferred/dist/effect-Deferred.esm.js';
7
+ import { toMillis, millis, greaterThan, zero } from '../Duration/dist/effect-Duration.esm.js';
8
+ import { acquireRelease as acquireRelease$1, all, when as when$1, flatMap as flatMap$2, zipRight as zipRight$1, succeed as succeed$1, map as map$1, forkScoped, scope, runtime, match as match$1, sync as sync$1, as as as$1, unit as unit$2, onError as onError$1, tap as tap$1, gen, suspend as suspend$1, transplant, die as die$1, dieSync as dieSync$1, dieMessage as dieMessage$1, makeSemaphore, matchCauseEffect, flatten as flatten$1, forEach, catchAllCause as catchAllCause$2, dropUntil as dropUntil$1, dropWhile as dropWhile$2, fail as fail$3, failSync as failSync$1, failCause as failCause$4, failCauseSync as failCauseSync$1, findFirst as findFirst$1, tryPromise, promise, isEffect, mapError as mapError$1, zip as zip$1, never as never$1, orDie as orDie$1, matchEffect, scoped as scoped$1, asUnit, forkDaemon, ensuring as ensuring$2, timeoutFail as timeoutFail$1, timeoutFailCause as timeoutFailCause$1, runSync, catchTags as catchTags$1, tapErrorCause as tapErrorCause$1, runPromise, raceWith, zipWith as zipWith$1, forkIn, reduce as reduce$1, catchSomeCause as catchSomeCause$1, context as context$2, orElse as orElse$2, zipLeft as zipLeft$1, catchAll as catchAll$2, asSome, succeedNone, fork } from '../Effect/dist/effect-Effect.esm.js';
9
+ import { match, left, right } from '../Either/dist/effect-Either.esm.js';
10
+ import { equals } from '../Equal/dist/effect-Equal.esm.js';
11
+ import { match as match$3, failCause as failCause$2, fail as fail$2, isSuccess, succeed as succeed$4, unit as unit$3, isFailure } from '../Exit/dist/effect-Exit.esm.js';
12
+ import { join, interrupt, poll as poll$1 } from '../Fiber/dist/effect-Fiber.esm.js';
13
+ import { dual, pipe, identity, constTrue } from '../Function/dist/effect-Function.esm.js';
14
+ import { build, context as context$1, merge as merge$1 } from '../Layer/dist/effect-Layer.esm.js';
15
+ import { none, some as some$1, match as match$2, getOrElse, map as map$4, isSome, isNone } from '../Option/dist/effect-Option.esm.js';
16
+ import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
17
+ import { bounded as bounded$1, subscribe, shutdown as shutdown$1 } from '../PubSub/dist/effect-PubSub.esm.js';
18
+ import { take as take$2, shutdown, bounded, dropping, sliding as sliding$1, isShutdown, takeBetween, offerAll, offer as offer$1, unbounded } from '../Queue/dist/effect-Queue.esm.js';
19
+ import { make as make$2, getAndSet, set, get, update, modify } from '../Ref/dist/effect-Ref.esm.js';
20
+ import { runPromiseExit } from '../Runtime/dist/effect-Runtime.esm.js';
21
+ import { forever as forever$1, driver, spaced } from '../Schedule/dist/effect-Schedule.esm.js';
22
+ import { make as make$6, close, use } from '../Scope/dist/effect-Scope.esm.js';
23
+ import { Both } from '../StreamHaltStrategy/dist/effect-StreamHaltStrategy.esm.js';
24
+ import { unwrap as unwrap$1, zipRight as zipRight$2, pipeToOrFail, unwrapScoped as unwrapScoped$1, concatMap, writeChunk, drain as drain$1, identityChannel, ensuring as ensuring$1, mapOut, mapOutEffectPar, repeated, interruptWhen as interruptWhen$1, interruptWhenDeferred as interruptWhenDeferred$1, mapOutEffect, mapError as mapError$2, mapErrorCause as mapErrorCause$1, mergeWith as mergeWith$1, orDieWith as orDieWith$1, orElse as orElse$1, catchAll as catchAll$1, runDrain as runDrain$1, scoped as scoped$2, toPull as toPull$1, withSpan as withSpan$1, fromInput as fromInput$1, mergeMap, writeAll } from './channel.esm.js';
25
+ import { run as run$1, runScoped as runScoped$1 } from './channel/channelExecutor.esm.js';
26
+ import { BufferSliding } from './channel/mergeStrategy.esm.js';
27
+ import { make as make$5 } from './channel/singleProducerAsyncInput.esm.js';
28
+ import { readWithCause, flatMap as flatMap$1, fromEffect as fromEffect$1, write, failCause as failCause$1, unit as unit$1, pipeTo, collectElements, fail as fail$1, catchAllCause as catchAllCause$1, readWith, suspend as suspend$2, succeedNow, ensuringWith as ensuringWith$1, succeed as succeed$3, provideContext as provideContext$1, foldCauseChannel, sync as sync$2, embedInput } from './core-stream.esm.js';
29
+ import { RingBuffer } from './ringBuffer.esm.js';
30
+ import { toChannel as toChannel$1, collectAllN, mkString as mkString$1, foldSink, collectLeftover, zipRight as zipRight$3, fromEffect as fromEffect$2, fail as fail$5, fromChannel as fromChannel$1, collectAll, count, drain as drain$2, fold, foldEffect, forEach as forEach$1, forEachChunk, forEachWhile, head, last, sum } from './sink.esm.js';
31
+ import { OP_CURRENT, OP_PREVIOUS, current, OP_NOT_STARTED, notStarted, previous } from './stream/debounceState.esm.js';
32
+ import { make as make$3 } from './stream/emit.esm.js';
33
+ import { fromInput } from './stream/haltStrategy.esm.js';
34
+ import { make as make$1, offer, take as take$1 } from './stream/handoff.esm.js';
35
+ import { emit, halt, end, OP_END, OP_HALT, OP_EMIT } from './stream/handoffSignal.esm.js';
36
+ import { end as end$1, failCause as failCause$5 } from './stream/pull.esm.js';
37
+ import { ScheduleEnd, OP_SCHEDULE_END, UpstreamEnd, OP_UPSTREAM_END } from './stream/sinkEndReason.esm.js';
38
+ import { PullBoth, OP_PULL_RIGHT, DrainLeft, PullRight, OP_PULL_LEFT, DrainRight, PullLeft, OP_PULL_BOTH, OP_DRAIN_RIGHT, OP_DRAIN_LEFT } from './stream/zipAllState.esm.js';
39
+ import { PullBoth as PullBoth$1, OP_PULL_RIGHT as OP_PULL_RIGHT$1, PullRight as PullRight$1, PullLeft as PullLeft$1, OP_PULL_LEFT as OP_PULL_LEFT$1, OP_PULL_BOTH as OP_PULL_BOTH$1 } from './stream/zipChunksState.esm.js';
40
+ import { done, match as match$4, chunk, failCause as failCause$6, end as end$2, fromPull as fromPull$1, of as of$1 } from './take.esm.js';
41
+
42
+ /** @internal */
43
+ const StreamSymbolKey = "effect/Stream";
44
+
45
+ /** @internal */
46
+ const StreamTypeId = /*#__PURE__*/Symbol.for(StreamSymbolKey);
47
+
48
+ /** @internal */
49
+ const streamVariance = {
50
+ _R: _ => _,
51
+ _E: _ => _,
52
+ _A: _ => _
53
+ };
54
+
55
+ /** @internal */
56
+ class StreamImpl {
57
+ [StreamTypeId] = streamVariance;
58
+ constructor(channel) {
59
+ this.channel = channel;
60
+ }
61
+ pipe() {
62
+ return pipeArguments(this, arguments);
63
+ }
64
+ }
65
+
66
+ /** @internal */
67
+ const isStream = u => typeof u === "object" && u != null && StreamTypeId in u || isEffect(u);
68
+
69
+ /** @internal */
70
+ const DefaultChunkSize = 4096;
71
+
72
+ /** @internal */
73
+ const acquireRelease = (acquire, release) => scoped(acquireRelease$1(acquire, release));
74
+
75
+ /** @internal */
76
+ const aggregate = /*#__PURE__*/dual(2, (self, sink) => aggregateWithin(self, sink, forever$1));
77
+
78
+ /** @internal */
79
+ const aggregateWithin = /*#__PURE__*/dual(3, (self, sink, schedule) => filterMap(aggregateWithinEither(self, sink, schedule), _ => match(_, {
80
+ onLeft: none,
81
+ onRight: some$1
82
+ })));
83
+
84
+ /** @internal */
85
+ const aggregateWithinEither = /*#__PURE__*/dual(3, (self, sink, schedule) => {
86
+ const layer = all([make$1(), make$2(ScheduleEnd), make$2(empty$1()), driver(schedule), make$2(false), make$2(false)]);
87
+ return pipe(fromEffect(layer), flatMap(([handoff, sinkEndReason, sinkLeftovers, scheduleDriver, consumed, endAfterEmit]) => {
88
+ const handoffProducer = readWithCause({
89
+ onInput: input => flatMap$1(fromEffect$1(pipe(handoff, offer(emit(input)), when$1(() => isNonEmpty(input)))), () => handoffProducer),
90
+ onFailure: cause => fromEffect$1(offer(handoff, halt(cause))),
91
+ onDone: () => fromEffect$1(offer(handoff, end(UpstreamEnd)))
92
+ });
93
+ const handoffConsumer = pipe(getAndSet(sinkLeftovers, empty$1()), flatMap$2(leftovers => {
94
+ if (isNonEmpty(leftovers)) {
95
+ return pipe(set(consumed, true), zipRight$1(succeed$1(pipe(write(leftovers), flatMap$1(() => handoffConsumer)))));
96
+ }
97
+ return pipe(take$1(handoff), map$1(signal => {
98
+ switch (signal._tag) {
99
+ case OP_EMIT:
100
+ {
101
+ return pipe(fromEffect$1(set(consumed, true)), zipRight$2(write(signal.elements)), zipRight$2(fromEffect$1(get(endAfterEmit))), flatMap$1(bool => bool ? unit$1 : handoffConsumer));
102
+ }
103
+ case OP_HALT:
104
+ {
105
+ return failCause$1(signal.cause);
106
+ }
107
+ case OP_END:
108
+ {
109
+ if (signal.reason._tag === OP_SCHEDULE_END) {
110
+ return pipe(get(consumed), map$1(bool => bool ? fromEffect$1(pipe(set(sinkEndReason, ScheduleEnd), zipRight$1(set(endAfterEmit, true)))) : pipe(fromEffect$1(pipe(set(sinkEndReason, ScheduleEnd), zipRight$1(set(endAfterEmit, true)))), flatMap$1(() => handoffConsumer))), unwrap$1);
111
+ }
112
+ return pipe(set(sinkEndReason, signal.reason), zipRight$1(set(endAfterEmit, true)), fromEffect$1);
113
+ }
114
+ }
115
+ }));
116
+ }), unwrap$1);
117
+ const timeout = lastB => scheduleDriver.next(lastB);
118
+ const scheduledAggregator = (sinkFiber, scheduleFiber, scope) => {
119
+ const forkSink = pipe(set(consumed, false), zipRight$1(set(endAfterEmit, false)), zipRight$1(pipe(handoffConsumer, pipeToOrFail(toChannel$1(sink)), collectElements, run$1, forkIn(scope))));
120
+ const handleSide = (leftovers, b, c) => pipe(set(sinkLeftovers, flatten$2(leftovers)), zipRight$1(map$1(get(sinkEndReason), reason => {
121
+ switch (reason._tag) {
122
+ case OP_SCHEDULE_END:
123
+ {
124
+ return pipe(all([get(consumed), forkSink, pipe(timeout(some$1(b)), forkIn(scope))]), map$1(([wasConsumed, sinkFiber, scheduleFiber]) => {
125
+ const toWrite = pipe(c, match$2({
126
+ onNone: () => of(right(b)),
127
+ onSome: c => make$7(right(b), left(c))
128
+ }));
129
+ if (wasConsumed) {
130
+ return pipe(write(toWrite), flatMap$1(() => scheduledAggregator(sinkFiber, scheduleFiber, scope)));
131
+ }
132
+ return scheduledAggregator(sinkFiber, scheduleFiber, scope);
133
+ }), unwrap$1);
134
+ }
135
+ case OP_UPSTREAM_END:
136
+ {
137
+ return pipe(get(consumed), map$1(wasConsumed => wasConsumed ? write(of(right(b))) : unit$1), unwrap$1);
138
+ }
139
+ }
140
+ })), unwrap$1);
141
+ return unwrap$1(raceWith(join(sinkFiber), join(scheduleFiber), {
142
+ onSelfDone: (sinkExit, _) => pipe(interrupt(scheduleFiber), zipRight$1(pipe(suspend$1(() => sinkExit), map$1(([leftovers, b]) => handleSide(leftovers, b, none()))))),
143
+ onOtherDone: (scheduleExit, _) => matchCauseEffect(suspend$1(() => scheduleExit), {
144
+ onFailure: cause => match(failureOrCause(cause), {
145
+ onLeft: () => pipe(handoff, offer(end(ScheduleEnd)), forkDaemon, zipRight$1(pipe(join(sinkFiber), map$1(([leftovers, b]) => handleSide(leftovers, b, none()))))),
146
+ onRight: cause => pipe(handoff, offer(halt(cause)), forkDaemon, zipRight$1(pipe(join(sinkFiber), map$1(([leftovers, b]) => handleSide(leftovers, b, none())))))
147
+ }),
148
+ onSuccess: c => pipe(handoff, offer(end(ScheduleEnd)), forkDaemon, zipRight$1(pipe(join(sinkFiber), map$1(([leftovers, b]) => handleSide(leftovers, b, some$1(c))))))
149
+ })
150
+ }));
151
+ };
152
+ return unwrapScoped(pipe(self, toChannel, pipeTo(handoffProducer), run$1, forkScoped, zipRight$1(pipe(handoffConsumer, pipeToOrFail(toChannel$1(sink)), collectElements, run$1, forkScoped, flatMap$2(sinkFiber => pipe(forkScoped(timeout(none())), flatMap$2(scheduleFiber => pipe(scope, map$1(scope => new StreamImpl(scheduledAggregator(sinkFiber, scheduleFiber, scope)))))))))));
153
+ }));
154
+ });
155
+
156
+ /** @internal */
157
+ const as = /*#__PURE__*/dual(2, (self, value) => map(self, () => value));
158
+
159
+ /** @internal */
160
+ const _async = (register, outputBuffer = 16) => asyncOption(cb => {
161
+ register(cb);
162
+ return none();
163
+ }, outputBuffer);
164
+
165
+ /** @internal */
166
+ const asyncEffect = (register, outputBuffer = 16) => pipe(acquireRelease$1(bounded(outputBuffer), queue => shutdown(queue)), flatMap$2(output => pipe(runtime(), flatMap$2(runtime => pipe(register(make$3(k => pipe(fromPull$1(k), flatMap$2(take => offer$1(output, take)), asUnit, runPromiseExit(runtime)).then(exit => {
167
+ if (isFailure(exit)) {
168
+ if (!isInterrupted(exit.cause)) {
169
+ throw squash(exit.cause);
170
+ }
171
+ }
172
+ }))), map$1(() => {
173
+ const loop = pipe(take$2(output), flatMap$2(done), match$1({
174
+ onFailure: maybeError => pipe(fromEffect$1(shutdown(output)), zipRight$2(match$2(maybeError, {
175
+ onNone: () => unit$1,
176
+ onSome: fail$1
177
+ }))),
178
+ onSuccess: chunk => pipe(write(chunk), flatMap$1(() => loop))
179
+ }), unwrap$1);
180
+ return loop;
181
+ }))))), unwrapScoped$1, fromChannel);
182
+
183
+ /** @internal */
184
+ const asyncInterrupt = (register, outputBuffer = 16) => pipe(acquireRelease$1(bounded(outputBuffer), queue => shutdown(queue)), flatMap$2(output => pipe(runtime(), flatMap$2(runtime => pipe(sync$1(() => register(make$3(k => pipe(fromPull$1(k), flatMap$2(take => offer$1(output, take)), asUnit, runPromiseExit(runtime)).then(exit => {
185
+ if (isFailure(exit)) {
186
+ if (!isInterrupted(exit.cause)) {
187
+ throw squash(exit.cause);
188
+ }
189
+ }
190
+ })))), map$1(match({
191
+ onLeft: canceler => {
192
+ const loop = pipe(take$2(output), flatMap$2(done), match$1({
193
+ onFailure: maybeError => zipRight$2(fromEffect$1(shutdown(output)), match$2(maybeError, {
194
+ onNone: () => unit$1,
195
+ onSome: fail$1
196
+ })),
197
+ onSuccess: chunk => pipe(write(chunk), flatMap$1(() => loop))
198
+ }), unwrap$1);
199
+ return pipe(fromChannel(loop), ensuring(canceler));
200
+ },
201
+ onRight: stream => unwrap(pipe(shutdown(output), as$1(stream)))
202
+ })))))), unwrapScoped);
203
+
204
+ /** @internal */
205
+ const asyncOption = (register, outputBuffer = 16) => asyncInterrupt(emit => match$2(register(emit), {
206
+ onNone: () => left(unit$2),
207
+ onSome: right
208
+ }), outputBuffer);
209
+
210
+ /** @internal */
211
+ const asyncScoped = (register, outputBuffer = 16) => pipe(acquireRelease$1(bounded(outputBuffer), queue => shutdown(queue)), flatMap$2(output => pipe(runtime(), flatMap$2(runtime => pipe(register(make$3(k => pipe(fromPull$1(k), flatMap$2(take => offer$1(output, take)), asUnit, runPromiseExit(runtime)).then(exit => {
212
+ if (isFailure(exit)) {
213
+ if (!isInterrupted(exit.cause)) {
214
+ throw squash(exit.cause);
215
+ }
216
+ }
217
+ }))), zipRight$1(make$2(false)), flatMap$2(ref => pipe(get(ref), map$1(isDone => isDone ? end$1() : pipe(take$2(output), flatMap$2(done), onError$1(() => pipe(set(ref, true), zipRight$1(shutdown(output)))))))))))), scoped, flatMap(repeatEffectChunkOption));
218
+
219
+ /** @internal */
220
+ const branchAfter = /*#__PURE__*/dual(3, (self, n, f) => suspend(() => {
221
+ const buffering = acc => readWith({
222
+ onInput: input => {
223
+ const nextSize = acc.length + input.length;
224
+ if (nextSize >= n) {
225
+ const [b1, b2] = pipe(input, splitAt(n - acc.length));
226
+ return running(pipe(acc, appendAll(b1)), b2);
227
+ }
228
+ return buffering(pipe(acc, appendAll(input)));
229
+ },
230
+ onFailure: fail$1,
231
+ onDone: () => running(acc, empty$1())
232
+ });
233
+ const running = (prefix, leftover) => pipeTo(zipRight$2(write(leftover), identityChannel()), toChannel(f(prefix)));
234
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(buffering(empty$1()))));
235
+ }));
236
+
237
+ /** @internal */
238
+ const broadcast = /*#__PURE__*/dual(3, (self, n, maximumLag) => pipe(self, broadcastedQueues(n, maximumLag), map$1(tuple => tuple.map(queue => flattenTake(fromQueue(queue, {
239
+ shutdown: true
240
+ }))))));
241
+
242
+ /** @internal */
243
+ const broadcastDynamic = /*#__PURE__*/dual(2, (self, maximumLag) => pipe(self, broadcastedQueuesDynamic(maximumLag), map$1(effect => flattenTake(flatMap(scoped(effect), fromQueue)))));
244
+
245
+ /** @internal */
246
+ const broadcastedQueues = /*#__PURE__*/dual(3, (self, n, maximumLag) => flatMap$2(bounded$1(maximumLag), pubsub => pipe(all(Array.from({
247
+ length: n
248
+ }, () => subscribe(pubsub))), tap$1(() => forkScoped(runIntoPubSubScoped(self, pubsub))))));
249
+
250
+ /** @internal */
251
+ const broadcastedQueuesDynamic = /*#__PURE__*/dual(2, (self, maximumLag) => map$1(toPubSub(self, maximumLag), subscribe));
252
+
253
+ /** @internal */
254
+ const buffer = /*#__PURE__*/dual(2, (self, options) => {
255
+ if (options.capacity === "unbounded") {
256
+ return bufferUnbounded(self);
257
+ } else if (options.strategy === "dropping") {
258
+ return bufferDropping(self, options.capacity);
259
+ } else if (options.strategy === "sliding") {
260
+ return bufferSliding(self, options.capacity);
261
+ }
262
+ const queue = toQueueOfElements(self, options);
263
+ return new StreamImpl(unwrapScoped$1(map$1(queue, queue => {
264
+ const process = pipe(fromEffect$1(take$2(queue)), flatMap$1(match$3({
265
+ onFailure: cause => pipe(flipCauseOption(cause), match$2({
266
+ onNone: () => unit$1,
267
+ onSome: failCause$1
268
+ })),
269
+ onSuccess: value => flatMap$1(write(of(value)), () => process)
270
+ })));
271
+ return process;
272
+ })));
273
+ });
274
+
275
+ /** @internal */
276
+ const bufferChunks = /*#__PURE__*/dual(2, (self, options) => {
277
+ if (options.strategy === "dropping") {
278
+ return bufferChunksDropping(self, options.capacity);
279
+ } else if (options.strategy === "sliding") {
280
+ return bufferChunksSliding(self, options.capacity);
281
+ }
282
+ const queue = toQueue(self, options);
283
+ return new StreamImpl(unwrapScoped$1(map$1(queue, queue => {
284
+ const process = pipe(fromEffect$1(take$2(queue)), flatMap$1(match$4({
285
+ onEnd: () => unit$1,
286
+ onFailure: failCause$1,
287
+ onSuccess: value => pipe(write(value), flatMap$1(() => process))
288
+ })));
289
+ return process;
290
+ })));
291
+ });
292
+ const bufferChunksDropping = /*#__PURE__*/dual(2, (self, capacity) => {
293
+ const queue = acquireRelease$1(dropping(capacity), queue => shutdown(queue));
294
+ return new StreamImpl(bufferSignal(queue, toChannel(self)));
295
+ });
296
+ const bufferChunksSliding = /*#__PURE__*/dual(2, (self, capacity) => {
297
+ const queue = acquireRelease$1(sliding$1(capacity), queue => shutdown(queue));
298
+ return new StreamImpl(bufferSignal(queue, toChannel(self)));
299
+ });
300
+ const bufferDropping = /*#__PURE__*/dual(2, (self, capacity) => {
301
+ const queue = acquireRelease$1(dropping(capacity), queue => shutdown(queue));
302
+ return new StreamImpl(bufferSignal(queue, toChannel(rechunk(1)(self))));
303
+ });
304
+ const bufferSliding = /*#__PURE__*/dual(2, (self, capacity) => {
305
+ const queue = acquireRelease$1(sliding$1(capacity), queue => shutdown(queue));
306
+ return new StreamImpl(bufferSignal(queue, toChannel(pipe(self, rechunk(1)))));
307
+ });
308
+ const bufferUnbounded = self => {
309
+ const queue = toQueue(self, {
310
+ strategy: "unbounded"
311
+ });
312
+ return new StreamImpl(unwrapScoped$1(map$1(queue, queue => {
313
+ const process = pipe(fromEffect$1(take$2(queue)), flatMap$1(match$4({
314
+ onEnd: () => unit$1,
315
+ onFailure: failCause$1,
316
+ onSuccess: value => flatMap$1(write(value), () => process)
317
+ })));
318
+ return process;
319
+ })));
320
+ };
321
+
322
+ /** @internal */
323
+ const bufferSignal = (scoped, bufferChannel) => {
324
+ const producer = (queue, ref) => {
325
+ const terminate = take => pipe(get(ref), tap$1(_await), zipRight$1(make$4()), flatMap$2(deferred => pipe(offer$1(queue, [take, deferred]), zipRight$1(set(ref, deferred)), zipRight$1(_await(deferred)))), asUnit, fromEffect$1);
326
+ return readWithCause({
327
+ onInput: input => pipe(make$4(), flatMap$2(deferred => pipe(offer$1(queue, [chunk(input), deferred]), flatMap$2(added => pipe(set(ref, deferred), when$1(() => added))))), asUnit, fromEffect$1, flatMap$1(() => producer(queue, ref))),
328
+ onFailure: error => terminate(failCause$6(error)),
329
+ onDone: () => terminate(end$2)
330
+ });
331
+ };
332
+ const consumer = queue => {
333
+ const process = pipe(fromEffect$1(take$2(queue)), flatMap$1(([take, deferred]) => zipRight$2(fromEffect$1(succeed$2(deferred, void 0)), match$4(take, {
334
+ onEnd: () => unit$1,
335
+ onFailure: failCause$1,
336
+ onSuccess: value => pipe(write(value), flatMap$1(() => process))
337
+ }))));
338
+ return process;
339
+ };
340
+ return unwrapScoped$1(pipe(scoped, flatMap$2(queue => pipe(make$4(), tap$1(start => succeed$2(start, void 0)), flatMap$2(start => pipe(make$2(start), flatMap$2(ref => pipe(bufferChannel, pipeTo(producer(queue, ref)), runScoped$1, forkScoped)), as$1(consumer(queue))))))));
341
+ };
342
+
343
+ /** @internal */
344
+ const catchAll = /*#__PURE__*/dual(2, (self, f) => catchAllCause(self, cause => match(failureOrCause(cause), {
345
+ onLeft: f,
346
+ onRight: failCause
347
+ })));
348
+
349
+ /** @internal */
350
+ const catchAllCause = /*#__PURE__*/dual(2, (self, f) => new StreamImpl(pipe(toChannel(self), catchAllCause$1(cause => toChannel(f(cause))))));
351
+
352
+ /** @internal */
353
+ const catchSome = /*#__PURE__*/dual(2, (self, pf) => pipe(self, catchAll(error => pipe(pf(error), getOrElse(() => fail(error))))));
354
+
355
+ /** @internal */
356
+ const catchSomeCause = /*#__PURE__*/dual(2, (self, pf) => pipe(self, catchAllCause(cause => pipe(pf(cause), getOrElse(() => failCause(cause))))));
357
+
358
+ /* @internal */
359
+ const catchTag = /*#__PURE__*/dual(3, (self, k, f) => catchAll(self, e => {
360
+ if ("_tag" in e && e["_tag"] === k) {
361
+ return f(e);
362
+ }
363
+ return fail(e);
364
+ }));
365
+
366
+ /** @internal */
367
+ const catchTags = /*#__PURE__*/dual(2, (self, cases) => catchAll(self, e => {
368
+ const keys = Object.keys(cases);
369
+ if ("_tag" in e && keys.includes(e["_tag"])) {
370
+ return cases[e["_tag"]](e);
371
+ }
372
+ return fail(e);
373
+ }));
374
+
375
+ /** @internal */
376
+ const changes = self => pipe(self, changesWith((x, y) => equals(y)(x)));
377
+
378
+ /** @internal */
379
+ const changesWith = /*#__PURE__*/dual(2, (self, f) => {
380
+ const writer = last => readWithCause({
381
+ onInput: input => {
382
+ const [newLast, newChunk] = reduce(input, [last, empty$1()], ([option, outputs], output) => {
383
+ if (isSome(option) && f(option.value, output)) {
384
+ return [some$1(output), outputs];
385
+ }
386
+ return [some$1(output), pipe(outputs, append(output))];
387
+ });
388
+ return flatMap$1(write(newChunk), () => writer(newLast));
389
+ },
390
+ onFailure: failCause$1,
391
+ onDone: () => unit$1
392
+ });
393
+ return new StreamImpl(pipe(toChannel(self), pipeTo(writer(none()))));
394
+ });
395
+
396
+ /** @internal */
397
+ const changesWithEffect = /*#__PURE__*/dual(2, (self, f) => {
398
+ const writer = last => readWithCause({
399
+ onInput: input => pipe(input, reduce$1([last, empty$1()], ([option, outputs], output) => {
400
+ if (isSome(option)) {
401
+ return pipe(f(option.value, output), map$1(bool => bool ? [some$1(output), outputs] : [some$1(output), pipe(outputs, append(output))]));
402
+ }
403
+ return succeed$1([some$1(output), pipe(outputs, append(output))]);
404
+ }), fromEffect$1, flatMap$1(([newLast, newChunk]) => pipe(write(newChunk), flatMap$1(() => writer(newLast))))),
405
+ onFailure: failCause$1,
406
+ onDone: () => unit$1
407
+ });
408
+ return new StreamImpl(pipe(toChannel(self), pipeTo(writer(none()))));
409
+ });
410
+
411
+ /** @internal */
412
+ const chunks = self => pipe(self, mapChunks(of));
413
+
414
+ /** @internal */
415
+ const chunksWith = /*#__PURE__*/dual(2, (self, f) => flattenChunks(f(chunks(self))));
416
+ const unsome = effect => catchAll$2(asSome(effect), o => o._tag === "None" ? succeedNone : fail$3(o.value));
417
+
418
+ /** @internal */
419
+ const combine = /*#__PURE__*/dual(4, (self, that, s, f) => {
420
+ const producer = (handoff, latch) => pipe(fromEffect$1(take$1(latch)), zipRight$2(readWithCause({
421
+ onInput: input => flatMap$1(fromEffect$1(pipe(handoff, offer(succeed$4(input)))), () => producer(handoff, latch)),
422
+ onFailure: cause => fromEffect$1(offer(handoff, failCause$2(pipe(cause, map$3(some$1))))),
423
+ onDone: () => flatMap$1(fromEffect$1(offer(handoff, fail$2(none()))), () => producer(handoff, latch))
424
+ })));
425
+ return new StreamImpl(unwrapScoped$1(gen(function* ($) {
426
+ const left = yield* $(make$1());
427
+ const right = yield* $(make$1());
428
+ const latchL = yield* $(make$1());
429
+ const latchR = yield* $(make$1());
430
+ yield* $(toChannel(self), concatMap(writeChunk), pipeTo(producer(left, latchL)), runScoped$1, forkScoped);
431
+ yield* $(toChannel(that), concatMap(writeChunk), pipeTo(producer(right, latchR)), runScoped$1, forkScoped);
432
+ const pullLeft = pipe(latchL, offer(void 0),
433
+ // TODO: remove
434
+ zipRight$1(pipe(take$1(left), flatMap$2(exit => suspend$1(() => exit)))));
435
+ const pullRight = pipe(latchR, offer(void 0),
436
+ // TODO: remove
437
+ zipRight$1(pipe(take$1(right), flatMap$2(exit => suspend$1(() => exit)))));
438
+ return toChannel(unfoldEffect(s, s => flatMap$2(f(s, pullLeft, pullRight), unsome)));
439
+ })));
440
+ });
441
+
442
+ /** @internal */
443
+ const combineChunks = /*#__PURE__*/dual(4, (self, that, s, f) => {
444
+ const producer = (handoff, latch) => zipRight$2(fromEffect$1(take$1(latch)), readWithCause({
445
+ onInput: input => flatMap$1(fromEffect$1(pipe(handoff, offer(chunk(input)))), () => producer(handoff, latch)),
446
+ onFailure: cause => fromEffect$1(offer(handoff, failCause$6(cause))),
447
+ onDone: () => fromEffect$1(offer(handoff, end$2))
448
+ }));
449
+ return new StreamImpl(pipe(all([make$1(), make$1(), make$1(), make$1()]), tap$1(([left, _, latchL]) => pipe(toChannel(self), pipeTo(producer(left, latchL)), runScoped$1, forkScoped)), tap$1(([_, right, __, latchR]) => pipe(toChannel(that), pipeTo(producer(right, latchR)), runScoped$1, forkScoped)), map$1(([left, right, latchL, latchR]) => {
450
+ const pullLeft = pipe(latchL, offer(void 0), zipRight$1(pipe(take$1(left), flatMap$2(done))));
451
+ const pullRight = pipe(latchR, offer(void 0), zipRight$1(pipe(take$1(right), flatMap$2(done))));
452
+ return toChannel(unfoldChunkEffect(s, s => flatMap$2(f(s, pullLeft, pullRight), unsome)));
453
+ }), unwrapScoped$1));
454
+ });
455
+
456
+ /** @internal */
457
+ const concat = /*#__PURE__*/dual(2, (self, that) => new StreamImpl(pipe(toChannel(self), zipRight$2(toChannel(that)))));
458
+
459
+ /** @internal */
460
+ const concatAll = streams => suspend(() => pipe(streams, reduce(empty, (x, y) => concat(y)(x))));
461
+
462
+ /** @internal */
463
+ const cross = /*#__PURE__*/dual(2, (self, that) => pipe(self, crossWith(that, (a, a2) => [a, a2])));
464
+
465
+ /** @internal */
466
+ const crossLeft = /*#__PURE__*/dual(2, (self, that) => pipe(self, crossWith(that, (a, _) => a)));
467
+
468
+ /** @internal */
469
+ const crossRight = /*#__PURE__*/dual(2, (self, that) => flatMap(self, () => that));
470
+
471
+ /** @internal */
472
+ const crossWith = /*#__PURE__*/dual(3, (self, that, f) => pipe(self, flatMap(a => pipe(that, map(b => f(a, b))))));
473
+
474
+ /** @internal */
475
+ const debounce = /*#__PURE__*/dual(2, (self, duration) => pipe(make$5(), flatMap$2(input => transplant(grafter => pipe(make$1(), map$1(handoff => {
476
+ const enqueue = last => pipe(sleep(duration), as$1(last), fork, grafter, map$1(fiber => consumer(previous(fiber))));
477
+ const producer = readWithCause({
478
+ onInput: input => match$2(last$1(input), {
479
+ onNone: () => producer,
480
+ onSome: last => flatMap$1(fromEffect$1(offer(handoff, emit(of(last)))), () => producer)
481
+ }),
482
+ onFailure: cause => fromEffect$1(offer(handoff, halt(cause))),
483
+ onDone: () => fromEffect$1(offer(handoff, end(UpstreamEnd)))
484
+ });
485
+ const consumer = state => {
486
+ switch (state._tag) {
487
+ case OP_NOT_STARTED:
488
+ {
489
+ return pipe(take$1(handoff), map$1(signal => {
490
+ switch (signal._tag) {
491
+ case OP_EMIT:
492
+ {
493
+ return unwrap$1(enqueue(signal.elements));
494
+ }
495
+ case OP_HALT:
496
+ {
497
+ return failCause$1(signal.cause);
498
+ }
499
+ case OP_END:
500
+ {
501
+ return unit$1;
502
+ }
503
+ }
504
+ }), unwrap$1);
505
+ }
506
+ case OP_PREVIOUS:
507
+ {
508
+ return unwrap$1(raceWith(join(state.fiber), take$1(handoff), {
509
+ onSelfDone: (leftExit, current$1) => match$3(leftExit, {
510
+ onFailure: cause => pipe(interrupt(current$1), as$1(failCause$1(cause))),
511
+ onSuccess: chunk => succeed$1(pipe(write(chunk), flatMap$1(() => consumer(current(current$1)))))
512
+ }),
513
+ onOtherDone: (rightExit, previous) => match$3(rightExit, {
514
+ onFailure: cause => pipe(interrupt(previous), as$1(failCause$1(cause))),
515
+ onSuccess: signal => {
516
+ switch (signal._tag) {
517
+ case OP_EMIT:
518
+ {
519
+ return pipe(interrupt(previous), zipRight$1(enqueue(signal.elements)));
520
+ }
521
+ case OP_HALT:
522
+ {
523
+ return pipe(interrupt(previous), as$1(failCause$1(signal.cause)));
524
+ }
525
+ case OP_END:
526
+ {
527
+ return pipe(join(previous), map$1(chunk => pipe(write(chunk), zipRight$2(unit$1))));
528
+ }
529
+ }
530
+ }
531
+ })
532
+ }));
533
+ }
534
+ case OP_CURRENT:
535
+ {
536
+ return pipe(join(state.fiber), map$1(signal => {
537
+ switch (signal._tag) {
538
+ case OP_EMIT:
539
+ {
540
+ return unwrap$1(enqueue(signal.elements));
541
+ }
542
+ case OP_HALT:
543
+ {
544
+ return failCause$1(signal.cause);
545
+ }
546
+ case OP_END:
547
+ {
548
+ return unit$1;
549
+ }
550
+ }
551
+ }), unwrap$1);
552
+ }
553
+ }
554
+ };
555
+ const debounceChannel = pipe(fromInput$1(input), pipeTo(producer), run$1, forkScoped, as$1(pipe(consumer(notStarted), embedInput(input))), unwrapScoped$1);
556
+ return new StreamImpl(pipe(toChannel(self), pipeTo(debounceChannel)));
557
+ })))), unwrap));
558
+
559
+ /** @internal */
560
+ const die = defect => fromEffect(die$1(defect));
561
+
562
+ /** @internal */
563
+ const dieSync = evaluate => fromEffect(dieSync$1(evaluate));
564
+
565
+ /** @internal */
566
+ const dieMessage = message => fromEffect(dieMessage$1(message));
567
+
568
+ /** @internal */
569
+ const distributedWith = /*#__PURE__*/dual(2, (self, options) => pipe(make$4(), flatMap$2(deferred => pipe(self, distributedWithDynamic({
570
+ maximumLag: options.maximumLag,
571
+ decide: a => flatMap$2(_await(deferred), f => f(a))
572
+ }), flatMap$2(next => pipe(all(map$2(range$1(0, options.size - 1), id => map$1(next, ([key, queue]) => [[key, id], queue]))), map$1(unsafeFromArray), flatMap$2(entries => {
573
+ const [mappings, queues] = reduceRight(entries, [new Map(), empty$1()], ([mappings, queues], [mapping, queue]) => [mappings.set(mapping[0], mapping[1]), pipe(queues, prepend$1(queue))]);
574
+ return pipe(succeed$2(deferred, a => map$1(options.decide(a), f => key => pipe(f(mappings.get(key))))), as$1(Array.from(queues)));
575
+ })))))));
576
+
577
+ /** @internal */
578
+ const distributedWithDynamicId = {
579
+ ref: 0
580
+ };
581
+ const newDistributedWithDynamicId = () => {
582
+ const current = distributedWithDynamicId.ref;
583
+ distributedWithDynamicId.ref = current + 1;
584
+ return current;
585
+ };
586
+
587
+ /** @internal */
588
+ const distributedWithDynamic = /*#__PURE__*/dual(2, (self, options) => distributedWithDynamicCallback(self, options.maximumLag, options.decide, () => unit$2));
589
+ const distributedWithDynamicCallback = /*#__PURE__*/dual(4, (self, maximumLag, decide, done) => pipe(acquireRelease$1(make$2(new Map()), (ref, _) => pipe(get(ref), flatMap$2(queues => pipe(queues.values(), forEach(shutdown))))), flatMap$2(queuesRef => gen(function* ($) {
590
+ const offer = a => pipe(decide(a), flatMap$2(shouldProcess => pipe(get(queuesRef), flatMap$2(queues => pipe(queues.entries(), reduce$1(empty$1(), (acc, [id, queue]) => {
591
+ if (shouldProcess(id)) {
592
+ return pipe(offer$1(queue, succeed$4(a)), matchCauseEffect({
593
+ onFailure: cause =>
594
+ // Ignore all downstream queues that were shut
595
+ // down and remove them later
596
+ isInterrupted(cause) ? succeed$1(pipe(acc, prepend$1(id))) : failCause$4(cause),
597
+ onSuccess: () => succeed$1(acc)
598
+ }));
599
+ }
600
+ return succeed$1(acc);
601
+ }), flatMap$2(ids => {
602
+ if (isNonEmpty(ids)) {
603
+ return pipe(update(queuesRef, map => {
604
+ for (const id of ids) {
605
+ map.delete(id);
606
+ }
607
+ return map;
608
+ }));
609
+ }
610
+ return unit$2;
611
+ }))))), asUnit);
612
+ const queuesLock = yield* $(makeSemaphore(1));
613
+ const newQueue = yield* $(make$2(pipe(bounded(maximumLag), flatMap$2(queue => {
614
+ const id = newDistributedWithDynamicId();
615
+ return pipe(update(queuesRef, map => map.set(id, queue)), as$1([id, queue]));
616
+ }))));
617
+ const finalize = endTake =>
618
+ // Make sure that no queues are currently being added
619
+ queuesLock.withPermits(1)(pipe(set(newQueue, pipe(
620
+ // All newly created queues should end immediately
621
+ bounded(1), tap$1(queue => offer$1(queue, endTake)), flatMap$2(queue => {
622
+ const id = newDistributedWithDynamicId();
623
+ return pipe(update(queuesRef, map => map.set(id, queue)), as$1([id, queue]));
624
+ }))), zipRight$1(pipe(get(queuesRef), flatMap$2(map => pipe(fromIterable$1(map.values()), forEach(queue => pipe(offer$1(queue, endTake), catchSomeCause$1(cause => isInterrupted(cause) ? some$1(unit$2) : none()))))))), zipRight$1(done(endTake)), asUnit));
625
+ yield* $(self, runForEachScoped(offer), matchCauseEffect({
626
+ onFailure: cause => finalize(failCause$2(pipe(cause, map$3(some$1)))),
627
+ onSuccess: () => finalize(fail$2(none()))
628
+ }), forkScoped);
629
+ return queuesLock.withPermits(1)(flatten$1(get(newQueue)));
630
+ }))));
631
+
632
+ /** @internal */
633
+ const drain = self => new StreamImpl(drain$1(toChannel(self)));
634
+
635
+ /** @internal */
636
+ const drainFork = /*#__PURE__*/dual(2, (self, that) => pipe(fromEffect(make$4()), flatMap(backgroundDied => pipe(scoped(pipe(that, runForEachScoped(() => unit$2), catchAllCause$2(cause => failCause$3(backgroundDied, cause)), forkScoped)), crossRight(pipe(self, interruptWhenDeferred(backgroundDied)))))));
637
+
638
+ /** @internal */
639
+ const drop = /*#__PURE__*/dual(2, (self, n) => {
640
+ const loop = r => readWith({
641
+ onInput: input => {
642
+ const dropped = pipe(input, drop$1(r));
643
+ const leftover = Math.max(0, r - input.length);
644
+ const more = isEmpty(input) || leftover > 0;
645
+ if (more) {
646
+ return loop(leftover);
647
+ }
648
+ return pipe(write(dropped), zipRight$2(identityChannel()));
649
+ },
650
+ onFailure: fail$1,
651
+ onDone: () => unit$1
652
+ });
653
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop(n))));
654
+ });
655
+
656
+ /** @internal */
657
+ const dropRight = /*#__PURE__*/dual(2, (self, n) => {
658
+ if (n <= 0) {
659
+ return identityStream();
660
+ }
661
+ return suspend(() => {
662
+ const queue = new RingBuffer(n);
663
+ const reader = readWith({
664
+ onInput: input => {
665
+ const outputs = pipe(input, filterMap$1(elem => {
666
+ const head = queue.head();
667
+ queue.put(elem);
668
+ return head;
669
+ }));
670
+ return pipe(write(outputs), flatMap$1(() => reader));
671
+ },
672
+ onFailure: fail$1,
673
+ onDone: () => unit$1
674
+ });
675
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(reader)));
676
+ });
677
+ });
678
+
679
+ /** @internal */
680
+ const dropUntil = /*#__PURE__*/dual(2, (self, predicate) => drop(dropWhile(self, a => !predicate(a)), 1));
681
+
682
+ /** @internal */
683
+ const dropUntilEffect = /*#__PURE__*/dual(2, (self, predicate) => {
684
+ const loop = readWith({
685
+ onInput: input => pipe(dropUntil$1(input, predicate), map$1(unsafeFromArray), map$1(leftover => {
686
+ const more = isEmpty(leftover);
687
+ if (more) {
688
+ return suspend$2(() => loop);
689
+ }
690
+ return pipe(write(leftover), zipRight$2(identityChannel()));
691
+ }), unwrap$1),
692
+ onFailure: fail$1,
693
+ onDone: () => unit$1
694
+ });
695
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop)));
696
+ });
697
+
698
+ /** @internal */
699
+ const dropWhile = /*#__PURE__*/dual(2, (self, predicate) => {
700
+ const loop = readWith({
701
+ onInput: input => {
702
+ const output = dropWhile$1(input, predicate);
703
+ if (isEmpty(output)) {
704
+ return suspend$2(() => loop);
705
+ }
706
+ return zipRight$2(write(output), identityChannel());
707
+ },
708
+ onFailure: fail$1,
709
+ onDone: succeedNow
710
+ });
711
+ return new StreamImpl(pipeToOrFail(toChannel(self), loop));
712
+ });
713
+
714
+ /** @internal */
715
+ const dropWhileEffect = /*#__PURE__*/dual(2, (self, predicate) => {
716
+ const loop = readWith({
717
+ onInput: input => pipe(dropWhile$2(input, predicate), map$1(unsafeFromArray), map$1(leftover => {
718
+ const more = isEmpty(leftover);
719
+ if (more) {
720
+ return suspend$2(() => loop);
721
+ }
722
+ return zipRight$2(write(leftover), identityChannel());
723
+ }), unwrap$1),
724
+ onFailure: fail$1,
725
+ onDone: () => unit$1
726
+ });
727
+ return new StreamImpl(pipeToOrFail(toChannel(self), loop));
728
+ });
729
+
730
+ /** @internal */
731
+ const either = self => pipe(self, map(right), catchAll(error => make(left(error))));
732
+
733
+ /** @internal */
734
+ const empty = /*#__PURE__*/new StreamImpl( /*#__PURE__*/write( /*#__PURE__*/empty$1()));
735
+
736
+ /** @internal */
737
+ const ensuring = /*#__PURE__*/dual(2, (self, finalizer) => new StreamImpl(pipe(toChannel(self), ensuring$1(finalizer))));
738
+
739
+ /** @internal */
740
+ const ensuringWith = /*#__PURE__*/dual(2, (self, finalizer) => new StreamImpl(ensuringWith$1(toChannel(self), finalizer)));
741
+
742
+ /** @internal */
743
+ const context = () => fromEffect(context$2());
744
+
745
+ /** @internal */
746
+ const contextWith = f => pipe(context(), map(f));
747
+
748
+ /** @internal */
749
+ const contextWithEffect = f => pipe(context(), mapEffectSequential(f));
750
+
751
+ /** @internal */
752
+ const contextWithStream = f => pipe(context(), flatMap(f));
753
+
754
+ /** @internal */
755
+ const execute = effect => drain(fromEffect(effect));
756
+
757
+ /** @internal */
758
+ const fail = error => fromEffectOption(fail$3(some$1(error)));
759
+
760
+ /** @internal */
761
+ const failSync = evaluate => fromEffectOption(failSync$1(() => some$1(evaluate())));
762
+
763
+ /** @internal */
764
+ const failCause = cause => fromEffect(failCause$4(cause));
765
+
766
+ /** @internal */
767
+ const failCauseSync = evaluate => fromEffect(failCauseSync$1(evaluate));
768
+
769
+ /** @internal */
770
+ const filter = /*#__PURE__*/dual(2, (self, predicate) => mapChunks(self, filter$1(predicate)));
771
+
772
+ /** @internal */
773
+ const filterEffect = /*#__PURE__*/dual(2, (self, f) => {
774
+ const loop = iterator => {
775
+ const next = iterator.next();
776
+ if (next.done) {
777
+ return readWithCause({
778
+ onInput: input => loop(input[Symbol.iterator]()),
779
+ onFailure: failCause$1,
780
+ onDone: succeed$3
781
+ });
782
+ } else {
783
+ return pipe(f(next.value), map$1(bool => bool ? pipe(write(of(next.value)), flatMap$1(() => loop(iterator))) : loop(iterator)), unwrap$1);
784
+ }
785
+ };
786
+ return new StreamImpl(suspend$2(() => pipe(toChannel(self), pipeTo(loop(empty$1()[Symbol.iterator]())))));
787
+ });
788
+
789
+ /** @internal */
790
+ const filterMap = /*#__PURE__*/dual(2, (self, pf) => mapChunks(self, filterMap$1(pf)));
791
+
792
+ /** @internal */
793
+ const filterMapEffect = /*#__PURE__*/dual(2, (self, pf) => suspend(() => {
794
+ const loop = iterator => {
795
+ const next = iterator.next();
796
+ if (next.done) {
797
+ return readWithCause({
798
+ onInput: input => loop(input[Symbol.iterator]()),
799
+ onFailure: failCause$1,
800
+ onDone: succeed$3
801
+ });
802
+ } else {
803
+ return pipe(pf(next.value), match$2({
804
+ onNone: () => sync$1(() => loop(iterator)),
805
+ onSome: map$1(a2 => flatMap$1(write(of(a2)), () => loop(iterator)))
806
+ }), unwrap$1);
807
+ }
808
+ };
809
+ return new StreamImpl(pipe(toChannel(self), pipeTo(loop(empty$1()[Symbol.iterator]()))));
810
+ }));
811
+
812
+ /** @internal */
813
+ const filterMapWhile = /*#__PURE__*/dual(2, (self, pf) => {
814
+ const loop = readWith({
815
+ onInput: input => {
816
+ const mapped = filterMapWhile$1(input, pf);
817
+ if (mapped.length === input.length) {
818
+ return pipe(write(mapped), flatMap$1(() => loop));
819
+ }
820
+ return write(mapped);
821
+ },
822
+ onFailure: fail$1,
823
+ onDone: succeed$3
824
+ });
825
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop)));
826
+ });
827
+
828
+ /** @internal */
829
+ const filterMapWhileEffect = /*#__PURE__*/dual(2, (self, pf) => suspend(() => {
830
+ const loop = iterator => {
831
+ const next = iterator.next();
832
+ if (next.done) {
833
+ return readWithCause({
834
+ onInput: input => loop(input[Symbol.iterator]()),
835
+ onFailure: failCause$1,
836
+ onDone: succeed$3
837
+ });
838
+ } else {
839
+ return unwrap$1(match$2(pf(next.value), {
840
+ onNone: () => succeed$1(unit$1),
841
+ onSome: map$1(a2 => flatMap$1(write(of(a2)), () => loop(iterator)))
842
+ }));
843
+ }
844
+ };
845
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop(empty$1()[Symbol.iterator]()))));
846
+ }));
847
+
848
+ /** @internal */
849
+ const finalizer = finalizer => acquireRelease(unit$2, () => finalizer);
850
+
851
+ /** @internal */
852
+ const find = /*#__PURE__*/dual(2, (self, predicate) => {
853
+ const loop = readWith({
854
+ onInput: input => match$2(findFirst(input, predicate), {
855
+ onNone: () => loop,
856
+ onSome: n => write(of(n))
857
+ }),
858
+ onFailure: fail$1,
859
+ onDone: () => unit$1
860
+ });
861
+ return new StreamImpl(pipe(toChannel(self), pipeTo(loop)));
862
+ });
863
+
864
+ /** @internal */
865
+ const findEffect = /*#__PURE__*/dual(2, (self, predicate) => {
866
+ const loop = readWith({
867
+ onInput: input => pipe(findFirst$1(input, predicate), map$1(match$2({
868
+ onNone: () => loop,
869
+ onSome: n => write(of(n))
870
+ })), unwrap$1),
871
+ onFailure: fail$1,
872
+ onDone: () => unit$1
873
+ });
874
+ return new StreamImpl(pipe(toChannel(self), pipeTo(loop)));
875
+ });
876
+
877
+ /** @internal */
878
+ const flatMap = /*#__PURE__*/dual(args => typeof args[0] !== "function", (self, f, options) => {
879
+ const bufferSize = options?.bufferSize ?? 16;
880
+ if (options?.switch) {
881
+ return matchConcurrency(options?.concurrency, () => flatMapParSwitchBuffer(self, 1, bufferSize, f), n => flatMapParSwitchBuffer(self, n, bufferSize, f));
882
+ }
883
+ return matchConcurrency(options?.concurrency, () => new StreamImpl(concatMap(toChannel(self), as => pipe(as, map$2(a => toChannel(f(a))), reduce(unit$1, (left, right) => pipe(left, zipRight$2(right)))))), _ => new StreamImpl(pipe(toChannel(self), concatMap(writeChunk), mergeMap(out => toChannel(f(out)), options))));
884
+ });
885
+
886
+ /** @internal */
887
+ const matchConcurrency = (concurrency, sequential, bounded) => {
888
+ switch (concurrency) {
889
+ case undefined:
890
+ return sequential();
891
+ case "unbounded":
892
+ return bounded(Number.MAX_SAFE_INTEGER);
893
+ default:
894
+ return concurrency > 1 ? bounded(concurrency) : sequential();
895
+ }
896
+ };
897
+ const flatMapParSwitchBuffer = /*#__PURE__*/dual(4, (self, n, bufferSize, f) => new StreamImpl(pipe(toChannel(self), concatMap(writeChunk), mergeMap(out => toChannel(f(out)), {
898
+ concurrency: n,
899
+ mergeStrategy: BufferSliding(),
900
+ bufferSize
901
+ }))));
902
+
903
+ /** @internal */
904
+ const flatten = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => flatMap(self, identity, options));
905
+
906
+ /** @internal */
907
+ const flattenChunks = self => {
908
+ const flatten = readWithCause({
909
+ onInput: chunks => flatMap$1(writeChunk(chunks), () => flatten),
910
+ onFailure: failCause$1,
911
+ onDone: () => unit$1
912
+ });
913
+ return new StreamImpl(pipe(toChannel(self), pipeTo(flatten)));
914
+ };
915
+
916
+ /** @internal */
917
+ const flattenEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => options?.unordered ? flatMap(self, a => fromEffect(a), {
918
+ concurrency: options.concurrency
919
+ }) : matchConcurrency(options?.concurrency, () => mapEffectSequential(self, identity), n => new StreamImpl(pipe(toChannel(self), concatMap(writeChunk), mapOutEffectPar(identity, n), mapOut(of)))));
920
+
921
+ /** @internal */
922
+ const flattenExitOption = self => {
923
+ const processChunk = (chunk, cont) => {
924
+ const [toEmit, rest] = pipe(chunk, splitWhere(exit => !isSuccess(exit)));
925
+ const next = pipe(head$1(rest), match$2({
926
+ onNone: () => cont,
927
+ onSome: match$3({
928
+ onFailure: cause => match$2(flipCauseOption(cause), {
929
+ onNone: () => unit$1,
930
+ onSome: failCause$1
931
+ }),
932
+ onSuccess: () => unit$1
933
+ })
934
+ }));
935
+ return pipe(write(pipe(toEmit, filterMap$1(exit => isSuccess(exit) ? some$1(exit.value) : none()))), flatMap$1(() => next));
936
+ };
937
+ const process = readWithCause({
938
+ onInput: chunk => processChunk(chunk, process),
939
+ onFailure: cause => failCause$1(cause),
940
+ onDone: () => unit$1
941
+ });
942
+ return new StreamImpl(pipe(toChannel(self), pipeTo(process)));
943
+ };
944
+
945
+ /** @internal */
946
+ const flattenIterables = self => pipe(self, map(fromIterable$1), flattenChunks);
947
+
948
+ /** @internal */
949
+ const flattenTake = self => flattenChunks(flattenExitOption(pipe(self, map(take => take.exit))));
950
+
951
+ /** @internal */
952
+ const forever = self => new StreamImpl(repeated(toChannel(self)));
953
+
954
+ /** @internal */
955
+ const fromAsyncIterable = (iterable, onError) => pipe(acquireRelease$1(sync$1(() => iterable[Symbol.asyncIterator]()), iterator => iterator.return ? promise(async () => iterator.return()) : unit$2), map$1(iterator => repeatEffectOption(pipe(tryPromise({
956
+ try: async () => iterator.next(),
957
+ catch: reason => some$1(onError(reason))
958
+ }), flatMap$2(result => result.done ? fail$3(none()) : succeed$1(result.value))))), unwrapScoped);
959
+
960
+ /** @internal */
961
+ const fromChannel = channel => new StreamImpl(channel);
962
+
963
+ /** @internal */
964
+ const toChannel = stream => {
965
+ if ("channel" in stream) {
966
+ return stream.channel;
967
+ } else if (isEffect(stream)) {
968
+ return toChannel(fromEffect(stream));
969
+ } else {
970
+ throw new TypeError(`Expected a Stream.`);
971
+ }
972
+ };
973
+
974
+ /** @internal */
975
+ const fromChunk = chunk => new StreamImpl(isEmpty(chunk) ? unit$1 : write(chunk));
976
+
977
+ /** @internal */
978
+ const fromChunkPubSub = (pubsub, options) => {
979
+ if (options?.scoped) {
980
+ const effect = map$1(subscribe(pubsub), fromChunkQueue);
981
+ return options.shutdown ? map$1(effect, ensuring(shutdown$1(pubsub))) : effect;
982
+ }
983
+ const stream = flatMap(scoped(subscribe(pubsub)), fromChunkQueue);
984
+ return options?.shutdown ? ensuring(stream, shutdown$1(pubsub)) : stream;
985
+ };
986
+
987
+ /** @internal */
988
+ const fromChunkQueue = (queue, options) => pipe(take$2(queue), catchAllCause$2(cause => pipe(isShutdown(queue), flatMap$2(isShutdown => isShutdown && isInterrupted(cause) ? end$1() : failCause$5(cause)))), repeatEffectChunkOption, options?.shutdown ? ensuring(shutdown(queue)) : identity);
989
+
990
+ /** @internal */
991
+ const fromChunks = (...chunks) => pipe(fromIterable(chunks), flatMap(fromChunk));
992
+
993
+ /** @internal */
994
+ const fromEffect = effect => pipe(effect, mapError$1(some$1), fromEffectOption);
995
+
996
+ /** @internal */
997
+ const fromEffectOption = effect => new StreamImpl(unwrap$1(match$1(effect, {
998
+ onFailure: match$2({
999
+ onNone: () => unit$1,
1000
+ onSome: fail$1
1001
+ }),
1002
+ onSuccess: a => write(of(a))
1003
+ })));
1004
+
1005
+ /** @internal */
1006
+ const fromPubSub = (pubsub, options) => {
1007
+ const maxChunkSize = options?.maxChunkSize ?? DefaultChunkSize;
1008
+ if (options?.scoped) {
1009
+ const effect = map$1(subscribe(pubsub), queue => fromQueue(queue, {
1010
+ maxChunkSize,
1011
+ shutdown: true
1012
+ }));
1013
+ return options.shutdown ? map$1(effect, ensuring(shutdown$1(pubsub))) : effect;
1014
+ }
1015
+ const stream = flatMap(scoped(subscribe(pubsub)), queue => fromQueue(queue, {
1016
+ maxChunkSize
1017
+ }));
1018
+ return options?.shutdown ? ensuring(stream, shutdown$1(pubsub)) : stream;
1019
+ };
1020
+
1021
+ /** @internal */
1022
+ const fromIterable = iterable => suspend(() => isChunk(iterable) ? fromChunk(iterable) : fromIteratorSucceed(iterable[Symbol.iterator]()));
1023
+
1024
+ /** @internal */
1025
+ const fromIterableEffect = effect => pipe(effect, map$1(fromIterable), unwrap);
1026
+
1027
+ /** @internal */
1028
+ const fromIteratorSucceed = (iterator, maxChunkSize = DefaultChunkSize) => {
1029
+ return pipe(sync$1(() => {
1030
+ let builder = [];
1031
+ const loop = iterator => pipe(sync$1(() => {
1032
+ let next = iterator.next();
1033
+ if (maxChunkSize === 1) {
1034
+ if (next.done) {
1035
+ return unit$1;
1036
+ }
1037
+ return pipe(write(of(next.value)), flatMap$1(() => loop(iterator)));
1038
+ }
1039
+ builder = [];
1040
+ let count = 0;
1041
+ while (next.done === false) {
1042
+ builder.push(next.value);
1043
+ count = count + 1;
1044
+ if (count >= maxChunkSize) {
1045
+ break;
1046
+ }
1047
+ next = iterator.next();
1048
+ }
1049
+ if (count > 0) {
1050
+ return pipe(write(unsafeFromArray(builder)), flatMap$1(() => loop(iterator)));
1051
+ }
1052
+ return unit$1;
1053
+ }), unwrap$1);
1054
+ return new StreamImpl(loop(iterator));
1055
+ }), unwrap);
1056
+ };
1057
+
1058
+ /** @internal */
1059
+ const fromPull = effect => pipe(effect, map$1(repeatEffectChunkOption), unwrapScoped);
1060
+
1061
+ /** @internal */
1062
+ const fromQueue = (queue, options) => pipe(takeBetween(queue, 1, options?.maxChunkSize ?? DefaultChunkSize), catchAllCause$2(cause => pipe(isShutdown(queue), flatMap$2(isShutdown => isShutdown && isInterrupted(cause) ? end$1() : failCause$5(cause)))), repeatEffectChunkOption, options?.shutdown ? ensuring(shutdown(queue)) : identity);
1063
+
1064
+ /** @internal */
1065
+ const fromSchedule = schedule => pipe(driver(schedule), map$1(driver => repeatEffectOption(driver.next(void 0))), unwrap);
1066
+
1067
+ /** @internal */
1068
+ const fromReadableStream = (evaluate, onError) => unwrapScoped(map$1(acquireRelease$1(sync$1(() => evaluate().getReader()), reader => promise(() => reader.cancel())), reader => repeatEffectOption(flatMap$2(tryPromise({
1069
+ try: () => reader.read(),
1070
+ catch: reason => some$1(onError(reason))
1071
+ }), ({
1072
+ done,
1073
+ value
1074
+ }) => done ? fail$3(none()) : succeed$1(value)))));
1075
+
1076
+ /** @internal */
1077
+ const fromReadableStreamByob = (evaluate, onError, allocSize = 4096) => unwrapScoped(map$1(acquireRelease$1(sync$1(() => evaluate().getReader({
1078
+ mode: "byob"
1079
+ })), reader => promise(() => reader.cancel())), reader => catchAll(forever(readChunkStreamByobReader(reader, onError, allocSize)), error => typeof error === "object" && error !== null && "_tag" in error && error._tag === "EOF" ? empty : fail(error))));
1080
+ const readChunkStreamByobReader = (reader, onError, size) => {
1081
+ const buffer = new ArrayBuffer(size);
1082
+ return paginateEffect(0, offset => flatMap$2(tryPromise({
1083
+ try: () => reader.read(new Uint8Array(buffer, offset, buffer.byteLength - offset)),
1084
+ catch: reason => onError(reason)
1085
+ }), ({
1086
+ done,
1087
+ value
1088
+ }) => {
1089
+ if (done) {
1090
+ return fail$3({
1091
+ _tag: "EOF"
1092
+ });
1093
+ }
1094
+ const newOffset = offset + value.byteLength;
1095
+ return succeed$1([value, newOffset >= buffer.byteLength ? none() : some$1(newOffset)]);
1096
+ }));
1097
+ };
1098
+
1099
+ /** @internal */
1100
+ const groupAdjacentBy = /*#__PURE__*/dual(2, (self, f) => {
1101
+ const groupAdjacentByChunk = (state, chunk) => {
1102
+ if (isEmpty(chunk)) {
1103
+ return [state, empty$1()];
1104
+ }
1105
+ const builder = [];
1106
+ let from = 0;
1107
+ let until = 0;
1108
+ let key = undefined;
1109
+ let previousChunk = empty$1();
1110
+ switch (state._tag) {
1111
+ case "Some":
1112
+ {
1113
+ const tuple = state.value;
1114
+ key = tuple[0];
1115
+ let loop = true;
1116
+ while (loop && until < chunk.length) {
1117
+ const input = unsafeGet$1(chunk, until);
1118
+ const updatedKey = f(input);
1119
+ if (!equals(key, updatedKey)) {
1120
+ const previousChunk = tuple[1];
1121
+ const additionalChunk = unsafeFromArray(Array.from(chunk).slice(from, until));
1122
+ const group = appendAllNonEmpty(previousChunk, additionalChunk);
1123
+ builder.push([key, group]);
1124
+ key = updatedKey;
1125
+ from = until;
1126
+ loop = false;
1127
+ }
1128
+ until = until + 1;
1129
+ }
1130
+ if (loop) {
1131
+ previousChunk = tuple[1];
1132
+ }
1133
+ break;
1134
+ }
1135
+ case "None":
1136
+ {
1137
+ key = f(unsafeGet$1(chunk, until));
1138
+ until = until + 1;
1139
+ break;
1140
+ }
1141
+ }
1142
+ while (until < chunk.length) {
1143
+ const input = unsafeGet$1(chunk, until);
1144
+ const updatedKey = f(input);
1145
+ if (!equals(key, updatedKey)) {
1146
+ builder.push([key, unsafeFromArray(Array.from(chunk).slice(from, until))]);
1147
+ key = updatedKey;
1148
+ from = until;
1149
+ }
1150
+ until = until + 1;
1151
+ }
1152
+ const nonEmptyChunk = appendAll(previousChunk, unsafeFromArray(Array.from(chunk).slice(from, until)));
1153
+ const output = unsafeFromArray(builder);
1154
+ return [some$1([key, nonEmptyChunk]), output];
1155
+ };
1156
+ const groupAdjacent = state => readWithCause({
1157
+ onInput: input => {
1158
+ const [updatedState, output] = groupAdjacentByChunk(state, input);
1159
+ return isEmpty(output) ? groupAdjacent(updatedState) : flatMap$1(write(output), () => groupAdjacent(updatedState));
1160
+ },
1161
+ onFailure: cause => match$2(state, {
1162
+ onNone: () => failCause$1(cause),
1163
+ onSome: output => flatMap$1(write(of(output)), () => failCause$1(cause))
1164
+ }),
1165
+ onDone: done => match$2(state, {
1166
+ onNone: () => succeedNow(done),
1167
+ onSome: output => flatMap$1(write(of(output)), () => succeedNow(done))
1168
+ })
1169
+ });
1170
+ return new StreamImpl(pipeToOrFail(toChannel(self), groupAdjacent(none())));
1171
+ });
1172
+
1173
+ /** @internal */
1174
+ const grouped = /*#__PURE__*/dual(2, (self, chunkSize) => pipe(self, rechunk(chunkSize), chunks));
1175
+
1176
+ /** @internal */
1177
+ const groupedWithin = /*#__PURE__*/dual(3, (self, chunkSize, duration) => aggregateWithin(self, collectAllN(chunkSize), spaced(duration)));
1178
+
1179
+ /** @internal */
1180
+ const haltWhen = /*#__PURE__*/dual(2, (self, effect) => {
1181
+ const writer = fiber => pipe(poll$1(fiber), map$1(match$2({
1182
+ onNone: () => readWith({
1183
+ onInput: input => flatMap$1(write(input), () => writer(fiber)),
1184
+ onFailure: fail$1,
1185
+ onDone: () => unit$1
1186
+ }),
1187
+ onSome: match$3({
1188
+ onFailure: failCause$1,
1189
+ onSuccess: () => unit$1
1190
+ })
1191
+ })), unwrap$1);
1192
+ return new StreamImpl(pipe(forkScoped(effect), map$1(fiber => pipe(toChannel(self), pipeTo(writer(fiber)))), unwrapScoped$1));
1193
+ });
1194
+
1195
+ /** @internal */
1196
+ const haltAfter = /*#__PURE__*/dual(2, (self, duration) => pipe(self, haltWhen(sleep(duration))));
1197
+
1198
+ /** @internal */
1199
+ const haltWhenDeferred = /*#__PURE__*/dual(2, (self, deferred) => {
1200
+ const writer = pipe(poll(deferred), map$1(match$2({
1201
+ onNone: () => readWith({
1202
+ onInput: input => pipe(write(input), flatMap$1(() => writer)),
1203
+ onFailure: fail$1,
1204
+ onDone: () => unit$1
1205
+ }),
1206
+ onSome: effect => unwrap$1(match$1(effect, {
1207
+ onFailure: fail$1,
1208
+ onSuccess: () => unit$1
1209
+ }))
1210
+ })), unwrap$1);
1211
+ return new StreamImpl(pipe(toChannel(self), pipeTo(writer)));
1212
+ });
1213
+
1214
+ /** @internal */
1215
+ const identityStream = () => new StreamImpl(identityChannel());
1216
+
1217
+ /** @internal */
1218
+ const interleave = /*#__PURE__*/dual(2, (self, that) => pipe(self, interleaveWith(that, forever(make(true, false)))));
1219
+
1220
+ /** @internal */
1221
+ const interleaveWith = /*#__PURE__*/dual(3, (self, that, decider) => {
1222
+ const producer = handoff => readWithCause({
1223
+ onInput: value => flatMap$1(fromEffect$1(offer(handoff, of$1(value))), () => producer(handoff)),
1224
+ onFailure: cause => fromEffect$1(offer(handoff, failCause$6(cause))),
1225
+ onDone: () => fromEffect$1(offer(handoff, end$2))
1226
+ });
1227
+ return new StreamImpl(unwrapScoped$1(pipe(make$1(), zip$1(make$1()), tap$1(([left]) => pipe(toChannel(self), concatMap(writeChunk), pipeTo(producer(left)), runScoped$1, forkScoped)), tap$1(([_, right]) => pipe(toChannel(that), concatMap(writeChunk), pipeTo(producer(right)), runScoped$1, forkScoped)), map$1(([left, right]) => {
1228
+ const process = (leftDone, rightDone) => readWithCause({
1229
+ onInput: bool => {
1230
+ if (bool && !leftDone) {
1231
+ return pipe(fromEffect$1(take$1(left)), flatMap$1(match$4({
1232
+ onEnd: () => rightDone ? unit$1 : process(true, rightDone),
1233
+ onFailure: failCause$1,
1234
+ onSuccess: chunk => pipe(write(chunk), flatMap$1(() => process(leftDone, rightDone)))
1235
+ })));
1236
+ }
1237
+ if (!bool && !rightDone) {
1238
+ return pipe(fromEffect$1(take$1(right)), flatMap$1(match$4({
1239
+ onEnd: () => leftDone ? unit$1 : process(leftDone, true),
1240
+ onFailure: failCause$1,
1241
+ onSuccess: chunk => pipe(write(chunk), flatMap$1(() => process(leftDone, rightDone)))
1242
+ })));
1243
+ }
1244
+ return process(leftDone, rightDone);
1245
+ },
1246
+ onFailure: failCause$1,
1247
+ onDone: () => unit$1
1248
+ });
1249
+ return pipe(toChannel(decider), concatMap(writeChunk), pipeTo(process(false, false)));
1250
+ }))));
1251
+ });
1252
+
1253
+ /** @internal */
1254
+ const intersperse = /*#__PURE__*/dual(2, (self, element) => new StreamImpl(pipe(toChannel(self), pipeToOrFail(suspend$2(() => {
1255
+ const writer = isFirst => readWithCause({
1256
+ onInput: chunk => {
1257
+ const builder = [];
1258
+ let flagResult = isFirst;
1259
+ for (const output of chunk) {
1260
+ if (flagResult) {
1261
+ flagResult = false;
1262
+ builder.push(output);
1263
+ } else {
1264
+ builder.push(element);
1265
+ builder.push(output);
1266
+ }
1267
+ }
1268
+ return pipe(write(unsafeFromArray(builder)), flatMap$1(() => writer(flagResult)));
1269
+ },
1270
+ onFailure: failCause$1,
1271
+ onDone: () => unit$1
1272
+ });
1273
+ return writer(true);
1274
+ })))));
1275
+
1276
+ /** @internal */
1277
+ const intersperseAffixes = /*#__PURE__*/dual(2, (self, {
1278
+ end,
1279
+ middle,
1280
+ start
1281
+ }) => pipe(make(start), concat(pipe(self, intersperse(middle))), concat(make(end))));
1282
+
1283
+ /** @internal */
1284
+ const interruptAfter = /*#__PURE__*/dual(2, (self, duration) => pipe(self, interruptWhen(sleep(duration))));
1285
+
1286
+ /** @internal */
1287
+ const interruptWhen = /*#__PURE__*/dual(2, (self, effect) => new StreamImpl(pipe(toChannel(self), interruptWhen$1(effect))));
1288
+
1289
+ /** @internal */
1290
+ const interruptWhenDeferred = /*#__PURE__*/dual(2, (self, deferred) => new StreamImpl(pipe(toChannel(self), interruptWhenDeferred$1(deferred))));
1291
+
1292
+ /** @internal */
1293
+ const iterate = (value, next) => unfold(value, a => some$1([a, next(a)]));
1294
+
1295
+ /** @internal */
1296
+ const make = (...as) => fromIterable(as);
1297
+
1298
+ /** @internal */
1299
+ const map = /*#__PURE__*/dual(2, (self, f) => new StreamImpl(pipe(toChannel(self), mapOut(map$2(f)))));
1300
+
1301
+ /** @internal */
1302
+ const mapAccum = /*#__PURE__*/dual(3, (self, s, f) => {
1303
+ const accumulator = s => readWith({
1304
+ onInput: input => {
1305
+ const [nextS, chunk] = mapAccum$1(input, s, f);
1306
+ return flatMap$1(write(chunk), () => accumulator(nextS));
1307
+ },
1308
+ onFailure: fail$1,
1309
+ onDone: () => unit$1
1310
+ });
1311
+ return new StreamImpl(pipe(toChannel(self), pipeTo(accumulator(s))));
1312
+ });
1313
+
1314
+ /** @internal */
1315
+ const mapAccumEffect = /*#__PURE__*/dual(3, (self, s, f) => suspend(() => {
1316
+ const accumulator = s => readWith({
1317
+ onInput: input => pipe(suspend$1(() => {
1318
+ const outputs = [];
1319
+ const emit = output => sync$1(() => {
1320
+ outputs.push(output);
1321
+ });
1322
+ return pipe(input, reduce$1(s, (s, a) => pipe(f(s, a), flatMap$2(([s, a]) => pipe(emit(a), as$1(s))))), match$1({
1323
+ onFailure: error => {
1324
+ if (outputs.length !== 0) {
1325
+ return zipRight$2(write(unsafeFromArray(outputs)), fail$1(error));
1326
+ }
1327
+ return fail$1(error);
1328
+ },
1329
+ onSuccess: s => flatMap$1(write(unsafeFromArray(outputs)), () => accumulator(s))
1330
+ }));
1331
+ }), unwrap$1),
1332
+ onFailure: fail$1,
1333
+ onDone: () => unit$1
1334
+ });
1335
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(accumulator(s))));
1336
+ }));
1337
+
1338
+ /** @internal */
1339
+ const mapBoth = /*#__PURE__*/dual(2, (self, options) => pipe(self, mapError(options.onFailure), map(options.onSuccess)));
1340
+
1341
+ /** @internal */
1342
+ const mapChunks = /*#__PURE__*/dual(2, (self, f) => new StreamImpl(pipe(toChannel(self), mapOut(f))));
1343
+
1344
+ /** @internal */
1345
+ const mapChunksEffect = /*#__PURE__*/dual(2, (self, f) => new StreamImpl(pipe(toChannel(self), mapOutEffect(f))));
1346
+
1347
+ /** @internal */
1348
+ const mapConcat = /*#__PURE__*/dual(2, (self, f) => pipe(self, mapConcatChunk(a => fromIterable$1(f(a)))));
1349
+
1350
+ /** @internal */
1351
+ const mapConcatChunk = /*#__PURE__*/dual(2, (self, f) => pipe(self, mapChunks(flatMap$3(f))));
1352
+
1353
+ /** @internal */
1354
+ const mapConcatChunkEffect = /*#__PURE__*/dual(2, (self, f) => pipe(self, mapEffectSequential(f), mapConcatChunk(identity)));
1355
+
1356
+ /** @internal */
1357
+ const mapConcatEffect = /*#__PURE__*/dual(2, (self, f) => pipe(self, mapEffectSequential(a => pipe(f(a), map$1(fromIterable$1))), mapConcatChunk(identity)));
1358
+
1359
+ /** @internal */
1360
+ const mapEffectSequential = /*#__PURE__*/dual(2, (self, f) => {
1361
+ const loop = iterator => {
1362
+ const next = iterator.next();
1363
+ if (next.done) {
1364
+ return readWithCause({
1365
+ onInput: elem => loop(elem[Symbol.iterator]()),
1366
+ onFailure: failCause$1,
1367
+ onDone: succeed$3
1368
+ });
1369
+ } else {
1370
+ const value = next.value;
1371
+ return unwrap$1(map$1(f(value), a2 => flatMap$1(write(of(a2)), () => loop(iterator))));
1372
+ }
1373
+ };
1374
+ return new StreamImpl(pipe(toChannel(self), pipeTo(suspend$2(() => loop(empty$1()[Symbol.iterator]())))));
1375
+ });
1376
+
1377
+ /** @internal */
1378
+ const mapEffectPar = /*#__PURE__*/dual(3, (self, n, f) => new StreamImpl(pipe(toChannel(self), concatMap(writeChunk), mapOutEffectPar(f, n), mapOut(of))));
1379
+
1380
+ /** @internal */
1381
+ const mapError = /*#__PURE__*/dual(2, (self, f) => new StreamImpl(pipe(toChannel(self), mapError$2(f))));
1382
+
1383
+ /** @internal */
1384
+ const mapErrorCause = /*#__PURE__*/dual(2, (self, f) => new StreamImpl(pipe(toChannel(self), mapErrorCause$1(f))));
1385
+
1386
+ /** @internal */
1387
+ const merge = /*#__PURE__*/dual(args => isStream(args[1]), (self, that, options) => mergeWith(self, that, {
1388
+ onSelf: identity,
1389
+ onOther: identity,
1390
+ haltStrategy: options?.haltStrategy
1391
+ }));
1392
+
1393
+ /** @internal */
1394
+ const mergeAll = /*#__PURE__*/dual(args => Symbol.iterator in args[0], (streams, options) => flatten(fromIterable(streams), options));
1395
+
1396
+ /** @internal */
1397
+ const mergeEither = /*#__PURE__*/dual(2, (self, that) => mergeWith(self, that, {
1398
+ onSelf: left,
1399
+ onOther: right
1400
+ }));
1401
+
1402
+ /** @internal */
1403
+ const mergeLeft = /*#__PURE__*/dual(2, (self, that) => pipe(self, merge(drain(that))));
1404
+
1405
+ /** @internal */
1406
+ const mergeRight = /*#__PURE__*/dual(2, (self, that) => pipe(drain(self), merge(that)));
1407
+
1408
+ /** @internal */
1409
+ const mergeWith = /*#__PURE__*/dual(3, (self, other, options) => {
1410
+ const strategy = options.haltStrategy ? fromInput(options.haltStrategy) : Both;
1411
+ const handler = terminate => exit => terminate || !isSuccess(exit) ?
1412
+ // TODO: remove
1413
+ Done(suspend$1(() => exit)) : Await(exit => suspend$1(() => exit));
1414
+ return new StreamImpl(mergeWith$1(toChannel(map(self, options.onSelf)), {
1415
+ other: toChannel(map(other, options.onOther)),
1416
+ onSelfDone: handler(strategy._tag === "Either" || strategy._tag === "Left"),
1417
+ onOtherDone: handler(strategy._tag === "Either" || strategy._tag === "Right")
1418
+ }));
1419
+ });
1420
+
1421
+ /** @internal */
1422
+ const mkString = self => run(self, mkString$1);
1423
+
1424
+ /** @internal */
1425
+ const never = /*#__PURE__*/fromEffect(never$1);
1426
+
1427
+ /** @internal */
1428
+ const onError = /*#__PURE__*/dual(2, (self, cleanup) => pipe(self, catchAllCause(cause => fromEffect(pipe(cleanup(cause), zipRight$1(failCause$4(cause)))))));
1429
+
1430
+ /** @internal */
1431
+ const onDone = /*#__PURE__*/dual(2, (self, cleanup) => new StreamImpl(pipe(toChannel(self), ensuringWith$1(exit => isSuccess(exit) ? cleanup() : unit$2))));
1432
+
1433
+ /** @internal */
1434
+ const orDie = self => pipe(self, orDieWith(identity));
1435
+
1436
+ /** @internal */
1437
+ const orDieWith = /*#__PURE__*/dual(2, (self, f) => new StreamImpl(pipe(toChannel(self), orDieWith$1(f))));
1438
+
1439
+ /** @internal */
1440
+ const orElse = /*#__PURE__*/dual(2, (self, that) => new StreamImpl(pipe(toChannel(self), orElse$1(() => toChannel(that())))));
1441
+
1442
+ /** @internal */
1443
+ const orElseEither = /*#__PURE__*/dual(2, (self, that) => pipe(self, map(left), orElse(() => pipe(that(), map(right)))));
1444
+
1445
+ /** @internal */
1446
+ const orElseFail = /*#__PURE__*/dual(2, (self, error) => pipe(self, orElse(() => failSync(error))));
1447
+
1448
+ /** @internal */
1449
+ const orElseIfEmpty = /*#__PURE__*/dual(2, (self, element) => pipe(self, orElseIfEmptyChunk(() => of(element()))));
1450
+
1451
+ /** @internal */
1452
+ const orElseIfEmptyChunk = /*#__PURE__*/dual(2, (self, chunk) => pipe(self, orElseIfEmptyStream(() => new StreamImpl(write(chunk())))));
1453
+
1454
+ /** @internal */
1455
+ const orElseIfEmptyStream = /*#__PURE__*/dual(2, (self, stream) => {
1456
+ const writer = readWith({
1457
+ onInput: input => {
1458
+ if (isEmpty(input)) {
1459
+ return suspend$2(() => writer);
1460
+ }
1461
+ return pipe(write(input), zipRight$2(identityChannel()));
1462
+ },
1463
+ onFailure: fail$1,
1464
+ onDone: () => suspend$2(() => toChannel(stream()))
1465
+ });
1466
+ return new StreamImpl(pipe(toChannel(self), pipeTo(writer)));
1467
+ });
1468
+
1469
+ /** @internal */
1470
+ const orElseSucceed = /*#__PURE__*/dual(2, (self, value) => pipe(self, orElse(() => sync(value))));
1471
+
1472
+ /** @internal */
1473
+ const paginate = (s, f) => paginateChunk(s, s => {
1474
+ const page = f(s);
1475
+ return [of(page[0]), page[1]];
1476
+ });
1477
+
1478
+ /** @internal */
1479
+ const paginateChunk = (s, f) => {
1480
+ const loop = s => {
1481
+ const page = f(s);
1482
+ return match$2(page[1], {
1483
+ onNone: () => zipRight$2(write(page[0]), unit$1),
1484
+ onSome: s => flatMap$1(write(page[0]), () => loop(s))
1485
+ });
1486
+ };
1487
+ return new StreamImpl(suspend$2(() => loop(s)));
1488
+ };
1489
+
1490
+ /** @internal */
1491
+ const paginateChunkEffect = (s, f) => {
1492
+ const loop = s => unwrap$1(map$1(f(s), ([chunk, option]) => match$2(option, {
1493
+ onNone: () => zipRight$2(write(chunk), unit$1),
1494
+ onSome: s => flatMap$1(write(chunk), () => loop(s))
1495
+ })));
1496
+ return new StreamImpl(suspend$2(() => loop(s)));
1497
+ };
1498
+
1499
+ /** @internal */
1500
+ const paginateEffect = (s, f) => paginateChunkEffect(s, s => pipe(f(s), map$1(([a, s]) => [of(a), s])));
1501
+
1502
+ /** @internal */
1503
+ const peel = /*#__PURE__*/dual(2, (self, sink) => {
1504
+ const OP_EMIT = "Emit";
1505
+ const OP_HALT = "Halt";
1506
+ const OP_END = "End";
1507
+ return pipe(make$4(), flatMap$2(deferred => pipe(make$1(), map$1(handoff => {
1508
+ const consumer = foldSink(collectLeftover(sink), {
1509
+ onFailure: error => zipRight$3(fromEffect$2(fail$4(deferred, error)), fail$5(error)),
1510
+ onSuccess: ([z, leftovers]) => {
1511
+ const loop = readWithCause({
1512
+ onInput: elements => flatMap$1(fromEffect$1(offer(handoff, {
1513
+ _tag: OP_EMIT,
1514
+ elements
1515
+ })), () => loop),
1516
+ onFailure: cause => zipRight$2(fromEffect$1(offer(handoff, {
1517
+ _tag: OP_HALT,
1518
+ cause
1519
+ })), failCause$1(cause)),
1520
+ onDone: _ => zipRight$2(fromEffect$1(offer(handoff, {
1521
+ _tag: OP_END
1522
+ })), unit$1)
1523
+ });
1524
+ return fromChannel$1(pipe(fromEffect$1(succeed$2(deferred, z)), zipRight$2(fromEffect$1(pipe(handoff, offer({
1525
+ _tag: OP_EMIT,
1526
+ elements: leftovers
1527
+ })))), zipRight$2(loop)));
1528
+ }
1529
+ });
1530
+ const producer = pipe(take$1(handoff), map$1(signal => {
1531
+ switch (signal._tag) {
1532
+ case OP_EMIT:
1533
+ {
1534
+ return pipe(write(signal.elements), flatMap$1(() => producer));
1535
+ }
1536
+ case OP_HALT:
1537
+ {
1538
+ return failCause$1(signal.cause);
1539
+ }
1540
+ case OP_END:
1541
+ {
1542
+ return unit$1;
1543
+ }
1544
+ }
1545
+ }), unwrap$1);
1546
+ return pipe(self, tapErrorCause(cause => failCause$3(deferred, cause)), run(consumer), forkScoped, zipRight$1(_await(deferred)), map$1(z => [z, new StreamImpl(producer)]));
1547
+ }))), flatten$1);
1548
+ });
1549
+
1550
+ /** @internal */
1551
+ const partition = /*#__PURE__*/dual(args => typeof args[1] === "function", (self, predicate, options) => partitionEither(self, a => succeed$1(predicate(a) ? left(a) : right(a)), options));
1552
+
1553
+ /** @internal */
1554
+ const partitionEither = /*#__PURE__*/dual(args => typeof args[1] === "function", (self, predicate, options) => pipe(mapEffectSequential(self, predicate), distributedWith({
1555
+ size: 2,
1556
+ maximumLag: options?.bufferSize ?? 16,
1557
+ decide: match({
1558
+ onLeft: () => succeed$1(n => n === 0),
1559
+ onRight: () => succeed$1(n => n === 1)
1560
+ })
1561
+ }), flatMap$2(([queue1, queue2]) => succeed$1([filterMap(flattenExitOption(fromQueue(queue1, {
1562
+ shutdown: true
1563
+ })), _ => match(_, {
1564
+ onLeft: some$1,
1565
+ onRight: none
1566
+ })), filterMap(flattenExitOption(fromQueue(queue2, {
1567
+ shutdown: true
1568
+ })), _ => match(_, {
1569
+ onLeft: none,
1570
+ onRight: some$1
1571
+ }))]))));
1572
+
1573
+ /** @internal */
1574
+ const pipeThrough = /*#__PURE__*/dual(2, (self, sink) => new StreamImpl(pipe(toChannel(self), pipeToOrFail(toChannel$1(sink)))));
1575
+
1576
+ /** @internal */
1577
+ const pipeThroughChannel = /*#__PURE__*/dual(2, (self, channel) => new StreamImpl(pipe(toChannel(self), pipeTo(channel))));
1578
+
1579
+ /** @internal */
1580
+ const pipeThroughChannelOrFail = /*#__PURE__*/dual(2, (self, chan) => new StreamImpl(pipe(toChannel(self), pipeToOrFail(chan))));
1581
+
1582
+ /** @internal */
1583
+ const prepend = /*#__PURE__*/dual(2, (self, values) => new StreamImpl(zipRight$2(write(values), toChannel(self))));
1584
+
1585
+ /** @internal */
1586
+ const provideContext = /*#__PURE__*/dual(2, (self, context) => new StreamImpl(pipe(toChannel(self), provideContext$1(context))));
1587
+
1588
+ /** @internal */
1589
+ const provideLayer = /*#__PURE__*/dual(2, (self, layer) => new StreamImpl(unwrapScoped$1(pipe(build(layer), map$1(env => pipe(toChannel(self), provideContext$1(env)))))));
1590
+
1591
+ /** @internal */
1592
+ const provideService = /*#__PURE__*/dual(3, (self, tag, resource) => provideServiceEffect(self, tag, succeed$1(resource)));
1593
+
1594
+ /** @internal */
1595
+ const provideServiceEffect = /*#__PURE__*/dual(3, (self, tag, effect) => provideServiceStream(self, tag, fromEffect(effect)));
1596
+
1597
+ /** @internal */
1598
+ const provideServiceStream = /*#__PURE__*/dual(3, (self, tag, stream) => contextWithStream(env => flatMap(stream, service => pipe(self, provideContext(add(env, tag, service))))));
1599
+
1600
+ /** @internal */
1601
+ const mapInputContext = /*#__PURE__*/dual(2, (self, f) => contextWithStream(env => pipe(self, provideContext(f(env)))));
1602
+
1603
+ /** @internal */
1604
+ const provideSomeLayer = /*#__PURE__*/dual(2, (self, layer) =>
1605
+ // @ts-expect-error
1606
+ pipe(self, provideLayer(pipe(context$1(), merge$1(layer)))));
1607
+
1608
+ /** @internal */
1609
+ const range = (min, max, chunkSize = DefaultChunkSize) => suspend(() => {
1610
+ if (min > max) {
1611
+ return empty;
1612
+ }
1613
+ const go = (min, max, chunkSize) => {
1614
+ const remaining = max - min + 1;
1615
+ if (remaining > chunkSize) {
1616
+ return pipe(write(range$1(min, min + chunkSize - 1)), flatMap$1(() => go(min + chunkSize, max, chunkSize)));
1617
+ }
1618
+ return write(range$1(min, min + remaining - 1));
1619
+ };
1620
+ return new StreamImpl(go(min, max, chunkSize));
1621
+ });
1622
+
1623
+ /** @internal */
1624
+ const rechunk = /*#__PURE__*/dual(2, (self, n) => suspend(() => {
1625
+ const target = Math.max(n, 1);
1626
+ const process = rechunkProcess(new StreamRechunker(target), target);
1627
+ return new StreamImpl(pipe(toChannel(self), pipeTo(process)));
1628
+ }));
1629
+
1630
+ /** @internal */
1631
+ const rechunkProcess = (rechunker, target) => readWithCause({
1632
+ onInput: chunk => {
1633
+ if (chunk.length === target && rechunker.isEmpty()) {
1634
+ return flatMap$1(write(chunk), () => rechunkProcess(rechunker, target));
1635
+ }
1636
+ if (chunk.length > 0) {
1637
+ const chunks = [];
1638
+ let result = undefined;
1639
+ let index = 0;
1640
+ while (index < chunk.length) {
1641
+ while (index < chunk.length && result === undefined) {
1642
+ result = rechunker.write(pipe(chunk, unsafeGet$1(index)));
1643
+ index = index + 1;
1644
+ }
1645
+ if (result !== undefined) {
1646
+ chunks.push(result);
1647
+ result = undefined;
1648
+ }
1649
+ }
1650
+ return flatMap$1(writeAll(...chunks), () => rechunkProcess(rechunker, target));
1651
+ }
1652
+ return suspend$2(() => rechunkProcess(rechunker, target));
1653
+ },
1654
+ onFailure: cause => zipRight$2(rechunker.emitIfNotEmpty(), failCause$1(cause)),
1655
+ onDone: () => rechunker.emitIfNotEmpty()
1656
+ });
1657
+
1658
+ /** @internal */
1659
+ class StreamRechunker {
1660
+ builder = [];
1661
+ pos = 0;
1662
+ constructor(n) {
1663
+ this.n = n;
1664
+ }
1665
+ isEmpty() {
1666
+ return this.pos === 0;
1667
+ }
1668
+ write(elem) {
1669
+ this.builder.push(elem);
1670
+ this.pos += 1;
1671
+ if (this.pos === this.n) {
1672
+ const result = unsafeFromArray(this.builder);
1673
+ this.builder = [];
1674
+ this.pos = 0;
1675
+ return result;
1676
+ }
1677
+ return undefined;
1678
+ }
1679
+ emitIfNotEmpty() {
1680
+ if (this.pos !== 0) {
1681
+ return write(unsafeFromArray(this.builder));
1682
+ }
1683
+ return unit$1;
1684
+ }
1685
+ }
1686
+
1687
+ /** @internal */
1688
+ const refineOrDie = /*#__PURE__*/dual(2, (self, pf) => pipe(self, refineOrDieWith(pf, identity)));
1689
+
1690
+ /** @internal */
1691
+ const refineOrDieWith = /*#__PURE__*/dual(3, (self, pf, f) => new StreamImpl(catchAll$1(toChannel(self), error => match$2(pf(error), {
1692
+ onNone: () => failCause$1(die$2(f(error))),
1693
+ onSome: fail$1
1694
+ }))));
1695
+
1696
+ /** @internal */
1697
+ const repeat = /*#__PURE__*/dual(2, (self, schedule) => filterMap(repeatEither(self, schedule), _ => match(_, {
1698
+ onLeft: none,
1699
+ onRight: some$1
1700
+ })));
1701
+
1702
+ /** @internal */
1703
+ const repeatEffect = effect => repeatEffectOption(pipe(effect, mapError$1(some$1)));
1704
+
1705
+ /** @internal */
1706
+ const repeatEffectChunk = effect => repeatEffectChunkOption(pipe(effect, mapError$1(some$1)));
1707
+
1708
+ /** @internal */
1709
+ const repeatEffectChunkOption = effect => unfoldChunkEffect(effect, effect => pipe(map$1(effect, chunk => some$1([chunk, effect])), catchAll$2(match$2({
1710
+ onNone: () => succeed$1(none()),
1711
+ onSome: fail$3
1712
+ }))));
1713
+
1714
+ /** @internal */
1715
+ const repeatEffectOption = effect => repeatEffectChunkOption(pipe(effect, map$1(of)));
1716
+
1717
+ /** @internal */
1718
+ const repeatEither = /*#__PURE__*/dual(2, (self, schedule) => repeatWith(self, schedule, {
1719
+ onElement: a => right(a),
1720
+ onSchedule: left
1721
+ }));
1722
+
1723
+ /** @internal */
1724
+ const repeatElements = /*#__PURE__*/dual(2, (self, schedule) => filterMap(repeatElementsWith(self, schedule, {
1725
+ onElement: a => some$1(a),
1726
+ onSchedule: none
1727
+ }), identity));
1728
+
1729
+ /** @internal */
1730
+ const repeatElementsWith = /*#__PURE__*/dual(3, (self, schedule, options) => {
1731
+ const driver$1 = pipe(driver(schedule), map$1(driver => {
1732
+ const feed = input => match$2(head$1(input), {
1733
+ onNone: () => loop,
1734
+ onSome: a => zipRight$2(write(of(options.onElement(a))), step(pipe(input, drop$1(1)), a))
1735
+ });
1736
+ const step = (input, a) => {
1737
+ const advance = pipe(driver.next(a), as$1(pipe(write(of(options.onElement(a))), flatMap$1(() => step(input, a)))));
1738
+ const reset = pipe(driver.last(), orDie$1, flatMap$2(b => pipe(driver.reset(), map$1(() => pipe(write(of(options.onSchedule(b))), zipRight$2(feed(input)))))));
1739
+ return pipe(advance, orElse$2(() => reset), unwrap$1);
1740
+ };
1741
+ const loop = readWith({
1742
+ onInput: feed,
1743
+ onFailure: fail$1,
1744
+ onDone: () => unit$1
1745
+ });
1746
+ return loop;
1747
+ }), unwrap$1);
1748
+ return new StreamImpl(pipe(toChannel(self), pipeTo(driver$1)));
1749
+ });
1750
+
1751
+ /** @internal */
1752
+ const repeatValue = value => new StreamImpl(repeated(write(of(value))));
1753
+
1754
+ /** @internal */
1755
+ const repeatWith = /*#__PURE__*/dual(3, (self, schedule, options) => {
1756
+ return pipe(driver(schedule), map$1(driver => {
1757
+ const scheduleOutput = pipe(driver.last(), orDie$1, map$1(options.onSchedule));
1758
+ const process = pipe(self, map(options.onElement), toChannel);
1759
+ const loop = unwrap$1(match$1(driver.next(void 0), {
1760
+ onFailure: () => unit$1,
1761
+ onSuccess: () => pipe(process, zipRight$2(pipe(scheduleOutput, map$1(c => pipe(write(of(c)), flatMap$1(() => loop))), unwrap$1)))
1762
+ }));
1763
+ return new StreamImpl(pipe(process, zipRight$2(loop)));
1764
+ }), unwrap);
1765
+ });
1766
+
1767
+ /** @internal */
1768
+ const repeatWithSchedule = (value, schedule) => repeatEffectWithSchedule(succeed$1(value), schedule);
1769
+
1770
+ /** @internal */
1771
+ const repeatEffectWithSchedule = (effect, schedule) => flatMap(fromEffect(zip$1(effect, driver(schedule))), ([a, driver]) => concat(succeed(a), unfoldEffect(a, s => matchEffect(driver.next(s), {
1772
+ onFailure: succeed$1,
1773
+ onSuccess: () => map$1(effect, nextA => some$1([nextA, nextA]))
1774
+ }))));
1775
+
1776
+ /** @internal */
1777
+ const retry = /*#__PURE__*/dual(2, (self, schedule) => unwrap(map$1(driver(schedule), driver => {
1778
+ const loop = catchAll(self, error => unwrap(matchEffect(driver.next(error), {
1779
+ onFailure: () => fail$3(error),
1780
+ onSuccess: () => succeed$1(pipe(loop, tap(() => driver.reset())))
1781
+ })));
1782
+ return loop;
1783
+ })));
1784
+
1785
+ /** @internal */
1786
+ const run = /*#__PURE__*/dual(2, (self, sink) => pipe(toChannel(self), pipeToOrFail(toChannel$1(sink)), runDrain$1));
1787
+
1788
+ /** @internal */
1789
+ const runCollect = self => pipe(self, run(collectAll()));
1790
+
1791
+ /** @internal */
1792
+ const runCount = self => pipe(self, run(count));
1793
+
1794
+ /** @internal */
1795
+ const runDrain = self => pipe(self, run(drain$2));
1796
+
1797
+ /** @internal */
1798
+ const runFold = /*#__PURE__*/dual(3, (self, s, f) => pipe(self, runFoldWhileScoped(s, constTrue, f), scoped$1));
1799
+
1800
+ /** @internal */
1801
+ const runFoldEffect = /*#__PURE__*/dual(3, (self, s, f) => pipe(self, runFoldWhileScopedEffect(s, constTrue, f), scoped$1));
1802
+
1803
+ /** @internal */
1804
+ const runFoldScoped = /*#__PURE__*/dual(3, (self, s, f) => pipe(self, runFoldWhileScoped(s, constTrue, f)));
1805
+
1806
+ /** @internal */
1807
+ const runFoldScopedEffect = /*#__PURE__*/dual(3, (self, s, f) => pipe(self, runFoldWhileScopedEffect(s, constTrue, f)));
1808
+
1809
+ /** @internal */
1810
+ const runFoldWhile = /*#__PURE__*/dual(4, (self, s, cont, f) => pipe(self, runFoldWhileScoped(s, cont, f), scoped$1));
1811
+
1812
+ /** @internal */
1813
+ const runFoldWhileEffect = /*#__PURE__*/dual(4, (self, s, cont, f) => pipe(self, runFoldWhileScopedEffect(s, cont, f), scoped$1));
1814
+
1815
+ /** @internal */
1816
+ const runFoldWhileScoped = /*#__PURE__*/dual(4, (self, s, cont, f) => pipe(self, runScoped(fold(s, cont, f))));
1817
+
1818
+ /** @internal */
1819
+ const runFoldWhileScopedEffect = /*#__PURE__*/dual(4, (self, s, cont, f) => pipe(self, runScoped(foldEffect(s, cont, f))));
1820
+
1821
+ /** @internal */
1822
+ const runForEach = /*#__PURE__*/dual(2, (self, f) => pipe(self, run(forEach$1(f))));
1823
+
1824
+ /** @internal */
1825
+ const runForEachChunk = /*#__PURE__*/dual(2, (self, f) => pipe(self, run(forEachChunk(f))));
1826
+
1827
+ /** @internal */
1828
+ const runForEachChunkScoped = /*#__PURE__*/dual(2, (self, f) => pipe(self, runScoped(forEachChunk(f))));
1829
+
1830
+ /** @internal */
1831
+ const runForEachScoped = /*#__PURE__*/dual(2, (self, f) => pipe(self, runScoped(forEach$1(f))));
1832
+
1833
+ /** @internal */
1834
+ const runForEachWhile = /*#__PURE__*/dual(2, (self, f) => pipe(self, run(forEachWhile(f))));
1835
+
1836
+ /** @internal */
1837
+ const runForEachWhileScoped = /*#__PURE__*/dual(2, (self, f) => pipe(self, runScoped(forEachWhile(f))));
1838
+
1839
+ /** @internal */
1840
+ const runHead = self => pipe(self, run(head()));
1841
+
1842
+ /** @internal */
1843
+ const runIntoPubSub = /*#__PURE__*/dual(2, (self, pubsub) => pipe(self, runIntoQueue(pubsub)));
1844
+
1845
+ /** @internal */
1846
+ const runIntoPubSubScoped = /*#__PURE__*/dual(2, (self, pubsub) => pipe(self, runIntoQueueScoped(pubsub)));
1847
+
1848
+ /** @internal */
1849
+ const runIntoQueue = /*#__PURE__*/dual(2, (self, queue) => pipe(self, runIntoQueueScoped(queue), scoped$1));
1850
+
1851
+ /** @internal */
1852
+ const runIntoQueueElementsScoped = /*#__PURE__*/dual(2, (self, queue) => {
1853
+ const writer = readWithCause({
1854
+ onInput: input => flatMap$1(fromEffect$1(offerAll(queue, map$2(input, succeed$4))), () => writer),
1855
+ onFailure: cause => fromEffect$1(offer$1(queue, failCause$2(map$3(cause, some$1)))),
1856
+ onDone: () => fromEffect$1(offer$1(queue, fail$2(none())))
1857
+ });
1858
+ return pipe(pipeTo(toChannel(self), writer), drain$1, runScoped$1, asUnit);
1859
+ });
1860
+
1861
+ /** @internal */
1862
+ const runIntoQueueScoped = /*#__PURE__*/dual(2, (self, queue) => {
1863
+ const writer = readWithCause({
1864
+ onInput: input => flatMap$1(write(chunk(input)), () => writer),
1865
+ onFailure: cause => write(failCause$6(cause)),
1866
+ onDone: () => write(end$2)
1867
+ });
1868
+ return pipe(pipeTo(toChannel(self), writer), mapOutEffect(take => offer$1(queue, take)), drain$1, runScoped$1, asUnit);
1869
+ });
1870
+
1871
+ /** @internal */
1872
+ const runLast = self => pipe(self, run(last()));
1873
+
1874
+ /** @internal */
1875
+ const runScoped = /*#__PURE__*/dual(2, (self, sink) => pipe(toChannel(self), pipeToOrFail(toChannel$1(sink)), drain$1, runScoped$1));
1876
+
1877
+ /** @internal */
1878
+ const runSum = self => pipe(self, run(sum));
1879
+
1880
+ /** @internal */
1881
+ const scan = /*#__PURE__*/dual(3, (self, s, f) => pipe(self, scanEffect(s, (s, a) => succeed$1(f(s, a)))));
1882
+
1883
+ /** @internal */
1884
+ const scanReduce = /*#__PURE__*/dual(2, (self, f) => pipe(self, scanReduceEffect((a2, a) => succeed$1(f(a2, a)))));
1885
+
1886
+ /** @internal */
1887
+ const scanReduceEffect = /*#__PURE__*/dual(2, (self, f) => pipe(self, mapAccumEffect(none(), (option, a) => {
1888
+ switch (option._tag) {
1889
+ case "None":
1890
+ {
1891
+ return succeed$1([some$1(a), a]);
1892
+ }
1893
+ case "Some":
1894
+ {
1895
+ return pipe(f(option.value, a), map$1(b => [some$1(b), b]));
1896
+ }
1897
+ }
1898
+ })));
1899
+
1900
+ /** @internal */
1901
+ const schedule = /*#__PURE__*/dual(2, (self, schedule) => filterMap(scheduleWith(self, schedule, {
1902
+ onElement: some$1,
1903
+ onSchedule: none
1904
+ }), identity));
1905
+
1906
+ /** @internal */
1907
+ const scheduleWith = /*#__PURE__*/dual(3, (self, schedule, options) => {
1908
+ const loop = (driver, iterator) => {
1909
+ const next = iterator.next();
1910
+ if (next.done) {
1911
+ return readWithCause({
1912
+ onInput: chunk => loop(driver, chunk[Symbol.iterator]()),
1913
+ onFailure: failCause$1,
1914
+ onDone: succeedNow
1915
+ });
1916
+ }
1917
+ return unwrap$1(matchEffect(driver.next(next.value), {
1918
+ onFailure: () => pipe(driver.last(), orDie$1, map$1(b => pipe(write(make$7(options.onElement(next.value), options.onSchedule(b))), flatMap$1(() => loop(driver, iterator)))), zipLeft$1(driver.reset())),
1919
+ onSuccess: () => succeed$1(pipe(write(of(options.onElement(next.value))), flatMap$1(() => loop(driver, iterator))))
1920
+ }));
1921
+ };
1922
+ return new StreamImpl(pipe(fromEffect$1(driver(schedule)), flatMap$1(driver => pipe(toChannel(self), pipeTo(loop(driver, empty$1()[Symbol.iterator]()))))));
1923
+ });
1924
+
1925
+ /** @internal */
1926
+ const scanEffect = /*#__PURE__*/dual(3, (self, s, f) => new StreamImpl(pipe(write(of(s)), flatMap$1(() => toChannel(pipe(self, mapAccumEffect(s, (s, a) => pipe(f(s, a), map$1(s => [s, s])))))))));
1927
+
1928
+ /** @internal */
1929
+ const scoped = effect => new StreamImpl(ensuring$1(scoped$2(pipe(effect, map$1(of))), unit$2));
1930
+
1931
+ /** @internal */
1932
+ const some = self => pipe(self, mapError(some$1), someOrFail(() => none()));
1933
+
1934
+ /** @internal */
1935
+ const someOrElse = /*#__PURE__*/dual(2, (self, fallback) => pipe(self, map(getOrElse(fallback))));
1936
+
1937
+ /** @internal */
1938
+ const someOrFail = /*#__PURE__*/dual(2, (self, error) => mapEffectSequential(self, match$2({
1939
+ onNone: () => failSync$1(error),
1940
+ onSome: succeed$1
1941
+ })));
1942
+
1943
+ /** @internal */
1944
+ const sliding = /*#__PURE__*/dual(2, (self, chunkSize) => slidingSize(self, chunkSize, 1));
1945
+
1946
+ /** @internal */
1947
+ const slidingSize = /*#__PURE__*/dual(3, (self, chunkSize, stepSize) => {
1948
+ if (chunkSize <= 0 || stepSize <= 0) {
1949
+ return die(IllegalArgumentException("Invalid bounds - `chunkSize` and `stepSize` must be greater than zero"));
1950
+ }
1951
+ return new StreamImpl(suspend$2(() => {
1952
+ const queue = new RingBuffer(chunkSize);
1953
+ const emitOnStreamEnd = (queueSize, channelEnd) => {
1954
+ if (queueSize < chunkSize) {
1955
+ const items = queue.toChunk();
1956
+ const result = isEmpty(items) ? empty$1() : of(items);
1957
+ return pipe(write(result), flatMap$1(() => channelEnd));
1958
+ }
1959
+ const lastEmitIndex = queueSize - (queueSize - chunkSize) % stepSize;
1960
+ if (lastEmitIndex === queueSize) {
1961
+ return channelEnd;
1962
+ }
1963
+ const leftovers = queueSize - (lastEmitIndex - chunkSize + stepSize);
1964
+ const lastItems = pipe(queue.toChunk(), takeRight$1(leftovers));
1965
+ const result = isEmpty(lastItems) ? empty$1() : of(lastItems);
1966
+ return pipe(write(result), flatMap$1(() => channelEnd));
1967
+ };
1968
+ const reader = queueSize => readWithCause({
1969
+ onInput: input => flatMap$1(write(filterMap$1(input, (element, index) => {
1970
+ queue.put(element);
1971
+ const currentIndex = queueSize + index + 1;
1972
+ if (currentIndex < chunkSize || (currentIndex - chunkSize) % stepSize > 0) {
1973
+ return none();
1974
+ }
1975
+ return some$1(queue.toChunk());
1976
+ })), () => reader(queueSize + input.length)),
1977
+ onFailure: cause => emitOnStreamEnd(queueSize, failCause$1(cause)),
1978
+ onDone: () => emitOnStreamEnd(queueSize, unit$1)
1979
+ });
1980
+ return pipe(toChannel(self), pipeTo(reader(0)));
1981
+ }));
1982
+ });
1983
+
1984
+ /** @internal */
1985
+ const split = /*#__PURE__*/dual(2, (self, predicate) => {
1986
+ const split = (leftovers, input) => {
1987
+ const [chunk, remaining] = pipe(leftovers, appendAll(input), splitWhere(predicate));
1988
+ if (isEmpty(chunk) || isEmpty(remaining)) {
1989
+ return loop(pipe(chunk, appendAll(pipe(remaining, drop$1(1)))));
1990
+ }
1991
+ return pipe(write(of(chunk)), flatMap$1(() => split(empty$1(), pipe(remaining, drop$1(1)))));
1992
+ };
1993
+ const loop = leftovers => readWith({
1994
+ onInput: input => split(leftovers, input),
1995
+ onFailure: fail$1,
1996
+ onDone: () => {
1997
+ if (isEmpty(leftovers)) {
1998
+ return unit$1;
1999
+ }
2000
+ if (isNone(pipe(leftovers, findFirst(predicate)))) {
2001
+ return zipRight$2(write(of(leftovers)), unit$1);
2002
+ }
2003
+ return zipRight$2(split(empty$1(), leftovers), unit$1);
2004
+ }
2005
+ });
2006
+ return new StreamImpl(pipe(toChannel(self), pipeTo(loop(empty$1()))));
2007
+ });
2008
+
2009
+ /** @internal */
2010
+ const splitOnChunk = /*#__PURE__*/dual(2, (self, delimiter) => {
2011
+ const next = (leftover, delimiterIndex) => readWithCause({
2012
+ onInput: inputChunk => {
2013
+ let buffer;
2014
+ const [carry, delimiterCursor] = pipe(inputChunk, reduce([pipe(leftover, getOrElse(() => empty$1())), delimiterIndex], ([carry, delimiterCursor], a) => {
2015
+ const concatenated = pipe(carry, append(a));
2016
+ if (delimiterCursor < delimiter.length && equals(a, pipe(delimiter, unsafeGet$1(delimiterCursor)))) {
2017
+ if (delimiterCursor + 1 === delimiter.length) {
2018
+ if (buffer === undefined) {
2019
+ buffer = [];
2020
+ }
2021
+ buffer.push(pipe(concatenated, take$3(concatenated.length - delimiter.length)));
2022
+ return [empty$1(), 0];
2023
+ }
2024
+ return [concatenated, delimiterCursor + 1];
2025
+ }
2026
+ return [concatenated, equals(a, pipe(delimiter, unsafeGet$1(0))) ? 1 : 0];
2027
+ }));
2028
+ const output = buffer === undefined ? empty$1() : unsafeFromArray(buffer);
2029
+ return flatMap$1(write(output), () => next(isNonEmpty(carry) ? some$1(carry) : none(), delimiterCursor));
2030
+ },
2031
+ onFailure: cause => match$2(leftover, {
2032
+ onNone: () => failCause$1(cause),
2033
+ onSome: chunk => zipRight$2(write(of(chunk)), failCause$1(cause))
2034
+ }),
2035
+ onDone: done => match$2(leftover, {
2036
+ onNone: () => succeed$3(done),
2037
+ onSome: chunk => zipRight$2(write(of(chunk)), succeed$3(done))
2038
+ })
2039
+ });
2040
+ return new StreamImpl(pipe(toChannel(self), pipeTo(next(none(), 0))));
2041
+ });
2042
+
2043
+ /** @internal */
2044
+ const splitLines = self => suspend(() => {
2045
+ let stringBuilder = "";
2046
+ let midCRLF = false;
2047
+ const splitLinesChunk = chunk => {
2048
+ const chunkBuilder = [];
2049
+ map$2(chunk, str => {
2050
+ if (str.length !== 0) {
2051
+ let from = 0;
2052
+ let indexOfCR = str.indexOf("\r");
2053
+ let indexOfLF = str.indexOf("\n");
2054
+ if (midCRLF) {
2055
+ if (indexOfLF === 0) {
2056
+ chunkBuilder.push(stringBuilder);
2057
+ stringBuilder = "";
2058
+ from = 1;
2059
+ indexOfLF = str.indexOf("\n", from);
2060
+ } else {
2061
+ stringBuilder = stringBuilder + "\r";
2062
+ }
2063
+ midCRLF = false;
2064
+ }
2065
+ while (indexOfCR !== -1 || indexOfLF !== -1) {
2066
+ if (indexOfCR === -1 || indexOfLF !== -1 && indexOfLF < indexOfCR) {
2067
+ if (stringBuilder.length === 0) {
2068
+ chunkBuilder.push(str.substring(from, indexOfLF));
2069
+ } else {
2070
+ chunkBuilder.push(stringBuilder + str.substring(from, indexOfLF));
2071
+ stringBuilder = "";
2072
+ }
2073
+ from = indexOfLF + 1;
2074
+ indexOfLF = str.indexOf("\n", from);
2075
+ } else {
2076
+ if (str.length === indexOfCR + 1) {
2077
+ midCRLF = true;
2078
+ indexOfCR = -1;
2079
+ } else {
2080
+ if (indexOfLF === indexOfCR + 1) {
2081
+ if (stringBuilder.length === 0) {
2082
+ chunkBuilder.push(str.substring(from, indexOfCR));
2083
+ } else {
2084
+ stringBuilder = stringBuilder + str.substring(from, indexOfCR);
2085
+ chunkBuilder.push(stringBuilder);
2086
+ stringBuilder = "";
2087
+ }
2088
+ from = indexOfCR + 2;
2089
+ indexOfCR = str.indexOf("\r", from);
2090
+ indexOfLF = str.indexOf("\n", from);
2091
+ } else {
2092
+ indexOfCR = str.indexOf("\r", indexOfCR + 1);
2093
+ }
2094
+ }
2095
+ }
2096
+ }
2097
+ if (midCRLF) {
2098
+ stringBuilder = stringBuilder + str.substring(from, str.length - 1);
2099
+ } else {
2100
+ stringBuilder = stringBuilder + str.substring(from, str.length);
2101
+ }
2102
+ }
2103
+ });
2104
+ return unsafeFromArray(chunkBuilder);
2105
+ };
2106
+ const loop = readWithCause({
2107
+ onInput: input => {
2108
+ const out = splitLinesChunk(input);
2109
+ return isEmpty(out) ? loop : flatMap$1(write(out), () => loop);
2110
+ },
2111
+ onFailure: cause => stringBuilder.length === 0 ? failCause$1(cause) : flatMap$1(write(of(stringBuilder)), () => failCause$1(cause)),
2112
+ onDone: done => stringBuilder.length === 0 ? succeed$3(done) : flatMap$1(write(of(stringBuilder)), () => succeed$3(done))
2113
+ });
2114
+ return new StreamImpl(pipeTo(toChannel(self), loop));
2115
+ });
2116
+
2117
+ /** @internal */
2118
+ const succeed = value => fromChunk(of(value));
2119
+
2120
+ /** @internal */
2121
+ const sync = evaluate => suspend(() => fromChunk(of(evaluate())));
2122
+
2123
+ /** @internal */
2124
+ const suspend = stream => new StreamImpl(suspend$2(() => toChannel(stream())));
2125
+
2126
+ /** @internal */
2127
+ const take = /*#__PURE__*/dual(2, (self, n) => {
2128
+ if (!Number.isInteger(n)) {
2129
+ return die(IllegalArgumentException(`${n} must be an integer`));
2130
+ }
2131
+ const loop = n => readWith({
2132
+ onInput: input => {
2133
+ const taken = pipe(input, take$3(Math.min(n, Number.POSITIVE_INFINITY)));
2134
+ const leftover = Math.max(0, n - taken.length);
2135
+ const more = leftover > 0;
2136
+ if (more) {
2137
+ return pipe(write(taken), flatMap$1(() => loop(leftover)));
2138
+ }
2139
+ return write(taken);
2140
+ },
2141
+ onFailure: fail$1,
2142
+ onDone: succeed$3
2143
+ });
2144
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(0 < n ? loop(n) : unit$1)));
2145
+ });
2146
+
2147
+ /** @internal */
2148
+ const takeRight = /*#__PURE__*/dual(2, (self, n) => {
2149
+ if (n <= 0) {
2150
+ return empty;
2151
+ }
2152
+ return new StreamImpl(pipe(succeed$1(new RingBuffer(n)), map$1(queue => {
2153
+ const reader = readWith({
2154
+ onInput: input => {
2155
+ for (const element of input) {
2156
+ queue.put(element);
2157
+ }
2158
+ return reader;
2159
+ },
2160
+ onFailure: fail$1,
2161
+ onDone: () => pipe(write(queue.toChunk()), zipRight$2(unit$1))
2162
+ });
2163
+ return pipe(toChannel(self), pipeTo(reader));
2164
+ }), unwrap$1));
2165
+ });
2166
+
2167
+ /** @internal */
2168
+ const takeUntil = /*#__PURE__*/dual(2, (self, predicate) => {
2169
+ const loop = readWith({
2170
+ onInput: input => {
2171
+ const taken = pipe(input, takeWhile$1(a => !predicate(a)));
2172
+ const last = pipe(input, drop$1(taken.length), take$3(1));
2173
+ if (isEmpty(last)) {
2174
+ return pipe(write(taken), flatMap$1(() => loop));
2175
+ }
2176
+ return write(pipe(taken, appendAll(last)));
2177
+ },
2178
+ onFailure: fail$1,
2179
+ onDone: succeed$3
2180
+ });
2181
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop)));
2182
+ });
2183
+
2184
+ /** @internal */
2185
+ const takeUntilEffect = /*#__PURE__*/dual(2, (self, predicate) => {
2186
+ const loop = iterator => {
2187
+ const next = iterator.next();
2188
+ if (next.done) {
2189
+ return readWithCause({
2190
+ onInput: elem => loop(elem[Symbol.iterator]()),
2191
+ onFailure: failCause$1,
2192
+ onDone: succeed$3
2193
+ });
2194
+ }
2195
+ return pipe(predicate(next.value), map$1(bool => bool ? write(of(next.value)) : pipe(write(of(next.value)), flatMap$1(() => loop(iterator)))), unwrap$1);
2196
+ };
2197
+ return new StreamImpl(pipe(toChannel(self), pipeTo(loop(empty$1()[Symbol.iterator]()))));
2198
+ });
2199
+
2200
+ /** @internal */
2201
+ const takeWhile = /*#__PURE__*/dual(2, (self, predicate) => {
2202
+ const loop = readWith({
2203
+ onInput: input => {
2204
+ const taken = pipe(input, takeWhile$1(predicate));
2205
+ const more = taken.length === input.length;
2206
+ if (more) {
2207
+ return pipe(write(taken), flatMap$1(() => loop));
2208
+ }
2209
+ return write(taken);
2210
+ },
2211
+ onFailure: fail$1,
2212
+ onDone: succeed$3
2213
+ });
2214
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop)));
2215
+ });
2216
+
2217
+ /** @internal */
2218
+ const tap = /*#__PURE__*/dual(2, (self, f) => mapEffectSequential(self, a => as$1(f(a), a)));
2219
+
2220
+ /** @internal */
2221
+ const tapBoth = /*#__PURE__*/dual(2, (self, {
2222
+ onFailure,
2223
+ onSuccess
2224
+ }) => pipe(self, tapError(onFailure), tap(onSuccess)));
2225
+
2226
+ /** @internal */
2227
+ const tapError = /*#__PURE__*/dual(2, (self, f) => catchAll(self, error => fromEffect(zipRight$1(f(error), fail$3(error)))));
2228
+
2229
+ /** @internal */
2230
+ const tapErrorCause = /*#__PURE__*/dual(2, (self, f) => {
2231
+ const loop = readWithCause({
2232
+ onInput: chunk => flatMap$1(write(chunk), () => loop),
2233
+ onFailure: cause => fromEffect$1(zipRight$1(f(cause), failCause$4(cause))),
2234
+ onDone: succeedNow
2235
+ });
2236
+ return new StreamImpl(pipe(toChannel(self), pipeTo(loop)));
2237
+ });
2238
+
2239
+ /** @internal */
2240
+ const tapSink = /*#__PURE__*/dual(2, (self, sink) => pipe(fromEffect(all([bounded(1), make$4()])), flatMap(([queue, deferred]) => {
2241
+ const right = flattenTake(fromQueue(queue, {
2242
+ maxChunkSize: 1
2243
+ }));
2244
+ const loop = readWithCause({
2245
+ onInput: chunk$1 => pipe(fromEffect$1(offer$1(queue, chunk(chunk$1))), foldCauseChannel({
2246
+ onFailure: () => flatMap$1(write(chunk$1), () => identityChannel()),
2247
+ onSuccess: () => flatMap$1(write(chunk$1), () => loop)
2248
+ })),
2249
+ onFailure: cause => pipe(fromEffect$1(offer$1(queue, failCause$6(cause))), foldCauseChannel({
2250
+ onFailure: () => failCause$1(cause),
2251
+ onSuccess: () => failCause$1(cause)
2252
+ })),
2253
+ onDone: () => pipe(fromEffect$1(offer$1(queue, end$2)), foldCauseChannel({
2254
+ onFailure: () => unit$1,
2255
+ onSuccess: () => unit$1
2256
+ }))
2257
+ });
2258
+ return pipe(new StreamImpl(pipe(pipeTo(toChannel(self), loop), ensuring$1(zipRight$1(forkDaemon(offer$1(queue, end$2)), _await(deferred))))), merge(execute(pipe(run(right, sink), ensuring$2(zipRight$1(shutdown(queue), succeed$2(deferred, void 0)))))));
2259
+ })));
2260
+
2261
+ /** @internal */
2262
+ const throttle = /*#__PURE__*/dual(2, (self, options) => throttleEffect(self, {
2263
+ ...options,
2264
+ cost: chunk => succeed$1(options.cost(chunk))
2265
+ }));
2266
+
2267
+ /** @internal */
2268
+ const throttleEffect = /*#__PURE__*/dual(2, (self, options) => {
2269
+ if (options.strategy === "enforce") {
2270
+ return throttleEnforceEffect(self, options.cost, options.units, options.duration, options.burst ?? 0);
2271
+ }
2272
+ return throttleShapeEffect(self, options.cost, options.units, options.duration, options.burst ?? 0);
2273
+ });
2274
+ const throttleEnforceEffect = (self, cost, units, duration, burst) => {
2275
+ const loop = (tokens, timestampMillis) => readWithCause({
2276
+ onInput: input => pipe(cost(input), zip$1(currentTimeMillis), map$1(([weight, currentTimeMillis]) => {
2277
+ const elapsed = currentTimeMillis - timestampMillis;
2278
+ const cycles = elapsed / toMillis(duration);
2279
+ const sum = tokens + cycles * units;
2280
+ const max = units + burst < 0 ? Number.POSITIVE_INFINITY : units + burst;
2281
+ const available = sum < 0 ? max : Math.min(sum, max);
2282
+ if (weight <= available) {
2283
+ return pipe(write(input), flatMap$1(() => loop(available - weight, currentTimeMillis)));
2284
+ }
2285
+ return loop(tokens, timestampMillis);
2286
+ }), unwrap$1),
2287
+ onFailure: failCause$1,
2288
+ onDone: () => unit$1
2289
+ });
2290
+ const throttled = pipe(currentTimeMillis, map$1(currentTimeMillis => loop(units, currentTimeMillis)), unwrap$1);
2291
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(throttled)));
2292
+ };
2293
+ const throttleShapeEffect = (self, costFn, units, duration, burst) => {
2294
+ const loop = (tokens, timestampMillis) => readWithCause({
2295
+ onInput: input => pipe(costFn(input), zip$1(currentTimeMillis), map$1(([weight, currentTimeMillis]) => {
2296
+ const elapsed = currentTimeMillis - timestampMillis;
2297
+ const cycles = elapsed / toMillis(duration);
2298
+ const sum = tokens + cycles * units;
2299
+ const max = units + burst < 0 ? Number.POSITIVE_INFINITY : units + burst;
2300
+ const available = sum < 0 ? max : Math.min(sum, max);
2301
+ const remaining = available - weight;
2302
+ const waitCycles = remaining >= 0 ? 0 : -remaining / units;
2303
+ const delay = millis(Math.max(0, waitCycles * toMillis(duration)));
2304
+ if (greaterThan(delay, zero)) {
2305
+ return pipe(fromEffect$1(sleep(delay)), zipRight$2(write(input)), flatMap$1(() => loop(remaining, currentTimeMillis)));
2306
+ }
2307
+ return flatMap$1(write(input), () => loop(remaining, currentTimeMillis));
2308
+ }), unwrap$1),
2309
+ onFailure: failCause$1,
2310
+ onDone: () => unit$1
2311
+ });
2312
+ const throttled = pipe(currentTimeMillis, map$1(currentTimeMillis => loop(units, currentTimeMillis)), unwrap$1);
2313
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(throttled)));
2314
+ };
2315
+
2316
+ /** @internal */
2317
+ const tick = interval => repeatWithSchedule(void 0, spaced(interval));
2318
+
2319
+ /** @internal */
2320
+ const timeout = /*#__PURE__*/dual(2, (self, duration) => pipe(toPull(self), map$1(timeoutFail$1({
2321
+ onTimeout: () => none(),
2322
+ duration
2323
+ })), fromPull));
2324
+
2325
+ /** @internal */
2326
+ const timeoutFail = /*#__PURE__*/dual(3, (self, error, duration) => pipe(self, timeoutTo(duration, failSync(error))));
2327
+
2328
+ /** @internal */
2329
+ const timeoutFailCause = /*#__PURE__*/dual(3, (self, cause, duration) => pipe(toPull(self), map$1(timeoutFailCause$1({
2330
+ onTimeout: () => map$3(cause(), some$1),
2331
+ duration
2332
+ })), fromPull));
2333
+
2334
+ /** @internal */
2335
+ const timeoutTo = /*#__PURE__*/dual(3, (self, duration, that) => {
2336
+ const StreamTimeout = RuntimeException("Stream Timeout");
2337
+ return pipe(self, timeoutFailCause(() => die$2(StreamTimeout), duration), catchSomeCause(cause => isDieType(cause) && isRuntimeException(cause.defect) && cause.defect.message !== undefined && cause.defect.message === "Stream Timeout" ? some$1(that) : none()));
2338
+ });
2339
+
2340
+ /** @internal */
2341
+ const toPubSub = /*#__PURE__*/dual(2, (self, capacity) => pipe(acquireRelease$1(bounded$1(capacity), pubsub => shutdown$1(pubsub)), tap$1(pubsub => pipe(self, runIntoPubSubScoped(pubsub), forkScoped))));
2342
+
2343
+ /** @internal */
2344
+ const toPull = self => map$1(toPull$1(toChannel(self)), pull => pipe(pull, mapError$1(some$1), flatMap$2(match({
2345
+ onLeft: () => fail$3(none()),
2346
+ onRight: succeed$1
2347
+ }))));
2348
+
2349
+ /** @internal */
2350
+ const toQueue = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => tap$1(acquireRelease$1(options?.strategy === "unbounded" ? unbounded() : options?.strategy === "dropping" ? dropping(options.capacity ?? 2) : options?.strategy === "sliding" ? sliding$1(options.capacity ?? 2) : bounded(options?.capacity ?? 2), queue => shutdown(queue)), queue => forkScoped(runIntoQueueScoped(self, queue))));
2351
+
2352
+ /** @internal */
2353
+ const toQueueOfElements = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => tap$1(acquireRelease$1(bounded(options?.capacity ?? 2), queue => shutdown(queue)), queue => forkScoped(runIntoQueueElementsScoped(self, queue))));
2354
+
2355
+ /** @internal */
2356
+ const toReadableStream = source => {
2357
+ let pull;
2358
+ let scope;
2359
+ return new ReadableStream({
2360
+ start(controller) {
2361
+ scope = runSync(make$6());
2362
+ pull = pipe(toPull(source), use(scope), runSync, tap$1(chunk => sync$1(() => {
2363
+ map$2(chunk, a => {
2364
+ controller.enqueue(a);
2365
+ });
2366
+ })), tapErrorCause$1(() => close(scope, unit$3)), catchTags$1({
2367
+ "None": () => sync$1(() => {
2368
+ controller.close();
2369
+ }),
2370
+ "Some": error => sync$1(() => {
2371
+ controller.error(error.value);
2372
+ })
2373
+ }), asUnit);
2374
+ },
2375
+ pull() {
2376
+ return runPromise(pull);
2377
+ },
2378
+ cancel() {
2379
+ return runPromise(close(scope, unit$3));
2380
+ }
2381
+ });
2382
+ };
2383
+
2384
+ /** @internal */
2385
+ const transduce = /*#__PURE__*/dual(2, (self, sink) => {
2386
+ const newChannel = suspend$2(() => {
2387
+ const leftovers = {
2388
+ ref: empty$1()
2389
+ };
2390
+ const upstreamDone = {
2391
+ ref: false
2392
+ };
2393
+ const buffer = suspend$2(() => {
2394
+ const leftover = leftovers.ref;
2395
+ if (isEmpty(leftover)) {
2396
+ return readWith({
2397
+ onInput: input => pipe(write(input), flatMap$1(() => buffer)),
2398
+ onFailure: fail$1,
2399
+ onDone: succeedNow
2400
+ });
2401
+ }
2402
+ leftovers.ref = empty$1();
2403
+ return pipe(writeChunk(leftover), flatMap$1(() => buffer));
2404
+ });
2405
+ const concatAndGet = chunk => {
2406
+ const leftover = leftovers.ref;
2407
+ const concatenated = appendAll(leftover, filter$1(chunk, chunk => chunk.length !== 0));
2408
+ leftovers.ref = concatenated;
2409
+ return concatenated;
2410
+ };
2411
+ const upstreamMarker = readWith({
2412
+ onInput: input => flatMap$1(write(input), () => upstreamMarker),
2413
+ onFailure: fail$1,
2414
+ onDone: done => zipRight$2(sync$2(() => {
2415
+ upstreamDone.ref = true;
2416
+ }), succeedNow(done))
2417
+ });
2418
+ const transducer = pipe(sink, toChannel$1, collectElements, flatMap$1(([leftover, z]) => pipe(succeed$3([upstreamDone.ref, concatAndGet(leftover)]), flatMap$1(([done, newLeftovers]) => {
2419
+ const nextChannel = done && isEmpty(newLeftovers) ? unit$1 : transducer;
2420
+ return pipe(write(of(z)), flatMap$1(() => nextChannel));
2421
+ }))));
2422
+ return pipe(toChannel(self), pipeTo(upstreamMarker), pipeTo(buffer), pipeToOrFail(transducer));
2423
+ });
2424
+ return new StreamImpl(newChannel);
2425
+ });
2426
+
2427
+ /** @internal */
2428
+ const unfold = (s, f) => unfoldChunk(s, s => pipe(f(s), map$4(([a, s]) => [of(a), s])));
2429
+
2430
+ /** @internal */
2431
+ const unfoldChunk = (s, f) => {
2432
+ const loop = s => match$2(f(s), {
2433
+ onNone: () => unit$1,
2434
+ onSome: ([chunk, s]) => flatMap$1(write(chunk), () => loop(s))
2435
+ });
2436
+ return new StreamImpl(suspend$2(() => loop(s)));
2437
+ };
2438
+
2439
+ /** @internal */
2440
+ const unfoldChunkEffect = (s, f) => suspend(() => {
2441
+ const loop = s => unwrap$1(map$1(f(s), match$2({
2442
+ onNone: () => unit$1,
2443
+ onSome: ([chunk, s]) => flatMap$1(write(chunk), () => loop(s))
2444
+ })));
2445
+ return new StreamImpl(loop(s));
2446
+ });
2447
+
2448
+ /** @internal */
2449
+ const unfoldEffect = (s, f) => unfoldChunkEffect(s, s => pipe(f(s), map$1(map$4(([a, s]) => [of(a), s]))));
2450
+
2451
+ /** @internal */
2452
+ const unit = /*#__PURE__*/succeed(void 0);
2453
+
2454
+ /** @internal */
2455
+ const unwrap = effect => flatten(fromEffect(effect));
2456
+
2457
+ /** @internal */
2458
+ const unwrapScoped = effect => flatten(scoped(effect));
2459
+
2460
+ /** @internal */
2461
+ const updateService = /*#__PURE__*/dual(3, (self, tag, f) => pipe(self, mapInputContext(context => pipe(context, add(tag, f(pipe(context, unsafeGet(tag))))))));
2462
+
2463
+ /** @internal */
2464
+ const when = /*#__PURE__*/dual(2, (self, predicate) => pipe(self, whenEffect(sync$1(predicate))));
2465
+
2466
+ /** @internal */
2467
+ const whenCase = (evaluate, pf) => whenCaseEffect(pf)(sync$1(evaluate));
2468
+
2469
+ /** @internal */
2470
+ const whenCaseEffect = /*#__PURE__*/dual(2, (self, pf) => pipe(fromEffect(self), flatMap(a => pipe(pf(a), getOrElse(() => empty)))));
2471
+
2472
+ /** @internal */
2473
+ const whenEffect = /*#__PURE__*/dual(2, (self, effect) => pipe(fromEffect(effect), flatMap(bool => bool ? self : empty)));
2474
+
2475
+ /** @internal */
2476
+ const withSpan = /*#__PURE__*/dual(3, (self, name, options) => new StreamImpl(withSpan$1(toChannel(self), name, options)));
2477
+
2478
+ /** @internal */
2479
+ const zip = /*#__PURE__*/dual(2, (self, that) => pipe(self, zipWith(that, (a, a2) => [a, a2])));
2480
+
2481
+ /** @internal */
2482
+ const zipFlatten = /*#__PURE__*/dual(2, (self, that) => pipe(self, zipWith(that, (a, a2) => [...a, a2])));
2483
+
2484
+ /** @internal */
2485
+ const zipAll = /*#__PURE__*/dual(2, (self, options) => zipAllWith(self, {
2486
+ other: options.other,
2487
+ onSelf: a => [a, options.defaultOther],
2488
+ onOther: a2 => [options.defaultSelf, a2],
2489
+ onBoth: (a, a2) => [a, a2]
2490
+ }));
2491
+
2492
+ /** @internal */
2493
+ const zipAllLeft = /*#__PURE__*/dual(3, (self, other, defaultSelf) => zipAllWith(self, {
2494
+ other,
2495
+ onSelf: identity,
2496
+ onOther: () => defaultSelf,
2497
+ onBoth: a => a
2498
+ }));
2499
+
2500
+ /** @internal */
2501
+ const zipAllRight = /*#__PURE__*/dual(3, (self, other, defaultRight) => zipAllWith(self, {
2502
+ other,
2503
+ onSelf: () => defaultRight,
2504
+ onOther: identity,
2505
+ onBoth: (_, a2) => a2
2506
+ }));
2507
+
2508
+ /** @internal */
2509
+ const zipAllSortedByKey = /*#__PURE__*/dual(2, (self, options) => zipAllSortedByKeyWith(self, {
2510
+ other: options.other,
2511
+ onSelf: a => [a, options.defaultOther],
2512
+ onOther: a2 => [options.defaultSelf, a2],
2513
+ onBoth: (a, a2) => [a, a2],
2514
+ order: options.order
2515
+ }));
2516
+
2517
+ /** @internal */
2518
+ const zipAllSortedByKeyLeft = /*#__PURE__*/dual(2, (self, options) => zipAllSortedByKeyWith(self, {
2519
+ other: options.other,
2520
+ onSelf: identity,
2521
+ onOther: () => options.defaultSelf,
2522
+ onBoth: a => a,
2523
+ order: options.order
2524
+ }));
2525
+
2526
+ /** @internal */
2527
+ const zipAllSortedByKeyRight = /*#__PURE__*/dual(2, (self, options) => zipAllSortedByKeyWith(self, {
2528
+ other: options.other,
2529
+ onSelf: () => options.defaultOther,
2530
+ onOther: identity,
2531
+ onBoth: (_, a2) => a2,
2532
+ order: options.order
2533
+ }));
2534
+
2535
+ /** @internal */
2536
+ const zipAllSortedByKeyWith = /*#__PURE__*/dual(2, (self, options) => {
2537
+ const pull = (state, pullLeft, pullRight) => {
2538
+ switch (state._tag) {
2539
+ case OP_DRAIN_LEFT:
2540
+ {
2541
+ return pipe(pullLeft, match$1({
2542
+ onFailure: fail$2,
2543
+ onSuccess: leftChunk => succeed$4([map$2(leftChunk, ([k, a]) => [k, options.onSelf(a)]), DrainLeft])
2544
+ }));
2545
+ }
2546
+ case OP_DRAIN_RIGHT:
2547
+ {
2548
+ return pipe(pullRight, match$1({
2549
+ onFailure: fail$2,
2550
+ onSuccess: rightChunk => succeed$4([map$2(rightChunk, ([k, a2]) => [k, options.onOther(a2)]), DrainRight])
2551
+ }));
2552
+ }
2553
+ case OP_PULL_BOTH:
2554
+ {
2555
+ return pipe(unsome(pullLeft), zip$1(unsome(pullRight), {
2556
+ concurrent: true
2557
+ }), matchEffect({
2558
+ onFailure: error => succeed$1(fail$2(some$1(error))),
2559
+ onSuccess: ([leftOption, rightOption]) => {
2560
+ if (isSome(leftOption) && isSome(rightOption)) {
2561
+ if (isEmpty(leftOption.value) && isEmpty(rightOption.value)) {
2562
+ return pull(PullBoth, pullLeft, pullRight);
2563
+ }
2564
+ if (isEmpty(leftOption.value)) {
2565
+ return pull(PullLeft(rightOption.value), pullLeft, pullRight);
2566
+ }
2567
+ if (isEmpty(rightOption.value)) {
2568
+ return pull(PullRight(leftOption.value), pullLeft, pullRight);
2569
+ }
2570
+ return succeed$1(succeed$4(merge(leftOption.value, rightOption.value)));
2571
+ }
2572
+ if (isSome(leftOption) && isNone(rightOption)) {
2573
+ if (isEmpty(leftOption.value)) {
2574
+ return pull(DrainLeft, pullLeft, pullRight);
2575
+ }
2576
+ return succeed$1(succeed$4([pipe(leftOption.value, map$2(([k, a]) => [k, options.onSelf(a)])), DrainLeft]));
2577
+ }
2578
+ if (isNone(leftOption) && isSome(rightOption)) {
2579
+ if (isEmpty(rightOption.value)) {
2580
+ return pull(DrainRight, pullLeft, pullRight);
2581
+ }
2582
+ return succeed$1(succeed$4([pipe(rightOption.value, map$2(([k, a2]) => [k, options.onOther(a2)])), DrainRight]));
2583
+ }
2584
+ return succeed$1(fail$2(none()));
2585
+ }
2586
+ }));
2587
+ }
2588
+ case OP_PULL_LEFT:
2589
+ {
2590
+ return matchEffect(pullLeft, {
2591
+ onFailure: match$2({
2592
+ onNone: () => succeed$1(succeed$4([pipe(state.rightChunk, map$2(([k, a2]) => [k, options.onOther(a2)])), DrainRight])),
2593
+ onSome: error => succeed$1(fail$2(some$1(error)))
2594
+ }),
2595
+ onSuccess: leftChunk => isEmpty(leftChunk) ? pull(PullLeft(state.rightChunk), pullLeft, pullRight) : succeed$1(succeed$4(merge(leftChunk, state.rightChunk)))
2596
+ });
2597
+ }
2598
+ case OP_PULL_RIGHT:
2599
+ {
2600
+ return matchEffect(pullRight, {
2601
+ onFailure: match$2({
2602
+ onNone: () => succeed$1(succeed$4([map$2(state.leftChunk, ([k, a]) => [k, options.onSelf(a)]), DrainLeft])),
2603
+ onSome: error => succeed$1(fail$2(some$1(error)))
2604
+ }),
2605
+ onSuccess: rightChunk => isEmpty(rightChunk) ? pull(PullRight(state.leftChunk), pullLeft, pullRight) : succeed$1(succeed$4(merge(state.leftChunk, rightChunk)))
2606
+ });
2607
+ }
2608
+ }
2609
+ };
2610
+ const merge = (leftChunk, rightChunk) => {
2611
+ const hasNext = (chunk, index) => index < chunk.length - 1;
2612
+ const builder = [];
2613
+ let state = undefined;
2614
+ let leftIndex = 0;
2615
+ let rightIndex = 0;
2616
+ let leftTuple = pipe(leftChunk, unsafeGet$1(leftIndex));
2617
+ let rightTuple = pipe(rightChunk, unsafeGet$1(rightIndex));
2618
+ let k1 = leftTuple[0];
2619
+ let a = leftTuple[1];
2620
+ let k2 = rightTuple[0];
2621
+ let a2 = rightTuple[1];
2622
+ let loop = true;
2623
+ while (loop) {
2624
+ const compare = options.order(k1, k2);
2625
+ if (compare === 0) {
2626
+ builder.push([k1, options.onBoth(a, a2)]);
2627
+ if (hasNext(leftChunk, leftIndex) && hasNext(rightChunk, rightIndex)) {
2628
+ leftIndex = leftIndex + 1;
2629
+ rightIndex = rightIndex + 1;
2630
+ leftTuple = pipe(leftChunk, unsafeGet$1(leftIndex));
2631
+ rightTuple = pipe(rightChunk, unsafeGet$1(rightIndex));
2632
+ k1 = leftTuple[0];
2633
+ a = leftTuple[1];
2634
+ k2 = rightTuple[0];
2635
+ a2 = rightTuple[1];
2636
+ } else if (hasNext(leftChunk, leftIndex)) {
2637
+ state = PullRight(pipe(leftChunk, drop$1(leftIndex + 1)));
2638
+ loop = false;
2639
+ } else if (hasNext(rightChunk, rightIndex)) {
2640
+ state = PullLeft(pipe(rightChunk, drop$1(rightIndex + 1)));
2641
+ loop = false;
2642
+ } else {
2643
+ state = PullBoth;
2644
+ loop = false;
2645
+ }
2646
+ } else if (compare < 0) {
2647
+ builder.push([k1, options.onSelf(a)]);
2648
+ if (hasNext(leftChunk, leftIndex)) {
2649
+ leftIndex = leftIndex + 1;
2650
+ leftTuple = pipe(leftChunk, unsafeGet$1(leftIndex));
2651
+ k1 = leftTuple[0];
2652
+ a = leftTuple[1];
2653
+ } else {
2654
+ const rightBuilder = [];
2655
+ rightBuilder.push(rightTuple);
2656
+ while (hasNext(rightChunk, rightIndex)) {
2657
+ rightIndex = rightIndex + 1;
2658
+ rightTuple = pipe(rightChunk, unsafeGet$1(rightIndex));
2659
+ rightBuilder.push(rightTuple);
2660
+ }
2661
+ state = PullLeft(unsafeFromArray(rightBuilder));
2662
+ loop = false;
2663
+ }
2664
+ } else {
2665
+ builder.push([k2, options.onOther(a2)]);
2666
+ if (hasNext(rightChunk, rightIndex)) {
2667
+ rightIndex = rightIndex + 1;
2668
+ rightTuple = pipe(rightChunk, unsafeGet$1(rightIndex));
2669
+ k2 = rightTuple[0];
2670
+ a2 = rightTuple[1];
2671
+ } else {
2672
+ const leftBuilder = [];
2673
+ leftBuilder.push(leftTuple);
2674
+ while (hasNext(leftChunk, leftIndex)) {
2675
+ leftIndex = leftIndex + 1;
2676
+ leftTuple = pipe(leftChunk, unsafeGet$1(leftIndex));
2677
+ leftBuilder.push(leftTuple);
2678
+ }
2679
+ state = PullRight(unsafeFromArray(leftBuilder));
2680
+ loop = false;
2681
+ }
2682
+ }
2683
+ }
2684
+ return [unsafeFromArray(builder), state];
2685
+ };
2686
+ return combineChunks(self, options.other, PullBoth, pull);
2687
+ });
2688
+
2689
+ /** @internal */
2690
+ const zipAllWith = /*#__PURE__*/dual(2, (self, options) => {
2691
+ const pull = (state, pullLeft, pullRight) => {
2692
+ switch (state._tag) {
2693
+ case OP_DRAIN_LEFT:
2694
+ {
2695
+ return matchEffect(pullLeft, {
2696
+ onFailure: error => succeed$1(fail$2(error)),
2697
+ onSuccess: leftChunk => succeed$1(succeed$4([map$2(leftChunk, options.onSelf), DrainLeft]))
2698
+ });
2699
+ }
2700
+ case OP_DRAIN_RIGHT:
2701
+ {
2702
+ return matchEffect(pullRight, {
2703
+ onFailure: error => succeed$1(fail$2(error)),
2704
+ onSuccess: rightChunk => succeed$1(succeed$4([map$2(rightChunk, options.onOther), DrainRight]))
2705
+ });
2706
+ }
2707
+ case OP_PULL_BOTH:
2708
+ {
2709
+ return pipe(unsome(pullLeft), zip$1(unsome(pullRight), {
2710
+ concurrent: true
2711
+ }), matchEffect({
2712
+ onFailure: error => succeed$1(fail$2(some$1(error))),
2713
+ onSuccess: ([leftOption, rightOption]) => {
2714
+ if (isSome(leftOption) && isSome(rightOption)) {
2715
+ if (isEmpty(leftOption.value) && isEmpty(rightOption.value)) {
2716
+ return pull(PullBoth, pullLeft, pullRight);
2717
+ }
2718
+ if (isEmpty(leftOption.value)) {
2719
+ return pull(PullLeft(rightOption.value), pullLeft, pullRight);
2720
+ }
2721
+ if (isEmpty(rightOption.value)) {
2722
+ return pull(PullRight(leftOption.value), pullLeft, pullRight);
2723
+ }
2724
+ return succeed$1(succeed$4(zip(leftOption.value, rightOption.value, options.onBoth)));
2725
+ }
2726
+ if (isSome(leftOption) && isNone(rightOption)) {
2727
+ return succeed$1(succeed$4([map$2(leftOption.value, options.onSelf), DrainLeft]));
2728
+ }
2729
+ if (isNone(leftOption) && isSome(rightOption)) {
2730
+ return succeed$1(succeed$4([map$2(rightOption.value, options.onOther), DrainRight]));
2731
+ }
2732
+ return succeed$1(fail$2(none()));
2733
+ }
2734
+ }));
2735
+ }
2736
+ case OP_PULL_LEFT:
2737
+ {
2738
+ return matchEffect(pullLeft, {
2739
+ onFailure: match$2({
2740
+ onNone: () => succeed$1(succeed$4([map$2(state.rightChunk, options.onOther), DrainRight])),
2741
+ onSome: error => succeed$1(fail$2(some$1(error)))
2742
+ }),
2743
+ onSuccess: leftChunk => {
2744
+ if (isEmpty(leftChunk)) {
2745
+ return pull(PullLeft(state.rightChunk), pullLeft, pullRight);
2746
+ }
2747
+ if (isEmpty(state.rightChunk)) {
2748
+ return pull(PullRight(leftChunk), pullLeft, pullRight);
2749
+ }
2750
+ return succeed$1(succeed$4(zip(leftChunk, state.rightChunk, options.onBoth)));
2751
+ }
2752
+ });
2753
+ }
2754
+ case OP_PULL_RIGHT:
2755
+ {
2756
+ return matchEffect(pullRight, {
2757
+ onFailure: match$2({
2758
+ onNone: () => succeed$1(succeed$4([map$2(state.leftChunk, options.onSelf), DrainLeft])),
2759
+ onSome: error => succeed$1(fail$2(some$1(error)))
2760
+ }),
2761
+ onSuccess: rightChunk => {
2762
+ if (isEmpty(rightChunk)) {
2763
+ return pull(PullRight(state.leftChunk), pullLeft, pullRight);
2764
+ }
2765
+ if (isEmpty(state.leftChunk)) {
2766
+ return pull(PullLeft(rightChunk), pullLeft, pullRight);
2767
+ }
2768
+ return succeed$1(succeed$4(zip(state.leftChunk, rightChunk, options.onBoth)));
2769
+ }
2770
+ });
2771
+ }
2772
+ }
2773
+ };
2774
+ const zip = (leftChunk, rightChunk, f) => {
2775
+ const [output, either] = zipChunks(leftChunk, rightChunk, f);
2776
+ switch (either._tag) {
2777
+ case "Left":
2778
+ {
2779
+ if (isEmpty(either.left)) {
2780
+ return [output, PullBoth];
2781
+ }
2782
+ return [output, PullRight(either.left)];
2783
+ }
2784
+ case "Right":
2785
+ {
2786
+ if (isEmpty(either.right)) {
2787
+ return [output, PullBoth];
2788
+ }
2789
+ return [output, PullLeft(either.right)];
2790
+ }
2791
+ }
2792
+ };
2793
+ return combineChunks(self, options.other, PullBoth, pull);
2794
+ });
2795
+
2796
+ /** @internal */
2797
+ const zipLatest = /*#__PURE__*/dual(2, (self, that) => pipe(self, zipLatestWith(that, (a, a2) => [a, a2])));
2798
+
2799
+ /** @internal */
2800
+ const zipLatestWith = /*#__PURE__*/dual(3, (self, that, f) => {
2801
+ const pullNonEmpty = pull => pipe(pull, flatMap$2(chunk => isEmpty(chunk) ? pullNonEmpty(pull) : succeed$1(chunk)));
2802
+ return pipe(toPull(self), map$1(pullNonEmpty), zip$1(pipe(toPull(that), map$1(pullNonEmpty))), flatMap$2(([left, right]) => pipe(fromEffectOption(raceWith(left, right, {
2803
+ onSelfDone: (leftDone, rightFiber) => pipe(suspend$1(() => leftDone), zipWith$1(join(rightFiber), (l, r) => [l, r, true])),
2804
+ onOtherDone: (rightDone, leftFiber) => pipe(suspend$1(() => rightDone), zipWith$1(join(leftFiber), (l, r) => [r, l, false]))
2805
+ })), flatMap(([l, r, leftFirst]) => pipe(fromEffect(make$2([unsafeLast(l), unsafeLast(r)])), flatMap(latest => pipe(fromChunk(leftFirst ? pipe(r, map$2(a2 => f(unsafeLast(l), a2))) : pipe(l, map$2(a => f(a, unsafeLast(r))))), concat(pipe(repeatEffectOption(left), mergeEither(repeatEffectOption(right)), mapEffectSequential(match({
2806
+ onLeft: leftChunk => pipe(modify(latest, ([_, rightLatest]) => [pipe(leftChunk, map$2(a => f(a, rightLatest))), [unsafeLast(leftChunk), rightLatest]])),
2807
+ onRight: rightChunk => pipe(modify(latest, ([leftLatest, _]) => [pipe(rightChunk, map$2(a2 => f(leftLatest, a2))), [leftLatest, unsafeLast(rightChunk)]]))
2808
+ })), flatMap(fromChunk))))))), toPull)), fromPull);
2809
+ });
2810
+
2811
+ /** @internal */
2812
+ const zipLeft = /*#__PURE__*/dual(2, (self, that) => pipe(self, zipWithChunks(that, (left$1, right$1) => {
2813
+ if (left$1.length > right$1.length) {
2814
+ return [pipe(left$1, take$3(right$1.length)), left(pipe(left$1, take$3(right$1.length)))];
2815
+ }
2816
+ return [left$1, right(pipe(right$1, drop$1(left$1.length)))];
2817
+ })));
2818
+
2819
+ /** @internal */
2820
+ const zipRight = /*#__PURE__*/dual(2, (self, that) => pipe(self, zipWithChunks(that, (left$1, right$1) => {
2821
+ if (left$1.length > right$1.length) {
2822
+ return [right$1, left(pipe(left$1, take$3(right$1.length)))];
2823
+ }
2824
+ return [pipe(right$1, take$3(left$1.length)), right(pipe(right$1, drop$1(left$1.length)))];
2825
+ })));
2826
+
2827
+ /** @internal */
2828
+ const zipWith = /*#__PURE__*/dual(3, (self, that, f) => pipe(self, zipWithChunks(that, (leftChunk, rightChunk) => zipChunks(leftChunk, rightChunk, f))));
2829
+
2830
+ /** @internal */
2831
+ const zipWithChunks = /*#__PURE__*/dual(3, (self, that, f) => {
2832
+ const pull = (state, pullLeft, pullRight) => {
2833
+ switch (state._tag) {
2834
+ case OP_PULL_BOTH$1:
2835
+ {
2836
+ return pipe(unsome(pullLeft), zip$1(unsome(pullRight), {
2837
+ concurrent: true
2838
+ }), matchEffect({
2839
+ onFailure: error => succeed$1(fail$2(some$1(error))),
2840
+ onSuccess: ([leftOption, rightOption]) => {
2841
+ if (isSome(leftOption) && isSome(rightOption)) {
2842
+ if (isEmpty(leftOption.value) && isEmpty(rightOption.value)) {
2843
+ return pull(PullBoth$1, pullLeft, pullRight);
2844
+ }
2845
+ if (isEmpty(leftOption.value)) {
2846
+ return pull(PullLeft$1(rightOption.value), pullLeft, pullRight);
2847
+ }
2848
+ if (isEmpty(rightOption.value)) {
2849
+ return pull(PullRight$1(leftOption.value), pullLeft, pullRight);
2850
+ }
2851
+ return succeed$1(succeed$4(zip(leftOption.value, rightOption.value)));
2852
+ }
2853
+ return succeed$1(fail$2(none()));
2854
+ }
2855
+ }));
2856
+ }
2857
+ case OP_PULL_LEFT$1:
2858
+ {
2859
+ return matchEffect(pullLeft, {
2860
+ onFailure: error => succeed$1(fail$2(error)),
2861
+ onSuccess: leftChunk => {
2862
+ if (isEmpty(leftChunk)) {
2863
+ return pull(PullLeft$1(state.rightChunk), pullLeft, pullRight);
2864
+ }
2865
+ if (isEmpty(state.rightChunk)) {
2866
+ return pull(PullRight$1(leftChunk), pullLeft, pullRight);
2867
+ }
2868
+ return succeed$1(succeed$4(zip(leftChunk, state.rightChunk)));
2869
+ }
2870
+ });
2871
+ }
2872
+ case OP_PULL_RIGHT$1:
2873
+ {
2874
+ return matchEffect(pullRight, {
2875
+ onFailure: error => succeed$1(fail$2(error)),
2876
+ onSuccess: rightChunk => {
2877
+ if (isEmpty(rightChunk)) {
2878
+ return pull(PullRight$1(state.leftChunk), pullLeft, pullRight);
2879
+ }
2880
+ if (isEmpty(state.leftChunk)) {
2881
+ return pull(PullLeft$1(rightChunk), pullLeft, pullRight);
2882
+ }
2883
+ return succeed$1(succeed$4(zip(state.leftChunk, rightChunk)));
2884
+ }
2885
+ });
2886
+ }
2887
+ }
2888
+ };
2889
+ const zip = (leftChunk, rightChunk) => {
2890
+ const [output, either] = f(leftChunk, rightChunk);
2891
+ switch (either._tag) {
2892
+ case "Left":
2893
+ {
2894
+ if (isEmpty(either.left)) {
2895
+ return [output, PullBoth$1];
2896
+ }
2897
+ return [output, PullRight$1(either.left)];
2898
+ }
2899
+ case "Right":
2900
+ {
2901
+ if (isEmpty(either.right)) {
2902
+ return [output, PullBoth$1];
2903
+ }
2904
+ return [output, PullLeft$1(either.right)];
2905
+ }
2906
+ }
2907
+ };
2908
+ return pipe(self, combineChunks(that, PullBoth$1, pull));
2909
+ });
2910
+
2911
+ /** @internal */
2912
+ const zipWithIndex = self => pipe(self, mapAccum(0, (index, a) => [index + 1, [a, index]]));
2913
+
2914
+ /** @internal */
2915
+ const zipWithNext = self => {
2916
+ const process = last => readWithCause({
2917
+ onInput: input => {
2918
+ const [newLast, chunk] = mapAccum$1(input, last, (prev, curr) => [some$1(curr), pipe(prev, map$4(a => [a, curr]))]);
2919
+ const output = filterMap$1(chunk, option => isSome(option) ? some$1([option.value[0], some$1(option.value[1])]) : none());
2920
+ return flatMap$1(write(output), () => process(newLast));
2921
+ },
2922
+ onFailure: failCause$1,
2923
+ onDone: () => match$2(last, {
2924
+ onNone: () => unit$1,
2925
+ onSome: value => zipRight$2(write(of([value, none()])), unit$1)
2926
+ })
2927
+ });
2928
+ return new StreamImpl(pipe(toChannel(self), pipeToOrFail(process(none()))));
2929
+ };
2930
+
2931
+ /** @internal */
2932
+ const zipWithPrevious = self => pipe(self, mapAccum(none(), (prev, curr) => [some$1(curr), [prev, curr]]));
2933
+
2934
+ /** @internal */
2935
+ const zipWithPreviousAndNext = self => pipe(zipWithNext(zipWithPrevious(self)), map(([[prev, curr], next]) => [prev, curr, pipe(next, map$4(tuple => tuple[1]))]));
2936
+
2937
+ /** @internal */
2938
+ const zipChunks = (left$1, right$1, f) => {
2939
+ if (left$1.length > right$1.length) {
2940
+ return [pipe(left$1, take$3(right$1.length), zipWith$2(right$1, f)), left(pipe(left$1, drop$1(right$1.length)))];
2941
+ }
2942
+ return [pipe(left$1, zipWith$2(pipe(right$1, take$3(left$1.length)), f)), right(pipe(right$1, drop$1(left$1.length)))];
2943
+ };
2944
+
2945
+ // Do notation
2946
+
2947
+ /** @internal */
2948
+ const Do = /*#__PURE__*/succeed({});
2949
+
2950
+ /** @internal */
2951
+ const bind = /*#__PURE__*/dual(args => typeof args[0] !== "string", (self, tag, f, options) => flatMap(self, k => map(f(k), a => ({
2952
+ ...k,
2953
+ [tag]: a
2954
+ })), options));
2955
+
2956
+ /* @internal */
2957
+ const bindTo = /*#__PURE__*/dual(2, (self, tag) => map(self, a => ({
2958
+ [tag]: a
2959
+ })));
2960
+
2961
+ /* @internal */
2962
+ const let_ = /*#__PURE__*/dual(3, (self, tag, f) => map(self, k => ({
2963
+ ...k,
2964
+ [tag]: f(k)
2965
+ })));
2966
+
2967
+ // Circular with Channel
2968
+
2969
+ /** @internal */
2970
+ const channelToStream = self => {
2971
+ return new StreamImpl(self);
2972
+ };
2973
+
2974
+ // =============================================================================
2975
+ // encoding
2976
+ // =============================================================================
2977
+
2978
+ /** @internal */
2979
+ const decodeText = /*#__PURE__*/dual(args => isStream(args[0]), (self, encoding = "utf-8") => suspend(() => {
2980
+ const decoder = new TextDecoder(encoding);
2981
+ return map(self, s => decoder.decode(s));
2982
+ }));
2983
+
2984
+ /** @internal */
2985
+ const encodeText = self => suspend(() => {
2986
+ const encoder = new TextEncoder();
2987
+ return map(self, s => encoder.encode(s));
2988
+ });
2989
+
2990
+ export { DefaultChunkSize, Do, StreamImpl, StreamTypeId, _async, acquireRelease, aggregate, aggregateWithin, aggregateWithinEither, as, asyncEffect, asyncInterrupt, asyncOption, asyncScoped, bind, bindTo, branchAfter, broadcast, broadcastDynamic, broadcastedQueues, broadcastedQueuesDynamic, buffer, bufferChunks, catchAll, catchAllCause, catchSome, catchSomeCause, catchTag, catchTags, changes, changesWith, changesWithEffect, channelToStream, chunks, chunksWith, combine, combineChunks, concat, concatAll, context, contextWith, contextWithEffect, contextWithStream, cross, crossLeft, crossRight, crossWith, debounce, decodeText, die, dieMessage, dieSync, distributedWith, distributedWithDynamic, distributedWithDynamicCallback, drain, drainFork, drop, dropRight, dropUntil, dropUntilEffect, dropWhile, dropWhileEffect, either, empty, encodeText, ensuring, ensuringWith, execute, fail, failCause, failCauseSync, failSync, filter, filterEffect, filterMap, filterMapEffect, filterMapWhile, filterMapWhileEffect, finalizer, find, findEffect, flatMap, flatten, flattenChunks, flattenEffect, flattenExitOption, flattenIterables, flattenTake, forever, fromAsyncIterable, fromChannel, fromChunk, fromChunkPubSub, fromChunkQueue, fromChunks, fromEffect, fromEffectOption, fromIterable, fromIterableEffect, fromIteratorSucceed, fromPubSub, fromPull, fromQueue, fromReadableStream, fromReadableStreamByob, fromSchedule, groupAdjacentBy, grouped, groupedWithin, haltAfter, haltWhen, haltWhenDeferred, identityStream, interleave, interleaveWith, interruptAfter, interruptWhen, interruptWhenDeferred, intersperse, intersperseAffixes, isStream, iterate, let_, make, map, mapAccum, mapAccumEffect, mapBoth, mapChunks, mapChunksEffect, mapConcat, mapConcatChunk, mapConcatChunkEffect, mapConcatEffect, mapEffectPar, mapEffectSequential, mapError, mapErrorCause, mapInputContext, matchConcurrency, merge, mergeAll, mergeEither, mergeLeft, mergeRight, mergeWith, mkString, never, onDone, onError, orDie, orDieWith, orElse, orElseEither, orElseFail, orElseIfEmpty, orElseIfEmptyChunk, orElseIfEmptyStream, orElseSucceed, paginate, paginateChunk, paginateChunkEffect, paginateEffect, partition, partitionEither, peel, pipeThrough, pipeThroughChannel, pipeThroughChannelOrFail, prepend, provideContext, provideLayer, provideService, provideServiceEffect, provideServiceStream, provideSomeLayer, range, rechunk, refineOrDie, refineOrDieWith, repeat, repeatEffect, repeatEffectChunk, repeatEffectChunkOption, repeatEffectOption, repeatEffectWithSchedule, repeatEither, repeatElements, repeatElementsWith, repeatValue, repeatWith, repeatWithSchedule, retry, run, runCollect, runCount, runDrain, runFold, runFoldEffect, runFoldScoped, runFoldScopedEffect, runFoldWhile, runFoldWhileEffect, runFoldWhileScoped, runFoldWhileScopedEffect, runForEach, runForEachChunk, runForEachChunkScoped, runForEachScoped, runForEachWhile, runForEachWhileScoped, runHead, runIntoPubSub, runIntoPubSubScoped, runIntoQueue, runIntoQueueElementsScoped, runIntoQueueScoped, runLast, runScoped, runSum, scan, scanEffect, scanReduce, scanReduceEffect, schedule, scheduleWith, scoped, sliding, slidingSize, some, someOrElse, someOrFail, split, splitLines, splitOnChunk, succeed, suspend, sync, take, takeRight, takeUntil, takeUntilEffect, takeWhile, tap, tapBoth, tapError, tapErrorCause, tapSink, throttle, throttleEffect, tick, timeout, timeoutFail, timeoutFailCause, timeoutTo, toChannel, toPubSub, toPull, toQueue, toQueueOfElements, toReadableStream, transduce, unfold, unfoldChunk, unfoldChunkEffect, unfoldEffect, unit, unwrap, unwrapScoped, updateService, when, whenCase, whenCaseEffect, whenEffect, withSpan, zip, zipAll, zipAllLeft, zipAllRight, zipAllSortedByKey, zipAllSortedByKeyLeft, zipAllSortedByKeyRight, zipAllSortedByKeyWith, zipAllWith, zipFlatten, zipLatest, zipLatestWith, zipLeft, zipRight, zipWith, zipWithChunks, zipWithIndex, zipWithNext, zipWithPrevious, zipWithPreviousAndNext };