@lmvz-ds/components 0.16.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/dist/cjs/{icons-BOM23oli.js → Effect-DdYOHaR4.js} +153 -889
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -3
  3. package/dist/cjs/aria-loader-BRxRUIyi.js +121 -0
  4. package/dist/cjs/{assets-XY-cBmal.js → assets-OvQ-WUwR.js} +2 -5
  5. package/dist/cjs/component-Csg9MtNK.js +140 -0
  6. package/dist/cjs/element-activation-controller-DC_6T0Rt.js +31 -0
  7. package/dist/cjs/icons-EHBLbidD.js +653 -0
  8. package/dist/cjs/{index-ww_DCXU7.js → index-BBqtydE-.js} +426 -431
  9. package/dist/cjs/index-Bp6Dd2i1.js +94 -0
  10. package/dist/cjs/{index-B1Puzu82.js → index-CH-YLRgg.js} +650 -10
  11. package/dist/cjs/index.cjs.js +12 -13
  12. package/dist/cjs/lmvz-action.cjs.entry.js +2 -5
  13. package/dist/cjs/lmvz-button.cjs.entry.js +73 -0
  14. package/dist/cjs/lmvz-card.cjs.entry.js +3 -6
  15. package/dist/cjs/lmvz-chip.cjs.entry.js +2 -5
  16. package/dist/cjs/lmvz-components.cjs.js +2 -5
  17. package/dist/cjs/lmvz-header_2.cjs.entry.js +153 -0
  18. package/dist/cjs/lmvz-icon.cjs.entry.js +87 -0
  19. package/dist/cjs/lmvz-input.cjs.entry.js +183 -0
  20. package/dist/cjs/lmvz-menuitem.cjs.entry.js +36 -0
  21. package/dist/cjs/lmvz-select.cjs.entry.js +71 -0
  22. package/dist/cjs/loader.cjs.js +2 -5
  23. package/dist/cjs/reactive-controller-host-vy1TIIXv.js +189 -0
  24. package/dist/collection/api/ds.constants.js +0 -1
  25. package/dist/collection/api/index.js +0 -1
  26. package/dist/collection/collection-manifest.json +13 -1
  27. package/dist/collection/components/lmvz-action/lmvz-action.js +1 -2
  28. package/dist/collection/components/lmvz-button/lmvz-button.css +2 -24
  29. package/dist/collection/components/lmvz-button/lmvz-button.js +1 -2
  30. package/dist/collection/components/lmvz-card/lmvz-card.css +2 -24
  31. package/dist/collection/components/lmvz-card/lmvz-card.js +1 -2
  32. package/dist/collection/components/lmvz-chip/lmvz-chip.js +1 -2
  33. package/dist/collection/components/lmvz-header/lmvz-header.js +1 -2
  34. package/dist/collection/components/lmvz-icon/icons.js +0 -1
  35. package/dist/collection/components/lmvz-icon/lmvz-icon.js +1 -2
  36. package/dist/collection/components/lmvz-icon/public.js +0 -1
  37. package/dist/collection/components/lmvz-icon/test/icons.unit.js +0 -1
  38. package/dist/collection/components/lmvz-input/lmvz-input.css +2 -24
  39. package/dist/collection/components/lmvz-input/lmvz-input.js +2 -3
  40. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.css +2 -24
  41. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +1 -2
  42. package/dist/collection/components/lmvz-select/lmvz-select.css +2 -24
  43. package/dist/collection/components/lmvz-select/lmvz-select.js +1 -2
  44. package/dist/collection/index.js +0 -1
  45. package/dist/collection/integration/header-integration.js +1 -2
  46. package/dist/collection/utils/aria/aria-validation-controller.js +0 -1
  47. package/dist/collection/utils/aria/element-activation-controller.js +0 -1
  48. package/dist/collection/utils/aria/list-keyboard-controller.js +0 -1
  49. package/dist/collection/utils/assets.js +0 -1
  50. package/dist/collection/utils/component.js +0 -1
  51. package/dist/collection/utils/effect.js +0 -1
  52. package/dist/collection/utils/environment.js +0 -1
  53. package/dist/collection/utils/http.js +0 -1
  54. package/dist/collection/utils/http.unit.js +0 -1
  55. package/dist/collection/utils/public.js +0 -1
  56. package/dist/collection/utils/reactive-controller-host.js +0 -1
  57. package/dist/collection/utils/validation/svg.js +0 -1
  58. package/dist/components/index.d.ts +0 -2
  59. package/dist/components/index.js +1 -2
  60. package/dist/components/lmvz-action.js +1 -2
  61. package/dist/components/lmvz-button.js +1 -2
  62. package/dist/components/lmvz-card.js +1 -2
  63. package/dist/components/lmvz-chip.js +1 -2
  64. package/dist/components/lmvz-header.js +1 -2
  65. package/dist/components/lmvz-icon.js +1 -2
  66. package/dist/components/lmvz-input.js +1 -2
  67. package/dist/components/lmvz-menuitem.js +1 -2
  68. package/dist/components/lmvz-select.js +1 -2
  69. package/dist/components/p-BfTCfPZ1.js +2 -3
  70. package/dist/components/p-BsHYIl56.js +1 -2
  71. package/dist/components/p-CKtksB0G.js +1 -0
  72. package/dist/components/p-CN0JX9-m.js +1 -2
  73. package/dist/components/p-CahBdGGN.js +1 -0
  74. package/dist/components/p-DQEkWkMh.js +1 -2
  75. package/dist/components/p-GKEnURpp.js +1 -0
  76. package/dist/components/p-vIq2biqy.js +2 -3
  77. package/dist/esm/{icons-D1lxdRXP.js → Effect-9SROYpxM.js} +91 -854
  78. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  79. package/dist/esm/aria-loader-JxXwTAe5.js +114 -0
  80. package/dist/esm/{assets-BD98wsl7.js → assets-CNHv_WMG.js} +1 -4
  81. package/dist/esm/component-DIrAQ4IB.js +134 -0
  82. package/dist/esm/element-activation-controller-CN0JX9-m.js +29 -0
  83. package/dist/esm/icons-B255FOe4.js +649 -0
  84. package/dist/esm/{index-DoNkkDv1.js → index-BW1YMEA3.js} +1 -6
  85. package/dist/esm/index-BfTCfPZ1.js +92 -0
  86. package/dist/esm/{index-WeqgWisK.js → index-CQb-mBBB.js} +650 -10
  87. package/dist/esm/index.js +5 -7
  88. package/dist/esm/lmvz-action.entry.js +2 -5
  89. package/dist/esm/lmvz-button.entry.js +71 -0
  90. package/dist/esm/lmvz-card.entry.js +3 -6
  91. package/dist/esm/lmvz-chip.entry.js +2 -5
  92. package/dist/esm/lmvz-components.js +3 -6
  93. package/dist/esm/lmvz-header_2.entry.js +150 -0
  94. package/dist/esm/lmvz-icon.entry.js +85 -0
  95. package/dist/esm/lmvz-input.entry.js +181 -0
  96. package/dist/esm/lmvz-menuitem.entry.js +34 -0
  97. package/dist/esm/lmvz-select.entry.js +69 -0
  98. package/dist/esm/loader.js +3 -6
  99. package/dist/esm/reactive-controller-host-OhKYwMvP.js +186 -0
  100. package/dist/lmvz-components/index.esm.js +1 -2
  101. package/dist/lmvz-components/lmvz-components.esm.js +1 -2
  102. package/dist/lmvz-components/p-150ecfb6.entry.js +1 -0
  103. package/dist/lmvz-components/p-22f67eff.entry.js +1 -0
  104. package/dist/lmvz-components/p-4530f088.entry.js +1 -0
  105. package/dist/lmvz-components/p-47d7ed0e.entry.js +1 -0
  106. package/dist/lmvz-components/p-5c3f1404.entry.js +1 -0
  107. package/dist/lmvz-components/p-8d51e396.entry.js +1 -0
  108. package/dist/lmvz-components/p-9SROYpxM.js +1 -0
  109. package/dist/lmvz-components/p-BfTCfPZ1.js +6 -0
  110. package/dist/lmvz-components/p-Bx29-tJt.js +1 -0
  111. package/dist/lmvz-components/p-CN0JX9-m.js +1 -0
  112. package/dist/lmvz-components/p-CQb-mBBB.js +2 -0
  113. package/dist/lmvz-components/p-Cp76bcGb.js +1 -0
  114. package/dist/lmvz-components/p-Cp7cp10e.js +12 -0
  115. package/dist/lmvz-components/p-DIrAQ4IB.js +1 -0
  116. package/dist/lmvz-components/p-DQuL1Twl.js +1 -2
  117. package/dist/lmvz-components/p-DyO6wO4l.js +1 -0
  118. package/dist/lmvz-components/p-b8926640.entry.js +1 -0
  119. package/dist/lmvz-components/p-b9d1953f.entry.js +1 -0
  120. package/dist/lmvz-components/p-d9c3f542.entry.js +1 -0
  121. package/dist/lmvz-components/p-i2508Ct1.js +1 -0
  122. package/dist/manifest.json +11 -47
  123. package/dist/stencil.config.base.js +0 -1
  124. package/dist/stencil.config.dev.js +0 -1
  125. package/dist/stencil.config.integration.js +0 -1
  126. package/dist/stencil.config.js +0 -1
  127. package/dist/stencil.config.prod.js +0 -1
  128. package/dist/types/components.d.ts +0 -18
  129. package/hydrate/index.js +11 -11
  130. package/hydrate/index.mjs +11 -11
  131. package/package.json +4 -4
  132. package/readme.md +1 -1
  133. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  134. package/dist/cjs/assets-XY-cBmal.js.map +0 -1
  135. package/dist/cjs/header-integration_7.cjs.entry.js +0 -1024
  136. package/dist/cjs/header-integration_7.cjs.entry.js.map +0 -1
  137. package/dist/cjs/icons-BOM23oli.js.map +0 -1
  138. package/dist/cjs/index-B1Puzu82.js.map +0 -1
  139. package/dist/cjs/index-ww_DCXU7.js.map +0 -1
  140. package/dist/cjs/index.cjs.js.map +0 -1
  141. package/dist/cjs/lmvz-action.cjs.entry.js.map +0 -1
  142. package/dist/cjs/lmvz-card.cjs.entry.js.map +0 -1
  143. package/dist/cjs/lmvz-chip.cjs.entry.js.map +0 -1
  144. package/dist/cjs/lmvz-components.cjs.js.map +0 -1
  145. package/dist/cjs/loader.cjs.js.map +0 -1
  146. package/dist/collection/api/ds.constants.js.map +0 -1
  147. package/dist/collection/api/index.js.map +0 -1
  148. package/dist/collection/components/lmvz-action/lmvz-action.js.map +0 -1
  149. package/dist/collection/components/lmvz-button/lmvz-button.js.map +0 -1
  150. package/dist/collection/components/lmvz-card/lmvz-card.js.map +0 -1
  151. package/dist/collection/components/lmvz-chip/lmvz-chip.js.map +0 -1
  152. package/dist/collection/components/lmvz-header/lmvz-header.js.map +0 -1
  153. package/dist/collection/components/lmvz-icon/icons.js.map +0 -1
  154. package/dist/collection/components/lmvz-icon/lmvz-icon.js.map +0 -1
  155. package/dist/collection/components/lmvz-icon/public.js.map +0 -1
  156. package/dist/collection/components/lmvz-icon/test/icons.unit.js.map +0 -1
  157. package/dist/collection/components/lmvz-input/lmvz-input.js.map +0 -1
  158. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js.map +0 -1
  159. package/dist/collection/components/lmvz-select/lmvz-select.js.map +0 -1
  160. package/dist/collection/index.js.map +0 -1
  161. package/dist/collection/integration/header-integration.js.map +0 -1
  162. package/dist/collection/utils/aria/aria-validation-controller.js.map +0 -1
  163. package/dist/collection/utils/aria/element-activation-controller.js.map +0 -1
  164. package/dist/collection/utils/aria/list-keyboard-controller.js.map +0 -1
  165. package/dist/collection/utils/assets.js.map +0 -1
  166. package/dist/collection/utils/component.js.map +0 -1
  167. package/dist/collection/utils/effect.js.map +0 -1
  168. package/dist/collection/utils/environment.js.map +0 -1
  169. package/dist/collection/utils/http.js.map +0 -1
  170. package/dist/collection/utils/http.unit.js.map +0 -1
  171. package/dist/collection/utils/public.js.map +0 -1
  172. package/dist/collection/utils/reactive-controller-host.js.map +0 -1
  173. package/dist/collection/utils/validation/svg.js.map +0 -1
  174. package/dist/components/header-integration.d.ts +0 -11
  175. package/dist/components/header-integration.js +0 -2
  176. package/dist/components/header-integration.js.map +0 -1
  177. package/dist/components/index.js.map +0 -1
  178. package/dist/components/lmvz-action.js.map +0 -1
  179. package/dist/components/lmvz-button.js.map +0 -1
  180. package/dist/components/lmvz-card.js.map +0 -1
  181. package/dist/components/lmvz-chip.js.map +0 -1
  182. package/dist/components/lmvz-header.js.map +0 -1
  183. package/dist/components/lmvz-icon.js.map +0 -1
  184. package/dist/components/lmvz-input.js.map +0 -1
  185. package/dist/components/lmvz-menuitem.js.map +0 -1
  186. package/dist/components/lmvz-select.js.map +0 -1
  187. package/dist/components/p-B2g3aN-E.js +0 -2
  188. package/dist/components/p-B2g3aN-E.js.map +0 -1
  189. package/dist/components/p-BXdOuZTp.js +0 -2
  190. package/dist/components/p-BXdOuZTp.js.map +0 -1
  191. package/dist/components/p-BfTCfPZ1.js.map +0 -1
  192. package/dist/components/p-BpCjj39Z.js +0 -2
  193. package/dist/components/p-BpCjj39Z.js.map +0 -1
  194. package/dist/components/p-BsHYIl56.js.map +0 -1
  195. package/dist/components/p-C5rqq3bf.js +0 -2
  196. package/dist/components/p-C5rqq3bf.js.map +0 -1
  197. package/dist/components/p-CI0tffvo.js +0 -2
  198. package/dist/components/p-CI0tffvo.js.map +0 -1
  199. package/dist/components/p-CN0JX9-m.js.map +0 -1
  200. package/dist/components/p-ClmDNIy4.js +0 -2
  201. package/dist/components/p-ClmDNIy4.js.map +0 -1
  202. package/dist/components/p-DQEkWkMh.js.map +0 -1
  203. package/dist/components/p-X5fEFT9T.js +0 -2
  204. package/dist/components/p-X5fEFT9T.js.map +0 -1
  205. package/dist/components/p-vIq2biqy.js.map +0 -1
  206. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  207. package/dist/esm/assets-BD98wsl7.js.map +0 -1
  208. package/dist/esm/header-integration_7.entry.js +0 -1016
  209. package/dist/esm/header-integration_7.entry.js.map +0 -1
  210. package/dist/esm/icons-D1lxdRXP.js.map +0 -1
  211. package/dist/esm/index-DoNkkDv1.js.map +0 -1
  212. package/dist/esm/index-WeqgWisK.js.map +0 -1
  213. package/dist/esm/index.js.map +0 -1
  214. package/dist/esm/lmvz-action.entry.js.map +0 -1
  215. package/dist/esm/lmvz-card.entry.js.map +0 -1
  216. package/dist/esm/lmvz-chip.entry.js.map +0 -1
  217. package/dist/esm/lmvz-components.js.map +0 -1
  218. package/dist/esm/loader.js.map +0 -1
  219. package/dist/lmvz-components/index.esm.js.map +0 -1
  220. package/dist/lmvz-components/lmvz-components.esm.js.map +0 -1
  221. package/dist/lmvz-components/p-33485219.entry.js +0 -2
  222. package/dist/lmvz-components/p-33485219.entry.js.map +0 -1
  223. package/dist/lmvz-components/p-76032c32.entry.js +0 -2
  224. package/dist/lmvz-components/p-76032c32.entry.js.map +0 -1
  225. package/dist/lmvz-components/p-7aeec9a8.entry.js +0 -7
  226. package/dist/lmvz-components/p-7aeec9a8.entry.js.map +0 -1
  227. package/dist/lmvz-components/p-84e0a9dd.entry.js +0 -2
  228. package/dist/lmvz-components/p-84e0a9dd.entry.js.map +0 -1
  229. package/dist/lmvz-components/p-CkJb8WVZ.js +0 -2
  230. package/dist/lmvz-components/p-CkJb8WVZ.js.map +0 -1
  231. package/dist/lmvz-components/p-DQuL1Twl.js.map +0 -1
  232. package/dist/lmvz-components/p-WeqgWisK.js +0 -3
  233. package/dist/lmvz-components/p-WeqgWisK.js.map +0 -1
  234. package/dist/lmvz-components/p-Z9X0_ik0.js +0 -2
  235. package/dist/lmvz-components/p-Z9X0_ik0.js.map +0 -1
  236. package/dist/lmvz-components/p-eP0oxQ44.js +0 -13
  237. package/dist/lmvz-components/p-eP0oxQ44.js.map +0 -1
  238. package/dist/stencil.config.base.js.map +0 -1
  239. package/dist/stencil.config.dev.js.map +0 -1
  240. package/dist/stencil.config.integration.js.map +0 -1
  241. package/dist/stencil.config.js.map +0 -1
  242. package/dist/stencil.config.prod.js.map +0 -1
  243. package/dist/types/integration/header-integration.d.ts +0 -5
  244. /package/dist/types/{Users/patrick.nemenz/workspace/lmvz/lmvz-ds → opt/atlassian/pipelines/agent/build}/packages/components/.stencil/stencil.config.base.d.ts +0 -0
  245. /package/dist/types/{Users/patrick.nemenz/workspace/lmvz/lmvz-ds → opt/atlassian/pipelines/agent/build}/packages/components/.stencil/stencil.config.d.ts +0 -0
  246. /package/dist/types/{Users/patrick.nemenz/workspace/lmvz/lmvz-ds → opt/atlassian/pipelines/agent/build}/packages/components/.stencil/stencil.config.dev.d.ts +0 -0
  247. /package/dist/types/{Users/patrick.nemenz/workspace/lmvz/lmvz-ds → opt/atlassian/pipelines/agent/build}/packages/components/.stencil/stencil.config.integration.d.ts +0 -0
  248. /package/dist/types/{Users/patrick.nemenz/workspace/lmvz/lmvz-ds → opt/atlassian/pipelines/agent/build}/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
