@vanelsas/baredom 1.4.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/README.md +57 -5
  3. package/dist/base.js +212 -212
  4. package/dist/x-alert.js +16 -16
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +16 -16
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +15 -15
  12. package/dist/x-cancel-dialogue.js +16 -16
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-chart.js +46 -46
  15. package/dist/x-checkbox.js +11 -11
  16. package/dist/x-chip.js +9 -9
  17. package/dist/x-collapse.js +11 -11
  18. package/dist/x-command-palette.js +29 -29
  19. package/dist/x-container.js +6 -6
  20. package/dist/x-context-menu.js +20 -19
  21. package/dist/x-copy.js +23 -23
  22. package/dist/x-currency-field.js +21 -21
  23. package/dist/x-date-picker.js +36 -36
  24. package/dist/x-divider.js +12 -12
  25. package/dist/x-drawer.js +11 -11
  26. package/dist/x-dropdown.js +10 -10
  27. package/dist/x-fieldset.js +6 -6
  28. package/dist/x-file-download.js +7 -7
  29. package/dist/x-form-field.js +16 -16
  30. package/dist/x-form.js +9 -9
  31. package/dist/x-gaussian-blur.js +18 -18
  32. package/dist/x-grid.js +6 -6
  33. package/dist/x-kinetic-font.js +27 -27
  34. package/dist/x-kinetic-typography.js +37 -37
  35. package/dist/x-liquid-dock.js +37 -37
  36. package/dist/x-liquid-fill.js +42 -42
  37. package/dist/x-liquid-glass.js +38 -38
  38. package/dist/x-menu-item.js +10 -10
  39. package/dist/x-menu.js +11 -11
  40. package/dist/x-metaball-cursor.js +28 -28
  41. package/dist/x-modal.js +11 -11
  42. package/dist/x-morph-stack.js +39 -39
  43. package/dist/x-navbar.js +13 -13
  44. package/dist/x-neural-glow.js +31 -31
  45. package/dist/x-notification-center.js +9 -9
  46. package/dist/x-organic-divider.js +17 -17
  47. package/dist/x-organic-progress.js +38 -38
  48. package/dist/x-organic-shape.js +12 -12
  49. package/dist/x-pagination.js +16 -16
  50. package/dist/x-popover.js +14 -14
  51. package/dist/x-progress-circle.js +9 -9
  52. package/dist/x-progress.js +9 -9
  53. package/dist/x-radio.js +12 -12
  54. package/dist/x-ripple-effect.js +11 -11
  55. package/dist/x-scroll-parallax.js +17 -17
  56. package/dist/x-scroll-stack.js +18 -18
  57. package/dist/x-scroll-story.js +34 -35
  58. package/dist/x-scroll-timeline.js +46 -49
  59. package/dist/x-scroll.js +39 -39
  60. package/dist/x-search-field.js +15 -15
  61. package/dist/x-select.js +10 -10
  62. package/dist/x-sidebar.js +17 -17
  63. package/dist/x-skeleton.js +5 -5
  64. package/dist/x-slider.js +16 -16
  65. package/dist/x-soft-body.js +21 -20
  66. package/dist/x-spacer.js +5 -5
  67. package/dist/x-spinner.js +6 -6
  68. package/dist/x-splash.js +14 -14
  69. package/dist/x-stat.js +11 -11
  70. package/dist/x-stepper.js +16 -16
  71. package/dist/x-switch.js +11 -11
  72. package/dist/x-tab.js +8 -8
  73. package/dist/x-table-cell.js +21 -21
  74. package/dist/x-table-row.js +10 -10
  75. package/dist/x-table.js +13 -13
  76. package/dist/x-tabs.js +11 -11
  77. package/dist/x-text-area.js +18 -18
  78. package/dist/x-theme.js +25 -0
  79. package/dist/x-timeline-item.js +21 -21
  80. package/dist/x-timeline.js +9 -9
  81. package/dist/x-toast.js +23 -23
  82. package/dist/x-toaster.js +8 -8
  83. package/dist/x-typography.js +11 -10
  84. package/package.json +6 -2
