@vanelsas/baredom 2.3.1 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +265 -264
  4. package/dist/integrity.json +98 -0
  5. package/dist/x-alert.js +17 -17
  6. package/dist/x-avatar-group.js +11 -11
  7. package/dist/x-avatar.js +14 -14
  8. package/dist/x-badge.js +11 -11
  9. package/dist/x-bento-grid.js +5 -5
  10. package/dist/x-bento-item.js +4 -4
  11. package/dist/x-breadcrumbs.js +14 -14
  12. package/dist/x-button.js +15 -15
  13. package/dist/x-cancel-dialogue.js +16 -16
  14. package/dist/x-card.js +7 -7
  15. package/dist/x-carousel.js +32 -32
  16. package/dist/x-chart.js +47 -47
  17. package/dist/x-checkbox.js +11 -11
  18. package/dist/x-chip.js +8 -8
  19. package/dist/x-collapse.js +10 -10
  20. package/dist/x-color-picker.js +42 -42
  21. package/dist/x-combobox.js +24 -24
  22. package/dist/x-command-palette.js +24 -24
  23. package/dist/x-container.js +6 -6
  24. package/dist/x-context-menu.js +18 -18
  25. package/dist/x-copy.js +22 -22
  26. package/dist/x-currency-field.js +22 -22
  27. package/dist/x-date-picker.js +37 -37
  28. package/dist/x-divider.js +8 -8
  29. package/dist/x-drawer.js +11 -11
  30. package/dist/x-dropdown.js +9 -9
  31. package/dist/x-fieldset.js +5 -5
  32. package/dist/x-file-download.js +7 -7
  33. package/dist/x-file-upload.js +26 -0
  34. package/dist/x-form-field.js +15 -15
  35. package/dist/x-form.js +10 -10
  36. package/dist/x-gaussian-blur.js +18 -18
  37. package/dist/x-grid.js +6 -6
  38. package/dist/x-icon.js +7 -7
  39. package/dist/x-image.js +18 -18
  40. package/dist/x-kinetic-font.js +28 -28
  41. package/dist/x-kinetic-typography.js +38 -38
  42. package/dist/x-liquid-dock.js +36 -36
  43. package/dist/x-liquid-fill.js +42 -42
  44. package/dist/x-liquid-glass.js +40 -40
  45. package/dist/x-menu-item.js +10 -10
  46. package/dist/x-menu.js +10 -10
  47. package/dist/x-metaball-cursor.js +27 -27
  48. package/dist/x-modal.js +11 -11
  49. package/dist/x-morph-stack.js +39 -39
  50. package/dist/x-navbar.js +13 -13
  51. package/dist/x-neural-glow.js +30 -30
  52. package/dist/x-notification-center.js +10 -10
  53. package/dist/x-organic-divider.js +16 -16
  54. package/dist/x-organic-progress.js +35 -35
  55. package/dist/x-organic-shape.js +12 -12
  56. package/dist/x-pagination.js +16 -16
  57. package/dist/x-particle-button.js +49 -49
  58. package/dist/x-popover.js +23 -23
  59. package/dist/x-progress-circle.js +8 -8
  60. package/dist/x-progress.js +8 -8
  61. package/dist/x-radio.js +11 -11
  62. package/dist/x-ripple-effect.js +11 -11
  63. package/dist/x-scroll-parallax.js +17 -17
  64. package/dist/x-scroll-stack.js +18 -18
  65. package/dist/x-scroll-story.js +34 -34
  66. package/dist/x-scroll-timeline.js +45 -45
  67. package/dist/x-scroll.js +40 -40
  68. package/dist/x-search-field.js +14 -14
  69. package/dist/x-select.js +9 -9
  70. package/dist/x-sidebar.js +16 -16
  71. package/dist/x-skeleton-group.js +13 -13
  72. package/dist/x-skeleton.js +1 -1
  73. package/dist/x-slider.js +16 -16
  74. package/dist/x-soft-body.js +20 -20
  75. package/dist/x-spacer.js +5 -5
  76. package/dist/x-spinner.js +5 -5
  77. package/dist/x-splash.js +13 -13
  78. package/dist/x-stat.js +11 -11
  79. package/dist/x-stepper.js +15 -15
  80. package/dist/x-switch.js +10 -10
  81. package/dist/x-tab.js +7 -7
  82. package/dist/x-table-cell.js +20 -20
  83. package/dist/x-table-row.js +10 -10
  84. package/dist/x-table.js +14 -14
  85. package/dist/x-tabs.js +11 -11
  86. package/dist/x-text-area.js +17 -17
  87. package/dist/x-theme.js +25 -25
  88. package/dist/x-timeline-item.js +20 -21
  89. package/dist/x-timeline.js +9 -9
  90. package/dist/x-toast.js +22 -22
  91. package/dist/x-toaster.js +8 -8
  92. package/dist/x-tooltip.js +12 -12
  93. package/dist/x-typography.js +8 -8
  94. package/dist/x-welcome-tour.js +66 -0
  95. package/package.json +10 -2
