@vanelsas/baredom 2.7.0 → 2.8.0

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 (107) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/custom-elements.json +344 -5
  3. package/dist/baredom.d.ts +4 -0
  4. package/dist/base.js +451 -427
  5. package/dist/integrity.json +97 -93
  6. package/dist/x-alert.js +17 -18
  7. package/dist/x-avatar-group.js +9 -10
  8. package/dist/x-avatar.js +15 -15
  9. package/dist/x-badge.js +9 -10
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -14
  13. package/dist/x-button.js +16 -18
  14. package/dist/x-cancel-dialogue.js +13 -17
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +33 -34
  17. package/dist/x-chart.d.ts +26 -0
  18. package/dist/x-chart.js +47 -46
  19. package/dist/x-checkbox.js +11 -10
  20. package/dist/x-chip.js +1 -9
  21. package/dist/x-collapse.js +10 -10
  22. package/dist/x-color-picker.js +44 -44
  23. package/dist/x-combobox.js +26 -26
  24. package/dist/x-command-palette.js +26 -26
  25. package/dist/x-container.js +4 -4
  26. package/dist/x-context-menu.d.ts +31 -2
  27. package/dist/x-context-menu.js +20 -18
  28. package/dist/x-copy.js +20 -23
  29. package/dist/x-currency-field.js +23 -23
  30. package/dist/x-date-picker.d.ts +27 -0
  31. package/dist/x-date-picker.js +42 -41
  32. package/dist/x-divider.js +9 -9
  33. package/dist/x-drawer.js +10 -11
  34. package/dist/x-dropdown.js +11 -10
  35. package/dist/x-fieldset.js +5 -6
  36. package/dist/x-file-download.js +7 -7
  37. package/dist/x-file-upload.js +20 -20
  38. package/dist/x-form-field.js +15 -15
  39. package/dist/x-form.js +9 -8
  40. package/dist/x-gaussian-blur.js +13 -19
  41. package/dist/x-grid.js +6 -6
  42. package/dist/x-i18n-provider.d.ts +43 -0
  43. package/dist/x-i18n-provider.js +8 -0
  44. package/dist/x-i18n.d.ts +14 -0
  45. package/dist/x-i18n.js +5 -0
  46. package/dist/x-icon.js +6 -7
  47. package/dist/x-image.js +18 -19
  48. package/dist/x-kinetic-canvas.d.ts +18 -0
  49. package/dist/x-kinetic-canvas.js +26 -0
  50. package/dist/x-kinetic-font.js +27 -28
  51. package/dist/x-kinetic-typography.js +33 -39
  52. package/dist/x-liquid-dock.js +39 -39
  53. package/dist/x-liquid-fill.js +45 -45
  54. package/dist/x-liquid-glass.js +47 -47
  55. package/dist/x-menu-item.js +8 -9
  56. package/dist/x-menu.js +10 -11
  57. package/dist/x-metaball-cursor.js +27 -27
  58. package/dist/x-modal.js +11 -12
  59. package/dist/x-morph-stack.js +37 -38
  60. package/dist/x-multi-combobox.d.ts +50 -0
  61. package/dist/x-multi-combobox.js +37 -0
  62. package/dist/x-navbar.js +12 -12
  63. package/dist/x-neural-glow.js +33 -33
  64. package/dist/x-notification-center.js +9 -9
  65. package/dist/x-organic-divider.js +17 -18
  66. package/dist/x-organic-progress.js +38 -38
  67. package/dist/x-organic-shape.js +13 -13
  68. package/dist/x-pagination.js +15 -16
  69. package/dist/x-particle-button.js +51 -51
  70. package/dist/x-popover.js +26 -24
  71. package/dist/x-progress-circle.js +9 -10
  72. package/dist/x-progress.js +10 -11
  73. package/dist/x-radio.js +11 -10
  74. package/dist/x-ripple-effect.js +11 -12
  75. package/dist/x-scroll-parallax.js +18 -19
  76. package/dist/x-scroll-stack.js +17 -18
  77. package/dist/x-scroll-story.js +34 -36
  78. package/dist/x-scroll-timeline.js +45 -46
  79. package/dist/x-scroll.js +40 -41
  80. package/dist/x-search-field.js +15 -15
  81. package/dist/x-select.js +10 -9
  82. package/dist/x-sidebar.js +17 -17
  83. package/dist/x-skeleton-group.js +12 -12
  84. package/dist/x-skeleton.js +1 -1
  85. package/dist/x-slider.js +15 -16
  86. package/dist/x-soft-body.js +22 -22
  87. package/dist/x-spacer.js +4 -5
  88. package/dist/x-spinner.js +4 -5
  89. package/dist/x-splash.js +12 -13
  90. package/dist/x-stat.js +10 -12
  91. package/dist/x-stepper.js +14 -15
  92. package/dist/x-switch.js +10 -9
  93. package/dist/x-tab.js +7 -8
  94. package/dist/x-table-cell.js +20 -24
  95. package/dist/x-table-row.js +8 -9
  96. package/dist/x-table.js +12 -15
  97. package/dist/x-tabs.js +11 -11
  98. package/dist/x-text-area.js +18 -18
  99. package/dist/x-theme.js +25 -25
  100. package/dist/x-timeline-item.js +21 -23
  101. package/dist/x-timeline.js +8 -9
  102. package/dist/x-toast.js +22 -24
  103. package/dist/x-toaster.js +8 -8
  104. package/dist/x-tooltip.js +12 -11
  105. package/dist/x-typography.js +9 -11
  106. package/dist/x-welcome-tour.js +60 -64
  107. package/package.json +21 -1
