@vanelsas/baredom 2.7.0 → 2.8.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 (107) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/custom-elements.json +344 -5
  3. package/dist/baredom.d.ts +4 -0
  4. package/dist/base.js +451 -427
  5. package/dist/integrity.json +97 -93
  6. package/dist/x-alert.js +17 -18
  7. package/dist/x-avatar-group.js +9 -10
  8. package/dist/x-avatar.js +15 -15
  9. package/dist/x-badge.js +9 -10
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -14
  13. package/dist/x-button.js +16 -18
  14. package/dist/x-cancel-dialogue.js +13 -17
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +33 -34
  17. package/dist/x-chart.d.ts +26 -0
  18. package/dist/x-chart.js +47 -46
  19. package/dist/x-checkbox.js +11 -10
  20. package/dist/x-chip.js +1 -9
  21. package/dist/x-collapse.js +10 -10
  22. package/dist/x-color-picker.js +44 -44
  23. package/dist/x-combobox.js +26 -26
  24. package/dist/x-command-palette.js +26 -26
  25. package/dist/x-container.js +4 -4
  26. package/dist/x-context-menu.d.ts +31 -2
  27. package/dist/x-context-menu.js +20 -18
  28. package/dist/x-copy.js +20 -23
  29. package/dist/x-currency-field.js +23 -23
  30. package/dist/x-date-picker.d.ts +27 -0
  31. package/dist/x-date-picker.js +42 -41
  32. package/dist/x-divider.js +9 -9
  33. package/dist/x-drawer.js +10 -11
  34. package/dist/x-dropdown.js +11 -10
  35. package/dist/x-fieldset.js +5 -6
  36. package/dist/x-file-download.js +7 -7
  37. package/dist/x-file-upload.js +20 -20
  38. package/dist/x-form-field.js +15 -15
  39. package/dist/x-form.js +9 -8
  40. package/dist/x-gaussian-blur.js +13 -19
  41. package/dist/x-grid.js +6 -6
  42. package/dist/x-i18n-provider.d.ts +43 -0
  43. package/dist/x-i18n-provider.js +8 -0
  44. package/dist/x-i18n.d.ts +14 -0
  45. package/dist/x-i18n.js +5 -0
  46. package/dist/x-icon.js +6 -7
  47. package/dist/x-image.js +18 -19
  48. package/dist/x-kinetic-canvas.d.ts +18 -0
  49. package/dist/x-kinetic-canvas.js +26 -0
  50. package/dist/x-kinetic-font.js +27 -28
  51. package/dist/x-kinetic-typography.js +33 -39
  52. package/dist/x-liquid-dock.js +39 -39
  53. package/dist/x-liquid-fill.js +45 -45
  54. package/dist/x-liquid-glass.js +47 -47
  55. package/dist/x-menu-item.js +8 -9
  56. package/dist/x-menu.js +10 -11
  57. package/dist/x-metaball-cursor.js +27 -27
  58. package/dist/x-modal.js +11 -12
  59. package/dist/x-morph-stack.js +37 -38
  60. package/dist/x-multi-combobox.d.ts +50 -0
  61. package/dist/x-multi-combobox.js +37 -0
  62. package/dist/x-navbar.js +12 -12
  63. package/dist/x-neural-glow.js +33 -33
  64. package/dist/x-notification-center.js +9 -9
  65. package/dist/x-organic-divider.js +17 -18
  66. package/dist/x-organic-progress.js +38 -38
  67. package/dist/x-organic-shape.js +13 -13
  68. package/dist/x-pagination.js +15 -16
  69. package/dist/x-particle-button.js +51 -51
  70. package/dist/x-popover.js +26 -24
  71. package/dist/x-progress-circle.js +9 -10
  72. package/dist/x-progress.js +10 -11
  73. package/dist/x-radio.js +11 -10
  74. package/dist/x-ripple-effect.js +11 -12
  75. package/dist/x-scroll-parallax.js +18 -19
  76. package/dist/x-scroll-stack.js +17 -18
  77. package/dist/x-scroll-story.js +34 -36
  78. package/dist/x-scroll-timeline.js +45 -46
  79. package/dist/x-scroll.js +40 -41
  80. package/dist/x-search-field.js +15 -15
  81. package/dist/x-select.js +10 -9
  82. package/dist/x-sidebar.js +17 -17
  83. package/dist/x-skeleton-group.js +12 -12
  84. package/dist/x-skeleton.js +1 -1
  85. package/dist/x-slider.js +15 -16
  86. package/dist/x-soft-body.js +22 -22
  87. package/dist/x-spacer.js +4 -5
  88. package/dist/x-spinner.js +4 -5
  89. package/dist/x-splash.js +12 -13
  90. package/dist/x-stat.js +10 -12
  91. package/dist/x-stepper.js +14 -15
  92. package/dist/x-switch.js +10 -9
  93. package/dist/x-tab.js +7 -8
  94. package/dist/x-table-cell.js +20 -24
  95. package/dist/x-table-row.js +8 -9
  96. package/dist/x-table.js +12 -15
  97. package/dist/x-tabs.js +11 -11
  98. package/dist/x-text-area.js +18 -18
  99. package/dist/x-theme.js +25 -25
  100. package/dist/x-timeline-item.js +21 -23
  101. package/dist/x-timeline.js +8 -9
  102. package/dist/x-toast.js +22 -24
  103. package/dist/x-toaster.js +8 -8
  104. package/dist/x-tooltip.js +12 -11
  105. package/dist/x-typography.js +9 -11
  106. package/dist/x-welcome-tour.js +60 -64
  107. package/package.json +21 -1