@@ -1,43 +1,43 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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)?
2
+ var SV=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},TV=function(a){return a<10?"0"+$APP.T.g(a):""+$APP.T.g(a)},UV=function(a){return $APP.n(a)?""+$APP.T.g(a.getUTCFullYear())+"-"+$APP.T.g(TV(a.getUTCMonth()+1))+"-"+$APP.T.g(TV(a.getUTCDate())):null},VV=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},WV=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},XV=function(a,b){return $APP.n(a)?new Date(a.getTime()+b*864E5):null},YV=function(a){return $APP.n(a)?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)):null},ZV=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.sh.i(d,b)))}return null},$V=function(a,b,c){a=$APP.n($APP.n(b)?$APP.n(a)?
4
+ WV(a,b)<0:a:b)?b:a;return $APP.n($APP.n(c)?$APP.n(a)?WV(a,c)>0:a:c)?c:a},aW=function(a,b,c){if($APP.n($APP.n(a)?$APP.n(b)?c:b:a)){var d=WV(b,c)<0?c:b;return!(WV(a,WV(b,c)<0?b:c)<0)&&!(WV(a,d)>0)}return null},dW=function(a,b){var c=$APP.M(b);b=$APP.D(c,bW);c=$APP.D(c,$APP.cn);return $APP.n(a)?$APP.B.i(b,cW)?(new Intl.DateTimeFormat($APP.n(c)?c:"default",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})).format(a):UV(a):null},gW=function(a){a=SV(a);a=$APP.n(a)?VV(a):null;return new $APP.R(null,
5
+ 2,[eW,a!=null,fW,a],null)},vW=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.Li),d=$APP.D(b,$APP.cl),e=$APP.D(b,$APP.jk);a=$APP.D(b,bW);var g=$APP.D(b,$APP.cn),h=$APP.D(b,hW),l=$APP.D(b,$APP.Yi),m=$APP.D(b,$APP.wj),p=$APP.D(b,$APP.km),q=$APP.D(b,$APP.Vk),v=$APP.D(b,iW);b=$APP.B.i(m,"range")?jW:kW;a=$APP.B.i(a,"localized")?cW:lW;g=SV(g);m=function(){var A=SV(d);return $APP.n(A)?A:" - "}();e=VV(e);q=VV(q);v=$APP.F(v);h=$APP.F(h);if($APP.B.i(b,kW))return b=VV(l),$APP.zf([bW,mW,$APP.cn,nW,$APP.wj,oW,iW,
6
+ $APP.jl,$APP.cl,pW,qW],[a,b,g,h,kW,q,v,b!=null,m,e,function(){var A=SV(l);return $APP.n(A)?A:""}()]);var x=VV(p),y=VV(c);b=x!=null&&y!=null;return $APP.zf([rW,bW,sW,$APP.cn,nW,$APP.wj,oW,tW,uW,iW,$APP.jl,$APP.cl,pW],[function(){var A=SV(c);return $APP.n(A)?A:""}(),a,x,g,h,jW,q,function(){var A=SV(p);return $APP.n(A)?A:""}(),y,v,b,m,e])},xW=function(a){if($APP.n(a)){var b=YV(a),c=XV(b,-($APP.n(b)?b.getUTCDay():0));return $APP.ge(function(d){d=XV(c,d);var e=$APP.B.i(d.getUTCMonth(),a.getUTCMonth());
7
+ return new $APP.R(null,2,[fW,d,wW,e],null)},$APP.dg(0,42))}return null},yW=function(a){return document.createElement(a)},zW=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.F(c)});a.dispatchEvent(b);return b},AW=function(a){var b=a.getAttribute("mode");b=vW($APP.zf([$APP.jk,bW,$APP.cn,hW,$APP.Yi,$APP.wj,$APP.km,$APP.Vk,iW,$APP.Li,$APP.cl],[a.getAttribute("min"),a.getAttribute("format"),a.getAttribute("locale"),$APP.Kg(a.getAttribute("range-allow-same-day")),a.getAttribute("value"),
8
+ b,a.getAttribute("start"),a.getAttribute("max"),$APP.Kg(a.getAttribute("auto-swap")),a.getAttribute("end"),a.getAttribute("separator")]));var c=new $APP.R(null,2,[bW,bW.g(b),$APP.cn,$APP.cn.g(b)],null);var d=$APP.M(c);var e=$APP.D(d,bW);d=$APP.D(d,$APP.cn);e=new $APP.R(null,2,[bW,e,$APP.cn,d],null);if($APP.B.i($APP.wj.g(b),kW))e=$APP.n(mW.g(b))?dW(mW.g(b),e):"";else{d=$APP.cl.g(b);var g=sW.g(b);g=$APP.n(g)?uW.g(b):g;e=$APP.n(g)?""+$APP.T.g(dW(sW.g(b),e))+$APP.T.g(d)+$APP.T.g(dW(uW.g(b),e)):$APP.n(sW.g(b))?
9
+ dW(sW.g(b),e):""}d=$APP.k(a,"__xDatePickerState");d=$APP.n(d)?$APP.k(d,"month"):null;g=mW.g(b);$APP.n(g)||(g=sW.g(b),g=$APP.n(g)?g:new Date(Date.now()));d=$APP.n(d)?d:YV(g);a.__xDatePickerState={canon:b,cfg:c,disp:e,month:d}},BW=function(a,b){var c=pW.g(b);c=$APP.n(c)?WV(a,pW.g(b))<0:c;if($APP.n(c))return c;c=oW.g(b);return $APP.n(c)?WV(a,oW.g(b))>0:c},EW=function(a,b){if($APP.B.i($APP.wj.g(b),kW))return new $APP.R(null,3,[$APP.cj,function(){var l=mW.g(b);return $APP.n(l)?$APP.B.i(0,WV(a,mW.g(b))):
10
+ l}(),CW,!1,DW,!1],null);var c=sW.g(b),d=uW.g(b),e=function(){var l=$APP.n(c)?$APP.B.i(0,WV(a,c)):c;return $APP.n(l)?l:$APP.n(d)?$APP.B.i(0,WV(a,d)):d}(),g=$APP.n(c)?$APP.n(d)?aW(a,c,d):d:c,h=function(){var l=$APP.n(c)?$APP.B.i(0,WV(a,c)):c;return $APP.n(l)?l:$APP.n(d)?$APP.B.i(0,WV(a,d)):d}();return new $APP.R(null,3,[$APP.cj,e,CW,g,DW,h],null)},FW=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},GW=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.cn.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=yW("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=xW($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,fW);e=$APP.D(e,wW);var p=yW("button"),q=UV(m),v=m.getUTCDate(),x=BW(m,b);m=EW(m,b);var y=$APP.M(m);m=$APP.D(y,$APP.cj);var A=$APP.D(y,CW);y=$APP.D(y,DW);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,fW),e=$APP.D(e,wW),h=yW("button"),g=UV(m),l=m.getUTCDate(),p=BW(m,b),m=EW(m,b),v=$APP.M(m),m=$APP.D(v,
15
+ $APP.cj),q=$APP.D(v,CW),v=$APP.D(v,DW),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},HW=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},IW=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));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)?
19
+ c.setAttribute("aria-describedby",l));HW(a);return GW(a)}return null},JW=function(a,b){$APP.n(b)?a.setAttribute("value",UV(b)):a.removeAttribute("value")},KW=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.wj.g(d):null,g=$APP.B.i(e,jW)?"range":"single",h=$APP.B.i(e,kW)?{value:UV(b),mode:g,reason:c}:{date:UV(b),mode:g,reason:c};h=zW(a,"x-date-picker-change-request",!0,h);if($APP.n(h.defaultPrevented))return null;
20
+ if($APP.B.i(e,kW))return d=UV(b),JW(a,b),AW(a),IW(a),zW(a,"x-date-picker-change",!1,{value:d,mode:g,reason:c}),$APP.n(a.hasAttribute("close-on-select"))?(a.removeAttribute("open"),IW(a)):null;e=function(){var y=$APP.k(a,"__xDatePickerRangeStep");return $APP.n(y)?y:0}();h=sW.g(d);if($APP.B.i(e,0))a.setAttribute("start",UV(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;else if($APP.B.i(e,1)){var l=nW.g(d),m=WV(b,h);if($APP.n(function(){var y=m>0;return y?y:$APP.n(l)?m===0:l}())){var p=$APP.n(iW.g(d))?
21
+ WV(h,b)<0?h:b:h,q=$APP.n(iW.g(d))?WV(h,b)>0?h:b:b;a.setAttribute("start",UV(p));a.setAttribute("end",UV(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",UV(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1}else a.setAttribute("start",UV(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;AW(a);IW(a);b=$APP.k(a,"__xDatePickerState");b=$APP.n(b)?$APP.k(b,"canon"):
22
+ null;var v=$APP.n(sW.g(b))?UV(sW.g(b)):null,x=$APP.n(uW.g(b))?UV(uW.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 zW(a,"x-date-picker-change",!1,b)},LW=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.wj.g(e);c=$APP.B.i(g,jW)?"range":"single";zW(a,"x-date-picker-input",!1,{value:d,mode:c});if($APP.B.i(g,
23
+ kW)){if(d=gW(d),e=$APP.M(d),d=$APP.D(e,eW),e=$APP.D(e,fW),$APP.n(d)){g=UV(e);d=zW(a,"x-date-picker-change-request",!0,{value:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;JW(a,e);AW(a);IW(a);return zW(a,"x-date-picker-change",!1,{value:g,mode:c,reason:b})}}else if(e=new $APP.R(null,1,[$APP.cl,$APP.cl.g(e)],null),e=$APP.M(e),e=$APP.D(e,$APP.cl),e=typeof e==="string"&&e.length>0?e:" - ",d=SV(d),d==null?d=new $APP.R(null,3,[eW,!1,$APP.km,null,$APP.Li,null],null):(g=d.indexOf(e),g<0?(d=
24
+ gW(d),e=$APP.M(d),d=$APP.D(e,eW),e=$APP.D(e,fW),d=new $APP.R(null,3,[eW,d,$APP.km,e,$APP.Li,null],null)):(e=d.substring(g+e.length).trim(),d=VV(d.substring(0,g).trim()),e=VV(e),d=new $APP.R(null,3,[eW,d!=null&&e!=null,$APP.km,d,$APP.Li,e],null))),g=$APP.M(d),d=$APP.D(g,eW),e=$APP.D(g,$APP.km),g=$APP.D(g,$APP.Li),$APP.n(d)){e=UV(e);g=UV(g);d=zW(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;AW(a);IW(a);return zW(a,"x-date-picker-change",!1,{start:e,end:g,mode:c,reason:b})}return null},MW=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.B.i(b,$APP.Tj)?new Date(Date.UTC(e,d+1,1)):new Date(Date.UTC(e,d-1,1));c.month=b;return GW(a)}return null},NW=function(a){return $APP.n(a.hasAttribute("open"))?a.removeAttribute("open"):null},OW=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;
26
+ b=b.currentTarget.getAttribute("data-nav");return $APP.B.i(b,"prev")?MW(a,$APP.Nj):MW(a,$APP.Tj)},PW=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=b.key,d=$APP.k(a,"__xDatePickerGridFocus"),e=$APP.n(d)?VV(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 XV(e,-1);case "ArrowRight":return XV(e,1);case "ArrowUp":return XV(e,-7);case "ArrowDown":return XV(e,
27
+ 7);case "PageUp":return ZV(e,-1);case "PageDown":return ZV(e,1);case "Home":return $APP.n(e)?XV(e,-($APP.n(e)?e.getUTCDay():0)):null;case "End":return $APP.n(e)?XV(e,6-($APP.n(e)?e.getUTCDay():0)):null;default:return null}}():null;return l!=null?(b.preventDefault(),b=$V(l,pW.g(g),oW.g(g)),g=UV(b),$APP.n($APP.n(h)?$APP.N(b.getUTCMonth(),h.getUTCMonth()):h)&&($APP.ja(d,"month",YV(b)),GW(a)),FW(a,g)):$APP.n(function(){var m=$APP.B.i(c,"Enter")||$APP.B.i(c," ");return m?$APP.n(e)?$APP.r(a.hasAttribute("readonly")):
28
+ e:m}())?(b.preventDefault(),$APP.n(BW(e,g))?null:KW(a,e,"keyboard")):$APP.B.i(c,"Escape")?(b.preventDefault(),NW(a),d=$APP.k(a,"__xDatePickerRefs"),d=$APP.n(d)?$APP.k(d,"input"):null,$APP.n(d)?d.focus():null):null},QW=function(a){function b(G){return $APP.n(a.hasAttribute("open"))?$APP.n(G.composedPath().some(function(J){return J===a}))?null:NW(a):null}function c(G){return G.preventDefault()}function d(G){return PW(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=VV(G),G=$APP.n(G)?KW(a,G,"click"):null):G=null);return G}function g(G){return OW(a,G)}function h(G){return OW(a,G)}function l(){if($APP.n(a.hasAttribute("disabled")))var G=null;else if($APP.n(a.hasAttribute("open")))G=NW(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=mW.g(G);$APP.n(J)?G=J:(G=sW.g(G),G=$APP.n(G)?G:new Date(Date.now()));G=UV(G);G=FW(a,G)}return G}function m(){a.__xDatePickerFocused=!1;$APP.n(a.hasAttribute("disabled"))||LW(a,"blur");return HW(a)}function p(){a.__xDatePickerFocused=!0}function q(G){if($APP.n(a.hasAttribute("disabled")))G=null;else{var J=G.key;$APP.B.i(J,"Enter")?(G.preventDefault(),G=LW(a,"keyboard")):G=$APP.B.i(J,"Escape")?NW(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.B.i($APP.wj.g($APP.n(J)?$APP.k(J,"canon"):null),jW)?"range":"single";a.__xDatePickerDisplay=$APP.n(G)?G.value:null;return zW(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"),C=$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);C.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})},RW=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},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;}}";
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},SW=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)}})},TW=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)}})},UW=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 LW(this,"programmatic")};a.clear=function(){var b=$APP.k(this,"__xDatePickerState");$APP.B.i($APP.wj.g($APP.n(b)?$APP.k(b,"canon"):null),kW)?this.removeAttribute("value"):
36
+ (this.removeAttribute("start"),this.removeAttribute("end"));AW(this);return IW(this)}},WW=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=VW;b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xDatePickerRefs"))){var c=this.attachShadow({mode:"open"}),d=yW("style"),e=yW("div"),g=yW("input"),h=yW("button"),l=yW("div"),m=yW("div"),p=yW("button"),q=yW("div"),v=yW("button"),x=yW("div"),y=yW("div"),A=yW("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}}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;
40
+ "nav-next":v,"month-label":q,input:g,btn:h,sr:A,"nav-prev":p}}RW(this);QW(this);AW(this);return IW(this)};b.disconnectedCallback=function(){return RW(this)};b.attributeChangedCallback=function(){AW(this);return IW(this)};SW(b,"mode","mode");SW(b,"value","value");SW(b,"start","start");SW(b,"end","end");TW(b,"open","open");TW(b,"disabled","disabled");TW(b,"readOnly","readonly");TW(b,"required","required");UW(b);return a},XW=function(){return $APP.n(customElements.get("x-date-picker"))?null:customElements.define("x-date-picker",
41
+ WW())},sW=new $APP.K(null,"start-d","start-d",-1546785820),fW=new $APP.K(null,"date","date",-1463434462),iW=new $APP.K(null,"auto-swap?","auto-swap?",-1675454411),DW=new $APP.K(null,"edge?","edge?",203916303),oW=new $APP.K(null,"max-d","max-d",-814680979),kW=new $APP.K(null,"single","single",1551466437),tW=new $APP.K(null,"start-str","start-str",1077409677),jW=new $APP.K(null,"range","range",1639692286),lW=new $APP.K(null,"iso","iso",-1366207543),wW=new $APP.K(null,"in-month?","in-month?",-1630426251),
42
+ pW=new $APP.K(null,"min-d","min-d",-1118792932),nW=new $APP.K(null,"allow-same-day?","allow-same-day?",-1971558934),eW=new $APP.K(null,"ok?","ok?",447310304),rW=new $APP.K(null,"end-str","end-str",-558112319),cW=new $APP.K(null,"localized","localized",1722109655),qW=new $APP.K(null,"value-str","value-str",989198845),bW=new $APP.K(null,"format","format",-1306924766),mW=new $APP.K(null,"value-d","value-d",-1768534876),CW=new $APP.K(null,"in-range?","in-range?",-291779262),uW=new $APP.K(null,"end-d",
43
+ "end-d",-1316370898),hW=new $APP.K(null,"range-allow-same-day?","range-allow-same-day?",-714516856);var VW="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",XW);export const init=XW;
package/dist/x-divider.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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"),
2
+ var lV=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.I(a,c)?c:b},mV=function(a){for(;;){var b=a.firstChild;if($APP.n(b))a.removeChild(b);else break}},xV=function(a){var b=$APP.zf([$APP.sl,$APP.pi,$APP.Xi,nV,oV,$APP.en,pV,$APP.Wl,$APP.Uj,qV],[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.Uj);var d=$APP.D(c,qV),e=$APP.D(c,$APP.pi);var g=$APP.D(c,$APP.sl);var h=$APP.D(c,$APP.Xi),l=$APP.D(c,nV),m=$APP.D(c,oV),p=$APP.D(c,$APP.en),q=$APP.D(c,pV);c=$APP.D(c,$APP.Wl);g=$APP.zf([$APP.di,$APP.vj,rV,sV,$APP.Oj,$APP.Vg,$APP.pl,$APP.U,tV,$APP.Ol],[d,lV(uV,"center",h),m,q,p,lV(vV,"solid",g),lV(wV,"horizontal",c),e,l,b]);c=$APP.M(g);d=$APP.D(c,$APP.Ol);h=$APP.D(c,$APP.vj);l=$APP.D(c,rV);m=$APP.D(c,sV);p=$APP.D(c,$APP.Oj);q=$APP.D(c,$APP.Vg);
4
+ e=$APP.D(c,$APP.pl);b=$APP.D(c,$APP.U);var v=$APP.D(c,tV);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.di.g(g);$APP.I(new $APP.S(null,
5
+ new $APP.R(null,2,["none",null,"presentation",null],null),null),g)?a.setAttribute("role","presentation"):a.setAttribute("role","separator");$APP.B.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.B.i($APP.k(d,"mode"),"no-label")&&(e=$APP.k(d,"container"),mV(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"),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=
7
+ b)):(a=$APP.k(a,"__xDividerRefs"),$APP.B.i($APP.k(a,"mode"),"label")&&(b=$APP.k(a,"container"),mV(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},yV=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
+ zV=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})},AV=function(a){zV(a,"orientation","horizontal");zV(a,"variant","solid");zV(a,"align","center");yV(a,"label");yV(a,"thickness");yV(a,"color");yV(a,"inset");yV(a,"length")},CV=function(){var a=class extends HTMLElement{};a.observedAttributes=BV;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 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;
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 xV(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"))?xV(this):null:null};AV(a.prototype);return a},DV=function(){$APP.n(customElements.get("x-divider"))||customElements.define("x-divider",
11
+ CV());return null},pV=new $APP.K(null,"inset-raw","inset-raw",89351124),sV=new $APP.K(null,"inset","inset",-396367740),qV=new $APP.K(null,"role-raw","role-raw",777951354),tV=new $APP.K(null,"length","length",588987862),nV=new $APP.K(null,"length-raw","length-raw",-1832244116),rV=new $APP.K(null,"thickness","thickness",-940175454),oV=new $APP.K(null,"thickness-raw","thickness-raw",1843812655);var BV="orientation variant thickness color inset length label align role aria-label".split(" "),wV=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),vV=new $APP.S(null,new $APP.R(null,3,["dashed",null,"dotted",null,"solid",null],null),null),uV=new $APP.S(null,new $APP.R(null,3,["center",null,"start",null,"end",null],null),null);$APP.ha("baredom.exports.x_divider.init",DV);export const init=DV;
package/dist/x-drawer.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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);}}";
2
+ var KJ=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")},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;
4
+ footer:p};return $APP.k(a,"__xDrawerRefs")},MJ=function(a){a=new $APP.R(null,3,[$APP.Gi,a.hasAttribute("open"),$APP.gn,a.getAttribute("placement"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Gi);a=$APP.D(b,$APP.gn);b=$APP.D(b,$APP.pi);c=$APP.F(c);a=typeof a==="string"&&$APP.I(LJ,a)?a:"right";b=typeof b==="string"&&$APP.N(b,"")?b:"Drawer";return new $APP.R(null,3,[$APP.Mm,c,$APP.Qj,a,$APP.U,b],null)},NJ=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,
5
+ composed:!0,cancelable:!1}))},OJ=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'])"))))},PJ=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()},QJ=function(a,b){NJ(a,"x-drawer-dismiss",{reason:b});a.removeAttribute("open");return null},RJ=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},SJ=function(a){a.removeAttribute("open");return null},TJ=function(a){var b=KJ(a);b=$APP.k(b,"panel");var c=MJ(a),d=
7
+ $APP.Mm.g(c),e=$APP.k(a,"__xDrawerPrevOpen");a.setAttribute("data-open",$APP.n(d)?"true":"false");a.setAttribute("data-placement",$APP.Qj.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,NJ(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=OJ(a);a.__xDrawerRestore=document.activeElement;var l=$APP.n(h)?
8
+ $APP.Hh(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):PJ(a))},UJ=function(a){function b(g){var h=g.key;if($APP.B.i(h,"Escape"))g.preventDefault(),QJ(a,"escape");else if($APP.B.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.B.i(l,m):p)?(g.preventDefault(),h.focus()):$APP.r(p)&&$APP.B.i(l,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return QJ(a,"backdrop")}var d=KJ(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})},VJ=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},WJ=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?RJ(this):SJ(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 RJ(this)},enumerable:!0,configurable:!0,
12
+ writable:!0});Object.defineProperty(a,"hide",{value:function(){return SJ(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?SJ(this):RJ(this);return null},enumerable:!0,configurable:!0,writable:!0})},YJ=function(){if(!$APP.n(customElements.get("x-drawer"))){var a=class extends HTMLElement{};a.observedAttributes=XJ;a.prototype.connectedCallback=function(){KJ(this);VJ(this);UJ(this);TJ(this);return null};a.prototype.disconnectedCallback=
13
+ function(){VJ(this);PJ(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&TJ(this);return null};WJ(a.prototype);customElements.define("x-drawer",a)}return null},ZJ=function(){return YJ()};var LJ=new $APP.S(null,new $APP.R(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),XJ=["open","placement","label"];$APP.Pd(["x-drawer-toggle",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,1,[$APP.gm,$APP.Zj],null)],null),"x-drawer-dismiss",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,1,[$APP.Qi,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_drawer.init",ZJ);export const init=ZJ;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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");
2
+ var lr=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},nr=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(mr,a)?a:"bottom-start";d.textContent=h;c.setAttribute("aria-expanded",$APP.n(e)?"true":"false");lr(c,"disabled",g);return b.setAttribute("data-placement",
3
+ a)}return null},or=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},pr=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},qr=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},rr=function(a){return{triggerClick:function(){return or(a,"pointer")},triggerKeydown:function(b){var c=
5
+ b.key;return $APP.B.i(c," ")||$APP.B.i(c,"Enter")?(b.preventDefault(),or(a,"keyboard")):null},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.r(a.contains(b))?or(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.vc(b.composedPath()),b=$APP.Td(function(c){return c===a},b),$APP.n(b)?null:or(a,"outside-click")):null},docKeydown:function(b){b=$APP.B.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?or(a,
6
+ "escape"):null}}},sr=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")))}},tr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return lr(this,c,$APP.F(d))}})},ur=
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}})},wr=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return vr}});tr(b,"open","open");tr(b,"disabled","disabled");ur(b,"label","label");ur(b,"placement","placement");b.show=function(){return $APP.n(this.hasAttribute("open"))?
8
+ null:or(this,"programmatic")};b.hide=function(){return $APP.n(this.hasAttribute("open"))?or(this,"programmatic"):null};b.toggle=function(){return or(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}}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;
11
+ l.appendChild(m);c.appendChild(d);c.appendChild(e);c.appendChild(l);this.__xDropdownRefs={trigger:e,label:g,chevron:h,panel:l}}sr(this);qr(this);this.__xDropdownHandlers=rr(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
+ pr(this);return nr(this)};b.disconnectedCallback=function(){sr(this);return qr(this)};b.attributeChangedCallback=function(c){$APP.n($APP.k(this,"__xDropdownRefs"))?(nr(this),c=$APP.B.i(c,"open")?$APP.n(this.hasAttribute("open"))?pr(this):qr(this):null):c=null;return c};return a},xr=function(){return $APP.n(customElements.get("x-dropdown"))?null:customElements.define("x-dropdown",wr())};var mr=new $APP.S(null,new $APP.R(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),vr=["open","disabled","label","placement"];$APP.Pd(["x-dropdown-toggle",new $APP.R(null,2,[$APP.jm,!0,$APP.V,new $APP.R(null,2,[$APP.gm,$APP.Zj,$APP.ql,$APP.Y],null)],null),"x-dropdown-change",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,1,[$APP.gm,$APP.Zj],null)],null)]);$APP.ha("baredom.exports.x_dropdown.init",xr);export const init=xr;
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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);}";
2
+ var sH=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},wH=function(a){var b=$APP.k(a,"__xFieldsetRefs");if($APP.n(b)){var c=$APP.k(b,"root-el"),d=$APP.k(b,"legend-el");b=$APP.k(b,"content-el");var e=a.getAttribute("legend");e=new $APP.R(null,4,[tH,e,$APP.Ml,a.hasAttribute("disabled"),$APP.Uj,a.getAttribute("aria-label"),$APP.Cj,a.getAttribute("aria-describedby")],null);var g=$APP.M(e),h=$APP.D(g,tH);var l=$APP.D(g,$APP.Ml);e=$APP.D(g,$APP.Uj);g=$APP.D(g,$APP.Cj);h=$APP.n(h)?
3
+ h:"";l=$APP.F(l);l=new $APP.R(null,5,[uH,h,vH,$APP.N(h,""),$APP.X,l,$APP.Ol,e,$APP.Ym,g],null);h=uH.g(l);g=vH.g(l);e=$APP.X.g(l);d.textContent=h;$APP.n(g)?d.removeAttribute("hidden"):d.setAttribute("hidden","");d=$APP.Ol.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.Ym.g(l);$APP.n(d)?c.setAttribute("aria-describedby",d):
4
+ c.removeAttribute("aria-describedby");sH(a,"data-disabled",e);return sH(b,"inert",e)}return null},xH=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return sH(this,"disabled",$APP.F(b))}})},yH=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}})},AH=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=zH;yH(b);xH(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 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;
7
+ document.head.appendChild(d));this.__xFieldsetRefs={root:c,"root-el":e,"legend-el":g,"content-el":h}}return wH(this)};b.disconnectedCallback=function(){return null};b.attributeChangedCallback=function(){return wH(this)};return a},BH=function(){return $APP.n(customElements.get("x-fieldset"))?null:customElements.define("x-fieldset",AH())},vH=new $APP.K(null,"legend-visible?","legend-visible?",-281107501),tH=new $APP.K(null,"legend-raw","legend-raw",907427195),uH=new $APP.K(null,"legend","legend",-1027192245);var zH=["legend","disabled","aria-label","aria-describedby"];$APP.ha("baredom.exports.x_fieldset.init",BH);export const init=BH;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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;}}";
2
+ var Jz=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Nz=function(a){a=new $APP.R(null,4,[Kz,a.getAttribute("href"),Lz,a.getAttribute("filename"),$APP.Ml,a.hasAttribute("disabled"),$APP.Uj,a.getAttribute("aria-label")],null);var b=$APP.M(a);a=$APP.D(b,Kz);var c=$APP.D(b,Lz),d=$APP.D(b,$APP.Ml);b=$APP.D(b,$APP.Uj);return new $APP.R(null,4,[$APP.Zm,$APP.Og(a),Mz,$APP.n(c)?c:"",$APP.X,$APP.F(d),$APP.Ol,b],null)},Oz=function(a){var b=$APP.k(a,"__xFileDownloadRefs");if($APP.n(b)){b=
3
+ $APP.k(b,"anchor-el");var c=Nz(a),d=$APP.Zm.g(c),e=Mz.g(c),g=$APP.X.g(c);c=$APP.Ol.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 Jz(a,"data-disabled",g)}return null},Pz=function(a){return function(b){if($APP.n(a.hasAttribute("disabled")))return b.preventDefault();
4
+ var c=Nz(a);c={href:$APP.Zm.g(c),filename:Mz.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}},Qz=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},Rz=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}})},Sz=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return Jz(this,"disabled",$APP.F(b))}})},Uz=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",
6
+ {get:function(){return Tz}});Rz(b,"href","href");Rz(b,"filename","filename");Sz(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}}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;
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}}Qz(this);c=Pz(this);$APP.k($APP.k(this,"__xFileDownloadRefs"),"anchor-el").addEventListener("click",c);this.__xFileDownloadHandlers={click:c};return Oz(this)};b.disconnectedCallback=function(){return Qz(this)};b.attributeChangedCallback=function(){return Oz(this)};return a},Vz=function(){return $APP.n(customElements.get("x-file-download"))?null:customElements.define("x-file-download",
9
+ Uz())},Lz=new $APP.K(null,"filename-raw","filename-raw",-706184256),Kz=new $APP.K(null,"href-raw","href-raw",-1680949453),Mz=new $APP.K(null,"filename","filename",-1428840783);var Tz=["href","filename","disabled","aria-label"];$APP.ha("baredom.exports.x_file_download.init",Vz);export const init=Vz;
@@ -0,0 +1,26 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var Gv=function(a){return a!=null?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:null):null},Hv=function(a){var b=a.lastIndexOf(".");return b>0?a.substring(b).toLowerCase():null},Wv=function(a,b){if(b==null||$APP.B.i(b,""))return!0;var c=function(){var e=a.type;return $APP.n(e)?e:""}().toLowerCase(),d=Hv(a.name);b=$APP.ae.i($APP.Jg,$APP.Hg(b,/,/));return $APP.F($APP.Td(function(e){e=e.toLowerCase();return $APP.n(e.startsWith("."))?$APP.B.i(e,d):$APP.n(e.endsWith("/*"))?(e=e.substring(0,e.indexOf("/")),
3
+ c.startsWith(""+$APP.T.g(e)+"/")):$APP.B.i(e,c)},b))},$v=function(a,b,c,d,e){a=$APP.t(a);for(var g=$APP.fe,h=$APP.fe;;){if($APP.r(a))return new $APP.R(null,2,[Xv,g,Yv,h],null);var l=$APP.u(a);var m=l;var p=b,q=c;m=$APP.Lg(p)&&!Wv(m,p)?new $APP.R(null,2,[$APP.Th,!1,$APP.Qi,"File type not accepted"],null):q!=null&&m.size>q?new $APP.R(null,2,[$APP.Th,!1,$APP.Qi,"File too large"],null):new $APP.R(null,2,[$APP.Th,!0,$APP.Qi,null],null);$APP.r($APP.Th.g(m))?(a=$APP.w(a),h=$APP.ld.i(h,new $APP.R(null,2,
4
+ [Zv,l,$APP.Qi,$APP.Qi.g(m)],null))):d!=null&&e>=d?(a=$APP.w(a),h=$APP.ld.i(h,new $APP.R(null,2,[Zv,l,$APP.Qi,"Maximum files reached"],null))):(a=$APP.w(a),g=$APP.ld.i(g,l),e+=1)}},aw=function(a){return document.createElement(a)},jw=function(a){a=new $APP.R(null,7,[bw,a.getAttribute("accept"),cw,a.hasAttribute("multiple"),dw,a.getAttribute("max-size"),ew,a.getAttribute("max-files"),$APP.Ml,a.hasAttribute("disabled"),$APP.Nh,a.hasAttribute("required"),$APP.yl,a.getAttribute("name")],null);var b=$APP.M(a);
5
+ a=$APP.D(b,bw);var c=$APP.D(b,cw),d=$APP.D(b,dw),e=$APP.D(b,ew),g=$APP.D(b,$APP.Ml),h=$APP.D(b,$APP.Nh);b=$APP.D(b,$APP.yl);return new $APP.R(null,7,[fw,$APP.n(a)?a:"",gw,$APP.F(c),hw,Gv(d),iw,Gv(e),$APP.X,$APP.F(g),$APP.mi,$APP.F(h),$APP.Aj,$APP.n(b)?b:""],null)},kw=function(a){var b=$APP.k(a,"__xFileUploadRefs");if($APP.n(b)){a=jw(a);var c=$APP.M(a);a=$APP.D(c,fw);var d=$APP.D(c,gw);c=$APP.D(c,$APP.X);var e=$APP.k(b,"fileInput");b=$APP.k(b,"dropZone");$APP.B.i(a,"")?e.removeAttribute("accept"):
6
+ e.setAttribute("accept",a);$APP.n(d)?e.setAttribute("multiple",""):e.removeAttribute("multiple");b.setAttribute("tabindex",$APP.n(c)?"-1":"0");a=""+$APP.T.g(c);return b.setAttribute("aria-disabled",a)}return null},lw=function(a){a=$APP.t($APP.uc(a.querySelectorAll("[part\x3dthumbnail]")));for(var b=null,c=0,d=0;;)if(d<c){var e=b.F(null,d);URL.revokeObjectURL(e.src);d+=1}else if(a=$APP.t(a))b=a,$APP.Nc(b)?(a=$APP.yb(b),c=$APP.zb(b),b=a,e=$APP.z(a),a=c,c=e):(e=$APP.u(b),URL.revokeObjectURL(e.src),a=
7
+ $APP.w(b),b=null,c=0),d=0;else return null},mw=function(a){var b=$APP.k(a,"__xFileUploadRefs");if($APP.n(b)){var c=$APP.k(b,"fileList");b=$APP.k(b,"liveRegion");a=$APP.k(a,"__xFileUploadFiles");var d=a.length;lw(c);c.textContent="";for(var e=0;;)if(e<d){var g=a[e],h=aw("div"),l=aw("span"),m=aw("span"),p=aw("button"),q=g.name;h.setAttribute("part","file-item");h.setAttribute("role","listitem");var v=g.type,x=typeof v==="string";$APP.n(x?v.startsWith("image/"):x)&&(v=aw("img"),v.setAttribute("part",
8
+ "thumbnail"),v.src=URL.createObjectURL(g),v.setAttribute("alt",q),h.appendChild(v));l.setAttribute("part","file-name");l.textContent=q;m.setAttribute("part","file-size");v=m;g=g.size;g=g<1024?""+$APP.T.g(g)+" B":g<1048576?""+$APP.T.g((g/1024).toFixed(1))+" KB":g<1073741824?""+$APP.T.g((g/1048576).toFixed(1))+" MB":""+$APP.T.g((g/1073741824).toFixed(1))+" GB";v.textContent=g;p.setAttribute("part","remove");p.setAttribute("type","button");g=p;q="Remove "+$APP.T.g(q);g.setAttribute("aria-label",q);q=
9
+ p;g=""+$APP.T.g(e);q.setAttribute("data-index",g);p.textContent="×";h.appendChild(l);h.appendChild(m);h.appendChild(p);c.appendChild(h);e+=1}else break;b.textContent=d===0?"":""+$APP.T.g(d)+" file"+$APP.T.g($APP.N(d,1)?"s":null)+" selected"}},nw=function(a){var b=$APP.k(a,"__xFileUploadInternals");if($APP.n(b)){var c=$APP.k(a,"__xFileUploadFiles");a=a.getAttribute("name");a=$APP.n(a)?a:"file";if(c.length===0)b.setFormValue(null);else{for(var d=new FormData,e=c.length,g=0;;)if(g<e)d.append(a,c[g]),
10
+ g+=1;else break;b.setFormValue(d)}}},ow=function(a){var b=$APP.k(a,"__xFileUploadInternals");if($APP.n(b)){var c=$APP.k(a,"__xFileUploadRefs");if($APP.n(c)){var d=a.hasAttribute("required");a=$APP.k(a,"__xFileUploadFiles");c=$APP.k(c,"dropZone");return $APP.n($APP.n(d)?a.length===0:d)?b.setValidity({valueMissing:!0},"Please select a file.",c):b.setValidity({},"")}}return null},pw=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},qw=function(a,
11
+ b){var c=jw(a);c=$APP.M(c);var d=$APP.D(c,fw),e=$APP.D(c,gw),g=$APP.D(c,hw),h=$APP.D(c,iw);c=$APP.k(a,"__xFileUploadFiles");b=$v($APP.uc(b),d,g,h,c.length);d=$APP.M(b);b=$APP.D(d,Xv);d=$APP.D(d,Yv);if($APP.n(e)){e=$APP.t(b);g=null;for(var l=h=0;;)if(l<h){var m=g.F(null,l);c.push(m);l+=1}else if(e=$APP.t(e))g=e,$APP.Nc(g)?(e=$APP.yb(g),l=$APP.zb(g),g=e,h=$APP.z(e),e=l):(e=$APP.u(g),c.push(e),e=$APP.w(g),g=null,h=0),l=0;else break}else c.length=0,$APP.t(b)&&c.push($APP.u(b));mw(a);nw(a);ow(a);return pw(a,
12
+ "x-file-upload-select",{files:$APP.zd(b),rejected:$APP.zd($APP.ae.i(function(p){var q=$APP.M(p);p=$APP.D(q,Zv);q=$APP.D(q,$APP.Qi);return{file:p,reason:q}},d))})},rw=function(a){return{zoneClick:function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=$APP.k(a,"__xFileUploadRefs");return $APP.n(b)?$APP.k(b,"fileInput").click():null},zoneKeydown:function(b){return($APP.B.i(b.key,"Enter")||$APP.B.i(b.key," "))&&$APP.r(a.hasAttribute("disabled"))?(b.preventDefault(),b=$APP.k(a,"__xFileUploadRefs"),
13
+ $APP.n(b)?$APP.k(b,"fileInput").click():null):null},fileChange:function(b){b=b.target;var c=b.files;c.length>0&&qw(a,c);return b.value=""},dragenter:function(b){b.preventDefault();if($APP.n(a.hasAttribute("disabled")))return null;b=$APP.k(a,"__xFileUploadDragCtr")+1;a.__xFileUploadDragCtr=b;return $APP.B.i(b,1)?a.setAttribute("data-drag-over",""):null},dragover:function(b){b.preventDefault();return b.dataTransfer.dropEffect="copy"},dragleave:function(){var b=$APP.k(a,"__xFileUploadDragCtr")-1;a.__xFileUploadDragCtr=
14
+ b;return b<=0?(a.__xFileUploadDragCtr=0,a.removeAttribute("data-drag-over")):null},drop:function(b){b.preventDefault();a.__xFileUploadDragCtr=0;a.removeAttribute("data-drag-over");if($APP.n(a.hasAttribute("disabled")))return null;b=b.dataTransfer.files;return b.length>0?qw(a,b):null},fileListClick:function(b){b=b.target;b=$APP.n(b.hasAttribute("data-index"))?b:b.closest("[data-index]");if($APP.n(b)){b=parseInt(b.getAttribute("data-index"),10);if($APP.n(isNaN(b)))b=null;else{var c=$APP.k(a,"__xFileUploadFiles"),
15
+ d=c[b];c.splice(b,1);mw(a);nw(a);ow(a);b=pw(a,"x-file-upload-remove",{file:d,remaining:c.slice()})}return b}return null}}},sw=function(a){var b=$APP.k(a,"__xFileUploadRefs");if($APP.n(b)&&(a=$APP.k(a,"__xFileUploadHandlers"),$APP.n(a))){var c=$APP.k(b,"dropZone"),d=$APP.k(b,"fileInput");b=$APP.k(b,"fileList");c.removeEventListener("click",$APP.k(a,"zoneClick"));c.removeEventListener("keydown",$APP.k(a,"zoneKeydown"));c.removeEventListener("dragenter",$APP.k(a,"dragenter"));c.removeEventListener("dragover",
16
+ $APP.k(a,"dragover"));c.removeEventListener("dragleave",$APP.k(a,"dragleave"));c.removeEventListener("drop",$APP.k(a,"drop"));d.removeEventListener("change",$APP.k(a,"fileChange"));b.removeEventListener("click",$APP.k(a,"fileListClick"))}},tw=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.Eg(this,c,$APP.F(d))}})},uw=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=
17
+ this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.N(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},vw=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return d!=null?(d=parseInt(d,10),$APP.n(isNaN(d))?null:d):null},set:function(d){return d!=null&&$APP.N(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},xw=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=
18
+ !0;Object.defineProperty(a,"observedAttributes",{get:function(){return ww}});uw(b,"accept","accept");uw(b,"name","name");tw(b,"multiple","multiple");tw(b,"disabled","disabled");tw(b,"required","required");vw(b,"maxSize","max-size");vw(b,"maxFiles","max-files");Object.defineProperty(b,"files",{configurable:!0,enumerable:!0,get:function(){var c=$APP.k(this,"__xFileUploadFiles");return($APP.n(c)?c:[]).slice()}});b.checkValidity=function(){var c=$APP.k(this,"__xFileUploadInternals");return $APP.n(c)?
19
+ c.checkValidity():null};b.reportValidity=function(){var c=$APP.k(this,"__xFileUploadInternals");return $APP.n(c)?c.reportValidity():null};b.formDisabledCallback=function(c){$APP.Eg(this,"disabled",c);return kw(this)};b.formResetCallback=function(){$APP.k(this,"__xFileUploadFiles").length=0;var c=$APP.k(this,"__xFileUploadRefs");$APP.n(c)&&lw($APP.k(c,"fileList"));mw(this);nw(this);return ow(this)};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFileUploadRefs"))){var c=this.attachShadow({mode:"open"}),
20
+ d=aw("style"),e=aw("div"),g=aw("input"),h=aw("div"),l=aw("slot"),m=aw("div"),p=aw("div"),q=aw("div");d.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-file-upload-bg:var(--x-color-surface,#ffffff);--x-file-upload-fg:var(--x-color-text,#0f172a);--x-file-upload-muted:var(--x-color-text-muted,#64748b);--x-file-upload-border:2px dashed var(--x-color-border,#cbd5e1);--x-file-upload-border-hover:2px dashed var(--x-color-primary,#3b82f6);--x-file-upload-drag-bg:var(--x-color-primary,rgba(59,130,246,0.05));--x-file-upload-radius:var(--x-radius-md,8px);--x-file-upload-padding:var(--x-space-lg,24px);--x-file-upload-font-size:var(--x-font-size-sm,0.9375rem);--x-file-upload-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-file-upload-disabled-opacity:var(--x-opacity-disabled,0.55);--x-file-upload-transition-duration:var(--x-transition-duration,150ms);--x-file-upload-item-bg:var(--x-color-surface,#f8fafc);--x-file-upload-item-border:1px solid var(--x-color-border,#e2e8f0);--x-file-upload-thumb-size:48px;--x-file-upload-remove-color:var(--x-color-text-muted,#64748b);--x-file-upload-remove-hover:var(--x-color-danger,#ef4444);}@media (prefers-color-scheme:dark){:host{--x-file-upload-bg:var(--x-color-surface,#1e293b);--x-file-upload-fg:var(--x-color-text,#e2e8f0);--x-file-upload-muted:var(--x-color-text-muted,#94a3b8);--x-file-upload-border:2px dashed var(--x-color-border,#334155);--x-file-upload-border-hover:2px dashed var(--x-color-primary,#60a5fa);--x-file-upload-drag-bg:rgba(96,165,250,0.08);--x-file-upload-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-file-upload-item-bg:var(--x-color-surface,#1e293b);--x-file-upload-item-border:1px solid var(--x-color-border,#334155);--x-file-upload-remove-color:var(--x-color-text-muted,#94a3b8);}}[part\x3ddrop-zone]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:120px;padding:var(--x-file-upload-padding);background:var(--x-file-upload-bg);border:var(--x-file-upload-border);border-radius:var(--x-file-upload-radius);cursor:pointer;text-align:center;color:var(--x-file-upload-muted);font-size:var(--x-file-upload-font-size);font-family:inherit;transition:border-color var(--x-file-upload-transition-duration) ease,background var(--x-file-upload-transition-duration) ease;}[part\x3ddrop-zone]:hover{border:var(--x-file-upload-border-hover);}[part\x3ddrop-zone]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-file-upload-focus-ring);}:host([data-drag-over]) [part\x3ddrop-zone]{border:var(--x-file-upload-border-hover);background:var(--x-file-upload-drag-bg);}:host([data-drag-over]) [part\x3dcontent]{visibility:hidden;}:host([data-drag-over]) [part\x3ddrag-overlay]{display:flex;}[part\x3ddrag-overlay]{display:none;position:absolute;inset:0;align-items:center;justify-content:center;border-radius:var(--x-file-upload-radius);font-weight:600;color:var(--x-color-primary,#3b82f6);pointer-events:none;}:host([disabled]){pointer-events:none;cursor:default;}:host([disabled]) [part\x3ddrop-zone]{opacity:var(--x-file-upload-disabled-opacity);}[part\x3dfile-list]{display:flex;flex-direction:column;gap:8px;margin-top:12px;}[part\x3dfile-list]:empty{display:none;}[part\x3dfile-item]{display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--x-file-upload-item-bg);border:var(--x-file-upload-item-border);border-radius:6px;font-size:var(--x-file-upload-font-size);font-family:inherit;color:var(--x-file-upload-fg);}[part\x3dthumbnail]{width:var(--x-file-upload-thumb-size);height:var(--x-file-upload-thumb-size);object-fit:cover;border-radius:4px;flex-shrink:0;}[part\x3dfile-name]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}[part\x3dfile-size]{color:var(--x-file-upload-muted);font-size:0.8125rem;flex-shrink:0;}[part\x3dremove]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;font-size:1rem;color:var(--x-file-upload-remove-color);cursor:pointer;border-radius:4px;flex-shrink:0;}[part\x3dremove]:hover{color:var(--x-file-upload-remove-hover);}[part\x3dremove]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-file-upload-focus-ring);}[part\x3dlive-region]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}input[type\x3dfile]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3ddrop-zone]{transition:none !important;}}@media (pointer:coarse){[part\x3ddrop-zone]{min-height:140px;}[part\x3dremove]{width:2.75rem;height:2.75rem;}}";
21
+ e.setAttribute("part","drop-zone");e.setAttribute("role","button");e.setAttribute("tabindex","0");g.setAttribute("type","file");g.setAttribute("aria-hidden","true");g.setAttribute("tabindex","-1");h.setAttribute("part","content");h.appendChild(l);m.setAttribute("part","drag-overlay");m.setAttribute("hidden","");m.textContent="Drop files here";p.setAttribute("part","file-list");p.setAttribute("role","list");q.setAttribute("part","live-region");q.setAttribute("aria-live","polite");q.setAttribute("aria-atomic",
22
+ "true");e.appendChild(g);e.appendChild(h);e.appendChild(m);c.appendChild(d);c.appendChild(e);c.appendChild(p);c.appendChild(q);this.__xFileUploadFiles=[];this.__xFileUploadDragCtr=0;this.__xFileUploadRefs={dropZone:e,fileInput:g,content:h,dragOverlay:m,fileList:p,liveRegion:q}}c=this.attachInternals;$APP.n($APP.n(c)?$APP.r($APP.k(this,"__xFileUploadInternals")):c)&&(this.__xFileUploadInternals=this.attachInternals());sw(this);this.__xFileUploadHandlers=rw(this);g=$APP.k(this,"__xFileUploadRefs");
23
+ $APP.n(g)&&(c=$APP.k(this,"__xFileUploadHandlers"),$APP.n(c)&&(d=$APP.k(g,"dropZone"),e=$APP.k(g,"fileInput"),g=$APP.k(g,"fileList"),d.addEventListener("click",$APP.k(c,"zoneClick")),d.addEventListener("keydown",$APP.k(c,"zoneKeydown")),d.addEventListener("dragenter",$APP.k(c,"dragenter")),d.addEventListener("dragover",$APP.k(c,"dragover")),d.addEventListener("dragleave",$APP.k(c,"dragleave")),d.addEventListener("drop",$APP.k(c,"drop")),e.addEventListener("change",$APP.k(c,"fileChange")),g.addEventListener("click",
24
+ $APP.k(c,"fileListClick"))));kw(this);return ow(this)};b.disconnectedCallback=function(){sw(this);var c=$APP.k(this,"__xFileUploadRefs");return $APP.n(c)?lw($APP.k(c,"fileList")):null};b.attributeChangedCallback=function(){return $APP.n($APP.k(this,"__xFileUploadRefs"))?kw(this):null};return a},yw=function(){return $APP.n(customElements.get("x-file-upload"))?null:customElements.define("x-file-upload",xw())},fw=new $APP.K(null,"accept","accept",1874130431),Yv=new $APP.K(null,"rejected","rejected",
25
+ 231052999),Xv=new $APP.K(null,"accepted","accepted",-1953464374),dw=new $APP.K(null,"max-size-raw","max-size-raw",1536077032),hw=new $APP.K(null,"max-size","max-size",-874966132),gw=new $APP.K(null,"multiple?","multiple?",-490002283),bw=new $APP.K(null,"accept-raw","accept-raw",1407413888),iw=new $APP.K(null,"max-files","max-files",534742526),cw=new $APP.K(null,"multiple-present?","multiple-present?",-1754894397),Zv=new $APP.K(null,"file","file",-1269645878),ew=new $APP.K(null,"max-files-raw","max-files-raw",
26
+ -244409320);var ww="accept multiple max-size max-files disabled required name".split(" ");$APP.Pd(["x-file-upload-select",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,2,[new $APP.K(null,"files","files",-472457450),$APP.Si,Yv,$APP.Si],null)],null),"x-file-upload-remove",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,2,[Zv,$APP.hl,new $APP.K(null,"remaining","remaining",-138926777),$APP.Si],null)],null)]);$APP.ha("baredom.exports.x_file_upload.init",yw);export const init=yw;