@@ -1,120 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var assets = require('./assets-XY-cBmal.js');
4
-
5
- /**
6
- * Verify whether a value is a Promise by duck-testing for a 'then' function
7
- */
8
- function isPromise(value) {
9
- if (!value)
10
- return false;
11
- return typeof value === 'object' && typeof value.then === 'function';
12
- }
13
-
14
- /**
15
- * Resolve the result of a function that may be async or not, as a Promise.
16
- */
17
- function resolvePossiblyAsyncFunction(func, args = []) {
18
- const res = func(...args);
19
- if (isPromise(res)) {
20
- return res;
21
- }
22
- return Promise.resolve(res);
23
- }
24
-
25
- const GLOBAL_STATE_KEY = Symbol('__lmvzAriaValidationRuntimeState');
26
- const ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = 'lmvz:aria-validation-runtime-changed';
27
- function getRuntimeState() {
28
- const globalState = globalThis;
29
- if (!globalState[GLOBAL_STATE_KEY]) {
30
- globalState[GLOBAL_STATE_KEY] = {
31
- enabled: false,
32
- };
33
- }
34
- return globalState[GLOBAL_STATE_KEY];
35
- }
36
- function notifyRuntimeChange() {
37
- if (typeof window === 'undefined')
38
- return;
39
- window.dispatchEvent(new CustomEvent(ARIA_VALIDATION_RUNTIME_CHANGED_EVENT));
40
- }
41
- async function fetchRuntime() {
42
- const state = getRuntimeState();
43
- if (!state.enabled)
44
- return null;
45
- if (state.runtime)
46
- return state.runtime;
47
- if (!state.loadPromise) {
48
- state.loadPromise = Promise.resolve().then(function () { return require('./index-ww_DCXU7.js'); }).catch(() => null);
49
- }
50
- const runtime = await state.loadPromise;
51
- if (runtime) {
52
- state.runtime = runtime;
53
- }
54
- return runtime;
55
- }
56
- async function initializeValidation(...args) {
57
- const runtime = await fetchRuntime();
58
- const s = getRuntimeState();
59
- if (!s.enabled)
60
- return;
61
- if (!runtime) {
62
- console.warn('Failed to load aria validation runtime');
63
- return;
64
- }
65
- runtime.initializeValidationStream(...args);
66
- }
67
- const isAriaValidationEnabled = () => getRuntimeState().enabled;
68
- const useVerboseLogging = () => getRuntimeState().verboseLogging ?? false;
69
- const enableAriaValidation = (options = {}) => {
70
- const state = getRuntimeState();
71
- if (state.enabled)
72
- return;
73
- Object.assign(state, options);
74
- state.enabled = true;
75
- initializeValidation().then(() => {
76
- notifyRuntimeChange();
77
- });
78
- };
79
- const disableAriaValidation = () => {
80
- const state = getRuntimeState();
81
- if (!state.enabled)
82
- return;
83
- state.enabled = false;
84
- notifyRuntimeChange();
85
- };
86
- function queueValidation(...args) {
87
- const { enabled, runtime, loadPromise, lazyCondition } = getRuntimeState();
88
- if (!enabled)
89
- return;
90
- if (!lazyCondition)
91
- return q();
92
- resolvePossiblyAsyncFunction(lazyCondition).then((shouldEnqueue) => {
93
- if (!shouldEnqueue)
94
- return;
95
- q();
96
- });
97
- function q() {
98
- if (runtime)
99
- return runtime.enqueueValidation(...args);
100
- if (!loadPromise) {
101
- console.warn('neither runtime nor load promise found for aria validation. This should not happen, as enabling aria validation should have triggered the loading of the runtime.');
102
- return;
103
- }
104
- loadPromise
105
- .then((loadedRuntime) => {
106
- if (!loadedRuntime?.enqueueValidation) {
107
- console.error('Failed to load aria validation runtime');
108
- return;
109
- }
110
- loadedRuntime.enqueueValidation(...args);
111
- })
112
- .catch(() => {
113
- console.error('Failed to enqueue validation due to an error while loading the runtime');
114
- });
115
- }
116
- }
117
-
118
3
  /**
119
4
  * Tests if a value is a `function`.
120
5
  *
@@ -390,19 +275,19 @@ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
390
275
  * @category constructors
391
276
  * @since 2.0.0
392
277
  */
393
- const make$w = isEquivalent => (self, that) => self === that || isEquivalent(self, that);
278
+ const make$u = isEquivalent => (self, that) => self === that || isEquivalent(self, that);
394
279
  /**
395
280
  * @category mapping
396
281
  * @since 2.0.0
397
282
  */
398
- const mapInput$1 = /*#__PURE__*/dual(2, (self, f) => make$w((x, y) => self(f(x), f(y))));
283
+ const mapInput$1 = /*#__PURE__*/dual(2, (self, f) => make$u((x, y) => self(f(x), f(y))));
399
284
  /**
400
285
  * Creates a new `Equivalence` for an array of values based on a given `Equivalence` for the elements of the array.
401
286
  *
402
287
  * @category combinators
403
288
  * @since 2.0.0
404
289
  */
