@vanelsas/baredom 2.5.0 → 2.7.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 (104) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +23 -337
  3. package/custom-elements.json +36 -1
  4. package/dist/base.js +358 -352
  5. package/dist/integrity.json +93 -93
  6. package/dist/x-alert.js +18 -19
  7. package/dist/x-avatar-group.js +10 -11
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +10 -11
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +14 -14
  13. package/dist/x-button.js +18 -16
  14. package/dist/x-cancel-dialogue.js +17 -17
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +34 -34
  17. package/dist/x-chart.js +46 -48
  18. package/dist/x-checkbox.js +10 -11
  19. package/dist/x-chip.js +9 -9
  20. package/dist/x-collapse.js +10 -12
  21. package/dist/x-color-picker.js +44 -45
  22. package/dist/x-combobox.d.ts +1 -0
  23. package/dist/x-combobox.js +26 -27
  24. package/dist/x-command-palette.js +26 -27
  25. package/dist/x-container.js +5 -6
  26. package/dist/x-context-menu.js +18 -18
  27. package/dist/x-copy.js +22 -22
  28. package/dist/x-currency-field.d.ts +1 -0
  29. package/dist/x-currency-field.js +22 -23
  30. package/dist/x-date-picker.js +41 -42
  31. package/dist/x-divider.js +8 -9
  32. package/dist/x-drawer.js +11 -12
  33. package/dist/x-dropdown.js +10 -11
  34. package/dist/x-fieldset.js +6 -6
  35. package/dist/x-file-download.js +7 -8
  36. package/dist/x-file-upload.js +22 -25
  37. package/dist/x-form-field.js +15 -17
  38. package/dist/x-form.js +8 -10
  39. package/dist/x-gaussian-blur.js +18 -18
  40. package/dist/x-grid.js +6 -6
  41. package/dist/x-icon.js +7 -7
  42. package/dist/x-image.js +19 -19
  43. package/dist/x-kinetic-font.js +28 -29
  44. package/dist/x-kinetic-typography.js +39 -39
  45. package/dist/x-liquid-dock.js +39 -39
  46. package/dist/x-liquid-fill.js +44 -44
  47. package/dist/x-liquid-glass.js +47 -47
  48. package/dist/x-menu-item.js +9 -10
  49. package/dist/x-menu.js +11 -11
  50. package/dist/x-metaball-cursor.js +27 -27
  51. package/dist/x-modal.js +12 -13
  52. package/dist/x-morph-stack.js +38 -39
  53. package/dist/x-navbar.js +12 -13
  54. package/dist/x-neural-glow.js +32 -33
  55. package/dist/x-notification-center.js +9 -10
  56. package/dist/x-organic-divider.js +18 -19
  57. package/dist/x-organic-progress.js +37 -38
  58. package/dist/x-organic-shape.js +13 -14
  59. package/dist/x-pagination.d.ts +2 -1
  60. package/dist/x-pagination.js +16 -16
  61. package/dist/x-particle-button.js +48 -49
  62. package/dist/x-popover.js +24 -25
  63. package/dist/x-progress-circle.js +8 -9
  64. package/dist/x-progress.js +11 -11
  65. package/dist/x-radio.js +10 -12
  66. package/dist/x-ripple-effect.js +11 -11
  67. package/dist/x-scroll-parallax.js +19 -19
  68. package/dist/x-scroll-stack.js +18 -18
  69. package/dist/x-scroll-story.js +36 -36
  70. package/dist/x-scroll-timeline.js +46 -47
  71. package/dist/x-scroll.js +40 -41
  72. package/dist/x-search-field.js +15 -17
  73. package/dist/x-select.d.ts +1 -0
  74. package/dist/x-select.js +10 -11
  75. package/dist/x-sidebar.js +16 -16
  76. package/dist/x-skeleton-group.js +12 -14
  77. package/dist/x-skeleton.js +1 -1
  78. package/dist/x-slider.d.ts +1 -0
  79. package/dist/x-slider.js +16 -16
  80. package/dist/x-soft-body.js +21 -21
  81. package/dist/x-spacer.js +5 -5
  82. package/dist/x-spinner.js +5 -6
  83. package/dist/x-splash.js +13 -13
  84. package/dist/x-stat.js +11 -11
  85. package/dist/x-stepper.js +15 -15
  86. package/dist/x-switch.js +9 -11
  87. package/dist/x-tab.js +7 -7
  88. package/dist/x-table-cell.js +22 -22
  89. package/dist/x-table-row.js +9 -10
  90. package/dist/x-table.js +14 -15
  91. package/dist/x-tabs.d.ts +1 -0
  92. package/dist/x-tabs.js +11 -11
  93. package/dist/x-text-area.d.ts +1 -0
  94. package/dist/x-text-area.js +19 -19
  95. package/dist/x-theme.d.ts +1 -1
  96. package/dist/x-theme.js +25 -25
  97. package/dist/x-timeline-item.js +23 -23
  98. package/dist/x-timeline.js +9 -9
  99. package/dist/x-toast.js +24 -24
  100. package/dist/x-toaster.js +8 -8
  101. package/dist/x-tooltip.js +11 -13
  102. package/dist/x-typography.js +11 -11
  103. package/dist/x-welcome-tour.js +64 -65
  104. package/package.json +186 -182