package/dist/x-theme.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var EH=function(a,b){var c=AH.g(BH),d=CH.g(BH),e=b.light,g=b.dark;b=$APP.Rf($APP.uc([c,$APP.n(e)?$APP.We.i($APP.Qd,function(){return function m(l){return new $APP.rd(null,function(){for(;;){var p=$APP.t(l);if(p){if($APP.Nc(p)){var r=$APP.xb(p),v=$APP.z(r),x=$APP.ud(v);a:{for(var y=0;;)if(y<v){var A=$APP.yc(r,y);x.add(new $APP.O(null,2,5,$APP.P,[A,$APP.k(e,A)],null));y+=1}else{r=!0;break a}r=void 0}return r?$APP.xd(x.aa(),m($APP.yb(p))):$APP.xd(x.aa(),null)}x=$APP.u(p);return $APP.od(new $APP.O(null,
3
- 2,5,$APP.P,[x,$APP.k(e,x)],null),m($APP.Xb(p)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Rf($APP.uc([d,$APP.n(g)?$APP.We.i($APP.Qd,function(){return function m(l){return new $APP.rd(null,function(){for(;;){var p=$APP.t(l);if(p){if($APP.Nc(p)){var r=$APP.xb(p),v=$APP.z(r),x=$APP.ud(v);a:{for(var y=0;;)if(y<v){var A=$APP.yc(r,y);x.add(new $APP.O(null,2,5,$APP.P,[A,$APP.k(g,A)],null));y+=1}else{r=!0;break a}r=void 0}return r?$APP.xd(x.aa(),m($APP.yb(p))):$APP.xd(x.aa(),null)}x=$APP.u(p);
4
- return $APP.od(new $APP.O(null,2,5,$APP.P,[x,$APP.k(g,x)],null),m($APP.Xb(p)))}return null}},null)}(Object.keys(g))}()):null]));return $APP.ja(DH,a,new $APP.Q(null,2,[AH,b,CH,d],null))},FH=function(a){var b=[];a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.Ac(g,0,null);g=$APP.Ac(g,1,null);b.push(""+$APP.S.g(h)+":"+$APP.S.g(g)+";");e+=1}else if(a=$APP.t(a))$APP.Nc(a)?(d=$APP.xb(a),a=$APP.yb(a),c=d,d=$APP.z(d)):(d=$APP.u(a),c=$APP.Ac(d,0,null),d=$APP.Ac(d,1,null),b.push(""+$APP.S.g(c)+
5
- ":"+$APP.S.g(d)+";"),a=$APP.w(a),c=null,d=0),e=0;else break;return b.join("")},IH=function(a){a=typeof a!=="string"||!$APP.I(GH,a)&&$APP.k(DH,a)==null?"default":a;var b=$APP.k(DH,a);$APP.n(b)||(a=$APP.D(HH,a),b=$APP.n(a)?a:BH);a=AH.g(b);b=CH.g(b);return":host{display:contents;"+$APP.S.g(FH(a))+"}@media(prefers-color-scheme:dark){:host{"+$APP.S.g(FH(b))+"}}"},JH=function(a){if($APP.n($APP.k(a,"__xThemeRefs")))a=null;else{var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");
6
- c.textContent=IH(a.getAttribute("preset"));b.appendChild(c);b.appendChild(d);a.__xThemeRefs={style:c};a=void 0}return a},KH=function(){return null},LH=function(a){var b=$APP.k(a,"__xThemeRefs");return $APP.n(b)?b.style.textContent=IH(a.getAttribute("preset")):null},MH=function(a){return Object.defineProperty(a,"preset",{get:function(){return this.getAttribute("preset")},set:function(b){return b!=null?this.setAttribute("preset",""+$APP.S.g(b)):this.removeAttribute("preset")},enumerable:!0,configurable:!0})},
7
- NH=function(a,b){return EH(a,b)},PH=function(){return $APP.Lg("x-theme",new $APP.Q(null,5,[$APP.Cg,OH,$APP.Dg,JH,$APP.Eg,KH,$APP.Fg,LH,$APP.Jg,MH],null))},AH=new $APP.K(null,"light","light",1918998747),CH=new $APP.K(null,"dark","dark",1818973999);var OH=["preset"],QH=$APP.zf("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),RH=$APP.Pd("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
- SH=$APP.Pd(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),TH=$APP.Pd("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),UH=$APP.Pd("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),VH=$APP.Pd(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),WH=$APP.Pd("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
9
- XH=$APP.Pd("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),BH=new $APP.Q(null,2,[AH,$APP.Rf($APP.uc([QH,RH,SH,WH,TH,UH,VH,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
- "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),CH,$APP.Rf($APP.uc([XH,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
- "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),YH=new $APP.Q(null,2,[AH,$APP.Rf($APP.uc([QH,RH,SH,WH,TH,UH,VH,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
- "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),CH,$APP.Rf($APP.uc([XH,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
- "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),ZH=new $APP.Q(null,2,[AH,$APP.Rf($APP.uc([QH,RH,SH,WH,TH,UH,VH,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
- "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),CH,$APP.Rf($APP.uc([XH,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
- "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),$H=new $APP.Q(null,2,[AH,$APP.Rf($APP.uc([QH,RH,SH,WH,TH,UH,VH,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
- "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),CH,$APP.Rf($APP.uc([XH,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
- "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),aI=new $APP.Q(null,2,[AH,$APP.Rf($APP.uc([QH,SH,TH,UH,VH,$APP.zf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
- "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),CH,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
- "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),bI=new $APP.Q(null,2,[AH,$APP.Rf($APP.uc([QH,RH,SH,TH,UH,VH,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
- "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),CH,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
- "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),cI=new $APP.Q(null,2,[AH,$APP.Rf($APP.uc([RH,SH,TH,UH,VH,$APP.zf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
- "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),CH,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
- "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),dI=new $APP.Q(null,2,[AH,$APP.Rf($APP.uc([QH,RH,SH,WH,TH,UH,VH,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
- "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),CH,$APP.Rf($APP.uc([XH,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
- "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),HH=new $APP.Q(null,8,["default",BH,"ocean",YH,"forest",ZH,"sunset",$H,"neo-brutalist",aI,"aurora",bI,"mono-ai",cI,"warm-mineral",dI],null),DH=Object.create(null),GH=new $APP.R(null,new $APP.Q(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,"default",
26
- null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",NH);$APP.ha("baredom.exports.x_theme.init",PH);export const init=PH;export const registerPreset=NH;
2
+ var DJ=function(a,b){var c=zJ.g(AJ),d=BJ.g(AJ),e=b.light,f=b.dark;b=$APP.cg($APP.Bc([c,$APP.n(e)?$APP.hf.i($APP.Zd,function(){return function m(l){return new $APP.Ad(null,function(){for(;;){var q=$APP.t(l);if(q){if($APP.Vc(q)){var r=$APP.Db(q),v=$APP.z(r),x=$APP.Dd(v);a:{for(var y=0;;)if(y<v){var A=$APP.Fc(r,y);x.add(new $APP.De(null,2,5,$APP.Ee,[A,$APP.k(e,A)],null));y+=1}else{r=!0;break a}r=void 0}return r?$APP.Gd(x.aa(),m($APP.Eb(q))):$APP.Gd(x.aa(),null)}x=$APP.u(q);return $APP.xd(new $APP.De(null,
3
+ 2,5,$APP.Ee,[x,$APP.k(e,x)],null),m($APP.dc(q)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.cg($APP.Bc([d,$APP.n(f)?$APP.hf.i($APP.Zd,function(){return function m(l){return new $APP.Ad(null,function(){for(;;){var q=$APP.t(l);if(q){if($APP.Vc(q)){var r=$APP.Db(q),v=$APP.z(r),x=$APP.Dd(v);a:{for(var y=0;;)if(y<v){var A=$APP.Fc(r,y);x.add(new $APP.De(null,2,5,$APP.Ee,[A,$APP.k(f,A)],null));y+=1}else{r=!0;break a}r=void 0}return r?$APP.Gd(x.aa(),m($APP.Eb(q))):$APP.Gd(x.aa(),null)}x=$APP.u(q);
4
+ return $APP.xd(new $APP.De(null,2,5,$APP.Ee,[x,$APP.k(f,x)],null),m($APP.dc(q)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.fa(CJ,a,new $APP.N(null,2,[zJ,b,BJ,d],null))},EJ=function(a){var b=[];a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e),h=$APP.Hc(f,0,null);f=$APP.Hc(f,1,null);b.push(""+$APP.Q.g(h)+":"+$APP.Q.g(f)+";");e+=1}else if(a=$APP.t(a))$APP.Vc(a)?(d=$APP.Db(a),a=$APP.Eb(a),c=d,d=$APP.z(d)):(d=$APP.u(a),c=$APP.Hc(d,0,null),d=$APP.Hc(d,1,null),b.push(""+
5
+ $APP.Q.g(c)+":"+$APP.Q.g(d)+";"),a=$APP.w(a),c=null,d=0),e=0;else break;return b.join("")},HJ=function(a){a=typeof a!=="string"||!$APP.Zc(FJ,a)&&$APP.k(CJ,a)==null?"default":a;var b=$APP.k(CJ,a);$APP.n(b)||(a=$APP.C(GJ,a),b=$APP.n(a)?a:AJ);a=zJ.g(b);b=BJ.g(b);return":host{display:contents;"+$APP.Q.g(EJ(a))+"}@media(prefers-color-scheme:dark){:host{"+$APP.Q.g(EJ(b))+"}}"},IJ=function(a){if($APP.n($APP.k(a,"__xThemeRefs")))a=null;else{var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
6
+ d=document.createElement("slot");c.textContent=HJ(a.getAttribute("preset"));b.appendChild(c);b.appendChild(d);a.__xThemeRefs={style:c};a=void 0}return a},JJ=function(){return null},KJ=function(a){var b=$APP.k(a,"__xThemeRefs");return $APP.n(b)?b.style.textContent=HJ(a.getAttribute("preset")):null},LJ=function(a){return $APP.fh(a,"preset","preset")},MJ=function(a,b){return DJ(a,b)},OJ=function(){return $APP.Yg("x-theme",new $APP.N(null,5,[$APP.Pg,NJ,$APP.Qg,IJ,$APP.Rg,JJ,$APP.Sg,KJ,$APP.Wg,LJ],null))},
7
+ zJ=new $APP.F(null,"light","light",1918998747),BJ=new $APP.F(null,"dark","dark",1818973999);var NJ=["preset"],PJ=$APP.Lf("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),QJ=$APP.Yd("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
+ RJ=$APP.Yd(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),SJ=$APP.Yd("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),TJ=$APP.Yd("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),UJ=$APP.Yd(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),VJ=$APP.Yd("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
9
+ WJ=$APP.Yd("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),AJ=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,VJ,SJ,TJ,UJ,$APP.Lf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
+ "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),BJ,$APP.cg($APP.Bc([WJ,$APP.Lf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
+ "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),XJ=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,VJ,SJ,TJ,UJ,$APP.Lf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
+ "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),BJ,$APP.cg($APP.Bc([WJ,$APP.Lf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
+ "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),YJ=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,VJ,SJ,TJ,UJ,$APP.Lf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
+ "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),BJ,$APP.cg($APP.Bc([WJ,$APP.Lf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
+ "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),ZJ=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,VJ,SJ,TJ,UJ,$APP.Lf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
+ "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),BJ,$APP.cg($APP.Bc([WJ,$APP.Lf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
+ "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),$J=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,RJ,SJ,TJ,UJ,$APP.Lf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
+ "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),BJ,$APP.Lf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
+ "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),aK=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,SJ,TJ,UJ,$APP.Lf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
+ "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),BJ,$APP.Lf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
+ "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),bK=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([QJ,RJ,SJ,TJ,UJ,$APP.Lf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
+ "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),BJ,$APP.Lf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
+ "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),cK=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,VJ,SJ,TJ,UJ,$APP.Lf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
+ "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),BJ,$APP.cg($APP.Bc([WJ,$APP.Lf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
+ "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),GJ=new $APP.N(null,8,["default",AJ,"ocean",XJ,"forest",YJ,"sunset",ZJ,"neo-brutalist",$J,"aurora",aK,"mono-ai",bK,"warm-mineral",cK],null),CJ=Object.create(null),FJ=new $APP.O(null,new $APP.N(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,"default",
26
+ null],null),null);$APP.ca("baredom.exports.x_theme.registerPreset",MJ);$APP.ca("baredom.exports.x_theme.init",OJ);export const init=OJ;export const registerPreset=MJ;
@@ -1,24 +1,22 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Xn=function(a){a=$APP.D(Wn,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Bi},Zn=function(a){a=$APP.D(Yn,a);return $APP.n(a)?a:"pending"},bo=function(a){a=$APP.D($n,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:ao},co=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},eo=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.q(isNaN(a))&&a>=0?a:null):null},go=function(a,
3
- b){a=$APP.D(fo,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.D(fo,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Lm);return b},ho=function(a,b,c){a=Zn(a);c=c!=null?"Step "+$APP.S.g(c+1)+": ":null;return""+$APP.S.g(c)+$APP.S.g(typeof b==="string"&&$APP.N(b,"")?""+$APP.S.g(b)+" ":null)+"("+$APP.S.g(a)+")"},ro=function(a){var b=$APP.M(a),c=$APP.D(b,io);a=$APP.D(b,$APP.X);var d=$APP.D(b,$APP.sk),e=$APP.D(b,$APP.Hi),g=$APP.D(b,jo),h=$APP.D(b,$APP.Vi),l=$APP.D(b,ko),m=$APP.D(b,
4
- $APP.kj),p=$APP.D(b,lo),r=$APP.D(b,$APP.pi),v=$APP.D(b,$APP.Mk);b=$APP.D(b,$APP.Vj);var x=Xn(m),y=co(b),A=$APP.n($APP.n(r)?y==null:r)?$APP.un:y!=null?$APP.Wl:$APP.Di;m=function(){var C=A instanceof $APP.K?A.pa:null;switch(C){case "default":return C=$APP.D(mo,x),$APP.n(C)?C:$APP.D(mo,$APP.Bi);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.S.g(C));}}();c=eo(c);d=go(l,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.zf([$APP.Ji,no,oo,jo,lo,$APP.hl,$APP.Pi,
5
- $APP.Rk,$APP.T,po,$APP.Jk,$APP.X,qo],[bo(h),c,m,$APP.F(g),$APP.F(p),$APP.B.i(A,$APP.Wl)?y:null,v,x,e,ho(x,e,c),A,$APP.F(a),d])},so=function(a){a=$APP.M(a);a=$APP.D(a,$APP.X);return $APP.q(a)},Co=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"),g=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("div"),m=
6
- document.createElement("div"),p=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),C=document.createElement("slot"),E=document.createElement("div"),H=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");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);l.setAttribute("class","track-col");m.setAttribute("class","marker");p.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");p.appendChild(r);m.appendChild(p);v.setAttribute("class","connector");l.appendChild(m);l.appendChild(v);x.setAttribute("class","content-col");y.setAttribute("class",
8
- "title");A.setAttribute("class","body");A.appendChild(C);E.setAttribute("class","actions");H.setAttribute("name","actions");E.appendChild(H);x.appendChild(y);x.appendChild(A);x.appendChild(E);d.appendChild(e);d.appendChild(l);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.zf([$APP.Ji,to,$APP.il,$APP.on,uo,vo,$APP.bn,wo,$APP.Zi,xo,$APP.ll,yo,zo,Ao,$APP.Mj,Bo],[v,h,m,r,e,l,A,C,b,H,y,x,d,E,p,g]);a.__xTimelineItemRefs=b;return $APP.k(a,"__xTimelineItemRefs")},Do=function(a){return ro($APP.zf([$APP.sk,
9
- $APP.Hi,jo,$APP.Vi,ko,$APP.kj,lo,$APP.pi,$APP.Mk,$APP.Vj,io,$APP.X],[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")]))},Go=function(a){var b=Do(a);if($APP.N($APP.k(a,"__xTimelineItemModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.T),
10
- d=$APP.D(b,$APP.Pi),e=$APP.D(b,$APP.Rk),g=$APP.D(b,qo),h=$APP.D(b,$APP.X),l=$APP.D(b,oo),m=$APP.D(b,po),p=Co(a),r=$APP.M(p);p=$APP.D(r,to);var v=$APP.D(r,$APP.il),x=$APP.D(r,$APP.ll);r=$APP.D(r,$APP.on);a.setAttribute("data-status",Zn(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.Yf(g));a.__xTimelineItemSelfPos=null;$APP.B.i($APP.Ji.g(b),Eo)?a.setAttribute("data-connector","dashed"):$APP.B.i($APP.Ji.g(b),Fo)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");
11
- a.setAttribute("role","listitem");$APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.N(d,"")?d:$APP.N(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);p.textContent=c;r.textContent=l!=null?l:"";$APP.N(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},Ho=function(a){$APP.n($APP.k(a,"__xTimelineItemEntered"))||
12
- (a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.B.i(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},Io=function(a){var b=$APP.k(a,"__xTimelineItemModel");var c=$APP.n(b)?b:Do(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.Rk);e=$APP.D(e,$APP.T);c=new $APP.Q(null,2,[$APP.Rk,Zn(c),$APP.T,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.Zh(c),bubbles:!0,
13
- composed:!0,cancelable:!0}))},Jo=function(a){function b(d){var e=d.key;if($APP.B.i(e,"Enter")||$APP.B.i(e," "))e=$APP.k(a,"__xTimelineItemModel"),e=$APP.n(e)?e:Do(a),so(e)&&(d.preventDefault(),Io(a));return null}function c(){var d=$APP.k(a,"__xTimelineItemModel");d=$APP.n(d)?d:Do(a);so(d)&&Io(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Ko=function(a){var b=$APP.k(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
- $APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},Lo=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.N(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("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.N(b,""):b)?this.setAttribute("title",""+$APP.S.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});Object.defineProperty(a,"status",{get:function(){var b=this.getAttribute("status");return $APP.n(b)?b:"pending"},set:function(b){return $APP.n(b)?this.setAttribute("status",""+$APP.S.g(b)):this.removeAttribute("status")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},
16
- set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.S.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"connector",{get:function(){var b=this.getAttribute("connector");return $APP.n(b)?b:"solid"},set:function(b){return $APP.n(b)?this.setAttribute("connector",""+$APP.S.g(b)):this.removeAttribute("connector")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){var b=this.getAttribute("position");return $APP.n(b)?
17
- b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},Mo=function(a){Co(a);Ko(a);Jo(a);var b=a.getAttribute("data-position");$APP.n(b)&&(a.__xTimelineItemParentPos=b);Go(a);
18
- Ho(a);b=$APP.k(a,"__xTimelineItemModel");var c=$APP.n(b)?b:Do(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.Rk);var g=$APP.D(e,$APP.T),h=$APP.D(e,qo);e=$APP.D(e,$APP.X);c=new $APP.Q(null,4,[$APP.Rk,Zn(c),$APP.T,g,$APP.vn,$APP.Yf(h),$APP.kk,$APP.F(e)],null);b.call(a,new d("x-timeline-item-connected",{detail:$APP.Zh(c),bubbles:!0,composed:!0,cancelable:!1}));return null},No=function(a){var b=$APP.k(a,"__xTimelineItemModel");var c=$APP.n(b)?b:Do(a);Ko(a);a.__xTimelineItemEntered=
19
- null;a=document;b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.Rk);e=$APP.D(e,$APP.T);c=new $APP.Q(null,2,[$APP.Rk,Zn(c),$APP.T,e],null);b.call(a,new d("x-timeline-item-disconnected",{detail:$APP.Zh(c),bubbles:!1,composed:!1,cancelable:!1}));return null},Oo=function(a,b,c,d){if(c=$APP.N(c,d))c=$APP.B.i(b,"data-position"),c=!$APP.n(c?$APP.k(a,"__xTimelineItemSelfPos"):c);c&&($APP.B.i(b,"data-position")&&(a.__xTimelineItemParentPos=d),Go(a));return null},Qo=function(){return $APP.Lg("x-timeline-item",
20
- new $APP.Q(null,5,[$APP.Cg,Po,$APP.Dg,Mo,$APP.Eg,No,$APP.Fg,Oo,$APP.Jg,Lo],null))},vo=new $APP.K(null,"track-col","track-col",629248272),xo=new $APP.K(null,"actions-slot","actions-slot",1424248629),qo=new $APP.K(null,"effective-position","effective-position",840072317),uo=new $APP.K(null,"label-col","label-col",1883390160),to=new $APP.K(null,"label-text","label-text",-1566972381),jo=new $APP.K(null,"data-striped?","data-striped?",906911587),Ao=new $APP.K(null,"actions-el","actions-el",1486248509),
21
- yo=new $APP.K(null,"content-col","content-col",767367449),Eo=new $APP.K(null,"dashed","dashed",-1449249319),zo=new $APP.K(null,"item-div","item-div",1630512700),po=new $APP.K(null,"marker-aria","marker-aria",-353426855),oo=new $APP.K(null,"marker-icon","marker-icon",424963779),ao=new $APP.K(null,"solid","solid",-2023773691),wo=new $APP.K(null,"default-slot","default-slot",-1145647151),lo=new $APP.K(null,"data-last?","data-last?",-1110326839),ko=new $APP.K(null,"data-position-raw","data-position-raw",
22
- 256144356),io=new $APP.K(null,"data-index-raw","data-index-raw",491574874),no=new $APP.K(null,"data-index","data-index",1161508385),Bo=new $APP.K(null,"label-slot","label-slot",-1755862561),Fo=new $APP.K(null,"none","none",1333468478);var Po="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
23
- $APP.Pd(["x-timeline-item-connected",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.Rk,$APP.Y,$APP.T,$APP.Y,$APP.vn,$APP.Y,$APP.kk,$APP.uk],null),$APP.Km,!1],null),"x-timeline-item-disconnected",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Rk,$APP.Y,$APP.T,$APP.Y],null),$APP.Km,!1],null),"x-timeline-item-click",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Rk,$APP.Y,$APP.T,$APP.Y],null),$APP.Km,!0],null)]);
24
- var Wn=new $APP.Q(null,5,["pending",$APP.Bi,"active",$APP.ck,"complete",$APP.gn,"error",$APP.Wi,"warning",$APP.Im],null),Yn=new $APP.Q(null,5,[$APP.Bi,"pending",$APP.ck,"active",$APP.gn,"complete",$APP.Wi,"error",$APP.Im,"warning"],null),mo=new $APP.Q(null,5,[$APP.Bi,"○",$APP.ck,"●",$APP.gn,"✓",$APP.Wi,"✕",$APP.Im,"!"],null),$n=new $APP.Q(null,3,["solid",ao,"dashed",Eo,"none",Fo],null),fo=new $APP.Q(null,2,["start",$APP.Lm,"end",$APP.cj],null);$APP.ha("baredom.exports.x_timeline_item.init",Qo);export const init=Qo;
2
+ var Uo=function(a){a=$APP.C(To,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.vj},Wo=function(a){a=$APP.C(Vo,a);return $APP.n(a)?a:"pending"},Zo=function(a){a=$APP.C(Xo,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Yo},$o=function(a){return typeof a==="string"?(a=a.trim(),$APP.M(a,"")&&$APP.M(a.toLowerCase(),"none")?a:null):null},ap=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},cp=function(a,
3
+ b){a=$APP.C(bp,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(bp,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Gn);return b},dp=function(a,b,c){a=Wo(a);c=c!=null?"Step "+$APP.Q.g(c+1)+": ":null;return""+$APP.Q.g(c)+$APP.Q.g(typeof b==="string"&&$APP.M(b,"")?""+$APP.Q.g(b)+" ":null)+"("+$APP.Q.g(a)+")"},np=function(a){var b=$APP.J(a),c=$APP.C(b,ep);a=$APP.C(b,$APP.Y);var d=$APP.C(b,$APP.il),e=$APP.C(b,$APP.Ch),f=$APP.C(b,fp),h=$APP.C(b,$APP.Mj),l=$APP.C(b,gp),m=$APP.C(b,
4
+ $APP.bk),q=$APP.C(b,hp),r=$APP.C(b,$APP.jj),v=$APP.C(b,$APP.Cl);b=$APP.C(b,$APP.Pk);var x=Uo(m),y=$o(b),A=$APP.n($APP.n(r)?y==null:r)?$APP.oo:y!=null?$APP.Qm:$APP.ih;m=function(){var D=A instanceof $APP.F?A.qa:null;switch(D){case "default":return D=$APP.C(ip,x),$APP.n(D)?D:$APP.C(ip,$APP.vj);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.Q.g(D));}}();c=ap(c);d=cp(l,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.Lf([$APP.Aj,jp,kp,fp,hp,$APP.Xl,$APP.Gj,
5
+ $APP.Hl,$APP.X,lp,$APP.zl,$APP.Y,mp],[Zo(h),c,m,$APP.E(f),$APP.E(q),$APP.B.i(A,$APP.Qm)?y:null,v,x,e,dp(x,e,c),A,$APP.E(a),d])},op=function(a){a=$APP.J(a);a=$APP.C(a,$APP.Y);return $APP.p(a)},yp=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"),m=
6
+ document.createElement("div"),q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),D=document.createElement("slot"),G=document.createElement("div"),I=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");y.setAttribute("class",
8
+ "title");A.setAttribute("class","body");A.appendChild(D);G.setAttribute("class","actions");I.setAttribute("name","actions");G.appendChild(I);x.appendChild(y);x.appendChild(A);x.appendChild(G);d.appendChild(e);d.appendChild(l);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.Lf([$APP.Aj,pp,$APP.Zl,$APP.io,qp,rp,$APP.Xn,sp,$APP.Uh,tp,$APP.cm,up,vp,wp,$APP.Hk,xp],[v,h,m,r,e,l,A,D,b,I,y,x,d,G,q,f]);a.__xTimelineItemRefs=b;return $APP.k(a,"__xTimelineItemRefs")},zp=function(a){return np($APP.Lf([$APP.il,
9
+ $APP.Ch,fp,$APP.Mj,gp,$APP.bk,hp,$APP.jj,$APP.Cl,$APP.Pk,ep,$APP.Y],[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")]))},Cp=function(a){var b=zp(a);if($APP.M($APP.k(a,"__xTimelineItemModel"),b)){b=$APP.J(b);var c=$APP.C(b,$APP.X),
10
+ d=$APP.C(b,$APP.Gj),e=$APP.C(b,$APP.Hl),f=$APP.C(b,mp),h=$APP.C(b,$APP.Y),l=$APP.C(b,kp),m=$APP.C(b,lp),q=yp(a),r=$APP.J(q);q=$APP.C(r,pp);var v=$APP.C(r,$APP.Zl),x=$APP.C(r,$APP.cm);r=$APP.C(r,$APP.io);a.setAttribute("data-status",Wo(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.jg(f));a.__xTimelineItemSelfPos=null;$APP.B.i($APP.Aj.g(b),Ap)?a.setAttribute("data-connector","dashed"):$APP.B.i($APP.Aj.g(b),Bp)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");
11
+ a.setAttribute("role","listitem");$APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.M(d,"")?d:$APP.M(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=l!=null?l:"";$APP.M(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},Dp=function(a){$APP.n($APP.k(a,"__xTimelineItemEntered"))||
12
+ (a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.B.i(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},Ep=function(a){var b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:zp(a);var c=$APP.J(b);b=$APP.C(c,$APP.Hl);c=$APP.C(c,$APP.X);b=new $APP.N(null,2,[$APP.Hl,Wo(b),$APP.X,c],null);$APP.ch(a,"x-timeline-item-click",$APP.Xi(b))},Fp=function(a){function b(d){var e=d.key;if($APP.B.i(e,
13
+ "Enter")||$APP.B.i(e," "))e=$APP.k(a,"__xTimelineItemModel"),e=$APP.n(e)?e:zp(a),op(e)&&(d.preventDefault(),Ep(a));return null}function c(){var d=$APP.k(a,"__xTimelineItemModel");d=$APP.n(d)?d:zp(a);op(d)&&Ep(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.fa(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Gp=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",
14
+ c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},Hp=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.M(b,""):b)?this.setAttribute("label",""+$APP.Q.g(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)?
15
+ $APP.M(b,""):b)?this.setAttribute("title",""+$APP.Q.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});$APP.eh(a,"status","status","pending");$APP.fh(a,"icon","icon");$APP.eh(a,"connector","connector","solid");$APP.eh(a,"position","position","start");return $APP.dh(a,"disabled","disabled")},Ip=function(a){yp(a);Gp(a);Fp(a);var b=a.getAttribute("data-position");$APP.n(b)&&(a.__xTimelineItemParentPos=b);Cp(a);Dp(a);b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:zp(a);var c=$APP.J(b);
16
+ b=$APP.C(c,$APP.Hl);var d=$APP.C(c,$APP.X),e=$APP.C(c,mp);c=$APP.C(c,$APP.Y);b=new $APP.N(null,4,[$APP.Hl,Wo(b),$APP.X,d,$APP.po,$APP.jg(e),$APP.al,$APP.E(c)],null);$APP.P(a,"x-timeline-item-connected",$APP.Xi(b));return null},Jp=function(a){var b=$APP.k(a,"__xTimelineItemModel");var c=$APP.n(b)?b:zp(a);Gp(a);a.__xTimelineItemEntered=null;a=document;b=a.dispatchEvent;var d=CustomEvent,e=$APP.J(c);c=$APP.C(e,$APP.Hl);e=$APP.C(e,$APP.X);c=new $APP.N(null,2,[$APP.Hl,Wo(c),$APP.X,e],null);b.call(a,new d("x-timeline-item-disconnected",
17
+ {detail:$APP.Xi(c),bubbles:!1,composed:!1,cancelable:!1}));return null},Kp=function(a,b,c,d){if(c=$APP.M(c,d))c=$APP.B.i(b,"data-position"),c=!$APP.n(c?$APP.k(a,"__xTimelineItemSelfPos"):c);c&&($APP.B.i(b,"data-position")&&(a.__xTimelineItemParentPos=d),Cp(a));return null},Mp=function(){return $APP.Yg("x-timeline-item",new $APP.N(null,5,[$APP.Pg,Lp,$APP.Qg,Ip,$APP.Rg,Jp,$APP.Sg,Kp,$APP.Wg,Hp],null))},rp=new $APP.F(null,"track-col","track-col",629248272),tp=new $APP.F(null,"actions-slot","actions-slot",
18
+ 1424248629),mp=new $APP.F(null,"effective-position","effective-position",840072317),qp=new $APP.F(null,"label-col","label-col",1883390160),pp=new $APP.F(null,"label-text","label-text",-1566972381),fp=new $APP.F(null,"data-striped?","data-striped?",906911587),wp=new $APP.F(null,"actions-el","actions-el",1486248509),up=new $APP.F(null,"content-col","content-col",767367449),Ap=new $APP.F(null,"dashed","dashed",-1449249319),vp=new $APP.F(null,"item-div","item-div",1630512700),lp=new $APP.F(null,"marker-aria",
19
+ "marker-aria",-353426855),kp=new $APP.F(null,"marker-icon","marker-icon",424963779),Yo=new $APP.F(null,"solid","solid",-2023773691),sp=new $APP.F(null,"default-slot","default-slot",-1145647151),hp=new $APP.F(null,"data-last?","data-last?",-1110326839),gp=new $APP.F(null,"data-position-raw","data-position-raw",256144356),ep=new $APP.F(null,"data-index-raw","data-index-raw",491574874),jp=new $APP.F(null,"data-index","data-index",1161508385),xp=new $APP.F(null,"label-slot","label-slot",-1755862561),
20
+ Bp=new $APP.F(null,"none","none",1333468478);var Lp="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
21
+ $APP.Yd(["x-timeline-item-connected",new $APP.N(null,2,[$APP.Z,new $APP.N(null,4,[$APP.Hl,$APP.U,$APP.X,$APP.U,$APP.po,$APP.U,$APP.al,$APP.T],null),$APP.Fn,!1],null),"x-timeline-item-disconnected",new $APP.N(null,2,[$APP.Z,new $APP.N(null,2,[$APP.Hl,$APP.U,$APP.X,$APP.U],null),$APP.Fn,!1],null),"x-timeline-item-click",new $APP.N(null,2,[$APP.Z,new $APP.N(null,2,[$APP.Hl,$APP.U,$APP.X,$APP.U],null),$APP.Fn,!0],null)]);
22
+ var To=new $APP.N(null,5,["pending",$APP.vj,"active",$APP.Wk,"complete",$APP.bo,"error",$APP.Nj,"warning",$APP.Cn],null),Vo=new $APP.N(null,5,[$APP.vj,"pending",$APP.Wk,"active",$APP.bo,"complete",$APP.Nj,"error",$APP.Cn,"warning"],null),ip=new $APP.N(null,5,[$APP.vj,"○",$APP.Wk,"●",$APP.bo,"✓",$APP.Nj,"✕",$APP.Cn,"!"],null),Xo=new $APP.N(null,3,["solid",Yo,"dashed",Ap,"none",Bp],null),bp=new $APP.N(null,2,["start",$APP.Gn,"end",$APP.Tj],null);$APP.ca("baredom.exports.x_timeline_item.init",Mp);export const init=Mp;
@@ -1,10 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var c1=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(b1,a)?a:"start"},d1=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.ed(b,2)===0?"start":"end";default:return"start"}},f1=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.Q(null,3,[$APP.Zi,b,e1,d,$APP.Xl,e],null);return $APP.k(a,"__xTimelineRefs")},g1=function(a){a=new $APP.Q(null,3,[$APP.Hi,a.getAttribute("label"),$APP.sk,a.getAttribute("position"),$APP.tl,a.hasAttribute("striped")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Hi);var c=$APP.D(b,$APP.sk);b=$APP.D(b,$APP.tl);return new $APP.Q(null,3,[$APP.T,$APP.n(a)?a:"",$APP.vn,c1(c),
4
- $APP.tl,$APP.F(b)],null)},h1=function(a){var b=g1(a);if($APP.N($APP.k(a,"__xTimelineModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.T),d=f1(a);d=$APP.M(d);d=$APP.D(d,e1);a.setAttribute("role","list");$APP.N(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.N(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},i1=function(a){var b=$APP.k(a,"__xTimelineModel");b=$APP.n(b)?b:g1(a);var c=$APP.M(b);b=$APP.D(c,$APP.vn);
5
- c=$APP.D(c,$APP.tl);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.B.i(e,d-1);g.setAttribute("data-index",""+$APP.S.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",d1(b,e));$APP.n(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},j1=function(a){function b(){$APP.n(a.isConnected)&&i1(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
- e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.n(isNaN(g))?null:g):g=null;var h=$APP.k(e,"status");e=$APP.k(e,"label");e=$APP.Zh(new $APP.Q(null,3,[$APP.wi,$APP.n(g)?g:0,$APP.Rk,$APP.n(h)?h:"",$APP.T,$APP.n(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){i1(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
- b);$APP.ja(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},k1=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},l1=function(a){Object.defineProperty(a,
8
- "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return c1(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});return Object.defineProperty(a,
9
- "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},m1=function(a){f1(a);h1(a);k1(a);j1(a);i1(a);return null},n1=function(a){k1(a);return null},o1=function(a,b,c,d){$APP.N(c,d)&&(h1(a),i1(a));return null},q1=function(){return $APP.Lg("x-timeline",new $APP.Q(null,5,[$APP.Cg,p1,$APP.Dg,m1,$APP.Eg,n1,$APP.Fg,o1,$APP.Jg,l1],null))},e1=new $APP.K(null,"label-div",
10
- "label-div",1505730697);var p1=["label","position","striped"];$APP.Pd(["x-timeline-select",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.wi,$APP.W,$APP.Rk,$APP.Y,$APP.T,$APP.Y],null),$APP.Km,!1],null)]);var b1=new $APP.R(null,new $APP.Q(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",q1);export const init=q1;
2
+ var s3=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Zc(r3,a)?a:"start"},t3=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.od(b,2)===0?"start":"end";default:return"start"}},v3=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.N(null,3,[$APP.Uh,b,u3,d,$APP.Rm,e],null);return $APP.k(a,"__xTimelineRefs")},w3=function(a){a=new $APP.N(null,3,[$APP.Ch,a.getAttribute("label"),$APP.il,a.getAttribute("position"),$APP.km,a.hasAttribute("striped")],null);var b=$APP.J(a);a=$APP.C(b,$APP.Ch);var c=$APP.C(b,$APP.il);b=$APP.C(b,$APP.km);return new $APP.N(null,3,[$APP.X,$APP.n(a)?a:"",$APP.po,s3(c),
4
+ $APP.km,$APP.E(b)],null)},x3=function(a){var b=w3(a);if($APP.M($APP.k(a,"__xTimelineModel"),b)){b=$APP.J(b);var c=$APP.C(b,$APP.X),d=v3(a);d=$APP.J(d);d=$APP.C(d,u3);a.setAttribute("role","list");$APP.M(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.M(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},y3=function(a){var b=$APP.k(a,"__xTimelineModel");b=$APP.n(b)?b:w3(a);var c=$APP.J(b);b=$APP.C(c,$APP.po);
5
+ c=$APP.C(c,$APP.km);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.B.i(e,d-1);f.setAttribute("data-index",""+$APP.Q.g(e));h?f.setAttribute("data-last",""):f.removeAttribute("data-last");f.setAttribute("data-position",t3(b,e));$APP.n(c)?f.setAttribute("data-striped",""):f.removeAttribute("data-striped");e+=1}else break},z3=function(a){function b(){$APP.n(a.isConnected)&&y3(a);return null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");
6
+ e=e.detail;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.P(a,"x-timeline-select",$APP.Xi(new $APP.N(null,3,[$APP.qj,$APP.n(f)?f:0,$APP.Hl,$APP.n(h)?h:"",$APP.X,$APP.n(e)?e:""],null)));return null}function d(){y3(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.fa(a,"__xTimelineHandlers",{"item-connected":d,
7
+ "item-click":c,"item-disconnected-doc":b})},A3=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},B3=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");
8
+ return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("label",""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return s3(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.Q.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});return $APP.dh(a,"striped","striped")},C3=function(a){v3(a);x3(a);A3(a);z3(a);y3(a);
9
+ return null},D3=function(a){A3(a);return null},E3=function(a,b,c,d){$APP.M(c,d)&&(x3(a),y3(a));return null},G3=function(){return $APP.Yg("x-timeline",new $APP.N(null,5,[$APP.Pg,F3,$APP.Qg,C3,$APP.Rg,D3,$APP.Sg,E3,$APP.Wg,B3],null))},u3=new $APP.F(null,"label-div","label-div",1505730697);var F3=["label","position","striped"];$APP.Yd(["x-timeline-select",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.qj,$APP.V,$APP.Hl,$APP.U,$APP.X,$APP.U],null),$APP.Fn,!1],null)]);var r3=new $APP.O(null,new $APP.N(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ca("baredom.exports.x_timeline.init",G3);export const init=G3;
package/dist/x-toast.js CHANGED
@@ -1,26 +1,24 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var bs=function(a){a=$APP.D(as,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Hl},ds=function(a){a=$APP.D(cs,a);return $APP.n(a)?a:"info"},es=function(a){return a==null?!0:$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},fs=function(a){return a==null?!1:$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},gs=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.q(isNaN(a))&&a>0?a:null):null},hs=function(a){return typeof a==="string"?(a=
3
- a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},ks=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.Tk),d=$APP.D(b,$APP.Tl);a=$APP.D(b,$APP.Jj);var e=$APP.D(b,$APP.fm),g=$APP.D(b,$APP.Oi),h=$APP.D(b,$APP.pi),l=$APP.D(b,is),m=$APP.D(b,$APP.Qi);b=$APP.D(b,$APP.Vj);m=bs(m);b=hs(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.un:b!=null?$APP.Wl:$APP.Di;return $APP.zf([js,$APP.fj,$APP.Z,$APP.hl,$APP.Jk,$APP.X,$APP.Tm,$APP.Tk,$APP.Tl],[fs(l),es(a),m,$APP.B.i(h,$APP.Wl)?b:null,h,$APP.F(e),gs(g),function(){var p=
4
- typeof c==="string"?c.trim():null;return $APP.n(p)?p:""}(),function(){var p=typeof d==="string"?d.trim():null;return $APP.n(p)?p:""}()])},ls=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.fj);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.q(b):a},ms=function(a,b){var c=$APP.M(a);a=$APP.D(c,$APP.Z);var d=$APP.D(c,$APP.Tl);c=$APP.D(c,$APP.Tk);return new $APP.Q(null,4,[$APP.Z,ds(a),$APP.hj,b,$APP.Tl,d,$APP.Tk,c],null)},ns=function(a){var b=$APP.M(a);a=$APP.D(b,js);b=$APP.D(b,$APP.Tm);return $APP.F($APP.n(a)?
5
- b!=null&&b>0:a)},ss=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"),g=document.createElement("span"),h=document.createElement("slot"),l=document.createElement("span"),m=document.createElement("div"),p=document.createElement("span"),r=document.createElement("span"),v=document.createElement("button"),x=document.createElement("span"),y=document.createElement("div"),
2
+ var Xs=function(a){a=$APP.C(Ws,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Am},Zs=function(a){a=$APP.C(Ys,a);return $APP.n(a)?a:"info"},$s=function(a){return a==null?!0:$APP.M((""+$APP.Q.g(a)).trim().toLowerCase(),"false")},at=function(a){return a==null?!1:$APP.M((""+$APP.Q.g(a)).trim().toLowerCase(),"false")},bt=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},ct=function(a){return typeof a==="string"?(a=
3
+ a.trim(),$APP.M(a,"")&&$APP.M(a.toLowerCase(),"none")?a:null):null},ft=function(a){var b=$APP.J(a),c=$APP.C(b,$APP.Jl),d=$APP.C(b,$APP.Nm);a=$APP.C(b,$APP.Ek);var e=$APP.C(b,$APP.Fh),f=$APP.C(b,$APP.Fj),h=$APP.C(b,$APP.jj),l=$APP.C(b,dt),m=$APP.C(b,$APP.Hj);b=$APP.C(b,$APP.Pk);m=Xs(m);b=ct(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.oo:b!=null?$APP.Qm:$APP.ih;return $APP.Lf([et,$APP.Wj,$APP.R,$APP.Xl,$APP.zl,$APP.Y,$APP.On,$APP.Jl,$APP.Nm],[at(l),$s(a),m,$APP.B.i(h,$APP.Qm)?b:null,h,$APP.E(e),bt(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:""}()])},gt=function(a){var b=$APP.J(a);a=$APP.C(b,$APP.Wj);b=$APP.C(b,$APP.Y);return $APP.n(a)?$APP.p(b):a},ht=function(a,b){var c=$APP.J(a);a=$APP.C(c,$APP.R);var d=$APP.C(c,$APP.Nm);c=$APP.C(c,$APP.Jl);return new $APP.N(null,4,[$APP.R,Zs(a),$APP.Yj,b,$APP.Nm,d,$APP.Jl,c],null)},it=function(a){var b=$APP.J(a);a=$APP.C(b,et);b=$APP.C(b,$APP.On);return $APP.E($APP.n(a)?
5
+ b!=null&&b>0:a)},nt=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"),y=document.createElement("div"),
6
6
  A=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");g.setAttribute("part","icon");g.setAttribute("aria-hidden","true");h.setAttribute("name","icon");l.setAttribute("part","default-icon");h.appendChild(l);g.appendChild(h);m.setAttribute("part","body");p.setAttribute("part","heading");r.setAttribute("part","message");m.appendChild(p);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(g);e.appendChild(m);e.appendChild(v);y.setAttribute("part","progress");A.setAttribute("part","progress-bar");y.appendChild(A);d.appendChild(e);d.appendChild(y);b.appendChild(c);b.appendChild(d);b=$APP.zf([os,$APP.on,ps,$APP.jl,$APP.bn,qs,$APP.Zi,$APP.Zj,$APP.Bj,$APP.gi,$APP.Mj,rs],[A,l,r,v,m,e,b,d,y,g,h,p]);a.__xToastRefs=b;return $APP.k(a,"__xToastRefs")},ts=function(a){return ks($APP.zf([$APP.Jj,$APP.fm,$APP.Oi,$APP.pi,is,$APP.Vj,$APP.Qi,
9
- $APP.Tk,$APP.Tl],[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")]))},vs=function(a){var b=ts(a);if($APP.N($APP.k(a,"__xToastModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.Z),d=$APP.D(b,$APP.Tl),e=$APP.D(b,$APP.Tk),g=$APP.D(b,$APP.Jk),h=$APP.D(b,$APP.hl),l=$APP.D(b,$APP.fj),m=$APP.D(b,$APP.X),p=$APP.D(b,$APP.Tm),
10
- r=ss(a),v=$APP.M(r),x=$APP.D(v,$APP.Mj);r=$APP.D(v,rs);var y=$APP.D(v,os),A=$APP.D(v,$APP.on),C=$APP.D(v,ps),E=$APP.D(v,$APP.jl),H=$APP.D(v,$APP.Zj),G=$APP.D(v,$APP.Bj);v=$APP.D(v,$APP.gi);x=$APP.n(x)?x.assignedNodes().length>0:null;$APP.B.i(g,$APP.Wl)||(h=$APP.D(us,c),h=$APP.n(h)?h:$APP.D(us,$APP.Hl));g=$APP.q(x)&&$APP.B.i(g,$APP.un);x=ns(b);a.setAttribute("data-type",ds(c));var J=H.setAttribute;c=$APP.B.i(c,$APP.Im)||$APP.B.i(c,$APP.Wi)?"alert":"status";J.call(H,"role",c);r.textContent=d;r.style.display=
11
- $APP.B.i(d,"")?"none":"";C.textContent=e;g?(A.textContent="",v.style.display="none"):(A.textContent=h,v.style.display="inline");$APP.n(l)?(E.disabled=$APP.F(m),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");x?(G.style.display="block",y.style.setProperty("--x-toast-timeout",""+$APP.S.g(p)+"ms")):G.style.display="none";d=$APP.n(l)?$APP.q(m):l;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.n(d)?a.setAttribute("aria-keyshortcuts",
12
- "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},ws=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},xs=function(a){a=typeof a==="string"?a.trim():"";return $APP.B.i(a,"")||$APP.B.i(a,"0")||$APP.B.i(a,"0ms")||$APP.B.i(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*
13
- a))):0},ys=function(a){var b=window.getComputedStyle(a);a=xs(b.getPropertyValue("--x-toast-exit-duration"));b=xs(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},zs=function(a){var b=$APP.k(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},Bs=function(a){zs(a);var b=function(){var c=$APP.k(a,"__xToastModel");return $APP.n(c)?c:ts(a)}();$APP.n(function(){var c=ls(b);return $APP.n(c)?typeof $APP.Tm.g(b)==="number"&&$APP.q($APP.k(a,"__xToastExiting")):c}())&&
14
- $APP.ja(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.q($APP.k(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ts(a)}();if($APP.n(ls(c)))return c=$APP.Zh(ms(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?As.g?As.g(a):As.call(null,a):null}return null},$APP.Tm.g(b)));return null},Cs=function(a){var b=
15
- $APP.k(a,"__xToastModel");$APP.n($APP.n(b)?ns(b):b)&&a.setAttribute("data-progress-active","");return Bs(a)},Ds=function(a){if(!$APP.n($APP.k(a,"__xToastEntered")))if(a.__xToastEntered=!0,a.setAttribute("data-entering",""),ws())a.removeAttribute("data-entering"),Cs(a);else{var b=ss(a);b=$APP.M(b);var c=$APP.D(b,$APP.Zj);c.addEventListener("animationend",function g(e){return $APP.B.i(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering"),Cs(a)):null})}},As=function(a){if(!$APP.n($APP.k(a,
16
- "__xToastExiting"))){a.__xToastExiting=!0;zs(a);a.removeAttribute("data-entering");a.removeAttribute("data-progress-active");var b=ys(a);if(b===0||ws())a.remove();else{var c=ss(a);c=$APP.M(c);var d=$APP.D(c,$APP.Zj),e=function l(h){return $APP.B.i(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};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);
17
- $APP.ja(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.k(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},Es=function(a,b){var c=$APP.k(a,"__xToastModel");c=$APP.n(c)?c:ts(a);b=$APP.Zh(ms(c,b));b=new CustomEvent("x-toast-dismiss",{detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.n(b)&&As(a)},Fs=function(a,b){var c=function(){var d=$APP.k(a,"__xToastModel");
18
- return $APP.n(d)?d:ts(a)}();$APP.n(function(){var d=ls(c);return $APP.n(d)?$APP.q($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),Es(a,"button"));return null},Gs=function(a,b){if($APP.B.i(b.key,"Escape")){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ts(a)}();$APP.n(function(){var d=ls(c);return $APP.n(d)?$APP.q($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),Es(a,"keyboard"))}return null},Hs=function(a){function b(e){return Gs(a,e)}function c(e){return Fs(a,
19
- e)}var d=ss(a);d=$APP.M(d);$APP.D(d,$APP.jl).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xToastHandlers",{click:c,keydown:b})},Is=function(a){zs(a);var b=$APP.k(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xToastExitTimer=null);b=$APP.k(a,"__xToastHandlers");var c=$APP.k(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.jl.g(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",
20
- b)}a.__xToastHandlers=null},Js=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"info"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.S.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"heading",{get:function(){var b=this.getAttribute("heading");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("heading",""+$APP.S.g(b)):this.removeAttribute("heading")},
21
- enumerable:!0,configurable:!0});Object.defineProperty(a,"message",{get:function(){var b=this.getAttribute("message");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("message",""+$APP.S.g(b)):this.removeAttribute("message")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.S.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,
22
- "dismissible",{get:function(){return es(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return gs(this.getAttribute("timeout-ms"))},
23
- set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return fs(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Ks=function(a){return a.dismiss=function(b){var c=$APP.q($APP.k(this,"__xToastExiting"));$APP.n(c?this.isConnected:
24
- c)&&Es(this,typeof b==="string"?b:"api");return null}},Ls=function(a){ss(a);Is(a);Hs(a);vs(a);Ds(a);return null},Ms=function(a){Is(a);return null},Ns=function(a,b,c,d){$APP.N(c,d)&&(vs(a),$APP.n(a.isConnected)&&Bs(a));return null},Ps=function(){return $APP.Lg("x-toast",new $APP.Q(null,5,[$APP.Cg,Os,$APP.Dg,Ls,$APP.Eg,Ms,$APP.Fg,Ns,$APP.Jg,function(a){Js(a);return Ks(a)}],null))},Qs=function(){return Ps()},rs=new $APP.K(null,"heading-el","heading-el",-1277272161),js=new $APP.K(null,"show-progress?",
25
- "show-progress?",-1681518912),qs=new $APP.K(null,"inner","inner",-1383171215),ps=new $APP.K(null,"message-el","message-el",-683533234),os=new $APP.K(null,"progress-bar","progress-bar",-123877022),is=new $APP.K(null,"show-progress-attr","show-progress-attr",1680262066);var Os="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.Pd(["x-toast-dismiss",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.Z,$APP.Y,$APP.hj,$APP.Y,$APP.Tl,$APP.Y,$APP.Tk,$APP.Y],null),$APP.Km,!0],null)]);
26
- var as=new $APP.Q(null,4,["info",$APP.Hl,"success",$APP.cl,"warning",$APP.Im,"error",$APP.Wi],null),cs=new $APP.Q(null,4,[$APP.Hl,"info",$APP.cl,"success",$APP.Im,"warning",$APP.Wi,"error"],null),us=new $APP.Q(null,4,[$APP.Hl,"ℹ",$APP.cl,"✓",$APP.Im,"!",$APP.Wi,"⨯"],null);$APP.ha("baredom.exports.x_toast.init",Qs);export const init=Qs;
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);y.setAttribute("part","progress");A.setAttribute("part","progress-bar");y.appendChild(A);d.appendChild(e);d.appendChild(y);b.appendChild(c);b.appendChild(d);b=$APP.Lf([jt,$APP.io,kt,$APP.$l,$APP.Xn,lt,$APP.Uh,$APP.Vh,$APP.sk,$APP.ej,$APP.Hk,mt],[A,l,r,v,m,e,b,d,y,f,h,q]);a.__xToastRefs=b;return $APP.k(a,"__xToastRefs")},ot=function(a){return ft($APP.Lf([$APP.Ek,$APP.Fh,$APP.Fj,$APP.jj,dt,$APP.Pk,$APP.Hj,
9
+ $APP.Jl,$APP.Nm],[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")]))},qt=function(a){var b=ot(a);if($APP.M($APP.k(a,"__xToastModel"),b)){b=$APP.J(b);var c=$APP.C(b,$APP.R),d=$APP.C(b,$APP.Nm),e=$APP.C(b,$APP.Jl),f=$APP.C(b,$APP.zl),h=$APP.C(b,$APP.Xl),l=$APP.C(b,$APP.Wj),m=$APP.C(b,$APP.Y),q=$APP.C(b,$APP.On),
10
+ r=nt(a),v=$APP.J(r),x=$APP.C(v,$APP.Hk);r=$APP.C(v,mt);var y=$APP.C(v,jt),A=$APP.C(v,$APP.io),D=$APP.C(v,kt),G=$APP.C(v,$APP.$l),I=$APP.C(v,$APP.Vh),H=$APP.C(v,$APP.sk);v=$APP.C(v,$APP.ej);x=$APP.n(x)?x.assignedNodes().length>0:null;$APP.B.i(f,$APP.Qm)||(h=$APP.C(pt,c),h=$APP.n(h)?h:$APP.C(pt,$APP.Am));f=$APP.p(x)&&$APP.B.i(f,$APP.oo);x=it(b);a.setAttribute("data-type",Zs(c));var K=I.setAttribute;c=$APP.B.i(c,$APP.Cn)||$APP.B.i(c,$APP.Nj)?"alert":"status";K.call(I,"role",c);r.textContent=d;r.style.display=
11
+ $APP.B.i(d,"")?"none":"";D.textContent=e;f?(A.textContent="",v.style.display="none"):(A.textContent=h,v.style.display="inline");$APP.n(l)?(G.disabled=$APP.E(m),G.style.display="inline-flex"):(G.disabled=!0,G.style.display="none");x?(H.style.display="block",y.style.setProperty("--x-toast-timeout",""+$APP.Q.g(q)+"ms")):H.style.display="none";d=$APP.n(l)?$APP.p(m):l;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.n(d)?a.setAttribute("aria-keyshortcuts",
12
+ "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},rt=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},st=function(a){a=typeof a==="string"?a.trim():"";return $APP.B.i(a,"")||$APP.B.i(a,"0")||$APP.B.i(a,"0ms")||$APP.B.i(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*
13
+ a))):0},tt=function(a){var b=window.getComputedStyle(a);a=st(b.getPropertyValue("--x-toast-exit-duration"));b=st(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},ut=function(a){var b=$APP.k(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},wt=function(a){ut(a);var b=function(){var c=$APP.k(a,"__xToastModel");return $APP.n(c)?c:ot(a)}();$APP.n(function(){var c=gt(b);return $APP.n(c)?typeof $APP.On.g(b)==="number"&&$APP.p($APP.k(a,"__xToastExiting")):c}())&&
14
+ $APP.fa(a,"__xToastTimeout",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:ot(a)}();if($APP.n(gt(c)))return c=$APP.Xi(ht(c,"timeout")),$APP.ch(a,"x-toast-dismiss",c)?vt.g?vt.g(a):vt.call(null,a):null}return null},$APP.On.g(b)));return null},xt=function(a){var b=$APP.k(a,"__xToastModel");$APP.n($APP.n(b)?it(b):b)&&a.setAttribute("data-progress-active",
15
+ "");return wt(a)},yt=function(a){if(!$APP.n($APP.k(a,"__xToastEntered")))if(a.__xToastEntered=!0,a.setAttribute("data-entering",""),rt())a.removeAttribute("data-entering"),xt(a);else{var b=nt(a);b=$APP.J(b);var c=$APP.C(b,$APP.Vh);c.addEventListener("animationend",function f(e){return $APP.B.i(e.target,c)?(c.removeEventListener("animationend",f),a.removeAttribute("data-entering"),xt(a)):null})}},vt=function(a){if(!$APP.n($APP.k(a,"__xToastExiting"))){a.__xToastExiting=!0;ut(a);a.removeAttribute("data-entering");
16
+ a.removeAttribute("data-progress-active");var b=tt(a);if(b===0||rt())a.remove();else{var c=nt(a);c=$APP.J(c);var d=$APP.C(c,$APP.Vh),e=function l(h){return $APP.B.i(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};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);$APP.fa(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?
17
+ $APP.k(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},zt=function(a,b){var c=$APP.k(a,"__xToastModel");c=$APP.n(c)?c:ot(a);b=$APP.Xi(ht(c,b));$APP.ch(a,"x-toast-dismiss",b)&&vt(a)},At=function(a,b){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ot(a)}();$APP.n(function(){var d=gt(c);return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),zt(a,"button"));return null},Bt=function(a,
18
+ b){if($APP.B.i(b.key,"Escape")){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ot(a)}();$APP.n(function(){var d=gt(c);return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),zt(a,"keyboard"))}return null},Ct=function(a){function b(e){return Bt(a,e)}function c(e){return At(a,e)}var d=nt(a);d=$APP.J(d);$APP.C(d,$APP.$l).addEventListener("click",c);a.addEventListener("keydown",b);$APP.fa(a,"__xToastHandlers",{click:c,keydown:b})},Dt=function(a){ut(a);var b=
19
+ $APP.k(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xToastExitTimer=null);b=$APP.k(a,"__xToastHandlers");var c=$APP.k(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.$l.g(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},Et=function(a){$APP.eh(a,"type","type","info");$APP.eh(a,"heading","heading","");$APP.eh(a,"message","message","");$APP.fh(a,"icon","icon");Object.defineProperty(a,
20
+ "dismissible",{get:function(){return $s(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});$APP.dh(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return bt(this.getAttribute("timeout-ms"))},set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.Q.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,
21
+ "showProgress",{get:function(){return at(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Ft=function(a){return a.dismiss=function(b){var c=$APP.p($APP.k(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&zt(this,typeof b==="string"?b:"api");return null}},Gt=function(a){nt(a);Dt(a);Ct(a);qt(a);yt(a);return null},Ht=function(a){Dt(a);return null},It=function(a,b,c,
22
+ d){$APP.M(c,d)&&(qt(a),$APP.n(a.isConnected)&&wt(a));return null},Kt=function(){return $APP.Yg("x-toast",new $APP.N(null,5,[$APP.Pg,Jt,$APP.Qg,Gt,$APP.Rg,Ht,$APP.Sg,It,$APP.Wg,function(a){Et(a);return Ft(a)}],null))},Lt=function(){return Kt()},mt=new $APP.F(null,"heading-el","heading-el",-1277272161),et=new $APP.F(null,"show-progress?","show-progress?",-1681518912),lt=new $APP.F(null,"inner","inner",-1383171215),kt=new $APP.F(null,"message-el","message-el",-683533234),jt=new $APP.F(null,"progress-bar",
23
+ "progress-bar",-123877022),dt=new $APP.F(null,"show-progress-attr","show-progress-attr",1680262066);var Jt="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.Yd(["x-toast-dismiss",new $APP.N(null,2,[$APP.Z,new $APP.N(null,4,[$APP.R,$APP.U,$APP.Yj,$APP.U,$APP.Nm,$APP.U,$APP.Jl,$APP.U],null),$APP.Fn,!0],null)]);
24
+ var Ws=new $APP.N(null,4,["info",$APP.Am,"success",$APP.Sl,"warning",$APP.Cn,"error",$APP.Nj],null),Ys=new $APP.N(null,4,[$APP.Am,"info",$APP.Sl,"success",$APP.Cn,"warning",$APP.Nj,"error"],null),pt=new $APP.N(null,4,[$APP.Am,"ℹ",$APP.Sl,"✓",$APP.Cn,"!",$APP.Nj,"⨯"],null);$APP.ca("baredom.exports.x_toast.init",Lt);export const init=Lt;
package/dist/x-toaster.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var xv=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(wv,a)?a:"top-end"},yv=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.q(isNaN(a))&&a>0?Math.floor(a):null):null},Av=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=zv;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.Q(null,2,[$APP.Zi,b,$APP.Xl,d],null)}},Dv=function(a){a=
3
- new $APP.Q(null,3,[$APP.sk,a.getAttribute("position"),Bv,a.getAttribute("max-toasts"),$APP.Hi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.sk);a=$APP.D(b,Bv);b=$APP.D(b,$APP.Hi);c=xv(c);a=yv(a);return new $APP.Q(null,3,[$APP.vn,c,Cv,$APP.n(a)?a:5,$APP.T,typeof b==="string"&&$APP.N(b.trim(),"")?b:"Notifications"],null)},Ev=function(a){var b=Dv(a);if($APP.N($APP.k(a,"__xToasterModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.vn),d=$APP.D(b,$APP.T);Av(a);a.setAttribute("role","region");
4
- a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Fv=function(a){function b(c){var d=c.detail;if($APP.N($APP.k(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.k(d,"type");var g=$APP.k(d,"reason"),h=$APP.k(d,"heading");d=$APP.k(d,"message");e=$APP.Zh(new $APP.Q(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.hj,$APP.n(g)?g:"",$APP.Tl,$APP.n(h)?h:"",$APP.Tk,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
- e=a.dispatchEvent(e);$APP.n(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.ja(a,"__xToasterHandlers",{dismiss:b})},Gv=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},Hv=function(a){Object.defineProperty(a,"position",{get:function(){return xv(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",
6
- ""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});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.N(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=yv(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==
7
- null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.S.g(Math.floor(b)))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.k(this,"__xToasterModel");c=$APP.n(c)?c:Dv(this);var d=Cv.g(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",
8
- 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",d);$APP.k(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.k(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.S.g(d));$APP.n($APP.k(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Iv=function(a){Av(a);Gv(a);Fv(a);Ev(a);return null},
9
- Jv=function(a){Gv(a);return null},Kv=function(a,b,c,d){$APP.N(c,d)&&Ev(a);return null},Mv=function(){return $APP.Lg("x-toaster",new $APP.Q(null,5,[$APP.Cg,Lv,$APP.Dg,Iv,$APP.Eg,Jv,$APP.Fg,Kv,$APP.Jg,Hv],null))},Bv=new $APP.K(null,"max-toasts-raw","max-toasts-raw",-815087069),Cv=new $APP.K(null,"max-toasts","max-toasts",-1982289139);var Lv=["position","max-toasts","label"];$APP.Pd(["x-toaster-dismiss",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.Z,$APP.Y,$APP.hj,$APP.Y,$APP.Tl,$APP.Y,$APP.Tk,$APP.Y],null),$APP.Km,!0],null)]);var wv=new $APP.R(null,new $APP.Q(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var zv=":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.S.g("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",Mv);export const init=Mv;
2
+ var bw=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Zc(aw,a)?a:"top-end"},cw=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},ew=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=dw;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.N(null,2,[$APP.Uh,b,$APP.Rm,d],null)}},hw=function(a){a=
3
+ new $APP.N(null,3,[$APP.il,a.getAttribute("position"),fw,a.getAttribute("max-toasts"),$APP.Ch,a.getAttribute("label")],null);var b=$APP.J(a),c=$APP.C(b,$APP.il);a=$APP.C(b,fw);b=$APP.C(b,$APP.Ch);c=bw(c);a=cw(a);return new $APP.N(null,3,[$APP.po,c,gw,$APP.n(a)?a:5,$APP.X,typeof b==="string"&&$APP.M(b.trim(),"")?b:"Notifications"],null)},iw=function(a){var b=hw(a);if($APP.M($APP.k(a,"__xToasterModel"),b)){b=$APP.J(b);var c=$APP.C(b,$APP.po),d=$APP.C(b,$APP.X);ew(a);a.setAttribute("role","region");
4
+ a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},jw=function(a){function b(c){var d=c.detail;if($APP.M($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.Xi(new $APP.N(null,4,[$APP.R,$APP.n(e)?e:"info",$APP.Yj,$APP.n(f)?f:"",$APP.Nm,$APP.n(h)?h:"",$APP.Jl,$APP.n(d)?d:""],null));$APP.ch(a,"x-toaster-dismiss",e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",
5
+ b);$APP.fa(a,"__xToasterHandlers",{dismiss:b})},kw=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},lw=function(a){Object.defineProperty(a,"position",{get:function(){return bw(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.Q.g(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.M(b,""):b)?this.setAttribute("label",""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=cw(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.Q.g(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:hw(this);var d=gw.g(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.Q.g(d));$APP.n($APP.k(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},mw=function(a){ew(a);kw(a);jw(a);iw(a);return null},nw=function(a){kw(a);return null},ow=function(a,b,c,d){$APP.M(c,d)&&iw(a);return null},qw=function(){return $APP.Yg("x-toaster",new $APP.N(null,5,[$APP.Pg,pw,$APP.Qg,mw,
9
+ $APP.Rg,nw,$APP.Sg,ow,$APP.Wg,lw],null))},fw=new $APP.F(null,"max-toasts-raw","max-toasts-raw",-815087069),gw=new $APP.F(null,"max-toasts","max-toasts",-1982289139);var pw=["position","max-toasts","label"];$APP.Yd(["x-toaster-dismiss",new $APP.N(null,2,[$APP.Z,new $APP.N(null,4,[$APP.R,$APP.U,$APP.Yj,$APP.U,$APP.Nm,$APP.U,$APP.Jl,$APP.U],null),$APP.Fn,!0],null)]);var aw=new $APP.O(null,new $APP.N(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var dw=":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.Q.g("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.ca("baredom.exports.x_toaster.init",qw);export const init=qw;