@vanelsas/baredom 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +163 -158
  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 +15 -15
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +28 -28
  15. package/dist/x-chart.js +46 -46
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +8 -8
  18. package/dist/x-collapse.js +10 -10
  19. package/dist/x-color-picker.js +41 -41
  20. package/dist/x-combobox.js +24 -24
  21. package/dist/x-command-palette.js +24 -24
  22. package/dist/x-container.js +6 -6
  23. package/dist/x-context-menu.js +18 -20
  24. package/dist/x-copy.js +21 -21
  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 +39 -39
  42. package/dist/x-liquid-glass.js +39 -39
  43. package/dist/x-menu-item.js +10 -10
  44. package/dist/x-menu.js +10 -10
  45. package/dist/x-metaball-cursor.js +27 -27
  46. package/dist/x-modal.js +11 -11
  47. package/dist/x-morph-stack.js +39 -39
  48. package/dist/x-navbar.js +13 -13
  49. package/dist/x-neural-glow.js +30 -30
  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 +24 -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 +33 -33
  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 +13 -13
  70. package/dist/x-skeleton.js +1 -1
  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 -15
  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 +24 -24
  86. package/dist/x-timeline-item.js +21 -21
  87. package/dist/x-timeline.js +9 -9
  88. package/dist/x-toast.js +22 -22
  89. package/dist/x-toaster.js +8 -8
  90. package/dist/x-tooltip.js +12 -12
  91. package/dist/x-typography.js +8 -8
  92. package/package.json +1 -1
