@vanelsas/baredom 3.8.0 → 3.10.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 (112) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +1 -0
  3. package/custom-elements.json +9501 -427
  4. package/dist/base.js +64 -64
  5. package/dist/integrity.json +108 -108
  6. package/dist/x-alert.js +13 -13
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +10 -10
  9. package/dist/x-badge.js +5 -5
  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 -13
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.js +35 -35
  15. package/dist/x-cancel-dialogue.js +13 -13
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +29 -29
  18. package/dist/x-chart.js +45 -45
  19. package/dist/x-checkbox.js +1 -1
  20. package/dist/x-chip.js +1 -1
  21. package/dist/x-code.js +20 -20
  22. package/dist/x-collapse.js +5 -5
  23. package/dist/x-color-picker.js +42 -42
  24. package/dist/x-combobox.js +8 -8
  25. package/dist/x-command-palette.js +26 -26
  26. package/dist/x-confetti.js +23 -23
  27. package/dist/x-container.js +5 -5
  28. package/dist/x-context-menu.js +13 -13
  29. package/dist/x-copy.js +1 -1
  30. package/dist/x-currency-field.js +20 -20
  31. package/dist/x-date-picker.d.ts +2 -2
  32. package/dist/x-date-picker.js +38 -36
  33. package/dist/x-divider.js +7 -7
  34. package/dist/x-drag-panel.js +30 -30
  35. package/dist/x-drawer.js +10 -10
  36. package/dist/x-drop-zone.js +11 -11
  37. package/dist/x-dropdown.js +12 -12
  38. package/dist/x-fieldset.js +5 -5
  39. package/dist/x-file-download.js +4 -4
  40. package/dist/x-file-upload.js +22 -22
  41. package/dist/x-floating-panel.js +3 -3
  42. package/dist/x-form-field.js +12 -12
  43. package/dist/x-form.js +10 -10
  44. package/dist/x-gaussian-blur.js +10 -10
  45. package/dist/x-grid.js +6 -6
  46. package/dist/x-i18n-provider.js +7 -7
  47. package/dist/x-i18n.js +4 -4
  48. package/dist/x-icon.js +7 -7
  49. package/dist/x-image.js +16 -16
  50. package/dist/x-kbd.js +6 -6
  51. package/dist/x-kinetic-canvas.js +24 -24
  52. package/dist/x-kinetic-font.js +17 -17
  53. package/dist/x-kinetic-typography.js +31 -31
  54. package/dist/x-liquid-dock.js +18 -18
  55. package/dist/x-liquid-fill.js +27 -27
  56. package/dist/x-liquid-glass.js +19 -19
  57. package/dist/x-menu-item.js +4 -4
  58. package/dist/x-menu.js +9 -9
  59. package/dist/x-metaball-cursor.js +22 -22
  60. package/dist/x-modal.js +8 -8
  61. package/dist/x-morph-stack.js +37 -37
  62. package/dist/x-multi-combobox.js +35 -35
  63. package/dist/x-navbar.js +7 -7
  64. package/dist/x-neural-glow.js +26 -26
  65. package/dist/x-organic-divider.js +16 -16
  66. package/dist/x-organic-progress.js +25 -25
  67. package/dist/x-organic-shape.js +12 -12
  68. package/dist/x-otp-input.js +19 -19
  69. package/dist/x-pagination.js +14 -14
  70. package/dist/x-particle-button.js +34 -34
  71. package/dist/x-popover.js +24 -24
  72. package/dist/x-progress-circle.js +6 -6
  73. package/dist/x-progress.js +6 -6
  74. package/dist/x-proximity-list.js +4 -4
  75. package/dist/x-radio.js +10 -10
  76. package/dist/x-range-slider.js +25 -25
  77. package/dist/x-rating.js +21 -21
  78. package/dist/x-ripple-effect.js +9 -9
  79. package/dist/x-scroll-parallax.js +15 -15
  80. package/dist/x-scroll-stack.js +16 -16
  81. package/dist/x-scroll-story.js +16 -16
  82. package/dist/x-scroll-timeline.js +40 -40
  83. package/dist/x-scroll.js +17 -17
  84. package/dist/x-select.js +1 -1
  85. package/dist/x-sidebar.js +11 -11
  86. package/dist/x-skeleton-group.js +12 -12
  87. package/dist/x-skeleton.js +1 -1
  88. package/dist/x-slider.js +12 -12
  89. package/dist/x-soft-body.js +17 -17
  90. package/dist/x-spacer.js +4 -4
  91. package/dist/x-spinner.js +3 -3
  92. package/dist/x-splash.js +12 -12
  93. package/dist/x-split-pane.js +8 -8
  94. package/dist/x-spotlight-card.js +12 -12
  95. package/dist/x-stat.js +10 -10
  96. package/dist/x-stepper.js +2 -2
  97. package/dist/x-switch.js +9 -9
  98. package/dist/x-table-cell.js +18 -18
  99. package/dist/x-table-row.js +8 -8
  100. package/dist/x-table.js +13 -13
  101. package/dist/x-tabs.js +11 -11
  102. package/dist/x-text-area.js +12 -12
  103. package/dist/x-theme.js +25 -25
  104. package/dist/x-timeline-item.js +5 -5
  105. package/dist/x-timeline.js +5 -5
  106. package/dist/x-toast.js +21 -21
  107. package/dist/x-toaster.js +6 -6
  108. package/dist/x-tooltip.js +11 -11
  109. package/dist/x-trace-history.js +122 -122
  110. package/dist/x-typography.js +6 -6
  111. package/dist/x-welcome-tour.js +59 -59
  112. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var BZ=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(b,a)?a:c},CZ=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},Ooa=function(a){var b=$APP.G(a);a=$APP.C(b,DZ);b=$APP.C(b,EZ);if($APP.n($APP.n(a)?a:$APP.I(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},FZ=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.N);b=$APP.C(b,DZ);return(a=$APP.z.j(a,
3
- "header"))?b:a},Poa=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},Qoa=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},IZ=function(a){var b=$APP.l(a,"__xTableCellRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),
2
+ var AZ=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(b,a)?a:c},BZ=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},Poa=function(a){var b=$APP.G(a);a=$APP.C(b,CZ);b=$APP.C(b,DZ);if($APP.n($APP.n(a)?a:$APP.I(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},EZ=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.N);b=$APP.C(b,CZ);return(a=$APP.z.j(a,
3
+ "header"))?b:a},Qoa=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},Roa=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},HZ=function(a){var b=$APP.l(a,"__xTableCellRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),
4
4
  f=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("slot"),m=document.createElement("span");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-table-cell-padding:0.5rem 0.75rem;--x-table-cell-bg:transparent;--x-table-cell-header-bg:rgba(0,0,0,0.04);--x-table-cell-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-cell-border-width:1px;--x-table-cell-color:var(--x-color-text,inherit);--x-table-cell-header-color:var(--x-color-text,inherit);--x-table-cell-font-size:inherit;--x-table-cell-header-font-weight:600;--x-table-cell-min-width:0;--x-table-cell-max-width:none;--x-table-cell-sort-color:var(--x-color-text-muted,rgba(0,0,0,0.4));--x-table-cell-sort-hover-color:var(--x-color-text,rgba(0,0,0,0.7));--x-table-cell-focus-ring:var(--x-color-focus-ring,rgba(59,130,246,0.5));--x-table-cell-transition-duration:var(--x-transition-duration,150ms);--x-table-cell-sticky-bg:var(--x-color-bg,#ffffff);--x-table-cell-disabled-opacity:0.45;min-width:var(--x-table-cell-min-width);max-width:var(--x-table-cell-max-width);}@media (prefers-color-scheme:dark){:host{--x-table-cell-header-bg:rgba(255,255,255,0.06);--x-table-cell-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-cell-sort-color:var(--x-color-text-muted,rgba(255,255,255,0.4));--x-table-cell-sort-hover-color:var(--x-color-text,rgba(255,255,255,0.7));--x-table-cell-sticky-bg:var(--x-color-bg,#1f2937);}}:host([data-sticky\x3d'start']){position:sticky;inset-inline-start:0;background:var(--x-table-cell-sticky-bg);z-index:1;}:host([data-sticky\x3d'end']){position:sticky;inset-inline-end:0;background:var(--x-table-cell-sticky-bg);z-index:1;}:host([disabled]){opacity:var(--x-table-cell-disabled-opacity);}[part\x3dcell]{display:flex;align-items:center;justify-content:flex-start;padding:var(--x-table-cell-padding);background:var(--x-table-cell-bg);border-bottom:var(--x-table-cell-border-width) solid var(--x-table-cell-border-color);color:var(--x-table-cell-color);font-size:var(--x-table-cell-font-size);min-width:0;height:100%;box-sizing:border-box;}:host([data-type\x3d'header']) [part\x3dcell]{background:var(--x-table-cell-header-bg);color:var(--x-table-cell-header-color);font-weight:var(--x-table-cell-header-font-weight);}:host([data-align\x3d'start']) [part\x3dcell]{justify-content:flex-start;}:host([data-align\x3d'center']) [part\x3dcell]{justify-content:center;}:host([data-align\x3d'end']) [part\x3dcell]{justify-content:flex-end;}:host([data-valign\x3d'top']) [part\x3dcell]{align-items:flex-start;}:host([data-valign\x3d'middle']) [part\x3dcell]{align-items:center;}:host([data-valign\x3d'bottom']) [part\x3dcell]{align-items:flex-end;}[part\x3dcontent]{flex:1 1 auto;min-width:0;}:host([data-truncate]) [part\x3dcontent]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}[part\x3dsort-btn]{flex:0 0 auto;appearance:none;border:0;background:transparent;padding:2px;margin:0 0 0 4px;cursor:pointer;color:var(--x-table-cell-sort-color);display:inline-flex;align-items:center;justify-content:center;border-radius:4px;transition:color var(--x-table-cell-transition-duration) ease;line-height:1;}[part\x3dsort-btn]:hover{color:var(--x-table-cell-sort-hover-color);}[part\x3dsort-btn]:focus{outline:none;}[part\x3dsort-btn]:focus-visible{outline:2px solid var(--x-table-cell-focus-ring);outline-offset:2px;}[part\x3dsort-btn][disabled]{cursor:default;pointer-events:none;opacity:0.4;}[part\x3dsort-btn][hidden]{display:none !important;}@media (prefers-reduced-motion:reduce){[part\x3dsort-btn]{transition:none !important;}}";
5
5
  $APP.S(d,"part","cell");$APP.S(e,"part","content");e.appendChild(f);$APP.S(h,"part","sort-btn");$APP.S(h,"type","button");$APP.S(k,"name","sort-icon");$APP.S(m,"part","sort-icon-default");$APP.S(m,"aria-hidden","true");m.innerHTML='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e';k.appendChild(m);h.appendChild(k);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);
6
- $APP.Q(a,"__xTableCellRefs",new $APP.M(null,5,[$APP.Sk,b,Roa,d,$APP.Fq,e,GZ,h,HZ,m],null));return $APP.l(a,"__xTableCellRefs")},SZ=function(a){a=$APP.vg([$APP.hr,JZ,KZ,LZ,DZ,$APP.Vq,$APP.Eq,MZ,NZ,$APP.Wj,OZ],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);var b=
7
- $APP.G(a);a=$APP.C(b,$APP.Wj);var c=$APP.C(b,OZ),d=$APP.C(b,$APP.hr),e=$APP.C(b,JZ),f=$APP.C(b,KZ),h=$APP.C(b,LZ),k=$APP.C(b,DZ),m=$APP.C(b,$APP.Vq),r=$APP.C(b,$APP.Eq),u=$APP.C(b,MZ);b=$APP.C(b,NZ);return $APP.vg([$APP.Nr,EZ,PZ,$APP.N,QZ,DZ,$APP.pu,$APP.hv,$APP.Vq,$APP.Wj,$APP.kq],[BZ(d,Soa,"start"),BZ(h,RZ,"none"),BZ(f,Toa,"middle"),BZ(r,Uoa,"data"),BZ(b,Voa,"col"),$APP.D(k),BZ(u,Woa,"none"),CZ(c),$APP.D(m),$APP.D(a),CZ(e)])},TZ=function(a){var b=SZ(a);if($APP.I($APP.l(a,"__xTableCellModel"),b)){b=
8
- $APP.G(b);var c=$APP.C(b,$APP.hv),d=$APP.C(b,$APP.kq),e=$APP.C(b,$APP.Wj),f=$APP.C(b,EZ),h=IZ(a);h=$APP.G(h);var k=$APP.C(h,GZ);h=$APP.C(h,HZ);var m=FZ(b),r=$APP.G(b),u=$APP.C(r,$APP.N),x=$APP.C(r,$APP.Nr),y=$APP.C(r,PZ),A=$APP.C(r,$APP.pu),E=$APP.C(r,$APP.Vq),H=$APP.C(r,$APP.Wj),O=$APP.G(r);var T=$APP.C(O,$APP.N);O=$APP.C(O,QZ);T=$APP.z.j(T,"header")?$APP.z.j(O,"row")||$APP.z.j(O,"rowgroup")?"rowheader":"columnheader":"cell";$APP.S(a,"role",T);r=Ooa(r);$APP.n(r)?$APP.S(a,"aria-sort",r):$APP.U(a,
9
- "aria-sort");$APP.n(H)?$APP.S(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.S(a,"data-type",u);$APP.S(a,"data-align",x);$APP.S(a,"data-valign",y);$APP.z.j(A,"none")?$APP.U(a,"data-sticky"):$APP.S(a,"data-sticky",A);$APP.n(E)?$APP.S(a,"data-truncate",""):$APP.U(a,"data-truncate");a.style.gridColumn=c>1?"span "+$APP.P.i(c):"";a.style.gridRow=d>1?"span "+$APP.P.i(d):"";k.hidden=$APP.p(m);c=parseInt;u=$APP.G(b);m=$APP.C(u,$APP.N);d=$APP.C(u,DZ);u=$APP.C(u,$APP.Wj);m=$APP.z.j(m,"header");k.tabIndex=
10
- c($APP.n(m?$APP.n(d)?$APP.p(u):d:m)?"0":"-1",10);$APP.S(k,"aria-label",Qoa(f));k.disabled=$APP.D(e);a:switch(e=$APP.G(b),$APP.C(e,EZ)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';break a;default:e=
11
- '\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a=$APP.Q(a,"__xTableCellModel",b)}else a=null;return a},Xoa=function(a){var b=a.getAttribute("sort-direction");b=BZ(b,RZ,"none");return $APP.gj(a,"x-table-cell-sort",{direction:Poa(b),previousDirection:b})},Yoa=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");return $APP.n(c)?c:SZ(a)}();return $APP.n(function(){var c=
12
- FZ(b);return $APP.n(c)?$APP.p($APP.Wj.i(b)):c}())?Xoa(a):null},Zoa=function(a){function b(){return Yoa(a)}var c=IZ(a);c=$APP.G(c);$APP.C(c,GZ).addEventListener("click",b);$APP.Q(a,"__xTableCellHandlers",{"sort-click":b})},UZ=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.G(c),c=$APP.C(c,GZ),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));$APP.Q(a,"__xTableCellHandlers",null)},$oa=function(a){$APP.mj(a,"type","type",
13
- "data");$APP.mj(a,"scope","scope","col");$APP.mj(a,"align","align","start");$APP.mj(a,"valign","valign","middle");$APP.jj(a,"truncate","truncate");$APP.mj(a,"sticky","sticky","none");$APP.jj(a,"sortable","sortable");$APP.jj(a,"disabled","disabled");Object.defineProperty(a,"colSpan",{get:function(){return CZ(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.S(this,"col-span",""+$APP.P.i(b)):$APP.U(this,"col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,
14
- "rowSpan",{get:function(){return CZ(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.S(this,"row-span",""+$APP.P.i(b)):$APP.U(this,"row-span")},enumerable:!0,configurable:!0});return $APP.mj(a,"sortDirection","sort-direction","none")},apa=function(a){IZ(a);UZ(a);Zoa(a);TZ(a);var b=$APP.l(a,"__xTableCellModel");b=$APP.n(b)?b:SZ(a);var c=$APP.G(b);b=$APP.C(c,$APP.N);var d=$APP.C(c,QZ),e=$APP.C(c,$APP.hv),f=$APP.C(c,$APP.kq);c=$APP.C(c,$APP.Nr);return $APP.ej(a,
15
- "x-table-cell-connected",$APP.$m(new $APP.M(null,5,[$APP.N,b,QZ,d,VZ,e,WZ,f,$APP.Nr,c],null)))},bpa=function(a){UZ(a);return $APP.ej(a,"x-table-cell-disconnected",{})},cpa=function(a,b,c,d){return $APP.I(c,d)?TZ(a):null},XZ=function(){return $APP.ri("x-table-cell",new $APP.M(null,5,[$APP.ii,dpa,$APP.gi,apa,$APP.di,bpa,$APP.ci,cpa,$APP.hi,$oa],null))},GZ=new $APP.F(null,"sort-btn","sort-btn",1913954560),VZ=new $APP.F(null,"colSpan","colSpan",872137394),Roa=new $APP.F(null,"cell","cell",764245084),
16
- PZ=new $APP.F(null,"valign","valign",1485197511),HZ=new $APP.F(null,"sort-icon-default","sort-icon-default",-596209230),OZ=new $APP.F(null,"col-span-raw","col-span-raw",1425293661),LZ=new $APP.F(null,"sort-direction-raw","sort-direction-raw",-1822100883),MZ=new $APP.F(null,"sticky-raw","sticky-raw",1857578519),JZ=new $APP.F(null,"row-span-raw","row-span-raw",-1130003707),NZ=new $APP.F(null,"scope-raw","scope-raw",-773628648),EZ=new $APP.F(null,"sort-direction","sort-direction",-1635889628),QZ=new $APP.F(null,
17
- "scope","scope",-439358418),DZ=new $APP.F(null,"sortable?","sortable?",291547474),KZ=new $APP.F(null,"valign-raw","valign-raw",-1083375124),WZ=new $APP.F(null,"rowSpan","rowSpan",826884002);var dpa="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
18
- $APP.vg([$APP.Nr,WZ,$APP.er,$APP.tn,PZ,$APP.N,QZ,VZ,$APP.pu,new $APP.F(null,"sortable","sortable",2109633621),new $APP.F(null,"sortDirection","sortDirection",-45816999)],[new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"align"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"row-span"],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"truncate"],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"valign"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"type"],
6
+ $APP.Q(a,"__xTableCellRefs",new $APP.M(null,5,[$APP.Sk,b,Soa,d,$APP.Fq,e,FZ,h,GZ,m],null));return $APP.l(a,"__xTableCellRefs")},RZ=function(a){a=$APP.vg([$APP.hr,IZ,JZ,KZ,CZ,$APP.Vq,$APP.Eq,LZ,MZ,$APP.Wj,NZ],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);var b=
7
+ $APP.G(a);a=$APP.C(b,$APP.Wj);var c=$APP.C(b,NZ),d=$APP.C(b,$APP.hr),e=$APP.C(b,IZ),f=$APP.C(b,JZ),h=$APP.C(b,KZ),k=$APP.C(b,CZ),m=$APP.C(b,$APP.Vq),r=$APP.C(b,$APP.Eq),u=$APP.C(b,LZ);b=$APP.C(b,MZ);return $APP.vg([$APP.Nr,DZ,OZ,$APP.N,PZ,CZ,$APP.pu,$APP.hv,$APP.Vq,$APP.Wj,$APP.kq],[AZ(d,Toa,"start"),AZ(h,QZ,"none"),AZ(f,Uoa,"middle"),AZ(r,Voa,"data"),AZ(b,Woa,"col"),$APP.D(k),AZ(u,Xoa,"none"),BZ(c),$APP.D(m),$APP.D(a),BZ(e)])},SZ=function(a){var b=RZ(a);if($APP.I($APP.l(a,"__xTableCellModel"),b)){b=
8
+ $APP.G(b);var c=$APP.C(b,$APP.hv),d=$APP.C(b,$APP.kq),e=$APP.C(b,$APP.Wj),f=$APP.C(b,DZ),h=HZ(a);h=$APP.G(h);var k=$APP.C(h,FZ);h=$APP.C(h,GZ);var m=EZ(b),r=$APP.G(b),u=$APP.C(r,$APP.N),x=$APP.C(r,$APP.Nr),y=$APP.C(r,OZ),B=$APP.C(r,$APP.pu),E=$APP.C(r,$APP.Vq),H=$APP.C(r,$APP.Wj),O=$APP.G(r);var T=$APP.C(O,$APP.N);O=$APP.C(O,PZ);T=$APP.z.j(T,"header")?$APP.z.j(O,"row")||$APP.z.j(O,"rowgroup")?"rowheader":"columnheader":"cell";$APP.S(a,"role",T);r=Poa(r);$APP.n(r)?$APP.S(a,"aria-sort",r):$APP.U(a,
9
+ "aria-sort");$APP.n(H)?$APP.S(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.S(a,"data-type",u);$APP.S(a,"data-align",x);$APP.S(a,"data-valign",y);$APP.z.j(B,"none")?$APP.U(a,"data-sticky"):$APP.S(a,"data-sticky",B);$APP.n(E)?$APP.S(a,"data-truncate",""):$APP.U(a,"data-truncate");a.style.gridColumn=c>1?"span "+$APP.P.i(c):"";a.style.gridRow=d>1?"span "+$APP.P.i(d):"";k.hidden=$APP.p(m);c=parseInt;u=$APP.G(b);m=$APP.C(u,$APP.N);d=$APP.C(u,CZ);u=$APP.C(u,$APP.Wj);m=$APP.z.j(m,"header");k.tabIndex=
10
+ c($APP.n(m?$APP.n(d)?$APP.p(u):d:m)?"0":"-1",10);$APP.S(k,"aria-label",Roa(f));k.disabled=$APP.D(e);a:switch(e=$APP.G(b),$APP.C(e,DZ)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';break a;default:e=
11
+ '\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a=$APP.Q(a,"__xTableCellModel",b)}else a=null;return a},Yoa=function(a){var b=a.getAttribute("sort-direction");b=AZ(b,QZ,"none");return $APP.gj(a,"x-table-cell-sort",{direction:Qoa(b),previousDirection:b})},Zoa=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");return $APP.n(c)?c:RZ(a)}();return $APP.n(function(){var c=
12
+ EZ(b);return $APP.n(c)?$APP.p($APP.Wj.i(b)):c}())?Yoa(a):null},$oa=function(a){function b(){return Zoa(a)}var c=HZ(a);c=$APP.G(c);$APP.C(c,FZ).addEventListener("click",b);$APP.Q(a,"__xTableCellHandlers",{"sort-click":b})},TZ=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.G(c),c=$APP.C(c,FZ),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));$APP.Q(a,"__xTableCellHandlers",null)},apa=function(a){$APP.mj(a,"type","type",
13
+ "data");$APP.mj(a,"scope","scope","col");$APP.mj(a,"align","align","start");$APP.mj(a,"valign","valign","middle");$APP.jj(a,"truncate","truncate");$APP.mj(a,"sticky","sticky","none");$APP.jj(a,"sortable","sortable");$APP.jj(a,"disabled","disabled");Object.defineProperty(a,"colSpan",{get:function(){return BZ(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.S(this,"col-span",""+$APP.P.i(b)):$APP.U(this,"col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,
14
+ "rowSpan",{get:function(){return BZ(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.S(this,"row-span",""+$APP.P.i(b)):$APP.U(this,"row-span")},enumerable:!0,configurable:!0});return $APP.mj(a,"sortDirection","sort-direction","none")},bpa=function(a){HZ(a);TZ(a);$oa(a);SZ(a);var b=$APP.l(a,"__xTableCellModel");b=$APP.n(b)?b:RZ(a);var c=$APP.G(b);b=$APP.C(c,$APP.N);var d=$APP.C(c,PZ),e=$APP.C(c,$APP.hv),f=$APP.C(c,$APP.kq);c=$APP.C(c,$APP.Nr);return $APP.ej(a,
15
+ "x-table-cell-connected",$APP.$m(new $APP.M(null,5,[$APP.N,b,PZ,d,UZ,e,VZ,f,$APP.Nr,c],null)))},cpa=function(a){TZ(a);return $APP.ej(a,"x-table-cell-disconnected",{})},dpa=function(a,b,c,d){return $APP.I(c,d)?SZ(a):null},WZ=function(){return $APP.ri("x-table-cell",new $APP.M(null,5,[$APP.ii,epa,$APP.gi,bpa,$APP.di,cpa,$APP.ci,dpa,$APP.hi,apa],null))},FZ=new $APP.F(null,"sort-btn","sort-btn",1913954560),UZ=new $APP.F(null,"colSpan","colSpan",872137394),Soa=new $APP.F(null,"cell","cell",764245084),
16
+ OZ=new $APP.F(null,"valign","valign",1485197511),GZ=new $APP.F(null,"sort-icon-default","sort-icon-default",-596209230),NZ=new $APP.F(null,"col-span-raw","col-span-raw",1425293661),KZ=new $APP.F(null,"sort-direction-raw","sort-direction-raw",-1822100883),LZ=new $APP.F(null,"sticky-raw","sticky-raw",1857578519),IZ=new $APP.F(null,"row-span-raw","row-span-raw",-1130003707),MZ=new $APP.F(null,"scope-raw","scope-raw",-773628648),DZ=new $APP.F(null,"sort-direction","sort-direction",-1635889628),PZ=new $APP.F(null,
17
+ "scope","scope",-439358418),CZ=new $APP.F(null,"sortable?","sortable?",291547474),JZ=new $APP.F(null,"valign-raw","valign-raw",-1083375124),VZ=new $APP.F(null,"rowSpan","rowSpan",826884002);var epa="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
18
+ $APP.vg([$APP.Nr,VZ,$APP.er,$APP.tn,OZ,$APP.N,PZ,UZ,$APP.pu,new $APP.F(null,"sortable","sortable",2109633621),new $APP.F(null,"sortDirection","sortDirection",-45816999)],[new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"align"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"row-span"],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"truncate"],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"valign"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"type"],
19
19
  null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"scope"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"col-span"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"sticky"],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"sortable"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"sort-direction"],null)]);
