@vanelsas/baredom 2.2.0 → 2.3.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 (92) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +402 -393
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +14 -14
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +15 -15
  12. package/dist/x-cancel-dialogue.js +16 -16
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +29 -29
  15. package/dist/x-chart.js +46 -46
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +8 -8
  18. package/dist/x-collapse.js +10 -10
  19. package/dist/x-color-picker.js +41 -41
  20. package/dist/x-combobox.js +28 -0
  21. package/dist/x-command-palette.js +25 -25
  22. package/dist/x-container.js +6 -6
  23. package/dist/x-context-menu.js +18 -18
  24. package/dist/x-copy.js +22 -22
  25. package/dist/x-currency-field.js +21 -21
  26. package/dist/x-date-picker.js +37 -37
  27. package/dist/x-divider.js +8 -8
  28. package/dist/x-drawer.js +11 -11
  29. package/dist/x-dropdown.js +9 -9
  30. package/dist/x-fieldset.js +5 -5
  31. package/dist/x-file-download.js +7 -7
  32. package/dist/x-form-field.js +15 -15
  33. package/dist/x-form.js +9 -9
  34. package/dist/x-gaussian-blur.js +18 -18
  35. package/dist/x-grid.js +6 -6
  36. package/dist/x-icon.js +7 -7
  37. package/dist/x-image.js +18 -18
  38. package/dist/x-kinetic-font.js +28 -28
  39. package/dist/x-kinetic-typography.js +37 -37
  40. package/dist/x-liquid-dock.js +35 -35
  41. package/dist/x-liquid-fill.js +40 -40
  42. package/dist/x-liquid-glass.js +36 -36
  43. package/dist/x-menu-item.js +10 -10
  44. package/dist/x-menu.js +10 -10
  45. package/dist/x-metaball-cursor.js +25 -25
  46. package/dist/x-modal.js +12 -12
  47. package/dist/x-morph-stack.js +39 -39
  48. package/dist/x-navbar.js +12 -12
  49. package/dist/x-neural-glow.js +31 -31
  50. package/dist/x-notification-center.js +10 -10
  51. package/dist/x-organic-divider.js +15 -15
  52. package/dist/x-organic-progress.js +35 -35
  53. package/dist/x-organic-shape.js +12 -12
  54. package/dist/x-pagination.js +16 -16
  55. package/dist/x-particle-button.js +47 -47
  56. package/dist/x-popover.js +14 -14
  57. package/dist/x-progress-circle.js +7 -7
  58. package/dist/x-progress.js +7 -7
  59. package/dist/x-radio.js +11 -11
  60. package/dist/x-ripple-effect.js +11 -11
  61. package/dist/x-scroll-parallax.js +17 -17
  62. package/dist/x-scroll-stack.js +18 -18
  63. package/dist/x-scroll-story.js +34 -34
  64. package/dist/x-scroll-timeline.js +45 -45
  65. package/dist/x-scroll.js +40 -40
  66. package/dist/x-search-field.js +14 -14
  67. package/dist/x-select.js +9 -9
  68. package/dist/x-sidebar.js +16 -16
  69. package/dist/x-skeleton-group.js +15 -0
  70. package/dist/x-skeleton.js +1 -6
  71. package/dist/x-slider.js +16 -16
  72. package/dist/x-soft-body.js +20 -20
  73. package/dist/x-spacer.js +5 -5
  74. package/dist/x-spinner.js +5 -5
  75. package/dist/x-splash.js +13 -13
  76. package/dist/x-stat.js +9 -9
  77. package/dist/x-stepper.js +15 -16
  78. package/dist/x-switch.js +10 -10
  79. package/dist/x-tab.js +7 -7
  80. package/dist/x-table-cell.js +19 -19
  81. package/dist/x-table-row.js +10 -10
  82. package/dist/x-table.js +13 -13
  83. package/dist/x-tabs.js +11 -11
  84. package/dist/x-text-area.js +17 -17
  85. package/dist/x-theme.js +25 -25
  86. package/dist/x-timeline-item.js +20 -20
  87. package/dist/x-timeline.js +9 -9
  88. package/dist/x-toast.js +21 -21
  89. package/dist/x-toaster.js +8 -8
  90. package/dist/x-tooltip.js +14 -0
  91. package/dist/x-typography.js +8 -8
  92. package/package.json +13 -1
