@vanelsas/baredom 4.12.0 → 4.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +11 -5
  3. package/dist/baremirror-alpha.js +41 -40
  4. package/dist/base.js +532 -537
  5. package/dist/integrity.json +112 -112
  6. package/dist/x-alert.js +17 -17
  7. package/dist/x-avatar-group.js +10 -10
  8. package/dist/x-avatar.js +11 -11
  9. package/dist/x-badge.js +9 -9
  10. package/dist/x-bento-grid.js +6 -6
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +17 -17
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.js +40 -40
  15. package/dist/x-cancel-dialogue.js +16 -16
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +33 -33
  18. package/dist/x-chart.js +47 -47
  19. package/dist/x-checkbox.js +1 -1
  20. package/dist/x-chip.js +1 -1
  21. package/dist/x-code.js +28 -28
  22. package/dist/x-collapse.js +11 -11
  23. package/dist/x-color-picker.js +43 -43
  24. package/dist/x-combobox.js +34 -34
  25. package/dist/x-command-palette.js +30 -30
  26. package/dist/x-confetti.js +22 -22
  27. package/dist/x-container.js +6 -6
  28. package/dist/x-context-menu.js +19 -19
  29. package/dist/x-copy.js +1 -1
  30. package/dist/x-currency-field.js +22 -22
  31. package/dist/x-date-picker.js +43 -43
  32. package/dist/x-divider.js +7 -7
  33. package/dist/x-drag-panel.js +31 -31
  34. package/dist/x-drawer.js +12 -12
  35. package/dist/x-drop-zone.js +11 -11
  36. package/dist/x-dropdown.js +12 -12
  37. package/dist/x-fieldset.js +5 -5
  38. package/dist/x-file-download.js +13 -13
  39. package/dist/x-file-upload.js +23 -23
  40. package/dist/x-floating-panel.js +21 -21
  41. package/dist/x-form-field.js +16 -16
  42. package/dist/x-form.js +9 -9
  43. package/dist/x-gaussian-blur.js +13 -13
  44. package/dist/x-grid.js +8 -8
  45. package/dist/x-i18n-provider.js +7 -7
  46. package/dist/x-i18n.js +4 -4
  47. package/dist/x-icon.js +7 -7
  48. package/dist/x-image.js +18 -18
  49. package/dist/x-kbd.js +13 -13
  50. package/dist/x-kinetic-canvas.js +24 -24
  51. package/dist/x-kinetic-font.js +26 -26
  52. package/dist/x-kinetic-typography.js +34 -34
  53. package/dist/x-liquid-dock.js +29 -29
  54. package/dist/x-liquid-fill.js +30 -30
  55. package/dist/x-liquid-glass.js +27 -27
  56. package/dist/x-menu-item.js +9 -9
  57. package/dist/x-menu.js +10 -10
  58. package/dist/x-metaball-cursor.js +25 -25
  59. package/dist/x-modal.js +13 -13
  60. package/dist/x-morph-stack.js +37 -37
  61. package/dist/x-multi-combobox.js +43 -43
  62. package/dist/x-navbar.js +14 -14
  63. package/dist/x-neural-glow.js +23 -23
  64. package/dist/x-notification-center.js +9 -9
  65. package/dist/x-organic-divider.js +15 -15
  66. package/dist/x-organic-progress.js +29 -29
  67. package/dist/x-organic-shape.js +12 -12
  68. package/dist/x-otp-input.js +21 -21
  69. package/dist/x-pagination.js +18 -18
  70. package/dist/x-particle-button.js +45 -45
  71. package/dist/x-popover.js +26 -26
  72. package/dist/x-progress-circle.js +6 -6
  73. package/dist/x-progress.js +7 -7
  74. package/dist/x-proximity-list.js +20 -20
  75. package/dist/x-radio.js +13 -13
  76. package/dist/x-range-slider.js +29 -29
  77. package/dist/x-rating.js +23 -23
  78. package/dist/x-ripple-effect.js +8 -8
  79. package/dist/x-scroll-parallax.js +17 -17
  80. package/dist/x-scroll-stack.js +17 -17
  81. package/dist/x-scroll-story.js +32 -32
  82. package/dist/x-scroll-timeline.js +49 -49
  83. package/dist/x-scroll.js +34 -34
  84. package/dist/x-search-field.js +1 -1
  85. package/dist/x-select.js +1 -1
  86. package/dist/x-sidebar.js +16 -16
  87. package/dist/x-skeleton-group.js +14 -14
  88. package/dist/x-skeleton.js +1 -1
  89. package/dist/x-slider.js +17 -17
  90. package/dist/x-soft-body.js +16 -16
  91. package/dist/x-spacer.js +3 -3
  92. package/dist/x-spinner.js +4 -4
  93. package/dist/x-splash.js +13 -13
  94. package/dist/x-split-pane.js +14 -14
  95. package/dist/x-spotlight-card.js +12 -12
  96. package/dist/x-stat.js +9 -9
  97. package/dist/x-stepper.js +14 -14
  98. package/dist/x-switch.js +12 -12
  99. package/dist/x-tab.js +7 -7
  100. package/dist/x-table-cell.js +19 -19
  101. package/dist/x-table-row.js +8 -8
  102. package/dist/x-table.js +20 -20
  103. package/dist/x-tabs.js +12 -12
  104. package/dist/x-text-area.js +19 -19
  105. package/dist/x-theme.js +26 -26
  106. package/dist/x-timeline-item.js +20 -20
  107. package/dist/x-timeline.js +9 -9
  108. package/dist/x-toast.js +21 -21
  109. package/dist/x-toaster.js +6 -6
  110. package/dist/x-tooltip.js +14 -14
  111. package/dist/x-trace-history.js +116 -115
  112. package/dist/x-typography.js +6 -6
  113. package/dist/x-welcome-tour.js +63 -63
  114. package/package.json +2 -1