405
- const array$1 = item => make$w((self, that) => {
290
+ const array$1 = item => make$u((self, that) => {
406
291
  if (self.length !== that.length) {
407
292
  return false;
408
293
  }
@@ -1720,17 +1605,17 @@ const isNonEmptyArray$1 = self => self.length > 0;
1720
1605
  * @category constructors
1721
1606
  * @since 2.0.0
1722
1607
  */
1723
- const make$v = compare => (self, that) => self === that ? 0 : compare(self, that);
1608
+ const make$t = compare => (self, that) => self === that ? 0 : compare(self, that);
1724
1609
  /**
1725
1610
  * @category instances
1726
1611
  * @since 2.0.0
1727
1612
  */
1728
- const number = /*#__PURE__*/make$v((self, that) => self < that ? -1 : 1);
1613
+ const number = /*#__PURE__*/make$t((self, that) => self < that ? -1 : 1);
1729
1614
  /**
1730
1615
  * @category mapping
1731
1616
  * @since 2.0.0
1732
1617
  */
1733
- const mapInput = /*#__PURE__*/dual(2, (self, f) => make$v((b1, b2) => self(f(b1), f(b2))));
1618
+ const mapInput = /*#__PURE__*/dual(2, (self, f) => make$t((b1, b2) => self(f(b1), f(b2))));
1734
1619
  /**
1735
1620
  * Test whether one value is _strictly greater than_ another.
1736
1621
  *
@@ -2212,7 +2097,7 @@ const mergeWith = f => (o1, o2) => {
2212
2097
  * @category constructors
2213
2098
  * @since 2.0.0
2214
2099
  */
2215
- const make$u = (...elements) => elements;
2100
+ const make$s = (...elements) => elements;
2216
2101
 
2217
2102
  /**
2218
2103
  * This module provides utility functions for working with arrays in TypeScript.
@@ -2576,7 +2461,7 @@ const sort = /*#__PURE__*/dual(2, (self, O) => {
2576
2461
  * @category zipping
2577
2462
  * @since 2.0.0
2578
2463
  */
2579
- const zip$3 = /*#__PURE__*/dual(2, (self, that) => zipWith$2(self, that, make$u));
2464
+ const zip$3 = /*#__PURE__*/dual(2, (self, that) => zipWith$2(self, that, make$s));
2580
2465
  /**
2581
2466
  * Apply a function to pairs of elements at the same index in two `Iterable`s, collecting the results in a new `Array`. If one
2582
2467
  * input `Iterable` is short, excess elements of the longer `Iterable` are discarded.
@@ -3031,54 +2916,6 @@ const Order$1 = number;
3031
2916
  */
3032
2917
  const escape = string => string.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
3033
2918
 
3034
- /**
3035
- * This module provides types and utility functions to create and work with branded types,
3036
- * which are TypeScript types with an added type tag to prevent accidental usage of a value in the wrong context.
3037
- *
3038
- * The `refined` and `nominal` functions are both used to create branded types in TypeScript.
3039
- * The main difference between them is that `refined` allows for validation of the data, while `nominal` does not.
3040
- *
3041
- * The `nominal` function is used to create a new branded type that has the same underlying type as the input, but with a different name.
3042
- * This is useful when you want to distinguish between two values of the same type that have different meanings.
3043
- * The `nominal` function does not perform any validation of the input data.
3044
- *
3045
- * On the other hand, the `refined` function is used to create a new branded type that has the same underlying type as the input,
3046
- * but with a different name, and it also allows for validation of the input data.
3047
- * The `refined` function takes a predicate that is used to validate the input data.
3048
- * If the input data fails the validation, a `BrandErrors` is returned, which provides information about the specific validation failure.
3049
- *
3050
- * @since 2.0.0
3051
- */
3052
- /**
3053
- * @since 2.0.0
3054
- * @category symbols
3055
- */
3056
- const RefinedConstructorsTypeId = /*#__PURE__*/Symbol.for("effect/Brand/Refined");
3057
- /**
3058
- * Returns a `BrandErrors` that contains a single `RefinementError`.
3059
- *
3060
- * @since 2.0.0
3061
- * @category constructors
3062
- */
3063
- const error = (message, meta) => [{
3064
- message,
3065
- meta
3066
- }];
3067
- function refined(...args) {
3068
- const either = args.length === 2 ? unbranded => args[0](unbranded) ? right(unbranded) : left(args[1](unbranded)) : unbranded => {
3069
- return match$6(args[0](unbranded), {
3070
- onNone: () => right(unbranded),
3071
- onSome: left
3072
- });
3073
- };
3074
- return Object.assign(unbranded => getOrThrowWith(either(unbranded), identity), {
3075
- [RefinedConstructorsTypeId]: RefinedConstructorsTypeId,
3076
- option: args => getRight(either(args)),
3077
- either,
3078
- is: args => isRight(either(args))
3079
- });
3080
- }
3081
-
3082
2919
  /** @internal */
3083
2920
  const TagTypeId = /*#__PURE__*/Symbol.for("effect/Context/Tag");
3084
2921
  /** @internal */
@@ -3113,7 +2950,7 @@ const TagProto = {
3113
2950
  return self;
3114
2951
  },
3115
2952
  context(self) {
3116
- return make$t(this, self);
2953
+ return make$r(this, self);
3117
2954
  }
3118
2955
  };
3119
2956
  const ReferenceProto = {
@@ -3223,7 +3060,7 @@ const _empty$6 = /*#__PURE__*/makeContext(/*#__PURE__*/new Map());
3223
3060
  /** @internal */
3224
3061
  const empty$l = () => _empty$6;
3225
3062
  /** @internal */
3226
- const make$t = (tag, service) => makeContext(new Map([[tag.key, service]]));
3063
+ const make$r = (tag, service) => makeContext(new Map([[tag.key, service]]));
3227
3064
  /** @internal */
3228
3065
  const add$3 = /*#__PURE__*/dual(3, (self, tag, service) => {
3229
3066
  const map = new Map(self.unsafeMap);
@@ -3342,7 +3179,7 @@ const empty$k = empty$l;
3342
3179
  * @since 2.0.0
3343
3180
  * @category constructors
3344
3181
  */
3345
- const make$s = make$t;
3182
+ const make$q = make$r;
3346
3183
  /**
3347
3184
  * Adds a service to a given `Context`.
3348
3185
  *
@@ -3561,7 +3398,7 @@ const emptyArray = [];
3561
3398
  * @category equivalence
3562
3399
  * @since 2.0.0
3563
3400
  */
3564
- const getEquivalence$1 = isEquivalent => make$w((self, that) => self.length === that.length && toReadonlyArray(self).every((value, i) => isEquivalent(value, unsafeGet(that, i))));
3401
+ const getEquivalence$1 = isEquivalent => make$u((self, that) => self.length === that.length && toReadonlyArray(self).every((value, i) => isEquivalent(value, unsafeGet(that, i))));
3565
3402
  const _equivalence$1 = /*#__PURE__*/getEquivalence$1(equals$1);
3566
3403
  const ChunkProto = {
3567
3404
  [TypeId$a]: {
@@ -3673,7 +3510,7 @@ const empty$j = () => _empty$5;
3673
3510
  * @category constructors
3674
3511
  * @since 2.0.0
3675
3512
  */
3676
- const make$r = (...as) => unsafeFromNonEmptyArray(as);
3513
+ const make$p = (...as) => unsafeFromNonEmptyArray(as);
3677
3514
  /**
3678
3515
  * Builds a `NonEmptyChunk` from a single element.
3679
3516
  *
@@ -4282,7 +4119,7 @@ const DurationProto = {
4282
4119
  return pipeArguments(this, arguments);
4283
4120
  }
4284
4121
  };
4285
- const make$q = input => {
4122
+ const make$o = input => {
4286
4123
  const duration = Object.create(DurationProto);
4287
4124
  if (isNumber(input)) {
4288
4125
  if (isNaN(input) || input <= 0) {
@@ -4339,52 +4176,52 @@ const isZero = self => {
4339
4176
  * @since 2.0.0
4340
4177
  * @category constructors
4341
4178
  */
4342
- const zero = /*#__PURE__*/make$q(0);
4179
+ const zero = /*#__PURE__*/make$o(0);
4343
4180
  /**
4344
4181
  * @since 2.0.0
4345
4182
  * @category constructors
4346
4183
  */
4347
- const infinity = /*#__PURE__*/make$q(Infinity);
4184
+ const infinity = /*#__PURE__*/make$o(Infinity);
4348
4185
  /**
4349
4186
  * @since 2.0.0
4350
4187
  * @category constructors
4351
4188
  */
4352
- const nanos = nanos => make$q(nanos);
4189
+ const nanos = nanos => make$o(nanos);
4353
4190
  /**
4354
4191
  * @since 2.0.0
4355
4192
  * @category constructors
4356
4193
  */
4357
- const micros = micros => make$q(micros * bigint1e3);
4194
+ const micros = micros => make$o(micros * bigint1e3);
4358
4195
  /**
4359
4196
  * @since 2.0.0
4360
4197
  * @category constructors
4361
4198
  */
4362
- const millis = millis => make$q(millis);
4199
+ const millis = millis => make$o(millis);
4363
4200
  /**
4364
4201
  * @since 2.0.0
4365
4202
  * @category constructors
4366
4203
  */
4367
- const seconds = seconds => make$q(seconds * 1000);
4204
+ const seconds = seconds => make$o(seconds * 1000);
4368
4205
  /**
4369
4206
  * @since 2.0.0
4370
4207
  * @category constructors
4371
4208
  */
4372
- const minutes = minutes => make$q(minutes * 60_000);
4209
+ const minutes = minutes => make$o(minutes * 60_000);
4373
4210
  /**
4374
4211
  * @since 2.0.0
4375
4212
  * @category constructors
4376
4213
  */
4377
- const hours = hours => make$q(hours * 3_600_000);
4214
+ const hours = hours => make$o(hours * 3_600_000);
4378
4215
  /**
4379
4216
  * @since 2.0.0
4380
4217
  * @category constructors
4381
4218
  */
4382
- const days = days => make$q(days * 86_400_000);
4219
+ const days = days => make$o(days * 86_400_000);
4383
4220
  /**
4384
4221
  * @since 2.0.0
4385
4222
  * @category constructors
4386
4223
  */
4387
- const weeks = weeks => make$q(weeks * 604_800_000);
4224
+ const weeks = weeks => make$o(weeks * 604_800_000);
4388
4225
  /**
4389
4226
  * @since 2.0.0
4390
4227
  * @category getters
@@ -4603,7 +4440,7 @@ function fromBitmap(bitmap, bit) {
4603
4440
  return popcount(bitmap & bit - 1);
4604
4441
  }
4605
4442
 
4606
- const make$p = (value, previous) => ({
4443
+ const make$n = (value, previous) => ({
4607
4444
  value,
4608
4445
  previous
4609
4446
  });
@@ -4889,7 +4726,7 @@ function mergeLeaves(edit, shift, h1, n1, h2, n2) {
4889
4726
  while (true) {
4890
4727
  const res = mergeLeavesInner(edit, currentShift, h1, n1, h2, n2);
4891
4728
  if (typeof res === "function") {
4892
- stack = make$p(res, stack);
4729
+ stack = make$n(res, stack);
4893
4730
  currentShift = currentShift + SIZE;
4894
4731
  } else {
4895
4732
  let final = res;
@@ -5213,7 +5050,7 @@ const fromIterable$3 = elements => {
5213
5050
  return endMutation(set);
5214
5051
  };
5215
5052
  /** @internal */
5216
- const make$o = (...elements) => {
5053
+ const make$m = (...elements) => {
5217
5054
  const set = beginMutation(empty$h());
5218
5055
  for (const value of elements) {
5219
5056
  add$1(set, value);
@@ -5721,7 +5558,7 @@ const fromIterable$2 = fromIterable$3;
5721
5558
  *
5722
5559
  * @see Other `HashSet` constructors are {@link module:HashSet.fromIterable} {@link module:HashSet.empty}
5723
5560
  */
5724
- const make$n = make$o;
5561
+ const make$l = make$m;
5725
5562
  /**
5726
5563
  * Checks if the specified value exists in the `HashSet`.
5727
5564
  *
@@ -5950,7 +5787,7 @@ const MutableRefProto = {
5950
5787
  * @since 2.0.0
5951
5788
  * @category constructors
5952
5789
  */
5953
- const make$m = value => {
5790
+ const make$k = value => {
5954
5791
  const ref = Object.create(MutableRefProto);
5955
5792
  ref.current = value;
5956
5793
  return ref;
@@ -6106,7 +5943,7 @@ const ids = self => {
6106
5943
  }
6107
5944
  case OP_RUNTIME:
6108
5945
  {
6109
- return make$n(self.id);
5946
+ return make$l(self.id);
6110
5947
  }
6111
5948
  case OP_COMPOSITE:
6112
5949
  {
@@ -6114,7 +5951,7 @@ const ids = self => {
6114
5951
  }
6115
5952
  }
6116
5953
  };
6117
- const _fiberCounter = /*#__PURE__*/globalValue(/*#__PURE__*/Symbol.for("effect/Fiber/Id/_fiberCounter"), () => make$m(0));
5954
+ const _fiberCounter = /*#__PURE__*/globalValue(/*#__PURE__*/Symbol.for("effect/Fiber/Id/_fiberCounter"), () => make$k(0));
6118
5955
  /** @internal */
6119
5956
  const threadName$1 = self => {
6120
5957
  const identifiers = Array.from(ids(self)).map(n => `#${n}`).join(",");
@@ -6905,7 +6742,7 @@ const DifferProto = {
6905
6742
  }
6906
6743
  };
6907
6744
  /** @internal */
6908
- const make$l = params => {
6745
+ const make$j = params => {
6909
6746
  const differ = Object.create(DifferProto);
6910
6747
  differ.empty = params.empty;
6911
6748
  differ.diff = params.diff;
@@ -6914,21 +6751,21 @@ const make$l = params => {
6914
6751
  return differ;
6915
6752
  };
6916
6753
  /** @internal */
6917
- const environment = () => make$l({
6754
+ const environment = () => make$j({
6918
6755
  empty: empty$d(),
6919
6756
  combine: (first, second) => combine$4(second)(first),
6920
6757
  diff: (oldValue, newValue) => diff$6(oldValue, newValue),
6921
6758
  patch: (patch, oldValue) => patch$7(oldValue)(patch)
6922
6759
  });
6923
6760
  /** @internal */
6924
- const hashSet = () => make$l({
6761
+ const hashSet = () => make$j({
6925
6762
  empty: empty$c(),
6926
6763
  combine: (first, second) => combine$3(second)(first),
6927
6764
  diff: (oldValue, newValue) => diff$5(oldValue, newValue),
6928
6765
  patch: (patch, oldValue) => patch$6(oldValue)(patch)
6929
6766
  });
6930
6767
  /** @internal */
6931
- const readonlyArray = differ => make$l({
6768
+ const readonlyArray = differ => make$j({
6932
6769
  empty: empty$b(),
6933
6770
  combine: (first, second) => combine$2(first, second),
6934
6771
  diff: (oldValue, newValue) => diff$4({
@@ -6941,7 +6778,7 @@ const readonlyArray = differ => make$l({
6941
6778
  /** @internal */
6942
6779
  const update$2 = () => updateWith((_, a) => a);
6943
6780
  /** @internal */
6944
- const updateWith = f => make$l({
6781
+ const updateWith = f => make$j({
6945
6782
  empty: identity,
6946
6783
  combine: (first, second) => {
6947
6784
  if (first === identity) {
@@ -6970,15 +6807,15 @@ const active = patch => patch & BIT_MASK;
6970
6807
  /** @internal */
6971
6808
  const enabled = patch => patch >> BIT_SHIFT & BIT_MASK;
6972
6809
  /** @internal */
6973
- const make$k = (active, enabled) => (active & BIT_MASK) + ((enabled & active & BIT_MASK) << BIT_SHIFT);
6810
+ const make$i = (active, enabled) => (active & BIT_MASK) + ((enabled & active & BIT_MASK) << BIT_SHIFT);
6974
6811
  /** @internal */
6975
- const empty$a = /*#__PURE__*/make$k(0, 0);
6812
+ const empty$a = /*#__PURE__*/make$i(0, 0);
6976
6813
  /** @internal */
6977
- const enable$2 = flag => make$k(flag, flag);
6814
+ const enable$2 = flag => make$i(flag, flag);
6978
6815
  /** @internal */
6979
- const disable$1 = flag => make$k(flag, 0);
6816
+ const disable$1 = flag => make$i(flag, 0);
6980
6817
  /** @internal */
6981
- const exclude$1 = /*#__PURE__*/dual(2, (self, flag) => make$k(active(self) & ~flag, enabled(self)));
6818
+ const exclude$1 = /*#__PURE__*/dual(2, (self, flag) => make$i(active(self) & ~flag, enabled(self)));
6982
6819
  /** @internal */
6983
6820
  const andThen = /*#__PURE__*/dual(2, (self, that) => self | that);
6984
6821
  /** @internal */
@@ -7007,18 +6844,18 @@ const interruption = self => isEnabled(self, Interruption);
7007
6844
  /** @internal */
7008
6845
  const isEnabled = /*#__PURE__*/dual(2, (self, flag) => (self & flag) !== 0);
7009
6846
  /** @internal */
7010
- const make$j = (...flags) => flags.reduce((a, b) => a | b, 0);
6847
+ const make$h = (...flags) => flags.reduce((a, b) => a | b, 0);
7011
6848
  /** @internal */
7012
- const none$1 = /*#__PURE__*/make$j(None$1);
6849
+ const none$1 = /*#__PURE__*/make$h(None$1);
7013
6850
  /** @internal */
7014
6851
  const runtimeMetrics = self => isEnabled(self, RuntimeMetrics);
7015
6852
  const windDown = self => isEnabled(self, WindDown);
7016
6853
  /** @internal */
7017
- const diff$3 = /*#__PURE__*/dual(2, (self, that) => make$k(self ^ that, that));
6854
+ const diff$3 = /*#__PURE__*/dual(2, (self, that) => make$i(self ^ that, that));
7018
6855
  /** @internal */
7019
6856
  const patch$4 = /*#__PURE__*/dual(2, (self, patch) => self & (invert(active(patch)) | enabled(patch)) | active(patch) & enabled(patch));
7020
6857
  /** @internal */
7021
- const differ$1 = /*#__PURE__*/make$l({
6858
+ const differ$1 = /*#__PURE__*/make$j({
7022
6859
  empty: empty$a,
7023
6860
  diff: (oldValue, newValue) => diff$3(oldValue, newValue),
7024
6861
  combine: (first, second) => andThen(second)(first),
@@ -7585,7 +7422,7 @@ const evaluateCause = self => {
7585
7422
  }
7586
7423
  case OP_FAIL$1:
7587
7424
  {
7588
- _parallel = add(_parallel, make$r(cause._tag, cause.error));
7425
+ _parallel = add(_parallel, make$p(cause._tag, cause.error));
7589
7426
  if (stack.length === 0) {
7590
7427
  return [_parallel, _sequential];
7591
7428
  }
@@ -7594,7 +7431,7 @@ const evaluateCause = self => {
7594
7431
  }
7595
7432
  case OP_DIE:
7596
7433
  {
7597
- _parallel = add(_parallel, make$r(cause._tag, cause.defect));
7434
+ _parallel = add(_parallel, make$p(cause._tag, cause.defect));
7598
7435
  if (stack.length === 0) {
7599
7436
  return [_parallel, _sequential];
7600
7437
  }
@@ -7603,7 +7440,7 @@ const evaluateCause = self => {
7603
7440
  }
7604
7441
  case OP_INTERRUPT:
7605
7442
  {
7606
- _parallel = add(_parallel, make$r(cause._tag, cause.fiberId));
7443
+ _parallel = add(_parallel, make$p(cause._tag, cause.fiberId));
7607
7444
  if (stack.length === 0) {
7608
7445
  return [_parallel, _sequential];
7609
7446
  }
@@ -7962,7 +7799,7 @@ const deferredVariance = {
7962
7799
  _A: _ => _
7963
7800
  };
7964
7801
  /** @internal */
7965
- const pending$1 = joiners => {
7802
+ const pending = joiners => {
7966
7803
  return {
7967
7804
  _tag: OP_STATE_PENDING,
7968
7805
  joiners
@@ -9013,7 +8850,7 @@ const deferredUnsafeMake = fiberId => {
9013
8850
  const _deferred = {
9014
8851
  ...CommitPrototype,
9015
8852
  [DeferredTypeId]: deferredVariance,
9016
- state: make$m(pending$1([])),
8853
+ state: make$k(pending([])),
9017
8854
  commit() {
9018
8855
  return deferredAwait(this);
9019
8856
  },
@@ -9120,7 +8957,7 @@ const currentSpanFromFiber = fiber => {
9120
8957
  * @since 2.0.0
9121
8958
  * @category constructors
9122
8959
  */
9123
- const make$i = deferredMake;
8960
+ const make$g = deferredMake;
9124
8961
  const _await$1 = deferredAwait;
9125
8962
  /**
9126
8963
  * Exits the `Deferred` with the specified `Exit` value, which will be
@@ -9592,7 +9429,7 @@ const MutableQueueProto = {
9592
9429
  return pipeArguments(this, arguments);
9593
9430
  }
9594
9431
  };
9595
- const make$h = capacity => {
9432
+ const make$f = capacity => {
9596
9433
  const queue = Object.create(MutableQueueProto);
9597
9434
  queue.queue = empty$7();
9598
9435
  queue.capacity = capacity;
@@ -9604,14 +9441,14 @@ const make$h = capacity => {
9604
9441
  * @since 2.0.0
9605
9442
  * @category constructors
9606
9443
  */
9607
- const bounded = capacity => make$h(capacity);
9444
+ const bounded = capacity => make$f(capacity);
9608
9445
  /**
9609
9446
  * Creates a new unbounded `MutableQueue`.
9610
9447
  *
9611
9448
  * @since 2.0.0
9612
9449
  * @category constructors
9613
9450
  */
9614
- const unbounded = () => make$h(undefined);
9451
+ const unbounded = () => make$f(undefined);
9615
9452
  /**
9616
9453
  * Returns the current number of elements in the queue.
9617
9454
  *
@@ -9780,7 +9617,7 @@ class ClockImpl {
9780
9617
  }
9781
9618
  }
9782
9619
  /** @internal */
9783
- const make$g = () => new ClockImpl();
9620
+ const make$e = () => new ClockImpl();
9784
9621
 
9785
9622
  /** @internal */
9786
9623
  const OP_AND = "And";
@@ -10027,7 +9864,7 @@ const FlatConfigProviderSymbolKey = "effect/ConfigProviderFlat";
10027
9864
  /** @internal */
10028
9865
  const FlatConfigProviderTypeId = /*#__PURE__*/Symbol.for(FlatConfigProviderSymbolKey);
10029
9866
  /** @internal */
10030
- const make$f = options => ({
9867
+ const make$d = options => ({
10031
9868
  [ConfigProviderTypeId]: ConfigProviderTypeId,
10032
9869
  pipe() {
10033
9870
  return pipeArguments(this, arguments);
@@ -10042,7 +9879,7 @@ const makeFlat = options => ({
10042
9879
  enumerateChildren: options.enumerateChildren
10043
9880
  });
10044
9881
  /** @internal */
10045
- const fromFlat = flat => make$f({
9882
+ const fromFlat = flat => make$d({
10046
9883
  load: config => flatMap$2(fromFlatLoop(flat, empty$m(), config, false), chunk => match$6(head$1(chunk), {
10047
9884
  onNone: () => fail$3(MissingData(empty$m(), `Expected a single value having structure: ${config}`)),
10048
9885
  onSome: succeed$4
@@ -10377,7 +10214,7 @@ const swap = (buffer, index1, index2) => {
10377
10214
  buffer[index2] = tmp;
10378
10215
  return buffer;
10379
10216
  };
10380
- const make$e = seed => new RandomImpl(hash(seed));
10217
+ const make$c = seed => new RandomImpl(hash(seed));
10381
10218
 
10382
10219
  /**
10383
10220
  * @since 2.0.0
@@ -10385,7 +10222,7 @@ const make$e = seed => new RandomImpl(hash(seed));
10385
10222
  /** @internal */
10386
10223
  const TracerTypeId = /*#__PURE__*/Symbol.for("effect/Tracer");
10387
10224
  /** @internal */
10388
- const make$d = options => ({
10225
+ const make$b = options => ({
10389
10226
  [TracerTypeId]: TracerTypeId,
10390
10227
  ...options
10391
10228
  });
@@ -10454,7 +10291,7 @@ class NativeSpan {
10454
10291
  }
10455
10292
  }
10456
10293
  /** @internal */
10457
- const nativeTracer = /*#__PURE__*/make$d({
10294
+ const nativeTracer = /*#__PURE__*/make$b({
10458
10295
  span: (name, parent, context, links, startTime, kind) => new NativeSpan(name, parent, context, links, startTime, kind),
10459
10296
  context: f => f()
10460
10297
  });
@@ -10464,7 +10301,7 @@ const DisablePropagation = /*#__PURE__*/Reference()("effect/Tracer/DisablePropag
10464
10301
  });
10465
10302
 
10466
10303
  /** @internal */
10467
- const liveServices = /*#__PURE__*/pipe(/*#__PURE__*/empty$k(), /*#__PURE__*/add$2(clockTag, /*#__PURE__*/make$g()), /*#__PURE__*/add$2(consoleTag, defaultConsole), /*#__PURE__*/add$2(randomTag, /*#__PURE__*/make$e(/*#__PURE__*/Math.random())), /*#__PURE__*/add$2(configProviderTag, /*#__PURE__*/fromEnv()), /*#__PURE__*/add$2(tracerTag, nativeTracer));
10304
+ const liveServices = /*#__PURE__*/pipe(/*#__PURE__*/empty$k(), /*#__PURE__*/add$2(clockTag, /*#__PURE__*/make$e()), /*#__PURE__*/add$2(consoleTag, defaultConsole), /*#__PURE__*/add$2(randomTag, /*#__PURE__*/make$c(/*#__PURE__*/Math.random())), /*#__PURE__*/add$2(configProviderTag, /*#__PURE__*/fromEnv()), /*#__PURE__*/add$2(tracerTag, nativeTracer));
10468
10305
  /**
10469
10306
  * The `FiberRef` holding the default `Effect` services.
10470
10307
  *
@@ -10716,7 +10553,7 @@ const Fatal = logLevelFatal;
10716
10553
  * @since 2.0.0
10717
10554
  * @category constructors
10718
10555
  */
10719
- const Error$2 = logLevelError;
10556
+ const Error$1 = logLevelError;
10720
10557
  /**
10721
10558
  * @since 2.0.0
10722
10559
  * @category constructors
@@ -10763,7 +10600,7 @@ const fromLiteral = literal => {
10763
10600
  case "Debug":
10764
10601
  return Debug;
10765
10602
  case "Error":
10766
- return Error$2;
10603
+ return Error$1;
10767
10604
  case "Fatal":
10768
10605
  return Fatal;
10769
10606
  case "Info":
@@ -10840,9 +10677,9 @@ class RefImpl extends Class {
10840
10677
  }
10841
10678
  }
10842
10679
  /** @internal */
10843
- const unsafeMake$2 = value => new RefImpl(make$m(value));
10680
+ const unsafeMake$2 = value => new RefImpl(make$k(value));
10844
10681
  /** @internal */
10845
- const make$c = value => sync$1(() => unsafeMake$2(value));
10682
+ const make$a = value => sync$1(() => unsafeMake$2(value));
10846
10683
  /** @internal */
10847
10684
  const get = self => self.get;
10848
10685
  /** @internal */
@@ -10981,7 +10818,7 @@ class MetricLabelImpl {
10981
10818
  }
10982
10819
  }
10983
10820
  /** @internal */
10984
- const make$b = (key, value) => {
10821
+ const make$9 = (key, value) => {
10985
10822
  return new MetricLabelImpl(key, value);
10986
10823
  };
10987
10824
  /** @internal */
@@ -11054,7 +10891,7 @@ const logWithLevel = level => (...message) => {
11054
10891
  /** @internal */
11055
10892
  const logWarning$1 = /*#__PURE__*/logWithLevel(Warning);
11056
10893
  /** @internal */
11057
- const logError$1 = /*#__PURE__*/logWithLevel(Error$2);
10894
+ const logError$1 = /*#__PURE__*/logWithLevel(Error$1);
11058
10895
  /* @internal */
11059
10896
  const mapErrorCause = /*#__PURE__*/dual(2, (self, f) => matchCauseEffect$2(self, {
11060
10897
  onFailure: c => failCauseSync(() => f(c)),
@@ -12710,7 +12547,7 @@ const metricHookVariance = {
12710
12547
  _Out: _ => _
12711
12548
  };
12712
12549
  /** @internal */
12713
- const make$a = options => ({
12550
+ const make$8 = options => ({
12714
12551
  [MetricHookTypeId]: metricHookVariance,
12715
12552
  pipe() {
12716
12553
  return pipeArguments(this, arguments);
@@ -12727,7 +12564,7 @@ const counter$1 = key => {
12727
12564
  sum = sum + value;
12728
12565
  }
12729
12566
  };
12730
- return make$a({
12567
+ return make$8({
12731
12568
  get: () => counter$2(sum),
12732
12569
  update,
12733
12570
  modify: update
@@ -12743,7 +12580,7 @@ const frequency = key => {
12743
12580
  const slotCount = values.get(word) ?? 0;
12744
12581
  values.set(word, slotCount + 1);
12745
12582
  };
12746
- return make$a({
12583
+ return make$8({
12747
12584
  get: () => frequency$1(values),
12748
12585
  update,
12749
12586
  modify: update
@@ -12752,7 +12589,7 @@ const frequency = key => {
12752
12589
  /** @internal */
12753
12590
  const gauge = (_key, startAt) => {
12754
12591
  let value = startAt;
12755
- return make$a({
12592
+ return make$8({
12756
12593
  get: () => gauge$1(value),
12757
12594
  update: v => {
12758
12595
  value = v;
@@ -12822,7 +12659,7 @@ const histogram$1 = key => {
12822
12659
  }
12823
12660
  return builder;
12824
12661
  };
12825
- return make$a({
12662
+ return make$8({
12826
12663
  get: () => histogram$2({
12827
12664
  buckets: getBuckets(),
12828
12665
  count,
@@ -12889,7 +12726,7 @@ const summary = key => {
12889
12726
  count = count + 1;
12890
12727
  sum = sum + value;
12891
12728
  };
12892
- return make$a({
12729
+ return make$8({
12893
12730
  get: () => summary$1({
12894
12731
  error,
12895
12732
  quantiles: snapshot(Date.now()),
@@ -13156,7 +12993,7 @@ class MetricRegistryImpl {
13156
12993
  }
13157
12994
  }
13158
12995
  /** @internal */
13159
- const make$9 = () => {
12996
+ const make$7 = () => {
13160
12997
  return new MetricRegistryImpl();
13161
12998
  };
13162
12999
 
@@ -13173,9 +13010,9 @@ const metricVariance = {
13173
13010
  _Out: _ => _
13174
13011
  };
13175
13012
  /** @internal */
13176
- const globalMetricRegistry = /*#__PURE__*/globalValue(/*#__PURE__*/Symbol.for("effect/Metric/globalMetricRegistry"), () => make$9());
13013
+ const globalMetricRegistry = /*#__PURE__*/globalValue(/*#__PURE__*/Symbol.for("effect/Metric/globalMetricRegistry"), () => make$7());
13177
13014
  /** @internal */
13178
- const make$8 = function (keyType, unsafeUpdate, unsafeValue, unsafeModify) {
13015
+ const make$6 = function (keyType, unsafeUpdate, unsafeValue, unsafeModify) {
13179
13016
  const metric = Object.assign(effect => tap$1(effect, a => update(metric, a)), {
13180
13017
  [MetricTypeId]: metricVariance,
13181
13018
  keyType,
@@ -13214,21 +13051,21 @@ const fromMetricKey = key => {
13214
13051
  hookCache.set(extraTags, hook);
13215
13052
  return hook;
13216
13053
  };
13217
- return make$8(key.keyType, (input, extraTags) => hook(extraTags).update(input), extraTags => hook(extraTags).get(), (input, extraTags) => hook(extraTags).modify(input));
13054
+ return make$6(key.keyType, (input, extraTags) => hook(extraTags).update(input), extraTags => hook(extraTags).get(), (input, extraTags) => hook(extraTags).modify(input));
13218
13055
  };
13219
13056
  /** @internal */
13220
13057
  const histogram = (name, boundaries, description) => fromMetricKey(histogram$3(name, boundaries, description));
13221
13058
  /** @internal */
13222
- const tagged = /*#__PURE__*/dual(3, (self, key, value) => taggedWithLabels(self, [make$b(key, value)]));
13059
+ const tagged = /*#__PURE__*/dual(3, (self, key, value) => taggedWithLabels(self, [make$9(key, value)]));
13223
13060
  /** @internal */
13224
13061
  const taggedWithLabels = /*#__PURE__*/dual(2, (self, extraTags) => {
13225
- return make$8(self.keyType, (input, extraTags1) => self.unsafeUpdate(input, union$2(extraTags, extraTags1)), extraTags1 => self.unsafeValue(union$2(extraTags, extraTags1)), (input, extraTags1) => self.unsafeModify(input, union$2(extraTags, extraTags1)));
13062
+ return make$6(self.keyType, (input, extraTags1) => self.unsafeUpdate(input, union$2(extraTags, extraTags1)), extraTags1 => self.unsafeValue(union$2(extraTags, extraTags1)), (input, extraTags1) => self.unsafeModify(input, union$2(extraTags, extraTags1)));
13226
13063
  });
13227
13064
  /* @internal */
13228
13065
  const update = /*#__PURE__*/dual(2, (self, input) => fiberRefGetWith(currentMetricLabels, tags => sync$1(() => self.unsafeUpdate(input, tags))));
13229
13066
 
13230
13067
  /** @internal */
13231
- const complete$1 = /*#__PURE__*/dual(2, (self, result) => fiberRefGetWith(currentRequestMap, map => sync$1(() => {
13068
+ const complete = /*#__PURE__*/dual(2, (self, result) => fiberRefGetWith(currentRequestMap, map => sync$1(() => {
13232
13069
  if (map.has(self)) {
13233
13070
  const entry = map.get(self);
13234
13071
  if (!entry.state.completed) {
@@ -13371,7 +13208,7 @@ const none = /*#__PURE__*/globalValue("effect/Supervisor/none", () => fromEffect
13371
13208
  * @since 2.0.0
13372
13209
  * @category constructors
13373
13210
  */
13374
- const make$7 = make$l;
13211
+ const make$5 = make$j;
13375
13212
 
13376
13213
  /** @internal */
13377
13214
  const OP_EMPTY = "Empty";
@@ -13463,7 +13300,7 @@ const toSet = self => {
13463
13300
  if (isZip(self)) {
13464
13301
  return pipe(toSet(self.left), union(toSet(self.right)));
13465
13302
  } else {
13466
- return make$n(self);
13303
+ return make$l(self);
13467
13304
  }
13468
13305
  }
13469
13306
  };
@@ -13485,7 +13322,7 @@ const diff = (oldValue, newValue) => {
13485
13322
  return combine(added, removed);
13486
13323
  };
13487
13324
  /** @internal */
13488
- const differ = /*#__PURE__*/make$7({
13325
+ const differ = /*#__PURE__*/make$5({
13489
13326
  empty: empty$2,
13490
13327
  patch,
13491
13328
  combine,
@@ -14652,7 +14489,7 @@ const tracerLogger = /*#__PURE__*/globalValue(/*#__PURE__*/Symbol.for("effect/Lo
14652
14489
  span.value.event(toStringUnknown(Array.isArray(message) && message.length === 1 ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
14653
14490
  }));
14654
14491
  /** @internal */
14655
- const currentLoggers = /*#__PURE__*/globalValue(/*#__PURE__*/Symbol.for("effect/FiberRef/currentLoggers"), () => fiberRefUnsafeMakeHashSet(make$n(defaultLogger, tracerLogger)));
14492
+ const currentLoggers = /*#__PURE__*/globalValue(/*#__PURE__*/Symbol.for("effect/FiberRef/currentLoggers"), () => fiberRefUnsafeMakeHashSet(make$l(defaultLogger, tracerLogger)));
14656
14493
  // === all
14657
14494
  const allResolveInput = input => {
14658
14495
  if (Array.isArray(input) || isIterable(input)) {
@@ -15094,7 +14931,7 @@ const scopeMake = (strategy = sequential$1) => sync$1(() => scopeUnsafeMake(stra
15094
14931
  /* @internal */
15095
14932
  const scopeExtend = /*#__PURE__*/dual(2, (effect, scope) => mapInputContext(effect,
15096
14933
  // @ts-expect-error
15097
- merge$1(make$s(scopeTag, scope))));
14934
+ merge$1(make$q(scopeTag, scope))));
15098
14935
  // circular with Supervisor
15099
14936
  /** @internal */
15100
14937
  const fiberRefUnsafeMakeSupervisor = initial => fiberRefUnsafeMakePatch(initial, {
@@ -15149,7 +14986,7 @@ const race$1 = /*#__PURE__*/dual(2, (self, that) => fiberIdWith$1(parentFiberId
15149
14986
  /** @internal */
15150
14987
  const raceFibersWith = /*#__PURE__*/dual(3, (self, other, options) => withFiberRuntime$1((parentFiber, parentStatus) => {
15151
14988
  const parentRuntimeFlags = parentStatus.runtimeFlags;
15152
- const raceIndicator = make$m(true);
14989
+ const raceIndicator = make$k(true);
15153
14990
  const leftFiber = unsafeMakeChildFiber(self, parentFiber, parentRuntimeFlags, options.selfScope);
15154
14991
  const rightFiber = unsafeMakeChildFiber(other, parentFiber, parentRuntimeFlags, options.otherScope);
15155
14992
  return async_(cb => {
@@ -15215,478 +15052,9 @@ const invokeWithInterrupt = (self, entries, onInterrupt) => fiberIdWith$1(id =>
15215
15052
  }
15216
15053
  return [];
15217
15054
  });
15218
- return forEachSequentialDiscard(residual, entry => complete$1(entry.request, exitInterrupt$1(id)));
15055
+ return forEachSequentialDiscard(residual, entry => complete(entry.request, exitInterrupt$1(id)));
15219
15056
  })));
15220
15057
 
15221
- /** @internal */
15222
- const complete = (key, exit, entryStats, timeToLiveMillis) => struct({
15223
- _tag: "Complete",
15224
- key,
15225
- exit,
15226
- entryStats,
15227
- timeToLiveMillis
15228
- });
15229
- /** @internal */
15230
- const pending = (key, deferred) => struct({
15231
- _tag: "Pending",
15232
- key,
15233
- deferred
15234
- });
15235
- /** @internal */
15236
- const refreshing = (deferred, complete) => struct({
15237
- _tag: "Refreshing",
15238
- deferred,
15239
- complete
15240
- });
15241
- /** @internal */
15242
- const MapKeyTypeId = /*#__PURE__*/Symbol.for("effect/Cache/MapKey");
15243
- class MapKeyImpl {
15244
- current;
15245
- [MapKeyTypeId] = MapKeyTypeId;
15246
- previous = undefined;
15247
- next = undefined;
15248
- constructor(current) {
15249
- this.current = current;
15250
- }
15251
- [symbol$1]() {
15252
- return pipe(hash(this.current), combine$7(hash(this.previous)), combine$7(hash(this.next)), cached(this));
15253
- }
15254
- [symbol](that) {
15255
- if (this === that) {
15256
- return true;
15257
- }
15258
- return isMapKey(that) && equals$1(this.current, that.current) && equals$1(this.previous, that.previous) && equals$1(this.next, that.next);
15259
- }
15260
- }
15261
- /** @internal */
15262
- const makeMapKey = current => new MapKeyImpl(current);
15263
- /** @internal */
15264
- const isMapKey = u => hasProperty(u, MapKeyTypeId);
15265
- class KeySetImpl {
15266
- head = undefined;
15267
- tail = undefined;
15268
- add(key) {
15269
- if (key !== this.tail) {
15270
- if (this.tail === undefined) {
15271
- this.head = key;
15272
- this.tail = key;
15273
- } else {
15274
- const previous = key.previous;
15275
- const next = key.next;
15276
- if (next !== undefined) {
15277
- key.next = undefined;
15278
- if (previous !== undefined) {
15279
- previous.next = next;
15280
- next.previous = previous;
15281
- } else {
15282
- this.head = next;
15283
- this.head.previous = undefined;
15284
- }
15285
- }
15286
- this.tail.next = key;
15287
- key.previous = this.tail;
15288
- this.tail = key;
15289
- }
15290
- }
15291
- }
15292
- remove() {
15293
- const key = this.head;
15294
- if (key !== undefined) {
15295
- const next = key.next;
15296
- if (next !== undefined) {
15297
- key.next = undefined;
15298
- this.head = next;
15299
- this.head.previous = undefined;
15300
- } else {
15301
- this.head = undefined;
15302
- this.tail = undefined;
15303
- }
15304
- }
15305
- return key;
15306
- }
15307
- }
15308
- /** @internal */
15309
- const makeKeySet = () => new KeySetImpl();
15310
- /**
15311
- * Constructs a new `CacheState` from the specified values.
15312
- *
15313
- * @internal
15314
- */
15315
- const makeCacheState = (map, keys, accesses, updating, hits, misses) => ({
15316
- map,
15317
- keys,
15318
- accesses,
15319
- updating,
15320
- hits,
15321
- misses
15322
- });
15323
- /**
15324
- * Constructs an initial cache state.
15325
- *
15326
- * @internal
15327
- */
15328
- const initialCacheState = () => makeCacheState(empty$8(), makeKeySet(), unbounded(), make$m(false), 0, 0);
15329
- /** @internal */
15330
- const CacheSymbolKey = "effect/Cache";
15331
- /** @internal */
15332
- const CacheTypeId = /*#__PURE__*/Symbol.for(CacheSymbolKey);
15333
- const cacheVariance = {
15334
- /* c8 ignore next */
15335
- _Key: _ => _,
15336
- /* c8 ignore next */
15337
- _Error: _ => _,
15338
- /* c8 ignore next */
15339
- _Value: _ => _
15340
- };
15341
- /** @internal */
15342
- const ConsumerCacheSymbolKey = "effect/ConsumerCache";
15343
- /** @internal */
15344
- const ConsumerCacheTypeId = /*#__PURE__*/Symbol.for(ConsumerCacheSymbolKey);
15345
- const consumerCacheVariance = {
15346
- /* c8 ignore next */
15347
- _Key: _ => _,
15348
- /* c8 ignore next */
15349
- _Error: _ => _,
15350
- /* c8 ignore next */
15351
- _Value: _ => _
15352
- };
15353
- /** @internal */
15354
- const makeCacheStats = options => options;
15355
- /** @internal */
15356
- const makeEntryStats = loadedMillis => ({
15357
- loadedMillis
15358
- });
15359
- class CacheImpl {
15360
- capacity;
15361
- context;
15362
- fiberId;
15363
- lookup;
15364
- timeToLive;
15365
- [CacheTypeId] = cacheVariance;
15366
- [ConsumerCacheTypeId] = consumerCacheVariance;
15367
- cacheState;
15368
- constructor(capacity, context, fiberId, lookup, timeToLive) {
15369
- this.capacity = capacity;
15370
- this.context = context;
15371
- this.fiberId = fiberId;
15372
- this.lookup = lookup;
15373
- this.timeToLive = timeToLive;
15374
- this.cacheState = initialCacheState();
15375
- }
15376
- get(key) {
15377
- return map$3(this.getEither(key), merge$3);
15378
- }
15379
- get cacheStats() {
15380
- return sync$1(() => makeCacheStats({
15381
- hits: this.cacheState.hits,
15382
- misses: this.cacheState.misses,
15383
- size: size(this.cacheState.map)
15384
- }));
15385
- }
15386
- getOption(key) {
15387
- return suspend$2(() => match$6(get$2(this.cacheState.map, key), {
15388
- onNone: () => {
15389
- const mapKey = makeMapKey(key);
15390
- this.trackAccess(mapKey);
15391
- this.trackMiss();
15392
- return succeed$4(none$4());
15393
- },
15394
- onSome: value => this.resolveMapValue(value)
15395
- }));
15396
- }
15397
- getOptionComplete(key) {
15398
- return suspend$2(() => match$6(get$2(this.cacheState.map, key), {
15399
- onNone: () => {
15400
- const mapKey = makeMapKey(key);
15401
- this.trackAccess(mapKey);
15402
- this.trackMiss();
15403
- return succeed$4(none$4());
15404
- },
15405
- onSome: value => this.resolveMapValue(value, true)
15406
- }));
15407
- }
15408
- contains(key) {
15409
- return sync$1(() => has(this.cacheState.map, key));
15410
- }
15411
- entryStats(key) {
15412
- return sync$1(() => {
15413
- const option = get$2(this.cacheState.map, key);
15414
- if (isSome(option)) {
15415
- switch (option.value._tag) {
15416
- case "Complete":
15417
- {
15418
- const loaded = option.value.entryStats.loadedMillis;
15419
- return some(makeEntryStats(loaded));
15420
- }
15421
- case "Pending":
15422
- {
15423
- return none$4();
15424
- }
15425
- case "Refreshing":
15426
- {
15427
- const loaded = option.value.complete.entryStats.loadedMillis;
15428
- return some(makeEntryStats(loaded));
15429
- }
15430
- }
15431
- }
15432
- return none$4();
15433
- });
15434
- }
15435
- getEither(key) {
15436
- return suspend$2(() => {
15437
- const k = key;
15438
- let mapKey = undefined;
15439
- let deferred = undefined;
15440
- let value = getOrUndefined(get$2(this.cacheState.map, k));
15441
- if (value === undefined) {
15442
- deferred = unsafeMake$4(this.fiberId);
15443
- mapKey = makeMapKey(k);
15444
- if (has(this.cacheState.map, k)) {
15445
- value = getOrUndefined(get$2(this.cacheState.map, k));
15446
- } else {
15447
- set$1(this.cacheState.map, k, pending(mapKey, deferred));
15448
- }
15449
- }
15450
- if (value === undefined) {
15451
- this.trackAccess(mapKey);
15452
- this.trackMiss();
15453
- return map$3(this.lookupValueOf(key, deferred), right);
15454
- } else {
15455
- return flatMap$2(this.resolveMapValue(value), match$6({
15456
- onNone: () => this.getEither(key),
15457
- onSome: value => succeed$4(left(value))
15458
- }));
15459
- }
15460
- });
15461
- }
15462
- invalidate(key) {
15463
- return sync$1(() => {
15464
- remove$1(this.cacheState.map, key);
15465
- });
15466
- }
15467
- invalidateWhen(key, when) {
15468
- return sync$1(() => {
15469
- const value = get$2(this.cacheState.map, key);
15470
- if (isSome(value) && value.value._tag === "Complete") {
15471
- if (value.value.exit._tag === "Success") {
15472
- if (when(value.value.exit.value)) {
15473
- remove$1(this.cacheState.map, key);
15474
- }
15475
- }
15476
- }
15477
- });
15478
- }
15479
- get invalidateAll() {
15480
- return sync$1(() => {
15481
- this.cacheState.map = empty$8();
15482
- });
15483
- }
15484
- refresh(key) {
15485
- return clockWith(clock => suspend$2(() => {
15486
- const k = key;
15487
- const deferred = unsafeMake$4(this.fiberId);
15488
- let value = getOrUndefined(get$2(this.cacheState.map, k));
15489
- if (value === undefined) {
15490
- if (has(this.cacheState.map, k)) {
15491
- value = getOrUndefined(get$2(this.cacheState.map, k));
15492
- } else {
15493
- set$1(this.cacheState.map, k, pending(makeMapKey(k), deferred));
15494
- }
15495
- }
15496
- if (value === undefined) {
15497
- return asVoid$1(this.lookupValueOf(key, deferred));
15498
- } else {
15499
- switch (value._tag) {
15500
- case "Complete":
15501
- {
15502
- if (this.hasExpired(clock, value.timeToLiveMillis)) {
15503
- const found = getOrUndefined(get$2(this.cacheState.map, k));
15504
- if (equals$1(found, value)) {
15505
- remove$1(this.cacheState.map, k);
15506
- }
15507
- return asVoid$1(this.get(key));
15508
- }
15509
- // Only trigger the lookup if we're still the current value, `completedResult`
15510
- return pipe(this.lookupValueOf(key, deferred), when$1(() => {
15511
- const current = getOrUndefined(get$2(this.cacheState.map, k));
15512
- if (equals$1(current, value)) {
15513
- const mapValue = refreshing(deferred, value);
15514
- set$1(this.cacheState.map, k, mapValue);
15515
- return true;
15516
- }
15517
- return false;
15518
- }), asVoid$1);
15519
- }
15520
- case "Pending":
15521
- {
15522
- return _await$1(value.deferred);
15523
- }
15524
- case "Refreshing":
15525
- {
15526
- return _await$1(value.deferred);
15527
- }
15528
- }
15529
- }
15530
- }));
15531
- }
15532
- set(key, value) {
15533
- return clockWith(clock => sync$1(() => {
15534
- const now = clock.unsafeCurrentTimeMillis();
15535
- const k = key;
15536
- const lookupResult = succeed$2(value);
15537
- const mapValue = complete(makeMapKey(k), lookupResult, makeEntryStats(now), now + toMillis(decode(this.timeToLive(lookupResult))));
15538
- set$1(this.cacheState.map, k, mapValue);
15539
- }));
15540
- }
15541
- get size() {
15542
- return sync$1(() => {
15543
- return size(this.cacheState.map);
15544
- });
15545
- }
15546
- get values() {
15547
- return sync$1(() => {
15548
- const values = [];
15549
- for (const entry of this.cacheState.map) {
15550
- if (entry[1]._tag === "Complete" && entry[1].exit._tag === "Success") {
15551
- values.push(entry[1].exit.value);
15552
- }
15553
- }
15554
- return values;
15555
- });
15556
- }
15557
- get entries() {
15558
- return sync$1(() => {
15559
- const values = [];
15560
- for (const entry of this.cacheState.map) {
15561
- if (entry[1]._tag === "Complete" && entry[1].exit._tag === "Success") {
15562
- values.push([entry[0], entry[1].exit.value]);
15563
- }
15564
- }
15565
- return values;
15566
- });
15567
- }
15568
- get keys() {
15569
- return sync$1(() => {
15570
- const keys = [];
15571
- for (const entry of this.cacheState.map) {
15572
- if (entry[1]._tag === "Complete" && entry[1].exit._tag === "Success") {
15573
- keys.push(entry[0]);
15574
- }
15575
- }
15576
- return keys;
15577
- });
15578
- }
15579
- resolveMapValue(value, ignorePending = false) {
15580
- return clockWith(clock => {
15581
- switch (value._tag) {
15582
- case "Complete":
15583
- {
15584
- this.trackAccess(value.key);
15585
- if (this.hasExpired(clock, value.timeToLiveMillis)) {
15586
- remove$1(this.cacheState.map, value.key.current);
15587
- return succeed$4(none$4());
15588
- }
15589
- this.trackHit();
15590
- return map$3(value.exit, some);
15591
- }
15592
- case "Pending":
15593
- {
15594
- this.trackAccess(value.key);
15595
- this.trackHit();
15596
- if (ignorePending) {
15597
- return succeed$4(none$4());
15598
- }
15599
- return map$3(_await$1(value.deferred), some);
15600
- }
15601
- case "Refreshing":
15602
- {
15603
- this.trackAccess(value.complete.key);
15604
- this.trackHit();
15605
- if (this.hasExpired(clock, value.complete.timeToLiveMillis)) {
15606
- if (ignorePending) {
15607
- return succeed$4(none$4());
15608
- }
15609
- return map$3(_await$1(value.deferred), some);
15610
- }
15611
- return map$3(value.complete.exit, some);
15612
- }
15613
- }
15614
- });
15615
- }
15616
- trackHit() {
15617
- this.cacheState.hits = this.cacheState.hits + 1;
15618
- }
15619
- trackMiss() {
15620
- this.cacheState.misses = this.cacheState.misses + 1;
15621
- }
15622
- trackAccess(key) {
15623
- offer(this.cacheState.accesses, key);
15624
- if (compareAndSet(this.cacheState.updating, false, true)) {
15625
- let loop = true;
15626
- while (loop) {
15627
- const key = poll(this.cacheState.accesses, EmptyMutableQueue);
15628
- if (key === EmptyMutableQueue) {
15629
- loop = false;
15630
- } else {
15631
- this.cacheState.keys.add(key);
15632
- }
15633
- }
15634
- let size$1 = size(this.cacheState.map);
15635
- loop = size$1 > this.capacity;
15636
- while (loop) {
15637
- const key = this.cacheState.keys.remove();
15638
- if (key !== undefined) {
15639
- if (has(this.cacheState.map, key.current)) {
15640
- remove$1(this.cacheState.map, key.current);
15641
- size$1 = size$1 - 1;
15642
- loop = size$1 > this.capacity;
15643
- }
15644
- } else {
15645
- loop = false;
15646
- }
15647
- }
15648
- set$3(this.cacheState.updating, false);
15649
- }
15650
- }
15651
- hasExpired(clock, timeToLiveMillis) {
15652
- return clock.unsafeCurrentTimeMillis() > timeToLiveMillis;
15653
- }
15654
- lookupValueOf(input, deferred) {
15655
- return clockWith(clock => suspend$2(() => {
15656
- const key = input;
15657
- return pipe(this.lookup(input), provideContext$1(this.context), exit$1, flatMap$2(exit => {
15658
- const now = clock.unsafeCurrentTimeMillis();
15659
- const stats = makeEntryStats(now);
15660
- const value = complete(makeMapKey(key), exit, stats, now + toMillis(decode(this.timeToLive(exit))));
15661
- set$1(this.cacheState.map, key, value);
15662
- return zipRight$2(done$4(deferred, exit), exit);
15663
- }), onInterrupt(() => zipRight$2(interrupt$1(deferred), sync$1(() => {
15664
- remove$1(this.cacheState.map, key);
15665
- }))));
15666
- }));
15667
- }
15668
- }
15669
- /** @internal */
15670
- const make$6 = options => {
15671
- const timeToLive = decode(options.timeToLive);
15672
- return makeWith({
15673
- capacity: options.capacity,
15674
- lookup: options.lookup,
15675
- timeToLive: () => timeToLive
15676
- });
15677
- };
15678
- /** @internal */
15679
- const makeWith = options => map$3(all$1([context(), fiberId]), ([context, fiberId]) => new CacheImpl(options.capacity, context, fiberId, options.lookup, exit => decode(options.timeToLive(exit))));
15680
-
15681
- /**
15682
- * Constructs a new cache with the specified capacity, time to live, and
15683
- * lookup function.
15684
- *
15685
- * @since 2.0.0
15686
- * @category constructors
15687
- */
15688
- const make$5 = make$6;
15689
-
15690
15058
  /** @internal */
15691
15059
  const IntervalSymbolKey = "effect/ScheduleInterval";
15692
15060
  /** @internal */
@@ -16286,7 +15654,7 @@ const make = options => new RuntimeImpl(options.context, options.runtimeFlags, o
16286
15654
  /** @internal */
16287
15655
  const runtime$1 = () => withFiberRuntime$1((state, status) => succeed$4(new RuntimeImpl(state.getFiberRef(currentContext), status.runtimeFlags, state.getFiberRefs())));
16288
15656
  /** @internal */
16289
- const defaultRuntimeFlags = /*#__PURE__*/make$j(Interruption, CooperativeYielding, RuntimeMetrics);
15657
+ const defaultRuntimeFlags = /*#__PURE__*/make$h(Interruption, CooperativeYielding, RuntimeMetrics);
16290
15658
  /** @internal */
16291
15659
  const defaultRuntime = /*#__PURE__*/make({
16292
15660
  context: /*#__PURE__*/empty$k(),
@@ -16361,7 +15729,7 @@ class MemoMapImpl {
16361
15729
  })));
16362
15730
  return succeed$4([cached, map]);
16363
15731
  }
16364
- return pipe(make$c(0), flatMap$2(observers => pipe(deferredMake(), flatMap$2(deferred => pipe(make$c(() => void_$2), map$3(finalizerRef => {
15732
+ return pipe(make$a(0), flatMap$2(observers => pipe(deferredMake(), flatMap$2(deferred => pipe(make$a(() => void_$2), map$3(finalizerRef => {
16365
15733
  const resource = uninterruptibleMask$2(restore => pipe(scopeMake(), flatMap$2(innerScope => pipe(restore(flatMap$2(makeBuilder(layer, innerScope, true), f => diffFiberRefs(f(this)))), exit$1, flatMap$2(exit => {
16366
15734
  switch (exit._tag) {
16367
15735
  case OP_FAILURE:
@@ -16503,53 +15871,6 @@ const effect_provide = /*#__PURE__*/dual(2, (self, source) => {
16503
15871
  }
16504
15872
  });
16505
15873
 
16506
- /**
16507
- * Provides a constructor for a Case Class.
16508
- *
16509
- * @since 2.0.0
16510
- * @category constructors
16511
- */
16512
- const Error$1 = /*#__PURE__*/function () {
16513
- const plainArgsSymbol = /*#__PURE__*/Symbol.for("effect/Data/Error/plainArgs");
16514
- const O = {
16515
- BaseEffectError: class extends YieldableError {
16516
- constructor(args) {
16517
- super(args?.message, args?.cause ? {
16518
- cause: args.cause
16519
- } : undefined);
16520
- if (args) {
16521
- Object.assign(this, args);
16522
- // @effect-diagnostics-next-line floatingEffect:off
16523
- Object.defineProperty(this, plainArgsSymbol, {
16524
- value: args,
16525
- enumerable: false
16526
- });
16527
- }
16528
- }
16529
- toJSON() {
16530
- return {
16531
- ...this[plainArgsSymbol],
16532
- ...this
16533
- };
16534
- }
16535
- }
16536
- };
16537
- return O.BaseEffectError;
16538
- }();
16539
- /**
16540
- * @since 2.0.0
16541
- * @category constructors
16542
- */
16543
- const TaggedError = tag => {
16544
- const O = {
16545
- BaseEffectError: class extends Error$1 {
16546
- _tag = tag;
16547
- }
16548
- };
16549
- O.BaseEffectError.prototype.name = tag;
16550
- return O.BaseEffectError;
16551
- };
16552
-
16553
15874
  /** @internal */
16554
15875
  const ScheduleSymbolKey = "effect/Schedule";
16555
15876
  /** @internal */
@@ -16678,7 +15999,7 @@ const checkEffect = /*#__PURE__*/dual(2, (self, test) => makeWithState(self.init
16678
15999
  return map$3(test(input, out), cont => cont ? [state, out, decision] : [state, out, done]);
16679
16000
  })));
16680
16001
  /** @internal */
16681
- const driver = self => pipe(make$c([none$4(), self.initial]), map$3(ref => new ScheduleDriverImpl(self, ref)));
16002
+ const driver = self => pipe(make$a([none$4(), self.initial]), map$3(ref => new ScheduleDriverImpl(self, ref)));
16682
16003
  /** @internal */
16683
16004
  const intersect = /*#__PURE__*/dual(2, (self, that) => intersectWith(self, that, intersect$1));
16684
16005
  /** @internal */
@@ -19506,98 +18827,18 @@ const zipRight = zipRightOptions;
19506
18827
  */
19507
18828
  const zipWith = zipWithOptions;
19508
18829
 
19509
- class FetchError extends TaggedError('FetchError') {
19510
- }
19511
- class NotFoundError extends TaggedError('NotFoundError') {
19512
- }
19513
- const httpClient = (input, init) => gen$1(function* () {
19514
- const response = yield* tryPromise({
19515
- try: () => fetch(input, init),
19516
- catch: error => new FetchError({ cause: error }),
19517
- });
19518
- if (response.status === 404) {
19519
- return yield* fail$1(new NotFoundError({ url: response.url }));
19520
- }
19521
- return response;
19522
- });
19523
- class ResponseTextError extends TaggedError('ResponseTextError') {
19524
- constructor(error) {
19525
- super(new Error(`Failed to read response text`, { cause: error }));
19526
- }
19527
- }
19528
- const responseAsText = (res) => tryPromise({
19529
- try: () => res.text(),
19530
- catch: error => new ResponseTextError(error),
19531
- });
19532
-
19533
- const SVGString = refined(isValidSVG, () => error('SVG data is malformed'));
19534
- class BrandValidationError extends TaggedError('BrandValidationError') {
19535
- constructor(error, type) {
19536
- super(new Error(`Brand validation failed for type ${type}.`, { cause: error }));
19537
- }
19538
- }
19539
- const createValidSVGString = (svg) => try_({
19540
- try: () => SVGString(svg),
19541
- catch: error => new BrandValidationError(error, 'SVGString'),
19542
- });
19543
- function isValidSVG(svg) {
19544
- if (typeof svg !== 'string') {
19545
- return false;
19546
- }
19547
- try {
19548
- const parser = new DOMParser();
19549
- const doc = parser.parseFromString(svg, 'image/svg+xml');
19550
- return doc.documentElement.nodeName === 'svg';
19551
- }
19552
- catch {
19553
- return false;
19554
- }
19555
- }
19556
-
19557
- const emptyDefaultSvg = () => SVGString(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"></svg>`);
19558
- const createIconCache = () => make$5({
19559
- capacity: 200,
19560
- timeToLive: infinity,
19561
- lookup: (key) => gen(function* () {
19562
- const name = key;
19563
- const assetPath = assets.createAssetUrlSafely(`${name}.svg`, 'icons');
19564
- const res = yield* httpClient(assetPath);
19565
- const responseString = yield* responseAsText(res);
19566
- return yield* createValidSVGString(responseString);
19567
- }),
19568
- });
19569
- let cacheInstance = null;
19570
- function fetchIconSvg(name) {
19571
- const key = name;
19572
- return gen(function* () {
19573
- if (!cacheInstance) {
19574
- cacheInstance = yield* createIconCache();
19575
- }
19576
- return yield* cacheInstance.get(key);
19577
- });
19578
- }
19579
- function clearIconCache() {
19580
- return gen(function* () {
19581
- if (cacheInstance) {
19582
- yield* cacheInstance.invalidateAll;
19583
- }
19584
- else {
19585
- logWarning('Attempted to clear icon cache before it was initialized');
19586
- }
19587
- });
19588
- }
19589
-
19590
- exports.ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = ARIA_VALIDATION_RUNTIME_CHANGED_EVENT;
19591
18830
  exports.Class = Class;
19592
18831
  exports.EmptyMutableQueue = EmptyMutableQueue;
19593
- exports._await = _await;
19594
- exports._await$1 = _await$1;
18832
+ exports.YieldableError = YieldableError;
18833
+ exports._await = _await$1;
18834
+ exports._await$1 = _await;
19595
18835
  exports._void = _void;
19596
18836
  exports.acquireUseRelease = acquireUseRelease;
19597
18837
  exports.addFinalizer = addFinalizer;
19598
18838
  exports.addFinalizerExit = addFinalizerExit;
19599
- exports.all = all$2;
19600
- exports.all$1 = all;
18839
+ exports.all = all$1;
18840
+ exports.all$1 = all$2;
18841
+ exports.all$2 = all;
19601
18842
  exports.append = append$1;
19602
18843
  exports.appendAll = appendAll$1;
19603
18844
  exports.as = as;
@@ -19605,15 +18846,20 @@ exports.asVoid = asVoid$1;
19605
18846
  exports.asVoid$1 = asVoid;
19606
18847
  exports.async = async;
19607
18848
  exports.bounded = bounded;
18849
+ exports.cached = cached;
19608
18850
  exports.capacity = capacity;
19609
18851
  exports.catchAll = catchAll;
19610
18852
  exports.catchAll$1 = catchAll$1;
19611
18853
  exports.catchAllCause = catchAllCause;
19612
18854
  exports.catchSomeCause = catchSomeCause;
19613
- exports.clearIconCache = clearIconCache;
18855
+ exports.clockWith = clockWith;
19614
18856
  exports.close = close;
18857
+ exports.combine = combine$7;
19615
18858
  exports.combineAll = combineAll;
18859
+ exports.compareAndSet = compareAndSet;
19616
18860
  exports.constVoid = constVoid;
18861
+ exports.context = context;
18862
+ exports.decode = decode;
19617
18863
  exports.deferredAwait = deferredAwait;
19618
18864
  exports.deferredInterruptWith = deferredInterruptWith;
19619
18865
  exports.deferredMake = deferredMake;
@@ -19623,24 +18869,24 @@ exports.deferredUnsafeMake = deferredUnsafeMake;
19623
18869
  exports.die = die$2;
19624
18870
  exports.die$1 = die;
19625
18871
  exports.dieMessage = dieMessage;
19626
- exports.disableAriaValidation = disableAriaValidation;
18872
+ exports.done = done$4;
19627
18873
  exports.dual = dual;
19628
- exports.empty = empty$m;
19629
- exports.empty$1 = empty$j;
19630
- exports.emptyDefaultSvg = emptyDefaultSvg;
19631
- exports.enableAriaValidation = enableAriaValidation;
18874
+ exports.empty = empty$8;
18875
+ exports.empty$1 = empty$m;
18876
+ exports.empty$2 = empty$j;
19632
18877
  exports.ensuring = ensuring;
19633
18878
  exports.equals = equals$1;
19634
- exports.exit = exit;
18879
+ exports.exit = exit$1;
18880
+ exports.exit$1 = exit;
19635
18881
  exports.extend = extend;
19636
- exports.fail = fail$4;
19637
- exports.fail$1 = fail$2;
19638
- exports.fail$2 = fail;
18882
+ exports.fail = fail$1;
18883
+ exports.fail$1 = fail$4;
18884
+ exports.fail$2 = fail$2;
18885
+ exports.fail$3 = fail;
19639
18886
  exports.failCause = failCause$2;
19640
18887
  exports.failCause$1 = failCause;
19641
18888
  exports.failCause$2 = failCause$3;
19642
18889
  exports.failureOrCause = failureOrCause;
19643
- exports.fetchIconSvg = fetchIconSvg;
19644
18890
  exports.fiberId = fiberId;
19645
18891
  exports.fiberIdWith = fiberIdWith;
19646
18892
  exports.filter = filter;
@@ -19657,24 +18903,32 @@ exports.forkDaemon = forkDaemon;
19657
18903
  exports.forkIn = forkIn;
19658
18904
  exports.fromIterable = fromIterable$6;
19659
18905
  exports.fromIterable$1 = fromIterable$5;
19660
- exports.gen = gen;
19661
- exports.get = get;
19662
- exports.get$1 = get$4;
18906
+ exports.gen = gen$1;
18907
+ exports.gen$1 = gen;
18908
+ exports.get = get$2;
18909
+ exports.get$1 = get;
18910
+ exports.get$2 = get$4;
19663
18911
  exports.getOrElse = getOrElse;
18912
+ exports.getOrThrowWith = getOrThrowWith;
18913
+ exports.getOrUndefined = getOrUndefined;
18914
+ exports.getRight = getRight;
18915
+ exports.has = has;
19664
18916
  exports.hasProperty = hasProperty;
18917
+ exports.hash = hash;
19665
18918
  exports.head = head;
19666
18919
  exports.identity = identity;
19667
18920
  exports.ignore = ignore;
18921
+ exports.infinity = infinity;
19668
18922
  exports.inheritAll = inheritAll;
19669
- exports.interrupt = interrupt$3;
19670
- exports.interrupt$1 = interrupt$2;
19671
- exports.interrupt$2 = interrupt;
18923
+ exports.interrupt = interrupt$1;
18924
+ exports.interrupt$1 = interrupt$3;
18925
+ exports.interrupt$2 = interrupt$2;
18926
+ exports.interrupt$3 = interrupt;
19672
18927
  exports.interruptAsFiber = interruptAsFiber;
19673
18928
  exports.interruptFiber = interruptFiber;
19674
18929
  exports.interruptible = interruptible;
19675
18930
  exports.interruptors = interruptors;
19676
18931
  exports.intoDeferred = intoDeferred;
19677
- exports.isAriaValidationEnabled = isAriaValidationEnabled;
19678
18932
  exports.isDieType = isDieType;
19679
18933
  exports.isDone = isDone$4;
19680
18934
  exports.isEffect = isEffect;
@@ -19683,29 +18937,32 @@ exports.isEmpty$1 = isEmpty$2;
19683
18937
  exports.isFailure = isFailure;
19684
18938
  exports.isInterrupted = isInterrupted;
19685
18939
  exports.isInterruptedOnly = isInterruptedOnly;
18940
+ exports.isRight = isRight;
19686
18941
  exports.isSome = isSome;
19687
18942
  exports.isSuccess = isSuccess;
19688
18943
  exports.join = join;
19689
18944
  exports.left = left;
19690
18945
  exports.length = length;
19691
18946
  exports.logError = logError;
19692
- exports.make = make$c;
19693
- exports.make$1 = make$m;
19694
- exports.make$2 = make$i;
18947
+ exports.logWarning = logWarning;
18948
+ exports.make = make$k;
18949
+ exports.make$1 = make$a;
18950
+ exports.make$2 = make$g;
19695
18951
  exports.make$3 = make$1;
19696
18952
  exports.makeSemaphore = makeSemaphore;
19697
- exports.map = map$4;
19698
- exports.map$1 = map$3;
18953
+ exports.map = map$3;
18954
+ exports.map$1 = map$4;
19699
18955
  exports.map$2 = map;
19700
18956
  exports.map$3 = map$2;
19701
18957
  exports.map$4 = map$7;
19702
18958
  exports.mapError = mapError;
19703
- exports.match = match$7;
19704
- exports.match$1 = match$3;
19705
- exports.match$2 = match$6;
18959
+ exports.match = match$6;
18960
+ exports.match$1 = match$7;
18961
+ exports.match$2 = match$3;
19706
18962
  exports.match$3 = match;
19707
18963
  exports.matchCause = matchCause;
19708
18964
  exports.matchCauseEffect = matchCauseEffect;
18965
+ exports.merge = merge$3;
19709
18966
  exports.modify = modify;
19710
18967
  exports.none = none$4;
19711
18968
  exports.of = of$1;
@@ -19718,11 +18975,12 @@ exports.poll = poll;
19718
18975
  exports.pollUpTo = pollUpTo;
19719
18976
  exports.prepend = prepend$1;
19720
18977
  exports.provide = provide;
19721
- exports.queueValidation = queueValidation;
18978
+ exports.provideContext = provideContext$1;
19722
18979
  exports.race = race;
19723
18980
  exports.raceFirst = raceFirst;
19724
18981
  exports.raceWith = raceWith;
19725
18982
  exports.reduce = reduce$6;
18983
+ exports.remove = remove$1;
19726
18984
  exports.repeat = repeat;
19727
18985
  exports.right = right;
19728
18986
  exports.runFork = runFork;
@@ -19731,33 +18989,42 @@ exports.runtime = runtime;
19731
18989
  exports.scope = scope;
19732
18990
  exports.scopedWith = scopedWith;
19733
18991
  exports.sequential = sequential;
19734
- exports.set = set$3;
19735
- exports.size = size$1;
18992
+ exports.set = set$1;
18993
+ exports.set$1 = set$3;
18994
+ exports.size = size;
18995
+ exports.size$1 = size$1;
19736
18996
  exports.some = some;
19737
18997
  exports.splitAt = splitAt$1;
19738
18998
  exports.splitWhere = splitWhere;
18999
+ exports.struct = struct;
19739
19000
  exports.succeed = succeed;
19740
19001
  exports.succeed$1 = succeed$4;
19741
19002
  exports.succeed$2 = succeed$2;
19742
19003
  exports.succeed$3 = succeed$3;
19743
19004
  exports.suspend = suspend$2;
19744
19005
  exports.suspend$1 = suspend;
19006
+ exports.symbol = symbol$1;
19007
+ exports.symbol$1 = symbol;
19745
19008
  exports.sync = sync$1;
19746
19009
  exports.sync$1 = sync;
19747
19010
  exports.tap = tap;
19748
19011
  exports.tapError = tapError;
19749
19012
  exports.tapErrorCause = tapErrorCause;
19013
+ exports.toMillis = toMillis;
19014
+ exports.tryPromise = tryPromise;
19015
+ exports.try_ = try_;
19750
19016
  exports.unbounded = unbounded;
19751
19017
  exports.uninterruptible = uninterruptible$1;
19752
19018
  exports.uninterruptible$1 = uninterruptible;
19753
19019
  exports.uninterruptibleMask = uninterruptibleMask;
19754
19020
  exports.unsafeFromArray = unsafeFromArray;
19755
19021
  exports.unsafeGet = unsafeGet;
19022
+ exports.unsafeMake = unsafeMake$4;
19756
19023
  exports.update = update$1;
19757
- exports.useVerboseLogging = useVerboseLogging;
19758
19024
  exports.void_ = void_$2;
19759
19025
  exports.void_$1 = void_$1;
19760
- exports.when = when;
19026
+ exports.when = when$1;
19027
+ exports.when$1 = when;
19761
19028
  exports.whenEffect = whenEffect;
19762
19029
  exports.withFiberRuntime = withFiberRuntime$1;
19763
19030
  exports.withFiberRuntime$1 = withFiberRuntime;
@@ -19768,6 +19035,3 @@ exports.zipRight = zipRight$2;
19768
19035
  exports.zipRight$1 = zipRight$1;
19769
19036
  exports.zipRight$2 = zipRight;
19770
19037
  exports.zipWith = zipWith;
19771
- //# sourceMappingURL=icons-BOM23oli.js.map
19772
-
19773
- //# sourceMappingURL=icons-BOM23oli.js.map