@vanelsas/baredom 4.0.0-alpha.0 → 4.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/barebuild-action.js +8 -8
  3. package/dist/barebuild-data.js +4 -4
  4. package/dist/barebuild-invalidate-on.js +4 -4
  5. package/dist/barebuild-route.js +3 -3
  6. package/dist/barebuild-router.js +12 -12
  7. package/dist/base.js +143 -141
  8. package/dist/integrity.json +110 -110
  9. package/dist/x-alert.js +15 -15
  10. package/dist/x-avatar-group.js +8 -8
  11. package/dist/x-avatar.js +13 -13
  12. package/dist/x-badge.js +8 -8
  13. package/dist/x-bento-grid.js +5 -5
  14. package/dist/x-bento-item.js +4 -4
  15. package/dist/x-breadcrumbs.js +13 -13
  16. package/dist/x-calendar.js +31 -31
  17. package/dist/x-cancel-dialogue.js +11 -11
  18. package/dist/x-card.js +7 -7
  19. package/dist/x-carousel.js +22 -22
  20. package/dist/x-chart.js +42 -42
  21. package/dist/x-chip.js +1 -1
  22. package/dist/x-code.js +23 -23
  23. package/dist/x-collapse.js +8 -8
  24. package/dist/x-color-picker.js +32 -32
  25. package/dist/x-combobox.js +26 -26
  26. package/dist/x-command-palette.js +28 -28
  27. package/dist/x-confetti.js +21 -21
  28. package/dist/x-container.js +3 -3
  29. package/dist/x-context-menu.js +17 -17
  30. package/dist/x-currency-field.js +20 -20
  31. package/dist/x-date-picker.js +29 -29
  32. package/dist/x-divider.js +8 -8
  33. package/dist/x-drawer.js +8 -8
  34. package/dist/x-dropdown.js +12 -12
  35. package/dist/x-fieldset.js +3 -3
  36. package/dist/x-file-download.js +5 -5
  37. package/dist/x-file-upload.js +10 -10
  38. package/dist/x-form-field.js +12 -12
  39. package/dist/x-form.js +10 -10
  40. package/dist/x-gaussian-blur.js +11 -11
  41. package/dist/x-grid.js +6 -6
  42. package/dist/x-i18n-provider.js +6 -6
  43. package/dist/x-i18n.js +4 -4
  44. package/dist/x-icon.js +7 -7
  45. package/dist/x-image.js +16 -16
  46. package/dist/x-kbd.js +11 -11
  47. package/dist/x-kinetic-canvas.js +24 -24
  48. package/dist/x-kinetic-font.js +19 -19
  49. package/dist/x-kinetic-typography.js +24 -24
  50. package/dist/x-liquid-dock.js +30 -30
  51. package/dist/x-liquid-fill.js +32 -32
  52. package/dist/x-liquid-glass.js +26 -26
  53. package/dist/x-menu-item.js +4 -4
  54. package/dist/x-menu.js +7 -7
  55. package/dist/x-metaball-cursor.js +17 -17
  56. package/dist/x-modal.js +9 -9
  57. package/dist/x-morph-stack.js +26 -26
  58. package/dist/x-multi-combobox.js +28 -28
  59. package/dist/x-navbar.js +11 -11
  60. package/dist/x-neural-glow.js +18 -18
  61. package/dist/x-notification-center.js +9 -9
  62. package/dist/x-organic-divider.js +13 -13
  63. package/dist/x-organic-progress.js +30 -30
  64. package/dist/x-organic-shape.js +7 -7
  65. package/dist/x-otp-input.js +18 -18
  66. package/dist/x-pagination.js +9 -9
  67. package/dist/x-particle-button.js +32 -32
  68. package/dist/x-popover.js +23 -23
  69. package/dist/x-progress-circle.js +6 -6
  70. package/dist/x-progress.js +6 -6
  71. package/dist/x-proximity-list.js +20 -20
  72. package/dist/x-radio.js +10 -10
  73. package/dist/x-range-slider.js +24 -24
  74. package/dist/x-rating.js +18 -18
  75. package/dist/x-ripple-effect.js +7 -7
  76. package/dist/x-scroll-parallax.js +17 -17
  77. package/dist/x-scroll-stack.js +14 -14
  78. package/dist/x-scroll-story.js +29 -29
  79. package/dist/x-scroll-timeline.js +38 -38
  80. package/dist/x-scroll.js +31 -31
  81. package/dist/x-search-field.js +1 -1
  82. package/dist/x-select.js +1 -1
  83. package/dist/x-sidebar.js +14 -14
  84. package/dist/x-skeleton-group.js +11 -11
  85. package/dist/x-skeleton.js +1 -1
  86. package/dist/x-slider.js +14 -14
  87. package/dist/x-soft-body.js +13 -13
  88. package/dist/x-spacer.js +4 -4
  89. package/dist/x-spinner.js +3 -3
  90. package/dist/x-splash.js +11 -11
  91. package/dist/x-split-pane.js +13 -13
  92. package/dist/x-spotlight-card.js +11 -11
  93. package/dist/x-stat.js +7 -7
  94. package/dist/x-stepper.js +13 -13
  95. package/dist/x-switch.js +6 -6
  96. package/dist/x-tab.js +6 -6
  97. package/dist/x-table-cell.js +14 -14
  98. package/dist/x-table-row.js +7 -7
  99. package/dist/x-table.js +11 -11
  100. package/dist/x-tabs.js +9 -9
  101. package/dist/x-text-area.js +16 -16
  102. package/dist/x-theme.js +12 -12
  103. package/dist/x-timeline-item.js +18 -18
  104. package/dist/x-timeline.js +8 -8
  105. package/dist/x-toast.js +20 -20
  106. package/dist/x-toaster.js +6 -6
  107. package/dist/x-tooltip.js +11 -11
  108. package/dist/x-trace-history.js +90 -90
  109. package/dist/x-typography.js +5 -5
  110. package/dist/x-welcome-tour.js +52 -52
  111. package/package.json +1 -1