package/dist/x-code.js CHANGED
@@ -1,32 +1,32 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var e2=function(a){return $APP.Fc(Yxa,typeof a==="string"?a.trim().toLowerCase():null,"text")},f2=function(a){return $APP.A.j("",a.trim())},Zxa=function(a){return $APP.x($APP.ph(/^[\t ]*/,a))},$xa=function(a){var b=$APP.kf(a.split("\n")),c=$APP.Oe(f2,b),d=$APP.q(c)?$APP.od($APP.dk,$APP.He.j(Zxa,c)):0;return d>0?$APP.Th("\n",$APP.He.j(function(e){return $APP.x(e)>=d?e.substring(d):e},b)):a},aya=function(a){var b=$APP.kf(a.split("\n")),c=$APP.x(b),d=function(){for(var e=0;;)if(e<c&&f2($APP.uc(b,e)))e+=
3
- 1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&f2($APP.uc(b,e)))--e;else return e}();return d<=a?$APP.Th("\n",$APP.rf(b,d,a+1)):""},g2=function(a){return typeof a==="string"?$xa(aya($APP.Sh(a,/\r\n?/,"\n"))):""},h2=function(a){return new RegExp($APP.Zd($APP.N,a))},j2=function(a){return new $APP.J(null,2,[$APP.Mr,$APP.Th("|",$APP.He.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.N.i(b.source)+")"},a)),i2,$APP.fi.j($APP.t,a)],null)},bya=function(a){a=$APP.q(a);for(var b=
4
- $APP.Pe,c=$APP.Pe;;){if(a==null)return $APP.Bd.j(c,b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),g=$APP.kf(f.split("\n")),k=$APP.x(g);if($APP.A.j(k,1))a=$APP.u(a),b=$APP.Bd.j(b,new $APP.H(null,2,5,$APP.I,[e,f],null));else{var n=$APP.u(a),r=new $APP.H(null,1,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[e,$APP.Mc(g)],null)],null);c=$APP.Lf.j($APP.Bd.j(c,$APP.Bd.j(b,new $APP.H(null,2,5,$APP.I,[e,$APP.t(g)],null))),$APP.He.j(function(v,w,y,z,F){return function(M){return new $APP.H(null,1,5,$APP.I,
5
- [new $APP.H(null,2,5,$APP.I,[F,M],null)],null)}}(a,b,c,d,e,f,g,k),$APP.rf(g,1,k-1)));a=n;b=r}}},k2=function(a){var b=$APP.V.j(a,"code");if($APP.m(b))return b;a=a.textContent;return $APP.m(a)?a:""},m2=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.A.j(l2,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.N.i($APP.ah(b));c.textContent=a;return c},n2=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),e=document.createElement("span");
6
- $APP.R(c,"part","line");$APP.R(d,"part","gutter");$APP.R(d,"aria-hidden","true");d.textContent=""+$APP.N.i(b+1);$APP.R(e,"part","line-content");a=$APP.q(a);b=null;for(var f=0,g=0;;)if(g<f){var k=b.C(null,g);$APP.K.j("",$APP.Cc(k))&&e.appendChild(m2(k));g+=1}else if(a=$APP.q(a))b=a,$APP.Wc(b)?(a=$APP.zb(b),g=$APP.Ab(b),b=a,f=$APP.x(a),a=g):(a=$APP.t(b),$APP.K.j("",$APP.Cc(a))&&e.appendChild(m2(a)),a=$APP.u(b),b=null,f=0),g=0;else break;c.appendChild(d);c.appendChild(e);return c},E2=function(a){if($APP.m($APP.l(a,
7
- "__xCodeRefs"))){var b=k2(a);var c=$APP.V.j(a,"language"),d=$APP.l(a,"__xCodeModel"),e=$APP.m(d)?$APP.A.j(g2(b),o2.i(d))&&$APP.A.j(e2(c),p2.i(d)):d;b=$APP.tg([$APP.Ft,q2,r2,s2,t2,u2,v2,w2,x2],[$APP.V.j(a,"filename"),a.hasAttribute("expanded"),$APP.m(e)?r2.i(d):null,a.hasAttribute("wrap"),$APP.V.j(a,"max-lines"),b,a.hasAttribute("show-copy"),a.hasAttribute("line-numbers"),c]);e=$APP.G(b);var f=$APP.C(e,v2);b=$APP.C(e,w2);c=$APP.C(e,x2);var g=$APP.C(e,$APP.Ft),k=$APP.C(e,q2),n=$APP.C(e,r2);d=$APP.C(e,
8
- s2);var r=$APP.C(e,t2);e=$APP.C(e,u2);c=e2(c);e=g2(e);g=typeof g==="string"?g.trim():null;g=$APP.m($APP.m(g)?$APP.K.j("",g):g)?g:"";typeof r==="string"?(r=parseInt(r,10),r=$APP.p(isNaN(r))&&r>0?r:0):r=0;if(!$APP.m(n)){n=""+$APP.N.i(e);var v=y2.i?y2.i(c):y2.call(null,c);v=$APP.G(v);var w=$APP.C(v,$APP.Mr);v=$APP.C(v,i2);if($APP.A.j("",n))n=$APP.Pe;else if($APP.m(w))a:{w=new RegExp(w,"g");for(var y=$APP.x(v),z=$APP.x(n),F=$APP.sb($APP.Pe),M=0;;){var P=w.exec(n);if(P==null){n=$APP.Qd(M<z?$APP.Rd(F,new $APP.H(null,
9
- 2,5,$APP.I,[l2,n.substring(M)],null)):F);break a}var T=P[0],S=P.index;b:{for(var da=1;;){if(da>y){P=1;break b}if(P[da]!=null){P=da;break b}da+=1}P=void 0}P=$APP.uc(v,P-1);da=S>M?new $APP.H(null,2,5,$APP.I,[l2,n.substring(M,S)],null):null;S+=T.length;T.length===0&&(w.lastIndex+=1);$APP.A.j(l2,P)||(F=$APP.m(da)?$APP.tb(F,da):F,T=$APP.Rd(F,new $APP.H(null,2,5,$APP.I,[P,T],null)),M=S,F=T)}n=void 0}else n=new $APP.H(null,1,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[l2,n],null)],null);n=bya(n)}v=$APP.x(n);f=
10
- $APP.D(f);k=$APP.D(k);w=f||$APP.K.j("",g);d=$APP.D(d);b=$APP.D(b);y=$APP.A.j(c,"text")?"":c.toUpperCase();b=$APP.tg([q2,r2,z2,A2,$APP.Zr,s2,p2,o2,v2,w2,B2,C2,D2],[k,n,w,r>0&&v>r,g,d,c,e,f,b,y,v,r]);if($APP.K.j(b,$APP.l(a,"__xCodeModel"))){c=a.style;c.setProperty("--x-code-max-lines",""+$APP.N.i(D2.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.N.i($APP.ek.j(2,(""+$APP.N.i(C2.i(b))).length)));k=$APP.l(a,"__xCodeRefs");c=$APP.l(k,"filename");d=$APP.l(k,"lang");e=$APP.l(k,"cwrap");k=$APP.l(k,
11
- "copy");g=$APP.K.j("",$APP.Zr.i(b));f=!g&&$APP.K.j("",B2.i(b));$APP.Di(a,"data-header",z2.i(b));c.textContent=$APP.Zr.i(b);c.style.display=g?"block":"none";d.textContent=B2.i(b);d.style.display=f?"block":"none";e.style.display=$APP.m(v2.i(b))?"inline-flex":"none";$APP.R(k,"text",o2.i(b));c=$APP.l(a,"__xCodeModel");if($APP.K.j($APP.Ng(b,new $APP.H(null,2,5,$APP.I,[o2,p2],null)),$APP.Ng(c,new $APP.H(null,2,5,$APP.I,[o2,p2],null)))){c=$APP.l($APP.l(a,"__xCodeRefs"),"code");d=document.createDocumentFragment();
12
- e=$APP.q($APP.ve($APP.lp,r2.i(b)));k=null;for(f=g=0;;)if(f<g)n=k.C(null,f),r=$APP.B(n,0,null),n=$APP.B(n,1,null),d.appendChild(n2(n,r)),f+=1;else if(e=$APP.q(e))$APP.Wc(e)?(g=$APP.zb(e),e=$APP.Ab(e),k=g,g=$APP.x(g)):(g=$APP.t(e),k=$APP.B(g,0,null),g=$APP.B(g,1,null),d.appendChild(n2(g,k)),e=$APP.u(e),k=null,g=0),f=0;else break;c.replaceChildren();c.appendChild(d)}c=$APP.l($APP.l(a,"__xCodeRefs"),"expander");e=A2.i(b);d=$APP.m(e)?$APP.p(q2.i(b)):e;$APP.Di(a,"data-collapsible",e);$APP.Di(a,"data-collapsed",
13
- d);$APP.m(d)?(k=$APP.G(b),e=$APP.C(k,C2),k=$APP.C(k,D2),e=$APP.ek.j(0,e-k),e="Show "+$APP.N.i(e)+" more "+$APP.N.i($APP.A.j(1,e)?"line":"lines")):e="Show less";c.textContent=e;$APP.R(c,"aria-expanded",$APP.m(d)?"false":"true");c=$APP.l($APP.l(a,"__xCodeRefs"),"scroll");d=$APP.K.j("",$APP.Zr.i(b))?$APP.Zr.i(b):$APP.K.j("",B2.i(b))?""+$APP.N.i(B2.i(b))+" code":"Code";$APP.R(c,"aria-label",d);a=$APP.Q(a,"__xCodeModel",b)}else a=null;return a}return null},dya=function(a){for(var b=$APP.l(a,"__xCodeRefs"),
2
+ var d2=function(a){return $APP.Fc(Yxa,typeof a==="string"?a.trim().toLowerCase():null,"text")},e2=function(a){return $APP.A.j("",a.trim())},Zxa=function(a){return $APP.x($APP.oh(/^[\t ]*/,a))},$xa=function(a){var b=$APP.jf(a.split("\n")),c=$APP.Ne(e2,b),d=$APP.q(c)?$APP.od($APP.ak,$APP.Ge.j(Zxa,c)):0;return d>0?$APP.Sh("\n",$APP.Ge.j(function(e){return $APP.x(e)>=d?e.substring(d):e},b)):a},aya=function(a){var b=$APP.jf(a.split("\n")),c=$APP.x(b),d=function(){for(var e=0;;)if(e<c&&e2($APP.uc(b,e)))e+=
3
+ 1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&e2($APP.uc(b,e)))--e;else return e}();return d<=a?$APP.Sh("\n",$APP.qf(b,d,a+1)):""},f2=function(a){return typeof a==="string"?$xa(aya($APP.Rh(a,/\r\n?/,"\n"))):""},g2=function(a){return new RegExp($APP.Zd($APP.N,a))},i2=function(a){return new $APP.J(null,2,[$APP.Kr,$APP.Sh("|",$APP.Ge.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.N.i(b.source)+")"},a)),h2,$APP.ei.j($APP.t,a)],null)},bya=function(a){a=$APP.q(a);for(var b=
4
+ $APP.Oe,c=$APP.Oe;;){if(a==null)return $APP.Bd.j(c,b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),g=$APP.jf(f.split("\n")),k=$APP.x(g);if($APP.A.j(k,1))a=$APP.u(a),b=$APP.Bd.j(b,new $APP.H(null,2,5,$APP.I,[e,f],null));else{var n=$APP.u(a),r=new $APP.H(null,1,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[e,$APP.Mc(g)],null)],null);c=$APP.Kf.j($APP.Bd.j(c,$APP.Bd.j(b,new $APP.H(null,2,5,$APP.I,[e,$APP.t(g)],null))),$APP.Ge.j(function(v,w,y,z,F){return function(M){return new $APP.H(null,1,5,$APP.I,
5
+ [new $APP.H(null,2,5,$APP.I,[F,M],null)],null)}}(a,b,c,d,e,f,g,k),$APP.qf(g,1,k-1)));a=n;b=r}}},j2=function(a){var b=$APP.V.j(a,"code");if($APP.m(b))return b;a=a.textContent;return $APP.m(a)?a:""},l2=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.A.j(k2,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.N.i($APP.$g(b));c.textContent=a;return c},m2=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),e=document.createElement("span");
6
+ $APP.R(c,"part","line");$APP.R(d,"part","gutter");$APP.R(d,"aria-hidden","true");d.textContent=""+$APP.N.i(b+1);$APP.R(e,"part","line-content");a=$APP.q(a);b=null;for(var f=0,g=0;;)if(g<f){var k=b.C(null,g);$APP.K.j("",$APP.Cc(k))&&e.appendChild(l2(k));g+=1}else if(a=$APP.q(a))b=a,$APP.Wc(b)?(a=$APP.zb(b),g=$APP.Ab(b),b=a,f=$APP.x(a),a=g):(a=$APP.t(b),$APP.K.j("",$APP.Cc(a))&&e.appendChild(l2(a)),a=$APP.u(b),b=null,f=0),g=0;else break;c.appendChild(d);c.appendChild(e);return c},D2=function(a){if($APP.m($APP.l(a,
7
+ "__xCodeRefs"))){var b=j2(a);var c=$APP.V.j(a,"language"),d=$APP.l(a,"__xCodeModel"),e=$APP.m(d)?$APP.A.j(f2(b),n2.i(d))&&$APP.A.j(d2(c),o2.i(d)):d;b=$APP.sg([$APP.Dt,p2,q2,r2,s2,t2,u2,v2,w2],[$APP.V.j(a,"filename"),a.hasAttribute("expanded"),$APP.m(e)?q2.i(d):null,a.hasAttribute("wrap"),$APP.V.j(a,"max-lines"),b,a.hasAttribute("show-copy"),a.hasAttribute("line-numbers"),c]);e=$APP.G(b);var f=$APP.C(e,u2);b=$APP.C(e,v2);c=$APP.C(e,w2);var g=$APP.C(e,$APP.Dt),k=$APP.C(e,p2),n=$APP.C(e,q2);d=$APP.C(e,
8
+ r2);var r=$APP.C(e,s2);e=$APP.C(e,t2);c=d2(c);e=f2(e);g=typeof g==="string"?g.trim():null;g=$APP.m($APP.m(g)?$APP.K.j("",g):g)?g:"";typeof r==="string"?(r=parseInt(r,10),r=$APP.p(isNaN(r))&&r>0?r:0):r=0;if(!$APP.m(n)){n=""+$APP.N.i(e);var v=x2.i?x2.i(c):x2.call(null,c);v=$APP.G(v);var w=$APP.C(v,$APP.Kr);v=$APP.C(v,h2);if($APP.A.j("",n))n=$APP.Oe;else if($APP.m(w))a:{w=new RegExp(w,"g");for(var y=$APP.x(v),z=$APP.x(n),F=$APP.sb($APP.Oe),M=0;;){var P=w.exec(n);if(P==null){n=$APP.Qd(M<z?$APP.Rd(F,new $APP.H(null,
9
+ 2,5,$APP.I,[k2,n.substring(M)],null)):F);break a}var T=P[0],S=P.index;b:{for(var da=1;;){if(da>y){P=1;break b}if(P[da]!=null){P=da;break b}da+=1}P=void 0}P=$APP.uc(v,P-1);da=S>M?new $APP.H(null,2,5,$APP.I,[k2,n.substring(M,S)],null):null;S+=T.length;T.length===0&&(w.lastIndex+=1);$APP.A.j(k2,P)||(F=$APP.m(da)?$APP.tb(F,da):F,T=$APP.Rd(F,new $APP.H(null,2,5,$APP.I,[P,T],null)),M=S,F=T)}n=void 0}else n=new $APP.H(null,1,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[k2,n],null)],null);n=bya(n)}v=$APP.x(n);f=
10
+ $APP.D(f);k=$APP.D(k);w=f||$APP.K.j("",g);d=$APP.D(d);b=$APP.D(b);y=$APP.A.j(c,"text")?"":c.toUpperCase();b=$APP.sg([p2,q2,y2,z2,$APP.Xr,r2,o2,n2,u2,v2,A2,B2,C2],[k,n,w,r>0&&v>r,g,d,c,e,f,b,y,v,r]);if($APP.K.j(b,$APP.l(a,"__xCodeModel"))){c=a.style;c.setProperty("--x-code-max-lines",""+$APP.N.i(C2.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.N.i($APP.bk.j(2,(""+$APP.N.i(B2.i(b))).length)));k=$APP.l(a,"__xCodeRefs");c=$APP.l(k,"filename");d=$APP.l(k,"lang");e=$APP.l(k,"cwrap");k=$APP.l(k,
11
+ "copy");g=$APP.K.j("",$APP.Xr.i(b));f=!g&&$APP.K.j("",A2.i(b));$APP.Ci(a,"data-header",y2.i(b));c.textContent=$APP.Xr.i(b);c.style.display=g?"block":"none";d.textContent=A2.i(b);d.style.display=f?"block":"none";e.style.display=$APP.m(u2.i(b))?"inline-flex":"none";$APP.R(k,"text",n2.i(b));c=$APP.l(a,"__xCodeModel");if($APP.K.j($APP.Mg(b,new $APP.H(null,2,5,$APP.I,[n2,o2],null)),$APP.Mg(c,new $APP.H(null,2,5,$APP.I,[n2,o2],null)))){c=$APP.l($APP.l(a,"__xCodeRefs"),"code");d=document.createDocumentFragment();
12
+ e=$APP.q($APP.ue($APP.jp,q2.i(b)));k=null;for(f=g=0;;)if(f<g)n=k.C(null,f),r=$APP.B(n,0,null),n=$APP.B(n,1,null),d.appendChild(m2(n,r)),f+=1;else if(e=$APP.q(e))$APP.Wc(e)?(g=$APP.zb(e),e=$APP.Ab(e),k=g,g=$APP.x(g)):(g=$APP.t(e),k=$APP.B(g,0,null),g=$APP.B(g,1,null),d.appendChild(m2(g,k)),e=$APP.u(e),k=null,g=0),f=0;else break;c.replaceChildren();c.appendChild(d)}c=$APP.l($APP.l(a,"__xCodeRefs"),"expander");e=z2.i(b);d=$APP.m(e)?$APP.p(p2.i(b)):e;$APP.Ci(a,"data-collapsible",e);$APP.Ci(a,"data-collapsed",
13
+ d);$APP.m(d)?(k=$APP.G(b),e=$APP.C(k,B2),k=$APP.C(k,C2),e=$APP.bk.j(0,e-k),e="Show "+$APP.N.i(e)+" more "+$APP.N.i($APP.A.j(1,e)?"line":"lines")):e="Show less";c.textContent=e;$APP.R(c,"aria-expanded",$APP.m(d)?"false":"true");c=$APP.l($APP.l(a,"__xCodeRefs"),"scroll");d=$APP.K.j("",$APP.Xr.i(b))?$APP.Xr.i(b):$APP.K.j("",A2.i(b))?""+$APP.N.i(A2.i(b))+" code":"Code";$APP.R(c,"aria-label",d);a=$APP.Q(a,"__xCodeModel",b)}else a=null;return a}return null},dya=function(a){for(var b=$APP.l(a,"__xCodeRefs"),
14
14
  c=$APP.q(cya),d=null,e=0,f=0;;)if(f<e){var g=d.C(null,f),k=$APP.B(g,0,null),n=$APP.B(g,1,null),r=$APP.B(g,2,null),v=$APP.l(b,k);v.addEventListener(n,function(z,F,M,P,T,S,da,oa,la){return function(qa){return la.j?la.j(a,qa):la.call(null,a,qa)}}(c,d,e,f,v,g,k,n,r,b));f+=1}else if(v=$APP.q(c)){g=v;if($APP.Wc(g))c=$APP.zb(g),f=$APP.Ab(g),d=c,e=$APP.x(c),c=f;else{var w=$APP.t(g);k=$APP.B(w,0,null);n=$APP.B(w,1,null);r=$APP.B(w,2,null);var y=$APP.l(b,k);y.addEventListener(n,function(z,F,M,P,T,S,da,oa,la){return function(qa){return la.j?
15
- la.j(a,qa):la.call(null,a,qa)}}(c,d,e,f,y,w,k,n,r,g,v,b));c=$APP.u(g);d=null;e=0}f=0}else break},eya=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.m(b))return b;b=new MutationObserver(function(){return E2(a)});$APP.Q(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},fya=function(a){$APP.Wi(a,"language","language","");$APP.Wi(a,"filename","filename","");$APP.Ti(a,"showCopy","show-copy");$APP.Ti(a,"lineNumbers","line-numbers");$APP.Ti(a,"wrap",
16
- "wrap");$APP.Ti(a,"expanded","expanded");$APP.Yi(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return k2(this)},set:function(b){return b!=null?$APP.R(this,"code",""+$APP.N.i(b)):$APP.U(this,"code")}});Object.defineProperty(a,"expand",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.R(this,"expanded","")}});return Object.defineProperty(a,"collapse",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.U(this,
15
+ la.j(a,qa):la.call(null,a,qa)}}(c,d,e,f,y,w,k,n,r,g,v,b));c=$APP.u(g);d=null;e=0}f=0}else break},eya=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.m(b))return b;b=new MutationObserver(function(){return D2(a)});$APP.Q(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},fya=function(a){$APP.Vi(a,"language","language","");$APP.Vi(a,"filename","filename","");$APP.Si(a,"showCopy","show-copy");$APP.Si(a,"lineNumbers","line-numbers");$APP.Si(a,"wrap",
16
+ "wrap");$APP.Si(a,"expanded","expanded");$APP.Xi(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return j2(this)},set:function(b){return b!=null?$APP.R(this,"code",""+$APP.N.i(b)):$APP.U(this,"code")}});Object.defineProperty(a,"expand",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.R(this,"expanded","")}});return Object.defineProperty(a,"collapse",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.U(this,
17
17
  "expanded")}})},jya=function(a){if(!$APP.m($APP.l(a,"__xCodeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div");var e=document.createElement("div");var f=document.createElement("span"),g=document.createElement("span"),k=document.createElement("span"),n=document.createElement("x-copy");$APP.R(e,"part","header");$APP.R(f,"part","filename");$APP.R(g,"part","language");$APP.R(k,"part","copy-wrap");$APP.R(n,"part","copy");$APP.R(n,"show-tooltip",
18
- "false");n.appendChild(document.createTextNode("Copy"));k.appendChild(n);e.appendChild(f);e.appendChild(g);e.appendChild(k);e=new $APP.J(null,5,[$APP.rq,e,$APP.Zr,f,F2,g,G2,k,$APP.Ps,n],null);f=document.createElement("div");g=document.createElement("div");k=document.createElement("pre");n=document.createElement("code");var r=document.createElement("div");$APP.R(f,"part","body");$APP.R(g,"part","scroll");$APP.R(g,"role","region");$APP.R(g,"tabindex","0");$APP.R(k,"part","pre");$APP.R(n,"part","code");
19
- $APP.R(r,"part","fade");$APP.R(r,"aria-hidden","true");k.appendChild(n);g.appendChild(k);f.appendChild(g);f.appendChild(r);f=new $APP.J(null,5,[$APP.uq,f,$APP.Au,g,gya,k,o2,n,hya,r],null);g=document.createElement("button");$APP.R(g,"part","expander");$APP.R(g,"type","button");c.textContent=iya;$APP.R(d,"part","container");d.appendChild($APP.rq.i(e));d.appendChild($APP.uq.i(f));d.appendChild(g);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xCodeRefs",{filename:$APP.Zr.i(e),lang:F2.i(e),cwrap:G2.i(e),
20
- copy:$APP.Ps.i(e),scroll:$APP.Au.i(f),code:o2.i(f),expander:g});dya(a)}eya(a);return E2(a)},kya=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.m(a)?a.disconnect():null},lya=function(a,b,c,d){return $APP.K.j(c,d)?E2(a):null},H2=function(){$APP.pn();return $APP.Gj("x-code",new $APP.J(null,5,[$APP.Fj,mya,$APP.Dj,jya,$APP.mj,kya,$APP.lj,lya,$APP.Ej,fya],null))},l2=new $APP.E(null,"plain","plain",1368629269),u2=new $APP.E(null,"code-raw","code-raw",1397705045),nya=new $APP.E(null,"attr-value","attr-value",
21
- 2093232352),s2=new $APP.E(null,"wrap?","wrap?",-1677427054),G2=new $APP.E(null,"cwrap","cwrap",-648244090),i2=new $APP.E(null,"types","types",590030639),oya=new $APP.E(null,"expanded","expanded",-3020742),p2=new $APP.E(null,"language","language",-1591107564),v2=new $APP.E(null,"show-copy?","show-copy?",604953882),I2=new $APP.E(null,"keyword","keyword",811389747),o2=new $APP.E(null,"code","code",1586293142),x2=new $APP.E(null,"language-raw","language-raw",-402825953),w2=new $APP.E(null,"line-numbers?",
22
- "line-numbers?",1919907771),pya=new $APP.E(null,"entity","entity",-450970276),J2=new $APP.E(null,"punct","punct",1807261997),t2=new $APP.E(null,"max-lines-raw","max-lines-raw",-947227469),F2=new $APP.E(null,"lang","lang",-1819677104),r2=new $APP.E(null,"lines","lines",-700165781),qya=new $APP.E(null,"property","property",-1114278232),z2=new $APP.E(null,"header?","header?",-106649173),K2=new $APP.E(null,"comment","comment",532206069),L2=new $APP.E(null,"string","string",-1989541586),rya=new $APP.E(null,
23
- "atrule","atrule",-521152778),q2=new $APP.E(null,"expanded?","expanded?",2055832296),A2=new $APP.E(null,"collapsible?","collapsible?",-1508197779),D2=new $APP.E(null,"max-lines","max-lines",-125998785),hya=new $APP.E(null,"fade","fade",1167694157),B2=new $APP.E(null,"language-label","language-label",-733379621),C2=new $APP.E(null,"line-count","line-count",871713181),gya=new $APP.E(null,"pre","pre",2118456869);var mya="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),Yxa=$APP.tg(" json js cljc xml clojure mjs cljs css clj svg jsx htm text plain txt javascript bb html edn".split(" "),"text json js clojure html clojure js clojure css clojure html js html text text text js clojure html clojure".split(" "));
24
- $APP.fe(["x-code-copy",new $APP.J(null,2,[$APP.zs,!1,$APP.Li,new $APP.J(null,1,[o2,$APP.X],null)],null),"x-code-toggle",new $APP.J(null,2,[$APP.zs,!1,$APP.Li,new $APP.J(null,1,[oya,$APP.aj],null)],null)]);
25
- var sya=new $APP.H(null,6,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[K2,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.H(null,2,5,$APP.I,[$APP.lw,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.H(null,2,5,$APP.I,[L2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.H(null,2,5,$APP.I,[I2,/\b(?:const|let|var|function|return|if|else|for|while|do|switch|case|break|continue|new|delete|typeof|instanceof|class|extends|super|this|import|export|from|as|default|try|catch|finally|throw|async|await|yield|void|null|undefined|true|false|NaN|Infinity)\b/],null),
26
- new $APP.H(null,2,5,$APP.I,[$APP.Cp,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.I,[J2,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null),tya=new $APP.H(null,5,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[$APP.hi,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.H(null,2,5,$APP.I,[L2,/"(?:[^"\\]|\\.)*"/],null),new $APP.H(null,2,5,$APP.I,[$APP.Cp,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.I,[I2,/\b(?:true|false|null)\b/],null),new $APP.H(null,
27
- 2,5,$APP.I,[J2,/[{}\[\]:,]/],null)],null),uya=new $APP.H(null,6,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[K2,/\/\*[\s\S]*?\*\//],null),new $APP.H(null,2,5,$APP.I,[L2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.H(null,2,5,$APP.I,[rya,/@[\w-]+/],null),new $APP.H(null,2,5,$APP.I,[qya,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.H(null,2,5,$APP.I,[$APP.Cp,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.H(null,2,5,$APP.I,[J2,/[{}();:,]/],null)],null),vya=new $APP.H(null,6,5,$APP.I,
28
- [new $APP.H(null,2,5,$APP.I,[K2,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.H(null,2,5,$APP.I,[$APP.au,/<![^>]*>/],null),new $APP.H(null,2,5,$APP.I,[$APP.au,/<\/?[A-Za-z][\w-]*/],null),new $APP.H(null,2,5,$APP.I,[nya,/"[^"]*"|'[^']*'/],null),new $APP.H(null,2,5,$APP.I,[pya,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.H(null,2,5,$APP.I,[J2,/[<>\/=]/],null)],null),wya=$APP.ef("def defn defn- defmacro defmulti defmethod defonce defprotocol defrecord deftype deftest fn let letfn loop recur do quote var new set! binding if if-not if-let if-some when when-not when-let when-some when-first cond condp case and or not doseq dotimes for while try catch finally throw ns true false nil".split(" "),
29
- !0),M2="(?!"+$APP.N.i("[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]")+")",xya=new $APP.H(null,7,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[K2,/;[^\n]*/],null),new $APP.H(null,2,5,$APP.I,[L2,/#?"(?:[^"\\]|\\[\s\S])*"|\\(?:newline|space|tab|formfeed|backspace|return|u[0-9a-fA-F]{4}|o[0-7]{1,3}|\S)/],null),new $APP.H(null,2,5,$APP.I,[$APP.hi,h2($APP.zc(["::?","[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]","+"]))],null),new $APP.H(null,2,5,$APP.I,[$APP.Cp,h2($APP.zc(["[+-]?(?:0[xX][0-9a-fA-F]+|\\d+/\\d+|\\d+\\.?\\d*(?:[eE][+-]?\\d+)?)[MN]?",
30
- M2]))],null),new $APP.H(null,2,5,$APP.I,[I2,h2($APP.zc(["(?:",$APP.Th("|",wya),")",M2]))],null),new $APP.H(null,2,5,$APP.I,[l2,h2($APP.zc(["[A-Za-z_*+!?\x3c\x3e\x3d.$\x26%-]","[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]","*"]))],null),new $APP.H(null,2,5,$APP.I,[J2,/[()\[\]{}'`~@^#]/],null)],null),y2=$APP.fe(["js",j2(sya),"json",j2(tya),"css",j2(uya),"html",j2(vya),"clojure",j2(xya)]);var iya=":host{display:block;color-scheme:light dark;--x-code-bg:var(--x-color-surface,#f6f8fa);--x-code-fg:var(--x-color-text,#1f2328);--x-code-border:var(--x-color-border,#d0d7de);--x-code-muted:var(--x-color-text-muted,#656d76);--x-code-radius:var(--x-radius-md,8px);--x-code-font:var(--x-font-family-mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);--x-code-font-size:var(--x-font-size-sm,0.8125rem);--x-code-line-height:1.6;--x-code-tab-size:2;--x-code-accent:var(--x-color-primary,#0969da);--x-code-token-comment:#6a737d;--x-code-token-string:#0a7d33;--x-code-token-template:#0a7d33;--x-code-token-keyword:#cf222e;--x-code-token-number:#0550ae;--x-code-token-punct:#57606a;--x-code-token-key:#0550ae;--x-code-token-atrule:#cf222e;--x-code-token-property:#0550ae;--x-code-token-tag:#116329;--x-code-token-attr-value:#0a3069;--x-code-token-entity:#0550ae;}"+
18
+ "false");n.appendChild(document.createTextNode("Copy"));k.appendChild(n);e.appendChild(f);e.appendChild(g);e.appendChild(k);e=new $APP.J(null,5,[$APP.pq,e,$APP.Xr,f,E2,g,F2,k,$APP.Ns,n],null);f=document.createElement("div");g=document.createElement("div");k=document.createElement("pre");n=document.createElement("code");var r=document.createElement("div");$APP.R(f,"part","body");$APP.R(g,"part","scroll");$APP.R(g,"role","region");$APP.R(g,"tabindex","0");$APP.R(k,"part","pre");$APP.R(n,"part","code");
19
+ $APP.R(r,"part","fade");$APP.R(r,"aria-hidden","true");k.appendChild(n);g.appendChild(k);f.appendChild(g);f.appendChild(r);f=new $APP.J(null,5,[$APP.sq,f,$APP.yu,g,gya,k,n2,n,hya,r],null);g=document.createElement("button");$APP.R(g,"part","expander");$APP.R(g,"type","button");c.textContent=iya;$APP.R(d,"part","container");d.appendChild($APP.pq.i(e));d.appendChild($APP.sq.i(f));d.appendChild(g);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xCodeRefs",{filename:$APP.Xr.i(e),lang:E2.i(e),cwrap:F2.i(e),
20
+ copy:$APP.Ns.i(e),scroll:$APP.yu.i(f),code:n2.i(f),expander:g});dya(a)}eya(a);return D2(a)},kya=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.m(a)?a.disconnect():null},lya=function(a,b,c,d){return $APP.K.j(c,d)?D2(a):null},G2=function(){$APP.nn();return $APP.Fj("x-code",new $APP.J(null,5,[$APP.Ej,mya,$APP.Cj,jya,$APP.lj,kya,$APP.kj,lya,$APP.Dj,fya],null))},k2=new $APP.E(null,"plain","plain",1368629269),t2=new $APP.E(null,"code-raw","code-raw",1397705045),nya=new $APP.E(null,"attr-value","attr-value",
21
+ 2093232352),r2=new $APP.E(null,"wrap?","wrap?",-1677427054),F2=new $APP.E(null,"cwrap","cwrap",-648244090),h2=new $APP.E(null,"types","types",590030639),oya=new $APP.E(null,"expanded","expanded",-3020742),o2=new $APP.E(null,"language","language",-1591107564),u2=new $APP.E(null,"show-copy?","show-copy?",604953882),H2=new $APP.E(null,"keyword","keyword",811389747),n2=new $APP.E(null,"code","code",1586293142),w2=new $APP.E(null,"language-raw","language-raw",-402825953),v2=new $APP.E(null,"line-numbers?",
22
+ "line-numbers?",1919907771),pya=new $APP.E(null,"entity","entity",-450970276),I2=new $APP.E(null,"punct","punct",1807261997),s2=new $APP.E(null,"max-lines-raw","max-lines-raw",-947227469),E2=new $APP.E(null,"lang","lang",-1819677104),q2=new $APP.E(null,"lines","lines",-700165781),qya=new $APP.E(null,"property","property",-1114278232),y2=new $APP.E(null,"header?","header?",-106649173),J2=new $APP.E(null,"comment","comment",532206069),K2=new $APP.E(null,"string","string",-1989541586),rya=new $APP.E(null,
23
+ "atrule","atrule",-521152778),p2=new $APP.E(null,"expanded?","expanded?",2055832296),z2=new $APP.E(null,"collapsible?","collapsible?",-1508197779),C2=new $APP.E(null,"max-lines","max-lines",-125998785),hya=new $APP.E(null,"fade","fade",1167694157),A2=new $APP.E(null,"language-label","language-label",-733379621),B2=new $APP.E(null,"line-count","line-count",871713181),gya=new $APP.E(null,"pre","pre",2118456869);var mya="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),Yxa=$APP.sg(" json js cljc xml clojure mjs cljs css clj svg jsx htm text plain txt javascript bb html edn".split(" "),"text json js clojure html clojure js clojure css clojure html js html text text text js clojure html clojure".split(" "));
24
+ $APP.fe(["x-code-copy",new $APP.J(null,2,[$APP.hs,!1,$APP.Ki,new $APP.J(null,1,[n2,$APP.X],null)],null),"x-code-toggle",new $APP.J(null,2,[$APP.hs,!1,$APP.Ki,new $APP.J(null,1,[oya,$APP.$i],null)],null)]);
25
+ var sya=new $APP.H(null,6,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[J2,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.H(null,2,5,$APP.I,[$APP.jw,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.H(null,2,5,$APP.I,[K2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.H(null,2,5,$APP.I,[H2,/\b(?:const|let|var|function|return|if|else|for|while|do|switch|case|break|continue|new|delete|typeof|instanceof|class|extends|super|this|import|export|from|as|default|try|catch|finally|throw|async|await|yield|void|null|undefined|true|false|NaN|Infinity)\b/],null),
26
+ new $APP.H(null,2,5,$APP.I,[$APP.Ap,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.I,[I2,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null),tya=new $APP.H(null,5,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[$APP.gi,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.H(null,2,5,$APP.I,[K2,/"(?:[^"\\]|\\.)*"/],null),new $APP.H(null,2,5,$APP.I,[$APP.Ap,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.I,[H2,/\b(?:true|false|null)\b/],null),new $APP.H(null,
27
+ 2,5,$APP.I,[I2,/[{}\[\]:,]/],null)],null),uya=new $APP.H(null,6,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[J2,/\/\*[\s\S]*?\*\//],null),new $APP.H(null,2,5,$APP.I,[K2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.H(null,2,5,$APP.I,[rya,/@[\w-]+/],null),new $APP.H(null,2,5,$APP.I,[qya,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.H(null,2,5,$APP.I,[$APP.Ap,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.H(null,2,5,$APP.I,[I2,/[{}();:,]/],null)],null),vya=new $APP.H(null,6,5,$APP.I,
28
+ [new $APP.H(null,2,5,$APP.I,[J2,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.H(null,2,5,$APP.I,[$APP.Zt,/<![^>]*>/],null),new $APP.H(null,2,5,$APP.I,[$APP.Zt,/<\/?[A-Za-z][\w-]*/],null),new $APP.H(null,2,5,$APP.I,[nya,/"[^"]*"|'[^']*'/],null),new $APP.H(null,2,5,$APP.I,[pya,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.H(null,2,5,$APP.I,[I2,/[<>\/=]/],null)],null),wya=$APP.df("def defn defn- defmacro defmulti defmethod defonce defprotocol defrecord deftype deftest fn let letfn loop recur do quote var new set! binding if if-not if-let if-some when when-not when-let when-some when-first cond condp case and or not doseq dotimes for while try catch finally throw ns true false nil".split(" "),
29
+ !0),L2="(?!"+$APP.N.i("[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]")+")",xya=new $APP.H(null,7,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[J2,/;[^\n]*/],null),new $APP.H(null,2,5,$APP.I,[K2,/#?"(?:[^"\\]|\\[\s\S])*"|\\(?:newline|space|tab|formfeed|backspace|return|u[0-9a-fA-F]{4}|o[0-7]{1,3}|\S)/],null),new $APP.H(null,2,5,$APP.I,[$APP.gi,g2($APP.zc(["::?","[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]","+"]))],null),new $APP.H(null,2,5,$APP.I,[$APP.Ap,g2($APP.zc(["[+-]?(?:0[xX][0-9a-fA-F]+|\\d+/\\d+|\\d+\\.?\\d*(?:[eE][+-]?\\d+)?)[MN]?",
30
+ L2]))],null),new $APP.H(null,2,5,$APP.I,[H2,g2($APP.zc(["(?:",$APP.Sh("|",wya),")",L2]))],null),new $APP.H(null,2,5,$APP.I,[k2,g2($APP.zc(["[A-Za-z_*+!?\x3c\x3e\x3d.$\x26%-]","[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]","*"]))],null),new $APP.H(null,2,5,$APP.I,[I2,/[()\[\]{}'`~@^#]/],null)],null),x2=$APP.fe(["js",i2(sya),"json",i2(tya),"css",i2(uya),"html",i2(vya),"clojure",i2(xya)]);var iya=":host{display:block;color-scheme:light dark;--x-code-bg:var(--x-color-surface,#f6f8fa);--x-code-fg:var(--x-color-text,#1f2328);--x-code-border:var(--x-color-border,#d0d7de);--x-code-muted:var(--x-color-text-muted,#656d76);--x-code-radius:var(--x-radius-md,8px);--x-code-font:var(--x-font-family-mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);--x-code-font-size:var(--x-font-size-sm,0.8125rem);--x-code-line-height:1.6;--x-code-tab-size:2;--x-code-accent:var(--x-color-primary,#0969da);--x-code-token-comment:#6a737d;--x-code-token-string:#0a7d33;--x-code-token-template:#0a7d33;--x-code-token-keyword:#cf222e;--x-code-token-number:#0550ae;--x-code-token-punct:#57606a;--x-code-token-key:#0550ae;--x-code-token-atrule:#cf222e;--x-code-token-property:#0550ae;--x-code-token-tag:#116329;--x-code-token-attr-value:#0a3069;--x-code-token-entity:#0550ae;}"+
31
31
  $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-code-bg:var(--x-color-surface,#161b22);--x-code-fg:var(--x-color-text,#e6edf3);--x-code-border:var(--x-color-border,#30363d);--x-code-muted:var(--x-color-text-muted,#8b949e);--x-code-token-comment:#8b949e;--x-code-token-string:#a5d6ff;--x-code-token-template:#a5d6ff;--x-code-token-keyword:#ff7b72;--x-code-token-number:#79c0ff;--x-code-token-punct:#c9d1d9;--x-code-token-key:#79c0ff;--x-code-token-atrule:#ff7b72;--x-code-token-property:#79c0ff;--x-code-token-tag:#7ee787;--x-code-token-attr-value:#a5d6ff;--x-code-token-entity:#79c0ff;}}[part\x3dcontainer]{display:flex;flex-direction:column;max-inline-size:100%;box-sizing:border-box;border:var(--x-border-width,1px) solid var(--x-code-border);border-radius:var(--x-code-radius);overflow:hidden;background:var(--x-code-bg);color:var(--x-code-fg);font-family:var(--x-code-font);font-size:var(--x-code-font-size);}[part\x3dheader]{display:none;align-items:center;gap:0.5rem;box-sizing:border-box;padding:0.4rem 0.75rem;border-bottom:var(--x-border-width,1px) solid var(--x-code-border);font-size:var(--x-font-size-xs,0.75rem);}:host([data-header]) [part\x3dheader]{display:flex;}[part\x3dfilename]{font-weight:var(--x-font-weight-semibold,600);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}[part\x3dlanguage]{color:var(--x-code-muted);text-transform:uppercase;letter-spacing:0.06em;}[part\x3dcopy-wrap]{margin-inline-start:auto;}[part\x3dcopy]::part(trigger){font:inherit;font-size:0.7rem;padding:0.2rem 0.5rem;border-radius:var(--x-radius-sm,4px);border:var(--x-border-width,1px) solid var(--x-code-border);background:var(--x-code-bg);color:var(--x-code-muted);cursor:pointer;}[part\x3dcopy]::part(trigger):hover{color:var(--x-code-fg);}[part\x3dbody]{position:relative;}[part\x3dscroll]{overflow:auto;}[part\x3dscroll]:focus-visible{outline:2px solid var(--x-code-accent);outline-offset:-2px;}[part\x3dpre]{margin:0;}[part\x3dcode]{display:inline-block;min-width:100%;box-sizing:border-box;padding-block:0.75rem;line-height:var(--x-code-line-height);tab-size:var(--x-code-tab-size);-moz-tab-size:var(--x-code-tab-size);}[part\x3dline]{display:flex;min-width:100%;width:max-content;min-height:calc(1em * var(--x-code-line-height));}[part\x3dgutter]{position:sticky;left:0;flex:0 0 auto;box-sizing:border-box;width:calc(var(--x-code-gutter-digits,2) * 1ch + 1.5em);padding:0 0.75em;text-align:right;color:var(--x-code-muted);background:var(--x-code-bg);user-select:none;-webkit-user-select:none;}:host(:not([line-numbers])) [part\x3dgutter]{display:none;}[part\x3dline-content]{flex:0 0 auto;white-space:pre;padding-right:0.75em;}:host(:not([line-numbers])) [part\x3dline-content]{padding-left:0.75em;}:host([wrap]) [part\x3dscroll]{overflow-x:hidden;}:host([wrap]) [part\x3dcode]{display:block;}:host([wrap]) [part\x3dline]{width:auto;}:host([wrap]) [part\x3dline-content]{flex:1 1 auto;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;}.tok-comment{color:var(--x-code-token-comment);font-style:italic;}.tok-string{color:var(--x-code-token-string);}.tok-template{color:var(--x-code-token-template);}.tok-keyword{color:var(--x-code-token-keyword);}.tok-number{color:var(--x-code-token-number);}.tok-punct{color:var(--x-code-token-punct);}.tok-key{color:var(--x-code-token-key);}.tok-atrule{color:var(--x-code-token-atrule);}.tok-property{color:var(--x-code-token-property);}.tok-tag{color:var(--x-code-token-tag);}.tok-attr-value{color:var(--x-code-token-attr-value);}.tok-entity{color:var(--x-code-token-entity);}:host([data-collapsed]) [part\x3dscroll]{max-height:calc(var(--x-code-font-size) * var(--x-code-line-height) * var(--x-code-max-lines,10) + 1.5rem);overflow-y:hidden;}[part\x3dfade]{display:none;position:absolute;left:0;right:0;bottom:0;height:3.5em;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--x-code-bg));}:host([data-collapsed]) [part\x3dfade]{display:block;}[part\x3dexpander]{display:none;width:100%;box-sizing:border-box;border:0;border-top:var(--x-border-width,1px) solid var(--x-code-border);padding:0.45rem;background:var(--x-code-bg);color:var(--x-code-accent);font:inherit;font-size:var(--x-font-size-xs,0.75rem);cursor:pointer;text-align:center;transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}:host([data-collapsible]) [part\x3dexpander]{display:block;}[part\x3dexpander]:hover{text-decoration:underline;}[part\x3dexpander]:focus-visible{outline:2px solid var(--x-code-accent);outline-offset:-2px;}@media (prefers-reduced-motion:reduce){[part\x3dexpander]{transition:none;}}",
32
- cya=new $APP.H(null,2,5,$APP.I,[new $APP.H(null,3,5,$APP.I,["expander","click",function(a){var b=$APP.p(q2.i($APP.l(a,"__xCodeModel")));b?$APP.R(a,"expanded",""):$APP.U(a,"expanded");return $APP.Oi(a,"x-code-toggle",{expanded:b})}],null),new $APP.H(null,3,5,$APP.I,["copy","x-copy-success",function(a){return $APP.Oi(a,"x-code-copy",{code:o2.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.ea("baredom.exports.x_code.init",H2);export const init=H2;
32
+ cya=new $APP.H(null,2,5,$APP.I,[new $APP.H(null,3,5,$APP.I,["expander","click",function(a){var b=$APP.p(p2.i($APP.l(a,"__xCodeModel")));b?$APP.R(a,"expanded",""):$APP.U(a,"expanded");return $APP.Ni(a,"x-code-toggle",{expanded:b})}],null),new $APP.H(null,3,5,$APP.I,["copy","x-copy-success",function(a){return $APP.Ni(a,"x-code-copy",{code:n2.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.ea("baredom.exports.x_code.init",G2);export const init=G2;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var DDa=function(){var a=window.matchMedia;return $APP.m(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},FDa=function(a){a=EDa.i($APP.l(a,"__xCollapseModel"));return $APP.m(a)?a:300},h$=function(a){a.style.height="";return a.style.transition=""},GDa=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.N.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return h$(a)},d+80);return a.addEventListener("transitionend",function g(){clearTimeout(e);
3
- h$(a);return a.removeEventListener("transitionend",g)})},JDa=function(a){if($APP.m($APP.l(a,"__xCollapseRefs"))){var b=new $APP.J(null,4,[$APP.Qp,a.hasAttribute("open"),$APP.Kk,a.hasAttribute("disabled"),HDa,$APP.V.j(a,"header"),IDa,$APP.V.j(a,"duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.Qp);var d=$APP.C(c,$APP.Kk),e=$APP.C(c,HDa);c=$APP.C(c,IDa);b=$APP.D(b);d=$APP.D(d);e=$APP.m(e)?e:"";$APP.m(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.m(c)?$APP.ek.j(0,$APP.dk.j(2E3,
4
- c)):300;b=new $APP.J(null,4,[$APP.Ns,b,$APP.el,d,$APP.rq,e,EDa,c],null);$APP.K.j($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.m(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.rq),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.Ns),c=$APP.C(c,$APP.el),$APP.R(d,"aria-expanded",$APP.m(e)?"true":"false"),$APP.m(c)?($APP.R(d,"disabled",""),$APP.R(d,"aria-disabled","true")):($APP.U(d,"disabled"),$APP.U(d,"aria-disabled")),a=$APP.Q(a,"__xCollapseModel",
5
- b)):a=null):a=null;return a}return null},i$=function(a,b){if($APP.m(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.Qi(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.R(a,"open",""):$APP.U(a,"open"),$APP.Oi(a,"x-collapse-change",{open:c})):null},KDa=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){b=$APP.l(b,"trigger");var c=function(){return i$(a,"pointer")},d=function(f){var g=f.key;$APP.A.j(g," ")||$APP.A.j(g,"Enter")||$APP.A.j(g,"Space")?(f.preventDefault(),
6
- f=i$(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.Q(a,"__xCollapseHandlers",e)}},LDa=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.m(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.Q(a,"__xCollapseHandlers",null)}return null},NDa=function(a){if(!$APP.m($APP.l(a,"__xCollapseRefs"))){var b=
7
- a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),g=document.createElement("span"),k=document.createElement("div"),n=document.createElement("div"),r=document.createElement("slot");c.textContent=MDa;$APP.R(d,"part","container");$APP.R(e,"part","trigger");$APP.R(e,"type","button");$APP.R(e,"id","trigger");$APP.R(e,"aria-controls","panel");$APP.R(f,"part","header-text");$APP.R(g,"part","chevron");
8
- $APP.R(g,"aria-hidden","true");$APP.R(k,"part","content");$APP.R(k,"id","panel");$APP.R(k,"role","region");$APP.R(k,"aria-labelledby","trigger");$APP.R(n,"part","content-inner");$APP.R(r,"name","content");g.textContent="▼";e.appendChild(f);e.appendChild(g);n.appendChild(r);k.appendChild(n);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.Q(a,"__xCollapseRefs",c)}LDa(a);KDa(a);return JDa(a)},ODa=function(a){return LDa(a)},
9
- PDa=function(a,b,c,d){return $APP.K.j(c,d)&&(JDa(a),$APP.A.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.m(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.m(b)?$APP.m(c)?$APP.m(DDa())?a=h$(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.N.i(b.scrollHeight)+"px",a=GDa(b,"0px",c,FDa(a))):$APP.m(DDa())?(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.N.i(b.offsetHeight)+"px",a=GDa(b,c,"0px",FDa(a))):a=null,a):null},RDa=function(a){$APP.cj(a,QDa);return Object.defineProperty(a,
10
- "toggle",{value:function(){return i$(this,"programmatic")},writable:!0,configurable:!0})},TDa=function(){return $APP.Gj("x-collapse",new $APP.J(null,5,[$APP.Fj,SDa,$APP.Dj,NDa,$APP.mj,ODa,$APP.lj,PDa,$APP.Ej,RDa],null))},IDa=new $APP.E(null,"duration-ms-raw","duration-ms-raw",-2138819526),EDa=new $APP.E(null,"duration-ms","duration-ms",1993555055),HDa=new $APP.E(null,"header-raw","header-raw",41484);var SDa=["open","disabled","header","duration-ms"],QDa=new $APP.J(null,4,[$APP.Gv,new $APP.J(null,2,[$APP.O,$APP.aj,$APP.W,"open"],null),$APP.sn,new $APP.J(null,2,[$APP.O,$APP.aj,$APP.W,"disabled"],null),$APP.rq,new $APP.J(null,2,[$APP.O,$APP.X,$APP.W,"header"],null),new $APP.E(null,"durationMs","durationMs",1439579766),new $APP.J(null,3,[$APP.O,$APP.Y,$APP.W,"duration-ms",$APP.bj,300],null)],null);
11
- $APP.fe(["x-collapse-toggle",new $APP.J(null,3,[$APP.zs,!0,$APP.it,$APP.fe(["open",$APP.Gv]),$APP.Li,new $APP.J(null,2,[$APP.Gv,$APP.aj,$APP.Mr,$APP.X],null)],null),"x-collapse-change",new $APP.J(null,2,[$APP.zs,!1,$APP.Li,new $APP.J(null,1,[$APP.Gv,$APP.aj],null)],null)]);var MDa=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:var(--x-border-width,1px) solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:var(--x-font-size-sm,0.9375rem);--x-collapse-font-weight:var(--x-font-weight-semibold,600);--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}"+
12
- $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-collapse-border:var(--x-border-width,1px) solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform var(--x-transition-duration,200ms) var(--x-transition-easing,ease);flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";$APP.ea("baredom.exports.x_collapse.init",TDa);export const init=TDa;
2
+ var CDa=function(){var a=window.matchMedia;return $APP.m(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},EDa=function(a){a=DDa.i($APP.l(a,"__xCollapseModel"));return $APP.m(a)?a:300},h$=function(a){a.style.height="";return a.style.transition=""},FDa=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.N.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return h$(a)},d+80);return a.addEventListener("transitionend",function g(){clearTimeout(e);
3
+ h$(a);return a.removeEventListener("transitionend",g)})},IDa=function(a){if($APP.m($APP.l(a,"__xCollapseRefs"))){var b=new $APP.J(null,4,[$APP.Op,a.hasAttribute("open"),$APP.Ik,a.hasAttribute("disabled"),GDa,$APP.V.j(a,"header"),HDa,$APP.V.j(a,"duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.Op);var d=$APP.C(c,$APP.Ik),e=$APP.C(c,GDa);c=$APP.C(c,HDa);b=$APP.D(b);d=$APP.D(d);e=$APP.m(e)?e:"";$APP.m(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.m(c)?$APP.bk.j(0,$APP.ak.j(2E3,
4
+ c)):300;b=new $APP.J(null,4,[$APP.Ls,b,$APP.Ok,d,$APP.pq,e,DDa,c],null);$APP.K.j($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.m(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.pq),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.Ls),c=$APP.C(c,$APP.Ok),$APP.R(d,"aria-expanded",$APP.m(e)?"true":"false"),$APP.m(c)?($APP.R(d,"disabled",""),$APP.R(d,"aria-disabled","true")):($APP.U(d,"disabled"),$APP.U(d,"aria-disabled")),a=$APP.Q(a,"__xCollapseModel",
5
+ b)):a=null):a=null;return a}return null},i$=function(a,b){if($APP.m(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.Pi(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.R(a,"open",""):$APP.U(a,"open"),$APP.Ni(a,"x-collapse-change",{open:c})):null},JDa=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){b=$APP.l(b,"trigger");var c=function(){return i$(a,"pointer")},d=function(f){var g=f.key;$APP.A.j(g," ")||$APP.A.j(g,"Enter")||$APP.A.j(g,"Space")?(f.preventDefault(),
6
+ f=i$(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.Q(a,"__xCollapseHandlers",e)}},KDa=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.m(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.Q(a,"__xCollapseHandlers",null)}return null},MDa=function(a){if(!$APP.m($APP.l(a,"__xCollapseRefs"))){var b=
7
+ a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),g=document.createElement("span"),k=document.createElement("div"),n=document.createElement("div"),r=document.createElement("slot");c.textContent=LDa;$APP.R(d,"part","container");$APP.R(e,"part","trigger");$APP.R(e,"type","button");$APP.R(e,"id","trigger");$APP.R(e,"aria-controls","panel");$APP.R(f,"part","header-text");$APP.R(g,"part","chevron");
8
+ $APP.R(g,"aria-hidden","true");$APP.R(k,"part","content");$APP.R(k,"id","panel");$APP.R(k,"role","region");$APP.R(k,"aria-labelledby","trigger");$APP.R(n,"part","content-inner");$APP.R(r,"name","content");g.textContent="▼";e.appendChild(f);e.appendChild(g);n.appendChild(r);k.appendChild(n);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.Q(a,"__xCollapseRefs",c)}KDa(a);JDa(a);return IDa(a)},NDa=function(a){return KDa(a)},
9
+ ODa=function(a,b,c,d){return $APP.K.j(c,d)&&(IDa(a),$APP.A.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.m(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.m(b)?$APP.m(c)?$APP.m(CDa())?a=h$(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.N.i(b.scrollHeight)+"px",a=FDa(b,"0px",c,EDa(a))):$APP.m(CDa())?(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.N.i(b.offsetHeight)+"px",a=FDa(b,c,"0px",EDa(a))):a=null,a):null},QDa=function(a){$APP.bj(a,PDa);return Object.defineProperty(a,
10
+ "toggle",{value:function(){return i$(this,"programmatic")},writable:!0,configurable:!0})},SDa=function(){return $APP.Fj("x-collapse",new $APP.J(null,5,[$APP.Ej,RDa,$APP.Cj,MDa,$APP.lj,NDa,$APP.kj,ODa,$APP.Dj,QDa],null))},HDa=new $APP.E(null,"duration-ms-raw","duration-ms-raw",-2138819526),DDa=new $APP.E(null,"duration-ms","duration-ms",1993555055),GDa=new $APP.E(null,"header-raw","header-raw",41484);var RDa=["open","disabled","header","duration-ms"],PDa=new $APP.J(null,4,[$APP.Ev,new $APP.J(null,2,[$APP.O,$APP.$i,$APP.W,"open"],null),$APP.qn,new $APP.J(null,2,[$APP.O,$APP.$i,$APP.W,"disabled"],null),$APP.pq,new $APP.J(null,2,[$APP.O,$APP.X,$APP.W,"header"],null),new $APP.E(null,"durationMs","durationMs",1439579766),new $APP.J(null,3,[$APP.O,$APP.Y,$APP.W,"duration-ms",$APP.aj,300],null)],null);
11
+ $APP.fe(["x-collapse-toggle",new $APP.J(null,3,[$APP.hs,!0,$APP.gt,$APP.fe(["open",$APP.Ev]),$APP.Ki,new $APP.J(null,2,[$APP.Ev,$APP.$i,$APP.Kr,$APP.X],null)],null),"x-collapse-change",new $APP.J(null,2,[$APP.hs,!1,$APP.Ki,new $APP.J(null,1,[$APP.Ev,$APP.$i],null)],null)]);var LDa=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:var(--x-border-width,1px) solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:var(--x-font-size-sm,0.9375rem);--x-collapse-font-weight:var(--x-font-weight-semibold,600);--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}"+
12
+ $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-collapse-border:var(--x-border-width,1px) solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform var(--x-transition-duration,200ms) var(--x-transition-easing,ease);flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";$APP.ea("baredom.exports.x_collapse.init",SDa);export const init=SDa;
@@ -1,49 +1,49 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var JH=function(a,b){return $APP.dk.j($APP.ek.j(a,0),b)},KH=function(a){return $APP.ud(a,360)},LH=function(a){return JH(a,100)},MH=function(a){return JH(a,1)},OH=function(a){var b=typeof a==="string";a=b?$APP.oh(NH,a.trim()):b;return $APP.D(a)},SH=function(a){if(typeof a==="string")if(a=$APP.oh(NH,a.trim()),$APP.m(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.x(a)){case 3:var b=parseInt(""+$APP.N.i($APP.uc(a,0))+$APP.N.i($APP.uc(a,0)),16),c=parseInt(""+$APP.N.i($APP.uc(a,1))+$APP.N.i($APP.uc(a,
3
- 1)),16),d=parseInt(""+$APP.N.i($APP.uc(a,2))+$APP.N.i($APP.uc(a,2)),16);return new $APP.J(null,4,[PH,b,$APP.sv,c,QH,d,RH,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.J(null,4,[PH,b,$APP.sv,c,QH,d,RH,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.J(null,4,[PH,b,$APP.sv,c,QH,d,RH,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
- else return null},Wka=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.ek.o(a,b,$APP.zc([c])),e=$APP.dk.o(a,b,$APP.zc([c])),f=(d+e)/2,g=d-e;return g===0?new $APP.J(null,3,[TH,0,UH,0,VH,f*100],null):new $APP.J(null,3,[TH,(d===a?((b-c)/g+(b<c?6:0))/6:d===b?((c-a)/g+2)/6:((a-b)/g+4)/6)*360,UH,(f>.5?g/(2-d-e):g/(d+e))*100,VH,f*100],null)},WH=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},XH=function(a,b,c){a=KH(a)/360;b=LH(b)/100;c=LH(c)/100;if(b===0)return a=
5
- Math.round(c*255),new $APP.J(null,3,[PH,a,$APP.sv,a,QH,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.J(null,3,[PH,Math.round(WH(c,b,a+1/3)*255),$APP.sv,Math.round(WH(c,b,a)*255),QH,Math.round(WH(c,b,a-1/3)*255)],null)},YH=function(a,b,c){function d(e){e=JH(Math.round(e),255).toString(16);return $APP.x(e)<2?"0"+$APP.N.i(e):e}return"#"+$APP.N.i(d(a))+$APP.N.i(d(b))+$APP.N.i(d(c))},ZH=function(a,b,c,d){function e(f){f=JH(Math.round(f),255).toString(16);return $APP.x(f)<2?"0"+$APP.N.i(f):f}
6
- return"#"+$APP.N.i(e(a))+$APP.N.i(e(b))+$APP.N.i(e(c))+$APP.N.i(e(MH(d)*255))},aI=function(a,b,c){b=LH(b)/100;c=LH(c)/100;b=c+b*$APP.dk.j(c,1-c);return new $APP.J(null,3,[TH,KH(a),UH,(b===0?0:2*(1-c/b))*100,$H,b*100],null)},bI=function(a,b,c){b=LH(b)/100;c=LH(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.dk.j(b,1-b);return new $APP.J(null,3,[TH,KH(a),UH,c*100,VH,b*100],null)},cI=function(a,b,c){return 100*(JH(a-b,c)/c)},Xka=function(a){return typeof a==="string"&&OH(a)?(a=SH(a),$APP.m(a)?YH(PH.i(a),
7
- $APP.sv.i(a),QH.i(a)):null):"#000000"},Yka=function(a){return typeof a==="string"&&$APP.ad(dI,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Zka=function(a){return typeof a==="string"&&$APP.bi(a)?$APP.Lf.l($APP.Pe,$APP.Xj.l($APP.He.i($APP.Yh),$APP.Le(OH),$APP.He.i(function(b){b=SH(b);var c=$APP.G(b);b=$APP.C(c,PH);var d=$APP.C(c,$APP.sv);c=$APP.C(c,QH);return YH(b,d,c)})),$APP.Wh(a,/,/)):$APP.Pe},$ka=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.el);var c=$APP.C(b,$APP.Gv),d=$APP.C(b,$APP.ni),
8
- e=$APP.C(b,$APP.Ok),f=$APP.C(b,$APP.$i),g=$APP.C(b,$APP.Zm),k=$APP.C(b,eI),n=$APP.C(b,$APP.Z),r=$APP.C(b,fI);b=Xka(d);var v=function(){var T=SH(d);return $APP.m(T)?T:SH("#000000")}(),w=$APP.G(v);v=$APP.C(w,PH);var y=$APP.C(w,$APP.sv),z=$APP.C(w,QH);w=$APP.C(w,RH);var F=function(){var T=typeof d==="string";if(T){T=d.trim();var S=$APP.oh(NH,T);return $APP.m(S)?8===$APP.x($APP.Cc($APP.oh(NH,T))):S}return T}();w=$APP.m(F)?w:1;F=Wka(v,y,z);var M=$APP.G(F);F=$APP.C(M,TH);var P=$APP.C(M,UH);M=$APP.C(M,VH);
9
- f=f!=null;r=r!=null;c=c!=null;g=Yka(g);return $APP.tg([$APP.Dm,gI,$APP.Ok,$APP.Zm,eI,UH,VH,hI,TH,$APP.Z,$APP.Ns,iI,$APP.el,RH],[f,r,$APP.bi(e)?e:null,g,Zka(k),P,M,b,F,$APP.bi(n)?n:null,$APP.A.j(g,"popover")&&c,r&&w<1?ZH(v,y,z,w):b,$APP.D(a),w])},jI=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.el);b=$APP.C(b,$APP.Dm);return $APP.p(a)&&$APP.p(b)},kI=function(a,b,c,d){$APP.R(a,"part",b);$APP.R(a,"role","slider");$APP.R(a,"tabindex","0");$APP.R(a,"aria-label",c);$APP.R(a,"aria-valuemin","0");$APP.R(a,
10
- "aria-valuemax",d)},lI=function(a,b,c,d){$APP.R(a,"part",b);$APP.R(a,"type","button");$APP.R(a,"aria-label",c);a.innerHTML=d},mI=function(a){return $ka($APP.tg([$APP.Gv,$APP.Ok,$APP.ni,$APP.$i,$APP.Zm,eI,$APP.Z,fI,$APP.el],[$APP.V.j(a,"open"),$APP.V.j(a,"name"),$APP.V.j(a,"value"),$APP.V.j(a,"readonly"),$APP.V.j(a,"mode"),$APP.V.j(a,"swatches"),$APP.V.j(a,"label"),$APP.V.j(a,"alpha"),$APP.Qj(a)]))},nI=function(a,b){var c=iI.i(b),d=TH.i(b),e=UH.i(b),f=VH.i(b);b=RH.i(b);return $APP.Oi(a,"x-color-picker-input",
11
- $APP.kn(new $APP.J(null,5,[$APP.ni,c,TH,d,UH,e,VH,f,RH,b],null)))},oI=function(a,b){var c=iI.i(b),d=TH.i(b),e=UH.i(b),f=VH.i(b);b=RH.i(b);return $APP.Oi(a,"x-color-picker-change",$APP.kn(new $APP.J(null,5,[$APP.ni,c,TH,d,UH,e,VH,f,RH,b],null)))},pI=function(a,b,c,d,e,f){b=XH(b,c,d);d=$APP.G(b);b=$APP.C(d,PH);c=$APP.C(d,$APP.sv);d=$APP.C(d,QH);e=$APP.m($APP.m(f)?e<1:f)?ZH(b,c,d,e):YH(b,c,d);$APP.R(a,"value",e)},ala=function(a,b,c,d){if($APP.K.j($APP.l(a,"__xColorPickerSwatchesCache"),c)){$APP.Q(a,
2
+ var HH=function(a,b){return $APP.ak.j($APP.bk.j(a,0),b)},IH=function(a){return $APP.ud(a,360)},JH=function(a){return HH(a,100)},KH=function(a){return HH(a,1)},MH=function(a){var b=typeof a==="string";a=b?$APP.nh(LH,a.trim()):b;return $APP.D(a)},QH=function(a){if(typeof a==="string")if(a=$APP.nh(LH,a.trim()),$APP.m(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.x(a)){case 3:var b=parseInt(""+$APP.N.i($APP.uc(a,0))+$APP.N.i($APP.uc(a,0)),16),c=parseInt(""+$APP.N.i($APP.uc(a,1))+$APP.N.i($APP.uc(a,
3
+ 1)),16),d=parseInt(""+$APP.N.i($APP.uc(a,2))+$APP.N.i($APP.uc(a,2)),16);return new $APP.J(null,4,[NH,b,$APP.qv,c,OH,d,PH,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.J(null,4,[NH,b,$APP.qv,c,OH,d,PH,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.J(null,4,[NH,b,$APP.qv,c,OH,d,PH,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
+ else return null},Wka=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.bk.o(a,b,$APP.zc([c])),e=$APP.ak.o(a,b,$APP.zc([c])),f=(d+e)/2,g=d-e;return g===0?new $APP.J(null,3,[RH,0,SH,0,TH,f*100],null):new $APP.J(null,3,[RH,(d===a?((b-c)/g+(b<c?6:0))/6:d===b?((c-a)/g+2)/6:((a-b)/g+4)/6)*360,SH,(f>.5?g/(2-d-e):g/(d+e))*100,TH,f*100],null)},UH=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},VH=function(a,b,c){a=IH(a)/360;b=JH(b)/100;c=JH(c)/100;if(b===0)return a=
5
+ Math.round(c*255),new $APP.J(null,3,[NH,a,$APP.qv,a,OH,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.J(null,3,[NH,Math.round(UH(c,b,a+1/3)*255),$APP.qv,Math.round(UH(c,b,a)*255),OH,Math.round(UH(c,b,a-1/3)*255)],null)},WH=function(a,b,c){function d(e){e=HH(Math.round(e),255).toString(16);return $APP.x(e)<2?"0"+$APP.N.i(e):e}return"#"+$APP.N.i(d(a))+$APP.N.i(d(b))+$APP.N.i(d(c))},XH=function(a,b,c,d){function e(f){f=HH(Math.round(f),255).toString(16);return $APP.x(f)<2?"0"+$APP.N.i(f):f}
6
+ return"#"+$APP.N.i(e(a))+$APP.N.i(e(b))+$APP.N.i(e(c))+$APP.N.i(e(KH(d)*255))},ZH=function(a,b,c){b=JH(b)/100;c=JH(c)/100;b=c+b*$APP.ak.j(c,1-c);return new $APP.J(null,3,[RH,IH(a),SH,(b===0?0:2*(1-c/b))*100,YH,b*100],null)},$H=function(a,b,c){b=JH(b)/100;c=JH(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.ak.j(b,1-b);return new $APP.J(null,3,[RH,IH(a),SH,c*100,TH,b*100],null)},aI=function(a,b,c){return 100*(HH(a-b,c)/c)},Xka=function(a){return typeof a==="string"&&MH(a)?(a=QH(a),$APP.m(a)?WH(NH.i(a),
7
+ $APP.qv.i(a),OH.i(a)):null):"#000000"},Yka=function(a){return typeof a==="string"&&$APP.ad(bI,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Zka=function(a){return typeof a==="string"&&$APP.ai(a)?$APP.Kf.l($APP.Oe,$APP.ck.l($APP.Ge.i($APP.Xh),$APP.Ke(MH),$APP.Ge.i(function(b){b=QH(b);var c=$APP.G(b);b=$APP.C(c,NH);var d=$APP.C(c,$APP.qv);c=$APP.C(c,OH);return WH(b,d,c)})),$APP.Vh(a,/,/)):$APP.Oe},$ka=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Ok);var c=$APP.C(b,$APP.Ev),d=$APP.C(b,$APP.mi),
8
+ e=$APP.C(b,$APP.Mk),f=$APP.C(b,$APP.Zi),g=$APP.C(b,$APP.Xm),k=$APP.C(b,cI),n=$APP.C(b,$APP.Z),r=$APP.C(b,dI);b=Xka(d);var v=function(){var T=QH(d);return $APP.m(T)?T:QH("#000000")}(),w=$APP.G(v);v=$APP.C(w,NH);var y=$APP.C(w,$APP.qv),z=$APP.C(w,OH);w=$APP.C(w,PH);var F=function(){var T=typeof d==="string";if(T){T=d.trim();var S=$APP.nh(LH,T);return $APP.m(S)?8===$APP.x($APP.Cc($APP.nh(LH,T))):S}return T}();w=$APP.m(F)?w:1;F=Wka(v,y,z);var M=$APP.G(F);F=$APP.C(M,RH);var P=$APP.C(M,SH);M=$APP.C(M,TH);
9
+ f=f!=null;r=r!=null;c=c!=null;g=Yka(g);return $APP.sg([$APP.Bm,eI,$APP.Mk,$APP.Xm,cI,SH,TH,fI,RH,$APP.Z,$APP.Ls,gI,$APP.Ok,PH],[f,r,$APP.ai(e)?e:null,g,Zka(k),P,M,b,F,$APP.ai(n)?n:null,$APP.A.j(g,"popover")&&c,r&&w<1?XH(v,y,z,w):b,$APP.D(a),w])},hI=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Ok);b=$APP.C(b,$APP.Bm);return $APP.p(a)&&$APP.p(b)},iI=function(a,b,c,d){$APP.R(a,"part",b);$APP.R(a,"role","slider");$APP.R(a,"tabindex","0");$APP.R(a,"aria-label",c);$APP.R(a,"aria-valuemin","0");$APP.R(a,
10
+ "aria-valuemax",d)},jI=function(a,b,c,d){$APP.R(a,"part",b);$APP.R(a,"type","button");$APP.R(a,"aria-label",c);a.innerHTML=d},kI=function(a){return $ka($APP.sg([$APP.Ev,$APP.Mk,$APP.mi,$APP.Zi,$APP.Xm,cI,$APP.Z,dI,$APP.Ok],[$APP.V.j(a,"open"),$APP.V.j(a,"name"),$APP.V.j(a,"value"),$APP.V.j(a,"readonly"),$APP.V.j(a,"mode"),$APP.V.j(a,"swatches"),$APP.V.j(a,"label"),$APP.V.j(a,"alpha"),$APP.Pj(a)]))},lI=function(a,b){var c=gI.i(b),d=RH.i(b),e=SH.i(b),f=TH.i(b);b=PH.i(b);return $APP.Ni(a,"x-color-picker-input",
11
+ $APP.hn(new $APP.J(null,5,[$APP.mi,c,RH,d,SH,e,TH,f,PH,b],null)))},mI=function(a,b){var c=gI.i(b),d=RH.i(b),e=SH.i(b),f=TH.i(b);b=PH.i(b);return $APP.Ni(a,"x-color-picker-change",$APP.hn(new $APP.J(null,5,[$APP.mi,c,RH,d,SH,e,TH,f,PH,b],null)))},nI=function(a,b,c,d,e,f){b=VH(b,c,d);d=$APP.G(b);b=$APP.C(d,NH);c=$APP.C(d,$APP.qv);d=$APP.C(d,OH);e=$APP.m($APP.m(f)?e<1:f)?XH(b,c,d,e):WH(b,c,d);$APP.R(a,"value",e)},ala=function(a,b,c,d){if($APP.K.j($APP.l(a,"__xColorPickerSwatchesCache"),c)){$APP.Q(a,
12
12
  "__xColorPickerSwatchesCache",c);b.innerHTML="";a=$APP.q(c);c=null;for(var e=0,f=0;;)if(f<e){var g=c.C(null,f),k=document.createElement("button");$APP.R(k,"part","swatch");$APP.R(k,"type","button");$APP.R(k,"role","option");$APP.R(k,"aria-label",g);$APP.R(k,"data-color",g);k.style.backgroundColor=g;b.appendChild(k);f+=1}else if(a=$APP.q(a))$APP.Wc(a)?(e=$APP.zb(a),a=$APP.Ab(a),c=e,e=$APP.x(e)):(c=$APP.t(a),e=document.createElement("button"),$APP.R(e,"part","swatch"),$APP.R(e,"type","button"),$APP.R(e,
13
- "role","option"),$APP.R(e,"aria-label",c),$APP.R(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.u(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(n){return $APP.R(n,"aria-selected",$APP.A.j(n.getAttribute("data-color"),d)?"true":"false")})},qI=function(a){if($APP.m($APP.l(a,"__xColorPickerRefs"))){var b=mI(a);if($APP.K.j($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");if($APP.m(c)){var d=$APP.l(c,"area"),e=$APP.l(c,
14
- "hue-strip"),f=$APP.l(c,"alpha-strip"),g=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),n=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),v=$APP.C(r,TH);r=$APP.C(r,$APP.Zm);$APP.R(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.N.i(Math.round(v)));r=$APP.G(b);var w=$APP.C(r,TH),y=$APP.C(r,UH),z=$APP.C(r,VH);v=$APP.C(r,RH);r=$APP.C(r,$APP.Z);y=aI(w,y,z);var F=$APP.G(y);y=$APP.C(F,UH);F=$APP.C(F,$H);F=new $APP.J(null,2,[$APP.qv,LH(y),$APP.pv,100-LH(F)],null);d.style.setProperty("--_x-cp-area-x",
15
- ""+$APP.N.i($APP.qv.i(F).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.N.i($APP.pv.i(F).toFixed(2))+"%");w="Hue "+$APP.N.i(Math.round(w))+", Saturation "+$APP.N.i(Math.round(y))+"%, Lightness "+$APP.N.i(Math.round(z))+"%";v=v<1?""+$APP.N.i(w)+", Opacity "+$APP.N.i(Math.round(v*100))+"%":w;$APP.R(d,"aria-valuetext",v);$APP.m(r)&&$APP.R(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,TH);e.style.setProperty("--_x-cp-hue-pos",""+$APP.N.i((KH(d)/360*100).toFixed(2))+"%");$APP.R(e,"aria-valuenow",
16
- ""+$APP.N.i(Math.round(d)));w=$APP.G(b);e=$APP.C(w,TH);d=$APP.C(w,UH);v=$APP.C(w,VH);r=$APP.C(w,RH);w=$APP.C(w,gI);$APP.m(w)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.N.i(Math.round(e))+","+$APP.N.i(Math.round(d))+"%,"+$APP.N.i(Math.round(v))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.N.i((MH(r)*100).toFixed(2))+"%"),$APP.R(f,"aria-valuenow",""+$APP.N.i(Math.round(r*100)))):f.style.display="none";w=$APP.G(b);e=$APP.C(w,TH);d=$APP.C(w,UH);v=$APP.C(w,VH);f=
17
- $APP.C(w,RH);r=$APP.C(w,hI);w=$APP.C(w,gI);$APP.m(w)?(e=XH(e,d,v),v=$APP.G(e),e=$APP.C(v,PH),d=$APP.C(v,$APP.sv),v=$APP.C(v,QH),f="rgba("+$APP.N.i(e)+","+$APP.N.i(d)+","+$APP.N.i(v)+","+$APP.N.i(f.toFixed(2))+")"):f=r;g.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);g=$APP.C(f,iI);k=$APP.C(f,$APP.el);f=$APP.C(f,$APP.Dm);a.shadowRoot.activeElement!==n&&(n.value=g);n.disabled=$APP.m(k)?k:f;ala(a,c,eI.i(b),hI.i(b));n=$APP.G(b);n=$APP.C(n,iI);c=$APP.l(a,"__xColorPickerInternals");$APP.m(c)&&
18
- c.setFormValue(n);a=$APP.Q(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},sI=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=cI(b.clientX,c.left,c.width);a=cI(a,d,e);return new $APP.J(null,2,[rI,LH(b),$APP.up,100-LH(a)],null)},tI=function(a,b){a=a.getBoundingClientRect();b=cI(b.clientX,a.left,a.width);return LH(b)/100*360},uI=function(a,b){a=a.getBoundingClientRect();b=cI(b.clientX,a.left,a.width);return LH(b)/100},cla=function(a,b){var c=
19
- mI(a);if(jI(c)&&$APP.ad(bla,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=aI(TH.i(c),UH.i(c),VH.i(c)),f=function(){switch(b.key){case "ArrowRight":return LH(UH.i(e)+d);case "ArrowLeft":return LH(UH.i(e)-d);default:return UH.i(e)}}(),g=function(){switch(b.key){case "ArrowUp":return LH($H.i(e)+d);case "ArrowDown":return LH($H.i(e)-d);default:return $H.i(e)}}();f=bI(TH.i(c),f,g);var k=$APP.G(f);f=$APP.C(k,TH);g=$APP.C(k,UH);k=$APP.C(k,VH);pI(a,f,g,k,RH.i(c),gI.i(c));nI(a,mI(a));return oI(a,
20
- mI(a))}return null},dla=function(a,b){var c=mI(a);if(jI(c)&&$APP.ad(vI,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return KH(TH.i(c)+d);case "ArrowLeft":return KH(TH.i(c)-d);case "Home":return 0;case "End":return 360;default:return TH.i(c)}}();pI(a,e,UH.i(c),VH.i(c),RH.i(c),gI.i(c));nI(a,mI(a));return oI(a,mI(a))}return null},ela=function(a,b){var c=mI(a);if($APP.m(function(){var f=jI(c);return f?(f=gI.i(c),$APP.m(f)?$APP.ad(vI,b.key):f):f}())){b.preventDefault();
21
- var d=$APP.m(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return MH(RH.i(c)+d);case "ArrowLeft":return MH(RH.i(c)-d);case "Home":return 0;case "End":return 1;default:return RH.i(c)}}();pI(a,TH.i(c),UH.i(c),VH.i(c),e,!0);nI(a,mI(a));return oI(a,mI(a))}return null},fla=function(a){var b=mI(a);return jI(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.R(a,"value",c.sRGBHex);return oI(a,mI(a))}).catch(function(){return null}):null},gla=function(a){if($APP.m(a.hasAttribute("open")))return null;
22
- $APP.R(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.m(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},wI=function(a){return $APP.m(a.hasAttribute("open"))?($APP.U(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.m(a)?$APP.l(a,"trigger").focus():null):null},hla=function(a,b){return $APP.m(a.hasAttribute("open"))?$APP.m(b.composedPath().some(function(c){return c===a}))?null:wI(a):null},ila=function(a){return{"area-move":function(b){if($APP.A.j("area",
23
- $APP.l(a,"__xColorPickerDragging"))){var c=mI(a);b=sI($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,rI);d=$APP.C(d,$APP.up);b=bI(TH.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,TH);d=$APP.C(e,UH);e=$APP.C(e,VH);pI(a,b,d,e,RH.i(c),gI.i(c));c=nI(a,mI(a))}else c=null;return c},copy:function(){var b=mI(a);return $APP.m(navigator.clipboard)?navigator.clipboard.writeText(iI.i(b)):null},"panel-key":function(b){$APP.A.j("Escape",b.key)&&$APP.A.j("popover",$APP.Zm.i(mI(a)))?(b.preventDefault(),
24
- b.stopPropagation(),b=wI(a)):b=null;return b},"alpha-up":function(){if($APP.A.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=oI(a,mI(a))}else b=null;return b},"hue-up":function(){if($APP.A.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=oI(a,mI(a))}else b=null;return b},"alpha-key":function(b){return ela(a,b)},"alpha-move":function(b){if($APP.A.j("alpha",$APP.l(a,"__xColorPickerDragging"))){var c=mI(a);b=uI($APP.l($APP.l(a,
25
- "__xColorPickerRefs"),"alpha-strip"),b);pI(a,TH.i(c),UH.i(c),VH.i(c),b,!0);c=nI(a,mI(a))}else c=null;return c},"hex-key":function(b){a:{if($APP.A.j("Enter",b.key)){b.preventDefault();b=$APP.l($APP.l(a,"__xColorPickerRefs"),"hex-input");var c=b.value,d=mI(a);if(jI(d)){if(OH(c)){$APP.R(a,"value",c);b=oI(a,mI(a));break a}b=b.value=iI.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=mI(a);if(jI(c)&&(b=b.target,$APP.m(b.hasAttribute("data-color")))){b=b.getAttribute("data-color");$APP.R(a,"value",
26
- b);b=oI(a,mI(a));break a}b=null}return b},"area-up":function(){if($APP.A.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=oI(a,mI(a))}else b=null;return b},"alpha-down":function(b){var c=mI(a);var d=(d=jI(c))?gI.i(c):d;$APP.m(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.Q(a,"__xColorPickerDragging","alpha"),b=uI(d,b),pI(a,TH.i(c),UH.i(c),VH.i(c),b,!0),c=nI(a,mI(a))):c=null;return c},"area-key":function(b){return cla(a,
27
- b)},"hue-down":function(b){var c=mI(a);if(jI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","hue");b=tI(d,b);pI(a,b,UH.i(c),VH.i(c),RH.i(c),gI.i(c));c=nI(a,mI(a))}else c=null;return c},"hue-key":function(b){return dla(a,b)},"hue-move":function(b){if($APP.A.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=mI(a);b=tI($APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip"),b);pI(a,b,UH.i(c),VH.i(c),RH.i(c),
28
- gI.i(c));c=nI(a,mI(a))}else c=null;return c},eyedrop:function(){return fla(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=mI(a);return $APP.A.j("popover",$APP.Zm.i(b))&&$APP.p($APP.el.i(b))?$APP.m($APP.Ns.i(b))?wI(a):gla(a):null},"doc-click":function(b){return hla(a,b)},"area-down":function(b){var c=mI(a);if(jI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","area");b=sI(d,
29
- b);d=$APP.G(b);b=$APP.C(d,rI);d=$APP.C(d,$APP.up);b=bI(TH.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,TH);d=$APP.C(e,UH);e=$APP.C(e,VH);pI(a,b,d,e,RH.i(c),gI.i(c));c=nI(a,mI(a))}else c=null;return c}}},yI=function(a,b){return $APP.A.j(b,xI)?document:$APP.l(a,b)},AI=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.m($APP.m(b)?c:b)){for(var d=$APP.q(zI),e=null,f=0,g=0;;)if(g<f){var k=e.C(null,g),n=$APP.B(k,0,null),r=$APP.B(k,1,null),v=$APP.B(k,2,null);k=$APP.B(k,
30
- 3,null);yI(b,n).removeEventListener(r,$APP.l(c,v),k);g+=1}else if(d=$APP.q(d))$APP.Wc(d)?(f=$APP.zb(d),d=$APP.Ab(d),e=f,f=$APP.x(f)):(n=$APP.t(d),e=$APP.B(n,0,null),f=$APP.B(n,1,null),g=$APP.B(n,2,null),n=$APP.B(n,3,null),yI(b,e).removeEventListener(f,$APP.l(c,g),n),d=$APP.u(d),e=null,f=0),g=0;else break;return $APP.Q(a,"__xColorPickerHandlers",null)}return null},jla=function(a){$APP.R(a,"value","#000000");return qI(a)},lla=function(a){if(!$APP.m($APP.l(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),
31
- c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");var f=document.createElement("button");var g=document.createElement("span");$APP.R(f,"part","trigger");$APP.R(f,"type","button");$APP.R(f,"aria-label","Pick color");$APP.R(g,"part","trigger-swatch");f.appendChild(g);f=new $APP.J(null,2,[$APP.ku,f,BI,g],null);g=document.createElement("div");var k=document.createElement("div");$APP.R(g,"part","area");$APP.R(g,"role","slider");$APP.R(g,"tabindex","0");$APP.R(g,
32
- "aria-label","Color");$APP.R(k,"part","area-thumb");g.appendChild(k);g=new $APP.J(null,2,[CI,g,DI,k],null);k=document.createElement("div");var n=document.createElement("div"),r=document.createElement("div"),v=document.createElement("div"),w=document.createElement("div"),y=document.createElement("div");$APP.R(k,"part","strips");kI(n,"hue-strip","Hue","360");kI(v,"alpha-strip","Opacity","100");$APP.R(r,"part","hue-thumb");$APP.R(w,"part","alpha-gradient");$APP.R(y,"part","alpha-thumb");n.appendChild(r);
33
- v.appendChild(w);v.appendChild(y);k.appendChild(n);k.appendChild(v);k=new $APP.J(null,6,[EI,k,FI,n,GI,r,HI,v,II,w,JI,y],null);n=document.createElement("div");r=document.createElement("div");v=document.createElement("span");w=document.createElement("input");y=document.createElement("button");var z=document.createElement("button");$APP.R(n,"part","controls");$APP.R(r,"part","preview");$APP.R(v,"part","preview-color");$APP.R(w,"part","hex-input");$APP.R(w,"type","text");$APP.R(w,"spellcheck","false");
34
- $APP.R(w,"autocomplete","off");$APP.R(w,"aria-label","Hex color value");lI(y,"eyedropper","Pick color from screen",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e');lI(z,"copy",
13
+ "role","option"),$APP.R(e,"aria-label",c),$APP.R(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.u(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(n){return $APP.R(n,"aria-selected",$APP.A.j(n.getAttribute("data-color"),d)?"true":"false")})},oI=function(a){if($APP.m($APP.l(a,"__xColorPickerRefs"))){var b=kI(a);if($APP.K.j($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");if($APP.m(c)){var d=$APP.l(c,"area"),e=$APP.l(c,
14
+ "hue-strip"),f=$APP.l(c,"alpha-strip"),g=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),n=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),v=$APP.C(r,RH);r=$APP.C(r,$APP.Xm);$APP.R(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.N.i(Math.round(v)));r=$APP.G(b);var w=$APP.C(r,RH),y=$APP.C(r,SH),z=$APP.C(r,TH);v=$APP.C(r,PH);r=$APP.C(r,$APP.Z);y=ZH(w,y,z);var F=$APP.G(y);y=$APP.C(F,SH);F=$APP.C(F,YH);F=new $APP.J(null,2,[$APP.ov,JH(y),$APP.nv,100-JH(F)],null);d.style.setProperty("--_x-cp-area-x",
15
+ ""+$APP.N.i($APP.ov.i(F).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.N.i($APP.nv.i(F).toFixed(2))+"%");w="Hue "+$APP.N.i(Math.round(w))+", Saturation "+$APP.N.i(Math.round(y))+"%, Lightness "+$APP.N.i(Math.round(z))+"%";v=v<1?""+$APP.N.i(w)+", Opacity "+$APP.N.i(Math.round(v*100))+"%":w;$APP.R(d,"aria-valuetext",v);$APP.m(r)&&$APP.R(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,RH);e.style.setProperty("--_x-cp-hue-pos",""+$APP.N.i((IH(d)/360*100).toFixed(2))+"%");$APP.R(e,"aria-valuenow",
16
+ ""+$APP.N.i(Math.round(d)));w=$APP.G(b);e=$APP.C(w,RH);d=$APP.C(w,SH);v=$APP.C(w,TH);r=$APP.C(w,PH);w=$APP.C(w,eI);$APP.m(w)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.N.i(Math.round(e))+","+$APP.N.i(Math.round(d))+"%,"+$APP.N.i(Math.round(v))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.N.i((KH(r)*100).toFixed(2))+"%"),$APP.R(f,"aria-valuenow",""+$APP.N.i(Math.round(r*100)))):f.style.display="none";w=$APP.G(b);e=$APP.C(w,RH);d=$APP.C(w,SH);v=$APP.C(w,TH);f=
17
+ $APP.C(w,PH);r=$APP.C(w,fI);w=$APP.C(w,eI);$APP.m(w)?(e=VH(e,d,v),v=$APP.G(e),e=$APP.C(v,NH),d=$APP.C(v,$APP.qv),v=$APP.C(v,OH),f="rgba("+$APP.N.i(e)+","+$APP.N.i(d)+","+$APP.N.i(v)+","+$APP.N.i(f.toFixed(2))+")"):f=r;g.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);g=$APP.C(f,gI);k=$APP.C(f,$APP.Ok);f=$APP.C(f,$APP.Bm);a.shadowRoot.activeElement!==n&&(n.value=g);n.disabled=$APP.m(k)?k:f;ala(a,c,cI.i(b),fI.i(b));n=$APP.G(b);n=$APP.C(n,gI);c=$APP.l(a,"__xColorPickerInternals");$APP.m(c)&&
18
+ c.setFormValue(n);a=$APP.Q(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},qI=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=aI(b.clientX,c.left,c.width);a=aI(a,d,e);return new $APP.J(null,2,[pI,JH(b),$APP.sp,100-JH(a)],null)},rI=function(a,b){a=a.getBoundingClientRect();b=aI(b.clientX,a.left,a.width);return JH(b)/100*360},sI=function(a,b){a=a.getBoundingClientRect();b=aI(b.clientX,a.left,a.width);return JH(b)/100},cla=function(a,b){var c=
19
+ kI(a);if(hI(c)&&$APP.ad(bla,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=ZH(RH.i(c),SH.i(c),TH.i(c)),f=function(){switch(b.key){case "ArrowRight":return JH(SH.i(e)+d);case "ArrowLeft":return JH(SH.i(e)-d);default:return SH.i(e)}}(),g=function(){switch(b.key){case "ArrowUp":return JH(YH.i(e)+d);case "ArrowDown":return JH(YH.i(e)-d);default:return YH.i(e)}}();f=$H(RH.i(c),f,g);var k=$APP.G(f);f=$APP.C(k,RH);g=$APP.C(k,SH);k=$APP.C(k,TH);nI(a,f,g,k,PH.i(c),eI.i(c));lI(a,kI(a));return mI(a,
20
+ kI(a))}return null},dla=function(a,b){var c=kI(a);if(hI(c)&&$APP.ad(tI,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return IH(RH.i(c)+d);case "ArrowLeft":return IH(RH.i(c)-d);case "Home":return 0;case "End":return 360;default:return RH.i(c)}}();nI(a,e,SH.i(c),TH.i(c),PH.i(c),eI.i(c));lI(a,kI(a));return mI(a,kI(a))}return null},ela=function(a,b){var c=kI(a);if($APP.m(function(){var f=hI(c);return f?(f=eI.i(c),$APP.m(f)?$APP.ad(tI,b.key):f):f}())){b.preventDefault();
21
+ var d=$APP.m(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return KH(PH.i(c)+d);case "ArrowLeft":return KH(PH.i(c)-d);case "Home":return 0;case "End":return 1;default:return PH.i(c)}}();nI(a,RH.i(c),SH.i(c),TH.i(c),e,!0);lI(a,kI(a));return mI(a,kI(a))}return null},fla=function(a){var b=kI(a);return hI(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.R(a,"value",c.sRGBHex);return mI(a,kI(a))}).catch(function(){return null}):null},gla=function(a){if($APP.m(a.hasAttribute("open")))return null;
22
+ $APP.R(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.m(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},uI=function(a){return $APP.m(a.hasAttribute("open"))?($APP.U(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.m(a)?$APP.l(a,"trigger").focus():null):null},hla=function(a,b){return $APP.m(a.hasAttribute("open"))?$APP.m(b.composedPath().some(function(c){return c===a}))?null:uI(a):null},ila=function(a){return{"area-move":function(b){if($APP.A.j("area",
23
+ $APP.l(a,"__xColorPickerDragging"))){var c=kI(a);b=qI($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,pI);d=$APP.C(d,$APP.sp);b=$H(RH.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,RH);d=$APP.C(e,SH);e=$APP.C(e,TH);nI(a,b,d,e,PH.i(c),eI.i(c));c=lI(a,kI(a))}else c=null;return c},copy:function(){var b=kI(a);return $APP.m(navigator.clipboard)?navigator.clipboard.writeText(gI.i(b)):null},"panel-key":function(b){$APP.A.j("Escape",b.key)&&$APP.A.j("popover",$APP.Xm.i(kI(a)))?(b.preventDefault(),
24
+ b.stopPropagation(),b=uI(a)):b=null;return b},"alpha-up":function(){if($APP.A.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=mI(a,kI(a))}else b=null;return b},"hue-up":function(){if($APP.A.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=mI(a,kI(a))}else b=null;return b},"alpha-key":function(b){return ela(a,b)},"alpha-move":function(b){if($APP.A.j("alpha",$APP.l(a,"__xColorPickerDragging"))){var c=kI(a);b=sI($APP.l($APP.l(a,
25
+ "__xColorPickerRefs"),"alpha-strip"),b);nI(a,RH.i(c),SH.i(c),TH.i(c),b,!0);c=lI(a,kI(a))}else c=null;return c},"hex-key":function(b){a:{if($APP.A.j("Enter",b.key)){b.preventDefault();b=$APP.l($APP.l(a,"__xColorPickerRefs"),"hex-input");var c=b.value,d=kI(a);if(hI(d)){if(MH(c)){$APP.R(a,"value",c);b=mI(a,kI(a));break a}b=b.value=gI.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=kI(a);if(hI(c)&&(b=b.target,$APP.m(b.hasAttribute("data-color")))){b=b.getAttribute("data-color");$APP.R(a,"value",
26
+ b);b=mI(a,kI(a));break a}b=null}return b},"area-up":function(){if($APP.A.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=mI(a,kI(a))}else b=null;return b},"alpha-down":function(b){var c=kI(a);var d=(d=hI(c))?eI.i(c):d;$APP.m(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.Q(a,"__xColorPickerDragging","alpha"),b=sI(d,b),nI(a,RH.i(c),SH.i(c),TH.i(c),b,!0),c=lI(a,kI(a))):c=null;return c},"area-key":function(b){return cla(a,
27
+ b)},"hue-down":function(b){var c=kI(a);if(hI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","hue");b=rI(d,b);nI(a,b,SH.i(c),TH.i(c),PH.i(c),eI.i(c));c=lI(a,kI(a))}else c=null;return c},"hue-key":function(b){return dla(a,b)},"hue-move":function(b){if($APP.A.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=kI(a);b=rI($APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip"),b);nI(a,b,SH.i(c),TH.i(c),PH.i(c),
28
+ eI.i(c));c=lI(a,kI(a))}else c=null;return c},eyedrop:function(){return fla(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=kI(a);return $APP.A.j("popover",$APP.Xm.i(b))&&$APP.p($APP.Ok.i(b))?$APP.m($APP.Ls.i(b))?uI(a):gla(a):null},"doc-click":function(b){return hla(a,b)},"area-down":function(b){var c=kI(a);if(hI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","area");b=qI(d,
29
+ b);d=$APP.G(b);b=$APP.C(d,pI);d=$APP.C(d,$APP.sp);b=$H(RH.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,RH);d=$APP.C(e,SH);e=$APP.C(e,TH);nI(a,b,d,e,PH.i(c),eI.i(c));c=lI(a,kI(a))}else c=null;return c}}},wI=function(a,b){return $APP.A.j(b,vI)?document:$APP.l(a,b)},yI=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.m($APP.m(b)?c:b)){for(var d=$APP.q(xI),e=null,f=0,g=0;;)if(g<f){var k=e.C(null,g),n=$APP.B(k,0,null),r=$APP.B(k,1,null),v=$APP.B(k,2,null);k=$APP.B(k,
30
+ 3,null);wI(b,n).removeEventListener(r,$APP.l(c,v),k);g+=1}else if(d=$APP.q(d))$APP.Wc(d)?(f=$APP.zb(d),d=$APP.Ab(d),e=f,f=$APP.x(f)):(n=$APP.t(d),e=$APP.B(n,0,null),f=$APP.B(n,1,null),g=$APP.B(n,2,null),n=$APP.B(n,3,null),wI(b,e).removeEventListener(f,$APP.l(c,g),n),d=$APP.u(d),e=null,f=0),g=0;else break;return $APP.Q(a,"__xColorPickerHandlers",null)}return null},jla=function(a){$APP.R(a,"value","#000000");return oI(a)},lla=function(a){if(!$APP.m($APP.l(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),
31
+ c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");var f=document.createElement("button");var g=document.createElement("span");$APP.R(f,"part","trigger");$APP.R(f,"type","button");$APP.R(f,"aria-label","Pick color");$APP.R(g,"part","trigger-swatch");f.appendChild(g);f=new $APP.J(null,2,[$APP.iu,f,zI,g],null);g=document.createElement("div");var k=document.createElement("div");$APP.R(g,"part","area");$APP.R(g,"role","slider");$APP.R(g,"tabindex","0");$APP.R(g,
32
+ "aria-label","Color");$APP.R(k,"part","area-thumb");g.appendChild(k);g=new $APP.J(null,2,[AI,g,BI,k],null);k=document.createElement("div");var n=document.createElement("div"),r=document.createElement("div"),v=document.createElement("div"),w=document.createElement("div"),y=document.createElement("div");$APP.R(k,"part","strips");iI(n,"hue-strip","Hue","360");iI(v,"alpha-strip","Opacity","100");$APP.R(r,"part","hue-thumb");$APP.R(w,"part","alpha-gradient");$APP.R(y,"part","alpha-thumb");n.appendChild(r);
33
+ v.appendChild(w);v.appendChild(y);k.appendChild(n);k.appendChild(v);k=new $APP.J(null,6,[CI,k,DI,n,EI,r,FI,v,GI,w,HI,y],null);n=document.createElement("div");r=document.createElement("div");v=document.createElement("span");w=document.createElement("input");y=document.createElement("button");var z=document.createElement("button");$APP.R(n,"part","controls");$APP.R(r,"part","preview");$APP.R(v,"part","preview-color");$APP.R(w,"part","hex-input");$APP.R(w,"type","text");$APP.R(w,"spellcheck","false");
34
+ $APP.R(w,"autocomplete","off");$APP.R(w,"aria-label","Hex color value");jI(y,"eyedropper","Pick color from screen",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e');jI(z,"copy",
35
35
  "Copy color value",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3crect x\x3d"5" y\x3d"5" width\x3d"9" height\x3d"9" rx\x3d"1.5"/\x3e\x3cpath d\x3d"M5 11H3.5A1.5 1.5 0 0 1 2 9.5v-6A1.5 1.5 0 0 1 3.5 2h6A1.5 1.5 0 0 1 11 3.5V5"/\x3e\x3c/svg\x3e');typeof EyeDropper==="undefined"&&(y.style.display="none");r.appendChild(v);n.appendChild(r);n.appendChild(w);n.appendChild(y);
36
- n.appendChild(z);n=new $APP.J(null,6,[$APP.Gs,n,KI,r,LI,v,MI,w,NI,y,$APP.Ps,z],null);r=document.createElement("div");$APP.R(r,"part","swatches");$APP.R(r,"role","listbox");$APP.R(r,"aria-label","Preset colors");r=new $APP.J(null,1,[eI,r],null);c.textContent=kla;$APP.R(d,"part","container");$APP.R(e,"part","panel");e.appendChild(CI.i(g));e.appendChild(EI.i(k));e.appendChild($APP.Gs.i(n));e.appendChild(eI.i(r));d.appendChild($APP.ku.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);b={"alpha-thumb":JI.i(k),
37
- copy:$APP.Ps.i(n),swatches:eI.i(r),"hue-strip":FI.i(k),controls:$APP.Gs.i(n),"alpha-gradient":II.i(k),panel:e,preview:KI.i(n),"area-thumb":DI.i(g),"preview-color":LI.i(n),container:d,area:CI.i(g),"hue-thumb":GI.i(k),"trigger-swatch":BI.i(f),trigger:$APP.ku.i(f),"alpha-strip":HI.i(k),eyedropper:NI.i(n),"hex-input":MI.i(n)};$APP.Q(a,"__xColorPickerRefs",b);$APP.m(a.attachInternals)&&$APP.Q(a,"__xColorPickerInternals",a.attachInternals())}AI(a);b=$APP.l(a,"__xColorPickerRefs");if($APP.m(b)){c=ila(a);
38
- d=$APP.q(zI);e=null;for(g=f=0;;)if(g<f)v=e.C(null,g),k=$APP.B(v,0,null),n=$APP.B(v,1,null),r=$APP.B(v,2,null),v=$APP.B(v,3,null),yI(b,k).addEventListener(n,$APP.l(c,r),v),g+=1;else if(d=$APP.q(d))$APP.Wc(d)?(f=$APP.zb(d),d=$APP.Ab(d),e=f,f=$APP.x(f)):(k=$APP.t(d),e=$APP.B(k,0,null),f=$APP.B(k,1,null),g=$APP.B(k,2,null),k=$APP.B(k,3,null),yI(b,e).addEventListener(f,$APP.l(c,g),k),d=$APP.u(d),e=null,f=0),g=0;else break;$APP.Q(a,"__xColorPickerHandlers",c)}return qI(a)},mla=function(a){return AI(a)},
39
- nla=function(a,b,c,d){return $APP.K.j(c,d)?qI(a):null},pla=function(a){$APP.Tj(a,"__xColorPickerInternals");return $APP.cj(a,ola)},OI=function(){return $APP.Gj("x-color-picker",new $APP.J(null,7,[$APP.Fj,qla,$APP.Dj,lla,$APP.mj,mla,$APP.lj,nla,$APP.Bj,!0,$APP.kj,jla,$APP.Ej,pla],null))},II=new $APP.E(null,"alpha-gradient","alpha-gradient",2099400176),JI=new $APP.E(null,"alpha-thumb","alpha-thumb",-1443114239),LI=new $APP.E(null,"preview-color","preview-color",1405210195),HI=new $APP.E(null,"alpha-strip",
40
- "alpha-strip",1085401595),DI=new $APP.E(null,"area-thumb","area-thumb",1471343090),gI=new $APP.E(null,"alpha?","alpha?",1329751525),rI=new $APP.E(null,"sat","sat",1064662667),BI=new $APP.E(null,"trigger-swatch","trigger-swatch",208431162),xI=new $APP.E(null,"document","document",-1329188687),NI=new $APP.E(null,"eyedropper","eyedropper",-1786107588),CI=new $APP.E(null,"area","area",472007256),fI=new $APP.E(null,"alpha","alpha",-1574982441),iI=new $APP.E(null,"hex-full","hex-full",-1466644518),MI=new $APP.E(null,
41
- "hex-input","hex-input",1497535517),KI=new $APP.E(null,"preview","preview",451279890),FI=new $APP.E(null,"hue-strip","hue-strip",938856876),eI=new $APP.E(null,"swatches","swatches",2033601707),EI=new $APP.E(null,"strips","strips",-1564791997),$H=new $APP.E(null,"v","v",21465059),UH=new $APP.E(null,"s","s",1705939918),PH=new $APP.E(null,"r","r",-471384190),VH=new $APP.E(null,"l","l",1395893423),TH=new $APP.E(null,"h","h",1109658740),QH=new $APP.E(null,"b","b",1482224470),RH=new $APP.E(null,"a","a",
42
- -2123407586),hI=new $APP.E(null,"hex","hex",41691346),GI=new $APP.E(null,"hue-thumb","hue-thumb",638949625);var dI=new $APP.Tg(null,new $APP.J(null,2,["inline",null,"popover",null],null),null),qla="value alpha swatches disabled readonly name mode open label".split(" "),ola=$APP.tg([$APP.pw,$APP.Gv,$APP.Rv,$APP.vq,$APP.sn,$APP.Ok,$APP.ni,$APP.Zm,eI,$APP.Kv,$APP.Z,fI,$APP.Jr,$APP.jr],[new $APP.J(null,2,[$APP.O,$APP.X,$APP.$i,!0],null),new $APP.J(null,2,[$APP.O,$APP.aj,$APP.W,"open"],null),new $APP.J(null,2,[$APP.O,$APP.Jq,$APP.$i,!0],null),new $APP.J(null,2,[$APP.O,$APP.aj,$APP.$i,!0],null),new $APP.J(null,
43
- 2,[$APP.O,$APP.aj,$APP.W,"disabled"],null),new $APP.J(null,2,[$APP.O,$APP.X,$APP.W,"name"],null),new $APP.J(null,2,[$APP.O,$APP.X,$APP.W,"value"],null),new $APP.J(null,3,[$APP.O,$APP.X,$APP.W,"mode",$APP.Wu,dI],null),new $APP.J(null,2,[$APP.O,$APP.X,$APP.W,"swatches"],null),new $APP.J(null,2,[$APP.O,$APP.aj,$APP.W,"readonly"],null),new $APP.J(null,2,[$APP.O,$APP.X,$APP.W,"label"],null),new $APP.J(null,2,[$APP.O,$APP.aj,$APP.W,"alpha"],null),new $APP.J(null,2,[$APP.O,$APP.Ku,$APP.$i,!0],null),new $APP.J(null,
44
- 2,[$APP.O,$APP.yu,$APP.$i,!0],null)]);$APP.fe(["x-color-picker-input",new $APP.J(null,2,[$APP.Li,new $APP.J(null,5,[$APP.ni,$APP.X,TH,$APP.Y,UH,$APP.Y,VH,$APP.Y,RH,$APP.Y],null),$APP.zs,!1],null),"x-color-picker-change",new $APP.J(null,2,[$APP.Li,new $APP.J(null,5,[$APP.ni,$APP.X,TH,$APP.Y,UH,$APP.Y,VH,$APP.Y,RH,$APP.Y],null),$APP.zs,!1],null)]);var NH=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var kla=":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;}"+
36
+ n.appendChild(z);n=new $APP.J(null,6,[$APP.Es,n,II,r,JI,v,KI,w,LI,y,$APP.Ns,z],null);r=document.createElement("div");$APP.R(r,"part","swatches");$APP.R(r,"role","listbox");$APP.R(r,"aria-label","Preset colors");r=new $APP.J(null,1,[cI,r],null);c.textContent=kla;$APP.R(d,"part","container");$APP.R(e,"part","panel");e.appendChild(AI.i(g));e.appendChild(CI.i(k));e.appendChild($APP.Es.i(n));e.appendChild(cI.i(r));d.appendChild($APP.iu.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);b={"alpha-thumb":HI.i(k),
37
+ copy:$APP.Ns.i(n),swatches:cI.i(r),"hue-strip":DI.i(k),controls:$APP.Es.i(n),"alpha-gradient":GI.i(k),panel:e,preview:II.i(n),"area-thumb":BI.i(g),"preview-color":JI.i(n),container:d,area:AI.i(g),"hue-thumb":EI.i(k),"trigger-swatch":zI.i(f),trigger:$APP.iu.i(f),"alpha-strip":FI.i(k),eyedropper:LI.i(n),"hex-input":KI.i(n)};$APP.Q(a,"__xColorPickerRefs",b);$APP.m(a.attachInternals)&&$APP.Q(a,"__xColorPickerInternals",a.attachInternals())}yI(a);b=$APP.l(a,"__xColorPickerRefs");if($APP.m(b)){c=ila(a);
38
+ d=$APP.q(xI);e=null;for(g=f=0;;)if(g<f)v=e.C(null,g),k=$APP.B(v,0,null),n=$APP.B(v,1,null),r=$APP.B(v,2,null),v=$APP.B(v,3,null),wI(b,k).addEventListener(n,$APP.l(c,r),v),g+=1;else if(d=$APP.q(d))$APP.Wc(d)?(f=$APP.zb(d),d=$APP.Ab(d),e=f,f=$APP.x(f)):(k=$APP.t(d),e=$APP.B(k,0,null),f=$APP.B(k,1,null),g=$APP.B(k,2,null),k=$APP.B(k,3,null),wI(b,e).addEventListener(f,$APP.l(c,g),k),d=$APP.u(d),e=null,f=0),g=0;else break;$APP.Q(a,"__xColorPickerHandlers",c)}return oI(a)},mla=function(a){return yI(a)},
39
+ nla=function(a,b,c,d){return $APP.K.j(c,d)?oI(a):null},pla=function(a){$APP.Sj(a,"__xColorPickerInternals");return $APP.bj(a,ola)},MI=function(){return $APP.Fj("x-color-picker",new $APP.J(null,7,[$APP.Ej,qla,$APP.Cj,lla,$APP.lj,mla,$APP.kj,nla,$APP.Aj,!0,$APP.jj,jla,$APP.Dj,pla],null))},GI=new $APP.E(null,"alpha-gradient","alpha-gradient",2099400176),HI=new $APP.E(null,"alpha-thumb","alpha-thumb",-1443114239),JI=new $APP.E(null,"preview-color","preview-color",1405210195),FI=new $APP.E(null,"alpha-strip",
40
+ "alpha-strip",1085401595),BI=new $APP.E(null,"area-thumb","area-thumb",1471343090),eI=new $APP.E(null,"alpha?","alpha?",1329751525),pI=new $APP.E(null,"sat","sat",1064662667),zI=new $APP.E(null,"trigger-swatch","trigger-swatch",208431162),vI=new $APP.E(null,"document","document",-1329188687),LI=new $APP.E(null,"eyedropper","eyedropper",-1786107588),AI=new $APP.E(null,"area","area",472007256),dI=new $APP.E(null,"alpha","alpha",-1574982441),gI=new $APP.E(null,"hex-full","hex-full",-1466644518),KI=new $APP.E(null,
41
+ "hex-input","hex-input",1497535517),II=new $APP.E(null,"preview","preview",451279890),DI=new $APP.E(null,"hue-strip","hue-strip",938856876),cI=new $APP.E(null,"swatches","swatches",2033601707),CI=new $APP.E(null,"strips","strips",-1564791997),YH=new $APP.E(null,"v","v",21465059),SH=new $APP.E(null,"s","s",1705939918),NH=new $APP.E(null,"r","r",-471384190),TH=new $APP.E(null,"l","l",1395893423),RH=new $APP.E(null,"h","h",1109658740),OH=new $APP.E(null,"b","b",1482224470),PH=new $APP.E(null,"a","a",
42
+ -2123407586),fI=new $APP.E(null,"hex","hex",41691346),EI=new $APP.E(null,"hue-thumb","hue-thumb",638949625);var bI=new $APP.Og(null,new $APP.J(null,2,["inline",null,"popover",null],null),null),qla="value alpha swatches disabled readonly name mode open label".split(" "),ola=$APP.sg([$APP.nw,$APP.Ev,$APP.Pv,$APP.tq,$APP.qn,$APP.Mk,$APP.mi,$APP.Xm,cI,$APP.Iv,$APP.Z,dI,$APP.Hr,$APP.hr],[new $APP.J(null,2,[$APP.O,$APP.X,$APP.Zi,!0],null),new $APP.J(null,2,[$APP.O,$APP.$i,$APP.W,"open"],null),new $APP.J(null,2,[$APP.O,$APP.Hq,$APP.Zi,!0],null),new $APP.J(null,2,[$APP.O,$APP.$i,$APP.Zi,!0],null),new $APP.J(null,
43
+ 2,[$APP.O,$APP.$i,$APP.W,"disabled"],null),new $APP.J(null,2,[$APP.O,$APP.X,$APP.W,"name"],null),new $APP.J(null,2,[$APP.O,$APP.X,$APP.W,"value"],null),new $APP.J(null,3,[$APP.O,$APP.X,$APP.W,"mode",$APP.Uu,bI],null),new $APP.J(null,2,[$APP.O,$APP.X,$APP.W,"swatches"],null),new $APP.J(null,2,[$APP.O,$APP.$i,$APP.W,"readonly"],null),new $APP.J(null,2,[$APP.O,$APP.X,$APP.W,"label"],null),new $APP.J(null,2,[$APP.O,$APP.$i,$APP.W,"alpha"],null),new $APP.J(null,2,[$APP.O,$APP.Iu,$APP.Zi,!0],null),new $APP.J(null,
44
+ 2,[$APP.O,$APP.wu,$APP.Zi,!0],null)]);$APP.fe(["x-color-picker-input",new $APP.J(null,2,[$APP.Ki,new $APP.J(null,5,[$APP.mi,$APP.X,RH,$APP.Y,SH,$APP.Y,TH,$APP.Y,PH,$APP.Y],null),$APP.hs,!1],null),"x-color-picker-change",new $APP.J(null,2,[$APP.Ki,new $APP.J(null,5,[$APP.mi,$APP.X,RH,$APP.Y,SH,$APP.Y,TH,$APP.Y,PH,$APP.Y],null),$APP.hs,!1],null)]);var LH=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var kla=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}"+
45
45
  $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:var(--x-border-width,1px) solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:var(--x-z-dropdown,1000);top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:var(--x-shadow-sm,0 1px 4px rgba(0,0,0,0.3));pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:var(--x-shadow-sm,0 1px 4px rgba(0,0,0,0.3));pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:var(--x-border-width,1px) solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:var(--x-border-width,1px) solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:var(--x-color-surface-active,rgba(0,0,0,0.06));}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:var(--x-color-surface-active,rgba(255,255,255,0.1));}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:var(--x-radius-sm,4px);cursor:pointer;border:var(--x-border-width,1px) solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host(:disabled){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}",
46
- bla=new $APP.Tg(null,new $APP.J(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),vI=new $APP.Tg(null,new $APP.J(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),zI=new $APP.H(null,20,5,$APP.I,[new $APP.H(null,4,5,$APP.I,["area","pointerdown","area-down",!1],null),new $APP.H(null,4,5,$APP.I,["area","pointermove","area-move",!1],null),new $APP.H(null,4,5,$APP.I,["area","pointerup","area-up",!1],null),new $APP.H(null,4,5,$APP.I,["area",
46
+ bla=new $APP.Og(null,new $APP.J(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),tI=new $APP.Og(null,new $APP.J(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),xI=new $APP.H(null,20,5,$APP.I,[new $APP.H(null,4,5,$APP.I,["area","pointerdown","area-down",!1],null),new $APP.H(null,4,5,$APP.I,["area","pointermove","area-move",!1],null),new $APP.H(null,4,5,$APP.I,["area","pointerup","area-up",!1],null),new $APP.H(null,4,5,$APP.I,["area",
47
47
  "keydown","area-key",!1],null),new $APP.H(null,4,5,$APP.I,["hue-strip","pointerdown","hue-down",!1],null),new $APP.H(null,4,5,$APP.I,["hue-strip","pointermove","hue-move",!1],null),new $APP.H(null,4,5,$APP.I,["hue-strip","pointerup","hue-up",!1],null),new $APP.H(null,4,5,$APP.I,["hue-strip","keydown","hue-key",!1],null),new $APP.H(null,4,5,$APP.I,["alpha-strip","pointerdown","alpha-down",!1],null),new $APP.H(null,4,5,$APP.I,["alpha-strip","pointermove","alpha-move",!1],null),new $APP.H(null,4,5,$APP.I,
48
48
  ["alpha-strip","pointerup","alpha-up",!1],null),new $APP.H(null,4,5,$APP.I,["alpha-strip","keydown","alpha-key",!1],null),new $APP.H(null,4,5,$APP.I,["hex-input","keydown","hex-key",!1],null),new $APP.H(null,4,5,$APP.I,["swatches","click","swatch",!1],null),new $APP.H(null,4,5,$APP.I,["eyedropper","click","eyedrop",!1],null),new $APP.H(null,4,5,$APP.I,["copy","click","copy",!1],null),new $APP.H(null,4,5,$APP.I,["trigger","click","trigger",!1],null),new $APP.H(null,4,5,$APP.I,["panel","keydown","panel-key",
49
- !1],null),new $APP.H(null,4,5,$APP.I,["panel","pointerdown","panel-pd",!1],null),new $APP.H(null,4,5,$APP.I,[xI,"pointerdown","doc-click",!0],null)],null);$APP.ea("baredom.exports.x_color_picker.init",OI);export const init=OI;
49
+ !1],null),new $APP.H(null,4,5,$APP.I,["panel","pointerdown","panel-pd",!1],null),new $APP.H(null,4,5,$APP.I,[vI,"pointerdown","doc-click",!0],null)],null);$APP.ea("baredom.exports.x_color_picker.init",MI);export const init=MI;