@lmvz-ds/components 0.13.0 → 0.13.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.
- package/dist/cjs/assets-CJzJZPzV.js +26 -0
- package/dist/cjs/{assets-CB5ikzmP.js → icons-FIfJEo6G.js} +1251 -773
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/lmvz-card.cjs.entry.js +3 -3
- package/dist/cjs/lmvz-icon.cjs.entry.js +3 -3
- package/dist/collection/components/lmvz-card/lmvz-card.js +3 -4
- package/dist/collection/components/lmvz-icon/icons.js +2 -2
- package/dist/collection/utils/assets.js +9 -6
- package/dist/collection/utils/http.js +2 -2
- package/dist/collection/utils/http.unit.js +1 -1
- package/dist/collection/utils/validation/svg.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/lmvz-card.js +1 -1
- package/dist/components/lmvz-header.js +1 -1
- package/dist/components/lmvz-icon.js +1 -1
- package/dist/components/p-BsS3QvWn.js +1 -0
- package/dist/components/p-CdYWDK7m.js +1 -0
- package/dist/esm/assets-BelZNJ1W.js +23 -0
- package/dist/esm/{assets-ozES4zSA.js → icons-CM7lsnuO.js} +1249 -708
- package/dist/esm/index.js +3 -2
- package/dist/esm/lmvz-card.entry.js +3 -3
- package/dist/esm/lmvz-icon.entry.js +2 -2
- package/dist/lmvz-components/index.esm.js +1 -1
- package/dist/lmvz-components/lmvz-components.esm.js +1 -1
- package/dist/lmvz-components/p-6e3314ab.entry.js +1 -0
- package/dist/lmvz-components/p-BoR31cjC.js +1 -0
- package/dist/lmvz-components/p-CVf2C8dL.js +1 -0
- package/dist/lmvz-components/p-d9dc29a1.entry.js +1 -0
- package/dist/manifest.json +1 -1
- package/dist/types/utils/assets.d.ts +1 -8
- package/dist/types/utils/http.d.ts +3 -3
- package/dist/types/utils/validation/svg.d.ts +2 -2
- package/hydrate/index.js +2131 -12411
- package/hydrate/index.mjs +2131 -12411
- package/package.json +4 -4
- package/dist/cjs/icons-DM_TTn48.js +0 -857
- package/dist/components/p-BBDH9X49.js +0 -1
- package/dist/components/p-Bs6_m7Uw.js +0 -1
- package/dist/esm/icons-kpJZ1u9g.js +0 -853
- package/dist/lmvz-components/p-4ad8c332.entry.js +0 -1
- package/dist/lmvz-components/p-5eee0752.entry.js +0 -1
- package/dist/lmvz-components/p-D9lc4ayG.js +0 -1
- package/dist/lmvz-components/p-iviTjlUy.js +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { r as runPromise } from './icons-CM7lsnuO.js';
|
|
2
|
+
export { c as clearIconCache } from './icons-CM7lsnuO.js';
|
|
3
|
+
import './assets-BelZNJ1W.js';
|
|
3
4
|
import './index-T5ljELGS.js';
|
|
4
5
|
|
|
5
6
|
const variants = ['primary', 'secondary', 'tertiary'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-T5ljELGS.js';
|
|
2
|
-
import {
|
|
2
|
+
import { c as createAssetUrlSafely } from './assets-BelZNJ1W.js';
|
|
3
3
|
|
|
4
4
|
const lmvzCardCss = () => `@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } @layer lmvz-ds.reset { h1, h2, h3, h4, h5, h6 { margin: 0; } } .sc-lmvz-card-h { button { --lmvz-button-color: var(--lmvz-component-color, var(--lmvz-semantic-color-int-on-primary, #ffffff)); --lmvz-button-padding-inline: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-padding-block: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); --lmvz-button-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-button-border-width: 0; --lmvz-button-border-color: transparent; --lmvz-button-background: var(--lmvz-semantic-color-int-primary, #000000); display: inline-flex; align-items: center; justify-content: center; gap: var(--lmvz-button-gap); padding-block: var(--lmvz-button-padding-block); padding-inline: var(--lmvz-button-padding-inline); border-radius: var(--lmvz-button-radius); border: var(--lmvz-button-border-width) solid var(--lmvz-button-border-color); background-color: var(--lmvz-button-background); color: var(--lmvz-button-color); cursor: pointer; font: var(--lmvz-button-font); text-align: center; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } button > * { font: inherit; color: inherit; } button:focus-visible { outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-selected, #f1f9fe); outline-offset: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); } button:is([disabled], .disabled) { cursor: not-allowed; pointer-events: none; opacity: var(--lmvz-component-input-disabled-opacity, 40%); } button:not([disabled]):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-hover, #2e2e2e); } button:not([disabled]):active { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-active, #545454); } button.secondary { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-button-border-width: var(--lmvz-semantic-border-width-default, 1px); --lmvz-button-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); } button.secondary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-button-border-color: var(--lmvz-semantic-color-border-hover, #c7c7c7); } button.secondary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4); --lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #d4d4d4); } button.tertiary { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); --lmvz-button-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); } button.tertiary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } button.tertiary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } button.small { --lmvz-button-padding-inline: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-padding-block: var(--lmvz-component-input-sm-padding-y, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-gap: var(--lmvz-component-input-sm-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } button.large { --lmvz-button-padding-inline: var(--lmvz-component-input-lg-padding-x, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-padding-block: var(--lmvz-component-input-lg-padding-y, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-gap: var(--lmvz-component-input-lg-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); } display: flex; min-width: var(--lmvz-other-component-card-minwidth, 20.4375rem); max-width: var(--lmvz-other-component-card-maxwidth, 21.6875rem); flex-direction: column; align-items: flex-start; border-radius: var(--lmvz-semantic-border-radius-lg, 14px); border: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-default, #e0e0e0); background: var(--lmvz-semantic-color-surface-primary, #ffffff); } *.sc-lmvz-card { color: var(--lmvz-semantic-color-on-surface-primary, #000000); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } .top.sc-lmvz-card { display: flex; padding: var(--lmvz-dimension-8-12, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); flex-direction: column; justify-content: center; align-items: center; align-self: stretch; } .bottom.sc-lmvz-card { display: flex; min-width: 150px; padding: var(--lmvz-dimension-4-6, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)); flex-direction: column; align-items: flex-start; align-self: stretch; } .title.sc-lmvz-card { margin: 0; display: flex; justify-content: center; align-items: center; align-self: stretch; padding-bottom: var(--lmvz-global-s4, 4px); overflow-wrap: break-word; font: var(--lmvz-typography-heading-2xl, 500 clamp(2rem, 1.94rem + 0.26vw, 2.25rem) / 1.2 Router); } .description.sc-lmvz-card { display: flex; margin: 0; padding-bottom: var(--lmvz-component-body-sm-padding-bottom, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); align-items: flex-start; align-self: stretch; white-space: pre-line; font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } .image-wrapper.sc-lmvz-card { aspect-ratio: 4 / 3; width: 100%; background-size: cover; background-position: center; flex: 1 0 0; align-self: stretch; border-radius: var(--lmvz-semantic-border-radius-md, 6px); } .actions.sc-lmvz-card { margin-top: var(--lmvz-component-form-wrapper-gap-y, clamp(1.13rem, 0.97rem + 0.65vw, 1.75rem)); display: flex; align-items: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); align-self: stretch; } button.primary.sc-lmvz-card, lmvz-button.primary.sc-lmvz-card { display: flex; justify-content: center; align-items: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); flex: 1 0 0; }`;
|
|
5
5
|
|
|
@@ -14,7 +14,7 @@ const LmvzCard = class {
|
|
|
14
14
|
primaryActionLabel = '';
|
|
15
15
|
primaryAction;
|
|
16
16
|
get fallbackImage() {
|
|
17
|
-
return
|
|
17
|
+
return createAssetUrlSafely('card-placeholder.svg');
|
|
18
18
|
}
|
|
19
19
|
_onPrimaryClick() {
|
|
20
20
|
this.primaryAction.emit();
|
|
@@ -26,7 +26,7 @@ const LmvzCard = class {
|
|
|
26
26
|
const imgStyle = {
|
|
27
27
|
backgroundImage: `url(${this.imageUrl ?? this.fallbackImage})`,
|
|
28
28
|
};
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'ba2e8d9e25428c744da2470cbd677306c56b09ae', role: "article" }, h("div", { key: '54ff7545559a4b6fb00c94909717234f4dfedd7c', class: "top" }, h("div", { key: '7bff35f247b6e8aca9b6346103139daa65ca16a3', class: "image-wrapper", style: imgStyle }, h("div", { key: 'c2c3d21227175b9dc0a55c75294f6c21bc713a26', class: "chip-slot" }, h("slot", { key: '1a7002aab5fc3f9f698c3d1678f8819ea36f91d3', name: "chip" })))), h("div", { key: 'a313321abe4da83db4b2ba64fdefa28edde93d41', class: "bottom" }, h("header", { key: 'f5ba333fcaa59d5b4f61dee94aba4628f49db9d7' }, h("h2", { key: 'b7d9ad6944b136476703cde89f885b189583eef1', class: "title" }, this.cardTitle)), h("p", { key: '6594626904a4f9fbc53d5956b71bbdefe00add8c', class: "description" }, this.description), h("div", { key: 'd8bbfebeb572fcf6990160a0dba7c5ae8a5a7fc7', class: "actions" }, h("button", { key: '6311a97a18412f8fbf8eb33e8a0f7a17700e71c6', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), h("button", { key: '12033ad5018d100f84f0149d83dc965d8e5b2c66', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, h("span", { key: 'e11f8008542b4f7f70d1273bb31200c50d02aabb', class: "icon-placeholder" }, "..."))))));
|
|
30
30
|
}
|
|
31
31
|
static get assetsDirs() { return ["../../assets"]; }
|
|
32
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as getElement, r as registerInstance, h, H as Host } from './index-T5ljELGS.js';
|
|
2
|
-
import { r as runPromise, t as tapError, l as logError,
|
|
2
|
+
import { r as runPromise, f as fetchIconSvg, t as tapError, l as logError, a as catchAll, s as succeed, e as emptyDefaultSvg } from './icons-CM7lsnuO.js';
|
|
3
3
|
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-CZ3dGAjR.js';
|
|
4
|
-
import
|
|
4
|
+
import './assets-BelZNJ1W.js';
|
|
5
5
|
|
|
6
6
|
const lmvzIconCss = () => `.sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));display:inline-block;line-height:0;svg{display:block}svg>path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));height:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))}}[size='sm'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem));height:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem))}}[size='md'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem));height:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem))}}[size='lg'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem));height:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem))}}[size='inherit'].sc-lmvz-icon-h{svg{width:inherit;height:inherit}}[weight='light'].sc-lmvz-icon-h{svg>path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg>path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg>path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg>path{stroke-width:2;fill:var(--lmvz-icon-color)}}`;
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as clearIconCache}from"./p-
|
|
1
|
+
import{r}from"./p-BoR31cjC.js";export{c as clearIconCache}from"./p-BoR31cjC.js";import"./p-CVf2C8dL.js";import"./p-T5ljELGS.js";const e=["primary","secondary","tertiary"],o=["small","default","large"],a=["xs","sm","md","lg"],t=[...a,"xl"],s=["text","email","password","tel","url","search","number"],n=[...a,"inherit"],l=["thin","medium","bold","filled"],i=["Logo","actions","adduser","alert","apple","arrow-down","arrow-left","arrow-right","arrow-up","book","bookmark","checkmark","chevron-down","chevron-left","chevron-right","chevron-up","close-l","close-sm","cog","computer","dashboard","delete","download","edit","external","facebook","favorite","filter","group","hide","home","info","instagram","letter","linkedin","logout","map","minus","navigation","plus","qr-scan","question","reader","reset","school","search","send","settings","share","shopping-cart","show","snapchat","sort","speech-bubble","star","student","upload","user","warn-circle","warn-triangle","whatsapp","world","x","youtube"];function d(e){return r(e).catch((r=>{console.error("Unhandled error in Effect:",r)}))}export{i as iconNames,n as iconSizes,l as iconWeights,s as inputTypes,d as run,o as scaleValues,a as sizes,t as textSizes,e as variants}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-T5ljELGS.js";export{s as setNonce}from"./p-T5ljELGS.js";import{g as l}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-d2bf6a3f",[[769,"lmvz-header",{role:[2561],lmvzActiveNav:[1,"lmvz-active-nav"]},null,{lmvzActiveNav:[{handleActiveNavChange:0}]}]]],["p-feda2ec5",[[257,"lmvz-action"]]],["p-16878d4c",[[785,"lmvz-button",{ti:[2562,"tabindex"],scale:[513],variant:[513],disabled:[516],type:[1],form:[1]}]]],["p-
|
|
1
|
+
import{p as e,b as a}from"./p-T5ljELGS.js";export{s as setNonce}from"./p-T5ljELGS.js";import{g as l}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-d2bf6a3f",[[769,"lmvz-header",{role:[2561],lmvzActiveNav:[1,"lmvz-active-nav"]},null,{lmvzActiveNav:[{handleActiveNavChange:0}]}]]],["p-feda2ec5",[[257,"lmvz-action"]]],["p-16878d4c",[[785,"lmvz-button",{ti:[2562,"tabindex"],scale:[513],variant:[513],disabled:[516],type:[1],form:[1]}]]],["p-d9dc29a1",[[774,"lmvz-card",{cardTitle:[1,"card-title"],imageUrl:[1,"image-url"],description:[1],primaryActionLabel:[1,"primary-action-label"]}]]],["p-980688a0",[[513,"lmvz-chip",{text:[1]}]]],["p-a34542fa",[[838,"lmvz-input",{value:[1025],label:[1],helperText:[1,"helper-text"],placeholder:[1],disabled:[516],readonly:[516],required:[516],name:[1],type:[1],errorMessage:[1,"error-message"],autocomplete:[1],inputmode:[1],autocorrect:[1],autocapitalize:[1],spellcheck:[4],autofocus:[4],minlength:[2],maxlength:[2],pattern:[1],min:[8],max:[8],step:[8],form:[1],error:[6660],nativeError:[32],setValue:[64],focusInput:[64],blurInput:[64],select:[64],checkValidity:[64],reportValidity:[64],getInputElement:[64]},null,{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}]]],["p-8ea1a349",[[774,"lmvz-menuitem",{role:[2561],ti:[2562,"tabindex"]}]]],["p-6e3314ab",[[514,"lmvz-icon",{icon:[513],weight:[513],size:[513],ariaLabel:[513,"aria-label"],iconData:[32],visible:[32]},null,{icon:[{loadIconPathData:0}]}]]]],e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as i,r as e,h as s,H as t}from"./p-T5ljELGS.js";import{r as o,f as r,t as n,l as c,a as m,s as a,e as l}from"./p-BoR31cjC.js";import{R as h,A as v}from"./p-CZ3dGAjR.js";import"./p-CVf2C8dL.js";const d=class extends h{intersectionObserver;get el(){return i(this)}icon;weight="medium";size="md";iconData;visible=!1;ariaLabel;get ariaHidden(){return!this.ariaLabel}constructor(i){super(),e(this,i),this.addController(new v(this))}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}disconnectedCallback(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null)}async loadIconPathData(){const{icon:i,visible:e}=this;i&&e&&(this.iconData=await o(r(this.icon).pipe(n((e=>c(`Error loading icon "${i}":`,e.message,e.cause,e.stack))),m((()=>a(l()))))))}render(){return s(t,{key:"d4c1cbfbaf39ebf6aa26415d46100763b9f89b5b",role:"img","aria-hidden":`${this.ariaHidden}`,innerHTML:this.iconData})}waitUntilVisible(i,e=50){"undefined"!=typeof window&&window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver((e=>{e.some((e=>!!e.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,i(),!0)))}),{rootMargin:`${e}px`}),this.intersectionObserver.observe(this.el)):i()}static get assetsDirs(){return["../../assets/icons"]}static get watchers(){return{icon:[{loadIconPathData:0}]}}};d.style=".sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));display:inline-block;line-height:0;svg{display:block}svg>path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));height:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))}}[size='sm'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem));height:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem))}}[size='md'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem));height:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem))}}[size='lg'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem));height:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem))}}[size='inherit'].sc-lmvz-icon-h{svg{width:inherit;height:inherit}}[weight='light'].sc-lmvz-icon-h{svg>path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg>path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg>path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg>path{stroke-width:2;fill:var(--lmvz-icon-color)}}";export{d as lmvz_icon}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as t}from"./p-CVf2C8dL.js";const e=function(t,e){if("function"==typeof t)return function(){return t(arguments)?e.apply(this,arguments):t=>e(t,...arguments)};switch(t){case 0:case 1:throw new RangeError(`Invalid arity ${t}`);case 2:return function(t,r){return arguments.length>=2?e(t,r):function(r){return e(r,t)}};case 3:return function(t,r,n){return arguments.length>=3?e(t,r,n):function(n){return e(n,t,r)}};case 4:return function(t,r,n,s){return arguments.length>=4?e(t,r,n,s):function(s){return e(s,t,r,n)}};case 5:return function(t,r,n,s,i){return arguments.length>=5?e(t,r,n,s,i):function(i){return e(i,t,r,n,s)}};default:return function(){if(arguments.length>=t)return e.apply(this,arguments);const r=arguments;return function(t){return e(t,...r)}}}},r=t=>t,n=t=>()=>t,s=n(!0),i=n(!1),o=n(void 0),c=o;function u(t,e,r,n,s,i,o,c,u){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return r(e(t));case 4:return n(r(e(t)));case 5:return s(n(r(e(t))));case 6:return i(s(n(r(e(t)))));case 7:return o(i(s(n(r(e(t))))));case 8:return c(o(i(s(n(r(e(t)))))));case 9:return u(c(o(i(s(n(r(e(t))))))));default:{let t=arguments[0];for(let e=1;e<arguments.length;e++)t=arguments[e](t);return t}}}const a=t=>(e,r)=>e===r||t(e,r),h=e(2,((t,e)=>a(((r,n)=>t(e(r),e(n)))))),l="effect/GlobalValue";let f;const d=(t,e)=>(f||(globalThis[l]??=new Map,f=globalThis[l]),f.has(t)||f.set(t,e()),f.get(t)),b=t=>"number"==typeof t,p=t=>"function"==typeof t,m=t=>(t=>"object"==typeof t&&null!==t)(t)||p(t),g=e(2,((t,e)=>m(t)&&e in t)),y=e(2,((t,e)=>g(t,"_tag")&&t._tag===e)),S=t=>null==t,w=t=>"string"==typeof t||g(t,Symbol.iterator),v=t=>`BUG: ${t} - please report an issue at https://github.com/Effect-TS/effect/issues`;let _=class t{self;called=!1;constructor(t){this.self=t}next(t){return this.called?{value:t,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(t){return{value:t,done:!0}}throw(t){throw t}[Symbol.iterator](){return new t(this.self)}};class O{_state;constructor(t,e,r,n){return S(e)&&S(t)?(e=4294967295*Math.random()>>>0,t=0):S(e)&&(e=t,t=0),S(n)&&S(r)?(n=this._state?this._state[3]:4150755663,r=this._state?this._state[2]:335903614):S(n)&&(n=r,r=0),this._state=new Int32Array([0,0,r>>>0,(1|(n||0))>>>0]),this._next(),E(this._state,this._state[0],this._state[1],t>>>0,e>>>0),this._next(),this}getState(){return[this._state[0],this._state[1],this._state[2],this._state[3]]}setState(t){this._state[0]=t[0],this._state[1]=t[1],this._state[2]=t[2],this._state[3]=1|t[3]}integer(t){return Math.round(this.number()*Number.MAX_SAFE_INTEGER)%t}number(){return(1*(67108863&this._next())*134217728+1*(134217727&this._next()))/9007199254740992}_next(){const t=this._state[0]>>>0,e=this._state[1]>>>0;!function(t,e,r,n,s){let i=32557*(r>>>16)>>>0,o=19605*(65535&r)>>>0,c=32557*(65535&r)>>>0,u=19605*(r>>>16)+((o>>>16)+(i>>>16))>>>0;o=o<<16>>>0,c=c+o>>>0,c>>>0<o>>>0&&(u=u+1>>>0),i=i<<16>>>0,c=c+i>>>0,c>>>0<i>>>0&&(u=u+1>>>0),u=u+Math.imul(r,1481765933)>>>0,u=u+Math.imul(e,s)>>>0,t[0]=u,t[1]=c}(this._state,t,e,0,1284865837),E(this._state,this._state[0],this._state[1],this._state[2],this._state[3]);let r=t>>>18,n=(e>>>18|t<<14)>>>0;r=(r^t)>>>0,n=(n^e)>>>0;const s=(n>>>27|r<<5)>>>0,i=t>>>27;return(s>>>i|s<<((-i>>>0&31)>>>0))>>>0}}function E(t,e,r,n,s){let i=e+n>>>0;const o=r+s>>>0;o>>>0<r>>>0&&(i=i+1|0),t[0]=i,t[1]=o}const M=Symbol.for("effect/Utils/YieldWrap");class k{#t;constructor(t){this.#t=t}[M](){return this.#t}}function I(t){if("object"==typeof t&&null!==t&&M in t)return t[M]();throw new Error(v("yieldWrapGet"))}const N=d("effect/Utils/isStructuralRegion",(()=>({enabled:!1,tester:void 0}))),C={effect_internal_function:t=>t()},j=!0===C.effect_internal_function((()=>(new Error).stack))?.includes("effect_internal_function")?C.effect_internal_function:t=>{try{return t()}finally{}},F=d(Symbol.for("effect/Hash/randomHashCache"),(()=>new WeakMap)),A=Symbol.for("effect/Hash"),R=t=>{if(!0===N.enabled)return 0;switch(typeof t){case"number":return B(t);case"bigint":return D(t.toString(10));case"boolean":case"symbol":return D(String(t));case"string":return D(t);case"undefined":return D("undefined");case"function":case"object":return null===t?D("null"):t instanceof Date?Number.isNaN(t.getTime())?D("Invalid Date"):R(t.toISOString()):t instanceof URL?R(t.href):L(t)?t[A]():x(t);default:throw new Error(`BUG: unhandled typeof ${typeof t} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},x=t=>(F.has(t)||F.set(t,B(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),F.get(t)),$=t=>e=>53*e^t,T=t=>3221225471&t|t>>>1&1073741824,L=t=>g(t,A),B=t=>{if(t!=t||t===1/0)return 0;let e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return T(e)},D=t=>{let e=5381,r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return T(e)},P=t=>((t,e)=>{let r=12289;for(let n=0;n<e.length;n++)r^=u(D(e[n]),$(R(t[e[n]])));return T(r)})(t,Object.keys(t)),q=t=>{let e=6151;for(let r=0;r<t.length;r++)e=u(e,$(R(t[r])));return T(e)},U=function(){if(1===arguments.length){const t=arguments[0];return function(e){return Object.defineProperty(t,A,{value:()=>e,enumerable:!1}),e}}const t=arguments[1];return Object.defineProperty(arguments[0],A,{value:()=>t,enumerable:!1}),t},J=Symbol.for("effect/Equal");function V(){return 1===arguments.length?t=>G(t,arguments[0]):G(arguments[0],arguments[1])}function G(t,e){if(t===e)return!0;const r=typeof t;if(r!==typeof e)return!1;if("object"===r||"function"===r){if(null!==t&&null!==e){if(H(t)&&H(e))return!(R(t)!==R(e)||!t[J](e))||!(!N.enabled||!N.tester)&&N.tester(t,e);if(t instanceof Date&&e instanceof Date){const r=t.getTime(),n=e.getTime();return r===n||Number.isNaN(r)&&Number.isNaN(n)}if(t instanceof URL&&e instanceof URL)return t.href===e.href}if(N.enabled){if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,r)=>G(t,e[r])));if(Object.getPrototypeOf(t)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){const r=Object.keys(t),n=Object.keys(e);if(r.length===n.length){for(const n of r)if(!(n in e)||!G(t[n],e[n]))return!!N.tester&&N.tester(t,e);return!0}}return!!N.tester&&N.tester(t,e)}}return!(!N.enabled||!N.tester)&&N.tester(t,e)}const H=t=>g(t,J),W=()=>V,z=Symbol.for("nodejs.util.inspect.custom"),K=t=>{try{if(g(t,"toJSON")&&p(t.toJSON)&&0===t.toJSON.length)return t.toJSON();if(Array.isArray(t))return t.map(K)}catch{return{}}return rt(t)},Y=t=>JSON.stringify(t,null,2),Q=(t,e=2)=>{if("string"==typeof t)return t;try{return"object"==typeof t?Z(t,e):String(t)}catch{return String(t)}},Z=(t,e)=>{let r=[];const n=JSON.stringify(t,((t,e)=>"object"==typeof e&&null!==e?r.includes(e)?void 0:r.push(e)&&(void 0!==et.fiberRefs&&tt(e)?e[X](et.fiberRefs):e):e),e);return r=void 0,n},X=Symbol.for("effect/Inspectable/Redactable"),tt=t=>"object"==typeof t&&null!==t&&X in t,et=d("effect/Inspectable/redactableState",(()=>({fiberRefs:void 0}))),rt=t=>tt(t)&&void 0!==et.fiberRefs?t[X](et.fiberRefs):t,nt=(t,e)=>{switch(e.length){case 0:return t;case 1:return e[0](t);case 2:return e[1](e[0](t));case 3:return e[2](e[1](e[0](t)));case 4:return e[3](e[2](e[1](e[0](t))));case 5:return e[4](e[3](e[2](e[1](e[0](t)))));case 6:return e[5](e[4](e[3](e[2](e[1](e[0](t))))));case 7:return e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))));case 8:return e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t))))))));case 9:return e[8](e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))))));default:{let r=t;for(let t=0,n=e.length;t<n;t++)r=e[t](r);return r}}},st="Async",it="Commit",ot="Failure",ct="OnFailure",ut="OnSuccess",at="OnSuccessAndFailure",ht="Success",lt="Sync",ft="Tag",dt="UpdateRuntimeFlags",bt="While",pt="Iterator",mt="WithRuntime",gt="Yield",yt="RevertFlags",St=()=>"3.19.14",wt=Symbol.for("effect/Effect"),vt=Symbol.for("effect/Stream"),_t=Symbol.for("effect/Sink"),Ot=Symbol.for("effect/Channel"),Et={_R:t=>t,_E:t=>t,_A:t=>t,_V:St()},Mt={[wt]:Et,[vt]:Et,[_t]:{_A:t=>t,_In:t=>t,_L:t=>t,_E:t=>t,_R:t=>t},[Ot]:{_Env:t=>t,_InErr:t=>t,_InElem:t=>t,_InDone:t=>t,_OutErr:t=>t,_OutElem:t=>t,_OutDone:t=>t},[J](t){return this===t},[A](){return U(this,x(this))},[Symbol.iterator](){return new _(new k(this))},pipe(){return nt(this,arguments)}},kt={[A](){return U(this,P(this))},[J](t){const e=Object.keys(this),r=Object.keys(t);if(e.length!==r.length)return!1;for(const r of e)if(!(r in t)||!V(this[r],t[r]))return!1;return!0}},It={...Mt,_op:it},Nt={...It,...kt},Ct=function(){function t(){}return t.prototype=It,t}(),jt=Symbol.for("effect/Option"),Ft={...Mt,[jt]:{_A:t=>t},[z](){return this.toJSON()},toString(){return Y(this.toJSON())}},At=Object.assign(Object.create(Ft),{_tag:"Some",_op:"Some",[J](t){return $t(t)&&Lt(t)&&V(this.value,t.value)},[A](){return U(this,$(R(this._tag))(R(this.value)))},toJSON(){return{_id:"Option",_tag:this._tag,value:K(this.value)}}}),Rt=R("None"),xt=Object.assign(Object.create(Ft),{_tag:"None",_op:"None",[J]:t=>$t(t)&&Tt(t),[A]:()=>Rt,toJSON(){return{_id:"Option",_tag:this._tag}}}),$t=t=>g(t,jt),Tt=t=>"None"===t._tag,Lt=t=>"Some"===t._tag,Bt=Object.create(xt),Dt=t=>{const e=Object.create(At);return e.value=t,e},Pt=Symbol.for("effect/Either"),qt={...Mt,[Pt]:{_R:t=>t},[z](){return this.toJSON()},toString(){return Y(this.toJSON())}},Ut=Object.assign(Object.create(qt),{_tag:"Right",_op:"Right",[J](t){return Vt(t)&&Ht(t)&&V(this.right,t.right)},[A](){return $(R(this._tag))(R(this.right))},toJSON(){return{_id:"Either",_tag:this._tag,right:K(this.right)}}}),Jt=Object.assign(Object.create(qt),{_tag:"Left",_op:"Left",[J](t){return Vt(t)&&Gt(t)&&V(this.left,t.left)},[A](){return $(R(this._tag))(R(this.left))},toJSON(){return{_id:"Either",_tag:this._tag,left:K(this.left)}}}),Vt=t=>g(t,Pt),Gt=t=>"Left"===t._tag,Ht=t=>"Right"===t._tag,Wt=t=>{const e=Object.create(Ut);return e.right=t,e},zt=t=>{const e=Object.create(Jt);return e.left=t,e},Kt=Gt,Yt=Ht,Qt=e(2,((t,{onLeft:e,onRight:r})=>Kt(t)?e(t.left):r(t.right)))({onLeft:r,onRight:r}),Zt=e(2,((t,e)=>{if(Yt(t))return t.right;throw e(t.left)})),Xt=t=>t.length>0,te=t=>(e,r)=>e===r?0:t(e,r),ee=te(((t,e)=>t<e?-1:1)),re=e(2,((t,e)=>te(((r,n)=>t(e(r),e(n)))))),ne=t=>e(2,((e,r)=>1===t(e,r))),se=()=>Bt,ie=Dt,oe=Tt,ce=Lt,ue=e(2,((t,{onNone:e,onSome:r})=>oe(t)?e():r(t.value))),ae=e(2,((t,e)=>oe(t)?e():t.value)),he=e(2,((t,e)=>oe(t)?ie(e()):t)),le=t=>null==t?se():ie(t),fe=ae(o),de=e(2,((t,e)=>oe(t)?se():ie(e(t.value)))),be=e(2,((t,e)=>oe(t)?se():e(t.value))),pe=(t=>e(2,((e,r)=>!oe(e)&&t(e.value,r))))(W()),me=(...t)=>t,ge=t=>new Array(t),ye=e(2,((t,e)=>{const r=Math.max(1,Math.floor(t)),n=new Array(r);for(let t=0;t<r;t++)n[t]=e(t);return n})),Se=t=>Array.isArray(t)?t:Array.from(t),we=e(2,((t,e)=>[e,...t])),ve=e(2,((t,e)=>[...t,e])),_e=e(2,((t,e)=>Se(t).concat(Se(e)))),Oe=Xt,Ee=Xt,Me=(t,e)=>t<0||t>=e.length,ke=e(2,((t,e)=>{const r=Math.floor(e);return Me(r,t)?se():ie(t[r])})),Ie=e(2,((t,e)=>{const r=Math.floor(e);if(Me(r,t))throw new Error(`Index ${r} out of bounds`);return t[r]})),Ne=ke(0),Ce=Ie(0),je=t=>t[t.length-1],Fe=t=>t.slice(1),Ae=e(2,((t,e)=>De(t,((t,e)=>{let r=0;for(const n of t){if(!e(n,r))break;r++}return r})(t,e)))),Re=e(2,((t,e)=>{const r=Se(t);return r.slice(((t,e)=>Math.floor(Math.min(Math.max(0,t),e.length)))(e,r),r.length)})),xe=t=>Array.from(t).reverse(),$e=e(2,((t,e)=>{const r=Array.from(t);return r.sort(e),r})),Te=e(2,((t,e)=>Le(t,e,me))),Le=e(3,((t,e,r)=>{const n=Se(t),s=Se(e);if(Ee(n)&&Ee(s)){const t=[r(Ce(n),Ce(s))],e=Math.min(n.length,s.length);for(let i=1;i<e;i++)t[i]=r(n[i],s[i]);return t}return[]})),Be=W(),De=e(2,((t,e)=>{const r=Array.from(t),n=Math.floor(e);return Ee(r)?n>=1?Pe(r,n):[[],r]:[r,[]]})),Pe=e(2,((t,e)=>{const r=Math.max(1,Math.floor(e));return r>=t.length?[qe(t),[]]:[we(t.slice(1,r),Ce(t)),t.slice(r)]})),qe=t=>t.slice(),Ue=e(3,((t,e,r)=>{const n=Se(t),s=Se(e);return Ee(n)?Ee(s)?Ye(r)(_e(n,s)):n:s})),Je=e(2,((t,e)=>Ue(t,e,Be))),Ve=t=>[t],Ge=e(2,((t,e)=>t.map(e))),He=e(2,((t,e)=>{if((t=>0===t.length)(t))return[];const r=[];for(let n=0;n<t.length;n++){const s=e(t[n],n);for(let t=0;t<s.length;t++)r.push(s[t])}return r}))(r),We=e(3,((t,e,r)=>Se(t).reduce(((t,e,n)=>r(t,e,n)),e))),ze=(t,e)=>{const r=[];let n,s=t;for(;ce(n=e(s));){const[t,e]=n.value;r.push(t),s=e}return r},Ke=t=>a(((e,r)=>{if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1;return!0})),Ye=e(2,((t,e)=>{const r=Se(t);if(Ee(r)){const t=[Ce(r)],n=Fe(r);for(const r of n)t.every((t=>!e(r,t)))&&t.push(r);return t}return[]})),Qe=t=>Ye(t,W()),Ze=e(2,((t,e)=>Se(t).join(e))),Xe=ee,tr=Symbol.for("effect/Brand/Refined"),er=Symbol.for("effect/Context/Tag"),rr=Symbol.for("effect/Context/Reference"),nr=Symbol.for("effect/STM"),sr={...Mt,_op:"Tag",[nr]:Et,[er]:{_Service:t=>t,_Identifier:t=>t},toString(){return Y(this.toJSON())},toJSON(){return{_id:"Tag",key:this.key,stack:this.stack}},[z](){return this.toJSON()},of:t=>t,context(t){return lr(this,t)}},ir={...sr,[rr]:rr},or=Symbol.for("effect/Context"),cr={[or]:{_Services:t=>t},[J](t){if(ar(t)&&this.unsafeMap.size===t.unsafeMap.size){for(const e of this.unsafeMap.keys())if(!t.unsafeMap.has(e)||!V(this.unsafeMap.get(e),t.unsafeMap.get(e)))return!1;return!0}return!1},[A](){return U(this,B(this.unsafeMap.size))},pipe(){return nt(this,arguments)},toString(){return Y(this.toJSON())},toJSON(){return{_id:"Context",services:Array.from(this.unsafeMap).map(K)}},[z](){return this.toJSON()}},ur=t=>{const e=Object.create(cr);return e.unsafeMap=t,e},ar=t=>g(t,or),hr=ur(new Map),lr=(t,e)=>ur(new Map([[t.key,e]])),fr=e(3,((t,e,r)=>{const n=new Map(t.unsafeMap);return n.set(e.key,r),ur(n)})),dr=d("effect/Context/defaultValueCache",(()=>new Map)),br=t=>{if(dr.has(t.key))return dr.get(t.key);const e=t.defaultValue();return dr.set(t.key,e),e},pr=e(2,((t,e)=>{if(!t.unsafeMap.has(e.key)){if(rr in e)return br(e);throw(t=>{const e=new Error("Service not found"+(t.key?`: ${String(t.key)}`:""));if(t.stack){const r=t.stack.split("\n");if(r.length>2){const t=r[2].match(/at (.*)/);t&&(e.message=e.message+` (defined at ${t[1]})`)}}if(e.stack){const t=e.stack.split("\n");t.splice(1,3),e.stack=t.join("\n")}return e})(e)}return t.unsafeMap.get(e.key)})),mr=pr,gr=e(2,((t,e)=>t.unsafeMap.has(e.key)?Dt(t.unsafeMap.get(e.key)):g(e,rr)?Dt(br(e)):Bt)),yr=e(2,((t,e)=>{const r=new Map(t.unsafeMap);for(const[t,n]of e.unsafeMap)r.set(t,n);return ur(r)})),Sr=t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=2;const r=new Error;Error.stackTraceLimit=e;const n=Object.create(sr);return Object.defineProperty(n,"stack",{get:()=>r.stack}),n.key=t,n},wr=()=>hr,vr=lr,_r=fr,Or=mr,Er=pr,Mr=gr,kr=yr,Ir=()=>(t,e)=>{const r=Error.stackTraceLimit;Error.stackTraceLimit=2;const n=new Error;function s(){}return Error.stackTraceLimit=r,Object.setPrototypeOf(s,ir),s.key=t,s.defaultValue=e.defaultValue,Object.defineProperty(s,"stack",{get:()=>n.stack}),s},Nr=Symbol.for("effect/Chunk"),Cr=[],jr=(t=>a(((e,r)=>e.length===r.length&&Pr(e).every(((e,n)=>t(e,Vr(r,n)))))))(V),Fr={[Nr]:{_A:t=>t},toString(){return Y(this.toJSON())},toJSON(){return{_id:"Chunk",values:Pr(this).map(K)}},[z](){return this.toJSON()},[J](t){return Rr(t)&&jr(this,t)},[A](){return U(this,q(Pr(this)))},[Symbol.iterator](){switch(this.backing._tag){case"IArray":return this.backing.array[Symbol.iterator]();case"IEmpty":return Cr[Symbol.iterator]();default:return Pr(this)[Symbol.iterator]()}},pipe(){return nt(this,arguments)}},Ar=t=>{const e=Object.create(Fr);switch(e.backing=t,t._tag){case"IEmpty":e.length=0,e.depth=0,e.left=e,e.right=e;break;case"IConcat":e.length=t.left.length+t.right.length,e.depth=1+Math.max(t.left.depth,t.right.depth),e.left=t.left,e.right=t.right;break;case"IArray":e.length=t.array.length,e.depth=0,e.left=xr,e.right=xr;break;case"ISingleton":e.length=1,e.depth=0,e.left=xr,e.right=xr;break;case"ISlice":e.length=t.length,e.depth=t.chunk.depth+1,e.left=xr,e.right=xr}return e},Rr=t=>g(t,Nr),xr=Ar({_tag:"IEmpty"}),$r=()=>xr,Tr=(...t)=>Jr(t),Lr=t=>Ar({_tag:"ISingleton",a:t}),Br=t=>Rr(t)?t:Ur(Se(t)),Dr=(t,e,r)=>{switch(t.backing._tag){case"IArray":!function(t,e,r,n,s){for(let e=0;e<Math.min(t.length,0+s);e++)r[n+e-0]=t[e]}(t.backing.array,0,e,r,t.length);break;case"IConcat":Dr(t.left,e,r),Dr(t.right,e,r+t.left.length);break;case"ISingleton":e[r]=t.backing.a;break;case"ISlice":{let n=0,s=r;for(;n<t.length;)e[s]=Vr(t,n),n+=1,s+=1;break}}},Pr=t=>{switch(t.backing._tag){case"IEmpty":return Cr;case"IArray":return t.backing.array;default:{const e=new Array(t.length);return Dr(t,e,0),t.backing={_tag:"IArray",array:e},t.left=xr,t.right=xr,t.depth=0,e}}},qr=t=>{switch(t.backing._tag){case"IEmpty":case"ISingleton":return t;case"IArray":return Ar({_tag:"IArray",array:xe(t.backing.array)});case"IConcat":return Ar({_tag:"IConcat",left:qr(t.backing.right),right:qr(t.backing.left)});case"ISlice":return Ur(xe(Pr(t)))}},Ur=t=>0===t.length?$r():1===t.length?Lr(t[0]):Ar({_tag:"IArray",array:t}),Jr=t=>Ur(t),Vr=e(2,((t,e)=>{switch(t.backing._tag){case"IEmpty":throw new Error("Index out of bounds");case"ISingleton":if(0!==e)throw new Error("Index out of bounds");return t.backing.a;case"IArray":if(e>=t.length||e<0)throw new Error("Index out of bounds");return t.backing.array[e];case"IConcat":return e<t.left.length?Vr(t.left,e):Vr(t.right,e-t.left.length);case"ISlice":return Vr(t.backing.chunk,e+t.backing.offset)}})),Gr=e(2,((t,e)=>zr(t,Lr(e)))),Hr=e(2,((t,e)=>zr(Lr(e),t))),Wr=e(2,((t,e)=>{if(e<=0)return t;if(e>=t.length)return xr;switch(t.backing._tag){case"ISlice":return Ar({_tag:"ISlice",chunk:t.backing.chunk,offset:t.backing.offset+e,length:t.backing.length-e});case"IConcat":return e>t.left.length?Wr(t.right,e-t.left.length):Ar({_tag:"IConcat",left:Wr(t.left,e),right:t.right});default:return Ar({_tag:"ISlice",chunk:t,offset:e,length:t.length-e})}})),zr=e(2,((t,e)=>{if("IEmpty"===t.backing._tag)return e;if("IEmpty"===e.backing._tag)return t;const r=e.depth-t.depth;if(Math.abs(r)<=1)return Ar({_tag:"IConcat",left:t,right:e});if(r<-1){if(t.left.depth>=t.right.depth){const r=zr(t.right,e);return Ar({_tag:"IConcat",left:t.left,right:r})}{const r=zr(t.right.right,e);if(r.depth===t.depth-3){const e=Ar({_tag:"IConcat",left:t.right.left,right:r});return Ar({_tag:"IConcat",left:t.left,right:e})}{const e=Ar({_tag:"IConcat",left:t.left,right:t.right.left});return Ar({_tag:"IConcat",left:e,right:r})}}}if(e.right.depth>=e.left.depth){const r=zr(t,e.left);return Ar({_tag:"IConcat",left:r,right:e.right})}{const r=zr(t,e.left.left);if(r.depth===e.depth-3){const t=Ar({_tag:"IConcat",left:r,right:e.left.right});return Ar({_tag:"IConcat",left:t,right:e.right})}{const t=Ar({_tag:"IConcat",left:e.left.right,right:e.right});return Ar({_tag:"IConcat",left:r,right:t})}}})),Kr=t=>t.length>0,Yr=t=>Vr(t,0),Qr=Yr,Zr=t=>Wr(t,1),Xr=Symbol.for("effect/Duration"),tn=BigInt(0),en=BigInt(24),rn=BigInt(60),nn=BigInt(1e3),sn=BigInt(1e6),on=BigInt(1e9),cn=/^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?)$/,un=t=>{if(dn(t))return t;if(b(t))return yn(t);if((t=>"bigint"==typeof t)(t))return mn(t);if(Array.isArray(t)&&2===t.length&&t.every(b))return t[0]===-1/0||t[1]===-1/0||Number.isNaN(t[0])||Number.isNaN(t[1])?bn:t[0]===1/0||t[1]===1/0?pn:mn(BigInt(Math.round(1e9*t[0]))+BigInt(Math.round(t[1])));if((t=>"string"==typeof t)(t)){const e=cn.exec(t);if(e){const[t,r,n]=e,s=Number(r);switch(n){case"nano":case"nanos":return mn(BigInt(r));case"micro":case"micros":return gn(BigInt(r));case"milli":case"millis":return yn(s);case"second":case"seconds":return Sn(s);case"minute":case"minutes":return wn(s);case"hour":case"hours":return vn(s);case"day":case"days":return _n(s);case"week":case"weeks":return On(s)}}}throw new Error("Invalid DurationInput")},an={_tag:"Millis",millis:0},hn={_tag:"Infinity"},ln={[Xr]:Xr,[A](){return U(this,P(this.value))},[J](t){return dn(t)&&jn(this,t)},toString(){return`Duration(${Fn(this)})`},toJSON(){switch(this.value._tag){case"Millis":return{_id:"Duration",_tag:"Millis",millis:this.value.millis};case"Nanos":return{_id:"Duration",_tag:"Nanos",hrtime:Mn(this)};case"Infinity":return{_id:"Duration",_tag:"Infinity"}}},[z](){return this.toJSON()},pipe(){return nt(this,arguments)}},fn=t=>{const e=Object.create(ln);return e.value=b(t)?isNaN(t)||t<=0?an:Number.isFinite(t)?Number.isInteger(t)?{_tag:"Millis",millis:t}:{_tag:"Nanos",nanos:BigInt(Math.round(1e6*t))}:hn:t<=tn?an:{_tag:"Nanos",nanos:t},e},dn=t=>g(t,Xr),bn=fn(0),pn=fn(1/0),mn=t=>fn(t),gn=t=>fn(t*nn),yn=t=>fn(t),Sn=t=>fn(1e3*t),wn=t=>fn(6e4*t),vn=t=>fn(36e5*t),_n=t=>fn(864e5*t),On=t=>fn(6048e5*t),En=t=>kn(t,{onMillis:t=>t,onNanos:t=>Number(t)/1e6}),Mn=t=>{const e=un(t);switch(e.value._tag){case"Infinity":return[1/0,0];case"Nanos":return[Number(e.value.nanos/on),Number(e.value.nanos%on)];case"Millis":return[Math.floor(e.value.millis/1e3),Math.round(e.value.millis%1e3*1e6)]}},kn=e(2,((t,e)=>{const r=un(t);switch(r.value._tag){case"Nanos":return e.onNanos(r.value.nanos);case"Infinity":return e.onMillis(1/0);case"Millis":return e.onMillis(r.value.millis)}})),In=e(3,((t,e,r)=>{const n=un(t),s=un(e);if("Infinity"===n.value._tag||"Infinity"===s.value._tag)return r.onMillis(En(n),En(s));if("Nanos"===n.value._tag||"Nanos"===s.value._tag){const t="Nanos"===n.value._tag?n.value.nanos:BigInt(Math.round(1e6*n.value.millis)),e="Nanos"===s.value._tag?s.value.nanos:BigInt(Math.round(1e6*s.value.millis));return r.onNanos(t,e)}return r.onMillis(n.value.millis,s.value.millis)})),Nn=e(2,((t,e)=>In(t,e,{onMillis:(t,e)=>t<=e,onNanos:(t,e)=>t<=e}))),Cn=e(2,((t,e)=>In(t,e,{onMillis:(t,e)=>t>=e,onNanos:(t,e)=>t>=e}))),jn=e(2,((t,e)=>((t,e)=>In(t,e,{onMillis:(t,e)=>t===e,onNanos:(t,e)=>t===e}))(un(t),un(e)))),Fn=t=>{const e=un(t);if("Infinity"===e.value._tag)return"Infinity";if((t=>{switch(t.value._tag){case"Millis":return 0===t.value.millis;case"Nanos":return t.value.nanos===tn;case"Infinity":return!1}})(e))return"0";const r=(t=>{const e=un(t);if("Infinity"===e.value._tag)return{days:1/0,hours:1/0,minutes:1/0,seconds:1/0,millis:1/0,nanos:1/0};const r=(t=>{const e=un(t);switch(e.value._tag){case"Infinity":throw new Error("Cannot convert infinite duration to nanos");case"Nanos":return e.value.nanos;case"Millis":return BigInt(Math.round(1e6*e.value.millis))}})(e),n=r/sn,s=n/nn,i=s/rn,o=i/rn;return{days:Number(o/en),hours:Number(o%en),minutes:Number(i%rn),seconds:Number(s%rn),millis:Number(n%nn),nanos:Number(r%sn)}})(e),n=[];return 0!==r.days&&n.push(`${r.days}d`),0!==r.hours&&n.push(`${r.hours}h`),0!==r.minutes&&n.push(`${r.minutes}m`),0!==r.seconds&&n.push(`${r.seconds}s`),0!==r.millis&&n.push(`${r.millis}ms`),0!==r.nanos&&n.push(`${r.nanos}ns`),n.join(" ")},An=Math.pow(2,5),Rn=An-1,xn=An/2,$n=An/4;function Tn(t,e){return e>>>t&Rn}function Ln(t){return 1<<t}function Bn(t,e){return r=t&e-1,r=(r=(858993459&(r-=r>>1&1431655765))+(r>>2&858993459))+(r>>4)&252645135,127&(r+=r>>8)+(r>>16);var r}function Dn(t,e,r,n){let s=n;if(!t){const t=n.length;s=new Array(t);for(let e=0;e<t;++e)s[e]=n[e]}return s[e]=r,s}function Pn(t,e,r){const n=r.length-1;let s=0,i=0,o=r;if(t)s=i=e;else for(o=new Array(n);s<e;)o[i++]=r[s++];for(++s;s<=n;)o[i++]=r[s++];return t&&(o.length=n),o}class qn{_tag="EmptyNode";modify(t,e,r,n,s,i){const o=r(se());return oe(o)?new qn:(++i.value,new Vn(t,n,s,o))}}function Un(t){return y(t,"EmptyNode")}function Jn(t,e){return!Un(t)&&e===t.edit}class Vn{edit;hash;key;value;_tag="LeafNode";constructor(t,e,r,n){this.edit=t,this.hash=e,this.key=r,this.value=n}modify(t,e,r,n,s,i){if(V(s,this.key)){const e=r(this.value);return e===this.value?this:oe(e)?(--i.value,new qn):Jn(this,t)?(this.value=e,this):new Vn(t,n,s,e)}const o=r(se());return oe(o)?this:(++i.value,Kn(t,e,this.hash,this,n,new Vn(t,n,s,o)))}}class Gn{edit;hash;children;_tag="CollisionNode";constructor(t,e,r){this.edit=t,this.hash=e,this.children=r}modify(t,e,r,n,s,i){if(n===this.hash){const e=Jn(this,t),n=this.updateCollisionList(e,t,this.hash,this.children,r,s,i);return n===this.children?this:n.length>1?new Gn(t,this.hash,n):n[0]}const o=r(se());return oe(o)?this:(++i.value,Kn(t,e,this.hash,this,n,new Vn(t,n,s,o)))}updateCollisionList(t,e,r,n,s,i,o){const c=n.length;for(let u=0;u<c;++u){const c=n[u];if("key"in c&&V(i,c.key)){const a=c.value,h=s(a);return h===a?n:oe(h)?(--o.value,Pn(t,u,n)):Dn(t,u,new Vn(e,r,i,h),n)}}const u=s(se());return oe(u)?n:(++o.value,Dn(t,c,new Vn(e,r,i,u),n))}}class Hn{edit;mask;children;_tag="IndexedNode";constructor(t,e,r){this.edit=t,this.mask=e,this.children=r}modify(t,e,r,n,s,i){const o=this.mask,c=this.children,u=Tn(e,n),a=Ln(u),h=Bn(o,a),l=o&a,f=Jn(this,t);if(!l){const l=(new qn).modify(t,e+5,r,n,s,i);return l?c.length>=xn?function(t,e,r,n,s){const i=[];let o=n,c=0;for(let t=0;o;++t)1&o&&(i[t]=s[c++]),o>>>=1;return i[e]=r,new Wn(t,c+1,i)}(t,u,l,o,c):new Hn(t,o|a,function(t,e,r,n){const s=n.length;if(t){let t=s;for(;t>=e;)n[t--]=n[t];return n[e]=r,n}let i=0,o=0;const c=new Array(s+1);for(;i<e;)c[o++]=n[i++];for(c[e]=r;i<s;)c[++o]=n[i++];return c}(f,h,l,c)):this}const d=c[h],b=d.modify(t,e+5,r,n,s,i);if(d===b)return this;let p,m=o;if(Un(b)){if(m&=~a,!m)return new qn;if(c.length<=2&&(Un(g=c[1^h])||"LeafNode"===g._tag||"CollisionNode"===g._tag))return c[1^h];p=Pn(f,h,c)}else p=Dn(f,h,b,c);var g;return f?(this.mask=m,this.children=p,this):new Hn(t,m,p)}}class Wn{edit;size;children;_tag="ArrayNode";constructor(t,e,r){this.edit=t,this.size=e,this.children=r}modify(t,e,r,n,s,i){let o=this.size;const c=this.children,u=Tn(e,n),a=c[u],h=(a||new qn).modify(t,e+5,r,n,s,i);if(a===h)return this;const l=Jn(this,t);let f;if(Un(a)&&!Un(h))++o,f=Dn(l,u,h,c);else if(!Un(a)&&Un(h)){if(--o,o<=$n)return function(t,e,r,n){const s=new Array(e-1);let i=0,o=0;for(let t=0,e=n.length;t<e;++t)if(t!==r){const e=n[t];e&&!Un(e)&&(s[i++]=e,o|=1<<t)}return new Hn(t,o,s)}(t,o,u,c);f=Dn(l,u,new qn,c)}else f=Dn(l,u,h,c);return l?(this.size=o,this.children=f,this):new Wn(t,o,f)}}function zn(t,e,r,n,s,i){if(r===s)return new Gn(t,r,[i,n]);const o=Tn(e,r),c=Tn(e,s);if(o===c)return e=>new Hn(t,Ln(o)|Ln(c),[e]);{const e=o<c?[n,i]:[i,n];return new Hn(t,Ln(o)|Ln(c),e)}}function Kn(t,e,r,n,s,i){let o,c=e;for(;;){const e=zn(t,c,r,n,s,i);if("function"!=typeof e){let t=e;for(;null!=o;)t=o.value(t),o=o.previous;return t}o={value:e,previous:o},c+=5}}const Yn="effect/HashMap",Qn=Symbol.for(Yn),Zn={[Qn]:Qn,[Symbol.iterator](){return new ts(this,((t,e)=>[t,e]))},[A](){let t=R(Yn);for(const e of this)t^=u(R(e[0]),$(R(e[1])));return U(this,t)},[J](t){if(os(t)){if(t._size!==this._size)return!1;for(const e of this){const r=u(t,us(e[0],R(e[0])));if(oe(r))return!1;if(!V(e[1],r.value))return!1}return!0}return!1},toString(){return Y(this.toJSON())},toJSON(){return{_id:"HashMap",values:Array.from(this).map(K)}},[z](){return this.toJSON()},pipe(){return nt(this,arguments)}},Xn=(t,e,r,n)=>{const s=Object.create(Zn);return s._editable=t,s._edit=e,s._root=r,s._size=n,s};class ts{map;f;v;constructor(t,e){this.map=t,this.f=e,this.v=rs(this.map._root,this.f,void 0)}next(){if(oe(this.v))return{done:!0,value:void 0};const t=this.v.value;return this.v=es(t.cont),{done:!1,value:t.value}}[Symbol.iterator](){return new ts(this.map,this.f)}}const es=t=>t?ns(t[0],t[1],t[2],t[3],t[4]):se(),rs=(t,e,r)=>{switch(t._tag){case"LeafNode":return ce(t.value)?ie({value:e(t.key,t.value.value),cont:r}):es(r);case"CollisionNode":case"ArrayNode":case"IndexedNode":{const n=t.children;return ns(n.length,n,0,e,r)}default:return es(r)}},ns=(t,e,r,n,s)=>{for(;r<t;){const i=e[r++];if(i&&!Un(i))return rs(i,n,[t,e,r,n,s])}return es(s)},ss=Xn(!1,0,new qn,0),is=()=>ss,os=t=>g(t,Qn),cs=e(2,((t,e)=>us(t,e,R(e)))),us=e(3,((t,e,r)=>{let n=t._root,s=0;for(;;)switch(n._tag){case"LeafNode":return V(e,n.key)?n.value:se();case"CollisionNode":if(r===n.hash){const t=n.children;for(let r=0,n=t.length;r<n;++r){const n=t[r];if("key"in n&&V(e,n.key))return n.value}}return se();case"IndexedNode":{const t=Ln(Tn(s,r));if(n.mask&t){n=n.children[Bn(n.mask,t)],s+=5;break}return se()}case"ArrayNode":if(n=n.children[Tn(s,r)],n){s+=5;break}return se();default:return se()}})),as=e(2,((t,e)=>ce(us(t,e,R(e))))),hs=e(3,((t,e,r)=>ps(t,e,(()=>ie(r))))),ls=e(3,((t,e,r)=>t._editable?(t._root=e,t._size=r,t):e===t._root?t:Xn(t._editable,t._edit,e,r))),fs=t=>new ts(t,(t=>t)),ds=t=>t._size,bs=t=>Xn(!0,t._edit+1,t._root,t._size),ps=e(3,((t,e,r)=>ms(t,e,R(e),r))),ms=e(4,((t,e,r,n)=>{const s={value:t._size},i=t._root.modify(t._editable?t._edit:NaN,0,n,r,e,s);return u(t,ls(i,s.value))})),gs=e(2,((t,e)=>ps(t,e,se))),ys=e(2,((t,e)=>ws(t,is(),((t,r,n)=>hs(t,n,e(r,n)))))),Ss=e(2,((t,e)=>ws(t,void 0,((t,r,n)=>e(r,n))))),ws=e(3,((t,e,r)=>{const n=t._root;if("LeafNode"===n._tag)return ce(n.value)?r(e,n.value.value,n.key):e;if("EmptyNode"===n._tag)return e;const s=[n.children];let i;for(;i=s.pop();)for(let t=0,n=i.length;t<n;){const n=i[t++];n&&!Un(n)&&("LeafNode"===n._tag?ce(n.value)&&(e=r(e,n.value.value,n.key)):s.push(n.children))}return e})),vs="effect/HashSet",_s=Symbol.for(vs),Os={[_s]:_s,[Symbol.iterator](){return fs(this._keyMap)},[A](){return U(this,$(R(this._keyMap))(R(vs)))},[J](t){return!!Ms(t)&&ds(this._keyMap)===ds(t._keyMap)&&V(this._keyMap,t._keyMap)},toString(){return Y(this.toJSON())},toJSON(){return{_id:"HashSet",values:Array.from(this).map(K)}},[z](){return this.toJSON()},pipe(){return nt(this,arguments)}},Es=t=>{const e=Object.create(Os);return e._keyMap=t,e},Ms=t=>g(t,_s),ks=Es(is()),Is=()=>ks,Ns=e(2,((t,e)=>as(t._keyMap,e))),Cs=t=>Es(bs(t._keyMap)),js=t=>(t._keyMap._editable=!1,t),Fs=e(2,((t,e)=>{const r=Cs(t);return e(r),js(r)})),As=e(2,((t,e)=>t._keyMap._editable?(hs(e,!0)(t._keyMap),t):Es(hs(e,!0)(t._keyMap)))),Rs=e(2,((t,e)=>t._keyMap._editable?(gs(e)(t._keyMap),t):Es(gs(e)(t._keyMap)))),xs=e(2,((t,e)=>Fs(t,(t=>{for(const r of e)Rs(t,r)})))),$s=e(2,((t,e)=>Fs(Is(),(r=>{Ts(t,(t=>As(r,t)));for(const t of e)As(r,t)})))),Ts=e(2,((t,e)=>Ss(t._keyMap,((t,r)=>e(r))))),Ls=e(3,((t,e,r)=>ws(t._keyMap,e,((t,e,n)=>r(t,n))))),Bs=Is,Ds=(...t)=>{const e=Cs(Is());for(const r of t)As(e,r);return js(e)},Ps=Ns,qs=t=>ds(t._keyMap),Us=As,Js=Rs,Vs=xs,Gs=$s,Hs=Ls,Ws=Symbol.for("effect/MutableRef"),zs={[Ws]:Ws,toString(){return Y(this.toJSON())},toJSON(){return{_id:"MutableRef",current:K(this.current)}},[z](){return this.toJSON()},pipe(){return nt(this,arguments)}},Ks=t=>{const e=Object.create(zs);return e.current=t,e},Ys=e(3,((t,e,r)=>!!V(e,t.current)&&(t.current=r,!0))),Qs=t=>t.current,Zs=e(2,((t,e)=>(t.current=e,t))),Xs="effect/FiberId",ti=Symbol.for(Xs),ei="None",ri="Runtime",ni=D(`${Xs}-${ei}`);let si=class{[ti]=ti;_tag=ei;id=-1;startTimeMillis=-1;[A](){return ni}[J](t){return ci(t)&&t._tag===ei}toString(){return Y(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag}}[z](){return this.toJSON()}};class ii{id;startTimeMillis;[ti]=ti;_tag=ri;constructor(t,e){this.id=t,this.startTimeMillis=e}[A](){return U(this,D(`${Xs}-${this._tag}-${this.id}-${this.startTimeMillis}`))}[J](t){return ci(t)&&t._tag===ri&&this.id===t.id&&this.startTimeMillis===t.startTimeMillis}toString(){return Y(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag,id:this.id,startTimeMillis:this.startTimeMillis}}[z](){return this.toJSON()}}const oi=new si,ci=t=>g(t,ti),ui=t=>{switch(t._tag){case ei:return Bs();case ri:return Ds(t.id);case"Composite":return u(ui(t.left),Gs(ui(t.right)))}},ai=d(Symbol.for("effect/Fiber/Id/_fiberCounter"),(()=>Ks(0))),hi=t=>Array.from(ui(t)).map((t=>`#${t}`)).join(","),li=oi,fi=hi,di=()=>{const t=Qs(ai);return u(ai,Zs(t+1)),new ii(t,Date.now())},bi=is,pi=cs,mi=hs,gi=fs,yi=ps,Si=ys,wi=ws,vi=Symbol.for("effect/List"),_i=t=>Se(t),Oi=(()=>h(Ke(V),_i))(),Ei={[vi]:vi,_tag:"Cons",toString(){return Y(this.toJSON())},toJSON(){return{_id:"List",_tag:"Cons",values:_i(this).map(K)}},[z](){return this.toJSON()},[J](t){return Ci(t)&&this._tag===t._tag&&Oi(this,t)},[A](){return U(this,q(_i(this)))},[Symbol.iterator](){let t=!1,e=this;return{next(){if(t)return this.return();if("Nil"===e._tag)return t=!0,this.return();const r=e.head;return e=e.tail,{done:t,value:r}},return:e=>(t||(t=!0),{done:!0,value:e})}},pipe(){return nt(this,arguments)}},Mi=(t,e)=>{const r=Object.create(Ei);return r.head=t,r.tail=e,r},ki=D("Nil"),Ii={[vi]:vi,_tag:"Nil",toString(){return Y(this.toJSON())},toJSON:()=>({_id:"List",_tag:"Nil"}),[z](){return this.toJSON()},[A]:()=>ki,[J](t){return Ci(t)&&this._tag===t._tag},[Symbol.iterator]:()=>({next:()=>({done:!0,value:void 0})}),pipe(){return nt(this,arguments)}},Ni=Object.create(Ii),Ci=t=>g(t,vi),ji=t=>"Nil"===t._tag,Fi=(t,e)=>Mi(t,e),Ai=()=>Ni,Ri=t=>Mi(t,Ni),xi=e(2,((t,e)=>Ti(e,t))),$i=e(2,((t,e)=>Fi(e,t))),Ti=e(2,((t,e)=>{if(ji(t))return e;if(ji(e))return t;{const r=Mi(e.head,t);let n=r,s=e.tail;for(;!ji(s);){const e=Mi(s.head,t);n.tail=e,n=e,s=s.tail}return r}})),Li=e(3,((t,e,r)=>{let n=e,s=t;for(;!ji(s);)n=r(n,s.head),s=s.tail;return n})),Bi=t=>{let e=Ai(),r=t;for(;!ji(r);)e=$i(e,r.head),r=r.tail;return e},Di=function(){function t(t){t&&Object.assign(this,t)}return t.prototype=kt,t}(),Pi=t=>Object.assign(Object.create(kt),t),qi=Symbol.for("effect/DifferContextPatch");function Ui(t){return t}const Ji={...Di.prototype,[qi]:{_Value:Ui,_Patch:Ui}},Vi=Object.create(Object.assign(Object.create(Ji),{_tag:"Empty"})),Gi=()=>Vi,Hi=Object.assign(Object.create(Ji),{_tag:"AndThen"}),Wi=Object.assign(Object.create(Ji),{_tag:"AddService"}),zi=(t,e)=>{const r=Object.create(Wi);return r.key=t,r.service=e,r},Ki=Object.assign(Object.create(Ji),{_tag:"RemoveService"}),Yi=t=>{const e=Object.create(Ki);return e.key=t,e},Qi=Object.assign(Object.create(Ji),{_tag:"UpdateService"}),Zi=(t,e)=>{const r=Object.create(Qi);return r.key=t,r.update=e,r},Xi=e(2,((t,e)=>((t,e)=>{const r=Object.create(Hi);return r.first=t,r.second=e,r})(t,e))),to=e(2,((t,e)=>{if("Empty"===t._tag)return e;let r=!1,n=Lr(t);const s=new Map(e.unsafeMap);for(;Kr(n);){const t=Qr(n),e=Zr(n);switch(t._tag){case"Empty":n=e;break;case"AddService":s.set(t.key,t.service),n=e;break;case"AndThen":n=Hr(Hr(e,t.second),t.first);break;case"RemoveService":s.delete(t.key),n=e;break;case"UpdateService":s.set(t.key,t.update(s.get(t.key))),r=!0,n=e}}if(!r)return ur(s);const i=new Map;for(const[t]of e.unsafeMap)s.has(t)&&(i.set(t,s.get(t)),s.delete(t));for(const[t,e]of s)i.set(t,e);return ur(i)})),eo=Symbol.for("effect/DifferHashSetPatch");function ro(t){return t}const no={...Di.prototype,[eo]:{_Value:ro,_Key:ro,_Patch:ro}},so=Object.create(Object.assign(Object.create(no),{_tag:"Empty"})),io=()=>so,oo=Object.assign(Object.create(no),{_tag:"AndThen"}),co=Object.assign(Object.create(no),{_tag:"Add"}),uo=t=>{const e=Object.create(co);return e.value=t,e},ao=Object.assign(Object.create(no),{_tag:"Remove"}),ho=e(2,((t,e)=>((t,e)=>{const r=Object.create(oo);return r.first=t,r.second=e,r})(t,e))),lo=e(2,((t,e)=>{if("Empty"===t._tag)return e;let r=e,n=Lr(t);for(;Kr(n);){const t=Qr(n),e=Zr(n);switch(t._tag){case"Empty":n=e;break;case"AndThen":n=Hr(t.first)(Hr(t.second)(e));break;case"Add":r=Us(t.value)(r),n=e;break;case"Remove":r=Js(t.value)(r),n=e}}return r})),fo=Symbol.for("effect/DifferReadonlyArrayPatch");function bo(t){return t}const po={...Di.prototype,[fo]:{_Value:bo,_Patch:bo}},mo=Object.create(Object.assign(Object.create(po),{_tag:"Empty"})),go=()=>mo,yo=Object.assign(Object.create(po),{_tag:"AndThen"}),So=Object.assign(Object.create(po),{_tag:"Append"}),wo=Object.assign(Object.create(po),{_tag:"Slice"}),vo=Object.assign(Object.create(po),{_tag:"Update"}),_o=(t,e)=>{const r=Object.create(vo);return r.index=t,r.patch=e,r},Oo=e(2,((t,e)=>((t,e)=>{const r=Object.create(yo);return r.first=t,r.second=e,r})(t,e))),Eo=e(3,((t,e,r)=>{if("Empty"===t._tag)return e;let n=e.slice(),s=Ve(t);for(;Oe(s);){const t=Ce(s),e=Fe(s);switch(t._tag){case"Empty":s=e;break;case"AndThen":e.unshift(t.first,t.second),s=e;break;case"Append":for(const e of t.values)n.push(e);s=e;break;case"Slice":n=n.slice(t.from,t.until),s=e;break;case"Update":n[t.index]=r.patch(t.patch,n[t.index]),s=e}}return n})),Mo=Symbol.for("effect/Differ"),ko={[Mo]:{_P:r,_V:r},pipe(){return nt(this,arguments)}},Io=t=>{const e=Object.create(ko);return e.empty=t.empty,e.diff=t.diff,e.combine=t.combine,e.patch=t.patch,e},No=()=>Co(((t,e)=>e)),Co=t=>Io({empty:r,combine:(t,e)=>t===r?e:e===r?t:r=>e(t(r)),diff:(t,e)=>V(t,e)?r:n(e),patch:(e,r)=>t(r,e(r))}),jo=255,Fo=t=>t&jo,Ao=t=>t>>8&jo,Ro=(t,e)=>(t&jo)+((e&t&jo)<<8),xo=Ro(0,0),$o=e(2,((t,e)=>Ro(Fo(t)&~e,Ao(t)))),To=e(2,((t,e)=>t|e)),Lo=e(2,((t,e)=>t|e)),Bo=t=>Do(t)&&!Vo(t),Do=t=>Po(t,1),Po=e(2,((t,e)=>!!(t&e))),qo=(...t)=>t.reduce(((t,e)=>t|e),0),Uo=qo(0),Jo=t=>Po(t,4),Vo=t=>Po(t,16),Go=e(2,((t,e)=>Ro(t^e,e))),Ho=e(2,((t,e)=>t&(~Fo(e)>>>0&jo|Ao(e))|Fo(e)&Ao(e))),Wo=Io({empty:xo,diff:(t,e)=>Go(t,e),combine:(t,e)=>To(e)(t),patch:(t,e)=>Ho(e,t)}),zo=t=>Ro(t,0),Ko=$o,Yo=(t,e)=>({_tag:"Par",left:t,right:e}),Qo=(t,e)=>({_tag:"Seq",left:t,right:e}),Zo=t=>{let e=t,r=nc(),n=Ai(),s=Ai();for(;;)switch(e._tag){case"Empty":if(ji(n))return[r,s];e=n.head,n=n.tail;break;case"Par":n=Fi(e.right,n),e=e.left;break;case"Seq":{const t=e.left,r=e.right;switch(t._tag){case"Empty":e=r;break;case"Par":{const n=t.right;e=Yo(Qo(t.left,r),Qo(n,r));break}case"Seq":e=Qo(t.left,Qo(t.right,r));break;case"Single":e=t,s=Fi(r,s)}break}case"Single":if(r=sc(r,e),ji(n))return[r,s];e=n.head,n=n.tail}throw new Error("BUG: BlockedRequests.step - please report an issue at https://github.com/Effect-TS/effect/issues")},Xo=(t,e)=>{if(ji(t))return Ri(uc(e));if(oc(e))return t;const r=bc(t.head),n=cc(e);return 1===r.length&&1===n.length&&V(r[0],n[0])?Fi(dc(t.head,uc(e)),t.tail):Fi(uc(e),t)},tc=Symbol.for("effect/RequestBlock/RequestBlockParallel"),ec={_R:t=>t};class rc{map;[tc]=ec;constructor(t){this.map=t}}const nc=()=>new rc(bi()),sc=(t,e)=>new rc(yi(t.map,e.dataSource,(t=>he(de(t,Gr(e.blockedRequest)),(()=>Lr(e.blockedRequest)))))),ic=(t,e)=>new rc(wi(t.map,e.map,((t,e,r)=>mi(t,r,ue(pi(t,r),{onNone:()=>e,onSome:t=>zr(e,t)}))))),oc=t=>(t=>t&&Un(t._root))(t.map),cc=t=>Array.from(gi(t.map)),uc=t=>fc(Si(t.map,(t=>Lr(t)))),ac=Symbol.for("effect/RequestBlock/RequestBlockSequential"),hc={_R:t=>t};class lc{map;[ac]=hc;constructor(t){this.map=t}}const fc=t=>new lc(t),dc=(t,e)=>new lc(wi(e.map,t.map,((t,e,r)=>mi(t,r,ue(pi(t,r),{onNone:()=>$r(),onSome:t=>zr(t,e)}))))),bc=t=>Array.from(gi(t.map)),pc="Die",mc="Empty",gc="Fail",yc="Interrupt",Sc="Parallel",wc="Sequential",vc="effect/Cause",_c=Symbol.for(vc),Oc={[_c]:{_E:t=>t},[A](){return u(R(vc),$(R($c(this))),U(this))},[J](t){return jc(t)&&xc(this,t)},pipe(){return nt(this,arguments)},toJSON(){switch(this._tag){case"Empty":return{_id:"Cause",_tag:this._tag};case"Die":return{_id:"Cause",_tag:this._tag,defect:K(this.defect)};case"Interrupt":return{_id:"Cause",_tag:this._tag,fiberId:this.fiberId.toJSON()};case"Fail":return{_id:"Cause",_tag:this._tag,failure:K(this.error)};case"Sequential":case"Parallel":return{_id:"Cause",_tag:this._tag,left:K(this.left),right:K(this.right)}}},toString(){return Gc(this)},[z](){return this.toJSON()}},Ec=(()=>{const t=Object.create(Oc);return t._tag=mc,t})(),Mc=t=>{const e=Object.create(Oc);return e._tag=gc,e.error=t,e},kc=t=>{const e=Object.create(Oc);return e._tag=pc,e.defect=t,e},Ic=t=>{const e=Object.create(Oc);return e._tag=yc,e.fiberId=t,e},Nc=(t,e)=>{const r=Object.create(Oc);return r._tag=Sc,r.left=t,r.right=e,r},Cc=(t,e)=>{const r=Object.create(Oc);return r._tag=wc,r.left=t,r.right=e,r},jc=t=>g(t,_c),Fc=t=>Vc(void 0,Dc)(t),Ac=t=>{const e=(t=>Lc(t,(t=>t._tag===gc?ie(t.error):se())))(t);switch(e._tag){case"None":return Wt(t);case"Some":return zt(e.value)}},Rc=t=>Uc(t,{onEmpty:Ec,onFail:()=>Ec,onDie:kc,onInterrupt:Ic,onSequential:Cc,onParallel:Nc}),xc=(t,e)=>{let r=Lr(t),n=Lr(e);for(;Kr(r)&&Kr(n);){const[t,e]=u(Qr(r),Jc([Bs(),$r()],(([t,e],r)=>{const[n,s]=Bc(r);return ie([u(t,Gs(n)),u(e,zr(s))])}))),[s,i]=u(Qr(n),Jc([Bs(),$r()],(([t,e],r)=>{const[n,s]=Bc(r);return ie([u(t,Gs(n)),u(e,zr(s))])})));if(!V(t,s))return!1;r=e,n=i}return!0},$c=t=>Tc(Lr(t),$r()),Tc=(t,e)=>{for(;;){const[r,n]=u(t,We([Bs(),$r()],(([t,e],r)=>{const[n,s]=Bc(r);return[u(t,Gs(n)),u(e,zr(s))]}))),s=qs(r)>0?u(e,Hr(r)):e;if(0===n.length)return qr(s);t=n,e=s}throw new Error(v("Cause.flattenCauseLoop"))},Lc=e(2,((t,e)=>{const r=[t];for(;r.length>0;){const t=r.pop(),n=e(t);switch(n._tag){case"None":switch(t._tag){case wc:case Sc:r.push(t.right),r.push(t.left)}break;case"Some":return n}}return se()})),Bc=t=>{let e=t;const r=[];let n=Bs(),s=$r();for(;void 0!==e;)switch(e._tag){case mc:if(0===r.length)return[n,s];e=r.pop();break;case gc:if(n=Us(n,Tr(e._tag,e.error)),0===r.length)return[n,s];e=r.pop();break;case pc:if(n=Us(n,Tr(e._tag,e.defect)),0===r.length)return[n,s];e=r.pop();break;case yc:if(n=Us(n,Tr(e._tag,e.fiberId)),0===r.length)return[n,s];e=r.pop();break;case wc:switch(e.left._tag){case mc:e=e.right;break;case wc:e=Cc(e.left.left,Cc(e.left.right,e.right));break;case Sc:e=Nc(Cc(e.left.left,e.right),Cc(e.left.right,e.right));break;default:s=Hr(s,e.right),e=e.left}break;case Sc:r.push(e.right),e=e.left}throw new Error(v("Cause.evaluateCauseLoop"))},Dc={emptyCase:s,failCase:i,dieCase:i,interruptCase:s,sequentialCase:(t,e,r)=>e&&r,parallelCase:(t,e,r)=>e&&r},Pc="SequentialCase",qc="ParallelCase",Uc=e(2,((t,{onDie:e,onEmpty:r,onFail:n,onInterrupt:s,onParallel:i,onSequential:o})=>Vc(t,void 0,{emptyCase:()=>r,failCase:(t,e)=>n(e),dieCase:(t,r)=>e(r),interruptCase:(t,e)=>s(e),sequentialCase:(t,e,r)=>o(e,r),parallelCase:(t,e,r)=>i(e,r)}))),Jc=e(3,((t,e,r)=>{let n=e,s=t;const i=[];for(;void 0!==s;){const t=r(n,s);switch(n=ce(t)?t.value:n,s._tag){case wc:case Sc:i.push(s.right),s=s.left;break;default:s=void 0}void 0===s&&i.length>0&&(s=i.pop())}return n})),Vc=e(3,((t,e,r)=>{const n=[t],s=[];for(;n.length>0;){const t=n.pop();switch(t._tag){case mc:s.push(Wt(r.emptyCase(e)));break;case gc:s.push(Wt(r.failCase(e,t.error)));break;case pc:s.push(Wt(r.dieCase(e,t.defect)));break;case yc:s.push(Wt(r.interruptCase(e,t.fiberId)));break;case wc:n.push(t.right),n.push(t.left),s.push(zt({_tag:Pc}));break;case Sc:n.push(t.right),n.push(t.left),s.push(zt({_tag:qc}))}}const i=[];for(;s.length>0;){const t=s.pop();switch(t._tag){case"Left":switch(t.left._tag){case Pc:{const t=i.pop(),n=i.pop(),s=r.sequentialCase(e,t,n);i.push(s);break}case qc:{const t=i.pop(),n=i.pop(),s=r.parallelCase(e,t,n);i.push(s);break}}break;case"Right":i.push(t.right)}}if(0===i.length)throw new Error("BUG: Cause.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues");return i.pop()})),Gc=(t,e)=>Fc(t)?"All fibers interrupted without errors.":Xc(t).map((function(t){return!0!==e?.renderErrorCause||void 0===t.cause?t.stack:`${t.stack} {\n${Hc(t.cause," ")}\n}`})).join("\n"),Hc=(t,e)=>{const r=t.stack.split("\n");let n=`${e}[cause]: ${r[0]}`;for(let t=1,s=r.length;t<s;t++)n+=`\n${e}${r[t]}`;return t.cause&&(n+=` {\n${Hc(t.cause,`${e} `)}\n${e}}`),n};class Wc extends globalThis.Error{span=void 0;constructor(t){const e="object"==typeof t&&null!==t,r=Error.stackTraceLimit;Error.stackTraceLimit=1,super(zc(t),e&&"cause"in t&&void 0!==t.cause?{cause:new Wc(t.cause)}:void 0),""===this.message&&(this.message="An error has occurred"),Error.stackTraceLimit=r,this.name=t instanceof Error?t.name:"Error",e&&(Zc in t&&(this.span=t[Zc]),Object.keys(t).forEach((e=>{e in this||(this[e]=t[e])}))),this.stack=Qc(`${this.name}: ${this.message}`,t instanceof Error&&t.stack?t.stack:"",this.span)}}const zc=t=>{if("string"==typeof t)return t;if("object"==typeof t&&null!==t&&t instanceof Error)return t.message;try{if(g(t,"toString")&&p(t.toString)&&t.toString!==Object.prototype.toString&&t.toString!==globalThis.Array.prototype.toString)return t.toString()}catch{}return Z(t)},Kc=/\((.*)\)/g,Yc=d("effect/Tracer/spanToTrace",(()=>new WeakMap)),Qc=(t,e,r)=>{const n=[t],s=e.startsWith(t)?e.slice(t.length).split("\n"):e.split("\n");for(let t=1;t<s.length;t++)if(s[t].includes(" at new BaseEffectError")||s[t].includes(" at new YieldableError"))t++;else{if(s[t].includes("Generator.next"))break;if(s[t].includes("effect_internal_function"))break;n.push(s[t].replace(/at .*effect_instruction_i.*\((.*)\)/,"at $1").replace(/EffectPrimitive\.\w+/,"<anonymous>"))}if(r){let t=r,e=0;for(;t&&"Span"===t._tag&&e<10;){const r=Yc.get(t);if("function"==typeof r){const e=r();if("string"==typeof e){const r=e.matchAll(Kc);let s=!1;for(const[,e]of r)s=!0,n.push(` at ${t.name} (${e})`);s||n.push(` at ${t.name} (${e.replace(/^at /,"")})`)}else n.push(` at ${t.name}`)}else n.push(` at ${t.name}`);t=fe(t.parent),e++}}return n.join("\n")},Zc=Symbol.for("effect/SpanAnnotation"),Xc=t=>Vc(t,void 0,{emptyCase:()=>[],dieCase:(t,e)=>[new Wc(e)],failCase:(t,e)=>[new Wc(e)],interruptCase:()=>[],parallelCase:(t,e,r)=>[...e,...r],sequentialCase:(t,e,r)=>[...e,...r]}),tu="Pending",eu="Done",ru=Symbol.for("effect/Deferred"),nu={_E:t=>t,_A:t=>t},su=t=>({_tag:eu,effect:t});class iu{self;called=!1;constructor(t){this.self=t}next(t){return this.called?{value:t,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(t){return{value:t,done:!0}}throw(t){throw t}[Symbol.iterator](){return new iu(this.self)}}const ou=(t,e)=>{const r=new au("Blocked");return r.effect_instruction_i0=t,r.effect_instruction_i1=e,r},cu=Symbol.for("effect/Effect");class uu{patch;op;_op=yt;constructor(t,e){this.patch=t,this.op=e}}class au{_op;effect_instruction_i0=void 0;effect_instruction_i1=void 0;effect_instruction_i2=void 0;trace=void 0;[cu]=Et;constructor(t){this._op=t}[J](t){return this===t}[A](){return U(this,x(this))}pipe(){return nt(this,arguments)}toJSON(){return{_id:"Effect",_op:this._op,effect_instruction_i0:K(this.effect_instruction_i0),effect_instruction_i1:K(this.effect_instruction_i1),effect_instruction_i2:K(this.effect_instruction_i2)}}toString(){return Y(this.toJSON())}[z](){return this.toJSON()}[Symbol.iterator](){return new iu(new k(this))}}class hu{_op;effect_instruction_i0=void 0;effect_instruction_i1=void 0;effect_instruction_i2=void 0;trace=void 0;[cu]=Et;constructor(t){this._op=t,this._tag=t}[J](t){return Wa(t)&&"Failure"===t._op&&V(this.effect_instruction_i0,t.effect_instruction_i0)}[A](){return u(D(this._tag),$(R(this.effect_instruction_i0)),U(this))}get cause(){return this.effect_instruction_i0}pipe(){return nt(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,cause:this.cause.toJSON()}}toString(){return Y(this.toJSON())}[z](){return this.toJSON()}[Symbol.iterator](){return new iu(new k(this))}}class lu{_op;effect_instruction_i0=void 0;effect_instruction_i1=void 0;effect_instruction_i2=void 0;trace=void 0;[cu]=Et;constructor(t){this._op=t,this._tag=t}[J](t){return Wa(t)&&"Success"===t._op&&V(this.effect_instruction_i0,t.effect_instruction_i0)}[A](){return u(D(this._tag),$(R(this.effect_instruction_i0)),U(this))}get value(){return this.effect_instruction_i0}pipe(){return nt(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,value:K(this.value)}}toString(){return Y(this.toJSON())}[z](){return this.toJSON()}[Symbol.iterator](){return new iu(new k(this))}}const fu=t=>g(t,cu),du=t=>{const e=new au(mt);return e.effect_instruction_i0=t,e},bu=e(3,((t,e,r)=>Zu((n=>Ru(t,(t=>Ru(ku(zu((()=>n(e(t))))),(e=>zu((()=>r(t,e))).pipe(Lu({onFailure:t=>{switch(e._tag){case ot:return Cu(Cc(e.effect_instruction_i0,t));case ht:return Cu(t)}},onSuccess:()=>e})))))))))),pu=e(2,((t,e)=>Ru(t,(()=>Wu(e))))),mu=t=>pu(t,void 0),gu=function(){const t=new au(it);switch(arguments.length){case 2:t.effect_instruction_i0=arguments[0],t.commit=arguments[1];break;case 3:t.effect_instruction_i0=arguments[0],t.effect_instruction_i1=arguments[1],t.commit=arguments[2];break;case 4:t.effect_instruction_i0=arguments[0],t.effect_instruction_i1=arguments[1],t.effect_instruction_i2=arguments[2],t.commit=arguments[3];break;default:throw new Error(v("you're not supposed to end up here"))}return t},yu=(t,e=li)=>{const r=new au(st);let n;return r.effect_instruction_i0=e=>{n=t(e)},r.effect_instruction_i1=e,Hu(r,(()=>fu(n)?n:Xu))},Su=(t,e=li)=>gu(t,(function(){let t,r;function n(e){t?t(e):void 0===r&&(r=e)}const s=new au(st);let i,o;return s.effect_instruction_i0=e=>{t=e,r&&e(r)},s.effect_instruction_i1=e,1!==this.effect_instruction_i0.length?(o=new AbortController,i=j((()=>this.effect_instruction_i0(n,o.signal)))):i=j((()=>this.effect_instruction_i0(n))),i||o?Hu(s,(()=>(o&&o.abort(),i??Xu))):s})),wu=e(2,((t,e)=>Bu(t,{onFailure:e,onSuccess:Wu}))),vu=Symbol.for("effect/OriginalAnnotation"),_u=(t,e)=>ce(e)?new Proxy(t,{has:(t,e)=>e===Zc||e===vu||e in t,get:(r,n)=>n===Zc?e.value:n===vu?t:r[n]}):t,Ou=t=>m(t)&&!(Zc in t)?du((e=>Cu(kc(_u(t,bh(e)))))):Cu(kc(t)),Eu=t=>ju((()=>kc(new qa(t)))),Mu=t=>Bu(t,{onFailure:t=>Wu(zt(t)),onSuccess:t=>Wu(Wt(t))}),ku=t=>Tu(t,{onFailure:Ya,onSuccess:Xa}),Iu=t=>m(t)&&!(Zc in t)?du((e=>Cu(Mc(_u(t,bh(e)))))):Cu(Mc(t)),Nu=t=>Ru(Ku(t),Iu),Cu=t=>{const e=new hu(ot);return e.effect_instruction_i0=t,e},ju=t=>Ru(Ku(t),Cu),Fu=du((t=>Wu(t.id()))),Au=t=>du((e=>t(e.id()))),Ru=e(2,((t,e)=>{const r=new au(ut);return r.effect_instruction_i0=t,r.effect_instruction_i1=e,r})),xu=t=>{const e=new au("OnStep");return e.effect_instruction_i0=t,e},$u=t=>Ru(t,r),Tu=e(2,((t,e)=>Lu(t,{onFailure:t=>Wu(e.onFailure(t)),onSuccess:t=>Wu(e.onSuccess(t))}))),Lu=e(2,((t,e)=>{const r=new au(at);return r.effect_instruction_i0=t,r.effect_instruction_i1=e.onFailure,r.effect_instruction_i2=e.onSuccess,r})),Bu=e(2,((t,e)=>Lu(t,{onFailure:t=>{const r=(t=>qr(Jc(t,$r(),((t,e)=>e._tag===pc?ie(u(t,Hr(e.defect))):se()))))(t);if(r.length>0)return Cu((t=>Uc(t,{onEmpty:Ec,onFail:kc,onDie:kc,onInterrupt:Ic,onSequential:Cc,onParallel:Nc}))(t));const n=(t=>qr(Jc(t,$r(),((t,e)=>e._tag===gc?ie(u(t,Hr(e.error))):se()))))(t);return n.length>0?e.onFailure(Yr(n)):Cu(t)},onSuccess:e.onSuccess}))),Du=e(2,((t,e)=>zu((()=>{const r=Se(t),n=ge(r.length);let s=0;return pu(ta({while:()=>s<r.length,body:()=>e(r[s],s),step:t=>{n[s++]=t}}),n)})))),Pu=e(2,((t,e)=>zu((()=>{const r=Se(t);let n=0;return ta({while:()=>n<r.length,body:()=>e(r[n],n),step:()=>{n++}})})))),qu=t=>{const e=new au(dt);return e.effect_instruction_i0=Ro(r=1,r),e.effect_instruction_i1=()=>t,e;var r},Uu=e(2,((t,e)=>Ru(t,(t=>Ku((()=>e(t))))))),Ju=e(2,((t,e)=>Bu(t,{onFailure:t=>Nu((()=>e.onFailure(t))),onSuccess:t=>Ku((()=>e.onSuccess(t)))}))),Vu=e(2,((t,e)=>Lu(t,{onFailure:t=>{const r=Ac(t);switch(r._tag){case"Left":return Nu((()=>e(r.left)));case"Right":return Cu(r.right)}},onSuccess:Wu}))),Gu=e(2,((t,e)=>Zu((r=>Lu(r(t),{onFailure:t=>{const r=Ya(t);return Lu(e(r),{onFailure:e=>Ya(Cc(t,e)),onSuccess:()=>r})},onSuccess:t=>{const r=Xa(t);return sa(e(r),r)}}))))),Hu=e(2,((t,e)=>Gu(t,Za({onFailure:t=>Fc(t)?mu(e((t=>Jc(t,Bs(),((t,e)=>e._tag===yc?ie(u(t,Us(e.fiberId))):se())))(t))):Xu,onSuccess:()=>Xu})))),Wu=t=>{const e=new lu(ht);return e.effect_instruction_i0=t,e},zu=t=>{const e=new au(it);return e.commit=t,e},Ku=t=>{const e=new au(lt);return e.effect_instruction_i0=t,e},Yu=e((t=>3===t.length||2===t.length&&!(m(t[1])&&"onlyEffect"in t[1])),((t,e)=>Ru(t,(t=>{const r="function"==typeof e?e(t):e;return fu(r)?pu(r,t):g(n=r,"then")&&p(n.then)?yu((e=>{r.then((()=>e(Wu(t))),(t=>e(Iu(new Ha(t,"An unknown error occurred in Effect.tap")))))})):Wu(t);var n})))),Qu=t=>{const e=new au(dt);return e.effect_instruction_i0=zo(1),e.effect_instruction_i1=()=>t,e},Zu=t=>gu(t,(function(){const t=new au(dt);return t.effect_instruction_i0=zo(1),t.effect_instruction_i1=t=>Do(t)?j((()=>this.effect_instruction_i0(qu))):j((()=>this.effect_instruction_i0(Qu))),t})),Xu=Wu(void 0),ta=t=>{const e=new au(bt);return e.effect_instruction_i0=t.while,e.effect_instruction_i1=t.body,e.effect_instruction_i2=t.step,e},ea=t=>{const e=new au(gt);return void 0!==t?.priority?Ca(e,t.priority):e},ra=e(2,((t,e)=>Ru(t,(t=>Uu(e,(e=>[t,e])))))),na=e(2,((t,e)=>Ru(t,(t=>pu(e,t))))),sa=e(2,((t,e)=>Ru(t,(()=>e)))),ia=e(2,((t,e)=>Ru(t.interruptAsFork(e),(()=>t.await)))),oa={_tag:"Error",syslog:3,label:"ERROR",ordinal:4e4,pipe(){return nt(this,arguments)}},ca={_tag:"Warning",syslog:4,label:"WARN",ordinal:3e4,pipe(){return nt(this,arguments)}},ua={_tag:"Info",syslog:6,label:"INFO",ordinal:2e4,pipe(){return nt(this,arguments)}},aa={_tag:"Debug",syslog:7,label:"DEBUG",ordinal:1e4,pipe(){return nt(this,arguments)}},ha=Symbol.for("effect/FiberRef"),la={_A:t=>t},fa=t=>du((e=>Xa(e.getFiberRef(t)))),da=e(2,((t,e)=>Ru(fa(t),e))),ba=e(2,((t,e)=>pa(t,(()=>[void 0,e])))),pa=e(2,((t,e)=>du((r=>{const[n,s]=e(r.getFiberRef(t));return r.setFiberRef(t,s),Wu(n)})))),ma=e(3,((t,e,r)=>bu(na(fa(e),ba(e,r)),(()=>t),(t=>ba(e,t))))),ga=(t,e)=>va(t,{differ:No(),fork:e?.fork??r,join:e?.join}),ya=t=>{const e=Io({empty:io(),combine:(t,e)=>ho(e)(t),diff:(t,e)=>((t,e)=>{const[r,n]=Hs([t,io()],(([t,e],r)=>Ps(r)(t)?[Js(r)(t),e]:[t,ho(uo(r))(e)]))(e);return Hs(n,((t,e)=>ho((t=>{const e=Object.create(ao);return e.value=t,e})(e))(t)))(r)})(t,e),patch:(t,e)=>lo(e)(t)});return va(t,{differ:e,fork:e.empty})},Sa=t=>{const e=(t=>Io({empty:go(),combine:(t,e)=>Oo(t,e),diff:(e,r)=>(t=>{let e=0,r=go();for(;e<t.oldValue.length&&e<t.newValue.length;){const n=t.differ.diff(t.oldValue[e],t.newValue[e]);V(n,t.differ.empty)||(r=Oo(r,_o(e,n))),e+=1}return e<t.oldValue.length&&(r=Oo(r,((t,e)=>{const r=Object.create(wo);return r.from=0,r.until=e,r})(0,e))),e<t.newValue.length&&(r=Oo(r,(t=>{const e=Object.create(So);return e.values=t,e})(Re(e)(t.newValue)))),r})({oldValue:e,newValue:r,differ:t}),patch:(e,r)=>Eo(e,r,t)}))(No());return va(t,{differ:e,fork:e.empty})},wa=t=>{const e=Io({empty:Gi(),combine:(t,e)=>Xi(e)(t),diff:(t,e)=>((t,e)=>{const r=new Map(t.unsafeMap);let n=Gi();for(const[t,s]of e.unsafeMap.entries())if(r.has(t)){const e=r.get(t);r.delete(t),V(e,s)||(n=Xi(Zi(t,(()=>s)))(n))}else r.delete(t),n=Xi(zi(t,s))(n);for(const[t]of r.entries())n=Xi(Yi(t))(n);return n})(t,e),patch:(t,e)=>to(e)(t)});return va(t,{differ:e,fork:e.empty})},va=(t,e)=>({...It,[ha]:la,initial:t,commit(){return fa(this)},diff:(t,r)=>e.differ.diff(t,r),combine:(t,r)=>e.differ.combine(t,r),patch:t=>r=>e.differ.patch(t,r),fork:e.fork,join:e.join??((t,e)=>e)}),_a=t=>va(t,{differ:Wo,fork:Wo.empty}),Oa=d(Symbol.for("effect/FiberRef/currentContext"),(()=>wa(wr()))),Ea=d(Symbol.for("effect/FiberRef/currentSchedulingPriority"),(()=>ga(0))),Ma=d(Symbol.for("effect/FiberRef/currentMaxOpsBeforeYield"),(()=>ga(2048))),ka=d(Symbol.for("effect/FiberRef/currentLogAnnotation"),(()=>ga(bi()))),Ia=d(Symbol.for("effect/FiberRef/currentLogLevel"),(()=>ga(ua))),Na=d(Symbol.for("effect/FiberRef/currentLogSpan"),(()=>ga(Ai()))),Ca=e(2,((t,e)=>ma(t,Ea,e))),ja=d(Symbol.for("effect/FiberRef/currentConcurrency"),(()=>ga("unbounded"))),Fa=d(Symbol.for("effect/FiberRef/currentRequestBatching"),(()=>ga(!0))),Aa=d(Symbol.for("effect/FiberRef/currentUnhandledErrorLogLevel"),(()=>ga(ie(aa)))),Ra=d(Symbol.for("effect/FiberRef/versionMismatchErrorLogLevel"),(()=>ga(ie(ca)))),xa=d(Symbol.for("effect/FiberRef/currentMetricLabels"),(()=>Sa([]))),$a=d(Symbol.for("effect/FiberRef/currentForkScopeOverride"),(()=>ga(se(),{fork:()=>se(),join:t=>t}))),Ta=d(Symbol.for("effect/FiberRef/currentInterruptedCause"),(()=>ga(Ec,{fork:()=>Ec,join:t=>t}))),La=(t,e)=>t.fork(e),Ba=function(){class t extends globalThis.Error{commit(){return Iu(this)}toJSON(){const t={...this};return this.message&&(t.message=this.message),this.cause&&(t.cause=this.cause),t}[z](){return this.toString!==globalThis.Error.prototype.toString?this.stack?`${this.toString()}\n${this.stack.split("\n").slice(1).join("\n")}`:this.toString():"Bun"in globalThis?Gc(Mc(this),{renderErrorCause:!0}):this}}return Object.assign(t.prototype,Nt),t}(),Da=(t,e)=>{class r extends Ba{_tag=e}return Object.assign(r.prototype,t),r.prototype.name=e,r},Pa=Symbol.for("effect/Cause/errors/RuntimeException"),qa=Da({[Pa]:Pa},"RuntimeException"),Ua=Symbol.for("effect/Cause/errors/InterruptedException"),Ja=Symbol.for("effect/Cause/errors/NoSuchElement"),Va=Da({[Ja]:Ja},"NoSuchElementException"),Ga=Symbol.for("effect/Cause/errors/UnknownException"),Ha=function(){class t extends Ba{_tag="UnknownException";error;constructor(t,e){super(e??"An unknown error occurred",{cause:t}),this.error=t}}return Object.assign(t.prototype,{[Ga]:Ga,name:"UnknownException"}),t}(),Wa=t=>fu(t)&&"_tag"in t&&("Success"===t._tag||"Failure"===t._tag),za=(t,e)=>rh(t,e?.parallel?Nc:Cc),Ka=t=>Ya(Mc(t)),Ya=t=>{const e=new hu(ot);return e.effect_instruction_i0=t,e},Qa=e(2,((t,e)=>{switch(t._tag){case ot:return Ya(t.effect_instruction_i0);case ht:return Xa(e(t.effect_instruction_i0))}})),Za=e(2,((t,{onFailure:e,onSuccess:r})=>{switch(t._tag){case ot:return e(t.effect_instruction_i0);case ht:return r(t.effect_instruction_i0)}})),Xa=t=>{const e=new lu(ht);return e.effect_instruction_i0=t,e},th=Xa(void 0),eh=e(3,((t,e,{onFailure:r,onSuccess:n})=>{switch(t._tag){case ot:switch(e._tag){case ht:return Ya(t.effect_instruction_i0);case ot:return Ya(r(t.effect_instruction_i0,e.effect_instruction_i0))}case ht:switch(e._tag){case ht:return Xa(n(t.effect_instruction_i0,e.effect_instruction_i0));case ot:return Ya(e.effect_instruction_i0)}}})),rh=(t,e)=>{const r=Br(t);return Kr(r)?u(Zr(r),We(u(Qr(r),Qa(Lr)),((t,r)=>u(t,eh(r,{onSuccess:(t,e)=>u(t,Hr(e)),onFailure:e})))),Qa(qr),Qa((t=>Pr(t))),ie):se()},nh=t=>{var e;return{...It,[ru]:nu,state:Ks((e=[],{_tag:tu,joiners:e})),commit(){return sh(this)},blockingOn:t}},sh=t=>((t,e=li)=>zu((()=>yu(t,e))))((e=>{const r=Qs(t.state);switch(r._tag){case eu:return e(r.effect);case tu:return r.joiners.push(e),uh(t,e)}}),t.blockingOn),ih=e(2,((t,e)=>Ku((()=>{const r=Qs(t.state);switch(r._tag){case eu:return!1;case tu:Zs(t.state,su(e));for(let t=0,n=r.joiners.length;t<n;t++)r.joiners[t](e);return!0}})))),oh=e(2,((t,e)=>ih(t,e))),ch=(t,e)=>{const r=Qs(t.state);if(r._tag===tu){Zs(t.state,su(e));for(let t=0,n=r.joiners.length;t<n;t++)r.joiners[t](e)}},uh=(t,e)=>Ku((()=>{const r=Qs(t.state);if(r._tag===tu){const t=r.joiners.indexOf(e);t>=0&&r.joiners.splice(t,1)}})),ah=du((t=>Xa(t.currentContext))),hh=()=>ah,lh=t=>Ru(hh(),t),fh=e(2,((t,e)=>ma(Oa,e)(t))),dh=e(2,((t,e)=>lh((r=>fh(t,e(r)))))),bh=t=>{const e=t.currentSpan;return void 0!==e&&"Span"===e._tag?ie(e):se()},ph=sh,mh=oh,gh=nh,yh=Xa,Sh=Symbol.for("effect/MutableHashMap"),wh={[Sh]:Sh,[Symbol.iterator](){return new vh(this)},toString(){return Y(this.toJSON())},toJSON(){return{_id:"MutableHashMap",values:Array.from(this).map(K)}},[z](){return this.toJSON()},pipe(){return nt(this,arguments)}};class vh{self;referentialIterator;bucketIterator;constructor(t){this.self=t,this.referentialIterator=t.referential[Symbol.iterator]()}next(){if(void 0!==this.bucketIterator)return this.bucketIterator.next();const t=this.referentialIterator.next();return t.done?(this.bucketIterator=new _h(this.self.buckets.values()),this.next()):t}[Symbol.iterator](){return new vh(this.self)}}class _h{backing;constructor(t){this.backing=t}currentBucket;next(){if(void 0===this.currentBucket){const t=this.backing.next();if(t.done)return t;this.currentBucket=t.value[Symbol.iterator]()}const t=this.currentBucket.next();return t.done?(this.currentBucket=void 0,this.next()):t}}const Oh=()=>{const t=Object.create(wh);return t.referential=new Map,t.buckets=new Map,t.bucketsSize=0,t},Eh=e(2,((t,e)=>{if(!1===H(e))return t.referential.has(e)?ie(t.referential.get(e)):se();const r=e[A](),n=t.buckets.get(r);return void 0===n?se():Mh(t,n,e)})),Mh=(t,e,r,n=!1)=>{for(let s=0,i=e.length;s<i;s++)if(r[J](e[s][0])){const r=e[s][1];return n&&(e.splice(s,1),t.bucketsSize--),ie(r)}return se()},kh=e(2,((t,e)=>ce(Eh(t,e)))),Ih=e(3,((t,e,r)=>{if(!1===H(e))return t.referential.set(e,r),t;const n=e[A](),s=t.buckets.get(n);return void 0===s?(t.buckets.set(n,[[e,r]]),t.bucketsSize++,t):(Nh(t,s,e),s.push([e,r]),t.bucketsSize++,t)})),Nh=(t,e,r)=>{for(let n=0,s=e.length;n<s;n++)if(r[J](e[n][0]))return e.splice(n,1),void t.bucketsSize--},Ch=e(2,((t,e)=>{if(!1===H(e))return t.referential.delete(e),t;const r=e[A](),n=t.buckets.get(r);return void 0===n||(Nh(t,n,e),0===n.length&&t.buckets.delete(r)),t})),jh=t=>t.referential.size+t.bucketsSize,Fh=Symbol.for("effect/MutableList"),Ah={[Fh]:Fh,[Symbol.iterator](){let t=!1,e=this.head;return{next(){if(t)return this.return();if(null==e)return t=!0,this.return();const r=e.value;return e=e.next,{done:t,value:r}},return:e=>(t||(t=!0),{done:!0,value:e})}},toString(){return Y(this.toJSON())},toJSON(){return{_id:"MutableList",values:Array.from(this).map(K)}},[z](){return this.toJSON()},pipe(){return nt(this,arguments)}},Rh=t=>t._length,xh=e(2,((t,e)=>{const r=(t=>({value:t,removed:!1,prev:void 0,next:void 0}))(e);return void 0===t.head&&(t.head=r),void 0===t.tail||(t.tail.next=r,r.prev=t.tail),t.tail=r,t._length+=1,t})),$h=Symbol.for("effect/MutableQueue"),Th=Symbol.for("effect/mutable/MutableQueue/Empty"),Lh={[$h]:$h,[Symbol.iterator](){return Array.from(this.queue)[Symbol.iterator]()},toString(){return Y(this.toJSON())},toJSON(){return{_id:"MutableQueue",values:Array.from(this).map(K)}},[z](){return this.toJSON()},pipe(){return nt(this,arguments)}},Bh=t=>{const e=Object.create(Lh);return e.queue=(()=>{const t=Object.create(Ah);return t.head=void 0,t.tail=void 0,t._length=0,t})(),e.capacity=t,e},Dh=e(2,((t,e)=>{const r=Rh(t.queue);return(void 0===t.capacity||r!==t.capacity)&&(xh(e)(t.queue),!0)})),Ph=e(2,((t,e)=>(t=>0===Rh(t))(t.queue)?e:(t=>{const e=t.head;if(void 0!==e)return((t,e)=>{e.removed||(e.removed=!0,void 0!==e.prev&&void 0!==e.next?(e.prev.next=e.next,e.next.prev=e.prev):void 0!==e.prev?(t.tail=e.prev,e.prev.next=void 0):void 0!==e.next?(t.head=e.next,e.next.prev=void 0):(t.tail=void 0,t.head=void 0),t._length>0&&(t._length-=1))})(t,e),e.value})(t.queue))),qh=Symbol.for("effect/Clock"),Uh=Sr("effect/Clock"),Jh={unsafeSchedule(t,e){const r=En(e);if(r>2147483647)return i;let n=!1;const s=setTimeout((()=>{n=!0,t()}),r);return()=>(clearTimeout(s),!n)}},Vh=function(){const t=BigInt(1e6);if("undefined"==typeof performance||"function"!=typeof performance.now)return()=>BigInt(Date.now())*t;let e;return()=>(void 0===e&&(e=BigInt(Date.now())*t-BigInt(Math.round(1e6*performance.now()))),e+BigInt(Math.round(1e6*performance.now())))}(),Gh=function(){const t="object"==typeof process&&"hrtime"in process&&"function"==typeof process.hrtime.bigint?process.hrtime:void 0;if(!t)return Vh;const e=Vh()-t.bigint();return()=>e+t.bigint()}();class Hh{[qh]=qh;unsafeCurrentTimeMillis(){return Date.now()}unsafeCurrentTimeNanos(){return Gh()}currentTimeMillis=Ku((()=>this.unsafeCurrentTimeMillis()));currentTimeNanos=Ku((()=>this.unsafeCurrentTimeNanos()));scheduler(){return Wu(Jh)}sleep(t){return Su((e=>{const r=Jh.unsafeSchedule((()=>e(Xu)),t);return mu(Ku(r))}))}}const Wh=()=>new Hh,zh="InvalidData",Kh="MissingData",Yh="SourceUnavailable",Qh="Unsupported",Zh=Symbol.for("effect/ConfigError"),Xh={_tag:"ConfigError",[Zh]:Zh},tl=(t,e)=>{const r=Object.create(Xh);return r._op="And",r.left=t,r.right=e,Object.defineProperty(r,"toString",{enumerable:!1,value(){return`${this.left} and ${this.right}`}}),Object.defineProperty(r,"message",{enumerable:!1,get(){return this.toString()}}),r},el=(t,e)=>{const r=Object.create(Xh);return r._op="Or",r.left=t,r.right=e,Object.defineProperty(r,"toString",{enumerable:!1,value(){return`${this.left} or ${this.right}`}}),Object.defineProperty(r,"message",{enumerable:!1,get(){return this.toString()}}),r},rl=(t,e,r={pathDelim:"."})=>{const n=Object.create(Xh);return n._op=zh,n.path=t,n.message=e,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`(Invalid data at ${u(this.path,Ze(r.pathDelim))}: "${this.message}")`}}),n},nl=(t,e,r={pathDelim:"."})=>{const n=Object.create(Xh);return n._op=Kh,n.path=t,n.message=e,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`(Missing data at ${u(this.path,Ze(r.pathDelim))}: "${this.message}")`}}),n},sl=(t,e,r,n={pathDelim:"."})=>{const s=Object.create(Xh);return s._op=Yh,s.path=t,s.message=e,s.cause=r,Object.defineProperty(s,"toString",{enumerable:!1,value(){return`(Source unavailable at ${u(this.path,Ze(n.pathDelim))}: "${this.message}")`}}),s},il=(t,e,r={pathDelim:"."})=>{const n=Object.create(Xh);return n._op=Qh,n.path=t,n.message=e,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`(Unsupported operation at ${u(this.path,Ze(r.pathDelim))}: "${this.message}")`}}),n},ol=e(2,((t,e)=>{switch(t._op){case"And":return tl(ol(t.left,e),ol(t.right,e));case"Or":return el(ol(t.left,e),ol(t.right,e));case zh:return rl([...e,...t.path],t.message);case Kh:return nl([...e,...t.path],t.message);case Yh:return sl([...e,...t.path],t.message,t.cause);case Qh:return il([...e,...t.path],t.message)}})),cl={_tag:"Empty"},ul=e(2,((t,e)=>{let r=Ri(e),n=t;for(;"Cons"===r._tag;){const t=r.head;switch(t._tag){case"Empty":r=r.tail;break;case"AndThen":r=Fi(t.first,Fi(t.second,r.tail));break;case"MapName":n=Ge(n,t.f),r=r.tail;break;case"Nested":n=we(n,t.name),r=r.tail;break;case"Unnested":if(!u(Ne(n),pe(t.name)))return zt(nl(n,`Expected ${t.name} to be in path in ConfigProvider#unnested`));n=Fe(n),r=r.tail}}return Wt(n)})),al=(t,e)=>[...t,...e],hl=Symbol.for("effect/ConfigProvider"),ll=Sr("effect/ConfigProvider"),fl=Symbol.for("effect/ConfigProviderFlat"),dl=t=>({[hl]:hl,pipe(){return nt(this,arguments)},...t}),bl=t=>{const{pathDelim:e,seqDelim:r}=Object.assign({},{pathDelim:"_",seqDelim:","},t),n=()=>"undefined"!=typeof process&&"env"in process&&"object"==typeof process.env?process.env:{};return s=(t=>({[fl]:fl,patch:t.patch,load:(e,r,n=!0)=>t.load(e,r,n),enumerateChildren:t.enumerateChildren}))({load:(t,s,i=!0)=>{const o=(t=>u(t,Ze(e)))(t),c=n();return u(o in c?ie(c[o]):se(),Vu((()=>nl(t,`Expected ${o} to exist in the process context`))),Ru((e=>gl(e,t,s,r,i))))},enumerateChildren:t=>Ku((()=>{const r=n();return(t=>{const e=Cs(Is());for(const r of t)As(e,r);return js(e)})(Object.keys(r).map((t=>t.toUpperCase().split(e))).filter((e=>{for(let r=0;r<t.length;r++){const n=u(t,Ie(r)),s=e[r];if(void 0===s||n!==s)return!1}return!0})).flatMap((e=>e.slice(t.length,t.length+1))))})),patch:cl}),dl({load:t=>Ru(pl(s,[],t,!1),(e=>ue(Ne(e),{onNone:()=>Iu(nl([],`Expected a single value having structure: ${t}`)),onSome:Wu}))),flattened:s});var s},pl=(t,e,r,n)=>{const s=r;switch(s._tag){case"Constant":return Wu(Ve(s.value));case"Described":return zu((()=>pl(t,e,s.config,n)));case"Fail":return Iu(nl(e,s.message));case"Fallback":return u(zu((()=>pl(t,e,s.first,n))),wu((r=>s.condition(r)?u(pl(t,e,s.second,n),wu((t=>Iu(el(r,t))))):Iu(r))));case"Lazy":return zu((()=>pl(t,e,s.config(),n)));case"MapOrFail":return zu((()=>u(pl(t,e,s.original,n),Ru(Du((t=>u(s.mapOrFail(t),Vu(ol(((t,e)=>{let r=e;if("Nested"===r._tag){const e=t.slice();for(;"Nested"===r._tag;)e.push(r.name),r=r.config;return e}return t})(e,s.original))))))))));case"Nested":return zu((()=>pl(t,al(e,Ve(s.name)),s.config,n)));case"Primitive":return u(ul(e,t.patch),Ru((e=>u(t.load(e,s,n),Ru((t=>{if(0===t.length){const t=u(Ee(r=e)?ie(je(r)):se(),ae((()=>"<n/a>")));return Iu(nl([],`Expected ${s.description} with name ${t}`))}var r;return Wu(t)}))))));case"Sequence":return u(ul(e,t.patch),Ru((r=>u(t.enumerateChildren(r),Ru(Sl),Ru((r=>0===r.length?zu((()=>Uu(pl(t,e,s.config,!0),Ve))):u(Du(r,(r=>pl(t,ve(e,`[${r}]`),s.config,!0))),Uu((t=>{const e=He(t);return Ve(0===e.length?[]:e)})))))))));case"HashMap":return zu((()=>u(ul(e,t.patch),Ru((e=>u(t.enumerateChildren(e),Ru((r=>u(r,Du((r=>pl(t,al(e,Ve(r)),s.valueConfig,n))),Uu((t=>0===t.length?Ve(bi()):u(yl(t),Ge((t=>(t=>{const e=bs(is());for(const r of t)hs(e,r[0],r[1]);return(r=e)._editable=!1,r;var r})(Te(Se(r),t))))))))))))))));case"ZipWith":return zu((()=>u(pl(t,e,s.left,n),Mu,Ru((r=>u(pl(t,e,s.right,n),Mu,Ru((t=>{if(Kt(r)&&Kt(t))return Iu(tl(r.left,t.left));if(Kt(r)&&Yt(t))return Iu(r.left);if(Yt(r)&&Kt(t))return Iu(t.left);if(Yt(r)&&Yt(t)){const n=u(e,Ze(".")),i=ml(e,n),[o,c]=((t,e,r,n)=>{const s=ze(r.length,(e=>e>=n.length?se():ie([t(e),e+1]))),i=ze(n.length,(t=>t>=r.length?se():ie([e(t),t+1])));return[al(r,s),al(n,i)]})(i,i,u(r.right,Ge(Wt)),u(t.right,Ge(Wt)));return u(o,Te(c),Du((([t,e])=>u(ra(t,e),Uu((([t,e])=>s.zip(t,e)))))))}throw new Error("BUG: ConfigProvider.fromFlatLoop - please report an issue at https://github.com/Effect-TS/effect/issues")}))))))))}},ml=(t,e)=>r=>zt(nl(t,`The element at index ${r} in a sequence at path "${e}" was missing`)),gl=(t,e,r,n,s)=>s?u(((t,e)=>{const r=t.split(new RegExp(`\\s*${(t=>t.replace(/[/\\^$*+?.()|[\]{}]/g,"\\$&"))(e)}\\s*`));return r})(t,n),Du((t=>r.parse(t.trim()))),Vu(ol(e))):u(r.parse(t),Ju({onFailure:ol(e),onSuccess:Ve})),yl=t=>Object.keys(t[0]).map((e=>t.map((t=>t[e])))),Sl=t=>u(Du(t,vl),Ju({onFailure:()=>[],onSuccess:$e(Xe)}),Mu,Uu(Qt)),wl=/^(\[(\d+)\])$/,vl=t=>{const e=t.match(wl);if(null!==e){const t=e[2];return u(void 0!==t&&t.length>0?ie(t):se(),be(_l))}return se()},_l=t=>{const e=Number.parseInt(t);return Number.isNaN(e)?se():ie(e)},Ol=Symbol.for("effect/Console"),El=Sr("effect/Console"),Ml={[Ol]:Ol,assert:(t,...e)=>Ku((()=>{console.assert(t,...e)})),clear:Ku((()=>{console.clear()})),count:t=>Ku((()=>{console.count(t)})),countReset:t=>Ku((()=>{console.countReset(t)})),debug:(...t)=>Ku((()=>{console.debug(...t)})),dir:(t,e)=>Ku((()=>{console.dir(t,e)})),dirxml:(...t)=>Ku((()=>{console.dirxml(...t)})),error:(...t)=>Ku((()=>{console.error(...t)})),group:t=>Ku(t?.collapsed?()=>console.groupCollapsed(t?.label):()=>console.group(t?.label)),groupEnd:Ku((()=>{console.groupEnd()})),info:(...t)=>Ku((()=>{console.info(...t)})),log:(...t)=>Ku((()=>{console.log(...t)})),table:(t,e)=>Ku((()=>{console.table(t,e)})),time:t=>Ku((()=>console.time(t))),timeEnd:t=>Ku((()=>console.timeEnd(t))),timeLog:(t,...e)=>Ku((()=>{console.timeLog(t,...e)})),trace:(...t)=>Ku((()=>{console.trace(...t)})),warn:(...t)=>Ku((()=>{console.warn(...t)})),unsafe:console},kl=Symbol.for("effect/Random"),Il=Sr("effect/Random");class Nl{seed;[kl]=kl;PRNG;constructor(t){this.seed=t,this.PRNG=new O(t)}get next(){return Ku((()=>this.PRNG.number()))}get nextBoolean(){return Uu(this.next,(t=>t>.5))}get nextInt(){return Ku((()=>this.PRNG.integer(Number.MAX_SAFE_INTEGER)))}nextRange(t,e){return Uu(this.next,(r=>(e-t)*r+t))}nextIntBetween(t,e){return Ku((()=>this.PRNG.integer(e-t)+t))}shuffle(t){return Cl(t,(t=>this.nextIntBetween(0,t)))}}const Cl=(t,e)=>zu((()=>u(Ku((()=>Array.from(t))),Ru((t=>{const r=[];for(let e=t.length;e>=2;e-=1)r.push(e);return u(r,Pu((r=>u(e(r),Uu((e=>jl(t,r-1,e)))))),pu(Br(t)))}))))),jl=(t,e,r)=>{const n=t[e];return t[e]=t[r],t[r]=n,t},Fl=t=>new Nl(R(t)),Al=Symbol.for("effect/Tracer"),Rl=t=>({[Al]:Al,...t}),xl=Sr("effect/Tracer"),$l=Sr("effect/ParentSpan"),Tl=function(){return function(t){let e="";for(let r=0;r<t;r++)e+="abcdef0123456789".charAt(Math.floor(16*Math.random()));return e}}();class Ll{name;parent;context;startTime;kind;_tag="Span";spanId;traceId="native";sampled=!0;status;attributes;events=[];links;constructor(t,e,r,n,s,i){this.name=t,this.parent=e,this.context=r,this.startTime=s,this.kind=i,this.status={_tag:"Started",startTime:s},this.attributes=new Map,this.traceId="Some"===e._tag?e.value.traceId:Tl(32),this.spanId=Tl(16),this.links=Array.from(n)}end(t,e){this.status={_tag:"Ended",endTime:t,exit:e,startTime:this.status.startTime}}attribute(t,e){this.attributes.set(t,e)}event(t,e,r){this.events.push([t,e,r??{}])}addLinks(t){this.links.push(...t)}}const Bl=Rl({span:(t,e,r,n,s,i)=>new Ll(t,e,r,n,s,i),context:t=>t()}),Dl=u(wr(),_r(Uh,Wh()),_r(El,Ml),_r(Il,Fl(Math.random())),_r(ll,bl()),_r(xl,Bl)),Pl=d(Symbol.for("effect/DefaultServices/currentServices"),(()=>wa(Dl))),ql=Symbol.for("effect/FiberRefs");class Ul{locals;[ql]=ql;constructor(t){this.locals=t}pipe(){return nt(this,arguments)}}const Jl=e(3,((t,e,r)=>{const n=new Map(t.locals);return r.locals.forEach(((t,r)=>{const s=t[0][1];if(!t[0][0][J](e)){if(!n.has(r)){if(V(s,r.initial))return;return void n.set(r,[[e,r.join(r.initial,s)]])}const i=n.get(r),[o,c]=((t,e,r,n=!1)=>{const s=t;let i,o=e,c=r,u=n;for(;void 0===i;)if(Ee(o)&&Ee(c)){const t=Ce(o)[0],e=Fe(o),r=Ce(c)[0],n=Ce(c)[1],s=Fe(c);t.startTimeMillis<r.startTimeMillis?(c=s,u=!0):t.startTimeMillis>r.startTimeMillis?o=e:t.id<r.id?(c=s,u=!0):t.id>r.id?o=e:i=[n,u]}else i=[s.initial,!0];return i})(r,i,t);if(c){const t=r.diff(o,s),c=i[0][1],u=r.join(c,r.patch(t)(c));if(!V(c,u)){let t;const s=i[0][0];t=s[J](e)?[[s,u],...i.slice(1)]:[[e,u],...i],n.set(r,t)}}}})),new Ul(n)})),Vl=e(2,((t,e)=>{const r=new Map;return Gl(t,r,e),new Ul(r)})),Gl=(t,e,r)=>{t.locals.forEach(((t,n)=>{const s=t[0][1],i=n.patch(n.fork)(s);V(s,i)?e.set(n,t):e.set(n,[[r,i],...t])}))},Hl=e(2,((t,e)=>{const r=new Map(t.locals);return r.delete(e),new Ul(r)})),Wl=e(2,((t,e)=>t.locals.has(e)?ie(Ce(t.locals.get(e))[1]):se())),zl=e(2,((t,e)=>u(Wl(t,e),ae((()=>e.initial))))),Kl=e(2,((t,{fiberId:e,fiberRef:r,value:n})=>{if(0===t.locals.size)return new Ul(new Map([[r,[[e,n]]]]));const s=new Map(t.locals);return Yl(s,e,r,n),new Ul(s)})),Yl=(t,e,r,n)=>{const s=t.get(r)??[];let i;if(Ee(s)){const[t,r]=Ce(s);if(t[J](e)){if(V(r,n))return;i=[[e,n],...s.slice(1)]}else i=[[e,n],...s]}else i=[[e,n]];t.set(r,i)},Ql=e(2,((t,{entries:e,forkAs:r})=>{if(0===t.locals.size)return new Ul(new Map(e));const n=new Map(t.locals);return void 0!==r&&Gl(t,n,r),e.forEach((([t,e])=>{1===e.length?Yl(n,e[0][0],t,e[0][1]):e.forEach((([e,r])=>{Yl(n,e,t,r)}))})),new Ul(n)})),Zl=zl,Xl=Ql,tf=function(){return t=new Map,new Ul(t);var t},ef=oa,rf=ca,nf=ua,sf=ne(u(Xe,re((t=>t.ordinal)))),of=t=>t.replace(/[\s="]/g,"_"),cf=t=>e=>`${of(e.label)}=${t-e.startTime}ms`,uf=Mt,af=Ct;class hf extends af{}const lf="Empty",ff="Remove",df="Update",bf="AndThen",pf={_tag:lf},mf=e(2,((t,e)=>({_tag:bf,first:t,second:e}))),gf=e(3,((t,e,r)=>{let n=r,s=Ve(t);for(;Ee(s);){const t=Ce(s),r=Fe(s);switch(t._tag){case lf:s=r;break;case"Add":n=Kl(n,{fiberId:e,fiberRef:t.fiberRef,value:t.value}),s=r;break;case ff:n=Hl(n,t.fiberRef),s=r;break;case df:{const i=zl(n,t.fiberRef);n=Kl(n,{fiberId:e,fiberRef:t.fiberRef,value:t.fiberRef.patch(t.patch)(i)}),s=r;break}case bf:s=we(t.first)(we(t.second)(r))}}return n})),yf="effect/MetricLabel",Sf=Symbol.for(yf);class wf{key;value;[Sf]=Sf;_hash;constructor(t,e){this.key=t,this.value=e,this._hash=D(yf+this.key+this.value)}[A](){return this._hash}[J](t){return _f(t)&&this.key===t.key&&this.value===t.value}pipe(){return nt(this,arguments)}}const vf=(t,e)=>new wf(t,e),_f=t=>g(t,Sf),Of=t=>(t=>du((e=>t(e.currentDefaultServices))))((e=>t(e.unsafeMap.get(Uh.key)))),Ef=t=>(...e)=>{const r=le(t);let n;for(let t=0,r=e.length;t<r;t++){const r=e[t];jc(r)&&(n=void 0!==n?Cc(n,r):r,e=[...e.slice(0,t),...e.slice(t+1)],t--)}return void 0===n&&(n=Ec),du((t=>(t.log(e,n,r),Xu)))},Mf=Ef(rf),kf=Ef(ef),If=e(2,((t,e)=>Lu(t,{onFailure:t=>{const r=Ac(t);switch(r._tag){case"Left":return sa(e(r.left),Cu(t));case"Right":return Cu(t)}},onSuccess:Wu}))),Nf=e(2,((t,e)=>zu((()=>e()?Uu(t,ie):Wu(se()))))),Cf={_tag:"Sequential"},jf=Cf,Ff={_tag:"Parallel"},Af=t=>({_tag:"ParallelN",parallelism:t}),Rf=gf,xf="effect/FiberStatus",$f=Symbol.for(xf),Tf="Done",Lf="Running",Bf="Suspended",Df=D(`${xf}-${Tf}`);class Pf{[$f]=$f;_tag=Tf;[A](){return Df}[J](t){return Jf(t)&&t._tag===Tf}}class qf{runtimeFlags;[$f]=$f;_tag=Lf;constructor(t){this.runtimeFlags=t}[A](){return u(R(xf),$(R(this._tag)),$(R(this.runtimeFlags)),U(this))}[J](t){return Jf(t)&&t._tag===Lf&&this.runtimeFlags===t.runtimeFlags}}class Uf{runtimeFlags;blockingOn;[$f]=$f;_tag=Bf;constructor(t,e){this.runtimeFlags=t,this.blockingOn=e}[A](){return u(R(xf),$(R(this._tag)),$(R(this.runtimeFlags)),$(R(this.blockingOn)),U(this))}[J](t){return Jf(t)&&t._tag===Bf&&this.runtimeFlags===t.runtimeFlags&&V(this.blockingOn,t.blockingOn)}}const Jf=t=>g(t,$f),Vf=new Pf,Gf=t=>new qf(t),Hf=Symbol.for("effect/Micro"),Wf=Symbol.for("effect/Micro/MicroExit"),zf=Symbol.for("effect/Micro/MicroCause"),Kf={_E:r};class Yf extends globalThis.Error{_tag;traces;[zf];constructor(t,e,r){const n=`MicroCause.${t}`;let s,i,o;if(e instanceof globalThis.Error){s=`(${n}) ${e.name}`,i=e.message;const t=i.split("\n").length;o=e.stack?`(${n}) ${e.stack.split("\n").slice(0,t+3).join("\n")}`:`${s}: ${i}`}else s=n,i=Q(e,0),o=`${s}: ${i}`;r.length>0&&(o+=`\n ${r.join("\n ")}`),super(i),this._tag=t,this.traces=r,this[zf]=Kf,this.name=s,this.stack=o}pipe(){return nt(this,arguments)}toString(){return this.stack}[z](){return this.stack}}class Qf extends Yf{error;constructor(t,e=[]){super("Fail",t,e),this.error=t}}class Zf extends Yf{defect;constructor(t,e=[]){super("Die",t,e),this.defect=t}}class Xf extends Yf{constructor(t=[]){super("Interrupt","interrupted",t)}}const td=(t=[])=>new Xf(t),ed=t=>"Interrupt"===t._tag,rd=Symbol.for("effect/Micro/MicroFiber"),nd={_A:r,_E:r};class sd{context;interruptible;[rd];_stack=[];_observers=[];_exit;_children;currentOpCount=0;constructor(t,e=!0){this.context=t,this.interruptible=e,this[rd]=nd}getRef(t){return(e=this.context).unsafeMap.has((r=t).key)?e.unsafeMap.get(r.key):br(r);var e,r}addObserver(t){return this._exit?(t(this._exit),c):(this._observers.push(t),()=>{const e=this._observers.indexOf(t);e>=0&&this._observers.splice(e,1)})}_interrupted=!1;unsafeInterrupt(){this._exit||(this._interrupted=!0,this.interruptible&&this.evaluate($d))}unsafePoll(){return this._exit}evaluate(t){if(this._exit)return;if(void 0!==this._yielded){const t=this._yielded;this._yielded=void 0,t()}const e=this.runLoop(t);if(e===fd)return;const r=id.interruptChildren&&id.interruptChildren(this);if(void 0!==r)return this.evaluate(jd(r,(()=>e)));this._exit=e;for(let t=0;t<this._observers.length;t++)this._observers[t](e);this._observers.length=0}runLoop(t){let e=!1,r=t;this.currentOpCount=0;try{for(;;){if(this.currentOpCount++,!e&&this.getRef(Jd).shouldYield(this)){e=!0;const t=r;r=jd(Od,(()=>t))}if(r=r[ud](this),r===fd){const t=this._yielded;return Wf in t?(this._yielded=void 0,t):fd}}}catch(t){return g(r,ud)?Td(t):Td(`MicroFiber.runLoop: Not a valid effect: ${String(r)}`)}}getCont(t){for(;;){const e=this._stack.pop();if(!e)return;const r=e[ld]&&e[ld](this);if(r)return{[t]:r};if(e[t])return e}}_yielded=void 0;yieldWith(t){return this._yielded=t,fd}children(){return this._children??=new Set}}const id=d("effect/Micro/fiberMiddleware",(()=>({interruptChildren:void 0}))),od=Symbol.for("effect/Micro/identifier"),cd=Symbol.for("effect/Micro/args"),ud=Symbol.for("effect/Micro/evaluate"),ad=Symbol.for("effect/Micro/successCont"),hd=Symbol.for("effect/Micro/failureCont"),ld=Symbol.for("effect/Micro/ensureCont"),fd=Symbol.for("effect/Micro/Yield"),dd={_A:r,_E:r,_R:r},bd={...uf,_op:"Micro",[Hf]:dd,pipe(){return nt(this,arguments)},[Symbol.iterator](){return new _(new k(this))},toJSON(){return{_id:"Micro",op:this[od],...cd in this?{args:this[cd]}:void 0}},toString(){return Y(this)},[z](){return Y(this)}};function pd(){return Td("Micro.evaluate: Not implemented")}const md=t=>({...bd,[od]:t.op,[ud]:t.eval??pd,[ad]:t.contA,[hd]:t.contE,[ld]:t.ensure}),gd=t=>{const e=md(t);return function(){const r=Object.create(e);return r[cd]=!1===t.single?arguments:arguments[0],r}},yd=t=>{const e={...md(t),[Wf]:Wf,_tag:t.op,get[t.prop](){return this[cd]},toJSON(){return{_id:"MicroExit",_tag:t.op,[t.prop]:this[cd]}},[J](e){return Ad(e)&&e._tag===t.op&&V(this[cd],e[cd])},[A](){return U(this,$(D(t.op))(R(this[cd])))}};return function(t){const r=Object.create(e);return r[cd]=t,r[ad]=void 0,r[hd]=void 0,r[ld]=void 0,r}},Sd=yd({op:"Success",prop:"value",eval(t){const e=t.getCont(ad);return e?e[ad](this[cd],t):t.yieldWith(this)}}),wd=yd({op:"Failure",prop:"cause",eval(t){let e=t.getCont(hd);for(;ed(this[cd])&&e&&t.interruptible;)e=t.getCont(hd);return e?e[hd](this[cd],t):t.yieldWith(this)}}),vd=t=>wd(((t,e=[])=>new Qf(t,e))(t)),_d=gd({op:"Suspend",eval(t){return this[cd]()}}),Od=gd({op:"Yield",eval(t){let e=!1;return t.getRef(Jd).scheduleTask((()=>{e||t.evaluate(Ld)}),this[cd]??0),t.yieldWith((()=>{e=!0}))}})(0),Ed=Sd(void 0),Md=t=>Id((function(e,r){try{t.try(r).then((t=>e(Sd(t))),(r=>e(vd(t.catch(r)))))}catch(r){e(vd(t.catch(r)))}}),0!==t.try.length),kd=gd({op:"WithMicroFiber",eval(t){return this[cd](t)}}),Id=gd({op:"Async",single:!1,eval(t){const e=this[cd][0];let r=!1,n=!1;const s=this[cd][1]?new AbortController:void 0,i=e((e=>{r||(r=!0,n?t.evaluate(e):n=e)}),s?.signal);return!1!==n?n:(n=!0,t._yielded=()=>{r=!0},void 0===s&&void 0===i||t._stack.push(Nd((()=>(r=!0,s?.abort(),i??Ld)))),fd)}}),Nd=gd({op:"AsyncFinalizer",ensure(t){t.interruptible&&(t.interruptible=!1,t._stack.push(Wd(!0)))},contE(t,e){return ed(t)?jd(this[cd](),(()=>wd(t))):wd(t)}}),Cd=gd({op:"Iterator",contA(t,e){const r=this[cd].next(t);return r.done?Sd(r.value):(e._stack.push(this),I(r.value))},eval(t){return this[ad](void 0,t)}}),jd=e(2,((t,e)=>{const r=Object.create(Fd);return r[cd]=t,r[ad]=e,r})),Fd=md({op:"OnSuccess",eval(t){return t._stack.push(this),this[cd]}}),Ad=t=>g(t,Wf),Rd=Sd,xd=wd,$d=xd(td()),Td=t=>xd(((t,e=[])=>new Zf(t,e))(t)),Ld=Rd(void 0),Bd="setImmediate"in globalThis?globalThis.setImmediate:t=>setTimeout(t,0);class Dd{tasks=[];running=!1;scheduleTask(t,e){this.tasks.push(t),this.running||(this.running=!0,Bd(this.afterScheduled))}afterScheduled=()=>{this.running=!1,this.runTasks()};runTasks(){const t=this.tasks;this.tasks=[];for(let e=0,r=t.length;e<r;e++)t[e]()}shouldYield(t){return t.currentOpCount>=t.getRef(Ud)}flush(){for(;this.tasks.length>0;)this.runTasks()}}const Pd=e(2,((t,e)=>kd((r=>{const n=r.context;return r.context=e(n),Hd(t,(()=>(r.context=n,Ed)))})))),qd=e(2,((t,e)=>Pd(t,kr(e))));class Ud extends(Ir()("effect/Micro/currentMaxOpsBeforeYield",{defaultValue:()=>2048})){}class Jd extends(Ir()("effect/Micro/currentScheduler",{defaultValue:()=>new Dd})){}const Vd=e(2,((t,e)=>{const r=Object.create(Gd);return r[cd]=t,r[ad]=e.onSuccess,r[hd]=e.onFailure,r})),Gd=md({op:"OnSuccessAndFailure",eval(t){return t._stack.push(this),this[cd]}}),Hd=e(2,((t,e)=>Kd((r=>Vd(r(t),{onFailure:t=>jd(e(xd(t)),(()=>wd(t))),onSuccess:t=>jd(e(Rd(t)),(()=>Sd(t)))}))))),Wd=gd({op:"SetInterruptible",ensure(t){if(t.interruptible=this[cd],t._interrupted&&t.interruptible)return()=>$d}}),zd=t=>kd((e=>e.interruptible?t:(e.interruptible=!0,e._stack.push(Wd(!1)),e._interrupted?$d:t))),Kd=t=>kd((e=>e.interruptible?(e.interruptible=!1,e._stack.push(Wd(!0)),t(zd)):t(r)));class Yd{buckets=[];scheduleTask(t,e){const r=this.buckets.length;let n,s=0;for(;s<r&&this.buckets[s][0]<=e;s++)n=this.buckets[s];n&&n[0]===e?n[1].push(t):s===r?this.buckets.push([e,[t]]):this.buckets.splice(s,0,[e,[t]])}}class Qd{maxNextTickBeforeTimer;running=!1;tasks=new Yd;constructor(t){this.maxNextTickBeforeTimer=t}starveInternal(t){const e=this.tasks.buckets;this.tasks.buckets=[];for(const[t,r]of e)for(let t=0;t<r.length;t++)r[t]();0===this.tasks.buckets.length?this.running=!1:this.starve(t)}starve(t=0){t>=this.maxNextTickBeforeTimer?setTimeout((()=>this.starveInternal(0)),0):Promise.resolve(void 0).then((()=>this.starveInternal(t+1)))}shouldYield(t){return t.currentOpCount>t.getFiberRef(Ma)&&t.getFiberRef(Ea)}scheduleTask(t,e){this.tasks.scheduleTask(t,e),this.running||(this.running=!0,this.starve())}}const Zd=d(Symbol.for("effect/Scheduler/defaultScheduler"),(()=>new Qd(2048))),Xd=d(Symbol.for("effect/FiberRef/currentScheduler"),(()=>ga(Zd))),tb=d(Symbol.for("effect/FiberRef/currentRequestMap"),(()=>ga(new Map))),eb=(t,e,r,n)=>{switch(t){case void 0:return e();case"unbounded":return r();case"inherit":return da(ja,(t=>"unbounded"===t?r():t>1?n(t):e()));default:return t>1?n(t):e()}},rb="InterruptSignal",nb="Stateful",sb="Resume",ib="YieldNow",ob=t=>({_tag:rb,cause:t}),cb=t=>({_tag:nb,onFiber:t}),ub=t=>({_tag:sb,effect:t}),ab=Symbol.for("effect/FiberScope");class hb{[ab]=ab;fiberId=li;roots=new Set;add(t,e){this.roots.add(e),e.addObserver((()=>{this.roots.delete(e)}))}}class lb{fiberId;parent;[ab]=ab;constructor(t,e){this.fiberId=t,this.parent=e}add(t,e){this.parent.tell(cb((t=>{t.addChild(e),e.addObserver((()=>{t.removeChild(e)}))})))}}const fb=d(Symbol.for("effect/FiberScope/Global"),(()=>new hb)),db=Symbol.for("effect/Fiber"),bb={_E:t=>t,_A:t=>t},pb=Symbol.for("effect/Fiber"),mb=t=>na($u(t.await),t.inheritAll),gb="effect/FiberCurrent",yb=Symbol.for("effect/Logger"),Sb={_Message:t=>t,_Output:t=>t},wb=t=>({[yb]:Sb,log:t,pipe(){return nt(this,arguments)}}),vb=/^[^\s"=]*$/,_b=(t,e)=>({annotations:r,cause:n,date:s,fiberId:i,logLevel:o,message:c,spans:u})=>{const a=(e,r)=>`${of(e)}=${(e=>e.match(vb)?e:t(e))(r)}`,h=(t,e)=>" "+a(t,e);let l=a("timestamp",s.toISOString());l+=h("level",o.label),l+=h("fiber",hi(i));const f=(d=c,Array.isArray(d)?d:[d]);var d;for(let t=0;t<f.length;t++)l+=h("message",Q(f[t],e));(t=>t._tag===mc)(n)||(l+=h("cause",Gc(n,{renderErrorCause:!0})));for(const t of u)l+=" "+cf(s.getTime())(t);for(const[t,n]of r)l+=h(t,Q(n,e));return l},Ob=wb(_b((t=>`"${t.replace(/\\([\s\S])|(")/g,"\\$1$2")}"`)));"object"==typeof process&&null!==process&&"object"==typeof process.stdout&&null!==process.stdout&&process;const Eb="effect/MetricBoundaries",Mb=Symbol.for(Eb);class kb{values;[Mb]=Mb;constructor(t){this.values=t,this._hash=u(D(Eb),$(q(this.values)))}_hash;[A](){return this._hash}[J](t){return Ib(t)&&V(this.values,t.values)}pipe(){return nt(this,arguments)}}const Ib=t=>g(t,Mb),Nb=t=>{const e=u(t,_e(Lr(Number.POSITIVE_INFINITY)),Qe);return new kb(e)},Cb=t=>u(ye(t.count-1,(e=>t.start*Math.pow(t.factor,e))),Ur,Nb),jb=Symbol.for("effect/MetricKeyType"),Fb="effect/MetricKeyType/Counter",Ab=Symbol.for(Fb),Rb=Symbol.for("effect/MetricKeyType/Frequency"),xb=Symbol.for("effect/MetricKeyType/Gauge"),$b="effect/MetricKeyType/Histogram",Tb=Symbol.for($b),Lb=Symbol.for("effect/MetricKeyType/Summary"),Bb={_In:t=>t,_Out:t=>t};class Db{incremental;bigint;[jb]=Bb;[Ab]=Ab;constructor(t,e){this.incremental=t,this.bigint=e,this._hash=D(Fb)}_hash;[A](){return this._hash}[J](t){return qb(t)}pipe(){return nt(this,arguments)}}class Pb{boundaries;[jb]=Bb;[Tb]=Tb;constructor(t){this.boundaries=t,this._hash=u(D($b),$(R(this.boundaries)))}_hash;[A](){return this._hash}[J](t){return Ub(t)&&V(this.boundaries,t.boundaries)}pipe(){return nt(this,arguments)}}const qb=t=>g(t,Ab),Ub=t=>g(t,Tb),Jb=Symbol.for("effect/MetricKey"),Vb={_Type:t=>t},Gb=Ke(V);class Hb{name;keyType;description;tags;[Jb]=Vb;constructor(t,e,r,n=[]){this.name=t,this.keyType=e,this.description=r,this.tags=n,this._hash=u(D(this.name+this.description),$(R(this.keyType)),$(q(this.tags)))}_hash;[A](){return this._hash}[J](t){return Wb(t)&&this.name===t.name&&V(this.keyType,t.keyType)&&V(this.description,t.description)&&Gb(this.tags,t.tags)}pipe(){return nt(this,arguments)}}const Wb=t=>g(t,Jb),zb=e(2,((t,e)=>0===e.length?t:new Hb(t.name,t.keyType,t.description,Je(t.tags,e)))),Kb=Symbol.for("effect/MetricState"),Yb="effect/MetricState/Counter",Qb=Symbol.for(Yb),Zb="effect/MetricState/Frequency",Xb=Symbol.for(Zb),tp="effect/MetricState/Gauge",ep=Symbol.for(tp),rp="effect/MetricState/Histogram",np=Symbol.for(rp),sp="effect/MetricState/Summary",ip=Symbol.for(sp),op={_A:t=>t};class cp{count;[Kb]=op;[Qb]=Qb;constructor(t){this.count=t}[A](){return u(R(Yb),$(R(this.count)),U(this))}[J](t){return dp(t)&&this.count===t.count}pipe(){return nt(this,arguments)}}const up=Ke(V);class ap{occurrences;[Kb]=op;[Xb]=Xb;constructor(t){this.occurrences=t}_hash;[A](){return u(D(Zb),$(q(Se(this.occurrences.entries()))),U(this))}[J](t){return bp(t)&&up(Se(this.occurrences.entries()),Se(t.occurrences.entries()))}pipe(){return nt(this,arguments)}}class hp{value;[Kb]=op;[ep]=ep;constructor(t){this.value=t}[A](){return u(R(tp),$(R(this.value)),U(this))}[J](t){return pp(t)&&this.value===t.value}pipe(){return nt(this,arguments)}}class lp{buckets;count;min;max;sum;[Kb]=op;[np]=np;constructor(t,e,r,n,s){this.buckets=t,this.count=e,this.min=r,this.max=n,this.sum=s}[A](){return u(R(rp),$(R(this.buckets)),$(R(this.count)),$(R(this.min)),$(R(this.max)),$(R(this.sum)),U(this))}[J](t){return mp(t)&&V(this.buckets,t.buckets)&&this.count===t.count&&this.min===t.min&&this.max===t.max&&this.sum===t.sum}pipe(){return nt(this,arguments)}}class fp{error;quantiles;count;min;max;sum;[Kb]=op;[ip]=ip;constructor(t,e,r,n,s,i){this.error=t,this.quantiles=e,this.count=r,this.min=n,this.max=s,this.sum=i}[A](){return u(R(sp),$(R(this.error)),$(R(this.quantiles)),$(R(this.count)),$(R(this.min)),$(R(this.max)),$(R(this.sum)),U(this))}[J](t){return gp(t)&&this.error===t.error&&V(this.quantiles,t.quantiles)&&this.count===t.count&&this.min===t.min&&this.max===t.max&&this.sum===t.sum}pipe(){return nt(this,arguments)}}const dp=t=>g(t,Qb),bp=t=>g(t,Xb),pp=t=>g(t,ep),mp=t=>g(t,np),gp=t=>g(t,ip),yp=Symbol.for("effect/MetricHook"),Sp={_In:t=>t,_Out:t=>t},wp=t=>({[yp]:Sp,pipe(){return nt(this,arguments)},...t}),vp=BigInt(0),_p=(t,e,r)=>{const n=r.length;if(!Ee(e))return[];const s=e[0],i=e.slice(1),o=Op(t,n,se(),0,s,r),c=Ve(o);return i.forEach((e=>{c.push(Op(t,n,o.value,o.consumed,e,o.rest))})),Ge(c,(t=>[t.quantile,t.value]))},Op=(t,e,r,n,s,i)=>{let o=t,c=e,u=r,a=n,h=s,l=i,f=t,d=e,b=r,p=n,m=s,g=i;for(;;){if(!Ee(l))return{quantile:h,value:se(),consumed:a,rest:[]};if(1===h)return{quantile:h,value:ie(je(l)),consumed:a+l.length,rest:[]};const t=Ce(l),e=Ae(l,(e=>e===t)),r=h*c,n=o/2*r,s=a+e[0].length,i=Math.abs(s-r);if(s<r-n)f=o,d=c,b=Ne(l),p=s,m=h,g=e[1],o=f,c=d,u=b,a=p,h=m,l=g;else{if(s>r+n)return{quantile:h,value:oe(u)?ie(t):u,consumed:a,rest:l};switch(u._tag){case"None":f=o,d=c,b=Ne(l),p=s,m=h,g=e[1],o=f,c=d,u=b,a=p,h=m,l=g;continue;case"Some":if(i<Math.abs(r-u.value)){f=o,d=c,b=Ne(l),p=s,m=h,g=e[1],o=f,c=d,u=b,a=p,h=m,l=g;continue}return{quantile:h,value:ie(u.value),consumed:a,rest:l}}}}throw new Error("BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues")},Ep=Symbol.for("effect/MetricPair"),Mp={_Type:t=>t},kp=(t,e)=>({[Ep]:Mp,metricKey:t,metricState:e,pipe(){return nt(this,arguments)}}),Ip=Symbol.for("effect/MetricRegistry");class Np{[Ip]=Ip;map=Oh();snapshot(){const t=[];for(const[e,r]of this.map)t.push(kp(e,r.get()));return t}get(t){const e=u(this.map,Eh(t),fe);if(null==e){if(qb(t.keyType))return this.getCounter(t);if(g(t.keyType,xb))return this.getGauge(t);if(g(t.keyType,Rb))return this.getFrequency(t);if(Ub(t.keyType))return this.getHistogram(t);if((t=>g(t,Lb))(t.keyType))return this.getSummary(t);throw new Error("BUG: MetricRegistry.get - unknown MetricKeyType - please report an issue at https://github.com/Effect-TS/effect/issues")}return e}getCounter(t){let e=u(this.map,Eh(t),fe);if(null==e){const r=(t=>{let e=t.keyType.bigint?vp:0;const r=t.keyType.incremental?t.keyType.bigint?t=>t>=vp:t=>t>=0:()=>!0,n=t=>{r(t)&&(e+=t)};return wp({get:()=>new cp(e),update:n,modify:n})})(t);u(this.map,kh(t))||u(this.map,Ih(t,r)),e=r}return e}getFrequency(t){let e=u(this.map,Eh(t),fe);if(null==e){const r=(t=>{const e=new Map;for(const r of t.keyType.preregisteredWords)e.set(r,0);const r=t=>{const r=e.get(t)??0;e.set(t,r+1)};return wp({get:()=>new ap(e),update:r,modify:r})})(t);u(this.map,kh(t))||u(this.map,Ih(t,r)),e=r}return e}getGauge(t){let e=u(this.map,Eh(t),fe);if(null==e){const r=((t,e)=>{let r=e;return wp({get:()=>new hp(r),update:t=>{r=t},modify:t=>{r+=t}})})(0,t.keyType.bigint?BigInt(0):0);u(this.map,kh(t))||u(this.map,Ih(t,r)),e=r}return e}getHistogram(t){let e=u(this.map,Eh(t),fe);if(null==e){const r=(t=>{const e=t.keyType.boundaries.values,r=e.length,n=new Uint32Array(r+1),s=new Float64Array(r);let i=0,o=0,c=Number.MAX_VALUE,a=Number.MIN_VALUE;u(e,$e(Xe),Ge(((t,e)=>{s[e]=t})));const h=t=>{let e=0,u=r;for(;e!==u;){const r=Math.floor(e+(u-e)/2);t<=s[r]?u=r:e=r,u===e+1&&(t<=s[e]?u=e:e=u)}n[e]=n[e]+1,i+=1,o+=t,t<c&&(c=t),t>a&&(a=t)},l=()=>{const t=ge(r);let e=0;for(let i=0;i<r;i++)e+=n[i],t[i]=[s[i],e];return t};return wp({get:()=>{return t={buckets:l(),count:i,min:c,max:a,sum:o},new lp(t.buckets,t.count,t.min,t.max,t.sum);var t},update:h,modify:h})})(t);u(this.map,kh(t))||u(this.map,Ih(t,r)),e=r}return e}getSummary(t){let e=u(this.map,Eh(t),fe);if(null==e){const r=(t=>{const{error:e,maxAge:r,maxSize:n,quantiles:s}=t.keyType,i=u(s,$e(Xe)),o=ge(n);let c=0,a=0,h=0,l=0,f=0;const d=t=>{const s=[];let c=0;for(;c!==n-1;){const e=o[c];if(null!=e){const[n,i]=e,o=yn(t-n);Cn(o,bn)&&Nn(o,r)&&s.push(i)}c+=1}return _p(e,i,$e(s,Xe))},b=(t,e)=>{n>0&&(c+=1,o[c%n]=[e,t]),l=0===a?t:Math.min(l,t),f=0===a?t:Math.max(f,t),a+=1,h+=t};return wp({get:()=>{return t={error:e,quantiles:d(Date.now()),count:a,min:l,max:f,sum:h},new fp(t.error,t.quantiles,t.count,t.min,t.max,t.sum);var t},update:([t,e])=>b(t,e),modify:([t,e])=>b(t,e)})})(t);u(this.map,kh(t))||u(this.map,Ih(t,r)),e=r}return e}}const Cp=Symbol.for("effect/Metric"),jp={_Type:t=>t,_In:t=>t,_Out:t=>t},Fp=d(Symbol.for("effect/Metric/globalMetricRegistry"),(()=>new Np)),Ap=function(t,e,r,n){const s=Object.assign((t=>Yu(t,(t=>Bp(s,t)))),{[Cp]:jp,keyType:t,unsafeUpdate:e,unsafeValue:r,unsafeModify:n,register(){return this.unsafeValue([]),this},pipe(){return nt(this,arguments)}});return s},Rp=(t,e)=>xp(((t,e)=>new Hb(t,(t=>new Db(t?.incremental??!1,t?.bigint??!1))(e),le(e?.description)))(t,e)),xp=t=>{let e;const r=new WeakMap,n=n=>{if(0===n.length)return void 0!==e||(e=Fp.get(t)),e;let s=r.get(n);return void 0!==s||(s=Fp.get(zb(t,n)),r.set(n,s)),s};return Ap(t.keyType,((t,e)=>n(e).update(t)),(t=>n(t).get()),((t,e)=>n(e).modify(t)))},$p=(t,e,r)=>xp(((t,e,r)=>new Hb(t,(t=>new Pb(t))(e),le(r)))(t,e,r)),Tp=e(3,((t,e,r)=>Lp(t,[vf(e,r)]))),Lp=e(2,((t,e)=>Ap(t.keyType,((r,n)=>t.unsafeUpdate(r,Je(e,n))),(r=>t.unsafeValue(Je(e,r))),((r,n)=>t.unsafeModify(r,Je(e,n)))))),Bp=e(2,((t,e)=>da(xa,(r=>Ku((()=>t.unsafeUpdate(e,r))))))),Dp=e(2,((t,e)=>da(tb,(r=>Ku((()=>{if(r.has(t)){const n=r.get(t);n.state.completed||(n.state.completed=!0,ch(n.result,e))}})))))),Pp=Symbol.for("effect/Supervisor"),qp={_T:t=>t};class Up{underlying;value0;[Pp]=qp;constructor(t,e){this.underlying=t,this.value0=e}get value(){return this.value0}onStart(t,e,r,n){this.underlying.onStart(t,e,r,n)}onEnd(t,e){this.underlying.onEnd(t,e)}onEffect(t,e){this.underlying.onEffect(t,e)}onSuspend(t){this.underlying.onSuspend(t)}onResume(t){this.underlying.onResume(t)}map(t){return new Up(this,u(this.value,Uu(t)))}zip(t){return new Jp(this,t)}}class Jp{left;right;_tag="Zip";[Pp]=qp;constructor(t,e){this.left=t,this.right=e}get value(){return ra(this.left.value,this.right.value)}onStart(t,e,r,n){this.left.onStart(t,e,r,n),this.right.onStart(t,e,r,n)}onEnd(t,e){this.left.onEnd(t,e),this.right.onEnd(t,e)}onEffect(t,e){this.left.onEffect(t,e),this.right.onEffect(t,e)}onSuspend(t){this.left.onSuspend(t),this.right.onSuspend(t)}onResume(t){this.left.onResume(t),this.right.onResume(t)}map(t){return new Up(this,u(this.value,Uu(t)))}zip(t){return new Jp(this,t)}}const Vp=t=>g(t,Pp)&&y(t,"Zip");class Gp{effect;[Pp]=qp;constructor(t){this.effect=t}get value(){return this.effect}onStart(t,e,r,n){}onEnd(t,e){}onEffect(t,e){}onSuspend(t){}onResume(t){}map(t){return new Up(this,u(this.value,Uu(t)))}zip(t){return new Jp(this,t)}onRun(t,e){return t()}}const Hp=d("effect/Supervisor/none",(()=>new Gp(Xu))),Wp="Empty",zp="AddSupervisor",Kp="RemoveSupervisor",Yp="AndThen",Qp={_tag:Wp},Zp=(t,e)=>({_tag:Yp,first:t,second:e}),Xp=(t,e)=>V(t,e)?Hp:Vp(t)?Xp(t.left,e).zip(Xp(t.right,e)):t,tm=t=>V(t,Hp)?Bs():Vp(t)?u(tm(t.left),Gs(tm(t.right))):Ds(t),em=Io({empty:Qp,patch:(t,e)=>((t,e)=>{let r=t,n=e;for(;Kr(n);){const t=Qr(n);switch(t._tag){case Wp:n=Zr(n);break;case zp:r=r.zip(t.supervisor),n=Zr(n);break;case Kp:r=Xp(r,t.supervisor),n=Zr(n);break;case Yp:n=Hr(t.first)(Hr(t.second)(Zr(n)))}}return r})(e,Lr(t)),combine:Zp,diff:(t,e)=>{if(V(t,e))return Qp;const r=tm(t),n=tm(e),s=u(n,Vs(r),Hs(Qp,((t,e)=>Zp(t,{_tag:zp,supervisor:e})))),i=u(r,Vs(n),Hs(Qp,((t,e)=>Zp(t,{_tag:Kp,supervisor:e}))));return Zp(s,i)}}),rm=Rp("effect_fiber_started",{incremental:!0}),nm=Rp("effect_fiber_active"),sm=Rp("effect_fiber_successes",{incremental:!0}),im=Rp("effect_fiber_failures",{incremental:!0}),om=Tp($p("effect_fiber_lifetimes",Cb({start:.5,factor:2,count:35})),"time_unit","milliseconds"),cm="Continue",um="Yield",am={_E:t=>t,_A:t=>t},hm=t=>{throw new Error(`BUG: FiberRuntime - ${Q(t)} - please report an issue at https://github.com/Effect-TS/effect/issues`)},lm=Symbol.for("effect/internal/fiberRuntime/YieldedOp"),fm=d("effect/internal/fiberRuntime/yieldedOpChannel",(()=>({currentOp:null}))),dm={[ut]:(t,e,r)=>j((()=>e.effect_instruction_i1(r))),OnStep:(t,e,r)=>Xa(Xa(r)),[at]:(t,e,r)=>j((()=>e.effect_instruction_i2(r))),[yt]:(t,e,r)=>(t.patchRuntimeFlags(t.currentRuntimeFlags,e.patch),Bo(t.currentRuntimeFlags)&&t.isInterrupted()?Ya(t.getInterruptedCause()):Xa(r)),[bt]:(t,e,r)=>(j((()=>e.effect_instruction_i2(r))),j((()=>e.effect_instruction_i0()))?(t.pushStack(e),j((()=>e.effect_instruction_i1()))):Xu),[pt]:(t,e,r)=>{for(;;){const n=j((()=>e.effect_instruction_i0.next(r)));if(n.done)return Xa(n.value);const s=I(n.value);if(!Wa(s))return t.pushStack(e),s;if("Failure"===s._tag)return s;r=s.value}}},bm={[rb]:(t,e,r,n)=>(t.processNewInterruptSignal(n.cause),Bo(e)?Ya(n.cause):r),[sb]:()=>{throw new Error("It is illegal to have multiple concurrent run loops in a single fiber")},[nb]:(t,e,r,n)=>(n.onFiber(t,Gf(e)),r),[ib]:(t,e,r)=>Ru(ea(),(()=>r))},pm=St();class mm extends hf{[db]=bb;[pb]=am;_fiberRefs;_fiberId;_queue=new Array;_children=null;_observers=new Array;_running=!1;_stack=[];_asyncInterruptor=null;_asyncBlockingOn=null;_exitValue=null;_steps=[];_isYielding=!1;currentRuntimeFlags;currentOpCount=0;currentSupervisor;currentScheduler;currentTracer;currentSpan;currentContext;currentDefaultServices;constructor(t,e,r){if(super(),this.currentRuntimeFlags=r,this._fiberId=t,this._fiberRefs=e,Jo(r)){const t=this.getFiberRef(xa);rm.unsafeUpdate(1,t),nm.unsafeUpdate(1,t)}this.refreshRefCache()}commit(){return mb(this)}id(){return this._fiberId}resume(t){this.tell(ub(t))}get status(){return this.ask(((t,e)=>e))}get runtimeFlags(){return this.ask(((t,e)=>e._tag===Tf?t.currentRuntimeFlags:e.runtimeFlags))}scope(){return new lb((t=this).id(),t);var t}get children(){return this.ask((t=>Array.from(t.getChildren())))}getChildren(){return null===this._children&&(this._children=new Set),this._children}getInterruptedCause(){return this.getFiberRef(Ta)}fiberRefs(){return this.ask((t=>t.getFiberRefs()))}ask(t){return zu((()=>{const e=nh(this._fiberId);return this.tell(cb(((r,n)=>{ch(e,Ku((()=>t(r,n))))}))),sh(e)}))}tell(t){this._queue.push(t),this._running||(this._running=!0,this.drainQueueLaterOnExecutor())}get await(){return Su((t=>{const e=e=>t(Wu(e));return this.tell(cb((t=>{null!==t._exitValue?e(this._exitValue):t.addObserver(e)}))),Ku((()=>this.tell(cb((t=>{t.removeObserver(e)})))))}),this.id())}get inheritAll(){return du(((t,e)=>{const r=t.id(),n=t.getFiberRefs(),s=e.runtimeFlags,i=this.getFiberRefs(),o=Jl(n,r,i);t.setFiberRefs(o);const c=t.getFiberRef(Tm);return(t=>{const e=new au(dt);return e.effect_instruction_i0=t,e.effect_instruction_i1=void 0,e})(u(Go(s,c),Ko(1),Ko(16)))}))}get poll(){return Ku((()=>le(this._exitValue)))}unsafePoll(){return this._exitValue}interruptAsFork(t){return Ku((()=>this.tell(ob(Ic(t)))))}unsafeInterruptAsFork(t){this.tell(ob(Ic(t)))}addObserver(t){null!==this._exitValue?t(this._exitValue):this._observers.push(t)}removeObserver(t){this._observers=this._observers.filter((e=>e!==t))}getFiberRefs(){return this.setFiberRef(Tm,this.currentRuntimeFlags),this._fiberRefs}unsafeDeleteFiberRef(t){this._fiberRefs=Hl(this._fiberRefs,t)}getFiberRef(t){return this._fiberRefs.locals.has(t)?this._fiberRefs.locals.get(t)[0][1]:t.initial}setFiberRef(t,e){this._fiberRefs=Kl(this._fiberRefs,{fiberId:this._fiberId,fiberRef:t,value:e}),this.refreshRefCache()}refreshRefCache(){this.currentDefaultServices=this.getFiberRef(Pl),this.currentTracer=this.currentDefaultServices.unsafeMap.get(xl.key),this.currentSupervisor=this.getFiberRef(Lm),this.currentScheduler=this.getFiberRef(Xd),this.currentContext=this.getFiberRef(Oa),this.currentSpan=this.currentContext.unsafeMap.get($l.key)}setFiberRefs(t){this._fiberRefs=t,this.refreshRefCache()}addChild(t){this.getChildren().add(t)}removeChild(t){this.getChildren().delete(t)}transferChildren(t){const e=this._children;if(this._children=null,null!==e&&e.size>0)for(const r of e)null===r._exitValue&&t.add(this.currentRuntimeFlags,r)}drainQueueOnCurrentThread(){let t=!0;for(;t;){let e=cm;const r=globalThis[gb];globalThis[gb]=this;try{for(;e===cm;)e=0===this._queue.length?"Done":this.evaluateMessageWhileSuspended(this._queue.splice(0,1)[0])}finally{this._running=!1,globalThis[gb]=r}this._queue.length>0&&!this._running?(this._running=!0,e===um?(this.drainQueueLaterOnExecutor(),t=!1):t=!0):t=!1}}drainQueueLaterOnExecutor(){this.currentScheduler.scheduleTask(this.run,this.getFiberRef(Ea))}drainQueueWhileRunning(t,e){let r=e;for(;this._queue.length>0;){const e=this._queue.splice(0,1)[0];r=bm[e._tag](this,t,r,e)}return r}isInterrupted(){return!((t=this.getFiberRef(Ta))._tag===mc||Jc(t,!0,((t,e)=>{switch(e._tag){case mc:return ie(t);case pc:case gc:case yc:return ie(!1);default:return se()}})));var t}addInterruptedCause(t){const e=this.getFiberRef(Ta);this.setFiberRef(Ta,Cc(e,t))}processNewInterruptSignal(t){this.addInterruptedCause(t),this.sendInterruptSignalToAllChildren()}sendInterruptSignalToAllChildren(){if(null===this._children||0===this._children.size)return!1;let t=!1;for(const e of this._children)e.tell(ob(Ic(this.id()))),t=!0;return t}interruptAllChildren(){if(this.sendInterruptSignalToAllChildren()){const t=this._children.values();this._children=null;let e=!1;return ta({while:()=>!e,body:()=>{const r=t.next();return r.done?Ku((()=>{e=!0})):mu(r.value.await)},step:()=>{}})}return null}reportExitValue(t){if(Jo(this.currentRuntimeFlags)){const e=this.getFiberRef(xa),r=this.id().startTimeMillis,n=Date.now();switch(om.unsafeUpdate(n-r,e),nm.unsafeUpdate(-1,e),t._tag){case ht:sm.unsafeUpdate(1,e);break;case ot:im.unsafeUpdate(1,e)}}if("Failure"===t._tag){const e=this.getFiberRef(Aa);Fc(t.cause)||"Some"!==e._tag||this.log("Fiber terminated with an unhandled error",t.cause,e)}}setExitValue(t){this._exitValue=t,this.reportExitValue(t);for(let e=this._observers.length-1;e>=0;e--)this._observers[e](t);this._observers=[]}getLoggers(){return this.getFiberRef(wm)}log(t,e,r){const n=ce(r)?r.value:this.getFiberRef(Ia),s=this.getFiberRef(gm);if(sf(s,n))return;const i=this.getFiberRef(Na),o=this.getFiberRef(ka),c=this.getLoggers(),u=this.getFiberRefs();if(qs(c)>0){const r=Or(this.getFiberRef(Pl),Uh),s=new Date(r.unsafeCurrentTimeMillis());((t,e)=>{const r=et.fiberRefs;et.fiberRefs=t;try{return e()}finally{et.fiberRefs=r}})(u,(()=>{for(const r of c)r.log({fiberId:this.id(),logLevel:n,message:t,cause:e,context:u,spans:i,annotations:o,date:s})}))}}evaluateMessageWhileSuspended(t){switch(t._tag){case ib:return um;case rb:return this.processNewInterruptSignal(t.cause),null!==this._asyncInterruptor&&(this._asyncInterruptor(Ya(t.cause)),this._asyncInterruptor=null),cm;case sb:return this._asyncInterruptor=null,this._asyncBlockingOn=null,this.evaluateEffect(t.effect),cm;case nb:return t.onFiber(this,null!==this._exitValue?Vf:new Uf(this.currentRuntimeFlags,this._asyncBlockingOn)),cm;default:return hm(t)}}evaluateEffect(t){this.currentSupervisor.onResume(this);try{let e=Bo(this.currentRuntimeFlags)&&this.isInterrupted()?Ya(this.getInterruptedCause()):t;for(;null!==e;){const t=this.runLoop(e);if(t===lm){const t=fm.currentOp;fm.currentOp=null,t._op===gt?Po(this.currentRuntimeFlags,32)?(this.tell({_tag:ib}),this.tell(ub(th)),e=null):e=th:t._op===st&&(e=null)}else{this.currentRuntimeFlags=u(this.currentRuntimeFlags,Lo(16));const r=this.interruptAllChildren();null!==r?e=Ru(r,(()=>t)):(0===this._queue.length?this.setExitValue(t):this.tell(ub(t)),e=null)}}}finally{this.currentSupervisor.onSuspend(this)}}start(t){if(this._running)this.tell(ub(t));else{this._running=!0;const e=globalThis[gb];globalThis[gb]=this;try{this.evaluateEffect(t)}finally{this._running=!1,globalThis[gb]=e,this._queue.length>0&&this.drainQueueLaterOnExecutor()}}}startFork(t){this.tell(ub(t))}patchRuntimeFlags(t,e){const r=Ho(t,e);return globalThis[gb]=this,this.currentRuntimeFlags=r,r}initiateAsync(t,e){let r=!1;const n=t=>{r||(r=!0,this.tell(ub(t)))};Bo(t)&&(this._asyncInterruptor=n);try{e(n)}catch(t){n(Cu(kc(t)))}}pushStack(t){this._stack.push(t),"OnStep"===t._op&&this._steps.push({refs:this.getFiberRefs(),flags:this.currentRuntimeFlags})}popStack(){const t=this._stack.pop();if(t)return"OnStep"===t._op&&this._steps.pop(),t}getNextSuccessCont(){let t=this.popStack();for(;t;){if(t._op!==ct)return t;t=this.popStack()}}getNextFailCont(){let t=this.popStack();for(;t;){if(t._op!==ut&&t._op!==bt&&t._op!==pt)return t;t=this.popStack()}}[ft](t){return Ku((()=>Er(this.currentContext,t)))}Left(t){return Iu(t.left)}None(t){return Iu(new Va)}Right(t){return Xa(t.right)}Some(t){return Xa(t.value)}Micro(t){return yu((e=>{let r=e;const n=(t=>{const e=new sd(Jd.context(new Dd));return e.evaluate(t),e})(qd(t,this.currentContext));return n.addObserver((t=>{if("Success"===t._tag)return r(Xa(t.value));switch(t.cause._tag){case"Interrupt":return r(Ya(Ic(li)));case"Fail":return r(Iu(t.cause.error));case"Die":return r(Ou(t.cause.defect))}})),yu((t=>{r=()=>{t(Xu)},n.unsafeInterrupt()}))}))}[lt](t){const e=j((()=>t.effect_instruction_i0())),r=this.getNextSuccessCont();return void 0!==r?(r._op in dm||hm(r),dm[r._op](this,r,e)):(fm.currentOp=Xa(e),lm)}[ht](t){const e=t,r=this.getNextSuccessCont();return void 0!==r?(r._op in dm||hm(r),dm[r._op](this,r,e.effect_instruction_i0)):(fm.currentOp=e,lm)}[ot](t){const e=t.effect_instruction_i0,r=this.getNextFailCont();if(void 0===r)return fm.currentOp=Ya(e),lm;switch(r._op){case ct:case at:return Bo(this.currentRuntimeFlags)&&this.isInterrupted()?Ya(Rc(e)):j((()=>r.effect_instruction_i1(e)));case"OnStep":return Bo(this.currentRuntimeFlags)&&this.isInterrupted()?Ya(Rc(e)):Xa(Ya(e));case yt:return this.patchRuntimeFlags(this.currentRuntimeFlags,r.patch),Bo(this.currentRuntimeFlags)&&this.isInterrupted()?Ya(Cc(e,this.getInterruptedCause())):Ya(e);default:hm(r)}}[mt](t){return j((()=>t.effect_instruction_i0(this,Gf(this.currentRuntimeFlags))))}Blocked(t){const e=this.getFiberRefs(),r=this.currentRuntimeFlags;if(this._steps.length>0){const n=[],s=this._steps[this._steps.length-1];let i=this.popStack();for(;i&&"OnStep"!==i._op;)n.push(i),i=this.popStack();this.setFiberRefs(s.refs),this.currentRuntimeFlags=s.flags;const o=((t,e)=>{const r=new Map(t.locals);let n=pf;for(const[t,s]of e.locals.entries()){const e=Ce(s)[1],i=r.get(t);if(void 0!==i){const r=Ce(i)[1];V(r,e)||(n=mf({_tag:df,fiberRef:t,patch:t.diff(r,e)})(n))}else n=mf({_tag:"Add",fiberRef:t,value:e})(n);r.delete(t)}for(const[t]of r.entries())n=mf({_tag:ff,fiberRef:t})(n);return n})(s.refs,e),c=Go(s.flags,r);return Xa(ou(t.effect_instruction_i0,du((e=>{for(;n.length>0;)e.pushStack(n.pop());return e.setFiberRefs(Rf(e.id(),e.getFiberRefs())(o)),e.currentRuntimeFlags=Ho(c)(e.currentRuntimeFlags),t.effect_instruction_i1}))))}return Zu((e=>Ru(Mm((t=>{const e=new au("RunBlocked");return e.effect_instruction_i0=t,e})(t.effect_instruction_i0)),(()=>e(t.effect_instruction_i1)))))}RunBlocked(t){return Pu((t=>{let e=Ri(t),r=Ai();for(;;){const[t,n]=Li(e,[nc(),Ai()],(([t,e],r)=>{const[n,s]=Zo(r);return[ic(t,n),xi(e,s)]}));if(r=Xo(r,t),ji(n))return Bi(r);e=n}throw new Error("BUG: BlockedRequests.flatten - please report an issue at https://github.com/Effect-TS/effect/issues")})(t.effect_instruction_i0),(t=>Om((t=>Array.from(t.map))(t),(([t,e])=>{const r=new Map,n=[];for(const t of e){n.push(Pr(t));for(const e of t)r.set(e.request,e)}const s=n.flat();return ma(Bm(t.runAll(n),s,(()=>s.forEach((t=>{t.listeners.interrupted=!0})))),tb,r)}),!1,!1)))}[dt](t){const e=t.effect_instruction_i0,r=this.currentRuntimeFlags,n=Ho(r,e);if(Bo(n)&&this.isInterrupted())return Ya(this.getInterruptedCause());if(this.patchRuntimeFlags(this.currentRuntimeFlags,e),t.effect_instruction_i1){const e=Go(n,r);return this.pushStack(new uu(e,t)),j((()=>t.effect_instruction_i1(r)))}return th}[ut](t){return this.pushStack(t),t.effect_instruction_i0}OnStep(t){return this.pushStack(t),t.effect_instruction_i0}[ct](t){return this.pushStack(t),t.effect_instruction_i0}[at](t){return this.pushStack(t),t.effect_instruction_i0}[st](t){return this._asyncBlockingOn=t.effect_instruction_i1,this.initiateAsync(this.currentRuntimeFlags,t.effect_instruction_i0),fm.currentOp=t,lm}[gt](t){return this._isYielding=!1,fm.currentOp=t,lm}[bt](t){const e=t.effect_instruction_i1;return(0,t.effect_instruction_i0)()?(this.pushStack(t),e()):th}[pt](t){return dm[pt](this,t,void 0)}[it](t){return j((()=>t.commit()))}runLoop(t){let e=t;for(this.currentOpCount=0;;){if(2&this.currentRuntimeFlags&&this.currentSupervisor.onEffect(this,e),this._queue.length>0&&(e=this.drainQueueWhileRunning(this.currentRuntimeFlags,e)),!this._isYielding){this.currentOpCount+=1;const t=this.currentScheduler.shouldYield(this);if(!1!==t){this._isYielding=!0,this.currentOpCount=0;const r=e;e=Ru(ea({priority:t}),(()=>r))}}try{if(e=this.currentTracer.context((()=>{if(pm!==e[cu]._V){const t=this.getFiberRef(Ra);"Some"===t._tag&&this.log(`Executing an Effect versioned ${e[cu]._V} with a Runtime of version 3.19.14, you may want to dedupe the effect dependencies, you can use the language service plugin to detect this at compile time: https://github.com/Effect-TS/language-service`,Ec,t)}return this[e._op](e)}),this),e===lm){const t=fm.currentOp;return t._op===gt||t._op===st?lm:(fm.currentOp=null,t._op===ht||t._op===ot?t:Ya(kc(t)))}}catch(t){e=e!==lm&&!g(e,"_op")||!(e._op in this)?Eu(`Not a valid effect: ${Q(e)}`):g(t,Ua)?Ya(Cc(kc(t),Ic(li))):Ou(t)}}}run=()=>{this.drainQueueOnCurrentThread()}}const gm=d("effect/FiberRef/currentMinimumLogLevel",(()=>ga(nf))),ym=d(Symbol.for("effect/Logger/defaultLogger"),(()=>{return t=Ob,wb((e=>{const r=Zl(e.context,Pl);Or(r,El).unsafe.log(t.log(e))}));var t})),Sm=d(Symbol.for("effect/Logger/tracerLogger"),(()=>wb((({annotations:t,cause:e,context:r,fiberId:n,logLevel:s,message:i})=>{const o=Mr(zl(r,Oa),$l);if("None"===o._tag||"ExternalSpan"===o.value._tag)return;const c=Er(zl(r,Pl),Uh),u={};for(const[e,r]of t)u[e]=r;u["effect.fiberId"]=fi(n),u["effect.logLevel"]=s.label,null!==e&&"Empty"!==e._tag&&(u["effect.cause"]=Gc(e,{renderErrorCause:!0})),o.value.event(Q(Array.isArray(i)&&1===i.length?i[0]:i),c.unsafeCurrentTimeNanos(),u)})))),wm=d(Symbol.for("effect/FiberRef/currentLoggers"),(()=>ya(Ds(ym,Sm)))),vm=e((t=>w(t[0])),((t,e,r)=>du((n=>{const s=!0===r?.batching||"inherit"===r?.batching&&n.getFiberRef(Fa);return r?.discard?eb(r.concurrency,(()=>Fm(jf,r?.concurrentFinalizers)((r=>s?Om(t,((t,n)=>r(e(t,n))),!0,!1,1):Pu(t,((t,n)=>r(e(t,n))))))),(()=>Fm(Ff,r?.concurrentFinalizers)((r=>Om(t,((t,n)=>r(e(t,n))),s,!1)))),(n=>Fm(Af(n),r?.concurrentFinalizers)((r=>Om(t,((t,n)=>r(e(t,n))),s,!1,n))))):eb(r?.concurrency,(()=>Fm(jf,r?.concurrentFinalizers)((r=>s?Em(t,1,((t,n)=>r(e(t,n))),!0):Du(t,((t,n)=>r(e(t,n))))))),(()=>Fm(Ff,r?.concurrentFinalizers)((r=>_m(t,((t,n)=>r(e(t,n))),s)))),(n=>Fm(Af(n),r?.concurrentFinalizers)((r=>Em(t,n,((t,n)=>r(e(t,n))),s)))))})))),_m=(t,e,r)=>zu((()=>{const n=Se(t),s=new Array(n.length);return sa(Om(n,((t,r)=>Ru(e(t,r),(t=>Ku((()=>s[r]=t))))),r,!1),Wu(s))})),Om=(t,e,r,n,s)=>Zu((i=>(t=>du((e=>{const r=u(e.getFiberRef($a),ae((()=>e.scope())));return t(ma($a,ie(r)))})))((o=>du((c=>{let u=Array.from(t).reverse(),a=u.length;if(0===a)return Xu;let h=0,l=!1;const f=s?Math.min(u.length,s):u.length,d=new Set,b=new Array,p=new Array,m=new Array,g=new Array,y=()=>{const t=b.filter((({exit:t})=>"Failure"===t._tag)).sort(((t,e)=>t.index<e.index?-1:t.index===e.index?0:1)).map((({exit:t})=>t));return 0===t.length&&t.push(th),t},S=(t,e=!1)=>{const r=Qu(o(t)),n=km(r,c,c.currentRuntimeFlags,fb);return c.currentScheduler.scheduleTask((()=>{e&&n.unsafeInterruptAsFork(c.id()),n.resume(r)}),0),n},w=()=>{n||(a-=u.length,u=[]),l=!0,d.forEach((t=>{t.currentScheduler.scheduleTask((()=>{t.unsafeInterruptAsFork(c.id())}),0)}))},v=r?xu:ku,_=S(Su((t=>{const n=(t,e)=>{"Blocked"===t._op?g.push(t):(b.push({index:e,exit:t}),"Failure"!==t._op||l||w())},o=()=>{if(u.length>0){const f=u.pop();let w=h++;const _=()=>{const t=u.pop();return w=h++,Ru(ea(),(()=>Ru(v(i(e(t,w))),O)))},O=t=>u.length>0&&(n(t,w),u.length>0)?_():Wu(t),E=Ru(v(i(e(f,w))),O),M=S(E);p.push(M),d.add(M),l&&M.currentScheduler.scheduleTask((()=>{M.unsafeInterruptAsFork(c.id())}),0),M.addObserver((e=>{let i;if(i="Failure"===e._op?e:e.effect_instruction_i0,m.push(M),d.delete(M),n(i,w),b.length===a)t(Wu(ae(za(y(),{parallel:!0}),(()=>th))));else if(g.length+b.length===a){const e=y(),n=g.map((t=>t.effect_instruction_i0)).reduce(Yo);t(Wu(ou(n,Om([ae(za(e,{parallel:!0}),(()=>th)),...g.map((t=>t.effect_instruction_i1))],(t=>t),r,!0,s))))}else o()}))}};for(let t=0;t<f;t++)o()})));return mu(Gu($u(i(mb(_))),Za({onFailure:t=>{w();const e=g.length+1,r=Math.min("number"==typeof s?s:g.length,g.length),n=Array.from(g);return Su((s=>{let i=0;const o=(r,o)=>()=>{i++,i===e&&s(Xa(Ya(t))),n.length>0&&o&&c()},c=()=>{S(n.pop(),!0).addObserver(o(0,!0))};_.addObserver(o(0,!1));for(let t=0;t<r;t++)c()}))},onSuccess:()=>Du(m,(t=>t.inheritAll))})))})))))),Em=(t,e,r,n)=>zu((()=>{const s=Se(t),i=new Array(s.length);return sa(Om(s,((t,e)=>Uu(r(t,e),(t=>i[e]=t))),n,!1,e),Wu(i))})),Mm=t=>Nm(t,fb),km=(t,e,r,n=null)=>Im(t,e,r,n),Im=(t,e,r,n=null)=>{const s=di(),i=e.getFiberRefs(),o=Vl(i,s),c=new mm(s,o,r),a=zl(o,Oa),h=c.currentSupervisor;return h.onStart(a,t,ie(e),c),c.addObserver((t=>h.onEnd(t,c))),(null!==n?n:u(e.getFiberRef($a),ae((()=>e.scope())))).add(r,c),c},Nm=(t,e)=>du(((r,n)=>Wu(((t,e,r,n=null)=>{const s=Im(t,e,r,n);return s.resume(t),s})(t,r,n.runtimeFlags,e)))),Cm=t=>lh((e=>ue(Mr(e,Rm),{onNone:()=>t,onSome:e=>{switch(e.strategy._tag){case"Parallel":return t;case"Sequential":case"ParallelN":return Ru(La(e,Ff),(e=>xm(t,e)))}}}))),jm=t=>e=>lh((r=>ue(Mr(r,Rm),{onNone:()=>e,onSome:r=>"ParallelN"===r.strategy._tag&&r.strategy.parallelism===t?e:Ru(La(r,Af(t)),(t=>xm(e,t)))}))),Fm=(t,e)=>n=>lh((s=>ue(Mr(s,Rm),{onNone:()=>n(r),onSome:s=>{if(!0!==e)return n(r);{const e="Parallel"===t._tag?Cm:"Sequential"===t._tag?Am:jm(t.parallelism);switch(s.strategy._tag){case"Parallel":return e(n(Cm));case"Sequential":return e(n(Am));case"ParallelN":return e(n(jm(s.strategy.parallelism)))}}}}))),Am=t=>lh((e=>ue(Mr(e,Rm),{onNone:()=>t,onSome:e=>{switch(e.strategy._tag){case"Sequential":return t;case"Parallel":case"ParallelN":return Ru(La(e,jf),(e=>xm(t,e)))}}}))),Rm=Sr("effect/Scope"),xm=e(2,((t,e)=>dh(t,kr(vr(Rm,e))))),$m=t=>va(t,{differ:em,fork:Qp}),Tm=_a(Uo),Lm=$m(Hp),Bm=(t,e,r)=>Au((n=>Ru(Ru(Mm(qu(t)),(t=>Su((n=>{const s=e.map((t=>t.listeners.count)),i=()=>{s.every((t=>0===t))&&e.every((t=>"Pending"===t.result.state.current._tag||!("Done"!==t.result.state.current._tag||!Wa(t.result.state.current.effect)||"Failure"!==t.result.state.current.effect._tag||!(t=>ce((t=>Lc(t,(t=>t._tag===yc?ie(t.fiberId):se())))(t)))(t.result.state.current.effect.cause))))&&(o.forEach((t=>t())),r?.(),n((t=>Ru(Fu,(e=>u(t,ia(e)))))(t)))};t.addObserver((t=>{o.forEach((t=>t())),n(t)}));const o=e.map(((t,e)=>{const r=t=>{s[e]=t,i()};return t.listeners.addObserver(r),()=>t.listeners.removeObserver(r)}));return i(),Ku((()=>{o.forEach((t=>t()))}))})))),(()=>zu((()=>{const t=e.flatMap((t=>t.state.completed?[]:[t]));return Pu(t,(t=>Dp(t.request,(t=>Ya(Ic(t)))(n))))})))))),Dm=(t,e,r,n)=>Pi({_tag:"Complete",key:t,exit:e,entryStats:r,timeToLiveMillis:n}),Pm=(t,e)=>Pi({_tag:"Pending",key:t,deferred:e}),qm=Symbol.for("effect/Cache/MapKey");class Um{current;[qm]=qm;previous=void 0;next=void 0;constructor(t){this.current=t}[A](){return u(R(this.current),$(R(this.previous)),$(R(this.next)),U(this))}[J](t){return this===t||Vm(t)&&V(this.current,t.current)&&V(this.previous,t.previous)&&V(this.next,t.next)}}const Jm=t=>new Um(t),Vm=t=>g(t,qm);class Gm{head=void 0;tail=void 0;add(t){if(t!==this.tail)if(void 0===this.tail)this.head=t,this.tail=t;else{const e=t.previous,r=t.next;void 0!==r&&(t.next=void 0,void 0!==e?(e.next=r,r.previous=e):(this.head=r,this.head.previous=void 0)),this.tail.next=t,t.previous=this.tail,this.tail=t}}remove(){const t=this.head;if(void 0!==t){const e=t.next;void 0!==e?(t.next=void 0,this.head=e,this.head.previous=void 0):(this.head=void 0,this.tail=void 0)}return t}}const Hm=Symbol.for("effect/Cache"),Wm={_Key:t=>t,_Error:t=>t,_Value:t=>t},zm=Symbol.for("effect/ConsumerCache"),Km={_Key:t=>t,_Error:t=>t,_Value:t=>t},Ym=t=>({loadedMillis:t});class Qm{capacity;context;fiberId;lookup;timeToLive;[Hm]=Wm;[zm]=Km;cacheState;constructor(t,e,r,n,s){this.capacity=t,this.context=e,this.fiberId=r,this.lookup=n,this.timeToLive=s,this.cacheState={map:Oh(),keys:new Gm,accesses:Bh(void 0),updating:Ks(!1),hits:0,misses:0}}get(t){return Uu(this.getEither(t),Qt)}get cacheStats(){return Ku((()=>({hits:this.cacheState.hits,misses:this.cacheState.misses,size:jh(this.cacheState.map)})))}getOption(t){return zu((()=>ue(Eh(this.cacheState.map,t),{onNone:()=>{const e=Jm(t);return this.trackAccess(e),this.trackMiss(),Wu(se())},onSome:t=>this.resolveMapValue(t)})))}getOptionComplete(t){return zu((()=>ue(Eh(this.cacheState.map,t),{onNone:()=>{const e=Jm(t);return this.trackAccess(e),this.trackMiss(),Wu(se())},onSome:t=>this.resolveMapValue(t,!0)})))}contains(t){return Ku((()=>kh(this.cacheState.map,t)))}entryStats(t){return Ku((()=>{const e=Eh(this.cacheState.map,t);if(ce(e))switch(e.value._tag){case"Complete":return ie(Ym(e.value.entryStats.loadedMillis));case"Pending":return se();case"Refreshing":return ie(Ym(e.value.complete.entryStats.loadedMillis))}return se()}))}getEither(t){return zu((()=>{const e=t;let r,n,s=fe(Eh(this.cacheState.map,e));return void 0===s&&(n=gh(this.fiberId),r=Jm(e),kh(this.cacheState.map,e)?s=fe(Eh(this.cacheState.map,e)):Ih(this.cacheState.map,e,Pm(r,n))),void 0===s?(this.trackAccess(r),this.trackMiss(),Uu(this.lookupValueOf(t,n),Wt)):Ru(this.resolveMapValue(s),ue({onNone:()=>this.getEither(t),onSome:t=>Wu(zt(t))}))}))}invalidate(t){return Ku((()=>{Ch(this.cacheState.map,t)}))}invalidateWhen(t,e){return Ku((()=>{const r=Eh(this.cacheState.map,t);ce(r)&&"Complete"===r.value._tag&&"Success"===r.value.exit._tag&&e(r.value.exit.value)&&Ch(this.cacheState.map,t)}))}get invalidateAll(){return Ku((()=>{this.cacheState.map=Oh()}))}refresh(t){return Of((e=>zu((()=>{const r=t,n=gh(this.fiberId);let s=fe(Eh(this.cacheState.map,r));if(void 0===s&&(kh(this.cacheState.map,r)?s=fe(Eh(this.cacheState.map,r)):Ih(this.cacheState.map,r,Pm(Jm(r),n))),void 0===s)return mu(this.lookupValueOf(t,n));switch(s._tag){case"Complete":return this.hasExpired(e,s.timeToLiveMillis)?(V(fe(Eh(this.cacheState.map,r)),s)&&Ch(this.cacheState.map,r),mu(this.get(t))):u(this.lookupValueOf(t,n),Nf((()=>{if(V(fe(Eh(this.cacheState.map,r)),s)){const t=((t,e)=>Pi({_tag:"Refreshing",deferred:t,complete:e}))(n,s);return Ih(this.cacheState.map,r,t),!0}return!1})),mu);case"Pending":case"Refreshing":return ph(s.deferred)}}))))}set(t,e){return Of((r=>Ku((()=>{const n=r.unsafeCurrentTimeMillis(),s=t,i=yh(e),o=Dm(Jm(s),i,Ym(n),n+En(un(this.timeToLive(i))));Ih(this.cacheState.map,s,o)}))))}get size(){return Ku((()=>jh(this.cacheState.map)))}get values(){return Ku((()=>{const t=[];for(const e of this.cacheState.map)"Complete"===e[1]._tag&&"Success"===e[1].exit._tag&&t.push(e[1].exit.value);return t}))}get entries(){return Ku((()=>{const t=[];for(const e of this.cacheState.map)"Complete"===e[1]._tag&&"Success"===e[1].exit._tag&&t.push([e[0],e[1].exit.value]);return t}))}get keys(){return Ku((()=>{const t=[];for(const e of this.cacheState.map)"Complete"===e[1]._tag&&"Success"===e[1].exit._tag&&t.push(e[0]);return t}))}resolveMapValue(t,e=!1){return Of((r=>{switch(t._tag){case"Complete":return this.trackAccess(t.key),this.hasExpired(r,t.timeToLiveMillis)?(Ch(this.cacheState.map,t.key.current),Wu(se())):(this.trackHit(),Uu(t.exit,ie));case"Pending":return this.trackAccess(t.key),this.trackHit(),e?Wu(se()):Uu(ph(t.deferred),ie);case"Refreshing":return this.trackAccess(t.complete.key),this.trackHit(),this.hasExpired(r,t.complete.timeToLiveMillis)?e?Wu(se()):Uu(ph(t.deferred),ie):Uu(t.complete.exit,ie)}}))}trackHit(){this.cacheState.hits=this.cacheState.hits+1}trackMiss(){this.cacheState.misses=this.cacheState.misses+1}trackAccess(t){if(Dh(this.cacheState.accesses,t),Ys(this.cacheState.updating,!1,!0)){let t=!0;for(;t;){const e=Ph(this.cacheState.accesses,Th);e===Th?t=!1:this.cacheState.keys.add(e)}let e=jh(this.cacheState.map);for(t=e>this.capacity;t;){const r=this.cacheState.keys.remove();void 0!==r?kh(this.cacheState.map,r.current)&&(Ch(this.cacheState.map,r.current),e-=1,t=e>this.capacity):t=!1}Zs(this.cacheState.updating,!1)}}hasExpired(t,e){return t.unsafeCurrentTimeMillis()>e}lookupValueOf(t,e){return Of((r=>zu((()=>{const n=t;return u(this.lookup(t),fh(this.context),ku,Ru((t=>{const s=r.unsafeCurrentTimeMillis(),i=Ym(s),o=Dm(Jm(n),t,i,s+En(un(this.timeToLive(t))));return Ih(this.cacheState.map,n,o),sa(mh(e,t),t)})),Hu((()=>{return sa((t=e,Ru(Fu,(e=>ih(t,(t=>Cu(Ic(t)))(e))))),Ku((()=>{Ch(this.cacheState.map,n)})));var t})))}))))}}const Zm=t=>Uu(((t,e)=>{const[n,s]=(t=>{if(Array.isArray(t)||w(t))return[t,se()];const e=Object.keys(t),r=e.length;return[e.map((e=>t[e])),ie((t=>{const n={};for(let s=0;s<r;s++)n[e[s]]=t[s];return n}))]})(t);return"validate"===e?.mode?((t,e,n)=>{const s=[];for(const e of t)s.push(Mu(e));return Ru(vm(s,r,{concurrency:n?.concurrency,batching:n?.batching,concurrentFinalizers:n?.concurrentFinalizers}),(t=>{const r=se(),s=t.length,i=new Array(s),o=new Array(s);let c=!1;for(let e=0;e<s;e++){const n=t[e];"Left"===n._tag?(i[e]=ie(n.left),c=!0):(o[e]=n.right,i[e]=r)}return c?Iu("Some"===e._tag?e.value(i):i):n?.discard?Xu:Wu("Some"===e._tag?e.value(o):o)}))})(n,s,e):"either"===e?.mode?((t,e,n)=>{const s=[];for(const e of t)s.push(Mu(e));return n?.discard?vm(s,r,{concurrency:n?.concurrency,batching:n?.batching,discard:!0,concurrentFinalizers:n?.concurrentFinalizers}):Uu(vm(s,r,{concurrency:n?.concurrency,batching:n?.batching,concurrentFinalizers:n?.concurrentFinalizers}),(t=>"Some"===e._tag?e.value(t):t))})(n,s,e):!0!==e?.discard&&"Some"===s._tag?Uu(vm(n,r,e),s.value):vm(n,r,e)})([hh(),Fu]),(([e,r])=>new Qm(t.capacity,e,r,t.lookup,(e=>un(t.timeToLive(e)))))),Xm=La,tg=t=>function(){if(1===arguments.length){const e=arguments[0];return(r,...n)=>t(e,r,...n)}return t.apply(this,arguments)},eg=tg(((t,e,r)=>{const n=di(),s=[[Oa,[[n,t.context]]]];r?.scheduler&&s.push([Xd,[[n,r.scheduler]]]);let i=Xl(t.fiberRefs,{entries:s,forkAs:n});r?.updateRefs&&(i=r.updateRefs(i,n));const o=new mm(n,i,t.runtimeFlags);let c=e;r?.scope&&(c=Ru(Xm(r.scope,Cf),(t=>sa(((t,e)=>t.addFinalizer((()=>mu(e))))(t,Au((t=>V(t,o.id())?Xu:ia(o,t)))),Gu(e,(e=>((t,e)=>t.close(e))(t,e)))))));const u=o.currentSupervisor;return u!==Hp&&(u.onStart(t.context,c,se(),o),o.addObserver((t=>u.onEnd(t,o)))),fb.add(t.runtimeFlags,o),!1===r?.immediate?o.resume(c):o.start(c),o})),rg=Symbol.for("effect/Runtime/FiberFailure"),ng=Symbol.for("effect/Runtime/FiberFailure/Cause");class sg extends Error{[rg];[ng];constructor(t){const e=Xc(t)[0];super(e?.message||"An error has occurred"),this[rg]=rg,this[ng]=t,this.name=e?`(FiberFailure) ${e.name}`:"FiberFailure",e?.stack&&(this.stack=e.stack)}toJSON(){return{_id:"FiberFailure",cause:this[ng].toJSON()}}toString(){return"(FiberFailure) "+Gc(this[ng],{renderErrorCause:!0})}[z](){return this.toString()}}const ig=tg(((t,e,r)=>og(t,e,r).then((t=>{switch(t._tag){case ht:return t.effect_instruction_i0;case ot:throw(t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=0;const r=new sg(t);return Error.stackTraceLimit=e,r})(t.effect_instruction_i0)}})))),og=tg(((t,e,r)=>new Promise((n=>{const s=(t=>{const e=t;switch(e._op){case"Failure":case"Success":return e;case"Left":return Ka(e.left);case"Right":return Xa(e.right);case"Some":return Xa(e.value);case"None":return Ka(new Va)}})(e);s&&n(s);const i=eg(t)(e);i.addObserver((t=>{n(t)})),void 0!==r?.signal&&(r.signal.aborted?i.unsafeInterruptAsFork(i.id()):r.signal.addEventListener("abort",(()=>{i.unsafeInterruptAsFork(i.id())}),{once:!0}))}))));class cg{context;runtimeFlags;fiberRefs;constructor(t,e,r){this.context=t,this.runtimeFlags=e,this.fiberRefs=r}pipe(){return nt(this,arguments)}}const ug=t=>new cg(t.context,t.runtimeFlags,t.fiberRefs),ag=qo(1,32,4),hg=ig(ug({context:wr(),runtimeFlags:ag,fiberRefs:tf()})),lg=function(){const t=Symbol.for("effect/Data/Error/plainArgs");return class extends Ba{constructor(e){super(e?.message,e?.cause?{cause:e.cause}:void 0),e&&(Object.assign(this,e),Object.defineProperty(this,t,{value:e,enumerable:!1}))}toJSON(){return{...this[t],...this}}}}(),fg=t=>{const e={BaseEffectError:class extends lg{_tag=t}};return e.BaseEffectError.prototype.name=t,e.BaseEffectError},dg=function(){const t=1===arguments.length?arguments[0]:arguments[1].bind(arguments[0]);return e=()=>t(u),zu((()=>{const t=new au(pt);return t.effect_instruction_i0=e(),t}));var e},bg=Wu,pg=wu,mg=If,gg=Mf,yg=kf,Sg=hg;class wg extends(fg("FetchError")){}class vg extends(fg("NotFoundError")){}class _g extends(fg("ResponseTextError")){constructor(t){super(new Error("Failed to read response text",{cause:t}))}}const Og=function(...t){const e=2===t.length?e=>t[0](e)?Wt(e):zt(t[1](e)):e=>ue(t[0](e),{onNone:()=>Wt(e),onSome:zt});return Object.assign((t=>Zt(e(t),r)),{[tr]:tr,option:t=>{return r=e(t),Gt(r)?Bt:Dt(r.right);var r},either:e,is:t=>Yt(e(t))})}((function(t){if("string"!=typeof t)return!1;try{return"svg"===(new DOMParser).parseFromString(t,"image/svg+xml").documentElement.nodeName}catch{return!1}}),(()=>[{message:"SVG data is malformed",meta:undefined}]));class Eg extends(fg("BrandValidationError")){constructor(t,e){super(new Error(`Brand validation failed for type ${e}.`,{cause:t}))}}const Mg=()=>Og('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"></svg>'),kg=()=>(t=>{const e=un(t.timeToLive);return Zm({capacity:t.capacity,lookup:t.lookup,timeToLive:()=>e})})({capacity:200,timeToLive:pn,lookup:e=>dg((function*(){const r=t(`${e}.svg`,"icons"),n=yield*(i=r,((...t)=>_d((()=>Cd(1===t.length?t[0]():t[1].call(t[0])))))((function*(){const t=yield*Md({try:()=>fetch(i,o),catch:t=>new wg({cause:t})});return 404===t.status?yield*vd(new vg({url:t.url})):t}))),s=yield*(t=>Md({try:()=>t.text(),catch:t=>new _g(t)}))(n);var i,o,c,u;return yield*(c=s,u={try:()=>Og(c),catch:t=>new Eg(t,"SVGString")},_d((()=>{try{return Sd(u.try())}catch(t){return vd(u.catch(t))}})))}))});let Ig=null;function Ng(t){const e=t;return dg((function*(){return Ig||(Ig=yield*kg()),yield*Ig.get(e)}))}function Cg(){return dg((function*(){Ig?yield*Ig.invalidateAll:gg("Attempted to clear icon cache before it was initialized")}))}export{pg as a,Cg as c,Mg as e,Ng as f,yg as l,Sg as r,bg as s,mg as t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./p-T5ljELGS.js";const e=(e,o)=>{const a=function(...t){return t.filter(Boolean).join("/").replace("//","/").replace("/./","/")}("../../assets",o,e);try{return t(a)}catch{return console.warn(`Failed to create URL for asset "${e}" in path "${o}".\n Please provide an absolute URL in your app's 'setAssetPath(...)' configuration! Falling back to a relative URL, which may work in some environments but is not guaranteed to be correct.`),new URL(a,import.meta?.url??window?.location?.origin??"")}};export{e as c}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,c as e,h as t,H as a}from"./p-T5ljELGS.js";import{c as o}from"./p-CVf2C8dL.js";const m=class{constructor(t){r(this,t),this.primaryAction=e(this,"primaryAction")}cardTitle;imageUrl;description;primaryActionLabel="";primaryAction;get fallbackImage(){return o("card-placeholder.svg")}_onPrimaryClick(){this.primaryAction.emit()}_onOverflowClick(r){console.log(r)}render(){return t(a,{key:"ba2e8d9e25428c744da2470cbd677306c56b09ae",role:"article"},t("div",{key:"54ff7545559a4b6fb00c94909717234f4dfedd7c",class:"top"},t("div",{key:"7bff35f247b6e8aca9b6346103139daa65ca16a3",class:"image-wrapper",style:{backgroundImage:`url(${this.imageUrl??this.fallbackImage})`}},t("div",{key:"c2c3d21227175b9dc0a55c75294f6c21bc713a26",class:"chip-slot"},t("slot",{key:"1a7002aab5fc3f9f698c3d1678f8819ea36f91d3",name:"chip"})))),t("div",{key:"a313321abe4da83db4b2ba64fdefa28edde93d41",class:"bottom"},t("header",{key:"f5ba333fcaa59d5b4f61dee94aba4628f49db9d7"},t("h2",{key:"b7d9ad6944b136476703cde89f885b189583eef1",class:"title"},this.cardTitle)),t("p",{key:"6594626904a4f9fbc53d5956b71bbdefe00add8c",class:"description"},this.description),t("div",{key:"d8bbfebeb572fcf6990160a0dba7c5ae8a5a7fc7",class:"actions"},t("button",{key:"6311a97a18412f8fbf8eb33e8a0f7a17700e71c6",class:"primary",onClick:this._onPrimaryClick.bind(this),"data-testid":"primary"},this.primaryActionLabel),t("button",{key:"12033ad5018d100f84f0149d83dc965d8e5b2c66",class:"tertiary","aria-label":"More actions",onClick:this._onOverflowClick},t("span",{key:"e11f8008542b4f7f70d1273bb31200c50d02aabb",class:"icon-placeholder"},"...")))))}static get assetsDirs(){return["../../assets"]}};m.style="@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } @layer lmvz-ds.reset { h1, h2, h3, h4, h5, h6 { margin: 0; } } .sc-lmvz-card-h { button { --lmvz-button-color: var(--lmvz-component-color, var(--lmvz-semantic-color-int-on-primary, #ffffff)); --lmvz-button-padding-inline: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-padding-block: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); --lmvz-button-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-button-border-width: 0; --lmvz-button-border-color: transparent; --lmvz-button-background: var(--lmvz-semantic-color-int-primary, #000000); display: inline-flex; align-items: center; justify-content: center; gap: var(--lmvz-button-gap); padding-block: var(--lmvz-button-padding-block); padding-inline: var(--lmvz-button-padding-inline); border-radius: var(--lmvz-button-radius); border: var(--lmvz-button-border-width) solid var(--lmvz-button-border-color); background-color: var(--lmvz-button-background); color: var(--lmvz-button-color); cursor: pointer; font: var(--lmvz-button-font); text-align: center; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } button > * { font: inherit; color: inherit; } button:focus-visible { outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-selected, #f1f9fe); outline-offset: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); } button:is([disabled], .disabled) { cursor: not-allowed; pointer-events: none; opacity: var(--lmvz-component-input-disabled-opacity, 40%); } button:not([disabled]):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-hover, #2e2e2e); } button:not([disabled]):active { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-active, #545454); } button.secondary { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-button-border-width: var(--lmvz-semantic-border-width-default, 1px); --lmvz-button-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); } button.secondary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-button-border-color: var(--lmvz-semantic-color-border-hover, #c7c7c7); } button.secondary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4); --lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #d4d4d4); } button.tertiary { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); --lmvz-button-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); } button.tertiary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } button.tertiary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } button.small { --lmvz-button-padding-inline: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-padding-block: var(--lmvz-component-input-sm-padding-y, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-gap: var(--lmvz-component-input-sm-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } button.large { --lmvz-button-padding-inline: var(--lmvz-component-input-lg-padding-x, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-padding-block: var(--lmvz-component-input-lg-padding-y, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-gap: var(--lmvz-component-input-lg-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); } display: flex; min-width: var(--lmvz-other-component-card-minwidth, 20.4375rem); max-width: var(--lmvz-other-component-card-maxwidth, 21.6875rem); flex-direction: column; align-items: flex-start; border-radius: var(--lmvz-semantic-border-radius-lg, 14px); border: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-default, #e0e0e0); background: var(--lmvz-semantic-color-surface-primary, #ffffff); } *.sc-lmvz-card { color: var(--lmvz-semantic-color-on-surface-primary, #000000); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } .top.sc-lmvz-card { display: flex; padding: var(--lmvz-dimension-8-12, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); flex-direction: column; justify-content: center; align-items: center; align-self: stretch; } .bottom.sc-lmvz-card { display: flex; min-width: 150px; padding: var(--lmvz-dimension-4-6, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)); flex-direction: column; align-items: flex-start; align-self: stretch; } .title.sc-lmvz-card { margin: 0; display: flex; justify-content: center; align-items: center; align-self: stretch; padding-bottom: var(--lmvz-global-s4, 4px); overflow-wrap: break-word; font: var(--lmvz-typography-heading-2xl, 500 clamp(2rem, 1.94rem + 0.26vw, 2.25rem) / 1.2 Router); } .description.sc-lmvz-card { display: flex; margin: 0; padding-bottom: var(--lmvz-component-body-sm-padding-bottom, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); align-items: flex-start; align-self: stretch; white-space: pre-line; font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } .image-wrapper.sc-lmvz-card { aspect-ratio: 4 / 3; width: 100%; background-size: cover; background-position: center; flex: 1 0 0; align-self: stretch; border-radius: var(--lmvz-semantic-border-radius-md, 6px); } .actions.sc-lmvz-card { margin-top: var(--lmvz-component-form-wrapper-gap-y, clamp(1.13rem, 0.97rem + 0.65vw, 1.75rem)); display: flex; align-items: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); align-self: stretch; } button.primary.sc-lmvz-card, lmvz-button.primary.sc-lmvz-card { display: flex; justify-content: center; align-items: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); flex: 1 0 0; }";export{m as lmvz_card}
|
package/dist/manifest.json
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
declare const URLCreationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
3
|
-
readonly _tag: "URLCreationError";
|
|
4
|
-
} & Readonly<A>;
|
|
5
|
-
export declare class URLCreationError extends URLCreationError_base<Error> {
|
|
6
|
-
}
|
|
7
|
-
export declare const syncCreateAssetUrlSafely: (file: string, pathFromAssetRoot?: string | undefined) => Effect.Effect<string | URL, never, never>;
|
|
8
|
-
export {};
|
|
1
|
+
export declare const createAssetUrlSafely: (file: string, pathFromAssetRoot?: string | undefined) => string | URL;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Effect } from 'effect';
|
|
1
|
+
import { Micro as Effect } from 'effect';
|
|
2
2
|
declare const FetchError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
3
3
|
readonly _tag: "FetchError";
|
|
4
4
|
} & Readonly<A>;
|
|
@@ -13,12 +13,12 @@ export declare class NotFoundError extends NotFoundError_base<{
|
|
|
13
13
|
url: string;
|
|
14
14
|
}> {
|
|
15
15
|
}
|
|
16
|
-
export declare const httpClient: (input: RequestInfo | URL, init?: RequestInit) => Effect.
|
|
16
|
+
export declare const httpClient: (input: RequestInfo | URL | string, init?: RequestInit) => Effect.Micro<Response, FetchError | NotFoundError, never>;
|
|
17
17
|
declare const ResponseTextError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
18
18
|
readonly _tag: "ResponseTextError";
|
|
19
19
|
} & Readonly<A>;
|
|
20
20
|
export declare class ResponseTextError extends ResponseTextError_base<Error> {
|
|
21
21
|
constructor(error: Error);
|
|
22
22
|
}
|
|
23
|
-
export declare const responseAsText: (res: Response) => Effect.
|
|
23
|
+
export declare const responseAsText: (res: Response) => Effect.Micro<string, ResponseTextError, never>;
|
|
24
24
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Brand, Effect } from 'effect';
|
|
1
|
+
import { Brand, Micro as Effect } from 'effect';
|
|
2
2
|
export type SVGString = string & Brand.Brand<'SVG'>;
|
|
3
3
|
export declare const SVGString: Brand.Brand.Constructor<SVGString>;
|
|
4
4
|
declare const BrandValidationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
@@ -7,5 +7,5 @@ declare const BrandValidationError_base: new <A extends Record<string, any> = {}
|
|
|
7
7
|
export declare class BrandValidationError extends BrandValidationError_base<Error> {
|
|
8
8
|
constructor(error: Error, type: string);
|
|
9
9
|
}
|
|
10
|
-
export declare const createValidSVGString: (svg: string) => Effect.
|
|
10
|
+
export declare const createValidSVGString: (svg: string) => Effect.Micro<SVGString, BrandValidationError, never>;
|
|
11
11
|
export {};
|