@vanelsas/baredom 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +1 -1
  3. package/dist/baremirror-alpha.js +25 -24
  4. package/dist/base.js +331 -331
  5. package/dist/integrity.json +112 -112
  6. package/dist/x-alert.js +17 -17
  7. package/dist/x-avatar-group.js +10 -10
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +9 -9
  10. package/dist/x-bento-grid.js +6 -6
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +16 -16
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.js +41 -41
  15. package/dist/x-cancel-dialogue.js +16 -16
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +31 -31
  18. package/dist/x-chart.js +48 -48
  19. package/dist/x-checkbox.js +1 -1
  20. package/dist/x-chip.js +1 -1
  21. package/dist/x-code.js +27 -27
  22. package/dist/x-collapse.js +11 -11
  23. package/dist/x-color-picker.js +44 -44
  24. package/dist/x-combobox.js +34 -34
  25. package/dist/x-command-palette.js +30 -30
  26. package/dist/x-confetti.js +24 -24
  27. package/dist/x-container.js +6 -6
  28. package/dist/x-context-menu.js +19 -19
  29. package/dist/x-copy.js +1 -1
  30. package/dist/x-currency-field.js +24 -24
  31. package/dist/x-date-picker.js +43 -43
  32. package/dist/x-divider.js +8 -8
  33. package/dist/x-drag-panel.js +32 -32
  34. package/dist/x-drawer.js +12 -12
  35. package/dist/x-drop-zone.js +11 -11
  36. package/dist/x-dropdown.js +12 -12
  37. package/dist/x-fieldset.js +6 -6
  38. package/dist/x-file-download.js +14 -14
  39. package/dist/x-file-upload.js +26 -26
  40. package/dist/x-floating-panel.js +21 -21
  41. package/dist/x-form-field.js +17 -17
  42. package/dist/x-form.js +10 -10
  43. package/dist/x-gaussian-blur.js +13 -13
  44. package/dist/x-grid.js +8 -8
  45. package/dist/x-i18n-provider.js +7 -7
  46. package/dist/x-i18n.js +4 -4
  47. package/dist/x-icon.js +7 -7
  48. package/dist/x-image.js +17 -17
  49. package/dist/x-kbd.js +13 -13
  50. package/dist/x-kinetic-canvas.js +24 -24
  51. package/dist/x-kinetic-font.js +26 -26
  52. package/dist/x-kinetic-typography.js +33 -33
  53. package/dist/x-liquid-dock.js +29 -29
  54. package/dist/x-liquid-fill.js +35 -35
  55. package/dist/x-liquid-glass.js +27 -27
  56. package/dist/x-menu-item.js +9 -9
  57. package/dist/x-menu.js +10 -10
  58. package/dist/x-metaball-cursor.js +25 -25
  59. package/dist/x-modal.js +12 -12
  60. package/dist/x-morph-stack.js +38 -38
  61. package/dist/x-multi-combobox.js +39 -39
  62. package/dist/x-navbar.js +15 -15
  63. package/dist/x-neural-glow.js +28 -28
  64. package/dist/x-notification-center.js +9 -9
  65. package/dist/x-organic-divider.js +18 -18
  66. package/dist/x-organic-progress.js +33 -33
  67. package/dist/x-organic-shape.js +12 -12
  68. package/dist/x-otp-input.js +22 -22
  69. package/dist/x-pagination.js +16 -16
  70. package/dist/x-particle-button.js +47 -47
  71. package/dist/x-popover.js +26 -26
  72. package/dist/x-progress-circle.js +7 -7
  73. package/dist/x-progress.js +7 -7
  74. package/dist/x-proximity-list.js +20 -20
  75. package/dist/x-radio.js +13 -13
  76. package/dist/x-range-slider.js +30 -30
  77. package/dist/x-rating.js +21 -21
  78. package/dist/x-ripple-effect.js +10 -10
  79. package/dist/x-scroll-parallax.js +17 -17
  80. package/dist/x-scroll-stack.js +17 -17
  81. package/dist/x-scroll-story.js +31 -31
  82. package/dist/x-scroll-timeline.js +46 -46
  83. package/dist/x-scroll.js +37 -37
  84. package/dist/x-search-field.js +1 -1
  85. package/dist/x-select.js +1 -1
  86. package/dist/x-sidebar.js +16 -16
  87. package/dist/x-skeleton-group.js +13 -13
  88. package/dist/x-skeleton.js +1 -1
  89. package/dist/x-slider.js +17 -17
  90. package/dist/x-soft-body.js +16 -16
  91. package/dist/x-spacer.js +4 -4
  92. package/dist/x-spinner.js +4 -4
  93. package/dist/x-splash.js +13 -13
  94. package/dist/x-split-pane.js +14 -14
  95. package/dist/x-spotlight-card.js +12 -12
  96. package/dist/x-stat.js +10 -10
  97. package/dist/x-stepper.js +14 -14
  98. package/dist/x-switch.js +12 -12
  99. package/dist/x-tab.js +9 -9
  100. package/dist/x-table-cell.js +20 -20
  101. package/dist/x-table-row.js +9 -9
  102. package/dist/x-table.js +13 -13
  103. package/dist/x-tabs.js +11 -11
  104. package/dist/x-text-area.js +20 -20
  105. package/dist/x-theme.js +25 -25
  106. package/dist/x-timeline-item.js +20 -20
  107. package/dist/x-timeline.js +8 -8
  108. package/dist/x-toast.js +21 -21
  109. package/dist/x-toaster.js +6 -6
  110. package/dist/x-tooltip.js +13 -13
  111. package/dist/x-trace-history.js +116 -116
  112. package/dist/x-typography.js +6 -6
  113. package/dist/x-welcome-tour.js +62 -62
  114. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var p9=function(){var a=window.matchMedia;return $APP.m(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},r9=function(a){a=q9.i($APP.l(a,"__xCollapseModel"));return $APP.m(a)?a:300},s9=function(a){a.style.height="";return a.style.transition=""},t9=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.N.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return s9(a)},d+80);return a.addEventListener("transitionend",function h(){clearTimeout(e);
3
- s9(a);return a.removeEventListener("transitionend",h)})},w9=function(a){if($APP.m($APP.l(a,"__xCollapseRefs"))){var b=new $APP.K(null,4,[$APP.tp,a.hasAttribute("open"),$APP.Kk,a.hasAttribute("disabled"),u9,a.getAttribute("header"),v9,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.tp);var d=$APP.C(c,$APP.Kk),e=$APP.C(c,u9);c=$APP.C(c,v9);b=$APP.D(b);d=$APP.D(d);e=$APP.m(e)?e:"";$APP.m(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.m(c)?$APP.Wl.j(0,$APP.ak.j(2E3,
4
- c)):300;b=new $APP.K(null,4,[$APP.fs,b,$APP.Qk,d,$APP.Up,e,q9,c],null);$APP.M.j($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.m(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.Up),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.fs),c=$APP.C(c,$APP.Qk),$APP.U(d,"aria-expanded",$APP.m(e)?"true":"false"),$APP.m(c)?($APP.U(d,"disabled",""),$APP.U(d,"aria-disabled","true")):($APP.V(d,"disabled"),$APP.V(d,"aria-disabled")),a=$APP.S(a,"__xCollapseModel",
5
- b)):a=null):a=null;return a}return null},x9=function(a,b){if($APP.m(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.Yi(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.U(a,"open",""):$APP.V(a,"open"),$APP.Wi(a,"x-collapse-change",{open:c})):null},UBa=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){b=$APP.l(b,"trigger");var c=function(){return x9(a,"pointer")},d=function(f){var h=f.key;$APP.z.j(h," ")||$APP.z.j(h,"Enter")||$APP.z.j(h,"Space")?(f.preventDefault(),
6
- f=x9(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.S(a,"__xCollapseHandlers",e)}},y9=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.m(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.S(a,"__xCollapseHandlers",null)}return null},WBa=function(a){if(!$APP.m($APP.l(a,"__xCollapseRefs"))){var b=
7
- a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),n=document.createElement("div"),r=document.createElement("slot");c.textContent=VBa;$APP.U(d,"part","container");$APP.U(e,"part","trigger");$APP.U(e,"type","button");$APP.U(e,"id","trigger");$APP.U(e,"aria-controls","panel");$APP.U(f,"part","header-text");$APP.U(h,"part","chevron");
8
- $APP.U(h,"aria-hidden","true");$APP.U(k,"part","content");$APP.U(k,"id","panel");$APP.U(k,"role","region");$APP.U(k,"aria-labelledby","trigger");$APP.U(n,"part","content-inner");$APP.U(r,"name","content");h.textContent="▼";e.appendChild(f);e.appendChild(h);n.appendChild(r);k.appendChild(n);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.S(a,"__xCollapseRefs",c)}y9(a);UBa(a);return w9(a)},XBa=function(a){return y9(a)},
9
- YBa=function(a,b,c,d){return $APP.M.j(c,d)&&(w9(a),$APP.z.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.m(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.m(b)?$APP.m(c)?$APP.m(p9())?a=s9(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.N.i(b.scrollHeight)+"px",a=t9(b,"0px",c,r9(a))):$APP.m(p9())?(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.N.i(b.offsetHeight)+"px",a=t9(b,c,"0px",r9(a))):a=null,a):null},$Ba=function(a){$APP.kj(a,ZBa);return Object.defineProperty(a,"toggle",
10
- {value:function(){return x9(this,"programmatic")},writable:!0,configurable:!0})},z9=function(){return $APP.zj("x-collapse",new $APP.K(null,5,[$APP.rj,aCa,$APP.sj,WBa,$APP.tj,XBa,$APP.uj,YBa,$APP.xj,$Ba],null))},v9=new $APP.F(null,"duration-ms-raw","duration-ms-raw",-2138819526),q9=new $APP.F(null,"duration-ms","duration-ms",1993555055),u9=new $APP.F(null,"header-raw","header-raw",41484);var aCa=["open","disabled","header","duration-ms"],ZBa=new $APP.K(null,4,[$APP.Uu,new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"open"],null),$APP.Zm,new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"disabled"],null),$APP.Up,new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"header"],null),new $APP.F(null,"durationMs","durationMs",1439579766),new $APP.K(null,3,[$APP.P,$APP.Y,$APP.W,"duration-ms",$APP.jj,300],null)],null);
11
- $APP.ne(["x-collapse-toggle",new $APP.K(null,3,[$APP.Ur,!0,$APP.ys,$APP.ne(["open",$APP.Uu]),$APP.Ni,new $APP.K(null,2,[$APP.Uu,$APP.ij,$APP.jr,$APP.X],null)],null),"x-collapse-change",new $APP.K(null,2,[$APP.Ur,!1,$APP.Ni,new $APP.K(null,1,[$APP.Uu,$APP.ij],null)],null)]);var VBa=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:var(--x-border-width,1px) solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:var(--x-font-size-sm,0.9375rem);--x-collapse-font-weight:var(--x-font-weight-semibold,600);--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}"+
12
- $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-collapse-border:var(--x-border-width,1px) solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform var(--x-transition-duration,200ms) var(--x-transition-easing,ease);flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";$APP.ha("baredom.exports.x_collapse.init",z9);export const init=z9;
2
+ var l9=function(){var a=window.matchMedia;return $APP.m(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},n9=function(a){a=m9.i($APP.l(a,"__xCollapseModel"));return $APP.m(a)?a:300},o9=function(a){a.style.height="";return a.style.transition=""},p9=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.N.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return o9(a)},d+80);return a.addEventListener("transitionend",function h(){clearTimeout(e);
3
+ o9(a);return a.removeEventListener("transitionend",h)})},s9=function(a){if($APP.m($APP.l(a,"__xCollapseRefs"))){var b=new $APP.K(null,4,[$APP.pp,a.hasAttribute("open"),$APP.Gk,a.hasAttribute("disabled"),q9,a.getAttribute("header"),r9,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.pp);var d=$APP.C(c,$APP.Gk),e=$APP.C(c,q9);c=$APP.C(c,r9);b=$APP.D(b);d=$APP.D(d);e=$APP.m(e)?e:"";$APP.m(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.m(c)?$APP.Sl.j(0,$APP.Wj.j(2E3,
4
+ c)):300;b=new $APP.K(null,4,[$APP.bs,b,$APP.Mk,d,$APP.Qp,e,m9,c],null);$APP.M.j($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.m(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.Qp),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.bs),c=$APP.C(c,$APP.Mk),$APP.U(d,"aria-expanded",$APP.m(e)?"true":"false"),$APP.m(c)?($APP.U(d,"disabled",""),$APP.U(d,"aria-disabled","true")):($APP.V(d,"disabled"),$APP.V(d,"aria-disabled")),a=$APP.S(a,"__xCollapseModel",
5
+ b)):a=null):a=null;return a}return null},t9=function(a,b){if($APP.m(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.Oi(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.U(a,"open",""):$APP.V(a,"open"),$APP.Mi(a,"x-collapse-change",{open:c})):null},YBa=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){b=$APP.l(b,"trigger");var c=function(){return t9(a,"pointer")},d=function(f){var h=f.key;$APP.z.j(h," ")||$APP.z.j(h,"Enter")||$APP.z.j(h,"Space")?(f.preventDefault(),
6
+ f=t9(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.S(a,"__xCollapseHandlers",e)}},u9=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.m(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.S(a,"__xCollapseHandlers",null)}return null},$Ba=function(a){if(!$APP.m($APP.l(a,"__xCollapseRefs"))){var b=
7
+ a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),n=document.createElement("div"),r=document.createElement("slot");c.textContent=ZBa;$APP.U(d,"part","container");$APP.U(e,"part","trigger");$APP.U(e,"type","button");$APP.U(e,"id","trigger");$APP.U(e,"aria-controls","panel");$APP.U(f,"part","header-text");$APP.U(h,"part","chevron");
8
+ $APP.U(h,"aria-hidden","true");$APP.U(k,"part","content");$APP.U(k,"id","panel");$APP.U(k,"role","region");$APP.U(k,"aria-labelledby","trigger");$APP.U(n,"part","content-inner");$APP.U(r,"name","content");h.textContent="▼";e.appendChild(f);e.appendChild(h);n.appendChild(r);k.appendChild(n);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.S(a,"__xCollapseRefs",c)}u9(a);YBa(a);return s9(a)},aCa=function(a){return u9(a)},
9
+ bCa=function(a,b,c,d){return $APP.M.j(c,d)&&(s9(a),$APP.z.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.m(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.m(b)?$APP.m(c)?$APP.m(l9())?a=o9(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.N.i(b.scrollHeight)+"px",a=p9(b,"0px",c,n9(a))):$APP.m(l9())?(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.N.i(b.offsetHeight)+"px",a=p9(b,c,"0px",n9(a))):a=null,a):null},dCa=function(a){$APP.gj(a,cCa);return Object.defineProperty(a,"toggle",
10
+ {value:function(){return t9(this,"programmatic")},writable:!0,configurable:!0})},v9=function(){return $APP.vj("x-collapse",new $APP.K(null,5,[$APP.nj,eCa,$APP.oj,$Ba,$APP.pj,aCa,$APP.qj,bCa,$APP.tj,dCa],null))},r9=new $APP.F(null,"duration-ms-raw","duration-ms-raw",-2138819526),m9=new $APP.F(null,"duration-ms","duration-ms",1993555055),q9=new $APP.F(null,"header-raw","header-raw",41484);var eCa=["open","disabled","header","duration-ms"],cCa=new $APP.K(null,4,[$APP.Qu,new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"open"],null),$APP.Vm,new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"disabled"],null),$APP.Qp,new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"header"],null),new $APP.F(null,"durationMs","durationMs",1439579766),new $APP.K(null,3,[$APP.P,$APP.Y,$APP.W,"duration-ms",$APP.fj,300],null)],null);
11
+ $APP.ne(["x-collapse-toggle",new $APP.K(null,3,[$APP.Qr,!0,$APP.us,$APP.ne(["open",$APP.Qu]),$APP.Ji,new $APP.K(null,2,[$APP.Qu,$APP.ej,$APP.fr,$APP.X],null)],null),"x-collapse-change",new $APP.K(null,2,[$APP.Qr,!1,$APP.Ji,new $APP.K(null,1,[$APP.Qu,$APP.ej],null)],null)]);var ZBa=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:var(--x-border-width,1px) solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:var(--x-font-size-sm,0.9375rem);--x-collapse-font-weight:var(--x-font-weight-semibold,600);--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}"+
12
+ $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-collapse-border:var(--x-border-width,1px) solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform var(--x-transition-duration,200ms) var(--x-transition-easing,ease);flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";$APP.ha("baredom.exports.x_collapse.init",v9);export const init=v9;
@@ -1,49 +1,49 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var KG=function(a,b){return $APP.ak.j($APP.Wl.j(a,0),b)},LG=function(a){return $APP.Bd(a,360)},MG=function(a){return KG(a,100)},NG=function(a){return KG(a,1)},PG=function(a){var b=typeof a==="string";a=b?$APP.zh(OG,a.trim()):b;return $APP.D(a)},TG=function(a){if(typeof a==="string")if(a=$APP.zh(OG,a.trim()),$APP.m(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.N.i($APP.Ec(a,0))+$APP.N.i($APP.Ec(a,0)),16),c=parseInt(""+$APP.N.i($APP.Ec(a,1))+$APP.N.i($APP.Ec(a,
3
- 1)),16),d=parseInt(""+$APP.N.i($APP.Ec(a,2))+$APP.N.i($APP.Ec(a,2)),16);return new $APP.K(null,4,[QG,b,$APP.Hu,c,RG,d,SG,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.K(null,4,[QG,b,$APP.Hu,c,RG,d,SG,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.K(null,4,[QG,b,$APP.Hu,c,RG,d,SG,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
- else return null},Oja=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Wl.o(a,b,$APP.Jc([c])),e=$APP.ak.o(a,b,$APP.Jc([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.K(null,3,[UG,0,VG,0,WG,f*100],null):new $APP.K(null,3,[UG,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,VG,(f>.5?h/(2-d-e):h/(d+e))*100,WG,f*100],null)},XG=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},YG=function(a,b,c){a=LG(a)/360;b=MG(b)/100;c=MG(c)/100;if(b===0)return a=
5
- Math.round(c*255),new $APP.K(null,3,[QG,a,$APP.Hu,a,RG,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.K(null,3,[QG,Math.round(XG(c,b,a+1/3)*255),$APP.Hu,Math.round(XG(c,b,a)*255),RG,Math.round(XG(c,b,a-1/3)*255)],null)},ZG=function(a,b,c){function d(e){e=KG(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.N.i(e):e}return"#"+$APP.N.i(d(a))+$APP.N.i(d(b))+$APP.N.i(d(c))},$G=function(a,b,c,d){function e(f){f=KG(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.N.i(f):f}
6
- return"#"+$APP.N.i(e(a))+$APP.N.i(e(b))+$APP.N.i(e(c))+$APP.N.i(e(NG(d)*255))},bH=function(a,b,c){b=MG(b)/100;c=MG(c)/100;b=c+b*$APP.ak.j(c,1-c);return new $APP.K(null,3,[UG,LG(a),VG,(b===0?0:2*(1-c/b))*100,aH,b*100],null)},cH=function(a,b,c){b=MG(b)/100;c=MG(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.ak.j(b,1-b);return new $APP.K(null,3,[UG,LG(a),VG,c*100,WG,b*100],null)},dH=function(a,b,c){return 100*(KG(a-b,c)/c)},Pja=function(a){return typeof a==="string"&&PG(a)?(a=TG(a),$APP.m(a)?ZG(QG.i(a),
7
- $APP.Hu.i(a),RG.i(a)):null):"#000000"},Qja=function(a){return typeof a==="string"&&$APP.kd(eH,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Rja=function(a){return typeof a==="string"&&$APP.pi(a)?$APP.Xf.l($APP.Xe,$APP.Uj.l($APP.Oe.i($APP.li),$APP.Te(PG),$APP.Oe.i(function(b){b=TG(b);var c=$APP.G(b);b=$APP.C(c,QG);var d=$APP.C(c,$APP.Hu);c=$APP.C(c,RG);return ZG(b,d,c)})),$APP.ji(a,/,/)):$APP.Xe},Sja=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Qk);var c=$APP.C(b,$APP.Uu),d=$APP.C(b,$APP.Q),
8
- e=$APP.C(b,$APP.Ok),f=$APP.C(b,$APP.hj),h=$APP.C(b,$APP.Gm),k=$APP.C(b,fH),n=$APP.C(b,$APP.Z),r=$APP.C(b,gH);b=Pja(d);var v=function(){var T=TG(d);return $APP.m(T)?T:TG("#000000")}(),x=$APP.G(v);v=$APP.C(x,QG);var y=$APP.C(x,$APP.Hu),A=$APP.C(x,RG);x=$APP.C(x,SG);var E=function(){var T=typeof d==="string";if(T){T=d.trim();var R=$APP.zh(OG,T);return $APP.m(R)?8===$APP.w($APP.Mc($APP.zh(OG,T))):R}return T}();x=$APP.m(E)?x:1;E=Oja(v,y,A);var I=$APP.G(E);E=$APP.C(I,UG);var O=$APP.C(I,VG);I=$APP.C(I,WG);
9
- f=$APP.ni(f);r=r!=null;c=c!=null;h=Qja(h);return $APP.Ag([$APP.jm,hH,$APP.Ok,$APP.Gm,fH,VG,WG,iH,UG,$APP.Z,$APP.fs,jH,$APP.Qk,SG],[f,r,$APP.pi(e)?e:null,h,Rja(k),O,I,b,E,$APP.pi(n)?n:null,$APP.z.j(h,"popover")&&c,r&&x<1?$G(v,y,A,x):b,$APP.D(a),x])},kH=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Qk);b=$APP.C(b,$APP.jm);return $APP.p(a)&&$APP.p(b)},lH=function(a,b,c,d){$APP.U(a,"part",b);$APP.U(a,"role","slider");$APP.U(a,"tabindex","0");$APP.U(a,"aria-label",c);$APP.U(a,"aria-valuemin","0");$APP.U(a,
10
- "aria-valuemax",d)},mH=function(a,b,c,d){$APP.U(a,"part",b);$APP.U(a,"type","button");$APP.U(a,"aria-label",c);a.innerHTML=d},nH=function(a){return Sja($APP.Ag([$APP.Uu,$APP.Ok,$APP.Q,$APP.hj,$APP.Gm,fH,$APP.Z,gH,$APP.Qk],[a.getAttribute("open"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha"),$APP.Jj(a)]))},oH=function(a,b){var c=jH.i(b),d=UG.i(b),e=VG.i(b),f=WG.i(b);b=SG.i(b);
11
- return $APP.Wi(a,"x-color-picker-input",$APP.Rm(new $APP.K(null,5,[$APP.Q,c,UG,d,VG,e,WG,f,SG,b],null)))},pH=function(a,b){var c=jH.i(b),d=UG.i(b),e=VG.i(b),f=WG.i(b);b=SG.i(b);return $APP.Yi(a,"x-color-picker-change",$APP.Rm(new $APP.K(null,5,[$APP.Q,c,UG,d,VG,e,WG,f,SG,b],null)))},qH=function(a,b,c,d,e,f){b=YG(b,c,d);d=$APP.G(b);b=$APP.C(d,QG);c=$APP.C(d,$APP.Hu);d=$APP.C(d,RG);e=$APP.m($APP.m(f)?e<1:f)?$G(b,c,d,e):ZG(b,c,d);$APP.U(a,"value",e)},Tja=function(a,b,c,d){if($APP.M.j($APP.l(a,"__xColorPickerSwatchesCache"),
2
+ var GG=function(a,b){return $APP.Wj.j($APP.Sl.j(a,0),b)},HG=function(a){return $APP.Bd(a,360)},IG=function(a){return GG(a,100)},JG=function(a){return GG(a,1)},LG=function(a){var b=typeof a==="string";a=b?$APP.zh(KG,a.trim()):b;return $APP.D(a)},PG=function(a){if(typeof a==="string")if(a=$APP.zh(KG,a.trim()),$APP.m(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.N.i($APP.Ec(a,0))+$APP.N.i($APP.Ec(a,0)),16),c=parseInt(""+$APP.N.i($APP.Ec(a,1))+$APP.N.i($APP.Ec(a,
3
+ 1)),16),d=parseInt(""+$APP.N.i($APP.Ec(a,2))+$APP.N.i($APP.Ec(a,2)),16);return new $APP.K(null,4,[MG,b,$APP.Du,c,NG,d,OG,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.K(null,4,[MG,b,$APP.Du,c,NG,d,OG,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.K(null,4,[MG,b,$APP.Du,c,NG,d,OG,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
+ else return null},Sja=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Sl.o(a,b,$APP.Jc([c])),e=$APP.Wj.o(a,b,$APP.Jc([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.K(null,3,[QG,0,RG,0,SG,f*100],null):new $APP.K(null,3,[QG,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,RG,(f>.5?h/(2-d-e):h/(d+e))*100,SG,f*100],null)},TG=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},UG=function(a,b,c){a=HG(a)/360;b=IG(b)/100;c=IG(c)/100;if(b===0)return a=
5
+ Math.round(c*255),new $APP.K(null,3,[MG,a,$APP.Du,a,NG,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.K(null,3,[MG,Math.round(TG(c,b,a+1/3)*255),$APP.Du,Math.round(TG(c,b,a)*255),NG,Math.round(TG(c,b,a-1/3)*255)],null)},VG=function(a,b,c){function d(e){e=GG(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.N.i(e):e}return"#"+$APP.N.i(d(a))+$APP.N.i(d(b))+$APP.N.i(d(c))},WG=function(a,b,c,d){function e(f){f=GG(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.N.i(f):f}
6
+ return"#"+$APP.N.i(e(a))+$APP.N.i(e(b))+$APP.N.i(e(c))+$APP.N.i(e(JG(d)*255))},YG=function(a,b,c){b=IG(b)/100;c=IG(c)/100;b=c+b*$APP.Wj.j(c,1-c);return new $APP.K(null,3,[QG,HG(a),RG,(b===0?0:2*(1-c/b))*100,XG,b*100],null)},ZG=function(a,b,c){b=IG(b)/100;c=IG(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.Wj.j(b,1-b);return new $APP.K(null,3,[QG,HG(a),RG,c*100,SG,b*100],null)},$G=function(a,b,c){return 100*(GG(a-b,c)/c)},Tja=function(a){return typeof a==="string"&&LG(a)?(a=PG(a),$APP.m(a)?VG(MG.i(a),
7
+ $APP.Du.i(a),NG.i(a)):null):"#000000"},Uja=function(a){return typeof a==="string"&&$APP.kd(aH,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Vja=function(a){return typeof a==="string"&&$APP.li(a)?$APP.Xf.l($APP.Xe,$APP.Qj.l($APP.Oe.i($APP.hi),$APP.Te(LG),$APP.Oe.i(function(b){b=PG(b);var c=$APP.G(b);b=$APP.C(c,MG);var d=$APP.C(c,$APP.Du);c=$APP.C(c,NG);return VG(b,d,c)})),$APP.fi(a,/,/)):$APP.Xe},Wja=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Mk);var c=$APP.C(b,$APP.Qu),d=$APP.C(b,$APP.Q),
8
+ e=$APP.C(b,$APP.Kk),f=$APP.C(b,$APP.dj),h=$APP.C(b,$APP.Cm),k=$APP.C(b,bH),n=$APP.C(b,$APP.Z),r=$APP.C(b,cH);b=Tja(d);var v=function(){var T=PG(d);return $APP.m(T)?T:PG("#000000")}(),x=$APP.G(v);v=$APP.C(x,MG);var y=$APP.C(x,$APP.Du),A=$APP.C(x,NG);x=$APP.C(x,OG);var E=function(){var T=typeof d==="string";if(T){T=d.trim();var R=$APP.zh(KG,T);return $APP.m(R)?8===$APP.w($APP.Mc($APP.zh(KG,T))):R}return T}();x=$APP.m(E)?x:1;E=Sja(v,y,A);var I=$APP.G(E);E=$APP.C(I,QG);var O=$APP.C(I,RG);I=$APP.C(I,SG);
9
+ f=$APP.ji(f);r=r!=null;c=c!=null;h=Uja(h);return $APP.Ag([$APP.fm,dH,$APP.Kk,$APP.Cm,bH,RG,SG,eH,QG,$APP.Z,$APP.bs,fH,$APP.Mk,OG],[f,r,$APP.li(e)?e:null,h,Vja(k),O,I,b,E,$APP.li(n)?n:null,$APP.z.j(h,"popover")&&c,r&&x<1?WG(v,y,A,x):b,$APP.D(a),x])},gH=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Mk);b=$APP.C(b,$APP.fm);return $APP.p(a)&&$APP.p(b)},hH=function(a,b,c,d){$APP.U(a,"part",b);$APP.U(a,"role","slider");$APP.U(a,"tabindex","0");$APP.U(a,"aria-label",c);$APP.U(a,"aria-valuemin","0");$APP.U(a,
10
+ "aria-valuemax",d)},iH=function(a,b,c,d){$APP.U(a,"part",b);$APP.U(a,"type","button");$APP.U(a,"aria-label",c);a.innerHTML=d},jH=function(a){return Wja($APP.Ag([$APP.Qu,$APP.Kk,$APP.Q,$APP.dj,$APP.Cm,bH,$APP.Z,cH,$APP.Mk],[a.getAttribute("open"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha"),$APP.Fj(a)]))},kH=function(a,b){var c=fH.i(b),d=QG.i(b),e=RG.i(b),f=SG.i(b);b=OG.i(b);
11
+ return $APP.Mi(a,"x-color-picker-input",$APP.Nm(new $APP.K(null,5,[$APP.Q,c,QG,d,RG,e,SG,f,OG,b],null)))},lH=function(a,b){var c=fH.i(b),d=QG.i(b),e=RG.i(b),f=SG.i(b);b=OG.i(b);return $APP.Oi(a,"x-color-picker-change",$APP.Nm(new $APP.K(null,5,[$APP.Q,c,QG,d,RG,e,SG,f,OG,b],null)))},mH=function(a,b,c,d,e,f){b=UG(b,c,d);d=$APP.G(b);b=$APP.C(d,MG);c=$APP.C(d,$APP.Du);d=$APP.C(d,NG);e=$APP.m($APP.m(f)?e<1:f)?WG(b,c,d,e):VG(b,c,d);$APP.U(a,"value",e)},Xja=function(a,b,c,d){if($APP.M.j($APP.l(a,"__xColorPickerSwatchesCache"),
12
12
  c)){$APP.S(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.U(k,"part","swatch");$APP.U(k,"type","button");$APP.U(k,"role","option");$APP.U(k,"aria-label",h);$APP.U(k,"data-color",h);k.style.backgroundColor=h;b.appendChild(k);f+=1}else if(a=$APP.q(a))$APP.gd(a)?(e=$APP.Jb(a),a=$APP.Kb(a),c=e,e=$APP.w(e)):(c=$APP.t(a),e=document.createElement("button"),$APP.U(e,"part","swatch"),$APP.U(e,"type","button"),
13
- $APP.U(e,"role","option"),$APP.U(e,"aria-label",c),$APP.U(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.u(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(n){return $APP.U(n,"aria-selected",$APP.z.j(n.getAttribute("data-color"),d)?"true":"false")})},rH=function(a){if($APP.m($APP.l(a,"__xColorPickerRefs"))){var b=nH(a);if($APP.M.j($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");if($APP.m(c)){var d=$APP.l(c,"area"),
14
- e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),n=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),v=$APP.C(r,UG);r=$APP.C(r,$APP.Gm);$APP.U(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.N.i(Math.round(v)));r=$APP.G(b);var x=$APP.C(r,UG),y=$APP.C(r,VG),A=$APP.C(r,WG);v=$APP.C(r,SG);r=$APP.C(r,$APP.Z);y=bH(x,y,A);var E=$APP.G(y);y=$APP.C(E,VG);E=$APP.C(E,aH);E=new $APP.K(null,2,[$APP.Fu,MG(y),$APP.Eu,100-MG(E)],null);
15
- d.style.setProperty("--_x-cp-area-x",""+$APP.N.i($APP.Fu.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.N.i($APP.Eu.i(E).toFixed(2))+"%");x="Hue "+$APP.N.i(Math.round(x))+", Saturation "+$APP.N.i(Math.round(y))+"%, Lightness "+$APP.N.i(Math.round(A))+"%";v=v<1?""+$APP.N.i(x)+", Opacity "+$APP.N.i(Math.round(v*100))+"%":x;$APP.U(d,"aria-valuetext",v);$APP.m(r)&&$APP.U(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,UG);e.style.setProperty("--_x-cp-hue-pos",""+$APP.N.i((LG(d)/360*100).toFixed(2))+
16
- "%");$APP.U(e,"aria-valuenow",""+$APP.N.i(Math.round(d)));x=$APP.G(b);e=$APP.C(x,UG);d=$APP.C(x,VG);v=$APP.C(x,WG);r=$APP.C(x,SG);x=$APP.C(x,hH);$APP.m(x)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.N.i(Math.round(e))+","+$APP.N.i(Math.round(d))+"%,"+$APP.N.i(Math.round(v))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.N.i((NG(r)*100).toFixed(2))+"%"),$APP.U(f,"aria-valuenow",""+$APP.N.i(Math.round(r*100)))):f.style.display="none";x=$APP.G(b);e=$APP.C(x,UG);d=
17
- $APP.C(x,VG);v=$APP.C(x,WG);f=$APP.C(x,SG);r=$APP.C(x,iH);x=$APP.C(x,hH);$APP.m(x)?(e=YG(e,d,v),v=$APP.G(e),e=$APP.C(v,QG),d=$APP.C(v,$APP.Hu),v=$APP.C(v,RG),f="rgba("+$APP.N.i(e)+","+$APP.N.i(d)+","+$APP.N.i(v)+","+$APP.N.i(f.toFixed(2))+")"):f=r;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,jH);k=$APP.C(f,$APP.Qk);f=$APP.C(f,$APP.jm);a.shadowRoot.activeElement!==n&&(n.value=h);n.disabled=$APP.m(k)?k:f;Tja(a,c,fH.i(b),iH.i(b));n=$APP.G(b);n=$APP.C(n,jH);c=$APP.l(a,"__xColorPickerInternals");
18
- $APP.m(c)&&c.setFormValue(n);a=$APP.S(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},tH=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=dH(b.clientX,c.left,c.width);a=dH(a,d,e);return new $APP.K(null,2,[sH,MG(b),$APP.$o,100-MG(a)],null)},uH=function(a,b){a=a.getBoundingClientRect();b=dH(b.clientX,a.left,a.width);return MG(b)/100*360},vH=function(a,b){a=a.getBoundingClientRect();b=dH(b.clientX,a.left,a.width);return MG(b)/100},Vja=function(a,
19
- b){var c=nH(a);if(kH(c)&&$APP.kd(Uja,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=bH(UG.i(c),VG.i(c),WG.i(c)),f=function(){switch(b.key){case "ArrowRight":return MG(VG.i(e)+d);case "ArrowLeft":return MG(VG.i(e)-d);default:return VG.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return MG(aH.i(e)+d);case "ArrowDown":return MG(aH.i(e)-d);default:return aH.i(e)}}();f=cH(UG.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,UG);h=$APP.C(k,VG);k=$APP.C(k,WG);qH(a,f,h,k,SG.i(c),hH.i(c));oH(a,nH(a));
20
- return pH(a,nH(a))}return null},Wja=function(a,b){var c=nH(a);if(kH(c)&&$APP.kd(wH,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return LG(UG.i(c)+d);case "ArrowLeft":return LG(UG.i(c)-d);case "Home":return 0;case "End":return 360;default:return UG.i(c)}}();qH(a,e,VG.i(c),WG.i(c),SG.i(c),hH.i(c));oH(a,nH(a));return pH(a,nH(a))}return null},Xja=function(a,b){var c=nH(a);if($APP.m(function(){var f=kH(c);return f?(f=hH.i(c),$APP.m(f)?$APP.kd(wH,
21
- b.key):f):f}())){b.preventDefault();var d=$APP.m(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return NG(SG.i(c)+d);case "ArrowLeft":return NG(SG.i(c)-d);case "Home":return 0;case "End":return 1;default:return SG.i(c)}}();qH(a,UG.i(c),VG.i(c),WG.i(c),e,!0);oH(a,nH(a));return pH(a,nH(a))}return null},Yja=function(a){var b=nH(a);return kH(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.U(a,"value",c.sRGBHex);return pH(a,nH(a))}).catch(function(){return null}):
22
- null},Zja=function(a){if($APP.m(a.hasAttribute("open")))return null;$APP.U(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.m(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},xH=function(a){return $APP.m(a.hasAttribute("open"))?($APP.V(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.m(a)?$APP.l(a,"trigger").focus():null):null},$ja=function(a,b){return $APP.m(a.hasAttribute("open"))?$APP.m(b.composedPath().some(function(c){return c===a}))?null:xH(a):null},
23
- aka=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=nH(a);b=tH($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,sH);d=$APP.C(d,$APP.$o);b=cH(UG.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,UG);d=$APP.C(e,VG);e=$APP.C(e,WG);qH(a,b,d,e,SG.i(c),hH.i(c));c=oH(a,nH(a))}else c=null;return c},copy:function(){var b=nH(a);return $APP.m(navigator.clipboard)?navigator.clipboard.writeText(jH.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
- b.key)&&$APP.z.j("popover",$APP.Gm.i(nH(a)))?(b.preventDefault(),b.stopPropagation(),b=xH(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.S(a,"__xColorPickerDragging",null);var b=pH(a,nH(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.S(a,"__xColorPickerDragging",null);var b=pH(a,nH(a))}else b=null;return b},"alpha-key":function(b){return Xja(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
25
- $APP.l(a,"__xColorPickerDragging"))){var c=nH(a);b=vH($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);qH(a,UG.i(c),VG.i(c),WG.i(c),b,!0);c=oH(a,nH(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=nH(a);if(kH(d)){if(PG(c)){$APP.U(a,"value",c);b=pH(a,nH(a));break a}b=b.value=jH.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=nH(a);if(kH(c)&&(b=b.target,$APP.m(b.hasAttribute("data-color")))){b=
26
- b.getAttribute("data-color");$APP.U(a,"value",b);b=pH(a,nH(a));break a}b=null}return b},"area-up":function(){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.S(a,"__xColorPickerDragging",null);var b=pH(a,nH(a))}else b=null;return b},"alpha-down":function(b){var c=nH(a);var d=(d=kH(c))?hH.i(c):d;$APP.m(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.S(a,"__xColorPickerDragging","alpha"),b=vH(d,b),qH(a,UG.i(c),VG.i(c),WG.i(c),
27
- b,!0),c=oH(a,nH(a))):c=null;return c},"area-key":function(b){return Vja(a,b)},"hue-down":function(b){var c=nH(a);if(kH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.S(a,"__xColorPickerDragging","hue");b=uH(d,b);qH(a,b,VG.i(c),WG.i(c),SG.i(c),hH.i(c));c=oH(a,nH(a))}else c=null;return c},"hue-key":function(b){return Wja(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=nH(a);b=uH($APP.l($APP.l(a,
28
- "__xColorPickerRefs"),"hue-strip"),b);qH(a,b,VG.i(c),WG.i(c),SG.i(c),hH.i(c));c=oH(a,nH(a))}else c=null;return c},eyedrop:function(){return Yja(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=nH(a);return $APP.z.j("popover",$APP.Gm.i(b))&&$APP.p($APP.Qk.i(b))?$APP.m($APP.fs.i(b))?xH(a):Zja(a):null},"doc-click":function(b){return $ja(a,b)},"area-down":function(b){var c=nH(a);if(kH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
- $APP.S(a,"__xColorPickerDragging","area");b=tH(d,b);d=$APP.G(b);b=$APP.C(d,sH);d=$APP.C(d,$APP.$o);b=cH(UG.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,UG);d=$APP.C(e,VG);e=$APP.C(e,WG);qH(a,b,d,e,SG.i(c),hH.i(c));c=oH(a,nH(a))}else c=null;return c}}},zH=function(a,b){return $APP.z.j(b,yH)?document:$APP.l(a,b)},BH=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.m($APP.m(b)?c:b)){for(var d=$APP.q(AH),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),n=$APP.B(k,0,null),
30
- r=$APP.B(k,1,null),v=$APP.B(k,2,null);k=$APP.B(k,3,null);zH(b,n).removeEventListener(r,$APP.l(c,v),k);h+=1}else if(d=$APP.q(d))$APP.gd(d)?(f=$APP.Jb(d),d=$APP.Kb(d),e=f,f=$APP.w(f)):(n=$APP.t(d),e=$APP.B(n,0,null),f=$APP.B(n,1,null),h=$APP.B(n,2,null),n=$APP.B(n,3,null),zH(b,e).removeEventListener(f,$APP.l(c,h),n),d=$APP.u(d),e=null,f=0),h=0;else break;return $APP.S(a,"__xColorPickerHandlers",null)}return null},bka=function(a){$APP.U(a,"value","#000000");return rH(a)},dka=function(a){if(!$APP.m($APP.l(a,
31
- "__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.U(f,"part","trigger");$APP.U(f,"type","button");$APP.U(f,"aria-label","Pick color");$APP.U(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.K(null,2,[$APP.At,f,CH,h],null);h=document.createElement("div");var k=document.createElement("div");$APP.U(h,"part",
32
- "area");$APP.U(h,"role","slider");$APP.U(h,"tabindex","0");$APP.U(h,"aria-label","Color");$APP.U(k,"part","area-thumb");h.appendChild(k);h=new $APP.K(null,2,[DH,h,EH,k],null);k=document.createElement("div");var n=document.createElement("div"),r=document.createElement("div"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div");$APP.U(k,"part","strips");lH(n,"hue-strip","Hue","360");lH(v,"alpha-strip","Opacity","100");$APP.U(r,"part","hue-thumb");$APP.U(x,
33
- "part","alpha-gradient");$APP.U(y,"part","alpha-thumb");n.appendChild(r);v.appendChild(x);v.appendChild(y);k.appendChild(n);k.appendChild(v);k=new $APP.K(null,6,[FH,k,GH,n,HH,r,IH,v,JH,x,KH,y],null);n=document.createElement("div");r=document.createElement("div");v=document.createElement("span");x=document.createElement("input");y=document.createElement("button");var A=document.createElement("button");$APP.U(n,"part","controls");$APP.U(r,"part","preview");$APP.U(v,"part","preview-color");$APP.U(x,
34
- "part","hex-input");$APP.U(x,"type","text");$APP.U(x,"spellcheck","false");$APP.U(x,"autocomplete","off");$APP.U(x,"aria-label","Hex color value");mH(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
- mH(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(v);n.appendChild(r);n.appendChild(x);
36
- n.appendChild(y);n.appendChild(A);n=new $APP.K(null,6,[$APP.$r,n,LH,r,MH,v,NH,x,OH,y,$APP.hs,A],null);r=document.createElement("div");$APP.U(r,"part","swatches");$APP.U(r,"role","listbox");$APP.U(r,"aria-label","Preset colors");r=new $APP.K(null,1,[fH,r],null);c.textContent=cka;$APP.U(d,"part","container");$APP.U(e,"part","panel");e.appendChild(DH.i(h));e.appendChild(FH.i(k));e.appendChild($APP.$r.i(n));e.appendChild(fH.i(r));d.appendChild($APP.At.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);
37
- b={"alpha-thumb":KH.i(k),copy:$APP.hs.i(n),swatches:fH.i(r),"hue-strip":GH.i(k),controls:$APP.$r.i(n),"alpha-gradient":JH.i(k),panel:e,preview:LH.i(n),"area-thumb":EH.i(h),"preview-color":MH.i(n),container:d,area:DH.i(h),"hue-thumb":HH.i(k),"trigger-swatch":CH.i(f),trigger:$APP.At.i(f),"alpha-strip":IH.i(k),eyedropper:OH.i(n),"hex-input":NH.i(n)};$APP.S(a,"__xColorPickerRefs",b);$APP.m(a.attachInternals)&&$APP.S(a,"__xColorPickerInternals",a.attachInternals())}BH(a);b=$APP.l(a,"__xColorPickerRefs");
38
- if($APP.m(b)){c=aka(a);d=$APP.q(AH);e=null;for(h=f=0;;)if(h<f)v=e.C(null,h),k=$APP.B(v,0,null),n=$APP.B(v,1,null),r=$APP.B(v,2,null),v=$APP.B(v,3,null),zH(b,k).addEventListener(n,$APP.l(c,r),v),h+=1;else if(d=$APP.q(d))$APP.gd(d)?(f=$APP.Jb(d),d=$APP.Kb(d),e=f,f=$APP.w(f)):(k=$APP.t(d),e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),zH(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.u(d),e=null,f=0),h=0;else break;$APP.S(a,"__xColorPickerHandlers",c)}return rH(a)},eka=function(a){return BH(a)},
39
- fka=function(a,b,c,d){return $APP.M.j(c,d)?rH(a):null},hka=function(a){$APP.Mj(a,"__xColorPickerInternals");return $APP.kj(a,gka)},PH=function(){return $APP.zj("x-color-picker",new $APP.K(null,7,[$APP.rj,ika,$APP.sj,dka,$APP.tj,eka,$APP.uj,fka,$APP.vj,!0,$APP.wj,bka,$APP.xj,hka],null))},JH=new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),KH=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),MH=new $APP.F(null,"preview-color","preview-color",1405210195),IH=new $APP.F(null,"alpha-strip",
40
- "alpha-strip",1085401595),EH=new $APP.F(null,"area-thumb","area-thumb",1471343090),hH=new $APP.F(null,"alpha?","alpha?",1329751525),sH=new $APP.F(null,"sat","sat",1064662667),CH=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),yH=new $APP.F(null,"document","document",-1329188687),OH=new $APP.F(null,"eyedropper","eyedropper",-1786107588),DH=new $APP.F(null,"area","area",472007256),gH=new $APP.F(null,"alpha","alpha",-1574982441),jH=new $APP.F(null,"hex-full","hex-full",-1466644518),NH=new $APP.F(null,
41
- "hex-input","hex-input",1497535517),LH=new $APP.F(null,"preview","preview",451279890),GH=new $APP.F(null,"hue-strip","hue-strip",938856876),fH=new $APP.F(null,"swatches","swatches",2033601707),FH=new $APP.F(null,"strips","strips",-1564791997),aH=new $APP.F(null,"v","v",21465059),VG=new $APP.F(null,"s","s",1705939918),QG=new $APP.F(null,"r","r",-471384190),WG=new $APP.F(null,"l","l",1395893423),UG=new $APP.F(null,"h","h",1109658740),RG=new $APP.F(null,"b","b",1482224470),SG=new $APP.F(null,"a","a",
42
- -2123407586),iH=new $APP.F(null,"hex","hex",41691346),HH=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var eH=new $APP.ah(null,new $APP.K(null,2,["inline",null,"popover",null],null),null),ika="value alpha swatches disabled readonly name mode open label".split(" "),gka=$APP.Ag([$APP.zv,$APP.Uu,$APP.cv,$APP.Xp,$APP.Zm,$APP.Ok,$APP.Q,$APP.Gm,fH,$APP.Wu,$APP.Z,gH,$APP.hr,$APP.Jq],[new $APP.K(null,2,[$APP.P,$APP.X,$APP.hj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"open"],null),new $APP.K(null,2,[$APP.P,$APP.jq,$APP.hj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.hj,!0],null),new $APP.K(null,
43
- 2,[$APP.P,$APP.ij,$APP.W,"disabled"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"name"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"value"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"mode",$APP.lu,eH],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"swatches"],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"readonly"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"label"],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"alpha"],null),new $APP.K(null,2,[$APP.P,$APP.$t,$APP.hj,!0],null),new $APP.K(null,
44
- 2,[$APP.P,$APP.Nt,$APP.hj,!0],null)]);$APP.ne(["x-color-picker-input",new $APP.K(null,2,[$APP.Ni,new $APP.K(null,5,[$APP.Q,$APP.X,UG,$APP.Y,VG,$APP.Y,WG,$APP.Y,SG,$APP.Y],null),$APP.Ur,!1],null),"x-color-picker-change",new $APP.K(null,2,[$APP.Ni,new $APP.K(null,5,[$APP.Q,$APP.X,UG,$APP.Y,VG,$APP.Y,WG,$APP.Y,SG,$APP.Y],null),$APP.Ur,!0],null)]);var OG=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var cka=":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;}"+
13
+ $APP.U(e,"role","option"),$APP.U(e,"aria-label",c),$APP.U(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.u(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(n){return $APP.U(n,"aria-selected",$APP.z.j(n.getAttribute("data-color"),d)?"true":"false")})},nH=function(a){if($APP.m($APP.l(a,"__xColorPickerRefs"))){var b=jH(a);if($APP.M.j($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");if($APP.m(c)){var d=$APP.l(c,"area"),
14
+ e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),n=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),v=$APP.C(r,QG);r=$APP.C(r,$APP.Cm);$APP.U(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.N.i(Math.round(v)));r=$APP.G(b);var x=$APP.C(r,QG),y=$APP.C(r,RG),A=$APP.C(r,SG);v=$APP.C(r,OG);r=$APP.C(r,$APP.Z);y=YG(x,y,A);var E=$APP.G(y);y=$APP.C(E,RG);E=$APP.C(E,XG);E=new $APP.K(null,2,[$APP.Bu,IG(y),$APP.Au,100-IG(E)],null);
15
+ d.style.setProperty("--_x-cp-area-x",""+$APP.N.i($APP.Bu.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.N.i($APP.Au.i(E).toFixed(2))+"%");x="Hue "+$APP.N.i(Math.round(x))+", Saturation "+$APP.N.i(Math.round(y))+"%, Lightness "+$APP.N.i(Math.round(A))+"%";v=v<1?""+$APP.N.i(x)+", Opacity "+$APP.N.i(Math.round(v*100))+"%":x;$APP.U(d,"aria-valuetext",v);$APP.m(r)&&$APP.U(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,QG);e.style.setProperty("--_x-cp-hue-pos",""+$APP.N.i((HG(d)/360*100).toFixed(2))+
16
+ "%");$APP.U(e,"aria-valuenow",""+$APP.N.i(Math.round(d)));x=$APP.G(b);e=$APP.C(x,QG);d=$APP.C(x,RG);v=$APP.C(x,SG);r=$APP.C(x,OG);x=$APP.C(x,dH);$APP.m(x)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.N.i(Math.round(e))+","+$APP.N.i(Math.round(d))+"%,"+$APP.N.i(Math.round(v))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.N.i((JG(r)*100).toFixed(2))+"%"),$APP.U(f,"aria-valuenow",""+$APP.N.i(Math.round(r*100)))):f.style.display="none";x=$APP.G(b);e=$APP.C(x,QG);d=
17
+ $APP.C(x,RG);v=$APP.C(x,SG);f=$APP.C(x,OG);r=$APP.C(x,eH);x=$APP.C(x,dH);$APP.m(x)?(e=UG(e,d,v),v=$APP.G(e),e=$APP.C(v,MG),d=$APP.C(v,$APP.Du),v=$APP.C(v,NG),f="rgba("+$APP.N.i(e)+","+$APP.N.i(d)+","+$APP.N.i(v)+","+$APP.N.i(f.toFixed(2))+")"):f=r;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,fH);k=$APP.C(f,$APP.Mk);f=$APP.C(f,$APP.fm);a.shadowRoot.activeElement!==n&&(n.value=h);n.disabled=$APP.m(k)?k:f;Xja(a,c,bH.i(b),eH.i(b));n=$APP.G(b);n=$APP.C(n,fH);c=$APP.l(a,"__xColorPickerInternals");
18
+ $APP.m(c)&&c.setFormValue(n);a=$APP.S(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},pH=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=$G(b.clientX,c.left,c.width);a=$G(a,d,e);return new $APP.K(null,2,[oH,IG(b),$APP.Wo,100-IG(a)],null)},qH=function(a,b){a=a.getBoundingClientRect();b=$G(b.clientX,a.left,a.width);return IG(b)/100*360},rH=function(a,b){a=a.getBoundingClientRect();b=$G(b.clientX,a.left,a.width);return IG(b)/100},Zja=function(a,
19
+ b){var c=jH(a);if(gH(c)&&$APP.kd(Yja,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=YG(QG.i(c),RG.i(c),SG.i(c)),f=function(){switch(b.key){case "ArrowRight":return IG(RG.i(e)+d);case "ArrowLeft":return IG(RG.i(e)-d);default:return RG.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return IG(XG.i(e)+d);case "ArrowDown":return IG(XG.i(e)-d);default:return XG.i(e)}}();f=ZG(QG.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,QG);h=$APP.C(k,RG);k=$APP.C(k,SG);mH(a,f,h,k,OG.i(c),dH.i(c));kH(a,jH(a));
20
+ return lH(a,jH(a))}return null},$ja=function(a,b){var c=jH(a);if(gH(c)&&$APP.kd(sH,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return HG(QG.i(c)+d);case "ArrowLeft":return HG(QG.i(c)-d);case "Home":return 0;case "End":return 360;default:return QG.i(c)}}();mH(a,e,RG.i(c),SG.i(c),OG.i(c),dH.i(c));kH(a,jH(a));return lH(a,jH(a))}return null},aka=function(a,b){var c=jH(a);if($APP.m(function(){var f=gH(c);return f?(f=dH.i(c),$APP.m(f)?$APP.kd(sH,
21
+ b.key):f):f}())){b.preventDefault();var d=$APP.m(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return JG(OG.i(c)+d);case "ArrowLeft":return JG(OG.i(c)-d);case "Home":return 0;case "End":return 1;default:return OG.i(c)}}();mH(a,QG.i(c),RG.i(c),SG.i(c),e,!0);kH(a,jH(a));return lH(a,jH(a))}return null},bka=function(a){var b=jH(a);return gH(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.U(a,"value",c.sRGBHex);return lH(a,jH(a))}).catch(function(){return null}):
22
+ null},cka=function(a){if($APP.m(a.hasAttribute("open")))return null;$APP.U(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.m(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},tH=function(a){return $APP.m(a.hasAttribute("open"))?($APP.V(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.m(a)?$APP.l(a,"trigger").focus():null):null},dka=function(a,b){return $APP.m(a.hasAttribute("open"))?$APP.m(b.composedPath().some(function(c){return c===a}))?null:tH(a):null},
23
+ eka=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=jH(a);b=pH($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,oH);d=$APP.C(d,$APP.Wo);b=ZG(QG.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,QG);d=$APP.C(e,RG);e=$APP.C(e,SG);mH(a,b,d,e,OG.i(c),dH.i(c));c=kH(a,jH(a))}else c=null;return c},copy:function(){var b=jH(a);return $APP.m(navigator.clipboard)?navigator.clipboard.writeText(fH.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
+ b.key)&&$APP.z.j("popover",$APP.Cm.i(jH(a)))?(b.preventDefault(),b.stopPropagation(),b=tH(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.S(a,"__xColorPickerDragging",null);var b=lH(a,jH(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.S(a,"__xColorPickerDragging",null);var b=lH(a,jH(a))}else b=null;return b},"alpha-key":function(b){return aka(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
25
+ $APP.l(a,"__xColorPickerDragging"))){var c=jH(a);b=rH($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);mH(a,QG.i(c),RG.i(c),SG.i(c),b,!0);c=kH(a,jH(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=jH(a);if(gH(d)){if(LG(c)){$APP.U(a,"value",c);b=lH(a,jH(a));break a}b=b.value=fH.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=jH(a);if(gH(c)&&(b=b.target,$APP.m(b.hasAttribute("data-color")))){b=
26
+ b.getAttribute("data-color");$APP.U(a,"value",b);b=lH(a,jH(a));break a}b=null}return b},"area-up":function(){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.S(a,"__xColorPickerDragging",null);var b=lH(a,jH(a))}else b=null;return b},"alpha-down":function(b){var c=jH(a);var d=(d=gH(c))?dH.i(c):d;$APP.m(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.S(a,"__xColorPickerDragging","alpha"),b=rH(d,b),mH(a,QG.i(c),RG.i(c),SG.i(c),
27
+ b,!0),c=kH(a,jH(a))):c=null;return c},"area-key":function(b){return Zja(a,b)},"hue-down":function(b){var c=jH(a);if(gH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.S(a,"__xColorPickerDragging","hue");b=qH(d,b);mH(a,b,RG.i(c),SG.i(c),OG.i(c),dH.i(c));c=kH(a,jH(a))}else c=null;return c},"hue-key":function(b){return $ja(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=jH(a);b=qH($APP.l($APP.l(a,
28
+ "__xColorPickerRefs"),"hue-strip"),b);mH(a,b,RG.i(c),SG.i(c),OG.i(c),dH.i(c));c=kH(a,jH(a))}else c=null;return c},eyedrop:function(){return bka(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=jH(a);return $APP.z.j("popover",$APP.Cm.i(b))&&$APP.p($APP.Mk.i(b))?$APP.m($APP.bs.i(b))?tH(a):cka(a):null},"doc-click":function(b){return dka(a,b)},"area-down":function(b){var c=jH(a);if(gH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
+ $APP.S(a,"__xColorPickerDragging","area");b=pH(d,b);d=$APP.G(b);b=$APP.C(d,oH);d=$APP.C(d,$APP.Wo);b=ZG(QG.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,QG);d=$APP.C(e,RG);e=$APP.C(e,SG);mH(a,b,d,e,OG.i(c),dH.i(c));c=kH(a,jH(a))}else c=null;return c}}},vH=function(a,b){return $APP.z.j(b,uH)?document:$APP.l(a,b)},xH=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.m($APP.m(b)?c:b)){for(var d=$APP.q(wH),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),n=$APP.B(k,0,null),
30
+ r=$APP.B(k,1,null),v=$APP.B(k,2,null);k=$APP.B(k,3,null);vH(b,n).removeEventListener(r,$APP.l(c,v),k);h+=1}else if(d=$APP.q(d))$APP.gd(d)?(f=$APP.Jb(d),d=$APP.Kb(d),e=f,f=$APP.w(f)):(n=$APP.t(d),e=$APP.B(n,0,null),f=$APP.B(n,1,null),h=$APP.B(n,2,null),n=$APP.B(n,3,null),vH(b,e).removeEventListener(f,$APP.l(c,h),n),d=$APP.u(d),e=null,f=0),h=0;else break;return $APP.S(a,"__xColorPickerHandlers",null)}return null},fka=function(a){$APP.U(a,"value","#000000");return nH(a)},hka=function(a){if(!$APP.m($APP.l(a,
31
+ "__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.U(f,"part","trigger");$APP.U(f,"type","button");$APP.U(f,"aria-label","Pick color");$APP.U(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.K(null,2,[$APP.wt,f,yH,h],null);h=document.createElement("div");var k=document.createElement("div");$APP.U(h,"part",
32
+ "area");$APP.U(h,"role","slider");$APP.U(h,"tabindex","0");$APP.U(h,"aria-label","Color");$APP.U(k,"part","area-thumb");h.appendChild(k);h=new $APP.K(null,2,[zH,h,AH,k],null);k=document.createElement("div");var n=document.createElement("div"),r=document.createElement("div"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div");$APP.U(k,"part","strips");hH(n,"hue-strip","Hue","360");hH(v,"alpha-strip","Opacity","100");$APP.U(r,"part","hue-thumb");$APP.U(x,
33
+ "part","alpha-gradient");$APP.U(y,"part","alpha-thumb");n.appendChild(r);v.appendChild(x);v.appendChild(y);k.appendChild(n);k.appendChild(v);k=new $APP.K(null,6,[BH,k,CH,n,DH,r,EH,v,FH,x,GH,y],null);n=document.createElement("div");r=document.createElement("div");v=document.createElement("span");x=document.createElement("input");y=document.createElement("button");var A=document.createElement("button");$APP.U(n,"part","controls");$APP.U(r,"part","preview");$APP.U(v,"part","preview-color");$APP.U(x,
34
+ "part","hex-input");$APP.U(x,"type","text");$APP.U(x,"spellcheck","false");$APP.U(x,"autocomplete","off");$APP.U(x,"aria-label","Hex color value");iH(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
+ iH(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(v);n.appendChild(r);n.appendChild(x);
36
+ n.appendChild(y);n.appendChild(A);n=new $APP.K(null,6,[$APP.Wr,n,HH,r,IH,v,JH,x,KH,y,$APP.ds,A],null);r=document.createElement("div");$APP.U(r,"part","swatches");$APP.U(r,"role","listbox");$APP.U(r,"aria-label","Preset colors");r=new $APP.K(null,1,[bH,r],null);c.textContent=gka;$APP.U(d,"part","container");$APP.U(e,"part","panel");e.appendChild(zH.i(h));e.appendChild(BH.i(k));e.appendChild($APP.Wr.i(n));e.appendChild(bH.i(r));d.appendChild($APP.wt.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);
37
+ b={"alpha-thumb":GH.i(k),copy:$APP.ds.i(n),swatches:bH.i(r),"hue-strip":CH.i(k),controls:$APP.Wr.i(n),"alpha-gradient":FH.i(k),panel:e,preview:HH.i(n),"area-thumb":AH.i(h),"preview-color":IH.i(n),container:d,area:zH.i(h),"hue-thumb":DH.i(k),"trigger-swatch":yH.i(f),trigger:$APP.wt.i(f),"alpha-strip":EH.i(k),eyedropper:KH.i(n),"hex-input":JH.i(n)};$APP.S(a,"__xColorPickerRefs",b);$APP.m(a.attachInternals)&&$APP.S(a,"__xColorPickerInternals",a.attachInternals())}xH(a);b=$APP.l(a,"__xColorPickerRefs");
38
+ if($APP.m(b)){c=eka(a);d=$APP.q(wH);e=null;for(h=f=0;;)if(h<f)v=e.C(null,h),k=$APP.B(v,0,null),n=$APP.B(v,1,null),r=$APP.B(v,2,null),v=$APP.B(v,3,null),vH(b,k).addEventListener(n,$APP.l(c,r),v),h+=1;else if(d=$APP.q(d))$APP.gd(d)?(f=$APP.Jb(d),d=$APP.Kb(d),e=f,f=$APP.w(f)):(k=$APP.t(d),e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),vH(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.u(d),e=null,f=0),h=0;else break;$APP.S(a,"__xColorPickerHandlers",c)}return nH(a)},ika=function(a){return xH(a)},
39
+ jka=function(a,b,c,d){return $APP.M.j(c,d)?nH(a):null},lka=function(a){$APP.Ij(a,"__xColorPickerInternals");return $APP.gj(a,kka)},LH=function(){return $APP.vj("x-color-picker",new $APP.K(null,7,[$APP.nj,mka,$APP.oj,hka,$APP.pj,ika,$APP.qj,jka,$APP.rj,!0,$APP.sj,fka,$APP.tj,lka],null))},FH=new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),GH=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),IH=new $APP.F(null,"preview-color","preview-color",1405210195),EH=new $APP.F(null,"alpha-strip",
40
+ "alpha-strip",1085401595),AH=new $APP.F(null,"area-thumb","area-thumb",1471343090),dH=new $APP.F(null,"alpha?","alpha?",1329751525),oH=new $APP.F(null,"sat","sat",1064662667),yH=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),uH=new $APP.F(null,"document","document",-1329188687),KH=new $APP.F(null,"eyedropper","eyedropper",-1786107588),zH=new $APP.F(null,"area","area",472007256),cH=new $APP.F(null,"alpha","alpha",-1574982441),fH=new $APP.F(null,"hex-full","hex-full",-1466644518),JH=new $APP.F(null,
41
+ "hex-input","hex-input",1497535517),HH=new $APP.F(null,"preview","preview",451279890),CH=new $APP.F(null,"hue-strip","hue-strip",938856876),bH=new $APP.F(null,"swatches","swatches",2033601707),BH=new $APP.F(null,"strips","strips",-1564791997),XG=new $APP.F(null,"v","v",21465059),RG=new $APP.F(null,"s","s",1705939918),MG=new $APP.F(null,"r","r",-471384190),SG=new $APP.F(null,"l","l",1395893423),QG=new $APP.F(null,"h","h",1109658740),NG=new $APP.F(null,"b","b",1482224470),OG=new $APP.F(null,"a","a",
42
+ -2123407586),eH=new $APP.F(null,"hex","hex",41691346),DH=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var aH=new $APP.ah(null,new $APP.K(null,2,["inline",null,"popover",null],null),null),mka="value alpha swatches disabled readonly name mode open label".split(" "),kka=$APP.Ag([$APP.vv,$APP.Qu,$APP.Zu,$APP.Tp,$APP.Vm,$APP.Kk,$APP.Q,$APP.Cm,bH,$APP.Su,$APP.Z,cH,$APP.dr,$APP.Fq],[new $APP.K(null,2,[$APP.P,$APP.X,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"open"],null),new $APP.K(null,2,[$APP.P,$APP.fq,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.dj,!0],null),new $APP.K(null,
43
+ 2,[$APP.P,$APP.ej,$APP.W,"disabled"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"name"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"value"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"mode",$APP.hu,aH],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"swatches"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"readonly"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"label"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"alpha"],null),new $APP.K(null,2,[$APP.P,$APP.Wt,$APP.dj,!0],null),new $APP.K(null,
44
+ 2,[$APP.P,$APP.Jt,$APP.dj,!0],null)]);$APP.ne(["x-color-picker-input",new $APP.K(null,2,[$APP.Ji,new $APP.K(null,5,[$APP.Q,$APP.X,QG,$APP.Y,RG,$APP.Y,SG,$APP.Y,OG,$APP.Y],null),$APP.Qr,!1],null),"x-color-picker-change",new $APP.K(null,2,[$APP.Ji,new $APP.K(null,5,[$APP.Q,$APP.X,QG,$APP.Y,RG,$APP.Y,SG,$APP.Y,OG,$APP.Y],null),$APP.Qr,!0],null)]);var KG=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var gka=":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;}"+
45
45
  $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@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:var(--x-border-width,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:var(--x-z-dropdown,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:var(--x-shadow-sm,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:var(--x-shadow-sm,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:var(--x-border-width,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:var(--x-border-width,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:var(--x-color-surface-active,rgba(0,0,0,0.06));}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:var(--x-color-surface-active,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:var(--x-radius-sm,4px);cursor:pointer;border:var(--x-border-width,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;}}",
46
- Uja=new $APP.ah(null,new $APP.K(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),wH=new $APP.ah(null,new $APP.K(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),AH=new $APP.H(null,20,5,$APP.J,[new $APP.H(null,4,5,$APP.J,["area","pointerdown","area-down",!1],null),new $APP.H(null,4,5,$APP.J,["area","pointermove","area-move",!1],null),new $APP.H(null,4,5,$APP.J,["area","pointerup","area-up",!1],null),new $APP.H(null,4,5,$APP.J,["area",
46
+ Yja=new $APP.ah(null,new $APP.K(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),sH=new $APP.ah(null,new $APP.K(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),wH=new $APP.H(null,20,5,$APP.J,[new $APP.H(null,4,5,$APP.J,["area","pointerdown","area-down",!1],null),new $APP.H(null,4,5,$APP.J,["area","pointermove","area-move",!1],null),new $APP.H(null,4,5,$APP.J,["area","pointerup","area-up",!1],null),new $APP.H(null,4,5,$APP.J,["area",
47
47
  "keydown","area-key",!1],null),new $APP.H(null,4,5,$APP.J,["hue-strip","pointerdown","hue-down",!1],null),new $APP.H(null,4,5,$APP.J,["hue-strip","pointermove","hue-move",!1],null),new $APP.H(null,4,5,$APP.J,["hue-strip","pointerup","hue-up",!1],null),new $APP.H(null,4,5,$APP.J,["hue-strip","keydown","hue-key",!1],null),new $APP.H(null,4,5,$APP.J,["alpha-strip","pointerdown","alpha-down",!1],null),new $APP.H(null,4,5,$APP.J,["alpha-strip","pointermove","alpha-move",!1],null),new $APP.H(null,4,5,$APP.J,
48
48
  ["alpha-strip","pointerup","alpha-up",!1],null),new $APP.H(null,4,5,$APP.J,["alpha-strip","keydown","alpha-key",!1],null),new $APP.H(null,4,5,$APP.J,["hex-input","keydown","hex-key",!1],null),new $APP.H(null,4,5,$APP.J,["swatches","click","swatch",!1],null),new $APP.H(null,4,5,$APP.J,["eyedropper","click","eyedrop",!1],null),new $APP.H(null,4,5,$APP.J,["copy","click","copy",!1],null),new $APP.H(null,4,5,$APP.J,["trigger","click","trigger",!1],null),new $APP.H(null,4,5,$APP.J,["panel","keydown","panel-key",
49
- !1],null),new $APP.H(null,4,5,$APP.J,["panel","pointerdown","panel-pd",!1],null),new $APP.H(null,4,5,$APP.J,[yH,"pointerdown","doc-click",!0],null)],null);$APP.ha("baredom.exports.x_color_picker.init",PH);export const init=PH;
49
+ !1],null),new $APP.H(null,4,5,$APP.J,["panel","pointerdown","panel-pd",!1],null),new $APP.H(null,4,5,$APP.J,[uH,"pointerdown","doc-click",!0],null)],null);$APP.ha("baredom.exports.x_color_picker.init",LH);export const init=LH;
@@ -1,37 +1,37 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var sw=function(a,b){if(b==null||$APP.z.j(b,""))return a;var c=b.toLowerCase();return $APP.Ye(function(d){d=$APP.G(d);d=$APP.C(d,$APP.Z);return $APP.M.j(-1,d.toLowerCase().indexOf(c))},a)},pda=function(a,b){return b!=null?$APP.te(function(c){return $APP.z.j($APP.Q.i(c),b)?c:null},a):null},qda=function(a,b,c,d,e){var f=$APP.G(e);e=$APP.C(f,$APP.vi);var h=$APP.C(f,$APP.Q);f=$APP.C(f,$APP.Z);a:{if(a!=null&&$APP.M.j(a,"")){var k=f.toLowerCase().indexOf(a.toLowerCase());if($APP.M.j(k,-1)){a=k+$APP.w(a);
3
- a=new $APP.K(null,3,[$APP.Zj,f.substring(0,k),$APP.Pp,f.substring(k,a),$APP.Yq,f.substring(a)],null);break a}}a=null}k=$APP.G($APP.m(a)?a:new $APP.K(null,3,[$APP.Zj,f,$APP.Pp,"",$APP.Yq,""],null));a=$APP.C(k,$APP.Zj);f=$APP.C(k,$APP.Pp);k=$APP.C(k,$APP.Yq);return new $APP.K(null,8,[$APP.vi,e,$APP.mr,""+$APP.N.i("x-cb-opt-")+$APP.N.i(d),$APP.Q,h,$APP.ut,$APP.z.j(d,b)?"":null,$APP.rq,$APP.z.j(h,c)?"true":null,$APP.Zj,a,$APP.Pp,f,$APP.Yq,k],null)},rda=function(a,b,c,d){a=sw($APP.wi($APP.Q,a),b);c=$APP.ak.j(c,
4
- $APP.w(a)-1);return $APP.$c(a)?new $APP.K(null,2,[$APP.kq,new $APP.H(null,1,5,$APP.J,[new $APP.K(null,2,[$APP.vi,"empty",$APP.Nm,"No matches"],null)],null),$APP.pt,null],null):new $APP.K(null,2,[$APP.kq,$APP.Xf.l($APP.Xe,$APP.De($APP.Ae(qda,b,c,d)),a),$APP.pt,c>=0?""+$APP.N.i("x-cb-opt-")+$APP.N.i(c):null],null)},tw=function(a){var b=$APP.l(a,"__xComboboxRefs");$APP.m(b)&&(b=$APP.l(b,"slot").assignedElements({flatten:!0}),b=$APP.Xf.l($APP.Xe,$APP.Uj.j($APP.Te(function(c){return $APP.z.j("OPTION",
5
- c.tagName)}),$APP.Oe.i(function(c){var d=c.getAttribute("value");return new $APP.K(null,2,[$APP.Q,$APP.m(d)?d:c.textContent,$APP.Z,c.textContent],null)})),$APP.Jc(b)),$APP.S(a,"__xComboboxOptions",b))},sda=function(a){$APP.z.j(a,"empty")?(a=document.createElement("div"),$APP.U(a,"part","empty-msg")):(a=document.createElement("div"),$APP.U(a,"part","option"),$APP.U(a,"role","option"),a.append("",document.createElement("b"),""));return a},tda=function(a,b){b=$APP.G(b);var c=$APP.C(b,$APP.vi),d=$APP.C(b,
6
- $APP.Nm);a=a.i?a.i(c):a.call(null,c);if($APP.z.j(c,"empty"))a=$APP.Ki(a,d);else{var e=$APP.G(b);b=$APP.C(e,$APP.mr);c=$APP.C(e,$APP.Q);d=$APP.C(e,$APP.ut);var f=$APP.C(e,$APP.rq),h=$APP.C(e,$APP.Zj),k=$APP.C(e,$APP.Pp);e=$APP.C(e,$APP.Yq);$APP.Ji(a,"id",b);$APP.Ji(a,"data-value",c);$APP.Ji(a,"data-active",d);$APP.Ji(a,"aria-selected",f);$APP.Ki(a.firstChild,h);$APP.Ki(a.firstElementChild,k);a=$APP.Ki(a.lastChild,e)}return a},uw=function(a){var b=$APP.l(a,"__xComboboxRefs");if($APP.m(b)){var c=$APP.l(b,
7
- "panel");b=$APP.l(b,"input");var d=rda($APP.l(a,"__xComboboxOptions"),function(){var f=$APP.l(a,"__xComboboxQuery");return $APP.m(f)?f:""}(),function(){var f=$APP.l(a,"__xComboboxActiveIdx");return $APP.m(f)?f:0}(),function(){var f=a.getAttribute("value");return $APP.m(f)?f:""}()),e=$APP.G(d);d=$APP.C(e,$APP.kq);e=$APP.C(e,$APP.pt);c=$APP.wk(new $APP.K(null,1,[$APP.$l,new $APP.K(null,1,[$APP.fk,c],null)],null),new $APP.K(null,1,[$APP.$l,$APP.ti.j($APP.vi,d)],null),sda);$APP.Zh($APP.xe(tda,c),d);return $APP.Ji(b,
8
- "aria-activedescendant",e)}return null},ww=function(a){var b=new $APP.K(null,8,[$APP.Hk,a.getAttribute("value"),$APP.Ik,a.getAttribute("placeholder"),$APP.Gk,a.getAttribute("name"),$APP.Kk,$APP.Jj(a),$APP.Lk,a.hasAttribute("required"),$APP.tp,a.hasAttribute("open"),$APP.Cv,a.getAttribute("placement"),$APP.Gn,a.getAttribute("error")],null);var c=$APP.G(b),d=$APP.C(c,$APP.Hk),e=$APP.C(c,$APP.Ik),f=$APP.C(c,$APP.Gk);b=$APP.C(c,$APP.Kk);var h=$APP.C(c,$APP.Lk),k=$APP.C(c,$APP.tp),n=$APP.C(c,$APP.Cv);
9
- c=$APP.C(c,$APP.Gn);h=$APP.D(h);e=$APP.m(e)?e:"";f=$APP.m(f)?f:"";d=$APP.m(d)?d:"";var r=typeof c==="string"&&$APP.M.j(c,"");k=$APP.D(k);c=$APP.m(c)?c:"";n=$APP.kd(vw,n)?n:"bottom-start";b=$APP.Ag([$APP.Cj,$APP.Pk,$APP.Ok,$APP.Q,$APP.Aj,$APP.fs,$APP.Bj,$APP.zt,$APP.Qk],[h,e,f,d,r,k,c,n,$APP.D(b)]);$APP.M.j($APP.l(a,"__xComboboxModel"),b)?(h=$APP.l(a,"__xComboboxRefs"),$APP.m(h)?(n=$APP.l(h,"input"),c=$APP.l(h,"panel"),h=$APP.l(h,"error"),k=pda($APP.l(a,"__xComboboxOptions"),$APP.Q.i(b)),d=$APP.G(b),
10
- e=$APP.C(d,$APP.Pk),f=$APP.C(d,$APP.Qk),d=$APP.C(d,$APP.fs),n.placeholder=e,n.disabled=f,$APP.U(n,"aria-expanded",""+$APP.N.i(d)),e=$APP.G(b),e=$APP.C(e,$APP.zt),$APP.U(c,"data-placement",e),c=$APP.G(b),$APP.C(c,$APP.Q),c=$APP.C(c,$APP.fs),$APP.m(c)||(n.value=$APP.m(k)?$APP.Z.i(k):""),k=$APP.G(b),k=$APP.C(k,$APP.Q),$APP.M.j(k,"")?$APP.U(a,"data-has-value",""):$APP.V(a,"data-has-value"),$APP.Oj(a,n,h,b,$APP.Nj($APP.Aj.i(b),null)),k=$APP.G(b),h=$APP.C(k,$APP.Q),k=$APP.C(k,$APP.Aj),h=$APP.m(h)?h:"",
11
- $APP.Ij($APP.l(a,"__xComboboxInternals"),n,h,new $APP.K(null,5,[$APP.Aj,k,$APP.Bj,a.getAttribute("error"),$APP.Cj,a.hasAttribute("required"),$APP.Dj,$APP.z.j(h,""),$APP.Ej,"Please select an item in the list."],null)),$APP.m($APP.fs.i(b))&&uw(a),a=$APP.S(a,"__xComboboxModel",b)):a=null):a=null;return a},xw=function(a,b){return $APP.p($APP.Jj(a))&&$APP.p(a.hasAttribute("open"))&&$APP.Yi(a,"x-combobox-toggle",{open:!0,source:b})?($APP.S(a,"__xComboboxQuery",""),$APP.S(a,"__xComboboxActiveIdx",0),$APP.U(a,
12
- "open",""),a=$APP.l(a,"__xComboboxRefs"),$APP.m(a)?$APP.l(a,"input").select():null):null},yw=function(a,b){return $APP.m(a.hasAttribute("open"))&&$APP.Yi(a,"x-combobox-toggle",{open:!1,source:b})?($APP.S(a,"__xComboboxQuery",""),$APP.S(a,"__xComboboxActiveIdx",0),$APP.V(a,"open")):null},zw=function(a,b,c){var d=a.getAttribute("value");return $APP.Yi(a,"x-combobox-change-request",{value:b,label:c,previousValue:$APP.m(d)?d:""})?($APP.U(a,"value",b),d=$APP.l(a,"__xComboboxRefs"),$APP.m(d)&&($APP.l(d,
13
- "input").value=c),yw(a,"select"),$APP.Wi(a,"x-combobox-change",{value:b,label:c})):null},Aw=function(a,b){var c=sw($APP.l(a,"__xComboboxOptions"),function(){var e=$APP.l(a,"__xComboboxQuery");return $APP.m(e)?e:""}());c=$APP.w(c);var d=function(){var e=$APP.l(a,"__xComboboxActiveIdx");return $APP.m(e)?e:0}();b=$APP.z.j(b,$APP.fq)?c===0?-1:$APP.Bd(($APP.m(d)?d:-1)+1,c):c===0?-1:$APP.Bd(($APP.m(d)?d:c)-1,c);$APP.S(a,"__xComboboxActiveIdx",b);uw(a);b=$APP.l(a,"__xComboboxRefs");return $APP.m(b)?(b=$APP.l(b,
14
- "panel").querySelector("["+$APP.N.i("data-active")+"]"),$APP.m(b)?b.scrollIntoView({block:"nearest"}):null):null},uda=function(a){var b=sw($APP.l(a,"__xComboboxOptions"),function(){var c=$APP.l(a,"__xComboboxQuery");return $APP.m(c)?c:""}());b=$APP.B(b,function(){var c=$APP.l(a,"__xComboboxActiveIdx");return $APP.m(c)?c:0}(),null);return $APP.m(b)?zw(a,$APP.Q.i(b),$APP.Z.i(b)):null},vda=function(a,b){return $APP.m(a.hasAttribute("open"))?(b=$APP.Kc(b.composedPath()),b=$APP.te(function(c){return c===
15
- a},b),$APP.m(b)?null:yw(a,"outside-click")):null},wda=function(a){var b=$APP.l(a,"__xComboboxRefs");if($APP.m(b)){for(var c={},d=$APP.q(Bw),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),n=$APP.B(k,0,null),r=$APP.B(k,1,null),v=$APP.B(k,2,null),x=$APP.B(k,3,null),y=$APP.l(b,n);k=function(I,O,T,R,da,na,ka,oa,Ra,Ta){return function(pb){return Ta.j?Ta.j(a,pb):Ta.call(null,a,pb)}}(d,e,f,h,y,k,n,r,v,x,c,b,b);y.addEventListener(v,k);c[r]=k;h+=1}else if(n=$APP.q(d)){r=n;if($APP.gd(r))d=$APP.Jb(r),h=$APP.Kb(r),
16
- e=d,f=$APP.w(d),d=h;else{x=$APP.t(r);var A=$APP.B(x,0,null);v=$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(I,O,T,R,da,na,ka,oa,Ra,Ta){return function(pb){return Ta.j?Ta.j(a,pb):Ta.call(null,a,pb)}}(d,e,f,h,k,x,A,v,y,E,r,n,c,b,b);k.addEventListener(y,d);c[v]=d;d=$APP.u(r);e=null;f=0}h=0}else break;d=$APP.q(Cw);e=null;for(h=f=0;;)if(h<f)y=e.C(null,h),r=$APP.B(y,0,null),v=$APP.B(y,1,null),k=$APP.B(y,2,null),y=function(I,O,T,R,da,na,ka,oa){return function(Ra){return oa.j?
17
- oa.j(a,Ra):oa.call(null,a,Ra)}}(d,e,f,h,y,r,v,k,c,b,b),a.addEventListener(v,y),c[r]=y,h+=1;else if(k=$APP.q(d))r=k,$APP.gd(r)?(d=$APP.Jb(r),h=$APP.Kb(r),e=d,f=$APP.w(d),d=h):(n=$APP.t(r),v=$APP.B(n,0,null),y=$APP.B(n,1,null),x=$APP.B(n,2,null),d=function(I,O,T,R,da,na,ka,oa){return function(Ra){return oa.j?oa.j(a,Ra):oa.call(null,a,Ra)}}(d,e,f,h,n,v,y,x,r,k,c,b,b),a.addEventListener(y,d),c[v]=d,d=$APP.u(r),e=null,f=0),h=0;else break;$APP.S(a,"__xComboboxHandlers",c)}},Dw=function(a){var b=$APP.l(a,
18
- "__xComboboxHandlers");if($APP.m(b)){var c=$APP.l(a,"__xComboboxRefs");if($APP.m(c)){for(var d=$APP.q(Bw),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),n=$APP.B(k,0,null),r=$APP.B(k,1,null),v=$APP.B(k,2,null);$APP.B(k,3,null);var x=$APP.l(c,n),y=$APP.l(b,r);$APP.m(function(){var I=x;return $APP.m(I)?y:I}())&&x.removeEventListener(v,y);h+=1}else if(d=$APP.q(d)){if($APP.gd(d))f=$APP.Jb(d),d=$APP.Kb(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,
19
- null);var A=$APP.l(c,f),E=$APP.l(b,h);$APP.m(function(){var I=A;return $APP.m(I)?E:I}())&&A.removeEventListener(k,E);d=$APP.u(d);e=null;f=0}h=0}else break;c=$APP.q(Cw);d=null;for(f=e=0;;)if(f<e)k=d.C(null,f),n=$APP.B(k,0,null),h=$APP.B(k,1,null),$APP.B(k,2,null),k=$APP.l(b,n),$APP.m(k)&&a.removeEventListener(h,k),f+=1;else if(c=$APP.q(c))$APP.gd(c)?(e=$APP.Jb(c),c=$APP.Kb(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.m(e)&&a.removeEventListener(d,
20
- e),c=$APP.u(c),d=null,e=0),f=0;else break}$APP.S(a,"__xComboboxHandlers",null)}},xda=function(a){return setTimeout(function(){if($APP.m(function(){var d=a.isConnected;return $APP.m(d)?a.hasAttribute("open"):d}())){var b=function(d){return vda(a,d)},c=$APP.l(a,"__xComboboxHandlers");$APP.m(c)&&(c.docClick=b);return document.addEventListener("click",b)}return null},0)},Ew=function(a){a=$APP.l(a,"__xComboboxHandlers");if($APP.m(a)){var b=$APP.l(a,"docClick");if($APP.m(b)){document.removeEventListener("click",
21
- b);a.docClick=null;return}}return null},yda=function(a){$APP.V(a,"value");$APP.V(a,"error");$APP.S(a,"__xComboboxModel",null);return ww(a)},Ada=function(a){if(!$APP.m($APP.l(a,"__xComboboxRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=""+$APP.N.i("x-cb-lb-")+$APP.N.i(crypto.randomUUID()),e=document.createElement("input");$APP.U(e,"part","input");$APP.U(e,"type","text");$APP.U(e,"role","combobox");$APP.U(e,"aria-expanded","false");$APP.U(e,"aria-autocomplete","list");
2
+ var ow=function(a,b){if(b==null||$APP.z.j(b,""))return a;var c=b.toLowerCase();return $APP.Ye(function(d){d=$APP.G(d);d=$APP.C(d,$APP.Z);return $APP.M.j(-1,d.toLowerCase().indexOf(c))},a)},tda=function(a,b){return b!=null?$APP.te(function(c){return $APP.z.j($APP.Q.i(c),b)?c:null},a):null},uda=function(a,b,c,d,e){var f=$APP.G(e);e=$APP.C(f,$APP.ri);var h=$APP.C(f,$APP.Q);f=$APP.C(f,$APP.Z);a:{if(a!=null&&$APP.M.j(a,"")){var k=f.toLowerCase().indexOf(a.toLowerCase());if($APP.M.j(k,-1)){a=k+$APP.w(a);
3
+ a=new $APP.K(null,3,[$APP.Vj,f.substring(0,k),$APP.Lp,f.substring(k,a),$APP.Uq,f.substring(a)],null);break a}}a=null}k=$APP.G($APP.m(a)?a:new $APP.K(null,3,[$APP.Vj,f,$APP.Lp,"",$APP.Uq,""],null));a=$APP.C(k,$APP.Vj);f=$APP.C(k,$APP.Lp);k=$APP.C(k,$APP.Uq);return new $APP.K(null,8,[$APP.ri,e,$APP.ir,""+$APP.N.i("x-cb-opt-")+$APP.N.i(d),$APP.Q,h,$APP.qt,$APP.z.j(d,b)?"":null,$APP.nq,$APP.z.j(h,c)?"true":null,$APP.Vj,a,$APP.Lp,f,$APP.Uq,k],null)},vda=function(a,b,c,d){a=ow($APP.si($APP.Q,a),b);c=$APP.Wj.j(c,
4
+ $APP.w(a)-1);return $APP.$c(a)?new $APP.K(null,2,[$APP.gq,new $APP.H(null,1,5,$APP.J,[new $APP.K(null,2,[$APP.ri,"empty",$APP.Jm,"No matches"],null)],null),$APP.lt,null],null):new $APP.K(null,2,[$APP.gq,$APP.Xf.l($APP.Xe,$APP.De($APP.Ae(uda,b,c,d)),a),$APP.lt,c>=0?""+$APP.N.i("x-cb-opt-")+$APP.N.i(c):null],null)},pw=function(a){var b=$APP.l(a,"__xComboboxRefs");$APP.m(b)&&(b=$APP.l(b,"slot").assignedElements({flatten:!0}),b=$APP.Xf.l($APP.Xe,$APP.Qj.j($APP.Te(function(c){return $APP.z.j("OPTION",
5
+ c.tagName)}),$APP.Oe.i(function(c){var d=c.getAttribute("value");return new $APP.K(null,2,[$APP.Q,$APP.m(d)?d:c.textContent,$APP.Z,c.textContent],null)})),$APP.Jc(b)),$APP.S(a,"__xComboboxOptions",b))},wda=function(a){$APP.z.j(a,"empty")?(a=document.createElement("div"),$APP.U(a,"part","empty-msg")):(a=document.createElement("div"),$APP.U(a,"part","option"),$APP.U(a,"role","option"),a.append("",document.createElement("b"),""));return a},xda=function(a,b){b=$APP.G(b);var c=$APP.C(b,$APP.ri),d=$APP.C(b,
6
+ $APP.Jm);a=a.i?a.i(c):a.call(null,c);if($APP.z.j(c,"empty"))a=$APP.Gi(a,d);else{var e=$APP.G(b);b=$APP.C(e,$APP.ir);c=$APP.C(e,$APP.Q);d=$APP.C(e,$APP.qt);var f=$APP.C(e,$APP.nq),h=$APP.C(e,$APP.Vj),k=$APP.C(e,$APP.Lp);e=$APP.C(e,$APP.Uq);$APP.Fi(a,"id",b);$APP.Fi(a,"data-value",c);$APP.Fi(a,"data-active",d);$APP.Fi(a,"aria-selected",f);$APP.Gi(a.firstChild,h);$APP.Gi(a.firstElementChild,k);a=$APP.Gi(a.lastChild,e)}return a},qw=function(a){var b=$APP.l(a,"__xComboboxRefs");if($APP.m(b)){var c=$APP.l(b,
7
+ "panel");b=$APP.l(b,"input");var d=vda($APP.l(a,"__xComboboxOptions"),function(){var f=$APP.l(a,"__xComboboxQuery");return $APP.m(f)?f:""}(),function(){var f=$APP.l(a,"__xComboboxActiveIdx");return $APP.m(f)?f:0}(),function(){var f=a.getAttribute("value");return $APP.m(f)?f:""}()),e=$APP.G(d);d=$APP.C(e,$APP.gq);e=$APP.C(e,$APP.lt);c=$APP.sk(new $APP.K(null,1,[$APP.Wl,new $APP.K(null,1,[$APP.bk,c],null)],null),new $APP.K(null,1,[$APP.Wl,$APP.pi.j($APP.ri,d)],null),wda);$APP.Rh($APP.xe(xda,c),d);return $APP.Fi(b,
8
+ "aria-activedescendant",e)}return null},sw=function(a){var b=new $APP.K(null,8,[$APP.Dk,a.getAttribute("value"),$APP.Ek,a.getAttribute("placeholder"),$APP.Ck,a.getAttribute("name"),$APP.Gk,$APP.Fj(a),$APP.Hk,a.hasAttribute("required"),$APP.pp,a.hasAttribute("open"),$APP.yv,a.getAttribute("placement"),$APP.Cn,a.getAttribute("error")],null);var c=$APP.G(b),d=$APP.C(c,$APP.Dk),e=$APP.C(c,$APP.Ek),f=$APP.C(c,$APP.Ck);b=$APP.C(c,$APP.Gk);var h=$APP.C(c,$APP.Hk),k=$APP.C(c,$APP.pp),n=$APP.C(c,$APP.yv);
9
+ c=$APP.C(c,$APP.Cn);h=$APP.D(h);e=$APP.m(e)?e:"";f=$APP.m(f)?f:"";d=$APP.m(d)?d:"";var r=typeof c==="string"&&$APP.M.j(c,"");k=$APP.D(k);c=$APP.m(c)?c:"";n=$APP.kd(rw,n)?n:"bottom-start";b=$APP.Ag([$APP.yj,$APP.Lk,$APP.Kk,$APP.Q,$APP.wj,$APP.bs,$APP.xj,$APP.vt,$APP.Mk],[h,e,f,d,r,k,c,n,$APP.D(b)]);$APP.M.j($APP.l(a,"__xComboboxModel"),b)?(h=$APP.l(a,"__xComboboxRefs"),$APP.m(h)?(n=$APP.l(h,"input"),c=$APP.l(h,"panel"),h=$APP.l(h,"error"),k=tda($APP.l(a,"__xComboboxOptions"),$APP.Q.i(b)),d=$APP.G(b),
10
+ e=$APP.C(d,$APP.Lk),f=$APP.C(d,$APP.Mk),d=$APP.C(d,$APP.bs),n.placeholder=e,n.disabled=f,$APP.U(n,"aria-expanded",""+$APP.N.i(d)),e=$APP.G(b),e=$APP.C(e,$APP.vt),$APP.U(c,"data-placement",e),c=$APP.G(b),$APP.C(c,$APP.Q),c=$APP.C(c,$APP.bs),$APP.m(c)||(n.value=$APP.m(k)?$APP.Z.i(k):""),k=$APP.G(b),k=$APP.C(k,$APP.Q),$APP.M.j(k,"")?$APP.U(a,"data-has-value",""):$APP.V(a,"data-has-value"),$APP.Kj(a,n,h,b,$APP.Jj($APP.wj.i(b),null)),k=$APP.G(b),h=$APP.C(k,$APP.Q),k=$APP.C(k,$APP.wj),h=$APP.m(h)?h:"",
11
+ $APP.Ej($APP.l(a,"__xComboboxInternals"),n,h,new $APP.K(null,5,[$APP.wj,k,$APP.xj,a.getAttribute("error"),$APP.yj,a.hasAttribute("required"),$APP.zj,$APP.z.j(h,""),$APP.Aj,"Please select an item in the list."],null)),$APP.m($APP.bs.i(b))&&qw(a),a=$APP.S(a,"__xComboboxModel",b)):a=null):a=null;return a},tw=function(a,b){return $APP.p($APP.Fj(a))&&$APP.p(a.hasAttribute("open"))&&$APP.Oi(a,"x-combobox-toggle",{open:!0,source:b})?($APP.S(a,"__xComboboxQuery",""),$APP.S(a,"__xComboboxActiveIdx",0),$APP.U(a,
12
+ "open",""),a=$APP.l(a,"__xComboboxRefs"),$APP.m(a)?$APP.l(a,"input").select():null):null},uw=function(a,b){return $APP.m(a.hasAttribute("open"))&&$APP.Oi(a,"x-combobox-toggle",{open:!1,source:b})?($APP.S(a,"__xComboboxQuery",""),$APP.S(a,"__xComboboxActiveIdx",0),$APP.V(a,"open")):null},vw=function(a,b,c){var d=a.getAttribute("value");return $APP.Oi(a,"x-combobox-change-request",{value:b,label:c,previousValue:$APP.m(d)?d:""})?($APP.U(a,"value",b),d=$APP.l(a,"__xComboboxRefs"),$APP.m(d)&&($APP.l(d,
13
+ "input").value=c),uw(a,"select"),$APP.Mi(a,"x-combobox-change",{value:b,label:c})):null},ww=function(a,b){var c=ow($APP.l(a,"__xComboboxOptions"),function(){var e=$APP.l(a,"__xComboboxQuery");return $APP.m(e)?e:""}());c=$APP.w(c);var d=function(){var e=$APP.l(a,"__xComboboxActiveIdx");return $APP.m(e)?e:0}();b=$APP.z.j(b,$APP.bq)?c===0?-1:$APP.Bd(($APP.m(d)?d:-1)+1,c):c===0?-1:$APP.Bd(($APP.m(d)?d:c)-1,c);$APP.S(a,"__xComboboxActiveIdx",b);qw(a);b=$APP.l(a,"__xComboboxRefs");return $APP.m(b)?(b=$APP.l(b,
14
+ "panel").querySelector("["+$APP.N.i("data-active")+"]"),$APP.m(b)?b.scrollIntoView({block:"nearest"}):null):null},yda=function(a){var b=ow($APP.l(a,"__xComboboxOptions"),function(){var c=$APP.l(a,"__xComboboxQuery");return $APP.m(c)?c:""}());b=$APP.B(b,function(){var c=$APP.l(a,"__xComboboxActiveIdx");return $APP.m(c)?c:0}(),null);return $APP.m(b)?vw(a,$APP.Q.i(b),$APP.Z.i(b)):null},zda=function(a,b){return $APP.m(a.hasAttribute("open"))?(b=$APP.Kc(b.composedPath()),b=$APP.te(function(c){return c===
15
+ a},b),$APP.m(b)?null:uw(a,"outside-click")):null},Ada=function(a){var b=$APP.l(a,"__xComboboxRefs");if($APP.m(b)){for(var c={},d=$APP.q(xw),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),n=$APP.B(k,0,null),r=$APP.B(k,1,null),v=$APP.B(k,2,null),x=$APP.B(k,3,null),y=$APP.l(b,n);k=function(I,O,T,R,da,na,ka,oa,Ra,Ta){return function(pb){return Ta.j?Ta.j(a,pb):Ta.call(null,a,pb)}}(d,e,f,h,y,k,n,r,v,x,c,b,b);y.addEventListener(v,k);c[r]=k;h+=1}else if(n=$APP.q(d)){r=n;if($APP.gd(r))d=$APP.Jb(r),h=$APP.Kb(r),
16
+ e=d,f=$APP.w(d),d=h;else{x=$APP.t(r);var A=$APP.B(x,0,null);v=$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(I,O,T,R,da,na,ka,oa,Ra,Ta){return function(pb){return Ta.j?Ta.j(a,pb):Ta.call(null,a,pb)}}(d,e,f,h,k,x,A,v,y,E,r,n,c,b,b);k.addEventListener(y,d);c[v]=d;d=$APP.u(r);e=null;f=0}h=0}else break;d=$APP.q(yw);e=null;for(h=f=0;;)if(h<f)y=e.C(null,h),r=$APP.B(y,0,null),v=$APP.B(y,1,null),k=$APP.B(y,2,null),y=function(I,O,T,R,da,na,ka,oa){return function(Ra){return oa.j?
17
+ oa.j(a,Ra):oa.call(null,a,Ra)}}(d,e,f,h,y,r,v,k,c,b,b),a.addEventListener(v,y),c[r]=y,h+=1;else if(k=$APP.q(d))r=k,$APP.gd(r)?(d=$APP.Jb(r),h=$APP.Kb(r),e=d,f=$APP.w(d),d=h):(n=$APP.t(r),v=$APP.B(n,0,null),y=$APP.B(n,1,null),x=$APP.B(n,2,null),d=function(I,O,T,R,da,na,ka,oa){return function(Ra){return oa.j?oa.j(a,Ra):oa.call(null,a,Ra)}}(d,e,f,h,n,v,y,x,r,k,c,b,b),a.addEventListener(y,d),c[v]=d,d=$APP.u(r),e=null,f=0),h=0;else break;$APP.S(a,"__xComboboxHandlers",c)}},zw=function(a){var b=$APP.l(a,
18
+ "__xComboboxHandlers");if($APP.m(b)){var c=$APP.l(a,"__xComboboxRefs");if($APP.m(c)){for(var d=$APP.q(xw),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),n=$APP.B(k,0,null),r=$APP.B(k,1,null),v=$APP.B(k,2,null);$APP.B(k,3,null);var x=$APP.l(c,n),y=$APP.l(b,r);$APP.m(function(){var I=x;return $APP.m(I)?y:I}())&&x.removeEventListener(v,y);h+=1}else if(d=$APP.q(d)){if($APP.gd(d))f=$APP.Jb(d),d=$APP.Kb(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,
19
+ null);var A=$APP.l(c,f),E=$APP.l(b,h);$APP.m(function(){var I=A;return $APP.m(I)?E:I}())&&A.removeEventListener(k,E);d=$APP.u(d);e=null;f=0}h=0}else break;c=$APP.q(yw);d=null;for(f=e=0;;)if(f<e)k=d.C(null,f),n=$APP.B(k,0,null),h=$APP.B(k,1,null),$APP.B(k,2,null),k=$APP.l(b,n),$APP.m(k)&&a.removeEventListener(h,k),f+=1;else if(c=$APP.q(c))$APP.gd(c)?(e=$APP.Jb(c),c=$APP.Kb(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.m(e)&&a.removeEventListener(d,
20
+ e),c=$APP.u(c),d=null,e=0),f=0;else break}$APP.S(a,"__xComboboxHandlers",null)}},Bda=function(a){return setTimeout(function(){if($APP.m(function(){var d=a.isConnected;return $APP.m(d)?a.hasAttribute("open"):d}())){var b=function(d){return zda(a,d)},c=$APP.l(a,"__xComboboxHandlers");$APP.m(c)&&(c.docClick=b);return document.addEventListener("click",b)}return null},0)},Aw=function(a){a=$APP.l(a,"__xComboboxHandlers");if($APP.m(a)){var b=$APP.l(a,"docClick");if($APP.m(b)){document.removeEventListener("click",
21
+ b);a.docClick=null;return}}return null},Cda=function(a){$APP.V(a,"value");$APP.V(a,"error");$APP.S(a,"__xComboboxModel",null);return sw(a)},Eda=function(a){if(!$APP.m($APP.l(a,"__xComboboxRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=""+$APP.N.i("x-cb-lb-")+$APP.N.i(crypto.randomUUID()),e=document.createElement("input");$APP.U(e,"part","input");$APP.U(e,"type","text");$APP.U(e,"role","combobox");$APP.U(e,"aria-expanded","false");$APP.U(e,"aria-autocomplete","list");
22
22
  $APP.U(e,"aria-controls",d);$APP.U(e,"autocomplete","off");var f=document.createElement("button");$APP.U(f,"part","clear");$APP.U(f,"type","button");$APP.U(f,"aria-label","Clear");$APP.U(f,"tabindex","-1");f.textContent="×";var h=document.createElement("span");$APP.U(h,"part","chevron");$APP.U(h,"aria-hidden","true");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';
23
- var k=document.createElement("div");$APP.U(k,"part","wrapper");k.appendChild(e);k.appendChild(f);k.appendChild(h);var n=document.createElement("div");$APP.U(n,"part","panel");$APP.U(n,"role","listbox");$APP.U(n,"id",d);$APP.U(n,"data-placement","bottom-start");d=document.createElement("span");$APP.U(d,"part","error");$APP.U(d,"id","error");$APP.U(d,"role","alert");$APP.U(d,"aria-live","assertive");d.classList.add("error-hidden");var r=document.createElement("slot"),v={};c.textContent=zda;k.appendChild(n);
24
- b.appendChild(c);b.appendChild(k);b.appendChild(d);b.appendChild(r);$APP.S(a,"__xComboboxOptions",$APP.Xe);$APP.S(a,"__xComboboxQuery","");$APP.S(a,"__xComboboxActiveIdx",0);v.wrapper=k;v.input=e;v.clear=f;v.chevron=h;v.panel=n;v.error=d;v.slot=r;$APP.S(a,"__xComboboxRefs",v);$APP.m(a.attachInternals)&&$APP.S(a,"__xComboboxInternals",a.attachInternals())}Dw(a);Ew(a);wda(a);tw(a);return ww(a)},Bda=function(a){Dw(a);Ew(a);return $APP.S(a,"__xComboboxModel",null)},Cda=function(a,b,c,d){return $APP.M.j(c,
25
- d)&&$APP.m($APP.l(a,"__xComboboxRefs"))?(ww(a),$APP.z.j(b,"open")?$APP.m(a.hasAttribute("open"))?xda(a):Ew(a):null):null},Eda=function(a){$APP.Mj(a,"__xComboboxInternals");$APP.kj(a,Dda);Object.defineProperty(a,"show",{value:function(){return xw(this,"programmatic")},writable:!0,configurable:!0});return Object.defineProperty(a,"hide",{value:function(){return yw(this,"programmatic")},writable:!0,configurable:!0})},Fw=function(){return $APP.zj("x-combobox",new $APP.K(null,7,[$APP.rj,Fda,$APP.sj,Ada,
26
- $APP.tj,Bda,$APP.uj,Cda,$APP.vj,!0,$APP.wj,yda,$APP.xj,Eda],null))};var vw=new $APP.ah(null,new $APP.K(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Fda="value placeholder name disabled required open placement error".split(" "),Dda=$APP.Ag([$APP.zv,$APP.Uu,$APP.cv,$APP.Xp,$APP.Pk,$APP.Zm,$APP.Ok,$APP.Q,$APP.Bj,$APP.hr,$APP.zt,$APP.Eq,$APP.Jq],[new $APP.K(null,2,[$APP.P,$APP.X,$APP.hj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"open"],null),new $APP.K(null,2,[$APP.P,$APP.jq,$APP.hj,!0],null),new $APP.K(null,2,[$APP.P,
27
- $APP.ij,$APP.hj,!0],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"placeholder"],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"disabled"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"name"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"value"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"error"],null),new $APP.K(null,2,[$APP.P,$APP.$t,$APP.hj,!0],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"placement",$APP.lu,vw],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"required"],null),new $APP.K(null,
28
- 2,[$APP.P,$APP.Nt,$APP.hj,!0],null)]);
29
- $APP.ne(["x-combobox-change-request",new $APP.K(null,3,[$APP.Ur,!0,$APP.ys,$APP.ne(["value",$APP.Q]),$APP.Ni,new $APP.K(null,3,[$APP.Q,$APP.X,$APP.Z,$APP.X,$APP.bu,$APP.X],null)],null),"x-combobox-change",new $APP.K(null,2,[$APP.Ur,!1,$APP.Ni,new $APP.K(null,2,[$APP.Q,$APP.X,$APP.Z,$APP.X],null)],null),"x-combobox-input",new $APP.K(null,2,[$APP.Ur,!1,$APP.Ni,new $APP.K(null,1,[$APP.vp,$APP.X],null)],null),"x-combobox-toggle",new $APP.K(null,3,[$APP.Ur,!0,$APP.ys,$APP.ne(["open",$APP.Uu]),$APP.Ni,
30
- new $APP.K(null,2,[$APP.Uu,$APP.ij,$APP.jr,$APP.X],null)],null)]);var zda=":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:var(--x-border-width,1px) solid var(--x-color-border,#e2e8f0);--x-combobox-border-hover:var(--x-border-width,1px) solid var(--x-color-border,#cbd5e1);--x-combobox-border-focus:var(--x-border-width,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-error-color:var(--x-color-danger,#dc2626);--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:var(--x-border-width,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);}"+
23
+ var k=document.createElement("div");$APP.U(k,"part","wrapper");k.appendChild(e);k.appendChild(f);k.appendChild(h);var n=document.createElement("div");$APP.U(n,"part","panel");$APP.U(n,"role","listbox");$APP.U(n,"id",d);$APP.U(n,"data-placement","bottom-start");d=document.createElement("span");$APP.U(d,"part","error");$APP.U(d,"id","error");$APP.U(d,"role","alert");$APP.U(d,"aria-live","assertive");d.classList.add("error-hidden");var r=document.createElement("slot"),v={};c.textContent=Dda;k.appendChild(n);
24
+ b.appendChild(c);b.appendChild(k);b.appendChild(d);b.appendChild(r);$APP.S(a,"__xComboboxOptions",$APP.Xe);$APP.S(a,"__xComboboxQuery","");$APP.S(a,"__xComboboxActiveIdx",0);v.wrapper=k;v.input=e;v.clear=f;v.chevron=h;v.panel=n;v.error=d;v.slot=r;$APP.S(a,"__xComboboxRefs",v);$APP.m(a.attachInternals)&&$APP.S(a,"__xComboboxInternals",a.attachInternals())}zw(a);Aw(a);Ada(a);pw(a);return sw(a)},Fda=function(a){zw(a);Aw(a);return $APP.S(a,"__xComboboxModel",null)},Gda=function(a,b,c,d){return $APP.M.j(c,
25
+ d)&&$APP.m($APP.l(a,"__xComboboxRefs"))?(sw(a),$APP.z.j(b,"open")?$APP.m(a.hasAttribute("open"))?Bda(a):Aw(a):null):null},Ida=function(a){$APP.Ij(a,"__xComboboxInternals");$APP.gj(a,Hda);Object.defineProperty(a,"show",{value:function(){return tw(this,"programmatic")},writable:!0,configurable:!0});return Object.defineProperty(a,"hide",{value:function(){return uw(this,"programmatic")},writable:!0,configurable:!0})},Bw=function(){return $APP.vj("x-combobox",new $APP.K(null,7,[$APP.nj,Jda,$APP.oj,Eda,
26
+ $APP.pj,Fda,$APP.qj,Gda,$APP.rj,!0,$APP.sj,Cda,$APP.tj,Ida],null))};var rw=new $APP.ah(null,new $APP.K(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),Jda="value placeholder name disabled required open placement error".split(" "),Hda=$APP.Ag([$APP.vv,$APP.Qu,$APP.Zu,$APP.Tp,$APP.Lk,$APP.Vm,$APP.Kk,$APP.Q,$APP.xj,$APP.dr,$APP.vt,$APP.Aq,$APP.Fq],[new $APP.K(null,2,[$APP.P,$APP.X,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"open"],null),new $APP.K(null,2,[$APP.P,$APP.fq,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,
27
+ $APP.ej,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"placeholder"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"disabled"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"name"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"value"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"error"],null),new $APP.K(null,2,[$APP.P,$APP.Wt,$APP.dj,!0],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"placement",$APP.hu,rw],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"required"],null),new $APP.K(null,
28
+ 2,[$APP.P,$APP.Jt,$APP.dj,!0],null)]);
29
+ $APP.ne(["x-combobox-change-request",new $APP.K(null,3,[$APP.Qr,!0,$APP.us,$APP.ne(["value",$APP.Q]),$APP.Ji,new $APP.K(null,3,[$APP.Q,$APP.X,$APP.Z,$APP.X,$APP.Yt,$APP.X],null)],null),"x-combobox-change",new $APP.K(null,2,[$APP.Qr,!1,$APP.Ji,new $APP.K(null,2,[$APP.Q,$APP.X,$APP.Z,$APP.X],null)],null),"x-combobox-input",new $APP.K(null,2,[$APP.Qr,!1,$APP.Ji,new $APP.K(null,1,[$APP.rp,$APP.X],null)],null),"x-combobox-toggle",new $APP.K(null,3,[$APP.Qr,!0,$APP.us,$APP.ne(["open",$APP.Qu]),$APP.Ji,
30
+ new $APP.K(null,2,[$APP.Qu,$APP.ej,$APP.fr,$APP.X],null)],null)]);var Dda=":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:var(--x-border-width,1px) solid var(--x-color-border,#e2e8f0);--x-combobox-border-hover:var(--x-border-width,1px) solid var(--x-color-border,#cbd5e1);--x-combobox-border-focus:var(--x-border-width,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-error-color:var(--x-color-danger,#dc2626);--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:var(--x-border-width,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);}"+
31
31
  $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@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:var(--x-border-width,1px) solid var(--x-color-border,#334155);--x-combobox-border-hover:var(--x-border-width,1px) solid var(--x-color-border,#475569);--x-combobox-border-focus:var(--x-border-width,1px) solid var(--x-color-focus-ring,#93c5fd);--x-combobox-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-combobox-error-color:var(--x-color-danger,#f87171);--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:var(--x-border-width,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]{position:relative;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([data-invalid]) [part\x3dwrapper]{border:var(--x-border-width,1px) solid var(--x-combobox-error-color);}:host([data-invalid]:focus-within) [part\x3dwrapper]{border:var(--x-border-width,1px) solid var(--x-combobox-error-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--x-combobox-error-color) 45%,transparent);}: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:var(--x-radius-sm,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 var(--x-transition-duration,200ms) var(--x-transition-easing,ease);cursor:pointer;}: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:var(--x-radius-sm,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:var(--x-font-weight-bold,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;}[part\x3derror]{display:block;margin-top:0.25rem;font-size:var(--x-font-size-sm,0.8125rem);line-height:1.4;color:var(--x-combobox-error-color);}.error-hidden{display:none;}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;}}",
32
- Bw=new $APP.H(null,8,5,$APP.J,[new $APP.H(null,4,5,$APP.J,["input","inputFocus","focus",function(a){return xw(a,"focus")}],null),new $APP.H(null,4,5,$APP.J,["input","inputInput","input",function(a,b){b=b.target.value;$APP.S(a,"__xComboboxQuery",b);$APP.S(a,"__xComboboxActiveIdx",0);$APP.m(a.hasAttribute("open"))||xw(a,"input");uw(a);return $APP.Wi(a,"x-combobox-input",{query:b})}],null),new $APP.H(null,4,5,$APP.J,["input","inputKeydown","keydown",function(a,b){var c=b.key;$APP.z.j(c,"ArrowDown")?
33
- (b.preventDefault(),a=$APP.m(a.hasAttribute("open"))?Aw(a,$APP.fq):xw(a,"keyboard")):$APP.z.j(c,"ArrowUp")?(b.preventDefault(),a=$APP.m(a.hasAttribute("open"))?Aw(a,$APP.vt):xw(a,"keyboard")):$APP.z.j(c,"Enter")?$APP.m(a.hasAttribute("open"))?(b.preventDefault(),a=uda(a)):a=null:$APP.z.j(c,"Escape")?$APP.m(a.hasAttribute("open"))?(b.preventDefault(),yw(a,"escape"),a=$APP.l(a,"__xComboboxRefs"),a=$APP.m(a)?$APP.l(a,"input").focus():null):a=null:$APP.z.j(c,"Home")?$APP.m(a.hasAttribute("open"))?(b.preventDefault(),
34
- $APP.S(a,"__xComboboxActiveIdx",0),a=uw(a)):a=null:$APP.z.j(c,"End")?$APP.m(a.hasAttribute("open"))?(b.preventDefault(),b=$APP.l(a,"__xComboboxQuery"),b=$APP.w(sw($APP.l(a,"__xComboboxOptions"),$APP.m(b)?b:"")),$APP.S(a,"__xComboboxActiveIdx",$APP.Wl.j(0,b-1)),a=uw(a)):a=null:a=null;return a}],null),new $APP.H(null,4,5,$APP.J,["clear","clearClick","click",function(a){var b=a.getAttribute("value");return $APP.Yi(a,"x-combobox-change-request",{value:"",label:"",previousValue:$APP.m(b)?b:""})?($APP.V(a,
35
- "value"),$APP.V(a,"data-has-value"),b=$APP.l(a,"__xComboboxRefs"),$APP.m(b)&&(b=$APP.l(b,"input"),b.value="",b.focus()),$APP.Wi(a,"x-combobox-change",{value:"",label:""})):null}],null),new $APP.H(null,4,5,$APP.J,["chevron","chevronPointerdown","pointerdown",function(a,b){b.preventDefault();if($APP.m(a.hasAttribute("open")))return yw(a,"pointer");xw(a,"pointer");a=$APP.l(a,"__xComboboxRefs");return $APP.m(a)?$APP.l(a,"input").focus():null}],null),new $APP.H(null,4,5,$APP.J,["panel","panelPointerdown",
36
- "pointerdown",function(a,b){return b.preventDefault()}],null),new $APP.H(null,4,5,$APP.J,["panel","panelClick","click",function(a,b){b=b.target;b=$APP.m(b.hasAttribute("data-value"))?b:b.closest("["+$APP.N.i("data-value")+"]");if($APP.m(b)){var c=b.getAttribute("data-value");return zw(a,c,b.textContent)}return null}],null),new $APP.H(null,4,5,$APP.J,["slot","slotchange","slotchange",function(a){tw(a);$APP.S(a,"__xComboboxModel",null);return ww(a)}],null)],null),Cw=new $APP.H(null,1,5,$APP.J,[new $APP.H(null,
37
- 3,5,$APP.J,["focusout","focusout",function(a,b){return $APP.m(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.p(a.contains(b))?yw(a,"focusout"):null):null}],null)],null);$APP.ha("baredom.exports.x_combobox.init",Fw);export const init=Fw;
32
+ xw=new $APP.H(null,8,5,$APP.J,[new $APP.H(null,4,5,$APP.J,["input","inputFocus","focus",function(a){return tw(a,"focus")}],null),new $APP.H(null,4,5,$APP.J,["input","inputInput","input",function(a,b){b=b.target.value;$APP.S(a,"__xComboboxQuery",b);$APP.S(a,"__xComboboxActiveIdx",0);$APP.m(a.hasAttribute("open"))||tw(a,"input");qw(a);return $APP.Mi(a,"x-combobox-input",{query:b})}],null),new $APP.H(null,4,5,$APP.J,["input","inputKeydown","keydown",function(a,b){var c=b.key;$APP.z.j(c,"ArrowDown")?
33
+ (b.preventDefault(),a=$APP.m(a.hasAttribute("open"))?ww(a,$APP.bq):tw(a,"keyboard")):$APP.z.j(c,"ArrowUp")?(b.preventDefault(),a=$APP.m(a.hasAttribute("open"))?ww(a,$APP.rt):tw(a,"keyboard")):$APP.z.j(c,"Enter")?$APP.m(a.hasAttribute("open"))?(b.preventDefault(),a=yda(a)):a=null:$APP.z.j(c,"Escape")?$APP.m(a.hasAttribute("open"))?(b.preventDefault(),uw(a,"escape"),a=$APP.l(a,"__xComboboxRefs"),a=$APP.m(a)?$APP.l(a,"input").focus():null):a=null:$APP.z.j(c,"Home")?$APP.m(a.hasAttribute("open"))?(b.preventDefault(),
34
+ $APP.S(a,"__xComboboxActiveIdx",0),a=qw(a)):a=null:$APP.z.j(c,"End")?$APP.m(a.hasAttribute("open"))?(b.preventDefault(),b=$APP.l(a,"__xComboboxQuery"),b=$APP.w(ow($APP.l(a,"__xComboboxOptions"),$APP.m(b)?b:"")),$APP.S(a,"__xComboboxActiveIdx",$APP.Sl.j(0,b-1)),a=qw(a)):a=null:a=null;return a}],null),new $APP.H(null,4,5,$APP.J,["clear","clearClick","click",function(a){var b=a.getAttribute("value");return $APP.Oi(a,"x-combobox-change-request",{value:"",label:"",previousValue:$APP.m(b)?b:""})?($APP.V(a,
35
+ "value"),$APP.V(a,"data-has-value"),b=$APP.l(a,"__xComboboxRefs"),$APP.m(b)&&(b=$APP.l(b,"input"),b.value="",b.focus()),$APP.Mi(a,"x-combobox-change",{value:"",label:""})):null}],null),new $APP.H(null,4,5,$APP.J,["chevron","chevronPointerdown","pointerdown",function(a,b){b.preventDefault();if($APP.m(a.hasAttribute("open")))return uw(a,"pointer");tw(a,"pointer");a=$APP.l(a,"__xComboboxRefs");return $APP.m(a)?$APP.l(a,"input").focus():null}],null),new $APP.H(null,4,5,$APP.J,["panel","panelPointerdown",
36
+ "pointerdown",function(a,b){return b.preventDefault()}],null),new $APP.H(null,4,5,$APP.J,["panel","panelClick","click",function(a,b){b=b.target;b=$APP.m(b.hasAttribute("data-value"))?b:b.closest("["+$APP.N.i("data-value")+"]");if($APP.m(b)){var c=b.getAttribute("data-value");return vw(a,c,b.textContent)}return null}],null),new $APP.H(null,4,5,$APP.J,["slot","slotchange","slotchange",function(a){pw(a);$APP.S(a,"__xComboboxModel",null);return sw(a)}],null)],null),yw=new $APP.H(null,1,5,$APP.J,[new $APP.H(null,
37
+ 3,5,$APP.J,["focusout","focusout",function(a,b){return $APP.m(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.p(a.contains(b))?uw(a,"focusout"):null):null}],null)],null);$APP.ha("baredom.exports.x_combobox.init",Bw);export const init=Bw;