@vanelsas/baredom 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +26 -7
  3. package/dist/base.js +405 -403
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  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 +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +35 -0
  15. package/dist/x-chart.js +48 -48
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +9 -9
  18. package/dist/x-collapse.js +11 -11
  19. package/dist/x-color-picker.js +46 -0
  20. package/dist/x-command-palette.js +27 -32
  21. package/dist/x-container.js +6 -6
  22. package/dist/x-context-menu.js +20 -20
  23. package/dist/x-copy.js +23 -23
  24. package/dist/x-currency-field.js +23 -23
  25. package/dist/x-date-picker.js +42 -42
  26. package/dist/x-divider.js +10 -13
  27. package/dist/x-drawer.js +12 -12
  28. package/dist/x-dropdown.js +10 -10
  29. package/dist/x-fieldset.js +6 -6
  30. package/dist/x-file-download.js +7 -7
  31. package/dist/x-form-field.js +16 -16
  32. package/dist/x-form.js +10 -10
  33. package/dist/x-gaussian-blur.js +18 -18
  34. package/dist/x-grid.js +6 -6
  35. package/dist/x-kinetic-font.js +29 -28
  36. package/dist/x-kinetic-typography.js +39 -39
  37. package/dist/x-liquid-dock.js +39 -39
  38. package/dist/x-liquid-fill.js +45 -44
  39. package/dist/x-liquid-glass.js +47 -47
  40. package/dist/x-menu-item.js +10 -10
  41. package/dist/x-menu.js +11 -12
  42. package/dist/x-metaball-cursor.js +27 -28
  43. package/dist/x-modal.js +13 -13
  44. package/dist/x-morph-stack.js +39 -39
  45. package/dist/x-navbar.js +13 -13
  46. package/dist/x-neural-glow.js +34 -34
  47. package/dist/x-notification-center.js +10 -9
  48. package/dist/x-organic-divider.js +19 -19
  49. package/dist/x-organic-progress.js +38 -38
  50. package/dist/x-organic-shape.js +14 -14
  51. package/dist/x-pagination.js +16 -16
  52. package/dist/x-particle-button.js +53 -0
  53. package/dist/x-popover.js +15 -15
  54. package/dist/x-progress-circle.js +11 -11
  55. package/dist/x-progress.js +11 -11
  56. package/dist/x-radio.js +11 -11
  57. package/dist/x-ripple-effect.js +12 -12
  58. package/dist/x-scroll-parallax.js +19 -19
  59. package/dist/x-scroll-stack.js +19 -19
  60. package/dist/x-scroll-story.js +36 -36
  61. package/dist/x-scroll-timeline.js +47 -47
  62. package/dist/x-scroll.js +42 -42
  63. package/dist/x-search-field.js +15 -15
  64. package/dist/x-select.js +11 -11
  65. package/dist/x-sidebar.js +17 -17
  66. package/dist/x-skeleton.js +6 -6
  67. package/dist/x-slider.js +16 -16
  68. package/dist/x-soft-body.js +22 -22
  69. package/dist/x-spacer.js +5 -5
  70. package/dist/x-spinner.js +5 -5
  71. package/dist/x-splash.js +13 -13
  72. package/dist/x-stat.js +11 -11
  73. package/dist/x-stepper.js +16 -16
  74. package/dist/x-switch.js +10 -10
  75. package/dist/x-tab.js +8 -8
  76. package/dist/x-table-cell.js +24 -24
  77. package/dist/x-table-row.js +10 -10
  78. package/dist/x-table.js +16 -16
  79. package/dist/x-tabs.js +11 -11
  80. package/dist/x-text-area.js +19 -19
  81. package/dist/x-theme.js +25 -24
  82. package/dist/x-timeline-item.js +24 -24
  83. package/dist/x-timeline.js +9 -9
  84. package/dist/x-toast.js +25 -25
  85. package/dist/x-toaster.js +8 -8
  86. package/dist/x-typography.js +11 -11
  87. package/package.json +14 -2
