@vanelsas/baredom 3.2.0 → 4.0.0-alpha.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 (124) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +82 -170
  3. package/custom-elements.json +3705 -3385
  4. package/dist/barebuild-action.d.ts +45 -0
  5. package/dist/barebuild-action.js +9 -0
  6. package/dist/barebuild-data.d.ts +39 -0
  7. package/dist/barebuild-data.js +5 -0
  8. package/dist/barebuild-invalidate-on.d.ts +42 -0
  9. package/dist/barebuild-invalidate-on.js +5 -0
  10. package/dist/barebuild-route.d.ts +39 -0
  11. package/dist/barebuild-route.js +4 -0
  12. package/dist/barebuild-router.d.ts +41 -0
  13. package/dist/barebuild-router.js +13 -0
  14. package/dist/baredom.d.ts +96 -91
  15. package/dist/base.js +589 -579
  16. package/dist/integrity.json +113 -108
  17. package/dist/x-alert.js +17 -17
  18. package/dist/x-avatar-group.js +9 -9
  19. package/dist/x-avatar.js +14 -14
  20. package/dist/x-badge.js +9 -9
  21. package/dist/x-bento-grid.js +5 -5
  22. package/dist/x-bento-item.js +4 -4
  23. package/dist/x-breadcrumbs.js +13 -13
  24. package/dist/x-button.js +1 -1
  25. package/dist/x-calendar.js +38 -38
  26. package/dist/x-cancel-dialogue.js +13 -13
  27. package/dist/x-card.js +7 -7
  28. package/dist/x-carousel.js +33 -33
  29. package/dist/x-chart.js +47 -47
  30. package/dist/x-checkbox.js +1 -1
  31. package/dist/x-chip.js +1 -1
  32. package/dist/x-code.js +27 -27
  33. package/dist/x-collapse.js +11 -11
  34. package/dist/x-color-picker.js +44 -44
  35. package/dist/x-combobox.js +28 -28
  36. package/dist/x-command-palette.js +27 -27
  37. package/dist/x-confetti.js +24 -24
  38. package/dist/x-container.js +5 -5
  39. package/dist/x-context-menu.js +20 -20
  40. package/dist/x-copy.js +1 -1
  41. package/dist/x-currency-field.js +24 -24
  42. package/dist/x-date-picker.d.ts +5 -4
  43. package/dist/x-date-picker.js +37 -37
  44. package/dist/x-divider.js +10 -10
  45. package/dist/x-drawer.js +11 -11
  46. package/dist/x-dropdown.js +12 -12
  47. package/dist/x-fieldset.js +5 -5
  48. package/dist/x-file-download.js +5 -5
  49. package/dist/x-file-upload.js +22 -22
  50. package/dist/x-form-field.js +14 -14
  51. package/dist/x-form.js +11 -10
  52. package/dist/x-gaussian-blur.js +13 -13
  53. package/dist/x-grid.js +6 -6
  54. package/dist/x-i18n-provider.js +7 -7
  55. package/dist/x-i18n.js +4 -4
  56. package/dist/x-icon.js +7 -7
  57. package/dist/x-image.js +17 -17
  58. package/dist/x-kbd.js +12 -12
  59. package/dist/x-kinetic-canvas.js +25 -25
  60. package/dist/x-kinetic-font.js +27 -27
  61. package/dist/x-kinetic-typography.js +33 -33
  62. package/dist/x-liquid-dock.js +31 -31
  63. package/dist/x-liquid-fill.js +41 -41
  64. package/dist/x-liquid-glass.js +34 -34
  65. package/dist/x-menu-item.js +8 -8
  66. package/dist/x-menu.js +9 -9
  67. package/dist/x-metaball-cursor.js +23 -23
  68. package/dist/x-modal.js +12 -12
  69. package/dist/x-morph-stack.js +37 -37
  70. package/dist/x-multi-combobox.js +35 -35
  71. package/dist/x-navbar.js +15 -15
  72. package/dist/x-neural-glow.js +29 -29
  73. package/dist/x-notification-center.js +9 -9
  74. package/dist/x-organic-divider.js +17 -17
  75. package/dist/x-organic-progress.js +33 -33
  76. package/dist/x-organic-shape.js +12 -12
  77. package/dist/x-otp-input.js +21 -21
  78. package/dist/x-pagination.js +14 -14
  79. package/dist/x-particle-button.js +48 -48
  80. package/dist/x-popover.js +26 -26
  81. package/dist/x-progress-circle.js +7 -7
  82. package/dist/x-progress.js +7 -7
  83. package/dist/x-proximity-list.js +20 -20
  84. package/dist/x-radio.js +11 -11
  85. package/dist/x-range-slider.js +28 -28
  86. package/dist/x-rating.js +23 -23
  87. package/dist/x-ripple-effect.js +9 -9
  88. package/dist/x-scroll-parallax.js +17 -17
  89. package/dist/x-scroll-stack.js +16 -16
  90. package/dist/x-scroll-story.js +33 -33
  91. package/dist/x-scroll-timeline.js +45 -45
  92. package/dist/x-scroll.js +37 -37
  93. package/dist/x-search-field.js +1 -1
  94. package/dist/x-select.d.ts +1 -0
  95. package/dist/x-select.js +1 -1
  96. package/dist/x-sidebar.js +16 -16
  97. package/dist/x-skeleton-group.js +12 -12
  98. package/dist/x-skeleton.js +1 -1
  99. package/dist/x-slider.js +15 -15
  100. package/dist/x-soft-body.js +18 -18
  101. package/dist/x-spacer.js +4 -4
  102. package/dist/x-spinner.js +4 -4
  103. package/dist/x-splash.js +12 -12
  104. package/dist/x-split-pane.js +15 -15
  105. package/dist/x-spotlight-card.js +12 -12
  106. package/dist/x-stat.js +10 -10
  107. package/dist/x-stepper.js +13 -13
  108. package/dist/x-switch.js +10 -10
  109. package/dist/x-tab.js +6 -6
  110. package/dist/x-table-cell.js +19 -19
  111. package/dist/x-table-row.js +8 -8
  112. package/dist/x-table.js +13 -13
  113. package/dist/x-tabs.js +11 -11
  114. package/dist/x-text-area.js +18 -18
  115. package/dist/x-theme.js +25 -25
  116. package/dist/x-timeline-item.js +20 -20
  117. package/dist/x-timeline.js +8 -8
  118. package/dist/x-toast.js +22 -22
  119. package/dist/x-toaster.js +6 -6
  120. package/dist/x-tooltip.js +12 -12
  121. package/dist/x-trace-history.js +124 -124
  122. package/dist/x-typography.js +6 -6
  123. package/dist/x-welcome-tour.js +63 -63
  124. package/package.json +28 -1
