@lmvz-ds/components 0.12.4 → 0.12.5-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  2. package/dist/cjs/assets-Cswkqk_c.js +18971 -0
  3. package/dist/cjs/assets-Cswkqk_c.js.map +1 -0
  4. package/dist/cjs/axe-C2rxi-K2.js +32837 -0
  5. package/dist/cjs/axe-C2rxi-K2.js.map +1 -0
  6. package/dist/cjs/header-integration.lmvz-button.lmvz-header.lmvz-icon.lmvz-input.lmvz-menuitem-BTL_B6qg.js +3665 -0
  7. package/dist/cjs/header-integration.lmvz-button.lmvz-header.lmvz-icon.lmvz-input.lmvz-menuitem-BTL_B6qg.js.map +1 -0
  8. package/dist/cjs/header-integration_6.cjs.entry.js +18 -0
  9. package/dist/cjs/header-integration_6.cjs.entry.js.map +1 -0
  10. package/dist/cjs/icons-jn_Uak9B.js +1063 -0
  11. package/dist/cjs/icons-jn_Uak9B.js.map +1 -0
  12. package/dist/cjs/index-DpBPf1cE.js +2112 -0
  13. package/dist/cjs/index-DpBPf1cE.js.map +1 -0
  14. package/dist/cjs/index.cjs.js.map +1 -0
  15. package/dist/cjs/lmvz-action.cjs.entry.js.map +1 -0
  16. package/dist/cjs/lmvz-card.cjs.entry.js.map +1 -0
  17. package/dist/cjs/lmvz-chip.cjs.entry.js.map +1 -0
  18. package/dist/cjs/lmvz-components.cjs.js.map +1 -0
  19. package/dist/cjs/loader.cjs.js.map +1 -0
  20. package/dist/collection/api/ds.constants.js.map +1 -0
  21. package/dist/collection/api/index.js.map +1 -0
  22. package/dist/collection/components/lmvz-action/lmvz-action.js.map +1 -0
  23. package/dist/collection/components/lmvz-button/lmvz-button.js.map +1 -0
  24. package/dist/collection/components/lmvz-card/lmvz-card.js.map +1 -0
  25. package/dist/collection/components/lmvz-chip/lmvz-chip.js.map +1 -0
  26. package/dist/collection/components/lmvz-header/lmvz-header.js.map +1 -0
  27. package/dist/collection/components/lmvz-icon/icons.js.map +1 -0
  28. package/dist/collection/components/lmvz-icon/lmvz-icon.js.map +1 -0
  29. package/dist/collection/components/lmvz-icon/public.js.map +1 -0
  30. package/dist/collection/components/lmvz-icon/test/icons.unit.js.map +1 -0
  31. package/dist/collection/components/lmvz-input/lmvz-input.js.map +1 -0
  32. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js.map +1 -0
  33. package/dist/collection/index.js.map +1 -0
  34. package/dist/collection/integration/header-integration.js +22 -4
  35. package/dist/collection/integration/header-integration.js.map +1 -0
  36. package/dist/collection/utils/assets.js.map +1 -0
  37. package/dist/collection/utils/component.js.map +1 -0
  38. package/dist/collection/utils/effect.js.map +1 -0
  39. package/dist/collection/utils/element-activation-controller.js.map +1 -0
  40. package/dist/collection/utils/environment.js.map +1 -0
  41. package/dist/collection/utils/http.js.map +1 -0
  42. package/dist/collection/utils/http.test.js.map +1 -0
  43. package/dist/collection/utils/list-keyboard-controller.js.map +1 -0
  44. package/dist/collection/utils/public.js.map +1 -0
  45. package/dist/collection/utils/reactive-controller-host.js.map +1 -0
  46. package/dist/collection/utils/typing.js.map +1 -0
  47. package/dist/collection/utils/validation/aria-validation-controller.js.map +1 -0
  48. package/dist/collection/utils/validation/svg.js.map +1 -0
  49. package/dist/components/header-integration.d.ts +11 -0
  50. package/dist/components/header-integration.js +2 -0
  51. package/dist/components/header-integration.js.map +1 -0
  52. package/dist/components/index.js.map +1 -0
  53. package/dist/components/lmvz-action.js.map +1 -0
  54. package/dist/components/lmvz-button.js.map +1 -0
  55. package/dist/components/lmvz-card.js.map +1 -0
  56. package/dist/components/lmvz-chip.js.map +1 -0
  57. package/dist/components/lmvz-header.js.map +1 -0
  58. package/dist/components/lmvz-icon.js.map +1 -0
  59. package/dist/components/lmvz-input.js.map +1 -0
  60. package/dist/components/lmvz-menuitem.js.map +1 -0
  61. package/dist/components/p-B3JVFwO1.js.map +1 -0
  62. package/dist/components/p-B85MJLTf.js.map +1 -0
  63. package/dist/components/p-CN0JX9-m.js.map +1 -0
  64. package/dist/components/p-Cd4nH2vx.js +2 -0
  65. package/dist/components/p-Cd4nH2vx.js.map +1 -0
  66. package/dist/components/p-CdofjRtQ.js.map +1 -0
  67. package/dist/components/p-CkTUjPwD.js +2 -0
  68. package/dist/components/p-CkTUjPwD.js.map +1 -0
  69. package/dist/components/p-CpI4KFOu.js +2 -0
  70. package/dist/components/p-CpI4KFOu.js.map +1 -0
  71. package/dist/components/p-D1HbKFuh.js.map +1 -0
  72. package/dist/components/p-D7xthqTT.js +2 -0
  73. package/dist/components/p-D7xthqTT.js.map +1 -0
  74. package/dist/components/p-DBeynNeU.js +2 -0
  75. package/dist/components/p-DBeynNeU.js.map +1 -0
  76. package/dist/components/p-DMLRPGid.js.map +1 -0
  77. package/dist/components/p-UiqQVZhU.js +2 -0
  78. package/dist/components/p-UiqQVZhU.js.map +1 -0
  79. package/dist/components/p-Xq267cFM.js +2 -0
  80. package/dist/components/p-Xq267cFM.js.map +1 -0
  81. package/dist/components/p-glDDybgu.js +2 -0
  82. package/dist/components/p-glDDybgu.js.map +1 -0
  83. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  84. package/dist/esm/assets-K2FHD9qn.js +18770 -0
  85. package/dist/esm/assets-K2FHD9qn.js.map +1 -0
  86. package/dist/esm/axe-CZ0Rtkog.js +32835 -0
  87. package/dist/esm/axe-CZ0Rtkog.js.map +1 -0
  88. package/dist/esm/header-integration.lmvz-button.lmvz-header.lmvz-icon.lmvz-input.lmvz-menuitem-CW3FGLZC.js +3657 -0
  89. package/dist/esm/header-integration.lmvz-button.lmvz-header.lmvz-icon.lmvz-input.lmvz-menuitem-CW3FGLZC.js.map +1 -0
  90. package/dist/esm/header-integration_6.entry.js +7 -0
  91. package/dist/esm/header-integration_6.entry.js.map +1 -0
  92. package/dist/esm/icons-BITzEzmq.js +1032 -0
  93. package/dist/esm/icons-BITzEzmq.js.map +1 -0
  94. package/dist/esm/index-D2eyw7iv.js +2101 -0
  95. package/dist/esm/index-D2eyw7iv.js.map +1 -0
  96. package/dist/esm/index.js.map +1 -0
  97. package/dist/esm/lmvz-action.entry.js.map +1 -0
  98. package/dist/esm/lmvz-card.entry.js.map +1 -0
  99. package/dist/esm/lmvz-chip.entry.js.map +1 -0
  100. package/dist/esm/lmvz-components.js.map +1 -0
  101. package/dist/esm/loader.js.map +1 -0
  102. package/dist/lmvz-components/index.esm.js.map +1 -0
  103. package/dist/lmvz-components/lmvz-components.esm.js.map +1 -0
  104. package/dist/lmvz-components/p-366a01f8.entry.js +2 -0
  105. package/dist/lmvz-components/p-366a01f8.entry.js.map +1 -0
  106. package/dist/lmvz-components/p-84ee7919.entry.js +2 -0
  107. package/dist/lmvz-components/p-84ee7919.entry.js.map +1 -0
  108. package/dist/lmvz-components/p-BLwPC3DQ.js +2 -0
  109. package/dist/lmvz-components/p-BLwPC3DQ.js.map +1 -0
  110. package/dist/lmvz-components/p-D2eyw7iv.js +3 -0
  111. package/dist/lmvz-components/p-D2eyw7iv.js.map +1 -0
  112. package/dist/lmvz-components/p-DANVVVBd.js +7 -0
  113. package/dist/lmvz-components/p-DANVVVBd.js.map +1 -0
  114. package/dist/lmvz-components/p-DQuL1Twl.js.map +1 -0
  115. package/dist/lmvz-components/p-DlDurXvX.js +2 -0
  116. package/dist/lmvz-components/p-DlDurXvX.js.map +1 -0
  117. package/dist/lmvz-components/p-Hc4uxoTU.js +13 -0
  118. package/dist/lmvz-components/p-Hc4uxoTU.js.map +1 -0
  119. package/dist/lmvz-components/p-a4200b26.entry.js +2 -0
  120. package/dist/lmvz-components/p-a4200b26.entry.js.map +1 -0
  121. package/dist/lmvz-components/p-d3243bae.entry.js +2 -0
  122. package/dist/lmvz-components/p-d3243bae.entry.js.map +1 -0
  123. package/dist/manifest.json +26 -2
  124. package/package.json +10 -9
