@vanelsas/baredom 1.1.0 → 1.3.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 (77) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +8 -6
  3. package/dist/base.js +364 -353
  4. package/dist/x-alert.js +18 -18
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +6 -0
  9. package/dist/x-bento-item.js +5 -0
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-chart.js +48 -48
  15. package/dist/x-checkbox.js +11 -11
  16. package/dist/x-chip.js +8 -8
  17. package/dist/x-collapse.js +12 -12
  18. package/dist/x-command-palette.js +31 -31
  19. package/dist/x-container.js +6 -6
  20. package/dist/x-context-menu.js +18 -18
  21. package/dist/x-copy.js +23 -23
  22. package/dist/x-currency-field.js +22 -22
  23. package/dist/x-date-picker.js +40 -40
  24. package/dist/x-divider.js +12 -12
  25. package/dist/x-drawer.js +12 -12
  26. package/dist/x-dropdown.js +9 -9
  27. package/dist/x-fieldset.js +6 -6
  28. package/dist/x-file-download.js +7 -7
  29. package/dist/x-form-field.js +15 -15
  30. package/dist/x-form.js +9 -9
  31. package/dist/x-gaussian-blur.js +19 -32
  32. package/dist/x-grid.js +6 -7
  33. package/dist/x-kinetic-typography.js +61 -61
  34. package/dist/x-menu-item.js +10 -10
  35. package/dist/x-menu.js +10 -10
  36. package/dist/x-metaball-cursor.js +28 -0
  37. package/dist/x-modal.js +13 -13
  38. package/dist/x-navbar.js +13 -13
  39. package/dist/x-neural-glow.js +35 -0
  40. package/dist/x-notification-center.js +10 -10
  41. package/dist/x-organic-divider.js +16 -16
  42. package/dist/x-organic-progress.js +40 -0
  43. package/dist/x-organic-shape.js +14 -14
  44. package/dist/x-pagination.js +16 -16
  45. package/dist/x-popover.js +15 -15
  46. package/dist/x-progress-circle.js +8 -8
  47. package/dist/x-progress.js +8 -8
  48. package/dist/x-radio.js +11 -11
  49. package/dist/x-ripple-effect.js +12 -12
  50. package/dist/x-scroll-parallax.js +17 -17
  51. package/dist/x-scroll-stack.js +20 -0
  52. package/dist/x-scroll-story.js +35 -35
  53. package/dist/x-scroll-timeline.js +47 -47
  54. package/dist/x-scroll.js +39 -39
  55. package/dist/x-search-field.js +14 -14
  56. package/dist/x-select.js +9 -9
  57. package/dist/x-sidebar.js +16 -16
  58. package/dist/x-skeleton.js +5 -5
  59. package/dist/x-slider.js +16 -16
  60. package/dist/x-spacer.js +5 -5
  61. package/dist/x-spinner.js +5 -5
  62. package/dist/x-splash.js +15 -0
  63. package/dist/x-stat.js +11 -11
  64. package/dist/x-stepper.js +16 -16
  65. package/dist/x-switch.js +10 -10
  66. package/dist/x-tab.js +7 -7
  67. package/dist/x-table-cell.js +20 -21
  68. package/dist/x-table-row.js +10 -10
  69. package/dist/x-table.js +14 -14
  70. package/dist/x-tabs.js +11 -11
  71. package/dist/x-text-area.js +17 -17
  72. package/dist/x-timeline-item.js +23 -23
  73. package/dist/x-timeline.js +9 -9
  74. package/dist/x-toast.js +23 -23
  75. package/dist/x-toaster.js +8 -8
  76. package/dist/x-typography.js +8 -8
  77. package/package.json +30 -2
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var cu=function(a){var b=$APP.O(a);a=$APP.I(b,$APP.Wh);var c=$APP.I(b,$APP.aj),d=$APP.I(b,Ut),e=$APP.I(b,Vt),g=$APP.I(b,Wt),h=$APP.I(b,Xt);b=$APP.I(b,Yt);return new $APP.Q(null,7,[$APP.fk,$APP.K(a),$APP.V,$APP.K(c),Zt,function(){var k;if(k=typeof d==="string")k=(k=$APP.P(d,""))?d:k;return $APP.n(k)?k:"Discard changes?"}(),$APP.ah,typeof e==="string"&&$APP.P(e,"")?e:null,$t,function(){var k;if(k=typeof g==="string")k=(k=$APP.P(g,""))?g:k;return $APP.n(k)?k:"Discard"}(),au,function(){var k;if(k=typeof h===
3
- "string")k=(k=$APP.P(h,""))?h:k;return $APP.n(k)?k:"Keep editing"}(),bu,$APP.K(b)],null)},du=function(a){return document.createElement(a)},fu=function(a){var b=$APP.l(a,"__xCancelDialogueRefs");if($APP.n(b))return b;b=$APP.l(eu,"n")+1;eu.n=b;b="x-cd-headline-"+$APP.T.g(b);var c=a.attachShadow({mode:"open"}),d=du("style"),e=du("div"),g=du("div"),h=du("div"),k=du("div"),m=du("h2"),p=du("div"),r=du("slot"),v=du("p"),x=du("div"),y=du("button"),A=du("button");d.textContent=":host{display:contents;color-scheme:light dark;--x-cancel-dialogue-z-base:1000;--x-cancel-dialogue-backdrop-bg:rgba(0,0,0,0.45);--x-cancel-dialogue-bg:#ffffff;--x-cancel-dialogue-fg:#0f172a;--x-cancel-dialogue-radius:12px;--x-cancel-dialogue-shadow:0 20px 60px rgba(0,0,0,0.20),0 4px 12px rgba(0,0,0,0.10);--x-cancel-dialogue-padding:24px;--x-cancel-dialogue-min-width:320px;--x-cancel-dialogue-max-width:480px;--x-cancel-dialogue-headline-size:1.125rem;--x-cancel-dialogue-headline-weight:700;--x-cancel-dialogue-message-size:0.9375rem;--x-cancel-dialogue-cancel-bg:#f1f5f9;--x-cancel-dialogue-cancel-fg:#0f172a;--x-cancel-dialogue-cancel-bg-hover:#e2e8f0;--x-cancel-dialogue-confirm-bg:#2563eb;--x-cancel-dialogue-confirm-fg:#ffffff;--x-cancel-dialogue-confirm-bg-hover:#1d4ed8;--x-cancel-dialogue-danger-bg:#dc2626;--x-cancel-dialogue-danger-fg:#ffffff;--x-cancel-dialogue-danger-bg-hover:#b91c1c;--x-cancel-dialogue-btn-radius:8px;--x-cancel-dialogue-btn-height:2.5rem;--x-cancel-dialogue-btn-font-size:0.9375rem;--x-cancel-dialogue-btn-font-weight:600;--x-cancel-dialogue-focus-ring:#60a5fa;--x-cancel-dialogue-enter-duration:0ms;--x-cancel-dialogue-exit-duration:0ms;}@media (prefers-color-scheme:dark){:host{--x-cancel-dialogue-bg:#1e293b;--x-cancel-dialogue-fg:#f1f5f9;--x-cancel-dialogue-backdrop-bg:rgba(0,0,0,0.60);--x-cancel-dialogue-shadow:0 20px 60px rgba(0,0,0,0.55),0 4px 12px rgba(0,0,0,0.30);--x-cancel-dialogue-cancel-bg:#334155;--x-cancel-dialogue-cancel-fg:#f1f5f9;--x-cancel-dialogue-cancel-bg-hover:#475569;--x-cancel-dialogue-confirm-bg:#3b82f6;--x-cancel-dialogue-confirm-bg-hover:#2563eb;--x-cancel-dialogue-focus-ring:#93c5fd;}}[part\x3dbackdrop]{display:none;position:fixed;inset:0;background:var(--x-cancel-dialogue-backdrop-bg);z-index:var(--x-cancel-dialogue-z-base,1000);}[part\x3ddialog]{display:none;position:fixed;inset:0;align-items:center;justify-content:center;z-index:calc(var(--x-cancel-dialogue-z-base,1000) + 1);padding:16px;box-sizing:border-box;}:host([open]) [part\x3dbackdrop]{display:block;}:host([open]) [part\x3ddialog]{display:flex;}[part\x3dpanel]{background:var(--x-cancel-dialogue-bg);color:var(--x-cancel-dialogue-fg);border-radius:var(--x-cancel-dialogue-radius);box-shadow:var(--x-cancel-dialogue-shadow);padding:var(--x-cancel-dialogue-padding);min-width:var(--x-cancel-dialogue-min-width);max-width:var(--x-cancel-dialogue-max-width);width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:16px;}[part\x3dheader]{display:flex;align-items:flex-start;}[part\x3dheadline]{margin:0;font-size:var(--x-cancel-dialogue-headline-size);font-weight:var(--x-cancel-dialogue-headline-weight);line-height:1.3;}[part\x3dbody]{display:flex;flex-direction:column;gap:8px;}[part\x3dmessage]{font-size:var(--x-cancel-dialogue-message-size);line-height:1.5;margin:0;opacity:0.8;}[part\x3dactions]{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;}[part\x3dcancel-btn],[part\x3dconfirm-btn]{all:unset;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 20px;min-height:var(--x-cancel-dialogue-btn-height);border-radius:var(--x-cancel-dialogue-btn-radius);font-size:var(--x-cancel-dialogue-btn-font-size);font-weight:var(--x-cancel-dialogue-btn-font-weight);cursor:pointer;user-select:none;white-space:nowrap;}[part\x3dcancel-btn]{background:var(--x-cancel-dialogue-cancel-bg);color:var(--x-cancel-dialogue-cancel-fg);}[part\x3dcancel-btn]:hover:not(:disabled){background:var(--x-cancel-dialogue-cancel-bg-hover);}[part\x3dconfirm-btn]{background:var(--x-cancel-dialogue-confirm-bg);color:var(--x-cancel-dialogue-confirm-fg);}[part\x3dconfirm-btn]:hover:not(:disabled){background:var(--x-cancel-dialogue-confirm-bg-hover);}[part\x3dconfirm-btn][data-danger]{background:var(--x-cancel-dialogue-danger-bg);color:var(--x-cancel-dialogue-danger-fg);}[part\x3dconfirm-btn][data-danger]:hover:not(:disabled){background:var(--x-cancel-dialogue-danger-bg-hover);}[part\x3dcancel-btn]:focus-visible,[part\x3dconfirm-btn]:focus-visible{outline:2px solid var(--x-cancel-dialogue-focus-ring);outline-offset:2px;}:host([disabled]) [part\x3dcancel-btn],:host([disabled]) [part\x3dconfirm-btn]{opacity:0.55;pointer-events:none;cursor:default;}@media (prefers-reduced-motion:reduce){[part\x3dbackdrop],[part\x3ddialog],[part\x3dpanel]{transition:none;animation:none;}}";
4
- e.setAttribute("part","backdrop");g.setAttribute("part","dialog");g.setAttribute("role","dialog");g.setAttribute("aria-modal","true");g.setAttribute("aria-labelledby",b);h.setAttribute("part","panel");k.setAttribute("part","header");m.setAttribute("part","headline");m.setAttribute("id",b);p.setAttribute("part","body");r.setAttribute("name","body");v.setAttribute("part","message");x.setAttribute("part","actions");y.setAttribute("part","cancel-btn");y.setAttribute("type","button");A.setAttribute("part",
5
- "confirm-btn");A.setAttribute("type","button");k.appendChild(m);p.appendChild(r);p.appendChild(v);x.appendChild(y);x.appendChild(A);h.appendChild(k);h.appendChild(p);h.appendChild(x);g.appendChild(h);c.appendChild(d);c.appendChild(e);c.appendChild(g);a.__xCancelDialogueRefs={headline:m,confirmBtn:A,panel:h,bodySlot:r,root:c,dialog:g,backdrop:e,cancelBtn:y,message:v};return $APP.l(a,"__xCancelDialogueRefs")},gu=function(a,b,c,d){b=new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);
6
- return b},hu=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");a=fu(a);var b=$APP.l(a,"confirmBtn");setTimeout(function(){return b.focus()},0);return null},iu=function(a){a.removeAttribute("open");return null},ju=function(a,b){$APP.n(a.hasAttribute("disabled"))||(b=gu(a,"x-cancel-dialogue-cancel-request",{reason:b},!0),$APP.n(b.defaultPrevented)||(iu(a),gu(a,"x-cancel-dialogue-cancel",{},!1)));return null},ku=function(a){if(!$APP.n(a.hasAttribute("disabled"))){var b=gu(a,"x-cancel-dialogue-confirm-request",
7
- {},!0);$APP.n(b.defaultPrevented)||(iu(a),gu(a,"x-cancel-dialogue-confirm",{},!1))}return null},lu=function(a){var b=fu(a),c=$APP.l(b,"headline"),d=$APP.l(b,"message"),e=$APP.l(b,"cancelBtn"),g=$APP.l(b,"confirmBtn");a=cu(new $APP.Q(null,7,[$APP.Wh,a.hasAttribute("open"),$APP.aj,a.hasAttribute("disabled"),Ut,a.getAttribute("headline"),Vt,a.getAttribute("message"),Wt,a.getAttribute("confirm-text"),Xt,a.getAttribute("cancel-text"),Yt,a.hasAttribute("danger")],null));c.textContent=Zt.g(a);e.textContent=
8
- au.g(a);g.textContent=$t.g(a);$APP.n($APP.ah.g(a))?(d.textContent=$APP.ah.g(a),d.style.display="block"):(d.textContent="",d.style.display="none");$APP.n(bu.g(a))?g.setAttribute("data-danger",""):g.removeAttribute("data-danger");e.disabled=$APP.K($APP.V.g(a));g.disabled=$APP.K($APP.V.g(a));$APP.l(b,"dialog").setAttribute("aria-modal","true")},mu=function(a){function b(p){var r=p.key;if($APP.C.h(r,"Escape"))p.preventDefault(),ju(a,"escape");else if($APP.C.h(r,"Tab")){var v=fu(a);r=$APP.l(v,"cancelBtn");
9
- v=$APP.l(v,"confirmBtn");var x=p.shiftKey,y=a.shadowRoot.activeElement;$APP.n($APP.n(x)?$APP.C.h(y,r):x)?(p.preventDefault(),v.focus()):$APP.q(x)&&$APP.C.h(y,v)&&(p.preventDefault(),r.focus())}return null}function c(){return ku(a)}function d(){return ju(a,"cancel-button")}function e(){return ju(a,"backdrop")}var g=fu(a),h=$APP.l(g,"cancelBtn"),k=$APP.l(g,"confirmBtn"),m=$APP.l(g,"dialog");$APP.l(g,"backdrop").addEventListener("click",e);h.addEventListener("click",d);k.addEventListener("click",c);
10
- m.addEventListener("keydown",b);$APP.la(a,"__xCancelDialogueHandlers",{backdrop:e,cancel:d,confirm:c,keydown:b})},nu=function(a){var b=$APP.l(a,"__xCancelDialogueHandlers"),c=$APP.l(a,"__xCancelDialogueRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.l(c,"backdrop"),e=$APP.l(c,"cancelBtn"),g=$APP.l(c,"confirmBtn");c=$APP.l(c,"dialog");var h=$APP.l(b,"backdrop"),k=$APP.l(b,"cancel"),m=$APP.l(b,"confirm");b=$APP.l(b,"keydown");$APP.n(h)&&d.removeEventListener("click",h);$APP.n(k)&&e.removeEventListener("click",
11
- k);$APP.n(m)&&g.removeEventListener("click",m);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xCancelDialogueHandlers=null},ou=function(a,b,c,d){if($APP.P(c,d)&&(lu(a),$APP.C.h(b,"open")&&d!=null&&c==null)){a=$APP.l(a,"__xCancelDialogueRefs");var e=$APP.n(a)?$APP.l(a,"confirmBtn"):null;$APP.n(e)&&setTimeout(function(){return e.focus()},0)}return null},pu=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(r){return $APP.n(r)?hu(this):iu(this)},
12
- enumerable:!0,configurable:!0});for(var b=$APP.u(new $APP.Zd(null,2,5,$APP.$d,[new $APP.Zd(null,2,5,$APP.$d,["disabled","disabled"],null),new $APP.Zd(null,2,5,$APP.$d,["danger","danger"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.H(null,e),h=$APP.H(g,0,null),k=$APP.H(g,1,null);Object.defineProperty(a,h,{get:function(r,v,x,y,A,D,F){return function(){return this.hasAttribute(F)}}(b,c,d,e,g,h,k),set:function(r,v,x,y,A,D,F){return function(J){return $APP.n(J)?this.setAttribute(F,""):this.removeAttribute(F)}}(b,
13
- c,d,e,g,h,k),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.yc(g))b=$APP.nb(g),e=$APP.ob(g),c=b,d=$APP.B(b),b=e;else{k=$APP.w(g);var m=$APP.H(k,0,null),p=$APP.H(k,1,null);Object.defineProperty(a,m,{get:function(r,v,x,y,A,D,F){return function(){return this.hasAttribute(F)}}(b,c,d,e,k,m,p,g,h),set:function(r,v,x,y,A,D,F){return function(J){return $APP.n(J)?this.setAttribute(F,""):this.removeAttribute(F)}}(b,c,d,e,k,m,p,g,h),enumerable:!0,configurable:!0});b=$APP.z(g);c=null;d=
14
- 0}e=0}else break;b=$APP.u(new $APP.Zd(null,4,5,$APP.$d,[new $APP.Zd(null,2,5,$APP.$d,["headline","headline"],null),new $APP.Zd(null,2,5,$APP.$d,["message","message"],null),new $APP.Zd(null,2,5,$APP.$d,["confirmText","confirm-text"],null),new $APP.Zd(null,2,5,$APP.$d,["cancelText","cancel-text"],null)],null));c=null;for(e=d=0;;)if(e<d)g=c.H(null,e),h=$APP.H(g,0,null),k=$APP.H(g,1,null),Object.defineProperty(a,h,{get:function(r,v,x,y,A,D,F){return function(){return this.getAttribute(F)}}(b,c,d,e,g,
15
- h,k),set:function(r,v,x,y,A,D,F){return function(J){return J==null?this.removeAttribute(F):this.setAttribute(F,""+$APP.T.g(J))}}(b,c,d,e,g,h,k),enumerable:!0,configurable:!0}),e+=1;else if(h=$APP.u(b))g=h,$APP.yc(g)?(b=$APP.nb(g),e=$APP.ob(g),c=b,d=$APP.B(b),b=e):(k=$APP.w(g),m=$APP.H(k,0,null),p=$APP.H(k,1,null),Object.defineProperty(a,m,{get:function(r,v,x,y,A,D,F){return function(){return this.getAttribute(F)}}(b,c,d,e,k,m,p,g,h),set:function(r,v,x,y,A,D,F){return function(J){return J==null?this.removeAttribute(F):
16
- this.setAttribute(F,""+$APP.T.g(J))}}(b,c,d,e,k,m,p,g,h),enumerable:!0,configurable:!0}),b=$APP.z(g),c=null,d=0),e=0;else break;Object.defineProperty(a,"close",{value:function(){return iu(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"confirm",{value:function(){return ku(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"cancel",{value:function(r){return ju(this,$APP.n(r)?r:"cancel-button")},enumerable:!0,configurable:!0,writable:!0})},ru=function(){var a=
17
- class extends HTMLElement{};a.observedAttributes=qu;a.prototype.connectedCallback=function(){fu(this);nu(this);mu(this);lu(this);return null};a.prototype.disconnectedCallback=function(){nu(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){return ou(this,b,c,d)};pu(a.prototype);return a},su=function(){$APP.n(customElements.get("x-cancel-dialogue"))||customElements.define("x-cancel-dialogue",ru());return null},Zt=new $APP.N(null,"headline","headline",-157157727),Ut=new $APP.N(null,
18
- "headline-raw","headline-raw",1141142757),bu=new $APP.N(null,"danger?","danger?",181682216),au=new $APP.N(null,"cancel-text","cancel-text",1885137831),Xt=new $APP.N(null,"cancel-text-raw","cancel-text-raw",615622099),Wt=new $APP.N(null,"confirm-text-raw","confirm-text-raw",-1317418708),Yt=new $APP.N(null,"danger-present?","danger-present?",-439648505),$t=new $APP.N(null,"confirm-text","confirm-text",-1839494031),Vt=new $APP.N(null,"message-raw","message-raw",952235685);var qu="open disabled headline message confirm-text cancel-text danger".split(" ");$APP.yd(["x-cancel-dialogue-cancel-request",new $APP.Q(null,2,[$APP.Dj,!0,$APP.Y,new $APP.Q(null,1,[$APP.gi,$APP.X],null)],null),"x-cancel-dialogue-cancel",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,$APP.zd],null),"x-cancel-dialogue-confirm-request",new $APP.Q(null,2,[$APP.Dj,!0,$APP.Y,$APP.zd],null),"x-cancel-dialogue-confirm",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,$APP.zd],null)]);var eu={n:0};$APP.ja("baredom.exports.x_cancel_dialogue.init",su);export const init=su;
2
+ var Gu=function(a){var b=$APP.N(a);a=$APP.I(b,$APP.Ih);var c=$APP.I(b,$APP.ck),d=$APP.I(b,xu),e=$APP.I(b,yu),g=$APP.I(b,zu),h=$APP.I(b,Au);b=$APP.I(b,Bu);return new $APP.R(null,7,[$APP.Ik,$APP.J(a),$APP.X,$APP.J(c),Cu,function(){var k;if(k=typeof d==="string")k=(k=$APP.O(d,""))?d:k;return $APP.n(k)?k:"Discard changes?"}(),$APP.jj,typeof e==="string"&&$APP.O(e,"")?e:null,Du,function(){var k;if(k=typeof g==="string")k=(k=$APP.O(g,""))?g:k;return $APP.n(k)?k:"Discard"}(),Eu,function(){var k;if(k=typeof h===
3
+ "string")k=(k=$APP.O(h,""))?h:k;return $APP.n(k)?k:"Keep editing"}(),Fu,$APP.J(b)],null)},Hu=function(a){return document.createElement(a)},Ju=function(a){var b=$APP.l(a,"__xCancelDialogueRefs");if($APP.n(b))return b;b=$APP.l(Iu,"n")+1;Iu.n=b;b="x-cd-headline-"+$APP.T.g(b);var c=a.attachShadow({mode:"open"}),d=Hu("style"),e=Hu("div"),g=Hu("div"),h=Hu("div"),k=Hu("div"),m=Hu("h2"),p=Hu("div"),q=Hu("slot"),v=Hu("p"),x=Hu("div"),y=Hu("button"),A=Hu("button");d.textContent=":host{display:contents;color-scheme:light dark;--x-cancel-dialogue-z-base:1000;--x-cancel-dialogue-backdrop-bg:rgba(0,0,0,0.45);--x-cancel-dialogue-bg:#ffffff;--x-cancel-dialogue-fg:#0f172a;--x-cancel-dialogue-radius:12px;--x-cancel-dialogue-shadow:0 20px 60px rgba(0,0,0,0.20),0 4px 12px rgba(0,0,0,0.10);--x-cancel-dialogue-padding:24px;--x-cancel-dialogue-min-width:320px;--x-cancel-dialogue-max-width:480px;--x-cancel-dialogue-headline-size:1.125rem;--x-cancel-dialogue-headline-weight:700;--x-cancel-dialogue-message-size:0.9375rem;--x-cancel-dialogue-cancel-bg:#f1f5f9;--x-cancel-dialogue-cancel-fg:#0f172a;--x-cancel-dialogue-cancel-bg-hover:#e2e8f0;--x-cancel-dialogue-confirm-bg:#2563eb;--x-cancel-dialogue-confirm-fg:#ffffff;--x-cancel-dialogue-confirm-bg-hover:#1d4ed8;--x-cancel-dialogue-danger-bg:#dc2626;--x-cancel-dialogue-danger-fg:#ffffff;--x-cancel-dialogue-danger-bg-hover:#b91c1c;--x-cancel-dialogue-btn-radius:8px;--x-cancel-dialogue-btn-height:2.5rem;--x-cancel-dialogue-btn-font-size:0.9375rem;--x-cancel-dialogue-btn-font-weight:600;--x-cancel-dialogue-focus-ring:#60a5fa;--x-cancel-dialogue-enter-duration:0ms;--x-cancel-dialogue-exit-duration:0ms;}@media (prefers-color-scheme:dark){:host{--x-cancel-dialogue-bg:#1e293b;--x-cancel-dialogue-fg:#f1f5f9;--x-cancel-dialogue-backdrop-bg:rgba(0,0,0,0.60);--x-cancel-dialogue-shadow:0 20px 60px rgba(0,0,0,0.55),0 4px 12px rgba(0,0,0,0.30);--x-cancel-dialogue-cancel-bg:#334155;--x-cancel-dialogue-cancel-fg:#f1f5f9;--x-cancel-dialogue-cancel-bg-hover:#475569;--x-cancel-dialogue-confirm-bg:#3b82f6;--x-cancel-dialogue-confirm-bg-hover:#2563eb;--x-cancel-dialogue-focus-ring:#93c5fd;}}[part\x3dbackdrop]{display:none;position:fixed;inset:0;background:var(--x-cancel-dialogue-backdrop-bg);z-index:var(--x-cancel-dialogue-z-base,1000);}[part\x3ddialog]{display:none;position:fixed;inset:0;align-items:center;justify-content:center;z-index:calc(var(--x-cancel-dialogue-z-base,1000) + 1);padding:16px;box-sizing:border-box;}:host([open]) [part\x3dbackdrop]{display:block;}:host([open]) [part\x3ddialog]{display:flex;}[part\x3dpanel]{background:var(--x-cancel-dialogue-bg);color:var(--x-cancel-dialogue-fg);border-radius:var(--x-cancel-dialogue-radius);box-shadow:var(--x-cancel-dialogue-shadow);padding:var(--x-cancel-dialogue-padding);min-width:var(--x-cancel-dialogue-min-width);max-width:var(--x-cancel-dialogue-max-width);width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:16px;}[part\x3dheader]{display:flex;align-items:flex-start;}[part\x3dheadline]{margin:0;font-size:var(--x-cancel-dialogue-headline-size);font-weight:var(--x-cancel-dialogue-headline-weight);line-height:1.3;}[part\x3dbody]{display:flex;flex-direction:column;gap:8px;}[part\x3dmessage]{font-size:var(--x-cancel-dialogue-message-size);line-height:1.5;margin:0;opacity:0.8;}[part\x3dactions]{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;}[part\x3dcancel-btn],[part\x3dconfirm-btn]{all:unset;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 20px;min-height:var(--x-cancel-dialogue-btn-height);border-radius:var(--x-cancel-dialogue-btn-radius);font-size:var(--x-cancel-dialogue-btn-font-size);font-weight:var(--x-cancel-dialogue-btn-font-weight);cursor:pointer;user-select:none;white-space:nowrap;}[part\x3dcancel-btn]{background:var(--x-cancel-dialogue-cancel-bg);color:var(--x-cancel-dialogue-cancel-fg);}[part\x3dcancel-btn]:hover:not(:disabled){background:var(--x-cancel-dialogue-cancel-bg-hover);}[part\x3dconfirm-btn]{background:var(--x-cancel-dialogue-confirm-bg);color:var(--x-cancel-dialogue-confirm-fg);}[part\x3dconfirm-btn]:hover:not(:disabled){background:var(--x-cancel-dialogue-confirm-bg-hover);}[part\x3dconfirm-btn][data-danger]{background:var(--x-cancel-dialogue-danger-bg);color:var(--x-cancel-dialogue-danger-fg);}[part\x3dconfirm-btn][data-danger]:hover:not(:disabled){background:var(--x-cancel-dialogue-danger-bg-hover);}[part\x3dcancel-btn]:focus-visible,[part\x3dconfirm-btn]:focus-visible{outline:2px solid var(--x-cancel-dialogue-focus-ring);outline-offset:2px;}:host([disabled]) [part\x3dcancel-btn],:host([disabled]) [part\x3dconfirm-btn]{opacity:0.55;pointer-events:none;cursor:default;}@media (prefers-reduced-motion:reduce){[part\x3dbackdrop],[part\x3ddialog],[part\x3dpanel]{transition:none;animation:none;}}";
4
+ e.setAttribute("part","backdrop");g.setAttribute("part","dialog");g.setAttribute("role","dialog");g.setAttribute("aria-modal","true");g.setAttribute("aria-labelledby",b);h.setAttribute("part","panel");k.setAttribute("part","header");m.setAttribute("part","headline");m.setAttribute("id",b);p.setAttribute("part","body");q.setAttribute("name","body");v.setAttribute("part","message");x.setAttribute("part","actions");y.setAttribute("part","cancel-btn");y.setAttribute("type","button");A.setAttribute("part",
5
+ "confirm-btn");A.setAttribute("type","button");k.appendChild(m);p.appendChild(q);p.appendChild(v);x.appendChild(y);x.appendChild(A);h.appendChild(k);h.appendChild(p);h.appendChild(x);g.appendChild(h);c.appendChild(d);c.appendChild(e);c.appendChild(g);a.__xCancelDialogueRefs={headline:m,confirmBtn:A,panel:h,bodySlot:q,root:c,dialog:g,backdrop:e,cancelBtn:y,message:v};return $APP.l(a,"__xCancelDialogueRefs")},Ku=function(a,b,c,d){b=new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);
6
+ return b},Lu=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");a=Ju(a);var b=$APP.l(a,"confirmBtn");setTimeout(function(){return b.focus()},0);return null},Mu=function(a){a.removeAttribute("open");return null},Nu=function(a,b){$APP.n(a.hasAttribute("disabled"))||(b=Ku(a,"x-cancel-dialogue-cancel-request",{reason:b},!0),$APP.n(b.defaultPrevented)||(Mu(a),Ku(a,"x-cancel-dialogue-cancel",{},!1)));return null},Ou=function(a){if(!$APP.n(a.hasAttribute("disabled"))){var b=Ku(a,"x-cancel-dialogue-confirm-request",
7
+ {},!0);$APP.n(b.defaultPrevented)||(Mu(a),Ku(a,"x-cancel-dialogue-confirm",{},!1))}return null},Pu=function(a){var b=Ju(a),c=$APP.l(b,"headline"),d=$APP.l(b,"message"),e=$APP.l(b,"cancelBtn"),g=$APP.l(b,"confirmBtn");a=Gu(new $APP.R(null,7,[$APP.Ih,a.hasAttribute("open"),$APP.ck,a.hasAttribute("disabled"),xu,a.getAttribute("headline"),yu,a.getAttribute("message"),zu,a.getAttribute("confirm-text"),Au,a.getAttribute("cancel-text"),Bu,a.hasAttribute("danger")],null));c.textContent=Cu.g(a);e.textContent=
8
+ Eu.g(a);g.textContent=Du.g(a);$APP.n($APP.jj.g(a))?(d.textContent=$APP.jj.g(a),d.style.display="block"):(d.textContent="",d.style.display="none");$APP.n(Fu.g(a))?g.setAttribute("data-danger",""):g.removeAttribute("data-danger");e.disabled=$APP.J($APP.X.g(a));g.disabled=$APP.J($APP.X.g(a));$APP.l(b,"dialog").setAttribute("aria-modal","true")},Qu=function(a){function b(p){var q=p.key;if($APP.C.h(q,"Escape"))p.preventDefault(),Nu(a,"escape");else if($APP.C.h(q,"Tab")){var v=Ju(a);q=$APP.l(v,"cancelBtn");
9
+ v=$APP.l(v,"confirmBtn");var x=p.shiftKey,y=a.shadowRoot.activeElement;$APP.n($APP.n(x)?$APP.C.h(y,q):x)?(p.preventDefault(),v.focus()):$APP.r(x)&&$APP.C.h(y,v)&&(p.preventDefault(),q.focus())}return null}function c(){return Ou(a)}function d(){return Nu(a,"cancel-button")}function e(){return Nu(a,"backdrop")}var g=Ju(a),h=$APP.l(g,"cancelBtn"),k=$APP.l(g,"confirmBtn"),m=$APP.l(g,"dialog");$APP.l(g,"backdrop").addEventListener("click",e);h.addEventListener("click",d);k.addEventListener("click",c);
10
+ m.addEventListener("keydown",b);$APP.ma(a,"__xCancelDialogueHandlers",{backdrop:e,cancel:d,confirm:c,keydown:b})},Ru=function(a){var b=$APP.l(a,"__xCancelDialogueHandlers"),c=$APP.l(a,"__xCancelDialogueRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.l(c,"backdrop"),e=$APP.l(c,"cancelBtn"),g=$APP.l(c,"confirmBtn");c=$APP.l(c,"dialog");var h=$APP.l(b,"backdrop"),k=$APP.l(b,"cancel"),m=$APP.l(b,"confirm");b=$APP.l(b,"keydown");$APP.n(h)&&d.removeEventListener("click",h);$APP.n(k)&&e.removeEventListener("click",
11
+ k);$APP.n(m)&&g.removeEventListener("click",m);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xCancelDialogueHandlers=null},Su=function(a,b,c,d){if($APP.O(c,d)&&(Pu(a),$APP.C.h(b,"open")&&d!=null&&c==null)){a=$APP.l(a,"__xCancelDialogueRefs");var e=$APP.n(a)?$APP.l(a,"confirmBtn"):null;$APP.n(e)&&setTimeout(function(){return e.focus()},0)}return null},Tu=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(q){return $APP.n(q)?Lu(this):Mu(this)},
12
+ enumerable:!0,configurable:!0});for(var b=$APP.u(new $APP.Q(null,2,5,$APP.fe,[new $APP.Q(null,2,5,$APP.fe,["disabled","disabled"],null),new $APP.Q(null,2,5,$APP.fe,["danger","danger"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e),h=$APP.E(g,0,null),k=$APP.E(g,1,null);Object.defineProperty(a,h,{get:function(q,v,x,y,A,D,G){return function(){return this.hasAttribute(G)}}(b,c,d,e,g,h,k),set:function(q,v,x,y,A,D,G){return function(H){return $APP.n(H)?this.setAttribute(G,""):this.removeAttribute(G)}}(b,
13
+ c,d,e,g,h,k),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.Cc(g))b=$APP.qb(g),e=$APP.rb(g),c=b,d=$APP.B(b),b=e;else{k=$APP.w(g);var m=$APP.E(k,0,null),p=$APP.E(k,1,null);Object.defineProperty(a,m,{get:function(q,v,x,y,A,D,G){return function(){return this.hasAttribute(G)}}(b,c,d,e,k,m,p,g,h),set:function(q,v,x,y,A,D,G){return function(H){return $APP.n(H)?this.setAttribute(G,""):this.removeAttribute(G)}}(b,c,d,e,k,m,p,g,h),enumerable:!0,configurable:!0});b=$APP.z(g);c=null;d=
14
+ 0}e=0}else break;b=$APP.u(new $APP.Q(null,4,5,$APP.fe,[new $APP.Q(null,2,5,$APP.fe,["headline","headline"],null),new $APP.Q(null,2,5,$APP.fe,["message","message"],null),new $APP.Q(null,2,5,$APP.fe,["confirmText","confirm-text"],null),new $APP.Q(null,2,5,$APP.fe,["cancelText","cancel-text"],null)],null));c=null;for(e=d=0;;)if(e<d)g=c.G(null,e),h=$APP.E(g,0,null),k=$APP.E(g,1,null),Object.defineProperty(a,h,{get:function(q,v,x,y,A,D,G){return function(){return this.getAttribute(G)}}(b,c,d,e,g,h,k),
15
+ set:function(q,v,x,y,A,D,G){return function(H){return H==null?this.removeAttribute(G):this.setAttribute(G,""+$APP.T.g(H))}}(b,c,d,e,g,h,k),enumerable:!0,configurable:!0}),e+=1;else if(h=$APP.u(b))g=h,$APP.Cc(g)?(b=$APP.qb(g),e=$APP.rb(g),c=b,d=$APP.B(b),b=e):(k=$APP.w(g),m=$APP.E(k,0,null),p=$APP.E(k,1,null),Object.defineProperty(a,m,{get:function(q,v,x,y,A,D,G){return function(){return this.getAttribute(G)}}(b,c,d,e,k,m,p,g,h),set:function(q,v,x,y,A,D,G){return function(H){return H==null?this.removeAttribute(G):
16
+ this.setAttribute(G,""+$APP.T.g(H))}}(b,c,d,e,k,m,p,g,h),enumerable:!0,configurable:!0}),b=$APP.z(g),c=null,d=0),e=0;else break;Object.defineProperty(a,"close",{value:function(){return Mu(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"confirm",{value:function(){return Ou(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"cancel",{value:function(q){return Nu(this,$APP.n(q)?q:"cancel-button")},enumerable:!0,configurable:!0,writable:!0})},Vu=function(){var a=
17
+ class extends HTMLElement{};a.observedAttributes=Uu;a.prototype.connectedCallback=function(){Ju(this);Ru(this);Qu(this);Pu(this);return null};a.prototype.disconnectedCallback=function(){Ru(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){return Su(this,b,c,d)};Tu(a.prototype);return a},Wu=function(){$APP.n(customElements.get("x-cancel-dialogue"))||customElements.define("x-cancel-dialogue",Vu());return null},Cu=new $APP.M(null,"headline","headline",-157157727),Eu=new $APP.M(null,
18
+ "cancel-text","cancel-text",1885137831),Au=new $APP.M(null,"cancel-text-raw","cancel-text-raw",615622099),Du=new $APP.M(null,"confirm-text","confirm-text",-1839494031),yu=new $APP.M(null,"message-raw","message-raw",952235685),xu=new $APP.M(null,"headline-raw","headline-raw",1141142757),Fu=new $APP.M(null,"danger?","danger?",181682216),zu=new $APP.M(null,"confirm-text-raw","confirm-text-raw",-1317418708),Bu=new $APP.M(null,"danger-present?","danger-present?",-439648505);var Uu="open disabled headline message confirm-text cancel-text danger".split(" ");$APP.Ed(["x-cancel-dialogue-cancel-request",new $APP.R(null,2,[$APP.rk,!0,$APP.V,new $APP.R(null,1,[$APP.Rh,$APP.Y],null)],null),"x-cancel-dialogue-cancel",new $APP.R(null,2,[$APP.rk,!1,$APP.V,$APP.Fd],null),"x-cancel-dialogue-confirm-request",new $APP.R(null,2,[$APP.rk,!0,$APP.V,$APP.Fd],null),"x-cancel-dialogue-confirm",new $APP.R(null,2,[$APP.rk,!1,$APP.V,$APP.Fd],null)]);var Iu={n:0};$APP.ja("baredom.exports.x_cancel_dialogue.init",Wu);export const init=Wu;
package/dist/x-card.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Zv=function(a,b,c){return $APP.M(b,a)?a:c},ew=function(a){var b=$APP.O(a),c=$APP.I(b,$APP.sh),d=$APP.I(b,$APP.dk),e=$APP.I(b,$v),g=$APP.I(b,$APP.Ti);a=$APP.I(b,$APP.Fj);b=$APP.I(b,$APP.W);c=Zv(c,aw,"elevated");d=Zv(d,bw,"md");e=Zv(e,cw,"lg");g=$APP.K(g);a=$APP.K(a);b=typeof b==="string"&&$APP.P("",b)?b:null;return $APP.ff([$APP.uh,$APP.ph,$APP.Fj,$APP.sh,$APP.Ti,$v,$APP.dk,dw,$APP.cj],[g?"button":null,g&&a?"-1":g?"0":null,a,c,g,e,d,a?"true":null,b])},fw=function(a){return new $APP.Q(null,6,[$APP.sh,
3
- a.getAttribute("variant"),$APP.dk,a.getAttribute("padding"),$v,a.getAttribute("radius"),$APP.Ti,a.hasAttribute("interactive"),$APP.Fj,a.hasAttribute("disabled"),$APP.W,a.getAttribute("label")],null)},gw=function(a){var b=$APP.Ti.g(a);return $APP.n(b)?$APP.q($APP.Fj.g(a)):b},hw=function(a){return a.dispatchEvent(new CustomEvent("press",{detail:{},bubbles:!0,composed:!0}))},iw=function(a,b,c){return c!=null?a.setAttribute(b,c):a.removeAttribute(b)},jw=function(a){var b=ew(fw(a));var c=$APP.l(a,"__x_card_base");
4
- iw(a,"role",$APP.uh.g(b));iw(a,"tabindex",$APP.ph.g(b));iw(a,"aria-label",$APP.cj.g(b));iw(a,"aria-disabled",dw.g(b));c.setAttribute("data-variant",$APP.sh.g(b));c.setAttribute("data-padding",$APP.dk.g(b));c.setAttribute("data-radius",$v.g(b));iw(c,"data-interactive",$APP.n($APP.Ti.g(b))?"true":null);return iw(c,"data-disabled",$APP.n($APP.Fj.g(b))?"true":null)},kw=function(a,b){var c=ew(fw(a)),d=b.key;if($APP.n(gw(c))){if($APP.C.h(d,"Enter"))return hw(a);if($APP.C.h(d," ")||$APP.C.h(d,"Spacebar"))return b.preventDefault(),
5
- hw(a)}return null},lw=function(a){a.addEventListener("click",function(){var b=ew(fw(a));return $APP.n(gw(b))?hw(a):null});a.addEventListener("keydown",function(b){return kw(a,b)})},mw=function(a){Object.defineProperty(a.prototype,"interactive",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")}});Object.defineProperty(a.prototype,"disabled",{configurable:!0,
6
- enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")}})},ow=function(){var a=class extends HTMLElement{};a.observedAttributes=nw;a.prototype.connectedCallback=function(){if($APP.l(this,"__x_card_initialized")!==!0){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent="\n :host {\n display: block;\n color-scheme: light dark;\n\n --x-card-background: rgba(255, 255, 255, 0.92);\n --x-card-color: #111827;\n --x-card-border-color: rgba(17, 24, 39, 0.12);\n --x-card-filled-background: rgba(241, 245, 249, 0.96);\n --x-card-ghost-background: transparent;\n --x-card-hover-background: rgba(15, 23, 42, 0.04);\n --x-card-press-background: rgba(15, 23, 42, 0.08);\n --x-card-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);\n --x-card-focus-ring: rgba(59, 130, 246, 0.55);\n --x-card-disabled-opacity: 0.6;\n\n --x-card-padding-none: 0;\n --x-card-padding-sm: 0.5rem;\n --x-card-padding-md: 1rem;\n --x-card-padding-lg: 1.5rem;\n\n --x-card-radius-none: 0;\n --x-card-radius-sm: 0.375rem;\n --x-card-radius-md: 0.75rem;\n --x-card-radius-lg: 1rem;\n --x-card-radius-xl: 1.5rem;\n\n --x-card-transition-duration: 140ms;\n --x-card-transition-timing: ease;\n\n outline: none;\n }\n\n @media (prefers-color-scheme: dark) {\n :host {\n --x-card-background: rgba(15, 23, 42, 0.88);\n --x-card-color: #e5e7eb;\n --x-card-border-color: rgba(148, 163, 184, 0.24);\n --x-card-filled-background: rgba(30, 41, 59, 0.96);\n --x-card-hover-background: rgba(148, 163, 184, 0.10);\n --x-card-press-background: rgba(148, 163, 184, 0.16);\n --x-card-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);\n --x-card-focus-ring: rgba(96, 165, 250, 0.6);\n }\n }\n\n .base {\n box-sizing: border-box;\n display: block;\n min-width: 0;\n background: var(--x-card-background);\n color: var(--x-card-color);\n border: 1px solid transparent;\n border-radius: var(--x-card-radius-lg);\n transition:\n background var(--x-card-transition-duration) var(--x-card-transition-timing),\n box-shadow var(--x-card-transition-duration) var(--x-card-transition-timing),\n border-color var(--x-card-transition-duration) var(--x-card-transition-timing),\n transform var(--x-card-transition-duration) var(--x-card-transition-timing);\n }\n\n .base[data-variant\x3d'elevated'] {\n background: var(--x-card-background);\n box-shadow: var(--x-card-shadow);\n }\n\n .base[data-variant\x3d'outlined'] {\n background: var(--x-card-background);\n border-color: var(--x-card-border-color);\n box-shadow: none;\n }\n\n .base[data-variant\x3d'filled'] {\n background: var(--x-card-filled-background);\n box-shadow: none;\n }\n\n .base[data-variant\x3d'ghost'] {\n background: var(--x-card-ghost-background);\n box-shadow: none;\n }\n\n .base[data-padding\x3d'none'] { padding: var(--x-card-padding-none); }\n .base[data-padding\x3d'sm'] { padding: var(--x-card-padding-sm); }\n .base[data-padding\x3d'md'] { padding: var(--x-card-padding-md); }\n .base[data-padding\x3d'lg'] { padding: var(--x-card-padding-lg); }\n\n .base[data-radius\x3d'none'] { border-radius: var(--x-card-radius-none); }\n .base[data-radius\x3d'sm'] { border-radius: var(--x-card-radius-sm); }\n .base[data-radius\x3d'md'] { border-radius: var(--x-card-radius-md); }\n .base[data-radius\x3d'lg'] { border-radius: var(--x-card-radius-lg); }\n .base[data-radius\x3d'xl'] { border-radius: var(--x-card-radius-xl); }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']) {\n cursor: pointer;\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):hover {\n background: var(--x-card-hover-background);\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):active {\n background: var(--x-card-press-background);\n transform: translateY(1px);\n }\n\n .base[data-disabled\x3d'true'] {\n opacity: var(--x-card-disabled-opacity);\n cursor: default;\n transform: none;\n }\n\n :host(:focus-visible) .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']) {\n box-shadow:\n 0 0 0 3px var(--x-card-focus-ring),\n var(--x-card-shadow);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .base {\n transition: none;\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):active {\n transform: none;\n }\n }\n ";
7
- var d=document.createElement("div");d.setAttribute("part","base");d.className="base";var e=document.createElement("slot");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_card_root=b;this.__x_card_style=c;this.__x_card_base=d;this.__x_card_slot=e;lw(this);this.__x_card_initialized=!0}jw(this);return this};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_card_initialized")===!0?jw(this):null};mw(a);return a},
8
- pw=function(){return $APP.n(customElements.get("x-card"))?null:customElements.define("x-card",ow())},dw=new $APP.N(null,"aria-disabled","aria-disabled",-667357160),$v=new $APP.N(null,"radius","radius",-2073122258);var nw="variant padding radius interactive disabled label".split(" "),aw=new $APP.S(null,new $APP.Q(null,4,["outlined",null,"elevated",null,"filled",null,"ghost",null],null),null),bw=new $APP.S(null,new $APP.Q(null,4,["none",null,"md",null,"lg",null,"sm",null],null),null),cw=new $APP.S(null,new $APP.Q(null,5,["none",null,"md",null,"lg",null,"xl",null,"sm",null],null),null);$APP.ja("baredom.exports.x_card.init",pw);export const init=pw;
2
+ var xx=function(a,b,c){return $APP.K(b,a)?a:c},Dx=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.jh),d=$APP.I(b,$APP.Hk),e=$APP.I(b,yx),g=$APP.I(b,$APP.gi);a=$APP.I(b,$APP.Di);b=$APP.I(b,$APP.U);c=xx(c,zx,"elevated");d=xx(d,Ax,"md");e=xx(e,Bx,"lg");g=$APP.J(g);a=$APP.J(a);b=typeof b==="string"&&$APP.O("",b)?b:null;return $APP.mf([$APP.lh,$APP.rj,$APP.Di,$APP.jh,$APP.gi,yx,$APP.Hk,Cx,$APP.dk],[g?"button":null,g&&a?"-1":g?"0":null,a,c,g,e,d,a?"true":null,b])},Ex=function(a){return new $APP.R(null,6,[$APP.jh,
3
+ a.getAttribute("variant"),$APP.Hk,a.getAttribute("padding"),yx,a.getAttribute("radius"),$APP.gi,a.hasAttribute("interactive"),$APP.Di,a.hasAttribute("disabled"),$APP.U,a.getAttribute("label")],null)},Fx=function(a){var b=$APP.gi.g(a);return $APP.n(b)?$APP.r($APP.Di.g(a)):b},Gx=function(a){return a.dispatchEvent(new CustomEvent("press",{detail:{},bubbles:!0,composed:!0}))},Hx=function(a,b,c){return c!=null?a.setAttribute(b,c):a.removeAttribute(b)},Ix=function(a){var b=Dx(Ex(a));var c=$APP.l(a,"__x_card_base");
4
+ Hx(a,"role",$APP.lh.g(b));Hx(a,"tabindex",$APP.rj.g(b));Hx(a,"aria-label",$APP.dk.g(b));Hx(a,"aria-disabled",Cx.g(b));c.setAttribute("data-variant",$APP.jh.g(b));c.setAttribute("data-padding",$APP.Hk.g(b));c.setAttribute("data-radius",yx.g(b));Hx(c,"data-interactive",$APP.n($APP.gi.g(b))?"true":null);return Hx(c,"data-disabled",$APP.n($APP.Di.g(b))?"true":null)},Jx=function(a,b){var c=Dx(Ex(a)),d=b.key;if($APP.n(Fx(c))){if($APP.C.h(d,"Enter"))return Gx(a);if($APP.C.h(d," ")||$APP.C.h(d,"Spacebar"))return b.preventDefault(),
5
+ Gx(a)}return null},Kx=function(a){a.addEventListener("click",function(){var b=Dx(Ex(a));return $APP.n(Fx(b))?Gx(a):null});a.addEventListener("keydown",function(b){return Jx(a,b)})},Lx=function(a){Object.defineProperty(a.prototype,"interactive",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")}});Object.defineProperty(a.prototype,"disabled",{configurable:!0,
6
+ enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")}})},Nx=function(){var a=class extends HTMLElement{};a.observedAttributes=Mx;a.prototype.connectedCallback=function(){if($APP.l(this,"__x_card_initialized")!==!0){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent="\n :host {\n display: block;\n color-scheme: light dark;\n\n --x-card-background: rgba(255, 255, 255, 0.92);\n --x-card-color: #111827;\n --x-card-border-color: rgba(17, 24, 39, 0.12);\n --x-card-filled-background: rgba(241, 245, 249, 0.96);\n --x-card-ghost-background: transparent;\n --x-card-hover-background: rgba(15, 23, 42, 0.04);\n --x-card-press-background: rgba(15, 23, 42, 0.08);\n --x-card-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);\n --x-card-focus-ring: rgba(59, 130, 246, 0.55);\n --x-card-disabled-opacity: 0.6;\n\n --x-card-padding-none: 0;\n --x-card-padding-sm: 0.5rem;\n --x-card-padding-md: 1rem;\n --x-card-padding-lg: 1.5rem;\n\n --x-card-radius-none: 0;\n --x-card-radius-sm: 0.375rem;\n --x-card-radius-md: 0.75rem;\n --x-card-radius-lg: 1rem;\n --x-card-radius-xl: 1.5rem;\n\n --x-card-transition-duration: 140ms;\n --x-card-transition-timing: ease;\n\n outline: none;\n }\n\n @media (prefers-color-scheme: dark) {\n :host {\n --x-card-background: rgba(15, 23, 42, 0.88);\n --x-card-color: #e5e7eb;\n --x-card-border-color: rgba(148, 163, 184, 0.24);\n --x-card-filled-background: rgba(30, 41, 59, 0.96);\n --x-card-hover-background: rgba(148, 163, 184, 0.10);\n --x-card-press-background: rgba(148, 163, 184, 0.16);\n --x-card-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);\n --x-card-focus-ring: rgba(96, 165, 250, 0.6);\n }\n }\n\n .base {\n box-sizing: border-box;\n display: block;\n min-width: 0;\n background: var(--x-card-background);\n color: var(--x-card-color);\n border: 1px solid transparent;\n border-radius: var(--x-card-radius-lg);\n transition:\n background var(--x-card-transition-duration) var(--x-card-transition-timing),\n box-shadow var(--x-card-transition-duration) var(--x-card-transition-timing),\n border-color var(--x-card-transition-duration) var(--x-card-transition-timing),\n transform var(--x-card-transition-duration) var(--x-card-transition-timing);\n }\n\n .base[data-variant\x3d'elevated'] {\n background: var(--x-card-background);\n box-shadow: var(--x-card-shadow);\n }\n\n .base[data-variant\x3d'outlined'] {\n background: var(--x-card-background);\n border-color: var(--x-card-border-color);\n box-shadow: none;\n }\n\n .base[data-variant\x3d'filled'] {\n background: var(--x-card-filled-background);\n box-shadow: none;\n }\n\n .base[data-variant\x3d'ghost'] {\n background: var(--x-card-ghost-background);\n box-shadow: none;\n }\n\n .base[data-padding\x3d'none'] { padding: var(--x-card-padding-none); }\n .base[data-padding\x3d'sm'] { padding: var(--x-card-padding-sm); }\n .base[data-padding\x3d'md'] { padding: var(--x-card-padding-md); }\n .base[data-padding\x3d'lg'] { padding: var(--x-card-padding-lg); }\n\n .base[data-radius\x3d'none'] { border-radius: var(--x-card-radius-none); }\n .base[data-radius\x3d'sm'] { border-radius: var(--x-card-radius-sm); }\n .base[data-radius\x3d'md'] { border-radius: var(--x-card-radius-md); }\n .base[data-radius\x3d'lg'] { border-radius: var(--x-card-radius-lg); }\n .base[data-radius\x3d'xl'] { border-radius: var(--x-card-radius-xl); }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']) {\n cursor: pointer;\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):hover {\n background: var(--x-card-hover-background);\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):active {\n background: var(--x-card-press-background);\n transform: translateY(1px);\n }\n\n .base[data-disabled\x3d'true'] {\n opacity: var(--x-card-disabled-opacity);\n cursor: default;\n transform: none;\n }\n\n :host(:focus-visible) .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']) {\n box-shadow:\n 0 0 0 3px var(--x-card-focus-ring),\n var(--x-card-shadow);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .base {\n transition: none;\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):active {\n transform: none;\n }\n }\n ";
7
+ var d=document.createElement("div");d.setAttribute("part","base");d.className="base";var e=document.createElement("slot");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_card_root=b;this.__x_card_style=c;this.__x_card_base=d;this.__x_card_slot=e;Kx(this);this.__x_card_initialized=!0}Ix(this);return this};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_card_initialized")===!0?Ix(this):null};Lx(a);return a},
8
+ Ox=function(){return $APP.n(customElements.get("x-card"))?null:customElements.define("x-card",Nx())},Cx=new $APP.M(null,"aria-disabled","aria-disabled",-667357160),yx=new $APP.M(null,"radius","radius",-2073122258);var Mx="variant padding radius interactive disabled label".split(" "),zx=new $APP.S(null,new $APP.R(null,4,["outlined",null,"elevated",null,"filled",null,"ghost",null],null),null),Ax=new $APP.S(null,new $APP.R(null,4,["none",null,"md",null,"lg",null,"sm",null],null),null),Bx=new $APP.S(null,new $APP.R(null,5,["none",null,"md",null,"lg",null,"xl",null,"sm",null],null),null);$APP.ja("baredom.exports.x_card.init",Ox);export const init=Ox;
package/dist/x-chart.js CHANGED
@@ -1,49 +1,49 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var fF=function(a){a:for(;;)if(a=$APP.u(a))a=$APP.z(a);else break a},gF=function(a,b){return function g(d,e){return new $APP.$c(null,function(){var h=$APP.u(e);if(h){if($APP.yc(h)){for(var k=$APP.nb(h),m=$APP.B(k),p=$APP.cd(m),r=0;;)if(r<m){var v=function(){var x=d+r,y=$APP.jc(k,r);return a.h?a.h(x,y):a.call(null,x,y)}();v!=null&&p.add(v);r+=1}else break;return $APP.fd(p.ia(),g(d+m,$APP.ob(h)))}m=function(){var x=$APP.w(h);return a.h?a.h(d,x):a.call(null,d,x)}();return m==null?g(d+1,$APP.Lb(h)):$APP.Xc(m,
3
- g(d+1,$APP.Lb(h)))}return null},null)}(0,b)},hF=function(a){return $APP.jd($APP.Hc(function(b,c){var d=$APP.xi.g?$APP.xi.g(c):$APP.xi.call(null,c);c=$APP.jf.h($APP.lc(b,d,$APP.Md),c);return $APP.jb(b,d,c)},$APP.gb($APP.zd),a))},iF=function(a){return a!=null&&$APP.P(a,"false")},jF=function(a,b){return typeof a==="string"?(a=parseInt(a,10),$APP.q(isNaN(a))&&a>0?a:b):b},kF=function(a,b){var c=function(){var h=a.id;h=$APP.n(h)?""+$APP.T.g(a.id):h;return $APP.n(h)?h:"s"+$APP.T.g(b)}(),d=function(){var h=
4
- a.label;h=$APP.n(h)?""+$APP.T.g(a.label):h;return $APP.n(h)?h:c}(),e=function(){var h=a.color;return $APP.n(h)?""+$APP.T.g(a.color):h}(),g=a.data;return $APP.n($APP.pa(g))?new $APP.Q(null,4,[$APP.xi,c,$APP.W,d,$APP.Ej,e,$APP.fh,gF(function(h,k){return $APP.n($APP.n(k)?k.x!=null&&k.y!=null:k)?new $APP.Q(null,2,[$APP.Wi,k.x,$APP.Ui,k.y],null):null},$APP.fc(g))],null):null},lF=function(a){if(typeof a!=="string")return $APP.Md;try{var b=JSON.parse(a);if($APP.n($APP.pa(b)))return $APP.ee(gF(function(d,
5
- e){return kF(e,d)},$APP.fc(b)));if($APP.n(function(){var d=b!=null?b.constructor===Object:!1;return d?$APP.pa(b.data):d}())){var c=kF(b,0);return $APP.n(c)?new $APP.Zd(null,1,5,$APP.$d,[c],null):$APP.Md}return $APP.Md}catch(d){return $APP.Md}},mF=function(a){a=a==null?null:$APP.w(a);a=a==null?null:$APP.fh.g(a);a=a==null?null:$APP.w(a);return $APP.n($APP.n(a)?typeof $APP.Wi.g(a)==="string":a)?"category":"numeric"},nF=function(a){a=$APP.Jd(function(b){return $APP.Id.h($APP.Ui,$APP.fh.g(b))},$APP.fc([a]));
6
- return $APP.sc(a)?new $APP.Zd(null,2,5,$APP.$d,[0,1],null):new $APP.Zd(null,2,5,$APP.$d,[$APP.sd($APP.Ag,a),$APP.sd($APP.zg,a)],null)},oF=function(a){var b=mF(a);if($APP.C.h(b,"category"))return a=$APP.td($APP.zg,0,$APP.Id.h(function(c){return $APP.B($APP.fh.g(c))},a)),new $APP.Zd(null,2,5,$APP.$d,[0,$APP.zg.h(1,a)-1],null);a=$APP.Jd(function(c){return $APP.Id.h($APP.Wi,$APP.fh.g(c))},$APP.fc([a]));return $APP.sc(a)?new $APP.Zd(null,2,5,$APP.$d,[0,1],null):new $APP.Zd(null,2,5,$APP.$d,[$APP.sd($APP.Ag,
7
- a),$APP.sd($APP.zg,a)],null)},pF=function(a,b){return b==null?(b=Math.abs(a),b>=1E6?""+$APP.T.g(Math.round(a/1E6))+"M":b>=1E3?""+$APP.T.g(Math.round(a/1E3))+"K":$APP.n(Number.isInteger(a))?""+$APP.T.g(a):a.toFixed(1)):$APP.C.h(b,"int")?""+$APP.T.g(Math.round(a)):$APP.C.h(b,"pct")?""+$APP.T.g(a)+"%":$APP.C.h(b,"abbr")?(b=Math.abs(a),b>=1E9?""+$APP.T.g((a/1E9).toFixed(1))+"B":b>=1E6?""+$APP.T.g((a/1E6).toFixed(1))+"M":b>=1E3?""+$APP.T.g((a/1E3).toFixed(1))+"K":""+$APP.T.g(a)):$APP.C.h(b,"raw")?""+$APP.T.g(a):
8
- $APP.n(b.startsWith("fixed:"))?(b=parseInt(b.slice(6),10),$APP.n(isNaN(b))?""+$APP.T.g(a):a.toFixed(b)):""+$APP.T.g(a)},rF=function(a,b){a=hF(a);return $APP.ee($APP.Fd(function(c){$APP.H(c,0,null);c=$APP.H(c,1,null);return $APP.Hc(function(d,e){var g=Math.abs(qF.g(e)-b);return d==null||g<$APP.fj.g(d)?$APP.yg.m(e,$APP.fj,g):d},null,c)},a))},sF=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},RF=function(a){a=$APP.ff([tF,uF,vF,wF,$APP.aj,xF,yF,zF,AF,BF,$APP.Mh,CF,DF],[a.getAttribute("selected"),
9
- a.getAttribute("padding"),$APP.n(a.hasAttribute("tooltip"))?a.getAttribute("tooltip"):null,a.getAttribute("y-format"),$APP.n(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.n(a.hasAttribute("grid"))?a.getAttribute("grid"):null,$APP.n(a.hasAttribute("axes"))?a.getAttribute("axes"):null,a.getAttribute("height"),a.getAttribute("cursor"),$APP.n(a.hasAttribute("loading"))?a.getAttribute("loading"):null,a.getAttribute("type"),a.getAttribute("data"),a.getAttribute("x-format")]);var b=$APP.O(a);
10
- a=$APP.I(b,DF);var c=$APP.I(b,tF),d=$APP.I(b,uF),e=$APP.I(b,vF),g=$APP.I(b,wF),h=$APP.I(b,$APP.aj),k=$APP.I(b,xF),m=$APP.I(b,yF),p=$APP.I(b,zF),r=$APP.I(b,AF),v=$APP.I(b,BF),x=$APP.I(b,$APP.Mh);b=$APP.I(b,CF);b=lF(b);var y=nF(b),A=$APP.H(y,0,null),D=$APP.H(y,1,null);y=[EF,$APP.tk,FF,GF,$APP.Sh,HF,IF,$APP.Z,$APP.dk,JF,$APP.V,KF,LF,$APP.Xj,MF,NF];var F=new $APP.Zd(null,2,5,$APP.$d,[A,D],null);a:{if(typeof c==="string"&&(c=c.split(":"),$APP.C.h(2,c.length))){var J=parseInt(c[1],10);c=$APP.n(isNaN(J))?
11
- null:new $APP.Q(null,2,[OF,c[0],$APP.rh,J],null);break a}c=null}m=m==null?!0:iF(m);v=iF(v);r=typeof r==="string"&&$APP.M(PF,r)?r:"nearest";x=typeof x==="string"&&$APP.M(QF,x)?x:"line";d=jF(d,12);h=iF(h);e=iF(e);a:if($APP.C.h(A,D))A=new $APP.Zd(null,1,5,$APP.$d,[A],null);else{J=D-A;if(J===0)J=1;else{var G=J/5;J=Math.pow(10,Math.floor(Math.log10(G)));G/=J;J*=G<=1?1:G<=2?2:G<=2.5?2.5:G<=5?5:10}D=Math.floor(D/J)*J;A=Math.ceil(A/J)*J;for(var R=$APP.Md;;){if(A>D+J*1E-4){A=R;break a}G=A+J;R=$APP.jf.h(R,
12
- A);A=G}A=void 0}return $APP.ff(y,[F,c,m,b,v,g,r,x,d,a,h,e,A,jF(p,180),mF(b),k==null?!0:iF(k)])},SF=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},TF=function(a,b,c,d){var e=$APP.H(b,0,null);b=$APP.H(b,1,null);e=b-e;return e===0?(c+d)/2:c+(b-a)/e*(d-c)},UF=function(a,b,c,d){var e=$APP.H(b,0,null);b=$APP.H(b,1,null)-e;return b===0?(c+d)/2:c+(a-e)/b*(d-c)},VF=function(a,b,c){a.setAttribute(b,c)},WF=function(a,b,c,d){var e=sF("line");a=""+$APP.T.g(a);
13
- e.setAttribute("x1",a);b=""+$APP.T.g(b);e.setAttribute("y1",b);c=""+$APP.T.g(c);e.setAttribute("x2",c);d=""+$APP.T.g(d);e.setAttribute("y2",d);e.setAttribute("stroke","var(--x-chart-grid)");d=""+$APP.T.g(1);e.setAttribute("stroke-opacity",d);e.setAttribute("stroke-width","1");return e},XF=function(a,b,c,d){var e=sF("text");a=""+$APP.T.g(a);e.setAttribute("x",a);b=""+$APP.T.g(b);e.setAttribute("y",b);e.setAttribute("text-anchor",d);d=""+$APP.T.g(10);e.setAttribute("font-size",d);e.setAttribute("fill",
14
- "var(--x-chart-axis-label)");e.textContent=c;return e},YF=function(a){return"var(--x-chart-series-"+$APP.T.g($APP.Qc(a,4)+1)+")"},$F=function(a){if($APP.u(a)){var b=$APP.u(a);a=$APP.w(b);b=$APP.z(b);return"M "+$APP.T.g(qF.g(a))+","+$APP.T.g(ZF.g(a))+$APP.T.g($APP.sd($APP.T,$APP.Id.h(function(c){return" L "+$APP.T.g(qF.g(c))+","+$APP.T.g(ZF.g(c))},b)))}return null},aG=function(a){for(;;){var b=a.lastChild;if($APP.n(b))a.removeChild(b);else break}},fG=function(a,b,c){b=$APP.O(b);var d=$APP.I(b,LF);
15
- b=$APP.I(b,EF);var e=$APP.O(c);c=$APP.I(e,bG);var g=$APP.I(e,cG),h=$APP.I(e,dG);e=$APP.I(e,eG);d=$APP.u(d);for(var k=null,m=0,p=0;;)if(p<m){var r=k.H(null,p);r=TF(r,b,g,e);r=WF(c,r,h,r);a.appendChild(r);p+=1}else if(d=$APP.u(d))$APP.yc(d)?(m=$APP.nb(d),d=$APP.ob(d),k=m,m=$APP.B(m)):(r=$APP.w(d),k=TF(r,b,g,e),k=WF(c,k,h,k),a.appendChild(k),d=$APP.z(d),k=null,m=0),p=0;else break},gG=function(a,b,c,d){var e=$APP.O(b),g=$APP.I(e,LF),h=$APP.I(e,EF);b=$APP.I(e,GF);var k=$APP.I(e,MF),m=$APP.I(e,HF),p=$APP.I(e,
16
- JF);e=$APP.O(c);var r=$APP.I(e,bG);c=$APP.I(e,cG);var v=$APP.I(e,dG),x=$APP.I(e,eG);g=$APP.u(g);e=null;for(var y=0,A=0;;)if(A<y){var D=e.H(null,A),F=TF(D,h,c,x);D=pF(D,m);F=XF(r-4,F+4,D,"end");a.appendChild(F);A+=1}else if(g=$APP.u(g))$APP.yc(g)?(y=$APP.nb(g),g=$APP.ob(g),e=y,y=$APP.B(y)):(y=$APP.w(g),e=TF(y,h,c,x),y=pF(y,m),e=XF(r-4,e+4,y,"end"),a.appendChild(e),g=$APP.z(g),e=null,y=0),A=0;else break;h=$APP.w(b);if($APP.n(h)){h=$APP.fh.g(h);m=$APP.B(h);var J=oF(b),G=$APP.zg.h(1,Math.ceil(m/5)|0);
17
- fF($APP.Ed(function(R,ma){if($APP.Qc(R,G)===0){if($APP.C.h(k,"category")){var Ca=$APP.w($APP.z(J))-$APP.w(J);R=Ca<=1?(r+v)/2:r+R/(Ca-1)*(v-r)}else R=UF($APP.Wi.g(ma),J,r,v);ma=$APP.C.h(k,"category")?""+$APP.T.g($APP.Wi.g(ma)):pF($APP.Wi.g(ma),p);ma=XF(R,x+d+4,ma,"middle");return a.appendChild(ma)}return null},h))}},jG=function(a,b,c,d,e,g){e=$APP.O(e);var h=$APP.I(e,bG),k=$APP.I(e,cG),m=$APP.I(e,dG),p=$APP.I(e,eG);return $APP.Ed(function(r,v){if($APP.C.h(c,"category")){var x=$APP.zg.h(1,$APP.B($APP.fh.g(a)))-
18
- 1;x=x<=1?(h+m)/2:h+r/(x-1)*(m-h)}else x=UF($APP.Wi.g(v),d,h,m);var y=TF($APP.Ui.g(v),g,k,p);return $APP.yg.B(v,qF,x,$APP.fc([ZF,y,hG,b,iG,r]))},$APP.fh.g(a))},kG=function(a,b,c){b=$F(b);if($APP.n(b)){var d=sF("path");d.setAttribute("d",b);d.setAttribute("fill","none");d.setAttribute("stroke",c);d.setAttribute("stroke-width","2");d.setAttribute("stroke-linejoin","round");d.setAttribute("stroke-linecap","round");return a.appendChild(d)}return null},lG=function(a,b,c,d){if($APP.u(b)){var e=$F(b),g=$APP.ic(b);
19
- b=$APP.w(b);d=""+$APP.T.g(e)+" L "+$APP.T.g(qF.g(g))+","+$APP.T.g(d)+" L "+$APP.T.g(qF.g(b))+","+$APP.T.g(d)+" Z"}else d=null;$APP.n(d)&&(e=sF("path"),e.setAttribute("d",d),e.setAttribute("fill",c),e.setAttribute("fill-opacity","0.18"),e.setAttribute("stroke",c),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("stroke-linecap","round"),a.appendChild(e))},nG=function(a,b,c,d,e,g){var h=$APP.O(e);e=$APP.I(h,bG);h=$APP.I(h,dG);var k=$APP.B(c);e=k===0?0:(h-e)/
20
- k;h=e*.08;g=(e-h*2)/g;b*=g;c=$APP.u(c);k=null;for(var m=0,p=0;;)if(p<m){var r=k.H(null,p),v=qF.g(r)+-(e/2)+h+b,x=$APP.Ag.h(ZF.g(r),mG.g(r)),y=Math.abs(ZF.g(r)-mG.g(r)),A=r=sF("rect");v=""+$APP.T.g(v);A.setAttribute("x",v);v=r;x=""+$APP.T.g(x);v.setAttribute("y",x);x=r;v=""+$APP.T.g($APP.zg.h(1,g));x.setAttribute("width",v);x=r;y=""+$APP.T.g($APP.zg.h(0,y));x.setAttribute("height",y);r.setAttribute("fill",d);r.setAttribute("rx","2");a.appendChild(r);p+=1}else if(c=$APP.u(c))$APP.yc(c)?(m=$APP.nb(c),
21
- c=$APP.ob(c),k=m,m=$APP.B(m)):(r=$APP.w(c),y=qF.g(r)+-(e/2)+h+b,p=$APP.Ag.h(ZF.g(r),mG.g(r)),m=Math.abs(ZF.g(r)-mG.g(r)),r=k=sF("rect"),y=""+$APP.T.g(y),r.setAttribute("x",y),r=k,p=""+$APP.T.g(p),r.setAttribute("y",p),p=k,r=""+$APP.T.g($APP.zg.h(1,g)),p.setAttribute("width",r),p=k,m=""+$APP.T.g($APP.zg.h(0,m)),p.setAttribute("height",m),k.setAttribute("fill",d),k.setAttribute("rx","2"),a.appendChild(k),c=$APP.z(c),k=null,m=0),p=0;else return null},qG=function(a,b,c,d){if($APP.u(a)){var e=$APP.w(a);
22
- b=typeof $APP.Wi.g(e)==="string"?""+$APP.T.g($APP.Wi.g(e)):pF($APP.Wi.g(e),b);var g=$APP.De.h($APP.zd,$APP.Ed(function(h,k){var m=$APP.$d,p=$APP.xi.g(k);k=$APP.Ej.g(k);h=$APP.n(k)?k:YF(h);return new $APP.Zd(null,2,5,m,[p,h],null)},d));d=$APP.Nd(function(h){return new $APP.Q(null,5,[$APP.Ej,$APP.lc(g,$APP.xi.g(h),YF(hG.h(h,0))),$APP.W,""+$APP.T.g($APP.W.g(h)),$APP.ri,pF($APP.Ui.g(h),c),qF,qF.g(h),ZF,ZF.g(h)],null)},a);return new $APP.Q(null,5,[oG,b,$APP.Yi,d,qF,qF.g(e),ZF,ZF.g(e),pG,$APP.Nd(function(h){return new $APP.Q(null,
23
- 3,[qF,qF.g(h),ZF,ZF.g(h),$APP.Ej,$APP.lc(g,$APP.xi.g(h),YF(hG.h(h,0)))],null)},a)],null)}return null},rG=function(a){var b=$APP.l(a,"tooltip"),c=$APP.l(a,"crosshair");a=$APP.l(a,"dots");$APP.n(b)&&b.setAttribute("data-visible","false");$APP.n(c)&&c.setAttribute("visibility","hidden");if($APP.n(a))for(b=0;;)if(b<8)c=a[b],$APP.n(c)&&c.setAttribute("visibility","hidden"),b+=1;else return null;else return null},sG=function(a,b,c){return $APP.Hc(function(d,e){var g=qF.g(e)-b,h=ZF.g(e)-c;g=g*g+h*h;return d==
24
- null||g<$APP.fj.g(d)?$APP.yg.m(e,$APP.fj,g):d},null,a)},uG=function(a,b,c,d,e,g,h,k,m,p,r){$APP.C.h(h,"none")||(b.addEventListener("mousemove",function(v){var x=b.getBoundingClientRect(),y=v.clientX-x.x;v=v.clientY-x.y;$APP.C.h(h,"x")?y=rF(c,y):(y=sG(c,y,v),y=$APP.n(y)?new $APP.Zd(null,1,5,$APP.$d,[y],null):null);v=y;y=$APP.w(v);if($APP.n(y)){if($APP.n(k)&&(x=qG(v,m,p,r),v=$APP.l(d,"tooltip"),$APP.n($APP.n(v)?x:v))){var A=$APP.O(x),D=$APP.I(A,oG),F=$APP.I(A,$APP.Yi);x=$APP.I(A,qF);var J=$APP.I(A,
25
- ZF),G=$APP.I(A,pG),R=$APP.l(d,"tooltip-header"),ma=$APP.l(d,"tooltip-body"),Ca=$APP.l(d,"tooltip-rows"),rc=$APP.l(d,"dots");A=$APP.l(d,"crosshair");$APP.n(R)&&(R.textContent=D);if($APP.n($APP.n(ma)?Ca:ma))for(D=0;;)if(D<8){ma=Ca[D];if($APP.n(ma))if(R=$APP.H(F,D,null),$APP.n(R)){ma.setAttribute("data-hidden","false");ma=ma.firstChild;var nd=$APP.n(ma)?ma.nextSibling:null,lh=$APP.n(nd)?nd.nextSibling:null;$APP.n(ma)&&(ma.style.backgroundColor=$APP.Ej.g(R));$APP.n(nd)&&(nd.textContent=$APP.W.g(R));$APP.n(lh)&&
26
- (lh.textContent=$APP.ri.g(R))}else ma.setAttribute("data-hidden","true");D+=1}else break;if($APP.n(rc))for(F=0;;)if(F<8)Ca=rc[F],$APP.n(Ca)&&(D=$APP.H(G,F,null),$APP.n(D)?(R=Ca,ma=""+$APP.T.g(qF.g(D)),R.setAttribute("cx",ma),R=Ca,ma=""+$APP.T.g(ZF.g(D)),R.setAttribute("cy",ma),R=Ca,D=$APP.Ej.g(D),R.setAttribute("fill",D),Ca.setAttribute("visibility","visible")):Ca.setAttribute("visibility","hidden")),F+=1;else break;$APP.n(A)&&A.setAttribute("visibility","visible");$APP.n(A)&&(G=""+$APP.T.g(x),A.setAttribute("x1",
27
- G));$APP.n(A)&&(G=""+$APP.T.g(x),A.setAttribute("x2",G));v.setAttribute("data-visible","true");A=v.offsetWidth;G=v.offsetHeight;J=J+G+8>g?J-G-8:J-4;x=new $APP.Q(null,2,[tG,$APP.zg.h(8,$APP.Ag.h(x+A+12+8>e?x-A-12:x+12,e-A-8)),$APP.Fh,$APP.zg.h(8,$APP.Ag.h(J,g-G-8))],null);J=$APP.O(x);x=$APP.I(J,tG);J=$APP.I(J,$APP.Fh);v.style.left=""+$APP.T.g(x)+"px";v.style.top=""+$APP.T.g(J)+"px"}return SF(a,"x-chart-hover",{seriesId:$APP.xi.g(y),index:iG.g(y),x:$APP.Wi.g(y),y:$APP.Ui.g(y),value:$APP.Ui.g(y)})}return null}),
28
- b.addEventListener("mouseleave",function(){return $APP.n(k)?rG(d):null}),b.addEventListener("click",function(v){var x=b.getBoundingClientRect();v=sG(c,v.clientX-x.x,v.clientY-x.y);return $APP.n(v)?SF(a,"x-chart-select",{seriesId:$APP.xi.g(v),index:iG.g(v),x:$APP.Wi.g(v),y:$APP.Ui.g(v),value:$APP.Ui.g(v)}):null}))},vG=function(a,b){b.addEventListener("keydown",function(c){var d=c.key,e=RF(a),g=$APP.O(e);e=$APP.I(g,GF);var h=$APP.I(g,$APP.V),k=$APP.I(g,$APP.tk);g=$APP.I(g,IF);if($APP.q(h)&&$APP.P(g,
29
- "none")&&$APP.u(e)){var m=$APP.ee(e);if(k==null)return $APP.n(function(){var v=new $APP.S(null,new $APP.Q(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null);return v.g?v.g(d):v.call(null,d)}())?(c.preventDefault(),a.setAttribute("selected",""+$APP.T.g($APP.xi.g($APP.w(m)))+":0")):null;g=$APP.B(m);var p=function(){var v=$APP.w(gF(function(x,y){return $APP.C.h($APP.xi.g(y),OF.g(k))?x:null},m));return $APP.n(v)?v:0}();h=$APP.bc(m,p);var r=$APP.B($APP.fh.g(h));e=$APP.rh.g(k);
30
- switch(d){case "ArrowRight":return c.preventDefault(),c=$APP.Ag.h(r-1,e+1),a.setAttribute("selected",""+$APP.T.g($APP.xi.g(h))+":"+$APP.T.g(c));case "ArrowLeft":return c.preventDefault(),c=$APP.zg.h(0,e-1),a.setAttribute("selected",""+$APP.T.g($APP.xi.g(h))+":"+$APP.T.g(c));case "ArrowDown":return c.preventDefault(),c=$APP.Qc(p+1,g),h=$APP.bc(m,c),c=$APP.Ag.h(e,$APP.zg.h(1,$APP.B($APP.fh.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.xi.g(h))+":"+$APP.T.g(c));case "ArrowUp":return c.preventDefault(),
31
- c=$APP.Qc(p+(g-1),g),h=$APP.bc(m,c),c=$APP.Ag.h(e,$APP.zg.h(1,$APP.B($APP.fh.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.xi.g(h))+":"+$APP.T.g(c));case "Enter":case " ":return c.preventDefault(),c=$APP.H($APP.fh.g(h),e,null),$APP.n(c)?SF(a,"x-chart-select",{seriesId:$APP.xi.g(h),index:e,x:$APP.Wi.g(c),y:$APP.Ui.g(c),value:$APP.Ui.g(c)}):null;default:return null}}else return null})},wG=function(a){a=$APP.l(a,"container");a=$APP.n(a)?a.clientWidth:0;return a>0?a:400},xG=function(a){var b=$APP.l(a,
32
- "__xChartRefs");if($APP.n(b)){var c=$APP.l(b,"svg"),d=$APP.l(b,"sr"),e=RF(a),g=$APP.O(e),h=$APP.I(g,$APP.V);$APP.I(g,LF);var k=$APP.I(g,$APP.Xj),m=$APP.I(g,KF),p=$APP.I(g,NF),r=$APP.I(g,MF),v=$APP.I(g,EF),x=$APP.I(g,FF),y=$APP.I(g,GF),A=$APP.I(g,$APP.Sh),D=$APP.I(g,HF),F=$APP.I(g,IF),J=$APP.I(g,$APP.Z),G=$APP.I(g,$APP.dk);g=$APP.I(g,JF);var R=wG(b),ma=new $APP.Q(null,4,[bG,G+36,cG,G,dG,R-G,eG,k-G-18],null),Ca=$APP.O(ma),rc=$APP.I(Ca,bG),nd=$APP.I(Ca,cG),lh=$APP.I(Ca,dG);Ca=$APP.I(Ca,eG);var tl=oF(y),
33
- ul=TF(0,v,nd,Ca);VF(c,"viewBox","0 0 "+$APP.T.g(R)+" "+$APP.T.g(k));VF(c,"width",""+$APP.T.g(R));VF(c,"height",""+$APP.T.g(k));aG(c);b.crosshair=null;b.dots=null;if(!$APP.n(A)){$APP.n(p)&&fG(c,e,ma);var Uf=$APP.ee($APP.Jd(function(Pc,He){He=jG(Pc,He,r,tl,ma,v);return $APP.Id.h(function(lf){return $APP.yg.B(lf,$APP.xi,$APP.xi.g(Pc),$APP.fc([$APP.W,$APP.W.g(Pc),mG,ul]))},He)},$APP.fc([y,$APP.Of(0,Number.MAX_VALUE)])));fF($APP.Ed(function(Pc,He){var lf=function(){var nf=$APP.Ej.g(He);return $APP.n(nf)?
34
- nf:YF(Pc)}(),mf=$APP.Kd(function(nf){return $APP.C.h($APP.xi.g(nf),$APP.xi.g(He))},Uf);switch(J){case "bar":return nG(c,Pc,mf,lf,ma,$APP.B(y));case "area":return lG(c,mf,lf,ul),kG(c,mf,lf);default:return kG(c,mf,lf)}},y));$APP.n(x)&&gG(c,e,ma,G);p=sF("line");VF(p,"x1",""+$APP.T.g(rc));VF(p,"y1",""+$APP.T.g(nd));VF(p,"x2",""+$APP.T.g(rc));VF(p,"y2",""+$APP.T.g(Ca));p.setAttribute("stroke","var(--x-chart-crosshair-color)");p.setAttribute("stroke-width","var(--x-chart-crosshair-width)");p.setAttribute("visibility",
35
- "hidden");c.appendChild(p);b.crosshair=p;p=Array(8);for(x=0;;)if(x<8)G=sF("circle"),VF(G,"r",""+$APP.T.g(4)),G.setAttribute("stroke","var(--x-chart-tooltip-bg)"),G.setAttribute("stroke-width","2"),G.setAttribute("visibility","hidden"),c.appendChild(G),p[x]=G,x+=1;else break;b.dots=p;p=sF("rect");VF(p,"x",""+$APP.T.g(rc));VF(p,"y",""+$APP.T.g(nd));VF(p,"width",""+$APP.T.g($APP.zg.h(0,lh-rc)));VF(p,"height",""+$APP.T.g($APP.zg.h(0,Ca-nd)));p.setAttribute("fill","transparent");p.setAttribute("style",
36
- "cursor:crosshair;");$APP.n(h)||uG(a,p,Uf,b,R,k,F,m,g,D,y);c.appendChild(p);var kf=$APP.tk.g(e);$APP.n($APP.n(kf)?$APP.u(y):kf)?(a=$APP.w($APP.Kd(function(Pc){return $APP.C.h($APP.xi.g(Pc),OF.g(kf))},y)),e=$APP.n(a)?$APP.H($APP.fh.g(a),$APP.rh.g(kf),null):null,d.textContent=$APP.n($APP.n(a)?e:a)?""+$APP.T.g($APP.W.g(a))+" "+$APP.T.g(pF($APP.Ui.g(e),D))+" at "+$APP.T.g(typeof $APP.Wi.g(e)==="string"?$APP.Wi.g(e):pF($APP.Wi.g(e),g)):""+$APP.T.g($APP.B(y))+" series chart"):d.textContent=""+$APP.T.g($APP.B(y))+
37
- " series chart"}return $APP.n(A)?rG(b):null}return null},yG=function(){var a=document.createElement("div"),b=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");a.setAttribute("part","tooltip-row");a.setAttribute("data-hidden","true");b.setAttribute("part","tooltip-swatch");c.setAttribute("part","tooltip-label");d.setAttribute("part","tooltip-value");a.appendChild(b);a.appendChild(c);a.appendChild(d);return a},zG=function(a){var b=a.attachShadow({mode:"open"}),
38
- c=document.createElement("style"),d=document.createElement("div"),e=sF("svg"),g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("div"),m=document.createElement("div"),p=Array(8);RF(a);c.textContent=":host{display:block;color-scheme:light dark;contain:content;--x-chart-series-1:rgba(0,102,204,0.95);--x-chart-series-2:rgba(16,140,72,0.95);--x-chart-series-3:rgba(190,20,40,0.95);--x-chart-series-4:rgba(204,120,0,0.95);--x-chart-border:rgba(0,0,0,0.1);--x-chart-grid:rgba(0,0,0,0.08);--x-chart-axis-label:rgba(0,0,0,0.5);--x-chart-skeleton:linear-gradient(90deg,rgba(0,0,0,0.06) 25%,rgba(0,0,0,0.03) 50%,rgba(0,0,0,0.06) 75%);--x-chart-tooltip-bg:rgba(255,255,255,0.96);--x-chart-tooltip-border:rgba(0,0,0,0.12);--x-chart-tooltip-shadow:0 4px 16px rgba(0,0,0,0.14);--x-chart-focus-ring:rgba(0,102,204,0.55);--x-chart-radius:0.75rem;--x-chart-tooltip-radius:0.5rem;--x-chart-tooltip-padding:0.45rem 0.7rem;--x-chart-tooltip-font-size:0.8125rem;--x-chart-tooltip-header-color:rgba(0,0,0,0.5);--x-chart-tooltip-label-color:rgba(0,0,0,0.65);--x-chart-tooltip-value-color:rgba(0,0,0,0.9);--x-chart-tooltip-swatch-size:8px;--x-chart-tooltip-gap:0.35rem;--x-chart-crosshair-color:rgba(0,0,0,0.18);--x-chart-crosshair-width:1;}@media(prefers-color-scheme:dark){:host{--x-chart-series-1:rgba(120,190,255,0.95);--x-chart-series-2:rgba(80,230,150,0.92);--x-chart-series-3:rgba(255,100,110,0.93);--x-chart-series-4:rgba(255,190,60,0.93);--x-chart-border:rgba(255,255,255,0.1);--x-chart-grid:rgba(255,255,255,0.08);--x-chart-axis-label:rgba(255,255,255,0.45);--x-chart-skeleton:linear-gradient(90deg,rgba(255,255,255,0.06) 25%,rgba(255,255,255,0.03) 50%,rgba(255,255,255,0.06) 75%);--x-chart-tooltip-bg:rgba(30,30,35,0.97);--x-chart-tooltip-border:rgba(255,255,255,0.12);--x-chart-tooltip-shadow:0 4px 20px rgba(0,0,0,0.45);--x-chart-focus-ring:rgba(120,190,255,0.55);--x-chart-tooltip-header-color:rgba(255,255,255,0.45);--x-chart-tooltip-label-color:rgba(255,255,255,0.6);--x-chart-tooltip-value-color:rgba(255,255,255,0.9);--x-chart-crosshair-color:rgba(255,255,255,0.2);}}[part\x3dcontainer]{position:relative;border:1px solid var(--x-chart-border);border-radius:var(--x-chart-radius);overflow:hidden;outline:none;}[part\x3dcontainer]:focus-visible{box-shadow:0 0 0 3px var(--x-chart-focus-ring);}[part\x3dsvg]{display:block;width:100%;height:auto;overflow:visible;}:host([loading]) [part\x3dcontainer]{background:var(--x-chart-skeleton);background-size:200% 100%;animation:x-chart-shimmer 1.4s ease infinite;}@keyframes x-chart-shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}@media(prefers-reduced-motion:reduce){:host([loading]) [part\x3dcontainer]{animation:none;}}[part\x3dsr-only]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}[part\x3dtooltip]{visibility:hidden;opacity:0;position:absolute;pointer-events:none;background:var(--x-chart-tooltip-bg);border:1px solid var(--x-chart-tooltip-border);box-shadow:var(--x-chart-tooltip-shadow);border-radius:var(--x-chart-tooltip-radius);padding:var(--x-chart-tooltip-padding);font-size:var(--x-chart-tooltip-font-size);line-height:1.5;white-space:nowrap;z-index:10;}[part\x3dtooltip][data-visible\x3dtrue]{visibility:visible;opacity:1;}@media(prefers-reduced-motion:no-preference){[part\x3dtooltip]{transition:opacity 0.1s ease,left 0.08s ease,top 0.08s ease;}}[part\x3dtooltip-header]{font-size:0.75rem;color:var(--x-chart-tooltip-header-color);margin-bottom:0.25rem;}[part\x3dtooltip-body]{display:flex;flex-direction:column;gap:var(--x-chart-tooltip-gap);}[part\x3dtooltip-row]{display:flex;align-items:center;gap:0.4rem;}[part\x3dtooltip-row][data-hidden\x3dtrue]{display:none;}[part\x3dtooltip-swatch]{display:inline-block;width:var(--x-chart-tooltip-swatch-size);height:var(--x-chart-tooltip-swatch-size);border-radius:50%;flex-shrink:0;}[part\x3dtooltip-label]{color:var(--x-chart-tooltip-label-color);}[part\x3dtooltip-value]{color:var(--x-chart-tooltip-value-color);font-weight:600;margin-left:auto;padding-left:0.5rem;}";
39
- d.setAttribute("part","container");d.setAttribute("tabindex","0");e.setAttribute("part","svg");e.setAttribute("aria-hidden","true");e.setAttribute("role","img");g.setAttribute("part","sr-only");g.setAttribute("role","status");g.setAttribute("aria-live","polite");h.setAttribute("part","tooltip");h.setAttribute("role","tooltip");h.setAttribute("aria-hidden","true");h.setAttribute("data-visible","false");k.setAttribute("part","tooltip-header");m.setAttribute("part","tooltip-body");for(var r=0;;)if(r<
40
- 8){var v=yG();m.appendChild(v);p[r]=v;r+=1}else break;h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.container=d;c.svg=e;c.sr=g;c.tooltip=h;c["tooltip-header"]=k;c["tooltip-body"]=m;c["tooltip-rows"]=p;c.crosshair=null;c.dots=null;a.__xChartRefs=c;b=new ResizeObserver(function(){return xG(a)});b.observe(d);$APP.l(a,"__xChartRefs").ro=b;vG(a,d)},AG=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
41
- get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},BG=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},CG=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return jF(this.getAttribute(c),d)},set:function(e){return e!=null?
42
- this.setAttribute(c,""+$APP.T.g(e|0)):this.removeAttribute(c)}})},DG=function(a){Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xChartData");if($APP.n(b))return b;b=this.getAttribute("data");return lF(b)},set:function(b){this.__xChartData=b;return $APP.n($APP.pa(b))?this.setAttribute("data",JSON.stringify(b)):this.removeAttribute("data")}})},FG=function(){var a=class extends HTMLElement{};a.observedAttributes=EG;a.prototype.connectedCallback=function(){$APP.n($APP.l(this,
43
- "__xChartRefs"))||zG(this);return xG(this)};a.prototype.disconnectedCallback=function(){var c=$APP.l(this,"__xChartRefs");$APP.n(c)?(c=$APP.l(c,"ro"),c=$APP.n(c)?c.disconnect():null):c=null;return c};a.prototype.attributeChangedCallback=function(){return $APP.n($APP.l(this,"__xChartRefs"))?xG(this):null};var b=a.prototype;AG(b,"type","type");AG(b,"cursor","cursor");AG(b,"selected","selected");CG(b,"height","height",180);CG(b,"padding","padding",12);BG(b,"grid","grid");BG(b,"axes","axes");BG(b,"tooltip",
44
- "tooltip");BG(b,"disabled","disabled");BG(b,"loading","loading");DG(b);return a},GG=function(){return $APP.n(customElements.get("x-chart"))?null:customElements.define("x-chart",FG())},tG=new $APP.N(null,"left","left",-399115937),KF=new $APP.N(null,"tooltip?","tooltip?",-642753154),oG=new $APP.N(null,"x-label","x-label",802517907),pG=new $APP.N(null,"dot-pts","dot-pts",1732240900),OF=new $APP.N(null,"series-id","series-id",226875035),BF=new $APP.N(null,"loading-present?","loading-present?",-1827648748),
45
- JF=new $APP.N(null,"x-fmt","x-fmt",2073358008),wF=new $APP.N(null,"y-format-raw","y-format-raw",-1098541692),yF=new $APP.N(null,"axes-raw","axes-raw",-839946224),uF=new $APP.N(null,"padding-raw","padding-raw",-847772255),ZF=new $APP.N(null,"py","py",1397985916),qF=new $APP.N(null,"px","px",281329899),DF=new $APP.N(null,"x-format-raw","x-format-raw",-1683657190),FF=new $APP.N(null,"axes?","axes?",1786285669),NF=new $APP.N(null,"grid?","grid?",-288406689),mG=new $APP.N(null,"y0-baseline","y0-baseline",
46
- 613579610),AF=new $APP.N(null,"cursor-raw","cursor-raw",-1169819084),EF=new $APP.N(null,"y-domain","y-domain",-969203007),MF=new $APP.N(null,"x-kind","x-kind",693167455),IF=new $APP.N(null,"cursor","cursor",1011937484),vF=new $APP.N(null,"tooltip-present?","tooltip-present?",-2098824029),HF=new $APP.N(null,"y-fmt","y-fmt",2092412811),cG=new $APP.N(null,"y0","y0",111454807),eG=new $APP.N(null,"y1","y1",589123466),zF=new $APP.N(null,"height-raw","height-raw",-867301006),iG=new $APP.N(null,"i","i",-1386841315),
47
- dG=new $APP.N(null,"x1","x1",-1863922247),bG=new $APP.N(null,"x0","x0",410843387),tF=new $APP.N(null,"selected-raw","selected-raw",-1471626848),hG=new $APP.N(null,"si","si",793409822),LF=new $APP.N(null,"y-ticks","y-ticks",-843622722),GF=new $APP.N(null,"series","series",600710694),CF=new $APP.N(null,"data-raw","data-raw",822066711),xF=new $APP.N(null,"grid-present?","grid-present?",-468948562);var EG="type data height padding x-format y-format grid axes tooltip cursor disabled loading selected".split(" "),QF=new $APP.S(null,new $APP.Q(null,3,["bar",null,"area",null,"line",null],null),null),PF=new $APP.S(null,new $APP.Q(null,3,["none",null,"x",null,"nearest",null],null),null);
48
- $APP.ff([$APP.tk,$APP.Fj,new $APP.N(null,"axes","axes",1970866440),new $APP.N(null,"grid","grid",402978600),IF,$APP.Z,$APP.wi,$APP.dk,new $APP.N(null,"tooltip","tooltip",-1809677058),$APP.Xj,$APP.fh],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"selected"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"axes"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"grid"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"cursor"],null),new $APP.Q(null,2,
49
- [$APP.Z,$APP.X,$APP.U,"type"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"loading"],null),new $APP.Q(null,2,[$APP.Z,$APP.ui,$APP.U,"padding"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"tooltip"],null),new $APP.Q(null,2,[$APP.Z,$APP.ui,$APP.U,"height"],null),new $APP.Q(null,1,[$APP.Z,$APP.ji],null)]);$APP.ja("baredom.exports.x_chart.init",GG);export const init=GG;
2
+ var GI=function(a){a:for(;;)if(a=$APP.u(a))a=$APP.z(a);else break a},HI=function(a,b){return function g(d,e){return new $APP.gd(null,function(){var h=$APP.u(e);if(h){if($APP.Cc(h)){for(var k=$APP.qb(h),m=$APP.B(k),p=$APP.jd(m),q=0;;)if(q<m){var v=function(){var x=d+q,y=$APP.oc(k,q);return a.h?a.h(x,y):a.call(null,x,y)}();v!=null&&p.add(v);q+=1}else break;return $APP.md(p.ia(),g(d+m,$APP.rb(h)))}m=function(){var x=$APP.w(h);return a.h?a.h(d,x):a.call(null,d,x)}();return m==null?g(d+1,$APP.Ob(h)):$APP.dd(m,
3
+ g(d+1,$APP.Ob(h)))}return null},null)}(0,b)},II=function(a){return $APP.qd($APP.Lc(function(b,c){var d=$APP.Oj.g?$APP.Oj.g(c):$APP.Oj.call(null,c);c=$APP.ad.h($APP.qc(b,d,$APP.Td),c);return $APP.mb(b,d,c)},$APP.jb($APP.Fd),a))},JI=function(a){return a!=null&&$APP.O(a,"false")},KI=function(a,b){return typeof a==="string"?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:b):b},LI=function(a,b){var c=function(){var h=a.id;h=$APP.n(h)?""+$APP.T.g(a.id):h;return $APP.n(h)?h:"s"+$APP.T.g(b)}(),d=function(){var h=
4
+ a.label;h=$APP.n(h)?""+$APP.T.g(a.label):h;return $APP.n(h)?h:c}(),e=function(){var h=a.color;return $APP.n(h)?""+$APP.T.g(a.color):h}(),g=a.data;return $APP.n($APP.pa(g))?new $APP.R(null,4,[$APP.Oj,c,$APP.U,d,$APP.Ci,e,$APP.fh,HI(function(h,k){return $APP.n($APP.n(k)?k.x!=null&&k.y!=null:k)?new $APP.R(null,2,[$APP.Zj,k.x,$APP.Yj,k.y],null):null},$APP.kc(g))],null):null},MI=function(a){if(typeof a!=="string")return $APP.Td;try{var b=JSON.parse(a);if($APP.n($APP.pa(b)))return $APP.ke(HI(function(d,
5
+ e){return LI(e,d)},$APP.kc(b)));if($APP.n(function(){var d=b!=null?b.constructor===Object:!1;return d?$APP.pa(b.data):d}())){var c=LI(b,0);return $APP.n(c)?new $APP.Q(null,1,5,$APP.fe,[c],null):$APP.Td}return $APP.Td}catch(d){return $APP.Td}},NI=function(a){a=a==null?null:$APP.w(a);a=a==null?null:$APP.fh.g(a);a=a==null?null:$APP.w(a);return $APP.n($APP.n(a)?typeof $APP.Zj.g(a)==="string":a)?"category":"numeric"},OI=function(a){a=$APP.Pd(function(b){return $APP.Od.h($APP.Yj,$APP.fh.g(b))},$APP.kc([a]));
6
+ return $APP.wc(a)?new $APP.Q(null,2,5,$APP.fe,[0,1],null):new $APP.Q(null,2,5,$APP.fe,[$APP.yd($APP.Gg,a),$APP.yd($APP.Fg,a)],null)},PI=function(a){var b=NI(a);if($APP.C.h(b,"category"))return a=$APP.zd($APP.Fg,0,$APP.Od.h(function(c){return $APP.B($APP.fh.g(c))},a)),new $APP.Q(null,2,5,$APP.fe,[0,$APP.Fg.h(1,a)-1],null);a=$APP.Pd(function(c){return $APP.Od.h($APP.Zj,$APP.fh.g(c))},$APP.kc([a]));return $APP.wc(a)?new $APP.Q(null,2,5,$APP.fe,[0,1],null):new $APP.Q(null,2,5,$APP.fe,[$APP.yd($APP.Gg,
7
+ a),$APP.yd($APP.Fg,a)],null)},QI=function(a,b){return b==null?(b=Math.abs(a),b>=1E6?""+$APP.T.g(Math.round(a/1E6))+"M":b>=1E3?""+$APP.T.g(Math.round(a/1E3))+"K":$APP.n(Number.isInteger(a))?""+$APP.T.g(a):a.toFixed(1)):$APP.C.h(b,"int")?""+$APP.T.g(Math.round(a)):$APP.C.h(b,"pct")?""+$APP.T.g(a)+"%":$APP.C.h(b,"abbr")?(b=Math.abs(a),b>=1E9?""+$APP.T.g((a/1E9).toFixed(1))+"B":b>=1E6?""+$APP.T.g((a/1E6).toFixed(1))+"M":b>=1E3?""+$APP.T.g((a/1E3).toFixed(1))+"K":""+$APP.T.g(a)):$APP.C.h(b,"raw")?""+$APP.T.g(a):
8
+ $APP.n(b.startsWith("fixed:"))?(b=parseInt(b.slice(6),10),$APP.n(isNaN(b))?""+$APP.T.g(a):a.toFixed(b)):""+$APP.T.g(a)},SI=function(a,b){a=II(a);return $APP.ke($APP.Ld(function(c){$APP.E(c,0,null);c=$APP.E(c,1,null);return $APP.Lc(function(d,e){var g=Math.abs(RI.g(e)-b);return d==null||g<$APP.ek.g(d)?$APP.Eg.m(e,$APP.ek,g):d},null,c)},a))},TI=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},rJ=function(a){a=$APP.mf([UI,VI,WI,XI,$APP.ck,YI,ZI,$I,aJ,bJ,$APP.yh,cJ,dJ],[a.getAttribute("selected"),
9
+ a.getAttribute("padding"),$APP.n(a.hasAttribute("tooltip"))?a.getAttribute("tooltip"):null,a.getAttribute("y-format"),$APP.n(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.n(a.hasAttribute("grid"))?a.getAttribute("grid"):null,$APP.n(a.hasAttribute("axes"))?a.getAttribute("axes"):null,a.getAttribute("height"),a.getAttribute("cursor"),$APP.n(a.hasAttribute("loading"))?a.getAttribute("loading"):null,a.getAttribute("type"),a.getAttribute("data"),a.getAttribute("x-format")]);var b=$APP.N(a);
10
+ a=$APP.I(b,dJ);var c=$APP.I(b,UI),d=$APP.I(b,VI),e=$APP.I(b,WI),g=$APP.I(b,XI),h=$APP.I(b,$APP.ck),k=$APP.I(b,YI),m=$APP.I(b,ZI),p=$APP.I(b,$I),q=$APP.I(b,aJ),v=$APP.I(b,bJ),x=$APP.I(b,$APP.yh);b=$APP.I(b,cJ);b=MI(b);var y=OI(b),A=$APP.E(y,0,null),D=$APP.E(y,1,null);y=[eJ,$APP.Vi,fJ,gJ,$APP.Fh,hJ,iJ,$APP.Z,$APP.Hk,jJ,$APP.X,kJ,lJ,$APP.Mi,mJ,nJ];var G=new $APP.Q(null,2,5,$APP.fe,[A,D],null);a:{if(typeof c==="string"&&(c=c.split(":"),$APP.C.h(2,c.length))){var H=parseInt(c[1],10);c=$APP.n(isNaN(H))?
11
+ null:new $APP.R(null,2,[oJ,c[0],$APP.ih,H],null);break a}c=null}m=m==null?!0:JI(m);v=JI(v);q=typeof q==="string"&&$APP.K(pJ,q)?q:"nearest";x=typeof x==="string"&&$APP.K(qJ,x)?x:"line";d=KI(d,12);h=JI(h);e=JI(e);a:if($APP.C.h(A,D))A=new $APP.Q(null,1,5,$APP.fe,[A],null);else{H=D-A;if(H===0)H=1;else{var F=H/5;H=Math.pow(10,Math.floor(Math.log10(F)));F/=H;H*=F<=1?1:F<=2?2:F<=2.5?2.5:F<=5?5:10}D=Math.floor(D/H)*H;A=Math.ceil(A/H)*H;for(var P=$APP.Td;;){if(A>D+H*1E-4){A=P;break a}F=A+H;P=$APP.ad.h(P,A);
12
+ A=F}A=void 0}return $APP.mf(y,[G,c,m,b,v,g,q,x,d,a,h,e,A,KI(p,180),NI(b),k==null?!0:JI(k)])},sJ=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},tJ=function(a,b,c,d){var e=$APP.E(b,0,null);b=$APP.E(b,1,null);e=b-e;return e===0?(c+d)/2:c+(b-a)/e*(d-c)},uJ=function(a,b,c,d){var e=$APP.E(b,0,null);b=$APP.E(b,1,null)-e;return b===0?(c+d)/2:c+(a-e)/b*(d-c)},vJ=function(a,b,c){a.setAttribute(b,c)},wJ=function(a,b,c,d){var e=TI("line");a=""+$APP.T.g(a);
13
+ e.setAttribute("x1",a);b=""+$APP.T.g(b);e.setAttribute("y1",b);c=""+$APP.T.g(c);e.setAttribute("x2",c);d=""+$APP.T.g(d);e.setAttribute("y2",d);e.setAttribute("stroke","var(--x-chart-grid)");d=""+$APP.T.g(1);e.setAttribute("stroke-opacity",d);e.setAttribute("stroke-width","1");return e},xJ=function(a,b,c,d){var e=TI("text");a=""+$APP.T.g(a);e.setAttribute("x",a);b=""+$APP.T.g(b);e.setAttribute("y",b);e.setAttribute("text-anchor",d);d=""+$APP.T.g(10);e.setAttribute("font-size",d);e.setAttribute("fill",
14
+ "var(--x-chart-axis-label)");e.textContent=c;return e},yJ=function(a){return"var(--x-chart-series-"+$APP.T.g($APP.Vc(a,4)+1)+")"},AJ=function(a){if($APP.u(a)){var b=$APP.u(a);a=$APP.w(b);b=$APP.z(b);return"M "+$APP.T.g(RI.g(a))+","+$APP.T.g(zJ.g(a))+$APP.T.g($APP.yd($APP.T,$APP.Od.h(function(c){return" L "+$APP.T.g(RI.g(c))+","+$APP.T.g(zJ.g(c))},b)))}return null},BJ=function(a){for(;;){var b=a.lastChild;if($APP.n(b))a.removeChild(b);else break}},GJ=function(a,b,c){b=$APP.N(b);var d=$APP.I(b,lJ);
15
+ b=$APP.I(b,eJ);var e=$APP.N(c);c=$APP.I(e,CJ);var g=$APP.I(e,DJ),h=$APP.I(e,EJ);e=$APP.I(e,FJ);d=$APP.u(d);for(var k=null,m=0,p=0;;)if(p<m){var q=k.G(null,p);q=tJ(q,b,g,e);q=wJ(c,q,h,q);a.appendChild(q);p+=1}else if(d=$APP.u(d))$APP.Cc(d)?(m=$APP.qb(d),d=$APP.rb(d),k=m,m=$APP.B(m)):(q=$APP.w(d),k=tJ(q,b,g,e),k=wJ(c,k,h,k),a.appendChild(k),d=$APP.z(d),k=null,m=0),p=0;else break},HJ=function(a,b,c,d){var e=$APP.N(b),g=$APP.I(e,lJ),h=$APP.I(e,eJ);b=$APP.I(e,gJ);var k=$APP.I(e,mJ),m=$APP.I(e,hJ),p=$APP.I(e,
16
+ jJ);e=$APP.N(c);var q=$APP.I(e,CJ);c=$APP.I(e,DJ);var v=$APP.I(e,EJ),x=$APP.I(e,FJ);g=$APP.u(g);e=null;for(var y=0,A=0;;)if(A<y){var D=e.G(null,A),G=tJ(D,h,c,x);D=QI(D,m);G=xJ(q-4,G+4,D,"end");a.appendChild(G);A+=1}else if(g=$APP.u(g))$APP.Cc(g)?(y=$APP.qb(g),g=$APP.rb(g),e=y,y=$APP.B(y)):(y=$APP.w(g),e=tJ(y,h,c,x),y=QI(y,m),e=xJ(q-4,e+4,y,"end"),a.appendChild(e),g=$APP.z(g),e=null,y=0),A=0;else break;h=$APP.w(b);if($APP.n(h)){h=$APP.fh.g(h);m=$APP.B(h);var H=PI(b),F=$APP.Fg.h(1,Math.ceil(m/5)|0);
17
+ GI($APP.Kd(function(P,la){if($APP.Vc(P,F)===0){if($APP.C.h(k,"category")){var Ca=$APP.w($APP.z(H))-$APP.w(H);P=Ca<=1?(q+v)/2:q+P/(Ca-1)*(v-q)}else P=uJ($APP.Zj.g(la),H,q,v);la=$APP.C.h(k,"category")?""+$APP.T.g($APP.Zj.g(la)):QI($APP.Zj.g(la),p);la=xJ(P,x+d+4,la,"middle");return a.appendChild(la)}return null},h))}},KJ=function(a,b,c,d,e,g){e=$APP.N(e);var h=$APP.I(e,CJ),k=$APP.I(e,DJ),m=$APP.I(e,EJ),p=$APP.I(e,FJ);return $APP.Kd(function(q,v){if($APP.C.h(c,"category")){var x=$APP.Fg.h(1,$APP.B($APP.fh.g(a)))-
18
+ 1;x=x<=1?(h+m)/2:h+q/(x-1)*(m-h)}else x=uJ($APP.Zj.g(v),d,h,m);var y=tJ($APP.Yj.g(v),g,k,p);return $APP.Eg.B(v,RI,x,$APP.kc([zJ,y,IJ,b,JJ,q]))},$APP.fh.g(a))},LJ=function(a,b,c){b=AJ(b);if($APP.n(b)){var d=TI("path");d.setAttribute("d",b);d.setAttribute("fill","none");d.setAttribute("stroke",c);d.setAttribute("stroke-width","2");d.setAttribute("stroke-linejoin","round");d.setAttribute("stroke-linecap","round");return a.appendChild(d)}return null},MJ=function(a,b,c,d){if($APP.u(b)){var e=AJ(b),g=$APP.nc(b);
19
+ b=$APP.w(b);d=""+$APP.T.g(e)+" L "+$APP.T.g(RI.g(g))+","+$APP.T.g(d)+" L "+$APP.T.g(RI.g(b))+","+$APP.T.g(d)+" Z"}else d=null;$APP.n(d)&&(e=TI("path"),e.setAttribute("d",d),e.setAttribute("fill",c),e.setAttribute("fill-opacity","0.18"),e.setAttribute("stroke",c),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("stroke-linecap","round"),a.appendChild(e))},OJ=function(a,b,c,d,e,g){var h=$APP.N(e);e=$APP.I(h,CJ);h=$APP.I(h,EJ);var k=$APP.B(c);e=k===0?0:(h-e)/
20
+ k;h=e*.08;g=(e-h*2)/g;b*=g;c=$APP.u(c);k=null;for(var m=0,p=0;;)if(p<m){var q=k.G(null,p),v=RI.g(q)+-(e/2)+h+b,x=$APP.Gg.h(zJ.g(q),NJ.g(q)),y=Math.abs(zJ.g(q)-NJ.g(q)),A=q=TI("rect");v=""+$APP.T.g(v);A.setAttribute("x",v);v=q;x=""+$APP.T.g(x);v.setAttribute("y",x);x=q;v=""+$APP.T.g($APP.Fg.h(1,g));x.setAttribute("width",v);x=q;y=""+$APP.T.g($APP.Fg.h(0,y));x.setAttribute("height",y);q.setAttribute("fill",d);q.setAttribute("rx","2");a.appendChild(q);p+=1}else if(c=$APP.u(c))$APP.Cc(c)?(m=$APP.qb(c),
21
+ c=$APP.rb(c),k=m,m=$APP.B(m)):(q=$APP.w(c),y=RI.g(q)+-(e/2)+h+b,p=$APP.Gg.h(zJ.g(q),NJ.g(q)),m=Math.abs(zJ.g(q)-NJ.g(q)),q=k=TI("rect"),y=""+$APP.T.g(y),q.setAttribute("x",y),q=k,p=""+$APP.T.g(p),q.setAttribute("y",p),p=k,q=""+$APP.T.g($APP.Fg.h(1,g)),p.setAttribute("width",q),p=k,m=""+$APP.T.g($APP.Fg.h(0,m)),p.setAttribute("height",m),k.setAttribute("fill",d),k.setAttribute("rx","2"),a.appendChild(k),c=$APP.z(c),k=null,m=0),p=0;else return null},RJ=function(a,b,c,d){if($APP.u(a)){var e=$APP.w(a);
22
+ b=typeof $APP.Zj.g(e)==="string"?""+$APP.T.g($APP.Zj.g(e)):QI($APP.Zj.g(e),b);var g=$APP.Je.h($APP.Fd,$APP.Kd(function(h,k){var m=$APP.fe,p=$APP.Oj.g(k);k=$APP.Ci.g(k);h=$APP.n(k)?k:yJ(h);return new $APP.Q(null,2,5,m,[p,h],null)},d));d=$APP.Ud(function(h){return new $APP.R(null,5,[$APP.Ci,$APP.qc(g,$APP.Oj.g(h),yJ(IJ.h(h,0))),$APP.U,""+$APP.T.g($APP.U.g(h)),$APP.Xh,QI($APP.Yj.g(h),c),RI,RI.g(h),zJ,zJ.g(h)],null)},a);return new $APP.R(null,5,[PJ,b,$APP.ji,d,RI,RI.g(e),zJ,zJ.g(e),QJ,$APP.Ud(function(h){return new $APP.R(null,
23
+ 3,[RI,RI.g(h),zJ,zJ.g(h),$APP.Ci,$APP.qc(g,$APP.Oj.g(h),yJ(IJ.h(h,0)))],null)},a)],null)}return null},SJ=function(a){var b=$APP.l(a,"tooltip"),c=$APP.l(a,"crosshair");a=$APP.l(a,"dots");$APP.n(b)&&b.setAttribute("data-visible","false");$APP.n(c)&&c.setAttribute("visibility","hidden");if($APP.n(a))for(b=0;;)if(b<8)c=a[b],$APP.n(c)&&c.setAttribute("visibility","hidden"),b+=1;else return null;else return null},TJ=function(a,b,c){return $APP.Lc(function(d,e){var g=RI.g(e)-b,h=zJ.g(e)-c;g=g*g+h*h;return d==
24
+ null||g<$APP.ek.g(d)?$APP.Eg.m(e,$APP.ek,g):d},null,a)},VJ=function(a,b,c,d,e,g,h,k,m,p,q){$APP.C.h(h,"none")||(b.addEventListener("mousemove",function(v){var x=b.getBoundingClientRect(),y=v.clientX-x.x;v=v.clientY-x.y;$APP.C.h(h,"x")?y=SI(c,y):(y=TJ(c,y,v),y=$APP.n(y)?new $APP.Q(null,1,5,$APP.fe,[y],null):null);v=y;y=$APP.w(v);if($APP.n(y)){if($APP.n(k)&&(x=RJ(v,m,p,q),v=$APP.l(d,"tooltip"),$APP.n($APP.n(v)?x:v))){var A=$APP.N(x),D=$APP.I(A,PJ),G=$APP.I(A,$APP.ji);x=$APP.I(A,RI);var H=$APP.I(A,zJ),
25
+ F=$APP.I(A,QJ),P=$APP.l(d,"tooltip-header"),la=$APP.l(d,"tooltip-body"),Ca=$APP.l(d,"tooltip-rows"),Xa=$APP.l(d,"dots");A=$APP.l(d,"crosshair");$APP.n(P)&&(P.textContent=D);if($APP.n($APP.n(la)?Ca:la))for(D=0;;)if(D<8){la=Ca[D];if($APP.n(la))if(P=$APP.E(G,D,null),$APP.n(P)){la.setAttribute("data-hidden","false");la=la.firstChild;var Wb=$APP.n(la)?la.nextSibling:null,zh=$APP.n(Wb)?Wb.nextSibling:null;$APP.n(la)&&(la.style.backgroundColor=$APP.Ci.g(P));$APP.n(Wb)&&(Wb.textContent=$APP.U.g(P));$APP.n(zh)&&
26
+ (zh.textContent=$APP.Xh.g(P))}else la.setAttribute("data-hidden","true");D+=1}else break;if($APP.n(Xa))for(G=0;;)if(G<8)Ca=Xa[G],$APP.n(Ca)&&(D=$APP.E(F,G,null),$APP.n(D)?(P=Ca,la=""+$APP.T.g(RI.g(D)),P.setAttribute("cx",la),P=Ca,la=""+$APP.T.g(zJ.g(D)),P.setAttribute("cy",la),P=Ca,D=$APP.Ci.g(D),P.setAttribute("fill",D),Ca.setAttribute("visibility","visible")):Ca.setAttribute("visibility","hidden")),G+=1;else break;$APP.n(A)&&A.setAttribute("visibility","visible");$APP.n(A)&&(F=""+$APP.T.g(x),A.setAttribute("x1",
27
+ F));$APP.n(A)&&(F=""+$APP.T.g(x),A.setAttribute("x2",F));v.setAttribute("data-visible","true");A=v.offsetWidth;F=v.offsetHeight;H=H+F+8>g?H-F-8:H-4;x=new $APP.R(null,2,[UJ,$APP.Fg.h(8,$APP.Gg.h(x+A+12+8>e?x-A-12:x+12,e-A-8)),$APP.uh,$APP.Fg.h(8,$APP.Gg.h(H,g-F-8))],null);H=$APP.N(x);x=$APP.I(H,UJ);H=$APP.I(H,$APP.uh);v.style.left=""+$APP.T.g(x)+"px";v.style.top=""+$APP.T.g(H)+"px"}return sJ(a,"x-chart-hover",{seriesId:$APP.Oj.g(y),index:JJ.g(y),x:$APP.Zj.g(y),y:$APP.Yj.g(y),value:$APP.Yj.g(y)})}return null}),
28
+ b.addEventListener("mouseleave",function(){return $APP.n(k)?SJ(d):null}),b.addEventListener("click",function(v){var x=b.getBoundingClientRect();v=TJ(c,v.clientX-x.x,v.clientY-x.y);return $APP.n(v)?sJ(a,"x-chart-select",{seriesId:$APP.Oj.g(v),index:JJ.g(v),x:$APP.Zj.g(v),y:$APP.Yj.g(v),value:$APP.Yj.g(v)}):null}))},WJ=function(a,b){b.addEventListener("keydown",function(c){var d=c.key,e=rJ(a),g=$APP.N(e);e=$APP.I(g,gJ);var h=$APP.I(g,$APP.X),k=$APP.I(g,$APP.Vi);g=$APP.I(g,iJ);if($APP.r(h)&&$APP.O(g,
29
+ "none")&&$APP.u(e)){var m=$APP.ke(e);if(k==null)return $APP.n(function(){var v=new $APP.S(null,new $APP.R(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null);return v.g?v.g(d):v.call(null,d)}())?(c.preventDefault(),a.setAttribute("selected",""+$APP.T.g($APP.Oj.g($APP.w(m)))+":0")):null;g=$APP.B(m);var p=function(){var v=$APP.w(HI(function(x,y){return $APP.C.h($APP.Oj.g(y),oJ.g(k))?x:null},m));return $APP.n(v)?v:0}();h=$APP.fc(m,p);var q=$APP.B($APP.fh.g(h));e=$APP.ih.g(k);
30
+ switch(d){case "ArrowRight":return c.preventDefault(),c=$APP.Gg.h(q-1,e+1),a.setAttribute("selected",""+$APP.T.g($APP.Oj.g(h))+":"+$APP.T.g(c));case "ArrowLeft":return c.preventDefault(),c=$APP.Fg.h(0,e-1),a.setAttribute("selected",""+$APP.T.g($APP.Oj.g(h))+":"+$APP.T.g(c));case "ArrowDown":return c.preventDefault(),c=$APP.Vc(p+1,g),h=$APP.fc(m,c),c=$APP.Gg.h(e,$APP.Fg.h(1,$APP.B($APP.fh.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.Oj.g(h))+":"+$APP.T.g(c));case "ArrowUp":return c.preventDefault(),
31
+ c=$APP.Vc(p+(g-1),g),h=$APP.fc(m,c),c=$APP.Gg.h(e,$APP.Fg.h(1,$APP.B($APP.fh.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.Oj.g(h))+":"+$APP.T.g(c));case "Enter":case " ":return c.preventDefault(),c=$APP.E($APP.fh.g(h),e,null),$APP.n(c)?sJ(a,"x-chart-select",{seriesId:$APP.Oj.g(h),index:e,x:$APP.Zj.g(c),y:$APP.Yj.g(c),value:$APP.Yj.g(c)}):null;default:return null}}else return null})},XJ=function(a){a=$APP.l(a,"container");a=$APP.n(a)?a.clientWidth:0;return a>0?a:400},YJ=function(a){var b=$APP.l(a,
32
+ "__xChartRefs");if($APP.n(b)){var c=$APP.l(b,"svg"),d=$APP.l(b,"sr"),e=rJ(a),g=$APP.N(e),h=$APP.I(g,$APP.X);$APP.I(g,lJ);var k=$APP.I(g,$APP.Mi),m=$APP.I(g,kJ),p=$APP.I(g,nJ),q=$APP.I(g,mJ),v=$APP.I(g,eJ),x=$APP.I(g,fJ),y=$APP.I(g,gJ),A=$APP.I(g,$APP.Fh),D=$APP.I(g,hJ),G=$APP.I(g,iJ),H=$APP.I(g,$APP.Z),F=$APP.I(g,$APP.Hk);g=$APP.I(g,jJ);var P=XJ(b),la=new $APP.R(null,4,[CJ,F+36,DJ,F,EJ,P-F,FJ,k-F-18],null),Ca=$APP.N(la),Xa=$APP.I(Ca,CJ),Wb=$APP.I(Ca,DJ),zh=$APP.I(Ca,EJ);Ca=$APP.I(Ca,FJ);var am=PI(y),
33
+ bm=tJ(0,v,Wb,Ca);vJ(c,"viewBox","0 0 "+$APP.T.g(P)+" "+$APP.T.g(k));vJ(c,"width",""+$APP.T.g(P));vJ(c,"height",""+$APP.T.g(k));BJ(c);b.crosshair=null;b.dots=null;if(!$APP.n(A)){$APP.n(p)&&GJ(c,e,la);var bg=$APP.ke($APP.Pd(function(Uc,Oe){Oe=KJ(Uc,Oe,q,am,la,v);return $APP.Od.h(function(vf){return $APP.Eg.B(vf,$APP.Oj,$APP.Oj.g(Uc),$APP.kc([$APP.U,$APP.U.g(Uc),NJ,bm]))},Oe)},$APP.kc([y,$APP.Uf(0,Number.MAX_VALUE)])));GI($APP.Kd(function(Uc,Oe){var vf=function(){var xf=$APP.Ci.g(Oe);return $APP.n(xf)?
34
+ xf:yJ(Uc)}(),wf=$APP.Rd(function(xf){return $APP.C.h($APP.Oj.g(xf),$APP.Oj.g(Oe))},bg);switch(H){case "bar":return OJ(c,Uc,wf,vf,la,$APP.B(y));case "area":return MJ(c,wf,vf,bm),LJ(c,wf,vf);default:return LJ(c,wf,vf)}},y));$APP.n(x)&&HJ(c,e,la,F);p=TI("line");vJ(p,"x1",""+$APP.T.g(Xa));vJ(p,"y1",""+$APP.T.g(Wb));vJ(p,"x2",""+$APP.T.g(Xa));vJ(p,"y2",""+$APP.T.g(Ca));p.setAttribute("stroke","var(--x-chart-crosshair-color)");p.setAttribute("stroke-width","var(--x-chart-crosshair-width)");p.setAttribute("visibility",
35
+ "hidden");c.appendChild(p);b.crosshair=p;p=Array(8);for(x=0;;)if(x<8)F=TI("circle"),vJ(F,"r",""+$APP.T.g(4)),F.setAttribute("stroke","var(--x-chart-tooltip-bg)"),F.setAttribute("stroke-width","2"),F.setAttribute("visibility","hidden"),c.appendChild(F),p[x]=F,x+=1;else break;b.dots=p;p=TI("rect");vJ(p,"x",""+$APP.T.g(Xa));vJ(p,"y",""+$APP.T.g(Wb));vJ(p,"width",""+$APP.T.g($APP.Fg.h(0,zh-Xa)));vJ(p,"height",""+$APP.T.g($APP.Fg.h(0,Ca-Wb)));p.setAttribute("fill","transparent");p.setAttribute("style",
36
+ "cursor:crosshair;");$APP.n(h)||VJ(a,p,bg,b,P,k,G,m,g,D,y);c.appendChild(p);var uf=$APP.Vi.g(e);$APP.n($APP.n(uf)?$APP.u(y):uf)?(a=$APP.w($APP.Rd(function(Uc){return $APP.C.h($APP.Oj.g(Uc),oJ.g(uf))},y)),e=$APP.n(a)?$APP.E($APP.fh.g(a),$APP.ih.g(uf),null):null,d.textContent=$APP.n($APP.n(a)?e:a)?""+$APP.T.g($APP.U.g(a))+" "+$APP.T.g(QI($APP.Yj.g(e),D))+" at "+$APP.T.g(typeof $APP.Zj.g(e)==="string"?$APP.Zj.g(e):QI($APP.Zj.g(e),g)):""+$APP.T.g($APP.B(y))+" series chart"):d.textContent=""+$APP.T.g($APP.B(y))+
37
+ " series chart"}return $APP.n(A)?SJ(b):null}return null},ZJ=function(){var a=document.createElement("div"),b=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");a.setAttribute("part","tooltip-row");a.setAttribute("data-hidden","true");b.setAttribute("part","tooltip-swatch");c.setAttribute("part","tooltip-label");d.setAttribute("part","tooltip-value");a.appendChild(b);a.appendChild(c);a.appendChild(d);return a},$J=function(a){var b=a.attachShadow({mode:"open"}),
38
+ c=document.createElement("style"),d=document.createElement("div"),e=TI("svg"),g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("div"),m=document.createElement("div"),p=Array(8);rJ(a);c.textContent=":host{display:block;color-scheme:light dark;contain:content;--x-chart-series-1:rgba(0,102,204,0.95);--x-chart-series-2:rgba(16,140,72,0.95);--x-chart-series-3:rgba(190,20,40,0.95);--x-chart-series-4:rgba(204,120,0,0.95);--x-chart-border:rgba(0,0,0,0.1);--x-chart-grid:rgba(0,0,0,0.08);--x-chart-axis-label:rgba(0,0,0,0.5);--x-chart-skeleton:linear-gradient(90deg,rgba(0,0,0,0.06) 25%,rgba(0,0,0,0.03) 50%,rgba(0,0,0,0.06) 75%);--x-chart-tooltip-bg:rgba(255,255,255,0.96);--x-chart-tooltip-border:rgba(0,0,0,0.12);--x-chart-tooltip-shadow:0 4px 16px rgba(0,0,0,0.14);--x-chart-focus-ring:rgba(0,102,204,0.55);--x-chart-radius:0.75rem;--x-chart-tooltip-radius:0.5rem;--x-chart-tooltip-padding:0.45rem 0.7rem;--x-chart-tooltip-font-size:0.8125rem;--x-chart-tooltip-header-color:rgba(0,0,0,0.5);--x-chart-tooltip-label-color:rgba(0,0,0,0.65);--x-chart-tooltip-value-color:rgba(0,0,0,0.9);--x-chart-tooltip-swatch-size:8px;--x-chart-tooltip-gap:0.35rem;--x-chart-crosshair-color:rgba(0,0,0,0.18);--x-chart-crosshair-width:1;}@media(prefers-color-scheme:dark){:host{--x-chart-series-1:rgba(120,190,255,0.95);--x-chart-series-2:rgba(80,230,150,0.92);--x-chart-series-3:rgba(255,100,110,0.93);--x-chart-series-4:rgba(255,190,60,0.93);--x-chart-border:rgba(255,255,255,0.1);--x-chart-grid:rgba(255,255,255,0.08);--x-chart-axis-label:rgba(255,255,255,0.45);--x-chart-skeleton:linear-gradient(90deg,rgba(255,255,255,0.06) 25%,rgba(255,255,255,0.03) 50%,rgba(255,255,255,0.06) 75%);--x-chart-tooltip-bg:rgba(30,30,35,0.97);--x-chart-tooltip-border:rgba(255,255,255,0.12);--x-chart-tooltip-shadow:0 4px 20px rgba(0,0,0,0.45);--x-chart-focus-ring:rgba(120,190,255,0.55);--x-chart-tooltip-header-color:rgba(255,255,255,0.45);--x-chart-tooltip-label-color:rgba(255,255,255,0.6);--x-chart-tooltip-value-color:rgba(255,255,255,0.9);--x-chart-crosshair-color:rgba(255,255,255,0.2);}}[part\x3dcontainer]{position:relative;border:1px solid var(--x-chart-border);border-radius:var(--x-chart-radius);overflow:hidden;outline:none;}[part\x3dcontainer]:focus-visible{box-shadow:0 0 0 3px var(--x-chart-focus-ring);}[part\x3dsvg]{display:block;width:100%;height:auto;overflow:visible;}:host([loading]) [part\x3dcontainer]{background:var(--x-chart-skeleton);background-size:200% 100%;animation:x-chart-shimmer 1.4s ease infinite;}@keyframes x-chart-shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}@media(prefers-reduced-motion:reduce){:host([loading]) [part\x3dcontainer]{animation:none;}}[part\x3dsr-only]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}[part\x3dtooltip]{visibility:hidden;opacity:0;position:absolute;pointer-events:none;background:var(--x-chart-tooltip-bg);border:1px solid var(--x-chart-tooltip-border);box-shadow:var(--x-chart-tooltip-shadow);border-radius:var(--x-chart-tooltip-radius);padding:var(--x-chart-tooltip-padding);font-size:var(--x-chart-tooltip-font-size);line-height:1.5;white-space:nowrap;z-index:10;}[part\x3dtooltip][data-visible\x3dtrue]{visibility:visible;opacity:1;}@media(prefers-reduced-motion:no-preference){[part\x3dtooltip]{transition:opacity 0.1s ease,left 0.08s ease,top 0.08s ease;}}[part\x3dtooltip-header]{font-size:0.75rem;color:var(--x-chart-tooltip-header-color);margin-bottom:0.25rem;}[part\x3dtooltip-body]{display:flex;flex-direction:column;gap:var(--x-chart-tooltip-gap);}[part\x3dtooltip-row]{display:flex;align-items:center;gap:0.4rem;}[part\x3dtooltip-row][data-hidden\x3dtrue]{display:none;}[part\x3dtooltip-swatch]{display:inline-block;width:var(--x-chart-tooltip-swatch-size);height:var(--x-chart-tooltip-swatch-size);border-radius:50%;flex-shrink:0;}[part\x3dtooltip-label]{color:var(--x-chart-tooltip-label-color);}[part\x3dtooltip-value]{color:var(--x-chart-tooltip-value-color);font-weight:600;margin-left:auto;padding-left:0.5rem;}";
39
+ d.setAttribute("part","container");d.setAttribute("tabindex","0");e.setAttribute("part","svg");e.setAttribute("aria-hidden","true");e.setAttribute("role","img");g.setAttribute("part","sr-only");g.setAttribute("role","status");g.setAttribute("aria-live","polite");h.setAttribute("part","tooltip");h.setAttribute("role","tooltip");h.setAttribute("aria-hidden","true");h.setAttribute("data-visible","false");k.setAttribute("part","tooltip-header");m.setAttribute("part","tooltip-body");for(var q=0;;)if(q<
40
+ 8){var v=ZJ();m.appendChild(v);p[q]=v;q+=1}else break;h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.container=d;c.svg=e;c.sr=g;c.tooltip=h;c["tooltip-header"]=k;c["tooltip-body"]=m;c["tooltip-rows"]=p;c.crosshair=null;c.dots=null;a.__xChartRefs=c;b=new ResizeObserver(function(){return YJ(a)});b.observe(d);$APP.l(a,"__xChartRefs").ro=b;WJ(a,d)},aK=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
41
+ get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},bK=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},cK=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return KI(this.getAttribute(c),d)},set:function(e){return e!=null?
42
+ this.setAttribute(c,""+$APP.T.g(e|0)):this.removeAttribute(c)}})},dK=function(a){Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xChartData");if($APP.n(b))return b;b=this.getAttribute("data");return MI(b)},set:function(b){this.__xChartData=b;return $APP.n($APP.pa(b))?this.setAttribute("data",JSON.stringify(b)):this.removeAttribute("data")}})},fK=function(){var a=class extends HTMLElement{};a.observedAttributes=eK;a.prototype.connectedCallback=function(){$APP.n($APP.l(this,
43
+ "__xChartRefs"))||$J(this);return YJ(this)};a.prototype.disconnectedCallback=function(){var c=$APP.l(this,"__xChartRefs");$APP.n(c)?(c=$APP.l(c,"ro"),c=$APP.n(c)?c.disconnect():null):c=null;return c};a.prototype.attributeChangedCallback=function(){return $APP.n($APP.l(this,"__xChartRefs"))?YJ(this):null};var b=a.prototype;aK(b,"type","type");aK(b,"cursor","cursor");aK(b,"selected","selected");cK(b,"height","height",180);cK(b,"padding","padding",12);bK(b,"grid","grid");bK(b,"axes","axes");bK(b,"tooltip",
44
+ "tooltip");bK(b,"disabled","disabled");bK(b,"loading","loading");dK(b);return a},gK=function(){return $APP.n(customElements.get("x-chart"))?null:customElements.define("x-chart",fK())},UJ=new $APP.M(null,"left","left",-399115937),PJ=new $APP.M(null,"x-label","x-label",802517907),QJ=new $APP.M(null,"dot-pts","dot-pts",1732240900),bJ=new $APP.M(null,"loading-present?","loading-present?",-1827648748),XI=new $APP.M(null,"y-format-raw","y-format-raw",-1098541692),ZI=new $APP.M(null,"axes-raw","axes-raw",
45
+ -839946224),NJ=new $APP.M(null,"y0-baseline","y0-baseline",613579610),eJ=new $APP.M(null,"y-domain","y-domain",-969203007),mJ=new $APP.M(null,"x-kind","x-kind",693167455),$I=new $APP.M(null,"height-raw","height-raw",-867301006),UI=new $APP.M(null,"selected-raw","selected-raw",-1471626848),gJ=new $APP.M(null,"series","series",600710694),cJ=new $APP.M(null,"data-raw","data-raw",822066711),kJ=new $APP.M(null,"tooltip?","tooltip?",-642753154),oJ=new $APP.M(null,"series-id","series-id",226875035),jJ=new $APP.M(null,
46
+ "x-fmt","x-fmt",2073358008),VI=new $APP.M(null,"padding-raw","padding-raw",-847772255),zJ=new $APP.M(null,"py","py",1397985916),RI=new $APP.M(null,"px","px",281329899),dJ=new $APP.M(null,"x-format-raw","x-format-raw",-1683657190),fJ=new $APP.M(null,"axes?","axes?",1786285669),nJ=new $APP.M(null,"grid?","grid?",-288406689),aJ=new $APP.M(null,"cursor-raw","cursor-raw",-1169819084),iJ=new $APP.M(null,"cursor","cursor",1011937484),WI=new $APP.M(null,"tooltip-present?","tooltip-present?",-2098824029),
47
+ hJ=new $APP.M(null,"y-fmt","y-fmt",2092412811),DJ=new $APP.M(null,"y0","y0",111454807),FJ=new $APP.M(null,"y1","y1",589123466),JJ=new $APP.M(null,"i","i",-1386841315),EJ=new $APP.M(null,"x1","x1",-1863922247),CJ=new $APP.M(null,"x0","x0",410843387),IJ=new $APP.M(null,"si","si",793409822),lJ=new $APP.M(null,"y-ticks","y-ticks",-843622722),YI=new $APP.M(null,"grid-present?","grid-present?",-468948562);var eK="type data height padding x-format y-format grid axes tooltip cursor disabled loading selected".split(" "),qJ=new $APP.S(null,new $APP.R(null,3,["bar",null,"area",null,"line",null],null),null),pJ=new $APP.S(null,new $APP.R(null,3,["none",null,"x",null,"nearest",null],null),null);
48
+ $APP.mf([$APP.Vi,$APP.Di,new $APP.M(null,"axes","axes",1970866440),new $APP.M(null,"grid","grid",402978600),iJ,$APP.Z,$APP.Nj,$APP.Hk,new $APP.M(null,"tooltip","tooltip",-1809677058),$APP.Mi,$APP.fh],[new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"selected"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"axes"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"grid"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"cursor"],null),new $APP.R(null,
49
+ 2,[$APP.Z,$APP.Y,$APP.nj,"type"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"loading"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.nj,"padding"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"tooltip"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.nj,"height"],null),new $APP.R(null,1,[$APP.Z,$APP.Th],null)]);$APP.ja("baredom.exports.x_chart.init",gK);export const init=gK;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var tu=function(a){return a!=null&&$APP.P(a,"false")},uu=function(a,b,c){return a.setAttribute(b,c)},vu=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},yu=function(a){a=$APP.ff([$APP.Ai,$APP.aj,$APP.Sg,$APP.ih,$APP.bj,wu,$APP.Cj,$APP.Rj,$APP.Nj,$APP.oj],[a.getAttribute("name"),tu(a.getAttribute("disabled")),tu(a.getAttribute("required")),a.getAttribute("aria-labelledby"),tu(a.getAttribute("checked")),tu(a.getAttribute("indeterminate")),tu(a.getAttribute("readonly")),a.getAttribute("value"),
3
- a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.O(a);a=$APP.I(b,$APP.Nj);var c=$APP.I(b,$APP.oj),d=$APP.I(b,$APP.Ai),e=$APP.I(b,$APP.aj),g=$APP.I(b,$APP.Sg),h=$APP.I(b,$APP.ih),k=$APP.I(b,$APP.bj),m=$APP.I(b,wu),p=$APP.I(b,$APP.Cj);b=$APP.I(b,$APP.Rj);k=$APP.K(k);m=$APP.K(m);g=$APP.K(g);return $APP.ff([xu,$APP.yh,$APP.th,$APP.uk,$APP.tj,$APP.Zg,$APP.mj,$APP.ri,$APP.ek,$APP.ok,$APP.cj,$APP.V],[m,g,m?"mixed":k?"true":"false",$APP.K(p),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,
4
- c,a,$APP.K(e)])},zu=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=yu(a);var d=$APP.V.g(b),e=$APP.tj.g(b),g=xu.g(b);uu(c,"aria-checked",$APP.th.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");uu(c,"aria-required",$APP.n($APP.yh.g(b))?"true":"false");uu(c,"aria-readonly",$APP.n($APP.uk.g(b))?"true":"false");var h=$APP.cj.g(b);$APP.n(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.ek.g(b);$APP.n(h)?c.setAttribute("aria-labelledby",
5
- h):c.removeAttribute("aria-labelledby");h=$APP.ok.g(b);$APP.n(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");vu(a,"data-checked",e);vu(a,"data-indeterminate",g);vu(a,"data-disabled",d);a=$APP.l(a,"__xCheckboxInternals");if($APP.n(a))return b=$APP.n(e)?$APP.ri.g(b):null,a.setFormValue($APP.n(b)?b:null)}return null},Au=function(a){var b=yu(a),c=$APP.V.g(b),d=$APP.uk.g(b);if($APP.n($APP.n(c)?
6
- c:d))return null;c=$APP.tj.g(b);d=xu.g(b);d=$APP.n(d)?new $APP.Q(null,2,[$APP.tj,!0,xu,!1],null):new $APP.Q(null,2,[$APP.tj,$APP.q(c),xu,!1],null);var e=$APP.tj.g(d);b=$APP.ri.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.q(c.defaultPrevented)?(vu(a,"checked",e),vu(a,"indeterminate",xu.g(d)),zu(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,checked:e},
7
- bubbles:!0,composed:!0,cancelable:!1}))):null},Bu=function(a){return function(){return Au(a)}},Cu=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),Au(a)):null}},Du=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(a,"__xCheckboxHandlers");if($APP.n(c)){b=$APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},
8
- Eu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return vu(this,c,$APP.K(d))}})},Fu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.P(d)?uu(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Hu=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
9
- Gu;Eu(b,"checked","checked");Eu(b,"indeterminate","indeterminate");Eu(b,"disabled","disabled");Eu(b,"readOnly","readonly");Eu(b,"required","required");Fu(b,"name","name");Fu(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:#6b7280;--x-checkbox-border-radius:4px;--x-checkbox-bg:#ffffff;--x-checkbox-bg-checked:#2563eb;--x-checkbox-bg-indeterminate:#2563eb;--x-checkbox-border-checked:#2563eb;--x-checkbox-border-indeterminate:#2563eb;--x-checkbox-check-color:#ffffff;--x-checkbox-focus-ring:#60a5fa;--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:#9ca3af;--x-checkbox-bg:#1f2937;--x-checkbox-bg-checked:#3b82f6;--x-checkbox-bg-indeterminate:#3b82f6;--x-checkbox-border-checked:#3b82f6;--x-checkbox-border-indeterminate:#3b82f6;--x-checkbox-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
10
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}Du(this);c=$APP.l(this,"__xCheckboxRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=Bu(this),e=Cu(this),g={click:d,keydown:e},c.addEventListener("click",
11
- d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.l(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return zu(this)};b.disconnectedCallback=function(){return Du(this)};b.attributeChangedCallback=
12
- function(){return zu(this)};b.formDisabledCallback=function(c){vu(this,"disabled",$APP.K(c));return zu(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return zu(this)};return a},Iu=function(){return $APP.n(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",Hu())},xu=new $APP.N(null,"indeterminate?","indeterminate?",-1382048766),wu=new $APP.N(null,"indeterminate-present?","indeterminate-present?",-1714683438);var Gu="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.yd(["x-checkbox-change-request",new $APP.Q(null,2,[$APP.Dj,!0,$APP.Y,new $APP.Q(null,3,[$APP.ri,$APP.X,$APP.Qg,$APP.Yj,$APP.kj,$APP.Yj],null)],null),"x-checkbox-change",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,2,[$APP.ri,$APP.X,$APP.ik,$APP.Yj],null)],null)]);$APP.ja("baredom.exports.x_checkbox.init",Iu);export const init=Iu;
2
+ var Xu=function(a){return a!=null&&$APP.O(a,"false")},Yu=function(a,b,c){return a.setAttribute(b,c)},Zu=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},av=function(a){a=$APP.mf([$APP.Pj,$APP.ck,$APP.Xg,$APP.hh,$APP.mi,$u,$APP.Bi,$APP.Ak,$APP.Hi,$APP.ui],[a.getAttribute("name"),Xu(a.getAttribute("disabled")),Xu(a.getAttribute("required")),a.getAttribute("aria-labelledby"),Xu(a.getAttribute("checked")),Xu(a.getAttribute("indeterminate")),Xu(a.getAttribute("readonly")),a.getAttribute("value"),
3
+ a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=$APP.I(b,$APP.Hi);var c=$APP.I(b,$APP.ui),d=$APP.I(b,$APP.Pj),e=$APP.I(b,$APP.ck),g=$APP.I(b,$APP.Xg),h=$APP.I(b,$APP.hh),k=$APP.I(b,$APP.mi),m=$APP.I(b,$u),p=$APP.I(b,$APP.Bi);b=$APP.I(b,$APP.Ak);k=$APP.J(k);m=$APP.J(m);g=$APP.J(g);return $APP.mf([$APP.kk,$APP.ph,$APP.kh,$APP.Uk,$APP.wi,$APP.bh,$APP.si,$APP.Xh,$APP.Pi,$APP.Qk,$APP.dk,$APP.X],[m,g,m?"mixed":k?"true":"false",$APP.J(p),k,$APP.n(g)?k:!0,d,b!=null?b:"on",
4
+ h,c,a,$APP.J(e)])},bv=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=av(a);var d=$APP.X.g(b),e=$APP.wi.g(b),g=$APP.kk.g(b);Yu(c,"aria-checked",$APP.kh.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");Yu(c,"aria-required",$APP.n($APP.ph.g(b))?"true":"false");Yu(c,"aria-readonly",$APP.n($APP.Uk.g(b))?"true":"false");var h=$APP.dk.g(b);$APP.n(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.Pi.g(b);$APP.n(h)?c.setAttribute("aria-labelledby",
5
+ h):c.removeAttribute("aria-labelledby");h=$APP.Qk.g(b);$APP.n(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");Zu(a,"data-checked",e);Zu(a,"data-indeterminate",g);Zu(a,"data-disabled",d);a=$APP.l(a,"__xCheckboxInternals");if($APP.n(a))return b=$APP.n(e)?$APP.Xh.g(b):null,a.setFormValue($APP.n(b)?b:null)}return null},cv=function(a){var b=av(a),c=$APP.X.g(b),d=$APP.Uk.g(b);if($APP.n($APP.n(c)?
6
+ c:d))return null;c=$APP.wi.g(b);d=$APP.kk.g(b);d=$APP.n(d)?new $APP.R(null,2,[$APP.wi,!0,$APP.kk,!1],null):new $APP.R(null,2,[$APP.wi,$APP.r(c),$APP.kk,!1],null);var e=$APP.wi.g(d);b=$APP.Xh.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.r(c.defaultPrevented)?(Zu(a,"checked",e),Zu(a,"indeterminate",$APP.kk.g(d)),bv(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,
7
+ checked:e},bubbles:!0,composed:!0,cancelable:!1}))):null},dv=function(a){return function(){return cv(a)}},ev=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),cv(a)):null}},fv=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(a,"__xCheckboxHandlers");if($APP.n(c)){b=$APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},
8
+ gv=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Zu(this,c,$APP.J(d))}})},hv=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?Yu(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},jv=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
9
+ iv;gv(b,"checked","checked");gv(b,"indeterminate","indeterminate");gv(b,"disabled","disabled");gv(b,"readOnly","readonly");gv(b,"required","required");hv(b,"name","name");hv(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:#6b7280;--x-checkbox-border-radius:4px;--x-checkbox-bg:#ffffff;--x-checkbox-bg-checked:#2563eb;--x-checkbox-bg-indeterminate:#2563eb;--x-checkbox-border-checked:#2563eb;--x-checkbox-border-indeterminate:#2563eb;--x-checkbox-check-color:#ffffff;--x-checkbox-focus-ring:#60a5fa;--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:#9ca3af;--x-checkbox-bg:#1f2937;--x-checkbox-bg-checked:#3b82f6;--x-checkbox-bg-indeterminate:#3b82f6;--x-checkbox-border-checked:#3b82f6;--x-checkbox-border-indeterminate:#3b82f6;--x-checkbox-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
10
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}fv(this);c=$APP.l(this,"__xCheckboxRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=dv(this),e=ev(this),g={click:d,keydown:e},c.addEventListener("click",
11
+ d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.l(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return bv(this)};b.disconnectedCallback=function(){return fv(this)};b.attributeChangedCallback=
12
+ function(){return bv(this)};b.formDisabledCallback=function(c){Zu(this,"disabled",$APP.J(c));return bv(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return bv(this)};return a},kv=function(){return $APP.n(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",jv())},$u=new $APP.M(null,"indeterminate-present?","indeterminate-present?",-1714683438);var iv="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Ed(["x-checkbox-change-request",new $APP.R(null,2,[$APP.rk,!0,$APP.V,new $APP.R(null,3,[$APP.Xh,$APP.Y,$APP.fj,$APP.Ni,$APP.gk,$APP.Ni],null)],null),"x-checkbox-change",new $APP.R(null,2,[$APP.rk,!1,$APP.V,new $APP.R(null,2,[$APP.Xh,$APP.Y,$APP.Lk,$APP.Ni],null)],null)]);$APP.ja("baredom.exports.x_checkbox.init",kv);export const init=kv;
package/dist/x-chip.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Mo=function(a){var b=$APP.O(a),c=$APP.I(b,$APP.Ch);a=$APP.I(b,$APP.Rj);var d=$APP.I(b,Ko);b=$APP.I(b,$APP.aj);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.C.h(d,"false")||$APP.C.h(d,"0"));return new $APP.Q(null,4,[$APP.W,c,$APP.ri,typeof a==="string"&&a.length>0?a:c,Lo,d,$APP.V,$APP.K(b)],null)},No=function(a){var b=$APP.O(a);a=$APP.I(b,Lo);b=$APP.I(b,$APP.V);return $APP.n(a)?$APP.q(b):a},Oo=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
- a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},Po=function(a){var b=Mo(new $APP.Q(null,4,[$APP.Ch,a.getAttribute("label"),$APP.Rj,a.getAttribute("value"),Ko,a.getAttribute("removable"),$APP.aj,a.hasAttribute("disabled")],null));if($APP.n(No(b))){var c=$APP.O(b);b=$APP.I(c,$APP.ri);c=$APP.I(c,$APP.W);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.q(b.defaultPrevented)?
4
- Oo(a):null}else a=null;return a},Ro=function(a){var b=Mo(new $APP.Q(null,4,[$APP.Ch,a.getAttribute("label"),$APP.Rj,a.getAttribute("value"),Ko,a.getAttribute("removable"),$APP.aj,a.hasAttribute("disabled")],null)),c=$APP.O(b),d=$APP.I(c,$APP.W),e=$APP.I(c,Lo);c=$APP.I(c,$APP.V);var g=$APP.l(a,"__xChipRefs"),h=$APP.hk.g(g);g=Qo.g(g);b=No(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
5
- "true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},So=function(a){function b(e){var g=e.key;return $APP.C.h(g,"Backspace")||$APP.C.h(g,"Delete")?(e.preventDefault(),Po(a)):null}function c(){return Po(a)}var d=Qo.g($APP.l(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
- b);$APP.la(a,"__xChipHandlers",{click:c,keydown:b})},To=function(a){var b=$APP.l(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.l(a,"__xChipRefs"),d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=Qo.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},Uo=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
7
- enumerable:!0,configurable:!0})},Vo=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Wo=function(a){Uo(a,"label");Uo(a,"value");Vo(a,"removable");Vo(a,"disabled")},Yo=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Xo}});b.connectedCallback=function(){if(!$APP.n($APP.l(this,
2
+ var hp=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.sh);a=$APP.I(b,$APP.Ak);var d=$APP.I(b,fp);b=$APP.I(b,$APP.ck);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.C.h(d,"false")||$APP.C.h(d,"0"));return new $APP.R(null,4,[$APP.U,c,$APP.Xh,typeof a==="string"&&a.length>0?a:c,gp,d,$APP.X,$APP.J(b)],null)},ip=function(a){var b=$APP.N(a);a=$APP.I(b,gp);b=$APP.I(b,$APP.X);return $APP.n(a)?$APP.r(b):a},jp=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
+ a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},kp=function(a){var b=hp(new $APP.R(null,4,[$APP.sh,a.getAttribute("label"),$APP.Ak,a.getAttribute("value"),fp,a.getAttribute("removable"),$APP.ck,a.hasAttribute("disabled")],null));if($APP.n(ip(b))){var c=$APP.N(b);b=$APP.I(c,$APP.Xh);c=$APP.I(c,$APP.U);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.r(b.defaultPrevented)?
4
+ jp(a):null}else a=null;return a},mp=function(a){var b=hp(new $APP.R(null,4,[$APP.sh,a.getAttribute("label"),$APP.Ak,a.getAttribute("value"),fp,a.getAttribute("removable"),$APP.ck,a.hasAttribute("disabled")],null)),c=$APP.N(b),d=$APP.I(c,$APP.U),e=$APP.I(c,gp);c=$APP.I(c,$APP.X);var g=$APP.l(a,"__xChipRefs"),h=$APP.Kk.g(g);g=lp.g(g);b=ip(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
5
+ "true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},np=function(a){function b(e){var g=e.key;return $APP.C.h(g,"Backspace")||$APP.C.h(g,"Delete")?(e.preventDefault(),kp(a)):null}function c(){return kp(a)}var d=lp.g($APP.l(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
+ b);$APP.ma(a,"__xChipHandlers",{click:c,keydown:b})},op=function(a){var b=$APP.l(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.l(a,"__xChipRefs"),d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=lp.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},pp=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
7
+ enumerable:!0,configurable:!0})},qp=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},rp=function(a){pp(a,"label");pp(a,"value");qp(a,"removable");qp(a,"disabled")},tp=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return sp}});b.connectedCallback=function(){if(!$APP.n($APP.l(this,
8
8
  "__xChipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("span"),g=document.createElement("span"),h=document.createElement("button"),k=document.createElement("span");d.textContent=":host{--x-chip-bg:rgba(0,0,0,0.08);--x-chip-color:rgba(0,0,0,0.80);--x-chip-border:rgba(0,0,0,0.12);--x-chip-radius:9999px;--x-chip-font-size:0.875rem;--x-chip-padding-x:0.625rem;--x-chip-padding-y:0.25rem;--x-chip-remove-size:1rem;--x-chip-exit-duration:300ms;display:inline-flex;align-items:center;vertical-align:middle;color-scheme:light dark;font-family:inherit;font-size:var(--x-chip-font-size);line-height:1;border-radius:var(--x-chip-radius);background:var(--x-chip-bg);border:1px solid var(--x-chip-border);color:var(--x-chip-color);padding:var(--x-chip-padding-y) var(--x-chip-padding-x);gap:0.25rem;box-sizing:border-box;cursor:default;user-select:none;outline:none;}@media (prefers-color-scheme:dark){:host{--x-chip-bg:rgba(255,255,255,0.10);--x-chip-border:rgba(255,255,255,0.16);--x-chip-color:rgba(255,255,255,0.88);}}:host(:focus-visible){outline:2px solid currentColor;outline-offset:2px;}:host([disabled]){opacity:0.55;pointer-events:none;}[part\x3dcontainer]{display:inline-flex;align-items:center;gap:0.25rem;}[part\x3dlabel]{display:inline;font-size:inherit;color:inherit;}[part\x3dremove]{display:none;align-items:center;justify-content:center;width:var(--x-chip-remove-size);height:var(--x-chip-remove-size);border:none;background:none;color:inherit;cursor:pointer;padding:0;border-radius:50%;font-size:1rem;line-height:1;opacity:0.7;flex-shrink:0;}[part\x3dremove]:hover{opacity:1;}[part\x3dremove]:focus-visible{outline:2px solid currentColor;outline-offset:1px;}:host([data-removable]) [part\x3dremove]{display:inline-flex;}@keyframes x-chip-exit{to{opacity:0;transform:scale(0.85);}}:host([data-exiting]){animation:x-chip-exit var(--x-chip-exit-duration) forwards;}@media (prefers-reduced-motion:reduce){:host([data-exiting]){animation-duration:0ms;}}";
9
- e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");k.setAttribute("aria-hidden","true");k.textContent="×";h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.Q(null,4,[$APP.Xh,c,$APP.xj,e,$APP.hk,g,Qo,h],null)}To(this);So(this);return Ro(this)};b.disconnectedCallback=function(){return To(this)};b.attributeChangedCallback=function(c,
10
- d,e){return $APP.P(d,e)?$APP.n($APP.l(this,"__xChipRefs"))?Ro(this):null:null};Wo(b);return a},Zo=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",Yo());return null},Ko=new $APP.N(null,"removable-raw","removable-raw",1718453796),Qo=new $APP.N(null,"remove-btn","remove-btn",843430290),Lo=new $APP.N(null,"removable?","removable?",1886800649);var Xo=["label","value","removable","disabled"];$APP.yd(["x-chip-remove",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.ri,$APP.X,$APP.W,$APP.X],null),$APP.Dj,!0],null)]);$APP.ja("baredom.exports.x_chip.init",Zo);export const init=Zo;
9
+ e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");k.setAttribute("aria-hidden","true");k.textContent="×";h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.R(null,4,[$APP.Jh,c,$APP.yi,e,$APP.Kk,g,lp,h],null)}op(this);np(this);return mp(this)};b.disconnectedCallback=function(){return op(this)};b.attributeChangedCallback=function(c,
10
+ d,e){return $APP.O(d,e)?$APP.n($APP.l(this,"__xChipRefs"))?mp(this):null:null};rp(b);return a},up=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",tp());return null},fp=new $APP.M(null,"removable-raw","removable-raw",1718453796),lp=new $APP.M(null,"remove-btn","remove-btn",843430290),gp=new $APP.M(null,"removable?","removable?",1886800649);var sp=["label","value","removable","disabled"];$APP.Ed(["x-chip-remove",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.Xh,$APP.Y,$APP.U,$APP.Y],null),$APP.rk,!0],null)]);$APP.ja("baredom.exports.x_chip.init",up);export const init=up;