package/dist/x-code.js CHANGED
@@ -1,28 +1,28 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var d2=function(a){return $APP.Jc(Pna,typeof a==="string"?a.trim().toLowerCase():null,"text")},e2=function(a){return $APP.z.j("",a.trim())},Qna=function(a){return $APP.w($APP.yh(/^[\t ]*/,a))},Rna=function(a){var b=$APP.$e(a.split("\n")),c=$APP.De(e2,b),d=$APP.r(c)?$APP.nd($APP.co,$APP.we.j(Qna,c)):0;return d>0?$APP.Bi("\n",$APP.we.j(function(e){return $APP.w(e)>=d?e.substring(d):e},b)):a},Sna=function(a){var b=$APP.$e(a.split("\n")),c=$APP.w(b),d=function(){for(var e=0;;)if(e<c&&e2($APP.xc(b,e)))e+=
3
- 1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&e2($APP.xc(b,e)))--e;else return e}();return d<=a?$APP.Bi("\n",$APP.ff(null,b,d|0,a+1|0,null)):""},f2=function(a){return typeof a==="string"?Rna(Sna($APP.Ai(a,/\r\n?/,"\n"))):""},h2=function(a){return new $APP.M(null,2,[$APP.Hs,$APP.Bi("|",$APP.we.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.P.i(b.source)+")"},a)),g2,$APP.Fe($APP.t,a)],null)},j2=function(a,b,c){b=new RegExp(b,"g");for(var d=$APP.w(c),e=$APP.w(a),f=$APP.wb($APP.Ee),
4
- h=0;;){var k=b.exec(a);if(k==null)return $APP.Sd(h<e?$APP.Td(f,new $APP.J(null,2,5,$APP.K,[i2,a.substring(h)],null)):f);var m=k[0],q=k.index;a:{for(var u=1;;){if(u>d){k=1;break a}if(k[u]!=null){k=u;break a}u+=1}k=void 0}k=$APP.xc(c,k-1);h=q>h?new $APP.J(null,2,5,$APP.K,[i2,a.substring(h,q)],null):null;q+=m.length;m.length===0&&(b.lastIndex+=1);f=$APP.n(h)?$APP.xb(f,h):f;f=m=$APP.Td(f,new $APP.J(null,2,5,$APP.K,[k,m],null));h=q}},Tna=function(a){a=$APP.r(a);for(var b=$APP.Ee,c=$APP.Ee;;){if(a==null)return $APP.Ad.j(c,
5
- b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),h=$APP.$e(f.split("\n")),k=$APP.w(h);if($APP.z.j(k,1))a=$APP.v(a),b=$APP.Ad.j(b,new $APP.J(null,2,5,$APP.K,[e,f],null));else{var m=$APP.v(a),q=new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[e,$APP.Pc(h)],null)],null);c=$APP.If.j($APP.Ad.j(c,$APP.Ad.j(b,new $APP.J(null,2,5,$APP.K,[e,$APP.t(h)],null))),$APP.we.j(function(u,x,y,A,E){return function(H){return new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[E,H],null)],null)}}(a,
6
- b,c,d,e,f,h,k),$APP.ff(null,h,1,k-1|0,null)));a=m;b=q}}},k2=function(a){var b=$APP.l(a,"__xCodeCodeValue");if(typeof b==="string")return b;a=$APP.n(a.hasAttribute("code"))?a.getAttribute("code"):a.textContent;return $APP.n(a)?a:""},l2=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.z.j(i2,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.P.i($APP.ph(b));c.textContent=a;return c},m2=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),
7
- e=document.createElement("span");$APP.T(c,"part","line");$APP.T(d,"part","gutter");$APP.T(d,"aria-hidden","true");d.textContent=""+$APP.P.i(b+1);$APP.T(e,"part","line-content");a=$APP.r(a);b=null;for(var f=0,h=0;;)if(h<f){var k=b.C(null,h);$APP.I("",$APP.Fc(k))&&e.appendChild(l2(k));h+=1}else if(a=$APP.r(a))b=a,$APP.Yc(b)?(a=$APP.Db(b),h=$APP.Eb(b),b=a,f=$APP.w(a),a=h):(a=$APP.t(b),$APP.I("",$APP.Fc(a))&&e.appendChild(l2(a)),a=$APP.v(b),b=null,f=0),h=0;else break;c.appendChild(d);c.appendChild(e);
8
- return c},G2=function(a){if($APP.n($APP.l(a,"__xCodeRefs"))){var b=k2(a);var c=a.getAttribute("language"),d=$APP.l(a,"__xCodeModel"),e=$APP.n(d)?$APP.z.j(f2(b),n2.i(d))&&$APP.z.j(d2(c),o2.i(d)):d;b=$APP.Eg([$APP.Fp,p2,q2,r2,s2,t2,u2,v2,w2],[a.getAttribute("filename"),a.hasAttribute("expanded"),$APP.n(e)?q2.i(d):null,a.hasAttribute("wrap"),a.getAttribute("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 h=
9
- $APP.C(e,$APP.Fp),k=$APP.C(e,p2),m=$APP.C(e,q2);d=$APP.C(e,r2);var q=$APP.C(e,s2);e=$APP.C(e,t2);c=d2(c);e=f2(e);h=typeof h==="string"?h.trim():null;h=$APP.n($APP.n(h)?$APP.I("",h):h)?h:"";typeof q==="string"?(q=parseInt(q,10),q=$APP.p(isNaN(q))&&q>0?q:0):q=0;$APP.n(m)||(m=""+$APP.P.i(e),m=$APP.z.j("",m)?$APP.Ee:$APP.z.j(c,"js")?j2(m,$APP.Hs.i(x2),g2.i(x2)):$APP.z.j(c,"json")?j2(m,$APP.Hs.i(y2),g2.i(y2)):$APP.z.j(c,"css")?j2(m,$APP.Hs.i(z2),g2.i(z2)):$APP.z.j(c,"html")?j2(m,$APP.Hs.i(A2),g2.i(A2)):
10
- new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[i2,m],null)],null),m=Tna(m));var u=$APP.w(m);f=$APP.D(f);k=$APP.D(k);var x=$APP.D(f||$APP.I("",h)),y=$APP.D(q>0&&u>q);d=$APP.D(d);b=$APP.D(b);var A=$APP.z.j(c,"text")?"":c.toUpperCase();b=$APP.Eg([p2,q2,B2,C2,$APP.et,r2,o2,n2,u2,v2,D2,E2,F2],[k,m,x,y,h,d,c,e,f,b,A,u,q]);if($APP.I(b,$APP.l(a,"__xCodeModel"))){c=a.style;c.setProperty("--x-code-max-lines",""+$APP.P.i(F2.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.P.i($APP.uo.j(2,(""+$APP.P.i(E2.i(b))).length)));
11
- h=$APP.l(a,"__xCodeRefs");c=$APP.l(h,"filename");d=$APP.l(h,"lang");e=$APP.l(h,"cwrap");h=$APP.l(h,"copy");k=$APP.I("",$APP.et.i(b));f=!k&&$APP.I("",D2.i(b));$APP.Zi(a,"data-header",B2.i(b));c.textContent=$APP.et.i(b);c.style.display=k?"block":"none";d.textContent=D2.i(b);d.style.display=f?"block":"none";e.style.display=$APP.n(u2.i(b))?"inline-flex":"none";$APP.T(h,"text",n2.i(b));c=$APP.l(a,"__xCodeModel");if($APP.I($APP.Zg(b,new $APP.J(null,2,5,$APP.K,[n2,o2],null)),$APP.Zg(c,new $APP.J(null,2,
12
- 5,$APP.K,[n2,o2],null)))){c=$APP.l($APP.l(a,"__xCodeRefs"),"code");d=document.createDocumentFragment();e=$APP.r($APP.qe($APP.Ao,q2.i(b)));h=null;for(f=k=0;;)if(f<k)m=h.C(null,f),q=$APP.B(m,0,null),m=$APP.B(m,1,null),d.appendChild(m2(m,q)),f+=1;else if(e=$APP.r(e))$APP.Yc(e)?(k=$APP.Db(e),e=$APP.Eb(e),h=k,k=$APP.w(k)):(k=$APP.t(e),h=$APP.B(k,0,null),k=$APP.B(k,1,null),d.appendChild(m2(k,h)),e=$APP.v(e),h=null,k=0),f=0;else break;c.replaceChildren();c.appendChild(d)}c=$APP.l($APP.l(a,"__xCodeRefs"),
13
- "expander");e=C2.i(b);d=$APP.n(e)?$APP.p(p2.i(b)):e;$APP.Zi(a,"data-collapsible",e);$APP.Zi(a,"data-collapsed",d);$APP.n(d)?(h=$APP.G(b),e=$APP.C(h,E2),h=$APP.C(h,F2),e=$APP.uo.j(0,e-h),e="Show "+$APP.P.i(e)+" more "+$APP.P.i($APP.z.j(1,e)?"line":"lines")):e="Show less";c.textContent=e;$APP.T(c,"aria-expanded",$APP.n(d)?"false":"true");c=$APP.l($APP.l(a,"__xCodeRefs"),"scroll");d=$APP.I("",$APP.et.i(b))?$APP.et.i(b):$APP.I("",D2.i(b))?""+$APP.P.i(D2.i(b))+" code":"Code";$APP.T(c,"aria-label",d);a=
14
- $APP.Q(a,"__xCodeModel",b)}else a=null;return a}return null},Vna=function(a){for(var b=$APP.l(a,"__xCodeRefs"),c=$APP.r(Una),d=null,e=0,f=0;;)if(f<e){var h=d.C(null,f),k=$APP.B(h,0,null),m=$APP.B(h,1,null),q=$APP.B(h,2,null),u=$APP.l(b,k);u.addEventListener(m,function(A,E,H,N,S,R,Y,ka,ha){return function(na){return ha.j?ha.j(a,na):ha.call(null,a,na)}}(c,d,e,f,u,h,k,m,q,b));f+=1}else if(u=$APP.r(c)){h=u;if($APP.Yc(h))c=$APP.Db(h),f=$APP.Eb(h),d=c,e=$APP.w(c),c=f;else{var x=$APP.t(h);k=$APP.B(x,0,null);
15
- m=$APP.B(x,1,null);q=$APP.B(x,2,null);var y=$APP.l(b,k);y.addEventListener(m,function(A,E,H,N,S,R,Y,ka,ha){return function(na){return ha.j?ha.j(a,na):ha.call(null,a,na)}}(c,d,e,f,y,x,k,m,q,h,u,b));c=$APP.v(h);d=null;e=0}f=0}else break},Wna=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.n(b))return b;b=new MutationObserver(function(){return G2(a)});$APP.Q(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},Xna=function(a){$APP.lj(a,"language",
16
- "language","");$APP.lj(a,"filename","filename","");$APP.ij(a,"showCopy","show-copy");$APP.ij(a,"lineNumbers","line-numbers");$APP.ij(a,"wrap","wrap");$APP.ij(a,"expanded","expanded");$APP.nj(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return k2(this)},set:function(b){typeof b==="string"?$APP.Q(this,"__xCodeCodeValue",b):$APP.Q(this,"__xCodeCodeValue");return G2(this)}});Object.defineProperty(a,"expand",{configurable:!0,enumerable:!0,writable:!0,
17
- value:function(){return $APP.T(this,"expanded","")}});return Object.defineProperty(a,"collapse",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.U(this,"expanded")}})},$na=function(a){if(!$APP.n($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"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("x-copy");
18
- $APP.T(e,"part","header");$APP.T(f,"part","filename");$APP.T(h,"part","language");$APP.T(k,"part","copy-wrap");$APP.T(m,"part","copy");$APP.T(m,"show-tooltip","false");m.appendChild(document.createTextNode("Copy"));k.appendChild(m);e.appendChild(f);e.appendChild(h);e.appendChild(k);e=new $APP.M(null,5,[$APP.xq,e,$APP.et,f,H2,h,I2,k,$APP.bu,m],null);f=document.createElement("div");h=document.createElement("div");k=document.createElement("pre");m=document.createElement("code");var q=document.createElement("div");
19
- $APP.T(f,"part","body");$APP.T(h,"part","scroll");$APP.T(h,"role","region");$APP.T(h,"tabindex","0");$APP.T(k,"part","pre");$APP.T(m,"part","code");$APP.T(q,"part","fade");$APP.T(q,"aria-hidden","true");k.appendChild(m);h.appendChild(k);f.appendChild(h);f.appendChild(q);f=new $APP.M(null,5,[$APP.Fq,f,$APP.Hr,h,Yna,k,n2,m,Zna,q],null);h=document.createElement("button");$APP.T(h,"part","expander");$APP.T(h,"type","button");c.textContent=":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: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;}@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: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:1px solid var(--x-code-border);font-size:0.75rem;}:host([data-header]) [part\x3dheader]{display:flex;}[part\x3dfilename]{font-weight: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: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:1px solid var(--x-code-border);padding:0.45rem;background:var(--x-code-bg);color:var(--x-code-accent);font:inherit;font-size:0.75rem;cursor:pointer;text-align:center;transition:background 120ms 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;}}";
20
- $APP.T(d,"part","container");d.appendChild($APP.xq.i(e));d.appendChild($APP.Fq.i(f));d.appendChild(h);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xCodeRefs",{filename:$APP.et.i(e),lang:H2.i(e),cwrap:I2.i(e),copy:$APP.bu.i(e),scroll:$APP.Hr.i(f),code:n2.i(f),expander:h});Vna(a)}Wna(a);return G2(a)},aoa=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.n(a)?a.disconnect():null},boa=function(a,b,c,d){return $APP.I(c,d)?G2(a):null},J2=function(){$APP.qm();return $APP.xi("x-code",new $APP.M(null,
21
- 5,[$APP.hi,coa,$APP.fi,$na,$APP.ci,aoa,$APP.bi,boa,$APP.gi,Xna],null))},i2=new $APP.F(null,"plain","plain",1368629269),K2=new $APP.F(null,"number","number",1570378438),doa=new $APP.F(null,"entity","entity",-450970276),t2=new $APP.F(null,"code-raw","code-raw",1397705045),eoa=new $APP.F(null,"attr-value","attr-value",2093232352),L2=new $APP.F(null,"punct","punct",1807261997),s2=new $APP.F(null,"max-lines-raw","max-lines-raw",-947227469),r2=new $APP.F(null,"wrap?","wrap?",-1677427054),I2=new $APP.F(null,
22
- "cwrap","cwrap",-648244090),H2=new $APP.F(null,"lang","lang",-1819677104),q2=new $APP.F(null,"lines","lines",-700165781),g2=new $APP.F(null,"types","types",590030639),foa=new $APP.F(null,"property","property",-1114278232),B2=new $APP.F(null,"header?","header?",-106649173),goa=new $APP.F(null,"expanded","expanded",-3020742),M2=new $APP.F(null,"comment","comment",532206069),N2=new $APP.F(null,"string","string",-1989541586),o2=new $APP.F(null,"language","language",-1591107564),hoa=new $APP.F(null,"atrule",
23
- "atrule",-521152778),u2=new $APP.F(null,"show-copy?","show-copy?",604953882),p2=new $APP.F(null,"expanded?","expanded?",2055832296),C2=new $APP.F(null,"collapsible?","collapsible?",-1508197779),O2=new $APP.F(null,"keyword","keyword",811389747),n2=new $APP.F(null,"code","code",1586293142),F2=new $APP.F(null,"max-lines","max-lines",-125998785),Zna=new $APP.F(null,"fade","fade",1167694157),D2=new $APP.F(null,"language-label","language-label",-733379621),w2=new $APP.F(null,"language-raw","language-raw",
24
- -402825953),v2=new $APP.F(null,"line-numbers?","line-numbers?",1919907771),E2=new $APP.F(null,"line-count","line-count",871713181),Yna=new $APP.F(null,"pre","pre",2118456869);var coa="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),Pna=$APP.Eg(" json js xml mjs css svg jsx htm text plain txt javascript html".split(" "),"text json js html js css html js html text text text js html".split(" "));$APP.he(["x-code-copy",new $APP.M(null,2,[$APP.yt,!1,$APP.V,new $APP.M(null,1,[n2,$APP.X],null)],null),"x-code-toggle",new $APP.M(null,2,[$APP.yt,!1,$APP.V,new $APP.M(null,1,[goa,$APP.qj],null)],null)]);
25
- var ioa=new $APP.J(null,5,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[$APP.qr,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.J(null,2,5,$APP.K,[N2,/"(?:[^"\\]|\\.)*"/],null),new $APP.J(null,2,5,$APP.K,[K2,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[O2,/\b(?:true|false|null)\b/],null),new $APP.J(null,2,5,$APP.K,[L2,/[{}\[\]:,]/],null)],null),joa=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[M2,/\/\*[\s\S]*?\*\//],null),new $APP.J(null,2,5,$APP.K,[N2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],
26
- null),new $APP.J(null,2,5,$APP.K,[hoa,/@[\w-]+/],null),new $APP.J(null,2,5,$APP.K,[foa,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.J(null,2,5,$APP.K,[K2,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.J(null,2,5,$APP.K,[L2,/[{}();:,]/],null)],null),koa=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[M2,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.J(null,2,5,$APP.K,[$APP.Kq,/<![^>]*>/],null),new $APP.J(null,2,5,$APP.K,[$APP.Kq,/<\/?[A-Za-z][\w-]*/],null),new $APP.J(null,2,5,$APP.K,[eoa,
27
- /"[^"]*"|'[^']*'/],null),new $APP.J(null,2,5,$APP.K,[doa,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.J(null,2,5,$APP.K,[L2,/[<>\/=]/],null)],null),x2=h2(new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[M2,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.J(null,2,5,$APP.K,[$APP.ru,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.J(null,2,5,$APP.K,[N2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.J(null,2,5,$APP.K,[O2,/\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/],
28
- null),new $APP.J(null,2,5,$APP.K,[K2,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[L2,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null)),y2=h2(ioa),z2=h2(joa),A2=h2(koa);var Una=new $APP.J(null,2,5,$APP.K,[new $APP.J(null,3,5,$APP.K,["expander","click",function(a){var b=$APP.p(p2.i($APP.l(a,"__xCodeModel")));b?$APP.T(a,"expanded",""):$APP.U(a,"expanded");return $APP.dj(a,"x-code-toggle",{expanded:b})}],null),new $APP.J(null,3,5,$APP.K,["copy","x-copy-success",function(a){return $APP.dj(a,"x-code-copy",{code:n2.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.fa("baredom.exports.x_code.init",J2);export const init=J2;
2
+ var U1=function(a){return $APP.Lc(xpa,typeof a==="string"?a.trim().toLowerCase():null,"text")},V1=function(a){return $APP.z.j("",a.trim())},ypa=function(a){return $APP.w($APP.Ah(/^[\t ]*/,a))},zpa=function(a){var b=$APP.bf(a.split("\n")),c=$APP.Fe(V1,b),d=$APP.q(c)?$APP.pd($APP.po,$APP.ye.j(ypa,c)):0;return d>0?$APP.Di("\n",$APP.ye.j(function(e){return $APP.w(e)>=d?e.substring(d):e},b)):a},Apa=function(a){var b=$APP.bf(a.split("\n")),c=$APP.w(b),d=function(){for(var e=0;;)if(e<c&&V1($APP.zc(b,e)))e+=
3
+ 1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&V1($APP.zc(b,e)))--e;else return e}();return d<=a?$APP.Di("\n",$APP.hf(null,b,d|0,a+1|0,null)):""},W1=function(a){return typeof a==="string"?zpa(Apa($APP.Ci(a,/\r\n?/,"\n"))):""},Y1=function(a){return new $APP.M(null,2,[$APP.lt,$APP.Di("|",$APP.ye.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.P.i(b.source)+")"},a)),X1,$APP.He($APP.t,a)],null)},$1=function(a,b,c){b=new RegExp(b,"g");for(var d=$APP.w(c),e=$APP.w(a),f=$APP.yb($APP.Ge),
4
+ h=0;;){var k=b.exec(a);if(k==null)return $APP.Ud(h<e?$APP.Vd(f,new $APP.J(null,2,5,$APP.K,[Z1,a.substring(h)],null)):f);var m=k[0],r=k.index;a:{for(var u=1;;){if(u>d){k=1;break a}if(k[u]!=null){k=u;break a}u+=1}k=void 0}k=$APP.zc(c,k-1);h=r>h?new $APP.J(null,2,5,$APP.K,[Z1,a.substring(h,r)],null):null;r+=m.length;m.length===0&&(b.lastIndex+=1);f=$APP.n(h)?$APP.zb(f,h):f;f=m=$APP.Vd(f,new $APP.J(null,2,5,$APP.K,[k,m],null));h=r}},Bpa=function(a){a=$APP.q(a);for(var b=$APP.Ge,c=$APP.Ge;;){if(a==null)return $APP.Cd.j(c,
5
+ b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),h=$APP.bf(f.split("\n")),k=$APP.w(h);if($APP.z.j(k,1))a=$APP.v(a),b=$APP.Cd.j(b,new $APP.J(null,2,5,$APP.K,[e,f],null));else{var m=$APP.v(a),r=new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[e,$APP.Rc(h)],null)],null);c=$APP.Kf.j($APP.Cd.j(c,$APP.Cd.j(b,new $APP.J(null,2,5,$APP.K,[e,$APP.t(h)],null))),$APP.ye.j(function(u,x,y,A,E){return function(H){return new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[E,H],null)],null)}}(a,
6
+ b,c,d,e,f,h,k),$APP.hf(null,h,1,k-1|0,null)));a=m;b=r}}},a2=function(a){var b=$APP.l(a,"__xCodeCodeValue");if(typeof b==="string")return b;a=$APP.n(a.hasAttribute("code"))?a.getAttribute("code"):a.textContent;return $APP.n(a)?a:""},b2=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.z.j(Z1,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.P.i($APP.kh(b));c.textContent=a;return c},c2=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),
7
+ e=document.createElement("span");$APP.T(c,"part","line");$APP.T(d,"part","gutter");$APP.T(d,"aria-hidden","true");d.textContent=""+$APP.P.i(b+1);$APP.T(e,"part","line-content");a=$APP.q(a);b=null;for(var f=0,h=0;;)if(h<f){var k=b.C(null,h);$APP.I("",$APP.Hc(k))&&e.appendChild(b2(k));h+=1}else if(a=$APP.q(a))b=a,$APP.$c(b)?(a=$APP.Fb(b),h=$APP.Gb(b),b=a,f=$APP.w(a),a=h):(a=$APP.t(b),$APP.I("",$APP.Hc(a))&&e.appendChild(b2(a)),a=$APP.v(b),b=null,f=0),h=0;else break;c.appendChild(d);c.appendChild(e);
8
+ return c},w2=function(a){if($APP.n($APP.l(a,"__xCodeRefs"))){var b=a2(a);var c=a.getAttribute("language"),d=$APP.l(a,"__xCodeModel"),e=$APP.n(d)?$APP.z.j(W1(b),d2.i(d))&&$APP.z.j(U1(c),e2.i(d)):d;b=$APP.Gg([$APP.hq,f2,g2,h2,i2,j2,k2,l2,m2],[a.getAttribute("filename"),a.hasAttribute("expanded"),$APP.n(e)?g2.i(d):null,a.hasAttribute("wrap"),a.getAttribute("max-lines"),b,a.hasAttribute("show-copy"),a.hasAttribute("line-numbers"),c]);e=$APP.G(b);var f=$APP.C(e,k2);b=$APP.C(e,l2);c=$APP.C(e,m2);var h=
9
+ $APP.C(e,$APP.hq),k=$APP.C(e,f2),m=$APP.C(e,g2);d=$APP.C(e,h2);var r=$APP.C(e,i2);e=$APP.C(e,j2);c=U1(c);e=W1(e);h=typeof h==="string"?h.trim():null;h=$APP.n($APP.n(h)?$APP.I("",h):h)?h:"";typeof r==="string"?(r=parseInt(r,10),r=$APP.p(isNaN(r))&&r>0?r:0):r=0;$APP.n(m)||(m=""+$APP.P.i(e),m=$APP.z.j("",m)?$APP.Ge:$APP.z.j(c,"js")?$1(m,$APP.lt.i(n2),X1.i(n2)):$APP.z.j(c,"json")?$1(m,$APP.lt.i(o2),X1.i(o2)):$APP.z.j(c,"css")?$1(m,$APP.lt.i(p2),X1.i(p2)):$APP.z.j(c,"html")?$1(m,$APP.lt.i(q2),X1.i(q2)):
10
+ new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[Z1,m],null)],null),m=Bpa(m));var u=$APP.w(m);f=$APP.D(f);k=$APP.D(k);var x=$APP.D(f||$APP.I("",h)),y=$APP.D(r>0&&u>r);d=$APP.D(d);b=$APP.D(b);var A=$APP.z.j(c,"text")?"":c.toUpperCase();b=$APP.Gg([f2,g2,r2,s2,$APP.Jt,h2,e2,d2,k2,l2,t2,u2,v2],[k,m,x,y,h,d,c,e,f,b,A,u,r]);if($APP.I(b,$APP.l(a,"__xCodeModel"))){c=a.style;c.setProperty("--x-code-max-lines",""+$APP.P.i(v2.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.P.i($APP.Wo.j(2,(""+$APP.P.i(u2.i(b))).length)));
11
+ h=$APP.l(a,"__xCodeRefs");c=$APP.l(h,"filename");d=$APP.l(h,"lang");e=$APP.l(h,"cwrap");h=$APP.l(h,"copy");k=$APP.I("",$APP.Jt.i(b));f=!k&&$APP.I("",t2.i(b));$APP.cj(a,"data-header",r2.i(b));c.textContent=$APP.Jt.i(b);c.style.display=k?"block":"none";d.textContent=t2.i(b);d.style.display=f?"block":"none";e.style.display=$APP.n(k2.i(b))?"inline-flex":"none";$APP.T(h,"text",d2.i(b));c=$APP.l(a,"__xCodeModel");if($APP.I($APP.ah(b,new $APP.J(null,2,5,$APP.K,[d2,e2],null)),$APP.ah(c,new $APP.J(null,2,
12
+ 5,$APP.K,[d2,e2],null)))){c=$APP.l($APP.l(a,"__xCodeRefs"),"code");d=document.createDocumentFragment();e=$APP.q($APP.se($APP.co,g2.i(b)));h=null;for(f=k=0;;)if(f<k)m=h.C(null,f),r=$APP.B(m,0,null),m=$APP.B(m,1,null),d.appendChild(c2(m,r)),f+=1;else if(e=$APP.q(e))$APP.$c(e)?(k=$APP.Fb(e),e=$APP.Gb(e),h=k,k=$APP.w(k)):(k=$APP.t(e),h=$APP.B(k,0,null),k=$APP.B(k,1,null),d.appendChild(c2(k,h)),e=$APP.v(e),h=null,k=0),f=0;else break;c.replaceChildren();c.appendChild(d)}c=$APP.l($APP.l(a,"__xCodeRefs"),
13
+ "expander");e=s2.i(b);d=$APP.n(e)?$APP.p(f2.i(b)):e;$APP.cj(a,"data-collapsible",e);$APP.cj(a,"data-collapsed",d);$APP.n(d)?(h=$APP.G(b),e=$APP.C(h,u2),h=$APP.C(h,v2),e=$APP.Wo.j(0,e-h),e="Show "+$APP.P.i(e)+" more "+$APP.P.i($APP.z.j(1,e)?"line":"lines")):e="Show less";c.textContent=e;$APP.T(c,"aria-expanded",$APP.n(d)?"false":"true");c=$APP.l($APP.l(a,"__xCodeRefs"),"scroll");d=$APP.I("",$APP.Jt.i(b))?$APP.Jt.i(b):$APP.I("",t2.i(b))?""+$APP.P.i(t2.i(b))+" code":"Code";$APP.T(c,"aria-label",d);a=
14
+ $APP.Q(a,"__xCodeModel",b)}else a=null;return a}return null},Dpa=function(a){for(var b=$APP.l(a,"__xCodeRefs"),c=$APP.q(Cpa),d=null,e=0,f=0;;)if(f<e){var h=d.C(null,f),k=$APP.B(h,0,null),m=$APP.B(h,1,null),r=$APP.B(h,2,null),u=$APP.l(b,k);u.addEventListener(m,function(A,E,H,O,S,R,Z,ka,ha){return function(na){return ha.j?ha.j(a,na):ha.call(null,a,na)}}(c,d,e,f,u,h,k,m,r,b));f+=1}else if(u=$APP.q(c)){h=u;if($APP.$c(h))c=$APP.Fb(h),f=$APP.Gb(h),d=c,e=$APP.w(c),c=f;else{var x=$APP.t(h);k=$APP.B(x,0,null);
15
+ m=$APP.B(x,1,null);r=$APP.B(x,2,null);var y=$APP.l(b,k);y.addEventListener(m,function(A,E,H,O,S,R,Z,ka,ha){return function(na){return ha.j?ha.j(a,na):ha.call(null,a,na)}}(c,d,e,f,y,x,k,m,r,h,u,b));c=$APP.v(h);d=null;e=0}f=0}else break},Epa=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.n(b))return b;b=new MutationObserver(function(){return w2(a)});$APP.Q(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},Fpa=function(a){$APP.pj(a,"language",
16
+ "language","");$APP.pj(a,"filename","filename","");$APP.mj(a,"showCopy","show-copy");$APP.mj(a,"lineNumbers","line-numbers");$APP.mj(a,"wrap","wrap");$APP.mj(a,"expanded","expanded");$APP.rj(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return a2(this)},set:function(b){typeof b==="string"?$APP.Q(this,"__xCodeCodeValue",b):$APP.Q(this,"__xCodeCodeValue");return w2(this)}});Object.defineProperty(a,"expand",{configurable:!0,enumerable:!0,writable:!0,
17
+ value:function(){return $APP.T(this,"expanded","")}});return Object.defineProperty(a,"collapse",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.U(this,"expanded")}})},Ipa=function(a){if(!$APP.n($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"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("x-copy");
18
+ $APP.T(e,"part","header");$APP.T(f,"part","filename");$APP.T(h,"part","language");$APP.T(k,"part","copy-wrap");$APP.T(m,"part","copy");$APP.T(m,"show-tooltip","false");m.appendChild(document.createTextNode("Copy"));k.appendChild(m);e.appendChild(f);e.appendChild(h);e.appendChild(k);e=new $APP.M(null,5,[$APP.ar,e,$APP.Jt,f,x2,h,y2,k,$APP.Ku,m],null);f=document.createElement("div");h=document.createElement("div");k=document.createElement("pre");m=document.createElement("code");var r=document.createElement("div");
19
+ $APP.T(f,"part","body");$APP.T(h,"part","scroll");$APP.T(h,"role","region");$APP.T(h,"tabindex","0");$APP.T(k,"part","pre");$APP.T(m,"part","code");$APP.T(r,"part","fade");$APP.T(r,"aria-hidden","true");k.appendChild(m);h.appendChild(k);f.appendChild(h);f.appendChild(r);f=new $APP.M(null,5,[$APP.ir,f,$APP.ms,h,Gpa,k,d2,m,Hpa,r],null);h=document.createElement("button");$APP.T(h,"part","expander");$APP.T(h,"type","button");c.textContent=":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: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;}@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: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:1px solid var(--x-code-border);font-size:0.75rem;}:host([data-header]) [part\x3dheader]{display:flex;}[part\x3dfilename]{font-weight: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: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:1px solid var(--x-code-border);padding:0.45rem;background:var(--x-code-bg);color:var(--x-code-accent);font:inherit;font-size:0.75rem;cursor:pointer;text-align:center;transition:background 120ms 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;}}";
20
+ $APP.T(d,"part","container");d.appendChild($APP.ar.i(e));d.appendChild($APP.ir.i(f));d.appendChild(h);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xCodeRefs",{filename:$APP.Jt.i(e),lang:x2.i(e),cwrap:y2.i(e),copy:$APP.Ku.i(e),scroll:$APP.ms.i(f),code:d2.i(f),expander:h});Dpa(a)}Epa(a);return w2(a)},Jpa=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.n(a)?a.disconnect():null},Kpa=function(a,b,c,d){return $APP.I(c,d)?w2(a):null},z2=function(){$APP.vm();return $APP.zi("x-code",new $APP.M(null,
21
+ 5,[$APP.ji,Lpa,$APP.hi,Ipa,$APP.ei,Jpa,$APP.di,Kpa,$APP.ii,Fpa],null))},Z1=new $APP.F(null,"plain","plain",1368629269),A2=new $APP.F(null,"number","number",1570378438),Mpa=new $APP.F(null,"entity","entity",-450970276),j2=new $APP.F(null,"code-raw","code-raw",1397705045),Npa=new $APP.F(null,"attr-value","attr-value",2093232352),B2=new $APP.F(null,"punct","punct",1807261997),i2=new $APP.F(null,"max-lines-raw","max-lines-raw",-947227469),h2=new $APP.F(null,"wrap?","wrap?",-1677427054),y2=new $APP.F(null,
22
+ "cwrap","cwrap",-648244090),x2=new $APP.F(null,"lang","lang",-1819677104),g2=new $APP.F(null,"lines","lines",-700165781),X1=new $APP.F(null,"types","types",590030639),Opa=new $APP.F(null,"property","property",-1114278232),r2=new $APP.F(null,"header?","header?",-106649173),Ppa=new $APP.F(null,"expanded","expanded",-3020742),C2=new $APP.F(null,"comment","comment",532206069),D2=new $APP.F(null,"string","string",-1989541586),e2=new $APP.F(null,"language","language",-1591107564),Qpa=new $APP.F(null,"atrule",
23
+ "atrule",-521152778),k2=new $APP.F(null,"show-copy?","show-copy?",604953882),f2=new $APP.F(null,"expanded?","expanded?",2055832296),s2=new $APP.F(null,"collapsible?","collapsible?",-1508197779),E2=new $APP.F(null,"keyword","keyword",811389747),d2=new $APP.F(null,"code","code",1586293142),v2=new $APP.F(null,"max-lines","max-lines",-125998785),Hpa=new $APP.F(null,"fade","fade",1167694157),t2=new $APP.F(null,"language-label","language-label",-733379621),m2=new $APP.F(null,"language-raw","language-raw",
24
+ -402825953),l2=new $APP.F(null,"line-numbers?","line-numbers?",1919907771),u2=new $APP.F(null,"line-count","line-count",871713181),Gpa=new $APP.F(null,"pre","pre",2118456869);var Lpa="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),xpa=$APP.Gg(" json js xml mjs css svg jsx htm text plain txt javascript html".split(" "),"text json js html js css html js html text text text js html".split(" "));$APP.je(["x-code-copy",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,1,[d2,$APP.X],null)],null),"x-code-toggle",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,1,[Ppa,$APP.vj],null)],null)]);
25
+ var Rpa=new $APP.J(null,5,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[$APP.Vr,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.J(null,2,5,$APP.K,[D2,/"(?:[^"\\]|\\.)*"/],null),new $APP.J(null,2,5,$APP.K,[A2,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[E2,/\b(?:true|false|null)\b/],null),new $APP.J(null,2,5,$APP.K,[B2,/[{}\[\]:,]/],null)],null),Spa=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[C2,/\/\*[\s\S]*?\*\//],null),new $APP.J(null,2,5,$APP.K,[D2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],
26
+ null),new $APP.J(null,2,5,$APP.K,[Qpa,/@[\w-]+/],null),new $APP.J(null,2,5,$APP.K,[Opa,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.J(null,2,5,$APP.K,[A2,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.J(null,2,5,$APP.K,[B2,/[{}();:,]/],null)],null),Tpa=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[C2,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.J(null,2,5,$APP.K,[$APP.nr,/<![^>]*>/],null),new $APP.J(null,2,5,$APP.K,[$APP.nr,/<\/?[A-Za-z][\w-]*/],null),new $APP.J(null,2,5,$APP.K,[Npa,
27
+ /"[^"]*"|'[^']*'/],null),new $APP.J(null,2,5,$APP.K,[Mpa,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.J(null,2,5,$APP.K,[B2,/[<>\/=]/],null)],null),n2=Y1(new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[C2,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.J(null,2,5,$APP.K,[$APP.dv,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.J(null,2,5,$APP.K,[D2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.J(null,2,5,$APP.K,[E2,/\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/],
28
+ null),new $APP.J(null,2,5,$APP.K,[A2,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[B2,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null)),o2=Y1(Rpa),p2=Y1(Spa),q2=Y1(Tpa);var Cpa=new $APP.J(null,2,5,$APP.K,[new $APP.J(null,3,5,$APP.K,["expander","click",function(a){var b=$APP.p(f2.i($APP.l(a,"__xCodeModel")));b?$APP.T(a,"expanded",""):$APP.U(a,"expanded");return $APP.hj(a,"x-code-toggle",{expanded:b})}],null),new $APP.J(null,3,5,$APP.K,["copy","x-copy-success",function(a){return $APP.hj(a,"x-code-copy",{code:d2.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.fa("baredom.exports.x_code.init",z2);export const init=z2;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var a$=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},c$=function(a){a=b$.i($APP.l(a,"__xCollapseModel"));return $APP.n(a)?a:300},d$=function(a){a.style.height="";return a.style.transition=""},e$=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.P.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return d$(a)},d+80);return a.addEventListener("transitionend",function h(){clearTimeout(e);
3
- d$(a);return a.removeEventListener("transitionend",h)})},h$=function(a){if($APP.n($APP.l(a,"__xCollapseRefs"))){var b=new $APP.M(null,4,[$APP.Hp,a.hasAttribute("open"),$APP.zj,a.hasAttribute("disabled"),f$,a.getAttribute("header"),g$,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.Hp);var d=$APP.C(c,$APP.zj),e=$APP.C(c,f$);c=$APP.C(c,g$);b=$APP.D(b);d=$APP.D(d);e=$APP.n(e)?e:"";$APP.n(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.n(c)?$APP.uo.j(0,$APP.co.j(2E3,
4
- c)):300;b=new $APP.M(null,4,[$APP.Zt,b,$APP.Sj,d,$APP.xq,e,b$,c],null);$APP.I($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.n(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.xq),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.Zt),c=$APP.C(c,$APP.Sj),$APP.T(d,"aria-expanded",$APP.n(e)?"true":"false"),$APP.n(c)?($APP.T(d,"disabled",""),$APP.T(d,"aria-disabled","true")):($APP.U(d,"disabled"),$APP.U(d,"aria-disabled")),a=$APP.Q(a,"__xCollapseModel",b)):
5
- a=null):a=null;return a}return null},i$=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.fj(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.T(a,"open",""):$APP.U(a,"open"),$APP.dj(a,"x-collapse-change",{open:c})):null},jta=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){b=$APP.l(b,"trigger");var c=function(){return i$(a,"pointer")},d=function(f){var h=f.key;$APP.z.j(h," ")||$APP.z.j(h,"Enter")||$APP.z.j(h,"Space")?(f.preventDefault(),
6
- f=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)}},j$=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.n(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},kta=function(a){if(!$APP.n($APP.l(a,"__xCollapseRefs"))){var b=
7
- a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),q=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:1px solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
8
- $APP.T(d,"part","container");$APP.T(e,"part","trigger");$APP.T(e,"type","button");$APP.T(e,"id","trigger");$APP.T(e,"aria-controls","panel");$APP.T(f,"part","header-text");$APP.T(h,"part","chevron");$APP.T(h,"aria-hidden","true");$APP.T(k,"part","content");$APP.T(k,"id","panel");$APP.T(k,"role","region");$APP.T(k,"aria-labelledby","trigger");$APP.T(m,"part","content-inner");$APP.T(q,"name","content");h.textContent="▼";e.appendChild(f);e.appendChild(h);m.appendChild(q);k.appendChild(m);d.appendChild(e);
9
- 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)}j$(a);jta(a);return h$(a)},lta=function(a){return j$(a)},mta=function(a,b,c,d){return $APP.I(c,d)&&(h$(a),$APP.z.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.n(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.n(b)?$APP.n(c)?$APP.n(a$())?a=d$(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.P.i(b.scrollHeight)+"px",a=e$(b,"0px",c,c$(a))):$APP.n(a$())?
10
- (b.style.height="0px",a=b.style.transition=""):(c=""+$APP.P.i(b.offsetHeight)+"px",a=e$(b,c,"0px",c$(a))):a=null,a):null},ota=function(a){$APP.sj(a,nta);return Object.defineProperty(a,"toggle",{value:function(){return i$(this,"programmatic")},writable:!0,configurable:!0})},k$=function(){return $APP.xi("x-collapse",new $APP.M(null,5,[$APP.hi,pta,$APP.fi,kta,$APP.ci,lta,$APP.bi,mta,$APP.gi,ota],null))},f$=new $APP.F(null,"header-raw","header-raw",41484),g$=new $APP.F(null,"duration-ms-raw","duration-ms-raw",
11
- -2138819526),b$=new $APP.F(null,"duration-ms","duration-ms",1993555055);var pta=["open","disabled","header","duration-ms"],nta=new $APP.M(null,4,[$APP.ut,new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"open"],null),$APP.um,new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),$APP.xq,new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"header"],null),new $APP.F(null,"durationMs","durationMs",1439579766),new $APP.M(null,3,[$APP.O,$APP.Z,$APP.W,"duration-ms",$APP.rj,300],null)],null);
12
- $APP.he(["x-collapse-toggle",new $APP.M(null,2,[$APP.yt,!0,$APP.V,new $APP.M(null,2,[$APP.ut,$APP.qj,$APP.Hs,$APP.X],null)],null),"x-collapse-change",new $APP.M(null,2,[$APP.yt,!1,$APP.V,new $APP.M(null,1,[$APP.ut,$APP.qj],null)],null)]);$APP.fa("baredom.exports.x_collapse.init",k$);export const init=k$;
2
+ var W9=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},Y9=function(a){a=X9.i($APP.l(a,"__xCollapseModel"));return $APP.n(a)?a:300},Z9=function(a){a.style.height="";return a.style.transition=""},$9=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.P.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return Z9(a)},d+80);return a.addEventListener("transitionend",function h(){clearTimeout(e);
3
+ Z9(a);return a.removeEventListener("transitionend",h)})},c$=function(a){if($APP.n($APP.l(a,"__xCollapseRefs"))){var b=new $APP.M(null,4,[$APP.jq,a.hasAttribute("open"),$APP.Ej,a.hasAttribute("disabled"),a$,a.getAttribute("header"),b$,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.jq);var d=$APP.C(c,$APP.Ej),e=$APP.C(c,a$);c=$APP.C(c,b$);b=$APP.D(b);d=$APP.D(d);e=$APP.n(e)?e:"";$APP.n(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.n(c)?$APP.Wo.j(0,$APP.po.j(2E3,
4
+ c)):300;b=new $APP.M(null,4,[$APP.Hu,b,$APP.Xj,d,$APP.ar,e,X9,c],null);$APP.I($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.n(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.ar),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.Hu),c=$APP.C(c,$APP.Xj),$APP.T(d,"aria-expanded",$APP.n(e)?"true":"false"),$APP.n(c)?($APP.T(d,"disabled",""),$APP.T(d,"aria-disabled","true")):($APP.U(d,"disabled"),$APP.U(d,"aria-disabled")),a=$APP.Q(a,"__xCollapseModel",b)):
5
+ a=null):a=null;return a}return null},d$=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.jj(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.T(a,"open",""):$APP.U(a,"open"),$APP.hj(a,"x-collapse-change",{open:c})):null},$ua=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){b=$APP.l(b,"trigger");var c=function(){return d$(a,"pointer")},d=function(f){var h=f.key;$APP.z.j(h," ")||$APP.z.j(h,"Enter")||$APP.z.j(h,"Space")?(f.preventDefault(),
6
+ f=d$(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)}},e$=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.n(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},ava=function(a){if(!$APP.n($APP.l(a,"__xCollapseRefs"))){var b=
7
+ a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),r=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:1px solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
8
+ $APP.T(d,"part","container");$APP.T(e,"part","trigger");$APP.T(e,"type","button");$APP.T(e,"id","trigger");$APP.T(e,"aria-controls","panel");$APP.T(f,"part","header-text");$APP.T(h,"part","chevron");$APP.T(h,"aria-hidden","true");$APP.T(k,"part","content");$APP.T(k,"id","panel");$APP.T(k,"role","region");$APP.T(k,"aria-labelledby","trigger");$APP.T(m,"part","content-inner");$APP.T(r,"name","content");h.textContent="▼";e.appendChild(f);e.appendChild(h);m.appendChild(r);k.appendChild(m);d.appendChild(e);
9
+ 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)}e$(a);$ua(a);return c$(a)},bva=function(a){return e$(a)},cva=function(a,b,c,d){return $APP.I(c,d)&&(c$(a),$APP.z.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.n(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.n(b)?$APP.n(c)?$APP.n(W9())?a=Z9(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.P.i(b.scrollHeight)+"px",a=$9(b,"0px",c,Y9(a))):$APP.n(W9())?
10
+ (b.style.height="0px",a=b.style.transition=""):(c=""+$APP.P.i(b.offsetHeight)+"px",a=$9(b,c,"0px",Y9(a))):a=null,a):null},eva=function(a){$APP.xj(a,dva);return Object.defineProperty(a,"toggle",{value:function(){return d$(this,"programmatic")},writable:!0,configurable:!0})},f$=function(){return $APP.zi("x-collapse",new $APP.M(null,5,[$APP.ji,fva,$APP.hi,ava,$APP.ei,bva,$APP.di,cva,$APP.ii,eva],null))},a$=new $APP.F(null,"header-raw","header-raw",41484),b$=new $APP.F(null,"duration-ms-raw","duration-ms-raw",
11
+ -2138819526),X9=new $APP.F(null,"duration-ms","duration-ms",1993555055);var fva=["open","disabled","header","duration-ms"],dva=new $APP.M(null,4,[$APP.bu,new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"open"],null),$APP.zm,new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"disabled"],null),$APP.ar,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"header"],null),new $APP.F(null,"durationMs","durationMs",1439579766),new $APP.M(null,3,[$APP.N,$APP.Y,$APP.W,"duration-ms",$APP.wj,300],null)],null);
12
+ $APP.je(["x-collapse-toggle",new $APP.M(null,2,[$APP.fu,!0,$APP.V,new $APP.M(null,2,[$APP.bu,$APP.vj,$APP.lt,$APP.X],null)],null),"x-collapse-change",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,1,[$APP.bu,$APP.vj],null)],null)]);$APP.fa("baredom.exports.x_collapse.init",f$);export const init=f$;
@@ -1,47 +1,47 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var RI=function(a,b){return $APP.co.j($APP.uo.j(a,0),b)},SI=function(a){return $APP.sd(a,360)},TI=function(a){return RI(a,100)},UI=function(a){return RI(a,1)},WI=function(a){var b=typeof a==="string";a=b?$APP.xh(VI,a.trim()):b;return $APP.D(a)},$I=function(a){if(typeof a==="string")if(a=$APP.xh(VI,a.trim()),$APP.n(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.P.i($APP.xc(a,0))+$APP.P.i($APP.xc(a,0)),16),c=parseInt(""+$APP.P.i($APP.xc(a,1))+$APP.P.i($APP.xc(a,
3
- 1)),16),d=parseInt(""+$APP.P.i($APP.xc(a,2))+$APP.P.i($APP.xc(a,2)),16);return new $APP.M(null,4,[XI,b,$APP.at,c,YI,d,ZI,1],null);case 6:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[XI,b,$APP.at,c,YI,d,ZI,1],null);case 8:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[XI,b,$APP.at,c,YI,d,ZI,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
- else return null},gba=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.uo.B(a,b,$APP.Cc([c])),e=$APP.co.B(a,b,$APP.Cc([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.M(null,3,[aJ,0,bJ,0,cJ,f*100],null):new $APP.M(null,3,[aJ,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,bJ,(f>.5?h/(2-d-e):h/(d+e))*100,cJ,f*100],null)},dJ=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},eJ=function(a,b,c){a=SI(a)/360;b=TI(b)/100;c=TI(c)/100;if(b===0)return a=
5
- Math.round(c*255),new $APP.M(null,3,[XI,a,$APP.at,a,YI,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.M(null,3,[XI,Math.round(dJ(c,b,a+1/3)*255),$APP.at,Math.round(dJ(c,b,a)*255),YI,Math.round(dJ(c,b,a-1/3)*255)],null)},fJ=function(a,b,c){function d(e){e=RI(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.P.i(e):e}return"#"+$APP.P.i(d(a))+$APP.P.i(d(b))+$APP.P.i(d(c))},gJ=function(a,b,c,d){function e(f){f=RI(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.P.i(f):f}
6
- return"#"+$APP.P.i(e(a))+$APP.P.i(e(b))+$APP.P.i(e(c))+$APP.P.i(e(UI(d)*255))},iJ=function(a,b,c){b=TI(b)/100;c=TI(c)/100;b=c+b*$APP.co.j(c,1-c);return new $APP.M(null,3,[aJ,SI(a),bJ,(b===0?0:2*(1-c/b))*100,hJ,b*100],null)},jJ=function(a,b,c){b=TI(b)/100;c=TI(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.co.j(b,1-b);return new $APP.M(null,3,[aJ,SI(a),bJ,c*100,cJ,b*100],null)},kJ=function(a,b,c){return 100*(RI(a-b,c)/c)},hba=function(a){return typeof a==="string"&&WI(a)?(a=$I(a),$APP.n(a)?fJ(XI.i(a),
7
- $APP.at.i(a),YI.i(a)):null):"#000000"},jba=function(a){return typeof a==="string"&&$APP.cd(iba,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},kba=function(a){return typeof a==="string"&&$APP.Ji(a)?$APP.If.m($APP.Ee,$APP.wo.m($APP.we.i($APP.Fi),$APP.Be(WI),$APP.we.i(function(b){b=$I(b);var c=$APP.G(b);b=$APP.C(c,XI);var d=$APP.C(c,$APP.at);c=$APP.C(c,YI);return fJ(b,d,c)})),$APP.Di(a,/,/)):$APP.Ee},lba=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.ut),d=$APP.C(b,$APP.um),e=$APP.C(b,$APP.Si);
8
- a=$APP.C(b,$APP.Pj);var f=$APP.C(b,$APP.pj),h=$APP.C(b,$APP.Nl),k=$APP.C(b,lJ),m=$APP.C(b,$APP.Rj),q=$APP.C(b,mJ);b=hba(e);var u=function(){var S=$I(e);return $APP.n(S)?S:$I("#000000")}(),x=$APP.G(u);u=$APP.C(x,XI);var y=$APP.C(x,$APP.at),A=$APP.C(x,YI);x=$APP.C(x,ZI);var E=function(){var S=typeof e==="string";if(S){S=e.trim();var R=$APP.xh(VI,S);return $APP.n(R)?8===$APP.w($APP.Fc($APP.xh(VI,S))):R}return S}();x=$APP.n(E)?x:1;E=gba(u,y,A);var H=$APP.G(E);E=$APP.C(H,aJ);var N=$APP.C(H,bJ);H=$APP.C(H,
9
- cJ);d=$APP.Hi(d);f=$APP.Hi(f);q=q!=null;c=c!=null;h=jba(h);return $APP.Eg([$APP.gl,nJ,$APP.Pj,$APP.Nl,lJ,bJ,cJ,oJ,aJ,$APP.Rj,$APP.Zt,pJ,$APP.Sj,ZI],[f,q,$APP.Ji(a)?a:null,h,kba(k),N,H,b,E,$APP.Ji(m)?m:null,$APP.z.j(h,"popover")&&c,q&&x<1?gJ(u,y,A,x):b,d,x])},qJ=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Sj);b=$APP.C(b,$APP.gl);return $APP.p(a)&&$APP.p(b)},rJ=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"role","slider");$APP.T(a,"tabindex","0");$APP.T(a,"aria-label",c);$APP.T(a,"aria-valuemin","0");
10
- $APP.T(a,"aria-valuemax",d)},sJ=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"type","button");$APP.T(a,"aria-label",c);a.innerHTML=d},tJ=function(a){return lba($APP.Eg([$APP.ut,$APP.um,$APP.Pj,$APP.Si,$APP.pj,$APP.Nl,lJ,$APP.Rj,mJ],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},uJ=function(a,b){var c=pJ.i(b),d=aJ.i(b),
11
- e=bJ.i(b),f=cJ.i(b);b=ZI.i(b);return $APP.dj(a,"x-color-picker-input",$APP.bm(new $APP.M(null,5,[$APP.Si,c,aJ,d,bJ,e,cJ,f,ZI,b],null)))},vJ=function(a,b){var c=pJ.i(b),d=aJ.i(b),e=bJ.i(b),f=cJ.i(b);b=ZI.i(b);return $APP.fj(a,"x-color-picker-change",$APP.bm(new $APP.M(null,5,[$APP.Si,c,aJ,d,bJ,e,cJ,f,ZI,b],null)))},wJ=function(a,b,c,d,e,f){b=eJ(b,c,d);d=$APP.G(b);b=$APP.C(d,XI);c=$APP.C(d,$APP.at);d=$APP.C(d,YI);e=$APP.n($APP.n(f)?e<1:f)?gJ(b,c,d,e):fJ(b,c,d);$APP.T(a,"value",e)},mba=function(a,b,
12
- c,d){if($APP.I($APP.l(a,"__xColorPickerSwatchesCache"),c)){$APP.Q(a,"__xColorPickerSwatchesCache",c);b.innerHTML="";a=$APP.r(c);c=null;for(var e=0,f=0;;)if(f<e){var h=c.C(null,f),k=document.createElement("button");$APP.T(k,"part","swatch");$APP.T(k,"type","button");$APP.T(k,"role","option");$APP.T(k,"aria-label",h);$APP.T(k,"data-color",h);k.style.backgroundColor=h;b.appendChild(k);f+=1}else if(a=$APP.r(a))$APP.Yc(a)?(e=$APP.Db(a),a=$APP.Eb(a),c=e,e=$APP.w(e)):(c=$APP.t(a),e=document.createElement("button"),
13
- $APP.T(e,"part","swatch"),$APP.T(e,"type","button"),$APP.T(e,"role","option"),$APP.T(e,"aria-label",c),$APP.T(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.v(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return $APP.T(m,"aria-selected",$APP.z.j(m.getAttribute("data-color"),d)?"true":"false")})},xJ=function(a){if($APP.n($APP.l(a,"__xColorPickerRefs"))){var b=tJ(a);if($APP.I($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");
14
- if($APP.n(c)){var d=$APP.l(c,"area"),e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),m=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var q=$APP.G(b),u=$APP.C(q,aJ);q=$APP.C(q,$APP.Nl);$APP.T(a,"data-mode",q);a.style.setProperty("--_x-cp-hue",""+$APP.P.i(Math.round(u)));q=$APP.G(b);var x=$APP.C(q,aJ),y=$APP.C(q,bJ),A=$APP.C(q,cJ);u=$APP.C(q,ZI);q=$APP.C(q,$APP.Rj);y=iJ(x,y,A);var E=$APP.G(y);y=$APP.C(E,bJ);E=$APP.C(E,hJ);E=new $APP.M(null,2,
15
- [$APP.Xs,TI(y),$APP.Ws,100-TI(E)],null);d.style.setProperty("--_x-cp-area-x",""+$APP.P.i($APP.Xs.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.P.i($APP.Ws.i(E).toFixed(2))+"%");x="Hue "+$APP.P.i(Math.round(x))+", Saturation "+$APP.P.i(Math.round(y))+"%, Lightness "+$APP.P.i(Math.round(A))+"%";u=u<1?""+$APP.P.i(x)+", Opacity "+$APP.P.i(Math.round(u*100))+"%":x;$APP.T(d,"aria-valuetext",u);$APP.n(q)&&$APP.T(d,"aria-label",q);d=$APP.G(b);d=$APP.C(d,aJ);e.style.setProperty("--_x-cp-hue-pos",
16
- ""+$APP.P.i((SI(d)/360*100).toFixed(2))+"%");$APP.T(e,"aria-valuenow",""+$APP.P.i(Math.round(d)));x=$APP.G(b);e=$APP.C(x,aJ);d=$APP.C(x,bJ);u=$APP.C(x,cJ);q=$APP.C(x,ZI);x=$APP.C(x,nJ);$APP.n(x)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.P.i(Math.round(e))+","+$APP.P.i(Math.round(d))+"%,"+$APP.P.i(Math.round(u))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.P.i((UI(q)*100).toFixed(2))+"%"),$APP.T(f,"aria-valuenow",""+$APP.P.i(Math.round(q*100)))):f.style.display=
17
- "none";x=$APP.G(b);e=$APP.C(x,aJ);d=$APP.C(x,bJ);u=$APP.C(x,cJ);f=$APP.C(x,ZI);q=$APP.C(x,oJ);x=$APP.C(x,nJ);$APP.n(x)?(e=eJ(e,d,u),u=$APP.G(e),e=$APP.C(u,XI),d=$APP.C(u,$APP.at),u=$APP.C(u,YI),f="rgba("+$APP.P.i(e)+","+$APP.P.i(d)+","+$APP.P.i(u)+","+$APP.P.i(f.toFixed(2))+")"):f=q;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,pJ);k=$APP.C(f,$APP.Sj);f=$APP.C(f,$APP.gl);a.shadowRoot.activeElement!==m&&(m.value=h);m.disabled=$APP.n(k)?k:f;mba(a,c,lJ.i(b),oJ.i(b));m=$APP.G(b);
18
- m=$APP.C(m,pJ);c=$APP.l(a,"__xColorPickerInternals");$APP.n(c)&&c.setFormValue(m);a=$APP.Q(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},zJ=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=kJ(b.clientX,c.left,c.width);a=kJ(a,d,e);return new $APP.M(null,2,[yJ,TI(b),$APP.Ko,100-TI(a)],null)},AJ=function(a,b){a=a.getBoundingClientRect();b=kJ(b.clientX,a.left,a.width);return TI(b)/100*360},BJ=function(a,b){a=a.getBoundingClientRect();b=kJ(b.clientX,
19
- a.left,a.width);return TI(b)/100},oba=function(a,b){var c=tJ(a);if(qJ(c)&&$APP.cd(nba,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=iJ(aJ.i(c),bJ.i(c),cJ.i(c)),f=function(){switch(b.key){case "ArrowRight":return TI(bJ.i(e)+d);case "ArrowLeft":return TI(bJ.i(e)-d);default:return bJ.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return TI(hJ.i(e)+d);case "ArrowDown":return TI(hJ.i(e)-d);default:return hJ.i(e)}}();f=jJ(aJ.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,aJ);h=$APP.C(k,bJ);k=$APP.C(k,
20
- cJ);wJ(a,f,h,k,ZI.i(c),nJ.i(c));uJ(a,tJ(a));return vJ(a,tJ(a))}return null},pba=function(a,b){var c=tJ(a);if(qJ(c)&&$APP.cd(CJ,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return SI(aJ.i(c)+d);case "ArrowLeft":return SI(aJ.i(c)-d);case "Home":return 0;case "End":return 360;default:return aJ.i(c)}}();wJ(a,e,bJ.i(c),cJ.i(c),ZI.i(c),nJ.i(c));uJ(a,tJ(a));return vJ(a,tJ(a))}return null},qba=function(a,b){var c=tJ(a);if($APP.n(function(){var f=qJ(c);
21
- return f?(f=nJ.i(c),$APP.n(f)?$APP.cd(CJ,b.key):f):f}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return UI(ZI.i(c)+d);case "ArrowLeft":return UI(ZI.i(c)-d);case "Home":return 0;case "End":return 1;default:return ZI.i(c)}}();wJ(a,aJ.i(c),bJ.i(c),cJ.i(c),e,!0);uJ(a,tJ(a));return vJ(a,tJ(a))}return null},rba=function(a){var b=tJ(a);return qJ(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.T(a,"value",c.sRGBHex);
22
- return vJ(a,tJ(a))}).catch(function(){return null}):null},sba=function(a){if($APP.n(a.hasAttribute("open")))return null;$APP.T(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.n(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},DJ=function(a){return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.n(a)?$APP.l(a,"trigger").focus():null):null},tba=function(a,b){return $APP.n(a.hasAttribute("open"))?$APP.n(b.composedPath().some(function(c){return c===
23
- a}))?null:DJ(a):null},uba=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=tJ(a);b=zJ($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,yJ);d=$APP.C(d,$APP.Ko);b=jJ(aJ.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,aJ);d=$APP.C(e,bJ);e=$APP.C(e,cJ);wJ(a,b,d,e,ZI.i(c),nJ.i(c));c=uJ(a,tJ(a))}else c=null;return c},copy:function(){var b=tJ(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(pJ.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
- b.key)&&$APP.z.j("popover",$APP.Nl.i(tJ(a)))?(b.preventDefault(),b.stopPropagation(),b=DJ(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=vJ(a,tJ(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=vJ(a,tJ(a))}else b=null;return b},"alpha-key":function(b){return qba(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
25
- $APP.l(a,"__xColorPickerDragging"))){var c=tJ(a);b=BJ($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);wJ(a,aJ.i(c),bJ.i(c),cJ.i(c),b,!0);c=uJ(a,tJ(a))}else c=null;return c},"hex-key":function(b){a:{if($APP.z.j("Enter",b.key)){b.preventDefault();b=$APP.l($APP.l(a,"__xColorPickerRefs"),"hex-input");var c=b.value,d=tJ(a);if(qJ(d)){if(WI(c)){$APP.T(a,"value",c);b=vJ(a,tJ(a));break a}b=b.value=pJ.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=tJ(a);if(qJ(c)&&(b=b.target,$APP.n(b.hasAttribute("data-color")))){b=
26
- b.getAttribute("data-color");$APP.T(a,"value",b);b=vJ(a,tJ(a));break a}b=null}return b},"area-up":function(){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=vJ(a,tJ(a))}else b=null;return b},"alpha-down":function(b){var c=tJ(a);var d=(d=qJ(c))?nJ.i(c):d;$APP.n(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.Q(a,"__xColorPickerDragging","alpha"),b=BJ(d,b),wJ(a,aJ.i(c),bJ.i(c),cJ.i(c),
27
- b,!0),c=uJ(a,tJ(a))):c=null;return c},"area-key":function(b){return oba(a,b)},"hue-down":function(b){var c=tJ(a);if(qJ(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","hue");b=AJ(d,b);wJ(a,b,bJ.i(c),cJ.i(c),ZI.i(c),nJ.i(c));c=uJ(a,tJ(a))}else c=null;return c},"hue-key":function(b){return pba(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=tJ(a);b=AJ($APP.l($APP.l(a,
28
- "__xColorPickerRefs"),"hue-strip"),b);wJ(a,b,bJ.i(c),cJ.i(c),ZI.i(c),nJ.i(c));c=uJ(a,tJ(a))}else c=null;return c},eyedrop:function(){return rba(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=tJ(a);return $APP.z.j("popover",$APP.Nl.i(b))&&$APP.p($APP.Sj.i(b))?$APP.n($APP.Zt.i(b))?DJ(a):sba(a):null},"doc-click":function(b){return tba(a,b)},"area-down":function(b){var c=tJ(a);if(qJ(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
- $APP.Q(a,"__xColorPickerDragging","area");b=zJ(d,b);d=$APP.G(b);b=$APP.C(d,yJ);d=$APP.C(d,$APP.Ko);b=jJ(aJ.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,aJ);d=$APP.C(e,bJ);e=$APP.C(e,cJ);wJ(a,b,d,e,ZI.i(c),nJ.i(c));c=uJ(a,tJ(a))}else c=null;return c}}},FJ=function(a,b){return $APP.z.j(b,EJ)?document:$APP.l(a,b)},HJ=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){for(var d=$APP.r(GJ),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,null),
30
- q=$APP.B(k,1,null),u=$APP.B(k,2,null);k=$APP.B(k,3,null);FJ(b,m).removeEventListener(q,$APP.l(c,u),k);h+=1}else if(d=$APP.r(d))$APP.Yc(d)?(f=$APP.Db(d),d=$APP.Eb(d),e=f,f=$APP.w(f)):(m=$APP.t(d),e=$APP.B(m,0,null),f=$APP.B(m,1,null),h=$APP.B(m,2,null),m=$APP.B(m,3,null),FJ(b,e).removeEventListener(f,$APP.l(c,h),m),d=$APP.v(d),e=null,f=0),h=0;else break;return $APP.Q(a,"__xColorPickerHandlers",null)}return null},vba=function(a,b){$APP.Zi(a,"disabled",$APP.D(b));return xJ(a)},wba=function(a){$APP.T(a,
31
- "value","#000000");return xJ(a)},xba=function(a){if(!$APP.n($APP.l(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");var f=document.createElement("button");var h=document.createElement("span");$APP.T(f,"part","trigger");$APP.T(f,"type","button");$APP.T(f,"aria-label","Pick color");$APP.T(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.M(null,2,[$APP.Xq,f,IJ,h],null);h=document.createElement("div");
32
- var k=document.createElement("div");$APP.T(h,"part","area");$APP.T(h,"role","slider");$APP.T(h,"tabindex","0");$APP.T(h,"aria-label","Color");$APP.T(k,"part","area-thumb");h.appendChild(k);h=new $APP.M(null,2,[JJ,h,KJ,k],null);k=document.createElement("div");var m=document.createElement("div"),q=document.createElement("div"),u=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div");$APP.T(k,"part","strips");rJ(m,"hue-strip","Hue","360");rJ(u,"alpha-strip","Opacity",
33
- "100");$APP.T(q,"part","hue-thumb");$APP.T(x,"part","alpha-gradient");$APP.T(y,"part","alpha-thumb");m.appendChild(q);u.appendChild(x);u.appendChild(y);k.appendChild(m);k.appendChild(u);k=new $APP.M(null,6,[LJ,k,MJ,m,NJ,q,OJ,u,PJ,x,QJ,y],null);m=document.createElement("div");q=document.createElement("div");u=document.createElement("span");x=document.createElement("input");y=document.createElement("button");var A=document.createElement("button");$APP.T(m,"part","controls");$APP.T(q,"part","preview");
34
- $APP.T(u,"part","preview-color");$APP.T(x,"part","hex-input");$APP.T(x,"type","text");$APP.T(x,"spellcheck","false");$APP.T(x,"autocomplete","off");$APP.T(x,"aria-label","Hex color value");sJ(y,"eyedropper","Pick color from screen",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e');
35
- sJ(A,"copy","Copy color value",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3crect x\x3d"5" y\x3d"5" width\x3d"9" height\x3d"9" rx\x3d"1.5"/\x3e\x3cpath d\x3d"M5 11H3.5A1.5 1.5 0 0 1 2 9.5v-6A1.5 1.5 0 0 1 3.5 2h6A1.5 1.5 0 0 1 11 3.5V5"/\x3e\x3c/svg\x3e');typeof EyeDropper==="undefined"&&(y.style.display="none");q.appendChild(u);m.appendChild(q);m.appendChild(x);
36
- m.appendChild(y);m.appendChild(A);m=new $APP.M(null,6,[$APP.Mt,m,RJ,q,SJ,u,TJ,x,UJ,y,$APP.bu,A],null);q=document.createElement("div");$APP.T(q,"part","swatches");$APP.T(q,"role","listbox");$APP.T(q,"aria-label","Preset colors");q=new $APP.M(null,1,[lJ,q],null);c.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
37
- $APP.T(d,"part","container");$APP.T(e,"part","panel");e.appendChild(JJ.i(h));e.appendChild(LJ.i(k));e.appendChild($APP.Mt.i(m));e.appendChild(lJ.i(q));d.appendChild($APP.Xq.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);b={"alpha-thumb":QJ.i(k),copy:$APP.bu.i(m),swatches:lJ.i(q),"hue-strip":MJ.i(k),controls:$APP.Mt.i(m),"alpha-gradient":PJ.i(k),panel:e,preview:RJ.i(m),"area-thumb":KJ.i(h),"preview-color":SJ.i(m),container:d,area:JJ.i(h),"hue-thumb":NJ.i(k),"trigger-swatch":IJ.i(f),trigger:$APP.Xq.i(f),
38
- "alpha-strip":OJ.i(k),eyedropper:UJ.i(m),"hex-input":TJ.i(m)};$APP.Q(a,"__xColorPickerRefs",b);$APP.n(a.attachInternals)&&$APP.Q(a,"__xColorPickerInternals",a.attachInternals())}HJ(a);b=$APP.l(a,"__xColorPickerRefs");if($APP.n(b)){c=uba(a);d=$APP.r(GJ);e=null;for(h=f=0;;)if(h<f)u=e.C(null,h),k=$APP.B(u,0,null),m=$APP.B(u,1,null),q=$APP.B(u,2,null),u=$APP.B(u,3,null),FJ(b,k).addEventListener(m,$APP.l(c,q),u),h+=1;else if(d=$APP.r(d))$APP.Yc(d)?(f=$APP.Db(d),d=$APP.Eb(d),e=f,f=$APP.w(f)):(k=$APP.t(d),
39
- e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),FJ(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.v(d),e=null,f=0),h=0;else break;$APP.Q(a,"__xColorPickerHandlers",c)}return xJ(a)},yba=function(a){return HJ(a)},zba=function(a,b,c,d){return $APP.I(c,d)?xJ(a):null},Bba=function(a){return $APP.sj(a,Aba)},VJ=function(){return $APP.xi("x-color-picker",new $APP.M(null,8,[$APP.hi,Cba,$APP.fi,xba,$APP.ci,yba,$APP.bi,zba,$APP.di,!0,$APP.ai,vba,$APP.$h,wba,$APP.gi,Bba],null))},PJ=
40
- new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),QJ=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),JJ=new $APP.F(null,"area","area",472007256),mJ=new $APP.F(null,"alpha","alpha",-1574982441),SJ=new $APP.F(null,"preview-color","preview-color",1405210195),OJ=new $APP.F(null,"alpha-strip","alpha-strip",1085401595),pJ=new $APP.F(null,"hex-full","hex-full",-1466644518),TJ=new $APP.F(null,"hex-input","hex-input",1497535517),RJ=new $APP.F(null,"preview","preview",451279890),MJ=new $APP.F(null,
41
- "hue-strip","hue-strip",938856876),KJ=new $APP.F(null,"area-thumb","area-thumb",1471343090),lJ=new $APP.F(null,"swatches","swatches",2033601707),LJ=new $APP.F(null,"strips","strips",-1564791997),hJ=new $APP.F(null,"v","v",21465059),bJ=new $APP.F(null,"s","s",1705939918),XI=new $APP.F(null,"r","r",-471384190),nJ=new $APP.F(null,"alpha?","alpha?",1329751525),cJ=new $APP.F(null,"l","l",1395893423),aJ=new $APP.F(null,"h","h",1109658740),YI=new $APP.F(null,"b","b",1482224470),yJ=new $APP.F(null,"sat",
42
- "sat",1064662667),ZI=new $APP.F(null,"a","a",-2123407586),IJ=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),EJ=new $APP.F(null,"document","document",-1329188687),oJ=new $APP.F(null,"hex","hex",41691346),UJ=new $APP.F(null,"eyedropper","eyedropper",-1786107588),NJ=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var iba=new $APP.ah(null,new $APP.M(null,2,["inline",null,"popover",null],null),null),Cba="value alpha swatches disabled readonly name mode open label".split(" "),Aba=$APP.Eg([$APP.ut,$APP.um,$APP.Pj,$APP.Si,$APP.Nl,lJ,$APP.Bt,$APP.Rj,mJ],[new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"open"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,
43
- "mode"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"swatches"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"label"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"alpha"],null)]);
44
- $APP.he(["x-color-picker-input",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Si,$APP.X,aJ,$APP.Z,bJ,$APP.Z,cJ,$APP.Z,ZI,$APP.Z],null),$APP.yt,!1],null),"x-color-picker-change",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Si,$APP.X,aJ,$APP.Z,bJ,$APP.Z,cJ,$APP.Z,ZI,$APP.Z],null),$APP.yt,!0],null)]);var VI=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var nba=new $APP.ah(null,new $APP.M(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),CJ=new $APP.ah(null,new $APP.M(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),GJ=new $APP.J(null,20,5,$APP.K,[new $APP.J(null,4,5,$APP.K,["area","pointerdown","area-down",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointermove","area-move",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointerup","area-up",!1],null),new $APP.J(null,4,5,$APP.K,
2
+ var tI=function(a,b){return $APP.po.j($APP.Wo.j(a,0),b)},uI=function(a){return $APP.ud(a,360)},vI=function(a){return tI(a,100)},wI=function(a){return tI(a,1)},yI=function(a){var b=typeof a==="string";a=b?$APP.zh(xI,a.trim()):b;return $APP.D(a)},CI=function(a){if(typeof a==="string")if(a=$APP.zh(xI,a.trim()),$APP.n(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.P.i($APP.zc(a,0))+$APP.P.i($APP.zc(a,0)),16),c=parseInt(""+$APP.P.i($APP.zc(a,1))+$APP.P.i($APP.zc(a,
3
+ 1)),16),d=parseInt(""+$APP.P.i($APP.zc(a,2))+$APP.P.i($APP.zc(a,2)),16);return new $APP.M(null,4,[zI,b,$APP.Ft,c,AI,d,BI,1],null);case 6:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[zI,b,$APP.Ft,c,AI,d,BI,1],null);case 8:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[zI,b,$APP.Ft,c,AI,d,BI,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
+ else return null},nca=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Wo.B(a,b,$APP.Ec([c])),e=$APP.po.B(a,b,$APP.Ec([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.M(null,3,[DI,0,EI,0,FI,f*100],null):new $APP.M(null,3,[DI,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,EI,(f>.5?h/(2-d-e):h/(d+e))*100,FI,f*100],null)},GI=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},HI=function(a,b,c){a=uI(a)/360;b=vI(b)/100;c=vI(c)/100;if(b===0)return a=
5
+ Math.round(c*255),new $APP.M(null,3,[zI,a,$APP.Ft,a,AI,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.M(null,3,[zI,Math.round(GI(c,b,a+1/3)*255),$APP.Ft,Math.round(GI(c,b,a)*255),AI,Math.round(GI(c,b,a-1/3)*255)],null)},II=function(a,b,c){function d(e){e=tI(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.P.i(e):e}return"#"+$APP.P.i(d(a))+$APP.P.i(d(b))+$APP.P.i(d(c))},JI=function(a,b,c,d){function e(f){f=tI(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.P.i(f):f}
6
+ return"#"+$APP.P.i(e(a))+$APP.P.i(e(b))+$APP.P.i(e(c))+$APP.P.i(e(wI(d)*255))},KI=function(a,b,c){b=vI(b)/100;c=vI(c)/100;b=c+b*$APP.po.j(c,1-c);return new $APP.M(null,3,[DI,uI(a),EI,(b===0?0:2*(1-c/b))*100,$APP.fo,b*100],null)},LI=function(a,b,c){b=vI(b)/100;c=vI(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.po.j(b,1-b);return new $APP.M(null,3,[DI,uI(a),EI,c*100,FI,b*100],null)},MI=function(a,b,c){return 100*(tI(a-b,c)/c)},oca=function(a){return typeof a==="string"&&yI(a)?(a=CI(a),$APP.n(a)?II(zI.i(a),
7
+ $APP.Ft.i(a),AI.i(a)):null):"#000000"},qca=function(a){return typeof a==="string"&&$APP.ed(pca,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},rca=function(a){return typeof a==="string"&&$APP.Li(a)?$APP.Kf.m($APP.Ge,$APP.Yo.m($APP.ye.i($APP.Hi),$APP.De(yI),$APP.ye.i(function(b){b=CI(b);var c=$APP.G(b);b=$APP.C(c,zI);var d=$APP.C(c,$APP.Ft);c=$APP.C(c,AI);return II(b,d,c)})),$APP.Fi(a,/,/)):$APP.Ge},sca=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.bu),d=$APP.C(b,$APP.zm),e=$APP.C(b,$APP.Ui);
8
+ a=$APP.C(b,$APP.Uj);var f=$APP.C(b,$APP.uj),h=$APP.C(b,$APP.Sl),k=$APP.C(b,NI),m=$APP.C(b,$APP.Wj),r=$APP.C(b,OI);b=oca(e);var u=function(){var S=CI(e);return $APP.n(S)?S:CI("#000000")}(),x=$APP.G(u);u=$APP.C(x,zI);var y=$APP.C(x,$APP.Ft),A=$APP.C(x,AI);x=$APP.C(x,BI);var E=function(){var S=typeof e==="string";if(S){S=e.trim();var R=$APP.zh(xI,S);return $APP.n(R)?8===$APP.w($APP.Hc($APP.zh(xI,S))):R}return S}();x=$APP.n(E)?x:1;E=nca(u,y,A);var H=$APP.G(E);E=$APP.C(H,DI);var O=$APP.C(H,EI);H=$APP.C(H,
9
+ FI);d=$APP.Ji(d);f=$APP.Ji(f);r=r!=null;c=c!=null;h=qca(h);return $APP.Gg([$APP.ll,PI,$APP.Uj,$APP.Sl,NI,EI,FI,QI,DI,$APP.Wj,$APP.Hu,RI,$APP.Xj,BI],[f,r,$APP.Li(a)?a:null,h,rca(k),O,H,b,E,$APP.Li(m)?m:null,$APP.z.j(h,"popover")&&c,r&&x<1?JI(u,y,A,x):b,d,x])},SI=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Xj);b=$APP.C(b,$APP.ll);return $APP.p(a)&&$APP.p(b)},TI=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"role","slider");$APP.T(a,"tabindex","0");$APP.T(a,"aria-label",c);$APP.T(a,"aria-valuemin","0");
10
+ $APP.T(a,"aria-valuemax",d)},UI=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"type","button");$APP.T(a,"aria-label",c);a.innerHTML=d},VI=function(a){return sca($APP.Gg([$APP.bu,$APP.zm,$APP.Uj,$APP.Ui,$APP.uj,$APP.Sl,NI,$APP.Wj,OI],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},WI=function(a,b){var c=RI.i(b),d=DI.i(b),
11
+ e=EI.i(b),f=FI.i(b);b=BI.i(b);return $APP.hj(a,"x-color-picker-input",$APP.gm(new $APP.M(null,5,[$APP.Ui,c,DI,d,EI,e,FI,f,BI,b],null)))},XI=function(a,b){var c=RI.i(b),d=DI.i(b),e=EI.i(b),f=FI.i(b);b=BI.i(b);return $APP.jj(a,"x-color-picker-change",$APP.gm(new $APP.M(null,5,[$APP.Ui,c,DI,d,EI,e,FI,f,BI,b],null)))},YI=function(a,b,c,d,e,f){b=HI(b,c,d);d=$APP.G(b);b=$APP.C(d,zI);c=$APP.C(d,$APP.Ft);d=$APP.C(d,AI);e=$APP.n($APP.n(f)?e<1:f)?JI(b,c,d,e):II(b,c,d);$APP.T(a,"value",e)},tca=function(a,b,
12
+ c,d){if($APP.I($APP.l(a,"__xColorPickerSwatchesCache"),c)){$APP.Q(a,"__xColorPickerSwatchesCache",c);b.innerHTML="";a=$APP.q(c);c=null;for(var e=0,f=0;;)if(f<e){var h=c.C(null,f),k=document.createElement("button");$APP.T(k,"part","swatch");$APP.T(k,"type","button");$APP.T(k,"role","option");$APP.T(k,"aria-label",h);$APP.T(k,"data-color",h);k.style.backgroundColor=h;b.appendChild(k);f+=1}else if(a=$APP.q(a))$APP.$c(a)?(e=$APP.Fb(a),a=$APP.Gb(a),c=e,e=$APP.w(e)):(c=$APP.t(a),e=document.createElement("button"),
13
+ $APP.T(e,"part","swatch"),$APP.T(e,"type","button"),$APP.T(e,"role","option"),$APP.T(e,"aria-label",c),$APP.T(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.v(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return $APP.T(m,"aria-selected",$APP.z.j(m.getAttribute("data-color"),d)?"true":"false")})},ZI=function(a){if($APP.n($APP.l(a,"__xColorPickerRefs"))){var b=VI(a);if($APP.I($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");
14
+ if($APP.n(c)){var d=$APP.l(c,"area"),e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),m=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),u=$APP.C(r,DI);r=$APP.C(r,$APP.Sl);$APP.T(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.P.i(Math.round(u)));r=$APP.G(b);var x=$APP.C(r,DI),y=$APP.C(r,EI),A=$APP.C(r,FI);u=$APP.C(r,BI);r=$APP.C(r,$APP.Wj);y=KI(x,y,A);var E=$APP.G(y);y=$APP.C(E,EI);E=$APP.C(E,$APP.fo);E=new $APP.M(null,
15
+ 2,[$APP.Bt,vI(y),$APP.At,100-vI(E)],null);d.style.setProperty("--_x-cp-area-x",""+$APP.P.i($APP.Bt.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.P.i($APP.At.i(E).toFixed(2))+"%");x="Hue "+$APP.P.i(Math.round(x))+", Saturation "+$APP.P.i(Math.round(y))+"%, Lightness "+$APP.P.i(Math.round(A))+"%";u=u<1?""+$APP.P.i(x)+", Opacity "+$APP.P.i(Math.round(u*100))+"%":x;$APP.T(d,"aria-valuetext",u);$APP.n(r)&&$APP.T(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,DI);e.style.setProperty("--_x-cp-hue-pos",
16
+ ""+$APP.P.i((uI(d)/360*100).toFixed(2))+"%");$APP.T(e,"aria-valuenow",""+$APP.P.i(Math.round(d)));x=$APP.G(b);e=$APP.C(x,DI);d=$APP.C(x,EI);u=$APP.C(x,FI);r=$APP.C(x,BI);x=$APP.C(x,PI);$APP.n(x)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.P.i(Math.round(e))+","+$APP.P.i(Math.round(d))+"%,"+$APP.P.i(Math.round(u))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.P.i((wI(r)*100).toFixed(2))+"%"),$APP.T(f,"aria-valuenow",""+$APP.P.i(Math.round(r*100)))):f.style.display=
17
+ "none";x=$APP.G(b);e=$APP.C(x,DI);d=$APP.C(x,EI);u=$APP.C(x,FI);f=$APP.C(x,BI);r=$APP.C(x,QI);x=$APP.C(x,PI);$APP.n(x)?(e=HI(e,d,u),u=$APP.G(e),e=$APP.C(u,zI),d=$APP.C(u,$APP.Ft),u=$APP.C(u,AI),f="rgba("+$APP.P.i(e)+","+$APP.P.i(d)+","+$APP.P.i(u)+","+$APP.P.i(f.toFixed(2))+")"):f=r;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,RI);k=$APP.C(f,$APP.Xj);f=$APP.C(f,$APP.ll);a.shadowRoot.activeElement!==m&&(m.value=h);m.disabled=$APP.n(k)?k:f;tca(a,c,NI.i(b),QI.i(b));m=$APP.G(b);
18
+ m=$APP.C(m,RI);c=$APP.l(a,"__xColorPickerInternals");$APP.n(c)&&c.setFormValue(m);a=$APP.Q(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},aJ=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=MI(b.clientX,c.left,c.width);a=MI(a,d,e);return new $APP.M(null,2,[$I,vI(b),$APP.kp,100-vI(a)],null)},bJ=function(a,b){a=a.getBoundingClientRect();b=MI(b.clientX,a.left,a.width);return vI(b)/100*360},cJ=function(a,b){a=a.getBoundingClientRect();b=MI(b.clientX,
19
+ a.left,a.width);return vI(b)/100},vca=function(a,b){var c=VI(a);if(SI(c)&&$APP.ed(uca,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=KI(DI.i(c),EI.i(c),FI.i(c)),f=function(){switch(b.key){case "ArrowRight":return vI(EI.i(e)+d);case "ArrowLeft":return vI(EI.i(e)-d);default:return EI.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return vI($APP.fo.i(e)+d);case "ArrowDown":return vI($APP.fo.i(e)-d);default:return $APP.fo.i(e)}}();f=LI(DI.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,DI);h=$APP.C(k,
20
+ EI);k=$APP.C(k,FI);YI(a,f,h,k,BI.i(c),PI.i(c));WI(a,VI(a));return XI(a,VI(a))}return null},wca=function(a,b){var c=VI(a);if(SI(c)&&$APP.ed(dJ,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return uI(DI.i(c)+d);case "ArrowLeft":return uI(DI.i(c)-d);case "Home":return 0;case "End":return 360;default:return DI.i(c)}}();YI(a,e,EI.i(c),FI.i(c),BI.i(c),PI.i(c));WI(a,VI(a));return XI(a,VI(a))}return null},xca=function(a,b){var c=VI(a);if($APP.n(function(){var f=
21
+ SI(c);return f?(f=PI.i(c),$APP.n(f)?$APP.ed(dJ,b.key):f):f}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return wI(BI.i(c)+d);case "ArrowLeft":return wI(BI.i(c)-d);case "Home":return 0;case "End":return 1;default:return BI.i(c)}}();YI(a,DI.i(c),EI.i(c),FI.i(c),e,!0);WI(a,VI(a));return XI(a,VI(a))}return null},yca=function(a){var b=VI(a);return SI(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.T(a,"value",c.sRGBHex);
22
+ return XI(a,VI(a))}).catch(function(){return null}):null},zca=function(a){if($APP.n(a.hasAttribute("open")))return null;$APP.T(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.n(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},eJ=function(a){return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.n(a)?$APP.l(a,"trigger").focus():null):null},Aca=function(a,b){return $APP.n(a.hasAttribute("open"))?$APP.n(b.composedPath().some(function(c){return c===
23
+ a}))?null:eJ(a):null},Bca=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=aJ($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,$I);d=$APP.C(d,$APP.kp);b=LI(DI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,DI);d=$APP.C(e,EI);e=$APP.C(e,FI);YI(a,b,d,e,BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},copy:function(){var b=VI(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(RI.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
+ b.key)&&$APP.z.j("popover",$APP.Sl.i(VI(a)))?(b.preventDefault(),b.stopPropagation(),b=eJ(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"alpha-key":function(b){return xca(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
25
+ $APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=cJ($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);YI(a,DI.i(c),EI.i(c),FI.i(c),b,!0);c=WI(a,VI(a))}else c=null;return c},"hex-key":function(b){a:{if($APP.z.j("Enter",b.key)){b.preventDefault();b=$APP.l($APP.l(a,"__xColorPickerRefs"),"hex-input");var c=b.value,d=VI(a);if(SI(d)){if(yI(c)){$APP.T(a,"value",c);b=XI(a,VI(a));break a}b=b.value=RI.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=VI(a);if(SI(c)&&(b=b.target,$APP.n(b.hasAttribute("data-color")))){b=
26
+ b.getAttribute("data-color");$APP.T(a,"value",b);b=XI(a,VI(a));break a}b=null}return b},"area-up":function(){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"alpha-down":function(b){var c=VI(a);var d=(d=SI(c))?PI.i(c):d;$APP.n(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.Q(a,"__xColorPickerDragging","alpha"),b=cJ(d,b),YI(a,DI.i(c),EI.i(c),FI.i(c),
27
+ b,!0),c=WI(a,VI(a))):c=null;return c},"area-key":function(b){return vca(a,b)},"hue-down":function(b){var c=VI(a);if(SI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","hue");b=bJ(d,b);YI(a,b,EI.i(c),FI.i(c),BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},"hue-key":function(b){return wca(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=bJ($APP.l($APP.l(a,
28
+ "__xColorPickerRefs"),"hue-strip"),b);YI(a,b,EI.i(c),FI.i(c),BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},eyedrop:function(){return yca(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=VI(a);return $APP.z.j("popover",$APP.Sl.i(b))&&$APP.p($APP.Xj.i(b))?$APP.n($APP.Hu.i(b))?eJ(a):zca(a):null},"doc-click":function(b){return Aca(a,b)},"area-down":function(b){var c=VI(a);if(SI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
+ $APP.Q(a,"__xColorPickerDragging","area");b=aJ(d,b);d=$APP.G(b);b=$APP.C(d,$I);d=$APP.C(d,$APP.kp);b=LI(DI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,DI);d=$APP.C(e,EI);e=$APP.C(e,FI);YI(a,b,d,e,BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c}}},fJ=function(a,b){return $APP.z.j(b,$APP.Zt)?document:$APP.l(a,b)},hJ=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){for(var d=$APP.q(gJ),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,
30
+ null),r=$APP.B(k,1,null),u=$APP.B(k,2,null);k=$APP.B(k,3,null);fJ(b,m).removeEventListener(r,$APP.l(c,u),k);h+=1}else if(d=$APP.q(d))$APP.$c(d)?(f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f)):(m=$APP.t(d),e=$APP.B(m,0,null),f=$APP.B(m,1,null),h=$APP.B(m,2,null),m=$APP.B(m,3,null),fJ(b,e).removeEventListener(f,$APP.l(c,h),m),d=$APP.v(d),e=null,f=0),h=0;else break;return $APP.Q(a,"__xColorPickerHandlers",null)}return null},Cca=function(a,b){$APP.cj(a,"disabled",$APP.D(b));return ZI(a)},Dca=function(a){$APP.T(a,
31
+ "value","#000000");return ZI(a)},Eca=function(a){if(!$APP.n($APP.l(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");var f=document.createElement("button");var h=document.createElement("span");$APP.T(f,"part","trigger");$APP.T(f,"type","button");$APP.T(f,"aria-label","Pick color");$APP.T(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.M(null,2,[$APP.Br,f,iJ,h],null);h=document.createElement("div");
32
+ var k=document.createElement("div");$APP.T(h,"part","area");$APP.T(h,"role","slider");$APP.T(h,"tabindex","0");$APP.T(h,"aria-label","Color");$APP.T(k,"part","area-thumb");h.appendChild(k);h=new $APP.M(null,2,[jJ,h,kJ,k],null);k=document.createElement("div");var m=document.createElement("div"),r=document.createElement("div"),u=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div");$APP.T(k,"part","strips");TI(m,"hue-strip","Hue","360");TI(u,"alpha-strip","Opacity",
33
+ "100");$APP.T(r,"part","hue-thumb");$APP.T(x,"part","alpha-gradient");$APP.T(y,"part","alpha-thumb");m.appendChild(r);u.appendChild(x);u.appendChild(y);k.appendChild(m);k.appendChild(u);k=new $APP.M(null,6,[lJ,k,mJ,m,nJ,r,oJ,u,pJ,x,qJ,y],null);m=document.createElement("div");r=document.createElement("div");u=document.createElement("span");x=document.createElement("input");y=document.createElement("button");var A=document.createElement("button");$APP.T(m,"part","controls");$APP.T(r,"part","preview");
34
+ $APP.T(u,"part","preview-color");$APP.T(x,"part","hex-input");$APP.T(x,"type","text");$APP.T(x,"spellcheck","false");$APP.T(x,"autocomplete","off");$APP.T(x,"aria-label","Hex color value");UI(y,"eyedropper","Pick color from screen",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e');
35
+ UI(A,"copy","Copy color value",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3crect x\x3d"5" y\x3d"5" width\x3d"9" height\x3d"9" rx\x3d"1.5"/\x3e\x3cpath d\x3d"M5 11H3.5A1.5 1.5 0 0 1 2 9.5v-6A1.5 1.5 0 0 1 3.5 2h6A1.5 1.5 0 0 1 11 3.5V5"/\x3e\x3c/svg\x3e');typeof EyeDropper==="undefined"&&(y.style.display="none");r.appendChild(u);m.appendChild(r);m.appendChild(x);
36
+ m.appendChild(y);m.appendChild(A);m=new $APP.M(null,6,[$APP.uu,m,rJ,r,sJ,u,tJ,x,uJ,y,$APP.Ku,A],null);r=document.createElement("div");$APP.T(r,"part","swatches");$APP.T(r,"role","listbox");$APP.T(r,"aria-label","Preset colors");r=new $APP.M(null,1,[NI,r],null);c.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
37
+ $APP.T(d,"part","container");$APP.T(e,"part","panel");e.appendChild(jJ.i(h));e.appendChild(lJ.i(k));e.appendChild($APP.uu.i(m));e.appendChild(NI.i(r));d.appendChild($APP.Br.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);b={"alpha-thumb":qJ.i(k),copy:$APP.Ku.i(m),swatches:NI.i(r),"hue-strip":mJ.i(k),controls:$APP.uu.i(m),"alpha-gradient":pJ.i(k),panel:e,preview:rJ.i(m),"area-thumb":kJ.i(h),"preview-color":sJ.i(m),container:d,area:jJ.i(h),"hue-thumb":nJ.i(k),"trigger-swatch":iJ.i(f),trigger:$APP.Br.i(f),
38
+ "alpha-strip":oJ.i(k),eyedropper:uJ.i(m),"hex-input":tJ.i(m)};$APP.Q(a,"__xColorPickerRefs",b);$APP.n(a.attachInternals)&&$APP.Q(a,"__xColorPickerInternals",a.attachInternals())}hJ(a);b=$APP.l(a,"__xColorPickerRefs");if($APP.n(b)){c=Bca(a);d=$APP.q(gJ);e=null;for(h=f=0;;)if(h<f)u=e.C(null,h),k=$APP.B(u,0,null),m=$APP.B(u,1,null),r=$APP.B(u,2,null),u=$APP.B(u,3,null),fJ(b,k).addEventListener(m,$APP.l(c,r),u),h+=1;else if(d=$APP.q(d))$APP.$c(d)?(f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f)):(k=$APP.t(d),
39
+ e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),fJ(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.v(d),e=null,f=0),h=0;else break;$APP.Q(a,"__xColorPickerHandlers",c)}return ZI(a)},Fca=function(a){return hJ(a)},Gca=function(a,b,c,d){return $APP.I(c,d)?ZI(a):null},Ica=function(a){return $APP.xj(a,Hca)},vJ=function(){return $APP.zi("x-color-picker",new $APP.M(null,8,[$APP.ji,Jca,$APP.hi,Eca,$APP.ei,Fca,$APP.di,Gca,$APP.fi,!0,$APP.ci,Cca,$APP.bi,Dca,$APP.ii,Ica],null))},pJ=
40
+ new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),qJ=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),jJ=new $APP.F(null,"area","area",472007256),OI=new $APP.F(null,"alpha","alpha",-1574982441),sJ=new $APP.F(null,"preview-color","preview-color",1405210195),oJ=new $APP.F(null,"alpha-strip","alpha-strip",1085401595),RI=new $APP.F(null,"hex-full","hex-full",-1466644518),tJ=new $APP.F(null,"hex-input","hex-input",1497535517),rJ=new $APP.F(null,"preview","preview",451279890),mJ=new $APP.F(null,
41
+ "hue-strip","hue-strip",938856876),kJ=new $APP.F(null,"area-thumb","area-thumb",1471343090),NI=new $APP.F(null,"swatches","swatches",2033601707),lJ=new $APP.F(null,"strips","strips",-1564791997),EI=new $APP.F(null,"s","s",1705939918),zI=new $APP.F(null,"r","r",-471384190),PI=new $APP.F(null,"alpha?","alpha?",1329751525),FI=new $APP.F(null,"l","l",1395893423),DI=new $APP.F(null,"h","h",1109658740),AI=new $APP.F(null,"b","b",1482224470),$I=new $APP.F(null,"sat","sat",1064662667),BI=new $APP.F(null,
42
+ "a","a",-2123407586),iJ=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),QI=new $APP.F(null,"hex","hex",41691346),uJ=new $APP.F(null,"eyedropper","eyedropper",-1786107588),nJ=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var pca=new $APP.ch(null,new $APP.M(null,2,["inline",null,"popover",null],null),null),Jca="value alpha swatches disabled readonly name mode open label".split(" "),Hca=$APP.Gg([$APP.bu,$APP.zm,$APP.Uj,$APP.Ui,$APP.Sl,NI,$APP.iu,$APP.Wj,OI],[new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"open"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,
43
+ "mode"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"swatches"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"label"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"alpha"],null)]);
44
+ $APP.je(["x-color-picker-input",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ui,$APP.X,DI,$APP.Y,EI,$APP.Y,FI,$APP.Y,BI,$APP.Y],null),$APP.fu,!1],null),"x-color-picker-change",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ui,$APP.X,DI,$APP.Y,EI,$APP.Y,FI,$APP.Y,BI,$APP.Y],null),$APP.fu,!0],null)]);var xI=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var uca=new $APP.ch(null,new $APP.M(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),dJ=new $APP.ch(null,new $APP.M(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),gJ=new $APP.J(null,20,5,$APP.K,[new $APP.J(null,4,5,$APP.K,["area","pointerdown","area-down",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointermove","area-move",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointerup","area-up",!1],null),new $APP.J(null,4,5,$APP.K,
45
45
  ["area","keydown","area-key",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointerdown","hue-down",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointermove","hue-move",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointerup","hue-up",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","keydown","hue-key",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","pointerdown","alpha-down",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","pointermove","alpha-move",!1],null),new $APP.J(null,
46
46
  4,5,$APP.K,["alpha-strip","pointerup","alpha-up",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","keydown","alpha-key",!1],null),new $APP.J(null,4,5,$APP.K,["hex-input","keydown","hex-key",!1],null),new $APP.J(null,4,5,$APP.K,["swatches","click","swatch",!1],null),new $APP.J(null,4,5,$APP.K,["eyedropper","click","eyedrop",!1],null),new $APP.J(null,4,5,$APP.K,["copy","click","copy",!1],null),new $APP.J(null,4,5,$APP.K,["trigger","click","trigger",!1],null),new $APP.J(null,4,5,$APP.K,["panel","keydown",
47
- "panel-key",!1],null),new $APP.J(null,4,5,$APP.K,["panel","pointerdown","panel-pd",!1],null),new $APP.J(null,4,5,$APP.K,[EJ,"pointerdown","doc-click",!0],null)],null);$APP.fa("baredom.exports.x_color_picker.init",VJ);export const init=VJ;
47
+ "panel-key",!1],null),new $APP.J(null,4,5,$APP.K,["panel","pointerdown","panel-pd",!1],null),new $APP.J(null,4,5,$APP.K,[$APP.Zt,"pointerdown","doc-click",!0],null)],null);$APP.fa("baredom.exports.x_color_picker.init",vJ);export const init=vJ;