@@ -0,0 +1,53 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var YU=function(a,b,c){return typeof a==="string"&&$APP.J(b,a)?a:c},ZU=function(a,b,c,d){if(a==null)return b;a=parseInt(a,10);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))},$U=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.mj);b=$APP.D(b,$APP.Mk);return $APP.r($APP.n(a)?a:b)},cV=function(a){var b=Math.random(),c=aV.g(a);a=c+bV.g(a);return b<c?"d":b<a?"f":"s"},dV=function(a,b,c){switch(c){case "ember":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[b*.4,b*.8],null);case "f":return new $APP.O(null,
3
+ 2,5,$APP.P,[b*.6,b*1.2],null);case "s":return new $APP.O(null,2,5,$APP.P,[b*.3,b*.7],null);default:return new $APP.O(null,2,5,$APP.P,[b*.5,b*1],null)}case "spark":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[b*.2,b*.5],null);case "f":return new $APP.O(null,2,5,$APP.P,[b*.4,b*.8],null);case "s":return new $APP.O(null,2,5,$APP.P,[b*.2,b*.4],null);default:return new $APP.O(null,2,5,$APP.P,[b*.3,b*.6],null)}case "burst":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[b*.3,b*.8],null);case "f":return new $APP.O(null,
4
+ 2,5,$APP.P,[b*.6,b*1.3],null);case "s":return new $APP.O(null,2,5,$APP.P,[b*.3,b*.7],null);default:return new $APP.O(null,2,5,$APP.P,[b*.5,b*1],null)}default:switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[b*.3,b*.7],null);case "f":return new $APP.O(null,2,5,$APP.P,[b*.7,b*1.3],null);case "s":return new $APP.O(null,2,5,$APP.P,[b*.3,b*.6],null);default:return new $APP.O(null,2,5,$APP.P,[b*.5,b],null)}}},eV=function(a,b){switch(b){case "ember":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,
5
+ [600,1200],null);case "f":return new $APP.O(null,2,5,$APP.P,[800,1600],null);case "s":return new $APP.O(null,2,5,$APP.P,[1200,2400],null);default:return new $APP.O(null,2,5,$APP.P,[700,1400],null)}case "spark":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[150,350],null);case "f":return new $APP.O(null,2,5,$APP.P,[250,500],null);case "s":return new $APP.O(null,2,5,$APP.P,[400,800],null);default:return new $APP.O(null,2,5,$APP.P,[200,400],null)}case "burst":switch(a){case "d":return new $APP.O(null,
6
+ 2,5,$APP.P,[200,500],null);case "f":return new $APP.O(null,2,5,$APP.P,[400,800],null);case "s":return new $APP.O(null,2,5,$APP.P,[600,1200],null);default:return new $APP.O(null,2,5,$APP.P,[300,600],null)}default:switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[300,600],null);case "f":return new $APP.O(null,2,5,$APP.P,[500,1E3],null);case "s":return new $APP.O(null,2,5,$APP.P,[800,1500],null);default:return new $APP.O(null,2,5,$APP.P,[400,800],null)}}},fV=function(a,b){switch(b){case "ember":switch(a){case "d":return new $APP.O(null,
7
+ 2,5,$APP.P,[.4,.8],null);case "f":return new $APP.O(null,2,5,$APP.P,[.5,.9],null);case "s":return new $APP.O(null,2,5,$APP.P,[.6,1],null);default:return new $APP.O(null,2,5,$APP.P,[.5,.9],null)}case "spark":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[.6,1],null);case "f":return new $APP.O(null,2,5,$APP.P,[.7,1],null);case "s":return new $APP.O(null,2,5,$APP.P,[.8,1],null);default:return new $APP.O(null,2,5,$APP.P,[.7,1],null)}default:switch(a){case "d":return new $APP.O(null,2,5,$APP.P,
8
+ [.3,.7],null);case "f":return new $APP.O(null,2,5,$APP.P,[.5,.9],null);case "s":return new $APP.O(null,2,5,$APP.P,[.7,1],null);default:return new $APP.O(null,2,5,$APP.P,[.4,.8],null)}}},gV=function(a,b){var c=2*(a+b)*Math.random();return c<a?new $APP.O(null,4,5,$APP.P,[c,0,0,-1],null):c<a+b?new $APP.O(null,4,5,$APP.P,[a,c-a,1,0],null):c<a+b+a?new $APP.O(null,4,5,$APP.P,[a-(c-(a+b)),b,0,1],null):new $APP.O(null,4,5,$APP.P,[0,b-(c-(a+b+a)),-1,0],null)},hV=function(a,b,c,d,e,g){a=Math.atan2(-(b-d/2),
9
+ -(a-c/2))+(Math.random()-.5)*2*g;e*=.5+Math.random()*.5;return new $APP.O(null,2,5,$APP.P,[e*Math.cos(a),e*Math.sin(a)],null)},iV=function(a,b,c){a[b]=c},jV=function(a){return $APP.k(a,"__xPBState")},kV=function(a){return $APP.C.i(!0,$APP.k(a,"__xPBHover"))},lV=function(a,b){a.__xPBHover=$APP.F(b)},mV=function(a,b){a.__xPBFocusVisible=$APP.F(b)},nV=function(a){return $APP.k(a,"__xPBActiveSource")},oV=function(a,b){a.__xPBActiveSource=b},pV=function(a,b){a.__xPBLastActivation=b},qV=function(a){return $APP.k(a,
10
+ "__xPBPhase")},tV=function(a,b){var c=$APP.k(a,"__xPBPhase");a.__xPBPhase=b;a=$APP.k(a,"__xPBState");$APP.n(a)&&(a=a.button,$APP.n(a)&&($APP.C.i(rV,b)?a.removeAttribute("data-phase"):a.setAttribute("data-phase",$APP.Wf(b)),$APP.C.i(sV,c)&&$APP.N(sV,b)&&a.style.removeProperty("filter")))},uV=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},vV=function(a){var b=a.getAttribute("form");b=$APP.n(b)?document.getElementById(b):null;return $APP.n(b)?b:a.closest("form")},
11
+ DV=function(a){a=$APP.xf([wV,$APP.mj,$APP.Nh,xV,$APP.Xi,$APP.Z,$APP.Tj,$APP.th,yV,$APP.Mk,$APP.U,$APP.Xj],[a.getAttribute("particle-size"),a.hasAttribute("disabled"),a.getAttribute("variant"),a.getAttribute("reassemble-speed"),a.getAttribute("mode"),a.getAttribute("type"),a.getAttribute("intensity"),a.getAttribute("size"),a.getAttribute("particle-count"),a.hasAttribute("loading"),a.getAttribute("label"),a.hasAttribute("pressed")]);var b=$APP.M(a);a=$APP.D(b,$APP.Xj);var c=$APP.D(b,wV),d=$APP.D(b,
12
+ $APP.Nh),e=$APP.D(b,$APP.mj),g=$APP.D(b,xV),h=$APP.D(b,$APP.Xi),l=$APP.D(b,$APP.Z),m=$APP.D(b,yV),p=$APP.D(b,$APP.Tj),q=$APP.D(b,$APP.th),v=$APP.D(b,$APP.Mk);b=$APP.D(b,$APP.U);return $APP.xf([wV,$APP.mj,$APP.Nh,xV,$APP.Xi,$APP.Z,$APP.Tj,$APP.th,yV,$APP.Mk,$APP.U,$APP.Xj],[ZU(c,3,1,8),$APP.F(e),YU(d,zV,"primary"),ZU(g,500,100,2E3),YU(h,AV,"dust"),YU(l,BV,"button"),ZU(p,50,1,100),YU(q,CV,"md"),ZU(m,40,10,100),$APP.F(v),typeof b==="string"?b:null,$APP.F(a)])},EV=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,
13
+ {detail:c,bubbles:!0,composed:!0,cancelable:!1}))},FV=function(a){return a.assignedNodes({flatten:!0})},GV=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},HV=function(a,b,c){a=Math.round($APP.ed(a,360))/360;c=Math.max(0,Math.min(1,c));b=Math.max(0,Math.min(1,b));if($APP.C.i(0,b))return a=Math.round(c*255),"rgb("+$APP.T.g(a)+","+$APP.T.g(a)+","+$APP.T.g(a)+")";b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;var d=Math.round(255*GV(c,b,a)),e=Math.round(255*GV(c,b,a-1/3));
14
+ return"rgb("+$APP.T.g(Math.round(255*GV(c,b,a+1/3)))+","+$APP.T.g(d)+","+$APP.T.g(e)+")"},JV=function(a){var b=getComputedStyle(jV(a).button).backgroundColor;IV.fillStyle="#000";IV.fillStyle=b;IV.fillRect(0,0,1,1);b=IV.getImageData(0,0,1,1).data;var c=new $APP.O(null,3,5,$APP.P,[b[0],b[1],b[2]],null);b=$APP.zc(c,0,null);var d=$APP.zc(c,1,null);c=$APP.zc(c,2,null);b/=255;d/=255;var e=c/255,g=Math.max(b,d,e),h=Math.min(b,d,e);c=(g+h)/2;if($APP.C.i(g,h))c=new $APP.O(null,3,5,$APP.P,[0,0,c],null);else{var l=
15
+ g-h;h=c>.5?l/(2-g-h):l/(g+h);b=$APP.C.i(g,b)?((d-e)/l+(d<e?6:0))/6:$APP.C.i(g,d)?((e-b)/l+2)/6:((b-d)/l+4)/6;c=new $APP.O(null,3,5,$APP.P,[b*360,h,c],null)}b=$APP.zc(c,0,null);d=$APP.zc(c,1,null);h=$APP.zc(c,2,null);c=HV(b,d,h);e=HV(b,Math.max(0,d-.1),Math.min(1,h+.25));g=HV(b+15,d,h);l=HV(b-15,d,Math.min(1,h+.05));b=HV(b,d*.3,Math.min(1,h+.45));a.__xPBColorPalette=[c,e,g,l,b]},KV=function(a){return document.createElement(a)},LV=function(a,b){var c=b.button,d=b["label-slot"],e=b["icon-start-slot"],
16
+ g=b["icon-end-slot"],h=b["spinner-slot"];b=DV(a);var l;a:{d=FV(d);for(var m=0;;)if(m<d.length){var p=d[m],q=p;if(l=$APP.C.i(q.nodeType,Node.TEXT_NODE))l=q.textContent,l=$APP.N("",($APP.n(l)?l:"").trim());if(!l){l=p;if(p=$APP.C.i(l.nodeType,Node.ELEMENT_NODE))p=l.textContent,p=$APP.N("",($APP.n(p)?p:"").trim());l=p}if(l){l=!0;break a}m+=1}else{l=!1;break a}l=void 0}e=FV(e).length>0;g=FV(g).length>0;h=FV(h).length>0;d=kV(a);m=nV(a)!=null;p=$APP.C.i(!0,$APP.k(a,"__xPBFocusVisible"));l=$APP.Yg.m(b,$APP.Mj,
17
+ l);q=$APP.M(l);l=$APP.D(q,$APP.U);q=$APP.D(q,$APP.Mj);l=$APP.r(q)&&$APP.Hg(l)?l:null;c.setAttribute("type",$APP.Z.g(b));q=$APP.mj.g(b);q=$APP.n(q)?q:$APP.Mk.g(b);c.disabled=q;q=$APP.M(b);q=$APP.D(q,$APP.Mk);q=$APP.n(q)?"true":null;$APP.n(q)?c.setAttribute("aria-busy",q):c.removeAttribute("aria-busy");$APP.n($APP.Xj.g(b))?c.setAttribute("aria-pressed","true"):c.removeAttribute("aria-pressed");$APP.n(l)?c.setAttribute("aria-label",l):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.Nh.g(b));
18
+ c.setAttribute("data-size",$APP.th.g(b));c.setAttribute("data-mode",$APP.Xi.g(b));c.setAttribute("data-loading",$APP.n($APP.Mk.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.mj.g(b))?"true":"false");c.setAttribute("data-hover",d?"true":"false");c.setAttribute("data-active",m?"true":"false");c.setAttribute("data-focus-visible",p?"true":"false");c.setAttribute("data-has-icon-start",e?"true":"false");c.setAttribute("data-has-icon-end",g?"true":"false");c.setAttribute("data-has-spinner",
19
+ h?"true":"false");a.setAttribute("data-variant",$APP.Nh.g(b));a.setAttribute("data-size",$APP.th.g(b));return a.setAttribute("data-mode",$APP.Xi.g(b))},MV=function(a,b,c,d,e,g){var h=$APP.k(a,"__xPBParticles");if($APP.n(h)){a:{for(var l=h.length,m=0;;)if(m<l){var p=h[m];if($APP.r(p.alive)){h=p;break a}m+=1}else{h=null;break a}h=void 0}if($APP.n(h)){l=DV(a);a=wV.g(l);var q=$APP.Xi.g(l);l=dV(b,a,q);a=$APP.zc(l,0,null);m=$APP.zc(l,1,null);p=eV(b,q);l=$APP.zc(p,0,null);p=$APP.zc(p,1,null);var v=fV(b,
20
+ q);q=$APP.zc(v,0,null);v=$APP.zc(v,1,null);a+=Math.random()*(m-a);l+=Math.random()*(p-l);m=q+Math.random()*(v-q);p=Math.random()<.12;q=Math.random();q=q<.4?0:q<.6?1:q<.75?2:q<.9?3:4;h.alive=!0;h.type=b;h.x=c;h.y=d;h.vx=e;h.vy=g;h.size=a;h.sizeY=$APP.C.i(b,"s")?a*(3+Math.random()*3):a;h.opacity=m;h.maxOpacity=m;h.lifetime=p?l*1.5:l;h.age=0;h.colorIdx=q;h.blur=$APP.C.i(b,"d")&&Math.random()<.3?1:0;h.homeX=c;h.homeY=d;h.tx0=c;h.ty0=d;h.tx1=c;h.ty1=d;h.tx2=c;h.ty2=d;h.tlen=0}}},TV=function(a,b){var c=
21
+ DV(a);c=NV($APP.Xi.g(c));var d=OV.g(c),e=function(){var y=$APP.k(a,"__xPBHoverAccum");return $APP.n(y)?y:0}()+b/16.667*d;b=function(){var y=$APP.k(a,"__xPBCanvasW");return $APP.n(y)?y:100}();d=function(){var y=$APP.k(a,"__xPBCanvasH");return $APP.n(y)?y:40}();a.__xPBHoverAccum=e-Math.floor(e);e=Math.floor(e);for(var g=0;;)if(g<e){var h=cV(c),l=$APP.C.i(PV,QV.g(c))&&Math.random()<.3?new $APP.O(null,4,5,$APP.P,[Math.random()*b,Math.random()*d,0,-1],null):gV(b,d),m=$APP.zc(l,0,null),p=$APP.zc(l,1,null),
22
+ q=$APP.zc(l,2,null);l=$APP.zc(l,3,null);var v=RV.g(c),x=SV.g(c);MV(a,h,m,p,q*.5+(Math.random()-.5)*x,l*.5+v+Math.random()*.3);g+=1}else break},YV=function(a){var b=DV(a),c=NV($APP.Xi.g(b));b=$APP.Tj.g(b)/50;b*=UV.g(c);var d=VV.g(c),e=WV.g(c),g=XV.g(c);e+=Math.round(Math.random()*(g-e));g=function(){var y=$APP.k(a,"__xPBPressX");$APP.n(y)||(y=$APP.k(a,"__xPBCanvasW"),y=($APP.n(y)?y:100)/2);return y}();for(var h=function(){var y=$APP.k(a,"__xPBPressY");$APP.n(y)||(y=$APP.k(a,"__xPBCanvasH"),y=($APP.n(y)?
23
+ y:40)/2);return y}(),l=function(){var y=$APP.k(a,"__xPBCanvasW");return $APP.n(y)?y:100}(),m=function(){var y=$APP.k(a,"__xPBCanvasH");return $APP.n(y)?y:40}(),p=0;;)if(p<e){var q=cV(c),v=hV(g,h,l,m,b,d),x=$APP.zc(v,0,null);v=$APP.zc(v,1,null);MV(a,q,g+(Math.random()-.5)*6,h+(Math.random()-.5)*6,x,v);p+=1}else break},ZV=function(a){var b=$APP.k(a,"__xPBRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xPBRaf=null)},aW=function(a){if($APP.n($APP.k(a,"__xPBRaf")))return null;iV(a,"__xPBLastTime",performance.now());
24
+ return iV(a,"__xPBRaf",requestAnimationFrame(function(){return $V.g?$V.g(a):$V.call(null,a)}))},bW=function(a){for(var b=a.length,c=0,d=0;;)if(c<b)d=$APP.n(a[c].alive)?d+1:d,c+=1;else return d},fW=function(a,b){var c=$APP.k(a,"__xPBParticles"),d=DV(a),e=NV($APP.Xi.g(d));d=cW.g(e);var g=$APP.Gj.g(e);e=dW.g(e);a=$APP.C.i(eW,qV(a));if($APP.n(c))for(var h=c.length,l=0;;)if(l<h){var m=c[l];if($APP.n(m.alive)){var p=m.age+b,q=m.lifetime;m.age=p;if(p>=q)m.alive=!1;else{var v=m.vx*g,x=(m.vy+d)*g;v=a?v+(m.homeX-
25
+ m.x)*e:v;x=a?x+(m.homeY-m.y)*e:x;m.vx=v;m.vy=x;m.x+=b/16.667*v;m.y+=b/16.667*x;p/=q;m.opacity=m.maxOpacity*(p>.6?1-(p-.6)/.4:1);$APP.C.i("s",m.type)&&(p=m.tlen,m.tx2=m.tx1,m.ty2=m.ty1,m.tx1=m.tx0,m.ty1=m.ty0,m.tx0=m.x,m.ty0=m.y,p<3&&(m.tlen=p+1))}}l+=1}else break},iW=function(a){var b=$APP.k(a,"__xPBCtx"),c=$APP.k(a,"__xPBCanvas"),d=c.width,e=c.height;c=Math.min(2,devicePixelRatio);var g=$APP.k(a,"__xPBPad");g=($APP.n(g)?g:24)*c;var h=$APP.k(a,"__xPBParticles"),l=$APP.k(a,"__xPBColorPalette");a=DV(a);
26
+ var m=NV($APP.Xi.g(a));a=gW.g(m);m=hW.g(m);b.clearRect(0,0,d,e);if($APP.n($APP.n(h)?l:h))for(d=h.length,e=0;;)if(e<d){var p=h[e];if($APP.n(p.alive)){var q=p.x*c+g,v=p.y*c+g,x=p.size*c,y=p.opacity,A=l[p.colorIdx],B=p.type;b.fillStyle=A;switch(B){case "d":$APP.n(a)&&(b.globalAlpha=y*.1,b.beginPath(),b.arc(q,v,x*2.5,0,2*Math.PI),b.fill(),b.globalAlpha=y*.2,b.beginPath(),b.arc(q,v,x*1.6,0,2*Math.PI),b.fill());b.globalAlpha=y;b.beginPath();b.arc(q,v,x,0,2*Math.PI);b.fill();$APP.n(m)&&(b.globalAlpha=Math.min(1,
27
+ y*1.5),b.fillStyle="#ffffff",b.beginPath(),b.arc(q,v,x*.3,0,2*Math.PI),b.fill(),b.fillStyle=A);$APP.r(a)&&p.blur>0&&(b.globalAlpha=y*.15,b.beginPath(),b.arc(q,v,x*1.5,0,2*Math.PI),b.fill());break;case "f":A=x;x*=.3;$APP.n(a)&&(b.globalAlpha=y*.08,b.beginPath(),b.arc(q,v,A*2,0,2*Math.PI),b.fill());b.globalAlpha=y;b.beginPath();b.roundRect(q-A,v-A,A*2,A*2,x);b.fill();break;case "s":B=p.sizeY*c;var E=p.tlen,H=p.tx1*c+g,G=p.ty1*c+g,I=p.tx2*c+g;p=p.ty2*c+g;E>0&&(b.globalAlpha=y*.15,b.fillRect(I-x*.5,p-
28
+ B*.5,x,B),E>1&&(b.globalAlpha=y*.35,b.fillRect(H-x*.5,G-B*.5,x,B)));b.globalAlpha=y;b.fillRect(q-x*.5,v-B*.5,x,B);$APP.n(m)&&(b.globalAlpha=Math.min(1,y*1.3),b.fillStyle="#ffffff",b.fillRect(q-x*.3,v-B*.3,x*.6,B*.6),b.fillStyle=A)}}e+=1}else break;b.globalAlpha=1},jW=function(a,b){var c=new ResizeObserver(function(d){if(d.length>0){var e=d[0].contentRect;d=e.width;e=e.height;if(d>0&&e>0){var g=$APP.k(a,"__xPBCanvas"),h=Math.min(2,devicePixelRatio),l=Math.floor((d+48)*h);h=Math.floor((e+48)*h);l>0&&
29
+ h>0&&(g.width=l,g.height=h,a.__xPBCanvasW=d,a.__xPBCanvasH=e,a.__xPBPad=24);return JV(a)}}return null});c.observe(b);a.__xPBResizeObs=c},kW=function(a){var b=nV(a);return $APP.n(b)?(oV(a,null),EV(a,"press-end",{source:b}),b=jV(a),$APP.n(b)?LV(a,b):null):null},mW=function(a){$U(DV(a))||(lV(a,!1),oV(a,null),$APP.N(rV,qV(a))&&tV(a,lW))},nW=function(a){a=jV(a);if($APP.n(a)){var b=a.button;b.setAttribute("data-glow-pulse","true");b.addEventListener("animationend",function d(){b.removeAttribute("data-glow-pulse");
30
+ return b.removeEventListener("animationend",d)},{once:!0})}},oW=function(a,b){b.addEventListener("pointermove",function(c){var d=b.getBoundingClientRect(),e=(c.clientX-d.left)/d.width*100;c=(c.clientY-d.top)/d.height*100;b.style.setProperty("--_mx",""+$APP.T.g(e)+"%");b.style.setProperty("--_my",""+$APP.T.g(c)+"%");a.__xPBPointerMX=e;a.__xPBPointerMY=c},{passive:!0})},pW=function(a,b){b.addEventListener("pointerenter",function(){if($U(DV(a))){if(kV(a))return null;lV(a,!0);LV(a,jV(a));EV(a,"hover-start",
31
+ {});if(uV())return null;var c=qV(a);var d=new $APP.S(null,new $APP.R(null,2,[rV,null,lW,null],null),null);c=d.g?d.g(c):d.call(null,c);if($APP.n(c))return tV(a,sV),a.__xPBHoverAccum=0,c=performance.now(),a.__xPBHoverStart=c,aW(a)}return null});b.addEventListener("pointerleave",function(){if(kV(a)&&(lV(a,!1),LV(a,jV(a)),$U(DV(a))&&EV(a,"hover-end",{}),$APP.C.i(sV,qV(a)))){tV(a,lW);var c=jV(a);$APP.n(c)&&c.button.style.removeProperty("filter")}return $APP.C.i("pointer",nV(a))?kW(a):null})},rW=function(a,
32
+ b){b.addEventListener("pointerdown",function(c){if($U(DV(a))){var d=b.getBoundingClientRect(),e=c.clientY-d.top;a.__xPBPressX=c.clientX-d.left;a.__xPBPressY=e;if($APP.n(nV(a)))return null;pV(a,"pointer");oV(a,"pointer");LV(a,jV(a));return EV(a,"press-start",{source:"pointer"})}return null});b.addEventListener("pointerup",function(){return $APP.C.i("pointer",nV(a))?kW(a):null});b.addEventListener("pointercancel",function(){return $APP.C.i("pointer",nV(a))?kW(a):null});b.addEventListener("keydown",
33
+ function(c){c=c.key;if($U(DV(a))&&($APP.C.i(c,"Enter")||$APP.C.i(c," "))){if($APP.C.i("keyboard",nV(a)))return null;iV(a,"__xPBPressX",function(){var d=$APP.k(a,"__xPBCanvasW");return $APP.n(d)?d:100}()/2);iV(a,"__xPBPressY",function(){var d=$APP.k(a,"__xPBCanvasH");return $APP.n(d)?d:40}()/2);pV(a,"keyboard");oV(a,"keyboard");LV(a,jV(a));return EV(a,"press-start",{source:"keyboard"})}return null});b.addEventListener("keyup",function(c){c=c.key;return $APP.C.i("keyboard",nV(a))&&($APP.C.i(c,"Enter")||
34
+ $APP.C.i(c," "))?kW(a):null});b.addEventListener("blur",function(){return $APP.n(nV(a))?kW(a):null});b.addEventListener("click",function(){if($U(DV(a))){var c=function(){var e=$APP.k(a,"__xPBLastActivation");return $APP.n(e)?e:"programmatic"}(),d=DV(a);EV(a,"press",{source:c});nW(a);!uV()&&$APP.r(function(){var e=qV(a),g=new $APP.S(null,new $APP.R(null,2,[eW,null,qW,null],null),null);return g.g?g.g(e):g.call(null,e)}())&&(tV(a,qW),a.__xPBBurstFrame=0,iV(a,"__xPBBurstStart",performance.now()),EV(a,
35
+ "burst",{mode:$APP.Xi.g(d),"press-x":function(){var e=$APP.k(a,"__xPBPressX");return $APP.n(e)?e:0}(),"press-y":function(){var e=$APP.k(a,"__xPBPressY");return $APP.n(e)?e:0}()}),aW(a));pV(a,null);c=$APP.Z.g(d);d=vV(a);return $APP.n(d)?$APP.C.i(c,"submit")?d.requestSubmit():$APP.C.i(c,"reset")?d.reset():null:null}return null})},sW=function(a,b){b.addEventListener("focus",function(){var c=b.matches(":focus-visible");mV(a,c);LV(a,jV(a));return $APP.n(c)?EV(a,"focus-visible",{}):null});b.addEventListener("blur",
36
+ function(){mV(a,!1);return LV(a,jV(a))})},tW=function(a,b){function c(){return LV(a,b)}b["label-slot"].addEventListener("slotchange",c);b["icon-start-slot"].addEventListener("slotchange",c);b["icon-end-slot"].addEventListener("slotchange",c);b["spinner-slot"].addEventListener("slotchange",c)},uW=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.Cg(this,c,$APP.F(d))}})},wW=function(){var a=class extends HTMLElement{};
37
+ a.formAssociated=!0;a.observedAttributes=vW;a.prototype.connectedCallback=function(){if(!$APP.n(jV(this))){var b=this.attachShadow({mode:"open"});var c=KV("style"),d=KV("button"),e=KV("span"),g=KV("canvas"),h=KV("span"),l=KV("span"),m=KV("span"),p=KV("span"),q=KV("span"),v=KV("span"),x=KV("slot"),y=KV("slot"),A=KV("slot"),B=KV("slot");c.textContent=":host{display:inline-block;vertical-align:middle;position:relative;color-scheme:light dark;--x-particle-button-radius:var(--x-radius-md,0.75rem);--x-particle-button-gap:0.5rem;--x-particle-button-padding-inline:0.95rem;--x-particle-button-height-sm:2rem;--x-particle-button-height-md:2.5rem;--x-particle-button-height-lg:3rem;--x-particle-button-font-size-sm:0.875rem;--x-particle-button-font-size-md:0.9375rem;--x-particle-button-font-size-lg:1rem;--x-particle-button-font-weight:600;--x-particle-button-icon-size-sm:0.875rem;--x-particle-button-icon-size-md:1rem;--x-particle-button-icon-size-lg:1.125rem;--x-particle-button-spinner-size:1em;--x-particle-button-spinner-stroke:2px;--x-particle-button-shadow:var(--x-shadow-sm,0 1px 2px rgba(15,23,42,0.08),0 1px 1px rgba(15,23,42,0.04));--x-particle-button-shadow-hover:var(--x-shadow-md,0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06));--x-particle-button-shadow-active:var(--x-shadow-sm,0 1px 2px rgba(15,23,42,0.08));--x-particle-button-bg:var(--x-color-primary,#2563eb);--x-particle-button-bg-hover:var(--x-color-primary-hover,#1d4ed8);--x-particle-button-bg-active:var(--x-color-primary-active,#1e40af);--x-particle-button-bg-disabled:#cbd5e1;--x-particle-button-fg:#ffffff;--x-particle-button-fg-disabled:#ffffff;--x-particle-button-border:transparent;--x-particle-button-secondary-bg:var(--x-color-surface,#ffffff);--x-particle-button-secondary-bg-hover:var(--x-color-surface-hover,#f8fafc);--x-particle-button-secondary-bg-active:var(--x-color-surface-active,#f1f5f9);--x-particle-button-secondary-fg:var(--x-color-text,#0f172a);--x-particle-button-secondary-border:var(--x-color-border,#cbd5e1);--x-particle-button-tertiary-bg:var(--x-color-surface-active,#f1f5f9);--x-particle-button-tertiary-bg-hover:var(--x-color-surface-active,#e2e8f0);--x-particle-button-tertiary-bg-active:var(--x-color-border,#cbd5e1);--x-particle-button-tertiary-fg:var(--x-color-text,#0f172a);--x-particle-button-ghost-bg:transparent;--x-particle-button-ghost-bg-hover:var(--x-color-surface-hover,#f8fafc);--x-particle-button-ghost-bg-active:var(--x-color-surface-active,#f1f5f9);--x-particle-button-ghost-fg:var(--x-color-text-muted,#334155);--x-particle-button-danger-bg:var(--x-color-danger,#dc2626);--x-particle-button-danger-bg-hover:#b91c1c;--x-particle-button-danger-bg-active:#991b1b;--x-particle-button-danger-fg:#ffffff;--x-particle-button-success-bg:var(--x-color-success,#16a34a);--x-particle-button-success-bg-hover:#15803d;--x-particle-button-success-bg-active:#166534;--x-particle-button-success-fg:#ffffff;--x-particle-button-warning-bg:var(--x-color-warning,#d97706);--x-particle-button-warning-bg-hover:#b45309;--x-particle-button-warning-bg-active:#92400e;--x-particle-button-warning-fg:#ffffff;--x-particle-button-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-particle-button-transition-duration:var(--x-transition-duration,140ms);--x-particle-button-transition-easing:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));}@media (prefers-color-scheme: dark){:host{--x-particle-button-shadow:var(--x-shadow-sm,0 1px 2px rgba(0,0,0,0.35),0 1px 1px rgba(0,0,0,0.2));--x-particle-button-shadow-hover:var(--x-shadow-md,0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24));--x-particle-button-shadow-active:var(--x-shadow-sm,0 1px 2px rgba(0,0,0,0.3));--x-particle-button-bg:var(--x-color-primary,#3b82f6);--x-particle-button-bg-hover:var(--x-color-primary-hover,#2563eb);--x-particle-button-bg-active:var(--x-color-primary-active,#1d4ed8);--x-particle-button-bg-disabled:#334155;--x-particle-button-fg:#eff6ff;--x-particle-button-fg-disabled:#94a3b8;--x-particle-button-secondary-bg:var(--x-color-surface,#111827);--x-particle-button-secondary-bg-hover:var(--x-color-surface-hover,#1f2937);--x-particle-button-secondary-bg-active:var(--x-color-surface-active,#273449);--x-particle-button-secondary-fg:var(--x-color-text,#e5e7eb);--x-particle-button-secondary-border:var(--x-color-border,#374151);--x-particle-button-tertiary-bg:var(--x-color-surface-active,#1e293b);--x-particle-button-tertiary-bg-hover:var(--x-color-surface-active,#273449);--x-particle-button-tertiary-bg-active:var(--x-color-border,#334155);--x-particle-button-tertiary-fg:var(--x-color-text,#e5e7eb);--x-particle-button-ghost-bg:transparent;--x-particle-button-ghost-bg-hover:var(--x-color-surface-hover,#0f172a);--x-particle-button-ghost-bg-active:var(--x-color-surface-active,#172033);--x-particle-button-ghost-fg:var(--x-color-text-muted,#cbd5e1);--x-particle-button-danger-bg:var(--x-color-danger,#ef4444);--x-particle-button-danger-bg-hover:#dc2626;--x-particle-button-danger-bg-active:#b91c1c;--x-particle-button-danger-fg:#ffffff;--x-particle-button-success-bg:var(--x-color-success,#22c55e);--x-particle-button-success-bg-hover:#16a34a;--x-particle-button-success-bg-active:#15803d;--x-particle-button-success-fg:#ffffff;--x-particle-button-warning-bg:var(--x-color-warning,#f59e0b);--x-particle-button-warning-bg-hover:#d97706;--x-particle-button-warning-bg-active:#b45309;--x-particle-button-warning-fg:#ffffff;--x-particle-button-focus-ring:var(--x-color-focus-ring,#93c5fd);}}@keyframes x-particle-button-spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}@keyframes x-pb-glow-pulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,0.3),var(--x-particle-button-shadow);}50%{box-shadow:0 0 12px 4px rgba(255,255,255,0.15),var(--x-particle-button-shadow);}100%{box-shadow:0 0 0 0 rgba(255,255,255,0),var(--x-particle-button-shadow);}}button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;position:relative;inline-size:100%;min-inline-size:0;min-block-size:var(--x-particle-button-height-md);padding-inline:var(--x-particle-button-padding-inline);border-radius:var(--x-particle-button-radius);border:1px solid var(--x-particle-button-border);background:var(--x-particle-button-bg);color:var(--x-particle-button-fg);font-size:var(--x-particle-button-font-size-md);font-weight:var(--x-particle-button-font-weight);line-height:1;cursor:pointer;user-select:none;overflow:hidden;box-shadow:var(--x-particle-button-shadow);transition:background var(--x-particle-button-transition-duration) var(--x-particle-button-transition-easing),border-color var(--x-particle-button-transition-duration) var(--x-particle-button-transition-easing),color var(--x-particle-button-transition-duration) var(--x-particle-button-transition-easing),transform var(--x-particle-button-transition-duration) var(--x-particle-button-transition-easing),box-shadow var(--x-particle-button-transition-duration) var(--x-particle-button-transition-easing),opacity var(--x-particle-button-transition-duration) var(--x-particle-button-transition-easing),filter var(--x-particle-button-transition-duration) var(--x-particle-button-transition-easing);}button[disabled]{cursor:default;box-shadow:none;}button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-particle-button-focus-ring),var(--x-particle-button-shadow);}button[data-hover\x3d'true']:not([disabled]){transform:translateY(-1px);box-shadow:var(--x-particle-button-shadow-hover);}button[data-active\x3d'true']:not([disabled]){transform:translateY(1px) scale(0.97);box-shadow:var(--x-particle-button-shadow-active);}button[data-glow-pulse\x3d'true']{animation:x-pb-glow-pulse 400ms ease-out;}button[data-size\x3d'sm']{min-block-size:var(--x-particle-button-height-sm);font-size:var(--x-particle-button-font-size-sm);}button[data-size\x3d'md']{min-block-size:var(--x-particle-button-height-md);font-size:var(--x-particle-button-font-size-md);}button[data-size\x3d'lg']{min-block-size:var(--x-particle-button-height-lg);font-size:var(--x-particle-button-font-size-lg);}button[data-variant\x3d'primary']{background:var(--x-particle-button-bg);color:var(--x-particle-button-fg);border-color:var(--x-particle-button-border);}button[data-variant\x3d'primary'][data-hover\x3d'true']:not([disabled]){background:var(--x-particle-button-bg-hover);}button[data-variant\x3d'primary'][data-active\x3d'true']:not([disabled]){background:var(--x-particle-button-bg-active);}button[data-variant\x3d'secondary']{background:var(--x-particle-button-secondary-bg);color:var(--x-particle-button-secondary-fg);border-color:var(--x-particle-button-secondary-border);}button[data-variant\x3d'secondary'][data-hover\x3d'true']:not([disabled]){background:var(--x-particle-button-secondary-bg-hover);}button[data-variant\x3d'secondary'][data-active\x3d'true']:not([disabled]){background:var(--x-particle-button-secondary-bg-active);}button[data-variant\x3d'tertiary']{background:var(--x-particle-button-tertiary-bg);color:var(--x-particle-button-tertiary-fg);border-color:transparent;box-shadow:none;}button[data-variant\x3d'tertiary'][data-hover\x3d'true']:not([disabled]){background:var(--x-particle-button-tertiary-bg-hover);}button[data-variant\x3d'tertiary'][data-active\x3d'true']:not([disabled]){background:var(--x-particle-button-tertiary-bg-active);}button[data-variant\x3d'ghost']{background:var(--x-particle-button-ghost-bg);color:var(--x-particle-button-ghost-fg);border-color:transparent;box-shadow:none;}button[data-variant\x3d'ghost'][data-hover\x3d'true']:not([disabled]){background:var(--x-particle-button-ghost-bg-hover);}button[data-variant\x3d'ghost'][data-active\x3d'true']:not([disabled]){background:var(--x-particle-button-ghost-bg-active);}button[data-variant\x3d'danger']{background:var(--x-particle-button-danger-bg);color:var(--x-particle-button-danger-fg);border-color:transparent;}button[data-variant\x3d'danger'][data-hover\x3d'true']:not([disabled]){background:var(--x-particle-button-danger-bg-hover);}button[data-variant\x3d'danger'][data-active\x3d'true']:not([disabled]){background:var(--x-particle-button-danger-bg-active);}button[data-variant\x3d'success']{background:var(--x-particle-button-success-bg);color:var(--x-particle-button-success-fg);border-color:transparent;}button[data-variant\x3d'success'][data-hover\x3d'true']:not([disabled]){background:var(--x-particle-button-success-bg-hover);}button[data-variant\x3d'success'][data-active\x3d'true']:not([disabled]){background:var(--x-particle-button-success-bg-active);}button[data-variant\x3d'warning']{background:var(--x-particle-button-warning-bg);color:var(--x-particle-button-warning-fg);border-color:transparent;}button[data-variant\x3d'warning'][data-hover\x3d'true']:not([disabled]){background:var(--x-particle-button-warning-bg-hover);}button[data-variant\x3d'warning'][data-active\x3d'true']:not([disabled]){background:var(--x-particle-button-warning-bg-active);}button[data-loading\x3d'true']{cursor:progress;}button[data-disabled\x3d'true']{background:var(--x-particle-button-bg-disabled);color:var(--x-particle-button-fg-disabled);border-color:transparent;opacity:0.72;}[part\x3d'material-overlay']{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;background:radial-gradient(circle at var(--_mx,50%) var(--_my,50%),rgba(255,255,255,0.12) 0%,transparent 60%);opacity:0;transition:opacity 200ms ease;}button[data-hover\x3d'true']:not([disabled]) [part\x3d'material-overlay']{opacity:1;}button[data-active\x3d'true']:not([disabled]) [part\x3d'material-overlay']{opacity:0.7;}[part\x3d'inner']{display:inline-flex;align-items:center;justify-content:center;gap:var(--x-particle-button-gap);min-inline-size:0;position:relative;z-index:2;}[part\x3d'label']{display:inline-flex;align-items:center;justify-content:center;min-inline-size:0;white-space:nowrap;}[part\x3d'icon-start'],[part\x3d'icon-end'],[part\x3d'spinner']{display:inline-flex;align-items:center;justify-content:center;flex:none;}button[data-size\x3d'sm'] [part\x3d'icon-start'],button[data-size\x3d'sm'] [part\x3d'icon-end']{inline-size:var(--x-particle-button-icon-size-sm);block-size:var(--x-particle-button-icon-size-sm);}button[data-size\x3d'md'] [part\x3d'icon-start'],button[data-size\x3d'md'] [part\x3d'icon-end']{inline-size:var(--x-particle-button-icon-size-md);block-size:var(--x-particle-button-icon-size-md);}button[data-size\x3d'lg'] [part\x3d'icon-start'],button[data-size\x3d'lg'] [part\x3d'icon-end']{inline-size:var(--x-particle-button-icon-size-lg);block-size:var(--x-particle-button-icon-size-lg);}[part\x3d'spinner']{inline-size:var(--x-particle-button-spinner-size);block-size:var(--x-particle-button-spinner-size);position:relative;}[part\x3d'spinner-slot']{display:inline-flex;align-items:center;justify-content:center;}[part\x3d'spinner-fallback']{display:none;inline-size:100%;block-size:100%;box-sizing:border-box;border-radius:999px;border:var(--x-particle-button-spinner-stroke) solid currentColor;border-inline-end-color:transparent;animation:x-particle-button-spin 0.7s linear infinite;opacity:0.9;}button[data-has-icon-start\x3d'false'] [part\x3d'icon-start']{display:none;}button[data-has-icon-end\x3d'false'] [part\x3d'icon-end']{display:none;}button[data-loading\x3d'false'] [part\x3d'spinner']{display:none;}button[data-loading\x3d'true'][data-has-spinner\x3d'false'] [part\x3d'spinner-fallback']{display:inline-block;}button[data-loading\x3d'true'][data-has-spinner\x3d'true'] [part\x3d'spinner-fallback']{display:none;}[part\x3d'canvas']{position:absolute;inset:-24px;inline-size:calc(100% + 48px);block-size:calc(100% + 48px);pointer-events:none;z-index:3;}button[data-mode\x3d'disperse'][data-phase\x3d'press-burst'] [part\x3d'inner']{opacity:0.85;transition:opacity 200ms ease;}button[data-phase\x3d'press-burst']:not([disabled]){filter:blur(0.5px) brightness(1.05);}button[data-phase\x3d'press-reform']:not([disabled]){filter:blur(0.4px) brightness(1.03);}button[data-mode\x3d'disperse'][data-phase\x3d'press-burst']:not([disabled]){filter:blur(1px) brightness(1.08);}@media (prefers-reduced-motion: reduce){button{transition:none;filter:none !important;}[part\x3d'spinner-fallback']{animation:none;}[part\x3d'canvas']{display:none;}[part\x3d'material-overlay']{display:none;}button[data-glow-pulse\x3d'true']{animation:none;}}@media (pointer:coarse){button{min-block-size:2.75rem;}button[data-size\x3d'sm']{min-block-size:2.75rem;}}";
38
+ d.setAttribute("part","button");e.setAttribute("part","material-overlay");e.setAttribute("aria-hidden","true");g.setAttribute("part","canvas");g.setAttribute("aria-hidden","true");h.setAttribute("part","inner");l.setAttribute("part","icon-start");m.setAttribute("part","label");p.setAttribute("part","spinner");B.setAttribute("part","spinner-slot");q.setAttribute("part","spinner-fallback");v.setAttribute("part","icon-end");y.setAttribute("name","icon-start");A.setAttribute("name","icon-end");B.setAttribute("name",
39
+ "spinner");p.setAttribute("aria-hidden","true");q.setAttribute("aria-hidden","true");l.appendChild(y);m.appendChild(x);p.appendChild(B);p.appendChild(q);v.appendChild(A);h.appendChild(l);h.appendChild(m);h.appendChild(p);h.appendChild(v);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);b.appendChild(g);this.__xPBCanvas=g;this.__xPBCtx=g.getContext("2d");b={button:d,"icon-start-slot":y,"icon-end-slot":A,canvas:g,style:c,"spinner-slot":B,inner:h,overlay:e,root:b,"label-slot":x};c=
40
+ b.button;lV(this,!1);mV(this,!1);oV(this,null);pV(this,null);tV(this,rV);this.__xPBBurstFrame=this.__xPBHoverAccum=0;d=DV(this);d=2*yV.g(d);e=[];for(g=0;;)if(g<d)e.push({y:0,homeY:0,ty0:0,colorIdx:0,tlen:0,age:0,maxOpacity:0,tx0:0,alive:!1,ty1:0,type:"d",size:1,tx2:0,vx:0,blur:0,vy:0,opacity:0,tx1:0,ty2:0,lifetime:500,x:0,homeX:0,sizeY:1}),g+=1;else break;this.__xPBParticles=e;oW(this,c);pW(this,c);rW(this,c);sW(this,c);tW(this,b);jW(this,c);this.__xPBState=b}mW(this);return LV(this,jV(this))};a.prototype.disconnectedCallback=
41
+ function(){ZV(this);tV(this,rV);var b=$APP.k(this,"__xPBResizeObs");$APP.n(b)&&(b.disconnect(),this.__xPBResizeObs=null);lV(this,!1);mV(this,!1);oV(this,null);return pV(this,null)};a.prototype.attributeChangedCallback=function(){var b=jV(this);$APP.n(b)?(mW(this),LV(this,b),b=$APP.n($APP.k(this,"__xPBCanvasW"))?JV(this):null):b=null;return b};uW(a.prototype,"disabled","disabled");uW(a.prototype,"loading","loading");uW(a.prototype,"pressed","pressed");return a},xW=function(){return $APP.n(customElements.get("x-particle-button"))?
42
+ null:customElements.define("x-particle-button",wW())},QV=new $APP.K(null,"hover-source","hover-source",-983313108),aV=new $APP.K(null,"dust-ratio","dust-ratio",1118310195),rV=new $APP.K(null,"idle","idle",-2007156861),SV=new $APP.K(null,"hover-drift-vx-range","hover-drift-vx-range",-1042132653),gW=new $APP.K(null,"glow-render","glow-render",-1350130029),qW=new $APP.K(null,"press-burst","press-burst",2130427093),hW=new $APP.K(null,"additive-core","additive-core",-1596289338),yW=new $APP.K(null,"streak-ratio",
43
+ "streak-ratio",896175899),UV=new $APP.K(null,"press-base-speed","press-base-speed",968923991),yV=new $APP.K(null,"particle-count","particle-count",-1413139825),wV=new $APP.K(null,"particle-size","particle-size",-1226200350),dW=new $APP.K(null,"reform-spring","reform-spring",1893407808),zW=new $APP.K(null,"surface-dissolve","surface-dissolve",825718780),AW=new $APP.K(null,"edge-only","edge-only",-1722275337),bV=new $APP.K(null,"fragment-ratio","fragment-ratio",1481305781),eW=new $APP.K(null,"press-reform",
44
+ "press-reform",545200527),WV=new $APP.K(null,"press-burst-count-min","press-burst-count-min",-1654672998),XV=new $APP.K(null,"press-burst-count-max","press-burst-count-max",1669149185),sV=new $APP.K(null,"hover-emit","hover-emit",1486854761),OV=new $APP.K(null,"hover-emit-rate","hover-emit-rate",-16639981),xV=new $APP.K(null,"reassemble-speed","reassemble-speed",-2046288440),lW=new $APP.K(null,"settling","settling",2095088261),RV=new $APP.K(null,"hover-drift-vy","hover-drift-vy",-508387059),cW=new $APP.K(null,
45
+ "gravity","gravity",-1815198225),PV=new $APP.K(null,"edge-and-surface","edge-and-surface",-2071330589),VV=new $APP.K(null,"press-spread","press-spread",50665709);var BV=new $APP.S(null,new $APP.R(null,3,["reset",null,"submit",null,"button",null],null),null),zV=new $APP.S(null,new $APP.R(null,7,["success",null,"warning",null,"secondary",null,"tertiary",null,"primary",null,"danger",null,"ghost",null],null),null),CV=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),AV=new $APP.S(null,new $APP.R(null,5,["dust",null,"disperse",null,"spark",null,"ember",null,"burst",null],null),null),vW="disabled loading pressed type variant size label mode particle-count intensity particle-size reassemble-speed".split(" ");
46
+ $APP.Pd(["press",new $APP.R(null,1,[$APP.yj,new $APP.R(null,1,[$APP.Hk,$APP.X],null)],null),"press-start",new $APP.R(null,1,[$APP.yj,new $APP.R(null,1,[$APP.Hk,$APP.X],null)],null),"press-end",new $APP.R(null,1,[$APP.yj,new $APP.R(null,1,[$APP.Hk,$APP.X],null)],null),"hover-start",new $APP.R(null,1,[$APP.yj,$APP.Qd],null),"hover-end",new $APP.R(null,1,[$APP.yj,$APP.Qd],null),"focus-visible",new $APP.R(null,1,[$APP.yj,$APP.Qd],null),"burst",new $APP.R(null,1,[$APP.yj,new $APP.R(null,3,[$APP.Xi,$APP.X,
47
+ new $APP.K(null,"press-x","press-x",-1745921066),$APP.V,new $APP.K(null,"press-y","press-y",1259086182),$APP.V],null)],null),"reform",new $APP.R(null,1,[$APP.yj,new $APP.R(null,2,[$APP.Xi,$APP.X,$APP.wk,$APP.V],null)],null)]);
48
+ var NV=function NV(a){switch(a){case "dust":return $APP.xf([dW,XV,hW,QV,VV,RV,cW,OV,SV,gW,aV,bV,UV,WV,$APP.Gj,yW,zW],[0,10,!1,AW,Math.PI/3,-.4,-.03,.6,.2,!1,.9,.08,1.5,6,.97,.02,!1]);case "spark":return $APP.xf([dW,XV,hW,QV,VV,RV,cW,OV,SV,gW,aV,bV,UV,WV,$APP.Gj,yW,zW],[0,35,!0,PV,Math.PI/4,-1.2,0,2.5,1,!1,.4,.25,6,20,.92,.35,!1]);case "ember":return $APP.xf([dW,XV,hW,QV,VV,RV,cW,OV,SV,gW,aV,bV,UV,WV,$APP.Gj,yW,zW],[0,14,!1,AW,Math.PI*.6,-.15,-.008,.8,.1,!0,.5,.35,.8,8,.99,.15,!1]);case "burst":return $APP.xf([dW,
49
+ XV,hW,QV,VV,RV,cW,OV,SV,gW,aV,bV,UV,WV,$APP.Gj,yW,zW],[0,50,!1,AW,Math.PI/2,-.3,.04,.4,.2,!1,.45,.35,7,30,.94,.2,!1]);case "disperse":return $APP.xf([dW,XV,hW,QV,VV,RV,cW,OV,SV,gW,aV,bV,UV,WV,$APP.Gj,yW,zW],[.08,30,!1,PV,Math.PI,-.3,0,1.2,.3,!1,.3,.55,3,20,.96,.15,!0]);default:return NV.g?NV.g("dust"):NV.call(null,"dust")}};var IV,BW=document.createElement("canvas");BW.width=1;BW.height=1;IV=BW.getContext("2d");
50
+ var $V=function $V(a){a.__xPBRaf=null;if($APP.n(a.isConnected)){var c=qV(a),d=performance.now(),e=Math.min(100,d-function(){var v=$APP.k(a,"__xPBLastTime");return $APP.n(v)?v:d}()),g=$APP.k(a,"__xPBParticles");a.__xPBLastTime=d;switch(c instanceof $APP.K?c.pa:null){case "hover-emit":if(!uV()){TV(a,e);var h=jV(a);if($APP.n(h)){var l=Math.min(1.5,1.5*(1-Math.exp((d-function(){var v=$APP.k(a,"__xPBHoverStart");return $APP.n(v)?v:d}())/1E3*-1.5))),m=1+l/1.5*.04;h.button.style.setProperty("filter","blur("+
51
+ $APP.T.g(l.toFixed(2))+"px) brightness("+$APP.T.g(m.toFixed(3))+")")}}break;case "press-burst":$APP.C.i(0,function(){var v=$APP.k(a,"__xPBBurstFrame");return $APP.n(v)?v:0}())&&(a.__xPBBurstFrame=1,YV(a))}fW(a,e);iW(a);var p=$APP.n(g)?bW(g):0,q=function(){var v=new $APP.S(null,new $APP.R(null,2,[sV,null,qW,null],null),null);return v.g?v.g(c):v.call(null,c)}();$APP.C.i(qW,c)&&function(){var v=$APP.k(a,"__xPBBurstFrame");return $APP.n(v)?v:0}()>0&&(e=DV(a),d-function(){var v=$APP.k(a,"__xPBBurstStart");
52
+ return $APP.n(v)?v:d}()>50&&($APP.C.i("disperse",$APP.Xi.g(e))?tV(a,eW):tV(a,lW)));$APP.C.i(eW,c)&&(e=d-function(){var v=$APP.k(a,"__xPBBurstStart");return $APP.n(v)?v:d}(),g=DV(a),e>xV.g(g)&&(tV(a,lW),EV(a,"reform",{mode:$APP.Xi.g(g),duration:Math.round(e)})));$APP.C.i(lW,c)&&$APP.C.i(0,p)&&(tV(a,rV),ZV(a));$APP.n(function(){var v=$APP.N(rV,c);return v?$APP.n(q)?q:p>0:v}())&&iV(a,"__xPBRaf",requestAnimationFrame(function(){return $V.g?$V.g(a):$V.call(null,a)}));$APP.C.i(lW,c)&&p>0&&$APP.r($APP.k(a,
53
+ "__xPBRaf"))&&iV(a,"__xPBRaf",requestAnimationFrame(function(){return $V.g?$V.g(a):$V.call(null,a)}))}return null};$APP.fa("baredom.exports.x_particle_button.init",xW);export const init=xW;
package/dist/x-popover.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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
- 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}}$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;
2
+ var $q=function(a){return document.createElement(a)},ar=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},hr=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){a=new $APP.R(null,6,[$APP.ii,a.hasAttribute("open"),$APP.al,a.hasAttribute("disabled"),br,a.hasAttribute("no-close"),cr,a.getAttribute("heading"),$APP.pm,a.getAttribute("placement"),dr,a.getAttribute("close-label")],null);var c=$APP.M(a),d=$APP.D(c,$APP.ii),e=$APP.D(c,$APP.al),g=$APP.D(c,br),h=$APP.D(c,cr);
3
+ a=$APP.D(c,$APP.pm);c=$APP.D(c,dr);d=$APP.F(d);e=$APP.F(e);g=$APP.F(g);h=$APP.n(h)?h:"";c=$APP.n(c)?c:"Close";a=$APP.J(er,a)?a:"bottom-start";e=$APP.M(new $APP.R(null,6,[$APP.Wl,d,$APP.W,e,fr,g,$APP.Pk,h,gr,c,$APP.nj,a],null));d=$APP.D(e,$APP.Wl);a=$APP.D(e,fr);h=$APP.D(e,$APP.Pk);c=$APP.D(e,gr);g=$APP.D(e,$APP.nj);var l=$APP.k(b,"panel");e=$APP.k(b,"header");var m=$APP.k(b,"heading");b=$APP.k(b,"closeBtn");l.setAttribute("data-placement",g);ar(l,"inert",$APP.r(d));$APP.N(h,"")?l.setAttribute("aria-labelledby",
4
+ "popover-heading"):l.removeAttribute("aria-labelledby");m.textContent=h;b.setAttribute("aria-label",c);ar(b,"hidden",a);b=$APP.C.i(h,"");return ar(e,"hidden",b?a:b)}return null},ir=function(a,b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},jr=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},kr=function(a,b){return $APP.r(a.hasAttribute("disabled"))&&
5
+ $APP.r(a.hasAttribute("open"))&&ir(a,{open:!0,source:b})?(a.setAttribute("open",""),jr(a,{open:!0})):null},lr=function(a,b){var c=$APP.r(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):c)&&ir(a,{open:!1,source:b})?(a.removeAttribute("open"),jr(a,{open:!1})):null},mr=function(a,b){return $APP.n(a.hasAttribute("open"))?lr(a,b):kr(a,b)},nr=function(a){var b=$APP.k(a,"__xPopoverHandlers");if($APP.n(b)){var c=$APP.k(b,"docClick"),d=$APP.k(b,"docKeydown");return setTimeout(function(){var e=
6
+ a.isConnected;return $APP.n($APP.n(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},or=function(a){a=$APP.k(a,"__xPopoverHandlers");if($APP.n(a)){var b=$APP.k(a,"docKeydown");document.removeEventListener("click",$APP.k(a,"docClick"));return document.removeEventListener("keydown",b)}return null},pr=function(a){return{triggerClick:function(){return mr(a,"pointer")},closeBtnClick:function(){return lr(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?
7
+ (b=b.relatedTarget,b==null||$APP.r(a.contains(b))?lr(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.uc(b.composedPath()),b=$APP.Td(function(c){return c===a},b),$APP.n(b)?null:lr(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?lr(a,"escape"):null},footerSlotchange:function(){var b=$APP.k(a,"__xPopoverRefs");return $APP.n(b)?ar($APP.k(b,"footer"),"hidden",!($APP.k(b,"footerSlot").assignedNodes().length>
8
+ 0)):null}}},qr=function(a){var b=$APP.k(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.k(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.k(b,"closeBtn"),e=$APP.k(b,"footerSlot");$APP.k(b,"trigger").removeEventListener("click",$APP.k(c,"triggerClick"));d.removeEventListener("click",$APP.k(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.k(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.k(c,"footerSlotchange"))}}},rr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
9
+ get:function(){return this.hasAttribute(c)},set:function(d){return ar(this,c,$APP.F(d))}})},sr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},ur=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return tr}});rr(b,"open","open");
10
+ rr(b,"disabled","disabled");rr(b,"noClose","no-close");sr(b,"placement","placement");sr(b,"heading","heading");sr(b,"closeLabel","close-label");b.show=function(){return kr(this,"programmatic")};b.hide=function(){return lr(this,"programmatic")};b.toggle=function(){return mr(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=$q("style"),e=$q("span"),g=$q("slot"),h=$q("div"),l=$q("div"),m=$q("div"),p=$q("span"),q=$q("button"),
11
+ v=$q("div"),x=$q("slot"),y=$q("div"),A=$q("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
+ 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");l.setAttribute("part","arrow");l.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
+ v.setAttribute("part","body");y.setAttribute("part","footer");y.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(p);m.appendChild(q);v.appendChild(x);y.appendChild(A);h.appendChild(l);h.appendChild(m);h.appendChild(v);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:v,footer:y,footerSlot:A}}qr(this);or(this);this.__xPopoverHandlers=pr(this);c=$APP.k(this,"__xPopoverRefs");
14
+ $APP.n(c)&&(d=$APP.k(this,"__xPopoverHandlers"),$APP.n(d)&&(e=$APP.k(c,"closeBtn"),g=$APP.k(c,"footerSlot"),$APP.k(c,"trigger").addEventListener("click",$APP.k(d,"triggerClick")),e.addEventListener("click",$APP.k(d,"closeBtnClick")),this.addEventListener("focusout",$APP.k(d,"hostFocusout")),g.addEventListener("slotchange",$APP.k(d,"footerSlotchange"))));$APP.n(this.hasAttribute("open"))&&nr(this);return hr(this)};b.disconnectedCallback=function(){qr(this);return or(this)};b.attributeChangedCallback=
15
+ function(c){$APP.n($APP.k(this,"__xPopoverRefs"))?(hr(this),c=$APP.C.i(c,"open")?$APP.n(this.hasAttribute("open"))?nr(this):or(this):null):c=null;return c};return a},vr=function(){return $APP.n(customElements.get("x-popover"))?null:customElements.define("x-popover",ur())},gr=new $APP.K(null,"close-label","close-label",-1088385889),fr=new $APP.K(null,"no-close?","no-close?",1842227643),dr=new $APP.K(null,"close-label-raw","close-label-raw",798572883),cr=new $APP.K(null,"heading-raw","heading-raw",
16
+ 116296555),br=new $APP.K(null,"no-close-present?","no-close-present?",-154717274);var er=new $APP.S(null,new $APP.R(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),tr="open placement heading close-label no-close disabled".split(" ");$APP.Pd(["x-popover-toggle",new $APP.R(null,2,[$APP.wl,!0,$APP.yj,new $APP.R(null,2,[$APP.tl,$APP.Bj,$APP.Hk,$APP.X],null)],null),"x-popover-change",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.tl,$APP.Bj],null)],null)]);$APP.fa("baredom.exports.x_popover.init",vr);export const init=vr;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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
- "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})},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
- 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}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;
2
+ var SR=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},VR=function(a){var b=new $APP.R(null,7,[$APP.zi,a.getAttribute("value"),$APP.ok,a.getAttribute("max"),$APP.Nh,a.getAttribute("variant"),$APP.th,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.Kj,a.hasAttribute("show-value"),$APP.zl,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.ok),e=$APP.D(c,$APP.zi),g=$APP.D(c,$APP.Nh),h=$APP.D(c,$APP.th);b=$APP.D(c,$APP.U);var l=$APP.D(c,
3
+ $APP.Kj);c=$APP.D(c,$APP.zl);d=SR(d,100);d=d>0?d:100;e=$APP.ah.i($APP.$g.i(SR(e,0),0),d);g=typeof g==="string"&&$APP.J(TR,g)?g:"default";h=typeof h==="string"&&$APP.J(UR,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.ah.i($APP.$g.i(e/d*100,0),100);b=$APP.xf([$APP.Nh,$APP.Kj,$APP.zi,$APP.th,$APP.zl,$APP.gm,$APP.ok,$APP.U,$APP.$k],[g,l,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.$k);l=$APP.D(p,$APP.Nh);d=$APP.D(p,
4
+ $APP.Kj);h=$APP.D(p,$APP.zi);c=$APP.D(p,$APP.th);e=$APP.D(p,$APP.gm);g=$APP.D(p,$APP.zl);m=$APP.D(p,$APP.U);p=$APP.D(p,$APP.ok);var q=$APP.k(a,"__xProgressCircleBase"),v=$APP.k(a,"__xProgressCircleFill"),x=$APP.k(a,"__xProgressCircleValueNode"),y=$APP.k(a,"__xProgressCircleCompleted"),A=$APP.r(g)&&h>=p,B=$APP.n(g)?75:100*(1-b/100);q.setAttribute("data-variant",l);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.T.g(100));
5
+ v.setAttribute("stroke-dashoffset",""+$APP.T.g(B));x.textContent=$APP.n($APP.n(d)?$APP.r(g):d)?""+$APP.T.g(Math.round(b))+"%":"";x.style.display=$APP.n($APP.n(d)?$APP.r(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),a.setAttribute("aria-valuemax",""+$APP.T.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.r(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.F(A)},WR=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
7
+ "max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
+ set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},ZR=function(){var a=class extends HTMLElement{};a.observedAttributes=YR;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(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"),l=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:var(--x-color-primary,#3b82f6);--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:var(--x-transition-duration,0.3s);}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
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");l.setAttribute("part","center");m.setAttribute("part","value-text");e.appendChild(g);e.appendChild(h);l.appendChild(m);
11
+ d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}VR(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xProgressCircleInit"))&&VR(this);return null};WR(a.prototype);return a},$R=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
+ ZR());return null};var TR=new $APP.S(null,new $APP.R(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),UR=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),YR="value max variant size label show-value indeterminate".split(" ");$APP.Pd(["x-progress-circle-complete",new $APP.R(null,1,[$APP.yj,new $APP.R(null,2,[$APP.zi,$APP.V,$APP.ok,$APP.V],null)],null)]);$APP.fa("baredom.exports.x_progress_circle.init",$R);export const init=$R;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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
- ""+$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
- "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})},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_;
2
+ var E2=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},H2=function(a){var b=new $APP.R(null,7,[$APP.zi,a.getAttribute("value"),$APP.ok,a.getAttribute("max"),$APP.Nh,a.getAttribute("variant"),$APP.th,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.Kj,a.hasAttribute("show-value"),$APP.zl,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.D(c,$APP.ok),e=$APP.D(c,$APP.zi),g=$APP.D(c,$APP.Nh),h=$APP.D(c,$APP.th);b=$APP.D(c,$APP.U);var l=$APP.D(c,
3
+ $APP.Kj);c=$APP.D(c,$APP.zl);d=E2(d,100);d=d>0?d:100;e=$APP.ah.i($APP.$g.i(E2(e,0),0),d);g=typeof g==="string"&&$APP.J(F2,g)?g:"default";h=typeof h==="string"&&$APP.J(G2,h)?h:"md";c=$APP.F(c);l=$APP.F(l);var m=c?50:$APP.ah.i($APP.$g.i(e/d*100,0),100);b=$APP.xf([$APP.Nh,$APP.Kj,$APP.zi,$APP.th,$APP.zl,$APP.gm,$APP.ok,$APP.U,$APP.$k],[g,l,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var p=$APP.M(b);b=$APP.D(p,$APP.$k);l=$APP.D(p,$APP.Nh);d=$APP.D(p,
4
+ $APP.Kj);h=$APP.D(p,$APP.zi);c=$APP.D(p,$APP.th);e=$APP.D(p,$APP.gm);g=$APP.D(p,$APP.zl);m=$APP.D(p,$APP.U);p=$APP.D(p,$APP.ok);var q=$APP.k(a,"__xProgressBase"),v=$APP.k(a,"__xProgressHeader"),x=$APP.k(a,"__xProgressFill"),y=$APP.k(a,"__xProgressLabel"),A=$APP.k(a,"__xProgressValue");var B=(B=m!=null)?B:d;var E=$APP.k(a,"__xProgressCompleted"),H=$APP.r(g)&&h>=p;q.setAttribute("data-variant",l);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");x.style.width=
5
+ $APP.n(g)?"40%":""+$APP.T.g(b.toFixed(2))+"%";v.style.display=$APP.n(B)?"flex":"none";y.textContent=$APP.n(m)?m:"";y.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.r(g):d)?""+$APP.T.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),
6
+ a.setAttribute("aria-valuemax",""+$APP.T.g(p)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");H&&$APP.r(E)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCompleted=$APP.F(H)},I2=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",
7
+ ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,
8
+ "showValue",{get:function(){return this.hasAttribute("show-value")},set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:""},set:function(b){return this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?
9
+ b:""},set:function(b){return this.setAttribute("size",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return this.getAttribute("label")},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},K2=function(){var a=class extends HTMLElement{};a.observedAttributes=J2;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(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"),l=document.createElement("div"),m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:var(--x-radius-full,9999px);--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:var(--x-color-primary,#3b82f6);--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:var(--x-color-success,#22c55e);}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:var(--x-color-warning,#f59e0b);}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:var(--x-color-danger,#ef4444);}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:var(--x-font-size-sm,0.875rem);color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
11
+ d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");l.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);l.appendChild(m);d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}H2(this);return null};a.prototype.disconnectedCallback=
12
+ function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xProgressInit"))&&H2(this);return null};I2(a.prototype);return a},L2=function(){$APP.n(customElements.get("x-progress"))||customElements.define("x-progress",K2());return null};var F2=new $APP.S(null,new $APP.R(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),G2=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),J2="value max variant size label show-value indeterminate".split(" ");$APP.Pd(["x-progress-complete",new $APP.R(null,1,[$APP.yj,new $APP.R(null,2,[$APP.zi,$APP.V,$APP.ok,$APP.V],null)],null)]);$APP.fa("baredom.exports.x_progress.init",L2);export const init=L2;
package/dist/x-radio.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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,
2
+ var Mr=function(a,b,c){return a.setAttribute(b,c)},Nr=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Or=function(a){a=$APP.xf([$APP.Ok,$APP.al,$APP.uh,$APP.Jh,$APP.Si,$APP.ij,$APP.Ol,$APP.uj,$APP.$i],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
+ $APP.D(b,$APP.uj);var c=$APP.D(b,$APP.$i),d=$APP.D(b,$APP.Ok),e=$APP.D(b,$APP.al),g=$APP.D(b,$APP.uh),h=$APP.D(b,$APP.Jh),l=$APP.D(b,$APP.Si),m=$APP.D(b,$APP.ij);b=$APP.D(b,$APP.Ol);l=$APP.F(l);g=$APP.F(g);return $APP.xf([$APP.Th,$APP.Oh,$APP.lm,$APP.bj,$APP.zh,$APP.Yi,$APP.zi,$APP.Dj,$APP.hm,$APP.cl,$APP.W],[g,l?"true":"false",$APP.F(m),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},Pr=function(a){var b=$APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=Or(a);var d=$APP.W.g(b),
4
+ e=$APP.bj.g(b);Mr(c,"aria-checked",$APP.Oh.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");Mr(c,"aria-required",$APP.n($APP.Th.g(b))?"true":"false");Mr(c,"aria-readonly",$APP.n($APP.lm.g(b))?"true":"false");var g=$APP.cl.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Dj.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.hm.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
+ $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");Nr(a,"data-checked",e);Nr(a,"data-disabled",d);a=$APP.k(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.zi.g(b):null):null}return null},Qr=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.N(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.C.i(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},Rr=
6
+ function(a){a=Qr(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.k(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.k(e,"control"),d=$APP.n(b)?$APP.C.i(d,b)?0:-1:$APP.C.i(d,c)?0:-1,e.tabIndex=d):null})},Sr=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},Tr=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
+ {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Ur=function(a){var b=Or(a),c=$APP.W.g(b),d=$APP.lm.g(b),e=$APP.bj.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.zi.g(b);return Sr(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),Pr(a),Qr(a).forEach(function(g){var h=$APP.N(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),Pr(g)):null}),Rr(a),Tr(a,{value:b,checked:!0})):null},Vr=function(a){a=$APP.k(a,"__xRadioRefs");return $APP.n(a)?
8
+ $APP.k(a,"control").focus():null},Wr=function(a){return function(b){var c=b.key,d=Qr(a),e=d.length,g=d.indexOf(a);if($APP.C.i(c," ")||$APP.C.i(c,"Enter"))return b.preventDefault(),Ur(a);if($APP.C.i(c,"ArrowDown")||$APP.C.i(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.ed(g+1,e)],Ur(b),Vr(b)}else if($APP.C.i(c,"ArrowUp")||$APP.C.i(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.ed(g-1,e)],Ur(b),Vr(b);return null}},Xr=function(a){return function(){return Ur(a)}},Yr=function(a){var b=
9
+ $APP.k(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.k(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.k(b,"control");a.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Zr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Nr(this,c,$APP.F(d))}})},$r=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
+ get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?Mr(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},bs=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return as}});Zr(b,"checked","checked");Zr(b,"disabled","disabled");Zr(b,"readOnly","readonly");Zr(b,"required","required");$r(b,"name","name");$r(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,
11
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;
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.n(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}Yr(this);c=$APP.k(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=Xr(this),e=Wr(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
+ g);Pr(this);return Rr(this)};b.disconnectedCallback=function(){return Yr(this)};b.attributeChangedCallback=function(){return Pr(this)};b.formDisabledCallback=function(c){Nr(this,"disabled",$APP.F(c));return Pr(this)};b.formResetCallback=function(){this.removeAttribute("checked");return Pr(this)};return a},cs=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",bs())};var as="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Pd(["x-radio-change-request",new $APP.R(null,2,[$APP.wl,!0,$APP.yj,new $APP.R(null,3,[$APP.zi,$APP.X,$APP.Rj,$APP.Bj,$APP.hl,$APP.Bj],null)],null),"x-radio-change",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,2,[$APP.zi,$APP.X,$APP.$l,$APP.Bj],null)],null)]);$APP.fa("baredom.exports.x_radio.init",cs);export const init=cs;
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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
- "__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")},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;
2
+ var RN=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},SN=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},TN=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},UN=function(a){var b=$APP.k(a,
3
+ "__xRippleRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:inline-block;position:relative;}:host([disabled]){cursor:default;}[part\x3dcontainer]{display:block;width:100%;height:100%;}";d.setAttribute("part","container");d.appendChild(e);g.setAttribute("part","filters");g.style.position="absolute";
4
+ g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.R(null,3,[$APP.ji,b,$APP.ej,d,$APP.Jj,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},XN=function(a){a=new $APP.R(null,4,[$APP.bk,a.getAttribute("intensity"),$APP.wi,a.getAttribute("duration"),VN,a.getAttribute("frequency"),$APP.al,a.hasAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,$APP.bk);var c=$APP.D(b,$APP.wi),
5
+ d=$APP.D(b,VN);b=$APP.D(b,$APP.al);return new $APP.R(null,4,[$APP.Tj,RN(a),$APP.wk,SN(c),WN,TN(d),$APP.W,$APP.F(b)],null)},$N=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.T.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.T.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.R(null,3,[$APP.zk,d,YN,e,ZN,g],null)},
7
+ aO=function(a,b){var c=XN(a);if(!$APP.n($APP.W.g(c))){c=$APP.M(c);var d=$APP.D(c,$APP.Tj),e=$APP.D(c,$APP.wk),g=$APP.D(c,WN);c=UN(a);c=$APP.M(c);var h=$APP.D(c,$APP.ej),l=$APP.D(c,$APP.Jj),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.T.g(m);a.__xRippleCounter=m+1;m=$N(l,c,g);m=$APP.M(m);var p=$APP.D(m,$APP.zk),q=$APP.D(m,YN),v=$APP.D(m,ZN),x=b.clientX,y=b.clientY,A=performance.now(),B=$APP.k(a,"__xRippleFrames");b=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
+ "url(#"+$APP.T.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(v.setAttribute("scale",""+$APP.T.g(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function H(){var G=performance.now()-A;G=Math.min(1,G/e);var I=1-G;I=1-I*I*I;var Q=g*(1-I*.7);v.setAttribute("scale",
9
+ ""+$APP.T.g(d*(1-I)));q.setAttribute("baseFrequency",""+$APP.T.g(Q));if(G>=1)return l.removeChild(p),l.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));G=requestAnimationFrame(H);return B.push(G)});B.push(b)}},bO=function(a){function b(c){c.button===0&&aO(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},cO=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,
10
+ d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.k(a,"__xRippleRefs");if($APP.n(b)){c=$APP.M(b);b=$APP.D(c,$APP.Jj);for(c=$APP.D(c,$APP.ej);;)if(d=b.firstChild,$APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.k(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},dO=function(a){Object.defineProperty(a,"intensity",{get:function(){return RN(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
+ this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return SN(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return TN(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
+ ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},fO=function(){var a=class extends HTMLElement{};a.observedAttributes=eO;a.prototype.connectedCallback=function(){UN(this);cO(this);bO(this);return null};a.prototype.disconnectedCallback=function(){cO(this);return null};a.prototype.attributeChangedCallback=
13
+ function(){return null};dO(a.prototype);return a},gO=function(){$APP.n(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",fO());return null},YN=new $APP.K(null,"turb","turb",-804768361),VN=new $APP.K(null,"frequency-raw","frequency-raw",-1367383022),ZN=new $APP.K(null,"disp","disp",-2047544334),WN=new $APP.K(null,"frequency","frequency",-1408891382);var eO=["intensity","duration","frequency","disabled"];$APP.Pd(["x-ripple-effect-start",new $APP.R(null,2,[$APP.yj,new $APP.R(null,2,[$APP.Yk,$APP.V,$APP.Xk,$APP.V],null),$APP.wl,!1],null),"x-ripple-effect-end",new $APP.R(null,2,[$APP.yj,new $APP.R(null,2,[$APP.Yk,$APP.V,$APP.Xk,$APP.V],null),$APP.wl,!1],null)]);$APP.fa("baredom.exports.x_ripple_effect.init",gO);export const init=gO;