@@ -0,0 +1,7 @@
1
+ import{r as t,h as e,H as n,B as s,g as r,c as i}from"./p-D2eyw7iv.js";import{m as o,a,g as c,u as l,i as u,f as d,b as h,c as f,d as m,e as v,h as p,j as b,k as g,l as y,n as z,o as w,_ as k,p as x,q as S,s as R,t as E,v as F,w as _,x as C,y as D,z as O,C as A,A as j,B,D as I,E as L,F as P,G as N,H as M,I as V,J as q,K as T,L as U,M as H,N as W,O as Q,P as $,Q as K,R as Y,S as Z,T as X,U as G,V as J,W as tt,X as et,Y as nt,Z as st,$ as rt,a0 as it,a1 as ot,a2 as at,a3 as ct,a4 as lt,a5 as ut,a6 as dt,a7 as ht,a8 as ft,a9 as mt,aa as vt,ab as pt,ac as bt,ad as gt,ae as yt,af as zt,ag as wt,ah as kt,ai as xt,aj as St,ak as Rt,al as Et,am as Ft,an as _t,ao as Ct,ap as Dt,aq as Ot,ar as At,as as jt,at as Bt,au as It,av as Lt,aw as Pt,ax as Nt,ay as Mt,az as Vt,aA as qt,aB as Tt,aC as Ut,aD as Ht,aE as Wt,aF as Qt,aG as $t,aH as Kt,aI as Yt,aJ as Zt,aK as Xt,aL as Gt,aM as Jt,aN as te,aO as ee,aP as ne,aQ as se,aR as re,aS as ie,aT as oe,aU as ae,aV as ce,aW as le,aX as ue,aY as de,aZ as he,a_ as fe,a$ as me,b0 as ve,b1 as pe,b2 as be,b3 as ge,b4 as ye,b5 as ze,b6 as we,b7 as ke,b8 as xe,b9 as Se,ba as Re,bb as Ee,bc as Fe,bd as _e,be as Ce,bf as De,bg as Oe,bh as Ae,bi as je,bj as Be,bk as Ie,bl as Le,bm as Pe,bn as Ne,bo as Me,bp as Ve,r as qe,bq as Te,br as Ue}from"./p-DlDurXvX.js";import{u as He,l as We,p as Qe,E as $e,o as Ke,a as Ye,i as Ze,b as Xe,d as Ge,e as Je,f as tn,z as en,s as nn,g as sn,m as rn,h as on,v as an,j as cn,k as ln,n as un,q as dn,r as hn,_ as fn,t as mn,w as vn,x as pn,y as bn,A as gn,B as yn}from"./p-BLwPC3DQ.js";function zn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}const wn=o;const kn=c;const xn=a;const Sn=l;const Rn=d;const En=v;const Fn=p;const _n=b;const Cn=u;const Dn=y;const On=g;const An=h;const jn=f;const Bn=m;const In=k;const Ln=x;const Pn=w;const Nn=S;const Mn=z;const Vn="effect/QueueEnqueue";const qn=Symbol.for(Vn);const Tn="effect/QueueDequeue";const Un=Symbol.for(Tn);const Hn="effect/QueueStrategy";const Wn=Symbol.for(Hn);const Qn="effect/BackingQueue";const $n=Symbol.for(Qn);const Kn={_A:t=>t};const Yn={_A:t=>t};const Zn={_In:t=>t};const Xn={_Out:t=>t};class Gn extends A{queue;takers;shutdownHook;shutdownFlag;strategy;[qn]=Zn;[Un]=Xn;constructor(t,e,n,s,r){super();this.queue=t;this.takers=e;this.shutdownHook=n;this.shutdownFlag=s;this.strategy=r}pipe(){return j(this,arguments)}commit(){return this.take}capacity(){return this.queue.capacity()}get size(){return B((()=>I(this.unsafeSize(),(()=>L))))}unsafeSize(){if(P(this.shutdownFlag)){return N()}return M(this.queue.length()-We(this.takers)+this.strategy.surplusSize())}get isEmpty(){return C(this.size,(t=>t<=0))}get isFull(){return C(this.size,(t=>t>=this.capacity()))}get shutdown(){return V(q((t=>{R(this.shutdownFlag,T(true));return R($(ys(this.takers),(e=>ct(e,t.id())),false,false),Q(this.strategy.shutdown),H(W(this.shutdownHook,void 0)),U)})))}get isShutdown(){return F((()=>P(this.shutdownFlag)))}get awaitShutdown(){return K(this.shutdownHook)}isActive(){return!P(this.shutdownFlag)}unsafeOffer(t){if(P(this.shutdownFlag)){return false}let e;if(this.queue.length()===0){const n=R(this.takers,Qe($e));if(n!==$e){bs(n,t);e=true}else{e=false}}else{e=false}if(e){return true}const n=this.queue.offer(t);ks(this.strategy,this.queue,this.takers);return n}offer(t){return B((()=>{if(P(this.shutdownFlag)){return L}let e;if(this.queue.length()===0){const n=R(this.takers,Qe($e));if(n!==$e){bs(n,t);e=true}else{e=false}}else{e=false}if(e){return Y(true)}const n=this.queue.offer(t);ks(this.strategy,this.queue,this.takers);return n?Y(true):this.strategy.handleSurplus([t],this.queue,this.takers,this.shutdownFlag)}))}offerAll(t){return B((()=>{if(P(this.shutdownFlag)){return L}const e=Z(t);const n=this.queue.length()===0?Z(zs(this.takers,e.length)):X;const[s,r]=R(e,G(n.length));for(let t=0;t<n.length;t++){const e=n[t];const r=s[t];bs(e,r)}if(r.length===0){return Y(true)}const i=this.queue.offerAll(r);ks(this.strategy,this.queue,this.takers);return J(i)?Y(true):this.strategy.handleSurplus(i,this.queue,this.takers,this.shutdownFlag)}))}get take(){return q((t=>{if(P(this.shutdownFlag)){return L}const e=this.queue.poll($e);if(e!==$e){this.strategy.unsafeOnQueueEmptySpace(this.queue,this.takers);return Y(e)}else{const e=tt(t.id());return R(B((()=>{R(this.takers,Ke(e));ks(this.strategy,this.queue,this.takers);return P(this.shutdownFlag)?L:K(e)})),et((()=>F((()=>ws(this.takers,e))))))}}))}get takeAll(){return B((()=>P(this.shutdownFlag)?L:F((()=>{const t=this.queue.pollUpTo(Number.POSITIVE_INFINITY);this.strategy.unsafeOnQueueEmptySpace(this.queue,this.takers);return nt(t)}))))}takeUpTo(t){return B((()=>P(this.shutdownFlag)?L:F((()=>{const e=this.queue.pollUpTo(t);this.strategy.unsafeOnQueueEmptySpace(this.queue,this.takers);return nt(e)}))))}takeBetween(t,e){return B((()=>Jn(this,t,e,lt())))}}const Jn=(t,e,n,s)=>{if(n<e){return Y(s)}return R(ds(t,n),E((r=>{const i=e-r.length;if(i===1){return R(us(t),C((t=>R(s,ot(r),at(t)))))}if(i>1){return R(us(t),E((e=>Jn(t,i-1,n-r.length-1,R(s,ot(r),at(e))))))}return Y(R(s,ot(r)))})))};const ts=t=>R(F((()=>Ge(t))),E((t=>ss(is(t),fs()))));const es=()=>R(F((()=>He())),E((t=>ss(is(t),ms()))));const ns=(t,e,n,s,r)=>new Gn(t,e,n,s,r);const ss=(t,e)=>R(O(),C((n=>ns(t,He(),n,D(false),e))));class rs{mutable;[$n]=Yn;constructor(t){this.mutable=t}poll(t){return Qe(this.mutable,t)}pollUpTo(t){return Ye(this.mutable,t)}offerAll(t){return Xe(this.mutable,t)}offer(t){return Ke(this.mutable,t)}capacity(){return Je(this.mutable)}length(){return We(this.mutable)}}const is=t=>new rs(t);const os=t=>t.size;const as=t=>t.isShutdown;const cs=t=>t.shutdown;const ls=_(2,((t,e)=>t.offer(e)));const us=t=>t.take;const ds=_(2,((t,e)=>t.takeUpTo(e)));const hs=_(3,((t,e,n)=>t.takeBetween(e,n)));const fs=()=>new vs;const ms=()=>new ps;class vs{[Wn]=Kn;putters=He();surplusSize(){return We(this.putters)}onCompleteTakersWithEmptyQueue(t){while(!Ze(this.putters)&&!Ze(t)){const e=Qe(t,void 0);const n=Qe(this.putters,void 0);if(n[2]){bs(n[1],true)}bs(e,n[0])}}get shutdown(){return R(dt,E((t=>R(F((()=>ys(this.putters))),E((e=>$(e,(([e,n,s])=>s?R(ct(n,t),U):ut),false,false)))))))}handleSurplus(t,e,n,s){return q((r=>{const i=tt(r.id());return R(B((()=>{this.unsafeOffer(t,i);this.unsafeOnQueueEmptySpace(e,n);ks(this,e,n);return P(s)?L:K(i)})),et((()=>F((()=>this.unsafeRemove(i))))))}))}unsafeOnQueueEmptySpace(t,e){let n=true;while(n&&(t.capacity()===Number.POSITIVE_INFINITY||t.length()<t.capacity())){const s=R(this.putters,Qe($e));if(s===$e){n=false}else{const n=t.offer(s[0]);if(n&&s[2]){bs(s[1],true)}else if(!n){gs(this.putters,R(ys(this.putters),rt(s)))}ks(this,t,e)}}}unsafeOffer(t,e){const n=Z(t);for(let t=0;t<n.length;t++){const s=n[t];if(t===n.length-1){R(this.putters,Ke([s,e,true]))}else{R(this.putters,Ke([s,e,false]))}}}unsafeRemove(t){gs(this.putters,R(ys(this.putters),it((([,e])=>e!==t))))}}class ps{[Wn]=Kn;surplusSize(){return 0}get shutdown(){return ut}onCompleteTakersWithEmptyQueue(){}handleSurplus(t,e,n,s){return Y(false)}unsafeOnQueueEmptySpace(t,e){}}const bs=(t,e)=>st(t,Y(e));const gs=(t,e)=>R(t,Xe(e));const ys=t=>R(t,Ye(Number.POSITIVE_INFINITY));const zs=(t,e)=>R(t,Ye(e));const ws=(t,e)=>{gs(t,R(ys(t),it((t=>e!==t))))};const ks=(t,e,n)=>{let s=true;while(s&&e.length()!==0){const r=R(n,Qe($e));if(r!==$e){const i=e.poll($e);if(i!==$e){bs(r,i);t.unsafeOnQueueEmptySpace(e,n)}else{gs(n,R(ys(n),rt(r)))}s=true}else{s=false}}if(s&&e.length()===0&&!Ze(n)){t.onCompleteTakersWithEmptyQueue(n)}};const xs=ts;const Ss=es;const Rs=os;const Es=as;const Fs=cs;const _s=ls;const Cs=us;const Ds=hs;const Os="Continue";const As="Close";const js="Yield";const Bs="effect/ChannelChildExecutorDecision";const Is=Symbol.for(Bs);const Ls={[Is]:Is};const Ps=t=>{const e=Object.create(Ls);e._tag=Os;return e};const Ns="ContinuationK";const Ms="ContinuationFinalizer";const Vs=Symbol.for("effect/ChannelContinuation");const qs={_Env:t=>t,_InErr:t=>t,_InElem:t=>t,_InDone:t=>t,_OutErr:t=>t,_OutDone:t=>t,_OutErr2:t=>t,_OutElem:t=>t,_OutDone2:t=>t};class Ts{onSuccess;onHalt;_tag=Ns;[Vs]=qs;constructor(t,e){this.onSuccess=t;this.onHalt=e}onExit(t){return tn(t)?this.onHalt(t.cause):this.onSuccess(t.value)}}class Us{finalizer;_tag=Ms;[Vs]=qs;constructor(t){this.finalizer=t}}const Hs="PullAfterNext";const Ws="PullAfterAllEnqueued";const Qs="effect/ChannelUpstreamPullStrategy";const $s=Symbol.for(Qs);const Ks={_A:t=>t};const Ys={[$s]:Ks};const Zs=t=>{const e=Object.create(Ys);e._tag=Hs;e.emitSeparator=t;return e};const Xs="BracketOut";const Gs="Bridge";const Js="ConcatAll";const tr="Emit";const er="Ensuring";const nr="Fail";const sr="Fold";const rr="FromEffect";const ir="PipeTo";const or="Provide";const ar="Read";const cr="Succeed";const lr="SucceedNow";const ur="Suspend";const dr="effect/Channel";const hr=Symbol.for(dr);const fr={_Env:t=>t,_InErr:t=>t,_InElem:t=>t,_InDone:t=>t,_OutErr:t=>t,_OutElem:t=>t,_OutDone:t=>t};const mr={[hr]:fr,pipe(){return j(this,arguments)}};const vr=t=>ht(t,hr)||ft(t);const pr=_(2,((t,e)=>{const n=Object.create(mr);n._tag=Xs;n.acquire=()=>t;n.finalizer=e;return n}));const br=(t,e,n)=>{const s=Object.create(mr);s._tag=Js;s.combineInners=e;s.combineAll=n;s.onPull=()=>Zs(N());s.onEmit=()=>Ps;s.value=()=>t;s.k=mt;return s};const gr=_(4,((t,e,n,s)=>{const r=Object.create(mr);r._tag=Js;r.combineInners=n;r.combineAll=s;r.onPull=()=>Zs(N());r.onEmit=()=>Ps;r.value=()=>t;r.k=e;return r}));const yr=_(2,((t,e)=>{const n=Object.create(mr);n._tag=Gs;n.input=e;n.channel=t;return n}));const zr=_(2,((t,e)=>{const n=Object.create(mr);n._tag=er;n.channel=t;n.finalizer=e;return n}));const wr=t=>kr(Rn(t));const kr=t=>xr((()=>t));const xr=t=>{const e=Object.create(mr);e._tag=nr;e.error=t;return e};const Sr=_(2,((t,e)=>{const n=Object.create(mr);n._tag=sr;n.channel=t;n.k=new Ts(e,kr);return n}));const Rr=t=>{const e=Object.create(mr);e._tag=rr;e.effect=()=>t;return e};const Er=_(2,((t,e)=>{const n=Object.create(mr);n._tag=ir;n.left=()=>t;n.right=()=>e;return n}));const Fr=t=>_r({onInput:t.onInput,onFailure:e=>vt(An(e),{onLeft:t.onFailure,onRight:kr}),onDone:t.onDone});const _r=t=>{const e=Object.create(mr);e._tag=ar;e.more=t.onInput;e.done=new Ts(t.onDone,t.onFailure);return e};const Cr=t=>Ar((()=>t));const Dr=t=>{const e=Object.create(mr);e._tag=lr;e.terminal=t;return e};const Or=t=>{const e=Object.create(mr);e._tag=ur;e.channel=t;return e};const Ar=t=>{const e=Object.create(mr);e._tag=cr;e.evaluate=t;return e};const jr=Dr(void 0);const Br=t=>{const e=Object.create(mr);e._tag=tr;e.out=t;return e};const Ir="Done";const Lr="Emit";const Pr="FromEffect";const Nr="Read";const Mr=Symbol.for("effect/ChannelState");const Vr={_E:t=>t,_R:t=>t};const qr={[Mr]:Vr};const Tr=()=>{const t=Object.create(qr);t._tag=Ir;return t};const Ur=()=>{const t=Object.create(qr);t._tag=Lr;return t};const Hr=t=>{const e=Object.create(qr);e._tag=Pr;e.effect=t;return e};const Wr=(t,e,n,s)=>{const r=Object.create(qr);r._tag=Nr;r.upstream=t;r.onEffect=e;r.onEmit=n;r.onDone=s;return r};const Qr=t=>t._tag===Pr;const $r=t=>Qr(t)?t.effect:pt;const Kr=t=>Qr(t)?bt(t.effect):undefined;const Yr="PullFromChild";const Zr="PullFromUpstream";const Xr="DrainChildExecutors";const Gr="Emit";class Jr{childExecutor;parentSubexecutor;onEmit;_tag=Yr;constructor(t,e,n){this.childExecutor=t;this.parentSubexecutor=e;this.onEmit=n}close(t){const e=this.childExecutor.close(t);const n=this.parentSubexecutor.close(t);if(e!==undefined&&n!==undefined){return gt(yt(e),yt(n),((t,e)=>R(t,en(e))))}else if(e!==undefined){return e}else if(n!==undefined){return n}else{return undefined}}enqueuePullFromChild(t){return this}}class ti{upstreamExecutor;createChild;lastDone;activeChildExecutors;combineChildResults;combineWithChildResult;onPull;onEmit;_tag=Zr;constructor(t,e,n,s,r,i,o,a){this.upstreamExecutor=t;this.createChild=e;this.lastDone=n;this.activeChildExecutors=s;this.combineChildResults=r;this.combineWithChildResult=i;this.onPull=o;this.onEmit=a}close(t){const e=this.upstreamExecutor.close(t);const n=[...this.activeChildExecutors.map((e=>e!==undefined?e.childExecutor.close(t):undefined)),e];const s=n.reduce(((t,e)=>{if(t!==undefined&&e!==undefined){return gt(t,yt(e),((t,e)=>en(t,e)))}else if(t!==undefined){return t}else if(e!==undefined){return yt(e)}else{return undefined}}),undefined);return s===undefined?s:s}enqueuePullFromChild(t){return new ti(this.upstreamExecutor,this.createChild,this.lastDone,[...this.activeChildExecutors,t],this.combineChildResults,this.combineWithChildResult,this.onPull,this.onEmit)}}class ei{upstreamExecutor;lastDone;activeChildExecutors;upstreamDone;combineChildResults;combineWithChildResult;onPull;_tag=Xr;constructor(t,e,n,s,r,i,o){this.upstreamExecutor=t;this.lastDone=e;this.activeChildExecutors=n;this.upstreamDone=s;this.combineChildResults=r;this.combineWithChildResult=i;this.onPull=o}close(t){const e=this.upstreamExecutor.close(t);const n=[...this.activeChildExecutors.map((e=>e!==undefined?e.childExecutor.close(t):undefined)),e];const s=n.reduce(((t,e)=>{if(t!==undefined&&e!==undefined){return gt(t,yt(e),((t,e)=>en(t,e)))}else if(t!==undefined){return t}else if(e!==undefined){return yt(e)}else{return undefined}}),undefined);return s===undefined?s:s}enqueuePullFromChild(t){return new ei(this.upstreamExecutor,this.lastDone,[...this.activeChildExecutors,t],this.upstreamDone,this.combineChildResults,this.combineWithChildResult,this.onPull)}}class ni{value;next;_tag=Gr;constructor(t,e){this.value=t;this.next=e}close(t){const e=this.next.close(t);return e===undefined?e:e}enqueuePullFromChild(t){return this}}const si="Pulled";const ri="NoUpstream";const ii="effect/ChannelUpstreamPullRequest";const oi=Symbol.for(ii);const ai={_A:t=>t};const ci={[oi]:ai};const li=t=>{const e=Object.create(ci);e._tag=si;e.value=t;return e};const ui=t=>{const e=Object.create(ci);e._tag=ri;e.activeDownstreamCount=t;return e};class di{_activeSubexecutor=undefined;_cancelled=undefined;_closeLastSubstream=undefined;_currentChannel;_done=undefined;_doneStack=[];_emitted=undefined;_executeCloseLastSubstream;_input=undefined;_inProgressFinalizer=undefined;_providedEnv;constructor(t,e,n){this._currentChannel=t;this._executeCloseLastSubstream=n;this._providedEnv=e}run(){let t=undefined;while(t===undefined){if(this._cancelled!==undefined){t=this.processCancellation()}else if(this._activeSubexecutor!==undefined){t=this.runSubexecutor()}else{try{if(this._currentChannel===undefined){t=Tr()}else{if(ft(this._currentChannel)){this._currentChannel=Rr(this._currentChannel)}switch(this._currentChannel._tag){case Xs:{t=this.runBracketOut(this._currentChannel);break}case Gs:{const e=this._currentChannel.input;this._currentChannel=this._currentChannel.channel;if(this._input!==undefined){const n=this._input;this._input=undefined;const s=()=>St(e.awaitRead(),(()=>Ft((()=>{const t=n.run();switch(t._tag){case Ir:{return rn(n.getDone(),{onFailure:t=>e.error(t),onSuccess:t=>e.done(t)})}case Lr:{return St(e.emit(n.getEmit()),(()=>s()))}case Pr:{return kt(t.effect,{onFailure:t=>e.error(t),onSuccess:()=>s()})}case Nr:{return mi(t,(()=>s()),(t=>e.error(t)))}}}))));t=Hr(St(Rt(Et(s())),(t=>zt((()=>this.addFinalizer((e=>St(Pn(t),(()=>Ft((()=>{const t=this.restorePipe(e,n);return t!==undefined?t:pt})))))))))))}break}case Js:{const t=new di(this._currentChannel.value(),this._providedEnv,(t=>zt((()=>{const e=this._closeLastSubstream===undefined?pt:this._closeLastSubstream;this._closeLastSubstream=R(e,xt(t))}))));t._input=this._input;const e=this._currentChannel;this._activeSubexecutor=new ti(t,(t=>e.k(t)),undefined,[],((t,n)=>e.combineInners(t,n)),((t,n)=>e.combineAll(t,n)),(t=>e.onPull(t)),(t=>e.onEmit(t)));this._closeLastSubstream=undefined;this._currentChannel=undefined;break}case tr:{this._emitted=this._currentChannel.out;this._currentChannel=this._activeSubexecutor!==undefined?undefined:jr;t=Ur();break}case er:{this.runEnsuring(this._currentChannel);break}case nr:{t=this.doneHalt(this._currentChannel.error());break}case sr:{this._doneStack.push(this._currentChannel.k);this._currentChannel=this._currentChannel.channel;break}case rr:{const e=this._providedEnv===undefined?this._currentChannel.effect():R(this._currentChannel.effect(),wt(this._providedEnv));t=Hr(kt(e,{onFailure:t=>{const e=this.doneHalt(t);return e!==undefined&&Qr(e)?e.effect:pt},onSuccess:t=>{const e=this.doneSucceed(t);return e!==undefined&&Qr(e)?e.effect:pt}}));break}case ir:{const t=this._input;const e=new di(this._currentChannel.left(),this._providedEnv,(t=>this._executeCloseLastSubstream(t)));e._input=t;this._input=e;this.addFinalizer((e=>{const n=this.restorePipe(e,t);return n!==undefined?n:pt}));this._currentChannel=this._currentChannel.right();break}case or:{const t=this._providedEnv;this._providedEnv=this._currentChannel.context();this._currentChannel=this._currentChannel.inner;this.addFinalizer((()=>zt((()=>{this._providedEnv=t}))));break}case ar:{const e=this._currentChannel;t=Wr(this._input,mt,(t=>{try{this._currentChannel=e.more(t)}catch(t){this._currentChannel=e.done.onExit(cn(t))}return undefined}),(t=>{const n=t=>e.done.onExit(t);this._currentChannel=n(t);return undefined}));break}case cr:{t=this.doneSucceed(this._currentChannel.evaluate());break}case lr:{t=this.doneSucceed(this._currentChannel.terminal);break}case ur:{this._currentChannel=this._currentChannel.channel();break}}}}catch(t){this._currentChannel=kr(En(t))}}}return t}getDone(){return this._done}getEmit(){return this._emitted}cancelWith(t){this._cancelled=t}clearInProgressFinalizer(){this._inProgressFinalizer=undefined}storeInProgressFinalizer(t){this._inProgressFinalizer=t}popAllFinalizers(t){const e=[];let n=this._doneStack.pop();while(n){if(n._tag==="ContinuationFinalizer"){e.push(n.finalizer)}n=this._doneStack.pop()}const s=e.length===0?pt:fi(e,t);this.storeInProgressFinalizer(s);return s}popNextFinalizers(){const t=[];while(this._doneStack.length!==0){const e=this._doneStack[this._doneStack.length-1];if(e._tag===Ns){return t}t.push(e);this._doneStack.pop()}return t}restorePipe(t,e){const n=this._input;this._input=e;if(n!==undefined){const e=n.close(t);return e}return pt}close(t){let e=undefined;const n=this._inProgressFinalizer;if(n!==undefined){e=R(n,_t(zt((()=>this.clearInProgressFinalizer()))))}let s=undefined;const r=this.popAllFinalizers(t);if(r!==undefined){s=R(r,_t(zt((()=>this.clearInProgressFinalizer()))))}const i=this._activeSubexecutor===undefined?undefined:this._activeSubexecutor.close(t);if(i===undefined&&e===undefined&&s===undefined){return undefined}return R(yt(hi(i)),Ot(yt(hi(e))),Ot(yt(hi(s))),Dt((([[t,e],n])=>R(t,en(e),en(n)))),Ct,St((t=>Ft((()=>t)))))}doneSucceed(t){if(this._doneStack.length===0){this._done=nn(t);this._currentChannel=undefined;return Tr()}const e=this._doneStack[this._doneStack.length-1];if(e._tag===Ns){this._doneStack.pop();this._currentChannel=e.onSuccess(t);return undefined}const n=this.popNextFinalizers();if(this._doneStack.length===0){this._doneStack=n.reverse();this._done=nn(t);this._currentChannel=undefined;return Tr()}const s=fi(n.map((t=>t.finalizer)),nn(t));this.storeInProgressFinalizer(s);const r=R(s,_t(zt((()=>this.clearInProgressFinalizer()))),Ct,St((()=>zt((()=>this.doneSucceed(t))))));return Hr(r)}doneHalt(t){if(this._doneStack.length===0){this._done=sn(t);this._currentChannel=undefined;return Tr()}const e=this._doneStack[this._doneStack.length-1];if(e._tag===Ns){this._doneStack.pop();try{this._currentChannel=e.onHalt(t)}catch(t){this._currentChannel=kr(En(t))}return undefined}const n=this.popNextFinalizers();if(this._doneStack.length===0){this._doneStack=n.reverse();this._done=sn(t);this._currentChannel=undefined;return Tr()}const s=fi(n.map((t=>t.finalizer)),sn(t));this.storeInProgressFinalizer(s);const r=R(s,_t(zt((()=>this.clearInProgressFinalizer()))),Ct,St((()=>zt((()=>this.doneHalt(t))))));return Hr(r)}processCancellation(){this._currentChannel=undefined;this._done=this._cancelled;this._cancelled=undefined;return Tr()}runBracketOut(t){const e=Ct(kt(this.provide(t.acquire()),{onFailure:t=>zt((()=>{this._currentChannel=kr(t)})),onSuccess:e=>zt((()=>{this.addFinalizer((n=>this.provide(t.finalizer(e,n))));this._currentChannel=Br(e)}))}));return Hr(e)}provide(t){if(this._providedEnv===undefined){return t}return R(t,wt(this._providedEnv))}runEnsuring(t){this.addFinalizer(t.finalizer);this._currentChannel=t.channel}addFinalizer(t){this._doneStack.push(new Us(t))}runSubexecutor(){const t=this._activeSubexecutor;switch(t._tag){case Yr:{return this.pullFromChild(t.childExecutor,t.parentSubexecutor,t.onEmit,t)}case Zr:{return this.pullFromUpstream(t)}case Xr:{return this.drainChildExecutors(t)}case Gr:{this._emitted=t.value;this._activeSubexecutor=t.next;return Ur()}}}replaceSubexecutor(t){this._currentChannel=undefined;this._activeSubexecutor=t}finishWithExit(t){const e=rn(t,{onFailure:t=>this.doneHalt(t),onSuccess:t=>this.doneSucceed(t)});this._activeSubexecutor=undefined;return e===undefined?pt:$r(e)}finishSubexecutorWithCloseEffect(t,...e){this.addFinalizer((()=>R(e,At((e=>R(zt((()=>e(t))),St((t=>t!==undefined?t:pt)))),{discard:true}))));const n=R(t,rn({onFailure:t=>this.doneHalt(t),onSuccess:t=>this.doneSucceed(t)}));this._activeSubexecutor=undefined;return n}applyUpstreamPullStrategy(t,e,n){switch(n._tag){case Hs:{const s=!t||e.some((t=>t!==undefined));return[n.emitSeparator,s?[undefined,...e]:e]}case Ws:{const s=!t||e.some((t=>t!==undefined));return[n.emitSeparator,s?[...e,undefined]:e]}}}pullFromChild(t,e,n,s){return Wr(t,mt,(r=>{const i=n(r);switch(i._tag){case Os:{break}case As:{this.finishWithDoneValue(t,e,i.value);break}case js:{const t=e.enqueuePullFromChild(s);this.replaceSubexecutor(t);break}}this._activeSubexecutor=new ni(r,this._activeSubexecutor);return undefined}),rn({onFailure:n=>{const s=this.handleSubexecutorFailure(t,e,n);return s===undefined?undefined:Kr(s)},onSuccess:n=>{this.finishWithDoneValue(t,e,n);return undefined}}))}finishWithDoneValue(t,e,n){const s=e;switch(s._tag){case Zr:{const e=new ti(s.upstreamExecutor,s.createChild,s.lastDone!==undefined?s.combineChildResults(s.lastDone,n):n,s.activeChildExecutors,s.combineChildResults,s.combineWithChildResult,s.onPull,s.onEmit);this._closeLastSubstream=t.close(nn(n));this.replaceSubexecutor(e);break}case Xr:{const e=new ei(s.upstreamExecutor,s.lastDone!==undefined?s.combineChildResults(s.lastDone,n):n,s.activeChildExecutors,s.upstreamDone,s.combineChildResults,s.combineWithChildResult,s.onPull);this._closeLastSubstream=t.close(nn(n));this.replaceSubexecutor(e);break}}}handleSubexecutorFailure(t,e,n){return this.finishSubexecutorWithCloseEffect(sn(n),(t=>e.close(t)),(e=>t.close(e)))}pullFromUpstream(t){if(t.activeChildExecutors.length===0){return this.performPullFromUpstream(t)}const e=t.activeChildExecutors[0];const n=new ti(t.upstreamExecutor,t.createChild,t.lastDone,t.activeChildExecutors.slice(1),t.combineChildResults,t.combineWithChildResult,t.onPull,t.onEmit);if(e===undefined){return this.performPullFromUpstream(n)}this.replaceSubexecutor(new Jr(e.childExecutor,n,e.onEmit));return undefined}performPullFromUpstream(t){return Wr(t.upstreamExecutor,(t=>{const e=this._closeLastSubstream===undefined?pt:this._closeLastSubstream;this._closeLastSubstream=undefined;return R(this._executeCloseLastSubstream(e),xt(t))}),(e=>{if(this._closeLastSubstream!==undefined){const n=this._closeLastSubstream;this._closeLastSubstream=undefined;return R(this._executeCloseLastSubstream(n),Dt((()=>{const n=new di(t.createChild(e),this._providedEnv,this._executeCloseLastSubstream);n._input=this._input;const[s,r]=this.applyUpstreamPullStrategy(false,t.activeChildExecutors,t.onPull(li(e)));this._activeSubexecutor=new Jr(n,new ti(t.upstreamExecutor,t.createChild,t.lastDone,r,t.combineChildResults,t.combineWithChildResult,t.onPull,t.onEmit),t.onEmit);if(Bt(s)){this._activeSubexecutor=new ni(s.value,this._activeSubexecutor)}return undefined})))}const n=new di(t.createChild(e),this._providedEnv,this._executeCloseLastSubstream);n._input=this._input;const[s,r]=this.applyUpstreamPullStrategy(false,t.activeChildExecutors,t.onPull(li(e)));this._activeSubexecutor=new Jr(n,new ti(t.upstreamExecutor,t.createChild,t.lastDone,r,t.combineChildResults,t.combineWithChildResult,t.onPull,t.onEmit),t.onEmit);if(Bt(s)){this._activeSubexecutor=new ni(s.value,this._activeSubexecutor)}return undefined}),(e=>{if(t.activeChildExecutors.some((t=>t!==undefined))){const e=new ei(t.upstreamExecutor,t.lastDone,[undefined,...t.activeChildExecutors],t.upstreamExecutor.getDone(),t.combineChildResults,t.combineWithChildResult,t.onPull);if(this._closeLastSubstream!==undefined){const t=this._closeLastSubstream;this._closeLastSubstream=undefined;return R(this._executeCloseLastSubstream(t),Dt((()=>this.replaceSubexecutor(e))))}this.replaceSubexecutor(e);return undefined}const n=this._closeLastSubstream;const s=this.finishSubexecutorWithCloseEffect(R(e,ln((e=>t.combineWithChildResult(t.lastDone,e)))),(()=>n),(e=>t.upstreamExecutor.close(e)));return s===undefined?undefined:Kr(s)}))}drainChildExecutors(t){if(t.activeChildExecutors.length===0){const e=this._closeLastSubstream;if(e!==undefined){this.addFinalizer((()=>jt(e)))}return this.finishSubexecutorWithCloseEffect(t.upstreamDone,(()=>e),(e=>t.upstreamExecutor.close(e)))}const e=t.activeChildExecutors[0];const n=t.activeChildExecutors.slice(1);if(e===undefined){const[e,s]=this.applyUpstreamPullStrategy(true,n,t.onPull(ui(n.reduce(((t,e)=>e!==undefined?t+1:t),0))));this.replaceSubexecutor(new ei(t.upstreamExecutor,t.lastDone,s,t.upstreamDone,t.combineChildResults,t.combineWithChildResult,t.onPull));if(Bt(e)){this._emitted=e.value;return Ur()}return undefined}const s=new ei(t.upstreamExecutor,t.lastDone,n,t.upstreamDone,t.combineChildResults,t.combineWithChildResult,t.onPull);this.replaceSubexecutor(new Jr(e.childExecutor,s,e.onEmit));return undefined}}const hi=t=>t!==undefined?t:pt;const fi=(t,e)=>R(At(t,(t=>yt(t(e)))),Dt((t=>R(on(t),It((()=>an))))),St((t=>Ft((()=>t)))));const mi=(t,e,n)=>{const s=[t];const r=()=>{const t=s.pop();if(t===undefined||t.upstream===undefined){return Lt("Unexpected end of input for channel execution")}const i=t.upstream.run();switch(i._tag){case Lr:{const i=t.onEmit(t.upstream.getEmit());if(s.length===0){if(i===undefined){return Ft(e)}return R(i,kt({onFailure:n,onSuccess:e}))}if(i===undefined){return Ft((()=>r()))}return R(i,kt({onFailure:n,onSuccess:()=>r()}))}case Ir:{const i=t.onDone(t.upstream.getDone());if(s.length===0){if(i===undefined){return Ft(e)}return R(i,kt({onFailure:n,onSuccess:e}))}if(i===undefined){return Ft((()=>r()))}return R(i,kt({onFailure:n,onSuccess:()=>r()}))}case Pr:{s.push(t);return R(t.onEffect(i.effect),Pt((e=>Ft((()=>{const n=t.onDone(sn(e));return n===undefined?pt:n})))),kt({onFailure:n,onSuccess:()=>r()}))}case Nr:{s.push(t);s.push(i);return Ft((()=>r()))}}};return r()};const vi=_(2,((t,e)=>{const n=(e,n,s)=>Tt(zt((()=>new di(t,void 0,mt))),(t=>Ft((()=>pi(t.run(),t).pipe(Qt(e),xt(fn(e)),$t(fn(n)))))),((t,e)=>{const n=t.close(e);if(n===undefined){return pt}return Kt(n,(t=>Yt(s,Zt(t))))}));return Nt((t=>Mt([Vt(e,qt),un(),un()]).pipe(St((([s,r,i])=>t(n(r,i,s)).pipe(Ut(e),St((n=>e.addFinalizer((t=>{const e=tn(t)?On(t.cause):undefined;return dn(r).pipe(St((t=>t?hn(i,void 0).pipe(xt(In(n)),xt(Ln(n))):hn(i,void 0).pipe(xt(e&&Ht(e)>0?Nn(n,Wt(e)):Pn(n)),xt(Ln(n))))))})).pipe(xt(t(fn(r))))))))))))}));const pi=(t,e)=>{const n=t;switch(n._tag){case Pr:{return R(n.effect,St((()=>pi(e.run(),e))))}case Lr:{return pi(e.run(),e)}case Ir:{return Ft((()=>e.getDone()))}case Nr:{return mi(n,(()=>pi(e.run(),e)),Zt)}}};const bi="Done";const gi="Await";const yi="effect/ChannelMergeDecision";const zi=Symbol.for(yi);const wi={[zi]:{_R:t=>t,_E0:t=>t,_Z0:t=>t,_E:t=>t,_Z:t=>t}};const ki=t=>{const e=Object.create(wi);e._tag=gi;e.f=t;return e};const xi="BothRunning";const Si="LeftDone";const Ri="RightDone";const Ei="effect/ChannelMergeState";const Fi=Symbol.for(Ei);const _i={[Fi]:Fi};const Ci=(t,e)=>{const n=Object.create(_i);n._tag=xi;n.left=t;n.right=e;return n};const Di=t=>{const e=Object.create(_i);e._tag=Si;e.f=t;return e};const Oi=t=>{const e=Object.create(_i);e._tag=Ri;e.f=t;return e};const Ai="BackPressure";const ji="BufferSliding";const Bi="effect/ChannelMergeStrategy";const Ii=Symbol.for(Bi);const Li={[Ii]:Ii};const Pi=t=>{const e=Object.create(Li);e._tag=Ai;return e};const Ni=t=>{const e=Object.create(Li);e._tag=ji;return e};const Mi=_(2,((t,{onBackPressure:e,onBufferSliding:n})=>{switch(t._tag){case Ai:{return e()}case ji:{return n()}}}));const Vi="Empty";const qi="Emit";const Ti="Error";const Ui="Done";const Hi=t=>({_tag:Vi,notifyProducer:t});const Wi=t=>({_tag:qi,notifyConsumers:t});const Qi=t=>({_tag:Ti,cause:t});const $i=t=>({_tag:Ui,done:t});class Ki{ref;constructor(t){this.ref=t}awaitRead(){return Xt(xn(this.ref,(t=>t._tag===Vi?[fn(t.notifyProducer),t]:[pt,t])))}get close(){return Gt((t=>this.error(Fn(t))))}done(t){return Xt(xn(this.ref,(e=>{switch(e._tag){case Vi:{return[fn(e.notifyProducer),e]}case qi:{return[At(e.notifyConsumers,(e=>hn(e,te(t))),{discard:true}),$i(t)]}case Ti:{return[Jt,e]}case Ui:{return[Jt,e]}}})))}emit(t){return St(un(),(e=>Xt(xn(this.ref,(n=>{switch(n._tag){case Vi:{return[fn(n.notifyProducer),n]}case qi:{const s=n.notifyConsumers[0];const r=n.notifyConsumers.slice(1);if(s!==undefined){return[hn(s,ee(t)),r.length===0?Hi(e):Wi(r)]}throw new Error("Bug: Channel.SingleProducerAsyncInput.emit - Queue was empty! please report an issue at https://github.com/Effect-TS/effect/issues")}case Ti:{return[Jt,n]}case Ui:{return[Jt,n]}}})))))}error(t){return Xt(xn(this.ref,(e=>{switch(e._tag){case Vi:{return[fn(e.notifyProducer),e]}case qi:{return[At(e.notifyConsumers,(e=>mn(e,t)),{discard:true}),Qi(t)]}case Ti:{return[Jt,e]}case Ui:{return[Jt,e]}}})))}get take(){return this.takeWith((t=>sn(Bn(t,te))),(t=>nn(t)),(t=>vn(ee(t))))}takeWith(t,e,n){return St(un(),(s=>Xt(xn(this.ref,(r=>{switch(r._tag){case Vi:{return[xt(hn(r.notifyProducer,void 0),ne(fn(s),{onFailure:t,onSuccess:vt({onLeft:n,onRight:e})})),Wi([s])]}case qi:{return[ne(fn(s),{onFailure:t,onSuccess:vt({onLeft:n,onRight:e})}),Wi([...r.notifyConsumers,s])]}case Ti:{return[jt(t(r.cause)),r]}case Ui:{return[jt(n(r.done)),r]}}})))))}}const Yi=()=>R(un(),St((t=>wn(Hi(t)))),Dt((t=>new Ki(t))));const Zi=_(2,((t,e)=>gr(t,e,(()=>void 0),(()=>void 0))));const Xi=t=>{const e=_r({onInput:()=>e,onFailure:kr,onDone:Cr});return Er(t,e)};const Gi=_(2,((t,e)=>zr(t,(()=>e))));const Ji=t=>Sr(t,mt);const to=t=>bo(t.takeWith(kr,(e=>Sr(Br(e),(()=>to(t)))),Cr));const eo=()=>Fr({onInput:t=>Sr(Br(t),(()=>eo())),onFailure:wr,onDone:Dr});const no=_(2,((t,e)=>Sr(t,(t=>Ar((()=>e(t)))))));const so=_(2,((t,e)=>{const n=Fr({onInput:t=>Sr(Br(e(t)),(()=>n)),onFailure:wr,onDone:Dr});return Er(t,n)}));const ro=_(3,((t,e,n)=>yo((s=>ae((function*(){const r=yield*Yi();const i=to(r);const o=yield*xs(n);yield*Yt(s,Fs(o));const a=yield*un();const c=n===Number.POSITIVE_INFINITY?t=>mt:(yield*pe(n)).withPermits;const l=yield*i.pipe(Er(t),vo(s));yield*l.pipe(kt({onFailure:t=>_s(o,Zt(t)),onSuccess:vt({onLeft:t=>xt(Et(c(n)(pt)),ke(_s(o,jt(te(t))))),onRight:t=>ae((function*(){const n=yield*un();const r=yield*un();yield*_s(o,Dt(fn(n),ee));yield*hn(r,void 0).pipe(xt(Nt((n=>yt(n(fn(a))).pipe(Se(yt(n(e(t)))),St(mt)))).pipe(Kt((t=>mn(a,t))),Qt(n))),c(1),Ut(s));yield*fn(r)}))})}),Re,Et,Ut(s));const u=bo(ne(Xt(Cs(o)),{onFailure:kr,onSuccess:vt({onLeft:Dr,onRight:t=>Sr(Br(t),(()=>u))})}));return yr(u,r)}))))));const io=t=>e=>oo(t)(e,ie);const oo=({bufferSize:t=16,concurrency:e,mergeStrategy:n=Pi()})=>(s,r)=>yo((i=>ae((function*(){const o=e==="unbounded"?Number.MAX_SAFE_INTEGER:e;const a=yield*Yi();const c=to(a);const l=yield*xs(t);yield*Yt(i,Fs(l));const u=yield*Ss();yield*Yt(i,Fs(u));const d=yield*wn(N());const h=yield*un();const f=(yield*pe(o)).withPermits;const m=yield*vo(Er(c,s),i);function v(t){return t.pipe(St(vt({onLeft:t=>jt(M(t)),onRight:t=>ye(_s(l,jt(ee(t))),N())})),we({until:t=>Bt(t)}),St((t=>Sn(d,ze({onNone:()=>M(t.value),onSome:e=>M(r(e,t.value))})))),Pt((t=>Cn(t)?Zt(t):_s(l,Zt(t)).pipe(xt(hn(h,void 0)),ke))))}yield*m.pipe(kt({onFailure:t=>_s(l,Zt(t)).pipe(xt(jt(false))),onSuccess:vt({onLeft:t=>he(Et(fn(h)),Et(f(o)(pt)),{onSelfDone:(t,e)=>ye(Pn(e),false),onOtherDone:(e,n)=>xt(Pn(n),kn(d).pipe(St(ze({onNone:()=>_s(l,jt(te(t))),onSome:e=>_s(l,jt(te(r(e,t))))})),ye(false)))}),onRight:t=>Mi(n,{onBackPressure:()=>ae((function*(){const e=yield*un();const n=se((e=>vo(Er(c,t),e).pipe(St((t=>ge(yt(v(t)),yt(Et(fn(h)))))),St(mt))));yield*hn(e,void 0).pipe(xt(n),f(1),Ut(i));yield*fn(e);const s=yield*dn(h);return!s})),onBufferSliding:()=>ae((function*(){const e=yield*un();const n=yield*un();const s=yield*Rs(u);yield*Cs(u).pipe(St((t=>hn(t,void 0))),be((()=>s>=o)));yield*_s(u,e);const r=se((n=>vo(Er(c,t),n).pipe(St((t=>yt(v(t)).pipe(ge(yt(Et(fn(h)))),ge(yt(Et(fn(e))))))),St(mt))));yield*hn(n,void 0).pipe(xt(r),f(1),Ut(i));yield*fn(n);const a=yield*dn(h);return!a}))})})}),we({while:t=>t}),Ut(i));const p=R(Cs(l),Xt,ne({onFailure:kr,onSuccess:vt({onLeft:Dr,onRight:t=>Sr(Br(t),(()=>p))})}),bo);return yr(p,a)}))));const ao=_(3,((t,e,n)=>io(n)(so(t,e))));const co=_(2,((t,e)=>{function n(n){return ae((function*(){const s=yield*Yi();const r=to(s);const i=yield*vo(Er(r,t),n);const o=yield*vo(Er(r,e.other),n);function a(t,e,s){return(r,i,o)=>{function a(t){const n=t;if(n._tag===bi){return jt(Rr(xt(Pn(e),n.effect)))}return Dt(In(e),rn({onFailure:t=>Rr(n.f(sn(t))),onSuccess:vt({onLeft:t=>Rr(n.f(nn(t))),onRight:t=>xo(Br(t),c(o(n.f)))})}))}return rn(t,{onFailure:t=>a(r(sn(t))),onSuccess:vt({onLeft:t=>a(r(nn(t))),onRight:t=>jt(Sr(Br(t),(()=>Sr(Rr(Ut(Et(s),n)),(t=>c(i(t,e)))))))})})}}function c(t){switch(t._tag){case xi:{const n=Et(Mn(t.left));const s=Et(Mn(t.right));return bo(he(n,s,{onSelfDone:(n,s)=>xt(Pn(s),a(n,t.right,i)(e.onSelfDone,Ci,(t=>Di(t)))),onOtherDone:(n,s)=>xt(Pn(s),a(n,t.left,o)(e.onOtherDone,((t,e)=>Ci(e,t)),(t=>Oi(t))))}))}case Si:{return bo(Dt(yt(o),rn({onFailure:e=>Rr(t.f(sn(e))),onSuccess:vt({onLeft:e=>Rr(t.f(nn(e))),onRight:e=>Sr(Br(e),(()=>c(Di(t.f))))})})))}case Ri:{return bo(Dt(yt(i),rn({onFailure:e=>Rr(t.f(sn(e))),onSuccess:vt({onLeft:e=>Rr(t.f(nn(e))),onRight:e=>Sr(Br(e),(()=>c(Oi(t.f))))})})))}}}return Rr(ce((t=>{const e=ce((e=>{e.transferChildren(t.scope());return pt}));const s=Et(i).pipe(_t(e),Ut(n));const r=Et(o).pipe(_t(e),Ut(n));return gt(s,r,((t,e)=>Ci(t,e)))}))).pipe(Sr(c),yr(s))}))}return yo(n)}));const lo=_(2,((t,e)=>Or((()=>{let n=undefined;const s=Fr({onInput:t=>Sr(Br(t),(()=>s)),onFailure:t=>{n=Ro(t);return kr(En(n))},onDone:Dr});const r=_r({onInput:t=>R(Br(t),Sr((()=>r))),onFailure:t=>_n(t)&&Eo(t.defect)&&xe(t.defect,n)?wr(t.defect.error):kr(t),onDone:Dr});return Er(Er(Er(t,s),e),r)}))));const uo=t=>se((e=>vi(t,e)));const ho=t=>uo(Xi(t));const fo=t=>bo(Nt((e=>Dt(le(),(n=>pr(Kt(e(ue(t,n)),(t=>de(n,sn(t)))),((t,e)=>de(n,e))))))));const mo=t=>go(Dt(oe,(e=>Sr(Rr(t(e)),Br))));const vo=_(2,((t,e)=>Ot(zt((()=>new di(t,void 0,mt))),fe()).pipe(me((([t,n])=>ve(e,(e=>{const s=t.close(e);return s!==undefined?wt(s,n):pt})))),Ct,Dt((([t])=>Ft((()=>po(t.run(),t))))))));const po=(t,e)=>{const n=t;switch(n._tag){case Ir:{return rn(e.getDone(),{onFailure:Zt,onSuccess:t=>jt(te(t))})}case Lr:{return jt(ee(e.getEmit()))}case Pr:{return R(n.effect,St((()=>po(e.run(),e))))}case Nr:{return mi(n,(()=>po(e.run(),e)),(t=>Zt(t)))}}};const bo=t=>Ji(Rr(t));const go=t=>br(fo(t),((t,e)=>t),((t,e)=>t));const yo=t=>br(mo(t),((t,e)=>t),((t,e)=>t));const zo=t=>wo(0,t.length,t);const wo=(t,e,n)=>t===e?jr:R(Br(R(n,re(t))),Sr((()=>wo(t+1,e,n))));const ko=_((t=>vr(t[1])),((t,e,n)=>n?.concurrent?co(t,{other:e,onSelfDone:t=>ki((e=>Ft((()=>pn(t,e))))),onOtherDone:t=>ki((e=>Ft((()=>pn(e,t)))))}):Sr(t,(t=>no(e,(e=>[t,e]))))));const xo=_((t=>vr(t[1])),((t,e,n)=>n?.concurrent?no(ko(t,e,{concurrent:true}),(t=>t[1])):Sr(t,(()=>e))));const So=Symbol.for("effect/Channel/ChannelException");const Ro=t=>({_tag:"ChannelException",[So]:So,error:t});const Eo=t=>ht(t,So);const Fo=Symbol.for("effect/Sink");const _o={_A:t=>t,_In:t=>t,_L:t=>t,_E:t=>t,_R:t=>t};class Co{channel;[Fo]=_o;constructor(t){this.channel=t}pipe(){return j(this,arguments)}}const Do=new Co(Xi(eo()));const Oo=t=>new Co(Rr(t));const Ao=t=>ft(t)?Ao(Oo(t)):t.channel;const jo="effect/Take";const Bo=Symbol.for(jo);const Io={_A:t=>t,_E:t=>t};class Lo{exit;[Bo]=Io;constructor(t){this.exit=t}pipe(){return j(this,arguments)}}const Po=t=>new Lo(nn(t));const No=new Lo(vn(N()));const Mo=t=>new Lo(sn(R(t,Bn(M))));const Vo=t=>new Lo(nn(Ee(t)));const qo=()=>Fe(N());const To=t=>_e(Zt(t),M);const Uo="effect/Stream";const Ho=Symbol.for(Uo);const Wo={_R:t=>t,_E:t=>t,_A:t=>t};class Qo{channel;[Ho]=Wo;constructor(t){this.channel=t}pipe(){return j(this,arguments)}}const $o=t=>ht(t,Ho)||ft(t);const Ko=4096;const Yo=_(2,((t,e)=>new Qo(R(sa(t),Gi(e)))));const Zo=_((t=>$o(t[0])),((t,e,n)=>{const s=n?.bufferSize??16;if(n?.switch){return Xo(n?.concurrency,(()=>Go(t,1,s,e)),(n=>Go(t,n,s,e)))}return Xo(n?.concurrency,(()=>new Qo(Zi(sa(t),(t=>R(t,De((t=>sa(e(t)))),Ce(jr,((t,e)=>R(t,xo(e))))))))),(s=>new Qo(R(sa(t),Zi(zo),ao((t=>sa(e(t))),n)))))}));const Xo=(t,e,n)=>{switch(t){case undefined:return e();case"unbounded":return n(Number.MAX_SAFE_INTEGER);default:return t>1?n(t):e()}};const Go=_(4,((t,e,n,s)=>new Qo(R(sa(t),Zi(zo),ao((t=>sa(s(t))),{concurrency:e,mergeStrategy:Ni(),bufferSize:n})))));const Jo=_((t=>$o(t[0])),((t,e)=>Zo(t,mt,e)));const ta=t=>{const e=_r({onInput:t=>Sr(zo(t),(()=>e)),onFailure:kr,onDone:()=>jr});return new Qo(R(sa(t),Er(e)))};const ea=t=>{const e=(t,e)=>{const[n,s]=R(t,Ae((t=>!bn(t))));const r=R(je(s),ze({onNone:()=>e,onSome:rn({onFailure:t=>ze(jn(t),{onNone:()=>jr,onSome:kr}),onSuccess:()=>jr})}));return R(Br(R(n,Be((t=>bn(t)?M(t.value):N())))),Sr((()=>r)))};const n=_r({onInput:t=>e(t,n),onFailure:t=>kr(t),onDone:()=>jr});return new Qo(R(sa(t),Er(n)))};const na=t=>ta(ea(R(t,aa((t=>t.exit)))));const sa=t=>{if("channel"in t){return t.channel}else if(ft(t)){return sa(ra(t))}else{throw new TypeError(`Expected a Stream.`)}};const ra=t=>R(t,_e(M),ia);const ia=t=>new Qo(bo(Oe(t,{onFailure:ze({onNone:()=>jr,onSome:wr}),onSuccess:t=>Br(Ee(t))})));const oa=(t,e)=>R(Ds(t,1,e?.maxChunkSize??Ko),Pt((e=>R(Es(t),St((t=>t&&Cn(e)?qo():To(e)))))),ua,e?.shutdown?Yo(Fs(t)):mt);const aa=_(2,((t,e)=>new Qo(R(sa(t),so(De(e))))));const ca=_(2,((t,e)=>{const n=t=>{const s=t.next();if(s.done){return _r({onInput:t=>n(t[Symbol.iterator]()),onFailure:kr,onDone:Cr})}else{const r=s.value;return bo(Dt(e(r),(e=>Sr(Br(Ee(e)),(()=>n(t))))))}};return new Qo(R(sa(t),Er(Or((()=>n(lt()[Symbol.iterator]()))))))}));const la=_(3,((t,e,n)=>new Qo(R(sa(t),Zi(zo),ro(n,e),so(Ee)))));const ua=t=>va(t,(t=>R(Dt(t,(e=>M([e,t]))),Ie(ze({onNone:()=>jt(N()),onSome:Fe})))));const da=_(2,((t,e)=>sa(t).pipe(lo(Ao(e)),ho)));const ha=t=>da(t,Do);const fa=t=>new Qo(mo((e=>t(e).pipe(Dt(Ee)))));const ma=t=>new Qo(Or((()=>sa(t()))));const va=(t,e)=>ma((()=>{const n=t=>bo(Dt(e(t),ze({onNone:()=>jr,onSome:([t,e])=>Sr(Br(t),(()=>n(e)))})));return new Qo(n(t))}));const pa=t=>Jo(fa((e=>t(e))));const ba="effect/GroupBy";const ga=Symbol.for(ba);const ya={_R:t=>t,_E:t=>t,_K:t=>t,_V:t=>t};const za=t=>ht(t,ga);const wa=_((t=>za(t[0])),((t,e,n)=>Zo(t.grouped,(([t,n])=>e(t,na(oa(n,{shutdown:true})))),{concurrency:"unbounded",bufferSize:n?.bufferSize??16})));const ka=t=>({[ga]:ya,pipe(){return j(this,arguments)},grouped:t});const xa=_((t=>typeof t[0]!=="function"),((t,e,n)=>{if(n?.key){return wa(Sa(t,n.key,{bufferSize:n.bufferSize}),((t,n)=>ca(n,e)))}return Xo(n?.concurrency,(()=>ca(t,e)),(s=>n?.unordered?Zo(t,(t=>ra(e(t))),{concurrency:s}):la(t,s,e)))}));const Sa=_((t=>typeof t[0]!=="function"),((t,e,n)=>{const s=(t,r)=>_r({onInput:i=>Sr(Rr(At(Ra(i,e),(([e,s])=>{const i=t.get(e);if(i===undefined){return R(xs(n?.bufferSize??16),St((n=>R(zt((()=>{t.set(e,n)})),xt(_s(r,Vo([e,n]))),xt(R(_s(n,Po(s)),Le((t=>Dn(t)?M(pt):N()))))))))}return Le(_s(i,Po(s)),(t=>Dn(t)?M(pt):N()))}),{discard:true})),(()=>s(t,r))),onFailure:t=>Rr(_s(r,Mo(t))),onDone:()=>Rr(R(At(t.entries(),(([t,e])=>R(_s(e,No),Le((t=>Dn(t)?M(pt):N())))),{discard:true}),xt(_s(r,No))))});return ka(pa((e=>ae((function*(){const n=new Map;const r=yield*Ss();yield*Yt(e,Fs(r));return yield*sa(t).pipe(Er(s(n,r)),Xi,vi(e),Ut(e),ye(na(oa(r,{shutdown:true}))))})))))}));const Ra=_(2,((t,e)=>{const n=[];const s=t[Symbol.iterator]();const r=new Map;let i;while((i=s.next())&&!i.done){const t=i.value;const s=e(t);if(r.has(s)){const e=r.get(s);e.push(t)}else{const e=[t];n.push([s,e]);r.set(s,e)}}return Pe(n.map((t=>[t[0],Pe(t[1])])))}));const Ea=oa;const Fa=xa;const _a=ha;const Ca=class{constructor(e){t(this,e)}activeNav;activate(t){const e=t.currentTarget;const n=e.closest('[slot="nav-primary"]');if(!n)return;const s=n.id;if(!s){console.warn("Nav item does not have an id:",n);return}console.log("Activating nav item:",s);this.activeNav=s}render(){return e(n,{key:"d36cd9202cfdea4bc684f2b17ba625fd37397616"},e("lmvz-header",{key:"681f8b9fe603d98bad55bbbc7b4dbd43a3d7aff1",lmvzActiveNav:this.activeNav},e("lmvz-menuitem",{key:"54a1b1d394c69e98e742e2dd53f000de028a8626",slot:"nav-primary",id:"lehrmittel",onLmvzActivation:this.activate.bind(this)},"Lehrmittel"),e("lmvz-menuitem",{key:"1aa874d07f7e444433c818c97e300d0e1693fa06",slot:"nav-primary",id:"verwaltung",onLmvzActivation:this.activate.bind(this)},"Verwaltung"),e("lmvz-menuitem",{key:"d462954ef05c4d70252febfd184b363c4a2a3cde",slot:"connect-nav-lehrmittel"},e("lmvz-icon",{key:"72e9bb03e05463b876bbf23e2e3e12838b15c76c",icon:"book"}),"Deutsch 7"),e("lmvz-menuitem",{key:"3f065f96ecd9ec59ae9ebd7885173e706f156a94",slot:"connect-nav-lehrmittel"},e("lmvz-icon",{key:"cb8039ffb7e590c201e7dc31ba55741c2dbe1181",icon:"book"}),"Mathe 2"),e("lmvz-menuitem",{key:"90eff45f7a773665a71eddceb4841e89fe54e5cb",slot:"connect-nav-verwaltung"},e("lmvz-icon",{key:"1a9a36baab23233209649e65a5a25d0d1e9b455e",icon:"cog"}),"iwas mit Verwaltung"),e("lmvz-menuitem",{key:"14149a8355373308ff6a531fc6e796b0a67e44a3",slot:"connect-nav-verwaltung","aria-label":"Einstellungen"},e("lmvz-icon",{key:"0e713b2f6740e004c8897e986de0756c9392459e",icon:"cog"})),e("lmvz-button",{key:"ee75293a9e256b5d3edf90a77a817aa1b60aea9e",slot:"actions","aria-label":"Benutzerkonto"},e("lmvz-icon",{key:"483e613ab4f5c32be0f942714fe649019b001f3f",icon:"user"}))),e("lmvz-input",{key:"63ec977b40a39ecd9bc37309ee2d917916cf3256",label:"test"}))}};Ca.style=`:host {\n display: block;\n min-height: 100vh;\n background: var(--lmvz-color-spec-bg-outer-view);\n }\n\n .active button {\n background-color: var(--lmvz-semantic-color-status-selected);\n }`;var Da={exports:{}};
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */var Oa;function Aa(){if(Oa)return Da.exports;Oa=1;(function(t){(function(){var e={}.hasOwnProperty;function n(){var t="";for(var e=0;e<arguments.length;e++){var n=arguments[e];if(n){t=r(t,s(n))}}return t}function s(t){if(typeof t==="string"||typeof t==="number"){return t}if(typeof t!=="object"){return""}if(Array.isArray(t)){return n.apply(null,t)}if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){return t.toString()}var s="";for(var i in t){if(e.call(t,i)&&t[i]){s=r(s,i)}}return s}function r(t,e){if(!e){return t}if(t){return t+" "+e}return t+e}if(t.exports){n.default=n;t.exports=n}else{window.classNames=n}})()})(Da);return Da.exports}var ja=Aa();var Ba=zn(ja);const Ia=(t,e)=>{if(t.componentOnReady){t.componentOnReady().then((t=>e(t)))}else{Ma((()=>e(t)))}};const La=(t,e=[])=>{const n={};e.forEach((e=>{if(t.hasAttribute(e)){const s=t.getAttribute(e);if(s!==null){n[e]=t.getAttribute(e)}t.removeAttribute(e)}}));return n};const Pa=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];const Na=(t,e)=>{let n=Pa;return La(t,n)};const Ma=t=>{if(typeof __zone_symbol__requestAnimationFrame==="function"){return __zone_symbol__requestAnimationFrame(t)}if(typeof requestAnimationFrame==="function"){return requestAnimationFrame(t)}return setTimeout(t)};function Va(t=document){let e=t.activeElement;if(!e){return null}while(e&&e.shadowRoot){const t=e.shadowRoot.activeElement;if(!t){break}e=t}return e}function qa(t){return t instanceof HTMLElement&&t.tabIndex>=0&&!t.hasAttribute("disabled")&&t.getAttribute("aria-hidden")!=="true"&&t.checkVisibility()&&t.offsetParent!==null}function Ta(t,e){if(t instanceof HTMLFormElement){return t}if(typeof t==="string"){const e=document.getElementById(t);if(e){if(e instanceof HTMLFormElement){return e}else{console.warn(`No Form found with selector: "#${t}". Verify that the element with id exists and is actually a <form> element.`,e);return null}}else{console.warn(`No Form found with selector: "#${t}". Verify that the id is correct and the form is rendered in the DOM.`,e);return null}}if(t!==undefined){console.warn(`The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.`,e);return null}return e.closest("form")}class Ua{host;config;constructor(t,e){this.host=t;this.config=e}hostDidLoad(){if(!this.host.el.hasAttribute("tabindex")){console.warn("Interactive element does not have a tabindex attribute!",this.host.el)}this.host.el.addEventListener("keydown",this.handleKeyDown.bind(this));this.host.el.addEventListener("click",this.handleActivation.bind(this))}handleKeyDown=t=>{if((this.config?.keys??["Enter"," "]).includes(t.key)){t.preventDefault();this.handleActivation(t)}};handleActivation=t=>{this.host.lmvzActivation.emit();if(this.config?.localHandler){this.config.localHandler(t)}}}class Ha{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(){if(!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?.()))}}class Wa{host;config;static get globalValidationEnabled(){return s.isDev}static axe=this.globalValidationEnabled?import("./p-Hc4uxoTU.js").then((function(t){return t.a})):null;static axeQueue=null;static axeStreamFiber=null;visibilityObserver;elementQueued=false;elementValidated=false;knownValidationErrors=[];get disabled(){return true}constructor(t,e){this.host=t;this.config=e;Wa.initializeAxeStream()}static initializeAxeStream(){if(!this.globalValidationEnabled)return;if(this.axeStreamFiber)return;const t=ae((function*(){const t=Wa.axeQueue=yield*xs(100);const e=yield*Me((()=>Wa.axe));if(!e){console.error("Axe library not available, ARIA validation will not run.");return}const n=Ea(t).pipe(Fa((({context:t,onComplete:n})=>Ve((s=>{e.run(t,{},((t,e)=>{n(t,e);s(pt)}))})))));yield*_a(n)}));this.axeStreamFiber=Ne(t)}hostDidLoad(){if(this.elementQueued||this.elementValidated)return;if(!this.host.el.checkVisibility()){this.observeVisibilityOnce();return}this.enqueueValidation()}hostDidUpdate(){this.checkLazyValidation()}hostDisconnected(){this.discardVisibilityObserver()}observeVisibilityOnce(){this.visibilityObserver=new IntersectionObserver((t=>{for(const e of t){if(e.target!==this.host.el)continue;if(!e.isIntersecting)continue;this.checkLazyValidation();this.discardVisibilityObserver()}}),{root:this.host.el.parentElement,rootMargin:"0px",threshold:.01});this.visibilityObserver.observe(this.host.el)}checkLazyValidation(){if(!this.config?.reValidateOnPropChanges&&(this.elementQueued||this.elementValidated))return;this.enqueueValidation()}enqueueValidation(){return}discardVisibilityObserver(){if(!this.visibilityObserver)return;this.visibilityObserver.disconnect();this.visibilityObserver=undefined}}const Qa=()=>` @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; } } :host { 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: contents; } ::slotted(*) { --lmvz-component-color: var(--lmvz-button-color); } `;const $a=class extends Ha{get el(){return r(this)}inheritedAttributes={};formEl=null;formButtonEl=null;lmvzActivation;get ti(){return 0}scale="default";variant="secondary";disabled=false;type="button";form;constructor(e){super();t(this,e);this.lmvzActivation=i(this,"lmvzActivation");this.addController(new Wa(this));this.addController(new Ua(this,{localHandler:this.handleClick.bind(this),keys:["Enter"]}))}connectedCallback(){this.inheritedAttributes=Na(this.el)}renderHiddenButton(){const t=this.formEl=Ta(this.form,this.el);if(!t)return;const{formButtonEl:e}=this;if(e!==null&&t.contains(e))return;const n=this.formButtonEl=document.createElement("button");n.type="submit";n.style.display="none";n.disabled=this.disabled;t.appendChild(n)}submitForm(t){if(this.formEl&&this.formButtonEl){t.preventDefault();this.formButtonEl.click()}}handleClick=t=>{if(this.type==="submit"){this.submitForm(t)}};render(){this.renderHiddenButton();return e(n,{key:"1c96281344dd604e2e4c919ea72907a9e934e5c6","aria-disabled":this.disabled?"true":null},e("button",{key:"16728ce6fee7d121e7120aa993031777f6d8570e",disabled:this.disabled,class:Ba(this.variant,{[this.scale??""]:!!this.scale,disabled:this.disabled}),...this.inheritedAttributes},e("slot",{key:"e1b0d95953bdbd42885eecdeef8b457070e7e247"})))}static get delegatesFocus(){return true}};$a.style=Qa();class Ka{host;elements=[];constructor(t){this.host=t}hostDidRender(){this.host.el.addEventListener("keydown",this.handleKeydown)}updateElements(t){this.elements=t}handleKeydown=t=>{const{key:e}=t;if(!["ArrowDown","ArrowRight","ArrowUp","ArrowLeft"].includes(e))return;const n=Va(document);const s=this.getNextFocusableElement(n,["ArrowDown","ArrowRight"].includes(e)?"down":"up");if(s){t.preventDefault();s.focus?.()}};getNextFocusableElement(t,e){const{elements:n}=this;const s=n.indexOf(t);if(s===-1)return null;let r=null;if(e==="down"){r=(s+1)%n.length}else if(e==="up"){r=(s-1+n.length)%n.length}if(r==null)return null;const i=n[r];if(!qa(i))return this.getNextFocusableElement(i,e);return i}}const Ya=()=>`: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)}}`;const Za=class extends Ha{get el(){return r(this)}primarySlot;secondarySlot;secondaryNav;keyboardNavigationController=new Ka(this);get primaryMenuitems(){return this.primarySlot.assignedElements({flatten:false})}get secondaryMenuitems(){return this.secondarySlot.assignedElements({flatten:true})}get role(){return"banner"}lmvzActiveNav;get secondarySlotName(){return`connect-nav-${this.lmvzActiveNav}`}constructor(e){super();t(this,e);this.addController(new Wa(this,{reValidateOnPropChanges:true}));this.addController(this.keyboardNavigationController)}handleActiveNavChange(){this.updateElementsActive()}componentDidLoad(){this.primarySlot.addEventListener("slotchange",this.handlePrimaryNavChange.bind(this));this.handlePrimaryNavChange();this.secondarySlot.addEventListener("slotchange",this.handleSecondaryNavChange.bind(this))}handlePrimaryNavChange(){const t=this.primaryMenuitems;if(!t.length){console.warn("Primary slot has no assigned elements. Please add navigation items to the primary slot.");return}t.forEach((t=>{t.setAttribute("aria-haspopup","true");t.setAttribute("aria-controls",`nav-secondary`)}));this.updateElementsActive()}handleSecondaryNavChange(){const t=this.secondaryMenuitems;if(!t.length){return}this.keyboardNavigationController.updateElements([...this.primaryMenuitems,...this.secondaryMenuitems])}updateElementsActive(){const t=this.primaryMenuitems;let e;t.forEach((t=>{const n=t.id===this.lmvzActiveNav;if(n)e=t.textContent||t.id;t.setAttribute("aria-expanded",n?"true":"false")}));this.secondaryNav.setAttribute("aria-label",`Untermenü für ${e}`)}delegateFocus(){const t=this.primaryMenuitems[0];if(t){t.focus()}}render(){return e(n,{key:"58934683ff442801eb34f025ac809631f93a27e8",onFocus:this.delegateFocus.bind(this)},e("div",{key:"35d3eadfabb70f83b313f946c8d31f9c223e8344",class:"brand"},e("slot",{key:"5ce98314d980d63e1c87f508d96119aca2e702a9",name:"brand"},e("lmvz-icon",{key:"b24e61a9071d81948d506a8c545e012d3f0e5dd2",id:"fallback-logo-lmvz",icon:"Logo",size:"inherit","aria-label":"Lehrmittelverlag Zürich"}))),e("nav",{key:"1d5cc9010ef90e6cebc8a7b054db595f35f9e040","aria-label":"Hauptnavigation"},e("div",{key:"488a1b1544242562b57d76169f1988d84c611de4",role:"menubar",class:"primary-menubar"},e("slot",{key:"59c6dd1442290931ed9a55f7bacc65ea4bb9ff6d",name:"nav-primary",ref:t=>this.primarySlot=t}),e("separator",{key:"2729f0e8b115614c50c4a16b6684a3bdb21856b8"}),e("div",{key:"6b5bed5951bad9173fefdc78039e71c4ccc120b2",role:"menu",id:"nav-secondary",class:"secondary-menubar",hidden:!this.lmvzActiveNav,ref:t=>this.secondaryNav=t},e("slot",{key:"02f5a13e8851372c1698e3f786a8757a0a09c32f",name:this.secondarySlotName,ref:t=>this.secondarySlot=t})))),e("div",{key:"53aafe8139bcea27d3039f64a48974cdb5aac5f9",class:"actions"},e("slot",{key:"f12ee19831073253e6ba8e251ba31ec403c21035",name:"actions"})))}static get watchers(){return{lmvzActiveNav:[{handleActiveNavChange:0}]}}};Za.style=Ya();const Xa=()=>`.sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));display:inline-block;line-height:0;svg{display:block}svg>path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));height:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))}}[size='sm'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem));height:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem))}}[size='md'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem));height:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem))}}[size='lg'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem));height:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem))}}[size='inherit'].sc-lmvz-icon-h{svg{width:inherit;height:inherit}}[weight='light'].sc-lmvz-icon-h{svg>path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg>path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg>path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg>path{stroke-width:2;fill:var(--lmvz-icon-color)}}`;const Ga=class extends Ha{intersectionObserver;get el(){return r(this)}icon;weight="medium";size="md";iconData;visible=false;ariaLabel;get ariaHidden(){return!this.ariaLabel}constructor(e){super();t(this,e);this.addController(new Wa(this))}connectedCallback(){this.waitUntilVisible((()=>{this.visible=true;this.loadIconPathData()}))}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async loadIconPathData(){const{icon:t,visible:e}=this;if(!t||!e){return}this.iconData=await qe(gn(this.icon).pipe(Te((e=>Ue(`Error loading icon "${t}":`,e.message,e.cause,e.stack))),Ie((()=>jt(yn())))))}render(){return e(n,{key:"50d0f96ec5085a47ca7783e5232dfb503fa32d29",role:"img","aria-hidden":`${this.ariaHidden}`,innerHTML:this.iconData})}waitUntilVisible(t,e=50){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((e=>{e.some((e=>{if(e.isIntersecting){this.intersectionObserver.disconnect();this.intersectionObserver=null;t();return true}return false}))}),{rootMargin:`${e}px`});this.intersectionObserver.observe(this.el)}static get assetsDirs(){return["../../assets/icons"]}static get watchers(){return{icon:[{loadIconPathData:0}]}}};Ga.style=Xa();const Ja=()=>`@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); } .helper-text.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; } .error-message.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; }`;let tc=0;const ec=class extends Ha{get el(){return r(this)}lmvzInput;internals;nativeInputElement;inputId=`lmvz-input-${tc++}`;initialValue="";nativeError=false;errorFromProp=false;get helperId(){return this.helperText?`${this.inputId}-helper`:undefined}get showErrorMessage(){return this.error&&Boolean(this.errorMessage)}get errorId(){return`${this.inputId}-error`}get describedBy(){const t=[];if(this.helperId)t.push(this.helperId);if(this.showErrorMessage)t.push(this.errorId);return t.length>0?t.join(" "):undefined}value;label;helperText;placeholder;disabled=false;readonly=false;required=false;name;type="text";errorMessage;autocomplete;inputmode;autocorrect;autocapitalize;spellcheck;autofocus=false;minlength;maxlength;pattern;min;max;step;form;get error(){return this.errorFromProp||this.nativeError}set error(t){this.errorFromProp=t}async setValue(t){const e=this.nativeInputElement;this.value=e.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?.()??false}async reportValidity(){return this.nativeInputElement?.reportValidity?.()??false}async getInputElement(){if(!this.nativeInputElement){await new Promise((t=>Ia(this.el,t)))}return Promise.resolve(this.nativeInputElement)}constructor(e){super();t(this,e);this.lmvzInput=i(this,"lmvzInput");if(e.$hostElement$["s-ei"]){this.internals=e.$hostElement$["s-ei"]}else{this.internals=e.$hostElement$.attachInternals();e.$hostElement$["s-ei"]=this.internals}this.addController(new Wa(this,{reValidateOnPropChanges:true}))}componentWillLoad(){this.initialValue=this.value}formAssociatedCallback(t){if(!t)return;this.internals.setFormValue?.(this.value)}formResetCallback(){this.internals.setValidity({});this.setValue(this.initialValue)}formStateRestoreCallback(t){this.setValue(t)}handleValueChange(t){if(!this.nativeInputElement)return;const e=this.nativeInputElement.value===t;if(e)return;this.setValue(t)}handleDisabledChange(t){if(t&&this.nativeInputElement){this.nativeInputElement.blur()}}handleInput=t=>{const e=t.target;this.setValue(e.value)};handleChange=t=>{const e=t.target??this.nativeInputElement;this.updateNativeError(e)};handleFocus=()=>{};handleBlur=t=>{const e=t.target;e.reportValidity?.()};updateNativeError(t){const e=t??this.nativeInputElement;if(!e)return;this.nativeError=!(e.checkValidity?.()??true)}render(){const t=Boolean(this.value);const n=t||Boolean(this.placeholder);return e("div",{key:"402189a211eec970a9f5b8fcc551c6c3508bec05",class:Ba("input-container",{"interaction-filled":t})},e("div",{key:"1cbe6011f14774e1226406ef4fe301fd94338444",class:"input-wrapper"},e("slot",{key:"ea0f30124315c88e9721bb4457126bd6cf18110a",name:"before-input"}),e("div",{key:"f630b5f3a33a961f94b5a782b0ce6b4d49d1958c",class:"label-input-group"},e("label",{key:"dbb3fe066ebf93f7fcbe6973a1e37685d7206888",htmlFor:this.inputId,class:Ba({floating:n})},this.label,this.required&&e("span",{key:"7c1a2458b66becb45c730bfe3ff0c570293f702f",class:"required-indicator","aria-hidden":"true"}," ","*")),e("input",{key:"14b14457e200d20faf9053848662743dfe1cf417",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})),e("slot",{key:"4b530738ff7404eb1bcecc10a0388570e2243cf3",name:"after-input"})),this.helperText&&e("div",{key:"f1a287047e9b4d58aa90af157d50b3d564555e9b",id:this.helperId,class:"helper-text"},this.helperText),this.showErrorMessage&&e("div",{key:"2a25c4a88a63363cdd814f1d4fead5e8a238621b",id:this.errorId,class:"error-message",role:"alert"},this.errorMessage))}static get formAssociated(){return true}static get watchers(){return{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}}};ec.style=Ja();const nc=()=>`@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-menuitem-h { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); border-radius: var(--lmvz-semantic-border-radius-lg, 14px); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); padding: var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)) var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); cursor: pointer; --lmvz-menuitem-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); background: var(--lmvz-menuitem-background); color: var(--lmvz-menuitem-color); } .sc-lmvz-menuitem-h:hover { --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } .sc-lmvz-menuitem-h:active { --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } .sc-lmvz-menuitem-h:focus-visible { z-index: 1; } [aria-expanded='true'].sc-lmvz-menuitem-h { --lmvz-menuitem-background: var(--lmvz-semantic-color-status-selected, #f1f9fe); --lmvz-menuitem-color: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); }`;const sc=class extends Ha{get el(){return r(this)}get role(){return"menuitem"}get ti(){return 0}lmvzActivation;constructor(e){super();t(this,e);this.lmvzActivation=i(this,"lmvzActivation");this.addController(new Wa(this));this.addController(new Ua(this))}render(){return e(n,{key:"44399be11122af25d05e5b3b5f05dd90a89fddc4"},e("slot",{key:"2809f9e89a0c38af4d3f1f17ad78397487370134"}))}};sc.style=nc();export{Ca as H,$a as L,Za as a,Ga as b,ec as c,sc as d,zn as g};
7
+ //# sourceMappingURL=p-DANVVVBd.js.map