20
- $APP.ie(["x-table-cell-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Ir,$APP.X,$APP.pv,$APP.X],null),$APP.Xu,!0],null),"x-table-cell-connected",new $APP.M(null,1,[$APP.V,new $APP.M(null,5,[$APP.N,$APP.X,QZ,$APP.X,VZ,$APP.Y,WZ,$APP.Y,$APP.Nr,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.M(null,1,[$APP.V,$APP.je],null)]);
21
- var Uoa=new $APP.bh(null,new $APP.M(null,2,["data",null,"header",null],null),null),Voa=new $APP.bh(null,new $APP.M(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),Soa=new $APP.bh(null,new $APP.M(null,3,["center",null,"start",null,"end",null],null),null),Toa=new $APP.bh(null,new $APP.M(null,3,["top",null,"middle",null,"bottom",null],null),null),Woa=new $APP.bh(null,new $APP.M(null,3,["none",null,"start",null,"end",null],null),null),RZ=new $APP.bh(null,new $APP.M(null,3,["none",
22
- null,"desc",null,"asc",null],null),null);$APP.ha("baredom.exports.x_table_cell.init",XZ);export const init=XZ;
20
+ $APP.ie(["x-table-cell-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Ir,$APP.X,$APP.pv,$APP.X],null),$APP.Xu,!0],null),"x-table-cell-connected",new $APP.M(null,1,[$APP.V,new $APP.M(null,5,[$APP.N,$APP.X,PZ,$APP.X,UZ,$APP.Y,VZ,$APP.Y,$APP.Nr,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.M(null,1,[$APP.V,$APP.je],null)]);
21
+ var Voa=new $APP.bh(null,new $APP.M(null,2,["data",null,"header",null],null),null),Woa=new $APP.bh(null,new $APP.M(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),Toa=new $APP.bh(null,new $APP.M(null,3,["center",null,"start",null,"end",null],null),null),Uoa=new $APP.bh(null,new $APP.M(null,3,["top",null,"middle",null,"bottom",null],null),null),Xoa=new $APP.bh(null,new $APP.M(null,3,["none",null,"start",null,"end",null],null),null),QZ=new $APP.bh(null,new $APP.M(null,3,["none",
22
+ null,"desc",null,"asc",null],null),null);$APP.ha("baredom.exports.x_table_cell.init",WZ);export const init=WZ;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var mH=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},nH=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.ru);b=$APP.C(b,$APP.Wj);return $APP.n(a)?$APP.p(b):a},oH=function(a){if(!$APP.Ui(a,"__xTableRowInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;box-sizing:border-box;color-scheme:light dark;--x-table-row-bg:transparent;--x-table-row-hover-bg:rgba(0,0,0,0.03);--x-table-row-selected-bg:rgba(59,130,246,0.08);--x-table-row-selected-hover-bg:rgba(59,130,246,0.12);--x-table-row-focus-ring:var(--x-color-focus-ring,rgba(59,130,246,0.5));--x-table-row-transition-duration:var(--x-transition-duration,150ms);--x-table-row-disabled-opacity:0.45;--x-table-row-cursor:pointer;background:var(--x-table-row-bg);transition:background var(--x-table-row-transition-duration) ease;}@media (prefers-color-scheme:dark){:host{--x-table-row-hover-bg:rgba(255,255,255,0.04);--x-table-row-selected-bg:rgba(99,160,255,0.12);--x-table-row-selected-hover-bg:rgba(99,160,255,0.16);}}:host([data-selected]){background:var(--x-table-row-selected-bg);}:host([data-interactive]){cursor:var(--x-table-row-cursor);}:host([data-interactive]:hover){background:var(--x-table-row-hover-bg);}:host([data-interactive][data-selected]:hover){background:var(--x-table-row-selected-hover-bg);}:host([data-interactive]:focus){outline:none;}:host([data-interactive]:focus-visible){outline:2px solid var(--x-table-row-focus-ring);outline-offset:-2px;}:host([disabled]){opacity:var(--x-table-row-disabled-opacity);pointer-events:none;}slot{display:contents;}@media (prefers-reduced-motion:reduce){:host{transition:none !important;}}";
3
- b.appendChild(c);b.appendChild(d);$APP.Vi(a,"__xTableRowInitialized")}},rH=function(a){a=new $APP.M(null,4,[$APP.or,a.hasAttribute("selected"),$APP.Wj,a.hasAttribute("disabled"),$APP.ru,a.hasAttribute("interactive"),pH,a.getAttribute("row-index")],null);var b=$APP.G(a);a=$APP.C(b,$APP.or);var c=$APP.C(b,$APP.Wj),d=$APP.C(b,$APP.ru);b=$APP.C(b,pH);return new $APP.M(null,4,[$APP.or,$APP.D(a),$APP.Wj,$APP.D(c),$APP.ru,$APP.D(d),qH,mH(b)],null)},sH=function(a){var b=rH(a);if($APP.I($APP.l(a,"__xTableRowModel"),
4
- b)){oH(a);var c=$APP.G(b),d=$APP.C(c,$APP.or),e=$APP.C(c,$APP.Wj),f=$APP.C(c,$APP.ru),h=$APP.C(c,qH);$APP.S(a,"role","row");var k=$APP.G(c);var m=$APP.C(k,$APP.or);k=$APP.C(k,$APP.ru);m=$APP.n(m)?"true":$APP.n(k)?"false":null;$APP.n(m)?$APP.S(a,"aria-selected",m):$APP.U(a,"aria-selected");$APP.n(e)?$APP.S(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");h!=null?$APP.S(a,"aria-rowindex",""+$APP.P.i(h)):$APP.U(a,"aria-rowindex");$APP.n(d)?$APP.S(a,"data-selected",""):$APP.U(a,"data-selected");$APP.n(f)?
5
- $APP.S(a,"data-interactive",""):$APP.U(a,"data-interactive");a.tabIndex=$APP.n(nH(c))?0:-1;a=$APP.Q(a,"__xTableRowModel",b)}else a=null;return a},tH=function(a){var b=$APP.l(a,"__xTableRowModel");b=$APP.n(b)?b:rH(a);var c=$APP.G(b);b=$APP.C(c,$APP.or);var d=$APP.C(c,$APP.Wj);c=$APP.C(c,qH);return $APP.gj(a,"x-table-row-click",$APP.$m(new $APP.M(null,3,[$APP.Yr,$APP.n(c)?c:0,$APP.Ds,b,$APP.tn,d],null)))},Tda=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,
6
- "__xTableRowModel"),e=$APP.n(e)?e:rH(a),$APP.n(nH(e))){d.preventDefault();d=tH(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:rH(a);return $APP.n(nH(d))?tH(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTableRowHandlers",{click:c,keydown:b})},uH=function(a){var b=$APP.l(a,"__xTableRowHandlers");if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",
7
- b)}$APP.Q(a,"__xTableRowHandlers",null)},Uda=function(a){$APP.jj(a,"selected","selected");$APP.jj(a,"disabled","disabled");$APP.jj(a,"interactive","interactive");return Object.defineProperty(a,"rowIndex",{get:function(){return mH(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.S(this,"row-index",""+$APP.P.i(b)):$APP.U(this,"row-index")},enumerable:!0,configurable:!0})},Vda=function(a){oH(a);uH(a);Tda(a);sH(a);var b=$APP.l(a,"__xTableRowModel");b=
8
- $APP.n(b)?b:rH(a);var c=$APP.G(b);b=$APP.C(c,$APP.or);var d=$APP.C(c,$APP.Wj),e=$APP.C(c,$APP.ru);c=$APP.C(c,qH);return $APP.ej(a,"x-table-row-connected",$APP.$m(new $APP.M(null,4,[$APP.Yr,$APP.n(c)?c:0,$APP.Ds,b,$APP.tn,d,$APP.Ar,e],null)))},Wda=function(a){uH(a);return $APP.ij("x-table-row-disconnected",{})},Xda=function(a,b,c,d){return $APP.I(c,d)?sH(a):null},vH=function(){return $APP.ri("x-table-row",new $APP.M(null,5,[$APP.ii,Yda,$APP.gi,Vda,$APP.di,Wda,$APP.ci,Xda,$APP.hi,Uda],null))},qH=new $APP.F(null,
9
- "row-index","row-index",-828710296),pH=new $APP.F(null,"row-index-raw","row-index-raw",1490649093);var Yda=["selected","disabled","interactive","row-index"];$APP.ie(["x-table-row-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Yr,$APP.Y,$APP.Ds,$APP.rj,$APP.tn,$APP.rj],null),$APP.Xu,!0],null),"x-table-row-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.Yr,$APP.Y,$APP.Ds,$APP.rj,$APP.tn,$APP.rj,$APP.Ar,$APP.rj],null),$APP.Xu,!1],null),"x-table-row-disconnected",new $APP.M(null,2,[$APP.V,$APP.je,$APP.Xu,!1],null)]);$APP.ha("baredom.exports.x_table_row.init",vH);export const init=vH;
2
+ var lH=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},mH=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.ru);b=$APP.C(b,$APP.Wj);return $APP.n(a)?$APP.p(b):a},nH=function(a){if(!$APP.Ui(a,"__xTableRowInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;box-sizing:border-box;color-scheme:light dark;--x-table-row-bg:transparent;--x-table-row-hover-bg:rgba(0,0,0,0.03);--x-table-row-selected-bg:rgba(59,130,246,0.08);--x-table-row-selected-hover-bg:rgba(59,130,246,0.12);--x-table-row-focus-ring:var(--x-color-focus-ring,rgba(59,130,246,0.5));--x-table-row-transition-duration:var(--x-transition-duration,150ms);--x-table-row-disabled-opacity:0.45;--x-table-row-cursor:pointer;background:var(--x-table-row-bg);transition:background var(--x-table-row-transition-duration) ease;}@media (prefers-color-scheme:dark){:host{--x-table-row-hover-bg:rgba(255,255,255,0.04);--x-table-row-selected-bg:rgba(99,160,255,0.12);--x-table-row-selected-hover-bg:rgba(99,160,255,0.16);}}:host([data-selected]){background:var(--x-table-row-selected-bg);}:host([data-interactive]){cursor:var(--x-table-row-cursor);}:host([data-interactive]:hover){background:var(--x-table-row-hover-bg);}:host([data-interactive][data-selected]:hover){background:var(--x-table-row-selected-hover-bg);}:host([data-interactive]:focus){outline:none;}:host([data-interactive]:focus-visible){outline:2px solid var(--x-table-row-focus-ring);outline-offset:-2px;}:host([disabled]){opacity:var(--x-table-row-disabled-opacity);pointer-events:none;}slot{display:contents;}@media (prefers-reduced-motion:reduce){:host{transition:none !important;}}";
3
+ b.appendChild(c);b.appendChild(d);$APP.Vi(a,"__xTableRowInitialized")}},qH=function(a){a=new $APP.M(null,4,[$APP.or,a.hasAttribute("selected"),$APP.Wj,a.hasAttribute("disabled"),$APP.ru,a.hasAttribute("interactive"),oH,a.getAttribute("row-index")],null);var b=$APP.G(a);a=$APP.C(b,$APP.or);var c=$APP.C(b,$APP.Wj),d=$APP.C(b,$APP.ru);b=$APP.C(b,oH);return new $APP.M(null,4,[$APP.or,$APP.D(a),$APP.Wj,$APP.D(c),$APP.ru,$APP.D(d),pH,lH(b)],null)},rH=function(a){var b=qH(a);if($APP.I($APP.l(a,"__xTableRowModel"),
4
+ b)){nH(a);var c=$APP.G(b),d=$APP.C(c,$APP.or),e=$APP.C(c,$APP.Wj),f=$APP.C(c,$APP.ru),h=$APP.C(c,pH);$APP.S(a,"role","row");var k=$APP.G(c);var m=$APP.C(k,$APP.or);k=$APP.C(k,$APP.ru);m=$APP.n(m)?"true":$APP.n(k)?"false":null;$APP.n(m)?$APP.S(a,"aria-selected",m):$APP.U(a,"aria-selected");$APP.n(e)?$APP.S(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");h!=null?$APP.S(a,"aria-rowindex",""+$APP.P.i(h)):$APP.U(a,"aria-rowindex");$APP.n(d)?$APP.S(a,"data-selected",""):$APP.U(a,"data-selected");$APP.n(f)?
5
+ $APP.S(a,"data-interactive",""):$APP.U(a,"data-interactive");a.tabIndex=$APP.n(mH(c))?0:-1;a=$APP.Q(a,"__xTableRowModel",b)}else a=null;return a},sH=function(a){var b=$APP.l(a,"__xTableRowModel");b=$APP.n(b)?b:qH(a);var c=$APP.G(b);b=$APP.C(c,$APP.or);var d=$APP.C(c,$APP.Wj);c=$APP.C(c,pH);return $APP.gj(a,"x-table-row-click",$APP.$m(new $APP.M(null,3,[$APP.Yr,$APP.n(c)?c:0,$APP.Ds,b,$APP.tn,d],null)))},Uda=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,
6
+ "__xTableRowModel"),e=$APP.n(e)?e:qH(a),$APP.n(mH(e))){d.preventDefault();d=sH(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:qH(a);return $APP.n(mH(d))?sH(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTableRowHandlers",{click:c,keydown:b})},tH=function(a){var b=$APP.l(a,"__xTableRowHandlers");if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",
7
+ b)}$APP.Q(a,"__xTableRowHandlers",null)},Vda=function(a){$APP.jj(a,"selected","selected");$APP.jj(a,"disabled","disabled");$APP.jj(a,"interactive","interactive");return Object.defineProperty(a,"rowIndex",{get:function(){return lH(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.S(this,"row-index",""+$APP.P.i(b)):$APP.U(this,"row-index")},enumerable:!0,configurable:!0})},Wda=function(a){nH(a);tH(a);Uda(a);rH(a);var b=$APP.l(a,"__xTableRowModel");b=
8
+ $APP.n(b)?b:qH(a);var c=$APP.G(b);b=$APP.C(c,$APP.or);var d=$APP.C(c,$APP.Wj),e=$APP.C(c,$APP.ru);c=$APP.C(c,pH);return $APP.ej(a,"x-table-row-connected",$APP.$m(new $APP.M(null,4,[$APP.Yr,$APP.n(c)?c:0,$APP.Ds,b,$APP.tn,d,$APP.Ar,e],null)))},Xda=function(a){tH(a);return $APP.ij("x-table-row-disconnected",{})},Yda=function(a,b,c,d){return $APP.I(c,d)?rH(a):null},uH=function(){return $APP.ri("x-table-row",new $APP.M(null,5,[$APP.ii,Zda,$APP.gi,Wda,$APP.di,Xda,$APP.ci,Yda,$APP.hi,Vda],null))},pH=new $APP.F(null,
9
+ "row-index","row-index",-828710296),oH=new $APP.F(null,"row-index-raw","row-index-raw",1490649093);var Zda=["selected","disabled","interactive","row-index"];$APP.ie(["x-table-row-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Yr,$APP.Y,$APP.Ds,$APP.rj,$APP.tn,$APP.rj],null),$APP.Xu,!0],null),"x-table-row-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.Yr,$APP.Y,$APP.Ds,$APP.rj,$APP.tn,$APP.rj,$APP.Ar,$APP.rj],null),$APP.Xu,!1],null),"x-table-row-disconnected",new $APP.M(null,2,[$APP.V,$APP.je,$APP.Xu,!1],null)]);$APP.ha("baredom.exports.x_table_row.init",uH);export const init=uH;
package/dist/x-table.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var MM=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},OM=function(a){var b=$APP.l(a,"__xTableRefs");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:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:var(--x-color-text,inherit);--x-table-caption-font-size:0.875rem;--x-table-caption-font-weight:600;--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}@media (prefers-color-scheme:dark){:host{--x-table-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-stripe-bg:rgba(255,255,255,0.03);}}:host([data-bordered]){border:1px solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";
3
- $APP.S(d,"part","caption");$APP.S(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.Sk,b,NM,d,$APP.nu,e],null));return $APP.l(a,"__xTableRefs")},ZM=function(a){a=new $APP.M(null,8,[PM,a.getAttribute("columns"),QM,a.getAttribute("caption"),RM,a.getAttribute("selectable"),$APP.Ct,a.hasAttribute("striped"),SM,a.hasAttribute("bordered"),TM,a.hasAttribute("full-width"),UM,a.hasAttribute("compact"),VM,a.getAttribute("row-count")],null);var b=
4
- $APP.G(a),c=$APP.C(b,PM),d=$APP.C(b,QM),e=$APP.C(b,RM);a=$APP.C(b,$APP.Ct);var f=$APP.C(b,SM),h=$APP.C(b,TM),k=$APP.C(b,UM);b=$APP.C(b,VM);a:{if(typeof c==="string"&&(c=c.trim(),$APP.I(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.z.j(c,""+$APP.P.i(m))?"repeat("+$APP.P.i(m)+",minmax(0,1fr))":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.cd(Bga,e)?e:"none";return new $APP.M(null,8,[$APP.ht,c,WM,d,XM,e,$APP.Ct,$APP.D(a),SM,$APP.D(f),TM,$APP.D(h),
5
- UM,$APP.D(k),YM,MM(b)],null)},$M=function(a){a=$APP.q($APP.xe.m($APP.Cp,$APP.Dc(a.querySelectorAll("x-table-row")),$APP.ph(0,Number.MAX_VALUE)));for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d),f=$APP.B(e,0,null);e=$APP.B(e,1,null);$APP.td(e+1,2)===0?$APP.S(f,"data-stripe","even"):$APP.U(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.Zc(a)?(b=$APP.Eb(a),a=$APP.Fb(a),f=b,c=$APP.w(b),b=f):(b=$APP.t(a),f=$APP.B(b,0,null),e=$APP.B(b,1,null),$APP.td(e+1,2)===0?$APP.S(f,"data-stripe","even"):$APP.U(f,
6
- "data-stripe"),a=$APP.v(a),b=null,c=0),d=0;else return null},aN=function(a){var b=ZM(a);if($APP.I($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Ct),d=OM(a);d=$APP.G(d);d=$APP.C(d,NM);var e=$APP.G(b);e=$APP.C(e,$APP.ht);$APP.n(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,XM);e=$APP.C(f,YM);f=$APP.C(f,WM);$APP.S(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.n(h)?$APP.S(a,"aria-multiselectable",h):$APP.U(a,
7
- "aria-multiselectable");e!=null?$APP.S(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.S(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,WM);$APP.I(e,"")?(d.textContent=e,$APP.U(d,"hidden")):(d.textContent="",$APP.S(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.Ct);e=$APP.C(f,SM);h=$APP.C(f,TM);f=$APP.C(f,UM);$APP.n(d)?$APP.S(a,"data-striped",""):$APP.U(a,"data-striped");$APP.n(e)?$APP.S(a,"data-bordered",""):$APP.U(a,"data-bordered");$APP.n(h)?$APP.S(a,
8
- "data-full-width",""):$APP.U(a,"data-full-width");$APP.n(f)?$APP.S(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&$M(a);a=$APP.Q(a,"__xTableModel",b)}else a=null;return a},Cga=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:ZM(a);return $APP.n($APP.Ct.i(f))?$M(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.n(h)?h:ZM(a);var k=XM.i(h);if($APP.I(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.gj(a,"x-table-row-select",$APP.$m(new $APP.M(null,
9
- 3,[$APP.Yr,$APP.n(f)?f:0,$APP.Ds,$APP.p(h.hasAttribute("selected")),bN,k],null))),$APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Ec(a.querySelectorAll(""+$APP.P.i("x-table-row")+"["+$APP.P.i("selected")+"]"));k=$APP.q(k);for(var m=null,r=0,u=0;;)if(u<r){var x=m.C(null,u);$APP.U(x,"selected");u+=1}else if(k=$APP.q(k))m=k,$APP.Zc(m)?(k=$APP.Eb(m),u=$APP.Fb(m),m=k,r=$APP.w(k),k=u):(k=$APP.t(m),$APP.U(k,"selected"),k=$APP.v(m),m=null,r=0),u=0;else break;h=$APP.n(f)?null:$APP.S(h,"selected",
10
- "")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?$APP.U(h,"selected"):$APP.S(h,"selected",""):null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);var k=$APP.l(f.detail,"direction"),m=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.gj(a,"x-table-sort",$APP.$m(new $APP.M(null,3,[cN,h,$APP.Ir,k,$APP.pv,m],null)))):f=null;return f}var e={};a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",
11
- c);a.addEventListener("x-table-row-connected",b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},dN=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.l(b,"sort"),d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",b)}return $APP.Q(a,"__xTableHandlers",null)},Dga=function(a){$APP.mj(a,"columns",
12
- "columns","");$APP.mj(a,"caption","caption","");$APP.mj(a,"selectable","selectable","none");$APP.jj(a,"striped","striped");$APP.jj(a,"bordered","bordered");$APP.jj(a,"compact","compact");$APP.jj(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return MM(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.U(this,"row-count"):$APP.S(this,"row-count",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0})},Ega=function(a){OM(a);dN(a);Cga(a);
13
- return aN(a)},Fga=function(a){return dN(a)},Gga=function(a,b,c,d){return $APP.I(c,d)?aN(a):null},eN=function(){return $APP.ri("x-table",new $APP.M(null,5,[$APP.ii,Hga,$APP.gi,Ega,$APP.di,Fga,$APP.ci,Gga,$APP.hi,Dga],null))},TM=new $APP.F(null,"full-width?","full-width?",1477288349),VM=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),RM=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),cN=new $APP.F(null,"colIndex","colIndex",171239635),YM=new $APP.F(null,"row-count","row-count",
14
- 1060167988),QM=new $APP.F(null,"caption-raw","caption-raw",-375935083),bN=new $APP.F(null,"selectionMode","selectionMode",1264773367),PM=new $APP.F(null,"columns-raw","columns-raw",-2093994046),XM=new $APP.F(null,"selectable","selectable",370587038),WM=new $APP.F(null,"caption","caption",-855383902),SM=new $APP.F(null,"bordered?","bordered?",562358476),NM=new $APP.F(null,"caption-div","caption-div",1485363333),UM=new $APP.F(null,"compact?","compact?",1216893298);var Hga="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.ie(["x-table-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[cN,$APP.Y,$APP.Ir,$APP.X,$APP.pv,$APP.X],null),$APP.Xu,!0],null),"x-table-row-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Yr,$APP.Y,$APP.Ds,$APP.rj,bN,$APP.X],null),$APP.Xu,!0],null)]);var Bga=new $APP.bh(null,new $APP.M(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ha("baredom.exports.x_table.init",eN);export const init=eN;
2
+ var LM=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},NM=function(a){var b=$APP.l(a,"__xTableRefs");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:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:var(--x-color-text,inherit);--x-table-caption-font-size:0.875rem;--x-table-caption-font-weight:600;--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}@media (prefers-color-scheme:dark){:host{--x-table-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-stripe-bg:rgba(255,255,255,0.03);}}:host([data-bordered]){border:1px solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";
3
+ $APP.S(d,"part","caption");$APP.S(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.Sk,b,MM,d,$APP.nu,e],null));return $APP.l(a,"__xTableRefs")},YM=function(a){a=new $APP.M(null,8,[OM,a.getAttribute("columns"),PM,a.getAttribute("caption"),QM,a.getAttribute("selectable"),$APP.Ct,a.hasAttribute("striped"),RM,a.hasAttribute("bordered"),SM,a.hasAttribute("full-width"),TM,a.hasAttribute("compact"),UM,a.getAttribute("row-count")],null);var b=
4
+ $APP.G(a),c=$APP.C(b,OM),d=$APP.C(b,PM),e=$APP.C(b,QM);a=$APP.C(b,$APP.Ct);var f=$APP.C(b,RM),h=$APP.C(b,SM),k=$APP.C(b,TM);b=$APP.C(b,UM);a:{if(typeof c==="string"&&(c=c.trim(),$APP.I(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.z.j(c,""+$APP.P.i(m))?"repeat("+$APP.P.i(m)+",minmax(0,1fr))":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.cd(Cga,e)?e:"none";return new $APP.M(null,8,[$APP.ht,c,VM,d,WM,e,$APP.Ct,$APP.D(a),RM,$APP.D(f),SM,$APP.D(h),
5
+ TM,$APP.D(k),XM,LM(b)],null)},ZM=function(a){a=$APP.q($APP.xe.m($APP.Cp,$APP.Dc(a.querySelectorAll("x-table-row")),$APP.ph(0,Number.MAX_VALUE)));for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d),f=$APP.A(e,0,null);e=$APP.A(e,1,null);$APP.td(e+1,2)===0?$APP.S(f,"data-stripe","even"):$APP.U(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.Zc(a)?(b=$APP.Eb(a),a=$APP.Fb(a),f=b,c=$APP.w(b),b=f):(b=$APP.t(a),f=$APP.A(b,0,null),e=$APP.A(b,1,null),$APP.td(e+1,2)===0?$APP.S(f,"data-stripe","even"):$APP.U(f,
6
+ "data-stripe"),a=$APP.v(a),b=null,c=0),d=0;else return null},$M=function(a){var b=YM(a);if($APP.I($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Ct),d=NM(a);d=$APP.G(d);d=$APP.C(d,MM);var e=$APP.G(b);e=$APP.C(e,$APP.ht);$APP.n(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,WM);e=$APP.C(f,XM);f=$APP.C(f,VM);$APP.S(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.n(h)?$APP.S(a,"aria-multiselectable",h):$APP.U(a,
7
+ "aria-multiselectable");e!=null?$APP.S(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.S(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,VM);$APP.I(e,"")?(d.textContent=e,$APP.U(d,"hidden")):(d.textContent="",$APP.S(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.Ct);e=$APP.C(f,RM);h=$APP.C(f,SM);f=$APP.C(f,TM);$APP.n(d)?$APP.S(a,"data-striped",""):$APP.U(a,"data-striped");$APP.n(e)?$APP.S(a,"data-bordered",""):$APP.U(a,"data-bordered");$APP.n(h)?$APP.S(a,
8
+ "data-full-width",""):$APP.U(a,"data-full-width");$APP.n(f)?$APP.S(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&ZM(a);a=$APP.Q(a,"__xTableModel",b)}else a=null;return a},Dga=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:YM(a);return $APP.n($APP.Ct.i(f))?ZM(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.n(h)?h:YM(a);var k=WM.i(h);if($APP.I(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.gj(a,"x-table-row-select",$APP.$m(new $APP.M(null,
9
+ 3,[$APP.Yr,$APP.n(f)?f:0,$APP.Ds,$APP.p(h.hasAttribute("selected")),aN,k],null))),$APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Ec(a.querySelectorAll(""+$APP.P.i("x-table-row")+"["+$APP.P.i("selected")+"]"));k=$APP.q(k);for(var m=null,r=0,u=0;;)if(u<r){var x=m.C(null,u);$APP.U(x,"selected");u+=1}else if(k=$APP.q(k))m=k,$APP.Zc(m)?(k=$APP.Eb(m),u=$APP.Fb(m),m=k,r=$APP.w(k),k=u):(k=$APP.t(m),$APP.U(k,"selected"),k=$APP.v(m),m=null,r=0),u=0;else break;h=$APP.n(f)?null:$APP.S(h,"selected",
10
+ "")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?$APP.U(h,"selected"):$APP.S(h,"selected",""):null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);var k=$APP.l(f.detail,"direction"),m=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.gj(a,"x-table-sort",$APP.$m(new $APP.M(null,3,[bN,h,$APP.Ir,k,$APP.pv,m],null)))):f=null;return f}var e={};a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",
11
+ c);a.addEventListener("x-table-row-connected",b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},cN=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.l(b,"sort"),d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",b)}return $APP.Q(a,"__xTableHandlers",null)},Ega=function(a){$APP.mj(a,"columns",
12
+ "columns","");$APP.mj(a,"caption","caption","");$APP.mj(a,"selectable","selectable","none");$APP.jj(a,"striped","striped");$APP.jj(a,"bordered","bordered");$APP.jj(a,"compact","compact");$APP.jj(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return LM(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.U(this,"row-count"):$APP.S(this,"row-count",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0})},Fga=function(a){NM(a);cN(a);Dga(a);
13
+ return $M(a)},Gga=function(a){return cN(a)},Hga=function(a,b,c,d){return $APP.I(c,d)?$M(a):null},dN=function(){return $APP.ri("x-table",new $APP.M(null,5,[$APP.ii,Iga,$APP.gi,Fga,$APP.di,Gga,$APP.ci,Hga,$APP.hi,Ega],null))},SM=new $APP.F(null,"full-width?","full-width?",1477288349),UM=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),QM=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),bN=new $APP.F(null,"colIndex","colIndex",171239635),XM=new $APP.F(null,"row-count","row-count",
14
+ 1060167988),PM=new $APP.F(null,"caption-raw","caption-raw",-375935083),aN=new $APP.F(null,"selectionMode","selectionMode",1264773367),OM=new $APP.F(null,"columns-raw","columns-raw",-2093994046),WM=new $APP.F(null,"selectable","selectable",370587038),VM=new $APP.F(null,"caption","caption",-855383902),RM=new $APP.F(null,"bordered?","bordered?",562358476),MM=new $APP.F(null,"caption-div","caption-div",1485363333),TM=new $APP.F(null,"compact?","compact?",1216893298);var Iga="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.ie(["x-table-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[bN,$APP.Y,$APP.Ir,$APP.X,$APP.pv,$APP.X],null),$APP.Xu,!0],null),"x-table-row-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Yr,$APP.Y,$APP.Ds,$APP.rj,aN,$APP.X],null),$APP.Xu,!0],null)]);var Cga=new $APP.bh(null,new $APP.M(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ha("baredom.exports.x_table.init",dN);export const init=dN;
package/dist/x-tabs.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var uT=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Ti);var c=$APP.C(b,$APP.Zt),d=$APP.C(b,tT),e=$APP.C(b,$APP.Z);b=$APP.C(b,$APP.qv);c=$APP.cd(nka,c)?c:"horizontal";d=$APP.cd(oka,d)?d:"auto";return new $APP.M(null,5,[$APP.Ti,a,$APP.Zt,c,tT,d,$APP.Z,e,$APP.qv,$APP.D(b)],null)},vT=function(a){return new $APP.M(null,5,[$APP.Ti,a.getAttribute("value"),$APP.Zt,a.getAttribute("orientation"),tT,a.getAttribute("activation"),$APP.Z,a.getAttribute("label"),$APP.qv,a.hasAttribute("loop")],null)},wT=function(a){return $APP.Ze($APP.De(function(b){return $APP.z.j("X-TAB",
3
- b.tagName)},$APP.Dc(a.children)))},xT=function(a){return $APP.p(a.hasAttribute("disabled"))},yT=function(a){return a.getAttribute("value")},pka=function(a){return $APP.oe(function(b){return xT(b)?b:null},a)},zT=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.I(c,b):b)?$APP.S(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.n(b?c:b)&&$APP.U(a,"value"))},AT=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?$APP.S(a,"selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&
4
- $APP.U(a,"selected"))},BT=function(a,b){var c=a.getAttribute("tabindex");$APP.I(c,b)&&$APP.S(a,"tabindex",b)},CT=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.I(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?$APP.U(a,"hidden"):$APP.S(a,"hidden","")))},DT=function(a){var b=wT(a),c=a.getAttribute("value"),d=$APP.gh($APP.se(yT,b));$APP.n($APP.n(c)?$APP.cd(d,c):c)||(c=pka(b),c=$APP.n(c)?yT(c):null);if($APP.n(c)){a:{d=$APP.q(b);for(var e=null,f=0,h=0;;)if(h<f){var k=e.C(null,
5
- h),m=$APP.z.j(yT(k),c);AT(k,m);m&&xT(k)?BT(k,"0"):BT(k,"-1");h+=1}else if(d=$APP.q(d))$APP.Zc(d)?(e=$APP.Eb(d),d=$APP.Fb(d),k=e,f=$APP.w(e),e=k):(k=$APP.t(d),e=$APP.z.j(yT(k),c),AT(k,e),e&&xT(k)?BT(k,"0"):BT(k,"-1"),d=$APP.v(d),e=null,f=0),h=0;else break a}a:for(b=$APP.q(b),d=null,f=e=0;;)if(f<e)k=d.C(null,f),CT(k,$APP.z.j(yT(k),c)),f+=1;else if(b=$APP.q(b))d=b,$APP.Zc(d)?(b=$APP.Eb(d),e=$APP.Fb(d),d=b,k=$APP.w(b),b=e,e=k):(k=$APP.t(d),CT(k,$APP.z.j(yT(k),c)),b=$APP.v(d),d=null,e=0),f=0;else break a;
6
- zT(a,c)}return c},ET=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.I(c,b):b)&&$APP.gj(a,"value-change-request",{value:b,previousValue:$APP.n(c)?c:""})?(zT(a,b),DT(a),$APP.ej(a,"value-change",{value:$APP.n(b)?b:""})):null},FT=function(a,b,c){b=$APP.w(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},GT=function(a,b,c){var d=a-1;b=$APP.w(b)-1;return d>=0?d:$APP.n(c)?b:a},HT=function(a){var b=uT(vT(a));if($APP.I(b,$APP.l(a,"__xTabsModel"))){var c=$APP.l(a,"__xTabsBase");if($APP.n(c)){$APP.S(c,
7
- "role","tablist");$APP.S(c,"aria-orientation",$APP.Zt.i(b));var d=$APP.Z.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.S(c,"aria-label",d):$APP.U(c,"aria-label")}$APP.Q(a,"__xTabsModel",b)}return DT(a)},qka=function(a){var b=new MutationObserver(function(){return HT(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.Q(a,"__xTabsObserver",b)},IT=function(a){function b(d){a:{var e=$APP.Ze($APP.De(xT,wT(a))),f=uT(vT(a)),h=$APP.Zt.i(f);
8
- var k=tT.i(f);f=$APP.qv.i(f);var m=d.key,r=e.indexOf(document.activeElement);if(r>=0&&(h=$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowRight")?FT(r,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowLeft")?GT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowDown")?FT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowUp")?GT(r,e,f):$APP.z.j(m,"Home")?0:$APP.z.j(m,"End")?$APP.w(e)-1:null,h!=null)){d.preventDefault();d=$APP.B(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.z.j(k,"auto")?ET(a,yT(d)):null:
9
- null;break a}k=null}return k}function c(d){d.stopPropagation();return ET(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTabsOnTabSelect",c);$APP.Q(a,"__xTabsOnKeydown",b);qka(a)},rka=function(a){if($APP.Ui(a,"__xTabsInitialized"))return IT(a),HT(a);if(!$APP.Ui(a,"__xTabsInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";
10
- $APP.S(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);IT(a);$APP.Vi(a,"__xTabsInitialized")}HT(a);return a},ska=function(a){var b=$APP.l(a,"__xTabsOnTabSelect");$APP.n(b)&&a.removeEventListener("tab-select",b);b=$APP.l(a,"__xTabsOnKeydown");$APP.n(b)&&a.removeEventListener("keydown",b);a=$APP.l(a,"__xTabsObserver");return $APP.n(a)?a.disconnect():null},tka=function(a,b,c,d){return $APP.I(c,d)&&$APP.Ui(a,"__xTabsInitialized")?HT(a):
11
- null},vka=function(a){return $APP.tj(a,uka)},JT=function(){return $APP.ri("x-tabs",new $APP.M(null,5,[$APP.ii,wka,$APP.gi,rka,$APP.di,ska,$APP.ci,tka,$APP.hi,vka],null))},tT=new $APP.F(null,"activation","activation",2128521072);var wka=["value","orientation","activation","label","loop"],nka=new $APP.bh(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),oka=new $APP.bh(null,new $APP.M(null,2,["auto",null,"manual",null],null),null),uka=new $APP.M(null,1,[$APP.Ti,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null)],null);
12
- $APP.ie(["value-change-request",new $APP.M(null,2,[$APP.Xu,!0,$APP.V,new $APP.M(null,2,[$APP.Ti,$APP.X,$APP.st,$APP.X],null)],null),"value-change",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Ti,$APP.X],null)],null)]);$APP.ha("baredom.exports.x_tabs.init",JT);export const init=JT;
2
+ var tT=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Ti);var c=$APP.C(b,$APP.Zt),d=$APP.C(b,sT),e=$APP.C(b,$APP.Z);b=$APP.C(b,$APP.qv);c=$APP.cd(oka,c)?c:"horizontal";d=$APP.cd(pka,d)?d:"auto";return new $APP.M(null,5,[$APP.Ti,a,$APP.Zt,c,sT,d,$APP.Z,e,$APP.qv,$APP.D(b)],null)},uT=function(a){return new $APP.M(null,5,[$APP.Ti,a.getAttribute("value"),$APP.Zt,a.getAttribute("orientation"),sT,a.getAttribute("activation"),$APP.Z,a.getAttribute("label"),$APP.qv,a.hasAttribute("loop")],null)},vT=function(a){return $APP.Ze($APP.De(function(b){return $APP.z.j("X-TAB",
3
+ b.tagName)},$APP.Dc(a.children)))},wT=function(a){return $APP.p(a.hasAttribute("disabled"))},xT=function(a){return a.getAttribute("value")},qka=function(a){return $APP.oe(function(b){return wT(b)?b:null},a)},yT=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.I(c,b):b)?$APP.S(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.n(b?c:b)&&$APP.U(a,"value"))},zT=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?$APP.S(a,"selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&
4
+ $APP.U(a,"selected"))},AT=function(a,b){var c=a.getAttribute("tabindex");$APP.I(c,b)&&$APP.S(a,"tabindex",b)},BT=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.I(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?$APP.U(a,"hidden"):$APP.S(a,"hidden","")))},CT=function(a){var b=vT(a),c=a.getAttribute("value"),d=$APP.gh($APP.se(xT,b));$APP.n($APP.n(c)?$APP.cd(d,c):c)||(c=qka(b),c=$APP.n(c)?xT(c):null);if($APP.n(c)){a:{d=$APP.q(b);for(var e=null,f=0,h=0;;)if(h<f){var k=e.C(null,
5
+ h),m=$APP.z.j(xT(k),c);zT(k,m);m&&wT(k)?AT(k,"0"):AT(k,"-1");h+=1}else if(d=$APP.q(d))$APP.Zc(d)?(e=$APP.Eb(d),d=$APP.Fb(d),k=e,f=$APP.w(e),e=k):(k=$APP.t(d),e=$APP.z.j(xT(k),c),zT(k,e),e&&wT(k)?AT(k,"0"):AT(k,"-1"),d=$APP.v(d),e=null,f=0),h=0;else break a}a:for(b=$APP.q(b),d=null,f=e=0;;)if(f<e)k=d.C(null,f),BT(k,$APP.z.j(xT(k),c)),f+=1;else if(b=$APP.q(b))d=b,$APP.Zc(d)?(b=$APP.Eb(d),e=$APP.Fb(d),d=b,k=$APP.w(b),b=e,e=k):(k=$APP.t(d),BT(k,$APP.z.j(xT(k),c)),b=$APP.v(d),d=null,e=0),f=0;else break a;
6
+ yT(a,c)}return c},DT=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.I(c,b):b)&&$APP.gj(a,"value-change-request",{value:b,previousValue:$APP.n(c)?c:""})?(yT(a,b),CT(a),$APP.ej(a,"value-change",{value:$APP.n(b)?b:""})):null},ET=function(a,b,c){b=$APP.w(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},FT=function(a,b,c){var d=a-1;b=$APP.w(b)-1;return d>=0?d:$APP.n(c)?b:a},GT=function(a){var b=tT(uT(a));if($APP.I(b,$APP.l(a,"__xTabsModel"))){var c=$APP.l(a,"__xTabsBase");if($APP.n(c)){$APP.S(c,
7
+ "role","tablist");$APP.S(c,"aria-orientation",$APP.Zt.i(b));var d=$APP.Z.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.S(c,"aria-label",d):$APP.U(c,"aria-label")}$APP.Q(a,"__xTabsModel",b)}return CT(a)},rka=function(a){var b=new MutationObserver(function(){return GT(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.Q(a,"__xTabsObserver",b)},HT=function(a){function b(d){a:{var e=$APP.Ze($APP.De(wT,vT(a))),f=tT(uT(a)),h=$APP.Zt.i(f);
8
+ var k=sT.i(f);f=$APP.qv.i(f);var m=d.key,r=e.indexOf(document.activeElement);if(r>=0&&(h=$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowRight")?ET(r,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowLeft")?FT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowDown")?ET(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowUp")?FT(r,e,f):$APP.z.j(m,"Home")?0:$APP.z.j(m,"End")?$APP.w(e)-1:null,h!=null)){d.preventDefault();d=$APP.A(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.z.j(k,"auto")?DT(a,xT(d)):null:
9
+ null;break a}k=null}return k}function c(d){d.stopPropagation();return DT(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTabsOnTabSelect",c);$APP.Q(a,"__xTabsOnKeydown",b);rka(a)},ska=function(a){if($APP.Ui(a,"__xTabsInitialized"))return HT(a),GT(a);if(!$APP.Ui(a,"__xTabsInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";
10
+ $APP.S(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);HT(a);$APP.Vi(a,"__xTabsInitialized")}GT(a);return a},tka=function(a){var b=$APP.l(a,"__xTabsOnTabSelect");$APP.n(b)&&a.removeEventListener("tab-select",b);b=$APP.l(a,"__xTabsOnKeydown");$APP.n(b)&&a.removeEventListener("keydown",b);a=$APP.l(a,"__xTabsObserver");return $APP.n(a)?a.disconnect():null},uka=function(a,b,c,d){return $APP.I(c,d)&&$APP.Ui(a,"__xTabsInitialized")?GT(a):
11
+ null},wka=function(a){return $APP.tj(a,vka)},IT=function(){return $APP.ri("x-tabs",new $APP.M(null,5,[$APP.ii,xka,$APP.gi,ska,$APP.di,tka,$APP.ci,uka,$APP.hi,wka],null))},sT=new $APP.F(null,"activation","activation",2128521072);var xka=["value","orientation","activation","label","loop"],oka=new $APP.bh(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),pka=new $APP.bh(null,new $APP.M(null,2,["auto",null,"manual",null],null),null),vka=new $APP.M(null,1,[$APP.Ti,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null)],null);
12
+ $APP.ie(["value-change-request",new $APP.M(null,2,[$APP.Xu,!0,$APP.V,new $APP.M(null,2,[$APP.Ti,$APP.X,$APP.st,$APP.X],null)],null),"value-change",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Ti,$APP.X],null)],null)]);$APP.ha("baredom.exports.x_tabs.init",IT);export const init=IT;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var n7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},o7=function(a,b,c){$APP.Bj(b,c,new $APP.M(null,4,[$APP.uj,a.hasAttribute("error"),$APP.vj,a.getAttribute("error"),$APP.wj,a.hasAttribute("required"),$APP.xj,$APP.z.j(c.value,"")],null))},w7=function(a){a=$APP.vg([p7,$APP.Oj,$APP.Lj,$APP.so,$APP.jr,q7,$APP.Pj,r7,$APP.Qj,$APP.$l,$APP.Mj,$APP.Rj,s7,$APP.Nj],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),
3
3
  a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.G(a),c=$APP.C(b,s7),d=$APP.C(b,$APP.Nj),e=$APP.C(b,p7),f=$APP.C(b,$APP.Oj),h=$APP.C(b,$APP.Lj),k=$APP.C(b,$APP.so),m=$APP.C(b,$APP.jr),r=$APP.C(b,q7);a=$APP.C(b,$APP.Pj);var u=$APP.C(b,r7),x=$APP.C(b,$APP.Qj),y=$APP.C(b,
4
- $APP.$l),A=$APP.C(b,$APP.Mj);b=$APP.C(b,$APP.Rj);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",O=$APP.n(f)?f:"";x=$APP.D(x);y=$APP.D(y);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";A=$APP.n(A)?A:"";c=n7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.cd(Rua,e)?e:"vertical";r=n7(r);return $APP.vg([$APP.wj,$APP.em,$APP.Vj,$APP.xq,$APP.Uj,$APP.Ti,t7,$APP.ku,$APP.uj,u7,$APP.Iu,v7,$APP.Er,$APP.Z,$APP.vj,$APP.jk,$APP.Wj],[x,y,d,m,h,
5
- A,c,f,k,e,H,n7(u),$APP.n(r)?r:3,O,E,$APP.n(b)?b:"",$APP.D(a)])},x7=function(a,b,c,d){a.textContent=b;$APP.n(c)?a.classList.remove(d):a.classList.add(d)},y7=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.jk),m=$APP.C(h,$APP.Wj),r=$APP.C(h,$APP.wj),u=$APP.C(h,$APP.em),x=$APP.C(h,$APP.Vj),y=$APP.C(h,t7),A=$APP.C(h,$APP.Uj),E=$APP.C(h,u7),H=$APP.C(h,v7);h=$APP.C(h,$APP.Er);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=
4
+ $APP.$l),B=$APP.C(b,$APP.Mj);b=$APP.C(b,$APP.Rj);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",O=$APP.n(f)?f:"";x=$APP.D(x);y=$APP.D(y);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";B=$APP.n(B)?B:"";c=n7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.cd(Sua,e)?e:"vertical";r=n7(r);return $APP.vg([$APP.wj,$APP.em,$APP.Vj,$APP.xq,$APP.Uj,$APP.Ti,t7,$APP.ku,$APP.uj,u7,$APP.Iu,v7,$APP.Er,$APP.Z,$APP.vj,$APP.Xj,$APP.Wj],[x,y,d,m,h,
5
+ B,c,f,k,e,H,n7(u),$APP.n(r)?r:3,O,E,$APP.n(b)?b:"",$APP.D(a)])},x7=function(a,b,c,d){a.textContent=b;$APP.n(c)?a.classList.remove(d):a.classList.add(d)},y7=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.Xj),m=$APP.C(h,$APP.Wj),r=$APP.C(h,$APP.wj),u=$APP.C(h,$APP.em),x=$APP.C(h,$APP.Vj),y=$APP.C(h,t7),B=$APP.C(h,$APP.Uj),E=$APP.C(h,u7),H=$APP.C(h,v7);h=$APP.C(h,$APP.Er);d.name=B;d.placeholder=x;d.disabled=m;d.readOnly=
6
6
  u;d.required=r;d.rows=h;d.autocomplete=k;$APP.n(H)?$APP.S(d,"maxlength",""+$APP.P.i(H)):$APP.U(d,"maxlength");$APP.n(y)?$APP.S(d,"minlength",""+$APP.P.i(y)):$APP.U(d,"minlength");a.style.setProperty("--x-text-area-resize",E);r=$APP.G(c);k=$APP.C(r,$APP.wj);m=$APP.C(r,$APP.uj);r=$APP.C(r,$APP.xq);$APP.S(d,"aria-required",$APP.n(k)?"true":"false");$APP.S(d,"aria-invalid",$APP.n(m)?"true":"false");k=$APP.n($APP.n(r)?m:r)?"hint error":$APP.n(r)?"hint":$APP.n(m)?"error":null;$APP.n(k)?$APP.S(d,"aria-describedby",
7
7
  k):$APP.U(d,"aria-describedby");m=$APP.G(c);k=$APP.C(m,$APP.Z);m=$APP.C(m,$APP.ku);x7(e,k,m,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.Iu);k=$APP.C(k,$APP.xq);x7(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.vj);e=$APP.C(e,$APP.uj);x7(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.uj);$APP.$i(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&o7(a,b,d);return $APP.Q(a,"__xTextAreaModel",c)},z7=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.n(b)?y7(a,b,w7(a)):null},