@@ -1,47 +1,47 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var tI=function(a,b){return $APP.po.j($APP.Wo.j(a,0),b)},uI=function(a){return $APP.ud(a,360)},vI=function(a){return tI(a,100)},wI=function(a){return tI(a,1)},yI=function(a){var b=typeof a==="string";a=b?$APP.zh(xI,a.trim()):b;return $APP.D(a)},CI=function(a){if(typeof a==="string")if(a=$APP.zh(xI,a.trim()),$APP.n(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.P.i($APP.zc(a,0))+$APP.P.i($APP.zc(a,0)),16),c=parseInt(""+$APP.P.i($APP.zc(a,1))+$APP.P.i($APP.zc(a,
3
- 1)),16),d=parseInt(""+$APP.P.i($APP.zc(a,2))+$APP.P.i($APP.zc(a,2)),16);return new $APP.M(null,4,[zI,b,$APP.Ft,c,AI,d,BI,1],null);case 6:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[zI,b,$APP.Ft,c,AI,d,BI,1],null);case 8:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[zI,b,$APP.Ft,c,AI,d,BI,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
- else return null},nca=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Wo.B(a,b,$APP.Ec([c])),e=$APP.po.B(a,b,$APP.Ec([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.M(null,3,[DI,0,EI,0,FI,f*100],null):new $APP.M(null,3,[DI,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,EI,(f>.5?h/(2-d-e):h/(d+e))*100,FI,f*100],null)},GI=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},HI=function(a,b,c){a=uI(a)/360;b=vI(b)/100;c=vI(c)/100;if(b===0)return a=
5
- Math.round(c*255),new $APP.M(null,3,[zI,a,$APP.Ft,a,AI,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.M(null,3,[zI,Math.round(GI(c,b,a+1/3)*255),$APP.Ft,Math.round(GI(c,b,a)*255),AI,Math.round(GI(c,b,a-1/3)*255)],null)},II=function(a,b,c){function d(e){e=tI(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.P.i(e):e}return"#"+$APP.P.i(d(a))+$APP.P.i(d(b))+$APP.P.i(d(c))},JI=function(a,b,c,d){function e(f){f=tI(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.P.i(f):f}
6
- return"#"+$APP.P.i(e(a))+$APP.P.i(e(b))+$APP.P.i(e(c))+$APP.P.i(e(wI(d)*255))},KI=function(a,b,c){b=vI(b)/100;c=vI(c)/100;b=c+b*$APP.po.j(c,1-c);return new $APP.M(null,3,[DI,uI(a),EI,(b===0?0:2*(1-c/b))*100,$APP.fo,b*100],null)},LI=function(a,b,c){b=vI(b)/100;c=vI(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.po.j(b,1-b);return new $APP.M(null,3,[DI,uI(a),EI,c*100,FI,b*100],null)},MI=function(a,b,c){return 100*(tI(a-b,c)/c)},oca=function(a){return typeof a==="string"&&yI(a)?(a=CI(a),$APP.n(a)?II(zI.i(a),
7
- $APP.Ft.i(a),AI.i(a)):null):"#000000"},qca=function(a){return typeof a==="string"&&$APP.ed(pca,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},rca=function(a){return typeof a==="string"&&$APP.Li(a)?$APP.Kf.m($APP.Ge,$APP.Yo.m($APP.ye.i($APP.Hi),$APP.De(yI),$APP.ye.i(function(b){b=CI(b);var c=$APP.G(b);b=$APP.C(c,zI);var d=$APP.C(c,$APP.Ft);c=$APP.C(c,AI);return II(b,d,c)})),$APP.Fi(a,/,/)):$APP.Ge},sca=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.bu),d=$APP.C(b,$APP.zm),e=$APP.C(b,$APP.Ui);
8
- a=$APP.C(b,$APP.Uj);var f=$APP.C(b,$APP.uj),h=$APP.C(b,$APP.Sl),k=$APP.C(b,NI),m=$APP.C(b,$APP.Wj),r=$APP.C(b,OI);b=oca(e);var u=function(){var S=CI(e);return $APP.n(S)?S:CI("#000000")}(),x=$APP.G(u);u=$APP.C(x,zI);var y=$APP.C(x,$APP.Ft),A=$APP.C(x,AI);x=$APP.C(x,BI);var E=function(){var S=typeof e==="string";if(S){S=e.trim();var R=$APP.zh(xI,S);return $APP.n(R)?8===$APP.w($APP.Hc($APP.zh(xI,S))):R}return S}();x=$APP.n(E)?x:1;E=nca(u,y,A);var H=$APP.G(E);E=$APP.C(H,DI);var O=$APP.C(H,EI);H=$APP.C(H,
9
- FI);d=$APP.Ji(d);f=$APP.Ji(f);r=r!=null;c=c!=null;h=qca(h);return $APP.Gg([$APP.ll,PI,$APP.Uj,$APP.Sl,NI,EI,FI,QI,DI,$APP.Wj,$APP.Hu,RI,$APP.Xj,BI],[f,r,$APP.Li(a)?a:null,h,rca(k),O,H,b,E,$APP.Li(m)?m:null,$APP.z.j(h,"popover")&&c,r&&x<1?JI(u,y,A,x):b,d,x])},SI=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Xj);b=$APP.C(b,$APP.ll);return $APP.p(a)&&$APP.p(b)},TI=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"role","slider");$APP.T(a,"tabindex","0");$APP.T(a,"aria-label",c);$APP.T(a,"aria-valuemin","0");
10
- $APP.T(a,"aria-valuemax",d)},UI=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"type","button");$APP.T(a,"aria-label",c);a.innerHTML=d},VI=function(a){return sca($APP.Gg([$APP.bu,$APP.zm,$APP.Uj,$APP.Ui,$APP.uj,$APP.Sl,NI,$APP.Wj,OI],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},WI=function(a,b){var c=RI.i(b),d=DI.i(b),
11
- e=EI.i(b),f=FI.i(b);b=BI.i(b);return $APP.hj(a,"x-color-picker-input",$APP.gm(new $APP.M(null,5,[$APP.Ui,c,DI,d,EI,e,FI,f,BI,b],null)))},XI=function(a,b){var c=RI.i(b),d=DI.i(b),e=EI.i(b),f=FI.i(b);b=BI.i(b);return $APP.jj(a,"x-color-picker-change",$APP.gm(new $APP.M(null,5,[$APP.Ui,c,DI,d,EI,e,FI,f,BI,b],null)))},YI=function(a,b,c,d,e,f){b=HI(b,c,d);d=$APP.G(b);b=$APP.C(d,zI);c=$APP.C(d,$APP.Ft);d=$APP.C(d,AI);e=$APP.n($APP.n(f)?e<1:f)?JI(b,c,d,e):II(b,c,d);$APP.T(a,"value",e)},tca=function(a,b,
2
+ var tI=function(a,b){return $APP.qo.j($APP.Xo.j(a,0),b)},uI=function(a){return $APP.ud(a,360)},vI=function(a){return tI(a,100)},wI=function(a){return tI(a,1)},yI=function(a){var b=typeof a==="string";a=b?$APP.zh(xI,a.trim()):b;return $APP.D(a)},CI=function(a){if(typeof a==="string")if(a=$APP.zh(xI,a.trim()),$APP.n(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.P.i($APP.zc(a,0))+$APP.P.i($APP.zc(a,0)),16),c=parseInt(""+$APP.P.i($APP.zc(a,1))+$APP.P.i($APP.zc(a,
3
+ 1)),16),d=parseInt(""+$APP.P.i($APP.zc(a,2))+$APP.P.i($APP.zc(a,2)),16);return new $APP.M(null,4,[zI,b,$APP.Gt,c,AI,d,BI,1],null);case 6:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[zI,b,$APP.Gt,c,AI,d,BI,1],null);case 8:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[zI,b,$APP.Gt,c,AI,d,BI,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
+ else return null},oca=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Xo.B(a,b,$APP.Ec([c])),e=$APP.qo.B(a,b,$APP.Ec([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.M(null,3,[DI,0,EI,0,FI,f*100],null):new $APP.M(null,3,[DI,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,EI,(f>.5?h/(2-d-e):h/(d+e))*100,FI,f*100],null)},GI=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},HI=function(a,b,c){a=uI(a)/360;b=vI(b)/100;c=vI(c)/100;if(b===0)return a=
5
+ Math.round(c*255),new $APP.M(null,3,[zI,a,$APP.Gt,a,AI,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.M(null,3,[zI,Math.round(GI(c,b,a+1/3)*255),$APP.Gt,Math.round(GI(c,b,a)*255),AI,Math.round(GI(c,b,a-1/3)*255)],null)},II=function(a,b,c){function d(e){e=tI(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.P.i(e):e}return"#"+$APP.P.i(d(a))+$APP.P.i(d(b))+$APP.P.i(d(c))},JI=function(a,b,c,d){function e(f){f=tI(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.P.i(f):f}
6
+ return"#"+$APP.P.i(e(a))+$APP.P.i(e(b))+$APP.P.i(e(c))+$APP.P.i(e(wI(d)*255))},KI=function(a,b,c){b=vI(b)/100;c=vI(c)/100;b=c+b*$APP.qo.j(c,1-c);return new $APP.M(null,3,[DI,uI(a),EI,(b===0?0:2*(1-c/b))*100,$APP.go,b*100],null)},LI=function(a,b,c){b=vI(b)/100;c=vI(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.qo.j(b,1-b);return new $APP.M(null,3,[DI,uI(a),EI,c*100,FI,b*100],null)},MI=function(a,b,c){return 100*(tI(a-b,c)/c)},pca=function(a){return typeof a==="string"&&yI(a)?(a=CI(a),$APP.n(a)?II(zI.i(a),
7
+ $APP.Gt.i(a),AI.i(a)):null):"#000000"},rca=function(a){return typeof a==="string"&&$APP.ed(qca,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},sca=function(a){return typeof a==="string"&&$APP.Li(a)?$APP.Kf.m($APP.Ge,$APP.Zo.m($APP.ye.i($APP.Hi),$APP.De(yI),$APP.ye.i(function(b){b=CI(b);var c=$APP.G(b);b=$APP.C(c,zI);var d=$APP.C(c,$APP.Gt);c=$APP.C(c,AI);return II(b,d,c)})),$APP.Fi(a,/,/)):$APP.Ge},tca=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.cu),d=$APP.C(b,$APP.zm),e=$APP.C(b,$APP.Ui);
8
+ a=$APP.C(b,$APP.Uj);var f=$APP.C(b,$APP.uj),h=$APP.C(b,$APP.Sl),k=$APP.C(b,NI),m=$APP.C(b,$APP.Wj),r=$APP.C(b,OI);b=pca(e);var u=function(){var S=CI(e);return $APP.n(S)?S:CI("#000000")}(),x=$APP.G(u);u=$APP.C(x,zI);var y=$APP.C(x,$APP.Gt),A=$APP.C(x,AI);x=$APP.C(x,BI);var E=function(){var S=typeof e==="string";if(S){S=e.trim();var R=$APP.zh(xI,S);return $APP.n(R)?8===$APP.w($APP.Hc($APP.zh(xI,S))):R}return S}();x=$APP.n(E)?x:1;E=oca(u,y,A);var H=$APP.G(E);E=$APP.C(H,DI);var O=$APP.C(H,EI);H=$APP.C(H,
9
+ FI);d=$APP.Ji(d);f=$APP.Ji(f);r=r!=null;c=c!=null;h=rca(h);return $APP.Gg([$APP.ll,PI,$APP.Uj,$APP.Sl,NI,EI,FI,QI,DI,$APP.Wj,$APP.Iu,RI,$APP.Xj,BI],[f,r,$APP.Li(a)?a:null,h,sca(k),O,H,b,E,$APP.Li(m)?m:null,$APP.z.j(h,"popover")&&c,r&&x<1?JI(u,y,A,x):b,d,x])},SI=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Xj);b=$APP.C(b,$APP.ll);return $APP.p(a)&&$APP.p(b)},TI=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"role","slider");$APP.T(a,"tabindex","0");$APP.T(a,"aria-label",c);$APP.T(a,"aria-valuemin","0");
10
+ $APP.T(a,"aria-valuemax",d)},UI=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"type","button");$APP.T(a,"aria-label",c);a.innerHTML=d},VI=function(a){return tca($APP.Gg([$APP.cu,$APP.zm,$APP.Uj,$APP.Ui,$APP.uj,$APP.Sl,NI,$APP.Wj,OI],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},WI=function(a,b){var c=RI.i(b),d=DI.i(b),
11
+ e=EI.i(b),f=FI.i(b);b=BI.i(b);return $APP.hj(a,"x-color-picker-input",$APP.gm(new $APP.M(null,5,[$APP.Ui,c,DI,d,EI,e,FI,f,BI,b],null)))},XI=function(a,b){var c=RI.i(b),d=DI.i(b),e=EI.i(b),f=FI.i(b);b=BI.i(b);return $APP.jj(a,"x-color-picker-change",$APP.gm(new $APP.M(null,5,[$APP.Ui,c,DI,d,EI,e,FI,f,BI,b],null)))},YI=function(a,b,c,d,e,f){b=HI(b,c,d);d=$APP.G(b);b=$APP.C(d,zI);c=$APP.C(d,$APP.Gt);d=$APP.C(d,AI);e=$APP.n($APP.n(f)?e<1:f)?JI(b,c,d,e):II(b,c,d);$APP.T(a,"value",e)},uca=function(a,b,
12
12
  c,d){if($APP.I($APP.l(a,"__xColorPickerSwatchesCache"),c)){$APP.Q(a,"__xColorPickerSwatchesCache",c);b.innerHTML="";a=$APP.q(c);c=null;for(var e=0,f=0;;)if(f<e){var h=c.C(null,f),k=document.createElement("button");$APP.T(k,"part","swatch");$APP.T(k,"type","button");$APP.T(k,"role","option");$APP.T(k,"aria-label",h);$APP.T(k,"data-color",h);k.style.backgroundColor=h;b.appendChild(k);f+=1}else if(a=$APP.q(a))$APP.$c(a)?(e=$APP.Fb(a),a=$APP.Gb(a),c=e,e=$APP.w(e)):(c=$APP.t(a),e=document.createElement("button"),
13
13
  $APP.T(e,"part","swatch"),$APP.T(e,"type","button"),$APP.T(e,"role","option"),$APP.T(e,"aria-label",c),$APP.T(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.v(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return $APP.T(m,"aria-selected",$APP.z.j(m.getAttribute("data-color"),d)?"true":"false")})},ZI=function(a){if($APP.n($APP.l(a,"__xColorPickerRefs"))){var b=VI(a);if($APP.I($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");
14
- if($APP.n(c)){var d=$APP.l(c,"area"),e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),m=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),u=$APP.C(r,DI);r=$APP.C(r,$APP.Sl);$APP.T(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.P.i(Math.round(u)));r=$APP.G(b);var x=$APP.C(r,DI),y=$APP.C(r,EI),A=$APP.C(r,FI);u=$APP.C(r,BI);r=$APP.C(r,$APP.Wj);y=KI(x,y,A);var E=$APP.G(y);y=$APP.C(E,EI);E=$APP.C(E,$APP.fo);E=new $APP.M(null,
15
- 2,[$APP.Bt,vI(y),$APP.At,100-vI(E)],null);d.style.setProperty("--_x-cp-area-x",""+$APP.P.i($APP.Bt.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.P.i($APP.At.i(E).toFixed(2))+"%");x="Hue "+$APP.P.i(Math.round(x))+", Saturation "+$APP.P.i(Math.round(y))+"%, Lightness "+$APP.P.i(Math.round(A))+"%";u=u<1?""+$APP.P.i(x)+", Opacity "+$APP.P.i(Math.round(u*100))+"%":x;$APP.T(d,"aria-valuetext",u);$APP.n(r)&&$APP.T(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,DI);e.style.setProperty("--_x-cp-hue-pos",
14
+ if($APP.n(c)){var d=$APP.l(c,"area"),e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),m=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),u=$APP.C(r,DI);r=$APP.C(r,$APP.Sl);$APP.T(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.P.i(Math.round(u)));r=$APP.G(b);var x=$APP.C(r,DI),y=$APP.C(r,EI),A=$APP.C(r,FI);u=$APP.C(r,BI);r=$APP.C(r,$APP.Wj);y=KI(x,y,A);var E=$APP.G(y);y=$APP.C(E,EI);E=$APP.C(E,$APP.go);E=new $APP.M(null,
15
+ 2,[$APP.Ct,vI(y),$APP.Bt,100-vI(E)],null);d.style.setProperty("--_x-cp-area-x",""+$APP.P.i($APP.Ct.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.P.i($APP.Bt.i(E).toFixed(2))+"%");x="Hue "+$APP.P.i(Math.round(x))+", Saturation "+$APP.P.i(Math.round(y))+"%, Lightness "+$APP.P.i(Math.round(A))+"%";u=u<1?""+$APP.P.i(x)+", Opacity "+$APP.P.i(Math.round(u*100))+"%":x;$APP.T(d,"aria-valuetext",u);$APP.n(r)&&$APP.T(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,DI);e.style.setProperty("--_x-cp-hue-pos",
16
16
  ""+$APP.P.i((uI(d)/360*100).toFixed(2))+"%");$APP.T(e,"aria-valuenow",""+$APP.P.i(Math.round(d)));x=$APP.G(b);e=$APP.C(x,DI);d=$APP.C(x,EI);u=$APP.C(x,FI);r=$APP.C(x,BI);x=$APP.C(x,PI);$APP.n(x)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.P.i(Math.round(e))+","+$APP.P.i(Math.round(d))+"%,"+$APP.P.i(Math.round(u))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.P.i((wI(r)*100).toFixed(2))+"%"),$APP.T(f,"aria-valuenow",""+$APP.P.i(Math.round(r*100)))):f.style.display=
17
- "none";x=$APP.G(b);e=$APP.C(x,DI);d=$APP.C(x,EI);u=$APP.C(x,FI);f=$APP.C(x,BI);r=$APP.C(x,QI);x=$APP.C(x,PI);$APP.n(x)?(e=HI(e,d,u),u=$APP.G(e),e=$APP.C(u,zI),d=$APP.C(u,$APP.Ft),u=$APP.C(u,AI),f="rgba("+$APP.P.i(e)+","+$APP.P.i(d)+","+$APP.P.i(u)+","+$APP.P.i(f.toFixed(2))+")"):f=r;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,RI);k=$APP.C(f,$APP.Xj);f=$APP.C(f,$APP.ll);a.shadowRoot.activeElement!==m&&(m.value=h);m.disabled=$APP.n(k)?k:f;tca(a,c,NI.i(b),QI.i(b));m=$APP.G(b);
18
- m=$APP.C(m,RI);c=$APP.l(a,"__xColorPickerInternals");$APP.n(c)&&c.setFormValue(m);a=$APP.Q(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},aJ=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=MI(b.clientX,c.left,c.width);a=MI(a,d,e);return new $APP.M(null,2,[$I,vI(b),$APP.kp,100-vI(a)],null)},bJ=function(a,b){a=a.getBoundingClientRect();b=MI(b.clientX,a.left,a.width);return vI(b)/100*360},cJ=function(a,b){a=a.getBoundingClientRect();b=MI(b.clientX,
19
- a.left,a.width);return vI(b)/100},vca=function(a,b){var c=VI(a);if(SI(c)&&$APP.ed(uca,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=KI(DI.i(c),EI.i(c),FI.i(c)),f=function(){switch(b.key){case "ArrowRight":return vI(EI.i(e)+d);case "ArrowLeft":return vI(EI.i(e)-d);default:return EI.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return vI($APP.fo.i(e)+d);case "ArrowDown":return vI($APP.fo.i(e)-d);default:return $APP.fo.i(e)}}();f=LI(DI.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,DI);h=$APP.C(k,
20
- EI);k=$APP.C(k,FI);YI(a,f,h,k,BI.i(c),PI.i(c));WI(a,VI(a));return XI(a,VI(a))}return null},wca=function(a,b){var c=VI(a);if(SI(c)&&$APP.ed(dJ,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return uI(DI.i(c)+d);case "ArrowLeft":return uI(DI.i(c)-d);case "Home":return 0;case "End":return 360;default:return DI.i(c)}}();YI(a,e,EI.i(c),FI.i(c),BI.i(c),PI.i(c));WI(a,VI(a));return XI(a,VI(a))}return null},xca=function(a,b){var c=VI(a);if($APP.n(function(){var f=
21
- SI(c);return f?(f=PI.i(c),$APP.n(f)?$APP.ed(dJ,b.key):f):f}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return wI(BI.i(c)+d);case "ArrowLeft":return wI(BI.i(c)-d);case "Home":return 0;case "End":return 1;default:return BI.i(c)}}();YI(a,DI.i(c),EI.i(c),FI.i(c),e,!0);WI(a,VI(a));return XI(a,VI(a))}return null},yca=function(a){var b=VI(a);return SI(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.T(a,"value",c.sRGBHex);
22
- return XI(a,VI(a))}).catch(function(){return null}):null},zca=function(a){if($APP.n(a.hasAttribute("open")))return null;$APP.T(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.n(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},eJ=function(a){return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.n(a)?$APP.l(a,"trigger").focus():null):null},Aca=function(a,b){return $APP.n(a.hasAttribute("open"))?$APP.n(b.composedPath().some(function(c){return c===
23
- a}))?null:eJ(a):null},Bca=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=aJ($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,$I);d=$APP.C(d,$APP.kp);b=LI(DI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,DI);d=$APP.C(e,EI);e=$APP.C(e,FI);YI(a,b,d,e,BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},copy:function(){var b=VI(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(RI.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
- b.key)&&$APP.z.j("popover",$APP.Sl.i(VI(a)))?(b.preventDefault(),b.stopPropagation(),b=eJ(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"alpha-key":function(b){return xca(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
17
+ "none";x=$APP.G(b);e=$APP.C(x,DI);d=$APP.C(x,EI);u=$APP.C(x,FI);f=$APP.C(x,BI);r=$APP.C(x,QI);x=$APP.C(x,PI);$APP.n(x)?(e=HI(e,d,u),u=$APP.G(e),e=$APP.C(u,zI),d=$APP.C(u,$APP.Gt),u=$APP.C(u,AI),f="rgba("+$APP.P.i(e)+","+$APP.P.i(d)+","+$APP.P.i(u)+","+$APP.P.i(f.toFixed(2))+")"):f=r;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,RI);k=$APP.C(f,$APP.Xj);f=$APP.C(f,$APP.ll);a.shadowRoot.activeElement!==m&&(m.value=h);m.disabled=$APP.n(k)?k:f;uca(a,c,NI.i(b),QI.i(b));m=$APP.G(b);
18
+ m=$APP.C(m,RI);c=$APP.l(a,"__xColorPickerInternals");$APP.n(c)&&c.setFormValue(m);a=$APP.Q(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},aJ=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=MI(b.clientX,c.left,c.width);a=MI(a,d,e);return new $APP.M(null,2,[$I,vI(b),$APP.lp,100-vI(a)],null)},bJ=function(a,b){a=a.getBoundingClientRect();b=MI(b.clientX,a.left,a.width);return vI(b)/100*360},cJ=function(a,b){a=a.getBoundingClientRect();b=MI(b.clientX,
19
+ a.left,a.width);return vI(b)/100},wca=function(a,b){var c=VI(a);if(SI(c)&&$APP.ed(vca,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=KI(DI.i(c),EI.i(c),FI.i(c)),f=function(){switch(b.key){case "ArrowRight":return vI(EI.i(e)+d);case "ArrowLeft":return vI(EI.i(e)-d);default:return EI.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return vI($APP.go.i(e)+d);case "ArrowDown":return vI($APP.go.i(e)-d);default:return $APP.go.i(e)}}();f=LI(DI.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,DI);h=$APP.C(k,
20
+ EI);k=$APP.C(k,FI);YI(a,f,h,k,BI.i(c),PI.i(c));WI(a,VI(a));return XI(a,VI(a))}return null},xca=function(a,b){var c=VI(a);if(SI(c)&&$APP.ed(dJ,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return uI(DI.i(c)+d);case "ArrowLeft":return uI(DI.i(c)-d);case "Home":return 0;case "End":return 360;default:return DI.i(c)}}();YI(a,e,EI.i(c),FI.i(c),BI.i(c),PI.i(c));WI(a,VI(a));return XI(a,VI(a))}return null},yca=function(a,b){var c=VI(a);if($APP.n(function(){var f=
21
+ SI(c);return f?(f=PI.i(c),$APP.n(f)?$APP.ed(dJ,b.key):f):f}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return wI(BI.i(c)+d);case "ArrowLeft":return wI(BI.i(c)-d);case "Home":return 0;case "End":return 1;default:return BI.i(c)}}();YI(a,DI.i(c),EI.i(c),FI.i(c),e,!0);WI(a,VI(a));return XI(a,VI(a))}return null},zca=function(a){var b=VI(a);return SI(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.T(a,"value",c.sRGBHex);
22
+ return XI(a,VI(a))}).catch(function(){return null}):null},Aca=function(a){if($APP.n(a.hasAttribute("open")))return null;$APP.T(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.n(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},eJ=function(a){return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.n(a)?$APP.l(a,"trigger").focus():null):null},Bca=function(a,b){return $APP.n(a.hasAttribute("open"))?$APP.n(b.composedPath().some(function(c){return c===
23
+ a}))?null:eJ(a):null},Cca=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=aJ($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,$I);d=$APP.C(d,$APP.lp);b=LI(DI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,DI);d=$APP.C(e,EI);e=$APP.C(e,FI);YI(a,b,d,e,BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},copy:function(){var b=VI(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(RI.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
+ b.key)&&$APP.z.j("popover",$APP.Sl.i(VI(a)))?(b.preventDefault(),b.stopPropagation(),b=eJ(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"alpha-key":function(b){return yca(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
25
25
  $APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=cJ($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);YI(a,DI.i(c),EI.i(c),FI.i(c),b,!0);c=WI(a,VI(a))}else c=null;return c},"hex-key":function(b){a:{if($APP.z.j("Enter",b.key)){b.preventDefault();b=$APP.l($APP.l(a,"__xColorPickerRefs"),"hex-input");var c=b.value,d=VI(a);if(SI(d)){if(yI(c)){$APP.T(a,"value",c);b=XI(a,VI(a));break a}b=b.value=RI.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=VI(a);if(SI(c)&&(b=b.target,$APP.n(b.hasAttribute("data-color")))){b=
26
26
  b.getAttribute("data-color");$APP.T(a,"value",b);b=XI(a,VI(a));break a}b=null}return b},"area-up":function(){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"alpha-down":function(b){var c=VI(a);var d=(d=SI(c))?PI.i(c):d;$APP.n(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.Q(a,"__xColorPickerDragging","alpha"),b=cJ(d,b),YI(a,DI.i(c),EI.i(c),FI.i(c),
27
- b,!0),c=WI(a,VI(a))):c=null;return c},"area-key":function(b){return vca(a,b)},"hue-down":function(b){var c=VI(a);if(SI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","hue");b=bJ(d,b);YI(a,b,EI.i(c),FI.i(c),BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},"hue-key":function(b){return wca(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=bJ($APP.l($APP.l(a,
28
- "__xColorPickerRefs"),"hue-strip"),b);YI(a,b,EI.i(c),FI.i(c),BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},eyedrop:function(){return yca(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=VI(a);return $APP.z.j("popover",$APP.Sl.i(b))&&$APP.p($APP.Xj.i(b))?$APP.n($APP.Hu.i(b))?eJ(a):zca(a):null},"doc-click":function(b){return Aca(a,b)},"area-down":function(b){var c=VI(a);if(SI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
- $APP.Q(a,"__xColorPickerDragging","area");b=aJ(d,b);d=$APP.G(b);b=$APP.C(d,$I);d=$APP.C(d,$APP.kp);b=LI(DI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,DI);d=$APP.C(e,EI);e=$APP.C(e,FI);YI(a,b,d,e,BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c}}},fJ=function(a,b){return $APP.z.j(b,$APP.Zt)?document:$APP.l(a,b)},hJ=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){for(var d=$APP.q(gJ),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,
30
- null),r=$APP.B(k,1,null),u=$APP.B(k,2,null);k=$APP.B(k,3,null);fJ(b,m).removeEventListener(r,$APP.l(c,u),k);h+=1}else if(d=$APP.q(d))$APP.$c(d)?(f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f)):(m=$APP.t(d),e=$APP.B(m,0,null),f=$APP.B(m,1,null),h=$APP.B(m,2,null),m=$APP.B(m,3,null),fJ(b,e).removeEventListener(f,$APP.l(c,h),m),d=$APP.v(d),e=null,f=0),h=0;else break;return $APP.Q(a,"__xColorPickerHandlers",null)}return null},Cca=function(a,b){$APP.cj(a,"disabled",$APP.D(b));return ZI(a)},Dca=function(a){$APP.T(a,
31
- "value","#000000");return ZI(a)},Eca=function(a){if(!$APP.n($APP.l(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");var f=document.createElement("button");var h=document.createElement("span");$APP.T(f,"part","trigger");$APP.T(f,"type","button");$APP.T(f,"aria-label","Pick color");$APP.T(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.M(null,2,[$APP.Br,f,iJ,h],null);h=document.createElement("div");
27
+ b,!0),c=WI(a,VI(a))):c=null;return c},"area-key":function(b){return wca(a,b)},"hue-down":function(b){var c=VI(a);if(SI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","hue");b=bJ(d,b);YI(a,b,EI.i(c),FI.i(c),BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},"hue-key":function(b){return xca(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=bJ($APP.l($APP.l(a,
28
+ "__xColorPickerRefs"),"hue-strip"),b);YI(a,b,EI.i(c),FI.i(c),BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},eyedrop:function(){return zca(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=VI(a);return $APP.z.j("popover",$APP.Sl.i(b))&&$APP.p($APP.Xj.i(b))?$APP.n($APP.Iu.i(b))?eJ(a):Aca(a):null},"doc-click":function(b){return Bca(a,b)},"area-down":function(b){var c=VI(a);if(SI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
+ $APP.Q(a,"__xColorPickerDragging","area");b=aJ(d,b);d=$APP.G(b);b=$APP.C(d,$I);d=$APP.C(d,$APP.lp);b=LI(DI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,DI);d=$APP.C(e,EI);e=$APP.C(e,FI);YI(a,b,d,e,BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c}}},fJ=function(a,b){return $APP.z.j(b,$APP.$t)?document:$APP.l(a,b)},hJ=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){for(var d=$APP.q(gJ),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,
30
+ null),r=$APP.B(k,1,null),u=$APP.B(k,2,null);k=$APP.B(k,3,null);fJ(b,m).removeEventListener(r,$APP.l(c,u),k);h+=1}else if(d=$APP.q(d))$APP.$c(d)?(f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f)):(m=$APP.t(d),e=$APP.B(m,0,null),f=$APP.B(m,1,null),h=$APP.B(m,2,null),m=$APP.B(m,3,null),fJ(b,e).removeEventListener(f,$APP.l(c,h),m),d=$APP.v(d),e=null,f=0),h=0;else break;return $APP.Q(a,"__xColorPickerHandlers",null)}return null},Dca=function(a,b){$APP.cj(a,"disabled",$APP.D(b));return ZI(a)},Eca=function(a){$APP.T(a,
31
+ "value","#000000");return ZI(a)},Fca=function(a){if(!$APP.n($APP.l(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");var f=document.createElement("button");var h=document.createElement("span");$APP.T(f,"part","trigger");$APP.T(f,"type","button");$APP.T(f,"aria-label","Pick color");$APP.T(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.M(null,2,[$APP.Cr,f,iJ,h],null);h=document.createElement("div");
32
32
  var k=document.createElement("div");$APP.T(h,"part","area");$APP.T(h,"role","slider");$APP.T(h,"tabindex","0");$APP.T(h,"aria-label","Color");$APP.T(k,"part","area-thumb");h.appendChild(k);h=new $APP.M(null,2,[jJ,h,kJ,k],null);k=document.createElement("div");var m=document.createElement("div"),r=document.createElement("div"),u=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div");$APP.T(k,"part","strips");TI(m,"hue-strip","Hue","360");TI(u,"alpha-strip","Opacity",
33
33
  "100");$APP.T(r,"part","hue-thumb");$APP.T(x,"part","alpha-gradient");$APP.T(y,"part","alpha-thumb");m.appendChild(r);u.appendChild(x);u.appendChild(y);k.appendChild(m);k.appendChild(u);k=new $APP.M(null,6,[lJ,k,mJ,m,nJ,r,oJ,u,pJ,x,qJ,y],null);m=document.createElement("div");r=document.createElement("div");u=document.createElement("span");x=document.createElement("input");y=document.createElement("button");var A=document.createElement("button");$APP.T(m,"part","controls");$APP.T(r,"part","preview");
34
34
  $APP.T(u,"part","preview-color");$APP.T(x,"part","hex-input");$APP.T(x,"type","text");$APP.T(x,"spellcheck","false");$APP.T(x,"autocomplete","off");$APP.T(x,"aria-label","Hex color value");UI(y,"eyedropper","Pick color from screen",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e');
35
35
  UI(A,"copy","Copy color value",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3crect x\x3d"5" y\x3d"5" width\x3d"9" height\x3d"9" rx\x3d"1.5"/\x3e\x3cpath d\x3d"M5 11H3.5A1.5 1.5 0 0 1 2 9.5v-6A1.5 1.5 0 0 1 3.5 2h6A1.5 1.5 0 0 1 11 3.5V5"/\x3e\x3c/svg\x3e');typeof EyeDropper==="undefined"&&(y.style.display="none");r.appendChild(u);m.appendChild(r);m.appendChild(x);
36
- m.appendChild(y);m.appendChild(A);m=new $APP.M(null,6,[$APP.uu,m,rJ,r,sJ,u,tJ,x,uJ,y,$APP.Ku,A],null);r=document.createElement("div");$APP.T(r,"part","swatches");$APP.T(r,"role","listbox");$APP.T(r,"aria-label","Preset colors");r=new $APP.M(null,1,[NI,r],null);c.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
37
- $APP.T(d,"part","container");$APP.T(e,"part","panel");e.appendChild(jJ.i(h));e.appendChild(lJ.i(k));e.appendChild($APP.uu.i(m));e.appendChild(NI.i(r));d.appendChild($APP.Br.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);b={"alpha-thumb":qJ.i(k),copy:$APP.Ku.i(m),swatches:NI.i(r),"hue-strip":mJ.i(k),controls:$APP.uu.i(m),"alpha-gradient":pJ.i(k),panel:e,preview:rJ.i(m),"area-thumb":kJ.i(h),"preview-color":sJ.i(m),container:d,area:jJ.i(h),"hue-thumb":nJ.i(k),"trigger-swatch":iJ.i(f),trigger:$APP.Br.i(f),
38
- "alpha-strip":oJ.i(k),eyedropper:uJ.i(m),"hex-input":tJ.i(m)};$APP.Q(a,"__xColorPickerRefs",b);$APP.n(a.attachInternals)&&$APP.Q(a,"__xColorPickerInternals",a.attachInternals())}hJ(a);b=$APP.l(a,"__xColorPickerRefs");if($APP.n(b)){c=Bca(a);d=$APP.q(gJ);e=null;for(h=f=0;;)if(h<f)u=e.C(null,h),k=$APP.B(u,0,null),m=$APP.B(u,1,null),r=$APP.B(u,2,null),u=$APP.B(u,3,null),fJ(b,k).addEventListener(m,$APP.l(c,r),u),h+=1;else if(d=$APP.q(d))$APP.$c(d)?(f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f)):(k=$APP.t(d),
39
- e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),fJ(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.v(d),e=null,f=0),h=0;else break;$APP.Q(a,"__xColorPickerHandlers",c)}return ZI(a)},Fca=function(a){return hJ(a)},Gca=function(a,b,c,d){return $APP.I(c,d)?ZI(a):null},Ica=function(a){return $APP.xj(a,Hca)},vJ=function(){return $APP.zi("x-color-picker",new $APP.M(null,8,[$APP.ji,Jca,$APP.hi,Eca,$APP.ei,Fca,$APP.di,Gca,$APP.fi,!0,$APP.ci,Cca,$APP.bi,Dca,$APP.ii,Ica],null))},pJ=
36
+ m.appendChild(y);m.appendChild(A);m=new $APP.M(null,6,[$APP.vu,m,rJ,r,sJ,u,tJ,x,uJ,y,$APP.Lu,A],null);r=document.createElement("div");$APP.T(r,"part","swatches");$APP.T(r,"role","listbox");$APP.T(r,"aria-label","Preset colors");r=new $APP.M(null,1,[NI,r],null);c.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
37
+ $APP.T(d,"part","container");$APP.T(e,"part","panel");e.appendChild(jJ.i(h));e.appendChild(lJ.i(k));e.appendChild($APP.vu.i(m));e.appendChild(NI.i(r));d.appendChild($APP.Cr.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);b={"alpha-thumb":qJ.i(k),copy:$APP.Lu.i(m),swatches:NI.i(r),"hue-strip":mJ.i(k),controls:$APP.vu.i(m),"alpha-gradient":pJ.i(k),panel:e,preview:rJ.i(m),"area-thumb":kJ.i(h),"preview-color":sJ.i(m),container:d,area:jJ.i(h),"hue-thumb":nJ.i(k),"trigger-swatch":iJ.i(f),trigger:$APP.Cr.i(f),
38
+ "alpha-strip":oJ.i(k),eyedropper:uJ.i(m),"hex-input":tJ.i(m)};$APP.Q(a,"__xColorPickerRefs",b);$APP.n(a.attachInternals)&&$APP.Q(a,"__xColorPickerInternals",a.attachInternals())}hJ(a);b=$APP.l(a,"__xColorPickerRefs");if($APP.n(b)){c=Cca(a);d=$APP.q(gJ);e=null;for(h=f=0;;)if(h<f)u=e.C(null,h),k=$APP.B(u,0,null),m=$APP.B(u,1,null),r=$APP.B(u,2,null),u=$APP.B(u,3,null),fJ(b,k).addEventListener(m,$APP.l(c,r),u),h+=1;else if(d=$APP.q(d))$APP.$c(d)?(f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f)):(k=$APP.t(d),
39
+ e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),fJ(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.v(d),e=null,f=0),h=0;else break;$APP.Q(a,"__xColorPickerHandlers",c)}return ZI(a)},Gca=function(a){return hJ(a)},Hca=function(a,b,c,d){return $APP.I(c,d)?ZI(a):null},Jca=function(a){return $APP.xj(a,Ica)},vJ=function(){return $APP.zi("x-color-picker",new $APP.M(null,8,[$APP.ji,Kca,$APP.hi,Fca,$APP.ei,Gca,$APP.di,Hca,$APP.fi,!0,$APP.ci,Dca,$APP.bi,Eca,$APP.ii,Jca],null))},pJ=
40
40
  new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),qJ=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),jJ=new $APP.F(null,"area","area",472007256),OI=new $APP.F(null,"alpha","alpha",-1574982441),sJ=new $APP.F(null,"preview-color","preview-color",1405210195),oJ=new $APP.F(null,"alpha-strip","alpha-strip",1085401595),RI=new $APP.F(null,"hex-full","hex-full",-1466644518),tJ=new $APP.F(null,"hex-input","hex-input",1497535517),rJ=new $APP.F(null,"preview","preview",451279890),mJ=new $APP.F(null,
41
41
  "hue-strip","hue-strip",938856876),kJ=new $APP.F(null,"area-thumb","area-thumb",1471343090),NI=new $APP.F(null,"swatches","swatches",2033601707),lJ=new $APP.F(null,"strips","strips",-1564791997),EI=new $APP.F(null,"s","s",1705939918),zI=new $APP.F(null,"r","r",-471384190),PI=new $APP.F(null,"alpha?","alpha?",1329751525),FI=new $APP.F(null,"l","l",1395893423),DI=new $APP.F(null,"h","h",1109658740),AI=new $APP.F(null,"b","b",1482224470),$I=new $APP.F(null,"sat","sat",1064662667),BI=new $APP.F(null,
42
- "a","a",-2123407586),iJ=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),QI=new $APP.F(null,"hex","hex",41691346),uJ=new $APP.F(null,"eyedropper","eyedropper",-1786107588),nJ=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var pca=new $APP.ch(null,new $APP.M(null,2,["inline",null,"popover",null],null),null),Jca="value alpha swatches disabled readonly name mode open label".split(" "),Hca=$APP.Gg([$APP.bu,$APP.zm,$APP.Uj,$APP.Ui,$APP.Sl,NI,$APP.iu,$APP.Wj,OI],[new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"open"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,
42
+ "a","a",-2123407586),iJ=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),QI=new $APP.F(null,"hex","hex",41691346),uJ=new $APP.F(null,"eyedropper","eyedropper",-1786107588),nJ=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var qca=new $APP.ch(null,new $APP.M(null,2,["inline",null,"popover",null],null),null),Kca="value alpha swatches disabled readonly name mode open label".split(" "),Ica=$APP.Gg([$APP.cu,$APP.zm,$APP.Uj,$APP.Ui,$APP.Sl,NI,$APP.ju,$APP.Wj,OI],[new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"open"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,
43
43
  "mode"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"swatches"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"label"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"alpha"],null)]);
44
- $APP.je(["x-color-picker-input",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ui,$APP.X,DI,$APP.Y,EI,$APP.Y,FI,$APP.Y,BI,$APP.Y],null),$APP.fu,!1],null),"x-color-picker-change",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ui,$APP.X,DI,$APP.Y,EI,$APP.Y,FI,$APP.Y,BI,$APP.Y],null),$APP.fu,!0],null)]);var xI=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var uca=new $APP.ch(null,new $APP.M(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),dJ=new $APP.ch(null,new $APP.M(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),gJ=new $APP.J(null,20,5,$APP.K,[new $APP.J(null,4,5,$APP.K,["area","pointerdown","area-down",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointermove","area-move",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointerup","area-up",!1],null),new $APP.J(null,4,5,$APP.K,
44
+ $APP.je(["x-color-picker-input",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ui,$APP.X,DI,$APP.Y,EI,$APP.Y,FI,$APP.Y,BI,$APP.Y],null),$APP.gu,!1],null),"x-color-picker-change",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ui,$APP.X,DI,$APP.Y,EI,$APP.Y,FI,$APP.Y,BI,$APP.Y],null),$APP.gu,!0],null)]);var xI=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var vca=new $APP.ch(null,new $APP.M(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),dJ=new $APP.ch(null,new $APP.M(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),gJ=new $APP.J(null,20,5,$APP.K,[new $APP.J(null,4,5,$APP.K,["area","pointerdown","area-down",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointermove","area-move",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointerup","area-up",!1],null),new $APP.J(null,4,5,$APP.K,
45
45
  ["area","keydown","area-key",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointerdown","hue-down",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointermove","hue-move",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointerup","hue-up",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","keydown","hue-key",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","pointerdown","alpha-down",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","pointermove","alpha-move",!1],null),new $APP.J(null,
46
46
  4,5,$APP.K,["alpha-strip","pointerup","alpha-up",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","keydown","alpha-key",!1],null),new $APP.J(null,4,5,$APP.K,["hex-input","keydown","hex-key",!1],null),new $APP.J(null,4,5,$APP.K,["swatches","click","swatch",!1],null),new $APP.J(null,4,5,$APP.K,["eyedropper","click","eyedrop",!1],null),new $APP.J(null,4,5,$APP.K,["copy","click","copy",!1],null),new $APP.J(null,4,5,$APP.K,["trigger","click","trigger",!1],null),new $APP.J(null,4,5,$APP.K,["panel","keydown",
47
- "panel-key",!1],null),new $APP.J(null,4,5,$APP.K,["panel","pointerdown","panel-pd",!1],null),new $APP.J(null,4,5,$APP.K,[$APP.Zt,"pointerdown","doc-click",!0],null)],null);$APP.fa("baredom.exports.x_color_picker.init",vJ);export const init=vJ;
47
+ "panel-key",!1],null),new $APP.J(null,4,5,$APP.K,["panel","pointerdown","panel-pd",!1],null),new $APP.J(null,4,5,$APP.K,[$APP.$t,"pointerdown","doc-click",!0],null)],null);$APP.fa("baredom.exports.x_color_picker.init",vJ);export const init=vJ;
@@ -1,31 +1,31 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Tw=function(a,b){if(b==null||$APP.z.j(b,""))return a;var c=b.toLowerCase();return $APP.Ie(function(d){d=$APP.G(d);d=$APP.C(d,$APP.Wj);return $APP.I(-1,d.toLowerCase().indexOf(c))},a)},Uw=function(a,b){return b!=null?$APP.pe(function(c){return $APP.z.j($APP.Ui.i(c),b)?c:null},a):null},Vw=function(a,b){if(b!=null&&$APP.I(b,"")){var c=a.toLowerCase().indexOf(b.toLowerCase());if($APP.I(c,-1))return b=c+$APP.w(b),new $APP.M(null,3,[$APP.Bu,a.substring(0,c),$APP.Tq,a.substring(c,b),$APP.Vs,a.substring(b)],
3
- null)}return null},Ww=function(a){var b=$APP.l(a,"__xComboboxRefs");$APP.n(b)&&(b=$APP.l(b,"slot").assignedElements({flatten:!0}),b=$APP.Kf.m($APP.Ge,$APP.Yo.j($APP.De(function(c){return $APP.z.j("OPTION",c.tagName)}),$APP.ye.i(function(c){var d=c.getAttribute("value");return new $APP.M(null,2,[$APP.Ui,$APP.n(d)?d:c.textContent,$APP.Wj,c.textContent],null)})),$APP.Ec(b)),$APP.Q(a,"__xComboboxOptions",b))},Xw=function(a,b,c,d,e,f,h){$APP.T(b,"part","option");$APP.T(b,"role","option");$APP.T(b,"id",
4
- ""+$APP.P.i("x-cb-opt-")+$APP.P.i(c));$APP.T(b,"data-value",e);$APP.z.j(c,d)&&$APP.T(b,"data-active","");$APP.n(f)?(b.appendChild(document.createTextNode($APP.Bu.i(f))),c=document.createElement("b"),c.textContent=$APP.Tq.i(f),b.appendChild(c),b.appendChild(document.createTextNode($APP.Vs.i(f)))):b.textContent=h;a.appendChild(b)},Yw=function(a,b){var c=document.createElement("div");$APP.T(c,"part","empty-msg");c.textContent="No matches";a.appendChild(c);return $APP.U(b,"aria-activedescendant")},Zw=
5
- function(a,b,c,d,e){c=$APP.q($APP.se($APP.co,c));for(var f=null,h=0,k=0;;)if(k<h){var m=f.C(null,k),r=$APP.B(m,0,null);m=$APP.B(m,1,null);var u=document.createElement("div"),x=Vw($APP.Wj.i(m),function(){var y=$APP.l(a,"_query");return $APP.n(y)?y:""}());Xw(a,u,r,d,$APP.Ui.i(m),x,$APP.Wj.i(m));$APP.z.j($APP.Ui.i(m),e)&&$APP.T(u,"aria-selected","true");k+=1}else if(c=$APP.q(c))$APP.$c(c)?(h=$APP.Fb(c),c=$APP.Gb(c),f=h,h=$APP.w(h)):(h=$APP.t(c),f=$APP.B(h,0,null),h=$APP.B(h,1,null),k=document.createElement("div"),
6
- r=Vw($APP.Wj.i(h),function(){var y=$APP.l(a,"_query");return $APP.n(y)?y:""}()),Xw(a,k,f,d,$APP.Ui.i(h),r,$APP.Wj.i(h)),$APP.z.j($APP.Ui.i(h),e)&&$APP.T(k,"aria-selected","true"),c=$APP.v(c),f=null,h=0),k=0;else break;return d>=0?$APP.T(b,"aria-activedescendant",""+$APP.P.i("x-cb-opt-")+$APP.P.i(d)):$APP.U(b,"aria-activedescendant")},$w=function(a){var b=$APP.l(a,"__xComboboxRefs");if($APP.n(b)){var c=$APP.l(b,"panel");b=$APP.l(b,"input");var d=function(){var k=$APP.l(a,"__xComboboxQuery");return $APP.n(k)?
7
- k:""}(),e=Tw($APP.l(a,"__xComboboxOptions"),d),f=function(){var k=$APP.l(a,"__xComboboxActiveIdx");return $APP.n(k)?k:0}();f=$APP.Tc(e)?-1:$APP.po.j(f,$APP.w(e)-1);var h=function(){var k=a.getAttribute("value");return $APP.n(k)?k:""}();c.textContent="";$APP.Q(c,"_query",d);return $APP.Tc(e)?Yw(c,b):Zw(c,b,e,f,h)}return null},bx=function(a){var b=new $APP.M(null,7,[$APP.Bj,a.getAttribute("value"),$APP.Cj,a.getAttribute("placeholder"),$APP.Aj,a.getAttribute("name"),$APP.Ej,a.hasAttribute("disabled"),
8
- $APP.Fj,a.hasAttribute("required"),$APP.jq,a.hasAttribute("open"),$APP.iv,a.getAttribute("placement")],null);var c=$APP.G(b),d=$APP.C(c,$APP.Bj),e=$APP.C(c,$APP.Cj),f=$APP.C(c,$APP.Aj),h=$APP.C(c,$APP.Ej),k=$APP.C(c,$APP.Fj);b=$APP.C(c,$APP.jq);c=$APP.C(c,$APP.iv);d=$APP.n(d)?d:"";e=$APP.n(e)?e:"";f=$APP.n(f)?f:"";h=$APP.D(h);k=$APP.D(k);b=$APP.D(b);c=$APP.ed(ax,c)?c:"bottom-start";b=new $APP.M(null,7,[$APP.Ui,d,$APP.Vj,e,$APP.Uj,f,$APP.Xj,h,$APP.Yj,k,$APP.Hu,b,$APP.Ar,c],null);$APP.I($APP.l(a,"__xComboboxModel"),
9
- b)?(d=$APP.l(a,"__xComboboxRefs"),$APP.n(d)?(c=$APP.l(d,"input"),k=$APP.l(d,"panel"),d=Uw($APP.l(a,"__xComboboxOptions"),$APP.Ui.i(b)),f=$APP.G(b),e=$APP.C(f,$APP.Vj),h=$APP.C(f,$APP.Xj),f=$APP.C(f,$APP.Hu),c.placeholder=e,c.disabled=h,$APP.T(c,"aria-expanded",""+$APP.P.i(f)),e=$APP.G(b),e=$APP.C(e,$APP.Ar),$APP.T(k,"data-placement",e),k=$APP.G(b),$APP.C(k,$APP.Ui),k=$APP.C(k,$APP.Hu),$APP.n(k)||(c.value=$APP.n(d)?$APP.Wj.i(d):""),c=$APP.G(b),c=$APP.C(c,$APP.Ui),$APP.I(c,"")?$APP.T(a,"data-has-value",
10
- ""):$APP.U(a,"data-has-value"),$APP.n($APP.Hu.i(b))&&$w(a),a=$APP.Q(a,"__xComboboxModel",b)):a=null):a=null;return a},cx=function(a,b){return $APP.p(a.hasAttribute("disabled"))&&$APP.p(a.hasAttribute("open"))&&$APP.jj(a,"x-combobox-toggle",{open:!0,source:b})?($APP.Q(a,"__xComboboxQuery",""),$APP.Q(a,"__xComboboxActiveIdx",0),$APP.T(a,"open",""),a=$APP.l(a,"__xComboboxRefs"),$APP.n(a)?$APP.l(a,"input").select():null):null},dx=function(a,b){return $APP.n(a.hasAttribute("open"))&&$APP.jj(a,"x-combobox-toggle",
11
- {open:!1,source:b})?($APP.Q(a,"__xComboboxQuery",""),$APP.Q(a,"__xComboboxActiveIdx",0),$APP.U(a,"open")):null},ex=function(a,b,c){var d=a.getAttribute("value");return $APP.jj(a,"x-combobox-change-request",{value:b,label:c,previousValue:$APP.n(d)?d:""})?($APP.T(a,"value",b),d=$APP.l(a,"__xComboboxRefs"),$APP.n(d)&&($APP.l(d,"input").value=c),dx(a,"select"),$APP.hj(a,"x-combobox-change",{value:b,label:c})):null},fx=function(a,b){var c=Tw($APP.l(a,"__xComboboxOptions"),function(){var e=$APP.l(a,"__xComboboxQuery");
12
- return $APP.n(e)?e:""}());c=$APP.w(c);var d=function(){var e=$APP.l(a,"__xComboboxActiveIdx");return $APP.n(e)?e:0}();b=$APP.z.j(b,$APP.Dr)?c===0?-1:$APP.ud(($APP.n(d)?d:-1)+1,c):c===0?-1:$APP.ud(($APP.n(d)?d:c)-1,c);$APP.Q(a,"__xComboboxActiveIdx",b);$w(a);b=$APP.l(a,"__xComboboxRefs");return $APP.n(b)?(b=$APP.l(b,"panel").querySelector("["+$APP.P.i("data-active")+"]"),$APP.n(b)?b.scrollIntoView({block:"nearest"}):null):null},gx=function(a){var b=Tw($APP.l(a,"__xComboboxOptions"),function(){var c=
13
- $APP.l(a,"__xComboboxQuery");return $APP.n(c)?c:""}());b=$APP.B(b,function(){var c=$APP.l(a,"__xComboboxActiveIdx");return $APP.n(c)?c:0}(),null);return $APP.n(b)?ex(a,$APP.Ui.i(b),$APP.Wj.i(b)):null},hx=function(a,b){return $APP.n(a.hasAttribute("open"))?(b=$APP.Fc(b.composedPath()),b=$APP.pe(function(c){return c===a},b),$APP.n(b)?null:dx(a,"outside-click")):null},kx=function(a){var b=$APP.l(a,"__xComboboxRefs");if($APP.n(b)){for(var c={},d=$APP.q(ix),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=
2
+ var Uw=function(a,b){if(b==null||$APP.z.j(b,""))return a;var c=b.toLowerCase();return $APP.Ie(function(d){d=$APP.G(d);d=$APP.C(d,$APP.Wj);return $APP.I(-1,d.toLowerCase().indexOf(c))},a)},Vw=function(a,b){return b!=null?$APP.pe(function(c){return $APP.z.j($APP.Ui.i(c),b)?c:null},a):null},Ww=function(a,b){if(b!=null&&$APP.I(b,"")){var c=a.toLowerCase().indexOf(b.toLowerCase());if($APP.I(c,-1))return b=c+$APP.w(b),new $APP.M(null,3,[$APP.Cu,a.substring(0,c),$APP.Uq,a.substring(c,b),$APP.Ws,a.substring(b)],
3
+ null)}return null},Xw=function(a){var b=$APP.l(a,"__xComboboxRefs");$APP.n(b)&&(b=$APP.l(b,"slot").assignedElements({flatten:!0}),b=$APP.Kf.m($APP.Ge,$APP.Zo.j($APP.De(function(c){return $APP.z.j("OPTION",c.tagName)}),$APP.ye.i(function(c){var d=c.getAttribute("value");return new $APP.M(null,2,[$APP.Ui,$APP.n(d)?d:c.textContent,$APP.Wj,c.textContent],null)})),$APP.Ec(b)),$APP.Q(a,"__xComboboxOptions",b))},Yw=function(a,b,c,d,e,f,h){$APP.T(b,"part","option");$APP.T(b,"role","option");$APP.T(b,"id",
4
+ ""+$APP.P.i("x-cb-opt-")+$APP.P.i(c));$APP.T(b,"data-value",e);$APP.z.j(c,d)&&$APP.T(b,"data-active","");$APP.n(f)?(b.appendChild(document.createTextNode($APP.Cu.i(f))),c=document.createElement("b"),c.textContent=$APP.Uq.i(f),b.appendChild(c),b.appendChild(document.createTextNode($APP.Ws.i(f)))):b.textContent=h;a.appendChild(b)},Zw=function(a,b){var c=document.createElement("div");$APP.T(c,"part","empty-msg");c.textContent="No matches";a.appendChild(c);return $APP.U(b,"aria-activedescendant")},$w=
5
+ function(a,b,c,d,e){c=$APP.q($APP.se($APP.eo,c));for(var f=null,h=0,k=0;;)if(k<h){var m=f.C(null,k),r=$APP.B(m,0,null);m=$APP.B(m,1,null);var u=document.createElement("div"),x=Ww($APP.Wj.i(m),function(){var y=$APP.l(a,"_query");return $APP.n(y)?y:""}());Yw(a,u,r,d,$APP.Ui.i(m),x,$APP.Wj.i(m));$APP.z.j($APP.Ui.i(m),e)&&$APP.T(u,"aria-selected","true");k+=1}else if(c=$APP.q(c))$APP.$c(c)?(h=$APP.Fb(c),c=$APP.Gb(c),f=h,h=$APP.w(h)):(h=$APP.t(c),f=$APP.B(h,0,null),h=$APP.B(h,1,null),k=document.createElement("div"),
6
+ r=Ww($APP.Wj.i(h),function(){var y=$APP.l(a,"_query");return $APP.n(y)?y:""}()),Yw(a,k,f,d,$APP.Ui.i(h),r,$APP.Wj.i(h)),$APP.z.j($APP.Ui.i(h),e)&&$APP.T(k,"aria-selected","true"),c=$APP.v(c),f=null,h=0),k=0;else break;return d>=0?$APP.T(b,"aria-activedescendant",""+$APP.P.i("x-cb-opt-")+$APP.P.i(d)):$APP.U(b,"aria-activedescendant")},ax=function(a){var b=$APP.l(a,"__xComboboxRefs");if($APP.n(b)){var c=$APP.l(b,"panel");b=$APP.l(b,"input");var d=function(){var k=$APP.l(a,"__xComboboxQuery");return $APP.n(k)?
7
+ k:""}(),e=Uw($APP.l(a,"__xComboboxOptions"),d),f=function(){var k=$APP.l(a,"__xComboboxActiveIdx");return $APP.n(k)?k:0}();f=$APP.Tc(e)?-1:$APP.qo.j(f,$APP.w(e)-1);var h=function(){var k=a.getAttribute("value");return $APP.n(k)?k:""}();c.textContent="";$APP.Q(c,"_query",d);return $APP.Tc(e)?Zw(c,b):$w(c,b,e,f,h)}return null},cx=function(a){var b=new $APP.M(null,7,[$APP.Bj,a.getAttribute("value"),$APP.Cj,a.getAttribute("placeholder"),$APP.Aj,a.getAttribute("name"),$APP.Ej,a.hasAttribute("disabled"),
8
+ $APP.Fj,a.hasAttribute("required"),$APP.kq,a.hasAttribute("open"),$APP.jv,a.getAttribute("placement")],null);var c=$APP.G(b),d=$APP.C(c,$APP.Bj),e=$APP.C(c,$APP.Cj),f=$APP.C(c,$APP.Aj),h=$APP.C(c,$APP.Ej),k=$APP.C(c,$APP.Fj);b=$APP.C(c,$APP.kq);c=$APP.C(c,$APP.jv);d=$APP.n(d)?d:"";e=$APP.n(e)?e:"";f=$APP.n(f)?f:"";h=$APP.D(h);k=$APP.D(k);b=$APP.D(b);c=$APP.ed(bx,c)?c:"bottom-start";b=new $APP.M(null,7,[$APP.Ui,d,$APP.Vj,e,$APP.Uj,f,$APP.Xj,h,$APP.Yj,k,$APP.Iu,b,$APP.Br,c],null);$APP.I($APP.l(a,"__xComboboxModel"),
9
+ b)?(d=$APP.l(a,"__xComboboxRefs"),$APP.n(d)?(c=$APP.l(d,"input"),k=$APP.l(d,"panel"),d=Vw($APP.l(a,"__xComboboxOptions"),$APP.Ui.i(b)),f=$APP.G(b),e=$APP.C(f,$APP.Vj),h=$APP.C(f,$APP.Xj),f=$APP.C(f,$APP.Iu),c.placeholder=e,c.disabled=h,$APP.T(c,"aria-expanded",""+$APP.P.i(f)),e=$APP.G(b),e=$APP.C(e,$APP.Br),$APP.T(k,"data-placement",e),k=$APP.G(b),$APP.C(k,$APP.Ui),k=$APP.C(k,$APP.Iu),$APP.n(k)||(c.value=$APP.n(d)?$APP.Wj.i(d):""),c=$APP.G(b),c=$APP.C(c,$APP.Ui),$APP.I(c,"")?$APP.T(a,"data-has-value",
10
+ ""):$APP.U(a,"data-has-value"),$APP.n($APP.Iu.i(b))&&ax(a),a=$APP.Q(a,"__xComboboxModel",b)):a=null):a=null;return a},dx=function(a,b){return $APP.p(a.hasAttribute("disabled"))&&$APP.p(a.hasAttribute("open"))&&$APP.jj(a,"x-combobox-toggle",{open:!0,source:b})?($APP.Q(a,"__xComboboxQuery",""),$APP.Q(a,"__xComboboxActiveIdx",0),$APP.T(a,"open",""),a=$APP.l(a,"__xComboboxRefs"),$APP.n(a)?$APP.l(a,"input").select():null):null},ex=function(a,b){return $APP.n(a.hasAttribute("open"))&&$APP.jj(a,"x-combobox-toggle",
11
+ {open:!1,source:b})?($APP.Q(a,"__xComboboxQuery",""),$APP.Q(a,"__xComboboxActiveIdx",0),$APP.U(a,"open")):null},fx=function(a,b,c){var d=a.getAttribute("value");return $APP.jj(a,"x-combobox-change-request",{value:b,label:c,previousValue:$APP.n(d)?d:""})?($APP.T(a,"value",b),d=$APP.l(a,"__xComboboxRefs"),$APP.n(d)&&($APP.l(d,"input").value=c),ex(a,"select"),$APP.hj(a,"x-combobox-change",{value:b,label:c})):null},gx=function(a,b){var c=Uw($APP.l(a,"__xComboboxOptions"),function(){var e=$APP.l(a,"__xComboboxQuery");
12
+ return $APP.n(e)?e:""}());c=$APP.w(c);var d=function(){var e=$APP.l(a,"__xComboboxActiveIdx");return $APP.n(e)?e:0}();b=$APP.z.j(b,$APP.Er)?c===0?-1:$APP.ud(($APP.n(d)?d:-1)+1,c):c===0?-1:$APP.ud(($APP.n(d)?d:c)-1,c);$APP.Q(a,"__xComboboxActiveIdx",b);ax(a);b=$APP.l(a,"__xComboboxRefs");return $APP.n(b)?(b=$APP.l(b,"panel").querySelector("["+$APP.P.i("data-active")+"]"),$APP.n(b)?b.scrollIntoView({block:"nearest"}):null):null},hx=function(a){var b=Uw($APP.l(a,"__xComboboxOptions"),function(){var c=
13
+ $APP.l(a,"__xComboboxQuery");return $APP.n(c)?c:""}());b=$APP.B(b,function(){var c=$APP.l(a,"__xComboboxActiveIdx");return $APP.n(c)?c:0}(),null);return $APP.n(b)?fx(a,$APP.Ui.i(b),$APP.Wj.i(b)):null},ix=function(a,b){return $APP.n(a.hasAttribute("open"))?(b=$APP.Fc(b.composedPath()),b=$APP.pe(function(c){return c===a},b),$APP.n(b)?null:ex(a,"outside-click")):null},lx=function(a){var b=$APP.l(a,"__xComboboxRefs");if($APP.n(b)){for(var c={},d=$APP.q(jx),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=
14
14
  $APP.B(k,0,null),r=$APP.B(k,1,null),u=$APP.B(k,2,null),x=$APP.B(k,3,null),y=$APP.l(b,m);k=function(H,O,S,R,Z,ka,ha,na,La,Na){return function(cb){return Na.j?Na.j(a,cb):Na.call(null,a,cb)}}(d,e,f,h,y,k,m,r,u,x,c,b,b);y.addEventListener(u,k);c[r]=k;h+=1}else if(m=$APP.q(d)){r=m;if($APP.$c(r))d=$APP.Fb(r),h=$APP.Gb(r),e=d,f=$APP.w(d),d=h;else{x=$APP.t(r);var A=$APP.B(x,0,null);u=$APP.B(x,1,null);y=$APP.B(x,2,null);var E=$APP.B(x,3,null);k=$APP.l(b,A);d=function(H,O,S,R,Z,ka,ha,na,La,Na){return function(cb){return Na.j?
15
- Na.j(a,cb):Na.call(null,a,cb)}}(d,e,f,h,k,x,A,u,y,E,r,m,c,b,b);k.addEventListener(y,d);c[u]=d;d=$APP.v(r);e=null;f=0}h=0}else break;d=$APP.q(jx);e=null;for(h=f=0;;)if(h<f)y=e.C(null,h),r=$APP.B(y,0,null),u=$APP.B(y,1,null),k=$APP.B(y,2,null),y=function(H,O,S,R,Z,ka,ha,na){return function(La){return na.j?na.j(a,La):na.call(null,a,La)}}(d,e,f,h,y,r,u,k,c,b,b),a.addEventListener(u,y),c[r]=y,h+=1;else if(k=$APP.q(d))r=k,$APP.$c(r)?(d=$APP.Fb(r),h=$APP.Gb(r),e=d,f=$APP.w(d),d=h):(m=$APP.t(r),u=$APP.B(m,
16
- 0,null),y=$APP.B(m,1,null),x=$APP.B(m,2,null),d=function(H,O,S,R,Z,ka,ha,na){return function(La){return na.j?na.j(a,La):na.call(null,a,La)}}(d,e,f,h,m,u,y,x,r,k,c,b,b),a.addEventListener(y,d),c[u]=d,d=$APP.v(r),e=null,f=0),h=0;else break;$APP.Q(a,"__xComboboxHandlers",c)}},lx=function(a){var b=$APP.l(a,"__xComboboxHandlers");if($APP.n(b)){var c=$APP.l(a,"__xComboboxRefs");if($APP.n(c)){for(var d=$APP.q(ix),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,null),r=$APP.B(k,1,null),u=$APP.B(k,
17
- 2,null);$APP.B(k,3,null);var x=$APP.l(c,m),y=$APP.l(b,r);$APP.n(function(){var H=x;return $APP.n(H)?y:H}())&&x.removeEventListener(u,y);h+=1}else if(d=$APP.q(d)){if($APP.$c(d))f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f);else{e=$APP.t(d);f=$APP.B(e,0,null);h=$APP.B(e,1,null);k=$APP.B(e,2,null);$APP.B(e,3,null);var A=$APP.l(c,f),E=$APP.l(b,h);$APP.n(function(){var H=A;return $APP.n(H)?E:H}())&&A.removeEventListener(k,E);d=$APP.v(d);e=null;f=0}h=0}else break;c=$APP.q(jx);d=null;for(f=e=0;;)if(f<e)k=d.C(null,
18
- f),m=$APP.B(k,0,null),h=$APP.B(k,1,null),$APP.B(k,2,null),k=$APP.l(b,m),$APP.n(k)&&a.removeEventListener(h,k),f+=1;else if(c=$APP.q(c))$APP.$c(c)?(e=$APP.Fb(c),c=$APP.Gb(c),d=e,e=$APP.w(e)):(e=$APP.t(c),f=$APP.B(e,0,null),d=$APP.B(e,1,null),$APP.B(e,2,null),e=$APP.l(b,f),$APP.n(e)&&a.removeEventListener(d,e),c=$APP.v(c),d=null,e=0),f=0;else break}$APP.Q(a,"__xComboboxHandlers",null)}},mx=function(a){return setTimeout(function(){if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?a.hasAttribute("open"):
19
- d}())){var b=function(d){return hx(a,d)},c=$APP.l(a,"__xComboboxHandlers");$APP.n(c)&&(c.docClick=b);return document.addEventListener("click",b)}return null},0)},nx=function(a){a=$APP.l(a,"__xComboboxHandlers");if($APP.n(a)){var b=$APP.l(a,"docClick");if($APP.n(b)){document.removeEventListener("click",b);a.docClick=null;return}}return null},ox=function(a){if(!$APP.n($APP.l(a,"__xComboboxRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=""+$APP.P.i("x-cb-lb-")+$APP.P.i(crypto.randomUUID()),
15
+ Na.j(a,cb):Na.call(null,a,cb)}}(d,e,f,h,k,x,A,u,y,E,r,m,c,b,b);k.addEventListener(y,d);c[u]=d;d=$APP.v(r);e=null;f=0}h=0}else break;d=$APP.q(kx);e=null;for(h=f=0;;)if(h<f)y=e.C(null,h),r=$APP.B(y,0,null),u=$APP.B(y,1,null),k=$APP.B(y,2,null),y=function(H,O,S,R,Z,ka,ha,na){return function(La){return na.j?na.j(a,La):na.call(null,a,La)}}(d,e,f,h,y,r,u,k,c,b,b),a.addEventListener(u,y),c[r]=y,h+=1;else if(k=$APP.q(d))r=k,$APP.$c(r)?(d=$APP.Fb(r),h=$APP.Gb(r),e=d,f=$APP.w(d),d=h):(m=$APP.t(r),u=$APP.B(m,
16
+ 0,null),y=$APP.B(m,1,null),x=$APP.B(m,2,null),d=function(H,O,S,R,Z,ka,ha,na){return function(La){return na.j?na.j(a,La):na.call(null,a,La)}}(d,e,f,h,m,u,y,x,r,k,c,b,b),a.addEventListener(y,d),c[u]=d,d=$APP.v(r),e=null,f=0),h=0;else break;$APP.Q(a,"__xComboboxHandlers",c)}},mx=function(a){var b=$APP.l(a,"__xComboboxHandlers");if($APP.n(b)){var c=$APP.l(a,"__xComboboxRefs");if($APP.n(c)){for(var d=$APP.q(jx),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,null),r=$APP.B(k,1,null),u=$APP.B(k,
17
+ 2,null);$APP.B(k,3,null);var x=$APP.l(c,m),y=$APP.l(b,r);$APP.n(function(){var H=x;return $APP.n(H)?y:H}())&&x.removeEventListener(u,y);h+=1}else if(d=$APP.q(d)){if($APP.$c(d))f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f);else{e=$APP.t(d);f=$APP.B(e,0,null);h=$APP.B(e,1,null);k=$APP.B(e,2,null);$APP.B(e,3,null);var A=$APP.l(c,f),E=$APP.l(b,h);$APP.n(function(){var H=A;return $APP.n(H)?E:H}())&&A.removeEventListener(k,E);d=$APP.v(d);e=null;f=0}h=0}else break;c=$APP.q(kx);d=null;for(f=e=0;;)if(f<e)k=d.C(null,
18
+ f),m=$APP.B(k,0,null),h=$APP.B(k,1,null),$APP.B(k,2,null),k=$APP.l(b,m),$APP.n(k)&&a.removeEventListener(h,k),f+=1;else if(c=$APP.q(c))$APP.$c(c)?(e=$APP.Fb(c),c=$APP.Gb(c),d=e,e=$APP.w(e)):(e=$APP.t(c),f=$APP.B(e,0,null),d=$APP.B(e,1,null),$APP.B(e,2,null),e=$APP.l(b,f),$APP.n(e)&&a.removeEventListener(d,e),c=$APP.v(c),d=null,e=0),f=0;else break}$APP.Q(a,"__xComboboxHandlers",null)}},nx=function(a){return setTimeout(function(){if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?a.hasAttribute("open"):
19
+ d}())){var b=function(d){return ix(a,d)},c=$APP.l(a,"__xComboboxHandlers");$APP.n(c)&&(c.docClick=b);return document.addEventListener("click",b)}return null},0)},ox=function(a){a=$APP.l(a,"__xComboboxHandlers");if($APP.n(a)){var b=$APP.l(a,"docClick");if($APP.n(b)){document.removeEventListener("click",b);a.docClick=null;return}}return null},px=function(a){if(!$APP.n($APP.l(a,"__xComboboxRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=""+$APP.P.i("x-cb-lb-")+$APP.P.i(crypto.randomUUID()),
20
20
  e=document.createElement("input");$APP.T(e,"part","input");$APP.T(e,"type","text");$APP.T(e,"role","combobox");$APP.T(e,"aria-expanded","false");$APP.T(e,"aria-autocomplete","list");$APP.T(e,"aria-controls",d);$APP.T(e,"autocomplete","off");var f=document.createElement("button");$APP.T(f,"part","clear");$APP.T(f,"type","button");$APP.T(f,"aria-label","Clear");$APP.T(f,"tabindex","-1");f.textContent="×";var h=document.createElement("span");$APP.T(h,"part","chevron");$APP.T(h,"aria-hidden","true");
21
21
  h.innerHTML='\x3csvg width\x3d"12" height\x3d"12" viewBox\x3d"0 0 12 12" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M2.5 4.5L6 8L9.5 4.5" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"/\x3e\x3c/svg\x3e';var k=document.createElement("div");$APP.T(k,"part","wrapper");k.appendChild(e);k.appendChild(f);k.appendChild(h);var m=document.createElement("div");$APP.T(m,"part","panel");$APP.T(m,"role","listbox");
22
22
  $APP.T(m,"id",d);$APP.T(m,"data-placement","bottom-start");d=document.createElement("slot");var r={};c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-combobox-bg:var(--x-color-surface,#ffffff);--x-combobox-fg:var(--x-color-text,#0f172a);--x-combobox-placeholder:var(--x-color-text-muted,#94a3b8);--x-combobox-border:1px solid var(--x-color-border,#e2e8f0);--x-combobox-border-hover:1px solid var(--x-color-border,#cbd5e1);--x-combobox-border-focus:1px solid var(--x-color-focus-ring,#60a5fa);--x-combobox-radius:var(--x-radius-md,6px);--x-combobox-height:2.25rem;--x-combobox-font-size:var(--x-font-size-sm,0.9375rem);--x-combobox-padding:0 0.625rem;--x-combobox-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-combobox-shadow:var(--x-shadow-sm,0 1px 2px rgba(0,0,0,0.05));--x-combobox-disabled-opacity:var(--x-opacity-disabled,0.55);--x-combobox-chevron-color:var(--x-color-text-muted,#64748b);--x-combobox-panel-bg:var(--x-color-bg,#ffffff);--x-combobox-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-combobox-panel-radius:var(--x-radius-md,8px);--x-combobox-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-combobox-panel-max-height:16rem;--x-combobox-panel-offset:4px;--x-combobox-option-padding:0.5rem 0.625rem;--x-combobox-option-hover-bg:var(--x-color-surface-hover,#f1f5f9);--x-combobox-option-active-bg:var(--x-color-primary,#3b82f6);--x-combobox-option-active-fg:#ffffff;--x-combobox-transition-duration:var(--x-transition-duration,150ms);--x-combobox-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-combobox-bg:var(--x-color-surface,#1e293b);--x-combobox-fg:var(--x-color-text,#e2e8f0);--x-combobox-placeholder:var(--x-color-text-muted,#64748b);--x-combobox-border:1px solid var(--x-color-border,#334155);--x-combobox-border-hover:1px solid var(--x-color-border,#475569);--x-combobox-border-focus:1px solid var(--x-color-focus-ring,#93c5fd);--x-combobox-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-combobox-shadow:var(--x-shadow-sm,0 1px 2px rgba(0,0,0,0.2));--x-combobox-chevron-color:var(--x-color-text-muted,#94a3b8);--x-combobox-panel-bg:var(--x-color-bg,#1e293b);--x-combobox-panel-border:1px solid var(--x-color-border,#334155);--x-combobox-panel-shadow:var(--x-shadow-md,0 4px 24px rgba(0,0,0,0.4));--x-combobox-option-hover-bg:var(--x-color-surface-hover,#334155);--x-combobox-option-active-bg:var(--x-color-primary,#3b82f6);}}[part\x3dwrapper]{display:flex;align-items:center;height:var(--x-combobox-height);background:var(--x-combobox-bg);border:var(--x-combobox-border);border-radius:var(--x-combobox-radius);box-shadow:var(--x-combobox-shadow);padding:var(--x-combobox-padding);cursor:text;transition:border var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),box-shadow var(--x-combobox-transition-duration) var(--x-combobox-transition-easing);}[part\x3dwrapper]:hover{border:var(--x-combobox-border-hover);}:host(:focus-within) [part\x3dwrapper]{border:var(--x-combobox-border-focus);box-shadow:0 0 0 2px var(--x-combobox-focus-ring);}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-combobox-disabled-opacity);cursor:default;pointer-events:none;}[part\x3dinput]{all:unset;flex:1;min-width:0;height:100%;font-size:var(--x-combobox-font-size);font-family:inherit;color:var(--x-combobox-fg);}[part\x3dinput]::placeholder{color:var(--x-combobox-placeholder);}[part\x3dclear]{all:unset;display:none;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;font-size:0.875rem;color:var(--x-combobox-chevron-color);cursor:pointer;flex-shrink:0;border-radius:2px;}[part\x3dclear]:hover{color:var(--x-combobox-fg);}[part\x3dclear]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-combobox-focus-ring);}:host([data-has-value]) [part\x3dclear]{display:inline-flex;}:host([disabled]) [part\x3dclear]{display:none;}[part\x3dchevron]{display:inline-flex;align-items:center;color:var(--x-combobox-chevron-color);flex-shrink:0;margin-left:0.25rem;transition:transform 200ms ease;pointer-events:none;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dpanel]{position:absolute;z-index:var(--x-z-dropdown,1000);box-sizing:border-box;width:100%;background:var(--x-combobox-panel-bg);border:var(--x-combobox-panel-border);border-radius:var(--x-combobox-panel-radius);box-shadow:var(--x-combobox-panel-shadow);padding:0.25rem 0;max-height:var(--x-combobox-panel-max-height);max-width:calc(100% - 0rem);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scaleY(0.95);transition:opacity var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),transform var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),visibility 0s var(--x-combobox-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scaleY(1);transition:opacity var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),transform var(--x-combobox-transition-duration) var(--x-combobox-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-combobox-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-combobox-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-combobox-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-combobox-panel-offset));right:0;transform-origin:bottom right;}[part\x3doption]{padding:var(--x-combobox-option-padding);font-size:var(--x-combobox-font-size);font-family:inherit;color:var(--x-combobox-fg);cursor:default;border-radius:4px;margin:0 0.25rem;}[part\x3doption]:hover{background:var(--x-combobox-option-hover-bg);}[part\x3doption][data-active]{background:var(--x-combobox-option-active-bg);color:var(--x-combobox-option-active-fg);}[part\x3doption][data-active] b{color:inherit;}[part\x3doption] b{font-weight:700;}[part\x3dempty-msg]{padding:var(--x-combobox-option-padding);font-size:var(--x-combobox-font-size);color:var(--x-combobox-placeholder);font-style:italic;margin:0 0.25rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dwrapper]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}@media (pointer:coarse){:host{--x-combobox-height:2.75rem;}[part\x3dclear]{width:2.75rem;height:2.75rem;}[part\x3doption]{min-height:2.75rem;display:flex;align-items:center;}}";
23
- b.appendChild(c);b.appendChild(k);b.appendChild(m);b.appendChild(d);$APP.Q(a,"__xComboboxOptions",$APP.Ge);$APP.Q(a,"__xComboboxQuery","");$APP.Q(a,"__xComboboxActiveIdx",0);r.wrapper=k;r.input=e;r.clear=f;r.chevron=h;r.panel=m;r.slot=d;$APP.Q(a,"__xComboboxRefs",r)}lx(a);nx(a);kx(a);Ww(a);return bx(a)},px=function(a){lx(a);nx(a);return $APP.Q(a,"__xComboboxModel",null)},qx=function(a,b,c,d){return $APP.I(c,d)&&$APP.n($APP.l(a,"__xComboboxRefs"))?(bx(a),$APP.z.j(b,"open")?$APP.n(a.hasAttribute("open"))?
24
- mx(a):nx(a):null):null},sx=function(a){$APP.xj(a,rx);Object.defineProperty(a,"show",{value:function(){return cx(this,"programmatic")},writable:!0,configurable:!0});return Object.defineProperty(a,"hide",{value:function(){return dx(this,"programmatic")},writable:!0,configurable:!0})},ux=function(){return $APP.zi("x-combobox",new $APP.M(null,5,[$APP.ji,tx,$APP.hi,ox,$APP.ei,px,$APP.di,qx,$APP.ii,sx],null))};var ax=new $APP.ch(null,new $APP.M(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),tx="value placeholder name disabled required open placement".split(" "),rx=new $APP.M(null,7,[$APP.Ui,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null),$APP.Vj,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"placeholder"],null),$APP.Uj,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),$APP.zm,new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"disabled"],null),$APP.ps,new $APP.M(null,
25
- 2,[$APP.N,$APP.vj,$APP.W,"required"],null),$APP.bu,new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"open"],null),$APP.Ar,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"placement"],null)],null);
26
- $APP.je(["x-combobox-change-request",new $APP.M(null,2,[$APP.fu,!0,$APP.V,new $APP.M(null,3,[$APP.Ui,$APP.X,$APP.Wj,$APP.X,$APP.Gs,$APP.X],null)],null),"x-combobox-change",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,2,[$APP.Ui,$APP.X,$APP.Wj,$APP.X],null)],null),"x-combobox-input",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,1,[$APP.pq,$APP.X],null)],null),"x-combobox-toggle",new $APP.M(null,2,[$APP.fu,!0,$APP.V,new $APP.M(null,2,[$APP.bu,$APP.vj,$APP.lt,$APP.X],null)],null)]);var ix=new $APP.J(null,8,5,$APP.K,[new $APP.J(null,4,5,$APP.K,["input","inputFocus","focus",function(a){return cx(a,"focus")}],null),new $APP.J(null,4,5,$APP.K,["input","inputInput","input",function(a,b){b=b.target.value;$APP.Q(a,"__xComboboxQuery",b);$APP.Q(a,"__xComboboxActiveIdx",0);$APP.n(a.hasAttribute("open"))||cx(a,"input");$w(a);return $APP.hj(a,"x-combobox-input",{query:b})}],null),new $APP.J(null,4,5,$APP.K,["input","inputKeydown","keydown",function(a,b){var c=b.key;$APP.z.j(c,"ArrowDown")?
27
- (b.preventDefault(),a=$APP.n(a.hasAttribute("open"))?fx(a,$APP.Dr):cx(a,"keyboard")):$APP.z.j(c,"ArrowUp")?(b.preventDefault(),a=$APP.n(a.hasAttribute("open"))?fx(a,$APP.xr):cx(a,"keyboard")):$APP.z.j(c,"Enter")?$APP.n(a.hasAttribute("open"))?(b.preventDefault(),a=gx(a)):a=null:$APP.z.j(c,"Escape")?$APP.n(a.hasAttribute("open"))?(b.preventDefault(),dx(a,"escape"),a=$APP.l(a,"__xComboboxRefs"),a=$APP.n(a)?$APP.l(a,"input").focus():null):a=null:$APP.z.j(c,"Home")?$APP.n(a.hasAttribute("open"))?(b.preventDefault(),
28
- $APP.Q(a,"__xComboboxActiveIdx",0),a=$w(a)):a=null:$APP.z.j(c,"End")?$APP.n(a.hasAttribute("open"))?(b.preventDefault(),b=$APP.l(a,"__xComboboxQuery"),b=$APP.w(Tw($APP.l(a,"__xComboboxOptions"),$APP.n(b)?b:"")),$APP.Q(a,"__xComboboxActiveIdx",$APP.Wo.j(0,b-1)),a=$w(a)):a=null:a=null;return a}],null),new $APP.J(null,4,5,$APP.K,["clear","clearClick","click",function(a){var b=a.getAttribute("value");return $APP.jj(a,"x-combobox-change-request",{value:"",label:"",previousValue:$APP.n(b)?b:""})?($APP.U(a,
29
- "value"),$APP.U(a,"data-has-value"),b=$APP.l(a,"__xComboboxRefs"),$APP.n(b)&&(b=$APP.l(b,"input"),b.value="",b.focus()),$APP.hj(a,"x-combobox-change",{value:"",label:""})):null}],null),new $APP.J(null,4,5,$APP.K,["chevron","chevronPointerdown","pointerdown",function(a,b){b.preventDefault();if($APP.n(a.hasAttribute("open")))return dx(a,"pointer");cx(a,"pointer");a=$APP.l(a,"__xComboboxRefs");return $APP.n(a)?$APP.l(a,"input").focus():null}],null),new $APP.J(null,4,5,$APP.K,["panel","panelPointerdown",
30
- "pointerdown",function(a,b){return b.preventDefault()}],null),new $APP.J(null,4,5,$APP.K,["panel","panelClick","click",function(a,b){b=b.target;b=$APP.n(b.hasAttribute("data-value"))?b:b.closest("["+$APP.P.i("data-value")+"]");if($APP.n(b)){var c=b.getAttribute("data-value");return ex(a,c,b.textContent)}return null}],null),new $APP.J(null,4,5,$APP.K,["slot","slotchange","slotchange",function(a){Ww(a);$APP.Q(a,"__xComboboxModel",null);return bx(a)}],null)],null),jx=new $APP.J(null,1,5,$APP.K,[new $APP.J(null,
31
- 3,5,$APP.K,["focusout","focusout",function(a,b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.p(a.contains(b))?dx(a,"focusout"):null):null}],null)],null);$APP.fa("baredom.exports.x_combobox.init",ux);export const init=ux;
23
+ b.appendChild(c);b.appendChild(k);b.appendChild(m);b.appendChild(d);$APP.Q(a,"__xComboboxOptions",$APP.Ge);$APP.Q(a,"__xComboboxQuery","");$APP.Q(a,"__xComboboxActiveIdx",0);r.wrapper=k;r.input=e;r.clear=f;r.chevron=h;r.panel=m;r.slot=d;$APP.Q(a,"__xComboboxRefs",r)}mx(a);ox(a);lx(a);Xw(a);return cx(a)},qx=function(a){mx(a);ox(a);return $APP.Q(a,"__xComboboxModel",null)},rx=function(a,b,c,d){return $APP.I(c,d)&&$APP.n($APP.l(a,"__xComboboxRefs"))?(cx(a),$APP.z.j(b,"open")?$APP.n(a.hasAttribute("open"))?
24
+ nx(a):ox(a):null):null},tx=function(a){$APP.xj(a,sx);Object.defineProperty(a,"show",{value:function(){return dx(this,"programmatic")},writable:!0,configurable:!0});return Object.defineProperty(a,"hide",{value:function(){return ex(this,"programmatic")},writable:!0,configurable:!0})},vx=function(){return $APP.zi("x-combobox",new $APP.M(null,5,[$APP.ji,ux,$APP.hi,px,$APP.ei,qx,$APP.di,rx,$APP.ii,tx],null))};var bx=new $APP.ch(null,new $APP.M(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),ux="value placeholder name disabled required open placement".split(" "),sx=new $APP.M(null,7,[$APP.Ui,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null),$APP.Vj,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"placeholder"],null),$APP.Uj,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),$APP.zm,new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"disabled"],null),$APP.qs,new $APP.M(null,
25
+ 2,[$APP.N,$APP.vj,$APP.W,"required"],null),$APP.cu,new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"open"],null),$APP.Br,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"placement"],null)],null);
26
+ $APP.je(["x-combobox-change-request",new $APP.M(null,2,[$APP.gu,!0,$APP.V,new $APP.M(null,3,[$APP.Ui,$APP.X,$APP.Wj,$APP.X,$APP.Hs,$APP.X],null)],null),"x-combobox-change",new $APP.M(null,2,[$APP.gu,!1,$APP.V,new $APP.M(null,2,[$APP.Ui,$APP.X,$APP.Wj,$APP.X],null)],null),"x-combobox-input",new $APP.M(null,2,[$APP.gu,!1,$APP.V,new $APP.M(null,1,[$APP.qq,$APP.X],null)],null),"x-combobox-toggle",new $APP.M(null,2,[$APP.gu,!0,$APP.V,new $APP.M(null,2,[$APP.cu,$APP.vj,$APP.mt,$APP.X],null)],null)]);var jx=new $APP.J(null,8,5,$APP.K,[new $APP.J(null,4,5,$APP.K,["input","inputFocus","focus",function(a){return dx(a,"focus")}],null),new $APP.J(null,4,5,$APP.K,["input","inputInput","input",function(a,b){b=b.target.value;$APP.Q(a,"__xComboboxQuery",b);$APP.Q(a,"__xComboboxActiveIdx",0);$APP.n(a.hasAttribute("open"))||dx(a,"input");ax(a);return $APP.hj(a,"x-combobox-input",{query:b})}],null),new $APP.J(null,4,5,$APP.K,["input","inputKeydown","keydown",function(a,b){var c=b.key;$APP.z.j(c,"ArrowDown")?
27
+ (b.preventDefault(),a=$APP.n(a.hasAttribute("open"))?gx(a,$APP.Er):dx(a,"keyboard")):$APP.z.j(c,"ArrowUp")?(b.preventDefault(),a=$APP.n(a.hasAttribute("open"))?gx(a,$APP.yr):dx(a,"keyboard")):$APP.z.j(c,"Enter")?$APP.n(a.hasAttribute("open"))?(b.preventDefault(),a=hx(a)):a=null:$APP.z.j(c,"Escape")?$APP.n(a.hasAttribute("open"))?(b.preventDefault(),ex(a,"escape"),a=$APP.l(a,"__xComboboxRefs"),a=$APP.n(a)?$APP.l(a,"input").focus():null):a=null:$APP.z.j(c,"Home")?$APP.n(a.hasAttribute("open"))?(b.preventDefault(),
28
+ $APP.Q(a,"__xComboboxActiveIdx",0),a=ax(a)):a=null:$APP.z.j(c,"End")?$APP.n(a.hasAttribute("open"))?(b.preventDefault(),b=$APP.l(a,"__xComboboxQuery"),b=$APP.w(Uw($APP.l(a,"__xComboboxOptions"),$APP.n(b)?b:"")),$APP.Q(a,"__xComboboxActiveIdx",$APP.Xo.j(0,b-1)),a=ax(a)):a=null:a=null;return a}],null),new $APP.J(null,4,5,$APP.K,["clear","clearClick","click",function(a){var b=a.getAttribute("value");return $APP.jj(a,"x-combobox-change-request",{value:"",label:"",previousValue:$APP.n(b)?b:""})?($APP.U(a,
29
+ "value"),$APP.U(a,"data-has-value"),b=$APP.l(a,"__xComboboxRefs"),$APP.n(b)&&(b=$APP.l(b,"input"),b.value="",b.focus()),$APP.hj(a,"x-combobox-change",{value:"",label:""})):null}],null),new $APP.J(null,4,5,$APP.K,["chevron","chevronPointerdown","pointerdown",function(a,b){b.preventDefault();if($APP.n(a.hasAttribute("open")))return ex(a,"pointer");dx(a,"pointer");a=$APP.l(a,"__xComboboxRefs");return $APP.n(a)?$APP.l(a,"input").focus():null}],null),new $APP.J(null,4,5,$APP.K,["panel","panelPointerdown",
30
+ "pointerdown",function(a,b){return b.preventDefault()}],null),new $APP.J(null,4,5,$APP.K,["panel","panelClick","click",function(a,b){b=b.target;b=$APP.n(b.hasAttribute("data-value"))?b:b.closest("["+$APP.P.i("data-value")+"]");if($APP.n(b)){var c=b.getAttribute("data-value");return fx(a,c,b.textContent)}return null}],null),new $APP.J(null,4,5,$APP.K,["slot","slotchange","slotchange",function(a){Xw(a);$APP.Q(a,"__xComboboxModel",null);return cx(a)}],null)],null),kx=new $APP.J(null,1,5,$APP.K,[new $APP.J(null,
31
+ 3,5,$APP.K,["focusout","focusout",function(a,b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.p(a.contains(b))?ex(a,"focusout"):null):null}],null)],null);$APP.fa("baredom.exports.x_combobox.init",vx);export const init=vx;
@@ -1,29 +1,29 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var UD=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")?a:null):null},XD=function(a){if(a==null||$APP.p($APP.ra(a)))return $APP.Ge;for(var b=a.length,c=0,d=$APP.yb($APP.Ge);;){if($APP.z.j(c,b))return $APP.Ab(d);var e=a[c],f=""+$APP.P.i(function(){var E=e.id;return $APP.n(E)?E:c}()),h=""+$APP.P.i(function(){var E=e.label;return $APP.n(E)?E:""}()),k=UD(e.group),m=e.value,r=e.icon,u=$APP.z.j(!0,e.disabled),x=e.keywords;x=$APP.n($APP.ra(x))?x.join(" "):typeof x==="string"?x:"";var y=function(){var E=
3
- k;return $APP.n(E)?E:""}(),A=typeof m==="string"?m:"";y=(""+$APP.P.i(h)+" "+$APP.P.i(x)+" "+$APP.P.i(y)+" "+$APP.P.i(A)).toLowerCase();x=c+1;d=$APP.Vd(d,new $APP.M(null,7,[$APP.qt,f,$APP.Wj,h,VD,k,$APP.Ui,m,$APP.Cs,r,$APP.Xj,u,WD,y],null));c=x}},ZD=function(a,b){b=typeof b==="string"?b.trim():"";var c=$APP.I(b,"")?$APP.te(UD,$APP.Fi(b,/\s+/)):null;if($APP.Tc(c))return new $APP.M(null,2,[$APP.Ct,a,YD,$APP.Kf.j($APP.dh,$APP.te(VD,a))],null);a=$APP.Ie(function(d){return $APP.oe(function(e){return $APP.I(-1,
4
- WD.i(d).indexOf(e.toLowerCase()))},c)},a);return new $APP.M(null,2,[$APP.Ct,a,YD,$APP.Kf.j($APP.dh,$APP.te(VD,a))],null)},$D=function(a,b,c){var d=$APP.w(a);if(d>0)for(var e=1;;)if(e<=d){var f=$APP.ud(b+e*c,d),h=$APP.B(a,f,null),k=h;h=$APP.n(k)?$APP.p($APP.Xj.i(h)):k;if($APP.n(h))return f;e+=1}else return null;else return null},mE=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.jq);var c=$APP.C(b,$APP.Cj),d=$APP.C(b,$APP.Dj),e=$APP.C(b,aE),f=$APP.C(b,bE),h=$APP.C(b,cE),k=$APP.C(b,dE),m=$APP.C(b,eE),r=
5
- $APP.C(b,fE);b=$APP.C(b,gE);b=$APP.Ki(b);r=$APP.Ki(r);m=$APP.Ji(m);m=b&&!m;f=f!=null?$APP.Ji(f):m;k=$APP.Ki(k);return $APP.Gg([$APP.Vj,$APP.vq,hE,iE,jE,kE,$APP.Wj,$APP.Hu,lE,$APP.Xj],[function(){var u=UD(c);return $APP.n(u)?u:"Search…"}(),r,function(){var u=UD(e);return $APP.n(u)?u:"No results"}(),f,k,m,UD(d),$APP.D(a),b,$APP.Ji(h)])},nE=function(a){return mE($APP.Gg([$APP.Dj,aE,bE,cE,dE,eE,fE,gE,$APP.jq,$APP.Cj],[a.getAttribute("label"),a.getAttribute("empty-text"),a.getAttribute("close-on-scrim"),
6
- a.getAttribute("disabled"),a.getAttribute("close-on-escape"),a.getAttribute("no-scrim"),a.getAttribute("dismissible"),a.getAttribute("modal"),a.hasAttribute("open"),a.getAttribute("placeholder")]))},oE=function(a,b){var c=document.createElement("div");$APP.T(c,"part","group-header");$APP.T(c,"aria-hidden","true");c.textContent=b;a.appendChild(c)},pE=function(a,b,c,d){var e=document.createElement("div");$APP.T(e,"part","item");$APP.T(e,"role","option");$APP.T(e,"id",""+$APP.P.i("x-cp-item-")+$APP.P.i(b));
7
- $APP.T(e,"data-id",""+$APP.P.i($APP.qt.i(c)));$APP.T(e,"data-idx",""+$APP.P.i(b));$APP.T(e,"tabindex","-1");$APP.n($APP.Xj.i(c))&&$APP.T(e,"aria-disabled","true");e.textContent=$APP.Wj.i(c);$APP.z.j(b,d)&&$APP.T(e,"aria-selected","true");a.appendChild(e)},qE=function(a,b){$APP.U(a,"hidden");return $APP.n(b)?$APP.U(b,"aria-activedescendant"):null},rE=function(a,b,c,d,e){$APP.T(a,"hidden","");a=$APP.se($APP.co,d);for(var f=null;;)if(d=$APP.t(a),$APP.n(d)){var h=d;d=$APP.B(h,0,null);h=$APP.B(h,1,null);
8
- var k=VD.i(h);$APP.n(function(){var m=k;return $APP.n(m)?$APP.I(k,f):m}())&&oE(b,k);pE(b,d,h,e);a=$APP.gc(a);f=d=function(){var m=k;return $APP.n(m)?m:f}()}else break;return $APP.n(c)?$APP.T(c,"aria-activedescendant",""+$APP.P.i("x-cp-item-")+$APP.P.i(e)):null},sE=function(a){var b=$APP.l(a,"__xCommandPaletteRefs");if($APP.n(b)){var c=$APP.l(b,"list"),d=$APP.l(b,"empty");b=$APP.l(b,"input");var e=function(){var h=$APP.l(a,"__xCommandPaletteQuery");return $APP.n(h)?h:""}(),f=XD($APP.l(a,"__xCommandPaletteItems"));
9
- e=ZD(f,e);e=$APP.G(e);e=$APP.C(e,$APP.Ct);f=function(){var h=$APP.l(a,"__xCommandPaletteActiveIdx");return $APP.n(h)?h:0}();c.textContent="";return $APP.Tc(e)?qE(d,b):rE(d,c,b,e,f)}return null},tE=function(a){if($APP.n($APP.l(a,"__xCommandPaletteRefs"))){var b=nE(a);if($APP.I($APP.l(a,"__xCommandPaletteModel"),b)){var c=$APP.l(a,"__xCommandPaletteRefs");if($APP.n(c)){var d=$APP.l(c,"overlay"),e=$APP.l(c,"input"),f=$APP.l(c,"empty");c=$APP.l(c,"panel");var h=$APP.G(b);h=$APP.C(h,$APP.Wj);$APP.T(c,
10
- "aria-label",$APP.n(h)?h:"Command palette");c=$APP.G(b);c=$APP.C(c,kE);$APP.n(c)?$APP.U(d,"hidden"):$APP.T(d,"hidden","");h=$APP.G(b);d=$APP.C(h,$APP.Vj);c=$APP.C(h,$APP.Hu);h=$APP.C(h,$APP.Xj);$APP.T(e,"placeholder",d);$APP.T(e,"aria-expanded",$APP.n(c)?"true":"false");$APP.n(h)?($APP.T(e,"disabled",""),$APP.T(e,"aria-disabled","true")):($APP.U(e,"disabled"),$APP.U(e,"aria-disabled"));e=$APP.G(b);e=$APP.C(e,hE);f.textContent=e;sE(a);a=$APP.Q(a,"__xCommandPaletteModel",b)}else a=null}else a=null;
11
- return a}return null},uE=function(a){if($APP.n(a.hasAttribute("open")))a=null;else if($APP.jj(a,"x-command-palette-open-request",{})){$APP.T(a,"open","");var b=$APP.l(a,"__xCommandPaletteRefs");b=$APP.n(b)?$APP.l(b,"input"):null;$APP.n(b)&&b.focus();tE(a);a=$APP.hj(a,"x-command-palette-open",{})}else a=null;return a},vE=function(a){if($APP.n(a.hasAttribute("open")))if($APP.jj(a,"x-command-palette-close-request",{})){$APP.U(a,"open");var b=$APP.l(a,"__xCommandPaletteRefs");b=$APP.n(b)?$APP.l(b,"input"):
12
- null;$APP.n(b)&&$APP.U(b,"aria-activedescendant");tE(a);a=$APP.hj(a,"x-command-palette-close",{})}else a=null;else a=null;return a},wE=function(a){var b=$APP.l(a,"__xCommandPaletteQuery");b=$APP.n(b)?b:"";a=XD($APP.l(a,"__xCommandPaletteItems"));a=ZD(a,b);a=$APP.G(a);return $APP.C(a,$APP.Ct)},yE=function(a,b){var c=wE(a);var d=$APP.l(a,"__xCommandPaletteActiveIdx");d=$APP.n(d)?d:0;$APP.z.j(b,xE)?(c=$D(c,$APP.n(d)?d:-1,1),c=$APP.n(c)?c:0):(b=$APP.w(c),c=$D(c,$APP.n(d)?d:b,-1),c=$APP.n(c)?c:0);$APP.Q(a,
13
- "__xCommandPaletteActiveIdx",c);sE(a);a=$APP.l(a,"__xCommandPaletteRefs");a=$APP.n(a)?$APP.l(a,"list"):null;a=$APP.n(a)?a.querySelector("["+$APP.P.i("data-idx")+"\x3d'"+$APP.P.i(c)+"']"):null;return $APP.n(a)?a.scrollIntoView({block:"nearest"}):null},zE=function(a,b){return $APP.n($APP.n(b)?$APP.p($APP.Xj.i(b)):b)&&$APP.jj(a,"x-command-palette-select-request",{item:$APP.gm(b)})?($APP.hj(a,"x-command-palette-select",{item:$APP.gm(b)}),vE(a)):null},BE=function(a,b){var c=b.key;return $APP.z.j(c,"ArrowDown")?
14
- (b.preventDefault(),yE(a,xE)):$APP.z.j(c,"ArrowUp")?(b.preventDefault(),yE(a,AE)):$APP.z.j(c,"Enter")?(b.preventDefault(),b=wE(a),c=$APP.l(a,"__xCommandPaletteActiveIdx"),zE(a,$APP.B(b,$APP.n(c)?c:0,null))):$APP.z.j(c,"Escape")?(b=nE(a),$APP.n(jE.i(b))?vE(a):null):null},CE=function(a){function b(){var x=$APP.l(a,"__xCommandPaletteRefs"),y=$APP.n(x)?$APP.l(x,"input"):null;x=$APP.n(x)?$APP.l(x,"clear-btn"):null;$APP.n(y)&&(y.value="");$APP.n(x)&&$APP.T(x,"hidden","");$APP.Q(a,"__xCommandPaletteQuery",
15
- "");$APP.Q(a,"__xCommandPaletteActiveIdx",0);$APP.hj(a,"x-command-palette-query-change",{query:""});sE(a);return $APP.n(y)?y.focus():null}function c(x){x=x.target.closest("["+$APP.P.i("part")+"\x3d"+$APP.P.i("item")+"]");if($APP.n(x)){x=parseInt(x.getAttribute("data-idx"),10);var y=wE(a);x=zE(a,$APP.B(y,x,null))}else x=null;return x}function d(){var x=nE(a);return $APP.n(iE.i(x))?vE(a):null}function e(x){return BE(a,x)}function f(){var x=$APP.l(a,"__xCommandPaletteRefs"),y=$APP.n(x)?$APP.l(x,"input"):
16
- null;x=$APP.n(x)?$APP.l(x,"clear-btn"):null;y=$APP.n(y)?y.value:null;$APP.Q(a,"__xCommandPaletteQuery",$APP.n(y)?y:"");$APP.Q(a,"__xCommandPaletteActiveIdx",0);$APP.n(x)&&($APP.n($APP.n(y)?$APP.I(y,""):y)?$APP.U(x,"hidden"):$APP.T(x,"hidden",""));$APP.hj(a,"x-command-palette-query-change",{query:$APP.n(y)?y:""});return sE(a)}var h=$APP.l(a,"__xCommandPaletteRefs"),k=$APP.l(h,"input"),m=$APP.l(h,"overlay"),r=$APP.l(h,"list");h=$APP.l(h,"clear-btn");var u={};k.addEventListener("input",f);k.addEventListener("keydown",
17
- e);m.addEventListener("click",d);r.addEventListener("click",c);h.addEventListener("click",b);u.input=f;u.keydown=e;u.scrim=d;u.list=c;u.clear=b;$APP.Q(a,"__xCommandPaletteHandlers",u)},DE=function(a){var b=$APP.l(a,"__xCommandPaletteRefs");a=$APP.l(a,"__xCommandPaletteHandlers");if($APP.n($APP.n(b)?a:b)){var c=$APP.l(b,"input"),d=$APP.l(b,"overlay"),e=$APP.l(b,"list");b=$APP.l(b,"clear-btn");c.removeEventListener("input",$APP.l(a,"input"));c.removeEventListener("keydown",$APP.l(a,"keydown"));d.removeEventListener("click",
18
- $APP.l(a,"scrim"));e.removeEventListener("click",$APP.l(a,"list"));return b.removeEventListener("click",$APP.l(a,"clear"))}return null},JE=function(a){if(!$APP.n($APP.l(a,"__xCommandPaletteRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div");$APP.T(d,"part","overlay");var e=document.createElement("div");var f=document.createElement("span"),h=document.createElement("input"),k=document.createElement("button");$APP.T(e,"part","search-wrap");$APP.T(f,
19
- "part","search-icon");$APP.T(f,"aria-hidden","true");f.textContent="\ud83d\udd0d";$APP.T(h,"part","input");$APP.T(h,"type","search");$APP.T(h,"role","combobox");$APP.T(h,"autocomplete","off");$APP.T(h,"autocorrect","off");$APP.T(h,"spellcheck","false");$APP.T(h,"aria-autocomplete","list");$APP.T(h,"aria-expanded","false");$APP.T(h,"aria-controls","x-cp-list");$APP.T(k,"part","clear-btn");$APP.T(k,"type","button");$APP.T(k,"aria-label","Clear");$APP.T(k,"hidden","");e.appendChild(f);e.appendChild(h);
20
- e.appendChild(k);e=new $APP.M(null,3,[EE,e,FE,h,GE,k],null);f=document.createElement("div");h=document.createElement("div");k=document.createElement("div");$APP.T(f,"part","list-wrap");$APP.T(h,"part","list");$APP.T(h,"id","x-cp-list");$APP.T(h,"role","listbox");$APP.T(h,"aria-label","Results");$APP.T(k,"part","empty");$APP.T(k,"hidden","");f.appendChild(h);f.appendChild(k);h=new $APP.M(null,3,[HE,f,IE,h,$APP.Ls,k],null);k=document.createElement("div");$APP.T(k,"part","panel");$APP.T(k,"role","dialog");
21
- $APP.T(k,"aria-modal","true");k.appendChild(EE.i(e));k.appendChild(HE.i(h));f={};c.textContent=":host{display:contents;}[part\x3doverlay]{display:none;position:fixed;inset:0;background:var(--x-command-palette-backdrop,rgba(0,0,0,0.45));z-index:var(--x-command-palette-z,800);}[part\x3dpanel]{display:none;position:fixed;top:20vh;left:50%;transform:translateX(-50%);width:var(--x-command-palette-width,560px);max-width:calc(100vw - 2rem);max-height:60dvh;z-index:calc(var(--x-command-palette-z,800) + 1);flex-direction:column;border-radius:var(--x-command-palette-radius,var(--x-radius-lg,12px));background:var(--x-command-palette-bg,var(--x-color-bg,#fff));box-shadow:var(--x-command-palette-shadow,var(--x-shadow-lg,0 20px 60px rgba(0,0,0,0.25),0 4px 16px rgba(0,0,0,0.12)));overflow:hidden;}:host([open]) [part\x3doverlay]{display:block;}:host([open]) [part\x3dpanel]{display:flex;}[part\x3dsearch-wrap]{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--x-command-palette-divider,rgba(0,0,0,0.08));}[part\x3dsearch-icon]{flex:none;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--x-command-palette-icon-color,var(--x-color-text-muted,#64748b));}[part\x3dinput]{flex:1;border:none;outline:none;background:transparent;font-size:1rem;line-height:1.5;color:var(--x-command-palette-text,inherit);}[part\x3dinput]::placeholder{color:var(--x-command-palette-placeholder,var(--x-color-text-muted,#94a3b8));}[part\x3dclear-btn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;color:var(--x-command-palette-icon-color,var(--x-color-text-muted,#64748b));}[part\x3dclear-btn]:focus-visible{outline:2px solid var(--x-command-palette-focus-ring,var(--x-color-focus-ring,#60a5fa));}[part\x3dclear-btn][hidden]{display:none;}[part\x3dlist-wrap]{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 0;}[part\x3dlist]{display:flex;flex-direction:column;}[part\x3ditem]{padding:10px 16px;cursor:default;font-size:var(--x-font-size-sm,0.9375rem);line-height:1.4;color:var(--x-command-palette-item-text,inherit);border-radius:0;outline:none;}[part\x3ditem]:hover,[part\x3ditem]:focus{background:var(--x-command-palette-item-hover,var(--x-color-surface-active,#f1f5f9));}[part\x3ditem][aria-selected\x3dtrue]{background:var(--x-command-palette-item-active,#e0e7ff);color:var(--x-command-palette-item-active-text,#3730a3);}[part\x3ditem][aria-disabled\x3dtrue]{opacity:0.45;cursor:default;pointer-events:none;}[part\x3dgroup-header]{padding:8px 16px 4px;font-size:0.75rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:var(--x-command-palette-group-text,var(--x-color-text-muted,#94a3b8));}[part\x3dempty]{padding:32px 16px;text-align:center;color:var(--x-command-palette-empty-text,var(--x-color-text-muted,#94a3b8));font-size:0.9375rem;}[part\x3dempty][hidden]{display:none;}@media (prefers-color-scheme:dark){[part\x3dpanel]{background:var(--x-command-palette-bg,var(--x-color-bg,#1e293b));box-shadow:var(--x-command-palette-shadow,var(--x-shadow-lg,0 20px 60px rgba(0,0,0,0.6),0 4px 16px rgba(0,0,0,0.4)));}[part\x3dsearch-wrap]{border-bottom-color:var(--x-command-palette-divider,rgba(255,255,255,0.08));}[part\x3ditem]:hover,[part\x3ditem]:focus{background:var(--x-command-palette-item-hover,var(--x-color-text-muted,#334155));}[part\x3ditem][aria-selected\x3dtrue]{background:var(--x-command-palette-item-active,#312e81);color:var(--x-command-palette-item-active-text,#c7d2fe);}}@media (prefers-reduced-motion:reduce){[part\x3dpanel],[part\x3doverlay]{transition:none;}}";
22
- b.appendChild(c);b.appendChild(d);b.appendChild(k);f.overlay=d;f.panel=k;b=FE.i(e);f.input=b;b=GE.i(e);f["clear-btn"]=b;b=IE.i(h);f.list=b;b=$APP.Ls.i(h);f.empty=b;$APP.Q(a,"__xCommandPaletteRefs",f)}DE(a);CE(a);return tE(a)},aaa=function(a){return DE(a)},baa=function(a,b,c,d){if($APP.I(c,d)&&(tE(a),$APP.z.j(b,"open")&&d!=null)){a=$APP.l(a,"__xCommandPaletteRefs");var e=$APP.n(a)?$APP.l(a,"input"):null;return $APP.n(e)?requestAnimationFrame(function(){return e.focus()}):null}return null},caa=function(a){Object.defineProperty(a,
23
- "items",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xCommandPaletteItems");return $APP.n(b)?b:[]},set:function(b){$APP.Q(this,"__xCommandPaletteItems",b);$APP.Q(this,"__xCommandPaletteActiveIdx",0);return sE(this)}})},daa=function(a){Object.defineProperty(a,"show",{configurable:!0,writable:!0,value:function(){return uE(this)}});Object.defineProperty(a,"close",{configurable:!0,writable:!0,value:function(){return vE(this)}});return Object.defineProperty(a,"toggle",{configurable:!0,
24
- writable:!0,value:function(){return $APP.n(this.hasAttribute("open"))?vE(this):uE(this)}})},eaa=function(a){$APP.mj(a,"open","open");$APP.mj(a,"disabled","disabled");caa(a);return daa(a)},KE=function(){return $APP.zi("x-command-palette",new $APP.M(null,5,[$APP.ji,faa,$APP.hi,JE,$APP.ei,aaa,$APP.di,baa,$APP.ii,eaa],null))},hE=new $APP.F(null,"empty-text","empty-text",1554384594),GE=new $APP.F(null,"clear-btn","clear-btn",1023677608),bE=new $APP.F(null,"close-on-scrim-raw","close-on-scrim-raw",159828234),
25
- aE=new $APP.F(null,"empty-text-raw","empty-text-raw",1477406757),fE=new $APP.F(null,"dismissible-raw","dismissible-raw",947680658),IE=new $APP.F(null,"list","list",765357683),gE=new $APP.F(null,"modal-raw","modal-raw",-263722282),jE=new $APP.F(null,"close-on-escape?","close-on-escape?",-1559868909),YD=new $APP.F(null,"groups","groups",-136896102),dE=new $APP.F(null,"close-on-escape-raw","close-on-escape-raw",-1942646255),kE=new $APP.F(null,"scrim?","scrim?",744210580),FE=new $APP.F(null,"input","input",
26
- 556931961),eE=new $APP.F(null,"no-scrim-raw","no-scrim-raw",-1344365743),iE=new $APP.F(null,"close-on-scrim?","close-on-scrim?",-367113965),VD=new $APP.F(null,"group","group",582596132),xE=new $APP.F(null,"down","down",1565245570),WD=new $APP.F(null,"search-str","search-str",-821246171),AE=new $APP.F(null,"up","up",-269712113),lE=new $APP.F(null,"modal?","modal?",2146094679),EE=new $APP.F(null,"search-wrap","search-wrap",-1719739506),HE=new $APP.F(null,"list-wrap","list-wrap",-510225298),cE=new $APP.F(null,
27
- "disabled-raw","disabled-raw",498098381);var faa="open modal dismissible disabled no-scrim close-on-scrim close-on-escape label placeholder empty-text".split(" ");
28
- $APP.je(["x-command-palette-open-request",new $APP.M(null,2,[$APP.fu,!0,$APP.V,$APP.ke],null),"x-command-palette-open",new $APP.M(null,2,[$APP.fu,!1,$APP.V,$APP.ke],null),"x-command-palette-close-request",new $APP.M(null,2,[$APP.fu,!0,$APP.V,$APP.ke],null),"x-command-palette-close",new $APP.M(null,2,[$APP.fu,!1,$APP.V,$APP.ke],null),"x-command-palette-select-request",new $APP.M(null,2,[$APP.fu,!0,$APP.V,new $APP.M(null,1,[$APP.cs,$APP.ct],null)],null),"x-command-palette-select",new $APP.M(null,2,
29
- [$APP.fu,!1,$APP.V,new $APP.M(null,1,[$APP.cs,$APP.ct],null)],null),"x-command-palette-query-change",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,1,[$APP.pq,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_command_palette.init",KE);export const init=KE;
2
+ var VD=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")?a:null):null},YD=function(a){if(a==null||$APP.p($APP.ra(a)))return $APP.Ge;for(var b=a.length,c=0,d=$APP.yb($APP.Ge);;){if($APP.z.j(c,b))return $APP.Ab(d);var e=a[c],f=""+$APP.P.i(function(){var E=e.id;return $APP.n(E)?E:c}()),h=""+$APP.P.i(function(){var E=e.label;return $APP.n(E)?E:""}()),k=VD(e.group),m=e.value,r=e.icon,u=$APP.z.j(!0,e.disabled),x=e.keywords;x=$APP.n($APP.ra(x))?x.join(" "):typeof x==="string"?x:"";var y=function(){var E=
3
+ k;return $APP.n(E)?E:""}(),A=typeof m==="string"?m:"";y=(""+$APP.P.i(h)+" "+$APP.P.i(x)+" "+$APP.P.i(y)+" "+$APP.P.i(A)).toLowerCase();x=c+1;d=$APP.Vd(d,new $APP.M(null,7,[$APP.rt,f,$APP.Wj,h,WD,k,$APP.Ui,m,$APP.Ds,r,$APP.Xj,u,XD,y],null));c=x}},$D=function(a,b){b=typeof b==="string"?b.trim():"";var c=$APP.I(b,"")?$APP.te(VD,$APP.Fi(b,/\s+/)):null;if($APP.Tc(c))return new $APP.M(null,2,[$APP.Dt,a,ZD,$APP.Kf.j($APP.dh,$APP.te(WD,a))],null);a=$APP.Ie(function(d){return $APP.oe(function(e){return $APP.I(-1,
4
+ XD.i(d).indexOf(e.toLowerCase()))},c)},a);return new $APP.M(null,2,[$APP.Dt,a,ZD,$APP.Kf.j($APP.dh,$APP.te(WD,a))],null)},aE=function(a,b,c){var d=$APP.w(a);if(d>0)for(var e=1;;)if(e<=d){var f=$APP.ud(b+e*c,d),h=$APP.B(a,f,null),k=h;h=$APP.n(k)?$APP.p($APP.Xj.i(h)):k;if($APP.n(h))return f;e+=1}else return null;else return null},nE=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.kq);var c=$APP.C(b,$APP.Cj),d=$APP.C(b,$APP.Dj),e=$APP.C(b,bE),f=$APP.C(b,cE),h=$APP.C(b,dE),k=$APP.C(b,eE),m=$APP.C(b,fE),r=
5
+ $APP.C(b,gE);b=$APP.C(b,hE);b=$APP.Ki(b);r=$APP.Ki(r);m=$APP.Ji(m);m=b&&!m;f=f!=null?$APP.Ji(f):m;k=$APP.Ki(k);return $APP.Gg([$APP.Vj,$APP.wq,iE,jE,kE,lE,$APP.Wj,$APP.Iu,mE,$APP.Xj],[function(){var u=VD(c);return $APP.n(u)?u:"Search…"}(),r,function(){var u=VD(e);return $APP.n(u)?u:"No results"}(),f,k,m,VD(d),$APP.D(a),b,$APP.Ji(h)])},oE=function(a){return nE($APP.Gg([$APP.Dj,bE,cE,dE,eE,fE,gE,hE,$APP.kq,$APP.Cj],[a.getAttribute("label"),a.getAttribute("empty-text"),a.getAttribute("close-on-scrim"),
6
+ a.getAttribute("disabled"),a.getAttribute("close-on-escape"),a.getAttribute("no-scrim"),a.getAttribute("dismissible"),a.getAttribute("modal"),a.hasAttribute("open"),a.getAttribute("placeholder")]))},pE=function(a,b){var c=document.createElement("div");$APP.T(c,"part","group-header");$APP.T(c,"aria-hidden","true");c.textContent=b;a.appendChild(c)},qE=function(a,b,c,d){var e=document.createElement("div");$APP.T(e,"part","item");$APP.T(e,"role","option");$APP.T(e,"id",""+$APP.P.i("x-cp-item-")+$APP.P.i(b));
7
+ $APP.T(e,"data-id",""+$APP.P.i($APP.rt.i(c)));$APP.T(e,"data-idx",""+$APP.P.i(b));$APP.T(e,"tabindex","-1");$APP.n($APP.Xj.i(c))&&$APP.T(e,"aria-disabled","true");e.textContent=$APP.Wj.i(c);$APP.z.j(b,d)&&$APP.T(e,"aria-selected","true");a.appendChild(e)},rE=function(a,b){$APP.U(a,"hidden");return $APP.n(b)?$APP.U(b,"aria-activedescendant"):null},sE=function(a,b,c,d,e){$APP.T(a,"hidden","");a=$APP.se($APP.eo,d);for(var f=null;;)if(d=$APP.t(a),$APP.n(d)){var h=d;d=$APP.B(h,0,null);h=$APP.B(h,1,null);
8
+ var k=WD.i(h);$APP.n(function(){var m=k;return $APP.n(m)?$APP.I(k,f):m}())&&pE(b,k);qE(b,d,h,e);a=$APP.gc(a);f=d=function(){var m=k;return $APP.n(m)?m:f}()}else break;return $APP.n(c)?$APP.T(c,"aria-activedescendant",""+$APP.P.i("x-cp-item-")+$APP.P.i(e)):null},tE=function(a){var b=$APP.l(a,"__xCommandPaletteRefs");if($APP.n(b)){var c=$APP.l(b,"list"),d=$APP.l(b,"empty");b=$APP.l(b,"input");var e=function(){var h=$APP.l(a,"__xCommandPaletteQuery");return $APP.n(h)?h:""}(),f=YD($APP.l(a,"__xCommandPaletteItems"));
9
+ e=$D(f,e);e=$APP.G(e);e=$APP.C(e,$APP.Dt);f=function(){var h=$APP.l(a,"__xCommandPaletteActiveIdx");return $APP.n(h)?h:0}();c.textContent="";return $APP.Tc(e)?rE(d,b):sE(d,c,b,e,f)}return null},uE=function(a){if($APP.n($APP.l(a,"__xCommandPaletteRefs"))){var b=oE(a);if($APP.I($APP.l(a,"__xCommandPaletteModel"),b)){var c=$APP.l(a,"__xCommandPaletteRefs");if($APP.n(c)){var d=$APP.l(c,"overlay"),e=$APP.l(c,"input"),f=$APP.l(c,"empty");c=$APP.l(c,"panel");var h=$APP.G(b);h=$APP.C(h,$APP.Wj);$APP.T(c,
10
+ "aria-label",$APP.n(h)?h:"Command palette");c=$APP.G(b);c=$APP.C(c,lE);$APP.n(c)?$APP.U(d,"hidden"):$APP.T(d,"hidden","");h=$APP.G(b);d=$APP.C(h,$APP.Vj);c=$APP.C(h,$APP.Iu);h=$APP.C(h,$APP.Xj);$APP.T(e,"placeholder",d);$APP.T(e,"aria-expanded",$APP.n(c)?"true":"false");$APP.n(h)?($APP.T(e,"disabled",""),$APP.T(e,"aria-disabled","true")):($APP.U(e,"disabled"),$APP.U(e,"aria-disabled"));e=$APP.G(b);e=$APP.C(e,iE);f.textContent=e;tE(a);a=$APP.Q(a,"__xCommandPaletteModel",b)}else a=null}else a=null;
11
+ return a}return null},vE=function(a){if($APP.n(a.hasAttribute("open")))a=null;else if($APP.jj(a,"x-command-palette-open-request",{})){$APP.T(a,"open","");var b=$APP.l(a,"__xCommandPaletteRefs");b=$APP.n(b)?$APP.l(b,"input"):null;$APP.n(b)&&b.focus();uE(a);a=$APP.hj(a,"x-command-palette-open",{})}else a=null;return a},wE=function(a){if($APP.n(a.hasAttribute("open")))if($APP.jj(a,"x-command-palette-close-request",{})){$APP.U(a,"open");var b=$APP.l(a,"__xCommandPaletteRefs");b=$APP.n(b)?$APP.l(b,"input"):
12
+ null;$APP.n(b)&&$APP.U(b,"aria-activedescendant");uE(a);a=$APP.hj(a,"x-command-palette-close",{})}else a=null;else a=null;return a},xE=function(a){var b=$APP.l(a,"__xCommandPaletteQuery");b=$APP.n(b)?b:"";a=YD($APP.l(a,"__xCommandPaletteItems"));a=$D(a,b);a=$APP.G(a);return $APP.C(a,$APP.Dt)},zE=function(a,b){var c=xE(a);var d=$APP.l(a,"__xCommandPaletteActiveIdx");d=$APP.n(d)?d:0;$APP.z.j(b,yE)?(c=aE(c,$APP.n(d)?d:-1,1),c=$APP.n(c)?c:0):(b=$APP.w(c),c=aE(c,$APP.n(d)?d:b,-1),c=$APP.n(c)?c:0);$APP.Q(a,
13
+ "__xCommandPaletteActiveIdx",c);tE(a);a=$APP.l(a,"__xCommandPaletteRefs");a=$APP.n(a)?$APP.l(a,"list"):null;a=$APP.n(a)?a.querySelector("["+$APP.P.i("data-idx")+"\x3d'"+$APP.P.i(c)+"']"):null;return $APP.n(a)?a.scrollIntoView({block:"nearest"}):null},AE=function(a,b){return $APP.n($APP.n(b)?$APP.p($APP.Xj.i(b)):b)&&$APP.jj(a,"x-command-palette-select-request",{item:$APP.gm(b)})?($APP.hj(a,"x-command-palette-select",{item:$APP.gm(b)}),wE(a)):null},CE=function(a,b){var c=b.key;return $APP.z.j(c,"ArrowDown")?
14
+ (b.preventDefault(),zE(a,yE)):$APP.z.j(c,"ArrowUp")?(b.preventDefault(),zE(a,BE)):$APP.z.j(c,"Enter")?(b.preventDefault(),b=xE(a),c=$APP.l(a,"__xCommandPaletteActiveIdx"),AE(a,$APP.B(b,$APP.n(c)?c:0,null))):$APP.z.j(c,"Escape")?(b=oE(a),$APP.n(kE.i(b))?wE(a):null):null},DE=function(a){function b(){var x=$APP.l(a,"__xCommandPaletteRefs"),y=$APP.n(x)?$APP.l(x,"input"):null;x=$APP.n(x)?$APP.l(x,"clear-btn"):null;$APP.n(y)&&(y.value="");$APP.n(x)&&$APP.T(x,"hidden","");$APP.Q(a,"__xCommandPaletteQuery",
15
+ "");$APP.Q(a,"__xCommandPaletteActiveIdx",0);$APP.hj(a,"x-command-palette-query-change",{query:""});tE(a);return $APP.n(y)?y.focus():null}function c(x){x=x.target.closest("["+$APP.P.i("part")+"\x3d"+$APP.P.i("item")+"]");if($APP.n(x)){x=parseInt(x.getAttribute("data-idx"),10);var y=xE(a);x=AE(a,$APP.B(y,x,null))}else x=null;return x}function d(){var x=oE(a);return $APP.n(jE.i(x))?wE(a):null}function e(x){return CE(a,x)}function f(){var x=$APP.l(a,"__xCommandPaletteRefs"),y=$APP.n(x)?$APP.l(x,"input"):
16
+ null;x=$APP.n(x)?$APP.l(x,"clear-btn"):null;y=$APP.n(y)?y.value:null;$APP.Q(a,"__xCommandPaletteQuery",$APP.n(y)?y:"");$APP.Q(a,"__xCommandPaletteActiveIdx",0);$APP.n(x)&&($APP.n($APP.n(y)?$APP.I(y,""):y)?$APP.U(x,"hidden"):$APP.T(x,"hidden",""));$APP.hj(a,"x-command-palette-query-change",{query:$APP.n(y)?y:""});return tE(a)}var h=$APP.l(a,"__xCommandPaletteRefs"),k=$APP.l(h,"input"),m=$APP.l(h,"overlay"),r=$APP.l(h,"list");h=$APP.l(h,"clear-btn");var u={};k.addEventListener("input",f);k.addEventListener("keydown",
17
+ e);m.addEventListener("click",d);r.addEventListener("click",c);h.addEventListener("click",b);u.input=f;u.keydown=e;u.scrim=d;u.list=c;u.clear=b;$APP.Q(a,"__xCommandPaletteHandlers",u)},EE=function(a){var b=$APP.l(a,"__xCommandPaletteRefs");a=$APP.l(a,"__xCommandPaletteHandlers");if($APP.n($APP.n(b)?a:b)){var c=$APP.l(b,"input"),d=$APP.l(b,"overlay"),e=$APP.l(b,"list");b=$APP.l(b,"clear-btn");c.removeEventListener("input",$APP.l(a,"input"));c.removeEventListener("keydown",$APP.l(a,"keydown"));d.removeEventListener("click",
18
+ $APP.l(a,"scrim"));e.removeEventListener("click",$APP.l(a,"list"));return b.removeEventListener("click",$APP.l(a,"clear"))}return null},aaa=function(a){if(!$APP.n($APP.l(a,"__xCommandPaletteRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div");$APP.T(d,"part","overlay");var e=document.createElement("div");var f=document.createElement("span"),h=document.createElement("input"),k=document.createElement("button");$APP.T(e,"part","search-wrap");
19
+ $APP.T(f,"part","search-icon");$APP.T(f,"aria-hidden","true");f.textContent="\ud83d\udd0d";$APP.T(h,"part","input");$APP.T(h,"type","search");$APP.T(h,"role","combobox");$APP.T(h,"autocomplete","off");$APP.T(h,"autocorrect","off");$APP.T(h,"spellcheck","false");$APP.T(h,"aria-autocomplete","list");$APP.T(h,"aria-expanded","false");$APP.T(h,"aria-controls","x-cp-list");$APP.T(k,"part","clear-btn");$APP.T(k,"type","button");$APP.T(k,"aria-label","Clear");$APP.T(k,"hidden","");e.appendChild(f);e.appendChild(h);
20
+ e.appendChild(k);e=new $APP.M(null,3,[FE,e,GE,h,HE,k],null);f=document.createElement("div");h=document.createElement("div");k=document.createElement("div");$APP.T(f,"part","list-wrap");$APP.T(h,"part","list");$APP.T(h,"id","x-cp-list");$APP.T(h,"role","listbox");$APP.T(h,"aria-label","Results");$APP.T(k,"part","empty");$APP.T(k,"hidden","");f.appendChild(h);f.appendChild(k);h=new $APP.M(null,3,[IE,f,JE,h,$APP.Ms,k],null);k=document.createElement("div");$APP.T(k,"part","panel");$APP.T(k,"role","dialog");
21
+ $APP.T(k,"aria-modal","true");k.appendChild(FE.i(e));k.appendChild(IE.i(h));f={};c.textContent=":host{display:contents;}[part\x3doverlay]{display:none;position:fixed;inset:0;background:var(--x-command-palette-backdrop,rgba(0,0,0,0.45));z-index:var(--x-command-palette-z,800);}[part\x3dpanel]{display:none;position:fixed;top:20vh;left:50%;transform:translateX(-50%);width:var(--x-command-palette-width,560px);max-width:calc(100vw - 2rem);max-height:60dvh;z-index:calc(var(--x-command-palette-z,800) + 1);flex-direction:column;border-radius:var(--x-command-palette-radius,var(--x-radius-lg,12px));background:var(--x-command-palette-bg,var(--x-color-bg,#fff));box-shadow:var(--x-command-palette-shadow,var(--x-shadow-lg,0 20px 60px rgba(0,0,0,0.25),0 4px 16px rgba(0,0,0,0.12)));overflow:hidden;}:host([open]) [part\x3doverlay]{display:block;}:host([open]) [part\x3dpanel]{display:flex;}[part\x3dsearch-wrap]{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--x-command-palette-divider,rgba(0,0,0,0.08));}[part\x3dsearch-icon]{flex:none;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--x-command-palette-icon-color,var(--x-color-text-muted,#64748b));}[part\x3dinput]{flex:1;border:none;outline:none;background:transparent;font-size:1rem;line-height:1.5;color:var(--x-command-palette-text,inherit);}[part\x3dinput]::placeholder{color:var(--x-command-palette-placeholder,var(--x-color-text-muted,#94a3b8));}[part\x3dclear-btn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;color:var(--x-command-palette-icon-color,var(--x-color-text-muted,#64748b));}[part\x3dclear-btn]:focus-visible{outline:2px solid var(--x-command-palette-focus-ring,var(--x-color-focus-ring,#60a5fa));}[part\x3dclear-btn][hidden]{display:none;}[part\x3dlist-wrap]{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 0;}[part\x3dlist]{display:flex;flex-direction:column;}[part\x3ditem]{padding:10px 16px;cursor:default;font-size:var(--x-font-size-sm,0.9375rem);line-height:1.4;color:var(--x-command-palette-item-text,inherit);border-radius:0;outline:none;}[part\x3ditem]:hover,[part\x3ditem]:focus{background:var(--x-command-palette-item-hover,var(--x-color-surface-active,#f1f5f9));}[part\x3ditem][aria-selected\x3dtrue]{background:var(--x-command-palette-item-active,#e0e7ff);color:var(--x-command-palette-item-active-text,#3730a3);}[part\x3ditem][aria-disabled\x3dtrue]{opacity:0.45;cursor:default;pointer-events:none;}[part\x3dgroup-header]{padding:8px 16px 4px;font-size:0.75rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:var(--x-command-palette-group-text,var(--x-color-text-muted,#94a3b8));}[part\x3dempty]{padding:32px 16px;text-align:center;color:var(--x-command-palette-empty-text,var(--x-color-text-muted,#94a3b8));font-size:0.9375rem;}[part\x3dempty][hidden]{display:none;}@media (prefers-color-scheme:dark){[part\x3dpanel]{background:var(--x-command-palette-bg,var(--x-color-bg,#1e293b));box-shadow:var(--x-command-palette-shadow,var(--x-shadow-lg,0 20px 60px rgba(0,0,0,0.6),0 4px 16px rgba(0,0,0,0.4)));}[part\x3dsearch-wrap]{border-bottom-color:var(--x-command-palette-divider,rgba(255,255,255,0.08));}[part\x3ditem]:hover,[part\x3ditem]:focus{background:var(--x-command-palette-item-hover,var(--x-color-text-muted,#334155));}[part\x3ditem][aria-selected\x3dtrue]{background:var(--x-command-palette-item-active,#312e81);color:var(--x-command-palette-item-active-text,#c7d2fe);}}@media (prefers-reduced-motion:reduce){[part\x3dpanel],[part\x3doverlay]{transition:none;}}";
22
+ b.appendChild(c);b.appendChild(d);b.appendChild(k);f.overlay=d;f.panel=k;b=GE.i(e);f.input=b;b=HE.i(e);f["clear-btn"]=b;b=JE.i(h);f.list=b;b=$APP.Ms.i(h);f.empty=b;$APP.Q(a,"__xCommandPaletteRefs",f)}EE(a);DE(a);return uE(a)},baa=function(a){return EE(a)},caa=function(a,b,c,d){if($APP.I(c,d)&&(uE(a),$APP.z.j(b,"open")&&d!=null)){a=$APP.l(a,"__xCommandPaletteRefs");var e=$APP.n(a)?$APP.l(a,"input"):null;return $APP.n(e)?requestAnimationFrame(function(){return e.focus()}):null}return null},daa=function(a){Object.defineProperty(a,
23
+ "items",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xCommandPaletteItems");return $APP.n(b)?b:[]},set:function(b){$APP.Q(this,"__xCommandPaletteItems",b);$APP.Q(this,"__xCommandPaletteActiveIdx",0);return tE(this)}})},eaa=function(a){Object.defineProperty(a,"show",{configurable:!0,writable:!0,value:function(){return vE(this)}});Object.defineProperty(a,"close",{configurable:!0,writable:!0,value:function(){return wE(this)}});return Object.defineProperty(a,"toggle",{configurable:!0,
24
+ writable:!0,value:function(){return $APP.n(this.hasAttribute("open"))?wE(this):vE(this)}})},faa=function(a){$APP.mj(a,"open","open");$APP.mj(a,"disabled","disabled");daa(a);return eaa(a)},KE=function(){return $APP.zi("x-command-palette",new $APP.M(null,5,[$APP.ji,gaa,$APP.hi,aaa,$APP.ei,baa,$APP.di,caa,$APP.ii,faa],null))},iE=new $APP.F(null,"empty-text","empty-text",1554384594),HE=new $APP.F(null,"clear-btn","clear-btn",1023677608),cE=new $APP.F(null,"close-on-scrim-raw","close-on-scrim-raw",159828234),
25
+ bE=new $APP.F(null,"empty-text-raw","empty-text-raw",1477406757),gE=new $APP.F(null,"dismissible-raw","dismissible-raw",947680658),JE=new $APP.F(null,"list","list",765357683),hE=new $APP.F(null,"modal-raw","modal-raw",-263722282),kE=new $APP.F(null,"close-on-escape?","close-on-escape?",-1559868909),ZD=new $APP.F(null,"groups","groups",-136896102),eE=new $APP.F(null,"close-on-escape-raw","close-on-escape-raw",-1942646255),lE=new $APP.F(null,"scrim?","scrim?",744210580),GE=new $APP.F(null,"input","input",
26
+ 556931961),fE=new $APP.F(null,"no-scrim-raw","no-scrim-raw",-1344365743),jE=new $APP.F(null,"close-on-scrim?","close-on-scrim?",-367113965),WD=new $APP.F(null,"group","group",582596132),yE=new $APP.F(null,"down","down",1565245570),XD=new $APP.F(null,"search-str","search-str",-821246171),BE=new $APP.F(null,"up","up",-269712113),mE=new $APP.F(null,"modal?","modal?",2146094679),FE=new $APP.F(null,"search-wrap","search-wrap",-1719739506),IE=new $APP.F(null,"list-wrap","list-wrap",-510225298),dE=new $APP.F(null,
27
+ "disabled-raw","disabled-raw",498098381);var gaa="open modal dismissible disabled no-scrim close-on-scrim close-on-escape label placeholder empty-text".split(" ");
28
+ $APP.je(["x-command-palette-open-request",new $APP.M(null,2,[$APP.gu,!0,$APP.V,$APP.ke],null),"x-command-palette-open",new $APP.M(null,2,[$APP.gu,!1,$APP.V,$APP.ke],null),"x-command-palette-close-request",new $APP.M(null,2,[$APP.gu,!0,$APP.V,$APP.ke],null),"x-command-palette-close",new $APP.M(null,2,[$APP.gu,!1,$APP.V,$APP.ke],null),"x-command-palette-select-request",new $APP.M(null,2,[$APP.gu,!0,$APP.V,new $APP.M(null,1,[$APP.ds,$APP.dt],null)],null),"x-command-palette-select",new $APP.M(null,2,
29
+ [$APP.gu,!1,$APP.V,new $APP.M(null,1,[$APP.ds,$APP.dt],null)],null),"x-command-palette-query-change",new $APP.M(null,2,[$APP.gu,!1,$APP.V,new $APP.M(null,1,[$APP.qq,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_command_palette.init",KE);export const init=KE;