package/dist/x-divider.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var YQ=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.J(a,c)?c:b},ZQ=function(a){for(;;){var b=a.firstChild;if($APP.n(b))a.removeChild(b);else break}},jR=function(a){var b=$APP.xf([$APP.Pk,$APP.Yh,$APP.Ai,$Q,aR,$APP.xm,bR,$APP.pl,$APP.vj,cR],[a.getAttribute("variant"),a.getAttribute("label"),a.getAttribute("align"),a.getAttribute("length"),a.getAttribute("thickness"),a.getAttribute("color"),a.getAttribute("inset"),a.getAttribute("orientation"),a.getAttribute("aria-label"),
3
- a.getAttribute("role")]),c=$APP.M(b);b=$APP.D(c,$APP.vj);var d=$APP.D(c,cR),e=$APP.D(c,$APP.Yh);var g=$APP.D(c,$APP.Pk);var h=$APP.D(c,$APP.Ai),l=$APP.D(c,$Q),m=$APP.D(c,aR),p=$APP.D(c,$APP.xm),q=$APP.D(c,bR);c=$APP.D(c,$APP.pl);g=$APP.xf([$APP.Qh,$APP.Yi,dR,eR,$APP.pj,$APP.Oh,$APP.Mk,$APP.U,fR,$APP.il],[d,YQ(gR,"center",h),m,q,p,YQ(hR,"solid",g),YQ(iR,"horizontal",c),e,l,b]);c=$APP.M(g);d=$APP.D(c,$APP.il);h=$APP.D(c,$APP.Yi);l=$APP.D(c,dR);m=$APP.D(c,eR);p=$APP.D(c,$APP.pj);q=$APP.D(c,$APP.Oh);
4
- e=$APP.D(c,$APP.Mk);b=$APP.D(c,$APP.U);var v=$APP.D(c,fR);c=typeof b==="string"&&b.trim().length>0;var x=a.style;a.setAttribute("data-orientation",e);a.setAttribute("data-variant",q);a.setAttribute("data-align",h);x.setProperty("--x-divider-thickness",$APP.n(l)?l:"1px");x.setProperty("--x-divider-inset",$APP.n(m)?m:"0px");x.setProperty("--x-divider-length",$APP.n(v)?v:"auto");$APP.n(p)?x.setProperty("--x-divider-color",p):x.removeProperty("--x-divider-color");g=$APP.Qh.g(g);$APP.J(new $APP.S(null,
5
- new $APP.R(null,2,["none",null,"presentation",null],null),null),g)?a.setAttribute("role","presentation"):a.setAttribute("role","separator");$APP.C.i(e,"vertical")?a.setAttribute("aria-orientation","vertical"):a.removeAttribute("aria-orientation");$APP.n($APP.n(d)?d.length>0:d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");c?(d=$APP.k(a,"__xDividerRefs"),$APP.C.i($APP.k(d,"mode"),"no-label")&&(e=$APP.k(d,"container"),ZQ(e),g=document.createElement("div"),h=document.createElement("span"),
2
+ var pS=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},qS=function(a){for(;;){var b=a.firstChild;if($APP.n(b))a.removeChild(b);else break}},BS=function(a){var b=$APP.zf([$APP.bl,$APP.ki,$APP.Oi,rS,sS,$APP.Lm,tS,$APP.Dl,$APP.Nj,uS],[a.getAttribute("variant"),a.getAttribute("label"),a.getAttribute("align"),a.getAttribute("length"),a.getAttribute("thickness"),a.getAttribute("color"),a.getAttribute("inset"),a.getAttribute("orientation"),a.getAttribute("aria-label"),
3
+ a.getAttribute("role")]),c=$APP.M(b);b=$APP.D(c,$APP.Nj);var d=$APP.D(c,uS),e=$APP.D(c,$APP.ki);var g=$APP.D(c,$APP.bl);var h=$APP.D(c,$APP.Oi),l=$APP.D(c,rS),m=$APP.D(c,sS),p=$APP.D(c,$APP.Lm),q=$APP.D(c,tS);c=$APP.D(c,$APP.Dl);g=$APP.zf([$APP.ci,$APP.lj,vS,wS,$APP.Ej,$APP.Qg,$APP.Zk,$APP.U,xS,$APP.wl],[d,pS(yS,"center",h),m,q,p,pS(zS,"solid",g),pS(AS,"horizontal",c),e,l,b]);c=$APP.M(g);d=$APP.D(c,$APP.wl);h=$APP.D(c,$APP.lj);l=$APP.D(c,vS);m=$APP.D(c,wS);p=$APP.D(c,$APP.Ej);q=$APP.D(c,$APP.Qg);
4
+ e=$APP.D(c,$APP.Zk);b=$APP.D(c,$APP.U);var v=$APP.D(c,xS);c=typeof b==="string"&&b.trim().length>0;var x=a.style;a.setAttribute("data-orientation",e);a.setAttribute("data-variant",q);a.setAttribute("data-align",h);x.setProperty("--x-divider-thickness",$APP.n(l)?l:"1px");x.setProperty("--x-divider-inset",$APP.n(m)?m:"0px");x.setProperty("--x-divider-length",$APP.n(v)?v:"auto");$APP.n(p)?x.setProperty("--x-divider-color",p):x.removeProperty("--x-divider-color");g=$APP.ci.g(g);$APP.I(new $APP.S(null,
5
+ new $APP.Q(null,2,["none",null,"presentation",null],null),null),g)?a.setAttribute("role","presentation"):a.setAttribute("role","separator");$APP.C.i(e,"vertical")?a.setAttribute("aria-orientation","vertical"):a.removeAttribute("aria-orientation");$APP.n($APP.n(d)?d.length>0:d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");c?(d=$APP.k(a,"__xDividerRefs"),$APP.C.i($APP.k(d,"mode"),"no-label")&&(e=$APP.k(d,"container"),qS(e),g=document.createElement("div"),h=document.createElement("span"),
6
6
  l=document.createElement("slot"),m=document.createElement("span"),p=document.createElement("div"),g.setAttribute("part","line-left"),h.setAttribute("part","label"),l.setAttribute("name","label"),m.setAttribute("part","label-text"),p.setAttribute("part","line-right"),h.appendChild(l),h.appendChild(m),e.appendChild(g),e.appendChild(h),e.appendChild(p),d["line-left"]=g,d["label-wrap"]=h,d["label-text"]=m,d["line-right"]=p,d.mode="label"),a=$APP.k($APP.k(a,"__xDividerRefs"),"label-text"),$APP.n(a)&&(a.textContent=
7
- b)):(a=$APP.k(a,"__xDividerRefs"),$APP.C.i($APP.k(a,"mode"),"label")&&(b=$APP.k(a,"container"),ZQ(b),d=document.createElement("div"),d.setAttribute("part","line"),b.appendChild(d),a["line-left"]=null,a["label-wrap"]=null,a["label-text"]=null,a["line-right"]=null,a.mode="no-label"));return null},kR=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},
8
- lR=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},mR=function(a){lR(a,"orientation","horizontal");lR(a,"variant","solid");lR(a,"align","center");kR(a,"label");kR(a,"thickness");kR(a,"color");kR(a,"inset");kR(a,"length")},oR=function(){var a=class extends HTMLElement{};a.observedAttributes=nR;a.prototype.connectedCallback=
7
+ b)):(a=$APP.k(a,"__xDividerRefs"),$APP.C.i($APP.k(a,"mode"),"label")&&(b=$APP.k(a,"container"),qS(b),d=document.createElement("div"),d.setAttribute("part","line"),b.appendChild(d),a["line-left"]=null,a["label-wrap"]=null,a["label-text"]=null,a["line-right"]=null,a.mode="no-label"));return null},CS=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},
8
+ DS=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},ES=function(a){DS(a,"orientation","horizontal");DS(a,"variant","solid");DS(a,"align","center");CS(a,"label");CS(a,"thickness");CS(a,"color");CS(a,"inset");CS(a,"length")},GS=function(){var a=class extends HTMLElement{};a.observedAttributes=FS;a.prototype.connectedCallback=
9
9
  function(){if(!$APP.n($APP.k(this,"__xDividerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-divider-color:rgba(0,0,0,0.12);--x-divider-thickness:1px;--x-divider-inset:0px;--x-divider-length:auto;}@media (prefers-color-scheme:dark){:host{--x-divider-color:rgba(255,255,255,0.15);}}[part\x3dcontainer]{display:flex;align-items:center;width:var(--x-divider-length,auto);box-sizing:border-box;}:host([data-orientation\x3d'vertical']) [part\x3dcontainer]{flex-direction:column;height:var(--x-divider-length,auto);width:auto;}[part\x3dline],[part\x3dline-left],[part\x3dline-right]{flex:1;border:none;background:var(--x-divider-color,rgba(0,0,0,0.12));height:var(--x-divider-thickness,1px);margin:var(--x-divider-inset,0px) 0;}:host([data-orientation\x3d'vertical']) [part\x3dline],:host([data-orientation\x3d'vertical']) [part\x3dline-left],:host([data-orientation\x3d'vertical']) [part\x3dline-right]{width:var(--x-divider-thickness,1px);height:auto;margin:0 var(--x-divider-inset,0px);}:host([data-variant\x3d'dashed']) [part\x3dline],:host([data-variant\x3d'dashed']) [part\x3dline-left],:host([data-variant\x3d'dashed']) [part\x3dline-right]{background:none;height:0;border-top:var(--x-divider-thickness,1px) dashed var(--x-divider-color,rgba(0,0,0,0.12));}:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline],:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline-left],:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline-right]{border-top:none;border-left:var(--x-divider-thickness,1px) dashed var(--x-divider-color,rgba(0,0,0,0.12));width:0;height:auto;}:host([data-variant\x3d'dotted']) [part\x3dline],:host([data-variant\x3d'dotted']) [part\x3dline-left],:host([data-variant\x3d'dotted']) [part\x3dline-right]{background:none;height:0;border-top:var(--x-divider-thickness,1px) dotted var(--x-divider-color,rgba(0,0,0,0.12));}:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline],:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline-left],:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline-right]{border-top:none;border-left:var(--x-divider-thickness,1px) dotted var(--x-divider-color,rgba(0,0,0,0.12));width:0;height:auto;}[part\x3dlabel]{display:flex;align-items:center;flex-shrink:0;padding:0 0.75em;font-size:0.75rem;font-weight:500;color:var(--x-divider-color);white-space:nowrap;}:host([data-orientation\x3d'vertical']) [part\x3dlabel]{padding:0.75em 0;writing-mode:horizontal-tb;}[part\x3dlabel-text]{display:inline;}:host([data-align\x3d'start']) [part\x3dline-left]{flex:0 0 1rem;}:host([data-align\x3d'end']) [part\x3dline-right]{flex:0 0 1rem;}@media (prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important;}}";
10
- d.setAttribute("part","container");var e=document.createElement("div");e.setAttribute("part","line");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xDividerRefs={root:b,container:d,mode:"no-label"}}return jR(this)};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){return $APP.N(c,d)?$APP.n($APP.k(this,"__xDividerRefs"))?jR(this):null:null};mR(a.prototype);return a},pR=function(){$APP.n(customElements.get("x-divider"))||customElements.define("x-divider",
11
- oR());return null},bR=new $APP.K(null,"inset-raw","inset-raw",89351124),eR=new $APP.K(null,"inset","inset",-396367740),cR=new $APP.K(null,"role-raw","role-raw",777951354),fR=new $APP.K(null,"length","length",588987862),$Q=new $APP.K(null,"length-raw","length-raw",-1832244116),dR=new $APP.K(null,"thickness","thickness",-940175454),aR=new $APP.K(null,"thickness-raw","thickness-raw",1843812655);var nR="orientation variant thickness color inset length label align role aria-label".split(" "),iR=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),hR=new $APP.S(null,new $APP.R(null,3,["dashed",null,"dotted",null,"solid",null],null),null),gR=new $APP.S(null,new $APP.R(null,3,["center",null,"start",null,"end",null],null),null);$APP.fa("baredom.exports.x_divider.init",pR);export const init=pR;
10
+ d.setAttribute("part","container");var e=document.createElement("div");e.setAttribute("part","line");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xDividerRefs={root:b,container:d,mode:"no-label"}}return BS(this)};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){return $APP.N(c,d)?$APP.n($APP.k(this,"__xDividerRefs"))?BS(this):null:null};ES(a.prototype);return a},HS=function(){$APP.n(customElements.get("x-divider"))||customElements.define("x-divider",
11
+ GS());return null},tS=new $APP.K(null,"inset-raw","inset-raw",89351124),wS=new $APP.K(null,"inset","inset",-396367740),uS=new $APP.K(null,"role-raw","role-raw",777951354),xS=new $APP.K(null,"length","length",588987862),rS=new $APP.K(null,"length-raw","length-raw",-1832244116),vS=new $APP.K(null,"thickness","thickness",-940175454),sS=new $APP.K(null,"thickness-raw","thickness-raw",1843812655);var FS="orientation variant thickness color inset length label align role aria-label".split(" "),AS=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),zS=new $APP.S(null,new $APP.Q(null,3,["dashed",null,"dotted",null,"solid",null],null),null),yS=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null);$APP.ha("baredom.exports.x_divider.init",HS);export const init=HS;
package/dist/x-drawer.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var oF=function(a){var b=$APP.k(a,"__xDrawerRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("div"),m=document.createElement("slot"),p=document.createElement("div"),q=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-drawer-size:20rem;--x-drawer-bg:var(--x-color-bg,Canvas);--x-drawer-fg:var(--x-color-text,CanvasText);--x-drawer-backdrop:rgb(0 0 0/0.4);--x-drawer-shadow:var(--x-shadow-lg,0 8px 24px rgb(0 0 0/0.18));--x-drawer-duration:var(--x-transition-duration,200ms);--x-drawer-easing:ease;--x-drawer-z:1000;--x-drawer-header-padding:1rem 1.25rem;--x-drawer-body-padding:1rem 1.25rem;--x-drawer-footer-padding:0.75rem 1.25rem;--x-drawer-border:var(--x-color-border,color-mix(in srgb,currentColor 12%,transparent));}[part\x3dbackdrop]{display:none;position:fixed;inset:0;background:var(--x-drawer-backdrop);z-index:var(--x-drawer-z);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{display:block;}[part\x3dpanel]{position:fixed;background:var(--x-drawer-bg);color:var(--x-drawer-fg);box-shadow:var(--x-drawer-shadow);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-drawer-z) + 1);transition:transform var(--x-drawer-duration) var(--x-drawer-easing);}:host([data-placement\x3dleft]) [part\x3dpanel],:host([data-placement\x3dright]) [part\x3dpanel]{top:0;bottom:0;width:var(--x-drawer-size);max-width:100%;}:host([data-placement\x3dleft]) [part\x3dpanel]{left:0;transform:translateX(-100%);}:host([data-placement\x3dright]) [part\x3dpanel]{right:0;transform:translateX(100%);}:host([data-placement\x3dtop]) [part\x3dpanel],:host([data-placement\x3dbottom]) [part\x3dpanel]{left:0;right:0;height:var(--x-drawer-size);max-height:100dvh;}:host([data-placement\x3dtop]) [part\x3dpanel]{top:0;transform:translateY(-100%);}:host([data-placement\x3dbottom]) [part\x3dpanel]{bottom:0;transform:translateY(100%);}:host([data-open\x3dtrue]) [part\x3dpanel]{transform:none;}[part\x3dpanel]:focus{outline:none;}[part\x3dheader]{padding:var(--x-drawer-header-padding);border-bottom:1px solid var(--x-drawer-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-drawer-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-drawer-footer-padding);border-top:1px solid var(--x-drawer-border);flex-shrink:0;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none;}}@media (prefers-color-scheme:dark){:host{--x-drawer-bg:var(--x-color-bg,#1c1d24);--x-drawer-fg:var(--x-color-text,#e2e4ef);--x-drawer-border:var(--x-color-border,rgb(255 255 255/0.08));--x-drawer-shadow:var(--x-shadow-lg,0 8px 40px rgb(0 0 0/0.55));--x-drawer-backdrop:rgb(0 0 0/0.55);}}";
2
+ var MG=function(a){var b=$APP.k(a,"__xDrawerRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("div"),m=document.createElement("slot"),p=document.createElement("div"),q=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-drawer-size:20rem;--x-drawer-bg:var(--x-color-bg,Canvas);--x-drawer-fg:var(--x-color-text,CanvasText);--x-drawer-backdrop:rgb(0 0 0/0.4);--x-drawer-shadow:var(--x-shadow-lg,0 8px 24px rgb(0 0 0/0.18));--x-drawer-duration:var(--x-transition-duration,200ms);--x-drawer-easing:ease;--x-drawer-z:1000;--x-drawer-header-padding:1rem 1.25rem;--x-drawer-body-padding:1rem 1.25rem;--x-drawer-footer-padding:0.75rem 1.25rem;--x-drawer-border:var(--x-color-border,color-mix(in srgb,currentColor 12%,transparent));}[part\x3dbackdrop]{display:none;position:fixed;inset:0;background:var(--x-drawer-backdrop);z-index:var(--x-drawer-z);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{display:block;}[part\x3dpanel]{position:fixed;background:var(--x-drawer-bg);color:var(--x-drawer-fg);box-shadow:var(--x-drawer-shadow);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-drawer-z) + 1);transition:transform var(--x-drawer-duration) var(--x-drawer-easing);}:host([data-placement\x3dleft]) [part\x3dpanel],:host([data-placement\x3dright]) [part\x3dpanel]{top:0;bottom:0;width:var(--x-drawer-size);max-width:100%;}:host([data-placement\x3dleft]) [part\x3dpanel]{left:0;transform:translateX(-100%);}:host([data-placement\x3dright]) [part\x3dpanel]{right:0;transform:translateX(100%);}:host([data-placement\x3dtop]) [part\x3dpanel],:host([data-placement\x3dbottom]) [part\x3dpanel]{left:0;right:0;height:var(--x-drawer-size);max-height:100dvh;}:host([data-placement\x3dtop]) [part\x3dpanel]{top:0;transform:translateY(-100%);}:host([data-placement\x3dbottom]) [part\x3dpanel]{bottom:0;transform:translateY(100%);}:host([data-open\x3dtrue]) [part\x3dpanel]{transform:none;}[part\x3dpanel]:focus{outline:none;}[part\x3dheader]{padding:var(--x-drawer-header-padding);border-bottom:1px solid var(--x-drawer-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-drawer-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-drawer-footer-padding);border-top:1px solid var(--x-drawer-border);flex-shrink:0;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none;}}@media (prefers-color-scheme:dark){:host{--x-drawer-bg:var(--x-color-bg,#1c1d24);--x-drawer-fg:var(--x-color-text,#e2e4ef);--x-drawer-border:var(--x-color-border,rgb(255 255 255/0.08));--x-drawer-shadow:var(--x-shadow-lg,0 8px 40px rgb(0 0 0/0.55));--x-drawer-backdrop:rgb(0 0 0/0.55);}}";
3
3
  d.setAttribute("part","backdrop");e.setAttribute("part","panel");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");g.setAttribute("part","header");h.setAttribute("name","header");l.setAttribute("part","body");p.setAttribute("part","footer");q.setAttribute("name","footer");g.appendChild(h);l.appendChild(m);p.appendChild(q);e.appendChild(g);e.appendChild(l);e.appendChild(p);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xDrawerRefs={root:b,backdrop:d,panel:e,header:g,body:l,
4
- footer:p};return $APP.k(a,"__xDrawerRefs")},qF=function(a){a=new $APP.R(null,3,[$APP.ki,a.hasAttribute("open"),$APP.ym,a.getAttribute("placement"),$APP.Yh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.ki);a=$APP.D(b,$APP.ym);b=$APP.D(b,$APP.Yh);c=$APP.F(c);a=typeof a==="string"&&$APP.J(pF,a)?a:"right";b=typeof b==="string"&&$APP.N(b,"")?b:"Drawer";return new $APP.R(null,3,[$APP.em,c,$APP.rj,a,$APP.U,b],null)},rF=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,
5
- composed:!0,cancelable:!1}))},sF=function(a){return $APP.ve($APP.ce(function(b){var c=window.getComputedStyle(b);return $APP.N("none",c.display)&&$APP.N("hidden",c.visibility)&&b.offsetWidth>0&&b.offsetHeight>0},$APP.tc(a.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"))))},tF=function(a){var b=$APP.k(a,"__xDrawerRefs");b=$APP.n(b)?$APP.k(b,"panel"):null;var c=$APP.k(a,"__xDrawerRestore"),d=
6
- $APP.k(a,"__xDrawerPanelTab")===!0;a.__xDrawerTabbables=null;a.__xDrawerRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xDrawerPanelTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},uF=function(a,b){rF(a,"x-drawer-dismiss",{reason:b});a.removeAttribute("open");return null},vF=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},wF=function(a){a.removeAttribute("open");return null},xF=function(a){var b=oF(a);b=$APP.k(b,"panel");var c=qF(a),d=
7
- $APP.em.g(c),e=$APP.k(a,"__xDrawerPrevOpen");a.setAttribute("data-open",$APP.n(d)?"true":"false");a.setAttribute("data-placement",$APP.rj.g(c));b.setAttribute("aria-label",$APP.U.g(c));$APP.n(d)?b.removeAttribute("aria-hidden"):b.setAttribute("aria-hidden","true");$APP.N(e,d)&&(a.__xDrawerPrevOpen=d,rF(a,"x-drawer-toggle",{open:d}),$APP.n(d)?setTimeout(function(){var g=$APP.k(a,"__xDrawerRefs");g=$APP.n(g)?$APP.k(g,"panel"):null;var h=sF(a);a.__xDrawerRestore=document.activeElement;var l=$APP.n(h)?
8
- $APP.ph(h):null;a.__xDrawerTabbables=l;$APP.t(h)?$APP.u(h).focus():$APP.n(g)&&($APP.n(g.hasAttribute("tabindex"))||(g.setAttribute("tabindex","-1"),a.__xDrawerPanelTab=!0),g.focus());return null},0):tF(a))},yF=function(a){function b(g){var h=g.key;if($APP.C.i(h,"Escape"))g.preventDefault(),uF(a,"escape");else if($APP.C.i(h,"Tab")){h=$APP.k(a,"__xDrawerTabbables");h=$APP.n(h)?$APP.ve($APP.tc(h)):$APP.ee;var l=$APP.k(a,"__xDrawerRefs");l=$APP.n(l)?$APP.k(l,"panel"):null;if($APP.Gc(h))g.preventDefault(),
9
- $APP.n(l)&&l.focus();else{l=document.activeElement;var m=$APP.u(h);h=$APP.wc(h);var p=g.shiftKey;$APP.n($APP.n(p)?$APP.C.i(l,m):p)?(g.preventDefault(),h.focus()):$APP.r(p)&&$APP.C.i(l,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return uF(a,"backdrop")}var d=oF(a),e=$APP.k(d,"panel");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.ia(a,"__xDrawerHandlers",{backdrop:c,keydown:b})},zF=function(a){var b=$APP.k(a,"__xDrawerHandlers"),c=$APP.k(a,"__xDrawerRefs");
10
- if($APP.n($APP.n(b)?c:b)){var d=$APP.k(c,"backdrop");c=$APP.k(c,"panel");var e=$APP.k(b,"backdrop");b=$APP.k(b,"keydown");$APP.n(e)&&d.removeEventListener("click",e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xDrawerHandlers=null},AF=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?vF(this):wF(this)},enumerable:!0,configurable:!0});Object.defineProperty(a,"placement",{get:function(){var b=this.getAttribute("placement");
11
- return $APP.n(b)?b:"right"},set:function(b){return b==null?this.removeAttribute("placement"):this.setAttribute("placement",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Drawer"},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return vF(this)},enumerable:!0,configurable:!0,
12
- writable:!0});Object.defineProperty(a,"hide",{value:function(){return wF(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?wF(this):vF(this);return null},enumerable:!0,configurable:!0,writable:!0})},CF=function(){if(!$APP.n(customElements.get("x-drawer"))){var a=class extends HTMLElement{};a.observedAttributes=BF;a.prototype.connectedCallback=function(){oF(this);zF(this);yF(this);xF(this);return null};a.prototype.disconnectedCallback=
13
- function(){zF(this);tF(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&xF(this);return null};AF(a.prototype);customElements.define("x-drawer",a)}return null},DF=function(){return CF()};var pF=new $APP.S(null,new $APP.R(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),BF=["open","placement","label"];$APP.Pd(["x-drawer-toggle",new $APP.R(null,2,[$APP.Dl,!1,$APP.Cj,new $APP.R(null,1,[$APP.Al,$APP.Fj],null)],null),"x-drawer-dismiss",new $APP.R(null,2,[$APP.Dl,!1,$APP.Cj,new $APP.R(null,1,[$APP.ti,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_drawer.init",DF);export const init=DF;
4
+ footer:p};return $APP.k(a,"__xDrawerRefs")},OG=function(a){a=new $APP.Q(null,3,[$APP.xi,a.hasAttribute("open"),$APP.Mm,a.getAttribute("placement"),$APP.ki,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.xi);a=$APP.D(b,$APP.Mm);b=$APP.D(b,$APP.ki);c=$APP.F(c);a=typeof a==="string"&&$APP.I(NG,a)?a:"right";b=typeof b==="string"&&$APP.N(b,"")?b:"Drawer";return new $APP.Q(null,3,[$APP.sm,c,$APP.Gj,a,$APP.U,b],null)},PG=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,
5
+ composed:!0,cancelable:!1}))},QG=function(a){return $APP.xe($APP.de(function(b){var c=window.getComputedStyle(b);return $APP.N("none",c.display)&&$APP.N("hidden",c.visibility)&&b.offsetWidth>0&&b.offsetHeight>0},$APP.uc(a.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"))))},RG=function(a){var b=$APP.k(a,"__xDrawerRefs");b=$APP.n(b)?$APP.k(b,"panel"):null;var c=$APP.k(a,"__xDrawerRestore"),d=
6
+ $APP.k(a,"__xDrawerPanelTab")===!0;a.__xDrawerTabbables=null;a.__xDrawerRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xDrawerPanelTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},SG=function(a,b){PG(a,"x-drawer-dismiss",{reason:b});a.removeAttribute("open");return null},TG=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},UG=function(a){a.removeAttribute("open");return null},VG=function(a){var b=MG(a);b=$APP.k(b,"panel");var c=OG(a),d=
7
+ $APP.sm.g(c),e=$APP.k(a,"__xDrawerPrevOpen");a.setAttribute("data-open",$APP.n(d)?"true":"false");a.setAttribute("data-placement",$APP.Gj.g(c));b.setAttribute("aria-label",$APP.U.g(c));$APP.n(d)?b.removeAttribute("aria-hidden"):b.setAttribute("aria-hidden","true");$APP.N(e,d)&&(a.__xDrawerPrevOpen=d,PG(a,"x-drawer-toggle",{open:d}),$APP.n(d)?setTimeout(function(){var g=$APP.k(a,"__xDrawerRefs");g=$APP.n(g)?$APP.k(g,"panel"):null;var h=QG(a);a.__xDrawerRestore=document.activeElement;var l=$APP.n(h)?
8
+ $APP.Dh(h):null;a.__xDrawerTabbables=l;$APP.t(h)?$APP.u(h).focus():$APP.n(g)&&($APP.n(g.hasAttribute("tabindex"))||(g.setAttribute("tabindex","-1"),a.__xDrawerPanelTab=!0),g.focus());return null},0):RG(a))},WG=function(a){function b(g){var h=g.key;if($APP.C.i(h,"Escape"))g.preventDefault(),SG(a,"escape");else if($APP.C.i(h,"Tab")){h=$APP.k(a,"__xDrawerTabbables");h=$APP.n(h)?$APP.xe($APP.uc(h)):$APP.fe;var l=$APP.k(a,"__xDrawerRefs");l=$APP.n(l)?$APP.k(l,"panel"):null;if($APP.Hc(h))g.preventDefault(),
9
+ $APP.n(l)&&l.focus();else{l=document.activeElement;var m=$APP.u(h);h=$APP.xc(h);var p=g.shiftKey;$APP.n($APP.n(p)?$APP.C.i(l,m):p)?(g.preventDefault(),h.focus()):$APP.r(p)&&$APP.C.i(l,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return SG(a,"backdrop")}var d=MG(a),e=$APP.k(d,"panel");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.ja(a,"__xDrawerHandlers",{backdrop:c,keydown:b})},XG=function(a){var b=$APP.k(a,"__xDrawerHandlers"),c=$APP.k(a,"__xDrawerRefs");
10
+ if($APP.n($APP.n(b)?c:b)){var d=$APP.k(c,"backdrop");c=$APP.k(c,"panel");var e=$APP.k(b,"backdrop");b=$APP.k(b,"keydown");$APP.n(e)&&d.removeEventListener("click",e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xDrawerHandlers=null},YG=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?TG(this):UG(this)},enumerable:!0,configurable:!0});Object.defineProperty(a,"placement",{get:function(){var b=this.getAttribute("placement");
11
+ return $APP.n(b)?b:"right"},set:function(b){return b==null?this.removeAttribute("placement"):this.setAttribute("placement",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Drawer"},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return TG(this)},enumerable:!0,configurable:!0,
12
+ writable:!0});Object.defineProperty(a,"hide",{value:function(){return UG(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?UG(this):TG(this);return null},enumerable:!0,configurable:!0,writable:!0})},$G=function(){if(!$APP.n(customElements.get("x-drawer"))){var a=class extends HTMLElement{};a.observedAttributes=ZG;a.prototype.connectedCallback=function(){MG(this);XG(this);WG(this);VG(this);return null};a.prototype.disconnectedCallback=
13
+ function(){XG(this);RG(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&VG(this);return null};YG(a.prototype);customElements.define("x-drawer",a)}return null},aH=function(){return $G()};var NG=new $APP.S(null,new $APP.Q(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),ZG=["open","placement","label"];$APP.Qd(["x-drawer-toggle",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,new $APP.Q(null,1,[$APP.Ol,$APP.Sj],null)],null),"x-drawer-dismiss",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,new $APP.Q(null,1,[$APP.Hi,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_drawer.init",aH);export const init=aH;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var iq=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},kq=function(a){var b=$APP.k(a,"__xDropdownRefs");if($APP.n(b)){var c=$APP.k(b,"trigger"),d=$APP.k(b,"label");b=$APP.k(b,"panel");var e=a.hasAttribute("open"),g=a.hasAttribute("disabled");var h=a.getAttribute("label");h=$APP.n(h)?h:"";a=a.getAttribute("placement");a=$APP.J(jq,a)?a:"bottom-start";d.textContent=h;c.setAttribute("aria-expanded",$APP.n(e)?"true":"false");iq(c,"disabled",g);return b.setAttribute("data-placement",
3
- a)}return null},lq=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.r(a.hasAttribute("open"));b=new CustomEvent("x-dropdown-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),a.dispatchEvent(new CustomEvent("x-dropdown-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},mq=function(a){var b=$APP.k(a,"__xDropdownHandlers");if($APP.n(b)){var c=
4
- $APP.k(b,"docClick"),d=$APP.k(b,"docKeydown");return setTimeout(function(){return $APP.n(a.hasAttribute("open"))?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},nq=function(a){a=$APP.k(a,"__xDropdownHandlers");if($APP.n(a)){var b=$APP.k(a,"docKeydown");document.removeEventListener("click",$APP.k(a,"docClick"));return document.removeEventListener("keydown",b)}return null},oq=function(a){return{triggerClick:function(){return lq(a,"pointer")},triggerKeydown:function(b){var c=
5
- b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),lq(a,"keyboard")):null},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.r(a.contains(b))?lq(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:lq(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?lq(a,
6
- "escape"):null}}},pq=function(a){var b=$APP.k(a,"__xDropdownRefs");if($APP.n(b)){var c=$APP.k(a,"__xDropdownHandlers");$APP.n(c)&&(b=$APP.k(b,"trigger"),b.removeEventListener("click",$APP.k(c,"triggerClick")),b.removeEventListener("keydown",$APP.k(c,"triggerKeydown")),a.removeEventListener("focusout",$APP.k(c,"hostFocusout")))}},qq=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return iq(this,c,$APP.F(d))}})},rq=
7
- 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}})},tq=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return sq}});qq(b,"open","open");qq(b,"disabled","disabled");rq(b,"label","label");rq(b,"placement","placement");b.show=function(){return $APP.n(this.hasAttribute("open"))?
8
- null:lq(this,"programmatic")};b.hide=function(){return $APP.n(this.hasAttribute("open"))?lq(this,"programmatic"):null};b.toggle=function(){return lq(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xDropdownRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("div"),m=document.createElement("div"),p=document.createElement("slot");
2
+ var Xq=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Zq=function(a){var b=$APP.k(a,"__xDropdownRefs");if($APP.n(b)){var c=$APP.k(b,"trigger"),d=$APP.k(b,"label");b=$APP.k(b,"panel");var e=a.hasAttribute("open"),g=a.hasAttribute("disabled");var h=a.getAttribute("label");h=$APP.n(h)?h:"";a=a.getAttribute("placement");a=$APP.I(Yq,a)?a:"bottom-start";d.textContent=h;c.setAttribute("aria-expanded",$APP.n(e)?"true":"false");Xq(c,"disabled",g);return b.setAttribute("data-placement",
3
+ a)}return null},$q=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.r(a.hasAttribute("open"));b=new CustomEvent("x-dropdown-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),a.dispatchEvent(new CustomEvent("x-dropdown-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},ar=function(a){var b=$APP.k(a,"__xDropdownHandlers");if($APP.n(b)){var c=
4
+ $APP.k(b,"docClick"),d=$APP.k(b,"docKeydown");return setTimeout(function(){return $APP.n(a.hasAttribute("open"))?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},br=function(a){a=$APP.k(a,"__xDropdownHandlers");if($APP.n(a)){var b=$APP.k(a,"docKeydown");document.removeEventListener("click",$APP.k(a,"docClick"));return document.removeEventListener("keydown",b)}return null},cr=function(a){return{triggerClick:function(){return $q(a,"pointer")},triggerKeydown:function(b){var c=
5
+ b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),$q(a,"keyboard")):null},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.r(a.contains(b))?$q(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.vc(b.composedPath()),b=$APP.Ud(function(c){return c===a},b),$APP.n(b)?null:$q(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?$q(a,
6
+ "escape"):null}}},dr=function(a){var b=$APP.k(a,"__xDropdownRefs");if($APP.n(b)){var c=$APP.k(a,"__xDropdownHandlers");$APP.n(c)&&(b=$APP.k(b,"trigger"),b.removeEventListener("click",$APP.k(c,"triggerClick")),b.removeEventListener("keydown",$APP.k(c,"triggerKeydown")),a.removeEventListener("focusout",$APP.k(c,"hostFocusout")))}},er=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Xq(this,c,$APP.F(d))}})},fr=
7
+ 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}})},hr=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return gr}});er(b,"open","open");er(b,"disabled","disabled");fr(b,"label","label");fr(b,"placement","placement");b.show=function(){return $APP.n(this.hasAttribute("open"))?
8
+ null:$q(this,"programmatic")};b.hide=function(){return $APP.n(this.hasAttribute("open"))?$q(this,"programmatic"):null};b.toggle=function(){return $q(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xDropdownRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("div"),m=document.createElement("div"),p=document.createElement("slot");
9
9
  d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-dropdown-trigger-bg:var(--x-color-surface-hover,#f8fafc);--x-dropdown-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-dropdown-trigger-bg-active:var(--x-color-surface-active,#e2e8f0);--x-dropdown-trigger-color:var(--x-color-text,#0f172a);--x-dropdown-trigger-border:1px solid var(--x-color-border,#e2e8f0);--x-dropdown-trigger-radius:var(--x-radius-md,6px);--x-dropdown-trigger-padding:0 0.75rem;--x-dropdown-trigger-height:2.25rem;--x-dropdown-trigger-font-size:var(--x-font-size-sm,0.9375rem);--x-dropdown-trigger-font-weight:500;--x-dropdown-chevron-color:var(--x-color-text-muted,#64748b);--x-dropdown-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-dropdown-panel-bg:var(--x-color-bg,#ffffff);--x-dropdown-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-dropdown-panel-radius:var(--x-radius-md,8px);--x-dropdown-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-dropdown-panel-padding:0.25rem;--x-dropdown-panel-min-width:10rem;--x-dropdown-panel-max-height:20rem;--x-dropdown-panel-offset:4px;--x-dropdown-transition-duration:var(--x-transition-duration,150ms);--x-dropdown-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-dropdown-trigger-bg:var(--x-color-surface-hover,#1e293b);--x-dropdown-trigger-bg-hover:var(--x-color-surface-active,#334155);--x-dropdown-trigger-bg-active:var(--x-color-surface-active,#475569);--x-dropdown-trigger-color:var(--x-color-text,#e2e8f0);--x-dropdown-trigger-border:1px solid var(--x-color-border,#334155);--x-dropdown-chevron-color:var(--x-color-text-muted,#94a3b8);--x-dropdown-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-dropdown-panel-bg:var(--x-color-bg,#1e293b);--x-dropdown-panel-border:1px solid var(--x-color-border,#334155);--x-dropdown-panel-shadow:var(--x-shadow-md,0 4px 24px rgba(0,0,0,0.4));}}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:0.375rem;height:var(--x-dropdown-trigger-height);padding:var(--x-dropdown-trigger-padding);background:var(--x-dropdown-trigger-bg);color:var(--x-dropdown-trigger-color);border:var(--x-dropdown-trigger-border);border-radius:var(--x-dropdown-trigger-radius);font-size:var(--x-dropdown-trigger-font-size);font-weight:var(--x-dropdown-trigger-font-weight);font-family:inherit;cursor:pointer;user-select:none;white-space:nowrap;}[part\x3dtrigger]:hover:not(:disabled){background:var(--x-dropdown-trigger-bg-hover);}[part\x3dtrigger]:active:not(:disabled){background:var(--x-dropdown-trigger-bg-active);}[part\x3dtrigger]:disabled{cursor:default;opacity:0.55;}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-dropdown-focus-ring);}[part\x3dtrigger-label]{flex:1;}[part\x3dchevron]{display:inline-block;color:var(--x-dropdown-chevron-color);font-style:normal;flex-shrink:0;transition:transform 200ms ease;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dpanel]{position:absolute;z-index:1000;box-sizing:border-box;background:var(--x-dropdown-panel-bg);border:var(--x-dropdown-panel-border);border-radius:var(--x-dropdown-panel-radius);box-shadow:var(--x-dropdown-panel-shadow);padding:var(--x-dropdown-panel-padding);min-width:var(--x-dropdown-panel-min-width);max-width:calc(100vw - 1rem);max-height:var(--x-dropdown-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scaleY(0.95);transition:opacity var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),transform var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),visibility 0s var(--x-dropdown-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scaleY(1);transition:opacity var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),transform var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-dropdown-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-dropdown-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-dropdown-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-dropdown-panel-offset));right:0;transform-origin:bottom right;}[part\x3dpanel-inner]{display:contents;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
10
10
  e.setAttribute("part","trigger");e.setAttribute("type","button");e.setAttribute("aria-haspopup","true");e.setAttribute("aria-expanded","false");e.setAttribute("aria-controls","panel");g.setAttribute("part","trigger-label");h.setAttribute("part","chevron");h.setAttribute("aria-hidden","true");h.textContent="▾";l.setAttribute("part","panel");l.setAttribute("id","panel");l.setAttribute("data-placement","bottom-start");m.setAttribute("part","panel-inner");e.appendChild(g);e.appendChild(h);m.appendChild(p);
11
- l.appendChild(m);c.appendChild(d);c.appendChild(e);c.appendChild(l);this.__xDropdownRefs={trigger:e,label:g,chevron:h,panel:l}}pq(this);nq(this);this.__xDropdownHandlers=oq(this);d=$APP.k(this,"__xDropdownRefs");$APP.n(d)&&(c=$APP.k(this,"__xDropdownHandlers"),$APP.n(c)&&(d=$APP.k(d,"trigger"),d.addEventListener("click",$APP.k(c,"triggerClick")),d.addEventListener("keydown",$APP.k(c,"triggerKeydown")),this.addEventListener("focusout",$APP.k(c,"hostFocusout"))));$APP.n(this.hasAttribute("open"))&&
12
- mq(this);return kq(this)};b.disconnectedCallback=function(){pq(this);return nq(this)};b.attributeChangedCallback=function(c){$APP.n($APP.k(this,"__xDropdownRefs"))?(kq(this),c=$APP.C.i(c,"open")?$APP.n(this.hasAttribute("open"))?mq(this):nq(this):null):c=null;return c};return a},uq=function(){return $APP.n(customElements.get("x-dropdown"))?null:customElements.define("x-dropdown",tq())};var jq=new $APP.S(null,new $APP.R(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),sq=["open","disabled","label","placement"];$APP.Pd(["x-dropdown-toggle",new $APP.R(null,2,[$APP.Dl,!0,$APP.Cj,new $APP.R(null,2,[$APP.Al,$APP.Fj,$APP.Nk,$APP.X],null)],null),"x-dropdown-change",new $APP.R(null,2,[$APP.Dl,!1,$APP.Cj,new $APP.R(null,1,[$APP.Al,$APP.Fj],null)],null)]);$APP.fa("baredom.exports.x_dropdown.init",uq);export const init=uq;
11
+ l.appendChild(m);c.appendChild(d);c.appendChild(e);c.appendChild(l);this.__xDropdownRefs={trigger:e,label:g,chevron:h,panel:l}}dr(this);br(this);this.__xDropdownHandlers=cr(this);d=$APP.k(this,"__xDropdownRefs");$APP.n(d)&&(c=$APP.k(this,"__xDropdownHandlers"),$APP.n(c)&&(d=$APP.k(d,"trigger"),d.addEventListener("click",$APP.k(c,"triggerClick")),d.addEventListener("keydown",$APP.k(c,"triggerKeydown")),this.addEventListener("focusout",$APP.k(c,"hostFocusout"))));$APP.n(this.hasAttribute("open"))&&
12
+ ar(this);return Zq(this)};b.disconnectedCallback=function(){dr(this);return br(this)};b.attributeChangedCallback=function(c){$APP.n($APP.k(this,"__xDropdownRefs"))?(Zq(this),c=$APP.C.i(c,"open")?$APP.n(this.hasAttribute("open"))?ar(this):br(this):null):c=null;return c};return a},ir=function(){return $APP.n(customElements.get("x-dropdown"))?null:customElements.define("x-dropdown",hr())};var Yq=new $APP.S(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),gr=["open","disabled","label","placement"];$APP.Qd(["x-dropdown-toggle",new $APP.Q(null,2,[$APP.Rl,!0,$APP.V,new $APP.Q(null,2,[$APP.Ol,$APP.Sj,$APP.$k,$APP.Y],null)],null),"x-dropdown-change",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,new $APP.Q(null,1,[$APP.Ol,$APP.Sj],null)],null)]);$APP.ha("baredom.exports.x_dropdown.init",ir);export const init=ir;
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var XC=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},aD=function(a){var b=$APP.k(a,"__xFieldsetRefs");if($APP.n(b)){var c=$APP.k(b,"root-el"),d=$APP.k(b,"legend-el");b=$APP.k(b,"content-el");var e=a.getAttribute("legend");e=new $APP.R(null,4,[YC,e,$APP.gl,a.hasAttribute("disabled"),$APP.vj,a.getAttribute("aria-label"),$APP.dj,a.getAttribute("aria-describedby")],null);var g=$APP.M(e),h=$APP.D(g,YC);var l=$APP.D(g,$APP.gl);e=$APP.D(g,$APP.vj);g=$APP.D(g,$APP.dj);h=$APP.n(h)?
3
- h:"";l=$APP.F(l);l=new $APP.R(null,5,[ZC,h,$C,$APP.N(h,""),$APP.W,l,$APP.il,e,$APP.qm,g],null);h=ZC.g(l);g=$C.g(l);e=$APP.W.g(l);d.textContent=h;$APP.n(g)?d.removeAttribute("hidden"):d.setAttribute("hidden","");d=$APP.il.g(l);$APP.n(d)?(c.setAttribute("aria-label",d),c.removeAttribute("aria-labelledby")):(c.removeAttribute("aria-label"),$APP.n(g)?c.setAttribute("aria-labelledby","x-fieldset-legend"):c.removeAttribute("aria-labelledby"));d=$APP.qm.g(l);$APP.n(d)?c.setAttribute("aria-describedby",d):
4
- c.removeAttribute("aria-describedby");XC(a,"data-disabled",e);return XC(b,"inert",e)}return null},bD=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return XC(this,"disabled",$APP.F(b))}})},cD=function(a){Object.defineProperty(a,"legend",{configurable:!0,enumerable:!0,get:function(){return this.getAttribute("legend")},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.T.g(b),b=this.setAttribute("legend",
5
- b)):b=this.removeAttribute("legend");return b}})},eD=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=dD;cD(b);bD(b);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFieldsetRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),l=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-fieldset-border-color:var(--x-color-border, #d1d5db);--x-fieldset-border-width:1px;--x-fieldset-border-radius:var(--x-radius-md, 8px);--x-fieldset-padding:1rem;--x-fieldset-gap:0.75rem;--x-fieldset-bg:var(--x-color-surface,transparent);--x-fieldset-legend-color:var(--x-color-text-muted,#374151);--x-fieldset-legend-font-size:var(--x-font-size-sm, 0.875rem);--x-fieldset-legend-font-weight:600;--x-fieldset-legend-padding:0 0.375rem;--x-fieldset-disabled-opacity:0.45;--x-fieldset-input-bg:var(--x-color-surface,#ffffff);--x-fieldset-input-color:var(--x-color-text,#0f172a);--x-fieldset-input-border:var(--x-color-border,#d1d5db);--x-fieldset-input-radius:var(--x-radius-sm,0.375rem);--x-fieldset-input-focus:var(--x-color-focus-ring,#60a5fa);}@media (prefers-color-scheme:dark){:host{--x-fieldset-border-color:var(--x-color-border, #374151);--x-fieldset-legend-color:var(--x-color-text-muted,#d1d5db);--x-fieldset-input-bg:var(--x-color-surface,#1f2937);--x-fieldset-input-color:var(--x-color-text,#e5e7eb);--x-fieldset-input-border:var(--x-color-border,#374151);--x-fieldset-input-focus:var(--x-color-focus-ring,#93c5fd);}}[part\x3droot]{display:block;border:var(--x-fieldset-border-width) solid var(--x-fieldset-border-color);border-radius:var(--x-fieldset-border-radius);padding:var(--x-fieldset-padding);background:var(--x-fieldset-bg);position:relative;}:host([data-disabled]) [part\x3droot]{opacity:var(--x-fieldset-disabled-opacity);}[part\x3dlegend]{display:block;position:absolute;top:calc(-0.5em);left:calc(var(--x-fieldset-border-radius) - 0.375rem);padding:var(--x-fieldset-legend-padding);color:var(--x-fieldset-legend-color);font-size:var(--x-fieldset-legend-font-size);font-weight:var(--x-fieldset-legend-font-weight);background:inherit;line-height:1;white-space:nowrap;}[part\x3dlegend][hidden]{display:none;}[part\x3dcontent]{display:flex;flex-direction:column;gap:var(--x-fieldset-gap);}";
2
+ var uE=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},yE=function(a){var b=$APP.k(a,"__xFieldsetRefs");if($APP.n(b)){var c=$APP.k(b,"root-el"),d=$APP.k(b,"legend-el");b=$APP.k(b,"content-el");var e=a.getAttribute("legend");e=new $APP.Q(null,4,[vE,e,$APP.ul,a.hasAttribute("disabled"),$APP.Nj,a.getAttribute("aria-label"),$APP.sj,a.getAttribute("aria-describedby")],null);var g=$APP.M(e),h=$APP.D(g,vE);var l=$APP.D(g,$APP.ul);e=$APP.D(g,$APP.Nj);g=$APP.D(g,$APP.sj);h=$APP.n(h)?
3
+ h:"";l=$APP.F(l);l=new $APP.Q(null,5,[wE,h,xE,$APP.N(h,""),$APP.X,l,$APP.wl,e,$APP.Em,g],null);h=wE.g(l);g=xE.g(l);e=$APP.X.g(l);d.textContent=h;$APP.n(g)?d.removeAttribute("hidden"):d.setAttribute("hidden","");d=$APP.wl.g(l);$APP.n(d)?(c.setAttribute("aria-label",d),c.removeAttribute("aria-labelledby")):(c.removeAttribute("aria-label"),$APP.n(g)?c.setAttribute("aria-labelledby","x-fieldset-legend"):c.removeAttribute("aria-labelledby"));d=$APP.Em.g(l);$APP.n(d)?c.setAttribute("aria-describedby",d):
4
+ c.removeAttribute("aria-describedby");uE(a,"data-disabled",e);return uE(b,"inert",e)}return null},zE=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return uE(this,"disabled",$APP.F(b))}})},AE=function(a){Object.defineProperty(a,"legend",{configurable:!0,enumerable:!0,get:function(){return this.getAttribute("legend")},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.T.g(b),b=this.setAttribute("legend",
5
+ b)):b=this.removeAttribute("legend");return b}})},CE=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=BE;AE(b);zE(b);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFieldsetRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),l=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-fieldset-border-color:var(--x-color-border, #d1d5db);--x-fieldset-border-width:1px;--x-fieldset-border-radius:var(--x-radius-md, 8px);--x-fieldset-padding:1rem;--x-fieldset-gap:0.75rem;--x-fieldset-bg:var(--x-color-surface,transparent);--x-fieldset-legend-color:var(--x-color-text-muted,#374151);--x-fieldset-legend-font-size:var(--x-font-size-sm, 0.875rem);--x-fieldset-legend-font-weight:600;--x-fieldset-legend-padding:0 0.375rem;--x-fieldset-disabled-opacity:0.45;--x-fieldset-input-bg:var(--x-color-surface,#ffffff);--x-fieldset-input-color:var(--x-color-text,#0f172a);--x-fieldset-input-border:var(--x-color-border,#d1d5db);--x-fieldset-input-radius:var(--x-radius-sm,0.375rem);--x-fieldset-input-focus:var(--x-color-focus-ring,#60a5fa);}@media (prefers-color-scheme:dark){:host{--x-fieldset-border-color:var(--x-color-border, #374151);--x-fieldset-legend-color:var(--x-color-text-muted,#d1d5db);--x-fieldset-input-bg:var(--x-color-surface,#1f2937);--x-fieldset-input-color:var(--x-color-text,#e5e7eb);--x-fieldset-input-border:var(--x-color-border,#374151);--x-fieldset-input-focus:var(--x-color-focus-ring,#93c5fd);}}[part\x3droot]{display:block;border:var(--x-fieldset-border-width) solid var(--x-fieldset-border-color);border-radius:var(--x-fieldset-border-radius);padding:var(--x-fieldset-padding);background:var(--x-fieldset-bg);position:relative;}:host([data-disabled]) [part\x3droot]{opacity:var(--x-fieldset-disabled-opacity);}[part\x3dlegend]{display:block;position:absolute;top:calc(-0.5em);left:calc(var(--x-fieldset-border-radius) - 0.375rem);padding:var(--x-fieldset-legend-padding);color:var(--x-fieldset-legend-color);font-size:var(--x-fieldset-legend-font-size);font-weight:var(--x-fieldset-legend-font-weight);background:inherit;line-height:1;white-space:nowrap;}[part\x3dlegend][hidden]{display:none;}[part\x3dcontent]{display:flex;flex-direction:column;gap:var(--x-fieldset-gap);}";
6
6
  e.setAttribute("part","root");e.setAttribute("role","group");g.setAttribute("part","legend");g.setAttribute("id","x-fieldset-legend");h.setAttribute("part","content");h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);$APP.n(document.getElementById("x-fieldset-input-styles"))||(d=document.createElement("style"),d.setAttribute("id","x-fieldset-input-styles"),d.textContent="x-fieldset input,x-fieldset select,x-fieldset textarea{background:var(--x-fieldset-input-bg);color:var(--x-fieldset-input-color);border:1px solid var(--x-fieldset-input-border);border-radius:var(--x-fieldset-input-radius);padding:0.5rem 0.75rem;font:inherit;outline:none;box-sizing:border-box;}x-fieldset input:focus,x-fieldset select:focus,x-fieldset textarea:focus{border-color:var(--x-fieldset-input-focus);box-shadow:0 0 0 2px var(--x-fieldset-input-focus);}",
7
- document.head.appendChild(d));this.__xFieldsetRefs={root:c,"root-el":e,"legend-el":g,"content-el":h}}return aD(this)};b.disconnectedCallback=function(){return null};b.attributeChangedCallback=function(){return aD(this)};return a},fD=function(){return $APP.n(customElements.get("x-fieldset"))?null:customElements.define("x-fieldset",eD())},$C=new $APP.K(null,"legend-visible?","legend-visible?",-281107501),YC=new $APP.K(null,"legend-raw","legend-raw",907427195),ZC=new $APP.K(null,"legend","legend",-1027192245);var dD=["legend","disabled","aria-label","aria-describedby"];$APP.fa("baredom.exports.x_fieldset.init",fD);export const init=fD;
7
+ document.head.appendChild(d));this.__xFieldsetRefs={root:c,"root-el":e,"legend-el":g,"content-el":h}}return yE(this)};b.disconnectedCallback=function(){return null};b.attributeChangedCallback=function(){return yE(this)};return a},DE=function(){return $APP.n(customElements.get("x-fieldset"))?null:customElements.define("x-fieldset",CE())},xE=new $APP.K(null,"legend-visible?","legend-visible?",-281107501),vE=new $APP.K(null,"legend-raw","legend-raw",907427195),wE=new $APP.K(null,"legend","legend",-1027192245);var BE=["legend","disabled","aria-label","aria-describedby"];$APP.ha("baredom.exports.x_fieldset.init",DE);export const init=DE;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var vx=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},zx=function(a){a=new $APP.R(null,4,[wx,a.getAttribute("href"),xx,a.getAttribute("filename"),$APP.gl,a.hasAttribute("disabled"),$APP.vj,a.getAttribute("aria-label")],null);var b=$APP.M(a);a=$APP.D(b,wx);var c=$APP.D(b,xx),d=$APP.D(b,$APP.gl);b=$APP.D(b,$APP.vj);return new $APP.R(null,4,[$APP.rm,$APP.Kg(a),yx,$APP.n(c)?c:"",$APP.W,$APP.F(d),$APP.il,b],null)},Ax=function(a){var b=$APP.k(a,"__xFileDownloadRefs");if($APP.n(b)){b=
3
- $APP.k(b,"anchor-el");var c=zx(a),d=$APP.rm.g(c),e=yx.g(c),g=$APP.W.g(c);c=$APP.il.g(c);b.href=d;typeof e==="string"&&$APP.N(e,"")?b.setAttribute("download",e):(e=typeof d==="string",$APP.n(e?d.startsWith("data:"):e)?b.setAttribute("download",""):b.removeAttribute("download"));$APP.n(g)?b.setAttribute("aria-disabled","true"):b.removeAttribute("aria-disabled");$APP.n(c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label");return vx(a,"data-disabled",g)}return null},Bx=function(a){return function(b){if($APP.n(a.hasAttribute("disabled")))return b.preventDefault();
4
- var c=zx(a);c={href:$APP.rm.g(c),filename:yx.g(c)};c=new CustomEvent("x-file-download-click",{detail:c,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.n(c.defaultPrevented)?b.preventDefault():null}},Cx=function(a){var b=$APP.k(a,"__xFileDownloadHandlers"),c=$APP.k(a,"__xFileDownloadRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.k(c,"anchor-el"),b=$APP.k(b,"click"),$APP.n(b)&&c.removeEventListener("click",b));return a.__xFileDownloadHandlers=null},Dx=function(a,b,c){Object.defineProperty(a,
5
- 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}})},Ex=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return vx(this,"disabled",$APP.F(b))}})},Gx=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",
6
- {get:function(){return Fx}});Dx(b,"href","href");Dx(b,"filename","filename");Ex(b);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFileDownloadRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("a"),g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-file-download-bg:var(--x-color-primary,#2563eb);--x-file-download-color:var(--x-color-surface,#ffffff);--x-file-download-hover-bg:var(--x-color-primary-hover,#1d4ed8);--x-file-download-active-bg:var(--x-color-primary-active,#1e40af);--x-file-download-border-radius:var(--x-radius-md,6px);--x-file-download-padding:0.5rem 1rem;--x-file-download-font-size:var(--x-font-size-sm,0.875rem);--x-file-download-font-weight:500;--x-file-download-gap:0.375rem;--x-file-download-icon-size:1em;--x-file-download-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-file-download-disabled-opacity:0.45;--x-file-download-transition:background var(--x-transition-duration,120ms) ease;}@media (prefers-color-scheme:dark){:host{--x-file-download-bg:var(--x-color-primary,#3b82f6);--x-file-download-hover-bg:var(--x-color-primary-hover,#2563eb);--x-file-download-active-bg:var(--x-color-primary-active,#1d4ed8);--x-file-download-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3danchor]{display:inline-flex;align-items:center;gap:var(--x-file-download-gap);padding:var(--x-file-download-padding);background:var(--x-file-download-bg);color:var(--x-file-download-color);border-radius:var(--x-file-download-border-radius);font-size:var(--x-file-download-font-size);font-weight:var(--x-file-download-font-weight);text-decoration:none;cursor:pointer;box-sizing:border-box;transition:var(--x-file-download-transition);outline:none;user-select:none;-webkit-user-select:none;}[part\x3danchor]:hover{background:var(--x-file-download-hover-bg);}[part\x3danchor]:active{background:var(--x-file-download-active-bg);}[part\x3danchor]:focus-visible{outline:2px solid var(--x-file-download-focus-ring);outline-offset:2px;}[part\x3dicon]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-file-download-icon-size);height:var(--x-file-download-icon-size);flex-shrink:0;}[part\x3dcontent]{display:inline;}:host([data-disabled]) [part\x3danchor]{opacity:var(--x-file-download-disabled-opacity);pointer-events:none;cursor:default;}@media (prefers-reduced-motion:reduce){[part\x3danchor]{transition:none;}}";
2
+ var By=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Fy=function(a){a=new $APP.Q(null,4,[Cy,a.getAttribute("href"),Dy,a.getAttribute("filename"),$APP.ul,a.hasAttribute("disabled"),$APP.Nj,a.getAttribute("aria-label")],null);var b=$APP.M(a);a=$APP.D(b,Cy);var c=$APP.D(b,Dy),d=$APP.D(b,$APP.ul);b=$APP.D(b,$APP.Nj);return new $APP.Q(null,4,[$APP.Fm,$APP.Mg(a),Ey,$APP.n(c)?c:"",$APP.X,$APP.F(d),$APP.wl,b],null)},Gy=function(a){var b=$APP.k(a,"__xFileDownloadRefs");if($APP.n(b)){b=
3
+ $APP.k(b,"anchor-el");var c=Fy(a),d=$APP.Fm.g(c),e=Ey.g(c),g=$APP.X.g(c);c=$APP.wl.g(c);b.href=d;typeof e==="string"&&$APP.N(e,"")?b.setAttribute("download",e):(e=typeof d==="string",$APP.n(e?d.startsWith("data:"):e)?b.setAttribute("download",""):b.removeAttribute("download"));$APP.n(g)?b.setAttribute("aria-disabled","true"):b.removeAttribute("aria-disabled");$APP.n(c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label");return By(a,"data-disabled",g)}return null},Hy=function(a){return function(b){if($APP.n(a.hasAttribute("disabled")))return b.preventDefault();
4
+ var c=Fy(a);c={href:$APP.Fm.g(c),filename:Ey.g(c)};c=new CustomEvent("x-file-download-click",{detail:c,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.n(c.defaultPrevented)?b.preventDefault():null}},Iy=function(a){var b=$APP.k(a,"__xFileDownloadHandlers"),c=$APP.k(a,"__xFileDownloadRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.k(c,"anchor-el"),b=$APP.k(b,"click"),$APP.n(b)&&c.removeEventListener("click",b));return a.__xFileDownloadHandlers=null},Jy=function(a,b,c){Object.defineProperty(a,
5
+ 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}})},Ky=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return By(this,"disabled",$APP.F(b))}})},My=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",
6
+ {get:function(){return Ly}});Jy(b,"href","href");Jy(b,"filename","filename");Ky(b);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFileDownloadRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("a"),g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-file-download-bg:var(--x-color-primary,#2563eb);--x-file-download-color:var(--x-color-surface,#ffffff);--x-file-download-hover-bg:var(--x-color-primary-hover,#1d4ed8);--x-file-download-active-bg:var(--x-color-primary-active,#1e40af);--x-file-download-border-radius:var(--x-radius-md,6px);--x-file-download-padding:0.5rem 1rem;--x-file-download-font-size:var(--x-font-size-sm,0.875rem);--x-file-download-font-weight:500;--x-file-download-gap:0.375rem;--x-file-download-icon-size:1em;--x-file-download-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-file-download-disabled-opacity:0.45;--x-file-download-transition:background var(--x-transition-duration,120ms) ease;}@media (prefers-color-scheme:dark){:host{--x-file-download-bg:var(--x-color-primary,#3b82f6);--x-file-download-hover-bg:var(--x-color-primary-hover,#2563eb);--x-file-download-active-bg:var(--x-color-primary-active,#1d4ed8);--x-file-download-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3danchor]{display:inline-flex;align-items:center;gap:var(--x-file-download-gap);padding:var(--x-file-download-padding);background:var(--x-file-download-bg);color:var(--x-file-download-color);border-radius:var(--x-file-download-border-radius);font-size:var(--x-file-download-font-size);font-weight:var(--x-file-download-font-weight);text-decoration:none;cursor:pointer;box-sizing:border-box;transition:var(--x-file-download-transition);outline:none;user-select:none;-webkit-user-select:none;}[part\x3danchor]:hover{background:var(--x-file-download-hover-bg);}[part\x3danchor]:active{background:var(--x-file-download-active-bg);}[part\x3danchor]:focus-visible{outline:2px solid var(--x-file-download-focus-ring);outline-offset:2px;}[part\x3dicon]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-file-download-icon-size);height:var(--x-file-download-icon-size);flex-shrink:0;}[part\x3dcontent]{display:inline;}:host([data-disabled]) [part\x3danchor]{opacity:var(--x-file-download-disabled-opacity);pointer-events:none;cursor:default;}@media (prefers-reduced-motion:reduce){[part\x3danchor]{transition:none;}}";
7
7
  e.setAttribute("part","anchor");g.setAttribute("part","icon");h.setAttribute("part","content");g.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" width\x3d"1em" height\x3d"1em" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 1a.75.75 0 0 1 .75.75v6.19l1.97-1.97a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.03a.75.75 0 0 1 1.06-1.06L7.25 7.94V1.75A.75.75 0 0 1 8 1ZM2.5 13.25a.75.75 0 0 1 .75-.75h9.5a.75.75 0 0 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75Z"/\x3e\x3c/svg\x3e';
8
- h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xFileDownloadRefs={"anchor-el":e,"icon-el":g,"content-el":h}}Cx(this);c=Bx(this);$APP.k($APP.k(this,"__xFileDownloadRefs"),"anchor-el").addEventListener("click",c);this.__xFileDownloadHandlers={click:c};return Ax(this)};b.disconnectedCallback=function(){return Cx(this)};b.attributeChangedCallback=function(){return Ax(this)};return a},Hx=function(){return $APP.n(customElements.get("x-file-download"))?null:customElements.define("x-file-download",
9
- Gx())},xx=new $APP.K(null,"filename-raw","filename-raw",-706184256),wx=new $APP.K(null,"href-raw","href-raw",-1680949453),yx=new $APP.K(null,"filename","filename",-1428840783);var Fx=["href","filename","disabled","aria-label"];$APP.fa("baredom.exports.x_file_download.init",Hx);export const init=Hx;
8
+ h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xFileDownloadRefs={"anchor-el":e,"icon-el":g,"content-el":h}}Iy(this);c=Hy(this);$APP.k($APP.k(this,"__xFileDownloadRefs"),"anchor-el").addEventListener("click",c);this.__xFileDownloadHandlers={click:c};return Gy(this)};b.disconnectedCallback=function(){return Iy(this)};b.attributeChangedCallback=function(){return Gy(this)};return a},Ny=function(){return $APP.n(customElements.get("x-file-download"))?null:customElements.define("x-file-download",
9
+ My())},Dy=new $APP.K(null,"filename-raw","filename-raw",-706184256),Cy=new $APP.K(null,"href-raw","href-raw",-1680949453),Ey=new $APP.K(null,"filename","filename",-1428840783);var Ly=["href","filename","disabled","aria-label"];$APP.ha("baredom.exports.x_file_download.init",Ny);export const init=Ny;
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var qR=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},rR=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.C.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},tR=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(b,"label"),d=$APP.k(b,"input"),
3
- e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.xf([$APP.Yh,$APP.Uk,$APP.mi,$APP.Di,$APP.gl,$APP.uh,$APP.mj,$APP.Wl,$APP.Xh,$APP.di,$APP.si],[a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("type"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,$APP.si),m=$APP.D(h,$APP.Yh),p=$APP.D(h,$APP.Uk);
4
- g=$APP.D(h,$APP.mi);var q=$APP.D(h,$APP.Di),v=$APP.D(h,$APP.gl),x=$APP.D(h,$APP.uh),y=$APP.D(h,$APP.mj),A=$APP.D(h,$APP.Wl),B=$APP.D(h,$APP.Xh),E=$APP.D(h,$APP.di);h=$APP.n(g)?g:"";var H=$APP.n(q)?q:"",G=$APP.n(m)?m:"",I=[$APP.Vh,$APP.um,$APP.Kl,$APP.bi,$APP.bj,$APP.Bi,$APP.Xk,$APP.Y,$APP.xk,$APP.ql,$APP.U,$APP.ii,$APP.sl,$APP.W];x=$APP.F(x);y=$APP.F(y);l=$APP.n(l)?l:"";q=typeof q==="string"&&$APP.N(q,"")&&q!=null;p=$APP.n(p)?p:"";A=$APP.n(A)?A:"";m=typeof m==="string"&&$APP.N(m,"")&&m!=null;E=typeof E===
5
- "string"&&$APP.J(sR,E)?E:"text";g=$APP.xf(I,[x,y,l,q,p,A,m,E,typeof g==="string"&&$APP.N(g,"")&&g!=null,H,G,h,$APP.n(B)?B:"",$APP.F(v)]);v=$APP.xk.g(g);B=$APP.bi.g(g);h=$APP.Xk.g(g);d.type=$APP.Y.g(g);d.name=$APP.bj.g(g);d.placeholder=$APP.Kl.g(g);d.disabled=$APP.W.g(g);d.readOnly=$APP.um.g(g);d.required=$APP.Vh.g(g);d.autocomplete=$APP.sl.g(g);H=$APP.n($APP.Vh.g(g))?"true":"false";d.setAttribute("aria-required",H);d.setAttribute("aria-invalid",$APP.n(v)?"true":"false");H=$APP.n($APP.n(B)?v:B)?"hint error":
6
- $APP.n(B)?"hint":$APP.n(v)?"error":null;$APP.n(H)?d.setAttribute("aria-describedby",H):d.removeAttribute("aria-describedby");c.textContent=$APP.U.g(g);$APP.n(h)?c.classList.remove("label-hidden"):c.classList.add("label-hidden");e.textContent=$APP.ql.g(g);$APP.n(B)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.ii.g(g);$APP.n(v)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");qR(a,"data-invalid",v);c=$APP.k(a,"__xFormFieldInternals");return $APP.n(c)?
7
- rR(a,c,d):null}return null},uR=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},vR=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),rR(a,e,b));return uR(a,"x-form-field-input",{name:d,value:c})}return null}},wR=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");
8
- if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),rR(a,e,b));return uR(a,"x-form-field-change",{name:d,value:c})}return null}},xR=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormFieldHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xFormFieldHandlers=
9
- null;return}}return null},yR=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}})},zR=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return qR(this,c,$APP.F(d))}})},AR=function(a){Object.defineProperty(a,"value",{configurable:!0,
10
- enumerable:!0,get:function(){var b=$APP.k(this,"__xFormFieldRefs");if($APP.n(b))return $APP.k(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.k(this,"__xFormFieldRefs");return $APP.n(c)?$APP.k(c,"input").value=b:null}})},CR=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return BR}});AR(b);yR(b,
11
- "label","label");yR(b,"type","type");yR(b,"name","name");yR(b,"placeholder","placeholder");yR(b,"autocomplete","autocomplete");zR(b,"disabled","disabled");zR(b,"readOnly","readonly");zR(b,"required","required");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFormFieldRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),l=document.createElement("input"),m=document.createElement("span"),
2
+ var IS=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},JS=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.C.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},LS=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(b,"label"),d=$APP.k(b,"input"),
3
+ e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.zf([$APP.ki,$APP.gl,$APP.Ai,$APP.Ri,$APP.ul,$APP.Ih,$APP.Bj,$APP.jm,$APP.ji,$APP.qi,$APP.Gi],[a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("type"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,$APP.Gi),m=$APP.D(h,$APP.ki),p=$APP.D(h,$APP.gl);
4
+ g=$APP.D(h,$APP.Ai);var q=$APP.D(h,$APP.Ri),v=$APP.D(h,$APP.ul),x=$APP.D(h,$APP.Ih),y=$APP.D(h,$APP.Bj),A=$APP.D(h,$APP.jm),B=$APP.D(h,$APP.ji),E=$APP.D(h,$APP.qi);h=$APP.n(g)?g:"";var H=$APP.n(q)?q:"",G=$APP.n(m)?m:"",J=[$APP.hi,$APP.Im,$APP.Yl,$APP.oi,$APP.qj,$APP.Pi,$APP.jl,$APP.Z,$APP.Kk,$APP.El,$APP.U,$APP.vi,$APP.Gl,$APP.X];x=$APP.F(x);y=$APP.F(y);l=$APP.n(l)?l:"";q=typeof q==="string"&&$APP.N(q,"")&&q!=null;p=$APP.n(p)?p:"";A=$APP.n(A)?A:"";m=typeof m==="string"&&$APP.N(m,"")&&m!=null;E=typeof E===
5
+ "string"&&$APP.I(KS,E)?E:"text";g=$APP.zf(J,[x,y,l,q,p,A,m,E,typeof g==="string"&&$APP.N(g,"")&&g!=null,H,G,h,$APP.n(B)?B:"",$APP.F(v)]);v=$APP.Kk.g(g);B=$APP.oi.g(g);h=$APP.jl.g(g);d.type=$APP.Z.g(g);d.name=$APP.qj.g(g);d.placeholder=$APP.Yl.g(g);d.disabled=$APP.X.g(g);d.readOnly=$APP.Im.g(g);d.required=$APP.hi.g(g);d.autocomplete=$APP.Gl.g(g);H=$APP.n($APP.hi.g(g))?"true":"false";d.setAttribute("aria-required",H);d.setAttribute("aria-invalid",$APP.n(v)?"true":"false");H=$APP.n($APP.n(B)?v:B)?"hint error":
6
+ $APP.n(B)?"hint":$APP.n(v)?"error":null;$APP.n(H)?d.setAttribute("aria-describedby",H):d.removeAttribute("aria-describedby");c.textContent=$APP.U.g(g);$APP.n(h)?c.classList.remove("label-hidden"):c.classList.add("label-hidden");e.textContent=$APP.El.g(g);$APP.n(B)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.vi.g(g);$APP.n(v)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");IS(a,"data-invalid",v);c=$APP.k(a,"__xFormFieldInternals");return $APP.n(c)?
7
+ JS(a,c,d):null}return null},MS=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},NS=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),JS(a,e,b));return MS(a,"x-form-field-input",{name:d,value:c})}return null}},OS=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");
8
+ if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),JS(a,e,b));return MS(a,"x-form-field-change",{name:d,value:c})}return null}},PS=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormFieldHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xFormFieldHandlers=
9
+ null;return}}return null},QS=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}})},RS=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return IS(this,c,$APP.F(d))}})},SS=function(a){Object.defineProperty(a,"value",{configurable:!0,
10
+ enumerable:!0,get:function(){var b=$APP.k(this,"__xFormFieldRefs");if($APP.n(b))return $APP.k(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.k(this,"__xFormFieldRefs");return $APP.n(c)?$APP.k(c,"input").value=b:null}})},US=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return TS}});SS(b);QS(b,
11
+ "label","label");QS(b,"type","type");QS(b,"name","name");QS(b,"placeholder","placeholder");QS(b,"autocomplete","autocomplete");RS(b,"disabled","disabled");RS(b,"readOnly","readonly");RS(b,"required","required");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFormFieldRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),l=document.createElement("input"),m=document.createElement("span"),
12
12
  p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-form-field-label-color:var(--x-color-text-muted,#374151);--x-form-field-label-font-size:var(--x-font-size-sm,0.875rem);--x-form-field-input-bg:var(--x-color-surface,#ffffff);--x-form-field-input-color:var(--x-color-text,#111827);--x-form-field-input-border:1px solid var(--x-color-border,#d1d5db);--x-form-field-input-border-radius:var(--x-radius-md,6px);--x-form-field-input-padding:0.5rem 0.75rem;--x-form-field-focus-ring-color:var(--x-color-primary,#2563eb);--x-form-field-error-color:var(--x-color-danger,#dc2626);--x-form-field-hint-color:var(--x-color-text-muted,#6b7280);--x-form-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-form-field-label-color:var(--x-color-text-muted,#d1d5db);--x-form-field-input-bg:var(--x-color-surface-hover,#1f2937);--x-form-field-input-color:var(--x-color-text,#f9fafb);--x-form-field-input-border:1px solid var(--x-color-border,#4b5563);--x-form-field-focus-ring-color:var(--x-color-primary,#3b82f6);--x-form-field-error-color:var(--x-color-danger,#f87171);--x-form-field-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-form-field-label-font-size);font-weight:500;color:var(--x-form-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:block;}[part\x3dinput]{display:block;width:100%;box-sizing:border-box;padding:var(--x-form-field-input-padding);background:var(--x-form-field-input-bg);color:var(--x-form-field-input-color);border:var(--x-form-field-input-border);border-radius:var(--x-form-field-input-border-radius);font-size:1rem;line-height:1.5;font-family:inherit;outline:none;transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput]:focus{border-color:var(--x-form-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput]{border-color:var(--x-form-field-error-color);}:host([data-invalid]) [part\x3dinput]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-error-color) 20%,transparent);}[part\x3dinput]:disabled{opacity:var(--x-form-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-form-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-form-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]{transition:none;}}";
13
13
  e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","input");h.setAttribute("part","input-wrapper");l.setAttribute("part","input");l.setAttribute("id","input");l.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id","error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");h.appendChild(l);
