@lmvz-ds/components 0.12.5 → 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/{esm/Effect-BhQLGXPs.js → cjs/icons-FIfJEo6G.js} +1708 -5205
- package/dist/cjs/{index-CVw4GUo6.js → index-Bp6Dd2i1.js} +4 -2
- package/dist/cjs/{index-9ZJx0550.js → index-D3BMpL5w.js} +0 -3
- package/dist/cjs/index.cjs.js +4 -6
- package/dist/cjs/lmvz-action.cjs.entry.js +1 -1
- package/dist/cjs/lmvz-button.cjs.entry.js +7 -10
- package/dist/cjs/lmvz-card.cjs.entry.js +4 -5
- package/dist/cjs/lmvz-chip.cjs.entry.js +1 -1
- package/dist/cjs/lmvz-components.cjs.js +1 -1
- package/dist/cjs/lmvz-header.cjs.entry.js +13 -12
- package/dist/cjs/lmvz-icon.cjs.entry.js +8 -10
- package/dist/cjs/lmvz-input.cjs.entry.js +8 -11
- package/dist/cjs/lmvz-menuitem.cjs.entry.js +5 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/reactive-controller-host-BMDEj1kX.js +168 -0
- package/dist/collection/components/lmvz-button/lmvz-button.js +3 -3
- package/dist/collection/components/lmvz-card/lmvz-card.js +3 -4
- package/dist/collection/components/lmvz-header/lmvz-header.js +11 -8
- package/dist/collection/components/lmvz-icon/icons.js +2 -2
- package/dist/collection/components/lmvz-icon/lmvz-icon.js +2 -2
- package/dist/collection/components/lmvz-icon/test/icons.unit.js +21 -12
- package/dist/collection/components/lmvz-input/lmvz-input.css +5 -2
- package/dist/collection/components/lmvz-input/lmvz-input.js +3 -3
- package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +3 -3
- package/dist/collection/integration/header-integration.js +3 -1
- package/dist/collection/utils/{validation → aria}/aria-validation-controller.js +15 -34
- package/dist/collection/utils/{list-keyboard-controller.js → aria/list-keyboard-controller.js} +1 -1
- package/dist/collection/utils/assets.js +9 -6
- package/dist/collection/utils/http.js +2 -2
- package/dist/collection/utils/{http.test.js → http.unit.js} +8 -7
- package/dist/collection/utils/validation/svg.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/lmvz-action.js +1 -1
- package/dist/components/lmvz-button.js +1 -1
- package/dist/components/lmvz-card.js +1 -1
- package/dist/components/lmvz-chip.js +1 -1
- package/dist/components/lmvz-header.js +1 -1
- package/dist/components/lmvz-icon.js +1 -1
- package/dist/components/lmvz-input.js +1 -1
- package/dist/components/lmvz-menuitem.js +1 -1
- package/dist/components/{p-DMLRPGid.js → p-BfTCfPZ1.js} +1 -1
- package/dist/components/p-BsS3QvWn.js +1 -0
- package/dist/components/p-CMteT-Yo.js +1 -0
- package/dist/components/p-CdYWDK7m.js +1 -0
- package/dist/components/p-vi4YzJmv.js +1 -0
- package/dist/esm/assets-BelZNJ1W.js +23 -0
- package/dist/{cjs/Effect-CNhHt4Xb.js → esm/icons-CM7lsnuO.js} +1751 -5457
- package/dist/esm/{index-Bt32KzDW.js → index-BfTCfPZ1.js} +3 -1
- package/dist/esm/{index-smGPjoDX.js → index-T5ljELGS.js} +1 -3
- package/dist/esm/index.js +4 -5
- package/dist/esm/lmvz-action.entry.js +1 -1
- package/dist/esm/lmvz-button.entry.js +5 -8
- package/dist/esm/lmvz-card.entry.js +4 -5
- package/dist/esm/lmvz-chip.entry.js +1 -1
- package/dist/esm/lmvz-components.js +2 -2
- package/dist/esm/lmvz-header.entry.js +11 -10
- package/dist/esm/lmvz-icon.entry.js +5 -7
- package/dist/esm/lmvz-input.entry.js +6 -9
- package/dist/esm/lmvz-menuitem.entry.js +3 -5
- package/dist/esm/loader.js +2 -2
- package/dist/esm/reactive-controller-host-CZ3dGAjR.js +165 -0
- package/dist/lmvz-components/index.esm.js +1 -1
- package/dist/lmvz-components/lmvz-components.esm.js +1 -1
- package/dist/lmvz-components/p-16878d4c.entry.js +1 -0
- package/dist/lmvz-components/p-6e3314ab.entry.js +1 -0
- package/dist/lmvz-components/p-8ea1a349.entry.js +1 -0
- package/dist/lmvz-components/{p-d4b68381.entry.js → p-980688a0.entry.js} +1 -1
- package/dist/lmvz-components/{p-DMLRPGid.js → p-BfTCfPZ1.js} +1 -1
- package/dist/lmvz-components/p-BoR31cjC.js +1 -0
- package/dist/lmvz-components/p-CVf2C8dL.js +1 -0
- package/dist/lmvz-components/p-CZ3dGAjR.js +1 -0
- package/dist/lmvz-components/p-T5ljELGS.js +2 -0
- package/dist/lmvz-components/p-a34542fa.entry.js +1 -0
- package/dist/lmvz-components/p-d2bf6a3f.entry.js +1 -0
- package/dist/lmvz-components/p-d9dc29a1.entry.js +1 -0
- package/dist/lmvz-components/{p-9faac8f3.entry.js → p-feda2ec5.entry.js} +1 -1
- package/dist/manifest.json +1 -1
- package/dist/types/components/lmvz-button/lmvz-button.d.ts +2 -2
- package/dist/types/components/lmvz-header/lmvz-header.d.ts +5 -4
- package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +1 -1
- package/dist/types/components/lmvz-input/lmvz-input.d.ts +1 -1
- package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +2 -2
- package/dist/types/utils/{validation → aria}/aria-validation-controller.d.ts +1 -5
- package/dist/types/utils/{element-activation-controller.d.ts → aria/element-activation-controller.d.ts} +2 -2
- package/dist/types/utils/{list-keyboard-controller.d.ts → aria/list-keyboard-controller.d.ts} +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 +3608 -54447
- package/hydrate/index.mjs +3608 -54447
- package/package.json +17 -18
- package/readme.md +18 -0
- package/dist/cjs/MutableQueue-Bk9tBfaK.js +0 -462
- package/dist/cjs/_commonjsHelpers-CFO10eej.js +0 -7
- package/dist/cjs/aria-validation-controller-B3hMkau3.js +0 -2930
- package/dist/cjs/assets-BguFB3wV.js +0 -71
- package/dist/cjs/axe-BNqwbBGU.js +0 -32834
- package/dist/cjs/icons-7wUEcWEo.js +0 -607
- package/dist/components/p-3I3wZmp8.js +0 -1
- package/dist/components/p-B85MJLTf.js +0 -1
- package/dist/components/p-BaPwpeMs.js +0 -1
- package/dist/components/p-CAi33KTt.js +0 -1
- package/dist/components/p-CdofjRtQ.js +0 -1
- package/dist/components/p-D1HbKFuh.js +0 -12
- package/dist/components/p-UwhTS2ue.js +0 -1
- package/dist/esm/MutableQueue-CNlEFklh.js +0 -431
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +0 -5
- package/dist/esm/aria-validation-controller-iA4YWFG-.js +0 -2927
- package/dist/esm/assets-Iu8neKuE.js +0 -67
- package/dist/esm/axe-cRQ9Ux1I.js +0 -32832
- package/dist/esm/icons-Bx1wWPM2.js +0 -603
- package/dist/lmvz-components/p-1a10fcbd.entry.js +0 -1
- package/dist/lmvz-components/p-274c36df.entry.js +0 -1
- package/dist/lmvz-components/p-2ba68483.entry.js +0 -1
- package/dist/lmvz-components/p-4XIjw3k8.js +0 -1
- package/dist/lmvz-components/p-51Fb_qqD.js +0 -1
- package/dist/lmvz-components/p-77e26e71.entry.js +0 -1
- package/dist/lmvz-components/p-B85MJLTf.js +0 -1
- package/dist/lmvz-components/p-BhQLGXPs.js +0 -1
- package/dist/lmvz-components/p-CXWyvf0D.js +0 -1
- package/dist/lmvz-components/p-D1HbKFuh.js +0 -12
- package/dist/lmvz-components/p-D7I-Bc5i.js +0 -1
- package/dist/lmvz-components/p-a5fe62b6.entry.js +0 -1
- package/dist/lmvz-components/p-c8b78793.entry.js +0 -1
- package/dist/lmvz-components/p-smGPjoDX.js +0 -2
- /package/dist/collection/utils/{element-activation-controller.js → aria/element-activation-controller.js} +0 -0
- /package/dist/types/utils/{http.test.d.ts → http.unit.d.ts} +0 -0
|
@@ -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
|
+
const t=Symbol("__lmvzAriaValidationRuntimeState"),i="lmvz:aria-validation-runtime-changed",o=()=>{const i=globalThis;return i[t]||(i[t]={enabled:!1}),i[t]},e=()=>o().enabled;class n{host;config;visibilityObserver;elementQueued=!1;elementValidated=!1;knownValidationErrors=[];get disabled(){return!e()}constructor(t,i){this.host=t,this.config=i}onRuntimeConfigChange=()=>{e()&&this.checkLazyValidation()};hostDidLoad(){"undefined"!=typeof window&&window.addEventListener(i,this.onRuntimeConfigChange),this.elementQueued||this.elementValidated||(this.host.el.checkVisibility()?this.enqueueValidation():this.observeVisibilityOnce())}hostDidUpdate(){this.checkLazyValidation()}hostDisconnected(){this.discardVisibilityObserver(),"undefined"!=typeof window&&window.removeEventListener(i,this.onRuntimeConfigChange)}observeVisibilityOnce(){this.visibilityObserver=new IntersectionObserver((t=>{for(const i of t)i.target===this.host.el&&i.isIntersecting&&(this.checkLazyValidation(),this.discardVisibilityObserver())}),{root:this.host.el.parentElement,rootMargin:"0px",threshold:.01}),this.visibilityObserver.observe(this.host.el)}checkLazyValidation(){(this.config?.reValidateOnPropChanges||!this.elementQueued&&!this.elementValidated)&&this.enqueueValidation()}enqueueValidation(){e()&&(this.elementQueued=!0,function(...t){const i=o();i.enabled&&i.runtime&&i.runtime.enqueueValidation(...t)}({context:{include:this.host.el,exclude:this.knownValidationErrors},onComplete:(t,i)=>{if(this.elementValidated=!0,t)return void console.error("Error running ARIA validation:",t);if(!i?.violations.length)return void(this.config?.verboseLogging&&console.log(`No ARIA validation violations found for ${this.host.el?.tagName||"element"}.`));const o=`ARIA validation violations found for ${this.host.el?.tagName||"element"}`;this.config?.verboseLogging?console.group(o):console.groupCollapsed(o);const e=i.violations.flatMap((t=>(console.dir(t,{showHidden:!0,compact:!1}),t.nodes.map((t=>t.target)))));console.log("element:",this.host.el),console.groupEnd(),this.knownValidationErrors.push(...e)}}))}discardVisibilityObserver(){this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=void 0)}}class s{controllers=new Set;addController(t){this.controllers.add(t)}removeController(t){this.controllers.delete(t)}get activeControllers(){return Array.from(this.controllers).filter((t=>!t.disabled))}connectedCallback(){this.controllers.size||console.warn("ReactiveControllerHost connected with no controllers registered.",this),this.activeControllers.forEach((t=>t.hostConnected?.()))}disconnectedCallback(){this.activeControllers.forEach((t=>t.hostDisconnected?.()))}componentWillLoad(){this.activeControllers.forEach((t=>t.hostWillLoad?.()))}componentDidLoad(){this.activeControllers.forEach((t=>t.hostDidLoad?.()))}componentWillRender(){this.activeControllers.forEach((t=>t.hostWillRender?.()))}componentDidRender(){this.activeControllers.forEach((t=>t.hostDidRender?.()))}componentWillUpdate(){this.activeControllers.forEach((t=>t.hostWillUpdate?.()))}componentDidUpdate(){this.activeControllers.forEach((t=>t.hostDidUpdate?.()))}}export{n as A,s as R}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(t||{}),n=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(n||{}),e="type",o="value",l="serialized:";function s(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var i,r=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=s(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(e)?t[e]=n.l.get(e):void 0!==o&&(t[e]=o)}}))},c=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},u=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&r(t,n))},f=(t,n)=>n in t,a=(t,n)=>(0,console.error)(t,n),d=new Map,p=new Map,$="s-id",h="sty-id",v="c-id",m="slot-fb{display:contents}slot-fb[hidden]{display:none}",y="http://www.w3.org/1999/xlink",b=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],g="undefined"!=typeof window?window:{},w={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},j=t=>Promise.resolve(t),S=(()=>{try{return!!g.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),O=!!S&&(()=>!!g.document&&Object.getOwnPropertyDescriptor(g.document.adoptedStyleSheets,"length").writable)(),k=!1,N=[],C=[],x=(t,n)=>e=>{t.push(e),k||(k=!0,n&&4&w.u?L(M):w.raf(M))},E=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){a(t)}t.length=0},M=()=>{E(N),E(C),(k=N.length>0)&&w.raf(M)},L=t=>j().then(t),R=x(C,!0),I=t=>{const n=new URL(t,w.p);return n.origin!==g.location.origin?n.href:n.pathname};function A(t){const n={mode:"open"};n.delegatesFocus=!!(16&t.u);const e=this.attachShadow(n);void 0===i&&(i=null),i&&(O?e.adoptedStyleSheets.push(i):e.adoptedStyleSheets=[...e.adoptedStyleSheets,i])}var T=t=>{const n=V(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&D(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!F(t,B(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&V(t,"childNodes").length&&T(t)}};function D(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||B(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,...D(o.childNodes,n,e)]}return s}var F=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)B(l)!==n||!e&&l["s-sr"]||o.push(l);return o},P=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,U=(t,n,e,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode,i=V(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=V(s,"childNodes"),n=[l];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>i.call(s,t)))}else i.call(s,l);t["s-ol"]=l,t["s-sh"]=n["s-hn"]},B=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function H(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===B(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}function V(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}function z(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var _=new WeakMap,W=(t,n,e)=>{let o=p.get(t);S&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,p.set(t,o)},q=(t,n)=>{var e,o,l;const s=Y(n),i=p.get(s);if(!g.document)return s;if(t=11===t.nodeType?t:g.document,i)if("string"==typeof i){let l,r=_.get(t=t.head||t);r||_.set(t,r=new Set);const c=t.querySelector(`[${h}="${s}"]`);if(c)c.textContent=i;else if(!r.has(s)){l=g.document.createElement("style"),l.textContent=i;const c=null!=(e=w.$)?e:z(g.document);if(null!=c&&l.setAttribute("nonce",c),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(S){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(i),O?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=i+n.textContent:t.prepend(l)}else t.append(l);1&n.u&&t.insertBefore(l,null),4&n.u&&(l.textContent+=m),r&&r.add(s)}}else{let n=_.get(t);if(n||_.set(t,n=new Set),!n.has(s)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(i.constructor===e.CSSStyleSheet)o=i;else{o=new e.CSSStyleSheet;for(let t=0;t<i.cssRules.length;t++)o.insertRule(i.cssRules[t].cssText,t)}if(O?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(s),"host"in t){const n=t.querySelector(`[${h}="${s}"]`);n&&R((()=>n.remove()))}}}return s},Y=t=>"sc-"+t.h,G=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),J=t=>"object"==(t=typeof t)||"function"===t,Z=(t,n,...e)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!J(o))&&(o+=""),i&&r?c[c.length-1].v+=o:c.push(i?K(null,o):o),r=i)};if(u(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const f=K(t,null);return f.m=n,c.length>0&&(f.j=c),f.S=l,f.O=s,f},K=(t,n)=>({u:0,k:t,v:null!=n?n:null,N:null,j:null,m:null,S:null,O:null}),Q={},X=(t,n,e,o,l,s,i,r=[])=>{let c,u,f,a;const d=l["s-sc"];if(1===s.nodeType){if(c=s.getAttribute(v),c&&(u=c.split("."),u[0]===i||"0"===u[0])){f=nt({u:0,C:u[0],M:u[1],L:u[2],R:u[3],k:s.tagName.toLowerCase(),N:s,m:{class:s.className||""}}),n.push(f),s.removeAttribute(v),t.j||(t.j=[]),d&&u[0]===i&&(s["s-si"]=d,f.m.class+=" "+d);const l=f.N.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===f.k&&(et(l,u[2],f,s,t,n,e,o,r),d&&s.classList.add(d)),f.N["s-sn"]=l,f.N.removeAttribute("s-sn")),void 0!==f.R&&(t.j[f.R]=f),t=f,o&&"0"===f.L&&(o[f.R]=f.N)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)X(t,n,e,o,l,s.shadowRoot.childNodes[a],i,r);const p=s.__childNodes||s.childNodes;for(a=p.length-1;a>=0;a--)X(t,n,e,o,l,p[a],i,r)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===i||"0"===u[1])&&(c=u[0],f=nt({C:u[1],M:u[2],L:u[3],R:u[4]||"0",N:s,m:null,j:null,S:null,O:null,k:null,v:null}),"t"===c?(f.N=rt(s,3),f.N&&3===f.N.nodeType&&(f.v=f.N.textContent,n.push(f),s.remove(),i===f.C&&(t.j||(t.j=[]),t.j[f.R]=f),o&&"0"===f.L&&(o[f.R]=f.N))):"c"===c?(f.N=rt(s,8),f.N&&8===f.N.nodeType&&(n.push(f),s.remove())):f.C===i&&("s"===c?et(s["s-sn"]=u[5]||"",u[2],f,s,t,n,e,o,r):"r"===c&&(o?s.remove():(l["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.k){const n=K(null,s.textContent);n.N=s,n.R="0",t.j=[n]}return t},tt=(t,n)=>{if(1===t.nodeType){const e=t[$]||t.getAttribute($);e&&n.set(e,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)tt(t.shadowRoot.childNodes[o],n);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)tt(l[o],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},nt=t=>({u:0,C:null,M:null,L:null,R:"0",N:null,m:null,j:null,S:null,O:null,k:null,v:null,...t});function et(t,n,e,o,l,s,i,r,c){o["s-sr"]=!0,e.O=t||null,e.k="slot";const u=(null==l?void 0:l.N)?l.N["s-id"]||l.N.getAttribute("s-id"):"";if(r&&g.document){const s=e.N=g.document.createElement(e.k);e.O&&e.N.setAttribute("name",t),l.N.shadowRoot&&u&&u!==e.C?V(l.N,"insertBefore")(s,V(l.N,"children")[0]):V(V(o,"parentNode"),"insertBefore")(s,o),it(c,n,t,o,e.C),o.remove(),"0"===e.L&&(r[e.R]=e.N)}else{const s=e.N,i=u&&u!==e.C&&l.N.shadowRoot;it(c,n,t,o,i?u:e.C),H(o),i&&l.N.insertBefore(s,l.N.children[0])}s.push(e),i.push(e),l.j||(l.j=[]),l.j[e.R]=e}var ot,lt,st,it=(t,n,e,o,l)=>{var s,i;let r=o.nextSibling;if(t[n]=t[n]||[],r&&!(null==(s=r.nodeValue)?void 0:s.startsWith("s.")))do{!r||(r.getAttribute&&r.getAttribute("slot")||r["s-sn"])!==e&&(""!==e||r["s-sn"]||r.getAttribute&&r.getAttribute("slot")||8!==r.nodeType&&3!==r.nodeType)||(r["s-sn"]=e,t[n].push({slot:o,node:r,hostId:l})),r=null==r?void 0:r.nextSibling}while(r&&!(null==(i=r.nodeValue)?void 0:i.startsWith("s.")))},rt=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},ct=class l{static fromLocalValue(t){const n=t[e],s=o in t?t[o]:void 0;switch(n){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((t=>l.fromLocalValue(t)));case"date":return new Date(s);case"map":const t=new Map;for(const[n,e]of s){const o="object"==typeof n&&null!==n?l.fromLocalValue(n):n,s=l.fromLocalValue(e);t.set(o,s)}return t;case"object":const e={};for(const[t,n]of s)e[t]=l.fromLocalValue(n);return e;case"regexp":const{pattern:o,flags:i}=s;return RegExp(o,i);case"set":const r=new Set;for(const t of s)r.add(l.fromLocalValue(t));return r;case"symbol":return Symbol(s);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(t){return t.map((t=>l.fromLocalValue(t)))}static isLocalValueObject(l){if("object"!=typeof l||null===l)return!1;if(!l.hasOwnProperty(e))return!1;const s=l[e];return!!Object.values({...t,...n}).includes(s)&&("null"===s||"undefined"===s||l.hasOwnProperty(o))}},ut=(t,n,e)=>"string"==typeof t&&t.startsWith(l)?t=function(t){return"string"==typeof t&&t.startsWith(l)?ct.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||J(t)?t:4&n?(e&&"string"==typeof t||"false"!==t)&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t,ft=t=>{var n;return null==(n=c(t))?void 0:n.$hostElement$},at=(t,n)=>{const e=ft(t);return{emit:t=>dt(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},dt=(t,n,e)=>{const o=w.ce(n,e);return t.dispatchEvent(o),o},pt=(t,n,e,o,l,s,i)=>{if(e===o)return;let r=f(t,n),u=n.toLowerCase();if("class"===n){const n=t.classList,l=ht(e);let s=ht(o);if((t["s-si"]||t["s-sc"])&&i){const e=t["s-sc"]||t["s-si"];s.push(e),l.forEach((t=>{t.startsWith(e)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),n.add(...s)}else n.remove(...l.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&Ft(o,t);else if(r||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let l;{const n=c(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(l=t[1])}}return l||(l=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const i=J(o);if((r||i&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?r=!1:null!=e&&t[n]===l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let c=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(n=u,c=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(n)||(c?t.removeAttributeNS(y,n):t.removeAttribute(n)):(!r||4&s||l)&&!i&&1===t.nodeType&&(o=!0===o?"":o,c?t.setAttributeNS(y,n,o):t.setAttribute(n,o))}}else if(n="-"===n[2]?n.slice(3):f(g,u)?u.slice(2):u[2]+n.slice(3),e||o){const l=n.endsWith(vt);n=n.replace(mt,""),e&&w.rel(t,n,e,l),o&&w.ael(t,n,o,l)}},$t=/\s/,ht=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split($t):[]),vt="Capture",mt=RegExp(vt+"$"),yt=(t,n,e,o)=>{const l=11===n.N.nodeType&&n.N.host?n.N.host:n.N,s=t&&t.m||{},i=n.m||{};for(const t of bt(Object.keys(s)))t in i||pt(l,t,s[t],void 0,e,n.u,o);for(const t of bt(Object.keys(i)))pt(l,t,s[t],i[t],e,n.u,o)};function bt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var gt=!1,wt=!1,jt=!1,St=!1,Ot=[],kt=[],Nt=(t,n,e)=>{var o;const l=n.j[e];let s,i,r,c=0;if(gt||(jt=!0,"slot"===l.k&&(l.u|=l.j?2:1)),null!=l.v)s=l.N=g.document.createTextNode(l.v);else if(1&l.u)s=l.N=g.document.createTextNode(""),yt(null,l,St);else{if(!g.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.N=g.document.createElement(!gt&&2&l.u?"slot-fb":l.k),yt(null,l,St),null!=ot&&void 0!==ot&&s["s-si"]!==ot&&s.classList.add(s["s-si"]=ot),l.j){const n="template"===l.k?s.content:s;for(c=0;c<l.j.length;++c)i=Nt(t,l,c),i&&n.appendChild(i)}}return s["s-hn"]=st,3&l.u&&(s["s-sr"]=!0,s["s-cr"]=lt,s["s-sn"]=l.O||"",s["s-rf"]=null==(o=l.m)?void 0:o.ref,H(s),r=t&&t.j&&t.j[e],r&&r.k===l.k&&t.N&&Ct(t.N),Ut(lt,s,n.N,null==t?void 0:t.N)),s},Ct=t=>{w.u|=1;const n=t.closest(st.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(Pt(n,t,null!=e?e:null),t["s-sh"]=void 0,jt=!0)}w.u&=-2},xt=(t,n)=>{w.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===st&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==st&&o["s-ol"]&&(Pt(Rt(o).parentNode,o,Rt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,jt=!0),n&&xt(o,n)}w.u&=-2},Et=(t,n,e,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===st&&(r=r.shadowRoot),"template"===e.k&&(r=r.content);l<=s;++l)o[l]&&(i=Nt(null,e,l),i&&(o[l].N=i,Pt(r,i,Rt(n))))},Mt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.N;Dt(n),t&&(wt=!0,t["s-ol"]?t["s-ol"].remove():xt(t,!0),t.remove())}}},Lt=(t,n,e=!1)=>t.k===n.k&&("slot"===t.k?t.O===n.O:e?(e&&!t.S&&n.S&&(t.S=n.S),!0):t.S===n.S),Rt=t=>t&&t["s-ol"]||t,It=(t,n,e=!1)=>{const o=n.N=t.N,l=t.j,s=n.j,i=n.v;let r;null==i?("slot"!==n.k||gt||t.O!==n.O&&(n.N["s-sn"]=n.O||"",Ct(n.N.parentElement)),yt(t,n,St,e),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],p=n[a],$=o.length-1,h=o[0],v=o[$];const m="template"===e.k?t.content:t;for(;r<=a&&c<=$;)if(null==d)d=n[++r];else if(null==p)p=n[--a];else if(null==h)h=o[++c];else if(null==v)v=o[--$];else if(Lt(d,h,l))It(d,h,l),d=n[++r],h=o[++c];else if(Lt(p,v,l))It(p,v,l),p=n[--a],v=o[--$];else if(Lt(d,v,l))"slot"!==d.k&&"slot"!==v.k||xt(d.N.parentNode,!1),It(d,v,l),Pt(m,d.N,p.N.nextSibling),d=n[++r],v=o[--$];else if(Lt(p,h,l))"slot"!==d.k&&"slot"!==v.k||xt(p.N.parentNode,!1),It(p,h,l),Pt(m,p.N,d.N),p=n[--a],h=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].S&&n[f].S===h.S){u=f;break}u>=0?(i=n[u],i.k!==h.k?s=Nt(n&&n[c],e,u):(It(i,h,l),n[u]=void 0,s=i.N),h=o[++c]):(s=Nt(n&&n[c],e,c),h=o[++c]),s&&Pt(Rt(d.N).parentNode,s,Rt(d.N))}r>a?Et(t,null==o[$+1]?null:o[$+1].N,e,o,c,$):c>$&&Mt(n,r,a)})(o,l,n,s,e):null!==s?(null!==t.v&&(o.textContent=""),Et(o,null,n,s,0,s.length-1)):e||null===l?e&&null!==l&&null===s&&(n.j=l):Mt(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:t.v!==i&&(o.data=i)},At=[],Tt=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(P(n,l)){let e=At.find((t=>t.I===n));wt=!0,n["s-sn"]=n["s-sn"]||l,e?(e.I["s-sh"]=t["s-hn"],e.A=t):(n["s-sh"]=t["s-hn"],At.push({A:t,I:n})),n["s-sr"]&&At.map((t=>{P(t.I,n["s-sn"])&&(e=At.find((t=>t.I===n)),e&&!t.A&&(t.A=e.A))}))}else At.some((t=>t.I===n))||At.push({I:n})}1===t.nodeType&&Tt(t)}},Dt=t=>{t.m&&t.m.ref&&Ot.push((()=>t.m.ref(null))),t.j&&t.j.map(Dt)},Ft=(t,n)=>{kt.push((()=>t(n)))},Pt=(t,n,e,o)=>{if("string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])Ut(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=B(t)||"";return{slotNode:D(V(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(l),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)};function Ut(t,n,e,o){var l,s;let i;if(t&&"string"==typeof n["s-sn"]&&n["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(i=n["s-si"]||t.parentNode["s-sc"])){const t=n["s-sn"],r=n["s-hn"];if(null==(l=e.classList)||l.add(i+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(i+"-s"))){let n=(o.__childNodes||o.childNodes)[0],e=!1;for(;n;){if(n["s-sn"]!==t&&n["s-hn"]===r&&n["s-sr"]){e=!0;break}n=n.nextSibling}e||o.classList.remove(i+"-s")}}}var Bt=(t,n)=>{if(n&&!t.T&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.T=()=>{n["s-p"].splice(e-1,1),o()})))}},Ht=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);Bt(t,t.D);const e=()=>Vt(t,n);if(!n)return R(e);queueMicrotask((()=>{e()}))},Vt=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.F&&(t.F=!1,Jt(o,"connectedCallback",void 0,e)),t.P.length&&t.P.forEach((t=>t(e))),l=Jt(o,"componentWillLoad",void 0,e)):l=Jt(o,"componentWillUpdate",void 0,e),l=zt(l,(()=>Jt(o,"componentWillRender",void 0,e))),zt(l,(()=>Wt(t,o,n)))},zt=(t,n)=>_t(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),_t=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Wt=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.u,l=q(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);qt(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>Yt(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.u|=4,n.length=0)}},qt=(t,n,e,o)=>{try{n=n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,l,s,i,r;const c=t.$hostElement$,u=t.o,f=t.U||K(null,null),a=(t=>t&&t.k===Q)(n)?n:Z(null,null,n);if(st=c.tagName,u.B&&(a.m=a.m||{},u.B.forEach((([t,n])=>{a.m[n]=c[t]}))),e&&a.m)for(const t of Object.keys(a.m))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.m[t]=c[t]);if(a.k=null,a.u|=4,t.U=a,a.N=f.N=c.shadowRoot||c,ot=c["s-sc"],gt=!(!(1&u.u)||128&u.u),lt=c["s-cr"],wt=!1,It(f,a,e),w.u|=1,jt){Tt(a.N);for(const t of At){const n=t.I;if(!n["s-ol"]&&g.document){const t=g.document.createTextNode("");t["s-nr"]=n,Pt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of At){const n=t.I,r=t.A;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),r){const t=r.parentNode;let o=r.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(s=e["s-nr"])?s:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(Pt(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=g.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,Pt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(i=n["s-ih"])&&i)}n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(n.hidden=!0)}}if(wt&&T(a.N),w.u&=-2,At.length=0,!gt&&!(1&u.u)&&c["s-cr"]){const t=a.N.__childNodes||a.N.childNodes;for(const n of t)if(n["s-hn"]!==st&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(r=n.hidden)&&r),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=g.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],Pt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}lt=void 0,Ot.forEach((t=>t())),Ot.length=0,kt.forEach((t=>t())),kt.length=0})(t,n,o)}catch(n){a(n,t.$hostElement$)}return null},Yt=t=>{const n=t.$hostElement$,e=t.i,o=t.D;Jt(e,"componentDidRender",void 0,n),64&t.u?Jt(e,"componentDidUpdate",void 0,n):(t.u|=64,Zt(n),Jt(e,"componentDidLoad",void 0,n),t.H(n),o||Gt()),t.V(n),t.T&&(t.T(),t.T=void 0),512&t.u&&L((()=>Ht(t,!1))),t.u&=-517},Gt=()=>{var t;L((()=>dt(g,"appload",{detail:{namespace:"lmvz-components"}}))),(null==(t=w._)?void 0:t.size)&&w._.clear()},Jt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){a(t,o)}},Zt=t=>t.classList.add("hydrated"),Kt=(t,n,e,o)=>{const l=c(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=l.$hostElement$,i=l.l.get(n),r=l.u,u=l.i;if(e=ut(e,o.t[n][0],!!(64&o.u)),!(8&r&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e))){if(l.l.set(n,e),o.W){const t=o.W[n];t&&t.map((t=>{try{const[[o,s]]=Object.entries(t);(128&r||1&s)&&(u?u[o](e,i,n):l.P.push((()=>{l.i[o](e,i,n)})))}catch(t){a(t,s)}}))}if(2&r){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(e,i,n)&&!(16&r))return;16&r||Ht(l,!1)}}},Qt=(t,n,e)=>{var o,l;const i=t.prototype;64&n.u&&1&e&&b.forEach((t=>{Object.defineProperty(i,t,{value(...n){var e;const o=c(this),l=null==o?void 0:o.i;if(l){const e=l[t];"function"==typeof e&&e.call(l,...n)}else null==(e=null==o?void 0:o.q)||e.then((e=>{const o=e[t];"function"==typeof o&&o.call(e,...n)}))}})}));{t.watchers&&!n.W&&(n.W=t.watchers),t.deserializers&&!n.Y&&(n.Y=t.deserializers),t.serializers&&!n.G&&(n.G=t.serializers);const r=Object.entries(null!=(o=n.t)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&e&&32&o){const{get:l,set:r}=s(i,t)||{};l&&(n.t[t][0]|=2048),r&&(n.t[t][0]|=4096),(1&e||!l)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.t[t][0]))return((t,n)=>c(this).l.get(n))(0,t);const e=c(this),o=e?e.i:i;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(l){const s=c(this);if(s){if(r)return void 0===(32&o?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(l=s.l.get(t)),r.call(this,ut(l,o,!!(64&n.u))),void Kt(this,t,l=32&o?this[t]:s.$hostElement$[t],n);{if(!(1&e&&4096&n.t[t][0]))return Kt(this,t,l,n),void(1&e&&!s.i&&s.P.push((()=>{4096&n.t[t][0]&&s.i[t]!==s.l.get(t)&&(s.i[t]=l)})));const i=()=>{const e=s.i[t];!s.l.get(t)&&e&&s.l.set(t,e),s.i[t]=ut(l,o,!!(64&n.u)),Kt(this,t,s.i[t],n)};s.i?i():s.P.push((()=>{i()}))}}}})}else 1&e&&64&o&&Object.defineProperty(i,t,{value(...n){var e;const o=c(this);return null==(e=null==o?void 0:o.J)?void 0:e.then((()=>{var e;return null==(e=o.i)?void 0:e[t](...n)}))}})})),1&e){const e=new Map;i.attributeChangedCallback=function(t,o,l){w.jmp((()=>{var s;const u=e.get(t),f=c(this);if(this.hasOwnProperty(u)&&(l=this[u],delete this[u]),i.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==l)return;if(null==u){const e=null==f?void 0:f.u;if(f&&e&&!(8&e)&&l!==o){const i=f.i,r=null==(s=n.W)?void 0:s[t];null==r||r.forEach((n=>{const[[s,r]]=Object.entries(n);null!=i[s]&&(128&e||1&r)&&i[s].call(i,l,o,t)}))}return}const a=r.find((([t])=>t===u));a&&4&a[1][0]&&(l=null!==l&&"false"!==l);const d=Object.getOwnPropertyDescriptor(i,u);l==this[u]||d.get&&!d.set||(this[u]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.W)?l:{}),...r.filter((([t,n])=>31&n[0])).map((([t,o])=>{var l;const s=o[1]||t;return e.set(s,t),512&o[0]&&(null==(l=n.B)||l.push([t,s])),s}))]))}}return t},Xt=(t,n)=>{Jt(t,"connectedCallback",void 0,n)},tn=t=>{if(!(1&w.u)){const n=c(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.u)(null==n?void 0:n.i)?Xt(n.i,t):(null==n?void 0:n.q)&&n.q.then((()=>Xt(n.i,t)));else{let o;if(n.u|=1,o=t.getAttribute($),o){if(1&e.u){const n=q(t.shadowRoot,e);t.classList.remove(n+"-h",n+"-s")}else if(2&e.u){const n=Y(e);t["s-sc"]=n}((t,n,e,o)=>{var l,s,i,r;const u=t.shadowRoot,f=[],a=[],d=[],p=u?[]:null,h=K(n,null);let v;h.N=t;{const n=o.o;n&&10&n.u&&t["s-sc"]?(v=t["s-sc"],t.classList.add(v+"-h")):t["s-sc"]&&delete t["s-sc"]}!g.document||w._&&w._.size||tt(g.document.body,w._=new Map),t[$]=e,t.removeAttribute($),o.U=X(h,f,a,p,t,t,e,d);let m=0;const y=f.length;let b;for(;m<y;m++){b=f[m];const e=b.C+"."+b.M,o=w._.get(e),s=b.N;if(u){if((null==(l=b.k)?void 0:(""+l).includes("-"))&&"slot-fb"!==b.k&&!b.N.shadowRoot){const t=c(b.N);if(t){const n=Y(t.o),e=g.document.querySelector(`style[sty-id="${n}"]`);e&&p.unshift(e.cloneNode(!0))}}}else s["s-hn"]=n.toUpperCase(),"slot"===b.k&&(s["s-cr"]=t["s-cr"]);"slot"===b.k&&(b.O=b.N["s-sn"]||b.N.name||null,b.j?(b.u|=2,b.N.childNodes.length||b.j.forEach((t=>{b.N.appendChild(t.N)}))):b.u|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),o.parentNode.removeChild(o),u||(s["s-oo"]=parseInt(b.M))),o&&!o["s-id"]&&w._.delete(e)}const j=[],S=d.length;let O,k,N,C,x=0,E=0;for(;x<S;x++)if(O=d[x],O&&O.length)for(N=O.length,k=0;k<N;k++){if(C=O[k],j[C.hostId]||(j[C.hostId]=w._.get(C.hostId)),!j[C.hostId])continue;const t=j[C.hostId];t.shadowRoot&&C.node.parentElement!==t&&t.insertBefore(C.node,null==(i=null==(s=O[k-1])?void 0:s.node)?void 0:i.nextSibling),t.shadowRoot&&u||(C.slot["s-cr"]||(C.slot["s-cr"]=t["s-cr"],C.slot["s-cr"]=!C.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),U(C.node,C.slot,0,C.node["s-oo"]||E),(null==(r=C.node.parentElement)?void 0:r.shadowRoot)&&C.node.getAttribute&&C.node.getAttribute("slot")&&C.node.removeAttribute("slot")),E=(C.node["s-oo"]||E)+1}if(v&&a.length&&a.forEach((t=>{t.N.parentElement.classList.add(v+"-s")})),u&&!u.childNodes.length){let n=0;const e=p.length;if(e){for(;n<e;n++){const t=p[n];t&&u.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,e.h,o,n)}o||12&e.u&&nn(t);{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){Bt(n,n.D=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;try{if(!(32&n.u)){if(n.u|=32,e.Z){const l=((t,n)=>{const e=t.h.replace(/-/g,"_"),o=t.Z;if(!o)return;const l=d.get(o);return l?l[e]:import(`./${o}.entry.js`).then((t=>(d.set(o,t),t[e])),(t=>{a(t,n.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${e.h}#${n.K}" was not found`);o.isProxied||(e.W=o.watchers,e.G=o.serializers,e.Y=o.deserializers,Qt(o,e,2),o.isProxied=!0);const s=()=>{};n.u|=8;try{new o(n)}catch(n){a(n,t)}n.u&=-9,n.u|=128,s(),4&e.u?n.F=!0:Xt(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const n=Y(e);if(!p.has(n)){const o=()=>{};W(n,t,!!(1&e.u)),o()}}}const l=n.D,s=()=>Ht(n,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()}catch(e){a(e,t),n.T&&(n.T(),n.T=void 0),n.H&&n.H(t)}})(t,n,e)}o()}},nn=t=>{if(!g.document)return;const n=t["s-cr"]=g.document.createComment("");n["s-cn"]=!0,Pt(t,n,t.firstChild)},en=(t,n)=>{Jt(t,"disconnectedCallback",void 0,n||t)},on=(t,n={})=>{var e;if(!g.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=n.exclude||[],s=g.customElements,i=g.document.head,r=i.querySelector("meta[charset]"),u=g.document.createElement("style"),f=[];let a,d=!0;Object.assign(w,n),w.p=new URL(n.resourcesUrl||"./",g.document.baseURI).href,w.u|=2,(()=>{if(!g.document)return;const t=g.document.querySelectorAll(`[${h}]`);let n=0;for(;n<t.length;n++)W(t[n].getAttribute(h),G(t[n].innerHTML),!0)})();let p=!1;if(t.map((t=>{t[1].map((n=>{var e,i,r;const u={u:n[0],h:n[1],t:n[2],X:n[3]};4&u.u&&(p=!0),u.t=n[2],u.B=[],u.W=null!=(e=n[4])?e:{},u.G=null!=(i=n[5])?i:{},u.Y=null!=(r=n[6])?r:{};const $=u.h,h=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,tt:new Map};e.J=new Promise((t=>e.V=t)),e.q=new Promise((t=>e.H=t)),t["s-p"]=[],t["s-rc"]=[],e.P=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,u),1&u.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${u.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else A.call(t,u)}connectedCallback(){c(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),a&&(clearTimeout(a),a=null),d?f.push(this):w.jmp((()=>tn(this))))}disconnectedCallback(){w.jmp((()=>(async t=>{if(!(1&w.u)){const n=c(t);(null==n?void 0:n.i)?en(n.i,t):(null==n?void 0:n.q)&&n.q.then((()=>en(n.i,t)))}_.has(t)&&_.delete(t),t.shadowRoot&&_.has(t.shadowRoot)&&_.delete(t.shadowRoot)})(this))),w.raf((()=>{var t;const n=c(this);if(!n)return;const e=f.findIndex((t=>t===this));e>-1&&f.splice(e,1),(null==(t=null==n?void 0:n.U)?void 0:t.N)instanceof Node&&!n.U.N.isConnected&&delete n.U.N}))}componentOnReady(){var t;return null==(t=c(this))?void 0:t.q}};64&u.u&&(h.formAssociated=!0),u.Z=t[0],l.includes($)||s.get($)||(o.push($),s.define($,Qt(h,u,1)))}))})),o.length>0&&(p&&(u.textContent+=m),u.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(e=w.$)?e:z(g.document);null!=t&&u.setAttribute("nonce",t),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,f.length?f.map((t=>t.connectedCallback())):w.jmp((()=>a=setTimeout(Gt,30)))},ln=t=>w.$=t;export{Q as H,I as a,on as b,at as c,ft as g,Z as h,j as p,u as r,ln as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t,r as e,c as r,h as i}from"./p-T5ljELGS.js";import{c as o}from"./p-BfTCfPZ1.js";import{R as a,A as n}from"./p-CZ3dGAjR.js";import{a as s}from"./p-B3JVFwO1.js";let l=0;const c=class extends a{get el(){return t(this)}lmvzInput;internals;nativeInputElement;inputId="lmvz-input-"+l++;initialValue="";nativeError=!1;errorFromProp=!1;get helperId(){return this.helperText?`${this.inputId}-helper`:void 0}get showErrorMessage(){return this.error&&Boolean(this.errorMessage)}get errorId(){return`${this.inputId}-error`}get describedBy(){const t=[];return this.helperId&&t.push(this.helperId),this.showErrorMessage&&t.push(this.errorId),t.length>0?t.join(" "):void 0}value;label;helperText;placeholder;disabled=!1;readonly=!1;required=!1;name;type="text";errorMessage;autocomplete;inputmode;autocorrect;autocapitalize;spellcheck;autofocus=!1;minlength;maxlength;pattern;min;max;step;form;get error(){return this.errorFromProp||this.nativeError}set error(t){this.errorFromProp=t}async setValue(t){this.value=this.nativeInputElement.value=t??"",this.internals.setFormValue?.(t),this.lmvzInput.emit(t)}async focusInput(){this.nativeInputElement?.focus()}async blurInput(){this.nativeInputElement?.blur()}async select(){this.nativeInputElement?.select()}async checkValidity(){return this.nativeInputElement?.checkValidity?.()??!1}async reportValidity(){return this.nativeInputElement?.reportValidity?.()??!1}async getInputElement(){return this.nativeInputElement||await new Promise((t=>s(this.el,t))),Promise.resolve(this.nativeInputElement)}constructor(t){super(),e(this,t),this.lmvzInput=r(this,"lmvzInput"),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.addController(new n(this,{reValidateOnPropChanges:!0}))}componentWillLoad(){this.initialValue=this.value}formAssociatedCallback(t){t&&this.internals.setFormValue?.(this.value)}formResetCallback(){this.internals.setValidity({}),this.setValue(this.initialValue)}formStateRestoreCallback(t){this.setValue(t)}handleValueChange(t){this.nativeInputElement&&(this.nativeInputElement.value===t||this.setValue(t))}handleDisabledChange(t){t&&this.nativeInputElement&&this.nativeInputElement.blur()}handleInput=t=>{this.setValue(t.target.value)};handleChange=t=>{this.updateNativeError(t.target??this.nativeInputElement)};handleFocus=()=>{};handleBlur=t=>{const e=t.target;e.reportValidity?.()};updateNativeError(t){const e=t??this.nativeInputElement;e&&(this.nativeError=!(e.checkValidity?.()??1))}render(){const t=Boolean(this.value),e=t||Boolean(this.placeholder);return i("div",{key:"4dffa432df9b8ca5d89c02b59cfe25b9321ca162",class:o("input-container",{"interaction-filled":t})},i("div",{key:"ade1cd1137acce218d458c1b66b2eb29cf887b70",class:"input-wrapper"},i("slot",{key:"013dff3540481724658ff754bf3db0585ec3b6f4",name:"before-input"}),i("div",{key:"6587bb63c79f97c31abff5be0a91eb16374971d5",class:"label-input-group"},i("label",{key:"2ef0a35fbd38b255423d2793415568a661476db3",htmlFor:this.inputId,class:o({floating:e})},this.label,this.required&&i("span",{key:"0785826710ee4ecea96037cc689c34a43113552e",class:"required-indicator","aria-hidden":"true"}," ","*")),i("input",{key:"5ad0d4b2d1c11dd89824db87e331232ba703a05e",id:this.inputId,ref:t=>this.nativeInputElement=t,type:this.type,min:this.min,max:this.max,step:this.step,value:this.value,name:this.name,placeholder:this.placeholder,disabled:this.disabled,readOnly:this.readonly,required:this.required,form:this.form,autocomplete:this.autocomplete,inputmode:this.inputmode,autocorrect:this.autocorrect,autocapitalize:this.autocapitalize,spellcheck:this.spellcheck,autofocus:this.autofocus,minlength:this.minlength,maxlength:this.maxlength,pattern:this.pattern,"aria-invalid":this.error?"true":"false","aria-required":this.required?"true":"false","aria-describedby":this.describedBy,"aria-errormessage":this.errorId,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur})),i("slot",{key:"a23676cc830cac7fbf87fef81a8d05b50b831725",name:"after-input"})),i("div",{key:"e0a05138954d70508f840b6d5c4f53e74c2f2979",id:this.helperId,role:"status"},this.helperText||null),i("div",{key:"fcba57be2d596b3b8aa0ac97b2fd31dc3e77e14b",id:this.errorId,role:"alert"},this.showErrorMessage&&this.errorMessage||null))}static get formAssociated(){return!0}static get watchers(){return{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}}};c.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; } } .sc-lmvz-input-h { display: block; font-family: var(--lmvz-global-font-family-default, Router); --input-radius: var(--lmvz-component-input-radius-default, 999px); --input-bg: var(--lmvz-semantic-color-surface-input-primary, #ffffff); --input-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); --input-border-color-hover: var(--lmvz-semantic-color-border-hover, #c7c7c7); --input-border-color-focus: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); --input-border-width: var(--lmvz-semantic-border-width-default, 1px); --input-height: 48px; --input-padding-x: 16px; --label-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --input-text-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000); --helper-text-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --error-text-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); --label-floating-scale: 0.85; --label-minimized-top: -6px; --label-minimized-bg: var(--input-bg); --label-minimized-padding-x: 4px; --input-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%); } .input-container.sc-lmvz-input { display: flex; flex-direction: column; position: relative; width: 100%; } .input-wrapper.sc-lmvz-input { background-color: var(--input-bg); border: var(--input-border-width) solid var(--input-border-color); border-radius: var(--input-radius); display: flex; align-items: center; height: var(--input-height); padding: 0 var(--input-padding-x); position: relative; transition: border-color 0.2s ease; gap: 8px; } [disabled].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { opacity: var(--input-disabled-opacity); cursor: not-allowed; pointer-events: none; } .input-container.sc-lmvz-input:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--input-border-color-focus); outline: 2px solid var(--input-border-color-focus); outline-offset: 2px; } .input-container.sc-lmvz-input:has(input:focus-visible) .input-wrapper.sc-lmvz-input { box-shadow: 0 0 0 3px rgb(0 86 214 / 20%); } [error].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); } [error].sc-lmvz-input-h:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); outline-color: var(--error-text-color); } .sc-lmvz-input-h:not([disabled]) .input-wrapper.sc-lmvz-input:hover { border-color: var(--input-border-color-hover); } .label-input-group.sc-lmvz-input { position: relative; flex-grow: 1; display: flex; align-items: center; height: 100%; } label.sc-lmvz-input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--label-color); font-size: 14px; font-family: Router, sans-serif; font-weight: 400; pointer-events: none; transition: all 0.2s ease-out; background-color: transparent; padding: 0; margin: 0; line-height: normal; white-space: nowrap; } label.floating.sc-lmvz-input { top: 0; transform: translateY(-50%) scale(0.85); transform-origin: left top; background-color: var(--label-minimized-bg); padding: 0 var(--label-minimized-padding-x); left: -2px; color: var(--input-text-color); font-weight: 500; } .required-indicator.sc-lmvz-input { color: var(--error-text-color); margin-left: 2px; } input.sc-lmvz-input { border: none; background: transparent; width: 100%; height: 100%; color: var(--input-text-color); font-family: inherit; font-size: 14px; outline: none; padding: 0; margin: 0; font-weight: 400; } input.sc-lmvz-input::placeholder { color: var(--label-color); } div.sc-lmvz-input:empty { display: none; } [role='status'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--helper-text-color); font-family: Router, sans-serif; font-weight: 500; } [role='alert'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--error-text-color); font-family: Router, sans-serif; font-weight: 500; } .sc-lmvz-input-s > lmvz-button { --lmvz-button-padding: 4px; }";export{c as lmvz_input}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e,r as a,h as t,H as r}from"./p-T5ljELGS.js";import{R as n,A as s}from"./p-CZ3dGAjR.js";import{g as i,c as l}from"./p-B3JVFwO1.js";class o{host;elements=[];constructor(e){this.host=e}hostDidRender(){this.host.el.addEventListener("keydown",this.handleKeydown)}updateElements(e){this.elements=e}handleKeydown=e=>{const{key:a}=e;if(!["ArrowDown","ArrowRight","ArrowUp","ArrowLeft"].includes(a))return;const t=i(document),r=this.getNextFocusableElement(t,["ArrowDown","ArrowRight"].includes(a)?"down":"up");r&&(e.preventDefault(),r.focus?.())};getNextFocusableElement(e,a){const{elements:t}=this,r=t.indexOf(e);if(-1===r)return null;let n=null;if("down"===a?n=(r+1)%t.length:"up"===a&&(n=(r-1+t.length)%t.length),null==n)return null;const s=t[n];return l(s)?s:this.getNextFocusableElement(s,a)}}const c=class extends n{get el(){return e(this)}primarySlot;secondarySlot;secondaryNav;keyboardNavigationController=new o(this);get primaryMenuitems(){return this.primarySlot.assignedElements({flatten:!1})}get secondaryMenuitems(){return this.secondarySlot.assignedElements({flatten:!0})}get role(){return"banner"}lmvzActiveNav;get secondarySlotName(){return`connect-nav-${this.lmvzActiveNav}`}constructor(e){super(),a(this,e),this.addController(new s(this,{reValidateOnPropChanges:!0})),this.addController(this.keyboardNavigationController)}handleActiveNavChange(){this.updateElementsActive()}componentDidLoad(){this.primarySlot.addEventListener("slotchange",this.handlePrimaryNavItemsChange.bind(this)),this.handlePrimaryNavItemsChange(),this.secondarySlot.addEventListener("slotchange",this.handleSecondaryNavItemsChange.bind(this))}handlePrimaryNavItemsChange(){const e=this.primaryMenuitems;e.length?(e.forEach((e=>{e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-controls","nav-secondary")})),this.updateElementsActive()):console.warn("Primary slot has no assigned elements. Please add navigation items to the primary slot.")}handleSecondaryNavItemsChange(){this.secondaryMenuitems.length&&this.updateKeyboardNavSubjects()}updateKeyboardNavSubjects(){this.keyboardNavigationController.updateElements([...this.primaryMenuitems,...this.secondaryMenuitems])}updateElementsActive(){let e;this.primaryMenuitems.forEach((a=>{const t=a.id===this.lmvzActiveNav;t&&(e=a.textContent||a.id),a.setAttribute("aria-expanded",t?"true":"false")})),this.secondaryNav.setAttribute("aria-label",`Untermenü für ${e}`)}delegateFocus(){const e=this.primaryMenuitems[0];e&&e.focus()}render(){return t(r,{key:"783c855e49e1a2447107d6205a1b2c50285ccfff",onFocus:this.delegateFocus.bind(this)},t("div",{key:"84a78b0ed3e170c49a711fa4091f80dbc7003b2f",class:"brand"},t("slot",{key:"76cc54f17a7bc5f825433fc56351666a93891fd2",name:"brand"},t("lmvz-icon",{key:"e196e43720cb4b4c3f79b3071d534b50480f6206",id:"fallback-logo-lmvz",icon:"Logo",size:"inherit","aria-label":"Lehrmittelverlag Zürich"}))),t("nav",{key:"d25a719752bd4085da5ad18af94afc66e9cabd5e","aria-label":"Hauptnavigation"},t("div",{key:"8a12c2c53bd061b3559ce9693780e592b3d7aa32",role:"menubar",class:"primary-menubar"},t("slot",{key:"4461632675dc657f675883e8ef618e371ace0ad7",name:"nav-primary",ref:e=>this.primarySlot=e}),t("div",{key:"c1dabc588ac376db667df32d3edbdd6dce60aaad",role:"menu",id:"nav-secondary",class:"secondary-menubar",hidden:!this.lmvzActiveNav,ref:e=>this.secondaryNav=e},t("slot",{key:"74ca44ee2f755ffe9ea3ebc19cc2b227ae22df8b",name:this.secondarySlotName,ref:e=>this.secondarySlot=e})))),t("div",{key:"a4d250a5fcd10390aed1f5369c28ddec9aa9ee8d",class:"actions"},t("slot",{key:"77a499ce12d269e79221ca971cc1b203d179f459",name:"actions"})))}static get watchers(){return{lmvzActiveNav:[{handleActiveNavChange:0}]}}};c.style=":host{display:flex;width:100vw;flex-direction:row;align-items:center;box-sizing:border-box;background-color:var(--lmvz-semantic-color-surface-primary, #ffffff);--lmvz-header-x-spacing-level-1:var(--lmvz-dimension-8-28, clamp(0.5rem, 0.2rem + 1.29vw, 1.75rem));--lmvz-header-x-spacing-level-2:var(--lmvz-component-buttongroup-wrapper-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem));padding:var(--lmvz-dimension-8-16, clamp(0.5rem, 0.38rem + 0.52vw, 1rem)) var(--lmvz-header-x-spacing-level-1);gap:var(--lmvz-header-x-spacing-level-1);.brand{display:inline-flex;justify-content:center;align-items:center}#fallback-logo-lmvz{height:34px;width:auto}nav{flex-grow:1}.primary-menubar{display:flex;flex-direction:row;align-items:center}.secondary-menubar{display:flex;flex-direction:row;align-items:center;margin-left:var(--lmvz-header-x-spacing-level-2);padding-left:var(--lmvz-header-x-spacing-level-2);border-left:1px solid var(--lmvz-semantic-color-border-default, #e0e0e0)}}";export{c as lmvz_header}
|
|
@@ -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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c,h as t,H as a}from"./p-
|
|
1
|
+
import{r as s,c,h as t,H as a}from"./p-T5ljELGS.js";const i=class{constructor(t){s(this,t),this.actionClick=c(this,"actionClick")}actionClick;_onClick(s){this.actionClick.emit(s)}render(){return t(a,{key:"71303bfe6ac64a96edd21800ae5e8c43a3a38c23",onClick:this._onClick.bind(this)},t("slot",{key:"94922fdfd355e7e4d1b78bedb80ae814c186b199"}))}};i.style=":host{display:block}";export{i as lmvz_action}
|
package/dist/manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Button } from '../../api';
|
|
3
|
+
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
4
|
+
import { type ElementActivationHost } from '../../utils/aria/element-activation-controller';
|
|
3
5
|
import { type FormRef } from '../../utils/component';
|
|
4
|
-
import { type ElementActivationHost } from '../../utils/element-activation-controller';
|
|
5
6
|
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
6
|
-
import { type AriaValidationHost } from '../../utils/validation/aria-validation-controller';
|
|
7
7
|
export declare class LmvzButton extends ReactiveControllerHost implements AriaValidationHost, ElementActivationHost {
|
|
8
8
|
el: HTMLLmvzButtonElement;
|
|
9
9
|
private inheritedAttributes;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
2
|
+
import { type ListKeyboardNavigationHost } from '../../utils/aria/list-keyboard-controller';
|
|
2
3
|
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
3
|
-
import { type AriaValidationHost } from '../../utils/validation/aria-validation-controller';
|
|
4
4
|
export declare class LmvzHeader extends ReactiveControllerHost implements AriaValidationHost, ListKeyboardNavigationHost {
|
|
5
5
|
readonly el: HTMLElement;
|
|
6
6
|
private primarySlot;
|
|
@@ -15,8 +15,9 @@ export declare class LmvzHeader extends ReactiveControllerHost implements AriaVa
|
|
|
15
15
|
constructor();
|
|
16
16
|
handleActiveNavChange(): void;
|
|
17
17
|
componentDidLoad(): void;
|
|
18
|
-
private
|
|
19
|
-
private
|
|
18
|
+
private handlePrimaryNavItemsChange;
|
|
19
|
+
private handleSecondaryNavItemsChange;
|
|
20
|
+
private updateKeyboardNavSubjects;
|
|
20
21
|
private updateElementsActive;
|
|
21
22
|
private delegateFocus;
|
|
22
23
|
render(): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Icon } from '../../api';
|
|
2
|
+
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
2
3
|
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
3
|
-
import { type AriaValidationHost } from '../../utils/validation/aria-validation-controller';
|
|
4
4
|
export declare class LmvzIcon extends ReactiveControllerHost implements AriaValidationHost {
|
|
5
5
|
private intersectionObserver;
|
|
6
6
|
el: HTMLElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Input } from '../../api';
|
|
3
|
+
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
3
4
|
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
4
|
-
import { type AriaValidationHost } from '../../utils/validation/aria-validation-controller';
|
|
5
5
|
export declare class LmvzInput extends ReactiveControllerHost implements AriaValidationHost {
|
|
6
6
|
el: HTMLElement;
|
|
7
7
|
lmvzInput: EventEmitter<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { type
|
|
2
|
+
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
3
|
+
import { type ElementActivationHost } from '../../utils/aria/element-activation-controller';
|
|
3
4
|
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
4
|
-
import { type AriaValidationHost } from '../../utils/validation/aria-validation-controller';
|
|
5
5
|
export declare class LmvzMenuItem extends ReactiveControllerHost implements AriaValidationHost, ElementActivationHost {
|
|
6
6
|
el: HTMLElement;
|
|
7
7
|
get role(): string;
|