@vanelsas/baredom 2.1.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +75 -73
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +10 -10
  6. package/dist/x-avatar.js +13 -14
  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 +12 -12
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +28 -28
  15. package/dist/x-chart.js +46 -46
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +8 -8
  18. package/dist/x-collapse.js +10 -10
  19. package/dist/x-color-picker.js +40 -40
  20. package/dist/x-command-palette.js +25 -25
  21. package/dist/x-container.js +6 -6
  22. package/dist/x-context-menu.js +18 -18
  23. package/dist/x-copy.js +20 -20
  24. package/dist/x-currency-field.js +21 -21
  25. package/dist/x-date-picker.js +37 -37
  26. package/dist/x-divider.js +8 -8
  27. package/dist/x-drawer.js +11 -11
  28. package/dist/x-dropdown.js +9 -9
  29. package/dist/x-fieldset.js +5 -5
  30. package/dist/x-file-download.js +7 -7
  31. package/dist/x-form-field.js +15 -15
  32. package/dist/x-form.js +9 -9
  33. package/dist/x-gaussian-blur.js +16 -16
  34. package/dist/x-grid.js +6 -6
  35. package/dist/x-icon.js +9 -0
  36. package/dist/x-image.js +20 -0
  37. package/dist/x-kinetic-font.js +28 -28
  38. package/dist/x-kinetic-typography.js +37 -37
  39. package/dist/x-liquid-dock.js +35 -35
  40. package/dist/x-liquid-fill.js +40 -40
  41. package/dist/x-liquid-glass.js +33 -33
  42. package/dist/x-menu-item.js +10 -10
  43. package/dist/x-menu.js +10 -10
  44. package/dist/x-metaball-cursor.js +25 -25
  45. package/dist/x-modal.js +11 -11
  46. package/dist/x-morph-stack.js +39 -39
  47. package/dist/x-navbar.js +12 -12
  48. package/dist/x-neural-glow.js +30 -30
  49. package/dist/x-notification-center.js +10 -10
  50. package/dist/x-organic-divider.js +15 -15
  51. package/dist/x-organic-progress.js +35 -35
  52. package/dist/x-organic-shape.js +12 -12
  53. package/dist/x-pagination.js +16 -16
  54. package/dist/x-particle-button.js +46 -46
  55. package/dist/x-popover.js +14 -14
  56. package/dist/x-progress-circle.js +7 -7
  57. package/dist/x-progress.js +7 -7
  58. package/dist/x-radio.js +11 -11
  59. package/dist/x-ripple-effect.js +10 -10
  60. package/dist/x-scroll-parallax.js +17 -17
  61. package/dist/x-scroll-stack.js +18 -18
  62. package/dist/x-scroll-story.js +33 -33
  63. package/dist/x-scroll-timeline.js +45 -45
  64. package/dist/x-scroll.js +40 -40
  65. package/dist/x-search-field.js +14 -14
  66. package/dist/x-select.js +9 -9
  67. package/dist/x-sidebar.js +16 -16
  68. package/dist/x-skeleton.js +4 -4
  69. package/dist/x-slider.js +16 -16
  70. package/dist/x-soft-body.js +20 -20
  71. package/dist/x-spacer.js +5 -5
  72. package/dist/x-spinner.js +5 -5
  73. package/dist/x-splash.js +13 -13
  74. package/dist/x-stat.js +9 -9
  75. package/dist/x-stepper.js +16 -16
  76. package/dist/x-switch.js +10 -10
  77. package/dist/x-tab.js +7 -7
  78. package/dist/x-table-cell.js +19 -19
  79. package/dist/x-table-row.js +10 -10
  80. package/dist/x-table.js +13 -13
  81. package/dist/x-tabs.js +11 -11
  82. package/dist/x-text-area.js +17 -17
  83. package/dist/x-theme.js +24 -24
  84. package/dist/x-timeline-item.js +20 -20
  85. package/dist/x-timeline.js +9 -9
  86. package/dist/x-toast.js +21 -21
  87. package/dist/x-toaster.js +8 -8
  88. package/dist/x-typography.js +8 -8
  89. package/package.json +9 -1