@@ -1,43 +1,43 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var WS=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},XS=function(a){return a<10?"0"+$APP.T.g(a):""+$APP.T.g(a)},YS=function(a){return $APP.n(a)?""+$APP.T.g(a.getUTCFullYear())+"-"+$APP.T.g(XS(a.getUTCMonth()+1))+"-"+$APP.T.g(XS(a.getUTCDate())):null},ZS=function(a){var b=(b=typeof a==="string")?$APP.eg(/\d{4}-\d{2}-\d{2}/,a):b;return $APP.n(b)?(a=new Date(""+$APP.T.g(a)+"T00:00:00.000Z"),$APP.n(isNaN(a.getTime()))?null:a):null},$S=function(a,b){if(a==null&&b==null)return 0;
3
- if(a==null)return-1;if(b==null)return 1;a=a.getTime();b=b.getTime();return a<b?-1:a>b?1:0},aT=function(a,b){return $APP.n(a)?new Date(a.getTime()+b*864E5):null},bT=function(a){return $APP.n(a)?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)):null},cT=function(a,b){if($APP.n(a)){var c=a.getUTCFullYear(),d=a.getUTCDate();a=a.getUTCMonth()+b;b=(new Date(Date.UTC(c,a+1,0))).getUTCDate();return new Date(Date.UTC(c,a,$APP.oh.i(d,b)))}return null},dT=function(a,b,c){a=$APP.n($APP.n(b)?$APP.n(a)?
4
- $S(a,b)<0:a:b)?b:a;return $APP.n($APP.n(c)?$APP.n(a)?$S(a,c)>0:a:c)?c:a},eT=function(a,b,c){if($APP.n($APP.n(a)?$APP.n(b)?c:b:a)){var d=$S(b,c)<0?c:b;return!($S(a,$S(b,c)<0?b:c)<0)&&!($S(a,d)>0)}return null},hT=function(a,b){var c=$APP.M(b);b=$APP.D(c,fT);c=$APP.D(c,$APP.Jm);return $APP.n(a)?$APP.C.i(b,gT)?(new Intl.DateTimeFormat($APP.n(c)?c:"default",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})).format(a):YS(a):null},kT=function(a){a=WS(a);a=$APP.n(a)?ZS(a):null;return new $APP.Q(null,
5
- 2,[iT,a!=null,jT,a],null)},zT=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.Ci),d=$APP.D(b,$APP.Nk),e=$APP.D(b,$APP.Zj);a=$APP.D(b,fT);var g=$APP.D(b,$APP.Jm),h=$APP.D(b,lT),l=$APP.D(b,$APP.Pi),m=$APP.D(b,$APP.mj),p=$APP.D(b,$APP.Sl),q=$APP.D(b,$APP.Gk),v=$APP.D(b,mT);b=$APP.C.i(m,"range")?nT:oT;a=$APP.C.i(a,"localized")?gT:pT;g=WS(g);m=function(){var A=WS(d);return $APP.n(A)?A:" - "}();e=ZS(e);q=ZS(q);v=$APP.F(v);h=$APP.F(h);if($APP.C.i(b,oT))return b=ZS(l),$APP.zf([fT,qT,$APP.Jm,rT,$APP.mj,sT,mT,
6
- $APP.Tk,$APP.Nk,tT,uT],[a,b,g,h,oT,q,v,b!=null,m,e,function(){var A=WS(l);return $APP.n(A)?A:""}()]);var x=ZS(p),y=ZS(c);b=x!=null&&y!=null;return $APP.zf([vT,fT,wT,$APP.Jm,rT,$APP.mj,sT,xT,yT,mT,$APP.Tk,$APP.Nk,tT],[function(){var A=WS(c);return $APP.n(A)?A:""}(),a,x,g,h,nT,q,function(){var A=WS(p);return $APP.n(A)?A:""}(),y,v,b,m,e])},BT=function(a){if($APP.n(a)){var b=bT(a),c=aT(b,-($APP.n(b)?b.getUTCDay():0));return $APP.ge(function(d){d=aT(c,d);var e=$APP.C.i(d.getUTCMonth(),a.getUTCMonth());
7
- return new $APP.Q(null,2,[jT,d,AT,e],null)},$APP.dg(0,42))}return null},CT=function(a){return document.createElement(a)},DT=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.F(c)});a.dispatchEvent(b);return b},ET=function(a){var b=a.getAttribute("mode");b=zT($APP.zf([$APP.Zj,fT,$APP.Jm,lT,$APP.Pi,$APP.mj,$APP.Sl,$APP.Gk,mT,$APP.Ci,$APP.Nk],[a.getAttribute("min"),a.getAttribute("format"),a.getAttribute("locale"),$APP.Ig(a.getAttribute("range-allow-same-day")),a.getAttribute("value"),
8
- b,a.getAttribute("start"),a.getAttribute("max"),$APP.Ig(a.getAttribute("auto-swap")),a.getAttribute("end"),a.getAttribute("separator")]));var c=new $APP.Q(null,2,[fT,fT.g(b),$APP.Jm,$APP.Jm.g(b)],null);var d=$APP.M(c);var e=$APP.D(d,fT);d=$APP.D(d,$APP.Jm);e=new $APP.Q(null,2,[fT,e,$APP.Jm,d],null);if($APP.C.i($APP.mj.g(b),oT))e=$APP.n(qT.g(b))?hT(qT.g(b),e):"";else{d=$APP.Nk.g(b);var g=wT.g(b);g=$APP.n(g)?yT.g(b):g;e=$APP.n(g)?""+$APP.T.g(hT(wT.g(b),e))+$APP.T.g(d)+$APP.T.g(hT(yT.g(b),e)):$APP.n(wT.g(b))?
9
- hT(wT.g(b),e):""}d=$APP.k(a,"__xDatePickerState");d=$APP.n(d)?$APP.k(d,"month"):null;g=qT.g(b);$APP.n(g)||(g=wT.g(b),g=$APP.n(g)?g:new Date(Date.now()));d=$APP.n(d)?d:bT(g);a.__xDatePickerState={canon:b,cfg:c,disp:e,month:d}},FT=function(a,b){var c=tT.g(b);c=$APP.n(c)?$S(a,tT.g(b))<0:c;if($APP.n(c))return c;c=sT.g(b);return $APP.n(c)?$S(a,sT.g(b))>0:c},IT=function(a,b){if($APP.C.i($APP.mj.g(b),oT))return new $APP.Q(null,3,[$APP.Ui,function(){var l=qT.g(b);return $APP.n(l)?$APP.C.i(0,$S(a,qT.g(b))):
10
- l}(),GT,!1,HT,!1],null);var c=wT.g(b),d=yT.g(b),e=function(){var l=$APP.n(c)?$APP.C.i(0,$S(a,c)):c;return $APP.n(l)?l:$APP.n(d)?$APP.C.i(0,$S(a,d)):d}(),g=$APP.n(c)?$APP.n(d)?eT(a,c,d):d:c,h=function(){var l=$APP.n(c)?$APP.C.i(0,$S(a,c)):c;return $APP.n(l)?l:$APP.n(d)?$APP.C.i(0,$S(a,d)):d}();return new $APP.Q(null,3,[$APP.Ui,e,GT,g,HT,h],null)},JT=function(a,b){a.__xDatePickerGridFocus=b;a=$APP.k(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.k(a,"grid"):null;if($APP.n(a)){var c=a.querySelector('[tabindex\x3d"0"]');
11
- $APP.n(c)&&c.setAttribute("tabindex","-1");b=a.querySelector('[data-iso\x3d"'+$APP.T.g(b)+'"]');if($APP.n(b))return b.setAttribute("tabindex","0"),b.focus()}return null},KT=function(a){var b=$APP.k(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.k(b,"month-label"),d=$APP.k(b,"grid"),e=$APP.k(b,"weekdays"),g=$APP.k(a,"__xDatePickerState");b=$APP.n(g)?$APP.k(g,"canon"):null;var h=$APP.n(g)?$APP.k(g,"month"):null;g=$APP.n(g)?$APP.k(g,"cfg"):null;g=$APP.n(g)?$APP.Jm.g(g):null;$APP.n(c)&&(h=(new Intl.DateTimeFormat($APP.n(g)?
12
- g:"default",{year:"numeric",month:"long",timeZone:"UTC"})).format(h),c.textContent=h);if(!$APP.n($APP.k(a,"__xDatePickerWeekdaysDone")))for(a.__xDatePickerWeekdaysDone=!0,c="Su Mo Tu We Th Fr Sa".split(" "),h=0;;)if(h<7)g=CT("div"),g.setAttribute("part","weekday"),g.setAttribute("aria-hidden","true"),g.textContent=c[h],e.appendChild(g),h+=1;else break;if($APP.n($APP.n(d)?b:d)){d.textContent="";e=$APP.k(a,"__xDatePickerState");e=BT($APP.n(e)?$APP.k(e,"month"):null);c=$APP.t(e);h=null;for(var l=g=0;;)if(l<
13
- g){e=h.F(null,l);e=$APP.M(e);var m=$APP.D(e,jT);e=$APP.D(e,AT);var p=CT("button"),q=YS(m),v=m.getUTCDate(),x=FT(m,b);m=IT(m,b);var y=$APP.M(m);m=$APP.D(y,$APP.Ui);var A=$APP.D(y,GT);y=$APP.D(y,HT);p.setAttribute("part","day");p.setAttribute("type","button");p.setAttribute("role","gridcell");p.setAttribute("data-iso",q);p.setAttribute("data-outside",$APP.n(e)?"false":"true");p.setAttribute("data-disabled",$APP.n(x)?"true":"false");p.setAttribute("data-selected",$APP.n(m)?"true":"false");p.setAttribute("data-in-range",
14
- $APP.n(A)?"true":"false");p.setAttribute("data-range-edge",$APP.n(y)?"true":"false");p.setAttribute("aria-selected",$APP.n(m)?"true":"false");p.setAttribute("aria-disabled",$APP.n(x)?"true":"false");p.setAttribute("tabindex","-1");p.textContent=""+$APP.T.g(v);d.appendChild(p);l+=1}else if(e=$APP.t(c))c=e,$APP.Nc(c)?(h=$APP.yb(c),c=$APP.zb(c),e=h,g=$APP.z(h),h=e):(e=$APP.u(c),e=$APP.M(e),m=$APP.D(e,jT),e=$APP.D(e,AT),h=CT("button"),g=YS(m),l=m.getUTCDate(),p=FT(m,b),m=IT(m,b),v=$APP.M(m),m=$APP.D(v,
15
- $APP.Ui),q=$APP.D(v,GT),v=$APP.D(v,HT),h.setAttribute("part","day"),h.setAttribute("type","button"),h.setAttribute("role","gridcell"),h.setAttribute("data-iso",g),h.setAttribute("data-outside",$APP.n(e)?"false":"true"),h.setAttribute("data-disabled",$APP.n(p)?"true":"false"),h.setAttribute("data-selected",$APP.n(m)?"true":"false"),h.setAttribute("data-in-range",$APP.n(q)?"true":"false"),h.setAttribute("data-range-edge",$APP.n(v)?"true":"false"),h.setAttribute("aria-selected",$APP.n(m)?"true":"false"),
16
- h.setAttribute("aria-disabled",$APP.n(p)?"true":"false"),h.setAttribute("tabindex","-1"),h.textContent=""+$APP.T.g(l),d.appendChild(h),c=$APP.w(c),h=null,g=0),l=0;else break;d=$APP.k(a,"__xDatePickerGridFocus");a=$APP.k(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.k(a,"grid"):null;$APP.n($APP.n(a)?d:a)?(a=a.querySelector('[data-iso\x3d"'+$APP.T.g(d)+'"]'),a=$APP.n(a)?a.setAttribute("tabindex","0"):null):a=null;return a}}return null},LT=function(a){var b=$APP.k(a,"__xDatePickerRefs");b=$APP.n(b)?$APP.k(b,
17
- "input"):null;var c=$APP.k(a,"__xDatePickerState");c=$APP.n(c)?$APP.k(c,"disp"):null;a=$APP.k(a,"__xDatePickerFocused");return $APP.n($APP.n(b)?$APP.r(a):b)?b.value=$APP.n(c)?c:"":null},MT=function(a){var b=$APP.k(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.k(b,"input");b=$APP.k(b,"btn");var d=a.hasAttribute("disabled"),e=a.hasAttribute("readonly"),g=a.getAttribute("placeholder"),h=a.getAttribute("aria-label"),l=a.getAttribute("aria-describedby"),m=a.hasAttribute("open");$APP.n(b)&&($APP.n(d)?
2
+ var sT=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},tT=function(a){return a<10?"0"+$APP.T.g(a):""+$APP.T.g(a)},uT=function(a){return $APP.n(a)?""+$APP.T.g(a.getUTCFullYear())+"-"+$APP.T.g(tT(a.getUTCMonth()+1))+"-"+$APP.T.g(tT(a.getUTCDate())):null},vT=function(a){var b=(b=typeof a==="string")?$APP.eg(/\d{4}-\d{2}-\d{2}/,a):b;return $APP.n(b)?(a=new Date(""+$APP.T.g(a)+"T00:00:00.000Z"),$APP.n(isNaN(a.getTime()))?null:a):null},wT=function(a,b){if(a==null&&b==null)return 0;
3
+ if(a==null)return-1;if(b==null)return 1;a=a.getTime();b=b.getTime();return a<b?-1:a>b?1:0},xT=function(a,b){return $APP.n(a)?new Date(a.getTime()+b*864E5):null},yT=function(a){return $APP.n(a)?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)):null},zT=function(a,b){if($APP.n(a)){var c=a.getUTCFullYear(),d=a.getUTCDate();a=a.getUTCMonth()+b;b=(new Date(Date.UTC(c,a+1,0))).getUTCDate();return new Date(Date.UTC(c,a,$APP.rh.i(d,b)))}return null},AT=function(a,b,c){a=$APP.n($APP.n(b)?$APP.n(a)?
4
+ wT(a,b)<0:a:b)?b:a;return $APP.n($APP.n(c)?$APP.n(a)?wT(a,c)>0:a:c)?c:a},BT=function(a,b,c){if($APP.n($APP.n(a)?$APP.n(b)?c:b:a)){var d=wT(b,c)<0?c:b;return!(wT(a,wT(b,c)<0?b:c)<0)&&!(wT(a,d)>0)}return null},ET=function(a,b){var c=$APP.M(b);b=$APP.D(c,CT);c=$APP.D(c,$APP.Qm);return $APP.n(a)?$APP.C.i(b,DT)?(new Intl.DateTimeFormat($APP.n(c)?c:"default",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})).format(a):uT(a):null},HT=function(a){a=sT(a);a=$APP.n(a)?vT(a):null;return new $APP.Q(null,
5
+ 2,[FT,a!=null,GT,a],null)},WT=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.Gi),d=$APP.D(b,$APP.Tk),e=$APP.D(b,$APP.ek);a=$APP.D(b,CT);var g=$APP.D(b,$APP.Qm),h=$APP.D(b,IT),l=$APP.D(b,$APP.Ti),m=$APP.D(b,$APP.rj),p=$APP.D(b,$APP.Zl),q=$APP.D(b,$APP.Mk),v=$APP.D(b,JT);b=$APP.C.i(m,"range")?KT:LT;a=$APP.C.i(a,"localized")?DT:MT;g=sT(g);m=function(){var A=sT(d);return $APP.n(A)?A:" - "}();e=vT(e);q=vT(q);v=$APP.F(v);h=$APP.F(h);if($APP.C.i(b,LT))return b=vT(l),$APP.zf([CT,NT,$APP.Qm,OT,$APP.rj,PT,JT,
6
+ $APP.Zk,$APP.Tk,QT,RT],[a,b,g,h,LT,q,v,b!=null,m,e,function(){var A=sT(l);return $APP.n(A)?A:""}()]);var x=vT(p),y=vT(c);b=x!=null&&y!=null;return $APP.zf([ST,CT,TT,$APP.Qm,OT,$APP.rj,PT,UT,VT,JT,$APP.Zk,$APP.Tk,QT],[function(){var A=sT(c);return $APP.n(A)?A:""}(),a,x,g,h,KT,q,function(){var A=sT(p);return $APP.n(A)?A:""}(),y,v,b,m,e])},YT=function(a){if($APP.n(a)){var b=yT(a),c=xT(b,-($APP.n(b)?b.getUTCDay():0));return $APP.ge(function(d){d=xT(c,d);var e=$APP.C.i(d.getUTCMonth(),a.getUTCMonth());
7
+ return new $APP.Q(null,2,[GT,d,XT,e],null)},$APP.dg(0,42))}return null},ZT=function(a){return document.createElement(a)},$T=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.F(c)});a.dispatchEvent(b);return b},aU=function(a){var b=a.getAttribute("mode");b=WT($APP.zf([$APP.ek,CT,$APP.Qm,IT,$APP.Ti,$APP.rj,$APP.Zl,$APP.Mk,JT,$APP.Gi,$APP.Tk],[a.getAttribute("min"),a.getAttribute("format"),a.getAttribute("locale"),$APP.Ig(a.getAttribute("range-allow-same-day")),a.getAttribute("value"),
8
+ b,a.getAttribute("start"),a.getAttribute("max"),$APP.Ig(a.getAttribute("auto-swap")),a.getAttribute("end"),a.getAttribute("separator")]));var c=new $APP.Q(null,2,[CT,CT.g(b),$APP.Qm,$APP.Qm.g(b)],null);var d=$APP.M(c);var e=$APP.D(d,CT);d=$APP.D(d,$APP.Qm);e=new $APP.Q(null,2,[CT,e,$APP.Qm,d],null);if($APP.C.i($APP.rj.g(b),LT))e=$APP.n(NT.g(b))?ET(NT.g(b),e):"";else{d=$APP.Tk.g(b);var g=TT.g(b);g=$APP.n(g)?VT.g(b):g;e=$APP.n(g)?""+$APP.T.g(ET(TT.g(b),e))+$APP.T.g(d)+$APP.T.g(ET(VT.g(b),e)):$APP.n(TT.g(b))?
9
+ ET(TT.g(b),e):""}d=$APP.k(a,"__xDatePickerState");d=$APP.n(d)?$APP.k(d,"month"):null;g=NT.g(b);$APP.n(g)||(g=TT.g(b),g=$APP.n(g)?g:new Date(Date.now()));d=$APP.n(d)?d:yT(g);a.__xDatePickerState={canon:b,cfg:c,disp:e,month:d}},bU=function(a,b){var c=QT.g(b);c=$APP.n(c)?wT(a,QT.g(b))<0:c;if($APP.n(c))return c;c=PT.g(b);return $APP.n(c)?wT(a,PT.g(b))>0:c},eU=function(a,b){if($APP.C.i($APP.rj.g(b),LT))return new $APP.Q(null,3,[$APP.Yi,function(){var l=NT.g(b);return $APP.n(l)?$APP.C.i(0,wT(a,NT.g(b))):
10
+ l}(),cU,!1,dU,!1],null);var c=TT.g(b),d=VT.g(b),e=function(){var l=$APP.n(c)?$APP.C.i(0,wT(a,c)):c;return $APP.n(l)?l:$APP.n(d)?$APP.C.i(0,wT(a,d)):d}(),g=$APP.n(c)?$APP.n(d)?BT(a,c,d):d:c,h=function(){var l=$APP.n(c)?$APP.C.i(0,wT(a,c)):c;return $APP.n(l)?l:$APP.n(d)?$APP.C.i(0,wT(a,d)):d}();return new $APP.Q(null,3,[$APP.Yi,e,cU,g,dU,h],null)},fU=function(a,b){a.__xDatePickerGridFocus=b;a=$APP.k(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.k(a,"grid"):null;if($APP.n(a)){var c=a.querySelector('[tabindex\x3d"0"]');
11
+ $APP.n(c)&&c.setAttribute("tabindex","-1");b=a.querySelector('[data-iso\x3d"'+$APP.T.g(b)+'"]');if($APP.n(b))return b.setAttribute("tabindex","0"),b.focus()}return null},gU=function(a){var b=$APP.k(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.k(b,"month-label"),d=$APP.k(b,"grid"),e=$APP.k(b,"weekdays"),g=$APP.k(a,"__xDatePickerState");b=$APP.n(g)?$APP.k(g,"canon"):null;var h=$APP.n(g)?$APP.k(g,"month"):null;g=$APP.n(g)?$APP.k(g,"cfg"):null;g=$APP.n(g)?$APP.Qm.g(g):null;$APP.n(c)&&(h=(new Intl.DateTimeFormat($APP.n(g)?
12
+ g:"default",{year:"numeric",month:"long",timeZone:"UTC"})).format(h),c.textContent=h);if(!$APP.n($APP.k(a,"__xDatePickerWeekdaysDone")))for(a.__xDatePickerWeekdaysDone=!0,c="Su Mo Tu We Th Fr Sa".split(" "),h=0;;)if(h<7)g=ZT("div"),g.setAttribute("part","weekday"),g.setAttribute("aria-hidden","true"),g.textContent=c[h],e.appendChild(g),h+=1;else break;if($APP.n($APP.n(d)?b:d)){d.textContent="";e=$APP.k(a,"__xDatePickerState");e=YT($APP.n(e)?$APP.k(e,"month"):null);c=$APP.t(e);h=null;for(var l=g=0;;)if(l<
13
+ g){e=h.F(null,l);e=$APP.M(e);var m=$APP.D(e,GT);e=$APP.D(e,XT);var p=ZT("button"),q=uT(m),v=m.getUTCDate(),x=bU(m,b);m=eU(m,b);var y=$APP.M(m);m=$APP.D(y,$APP.Yi);var A=$APP.D(y,cU);y=$APP.D(y,dU);p.setAttribute("part","day");p.setAttribute("type","button");p.setAttribute("role","gridcell");p.setAttribute("data-iso",q);p.setAttribute("data-outside",$APP.n(e)?"false":"true");p.setAttribute("data-disabled",$APP.n(x)?"true":"false");p.setAttribute("data-selected",$APP.n(m)?"true":"false");p.setAttribute("data-in-range",
14
+ $APP.n(A)?"true":"false");p.setAttribute("data-range-edge",$APP.n(y)?"true":"false");p.setAttribute("aria-selected",$APP.n(m)?"true":"false");p.setAttribute("aria-disabled",$APP.n(x)?"true":"false");p.setAttribute("tabindex","-1");p.textContent=""+$APP.T.g(v);d.appendChild(p);l+=1}else if(e=$APP.t(c))c=e,$APP.Nc(c)?(h=$APP.yb(c),c=$APP.zb(c),e=h,g=$APP.z(h),h=e):(e=$APP.u(c),e=$APP.M(e),m=$APP.D(e,GT),e=$APP.D(e,XT),h=ZT("button"),g=uT(m),l=m.getUTCDate(),p=bU(m,b),m=eU(m,b),v=$APP.M(m),m=$APP.D(v,
15
+ $APP.Yi),q=$APP.D(v,cU),v=$APP.D(v,dU),h.setAttribute("part","day"),h.setAttribute("type","button"),h.setAttribute("role","gridcell"),h.setAttribute("data-iso",g),h.setAttribute("data-outside",$APP.n(e)?"false":"true"),h.setAttribute("data-disabled",$APP.n(p)?"true":"false"),h.setAttribute("data-selected",$APP.n(m)?"true":"false"),h.setAttribute("data-in-range",$APP.n(q)?"true":"false"),h.setAttribute("data-range-edge",$APP.n(v)?"true":"false"),h.setAttribute("aria-selected",$APP.n(m)?"true":"false"),
16
+ h.setAttribute("aria-disabled",$APP.n(p)?"true":"false"),h.setAttribute("tabindex","-1"),h.textContent=""+$APP.T.g(l),d.appendChild(h),c=$APP.w(c),h=null,g=0),l=0;else break;d=$APP.k(a,"__xDatePickerGridFocus");a=$APP.k(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.k(a,"grid"):null;$APP.n($APP.n(a)?d:a)?(a=a.querySelector('[data-iso\x3d"'+$APP.T.g(d)+'"]'),a=$APP.n(a)?a.setAttribute("tabindex","0"):null):a=null;return a}}return null},hU=function(a){var b=$APP.k(a,"__xDatePickerRefs");b=$APP.n(b)?$APP.k(b,
17
+ "input"):null;var c=$APP.k(a,"__xDatePickerState");c=$APP.n(c)?$APP.k(c,"disp"):null;a=$APP.k(a,"__xDatePickerFocused");return $APP.n($APP.n(b)?$APP.r(a):b)?b.value=$APP.n(c)?c:"":null},iU=function(a){var b=$APP.k(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.k(b,"input");b=$APP.k(b,"btn");var d=a.hasAttribute("disabled"),e=a.hasAttribute("readonly"),g=a.getAttribute("placeholder"),h=a.getAttribute("aria-label"),l=a.getAttribute("aria-describedby"),m=a.hasAttribute("open");$APP.n(b)&&($APP.n(d)?
18
18
  b.setAttribute("disabled",""):b.removeAttribute("disabled"));$APP.n($APP.n(d)?m:d)&&a.removeAttribute("open");$APP.n(c)&&(c.setAttribute("aria-expanded",$APP.n(m)?"true":"false"),$APP.n(d)?(c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true")):(c.removeAttribute("disabled"),c.removeAttribute("aria-disabled")),$APP.n(e)&&c.setAttribute("readonly",""),$APP.n(e)||c.removeAttribute("readonly"),$APP.n(g)&&c.setAttribute("placeholder",g),$APP.n(h)&&c.setAttribute("aria-label",h),$APP.n(l)&&
19
- c.setAttribute("aria-describedby",l));LT(a);return KT(a)}return null},NT=function(a,b){$APP.n(b)?a.setAttribute("value",YS(b)):a.removeAttribute("value")},OT=function(a,b,c){if($APP.n(a.hasAttribute("readonly")))return null;var d=$APP.k(a,"__xDatePickerState");d=$APP.n(d)?$APP.k(d,"canon"):null;var e=$APP.n(d)?$APP.mj.g(d):null,g=$APP.C.i(e,nT)?"range":"single",h=$APP.C.i(e,oT)?{value:YS(b),mode:g,reason:c}:{date:YS(b),mode:g,reason:c};h=DT(a,"x-date-picker-change-request",!0,h);if($APP.n(h.defaultPrevented))return null;
20
- if($APP.C.i(e,oT))return d=YS(b),NT(a,b),ET(a),MT(a),DT(a,"x-date-picker-change",!1,{value:d,mode:g,reason:c}),$APP.n(a.hasAttribute("close-on-select"))?(a.removeAttribute("open"),MT(a)):null;e=function(){var y=$APP.k(a,"__xDatePickerRangeStep");return $APP.n(y)?y:0}();h=wT.g(d);if($APP.C.i(e,0))a.setAttribute("start",YS(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;else if($APP.C.i(e,1)){var l=rT.g(d),m=$S(b,h);if($APP.n(function(){var y=m>0;return y?y:$APP.n(l)?m===0:l}())){var p=$APP.n(mT.g(d))?
21
- $S(h,b)<0?h:b:h,q=$APP.n(mT.g(d))?$S(h,b)>0?h:b:b;a.setAttribute("start",YS(p));a.setAttribute("end",YS(q));a.__xDatePickerRangeStep=0;$APP.n(function(){var y=a.hasAttribute("close-on-select");return $APP.n(y)?p!=null&&q!=null:y}())&&a.removeAttribute("open")}else a.setAttribute("start",YS(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1}else a.setAttribute("start",YS(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;ET(a);MT(a);b=$APP.k(a,"__xDatePickerState");b=$APP.n(b)?$APP.k(b,"canon"):
22
- null;var v=$APP.n(wT.g(b))?YS(wT.g(b)):null,x=$APP.n(yT.g(b))?YS(yT.g(b)):null;b=function(){var y={mode:g,reason:c};$APP.n(v)&&(y.start=v);$APP.n(x)&&(y.end=x);return y}();return DT(a,"x-date-picker-change",!1,b)},PT=function(a,b){var c=$APP.k(a,"__xDatePickerRefs");c=$APP.n(c)?$APP.k(c,"input"):null;var d=$APP.n(c)?c.value:null;c=$APP.k(a,"__xDatePickerState");var e=$APP.n(c)?$APP.k(c,"canon"):null,g=$APP.mj.g(e);c=$APP.C.i(g,nT)?"range":"single";DT(a,"x-date-picker-input",!1,{value:d,mode:c});if($APP.C.i(g,
23
- oT)){if(d=kT(d),e=$APP.M(d),d=$APP.D(e,iT),e=$APP.D(e,jT),$APP.n(d)){g=YS(e);d=DT(a,"x-date-picker-change-request",!0,{value:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;NT(a,e);ET(a);MT(a);return DT(a,"x-date-picker-change",!1,{value:g,mode:c,reason:b})}}else if(e=new $APP.Q(null,1,[$APP.Nk,$APP.Nk.g(e)],null),e=$APP.M(e),e=$APP.D(e,$APP.Nk),e=typeof e==="string"&&e.length>0?e:" - ",d=WS(d),d==null?d=new $APP.Q(null,3,[iT,!1,$APP.Sl,null,$APP.Ci,null],null):(g=d.indexOf(e),g<0?(d=
24
- kT(d),e=$APP.M(d),d=$APP.D(e,iT),e=$APP.D(e,jT),d=new $APP.Q(null,3,[iT,d,$APP.Sl,e,$APP.Ci,null],null)):(e=d.substring(g+e.length).trim(),d=ZS(d.substring(0,g).trim()),e=ZS(e),d=new $APP.Q(null,3,[iT,d!=null&&e!=null,$APP.Sl,d,$APP.Ci,e],null))),g=$APP.M(d),d=$APP.D(g,iT),e=$APP.D(g,$APP.Sl),g=$APP.D(g,$APP.Ci),$APP.n(d)){e=YS(e);g=YS(g);d=DT(a,"x-date-picker-change-request",!0,{start:e,end:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;a.setAttribute("start",e);a.setAttribute("end",
25
- g);a.__xDatePickerRangeStep=0;ET(a);MT(a);return DT(a,"x-date-picker-change",!1,{start:e,end:g,mode:c,reason:b})}return null},QT=function(a,b){var c=$APP.k(a,"__xDatePickerState"),d=$APP.n(c)?$APP.k(c,"month"):null;if($APP.n(d)){var e=d.getUTCFullYear();d=d.getUTCMonth();b=$APP.C.i(b,$APP.Mj)?new Date(Date.UTC(e,d+1,1)):new Date(Date.UTC(e,d-1,1));c.month=b;return KT(a)}return null},RT=function(a){return $APP.n(a.hasAttribute("open"))?a.removeAttribute("open"):null},ST=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;
26
- b=b.currentTarget.getAttribute("data-nav");return $APP.C.i(b,"prev")?QT(a,$APP.Dj):QT(a,$APP.Mj)},TT=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=b.key,d=$APP.k(a,"__xDatePickerGridFocus"),e=$APP.n(d)?ZS(d):null;d=$APP.k(a,"__xDatePickerState");var g=$APP.n(d)?$APP.k(d,"canon"):null,h=$APP.n(d)?$APP.k(d,"month"):null,l=$APP.n(e)?function(){switch(c){case "ArrowLeft":return aT(e,-1);case "ArrowRight":return aT(e,1);case "ArrowUp":return aT(e,-7);case "ArrowDown":return aT(e,
27
- 7);case "PageUp":return cT(e,-1);case "PageDown":return cT(e,1);case "Home":return $APP.n(e)?aT(e,-($APP.n(e)?e.getUTCDay():0)):null;case "End":return $APP.n(e)?aT(e,6-($APP.n(e)?e.getUTCDay():0)):null;default:return null}}():null;return l!=null?(b.preventDefault(),b=dT(l,tT.g(g),sT.g(g)),g=YS(b),$APP.n($APP.n(h)?$APP.N(b.getUTCMonth(),h.getUTCMonth()):h)&&($APP.ja(d,"month",bT(b)),KT(a)),JT(a,g)):$APP.n(function(){var m=$APP.C.i(c,"Enter")||$APP.C.i(c," ");return m?$APP.n(e)?$APP.r(a.hasAttribute("readonly")):
28
- e:m}())?(b.preventDefault(),$APP.n(FT(e,g))?null:OT(a,e,"keyboard")):$APP.C.i(c,"Escape")?(b.preventDefault(),RT(a),d=$APP.k(a,"__xDatePickerRefs"),d=$APP.n(d)?$APP.k(d,"input"):null,$APP.n(d)?d.focus():null):null},UT=function(a){function b(G){return $APP.n(a.hasAttribute("open"))?$APP.n(G.composedPath().some(function(J){return J===a}))?null:RT(a):null}function c(G){return G.preventDefault()}function d(G){return TT(a,G)}function e(G){var J=a.hasAttribute("disabled");$APP.n($APP.n(J)?J:a.hasAttribute("readonly"))?
29
- G=null:(G=G.target.closest("button[data-iso]"),$APP.n($APP.n(G)?$APP.N("true",G.getAttribute("data-disabled")):G)?(G=G.getAttribute("data-iso"),G=ZS(G),G=$APP.n(G)?OT(a,G,"click"):null):G=null);return G}function g(G){return ST(a,G)}function h(G){return ST(a,G)}function l(){if($APP.n(a.hasAttribute("disabled")))var G=null;else if($APP.n(a.hasAttribute("open")))G=RT(a);else if($APP.n(a.hasAttribute("open")))G=null;else{a.setAttribute("open","");G=$APP.k(a,"__xDatePickerState");G=$APP.n(G)?$APP.k(G,
30
- "canon"):null;var J=qT.g(G);$APP.n(J)?G=J:(G=wT.g(G),G=$APP.n(G)?G:new Date(Date.now()));G=YS(G);G=JT(a,G)}return G}function m(){a.__xDatePickerFocused=!1;$APP.n(a.hasAttribute("disabled"))||PT(a,"blur");return LT(a)}function p(){a.__xDatePickerFocused=!0}function q(G){if($APP.n(a.hasAttribute("disabled")))G=null;else{var J=G.key;$APP.C.i(J,"Enter")?(G.preventDefault(),G=PT(a,"keyboard")):G=$APP.C.i(J,"Escape")?RT(a):null}return G}function v(){var G=$APP.k(a,"__xDatePickerRefs");G=$APP.n(G)?$APP.k(G,
31
- "input"):null;var J=$APP.k(a,"__xDatePickerState");J=$APP.C.i($APP.mj.g($APP.n(J)?$APP.k(J,"canon"):null),nT)?"range":"single";a.__xDatePickerDisplay=$APP.n(G)?G.value:null;return DT(a,"x-date-picker-input",!1,{value:$APP.n(G)?G.value:null,mode:J})}var x=$APP.k(a,"__xDatePickerRefs"),y=$APP.k(x,"input"),A=$APP.k(x,"btn"),B=$APP.k(x,"nav-prev"),E=$APP.k(x,"nav-next"),H=$APP.k(x,"grid");x=$APP.k(x,"popover");y.addEventListener("input",v);y.addEventListener("keydown",q);y.addEventListener("focus",p);
32
- y.addEventListener("blur",m);A.addEventListener("click",l);B.addEventListener("click",h);E.addEventListener("click",g);H.addEventListener("click",e);H.addEventListener("keydown",d);x.addEventListener("pointerdown",c);document.addEventListener("pointerdown",b,!0);$APP.ja(a,"__xDatePickerHandlers",{"pop-md":c,keydown:q,grid:e,"grid-kd":d,next:g,blur:m,prev:h,focus:p,input:v,btn:l,"doc-click":b})},VT=function(a){var b=$APP.k(a,"__xDatePickerRefs");a=$APP.k(a,"__xDatePickerHandlers");if($APP.n($APP.n(b)?
19
+ c.setAttribute("aria-describedby",l));hU(a);return gU(a)}return null},jU=function(a,b){$APP.n(b)?a.setAttribute("value",uT(b)):a.removeAttribute("value")},kU=function(a,b,c){if($APP.n(a.hasAttribute("readonly")))return null;var d=$APP.k(a,"__xDatePickerState");d=$APP.n(d)?$APP.k(d,"canon"):null;var e=$APP.n(d)?$APP.rj.g(d):null,g=$APP.C.i(e,KT)?"range":"single",h=$APP.C.i(e,LT)?{value:uT(b),mode:g,reason:c}:{date:uT(b),mode:g,reason:c};h=$T(a,"x-date-picker-change-request",!0,h);if($APP.n(h.defaultPrevented))return null;
20
+ if($APP.C.i(e,LT))return d=uT(b),jU(a,b),aU(a),iU(a),$T(a,"x-date-picker-change",!1,{value:d,mode:g,reason:c}),$APP.n(a.hasAttribute("close-on-select"))?(a.removeAttribute("open"),iU(a)):null;e=function(){var y=$APP.k(a,"__xDatePickerRangeStep");return $APP.n(y)?y:0}();h=TT.g(d);if($APP.C.i(e,0))a.setAttribute("start",uT(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;else if($APP.C.i(e,1)){var l=OT.g(d),m=wT(b,h);if($APP.n(function(){var y=m>0;return y?y:$APP.n(l)?m===0:l}())){var p=$APP.n(JT.g(d))?
21
+ wT(h,b)<0?h:b:h,q=$APP.n(JT.g(d))?wT(h,b)>0?h:b:b;a.setAttribute("start",uT(p));a.setAttribute("end",uT(q));a.__xDatePickerRangeStep=0;$APP.n(function(){var y=a.hasAttribute("close-on-select");return $APP.n(y)?p!=null&&q!=null:y}())&&a.removeAttribute("open")}else a.setAttribute("start",uT(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1}else a.setAttribute("start",uT(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;aU(a);iU(a);b=$APP.k(a,"__xDatePickerState");b=$APP.n(b)?$APP.k(b,"canon"):
22
+ null;var v=$APP.n(TT.g(b))?uT(TT.g(b)):null,x=$APP.n(VT.g(b))?uT(VT.g(b)):null;b=function(){var y={mode:g,reason:c};$APP.n(v)&&(y.start=v);$APP.n(x)&&(y.end=x);return y}();return $T(a,"x-date-picker-change",!1,b)},lU=function(a,b){var c=$APP.k(a,"__xDatePickerRefs");c=$APP.n(c)?$APP.k(c,"input"):null;var d=$APP.n(c)?c.value:null;c=$APP.k(a,"__xDatePickerState");var e=$APP.n(c)?$APP.k(c,"canon"):null,g=$APP.rj.g(e);c=$APP.C.i(g,KT)?"range":"single";$T(a,"x-date-picker-input",!1,{value:d,mode:c});if($APP.C.i(g,
23
+ LT)){if(d=HT(d),e=$APP.M(d),d=$APP.D(e,FT),e=$APP.D(e,GT),$APP.n(d)){g=uT(e);d=$T(a,"x-date-picker-change-request",!0,{value:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;jU(a,e);aU(a);iU(a);return $T(a,"x-date-picker-change",!1,{value:g,mode:c,reason:b})}}else if(e=new $APP.Q(null,1,[$APP.Tk,$APP.Tk.g(e)],null),e=$APP.M(e),e=$APP.D(e,$APP.Tk),e=typeof e==="string"&&e.length>0?e:" - ",d=sT(d),d==null?d=new $APP.Q(null,3,[FT,!1,$APP.Zl,null,$APP.Gi,null],null):(g=d.indexOf(e),g<0?(d=
24
+ HT(d),e=$APP.M(d),d=$APP.D(e,FT),e=$APP.D(e,GT),d=new $APP.Q(null,3,[FT,d,$APP.Zl,e,$APP.Gi,null],null)):(e=d.substring(g+e.length).trim(),d=vT(d.substring(0,g).trim()),e=vT(e),d=new $APP.Q(null,3,[FT,d!=null&&e!=null,$APP.Zl,d,$APP.Gi,e],null))),g=$APP.M(d),d=$APP.D(g,FT),e=$APP.D(g,$APP.Zl),g=$APP.D(g,$APP.Gi),$APP.n(d)){e=uT(e);g=uT(g);d=$T(a,"x-date-picker-change-request",!0,{start:e,end:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;a.setAttribute("start",e);a.setAttribute("end",
25
+ g);a.__xDatePickerRangeStep=0;aU(a);iU(a);return $T(a,"x-date-picker-change",!1,{start:e,end:g,mode:c,reason:b})}return null},mU=function(a,b){var c=$APP.k(a,"__xDatePickerState"),d=$APP.n(c)?$APP.k(c,"month"):null;if($APP.n(d)){var e=d.getUTCFullYear();d=d.getUTCMonth();b=$APP.C.i(b,$APP.Rj)?new Date(Date.UTC(e,d+1,1)):new Date(Date.UTC(e,d-1,1));c.month=b;return gU(a)}return null},nU=function(a){return $APP.n(a.hasAttribute("open"))?a.removeAttribute("open"):null},oU=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;
26
+ b=b.currentTarget.getAttribute("data-nav");return $APP.C.i(b,"prev")?mU(a,$APP.Ij):mU(a,$APP.Rj)},pU=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=b.key,d=$APP.k(a,"__xDatePickerGridFocus"),e=$APP.n(d)?vT(d):null;d=$APP.k(a,"__xDatePickerState");var g=$APP.n(d)?$APP.k(d,"canon"):null,h=$APP.n(d)?$APP.k(d,"month"):null,l=$APP.n(e)?function(){switch(c){case "ArrowLeft":return xT(e,-1);case "ArrowRight":return xT(e,1);case "ArrowUp":return xT(e,-7);case "ArrowDown":return xT(e,
27
+ 7);case "PageUp":return zT(e,-1);case "PageDown":return zT(e,1);case "Home":return $APP.n(e)?xT(e,-($APP.n(e)?e.getUTCDay():0)):null;case "End":return $APP.n(e)?xT(e,6-($APP.n(e)?e.getUTCDay():0)):null;default:return null}}():null;return l!=null?(b.preventDefault(),b=AT(l,QT.g(g),PT.g(g)),g=uT(b),$APP.n($APP.n(h)?$APP.N(b.getUTCMonth(),h.getUTCMonth()):h)&&($APP.ja(d,"month",yT(b)),gU(a)),fU(a,g)):$APP.n(function(){var m=$APP.C.i(c,"Enter")||$APP.C.i(c," ");return m?$APP.n(e)?$APP.r(a.hasAttribute("readonly")):
28
+ e:m}())?(b.preventDefault(),$APP.n(bU(e,g))?null:kU(a,e,"keyboard")):$APP.C.i(c,"Escape")?(b.preventDefault(),nU(a),d=$APP.k(a,"__xDatePickerRefs"),d=$APP.n(d)?$APP.k(d,"input"):null,$APP.n(d)?d.focus():null):null},qU=function(a){function b(H){return $APP.n(a.hasAttribute("open"))?$APP.n(H.composedPath().some(function(J){return J===a}))?null:nU(a):null}function c(H){return H.preventDefault()}function d(H){return pU(a,H)}function e(H){var J=a.hasAttribute("disabled");$APP.n($APP.n(J)?J:a.hasAttribute("readonly"))?
29
+ H=null:(H=H.target.closest("button[data-iso]"),$APP.n($APP.n(H)?$APP.N("true",H.getAttribute("data-disabled")):H)?(H=H.getAttribute("data-iso"),H=vT(H),H=$APP.n(H)?kU(a,H,"click"):null):H=null);return H}function g(H){return oU(a,H)}function h(H){return oU(a,H)}function l(){if($APP.n(a.hasAttribute("disabled")))var H=null;else if($APP.n(a.hasAttribute("open")))H=nU(a);else if($APP.n(a.hasAttribute("open")))H=null;else{a.setAttribute("open","");H=$APP.k(a,"__xDatePickerState");H=$APP.n(H)?$APP.k(H,
30
+ "canon"):null;var J=NT.g(H);$APP.n(J)?H=J:(H=TT.g(H),H=$APP.n(H)?H:new Date(Date.now()));H=uT(H);H=fU(a,H)}return H}function m(){a.__xDatePickerFocused=!1;$APP.n(a.hasAttribute("disabled"))||lU(a,"blur");return hU(a)}function p(){a.__xDatePickerFocused=!0}function q(H){if($APP.n(a.hasAttribute("disabled")))H=null;else{var J=H.key;$APP.C.i(J,"Enter")?(H.preventDefault(),H=lU(a,"keyboard")):H=$APP.C.i(J,"Escape")?nU(a):null}return H}function v(){var H=$APP.k(a,"__xDatePickerRefs");H=$APP.n(H)?$APP.k(H,
31
+ "input"):null;var J=$APP.k(a,"__xDatePickerState");J=$APP.C.i($APP.rj.g($APP.n(J)?$APP.k(J,"canon"):null),KT)?"range":"single";a.__xDatePickerDisplay=$APP.n(H)?H.value:null;return $T(a,"x-date-picker-input",!1,{value:$APP.n(H)?H.value:null,mode:J})}var x=$APP.k(a,"__xDatePickerRefs"),y=$APP.k(x,"input"),A=$APP.k(x,"btn"),B=$APP.k(x,"nav-prev"),E=$APP.k(x,"nav-next"),G=$APP.k(x,"grid");x=$APP.k(x,"popover");y.addEventListener("input",v);y.addEventListener("keydown",q);y.addEventListener("focus",p);
32
+ y.addEventListener("blur",m);A.addEventListener("click",l);B.addEventListener("click",h);E.addEventListener("click",g);G.addEventListener("click",e);G.addEventListener("keydown",d);x.addEventListener("pointerdown",c);document.addEventListener("pointerdown",b,!0);$APP.ja(a,"__xDatePickerHandlers",{"pop-md":c,keydown:q,grid:e,"grid-kd":d,next:g,blur:m,prev:h,focus:p,input:v,btn:l,"doc-click":b})},rU=function(a){var b=$APP.k(a,"__xDatePickerRefs");a=$APP.k(a,"__xDatePickerHandlers");if($APP.n($APP.n(b)?
33
33
  a:b)){var c=$APP.k(b,"input"),d=$APP.k(b,"btn"),e=$APP.k(b,"nav-prev"),g=$APP.k(b,"nav-next"),h=$APP.k(b,"grid");b=$APP.k(b,"popover");c.removeEventListener("input",$APP.k(a,"input"));c.removeEventListener("keydown",$APP.k(a,"keydown"));c.removeEventListener("focus",$APP.k(a,"focus"));c.removeEventListener("blur",$APP.k(a,"blur"));d.removeEventListener("click",$APP.k(a,"btn"));e.removeEventListener("click",$APP.k(a,"prev"));g.removeEventListener("click",$APP.k(a,"next"));h.removeEventListener("click",
34
- $APP.k(a,"grid"));h.removeEventListener("keydown",$APP.k(a,"grid-kd"));b.removeEventListener("pointerdown",$APP.k(a,"pop-md"));return document.removeEventListener("pointerdown",$APP.k(a,"doc-click"),!0)}return null},WT=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return typeof d==="string"&&$APP.N(d,"")?this.setAttribute(c,d):this.removeAttribute(c)}})},XT=function(a,b,c){Object.defineProperty(a,
35
- b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},YT=function(a){a.focus=function(){var b=$APP.k(this,"__xDatePickerRefs");b=$APP.n(b)?$APP.k(b,"input"):null;return $APP.n(b)?b.focus():null};a.commit=function(){return PT(this,"programmatic")};a.clear=function(){var b=$APP.k(this,"__xDatePickerState");$APP.C.i($APP.mj.g($APP.n(b)?$APP.k(b,"canon"):null),oT)?this.removeAttribute("value"):
36
- (this.removeAttribute("start"),this.removeAttribute("end"));ET(this);return MT(this)}},$T=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=ZT;b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xDatePickerRefs"))){var c=this.attachShadow({mode:"open"}),d=CT("style"),e=CT("div"),g=CT("input"),h=CT("button"),l=CT("div"),m=CT("div"),p=CT("button"),q=CT("div"),v=CT("button"),x=CT("div"),y=CT("div"),A=CT("div");d.textContent=":host{display:block;color-scheme:light dark;--x-date-picker-border:var(--x-color-border,#cbd5e1);--x-date-picker-radius:var(--x-radius-md,8px);--x-date-picker-input-bg:var(--x-color-surface,#fff);--x-date-picker-text:inherit;--x-date-picker-focus:var(--x-color-focus-ring,#60a5fa);--x-date-picker-placeholder:var(--x-color-text-muted,#94a3b8);--x-date-picker-btn-bg:var(--x-color-surface-hover,#f8fafc);--x-date-picker-btn-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-popover-bg:var(--x-color-bg,#fff);--x-date-picker-popover-radius:var(--x-radius-lg,12px);--x-date-picker-nav-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-weekday:var(--x-color-text-muted,#94a3b8);--x-date-picker-day-text:inherit;--x-date-picker-day-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-selected-bg:var(--x-color-primary,#2563eb);--x-date-picker-selected-text:#fff;--x-date-picker-range-bg:var(--x-color-surface-active,#dbeafe);--x-date-picker-range-text:var(--x-color-primary-active,#1e40af);}[part\x3dcontainer]{position:relative;display:flex;align-items:stretch;gap:8px;width:100%;}[part\x3dinput]{flex:1;min-width:0;appearance:none;box-sizing:border-box;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);padding:8px 12px;font-size:0.9375rem;background:var(--x-date-picker-input-bg,#fff);color:var(--x-date-picker-text,inherit);outline:none;}[part\x3dinput]:focus{border-color:var(--x-date-picker-focus,#60a5fa);box-shadow:0 0 0 3px rgba(96,165,250,0.25);}[part\x3dinput][disabled]{opacity:0.5;cursor:default;}[part\x3dbtn][disabled]{opacity:0.5;cursor:default;pointer-events:none;}[part\x3dinput]::placeholder{color:var(--x-date-picker-placeholder,#94a3b8);}[part\x3dbtn]{all:unset;cursor:pointer;flex:0 0 auto;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);background:var(--x-date-picker-btn-bg,#f8fafc);color:var(--x-date-picker-text,inherit);box-sizing:border-box;}[part\x3dbtn]:hover{background:var(--x-date-picker-btn-hover,#f1f5f9);}[part\x3dbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dpopover]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;background:var(--x-date-picker-popover-bg,#fff);border:1px solid var(--x-date-picker-border,#e2e8f0);border-radius:var(--x-date-picker-popover-radius,12px);box-shadow:0 8px 32px rgba(0,0,0,0.12),0 2px 8px rgba(0,0,0,0.06);padding:16px;width:var(--x-date-picker-popover-width,304px);max-width:calc(100vw - 1rem);box-sizing:border-box;}:host([open]) [part\x3dpopover]{display:block;}[part\x3dnav]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}[part\x3dnavbtn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--x-date-picker-text,inherit);}[part\x3dnavbtn]:hover{background:var(--x-date-picker-nav-hover,#f1f5f9);}[part\x3dnavbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dmonthlabel]{font-weight:600;font-size:0.9375rem;}[part\x3dweekdays]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;}[part\x3dweekday]{text-align:center;font-size:0.75rem;font-weight:600;color:var(--x-date-picker-weekday,#94a3b8);padding:4px 0;}[part\x3dgrid]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}[part\x3dday]{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;border-radius:6px;font-size:0.875rem;color:var(--x-date-picker-day-text,inherit);}[part\x3dday]:hover:not([disabled]){background:var(--x-date-picker-day-hover,#f1f5f9);}[part\x3dday]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dday][data-outside\x3dtrue]{opacity:0.4;}[part\x3dday][data-disabled\x3dtrue]{opacity:0.3;cursor:default;pointer-events:none;}[part\x3dday][data-selected\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dday][data-in-range\x3dtrue]:not([data-range-edge\x3dtrue]){background:var(--x-date-picker-range-bg,#dbeafe);color:var(--x-date-picker-range-text,#1e40af);border-radius:0;}[part\x3dday][data-range-edge\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dsr-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}@media (prefers-color-scheme:dark){:host{--x-date-picker-border:var(--x-color-border,#334155);--x-date-picker-input-bg:var(--x-color-surface,#0f172a);--x-date-picker-btn-bg:var(--x-color-surface-hover,#1e293b);--x-date-picker-btn-hover:var(--x-color-surface-active,#334155);--x-date-picker-popover-bg:var(--x-color-bg,#1e293b);--x-date-picker-day-hover:var(--x-color-surface-active,#334155);--x-date-picker-selected-bg:var(--x-color-primary,#3b82f6);--x-date-picker-range-bg:var(--x-color-surface-active,#1e3a8a);--x-date-picker-range-text:var(--x-color-focus-ring,#93c5fd);--x-date-picker-nav-hover:var(--x-color-surface-active,#334155);}}@media (prefers-reduced-motion:reduce){[part\x3dpopover]{transition:none;}}";
34
+ $APP.k(a,"grid"));h.removeEventListener("keydown",$APP.k(a,"grid-kd"));b.removeEventListener("pointerdown",$APP.k(a,"pop-md"));return document.removeEventListener("pointerdown",$APP.k(a,"doc-click"),!0)}return null},sU=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return typeof d==="string"&&$APP.N(d,"")?this.setAttribute(c,d):this.removeAttribute(c)}})},tU=function(a,b,c){Object.defineProperty(a,
35
+ b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},uU=function(a){a.focus=function(){var b=$APP.k(this,"__xDatePickerRefs");b=$APP.n(b)?$APP.k(b,"input"):null;return $APP.n(b)?b.focus():null};a.commit=function(){return lU(this,"programmatic")};a.clear=function(){var b=$APP.k(this,"__xDatePickerState");$APP.C.i($APP.rj.g($APP.n(b)?$APP.k(b,"canon"):null),LT)?this.removeAttribute("value"):
36
+ (this.removeAttribute("start"),this.removeAttribute("end"));aU(this);return iU(this)}},wU=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=vU;b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xDatePickerRefs"))){var c=this.attachShadow({mode:"open"}),d=ZT("style"),e=ZT("div"),g=ZT("input"),h=ZT("button"),l=ZT("div"),m=ZT("div"),p=ZT("button"),q=ZT("div"),v=ZT("button"),x=ZT("div"),y=ZT("div"),A=ZT("div");d.textContent=":host{display:block;color-scheme:light dark;--x-date-picker-border:var(--x-color-border,#cbd5e1);--x-date-picker-radius:var(--x-radius-md,8px);--x-date-picker-input-bg:var(--x-color-surface,#fff);--x-date-picker-text:inherit;--x-date-picker-focus:var(--x-color-focus-ring,#60a5fa);--x-date-picker-placeholder:var(--x-color-text-muted,#94a3b8);--x-date-picker-btn-bg:var(--x-color-surface-hover,#f8fafc);--x-date-picker-btn-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-popover-bg:var(--x-color-bg,#fff);--x-date-picker-popover-radius:var(--x-radius-lg,12px);--x-date-picker-nav-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-weekday:var(--x-color-text-muted,#94a3b8);--x-date-picker-day-text:inherit;--x-date-picker-day-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-selected-bg:var(--x-color-primary,#2563eb);--x-date-picker-selected-text:#fff;--x-date-picker-range-bg:var(--x-color-surface-active,#dbeafe);--x-date-picker-range-text:var(--x-color-primary-active,#1e40af);}[part\x3dcontainer]{position:relative;display:flex;align-items:stretch;gap:8px;width:100%;}[part\x3dinput]{flex:1;min-width:0;appearance:none;box-sizing:border-box;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);padding:8px 12px;font-size:0.9375rem;background:var(--x-date-picker-input-bg,#fff);color:var(--x-date-picker-text,inherit);outline:none;}[part\x3dinput]:focus{border-color:var(--x-date-picker-focus,#60a5fa);box-shadow:0 0 0 3px rgba(96,165,250,0.25);}[part\x3dinput][disabled]{opacity:0.5;cursor:default;}[part\x3dbtn][disabled]{opacity:0.5;cursor:default;pointer-events:none;}[part\x3dinput]::placeholder{color:var(--x-date-picker-placeholder,#94a3b8);}[part\x3dbtn]{all:unset;cursor:pointer;flex:0 0 auto;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);background:var(--x-date-picker-btn-bg,#f8fafc);color:var(--x-date-picker-text,inherit);box-sizing:border-box;}[part\x3dbtn]:hover{background:var(--x-date-picker-btn-hover,#f1f5f9);}[part\x3dbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dpopover]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;background:var(--x-date-picker-popover-bg,#fff);border:1px solid var(--x-date-picker-border,#e2e8f0);border-radius:var(--x-date-picker-popover-radius,12px);box-shadow:0 8px 32px rgba(0,0,0,0.12),0 2px 8px rgba(0,0,0,0.06);padding:16px;width:var(--x-date-picker-popover-width,304px);max-width:calc(100vw - 1rem);box-sizing:border-box;}:host([open]) [part\x3dpopover]{display:block;}[part\x3dnav]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}[part\x3dnavbtn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--x-date-picker-text,inherit);}[part\x3dnavbtn]:hover{background:var(--x-date-picker-nav-hover,#f1f5f9);}[part\x3dnavbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dmonthlabel]{font-weight:600;font-size:0.9375rem;}[part\x3dweekdays]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;}[part\x3dweekday]{text-align:center;font-size:0.75rem;font-weight:600;color:var(--x-date-picker-weekday,#94a3b8);padding:4px 0;}[part\x3dgrid]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}[part\x3dday]{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;border-radius:6px;font-size:0.875rem;color:var(--x-date-picker-day-text,inherit);}[part\x3dday]:hover:not([disabled]){background:var(--x-date-picker-day-hover,#f1f5f9);}[part\x3dday]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dday][data-outside\x3dtrue]{opacity:0.4;}[part\x3dday][data-disabled\x3dtrue]{opacity:0.3;cursor:default;pointer-events:none;}[part\x3dday][data-selected\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dday][data-in-range\x3dtrue]:not([data-range-edge\x3dtrue]){background:var(--x-date-picker-range-bg,#dbeafe);color:var(--x-date-picker-range-text,#1e40af);border-radius:0;}[part\x3dday][data-range-edge\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dsr-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}@media (prefers-color-scheme:dark){:host{--x-date-picker-border:var(--x-color-border,#334155);--x-date-picker-input-bg:var(--x-color-surface,#0f172a);--x-date-picker-btn-bg:var(--x-color-surface-hover,#1e293b);--x-date-picker-btn-hover:var(--x-color-surface-active,#334155);--x-date-picker-popover-bg:var(--x-color-bg,#1e293b);--x-date-picker-day-hover:var(--x-color-surface-active,#334155);--x-date-picker-selected-bg:var(--x-color-primary,#3b82f6);--x-date-picker-range-bg:var(--x-color-surface-active,#1e3a8a);--x-date-picker-range-text:var(--x-color-focus-ring,#93c5fd);--x-date-picker-nav-hover:var(--x-color-surface-active,#334155);}}@media (prefers-reduced-motion:reduce){[part\x3dpopover]{transition:none;}}";
37
37
  e.setAttribute("part","container");g.setAttribute("part","input");g.setAttribute("type","text");g.setAttribute("inputmode","none");g.setAttribute("autocomplete","off");g.setAttribute("role","combobox");g.setAttribute("aria-haspopup","dialog");g.setAttribute("aria-expanded","false");h.setAttribute("part","btn");h.setAttribute("type","button");h.setAttribute("aria-label","Open calendar");h.textContent="\ud83d\udcc5";l.setAttribute("part","popover");l.setAttribute("role","dialog");l.setAttribute("aria-modal",
38
38
  "true");l.setAttribute("aria-label","Calendar");m.setAttribute("part","nav");p.setAttribute("part","navbtn");p.setAttribute("data-nav","prev");p.setAttribute("type","button");p.setAttribute("aria-label","Previous month");p.textContent="‹";q.setAttribute("part","monthlabel");q.setAttribute("aria-live","polite");v.setAttribute("part","navbtn");v.setAttribute("data-nav","next");v.setAttribute("type","button");v.setAttribute("aria-label","Next month");v.textContent="›";x.setAttribute("part","weekdays");
39
39
  x.setAttribute("aria-hidden","true");y.setAttribute("part","grid");y.setAttribute("role","grid");y.setAttribute("aria-label","Calendar grid");A.setAttribute("part","sr-status");A.setAttribute("aria-live","polite");A.setAttribute("aria-atomic","true");m.appendChild(p);m.appendChild(q);m.appendChild(v);l.appendChild(m);l.appendChild(x);l.appendChild(y);l.appendChild(A);e.appendChild(g);e.appendChild(h);e.appendChild(l);c.appendChild(d);c.appendChild(e);this.__xDatePickerRefs={weekdays:x,grid:y,popover:l,
40
- "nav-next":v,"month-label":q,input:g,btn:h,sr:A,"nav-prev":p}}VT(this);UT(this);ET(this);return MT(this)};b.disconnectedCallback=function(){return VT(this)};b.attributeChangedCallback=function(){ET(this);return MT(this)};WT(b,"mode","mode");WT(b,"value","value");WT(b,"start","start");WT(b,"end","end");XT(b,"open","open");XT(b,"disabled","disabled");XT(b,"readOnly","readonly");XT(b,"required","required");YT(b);return a},aU=function(){return $APP.n(customElements.get("x-date-picker"))?null:customElements.define("x-date-picker",
41
- $T())},wT=new $APP.K(null,"start-d","start-d",-1546785820),jT=new $APP.K(null,"date","date",-1463434462),mT=new $APP.K(null,"auto-swap?","auto-swap?",-1675454411),HT=new $APP.K(null,"edge?","edge?",203916303),sT=new $APP.K(null,"max-d","max-d",-814680979),oT=new $APP.K(null,"single","single",1551466437),xT=new $APP.K(null,"start-str","start-str",1077409677),nT=new $APP.K(null,"range","range",1639692286),pT=new $APP.K(null,"iso","iso",-1366207543),AT=new $APP.K(null,"in-month?","in-month?",-1630426251),
42
- tT=new $APP.K(null,"min-d","min-d",-1118792932),rT=new $APP.K(null,"allow-same-day?","allow-same-day?",-1971558934),iT=new $APP.K(null,"ok?","ok?",447310304),vT=new $APP.K(null,"end-str","end-str",-558112319),gT=new $APP.K(null,"localized","localized",1722109655),uT=new $APP.K(null,"value-str","value-str",989198845),fT=new $APP.K(null,"format","format",-1306924766),qT=new $APP.K(null,"value-d","value-d",-1768534876),GT=new $APP.K(null,"in-range?","in-range?",-291779262),yT=new $APP.K(null,"end-d",
43
- "end-d",-1316370898),lT=new $APP.K(null,"range-allow-same-day?","range-allow-same-day?",-714516856);var ZT="mode value start end min max format locale separator auto-swap range-allow-same-day close-on-select placeholder disabled readonly required name autocomplete aria-label aria-describedby open".split(" ");$APP.ha("baredom.exports.x_date_picker.init",aU);export const init=aU;
40
+ "nav-next":v,"month-label":q,input:g,btn:h,sr:A,"nav-prev":p}}rU(this);qU(this);aU(this);return iU(this)};b.disconnectedCallback=function(){return rU(this)};b.attributeChangedCallback=function(){aU(this);return iU(this)};sU(b,"mode","mode");sU(b,"value","value");sU(b,"start","start");sU(b,"end","end");tU(b,"open","open");tU(b,"disabled","disabled");tU(b,"readOnly","readonly");tU(b,"required","required");uU(b);return a},xU=function(){return $APP.n(customElements.get("x-date-picker"))?null:customElements.define("x-date-picker",
41
+ wU())},TT=new $APP.K(null,"start-d","start-d",-1546785820),GT=new $APP.K(null,"date","date",-1463434462),JT=new $APP.K(null,"auto-swap?","auto-swap?",-1675454411),dU=new $APP.K(null,"edge?","edge?",203916303),PT=new $APP.K(null,"max-d","max-d",-814680979),LT=new $APP.K(null,"single","single",1551466437),UT=new $APP.K(null,"start-str","start-str",1077409677),KT=new $APP.K(null,"range","range",1639692286),MT=new $APP.K(null,"iso","iso",-1366207543),XT=new $APP.K(null,"in-month?","in-month?",-1630426251),
42
+ QT=new $APP.K(null,"min-d","min-d",-1118792932),OT=new $APP.K(null,"allow-same-day?","allow-same-day?",-1971558934),FT=new $APP.K(null,"ok?","ok?",447310304),ST=new $APP.K(null,"end-str","end-str",-558112319),DT=new $APP.K(null,"localized","localized",1722109655),RT=new $APP.K(null,"value-str","value-str",989198845),CT=new $APP.K(null,"format","format",-1306924766),NT=new $APP.K(null,"value-d","value-d",-1768534876),cU=new $APP.K(null,"in-range?","in-range?",-291779262),VT=new $APP.K(null,"end-d",
43
+ "end-d",-1316370898),IT=new $APP.K(null,"range-allow-same-day?","range-allow-same-day?",-714516856);var vU="mode value start end min max format locale separator auto-swap range-allow-same-day close-on-select placeholder disabled readonly required name autocomplete aria-label aria-describedby open".split(" ");$APP.ha("baredom.exports.x_date_picker.init",xU);export const init=xU;
package/dist/x-divider.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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"),
2
+ var MS=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},NS=function(a){for(;;){var b=a.firstChild;if($APP.n(b))a.removeChild(b);else break}},YS=function(a){var b=$APP.zf([$APP.hl,$APP.ni,$APP.Si,OS,PS,$APP.Sm,QS,$APP.Kl,$APP.Sj,RS],[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.Sj);var d=$APP.D(c,RS),e=$APP.D(c,$APP.ni);var g=$APP.D(c,$APP.hl);var h=$APP.D(c,$APP.Si),l=$APP.D(c,OS),m=$APP.D(c,PS),p=$APP.D(c,$APP.Sm),q=$APP.D(c,QS);c=$APP.D(c,$APP.Kl);g=$APP.zf([$APP.fi,$APP.qj,SS,TS,$APP.Jj,$APP.Tg,$APP.el,$APP.U,US,$APP.Cl],[d,MS(VS,"center",h),m,q,p,MS(WS,"solid",g),MS(XS,"horizontal",c),e,l,b]);c=$APP.M(g);d=$APP.D(c,$APP.Cl);h=$APP.D(c,$APP.qj);l=$APP.D(c,SS);m=$APP.D(c,TS);p=$APP.D(c,$APP.Jj);q=$APP.D(c,$APP.Tg);
4
+ e=$APP.D(c,$APP.el);b=$APP.D(c,$APP.U);var v=$APP.D(c,US);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.fi.g(g);$APP.I(new $APP.R(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"),NS(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"),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=
7
+ b)):(a=$APP.k(a,"__xDividerRefs"),$APP.C.i($APP.k(a,"mode"),"label")&&(b=$APP.k(a,"container"),NS(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},ZS=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
+ $S=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})},aT=function(a){$S(a,"orientation","horizontal");$S(a,"variant","solid");$S(a,"align","center");ZS(a,"label");ZS(a,"thickness");ZS(a,"color");ZS(a,"inset");ZS(a,"length")},cT=function(){var a=class extends HTMLElement{};a.observedAttributes=bT;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 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;
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 YS(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"))?YS(this):null:null};aT(a.prototype);return a},dT=function(){$APP.n(customElements.get("x-divider"))||customElements.define("x-divider",
11
+ cT());return null},QS=new $APP.K(null,"inset-raw","inset-raw",89351124),TS=new $APP.K(null,"inset","inset",-396367740),RS=new $APP.K(null,"role-raw","role-raw",777951354),US=new $APP.K(null,"length","length",588987862),OS=new $APP.K(null,"length-raw","length-raw",-1832244116),SS=new $APP.K(null,"thickness","thickness",-940175454),PS=new $APP.K(null,"thickness-raw","thickness-raw",1843812655);var bT="orientation variant thickness color inset length label align role aria-label".split(" "),XS=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),WS=new $APP.R(null,new $APP.Q(null,3,["dashed",null,"dotted",null,"solid",null],null),null),VS=new $APP.R(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null);$APP.ha("baredom.exports.x_divider.init",dT);export const init=dT;
package/dist/x-drawer.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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);}}";
2
+ var iH=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")},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;
4
+ footer:p};return $APP.k(a,"__xDrawerRefs")},kH=function(a){a=new $APP.Q(null,3,[$APP.Bi,a.hasAttribute("open"),$APP.Tm,a.getAttribute("placement"),$APP.ni,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Bi);a=$APP.D(b,$APP.Tm);b=$APP.D(b,$APP.ni);c=$APP.F(c);a=typeof a==="string"&&$APP.I(jH,a)?a:"right";b=typeof b==="string"&&$APP.N(b,"")?b:"Drawer";return new $APP.Q(null,3,[$APP.zm,c,$APP.Oj,a,$APP.U,b],null)},lH=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,
5
+ composed:!0,cancelable:!1}))},mH=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'])"))))},nH=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()},oH=function(a,b){lH(a,"x-drawer-dismiss",{reason:b});a.removeAttribute("open");return null},pH=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},qH=function(a){a.removeAttribute("open");return null},rH=function(a){var b=iH(a);b=$APP.k(b,"panel");var c=kH(a),d=
7
+ $APP.zm.g(c),e=$APP.k(a,"__xDrawerPrevOpen");a.setAttribute("data-open",$APP.n(d)?"true":"false");a.setAttribute("data-placement",$APP.Oj.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,lH(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=mH(a);a.__xDrawerRestore=document.activeElement;var l=$APP.n(h)?
8
+ $APP.Gh(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):nH(a))},sH=function(a){function b(g){var h=g.key;if($APP.C.i(h,"Escape"))g.preventDefault(),oH(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 oH(a,"backdrop")}var d=iH(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})},tH=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},uH=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?pH(this):qH(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 pH(this)},enumerable:!0,configurable:!0,
12
+ writable:!0});Object.defineProperty(a,"hide",{value:function(){return qH(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?qH(this):pH(this);return null},enumerable:!0,configurable:!0,writable:!0})},wH=function(){if(!$APP.n(customElements.get("x-drawer"))){var a=class extends HTMLElement{};a.observedAttributes=vH;a.prototype.connectedCallback=function(){iH(this);tH(this);sH(this);rH(this);return null};a.prototype.disconnectedCallback=
13
+ function(){tH(this);nH(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&rH(this);return null};uH(a.prototype);customElements.define("x-drawer",a)}return null},xH=function(){return wH()};var jH=new $APP.R(null,new $APP.Q(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),vH=["open","placement","label"];$APP.Qd(["x-drawer-toggle",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,1,[$APP.Vl,$APP.Xj],null)],null),"x-drawer-dismiss",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,1,[$APP.Li,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_drawer.init",xH);export const init=xH;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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");
2
+ var dr=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},fr=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(er,a)?a:"bottom-start";d.textContent=h;c.setAttribute("aria-expanded",$APP.n(e)?"true":"false");dr(c,"disabled",g);return b.setAttribute("data-placement",
3
+ a)}return null},gr=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},hr=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},ir=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},jr=function(a){return{triggerClick:function(){return gr(a,"pointer")},triggerKeydown:function(b){var c=
5
+ b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),gr(a,"keyboard")):null},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.r(a.contains(b))?gr(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:gr(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?gr(a,
6
+ "escape"):null}}},kr=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")))}},lr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return dr(this,c,$APP.F(d))}})},mr=
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}})},or=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return nr}});lr(b,"open","open");lr(b,"disabled","disabled");mr(b,"label","label");mr(b,"placement","placement");b.show=function(){return $APP.n(this.hasAttribute("open"))?
8
+ null:gr(this,"programmatic")};b.hide=function(){return $APP.n(this.hasAttribute("open"))?gr(this,"programmatic"):null};b.toggle=function(){return gr(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}}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;
11
+ l.appendChild(m);c.appendChild(d);c.appendChild(e);c.appendChild(l);this.__xDropdownRefs={trigger:e,label:g,chevron:h,panel:l}}kr(this);ir(this);this.__xDropdownHandlers=jr(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
+ hr(this);return fr(this)};b.disconnectedCallback=function(){kr(this);return ir(this)};b.attributeChangedCallback=function(c){$APP.n($APP.k(this,"__xDropdownRefs"))?(fr(this),c=$APP.C.i(c,"open")?$APP.n(this.hasAttribute("open"))?hr(this):ir(this):null):c=null;return c};return a},pr=function(){return $APP.n(customElements.get("x-dropdown"))?null:customElements.define("x-dropdown",or())};var er=new $APP.R(null,new $APP.Q(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),nr=["open","disabled","label","placement"];$APP.Qd(["x-dropdown-toggle",new $APP.Q(null,2,[$APP.Yl,!0,$APP.V,new $APP.Q(null,2,[$APP.Vl,$APP.Xj,$APP.fl,$APP.Y],null)],null),"x-dropdown-change",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,new $APP.Q(null,1,[$APP.Vl,$APP.Xj],null)],null)]);$APP.ha("baredom.exports.x_dropdown.init",pr);export const init=pr;
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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);}";
2
+ var RE=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},VE=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,[SE,e,$APP.Al,a.hasAttribute("disabled"),$APP.Sj,a.getAttribute("aria-label"),$APP.xj,a.getAttribute("aria-describedby")],null);var g=$APP.M(e),h=$APP.D(g,SE);var l=$APP.D(g,$APP.Al);e=$APP.D(g,$APP.Sj);g=$APP.D(g,$APP.xj);h=$APP.n(h)?
3
+ h:"";l=$APP.F(l);l=new $APP.Q(null,5,[TE,h,UE,$APP.N(h,""),$APP.X,l,$APP.Cl,e,$APP.Lm,g],null);h=TE.g(l);g=UE.g(l);e=$APP.X.g(l);d.textContent=h;$APP.n(g)?d.removeAttribute("hidden"):d.setAttribute("hidden","");d=$APP.Cl.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.Lm.g(l);$APP.n(d)?c.setAttribute("aria-describedby",d):
4
+ c.removeAttribute("aria-describedby");RE(a,"data-disabled",e);return RE(b,"inert",e)}return null},WE=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return RE(this,"disabled",$APP.F(b))}})},XE=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}})},ZE=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=YE;XE(b);WE(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 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;
7
+ document.head.appendChild(d));this.__xFieldsetRefs={root:c,"root-el":e,"legend-el":g,"content-el":h}}return VE(this)};b.disconnectedCallback=function(){return null};b.attributeChangedCallback=function(){return VE(this)};return a},$E=function(){return $APP.n(customElements.get("x-fieldset"))?null:customElements.define("x-fieldset",ZE())},UE=new $APP.K(null,"legend-visible?","legend-visible?",-281107501),SE=new $APP.K(null,"legend-raw","legend-raw",907427195),TE=new $APP.K(null,"legend","legend",-1027192245);var YE=["legend","disabled","aria-label","aria-describedby"];$APP.ha("baredom.exports.x_fieldset.init",$E);export const init=$E;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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;}}";
2
+ var Yy=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},bz=function(a){a=new $APP.Q(null,4,[Zy,a.getAttribute("href"),$y,a.getAttribute("filename"),$APP.Al,a.hasAttribute("disabled"),$APP.Sj,a.getAttribute("aria-label")],null);var b=$APP.M(a);a=$APP.D(b,Zy);var c=$APP.D(b,$y),d=$APP.D(b,$APP.Al);b=$APP.D(b,$APP.Sj);return new $APP.Q(null,4,[$APP.Mm,$APP.Mg(a),az,$APP.n(c)?c:"",$APP.X,$APP.F(d),$APP.Cl,b],null)},cz=function(a){var b=$APP.k(a,"__xFileDownloadRefs");if($APP.n(b)){b=
3
+ $APP.k(b,"anchor-el");var c=bz(a),d=$APP.Mm.g(c),e=az.g(c),g=$APP.X.g(c);c=$APP.Cl.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 Yy(a,"data-disabled",g)}return null},dz=function(a){return function(b){if($APP.n(a.hasAttribute("disabled")))return b.preventDefault();
4
+ var c=bz(a);c={href:$APP.Mm.g(c),filename:az.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}},ez=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},fz=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}})},gz=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return Yy(this,"disabled",$APP.F(b))}})},iz=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",
6
+ {get:function(){return hz}});fz(b,"href","href");fz(b,"filename","filename");gz(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}}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;
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}}ez(this);c=dz(this);$APP.k($APP.k(this,"__xFileDownloadRefs"),"anchor-el").addEventListener("click",c);this.__xFileDownloadHandlers={click:c};return cz(this)};b.disconnectedCallback=function(){return ez(this)};b.attributeChangedCallback=function(){return cz(this)};return a},jz=function(){return $APP.n(customElements.get("x-file-download"))?null:customElements.define("x-file-download",
9
+ iz())},$y=new $APP.K(null,"filename-raw","filename-raw",-706184256),Zy=new $APP.K(null,"href-raw","href-raw",-1680949453),az=new $APP.K(null,"filename","filename",-1428840783);var hz=["href","filename","disabled","aria-label"];$APP.ha("baredom.exports.x_file_download.init",jz);export const init=jz;
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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"),
2
+ var eT=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},fT=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)},hT=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.ni,$APP.ml,$APP.Ei,$APP.Vi,$APP.Al,$APP.Lh,$APP.Gj,$APP.qm,$APP.mi,$APP.ui,$APP.Ki],[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.Ki),m=$APP.D(h,$APP.ni),p=$APP.D(h,$APP.ml);
4
+ g=$APP.D(h,$APP.Ei);var q=$APP.D(h,$APP.Vi),v=$APP.D(h,$APP.Al),x=$APP.D(h,$APP.Lh),y=$APP.D(h,$APP.Gj),A=$APP.D(h,$APP.qm),B=$APP.D(h,$APP.mi),E=$APP.D(h,$APP.ui);h=$APP.n(g)?g:"";var G=$APP.n(q)?q:"",H=$APP.n(m)?m:"",J=[$APP.ki,$APP.Pm,$APP.lm,$APP.ri,$APP.vj,$APP.Ti,$APP.pl,$APP.Z,$APP.Qk,$APP.Ll,$APP.U,$APP.zi,$APP.Nl,$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(gT,E)?E:"text";g=$APP.zf(J,[x,y,l,q,p,A,m,E,typeof g==="string"&&$APP.N(g,"")&&g!=null,G,H,h,$APP.n(B)?B:"",$APP.F(v)]);v=$APP.Qk.g(g);B=$APP.ri.g(g);h=$APP.pl.g(g);d.type=$APP.Z.g(g);d.name=$APP.vj.g(g);d.placeholder=$APP.lm.g(g);d.disabled=$APP.X.g(g);d.readOnly=$APP.Pm.g(g);d.required=$APP.ki.g(g);d.autocomplete=$APP.Nl.g(g);G=$APP.n($APP.ki.g(g))?"true":"false";d.setAttribute("aria-required",G);d.setAttribute("aria-invalid",$APP.n(v)?"true":"false");G=$APP.n($APP.n(B)?v:B)?"hint error":
6
+ $APP.n(B)?"hint":$APP.n(v)?"error":null;$APP.n(G)?d.setAttribute("aria-describedby",G):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.Ll.g(g);$APP.n(B)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.zi.g(g);$APP.n(v)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");eT(a,"data-invalid",v);c=$APP.k(a,"__xFormFieldInternals");return $APP.n(c)?
7
+ fT(a,c,d):null}return null},iT=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},jT=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),fT(a,e,b));return iT(a,"x-form-field-input",{name:d,value:c})}return null}},kT=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),fT(a,e,b));return iT(a,"x-form-field-change",{name:d,value:c})}return null}},lT=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},mT=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}})},nT=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return eT(this,c,$APP.F(d))}})},oT=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}})},qT=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return pT}});oT(b);mT(b,
11
+ "label","label");mT(b,"type","type");mT(b,"name","name");mT(b,"placeholder","placeholder");mT(b,"autocomplete","autocomplete");nT(b,"disabled","disabled");nT(b,"readOnly","readonly");nT(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())}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;
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())}lT(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=jT(this),e=kT(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xFormFieldHandlers={input:d,change:e});return hT(this)};b.disconnectedCallback=function(){return lT(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 hT(this)};b.formDisabledCallback=function(c){eT(this,"disabled",$APP.F(c));
16
+ return hT(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 hT(this)};return a},rT=function(){return $APP.n(customElements.get("x-form-field"))?null:customElements.define("x-form-field",qT())};var pT="label type name value placeholder hint error disabled readonly required autocomplete".split(" "),gT=new $APP.R(null,new $APP.Q(null,6,["url",null,"tel",null,"email",null,"text",null,"number",null,"password",null],null),null);
17
+ $APP.zf([$APP.lm,$APP.Nj,$APP.vj,$APP.Ti,$APP.wj,$APP.Z,$APP.U,$APP.Nl,$APP.wk],[new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"placeholder"],null),new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"type"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"label"],null),new $APP.Q(null,
18
+ 2,[$APP.Z,$APP.Y,$APP.Bk,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"required"],null)]);$APP.ha("baredom.exports.x_form_field.init",rT);export const init=rT;