package/dist/x-scroll.js CHANGED
@@ -1,43 +1,43 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var yY=function(a){return a==null?!0:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},zY=function(a,b){if(typeof a==="string"){a=parseInt(a.trim(),10);var c=isNaN(a);return $APP.r($APP.r(c)?c:a<0)?b:a}return b},AY=function(a,b){return $APP.r(a)?b>=3:a},BY=function(a,b,c,d){a+=b;return $APP.r(AY(d,c))?c<=0?0:$APP.hd($APP.hd(a,c)+c,c):c<=0?0:$APP.Yg.i(0,$APP.Zg.i(a,c-1))},DY=function(a,b){var c=$APP.N(a);a=$APP.G(c,$APP.uj);c=$APP.G(c,CY);return $APP.r(AY(c,b))?b>0:a>0},EY=function(a,b){var c=
3
- $APP.N(a);a=$APP.G(c,$APP.uj);c=$APP.G(c,CY);return $APP.r(AY(c,b))?b>0:a<b-1},GY=function(a){var b=$APP.l(a,"__xScrollRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("button"),m=document.createElement("div"),p=document.createElement("div");c.textContent=":host{display:block;position:relative;overflow:hidden;color-scheme:light dark;--x-scroll-gap:0px;--x-scroll-padding:0px;--x-scroll-border-radius:0px;--x-scroll-bg:transparent;--x-scroll-control-size:36px;--x-scroll-control-bg:rgba(255,255,255,0.9);--x-scroll-control-color:rgba(0,0,0,0.7);--x-scroll-control-hover-bg:rgba(255,255,255,1);--x-scroll-control-border-radius:50%;--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.15);--x-scroll-indicator-size:8px;--x-scroll-indicator-gap:6px;--x-scroll-indicator-color:rgba(0,0,0,0.25);--x-scroll-indicator-active-color:rgba(0,0,0,0.7);--x-scroll-transition-duration:300ms;--x-scroll-slide-size:100%;--x-scroll-disabled-opacity:0.55;--x-scroll-focus-ring:rgba(0,102,204,0.6);}@media (prefers-color-scheme:dark){:host{--x-scroll-control-bg:rgba(40,40,40,0.9);--x-scroll-control-color:rgba(255,255,255,0.8);--x-scroll-control-hover-bg:rgba(50,50,50,1);--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.4);--x-scroll-indicator-color:rgba(255,255,255,0.3);--x-scroll-indicator-active-color:rgba(255,255,255,0.8);--x-scroll-focus-ring:rgba(100,180,255,0.7);}}[part\x3dviewport]{position:relative;overflow:hidden;width:100%;height:100%;border-radius:var(--x-scroll-border-radius);background:var(--x-scroll-bg);padding:var(--x-scroll-padding);}[part\x3dtrack]{display:flex;position:relative;will-change:transform;transition:transform var(--x-scroll-transition-duration) cubic-bezier(0.25,0.1,0.25,1);touch-action:none;user-select:none;}:host([data-mode\x3dhorizontal]) [part\x3dtrack]{flex-direction:row;}:host([data-mode\x3dvertical]) [part\x3dtrack]{flex-direction:column;}::slotted(*){flex:0 0 var(--x-scroll-slide-size);min-width:0;min-height:0;box-sizing:border-box;}[part\x3dprev],[part\x3dnext]{position:absolute;top:50%;z-index:2;appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-control-size);height:var(--x-scroll-control-size);border-radius:var(--x-scroll-control-border-radius);background:var(--x-scroll-control-bg);color:var(--x-scroll-control-color);box-shadow:var(--x-scroll-control-shadow);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:calc(var(--x-scroll-control-size) * 0.5);line-height:1;transform:translateY(-50%);transition:background 120ms ease,opacity 120ms ease;}[part\x3dprev]{left:8px;}[part\x3dnext]{right:8px;}:host([data-mode\x3dvertical]) [part\x3dprev],:host([data-mode\x3dvertical]) [part\x3dnext]{top:auto;left:50%;transform:translateX(-50%);}:host([data-mode\x3dvertical]) [part\x3dprev]{top:8px;}:host([data-mode\x3dvertical]) [part\x3dnext]{bottom:8px;top:auto;}[part\x3dprev]:hover,[part\x3dnext]:hover{background:var(--x-scroll-control-hover-bg);}[part\x3dprev]:focus,[part\x3dnext]:focus{outline:none;}[part\x3dprev]:focus-visible,[part\x3dnext]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dprev]:disabled,[part\x3dnext]:disabled{opacity:0.3;cursor:default;pointer-events:none;}[data-hide-controls] [part\x3dprev],[data-hide-controls] [part\x3dnext]{display:none;}[part\x3dindicators]{display:flex;justify-content:center;gap:var(--x-scroll-indicator-gap);position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2;}:host([data-mode\x3dvertical]) [part\x3dindicators]{flex-direction:column;bottom:auto;left:auto;right:12px;top:50%;transform:translateY(-50%);}[part\x3dindicator]{appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-indicator-size);height:var(--x-scroll-indicator-size);border-radius:50%;background:var(--x-scroll-indicator-color);cursor:pointer;transition:background 120ms ease;}[part\x3dindicator]:focus{outline:none;}[part\x3dindicator]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dindicator][aria-selected\x3dtrue]{background:var(--x-scroll-indicator-active-color);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}:host([disabled]){opacity:var(--x-scroll-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none !important;}}";
2
+ var bZ=function(a){return a==null?!0:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},cZ=function(a,b){if(typeof a==="string"){a=parseInt(a.trim(),10);var c=isNaN(a);return $APP.r($APP.r(c)?c:a<0)?b:a}return b},dZ=function(a,b){return $APP.r(a)?b>=3:a},eZ=function(a,b,c,d){a+=b;return $APP.r(dZ(d,c))?c<=0?0:$APP.hd($APP.hd(a,c)+c,c):c<=0?0:$APP.Yg.i(0,$APP.Zg.i(a,c-1))},gZ=function(a,b){var c=$APP.N(a);a=$APP.G(c,$APP.uj);c=$APP.G(c,fZ);return $APP.r(dZ(c,b))?b>0:a>0},hZ=function(a,b){var c=
3
+ $APP.N(a);a=$APP.G(c,$APP.uj);c=$APP.G(c,fZ);return $APP.r(dZ(c,b))?b>0:a<b-1},jZ=function(a){var b=$APP.l(a,"__xScrollRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("button"),m=document.createElement("div"),p=document.createElement("div");c.textContent=":host{display:block;position:relative;overflow:hidden;color-scheme:light dark;--x-scroll-gap:0px;--x-scroll-padding:0px;--x-scroll-border-radius:0px;--x-scroll-bg:transparent;--x-scroll-control-size:36px;--x-scroll-control-bg:var(--x-color-bg,rgba(255,255,255,0.9));--x-scroll-control-color:var(--x-color-text,rgba(0,0,0,0.7));--x-scroll-control-hover-bg:var(--x-color-bg,rgba(255,255,255,1));--x-scroll-control-border-radius:50%;--x-scroll-control-shadow:var(--x-shadow-md,0 2px 8px rgba(0,0,0,.15));--x-scroll-indicator-size:8px;--x-scroll-indicator-gap:6px;--x-scroll-indicator-color:var(--x-color-text-muted,rgba(0,0,0,0.25));--x-scroll-indicator-active-color:var(--x-color-text,rgba(0,0,0,0.7));--x-scroll-transition-duration:var(--x-transition-duration,300ms);--x-scroll-slide-size:100%;--x-scroll-disabled-opacity:0.55;--x-scroll-focus-ring:var(--x-color-focus-ring,rgba(0,102,204,0.6));}@media (prefers-color-scheme:dark){:host{--x-scroll-control-bg:var(--x-color-bg,rgba(40,40,40,0.9));--x-scroll-control-color:var(--x-color-text,rgba(255,255,255,0.8));--x-scroll-control-hover-bg:var(--x-color-bg,rgba(50,50,50,1));--x-scroll-control-shadow:var(--x-shadow-md,0 2px 8px rgba(0,0,0,.4));--x-scroll-indicator-color:var(--x-color-text-muted,rgba(255,255,255,0.3));--x-scroll-indicator-active-color:var(--x-color-text,rgba(255,255,255,0.8));--x-scroll-focus-ring:var(--x-color-focus-ring,rgba(100,180,255,0.7));}}[part\x3dviewport]{position:relative;overflow:hidden;width:100%;height:100%;border-radius:var(--x-scroll-border-radius);background:var(--x-scroll-bg);padding:var(--x-scroll-padding);}[part\x3dtrack]{display:flex;position:relative;will-change:transform;transition:transform var(--x-scroll-transition-duration) cubic-bezier(0.25,0.1,0.25,1);touch-action:none;user-select:none;}:host([data-mode\x3dhorizontal]) [part\x3dtrack]{flex-direction:row;}:host([data-mode\x3dvertical]) [part\x3dtrack]{flex-direction:column;}::slotted(*){flex:0 0 var(--x-scroll-slide-size);min-width:0;min-height:0;box-sizing:border-box;}[part\x3dprev],[part\x3dnext]{position:absolute;top:50%;z-index:2;appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-control-size);height:var(--x-scroll-control-size);border-radius:var(--x-scroll-control-border-radius);background:var(--x-scroll-control-bg);color:var(--x-scroll-control-color);box-shadow:var(--x-scroll-control-shadow);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:calc(var(--x-scroll-control-size) * 0.5);line-height:1;transform:translateY(-50%);transition:background 120ms ease,opacity 120ms ease;}[part\x3dprev]{left:8px;}[part\x3dnext]{right:8px;}:host([data-mode\x3dvertical]) [part\x3dprev],:host([data-mode\x3dvertical]) [part\x3dnext]{top:auto;left:50%;transform:translateX(-50%);}:host([data-mode\x3dvertical]) [part\x3dprev]{top:8px;}:host([data-mode\x3dvertical]) [part\x3dnext]{bottom:8px;top:auto;}[part\x3dprev]:hover,[part\x3dnext]:hover{background:var(--x-scroll-control-hover-bg);}[part\x3dprev]:focus,[part\x3dnext]:focus{outline:none;}[part\x3dprev]:focus-visible,[part\x3dnext]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dprev]:disabled,[part\x3dnext]:disabled{opacity:0.3;cursor:default;pointer-events:none;}[data-hide-controls] [part\x3dprev],[data-hide-controls] [part\x3dnext]{display:none;}[part\x3dindicators]{display:flex;justify-content:center;gap:var(--x-scroll-indicator-gap);position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2;}:host([data-mode\x3dvertical]) [part\x3dindicators]{flex-direction:column;bottom:auto;left:auto;right:12px;top:50%;transform:translateY(-50%);}[part\x3dindicator]{appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-indicator-size);height:var(--x-scroll-indicator-size);border-radius:50%;background:var(--x-scroll-indicator-color);cursor:pointer;transition:background 120ms ease;}[part\x3dindicator]:focus{outline:none;}[part\x3dindicator]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dindicator][aria-selected\x3dtrue]{background:var(--x-scroll-indicator-active-color);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}:host([disabled]){opacity:var(--x-scroll-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none !important;}}";
4
4
  d.setAttribute("part","viewport");d.setAttribute("role","region");d.setAttribute("aria-roledescription","carousel");e.setAttribute("part","track");e.appendChild(g);d.appendChild(e);h.setAttribute("part","prev");h.setAttribute("type","button");h.setAttribute("aria-label","Previous slide");h.textContent="‹";k.setAttribute("part","next");k.setAttribute("type","button");k.setAttribute("aria-label","Next slide");k.textContent="›";m.setAttribute("part","indicators");m.setAttribute("role","tablist");m.setAttribute("aria-label",
5
- "Slide indicators");p.setAttribute("part","live");p.setAttribute("aria-live","polite");p.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(h);b.appendChild(k);b.appendChild(m);b.appendChild(p);a.__xScrollRefs=new $APP.P(null,8,[$APP.bi,b,$APP.Hi,d,$APP.zi,e,$APP.Fi,g,$APP.Ci,h,$APP.wh,k,FY,m,$APP.$h,p],null);return $APP.l(a,"__xScrollRefs")},UY=function(a){a=$APP.Q([HY,$APP.Oh,IY,$APP.Bk,JY,$APP.pi,KY,LY,$APP.Ai,MY,$APP.uk],[a.getAttribute("show-controls"),a.getAttribute("label"),
6
- $APP.r(a.hasAttribute("auto-play"))?"":null,a.getAttribute("mode"),$APP.r(a.hasAttribute("loop"))?"":null,a.getAttribute("gap"),$APP.r(a.hasAttribute("show-indicators"))?"":null,a.getAttribute("interval"),$APP.r(a.hasAttribute("disabled"))?"":null,a.getAttribute("snap"),a.getAttribute("active-index")]);var b=$APP.N(a),c=$APP.G(b,MY);a=$APP.G(b,LY);var d=$APP.G(b,$APP.Ai),e=$APP.G(b,$APP.uk),g=$APP.G(b,HY),h=$APP.G(b,$APP.Oh),k=$APP.G(b,IY),m=$APP.G(b,$APP.Bk),p=$APP.G(b,JY),q=$APP.G(b,$APP.pi);b=
7
- $APP.G(b,KY);e=zY(e,0);g=yY(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.J(NY,c)?c:"none";m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.J(OY,m)?m:"horizontal";return $APP.Q([$APP.uj,PY,QY,$APP.Ri,RY,SY,$APP.T,$APP.oj,CY,TY,$APP.W],[e,g,c,m,b!=null,k!=null,$APP.r(h)?h:"",zY(q,0),p!=null,$APP.Yg.i(500,zY(a,5E3)),d!=null])},VY=function(a){a=GY(a);a=$APP.N(a);return $APP.G(a,$APP.Fi).assignedElements()},WY=function(){return $APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
8
- XY=function(a){return $APP.D.i("horizontal",$APP.Ri.g(a))},YY=function(a,b){a=VY(a);return a.length>0?(a=a[0].getBoundingClientRect(),XY(b)?a.width:a.height):0},ZY=function(a,b){return a.style.transform=b},$Y=function(a,b){a=a.getBoundingClientRect();return $APP.D.i("horizontal",$APP.Ri.g(b))?a.width:a.height},aZ=function(a,b,c){switch(a){case "center":return(b-c)/2;case "end":return b-c;default:return 0}},bZ=function(a,b,c,d,e){a=$APP.id(a)*(b+c)-d;return $APP.r(e)?"translateX("+$APP.S.g(-a)+"px)":
9
- "translateY("+$APP.S.g(-a)+"px)"},cZ=function(a,b,c){for(var d=0;;)if(d<b){var e=$APP.id(b);a[d].style.order=""+$APP.S.g($APP.hd(d-c+e+b,b)-e);d+=1}else break},dZ=function(a,b){var c=GY(a);c=$APP.N(c);var d=$APP.G(c,$APP.Hi);c=$APP.G(c,$APP.zi);var e=VY(a),g=e.length,h=YY(a,b),k=$APP.oj.g(b),m=$APP.uj.g(b),p=AY(CY.g(b),g);d=$Y(d,b);d=aZ(QY.g(b),d,h);a.__xScrollChildCount=g;if(g>0){c.style.gap=""+$APP.S.g(k)+"px";if($APP.r(p))return cZ(e,g,m),ZY(c,bZ(g,h,k,d,XY(b)));for(a=0;;)if(a<g)e[a].style.order=
10
- "",a+=1;else break;a=m*(h+k)-d;return ZY(c,XY(b)?"translateX("+$APP.S.g(-a)+"px)":"translateY("+$APP.S.g(-a)+"px)")}return null},eZ=function(a,b,c){var d=GY(a);d=$APP.N(d);var e=$APP.G(d,$APP.Hi),g=$APP.G(d,$APP.zi),h=VY(a),k=h.length,m=YY(a,b),p=$APP.oj.g(b),q=XY(b);a=$Y(e,b);var w=aZ(QY.g(b),a,m);c=-($APP.id(k)*(m+p)-w+c*(m+p));ZY(g,q?"translateX("+$APP.S.g(c)+"px)":"translateY("+$APP.S.g(c)+"px)");WY()?(cZ(h,k,$APP.uj.g(b)),ZY(g,bZ(k,m,p,w,q))):g.addEventListener("transitionend",function A(y){return $APP.D.i(y.target,
11
- g)?(g.removeEventListener("transitionend",A),g.style.transition="none",cZ(h,k,$APP.uj.g(b)),ZY(g,bZ(k,m,p,w,q)),g.offsetHeight,g.style.transition=""):null})},fZ=function(a,b,c,d){a=GY(a);var e=$APP.N(a),g=$APP.G(e,FY);g.innerHTML="";for(var h=0;;)if(h<b){var k=document.createElement("button");k.setAttribute("part","indicator");k.setAttribute("type","button");k.setAttribute("role","tab");k.setAttribute("aria-label","Slide "+$APP.S.g(h+1));k.setAttribute("aria-selected",""+$APP.S.g($APP.D.i(h,c)));
12
- k.addEventListener("click",function(m){return function(){return d.g?d.g(m):d.call(null,m)}}(h,k,b,a,e,g,g));g.appendChild(k);h+=1}else break},gZ=function(a,b){a=GY(a);a=$APP.N(a);a=$APP.G(a,FY).children;for(var c=a.length,d=0;;)if(d<c)a[d].setAttribute("aria-selected",""+$APP.S.g($APP.D.i(d,b))),d+=1;else break},hZ=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:$APP.I(d)});return a.dispatchEvent(b)},iZ=function(a){var b=$APP.l(a,"__xScrollAutoplayTid");
13
- $APP.r(b)&&(clearInterval(b),a.__xScrollAutoplayTid=null);return null},lZ=function(a){iZ(a);var b=function(){var c=$APP.l(a,"__xScrollModel");return $APP.r(c)?c:UY(a)}();$APP.r(function(){var c=SY.g(b);return $APP.r(c)?$APP.t($APP.W.g(b)):c}())&&$APP.n(a,"__xScrollAutoplayTid",setInterval(function(){if($APP.r(a.isConnected)){var c=VY(a).length;if(c>0){var d=$APP.uj.g(function(){var g=$APP.l(a,"__xScrollModel");return $APP.r(g)?g:UY(a)}()),e=function(){var g=$APP.l(a,"__xScrollModel");return $APP.r(g)?
14
- g:UY(a)}();c=BY(d,1,c,CY.g(e));return $APP.O(d,c)?jZ?jZ(a,c,1):kZ.call(null,a,c,1):null}}return null},TY.g(b)));return null},mZ=function(a){iZ(a);return lZ(a)},kZ=function(a){switch(arguments.length){case 2:return jZ(arguments[0],arguments[1],null);case 3:return jZ(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}},jZ=function(a,b,c){var d=function(){var w=$APP.l(a,"__xScrollModel");return $APP.r(w)?w:UY(a)}(),e=function(){var w=$APP.l(a,
15
- "__xScrollChildCount");return $APP.r(w)?w:VY(a).length}(),g=$APP.uj.g(d);if(e>0&&$APP.t($APP.W.g(d))){var h=AY(CY.g(d),e),k=$APP.r(h)?e<=0?0:$APP.hd($APP.hd(b,e)+e,e):e<=0?0:$APP.Yg.i(0,$APP.Zg.i(b,e-1));b=k-g;if($APP.O(k,g)){c=$APP.r(c)?c:b>0?1:-1;var m=e>0&&(c>0&&k<g||c<0&&k>g),p=c>0?"forward":"backward";if($APP.r(function(){var w=!m;return w?w:hZ(a,"x-scroll-loop",new $APP.P(null,1,[$APP.Ni,p],null),!0)}())){hZ(a,"x-scroll-start",new $APP.P(null,2,[$APP.Ni,p,$APP.Cj,g],null),!1);d=$APP.Wg.o(d,
16
- $APP.uj,k);a.__xScrollModel=d;a.setAttribute("active-index",""+$APP.S.g(k));$APP.r(h)?eZ(a,d,c):dZ(a,d);gZ(a,k);h=GY(a);b=$APP.N(h);h=$APP.G(b,$APP.Ci);c=$APP.G(b,$APP.wh);b=$APP.G(b,$APP.$h);h.disabled=!DY(d,e);c.disabled=!EY(d,e);b.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(e);hZ(a,"x-scroll-change",new $APP.P(null,2,[$APP.Cj,k,$APP.rj,g],null),!1);if(WY())hZ(a,"x-scroll-end",new $APP.P(null,1,[$APP.Cj,k],null),!1);else{e=GY(a);e=$APP.N(e);var q=$APP.G(e,$APP.zi);q.addEventListener("transitionend",
17
- function y(x){return $APP.D.i(x.target,q)?(q.removeEventListener("transitionend",y),hZ(a,"x-scroll-end",new $APP.P(null,1,[$APP.Cj,k],null),!1)):null})}return mZ(a)}}}return null},nZ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.r(d)?d:UY(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.r(d)?d:VY(a).length}();b=BY($APP.uj.g(b),1,c,CY.g(b));return jZ(a,b,1)},oZ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.r(d)?d:UY(a)}(),
18
- c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.r(d)?d:VY(a).length}();b=BY($APP.uj.g(b),-1,c,CY.g(b));return jZ(a,b,-1)},rZ=function(a,b){function c(k){return pZ.i?pZ.i(a,k):pZ.call(null,a,k)}var d=function(){var k=$APP.l(a,"__xScrollModel");return $APP.r(k)?k:UY(a)}();if($APP.r($APP.W.g(d)))return null;var e=GY(a);e=$APP.N(e);e=$APP.G(e,$APP.zi);var g=XY(d);e.style.transition="none";iZ(a);var h=function p(m){window.removeEventListener("pointermove",c);window.removeEventListener("pointerup",
19
- p);return qZ.i?qZ.i(a,m):qZ.call(null,a,m)};window.addEventListener("pointermove",c);window.addEventListener("pointerup",h);return $APP.n(a,"__xScrollDragState",function(){var m={};m.startX=b.clientX;m.startTime=Date.now();m.startY=b.clientY;m.upH=h;m.moveH=c;m.isDragging=!1;m.lastY=b.clientY;m.lastTime=Date.now();m.horiz=g;m.lastX=b.clientX;return m}())},pZ=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.r(c)){b.preventDefault();var d=$APP.l(c,"horiz"),e=($APP.r(d)?b.clientX:b.clientY)-
20
- ($APP.r(d)?$APP.l(c,"startX"):$APP.l(c,"startY"));$APP.t($APP.l(c,"isDragging"))&&Math.abs(e)>3&&(c.isDragging=!0);if($APP.r($APP.l(c,"isDragging"))){c.lastX=b.clientX;c.lastY=b.clientY;$APP.n(c,"lastTime",Date.now());b=GY(a);b=$APP.N(b);var g=$APP.G(b,$APP.Hi);b=$APP.G(b,$APP.zi);var h=function(){var w=$APP.l(a,"__xScrollModel");return $APP.r(w)?w:UY(a)}(),k=YY(a,h),m=$APP.oj.g(h);c=function(){var w=$APP.l(a,"__xScrollChildCount");return $APP.r(w)?w:VY(a).length}();var p=$APP.uj.g(h),q=AY(CY.g(h),
21
- c);g=$Y(g,h);g=aZ(QY.g(h),g,k);k=($APP.r(q)?$APP.id(c)*(k+m):p*(k+m))-g;e=($APP.t(q)&&(e<0&&$APP.D.i(p,c-1)||e>0&&$APP.D.i(p,0))?e*.3:e)-k;return ZY(b,$APP.r(d)?"translateX("+$APP.S.g(e)+"px)":"translateY("+$APP.S.g(e)+"px)")}}return null},qZ=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.r(c)){a.__xScrollDragState=null;var d=GY(a);d=$APP.N(d);$APP.G(d,$APP.zi).style.transition="";if($APP.r($APP.l(c,"isDragging"))){d=$APP.l(c,"horiz");b=($APP.r(d)?b.clientX:b.clientY)-($APP.r(d)?$APP.l(c,
22
- "startX"):$APP.l(c,"startY"));c=Date.now()-$APP.l(c,"lastTime");d=c>0?Math.abs(b)/c:0;c=function(){var k=$APP.l(a,"__xScrollModel");return $APP.r(k)?k:UY(a)}();var e=GY(a);e=$APP.N(e);$APP.G(e,$APP.Hi);var g=YY(a,c),h=function(){var k=$APP.l(a,"__xScrollChildCount");return $APP.r(k)?k:VY(a).length}();e=$APP.uj.g(c);d=d>.5?b<0?1:-1:Math.abs(b)>.5*g?b<0?1:-1:0;d=d===0?e:BY(e,d,h,CY.g(c));$APP.D.i(d,e)?dZ(a,c):jZ(a,d,b<0?1:-1);return mZ(a)}}return null},sZ=function(a,b){var c=function(){var e=$APP.l(a,
23
- "__xScrollModel");return $APP.r(e)?e:UY(a)}();if($APP.r($APP.W.g(c)))return null;var d=b.key;(c=XY(c))&&$APP.D.i(d,"ArrowLeft")?(oZ(a),d=!0):c&&$APP.D.i(d,"ArrowRight")?(nZ(a),d=!0):!c&&$APP.D.i(d,"ArrowUp")?(oZ(a),d=!0):!c&&$APP.D.i(d,"ArrowDown")?(nZ(a),d=!0):$APP.D.i(d,"Home")?(jZ(a,0,null),d=!0):d=$APP.D.i(d,"End")&&function(){var e=$APP.l(a,"__xScrollChildCount");e=$APP.r(e)?e:VY(a).length;jZ(a,e-1,null);return!0}();return d?b.preventDefault():null},tZ=function(a){var b=function(){var h=$APP.l(a,
24
- "__xScrollModel");return $APP.r(h)?h:UY(a)}(),c=VY(a).length;a.__xScrollChildCount=c;if(c>0&&$APP.uj.g(b)>=c){var d=c-1;a.setAttribute("active-index",""+$APP.S.g(d));$APP.n(a,"__xScrollModel",$APP.Wg.o(b,$APP.uj,d))}b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.r(h)?h:UY(a)}();d=GY(a);var e=$APP.N(d);d=$APP.G(e,$APP.Ci);var g=$APP.G(e,$APP.wh);e=$APP.G(e,$APP.$h);$APP.r(RY.g(b))&&fZ(a,c,$APP.uj.g(b),function(h){return jZ(a,h,null)});d.disabled=!DY(b,c);g.disabled=!EY(b,c);c>0&&(e.textContent=
25
- "Slide "+$APP.S.g($APP.uj.g(b)+1)+" of "+$APP.S.g(c));return dZ(a,b)},uZ=function(a){function b(){return mZ(a)}function c(){return iZ(a)}function d(){return mZ(a)}function e(){return iZ(a)}function g(){return $APP.r(document.hidden)?iZ(a):mZ(a)}function h(){return tZ(a)}function k(C){return rZ(a,C)}function m(C){return sZ(a,C)}function p(){return nZ(a)}function q(){return oZ(a)}var w=GY(a),x=$APP.N(w);w=$APP.G(x,$APP.Ci);var y=$APP.G(x,$APP.wh),A=$APP.G(x,$APP.Fi);x=$APP.G(x,$APP.Hi);w.addEventListener("click",
26
- q);y.addEventListener("click",p);a.addEventListener("keydown",m);x.addEventListener("pointerdown",k);A.addEventListener("slotchange",h);document.addEventListener("visibilitychange",g);a.addEventListener("mouseenter",e);a.addEventListener("mouseleave",d);a.addEventListener("focusin",c);a.addEventListener("focusout",b);$APP.n(a,"__xScrollHandlers",{slot:h,focusin:c,keydown:m,vis:g,enter:e,next:p,leave:d,prev:q,pdown:k,focusout:b})},vZ=function(a){iZ(a);var b=$APP.l(a,"__xScrollHandlers"),c=$APP.l(a,
5
+ "Slide indicators");p.setAttribute("part","live");p.setAttribute("aria-live","polite");p.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(h);b.appendChild(k);b.appendChild(m);b.appendChild(p);a.__xScrollRefs=new $APP.P(null,8,[$APP.bi,b,$APP.Hi,d,$APP.wi,e,$APP.Fi,g,$APP.Ci,h,$APP.wh,k,iZ,m,$APP.$h,p],null);return $APP.l(a,"__xScrollRefs")},xZ=function(a){a=$APP.Q([kZ,$APP.Oh,lZ,$APP.Ck,mZ,$APP.pi,nZ,oZ,$APP.Ai,pZ,$APP.vk],[a.getAttribute("show-controls"),a.getAttribute("label"),
6
+ $APP.r(a.hasAttribute("auto-play"))?"":null,a.getAttribute("mode"),$APP.r(a.hasAttribute("loop"))?"":null,a.getAttribute("gap"),$APP.r(a.hasAttribute("show-indicators"))?"":null,a.getAttribute("interval"),$APP.r(a.hasAttribute("disabled"))?"":null,a.getAttribute("snap"),a.getAttribute("active-index")]);var b=$APP.N(a),c=$APP.G(b,pZ);a=$APP.G(b,oZ);var d=$APP.G(b,$APP.Ai),e=$APP.G(b,$APP.vk),g=$APP.G(b,kZ),h=$APP.G(b,$APP.Oh),k=$APP.G(b,lZ),m=$APP.G(b,$APP.Ck),p=$APP.G(b,mZ),q=$APP.G(b,$APP.pi);b=
7
+ $APP.G(b,nZ);e=cZ(e,0);g=bZ(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.J(qZ,c)?c:"none";m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.J(rZ,m)?m:"horizontal";return $APP.Q([$APP.uj,sZ,tZ,$APP.Ri,uZ,vZ,$APP.T,$APP.oj,fZ,wZ,$APP.W],[e,g,c,m,b!=null,k!=null,$APP.r(h)?h:"",cZ(q,0),p!=null,$APP.Yg.i(500,cZ(a,5E3)),d!=null])},yZ=function(a){a=jZ(a);a=$APP.N(a);return $APP.G(a,$APP.Fi).assignedElements()},zZ=function(){return $APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
8
+ AZ=function(a){return $APP.D.i("horizontal",$APP.Ri.g(a))},BZ=function(a,b){a=yZ(a);return a.length>0?(a=a[0].getBoundingClientRect(),AZ(b)?a.width:a.height):0},CZ=function(a,b){return a.style.transform=b},DZ=function(a,b){a=a.getBoundingClientRect();return $APP.D.i("horizontal",$APP.Ri.g(b))?a.width:a.height},EZ=function(a,b,c){switch(a){case "center":return(b-c)/2;case "end":return b-c;default:return 0}},FZ=function(a,b,c,d,e){a=$APP.id(a)*(b+c)-d;return $APP.r(e)?"translateX("+$APP.S.g(-a)+"px)":
9
+ "translateY("+$APP.S.g(-a)+"px)"},GZ=function(a,b,c){for(var d=0;;)if(d<b){var e=$APP.id(b);a[d].style.order=""+$APP.S.g($APP.hd(d-c+e+b,b)-e);d+=1}else break},HZ=function(a,b){var c=jZ(a);c=$APP.N(c);var d=$APP.G(c,$APP.Hi);c=$APP.G(c,$APP.wi);var e=yZ(a),g=e.length,h=BZ(a,b),k=$APP.oj.g(b),m=$APP.uj.g(b),p=dZ(fZ.g(b),g);d=DZ(d,b);d=EZ(tZ.g(b),d,h);a.__xScrollChildCount=g;if(g>0){c.style.gap=""+$APP.S.g(k)+"px";if($APP.r(p))return GZ(e,g,m),CZ(c,FZ(g,h,k,d,AZ(b)));for(a=0;;)if(a<g)e[a].style.order=
10
+ "",a+=1;else break;a=m*(h+k)-d;return CZ(c,AZ(b)?"translateX("+$APP.S.g(-a)+"px)":"translateY("+$APP.S.g(-a)+"px)")}return null},IZ=function(a,b,c){var d=jZ(a);d=$APP.N(d);var e=$APP.G(d,$APP.Hi),g=$APP.G(d,$APP.wi),h=yZ(a),k=h.length,m=BZ(a,b),p=$APP.oj.g(b),q=AZ(b);a=DZ(e,b);var w=EZ(tZ.g(b),a,m);c=-($APP.id(k)*(m+p)-w+c*(m+p));CZ(g,q?"translateX("+$APP.S.g(c)+"px)":"translateY("+$APP.S.g(c)+"px)");zZ()?(GZ(h,k,$APP.uj.g(b)),CZ(g,FZ(k,m,p,w,q))):g.addEventListener("transitionend",function A(y){return $APP.D.i(y.target,
11
+ g)?(g.removeEventListener("transitionend",A),g.style.transition="none",GZ(h,k,$APP.uj.g(b)),CZ(g,FZ(k,m,p,w,q)),g.offsetHeight,g.style.transition=""):null})},JZ=function(a,b,c,d){a=jZ(a);var e=$APP.N(a),g=$APP.G(e,iZ);g.innerHTML="";for(var h=0;;)if(h<b){var k=document.createElement("button");k.setAttribute("part","indicator");k.setAttribute("type","button");k.setAttribute("role","tab");k.setAttribute("aria-label","Slide "+$APP.S.g(h+1));k.setAttribute("aria-selected",""+$APP.S.g($APP.D.i(h,c)));
12
+ k.addEventListener("click",function(m){return function(){return d.g?d.g(m):d.call(null,m)}}(h,k,b,a,e,g,g));g.appendChild(k);h+=1}else break},KZ=function(a,b){a=jZ(a);a=$APP.N(a);a=$APP.G(a,iZ).children;for(var c=a.length,d=0;;)if(d<c)a[d].setAttribute("aria-selected",""+$APP.S.g($APP.D.i(d,b))),d+=1;else break},LZ=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:$APP.I(d)});return a.dispatchEvent(b)},MZ=function(a){var b=$APP.l(a,"__xScrollAutoplayTid");
13
+ $APP.r(b)&&(clearInterval(b),a.__xScrollAutoplayTid=null);return null},PZ=function(a){MZ(a);var b=function(){var c=$APP.l(a,"__xScrollModel");return $APP.r(c)?c:xZ(a)}();$APP.r(function(){var c=vZ.g(b);return $APP.r(c)?$APP.t($APP.W.g(b)):c}())&&$APP.n(a,"__xScrollAutoplayTid",setInterval(function(){if($APP.r(a.isConnected)){var c=yZ(a).length;if(c>0){var d=$APP.uj.g(function(){var g=$APP.l(a,"__xScrollModel");return $APP.r(g)?g:xZ(a)}()),e=function(){var g=$APP.l(a,"__xScrollModel");return $APP.r(g)?
14
+ g:xZ(a)}();c=eZ(d,1,c,fZ.g(e));return $APP.O(d,c)?NZ?NZ(a,c,1):OZ.call(null,a,c,1):null}}return null},wZ.g(b)));return null},QZ=function(a){MZ(a);return PZ(a)},OZ=function(a){switch(arguments.length){case 2:return NZ(arguments[0],arguments[1],null);case 3:return NZ(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}},NZ=function(a,b,c){var d=function(){var w=$APP.l(a,"__xScrollModel");return $APP.r(w)?w:xZ(a)}(),e=function(){var w=$APP.l(a,
15
+ "__xScrollChildCount");return $APP.r(w)?w:yZ(a).length}(),g=$APP.uj.g(d);if(e>0&&$APP.t($APP.W.g(d))){var h=dZ(fZ.g(d),e),k=$APP.r(h)?e<=0?0:$APP.hd($APP.hd(b,e)+e,e):e<=0?0:$APP.Yg.i(0,$APP.Zg.i(b,e-1));b=k-g;if($APP.O(k,g)){c=$APP.r(c)?c:b>0?1:-1;var m=e>0&&(c>0&&k<g||c<0&&k>g),p=c>0?"forward":"backward";if($APP.r(function(){var w=!m;return w?w:LZ(a,"x-scroll-loop",new $APP.P(null,1,[$APP.Ni,p],null),!0)}())){LZ(a,"x-scroll-start",new $APP.P(null,2,[$APP.Ni,p,$APP.Cj,g],null),!1);d=$APP.Wg.o(d,
16
+ $APP.uj,k);a.__xScrollModel=d;a.setAttribute("active-index",""+$APP.S.g(k));$APP.r(h)?IZ(a,d,c):HZ(a,d);KZ(a,k);h=jZ(a);b=$APP.N(h);h=$APP.G(b,$APP.Ci);c=$APP.G(b,$APP.wh);b=$APP.G(b,$APP.$h);h.disabled=!gZ(d,e);c.disabled=!hZ(d,e);b.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(e);LZ(a,"x-scroll-change",new $APP.P(null,2,[$APP.Cj,k,$APP.rj,g],null),!1);if(zZ())LZ(a,"x-scroll-end",new $APP.P(null,1,[$APP.Cj,k],null),!1);else{e=jZ(a);e=$APP.N(e);var q=$APP.G(e,$APP.wi);q.addEventListener("transitionend",
17
+ function y(x){return $APP.D.i(x.target,q)?(q.removeEventListener("transitionend",y),LZ(a,"x-scroll-end",new $APP.P(null,1,[$APP.Cj,k],null),!1)):null})}return QZ(a)}}}return null},RZ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.r(d)?d:xZ(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.r(d)?d:yZ(a).length}();b=eZ($APP.uj.g(b),1,c,fZ.g(b));return NZ(a,b,1)},SZ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.r(d)?d:xZ(a)}(),
18
+ c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.r(d)?d:yZ(a).length}();b=eZ($APP.uj.g(b),-1,c,fZ.g(b));return NZ(a,b,-1)},VZ=function(a,b){function c(k){return TZ.i?TZ.i(a,k):TZ.call(null,a,k)}var d=function(){var k=$APP.l(a,"__xScrollModel");return $APP.r(k)?k:xZ(a)}();if($APP.r($APP.W.g(d)))return null;var e=jZ(a);e=$APP.N(e);e=$APP.G(e,$APP.wi);var g=AZ(d);e.style.transition="none";MZ(a);var h=function p(m){window.removeEventListener("pointermove",c);window.removeEventListener("pointerup",
19
+ p);return UZ.i?UZ.i(a,m):UZ.call(null,a,m)};window.addEventListener("pointermove",c);window.addEventListener("pointerup",h);return $APP.n(a,"__xScrollDragState",function(){var m={};m.startX=b.clientX;m.startTime=Date.now();m.startY=b.clientY;m.upH=h;m.moveH=c;m.isDragging=!1;m.lastY=b.clientY;m.lastTime=Date.now();m.horiz=g;m.lastX=b.clientX;return m}())},TZ=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.r(c)){b.preventDefault();var d=$APP.l(c,"horiz"),e=($APP.r(d)?b.clientX:b.clientY)-
20
+ ($APP.r(d)?$APP.l(c,"startX"):$APP.l(c,"startY"));$APP.t($APP.l(c,"isDragging"))&&Math.abs(e)>3&&(c.isDragging=!0);if($APP.r($APP.l(c,"isDragging"))){c.lastX=b.clientX;c.lastY=b.clientY;$APP.n(c,"lastTime",Date.now());b=jZ(a);b=$APP.N(b);var g=$APP.G(b,$APP.Hi);b=$APP.G(b,$APP.wi);var h=function(){var w=$APP.l(a,"__xScrollModel");return $APP.r(w)?w:xZ(a)}(),k=BZ(a,h),m=$APP.oj.g(h);c=function(){var w=$APP.l(a,"__xScrollChildCount");return $APP.r(w)?w:yZ(a).length}();var p=$APP.uj.g(h),q=dZ(fZ.g(h),
21
+ c);g=DZ(g,h);g=EZ(tZ.g(h),g,k);k=($APP.r(q)?$APP.id(c)*(k+m):p*(k+m))-g;e=($APP.t(q)&&(e<0&&$APP.D.i(p,c-1)||e>0&&$APP.D.i(p,0))?e*.3:e)-k;return CZ(b,$APP.r(d)?"translateX("+$APP.S.g(e)+"px)":"translateY("+$APP.S.g(e)+"px)")}}return null},UZ=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.r(c)){a.__xScrollDragState=null;var d=jZ(a);d=$APP.N(d);$APP.G(d,$APP.wi).style.transition="";if($APP.r($APP.l(c,"isDragging"))){d=$APP.l(c,"horiz");b=($APP.r(d)?b.clientX:b.clientY)-($APP.r(d)?$APP.l(c,
22
+ "startX"):$APP.l(c,"startY"));c=Date.now()-$APP.l(c,"lastTime");d=c>0?Math.abs(b)/c:0;c=function(){var k=$APP.l(a,"__xScrollModel");return $APP.r(k)?k:xZ(a)}();var e=jZ(a);e=$APP.N(e);$APP.G(e,$APP.Hi);var g=BZ(a,c),h=function(){var k=$APP.l(a,"__xScrollChildCount");return $APP.r(k)?k:yZ(a).length}();e=$APP.uj.g(c);d=d>.5?b<0?1:-1:Math.abs(b)>.5*g?b<0?1:-1:0;d=d===0?e:eZ(e,d,h,fZ.g(c));$APP.D.i(d,e)?HZ(a,c):NZ(a,d,b<0?1:-1);return QZ(a)}}return null},WZ=function(a,b){var c=function(){var e=$APP.l(a,
23
+ "__xScrollModel");return $APP.r(e)?e:xZ(a)}();if($APP.r($APP.W.g(c)))return null;var d=b.key;(c=AZ(c))&&$APP.D.i(d,"ArrowLeft")?(SZ(a),d=!0):c&&$APP.D.i(d,"ArrowRight")?(RZ(a),d=!0):!c&&$APP.D.i(d,"ArrowUp")?(SZ(a),d=!0):!c&&$APP.D.i(d,"ArrowDown")?(RZ(a),d=!0):$APP.D.i(d,"Home")?(NZ(a,0,null),d=!0):d=$APP.D.i(d,"End")&&function(){var e=$APP.l(a,"__xScrollChildCount");e=$APP.r(e)?e:yZ(a).length;NZ(a,e-1,null);return!0}();return d?b.preventDefault():null},XZ=function(a){var b=function(){var h=$APP.l(a,
24
+ "__xScrollModel");return $APP.r(h)?h:xZ(a)}(),c=yZ(a).length;a.__xScrollChildCount=c;if(c>0&&$APP.uj.g(b)>=c){var d=c-1;a.setAttribute("active-index",""+$APP.S.g(d));$APP.n(a,"__xScrollModel",$APP.Wg.o(b,$APP.uj,d))}b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.r(h)?h:xZ(a)}();d=jZ(a);var e=$APP.N(d);d=$APP.G(e,$APP.Ci);var g=$APP.G(e,$APP.wh);e=$APP.G(e,$APP.$h);$APP.r(uZ.g(b))&&JZ(a,c,$APP.uj.g(b),function(h){return NZ(a,h,null)});d.disabled=!gZ(b,c);g.disabled=!hZ(b,c);c>0&&(e.textContent=
25
+ "Slide "+$APP.S.g($APP.uj.g(b)+1)+" of "+$APP.S.g(c));return HZ(a,b)},YZ=function(a){function b(){return QZ(a)}function c(){return MZ(a)}function d(){return QZ(a)}function e(){return MZ(a)}function g(){return $APP.r(document.hidden)?MZ(a):QZ(a)}function h(){return XZ(a)}function k(B){return VZ(a,B)}function m(B){return WZ(a,B)}function p(){return RZ(a)}function q(){return SZ(a)}var w=jZ(a),x=$APP.N(w);w=$APP.G(x,$APP.Ci);var y=$APP.G(x,$APP.wh),A=$APP.G(x,$APP.Fi);x=$APP.G(x,$APP.Hi);w.addEventListener("click",
26
+ q);y.addEventListener("click",p);a.addEventListener("keydown",m);x.addEventListener("pointerdown",k);A.addEventListener("slotchange",h);document.addEventListener("visibilitychange",g);a.addEventListener("pointerenter",e);a.addEventListener("pointerleave",d);a.addEventListener("focusin",c);a.addEventListener("focusout",b);$APP.n(a,"__xScrollHandlers",{slot:h,focusin:c,keydown:m,vis:g,enter:e,next:p,leave:d,prev:q,pdown:k,focusout:b})},ZZ=function(a){MZ(a);var b=$APP.l(a,"__xScrollHandlers"),c=$APP.l(a,
27
27
  "__xScrollRefs");if($APP.r($APP.r(b)?c:b)){var d=$APP.Ci.g(c),e=$APP.wh.g(c),g=$APP.Fi.g(c);c=$APP.Hi.g(c);var h=$APP.l(b,"prev");$APP.r(h)&&d.removeEventListener("click",h);d=$APP.l(b,"next");$APP.r(d)&&e.removeEventListener("click",d);e=$APP.l(b,"keydown");$APP.r(e)&&a.removeEventListener("keydown",e);e=$APP.l(b,"pdown");$APP.r(e)&&c.removeEventListener("pointerdown",e);c=$APP.l(a,"__xScrollDragState");$APP.r(c)&&(e=$APP.l(c,"moveH"),$APP.r(e)&&window.removeEventListener("pointermove",e),c=$APP.l(c,
28
- "upH"),$APP.r(c)&&window.removeEventListener("pointerup",c),a.__xScrollDragState=null);c=$APP.l(b,"slot");$APP.r(c)&&g.removeEventListener("slotchange",c);g=$APP.l(b,"vis");$APP.r(g)&&document.removeEventListener("visibilitychange",g);g=$APP.l(b,"enter");$APP.r(g)&&a.removeEventListener("mouseenter",g);g=$APP.l(b,"leave");$APP.r(g)&&a.removeEventListener("mouseleave",g);g=$APP.l(b,"focusin");$APP.r(g)&&a.removeEventListener("focusin",g);b=$APP.l(b,"focusout");$APP.r(b)&&a.removeEventListener("focusout",
29
- b)}a.__xScrollHandlers=null},wZ=function(a){var b=$APP.l(a,"__xScrollResizeObs");$APP.r(b)&&b.disconnect();b=GY(a);b=$APP.N(b);b=$APP.G(b,$APP.Hi);var c=new ResizeObserver(function(){if($APP.r(a.isConnected)){var d=$APP.l(a,"__xScrollModel");d=$APP.r(d)?d:UY(a);return dZ(a,d)}return null});c.observe(b);a.__xScrollResizeObs=c},xZ=function(a,b){b=$APP.N(b);var c=$APP.G(b,$APP.Ri),d=$APP.G(b,PY),e=$APP.G(b,RY),g=$APP.G(b,$APP.W),h=$APP.G(b,$APP.T),k=$APP.G(b,$APP.uj),m=GY(a);m=$APP.N(m);var p=$APP.G(m,
30
- $APP.Hi),q=$APP.G(m,$APP.Ci),w=$APP.G(m,$APP.wh);m=$APP.G(m,$APP.$h);var x=function(){var y=$APP.l(a,"__xScrollChildCount");return $APP.r(y)?y:VY(a).length}();a.setAttribute("data-mode",c);$APP.r(d)?a.removeAttribute("data-hide-controls"):a.setAttribute("data-hide-controls","");$APP.u(h)?p.setAttribute("aria-label",h):p.removeAttribute("aria-label");q.disabled=!DY(b,x);w.disabled=!EY(b,x);a.tabIndex=$APP.r(g)?-1:0;$APP.r(e)&&fZ(a,x,k,function(y){return jZ(a,y,null)});$APP.r(e)||(c=GY(a),c=$APP.N(c),
31
- $APP.G(c,FY).innerHTML="");x>0&&(m.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(x));dZ(a,b);a.__xScrollModel=b},yZ=function(a){var b=UY(a);$APP.O($APP.l(a,"__xScrollModel"),b)&&xZ(a,b)},zZ=function(a){Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.r(b)?b:"horizontal"},set:function(b){return $APP.r(b)?this.setAttribute("mode",""+$APP.S.g(b)):this.removeAttribute("mode")},enumerable:!0,configurable:!0});Object.defineProperty(a,"snap",{get:function(){var b=
28
+ "upH"),$APP.r(c)&&window.removeEventListener("pointerup",c),a.__xScrollDragState=null);c=$APP.l(b,"slot");$APP.r(c)&&g.removeEventListener("slotchange",c);g=$APP.l(b,"vis");$APP.r(g)&&document.removeEventListener("visibilitychange",g);g=$APP.l(b,"enter");$APP.r(g)&&a.removeEventListener("pointerenter",g);g=$APP.l(b,"leave");$APP.r(g)&&a.removeEventListener("pointerleave",g);g=$APP.l(b,"focusin");$APP.r(g)&&a.removeEventListener("focusin",g);b=$APP.l(b,"focusout");$APP.r(b)&&a.removeEventListener("focusout",
29
+ b)}a.__xScrollHandlers=null},$Z=function(a){var b=$APP.l(a,"__xScrollResizeObs");$APP.r(b)&&b.disconnect();b=jZ(a);b=$APP.N(b);b=$APP.G(b,$APP.Hi);var c=new ResizeObserver(function(){if($APP.r(a.isConnected)){var d=$APP.l(a,"__xScrollModel");d=$APP.r(d)?d:xZ(a);return HZ(a,d)}return null});c.observe(b);a.__xScrollResizeObs=c},a_=function(a,b){b=$APP.N(b);var c=$APP.G(b,$APP.Ri),d=$APP.G(b,sZ),e=$APP.G(b,uZ),g=$APP.G(b,$APP.W),h=$APP.G(b,$APP.T),k=$APP.G(b,$APP.uj),m=jZ(a);m=$APP.N(m);var p=$APP.G(m,
30
+ $APP.Hi),q=$APP.G(m,$APP.Ci),w=$APP.G(m,$APP.wh);m=$APP.G(m,$APP.$h);var x=function(){var y=$APP.l(a,"__xScrollChildCount");return $APP.r(y)?y:yZ(a).length}();a.setAttribute("data-mode",c);$APP.r(d)?a.removeAttribute("data-hide-controls"):a.setAttribute("data-hide-controls","");$APP.u(h)?p.setAttribute("aria-label",h):p.removeAttribute("aria-label");q.disabled=!gZ(b,x);w.disabled=!hZ(b,x);a.tabIndex=$APP.r(g)?-1:0;$APP.r(e)&&JZ(a,x,k,function(y){return NZ(a,y,null)});$APP.r(e)||(c=jZ(a),c=$APP.N(c),
31
+ $APP.G(c,iZ).innerHTML="");x>0&&(m.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(x));HZ(a,b);a.__xScrollModel=b},b_=function(a){var b=xZ(a);$APP.O($APP.l(a,"__xScrollModel"),b)&&a_(a,b)},c_=function(a){Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.r(b)?b:"horizontal"},set:function(b){return $APP.r(b)?this.setAttribute("mode",""+$APP.S.g(b)):this.removeAttribute("mode")},enumerable:!0,configurable:!0});Object.defineProperty(a,"snap",{get:function(){var b=
32
32
  this.getAttribute("snap");return $APP.r(b)?b:"none"},set:function(b){return $APP.r(b)?this.setAttribute("snap",""+$APP.S.g(b)):this.removeAttribute("snap")},enumerable:!0,configurable:!0});Object.defineProperty(a,"loop",{get:function(){return this.hasAttribute("loop")},set:function(b){return $APP.r(b)?this.setAttribute("loop",""):this.removeAttribute("loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoPlay",{get:function(){return this.hasAttribute("auto-play")},set:function(b){return $APP.r(b)?
33
- this.setAttribute("auto-play",""):this.removeAttribute("auto-play")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interval",{get:function(){var b=this.getAttribute("interval");return $APP.Yg.i(500,zY(b,5E3))},set:function(b){return b==null?this.removeAttribute("interval"):this.setAttribute("interval",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showControls",{get:function(){return yY(this.getAttribute("show-controls"))},set:function(b){return $APP.r(b)?this.removeAttribute("show-controls"):
34
- this.setAttribute("show-controls","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showIndicators",{get:function(){return this.hasAttribute("show-indicators")},set:function(b){return $APP.r(b)?this.setAttribute("show-indicators",""):this.removeAttribute("show-indicators")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");return zY(b,0)},set:function(b){return b==null?this.removeAttribute("active-index"):
35
- this.setAttribute("active-index",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"gap",{get:function(){var b=this.getAttribute("gap");return zY(b,0)},set:function(b){return b==null?this.removeAttribute("gap"):this.setAttribute("gap",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,
36
- configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},BZ=function(){var a=class extends HTMLElement{};a.observedAttributes=AZ;a.prototype.connectedCallback=function(){GY(this);vZ(this);uZ(this);wZ(this);yZ(this);lZ(this);return null};a.prototype.disconnectedCallback=function(){vZ(this);
37
- var c=$APP.l(this,"__xScrollResizeObs");$APP.r(c)&&(c.disconnect(),this.__xScrollResizeObs=null);c=VY(this);for(var d=c.length,e=0;;)if(e<d)c[e].style.order="",e+=1;else break;return null};a.prototype.attributeChangedCallback=function(c,d,e){$APP.O(d,e)&&(yZ(this),d=this.isConnected,c=$APP.r(d)?$APP.D.i(c,"auto-play")||$APP.D.i(c,"interval")||$APP.D.i(c,"disabled"):d,$APP.r(c)&&mZ(this));return null};var b=a.prototype;zZ(b);b.goTo=function(c){return jZ(this,c,null)};b.next=function(){return nZ(this)};
38
- b.prev=function(){return oZ(this)};return a},CZ=function(){$APP.r(customElements.get("x-scroll"))||customElements.define("x-scroll",BZ());return null},QY=new $APP.M(null,"snap","snap",-51714904),LY=new $APP.M(null,"interval-raw","interval-raw",443967609),MY=new $APP.M(null,"snap-raw","snap-raw",828444409),SY=new $APP.M(null,"auto-play?","auto-play?",385278451),PY=new $APP.M(null,"show-controls?","show-controls?",1318868354),KY=new $APP.M(null,"show-indicators-attr","show-indicators-attr",1148535895),
39
- HY=new $APP.M(null,"show-controls-attr","show-controls-attr",-894641087),JY=new $APP.M(null,"loop-attr","loop-attr",-132212822),TY=new $APP.M(null,"interval","interval",1708495417),CY=new $APP.M(null,"loop?","loop?",457687798),IY=new $APP.M(null,"auto-play-attr","auto-play-attr",329299716),RY=new $APP.M(null,"show-indicators?","show-indicators?",-370587412),FY=new $APP.M(null,"indicators","indicators",1312373003);var AZ="mode snap loop auto-play interval show-controls show-indicators active-index gap disabled label".split(" ");
40
- $APP.Q([$APP.gj,new $APP.M(null,"showIndicators","showIndicators",1780978055),QY,$APP.Cj,$APP.Ri,new $APP.M(null,"showControls","showControls",1591218925),$APP.zl,$APP.T,$APP.oj,new $APP.M(null,"autoPlay","autoPlay",-561263241),TY],[new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,
41
- $APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.V],null)]);
42
- $APP.Sd(["x-scroll-change",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Cj,$APP.V,$APP.rj,$APP.V],null),$APP.kl,!1],null),"x-scroll-start",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ni,$APP.Y,$APP.Cj,$APP.V],null),$APP.kl,!1],null),"x-scroll-end",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.Cj,$APP.V],null),$APP.kl,!1],null),"x-scroll-loop",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.Ni,$APP.Y],null),$APP.kl,!0],null)]);
43
- var OY=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),NY=new $APP.R(null,new $APP.P(null,4,["none",null,"center",null,"start",null,"end",null],null),null);$APP.ka("baredom.exports.x_scroll.init",CZ);export const init=CZ;
33
+ this.setAttribute("auto-play",""):this.removeAttribute("auto-play")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interval",{get:function(){var b=this.getAttribute("interval");return $APP.Yg.i(500,cZ(b,5E3))},set:function(b){return b==null?this.removeAttribute("interval"):this.setAttribute("interval",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showControls",{get:function(){return bZ(this.getAttribute("show-controls"))},set:function(b){return $APP.r(b)?this.removeAttribute("show-controls"):
34
+ this.setAttribute("show-controls","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showIndicators",{get:function(){return this.hasAttribute("show-indicators")},set:function(b){return $APP.r(b)?this.setAttribute("show-indicators",""):this.removeAttribute("show-indicators")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");return cZ(b,0)},set:function(b){return b==null?this.removeAttribute("active-index"):
35
+ this.setAttribute("active-index",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"gap",{get:function(){var b=this.getAttribute("gap");return cZ(b,0)},set:function(b){return b==null?this.removeAttribute("gap"):this.setAttribute("gap",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,
36
+ configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},e_=function(){var a=class extends HTMLElement{};a.observedAttributes=d_;a.prototype.connectedCallback=function(){jZ(this);ZZ(this);YZ(this);$Z(this);b_(this);PZ(this);return null};a.prototype.disconnectedCallback=function(){ZZ(this);
37
+ var c=$APP.l(this,"__xScrollResizeObs");$APP.r(c)&&(c.disconnect(),this.__xScrollResizeObs=null);c=yZ(this);for(var d=c.length,e=0;;)if(e<d)c[e].style.order="",e+=1;else break;return null};a.prototype.attributeChangedCallback=function(c,d,e){$APP.O(d,e)&&(b_(this),d=this.isConnected,c=$APP.r(d)?$APP.D.i(c,"auto-play")||$APP.D.i(c,"interval")||$APP.D.i(c,"disabled"):d,$APP.r(c)&&QZ(this));return null};var b=a.prototype;c_(b);b.goTo=function(c){return NZ(this,c,null)};b.next=function(){return RZ(this)};
38
+ b.prev=function(){return SZ(this)};return a},f_=function(){$APP.r(customElements.get("x-scroll"))||customElements.define("x-scroll",e_());return null},tZ=new $APP.K(null,"snap","snap",-51714904),oZ=new $APP.K(null,"interval-raw","interval-raw",443967609),pZ=new $APP.K(null,"snap-raw","snap-raw",828444409),vZ=new $APP.K(null,"auto-play?","auto-play?",385278451),sZ=new $APP.K(null,"show-controls?","show-controls?",1318868354),nZ=new $APP.K(null,"show-indicators-attr","show-indicators-attr",1148535895),
39
+ kZ=new $APP.K(null,"show-controls-attr","show-controls-attr",-894641087),mZ=new $APP.K(null,"loop-attr","loop-attr",-132212822),wZ=new $APP.K(null,"interval","interval",1708495417),fZ=new $APP.K(null,"loop?","loop?",457687798),lZ=new $APP.K(null,"auto-play-attr","auto-play-attr",329299716),uZ=new $APP.K(null,"show-indicators?","show-indicators?",-370587412),iZ=new $APP.K(null,"indicators","indicators",1312373003);var d_="mode snap loop auto-play interval show-controls show-indicators active-index gap disabled label".split(" ");
40
+ $APP.Q([$APP.gj,new $APP.K(null,"showIndicators","showIndicators",1780978055),tZ,$APP.Cj,$APP.Ri,new $APP.K(null,"showControls","showControls",1591218925),$APP.Al,$APP.T,$APP.oj,new $APP.K(null,"autoPlay","autoPlay",-561263241),wZ],[new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,
41
+ $APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.V],null)]);
42
+ $APP.Sd(["x-scroll-change",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Cj,$APP.V,$APP.rj,$APP.V],null),$APP.ll,!1],null),"x-scroll-start",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ni,$APP.X,$APP.Cj,$APP.V],null),$APP.ll,!1],null),"x-scroll-end",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.Cj,$APP.V],null),$APP.ll,!1],null),"x-scroll-loop",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.Ni,$APP.X],null),$APP.ll,!0],null)]);
43
+ var rZ=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),qZ=new $APP.R(null,new $APP.P(null,4,["none",null,"center",null,"start",null,"end",null],null),null);$APP.ka("baredom.exports.x_scroll.init",f_);export const init=f_;
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var oo=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},po=function(a,b,c){a=$APP.D.i("",a.value);c=c.hasAttribute("disabled");$APP.r(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},qo=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.r($APP.r(a)?$APP.D.i(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},so=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,
3
- "input");b=$APP.l(b,"clear");var d=new $APP.P(null,7,[$APP.Ek,a.getAttribute("name"),$APP.vl,a.getAttribute("value"),$APP.ii,a.getAttribute("placeholder"),$APP.Oh,a.getAttribute("label"),$APP.Rk,a.hasAttribute("disabled"),$APP.sh,a.hasAttribute("required"),$APP.Nh,a.getAttribute("autocomplete")],null);var e=$APP.N(d),g=$APP.G(e,$APP.Ek),h=$APP.G(e,$APP.vl),k=$APP.G(e,$APP.ii),m=$APP.G(e,$APP.Oh),p=$APP.G(e,$APP.Rk);d=$APP.G(e,$APP.sh);e=$APP.G(e,$APP.Nh);g=$APP.r(g)?g:"";h=$APP.r(h)?h:"";k=$APP.r(k)?
4
- k:"";m=$APP.r(m)?m:"";p=$APP.I(p);d=$APP.I(d);e=typeof e==="string"&&$APP.J(ro,e)?e:"off";d=new $APP.P(null,7,[$APP.Si,g,$APP.ui,h,$APP.rl,k,$APP.T,m,$APP.W,p,$APP.Lh,d,$APP.bl,e],null);c.name=$APP.Si.g(d);c.placeholder=$APP.rl.g(d);c.disabled=$APP.W.g(d);c.required=$APP.Lh.g(d);c.autocomplete=$APP.bl.g(d);e=$APP.T.g(d);$APP.r($APP.r(e)?$APP.O(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.r($APP.Lh.g(d))?"true":"false";c.setAttribute("aria-required",d);po(c,b,a);b=
5
- $APP.l(a,"__xSearchFieldInternals");return $APP.r(b)?qo(a,b,c):null}return null},to=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.I(d)}))},uo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.r(e)?e:"";var g=$APP.l(a,"__xSearchFieldInternals");$APP.r(g)&&(g.setFormValue(d),qo(a,g,c));po(c,b,a);return to(a,"x-search-field-input",
6
- {name:e,value:d},!1)}return null}},vo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.r(d)?d:"";var e=$APP.l(a,"__xSearchFieldInternals");$APP.r(e)&&(e.setFormValue(c),qo(a,e,b));return to(a,"x-search-field-change",{name:d,value:c},!1)}return null}},wo=function(a){return function(b){if($APP.D.i("Enter",b.key)&&(b.preventDefault(),b=$APP.l(a,"__xSearchFieldRefs"),$APP.r(b))){var c=$APP.l(b,"input").value;
7
- b=function(){var d=a.getAttribute("name");return $APP.r(d)?d:""}();return $APP.r(function(){var d=a.hasAttribute("required");return $APP.r(d)?$APP.D.i(c,""):d}())?(b=$APP.l(a,"__xSearchFieldInternals"),$APP.r(b)?b.reportValidity():null):to(a,"x-search-field-search",{name:b,value:c},!0)}return null}},xo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=a.getAttribute("name");d=$APP.r(d)?d:"";c.value="";var e=$APP.l(a,
8
- "__xSearchFieldInternals");$APP.r(e)&&(e.setFormValue(""),qo(a,e,c));po(c,b,a);to(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},yo=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(a,"__xSearchFieldHandlers");if($APP.r(c)){var d=$APP.l(b,"input");b=$APP.l(b,"clear");d.removeEventListener("input",$APP.l(c,"input"));d.removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("keydown",$APP.l(c,"keydown"));b.removeEventListener("click",$APP.l(c,
9
- "click"));a.__xSearchFieldHandlers=null;return}}return null},zo=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Ao=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return oo(this,c,$APP.I(d))}})},Bo=function(a){Object.defineProperty(a,
10
- "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xSearchFieldRefs");if($APP.r(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.r(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.r(c)?$APP.l(c,"input").value=b:null}})},Do=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Co}});
11
- Bo(b);zo(b,"name","name");zo(b,"placeholder","placeholder");zo(b,"label","label");zo(b,"autocomplete","autocomplete");Ao(b,"disabled","disabled");Ao(b,"required","required");b.checkValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.r(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.r(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSearchFieldRefs"))){if(!$APP.r(this.shadowRoot)){var c=
12
- this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("input"),k=document.createElement("button");d.textContent=":host{display:block;color-scheme:light dark;--x-search-field-bg:#ffffff;--x-search-field-color:#111827;--x-search-field-border:1px solid #d1d5db;--x-search-field-border-radius:6px;--x-search-field-focus-ring-color:#2563eb;--x-search-field-icon-color:#9ca3af;--x-search-field-clear-color:#9ca3af;--x-search-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-search-field-bg:#1f2937;--x-search-field-color:#f9fafb;--x-search-field-border:1px solid #4b5563;--x-search-field-focus-ring-color:#3b82f6;--x-search-field-icon-color:#6b7280;--x-search-field-clear-color:#6b7280;}}[part\x3dwrapper]{display:flex;align-items:center;position:relative;background:var(--x-search-field-bg);border:var(--x-search-field-border);border-radius:var(--x-search-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dwrapper]:focus-within{border-color:var(--x-search-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-search-field-focus-ring-color) 20%,transparent);}[part\x3dicon]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;color:var(--x-search-field-icon-color);pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.25rem;background:transparent;color:var(--x-search-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]::-webkit-search-cancel-button{-webkit-appearance:none;}[part\x3dinput]::-webkit-search-decoration{-webkit-appearance:none;}[part\x3dclear]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;margin-right:2px;background:none;border:none;cursor:pointer;color:var(--x-search-field-clear-color);font-size:1.125rem;line-height:1;border-radius:4px;padding:0;}[part\x3dclear]:hover{color:var(--x-search-field-color);}.clear-hidden{display:none;}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-search-field-disabled-opacity);cursor:not-allowed;}:host([disabled]) [part\x3dinput]{cursor:not-allowed;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
2
+ var po=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},qo=function(a,b,c){a=$APP.D.i("",a.value);c=c.hasAttribute("disabled");$APP.r(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},ro=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.r($APP.r(a)?$APP.D.i(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},to=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,
3
+ "input");b=$APP.l(b,"clear");var d=new $APP.P(null,7,[$APP.Fk,a.getAttribute("name"),$APP.wl,a.getAttribute("value"),$APP.ii,a.getAttribute("placeholder"),$APP.Oh,a.getAttribute("label"),$APP.Sk,a.hasAttribute("disabled"),$APP.sh,a.hasAttribute("required"),$APP.Nh,a.getAttribute("autocomplete")],null);var e=$APP.N(d),g=$APP.G(e,$APP.Fk),h=$APP.G(e,$APP.wl),k=$APP.G(e,$APP.ii),m=$APP.G(e,$APP.Oh),p=$APP.G(e,$APP.Sk);d=$APP.G(e,$APP.sh);e=$APP.G(e,$APP.Nh);g=$APP.r(g)?g:"";h=$APP.r(h)?h:"";k=$APP.r(k)?
4
+ k:"";m=$APP.r(m)?m:"";p=$APP.I(p);d=$APP.I(d);e=typeof e==="string"&&$APP.J(so,e)?e:"off";d=new $APP.P(null,7,[$APP.Si,g,$APP.ri,h,$APP.sl,k,$APP.T,m,$APP.W,p,$APP.Lh,d,$APP.cl,e],null);c.name=$APP.Si.g(d);c.placeholder=$APP.sl.g(d);c.disabled=$APP.W.g(d);c.required=$APP.Lh.g(d);c.autocomplete=$APP.cl.g(d);e=$APP.T.g(d);$APP.r($APP.r(e)?$APP.O(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.r($APP.Lh.g(d))?"true":"false";c.setAttribute("aria-required",d);qo(c,b,a);b=
5
+ $APP.l(a,"__xSearchFieldInternals");return $APP.r(b)?ro(a,b,c):null}return null},uo=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.I(d)}))},vo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.r(e)?e:"";var g=$APP.l(a,"__xSearchFieldInternals");$APP.r(g)&&(g.setFormValue(d),ro(a,g,c));qo(c,b,a);return uo(a,"x-search-field-input",
6
+ {name:e,value:d},!1)}return null}},wo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.r(d)?d:"";var e=$APP.l(a,"__xSearchFieldInternals");$APP.r(e)&&(e.setFormValue(c),ro(a,e,b));return uo(a,"x-search-field-change",{name:d,value:c},!1)}return null}},xo=function(a){return function(b){if($APP.D.i("Enter",b.key)&&(b.preventDefault(),b=$APP.l(a,"__xSearchFieldRefs"),$APP.r(b))){var c=$APP.l(b,"input").value;
7
+ b=function(){var d=a.getAttribute("name");return $APP.r(d)?d:""}();return $APP.r(function(){var d=a.hasAttribute("required");return $APP.r(d)?$APP.D.i(c,""):d}())?(b=$APP.l(a,"__xSearchFieldInternals"),$APP.r(b)?b.reportValidity():null):uo(a,"x-search-field-search",{name:b,value:c},!0)}return null}},yo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=a.getAttribute("name");d=$APP.r(d)?d:"";c.value="";var e=$APP.l(a,
8
+ "__xSearchFieldInternals");$APP.r(e)&&(e.setFormValue(""),ro(a,e,c));qo(c,b,a);uo(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},zo=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(a,"__xSearchFieldHandlers");if($APP.r(c)){var d=$APP.l(b,"input");b=$APP.l(b,"clear");d.removeEventListener("input",$APP.l(c,"input"));d.removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("keydown",$APP.l(c,"keydown"));b.removeEventListener("click",$APP.l(c,
9
+ "click"));a.__xSearchFieldHandlers=null;return}}return null},Ao=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Bo=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return po(this,c,$APP.I(d))}})},Co=function(a){Object.defineProperty(a,
10
+ "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xSearchFieldRefs");if($APP.r(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.r(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.r(c)?$APP.l(c,"input").value=b:null}})},Eo=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Do}});
11
+ Co(b);Ao(b,"name","name");Ao(b,"placeholder","placeholder");Ao(b,"label","label");Ao(b,"autocomplete","autocomplete");Bo(b,"disabled","disabled");Bo(b,"required","required");b.checkValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.r(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.r(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSearchFieldRefs"))){if(!$APP.r(this.shadowRoot)){var c=
12
+ this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("input"),k=document.createElement("button");d.textContent=":host{display:block;color-scheme:light dark;--x-search-field-bg:var(--x-color-surface,#ffffff);--x-search-field-color:#111827;--x-search-field-border:1px solid var(--x-color-border,#d1d5db);--x-search-field-border-radius:var(--x-radius-md,6px);--x-search-field-focus-ring-color:var(--x-color-primary,#2563eb);--x-search-field-icon-color:var(--x-color-border,#9ca3af);--x-search-field-clear-color:var(--x-color-border,#9ca3af);--x-search-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-search-field-bg:var(--x-color-surface,#1f2937);--x-search-field-color:#f9fafb;--x-search-field-border:1px solid var(--x-color-border,#4b5563);--x-search-field-focus-ring-color:var(--x-color-primary,#3b82f6);--x-search-field-icon-color:#6b7280;--x-search-field-clear-color:#6b7280;}}[part\x3dwrapper]{display:flex;align-items:center;position:relative;background:var(--x-search-field-bg);border:var(--x-search-field-border);border-radius:var(--x-search-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dwrapper]:focus-within{border-color:var(--x-search-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-search-field-focus-ring-color) 20%,transparent);}[part\x3dicon]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;color:var(--x-search-field-icon-color);pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.25rem;background:transparent;color:var(--x-search-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]::-webkit-search-cancel-button{-webkit-appearance:none;}[part\x3dinput]::-webkit-search-decoration{-webkit-appearance:none;}[part\x3dclear]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;margin-right:2px;background:none;border:none;cursor:pointer;color:var(--x-search-field-clear-color);font-size:1.125rem;line-height:1;border-radius:4px;padding:0;}[part\x3dclear]:hover{color:var(--x-search-field-color);}.clear-hidden{display:none;}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-search-field-disabled-opacity);cursor:not-allowed;}:host([disabled]) [part\x3dinput]{cursor:not-allowed;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
13
13
  e.setAttribute("part","wrapper");g.setAttribute("part","icon");g.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 24 24" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3ccircle cx\x3d"11" cy\x3d"11" r\x3d"8"/\x3e\x3cline x1\x3d"21" y1\x3d"21" x2\x3d"16.65" y2\x3d"16.65"/\x3e\x3c/svg\x3e';h.setAttribute("part","input");h.setAttribute("type","search");h.setAttribute("spellcheck",
14
- "false");k.setAttribute("part","clear");k.setAttribute("type","button");k.setAttribute("aria-label","Clear search");k.textContent="×";k.classList.add("clear-hidden");e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:g,input:h,clear:k}}$APP.r(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}yo(this);c=$APP.l(this,"__xSearchFieldRefs");$APP.r(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.r(d)&&
15
- (c.value=d));c=$APP.l(this,"__xSearchFieldInternals");$APP.r(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.r(e)?e:""));d=$APP.l(this,"__xSearchFieldRefs");$APP.r(d)&&(c=$APP.l(d,"input"),d=$APP.l(d,"clear"),e=uo(this),g=vo(this),h=wo(this),k=xo(this),c.addEventListener("input",e),c.addEventListener("change",g),c.addEventListener("keydown",h),d.addEventListener("click",k),this.__xSearchFieldHandlers={input:e,change:g,keydown:h,click:k});return so(this)};b.disconnectedCallback=function(){return yo(this)};
16
- b.attributeChangedCallback=function(c,d,e){$APP.D.i(c,"value")&&(c=$APP.l(this,"__xSearchFieldRefs"),$APP.r(c)&&(c=$APP.l(c,"input"),$APP.O(c.value,e)&&(c.value=$APP.r(e)?e:"")));return so(this)};b.formDisabledCallback=function(c){oo(this,"disabled",$APP.I(c));return so(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xSearchFieldRefs");$APP.r(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xSearchFieldInternals");$APP.r(c)&&c.setFormValue("");return so(this)};
17
- return a},Eo=function(){return $APP.r(customElements.get("x-search-field"))?null:customElements.define("x-search-field",Do())};var Co="name value placeholder label disabled required autocomplete".split(" "),ro=new $APP.R(null,new $APP.P(null,2,["off",null,"on",null],null),null);$APP.ka("baredom.exports.x_search_field.init",Eo);export const init=Eo;
14
+ "false");k.setAttribute("part","clear");k.setAttribute("type","button");k.setAttribute("aria-label","Clear search");k.textContent="×";k.classList.add("clear-hidden");e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:g,input:h,clear:k}}$APP.r(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}zo(this);c=$APP.l(this,"__xSearchFieldRefs");$APP.r(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.r(d)&&
15
+ (c.value=d));c=$APP.l(this,"__xSearchFieldInternals");$APP.r(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.r(e)?e:""));d=$APP.l(this,"__xSearchFieldRefs");$APP.r(d)&&(c=$APP.l(d,"input"),d=$APP.l(d,"clear"),e=vo(this),g=wo(this),h=xo(this),k=yo(this),c.addEventListener("input",e),c.addEventListener("change",g),c.addEventListener("keydown",h),d.addEventListener("click",k),this.__xSearchFieldHandlers={input:e,change:g,keydown:h,click:k});return to(this)};b.disconnectedCallback=function(){return zo(this)};
16
+ b.attributeChangedCallback=function(c,d,e){$APP.D.i(c,"value")&&(c=$APP.l(this,"__xSearchFieldRefs"),$APP.r(c)&&(c=$APP.l(c,"input"),$APP.O(c.value,e)&&(c.value=$APP.r(e)?e:"")));return to(this)};b.formDisabledCallback=function(c){po(this,"disabled",$APP.I(c));return to(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xSearchFieldRefs");$APP.r(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xSearchFieldInternals");$APP.r(c)&&c.setFormValue("");return to(this)};
17
+ return a},Fo=function(){return $APP.r(customElements.get("x-search-field"))?null:customElements.define("x-search-field",Eo())};var Do="name value placeholder label disabled required autocomplete".split(" "),so=new $APP.R(null,new $APP.P(null,2,["off",null,"on",null],null),null);$APP.ka("baredom.exports.x_search_field.init",Fo);export const init=Fo;
package/dist/x-select.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var xK=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=new $APP.P(null,6,[$APP.Rk,a.hasAttribute("disabled"),$APP.sh,a.hasAttribute("required"),$APP.Yk,a.getAttribute("size"),$APP.ii,a.getAttribute("placeholder"),$APP.vl,a.getAttribute("value"),$APP.Ek,a.getAttribute("name")],null);var d=$APP.N(c),e=$APP.G(d,$APP.Rk),g=$APP.G(d,$APP.sh),h=$APP.G(d,$APP.Yk);c=$APP.G(d,$APP.ii);var k=$APP.G(d,$APP.vl);d=$APP.G(d,$APP.Ek);e=$APP.I(e);g=$APP.I(g);h=typeof h==="string"&&$APP.J(wK,h)?h:
3
- "md";c=new $APP.P(null,6,[$APP.W,e,$APP.Lh,g,$APP.rh,h,$APP.rl,c,$APP.ui,k,$APP.Si,d],null);if($APP.O(c,$APP.l(a,"__xSelectModel"))){a.__xSelectModel=c;a=$APP.l(b,"wrapper");k=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");h=$APP.W.g(c);d=$APP.Lh.g(c);g=$APP.rh.g(c);e=$APP.rl.g(c);var m=$APP.ui.g(c);c=$APP.Si.g(c);k.disabled=h;$APP.r(d)?k.setAttribute("required",""):k.removeAttribute("required");typeof c==="string"&&$APP.O(c,"")?k.setAttribute("name",c):k.removeAttribute("name");typeof e==="string"&&
4
- $APP.O(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=!0;k.value=$APP.r(m)?m:"";a.setAttribute("data-size",g);$APP.r(h)?a.setAttribute("data-disabled",""):a.removeAttribute("data-disabled");return c==null||$APP.D.i(c,"")?k.setAttribute("aria-label",$APP.r(e)?e:"select"):k.removeAttribute("aria-label")}}return null},yK=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,
5
- g=e;if($APP.r($APP.r(g)?e!==d:g))c.removeChild(e);else break}d=$APP.u($APP.wc(b));b=null;for(g=e=0;;)if(g<e){var h=b.G(null,g),k=h.tagName.toLowerCase();($APP.D.i(k,"option")||$APP.D.i(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.u(d))$APP.Pc(d)?(e=$APP.yb(d),d=$APP.zb(d),b=e,e=$APP.B(e)):(b=$APP.v(d),e=b.tagName.toLowerCase(),($APP.D.i(e,"option")||$APP.D.i(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.z(d),b=null,e=0),g=0;else break;a.__xSelectModel=null;return xK(a)}return null},
6
- zK=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");return $APP.r(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},AK=function(a){return function(){return yK(a)}},BK=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.r(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",
7
- $APP.l(c,"change"));d.removeEventListener("slotchange",$APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},CK=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r($APP.I(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},DK=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:null},set:function(b){b!=
8
- null&&$APP.O(b)?(b=""+$APP.S.g(b),b=this.setAttribute("value",b)):b=this.removeAttribute("value");return b}})},FK=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return EK}});CK(b,"disabled","disabled");CK(b,"required","required");DK(b);b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),
9
- h=document.createElement("option"),k=document.createElement("span"),m=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-select-height-sm:2rem;--x-select-height-md:2.5rem;--x-select-height-lg:3rem;--x-select-radius:0.5rem;--x-select-font-size-sm:0.75rem;--x-select-font-size-md:0.875rem;--x-select-font-size-lg:1rem;--x-select-padding-inline:0.75rem;--x-select-bg:#ffffff;--x-select-bg-disabled:#f8fafc;--x-select-fg:#0f172a;--x-select-fg-disabled:#94a3b8;--x-select-placeholder-fg:#94a3b8;--x-select-border:#cbd5e1;--x-select-border-hover:#94a3b8;--x-select-border-focus:#3b82f6;--x-select-chevron:#64748b;--x-select-focus-ring:#93c5fd;--x-select-shadow:0 1px 2px rgba(15,23,42,0.06);--x-select-transition-duration:140ms;}@media (prefers-color-scheme:dark){:host{--x-select-bg:#1f2937;--x-select-bg-disabled:#111827;--x-select-fg:#f1f5f9;--x-select-border:#374151;--x-select-border-hover:#4b5563;--x-select-border-focus:#60a5fa;--x-select-chevron:#94a3b8;}}[part\x3dwrapper]{position:relative;display:flex;align-items:stretch;height:var(--x-select-height-md);border:1px solid var(--x-select-border);border-radius:var(--x-select-radius);background:var(--x-select-bg);box-shadow:var(--x-select-shadow);transition:border-color var(--x-select-transition-duration) ease,box-shadow var(--x-select-transition-duration) ease;overflow:hidden;font-size:var(--x-select-font-size-md);}[part\x3dwrapper][data-size\x3dsm]{height:var(--x-select-height-sm);font-size:var(--x-select-font-size-sm);}[part\x3dwrapper][data-size\x3dlg]{height:var(--x-select-height-lg);font-size:var(--x-select-font-size-lg);}[part\x3dwrapper][data-disabled]{background:var(--x-select-bg-disabled);opacity:0.6;pointer-events:none;}[part\x3dwrapper]:hover:not([data-disabled]){border-color:var(--x-select-border-hover);}[part\x3dwrapper]:focus-within:not([data-disabled]){border-color:var(--x-select-border-focus);box-shadow:0 0 0 3px var(--x-select-focus-ring);}[part\x3dselect]{appearance:none;-webkit-appearance:none;flex:1;min-width:0;background:transparent;border:none;outline:none;color:var(--x-select-fg);font-size:inherit;font-family:inherit;padding-inline:var(--x-select-padding-inline);padding-inline-end:calc(var(--x-select-padding-inline) + 1.75rem);cursor:pointer;width:100%;}[part\x3dselect]:disabled{color:var(--x-select-fg-disabled);cursor:default;}[part\x3dselect] option[data-placeholder]{color:var(--x-select-placeholder-fg);}[part\x3dchevron]{position:absolute;right:var(--x-select-padding-inline);top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--x-select-chevron);width:1rem;height:1rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
2
+ var bL=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=new $APP.P(null,6,[$APP.Sk,a.hasAttribute("disabled"),$APP.sh,a.hasAttribute("required"),$APP.Zk,a.getAttribute("size"),$APP.ii,a.getAttribute("placeholder"),$APP.wl,a.getAttribute("value"),$APP.Fk,a.getAttribute("name")],null);var d=$APP.N(c),e=$APP.G(d,$APP.Sk),g=$APP.G(d,$APP.sh),h=$APP.G(d,$APP.Zk);c=$APP.G(d,$APP.ii);var k=$APP.G(d,$APP.wl);d=$APP.G(d,$APP.Fk);e=$APP.I(e);g=$APP.I(g);h=typeof h==="string"&&$APP.J(aL,h)?h:
3
+ "md";c=new $APP.P(null,6,[$APP.W,e,$APP.Lh,g,$APP.rh,h,$APP.sl,c,$APP.ri,k,$APP.Si,d],null);if($APP.O(c,$APP.l(a,"__xSelectModel"))){a.__xSelectModel=c;a=$APP.l(b,"wrapper");k=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");h=$APP.W.g(c);d=$APP.Lh.g(c);g=$APP.rh.g(c);e=$APP.sl.g(c);var m=$APP.ri.g(c);c=$APP.Si.g(c);k.disabled=h;$APP.r(d)?k.setAttribute("required",""):k.removeAttribute("required");typeof c==="string"&&$APP.O(c,"")?k.setAttribute("name",c):k.removeAttribute("name");typeof e==="string"&&
4
+ $APP.O(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=!0;k.value=$APP.r(m)?m:"";a.setAttribute("data-size",g);$APP.r(h)?a.setAttribute("data-disabled",""):a.removeAttribute("data-disabled");return c==null||$APP.D.i(c,"")?k.setAttribute("aria-label",$APP.r(e)?e:"select"):k.removeAttribute("aria-label")}}return null},cL=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,
5
+ g=e;if($APP.r($APP.r(g)?e!==d:g))c.removeChild(e);else break}d=$APP.u($APP.wc(b));b=null;for(g=e=0;;)if(g<e){var h=b.G(null,g),k=h.tagName.toLowerCase();($APP.D.i(k,"option")||$APP.D.i(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.u(d))$APP.Pc(d)?(e=$APP.yb(d),d=$APP.zb(d),b=e,e=$APP.C(e)):(b=$APP.v(d),e=b.tagName.toLowerCase(),($APP.D.i(e,"option")||$APP.D.i(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.z(d),b=null,e=0),g=0;else break;a.__xSelectModel=null;return bL(a)}return null},
6
+ dL=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");return $APP.r(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},eL=function(a){return function(){return cL(a)}},fL=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.r(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",
7
+ $APP.l(c,"change"));d.removeEventListener("slotchange",$APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},gL=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r($APP.I(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},hL=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:null},set:function(b){b!=
8
+ null&&$APP.O(b)?(b=""+$APP.S.g(b),b=this.setAttribute("value",b)):b=this.removeAttribute("value");return b}})},jL=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return iL}});gL(b,"disabled","disabled");gL(b,"required","required");hL(b);b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),
9
+ h=document.createElement("option"),k=document.createElement("span"),m=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-select-height-sm:2rem;--x-select-height-md:2.5rem;--x-select-height-lg:3rem;--x-select-radius:var(--x-radius-md,0.5rem);--x-select-font-size-sm:0.75rem;--x-select-font-size-md:var(--x-font-size-sm,0.875rem);--x-select-font-size-lg:var(--x-font-size-base,1rem);--x-select-padding-inline:0.75rem;--x-select-bg:var(--x-color-bg,#ffffff);--x-select-bg-disabled:var(--x-color-bg,#f8fafc);--x-select-fg:var(--x-color-text,#0f172a);--x-select-fg-disabled:var(--x-color-text-muted,#94a3b8);--x-select-placeholder-fg:var(--x-color-text-muted,#94a3b8);--x-select-border:var(--x-color-border,#cbd5e1);--x-select-border-hover:var(--x-color-border,#94a3b8);--x-select-border-focus:var(--x-color-primary,#3b82f6);--x-select-chevron:var(--x-color-text-muted,#64748b);--x-select-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-select-shadow:var(--x-shadow-sm,0 1px 2px rgba(15,23,42,0.06));--x-select-transition-duration:var(--x-transition-duration,140ms);}@media (prefers-color-scheme:dark){:host{--x-select-bg:var(--x-color-bg,#1f2937);--x-select-bg-disabled:var(--x-color-bg,#111827);--x-select-fg:var(--x-color-text,#f1f5f9);--x-select-border:var(--x-color-border,#374151);--x-select-border-hover:var(--x-color-border,#4b5563);--x-select-border-focus:var(--x-color-focus-ring,#60a5fa);--x-select-chevron:var(--x-color-text-muted,#94a3b8);}}[part\x3dwrapper]{position:relative;display:flex;align-items:stretch;height:var(--x-select-height-md);border:1px solid var(--x-select-border);border-radius:var(--x-select-radius);background:var(--x-select-bg);box-shadow:var(--x-select-shadow);transition:border-color var(--x-select-transition-duration) ease,box-shadow var(--x-select-transition-duration) ease;overflow:hidden;font-size:var(--x-select-font-size-md);}[part\x3dwrapper][data-size\x3dsm]{height:var(--x-select-height-sm);font-size:var(--x-select-font-size-sm);}[part\x3dwrapper][data-size\x3dlg]{height:var(--x-select-height-lg);font-size:var(--x-select-font-size-lg);}[part\x3dwrapper][data-disabled]{background:var(--x-select-bg-disabled);opacity:0.6;pointer-events:none;}[part\x3dwrapper]:hover:not([data-disabled]){border-color:var(--x-select-border-hover);}[part\x3dwrapper]:focus-within:not([data-disabled]){border-color:var(--x-select-border-focus);box-shadow:0 0 0 3px var(--x-select-focus-ring);}[part\x3dselect]{appearance:none;-webkit-appearance:none;flex:1;min-width:0;background:transparent;border:none;outline:none;color:var(--x-select-fg);font-size:inherit;font-family:inherit;padding-inline:var(--x-select-padding-inline);padding-inline-end:calc(var(--x-select-padding-inline) + 1.75rem);cursor:pointer;width:100%;}[part\x3dselect]:disabled{color:var(--x-select-fg-disabled);cursor:default;}[part\x3dselect] option[data-placeholder]{color:var(--x-select-placeholder-fg);}[part\x3dchevron]{position:absolute;right:var(--x-select-padding-inline);top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--x-select-chevron);width:1rem;height:1rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
10
10
  e.setAttribute("part","wrapper");g.setAttribute("part","select");k.setAttribute("part","chevron");k.setAttribute("aria-hidden","true");h.setAttribute("data-placeholder","");h.setAttribute("value","");h.hidden=!0;h.disabled=!0;h.selected=!0;k.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3cpolyline points\x3d"4 6 8 10 12 6"/\x3e\x3c/svg\x3e';
11
- g.appendChild(h);e.appendChild(g);e.appendChild(k);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:g,"placeholder-opt":h,slot:m,chevron:k}}BK(this);c=$APP.l(this,"__xSelectRefs");$APP.r(c)&&(d=$APP.l(c,"slot"),e=zK(this),g=AK(this),h={change:e,slotchange:g},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);yK(this);return xK(this)};b.disconnectedCallback=function(){return BK(this)};b.attributeChangedCallback=
12
- function(c,d,e){return $APP.O(d,e)?xK(this):null};return a},GK=function(){return $APP.r(customElements.get("x-select"))?null:customElements.define("x-select",FK())};var wK=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),EK="disabled required size placeholder value name".split(" ");$APP.Sd(["select-change",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,2,[$APP.ui,$APP.Y,$APP.T,$APP.Y],null)],null)]);$APP.ka("baredom.exports.x_select.init",GK);export const init=GK;
11
+ g.appendChild(h);e.appendChild(g);e.appendChild(k);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:g,"placeholder-opt":h,slot:m,chevron:k}}fL(this);c=$APP.l(this,"__xSelectRefs");$APP.r(c)&&(d=$APP.l(c,"slot"),e=dL(this),g=eL(this),h={change:e,slotchange:g},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);cL(this);return bL(this)};b.disconnectedCallback=function(){return fL(this)};b.attributeChangedCallback=
12
+ function(c,d,e){return $APP.O(d,e)?bL(this):null};return a},kL=function(){return $APP.r(customElements.get("x-select"))?null:customElements.define("x-select",jL())};var aL=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),iL="disabled required size placeholder value name".split(" ");$APP.Sd(["select-change",new $APP.P(null,2,[$APP.ll,!1,$APP.U,new $APP.P(null,2,[$APP.ri,$APP.X,$APP.T,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_select.init",kL);export const init=kL;
package/dist/x-sidebar.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var BV=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},CV=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.nh(new $APP.P(null,3,[$APP.U,c,$APP.xl,!0,$APP.Jl,!0],null))))},EV=function(a,b){$APP.J(DV,b)&&CV(a,"dismiss",new $APP.P(null,1,[$APP.ji,b],null))},FV=function(a){var b=window.getComputedStyle(a);return $APP.O("none",b.display)&&$APP.O("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},GV=function(a){var b=$APP.l(a,"_panel");$APP.r(b.hasAttribute("tabindex"))||
3
- (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},HV=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var g=$APP.l(a,"_sidebar");e=$APP.r(e)?e.activeElement:null;var h=document.activeElement;g=$APP.r($APP.r(e)?$APP.r(g)?g.contains(e):g:e)?e:$APP.r($APP.r(h)?$APP.r(g)?g.contains(h):g:h)?h:null;$APP.r(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.r($APP.r(c)?d:c)&&(c.removeAttribute("tabindex"),
4
- a._panelTabindexAdded=!1);return $APP.r($APP.r(b)?b.isConnected:b)?b.focus():null},IV=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.r(c)?$APP.Be($APP.wc(c)):$APP.ie;var d=$APP.l(a,"_panel");if($APP.Jc(c))return b.preventDefault(),$APP.r(d)?GV(a):null;a=document.activeElement;d=$APP.v(c);c=$APP.zc(c);var e=b.shiftKey;return $APP.r($APP.r(e)?$APP.D.i(a,d):e)?(b.preventDefault(),c.focus()):$APP.t(e)&&$APP.D.i(a,c)?(b.preventDefault(),d.focus()):null},JV=function(a){if(!$APP.r($APP.l(a,"_root"))){var b=
5
- a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("aside"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: Canvas; --x-sidebar-fg: CanvasText; --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.18); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: 180ms; --x-sidebar-easing: ease; display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }}";
6
- d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},eW=function(a){JV(a);var b=$APP.l(a,"_prevState");b=$APP.r(b)?b:$APP.Td;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
- h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,p=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.N(new $APP.P(null,8,[KV,c,LV,d,MV,e,NV,g,OV,h,PV,k,QV,m,RV,$APP.I(p.matches)],null));k=$APP.G(c,KV);h=$APP.G(c,LV);d=$APP.G(c,MV);e=$APP.G(c,NV);m=$APP.G(c,OV);p=$APP.G(c,PV);g=$APP.G(c,QV);c=$APP.G(c,RV);d=$APP.J(SV,d)?d:$APP.hj.g(TV);e=$APP.J(UV,e)?e:$APP.Fh.g(TV);var q=$APP.Di.g(TV);m=m==null?null:""+$APP.S.g(m);m=m==null?null:(0,$APP.Qg)(m);$APP.u(m)?(m=Number(m),
8
- m=$APP.r(Number.isFinite(m))?m:q):m=q;p=p!=null?(0,$APP.Qg)(p):null;p=$APP.u(p)?p:null;p=$APP.r(p)?p:$APP.T.g(TV);k=$APP.N(new $APP.P(null,1,[KV,k],null));k=$APP.G(k,KV);k=$APP.I(k);h=$APP.I(h);g=g<m?"modal":e;q=$APP.D.i(g,"modal");var w=$APP.D.i(g,"overlay"),x=$APP.D.i(g,"docked");c=$APP.Q([$APP.hl,VV,WV,XV,$APP.Di,YV,ZV,$V,aW,$APP.T,$APP.hj,bW,cW,dW],[k,g,!k,x&&h,m,x,h,e,k&&(q||w),p,d,$APP.I(c),q,w]);k=$APP.N(c);d=$APP.G(k,VV);e=$APP.G(k,$APP.hj);g=$APP.G(k,$APP.hl);h=$APP.G(k,XV);k=$APP.G(k,bW);
9
- a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.r(g)?"true":"false");a.setAttribute("data-collapsed",$APP.r(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.r(k)?"true":"false");d=cW.g(c);$APP.r(d)&&(d=$APP.hl.g(c),$APP.r(d)&&(d=cW.g(b),d=$APP.r(d)?$APP.hl.g(b):d,d=$APP.t(d)));$APP.r(d)?(d=$APP.Be($APP.ge(FV,$APP.wc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
10
- a._restoreFocusTarget=document.activeElement,e=$APP.nh(d),a._tabbables=e,$APP.u(d)?$APP.v(d).focus():GV(a)):(d=cW.g(b),$APP.r(d)&&(d=$APP.hl.g(b),$APP.r(d)&&(d=cW.g(c),d=$APP.r(d)?$APP.hl.g(c):d,d=$APP.t(d))),$APP.r(d)&&HV(a));e=$APP.N(c);d=$APP.G(e,$APP.T);e=$APP.G(e,WV);g=$APP.l(a,"_sidebar");$APP.r(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.r(e)?"true":"false"));d=$APP.N(c);d=$APP.G(d,aW);e=$APP.l(a,"_backdrop");$APP.r(e)&&(e.setAttribute("data-active",
11
- $APP.r(d)?"true":"false"),e.hidden=$APP.t(d),e.inert!=null&&(e.inert=$APP.t(d)));h=$APP.N(c);d=$APP.G(h,$APP.hl);e=$APP.G(h,$APP.hj);g=$APP.G(h,VV);h=$APP.G(h,XV);k=$APP.l(a,"_panel");$APP.r(k)&&(k.setAttribute("data-open",$APP.r(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",g),k.setAttribute("data-collapsed",$APP.r(h)?"true":"false"));$APP.O($APP.hl.g(b),$APP.hl.g(c))&&(b=$APP.hl.g(c),CV(a,"toggle",new $APP.P(null,1,[$APP.hl,$APP.I(b)],null)));a._prevState=c},
12
- fW=function(a,b){var c=$APP.l(a,"_prevState"),d=b.key;return $APP.r(function(){var e=cW.g(c);e=$APP.r(e)?e:dW.g(c);return $APP.r(e)?$APP.hl.g(c):e}())?$APP.D.i(d,"Escape")?(b.preventDefault(),EV(a,"escape"),BV(a,"open",!1)):$APP.r(function(){var e=cW.g(c);return $APP.r(e)?$APP.D.i(d,"Tab"):e}())?IV(a,b):null:null},gW=function(a){$APP.r($APP.l(a,"_handlers"))||$APP.n(a,"_handlers",{onBackdropClick:function(b){var c=$APP.l(a,"_prevState"),d=$APP.l(a,"_backdrop");var e=cW.g(c);e=$APP.r(e)?e:dW.g(c);
13
- $APP.r(e)?(c=$APP.hl.g(c),b=$APP.r(c)?$APP.D.i(b.target,d):c):b=e;$APP.r(b)?(EV(a,"backdrop"),b=BV(a,"open",!1)):b=null;return b},onKeydown:function(b){return fW(a,b)},onResize:function(){return eW(a)}})},hW=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return BV(this,"open",$APP.I(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return BV(this,
14
- "collapsed",$APP.I(b))},enumerable:!0,configurable:!0})},jW=function(){var a=class extends HTMLElement{};a.observedAttributes=iW;a.prototype.connectedCallback=function(){JV(this);gW(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.r($APP.r(c)?b:c)&&c.addEventListener("click",$APP.l(b,"onBackdropClick"));$APP.r($APP.r(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.r(b)&&window.addEventListener("resize",
15
- $APP.l(b,"onResize"));this._listening=!0}return eW(this)};a.prototype.disconnectedCallback=function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.r($APP.r(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.r($APP.r(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,"onKeydown"));$APP.r(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return HV(this)};a.prototype.attributeChangedCallback=
16
- function(b,c,d){return $APP.O(c,d)?eW(this):null};hW(a.prototype);return a},kW=function(){return $APP.r(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",jW())},$V=new $APP.M(null,"declared-variant","declared-variant",-2054964950),QV=new $APP.M(null,"viewport-width","viewport-width",-1146235948),WV=new $APP.M(null,"aria-hidden","aria-hidden",399337029),ZV=new $APP.M(null,"collapsed-requested","collapsed-requested",1573505800),aW=new $APP.M(null,"show-backdrop","show-backdrop",
17
- -532209910),LV=new $APP.M(null,"collapsed-attr","collapsed-attr",-1535396832),MV=new $APP.M(null,"placement-attr","placement-attr",-1321967286),KV=new $APP.M(null,"open-attr","open-attr",-1772289801),lW=new $APP.M(null,"collapsed","collapsed",-628494523),RV=new $APP.M(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),OV=new $APP.M(null,"breakpoint-attr","breakpoint-attr",-250275627),NV=new $APP.M(null,"variant-attr","variant-attr",-1143729279),VV=new $APP.M(null,"effective-variant",
18
- "effective-variant",-829495195),bW=new $APP.M(null,"reduced-motion","reduced-motion",79621277),YV=new $APP.M(null,"is-docked","is-docked",875310728),cW=new $APP.M(null,"is-modal","is-modal",1610761086),dW=new $APP.M(null,"is-overlay","is-overlay",1953921119),PV=new $APP.M(null,"label-attr","label-attr",-571749887),XV=new $APP.M(null,"collapsed-applied","collapsed-applied",-1696231706);var iW="open collapsed placement variant breakpoint label".split(" "),SV=$APP.Yf(["right","left"]),UV=$APP.Yf(["overlay","docked","modal"]),DV=$APP.Yf(["backdrop","escape"]),TV=new $APP.P(null,6,[$APP.hj,"left",$APP.Fh,"docked",$APP.Di,768,$APP.T,"Sidebar",$APP.hl,!1,lW,!1],null);$APP.Sd(["toggle",new $APP.P(null,1,[$APP.U,new $APP.P(null,1,[$APP.hl,$APP.qj],null)],null),"dismiss",new $APP.P(null,1,[$APP.U,new $APP.P(null,1,[$APP.ji,$APP.Y],null)],null)]);$APP.ka("baredom.exports.x_sidebar.init",kW);export const init=kW;
2
+ var fW=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},gW=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.nh(new $APP.P(null,3,[$APP.U,c,$APP.yl,!0,$APP.Kl,!0],null))))},iW=function(a,b){$APP.J(hW,b)&&gW(a,"dismiss",new $APP.P(null,1,[$APP.ji,b],null))},jW=function(a){var b=window.getComputedStyle(a);return $APP.O("none",b.display)&&$APP.O("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},kW=function(a){var b=$APP.l(a,"_panel");$APP.r(b.hasAttribute("tabindex"))||
3
+ (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},lW=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var g=$APP.l(a,"_sidebar");e=$APP.r(e)?e.activeElement:null;var h=document.activeElement;g=$APP.r($APP.r(e)?$APP.r(g)?g.contains(e):g:e)?e:$APP.r($APP.r(h)?$APP.r(g)?g.contains(h):g:h)?h:null;$APP.r(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.r($APP.r(c)?d:c)&&(c.removeAttribute("tabindex"),
4
+ a._panelTabindexAdded=!1);return $APP.r($APP.r(b)?b.isConnected:b)?b.focus():null},mW=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.r(c)?$APP.Be($APP.wc(c)):$APP.ie;var d=$APP.l(a,"_panel");if($APP.Jc(c))return b.preventDefault(),$APP.r(d)?kW(a):null;a=document.activeElement;d=$APP.v(c);c=$APP.zc(c);var e=b.shiftKey;return $APP.r($APP.r(e)?$APP.D.i(a,d):e)?(b.preventDefault(),c.focus()):$APP.t(e)&&$APP.D.i(a,c)?(b.preventDefault(),d.focus()):null},nW=function(a){if(!$APP.r($APP.l(a,"_root"))){var b=
5
+ a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("aside"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: var(--x-color-bg, Canvas); --x-sidebar-fg: var(--x-color-text, CanvasText); --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: var(--x-shadow-lg, 0 8px 24px rgb(0 0 0 / 0.18)); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: var(--x-transition-duration, 180ms); --x-sidebar-easing: var(--x-transition-easing, ease); display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-bg: var(--x-color-bg, #1f2937); --x-sidebar-fg: var(--x-color-text, #f9fafb); --x-sidebar-shadow: var(--x-shadow-lg, 0 8px 24px rgb(0 0 0 / 0.4)); }}";
6
+ d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},JW=function(a){nW(a);var b=$APP.l(a,"_prevState");b=$APP.r(b)?b:$APP.Td;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
+ h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,p=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.N(new $APP.P(null,8,[oW,c,pW,d,qW,e,rW,g,sW,h,tW,k,uW,m,vW,$APP.I(p.matches)],null));k=$APP.G(c,oW);h=$APP.G(c,pW);d=$APP.G(c,qW);e=$APP.G(c,rW);m=$APP.G(c,sW);p=$APP.G(c,tW);g=$APP.G(c,uW);c=$APP.G(c,vW);d=$APP.J(wW,d)?d:$APP.hj.g(xW);e=$APP.J(yW,e)?e:$APP.Fh.g(xW);var q=$APP.Di.g(xW);m=m==null?null:""+$APP.S.g(m);m=m==null?null:(0,$APP.Mg)(m);$APP.u(m)?(m=Number(m),
8
+ m=$APP.r(Number.isFinite(m))?m:q):m=q;p=p!=null?(0,$APP.Mg)(p):null;p=$APP.u(p)?p:null;p=$APP.r(p)?p:$APP.T.g(xW);k=$APP.N(new $APP.P(null,1,[oW,k],null));k=$APP.G(k,oW);k=$APP.I(k);h=$APP.I(h);g=g<m?"modal":e;q=$APP.D.i(g,"modal");var w=$APP.D.i(g,"overlay"),x=$APP.D.i(g,"docked");c=$APP.Q([$APP.il,zW,AW,BW,$APP.Di,CW,DW,EW,FW,$APP.T,$APP.hj,GW,HW,IW],[k,g,!k,x&&h,m,x,h,e,k&&(q||w),p,d,$APP.I(c),q,w]);k=$APP.N(c);d=$APP.G(k,zW);e=$APP.G(k,$APP.hj);g=$APP.G(k,$APP.il);h=$APP.G(k,BW);k=$APP.G(k,GW);
9
+ a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.r(g)?"true":"false");a.setAttribute("data-collapsed",$APP.r(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.r(k)?"true":"false");d=HW.g(c);$APP.r(d)&&(d=$APP.il.g(c),$APP.r(d)&&(d=HW.g(b),d=$APP.r(d)?$APP.il.g(b):d,d=$APP.t(d)));$APP.r(d)?(d=$APP.Be($APP.ge(jW,$APP.wc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
10
+ a._restoreFocusTarget=document.activeElement,e=$APP.nh(d),a._tabbables=e,$APP.u(d)?$APP.v(d).focus():kW(a)):(d=HW.g(b),$APP.r(d)&&(d=$APP.il.g(b),$APP.r(d)&&(d=HW.g(c),d=$APP.r(d)?$APP.il.g(c):d,d=$APP.t(d))),$APP.r(d)&&lW(a));e=$APP.N(c);d=$APP.G(e,$APP.T);e=$APP.G(e,AW);g=$APP.l(a,"_sidebar");$APP.r(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.r(e)?"true":"false"));d=$APP.N(c);d=$APP.G(d,FW);e=$APP.l(a,"_backdrop");$APP.r(e)&&(e.setAttribute("data-active",
11
+ $APP.r(d)?"true":"false"),e.hidden=$APP.t(d),e.inert!=null&&(e.inert=$APP.t(d)));h=$APP.N(c);d=$APP.G(h,$APP.il);e=$APP.G(h,$APP.hj);g=$APP.G(h,zW);h=$APP.G(h,BW);k=$APP.l(a,"_panel");$APP.r(k)&&(k.setAttribute("data-open",$APP.r(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",g),k.setAttribute("data-collapsed",$APP.r(h)?"true":"false"));$APP.O($APP.il.g(b),$APP.il.g(c))&&(b=$APP.il.g(c),gW(a,"toggle",new $APP.P(null,1,[$APP.il,$APP.I(b)],null)));a._prevState=c},
12
+ KW=function(a,b){var c=$APP.l(a,"_prevState"),d=b.key;return $APP.r(function(){var e=HW.g(c);e=$APP.r(e)?e:IW.g(c);return $APP.r(e)?$APP.il.g(c):e}())?$APP.D.i(d,"Escape")?(b.preventDefault(),iW(a,"escape"),fW(a,"open",!1)):$APP.r(function(){var e=HW.g(c);return $APP.r(e)?$APP.D.i(d,"Tab"):e}())?mW(a,b):null:null},LW=function(a){$APP.r($APP.l(a,"_handlers"))||$APP.n(a,"_handlers",{onBackdropClick:function(b){var c=$APP.l(a,"_prevState"),d=$APP.l(a,"_backdrop");var e=HW.g(c);e=$APP.r(e)?e:IW.g(c);
13
+ $APP.r(e)?(c=$APP.il.g(c),b=$APP.r(c)?$APP.D.i(b.target,d):c):b=e;$APP.r(b)?(iW(a,"backdrop"),b=fW(a,"open",!1)):b=null;return b},onKeydown:function(b){return KW(a,b)},onResize:function(){return JW(a)}})},MW=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return fW(this,"open",$APP.I(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return fW(this,
14
+ "collapsed",$APP.I(b))},enumerable:!0,configurable:!0})},OW=function(){var a=class extends HTMLElement{};a.observedAttributes=NW;a.prototype.connectedCallback=function(){nW(this);LW(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.r($APP.r(c)?b:c)&&c.addEventListener("click",$APP.l(b,"onBackdropClick"));$APP.r($APP.r(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.r(b)&&window.addEventListener("resize",
15
+ $APP.l(b,"onResize"));this._listening=!0}return JW(this)};a.prototype.disconnectedCallback=function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.r($APP.r(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.r($APP.r(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,"onKeydown"));$APP.r(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return lW(this)};a.prototype.attributeChangedCallback=
16
+ function(b,c,d){return $APP.O(c,d)?JW(this):null};MW(a.prototype);return a},PW=function(){return $APP.r(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",OW())},EW=new $APP.K(null,"declared-variant","declared-variant",-2054964950),uW=new $APP.K(null,"viewport-width","viewport-width",-1146235948),AW=new $APP.K(null,"aria-hidden","aria-hidden",399337029),DW=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),FW=new $APP.K(null,"show-backdrop","show-backdrop",
17
+ -532209910),pW=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),qW=new $APP.K(null,"placement-attr","placement-attr",-1321967286),oW=new $APP.K(null,"open-attr","open-attr",-1772289801),QW=new $APP.K(null,"collapsed","collapsed",-628494523),vW=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),sW=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),rW=new $APP.K(null,"variant-attr","variant-attr",-1143729279),zW=new $APP.K(null,"effective-variant",
18
+ "effective-variant",-829495195),GW=new $APP.K(null,"reduced-motion","reduced-motion",79621277),CW=new $APP.K(null,"is-docked","is-docked",875310728),HW=new $APP.K(null,"is-modal","is-modal",1610761086),IW=new $APP.K(null,"is-overlay","is-overlay",1953921119),tW=new $APP.K(null,"label-attr","label-attr",-571749887),BW=new $APP.K(null,"collapsed-applied","collapsed-applied",-1696231706);var NW="open collapsed placement variant breakpoint label".split(" "),wW=$APP.Yf(["right","left"]),yW=$APP.Yf(["overlay","docked","modal"]),hW=$APP.Yf(["backdrop","escape"]),xW=new $APP.P(null,6,[$APP.hj,"left",$APP.Fh,"docked",$APP.Di,768,$APP.T,"Sidebar",$APP.il,!1,QW,!1],null);$APP.Sd(["toggle",new $APP.P(null,1,[$APP.U,new $APP.P(null,1,[$APP.il,$APP.qj],null)],null),"dismiss",new $APP.P(null,1,[$APP.U,new $APP.P(null,1,[$APP.ji,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_sidebar.init",PW);export const init=PW;
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var HK=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},KK=function(a){var b=new $APP.P(null,4,[$APP.Fh,a.getAttribute("variant"),$APP.Oi,a.getAttribute("animation"),$APP.Lj,a.getAttribute("width"),$APP.pj,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.G(c,$APP.Fh),e=$APP.G(c,$APP.Oi);b=$APP.G(c,$APP.Lj);c=$APP.G(c,$APP.pj);d=typeof d==="string"&&$APP.J(IK,d)?d:"rect";e=typeof e==="string"&&$APP.J(JK,e)?e:"pulse";b=new $APP.P(null,4,[$APP.Fh,d,$APP.Oi,e,$APP.Lj,HK(b),$APP.pj,HK(c)],
3
- null);d=$APP.N(b);b=$APP.G(d,$APP.Fh);e=$APP.G(d,$APP.Oi);c=$APP.G(d,$APP.Lj);d=$APP.G(d,$APP.pj);var g=$APP.l(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.r(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.r(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},LK=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.r(b)?
2
+ var lL=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},oL=function(a){var b=new $APP.P(null,4,[$APP.Fh,a.getAttribute("variant"),$APP.Oi,a.getAttribute("animation"),$APP.Lj,a.getAttribute("width"),$APP.pj,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.G(c,$APP.Fh),e=$APP.G(c,$APP.Oi);b=$APP.G(c,$APP.Lj);c=$APP.G(c,$APP.pj);d=typeof d==="string"&&$APP.J(mL,d)?d:"rect";e=typeof e==="string"&&$APP.J(nL,e)?e:"pulse";b=new $APP.P(null,4,[$APP.Fh,d,$APP.Oi,e,$APP.Lj,lL(b),$APP.pj,lL(c)],
3
+ null);d=$APP.N(b);b=$APP.G(d,$APP.Fh);e=$APP.G(d,$APP.Oi);c=$APP.G(d,$APP.Lj);d=$APP.G(d,$APP.pj);var g=$APP.l(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.r(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.r(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},pL=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.r(b)?
4
4
  b:"rect"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("variant",b):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.r(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");
5
- return $APP.r(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.r(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},NK=function(){var a=class extends HTMLElement{};a.observedAttributes=MK;
6
- a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:rgba(0,0,0,0.08);--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:4px;--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:rgba(255,255,255,0.10);--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
- d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}KK(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xSkeletonInit"))&&KK(this);return null};LK(a.prototype);return a},OK=function(){$APP.r(customElements.get("x-skeleton"))||customElements.define("x-skeleton",NK());return null};var IK=new $APP.R(null,new $APP.P(null,3,["text",null,"rect",null,"circle",null],null),null),JK=new $APP.R(null,new $APP.P(null,3,["none",null,"pulse",null,"wave",null],null),null),MK=["variant","animation","width","height"];$APP.ka("baredom.exports.x_skeleton.init",OK);export const init=OK;
5
+ return $APP.r(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.r(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},rL=function(){var a=class extends HTMLElement{};a.observedAttributes=qL;
6
+ a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:var(--x-color-border,rgba(0,0,0,0.08));--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:var(--x-radius-sm,4px);--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:var(--x-color-border,rgba(255,255,255,0.10));--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
+ d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}oL(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xSkeletonInit"))&&oL(this);return null};pL(a.prototype);return a},sL=function(){$APP.r(customElements.get("x-skeleton"))||customElements.define("x-skeleton",rL());return null};var mL=new $APP.R(null,new $APP.P(null,3,["text",null,"rect",null,"circle",null],null),null),nL=new $APP.R(null,new $APP.P(null,3,["none",null,"pulse",null,"wave",null],null),null),qL=["variant","animation","width","height"];$APP.ka("baredom.exports.x_skeleton.init",sL);export const init=sL;