8
- Sua=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.gj(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),o7(a,d,b)),$APP.ej(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},Tua=function(a){var b=$APP.l(a,"__xTextAreaRefs");
9
- if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return Sua(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.n(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.n(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.n(k)&&(k.setFormValue(f),o7(a,k,e));e=$APP.ej(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",c);b.addEventListener("change",d);$APP.Q(a,"__xTextAreaHandlers",{input:c,change:d})}},A7=function(a){var b=
10
- $APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.Q(a,"__xTextAreaHandlers",null)}return null},Uua=function(a,b){$APP.$i(a,"disabled",$APP.D(b));return z7(a)},Vua=function(a){$APP.U(a,"value");$APP.U(a,"error");var b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");
11
- $APP.n(b)&&b.setFormValue("");return z7(a)},Wua=function(a){if(!$APP.n($APP.l(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
8
+ Tua=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.gj(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),o7(a,d,b)),$APP.ej(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},Uua=function(a){var b=$APP.l(a,"__xTextAreaRefs");
9
+ if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return Tua(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.n(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.n(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.n(k)&&(k.setFormValue(f),o7(a,k,e));e=$APP.ej(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",c);b.addEventListener("change",d);$APP.Q(a,"__xTextAreaHandlers",{input:c,change:d})}},A7=function(a){var b=
10
+ $APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.Q(a,"__xTextAreaHandlers",null)}return null},Vua=function(a,b){$APP.$i(a,"disabled",$APP.D(b));return z7(a)},Wua=function(a){$APP.U(a,"value");$APP.U(a,"error");var b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");
11
+ $APP.n(b)&&b.setFormValue("");return z7(a)},Xua=function(a){if(!$APP.n($APP.l(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
12
12
  $APP.S(d,"part","field");$APP.S(e,"part","label");$APP.S(e,"id","label");$APP.S(e,"for","textarea");$APP.S(f,"part","textarea-wrapper");$APP.S(h,"part","textarea");$APP.S(h,"id","textarea");$APP.S(h,"aria-labelledby","label");$APP.S(k,"part","hint");$APP.S(k,"id","hint");$APP.S(k,"aria-live","polite");$APP.S(m,"part","error");$APP.S(m,"id","error");$APP.S(m,"role","alert");$APP.S(m,"aria-live","assertive");f.appendChild(h);d.appendChild(e);d.appendChild(f);d.appendChild(k);d.appendChild(m);b.appendChild(c);
13
- b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));Tua(a);return z7(a)},Xua=function(a){return A7(a)},Yua=function(a,b,c,d){return $APP.I(c,d)?($APP.z.j(b,
14
- "value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},Zua=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&
15
- $APP.I(b)?""+$APP.P.i(b):"";$APP.S(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},$ua=function(a){$APP.Fj(a,"__xTextAreaInternals");Zua(a);$APP.mj(a,"name","name","");$APP.mj(a,"placeholder","placeholder","");$APP.mj(a,"autocomplete","autocomplete","");$APP.jj(a,"disabled","disabled");$APP.jj(a,"readOnly","readonly");$APP.jj(a,"required","required");$APP.oj(a,"rows","rows",3);$APP.oj(a,"maxLength","maxlength",null);return $APP.oj(a,"minLength",
16
- "minlength",null)},B7=function(){return $APP.ri("x-text-area",new $APP.M(null,8,[$APP.ii,ava,$APP.gi,Wua,$APP.di,Xua,$APP.ci,Yua,$APP.ei,!0,$APP.bi,Uua,$APP.ai,Vua,$APP.hi,$ua],null))},t7=new $APP.F(null,"minlength","minlength",259053545),s7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),r7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),v7=new $APP.F(null,"maxlength","maxlength",-1163911985),p7=new $APP.F(null,"resize-raw","resize-raw",-287517888),q7=new $APP.F(null,"rows-raw",
17
- "rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",297367086);var ava="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),Rua=new $APP.bh(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
18
- $APP.vg([$APP.Zv,$APP.jv,$APP.Mr,$APP.tn,$APP.Uj,$APP.Ti,new $APP.F(null,"minLength","minLength",-1538722770),$APP.Er,$APP.Zu,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.jk,$APP.Ut,$APP.Xs,$APP.et],[new $APP.M(null,2,[$APP.N,$APP.X,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.ts,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,
13
+ b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));Uua(a);return z7(a)},Yua=function(a){return A7(a)},Zua=function(a,b,c,d){return $APP.I(c,d)?($APP.z.j(b,
14
+ "value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},$ua=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&
15
+ $APP.I(b)?""+$APP.P.i(b):"";$APP.S(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},ava=function(a){$APP.Fj(a,"__xTextAreaInternals");$ua(a);$APP.mj(a,"name","name","");$APP.mj(a,"placeholder","placeholder","");$APP.mj(a,"autocomplete","autocomplete","");$APP.jj(a,"disabled","disabled");$APP.jj(a,"readOnly","readonly");$APP.jj(a,"required","required");$APP.oj(a,"rows","rows",3);$APP.oj(a,"maxLength","maxlength",null);return $APP.oj(a,"minLength",
16
+ "minlength",null)},B7=function(){return $APP.ri("x-text-area",new $APP.M(null,8,[$APP.ii,bva,$APP.gi,Xua,$APP.di,Yua,$APP.ci,Zua,$APP.ei,!0,$APP.bi,Vua,$APP.ai,Wua,$APP.hi,ava],null))},t7=new $APP.F(null,"minlength","minlength",259053545),s7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),r7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),v7=new $APP.F(null,"maxlength","maxlength",-1163911985),p7=new $APP.F(null,"resize-raw","resize-raw",-287517888),q7=new $APP.F(null,"rows-raw",
17
+ "rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",297367086);var bva="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),Sua=new $APP.bh(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
18
+ $APP.vg([$APP.Zv,$APP.jv,$APP.Mr,$APP.tn,$APP.Uj,$APP.Ti,new $APP.F(null,"minLength","minLength",-1538722770),$APP.Er,$APP.Zu,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.Xj,$APP.Ut,$APP.Xs,$APP.et],[new $APP.M(null,2,[$APP.N,$APP.X,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.ts,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,
19
19
  $APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"minlength"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"rows"],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.N,$APP.pt,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"required"],null),new $APP.M(null,2,[$APP.N,$APP.Ks,$APP.qj,!0],null)]);
20
20
  $APP.ie(["x-text-area-change-request",new $APP.M(null,2,[$APP.Xu,!0,$APP.V,new $APP.M(null,3,[$APP.Uj,$APP.X,$APP.Ti,$APP.X,$APP.st,$APP.X],null)],null),"x-text-area-input",new $APP.M(null,2,[$APP.Xu,!1,$APP.V,new $APP.M(null,2,[$APP.Uj,$APP.X,$APP.Ti,$APP.X],null)],null),"x-text-area-change",new $APP.M(null,2,[$APP.Xu,!1,$APP.V,new $APP.M(null,2,[$APP.Uj,$APP.X,$APP.Ti,$APP.X],null)],null)]);$APP.ha("baredom.exports.x_text_area.init",B7);export const init=B7;
package/dist/x-theme.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var pia=function(a,b){var c=BQ.i(CQ),d=DQ.i(CQ),e=b.light,f=b.dark;b=$APP.Xg($APP.Dc([c,$APP.n(e)?$APP.Ff.j($APP.je,function(){return function m(k){return new $APP.Hd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Zc(r)){var u=$APP.Eb(r),x=$APP.w(u),y=$APP.Kd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Ic(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Nd(y.ea(),m($APP.Fb(r))):$APP.Nd(y.ea(),null)}y=$APP.t(r);return $APP.Ed(new $APP.J(null,
3
- 2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.fc(r)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Xg($APP.Dc([d,$APP.n(f)?$APP.Ff.j($APP.je,function(){return function m(k){return new $APP.Hd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Zc(r)){var u=$APP.Eb(r),x=$APP.w(u),y=$APP.Kd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Ic(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Nd(y.ea(),m($APP.Fb(r))):$APP.Nd(y.ea(),null)}y=$APP.t(r);
4
- return $APP.Ed(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.fc(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ka(EQ,a,new $APP.M(null,2,[BQ,b,DQ,d],null))},FQ=function(a){var b=[];a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null);f=$APP.B(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.q(a))$APP.Zc(a)?(d=$APP.Eb(a),a=$APP.Fb(a),c=d,d=$APP.w(d)):(d=$APP.t(a),c=$APP.B(d,0,null),d=$APP.B(d,1,null),b.push(""+$APP.P.i(c)+
5
- ":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},GQ=function(a){var b=new $APP.M(null,1,[$APP.Zs,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Zs),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.cd(qia,c)&&$APP.l(EQ,c)==null?"default":c;var e=$APP.l(EQ,c);$APP.n(e)||(c=$APP.C(ria,c),e=$APP.n(c)?c:CQ);c=BQ.i(e);e=DQ.i(e);c=":host{display:contents;"+$APP.P.i(FQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
6
- $APP.P.i(FQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},sia=function(a){if(!$APP.n($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xThemeRefs",{style:c})}return GQ(a)},tia=function(){return null},uia=function(a,b,c,d){return $APP.I(c,d)?GQ(a):null},via=function(a){return $APP.nj(a,"preset","preset")},HQ=function(a,b){return pia(a,
7
- b)},IQ=function(){return $APP.ri("x-theme",new $APP.M(null,5,[$APP.ii,wia,$APP.gi,sia,$APP.di,tia,$APP.ci,uia,$APP.hi,via],null))},BQ=new $APP.F(null,"light","light",1918998747),DQ=new $APP.F(null,"dark","dark",1818973999);var wia=["preset"],JQ=$APP.vg("--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(";")),KQ=$APP.ie("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
- LQ=$APP.ie(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),MQ=$APP.ie("--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(" ")),NQ=$APP.ie("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),OQ=$APP.ie(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),PQ=$APP.ie("--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
- QQ=$APP.ie("--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(";")),CQ=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,PQ,MQ,NQ,OQ,$APP.vg("--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(" "))])),DQ,$APP.Xg($APP.Dc([QQ,$APP.vg("--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),xia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,PQ,MQ,NQ,OQ,$APP.vg("--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(" "))])),DQ,$APP.Xg($APP.Dc([QQ,$APP.vg("--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),yia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,PQ,MQ,NQ,OQ,$APP.vg("--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(" "))])),DQ,$APP.Xg($APP.Dc([QQ,$APP.vg("--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),zia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,PQ,MQ,NQ,OQ,$APP.vg("--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(" "))])),DQ,$APP.Xg($APP.Dc([QQ,$APP.vg("--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),Aia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,LQ,MQ,NQ,OQ,$APP.vg("--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(";"))])),DQ,$APP.vg("--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),Bia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,MQ,NQ,OQ,$APP.vg("--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(";"))])),DQ,$APP.vg("--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),Cia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([KQ,LQ,MQ,NQ,OQ,$APP.vg("--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(";"))])),DQ,$APP.vg("--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),Dia=new $APP.M(null,2,[BQ,$APP.Xg($APP.Dc([JQ,KQ,LQ,PQ,MQ,NQ,OQ,$APP.vg("--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(" "))])),DQ,$APP.Xg($APP.Dc([QQ,$APP.vg("--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),ria=new $APP.M(null,8,["default",CQ,"ocean",xia,"forest",yia,"sunset",zia,"neo-brutalist",Aia,"aurora",Bia,"mono-ai",Cia,"warm-mineral",Dia],null),EQ=Object.create(null),qia=new $APP.bh(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
26
- "default",null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",HQ);$APP.ha("baredom.exports.x_theme.init",IQ);export const init=IQ;export const registerPreset=HQ;
2
+ var qia=function(a,b){var c=AQ.i(BQ),d=CQ.i(BQ),e=b.light,f=b.dark;b=$APP.Ng($APP.Dc([c,$APP.n(e)?$APP.Ff.j($APP.je,function(){return function m(k){return new $APP.Hd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Zc(r)){var u=$APP.Eb(r),x=$APP.w(u),y=$APP.Kd(x);a:{for(var B=0;;)if(B<x){var E=$APP.Ic(u,B);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));B+=1}else{u=!0;break a}u=void 0}return u?$APP.Nd(y.ea(),m($APP.Fb(r))):$APP.Nd(y.ea(),null)}y=$APP.t(r);return $APP.Ed(new $APP.J(null,
3
+ 2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.fc(r)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Ng($APP.Dc([d,$APP.n(f)?$APP.Ff.j($APP.je,function(){return function m(k){return new $APP.Hd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Zc(r)){var u=$APP.Eb(r),x=$APP.w(u),y=$APP.Kd(x);a:{for(var B=0;;)if(B<x){var E=$APP.Ic(u,B);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));B+=1}else{u=!0;break a}u=void 0}return u?$APP.Nd(y.ea(),m($APP.Fb(r))):$APP.Nd(y.ea(),null)}y=$APP.t(r);
4
+ return $APP.Ed(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.fc(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ka(DQ,a,new $APP.M(null,2,[AQ,b,CQ,d],null))},EQ=function(a){var b=[];a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.A(f,0,null);f=$APP.A(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.q(a))$APP.Zc(a)?(d=$APP.Eb(a),a=$APP.Fb(a),c=d,d=$APP.w(d)):(d=$APP.t(a),c=$APP.A(d,0,null),d=$APP.A(d,1,null),b.push(""+$APP.P.i(c)+
5
+ ":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},FQ=function(a){var b=new $APP.M(null,1,[$APP.Zs,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Zs),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.cd(ria,c)&&$APP.l(DQ,c)==null?"default":c;var e=$APP.l(DQ,c);$APP.n(e)||(c=$APP.C(sia,c),e=$APP.n(c)?c:BQ);c=AQ.i(e);e=CQ.i(e);c=":host{display:contents;"+$APP.P.i(EQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
6
+ $APP.P.i(EQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},tia=function(a){if(!$APP.n($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xThemeRefs",{style:c})}return FQ(a)},uia=function(){return null},via=function(a,b,c,d){return $APP.I(c,d)?FQ(a):null},wia=function(a){return $APP.nj(a,"preset","preset")},GQ=function(a,b){return qia(a,
7
+ b)},HQ=function(){return $APP.ri("x-theme",new $APP.M(null,5,[$APP.ii,xia,$APP.gi,tia,$APP.di,uia,$APP.ci,via,$APP.hi,wia],null))},AQ=new $APP.F(null,"light","light",1918998747),CQ=new $APP.F(null,"dark","dark",1818973999);var xia=["preset"],IQ=$APP.vg("--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(";")),JQ=$APP.ie("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
+ KQ=$APP.ie(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),LQ=$APP.ie("--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(" ")),MQ=$APP.ie("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),NQ=$APP.ie(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),OQ=$APP.ie("--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
+ PQ=$APP.ie("--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(";")),BQ=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.vg("--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(" "))])),CQ,$APP.Ng($APP.Dc([PQ,$APP.vg("--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),yia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.vg("--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(" "))])),CQ,$APP.Ng($APP.Dc([PQ,$APP.vg("--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),zia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.vg("--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(" "))])),CQ,$APP.Ng($APP.Dc([PQ,$APP.vg("--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),Aia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.vg("--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(" "))])),CQ,$APP.Ng($APP.Dc([PQ,$APP.vg("--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),Bia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,KQ,LQ,MQ,NQ,$APP.vg("--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(";"))])),CQ,$APP.vg("--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),Cia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,LQ,MQ,NQ,$APP.vg("--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(";"))])),CQ,$APP.vg("--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),Dia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([JQ,KQ,LQ,MQ,NQ,$APP.vg("--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(";"))])),CQ,$APP.vg("--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),Eia=new $APP.M(null,2,[AQ,$APP.Ng($APP.Dc([IQ,JQ,KQ,OQ,LQ,MQ,NQ,$APP.vg("--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(" "))])),CQ,$APP.Ng($APP.Dc([PQ,$APP.vg("--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),sia=new $APP.M(null,8,["default",BQ,"ocean",yia,"forest",zia,"sunset",Aia,"neo-brutalist",Bia,"aurora",Cia,"mono-ai",Dia,"warm-mineral",Eia],null),DQ=Object.create(null),ria=new $APP.bh(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
26
+ "default",null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",GQ);$APP.ha("baredom.exports.x_theme.init",HQ);export const init=HQ;export const registerPreset=GQ;
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var Ew=function(a){a=$APP.C(Dw,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.qq},Gw=function(a){a=$APP.C(Fw,a);return $APP.n(a)?a:"pending"},Jw=function(a){a=$APP.C(Hw,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Iw},Kw=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Lw=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Nw=function(a,
3
3
  b){a=$APP.C(Mw,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(Mw,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.el);return b},Ow=function(a,b,c){a=Gw(a);c=c!=null?"Step "+$APP.P.i(c+1)+": ":null;return""+$APP.P.i(c)+$APP.P.i(typeof b==="string"&&$APP.I(b,"")?""+$APP.P.i(b)+" ":null)+"("+$APP.P.i(a)+")"},Yw=function(a){var b=$APP.G(a),c=$APP.C(b,Pw);a=$APP.C(b,$APP.Wj);var d=$APP.C(b,$APP.ks),e=$APP.C(b,$APP.Oj),f=$APP.C(b,Qw),h=$APP.C(b,$APP.Jq),k=$APP.C(b,Rw),m=$APP.C(b,
4
- $APP.dr),r=$APP.C(b,Sw),u=$APP.C(b,$APP.bq),x=$APP.C(b,$APP.Js);b=$APP.C(b,$APP.Sr);var y=Ew(m),A=Kw(b),E=$APP.n($APP.n(u)?A==null:u)?$APP.Tv:A!=null?$APP.lu:$APP.sj;m=function(){var H=E instanceof $APP.F?E.da:null;switch(H){case "default":return H=$APP.C(Tw,y),$APP.n(H)?H:$APP.C(Tw,$APP.qq);case "custom":return A;case "hidden":return null;default:throw Error("No matching clause: "+$APP.P.i(H));}}();c=Lw(c);d=Nw(k,d);e=$APP.n(e)?e:"";x=$APP.n(x)?x:"";return $APP.vg([$APP.tq,Uw,Vw,Qw,Sw,$APP.mt,$APP.Aq,
5
- $APP.Rs,$APP.Z,Ww,$APP.Gs,$APP.Wj,Xw],[Jw(h),c,m,$APP.D(f),$APP.D(r),$APP.z.j(E,$APP.lu)?A:null,x,y,e,Ow(y,e,c),E,$APP.D(a),d])},Zw=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Wj);return $APP.p(a)},hx=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),
6
- m=document.createElement("div"),r=document.createElement("slot"),u=document.createElement("span"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),E=document.createElement("div"),H=document.createElement("slot"),O=document.createElement("div"),T=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:var(--x-color-border,rgba(0,0,0,0.06));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-timeline-item-connector-color:var(--x-color-border,rgba(0,0,0,0.12));--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-timeline-item-label-font-size:var(--x-font-size-sm,0.8125rem);--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(0,0,0,0.025));--x-timeline-item-motion:var(--x-transition-duration,150ms);--x-timeline-item-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-timeline-item-connector-color:var(--x-color-border,rgba(255,255,255,0.15));--x-timeline-item-label-color:var(--x-color-text-muted,rgba(255,255,255,0.5));--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(255,255,255,0.03));}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(0,102,204,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-primary,rgba(0,102,204,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(16,140,72,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-success,rgba(16,140,72,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(190,20,40,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-danger,rgba(190,20,40,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(204,120,0,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-warning,rgba(204,120,0,0.4));}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(80,160,255,1));--x-timeline-item-connector-color:var(--x-color-primary,rgba(80,160,255,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(60,210,120,1));--x-timeline-item-connector-color:var(--x-color-success,rgba(60,210,120,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(255,90,110,1));--x-timeline-item-connector-color:var(--x-color-danger,rgba(255,90,110,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(255,190,90,1));--x-timeline-item-connector-color:var(--x-color-warning,rgba(255,190,90,0.4));}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:var(--x-radius-sm,4px);}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:var(--x-color-focus-ring,rgba(80,160,255,0.7));}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
- $APP.S(d,"class","timeline-item");$APP.S(e,"class","label-col");$APP.S(f,"name","label");$APP.S(h,"class","label-text");f.appendChild(h);e.appendChild(f);$APP.S(k,"class","track-col");$APP.S(m,"class","marker");$APP.S(r,"name","icon");$APP.S(u,"class","default-icon");$APP.S(u,"aria-hidden","true");r.appendChild(u);m.appendChild(r);$APP.S(x,"class","connector");k.appendChild(m);k.appendChild(x);$APP.S(y,"class","content-col");$APP.S(A,"class","title");$APP.S(E,"class","body");E.appendChild(H);$APP.S(O,
8
- "class","actions");$APP.S(T,"name","actions");O.appendChild(T);y.appendChild(A);y.appendChild(E);y.appendChild(O);d.appendChild(e);d.appendChild(k);d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTimelineItemRefs",$APP.vg([$APP.tq,$w,$APP.qt,$APP.Nv,ax,bx,$APP.tv,cx,$APP.Sk,dx,$APP.ut,ex,fx,gx,$APP.Kr,$APP.ho],[x,h,m,u,e,k,E,H,b,T,A,y,d,O,r,f]));return $APP.l(a,"__xTimelineItemRefs")},ix=function(a){return Yw($APP.vg([$APP.ks,$APP.Oj,Qw,$APP.Jq,Rw,$APP.dr,Sw,$APP.bq,$APP.Js,$APP.Sr,
4
+ $APP.dr),r=$APP.C(b,Sw),u=$APP.C(b,$APP.bq),x=$APP.C(b,$APP.Js);b=$APP.C(b,$APP.Sr);var y=Ew(m),B=Kw(b),E=$APP.n($APP.n(u)?B==null:u)?$APP.Tv:B!=null?$APP.lu:$APP.sj;m=function(){var H=E instanceof $APP.F?E.da:null;switch(H){case "default":return H=$APP.C(Tw,y),$APP.n(H)?H:$APP.C(Tw,$APP.qq);case "custom":return B;case "hidden":return null;default:throw Error("No matching clause: "+$APP.P.i(H));}}();c=Lw(c);d=Nw(k,d);e=$APP.n(e)?e:"";x=$APP.n(x)?x:"";return $APP.vg([$APP.tq,Uw,Vw,Qw,Sw,$APP.mt,$APP.Aq,
5
+ $APP.Rs,$APP.Z,Ww,$APP.Gs,$APP.Wj,Xw],[Jw(h),c,m,$APP.D(f),$APP.D(r),$APP.z.j(E,$APP.lu)?B:null,x,y,e,Ow(y,e,c),E,$APP.D(a),d])},Zw=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Wj);return $APP.p(a)},hx=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),
6
+ m=document.createElement("div"),r=document.createElement("slot"),u=document.createElement("span"),x=document.createElement("div"),y=document.createElement("div"),B=document.createElement("div"),E=document.createElement("div"),H=document.createElement("slot"),O=document.createElement("div"),T=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:var(--x-color-border,rgba(0,0,0,0.06));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-timeline-item-connector-color:var(--x-color-border,rgba(0,0,0,0.12));--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-timeline-item-label-font-size:var(--x-font-size-sm,0.8125rem);--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(0,0,0,0.025));--x-timeline-item-motion:var(--x-transition-duration,150ms);--x-timeline-item-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-timeline-item-connector-color:var(--x-color-border,rgba(255,255,255,0.15));--x-timeline-item-label-color:var(--x-color-text-muted,rgba(255,255,255,0.5));--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(255,255,255,0.03));}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(0,102,204,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-primary,rgba(0,102,204,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(16,140,72,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-success,rgba(16,140,72,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(190,20,40,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-danger,rgba(190,20,40,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(204,120,0,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-warning,rgba(204,120,0,0.4));}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(80,160,255,1));--x-timeline-item-connector-color:var(--x-color-primary,rgba(80,160,255,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(60,210,120,1));--x-timeline-item-connector-color:var(--x-color-success,rgba(60,210,120,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(255,90,110,1));--x-timeline-item-connector-color:var(--x-color-danger,rgba(255,90,110,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(255,190,90,1));--x-timeline-item-connector-color:var(--x-color-warning,rgba(255,190,90,0.4));}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:var(--x-radius-sm,4px);}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:var(--x-color-focus-ring,rgba(80,160,255,0.7));}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
+ $APP.S(d,"class","timeline-item");$APP.S(e,"class","label-col");$APP.S(f,"name","label");$APP.S(h,"class","label-text");f.appendChild(h);e.appendChild(f);$APP.S(k,"class","track-col");$APP.S(m,"class","marker");$APP.S(r,"name","icon");$APP.S(u,"class","default-icon");$APP.S(u,"aria-hidden","true");r.appendChild(u);m.appendChild(r);$APP.S(x,"class","connector");k.appendChild(m);k.appendChild(x);$APP.S(y,"class","content-col");$APP.S(B,"class","title");$APP.S(E,"class","body");E.appendChild(H);$APP.S(O,
8
+ "class","actions");$APP.S(T,"name","actions");O.appendChild(T);y.appendChild(B);y.appendChild(E);y.appendChild(O);d.appendChild(e);d.appendChild(k);d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTimelineItemRefs",$APP.vg([$APP.tq,$w,$APP.qt,$APP.Nv,ax,bx,$APP.tv,cx,$APP.Sk,dx,$APP.ut,ex,fx,gx,$APP.Kr,$APP.ho],[x,h,m,u,e,k,E,H,b,T,B,y,d,O,r,f]));return $APP.l(a,"__xTimelineItemRefs")},ix=function(a){return Yw($APP.vg([$APP.ks,$APP.Oj,Qw,$APP.Jq,Rw,$APP.dr,Sw,$APP.bq,$APP.Js,$APP.Sr,
9
9
  Pw,$APP.Wj],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},jx=function(a){var b=ix(a);if($APP.I($APP.l(a,"__xTimelineItemModel"),b)){var c=hx(a),d=$APP.G(c);c=$APP.C(d,$w);var e=$APP.C(d,$APP.qt),f=$APP.C(d,$APP.ut);d=
10
10
  $APP.C(d,$APP.Nv);var h=$APP.G(b),k=$APP.C(h,$APP.Rs),m=$APP.C(h,Xw);h=$APP.C(h,$APP.tq);$APP.S(a,"data-status",Gw(k));$APP.Q(a,"__xTimelineItemSelfPos",!0);$APP.S(a,"data-position",$APP.jh(m));$APP.Q(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.da:null){case "dashed":$APP.S(a,"data-connector","dashed");break;case "none":$APP.S(a,"data-connector","none");break;default:$APP.U(a,"data-connector")}h=$APP.G(b);k=$APP.C(h,$APP.Z);m=$APP.C(h,$APP.Aq);h=$APP.C(h,$APP.Wj);$APP.S(a,"role",
11
11
  "listitem");$APP.n(h)?($APP.S(a,"aria-disabled","true"),a.tabIndex=-1):($APP.U(a,"aria-disabled"),a.tabIndex=0);k=$APP.I(m,"")?m:$APP.I(k,"")?k:null;$APP.n(k)?$APP.S(a,"aria-label",k):$APP.U(a,"aria-label");m=$APP.G(b);k=$APP.C(m,Vw);m=$APP.C(m,Ww);$APP.S(e,"aria-label",m);d.textContent=k!=null?k:"";d=$APP.G(b);e=$APP.C(d,$APP.Z);d=$APP.C(d,$APP.Aq);c.textContent=e;$APP.I(d,"")?($APP.U(f,"hidden"),f.textContent=d):($APP.S(f,"hidden",""),f.textContent="");a=$APP.Q(a,"__xTimelineItemModel",b)}else a=
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(ota,a)?a:"start"},pta=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.td(b,2)===0?"start":"end";default:return"start"}},z4=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
2
+ var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(pta,a)?a:"start"},qta=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.td(b,2)===0?"start":"end";default:return"start"}},z4=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
3
  $APP.S(d,"part","label");$APP.S(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTimelineRefs",new $APP.M(null,3,[$APP.Sk,b,y4,d,$APP.nu,e],null));return $APP.l(a,"__xTimelineRefs")},A4=function(a){a=new $APP.M(null,3,[$APP.Oj,a.getAttribute("label"),$APP.ks,a.getAttribute("position"),$APP.Ct,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Oj);var c=$APP.C(b,$APP.ks);b=$APP.C(b,$APP.Ct);return new $APP.M(null,3,[$APP.Z,$APP.n(a)?a:"",$APP.Uv,x4(c),$APP.Ct,
4
4
  $APP.D(b)],null)},B4=function(a){var b=A4(a);if($APP.I($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Z),d=z4(a);d=$APP.G(d);d=$APP.C(d,y4);$APP.S(a,"role","list");$APP.I(c,"")?$APP.S(a,"aria-label",c):$APP.U(a,"aria-label");$APP.I(c,"")?(d.textContent=c,$APP.U(d,"hidden")):(d.textContent="",$APP.S(d,"hidden",""));$APP.Q(a,"__xTimelineModel",b)}},C4=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:A4(a);var c=$APP.G(b);b=$APP.C(c,$APP.Uv);c=$APP.C(c,$APP.Ct);a=a.querySelectorAll("x-timeline-item");
5
- for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.S(f,"data-index",""+$APP.P.i(e));h?$APP.S(f,"data-last",""):$APP.U(f,"data-last");$APP.S(f,"data-position",pta(b,e));$APP.n(c)?$APP.S(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},qta=function(a){function b(){return $APP.n(a.isConnected)?C4(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=
5
+ for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.S(f,"data-index",""+$APP.P.i(e));h?$APP.S(f,"data-last",""):$APP.U(f,"data-last");$APP.S(f,"data-position",qta(b,e));$APP.n(c)?$APP.S(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},rta=function(a){function b(){return $APP.n(a.isConnected)?C4(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=
6
6
  $APP.l(e,"status");e=$APP.l(e,"label");return $APP.ej(a,"x-timeline-select",$APP.$m(new $APP.M(null,3,[$APP.Ul,$APP.n(f)?f:0,$APP.Rs,$APP.n(h)?h:"",$APP.Z,$APP.n(e)?e:""],null)))}function d(){return C4(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.Q(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},D4=function(a){var b=$APP.l(a,"__xTimelineHandlers");
7
- if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.Q(a,"__xTimelineHandlers",null)},rta=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
8
- $APP.I(b,""):b)?$APP.S(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.S(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.jj(a,"striped","striped")},sta=function(a){z4(a);B4(a);D4(a);qta(a);return C4(a)},tta=function(a){return D4(a)},uta=function(a,b,c,d){return $APP.I(c,d)?(B4(a),C4(a)):
9
- null},E4=function(){return $APP.ri("x-timeline",new $APP.M(null,5,[$APP.ii,vta,$APP.gi,sta,$APP.di,tta,$APP.ci,uta,$APP.hi,rta],null))},y4=new $APP.F(null,"label-div","label-div",1505730697);var vta=["label","position","striped"];$APP.ie(["x-timeline-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Ul,$APP.Y,$APP.Rs,$APP.X,$APP.Z,$APP.X],null),$APP.Xu,!1],null)]);var ota=new $APP.bh(null,new $APP.M(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",E4);export const init=E4;
7
+ if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.Q(a,"__xTimelineHandlers",null)},sta=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
8
+ $APP.I(b,""):b)?$APP.S(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.S(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.jj(a,"striped","striped")},tta=function(a){z4(a);B4(a);D4(a);rta(a);return C4(a)},uta=function(a){return D4(a)},vta=function(a,b,c,d){return $APP.I(c,d)?(B4(a),C4(a)):
9
+ null},E4=function(){return $APP.ri("x-timeline",new $APP.M(null,5,[$APP.ii,wta,$APP.gi,tta,$APP.di,uta,$APP.ci,vta,$APP.hi,sta],null))},y4=new $APP.F(null,"label-div","label-div",1505730697);var wta=["label","position","striped"];$APP.ie(["x-timeline-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Ul,$APP.Y,$APP.Rs,$APP.X,$APP.Z,$APP.X],null),$APP.Xu,!1],null)]);var pta=new $APP.bh(null,new $APP.M(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",E4);export const init=E4;