package/dist/x-popover.js CHANGED
@@ -1,25 +1,27 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Rs=function(a){switch(a){case "bottom-start":return"top-start";case "bottom-end":return"top-end";case "top-start":return"bottom-start";case "top-end":return"bottom-end";default:return a}},Ss=function(a,b,c,d){function e(v){a:{var x=$APP.M(b);var y=$APP.D(x,$APP.cm);var A=$APP.D(x,$APP.bm),C=$APP.D(x,$APP.nh);x=$APP.D(x,$APP.oh);var E=$APP.M(c),H=$APP.D(E,$APP.nh);E=$APP.D(E,$APP.oh);switch(v){case "bottom-start":y=new $APP.Q(null,2,[$APP.cm,y,$APP.bm,A+x+4],null);break a;case "bottom-end":y=new $APP.Q(null,
3
- 2,[$APP.cm,y+C-H,$APP.bm,A+x+4],null);break a;case "top-start":y=new $APP.Q(null,2,[$APP.cm,y,$APP.bm,A-E-4],null);break a;case "top-end":y=new $APP.Q(null,2,[$APP.cm,y+C-H,$APP.bm,A-E-4],null);break a;default:y=new $APP.Q(null,2,[$APP.cm,y,$APP.bm,A+x+4],null)}}A=$APP.M(y);y=$APP.D(A,$APP.cm);A=$APP.D(A,$APP.bm);C=$APP.Kh.i($APP.Jh.i(y,8),g-l-8);x=$APP.Kh.i($APP.Jh.i(A,8),h-m-8);return new $APP.Q(null,5,[$APP.cm,C,$APP.bm,x,$APP.Ni,v,$APP.om,y>=8&&y+l<=g-8&&A>=8&&A+m<=h-8,$APP.Wk,$APP.Jh.i(40,h-
4
- x-8)],null)}d=$APP.M(d);var g=$APP.D(d,$APP.nh),h=$APP.D(d,$APP.oh);d=$APP.M(c);var l=$APP.D(d,$APP.nh),m=$APP.D(d,$APP.oh),p=e(a),r=e(Rs(a));return $APP.n(function(){var v=$APP.om.g(p);return $APP.n(v)?v:$APP.q($APP.om.g(r))}())?p:r},Ts=function(a){return document.createElement(a)},bt=function(a){a=new $APP.Q(null,7,[$APP.Yi,a.hasAttribute("open"),$APP.fm,a.hasAttribute("disabled"),Us,a.hasAttribute("no-close"),Vs,a.hasAttribute("portal"),Ws,a.getAttribute("heading"),$APP.Bn,a.getAttribute("placement"),
5
- Xs,a.getAttribute("close-label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Yi),d=$APP.D(b,$APP.fm),e=$APP.D(b,Us),g=$APP.D(b,Vs),h=$APP.D(b,Ws);a=$APP.D(b,$APP.Bn);b=$APP.D(b,Xs);c=$APP.F(c);d=$APP.F(d);e=$APP.F(e);g=$APP.F(g);h=$APP.n(h)?h:"";b=$APP.n(b)?b:"Close";a=$APP.I(Ys,a)?a:"bottom-start";return new $APP.Q(null,7,[$APP.fn,c,$APP.X,d,Zs,e,$s,g,$APP.Tl,h,at,b,$APP.lk,a],null)},ct=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){a=bt(a);var c=$APP.M(a),d=$APP.D(c,$APP.fn);a=$APP.D(c,Zs);
6
- var e=$APP.D(c,$APP.Tl),g=$APP.D(c,at),h=$APP.D(c,$APP.lk),l=$APP.k(b,"panel");c=$APP.k(b,"header");var m=$APP.k(b,"heading");b=$APP.k(b,"closeBtn");l.setAttribute("data-placement",h);$APP.Pg(l,"inert",$APP.q(d));$APP.N(e,"")?l.setAttribute("aria-labelledby","popover-heading"):l.removeAttribute("aria-labelledby");m.textContent=e;b.setAttribute("aria-label",g);$APP.Pg(b,"hidden",a);b=$APP.B.i(e,"");return $APP.Pg(c,"hidden",b?a:b)}return null},it=function(a,b){var c=$APP.M(b);b=$APP.D(c,$APP.Tl);var d=
7
- $APP.D(c,at);c=$APP.D(c,Zs);a=a.shadowRoot;var e=Ts("div"),g=Ts("div"),h=Ts("div"),l=Ts("span"),m=Ts("button"),p=Ts("div"),r=Ts("div");e.setAttribute("part","panel");e.setAttribute("role","dialog");g.setAttribute("part","arrow");g.setAttribute("aria-hidden","true");h.setAttribute("part","header");l.setAttribute("part","heading");l.textContent=b;m.setAttribute("part","close-button");m.setAttribute("type","button");m.setAttribute("aria-label",d);m.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
8
- $APP.n(c)&&m.setAttribute("hidden","");d=$APP.B.i(b,"");$APP.n(d?c:d)&&h.setAttribute("hidden","");$APP.N(b,"")&&(e.setAttribute("aria-labelledby","portal-heading"),l.setAttribute("id","portal-heading"));p.setAttribute("part","body");r.setAttribute("part","footer");r.setAttribute("hidden","");h.appendChild(l);h.appendChild(m);e.appendChild(g);e.appendChild(h);e.appendChild(p);e.appendChild(r);a.appendChild(e);return new $APP.Q(null,7,[dt,e,et,g,$APP.Gj,h,$APP.Tl,l,ft,m,gt,p,ht,r],null)},jt=function(a,
9
- b){a=a.assignedNodes({flatten:!0});a=$APP.We.i($APP.ee,$APP.uc(a));for(var c=$APP.t(a),d=null,e=0,g=0;;)if(g<e){var h=d.F(null,g);b.appendChild(h);g+=1}else if(c=$APP.t(c))d=c,$APP.Nc(d)?(c=$APP.xb(d),g=$APP.yb(d),d=c,e=$APP.z(c),c=g):(c=$APP.u(d),b.appendChild(c),c=$APP.w(d),d=null,e=0),g=0;else break;return a},kt=function(a,b){if($APP.n(a.isConnected)){b=$APP.t(b);for(var c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e);a.appendChild(g);e+=1}else if(b=$APP.t(b))c=b,$APP.Nc(c)?(b=$APP.xb(c),d=$APP.yb(c),
10
- c=b,g=$APP.z(b),b=d,d=g):(g=$APP.u(c),a.appendChild(g),b=$APP.w(c),c=null,d=0),e=0;else break}},lt=function(a,b,c,d){var e=c.getBoundingClientRect();c=a.offsetWidth;var g=a.offsetHeight,h=window.innerWidth,l=window.innerHeight;d=Ss(d,new $APP.Q(null,4,[$APP.cm,e.left,$APP.bm,e.top,$APP.nh,e.width,$APP.oh,e.height],null),new $APP.Q(null,2,[$APP.nh,$APP.Jh.i(c,200),$APP.oh,$APP.Jh.i(g,100)],null),new $APP.Q(null,2,[$APP.nh,h,$APP.oh,l],null));g=$APP.Ni.g(d);a.style.left=""+$APP.S.g($APP.cm.g(d))+"px";
11
- a.style.top=""+$APP.S.g($APP.bm.g(d))+"px";a.style.maxHeight=""+$APP.S.g($APP.Wk.g(d))+"px";a=e.left+e.width/2;e=$APP.B.i(g,"bottom-start")||$APP.B.i(g,"bottom-end")?"bottom":"top";c=$APP.Kh.i($APP.Jh.i(a-$APP.cm.g(d),12),$APP.Jh.i(c,200)-12-8);b.setAttribute("data-side",e);b.style.left=""+$APP.S.g(c)+"px"},nt=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=bt(a),d=$APP.k(b,"trigger"),e=$APP.fh(a,":host{color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-height:24rem;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dpanel]{position:absolute;box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:calc(100vw - 1rem);max-height:var(--x-popover-panel-max-height);overflow-y:auto;pointer-events:auto;opacity:0;transform:scale(0.96);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing);}[part\x3dpanel][data-open]{opacity:1;transform:scale(1);}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3darrow][data-side\x3dbottom]{top:calc(var(--x-popover-arrow-size) / -2);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3darrow][data-side\x3dtop]{bottom:calc(var(--x-popover-arrow-size) / -2);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheader][hidden]{display:none;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}",
12
- 1E3),g=it(e,c),h=gt.g(g),l=ht.g(g),m=dt.g(g),p=et.g(g);g=ft.g(g);h=jt(a.shadowRoot.querySelector("slot:not([name])"),h);$APP.ja(a,"__xPopoverMovedBody",$APP.zd(h));b=jt($APP.k(b,"footerSlot"),l);$APP.ja(a,"__xPopoverMovedFooter",$APP.zd(b));$APP.z(b)>0&&l.removeAttribute("hidden");lt(m,p,d,$APP.lk.g(c));l=function(){return mt.i?mt.i(a,"close-button"):mt.call(null,a,"close-button")};b=function(r){return $APP.B.i(r.key,"Escape")?(r.preventDefault(),mt.i?mt.i(a,"escape"):mt.call(null,a,"escape")):null};
13
- h=function(r){return $APP.n(m.contains(r.target))?null:mt.i?mt.i(a,"outside-click"):mt.call(null,a,"outside-click")};g.addEventListener("click",l);e.addEventListener("keydown",b,!0);e.addEventListener("click",h);e.__onKey=b;e.__onClickBackdrop=h;e.__onCloseBtn=l;e.__closeBtnEl=g;a.__xPopoverLayer=e;requestAnimationFrame(function(){return $APP.n($APP.n(m)?a.isConnected:m)?(lt(m,p,d,$APP.lk.g(c)),m.setAttribute("data-open","")):null})}},ot=function(a){var b=$APP.k(a,"__xPopoverLayer");if($APP.n(b)){var c=
14
- $APP.k(a,"__xPopoverMovedBody");$APP.n(c)&&kt(a,$APP.uc(c));c=$APP.k(a,"__xPopoverMovedFooter");$APP.n(c)&&kt(a,$APP.uc(c));$APP.hh(b);a.__xPopoverLayer=null;a.__xPopoverMovedBody=null;a.__xPopoverMovedFooter=null}},pt=function(a,b){return $APP.q(a.hasAttribute("disabled"))&&$APP.q(a.hasAttribute("open"))&&$APP.Rg(a,"x-popover-toggle",{open:!0,source:b})?(a.setAttribute("open",""),$APP.n(a.hasAttribute("portal"))&&nt(a),$APP.Qg(a,"x-popover-change",{open:!0})):null},mt=function(a,b){var c=$APP.q(a.hasAttribute("disabled"));
15
- return $APP.n(c?a.hasAttribute("open"):c)&&$APP.Rg(a,"x-popover-toggle",{open:!1,source:b})?(ot(a),a.removeAttribute("open"),$APP.Qg(a,"x-popover-change",{open:!1})):null},qt=function(a,b){return $APP.n(a.hasAttribute("open"))?mt(a,b):pt(a,b)},rt=function(a){var b=$APP.k(a,"__xPopoverHandlers");if($APP.n(b)){var c=$APP.k(b,"docClick"),d=$APP.k(b,"docKeydown");return setTimeout(function(){var e=a.isConnected;return $APP.n($APP.n(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",
16
- d)):null},0)}return null},st=function(a){a=$APP.k(a,"__xPopoverHandlers");if($APP.n(a)){var b=$APP.k(a,"docKeydown");document.removeEventListener("click",$APP.k(a,"docClick"));return document.removeEventListener("keydown",b)}return null},tt=function(a){return{triggerClick:function(){return qt(a,"pointer")},closeBtnClick:function(){return mt(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.q(a.contains(b))?mt(a,"focusout"):null):null},
17
- docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.vc(b.composedPath()),b=$APP.Td(function(c){return c===a},b),$APP.n(b)?null:mt(a,"outside-click")):null},docKeydown:function(b){b=$APP.B.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?mt(a,"escape"):null},footerSlotchange:function(){var b=$APP.k(a,"__xPopoverRefs");return $APP.n(b)?$APP.Pg($APP.k(b,"footer"),"hidden",!($APP.k(b,"footerSlot").assignedNodes().length>0)):null}}},ut=function(a){var b=$APP.k(a,"__xPopoverRefs");
18
- if($APP.n(b)){var c=$APP.k(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.k(b,"closeBtn"),e=$APP.k(b,"footerSlot");$APP.k(b,"trigger").removeEventListener("click",$APP.k(c,"triggerClick"));d.removeEventListener("click",$APP.k(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.k(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.k(c,"footerSlotchange"))}}},vt=function(a){if(!$APP.n($APP.k(a,"__xPopoverRefs"))){var b=a.attachShadow({mode:"open"}),c=Ts("style"),d=Ts("span"),e=Ts("slot"),
19
- g=Ts("div"),h=Ts("div"),l=Ts("div"),m=Ts("span"),p=Ts("button"),r=Ts("div"),v=Ts("slot"),x=Ts("div"),y=Ts("slot");c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:min(24rem,calc(100vw - 1rem));--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}:host([portal][open]) [part\x3dpanel]{visibility:hidden !important;pointer-events:none !important;opacity:0 !important;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
20
- d.setAttribute("part","trigger");e.setAttribute("name","trigger");g.setAttribute("part","panel");g.setAttribute("role","dialog");g.setAttribute("inert","");g.setAttribute("data-placement","bottom-start");h.setAttribute("part","arrow");h.setAttribute("aria-hidden","true");l.setAttribute("part","header");m.setAttribute("part","heading");m.setAttribute("id","popover-heading");p.setAttribute("part","close-button");p.setAttribute("type","button");p.setAttribute("aria-label","Close");p.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
21
- r.setAttribute("part","body");x.setAttribute("part","footer");x.setAttribute("hidden","");y.setAttribute("name","footer");d.appendChild(e);l.appendChild(m);l.appendChild(p);r.appendChild(v);x.appendChild(y);g.appendChild(h);g.appendChild(l);g.appendChild(r);g.appendChild(x);b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xPopoverRefs={trigger:d,panel:g,header:l,heading:m,closeBtn:p,body:r,footer:x,footerSlot:y}}ut(a);st(a);a.__xPopoverHandlers=tt(a);b=$APP.k(a,"__xPopoverRefs");$APP.n(b)&&
22
- (c=$APP.k(a,"__xPopoverHandlers"),$APP.n(c)&&(d=$APP.k(b,"closeBtn"),e=$APP.k(b,"footerSlot"),$APP.k(b,"trigger").addEventListener("click",$APP.k(c,"triggerClick")),d.addEventListener("click",$APP.k(c,"closeBtnClick")),a.addEventListener("focusout",$APP.k(c,"hostFocusout")),e.addEventListener("slotchange",$APP.k(c,"footerSlotchange"))));$APP.n(a.hasAttribute("open"))&&rt(a);return ct(a)},wt=function(a){ot(a);ut(a);return st(a)},xt=function(a,b){return $APP.n($APP.k(a,"__xPopoverRefs"))?(ct(a),$APP.B.i(b,
23
- "open")?$APP.n(a.hasAttribute("open"))?rt(a):st(a):null):null},yt=function(a){$APP.Sg(a,"open","open");$APP.Sg(a,"disabled","disabled");$APP.Sg(a,"noClose","no-close");$APP.Sg(a,"portal","portal");$APP.Ug(a,"placement","placement");$APP.Ug(a,"heading","heading");$APP.Ug(a,"closeLabel","close-label");a.show=function(){return pt(this,"programmatic")};a.hide=function(){return mt(this,"programmatic")};return a.toggle=function(){return qt(this,"programmatic")}},At=function(){return $APP.Lg("x-popover",
24
- new $APP.Q(null,5,[$APP.Cg,zt,$APP.Dg,vt,$APP.Eg,wt,$APP.Fg,xt,$APP.Jg,yt],null))},dt=new $APP.K(null,"panel","panel",-558637456),ht=new $APP.K(null,"footer","footer",1606445390),at=new $APP.K(null,"close-label","close-label",-1088385889),Zs=new $APP.K(null,"no-close?","no-close?",1842227643),Xs=new $APP.K(null,"close-label-raw","close-label-raw",798572883),$s=new $APP.K(null,"portal?","portal?",-167584340),gt=new $APP.K(null,"body","body",-2049205669),Ws=new $APP.K(null,"heading-raw","heading-raw",
25
- 116296555),ft=new $APP.K(null,"closeBtn","closeBtn",1947660915),Us=new $APP.K(null,"no-close-present?","no-close-present?",-154717274),et=new $APP.K(null,"arrow","arrow",1071351425),Vs=new $APP.K(null,"portal-present?","portal-present?",-463262026);var Ys=new $APP.R(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),zt="open placement heading close-label no-close disabled portal".split(" ");$APP.Pd(["x-popover-toggle",new $APP.Q(null,2,[$APP.Km,!0,$APP.V,new $APP.Q(null,2,[$APP.Hm,$APP.uk,$APP.Kl,$APP.Y],null)],null),"x-popover-change",new $APP.Q(null,2,[$APP.Km,!1,$APP.V,new $APP.Q(null,1,[$APP.Hm,$APP.uk],null)],null)]);$APP.ha("baredom.exports.x_popover.init",At);export const init=At;
2
+ var Mt=function(a){switch(a){case "bottom-start":return"top-start";case "bottom-end":return"top-end";case "top-start":return"bottom-start";case "top-end":return"bottom-end";default:return a}},Nt=function(a,b,c,d){function e(v){a:{var x=$APP.J(b);var y=$APP.C(x,$APP.cn);var A=$APP.C(x,$APP.bn),D=$APP.C(x,$APP.ki);x=$APP.C(x,$APP.li);var G=$APP.J(c),I=$APP.C(G,$APP.ki);G=$APP.C(G,$APP.li);switch(v){case "bottom-start":y=new $APP.N(null,2,[$APP.cn,y,$APP.bn,A+x+4],null);break a;case "bottom-end":y=new $APP.N(null,
3
+ 2,[$APP.cn,y+D-I,$APP.bn,A+x+4],null);break a;case "top-start":y=new $APP.N(null,2,[$APP.cn,y,$APP.bn,A-G-4],null);break a;case "top-end":y=new $APP.N(null,2,[$APP.cn,y+D-I,$APP.bn,A-G-4],null);break a;default:y=new $APP.N(null,2,[$APP.cn,y,$APP.bn,A+x+4],null)}}A=$APP.J(y);y=$APP.C(A,$APP.cn);A=$APP.C(A,$APP.bn);D=$APP.Ii.i($APP.Hi.i(y,8),f-l-8);x=$APP.Ii.i($APP.Hi.i(A,8),h-m-8);return new $APP.N(null,5,[$APP.cn,D,$APP.bn,x,$APP.Ej,v,$APP.pn,y>=8&&y+l<=f-8&&A>=8&&A+m<=h-8,$APP.Ml,$APP.Hi.i(40,h-
4
+ x-8)],null)}d=$APP.J(d);var f=$APP.C(d,$APP.ki),h=$APP.C(d,$APP.li);d=$APP.J(c);var l=$APP.C(d,$APP.ki),m=$APP.C(d,$APP.li),q=e(a),r=e(Mt(a));return $APP.n(function(){var v=$APP.pn.g(q);return $APP.n(v)?v:$APP.p($APP.pn.g(r))}())?q:r},Ot=function(a){return document.createElement(a)},Xt=function(a){a=new $APP.N(null,7,[$APP.Pj,a.hasAttribute("open"),$APP.Fh,a.hasAttribute("disabled"),Pt,a.hasAttribute("no-close"),Qt,a.hasAttribute("portal"),Rt,a.getAttribute("heading"),$APP.vo,a.getAttribute("placement"),
5
+ St,a.getAttribute("close-label")],null);var b=$APP.J(a),c=$APP.C(b,$APP.Pj),d=$APP.C(b,$APP.Fh),e=$APP.C(b,Pt),f=$APP.C(b,Qt),h=$APP.C(b,Rt);a=$APP.C(b,$APP.vo);b=$APP.C(b,St);c=$APP.E(c);d=$APP.E(d);e=$APP.E(e);f=$APP.E(f);h=$APP.n(h)?h:"";b=$APP.n(b)?b:"Close";a=$APP.Zc(Tt,a)?a:"bottom-start";return new $APP.N(null,7,[$APP.ao,c,$APP.Y,d,Ut,e,Vt,f,$APP.Nm,h,Wt,b,$APP.bl,a],null)},Yt=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){a=Xt(a);var c=$APP.J(a),d=$APP.C(c,$APP.ao);a=$APP.C(c,
6
+ Ut);var e=$APP.C(c,$APP.Nm),f=$APP.C(c,Wt),h=$APP.C(c,$APP.bl),l=$APP.k(b,"panel");c=$APP.k(b,"header");var m=$APP.k(b,"heading");b=$APP.k(b,"closeBtn");l.setAttribute("data-placement",h);$APP.bh(l,"inert",$APP.p(d));$APP.M(e,"")?l.setAttribute("aria-labelledby","popover-heading"):l.removeAttribute("aria-labelledby");m.textContent=e;b.setAttribute("aria-label",f);$APP.bh(b,"hidden",a);b=$APP.B.i(e,"");return $APP.bh(c,"hidden",b?a:b)}return null},du=function(a,b){var c=$APP.J(b);b=$APP.C(c,$APP.Nm);
7
+ var d=$APP.C(c,Wt);c=$APP.C(c,Ut);a=a.shadowRoot;var e=Ot("div"),f=Ot("div"),h=Ot("div"),l=Ot("span"),m=Ot("button"),q=Ot("div"),r=Ot("div");e.setAttribute("part","panel");e.setAttribute("role","dialog");f.setAttribute("part","arrow");f.setAttribute("aria-hidden","true");h.setAttribute("part","header");l.setAttribute("part","heading");l.textContent=b;m.setAttribute("part","close-button");m.setAttribute("type","button");m.setAttribute("aria-label",d);m.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
8
+ $APP.n(c)&&m.setAttribute("hidden","");d=$APP.B.i(b,"");$APP.n(d?c:d)&&h.setAttribute("hidden","");$APP.M(b,"")&&(e.setAttribute("aria-labelledby","portal-heading"),l.setAttribute("id","portal-heading"));q.setAttribute("part","body");r.setAttribute("part","footer");r.setAttribute("hidden","");h.appendChild(l);h.appendChild(m);e.appendChild(f);e.appendChild(h);e.appendChild(q);e.appendChild(r);a.appendChild(e);return new $APP.N(null,7,[Zt,e,$t,f,$APP.xk,h,$APP.Nm,l,au,m,bu,q,cu,r],null)},eu=function(a,
9
+ b){a=a.assignedNodes({flatten:!0});a=$APP.hf.i($APP.pe,$APP.Bc(a));for(var c=$APP.t(a),d=null,e=0,f=0;;)if(f<e){var h=d.F(null,f);b.appendChild(h);f+=1}else if(c=$APP.t(c))d=c,$APP.Vc(d)?(c=$APP.Db(d),f=$APP.Eb(d),d=c,e=$APP.z(c),c=f):(c=$APP.u(d),b.appendChild(c),c=$APP.w(d),d=null,e=0),f=0;else break;return a},fu=function(a,b){if($APP.n(a.isConnected)){b=$APP.t(b);for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e);a.appendChild(f);e+=1}else if(b=$APP.t(b))c=b,$APP.Vc(c)?(b=$APP.Db(c),d=$APP.Eb(c),
10
+ c=b,f=$APP.z(b),b=d,d=f):(f=$APP.u(c),a.appendChild(f),b=$APP.w(c),c=null,d=0),e=0;else break}},gu=function(a,b,c,d){var e=c.getBoundingClientRect();c=a.offsetWidth;var f=a.offsetHeight,h=window.innerWidth,l=window.innerHeight;d=Nt(d,new $APP.N(null,4,[$APP.cn,e.left,$APP.bn,e.top,$APP.ki,e.width,$APP.li,e.height],null),new $APP.N(null,2,[$APP.ki,$APP.Hi.i(c,200),$APP.li,$APP.Hi.i(f,100)],null),new $APP.N(null,2,[$APP.ki,h,$APP.li,l],null));f=$APP.Ej.g(d);a.style.left=""+$APP.Q.g($APP.cn.g(d))+"px";
11
+ a.style.top=""+$APP.Q.g($APP.bn.g(d))+"px";a.style.maxHeight=""+$APP.Q.g($APP.Ml.g(d))+"px";a=e.left+e.width/2;e=$APP.B.i(f,"bottom-start")||$APP.B.i(f,"bottom-end")?"bottom":"top";c=$APP.Ii.i($APP.Hi.i(a-$APP.cn.g(d),12),$APP.Hi.i(c,200)-12-8);b.setAttribute("data-side",e);b.style.left=""+$APP.Q.g(c)+"px"},iu=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=Xt(a),d=$APP.k(b,"trigger"),e=$APP.zh(a,":host{color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-height:24rem;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dpanel]{position:absolute;box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:calc(100vw - 1rem);max-height:var(--x-popover-panel-max-height);overflow-y:auto;pointer-events:auto;opacity:0;transform:scale(0.96);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing);}[part\x3dpanel][data-open]{opacity:1;transform:scale(1);}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3darrow][data-side\x3dbottom]{top:calc(var(--x-popover-arrow-size) / -2);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3darrow][data-side\x3dtop]{bottom:calc(var(--x-popover-arrow-size) / -2);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheader][hidden]{display:none;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}",
12
+ 1E3),f=du(e,c),h=bu.g(f),l=cu.g(f),m=Zt.g(f),q=$t.g(f);f=au.g(f);h=eu(a.shadowRoot.querySelector("slot:not([name])"),h);$APP.fa(a,"__xPopoverMovedBody",$APP.bd(h));b=eu($APP.k(b,"footerSlot"),l);$APP.fa(a,"__xPopoverMovedFooter",$APP.bd(b));$APP.z(b)>0&&l.removeAttribute("hidden");gu(m,q,d,$APP.bl.g(c));l=function(){return hu.i?hu.i(a,"close-button"):hu.call(null,a,"close-button")};b=function(r){return $APP.B.i(r.key,"Escape")?(r.preventDefault(),hu.i?hu.i(a,"escape"):hu.call(null,a,"escape")):null};
13
+ h=function(r){return $APP.n(m.contains(r.target))?null:hu.i?hu.i(a,"outside-click"):hu.call(null,a,"outside-click")};f.addEventListener("click",l);e.addEventListener("keydown",b,!0);e.addEventListener("click",h);e.__xOverlayOnKey=b;e.__xOverlayOnClickBackdrop=h;e.__xOverlayOnCloseBtn=l;e.__xOverlayCloseBtnEl=f;a.__xPopoverLayer=e;requestAnimationFrame(function(){return $APP.n($APP.n(m)?a.isConnected:m)?(gu(m,q,d,$APP.bl.g(c)),m.setAttribute("data-open","")):null})}},ju=function(a){var b=$APP.k(a,
14
+ "__xPopoverLayer");if($APP.n(b)){var c=$APP.k(a,"__xPopoverMovedBody");$APP.n(c)&&fu(a,$APP.Bc(c));c=$APP.k(a,"__xPopoverMovedFooter");$APP.n(c)&&fu(a,$APP.Bc(c));$APP.Bh(b);a.__xPopoverLayer=null;a.__xPopoverMovedBody=null;a.__xPopoverMovedFooter=null}},ku=function(a,b){return $APP.p(a.hasAttribute("disabled"))&&$APP.p(a.hasAttribute("open"))&&$APP.ch(a,"x-popover-toggle",{open:!0,source:b})?(a.setAttribute("open",""),$APP.n(a.hasAttribute("portal"))&&iu(a),$APP.P(a,"x-popover-change",{open:!0})):
15
+ null},hu=function(a,b){var c=$APP.p(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):c)&&$APP.ch(a,"x-popover-toggle",{open:!1,source:b})?(ju(a),a.removeAttribute("open"),$APP.P(a,"x-popover-change",{open:!1})):null},lu=function(a,b){return $APP.n(a.hasAttribute("open"))?hu(a,b):ku(a,b)},mu=function(a){var b=$APP.k(a,"__xPopoverHandlers");if($APP.n(b)){var c=$APP.k(b,"docClick"),d=$APP.k(b,"docKeydown");return setTimeout(function(){var e=a.isConnected;return $APP.n($APP.n(e)?a.hasAttribute("open"):
16
+ e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},nu=function(a){a=$APP.k(a,"__xPopoverHandlers");if($APP.n(a)){var b=$APP.k(a,"docKeydown");document.removeEventListener("click",$APP.k(a,"docClick"));return document.removeEventListener("keydown",b)}return null},ou=function(a){return{triggerClick:function(){return lu(a,"pointer")},closeBtnClick:function(){return hu(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?
17
+ (b=b.relatedTarget,b==null||$APP.p(a.contains(b))?hu(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.Cc(b.composedPath()),b=$APP.be(function(c){return c===a},b),$APP.n(b)?null:hu(a,"outside-click")):null},docKeydown:function(b){b=$APP.B.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?hu(a,"escape"):null},footerSlotchange:function(){var b=$APP.k(a,"__xPopoverRefs");return $APP.n(b)?$APP.bh($APP.k(b,"footer"),"hidden",!($APP.k(b,"footerSlot").assignedNodes().length>
18
+ 0)):null}}},pu=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.k(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.k(b,"closeBtn"),e=$APP.k(b,"footerSlot");$APP.k(b,"trigger").removeEventListener("click",$APP.k(c,"triggerClick"));d.removeEventListener("click",$APP.k(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.k(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.k(c,"footerSlotchange"))}}},qu=function(a){if(!$APP.n($APP.k(a,"__xPopoverRefs"))){var b=a.attachShadow({mode:"open"}),
19
+ c=Ot("style"),d=Ot("span"),e=Ot("slot"),f=Ot("div"),h=Ot("div"),l=Ot("div"),m=Ot("span"),q=Ot("button"),r=Ot("div"),v=Ot("slot"),x=Ot("div"),y=Ot("slot");c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:min(24rem,calc(100vw - 1rem));--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}:host([portal][open]) [part\x3dpanel]{visibility:hidden !important;pointer-events:none !important;opacity:0 !important;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
20
+ d.setAttribute("part","trigger");e.setAttribute("name","trigger");f.setAttribute("part","panel");f.setAttribute("role","dialog");f.setAttribute("inert","");f.setAttribute("data-placement","bottom-start");h.setAttribute("part","arrow");h.setAttribute("aria-hidden","true");l.setAttribute("part","header");m.setAttribute("part","heading");m.setAttribute("id","popover-heading");q.setAttribute("part","close-button");q.setAttribute("type","button");q.setAttribute("aria-label","Close");q.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
21
+ r.setAttribute("part","body");x.setAttribute("part","footer");x.setAttribute("hidden","");y.setAttribute("name","footer");d.appendChild(e);l.appendChild(m);l.appendChild(q);r.appendChild(v);x.appendChild(y);f.appendChild(h);f.appendChild(l);f.appendChild(r);f.appendChild(x);b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xPopoverRefs={trigger:d,panel:f,header:l,heading:m,closeBtn:q,body:r,footer:x,footerSlot:y}}pu(a);nu(a);a.__xPopoverHandlers=ou(a);b=$APP.k(a,"__xPopoverRefs");$APP.n(b)&&
22
+ (c=$APP.k(a,"__xPopoverHandlers"),$APP.n(c)&&(d=$APP.k(b,"closeBtn"),e=$APP.k(b,"footerSlot"),$APP.k(b,"trigger").addEventListener("click",$APP.k(c,"triggerClick")),d.addEventListener("click",$APP.k(c,"closeBtnClick")),a.addEventListener("focusout",$APP.k(c,"hostFocusout")),e.addEventListener("slotchange",$APP.k(c,"footerSlotchange"))));$APP.n(a.hasAttribute("open"))&&mu(a);return Yt(a)},ru=function(a){ju(a);pu(a);return nu(a)},su=function(a,b){return $APP.n($APP.k(a,"__xPopoverRefs"))?(Yt(a),$APP.B.i(b,
23
+ "open")?$APP.n(a.hasAttribute("open"))?mu(a):nu(a):null):null},uu=function(a){$APP.jh(a,tu);a.show=function(){return ku(this,"programmatic")};a.hide=function(){return hu(this,"programmatic")};return a.toggle=function(){return lu(this,"programmatic")}},wu=function(){return $APP.Yg("x-popover",new $APP.N(null,5,[$APP.Pg,vu,$APP.Qg,qu,$APP.Rg,ru,$APP.Sg,su,$APP.Wg,uu],null))},Zt=new $APP.F(null,"panel","panel",-558637456),cu=new $APP.F(null,"footer","footer",1606445390),Wt=new $APP.F(null,"close-label",
24
+ "close-label",-1088385889),Ut=new $APP.F(null,"no-close?","no-close?",1842227643),St=new $APP.F(null,"close-label-raw","close-label-raw",798572883),Vt=new $APP.F(null,"portal?","portal?",-167584340),bu=new $APP.F(null,"body","body",-2049205669),Rt=new $APP.F(null,"heading-raw","heading-raw",116296555),au=new $APP.F(null,"closeBtn","closeBtn",1947660915),Pt=new $APP.F(null,"no-close-present?","no-close-present?",-154717274),$t=new $APP.F(null,"arrow","arrow",1071351425),Qt=new $APP.F(null,"portal-present?",
25
+ "portal-present?",-463262026);var Tt=new $APP.O(null,new $APP.N(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),vu="open placement heading close-label no-close disabled portal".split(" "),tu=new $APP.N(null,7,[$APP.Bn,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"open"],null),$APP.bl,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"placement"],null),$APP.Nm,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"heading"],null),new $APP.F(null,"closeLabel","closeLabel",557288558),new $APP.N(null,2,[$APP.R,$APP.U,
26
+ $APP.S,"close-label"],null),new $APP.F(null,"noClose","noClose",1115851533),new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"no-close"],null),$APP.al,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"disabled"],null),new $APP.F(null,"portal","portal",2002989957),new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"portal"],null)],null);
27
+ $APP.Yd(["x-popover-toggle",new $APP.N(null,2,[$APP.Fn,!0,$APP.Z,new $APP.N(null,2,[$APP.Bn,$APP.T,$APP.Em,$APP.U],null)],null),"x-popover-change",new $APP.N(null,2,[$APP.Fn,!1,$APP.Z,new $APP.N(null,1,[$APP.Bn,$APP.T],null)],null)]);$APP.ca("baredom.exports.x_popover.init",wu);export const init=wu;
@@ -1,11 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var dZ=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},gZ=function(a){var b=new $APP.Q(null,7,[$APP.pj,a.getAttribute("value"),$APP.nl,a.getAttribute("max"),$APP.lh,a.getAttribute("variant"),$APP.di,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.Fk,a.hasAttribute("show-value"),$APP.Nm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.nl),e=$APP.D(c,$APP.pj),g=$APP.D(c,$APP.lh),h=$APP.D(c,$APP.di);b=$APP.D(c,$APP.T);var l=$APP.D(c,
3
- $APP.Fk);c=$APP.D(c,$APP.Nm);d=dZ(d,100);d=d>0?d:100;e=$APP.Kh.i($APP.Jh.i(dZ(e,0),0),d);g=typeof g==="string"&&$APP.I(eZ,g)?g:"default";h=typeof h==="string"&&$APP.I(fZ,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.Kh.i($APP.Jh.i(e/d*100,0),100);b=$APP.zf([$APP.lh,$APP.Fk,$APP.pj,$APP.di,$APP.Nm,$APP.rn,$APP.nl,$APP.T,$APP.em],[g,l,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.em);l=$APP.D(p,$APP.lh);d=$APP.D(p,
4
- $APP.Fk);h=$APP.D(p,$APP.pj);c=$APP.D(p,$APP.di);e=$APP.D(p,$APP.rn);g=$APP.D(p,$APP.Nm);m=$APP.D(p,$APP.T);p=$APP.D(p,$APP.nl);var r=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),x=$APP.k(a,"__xProgressCircleValueNode"),y=$APP.k(a,"__xProgressCircleCompleted"),A=$APP.q(g)&&h>=p,C=$APP.n(g)?75:100*(1-b/100);r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.S.g(100));
5
- v.setAttribute("stroke-dashoffset",""+$APP.S.g(C));x.textContent=$APP.n($APP.n(d)?$APP.q(g):d)?""+$APP.S.g(Math.round(b))+"%":"";x.style.display=$APP.n($APP.n(d)?$APP.q(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",
6
- e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.q(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.F(A)},hZ=function(a){if(!$APP.n($APP.k(a,"__xProgressCircleInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg",
7
- "circle"),h=document.createElementNS("http://www.w3.org/2000/svg","circle"),l=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:var(--x-color-primary,#3b82f6);--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:var(--x-transition-duration,0.3s);}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
8
- d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");g.setAttribute("part","track");g.setAttribute("cx","18");g.setAttribute("cy","18");g.setAttribute("r","15.9155");h.setAttribute("part","fill");h.setAttribute("cx","18");h.setAttribute("cy","18");h.setAttribute("r","15.9155");l.setAttribute("part","center");m.setAttribute("part","value-text");e.appendChild(g);e.appendChild(h);l.appendChild(m);
9
- d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressCircleBase=d;a.__xProgressCircleFill=h;a.__xProgressCircleValueNode=m;a.__xProgressCircleInit=!0}gZ(a);return null},iZ=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xProgressCircleInit"))&&gZ(a);return null},jZ=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});
10
- Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
11
- set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},lZ=function(){return $APP.Lg("x-progress-circle",new $APP.Q(null,4,[$APP.Cg,kZ,$APP.Dg,hZ,$APP.Fg,iZ,$APP.Jg,jZ],null))};var eZ=new $APP.R(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),fZ=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),kZ="value max variant size label show-value indeterminate".split(" ");$APP.Pd(["x-progress-circle-complete",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,2,[$APP.pj,$APP.W,$APP.nl,$APP.W],null)],null)]);$APP.ha("baredom.exports.x_progress_circle.init",lZ);export const init=lZ;
2
+ var v0=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},y0=function(a){var b=new $APP.N(null,7,[$APP.Gh,a.getAttribute("value"),$APP.em,a.getAttribute("max"),$APP.ii,a.getAttribute("variant"),$APP.bj,a.getAttribute("size"),$APP.X,a.getAttribute("label"),$APP.ul,a.hasAttribute("show-value"),$APP.In,a.hasAttribute("indeterminate")],null);var c=$APP.J(b),d=$APP.C(c,$APP.em),e=$APP.C(c,$APP.Gh),f=$APP.C(c,$APP.ii),h=$APP.C(c,$APP.bj);b=$APP.C(c,$APP.X);var l=$APP.C(c,
3
+ $APP.ul);c=$APP.C(c,$APP.In);d=v0(d,100);d=d>0?d:100;e=$APP.Ii.i($APP.Hi.i(v0(e,0),0),d);f=typeof f==="string"&&$APP.Zc(w0,f)?f:"default";h=typeof h==="string"&&$APP.Zc(x0,h)?h:"md";c=$APP.E(c);l=$APP.E(l);var m=c?50:$APP.Ii.i($APP.Hi.i(e/d*100,0),100);b=$APP.Lf([$APP.ii,$APP.ul,$APP.Gh,$APP.bj,$APP.In,$APP.lo,$APP.em,$APP.X,$APP.en],[f,l,e,h,c,c?"Loading…":""+$APP.Q.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.M("",b)?b:null,m]);var q=$APP.J(b);b=$APP.C(q,$APP.en);l=$APP.C(q,$APP.ii);d=$APP.C(q,
4
+ $APP.ul);h=$APP.C(q,$APP.Gh);c=$APP.C(q,$APP.bj);e=$APP.C(q,$APP.lo);f=$APP.C(q,$APP.In);m=$APP.C(q,$APP.X);q=$APP.C(q,$APP.em);var r=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),x=$APP.k(a,"__xProgressCircleValueNode"),y=$APP.k(a,"__xProgressCircleCompleted"),A=$APP.p(f)&&h>=q,D=$APP.n(f)?75:100*(1-b/100);r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(f)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.Q.g(100));
5
+ v.setAttribute("stroke-dashoffset",""+$APP.Q.g(D));x.textContent=$APP.n($APP.n(d)?$APP.p(f):d)?""+$APP.Q.g(Math.round(b))+"%":"";x.style.display=$APP.n($APP.n(d)?$APP.p(f):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(f)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.Q.g(h)),a.setAttribute("aria-valuemax",""+$APP.Q.g(q)),a.setAttribute("aria-valuetext",
6
+ e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.p(y)&&$APP.P(a,"x-progress-circle-complete",{value:h,max:q});a.__xProgressCircleCompleted=$APP.E(A)},z0=function(a){if(!$APP.n($APP.k(a,"__xProgressCircleInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),f=document.createElementNS("http://www.w3.org/2000/svg","circle"),
7
+ h=document.createElementNS("http://www.w3.org/2000/svg","circle"),l=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:var(--x-color-primary,#3b82f6);--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:var(--x-transition-duration,0.3s);}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
8
+ d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");f.setAttribute("part","track");f.setAttribute("cx","18");f.setAttribute("cy","18");f.setAttribute("r","15.9155");h.setAttribute("part","fill");h.setAttribute("cx","18");h.setAttribute("cy","18");h.setAttribute("r","15.9155");l.setAttribute("part","center");m.setAttribute("part","value-text");e.appendChild(f);e.appendChild(h);l.appendChild(m);
9
+ d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressCircleBase=d;a.__xProgressCircleFill=h;a.__xProgressCircleValueNode=m;a.__xProgressCircleInit=!0}y0(a);return null},A0=function(a,b,c,d){$APP.M(c,d)&&$APP.n($APP.k(a,"__xProgressCircleInit"))&&y0(a);return null},B0=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});
10
+ Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});$APP.dh(a,"indeterminate","indeterminate");return $APP.dh(a,"showValue","show-value")},D0=function(){return $APP.Yg("x-progress-circle",new $APP.N(null,4,[$APP.Pg,C0,$APP.Qg,z0,$APP.Sg,A0,$APP.Wg,B0],null))};var w0=new $APP.O(null,new $APP.N(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),x0=new $APP.O(null,new $APP.N(null,3,["md",null,"lg",null,"sm",null],null),null),C0="value max variant size label show-value indeterminate".split(" ");$APP.Yd(["x-progress-circle-complete",new $APP.N(null,1,[$APP.Z,new $APP.N(null,2,[$APP.Gh,$APP.V,$APP.em,$APP.V],null)],null)]);$APP.ca("baredom.exports.x_progress_circle.init",D0);export const init=D0;
@@ -1,12 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var b$=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},d$=function(a){var b=new $APP.Q(null,7,[$APP.pj,a.getAttribute("value"),$APP.nl,a.getAttribute("max"),$APP.lh,a.getAttribute("variant"),$APP.di,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.Fk,a.hasAttribute("show-value"),$APP.Nm,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.nl),e=$APP.D(c,$APP.pj),g=$APP.D(c,$APP.lh),h=$APP.D(c,$APP.di);b=$APP.D(c,$APP.T);var l=$APP.D(c,
3
- $APP.Fk);c=$APP.D(c,$APP.Nm);d=b$(d,100);d=d>0?d:100;e=$APP.Kh.i($APP.Jh.i(b$(e,0),0),d);g=typeof g==="string"&&$APP.I(c$,g)?g:"default";h=typeof h==="string"&&$APP.I(aaa,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.Kh.i($APP.Jh.i(e/d*100,0),100);b=$APP.zf([$APP.lh,$APP.Fk,$APP.pj,$APP.di,$APP.Nm,$APP.rn,$APP.nl,$APP.T,$APP.em],[g,l,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.em);l=$APP.D(p,$APP.lh);d=$APP.D(p,
4
- $APP.Fk);h=$APP.D(p,$APP.pj);c=$APP.D(p,$APP.di);e=$APP.D(p,$APP.rn);g=$APP.D(p,$APP.Nm);m=$APP.D(p,$APP.T);p=$APP.D(p,$APP.nl);var r=$APP.k(a,"__xProgressBase"),v=$APP.k(a,"__xProgressHeader"),x=$APP.k(a,"__xProgressFill"),y=$APP.k(a,"__xProgressLabel"),A=$APP.k(a,"__xProgressValue");var C=(C=m!=null)?C:d;var E=$APP.k(a,"__xProgressCompleted"),H=$APP.q(g)&&h>=p;r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");x.style.width=
5
- $APP.n(g)?"40%":""+$APP.S.g(b.toFixed(2))+"%";v.style.display=$APP.n(C)?"flex":"none";y.textContent=$APP.n(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.q(g):d)?""+$APP.S.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),
6
- a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");H&&$APP.q(E)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.F(H)},baa=function(a){if(!$APP.n($APP.k(a,"__xProgressInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),
7
- g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("div"),m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:var(--x-radius-full,9999px);--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:var(--x-color-primary,#3b82f6);--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:var(--x-font-size-sm,0.875rem);color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
8
- d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");l.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);l.appendChild(m);d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressBase=d;a.__xProgressHeader=e;a.__xProgressFill=m;a.__xProgressLabel=g;a.__xProgressValue=h;a.__xProgressInit=!0}d$(a);return null},caa=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,
9
- "__xProgressInit"))&&d$(a);return null},daa=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},
10
- set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("variant",
11
- ""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},e$=function(){return $APP.Lg("x-progress",
12
- new $APP.Q(null,4,[$APP.Cg,eaa,$APP.Dg,baa,$APP.Fg,caa,$APP.Jg,daa],null))};var c$=new $APP.R(null,new $APP.Q(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),aaa=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),eaa="value max variant size label show-value indeterminate".split(" ");$APP.Pd(["x-progress-complete",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,2,[$APP.pj,$APP.W,$APP.nl,$APP.W],null)],null)]);$APP.ha("baredom.exports.x_progress.init",e$);export const init=e$;
2
+ var c$=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},d$=function(a){var b=new $APP.N(null,7,[$APP.Gh,a.getAttribute("value"),$APP.em,a.getAttribute("max"),$APP.ii,a.getAttribute("variant"),$APP.bj,a.getAttribute("size"),$APP.X,a.getAttribute("label"),$APP.ul,a.hasAttribute("show-value"),$APP.In,a.hasAttribute("indeterminate")],null);var c=$APP.J(b),d=$APP.C(c,$APP.em),e=$APP.C(c,$APP.Gh),f=$APP.C(c,$APP.ii),h=$APP.C(c,$APP.bj);b=$APP.C(c,$APP.X);var l=$APP.C(c,
3
+ $APP.ul);c=$APP.C(c,$APP.In);d=c$(d,100);d=d>0?d:100;e=$APP.Ii.i($APP.Hi.i(c$(e,0),0),d);f=typeof f==="string"&&$APP.Zc(kca,f)?f:"default";h=typeof h==="string"&&$APP.Zc(lca,h)?h:"md";c=$APP.E(c);l=$APP.E(l);var m=c?50:$APP.Ii.i($APP.Hi.i(e/d*100,0),100);b=$APP.Lf([$APP.ii,$APP.ul,$APP.Gh,$APP.bj,$APP.In,$APP.lo,$APP.em,$APP.X,$APP.en],[f,l,e,h,c,c?"Loading…":""+$APP.Q.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.M("",b)?b:null,m]);var q=$APP.J(b);b=$APP.C(q,$APP.en);l=$APP.C(q,$APP.ii);d=$APP.C(q,
4
+ $APP.ul);h=$APP.C(q,$APP.Gh);c=$APP.C(q,$APP.bj);e=$APP.C(q,$APP.lo);f=$APP.C(q,$APP.In);m=$APP.C(q,$APP.X);q=$APP.C(q,$APP.em);var r=$APP.k(a,"__xProgressBase"),v=$APP.k(a,"__xProgressHeader"),x=$APP.k(a,"__xProgressFill"),y=$APP.k(a,"__xProgressLabel"),A=$APP.k(a,"__xProgressValue");var D=(D=m!=null)?D:d;var G=$APP.k(a,"__xProgressCompleted"),I=$APP.p(f)&&h>=q;r.setAttribute("data-variant",l);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(f)?"true":"false");x.style.width=
5
+ $APP.n(f)?"40%":""+$APP.Q.g(b.toFixed(2))+"%";v.style.display=$APP.n(D)?"flex":"none";y.textContent=$APP.n(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.p(f):d)?""+$APP.Q.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(f)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.Q.g(h)),
6
+ a.setAttribute("aria-valuemax",""+$APP.Q.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");I&&$APP.p(G)&&$APP.P(a,"x-progress-complete",{value:h,max:q});a.__xProgressCompleted=$APP.E(I)},mca=function(a){if(!$APP.n($APP.k(a,"__xProgressInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("span"),
7
+ h=document.createElement("span"),l=document.createElement("div"),m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:var(--x-radius-full,9999px);--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:var(--x-color-primary,#3b82f6);--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:var(--x-font-size-sm,0.875rem);color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
8
+ d.setAttribute("part","base");e.setAttribute("part","header");f.setAttribute("part","label-text");h.setAttribute("part","value-text");l.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(f);e.appendChild(h);l.appendChild(m);d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xProgressBase=d;a.__xProgressHeader=e;a.__xProgressFill=m;a.__xProgressLabel=f;a.__xProgressValue=h;a.__xProgressInit=!0}d$(a);return null},nca=function(a,b,c,d){$APP.M(c,d)&&$APP.n($APP.k(a,
9
+ "__xProgressInit"))&&d$(a);return null},oca=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});$APP.dh(a,"indeterminate","indeterminate");
10
+ $APP.dh(a,"showValue","show-value");Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("size",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},
11
+ set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},e$=function(){return $APP.Yg("x-progress",new $APP.N(null,4,[$APP.Pg,pca,$APP.Qg,mca,$APP.Sg,nca,$APP.Wg,oca],null))};var kca=new $APP.O(null,new $APP.N(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),lca=new $APP.O(null,new $APP.N(null,3,["md",null,"lg",null,"sm",null],null),null),pca="value max variant size label show-value indeterminate".split(" ");$APP.Yd(["x-progress-complete",new $APP.N(null,1,[$APP.Z,new $APP.N(null,2,[$APP.Gh,$APP.V,$APP.em,$APP.V],null)],null)]);$APP.ca("baredom.exports.x_progress.init",e$);export const init=e$;
package/dist/x-radio.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Tt=function(a){a=$APP.zf([$APP.Sl,$APP.fm,$APP.ei,$APP.ui,$APP.Kj,$APP.dk,$APP.Wm,$APP.pk,$APP.Uj],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=$APP.D(b,$APP.pk);var c=$APP.D(b,$APP.Uj),d=$APP.D(b,$APP.Sl),e=$APP.D(b,$APP.fm),g=$APP.D(b,$APP.ei),h=$APP.D(b,$APP.ui),l=$APP.D(b,
3
- $APP.Kj),m=$APP.D(b,$APP.dk);b=$APP.D(b,$APP.Wm);l=$APP.F(l);g=$APP.F(g);return $APP.zf([$APP.Ei,$APP.yi,$APP.wn,$APP.Wj,$APP.oi,$APP.Sj,$APP.pj,$APP.wk,$APP.sn,$APP.hm,$APP.X],[g,l?"true":"false",$APP.F(m),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},Ut=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=Tt(a);var d=$APP.X.g(b),e=$APP.Wj.g(b);$APP.Og(c,"aria-checked",$APP.yi.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");$APP.Og(c,"aria-required",
4
- $APP.n($APP.Ei.g(b))?"true":"false");$APP.Og(c,"aria-readonly",$APP.n($APP.wn.g(b))?"true":"false");var g=$APP.hm.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.wk.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.sn.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");$APP.Pg(a,"data-checked",e);$APP.Pg(a,"data-disabled",
5
- d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.pj.g(b):null):null}return null},Vt=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.N(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.B.i(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},Wt=function(a){a=Vt(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=
6
- $APP.k(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.k(e,"control"),d=$APP.n(b)?$APP.B.i(d,b)?0:-1:$APP.B.i(d,c)?0:-1,e.tabIndex=d):null})},Xt=function(a){var b=Tt(a),c=$APP.X.g(b),d=$APP.wn.g(b),e=$APP.Wj.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.pj.g(b);return $APP.Rg(a,"x-radio-change-request",{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),Ut(a),Vt(a).forEach(function(g){var h=$APP.N(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),
7
- Ut(g)):null}),Wt(a),$APP.Qg(a,"x-radio-change",{value:b,checked:!0})):null},Yt=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?$APP.k(a,"control").focus():null},Zt=function(a){return function(b){var c=b.key,d=Vt(a),e=d.length,g=d.indexOf(a);if($APP.B.i(c," ")||$APP.B.i(c,"Enter"))return b.preventDefault(),Xt(a);if($APP.B.i(c,"ArrowDown")||$APP.B.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.ed(g+1,e)],Xt(b),Yt(b)}else if($APP.B.i(c,"ArrowUp")||$APP.B.i(c,"ArrowLeft"))if(b.preventDefault(),
8
- e>0)return b=d[$APP.ed(g-1,e)],Xt(b),Yt(b);return null}},$t=function(a){return function(){return Xt(a)}},au=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.k(b,"control");a.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xRadioHandlers=null;return}}return null},bu=function(a,b){$APP.Pg(a,"disabled",$APP.F(b));return Ut(a)},cu=function(a){a.removeAttribute("checked");return Ut(a)},
9
- du=function(a){if(!$APP.n($APP.k(a,"__xRadioRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("button"),e=document.createElement("span");c.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:var(--x-color-border,#6b7280);--x-radio-bg:var(--x-color-surface,#ffffff);--x-radio-checked-color:var(--x-color-primary,#2563eb);--x-radio-dot-size:6px;--x-radio-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-radio-disabled-opacity:0.45;--x-radio-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:var(--x-color-border,#9ca3af);--x-radio-bg:var(--x-color-surface,#1f2937);--x-radio-checked-color:var(--x-color-primary,#3b82f6);--x-radio-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
10
- d.setAttribute("part","control");d.setAttribute("type","button");d.setAttribute("role","radio");e.setAttribute("part","dot");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xRadioRefs={root:b,control:d,dot:e};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xRadioInternals=b)}au(a);b=$APP.k(a,"__xRadioRefs");$APP.n(b)&&(b=$APP.k(b,"control"),c=$t(a),d=Zt(a),e={click:c,keydown:d},a.addEventListener("click",c),b.addEventListener("keydown",d),a.__xRadioHandlers=e);Ut(a);return Wt(a)},eu=
11
- function(a){return au(a)},fu=function(a){return Ut(a)},gu=function(a){$APP.Sg(a,"checked","checked");$APP.Sg(a,"disabled","disabled");$APP.Sg(a,"readOnly","readonly");$APP.Sg(a,"required","required");$APP.Ug(a,"name","name");return $APP.Ug(a,"value","value")},iu=function(){return $APP.Lg("x-radio",new $APP.Q(null,8,[$APP.Cg,hu,$APP.Dg,du,$APP.Eg,eu,$APP.Fg,fu,$APP.Gg,!0,$APP.Hg,bu,$APP.Ig,cu,$APP.Jg,gu],null))};var hu="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Pd(["x-radio-change-request",new $APP.Q(null,2,[$APP.Km,!0,$APP.V,new $APP.Q(null,3,[$APP.pj,$APP.Y,$APP.Nk,$APP.uk,$APP.mm,$APP.uk],null)],null),"x-radio-change",new $APP.Q(null,2,[$APP.Km,!1,$APP.V,new $APP.Q(null,2,[$APP.pj,$APP.Y,$APP.kn,$APP.uk],null)],null)]);$APP.ha("baredom.exports.x_radio.init",iu);export const init=iu;
2
+ var yu=function(a){a=$APP.Lf([$APP.Mm,$APP.Fh,$APP.cj,$APP.oj,$APP.Fk,$APP.Xk,$APP.Dh,$APP.fl,$APP.Ok],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.J(a);a=$APP.C(b,$APP.fl);var c=$APP.C(b,$APP.Ok),d=$APP.C(b,$APP.Mm),e=$APP.C(b,$APP.Fh),f=$APP.C(b,$APP.cj),h=$APP.C(b,$APP.oj),l=$APP.C(b,
3
+ $APP.Fk),m=$APP.C(b,$APP.Xk);b=$APP.C(b,$APP.Dh);l=$APP.E(l);f=$APP.E(f);return $APP.Lf([$APP.xj,$APP.sj,$APP.ro,$APP.Qk,$APP.ij,$APP.Nk,$APP.Gh,$APP.ll,$APP.mo,$APP.gn,$APP.Y],[f,l?"true":"false",$APP.E(m),l,$APP.n(f)?l:!0,d,b!=null?b:"on",h,c,a,$APP.E(e)])},zu=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=yu(a);var d=$APP.Y.g(b),e=$APP.Qk.g(b);$APP.ah(c,"aria-checked",$APP.sj.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");$APP.ah(c,"aria-required",
4
+ $APP.n($APP.xj.g(b))?"true":"false");$APP.ah(c,"aria-readonly",$APP.n($APP.ro.g(b))?"true":"false");var f=$APP.gn.g(b);$APP.n(f)?c.setAttribute("aria-label",f):c.removeAttribute("aria-label");f=$APP.ll.g(b);$APP.n(f)?c.setAttribute("aria-labelledby",f):c.removeAttribute("aria-labelledby");f=$APP.mo.g(b);$APP.n(f)?c.setAttribute("aria-describedby",f):c.removeAttribute("aria-describedby");$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");$APP.bh(a,"data-checked",e);$APP.bh(a,"data-disabled",
5
+ d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.Gh.g(b):null):null}return null},Au=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.M(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.B.i(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},Bu=function(a){a=Au(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=
6
+ $APP.k(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.k(e,"control"),d=$APP.n(b)?$APP.B.i(d,b)?0:-1:$APP.B.i(d,c)?0:-1,e.tabIndex=d):null})},Cu=function(a){var b=yu(a),c=$APP.Y.g(b),d=$APP.ro.g(b),e=$APP.Qk.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.Gh.g(b);return $APP.ch(a,"x-radio-change-request",{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),zu(a),Au(a).forEach(function(f){var h=$APP.M(f,a);return $APP.n(h?f.hasAttribute("checked"):h)?(f.removeAttribute("checked"),
7
+ zu(f)):null}),Bu(a),$APP.P(a,"x-radio-change",{value:b,checked:!0})):null},Du=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?$APP.k(a,"control").focus():null},Eu=function(a){return function(b){var c=b.key,d=Au(a),e=d.length,f=d.indexOf(a);if($APP.B.i(c," ")||$APP.B.i(c,"Enter"))return b.preventDefault(),Cu(a);if($APP.B.i(c,"ArrowDown")||$APP.B.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.od(f+1,e)],Cu(b),Du(b)}else if($APP.B.i(c,"ArrowUp")||$APP.B.i(c,"ArrowLeft"))if(b.preventDefault(),
8
+ e>0)return b=d[$APP.od(f-1,e)],Cu(b),Du(b);return null}},Fu=function(a){return function(){return Cu(a)}},Gu=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.k(b,"control");a.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Hu=function(a,b){$APP.bh(a,"disabled",$APP.E(b));return zu(a)},Iu=function(a){a.removeAttribute("checked");return zu(a)},
9
+ Ju=function(a){if(!$APP.n($APP.k(a,"__xRadioRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("button"),e=document.createElement("span");c.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:var(--x-color-border,#6b7280);--x-radio-bg:var(--x-color-surface,#ffffff);--x-radio-checked-color:var(--x-color-primary,#2563eb);--x-radio-dot-size:6px;--x-radio-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-radio-disabled-opacity:0.45;--x-radio-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:var(--x-color-border,#9ca3af);--x-radio-bg:var(--x-color-surface,#1f2937);--x-radio-checked-color:var(--x-color-primary,#3b82f6);--x-radio-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
10
+ d.setAttribute("part","control");d.setAttribute("type","button");d.setAttribute("role","radio");e.setAttribute("part","dot");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xRadioRefs={root:b,control:d,dot:e};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xRadioInternals=b)}Gu(a);b=$APP.k(a,"__xRadioRefs");$APP.n(b)&&(b=$APP.k(b,"control"),c=Fu(a),d=Eu(a),e={click:c,keydown:d},a.addEventListener("click",c),b.addEventListener("keydown",d),a.__xRadioHandlers=e);zu(a);return Bu(a)},Ku=
11
+ function(a){return Gu(a)},Lu=function(a){return zu(a)},Nu=function(a){return $APP.jh(a,Mu)},Pu=function(){return $APP.Yg("x-radio",new $APP.N(null,8,[$APP.Pg,Ou,$APP.Qg,Ju,$APP.Rg,Ku,$APP.Sg,Lu,$APP.Tg,!0,$APP.Ug,Hu,$APP.Vg,Iu,$APP.Wg,Nu],null))};var Ou="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" "),Mu=new $APP.N(null,6,[$APP.eo,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"checked"],null),$APP.al,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"disabled"],null),$APP.Hn,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"readonly"],null),$APP.Ll,new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"required"],null),$APP.Nk,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"name"],null),$APP.Gh,new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,
12
+ "value"],null)],null);$APP.Yd(["x-radio-change-request",new $APP.N(null,2,[$APP.Fn,!0,$APP.Z,new $APP.N(null,3,[$APP.Gh,$APP.U,$APP.Dl,$APP.T,$APP.mn,$APP.T],null)],null),"x-radio-change",new $APP.N(null,2,[$APP.Fn,!1,$APP.Z,new $APP.N(null,2,[$APP.Gh,$APP.U,$APP.eo,$APP.T],null)],null)]);$APP.ca("baredom.exports.x_radio.init",Pu);export const init=Pu;
@@ -1,13 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var XU=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},YU=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},ZU=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},$U=function(a){var b=$APP.k(a,
3
- "__xRippleRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:inline-block;position:relative;}:host([disabled]){cursor:default;}[part\x3dcontainer]{display:block;width:100%;height:100%;}";d.setAttribute("part","container");d.appendChild(e);g.setAttribute("part","filters");g.style.position="absolute";
4
- g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.Q(null,3,[$APP.Zi,b,$APP.Zj,d,$APP.Ek,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},cV=function(a){a=new $APP.Q(null,4,[$APP.Yk,a.getAttribute("intensity"),$APP.mj,a.getAttribute("duration"),aV,a.getAttribute("frequency"),$APP.fm,a.hasAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Yk);var c=$APP.D(b,$APP.mj),
5
- d=$APP.D(b,aV);b=$APP.D(b,$APP.fm);return new $APP.Q(null,4,[$APP.Pk,XU(a),$APP.xl,YU(c),bV,ZU(d),$APP.X,$APP.F(b)],null)},fV=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
- e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.S.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.S.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.Q(null,3,[$APP.Cl,d,dV,e,eV,g],null)},
7
- gV=function(a,b){var c=cV(a);if(!$APP.n($APP.X.g(c))){c=$APP.M(c);var d=$APP.D(c,$APP.Pk),e=$APP.D(c,$APP.xl),g=$APP.D(c,bV);c=$U(a);c=$APP.M(c);var h=$APP.D(c,$APP.Zj),l=$APP.D(c,$APP.Ek),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.S.g(m);a.__xRippleCounter=m+1;m=fV(l,c,g);m=$APP.M(m);var p=$APP.D(m,$APP.Cl),r=$APP.D(m,dV),v=$APP.D(m,eV),x=b.clientX,y=b.clientY,A=performance.now(),C=$APP.k(a,"__xRippleFrames");b=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
- "url(#"+$APP.S.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(v.setAttribute("scale",""+$APP.S.g(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function H(){var G=performance.now()-A;G=Math.min(1,G/e);var J=1-G;J=1-J*J*J;var U=g*(1-J*.7);v.setAttribute("scale",
9
- ""+$APP.S.g(d*(1-J)));r.setAttribute("baseFrequency",""+$APP.S.g(U));if(G>=1)return l.removeChild(p),l.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));G=requestAnimationFrame(H);return C.push(G)});C.push(b)}},hV=function(a){function b(c){c.button===0&&gV(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},iV=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,
10
- d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.k(a,"__xRippleRefs");if($APP.n(b)){c=$APP.M(b);b=$APP.D(c,$APP.Ek);for(c=$APP.D(c,$APP.Zj);;)if(d=b.firstChild,$APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.k(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},jV=function(a){Object.defineProperty(a,"intensity",{get:function(){return XU(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
- this.setAttribute("intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return YU(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return ZU(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
- ""+$APP.S.g(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},kV=function(a){$U(a);iV(a);hV(a);return null},lV=function(a){iV(a);return null},mV=function(){return null},oV=function(){return $APP.Lg("x-ripple-effect",new $APP.Q(null,5,[$APP.Cg,nV,$APP.Dg,kV,$APP.Eg,lV,$APP.Fg,mV,$APP.Jg,
13
- jV],null))},dV=new $APP.K(null,"turb","turb",-804768361),aV=new $APP.K(null,"frequency-raw","frequency-raw",-1367383022),eV=new $APP.K(null,"disp","disp",-2047544334),bV=new $APP.K(null,"frequency","frequency",-1408891382);var nV=["intensity","duration","frequency","disabled"];$APP.Pd(["x-ripple-effect-start",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.cm,$APP.W,$APP.bm,$APP.W],null),$APP.Km,!1],null),"x-ripple-effect-end",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.cm,$APP.W,$APP.bm,$APP.W],null),$APP.Km,!1],null)]);$APP.ha("baredom.exports.x_ripple_effect.init",oV);export const init=oV;
2
+ var nX=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},oX=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},pX=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},qX=function(a){var b=$APP.k(a,
3
+ "__xRippleRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),f=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:inline-block;position:relative;}:host([disabled]){cursor:default;}[part\x3dcontainer]{display:block;width:100%;height:100%;}";d.setAttribute("part","container");d.appendChild(e);f.setAttribute("part","filters");f.style.position="absolute";
4
+ f.style.width="0";f.style.height="0";f.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xRippleRefs=new $APP.N(null,3,[$APP.Uh,b,$APP.Vh,d,$APP.tl,f],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},tX=function(a){a=new $APP.N(null,4,[$APP.Ol,a.getAttribute("intensity"),$APP.dk,a.getAttribute("duration"),rX,a.getAttribute("frequency"),$APP.Fh,a.hasAttribute("disabled")],null);var b=$APP.J(a);a=$APP.C(b,$APP.Ol);var c=$APP.C(b,$APP.dk),
5
+ d=$APP.C(b,rX);b=$APP.C(b,$APP.Fh);return new $APP.N(null,4,[$APP.Fl,nX(a),$APP.rm,oX(c),sX,pX(d),$APP.Y,$APP.E(b)],null)},wX=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),f=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
+ e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.Q.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.Q.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");f.setAttribute("in","SourceGraphic");f.setAttribute("in2","turbulence");f.setAttribute("scale","0");f.setAttribute("xChannelSelector","R");f.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(f);a.appendChild(d);return new $APP.N(null,3,[$APP.wm,d,uX,e,vX,f],null)},
7
+ xX=function(a,b){var c=tX(a);if(!$APP.n($APP.Y.g(c))){c=$APP.J(c);var d=$APP.C(c,$APP.Fl),e=$APP.C(c,$APP.rm),f=$APP.C(c,sX);c=qX(a);c=$APP.J(c);var h=$APP.C(c,$APP.Vh),l=$APP.C(c,$APP.tl),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.Q.g(m);a.__xRippleCounter=m+1;m=wX(l,c,f);m=$APP.J(m);var q=$APP.C(m,$APP.wm),r=$APP.C(m,uX),v=$APP.C(m,vX),x=b.clientX,y=b.clientY,A=performance.now(),D=$APP.k(a,"__xRippleFrames");b=$APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
+ "url(#"+$APP.Q.g(c)+")";$APP.P(a,"x-ripple-effect-start",{x,y});b?(v.setAttribute("scale",""+$APP.Q.g(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(q);h.style.filter="";return $APP.P(a,"x-ripple-effect-end",{x,y})})):b=requestAnimationFrame(function I(){var H=performance.now()-A;H=Math.min(1,H/e);var K=1-H;K=1-K*K*K;var W=f*(1-K*.7);v.setAttribute("scale",""+$APP.Q.g(d*(1-K)));r.setAttribute("baseFrequency",""+$APP.Q.g(W));if(H>=1)return l.removeChild(q),l.childNodes.length===
9
+ 0&&(h.style.filter=""),$APP.P(a,"x-ripple-effect-end",{x,y});H=requestAnimationFrame(I);return D.push(H)});D.push(b)}},yX=function(a){function b(c){c.button===0&&xX(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},zX=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.k(a,"__xRippleRefs");if($APP.n(b)){c=$APP.J(b);b=$APP.C(c,$APP.tl);for(c=$APP.C(c,$APP.Vh);;)if(d=b.firstChild,
10
+ $APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.k(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},AX=function(a){Object.defineProperty(a,"intensity",{get:function(){return nX(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return oX(this.getAttribute("duration"))},
11
+ set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.Q.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return pX(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});return $APP.dh(a,"disabled","disabled")},BX=function(a){qX(a);zX(a);yX(a);return null},CX=function(a){zX(a);return null},
12
+ DX=function(){return null},FX=function(){return $APP.Yg("x-ripple-effect",new $APP.N(null,5,[$APP.Pg,EX,$APP.Qg,BX,$APP.Rg,CX,$APP.Sg,DX,$APP.Wg,AX],null))},uX=new $APP.F(null,"turb","turb",-804768361),rX=new $APP.F(null,"frequency-raw","frequency-raw",-1367383022),vX=new $APP.F(null,"disp","disp",-2047544334),sX=new $APP.F(null,"frequency","frequency",-1408891382);var EX=["intensity","duration","frequency","disabled"];$APP.Yd(["x-ripple-effect-start",new $APP.N(null,2,[$APP.Z,new $APP.N(null,2,[$APP.cn,$APP.V,$APP.bn,$APP.V],null),$APP.Fn,!1],null),"x-ripple-effect-end",new $APP.N(null,2,[$APP.Z,new $APP.N(null,2,[$APP.cn,$APP.V,$APP.bn,$APP.V],null),$APP.Fn,!1],null)]);$APP.ca("baredom.exports.x_ripple_effect.init",FX);export const init=FX;
@@ -1,20 +1,19 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var x0=function(a){return new $APP.Q(null,1,[$APP.um,a],null)},y0=function(a){var b=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
- d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);g.setAttribute("part","live");g.setAttribute("aria-live","polite");g.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xScrollParallaxRefs=new $APP.Q(null,4,[$APP.Zi,b,$APP.Ej,d,$APP.Cj,e,$APP.Xi,g],null);return $APP.k(a,"__xScrollParallaxRefs")},F0=function(a){a=new $APP.Q(null,5,[$APP.qj,a.getAttribute("direction"),z0,a.getAttribute("source"),A0,a.getAttribute("easing"),$APP.wj,
4
- $APP.n(a.hasAttribute("disabled"))?"":null,$APP.Hi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.qj),d=$APP.D(b,z0),e=$APP.D(b,A0);a=$APP.D(b,$APP.wj);b=$APP.D(b,$APP.Hi);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.I(B0,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.I(C0,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.I(D0,e)?e:"none";return new $APP.Q(null,5,[$APP.Lj,c,$APP.Kl,d,E0,e,$APP.X,a!=null,$APP.T,$APP.n(b)?
5
- b:""],null)},G0=function(a){a=y0(a);a=$APP.M(a);return $APP.D(a,$APP.Cj).assignedElements()},H0=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.n(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.n(isNaN(c))?0:c):c=0;return new $APP.Q(null,4,[$APP.Yj,b,$APP.Li,c,$APP.Ii,$APP.B.i("fade",a.getAttribute("data-opacity")),$APP.sj,$APP.B.i("grow",a.getAttribute("data-scale"))],null)},I0=function(a){var b=
6
- $APP.k(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=G0(a);b=$APP.We.m($APP.ee,$APP.$d.g(H0),$APP.uc(b));return a.__xScrollParallaxChildCache=b},J0=function(a){a.__xScrollParallaxChildCache=null},K0=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.n($APP.n(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.n(isNaN(a))?.2:a/100):.2},L0=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
- a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.n(b?b:isNaN(a))?.85:a},M0=function(a){var b=function(){var H=$APP.k(a,"__xScrollParallaxModel");return $APP.n(H)?H:F0(a)}();if(!$APP.n($APP.X.g(b))){var c=a.getBoundingClientRect();b=$APP.B.i("vertical",$APP.Lj.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.Jh.i(0,$APP.Kh.i(1,(d-c.top)/(d+c.height)));c=$APP.k(a,"__xScrollParallaxLastProg");d=G0(a);for(var h=I0(a),l=K0(a),m=L0(a),p=d.length,r=0;;)if(r<p){if(r<
8
- $APP.z(h)){var v=d[r],x=$APP.pc(h,r),y=$APP.M(x),A=$APP.D(y,$APP.Yj),C=$APP.D(y,$APP.Li);x=$APP.D(y,$APP.Ii);y=$APP.D(y,$APP.sj);A=(g-.5)*e*(A-1)+C;var E=b?"translateY("+$APP.S.g(A)+"px)":"translateX("+$APP.S.g(A)+"px)";A=$APP.n(y)?function(){var H=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.S.g(E)+" scale("+$APP.S.g(H)+")"}():E;v.style.transform=A;$APP.n(x)&&(v.style.opacity=""+$APP.S.g(g<l?g/l:g>1-l?(1-g)/l:1))}r+=1}else break;if(c==null||Math.abs(g-c)>.001)a.__xScrollParallaxLastProg=g,$APP.Qg(a,
9
- "x-scroll-parallax-progress",$APP.Zh(x0(g)))}a.__xScrollParallaxRAF=null},N0=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollParallaxVisible"),$APP.n(b)?!$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.n($APP.k(a,"__xScrollParallaxRAF"))?null:$APP.ja(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return M0(a)})):null},O0=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.q($APP.k(a,
10
- "scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},P0=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},Q0=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},R0=function(a,b){b=b[0].isIntersecting;var c=$APP.M($APP.k(a,"__xScrollParallaxRefs"));c=$APP.D(c,$APP.Xi);a.__xScrollParallaxVisible=
11
- b;if($APP.n(b))return O0(a),M0(a),Q0(c,"Parallax section entered viewport"),$APP.Qg(a,"x-scroll-parallax-enter",$APP.Zh(x0(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}())));P0(a);Q0(c,"Parallax section left viewport");return $APP.Qg(a,"x-scroll-parallax-leave",$APP.Zh(x0(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}())))},S0=function(a){function b(){return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?(J0(a),M0(a)):null}function c(){J0(a);
12
- return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?M0(a):null}var d=y0(a);d=$APP.M(d);$APP.D(d,$APP.Cj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollParallaxHandlers",{scroll:function(){return N0(a)},slot:c,resize:b,scrollAttached:!1})},T0=function(a){var b=$APP.k(a,"__xScrollParallaxHandlers");if($APP.n(b)){P0(a);var c=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(c)){c=$APP.Cj.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=
13
- $APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollParallaxRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollParallaxRAF=null);a.__xScrollParallaxHandlers=null},U0=function(a){var b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return R0(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},V0=function(a){var b=F0(a);if($APP.N($APP.k(a,"__xScrollParallaxModel"),b)){var c=$APP.M(b),d=$APP.D(c,$APP.Lj);
14
- b=$APP.D(c,$APP.X);var e=$APP.D(c,$APP.T),g=y0(a);g=$APP.M(g);g=$APP.D(g,$APP.Ej);a.setAttribute("data-direction",d);$APP.t(e)?g.setAttribute("aria-label",e):g.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.k(a,"__xScrollParallaxVisible");$APP.n($APP.n(c)?$APP.q(b):c)&&M0(a)}},W0=function(a){Object.defineProperty(a,"direction",{get:function(){var b=this.getAttribute("direction");return $APP.n(b)?b:"vertical"},set:function(b){return $APP.n(b)?this.setAttribute("direction",""+$APP.S.g(b)):
15
- this.removeAttribute("direction")},enumerable:!0,configurable:!0});Object.defineProperty(a,"source",{get:function(){var b=this.getAttribute("source");return $APP.n(b)?b:"document"},set:function(b){return $APP.n(b)?this.setAttribute("source",""+$APP.S.g(b)):this.removeAttribute("source")},enumerable:!0,configurable:!0});Object.defineProperty(a,"easing",{get:function(){var b=this.getAttribute("easing");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("easing",""+$APP.S.g(b)):
16
- this.removeAttribute("easing")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},
17
- enumerable:!0,configurable:!0});return Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollParallaxLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},X0=function(a){y0(a);T0(a);S0(a);U0(a);V0(a);return null},Y0=function(a){for(var b=G0(a),c=b.length,d=0;;)if(d<c){var e=b[d];e.style.transform="";e.style.opacity="";d+=1}else break;$APP.n($APP.k(a,"__xScrollParallaxVisible"))&&(b=$APP.k(a,"__xScrollParallaxLastProg"),$APP.Qg(a,"x-scroll-parallax-leave",$APP.Zh(x0($APP.n(b)?
18
- b:0))));T0(a);b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),a.__xScrollParallaxIO=null);J0(a);a.__xScrollParallaxVisible=!1;return a.__xScrollParallaxLastProg=null},Z0=function(a,b,c,d){$APP.N(c,d)&&V0(a);return null},a1=function(){return $APP.Lg("x-scroll-parallax",new $APP.Q(null,5,[$APP.Cg,$0,$APP.Dg,X0,$APP.Eg,Y0,$APP.Fg,Z0,$APP.Jg,W0],null))},z0=new $APP.K(null,"source-raw","source-raw",396083546),A0=new $APP.K(null,"easing-raw","easing-raw",440485546),E0=new $APP.K(null,"easing",
19
- "easing",735372043);var $0=["direction","source","easing","disabled","label"];$APP.Pd(["x-scroll-parallax-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.um,$APP.W],null),$APP.Km,!1],null),"x-scroll-parallax-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.um,$APP.W],null),$APP.Km,!1],null),"x-scroll-parallax-progress",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.um,$APP.W],null),$APP.Km,!1],null)]);
20
- var B0=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),C0=new $APP.R(null,new $APP.Q(null,1,["document",null],null),null),D0=new $APP.R(null,new $APP.Q(null,2,["none",null,"smooth",null],null),null);$APP.ha("baredom.exports.x_scroll_parallax.init",a1);export const init=a1;
2
+ var N2=function(a){return new $APP.N(null,1,[$APP.vn,a],null)},O2=function(a){var b=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),f=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
+ d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);f.setAttribute("part","live");f.setAttribute("aria-live","polite");f.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xScrollParallaxRefs=new $APP.N(null,4,[$APP.Uh,b,$APP.vk,d,$APP.tk,e,$APP.Oj,f],null);return $APP.k(a,"__xScrollParallaxRefs")},V2=function(a){a=new $APP.N(null,5,[$APP.gk,a.getAttribute("direction"),P2,a.getAttribute("source"),Q2,a.getAttribute("easing"),$APP.mk,
4
+ $APP.n(a.hasAttribute("disabled"))?"":null,$APP.Ch,a.getAttribute("label")],null);var b=$APP.J(a),c=$APP.C(b,$APP.gk),d=$APP.C(b,P2),e=$APP.C(b,Q2);a=$APP.C(b,$APP.mk);b=$APP.C(b,$APP.Ch);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.Zc(R2,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.Zc(S2,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.Zc(T2,e)?e:"none";return new $APP.N(null,5,[$APP.Gk,c,$APP.Em,d,U2,e,$APP.Y,a!=null,$APP.X,$APP.n(b)?
5
+ b:""],null)},W2=function(a){a=O2(a);a=$APP.J(a);return $APP.C(a,$APP.tk).assignedElements()},X2=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.n(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.n(isNaN(c))?0:c):c=0;return new $APP.N(null,4,[$APP.Sk,b,$APP.Cj,c,$APP.zj,$APP.B.i("fade",a.getAttribute("data-opacity")),$APP.ik,$APP.B.i("grow",a.getAttribute("data-scale"))],null)},Y2=function(a){var b=
6
+ $APP.k(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=W2(a);b=$APP.hf.l($APP.pe,$APP.he.g(X2),$APP.Bc(b));return a.__xScrollParallaxChildCache=b},Z2=function(a){a.__xScrollParallaxChildCache=null},$2=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.n($APP.n(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.n(isNaN(a))?.2:a/100):.2},a3=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
+ a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.n(b?b:isNaN(a))?.85:a},b3=function(a){var b=function(){var I=$APP.k(a,"__xScrollParallaxModel");return $APP.n(I)?I:V2(a)}();if(!$APP.n($APP.Y.g(b))){var c=a.getBoundingClientRect();b=$APP.B.i("vertical",$APP.Gk.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,f=$APP.Hi.i(0,$APP.Ii.i(1,(d-c.top)/(d+c.height)));c=$APP.k(a,"__xScrollParallaxLastProg");d=W2(a);for(var h=Y2(a),l=$2(a),m=a3(a),q=d.length,r=0;;)if(r<q){if(r<
8
+ $APP.z(h)){var v=d[r],x=$APP.wc(h,r),y=$APP.J(x),A=$APP.C(y,$APP.Sk),D=$APP.C(y,$APP.Cj);x=$APP.C(y,$APP.zj);y=$APP.C(y,$APP.ik);A=(f-.5)*e*(A-1)+D;var G=b?"translateY("+$APP.Q.g(A)+"px)":"translateX("+$APP.Q.g(A)+"px)";A=$APP.n(y)?function(){var I=m+(1-m)*(1-Math.abs(f-.5)*2);return""+$APP.Q.g(G)+" scale("+$APP.Q.g(I)+")"}():G;v.style.transform=A;$APP.n(x)&&(v.style.opacity=""+$APP.Q.g(f<l?f/l:f>1-l?(1-f)/l:1))}r+=1}else break;if(c==null||Math.abs(f-c)>.001)a.__xScrollParallaxLastProg=f,$APP.P(a,
9
+ "x-scroll-parallax-progress",$APP.Xi(N2(f)))}a.__xScrollParallaxRAF=null},c3=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollParallaxVisible"),$APP.n(b)?!$APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.n($APP.k(a,"__xScrollParallaxRAF"))?null:$APP.fa(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return b3(a)})):null},d3=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.p($APP.k(a,
10
+ "scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},e3=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},f3=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},g3=function(a,b){b=b[0].isIntersecting;var c=$APP.J($APP.k(a,"__xScrollParallaxRefs"));c=$APP.C(c,$APP.Oj);a.__xScrollParallaxVisible=
11
+ b;if($APP.n(b))return d3(a),b3(a),f3(c,"Parallax section entered viewport"),$APP.P(a,"x-scroll-parallax-enter",$APP.Xi(N2(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}())));e3(a);f3(c,"Parallax section left viewport");return $APP.P(a,"x-scroll-parallax-leave",$APP.Xi(N2(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}())))},h3=function(a){function b(){return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?(Z2(a),b3(a)):null}function c(){Z2(a);
12
+ return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?b3(a):null}var d=O2(a);d=$APP.J(d);$APP.C(d,$APP.tk).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.fa(a,"__xScrollParallaxHandlers",{scroll:function(){return c3(a)},slot:c,resize:b,scrollAttached:!1})},i3=function(a){var b=$APP.k(a,"__xScrollParallaxHandlers");if($APP.n(b)){e3(a);var c=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(c)){c=$APP.tk.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=
13
+ $APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollParallaxRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollParallaxRAF=null);a.__xScrollParallaxHandlers=null},j3=function(a){var b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return g3(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},k3=function(a){var b=V2(a);if($APP.M($APP.k(a,"__xScrollParallaxModel"),b)){var c=$APP.J(b),d=$APP.C(c,$APP.Gk);
14
+ b=$APP.C(c,$APP.Y);var e=$APP.C(c,$APP.X),f=O2(a);f=$APP.J(f);f=$APP.C(f,$APP.vk);a.setAttribute("data-direction",d);$APP.t(e)?f.setAttribute("aria-label",e):f.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.k(a,"__xScrollParallaxVisible");$APP.n($APP.n(c)?$APP.p(b):c)&&b3(a)}},l3=function(a){Object.defineProperty(a,"direction",{get:function(){var b=this.getAttribute("direction");return $APP.n(b)?b:"vertical"},set:function(b){return $APP.n(b)?this.setAttribute("direction",""+$APP.Q.g(b)):
15
+ this.removeAttribute("direction")},enumerable:!0,configurable:!0});Object.defineProperty(a,"source",{get:function(){var b=this.getAttribute("source");return $APP.n(b)?b:"document"},set:function(b){return $APP.n(b)?this.setAttribute("source",""+$APP.Q.g(b)):this.removeAttribute("source")},enumerable:!0,configurable:!0});Object.defineProperty(a,"easing",{get:function(){var b=this.getAttribute("easing");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("easing",""+$APP.Q.g(b)):
16
+ this.removeAttribute("easing")},enumerable:!0,configurable:!0});$APP.dh(a,"disabled","disabled");Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("label",""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollParallaxLastProg");return $APP.n(b)?b:0},enumerable:!0,
17
+ configurable:!0})},m3=function(a){O2(a);i3(a);h3(a);j3(a);k3(a);return null},n3=function(a){for(var b=W2(a),c=b.length,d=0;;)if(d<c){var e=b[d];e.style.transform="";e.style.opacity="";d+=1}else break;$APP.n($APP.k(a,"__xScrollParallaxVisible"))&&(b=$APP.k(a,"__xScrollParallaxLastProg"),$APP.P(a,"x-scroll-parallax-leave",$APP.Xi(N2($APP.n(b)?b:0))));i3(a);b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),a.__xScrollParallaxIO=null);Z2(a);a.__xScrollParallaxVisible=!1;return a.__xScrollParallaxLastProg=
18
+ null},o3=function(a,b,c,d){$APP.M(c,d)&&k3(a);return null},q3=function(){return $APP.Yg("x-scroll-parallax",new $APP.N(null,5,[$APP.Pg,p3,$APP.Qg,m3,$APP.Rg,n3,$APP.Sg,o3,$APP.Wg,l3],null))},P2=new $APP.F(null,"source-raw","source-raw",396083546),Q2=new $APP.F(null,"easing-raw","easing-raw",440485546),U2=new $APP.F(null,"easing","easing",735372043);var p3=["direction","source","easing","disabled","label"];$APP.Yd(["x-scroll-parallax-enter",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-parallax-leave",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-parallax-progress",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null)]);
19
+ var R2=new $APP.O(null,new $APP.N(null,2,["vertical",null,"horizontal",null],null),null),S2=new $APP.O(null,new $APP.N(null,1,["document",null],null),null),T2=new $APP.O(null,new $APP.N(null,2,["none",null,"smooth",null],null),null);$APP.ca("baredom.exports.x_scroll_parallax.init",q3);export const init=q3;