14
- e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xFormFieldRefs={field:e,label:g,input:l,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xFormFieldInternals=this.attachInternals())}xR(this);c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=$APP.k(this,
15
- "__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=vR(this),e=wR(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xFormFieldHandlers={input:d,change:e});return tR(this)};b.disconnectedCallback=function(){return xR(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.i(c,"value")&&(c=$APP.k(this,"__xFormFieldRefs"),$APP.n(c)&&(c=$APP.k(c,"input"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return tR(this)};b.formDisabledCallback=function(c){qR(this,"disabled",$APP.F(c));
16
- return tR(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&($APP.k(c,"input").value="");c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&c.setFormValue("");return tR(this)};return a},DR=function(){return $APP.n(customElements.get("x-form-field"))?null:customElements.define("x-form-field",CR())};var BR="label type name value placeholder hint error disabled readonly required autocomplete".split(" "),sR=new $APP.S(null,new $APP.R(null,6,["url",null,"tel",null,"email",null,"text",null,"number",null,"password",null],null),null);
17
- $APP.xf([$APP.Kl,$APP.qj,$APP.bj,$APP.Bi,$APP.cj,$APP.Y,$APP.U,$APP.sl,$APP.dk],[new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"placeholder"],null),new $APP.R(null,2,[$APP.Y,$APP.Fj,$APP.ik,"disabled"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"name"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"value"],null),new $APP.R(null,2,[$APP.Y,$APP.Fj,$APP.ik,"readonly"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"type"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"label"],null),new $APP.R(null,
18
- 2,[$APP.Y,$APP.X,$APP.ik,"autocomplete"],null),new $APP.R(null,2,[$APP.Y,$APP.Fj,$APP.ik,"required"],null)]);$APP.fa("baredom.exports.x_form_field.init",DR);export const init=DR;
14
+ e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xFormFieldRefs={field:e,label:g,input:l,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xFormFieldInternals=this.attachInternals())}PS(this);c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=$APP.k(this,
15
+ "__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=NS(this),e=OS(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xFormFieldHandlers={input:d,change:e});return LS(this)};b.disconnectedCallback=function(){return PS(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.i(c,"value")&&(c=$APP.k(this,"__xFormFieldRefs"),$APP.n(c)&&(c=$APP.k(c,"input"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return LS(this)};b.formDisabledCallback=function(c){IS(this,"disabled",$APP.F(c));
16
+ return LS(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&($APP.k(c,"input").value="");c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&c.setFormValue("");return LS(this)};return a},VS=function(){return $APP.n(customElements.get("x-form-field"))?null:customElements.define("x-form-field",US())};var TS="label type name value placeholder hint error disabled readonly required autocomplete".split(" "),KS=new $APP.S(null,new $APP.Q(null,6,["url",null,"tel",null,"email",null,"text",null,"number",null,"password",null],null),null);
17
+ $APP.zf([$APP.Yl,$APP.Fj,$APP.qj,$APP.Pi,$APP.rj,$APP.Z,$APP.U,$APP.Gl,$APP.rk],[new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"placeholder"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"type"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"label"],null),new $APP.Q(null,
18
+ 2,[$APP.Z,$APP.Y,$APP.vk,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"required"],null)]);$APP.ha("baredom.exports.x_form_field.init",VS);export const init=VS;
package/dist/x-form.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var AN=function(a,b){return a.setAttribute("autocomplete",b)},EN=function(a){a=new $APP.R(null,3,[$APP.Vl,a.getAttribute("loading"),BN,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.Xh,a.getAttribute("autocomplete")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Vl);a=$APP.D(b,BN);b=$APP.D(b,$APP.Xh);c=c!=null&&$APP.N(c,"false");b=$APP.J(CN,b)?b:"on";return new $APP.R(null,3,[$APP.hi,c,DN,a!=null,$APP.sl,b],null)},FN=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");a=EN(a);AN(b,
3
- $APP.sl.g(a));if($APP.n($APP.hi.g(a)))return b.setAttribute("aria-busy","true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},GN=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.N(g,""):m}())){var h=e.tagName.toLowerCase(),l=e.getAttribute("type");$APP.C.i(l,"checkbox")||$APP.C.i(l,"radio")||$APP.C.i(h,"x-checkbox")?
4
- $APP.n(e.checked)&&(b[g]=function(){var m=e.value;return $APP.n(m)?m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},HN=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d}))},IN=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");var c=function(g){g.preventDefault();g=EN(a);if($APP.n($APP.hi.g(g)))g=null;else{g=DN.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");
5
- for(var h={ok:!0},l=g.length,m=0;;)if(m<l){var p=g[m];$APP.n(p.reportValidity)&&($APP.n(p.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=GN(a),g=HN(a,"x-form-submit",{values:g},!0)):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,l=0;;)if(l<h){var m=g[l];$APP.n(m.formResetCallback)&&m.formResetCallback();l+=1}else break;return HN(a,"x-form-reset",{},!1)},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=
6
- g.type;var h=$APP.k(a,"__xFormRefs");if($APP.n(h)){h=$APP.k(h,"form");g=$APP.C.i(g,"submit")||$APP.C.i(g,"")?h.requestSubmit():$APP.C.i(g,"reset")?h.reset():null;break a}}g=null}return g};b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.ia(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},JN=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormHandlers");if($APP.n(c)){b=$APP.k(b,"form");b.removeEventListener("submit",$APP.k(c,
7
- "submit"));b.removeEventListener("reset",$APP.k(c,"reset"));a.removeEventListener("click",$APP.k(c,"click"));a.__xFormHandlers=null;return}}return null},KN=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.F(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},LN=function(a){Object.defineProperty(a,"autocomplete",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("autocomplete");return $APP.n(b)?
8
- b:""},set:function(b){return b!=null&&$APP.N(b)?AN(this,""+$APP.T.g(b)):this.removeAttribute("autocomplete")}})},NN=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return MN}});KN(b,"loading","loading");KN(b,"novalidate","novalidate");LN(b);b.connectedCallback=function(){if(!$APP.n(this.shadowRoot)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("form"),g=document.createElement("slot");
9
- d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}JN(this);IN(this);return FN(this)};b.disconnectedCallback=function(){return JN(this)};b.attributeChangedCallback=function(){return FN(this)};b.submit=function(){var c=
2
+ var YO=function(a,b){return a.setAttribute("autocomplete",b)},bP=function(a){a=new $APP.Q(null,3,[$APP.im,a.getAttribute("loading"),ZO,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.ji,a.getAttribute("autocomplete")],null);var b=$APP.M(a),c=$APP.D(b,$APP.im);a=$APP.D(b,ZO);b=$APP.D(b,$APP.ji);c=c!=null&&$APP.N(c,"false");b=$APP.I($O,b)?b:"on";return new $APP.Q(null,3,[$APP.ui,c,aP,a!=null,$APP.Gl,b],null)},cP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");a=bP(a);YO(b,
3
+ $APP.Gl.g(a));if($APP.n($APP.ui.g(a)))return b.setAttribute("aria-busy","true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},dP=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.N(g,""):m}())){var h=e.tagName.toLowerCase(),l=e.getAttribute("type");$APP.C.i(l,"checkbox")||$APP.C.i(l,"radio")||$APP.C.i(h,"x-checkbox")?
4
+ $APP.n(e.checked)&&(b[g]=function(){var m=e.value;return $APP.n(m)?m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},eP=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d}))},fP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");var c=function(g){g.preventDefault();g=bP(a);if($APP.n($APP.ui.g(g)))g=null;else{g=aP.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");
5
+ for(var h={ok:!0},l=g.length,m=0;;)if(m<l){var p=g[m];$APP.n(p.reportValidity)&&($APP.n(p.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=dP(a),g=eP(a,"x-form-submit",{values:g},!0)):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,l=0;;)if(l<h){var m=g[l];$APP.n(m.formResetCallback)&&m.formResetCallback();l+=1}else break;return eP(a,"x-form-reset",{},!1)},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=
6
+ g.type;var h=$APP.k(a,"__xFormRefs");if($APP.n(h)){h=$APP.k(h,"form");g=$APP.C.i(g,"submit")||$APP.C.i(g,"")?h.requestSubmit():$APP.C.i(g,"reset")?h.reset():null;break a}}g=null}return g};b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.ja(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},gP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormHandlers");if($APP.n(c)){b=$APP.k(b,"form");b.removeEventListener("submit",$APP.k(c,
7
+ "submit"));b.removeEventListener("reset",$APP.k(c,"reset"));a.removeEventListener("click",$APP.k(c,"click"));a.__xFormHandlers=null;return}}return null},hP=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.F(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},iP=function(a){Object.defineProperty(a,"autocomplete",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("autocomplete");return $APP.n(b)?
8
+ b:""},set:function(b){return b!=null&&$APP.N(b)?YO(this,""+$APP.T.g(b)):this.removeAttribute("autocomplete")}})},kP=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return jP}});hP(b,"loading","loading");hP(b,"novalidate","novalidate");iP(b);b.connectedCallback=function(){if(!$APP.n(this.shadowRoot)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("form"),g=document.createElement("slot");
9
+ d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}gP(this);fP(this);return cP(this)};b.disconnectedCallback=function(){return gP(this)};b.attributeChangedCallback=function(){return cP(this)};b.submit=function(){var c=
10
10
  $APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").requestSubmit():null};b.reset=function(){var c=$APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").reset():null};b.setFieldError=function(c,d){c=this.querySelector('[name\x3d"'+$APP.T.g(c)+'"]');return $APP.n(c)?d==null||$APP.C.i(d,"")||$APP.C.i(d,void 0)?c.removeAttribute("error"):c.setAttribute("error",d):null};b.clearErrors=function(){for(var c=this.querySelectorAll("[error]"),d=c.length,e=0;;)if(e<d)c[e].removeAttribute("error"),
11
- e+=1;else return null};return a},ON=function(){return $APP.n(customElements.get("x-form"))?null:customElements.define("x-form",NN())},BN=new $APP.K(null,"novalidate-raw","novalidate-raw",1783236714),DN=new $APP.K(null,"novalidate?","novalidate?",491529885);var MN=["loading","novalidate","autocomplete"],CN=new $APP.S(null,new $APP.R(null,2,["off",null,"on",null],null),null);$APP.fa("baredom.exports.x_form.init",ON);export const init=ON;
11
+ e+=1;else return null};return a},lP=function(){return $APP.n(customElements.get("x-form"))?null:customElements.define("x-form",kP())},ZO=new $APP.K(null,"novalidate-raw","novalidate-raw",1783236714),aP=new $APP.K(null,"novalidate?","novalidate?",491529885);var jP=["loading","novalidate","autocomplete"],$O=new $APP.S(null,new $APP.Q(null,2,["off",null,"on",null],null),null);$APP.ha("baredom.exports.x_form.init",lP);export const init=lP;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var gT=function(a,b,c){var d=$APP.z(a);return $APP.Ue.m($APP.ee,$APP.$d.g(function(e){var g=e*2.39996323,h=50+30*Math.cos(g);g=50+30*Math.sin(g);var l=10*Math.sin(e*2.39996323),m=10*Math.cos(e*Math.PI),p=Math.sin(e*1.618);p=.7+p*p*.6;var q=.8+.4*Math.sin(e*1.3),v=-(e/$APP.$g.i(b,1));return new $APP.R(null,7,[$APP.pj,$APP.oc(a,$APP.ed(e,d)),$APP.dl,h+l,$APP.cl,g+m,$APP.th,c*p,dT,$APP.ed(e,4),eT,q,fT,v],null)}),$APP.bg(0,b))},hT=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
2
+ var xU=function(a,b,c){var d=$APP.z(a);return $APP.We.m($APP.fe,$APP.ae.g(function(e){var g=e*2.39996323,h=50+30*Math.cos(g);g=50+30*Math.sin(g);var l=10*Math.sin(e*2.39996323),m=10*Math.cos(e*Math.PI),p=Math.sin(e*1.618);p=.7+p*p*.6;var q=.8+.4*Math.sin(e*1.3),v=-(e/$APP.nh.i(b,1));return new $APP.Q(null,7,[$APP.Ej,$APP.pc(a,$APP.fd(e,d)),$APP.rl,h+l,$APP.ql,g+m,$APP.Hh,c*p,uU,$APP.fd(e,4),vU,q,wU,v],null)}),$APP.dg(0,b))},yU=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
3
3
  d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot");c.textContent=":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;box-sizing:border-box;color-scheme:light dark;--x-gaussian-blur-bg:transparent;--x-gaussian-blur-z-index:0;--x-gaussian-blur-border-radius:0;}:host{border-radius:var(--x-gaussian-blur-border-radius);}[part\x3dbackdrop]{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:var(--x-gaussian-blur-z-index);background:var(--x-gaussian-blur-bg);}[part\x3dcontent]{position:relative;z-index:1;width:100%;height:100%;}.blob{position:absolute;border-radius:50%;will-change:transform;pointer-events:none;}@keyframes x-gb-float-0{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(12%,-18%);}50%{transform:translate(-50%,-50%) translate(-10%,15%);}75%{transform:translate(-50%,-50%) translate(15%,6%);}}@keyframes x-gb-float-1{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-15%,10%);}50%{transform:translate(-50%,-50%) translate(18%,-12%);}75%{transform:translate(-50%,-50%) translate(-8%,-16%);}}@keyframes x-gb-float-2{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(10%,16%);}50%{transform:translate(-50%,-50%) translate(-18%,-8%);}75%{transform:translate(-50%,-50%) translate(14%,-12%);}}@keyframes x-gb-float-3{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-12%,-10%);}50%{transform:translate(-50%,-50%) translate(16%,18%);}75%{transform:translate(-50%,-50%) translate(-10%,14%);}}@keyframes x-gb-pulse-0{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.2) translate(10%,-14%);}66%{transform:translate(-50%,-50%) scale(0.85) translate(-10%,10%);}}@keyframes x-gb-pulse-1{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.85) translate(-14%,10%);}66%{transform:translate(-50%,-50%) scale(1.2) translate(12%,-8%);}}@keyframes x-gb-pulse-2{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.18) translate(8%,16%);}66%{transform:translate(-50%,-50%) scale(0.82) translate(-16%,-10%);}}@keyframes x-gb-pulse-3{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.88) translate(-10%,-14%);}66%{transform:translate(-50%,-50%) scale(1.15) translate(10%,16%);}}:host([data-paused]) .blob{animation-play-state:paused;}@media (prefers-reduced-motion:reduce){.blob{animation:none!important;}}";
