@lmvz-ds/components 0.12.3-alpha.4 → 0.12.4-alpha.2

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 (139) hide show
  1. package/dist/cjs/{Effect-BIlTHtLK.js → Effect-CNhHt4Xb.js} +615 -885
  2. package/dist/cjs/MutableQueue-Bk9tBfaK.js +462 -0
  3. package/dist/cjs/{aria-validation-controller-B7unOPxT.js → aria-validation-controller-B3hMkau3.js} +157 -156
  4. package/dist/cjs/assets-v1E2_ZyV.js +63 -0
  5. package/dist/cjs/{icons-BFM1yQ_r.js → icons-BoKNWYem.js} +21 -74
  6. package/dist/cjs/index.cjs.js +4 -2
  7. package/dist/cjs/lmvz-button.cjs.entry.js +3 -2
  8. package/dist/cjs/lmvz-card.cjs.entry.js +7 -2
  9. package/dist/cjs/lmvz-header.cjs.entry.js +3 -2
  10. package/dist/cjs/lmvz-icon.cjs.entry.js +5 -3
  11. package/dist/cjs/lmvz-input.cjs.entry.js +3 -2
  12. package/dist/cjs/lmvz-menuitem.cjs.entry.js +3 -2
  13. package/dist/collection/components/lmvz-card/lmvz-card.js +8 -3
  14. package/dist/collection/components/lmvz-icon/icons.js +2 -3
  15. package/dist/collection/utils/assets.js +10 -0
  16. package/dist/components/index.js +1 -1
  17. package/dist/components/lmvz-button.js +1 -1
  18. package/dist/components/lmvz-card.js +1 -1
  19. package/dist/components/lmvz-header.js +1 -1
  20. package/dist/components/lmvz-icon.js +1 -1
  21. package/dist/components/lmvz-input.js +1 -1
  22. package/dist/components/lmvz-menuitem.js +1 -1
  23. package/dist/components/p-3I3wZmp8.js +1 -0
  24. package/dist/components/p-BAFsMKYu.js +1 -0
  25. package/dist/components/p-CdofjRtQ.js +1 -0
  26. package/dist/components/p-Cn8p9itA.js +1 -0
  27. package/dist/esm/{Effect-D9S7OTyY.js → Effect-BhQLGXPs.js} +568 -829
  28. package/dist/esm/MutableQueue-CNlEFklh.js +431 -0
  29. package/dist/esm/{aria-validation-controller-C7nQzCCq.js → aria-validation-controller-iA4YWFG-.js} +2 -1
  30. package/dist/esm/assets-Da86GVBR.js +60 -0
  31. package/dist/esm/{icons-BFqdzPxR.js → icons-Vi_eRDu3.js} +4 -57
  32. package/dist/esm/index.js +4 -2
  33. package/dist/esm/lmvz-button.entry.js +3 -2
  34. package/dist/esm/lmvz-card.entry.js +8 -3
  35. package/dist/esm/lmvz-header.entry.js +3 -2
  36. package/dist/esm/lmvz-icon.entry.js +5 -3
  37. package/dist/esm/lmvz-input.entry.js +3 -2
  38. package/dist/esm/lmvz-menuitem.entry.js +3 -2
  39. package/dist/lmvz-components/index.esm.js +1 -1
  40. package/dist/lmvz-components/lmvz-components.esm.js +1 -1
  41. package/dist/lmvz-components/p-0027e9d9.entry.js +1 -0
  42. package/dist/lmvz-components/p-1e9e0a1c.entry.js +1 -0
  43. package/dist/lmvz-components/p-274c36df.entry.js +1 -0
  44. package/dist/lmvz-components/p-4b70fe08.entry.js +1 -0
  45. package/dist/lmvz-components/p-68001ab7.entry.js +1 -0
  46. package/dist/lmvz-components/p-77e26e71.entry.js +1 -0
  47. package/dist/lmvz-components/p-BhQLGXPs.js +1 -0
  48. package/dist/lmvz-components/p-CXWyvf0D.js +1 -0
  49. package/dist/lmvz-components/p-D7I-Bc5i.js +1 -0
  50. package/dist/lmvz-components/p-DeAzFd-K.js +1 -0
  51. package/dist/lmvz-components/p-t67OMMtz.js +1 -0
  52. package/dist/manifest.json +1 -1
  53. package/dist/types/components/lmvz-card/lmvz-card.d.ts +1 -0
  54. package/dist/types/utils/{url.d.ts → assets.d.ts} +1 -1
  55. package/hydrate/index.js +490 -7
  56. package/hydrate/index.mjs +490 -7
  57. package/package.json +5 -5
  58. package/dist/collection/utils/url.js +0 -7
  59. package/dist/components/p-BFwzIh71.js +0 -1
  60. package/dist/components/p-CfWkZ_yJ.js +0 -1
  61. package/dist/lmvz-components/assets/LMVZ_logo_175.svg +0 -1
  62. package/dist/lmvz-components/assets/card-placeholder.svg +0 -4
  63. package/dist/lmvz-components/assets/fonts/Router-Bold.woff +0 -0
  64. package/dist/lmvz-components/assets/fonts/Router-Book.woff +0 -0
  65. package/dist/lmvz-components/assets/fonts/Router-Medium.woff +0 -0
  66. package/dist/lmvz-components/assets/icons/Logo.svg +0 -10
  67. package/dist/lmvz-components/assets/icons/actions.svg +0 -5
  68. package/dist/lmvz-components/assets/icons/adduser.svg +0 -3
  69. package/dist/lmvz-components/assets/icons/alert.svg +0 -3
  70. package/dist/lmvz-components/assets/icons/apple.svg +0 -3
  71. package/dist/lmvz-components/assets/icons/arrow-down.svg +0 -3
  72. package/dist/lmvz-components/assets/icons/arrow-left.svg +0 -3
  73. package/dist/lmvz-components/assets/icons/arrow-right.svg +0 -3
  74. package/dist/lmvz-components/assets/icons/arrow-up.svg +0 -3
  75. package/dist/lmvz-components/assets/icons/book.svg +0 -3
  76. package/dist/lmvz-components/assets/icons/bookmark.svg +0 -3
  77. package/dist/lmvz-components/assets/icons/checkmark.svg +0 -3
  78. package/dist/lmvz-components/assets/icons/chevron-down.svg +0 -3
  79. package/dist/lmvz-components/assets/icons/chevron-left.svg +0 -3
  80. package/dist/lmvz-components/assets/icons/chevron-right.svg +0 -3
  81. package/dist/lmvz-components/assets/icons/chevron-up.svg +0 -3
  82. package/dist/lmvz-components/assets/icons/close-l.svg +0 -3
  83. package/dist/lmvz-components/assets/icons/close-sm.svg +0 -3
  84. package/dist/lmvz-components/assets/icons/cog.svg +0 -4
  85. package/dist/lmvz-components/assets/icons/computer.svg +0 -3
  86. package/dist/lmvz-components/assets/icons/dashboard.svg +0 -6
  87. package/dist/lmvz-components/assets/icons/delete.svg +0 -3
  88. package/dist/lmvz-components/assets/icons/download.svg +0 -3
  89. package/dist/lmvz-components/assets/icons/edit.svg +0 -3
  90. package/dist/lmvz-components/assets/icons/external.svg +0 -3
  91. package/dist/lmvz-components/assets/icons/facebook.svg +0 -3
  92. package/dist/lmvz-components/assets/icons/favorite.svg +0 -3
  93. package/dist/lmvz-components/assets/icons/filter.svg +0 -3
  94. package/dist/lmvz-components/assets/icons/group.svg +0 -3
  95. package/dist/lmvz-components/assets/icons/hide.svg +0 -3
  96. package/dist/lmvz-components/assets/icons/home.svg +0 -3
  97. package/dist/lmvz-components/assets/icons/info.svg +0 -3
  98. package/dist/lmvz-components/assets/icons/instagram.svg +0 -3
  99. package/dist/lmvz-components/assets/icons/letter.svg +0 -3
  100. package/dist/lmvz-components/assets/icons/linkedin.svg +0 -5
  101. package/dist/lmvz-components/assets/icons/logout.svg +0 -3
  102. package/dist/lmvz-components/assets/icons/map.svg +0 -3
  103. package/dist/lmvz-components/assets/icons/minus.svg +0 -3
  104. package/dist/lmvz-components/assets/icons/navigation.svg +0 -3
  105. package/dist/lmvz-components/assets/icons/plus.svg +0 -3
  106. package/dist/lmvz-components/assets/icons/qr-scan.svg +0 -3
  107. package/dist/lmvz-components/assets/icons/question.svg +0 -10
  108. package/dist/lmvz-components/assets/icons/reader.svg +0 -3
  109. package/dist/lmvz-components/assets/icons/reset.svg +0 -3
  110. package/dist/lmvz-components/assets/icons/school.svg +0 -3
  111. package/dist/lmvz-components/assets/icons/search.svg +0 -3
  112. package/dist/lmvz-components/assets/icons/send.svg +0 -3
  113. package/dist/lmvz-components/assets/icons/settings.svg +0 -3
  114. package/dist/lmvz-components/assets/icons/share.svg +0 -10
  115. package/dist/lmvz-components/assets/icons/shopping-cart.svg +0 -3
  116. package/dist/lmvz-components/assets/icons/show.svg +0 -3
  117. package/dist/lmvz-components/assets/icons/snapchat.svg +0 -3
  118. package/dist/lmvz-components/assets/icons/sort.svg +0 -3
  119. package/dist/lmvz-components/assets/icons/speech-bubble.svg +0 -3
  120. package/dist/lmvz-components/assets/icons/star.svg +0 -3
  121. package/dist/lmvz-components/assets/icons/student.svg +0 -3
  122. package/dist/lmvz-components/assets/icons/upload.svg +0 -3
  123. package/dist/lmvz-components/assets/icons/user.svg +0 -3
  124. package/dist/lmvz-components/assets/icons/warn-circle.svg +0 -3
  125. package/dist/lmvz-components/assets/icons/warn-triangle.svg +0 -3
  126. package/dist/lmvz-components/assets/icons/whatsapp.svg +0 -4
  127. package/dist/lmvz-components/assets/icons/world.svg +0 -10
  128. package/dist/lmvz-components/assets/icons/x.svg +0 -3
  129. package/dist/lmvz-components/assets/icons/youtube.svg +0 -3
  130. package/dist/lmvz-components/assets/zukunftslinie.svg +0 -3
  131. package/dist/lmvz-components/p-6d71c048.entry.js +0 -1
  132. package/dist/lmvz-components/p-CDfcYSci.js +0 -1
  133. package/dist/lmvz-components/p-D9S7OTyY.js +0 -1
  134. package/dist/lmvz-components/p-DlrjrWsu.js +0 -1
  135. package/dist/lmvz-components/p-a4615e4b.entry.js +0 -1
  136. package/dist/lmvz-components/p-a8c88454.entry.js +0 -1
  137. package/dist/lmvz-components/p-e63e239a.entry.js +0 -1
  138. package/dist/lmvz-components/p-f956a5e7.entry.js +0 -1
  139. package/dist/lmvz-components/p-fefd2fe4.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as e,h as a,d as t,t as r}from"./p-BaPwpeMs.js";import{g as n,c as s}from"./p-B3JVFwO1.js";import{R as i,A as l}from"./p-BFwzIh71.js";import{d as o}from"./p-CfWkZ_yJ.js";class c{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=n(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 i=t[n];return s(i)?i:this.getNextFocusableElement(i,a)}}const d=e(class extends i{get el(){return this}primarySlot;secondarySlot;secondaryNav;keyboardNavigationController=new c(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(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.addController(new l(this,{reValidateOnPropChanges:!0})),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 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.")}handleSecondaryNavChange(){this.secondaryMenuitems.length&&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 a(t,{key:"58934683ff442801eb34f025ac809631f93a27e8",onFocus:this.delegateFocus.bind(this)},a("div",{key:"35d3eadfabb70f83b313f946c8d31f9c223e8344",class:"brand"},a("slot",{key:"5ce98314d980d63e1c87f508d96119aca2e702a9",name:"brand"},a("lmvz-icon",{key:"b24e61a9071d81948d506a8c545e012d3f0e5dd2",id:"fallback-logo-lmvz",icon:"Logo",size:"inherit","aria-label":"Lehrmittelverlag Zürich"}))),a("nav",{key:"1d5cc9010ef90e6cebc8a7b054db595f35f9e040","aria-label":"Hauptnavigation"},a("div",{key:"488a1b1544242562b57d76169f1988d84c611de4",role:"menubar",class:"primary-menubar"},a("slot",{key:"59c6dd1442290931ed9a55f7bacc65ea4bb9ff6d",name:"nav-primary",ref:e=>this.primarySlot=e}),a("separator",{key:"2729f0e8b115614c50c4a16b6684a3bdb21856b8"}),a("div",{key:"6b5bed5951bad9173fefdc78039e71c4ccc120b2",role:"menu",id:"nav-secondary",class:"secondary-menubar",hidden:!this.lmvzActiveNav,ref:e=>this.secondaryNav=e},a("slot",{key:"02f5a13e8851372c1698e3f786a8757a0a09c32f",name:this.secondarySlotName,ref:e=>this.secondarySlot=e})))),a("div",{key:"53aafe8139bcea27d3039f64a48974cdb5aac5f9",class:"actions"},a("slot",{key:"f12ee19831073253e6ba8e251ba31ec403c21035",name:"actions"})))}static get watchers(){return{lmvzActiveNav:[{handleActiveNavChange:0}]}}static get style(){return":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)}}"}},[769,"lmvz-header",{role:[2561],lmvzActiveNav:[1,"lmvz-active-nav"]},void 0,{lmvzActiveNav:[{handleActiveNavChange:0}]}]),m=d,h=function(){"undefined"!=typeof customElements&&["lmvz-header","lmvz-icon"].forEach((e=>{switch(e){case"lmvz-header":customElements.get(r(e))||customElements.define(r(e),d);break;case"lmvz-icon":customElements.get(r(e))||o()}}))};export{m as LmvzHeader,h as defineCustomElement}
1
+ import{p as e,h as a,d as t,t as r}from"./p-BaPwpeMs.js";import{g as n,c as s}from"./p-B3JVFwO1.js";import{R as i,A as l}from"./p-3I3wZmp8.js";import{d as o}from"./p-BAFsMKYu.js";class c{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=n(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 i=t[n];return s(i)?i:this.getNextFocusableElement(i,a)}}const d=e(class extends i{get el(){return this}primarySlot;secondarySlot;secondaryNav;keyboardNavigationController=new c(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(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.addController(new l(this,{reValidateOnPropChanges:!0})),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 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.")}handleSecondaryNavChange(){this.secondaryMenuitems.length&&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 a(t,{key:"58934683ff442801eb34f025ac809631f93a27e8",onFocus:this.delegateFocus.bind(this)},a("div",{key:"35d3eadfabb70f83b313f946c8d31f9c223e8344",class:"brand"},a("slot",{key:"5ce98314d980d63e1c87f508d96119aca2e702a9",name:"brand"},a("lmvz-icon",{key:"b24e61a9071d81948d506a8c545e012d3f0e5dd2",id:"fallback-logo-lmvz",icon:"Logo",size:"inherit","aria-label":"Lehrmittelverlag Zürich"}))),a("nav",{key:"1d5cc9010ef90e6cebc8a7b054db595f35f9e040","aria-label":"Hauptnavigation"},a("div",{key:"488a1b1544242562b57d76169f1988d84c611de4",role:"menubar",class:"primary-menubar"},a("slot",{key:"59c6dd1442290931ed9a55f7bacc65ea4bb9ff6d",name:"nav-primary",ref:e=>this.primarySlot=e}),a("separator",{key:"2729f0e8b115614c50c4a16b6684a3bdb21856b8"}),a("div",{key:"6b5bed5951bad9173fefdc78039e71c4ccc120b2",role:"menu",id:"nav-secondary",class:"secondary-menubar",hidden:!this.lmvzActiveNav,ref:e=>this.secondaryNav=e},a("slot",{key:"02f5a13e8851372c1698e3f786a8757a0a09c32f",name:this.secondarySlotName,ref:e=>this.secondarySlot=e})))),a("div",{key:"53aafe8139bcea27d3039f64a48974cdb5aac5f9",class:"actions"},a("slot",{key:"f12ee19831073253e6ba8e251ba31ec403c21035",name:"actions"})))}static get watchers(){return{lmvzActiveNav:[{handleActiveNavChange:0}]}}static get style(){return":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)}}"}},[769,"lmvz-header",{role:[2561],lmvzActiveNav:[1,"lmvz-active-nav"]},void 0,{lmvzActiveNav:[{handleActiveNavChange:0}]}]),m=d,h=function(){"undefined"!=typeof customElements&&["lmvz-header","lmvz-icon"].forEach((e=>{switch(e){case"lmvz-header":customElements.get(r(e))||customElements.define(r(e),d);break;case"lmvz-icon":customElements.get(r(e))||o()}}))};export{m as LmvzHeader,h as defineCustomElement}
@@ -1 +1 @@
1
- import{L as o,d as s}from"./p-CfWkZ_yJ.js";const p=o,r=s;export{p as LmvzIcon,r as defineCustomElement}
1
+ import{L as s,d as o}from"./p-BAFsMKYu.js";const p=s,r=o;export{p as LmvzIcon,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,c as e,h as r,t as i}from"./p-BaPwpeMs.js";import{c as o}from"./p-DMLRPGid.js";import{a}from"./p-B3JVFwO1.js";import{R as s,A as n}from"./p-BFwzIh71.js";let l=0;const c=t(class extends s{get el(){return 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&&!!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=>a(this.el,t))),Promise.resolve(this.nativeInputElement)}constructor(t){super(!1),!1!==t&&this.__registerHost(),this.lmvzInput=e(this,"lmvzInput"),this.internals=this.attachInternals(),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=!!this.value,e=t||!!this.placeholder;return r("div",{key:"402189a211eec970a9f5b8fcc551c6c3508bec05",class:o("input-container",{"interaction-filled":t})},r("div",{key:"1cbe6011f14774e1226406ef4fe301fd94338444",class:"input-wrapper"},r("slot",{key:"ea0f30124315c88e9721bb4457126bd6cf18110a",name:"before-input"}),r("div",{key:"f630b5f3a33a961f94b5a782b0ce6b4d49d1958c",class:"label-input-group"},r("label",{key:"dbb3fe066ebf93f7fcbe6973a1e37685d7206888",htmlFor:this.inputId,class:o({floating:e})},this.label,this.required&&r("span",{key:"7c1a2458b66becb45c730bfe3ff0c570293f702f",class:"required-indicator","aria-hidden":"true"}," ","*")),r("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})),r("slot",{key:"4b530738ff7404eb1bcecc10a0388570e2243cf3",name:"after-input"})),this.helperText&&r("div",{key:"f1a287047e9b4d58aa90af157d50b3d564555e9b",id:this.helperId,class:"helper-text"},this.helperText),this.showErrorMessage&&r("div",{key:"2a25c4a88a63363cdd814f1d4fead5e8a238621b",id:this.errorId,class:"error-message",role:"alert"},this.errorMessage))}static get formAssociated(){return!0}static get watchers(){return{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return"@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; }"}},[838,"lmvz-input",{value:[1025],label:[1],helperText:[1,"helper-text"],placeholder:[1],disabled:[516],readonly:[516],required:[516],name:[1],type:[1],errorMessage:[1,"error-message"],autocomplete:[1],inputmode:[1],autocorrect:[1],autocapitalize:[1],spellcheck:[4],autofocus:[4],minlength:[2],maxlength:[2],pattern:[1],min:[8],max:[8],step:[8],form:[1],error:[6660],nativeError:[32],setValue:[64],focusInput:[64],blurInput:[64],select:[64],checkValidity:[64],reportValidity:[64],getInputElement:[64]},void 0,{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}]),p=c,u=function(){"undefined"!=typeof customElements&&["lmvz-input"].forEach((t=>{"lmvz-input"===t&&(customElements.get(i(t))||customElements.define(i(t),c))}))};export{p as LmvzInput,u as defineCustomElement}
1
+ import{p as t,c as e,h as r,t as i}from"./p-BaPwpeMs.js";import{c as o}from"./p-DMLRPGid.js";import{a}from"./p-B3JVFwO1.js";import{R as s,A as n}from"./p-3I3wZmp8.js";let l=0;const c=t(class extends s{get el(){return 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&&!!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=>a(this.el,t))),Promise.resolve(this.nativeInputElement)}constructor(t){super(!1),!1!==t&&this.__registerHost(),this.lmvzInput=e(this,"lmvzInput"),this.internals=this.attachInternals(),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=!!this.value,e=t||!!this.placeholder;return r("div",{key:"402189a211eec970a9f5b8fcc551c6c3508bec05",class:o("input-container",{"interaction-filled":t})},r("div",{key:"1cbe6011f14774e1226406ef4fe301fd94338444",class:"input-wrapper"},r("slot",{key:"ea0f30124315c88e9721bb4457126bd6cf18110a",name:"before-input"}),r("div",{key:"f630b5f3a33a961f94b5a782b0ce6b4d49d1958c",class:"label-input-group"},r("label",{key:"dbb3fe066ebf93f7fcbe6973a1e37685d7206888",htmlFor:this.inputId,class:o({floating:e})},this.label,this.required&&r("span",{key:"7c1a2458b66becb45c730bfe3ff0c570293f702f",class:"required-indicator","aria-hidden":"true"}," ","*")),r("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})),r("slot",{key:"4b530738ff7404eb1bcecc10a0388570e2243cf3",name:"after-input"})),this.helperText&&r("div",{key:"f1a287047e9b4d58aa90af157d50b3d564555e9b",id:this.helperId,class:"helper-text"},this.helperText),this.showErrorMessage&&r("div",{key:"2a25c4a88a63363cdd814f1d4fead5e8a238621b",id:this.errorId,class:"error-message",role:"alert"},this.errorMessage))}static get formAssociated(){return!0}static get watchers(){return{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return"@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; }"}},[838,"lmvz-input",{value:[1025],label:[1],helperText:[1,"helper-text"],placeholder:[1],disabled:[516],readonly:[516],required:[516],name:[1],type:[1],errorMessage:[1,"error-message"],autocomplete:[1],inputmode:[1],autocorrect:[1],autocapitalize:[1],spellcheck:[4],autofocus:[4],minlength:[2],maxlength:[2],pattern:[1],min:[8],max:[8],step:[8],form:[1],error:[6660],nativeError:[32],setValue:[64],focusInput:[64],blurInput:[64],select:[64],checkValidity:[64],reportValidity:[64],getInputElement:[64]},void 0,{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}]),p=c,u=function(){"undefined"!=typeof customElements&&["lmvz-input"].forEach((t=>{"lmvz-input"===t&&(customElements.get(i(t))||customElements.define(i(t),c))}))};export{p as LmvzInput,u as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,c as t,h as m,d as r,t as o}from"./p-BaPwpeMs.js";import{E as n}from"./p-CN0JX9-m.js";import{R as a,A as l}from"./p-BFwzIh71.js";const i=e(class extends a{get el(){return this}get role(){return"menuitem"}get ti(){return 0}lmvzActivation;constructor(e){super(!1),!1!==e&&this.__registerHost(),this.lmvzActivation=t(this,"lmvzActivation"),this.addController(new l(this)),this.addController(new n(this))}render(){return m(r,{key:"44399be11122af25d05e5b3b5f05dd90a89fddc4"},m("slot",{key:"2809f9e89a0c38af4d3f1f17ad78397487370134"}))}static get style(){return"@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); }"}},[774,"lmvz-menuitem",{role:[2561],ti:[2562,"tabindex"]}]),s=i,c=function(){"undefined"!=typeof customElements&&["lmvz-menuitem"].forEach((e=>{"lmvz-menuitem"===e&&(customElements.get(o(e))||customElements.define(o(e),i))}))};export{s as LmvzMenuitem,c as defineCustomElement}
1
+ import{p as e,c as t,h as m,d as r,t as o}from"./p-BaPwpeMs.js";import{E as n}from"./p-CN0JX9-m.js";import{R as a,A as l}from"./p-3I3wZmp8.js";const i=e(class extends a{get el(){return this}get role(){return"menuitem"}get ti(){return 0}lmvzActivation;constructor(e){super(!1),!1!==e&&this.__registerHost(),this.lmvzActivation=t(this,"lmvzActivation"),this.addController(new l(this)),this.addController(new n(this))}render(){return m(r,{key:"44399be11122af25d05e5b3b5f05dd90a89fddc4"},m("slot",{key:"2809f9e89a0c38af4d3f1f17ad78397487370134"}))}static get style(){return"@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); }"}},[774,"lmvz-menuitem",{role:[2561],ti:[2562,"tabindex"]}]),s=i,c=function(){"undefined"!=typeof customElements&&["lmvz-menuitem"].forEach((e=>{"lmvz-menuitem"===e&&(customElements.get(o(e))||customElements.define(o(e),i))}))};export{s as LmvzMenuitem,c as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{H as t,B as s}from"./p-BaPwpeMs.js";import{a6 as e,a7 as i,a8 as n,a9 as r,aa as o,ab as a,ac as c,ad as u,ae as h,af as l,ag as d,ah as f,ai as b,aj as v,ak as m,al as p,am as S,an as y,ao as w,ap as g,aq as _,ar as F,as as E,at as O,au as C,av as k,aw as D,ax as x,ay as j,az as R,aA as P,aB as A,aC as I,aD as L,aE as z,aF as N,aG as B,aH as Q,aI as U,aJ as M,aK as W,aL as q,aM as T,aN as V,aO as H,aP as J,aQ as K,J as G,B as Z,s as X,f as Y,H as $,aR as tt,p as st,aS as et,aT as it,aU as nt,u as rt,x as ot,aV as at,aW as ct,G as ut,Q as ht,aX as lt,U as dt,aY as ft,t as bt,aZ as vt,a_ as mt,a$ as pt,b0 as St,T as yt,b1 as wt,b2 as gt,b3 as _t,b4 as Ft,b5 as Et,b6 as Ot,b7 as Ct,k as kt,O as Dt,b8 as xt,i as jt,b9 as Rt,ba as Pt,bb as At,bc as It,bd as Lt,be as zt,bf as Nt,bg as Bt,bh as Qt,bi as Ut,bj as Mt,bk as Wt,bl as qt,bm as Tt,bn as Vt,bo as Ht,bp as Jt,bq as Kt,a3 as Gt,w as Zt,br as Xt,bs as Yt,bt as $t,bu as ts,bv as ss,bw as es,bx as is,by as ns,bz as rs,bA as os,bB as as,bC as cs,bD as us,bE as hs,bF as ls,bG as ds,bH as fs,bI as bs,bJ as vs,l as ms,b as ps,bK as Ss,bL as ys,bM as ws,bN as gs,bO as _s,X as Fs,bP as Es,bQ as Os,bR as Cs,bS as ks,bT as Ds,bU as xs,bV as js,bW as Rs,bX as Ps,bY as As,bZ as Is,b_ as Ls,m as zs,b$ as Ns,c0 as Bs,P as Qs,c1 as Us,c2 as Ms,c3 as Ws,c4 as qs,c5 as Ts,c6 as Vs,c7 as Hs,c8 as Js,c9 as Ks,ca as Gs,cb as Zs,a2 as Xs,cc as Ys,cd as $s,ce as te,cf as se,cg as ee}from"./p-CdofjRtQ.js";const ie=e,ne=i,re=c,oe=r,ae=a,ce=u,ue=n,he=o,le=h,de=l,fe=p,be=y,ve=v,me=f,pe=w,Se=d,ye=b,we=S,ge=g,_e=m,Fe=Symbol.for("effect/MutableList"),Ee={[Fe]:Fe,[Symbol.iterator](){let t=!1,s=this.head;return{next(){if(t)return this.return();if(null==s)return t=!0,this.return();const e=s.value;return s=s.next,{done:t,value:e}},return:s=>(t||(t=!0),{done:!0,value:s})}},toString(){return C(this.toJSON())},toJSON(){return{_id:"MutableList",values:Array.from(this).map(O)}},[E](){return this.toJSON()},pipe(){return F(this,arguments)}},Oe=t=>0===Ce(t),Ce=t=>t._length,ke=_(2,((t,s)=>{const e=(t=>({value:t,removed:!1,prev:void 0,next:void 0}))(s);return void 0===t.head&&(t.head=e),void 0===t.tail||(t.tail.next=e,e.prev=t.tail),t.tail=e,t._length+=1,t})),De=Symbol.for("effect/MutableQueue"),xe=Symbol.for("effect/mutable/MutableQueue/Empty"),je={[De]:De,[Symbol.iterator](){return Array.from(this.queue)[Symbol.iterator]()},toString(){return C(this.toJSON())},toJSON(){return{_id:"MutableQueue",values:Array.from(this).map(O)}},[E](){return this.toJSON()},pipe(){return F(this,arguments)}},Re=t=>{const s=Object.create(je);return s.queue=(()=>{const t=Object.create(Ee);return t.head=void 0,t.tail=void 0,t._length=0,t})(),s.capacity=t,s},Pe=()=>Re(void 0),Ae=t=>Ce(t.queue),Ie=t=>Oe(t.queue),Le=_(2,((t,s)=>{const e=Ce(t.queue);return(void 0===t.capacity||e!==t.capacity)&&(ke(s)(t.queue),!0)})),ze=_(2,((t,s)=>{const e=s[Symbol.iterator]();let i,n=D(),r=!0;for(;r&&(i=e.next())&&!i.done;)r=Le(i.value)(t);for(;null!=i&&!i.done;)n=k(i.value)(n),i=e.next();return x(n)})),Ne=_(2,((t,s)=>Oe(t.queue)?s:(t=>{const s=t.head;if(void 0!==s)return((t,s)=>{s.removed||(s.removed=!0,void 0!==s.prev&&void 0!==s.next?(s.prev.next=s.next,s.next.prev=s.prev):void 0!==s.prev?(t.tail=s.prev,s.prev.next=void 0):void 0!==s.next?(t.head=s.next,s.next.prev=void 0):(t.tail=void 0,t.head=void 0),t._length>0&&(t._length-=1))})(t,s),s.value})(t.queue))),Be=_(2,((t,s)=>{let e=D(),i=0;for(;i<s;){const s=Ne(xe)(t);if(s===xe)break;e=k(s)(e),i+=1}return x(e)})),Qe=j,Ue=P,Me=R,We=A,qe=L,Te=Q,Ve=U,He=M,Je=I,Ke=q,Ge=W,Ze=z,Xe=N,Ye=B,$e=H,ti=J,si=V,ei=K,ii=T,ni=Symbol.for("effect/QueueEnqueue"),ri=Symbol.for("effect/QueueDequeue"),oi=Symbol.for("effect/QueueStrategy"),ai=Symbol.for("effect/BackingQueue"),ci={_A:t=>t},ui={_A:t=>t},hi={_In:t=>t},li={_Out:t=>t};class di extends tt{queue;takers;shutdownHook;shutdownFlag;strategy;[ni]=hi;[ri]=li;constructor(t,s,e,i,n){super(),this.queue=t,this.takers=s,this.shutdownHook=e,this.shutdownFlag=i,this.strategy=n}pipe(){return F(this,arguments)}commit(){return this.take}capacity(){return this.queue.capacity()}get size(){return st((()=>et(this.unsafeSize(),(()=>it))))}unsafeSize(){return nt(this.shutdownFlag)?rt():ot(this.queue.length()-Ae(this.takers)+this.strategy.surplusSize())}get isEmpty(){return Y(this.size,(t=>t<=0))}get isFull(){return Y(this.size,(t=>t>=this.capacity()))}get shutdown(){return at(ct((t=>(G(this.shutdownFlag,ut(!0)),G(ft(Oi(this.takers),(s=>Ot(s,t.id())),!1,!1),dt(this.strategy.shutdown),lt(n(this.shutdownHook,void 0)),ht)))))}get isShutdown(){return X((()=>nt(this.shutdownFlag)))}get awaitShutdown(){return i(this.shutdownHook)}isActive(){return!nt(this.shutdownFlag)}unsafeOffer(t){if(nt(this.shutdownFlag))return!1;let s;if(0===this.queue.length()){const e=G(this.takers,Ne(xe));e!==xe?(Fi(e,t),s=!0):s=!1}else s=!1;if(s)return!0;const e=this.queue.offer(t);return Di(this.strategy,this.queue,this.takers),e}offer(t){return st((()=>{if(nt(this.shutdownFlag))return it;let s;if(0===this.queue.length()){const e=G(this.takers,Ne(xe));e!==xe?(Fi(e,t),s=!0):s=!1}else s=!1;if(s)return bt(!0);const e=this.queue.offer(t);return Di(this.strategy,this.queue,this.takers),e?bt(!0):this.strategy.handleSurplus([t],this.queue,this.takers,this.shutdownFlag)}))}offerAll(t){return st((()=>{if(nt(this.shutdownFlag))return it;const s=vt(t),e=0===this.queue.length()?vt(Ci(this.takers,s.length)):mt,[i,n]=G(s,pt(e.length));for(let t=0;t<e.length;t++)Fi(e[t],i[t]);if(0===n.length)return bt(!0);const r=this.queue.offerAll(n);return Di(this.strategy,this.queue,this.takers),St(r)?bt(!0):this.strategy.handleSurplus(r,this.queue,this.takers,this.shutdownFlag)}))}get take(){return ct((t=>{if(nt(this.shutdownFlag))return it;const s=this.queue.poll(xe);if(s!==xe)return this.strategy.unsafeOnQueueEmptySpace(this.queue,this.takers),bt(s);{const s=o(t.id());return G(st((()=>(G(this.takers,Le(s)),Di(this.strategy,this.queue,this.takers),nt(this.shutdownFlag)?it:i(s)))),yt((()=>X((()=>ki(this.takers,s))))))}}))}get takeAll(){return st((()=>nt(this.shutdownFlag)?it:X((()=>{const t=this.queue.pollUpTo(Number.POSITIVE_INFINITY);return this.strategy.unsafeOnQueueEmptySpace(this.queue,this.takers),wt(t)}))))}takeUpTo(t){return st((()=>nt(this.shutdownFlag)?it:X((()=>{const s=this.queue.pollUpTo(t);return this.strategy.unsafeOnQueueEmptySpace(this.queue,this.takers),wt(s)}))))}takeBetween(t,s){return st((()=>fi(this,t,s,D())))}}const fi=(t,s,e,i)=>e<s?bt(i):G(yi(t,e),Z((n=>{const r=s-n.length;return 1===r?G(Si(t),Y((t=>G(i,Ft(n),Et(t))))):r>1?G(Si(t),Z((s=>fi(t,r-1,e-n.length-1,G(i,Ft(n),Et(s)))))):bt(G(i,Ft(n)))}))),bi=(t,s)=>G(e(),Y((e=>((t,s,e,i,n)=>new di(t,s,e,i,n))(t,Pe(),e,$(!1),s))));class vi{mutable;[ai]=ui;constructor(t){this.mutable=t}poll(t){return Ne(this.mutable,t)}pollUpTo(t){return Be(this.mutable,t)}offerAll(t){return ze(this.mutable,t)}offer(t){return Le(this.mutable,t)}capacity(){return void 0===(t=this.mutable).capacity?1/0:t.capacity;var t}length(){return Ae(this.mutable)}}const mi=t=>new vi(t),pi=_(2,((t,s)=>t.offer(s))),Si=t=>t.take,yi=_(2,((t,s)=>t.takeUpTo(s))),wi=_(3,((t,s,e)=>t.takeBetween(s,e)));class gi{[oi]=ci;putters=Pe();surplusSize(){return Ae(this.putters)}onCompleteTakersWithEmptyQueue(t){for(;!Ie(this.putters)&&!Ie(t);){const s=Ne(t,void 0),e=Ne(this.putters,void 0);e[2]&&Fi(e[1],!0),Fi(s,e[0])}}get shutdown(){return G(kt,Z((t=>G(X((()=>Oi(this.putters))),Z((s=>ft(s,(([s,e,i])=>i?G(Ot(e,t),ht):Ct),!1,!1)))))))}handleSurplus(t,s,e,n){return ct((r=>{const a=o(r.id());return G(st((()=>(this.unsafeOffer(t,a),this.unsafeOnQueueEmptySpace(s,e),Di(this,s,e),nt(n)?it:i(a)))),yt((()=>X((()=>this.unsafeRemove(a))))))}))}unsafeOnQueueEmptySpace(t,s){let e=!0;for(;e&&(t.capacity()===Number.POSITIVE_INFINITY||t.length()<t.capacity());){const i=G(this.putters,Ne(xe));if(i===xe)e=!1;else{const e=t.offer(i[0]);e&&i[2]?Fi(i[1],!0):e||Ei(this.putters,G(Oi(this.putters),k(i))),Di(this,t,s)}}}unsafeOffer(t,s){const e=vt(t);for(let t=0;t<e.length;t++){const i=e[t];G(this.putters,Le(t===e.length-1?[i,s,!0]:[i,s,!1]))}}unsafeRemove(t){Ei(this.putters,G(Oi(this.putters),_t((([,s])=>s!==t))))}}class _i{[oi]=ci;surplusSize(){return 0}get shutdown(){return Ct}onCompleteTakersWithEmptyQueue(){}handleSurplus(t,s,e,i){return bt(!1)}unsafeOnQueueEmptySpace(t,s){}}const Fi=(t,s)=>gt(t,bt(s)),Ei=(t,s)=>G(t,ze(s)),Oi=t=>G(t,Be(Number.POSITIVE_INFINITY)),Ci=(t,s)=>G(t,Be(s)),ki=(t,s)=>{Ei(t,G(Oi(t),_t((t=>s!==t))))},Di=(t,s,e)=>{let i=!0;for(;i&&0!==s.length();){const n=G(e,Ne(xe));if(n!==xe){const r=s.poll(xe);r!==xe?(Fi(n,r),t.unsafeOnQueueEmptySpace(s,e)):Ei(e,G(Oi(e),k(n))),i=!0}else i=!1}i&&0===s.length()&&!Ie(e)&&t.onCompleteTakersWithEmptyQueue(e)},xi=t=>G(X((()=>Re(t))),Z((t=>bi(mi(t),new gi)))),ji=()=>G(X((()=>Pe())),Z((t=>bi(mi(t),new _i)))),Ri=t=>t.shutdown,Pi=pi,Ai=Si,Ii=wi,Li="Continue",zi=Symbol.for("effect/ChannelChildExecutorDecision"),Ni={[zi]:zi},Bi=()=>{const t=Object.create(Ni);return t._tag=Li,t},Qi="ContinuationK",Ui=Symbol.for("effect/ChannelContinuation"),Mi={_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 Wi{onSuccess;onHalt;_tag=Qi;[Ui]=Mi;constructor(t,s){this.onSuccess=t,this.onHalt=s}onExit(t){return le(t)?this.onHalt(t.cause):this.onSuccess(t.value)}}class qi{finalizer;_tag="ContinuationFinalizer";[Ui]=Mi;constructor(t){this.finalizer=t}}const Ti="PullAfterNext",Vi=Symbol.for("effect/ChannelUpstreamPullStrategy"),Hi={[Vi]:{_A:t=>t}},Ji=t=>{const s=Object.create(Hi);return s._tag=Ti,s.emitSeparator=t,s},Ki="BracketOut",Gi="Bridge",Zi="ConcatAll",Xi="Emit",Yi="Ensuring",$i="Fail",tn="Fold",sn="FromEffect",en="PipeTo",nn="Read",rn="Succeed",on="SucceedNow",an="Suspend",cn=Symbol.for("effect/Channel"),un={[cn]:{_Env:t=>t,_InErr:t=>t,_InElem:t=>t,_InDone:t=>t,_OutErr:t=>t,_OutElem:t=>t,_OutDone:t=>t},pipe(){return F(this,arguments)}},hn=t=>Dt(t,cn)||xt(t),ln=_(2,((t,s)=>{const e=Object.create(un);return e._tag=Ki,e.acquire=()=>t,e.finalizer=s,e})),dn=(t,s,e)=>{const i=Object.create(un);return i._tag=Zi,i.combineInners=s,i.combineAll=e,i.onPull=()=>Ji(rt()),i.onEmit=()=>Bi,i.value=()=>t,i.k=jt,i},fn=_(4,((t,s,e,i)=>{const n=Object.create(un);return n._tag=Zi,n.combineInners=e,n.combineAll=i,n.onPull=()=>Ji(rt()),n.onEmit=()=>Bi,n.value=()=>t,n.k=s,n})),bn=_(2,((t,s)=>{const e=Object.create(un);return e._tag=Gi,e.input=s,e.channel=t,e})),vn=_(2,((t,s)=>{const e=Object.create(un);return e._tag=Yi,e.channel=t,e.finalizer=s,e})),mn=t=>pn(qe(t)),pn=t=>Sn((()=>t)),Sn=t=>{const s=Object.create(un);return s._tag=$i,s.error=t,s},yn=_(2,((t,s)=>{const e=Object.create(un);return e._tag=tn,e.channel=t,e.k=new Wi(s,pn),e})),wn=t=>{const s=Object.create(un);return s._tag=sn,s.effect=()=>t,s},gn=_(2,((t,s)=>{const e=Object.create(un);return e._tag=en,e.left=()=>t,e.right=()=>s,e})),_n=t=>Fn({onInput:t.onInput,onFailure:s=>Rt(Ze(s),{onLeft:t.onFailure,onRight:pn}),onDone:t.onDone}),Fn=t=>{const s=Object.create(un);return s._tag=nn,s.more=t.onInput,s.done=new Wi(t.onDone,t.onFailure),s},En=t=>kn((()=>t)),On=t=>{const s=Object.create(un);return s._tag=on,s.terminal=t,s},Cn=t=>{const s=Object.create(un);return s._tag=an,s.channel=t,s},kn=t=>{const s=Object.create(un);return s._tag=rn,s.evaluate=t,s},Dn=On(void 0),xn=t=>{const s=Object.create(un);return s._tag=Xi,s.out=t,s},jn="Done",Rn="Emit",Pn="FromEffect",An="Read",In=Symbol.for("effect/ChannelState"),Ln={[In]:{_E:t=>t,_R:t=>t}},zn=()=>{const t=Object.create(Ln);return t._tag=jn,t},Nn=()=>{const t=Object.create(Ln);return t._tag=Rn,t},Bn=t=>{const s=Object.create(Ln);return s._tag=Pn,s.effect=t,s},Qn=(t,s,e,i)=>{const n=Object.create(Ln);return n._tag=An,n.upstream=t,n.onEffect=s,n.onEmit=e,n.onDone=i,n},Un=t=>t._tag===Pn,Mn=t=>Un(t)?At(t.effect):void 0,Wn="PullFromChild",qn="PullFromUpstream",Tn="DrainChildExecutors",Vn="Emit";class Hn{childExecutor;parentSubexecutor;onEmit;_tag=Wn;constructor(t,s,e){this.childExecutor=t,this.parentSubexecutor=s,this.onEmit=e}close(t){const s=this.childExecutor.close(t),e=this.parentSubexecutor.close(t);return void 0!==s&&void 0!==e?It(Lt(s),Lt(e),((t,s)=>G(t,_e(s)))):void 0!==s?s:void 0!==e?e:void 0}enqueuePullFromChild(t){return this}}class Jn{upstreamExecutor;createChild;lastDone;activeChildExecutors;combineChildResults;combineWithChildResult;onPull;onEmit;_tag=qn;constructor(t,s,e,i,n,r,o,a){this.upstreamExecutor=t,this.createChild=s,this.lastDone=e,this.activeChildExecutors=i,this.combineChildResults=n,this.combineWithChildResult=r,this.onPull=o,this.onEmit=a}close(t){const s=this.upstreamExecutor.close(t);return[...this.activeChildExecutors.map((s=>void 0!==s?s.childExecutor.close(t):void 0)),s].reduce(((t,s)=>void 0!==t&&void 0!==s?It(t,Lt(s),((t,s)=>_e(t,s))):void 0!==t?t:void 0!==s?Lt(s):void 0),void 0)}enqueuePullFromChild(t){return new Jn(this.upstreamExecutor,this.createChild,this.lastDone,[...this.activeChildExecutors,t],this.combineChildResults,this.combineWithChildResult,this.onPull,this.onEmit)}}class Kn{upstreamExecutor;lastDone;activeChildExecutors;upstreamDone;combineChildResults;combineWithChildResult;onPull;_tag=Tn;constructor(t,s,e,i,n,r,o){this.upstreamExecutor=t,this.lastDone=s,this.activeChildExecutors=e,this.upstreamDone=i,this.combineChildResults=n,this.combineWithChildResult=r,this.onPull=o}close(t){const s=this.upstreamExecutor.close(t);return[...this.activeChildExecutors.map((s=>void 0!==s?s.childExecutor.close(t):void 0)),s].reduce(((t,s)=>void 0!==t&&void 0!==s?It(t,Lt(s),((t,s)=>_e(t,s))):void 0!==t?t:void 0!==s?Lt(s):void 0),void 0)}enqueuePullFromChild(t){return new Kn(this.upstreamExecutor,this.lastDone,[...this.activeChildExecutors,t],this.upstreamDone,this.combineChildResults,this.combineWithChildResult,this.onPull)}}class Gn{value;next;_tag=Vn;constructor(t,s){this.value=t,this.next=s}close(t){return this.next.close(t)}enqueuePullFromChild(t){return this}}const Zn=Symbol.for("effect/ChannelUpstreamPullRequest"),Xn={[Zn]:{_A:t=>t}},Yn=t=>{const s=Object.create(Xn);return s._tag="Pulled",s.value=t,s};class $n{_activeSubexecutor=void 0;_cancelled=void 0;_closeLastSubstream=void 0;_currentChannel;_done=void 0;_doneStack=[];_emitted=void 0;_executeCloseLastSubstream;_input=void 0;_inProgressFinalizer=void 0;_providedEnv;constructor(t,s,e){this._currentChannel=t,this._executeCloseLastSubstream=e,this._providedEnv=s}run(){let t;for(;void 0===t;)if(void 0!==this._cancelled)t=this.processCancellation();else if(void 0!==this._activeSubexecutor)t=this.runSubexecutor();else try{if(void 0===this._currentChannel)t=zn();else switch(xt(this._currentChannel)&&(this._currentChannel=wn(this._currentChannel)),this._currentChannel._tag){case Ki:t=this.runBracketOut(this._currentChannel);break;case Gi:{const s=this._currentChannel.input;if(this._currentChannel=this._currentChannel.channel,void 0!==this._input){const e=this._input;this._input=void 0;const i=()=>Ut(s.awaitRead(),(()=>qt((()=>{const t=e.run();switch(t._tag){case jn:return Se(e.getDone(),{onFailure:t=>s.error(t),onSuccess:t=>s.done(t)});case Rn:return Ut(s.emit(e.getEmit()),(()=>i()));case Pn:return Bt(t.effect,{onFailure:t=>s.error(t),onSuccess:()=>i()});case An:return er(t,(()=>i()),(t=>s.error(t)))}}))));t=Bn(Ut(Mt(Wt(i())),(t=>zt((()=>this.addFinalizer((s=>Ut(si(t),(()=>qt((()=>{const t=this.restorePipe(s,e);return void 0!==t?t:Pt})))))))))))}break}case Zi:{const t=new $n(this._currentChannel.value(),this._providedEnv,(t=>zt((()=>{this._closeLastSubstream=G(void 0===this._closeLastSubstream?Pt:this._closeLastSubstream,Qt(t))}))));t._input=this._input;const s=this._currentChannel;this._activeSubexecutor=new Jn(t,(t=>s.k(t)),void 0,[],((t,e)=>s.combineInners(t,e)),((t,e)=>s.combineAll(t,e)),(t=>s.onPull(t)),(t=>s.onEmit(t))),this._closeLastSubstream=void 0,this._currentChannel=void 0;break}case Xi:this._emitted=this._currentChannel.out,this._currentChannel=void 0!==this._activeSubexecutor?void 0:Dn,t=Nn();break;case Yi:this.runEnsuring(this._currentChannel);break;case $i:t=this.doneHalt(this._currentChannel.error());break;case tn:this._doneStack.push(this._currentChannel.k),this._currentChannel=this._currentChannel.channel;break;case sn:{const s=void 0===this._providedEnv?this._currentChannel.effect():G(this._currentChannel.effect(),Nt(this._providedEnv));t=Bn(Bt(s,{onFailure:t=>{const s=this.doneHalt(t);return void 0!==s&&Un(s)?s.effect:Pt},onSuccess:t=>{const s=this.doneSucceed(t);return void 0!==s&&Un(s)?s.effect:Pt}}));break}case en:{const t=this._input,s=new $n(this._currentChannel.left(),this._providedEnv,(t=>this._executeCloseLastSubstream(t)));s._input=t,this._input=s,this.addFinalizer((s=>{const e=this.restorePipe(s,t);return void 0!==e?e:Pt})),this._currentChannel=this._currentChannel.right();break}case"Provide":{const t=this._providedEnv;this._providedEnv=this._currentChannel.context(),this._currentChannel=this._currentChannel.inner,this.addFinalizer((()=>zt((()=>{this._providedEnv=t}))));break}case nn:{const s=this._currentChannel;t=Qn(this._input,jt,(t=>{try{this._currentChannel=s.more(t)}catch(t){this._currentChannel=s.done.onExit(be(t))}}),(t=>{this._currentChannel=(t=>s.done.onExit(t))(t)}));break}case rn:t=this.doneSucceed(this._currentChannel.evaluate());break;case on:t=this.doneSucceed(this._currentChannel.terminal);break;case an:this._currentChannel=this._currentChannel.channel()}}catch(t){this._currentChannel=pn(Te(t))}return t}getDone(){return this._done}getEmit(){return this._emitted}cancelWith(t){this._cancelled=t}clearInProgressFinalizer(){this._inProgressFinalizer=void 0}storeInProgressFinalizer(t){this._inProgressFinalizer=t}popAllFinalizers(t){const s=[];let e=this._doneStack.pop();for(;e;)"ContinuationFinalizer"===e._tag&&s.push(e.finalizer),e=this._doneStack.pop();const i=0===s.length?Pt:sr(s,t);return this.storeInProgressFinalizer(i),i}popNextFinalizers(){const t=[];for(;0!==this._doneStack.length;){const s=this._doneStack[this._doneStack.length-1];if(s._tag===Qi)return t;t.push(s),this._doneStack.pop()}return t}restorePipe(t,s){const e=this._input;return this._input=s,void 0!==e?e.close(t):Pt}close(t){let s;const e=this._inProgressFinalizer;let i;void 0!==e&&(s=G(e,Tt(zt((()=>this.clearInProgressFinalizer())))));const n=this.popAllFinalizers(t);void 0!==n&&(i=G(n,Tt(zt((()=>this.clearInProgressFinalizer())))));const r=void 0===this._activeSubexecutor?void 0:this._activeSubexecutor.close(t);if(void 0!==r||void 0!==s||void 0!==i)return G(Lt(tr(r)),Jt(Lt(tr(s))),Jt(Lt(tr(i))),Ht((([[t,s],e])=>G(t,_e(s),_e(e)))),Vt,Ut((t=>qt((()=>t)))))}doneSucceed(t){if(0===this._doneStack.length)return this._done=ye(t),this._currentChannel=void 0,zn();const s=this._doneStack[this._doneStack.length-1];if(s._tag===Qi)return this._doneStack.pop(),void(this._currentChannel=s.onSuccess(t));const e=this.popNextFinalizers();if(0===this._doneStack.length)return this._doneStack=e.reverse(),this._done=ye(t),this._currentChannel=void 0,zn();const i=sr(e.map((t=>t.finalizer)),ye(t));this.storeInProgressFinalizer(i);const n=G(i,Tt(zt((()=>this.clearInProgressFinalizer()))),Vt,Ut((()=>zt((()=>this.doneSucceed(t))))));return Bn(n)}doneHalt(t){if(0===this._doneStack.length)return this._done=me(t),this._currentChannel=void 0,zn();const s=this._doneStack[this._doneStack.length-1];if(s._tag===Qi){this._doneStack.pop();try{this._currentChannel=s.onHalt(t)}catch(t){this._currentChannel=pn(Te(t))}return}const e=this.popNextFinalizers();if(0===this._doneStack.length)return this._doneStack=e.reverse(),this._done=me(t),this._currentChannel=void 0,zn();const i=sr(e.map((t=>t.finalizer)),me(t));this.storeInProgressFinalizer(i);const n=G(i,Tt(zt((()=>this.clearInProgressFinalizer()))),Vt,Ut((()=>zt((()=>this.doneHalt(t))))));return Bn(n)}processCancellation(){return this._currentChannel=void 0,this._done=this._cancelled,this._cancelled=void 0,zn()}runBracketOut(t){const s=Vt(Bt(this.provide(t.acquire()),{onFailure:t=>zt((()=>{this._currentChannel=pn(t)})),onSuccess:s=>zt((()=>{this.addFinalizer((e=>this.provide(t.finalizer(s,e)))),this._currentChannel=xn(s)}))}));return Bn(s)}provide(t){return void 0===this._providedEnv?t:G(t,Nt(this._providedEnv))}runEnsuring(t){this.addFinalizer(t.finalizer),this._currentChannel=t.channel}addFinalizer(t){this._doneStack.push(new qi(t))}runSubexecutor(){const t=this._activeSubexecutor;switch(t._tag){case Wn:return this.pullFromChild(t.childExecutor,t.parentSubexecutor,t.onEmit,t);case qn:return this.pullFromUpstream(t);case Tn:return this.drainChildExecutors(t);case Vn:return this._emitted=t.value,this._activeSubexecutor=t.next,Nn()}}replaceSubexecutor(t){this._currentChannel=void 0,this._activeSubexecutor=t}finishWithExit(t){const s=Se(t,{onFailure:t=>this.doneHalt(t),onSuccess:t=>this.doneSucceed(t)});return this._activeSubexecutor=void 0,void 0===s?Pt:Un(e=s)?e.effect:Pt;var e}finishSubexecutorWithCloseEffect(t,...s){this.addFinalizer((()=>G(s,Kt((s=>G(zt((()=>s(t))),Ut((t=>void 0!==t?t:Pt)))),{discard:!0}))));const e=G(t,Se({onFailure:t=>this.doneHalt(t),onSuccess:t=>this.doneSucceed(t)}));return this._activeSubexecutor=void 0,e}applyUpstreamPullStrategy(t,s,e){switch(e._tag){case Ti:{const i=!t||s.some((t=>void 0!==t));return[e.emitSeparator,i?[void 0,...s]:s]}case"PullAfterAllEnqueued":{const i=!t||s.some((t=>void 0!==t));return[e.emitSeparator,i?[...s,void 0]:s]}}}pullFromChild(t,s,e,i){return Qn(t,jt,(n=>{const r=e(n);switch(r._tag){case Li:break;case"Close":this.finishWithDoneValue(t,s,r.value);break;case"Yield":{const t=s.enqueuePullFromChild(i);this.replaceSubexecutor(t);break}}this._activeSubexecutor=new Gn(n,this._activeSubexecutor)}),Se({onFailure:e=>{const i=this.handleSubexecutorFailure(t,s,e);return void 0===i?void 0:Mn(i)},onSuccess:e=>{this.finishWithDoneValue(t,s,e)}}))}finishWithDoneValue(t,s,e){const i=s;switch(i._tag){case qn:{const s=new Jn(i.upstreamExecutor,i.createChild,void 0!==i.lastDone?i.combineChildResults(i.lastDone,e):e,i.activeChildExecutors,i.combineChildResults,i.combineWithChildResult,i.onPull,i.onEmit);this._closeLastSubstream=t.close(ye(e)),this.replaceSubexecutor(s);break}case Tn:{const s=new Kn(i.upstreamExecutor,void 0!==i.lastDone?i.combineChildResults(i.lastDone,e):e,i.activeChildExecutors,i.upstreamDone,i.combineChildResults,i.combineWithChildResult,i.onPull);this._closeLastSubstream=t.close(ye(e)),this.replaceSubexecutor(s);break}}}handleSubexecutorFailure(t,s,e){return this.finishSubexecutorWithCloseEffect(me(e),(t=>s.close(t)),(s=>t.close(s)))}pullFromUpstream(t){if(0===t.activeChildExecutors.length)return this.performPullFromUpstream(t);const s=t.activeChildExecutors[0],e=new Jn(t.upstreamExecutor,t.createChild,t.lastDone,t.activeChildExecutors.slice(1),t.combineChildResults,t.combineWithChildResult,t.onPull,t.onEmit);if(void 0===s)return this.performPullFromUpstream(e);this.replaceSubexecutor(new Hn(s.childExecutor,e,s.onEmit))}performPullFromUpstream(t){return Qn(t.upstreamExecutor,(t=>{const s=void 0===this._closeLastSubstream?Pt:this._closeLastSubstream;return this._closeLastSubstream=void 0,G(this._executeCloseLastSubstream(s),Qt(t))}),(s=>{if(void 0!==this._closeLastSubstream){const e=this._closeLastSubstream;return this._closeLastSubstream=void 0,G(this._executeCloseLastSubstream(e),Ht((()=>{const e=new $n(t.createChild(s),this._providedEnv,this._executeCloseLastSubstream);e._input=this._input;const[i,n]=this.applyUpstreamPullStrategy(!1,t.activeChildExecutors,t.onPull(Yn(s)));this._activeSubexecutor=new Hn(e,new Jn(t.upstreamExecutor,t.createChild,t.lastDone,n,t.combineChildResults,t.combineWithChildResult,t.onPull,t.onEmit),t.onEmit),Zt(i)&&(this._activeSubexecutor=new Gn(i.value,this._activeSubexecutor))})))}const e=new $n(t.createChild(s),this._providedEnv,this._executeCloseLastSubstream);e._input=this._input;const[i,n]=this.applyUpstreamPullStrategy(!1,t.activeChildExecutors,t.onPull(Yn(s)));this._activeSubexecutor=new Hn(e,new Jn(t.upstreamExecutor,t.createChild,t.lastDone,n,t.combineChildResults,t.combineWithChildResult,t.onPull,t.onEmit),t.onEmit),Zt(i)&&(this._activeSubexecutor=new Gn(i.value,this._activeSubexecutor))}),(s=>{if(t.activeChildExecutors.some((t=>void 0!==t))){const s=new Kn(t.upstreamExecutor,t.lastDone,[void 0,...t.activeChildExecutors],t.upstreamExecutor.getDone(),t.combineChildResults,t.combineWithChildResult,t.onPull);if(void 0!==this._closeLastSubstream){const t=this._closeLastSubstream;return this._closeLastSubstream=void 0,G(this._executeCloseLastSubstream(t),Ht((()=>this.replaceSubexecutor(s))))}return void this.replaceSubexecutor(s)}const e=this._closeLastSubstream,i=this.finishSubexecutorWithCloseEffect(G(s,pe((s=>t.combineWithChildResult(t.lastDone,s)))),(()=>e),(s=>t.upstreamExecutor.close(s)));return void 0===i?void 0:Mn(i)}))}drainChildExecutors(t){if(0===t.activeChildExecutors.length){const s=this._closeLastSubstream;return void 0!==s&&this.addFinalizer((()=>Gt(s))),this.finishSubexecutorWithCloseEffect(t.upstreamDone,(()=>s),(s=>t.upstreamExecutor.close(s)))}const s=t.activeChildExecutors[0],e=t.activeChildExecutors.slice(1);if(void 0===s){const[s,i]=this.applyUpstreamPullStrategy(!0,e,t.onPull((t=>{const s=Object.create(Xn);return s._tag="NoUpstream",s.activeDownstreamCount=t,s})(e.reduce(((t,s)=>void 0!==s?t+1:t),0))));return this.replaceSubexecutor(new Kn(t.upstreamExecutor,t.lastDone,i,t.upstreamDone,t.combineChildResults,t.combineWithChildResult,t.onPull)),Zt(s)?(this._emitted=s.value,Nn()):void 0}const i=new Kn(t.upstreamExecutor,t.lastDone,e,t.upstreamDone,t.combineChildResults,t.combineWithChildResult,t.onPull);this.replaceSubexecutor(new Hn(s.childExecutor,i,s.onEmit))}}const tr=t=>void 0!==t?t:Pt,sr=(t,s)=>G(Kt(t,(t=>Lt(t(s)))),Ht((t=>G(fe(t),Xt((()=>we))))),Ut((t=>qt((()=>t))))),er=(t,s,e)=>{const i=[t],n=()=>{const t=i.pop();if(void 0===t||void 0===t.upstream)return Yt("Unexpected end of input for channel execution");const r=t.upstream.run();switch(r._tag){case Rn:{const r=t.onEmit(t.upstream.getEmit());return 0===i.length?void 0===r?qt(s):G(r,Bt({onFailure:e,onSuccess:s})):void 0===r?qt((()=>n())):G(r,Bt({onFailure:e,onSuccess:()=>n()}))}case jn:{const r=t.onDone(t.upstream.getDone());return 0===i.length?void 0===r?qt(s):G(r,Bt({onFailure:e,onSuccess:s})):void 0===r?qt((()=>n())):G(r,Bt({onFailure:e,onSuccess:()=>n()}))}case Pn:return i.push(t),G(t.onEffect(r.effect),$t((s=>qt((()=>{const e=t.onDone(me(s));return void 0===e?Pt:e})))),Bt({onFailure:e,onSuccess:()=>n()}));case An:return i.push(t),i.push(r),qt((()=>n()))}};return n()},ir=_(2,((t,s)=>ts((e=>ss([es(s,is),ie(),ie()]).pipe(Ut((([i,n,r])=>e(((s,e,i)=>ns(zt((()=>new $n(t,void 0,jt))),(t=>qt((()=>nr(t.run(),t).pipe(cs(s),Qt(ne(s)),us(ne(e)))))),((t,s)=>{const e=t.close(s);return void 0===e?Pt:hs(e,(t=>ls(i,ds(t))))})))(n,r,i)).pipe(rs(s),Ut((t=>s.addFinalizer((s=>{const e=le(s)?Ge(s.cause):void 0;return ce(n).pipe(Ut((s=>s?ue(r,void 0).pipe(Qt($e(t)),Qt(ti(t))):ue(r,void 0).pipe(Qt(e&&os(e)>0?ei(t,as(e)):si(t)),Qt(ti(t))))))})).pipe(Qt(e(ne(n)))))))))))))),nr=(t,s)=>{const e=t;switch(e._tag){case Pn:return G(e.effect,Ut((()=>nr(s.run(),s))));case Rn:return nr(s.run(),s);case jn:return qt((()=>s.getDone()));case An:return er(e,(()=>nr(s.run(),s)),ds)}},rr=Symbol.for("effect/ChannelMergeDecision"),or={[rr]:{_R:t=>t,_E0:t=>t,_Z0:t=>t,_E:t=>t,_Z:t=>t}},ar=t=>{const s=Object.create(or);return s._tag="Await",s.f=t,s},cr="BothRunning",ur="LeftDone",hr="RightDone",lr=Symbol.for("effect/ChannelMergeState"),dr={[lr]:lr},fr=(t,s)=>{const e=Object.create(dr);return e._tag=cr,e.left=t,e.right=s,e},br=t=>{const s=Object.create(dr);return s._tag=ur,s.f=t,s},vr=t=>{const s=Object.create(dr);return s._tag=hr,s.f=t,s},mr="BackPressure",pr="BufferSliding",Sr=Symbol.for("effect/ChannelMergeStrategy"),yr={[Sr]:Sr},wr=()=>{const t=Object.create(yr);return t._tag=mr,t},gr=()=>{const t=Object.create(yr);return t._tag=pr,t},_r=_(2,((t,{onBackPressure:s,onBufferSliding:e})=>{switch(t._tag){case mr:return s();case pr:return e()}})),Fr="Empty",Er="Emit",Or="Error",Cr="Done",kr=t=>({_tag:Fr,notifyProducer:t}),Dr=t=>({_tag:Er,notifyConsumers:t}),xr=t=>({_tag:Or,cause:t}),jr=t=>({_tag:Cr,done:t});class Rr{ref;constructor(t){this.ref=t}awaitRead(){return fs(Me(this.ref,(t=>t._tag===Fr?[ne(t.notifyProducer),t]:[Pt,t])))}get close(){return bs((t=>this.error(Ve(t))))}done(t){return fs(Me(this.ref,(s=>{switch(s._tag){case Fr:return[ne(s.notifyProducer),s];case Er:return[Kt(s.notifyConsumers,(s=>ue(s,ms(t))),{discard:!0}),jr(t)];case Or:case Cr:return[vs,s]}})))}emit(t){return Ut(ie(),(s=>fs(Me(this.ref,(e=>{switch(e._tag){case Fr:return[ne(e.notifyProducer),e];case Er:{const i=e.notifyConsumers[0],n=e.notifyConsumers.slice(1);if(void 0!==i)return[ue(i,ps(t)),0===n.length?kr(s):Dr(n)];throw new Error("Bug: Channel.SingleProducerAsyncInput.emit - Queue was empty! please report an issue at https://github.com/Effect-TS/effect/issues")}case Or:case Cr:return[vs,e]}})))))}error(t){return fs(Me(this.ref,(s=>{switch(s._tag){case Fr:return[ne(s.notifyProducer),s];case Er:return[Kt(s.notifyConsumers,(s=>oe(s,t)),{discard:!0}),xr(t)];case Or:case Cr:return[vs,s]}})))}get take(){return this.takeWith((t=>me(Ye(t,ms))),(t=>ye(t)),(t=>ve(ps(t))))}takeWith(t,s,e){return Ut(ie(),(i=>fs(Me(this.ref,(n=>{switch(n._tag){case Fr:return[Qt(ue(n.notifyProducer,void 0),Ss(ne(i),{onFailure:t,onSuccess:Rt({onLeft:e,onRight:s})})),Dr([i])];case Er:return[Ss(ne(i),{onFailure:t,onSuccess:Rt({onLeft:e,onRight:s})}),Dr([...n.notifyConsumers,i])];case Or:return[Gt(t(n.cause)),n];case Cr:return[Gt(e(n.done)),n]}})))))}}const Pr=()=>G(ie(),Ut((t=>Qe(kr(t)))),Ht((t=>new Rr(t)))),Ar=_(2,((t,s)=>fn(t,s,(()=>{}),(()=>{})))),Ir=t=>{const s=Fn({onInput:()=>s,onFailure:pn,onDone:En});return gn(t,s)},Lr=_(2,((t,s)=>vn(t,(()=>s)))),zr=t=>Kr(t.takeWith(pn,(s=>yn(xn(s),(()=>zr(t)))),En)),Nr=()=>_n({onInput:t=>yn(xn(t),(()=>Nr())),onFailure:mn,onDone:On}),Br=_(2,((t,s)=>yn(t,(t=>kn((()=>s(t))))))),Qr=_(2,((t,s)=>{const e=_n({onInput:t=>yn(xn(s(t)),(()=>e)),onFailure:mn,onDone:On});return gn(t,e)})),Ur=_(3,((t,s,e)=>Zr((i=>Fs((function*(){const n=yield*Pr(),r=zr(n),o=yield*xi(e);yield*ls(i,Ri(o));const a=yield*ie(),c=e===Number.POSITIVE_INFINITY?()=>jt:(yield*Ps(e)).withPermits,u=yield*r.pipe(gn(t),Hr(i));yield*u.pipe(Bt({onFailure:t=>Pi(o,ds(t)),onSuccess:Rt({onLeft:t=>Qt(Wt(c(e)(Pt)),Bs(Pi(o,Gt(ms(t))))),onRight:t=>Fs((function*(){const e=yield*ie(),n=yield*ie();yield*Pi(o,Ht(ne(e),ps)),yield*ue(n,void 0).pipe(Qt(ts((e=>Lt(e(ne(a))).pipe(Us(Lt(e(s(t)))),Ut(jt)))).pipe(hs((t=>oe(a,t))),cs(e))),c(1),rs(i)),yield*ne(n)}))})}),Ms,Wt,rs(i));const h=Kr(Ss(fs(Ai(o)),{onFailure:pn,onSuccess:Rt({onLeft:On,onRight:t=>yn(xn(t),(()=>h))})}));return bn(h,n)})))))),Mr=_(3,((t,s,e)=>(t=>s=>(({bufferSize:t=16,concurrency:s,mergeStrategy:e=wr()})=>(i,n)=>Zr((r=>Fs((function*(){const o="unbounded"===s?Number.MAX_SAFE_INTEGER:s,a=yield*Pr(),c=zr(a),u=yield*xi(t);yield*ls(r,Ri(u));const h=yield*ji();yield*ls(r,Ri(h));const l=yield*Qe(rt()),d=yield*ie(),f=(yield*Ps(o)).withPermits,b=yield*Hr(gn(c,i),r);function v(t){return t.pipe(Ut(Rt({onLeft:t=>Gt(ot(t)),onRight:t=>Ls(Pi(u,Gt(ps(t))),rt())})),Ns({until:t=>Zt(t)}),Ut((t=>We(l,zs({onNone:()=>ot(t.value),onSome:s=>ot(n(s,t.value))})))),$t((t=>Je(t)?ds(t):Pi(u,ds(t)).pipe(Qt(ue(d,void 0)),Bs))))}yield*b.pipe(Bt({onFailure:t=>Pi(u,ds(t)).pipe(Qt(Gt(!1))),onSuccess:Rt({onLeft:t=>Ds(Wt(ne(d)),Wt(f(o)(Pt)),{onSelfDone:(t,s)=>Ls(si(s),!1),onOtherDone:(s,e)=>Qt(si(e),Ue(l).pipe(Ut(zs({onNone:()=>Pi(u,Gt(ms(t))),onSome:s=>Pi(u,Gt(ms(n(s,t))))})),Ls(!1)))}),onRight:t=>_r(e,{onBackPressure:()=>Fs((function*(){const s=yield*ie(),e=ys((s=>Hr(gn(c,t),s).pipe(Ut((t=>Is(Lt(v(t)),Lt(Wt(ne(d)))))),Ut(jt))));return yield*ue(s,void 0).pipe(Qt(e),f(1),rs(r)),yield*ne(s),!(yield*ce(d))})),onBufferSliding:()=>Fs((function*(){const s=yield*ie(),e=yield*ie(),i=yield*(n=h,n.size);var n;yield*Ai(h).pipe(Ut((t=>ue(t,void 0))),As((()=>i>=o))),yield*Pi(h,s);const a=ys((e=>Hr(gn(c,t),e).pipe(Ut((t=>Lt(v(t)).pipe(Is(Lt(Wt(ne(d)))),Is(Lt(Wt(ne(s))))))),Ut(jt))));return yield*ue(e,void 0).pipe(Qt(a),f(1),rs(r)),yield*ne(e),!(yield*ce(d))}))})})}),Ns({while:t=>t}),rs(r));const m=G(Ai(u),fs,Ss({onFailure:pn,onSuccess:Rt({onLeft:On,onRight:t=>yn(xn(t),(()=>m))})}),Kr);return bn(m,a)})))))(t)(s,gs))(e)(Qr(t,s)))),Wr=_(2,((t,s)=>Zr((function(e){return Fs((function*(){const i=yield*Pr(),n=zr(i),r=yield*Hr(gn(n,t),e),o=yield*Hr(gn(n,s.other),e);function a(t,s,i){return(n,r,o)=>{function a(t){const e=t;return"Done"===e._tag?Gt(wn(Qt(si(s),e.effect))):Ht($e(s),Se({onFailure:t=>wn(e.f(me(t))),onSuccess:Rt({onLeft:t=>wn(e.f(ye(t))),onRight:t=>to(xn(t),c(o(e.f)))})}))}return Se(t,{onFailure:t=>a(n(me(t))),onSuccess:Rt({onLeft:t=>a(n(ye(t))),onRight:t=>Gt(yn(xn(t),(()=>yn(wn(rs(Wt(i),e)),(t=>c(r(t,s)))))))})})}}function c(t){switch(t._tag){case cr:{const e=Wt(ii(t.left)),i=Wt(ii(t.right));return Kr(Ds(e,i,{onSelfDone:(e,i)=>Qt(si(i),a(e,t.right,r)(s.onSelfDone,fr,(t=>br(t)))),onOtherDone:(e,i)=>Qt(si(i),a(e,t.left,o)(s.onOtherDone,((t,s)=>fr(s,t)),(t=>vr(t))))}))}case ur:return Kr(Ht(Lt(o),Se({onFailure:s=>wn(t.f(me(s))),onSuccess:Rt({onLeft:s=>wn(t.f(ye(s))),onRight:s=>yn(xn(s),(()=>c(br(t.f))))})})));case hr:return Kr(Ht(Lt(r),Se({onFailure:s=>wn(t.f(me(s))),onSuccess:Rt({onLeft:s=>wn(t.f(ye(s))),onRight:s=>yn(xn(s),(()=>c(vr(t.f))))})})))}}return wn(Es((t=>{const s=Es((s=>(s.transferChildren(t.scope()),Pt))),i=Wt(r).pipe(Tt(s),rs(e)),n=Wt(o).pipe(Tt(s),rs(e));return It(i,n,((t,s)=>fr(t,s)))}))).pipe(yn(c),bn(i))}))})))),qr=_(2,((t,s)=>Cn((()=>{let e;const i=_n({onInput:t=>yn(xn(t),(()=>i)),onFailure:t=>(e=eo(t),pn(Te(e))),onDone:On}),n=Fn({onInput:t=>G(xn(t),yn((()=>n))),onFailure:t=>He(t)&&io(t.defect)&&Qs(t.defect,e)?mn(t.defect.error):pn(t),onDone:On});return gn(gn(gn(t,i),s),n)})))),Tr=t=>(t=>ys((s=>ir(t,s))))(Ir(t)),Vr=t=>Gr(Ht(_s,(s=>yn(wn(t(s)),xn)))),Hr=_(2,((t,s)=>Jt(zt((()=>new $n(t,void 0,jt))),xs()).pipe(js((([t,e])=>Rs(s,(s=>{const i=t.close(s);return void 0!==i?Nt(i,e):Pt})))),Vt,Ht((([t])=>qt((()=>Jr(t.run(),t)))))))),Jr=(t,s)=>{const e=t;switch(e._tag){case jn:return Se(s.getDone(),{onFailure:ds,onSuccess:t=>Gt(ms(t))});case Rn:return Gt(ps(s.getEmit()));case Pn:return G(e.effect,Ut((()=>Jr(s.run(),s))));case An:return er(e,(()=>Jr(s.run(),s)),(t=>ds(t)))}},Kr=t=>{return s=wn(t),yn(s,jt);var s},Gr=t=>{return dn((s=t,Kr(ts((t=>Ht(Os(),(e=>ln(hs(t(Cs(s,e)),(t=>ks(e,me(t)))),((t,s)=>ks(e,s))))))))),(t=>t),(t=>t));var s},Zr=t=>dn(Vr(t),(t=>t),(t=>t)),Xr=t=>Yr(0,t.length,t),Yr=(t,s,e)=>t===s?Dn:G(xn(G(e,ws(t))),yn((()=>Yr(t+1,s,e)))),$r=_((t=>hn(t[1])),((t,s,e)=>e?.concurrent?Wr(t,{other:s,onSelfDone:t=>ar((s=>qt((()=>ge(t,s))))),onOtherDone:t=>ar((s=>qt((()=>ge(s,t)))))}):yn(t,(t=>Br(s,(s=>[t,s])))))),to=_((t=>hn(t[1])),((t,s,e)=>e?.concurrent?Br($r(t,s,{concurrent:!0}),(t=>t[1])):yn(t,(()=>s)))),so=Symbol.for("effect/Channel/ChannelException"),eo=t=>({_tag:"ChannelException",[so]:so,error:t}),io=t=>Dt(t,so),no=Symbol.for("effect/Sink"),ro={_A:t=>t,_In:t=>t,_L:t=>t,_E:t=>t,_R:t=>t};class oo{channel;[no]=ro;constructor(t){this.channel=t}pipe(){return F(this,arguments)}}const ao=new oo(Ir(Nr())),co=t=>xt(t)?co(new oo(wn(t))):t.channel,uo=Symbol.for("effect/Take"),ho={_A:t=>t,_E:t=>t};class lo{exit;[uo]=ho;constructor(t){this.exit=t}pipe(){return F(this,arguments)}}const fo=t=>new lo(ye(t)),bo=new lo(ve(rt())),vo=Symbol.for("effect/Stream"),mo={_R:t=>t,_E:t=>t,_A:t=>t};class po{channel;[vo]=mo;constructor(t){this.channel=t}pipe(){return F(this,arguments)}}const So=t=>Dt(t,vo)||xt(t),yo=_(2,((t,s)=>new po(G(Oo(t),Lr(s))))),wo=_((t=>So(t[0])),((t,s,e)=>{const i=e?.bufferSize??16;return e?.switch?go(e?.concurrency,(()=>_o(t,1,i,s)),(e=>_o(t,e,i,s))):go(e?.concurrency,(()=>new po(Ar(Oo(t),(t=>G(t,Hs((t=>Oo(s(t)))),Vs(Dn,((t,s)=>G(t,to(s))))))))),(()=>new po(G(Oo(t),Ar(Xr),Mr((t=>Oo(s(t))),e)))))})),go=(t,s,e)=>{switch(t){case void 0:return s();case"unbounded":return e(Number.MAX_SAFE_INTEGER);default:return t>1?e(t):s()}},_o=_(4,((t,s,e,i)=>new po(G(Oo(t),Ar(Xr),Mr((t=>Oo(i(t))),{concurrency:s,mergeStrategy:gr(),bufferSize:e}))))),Fo=_((t=>So(t[0])),((t,s)=>wo(t,jt,s))),Eo=t=>(t=>{const s=Fn({onInput:t=>yn(Xr(t),(()=>s)),onFailure:pn,onDone:()=>Dn});return new po(G(Oo(t),gn(s)))})((t=>{const s=Fn({onInput:t=>((t,s)=>{const[e,i]=G(t,Ks((t=>!de(t)))),n=G(Gs(i),zs({onNone:()=>s,onSome:Se({onFailure:t=>zs(Xe(t),{onNone:()=>Dn,onSome:pn}),onSuccess:()=>Dn})}));return G(xn(G(e,Zs((t=>de(t)?ot(t.value):rt())))),yn((()=>n)))})(t,s),onFailure:t=>pn(t),onDone:()=>Dn});return new po(G(Oo(t),gn(s)))})(G(t,xo((t=>t.exit))))),Oo=t=>{if("channel"in t)return t.channel;if(xt(t))return Oo(Co(t));throw new TypeError("Expected a Stream.")},Co=t=>G(t,Ts(ot),ko),ko=t=>new po(Kr(Js(t,{onFailure:zs({onNone:()=>Dn,onSome:mn}),onSuccess:t=>xn(Ws(t))}))),Do=(t,s)=>G(Ii(t,1,s?.maxChunkSize??4096),$t((s=>G(t.isShutdown,Ut((t=>t&&Je(s)?qs(rt()):(t=>Ts(ds(t),ot))(s)))))),Po,s?.shutdown?yo(Ri(t)):jt),xo=_(2,((t,s)=>new po(G(Oo(t),Qr(Hs(s)))))),jo=_(2,((t,s)=>{const e=t=>{const i=t.next();return i.done?Fn({onInput:t=>e(t[Symbol.iterator]()),onFailure:pn,onDone:En}):Kr(Ht(s(i.value),(s=>yn(xn(Ws(s)),(()=>e(t))))))};return new po(G(Oo(t),gn(Cn((()=>e(D()[Symbol.iterator]()))))))})),Ro=_(3,((t,s,e)=>new po(G(Oo(t),Ar(Xr),Ur(e,s),Qr(Ws))))),Po=t=>Io(t,(t=>G(Ht(t,(s=>ot([s,t]))),Xs(zs({onNone:()=>Gt(rt()),onSome:qs}))))),Ao=_(2,((t,s)=>Oo(t).pipe(qr(co(s)),Tr))),Io=(t,s)=>{return e=()=>{const e=t=>Kr(Ht(s(t),zs({onNone:()=>Dn,onSome:([t,s])=>yn(xn(t),(()=>e(s)))})));return new po(e(t))},new po(Cn((()=>Oo(e()))));var e},Lo=Symbol.for("effect/GroupBy"),zo={_R:t=>t,_E:t=>t,_K:t=>t,_V:t=>t},No=_((t=>Dt(t[0],Lo)),((t,s,e)=>wo(t.grouped,(([t,e])=>s(t,Eo(Do(e,{shutdown:!0})))),{concurrency:"unbounded",bufferSize:e?.bufferSize??16}))),Bo=t=>({[Lo]:zo,pipe(){return F(this,arguments)},grouped:t}),Qo=_((t=>"function"!=typeof t[0]),((t,s,e)=>e?.key?No(Uo(t,e.key,{bufferSize:e.bufferSize}),((t,e)=>jo(e,s))):go(e?.concurrency,(()=>jo(t,s)),(i=>e?.unordered?wo(t,(t=>Co(s(t))),{concurrency:i}):Ro(t,i,s))))),Uo=_((t=>"function"!=typeof t[0]),((t,s,e)=>{const i=(t,n)=>Fn({onInput:r=>yn(wn(Kt(Mo(r,s),(([s,i])=>{const r=t.get(s);return void 0===r?G(xi(e?.bufferSize??16),Ut((e=>G(zt((()=>{t.set(s,e)})),Qt(Pi(n,new lo(ye(Ws([s,e]))))),Qt(G(Pi(e,fo(i)),Ys((t=>Ke(t)?ot(Pt):rt())))))))):Ys(Pi(r,fo(i)),(t=>Ke(t)?ot(Pt):rt()))}),{discard:!0})),(()=>i(t,n))),onFailure:t=>wn(Pi(n,(t=>new lo(me(G(t,Ye(ot)))))(t))),onDone:()=>wn(G(Kt(t.entries(),(([t,s])=>G(Pi(s,bo),Ys((t=>Ke(t)?ot(Pt):rt())))),{discard:!0}),Qt(Pi(n,bo))))});return Bo((t=>Fo((t=>new po(Vr((s=>t(s).pipe(Ht(Ws))))))((s=>t(s)))))((s=>Fs((function*(){const e=new Map,n=yield*ji();return yield*ls(s,Ri(n)),yield*Oo(t).pipe(gn(i(e,n)),Ir,ir(s),rs(s),Ls(Eo(Do(n,{shutdown:!0}))))})))))})),Mo=_(2,((t,s)=>{const e=[],i=t[Symbol.iterator](),n=new Map;let r;for(;(r=i.next())&&!r.done;){const t=r.value,i=s(t);if(n.has(i))n.get(i).push(t);else{const s=[t];e.push([i,s]),n.set(i,s)}}return $s(e.map((t=>[t[0],$s(t[1])])))})),Wo=Do,qo=Qo,To=class extends t{constructor(){super(!1)}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?.()))}};class Vo{host;config;static get globalValidationEnabled(){return s.isDev}static axe=this.globalValidationEnabled?import("./p-D1HbKFuh.js").then((function(t){return t.a})):null;static axeQueue=null;static axeStreamFiber=null;visibilityObserver;elementQueued=!1;elementValidated=!1;knownValidationErrors=[];get disabled(){return!0}constructor(t,s){this.host=t,this.config=s,Vo.initializeAxeStream()}static initializeAxeStream(){if(!this.globalValidationEnabled)return;if(this.axeStreamFiber)return;const t=Fs((function*(){const t=Vo.axeQueue=yield*xi(100),s=yield*se((()=>Vo.axe));if(!s)return void console.error("Axe library not available, ARIA validation will not run.");const e=Wo(t).pipe(qo((({context:t,onComplete:e})=>ee((i=>{s.run(t,{},((t,s)=>{e(t,s),i(Pt)}))})))));var i;yield*(i=e,Ao(i,ao))}));this.axeStreamFiber=te(t)}hostDidLoad(){this.elementQueued||this.elementValidated||(this.host.el.checkVisibility()?this.enqueueValidation():this.observeVisibilityOnce())}hostDidUpdate(){this.checkLazyValidation()}hostDisconnected(){this.discardVisibilityObserver()}observeVisibilityOnce(){this.visibilityObserver=new IntersectionObserver((t=>{for(const s of t)s.target===this.host.el&&s.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(){}discardVisibilityObserver(){this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=void 0)}}export{Vo as A,xe as E,To as R,ne as _,Pe as a,re as d,ae as i,Le as o,Ne as p,ye as s,he as u}
@@ -0,0 +1 @@
1
+ import{p as t,h as s,d as e,t as i}from"./p-BaPwpeMs.js";import{g as n,b as r,l as o,i as a,c,d as h,m as l,e as m,f as d,h as u,j as v,k as p,n as g,s as f,o as w,p as z,q as y,t as b,u as k,v as x,w as S,x as C,y as E,z as _,A as M,B as P,C as L,D as R,E as V,F as D,G as O,H as T,I as j,J as I,K as A,L as B,M as N,N as $,O as F,P as H,Q as K,R as G,S as Q,T as U,U as W,V as Z,W as q,X as J,Y as X,Z as Y,_ as tt,$ as st,r as et,a0 as it,a1 as nt,a2 as rt,a3 as ot}from"./p-CdofjRtQ.js";import{u as at,o as ct,p as ht,E as lt,a as mt,_ as dt,s as ut,i as vt,d as pt,R as gt,A as ft}from"./p-3I3wZmp8.js";import{T as wt,s as zt}from"./p-Cn8p9itA.js";const yt=Symbol.for("effect/Brand/Refined"),bt=(t,s,e,i)=>M({_tag:"Complete",key:t,exit:s,entryStats:e,timeToLiveMillis:i}),kt=(t,s)=>M({_tag:"Pending",key:t,deferred:s}),xt=Symbol.for("effect/Cache/MapKey");class St{current;[xt]=xt;previous=void 0;next=void 0;constructor(t){this.current=t}[j](){return I(N(this.current),B(N(this.previous)),B(N(this.next)),A(this))}[$](t){return this===t||Et(t)&&H(this.current,t.current)&&H(this.previous,t.previous)&&H(this.next,t.next)}}const Ct=t=>new St(t),Et=t=>F(t,xt);class _t{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 s=t.previous,e=t.next;void 0!==e&&(t.next=void 0,void 0!==s?(s.next=e,e.previous=s):(this.head=e,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 s=t.next;void 0!==s?(t.next=void 0,this.head=s,this.head.previous=void 0):(this.head=void 0,this.tail=void 0)}return t}}const Mt=Symbol.for("effect/Cache"),Pt={_Key:t=>t,_Error:t=>t,_Value:t=>t},Lt=Symbol.for("effect/ConsumerCache"),Rt={_Key:t=>t,_Error:t=>t,_Value:t=>t},Vt=t=>({loadedMillis:t});class Dt{capacity;context;fiberId;lookup;timeToLive;[Mt]=Pt;[Lt]=Rt;cacheState;constructor(t,s,e,i,n){this.capacity=t,this.context=s,this.fiberId=e,this.lookup=i,this.timeToLive=n,this.cacheState={map:R(),keys:new _t,accesses:mt(),updating:T(!1),hits:0,misses:0}}get(t){return d(this.getEither(t),g)}get cacheStats(){return f((()=>({hits:this.cacheState.hits,misses:this.cacheState.misses,size:w(this.cacheState.map)})))}getOption(t){return z((()=>l(y(this.cacheState.map,t),{onNone:()=>{const s=Ct(t);return this.trackAccess(s),this.trackMiss(),b(k())},onSome:t=>this.resolveMapValue(t)})))}getOptionComplete(t){return z((()=>l(y(this.cacheState.map,t),{onNone:()=>{const s=Ct(t);return this.trackAccess(s),this.trackMiss(),b(k())},onSome:t=>this.resolveMapValue(t,!0)})))}contains(t){return f((()=>x(this.cacheState.map,t)))}entryStats(t){return f((()=>{const s=y(this.cacheState.map,t);if(S(s))switch(s.value._tag){case"Complete":return C(Vt(s.value.entryStats.loadedMillis));case"Pending":return k();case"Refreshing":return C(Vt(s.value.complete.entryStats.loadedMillis))}return k()}))}getEither(t){return z((()=>{const s=t;let e,i,n=E(y(this.cacheState.map,s));return void 0===n&&(i=at(this.fiberId),e=Ct(s),x(this.cacheState.map,s)?n=E(y(this.cacheState.map,s)):_(this.cacheState.map,s,kt(e,i))),void 0===n?(this.trackAccess(e),this.trackMiss(),d(this.lookupValueOf(t,i),r)):P(this.resolveMapValue(n),l({onNone:()=>this.getEither(t),onSome:t=>b(o(t))}))}))}invalidate(t){return f((()=>{L(this.cacheState.map,t)}))}invalidateWhen(t,s){return f((()=>{const e=y(this.cacheState.map,t);S(e)&&"Complete"===e.value._tag&&"Success"===e.value.exit._tag&&s(e.value.exit.value)&&L(this.cacheState.map,t)}))}get invalidateAll(){return f((()=>{this.cacheState.map=R()}))}refresh(t){return V((s=>z((()=>{const e=t,i=at(this.fiberId);let n=E(y(this.cacheState.map,e));if(void 0===n&&(x(this.cacheState.map,e)?n=E(y(this.cacheState.map,e)):_(this.cacheState.map,e,kt(Ct(e),i))),void 0===n)return K(this.lookupValueOf(t,i));switch(n._tag){case"Complete":if(this.hasExpired(s,n.timeToLiveMillis)){const s=E(y(this.cacheState.map,e));return H(s,n)&&L(this.cacheState.map,e),K(this.get(t))}return I(this.lookupValueOf(t,i),G((()=>{const t=E(y(this.cacheState.map,e));if(H(t,n)){const t=((t,s)=>M({_tag:"Refreshing",deferred:t,complete:s}))(i,n);return _(this.cacheState.map,e,t),!0}return!1})),K);case"Pending":case"Refreshing":return dt(n.deferred)}}))))}set(t,s){return V((e=>f((()=>{const i=e.unsafeCurrentTimeMillis(),n=t,r=ut(s),o=bt(Ct(n),r,Vt(i),i+Q(m(this.timeToLive(r))));_(this.cacheState.map,n,o)}))))}get size(){return f((()=>w(this.cacheState.map)))}get values(){return f((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push(s[1].exit.value);return t}))}get entries(){return f((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push([s[0],s[1].exit.value]);return t}))}get keys(){return f((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push(s[0]);return t}))}resolveMapValue(t,s=!1){return V((e=>{switch(t._tag){case"Complete":return this.trackAccess(t.key),this.hasExpired(e,t.timeToLiveMillis)?(L(this.cacheState.map,t.key.current),b(k())):(this.trackHit(),d(t.exit,C));case"Pending":return this.trackAccess(t.key),this.trackHit(),s?b(k()):d(dt(t.deferred),C);case"Refreshing":return this.trackAccess(t.complete.key),this.trackHit(),this.hasExpired(e,t.complete.timeToLiveMillis)?s?b(k()):d(dt(t.deferred),C):d(t.complete.exit,C)}}))}trackHit(){this.cacheState.hits=this.cacheState.hits+1}trackMiss(){this.cacheState.misses=this.cacheState.misses+1}trackAccess(t){if(ct(this.cacheState.accesses,t),D(this.cacheState.updating,!1,!0)){let t=!0;for(;t;){const s=ht(this.cacheState.accesses,lt);s===lt?t=!1:this.cacheState.keys.add(s)}let s=w(this.cacheState.map);for(t=s>this.capacity;t;){const e=this.cacheState.keys.remove();void 0!==e?x(this.cacheState.map,e.current)&&(L(this.cacheState.map,e.current),s-=1,t=s>this.capacity):t=!1}O(this.cacheState.updating,!1)}}hasExpired(t,s){return t.unsafeCurrentTimeMillis()>s}lookupValueOf(t,s){return V((e=>z((()=>{const i=t;return I(this.lookup(t),q(this.context),Z,P((t=>{const n=e.unsafeCurrentTimeMillis(),r=Vt(n),o=bt(Ct(i),t,r,n+Q(m(this.timeToLive(t))));return _(this.cacheState.map,i,o),W(pt(s,t),t)})),U((()=>W(vt(s),f((()=>{L(this.cacheState.map,i)}))))))}))))}}const Ot=t=>{const s=m(t.timeToLive);return(t=>d(u([v(),p]),(([s,e])=>new Dt(t.capacity,s,e,t.lookup,(s=>m(t.timeToLive(s)))))))({capacity:t.capacity,lookup:t.lookup,timeToLive:()=>s})};class Tt extends(wt("FetchError")){}class jt extends(wt("NotFoundError")){}class It extends(wt("ResponseTextError")){constructor(t){super(new Error("Failed to read response text",{cause:t}))}}const At=function(...t){const s=2===t.length?s=>t[0](s)?r(s):o(t[1](s)):s=>l(t[0](s),{onNone:()=>r(s),onSome:o});return Object.assign((t=>n(s(t),a)),{[yt]:yt,option:t=>h(s(t)),either:s,is:t=>c(s(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 Bt extends(wt("BrandValidationError")){constructor(t,s){super(new Error(`Brand validation failed for type ${s}.`,{cause:t}))}}let Nt=null;function $t(){return J((function*(){Nt?yield*Nt.invalidateAll:tt("Attempted to clear icon cache before it was initialized")}))}const Ft=t(class extends gt{intersectionObserver;get el(){return this}icon;weight="medium";size="md";iconData;visible=!1;ariaLabel;get ariaHidden(){return!this.ariaLabel}constructor(t){super(!1),!1!==t&&this.__registerHost(),this.addController(new ft(this))}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}disconnectedCallback(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null)}async loadIconPathData(){const{icon:t,visible:s}=this;t&&s&&(this.iconData=await et(function(t){const s=t;return J((function*(){return Nt||(Nt=yield*Ot({capacity:200,timeToLive:st,lookup:t=>J((function*(){const s=t,e=yield*zt(`${s}.svg`,"icons"),i=yield*(n=e,J((function*(){const t=yield*X({try:()=>fetch(n,void 0),catch:t=>new Tt({cause:t})});return 404===t.status?yield*new jt({url:t.url}):t})));var n;const r=yield*(t=>X({try:()=>t.text(),catch:t=>new It(t)}))(i);return yield*(o=r,Y({try:()=>At(o),catch:t=>new Bt(t,"SVGString")}));var o}))})),yield*Nt.get(s)}))}(this.icon).pipe(it((s=>nt(`Error loading icon "${t}":`,s.message,s.cause,s.stack))),rt((()=>ot(At('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"></svg>')))))))}render(){return s(e,{key:"50d0f96ec5085a47ca7783e5232dfb503fa32d29",role:"img","aria-hidden":`${this.ariaHidden}`,innerHTML:this.iconData})}waitUntilVisible(t,s=50){"undefined"!=typeof window&&window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver((s=>{s.some((s=>!!s.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t(),!0)))}),{rootMargin:`${s}px`}),this.intersectionObserver.observe(this.el)):t()}static get assetsDirs(){return["../../assets/icons"]}static get watchers(){return{icon:[{loadIconPathData:0}]}}static get style(){return".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)}}"}},[514,"lmvz-icon",{icon:[513],weight:[513],size:[513],ariaLabel:[513,"aria-label"],iconData:[32],visible:[32]},void 0,{icon:[{loadIconPathData:0}]}]);function Ht(){"undefined"!=typeof customElements&&["lmvz-icon"].forEach((t=>{"lmvz-icon"===t&&(customElements.get(i(t))||customElements.define(i(t),Ft))}))}export{Ft as L,$t as c,Ht as d}