package/dist/x-sidebar.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var HZ=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.ph(new $APP.R(null,3,[$APP.yj,c,$APP.Ql,!0,$APP.bm,!0],null))))},JZ=function(a,b){$APP.J(IZ,b)&&HZ(a,"dismiss",new $APP.R(null,1,[$APP.ri,b],null))},KZ=function(a){var b=window.getComputedStyle(a);return $APP.N("none",b.display)&&$APP.N("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},LZ=function(a){var b=$APP.k(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||(b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},
3
- MZ=function(a){var b=$APP.k(a,"_restoreFocusTarget"),c=$APP.k(a,"_panel"),d=$APP.k(a,"_panelTabindexAdded")===!0,e=$APP.k(a,"_root");var g=$APP.k(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;g=$APP.n($APP.n(e)?$APP.n(g)?g.contains(e):g:e)?e:$APP.n($APP.n(h)?$APP.n(g)?g.contains(h):g:h)?h:null;$APP.n(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:
4
- b)?b.focus():null},NZ=function(a,b){var c=$APP.k(a,"_tabbables");c=$APP.n(c)?$APP.ve($APP.tc(c)):$APP.ee;var d=$APP.k(a,"_panel");if($APP.Gc(c))return b.preventDefault(),$APP.n(d)?LZ(a):null;a=document.activeElement;d=$APP.u(c);c=$APP.wc(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.C.i(a,d):e)?(b.preventDefault(),c.focus()):$APP.r(e)&&$APP.C.i(a,c)?(b.preventDefault(),d.focus()):null},OZ=function(a){if(!$APP.n($APP.k(a,"_root"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
2
+ var F_=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.ph(new $APP.R(null,3,[$APP.Cj,c,$APP.Yl,!0,$APP.km,!0],null))))},H_=function(a,b){$APP.J(G_,b)&&F_(a,"dismiss",new $APP.R(null,1,[$APP.ti,b],null))},I_=function(a){var b=window.getComputedStyle(a);return $APP.N("none",b.display)&&$APP.N("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},J_=function(a){var b=$APP.k(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||(b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},
3
+ K_=function(a){var b=$APP.k(a,"_restoreFocusTarget"),c=$APP.k(a,"_panel"),d=$APP.k(a,"_panelTabindexAdded")===!0,e=$APP.k(a,"_root");var g=$APP.k(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;g=$APP.n($APP.n(e)?$APP.n(g)?g.contains(e):g:e)?e:$APP.n($APP.n(h)?$APP.n(g)?g.contains(h):g:h)?h:null;$APP.n(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:
4
+ b)?b.focus():null},L_=function(a,b){var c=$APP.k(a,"_tabbables");c=$APP.n(c)?$APP.ve($APP.tc(c)):$APP.ee;var d=$APP.k(a,"_panel");if($APP.Gc(c))return b.preventDefault(),$APP.n(d)?J_(a):null;a=document.activeElement;d=$APP.u(c);c=$APP.wc(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.C.i(a,d):e)?(b.preventDefault(),c.focus()):$APP.r(e)&&$APP.C.i(a,c)?(b.preventDefault(),d.focus()):null},M_=function(a){if(!$APP.n($APP.k(a,"_root"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
5
5
  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}},j_=function(a){OZ(a);var b=$APP.k(a,"_prevState");b=$APP.n(b)?b:$APP.Qd;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
- h=a.getAttribute("breakpoint"),l=a.getAttribute("label"),m=window.innerWidth,p=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.M(new $APP.R(null,8,[PZ,c,QZ,d,RZ,e,SZ,g,TZ,h,UZ,l,VZ,m,WZ,$APP.F(p.matches)],null));l=$APP.D(c,PZ);h=$APP.D(c,QZ);d=$APP.D(c,RZ);e=$APP.D(c,SZ);m=$APP.D(c,TZ);p=$APP.D(c,UZ);g=$APP.D(c,VZ);c=$APP.D(c,WZ);d=$APP.J(XZ,d)?d:$APP.nj.g(YZ);e=$APP.J(ZZ,e)?e:$APP.Nh.g(YZ);var q=$APP.Ji.g(YZ);m=m==null?null:""+$APP.T.g(m);m=m==null?null:(0,$APP.Sg)(m);$APP.t(m)?(m=Number(m),
8
- m=$APP.n(Number.isFinite(m))?m:q):m=q;p=p!=null?(0,$APP.Sg)(p):null;p=$APP.t(p)?p:null;p=$APP.n(p)?p:$APP.U.g(YZ);l=$APP.M(new $APP.R(null,1,[PZ,l],null));l=$APP.D(l,PZ);l=$APP.F(l);h=$APP.F(h);g=g<m?"modal":e;q=$APP.C.i(g,"modal");var v=$APP.C.i(g,"overlay"),x=$APP.C.i(g,"docked");c=$APP.xf([$APP.tl,$Z,a_,b_,$APP.Ji,c_,d_,e_,f_,$APP.U,$APP.nj,g_,h_,i_],[l,g,!l,x&&h,m,x,h,e,l&&(q||v),p,d,$APP.F(c),q,v]);l=$APP.M(c);d=$APP.D(l,$Z);e=$APP.D(l,$APP.nj);g=$APP.D(l,$APP.tl);h=$APP.D(l,b_);l=$APP.D(l,g_);
9
- a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(g)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(l)?"true":"false");d=h_.g(c);$APP.n(d)&&(d=$APP.tl.g(c),$APP.n(d)&&(d=h_.g(b),d=$APP.n(d)?$APP.tl.g(b):d,d=$APP.r(d)));$APP.n(d)?(d=$APP.ve($APP.ce(KZ,$APP.tc($APP.k(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.ph(d),a._tabbables=e,$APP.t(d)?$APP.u(d).focus():LZ(a)):(d=h_.g(b),$APP.n(d)&&(d=$APP.tl.g(b),$APP.n(d)&&(d=h_.g(c),d=$APP.n(d)?$APP.tl.g(c):d,d=$APP.r(d))),$APP.n(d)&&MZ(a));e=$APP.M(c);d=$APP.D(e,$APP.U);e=$APP.D(e,a_);g=$APP.k(a,"_sidebar");$APP.n(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.M(c);d=$APP.D(d,f_);e=$APP.k(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
11
- $APP.n(d)?"true":"false"),e.hidden=$APP.r(d),e.inert!=null&&(e.inert=$APP.r(d)));h=$APP.M(c);d=$APP.D(h,$APP.tl);e=$APP.D(h,$APP.nj);g=$APP.D(h,$Z);h=$APP.D(h,b_);l=$APP.k(a,"_panel");$APP.n(l)&&(l.setAttribute("data-open",$APP.n(d)?"true":"false"),l.setAttribute("data-placement",e),l.setAttribute("data-variant",g),l.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.N($APP.tl.g(b),$APP.tl.g(c))&&(b=$APP.tl.g(c),HZ(a,"toggle",new $APP.R(null,1,[$APP.tl,$APP.F(b)],null)));a._prevState=c},
12
- k_=function(a,b){var c=$APP.k(a,"_prevState"),d=b.key;return $APP.n(function(){var e=h_.g(c);e=$APP.n(e)?e:i_.g(c);return $APP.n(e)?$APP.tl.g(c):e}())?$APP.C.i(d,"Escape")?(b.preventDefault(),JZ(a,"escape"),$APP.Cg(a,"open",!1)):$APP.n(function(){var e=h_.g(c);return $APP.n(e)?$APP.C.i(d,"Tab"):e}())?NZ(a,b):null:null},l_=function(a){$APP.n($APP.k(a,"_handlers"))||$APP.ia(a,"_handlers",{onBackdropClick:function(b){var c=$APP.k(a,"_prevState"),d=$APP.k(a,"_backdrop");var e=h_.g(c);e=$APP.n(e)?e:i_.g(c);
13
- $APP.n(e)?(c=$APP.tl.g(c),b=$APP.n(c)?$APP.C.i(b.target,d):c):b=e;$APP.n(b)?(JZ(a,"backdrop"),b=$APP.Cg(a,"open",!1)):b=null;return b},onKeydown:function(b){return k_(a,b)},onResize:function(){return j_(a)}})},m_=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.Cg(this,"open",$APP.F(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return $APP.Cg(this,
14
- "collapsed",$APP.F(b))},enumerable:!0,configurable:!0})},o_=function(){var a=class extends HTMLElement{};a.observedAttributes=n_;a.prototype.connectedCallback=function(){OZ(this);l_(this);if($APP.k(this,"_listening")!==!0){var b=$APP.k(this,"_handlers"),c=$APP.k(this,"_backdrop"),d=$APP.k(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.k(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.k(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",
15
- $APP.k(b,"onResize"));this._listening=!0}return j_(this)};a.prototype.disconnectedCallback=function(){if($APP.k(this,"_listening")===!0){var b=$APP.k(this,"_handlers"),c=$APP.k(this,"_backdrop"),d=$APP.k(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.k(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.k(b,"onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.k(b,"onResize"));this._listening=!1}return MZ(this)};a.prototype.attributeChangedCallback=
16
- function(b,c,d){return $APP.N(c,d)?j_(this):null};m_(a.prototype);return a},p_=function(){return $APP.n(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",o_())},e_=new $APP.K(null,"declared-variant","declared-variant",-2054964950),VZ=new $APP.K(null,"viewport-width","viewport-width",-1146235948),a_=new $APP.K(null,"aria-hidden","aria-hidden",399337029),d_=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),f_=new $APP.K(null,"show-backdrop","show-backdrop",
17
- -532209910),QZ=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),RZ=new $APP.K(null,"placement-attr","placement-attr",-1321967286),PZ=new $APP.K(null,"open-attr","open-attr",-1772289801),q_=new $APP.K(null,"collapsed","collapsed",-628494523),WZ=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),TZ=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),SZ=new $APP.K(null,"variant-attr","variant-attr",-1143729279),$Z=new $APP.K(null,"effective-variant",
18
- "effective-variant",-829495195),g_=new $APP.K(null,"reduced-motion","reduced-motion",79621277),c_=new $APP.K(null,"is-docked","is-docked",875310728),h_=new $APP.K(null,"is-modal","is-modal",1610761086),i_=new $APP.K(null,"is-overlay","is-overlay",1953921119),UZ=new $APP.K(null,"label-attr","label-attr",-571749887),b_=new $APP.K(null,"collapsed-applied","collapsed-applied",-1696231706);var n_="open collapsed placement variant breakpoint label".split(" "),XZ=$APP.Sf(["right","left"]),ZZ=$APP.Sf(["overlay","docked","modal"]),IZ=$APP.Sf(["backdrop","escape"]),YZ=new $APP.R(null,6,[$APP.nj,"left",$APP.Nh,"docked",$APP.Ji,768,$APP.U,"Sidebar",$APP.tl,!1,q_,!1],null);$APP.Pd(["toggle",new $APP.R(null,1,[$APP.yj,new $APP.R(null,1,[$APP.tl,$APP.Bj],null)],null),"dismiss",new $APP.R(null,1,[$APP.yj,new $APP.R(null,1,[$APP.ri,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_sidebar.init",p_);export const init=p_;
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}},h0=function(a){M_(a);var b=$APP.k(a,"_prevState");b=$APP.n(b)?b:$APP.Qd;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
+ h=a.getAttribute("breakpoint"),l=a.getAttribute("label"),m=window.innerWidth,p=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.M(new $APP.R(null,8,[N_,c,O_,d,P_,e,Q_,g,R_,h,S_,l,T_,m,U_,$APP.F(p.matches)],null));l=$APP.D(c,N_);h=$APP.D(c,O_);d=$APP.D(c,P_);e=$APP.D(c,Q_);m=$APP.D(c,R_);p=$APP.D(c,S_);g=$APP.D(c,T_);c=$APP.D(c,U_);d=$APP.J(V_,d)?d:$APP.rj.g(W_);e=$APP.J(X_,e)?e:$APP.Oh.g(W_);var q=$APP.Li.g(W_);m=m==null?null:""+$APP.T.g(m);m=m==null?null:(0,$APP.Pg)(m);$APP.t(m)?(m=Number(m),
8
+ m=$APP.n(Number.isFinite(m))?m:q):m=q;p=p!=null?(0,$APP.Pg)(p):null;p=$APP.t(p)?p:null;p=$APP.n(p)?p:$APP.U.g(W_);l=$APP.M(new $APP.R(null,1,[N_,l],null));l=$APP.D(l,N_);l=$APP.F(l);h=$APP.F(h);g=g<m?"modal":e;q=$APP.C.i(g,"modal");var v=$APP.C.i(g,"overlay"),x=$APP.C.i(g,"docked");c=$APP.xf([$APP.Al,Y_,Z_,$_,$APP.Li,a0,b0,c0,d0,$APP.U,$APP.rj,e0,f0,g0],[l,g,!l,x&&h,m,x,h,e,l&&(q||v),p,d,$APP.F(c),q,v]);l=$APP.M(c);d=$APP.D(l,Y_);e=$APP.D(l,$APP.rj);g=$APP.D(l,$APP.Al);h=$APP.D(l,$_);l=$APP.D(l,e0);
9
+ a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(g)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(l)?"true":"false");d=f0.g(c);$APP.n(d)&&(d=$APP.Al.g(c),$APP.n(d)&&(d=f0.g(b),d=$APP.n(d)?$APP.Al.g(b):d,d=$APP.r(d)));$APP.n(d)?(d=$APP.ve($APP.ce(I_,$APP.tc($APP.k(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.ph(d),a._tabbables=e,$APP.t(d)?$APP.u(d).focus():J_(a)):(d=f0.g(b),$APP.n(d)&&(d=$APP.Al.g(b),$APP.n(d)&&(d=f0.g(c),d=$APP.n(d)?$APP.Al.g(c):d,d=$APP.r(d))),$APP.n(d)&&K_(a));e=$APP.M(c);d=$APP.D(e,$APP.U);e=$APP.D(e,Z_);g=$APP.k(a,"_sidebar");$APP.n(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.M(c);d=$APP.D(d,d0);e=$APP.k(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
11
+ $APP.n(d)?"true":"false"),e.hidden=$APP.r(d),e.inert!=null&&(e.inert=$APP.r(d)));h=$APP.M(c);d=$APP.D(h,$APP.Al);e=$APP.D(h,$APP.rj);g=$APP.D(h,Y_);h=$APP.D(h,$_);l=$APP.k(a,"_panel");$APP.n(l)&&(l.setAttribute("data-open",$APP.n(d)?"true":"false"),l.setAttribute("data-placement",e),l.setAttribute("data-variant",g),l.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.N($APP.Al.g(b),$APP.Al.g(c))&&(b=$APP.Al.g(c),F_(a,"toggle",new $APP.R(null,1,[$APP.Al,$APP.F(b)],null)));a._prevState=c},
12
+ i0=function(a,b){var c=$APP.k(a,"_prevState"),d=b.key;return $APP.n(function(){var e=f0.g(c);e=$APP.n(e)?e:g0.g(c);return $APP.n(e)?$APP.Al.g(c):e}())?$APP.C.i(d,"Escape")?(b.preventDefault(),H_(a,"escape"),$APP.Cg(a,"open",!1)):$APP.n(function(){var e=f0.g(c);return $APP.n(e)?$APP.C.i(d,"Tab"):e}())?L_(a,b):null:null},j0=function(a){$APP.n($APP.k(a,"_handlers"))||$APP.ia(a,"_handlers",{onBackdropClick:function(b){var c=$APP.k(a,"_prevState"),d=$APP.k(a,"_backdrop");var e=f0.g(c);e=$APP.n(e)?e:g0.g(c);
13
+ $APP.n(e)?(c=$APP.Al.g(c),b=$APP.n(c)?$APP.C.i(b.target,d):c):b=e;$APP.n(b)?(H_(a,"backdrop"),b=$APP.Cg(a,"open",!1)):b=null;return b},onKeydown:function(b){return i0(a,b)},onResize:function(){return h0(a)}})},k0=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.Cg(this,"open",$APP.F(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return $APP.Cg(this,
14
+ "collapsed",$APP.F(b))},enumerable:!0,configurable:!0})},m0=function(){var a=class extends HTMLElement{};a.observedAttributes=l0;a.prototype.connectedCallback=function(){M_(this);j0(this);if($APP.k(this,"_listening")!==!0){var b=$APP.k(this,"_handlers"),c=$APP.k(this,"_backdrop"),d=$APP.k(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.k(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.k(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",
15
+ $APP.k(b,"onResize"));this._listening=!0}return h0(this)};a.prototype.disconnectedCallback=function(){if($APP.k(this,"_listening")===!0){var b=$APP.k(this,"_handlers"),c=$APP.k(this,"_backdrop"),d=$APP.k(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.k(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.k(b,"onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.k(b,"onResize"));this._listening=!1}return K_(this)};a.prototype.attributeChangedCallback=
16
+ function(b,c,d){return $APP.N(c,d)?h0(this):null};k0(a.prototype);return a},n0=function(){return $APP.n(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",m0())},c0=new $APP.K(null,"declared-variant","declared-variant",-2054964950),T_=new $APP.K(null,"viewport-width","viewport-width",-1146235948),Z_=new $APP.K(null,"aria-hidden","aria-hidden",399337029),b0=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),d0=new $APP.K(null,"show-backdrop","show-backdrop",
17
+ -532209910),O_=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),P_=new $APP.K(null,"placement-attr","placement-attr",-1321967286),N_=new $APP.K(null,"open-attr","open-attr",-1772289801),o0=new $APP.K(null,"collapsed","collapsed",-628494523),U_=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),R_=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),Q_=new $APP.K(null,"variant-attr","variant-attr",-1143729279),Y_=new $APP.K(null,"effective-variant",
18
+ "effective-variant",-829495195),e0=new $APP.K(null,"reduced-motion","reduced-motion",79621277),a0=new $APP.K(null,"is-docked","is-docked",875310728),f0=new $APP.K(null,"is-modal","is-modal",1610761086),g0=new $APP.K(null,"is-overlay","is-overlay",1953921119),S_=new $APP.K(null,"label-attr","label-attr",-571749887),$_=new $APP.K(null,"collapsed-applied","collapsed-applied",-1696231706);var l0="open collapsed placement variant breakpoint label".split(" "),V_=$APP.Sf(["right","left"]),X_=$APP.Sf(["overlay","docked","modal"]),G_=$APP.Sf(["backdrop","escape"]),W_=new $APP.R(null,6,[$APP.rj,"left",$APP.Oh,"docked",$APP.Li,768,$APP.U,"Sidebar",$APP.Al,!1,o0,!1],null);$APP.Pd(["toggle",new $APP.R(null,1,[$APP.Cj,new $APP.R(null,1,[$APP.Al,$APP.Fj],null)],null),"dismiss",new $APP.R(null,1,[$APP.Cj,new $APP.R(null,1,[$APP.ti,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_sidebar.init",n0);export const init=n0;
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var qN=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},tN=function(a){var b=new $APP.R(null,4,[$APP.Nh,a.getAttribute("variant"),$APP.Ui,a.getAttribute("animation"),$APP.Zj,a.getAttribute("width"),$APP.Aj,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Nh),e=$APP.D(c,$APP.Ui);b=$APP.D(c,$APP.Zj);c=$APP.D(c,$APP.Aj);d=typeof d==="string"&&$APP.J(rN,d)?d:"rect";e=typeof e==="string"&&$APP.J(sN,e)?e:"pulse";b=new $APP.R(null,4,[$APP.Nh,d,$APP.Ui,e,$APP.Zj,qN(b),$APP.Aj,qN(c)],
3
- null);d=$APP.M(b);b=$APP.D(d,$APP.Nh);e=$APP.D(d,$APP.Ui);c=$APP.D(d,$APP.Zj);d=$APP.D(d,$APP.Aj);var g=$APP.k(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.n(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.n(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},uN=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?
2
+ var uO=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},xO=function(a){var b=new $APP.R(null,4,[$APP.Oh,a.getAttribute("variant"),$APP.Wi,a.getAttribute("animation"),$APP.ek,a.getAttribute("width"),$APP.Ej,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Oh),e=$APP.D(c,$APP.Wi);b=$APP.D(c,$APP.ek);c=$APP.D(c,$APP.Ej);d=typeof d==="string"&&$APP.J(vO,d)?d:"rect";e=typeof e==="string"&&$APP.J(wO,e)?e:"pulse";b=new $APP.R(null,4,[$APP.Oh,d,$APP.Wi,e,$APP.ek,uO(b),$APP.Ej,uO(c)],
3
+ null);d=$APP.M(b);b=$APP.D(d,$APP.Oh);e=$APP.D(d,$APP.Wi);c=$APP.D(d,$APP.ek);d=$APP.D(d,$APP.Ej);var g=$APP.k(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.n(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.n(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},yO=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?
4
4
  b:"rect"},set:function(b){return typeof b==="string"&&$APP.N("",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.n(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.N("",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.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",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.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},wN=function(){var a=class extends HTMLElement{};a.observedAttributes=vN;
5
+ return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",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.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},AO=function(){var a=class extends HTMLElement{};a.observedAttributes=zO;
6
6
  a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(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}tN(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xSkeletonInit"))&&tN(this);return null};uN(a.prototype);return a},xN=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",wN());return null};var rN=new $APP.S(null,new $APP.R(null,3,["text",null,"rect",null,"circle",null],null),null),sN=new $APP.S(null,new $APP.R(null,3,["none",null,"pulse",null,"wave",null],null),null),vN=["variant","animation","width","height"];$APP.fa("baredom.exports.x_skeleton.init",xN);export const init=xN;
7
+ d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}xO(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xSkeletonInit"))&&xO(this);return null};yO(a.prototype);return a},BO=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",AO());return null};var vO=new $APP.S(null,new $APP.R(null,3,["text",null,"rect",null,"circle",null],null),null),wO=new $APP.S(null,new $APP.R(null,3,["none",null,"pulse",null,"wave",null],null),null),zO=["variant","animation","width","height"];$APP.fa("baredom.exports.x_skeleton.init",BO);export const init=BO;
package/dist/x-slider.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var EG=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},FG=function(a,b,c){return a.setAttribute(b,c)},GG=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},LG=function(a){var b=$APP.k(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.k(b,"base"),d=$APP.k(b,"header"),e=$APP.k(b,"label"),g=$APP.k(b,"value");b=$APP.k(b,"input");var h=$APP.xf([$APP.Hj,$APP.mj,$APP.Kj,$APP.Yi,$APP.zi,$APP.Zi,$APP.Dj,$APP.th,$APP.ok,$APP.U,$APP.hm,$APP.cl,HG],[a.getAttribute("min"),
3
- a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var l=$APP.M(h);h=$APP.D(l,$APP.cl);var m=$APP.D(l,HG),p=$APP.D(l,$APP.Hj),q=$APP.D(l,$APP.mj),v=$APP.D(l,$APP.Kj),x=$APP.D(l,$APP.zi),y=$APP.D(l,$APP.Yi),A=$APP.D(l,$APP.Zi),B=$APP.D(l,
4
- $APP.Dj),E=$APP.D(l,$APP.th),H=$APP.D(l,$APP.U),G=$APP.D(l,$APP.ok);l=$APP.D(l,$APP.hm);p=EG(p,0);G=EG(G,100);x=$APP.ah.i($APP.$g.i(EG(x,0),p),G);$APP.C.i(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.r(isNaN(m))&&m>0?""+$APP.T.g(m):"1");E=typeof E==="string"&&$APP.J(IG,E)?E:"md";q=$APP.F(q);A=$APP.F(A);v=$APP.F(v);var I=G>p?$APP.ah.i($APP.$g.i((x-p)/(G-p)*100,0),100):0;h=$APP.xf([$APP.Hj,$APP.lm,$APP.Yi,$APP.zi,$APP.Dj,JG,$APP.th,$APP.ok,$APP.U,$APP.hm,$APP.cl,$APP.W,HG,KG],[p,
5
- A,typeof y==="string"&&$APP.N("",y)?y:null,x,typeof B==="string"&&$APP.N("",B)?B:null,v,E,G,typeof H==="string"&&$APP.N("",H)?H:null,typeof l==="string"&&$APP.N("",l)?l:null,typeof h==="string"&&$APP.N("",h)?h:null,q,m,I]);m=$APP.M(h);y=$APP.D(m,$APP.cl);B=$APP.D(m,$APP.W);H=$APP.D(m,HG);l=$APP.D(m,KG);v=$APP.D(m,$APP.Hj);p=$APP.D(m,$APP.lm);h=$APP.D(m,$APP.zi);A=$APP.D(m,$APP.Dj);G=$APP.D(m,JG);q=$APP.D(m,$APP.th);x=$APP.D(m,$APP.U);E=$APP.D(m,$APP.ok);m=$APP.D(m,$APP.hm);I=(I=x!=null)?I:G;c.setAttribute("data-size",
6
- q);GG(a,"data-disabled",B);GG(a,"data-readonly",p);d.style.display=$APP.n(I)?"flex":"none";e.textContent=$APP.n(x)?x:"";e.style.display=x!=null?"":"none";g.textContent=$APP.n(G)?""+$APP.T.g(h):"";g.style.display=$APP.n(G)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.T.g(l.toFixed(2))+"%");FG(b,"min",""+$APP.T.g(v));FG(b,"max",""+$APP.T.g(E));b.setAttribute("step",H);$APP.N(b.value,""+$APP.T.g(h))&&(b.value=""+$APP.T.g(h));FG(b,"aria-valuemin",""+$APP.T.g(v));FG(b,"aria-valuemax",""+$APP.T.g(E));
7
- FG(b,"aria-valuenow",""+$APP.T.g(h));b.setAttribute("aria-readonly",$APP.n(p)?"true":"false");$APP.n(y)?b.setAttribute("aria-label",y):x!=null?b.setAttribute("aria-label",x):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(B)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.k(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
- $APP.T.g(h)):null}return null},MG=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},NG=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=$APP.k($APP.k(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.n(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.n(g)?g:"100"}());a.setAttribute("value",b);return MG(a,"x-slider-input",
9
- {value:c,min:d,max:e})}},OG=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=parseFloat($APP.k($APP.k(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return MG(a,"x-slider-change",{value:b,min:c,max:d})}},QG=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.J(PG,b.key):c;return $APP.n(c)?
10
- b.preventDefault():null}},RG=function(a){var b=$APP.k(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.k(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xSliderHandlers=null;return}}return null},SG=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return GG(this,
11
- c,$APP.F(d))}})},TG=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?FG(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},VG=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return UG}});SG(b,"disabled","disabled");SG(b,"readOnly","readonly");SG(b,"showValue","show-value");TG(b,
12
- "value","value");TG(b,"min","min");TG(b,"max","max");TG(b,"step","step");TG(b,"name","name");TG(b,"label","label");TG(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:var(--x-radius-full,9999px);}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}@media (pointer:coarse){[part\x3dbase]{--_x-slider-thumb-sz:28px;}}";
13
- e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");l.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(l);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:l,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}RG(this);c=$APP.k(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.k(c,
14
- "input"),d=NG(this),e=OG(this),g=QG(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return LG(this)};b.disconnectedCallback=function(){return RG(this)};b.attributeChangedCallback=function(){return LG(this)};b.formDisabledCallback=function(c){GG(this,"disabled",$APP.F(c));return LG(this)};b.formResetCallback=function(){FG(this,"value",""+$APP.T.g(0));return LG(this)};return a},WG=function(){return $APP.n(customElements.get("x-slider"))?
15
- null:customElements.define("x-slider",VG())},JG=new $APP.K(null,"show-value?","show-value?",-1960833108),KG=new $APP.K(null,"fill-percent","fill-percent",-1813848228),HG=new $APP.K(null,"step","step",1288888124);var IG=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),UG="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
- $APP.xf([$APP.Hj,$APP.mj,$APP.vh,$APP.Yi,$APP.zi,$APP.th,$APP.yl,$APP.ok,$APP.U,HG],[new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"min"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"show-value"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"size"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"readonly"],null),new $APP.R(null,
17
- 2,[$APP.Z,$APP.X,$APP.dk,"max"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"label"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"step"],null)]);$APP.Pd(["x-slider-input",new $APP.R(null,1,[$APP.yj,new $APP.R(null,3,[$APP.zi,$APP.V,$APP.Hj,$APP.V,$APP.ok,$APP.V],null)],null),"x-slider-change",new $APP.R(null,1,[$APP.yj,new $APP.R(null,3,[$APP.zi,$APP.V,$APP.Hj,$APP.V,$APP.ok,$APP.V],null)],null)]);var PG=new $APP.S(null,new $APP.R(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.fa("baredom.exports.x_slider.init",WG);export const init=WG;
2
+ var NG=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},OG=function(a,b,c){return a.setAttribute(b,c)},PG=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},UG=function(a){var b=$APP.k(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.k(b,"base"),d=$APP.k(b,"header"),e=$APP.k(b,"label"),g=$APP.k(b,"value");b=$APP.k(b,"input");var h=$APP.xf([$APP.Lj,$APP.qj,$APP.Oj,$APP.bj,$APP.Bi,$APP.cj,$APP.Hj,$APP.th,$APP.tk,$APP.U,$APP.qm,$APP.il,QG],[a.getAttribute("min"),
3
+ a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var l=$APP.M(h);h=$APP.D(l,$APP.il);var m=$APP.D(l,QG),p=$APP.D(l,$APP.Lj),q=$APP.D(l,$APP.qj),v=$APP.D(l,$APP.Oj),x=$APP.D(l,$APP.Bi),y=$APP.D(l,$APP.bj),A=$APP.D(l,$APP.cj),B=$APP.D(l,
4
+ $APP.Hj),E=$APP.D(l,$APP.th),H=$APP.D(l,$APP.U),G=$APP.D(l,$APP.tk);l=$APP.D(l,$APP.qm);p=NG(p,0);G=NG(G,100);x=$APP.ah.i($APP.$g.i(NG(x,0),p),G);$APP.C.i(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.r(isNaN(m))&&m>0?""+$APP.T.g(m):"1");E=typeof E==="string"&&$APP.J(RG,E)?E:"md";q=$APP.F(q);A=$APP.F(A);v=$APP.F(v);var I=G>p?$APP.ah.i($APP.$g.i((x-p)/(G-p)*100,0),100):0;h=$APP.xf([$APP.Lj,$APP.um,$APP.bj,$APP.Bi,$APP.Hj,SG,$APP.th,$APP.tk,$APP.U,$APP.qm,$APP.il,$APP.W,QG,TG],[p,
5
+ A,typeof y==="string"&&$APP.N("",y)?y:null,x,typeof B==="string"&&$APP.N("",B)?B:null,v,E,G,typeof H==="string"&&$APP.N("",H)?H:null,typeof l==="string"&&$APP.N("",l)?l:null,typeof h==="string"&&$APP.N("",h)?h:null,q,m,I]);m=$APP.M(h);y=$APP.D(m,$APP.il);B=$APP.D(m,$APP.W);H=$APP.D(m,QG);l=$APP.D(m,TG);v=$APP.D(m,$APP.Lj);p=$APP.D(m,$APP.um);h=$APP.D(m,$APP.Bi);A=$APP.D(m,$APP.Hj);G=$APP.D(m,SG);q=$APP.D(m,$APP.th);x=$APP.D(m,$APP.U);E=$APP.D(m,$APP.tk);m=$APP.D(m,$APP.qm);I=(I=x!=null)?I:G;c.setAttribute("data-size",
6
+ q);PG(a,"data-disabled",B);PG(a,"data-readonly",p);d.style.display=$APP.n(I)?"flex":"none";e.textContent=$APP.n(x)?x:"";e.style.display=x!=null?"":"none";g.textContent=$APP.n(G)?""+$APP.T.g(h):"";g.style.display=$APP.n(G)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.T.g(l.toFixed(2))+"%");OG(b,"min",""+$APP.T.g(v));OG(b,"max",""+$APP.T.g(E));b.setAttribute("step",H);$APP.N(b.value,""+$APP.T.g(h))&&(b.value=""+$APP.T.g(h));OG(b,"aria-valuemin",""+$APP.T.g(v));OG(b,"aria-valuemax",""+$APP.T.g(E));
7
+ OG(b,"aria-valuenow",""+$APP.T.g(h));b.setAttribute("aria-readonly",$APP.n(p)?"true":"false");$APP.n(y)?b.setAttribute("aria-label",y):x!=null?b.setAttribute("aria-label",x):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(B)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.k(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
+ $APP.T.g(h)):null}return null},VG=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},WG=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=$APP.k($APP.k(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.n(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.n(g)?g:"100"}());a.setAttribute("value",b);return VG(a,"x-slider-input",
9
+ {value:c,min:d,max:e})}},XG=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=parseFloat($APP.k($APP.k(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return VG(a,"x-slider-change",{value:b,min:c,max:d})}},ZG=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.J(YG,b.key):c;return $APP.n(c)?
10
+ b.preventDefault():null}},$G=function(a){var b=$APP.k(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.k(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xSliderHandlers=null;return}}return null},aH=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return PG(this,
11
+ c,$APP.F(d))}})},bH=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?OG(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},dH=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return cH}});aH(b,"disabled","disabled");aH(b,"readOnly","readonly");aH(b,"showValue","show-value");bH(b,
12
+ "value","value");bH(b,"min","min");bH(b,"max","max");bH(b,"step","step");bH(b,"name","name");bH(b,"label","label");bH(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:var(--x-radius-full,9999px);}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}@media (pointer:coarse){[part\x3dbase]{--_x-slider-thumb-sz:28px;}}";
13
+ e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");l.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(l);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:l,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}$G(this);c=$APP.k(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.k(c,
14
+ "input"),d=WG(this),e=XG(this),g=ZG(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return UG(this)};b.disconnectedCallback=function(){return $G(this)};b.attributeChangedCallback=function(){return UG(this)};b.formDisabledCallback=function(c){PG(this,"disabled",$APP.F(c));return UG(this)};b.formResetCallback=function(){OG(this,"value",""+$APP.T.g(0));return UG(this)};return a},eH=function(){return $APP.n(customElements.get("x-slider"))?
15
+ null:customElements.define("x-slider",dH())},SG=new $APP.K(null,"show-value?","show-value?",-1960833108),TG=new $APP.K(null,"fill-percent","fill-percent",-1813848228),QG=new $APP.K(null,"step","step",1288888124);var RG=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),cH="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
+ $APP.xf([$APP.Lj,$APP.qj,$APP.vh,$APP.bj,$APP.Bi,$APP.th,$APP.Fl,$APP.tk,$APP.U,QG],[new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"min"],null),new $APP.R(null,2,[$APP.Y,$APP.Fj,$APP.ik,"disabled"],null),new $APP.R(null,2,[$APP.Y,$APP.Fj,$APP.ik,"show-value"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"name"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"value"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"size"],null),new $APP.R(null,2,[$APP.Y,$APP.Fj,$APP.ik,"readonly"],null),new $APP.R(null,
17
+ 2,[$APP.Y,$APP.X,$APP.ik,"max"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"label"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"step"],null)]);$APP.Pd(["x-slider-input",new $APP.R(null,1,[$APP.Cj,new $APP.R(null,3,[$APP.Bi,$APP.V,$APP.Lj,$APP.V,$APP.tk,$APP.V],null)],null),"x-slider-change",new $APP.R(null,1,[$APP.Cj,new $APP.R(null,3,[$APP.Bi,$APP.V,$APP.Lj,$APP.V,$APP.tk,$APP.V],null)],null)]);var YG=new $APP.S(null,new $APP.R(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.fa("baredom.exports.x_slider.init",eH);export const init=eH;
@@ -1,23 +1,23 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var hG=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},iG=function(a,b,c,d,e,g){b=c+(e*(b-a)-g*c)*d;return[a+b*d,b]},jG=function(a,b,c,d,e,g,h){a=c-a;b=d-b;d=Math.sqrt(a*a+b*b);if(d<=.001||d>=e)return[0,0];e=1-d/e;g*=e*e*($APP.n(h)?50:20);return[a/d*g,b/d*g]},kG=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},lG=function(a,b){for(var c=0;;){if(c>=20)return!0;
3
- if(Math.abs(a[c])>.1||Math.abs(b[c])>.1)return!1;c+=1}},nG=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","path"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=mG;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 300 200");d.setAttribute("preserveAspectRatio","none");d.setAttribute("aria-hidden","true");
4
- e.setAttribute("part","shape");g.setAttribute("part","content");d.appendChild(e);g.appendChild(h);b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xSoftBodyRefs=new $APP.R(null,4,[$APP.ji,b,$APP.Jj,d,$APP.qk,e,$APP.ci,g],null)},qG=function(a){a=new $APP.R(null,6,[$APP.vl,a.getAttribute("stiffness"),$APP.fm,a.getAttribute("damping"),$APP.fj,a.getAttribute("radius"),$APP.bk,a.getAttribute("intensity"),oG,a.getAttribute("grab-radius"),$APP.Gi,a.getAttribute("disabled")],null);var b=$APP.M(a);a=
5
- $APP.D(b,$APP.vl);var c=$APP.D(b,$APP.fm),d=$APP.D(b,$APP.fj),e=$APP.D(b,$APP.bk),g=$APP.D(b,oG);b=$APP.D(b,$APP.Gi);return new $APP.R(null,6,[$APP.fl,hG(a,180,10,1E3),$APP.kk,hG(c,12,1,100),$APP.am,hG(d,16,6,200),$APP.Tj,hG(e,1,0,5),pG,hG(g,80,10,500),$APP.W,b!=null],null)},rG=function(a,b,c){var d=$APP.am.g($APP.k(a,"__xSoftBodyModel"));d=Math.max(6,Math.min(d,Math.min(b,c)/2));var e=Math.cos(Math.PI/6),g=Math.sin(Math.PI/6),h=Math.cos(Math.PI/3),l=Math.sin(Math.PI/3),m=new Float64Array(20),p=new Float64Array(20);
2
+ var qG=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},rG=function(a,b,c,d,e,g){b=c+(e*(b-a)-g*c)*d;return[a+b*d,b]},sG=function(a,b,c,d,e,g,h){a=c-a;b=d-b;d=Math.sqrt(a*a+b*b);if(d<=.001||d>=e)return[0,0];e=1-d/e;g*=e*e*($APP.n(h)?50:20);return[a/d*g,b/d*g]},tG=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},uG=function(a,b){for(var c=0;;){if(c>=20)return!0;
3
+ if(Math.abs(a[c])>.1||Math.abs(b[c])>.1)return!1;c+=1}},wG=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","path"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=vG;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 300 200");d.setAttribute("preserveAspectRatio","none");d.setAttribute("aria-hidden","true");
4
+ e.setAttribute("part","shape");g.setAttribute("part","content");d.appendChild(e);g.appendChild(h);b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xSoftBodyRefs=new $APP.R(null,4,[$APP.li,b,$APP.Nj,d,$APP.vk,e,$APP.ei,g],null)},zG=function(a){a=new $APP.R(null,6,[$APP.Cl,a.getAttribute("stiffness"),$APP.om,a.getAttribute("damping"),$APP.jj,a.getAttribute("radius"),$APP.gk,a.getAttribute("intensity"),xG,a.getAttribute("grab-radius"),$APP.Ii,a.getAttribute("disabled")],null);var b=$APP.M(a);a=
5
+ $APP.D(b,$APP.Cl);var c=$APP.D(b,$APP.om),d=$APP.D(b,$APP.jj),e=$APP.D(b,$APP.gk),g=$APP.D(b,xG);b=$APP.D(b,$APP.Ii);return new $APP.R(null,6,[$APP.ll,qG(a,180,10,1E3),$APP.pk,qG(c,12,1,100),$APP.jm,qG(d,16,6,200),$APP.Xj,qG(e,1,0,5),yG,qG(g,80,10,500),$APP.W,b!=null],null)},AG=function(a,b,c){var d=$APP.jm.g($APP.k(a,"__xSoftBodyModel"));d=Math.max(6,Math.min(d,Math.min(b,c)/2));var e=Math.cos(Math.PI/6),g=Math.sin(Math.PI/6),h=Math.cos(Math.PI/3),l=Math.sin(Math.PI/3),m=new Float64Array(20),p=new Float64Array(20);
6
6
  m[0]=d;p[0]=0;m[1]=b*.5;p[1]=0;m[2]=b-d;p[2]=0;m[3]=b-d+d*g;p[3]=d-d*e;m[4]=b-d+d*l;p[4]=d-d*h;m[5]=b;p[5]=d;m[6]=b;p[6]=c*.5;m[7]=b;p[7]=c-d;m[8]=b-d+d*e;p[8]=c-d+d*g;m[9]=b-d+d*h;p[9]=c-d+d*l;m[10]=b-d;p[10]=c;m[11]=b*.5;p[11]=c;m[12]=d;p[12]=c;m[13]=d-d*g;p[13]=c-d+d*e;m[14]=d-d*l;p[14]=c-d+d*h;m[15]=0;p[15]=c-d;m[16]=0;p[16]=c*.5;m[17]=0;p[17]=d;m[18]=d-d*e;p[18]=d-d*g;m[19]=d-d*h;p[19]=d-d*l;c=[m,p];b=c[0];c=c[1];d=new Float64Array(20);e=new Float64Array(20);g=new Float64Array(20);h=new Float64Array(20);
7
- for(l=0;;)if(l<20)d[l]=b[l],e[l]=c[l],g[l]=0,h[l]=0,l+=1;else break;a.__xSoftBodyRX=b;a.__xSoftBodyRY=c;a.__xSoftBodyCX=d;a.__xSoftBodyCY=e;a.__xSoftBodyVX=g;a.__xSoftBodyVY=h},sG=function(a){var b=$APP.M($APP.k(a,"__xSoftBodyRefs"));b=$APP.D(b,$APP.qk);var c=$APP.k(a,"__xSoftBodyCX");a=$APP.k(a,"__xSoftBodyCY");var d=[];d.push("M"+$APP.T.g(c[0].toFixed(2))+","+$APP.T.g(a[0].toFixed(2)));for(var e=0;;)if(e<20){var g=$APP.ed(e+19,20),h=e,l=$APP.ed(e+1,20),m=$APP.ed(e+2,20),p=(c[l]-c[g])/6,q=(a[l]-
8
- a[g])/6;g=(c[m]-c[h])/6;m=(a[m]-a[h])/6;var v=c[l]-c[h],x=a[l]-a[h];x=Math.sqrt(v*v+x*x)*.4;v=Math.sqrt(p*p+q*q);v=v>x?x/(v+.001):1;q=a[h]+q*v;var y=Math.sqrt(g*g+m*m);x=y>x?x/(y+.001):1;g=c[l]-g*x;m=a[l]-m*x;d.push("C"+$APP.T.g((c[h]+p*v).toFixed(2))+","+$APP.T.g(q.toFixed(2))+" "+$APP.T.g(g.toFixed(2))+","+$APP.T.g(m.toFixed(2))+" "+$APP.T.g(c[l].toFixed(2))+","+$APP.T.g(a[l].toFixed(2)));e+=1}else break;d.push("Z");b.setAttribute("d",d.join(""))},tG=function(a){var b=$APP.M($APP.k(a,"__xSoftBodyRefs"));
9
- b=$APP.D(b,$APP.qk);var c=$APP.k(a,"__xSoftBodyW"),d=$APP.k(a,"__xSoftBodyH");a=$APP.am.g($APP.k(a,"__xSoftBodyModel"));a=Math.max(6,Math.min(a,Math.min(c,d)/2));var e=.5522847498*a;c="M"+$APP.T.g(a.toFixed(2))+",0L"+$APP.T.g((c-a).toFixed(2))+",0C"+$APP.T.g((c-a+e).toFixed(2))+",0 "+$APP.T.g(c.toFixed(2))+","+$APP.T.g((a-e).toFixed(2))+" "+$APP.T.g(c.toFixed(2))+","+$APP.T.g(a.toFixed(2))+"L"+$APP.T.g(c.toFixed(2))+","+$APP.T.g((d-a).toFixed(2))+"C"+$APP.T.g(c.toFixed(2))+","+$APP.T.g((d-a+e).toFixed(2))+
10
- " "+$APP.T.g((c-a+e).toFixed(2))+","+$APP.T.g(d.toFixed(2))+" "+$APP.T.g((c-a).toFixed(2))+","+$APP.T.g(d.toFixed(2))+"L"+$APP.T.g(a.toFixed(2))+","+$APP.T.g(d.toFixed(2))+"C"+$APP.T.g((a-e).toFixed(2))+","+$APP.T.g(d.toFixed(2))+" 0,"+$APP.T.g((d-a+e).toFixed(2))+" 0,"+$APP.T.g((d-a).toFixed(2))+"L0,"+$APP.T.g(a.toFixed(2))+"C0,"+$APP.T.g((a-e).toFixed(2))+" "+$APP.T.g((a-e).toFixed(2))+",0 "+$APP.T.g(a.toFixed(2))+",0Z";b.setAttribute("d",c)},vG=function(a){$APP.n($APP.k(a,"__xSoftBodyRaf"))||($APP.ia(a,
11
- "__xSoftBodyLF",performance.now()),$APP.ia(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return uG(a)})))},wG=function(a){var b=$APP.k(a,"__xSoftBodyRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xSoftBodyRaf=null)},xG=function(a,b){var c=$APP.M($APP.k(a,"__xSoftBodyRefs"));c=$APP.D(c,$APP.Jj).getBoundingClientRect();a.__xSoftBodyPX=b.clientX-c.left;a.__xSoftBodyPY=b.clientY-c.top;return null},yG=function(a){function b(){a.__xSoftBodyGrab=!1;a.dispatchEvent(new CustomEvent("x-soft-body-release",
12
- {bubbles:!0,composed:!0,detail:{}}));return null}function c(h){a.__xSoftBodyGrab=!0;xG(a,h);a.dispatchEvent(new CustomEvent("x-soft-body-grab",{bubbles:!0,composed:!0,detail:{}}));return null}function d(){a.__xSoftBodyPA=!1;a.__xSoftBodyGrab=!1;return null}function e(){a.__xSoftBodyPA=!0;var h=$APP.W.g($APP.k(a,"__xSoftBodyModel"));h=$APP.n(h)?h:kG();$APP.n(h)||vG(a);return null}function g(h){return xG(a,h)}$APP.ia(a,"__xSoftBodyHdl",{move:g,enter:e,leave:d,down:c,up:b});a.addEventListener("pointermove",
13
- g,{passive:!0});a.addEventListener("pointerenter",e);a.addEventListener("pointerleave",d);a.addEventListener("pointerdown",c);a.addEventListener("pointerup",b)},zG=function(a){var b=$APP.k(a,"__xSoftBodyHdl");$APP.n(b)&&(a.removeEventListener("pointermove",$APP.k(b,"move")),a.removeEventListener("pointerenter",$APP.k(b,"enter")),a.removeEventListener("pointerleave",$APP.k(b,"leave")),a.removeEventListener("pointerdown",$APP.k(b,"down")),a.removeEventListener("pointerup",$APP.k(b,"up")),a.__xSoftBodyHdl=
14
- null)},AG=function(a){Object.defineProperty(a,"stiffness",{get:function(){var b=this.getAttribute("stiffness");return hG(b,180,10,1E3)},set:function(b){return b==null?this.removeAttribute("stiffness"):this.setAttribute("stiffness",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"damping",{get:function(){var b=this.getAttribute("damping");return hG(b,12,1,100)},set:function(b){return b==null?this.removeAttribute("damping"):this.setAttribute("damping",""+$APP.T.g(b))},enumerable:!0,
15
- configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return hG(b,16,6,200)},set:function(b){return b==null?this.removeAttribute("radius"):this.setAttribute("radius",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return hG(b,1,0,5)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});
16
- Object.defineProperty(a,"grabRadius",{get:function(){var b=this.getAttribute("grab-radius");return hG(b,80,10,500)},set:function(b){return b==null?this.removeAttribute("grab-radius"):this.setAttribute("grab-radius",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},CG=function(){var a=
17
- class extends HTMLElement{};a.observedAttributes=BG;a.prototype.connectedCallback=function(){var b=this,c=qG(b);b.__xSoftBodyModel=c;$APP.n($APP.k(b,"__xSoftBodyRefs"))||nG(b);b.__xSoftBodyPA=!1;b.__xSoftBodyGrab=!1;b.__xSoftBodyPX=0;b.__xSoftBodyPY=0;c=new ResizeObserver(function(d){if(d.length>0){var e=d[0].contentRect;d=e.width;e=e.height;if(d>0&&e>0){b.__xSoftBodyW=d;b.__xSoftBodyH=e;var g=$APP.M($APP.k(b,"__xSoftBodyRefs"));$APP.D(g,$APP.Jj).setAttribute("viewBox","0 0 "+$APP.T.g(d)+" "+$APP.T.g(e));
18
- rG(b,d,e);d=$APP.W.g($APP.k(b,"__xSoftBodyModel"));d=$APP.n(d)?d:kG();$APP.n(d)?tG(b):(sG(b),vG(b))}}return null});b.__xSoftBodyRO=c;c.observe(b);zG(b);yG(b);return null};a.prototype.disconnectedCallback=function(){wG(this);zG(this);var b=$APP.k(this,"__xSoftBodyRO");$APP.n(b)&&(b.disconnect(),this.__xSoftBodyRO=null);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xSoftBodyRefs"))&&(this.__xSoftBodyModel=b=qG(this),c=$APP.k(this,"__xSoftBodyW"),
19
- d=$APP.k(this,"__xSoftBodyH"),$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(rG(this,c,d),b=$APP.W.g(b),b=$APP.n(b)?b:kG(),$APP.n(b)?(wG(this),tG(this)):(sG(this),vG(this))));return null};AG(a.prototype);return a},DG=function(){$APP.n(customElements.get("x-soft-body"))||customElements.define("x-soft-body",CG());return null},pG=new $APP.K(null,"grab-radius","grab-radius",771838535),oG=new $APP.K(null,"grab-radius-raw","grab-radius-raw",-1019405976);var BG="stiffness damping radius intensity grab-radius disabled".split(" ");$APP.Pd(["x-soft-body-grab",new $APP.R(null,2,[$APP.yj,$APP.Qd,$APP.wl,!1],null),"x-soft-body-release",new $APP.R(null,2,[$APP.yj,$APP.Qd,$APP.wl,!1],null)]);var mG=":host{display:block;position:relative;background:none;overflow:visible;"+$APP.T.g("--x-soft-body-bg")+":var(--x-color-surface,#ffffff);"+$APP.T.g("--x-soft-body-border")+":var(--x-color-border,#e2e8f0);"+$APP.T.g("--x-soft-body-border-width")+":1.5;"+$APP.T.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.1));"+$APP.T.g("--x-soft-body-padding")+":1rem;}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:visible;pointer-events:none;}[part\x3dshape]{fill:var("+
7
+ for(l=0;;)if(l<20)d[l]=b[l],e[l]=c[l],g[l]=0,h[l]=0,l+=1;else break;a.__xSoftBodyRX=b;a.__xSoftBodyRY=c;a.__xSoftBodyCX=d;a.__xSoftBodyCY=e;a.__xSoftBodyVX=g;a.__xSoftBodyVY=h},BG=function(a){var b=$APP.M($APP.k(a,"__xSoftBodyRefs"));b=$APP.D(b,$APP.vk);var c=$APP.k(a,"__xSoftBodyCX");a=$APP.k(a,"__xSoftBodyCY");var d=[];d.push("M"+$APP.T.g(c[0].toFixed(2))+","+$APP.T.g(a[0].toFixed(2)));for(var e=0;;)if(e<20){var g=$APP.ed(e+19,20),h=e,l=$APP.ed(e+1,20),m=$APP.ed(e+2,20),p=(c[l]-c[g])/6,q=(a[l]-
8
+ a[g])/6;g=(c[m]-c[h])/6;m=(a[m]-a[h])/6;var v=c[l]-c[h],x=a[l]-a[h];x=Math.sqrt(v*v+x*x)*.4;v=Math.sqrt(p*p+q*q);v=v>x?x/(v+.001):1;q=a[h]+q*v;var y=Math.sqrt(g*g+m*m);x=y>x?x/(y+.001):1;g=c[l]-g*x;m=a[l]-m*x;d.push("C"+$APP.T.g((c[h]+p*v).toFixed(2))+","+$APP.T.g(q.toFixed(2))+" "+$APP.T.g(g.toFixed(2))+","+$APP.T.g(m.toFixed(2))+" "+$APP.T.g(c[l].toFixed(2))+","+$APP.T.g(a[l].toFixed(2)));e+=1}else break;d.push("Z");b.setAttribute("d",d.join(""))},CG=function(a){var b=$APP.M($APP.k(a,"__xSoftBodyRefs"));
9
+ b=$APP.D(b,$APP.vk);var c=$APP.k(a,"__xSoftBodyW"),d=$APP.k(a,"__xSoftBodyH");a=$APP.jm.g($APP.k(a,"__xSoftBodyModel"));a=Math.max(6,Math.min(a,Math.min(c,d)/2));var e=.5522847498*a;c="M"+$APP.T.g(a.toFixed(2))+",0L"+$APP.T.g((c-a).toFixed(2))+",0C"+$APP.T.g((c-a+e).toFixed(2))+",0 "+$APP.T.g(c.toFixed(2))+","+$APP.T.g((a-e).toFixed(2))+" "+$APP.T.g(c.toFixed(2))+","+$APP.T.g(a.toFixed(2))+"L"+$APP.T.g(c.toFixed(2))+","+$APP.T.g((d-a).toFixed(2))+"C"+$APP.T.g(c.toFixed(2))+","+$APP.T.g((d-a+e).toFixed(2))+
10
+ " "+$APP.T.g((c-a+e).toFixed(2))+","+$APP.T.g(d.toFixed(2))+" "+$APP.T.g((c-a).toFixed(2))+","+$APP.T.g(d.toFixed(2))+"L"+$APP.T.g(a.toFixed(2))+","+$APP.T.g(d.toFixed(2))+"C"+$APP.T.g((a-e).toFixed(2))+","+$APP.T.g(d.toFixed(2))+" 0,"+$APP.T.g((d-a+e).toFixed(2))+" 0,"+$APP.T.g((d-a).toFixed(2))+"L0,"+$APP.T.g(a.toFixed(2))+"C0,"+$APP.T.g((a-e).toFixed(2))+" "+$APP.T.g((a-e).toFixed(2))+",0 "+$APP.T.g(a.toFixed(2))+",0Z";b.setAttribute("d",c)},EG=function(a){$APP.n($APP.k(a,"__xSoftBodyRaf"))||($APP.ia(a,
11
+ "__xSoftBodyLF",performance.now()),$APP.ia(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return DG(a)})))},FG=function(a){var b=$APP.k(a,"__xSoftBodyRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xSoftBodyRaf=null)},GG=function(a,b){var c=$APP.M($APP.k(a,"__xSoftBodyRefs"));c=$APP.D(c,$APP.Nj).getBoundingClientRect();a.__xSoftBodyPX=b.clientX-c.left;a.__xSoftBodyPY=b.clientY-c.top;return null},HG=function(a){function b(){a.__xSoftBodyGrab=!1;a.dispatchEvent(new CustomEvent("x-soft-body-release",
12
+ {bubbles:!0,composed:!0,detail:{}}));return null}function c(h){a.__xSoftBodyGrab=!0;GG(a,h);a.dispatchEvent(new CustomEvent("x-soft-body-grab",{bubbles:!0,composed:!0,detail:{}}));return null}function d(){a.__xSoftBodyPA=!1;a.__xSoftBodyGrab=!1;return null}function e(){a.__xSoftBodyPA=!0;var h=$APP.W.g($APP.k(a,"__xSoftBodyModel"));h=$APP.n(h)?h:tG();$APP.n(h)||EG(a);return null}function g(h){return GG(a,h)}$APP.ia(a,"__xSoftBodyHdl",{move:g,enter:e,leave:d,down:c,up:b});a.addEventListener("pointermove",
13
+ g,{passive:!0});a.addEventListener("pointerenter",e);a.addEventListener("pointerleave",d);a.addEventListener("pointerdown",c);a.addEventListener("pointerup",b)},IG=function(a){var b=$APP.k(a,"__xSoftBodyHdl");$APP.n(b)&&(a.removeEventListener("pointermove",$APP.k(b,"move")),a.removeEventListener("pointerenter",$APP.k(b,"enter")),a.removeEventListener("pointerleave",$APP.k(b,"leave")),a.removeEventListener("pointerdown",$APP.k(b,"down")),a.removeEventListener("pointerup",$APP.k(b,"up")),a.__xSoftBodyHdl=
14
+ null)},JG=function(a){Object.defineProperty(a,"stiffness",{get:function(){var b=this.getAttribute("stiffness");return qG(b,180,10,1E3)},set:function(b){return b==null?this.removeAttribute("stiffness"):this.setAttribute("stiffness",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"damping",{get:function(){var b=this.getAttribute("damping");return qG(b,12,1,100)},set:function(b){return b==null?this.removeAttribute("damping"):this.setAttribute("damping",""+$APP.T.g(b))},enumerable:!0,
15
+ configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return qG(b,16,6,200)},set:function(b){return b==null?this.removeAttribute("radius"):this.setAttribute("radius",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return qG(b,1,0,5)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});
16
+ Object.defineProperty(a,"grabRadius",{get:function(){var b=this.getAttribute("grab-radius");return qG(b,80,10,500)},set:function(b){return b==null?this.removeAttribute("grab-radius"):this.setAttribute("grab-radius",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},LG=function(){var a=
17
+ class extends HTMLElement{};a.observedAttributes=KG;a.prototype.connectedCallback=function(){var b=this,c=zG(b);b.__xSoftBodyModel=c;$APP.n($APP.k(b,"__xSoftBodyRefs"))||wG(b);b.__xSoftBodyPA=!1;b.__xSoftBodyGrab=!1;b.__xSoftBodyPX=0;b.__xSoftBodyPY=0;c=new ResizeObserver(function(d){if(d.length>0){var e=d[0].contentRect;d=e.width;e=e.height;if(d>0&&e>0){b.__xSoftBodyW=d;b.__xSoftBodyH=e;var g=$APP.M($APP.k(b,"__xSoftBodyRefs"));$APP.D(g,$APP.Nj).setAttribute("viewBox","0 0 "+$APP.T.g(d)+" "+$APP.T.g(e));
18
+ AG(b,d,e);d=$APP.W.g($APP.k(b,"__xSoftBodyModel"));d=$APP.n(d)?d:tG();$APP.n(d)?CG(b):(BG(b),EG(b))}}return null});b.__xSoftBodyRO=c;c.observe(b);IG(b);HG(b);return null};a.prototype.disconnectedCallback=function(){FG(this);IG(this);var b=$APP.k(this,"__xSoftBodyRO");$APP.n(b)&&(b.disconnect(),this.__xSoftBodyRO=null);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xSoftBodyRefs"))&&(this.__xSoftBodyModel=b=zG(this),c=$APP.k(this,"__xSoftBodyW"),
19
+ d=$APP.k(this,"__xSoftBodyH"),$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(AG(this,c,d),b=$APP.W.g(b),b=$APP.n(b)?b:tG(),$APP.n(b)?(FG(this),CG(this)):(BG(this),EG(this))));return null};JG(a.prototype);return a},MG=function(){$APP.n(customElements.get("x-soft-body"))||customElements.define("x-soft-body",LG());return null},yG=new $APP.K(null,"grab-radius","grab-radius",771838535),xG=new $APP.K(null,"grab-radius-raw","grab-radius-raw",-1019405976);var KG="stiffness damping radius intensity grab-radius disabled".split(" ");$APP.Pd(["x-soft-body-grab",new $APP.R(null,2,[$APP.Cj,$APP.Qd,$APP.Dl,!1],null),"x-soft-body-release",new $APP.R(null,2,[$APP.Cj,$APP.Qd,$APP.Dl,!1],null)]);var vG=":host{display:block;position:relative;background:none;overflow:visible;"+$APP.T.g("--x-soft-body-bg")+":var(--x-color-surface,#ffffff);"+$APP.T.g("--x-soft-body-border")+":var(--x-color-border,#e2e8f0);"+$APP.T.g("--x-soft-body-border-width")+":1.5;"+$APP.T.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.1));"+$APP.T.g("--x-soft-body-padding")+":1rem;}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:visible;pointer-events:none;}[part\x3dshape]{fill:var("+
20
20
  $APP.T.g("--x-soft-body-bg")+",#ffffff);stroke:var("+$APP.T.g("--x-soft-body-border")+",#e2e8f0);stroke-width:var("+$APP.T.g("--x-soft-body-border-width")+",1.5);filter:drop-shadow(var("+$APP.T.g("--x-soft-body-shadow")+",0 1px 3px rgba(0,0,0,0.1)));}[part\x3dcontent]{position:relative;background:none;padding:var("+$APP.T.g("--x-soft-body-padding")+",1rem);z-index:1;}@media(prefers-color-scheme:dark){:host{"+$APP.T.g("--x-soft-body-bg")+":var(--x-color-surface,#1e293b);"+$APP.T.g("--x-soft-body-border")+
21
- ":var(--x-color-border,#475569);"+$APP.T.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.3));}}@media(prefers-reduced-motion:reduce){[part\x3dshape]{transition:none!important;}}",uG=function uG(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xSoftBodyModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xSoftBodyLF"),100)/1E3,g=$APP.fl.g(c),h=$APP.kk.g(c),l=$APP.Tj.g(c),m=pG.g(c);c=$APP.k(a,"__xSoftBodyRX");var p=$APP.k(a,"__xSoftBodyRY"),q=$APP.k(a,"__xSoftBodyCX"),v=$APP.k(a,
22
- "__xSoftBodyCY"),x=$APP.k(a,"__xSoftBodyVX"),y=$APP.k(a,"__xSoftBodyVY"),A=$APP.k(a,"__xSoftBodyPA"),B=$APP.k(a,"__xSoftBodyPX"),E=$APP.k(a,"__xSoftBodyPY"),H=$APP.k(a,"__xSoftBodyGrab");a.__xSoftBodyLF=d;for(d=0;;)if(d<20){var G=c[d],I=p[d],Q=$APP.n(A)?jG(G,I,B,E,m,l,H):[0,0];G=iG(q[d],G+Q[0],x[d],e,g,h);I=iG(v[d],I+Q[1],y[d],e,g,h);q[d]=G[0];x[d]=G[1];v[d]=I[0];y[d]=I[1];d+=1}else break;sG(a);if($APP.n($APP.n(A)?A:!lG(x,y)))$APP.ia(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return uG.g?
23
- uG.g(a):uG.call(null,a)}));else{for(e=0;;)if(e<20)q[e]=c[e],v[e]=p[e],e+=1;else break;sG(a);a.__xSoftBodyRaf=null}}return null};$APP.fa("baredom.exports.x_soft_body.init",DG);export const init=DG;
21
+ ":var(--x-color-border,#475569);"+$APP.T.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.3));}}@media(prefers-reduced-motion:reduce){[part\x3dshape]{transition:none!important;}}",DG=function DG(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xSoftBodyModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xSoftBodyLF"),100)/1E3,g=$APP.ll.g(c),h=$APP.pk.g(c),l=$APP.Xj.g(c),m=yG.g(c);c=$APP.k(a,"__xSoftBodyRX");var p=$APP.k(a,"__xSoftBodyRY"),q=$APP.k(a,"__xSoftBodyCX"),v=$APP.k(a,
22
+ "__xSoftBodyCY"),x=$APP.k(a,"__xSoftBodyVX"),y=$APP.k(a,"__xSoftBodyVY"),A=$APP.k(a,"__xSoftBodyPA"),B=$APP.k(a,"__xSoftBodyPX"),E=$APP.k(a,"__xSoftBodyPY"),H=$APP.k(a,"__xSoftBodyGrab");a.__xSoftBodyLF=d;for(d=0;;)if(d<20){var G=c[d],I=p[d],Q=$APP.n(A)?sG(G,I,B,E,m,l,H):[0,0];G=rG(q[d],G+Q[0],x[d],e,g,h);I=rG(v[d],I+Q[1],y[d],e,g,h);q[d]=G[0];x[d]=G[1];v[d]=I[0];y[d]=I[1];d+=1}else break;BG(a);if($APP.n($APP.n(A)?A:!uG(x,y)))$APP.ia(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return DG.g?
23
+ DG.g(a):DG.call(null,a)}));else{for(e=0;;)if(e<20)q[e]=c[e],v[e]=p[e],e+=1;else break;BG(a);a.__xSoftBodyRaf=null}}return null};$APP.fa("baredom.exports.x_soft_body.init",MG);export const init=MG;
package/dist/x-spacer.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var mJ=function(a){return a!=null&&$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},sJ=function(a){var b=new $APP.R(null,3,[$APP.il,a.getAttribute("size"),nJ,a.getAttribute("axis"),oJ,a.getAttribute("grow")],null);b=$APP.M(b);var c=$APP.D(b,$APP.il),d=$APP.D(b,nJ);b=$APP.D(b,oJ);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.J(pJ,d)?d:"vertical";b=new $APP.R(null,3,[$APP.th,c,qJ,d,rJ,mJ(b)],null);c=$APP.M(b);b=$APP.D(c,$APP.th);
3
- d=$APP.D(c,qJ);c=$APP.D(c,rJ);var e=a.style;a.setAttribute("data-axis",d);a.setAttribute("data-grow",$APP.n(c)?"true":"false");e.setProperty("--x-spacer-size",b);a.setAttribute("role","none");a.setAttribute("aria-hidden","true")},tJ=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},uJ=function(a){Object.defineProperty(a,
4
- "grow",{get:function(){return mJ(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},vJ=function(a){tJ(a,"size","1rem");tJ(a,"axis","vertical");uJ(a)},xJ=function(){var a=class extends HTMLElement{};a.observedAttributes=wJ;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
- b.appendChild(c);this.__xSpacerRefs={root:b}}sJ(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.k(this,"__xSpacerRefs"):b)&&sJ(this);return null};vJ(a.prototype);return a},yJ=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",xJ());return null},qJ=new $APP.K(null,"axis","axis",-1215390822),rJ=new $APP.K(null,"grow?","grow?",2124334580),oJ=new $APP.K(null,"grow-raw",
6
- "grow-raw",441172903),nJ=new $APP.K(null,"axis-raw","axis-raw",291213231);var wJ=["size","axis","grow"],pJ=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null);$APP.fa("baredom.exports.x_spacer.init",yJ);export const init=yJ;
2
+ var YJ=function(a){return a!=null&&$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},dK=function(a){var b=new $APP.R(null,3,[$APP.ol,a.getAttribute("size"),ZJ,a.getAttribute("axis"),$J,a.getAttribute("grow")],null);b=$APP.M(b);var c=$APP.D(b,$APP.ol),d=$APP.D(b,ZJ);b=$APP.D(b,$J);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.J(aK,d)?d:"vertical";b=new $APP.R(null,3,[$APP.th,c,bK,d,cK,YJ(b)],null);c=$APP.M(b);b=$APP.D(c,$APP.th);
3
+ d=$APP.D(c,bK);c=$APP.D(c,cK);var e=a.style;a.setAttribute("data-axis",d);a.setAttribute("data-grow",$APP.n(c)?"true":"false");e.setProperty("--x-spacer-size",b);a.setAttribute("role","none");a.setAttribute("aria-hidden","true")},eK=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},fK=function(a){Object.defineProperty(a,
4
+ "grow",{get:function(){return YJ(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},gK=function(a){eK(a,"size","1rem");eK(a,"axis","vertical");fK(a)},iK=function(){var a=class extends HTMLElement{};a.observedAttributes=hK;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
+ b.appendChild(c);this.__xSpacerRefs={root:b}}dK(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.k(this,"__xSpacerRefs"):b)&&dK(this);return null};gK(a.prototype);return a},jK=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",iK());return null},bK=new $APP.K(null,"axis","axis",-1215390822),cK=new $APP.K(null,"grow?","grow?",2124334580),$J=new $APP.K(null,"grow-raw",
6
+ "grow-raw",441172903),ZJ=new $APP.K(null,"axis-raw","axis-raw",291213231);var hK=["size","axis","grow"],aK=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null);$APP.fa("baredom.exports.x_spacer.init",jK);export const init=jK;
package/dist/x-spinner.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var CZ=function(a){var b=new $APP.R(null,3,[$APP.th,a.getAttribute("size"),$APP.Nh,a.getAttribute("variant"),$APP.U,a.getAttribute("label")],null);var c=$APP.M(b),d=$APP.D(c,$APP.th);b=$APP.D(c,$APP.Nh);c=$APP.D(c,$APP.U);d=typeof d==="string"&&$APP.J(AZ,d)?d:"md";b=typeof b==="string"&&$APP.J(BZ,b)?b:"default";c=typeof c==="string"&&$APP.N("",c.trim())?c.trim():"Loading";d=$APP.M(new $APP.R(null,3,[$APP.th,d,$APP.Nh,b,$APP.U,c],null));b=$APP.D(d,$APP.th);c=$APP.D(d,$APP.Nh);d=$APP.D(d,$APP.U);a.setAttribute("data-size",
3
- b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},DZ=function(a){Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.T.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",""+
4
- $APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Loading"},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},FZ=function(){var a=class extends HTMLElement{};a.observedAttributes=EZ;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSpinnerInit"))){var b=this.attachShadow({mode:"open"}),
2
+ var A_=function(a){var b=new $APP.R(null,3,[$APP.th,a.getAttribute("size"),$APP.Oh,a.getAttribute("variant"),$APP.U,a.getAttribute("label")],null);var c=$APP.M(b),d=$APP.D(c,$APP.th);b=$APP.D(c,$APP.Oh);c=$APP.D(c,$APP.U);d=typeof d==="string"&&$APP.J(y_,d)?d:"md";b=typeof b==="string"&&$APP.J(z_,b)?b:"default";c=typeof c==="string"&&$APP.N("",c.trim())?c.trim():"Loading";d=$APP.M(new $APP.R(null,3,[$APP.th,d,$APP.Oh,b,$APP.U,c],null));b=$APP.D(d,$APP.th);c=$APP.D(d,$APP.Oh);d=$APP.D(d,$APP.U);a.setAttribute("data-size",
3
+ b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},B_=function(a){Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.T.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",""+
4
+ $APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Loading"},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},D_=function(){var a=class extends HTMLElement{};a.observedAttributes=C_;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSpinnerInit"))){var b=this.attachShadow({mode:"open"}),
5
5
  c=document.createElement("style"),d=document.createElement("span");c.textContent=":host{display:inline-flex;align-items:center;justify-content:center;color-scheme:light dark;--x-spinner-size:24px;--x-spinner-color:currentColor;--x-spinner-track-color:rgba(0,0,0,0.12);--x-spinner-thickness:2px;--x-spinner-duration:0.75s;}@media (prefers-color-scheme:dark){:host{--x-spinner-track-color:rgba(255,255,255,0.15);}}:host([data-size\x3d'xs']){--x-spinner-size:16px;}:host([data-size\x3d'sm']){--x-spinner-size:20px;}:host([data-size\x3d'md']){--x-spinner-size:24px;}:host([data-size\x3d'lg']){--x-spinner-size:32px;}:host([data-size\x3d'xl']){--x-spinner-size:48px;}:host([data-variant\x3d'primary']){--x-spinner-color:var(--x-color-primary,#3b82f6);}:host([data-variant\x3d'success']){--x-spinner-color:var(--x-color-success,#22c55e);}:host([data-variant\x3d'warning']){--x-spinner-color:var(--x-color-warning,#f59e0b);}:host([data-variant\x3d'danger']){--x-spinner-color:var(--x-color-danger,#ef4444);}[part\x3dring]{display:block;width:var(--x-spinner-size);height:var(--x-spinner-size);border-radius:50%;border:var(--x-spinner-thickness) solid var(--x-spinner-track-color);border-top-color:var(--x-spinner-color);box-sizing:border-box;animation:x-spinner-spin var(--x-spinner-duration) linear infinite;}@keyframes x-spinner-spin{to{transform:rotate(360deg);}}@media (prefers-reduced-motion:reduce){[part\x3dring]{animation-play-state:paused;}}";
6
- d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);this.setAttribute("role","status");this.setAttribute("aria-live","polite");this.__xSpinnerRing=d;this.__xSpinnerInit=!0}CZ(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.k(this,"__xSpinnerInit"):b)&&CZ(this);return null};DZ(a.prototype);return a},GZ=function(){$APP.n(customElements.get("x-spinner"))||
7
- customElements.define("x-spinner",FZ());return null};var EZ=["size","variant","label"],AZ=new $APP.S(null,new $APP.R(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),BZ=new $APP.S(null,new $APP.R(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null);$APP.fa("baredom.exports.x_spinner.init",GZ);export const init=GZ;
6
+ d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);this.setAttribute("role","status");this.setAttribute("aria-live","polite");this.__xSpinnerRing=d;this.__xSpinnerInit=!0}A_(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.k(this,"__xSpinnerInit"):b)&&A_(this);return null};B_(a.prototype);return a},E_=function(){$APP.n(customElements.get("x-spinner"))||
7
+ customElements.define("x-spinner",D_());return null};var C_=["size","variant","label"],y_=new $APP.S(null,new $APP.R(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),z_=new $APP.S(null,new $APP.R(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null);$APP.fa("baredom.exports.x_spinner.init",E_);export const init=E_;
package/dist/x-splash.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var lL=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?null:$APP.$g.i(0,$APP.ah.i(100,a))):null},mL=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},rL=function(a){var b=$APP.k(a,"__xSplashRefs");if($APP.n(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("span"),l=document.createElement("div"),
2
+ var qM=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?null:$APP.$g.i(0,$APP.ah.i(100,a))):null},rM=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},wM=function(a){var b=$APP.k(a,"__xSplashRefs");if($APP.n(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("span"),l=document.createElement("div"),
3
3
  m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-splash-bg:var(--x-color-bg, #ffffff);--x-splash-color:var(--x-color-text, #0f172a);--x-splash-z-index:9999;--x-splash-fade-duration:var(--x-transition-duration, 400ms);--x-splash-fade-ease:cubic-bezier(0.4,0,0.2,1);--x-splash-spinner-size:40px;--x-splash-spinner-color:var(--x-color-text, currentColor);--x-splash-spinner-track-color:var(--x-color-border, rgba(0,0,0,0.12));--x-splash-spinner-thickness:3px;--x-splash-spinner-duration:0.75s;--x-splash-progress-height:4px;--x-splash-progress-color:var(--x-color-primary, #3b82f6);--x-splash-progress-track-color:var(--x-color-border, rgba(0,0,0,0.08));--x-splash-progress-radius:var(--x-radius-sm, 2px);--x-splash-gap:20px;--x-splash-blur-amount:8px;}@media (prefers-color-scheme:dark){:host{--x-splash-bg:var(--x-color-bg, #0f172a);--x-splash-color:var(--x-color-text, #f8fafc);--x-splash-spinner-track-color:var(--x-color-border, rgba(255,255,255,0.15));--x-splash-progress-track-color:var(--x-color-border, rgba(255,255,255,0.12));}}[part\x3doverlay]{position:fixed;inset:0;z-index:var(--x-splash-z-index);display:none;align-items:center;justify-content:center;background:var(--x-splash-bg);color:var(--x-splash-color);opacity:0;transition:opacity var(--x-splash-fade-duration) var(--x-splash-fade-ease);}:host([active]) [part\x3doverlay]{display:flex;opacity:1;}:host([data-fading-out]) [part\x3doverlay]{display:flex;opacity:0;}:host([data-variant\x3d'minimal']) [part\x3doverlay]{background:transparent;}:host([data-variant\x3d'branded']) [part\x3doverlay]{background:var(--x-splash-branded-bg,var(--x-splash-bg));}:host([data-overlay\x3d'blur']) [part\x3doverlay]{background:rgba(255,255,255,0.7);backdrop-filter:blur(var(--x-splash-blur-amount));-webkit-backdrop-filter:blur(var(--x-splash-blur-amount));}@media (prefers-color-scheme:dark){:host([data-overlay\x3d'blur']) [part\x3doverlay]{background:rgba(15,23,42,0.7);}}:host([data-overlay\x3d'transparent']) [part\x3doverlay]{background:transparent;}[part\x3dcontent]{display:flex;flex-direction:column;align-items:center;gap:var(--x-splash-gap);max-width:80vw;text-align:center;}[part\x3dspinner]{display:block;width:var(--x-splash-spinner-size);height:var(--x-splash-spinner-size);border:var(--x-splash-spinner-thickness) solid var(--x-splash-spinner-track-color);border-top-color:var(--x-splash-spinner-color);border-radius:50%;animation:x-splash-spin var(--x-splash-spinner-duration) linear infinite;box-sizing:border-box;}@keyframes x-splash-spin{to{transform:rotate(360deg);}}[part\x3dprogress]{display:none;width:min(300px,60vw);height:var(--x-splash-progress-height);background:var(--x-splash-progress-track-color);border-radius:var(--x-splash-progress-radius);overflow:hidden;}[part\x3dbar]{height:100%;background:var(--x-splash-progress-color);border-radius:var(--x-splash-progress-radius);transition:width 200ms ease;width:0%;}@media (prefers-reduced-motion:reduce){[part\x3doverlay]{transition:none !important;}[part\x3dspinner]{animation:none !important;}[part\x3dbar]{transition:none !important;}}";
4
- d.setAttribute("part","overlay");e.setAttribute("part","content");h.setAttribute("part","spinner");h.setAttribute("aria-hidden","true");l.setAttribute("part","progress");l.setAttribute("role","progressbar");l.setAttribute("aria-valuemin","0");l.setAttribute("aria-valuemax","100");m.setAttribute("part","bar");l.appendChild(m);e.appendChild(g);e.appendChild(h);e.appendChild(l);d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xSplashRefs=new $APP.R(null,6,[$APP.ji,b,nL,d,oL,e,pL,h,$APP.Ki,l,qL,
5
- m],null);return $APP.k(a,"__xSplashRefs")},sL=function(a){a=typeof a==="string"?a.trim():"";return $APP.C.i(a,"")||$APP.C.i(a,"0")||$APP.C.i(a,"0ms")||$APP.C.i(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},tL=function(a){a=window.getComputedStyle(a);a=sL(a.getPropertyValue("--x-splash-fade-duration"));return a>0?a:
6
- 400},uL=function(a){var b=$APP.k(a,"__xSplashFadeTimer");$APP.n(b)&&(clearTimeout(b),a.__xSplashFadeTimer=null)},vL=function(a){uL(a);a.__xSplashFadingOut=!1;a.removeAttribute("data-fading-out");var b=rL(a);b=$APP.M(b);$APP.D(b,nL).style.display="none";a.removeAttribute("aria-busy");b=new CustomEvent("x-splash-hidden",{detail:{},bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b);return null},wL=function(a){if(!$APP.n($APP.k(a,"__xSplashFadingOut")))if(a.__xSplashFadingOut=!0,$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches))vL(a);
7
- else{var b=rL(a);b=$APP.M(b);var c=$APP.D(b,nL),d=function h(g){return $APP.C.i(g.target,c)&&$APP.C.i(g.propertyName,"opacity")?(c.removeEventListener("transitionend",h),$APP.n($APP.k(a,"__xSplashFadingOut"))?vL(a):null):null};c.style.display="flex";c.style.opacity="1";a.setAttribute("data-fading-out","");c.addEventListener("transitionend",d);requestAnimationFrame(function(){return requestAnimationFrame(function(){return $APP.n($APP.k(a,"__xSplashFadingOut"))?c.style.opacity="0":null})});$APP.ia(a,
8
- "__xSplashFadeTimer",setTimeout(function(){return $APP.n($APP.k(a,"__xSplashFadingOut"))?(c.removeEventListener("transitionend",d),vL(a)):null},tL(a)+60))}},FL=function(a){var b=new $APP.R(null,5,[xL,a.hasAttribute("active"),$APP.Jk,a.getAttribute("variant"),$APP.Ej,a.getAttribute("progress"),yL,a.getAttribute("spinner"),zL,a.getAttribute("overlay")],null);var c=$APP.M(b);b=$APP.D(c,xL);var d=$APP.D(c,$APP.Jk),e=$APP.D(c,$APP.Ej),g=$APP.D(c,yL);c=$APP.D(c,zL);b=$APP.F(b);d=typeof d==="string"?d.trim().toLowerCase():
9
- null;d=$APP.J(AL,d)?d:"default";e=lL(e);g=mL(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.J(BL,c)?c:"solid";b=new $APP.R(null,5,[CL,b,$APP.Nh,d,$APP.ol,e,DL,g,EL,c],null);if($APP.N($APP.k(a,"__xSplashModel"),b)){b=$APP.M(b);c=$APP.D(b,CL);e=$APP.D(b,$APP.Nh);d=$APP.D(b,$APP.ol);var h=$APP.D(b,DL),l=$APP.D(b,EL);g=rL(a);var m=$APP.M(g);g=$APP.D(m,nL);var p=$APP.D(m,pL),q=$APP.D(m,$APP.Ki),v=$APP.D(m,qL);m=$APP.k(a,"__xSplashModel");var x=CL.g(m);a.setAttribute("data-variant",e);a.setAttribute("data-overlay",
10
- l);p.style.display=$APP.n(h)?"block":"none";d!=null?(q.style.display="block",v.style.width=""+$APP.T.g(d)+"%",q.setAttribute("aria-valuenow",""+$APP.T.g(d))):(q.style.display="none",q.removeAttribute("aria-valuenow"));$APP.n($APP.n(c)?$APP.r(x):c)?($APP.n($APP.k(a,"__xSplashFadingOut"))&&(uL(a),a.__xSplashFadingOut=!1,a.removeAttribute("data-fading-out"),c=rL(a),c=$APP.M(c),c=$APP.D(c,nL),c.style.display="",c.style.opacity=""),a.setAttribute("aria-busy","true"),a.setAttribute("aria-live","polite"),
11
- a.setAttribute("role","status"),g.style.display="",g.style.opacity=""):(e=$APP.r(c),$APP.n(e?x:e)?wL(a):$APP.r(c)&&m==null&&(g.style.display="none",a.removeAttribute("aria-busy")));$APP.n(a.hasAttribute("aria-label"))||a.setAttribute("aria-label","Loading");a.__xSplashModel=b}},GL=function(a){Object.defineProperty(a,"active",{get:function(){return this.hasAttribute("active")},set:function(b){return $APP.n(b)?this.setAttribute("active",""):this.removeAttribute("active")},enumerable:!0,configurable:!0});
12
- Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",""+$APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){return lL(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
13
- "spinner",{get:function(){return mL(this.getAttribute("spinner"))},set:function(b){return $APP.n(b)?this.setAttribute("spinner",""):this.setAttribute("spinner","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"overlay",{get:function(){var b=this.getAttribute("overlay");return $APP.n(b)?b:"solid"},set:function(b){return $APP.n(b)?this.setAttribute("overlay",""+$APP.T.g(b)):this.removeAttribute("overlay")},enumerable:!0,configurable:!0})},IL=function(){var a=class extends HTMLElement{};
14
- a.observedAttributes=HL;a.prototype.connectedCallback=function(){rL(this);uL(this);FL(this);return null};a.prototype.disconnectedCallback=function(){uL(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&FL(this);return null};GL(a.prototype);return a},JL=function(){$APP.n(customElements.get("x-splash"))||customElements.define("x-splash",IL());return null},nL=new $APP.K(null,"overlay-el","overlay-el",-308547109),oL=new $APP.K(null,"content-el","content-el",-1423019925),
15
- pL=new $APP.K(null,"spinner-el","spinner-el",-1536400516),qL=new $APP.K(null,"bar-el","bar-el",2050414242),DL=new $APP.K(null,"spinner?","spinner?",939139177),CL=new $APP.K(null,"active?","active?",459499776),xL=new $APP.K(null,"active-present?","active-present?",73064660),yL=new $APP.K(null,"spinner-attr","spinner-attr",-479327548),zL=new $APP.K(null,"overlay-raw","overlay-raw",1018775670),EL=new $APP.K(null,"overlay","overlay",-139131598);var HL=["active","variant","progress","spinner","overlay"];$APP.Pd(["x-splash-hidden",new $APP.R(null,2,[$APP.yj,$APP.Qd,$APP.wl,!1],null)]);var AL=new $APP.S(null,new $APP.R(null,3,["minimal",null,"branded",null,"default",null],null),null),BL=new $APP.S(null,new $APP.R(null,3,["transparent",null,"solid",null,"blur",null],null),null);$APP.fa("baredom.exports.x_splash.init",JL);export const init=JL;
4
+ d.setAttribute("part","overlay");e.setAttribute("part","content");h.setAttribute("part","spinner");h.setAttribute("aria-hidden","true");l.setAttribute("part","progress");l.setAttribute("role","progressbar");l.setAttribute("aria-valuemin","0");l.setAttribute("aria-valuemax","100");m.setAttribute("part","bar");l.appendChild(m);e.appendChild(g);e.appendChild(h);e.appendChild(l);d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xSplashRefs=new $APP.R(null,6,[$APP.li,b,sM,d,tM,e,uM,h,$APP.Mi,l,vM,
5
+ m],null);return $APP.k(a,"__xSplashRefs")},xM=function(a){a=typeof a==="string"?a.trim():"";return $APP.C.i(a,"")||$APP.C.i(a,"0")||$APP.C.i(a,"0ms")||$APP.C.i(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},yM=function(a){a=window.getComputedStyle(a);a=xM(a.getPropertyValue("--x-splash-fade-duration"));return a>0?a:
6
+ 400},zM=function(a){var b=$APP.k(a,"__xSplashFadeTimer");$APP.n(b)&&(clearTimeout(b),a.__xSplashFadeTimer=null)},AM=function(a){zM(a);a.__xSplashFadingOut=!1;a.removeAttribute("data-fading-out");var b=wM(a);b=$APP.M(b);$APP.D(b,sM).style.display="none";a.removeAttribute("aria-busy");b=new CustomEvent("x-splash-hidden",{detail:{},bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b);return null},BM=function(a){if(!$APP.n($APP.k(a,"__xSplashFadingOut")))if(a.__xSplashFadingOut=!0,$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches))AM(a);
7
+ else{var b=wM(a);b=$APP.M(b);var c=$APP.D(b,sM),d=function h(g){return $APP.C.i(g.target,c)&&$APP.C.i(g.propertyName,"opacity")?(c.removeEventListener("transitionend",h),$APP.n($APP.k(a,"__xSplashFadingOut"))?AM(a):null):null};c.style.display="flex";c.style.opacity="1";a.setAttribute("data-fading-out","");c.addEventListener("transitionend",d);requestAnimationFrame(function(){return requestAnimationFrame(function(){return $APP.n($APP.k(a,"__xSplashFadingOut"))?c.style.opacity="0":null})});$APP.ia(a,
8
+ "__xSplashFadeTimer",setTimeout(function(){return $APP.n($APP.k(a,"__xSplashFadingOut"))?(c.removeEventListener("transitionend",d),AM(a)):null},yM(a)+60))}},KM=function(a){var b=new $APP.R(null,5,[CM,a.hasAttribute("active"),$APP.Pk,a.getAttribute("variant"),$APP.Ij,a.getAttribute("progress"),DM,a.getAttribute("spinner"),EM,a.getAttribute("overlay")],null);var c=$APP.M(b);b=$APP.D(c,CM);var d=$APP.D(c,$APP.Pk),e=$APP.D(c,$APP.Ij),g=$APP.D(c,DM);c=$APP.D(c,EM);b=$APP.F(b);d=typeof d==="string"?d.trim().toLowerCase():
9
+ null;d=$APP.J(FM,d)?d:"default";e=qM(e);g=rM(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.J(GM,c)?c:"solid";b=new $APP.R(null,5,[HM,b,$APP.Oh,d,$APP.ul,e,IM,g,JM,c],null);if($APP.N($APP.k(a,"__xSplashModel"),b)){b=$APP.M(b);c=$APP.D(b,HM);e=$APP.D(b,$APP.Oh);d=$APP.D(b,$APP.ul);var h=$APP.D(b,IM),l=$APP.D(b,JM);g=wM(a);var m=$APP.M(g);g=$APP.D(m,sM);var p=$APP.D(m,uM),q=$APP.D(m,$APP.Mi),v=$APP.D(m,vM);m=$APP.k(a,"__xSplashModel");var x=HM.g(m);a.setAttribute("data-variant",e);a.setAttribute("data-overlay",
10
+ l);p.style.display=$APP.n(h)?"block":"none";d!=null?(q.style.display="block",v.style.width=""+$APP.T.g(d)+"%",q.setAttribute("aria-valuenow",""+$APP.T.g(d))):(q.style.display="none",q.removeAttribute("aria-valuenow"));$APP.n($APP.n(c)?$APP.r(x):c)?($APP.n($APP.k(a,"__xSplashFadingOut"))&&(zM(a),a.__xSplashFadingOut=!1,a.removeAttribute("data-fading-out"),c=wM(a),c=$APP.M(c),c=$APP.D(c,sM),c.style.display="",c.style.opacity=""),a.setAttribute("aria-busy","true"),a.setAttribute("aria-live","polite"),
11
+ a.setAttribute("role","status"),g.style.display="",g.style.opacity=""):(e=$APP.r(c),$APP.n(e?x:e)?BM(a):$APP.r(c)&&m==null&&(g.style.display="none",a.removeAttribute("aria-busy")));$APP.n(a.hasAttribute("aria-label"))||a.setAttribute("aria-label","Loading");a.__xSplashModel=b}},LM=function(a){Object.defineProperty(a,"active",{get:function(){return this.hasAttribute("active")},set:function(b){return $APP.n(b)?this.setAttribute("active",""):this.removeAttribute("active")},enumerable:!0,configurable:!0});
12
+ Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",""+$APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){return qM(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
13
+ "spinner",{get:function(){return rM(this.getAttribute("spinner"))},set:function(b){return $APP.n(b)?this.setAttribute("spinner",""):this.setAttribute("spinner","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"overlay",{get:function(){var b=this.getAttribute("overlay");return $APP.n(b)?b:"solid"},set:function(b){return $APP.n(b)?this.setAttribute("overlay",""+$APP.T.g(b)):this.removeAttribute("overlay")},enumerable:!0,configurable:!0})},NM=function(){var a=class extends HTMLElement{};
14
+ a.observedAttributes=MM;a.prototype.connectedCallback=function(){wM(this);zM(this);KM(this);return null};a.prototype.disconnectedCallback=function(){zM(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&KM(this);return null};LM(a.prototype);return a},OM=function(){$APP.n(customElements.get("x-splash"))||customElements.define("x-splash",NM());return null},sM=new $APP.K(null,"overlay-el","overlay-el",-308547109),tM=new $APP.K(null,"content-el","content-el",-1423019925),
15
+ uM=new $APP.K(null,"spinner-el","spinner-el",-1536400516),vM=new $APP.K(null,"bar-el","bar-el",2050414242),IM=new $APP.K(null,"spinner?","spinner?",939139177),HM=new $APP.K(null,"active?","active?",459499776),CM=new $APP.K(null,"active-present?","active-present?",73064660),DM=new $APP.K(null,"spinner-attr","spinner-attr",-479327548),EM=new $APP.K(null,"overlay-raw","overlay-raw",1018775670),JM=new $APP.K(null,"overlay","overlay",-139131598);var MM=["active","variant","progress","spinner","overlay"];$APP.Pd(["x-splash-hidden",new $APP.R(null,2,[$APP.Cj,$APP.Qd,$APP.Dl,!1],null)]);var FM=new $APP.S(null,new $APP.R(null,3,["minimal",null,"branded",null,"default",null],null),null),GM=new $APP.S(null,new $APP.R(null,3,["transparent",null,"solid",null,"blur",null],null),null);$APP.fa("baredom.exports.x_splash.init",OM);export const init=OM;
package/dist/x-stat.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var LM=function(a,b,c){return $APP.J(b,a)?a:c},MM=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},VM=function(a){var b=$APP.M(a),c=$APP.D(b,NM),d=$APP.D(b,OM),e=$APP.D(b,$APP.Wi),g=$APP.D(b,$APP.Nh);a=$APP.D(b,$APP.zi);var h=$APP.D(b,$APP.kl),l=$APP.D(b,$APP.th),m=$APP.D(b,$APP.Mk);b=$APP.D(b,$APP.U);g=LM(g,PM,"default");e=LM(e,QM,"start");l=LM(l,RM,"md");c=LM(c,SM,"normal");d=LM(d,TM,"neutral");m=$APP.F(m);return $APP.xf([OM,$APP.Wi,$APP.Nh,$APP.zi,$APP.kl,$APP.th,$APP.Mk,$APP.U,UM,NM],
3
- [d,e,g,MM(a),MM(h),l,m,MM(b),m?"true":null,c])},WM=function(a){return $APP.xf([OM,$APP.Wi,$APP.Nh,$APP.zi,$APP.kl,$APP.th,$APP.Mk,$APP.U,NM],[a.getAttribute("trend"),a.getAttribute("align"),a.getAttribute("variant"),a.getAttribute("value"),a.getAttribute("hint"),a.getAttribute("size"),a.hasAttribute("loading"),a.getAttribute("label"),a.getAttribute("emphasis")])},XM=function(a,b){a.setAttribute("role","figure");var c=UM.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");b=
4
- $APP.U.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},YM=function(a,b){a.setAttribute("data-variant",$APP.Nh.g(b));a.setAttribute("data-align",$APP.Wi.g(b));a.setAttribute("data-size",$APP.th.g(b));a.setAttribute("data-emphasis",NM.g(b));a.setAttribute("data-trend",OM.g(b));$APP.n($APP.Mk.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},ZM=function(a){var b=VM(WM(a)),c=$APP.k(a,"__x_stat_base"),d=$APP.k(a,"__x_stat_label"),e=$APP.k(a,"__x_stat_value"),
5
- g=$APP.k(a,"__x_stat_hint");return $APP.n(c)?(XM(a,b),YM(c,b),d.textContent=function(){var h=$APP.U.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.zi.g(b);return $APP.n(h)?h:""}(),g.textContent=function(){var h=$APP.kl.g(b);return $APP.n(h)?h:""}()):null},$M=function(a){if(!$APP.Bg(a,"__x_stat_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),
2
+ var PN=function(a,b,c){return $APP.J(b,a)?a:c},QN=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},ZN=function(a){var b=$APP.M(a),c=$APP.D(b,RN),d=$APP.D(b,SN),e=$APP.D(b,$APP.Yi),g=$APP.D(b,$APP.Oh);a=$APP.D(b,$APP.Bi);var h=$APP.D(b,$APP.ql),l=$APP.D(b,$APP.th),m=$APP.D(b,$APP.Sk);b=$APP.D(b,$APP.U);g=PN(g,TN,"default");e=PN(e,UN,"start");l=PN(l,VN,"md");c=PN(c,WN,"normal");d=PN(d,XN,"neutral");m=$APP.F(m);return $APP.xf([SN,$APP.Yi,$APP.Oh,$APP.Bi,$APP.ql,$APP.th,$APP.Sk,$APP.U,YN,RN],
3
+ [d,e,g,QN(a),QN(h),l,m,QN(b),m?"true":null,c])},$N=function(a){return $APP.xf([SN,$APP.Yi,$APP.Oh,$APP.Bi,$APP.ql,$APP.th,$APP.Sk,$APP.U,RN],[a.getAttribute("trend"),a.getAttribute("align"),a.getAttribute("variant"),a.getAttribute("value"),a.getAttribute("hint"),a.getAttribute("size"),a.hasAttribute("loading"),a.getAttribute("label"),a.getAttribute("emphasis")])},aO=function(a,b){a.setAttribute("role","figure");var c=YN.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");b=
4
+ $APP.U.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},bO=function(a,b){a.setAttribute("data-variant",$APP.Oh.g(b));a.setAttribute("data-align",$APP.Yi.g(b));a.setAttribute("data-size",$APP.th.g(b));a.setAttribute("data-emphasis",RN.g(b));a.setAttribute("data-trend",SN.g(b));$APP.n($APP.Sk.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},cO=function(a){var b=ZN($N(a)),c=$APP.k(a,"__x_stat_base"),d=$APP.k(a,"__x_stat_label"),e=$APP.k(a,"__x_stat_value"),
5
+ g=$APP.k(a,"__x_stat_hint");return $APP.n(c)?(aO(a,b),bO(c,b),d.textContent=function(){var h=$APP.U.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.Bi.g(b);return $APP.n(h)?h:""}(),g.textContent=function(){var h=$APP.ql.g(b);return $APP.n(h)?h:""}()):null},dO=function(a){if(!$APP.Bg(a,"__x_stat_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),
6
6
  l=document.createElement("div"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span"),v=document.createElement("span"),x=document.createElement("slot"),y=document.createElement("slot"),A=document.createElement("slot"),B=document.createElement("slot"),E=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-stat-background:transparent;--x-stat-color:var(--x-color-text,inherit);--x-stat-muted-color:var(--x-color-text-muted,rgba(0,0,0,0.55));--x-stat-border-color:var(--x-color-border,transparent);--x-stat-radius:var(--x-radius-md,12px);--x-stat-padding:16px;--x-stat-gap:6px;--x-stat-label-color:var(--x-stat-muted-color);--x-stat-label-size:12px;--x-stat-value-color:var(--x-stat-color);--x-stat-value-size:20px;--x-stat-hint-color:var(--x-stat-muted-color);--x-stat-hint-size:12px;--x-stat-icon-color:var(--x-stat-color);--x-stat-positive-color:var(--x-color-success,#16a34a);--x-stat-warning-color:var(--x-color-warning,#d97706);--x-stat-danger-color:var(--x-color-danger,#dc2626);--x-stat-transition-duration:var(--x-transition-duration,120ms);--x-stat-transition-timing:var(--x-transition-easing,ease);--x-stat-loading-opacity:0.6;}@media (prefers-color-scheme:dark){:host{--x-stat-muted-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-stat-positive-color:var(--x-color-success,#4ade80);--x-stat-warning-color:var(--x-color-warning,#fbbf24);--x-stat-danger-color:var(--x-color-danger,#f87171);}}:host([variant\x3d'positive']){--x-stat-value-color:var(--x-stat-positive-color);}:host([variant\x3d'warning']){--x-stat-value-color:var(--x-stat-warning-color);}:host([variant\x3d'danger']){--x-stat-value-color:var(--x-stat-danger-color);}:host([variant\x3d'subtle']){--x-stat-value-color:var(--x-stat-muted-color);}[part\x3dbase]{display:grid;gap:var(--x-stat-gap);padding:var(--x-stat-padding);border-radius:var(--x-stat-radius);background:var(--x-stat-background);border:1px solid var(--x-stat-border-color);color:var(--x-stat-color);transition:background var(--x-stat-transition-duration) var(--x-stat-transition-timing),border-color var(--x-stat-transition-duration) var(--x-stat-transition-timing),color var(--x-stat-transition-duration) var(--x-stat-transition-timing),opacity var(--x-stat-transition-duration) var(--x-stat-transition-timing);}[part\x3dbase][data-align\x3d'center']{text-align:center;}[part\x3dbase][data-align\x3d'end']{text-align:end;}[part\x3dbase][data-size\x3d'sm'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 0.8);}[part\x3dbase][data-size\x3d'lg'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 1.6);}[part\x3dbase][data-emphasis\x3d'high'] [part\x3dvalue]{font-weight:800;}[part\x3dicon]{flex:0 0 auto;color:var(--x-stat-icon-color);line-height:1;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dlabel]{font-size:var(--x-stat-label-size);color:var(--x-stat-label-color);}[part\x3dvalue]{font-weight:600;font-size:var(--x-stat-value-size);color:var(--x-stat-value-color);}[part\x3dhint]{font-size:var(--x-stat-hint-size);color:var(--x-stat-hint-color);}[part\x3dbase][data-loading\x3d'true']{opacity:var(--x-stat-loading-opacity);}@media (prefers-reduced-motion:reduce){[part\x3dbase]{transition:none;}}";
7
7
  d.setAttribute("part","base");e.setAttribute("part","icon");g.setAttribute("part","body");h.setAttribute("part","label");l.setAttribute("part","value");m.setAttribute("part","hint");x.setAttribute("name","icon");y.setAttribute("name","label");A.setAttribute("name","value");B.setAttribute("name","hint");e.appendChild(x);h.appendChild(y);h.appendChild(p);l.appendChild(A);l.appendChild(q);m.appendChild(B);m.appendChild(v);g.appendChild(h);g.appendChild(l);g.appendChild(m);g.appendChild(E);d.appendChild(e);
8
- d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__x_stat_root=b;a.__x_stat_base=d;a.__x_stat_label=p;a.__x_stat_value=q;a.__x_stat_hint=v;a.__x_stat_initialized=!0}ZM(a);return a},aN=function(a,b){Object.defineProperty(a,b,{get:function(){var c=this.getAttribute(b);return $APP.n(c)?c:""},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},bN=function(a){aN(a,"variant");aN(a,"align");aN(a,"size");aN(a,"emphasis");aN(a,
9
- "trend");aN(a,"label");aN(a,"value");aN(a,"hint");Object.defineProperty(a,"loading",{get:function(){return this.hasAttribute("loading")},set:function(b){return $APP.n(b)?this.setAttribute("loading",""):this.removeAttribute("loading")},enumerable:!0,configurable:!0})},dN=function(){var a=class extends HTMLElement{};a.observedAttributes=cN;a.prototype.connectedCallback=function(){return $M(this)};a.prototype.attributeChangedCallback=function(){return $APP.Bg(this,"__x_stat_initialized")?ZM(this):$M(this)};
10
- bN(a.prototype);return a},eN=function(){return $APP.n(customElements.get("x-stat"))?null:customElements.define("x-stat",dN())},NM=new $APP.K(null,"emphasis","emphasis",293543451),UM=new $APP.K(null,"aria-busy","aria-busy",793864247),OM=new $APP.K(null,"trend","trend",54563841);var cN="variant align size emphasis trend loading label value hint".split(" "),PM=new $APP.S(null,new $APP.R(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),QM=new $APP.S(null,new $APP.R(null,3,["center",null,"start",null,"end",null],null),null),RM=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),SM=new $APP.S(null,new $APP.R(null,2,["high",null,"normal",null],null),null),TM=new $APP.S(null,new $APP.R(null,3,["neutral",null,
8
+ d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__x_stat_root=b;a.__x_stat_base=d;a.__x_stat_label=p;a.__x_stat_value=q;a.__x_stat_hint=v;a.__x_stat_initialized=!0}cO(a);return a},eO=function(a,b){Object.defineProperty(a,b,{get:function(){var c=this.getAttribute(b);return $APP.n(c)?c:""},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},fO=function(a){eO(a,"variant");eO(a,"align");eO(a,"size");eO(a,"emphasis");eO(a,
9
+ "trend");eO(a,"label");eO(a,"value");eO(a,"hint");Object.defineProperty(a,"loading",{get:function(){return this.hasAttribute("loading")},set:function(b){return $APP.n(b)?this.setAttribute("loading",""):this.removeAttribute("loading")},enumerable:!0,configurable:!0})},hO=function(){var a=class extends HTMLElement{};a.observedAttributes=gO;a.prototype.connectedCallback=function(){return dO(this)};a.prototype.attributeChangedCallback=function(){return $APP.Bg(this,"__x_stat_initialized")?cO(this):dO(this)};
10
+ fO(a.prototype);return a},iO=function(){return $APP.n(customElements.get("x-stat"))?null:customElements.define("x-stat",hO())},RN=new $APP.K(null,"emphasis","emphasis",293543451),YN=new $APP.K(null,"aria-busy","aria-busy",793864247),SN=new $APP.K(null,"trend","trend",54563841);var gO="variant align size emphasis trend loading label value hint".split(" "),TN=new $APP.S(null,new $APP.R(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),UN=new $APP.S(null,new $APP.R(null,3,["center",null,"start",null,"end",null],null),null),VN=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),WN=new $APP.S(null,new $APP.R(null,2,["high",null,"normal",null],null),null),XN=new $APP.S(null,new $APP.R(null,3,["neutral",null,
11
11
  "up",null,"down",null],null),null);
12
- $APP.xf([OM,$APP.Wi,$APP.Nh,$APP.zi,$APP.kl,$APP.th,$APP.Mk,$APP.U,NM],[new $APP.R(null,4,[$APP.Ck,"trend",$APP.Z,$APP.X,$APP.Sh,"neutral",$APP.Uh,!0],null),new $APP.R(null,4,[$APP.Ck,"align",$APP.Z,$APP.X,$APP.Sh,"start",$APP.Uh,!0],null),new $APP.R(null,4,[$APP.Ck,"variant",$APP.Z,$APP.X,$APP.Sh,"default",$APP.Uh,!0],null),new $APP.R(null,4,[$APP.Ck,"value",$APP.Z,$APP.X,$APP.Sh,"",$APP.Uh,!0],null),new $APP.R(null,4,[$APP.Ck,"hint",$APP.Z,$APP.X,$APP.Sh,"",$APP.Uh,!0],null),new $APP.R(null,4,[$APP.Ck,
13
- "size",$APP.Z,$APP.X,$APP.Sh,"md",$APP.Uh,!0],null),new $APP.R(null,4,[$APP.Ck,"loading",$APP.Z,$APP.Bj,$APP.Sh,!1,$APP.Uh,!0],null),new $APP.R(null,4,[$APP.Ck,"label",$APP.Z,$APP.X,$APP.Sh,"",$APP.Uh,!0],null),new $APP.R(null,4,[$APP.Ck,"emphasis",$APP.Z,$APP.X,$APP.Sh,"normal",$APP.Uh,!0],null)]);$APP.fa("baredom.exports.x_stat.init",eN);export const init=eN;
12
+ $APP.xf([SN,$APP.Yi,$APP.Oh,$APP.Bi,$APP.ql,$APP.th,$APP.Sk,$APP.U,RN],[new $APP.R(null,4,[$APP.Ik,"trend",$APP.Y,$APP.X,$APP.Uh,"neutral",$APP.Wh,!0],null),new $APP.R(null,4,[$APP.Ik,"align",$APP.Y,$APP.X,$APP.Uh,"start",$APP.Wh,!0],null),new $APP.R(null,4,[$APP.Ik,"variant",$APP.Y,$APP.X,$APP.Uh,"default",$APP.Wh,!0],null),new $APP.R(null,4,[$APP.Ik,"value",$APP.Y,$APP.X,$APP.Uh,"",$APP.Wh,!0],null),new $APP.R(null,4,[$APP.Ik,"hint",$APP.Y,$APP.X,$APP.Uh,"",$APP.Wh,!0],null),new $APP.R(null,4,[$APP.Ik,
13
+ "size",$APP.Y,$APP.X,$APP.Uh,"md",$APP.Wh,!0],null),new $APP.R(null,4,[$APP.Ik,"loading",$APP.Y,$APP.Fj,$APP.Uh,!1,$APP.Wh,!0],null),new $APP.R(null,4,[$APP.Ik,"label",$APP.Y,$APP.X,$APP.Uh,"",$APP.Wh,!0],null),new $APP.R(null,4,[$APP.Ik,"emphasis",$APP.Y,$APP.X,$APP.Uh,"normal",$APP.Wh,!0],null)]);$APP.fa("baredom.exports.x_stat.init",iO);export const init=iO;