@vanelsas/baredom 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/custom-elements.json +3673 -2681
  3. package/dist/baredom.d.ts +91 -86
  4. package/dist/base.js +595 -541
  5. package/dist/integrity.json +108 -103
  6. package/dist/x-alert.js +17 -16
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +9 -9
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +14 -13
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.d.ts +55 -0
  15. package/dist/x-calendar.js +40 -0
  16. package/dist/x-cancel-dialogue.js +14 -13
  17. package/dist/x-card.d.ts +1 -1
  18. package/dist/x-card.js +7 -7
  19. package/dist/x-carousel.d.ts +3 -0
  20. package/dist/x-carousel.js +35 -33
  21. package/dist/x-chart.js +47 -47
  22. package/dist/x-checkbox.js +1 -1
  23. package/dist/x-chip.js +1 -1
  24. package/dist/x-code.d.ts +48 -0
  25. package/dist/x-code.js +28 -0
  26. package/dist/x-collapse.d.ts +1 -0
  27. package/dist/x-collapse.js +11 -10
  28. package/dist/x-color-picker.js +46 -45
  29. package/dist/x-combobox.d.ts +2 -0
  30. package/dist/x-combobox.js +30 -26
  31. package/dist/x-command-palette.d.ts +3 -0
  32. package/dist/x-command-palette.js +28 -26
  33. package/dist/x-confetti.js +24 -24
  34. package/dist/x-container.js +5 -6
  35. package/dist/x-context-menu.d.ts +4 -0
  36. package/dist/x-context-menu.js +20 -20
  37. package/dist/x-copy.js +1 -21
  38. package/dist/x-currency-field.d.ts +2 -0
  39. package/dist/x-currency-field.js +24 -23
  40. package/dist/x-date-picker.d.ts +3 -0
  41. package/dist/x-date-picker.js +39 -42
  42. package/dist/x-divider.js +10 -9
  43. package/dist/x-drawer.js +11 -10
  44. package/dist/x-dropdown.d.ts +3 -0
  45. package/dist/x-dropdown.js +12 -11
  46. package/dist/x-fieldset.js +6 -5
  47. package/dist/x-file-download.js +7 -7
  48. package/dist/x-file-upload.d.ts +2 -0
  49. package/dist/x-file-upload.js +23 -22
  50. package/dist/x-form-field.js +15 -15
  51. package/dist/x-form.d.ts +4 -0
  52. package/dist/x-form.js +10 -9
  53. package/dist/x-gaussian-blur.js +13 -12
  54. package/dist/x-grid.js +6 -7
  55. package/dist/x-i18n-provider.js +7 -7
  56. package/dist/x-i18n.js +4 -4
  57. package/dist/x-icon.js +7 -7
  58. package/dist/x-image.js +17 -17
  59. package/dist/x-kbd.js +16 -16
  60. package/dist/x-kinetic-canvas.js +26 -25
  61. package/dist/x-kinetic-font.js +27 -27
  62. package/dist/x-kinetic-typography.js +35 -33
  63. package/dist/x-liquid-dock.js +34 -38
  64. package/dist/x-liquid-fill.js +42 -45
  65. package/dist/x-liquid-glass.js +41 -47
  66. package/dist/x-menu-item.js +8 -8
  67. package/dist/x-menu.js +10 -11
  68. package/dist/x-metaball-cursor.js +23 -26
  69. package/dist/x-modal.js +12 -11
  70. package/dist/x-morph-stack.d.ts +4 -0
  71. package/dist/x-morph-stack.js +37 -37
  72. package/dist/x-multi-combobox.js +36 -36
  73. package/dist/x-navbar.js +15 -12
  74. package/dist/x-neural-glow.js +30 -33
  75. package/dist/x-notification-center.d.ts +2 -0
  76. package/dist/x-notification-center.js +9 -9
  77. package/dist/x-organic-divider.js +18 -17
  78. package/dist/x-organic-progress.js +35 -37
  79. package/dist/x-organic-shape.js +14 -13
  80. package/dist/x-otp-input.js +22 -22
  81. package/dist/x-pagination.js +14 -15
  82. package/dist/x-particle-button.js +51 -51
  83. package/dist/x-popover.d.ts +3 -0
  84. package/dist/x-popover.js +27 -25
  85. package/dist/x-progress-circle.d.ts +3 -0
  86. package/dist/x-progress-circle.js +9 -9
  87. package/dist/x-progress.js +8 -10
  88. package/dist/x-proximity-list.js +20 -20
  89. package/dist/x-radio.js +11 -11
  90. package/dist/x-range-slider.d.ts +51 -0
  91. package/dist/x-range-slider.js +29 -0
  92. package/dist/x-rating.d.ts +49 -0
  93. package/dist/x-rating.js +24 -0
  94. package/dist/x-ripple-effect.js +10 -11
  95. package/dist/x-scroll-parallax.js +17 -18
  96. package/dist/x-scroll-stack.js +16 -17
  97. package/dist/x-scroll-story.js +33 -34
  98. package/dist/x-scroll-timeline.js +46 -45
  99. package/dist/x-scroll.d.ts +3 -0
  100. package/dist/x-scroll.js +38 -40
  101. package/dist/x-search-field.d.ts +2 -0
  102. package/dist/x-search-field.js +1 -1
  103. package/dist/x-select.js +1 -1
  104. package/dist/x-sidebar.js +18 -17
  105. package/dist/x-skeleton-group.js +12 -12
  106. package/dist/x-skeleton.js +1 -1
  107. package/dist/x-slider.js +16 -15
  108. package/dist/x-soft-body.js +20 -22
  109. package/dist/x-spacer.js +4 -4
  110. package/dist/x-spinner.js +4 -4
  111. package/dist/x-splash.js +12 -13
  112. package/dist/x-split-pane.d.ts +44 -0
  113. package/dist/x-split-pane.js +16 -0
  114. package/dist/x-spotlight-card.js +12 -12
  115. package/dist/x-stat.js +10 -10
  116. package/dist/x-stepper.js +13 -14
  117. package/dist/x-switch.js +11 -10
  118. package/dist/x-tab.js +7 -7
  119. package/dist/x-table-cell.js +21 -20
  120. package/dist/x-table-row.js +8 -8
  121. package/dist/x-table.d.ts +32 -32
  122. package/dist/x-table.js +13 -12
  123. package/dist/x-tabs.js +11 -11
  124. package/dist/x-text-area.js +19 -19
  125. package/dist/x-theme.js +25 -25
  126. package/dist/x-timeline-item.js +20 -20
  127. package/dist/x-timeline.js +8 -8
  128. package/dist/x-toast.d.ts +1 -0
  129. package/dist/x-toast.js +22 -22
  130. package/dist/x-toaster.js +7 -8
  131. package/dist/x-tooltip.d.ts +2 -0
  132. package/dist/x-tooltip.js +12 -12
  133. package/dist/x-trace-history.js +127 -117
  134. package/dist/x-typography.js +9 -9
  135. package/dist/x-welcome-tour.js +63 -61
  136. package/package.json +29 -2