4
- d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},iT=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},sT=function(a){var b=
5
- $APP.xf([jT,$APP.Wi,$APP.hj,$APP.Jl,$APP.th,$APP.Th,$APP.Zh,$APP.yh,kT],[a.getAttribute("paused"),a.getAttribute("animation"),a.getAttribute("speed"),a.getAttribute("colors"),a.getAttribute("size"),a.getAttribute("blur"),a.getAttribute("opacity"),a.getAttribute("count"),a.getAttribute("blend")]);var c=$APP.M(b);b=$APP.D(c,kT);var d=$APP.D(c,jT),e=$APP.D(c,$APP.Wi),g=$APP.D(c,$APP.hj);var h=$APP.D(c,$APP.Jl);var l=$APP.D(c,$APP.th),m=$APP.D(c,$APP.Th),p=$APP.D(c,$APP.Zh);c=$APP.D(c,$APP.yh);h=lT(h);
6
- typeof c==="string"&&$APP.N("",c.trim())?(c=parseInt(c.trim(),10),c=$APP.n(isFinite(c))?$APP.ah.i(12,$APP.$g.i(1,c)):5):c=5;if(typeof l==="string"&&$APP.N("",l.trim())){l=l.trim();var q=$APP.D(mT,l);$APP.n(q)?l=q:(l=parseFloat(l),q=isFinite(l),l=$APP.n($APP.n(q)?l>0:q)?$APP.ah.i(100,$APP.$g.i(10,l)):50)}else l=50;typeof g==="string"&&$APP.N("",g.trim())?(g=g.trim(),q=$APP.D(nT,g),$APP.n(q)?g=q:(g=parseFloat(g),q=isFinite(g),g=$APP.n($APP.n(q)?g>0:q)?g:10)):g=10;e=typeof e==="string"&&$APP.J(oT,e)?
7
- e:"float";d=d!=null;typeof m==="string"&&$APP.N("",m.trim())?(m=parseFloat(m.trim()),q=isFinite(m),m=$APP.n($APP.n(q)?m>0:q)?m:60):m=60;q=gT(h,c,l);typeof p==="string"&&$APP.N("",p.trim())?(p=parseFloat(p.trim()),p=$APP.n(isFinite(p))?$APP.ah.i(1,$APP.$g.i(0,p)):.7):p=.7;b=typeof b==="string"&&$APP.J(pT,b)?b:"normal";h=$APP.xf([jT,$APP.Wi,$APP.Jl,qT,$APP.Th,$APP.gm,$APP.Zh,$APP.yh,kT,rT],[d,e,h,g,m,q,p,c,b,l]);b=$APP.M(h);p=$APP.D(b,$APP.Th);c=$APP.D(b,$APP.Zh);m=$APP.D(b,kT);l=$APP.D(b,$APP.Wi);
8
- d=$APP.D(b,jT);e=$APP.k(a,"__xGaussianBlurBackdrop");b=$APP.k(a,"__xGaussianBlurSlot");e.style.setProperty("filter","blur("+$APP.T.g(p)+"px)");e.style.setProperty("opacity",""+$APP.T.g(c));e.style.setProperty("mix-blend-mode",m);$APP.n(d)?a.setAttribute("data-paused",""):a.removeAttribute("data-paused");a.setAttribute("data-animation",l);a:{m=$APP.M(h);h=$APP.D(m,$APP.gm);p=$APP.D(m,$APP.Wi);c=$APP.D(m,qT);$APP.D(m,$APP.Th);d=$APP.k(a,"__xGaussianBlurBackdrop");m=$APP.k(a,"__xGaussianBlurBlobs");
9
- e=m.length;l=$APP.z(h);for(g=e;;)if(g<l)q=document.createElement("div"),q.className="blob",d.appendChild(q),m.push(q),g+=1;else break;for(;;)if(e>l)g=m.pop(),d.removeChild(g),--e;else break;for(d=0;;)if(d<l){var v=m[d];q=$APP.oc(h,d);g=p;e=c;var x=$APP.M(q),y=$APP.D(x,$APP.pj),A=$APP.D(x,$APP.dl),B=$APP.D(x,$APP.cl),E=$APP.D(x,$APP.th),H=$APP.D(x,dT);q=$APP.D(x,eT);x=$APP.D(x,fT);v=v.style;E=""+$APP.T.g(E)+"%";v.setProperty("left",""+$APP.T.g(A)+"%");v.setProperty("top",""+$APP.T.g(B)+"%");v.setProperty("width",
10
- E);v.setProperty("height",E);v.setProperty("background","radial-gradient(circle,"+$APP.T.g(y)+" 0%,transparent 70%)");v.setProperty("transform","translate(-50%,-50%)");b:switch(y=H,g){case "float":g="x-gb-float-"+$APP.T.g(y);break b;case "pulse":g="x-gb-pulse-"+$APP.T.g(y);break b;default:g=null}$APP.n(g)?(q*=e,e*=x,v.setProperty("animation",""+$APP.T.g(g)+" "+$APP.T.g(q)+"s ease-in-out "+$APP.T.g(e)+"s infinite")):v.removeProperty("animation");d+=1}else break a}iT(a,b)},tT=function(a){function b(){return iT(a,
11
- c)}$APP.n($APP.k(a,"__xGaussianBlurInit"))||hT(a);var c=$APP.k(a,"__xGaussianBlurSlot");a.__xGaussianBlurSlotHandler=b;c.addEventListener("slotchange",b);sT(a)},uT=function(a){for(var b=$APP.t(new $APP.O(null,8,5,$APP.P,[new $APP.O(null,3,5,$APP.P,["colors","colors","#6366f1, #ec4899, #14b8a6, #f59e0b"],null),new $APP.O(null,3,5,$APP.P,["blur","blur","60"],null),new $APP.O(null,3,5,$APP.P,["speed","speed","medium"],null),new $APP.O(null,3,5,$APP.P,["count","count","5"],null),new $APP.O(null,3,5,$APP.P,
12
- ["size","size","medium"],null),new $APP.O(null,3,5,$APP.P,["opacity","opacity","0.7"],null),new $APP.O(null,3,5,$APP.P,["animation","animation","float"],null),new $APP.O(null,3,5,$APP.P,["blend","blend","normal"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e),h=$APP.zc(g,0,null),l=$APP.zc(g,1,null),m=$APP.zc(g,2,null);Object.defineProperty(a,h,{get:function(v,x,y,A,B,E,H,G){return function(){var I=this.getAttribute(H);return $APP.n(I)?I:G}}(b,c,d,e,g,h,l,m),set:function(v,x,y,A,B,E,H){return function(G){return typeof G===
13
- "string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,g,h,l,m),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.t(b)){g=h;if($APP.Nc(g))b=$APP.xb(g),e=$APP.yb(g),c=b,d=$APP.z(b),b=e;else{l=$APP.u(g);m=$APP.zc(l,0,null);var p=$APP.zc(l,1,null),q=$APP.zc(l,2,null);Object.defineProperty(a,m,{get:function(v,x,y,A,B,E,H,G){return function(){var I=this.getAttribute(H);return $APP.n(I)?I:G}}(b,c,d,e,l,m,p,q,g,h),set:function(v,x,y,A,B,E,H){return function(G){return typeof G===
14
- "string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,l,m,p,q,g,h),enumerable:!0,configurable:!0});b=$APP.w(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"paused",{get:function(){return this.hasAttribute("paused")},set:function(v){return $APP.n(v)?this.setAttribute("paused",""):this.removeAttribute("paused")},enumerable:!0,configurable:!0})},wT=function(){var a=class extends HTMLElement{};a.observedAttributes=vT;a.prototype.connectedCallback=function(){tT(this);return null};
15
- a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xGaussianBlurSlot"),c=$APP.k(this,"__xGaussianBlurSlotHandler");$APP.n($APP.n(b)?c:b)&&b.removeEventListener("slotchange",c);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xGaussianBlurInit"))&&sT(this);return null};uT(a.prototype);return a},xT=function(){$APP.n(customElements.get("x-gaussian-blur"))||customElements.define("x-gaussian-blur",wT());return null},qT=new $APP.K(null,"speed-s",
16
- "speed-s",-1018350546),kT=new $APP.K(null,"blend","blend",249565561),jT=new $APP.K(null,"paused","paused",-1710376127),rT=new $APP.K(null,"size-pct","size-pct",-741809955),dT=new $APP.K(null,"anim-index","anim-index",-1563021855),fT=new $APP.K(null,"delay-factor","delay-factor",-751650178),eT=new $APP.K(null,"duration-factor","duration-factor",-409465019);var vT="colors blur speed count size opacity animation blend paused".split(" ");
17
- $APP.xf([jT,$APP.Wi,$APP.hj,$APP.Jl,$APP.th,$APP.Th,$APP.Zh,$APP.yh,kT],[new $APP.R(null,2,[$APP.Y,$APP.Fj,$APP.ik,"paused"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"animation"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"speed"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"colors"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"size"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"blur"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"opacity"],null),new $APP.R(null,2,[$APP.Y,$APP.X,
18
- $APP.ik,"count"],null),new $APP.R(null,2,[$APP.Y,$APP.X,$APP.ik,"blend"],null)]);
19
- var oT=new $APP.S(null,new $APP.R(null,3,["float",null,"none",null,"pulse",null],null),null),pT=new $APP.S(null,new $APP.R(null,5,["soft-light",null,"multiply",null,"screen",null,"normal",null,"overlay",null],null),null),nT=new $APP.R(null,3,["slow",18,"medium",10,"fast",5],null),mT=new $APP.R(null,3,["small",30,"medium",50,"large",70],null),lT=function lT(a){return typeof a==="string"&&$APP.N("",a.trim())?(a=a.trim().split(/,/),$APP.Ue.m($APP.ee,$APP.bh.i($APP.$d.g(function(c){return c.trim()}),
20
- $APP.be(function(c){return $APP.N("",c)})),a)):lT.g?lT.g("#6366f1, #ec4899, #14b8a6, #f59e0b"):lT.call(null,"#6366f1, #ec4899, #14b8a6, #f59e0b")};$APP.fa("baredom.exports.x_gaussian_blur.init",xT);export const init=xT;
4
+ d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},zU=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},JU=function(a){var b=
5
+ $APP.zf([AU,$APP.Rg,$APP.wj,$APP.Xl,$APP.Hh,$APP.fi,$APP.li,$APP.Mh,BU],[a.getAttribute("paused"),a.getAttribute("animation"),a.getAttribute("speed"),a.getAttribute("colors"),a.getAttribute("size"),a.getAttribute("blur"),a.getAttribute("opacity"),a.getAttribute("count"),a.getAttribute("blend")]);var c=$APP.M(b);b=$APP.D(c,BU);var d=$APP.D(c,AU),e=$APP.D(c,$APP.Rg),g=$APP.D(c,$APP.wj);var h=$APP.D(c,$APP.Xl);var l=$APP.D(c,$APP.Hh),m=$APP.D(c,$APP.fi),p=$APP.D(c,$APP.li);c=$APP.D(c,$APP.Mh);h=CU(h);
6
+ typeof c==="string"&&$APP.N("",c.trim())?(c=parseInt(c.trim(),10),c=$APP.n(isFinite(c))?$APP.oh.i(12,$APP.nh.i(1,c)):5):c=5;if(typeof l==="string"&&$APP.N("",l.trim())){l=l.trim();var q=$APP.D(DU,l);$APP.n(q)?l=q:(l=parseFloat(l),q=isFinite(l),l=$APP.n($APP.n(q)?l>0:q)?$APP.oh.i(100,$APP.nh.i(10,l)):50)}else l=50;typeof g==="string"&&$APP.N("",g.trim())?(g=g.trim(),q=$APP.D(EU,g),$APP.n(q)?g=q:(g=parseFloat(g),q=isFinite(g),g=$APP.n($APP.n(q)?g>0:q)?g:10)):g=10;e=typeof e==="string"&&$APP.I(FU,e)?
7
+ e:"float";d=d!=null;typeof m==="string"&&$APP.N("",m.trim())?(m=parseFloat(m.trim()),q=isFinite(m),m=$APP.n($APP.n(q)?m>0:q)?m:60):m=60;q=xU(h,c,l);typeof p==="string"&&$APP.N("",p.trim())?(p=parseFloat(p.trim()),p=$APP.n(isFinite(p))?$APP.oh.i(1,$APP.nh.i(0,p)):.7):p=.7;b=typeof b==="string"&&$APP.I(GU,b)?b:"normal";h=$APP.zf([AU,$APP.Rg,$APP.Xl,HU,$APP.fi,$APP.um,$APP.li,$APP.Mh,BU,IU],[d,e,h,g,m,q,p,c,b,l]);b=$APP.M(h);p=$APP.D(b,$APP.fi);c=$APP.D(b,$APP.li);m=$APP.D(b,BU);l=$APP.D(b,$APP.Rg);
8
+ d=$APP.D(b,AU);e=$APP.k(a,"__xGaussianBlurBackdrop");b=$APP.k(a,"__xGaussianBlurSlot");e.style.setProperty("filter","blur("+$APP.T.g(p)+"px)");e.style.setProperty("opacity",""+$APP.T.g(c));e.style.setProperty("mix-blend-mode",m);$APP.n(d)?a.setAttribute("data-paused",""):a.removeAttribute("data-paused");a.setAttribute("data-animation",l);a:{m=$APP.M(h);h=$APP.D(m,$APP.um);p=$APP.D(m,$APP.Rg);c=$APP.D(m,HU);$APP.D(m,$APP.fi);d=$APP.k(a,"__xGaussianBlurBackdrop");m=$APP.k(a,"__xGaussianBlurBlobs");
9
+ e=m.length;l=$APP.z(h);for(g=e;;)if(g<l)q=document.createElement("div"),q.className="blob",d.appendChild(q),m.push(q),g+=1;else break;for(;;)if(e>l)g=m.pop(),d.removeChild(g),--e;else break;for(d=0;;)if(d<l){var v=m[d];q=$APP.pc(h,d);g=p;e=c;var x=$APP.M(q),y=$APP.D(x,$APP.Ej),A=$APP.D(x,$APP.rl),B=$APP.D(x,$APP.ql),E=$APP.D(x,$APP.Hh),H=$APP.D(x,uU);q=$APP.D(x,vU);x=$APP.D(x,wU);v=v.style;E=""+$APP.T.g(E)+"%";v.setProperty("left",""+$APP.T.g(A)+"%");v.setProperty("top",""+$APP.T.g(B)+"%");v.setProperty("width",
10
+ E);v.setProperty("height",E);v.setProperty("background","radial-gradient(circle,"+$APP.T.g(y)+" 0%,transparent 70%)");v.setProperty("transform","translate(-50%,-50%)");b:switch(y=H,g){case "float":g="x-gb-float-"+$APP.T.g(y);break b;case "pulse":g="x-gb-pulse-"+$APP.T.g(y);break b;default:g=null}$APP.n(g)?(q*=e,e*=x,v.setProperty("animation",""+$APP.T.g(g)+" "+$APP.T.g(q)+"s ease-in-out "+$APP.T.g(e)+"s infinite")):v.removeProperty("animation");d+=1}else break a}zU(a,b)},KU=function(a){function b(){return zU(a,
11
+ c)}$APP.n($APP.k(a,"__xGaussianBlurInit"))||yU(a);var c=$APP.k(a,"__xGaussianBlurSlot");a.__xGaussianBlurSlotHandler=b;c.addEventListener("slotchange",b);JU(a)},LU=function(a){for(var b=$APP.t(new $APP.O(null,8,5,$APP.P,[new $APP.O(null,3,5,$APP.P,["colors","colors","#6366f1, #ec4899, #14b8a6, #f59e0b"],null),new $APP.O(null,3,5,$APP.P,["blur","blur","60"],null),new $APP.O(null,3,5,$APP.P,["speed","speed","medium"],null),new $APP.O(null,3,5,$APP.P,["count","count","5"],null),new $APP.O(null,3,5,$APP.P,
12
+ ["size","size","medium"],null),new $APP.O(null,3,5,$APP.P,["opacity","opacity","0.7"],null),new $APP.O(null,3,5,$APP.P,["animation","animation","float"],null),new $APP.O(null,3,5,$APP.P,["blend","blend","normal"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.Ac(g,0,null),l=$APP.Ac(g,1,null),m=$APP.Ac(g,2,null);Object.defineProperty(a,h,{get:function(v,x,y,A,B,E,H,G){return function(){var J=this.getAttribute(H);return $APP.n(J)?J:G}}(b,c,d,e,g,h,l,m),set:function(v,x,y,A,B,E,H){return function(G){return typeof G===
13
+ "string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,g,h,l,m),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.t(b)){g=h;if($APP.Nc(g))b=$APP.yb(g),e=$APP.zb(g),c=b,d=$APP.z(b),b=e;else{l=$APP.u(g);m=$APP.Ac(l,0,null);var p=$APP.Ac(l,1,null),q=$APP.Ac(l,2,null);Object.defineProperty(a,m,{get:function(v,x,y,A,B,E,H,G){return function(){var J=this.getAttribute(H);return $APP.n(J)?J:G}}(b,c,d,e,l,m,p,q,g,h),set:function(v,x,y,A,B,E,H){return function(G){return typeof G===
14
+ "string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,l,m,p,q,g,h),enumerable:!0,configurable:!0});b=$APP.w(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"paused",{get:function(){return this.hasAttribute("paused")},set:function(v){return $APP.n(v)?this.setAttribute("paused",""):this.removeAttribute("paused")},enumerable:!0,configurable:!0})},NU=function(){var a=class extends HTMLElement{};a.observedAttributes=MU;a.prototype.connectedCallback=function(){KU(this);return null};
15
+ a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xGaussianBlurSlot"),c=$APP.k(this,"__xGaussianBlurSlotHandler");$APP.n($APP.n(b)?c:b)&&b.removeEventListener("slotchange",c);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xGaussianBlurInit"))&&JU(this);return null};LU(a.prototype);return a},OU=function(){$APP.n(customElements.get("x-gaussian-blur"))||customElements.define("x-gaussian-blur",NU());return null},HU=new $APP.K(null,"speed-s",
16
+ "speed-s",-1018350546),BU=new $APP.K(null,"blend","blend",249565561),AU=new $APP.K(null,"paused","paused",-1710376127),IU=new $APP.K(null,"size-pct","size-pct",-741809955),uU=new $APP.K(null,"anim-index","anim-index",-1563021855),wU=new $APP.K(null,"delay-factor","delay-factor",-751650178),vU=new $APP.K(null,"duration-factor","duration-factor",-409465019);var MU="colors blur speed count size opacity animation blend paused".split(" ");
17
+ $APP.zf([AU,$APP.Rg,$APP.wj,$APP.Xl,$APP.Hh,$APP.fi,$APP.li,$APP.Mh,BU],[new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"paused"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"animation"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"speed"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"colors"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"blur"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"opacity"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,
18
+ $APP.vk,"count"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"blend"],null)]);
19
+ var FU=new $APP.S(null,new $APP.Q(null,3,["float",null,"none",null,"pulse",null],null),null),GU=new $APP.S(null,new $APP.Q(null,5,["soft-light",null,"multiply",null,"screen",null,"normal",null,"overlay",null],null),null),EU=new $APP.Q(null,3,["slow",18,"medium",10,"fast",5],null),DU=new $APP.Q(null,3,["small",30,"medium",50,"large",70],null),CU=function CU(a){return typeof a==="string"&&$APP.N("",a.trim())?(a=a.trim().split(/,/),$APP.We.m($APP.fe,$APP.ph.i($APP.ae.g(function(c){return c.trim()}),
20
+ $APP.ce(function(c){return $APP.N("",c)})),a)):CU.g?CU.g("#6366f1, #ec4899, #14b8a6, #f59e0b"):CU.call(null,"#6366f1, #ec4899, #14b8a6, #f59e0b")};$APP.ha("baredom.exports.x_gaussian_blur.init",OU);export const init=OU;
package/dist/x-grid.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var yL=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},zL=function(a,b,c){return $APP.J(b,a)?a:c},AL=function(a){switch(a){case "row-dense":return"row dense";case "column-dense":return"column dense";default:return a}},BL=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},CL=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:"16rem"},NL=function(a){var b=$APP.M(a);
3
- a=$APP.D(b,DL);var c=$APP.D(b,EL),d=$APP.D(b,$APP.Hl),e=$APP.D(b,FL),g=$APP.D(b,GL),h=$APP.D(b,$APP.mk),l=$APP.D(b,HL),m=$APP.D(b,$APP.Si);b=$APP.D(b,$APP.Dj);h=BL(h);l=CL(l);var p=zL(b,IL,"md");b=function(){var v=$APP.J(IL,d)?d:null;return $APP.n(v)?v:p}();var q=function(){var v=$APP.J(IL,m)?m:null;return $APP.n(v)?v:p}();g=zL(g,JL,"stretch");c=zL(c,JL,"stretch");e=AL(zL(e,KL,"row"));h=$APP.n(h)?h:"repeat(auto-fit,minmax("+$APP.T.g(l)+",1fr))";return $APP.xf([FL,GL,$APP.mk,$APP.Si,$APP.Dj,LL,DL,
4
- ML,$APP.Hl,EL],[e,g,h,yL(q),p,b,$APP.F(a),q,yL(b),c])},OL=function(a){var b=$APP.xf([FL,GL,$APP.mk,HL,$APP.Si,$APP.Dj,DL,$APP.Hl,EL],[a.getAttribute("auto-flow"),a.getAttribute("align-items"),a.getAttribute("columns"),a.getAttribute("min-column-size"),a.getAttribute("column-gap"),a.getAttribute("gap"),a.hasAttribute("inline"),a.getAttribute("row-gap"),a.getAttribute("justify-items")]);b=NL(b);a=$APP.k(a,"__x_grid_base");if($APP.n(a)){var c=a.style;a.setAttribute("data-gap",$APP.Dj.g(b));c.setProperty("--x-grid-columns",
5
- $APP.mk.g(b));c.setProperty("--x-grid-row-gap",$APP.Hl.g(b));c.setProperty("--x-grid-column-gap",$APP.Si.g(b));c.setProperty("--x-grid-align-items",GL.g(b));c.setProperty("--x-grid-justify-items",EL.g(b));b=c.setProperty("--x-grid-auto-flow",FL.g(b))}else b=null;return b},PL=function(a){if(!$APP.Bg(a,"__x_grid_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n }\n\n :host([inline]) {\n display:inline-block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-grid-columns);\n row-gap:var(--x-grid-row-gap);\n column-gap:var(--x-grid-column-gap);\n align-items:var(--x-grid-align-items);\n justify-items:var(--x-grid-justify-items);\n grid-auto-flow:var(--x-grid-auto-flow);\n }\n ";
6
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_grid_root=b;a.__x_grid_base=d;a.__x_grid_initialized=!0}OL(a);return a},RL=function(){var a=class extends HTMLElement{};a.observedAttributes=QL;a.prototype.connectedCallback=function(){return PL(this)};a.prototype.attributeChangedCallback=function(){return $APP.Bg(this,"__x_grid_initialized")?OL(this):PL(this)};return a},SL=function(){return $APP.n(customElements.get("x-grid"))?null:customElements.define("x-grid",
7
- RL())},HL=new $APP.K(null,"min-column-size","min-column-size",-1066019378),DL=new $APP.K(null,"inline","inline",1399884222),ML=new $APP.K(null,"column-gap-token","column-gap-token",-10192833),GL=new $APP.K(null,"align-items","align-items",-267946462),LL=new $APP.K(null,"row-gap-token","row-gap-token",-219143816),FL=new $APP.K(null,"auto-flow","auto-flow",-1524521728),EL=new $APP.K(null,"justify-items","justify-items",1638310783);var QL="columns min-column-size gap row-gap column-gap align-items justify-items auto-flow inline".split(" "),IL=new $APP.S(null,new $APP.R(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),JL=new $APP.S(null,new $APP.R(null,4,["center",null,"start",null,"stretch",null,"end",null],null),null),KL=new $APP.S(null,new $APP.R(null,5,["column-dense",null,"row-dense",null,"dense",null,"column",null,"row",null],null),null);$APP.fa("baredom.exports.x_grid.init",SL);export const init=SL;
2
+ var WM=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},XM=function(a,b,c){return $APP.I(b,a)?a:c},YM=function(a){switch(a){case "row-dense":return"row dense";case "column-dense":return"column dense";default:return a}},ZM=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},$M=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:"16rem"},kN=function(a){var b=$APP.M(a);
3
+ a=$APP.D(b,aN);var c=$APP.D(b,bN),d=$APP.D(b,$APP.Vl),e=$APP.D(b,cN),g=$APP.D(b,dN),h=$APP.D(b,$APP.zk),l=$APP.D(b,eN),m=$APP.D(b,$APP.gj);b=$APP.D(b,$APP.Rj);h=ZM(h);l=$M(l);var p=XM(b,fN,"md");b=function(){var v=$APP.I(fN,d)?d:null;return $APP.n(v)?v:p}();var q=function(){var v=$APP.I(fN,m)?m:null;return $APP.n(v)?v:p}();g=XM(g,gN,"stretch");c=XM(c,gN,"stretch");e=YM(XM(e,hN,"row"));h=$APP.n(h)?h:"repeat(auto-fit,minmax("+$APP.T.g(l)+",1fr))";return $APP.zf([cN,dN,$APP.zk,$APP.gj,$APP.Rj,iN,aN,
4
+ jN,$APP.Vl,bN],[e,g,h,WM(q),p,b,$APP.F(a),q,WM(b),c])},lN=function(a){var b=$APP.zf([cN,dN,$APP.zk,eN,$APP.gj,$APP.Rj,aN,$APP.Vl,bN],[a.getAttribute("auto-flow"),a.getAttribute("align-items"),a.getAttribute("columns"),a.getAttribute("min-column-size"),a.getAttribute("column-gap"),a.getAttribute("gap"),a.hasAttribute("inline"),a.getAttribute("row-gap"),a.getAttribute("justify-items")]);b=kN(b);a=$APP.k(a,"__x_grid_base");if($APP.n(a)){var c=a.style;a.setAttribute("data-gap",$APP.Rj.g(b));c.setProperty("--x-grid-columns",
5
+ $APP.zk.g(b));c.setProperty("--x-grid-row-gap",$APP.Vl.g(b));c.setProperty("--x-grid-column-gap",$APP.gj.g(b));c.setProperty("--x-grid-align-items",dN.g(b));c.setProperty("--x-grid-justify-items",bN.g(b));b=c.setProperty("--x-grid-auto-flow",cN.g(b))}else b=null;return b},mN=function(a){if(!$APP.Dg(a,"__x_grid_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n }\n\n :host([inline]) {\n display:inline-block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-grid-columns);\n row-gap:var(--x-grid-row-gap);\n column-gap:var(--x-grid-column-gap);\n align-items:var(--x-grid-align-items);\n justify-items:var(--x-grid-justify-items);\n grid-auto-flow:var(--x-grid-auto-flow);\n }\n ";
6
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_grid_root=b;a.__x_grid_base=d;a.__x_grid_initialized=!0}lN(a);return a},oN=function(){var a=class extends HTMLElement{};a.observedAttributes=nN;a.prototype.connectedCallback=function(){return mN(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__x_grid_initialized")?lN(this):mN(this)};return a},pN=function(){return $APP.n(customElements.get("x-grid"))?null:customElements.define("x-grid",
7
+ oN())},eN=new $APP.K(null,"min-column-size","min-column-size",-1066019378),aN=new $APP.K(null,"inline","inline",1399884222),jN=new $APP.K(null,"column-gap-token","column-gap-token",-10192833),dN=new $APP.K(null,"align-items","align-items",-267946462),iN=new $APP.K(null,"row-gap-token","row-gap-token",-219143816),cN=new $APP.K(null,"auto-flow","auto-flow",-1524521728),bN=new $APP.K(null,"justify-items","justify-items",1638310783);var nN="columns min-column-size gap row-gap column-gap align-items justify-items auto-flow inline".split(" "),fN=new $APP.S(null,new $APP.Q(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),gN=new $APP.S(null,new $APP.Q(null,4,["center",null,"start",null,"stretch",null,"end",null],null),null),hN=new $APP.S(null,new $APP.Q(null,5,["column-dense",null,"row-dense",null,"dense",null,"column",null,"row",null],null),null);$APP.ha("baredom.exports.x_grid.init",pN);export const init=pN;
package/dist/x-icon.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var gL=function(){return new $APP.R(null,3,[$APP.xh,""+$APP.T.g(eL)+"px",fL,"md",$APP.Ek,eL],null)},iL=function(a){if(typeof a==="string"){a=a.trim();var b=a.toLowerCase();if($APP.C.i("",a))return gL();if($APP.J(hL,b))return a=$APP.D(hL,b),new $APP.R(null,3,[$APP.xh,""+$APP.T.g(a)+"px",fL,b,$APP.Ek,a],null);b=parseInt(a,10);return typeof b==="number"&&$APP.r(isNaN(b))&&b>0&&$APP.C.i(""+$APP.T.g(b),a)?new $APP.R(null,3,[$APP.xh,""+$APP.T.g(b)+"px",fL,null,$APP.Ek,b],null):gL()}return gL()},kL=function(a){if(!$APP.n($APP.k(a,
2
+ var EM=function(){return new $APP.Q(null,3,[$APP.Lh,""+$APP.T.g(CM)+"px",DM,"md",$APP.Rk,CM],null)},GM=function(a){if(typeof a==="string"){a=a.trim();var b=a.toLowerCase();if($APP.C.i("",a))return EM();if($APP.I(FM,b))return a=$APP.D(FM,b),new $APP.Q(null,3,[$APP.Lh,""+$APP.T.g(a)+"px",DM,b,$APP.Rk,a],null);b=parseInt(a,10);return typeof b==="number"&&$APP.r(isNaN(b))&&b>0&&$APP.C.i(""+$APP.T.g(b),a)?new $APP.Q(null,3,[$APP.Lh,""+$APP.T.g(b)+"px",DM,null,$APP.Rk,b],null):EM()}return EM()},IM=function(a){if(!$APP.n($APP.k(a,
3
3
  "__xIconRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("slot");c.textContent=':host{display:inline-flex;align-items:center;justify-content:center;line-height:0;vertical-align:middle;color:var(--x-icon-color,currentColor);--x-icon-size:20px;}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-icon-size);height:var(--x-icon-size);}::slotted(svg){display:block;width:100%;height:100%;}::slotted(svg[fill\x3d"currentColor"]),::slotted(svg[stroke\x3d"currentColor"]){color:inherit;}';
4
- d.setAttribute("part","box");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xIconRefs=new $APP.R(null,2,[$APP.li,b,jL,d],null)}},sL=function(a){var b=new $APP.R(null,4,[$APP.ol,a.getAttribute("size"),$APP.xm,a.getAttribute("color"),$APP.Yh,a.getAttribute("label"),lL,a.hasAttribute("label")],null);b=$APP.M(b);var c=$APP.D(b,$APP.ol),d=$APP.D(b,$APP.xm),e=$APP.D(b,$APP.Yh);b=$APP.D(b,lL);c=iL(c);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.J(mL,d)?d:"inherit"):d="inherit";e=$APP.n($APP.n(b)?
5
- typeof e==="string":b)?e:"";c=$APP.xh.g(c);var g=d;$APP.C.i(g,"inherit")?d="inherit":(d=$APP.D(nL,g),g=$APP.D(oL,g),d="var("+$APP.T.g(d)+","+$APP.T.g(g)+")");b=new $APP.R(null,4,[pL,c,qL,d,$APP.U,e,rL,$APP.F(b)&&$APP.N("",e)],null);if($APP.N($APP.k(a,"__xIconModel"),b)){b=$APP.M(b);e=$APP.D(b,pL);c=$APP.D(b,qL);d=$APP.D(b,$APP.U);g=$APP.D(b,rL);kL(a);var h=a.style;h.setProperty("--x-icon-size",e);h.setProperty("--x-icon-color",c);$APP.n(g)?(a.setAttribute("role","img"),a.setAttribute("aria-label",
6
- d),a.removeAttribute("aria-hidden")):(a.setAttribute("aria-hidden","true"),a.removeAttribute("role"),a.removeAttribute("aria-label"));a.__xIconModel=b}},tL=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||$APP.C.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},uL=function(a){tL(a,"size","size");tL(a,"color","color");tL(a,"label","label")},wL=function(){var a=
7
- class extends HTMLElement{};a.observedAttributes=vL;a.prototype.connectedCallback=function(){kL(this);sL(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&sL(this);return null};uL(a.prototype);return a},xL=function(){$APP.n(customElements.get("x-icon"))||customElements.define("x-icon",wL());return null},fL=new $APP.K(null,"token","token",-1211463215),qL=new $APP.K(null,"color-css","color-css",-1998870384),
8
- jL=new $APP.K(null,"box","box",1530920394),pL=new $APP.K(null,"size-css","size-css",-1292915783),lL=new $APP.K(null,"label-present?","label-present?",-367749525),rL=new $APP.K(null,"labelled?","labelled?",-1907816908);var vL=["size","color","label"],hL=new $APP.R(null,4,["sm",16,"md",20,"lg",24,"xl",32],null),mL=new $APP.S(null,new $APP.R(null,8,["success",null,"warning",null,"muted",null,"secondary",null,"tertiary",null,"primary",null,"danger",null,"inherit",null],null),null),oL=new $APP.R(null,7,"primary #2563eb secondary #64748b tertiary #94a3b8 success #16a34a warning #d97706 danger #dc2626 muted #64748b".split(" "),null),nL=new $APP.R(null,7,"primary --x-color-primary secondary --x-color-secondary tertiary --x-color-tertiary success --x-color-success warning --x-color-warning danger --x-color-danger muted --x-color-text-muted".split(" "),
9
- null),eL=$APP.D(hL,"md");$APP.fa("baredom.exports.x_icon.init",xL);export const init=xL;
4
+ d.setAttribute("part","box");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xIconRefs=new $APP.Q(null,2,[$APP.yi,b,HM,d],null)}},QM=function(a){var b=new $APP.Q(null,4,[$APP.Cl,a.getAttribute("size"),$APP.Lm,a.getAttribute("color"),$APP.ki,a.getAttribute("label"),JM,a.hasAttribute("label")],null);b=$APP.M(b);var c=$APP.D(b,$APP.Cl),d=$APP.D(b,$APP.Lm),e=$APP.D(b,$APP.ki);b=$APP.D(b,JM);c=GM(c);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.I(KM,d)?d:"inherit"):d="inherit";e=$APP.n($APP.n(b)?
5
+ typeof e==="string":b)?e:"";c=$APP.Lh.g(c);var g=d;$APP.C.i(g,"inherit")?d="inherit":(d=$APP.D(LM,g),g=$APP.D(MM,g),d="var("+$APP.T.g(d)+","+$APP.T.g(g)+")");b=new $APP.Q(null,4,[NM,c,OM,d,$APP.U,e,PM,$APP.F(b)&&$APP.N("",e)],null);if($APP.N($APP.k(a,"__xIconModel"),b)){b=$APP.M(b);e=$APP.D(b,NM);c=$APP.D(b,OM);d=$APP.D(b,$APP.U);g=$APP.D(b,PM);IM(a);var h=a.style;h.setProperty("--x-icon-size",e);h.setProperty("--x-icon-color",c);$APP.n(g)?(a.setAttribute("role","img"),a.setAttribute("aria-label",
6
+ d),a.removeAttribute("aria-hidden")):(a.setAttribute("aria-hidden","true"),a.removeAttribute("role"),a.removeAttribute("aria-label"));a.__xIconModel=b}},RM=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||$APP.C.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},SM=function(a){RM(a,"size","size");RM(a,"color","color");RM(a,"label","label")},UM=function(){var a=
7
+ class extends HTMLElement{};a.observedAttributes=TM;a.prototype.connectedCallback=function(){IM(this);QM(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&QM(this);return null};SM(a.prototype);return a},VM=function(){$APP.n(customElements.get("x-icon"))||customElements.define("x-icon",UM());return null},DM=new $APP.K(null,"token","token",-1211463215),OM=new $APP.K(null,"color-css","color-css",-1998870384),
8
+ HM=new $APP.K(null,"box","box",1530920394),NM=new $APP.K(null,"size-css","size-css",-1292915783),JM=new $APP.K(null,"label-present?","label-present?",-367749525),PM=new $APP.K(null,"labelled?","labelled?",-1907816908);var TM=["size","color","label"],FM=new $APP.Q(null,4,["sm",16,"md",20,"lg",24,"xl",32],null),KM=new $APP.S(null,new $APP.Q(null,8,["success",null,"warning",null,"muted",null,"secondary",null,"tertiary",null,"primary",null,"danger",null,"inherit",null],null),null),MM=new $APP.Q(null,7,"primary #2563eb secondary #64748b tertiary #94a3b8 success #16a34a warning #d97706 danger #dc2626 muted #64748b".split(" "),null),LM=new $APP.Q(null,7,"primary --x-color-primary secondary --x-color-secondary tertiary --x-color-tertiary success --x-color-success warning --x-color-warning danger --x-color-danger muted --x-color-text-muted".split(" "),
9
+ null),CM=$APP.D(FM,"md");$APP.ha("baredom.exports.x_icon.init",VM);export const init=VM;