package/dist/x-chip.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var at=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.pi);a=$APP.D(b,$APP.Dm);var d=$APP.D(b,Zs);b=$APP.D(b,$APP.Nl);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.B.i(d,"false")||$APP.B.i(d,"0"));return new $APP.R(null,4,[$APP.U,c,$APP.Yi,typeof a==="string"&&a.length>0?a:c,$s,d,$APP.X,$APP.F(b)],null)},bt=function(a){var b=$APP.M(a);a=$APP.D(b,$s);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},ct=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
- a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},dt=function(a){var b=at(new $APP.R(null,4,[$APP.pi,a.getAttribute("label"),$APP.Dm,a.getAttribute("value"),Zs,a.getAttribute("removable"),$APP.Nl,a.hasAttribute("disabled")],null));if($APP.n(bt(b))){var c=$APP.M(b);b=$APP.D(c,$APP.Yi);c=$APP.D(c,$APP.U);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.r(b.defaultPrevented)?
4
- ct(a):null}else a=null;return a},ft=function(a){var b=at(new $APP.R(null,4,[$APP.pi,a.getAttribute("label"),$APP.Dm,a.getAttribute("value"),Zs,a.getAttribute("removable"),$APP.Nl,a.hasAttribute("disabled")],null)),c=$APP.M(b),d=$APP.D(c,$APP.U),e=$APP.D(c,$s);c=$APP.D(c,$APP.X);var g=$APP.k(a,"__xChipRefs"),h=$APP.Qm.g(g);g=et.g(g);b=bt(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
5
- "true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},gt=function(a){function b(e){var g=e.key;return $APP.B.i(g,"Backspace")||$APP.B.i(g,"Delete")?(e.preventDefault(),dt(a)):null}function c(){return dt(a)}var d=et.g($APP.k(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
- b);$APP.ja(a,"__xChipHandlers",{click:c,keydown:b})},ht=function(a){var b=$APP.k(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.k(a,"__xChipRefs"),d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=et.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},it=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
7
- enumerable:!0,configurable:!0})},jt=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},kt=function(a){it(a,"label");it(a,"value");jt(a,"removable");jt(a,"disabled")},mt=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return lt}});b.connectedCallback=function(){if(!$APP.n($APP.k(this,
8
- "__xChipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("span"),g=document.createElement("span"),h=document.createElement("button"),l=document.createElement("span");d.textContent=":host{--x-chip-bg:var(--x-color-surface,rgba(0,0,0,0.08));--x-chip-color:var(--x-color-text,rgba(0,0,0,0.80));--x-chip-border:var(--x-color-border,rgba(0,0,0,0.12));--x-chip-radius:var(--x-radius-full, 9999px);--x-chip-font-size:var(--x-font-size-sm, 0.875rem);--x-chip-padding-x:0.625rem;--x-chip-padding-y:0.25rem;--x-chip-remove-size:1rem;--x-chip-exit-duration:300ms;display:inline-flex;align-items:center;vertical-align:middle;color-scheme:light dark;font-family:inherit;font-size:var(--x-chip-font-size);line-height:1;border-radius:var(--x-chip-radius);background:var(--x-chip-bg);border:1px solid var(--x-chip-border);color:var(--x-chip-color);padding:var(--x-chip-padding-y) var(--x-chip-padding-x);gap:0.25rem;box-sizing:border-box;cursor:default;user-select:none;outline:none;}@media (prefers-color-scheme:dark){:host{--x-chip-bg:var(--x-color-surface,rgba(255,255,255,0.10));--x-chip-border:var(--x-color-border,rgba(255,255,255,0.16));--x-chip-color:var(--x-color-text,rgba(255,255,255,0.88));}}:host(:focus-visible){outline:2px solid var(--x-color-focus-ring,currentColor);outline-offset:2px;}:host([disabled]){opacity:0.55;pointer-events:none;}[part\x3dcontainer]{display:inline-flex;align-items:center;gap:0.25rem;}[part\x3dlabel]{display:inline;font-size:inherit;color:inherit;}[part\x3dremove]{display:none;align-items:center;justify-content:center;width:var(--x-chip-remove-size);height:var(--x-chip-remove-size);border:none;background:none;color:inherit;cursor:pointer;padding:0;border-radius:50%;font-size:1rem;line-height:1;opacity:0.7;flex-shrink:0;}[part\x3dremove]:hover{opacity:1;}[part\x3dremove]:focus-visible{outline:2px solid currentColor;outline-offset:1px;}:host([data-removable]) [part\x3dremove]{display:inline-flex;}@keyframes x-chip-exit{to{opacity:0;transform:scale(0.85);}}:host([data-exiting]){animation:x-chip-exit var(--x-chip-exit-duration) forwards;}@media (prefers-reduced-motion:reduce){:host([data-exiting]){animation-duration:0ms;}}";
9
- e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");l.setAttribute("aria-hidden","true");l.textContent="×";h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.R(null,4,[$APP.Hi,c,$APP.Hj,e,$APP.Qm,g,et,h],null)}ht(this);gt(this);return ft(this)};b.disconnectedCallback=function(){return ht(this)};b.attributeChangedCallback=function(c,
10
- d,e){return $APP.N(d,e)?$APP.n($APP.k(this,"__xChipRefs"))?ft(this):null:null};kt(b);return a},nt=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",mt());return null},Zs=new $APP.K(null,"removable-raw","removable-raw",1718453796),et=new $APP.K(null,"remove-btn","remove-btn",843430290),$s=new $APP.K(null,"removable?","removable?",1886800649);var lt=["label","value","removable","disabled"];$APP.Pd(["x-chip-remove",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.Yi,$APP.Y,$APP.U,$APP.Y],null),$APP.km,!0],null)]);$APP.ha("baredom.exports.x_chip.init",nt);export const init=nt;
2
+ var Dt=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.Hi);a=$APP.D(b,$APP.Wm);var d=$APP.D(b,Bt);b=$APP.D(b,$APP.fm);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.B.i(d,"false")||$APP.B.i(d,"0"));return new $APP.Q(null,4,[$APP.T,c,$APP.pj,typeof a==="string"&&a.length>0?a:c,Ct,d,$APP.X,$APP.F(b)],null)},Et=function(a){var b=$APP.M(a);a=$APP.D(b,Ct);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.q(b):a},Ft=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
+ a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},Gt=function(a){var b=Dt(new $APP.Q(null,4,[$APP.Hi,a.getAttribute("label"),$APP.Wm,a.getAttribute("value"),Bt,a.getAttribute("removable"),$APP.fm,a.hasAttribute("disabled")],null));if($APP.n(Et(b))){var c=$APP.M(b);b=$APP.D(c,$APP.pj);c=$APP.D(c,$APP.T);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.q(b.defaultPrevented)?
4
+ Ft(a):null}else a=null;return a},It=function(a){var b=Dt(new $APP.Q(null,4,[$APP.Hi,a.getAttribute("label"),$APP.Wm,a.getAttribute("value"),Bt,a.getAttribute("removable"),$APP.fm,a.hasAttribute("disabled")],null)),c=$APP.M(b),d=$APP.D(c,$APP.T),e=$APP.D(c,Ct);c=$APP.D(c,$APP.X);var g=$APP.k(a,"__xChipRefs"),h=$APP.jn.g(g);g=Ht.g(g);b=Et(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
5
+ "true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},Jt=function(a){function b(e){var g=e.key;return $APP.B.i(g,"Backspace")||$APP.B.i(g,"Delete")?(e.preventDefault(),Gt(a)):null}function c(){return Gt(a)}var d=Ht.g($APP.k(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
+ b);$APP.ja(a,"__xChipHandlers",{click:c,keydown:b})},Kt=function(a){var b=$APP.k(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.k(a,"__xChipRefs"),d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=Ht.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},Lt=function(a){if(!$APP.n($APP.k(a,"__xChipRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("span"),e=
7
+ document.createElement("span"),g=document.createElement("button"),h=document.createElement("span");c.textContent=":host{--x-chip-bg:var(--x-color-surface,rgba(0,0,0,0.08));--x-chip-color:var(--x-color-text,rgba(0,0,0,0.80));--x-chip-border:var(--x-color-border,rgba(0,0,0,0.12));--x-chip-radius:var(--x-radius-full, 9999px);--x-chip-font-size:var(--x-font-size-sm, 0.875rem);--x-chip-padding-x:0.625rem;--x-chip-padding-y:0.25rem;--x-chip-remove-size:1rem;--x-chip-exit-duration:300ms;display:inline-flex;align-items:center;vertical-align:middle;color-scheme:light dark;font-family:inherit;font-size:var(--x-chip-font-size);line-height:1;border-radius:var(--x-chip-radius);background:var(--x-chip-bg);border:1px solid var(--x-chip-border);color:var(--x-chip-color);padding:var(--x-chip-padding-y) var(--x-chip-padding-x);gap:0.25rem;box-sizing:border-box;cursor:default;user-select:none;outline:none;}@media (prefers-color-scheme:dark){:host{--x-chip-bg:var(--x-color-surface,rgba(255,255,255,0.10));--x-chip-border:var(--x-color-border,rgba(255,255,255,0.16));--x-chip-color:var(--x-color-text,rgba(255,255,255,0.88));}}:host(:focus-visible){outline:2px solid var(--x-color-focus-ring,currentColor);outline-offset:2px;}:host([disabled]){opacity:0.55;pointer-events:none;}[part\x3dcontainer]{display:inline-flex;align-items:center;gap:0.25rem;}[part\x3dlabel]{display:inline;font-size:inherit;color:inherit;}[part\x3dremove]{display:none;align-items:center;justify-content:center;width:var(--x-chip-remove-size);height:var(--x-chip-remove-size);border:none;background:none;color:inherit;cursor:pointer;padding:0;border-radius:50%;font-size:1rem;line-height:1;opacity:0.7;flex-shrink:0;}[part\x3dremove]:hover{opacity:1;}[part\x3dremove]:focus-visible{outline:2px solid currentColor;outline-offset:1px;}:host([data-removable]) [part\x3dremove]{display:inline-flex;}@keyframes x-chip-exit{to{opacity:0;transform:scale(0.85);}}:host([data-exiting]){animation:x-chip-exit var(--x-chip-exit-duration) forwards;}@media (prefers-reduced-motion:reduce){:host([data-exiting]){animation-duration:0ms;}}";
8
+ d.setAttribute("part","container");e.setAttribute("part","label");g.setAttribute("part","remove");g.setAttribute("type","button");g.setAttribute("aria-label","Remove");h.setAttribute("aria-hidden","true");h.textContent="×";g.appendChild(h);d.appendChild(e);d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__xChipRefs=new $APP.Q(null,4,[$APP.Zi,b,$APP.Zj,d,$APP.jn,e,Ht,g],null)}Kt(a);Jt(a);return It(a)},Mt=function(a){return Kt(a)},Nt=function(a,b,c,d){return $APP.N(c,d)?$APP.n($APP.k(a,"__xChipRefs"))?
9
+ It(a):null:null},Ot=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.S.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Pt=function(a,b){return Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Qt=function(a){Ot(a,"label");Ot(a,"value");Pt(a,"removable");
10
+ return Pt(a,"disabled")},St=function(){return $APP.Lg("x-chip",new $APP.Q(null,5,[$APP.Cg,Rt,$APP.Dg,Lt,$APP.Eg,Mt,$APP.Fg,Nt,$APP.Jg,Qt],null))},Bt=new $APP.K(null,"removable-raw","removable-raw",1718453796),Ht=new $APP.K(null,"remove-btn","remove-btn",843430290),Ct=new $APP.K(null,"removable?","removable?",1886800649);var Rt=["label","value","removable","disabled"];$APP.Pd(["x-chip-remove",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.pj,$APP.Y,$APP.T,$APP.Y],null),$APP.Km,!0],null)]);$APP.ha("baredom.exports.x_chip.init",St);export const init=St;
@@ -1,13 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var R7=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},S7=function(a){a=a.getAttribute("duration-ms");return $APP.n(a)?(a=parseInt(a,10),$APP.n(isNaN(a))?300:$APP.oh.i(0,$APP.sh.i(2E3,a))):300},T7=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n(R7()))return b.style.height="",b.style.transition="";a=S7(a);b.style.height="0px";
3
- b.offsetHeight;var d=""+$APP.T.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},U7=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n(R7()))return b.style.height="0px",b.style.transition="";var d=""+$APP.T.g(b.offsetHeight)+
4
- "px";a=S7(a);b.style.height=d;b.offsetHeight;b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height="0px";var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},V7=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(b,"trigger");b=$APP.k(b,"header-text");var d=a.hasAttribute("open"),e=a.hasAttribute("disabled");a=a.getAttribute("header");b.textContent=$APP.n(a)?a:"";c.setAttribute("aria-expanded",
5
- $APP.n(d)?"true":"false");if($APP.n(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},W7=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.r(a.hasAttribute("open"));b=new CustomEvent("x-collapse-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),
6
- a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},X7=function(a){return function(){return W7(a,"pointer")}},Y7=function(a){return function(b){var c=b.key;return $APP.B.i(c," ")||$APP.B.i(c,"Enter")?(b.preventDefault(),W7(a,"keyboard")):null}},Z7=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(a,"__xCollapseHandlers");if($APP.n(c)){b=$APP.k(b,"trigger");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",
7
- $APP.k(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},$7=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.F(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},a8=function(a){Object.defineProperty(a,"header",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("header");return $APP.n(b)?b:""},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.T.g(b),b=this.setAttribute("header",
8
- b)):b=this.removeAttribute("header");return b}})},b8=function(a){Object.defineProperty(a,"durationMs",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("duration-ms");return $APP.n(b)?(b=parseInt(b,10),$APP.n(isNaN(b))?300:b):300},set:function(b){typeof b==="number"&&$APP.r(isNaN(b))?(b=""+$APP.T.g(Math.round(b)),b=this.setAttribute("duration-ms",b)):b=this.removeAttribute("duration-ms");return b}})},d8=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
9
- "observedAttributes",{get:function(){return c8}});$7(b,"open","open");$7(b,"disabled","disabled");a8(b);b8(b);b.toggle=function(){return W7(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCollapseRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("button"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("div"),p=document.createElement("div"),
10
- q=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border: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:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border: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 200ms 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;}}";
11
- e.setAttribute("part","container");g.setAttribute("part","trigger");g.setAttribute("type","button");g.setAttribute("id","trigger");g.setAttribute("aria-controls","panel");h.setAttribute("part","header-text");l.setAttribute("part","chevron");l.setAttribute("aria-hidden","true");m.setAttribute("part","content");m.setAttribute("id","panel");m.setAttribute("role","region");m.setAttribute("aria-labelledby","trigger");p.setAttribute("part","content-inner");q.setAttribute("name","content");l.textContent=
12
- "▼";g.appendChild(h);g.appendChild(l);p.appendChild(q);m.appendChild(p);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xCollapseRefs={root:c,trigger:g,"header-text":h,content:m}}Z7(this);c=$APP.k(this,"__xCollapseRefs");$APP.n(c)&&(c=$APP.k(c,"trigger"),d=X7(this),e=Y7(this),g={click:d,keydown:e},c.addEventListener("click",d),c.addEventListener("keydown",e),this.__xCollapseHandlers=g);return V7(this)};b.disconnectedCallback=function(){return Z7(this)};b.attributeChangedCallback=
13
- function(c){a:{if($APP.n($APP.k(this,"__xCollapseRefs"))&&(V7(this),$APP.B.i(c,"open"))){c=$APP.k(this,"__xCollapseRefs");c=$APP.n(c)?$APP.k(c,"content"):null;var d=this.hasAttribute("open");c=$APP.n(c)?$APP.n(d)?T7(this,c):U7(this,c):null;break a}c=null}return c};return a},e8=function(){return $APP.n(customElements.get("x-collapse"))?null:customElements.define("x-collapse",d8())};var c8=["open","disabled","header","duration-ms"];$APP.Pd(["x-collapse-toggle",new $APP.R(null,2,[$APP.km,!0,$APP.V,new $APP.R(null,2,[$APP.hm,$APP.Zj,$APP.rl,$APP.Y],null)],null),"x-collapse-change",new $APP.R(null,2,[$APP.km,!1,$APP.V,new $APP.R(null,1,[$APP.hm,$APP.Zj],null)],null)]);$APP.ha("baredom.exports.x_collapse.init",e8);export const init=e8;
2
+ var f$=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},g$=function(a){a=a.getAttribute("duration-ms");return $APP.n(a)?(a=parseInt(a,10),$APP.n(isNaN(a))?300:$APP.Jh.i(0,$APP.Kh.i(2E3,a))):300},faa=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n(f$()))return b.style.height="",b.style.transition="";a=g$(a);b.style.height="0px";
3
+ b.offsetHeight;var d=""+$APP.S.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.S.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},gaa=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n(f$()))return b.style.height="0px",b.style.transition="";var d=""+$APP.S.g(b.offsetHeight)+
4
+ "px";a=g$(a);b.style.height=d;b.offsetHeight;b.style.transition="height "+$APP.S.g(a)+"ms ease";b.style.height="0px";var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},h$=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(b,"trigger");b=$APP.k(b,"header-text");var d=a.hasAttribute("open"),e=a.hasAttribute("disabled");a=a.getAttribute("header");b.textContent=$APP.n(a)?a:"";c.setAttribute("aria-expanded",
5
+ $APP.n(d)?"true":"false");if($APP.n(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},i$=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.q(a.hasAttribute("open"));return $APP.Rg(a,"x-collapse-toggle",{open:c,source:b})?(c?a.setAttribute("open",""):a.removeAttribute("open"),$APP.Qg(a,"x-collapse-change",{open:c})):null},haa=function(a){return function(){return i$(a,
6
+ "pointer")}},iaa=function(a){return function(b){var c=b.key;return $APP.B.i(c," ")||$APP.B.i(c,"Enter")?(b.preventDefault(),i$(a,"keyboard")):null}},j$=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(a,"__xCollapseHandlers");if($APP.n(c)){b=$APP.k(b,"trigger");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},jaa=function(a){if(!$APP.n($APP.k(a,"__xCollapseRefs"))){var b=a.attachShadow({mode:"open"}),
7
+ c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("div"),m=document.createElement("div"),p=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border: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:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border: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 200ms 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;}}";
8
+ d.setAttribute("part","container");e.setAttribute("part","trigger");e.setAttribute("type","button");e.setAttribute("id","trigger");e.setAttribute("aria-controls","panel");g.setAttribute("part","header-text");h.setAttribute("part","chevron");h.setAttribute("aria-hidden","true");l.setAttribute("part","content");l.setAttribute("id","panel");l.setAttribute("role","region");l.setAttribute("aria-labelledby","trigger");m.setAttribute("part","content-inner");p.setAttribute("name","content");h.textContent=
9
+ "▼";e.appendChild(g);e.appendChild(h);m.appendChild(p);l.appendChild(m);d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xCollapseRefs={root:b,trigger:e,"header-text":g,content:l}}j$(a);b=$APP.k(a,"__xCollapseRefs");$APP.n(b)&&(b=$APP.k(b,"trigger"),c=haa(a),d=iaa(a),e={click:c,keydown:d},b.addEventListener("click",c),b.addEventListener("keydown",d),a.__xCollapseHandlers=e);return h$(a)},kaa=function(a){return j$(a)},laa=function(a,b){if($APP.n($APP.k(a,"__xCollapseRefs"))&&
10
+ (h$(a),$APP.B.i(b,"open"))){b=$APP.k(a,"__xCollapseRefs");b=$APP.n(b)?$APP.k(b,"content"):null;var c=a.hasAttribute("open");return $APP.n(b)?$APP.n(c)?faa(a,b):gaa(a,b):null}return null},maa=function(a){$APP.Sg(a,"open","open");$APP.Sg(a,"disabled","disabled");$APP.Ug(a,"header","header");$APP.Vg(a,"durationMs","duration-ms",300);return a.toggle=function(){return i$(this,"programmatic")}},k$=function(){return $APP.Lg("x-collapse",new $APP.Q(null,5,[$APP.Cg,naa,$APP.Dg,jaa,$APP.Eg,kaa,$APP.Fg,laa,
11
+ $APP.Jg,maa],null))};var naa=["open","disabled","header","duration-ms"];$APP.Pd(["x-collapse-toggle",new $APP.Q(null,2,[$APP.Km,!0,$APP.V,new $APP.Q(null,2,[$APP.Hm,$APP.uk,$APP.Kl,$APP.Y],null)],null),"x-collapse-change",new $APP.Q(null,2,[$APP.Km,!1,$APP.V,new $APP.Q(null,1,[$APP.Hm,$APP.uk],null)],null)]);$APP.ha("baredom.exports.x_collapse.init",k$);export const init=k$;
@@ -1,46 +1,45 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var DA=function(a,b){return $APP.sh.i($APP.oh.i(a,0),b)},EA=function(a){return $APP.fd(a,360)},FA=function(a){return DA(a,100)},GA=function(a){return DA(a,1)},IA=function(a){var b=typeof a==="string";a=b?$APP.eg(HA,a.trim()):b;return $APP.F(a)},MA=function(a){if(typeof a==="string")if(a=$APP.eg(HA,a.trim()),$APP.n(a))switch($APP.Ac(a,0,null),a=$APP.Ac(a,1,null),$APP.z(a)){case 3:var b=parseInt(""+$APP.T.g($APP.pc(a,0))+$APP.T.g($APP.pc(a,0)),16),c=parseInt(""+$APP.T.g($APP.pc(a,1))+$APP.T.g($APP.pc(a,
3
- 1)),16),d=parseInt(""+$APP.T.g($APP.pc(a,2))+$APP.T.g($APP.pc(a,2)),16);return new $APP.R(null,4,[JA,b,$APP.Ql,c,KA,d,LA,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.R(null,4,[JA,b,$APP.Ql,c,KA,d,LA,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.R(null,4,[JA,b,$APP.Ql,c,KA,d,LA,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
- else return null},QA=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.oh.C(a,b,$APP.uc([c])),e=$APP.sh.C(a,b,$APP.uc([c])),g=(d+e)/2,h=d-e;return h===0?new $APP.R(null,3,[NA,0,OA,0,PA,g*100],null):new $APP.R(null,3,[NA,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,OA,(g>.5?h/(2-d-e):h/(d+e))*100,PA,g*100],null)},RA=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},SA=function(a,b,c){a=EA(a)/360;b=FA(b)/100;c=FA(c)/100;if(b===0)return a=
5
- Math.round(c*255),new $APP.R(null,3,[JA,a,$APP.Ql,a,KA,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.R(null,3,[JA,Math.round(RA(c,b,a+1/3)*255),$APP.Ql,Math.round(RA(c,b,a)*255),KA,Math.round(RA(c,b,a-1/3)*255)],null)},TA=function(a,b,c){function d(e){e=DA(Math.round(e),255).toString(16);return $APP.z(e)<2?"0"+$APP.T.g(e):e}return"#"+$APP.T.g(d(a))+$APP.T.g(d(b))+$APP.T.g(d(c))},UA=function(a,b,c,d){function e(g){g=DA(Math.round(g),255).toString(16);return $APP.z(g)<2?"0"+$APP.T.g(g):g}
6
- return"#"+$APP.T.g(e(a))+$APP.T.g(e(b))+$APP.T.g(e(c))+$APP.T.g(e(GA(d)*255))},WA=function(a,b,c){b=FA(b)/100;c=FA(c)/100;b=c+b*$APP.sh.i(c,1-c);return new $APP.R(null,3,[NA,EA(a),OA,(b===0?0:2*(1-c/b))*100,VA,b*100],null)},XA=function(a,b,c){b=FA(b)/100;c=FA(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.sh.i(b,1-b);return new $APP.R(null,3,[NA,EA(a),OA,c*100,PA,b*100],null)},YA=function(a,b){return new $APP.R(null,2,[$APP.Kl,FA(a),$APP.Jl,100-FA(b)],null)},ZA=function(a){return typeof a==="string"&&
7
- IA(a)?(a=MA(a),$APP.n(a)?TA(JA.g(a),$APP.Ql.g(a),KA.g(a)):null):"#000000"},aB=function(a){return typeof a==="string"&&$APP.I($A,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},bB=function(a){return typeof a==="string"&&$APP.Lg(a)?$APP.We.m($APP.fe,$APP.th.m($APP.ae.g($APP.Jg),$APP.ce(IA),$APP.ae.g(function(b){b=MA(b);var c=$APP.M(b);b=$APP.D(c,JA);var d=$APP.D(c,$APP.Ql);c=$APP.D(c,KA);return TA(b,d,c)})),$APP.Hg(a,/,/)):$APP.fe},hB=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.hm),d=$APP.D(b,
8
- $APP.Pj),e=$APP.D(b,$APP.Yi);a=$APP.D(b,$APP.Aj);var g=$APP.D(b,$APP.Bj),h=$APP.D(b,$APP.wj),l=$APP.D(b,cB),m=$APP.D(b,$APP.U),p=$APP.D(b,dB);b=ZA(e);var q=function(){var H=MA(e);return $APP.n(H)?H:MA("#000000")}(),v=$APP.M(q);q=$APP.D(v,JA);var x=$APP.D(v,$APP.Ql),y=$APP.D(v,KA);v=$APP.D(v,LA);var A=function(){var H=typeof e==="string";if(H){H=e.trim();var G=$APP.eg(HA,H);$APP.n(G)?(H=$APP.eg(HA,H),H=$APP.u($APP.w(H)),H=8===$APP.z(H)):H=G;return H}return H}();v=$APP.n(A)?v:1;A=QA(q,x,y);var C=$APP.M(A);
9
- A=$APP.D(C,NA);var E=$APP.D(C,OA);C=$APP.D(C,PA);d=$APP.Kg(d);g=$APP.Kg(g);p=p!=null;c=c!=null;h=aB(h);return $APP.zf([$APP.cn,eB,$APP.Aj,$APP.wj,cB,OA,PA,fB,NA,$APP.U,$APP.Nm,gB,$APP.X,LA],[g,p,$APP.Lg(a)?a:null,h,bB(l),E,C,b,A,$APP.Lg(m)?m:null,$APP.B.i(h,"popover")&&c,p&&v<1?UA(q,x,y,v):b,d,v])},iB=function(a,b,c,d){a="Hue "+$APP.T.g(Math.round(a))+", Saturation "+$APP.T.g(Math.round(b))+"%, Lightness "+$APP.T.g(Math.round(c))+"%";return d<1?""+$APP.T.g(a)+", Opacity "+$APP.T.g(Math.round(d*100))+
10
- "%":a},jB=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.X);b=$APP.D(b,$APP.cn);return $APP.r(a)&&$APP.r(b)},kB=function(a){return document.createElement(a)},lB=function(a,b,c){return a.setAttribute(b,c)},mB=function(a){return hB($APP.zf([$APP.hm,$APP.Pj,$APP.Aj,$APP.Yi,$APP.Bj,$APP.wj,cB,$APP.U,dB],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},
11
- nB=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.Hh(d),bubbles:!0,composed:!0,cancelable:$APP.F(c)});return a.dispatchEvent(b)},oB=function(a,b){var c=gB.g(b),d=NA.g(b),e=OA.g(b),g=PA.g(b);b=LA.g(b);return nB(a,"x-color-picker-input",!1,new $APP.R(null,5,[$APP.Yi,c,NA,d,OA,e,PA,g,LA,b],null))},pB=function(a,b){var c=gB.g(b),d=NA.g(b),e=OA.g(b),g=PA.g(b);b=LA.g(b);return nB(a,"x-color-picker-change",!0,new $APP.R(null,5,[$APP.Yi,c,NA,d,OA,e,PA,g,LA,b],null))},qB=function(a,b,c,d,e,g){b=SA(b,c,
12
- d);d=$APP.M(b);b=$APP.D(d,JA);c=$APP.D(d,$APP.Ql);d=$APP.D(d,KA);e=$APP.n($APP.n(g)?e<1:g)?UA(b,c,d,e):TA(b,c,d);a.setAttribute("value",e)},rB=function(a,b,c,d){if($APP.N($APP.k(a,"__xColorPickerSwatchesCache"),c)){a.__xColorPickerSwatchesCache=c;b.innerHTML="";a=$APP.t(c);c=null;for(var e=0,g=0;;)if(g<e){var h=c.F(null,g),l=kB("button");l.setAttribute("part","swatch");l.setAttribute("type","button");l.setAttribute("role","option");l.setAttribute("aria-label",h);l.setAttribute("data-color",h);l.style.backgroundColor=
13
- h;b.appendChild(l);g+=1}else if(a=$APP.t(a))$APP.Nc(a)?(e=$APP.yb(a),a=$APP.zb(a),c=e,e=$APP.z(e)):(c=$APP.u(a),e=kB("button"),e.setAttribute("part","swatch"),e.setAttribute("type","button"),e.setAttribute("role","option"),e.setAttribute("aria-label",c),e.setAttribute("data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.w(a),c=null,e=0),g=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return lB(m,"aria-selected",$APP.B.i(m.getAttribute("data-color"),d)?"true":
14
- "false")})},sB=function(a){var b=$APP.k(a,"__xColorPickerRefs");if($APP.n(b)){var c=mB(a),d=$APP.M(c);c=$APP.D(d,gB);var e=$APP.D(d,$APP.X),g=$APP.D(d,LA),h=$APP.D(d,$APP.cn),l=$APP.D(d,eB),m=$APP.D(d,$APP.wj),p=$APP.D(d,cB),q=$APP.D(d,OA),v=$APP.D(d,PA),x=$APP.D(d,fB),y=$APP.D(d,$APP.U),A=$APP.D(d,NA);d=WA(A,q,v);d=$APP.M(d);var C=$APP.D(d,OA);q=$APP.D(d,VA);d=YA(OA.g(d),q);q=$APP.k(b,"area");var E=$APP.k(b,"hue-strip"),H=$APP.k(b,"alpha-strip"),G=$APP.k(b,"preview-color"),J=$APP.k(b,"hex-input"),
15
- Q=$APP.k(b,"trigger-swatch");b=$APP.k(b,"swatches");a.setAttribute("data-mode",m);a.style.setProperty("--_x-cp-hue",""+$APP.T.g(Math.round(A)));q.style.setProperty("--_x-cp-area-x",""+$APP.T.g($APP.Kl.g(d).toFixed(2))+"%");q.style.setProperty("--_x-cp-area-y",""+$APP.T.g($APP.Jl.g(d).toFixed(2))+"%");lB(q,"aria-valuetext",iB(A,C,v,g));$APP.n(y)&&q.setAttribute("aria-label",y);E.style.setProperty("--_x-cp-hue-pos",""+$APP.T.g((EA(A)/360*100).toFixed(2))+"%");lB(E,"aria-valuenow",""+$APP.T.g(Math.round(A)));
16
- $APP.n(l)?(H.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.T.g(Math.round(A))+","+$APP.T.g(Math.round(C))+"%,"+$APP.T.g(Math.round(v))+"%)"),H.style.setProperty("--_x-cp-alpha-pos",""+$APP.T.g((GA(g)*100).toFixed(2))+"%"),lB(H,"aria-valuenow",""+$APP.T.g(Math.round(g*100)))):H.style.display="none";G.style.backgroundColor=$APP.n(l)?function(){var aa=SA(A,C,v),la=$APP.M(aa);aa=$APP.D(la,JA);var Ca=$APP.D(la,$APP.Ql);la=$APP.D(la,KA);return"rgba("+$APP.T.g(aa)+","+$APP.T.g(Ca)+
17
- ","+$APP.T.g(la)+","+$APP.T.g(g.toFixed(2))+")"}():x;a.shadowRoot.activeElement!==J&&(J.value=c);Q.style.backgroundColor=$APP.n(l)?function(){var aa=SA(A,C,v),la=$APP.M(aa);aa=$APP.D(la,JA);var Ca=$APP.D(la,$APP.Ql);la=$APP.D(la,KA);return"rgba("+$APP.T.g(aa)+","+$APP.T.g(Ca)+","+$APP.T.g(la)+","+$APP.T.g(g.toFixed(2))+")"}():x;J.disabled=$APP.n(e)?e:h;rB(a,b,p,x);a=$APP.k(a,"__xColorPickerInternals");return $APP.n(a)?a.setFormValue(c):null}return null},uB=function(a,b){var c=a.getBoundingClientRect();
18
- a=b.clientY-c.top;var d=c.width,e=c.height;b=100*(DA(b.clientX-c.left,d)/d);a=100*(DA(a,e)/e);return new $APP.R(null,2,[tB,FA(b),$APP.Rj,100-FA(a)],null)},vB=function(a,b){a=a.getBoundingClientRect();var c=a.width;b=100*(DA(b.clientX-a.left,c)/c);return FA(b)/100*360},wB=function(a,b){a=a.getBoundingClientRect();var c=a.width;b=100*(DA(b.clientX-a.left,c)/c);return FA(b)/100},yB=function(a,b){var c=mB(a);if(jB(c)&&$APP.I(xB,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=WA(NA.g(c),OA.g(c),
19
- PA.g(c)),g=function(){switch(b.key){case "ArrowRight":return FA(OA.g(e)+d);case "ArrowLeft":return FA(OA.g(e)-d);default:return OA.g(e)}}(),h=function(){switch(b.key){case "ArrowUp":return FA(VA.g(e)+d);case "ArrowDown":return FA(VA.g(e)-d);default:return VA.g(e)}}();g=XA(NA.g(c),g,h);var l=$APP.M(g);g=$APP.D(l,NA);h=$APP.D(l,OA);l=$APP.D(l,PA);qB(a,g,h,l,LA.g(c),eB.g(c));oB(a,mB(a));return pB(a,mB(a))}return null},AB=function(a,b){var c=mB(a);if(jB(c)&&$APP.I(zB,b.key)){b.preventDefault();var d=
20
- $APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return EA(NA.g(c)+d);case "ArrowLeft":return EA(NA.g(c)-d);case "Home":return 0;case "End":return 360;default:return NA.g(c)}}();qB(a,e,OA.g(c),PA.g(c),LA.g(c),eB.g(c));oB(a,mB(a));return pB(a,mB(a))}return null},BB=function(a,b){var c=mB(a);if($APP.n(function(){var g=jB(c);return g?(g=eB.g(c),$APP.n(g)?$APP.I(zB,b.key):g):g}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return GA(LA.g(c)+
21
- d);case "ArrowLeft":return GA(LA.g(c)-d);case "Home":return 0;case "End":return 1;default:return LA.g(c)}}();qB(a,NA.g(c),OA.g(c),PA.g(c),e,!0);oB(a,mB(a));return pB(a,mB(a))}return null},CB=function(a){var b=mB(a);return jB(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){a.setAttribute("value",c.sRGBHex);return pB(a,mB(a))}).catch(function(){return null}):null},DB=function(a){if($APP.n(a.hasAttribute("open")))return null;a.setAttribute("open","");a=$APP.k(a,"__xColorPickerRefs");
22
- if($APP.n(a)){var b=$APP.k(a,"area");return setTimeout(function(){return b.focus()},0)}return null},EB=function(a){return $APP.n(a.hasAttribute("open"))?(a.removeAttribute("open"),a=$APP.k(a,"__xColorPickerRefs"),$APP.n(a)?$APP.k(a,"trigger").focus():null):null},FB=function(a){var b=$APP.k(a,"__xColorPickerRefs");if($APP.n(b)){var c=$APP.k(b,"area"),d=$APP.k(b,"hue-strip"),e=$APP.k(b,"alpha-strip"),g=$APP.k(b,"hex-input"),h=$APP.k(b,"swatches"),l=$APP.k(b,"eyedropper"),m=$APP.k(b,"copy"),p=$APP.k(b,
23
- "trigger");b=$APP.k(b,"panel");var q=function(ea){var ta=mB(a);if(jB(ta)){ea.preventDefault();var Qa=$APP.k($APP.k(a,"__xColorPickerRefs"),"area");Qa.setPointerCapture(ea.pointerId);a.__xColorPickerDragging="area";ea=uB(Qa,ea);Qa=$APP.M(ea);ea=$APP.D(Qa,tB);Qa=$APP.D(Qa,$APP.Rj);ea=XA(NA.g(ta),ea,Qa);var ac=$APP.M(ea);ea=$APP.D(ac,NA);Qa=$APP.D(ac,OA);ac=$APP.D(ac,PA);qB(a,ea,Qa,ac,LA.g(ta),eB.g(ta));ta=oB(a,mB(a))}else ta=null;return ta},v=function(ea){if($APP.B.i("area",$APP.k(a,"__xColorPickerDragging"))){var ta=
24
- mB(a);ea=uB($APP.k($APP.k(a,"__xColorPickerRefs"),"area"),ea);var Qa=$APP.M(ea);ea=$APP.D(Qa,tB);Qa=$APP.D(Qa,$APP.Rj);ea=XA(NA.g(ta),ea,Qa);var ac=$APP.M(ea);ea=$APP.D(ac,NA);Qa=$APP.D(ac,OA);ac=$APP.D(ac,PA);qB(a,ea,Qa,ac,LA.g(ta),eB.g(ta));ta=oB(a,mB(a))}else ta=null;return ta},x=function(){if($APP.B.i("area",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var ea=pB(a,mB(a))}else ea=null;return ea},y=function(ea){return yB(a,ea)},A=function(ea){var ta=mB(a);if(jB(ta)){ea.preventDefault();
25
- var Qa=$APP.k($APP.k(a,"__xColorPickerRefs"),"hue-strip");Qa.setPointerCapture(ea.pointerId);a.__xColorPickerDragging="hue";ea=vB(Qa,ea);qB(a,ea,OA.g(ta),PA.g(ta),LA.g(ta),eB.g(ta));ta=oB(a,mB(a))}else ta=null;return ta},C=function(ea){if($APP.B.i("hue",$APP.k(a,"__xColorPickerDragging"))){var ta=mB(a);ea=vB($APP.k($APP.k(a,"__xColorPickerRefs"),"hue-strip"),ea);qB(a,ea,OA.g(ta),PA.g(ta),LA.g(ta),eB.g(ta));ta=oB(a,mB(a))}else ta=null;return ta},E=function(){if($APP.B.i("hue",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=
26
- null;var ea=pB(a,mB(a))}else ea=null;return ea},H=function(ea){return AB(a,ea)},G=function(ea){var ta=mB(a);var Qa=(Qa=jB(ta))?eB.g(ta):Qa;$APP.n(Qa)?(ea.preventDefault(),Qa=$APP.k($APP.k(a,"__xColorPickerRefs"),"alpha-strip"),Qa.setPointerCapture(ea.pointerId),a.__xColorPickerDragging="alpha",ea=wB(Qa,ea),qB(a,NA.g(ta),OA.g(ta),PA.g(ta),ea,!0),ta=oB(a,mB(a))):ta=null;return ta},J=function(ea){if($APP.B.i("alpha",$APP.k(a,"__xColorPickerDragging"))){var ta=mB(a);ea=wB($APP.k($APP.k(a,"__xColorPickerRefs"),
27
- "alpha-strip"),ea);qB(a,NA.g(ta),OA.g(ta),PA.g(ta),ea,!0);ta=oB(a,mB(a))}else ta=null;return ta},Q=function(){if($APP.B.i("alpha",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var ea=pB(a,mB(a))}else ea=null;return ea},aa=function(ea){return BB(a,ea)},la=function(ea){a:{if($APP.B.i("Enter",ea.key)){ea.preventDefault();ea=$APP.k($APP.k(a,"__xColorPickerRefs"),"hex-input");var ta=ea.value,Qa=mB(a);if(jB(Qa)){if(IA(ta)){a.setAttribute("value",ta);ea=pB(a,mB(a));break a}ea=ea.value=
28
- gB.g(Qa);break a}}ea=null}return ea},Ca=function(ea){a:{var ta=mB(a);if(jB(ta)&&(ea=ea.target,$APP.n(ea.hasAttribute("data-color")))){ea=ea.getAttribute("data-color");a.setAttribute("value",ea);ea=pB(a,mB(a));break a}ea=null}return ea},Pa=function(){return CB(a)},db=function(){var ea=mB(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(gB.g(ea)):null},eb=function(){var ea=mB(a);return $APP.B.i("popover",$APP.wj.g(ea))&&$APP.r($APP.X.g(ea))?$APP.n($APP.Nm.g(ea))?EB(a):DB(a):null},
29
- pb=function(ea){$APP.B.i("Escape",ea.key)&&$APP.B.i("popover",$APP.wj.g(mB(a)))?(ea.preventDefault(),ea.stopPropagation(),ea=EB(a)):ea=null;return ea},Nb=function(ea){return ea.stopPropagation()},gb=function(ea){return $APP.n(a.hasAttribute("open"))?$APP.n(ea.composedPath().some(function(ta){return ta===a}))?null:EB(a):null};c.addEventListener("pointerdown",q);c.addEventListener("pointermove",v);c.addEventListener("pointerup",x);c.addEventListener("keydown",y);d.addEventListener("pointerdown",A);
30
- d.addEventListener("pointermove",C);d.addEventListener("pointerup",E);d.addEventListener("keydown",H);e.addEventListener("pointerdown",G);e.addEventListener("pointermove",J);e.addEventListener("pointerup",Q);e.addEventListener("keydown",aa);g.addEventListener("keydown",la);h.addEventListener("click",Ca);l.addEventListener("click",Pa);m.addEventListener("click",db);p.addEventListener("click",eb);b.addEventListener("keydown",pb);b.addEventListener("pointerdown",Nb);document.addEventListener("pointerdown",
31
- gb,!0);$APP.Cg(a,"__xColorPickerHandlers",{"area-move":v,copy:db,"panel-key":pb,"alpha-up":Q,"hue-up":E,"alpha-key":aa,"alpha-move":J,"hex-key":la,swatch:Ca,"area-up":x,"alpha-down":G,"area-key":y,"hue-down":A,"hue-key":H,"hue-move":C,eyedrop:Pa,"panel-pd":Nb,trigger:eb,"doc-click":gb,"area-down":q})}},GB=function(a){var b=$APP.k(a,"__xColorPickerRefs"),c=$APP.k(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){var d=$APP.k(b,"area"),e=$APP.k(b,"hue-strip"),g=$APP.k(b,"alpha-strip"),h=$APP.k(b,
32
- "hex-input"),l=$APP.k(b,"swatches"),m=$APP.k(b,"eyedropper"),p=$APP.k(b,"copy"),q=$APP.k(b,"trigger");b=$APP.k(b,"panel");d.removeEventListener("pointerdown",$APP.k(c,"area-down"));d.removeEventListener("pointermove",$APP.k(c,"area-move"));d.removeEventListener("pointerup",$APP.k(c,"area-up"));d.removeEventListener("keydown",$APP.k(c,"area-key"));e.removeEventListener("pointerdown",$APP.k(c,"hue-down"));e.removeEventListener("pointermove",$APP.k(c,"hue-move"));e.removeEventListener("pointerup",$APP.k(c,
33
- "hue-up"));e.removeEventListener("keydown",$APP.k(c,"hue-key"));g.removeEventListener("pointerdown",$APP.k(c,"alpha-down"));g.removeEventListener("pointermove",$APP.k(c,"alpha-move"));g.removeEventListener("pointerup",$APP.k(c,"alpha-up"));g.removeEventListener("keydown",$APP.k(c,"alpha-key"));h.removeEventListener("keydown",$APP.k(c,"hex-key"));l.removeEventListener("click",$APP.k(c,"swatch"));m.removeEventListener("click",$APP.k(c,"eyedrop"));p.removeEventListener("click",$APP.k(c,"copy"));q.removeEventListener("click",
34
- $APP.k(c,"trigger"));b.removeEventListener("keydown",$APP.k(c,"panel-key"));b.removeEventListener("pointerdown",$APP.k(c,"panel-pd"));document.removeEventListener("pointerdown",$APP.k(c,"doc-click"),!0);a.__xColorPickerHandlers=null}else return null},HB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.Eg(this,c,$APP.F(d))}})},IB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=
35
- this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?lB(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},KB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return JB}});HB(b,"disabled","disabled");HB(b,"readOnly","readonly");HB(b,"alpha","alpha");HB(b,"open","open");IB(b,"value","value");IB(b,"swatches","swatches");IB(b,"name","name");IB(b,"mode","mode");IB(b,"label","label");
36
- b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xColorPickerRefs"))){var c=this.attachShadow({mode:"open"}),d=kB("style"),e=kB("div"),g=kB("button"),h=kB("span"),l=kB("div"),m=kB("div"),p=kB("div"),q=kB("div"),v=kB("div"),x=kB("div"),y=kB("div"),A=kB("div"),C=kB("div"),E=kB("div"),H=kB("div"),G=kB("span"),J=kB("input"),Q=kB("button"),aa=kB("button"),la=kB("div");d.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
37
- e.setAttribute("part","container");g.setAttribute("part","trigger");g.setAttribute("type","button");g.setAttribute("aria-label","Pick color");h.setAttribute("part","trigger-swatch");l.setAttribute("part","panel");m.setAttribute("part","area");m.setAttribute("role","slider");m.setAttribute("tabindex","0");m.setAttribute("aria-label","Color");p.setAttribute("part","area-thumb");q.setAttribute("part","strips");v.setAttribute("part","hue-strip");v.setAttribute("role","slider");v.setAttribute("tabindex",
38
- "0");v.setAttribute("aria-label","Hue");v.setAttribute("aria-valuemin","0");v.setAttribute("aria-valuemax","360");x.setAttribute("part","hue-thumb");y.setAttribute("part","alpha-strip");y.setAttribute("role","slider");y.setAttribute("tabindex","0");y.setAttribute("aria-label","Opacity");y.setAttribute("aria-valuemin","0");y.setAttribute("aria-valuemax","100");A.setAttribute("part","alpha-gradient");C.setAttribute("part","alpha-thumb");E.setAttribute("part","controls");H.setAttribute("part","preview");
39
- G.setAttribute("part","preview-color");J.setAttribute("part","hex-input");J.setAttribute("type","text");J.setAttribute("spellcheck","false");J.setAttribute("autocomplete","off");J.setAttribute("aria-label","Hex color value");Q.setAttribute("part","eyedropper");Q.setAttribute("type","button");Q.setAttribute("aria-label","Pick color from screen");Q.innerHTML='\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';
40
- aa.setAttribute("part","copy");aa.setAttribute("type","button");aa.setAttribute("aria-label","Copy color value");aa.innerHTML='\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';la.setAttribute("part",
41
- "swatches");la.setAttribute("role","listbox");la.setAttribute("aria-label","Preset colors");g.appendChild(h);m.appendChild(p);v.appendChild(x);y.appendChild(A);y.appendChild(C);q.appendChild(v);q.appendChild(y);H.appendChild(G);E.appendChild(H);E.appendChild(J);E.appendChild(Q);E.appendChild(aa);l.appendChild(m);l.appendChild(q);l.appendChild(E);l.appendChild(la);e.appendChild(g);e.appendChild(l);c.appendChild(d);c.appendChild(e);typeof EyeDropper==="undefined"&&(Q.style.display="none");this.__xColorPickerRefs=
42
- {"alpha-thumb":C,copy:aa,swatches:la,"hue-strip":v,controls:E,"alpha-gradient":A,panel:l,preview:H,"area-thumb":p,"preview-color":G,container:e,area:m,"hue-thumb":x,"trigger-swatch":h,trigger:g,"alpha-strip":y,eyedropper:Q,"hex-input":J};$APP.n(this.attachInternals)&&(this.__xColorPickerInternals=this.attachInternals())}GB(this);FB(this);return sB(this)};b.disconnectedCallback=function(){return GB(this)};b.attributeChangedCallback=function(){return sB(this)};b.formDisabledCallback=function(c){$APP.Eg(this,
43
- "disabled",$APP.F(c));return sB(this)};b.formResetCallback=function(){this.setAttribute("value","#000000");return sB(this)};return a},LB=function(){return $APP.n(customElements.get("x-color-picker"))?null:customElements.define("x-color-picker",KB())},dB=new $APP.K(null,"alpha","alpha",-1574982441),gB=new $APP.K(null,"hex-full","hex-full",-1466644518),cB=new $APP.K(null,"swatches","swatches",2033601707),VA=new $APP.K(null,"v","v",21465059),OA=new $APP.K(null,"s","s",1705939918),JA=new $APP.K(null,
44
- "r","r",-471384190),eB=new $APP.K(null,"alpha?","alpha?",1329751525),PA=new $APP.K(null,"l","l",1395893423),NA=new $APP.K(null,"h","h",1109658740),KA=new $APP.K(null,"b","b",1482224470),tB=new $APP.K(null,"sat","sat",1064662667),LA=new $APP.K(null,"a","a",-2123407586),fB=new $APP.K(null,"hex","hex",41691346);var $A=new $APP.S(null,new $APP.R(null,2,["inline",null,"popover",null],null),null),JB="value alpha swatches disabled readonly name mode open label".split(" ");
45
- $APP.zf([$APP.hm,$APP.Pj,$APP.Aj,$APP.Yi,$APP.wj,cB,$APP.mm,$APP.U,dB],[new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"open"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"mode"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"swatches"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,
46
- $APP.Ik,"label"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"alpha"],null)]);$APP.Pd(["x-color-picker-input",new $APP.R(null,2,[$APP.V,new $APP.R(null,5,[$APP.Yi,$APP.Y,NA,$APP.W,OA,$APP.W,PA,$APP.W,LA,$APP.W],null),$APP.km,!1],null),"x-color-picker-change",new $APP.R(null,2,[$APP.V,new $APP.R(null,5,[$APP.Yi,$APP.Y,NA,$APP.W,OA,$APP.W,PA,$APP.W,LA,$APP.W],null),$APP.km,!0],null)]);var HA=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var xB=new $APP.S(null,new $APP.R(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),zB=new $APP.S(null,new $APP.R(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null);$APP.ha("baredom.exports.x_color_picker.init",LB);export const init=LB;
2
+ var vB=function(a,b){return $APP.Kh.i($APP.Jh.i(a,0),b)},wB=function(a){return $APP.ed(a,360)},xB=function(a){return vB(a,100)},yB=function(a){return vB(a,1)},AB=function(a){var b=typeof a==="string";a=b?$APP.eg(zB,a.trim()):b;return $APP.F(a)},EB=function(a){if(typeof a==="string")if(a=$APP.eg(zB,a.trim()),$APP.n(a))switch($APP.Ac(a,0,null),a=$APP.Ac(a,1,null),$APP.z(a)){case 3:var b=parseInt(""+$APP.S.g($APP.pc(a,0))+$APP.S.g($APP.pc(a,0)),16),c=parseInt(""+$APP.S.g($APP.pc(a,1))+$APP.S.g($APP.pc(a,
3
+ 1)),16),d=parseInt(""+$APP.S.g($APP.pc(a,2))+$APP.S.g($APP.pc(a,2)),16);return new $APP.Q(null,4,[BB,b,$APP.im,c,CB,d,DB,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.Q(null,4,[BB,b,$APP.im,c,CB,d,DB,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.Q(null,4,[BB,b,$APP.im,c,CB,d,DB,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
+ else return null},IB=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Jh.C(a,b,$APP.uc([c])),e=$APP.Kh.C(a,b,$APP.uc([c])),g=(d+e)/2,h=d-e;return h===0?new $APP.Q(null,3,[FB,0,GB,0,HB,g*100],null):new $APP.Q(null,3,[FB,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,GB,(g>.5?h/(2-d-e):h/(d+e))*100,HB,g*100],null)},JB=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},KB=function(a,b,c){a=wB(a)/360;b=xB(b)/100;c=xB(c)/100;if(b===0)return a=
5
+ Math.round(c*255),new $APP.Q(null,3,[BB,a,$APP.im,a,CB,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.Q(null,3,[BB,Math.round(JB(c,b,a+1/3)*255),$APP.im,Math.round(JB(c,b,a)*255),CB,Math.round(JB(c,b,a-1/3)*255)],null)},LB=function(a,b,c){function d(e){e=vB(Math.round(e),255).toString(16);return $APP.z(e)<2?"0"+$APP.S.g(e):e}return"#"+$APP.S.g(d(a))+$APP.S.g(d(b))+$APP.S.g(d(c))},MB=function(a,b,c,d){function e(g){g=vB(Math.round(g),255).toString(16);return $APP.z(g)<2?"0"+$APP.S.g(g):g}
6
+ return"#"+$APP.S.g(e(a))+$APP.S.g(e(b))+$APP.S.g(e(c))+$APP.S.g(e(yB(d)*255))},OB=function(a,b,c){b=xB(b)/100;c=xB(c)/100;b=c+b*$APP.Kh.i(c,1-c);return new $APP.Q(null,3,[FB,wB(a),GB,(b===0?0:2*(1-c/b))*100,NB,b*100],null)},PB=function(a,b,c){b=xB(b)/100;c=xB(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.Kh.i(b,1-b);return new $APP.Q(null,3,[FB,wB(a),GB,c*100,HB,b*100],null)},QB=function(a,b){return new $APP.Q(null,2,[$APP.cm,xB(a),$APP.bm,100-xB(b)],null)},RB=function(a){return typeof a==="string"&&
7
+ AB(a)?(a=EB(a),$APP.n(a)?LB(BB.g(a),$APP.im.g(a),CB.g(a)):null):"#000000"},TB=function(a){return typeof a==="string"&&$APP.I(SB,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},UB=function(a){return typeof a==="string"&&$APP.bh(a)?$APP.We.m($APP.ee,$APP.Lh.m($APP.$d.g($APP.$g),$APP.be(AB),$APP.$d.g(function(b){b=EB(b);var c=$APP.M(b);b=$APP.D(c,BB);var d=$APP.D(c,$APP.im);c=$APP.D(c,CB);return LB(b,d,c)})),$APP.Yg(a,/,/)):$APP.ee},$B=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.Hm),d=$APP.D(b,
8
+ $APP.kk),e=$APP.D(b,$APP.pj);a=$APP.D(b,$APP.Sj);var g=$APP.D(b,$APP.Tj),h=$APP.D(b,$APP.Oj),l=$APP.D(b,VB),m=$APP.D(b,$APP.T),p=$APP.D(b,WB);b=RB(e);var r=function(){var H=EB(e);return $APP.n(H)?H:EB("#000000")}(),v=$APP.M(r);r=$APP.D(v,BB);var x=$APP.D(v,$APP.im),y=$APP.D(v,CB);v=$APP.D(v,DB);var A=function(){var H=typeof e==="string";if(H){H=e.trim();var G=$APP.eg(zB,H);$APP.n(G)?(H=$APP.eg(zB,H),H=$APP.u($APP.w(H)),H=8===$APP.z(H)):H=G;return H}return H}();v=$APP.n(A)?v:1;A=IB(r,x,y);var C=$APP.M(A);
9
+ A=$APP.D(C,FB);var E=$APP.D(C,GB);C=$APP.D(C,HB);d=$APP.ah(d);g=$APP.ah(g);p=p!=null;c=c!=null;h=TB(h);return $APP.zf([$APP.wn,XB,$APP.Sj,$APP.Oj,VB,GB,HB,YB,FB,$APP.T,$APP.fn,ZB,$APP.X,DB],[g,p,$APP.bh(a)?a:null,h,UB(l),E,C,b,A,$APP.bh(m)?m:null,$APP.B.i(h,"popover")&&c,p&&v<1?MB(r,x,y,v):b,d,v])},aC=function(a,b,c,d){a="Hue "+$APP.S.g(Math.round(a))+", Saturation "+$APP.S.g(Math.round(b))+"%, Lightness "+$APP.S.g(Math.round(c))+"%";return d<1?""+$APP.S.g(a)+", Opacity "+$APP.S.g(Math.round(d*100))+
10
+ "%":a},bC=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.X);b=$APP.D(b,$APP.wn);return $APP.q(a)&&$APP.q(b)},cC=function(a){return document.createElement(a)},dC=function(a){return $B($APP.zf([$APP.Hm,$APP.kk,$APP.Sj,$APP.pj,$APP.Tj,$APP.Oj,VB,$APP.T,WB],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},eC=function(a,b){var c=
11
+ ZB.g(b),d=FB.g(b),e=GB.g(b),g=HB.g(b);b=DB.g(b);return $APP.Qg(a,"x-color-picker-input",$APP.Zh(new $APP.Q(null,5,[$APP.pj,c,FB,d,GB,e,HB,g,DB,b],null)))},fC=function(a,b){var c=ZB.g(b),d=FB.g(b),e=GB.g(b),g=HB.g(b);b=DB.g(b);return $APP.Rg(a,"x-color-picker-change",$APP.Zh(new $APP.Q(null,5,[$APP.pj,c,FB,d,GB,e,HB,g,DB,b],null)))},gC=function(a,b,c,d,e,g){b=KB(b,c,d);d=$APP.M(b);b=$APP.D(d,BB);c=$APP.D(d,$APP.im);d=$APP.D(d,CB);e=$APP.n($APP.n(g)?e<1:g)?MB(b,c,d,e):LB(b,c,d);a.setAttribute("value",
12
+ e)},hC=function(a,b,c,d){if($APP.N($APP.k(a,"__xColorPickerSwatchesCache"),c)){a.__xColorPickerSwatchesCache=c;b.innerHTML="";a=$APP.t(c);c=null;for(var e=0,g=0;;)if(g<e){var h=c.F(null,g),l=cC("button");l.setAttribute("part","swatch");l.setAttribute("type","button");l.setAttribute("role","option");l.setAttribute("aria-label",h);l.setAttribute("data-color",h);l.style.backgroundColor=h;b.appendChild(l);g+=1}else if(a=$APP.t(a))$APP.Nc(a)?(e=$APP.xb(a),a=$APP.yb(a),c=e,e=$APP.z(e)):(c=$APP.u(a),e=cC("button"),
13
+ e.setAttribute("part","swatch"),e.setAttribute("type","button"),e.setAttribute("role","option"),e.setAttribute("aria-label",c),e.setAttribute("data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.w(a),c=null,e=0),g=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return $APP.Og(m,"aria-selected",$APP.B.i(m.getAttribute("data-color"),d)?"true":"false")})},iC=function(a){var b=$APP.k(a,"__xColorPickerRefs");if($APP.n(b)){var c=dC(a),d=$APP.M(c);c=$APP.D(d,ZB);var e=
14
+ $APP.D(d,$APP.X),g=$APP.D(d,DB),h=$APP.D(d,$APP.wn),l=$APP.D(d,XB),m=$APP.D(d,$APP.Oj),p=$APP.D(d,VB),r=$APP.D(d,GB),v=$APP.D(d,HB),x=$APP.D(d,YB),y=$APP.D(d,$APP.T),A=$APP.D(d,FB);d=OB(A,r,v);d=$APP.M(d);var C=$APP.D(d,GB);r=$APP.D(d,NB);d=QB(GB.g(d),r);r=$APP.k(b,"area");var E=$APP.k(b,"hue-strip"),H=$APP.k(b,"alpha-strip"),G=$APP.k(b,"preview-color"),J=$APP.k(b,"hex-input"),U=$APP.k(b,"trigger-swatch");b=$APP.k(b,"swatches");a.setAttribute("data-mode",m);a.style.setProperty("--_x-cp-hue",""+$APP.S.g(Math.round(A)));
15
+ r.style.setProperty("--_x-cp-area-x",""+$APP.S.g($APP.cm.g(d).toFixed(2))+"%");r.style.setProperty("--_x-cp-area-y",""+$APP.S.g($APP.bm.g(d).toFixed(2))+"%");$APP.Og(r,"aria-valuetext",aC(A,C,v,g));$APP.n(y)&&r.setAttribute("aria-label",y);E.style.setProperty("--_x-cp-hue-pos",""+$APP.S.g((wB(A)/360*100).toFixed(2))+"%");$APP.Og(E,"aria-valuenow",""+$APP.S.g(Math.round(A)));$APP.n(l)?(H.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.S.g(Math.round(A))+","+$APP.S.g(Math.round(C))+
16
+ "%,"+$APP.S.g(Math.round(v))+"%)"),H.style.setProperty("--_x-cp-alpha-pos",""+$APP.S.g((yB(g)*100).toFixed(2))+"%"),$APP.Og(H,"aria-valuenow",""+$APP.S.g(Math.round(g*100)))):H.style.display="none";G.style.backgroundColor=$APP.n(l)?function(){var aa=KB(A,C,v),ta=$APP.M(aa);aa=$APP.D(ta,BB);var Ma=$APP.D(ta,$APP.im);ta=$APP.D(ta,CB);return"rgba("+$APP.S.g(aa)+","+$APP.S.g(Ma)+","+$APP.S.g(ta)+","+$APP.S.g(g.toFixed(2))+")"}():x;a.shadowRoot.activeElement!==J&&(J.value=c);U.style.backgroundColor=$APP.n(l)?
17
+ function(){var aa=KB(A,C,v),ta=$APP.M(aa);aa=$APP.D(ta,BB);var Ma=$APP.D(ta,$APP.im);ta=$APP.D(ta,CB);return"rgba("+$APP.S.g(aa)+","+$APP.S.g(Ma)+","+$APP.S.g(ta)+","+$APP.S.g(g.toFixed(2))+")"}():x;J.disabled=$APP.n(e)?e:h;hC(a,b,p,x);a=$APP.k(a,"__xColorPickerInternals");return $APP.n(a)?a.setFormValue(c):null}return null},kC=function(a,b){var c=a.getBoundingClientRect();a=b.clientY-c.top;var d=c.width,e=c.height;b=100*(vB(b.clientX-c.left,d)/d);a=100*(vB(a,e)/e);return new $APP.Q(null,2,[jC,xB(b),
18
+ $APP.mk,100-xB(a)],null)},lC=function(a,b){a=a.getBoundingClientRect();var c=a.width;b=100*(vB(b.clientX-a.left,c)/c);return xB(b)/100*360},mC=function(a,b){a=a.getBoundingClientRect();var c=a.width;b=100*(vB(b.clientX-a.left,c)/c);return xB(b)/100},oC=function(a,b){var c=dC(a);if(bC(c)&&$APP.I(nC,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=OB(FB.g(c),GB.g(c),HB.g(c)),g=function(){switch(b.key){case "ArrowRight":return xB(GB.g(e)+d);case "ArrowLeft":return xB(GB.g(e)-d);default:return GB.g(e)}}(),
19
+ h=function(){switch(b.key){case "ArrowUp":return xB(NB.g(e)+d);case "ArrowDown":return xB(NB.g(e)-d);default:return NB.g(e)}}();g=PB(FB.g(c),g,h);var l=$APP.M(g);g=$APP.D(l,FB);h=$APP.D(l,GB);l=$APP.D(l,HB);gC(a,g,h,l,DB.g(c),XB.g(c));eC(a,dC(a));return fC(a,dC(a))}return null},qC=function(a,b){var c=dC(a);if(bC(c)&&$APP.I(pC,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return wB(FB.g(c)+d);case "ArrowLeft":return wB(FB.g(c)-d);case "Home":return 0;
20
+ case "End":return 360;default:return FB.g(c)}}();gC(a,e,GB.g(c),HB.g(c),DB.g(c),XB.g(c));eC(a,dC(a));return fC(a,dC(a))}return null},rC=function(a,b){var c=dC(a);if($APP.n(function(){var g=bC(c);return g?(g=XB.g(c),$APP.n(g)?$APP.I(pC,b.key):g):g}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return yB(DB.g(c)+d);case "ArrowLeft":return yB(DB.g(c)-d);case "Home":return 0;case "End":return 1;default:return DB.g(c)}}();gC(a,FB.g(c),GB.g(c),HB.g(c),
21
+ e,!0);eC(a,dC(a));return fC(a,dC(a))}return null},sC=function(a){var b=dC(a);return bC(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){a.setAttribute("value",c.sRGBHex);return fC(a,dC(a))}).catch(function(){return null}):null},tC=function(a){if($APP.n(a.hasAttribute("open")))return null;a.setAttribute("open","");a=$APP.k(a,"__xColorPickerRefs");if($APP.n(a)){var b=$APP.k(a,"area");return setTimeout(function(){return b.focus()},0)}return null},uC=function(a){return $APP.n(a.hasAttribute("open"))?
22
+ (a.removeAttribute("open"),a=$APP.k(a,"__xColorPickerRefs"),$APP.n(a)?$APP.k(a,"trigger").focus():null):null},vC=function(a){var b=$APP.k(a,"__xColorPickerRefs");if($APP.n(b)){var c=$APP.k(b,"area"),d=$APP.k(b,"hue-strip"),e=$APP.k(b,"alpha-strip"),g=$APP.k(b,"hex-input"),h=$APP.k(b,"swatches"),l=$APP.k(b,"eyedropper"),m=$APP.k(b,"copy"),p=$APP.k(b,"trigger");b=$APP.k(b,"panel");var r=function(ea){var Aa=dC(a);if(bC(Aa)){ea.preventDefault();var $a=$APP.k($APP.k(a,"__xColorPickerRefs"),"area");$a.setPointerCapture(ea.pointerId);
23
+ a.__xColorPickerDragging="area";ea=kC($a,ea);$a=$APP.M(ea);ea=$APP.D($a,jC);$a=$APP.D($a,$APP.mk);ea=PB(FB.g(Aa),ea,$a);var nc=$APP.M(ea);ea=$APP.D(nc,FB);$a=$APP.D(nc,GB);nc=$APP.D(nc,HB);gC(a,ea,$a,nc,DB.g(Aa),XB.g(Aa));Aa=eC(a,dC(a))}else Aa=null;return Aa},v=function(ea){if($APP.B.i("area",$APP.k(a,"__xColorPickerDragging"))){var Aa=dC(a);ea=kC($APP.k($APP.k(a,"__xColorPickerRefs"),"area"),ea);var $a=$APP.M(ea);ea=$APP.D($a,jC);$a=$APP.D($a,$APP.mk);ea=PB(FB.g(Aa),ea,$a);var nc=$APP.M(ea);ea=
24
+ $APP.D(nc,FB);$a=$APP.D(nc,GB);nc=$APP.D(nc,HB);gC(a,ea,$a,nc,DB.g(Aa),XB.g(Aa));Aa=eC(a,dC(a))}else Aa=null;return Aa},x=function(){if($APP.B.i("area",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var ea=fC(a,dC(a))}else ea=null;return ea},y=function(ea){return oC(a,ea)},A=function(ea){var Aa=dC(a);if(bC(Aa)){ea.preventDefault();var $a=$APP.k($APP.k(a,"__xColorPickerRefs"),"hue-strip");$a.setPointerCapture(ea.pointerId);a.__xColorPickerDragging="hue";ea=lC($a,ea);gC(a,ea,GB.g(Aa),
25
+ HB.g(Aa),DB.g(Aa),XB.g(Aa));Aa=eC(a,dC(a))}else Aa=null;return Aa},C=function(ea){if($APP.B.i("hue",$APP.k(a,"__xColorPickerDragging"))){var Aa=dC(a);ea=lC($APP.k($APP.k(a,"__xColorPickerRefs"),"hue-strip"),ea);gC(a,ea,GB.g(Aa),HB.g(Aa),DB.g(Aa),XB.g(Aa));Aa=eC(a,dC(a))}else Aa=null;return Aa},E=function(){if($APP.B.i("hue",$APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var ea=fC(a,dC(a))}else ea=null;return ea},H=function(ea){return qC(a,ea)},G=function(ea){var Aa=dC(a);var $a=
26
+ ($a=bC(Aa))?XB.g(Aa):$a;$APP.n($a)?(ea.preventDefault(),$a=$APP.k($APP.k(a,"__xColorPickerRefs"),"alpha-strip"),$a.setPointerCapture(ea.pointerId),a.__xColorPickerDragging="alpha",ea=mC($a,ea),gC(a,FB.g(Aa),GB.g(Aa),HB.g(Aa),ea,!0),Aa=eC(a,dC(a))):Aa=null;return Aa},J=function(ea){if($APP.B.i("alpha",$APP.k(a,"__xColorPickerDragging"))){var Aa=dC(a);ea=mC($APP.k($APP.k(a,"__xColorPickerRefs"),"alpha-strip"),ea);gC(a,FB.g(Aa),GB.g(Aa),HB.g(Aa),ea,!0);Aa=eC(a,dC(a))}else Aa=null;return Aa},U=function(){if($APP.B.i("alpha",
27
+ $APP.k(a,"__xColorPickerDragging"))){a.__xColorPickerDragging=null;var ea=fC(a,dC(a))}else ea=null;return ea},aa=function(ea){return rC(a,ea)},ta=function(ea){a:{if($APP.B.i("Enter",ea.key)){ea.preventDefault();ea=$APP.k($APP.k(a,"__xColorPickerRefs"),"hex-input");var Aa=ea.value,$a=dC(a);if(bC($a)){if(AB(Aa)){a.setAttribute("value",Aa);ea=fC(a,dC(a));break a}ea=ea.value=ZB.g($a);break a}}ea=null}return ea},Ma=function(ea){a:{var Aa=dC(a);if(bC(Aa)&&(ea=ea.target,$APP.n(ea.hasAttribute("data-color")))){ea=
28
+ ea.getAttribute("data-color");a.setAttribute("value",ea);ea=fC(a,dC(a));break a}ea=null}return ea},Za=function(){return sC(a)},ob=function(){var ea=dC(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(ZB.g(ea)):null},pb=function(){var ea=dC(a);return $APP.B.i("popover",$APP.Oj.g(ea))&&$APP.q($APP.X.g(ea))?$APP.n($APP.fn.g(ea))?uC(a):tC(a):null},Bb=function(ea){$APP.B.i("Escape",ea.key)&&$APP.B.i("popover",$APP.Oj.g(dC(a)))?(ea.preventDefault(),ea.stopPropagation(),ea=uC(a)):ea=null;
29
+ return ea},bc=function(ea){return ea.stopPropagation()},rb=function(ea){return $APP.n(a.hasAttribute("open"))?$APP.n(ea.composedPath().some(function(Aa){return Aa===a}))?null:uC(a):null};c.addEventListener("pointerdown",r);c.addEventListener("pointermove",v);c.addEventListener("pointerup",x);c.addEventListener("keydown",y);d.addEventListener("pointerdown",A);d.addEventListener("pointermove",C);d.addEventListener("pointerup",E);d.addEventListener("keydown",H);e.addEventListener("pointerdown",G);e.addEventListener("pointermove",
30
+ J);e.addEventListener("pointerup",U);e.addEventListener("keydown",aa);g.addEventListener("keydown",ta);h.addEventListener("click",Ma);l.addEventListener("click",Za);m.addEventListener("click",ob);p.addEventListener("click",pb);b.addEventListener("keydown",Bb);b.addEventListener("pointerdown",bc);document.addEventListener("pointerdown",rb,!0);$APP.Mg(a,"__xColorPickerHandlers",{"area-move":v,copy:ob,"panel-key":Bb,"alpha-up":U,"hue-up":E,"alpha-key":aa,"alpha-move":J,"hex-key":ta,swatch:Ma,"area-up":x,
31
+ "alpha-down":G,"area-key":y,"hue-down":A,"hue-key":H,"hue-move":C,eyedrop:Za,"panel-pd":bc,trigger:pb,"doc-click":rb,"area-down":r})}},wC=function(a){var b=$APP.k(a,"__xColorPickerRefs"),c=$APP.k(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){var d=$APP.k(b,"area"),e=$APP.k(b,"hue-strip"),g=$APP.k(b,"alpha-strip"),h=$APP.k(b,"hex-input"),l=$APP.k(b,"swatches"),m=$APP.k(b,"eyedropper"),p=$APP.k(b,"copy"),r=$APP.k(b,"trigger");b=$APP.k(b,"panel");d.removeEventListener("pointerdown",$APP.k(c,
32
+ "area-down"));d.removeEventListener("pointermove",$APP.k(c,"area-move"));d.removeEventListener("pointerup",$APP.k(c,"area-up"));d.removeEventListener("keydown",$APP.k(c,"area-key"));e.removeEventListener("pointerdown",$APP.k(c,"hue-down"));e.removeEventListener("pointermove",$APP.k(c,"hue-move"));e.removeEventListener("pointerup",$APP.k(c,"hue-up"));e.removeEventListener("keydown",$APP.k(c,"hue-key"));g.removeEventListener("pointerdown",$APP.k(c,"alpha-down"));g.removeEventListener("pointermove",
33
+ $APP.k(c,"alpha-move"));g.removeEventListener("pointerup",$APP.k(c,"alpha-up"));g.removeEventListener("keydown",$APP.k(c,"alpha-key"));h.removeEventListener("keydown",$APP.k(c,"hex-key"));l.removeEventListener("click",$APP.k(c,"swatch"));m.removeEventListener("click",$APP.k(c,"eyedrop"));p.removeEventListener("click",$APP.k(c,"copy"));r.removeEventListener("click",$APP.k(c,"trigger"));b.removeEventListener("keydown",$APP.k(c,"panel-key"));b.removeEventListener("pointerdown",$APP.k(c,"panel-pd"));
34
+ document.removeEventListener("pointerdown",$APP.k(c,"doc-click"),!0);a.__xColorPickerHandlers=null}else return null},xC=function(a,b){$APP.Pg(a,"disabled",$APP.F(b));return iC(a)},yC=function(a){a.setAttribute("value","#000000");return iC(a)},zC=function(a){if(!$APP.n($APP.k(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),c=cC("style"),d=cC("div"),e=cC("button"),g=cC("span"),h=cC("div"),l=cC("div"),m=cC("div"),p=cC("div"),r=cC("div"),v=cC("div"),x=cC("div"),y=cC("div"),A=cC("div"),C=
35
+ cC("div"),E=cC("div"),H=cC("span"),G=cC("input"),J=cC("button"),U=cC("button"),aa=cC("div");c.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
36
+ d.setAttribute("part","container");e.setAttribute("part","trigger");e.setAttribute("type","button");e.setAttribute("aria-label","Pick color");g.setAttribute("part","trigger-swatch");h.setAttribute("part","panel");l.setAttribute("part","area");l.setAttribute("role","slider");l.setAttribute("tabindex","0");l.setAttribute("aria-label","Color");m.setAttribute("part","area-thumb");p.setAttribute("part","strips");r.setAttribute("part","hue-strip");r.setAttribute("role","slider");r.setAttribute("tabindex",
37
+ "0");r.setAttribute("aria-label","Hue");r.setAttribute("aria-valuemin","0");r.setAttribute("aria-valuemax","360");v.setAttribute("part","hue-thumb");x.setAttribute("part","alpha-strip");x.setAttribute("role","slider");x.setAttribute("tabindex","0");x.setAttribute("aria-label","Opacity");x.setAttribute("aria-valuemin","0");x.setAttribute("aria-valuemax","100");y.setAttribute("part","alpha-gradient");A.setAttribute("part","alpha-thumb");C.setAttribute("part","controls");E.setAttribute("part","preview");
38
+ H.setAttribute("part","preview-color");G.setAttribute("part","hex-input");G.setAttribute("type","text");G.setAttribute("spellcheck","false");G.setAttribute("autocomplete","off");G.setAttribute("aria-label","Hex color value");J.setAttribute("part","eyedropper");J.setAttribute("type","button");J.setAttribute("aria-label","Pick color from screen");J.innerHTML='\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';
39
+ U.setAttribute("part","copy");U.setAttribute("type","button");U.setAttribute("aria-label","Copy color value");U.innerHTML='\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';aa.setAttribute("part",
40
+ "swatches");aa.setAttribute("role","listbox");aa.setAttribute("aria-label","Preset colors");e.appendChild(g);l.appendChild(m);r.appendChild(v);x.appendChild(y);x.appendChild(A);p.appendChild(r);p.appendChild(x);E.appendChild(H);C.appendChild(E);C.appendChild(G);C.appendChild(J);C.appendChild(U);h.appendChild(l);h.appendChild(p);h.appendChild(C);h.appendChild(aa);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);typeof EyeDropper==="undefined"&&(J.style.display="none");a.__xColorPickerRefs=
41
+ {"alpha-thumb":A,copy:U,swatches:aa,"hue-strip":r,controls:C,"alpha-gradient":y,panel:h,preview:E,"area-thumb":m,"preview-color":H,container:d,area:l,"hue-thumb":v,"trigger-swatch":g,trigger:e,"alpha-strip":x,eyedropper:J,"hex-input":G};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xColorPickerInternals=b)}wC(a);vC(a);return iC(a)},AC=function(a){return wC(a)},BC=function(a){return iC(a)},CC=function(a){$APP.Sg(a,"disabled","disabled");$APP.Sg(a,"readOnly","readonly");$APP.Sg(a,"alpha","alpha");
42
+ $APP.Sg(a,"open","open");$APP.Ug(a,"value","value");$APP.Ug(a,"swatches","swatches");$APP.Ug(a,"name","name");$APP.Ug(a,"mode","mode");return $APP.Ug(a,"label","label")},EC=function(){return $APP.Lg("x-color-picker",new $APP.Q(null,8,[$APP.Cg,DC,$APP.Dg,zC,$APP.Eg,AC,$APP.Fg,BC,$APP.Gg,!0,$APP.Hg,xC,$APP.Ig,yC,$APP.Jg,CC],null))},WB=new $APP.K(null,"alpha","alpha",-1574982441),ZB=new $APP.K(null,"hex-full","hex-full",-1466644518),VB=new $APP.K(null,"swatches","swatches",2033601707),NB=new $APP.K(null,
43
+ "v","v",21465059),GB=new $APP.K(null,"s","s",1705939918),BB=new $APP.K(null,"r","r",-471384190),XB=new $APP.K(null,"alpha?","alpha?",1329751525),HB=new $APP.K(null,"l","l",1395893423),FB=new $APP.K(null,"h","h",1109658740),CB=new $APP.K(null,"b","b",1482224470),jC=new $APP.K(null,"sat","sat",1064662667),DB=new $APP.K(null,"a","a",-2123407586),YB=new $APP.K(null,"hex","hex",41691346);var SB=new $APP.R(null,new $APP.Q(null,2,["inline",null,"popover",null],null),null),DC="value alpha swatches disabled readonly name mode open label".split(" ");
44
+ $APP.zf([$APP.Hm,$APP.kk,$APP.Sj,$APP.pj,$APP.Oj,VB,$APP.Mm,$APP.T,WB],[new $APP.Q(null,2,[$APP.Z,$APP.uk,$APP.$k,"open"],null),new $APP.Q(null,2,[$APP.Z,$APP.uk,$APP.$k,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"mode"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"swatches"],null),new $APP.Q(null,2,[$APP.Z,$APP.uk,$APP.$k,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,
45
+ $APP.$k,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.uk,$APP.$k,"alpha"],null)]);$APP.Pd(["x-color-picker-input",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,5,[$APP.pj,$APP.Y,FB,$APP.W,GB,$APP.W,HB,$APP.W,DB,$APP.W],null),$APP.Km,!1],null),"x-color-picker-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,5,[$APP.pj,$APP.Y,FB,$APP.W,GB,$APP.W,HB,$APP.W,DB,$APP.W],null),$APP.Km,!0],null)]);var zB=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var nC=new $APP.R(null,new $APP.Q(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),pC=new $APP.R(null,new $APP.Q(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null);$APP.ha("baredom.exports.x_color_picker.init",EC);export const init=EC;
@@ -3,6 +3,7 @@
3
3
  export function init(): void;
4
4
 
5
5
  export interface XComboboxEventMap {
6
+ "x-combobox-change-request": CustomEvent<{ value: string; label: string; previousValue: string }>;
6
7
  "x-combobox-change": CustomEvent<{ value: string; label: string }>;
7
8
  "x-combobox-input": CustomEvent<{ query: string }>;
8
9
  "x-combobox-toggle": CustomEvent<{ open: boolean; source: string }>;