@@ -1,21 +1,21 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Qr=function(a){a=$APP.C(Pr,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.wm},Sr=function(a){a=$APP.C(Rr,a);return $APP.n(a)?a:"pending"},Vr=function(a){a=$APP.C(Tr,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Ur},Wr=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Xr=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Zr=function(a,
3
- b){a=$APP.C(Yr,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(Yr,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Bq);return b},$r=function(a,b,c){a=Sr(a);c=c!=null?"Step "+$APP.V.i(c+1)+": ":null;return""+$APP.V.i(c)+$APP.V.i(typeof b==="string"&&$APP.I(b,"")?""+$APP.V.i(b)+" ":null)+"("+$APP.V.i(a)+")"},js=function(a){var b=$APP.G(a),c=$APP.C(b,as);a=$APP.C(b,$APP.Bi);var d=$APP.C(b,$APP.ao),e=$APP.C(b,$APP.ui),f=$APP.C(b,bs),h=$APP.C(b,$APP.Mm),l=$APP.C(b,cs),m=$APP.C(b,
4
- $APP.bn),q=$APP.C(b,ds),r=$APP.C(b,$APP.lm),v=$APP.C(b,$APP.xo);b=$APP.C(b,$APP.Kn);var x=Qr(m),z=Wr(b),B=$APP.n($APP.n(r)?z==null:r)?$APP.mr:z!=null?$APP.Tp:$APP.Yh;m=function(){var E=B instanceof $APP.F?B.ga:null;switch(E){case "default":return E=$APP.C(es,x),$APP.n(E)?E:$APP.C(es,$APP.wm);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.V.i(E));}}();c=Xr(c);d=Zr(l,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.Wf([$APP.zm,fs,gs,bs,ds,$APP.$o,$APP.Gm,
5
- $APP.Do,$APP.Z,hs,$APP.uo,$APP.Bi,is],[Vr(h),c,m,$APP.D(f),$APP.D(q),$APP.A.j(B,$APP.Tp)?z:null,v,x,e,$r(x,e,c),B,$APP.D(a),d])},ks=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Bi);return $APP.p(a)},us=function(a){var b=$APP.k(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("div"),
6
- m=document.createElement("div"),q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),z=document.createElement("div"),B=document.createElement("div"),E=document.createElement("slot"),H=document.createElement("div"),K=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:var(--x-color-border,rgba(0,0,0,0.06));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-timeline-item-connector-color:var(--x-color-border,rgba(0,0,0,0.12));--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-timeline-item-label-font-size:var(--x-font-size-sm,0.8125rem);--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(0,0,0,0.025));--x-timeline-item-motion:var(--x-transition-duration,150ms);--x-timeline-item-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-timeline-item-connector-color:var(--x-color-border,rgba(255,255,255,0.15));--x-timeline-item-label-color:var(--x-color-text-muted,rgba(255,255,255,0.5));--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(255,255,255,0.03));}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(0,102,204,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-primary,rgba(0,102,204,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(16,140,72,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-success,rgba(16,140,72,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(190,20,40,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-danger,rgba(190,20,40,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(204,120,0,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-warning,rgba(204,120,0,0.4));}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(80,160,255,1));--x-timeline-item-connector-color:var(--x-color-primary,rgba(80,160,255,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(60,210,120,1));--x-timeline-item-connector-color:var(--x-color-success,rgba(60,210,120,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(255,90,110,1));--x-timeline-item-connector-color:var(--x-color-danger,rgba(255,90,110,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(255,190,90,1));--x-timeline-item-connector-color:var(--x-color-warning,rgba(255,190,90,0.4));}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:var(--x-radius-sm,4px);}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:var(--x-color-focus-ring,rgba(80,160,255,0.7));}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
- d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");f.setAttribute("name","label");h.setAttribute("class","label-text");f.appendChild(h);e.appendChild(f);l.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);v.setAttribute("class","connector");l.appendChild(m);l.appendChild(v);x.setAttribute("class","content-col");z.setAttribute("class",
8
- "title");B.setAttribute("class","body");B.appendChild(E);H.setAttribute("class","actions");K.setAttribute("name","actions");H.appendChild(K);x.appendChild(z);x.appendChild(B);x.appendChild(H);d.appendChild(e);d.appendChild(l);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.Wf([$APP.zm,ls,$APP.bp,$APP.gr,ms,ns,$APP.Uq,os,$APP.jj,ps,$APP.fp,qs,rs,ss,$APP.En,ts],[v,h,m,r,e,l,B,E,b,K,z,x,d,H,q,f]);a.__xTimelineItemRefs=b;return $APP.k(a,"__xTimelineItemRefs")},vs=function(a){return js($APP.Wf([$APP.ao,
9
- $APP.ui,bs,$APP.Mm,cs,$APP.bn,ds,$APP.lm,$APP.xo,$APP.Kn,as,$APP.Bi],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.k(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},ys=function(a){var b=vs(a);if($APP.I($APP.k(a,"__xTimelineItemModel"),b)){b=$APP.G(b);var c=$APP.C(b,
10
- $APP.Z),d=$APP.C(b,$APP.Gm),e=$APP.C(b,$APP.Do),f=$APP.C(b,is),h=$APP.C(b,$APP.Bi),l=$APP.C(b,gs),m=$APP.C(b,hs),q=us(a),r=$APP.G(q);q=$APP.C(r,ls);var v=$APP.C(r,$APP.bp),x=$APP.C(r,$APP.fp);r=$APP.C(r,$APP.gr);$APP.S(a,"data-status",Sr(e));a.__xTimelineItemSelfPos=!0;$APP.S(a,"data-position",$APP.yg(f));a.__xTimelineItemSelfPos=null;$APP.A.j($APP.zm.i(b),ws)?$APP.S(a,"data-connector","dashed"):$APP.A.j($APP.zm.i(b),xs)?$APP.S(a,"data-connector","none"):$APP.T(a,"data-connector");$APP.S(a,"role",
11
- "listitem");$APP.n(h)?($APP.S(a,"aria-disabled","true"),a.tabIndex=-1):($APP.T(a,"aria-disabled"),a.tabIndex=0);e=$APP.I(d,"")?d:$APP.I(c,"")?c:null;$APP.n(e)?$APP.S(a,"aria-label",e):$APP.T(a,"aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=l!=null?l:"";$APP.I(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},zs=function(a){$APP.n($APP.k(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=!0,
12
- $APP.S(a,"data-entering",""),a.addEventListener("animationend",function d(c){return $APP.A.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.T(a,"data-entering")):null}))},As=function(a){var b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:vs(a);var c=$APP.G(b);b=$APP.C(c,$APP.Do);c=$APP.C(c,$APP.Z);b=new $APP.O(null,2,[$APP.Do,Sr(b),$APP.Z,c],null);$APP.Ph(a,"x-timeline-item-click",$APP.$l(b))},Bs=function(a){function b(d){var e=d.key;if($APP.A.j(e,"Enter")||$APP.A.j(e," "))e=$APP.k(a,
13
- "__xTimelineItemModel"),e=$APP.n(e)?e:vs(a),ks(e)&&(d.preventDefault(),As(a));return null}function c(){var d=$APP.k(a,"__xTimelineItemModel");d=$APP.n(d)?d:vs(a);ks(d)&&As(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Cs=function(a){var b=$APP.k(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",
14
- b)}a.__xTimelineItemHandlers=null},Ds=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?this.setAttribute("title",
15
- ""+$APP.V.i(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});$APP.Th(a,"status","status","pending");$APP.Uh(a,"icon","icon");$APP.Th(a,"connector","connector","solid");$APP.Th(a,"position","position","start");return $APP.Sh(a,"disabled","disabled")},Es=function(a){us(a);Cs(a);Bs(a);var b=a.getAttribute("data-position");$APP.n(b)&&(a.__xTimelineItemParentPos=b);ys(a);zs(a);b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:vs(a);var c=$APP.G(b);b=$APP.C(c,$APP.Do);var d=$APP.C(c,$APP.Z),
16
- e=$APP.C(c,is);c=$APP.C(c,$APP.Bi);b=new $APP.O(null,4,[$APP.Do,Sr(b),$APP.Z,d,$APP.nr,$APP.yg(e),$APP.ck,$APP.D(c)],null);$APP.Nh(a,"x-timeline-item-connected",$APP.$l(b));return null},Fs=function(a){var b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:vs(a);Cs(a);a.__xTimelineItemEntered=null;b=$APP.G(b);a=$APP.C(b,$APP.Do);b=$APP.C(b,$APP.Z);a=new $APP.O(null,2,[$APP.Do,Sr(a),$APP.Z,b],null);$APP.Rh("x-timeline-item-disconnected",$APP.$l(a));return null},Gs=function(a,b,c,d){if(c=$APP.I(c,d))c=
17
- $APP.A.j(b,"data-position"),c=!$APP.n(c?$APP.k(a,"__xTimelineItemSelfPos"):c);c&&($APP.A.j(b,"data-position")&&(a.__xTimelineItemParentPos=d),ys(a));return null},Is=function(){return $APP.Ah("x-timeline-item",new $APP.O(null,5,[$APP.qh,Hs,$APP.oh,Es,$APP.lh,Fs,$APP.kh,Gs,$APP.ph,Ds],null))},ns=new $APP.F(null,"track-col","track-col",629248272),ps=new $APP.F(null,"actions-slot","actions-slot",1424248629),is=new $APP.F(null,"effective-position","effective-position",840072317),ms=new $APP.F(null,"label-col",
18
- "label-col",1883390160),ls=new $APP.F(null,"label-text","label-text",-1566972381),bs=new $APP.F(null,"data-striped?","data-striped?",906911587),ss=new $APP.F(null,"actions-el","actions-el",1486248509),qs=new $APP.F(null,"content-col","content-col",767367449),ws=new $APP.F(null,"dashed","dashed",-1449249319),rs=new $APP.F(null,"item-div","item-div",1630512700),hs=new $APP.F(null,"marker-aria","marker-aria",-353426855),gs=new $APP.F(null,"marker-icon","marker-icon",424963779),Ur=new $APP.F(null,"solid",
19
- "solid",-2023773691),os=new $APP.F(null,"default-slot","default-slot",-1145647151),ds=new $APP.F(null,"data-last?","data-last?",-1110326839),cs=new $APP.F(null,"data-position-raw","data-position-raw",256144356),as=new $APP.F(null,"data-index-raw","data-index-raw",491574874),fs=new $APP.F(null,"data-index","data-index",1161508385),ts=new $APP.F(null,"label-slot","label-slot",-1755862561),xs=new $APP.F(null,"none","none",1333468478);var Hs="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
- $APP.ce(["x-timeline-item-connected",new $APP.O(null,2,[$APP.U,new $APP.O(null,4,[$APP.Do,$APP.X,$APP.Z,$APP.X,$APP.nr,$APP.X,$APP.ck,$APP.Xh],null),$APP.Aq,!1],null),"x-timeline-item-disconnected",new $APP.O(null,2,[$APP.U,new $APP.O(null,2,[$APP.Do,$APP.X,$APP.Z,$APP.X],null),$APP.Aq,!1],null),"x-timeline-item-click",new $APP.O(null,2,[$APP.U,new $APP.O(null,2,[$APP.Do,$APP.X,$APP.Z,$APP.X],null),$APP.Aq,!0],null)]);
21
- var Pr=new $APP.O(null,5,["pending",$APP.wm,"active",$APP.Qn,"complete",$APP.$q,"error",$APP.Nm,"warning",$APP.xq],null),Rr=new $APP.O(null,5,[$APP.wm,"pending",$APP.Qn,"active",$APP.$q,"complete",$APP.Nm,"error",$APP.xq,"warning"],null),es=new $APP.O(null,5,[$APP.wm,"○",$APP.Qn,"●",$APP.$q,"✓",$APP.Nm,"✕",$APP.xq,"!"],null),Tr=new $APP.O(null,3,["solid",Ur,"dashed",ws,"none",xs],null),Yr=new $APP.O(null,2,["start",$APP.Bq,"end",$APP.Um],null);$APP.ha("baredom.exports.x_timeline_item.init",Is);export const init=Is;
2
+ var av=function(a){a=$APP.C($u,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.lp},cv=function(a){a=$APP.C(bv,a);return $APP.n(a)?a:"pending"},fv=function(a){a=$APP.C(dv,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:ev},gv=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},hv=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},jv=function(a,
3
+ b){a=$APP.C(iv,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(iv,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.At);return b},kv=function(a,b,c){a=cv(a);c=c!=null?"Step "+$APP.P.i(c+1)+": ":null;return""+$APP.P.i(c)+$APP.P.i(typeof b==="string"&&$APP.I(b,"")?""+$APP.P.i(b)+" ":null)+"("+$APP.P.i(a)+")"},uv=function(a){var b=$APP.G(a),c=$APP.C(b,lv);a=$APP.C(b,$APP.Sj);var d=$APP.C(b,$APP.br),e=$APP.C(b,$APP.yj),f=$APP.C(b,mv),h=$APP.C(b,$APP.Cp),k=$APP.C(b,nv),m=$APP.C(b,
4
+ $APP.Xp),q=$APP.C(b,ov),u=$APP.C(b,$APP.Yo),x=$APP.C(b,$APP.zr);b=$APP.C(b,$APP.Lq);var y=av(m),A=gv(b),E=$APP.n($APP.n(u)?A==null:u)?$APP.ou:A!=null?$APP.Ps:$APP.rj;m=function(){var H=E instanceof $APP.F?E.da:null;switch(H){case "default":return H=$APP.C(pv,y),$APP.n(H)?H:$APP.C(pv,$APP.lp);case "custom":return A;case "hidden":return null;default:throw Error("No matching clause: "+$APP.P.i(H));}}();c=hv(c);d=jv(k,d);e=$APP.n(e)?e:"";x=$APP.n(x)?x:"";return $APP.Eg([$APP.op,qv,rv,mv,ov,$APP.Xr,$APP.vp,
5
+ $APP.Fr,$APP.Rj,sv,$APP.wr,$APP.Sj,tv],[fv(h),c,m,$APP.D(f),$APP.D(q),$APP.z.j(E,$APP.Ps)?A:null,x,y,e,kv(y,e,c),E,$APP.D(a),d])},vv=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Sj);return $APP.p(a)},Ev=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),
6
+ m=document.createElement("div"),q=document.createElement("slot"),u=document.createElement("span"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),E=document.createElement("div"),H=document.createElement("slot"),N=document.createElement("div"),S=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:var(--x-color-border,rgba(0,0,0,0.06));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-timeline-item-connector-color:var(--x-color-border,rgba(0,0,0,0.12));--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-timeline-item-label-font-size:var(--x-font-size-sm,0.8125rem);--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(0,0,0,0.025));--x-timeline-item-motion:var(--x-transition-duration,150ms);--x-timeline-item-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-timeline-item-connector-color:var(--x-color-border,rgba(255,255,255,0.15));--x-timeline-item-label-color:var(--x-color-text-muted,rgba(255,255,255,0.5));--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(255,255,255,0.03));}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(0,102,204,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-primary,rgba(0,102,204,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(16,140,72,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-success,rgba(16,140,72,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(190,20,40,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-danger,rgba(190,20,40,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(204,120,0,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-warning,rgba(204,120,0,0.4));}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(80,160,255,1));--x-timeline-item-connector-color:var(--x-color-primary,rgba(80,160,255,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(60,210,120,1));--x-timeline-item-connector-color:var(--x-color-success,rgba(60,210,120,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(255,90,110,1));--x-timeline-item-connector-color:var(--x-color-danger,rgba(255,90,110,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(255,190,90,1));--x-timeline-item-connector-color:var(--x-color-warning,rgba(255,190,90,0.4));}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:var(--x-radius-sm,4px);}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:var(--x-color-focus-ring,rgba(80,160,255,0.7));}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
+ $APP.T(d,"class","timeline-item");$APP.T(e,"class","label-col");$APP.T(f,"name","label");$APP.T(h,"class","label-text");f.appendChild(h);e.appendChild(f);$APP.T(k,"class","track-col");$APP.T(m,"class","marker");$APP.T(q,"name","icon");$APP.T(u,"class","default-icon");$APP.T(u,"aria-hidden","true");q.appendChild(u);m.appendChild(q);$APP.T(x,"class","connector");k.appendChild(m);k.appendChild(x);$APP.T(y,"class","content-col");$APP.T(A,"class","title");$APP.T(E,"class","body");E.appendChild(H);$APP.T(N,
8
+ "class","actions");$APP.T(S,"name","actions");N.appendChild(S);y.appendChild(A);y.appendChild(E);y.appendChild(N);d.appendChild(e);d.appendChild(k);d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTimelineItemRefs",$APP.Eg([$APP.op,wv,$APP.Zr,$APP.iu,xv,yv,$APP.Ut,zv,$APP.Ak,Av,$APP.cs,Bv,Cv,Dv,$APP.Eq,$APP.Ym],[x,h,m,u,e,k,E,H,b,S,A,y,d,N,q,f]));return $APP.l(a,"__xTimelineItemRefs")},Fv=function(a){return uv($APP.Eg([$APP.br,$APP.yj,mv,$APP.Cp,nv,$APP.Xp,ov,$APP.Yo,$APP.zr,$APP.Lq,
9
+ lv,$APP.Sj],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},Gv=function(a){var b=Fv(a);if($APP.I($APP.l(a,"__xTimelineItemModel"),b)){var c=Ev(a),d=$APP.G(c);c=$APP.C(d,wv);var e=$APP.C(d,$APP.Zr),f=$APP.C(d,$APP.cs);d=
10
+ $APP.C(d,$APP.iu);var h=$APP.G(b),k=$APP.C(h,$APP.Fr),m=$APP.C(h,tv);h=$APP.C(h,$APP.op);$APP.T(a,"data-status",cv(k));$APP.Q(a,"__xTimelineItemSelfPos",!0);$APP.T(a,"data-position",$APP.ph(m));$APP.Q(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.da:null){case "dashed":$APP.T(a,"data-connector","dashed");break;case "none":$APP.T(a,"data-connector","none");break;default:$APP.U(a,"data-connector")}h=$APP.G(b);k=$APP.C(h,$APP.Rj);m=$APP.C(h,$APP.vp);h=$APP.C(h,$APP.Sj);$APP.T(a,"role",
11
+ "listitem");$APP.n(h)?($APP.T(a,"aria-disabled","true"),a.tabIndex=-1):($APP.U(a,"aria-disabled"),a.tabIndex=0);k=$APP.I(m,"")?m:$APP.I(k,"")?k:null;$APP.n(k)?$APP.T(a,"aria-label",k):$APP.U(a,"aria-label");m=$APP.G(b);k=$APP.C(m,rv);m=$APP.C(m,sv);$APP.T(e,"aria-label",m);d.textContent=k!=null?k:"";d=$APP.G(b);e=$APP.C(d,$APP.Rj);d=$APP.C(d,$APP.vp);c.textContent=e;$APP.I(d,"")?($APP.U(f,"hidden"),f.textContent=d):($APP.T(f,"hidden",""),f.textContent="");a=$APP.Q(a,"__xTimelineItemModel",b)}else a=
12
+ null;return a},Hv=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||($APP.Q(a,"__xTimelineItemEntered",!0),$APP.T(a,"data-entering",""),a.addEventListener("animationend",function d(c){return $APP.z.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.U(a,"data-entering")):null}))},Iv=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:Fv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Fr);c=$APP.C(c,$APP.Rj);b=new $APP.M(null,2,[$APP.Fr,cv(b),$APP.Rj,c],null);return $APP.fj(a,"x-timeline-item-click",
13
+ $APP.bm(b))},Jv=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:Fv(a),vv(e)){d.preventDefault();d=Iv(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:Fv(a);return vv(d)?Iv(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Kv=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
+ $APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}$APP.Q(a,"__xTimelineItemHandlers",null)},Lv=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
+ return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.T(this,"title",""+$APP.P.i(b)):$APP.U(this,"title")},enumerable:!0,configurable:!0});$APP.lj(a,"status","status","pending");$APP.mj(a,"icon","icon");$APP.lj(a,"connector","connector","solid");$APP.lj(a,"position","position","start");return $APP.ij(a,"disabled","disabled")},Mv=function(a){Ev(a);Kv(a);Jv(a);var b=a.getAttribute("data-position");$APP.n(b)&&$APP.Q(a,"__xTimelineItemParentPos",b);Gv(a);Hv(a);b=$APP.l(a,
16
+ "__xTimelineItemModel");b=$APP.n(b)?b:Fv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Fr);var d=$APP.C(c,$APP.Rj),e=$APP.C(c,tv);c=$APP.C(c,$APP.Sj);b=new $APP.M(null,4,[$APP.Fr,cv(b),$APP.Rj,d,$APP.pu,$APP.ph(e),$APP.um,$APP.D(c)],null);return $APP.dj(a,"x-timeline-item-connected",$APP.bm(b))},Nv=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:Fv(a);Kv(a);$APP.Q(a,"__xTimelineItemEntered",null);b=$APP.G(b);a=$APP.C(b,$APP.Fr);b=$APP.C(b,$APP.Rj);a=new $APP.M(null,2,[$APP.Fr,cv(a),$APP.Rj,
17
+ b],null);return $APP.hj("x-timeline-item-disconnected",$APP.bm(a))},Ov=function(a,b,c,d){if($APP.I(c,d)){c=$APP.z.j(b,"data-position");if($APP.n(c?$APP.l(a,"__xTimelineItemSelfPos"):c))return null;$APP.z.j(b,"data-position")&&$APP.Q(a,"__xTimelineItemParentPos",d);return Gv(a)}return null},Qv=function(){return $APP.xi("x-timeline-item",new $APP.M(null,5,[$APP.hi,Pv,$APP.fi,Mv,$APP.ci,Nv,$APP.bi,Ov,$APP.gi,Lv],null))},yv=new $APP.F(null,"track-col","track-col",629248272),Av=new $APP.F(null,"actions-slot",
18
+ "actions-slot",1424248629),tv=new $APP.F(null,"effective-position","effective-position",840072317),xv=new $APP.F(null,"label-col","label-col",1883390160),wv=new $APP.F(null,"label-text","label-text",-1566972381),mv=new $APP.F(null,"data-striped?","data-striped?",906911587),Dv=new $APP.F(null,"actions-el","actions-el",1486248509),Bv=new $APP.F(null,"content-col","content-col",767367449),Rv=new $APP.F(null,"dashed","dashed",-1449249319),Cv=new $APP.F(null,"item-div","item-div",1630512700),sv=new $APP.F(null,
19
+ "marker-aria","marker-aria",-353426855),rv=new $APP.F(null,"marker-icon","marker-icon",424963779),ev=new $APP.F(null,"solid","solid",-2023773691),zv=new $APP.F(null,"default-slot","default-slot",-1145647151),ov=new $APP.F(null,"data-last?","data-last?",-1110326839),nv=new $APP.F(null,"data-position-raw","data-position-raw",256144356),lv=new $APP.F(null,"data-index-raw","data-index-raw",491574874),qv=new $APP.F(null,"data-index","data-index",1161508385),Sv=new $APP.F(null,"none","none",1333468478);var Pv="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
+ $APP.he(["x-timeline-item-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.Fr,$APP.X,$APP.Rj,$APP.X,$APP.pu,$APP.X,$APP.um,$APP.qj],null),$APP.yt,!1],null),"x-timeline-item-disconnected",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Fr,$APP.X,$APP.Rj,$APP.X],null),$APP.yt,!1],null),"x-timeline-item-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Fr,$APP.X,$APP.Rj,$APP.X],null),$APP.yt,!0],null)]);
21
+ var $u=new $APP.M(null,5,["pending",$APP.lp,"active",$APP.Rq,"complete",$APP.$t,"error",$APP.Dp,"warning",$APP.vt],null),bv=new $APP.M(null,5,[$APP.lp,"pending",$APP.Rq,"active",$APP.$t,"complete",$APP.Dp,"error",$APP.vt,"warning"],null),pv=new $APP.M(null,5,[$APP.lp,"○",$APP.Rq,"●",$APP.$t,"✓",$APP.Dp,"✕",$APP.vt,"!"],null),dv=new $APP.M(null,3,["solid",ev,"dashed",Rv,"none",Sv],null),iv=new $APP.M(null,2,["start",$APP.At,"end",$APP.Np],null);$APP.fa("baredom.exports.x_timeline_item.init",Qv);export const init=Qv;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var P4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.$c(wia,a)?a:"start"},xia=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.qd(b,2)===0?"start":"end";default:return"start"}},R4=function(a){var b=$APP.k(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
- d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.O(null,3,[$APP.jj,b,Q4,d,$APP.Vp,e],null);return $APP.k(a,"__xTimelineRefs")},S4=function(a){a=new $APP.O(null,3,[$APP.ui,a.getAttribute("label"),$APP.ao,a.getAttribute("position"),$APP.op,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.ui);var c=$APP.C(b,$APP.ao);b=$APP.C(b,$APP.op);return new $APP.O(null,3,[$APP.Z,$APP.n(a)?a:"",$APP.nr,P4(c),
4
- $APP.op,$APP.D(b)],null)},T4=function(a){var b=S4(a);if($APP.I($APP.k(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Z),d=R4(a);d=$APP.G(d);d=$APP.C(d,Q4);$APP.S(a,"role","list");$APP.I(c,"")?$APP.S(a,"aria-label",c):$APP.T(a,"aria-label");$APP.I(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},U4=function(a){var b=$APP.k(a,"__xTimelineModel");b=$APP.n(b)?b:S4(a);var c=$APP.G(b);b=$APP.C(c,$APP.nr);c=$APP.C(c,$APP.op);
5
- a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.A.j(e,d-1);f.setAttribute("data-index",""+$APP.V.i(e));h?f.setAttribute("data-last",""):f.removeAttribute("data-last");f.setAttribute("data-position",xia(b,e));$APP.n(c)?f.setAttribute("data-striped",""):f.removeAttribute("data-striped");e+=1}else break},yia=function(a){function b(){$APP.n(a.isConnected)&&U4(a);return null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;
6
- typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=$APP.k(e,"status");e=$APP.k(e,"label");$APP.Nh(a,"x-timeline-select",$APP.$l(new $APP.O(null,3,[$APP.sm,$APP.n(f)?f:0,$APP.Do,$APP.n(h)?h:"",$APP.Z,$APP.n(e)?e:""],null)));return null}function d(){U4(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.ja(a,"__xTimelineHandlers",{"item-connected":d,
7
- "item-click":c,"item-disconnected-doc":b})},V4=function(a){var b=$APP.k(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.k(b,"item-connected"),d=$APP.k(b,"item-click");b=$APP.k(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},zia=function(a){Object.defineProperty(a,"label",{get:function(){var b=
8
- this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return P4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.V.i(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});return $APP.Sh(a,"striped","striped")},Aia=function(a){R4(a);
9
- T4(a);V4(a);yia(a);U4(a);return null},Bia=function(a){V4(a);return null},Cia=function(a,b,c,d){$APP.I(c,d)&&(T4(a),U4(a));return null},W4=function(){return $APP.Ah("x-timeline",new $APP.O(null,5,[$APP.qh,Dia,$APP.oh,Aia,$APP.lh,Bia,$APP.kh,Cia,$APP.ph,zia],null))},Q4=new $APP.F(null,"label-div","label-div",1505730697);var Dia=["label","position","striped"];$APP.ce(["x-timeline-select",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.sm,$APP.Y,$APP.Do,$APP.X,$APP.Z,$APP.X],null),$APP.Aq,!1],null)]);var wia=new $APP.pg(null,new $APP.O(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",W4);export const init=W4;
2
+ var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(Fpa,a)?a:"start"},Gpa=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.sd(b,2)===0?"start":"end";default:return"start"}},z4=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
+ $APP.T(d,"part","label");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTimelineRefs",new $APP.M(null,3,[$APP.Ak,b,y4,d,$APP.Rs,e],null));return $APP.l(a,"__xTimelineRefs")},A4=function(a){a=new $APP.M(null,3,[$APP.yj,a.getAttribute("label"),$APP.br,a.getAttribute("position"),$APP.ms,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.yj);var c=$APP.C(b,$APP.br);b=$APP.C(b,$APP.ms);return new $APP.M(null,3,[$APP.Rj,$APP.n(a)?a:"",$APP.pu,x4(c),$APP.ms,
4
+ $APP.D(b)],null)},B4=function(a){var b=A4(a);if($APP.I($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Rj),d=z4(a);d=$APP.G(d);d=$APP.C(d,y4);$APP.T(a,"role","list");$APP.I(c,"")?$APP.T(a,"aria-label",c):$APP.U(a,"aria-label");$APP.I(c,"")?(d.textContent=c,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));$APP.Q(a,"__xTimelineModel",b)}},C4=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:A4(a);var c=$APP.G(b);b=$APP.C(c,$APP.pu);c=$APP.C(c,$APP.ms);a=a.querySelectorAll("x-timeline-item");
5
+ for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.T(f,"data-index",""+$APP.P.i(e));h?$APP.T(f,"data-last",""):$APP.U(f,"data-last");$APP.T(f,"data-position",Gpa(b,e));$APP.n(c)?$APP.T(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},Hpa=function(a){function b(){return $APP.n(a.isConnected)?C4(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=
6
+ $APP.l(e,"status");e=$APP.l(e,"label");return $APP.dj(a,"x-timeline-select",$APP.bm(new $APP.M(null,3,[$APP.hp,$APP.n(f)?f:0,$APP.Fr,$APP.n(h)?h:"",$APP.Rj,$APP.n(e)?e:""],null)))}function d(){return C4(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.Q(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},D4=function(a){var b=$APP.l(a,"__xTimelineHandlers");
7
+ if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.Q(a,"__xTimelineHandlers",null)},Ipa=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
8
+ $APP.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.T(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.ij(a,"striped","striped")},Jpa=function(a){z4(a);B4(a);D4(a);Hpa(a);return C4(a)},Kpa=function(a){return D4(a)},Lpa=function(a,b,c,d){return $APP.I(c,d)?(B4(a),C4(a)):
9
+ null},E4=function(){return $APP.xi("x-timeline",new $APP.M(null,5,[$APP.hi,Mpa,$APP.fi,Jpa,$APP.ci,Kpa,$APP.bi,Lpa,$APP.gi,Ipa],null))},y4=new $APP.F(null,"label-div","label-div",1505730697);var Mpa=["label","position","striped"];$APP.he(["x-timeline-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.hp,$APP.Z,$APP.Fr,$APP.X,$APP.Rj,$APP.X],null),$APP.yt,!1],null)]);var Fpa=new $APP.ah(null,new $APP.M(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.fa("baredom.exports.x_timeline.init",E4);export const init=E4;
package/dist/x-toast.d.ts CHANGED
@@ -15,6 +15,7 @@ export interface XToast extends HTMLElement {
15
15
  disabled: boolean;
16
16
  timeoutMs: number;
17
17
  showProgress: boolean;
18
+ dismiss(reason: string): void;
18
19
 
19
20
  addEventListener<K extends keyof XToastEventMap>(
20
21
  type: K,
package/dist/x-toast.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ew=function(a){a=$APP.C(dw,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Fp},gw=function(a){a=$APP.C(fw,a);return $APP.n(a)?a:"info"},hw=function(a){return a==null?!0:$APP.I((""+$APP.V.i(a)).trim().toLowerCase(),"false")},iw=function(a){return a==null?!1:$APP.I((""+$APP.V.i(a)).trim().toLowerCase(),"false")},jw=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},kw=function(a){return typeof a==="string"?(a=
3
- a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},nw=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.Go),d=$APP.C(b,$APP.Qp);a=$APP.C(b,$APP.Cn);var e=$APP.C(b,$APP.vi),f=$APP.C(b,$APP.Fm),h=$APP.C(b,$APP.lm),l=$APP.C(b,lw),m=$APP.C(b,$APP.Hm);b=$APP.C(b,$APP.Kn);m=ew(m);b=kw(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.mr:b!=null?$APP.Tp:$APP.Yh;return $APP.Wf([mw,$APP.Xm,$APP.Q,$APP.$o,$APP.uo,$APP.Bi,$APP.Kq,$APP.Go,$APP.Qp],[iw(l),hw(a),m,$APP.A.j(h,$APP.Tp)?b:null,h,$APP.D(e),jw(f),function(){var q=
4
- typeof c==="string"?c.trim():null;return $APP.n(q)?q:""}(),function(){var q=typeof d==="string"?d.trim():null;return $APP.n(q)?q:""}()])},ow=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Xm);b=$APP.C(b,$APP.Bi);return $APP.n(a)?$APP.p(b):a},pw=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.Q);var d=$APP.C(c,$APP.Qp);c=$APP.C(c,$APP.Go);return new $APP.O(null,4,[$APP.Q,gw(a),$APP.Ym,b,$APP.Qp,d,$APP.Go,c],null)},qw=function(a){var b=$APP.G(a);a=$APP.C(b,mw);b=$APP.C(b,$APP.Kq);return $APP.D($APP.n(a)?
5
- b!=null&&b>0:a)},vw=function(a){var b=$APP.k(a,"__xToastRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("span"),h=document.createElement("slot"),l=document.createElement("span"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),v=document.createElement("button"),x=document.createElement("span"),z=document.createElement("div"),
6
- B=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-toast-radius:var(--x-radius-lg,12px);--x-toast-padding-y:14px;--x-toast-padding-x:16px;--x-toast-gap:12px;--x-toast-font-size:var(--x-font-size-sm,0.875rem);--x-toast-heading-font-size:0.9375rem;--x-toast-heading-weight:600;--x-toast-min-width:min(280px,calc(100vw - 2rem));--x-toast-max-width:min(480px,calc(100vw - 2rem));--x-toast-border-width:1px;--x-toast-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12),0 1px 4px rgba(0,0,0,0.08));--x-toast-motion-fast:var(--x-transition-duration,120ms);--x-toast-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-toast-enter-duration:200ms;--x-toast-exit-duration:180ms;--x-toast-press-scale:0.97;--x-toast-disabled-opacity:0.55;--x-toast-focus-ring:var(--x-color-focus-ring,rgba(0,0,0,0.6));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(0,0,0,0.50));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(0,0,0,0.06));--x-toast-progress-height:3px;--x-toast-progress-bg:var(--x-color-border,rgba(0,0,0,0.08));--x-toast-info-bg:var(--x-color-bg,#ffffff);--x-toast-info-border:rgba(0,102,204,0.30);--x-toast-info-color:rgba(15,23,42,0.92);--x-toast-info-icon-color:rgba(0,102,204,0.85);--x-toast-info-progress-fill:rgba(0,102,204,0.70);--x-toast-success-bg:var(--x-color-bg,#ffffff);--x-toast-success-border:rgba(16,140,72,0.30);--x-toast-success-color:rgba(15,23,42,0.92);--x-toast-success-icon-color:rgba(16,140,72,0.85);--x-toast-success-progress-fill:rgba(16,140,72,0.70);--x-toast-warning-bg:var(--x-color-bg,#ffffff);--x-toast-warning-border:rgba(204,120,0,0.40);--x-toast-warning-color:rgba(15,23,42,0.92);--x-toast-warning-icon-color:rgba(180,100,0,0.85);--x-toast-warning-progress-fill:rgba(204,120,0,0.70);--x-toast-error-bg:var(--x-color-bg,#ffffff);--x-toast-error-border:rgba(190,20,40,0.40);--x-toast-error-color:rgba(15,23,42,0.92);--x-toast-error-icon-color:rgba(190,20,40,0.85);--x-toast-error-progress-fill:rgba(190,20,40,0.70);--x-toast-bg:transparent;--x-toast-border-color:transparent;--x-toast-color:inherit;--x-toast-icon-color:inherit;--x-toast-progress-fill:currentColor;}@media (prefers-color-scheme:dark){:host{--x-toast-shadow:var(--x-shadow-md,0 4px 20px rgba(0,0,0,0.40),0 1px 6px rgba(0,0,0,0.30));--x-toast-focus-ring:var(--x-color-focus-ring,rgba(255,255,255,0.75));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(255,255,255,0.65));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(255,255,255,0.12));--x-toast-progress-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-toast-info-bg:var(--x-color-bg,#1e293b);--x-toast-info-border:rgba(80,160,255,0.35);--x-toast-info-color:rgba(248,250,252,0.92);--x-toast-info-icon-color:rgba(96,165,250,0.90);--x-toast-info-progress-fill:rgba(96,165,250,0.75);--x-toast-success-bg:var(--x-color-bg,#1e293b);--x-toast-success-border:rgba(60,210,120,0.35);--x-toast-success-color:rgba(248,250,252,0.92);--x-toast-success-icon-color:rgba(52,211,153,0.90);--x-toast-success-progress-fill:rgba(52,211,153,0.75);--x-toast-warning-bg:var(--x-color-bg,#1e293b);--x-toast-warning-border:rgba(255,190,90,0.40);--x-toast-warning-color:rgba(248,250,252,0.92);--x-toast-warning-icon-color:rgba(251,191,36,0.90);--x-toast-warning-progress-fill:rgba(251,191,36,0.75);--x-toast-error-bg:var(--x-color-bg,#1e293b);--x-toast-error-border:rgba(255,90,110,0.40);--x-toast-error-color:rgba(248,250,252,0.92);--x-toast-error-icon-color:rgba(248,113,113,0.90);--x-toast-error-progress-fill:rgba(248,113,113,0.75);}}:host([data-type\x3d'info']){--x-toast-bg:var(--x-toast-info-bg);--x-toast-border-color:var(--x-toast-info-border);--x-toast-color:var(--x-toast-info-color);--x-toast-icon-color:var(--x-toast-info-icon-color);--x-toast-progress-fill:var(--x-toast-info-progress-fill);}:host([data-type\x3d'success']){--x-toast-bg:var(--x-toast-success-bg);--x-toast-border-color:var(--x-toast-success-border);--x-toast-color:var(--x-toast-success-color);--x-toast-icon-color:var(--x-toast-success-icon-color);--x-toast-progress-fill:var(--x-toast-success-progress-fill);}:host([data-type\x3d'warning']){--x-toast-bg:var(--x-toast-warning-bg);--x-toast-border-color:var(--x-toast-warning-border);--x-toast-color:var(--x-toast-warning-color);--x-toast-icon-color:var(--x-toast-warning-icon-color);--x-toast-progress-fill:var(--x-toast-warning-progress-fill);}:host([data-type\x3d'error']){--x-toast-bg:var(--x-toast-error-bg);--x-toast-border-color:var(--x-toast-error-border);--x-toast-color:var(--x-toast-error-color);--x-toast-icon-color:var(--x-toast-error-icon-color);--x-toast-progress-fill:var(--x-toast-error-progress-fill);}[part\x3dcontainer]{display:flex;flex-direction:column;background:var(--x-toast-bg);border:var(--x-toast-border-width) solid var(--x-toast-border-color);border-radius:var(--x-toast-radius);box-shadow:var(--x-toast-shadow);color:var(--x-toast-color);min-width:var(--x-toast-min-width);max-width:var(--x-toast-max-width);overflow:hidden;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),border-color var(--x-toast-motion-fast) var(--x-toast-motion-ease),opacity var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}[part\x3dinner]{display:flex;align-items:flex-start;gap:var(--x-toast-gap);padding:var(--x-toast-padding-y) var(--x-toast-padding-x);}[part\x3dicon]{flex:0 0 auto;color:var(--x-toast-icon-color);line-height:1;margin-top:0.15em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dbody]{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;}[part\x3dheading]{font-size:var(--x-toast-heading-font-size);font-weight:var(--x-toast-heading-weight);line-height:1.2;overflow-wrap:anywhere;}[part\x3dmessage]{font-size:var(--x-toast-font-size);line-height:1.35;overflow-wrap:anywhere;opacity:0.82;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-toast-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-toast-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-toast-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-toast-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-toast-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}[part\x3dprogress]{height:var(--x-toast-progress-height);background:var(--x-toast-progress-bg);overflow:hidden;display:none;}[part\x3dprogress-bar]{height:100%;width:100%;background:var(--x-toast-progress-fill);animation:x-toast-progress var(--x-toast-timeout,0ms) linear forwards;animation-play-state:paused;}:host([data-progress-active]) [part\x3dprogress-bar]{animation-play-state:running;}@keyframes x-toast-progress{from{width:100%;}to{width:0%;}}:host([data-entering]) [part\x3dcontainer]{animation:x-toast-enter var(--x-toast-enter-duration) var(--x-toast-motion-ease) both;}@keyframes x-toast-enter{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-toast-exit var(--x-toast-exit-duration) var(--x-toast-motion-ease) forwards;}@keyframes x-toast-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}:host([data-progress-active]) [part\x3dprogress-bar]{animation:none !important;}}";
7
- d.setAttribute("part","container");e.setAttribute("part","inner");f.setAttribute("part","icon");f.setAttribute("aria-hidden","true");h.setAttribute("name","icon");l.setAttribute("part","default-icon");h.appendChild(l);f.appendChild(h);m.setAttribute("part","body");q.setAttribute("part","heading");r.setAttribute("part","message");m.appendChild(q);m.appendChild(r);v.setAttribute("part","dismiss");v.setAttribute("type","button");v.setAttribute("aria-label","Dismiss toast");x.setAttribute("aria-hidden",
8
- "true");x.textContent="×";v.appendChild(x);e.appendChild(f);e.appendChild(m);e.appendChild(v);z.setAttribute("part","progress");B.setAttribute("part","progress-bar");z.appendChild(B);d.appendChild(e);d.appendChild(z);b.appendChild(c);b.appendChild(d);b=$APP.Wf([rw,$APP.gr,sw,$APP.cp,$APP.Uq,tw,$APP.jj,$APP.kj,$APP.tn,$APP.hm,$APP.En,uw],[B,l,r,v,m,e,b,d,z,f,h,q]);a.__xToastRefs=b;return $APP.k(a,"__xToastRefs")},ww=function(a){return nw($APP.Wf([$APP.Cn,$APP.vi,$APP.Fm,$APP.lm,lw,$APP.Kn,$APP.Hm,
9
- $APP.Go,$APP.Qp],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},yw=function(a){var b=ww(a);if($APP.I($APP.k(a,"__xToastModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Q),d=$APP.C(b,$APP.Qp),e=$APP.C(b,$APP.Go),f=$APP.C(b,$APP.uo),h=$APP.C(b,$APP.$o),l=$APP.C(b,$APP.Xm),m=$APP.C(b,$APP.Bi),q=$APP.C(b,$APP.Kq),
10
- r=vw(a),v=$APP.G(r),x=$APP.C(v,$APP.En);r=$APP.C(v,uw);var z=$APP.C(v,rw),B=$APP.C(v,$APP.gr),E=$APP.C(v,sw),H=$APP.C(v,$APP.cp),K=$APP.C(v,$APP.kj),J=$APP.C(v,$APP.tn);v=$APP.C(v,$APP.hm);x=$APP.n(x)?x.assignedNodes().length>0:null;$APP.A.j(f,$APP.Tp)||(h=$APP.C(xw,c),h=$APP.n(h)?h:$APP.C(xw,$APP.Fp));f=$APP.p(x)&&$APP.A.j(f,$APP.mr);x=qw(b);$APP.S(a,"data-type",gw(c));var P=K.setAttribute;c=$APP.A.j(c,$APP.xq)||$APP.A.j(c,$APP.Nm)?"alert":"status";P.call(K,"role",c);r.textContent=d;r.style.display=
11
- $APP.A.j(d,"")?"none":"";E.textContent=e;f?(B.textContent="",v.style.display="none"):(B.textContent=h,v.style.display="inline");$APP.n(l)?(H.disabled=$APP.D(m),H.style.display="inline-flex"):(H.disabled=!0,H.style.display="none");x?(J.style.display="block",z.style.setProperty("--x-toast-timeout",""+$APP.V.i(q)+"ms")):J.style.display="none";d=$APP.n(l)?$APP.p(m):l;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?$APP.S(a,"aria-disabled","true"):$APP.T(a,"aria-disabled");$APP.n(d)?$APP.S(a,"aria-keyshortcuts","Escape"):
12
- $APP.T(a,"aria-keyshortcuts");a.__xToastModel=b}},zw=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Aw=function(a){a=typeof a==="string"?a.trim():"";return $APP.A.j(a,"")||$APP.A.j(a,"0")||$APP.A.j(a,"0ms")||$APP.A.j(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},Bw=function(a){var b=
13
- window.getComputedStyle(a);a=Aw(b.getPropertyValue("--x-toast-exit-duration"));b=Aw(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},Cw=function(a){var b=$APP.k(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},Ew=function(a){Cw(a);var b=function(){var c=$APP.k(a,"__xToastModel");return $APP.n(c)?c:ww(a)}();$APP.n(function(){var c=ow(b);return $APP.n(c)?typeof $APP.Kq.i(b)==="number"&&$APP.p($APP.k(a,"__xToastExiting")):c}())&&$APP.ja(a,"__xToastTimeout",
14
- setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ww(a)}();if($APP.n(ow(c)))return c=$APP.$l(pw(c,"timeout")),$APP.Ph(a,"x-toast-dismiss",c)?Dw.i?Dw.i(a):Dw.call(null,a):null}return null},$APP.Kq.i(b)));return null},Fw=function(a){var b=$APP.k(a,"__xToastModel");$APP.n($APP.n(b)?qw(b):b)&&$APP.S(a,"data-progress-active","");return Ew(a)},
15
- Gw=function(a){if(!$APP.n($APP.k(a,"__xToastEntered")))if(a.__xToastEntered=!0,$APP.S(a,"data-entering",""),zw())$APP.T(a,"data-entering"),Fw(a);else{var b=vw(a);b=$APP.G(b);var c=$APP.C(b,$APP.kj);c.addEventListener("animationend",function f(e){return $APP.A.j(e.target,c)?(c.removeEventListener("animationend",f),$APP.T(a,"data-entering"),Fw(a)):null})}},Dw=function(a){if(!$APP.n($APP.k(a,"__xToastExiting"))){a.__xToastExiting=!0;Cw(a);$APP.T(a,"data-entering");$APP.T(a,"data-progress-active");var b=
16
- Bw(a);if(b===0||zw())a.remove();else{var c=vw(a);c=$APP.G(c);var d=$APP.C(c,$APP.kj),e=function l(h){return $APP.A.j(h.target,d)?(d.removeEventListener("animationend",l),h=$APP.k(a,"__xToastExitTimer"),$APP.n(h)&&(clearTimeout(h),a.__xToastExitTimer=null),$APP.n(a.isConnected)?a.remove():null):null};$APP.S(a,"data-exiting","");d.addEventListener("animationend",e);$APP.ja(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.k(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",
17
- e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},Hw=function(a,b){var c=$APP.k(a,"__xToastModel");c=$APP.n(c)?c:ww(a);b=$APP.$l(pw(c,b));$APP.Ph(a,"x-toast-dismiss",b)&&Dw(a)},Iw=function(a,b){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ww(a)}();$APP.n(function(){var d=ow(c);return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),Hw(a,"button"));return null},Jw=function(a,b){if($APP.A.j(b.key,"Escape")){var c=function(){var d=$APP.k(a,
18
- "__xToastModel");return $APP.n(d)?d:ww(a)}();$APP.n(function(){var d=ow(c);return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),Hw(a,"keyboard"))}return null},Kw=function(a){function b(e){return Jw(a,e)}function c(e){return Iw(a,e)}var d=vw(a);d=$APP.G(d);$APP.C(d,$APP.cp).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xToastHandlers",{click:c,keydown:b})},Lw=function(a){Cw(a);var b=$APP.k(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xToastExitTimer=
19
- null);b=$APP.k(a,"__xToastHandlers");var c=$APP.k(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.cp.i(c);var d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xToastHandlers=null},Mw=function(a){$APP.Th(a,"type","type","info");$APP.Th(a,"heading","heading","");$APP.Th(a,"message","message","");$APP.Uh(a,"icon","icon");Object.defineProperty(a,"dismissible",{get:function(){return hw(this.getAttribute("dismissible"))},
20
- set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});$APP.Sh(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return jw(this.getAttribute("timeout-ms"))},set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.V.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return iw(this.getAttribute("show-progress"))},
21
- set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Nw=function(a){return a.dismiss=function(b){var c=$APP.p($APP.k(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&Hw(this,typeof b==="string"?b:"api");return null}},Ow=function(a){vw(a);Lw(a);Kw(a);yw(a);Gw(a);return null},Pw=function(a){Lw(a);return null},Qw=function(a,b,c,d){$APP.I(c,d)&&(yw(a),$APP.n(a.isConnected)&&Ew(a));return null},Sw=function(){return $APP.Ah("x-toast",
22
- new $APP.O(null,5,[$APP.qh,Rw,$APP.oh,Ow,$APP.lh,Pw,$APP.kh,Qw,$APP.ph,function(a){Mw(a);return Nw(a)}],null))},Tw=function(){return Sw()},uw=new $APP.F(null,"heading-el","heading-el",-1277272161),mw=new $APP.F(null,"show-progress?","show-progress?",-1681518912),tw=new $APP.F(null,"inner","inner",-1383171215),sw=new $APP.F(null,"message-el","message-el",-683533234),rw=new $APP.F(null,"progress-bar","progress-bar",-123877022),lw=new $APP.F(null,"show-progress-attr","show-progress-attr",1680262066);var Rw="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.ce(["x-toast-dismiss",new $APP.O(null,2,[$APP.U,new $APP.O(null,4,[$APP.Q,$APP.X,$APP.Ym,$APP.X,$APP.Qp,$APP.X,$APP.Go,$APP.X],null),$APP.Aq,!0],null)]);
23
- var dw=new $APP.O(null,4,["info",$APP.Fp,"success",$APP.Oo,"warning",$APP.xq,"error",$APP.Nm],null),fw=new $APP.O(null,4,[$APP.Fp,"info",$APP.Oo,"success",$APP.xq,"warning",$APP.Nm,"error"],null),xw=new $APP.O(null,4,[$APP.Fp,"ℹ",$APP.Oo,"✓",$APP.xq,"!",$APP.Nm,"⨯"],null);$APP.ha("baredom.exports.x_toast.init",Tw);export const init=Tw;
2
+ var uz=function(a){a=$APP.C(tz,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Ds},wz=function(a){a=$APP.C(vz,a);return $APP.n(a)?a:"info"},xz=function(a){return a==null?!1:$APP.I((""+$APP.P.i(a)).trim().toLowerCase(),"false")},yz=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},zz=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Cz=function(a){var b=
3
+ $APP.G(a),c=$APP.C(b,$APP.Jr),d=$APP.C(b,$APP.Ns);a=$APP.C(b,$APP.Bq);var e=$APP.C(b,$APP.zj),f=$APP.C(b,$APP.up),h=$APP.C(b,$APP.Yo),k=$APP.C(b,Az),m=$APP.C(b,$APP.xp);b=$APP.C(b,$APP.Lq);m=uz(m);b=zz(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.ou:b!=null?$APP.Ps:$APP.rj;return $APP.Eg([Bz,$APP.Qp,$APP.O,$APP.Xr,$APP.wr,$APP.Sj,$APP.Jt,$APP.Jr,$APP.Ns],[xz(k),$APP.Ii(a),m,$APP.z.j(h,$APP.Ps)?b:null,h,$APP.D(e),yz(f),function(){var q=typeof c==="string"?c.trim():null;return $APP.n(q)?q:""}(),function(){var q=
4
+ typeof d==="string"?d.trim():null;return $APP.n(q)?q:""}()])},Dz=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Qp);b=$APP.C(b,$APP.Sj);return $APP.n(a)?$APP.p(b):a},Ez=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.O);var d=$APP.C(c,$APP.Ns);c=$APP.C(c,$APP.Jr);return new $APP.M(null,4,[$APP.O,wz(a),$APP.Rp,b,$APP.Ns,d,$APP.Jr,c],null)},Fz=function(a){var b=$APP.G(a);a=$APP.C(b,Bz);b=$APP.C(b,$APP.Jt);return $APP.D($APP.n(a)?b!=null&&b>0:a)},Kz=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;
5
+ b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),q=document.createElement("span"),u=document.createElement("span"),x=document.createElement("button"),y=document.createElement("span"),A=document.createElement("div"),E=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-toast-radius:var(--x-radius-lg,12px);--x-toast-padding-y:14px;--x-toast-padding-x:16px;--x-toast-gap:12px;--x-toast-font-size:var(--x-font-size-sm,0.875rem);--x-toast-heading-font-size:0.9375rem;--x-toast-heading-weight:600;--x-toast-min-width:min(280px,calc(100vw - 2rem));--x-toast-max-width:min(480px,calc(100vw - 2rem));--x-toast-border-width:1px;--x-toast-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12),0 1px 4px rgba(0,0,0,0.08));--x-toast-motion-fast:var(--x-transition-duration,120ms);--x-toast-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-toast-enter-duration:200ms;--x-toast-exit-duration:180ms;--x-toast-press-scale:0.97;--x-toast-disabled-opacity:0.55;--x-toast-focus-ring:var(--x-color-focus-ring,rgba(0,0,0,0.6));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(0,0,0,0.50));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(0,0,0,0.06));--x-toast-progress-height:3px;--x-toast-progress-bg:var(--x-color-border,rgba(0,0,0,0.08));--x-toast-info-bg:var(--x-color-bg,#ffffff);--x-toast-info-border:rgba(0,102,204,0.30);--x-toast-info-color:rgba(15,23,42,0.92);--x-toast-info-icon-color:rgba(0,102,204,0.85);--x-toast-info-progress-fill:rgba(0,102,204,0.70);--x-toast-success-bg:var(--x-color-bg,#ffffff);--x-toast-success-border:rgba(16,140,72,0.30);--x-toast-success-color:rgba(15,23,42,0.92);--x-toast-success-icon-color:rgba(16,140,72,0.85);--x-toast-success-progress-fill:rgba(16,140,72,0.70);--x-toast-warning-bg:var(--x-color-bg,#ffffff);--x-toast-warning-border:rgba(204,120,0,0.40);--x-toast-warning-color:rgba(15,23,42,0.92);--x-toast-warning-icon-color:rgba(180,100,0,0.85);--x-toast-warning-progress-fill:rgba(204,120,0,0.70);--x-toast-error-bg:var(--x-color-bg,#ffffff);--x-toast-error-border:rgba(190,20,40,0.40);--x-toast-error-color:rgba(15,23,42,0.92);--x-toast-error-icon-color:rgba(190,20,40,0.85);--x-toast-error-progress-fill:rgba(190,20,40,0.70);--x-toast-bg:transparent;--x-toast-border-color:transparent;--x-toast-color:inherit;--x-toast-icon-color:inherit;--x-toast-progress-fill:currentColor;}@media (prefers-color-scheme:dark){:host{--x-toast-shadow:var(--x-shadow-md,0 4px 20px rgba(0,0,0,0.40),0 1px 6px rgba(0,0,0,0.30));--x-toast-focus-ring:var(--x-color-focus-ring,rgba(255,255,255,0.75));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(255,255,255,0.65));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(255,255,255,0.12));--x-toast-progress-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-toast-info-bg:var(--x-color-bg,#1e293b);--x-toast-info-border:rgba(80,160,255,0.35);--x-toast-info-color:rgba(248,250,252,0.92);--x-toast-info-icon-color:rgba(96,165,250,0.90);--x-toast-info-progress-fill:rgba(96,165,250,0.75);--x-toast-success-bg:var(--x-color-bg,#1e293b);--x-toast-success-border:rgba(60,210,120,0.35);--x-toast-success-color:rgba(248,250,252,0.92);--x-toast-success-icon-color:rgba(52,211,153,0.90);--x-toast-success-progress-fill:rgba(52,211,153,0.75);--x-toast-warning-bg:var(--x-color-bg,#1e293b);--x-toast-warning-border:rgba(255,190,90,0.40);--x-toast-warning-color:rgba(248,250,252,0.92);--x-toast-warning-icon-color:rgba(251,191,36,0.90);--x-toast-warning-progress-fill:rgba(251,191,36,0.75);--x-toast-error-bg:var(--x-color-bg,#1e293b);--x-toast-error-border:rgba(255,90,110,0.40);--x-toast-error-color:rgba(248,250,252,0.92);--x-toast-error-icon-color:rgba(248,113,113,0.90);--x-toast-error-progress-fill:rgba(248,113,113,0.75);}}:host([data-type\x3d'info']){--x-toast-bg:var(--x-toast-info-bg);--x-toast-border-color:var(--x-toast-info-border);--x-toast-color:var(--x-toast-info-color);--x-toast-icon-color:var(--x-toast-info-icon-color);--x-toast-progress-fill:var(--x-toast-info-progress-fill);}:host([data-type\x3d'success']){--x-toast-bg:var(--x-toast-success-bg);--x-toast-border-color:var(--x-toast-success-border);--x-toast-color:var(--x-toast-success-color);--x-toast-icon-color:var(--x-toast-success-icon-color);--x-toast-progress-fill:var(--x-toast-success-progress-fill);}:host([data-type\x3d'warning']){--x-toast-bg:var(--x-toast-warning-bg);--x-toast-border-color:var(--x-toast-warning-border);--x-toast-color:var(--x-toast-warning-color);--x-toast-icon-color:var(--x-toast-warning-icon-color);--x-toast-progress-fill:var(--x-toast-warning-progress-fill);}:host([data-type\x3d'error']){--x-toast-bg:var(--x-toast-error-bg);--x-toast-border-color:var(--x-toast-error-border);--x-toast-color:var(--x-toast-error-color);--x-toast-icon-color:var(--x-toast-error-icon-color);--x-toast-progress-fill:var(--x-toast-error-progress-fill);}[part\x3dcontainer]{display:flex;flex-direction:column;background:var(--x-toast-bg);border:var(--x-toast-border-width) solid var(--x-toast-border-color);border-radius:var(--x-toast-radius);box-shadow:var(--x-toast-shadow);color:var(--x-toast-color);min-width:var(--x-toast-min-width);max-width:var(--x-toast-max-width);overflow:hidden;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),border-color var(--x-toast-motion-fast) var(--x-toast-motion-ease),opacity var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}[part\x3dinner]{display:flex;align-items:flex-start;gap:var(--x-toast-gap);padding:var(--x-toast-padding-y) var(--x-toast-padding-x);}[part\x3dicon]{flex:0 0 auto;color:var(--x-toast-icon-color);line-height:1;margin-top:0.15em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dbody]{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;}[part\x3dheading]{font-size:var(--x-toast-heading-font-size);font-weight:var(--x-toast-heading-weight);line-height:1.2;overflow-wrap:anywhere;}[part\x3dmessage]{font-size:var(--x-toast-font-size);line-height:1.35;overflow-wrap:anywhere;opacity:0.82;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-toast-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-toast-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-toast-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-toast-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-toast-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}[part\x3dprogress]{height:var(--x-toast-progress-height);background:var(--x-toast-progress-bg);overflow:hidden;display:none;}[part\x3dprogress-bar]{height:100%;width:100%;background:var(--x-toast-progress-fill);animation:x-toast-progress var(--x-toast-timeout,0ms) linear forwards;animation-play-state:paused;}:host([data-progress-active]) [part\x3dprogress-bar]{animation-play-state:running;}@keyframes x-toast-progress{from{width:100%;}to{width:0%;}}:host([data-entering]) [part\x3dcontainer]{animation:x-toast-enter var(--x-toast-enter-duration) var(--x-toast-motion-ease) both;}@keyframes x-toast-enter{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-toast-exit var(--x-toast-exit-duration) var(--x-toast-motion-ease) forwards;}@keyframes x-toast-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}:host([data-progress-active]) [part\x3dprogress-bar]{animation:none !important;}}";
6
+ $APP.T(d,"part","container");$APP.T(e,"part","inner");$APP.T(f,"part","icon");$APP.T(f,"aria-hidden","true");$APP.T(h,"name","icon");$APP.T(k,"part","default-icon");h.appendChild(k);f.appendChild(h);$APP.T(m,"part","body");$APP.T(q,"part","heading");$APP.T(u,"part","message");m.appendChild(q);m.appendChild(u);$APP.T(x,"part","dismiss");$APP.T(x,"type","button");$APP.T(x,"aria-label","Dismiss toast");$APP.T(y,"aria-hidden","true");y.textContent="×";x.appendChild(y);e.appendChild(f);e.appendChild(m);
7
+ e.appendChild(x);$APP.T(A,"part","progress");$APP.T(E,"part","progress-bar");A.appendChild(E);d.appendChild(e);d.appendChild(A);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xToastRefs",$APP.Eg([Gz,$APP.iu,Hz,$APP.$r,$APP.Ut,Iz,$APP.Ak,$APP.Bk,$APP.sq,$APP.Uo,$APP.Eq,Jz],[E,k,u,x,m,e,b,d,A,f,h,q]));return $APP.l(a,"__xToastRefs")},Lz=function(a){return Cz($APP.Eg([$APP.Bq,$APP.zj,$APP.up,$APP.Yo,Az,$APP.Lq,$APP.xp,$APP.Jr,$APP.Ns],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),
8
+ a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},Pz=function(a){var b=Lz(a);if($APP.I($APP.l(a,"__xToastModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.O),d=$APP.C(b,$APP.Ns),e=$APP.C(b,$APP.Jr),f=$APP.C(b,$APP.Qp),h=$APP.C(b,$APP.Sj),k=$APP.C(b,$APP.Jt),m=Kz(a),q=$APP.G(m),u=$APP.C(q,$APP.Eq),x=$APP.C(q,Jz);m=$APP.C(q,Gz);var y=$APP.C(q,$APP.iu),A=$APP.C(q,Hz),E=$APP.C(q,$APP.$r),H=$APP.C(q,$APP.Bk),
9
+ N=$APP.C(q,$APP.sq);q=$APP.C(q,$APP.Uo);$APP.T(a,"data-type",wz(c));var S=$APP.z.j(c,$APP.vt)||$APP.z.j(c,$APP.Dp)?"alert":"status";$APP.T(H,"role",S);x.textContent=d;x.style.display=$APP.z.j(d,"")?"none":"";A.textContent=e;d=$APP.n(u)?u.assignedNodes().length>0:null;u=$APP.G(b);e=$APP.C(u,$APP.wr);u=$APP.C(u,$APP.Xr);$APP.z.j(e,$APP.Ps)?c=u:(c=$APP.C(Mz,c),c=$APP.n(c)?c:$APP.C(Mz,$APP.Ds));d=$APP.p(d)&&$APP.z.j(e,$APP.ou);d=$APP.G(new $APP.M(null,2,[Nz,d,Oz,c],null));c=$APP.C(d,Nz);d=$APP.C(d,Oz);
10
+ $APP.n(c)?(y.textContent="",q.style.display="none"):(y.textContent=d,q.style.display="inline");$APP.n(f)?(E.disabled=$APP.D(h),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");y=Fz(b);$APP.n(y)?(N.style.display="block",m.style.setProperty("--x-toast-timeout",""+$APP.P.i(k)+"ms")):N.style.display="none";f=$APP.n(f)?$APP.p(h):f;a.tabIndex=$APP.n(f)?0:-1;$APP.n(h)?$APP.T(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.n(f)?$APP.T(a,"aria-keyshortcuts","Escape"):$APP.U(a,
11
+ "aria-keyshortcuts");$APP.Q(a,"__xToastModel",b)}},Qz=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Rz=function(a){a=typeof a==="string"?a.trim():"";return $APP.z.j(a,"")||$APP.z.j(a,"0")||$APP.z.j(a,"0ms")||$APP.z.j(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},Sz=function(a){var b=
12
+ $APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastTimeout",null))},Uz=function(a){Sz(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:Lz(a)}();return $APP.n(function(){var c=Dz(b);return $APP.n(c)?typeof $APP.Jt.i(b)==="number"&&$APP.p($APP.l(a,"__xToastExiting")):c}())?$APP.Q(a,"__xToastTimeout",setTimeout(function(){$APP.Q(a,"__xToastTimeout",null);if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())){var c=
13
+ function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:Lz(a)}();if($APP.n(Dz(c)))return c=$APP.bm(Ez(c,"timeout")),$APP.fj(a,"x-toast-dismiss",c)?Tz.i?Tz.i(a):Tz.call(null,a):null}return null},$APP.Jt.i(b))):null},Vz=function(a){var b=$APP.l(a,"__xToastModel");$APP.n($APP.n(b)?Fz(b):b)&&$APP.T(a,"data-progress-active","");return Uz(a)},Wz=function(a){if($APP.n($APP.l(a,"__xToastEntered")))return null;$APP.Q(a,"__xToastEntered",!0);$APP.T(a,"data-entering","");if(Qz())return $APP.U(a,"data-entering"),
14
+ Vz(a);var b=Kz(a);b=$APP.G(b);var c=$APP.C(b,$APP.Bk);return c.addEventListener("animationend",function f(e){return $APP.z.j(e.target,c)?(c.removeEventListener("animationend",f),$APP.U(a,"data-entering"),Vz(a)):null})},Xz=function(a,b,c){var d=function h(f){return $APP.z.j(f.target,b)?(b.removeEventListener("animationend",h),f=$APP.l(a,"__xToastExitTimer"),$APP.n(f)&&(clearTimeout(f),$APP.Q(a,"__xToastExitTimer",null)),$APP.n(a.isConnected)?a.remove():null):null};$APP.T(a,"data-exiting","");b.addEventListener("animationend",
15
+ d);return $APP.Q(a,"__xToastExitTimer",setTimeout(function(){var f=a.isConnected;return $APP.n($APP.n(f)?$APP.l(a,"__xToastExiting"):f)?(b.removeEventListener("animationend",d),$APP.Q(a,"__xToastExitTimer",null),a.remove()):null},c+60))},Tz=function(a){if($APP.n($APP.l(a,"__xToastExiting")))return null;$APP.Q(a,"__xToastExiting",!0);Sz(a);$APP.U(a,"data-entering");$APP.U(a,"data-progress-active");var b=window.getComputedStyle(a);var c=Rz(b.getPropertyValue("--x-toast-exit-duration"));b=Rz(b.getPropertyValue("--x-motion-exit-duration"));
16
+ c=c>0?c:b>0?b:180;if(c===0||Qz())return a.remove();b=Kz(a);b=$APP.G(b);b=$APP.C(b,$APP.Bk);return Xz(a,b,c)},Yz=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.n(c)?c:Lz(a);b=$APP.bm(Ez(c,b));(b=$APP.fj(a,"x-toast-dismiss",b))&&Tz(a);return b},Zz=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:Lz(a)}();return $APP.n(function(){var d=Dz(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())?(b.preventDefault(),Yz(a,"button")):null},$z=function(a,b){if($APP.z.j(b.key,
17
+ "Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:Lz(a)}();if($APP.n(function(){var d=Dz(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}()))return b.preventDefault(),Yz(a,"keyboard")}return null},aA=function(a){function b(e){return $z(a,e)}function c(e){return Zz(a,e)}var d=Kz(a);d=$APP.G(d);$APP.C(d,$APP.$r).addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xToastHandlers",{click:c,keydown:b})},bA=function(a){Sz(a);var b=$APP.l(a,"__xToastExitTimer");
18
+ $APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xToastExitTimer",null));b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.$r.i(c);var d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",b)}return $APP.Q(a,"__xToastHandlers",null)},cA=function(a){$APP.lj(a,"type","type","info");$APP.lj(a,"heading","heading","");$APP.lj(a,"message","message","");$APP.mj(a,"icon","icon");$APP.jj(a,"dismissible",
19
+ "dismissible");$APP.ij(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return yz(this.getAttribute("timeout-ms"))},set:function(b){return b==null?$APP.U(this,"timeout-ms"):$APP.T(this,"timeout-ms",""+$APP.P.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return xz(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?$APP.T(this,"show-progress",""):$APP.U(this,"show-progress")},enumerable:!0,configurable:!0})},
20
+ dA=function(a){return Object.defineProperty(a,"dismiss",{value:function(b){var c=$APP.p($APP.l(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&Yz(this,typeof b==="string"?b:"api");return null},writable:!0,configurable:!0})},eA=function(a){Kz(a);bA(a);aA(a);Pz(a);return Wz(a)},fA=function(a){return bA(a)},gA=function(a,b,c,d){return $APP.I(c,d)?(Pz(a),$APP.n(a.isConnected)?Uz(a):null):null},iA=function(){return $APP.xi("x-toast",new $APP.M(null,5,[$APP.hi,hA,$APP.fi,eA,$APP.ci,fA,$APP.bi,gA,
21
+ $APP.gi,function(a){cA(a);return dA(a)}],null))},jA=function(){return iA()},Jz=new $APP.F(null,"heading-el","heading-el",-1277272161),Bz=new $APP.F(null,"show-progress?","show-progress?",-1681518912),Iz=new $APP.F(null,"inner","inner",-1383171215),Nz=new $APP.F(null,"hide?","hide?",-988635670),Oz=new $APP.F(null,"fallback","fallback",761637929),Hz=new $APP.F(null,"message-el","message-el",-683533234),Gz=new $APP.F(null,"progress-bar","progress-bar",-123877022),Az=new $APP.F(null,"show-progress-attr",
22
+ "show-progress-attr",1680262066);var hA="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.he(["x-toast-dismiss",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.O,$APP.X,$APP.Rp,$APP.X,$APP.Ns,$APP.X,$APP.Jr,$APP.X],null),$APP.yt,!0],null)]);
23
+ var tz=new $APP.M(null,4,["info",$APP.Ds,"success",$APP.Rr,"warning",$APP.vt,"error",$APP.Dp],null),vz=new $APP.M(null,4,[$APP.Ds,"info",$APP.Rr,"success",$APP.vt,"warning",$APP.Dp,"error"],null),Mz=new $APP.M(null,4,[$APP.Ds,"ℹ",$APP.Rr,"✓",$APP.vt,"!",$APP.Dp,"⨯"],null);$APP.fa("baredom.exports.x_toast.init",jA);export const init=jA;
package/dist/x-toaster.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Ty=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.$c(Sy,a)?a:"top-end"},Uy=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},Wy=function(a){if(!$APP.n($APP.k(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=Vy;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.O(null,2,[$APP.jj,b,$APP.Vp,d],null)}},Zy=function(a){a=
3
- new $APP.O(null,3,[$APP.ao,a.getAttribute("position"),Xy,a.getAttribute("max-toasts"),$APP.ui,a.getAttribute("label")],null);var b=$APP.G(a),c=$APP.C(b,$APP.ao);a=$APP.C(b,Xy);b=$APP.C(b,$APP.ui);c=Ty(c);a=Uy(a);return new $APP.O(null,3,[$APP.nr,c,Yy,$APP.n(a)?a:5,$APP.Z,typeof b==="string"&&$APP.I(b.trim(),"")?b:"Notifications"],null)},$y=function(a){var b=Zy(a);if($APP.I($APP.k(a,"__xToasterModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.nr),d=$APP.C(b,$APP.Z);Wy(a);$APP.S(a,"role","region");$APP.S(a,
4
- "aria-label",d);$APP.S(a,"data-position",c);a.__xToasterModel=b}},az=function(a){function b(c){var d=c.detail;if($APP.I($APP.k(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.k(d,"type"),f=$APP.k(d,"reason"),h=$APP.k(d,"heading");d=$APP.k(d,"message");e=$APP.$l(new $APP.O(null,4,[$APP.Q,$APP.n(e)?e:"info",$APP.Ym,$APP.n(f)?f:"",$APP.Qp,$APP.n(h)?h:"",$APP.Go,$APP.n(d)?d:""],null));$APP.Ph(a,"x-toaster-dismiss",e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",
5
- b);$APP.ja(a,"__xToasterHandlers",{dismiss:b})},bz=function(a){var b=$APP.k(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.k(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},cz=function(a){Object.defineProperty(a,"position",{get:function(){return Ty(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.V.i(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=
6
- this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=Uy(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.V.i(Math.floor(b)))},enumerable:!0,configurable:!0});return Object.defineProperty(a,
7
- "toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.k(this,"__xToasterModel");c=$APP.n(c)?c:Zy(this);var d=Yy.i(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.k(b,"type");$APP.n(d)&&c.setAttribute("type",d);d=$APP.k(b,"heading");$APP.n(d)&&c.setAttribute("heading",d);d=$APP.k(b,"message");$APP.n(d)&&c.setAttribute("message",d);d=$APP.k(b,"icon");$APP.n(d)&&c.setAttribute("icon",
8
- d);$APP.k(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.k(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.V.i(d));$APP.n($APP.k(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},dz=function(a){Wy(a);bz(a);az(a);$y(a);return null},ez=function(a){bz(a);return null},fz=function(a,b,c,d){$APP.I(c,d)&&$y(a);return null},hz=function(){return $APP.Ah("x-toaster",new $APP.O(null,5,[$APP.qh,gz,$APP.oh,dz,
9
- $APP.lh,ez,$APP.kh,fz,$APP.ph,cz],null))},Xy=new $APP.F(null,"max-toasts-raw","max-toasts-raw",-815087069),Yy=new $APP.F(null,"max-toasts","max-toasts",-1982289139);var gz=["position","max-toasts","label"];$APP.ce(["x-toaster-dismiss",new $APP.O(null,2,[$APP.U,new $APP.O(null,4,[$APP.Q,$APP.X,$APP.Ym,$APP.X,$APP.Qp,$APP.X,$APP.Go,$APP.X],null),$APP.Aq,!0],null)]);var Sy=new $APP.pg(null,new $APP.O(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var Vy=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,min(480px,calc(100vw - 2rem)));box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.V.i("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ha("baredom.exports.x_toaster.init",hz);export const init=hz;
2
+ var oC=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(nC,a)?a:"top-end"},pC=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},rC=function(a){if(!$APP.Ti(a,"__xToasterInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=qC;b.appendChild(c);b.appendChild(d);$APP.Ui(a,"__xToasterInitialized")}},uC=function(a){a=new $APP.M(null,3,[$APP.br,
3
+ a.getAttribute("position"),sC,a.getAttribute("max-toasts"),$APP.yj,a.getAttribute("label")],null);var b=$APP.G(a),c=$APP.C(b,$APP.br);a=$APP.C(b,sC);b=$APP.C(b,$APP.yj);c=oC(c);a=pC(a);return new $APP.M(null,3,[$APP.pu,c,tC,$APP.n(a)?a:5,$APP.Rj,typeof b==="string"&&$APP.I(b.trim(),"")?b:"Notifications"],null)},vC=function(a){var b=uC(a);if($APP.I($APP.l(a,"__xToasterModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.pu),d=$APP.C(b,$APP.Rj);rC(a);$APP.T(a,"role","region");$APP.T(a,"aria-label",d);$APP.T(a,
4
+ "data-position",c);a=$APP.Q(a,"__xToasterModel",b)}else a=null;return a},wC=function(a){function b(c){var d=c.detail;if($APP.I($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type"),f=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.bm(new $APP.M(null,4,[$APP.O,$APP.n(e)?e:"info",$APP.Rp,$APP.n(f)?f:"",$APP.Ns,$APP.n(h)?h:"",$APP.Jr,$APP.n(d)?d:""],null));c=$APP.fj(a,"x-toaster-dismiss",e)?c.target.dismiss("toaster-remove"):null}else c=null;return c}a.addEventListener("x-toast-dismiss",
5
+ b);$APP.Q(a,"__xToasterHandlers",{dismiss:b})},xC=function(a){var b=$APP.l(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.l(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));return $APP.Q(a,"__xToasterHandlers",null)},yC=function(a){$APP.oj(a,"position","position",oC);Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,
6
+ "label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=pC(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==null?$APP.U(this,"max-toasts"):$APP.T(this,"max-toasts",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.l(this,"__xToasterModel");c=$APP.n(c)?c:uC(this);var d=tC.i(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=
7
+ d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.l(b,"type");$APP.n(d)&&$APP.T(c,"type",d);d=$APP.l(b,"heading");$APP.n(d)&&$APP.T(c,"heading",d);d=$APP.l(b,"message");$APP.n(d)&&$APP.T(c,"message",d);d=$APP.l(b,"icon");$APP.n(d)&&$APP.T(c,"icon",d);$APP.l(b,"dismissible")===!1&&$APP.T(c,"dismissible","false");d=$APP.l(b,"timeoutMs");$APP.n(d)&&$APP.T(c,"timeout-ms",""+$APP.P.i(d));$APP.n($APP.l(b,"showProgress"))&&$APP.T(c,"show-progress",
8
+ "");this.appendChild(c);return c},writable:!0,configurable:!0})},zC=function(a){rC(a);xC(a);wC(a);return vC(a)},AC=function(a){return xC(a)},BC=function(a,b,c,d){return $APP.I(c,d)?vC(a):null},DC=function(){return $APP.xi("x-toaster",new $APP.M(null,5,[$APP.hi,CC,$APP.fi,zC,$APP.ci,AC,$APP.bi,BC,$APP.gi,yC],null))},sC=new $APP.F(null,"max-toasts-raw","max-toasts-raw",-815087069),tC=new $APP.F(null,"max-toasts","max-toasts",-1982289139);var CC=["position","max-toasts","label"];$APP.he(["x-toaster-dismiss",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.O,$APP.X,$APP.Rp,$APP.X,$APP.Ns,$APP.X,$APP.Jr,$APP.X],null),$APP.yt,!0],null)]);var nC=new $APP.ah(null,new $APP.M(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var qC=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,min(480px,calc(100vw - 2rem)));box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.P.i("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.fa("baredom.exports.x_toaster.init",DC);export const init=DC;
@@ -13,6 +13,8 @@ export interface XTooltip extends HTMLElement {
13
13
  delay: number;
14
14
  disabled: boolean;
15
15
  open: boolean;
16
+ show(): void;
17
+ hide(): void;
16
18
 
17
19
  addEventListener<K extends keyof XTooltipEventMap>(
18
20
  type: K,
package/dist/x-tooltip.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Cy=function(a){a=new $APP.O(null,5,[$APP.dm,a.getAttribute("text"),$APP.sr,a.getAttribute("placement"),zy,a.getAttribute("delay"),$APP.vi,a.hasAttribute("disabled"),$APP.Qm,a.hasAttribute("open")],null);var b=$APP.G(a),c=$APP.C(b,$APP.dm),d=$APP.C(b,$APP.sr),e=$APP.C(b,zy);a=$APP.C(b,$APP.vi);b=$APP.C(b,$APP.Qm);c=$APP.n(c)?c:"";d=$APP.$c(Ay,d)?d:"top";e!=null?(e=parseInt(e,10),e=$APP.n(isNaN(e))?400:$APP.Hl.j($APP.Gl.j(e,0),5E3)):e=400;return new $APP.O(null,5,[$APP.Rp,c,$APP.Vn,d,By,e,$APP.Bi,
3
- $APP.D(a),$APP.Zq,$APP.D(b)],null)},Dy=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){a=Cy(a);var c=$APP.G(a);a=$APP.C(c,$APP.Rp);var d=$APP.C(c,$APP.Vn);c=$APP.C(c,$APP.Zq);var e=$APP.k(b,"panel");b=$APP.k(b,"text");$APP.S(e,"data-placement",d);$APP.S(e,"aria-hidden",""+$APP.V.i($APP.p(c)));b.textContent=a}},Ey=function(a){var b=$APP.k(a,"__xTooltipShowTimer");$APP.n(b)&&(clearTimeout(b),$APP.R(a,"__xTooltipShowTimer",null))},Fy=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;
4
- Ey(a);if($APP.n($APP.n(b)?b:a.hasAttribute("open"))){if($APP.n(a.hasAttribute("open")))return null;$APP.S(a,"open","");return $APP.Nh(a,"x-tooltip-show",{})}b=Cy(a);b=$APP.G(b);b=$APP.C(b,By);return b===0?($APP.S(a,"open",""),$APP.Nh(a,"x-tooltip-show",{})):$APP.R(a,"__xTooltipShowTimer",setTimeout(function(){$APP.R(a,"__xTooltipShowTimer",null);return $APP.n(a.isConnected)?($APP.S(a,"open",""),$APP.Nh(a,"x-tooltip-show",{})):null},b))},Gy=function(a){Ey(a);return $APP.n(a.hasAttribute("open"))?($APP.T(a,
5
- "open"),$APP.Nh(a,"x-tooltip-hide",{})):null},Hy=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.k(b,"triggerSlot").assignedElements();b=$APP.k(a,"__xTooltipId");var d=$APP.k(a,"__xTooltipTriggerEl");$APP.n(d)&&(d.removeAttribute("aria-describedby"),$APP.R(a,"__xTooltipTriggerEl",null));if(c.length>0)return c=c[0],$APP.S(c,"aria-describedby",b),$APP.R(a,"__xTooltipTriggerEl",c)}return null},Iy=function(a){return{pointerenter:function(){return Fy(a,!1)},pointerleave:function(){return Gy(a)},
6
- focusin:function(){return Fy(a,!0)},focusout:function(b){b=b.relatedTarget;return b==null||$APP.p(a.contains(b))?Gy(a):null},keydown:function(b){b=$APP.A.j(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Gy(a):null},slotchange:function(){return Hy(a)}}},Jy=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.k(a,"__xTooltipHandlers");$APP.n(c)&&(b=$APP.k(b,"triggerSlot"),a.removeEventListener("pointerenter",$APP.k(c,"pointerenter")),a.removeEventListener("pointerleave",
7
- $APP.k(c,"pointerleave")),a.removeEventListener("focusin",$APP.k(c,"focusin")),a.removeEventListener("focusout",$APP.k(c,"focusout")),a.removeEventListener("keydown",$APP.k(c,"keydown")),b.removeEventListener("slotchange",$APP.k(c,"slotchange")))}},Ly=function(a){if(!$APP.n($APP.k(a,"__xTooltipRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("slot"),f=document.createElement("div"),h=document.createElement("div"),
8
- l=document.createElement("div"),m=document.createElement("span"),q=document.createElement("slot");var r=$APP.k(Ky,"n")+1;Ky.n=r;r="x-tt-"+$APP.V.i(r);c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-tooltip-bg:var(--x-color-bg,#ffffff);--x-tooltip-text:var(--x-color-text,#0f172a);--x-tooltip-border:1px solid var(--x-color-border,#e2e8f0);--x-tooltip-padding:var(--x-space-xs,4px) var(--x-space-sm,8px);--x-tooltip-radius:var(--x-radius-md,6px);--x-tooltip-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-tooltip-z:var(--x-z-dropdown,1000);--x-tooltip-max-width:min(280px,calc(100vw - 2rem));--x-tooltip-font-size:var(--x-font-size-xs,0.75rem);--x-tooltip-arrow-size:6px;--x-tooltip-offset:4px;--x-tooltip-transition-duration:var(--x-transition-duration,150ms);--x-tooltip-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-tooltip-bg:var(--x-color-bg,#1e293b);--x-tooltip-text:var(--x-color-text,#e2e8f0);--x-tooltip-border:1px solid var(--x-color-border,#334155);--x-tooltip-shadow:0 4px 24px rgba(0,0,0,0.4);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-tooltip-z);box-sizing:border-box;background:var(--x-tooltip-bg);color:var(--x-tooltip-text);border:var(--x-tooltip-border);padding:var(--x-tooltip-padding);border-radius:var(--x-tooltip-radius);box-shadow:var(--x-tooltip-shadow);max-width:var(--x-tooltip-max-width);font-size:var(--x-tooltip-font-size);font-family:inherit;line-height:1.4;white-space:normal;word-wrap:break-word;pointer-events:none;visibility:hidden;opacity:0;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s var(--x-tooltip-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;opacity:1;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dtop]{bottom:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(4px);transform-origin:bottom center;}:host([open]) [part\x3dpanel][data-placement\x3dtop]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dbottom]{top:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(-4px);transform-origin:top center;}:host([open]) [part\x3dpanel][data-placement\x3dbottom]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dleft]{right:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(4px);transform-origin:center right;}:host([open]) [part\x3dpanel][data-placement\x3dleft]{transform:translateY(-50%) translateX(0);}[part\x3dpanel][data-placement\x3dright]{left:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(-4px);transform-origin:center left;}:host([open]) [part\x3dpanel][data-placement\x3dright]{transform:translateY(-50%) translateX(0);}[part\x3darrow]{position:absolute;width:var(--x-tooltip-arrow-size);height:var(--x-tooltip-arrow-size);background:var(--x-tooltip-bg);border:var(--x-tooltip-border);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dtop] [part\x3darrow]{bottom:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-left:none;}[part\x3dpanel][data-placement\x3dbottom] [part\x3darrow]{top:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-right:none;}[part\x3dpanel][data-placement\x3dleft] [part\x3darrow]{right:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-left:none;}[part\x3dpanel][data-placement\x3dright] [part\x3darrow]{left:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-right:none;}[part\x3dbody]{position:relative;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}";
9
- $APP.S(d,"part","trigger");$APP.S(f,"part","panel");$APP.S(f,"role","tooltip");$APP.S(f,"id",r);$APP.S(f,"aria-hidden","true");$APP.S(f,"data-placement","top");$APP.S(h,"part","arrow");$APP.S(h,"aria-hidden","true");$APP.S(l,"part","body");$APP.S(m,"part","text");$APP.S(q,"name","content");d.appendChild(e);l.appendChild(m);l.appendChild(q);f.appendChild(h);f.appendChild(l);b.appendChild(c);b.appendChild(d);b.appendChild(f);$APP.R(a,"__xTooltipId",r);$APP.R(a,"__xTooltipRefs",{trigger:d,triggerSlot:e,
10
- panel:f,arrow:h,body:l,text:m,contentSlot:q})}Jy(a);$APP.R(a,"__xTooltipHandlers",Iy(a));c=$APP.k(a,"__xTooltipRefs");$APP.n(c)&&(b=$APP.k(a,"__xTooltipHandlers"),$APP.n(b)&&(c=$APP.k(c,"triggerSlot"),a.addEventListener("pointerenter",$APP.k(b,"pointerenter")),a.addEventListener("pointerleave",$APP.k(b,"pointerleave")),a.addEventListener("focusin",$APP.k(b,"focusin")),a.addEventListener("focusout",$APP.k(b,"focusout")),a.addEventListener("keydown",$APP.k(b,"keydown")),c.addEventListener("slotchange",
11
- $APP.k(b,"slotchange"))));Dy(a);return Hy(a)},My=function(a){Ey(a);Jy(a);var b=$APP.k(a,"__xTooltipTriggerEl");$APP.n(b)?(b.removeAttribute("aria-describedby"),a=$APP.R(a,"__xTooltipTriggerEl",null)):a=null;return a},Ny=function(a){if($APP.n($APP.k(a,"__xTooltipRefs"))){Dy(a);var b=a.hasAttribute("disabled");return $APP.n($APP.n(b)?a.hasAttribute("open"):b)?Gy(a):null}return null},Py=function(a){$APP.Zh(a,Oy);a.show=function(){return Fy(this,!0)};return a.hide=function(){return Gy(this)}},Ry=function(){return $APP.Ah("x-tooltip",
12
- new $APP.O(null,5,[$APP.qh,Qy,$APP.oh,Ly,$APP.lh,My,$APP.kh,Ny,$APP.ph,Py],null))},By=new $APP.F(null,"delay","delay",-574225219),zy=new $APP.F(null,"delay-raw","delay-raw",886290425);var Ay=new $APP.pg(null,new $APP.O(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),Qy=["text","placement","delay","disabled","open"],Oy=new $APP.O(null,5,[$APP.Rp,new $APP.O(null,2,[$APP.Q,$APP.X,$APP.W,"text"],null),$APP.Vn,new $APP.O(null,2,[$APP.Q,$APP.X,$APP.W,"placement"],null),By,new $APP.O(null,3,[$APP.Q,$APP.Y,$APP.W,"delay",$APP.Yh,400],null),$APP.ck,new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"disabled"],null),$APP.wq,new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"open"],
13
- null)],null);$APP.ce(["x-tooltip-show",new $APP.O(null,2,[$APP.Aq,!1,$APP.U,$APP.de],null),"x-tooltip-hide",new $APP.O(null,2,[$APP.Aq,!1,$APP.U,$APP.de],null)]);var Ky={n:0};$APP.ha("baredom.exports.x_tooltip.init",Ry);export const init=Ry;
2
+ var UB=function(a){a=new $APP.M(null,5,[$APP.Gl,a.getAttribute("text"),$APP.Au,a.getAttribute("placement"),RB,a.getAttribute("delay"),$APP.zj,a.hasAttribute("disabled"),$APP.Hp,a.hasAttribute("open")],null);var b=$APP.G(a),c=$APP.C(b,$APP.Gl),d=$APP.C(b,$APP.Au),e=$APP.C(b,RB);a=$APP.C(b,$APP.zj);b=$APP.C(b,$APP.Hp);c=$APP.n(c)?c:"";d=$APP.cd(SB,d)?d:"top";e!=null?(e=parseInt(e,10),e=$APP.n(isNaN(e))?400:$APP.co.j($APP.uo.j(e,0),5E3)):e=400;return new $APP.M(null,5,[$APP.Ul,c,$APP.Wq,d,TB,e,$APP.Sj,
3
+ $APP.D(a),$APP.Zt,$APP.D(b)],null)},VB=function(a){var b=UB(a);if($APP.I($APP.l(a,"__xTooltipModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Ul),d=$APP.C(b,$APP.Wq),e=$APP.C(b,$APP.Zt),f=$APP.l(a,"__xTooltipRefs");if($APP.n(f)){var h=$APP.l(f,"panel");f=$APP.l(f,"text");$APP.T(h,"data-placement",d);$APP.T(h,"aria-hidden",""+$APP.P.i($APP.p(e)));f.textContent=c;$APP.Q(a,"__xTooltipModel",b)}}},WB=function(a){var b=$APP.l(a,"__xTooltipShowTimer");$APP.n(b)&&(clearTimeout(b),$APP.Q(a,"__xTooltipShowTimer",
4
+ null))},YB=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;WB(a);if($APP.n($APP.n(b)?b:a.hasAttribute("open"))){if($APP.n(a.hasAttribute("open")))return null;$APP.T(a,"open","");return $APP.dj(a,"x-tooltip-show",{})}b=UB(a);b=$APP.G(b);b=$APP.C(b,TB);return b===0?($APP.T(a,"open",""),$APP.dj(a,"x-tooltip-show",{})):$APP.Q(a,"__xTooltipShowTimer",setTimeout(function(){$APP.Q(a,"__xTooltipShowTimer",null);return $APP.n(a.isConnected)?($APP.T(a,"open",""),$APP.dj(a,"x-tooltip-show",{})):
5
+ null},b))},ZB=function(a){WB(a);return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),$APP.dj(a,"x-tooltip-hide",{})):null},$B=function(a){var b=$APP.l(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.l(b,"triggerSlot").assignedElements();b=$APP.l(a,"__xTooltipId");var d=$APP.l(a,"__xTooltipTriggerEl");$APP.n(d)&&($APP.U(d,"aria-describedby"),$APP.Q(a,"__xTooltipTriggerEl",null));if(c.length>0)return c=c[0],$APP.T(c,"aria-describedby",b),$APP.Q(a,"__xTooltipTriggerEl",c)}return null},aC=function(a){return{pointerenter:function(){return YB(a,
6
+ !1)},pointerleave:function(){return ZB(a)},focusin:function(){return YB(a,!0)},focusout:function(b){b=b.relatedTarget;return b==null||$APP.p(a.contains(b))?ZB(a):null},keydown:function(b){b=$APP.z.j(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?ZB(a):null},slotchange:function(){return $B(a)}}},cC=function(a,b,c){return $APP.z.j(c,bC)?a:$APP.l(b,c)},eC=function(a){var b=$APP.l(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.l(a,"__xTooltipHandlers");if($APP.n(c))for(var d=$APP.r(dC),e=null,
7
+ f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,null),q=$APP.B(k,1,null);k=$APP.B(k,2,null);cC(a,b,m).removeEventListener(q,$APP.l(c,k));h+=1}else if(d=$APP.r(d))$APP.Yc(d)?(q=$APP.Db(d),d=$APP.Eb(d),m=q,q=$APP.w(q),e=m,f=q):(e=$APP.t(d),m=$APP.B(e,0,null),q=$APP.B(e,1,null),k=$APP.B(e,2,null),cC(a,b,m).removeEventListener(q,$APP.l(c,k)),d=$APP.v(d),e=null,f=0),h=0;else break}},gC=function(a){if(!$APP.n($APP.l(a,"__xTooltipRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
8
+ d=document.createElement("span"),e=document.createElement("slot"),f=document.createElement("div"),h=document.createElement("div"),k=document.createElement("div"),m=document.createElement("span"),q=document.createElement("slot");var u=$APP.l(fC,"n")+1;fC.n=u;u="x-tt-"+$APP.P.i(u);c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-tooltip-bg:var(--x-color-bg,#ffffff);--x-tooltip-text:var(--x-color-text,#0f172a);--x-tooltip-border:1px solid var(--x-color-border,#e2e8f0);--x-tooltip-padding:var(--x-space-xs,4px) var(--x-space-sm,8px);--x-tooltip-radius:var(--x-radius-md,6px);--x-tooltip-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-tooltip-z:var(--x-z-dropdown,1000);--x-tooltip-max-width:min(280px,calc(100vw - 2rem));--x-tooltip-font-size:var(--x-font-size-xs,0.75rem);--x-tooltip-arrow-size:6px;--x-tooltip-offset:4px;--x-tooltip-transition-duration:var(--x-transition-duration,150ms);--x-tooltip-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-tooltip-bg:var(--x-color-bg,#1e293b);--x-tooltip-text:var(--x-color-text,#e2e8f0);--x-tooltip-border:1px solid var(--x-color-border,#334155);--x-tooltip-shadow:0 4px 24px rgba(0,0,0,0.4);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-tooltip-z);box-sizing:border-box;background:var(--x-tooltip-bg);color:var(--x-tooltip-text);border:var(--x-tooltip-border);padding:var(--x-tooltip-padding);border-radius:var(--x-tooltip-radius);box-shadow:var(--x-tooltip-shadow);max-width:var(--x-tooltip-max-width);font-size:var(--x-tooltip-font-size);font-family:inherit;line-height:1.4;white-space:normal;word-wrap:break-word;pointer-events:none;visibility:hidden;opacity:0;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s var(--x-tooltip-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;opacity:1;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dtop]{bottom:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(4px);transform-origin:bottom center;}:host([open]) [part\x3dpanel][data-placement\x3dtop]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dbottom]{top:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(-4px);transform-origin:top center;}:host([open]) [part\x3dpanel][data-placement\x3dbottom]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dleft]{right:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(4px);transform-origin:center right;}:host([open]) [part\x3dpanel][data-placement\x3dleft]{transform:translateY(-50%) translateX(0);}[part\x3dpanel][data-placement\x3dright]{left:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(-4px);transform-origin:center left;}:host([open]) [part\x3dpanel][data-placement\x3dright]{transform:translateY(-50%) translateX(0);}[part\x3darrow]{position:absolute;width:var(--x-tooltip-arrow-size);height:var(--x-tooltip-arrow-size);background:var(--x-tooltip-bg);border:var(--x-tooltip-border);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dtop] [part\x3darrow]{bottom:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-left:none;}[part\x3dpanel][data-placement\x3dbottom] [part\x3darrow]{top:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-right:none;}[part\x3dpanel][data-placement\x3dleft] [part\x3darrow]{right:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-left:none;}[part\x3dpanel][data-placement\x3dright] [part\x3darrow]{left:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-right:none;}[part\x3dbody]{position:relative;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}";
9
+ $APP.T(d,"part","trigger");$APP.T(f,"part","panel");$APP.T(f,"role","tooltip");$APP.T(f,"id",u);$APP.T(f,"aria-hidden","true");$APP.T(f,"data-placement","top");$APP.T(h,"part","arrow");$APP.T(h,"aria-hidden","true");$APP.T(k,"part","body");$APP.T(m,"part","text");$APP.T(q,"name","content");d.appendChild(e);k.appendChild(m);k.appendChild(q);f.appendChild(h);f.appendChild(k);b.appendChild(c);b.appendChild(d);b.appendChild(f);$APP.Q(a,"__xTooltipId",u);$APP.Q(a,"__xTooltipRefs",{trigger:d,triggerSlot:e,
10
+ panel:f,arrow:h,body:k,text:m,contentSlot:q})}eC(a);$APP.Q(a,"__xTooltipHandlers",aC(a));a:if(b=$APP.l(a,"__xTooltipRefs"),$APP.n(b)&&(c=$APP.l(a,"__xTooltipHandlers"),$APP.n(c)))for(d=$APP.r(dC),h=null,m=k=0;;)if(m<k)q=h.C(null,m),e=$APP.B(q,0,null),f=$APP.B(q,1,null),q=$APP.B(q,2,null),cC(a,b,e).addEventListener(f,$APP.l(c,q)),m+=1;else if(d=$APP.r(d))$APP.Yc(d)?(f=$APP.Db(d),d=$APP.Eb(d),e=f,f=$APP.w(f),h=e,k=f):(h=$APP.t(d),e=$APP.B(h,0,null),f=$APP.B(h,1,null),q=$APP.B(h,2,null),cC(a,b,e).addEventListener(f,
11
+ $APP.l(c,q)),d=$APP.v(d),h=null,k=0),m=0;else break a;VB(a);return $B(a)},hC=function(a){WB(a);eC(a);var b=$APP.l(a,"__xTooltipTriggerEl");$APP.n(b)?($APP.U(b,"aria-describedby"),a=$APP.Q(a,"__xTooltipTriggerEl",null)):a=null;return a},iC=function(a,b,c,d){return $APP.n(function(){var e=$APP.I(c,d);return e?$APP.l(a,"__xTooltipRefs"):e}())?(VB(a),$APP.n(function(){var e=a.hasAttribute("disabled");return $APP.n(e)?a.hasAttribute("open"):e}())?ZB(a):null):null},kC=function(a){$APP.sj(a,jC);Object.defineProperty(a,
12
+ "show",{value:function(){return YB(this,!0)},writable:!0,configurable:!0});return Object.defineProperty(a,"hide",{value:function(){return ZB(this)},writable:!0,configurable:!0})},mC=function(){return $APP.xi("x-tooltip",new $APP.M(null,5,[$APP.hi,lC,$APP.fi,gC,$APP.ci,hC,$APP.bi,iC,$APP.gi,kC],null))},TB=new $APP.F(null,"delay","delay",-574225219),bC=new $APP.F(null,"host","host",-1558485167),RB=new $APP.F(null,"delay-raw","delay-raw",886290425);var SB=new $APP.ah(null,new $APP.M(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),lC=["text","placement","delay","disabled","open"],jC=new $APP.M(null,5,[$APP.Ul,new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"text"],null),$APP.Wq,new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"placement"],null),TB,new $APP.M(null,3,[$APP.O,$APP.Z,$APP.W,"delay",$APP.rj,400],null),$APP.um,new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),$APP.ut,new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"open"],
13
+ null)],null);$APP.he(["x-tooltip-show",new $APP.M(null,2,[$APP.yt,!1,$APP.V,$APP.ie],null),"x-tooltip-hide",new $APP.M(null,2,[$APP.yt,!1,$APP.V,$APP.ie],null)]);var fC={n:0},dC=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,3,5,$APP.K,[bC,"pointerenter","pointerenter"],null),new $APP.J(null,3,5,$APP.K,[bC,"pointerleave","pointerleave"],null),new $APP.J(null,3,5,$APP.K,[bC,"focusin","focusin"],null),new $APP.J(null,3,5,$APP.K,[bC,"focusout","focusout"],null),new $APP.J(null,3,5,$APP.K,[bC,"keydown","keydown"],null),new $APP.J(null,3,5,$APP.K,["triggerSlot","slotchange","slotchange"],null)],null);$APP.fa("baredom.exports.x_tooltip.init",mC);export const init=mC;