@vanelsas/baredom 1.4.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/README.md +57 -5
  3. package/dist/base.js +212 -212
  4. package/dist/x-alert.js +16 -16
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +16 -16
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +15 -15
  12. package/dist/x-cancel-dialogue.js +16 -16
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-chart.js +46 -46
  15. package/dist/x-checkbox.js +11 -11
  16. package/dist/x-chip.js +9 -9
  17. package/dist/x-collapse.js +11 -11
  18. package/dist/x-command-palette.js +29 -29
  19. package/dist/x-container.js +6 -6
  20. package/dist/x-context-menu.js +20 -19
  21. package/dist/x-copy.js +23 -23
  22. package/dist/x-currency-field.js +21 -21
  23. package/dist/x-date-picker.js +36 -36
  24. package/dist/x-divider.js +12 -12
  25. package/dist/x-drawer.js +11 -11
  26. package/dist/x-dropdown.js +10 -10
  27. package/dist/x-fieldset.js +6 -6
  28. package/dist/x-file-download.js +7 -7
  29. package/dist/x-form-field.js +16 -16
  30. package/dist/x-form.js +9 -9
  31. package/dist/x-gaussian-blur.js +18 -18
  32. package/dist/x-grid.js +6 -6
  33. package/dist/x-kinetic-font.js +27 -27
  34. package/dist/x-kinetic-typography.js +37 -37
  35. package/dist/x-liquid-dock.js +37 -37
  36. package/dist/x-liquid-fill.js +42 -42
  37. package/dist/x-liquid-glass.js +38 -38
  38. package/dist/x-menu-item.js +10 -10
  39. package/dist/x-menu.js +11 -11
  40. package/dist/x-metaball-cursor.js +28 -28
  41. package/dist/x-modal.js +11 -11
  42. package/dist/x-morph-stack.js +39 -39
  43. package/dist/x-navbar.js +13 -13
  44. package/dist/x-neural-glow.js +31 -31
  45. package/dist/x-notification-center.js +9 -9
  46. package/dist/x-organic-divider.js +17 -17
  47. package/dist/x-organic-progress.js +38 -38
  48. package/dist/x-organic-shape.js +12 -12
  49. package/dist/x-pagination.js +16 -16
  50. package/dist/x-popover.js +14 -14
  51. package/dist/x-progress-circle.js +9 -9
  52. package/dist/x-progress.js +9 -9
  53. package/dist/x-radio.js +12 -12
  54. package/dist/x-ripple-effect.js +11 -11
  55. package/dist/x-scroll-parallax.js +17 -17
  56. package/dist/x-scroll-stack.js +18 -18
  57. package/dist/x-scroll-story.js +34 -35
  58. package/dist/x-scroll-timeline.js +46 -49
  59. package/dist/x-scroll.js +39 -39
  60. package/dist/x-search-field.js +15 -15
  61. package/dist/x-select.js +10 -10
  62. package/dist/x-sidebar.js +17 -17
  63. package/dist/x-skeleton.js +5 -5
  64. package/dist/x-slider.js +16 -16
  65. package/dist/x-soft-body.js +21 -20
  66. package/dist/x-spacer.js +5 -5
  67. package/dist/x-spinner.js +6 -6
  68. package/dist/x-splash.js +14 -14
  69. package/dist/x-stat.js +11 -11
  70. package/dist/x-stepper.js +16 -16
  71. package/dist/x-switch.js +11 -11
  72. package/dist/x-tab.js +8 -8
  73. package/dist/x-table-cell.js +21 -21
  74. package/dist/x-table-row.js +10 -10
  75. package/dist/x-table.js +13 -13
  76. package/dist/x-tabs.js +11 -11
  77. package/dist/x-text-area.js +18 -18
  78. package/dist/x-theme.js +25 -0
  79. package/dist/x-timeline-item.js +21 -21
  80. package/dist/x-timeline.js +9 -9
  81. package/dist/x-toast.js +23 -23
  82. package/dist/x-toaster.js +8 -8
  83. package/dist/x-typography.js +11 -10
  84. package/package.json +6 -2
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var dH=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Zc($APP.Aa,$APP.lh,0<b.length?new $APP.Vb(b.slice(0),0,null):null)},eH=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.r($APP.r(b)?a>0:b)?a:1}return 1},jH=function(a){var b=$APP.l(a,"__xPaginationRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
3
- var g=document.createElement("li");var h=document.createElement("button"),k=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");k.setAttribute("name","prev");k.textContent="Prev";h.appendChild(k);g.appendChild(h);g=new $APP.P(null,2,[fH,g,gH,h],null);h=document.createElement("li");k=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
4
- k.setAttribute("part","button button-next");k.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";k.appendChild(m);h.appendChild(k);h=new $APP.P(null,2,[fH,h,gH,k],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:0.375rem;--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:0.875rem;--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}";
5
- d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(fH.g(g));e.appendChild(fH.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.P(null,6,[$APP.Xh,d,$APP.lk,e,hH,fH.g(g),$APP.Ci,gH.g(g),iH,fH.g(h),$APP.wh,gH.g(h)],null);a.__xPaginationRefs=b;return $APP.l(a,"__xPaginationRefs")},kH=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.S.g(a));e.setAttribute("part",
6
- "button button-page");e.setAttribute("aria-label","Page "+$APP.S.g(a));e.setAttribute("data-page",""+$APP.S.g(a));$APP.r(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.r(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.S.g(a);d.appendChild(e);return d},lH=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
- "…";a.appendChild(b);return a},vH=function(a){a=new $APP.P(null,7,[mH,a.getAttribute("page"),nH,a.getAttribute("total-pages"),oH,a.getAttribute("sibling-count"),pH,a.getAttribute("boundary-count"),$APP.Yk,a.getAttribute("size"),$APP.Rk,a.hasAttribute("disabled"),$APP.Oh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.G(b,mH),d=$APP.G(b,nH),e=$APP.G(b,oH),g=$APP.G(b,pH),h=$APP.G(b,$APP.Yk);a=$APP.G(b,$APP.Rk);b=$APP.G(b,$APP.Oh);d=eH(d);c=$APP.Yg.i(1,$APP.Zg.i(eH(c),d));if(typeof e==="string"){e=
8
- parseInt(e,10);var k=isFinite(e);e=$APP.r($APP.r(k)?e>=0:k)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),k=isFinite(g),k=$APP.r($APP.r(k)?g>=0:k)?g:1):k=1;g=e;e=k;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.J(qH,h)?h:"md";return new $APP.P(null,7,[rH,c,sH,d,tH,g,uH,e,$APP.rh,h,$APP.gj,$APP.I(a),$APP.T,$APP.r(b)?b:"Pagination"],null)},yH=function(a){var b=jH(a),c=$APP.lk.g(b),d=$APP.Xh.g(b),e=$APP.Ci.g(b),g=$APP.wh.g(b),h=hH.g(b);b=iH.g(b);var k=vH(a),m=$APP.N(k),p=$APP.G(m,rH),
9
- q=$APP.G(m,sH),w=$APP.G(m,tH),x=$APP.G(m,uH),y=$APP.G(m,$APP.rh);m=$APP.G(m,$APP.T);a:if(q<=0)q=$APP.ie;else{var A=$APP.Zg.i(x,q);x=$APP.Yg.i(q-x- -1,1);var C=$APP.Yg.i(1,p-w);w=$APP.Zg.i(q,p+w);q=$APP.af.i($APP.af.i($APP.af.i(dH(),$APP.kg(1,A+1)),$APP.kg(x,q+1)),$APP.kg(C,w+1));q=$APP.Be(q);C=$APP.ie;for(w=0;;){if(w>=$APP.B(q)){q=C;break a}A=$APP.rc(q,w);var E=x=w>0?$APP.rc(q,w-1):null;x=$APP.r($APP.r(E)?A>x+1:E)?$APP.od.i(C,new $APP.P(null,1,[$APP.Z,wH],null)):C;A=$APP.od.i(x,new $APP.P(null,2,
10
- [$APP.Z,rH,xH,A],null));w+=1;C=A}q=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.N(k);a=$APP.G(d,rH);d=$APP.G(d,$APP.gj);$APP.r($APP.r(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.N(k);e=$APP.G(d,rH);a=$APP.G(d,sH);d=$APP.G(d,$APP.gj);$APP.r($APP.r(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.u(q);h=null;for(a=e=0;;)if(a<e)d=h.G(null,a),$APP.D.i(wH,$APP.Z.g(d))?c.appendChild(lH()):
11
- c.appendChild(kH(xH.g(d),$APP.D.i(xH.g(d),p),$APP.gj.g(k))),a+=1;else if(g=$APP.u(g))h=g,$APP.Pc(h)?(g=$APP.yb(h),a=$APP.zb(h),h=g,e=$APP.B(g),g=a):(g=$APP.v(h),$APP.D.i(wH,$APP.Z.g(g))?c.appendChild(lH()):c.appendChild(kH(xH.g(g),$APP.D.i(xH.g(g),p),$APP.gj.g(k))),g=$APP.z(h),h=null,e=0),a=0;else break;c.appendChild(b)},zH=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},AH=function(a,b){a:{b=b.composedPath();for(var c=b.length,
12
- d=0;;)if(d<c){var e=b[d];if($APP.D.i("BUTTON",$APP.r(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.r($APP.r(b)?$APP.t(b.hasAttribute("disabled")):b)){d=$APP.l(a,"__xPaginationRefs");c=$APP.Ci.g(d);d=$APP.wh.g(d);e=b.getAttribute("data-page");if(b===c)return c=vH(a),b=rH.g(c),b>1?zH(a,b-1):null;if(b===d)return c=vH(a),b=rH.g(c),c=sH.g(c),b<c?zH(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.r(isFinite(b))?zH(a,b):null}return null},BH=function(a){function b(d){return AH(a,
13
- d)}var c=jH(a);$APP.lk.g(c).addEventListener("click",b);$APP.n(a,"__xPaginationHandlers",{click:b})},CH=function(a){var b=$APP.l(a,"__xPaginationHandlers");if($APP.r(b)){var c=$APP.l(a,"__xPaginationRefs");$APP.r(c)&&(c=$APP.lk.g(c),b=$APP.l(b,"click"),$APP.r($APP.r(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},DH=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",
14
- ""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},EH=function(a,b,c){Object.defineProperty(a,b,{get:function(){return eH(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.S.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},FH=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return $APP.r(e)?e:d},set:function(e){return e!=null?this.setAttribute(c,""+$APP.S.g(e)):this.removeAttribute(c)},enumerable:!0,
15
- configurable:!0})},GH=function(a){EH(a,"page","page");EH(a,"total-pages","total-pages");EH(a,"sibling-count","sibling-count");EH(a,"boundary-count","boundary-count");FH(a,"size","size","md");DH(a);FH(a,"label","label","Pagination")},IH=function(){var a=class extends HTMLElement{};a.observedAttributes=HH;a.prototype.connectedCallback=function(){jH(this);CH(this);BH(this);yH(this);return null};a.prototype.disconnectedCallback=function(){CH(this);return null};a.prototype.attributeChangedCallback=function(b,
16
- c,d){$APP.O(c,d)&&yH(this);return null};GH(a.prototype);return a},JH=function(){$APP.r(customElements.get("x-pagination"))||customElements.define("x-pagination",IH());return null},nH=new $APP.M(null,"total-pages-raw","total-pages-raw",430880208),uH=new $APP.M(null,"boundary-count","boundary-count",1637925987),pH=new $APP.M(null,"boundary-count-raw","boundary-count-raw",410083250),sH=new $APP.M(null,"total-pages","total-pages",685894112),rH=new $APP.M(null,"page","page",849072397),iH=new $APP.M(null,
17
- "next-li","next-li",648524823),gH=new $APP.M(null,"btn","btn",1978294651),hH=new $APP.M(null,"prev-li","prev-li",940258334),mH=new $APP.M(null,"page-raw","page-raw",-1198808870),fH=new $APP.M(null,"li","li",723558921),wH=new $APP.M(null,"ellipsis","ellipsis",998505738),xH=new $APP.M(null,"n","n",562130025),oH=new $APP.M(null,"sibling-count-raw","sibling-count-raw",-620117200),tH=new $APP.M(null,"sibling-count","sibling-count",1756034573);var HH="page total-pages sibling-count boundary-count size disabled label".split(" "),qH=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ka("baredom.exports.x_pagination.init",JH);export const init=JH;
2
+ var IH=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Zc($APP.Aa,$APP.lh,0<b.length?new $APP.Vb(b.slice(0),0,null):null)},JH=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.r($APP.r(b)?a>0:b)?a:1}return 1},OH=function(a){var b=$APP.l(a,"__xPaginationRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
3
+ var g=document.createElement("li");var h=document.createElement("button"),k=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");k.setAttribute("name","prev");k.textContent="Prev";h.appendChild(k);g.appendChild(h);g=new $APP.P(null,2,[KH,g,LH,h],null);h=document.createElement("li");k=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
4
+ k.setAttribute("part","button button-next");k.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";k.appendChild(m);h.appendChild(k);h=new $APP.P(null,2,[KH,h,LH,k],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:var(--x-radius-sm,0.375rem);--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:var(--x-font-size-sm,0.875rem);--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}@media (pointer:coarse){[part~\x3d'button']{min-width:2.75rem;height:2.75rem;}}";
5
+ d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(KH.g(g));e.appendChild(KH.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.P(null,6,[$APP.Xh,d,$APP.fk,e,MH,KH.g(g),$APP.Ci,LH.g(g),NH,KH.g(h),$APP.wh,LH.g(h)],null);a.__xPaginationRefs=b;return $APP.l(a,"__xPaginationRefs")},PH=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.S.g(a));e.setAttribute("part",
6
+ "button button-page");e.setAttribute("aria-label","Page "+$APP.S.g(a));e.setAttribute("data-page",""+$APP.S.g(a));$APP.r(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.r(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.S.g(a);d.appendChild(e);return d},QH=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
+ "…";a.appendChild(b);return a},$H=function(a){a=new $APP.P(null,7,[RH,a.getAttribute("page"),SH,a.getAttribute("total-pages"),TH,a.getAttribute("sibling-count"),UH,a.getAttribute("boundary-count"),$APP.Zk,a.getAttribute("size"),$APP.Sk,a.hasAttribute("disabled"),$APP.Oh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.G(b,RH),d=$APP.G(b,SH),e=$APP.G(b,TH),g=$APP.G(b,UH),h=$APP.G(b,$APP.Zk);a=$APP.G(b,$APP.Sk);b=$APP.G(b,$APP.Oh);d=JH(d);c=$APP.Yg.i(1,$APP.Zg.i(JH(c),d));if(typeof e==="string"){e=
8
+ parseInt(e,10);var k=isFinite(e);e=$APP.r($APP.r(k)?e>=0:k)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),k=isFinite(g),k=$APP.r($APP.r(k)?g>=0:k)?g:1):k=1;g=e;e=k;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.J(VH,h)?h:"md";return new $APP.P(null,7,[WH,c,XH,d,YH,g,ZH,e,$APP.rh,h,$APP.gj,$APP.I(a),$APP.T,$APP.r(b)?b:"Pagination"],null)},cI=function(a){var b=OH(a),c=$APP.fk.g(b),d=$APP.Xh.g(b),e=$APP.Ci.g(b),g=$APP.wh.g(b),h=MH.g(b);b=NH.g(b);var k=$H(a),m=$APP.N(k),p=$APP.G(m,WH),
9
+ q=$APP.G(m,XH),w=$APP.G(m,YH),x=$APP.G(m,ZH),y=$APP.G(m,$APP.rh);m=$APP.G(m,$APP.T);a:if(q<=0)q=$APP.ie;else{var A=$APP.Zg.i(x,q);x=$APP.Yg.i(q-x- -1,1);var B=$APP.Yg.i(1,p-w);w=$APP.Zg.i(q,p+w);q=$APP.af.i($APP.af.i($APP.af.i(IH(),$APP.kg(1,A+1)),$APP.kg(x,q+1)),$APP.kg(B,w+1));q=$APP.Be(q);B=$APP.ie;for(w=0;;){if(w>=$APP.C(q)){q=B;break a}A=$APP.rc(q,w);var E=x=w>0?$APP.rc(q,w-1):null;x=$APP.r($APP.r(E)?A>x+1:E)?$APP.od.i(B,new $APP.P(null,1,[$APP.Z,aI],null)):B;A=$APP.od.i(x,new $APP.P(null,2,
10
+ [$APP.Z,WH,bI,A],null));w+=1;B=A}q=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.N(k);a=$APP.G(d,WH);d=$APP.G(d,$APP.gj);$APP.r($APP.r(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.N(k);e=$APP.G(d,WH);a=$APP.G(d,XH);d=$APP.G(d,$APP.gj);$APP.r($APP.r(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.u(q);h=null;for(a=e=0;;)if(a<e)d=h.G(null,a),$APP.D.i(aI,$APP.Z.g(d))?c.appendChild(QH()):
11
+ c.appendChild(PH(bI.g(d),$APP.D.i(bI.g(d),p),$APP.gj.g(k))),a+=1;else if(g=$APP.u(g))h=g,$APP.Pc(h)?(g=$APP.yb(h),a=$APP.zb(h),h=g,e=$APP.C(g),g=a):(g=$APP.v(h),$APP.D.i(aI,$APP.Z.g(g))?c.appendChild(QH()):c.appendChild(PH(bI.g(g),$APP.D.i(bI.g(g),p),$APP.gj.g(k))),g=$APP.z(h),h=null,e=0),a=0;else break;c.appendChild(b)},dI=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},eI=function(a,b){a:{b=b.composedPath();for(var c=b.length,
12
+ d=0;;)if(d<c){var e=b[d];if($APP.D.i("BUTTON",$APP.r(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.r($APP.r(b)?$APP.t(b.hasAttribute("disabled")):b)){d=$APP.l(a,"__xPaginationRefs");c=$APP.Ci.g(d);d=$APP.wh.g(d);e=b.getAttribute("data-page");if(b===c)return c=$H(a),b=WH.g(c),b>1?dI(a,b-1):null;if(b===d)return c=$H(a),b=WH.g(c),c=XH.g(c),b<c?dI(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.r(isFinite(b))?dI(a,b):null}return null},fI=function(a){function b(d){return eI(a,
13
+ d)}var c=OH(a);$APP.fk.g(c).addEventListener("click",b);$APP.n(a,"__xPaginationHandlers",{click:b})},gI=function(a){var b=$APP.l(a,"__xPaginationHandlers");if($APP.r(b)){var c=$APP.l(a,"__xPaginationRefs");$APP.r(c)&&(c=$APP.fk.g(c),b=$APP.l(b,"click"),$APP.r($APP.r(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},hI=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",
14
+ ""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},iI=function(a,b,c){Object.defineProperty(a,b,{get:function(){return JH(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.S.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},jI=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return $APP.r(e)?e:d},set:function(e){return e!=null?this.setAttribute(c,""+$APP.S.g(e)):this.removeAttribute(c)},enumerable:!0,
15
+ configurable:!0})},kI=function(a){iI(a,"page","page");iI(a,"total-pages","total-pages");iI(a,"sibling-count","sibling-count");iI(a,"boundary-count","boundary-count");jI(a,"size","size","md");hI(a);jI(a,"label","label","Pagination")},mI=function(){var a=class extends HTMLElement{};a.observedAttributes=lI;a.prototype.connectedCallback=function(){OH(this);gI(this);fI(this);cI(this);return null};a.prototype.disconnectedCallback=function(){gI(this);return null};a.prototype.attributeChangedCallback=function(b,
16
+ c,d){$APP.O(c,d)&&cI(this);return null};kI(a.prototype);return a},nI=function(){$APP.r(customElements.get("x-pagination"))||customElements.define("x-pagination",mI());return null},SH=new $APP.K(null,"total-pages-raw","total-pages-raw",430880208),ZH=new $APP.K(null,"boundary-count","boundary-count",1637925987),UH=new $APP.K(null,"boundary-count-raw","boundary-count-raw",410083250),XH=new $APP.K(null,"total-pages","total-pages",685894112),WH=new $APP.K(null,"page","page",849072397),NH=new $APP.K(null,
17
+ "next-li","next-li",648524823),LH=new $APP.K(null,"btn","btn",1978294651),MH=new $APP.K(null,"prev-li","prev-li",940258334),RH=new $APP.K(null,"page-raw","page-raw",-1198808870),KH=new $APP.K(null,"li","li",723558921),aI=new $APP.K(null,"ellipsis","ellipsis",998505738),bI=new $APP.K(null,"n","n",562130025),TH=new $APP.K(null,"sibling-count-raw","sibling-count-raw",-620117200),YH=new $APP.K(null,"sibling-count","sibling-count",1756034573);var lI="page total-pages sibling-count boundary-count size disabled label".split(" "),VH=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ka("baredom.exports.x_pagination.init",nI);export const init=nI;
package/dist/x-popover.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Iq=function(a){return document.createElement(a)},Jq=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},Qq=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.r(b)){a=new $APP.P(null,6,[$APP.ai,a.hasAttribute("open"),$APP.Rk,a.hasAttribute("disabled"),Kq,a.hasAttribute("no-close"),Lq,a.getAttribute("heading"),$APP.Wl,a.getAttribute("placement"),Mq,a.getAttribute("close-label")],null);var c=$APP.N(a),d=$APP.G(c,$APP.ai),e=$APP.G(c,$APP.Rk),g=$APP.G(c,Kq),h=$APP.G(c,Lq);
3
- a=$APP.G(c,$APP.Wl);c=$APP.G(c,Mq);d=$APP.I(d);e=$APP.I(e);g=$APP.I(g);h=$APP.r(h)?h:"";c=$APP.r(c)?c:"Close";a=$APP.J(Nq,a)?a:"bottom-start";e=$APP.N(new $APP.P(null,6,[$APP.Dl,d,$APP.W,e,Oq,g,$APP.Fk,h,Pq,c,$APP.hj,a],null));d=$APP.G(e,$APP.Dl);a=$APP.G(e,Oq);h=$APP.G(e,$APP.Fk);c=$APP.G(e,Pq);g=$APP.G(e,$APP.hj);var k=$APP.l(b,"panel");e=$APP.l(b,"header");var m=$APP.l(b,"heading");b=$APP.l(b,"closeBtn");k.setAttribute("data-placement",g);Jq(k,"inert",$APP.t(d));$APP.O(h,"")?k.setAttribute("aria-labelledby",
4
- "popover-heading"):k.removeAttribute("aria-labelledby");m.textContent=h;b.setAttribute("aria-label",c);Jq(b,"hidden",a);b=$APP.D.i(h,"");return Jq(e,"hidden",b?a:b)}return null},Rq=function(a,b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.t(b.defaultPrevented)},Sq=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Tq=function(a,b){return $APP.t(a.hasAttribute("disabled"))&&
5
- $APP.t(a.hasAttribute("open"))&&Rq(a,{open:!0,source:b})?(a.setAttribute("open",""),Sq(a,{open:!0})):null},Uq=function(a,b){var c=$APP.t(a.hasAttribute("disabled"));return $APP.r(c?a.hasAttribute("open"):c)&&Rq(a,{open:!1,source:b})?(a.removeAttribute("open"),Sq(a,{open:!1})):null},Vq=function(a,b){return $APP.r(a.hasAttribute("open"))?Uq(a,b):Tq(a,b)},Wq=function(a){var b=$APP.l(a,"__xPopoverHandlers");if($APP.r(b)){var c=$APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTimeout(function(){var e=
6
- a.isConnected;return $APP.r($APP.r(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Xq=function(a){a=$APP.l(a,"__xPopoverHandlers");if($APP.r(a)){var b=$APP.l(a,"docKeydown");document.removeEventListener("click",$APP.l(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Yq=function(a){return{triggerClick:function(){return Vq(a,"pointer")},closeBtnClick:function(){return Uq(a,"close-button")},hostFocusout:function(b){return $APP.r(a.hasAttribute("open"))?
7
- (b=b.relatedTarget,b==null||$APP.t(a.contains(b))?Uq(a,"focusout"):null):null},docClick:function(b){return $APP.r(a.hasAttribute("open"))?(b=$APP.xc(b.composedPath()),b=$APP.Wd(function(c){return c===a},b),$APP.r(b)?null:Uq(a,"outside-click")):null},docKeydown:function(b){b=$APP.D.i(b.key,"Escape");return $APP.r(b?a.hasAttribute("open"):b)?Uq(a,"escape"):null},footerSlotchange:function(){var b=$APP.l(a,"__xPopoverRefs");return $APP.r(b)?Jq($APP.l(b,"footer"),"hidden",!($APP.l(b,"footerSlot").assignedNodes().length>
8
- 0)):null}}},Zq=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.r(b)){var c=$APP.l(a,"__xPopoverHandlers");if($APP.r(c)){var d=$APP.l(b,"closeBtn"),e=$APP.l(b,"footerSlot");$APP.l(b,"trigger").removeEventListener("click",$APP.l(c,"triggerClick"));d.removeEventListener("click",$APP.l(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.l(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.l(c,"footerSlotchange"))}}},$q=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
9
- get:function(){return this.hasAttribute(c)},set:function(d){return Jq(this,c,$APP.I(d))}})},ar=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},cr=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return br}});$q(b,"open","open");
10
- $q(b,"disabled","disabled");$q(b,"noClose","no-close");ar(b,"placement","placement");ar(b,"heading","heading");ar(b,"closeLabel","close-label");b.show=function(){return Tq(this,"programmatic")};b.hide=function(){return Uq(this,"programmatic")};b.toggle=function(){return Vq(this,"programmatic")};b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=Iq("style"),e=Iq("span"),g=Iq("slot"),h=Iq("div"),k=Iq("div"),m=Iq("div"),p=Iq("span"),q=Iq("button"),
11
- w=Iq("div"),x=Iq("slot"),y=Iq("div"),A=Iq("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:#ffffff;--x-popover-panel-border:1px solid #e2e8f0;--x-popover-panel-radius:8px;--x-popover-panel-shadow:0 4px 16px rgba(0,0,0,0.12);--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:24rem;--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid #e2e8f0;--x-popover-heading-color:#0f172a;--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:#f1f5f9;--x-popover-close-color:#64748b;--x-popover-close-color-hover:#0f172a;--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:#60a5fa;--x-popover-body-padding:0.875rem;--x-popover-body-color:#334155;--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid #e2e8f0;--x-popover-arrow-size:8px;--x-popover-arrow-bg:#ffffff;--x-popover-arrow-border:#e2e8f0;--x-popover-transition-duration:150ms;--x-popover-transition-easing:ease;}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:#1e293b;--x-popover-panel-border:1px solid #334155;--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid #334155;--x-popover-heading-color:#e2e8f0;--x-popover-close-bg-hover:#334155;--x-popover-close-color:#94a3b8;--x-popover-close-color-hover:#e2e8f0;--x-popover-focus-ring:#93c5fd;--x-popover-body-color:#cbd5e1;--x-popover-footer-border:1px solid #334155;--x-popover-arrow-bg:#1e293b;--x-popover-arrow-border:#334155;}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
2
+ var Jq=function(a){return document.createElement(a)},Kq=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},Rq=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.r(b)){a=new $APP.P(null,6,[$APP.ai,a.hasAttribute("open"),$APP.Sk,a.hasAttribute("disabled"),Lq,a.hasAttribute("no-close"),Mq,a.getAttribute("heading"),$APP.Xl,a.getAttribute("placement"),Nq,a.getAttribute("close-label")],null);var c=$APP.N(a),d=$APP.G(c,$APP.ai),e=$APP.G(c,$APP.Sk),g=$APP.G(c,Lq),h=$APP.G(c,Mq);
3
+ a=$APP.G(c,$APP.Xl);c=$APP.G(c,Nq);d=$APP.I(d);e=$APP.I(e);g=$APP.I(g);h=$APP.r(h)?h:"";c=$APP.r(c)?c:"Close";a=$APP.J(Oq,a)?a:"bottom-start";e=$APP.N(new $APP.P(null,6,[$APP.El,d,$APP.W,e,Pq,g,$APP.Gk,h,Qq,c,$APP.hj,a],null));d=$APP.G(e,$APP.El);a=$APP.G(e,Pq);h=$APP.G(e,$APP.Gk);c=$APP.G(e,Qq);g=$APP.G(e,$APP.hj);var k=$APP.l(b,"panel");e=$APP.l(b,"header");var m=$APP.l(b,"heading");b=$APP.l(b,"closeBtn");k.setAttribute("data-placement",g);Kq(k,"inert",$APP.t(d));$APP.O(h,"")?k.setAttribute("aria-labelledby",
4
+ "popover-heading"):k.removeAttribute("aria-labelledby");m.textContent=h;b.setAttribute("aria-label",c);Kq(b,"hidden",a);b=$APP.D.i(h,"");return Kq(e,"hidden",b?a:b)}return null},Sq=function(a,b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.t(b.defaultPrevented)},Tq=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Uq=function(a,b){return $APP.t(a.hasAttribute("disabled"))&&
5
+ $APP.t(a.hasAttribute("open"))&&Sq(a,{open:!0,source:b})?(a.setAttribute("open",""),Tq(a,{open:!0})):null},Vq=function(a,b){var c=$APP.t(a.hasAttribute("disabled"));return $APP.r(c?a.hasAttribute("open"):c)&&Sq(a,{open:!1,source:b})?(a.removeAttribute("open"),Tq(a,{open:!1})):null},Wq=function(a,b){return $APP.r(a.hasAttribute("open"))?Vq(a,b):Uq(a,b)},Xq=function(a){var b=$APP.l(a,"__xPopoverHandlers");if($APP.r(b)){var c=$APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTimeout(function(){var e=
6
+ a.isConnected;return $APP.r($APP.r(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Yq=function(a){a=$APP.l(a,"__xPopoverHandlers");if($APP.r(a)){var b=$APP.l(a,"docKeydown");document.removeEventListener("click",$APP.l(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Zq=function(a){return{triggerClick:function(){return Wq(a,"pointer")},closeBtnClick:function(){return Vq(a,"close-button")},hostFocusout:function(b){return $APP.r(a.hasAttribute("open"))?
7
+ (b=b.relatedTarget,b==null||$APP.t(a.contains(b))?Vq(a,"focusout"):null):null},docClick:function(b){return $APP.r(a.hasAttribute("open"))?(b=$APP.xc(b.composedPath()),b=$APP.Wd(function(c){return c===a},b),$APP.r(b)?null:Vq(a,"outside-click")):null},docKeydown:function(b){b=$APP.D.i(b.key,"Escape");return $APP.r(b?a.hasAttribute("open"):b)?Vq(a,"escape"):null},footerSlotchange:function(){var b=$APP.l(a,"__xPopoverRefs");return $APP.r(b)?Kq($APP.l(b,"footer"),"hidden",!($APP.l(b,"footerSlot").assignedNodes().length>
8
+ 0)):null}}},$q=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.r(b)){var c=$APP.l(a,"__xPopoverHandlers");if($APP.r(c)){var d=$APP.l(b,"closeBtn"),e=$APP.l(b,"footerSlot");$APP.l(b,"trigger").removeEventListener("click",$APP.l(c,"triggerClick"));d.removeEventListener("click",$APP.l(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.l(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.l(c,"footerSlotchange"))}}},ar=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
9
+ get:function(){return this.hasAttribute(c)},set:function(d){return Kq(this,c,$APP.I(d))}})},br=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},dr=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return cr}});ar(b,"open","open");
10
+ ar(b,"disabled","disabled");ar(b,"noClose","no-close");br(b,"placement","placement");br(b,"heading","heading");br(b,"closeLabel","close-label");b.show=function(){return Uq(this,"programmatic")};b.hide=function(){return Vq(this,"programmatic")};b.toggle=function(){return Wq(this,"programmatic")};b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=Jq("style"),e=Jq("span"),g=Jq("slot"),h=Jq("div"),k=Jq("div"),m=Jq("div"),p=Jq("span"),q=Jq("button"),
11
+ w=Jq("div"),x=Jq("slot"),y=Jq("div"),A=Jq("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:var(--x-color-bg,#ffffff);--x-popover-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-panel-radius:var(--x-radius-md,8px);--x-popover-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:min(24rem,calc(100vw - 1rem));--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-heading-color:var(--x-color-text,#0f172a);--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-popover-close-color:var(--x-color-text-muted,#64748b);--x-popover-close-color-hover:var(--x-color-text,#0f172a);--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-popover-body-padding:0.875rem;--x-popover-body-color:var(--x-color-text-muted,#334155);--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid var(--x-color-border,#e2e8f0);--x-popover-arrow-size:8px;--x-popover-arrow-bg:var(--x-color-bg,#ffffff);--x-popover-arrow-border:var(--x-color-border,#e2e8f0);--x-popover-transition-duration:var(--x-transition-duration,150ms);--x-popover-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:var(--x-color-bg,#1e293b);--x-popover-panel-border:1px solid var(--x-color-border,#334155);--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid var(--x-color-border,#334155);--x-popover-heading-color:var(--x-color-text,#e2e8f0);--x-popover-close-bg-hover:var(--x-color-text-muted,#334155);--x-popover-close-color:var(--x-color-text-muted,#94a3b8);--x-popover-close-color-hover:var(--x-color-text,#e2e8f0);--x-popover-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-popover-body-color:var(--x-color-text-muted,#cbd5e1);--x-popover-footer-border:1px solid var(--x-color-border,#334155);--x-popover-arrow-bg:var(--x-color-bg,#1e293b);--x-popover-arrow-border:var(--x-color-border,#334155);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
12
12
  e.setAttribute("part","trigger");g.setAttribute("name","trigger");h.setAttribute("part","panel");h.setAttribute("role","dialog");h.setAttribute("inert","");h.setAttribute("data-placement","bottom-start");k.setAttribute("part","arrow");k.setAttribute("aria-hidden","true");m.setAttribute("part","header");p.setAttribute("part","heading");p.setAttribute("id","popover-heading");q.setAttribute("part","close-button");q.setAttribute("type","button");q.setAttribute("aria-label","Close");q.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
13
- w.setAttribute("part","body");y.setAttribute("part","footer");y.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(p);m.appendChild(q);w.appendChild(x);y.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(w);h.appendChild(y);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,header:m,heading:p,closeBtn:q,body:w,footer:y,footerSlot:A}}Zq(this);Xq(this);this.__xPopoverHandlers=Yq(this);c=$APP.l(this,"__xPopoverRefs");
14
- $APP.r(c)&&(d=$APP.l(this,"__xPopoverHandlers"),$APP.r(d)&&(e=$APP.l(c,"closeBtn"),g=$APP.l(c,"footerSlot"),$APP.l(c,"trigger").addEventListener("click",$APP.l(d,"triggerClick")),e.addEventListener("click",$APP.l(d,"closeBtnClick")),this.addEventListener("focusout",$APP.l(d,"hostFocusout")),g.addEventListener("slotchange",$APP.l(d,"footerSlotchange"))));$APP.r(this.hasAttribute("open"))&&Wq(this);return Qq(this)};b.disconnectedCallback=function(){Zq(this);return Xq(this)};b.attributeChangedCallback=
15
- function(c){$APP.r($APP.l(this,"__xPopoverRefs"))?(Qq(this),c=$APP.D.i(c,"open")?$APP.r(this.hasAttribute("open"))?Wq(this):Xq(this):null):c=null;return c};return a},dr=function(){return $APP.r(customElements.get("x-popover"))?null:customElements.define("x-popover",cr())},Pq=new $APP.M(null,"close-label","close-label",-1088385889),Oq=new $APP.M(null,"no-close?","no-close?",1842227643),Mq=new $APP.M(null,"close-label-raw","close-label-raw",798572883),Lq=new $APP.M(null,"heading-raw","heading-raw",
16
- 116296555),Kq=new $APP.M(null,"no-close-present?","no-close-present?",-154717274);var Nq=new $APP.R(null,new $APP.P(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),br="open placement heading close-label no-close disabled".split(" ");$APP.Sd(["x-popover-toggle",new $APP.P(null,2,[$APP.kl,!0,$APP.U,new $APP.P(null,2,[$APP.hl,$APP.qj,$APP.yk,$APP.Y],null)],null),"x-popover-change",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,1,[$APP.hl,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_popover.init",dr);export const init=dr;
13
+ w.setAttribute("part","body");y.setAttribute("part","footer");y.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(p);m.appendChild(q);w.appendChild(x);y.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(w);h.appendChild(y);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,header:m,heading:p,closeBtn:q,body:w,footer:y,footerSlot:A}}$q(this);Yq(this);this.__xPopoverHandlers=Zq(this);c=$APP.l(this,"__xPopoverRefs");
14
+ $APP.r(c)&&(d=$APP.l(this,"__xPopoverHandlers"),$APP.r(d)&&(e=$APP.l(c,"closeBtn"),g=$APP.l(c,"footerSlot"),$APP.l(c,"trigger").addEventListener("click",$APP.l(d,"triggerClick")),e.addEventListener("click",$APP.l(d,"closeBtnClick")),this.addEventListener("focusout",$APP.l(d,"hostFocusout")),g.addEventListener("slotchange",$APP.l(d,"footerSlotchange"))));$APP.r(this.hasAttribute("open"))&&Xq(this);return Rq(this)};b.disconnectedCallback=function(){$q(this);return Yq(this)};b.attributeChangedCallback=
15
+ function(c){$APP.r($APP.l(this,"__xPopoverRefs"))?(Rq(this),c=$APP.D.i(c,"open")?$APP.r(this.hasAttribute("open"))?Xq(this):Yq(this):null):c=null;return c};return a},er=function(){return $APP.r(customElements.get("x-popover"))?null:customElements.define("x-popover",dr())},Qq=new $APP.K(null,"close-label","close-label",-1088385889),Pq=new $APP.K(null,"no-close?","no-close?",1842227643),Nq=new $APP.K(null,"close-label-raw","close-label-raw",798572883),Mq=new $APP.K(null,"heading-raw","heading-raw",
16
+ 116296555),Lq=new $APP.K(null,"no-close-present?","no-close-present?",-154717274);var Oq=new $APP.R(null,new $APP.P(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),cr="open placement heading close-label no-close disabled".split(" ");$APP.Sd(["x-popover-toggle",new $APP.P(null,2,[$APP.ll,!0,$APP.U,new $APP.P(null,2,[$APP.il,$APP.qj,$APP.zk,$APP.X],null)],null),"x-popover-change",new $APP.P(null,2,[$APP.ll,!1,$APP.U,new $APP.P(null,1,[$APP.il,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_popover.init",er);export const init=er;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var oP=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.r(isNaN(a))?b:a):b},rP=function(a){var b=new $APP.P(null,7,[$APP.ui,a.getAttribute("value"),$APP.Zj,a.getAttribute("max"),$APP.Fh,a.getAttribute("variant"),$APP.rh,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.yj,a.hasAttribute("show-value"),$APP.nl,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.G(c,$APP.Zj),e=$APP.G(c,$APP.ui),g=$APP.G(c,$APP.Fh),h=$APP.G(c,$APP.rh);b=$APP.G(c,$APP.T);var k=$APP.G(c,
3
- $APP.yj);c=$APP.G(c,$APP.nl);d=oP(d,100);d=d>0?d:100;e=$APP.Zg.i($APP.Yg.i(oP(e,0),0),d);g=typeof g==="string"&&$APP.J(pP,g)?g:"default";h=typeof h==="string"&&$APP.J(qP,h)?h:"md";c=$APP.I(c);k=$APP.I(k);var m=c?50:$APP.Zg.i($APP.Yg.i(e/d*100,0),100);b=$APP.Q([$APP.Fh,$APP.yj,$APP.ui,$APP.rh,$APP.nl,$APP.Nl,$APP.Zj,$APP.T,$APP.Qk],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var p=$APP.N(b);b=$APP.G(p,$APP.Qk);k=$APP.G(p,$APP.Fh);d=$APP.G(p,
4
- $APP.yj);h=$APP.G(p,$APP.ui);c=$APP.G(p,$APP.rh);e=$APP.G(p,$APP.Nl);g=$APP.G(p,$APP.nl);m=$APP.G(p,$APP.T);p=$APP.G(p,$APP.Zj);var q=$APP.l(a,"__xProgressCircleBase"),w=$APP.l(a,"__xProgressCircleFill"),x=$APP.l(a,"__xProgressCircleValueNode"),y=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.t(g)&&h>=p,C=$APP.r(g)?75:100*(1-b/100);q.setAttribute("data-variant",k);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.r(g)?"true":"false");w.setAttribute("stroke-dasharray",""+$APP.S.g(100));
5
- w.setAttribute("stroke-dashoffset",""+$APP.S.g(C));x.textContent=$APP.r($APP.r(d)?$APP.t(g):d)?""+$APP.S.g(Math.round(b))+"%":"";x.style.display=$APP.r($APP.r(d)?$APP.t(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.r(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",
6
- e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.t(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.I(A)},sP=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
2
+ var TP=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.r(isNaN(a))?b:a):b},WP=function(a){var b=new $APP.P(null,7,[$APP.ri,a.getAttribute("value"),$APP.ak,a.getAttribute("max"),$APP.Fh,a.getAttribute("variant"),$APP.rh,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.yj,a.hasAttribute("show-value"),$APP.ol,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.G(c,$APP.ak),e=$APP.G(c,$APP.ri),g=$APP.G(c,$APP.Fh),h=$APP.G(c,$APP.rh);b=$APP.G(c,$APP.T);var k=$APP.G(c,
3
+ $APP.yj);c=$APP.G(c,$APP.ol);d=TP(d,100);d=d>0?d:100;e=$APP.Zg.i($APP.Yg.i(TP(e,0),0),d);g=typeof g==="string"&&$APP.J(UP,g)?g:"default";h=typeof h==="string"&&$APP.J(VP,h)?h:"md";c=$APP.I(c);k=$APP.I(k);var m=c?50:$APP.Zg.i($APP.Yg.i(e/d*100,0),100);b=$APP.Q([$APP.Fh,$APP.yj,$APP.ri,$APP.rh,$APP.ol,$APP.Ol,$APP.ak,$APP.T,$APP.Rk],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var p=$APP.N(b);b=$APP.G(p,$APP.Rk);k=$APP.G(p,$APP.Fh);d=$APP.G(p,
4
+ $APP.yj);h=$APP.G(p,$APP.ri);c=$APP.G(p,$APP.rh);e=$APP.G(p,$APP.Ol);g=$APP.G(p,$APP.ol);m=$APP.G(p,$APP.T);p=$APP.G(p,$APP.ak);var q=$APP.l(a,"__xProgressCircleBase"),w=$APP.l(a,"__xProgressCircleFill"),x=$APP.l(a,"__xProgressCircleValueNode"),y=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.t(g)&&h>=p,B=$APP.r(g)?75:100*(1-b/100);q.setAttribute("data-variant",k);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.r(g)?"true":"false");w.setAttribute("stroke-dasharray",""+$APP.S.g(100));
5
+ w.setAttribute("stroke-dashoffset",""+$APP.S.g(B));x.textContent=$APP.r($APP.r(d)?$APP.t(g):d)?""+$APP.S.g(Math.round(b))+"%":"";x.style.display=$APP.r($APP.r(d)?$APP.t(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.r(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",
6
+ e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.t(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.I(A)},XP=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
7
7
  "max",{get:function(){var b=this.getAttribute("max");return $APP.r(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.r(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
- set:function(b){return $APP.r(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},uP=function(){var a=class extends HTMLElement{};a.observedAttributes=tP;a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg",
9
- "circle"),h=document.createElementNS("http://www.w3.org/2000/svg","circle"),k=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:#3b82f6;--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:0.3s;}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:#22c55e;}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:#f59e0b;}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:#ef4444;}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
8
+ set:function(b){return $APP.r(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},ZP=function(){var a=class extends HTMLElement{};a.observedAttributes=YP;a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg",
9
+ "circle"),h=document.createElementNS("http://www.w3.org/2000/svg","circle"),k=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:var(--x-color-primary,#3b82f6);--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:var(--x-transition-duration,0.3s);}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
10
10
  d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");g.setAttribute("part","track");g.setAttribute("cx","18");g.setAttribute("cy","18");g.setAttribute("r","15.9155");h.setAttribute("part","fill");h.setAttribute("cx","18");h.setAttribute("cy","18");h.setAttribute("r","15.9155");k.setAttribute("part","center");m.setAttribute("part","value-text");e.appendChild(g);e.appendChild(h);k.appendChild(m);
11
- d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}rP(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xProgressCircleInit"))&&rP(this);return null};sP(a.prototype);return a},vP=function(){$APP.r(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
- uP());return null};var pP=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),qP=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),tP="value max variant size label show-value indeterminate".split(" ");$APP.Sd(["x-progress-circle-complete",new $APP.P(null,1,[$APP.U,new $APP.P(null,2,[$APP.ui,$APP.V,$APP.Zj,$APP.V],null)],null)]);$APP.ka("baredom.exports.x_progress_circle.init",vP);export const init=vP;
11
+ d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}WP(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xProgressCircleInit"))&&WP(this);return null};XP(a.prototype);return a},$P=function(){$APP.r(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
+ ZP());return null};var UP=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),VP=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),YP="value max variant size label show-value indeterminate".split(" ");$APP.Sd(["x-progress-circle-complete",new $APP.P(null,1,[$APP.U,new $APP.P(null,2,[$APP.ri,$APP.V,$APP.ak,$APP.V],null)],null)]);$APP.ka("baredom.exports.x_progress_circle.init",$P);export const init=$P;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var DZ=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.r(isNaN(a))?b:a):b},GZ=function(a){var b=new $APP.P(null,7,[$APP.ui,a.getAttribute("value"),$APP.Zj,a.getAttribute("max"),$APP.Fh,a.getAttribute("variant"),$APP.rh,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.yj,a.hasAttribute("show-value"),$APP.nl,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.G(c,$APP.Zj),e=$APP.G(c,$APP.ui),g=$APP.G(c,$APP.Fh),h=$APP.G(c,$APP.rh);b=$APP.G(c,$APP.T);var k=$APP.G(c,
3
- $APP.yj);c=$APP.G(c,$APP.nl);d=DZ(d,100);d=d>0?d:100;e=$APP.Zg.i($APP.Yg.i(DZ(e,0),0),d);g=typeof g==="string"&&$APP.J(EZ,g)?g:"default";h=typeof h==="string"&&$APP.J(FZ,h)?h:"md";c=$APP.I(c);k=$APP.I(k);var m=c?50:$APP.Zg.i($APP.Yg.i(e/d*100,0),100);b=$APP.Q([$APP.Fh,$APP.yj,$APP.ui,$APP.rh,$APP.nl,$APP.Nl,$APP.Zj,$APP.T,$APP.Qk],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var p=$APP.N(b);b=$APP.G(p,$APP.Qk);k=$APP.G(p,$APP.Fh);d=$APP.G(p,
4
- $APP.yj);h=$APP.G(p,$APP.ui);c=$APP.G(p,$APP.rh);e=$APP.G(p,$APP.Nl);g=$APP.G(p,$APP.nl);m=$APP.G(p,$APP.T);p=$APP.G(p,$APP.Zj);var q=$APP.l(a,"__xProgressBase"),w=$APP.l(a,"__xProgressHeader"),x=$APP.l(a,"__xProgressFill"),y=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var C=(C=m!=null)?C:d;var E=$APP.l(a,"__xProgressCompleted"),H=$APP.t(g)&&h>=p;q.setAttribute("data-variant",k);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.r(g)?"true":"false");x.style.width=
5
- $APP.r(g)?"40%":""+$APP.S.g(b.toFixed(2))+"%";w.style.display=$APP.r(C)?"flex":"none";y.textContent=$APP.r(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.r($APP.r(d)?$APP.t(g):d)?""+$APP.S.g(Math.round(b))+"%":"";A.style.display=$APP.r(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.r(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),
6
- a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");H&&$APP.t(E)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.I(H)},HZ=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:"0"},set:function(b){return this.setAttribute("value",
2
+ var g_=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.r(isNaN(a))?b:a):b},j_=function(a){var b=new $APP.P(null,7,[$APP.ri,a.getAttribute("value"),$APP.ak,a.getAttribute("max"),$APP.Fh,a.getAttribute("variant"),$APP.rh,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.yj,a.hasAttribute("show-value"),$APP.ol,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.G(c,$APP.ak),e=$APP.G(c,$APP.ri),g=$APP.G(c,$APP.Fh),h=$APP.G(c,$APP.rh);b=$APP.G(c,$APP.T);var k=$APP.G(c,
3
+ $APP.yj);c=$APP.G(c,$APP.ol);d=g_(d,100);d=d>0?d:100;e=$APP.Zg.i($APP.Yg.i(g_(e,0),0),d);g=typeof g==="string"&&$APP.J(h_,g)?g:"default";h=typeof h==="string"&&$APP.J(i_,h)?h:"md";c=$APP.I(c);k=$APP.I(k);var m=c?50:$APP.Zg.i($APP.Yg.i(e/d*100,0),100);b=$APP.Q([$APP.Fh,$APP.yj,$APP.ri,$APP.rh,$APP.ol,$APP.Ol,$APP.ak,$APP.T,$APP.Rk],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var p=$APP.N(b);b=$APP.G(p,$APP.Rk);k=$APP.G(p,$APP.Fh);d=$APP.G(p,
4
+ $APP.yj);h=$APP.G(p,$APP.ri);c=$APP.G(p,$APP.rh);e=$APP.G(p,$APP.Ol);g=$APP.G(p,$APP.ol);m=$APP.G(p,$APP.T);p=$APP.G(p,$APP.ak);var q=$APP.l(a,"__xProgressBase"),w=$APP.l(a,"__xProgressHeader"),x=$APP.l(a,"__xProgressFill"),y=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var B=(B=m!=null)?B:d;var E=$APP.l(a,"__xProgressCompleted"),H=$APP.t(g)&&h>=p;q.setAttribute("data-variant",k);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.r(g)?"true":"false");x.style.width=
5
+ $APP.r(g)?"40%":""+$APP.S.g(b.toFixed(2))+"%";w.style.display=$APP.r(B)?"flex":"none";y.textContent=$APP.r(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.r($APP.r(d)?$APP.t(g):d)?""+$APP.S.g(Math.round(b))+"%":"";A.style.display=$APP.r(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.r(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),
6
+ a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");H&&$APP.t(E)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.I(H)},k_=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:"0"},set:function(b){return this.setAttribute("value",
7
7
  ""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.r(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.r(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,
8
8
  "showValue",{get:function(){return this.hasAttribute("show-value")},set:function(b){return $APP.r(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.r(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.r(b)?
9
- b:""},set:function(b){return this.setAttribute("size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.r(b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},JZ=function(){var a=class extends HTMLElement{};a.observedAttributes=IZ;a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),
10
- c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:9999px;--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:#3b82f6;--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:#22c55e;}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:#f59e0b;}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:#ef4444;}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
11
- d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");k.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);k.appendChild(m);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}GZ(this);return null};a.prototype.disconnectedCallback=
12
- function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xProgressInit"))&&GZ(this);return null};HZ(a.prototype);return a},KZ=function(){$APP.r(customElements.get("x-progress"))||customElements.define("x-progress",JZ());return null};var EZ=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),FZ=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),IZ="value max variant size label show-value indeterminate".split(" ");$APP.Sd(["x-progress-complete",new $APP.P(null,1,[$APP.U,new $APP.P(null,2,[$APP.ui,$APP.V,$APP.Zj,$APP.V],null)],null)]);$APP.ka("baredom.exports.x_progress.init",KZ);export const init=KZ;
9
+ b:""},set:function(b){return this.setAttribute("size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.r(b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},m_=function(){var a=class extends HTMLElement{};a.observedAttributes=l_;a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),
10
+ c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:var(--x-radius-full,9999px);--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:var(--x-color-primary,#3b82f6);--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:var(--x-font-size-sm,0.875rem);color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
11
+ d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");k.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);k.appendChild(m);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}j_(this);return null};a.prototype.disconnectedCallback=
12
+ function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xProgressInit"))&&j_(this);return null};k_(a.prototype);return a},n_=function(){$APP.r(customElements.get("x-progress"))||customElements.define("x-progress",m_());return null};var h_=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),i_=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),l_="value max variant size label show-value indeterminate".split(" ");$APP.Sd(["x-progress-complete",new $APP.P(null,1,[$APP.U,new $APP.P(null,2,[$APP.ri,$APP.V,$APP.ak,$APP.V],null)],null)]);$APP.ka("baredom.exports.x_progress.init",n_);export const init=n_;
package/dist/x-radio.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ur=function(a,b,c){return a.setAttribute(b,c)},vr=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},wr=function(a){a=$APP.Q([$APP.Ek,$APP.Rk,$APP.sh,$APP.Dh,$APP.Mi,$APP.cj,$APP.vl,$APP.kj,$APP.Ui],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=
3
- $APP.G(b,$APP.kj);var c=$APP.G(b,$APP.Ui),d=$APP.G(b,$APP.Ek),e=$APP.G(b,$APP.Rk),g=$APP.G(b,$APP.sh),h=$APP.G(b,$APP.Dh),k=$APP.G(b,$APP.Mi),m=$APP.G(b,$APP.cj);b=$APP.G(b,$APP.vl);k=$APP.I(k);g=$APP.I(g);return $APP.Q([$APP.Lh,$APP.Gh,$APP.Sl,$APP.Wi,$APP.xh,$APP.Si,$APP.ui,$APP.sj,$APP.Ol,$APP.Tk,$APP.W],[g,k?"true":"false",$APP.I(m),k,$APP.r(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.I(e)])},xr=function(a){var b=$APP.l(a,"__xRadioRefs");if($APP.r(b)){var c=$APP.l(b,"control");b=wr(a);var d=$APP.W.g(b),
4
- e=$APP.Wi.g(b);ur(c,"aria-checked",$APP.Gh.g(b));c.setAttribute("aria-disabled",$APP.r(d)?"true":"false");ur(c,"aria-required",$APP.r($APP.Lh.g(b))?"true":"false");ur(c,"aria-readonly",$APP.r($APP.Sl.g(b))?"true":"false");var g=$APP.Tk.g(b);$APP.r(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.sj.g(b);$APP.r(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Ol.g(b);$APP.r(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
- $APP.r(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");vr(a,"data-checked",e);vr(a,"data-disabled",d);a=$APP.l(a,"__xRadioInternals");return $APP.r(a)?a.setFormValue($APP.r(e)?$APP.ui.g(b):null):null}return null},yr=function(a){var b=a.getAttribute("name"),c=$APP.r(a.form)?a.form:null;c=$APP.r(c)?c:document;if($APP.r($APP.r(b)?$APP.O(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.D.i(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},zr=
6
- function(a){a=yr(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.l(d,"__xRadioRefs");return $APP.r(e)?(e=$APP.l(e,"control"),d=$APP.r(b)?$APP.D.i(d,b)?0:-1:$APP.D.i(d,c)?0:-1,e.tabIndex=d):null})},Ar=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.t(b.defaultPrevented)},Pr=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
- {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Qr=function(a){var b=wr(a),c=$APP.W.g(b),d=$APP.Sl.g(b),e=$APP.Wi.g(b);if($APP.r($APP.r(c)?c:$APP.r(d)?d:e))return null;b=$APP.ui.g(b);return Ar(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),xr(a),yr(a).forEach(function(g){var h=$APP.O(g,a);return $APP.r(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),xr(g)):null}),zr(a),Pr(a,{value:b,checked:!0})):null},Rr=function(a){a=$APP.l(a,"__xRadioRefs");return $APP.r(a)?
8
- $APP.l(a,"control").focus():null},Sr=function(a){return function(b){var c=b.key,d=yr(a),e=d.length,g=d.indexOf(a);if($APP.D.i(c," ")||$APP.D.i(c,"Enter"))return b.preventDefault(),Qr(a);if($APP.D.i(c,"ArrowDown")||$APP.D.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.hd(g+1,e)],Qr(b),Rr(b)}else if($APP.D.i(c,"ArrowUp")||$APP.D.i(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.hd(g-1,e)],Qr(b),Rr(b);return null}},Tr=function(a){return function(){return Qr(a)}},Ur=function(a){var b=
9
- $APP.l(a,"__xRadioRefs");if($APP.r(b)){var c=$APP.l(a,"__xRadioHandlers");if($APP.r(c)){b=$APP.l(b,"control");a.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Vr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return vr(this,c,$APP.I(d))}})},Wr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
- get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?ur(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},Yr=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Xr}});Vr(b,"checked","checked");Vr(b,"disabled","disabled");Vr(b,"readOnly","readonly");Vr(b,"required","required");Wr(b,"name","name");Wr(b,"value","value");b.connectedCallback=function(){if(!$APP.r($APP.l(this,
11
- "__xRadioRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:#6b7280;--x-radio-bg:#ffffff;--x-radio-checked-color:#2563eb;--x-radio-dot-size:6px;--x-radio-focus-ring:#60a5fa;--x-radio-disabled-opacity:0.45;--x-radio-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:#9ca3af;--x-radio-bg:#1f2937;--x-radio-checked-color:#3b82f6;--x-radio-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
12
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.r(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}Ur(this);c=$APP.l(this,"__xRadioRefs");$APP.r(c)&&(c=$APP.l(c,"control"),d=Tr(this),e=Sr(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
- g);xr(this);return zr(this)};b.disconnectedCallback=function(){return Ur(this)};b.attributeChangedCallback=function(){return xr(this)};b.formDisabledCallback=function(c){vr(this,"disabled",$APP.I(c));return xr(this)};b.formResetCallback=function(){this.removeAttribute("checked");return xr(this)};return a},Zr=function(){return $APP.r(customElements.get("x-radio"))?null:customElements.define("x-radio",Yr())};var Xr="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Sd(["x-radio-change-request",new $APP.P(null,2,[$APP.kl,!0,$APP.U,new $APP.P(null,3,[$APP.ui,$APP.Y,$APP.Ej,$APP.qj,$APP.Xk,$APP.qj],null)],null),"x-radio-change",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,2,[$APP.ui,$APP.Y,$APP.Hl,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_radio.init",Zr);export const init=Zr;
2
+ var vr=function(a,b,c){return a.setAttribute(b,c)},wr=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},xr=function(a){a=$APP.Q([$APP.Fk,$APP.Sk,$APP.sh,$APP.Dh,$APP.Mi,$APP.cj,$APP.wl,$APP.kj,$APP.Ui],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=
3
+ $APP.G(b,$APP.kj);var c=$APP.G(b,$APP.Ui),d=$APP.G(b,$APP.Fk),e=$APP.G(b,$APP.Sk),g=$APP.G(b,$APP.sh),h=$APP.G(b,$APP.Dh),k=$APP.G(b,$APP.Mi),m=$APP.G(b,$APP.cj);b=$APP.G(b,$APP.wl);k=$APP.I(k);g=$APP.I(g);return $APP.Q([$APP.Lh,$APP.Gh,$APP.Tl,$APP.Wi,$APP.xh,$APP.Si,$APP.ri,$APP.sj,$APP.Pl,$APP.Uk,$APP.W],[g,k?"true":"false",$APP.I(m),k,$APP.r(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.I(e)])},yr=function(a){var b=$APP.l(a,"__xRadioRefs");if($APP.r(b)){var c=$APP.l(b,"control");b=xr(a);var d=$APP.W.g(b),
4
+ e=$APP.Wi.g(b);vr(c,"aria-checked",$APP.Gh.g(b));c.setAttribute("aria-disabled",$APP.r(d)?"true":"false");vr(c,"aria-required",$APP.r($APP.Lh.g(b))?"true":"false");vr(c,"aria-readonly",$APP.r($APP.Tl.g(b))?"true":"false");var g=$APP.Uk.g(b);$APP.r(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.sj.g(b);$APP.r(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Pl.g(b);$APP.r(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
+ $APP.r(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");wr(a,"data-checked",e);wr(a,"data-disabled",d);a=$APP.l(a,"__xRadioInternals");return $APP.r(a)?a.setFormValue($APP.r(e)?$APP.ri.g(b):null):null}return null},zr=function(a){var b=a.getAttribute("name"),c=$APP.r(a.form)?a.form:null;c=$APP.r(c)?c:document;if($APP.r($APP.r(b)?$APP.O(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.D.i(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},Ar=
6
+ function(a){a=zr(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.l(d,"__xRadioRefs");return $APP.r(e)?(e=$APP.l(e,"control"),d=$APP.r(b)?$APP.D.i(d,b)?0:-1:$APP.D.i(d,c)?0:-1,e.tabIndex=d):null})},Br=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.t(b.defaultPrevented)},Cr=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
+ {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Dr=function(a){var b=xr(a),c=$APP.W.g(b),d=$APP.Tl.g(b),e=$APP.Wi.g(b);if($APP.r($APP.r(c)?c:$APP.r(d)?d:e))return null;b=$APP.ri.g(b);return Br(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),yr(a),zr(a).forEach(function(g){var h=$APP.O(g,a);return $APP.r(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),yr(g)):null}),Ar(a),Cr(a,{value:b,checked:!0})):null},Er=function(a){a=$APP.l(a,"__xRadioRefs");return $APP.r(a)?
8
+ $APP.l(a,"control").focus():null},Fr=function(a){return function(b){var c=b.key,d=zr(a),e=d.length,g=d.indexOf(a);if($APP.D.i(c," ")||$APP.D.i(c,"Enter"))return b.preventDefault(),Dr(a);if($APP.D.i(c,"ArrowDown")||$APP.D.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.hd(g+1,e)],Dr(b),Er(b)}else if($APP.D.i(c,"ArrowUp")||$APP.D.i(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.hd(g-1,e)],Dr(b),Er(b);return null}},Gr=function(a){return function(){return Dr(a)}},Hr=function(a){var b=
9
+ $APP.l(a,"__xRadioRefs");if($APP.r(b)){var c=$APP.l(a,"__xRadioHandlers");if($APP.r(c)){b=$APP.l(b,"control");a.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Ir=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return wr(this,c,$APP.I(d))}})},Jr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
+ get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?vr(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},Zr=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Kr}});Ir(b,"checked","checked");Ir(b,"disabled","disabled");Ir(b,"readOnly","readonly");Ir(b,"required","required");Jr(b,"name","name");Jr(b,"value","value");b.connectedCallback=function(){if(!$APP.r($APP.l(this,
11
+ "__xRadioRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:var(--x-color-border,#6b7280);--x-radio-bg:var(--x-color-surface,#ffffff);--x-radio-checked-color:var(--x-color-primary,#2563eb);--x-radio-dot-size:6px;--x-radio-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-radio-disabled-opacity:0.45;--x-radio-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:var(--x-color-border,#9ca3af);--x-radio-bg:var(--x-color-surface,#1f2937);--x-radio-checked-color:var(--x-color-primary,#3b82f6);--x-radio-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
12
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.r(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}Hr(this);c=$APP.l(this,"__xRadioRefs");$APP.r(c)&&(c=$APP.l(c,"control"),d=Gr(this),e=Fr(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
+ g);yr(this);return Ar(this)};b.disconnectedCallback=function(){return Hr(this)};b.attributeChangedCallback=function(){return yr(this)};b.formDisabledCallback=function(c){wr(this,"disabled",$APP.I(c));return yr(this)};b.formResetCallback=function(){this.removeAttribute("checked");return yr(this)};return a},$r=function(){return $APP.r(customElements.get("x-radio"))?null:customElements.define("x-radio",Zr())};var Kr="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Sd(["x-radio-change-request",new $APP.P(null,2,[$APP.ll,!0,$APP.U,new $APP.P(null,3,[$APP.ri,$APP.X,$APP.Ej,$APP.qj,$APP.Yk,$APP.qj],null)],null),"x-radio-change",new $APP.P(null,2,[$APP.ll,!1,$APP.U,new $APP.P(null,2,[$APP.ri,$APP.X,$APP.Il,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_radio.init",$r);export const init=$r;
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var gL=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.r($APP.r(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},hL=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.r($APP.r(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},iL=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.r($APP.r(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},jL=function(a){var b=$APP.l(a,
2
+ var LL=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.r($APP.r(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},ML=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.r($APP.r(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},NL=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.r($APP.r(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},OL=function(a){var b=$APP.l(a,
3
3
  "__xRippleRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:inline-block;position:relative;}:host([disabled]){cursor:default;}[part\x3dcontainer]{display:block;width:100%;height:100%;}";d.setAttribute("part","container");d.appendChild(e);g.setAttribute("part","filters");g.style.position="absolute";
4
- g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.P(null,3,[$APP.bi,b,$APP.Zi,d,$APP.xj,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.l(a,"__xRippleRefs")},mL=function(a){a=new $APP.P(null,4,[$APP.Mj,a.getAttribute("intensity"),$APP.oi,a.getAttribute("duration"),kL,a.getAttribute("frequency"),$APP.Rk,a.hasAttribute("disabled")],null);var b=$APP.N(a);a=$APP.G(b,$APP.Mj);var c=$APP.G(b,$APP.oi),
5
- d=$APP.G(b,kL);b=$APP.G(b,$APP.Rk);return new $APP.P(null,4,[$APP.Gj,gL(a),$APP.nk,hL(c),lL,iL(d),$APP.W,$APP.I(b)],null)},pL=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
- e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.S.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.S.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.P(null,3,[$APP.qk,d,nL,e,oL,g],null)},
7
- qL=function(a,b){var c=mL(a);if(!$APP.r($APP.W.g(c))){c=$APP.N(c);var d=$APP.G(c,$APP.Gj),e=$APP.G(c,$APP.nk),g=$APP.G(c,lL);c=jL(a);c=$APP.N(c);var h=$APP.G(c,$APP.Zi),k=$APP.G(c,$APP.xj),m=$APP.l(a,"__xRippleCounter");c="xr-"+$APP.S.g(m);a.__xRippleCounter=m+1;m=pL(k,c,g);m=$APP.N(m);var p=$APP.G(m,$APP.qk),q=$APP.G(m,nL),w=$APP.G(m,oL),x=b.clientX,y=b.clientY,A=performance.now(),C=$APP.l(a,"__xRippleFrames");b=$APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
- "url(#"+$APP.S.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(w.setAttribute("scale",""+$APP.S.g(d/2)),b=requestAnimationFrame(function(){w.setAttribute("scale","0");k.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function H(){var F=performance.now()-A;F=Math.min(1,F/e);var K=1-F;K=1-K*K*K;var X=g*(1-K*.7);w.setAttribute("scale",
9
- ""+$APP.S.g(d*(1-K)));q.setAttribute("baseFrequency",""+$APP.S.g(X));if(F>=1)return k.removeChild(p),k.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));F=requestAnimationFrame(H);return C.push(F)});C.push(b)}},rL=function(a){function b(c){c.button===0&&qL(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},sL=function(a){var b=$APP.l(a,"__xRippleFrames");if($APP.r(b)){for(var c=b.length,
10
- d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.l(a,"__xRippleRefs");if($APP.r(b)){c=$APP.N(b);b=$APP.G(c,$APP.xj);for(c=$APP.G(c,$APP.Zi);;)if(d=b.firstChild,$APP.r(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.l(a,"__xRippleHandler");$APP.r(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},tL=function(a){Object.defineProperty(a,"intensity",{get:function(){return gL(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
- this.setAttribute("intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return hL(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return iL(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
- ""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},vL=function(){var a=class extends HTMLElement{};a.observedAttributes=uL;a.prototype.connectedCallback=function(){jL(this);sL(this);rL(this);return null};a.prototype.disconnectedCallback=function(){sL(this);return null};a.prototype.attributeChangedCallback=
13
- function(){return null};tL(a.prototype);return a},wL=function(){$APP.r(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",vL());return null},nL=new $APP.M(null,"turb","turb",-804768361),kL=new $APP.M(null,"frequency-raw","frequency-raw",-1367383022),oL=new $APP.M(null,"disp","disp",-2047544334),lL=new $APP.M(null,"frequency","frequency",-1408891382);var uL=["intensity","duration","frequency","disabled"];$APP.Sd(["x-ripple-effect-start",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ok,$APP.V,$APP.Nk,$APP.V],null),$APP.kl,!1],null),"x-ripple-effect-end",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ok,$APP.V,$APP.Nk,$APP.V],null),$APP.kl,!1],null)]);$APP.ka("baredom.exports.x_ripple_effect.init",wL);export const init=wL;
4
+ g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.P(null,3,[$APP.bi,b,$APP.Zi,d,$APP.xj,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.l(a,"__xRippleRefs")},RL=function(a){a=new $APP.P(null,4,[$APP.Nj,a.getAttribute("intensity"),$APP.oi,a.getAttribute("duration"),PL,a.getAttribute("frequency"),$APP.Sk,a.hasAttribute("disabled")],null);var b=$APP.N(a);a=$APP.G(b,$APP.Nj);var c=$APP.G(b,$APP.oi),
5
+ d=$APP.G(b,PL);b=$APP.G(b,$APP.Sk);return new $APP.P(null,4,[$APP.Gj,LL(a),$APP.hk,ML(c),QL,NL(d),$APP.W,$APP.I(b)],null)},UL=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
+ e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.S.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.S.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.P(null,3,[$APP.kk,d,SL,e,TL,g],null)},
7
+ VL=function(a,b){var c=RL(a);if(!$APP.r($APP.W.g(c))){c=$APP.N(c);var d=$APP.G(c,$APP.Gj),e=$APP.G(c,$APP.hk),g=$APP.G(c,QL);c=OL(a);c=$APP.N(c);var h=$APP.G(c,$APP.Zi),k=$APP.G(c,$APP.xj),m=$APP.l(a,"__xRippleCounter");c="xr-"+$APP.S.g(m);a.__xRippleCounter=m+1;m=UL(k,c,g);m=$APP.N(m);var p=$APP.G(m,$APP.kk),q=$APP.G(m,SL),w=$APP.G(m,TL),x=b.clientX,y=b.clientY,A=performance.now(),B=$APP.l(a,"__xRippleFrames");b=$APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
+ "url(#"+$APP.S.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(w.setAttribute("scale",""+$APP.S.g(d/2)),b=requestAnimationFrame(function(){w.setAttribute("scale","0");k.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function H(){var F=performance.now()-A;F=Math.min(1,F/e);var M=1-F;M=1-M*M*M;var Y=g*(1-M*.7);w.setAttribute("scale",
9
+ ""+$APP.S.g(d*(1-M)));q.setAttribute("baseFrequency",""+$APP.S.g(Y));if(F>=1)return k.removeChild(p),k.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));F=requestAnimationFrame(H);return B.push(F)});B.push(b)}},WL=function(a){function b(c){c.button===0&&VL(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},XL=function(a){var b=$APP.l(a,"__xRippleFrames");if($APP.r(b)){for(var c=b.length,
10
+ d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.l(a,"__xRippleRefs");if($APP.r(b)){c=$APP.N(b);b=$APP.G(c,$APP.xj);for(c=$APP.G(c,$APP.Zi);;)if(d=b.firstChild,$APP.r(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.l(a,"__xRippleHandler");$APP.r(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},YL=function(a){Object.defineProperty(a,"intensity",{get:function(){return LL(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
+ this.setAttribute("intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return ML(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return NL(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
+ ""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},$L=function(){var a=class extends HTMLElement{};a.observedAttributes=ZL;a.prototype.connectedCallback=function(){OL(this);XL(this);WL(this);return null};a.prototype.disconnectedCallback=function(){XL(this);return null};a.prototype.attributeChangedCallback=
13
+ function(){return null};YL(a.prototype);return a},aM=function(){$APP.r(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",$L());return null},SL=new $APP.K(null,"turb","turb",-804768361),PL=new $APP.K(null,"frequency-raw","frequency-raw",-1367383022),TL=new $APP.K(null,"disp","disp",-2047544334),QL=new $APP.K(null,"frequency","frequency",-1408891382);var ZL=["intensity","duration","frequency","disabled"];$APP.Sd(["x-ripple-effect-start",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Pk,$APP.V,$APP.Ok,$APP.V],null),$APP.ll,!1],null),"x-ripple-effect-end",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Pk,$APP.V,$APP.Ok,$APP.V],null),$APP.ll,!1],null)]);$APP.ka("baredom.exports.x_ripple_effect.init",aM);export const init=aM;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var DR=function(a){return new $APP.P(null,1,[$APP.dl,a],null)},ER=function(a){var b=$APP.l(a,"__xScrollParallaxRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
- d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);g.setAttribute("part","live");g.setAttribute("aria-live","polite");g.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xScrollParallaxRefs=new $APP.P(null,4,[$APP.bi,b,$APP.Hi,d,$APP.Fi,e,$APP.$h,g],null);return $APP.l(a,"__xScrollParallaxRefs")},LR=function(a){a=new $APP.P(null,5,[$APP.vi,a.getAttribute("direction"),FR,a.getAttribute("source"),GR,a.getAttribute("easing"),$APP.Ai,
4
- $APP.r(a.hasAttribute("disabled"))?"":null,$APP.Oh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.G(b,$APP.vi),d=$APP.G(b,FR),e=$APP.G(b,GR);a=$APP.G(b,$APP.Ai);b=$APP.G(b,$APP.Oh);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.J(HR,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.J(IR,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.J(JR,e)?e:"none";return new $APP.P(null,5,[$APP.Ni,c,$APP.yk,d,KR,e,$APP.W,a!=null,$APP.T,$APP.r(b)?
5
- b:""],null)},MR=function(a){a=ER(a);a=$APP.N(a);return $APP.G(a,$APP.Fi).assignedElements()},NR=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.r(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.r(isNaN(c))?0:c):c=0;return new $APP.P(null,4,[$APP.Yi,b,$APP.Rh,c,$APP.Ph,$APP.D.i("fade",a.getAttribute("data-opacity")),$APP.xi,$APP.D.i("grow",a.getAttribute("data-scale"))],null)},OR=function(a){var b=
6
- $APP.l(a,"__xScrollParallaxChildCache");if($APP.r(b))return b;b=MR(a);b=$APP.af.o($APP.ie,$APP.de.g(NR),$APP.wc(b));return a.__xScrollParallaxChildCache=b},PR=function(a){a.__xScrollParallaxChildCache=null},QR=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.r($APP.r(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.r(isNaN(a))?.2:a/100):.2},RR=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
- a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.r(b?b:isNaN(a))?.85:a},SR=function(a,b,c){b=new CustomEvent(b,{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},TR=function(a){var b=function(){var H=$APP.l(a,"__xScrollParallaxModel");return $APP.r(H)?H:LR(a)}();if(!$APP.r($APP.W.g(b))){var c=a.getBoundingClientRect();b=$APP.D.i("vertical",$APP.Ni.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.Yg.i(0,$APP.Zg.i(1,(d-c.top)/(d+
8
- c.height)));c=$APP.l(a,"__xScrollParallaxLastProg");d=MR(a);for(var h=OR(a),k=QR(a),m=RR(a),p=d.length,q=0;;)if(q<p){if(q<$APP.B(h)){var w=d[q],x=$APP.rc(h,q),y=$APP.N(x),A=$APP.G(y,$APP.Yi),C=$APP.G(y,$APP.Rh);x=$APP.G(y,$APP.Ph);y=$APP.G(y,$APP.xi);A=(g-.5)*e*(A-1)+C;var E=b?"translateY("+$APP.S.g(A)+"px)":"translateX("+$APP.S.g(A)+"px)";A=$APP.r(y)?function(){var H=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.S.g(E)+" scale("+$APP.S.g(H)+")"}():E;w.style.transform=A;$APP.r(x)&&(w.style.opacity=""+
9
- $APP.S.g(g<k?g/k:g>1-k?(1-g)/k:1))}q+=1}else break;if(c==null||Math.abs(g-c)>.001)a.__xScrollParallaxLastProg=g,SR(a,"x-scroll-parallax-progress",DR(g))}a.__xScrollParallaxRAF=null},UR=function(a){return $APP.r(function(){var b=a.isConnected;return $APP.r(b)?(b=$APP.l(a,"__xScrollParallaxVisible"),$APP.r(b)?!$APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.r($APP.l(a,"__xScrollParallaxRAF"))?null:$APP.n(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return TR(a)})):
10
- null},VR=function(a){a=$APP.l(a,"__xScrollParallaxHandlers");$APP.r($APP.r(a)?$APP.t($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},WR=function(a){a=$APP.l(a,"__xScrollParallaxHandlers");$APP.r($APP.r(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},YR=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},ZR=function(a,b){b=b[0].isIntersecting;
11
- var c=$APP.N($APP.l(a,"__xScrollParallaxRefs"));c=$APP.G(c,$APP.$h);a.__xScrollParallaxVisible=b;if($APP.r(b))return VR(a),TR(a),YR(c,"Parallax section entered viewport"),SR(a,"x-scroll-parallax-enter",DR(function(){var d=$APP.l(a,"__xScrollParallaxLastProg");return $APP.r(d)?d:0}()));WR(a);YR(c,"Parallax section left viewport");return SR(a,"x-scroll-parallax-leave",DR(function(){var d=$APP.l(a,"__xScrollParallaxLastProg");return $APP.r(d)?d:0}()))},$R=function(a){function b(){return $APP.r($APP.l(a,
12
- "__xScrollParallaxVisible"))?(PR(a),TR(a)):null}function c(){PR(a);return $APP.r($APP.l(a,"__xScrollParallaxVisible"))?TR(a):null}var d=ER(a);d=$APP.N(d);$APP.G(d,$APP.Fi).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.n(a,"__xScrollParallaxHandlers",{scroll:function(){return UR(a)},slot:c,resize:b,scrollAttached:!1})},aS=function(a){var b=$APP.l(a,"__xScrollParallaxHandlers");if($APP.r(b)){WR(a);var c=$APP.l(a,"__xScrollParallaxRefs");if($APP.r(c)){c=$APP.Fi.g(c);var d=
13
- $APP.l(b,"slot");$APP.r(d)&&c.removeEventListener("slotchange",d)}b=$APP.l(b,"resize");$APP.r(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollParallaxRAF");$APP.r(b)&&(cancelAnimationFrame(b),a.__xScrollParallaxRAF=null);a.__xScrollParallaxHandlers=null},bS=function(a){var b=$APP.l(a,"__xScrollParallaxIO");$APP.r(b)&&b.disconnect();b=new IntersectionObserver(function(c){return ZR(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},cS=function(a){var b=LR(a);if($APP.O($APP.l(a,
14
- "__xScrollParallaxModel"),b)){var c=$APP.N(b),d=$APP.G(c,$APP.Ni);$APP.G(c,KR);b=$APP.G(c,$APP.W);var e=$APP.G(c,$APP.T),g=ER(a);g=$APP.N(g);var h=$APP.G(g,$APP.Hi);$APP.G(g,$APP.$h);a.setAttribute("data-direction",d);$APP.u(e)?h.setAttribute("aria-label",e):h.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.l(a,"__xScrollParallaxVisible");$APP.r($APP.r(c)?$APP.t(b):c)&&TR(a)}},dS=function(a){Object.defineProperty(a,"direction",{get:function(){var b=this.getAttribute("direction");return $APP.r(b)?
2
+ var iS=function(a){return new $APP.P(null,1,[$APP.el,a],null)},jS=function(a){var b=$APP.l(a,"__xScrollParallaxRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
+ d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);g.setAttribute("part","live");g.setAttribute("aria-live","polite");g.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xScrollParallaxRefs=new $APP.P(null,4,[$APP.bi,b,$APP.Hi,d,$APP.Fi,e,$APP.$h,g],null);return $APP.l(a,"__xScrollParallaxRefs")},qS=function(a){a=new $APP.P(null,5,[$APP.si,a.getAttribute("direction"),kS,a.getAttribute("source"),lS,a.getAttribute("easing"),$APP.Ai,
4
+ $APP.r(a.hasAttribute("disabled"))?"":null,$APP.Oh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.G(b,$APP.si),d=$APP.G(b,kS),e=$APP.G(b,lS);a=$APP.G(b,$APP.Ai);b=$APP.G(b,$APP.Oh);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.J(mS,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.J(nS,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.J(oS,e)?e:"none";return new $APP.P(null,5,[$APP.Ni,c,$APP.zk,d,pS,e,$APP.W,a!=null,$APP.T,$APP.r(b)?
5
+ b:""],null)},rS=function(a){a=jS(a);a=$APP.N(a);return $APP.G(a,$APP.Fi).assignedElements()},sS=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.r(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.r(isNaN(c))?0:c):c=0;return new $APP.P(null,4,[$APP.Yi,b,$APP.Rh,c,$APP.Ph,$APP.D.i("fade",a.getAttribute("data-opacity")),$APP.ui,$APP.D.i("grow",a.getAttribute("data-scale"))],null)},tS=function(a){var b=
6
+ $APP.l(a,"__xScrollParallaxChildCache");if($APP.r(b))return b;b=rS(a);b=$APP.af.o($APP.ie,$APP.de.g(sS),$APP.wc(b));return a.__xScrollParallaxChildCache=b},uS=function(a){a.__xScrollParallaxChildCache=null},vS=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.r($APP.r(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.r(isNaN(a))?.2:a/100):.2},wS=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
+ a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.r(b?b:isNaN(a))?.85:a},xS=function(a,b,c){b=new CustomEvent(b,{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},yS=function(a){var b=function(){var H=$APP.l(a,"__xScrollParallaxModel");return $APP.r(H)?H:qS(a)}();if(!$APP.r($APP.W.g(b))){var c=a.getBoundingClientRect();b=$APP.D.i("vertical",$APP.Ni.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.Yg.i(0,$APP.Zg.i(1,(d-c.top)/(d+
8
+ c.height)));c=$APP.l(a,"__xScrollParallaxLastProg");d=rS(a);for(var h=tS(a),k=vS(a),m=wS(a),p=d.length,q=0;;)if(q<p){if(q<$APP.C(h)){var w=d[q],x=$APP.rc(h,q),y=$APP.N(x),A=$APP.G(y,$APP.Yi),B=$APP.G(y,$APP.Rh);x=$APP.G(y,$APP.Ph);y=$APP.G(y,$APP.ui);A=(g-.5)*e*(A-1)+B;var E=b?"translateY("+$APP.S.g(A)+"px)":"translateX("+$APP.S.g(A)+"px)";A=$APP.r(y)?function(){var H=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.S.g(E)+" scale("+$APP.S.g(H)+")"}():E;w.style.transform=A;$APP.r(x)&&(w.style.opacity=""+
9
+ $APP.S.g(g<k?g/k:g>1-k?(1-g)/k:1))}q+=1}else break;if(c==null||Math.abs(g-c)>.001)a.__xScrollParallaxLastProg=g,xS(a,"x-scroll-parallax-progress",iS(g))}a.__xScrollParallaxRAF=null},zS=function(a){return $APP.r(function(){var b=a.isConnected;return $APP.r(b)?(b=$APP.l(a,"__xScrollParallaxVisible"),$APP.r(b)?!$APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.r($APP.l(a,"__xScrollParallaxRAF"))?null:$APP.n(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return yS(a)})):
10
+ null},AS=function(a){a=$APP.l(a,"__xScrollParallaxHandlers");$APP.r($APP.r(a)?$APP.t($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},BS=function(a){a=$APP.l(a,"__xScrollParallaxHandlers");$APP.r($APP.r(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},CS=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},DS=function(a,b){b=b[0].isIntersecting;
11
+ var c=$APP.N($APP.l(a,"__xScrollParallaxRefs"));c=$APP.G(c,$APP.$h);a.__xScrollParallaxVisible=b;if($APP.r(b))return AS(a),yS(a),CS(c,"Parallax section entered viewport"),xS(a,"x-scroll-parallax-enter",iS(function(){var d=$APP.l(a,"__xScrollParallaxLastProg");return $APP.r(d)?d:0}()));BS(a);CS(c,"Parallax section left viewport");return xS(a,"x-scroll-parallax-leave",iS(function(){var d=$APP.l(a,"__xScrollParallaxLastProg");return $APP.r(d)?d:0}()))},ES=function(a){function b(){return $APP.r($APP.l(a,
12
+ "__xScrollParallaxVisible"))?(uS(a),yS(a)):null}function c(){uS(a);return $APP.r($APP.l(a,"__xScrollParallaxVisible"))?yS(a):null}var d=jS(a);d=$APP.N(d);$APP.G(d,$APP.Fi).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.n(a,"__xScrollParallaxHandlers",{scroll:function(){return zS(a)},slot:c,resize:b,scrollAttached:!1})},FS=function(a){var b=$APP.l(a,"__xScrollParallaxHandlers");if($APP.r(b)){BS(a);var c=$APP.l(a,"__xScrollParallaxRefs");if($APP.r(c)){c=$APP.Fi.g(c);var d=
13
+ $APP.l(b,"slot");$APP.r(d)&&c.removeEventListener("slotchange",d)}b=$APP.l(b,"resize");$APP.r(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollParallaxRAF");$APP.r(b)&&(cancelAnimationFrame(b),a.__xScrollParallaxRAF=null);a.__xScrollParallaxHandlers=null},GS=function(a){var b=$APP.l(a,"__xScrollParallaxIO");$APP.r(b)&&b.disconnect();b=new IntersectionObserver(function(c){return DS(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},HS=function(a){var b=qS(a);if($APP.O($APP.l(a,
14
+ "__xScrollParallaxModel"),b)){var c=$APP.N(b),d=$APP.G(c,$APP.Ni);$APP.G(c,pS);b=$APP.G(c,$APP.W);var e=$APP.G(c,$APP.T),g=jS(a);g=$APP.N(g);var h=$APP.G(g,$APP.Hi);$APP.G(g,$APP.$h);a.setAttribute("data-direction",d);$APP.u(e)?h.setAttribute("aria-label",e):h.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.l(a,"__xScrollParallaxVisible");$APP.r($APP.r(c)?$APP.t(b):c)&&yS(a)}},IS=function(a){Object.defineProperty(a,"direction",{get:function(){var b=this.getAttribute("direction");return $APP.r(b)?
15
15
  b:"vertical"},set:function(b){return $APP.r(b)?this.setAttribute("direction",""+$APP.S.g(b)):this.removeAttribute("direction")},enumerable:!0,configurable:!0});Object.defineProperty(a,"source",{get:function(){var b=this.getAttribute("source");return $APP.r(b)?b:"document"},set:function(b){return $APP.r(b)?this.setAttribute("source",""+$APP.S.g(b)):this.removeAttribute("source")},enumerable:!0,configurable:!0});Object.defineProperty(a,"easing",{get:function(){var b=this.getAttribute("easing");return $APP.r(b)?
16
16
  b:"none"},set:function(b){return $APP.r(b)?this.setAttribute("easing",""+$APP.S.g(b)):this.removeAttribute("easing")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?
17
- $APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollParallaxLastProg");return $APP.r(b)?b:0},enumerable:!0,configurable:!0})},fS=function(){var a=class extends HTMLElement{};a.observedAttributes=eS;a.prototype.connectedCallback=function(){ER(this);aS(this);$R(this);bS(this);cS(this);return null};a.prototype.disconnectedCallback=function(){for(var b=MR(this),
18
- c=b.length,d=0;;)if(d<c){var e=b[d];e.style.transform="";e.style.opacity="";d+=1}else break;$APP.r($APP.l(this,"__xScrollParallaxVisible"))&&(b=$APP.l(this,"__xScrollParallaxLastProg"),SR(this,"x-scroll-parallax-leave",DR($APP.r(b)?b:0)));aS(this);b=$APP.l(this,"__xScrollParallaxIO");$APP.r(b)&&(b.disconnect(),this.__xScrollParallaxIO=null);PR(this);this.__xScrollParallaxVisible=!1;return this.__xScrollParallaxLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&cS(this);
19
- return null};dS(a.prototype);return a},gS=function(){$APP.r(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",fS());return null},FR=new $APP.M(null,"source-raw","source-raw",396083546),GR=new $APP.M(null,"easing-raw","easing-raw",440485546),KR=new $APP.M(null,"easing","easing",735372043);var eS=["direction","source","easing","disabled","label"];$APP.Sd(["x-scroll-parallax-enter",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.dl,$APP.V],null),$APP.kl,!1],null),"x-scroll-parallax-leave",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.dl,$APP.V],null),$APP.kl,!1],null),"x-scroll-parallax-progress",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.dl,$APP.V],null),$APP.kl,!1],null)]);
20
- var HR=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),IR=new $APP.R(null,new $APP.P(null,1,["document",null],null),null),JR=new $APP.R(null,new $APP.P(null,2,["none",null,"smooth",null],null),null);$APP.ka("baredom.exports.x_scroll_parallax.init",gS);export const init=gS;
17
+ $APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollParallaxLastProg");return $APP.r(b)?b:0},enumerable:!0,configurable:!0})},KS=function(){var a=class extends HTMLElement{};a.observedAttributes=JS;a.prototype.connectedCallback=function(){jS(this);FS(this);ES(this);GS(this);HS(this);return null};a.prototype.disconnectedCallback=function(){for(var b=rS(this),
18
+ c=b.length,d=0;;)if(d<c){var e=b[d];e.style.transform="";e.style.opacity="";d+=1}else break;$APP.r($APP.l(this,"__xScrollParallaxVisible"))&&(b=$APP.l(this,"__xScrollParallaxLastProg"),xS(this,"x-scroll-parallax-leave",iS($APP.r(b)?b:0)));FS(this);b=$APP.l(this,"__xScrollParallaxIO");$APP.r(b)&&(b.disconnect(),this.__xScrollParallaxIO=null);uS(this);this.__xScrollParallaxVisible=!1;return this.__xScrollParallaxLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&HS(this);
19
+ return null};IS(a.prototype);return a},LS=function(){$APP.r(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",KS());return null},kS=new $APP.K(null,"source-raw","source-raw",396083546),lS=new $APP.K(null,"easing-raw","easing-raw",440485546),pS=new $APP.K(null,"easing","easing",735372043);var JS=["direction","source","easing","disabled","label"];$APP.Sd(["x-scroll-parallax-enter",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.el,$APP.V],null),$APP.ll,!1],null),"x-scroll-parallax-leave",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.el,$APP.V],null),$APP.ll,!1],null),"x-scroll-parallax-progress",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.el,$APP.V],null),$APP.ll,!1],null)]);
20
+ var mS=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),nS=new $APP.R(null,new $APP.P(null,1,["document",null],null),null),oS=new $APP.R(null,new $APP.P(null,2,["none",null,"smooth",null],null),null);$APP.ka("baredom.exports.x_scroll_parallax.init",LS);export const init=LS;