@vanelsas/baredom 2.4.0 → 2.5.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 (181) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +83 -5
  3. package/custom-elements.json +7338 -0
  4. package/dist/baredom.d.ts +97 -0
  5. package/dist/base.js +53 -53
  6. package/dist/integrity.json +87 -87
  7. package/dist/x-alert.d.ts +43 -0
  8. package/dist/x-alert.js +16 -16
  9. package/dist/x-avatar-group.d.ts +18 -0
  10. package/dist/x-avatar-group.js +10 -10
  11. package/dist/x-avatar.d.ts +21 -0
  12. package/dist/x-avatar.js +2 -2
  13. package/dist/x-badge.d.ts +19 -0
  14. package/dist/x-badge.js +7 -7
  15. package/dist/x-bento-grid.d.ts +12 -0
  16. package/dist/x-bento-grid.js +2 -2
  17. package/dist/x-bento-item.d.ts +12 -0
  18. package/dist/x-bento-item.js +4 -4
  19. package/dist/x-breadcrumbs.d.ts +20 -0
  20. package/dist/x-breadcrumbs.js +14 -14
  21. package/dist/x-button.d.ts +45 -0
  22. package/dist/x-button.js +4 -4
  23. package/dist/x-cancel-dialogue.d.ts +50 -0
  24. package/dist/x-cancel-dialogue.js +12 -12
  25. package/dist/x-card.d.ts +39 -0
  26. package/dist/x-card.js +3 -3
  27. package/dist/x-carousel.d.ts +48 -0
  28. package/dist/x-carousel.js +28 -28
  29. package/dist/x-chart.d.ts +23 -0
  30. package/dist/x-chart.js +28 -28
  31. package/dist/x-checkbox.d.ts +45 -0
  32. package/dist/x-checkbox.js +6 -6
  33. package/dist/x-chip.d.ts +41 -0
  34. package/dist/x-chip.js +8 -8
  35. package/dist/x-collapse.d.ts +42 -0
  36. package/dist/x-collapse.js +1 -1
  37. package/dist/x-color-picker.d.ts +47 -0
  38. package/dist/x-color-picker.js +40 -40
  39. package/dist/x-combobox.d.ts +46 -0
  40. package/dist/x-combobox.js +24 -24
  41. package/dist/x-command-palette.d.ts +46 -0
  42. package/dist/x-command-palette.js +24 -24
  43. package/dist/x-container.d.ts +14 -0
  44. package/dist/x-container.js +2 -2
  45. package/dist/x-context-menu.d.ts +17 -0
  46. package/dist/x-context-menu.js +9 -9
  47. package/dist/x-copy.d.ts +51 -0
  48. package/dist/x-copy.js +6 -6
  49. package/dist/x-currency-field.d.ts +51 -0
  50. package/dist/x-currency-field.js +9 -8
  51. package/dist/x-date-picker.d.ts +20 -0
  52. package/dist/x-date-picker.js +8 -8
  53. package/dist/x-divider.d.ts +20 -0
  54. package/dist/x-divider.js +3 -3
  55. package/dist/x-drawer.d.ts +44 -0
  56. package/dist/x-drawer.js +3 -3
  57. package/dist/x-dropdown.d.ts +42 -0
  58. package/dist/x-dropdown.js +9 -9
  59. package/dist/x-fieldset.d.ts +14 -0
  60. package/dist/x-fieldset.js +2 -2
  61. package/dist/x-file-download.d.ts +40 -0
  62. package/dist/x-file-download.js +7 -7
  63. package/dist/x-file-upload.d.ts +46 -0
  64. package/dist/x-file-upload.js +22 -22
  65. package/dist/x-form-field.d.ts +47 -0
  66. package/dist/x-form-field.js +6 -6
  67. package/dist/x-form.d.ts +41 -0
  68. package/dist/x-form.js +3 -3
  69. package/dist/x-gaussian-blur.d.ts +20 -0
  70. package/dist/x-gaussian-blur.js +6 -6
  71. package/dist/x-grid.d.ts +12 -0
  72. package/dist/x-grid.js +3 -3
  73. package/dist/x-icon.d.ts +15 -0
  74. package/dist/x-icon.js +2 -2
  75. package/dist/x-image.d.ts +48 -0
  76. package/dist/x-image.js +6 -6
  77. package/dist/x-kinetic-font.d.ts +48 -0
  78. package/dist/x-kinetic-font.js +11 -11
  79. package/dist/x-kinetic-typography.d.ts +27 -0
  80. package/dist/x-kinetic-typography.js +20 -20
  81. package/dist/x-liquid-dock.d.ts +47 -0
  82. package/dist/x-liquid-dock.js +35 -35
  83. package/dist/x-liquid-fill.d.ts +46 -0
  84. package/dist/x-liquid-fill.js +18 -18
  85. package/dist/x-liquid-glass.d.ts +25 -0
  86. package/dist/x-liquid-glass.js +10 -10
  87. package/dist/x-menu-item.d.ts +41 -0
  88. package/dist/x-menu.d.ts +42 -0
  89. package/dist/x-menu.js +1 -1
  90. package/dist/x-metaball-cursor.d.ts +21 -0
  91. package/dist/x-metaball-cursor.js +9 -9
  92. package/dist/x-modal.d.ts +44 -0
  93. package/dist/x-modal.js +2 -2
  94. package/dist/x-morph-stack.d.ts +46 -0
  95. package/dist/x-morph-stack.js +39 -39
  96. package/dist/x-navbar.d.ts +46 -0
  97. package/dist/x-navbar.js +3 -3
  98. package/dist/x-neural-glow.d.ts +22 -0
  99. package/dist/x-neural-glow.js +2 -2
  100. package/dist/x-notification-center.d.ts +42 -0
  101. package/dist/x-notification-center.js +10 -10
  102. package/dist/x-organic-divider.d.ts +19 -0
  103. package/dist/x-organic-progress.d.ts +45 -0
  104. package/dist/x-organic-progress.js +9 -9
  105. package/dist/x-organic-shape.d.ts +18 -0
  106. package/dist/x-pagination.d.ts +44 -0
  107. package/dist/x-pagination.js +1 -1
  108. package/dist/x-particle-button.d.ts +47 -0
  109. package/dist/x-particle-button.js +7 -7
  110. package/dist/x-popover.d.ts +45 -0
  111. package/dist/x-popover.js +23 -23
  112. package/dist/x-progress-circle.d.ts +41 -0
  113. package/dist/x-progress-circle.js +3 -3
  114. package/dist/x-progress.d.ts +44 -0
  115. package/dist/x-progress.js +3 -3
  116. package/dist/x-radio.d.ts +44 -0
  117. package/dist/x-radio.js +11 -11
  118. package/dist/x-ripple-effect.d.ts +42 -0
  119. package/dist/x-ripple-effect.js +5 -5
  120. package/dist/x-scroll-parallax.d.ts +45 -0
  121. package/dist/x-scroll-parallax.js +3 -3
  122. package/dist/x-scroll-stack.d.ts +46 -0
  123. package/dist/x-scroll-stack.js +6 -6
  124. package/dist/x-scroll-story.d.ts +56 -0
  125. package/dist/x-scroll-story.js +14 -14
  126. package/dist/x-scroll-timeline.d.ts +58 -0
  127. package/dist/x-scroll-timeline.js +43 -43
  128. package/dist/x-scroll.d.ts +51 -0
  129. package/dist/x-scroll.js +14 -14
  130. package/dist/x-search-field.d.ts +47 -0
  131. package/dist/x-search-field.js +15 -14
  132. package/dist/x-select.d.ts +40 -0
  133. package/dist/x-select.js +3 -3
  134. package/dist/x-sidebar.d.ts +40 -0
  135. package/dist/x-sidebar.js +8 -8
  136. package/dist/x-skeleton-group.d.ts +15 -0
  137. package/dist/x-skeleton-group.js +5 -5
  138. package/dist/x-skeleton.d.ts +16 -0
  139. package/dist/x-slider.d.ts +48 -0
  140. package/dist/x-slider.js +5 -5
  141. package/dist/x-soft-body.d.ts +44 -0
  142. package/dist/x-soft-body.js +5 -5
  143. package/dist/x-spacer.d.ts +15 -0
  144. package/dist/x-spacer.js +1 -1
  145. package/dist/x-spinner.d.ts +15 -0
  146. package/dist/x-splash.d.ts +42 -0
  147. package/dist/x-splash.js +3 -3
  148. package/dist/x-stat.d.ts +21 -0
  149. package/dist/x-stat.js +6 -6
  150. package/dist/x-stepper.d.ts +42 -0
  151. package/dist/x-stepper.js +14 -14
  152. package/dist/x-switch.d.ts +44 -0
  153. package/dist/x-switch.js +5 -5
  154. package/dist/x-tab.d.ts +40 -0
  155. package/dist/x-tab.js +7 -7
  156. package/dist/x-table-cell.d.ts +50 -0
  157. package/dist/x-table-cell.js +5 -5
  158. package/dist/x-table-row.d.ts +43 -0
  159. package/dist/x-table-row.js +10 -10
  160. package/dist/x-table.d.ts +124 -0
  161. package/dist/x-table.js +3 -3
  162. package/dist/x-tabs.d.ts +70 -0
  163. package/dist/x-tabs.js +2 -2
  164. package/dist/x-text-area.d.ts +47 -0
  165. package/dist/x-text-area.js +7 -7
  166. package/dist/x-theme.d.ts +15 -0
  167. package/dist/x-timeline-item.d.ts +46 -0
  168. package/dist/x-timeline-item.js +19 -19
  169. package/dist/x-timeline.d.ts +78 -0
  170. package/dist/x-timeline.js +3 -3
  171. package/dist/x-toast.d.ts +45 -0
  172. package/dist/x-toast.js +21 -21
  173. package/dist/x-toaster.d.ts +41 -0
  174. package/dist/x-toaster.js +8 -8
  175. package/dist/x-tooltip.d.ts +43 -0
  176. package/dist/x-tooltip.js +12 -12
  177. package/dist/x-typography.d.ts +16 -0
  178. package/dist/x-typography.js +1 -1
  179. package/dist/x-welcome-tour.d.ts +92 -0
  180. package/dist/x-welcome-tour.js +59 -59
  181. package/package.json +502 -392
@@ -0,0 +1,42 @@
1
+ // x-notification-center.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XNotificationCenterEventMap {
6
+ "x-notification-center-push": CustomEvent<{ id: string; count: number }>;
7
+ "x-notification-center-dismiss": CustomEvent<{ id: string; type: string; reason: string; text: string; count: number }>;
8
+ "x-notification-center-empty": CustomEvent<{}>;
9
+ }
10
+
11
+ export interface XNotificationCenter extends HTMLElement {
12
+ position: string;
13
+ max: number;
14
+ readonly count: number;
15
+
16
+ addEventListener<K extends keyof XNotificationCenterEventMap>(
17
+ type: K,
18
+ listener: (this: XNotificationCenter, ev: XNotificationCenterEventMap[K]) => any,
19
+ options?: boolean | AddEventListenerOptions
20
+ ): void;
21
+ addEventListener(
22
+ type: string,
23
+ listener: EventListenerOrEventListenerObject,
24
+ options?: boolean | AddEventListenerOptions
25
+ ): void;
26
+ removeEventListener<K extends keyof XNotificationCenterEventMap>(
27
+ type: K,
28
+ listener: (this: XNotificationCenter, ev: XNotificationCenterEventMap[K]) => any,
29
+ options?: boolean | EventListenerOptions
30
+ ): void;
31
+ removeEventListener(
32
+ type: string,
33
+ listener: EventListenerOrEventListenerObject,
34
+ options?: boolean | EventListenerOptions
35
+ ): void;
36
+ }
37
+
38
+ declare global {
39
+ interface HTMLElementTagNameMap {
40
+ "x-notification-center": XNotificationCenter;
41
+ }
42
+ }
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var vo=function(a){return typeof a==="string"&&$APP.I(uo,a.toLowerCase())?a.toLowerCase():"top-right"},wo=function(a){if(a==null)return 5;a=parseInt(""+$APP.T.g(a),10);return typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:5},xo=function(a){var b=$APP.k(a,"__xNcRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;position:fixed;z-index:var(--x-notification-center-z-index,9999);--x-notification-center-width:360px;--x-notification-center-gap:8px;--x-notification-center-offset-x:16px;--x-notification-center-offset-y:16px;--x-notification-center-z-index:9999;pointer-events:none;}:host([data-position\x3d'top-right']){top:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-left']){top:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-right']){bottom:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-left']){bottom:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-center']){top:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}:host([data-position\x3d'bottom-center']){bottom:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-notification-center-gap);width:var(--x-notification-center-width);pointer-events:auto;}:host([data-position\x3d'bottom-right']) [part\x3dcontainer],:host([data-position\x3d'bottom-left']) [part\x3dcontainer],:host([data-position\x3d'bottom-center']) [part\x3dcontainer]{flex-direction:column-reverse;}";
3
- d.setAttribute("part","container");d.setAttribute("role","log");d.setAttribute("aria-live","polite");b.appendChild(c);b.appendChild(d);a.__xNcRefs={root:b,container:d};return $APP.k(a,"__xNcRefs")},yo=function(a){var b=a.getAttribute("position");b=vo(b);a.setAttribute("data-position",b)},zo=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1}))},Ao=function(a){function b(d){var e=xo(a),g=$APP.k(e,"container"),h=d.target;e=h.getAttribute("data-notification-id");
4
- g=g.querySelectorAll("x-alert").length-1;h=h.getAttribute("type");var l=d.detail.reason;d=d.detail.text;zo(a,"x-notification-center-dismiss",new $APP.R(null,5,[$APP.xl,e,$APP.Z,$APP.n(h)?h:"info",$APP.Qi,$APP.n(l)?l:"",$APP.Al,$APP.n(d)?d:"",$APP.Rh,g],null));g===0&&zo(a,"x-notification-center-empty",$APP.Qd);return null}var c=xo(a);$APP.k(c,"root").addEventListener("x-alert-dismiss",b,{capture:!1});$APP.ja(a,"__xNcHandlers",{dismiss:b})},Bo=function(a){var b=$APP.k(a,"__xNcHandlers"),c=$APP.k(a,
5
- "__xNcRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.k(c,"root"),b=$APP.k(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert-dismiss",b,{capture:!1}));a.__xNcHandlers=null},Do=function(a,b){var c=xo(a);c=$APP.k(c,"container");if(c.querySelectorAll("x-alert").length<function(){var q=$APP.k(a,"__xNcMax");return $APP.n(q)?q:5}()){var d=document.createElement("x-alert"),e=function(){var q=$APP.k(b,"id");$APP.n(q)||(q=Co.v,Co.v=q+1,q="xnc-"+$APP.T.g(q));return q}(),g=$APP.k(b,"type"),h=$APP.k(b,"text"),l=$APP.k(b,
6
- "icon"),m=$APP.k(b,"timeoutMs"),p=$APP.k(b,"dismissible");d.setAttribute("data-notification-id",e);$APP.n(g)&&d.setAttribute("type",g);$APP.n(h)&&d.setAttribute("text",h);$APP.n(l)&&d.setAttribute("icon",l);$APP.n(m)&&d.setAttribute("timeout-ms",""+$APP.T.g(m|0));p===!1&&d.setAttribute("dismissible","false");c.appendChild(d);zo(a,"x-notification-center-push",new $APP.R(null,2,[$APP.xl,e,$APP.Rh,c.querySelectorAll("x-alert").length],null));return e}return null},Eo=function(a){Object.defineProperty(a,
7
- "position",{get:function(){return vo(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){return wo(this.getAttribute("max"))},set:function(b){return $APP.n(b)?this.setAttribute("max",""+$APP.T.g(b|0)):this.removeAttribute("max")},enumerable:!0,configurable:!0});Object.defineProperty(a,"count",{get:function(){var b=$APP.k(this,"__xNcRefs");
8
- return $APP.n(b)?$APP.k(b,"container").querySelectorAll("x-alert").length:0},enumerable:!0,configurable:!0})},Go=function(){var a=class extends HTMLElement{};a.observedAttributes=Fo;a.prototype.connectedCallback=function(){xo(this);Bo(this);Ao(this);yo(this);return null};a.prototype.disconnectedCallback=function(){Bo(this);return null};a.prototype.attributeChangedCallback=function(b){$APP.B.i(b,"position")?yo(this):$APP.B.i(b,"max")&&(this.__xNcMax=wo(this.getAttribute("max")));return null};Eo(a.prototype);
9
- a.prototype.push=function(b){return Do(this,b)};a.prototype.clear=function(){var b=xo(this);b=$APP.t($APP.uc($APP.k(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d)c.F(null,e).remove(),e+=1;else if(b=$APP.t(b))c=b,$APP.Nc(c)?(b=$APP.yb(c),e=$APP.zb(c),c=b,d=$APP.z(b),b=e):($APP.u(c).remove(),b=$APP.w(c),c=null,d=0),e=0;else break;return null};return a},Ho=function(){$APP.n(customElements.get("x-notification-center"))||customElements.define("x-notification-center",Go());
10
- return null};var Fo=["position","max"],uo=new $APP.S(null,new $APP.R(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
11
- $APP.Pd(["x-notification-center-push",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.xl,$APP.Y,$APP.Rh,$APP.W],null),$APP.jm,!1],null),"x-notification-center-dismiss",new $APP.R(null,2,[$APP.V,new $APP.R(null,5,[$APP.xl,$APP.Y,$APP.Z,$APP.Y,$APP.Qi,$APP.Y,$APP.Al,$APP.Y,$APP.Rh,$APP.W],null),$APP.jm,!1],null),"x-notification-center-empty",new $APP.R(null,2,[$APP.V,$APP.Qd,$APP.jm,!1],null)]);var Co={v:0};$APP.ha("baredom.exports.x_notification_center.init",Ho);export const init=Ho;
2
+ var wo=function(a){return typeof a==="string"&&$APP.I(vo,a.toLowerCase())?a.toLowerCase():"top-right"},xo=function(a){if(a==null)return 5;a=parseInt(""+$APP.T.g(a),10);return typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:5},yo=function(a){var b=$APP.k(a,"__xNcRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;position:fixed;z-index:var(--x-notification-center-z-index,9999);--x-notification-center-width:360px;--x-notification-center-gap:8px;--x-notification-center-offset-x:16px;--x-notification-center-offset-y:16px;--x-notification-center-z-index:9999;pointer-events:none;}:host([data-position\x3d'top-right']){top:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-left']){top:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-right']){bottom:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-left']){bottom:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-center']){top:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}:host([data-position\x3d'bottom-center']){bottom:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-notification-center-gap);width:var(--x-notification-center-width);pointer-events:auto;}:host([data-position\x3d'bottom-right']) [part\x3dcontainer],:host([data-position\x3d'bottom-left']) [part\x3dcontainer],:host([data-position\x3d'bottom-center']) [part\x3dcontainer]{flex-direction:column-reverse;}";
3
+ d.setAttribute("part","container");d.setAttribute("role","log");d.setAttribute("aria-live","polite");b.appendChild(c);b.appendChild(d);a.__xNcRefs={root:b,container:d};return $APP.k(a,"__xNcRefs")},zo=function(a){var b=a.getAttribute("position");b=wo(b);a.setAttribute("data-position",b)},Ao=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1}))},Bo=function(a){function b(d){var e=yo(a),g=$APP.k(e,"container"),h=d.target;e=h.getAttribute("data-notification-id");
4
+ g=g.querySelectorAll("x-alert").length-1;h=h.getAttribute("type");var l=d.detail.reason;d=d.detail.text;Ao(a,"x-notification-center-dismiss",new $APP.R(null,5,[$APP.yl,e,$APP.Z,$APP.n(h)?h:"info",$APP.Qi,$APP.n(l)?l:"",$APP.Bl,$APP.n(d)?d:"",$APP.Rh,g],null));g===0&&Ao(a,"x-notification-center-empty",$APP.Qd);return null}var c=yo(a);$APP.k(c,"root").addEventListener("x-alert-dismiss",b,{capture:!1});$APP.ja(a,"__xNcHandlers",{dismiss:b})},Co=function(a){var b=$APP.k(a,"__xNcHandlers"),c=$APP.k(a,
5
+ "__xNcRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.k(c,"root"),b=$APP.k(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert-dismiss",b,{capture:!1}));a.__xNcHandlers=null},Eo=function(a,b){var c=yo(a);c=$APP.k(c,"container");if(c.querySelectorAll("x-alert").length<function(){var q=$APP.k(a,"__xNcMax");return $APP.n(q)?q:5}()){var d=document.createElement("x-alert"),e=function(){var q=$APP.k(b,"id");$APP.n(q)||(q=Do.v,Do.v=q+1,q="xnc-"+$APP.T.g(q));return q}(),g=$APP.k(b,"type"),h=$APP.k(b,"text"),l=$APP.k(b,
6
+ "icon"),m=$APP.k(b,"timeoutMs"),p=$APP.k(b,"dismissible");d.setAttribute("data-notification-id",e);$APP.n(g)&&d.setAttribute("type",g);$APP.n(h)&&d.setAttribute("text",h);$APP.n(l)&&d.setAttribute("icon",l);$APP.n(m)&&d.setAttribute("timeout-ms",""+$APP.T.g(m|0));p===!1&&d.setAttribute("dismissible","false");c.appendChild(d);Ao(a,"x-notification-center-push",new $APP.R(null,2,[$APP.yl,e,$APP.Rh,c.querySelectorAll("x-alert").length],null));return e}return null},Fo=function(a){Object.defineProperty(a,
7
+ "position",{get:function(){return wo(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){return xo(this.getAttribute("max"))},set:function(b){return $APP.n(b)?this.setAttribute("max",""+$APP.T.g(b|0)):this.removeAttribute("max")},enumerable:!0,configurable:!0});Object.defineProperty(a,"count",{get:function(){var b=$APP.k(this,"__xNcRefs");
8
+ return $APP.n(b)?$APP.k(b,"container").querySelectorAll("x-alert").length:0},enumerable:!0,configurable:!0})},Ho=function(){var a=class extends HTMLElement{};a.observedAttributes=Go;a.prototype.connectedCallback=function(){yo(this);Co(this);Bo(this);zo(this);return null};a.prototype.disconnectedCallback=function(){Co(this);return null};a.prototype.attributeChangedCallback=function(b){$APP.B.i(b,"position")?zo(this):$APP.B.i(b,"max")&&(this.__xNcMax=xo(this.getAttribute("max")));return null};Fo(a.prototype);
9
+ a.prototype.push=function(b){return Eo(this,b)};a.prototype.clear=function(){var b=yo(this);b=$APP.t($APP.uc($APP.k(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d)c.F(null,e).remove(),e+=1;else if(b=$APP.t(b))c=b,$APP.Nc(c)?(b=$APP.yb(c),e=$APP.zb(c),c=b,d=$APP.z(b),b=e):($APP.u(c).remove(),b=$APP.w(c),c=null,d=0),e=0;else break;return null};return a},Io=function(){$APP.n(customElements.get("x-notification-center"))||customElements.define("x-notification-center",Ho());
10
+ return null};var Go=["position","max"],vo=new $APP.S(null,new $APP.R(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
11
+ $APP.Pd(["x-notification-center-push",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.yl,$APP.Y,$APP.Rh,$APP.W],null),$APP.km,!1],null),"x-notification-center-dismiss",new $APP.R(null,2,[$APP.V,new $APP.R(null,5,[$APP.yl,$APP.Y,$APP.Z,$APP.Y,$APP.Qi,$APP.Y,$APP.Bl,$APP.Y,$APP.Rh,$APP.W],null),$APP.km,!1],null),"x-notification-center-empty",new $APP.R(null,2,[$APP.V,$APP.Qd,$APP.km,!1],null)]);var Do={v:0};$APP.ha("baredom.exports.x_notification_center.init",Io);export const init=Io;
@@ -0,0 +1,19 @@
1
+ // x-organic-divider.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XOrganicDivider extends HTMLElement {
6
+ shape: string;
7
+ layers: string;
8
+ height: string;
9
+ flip: boolean;
10
+ mirror: boolean;
11
+ animation: string;
12
+ path: string;
13
+ }
14
+
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ "x-organic-divider": XOrganicDivider;
18
+ }
19
+ }
@@ -0,0 +1,45 @@
1
+ // x-organic-progress.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XOrganicProgressEventMap {
6
+ "x-organic-progress-complete": CustomEvent<{ progress: number }>;
7
+ "x-organic-progress-bloom-end": CustomEvent<{ progress: number }>;
8
+ }
9
+
10
+ export interface XOrganicProgress extends HTMLElement {
11
+ progress: string;
12
+ variant: string;
13
+ color: string;
14
+ bloom: boolean;
15
+ density: string;
16
+ seed: number;
17
+ label: string;
18
+
19
+ addEventListener<K extends keyof XOrganicProgressEventMap>(
20
+ type: K,
21
+ listener: (this: XOrganicProgress, ev: XOrganicProgressEventMap[K]) => any,
22
+ options?: boolean | AddEventListenerOptions
23
+ ): void;
24
+ addEventListener(
25
+ type: string,
26
+ listener: EventListenerOrEventListenerObject,
27
+ options?: boolean | AddEventListenerOptions
28
+ ): void;
29
+ removeEventListener<K extends keyof XOrganicProgressEventMap>(
30
+ type: K,
31
+ listener: (this: XOrganicProgress, ev: XOrganicProgressEventMap[K]) => any,
32
+ options?: boolean | EventListenerOptions
33
+ ): void;
34
+ removeEventListener(
35
+ type: string,
36
+ listener: EventListenerOrEventListenerObject,
37
+ options?: boolean | EventListenerOptions
38
+ ): void;
39
+ }
40
+
41
+ declare global {
42
+ interface HTMLElementTagNameMap {
43
+ "x-organic-progress": XOrganicProgress;
44
+ }
45
+ }
@@ -6,8 +6,8 @@ c){var d=[],e=[];c=K4(c);for(var g=[0],h=[20,100,0,0],l=a.length,m=0;;)if(m<l){s
6
6
  g[0]*.2;return b.i?b.i(H,200):b.call(null,H,200)}();h[2]+=.436+.1*p;break;case "[":e.push([h[0],h[1],h[2],h[3]]);h[3]+=1;break;case "]":e.length>0&&(p=e.pop(),h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3])}m+=1}else break;d.sort(function(H,G){var J=$APP.k(H,"x2")-20;H=$APP.k(H,"y2")-100;var Q=$APP.k(G,"x2")-20;G=$APP.k(G,"y2")-100;return J*J+H*H-(Q*Q+G*G)});return[d,d.length]},T4=function(a,b,c,d){a=""+$APP.T.g(a.toFixed(1))+","+$APP.T.g(b.toFixed(1));c=""+$APP.T.g(c.toFixed(1))+","+$APP.T.g(d.toFixed(1));
7
7
  return $APP.Rc(a,c)<0?""+$APP.T.g(a)+"-"+$APP.T.g(c):""+$APP.T.g(c)+"-"+$APP.T.g(a)},V4=function(a,b){b=$APP.Bc(U4,b,25);var c=K4(a),d=1.5*b,e=Math.sqrt(3)*b,g=Math.ceil(800/d)+4,h=Math.ceil(200/e)+4;a=[];for(var l=Math.sqrt(17E4),m=-2;;)if(m<g){for(var p=m*d,q=$APP.Ud(m)?0:e/2,v=-2;;)if(v<h){var x=v*e+q;if(p>0-b&&p<800+b&&x>0-b&&x<200+b){var y=p-400,A=x-100;y=Math.sqrt(y*y+A*A);A=y*.7+L4(c)*.3*l;a.push({cx:p,cy:x,dist:y,key:A})}v+=1}else break;m+=1}else break;a.sort(function(H,G){return $APP.k(H,
8
8
  "key")-$APP.k(G,"key")});c={};d=[];e=[0];g=a.length;for(h=0;;)if(h<g){q=a[h];m=$APP.k(q,"cx");p=$APP.k(q,"cy");q=Math.min(2,Math.floor($APP.k(q,"dist")*3/(l+.001)));for(v=0;;)if(v<6){y=Math.PI/3*v;var C=Math.PI/3*(v+1);x=m+b*Math.cos(y);y=p+b*Math.sin(y);A=m+b*Math.cos(C);C=p+b*Math.sin(C);var E=T4(x,y,A,C);$APP.n($APP.k(c,E))||(c[E]=!0,E=e[0],d.push({x1:x,y1:y,x2:A,y2:C,depth:q,index:E}),e[0]=E+1);v+=1}else break;h+=1}else break;return[d,d.length]},W4=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+
9
- b*d,b]},X4=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},d5=function(a){a=new $APP.R(null,7,[$APP.fk,a.getAttribute("progress"),$APP.sl,a.getAttribute("variant"),$APP.en,a.getAttribute("color"),Y4,a.getAttribute("bloom"),Z4,a.getAttribute("density"),$4,a.getAttribute("seed"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.fk);a=$APP.D(b,$APP.sl);var d=$APP.D(b,$APP.en),e=$APP.D(b,Y4),g=$APP.D(b,Z4),h=$APP.D(b,$4);b=$APP.D(b,$APP.pi);
10
- c=B4(c);var l=c==null,m=$APP.n(c)?c:0,p=!l&&m>=100;return $APP.zf([$APP.Yl,$APP.Oj,$APP.Vg,a5,b5,$APP.Xm,$APP.U,$APP.Ll,$APP.jl,$APP.am,c5],[l,J4(d),D4(a),E4(e),H4(h),l?"Loading...":""+$APP.T.g(Math.round(m))+"%",I4(b),m,p,c,G4(g)])},e5=function(a,b){a=window.getComputedStyle(a).getPropertyValue("--x-organic-progress-branch-width").trim();return $APP.N(a,"")?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},g5=function(a,b,c){var d=$APP.M($APP.k(a,"__xOrganicProgressRefs")),e=$APP.D(d,f5);d=function(){var y=
9
+ b*d,b]},X4=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},d5=function(a){a=new $APP.R(null,7,[$APP.fk,a.getAttribute("progress"),$APP.tl,a.getAttribute("variant"),$APP.fn,a.getAttribute("color"),Y4,a.getAttribute("bloom"),Z4,a.getAttribute("density"),$4,a.getAttribute("seed"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.fk);a=$APP.D(b,$APP.tl);var d=$APP.D(b,$APP.fn),e=$APP.D(b,Y4),g=$APP.D(b,Z4),h=$APP.D(b,$4);b=$APP.D(b,$APP.pi);
10
+ c=B4(c);var l=c==null,m=$APP.n(c)?c:0,p=!l&&m>=100;return $APP.zf([$APP.Zl,$APP.Oj,$APP.Vg,a5,b5,$APP.Ym,$APP.U,$APP.Ml,$APP.kl,$APP.bm,c5],[l,J4(d),D4(a),E4(e),H4(h),l?"Loading...":""+$APP.T.g(Math.round(m))+"%",I4(b),m,p,c,G4(g)])},e5=function(a,b){a=window.getComputedStyle(a).getPropertyValue("--x-organic-progress-branch-width").trim();return $APP.N(a,"")?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},g5=function(a,b,c){var d=$APP.M($APP.k(a,"__xOrganicProgressRefs")),e=$APP.D(d,f5);d=function(){var y=
11
11
  $APP.k(a,"__xOrganicProgressLines");return $APP.n(y)?y:[]}();for(var g=d.length,h=[],l=0;;)if(l<b){var m=l<g?d[l]:function(){var y=document.createElementNS("http://www.w3.org/2000/svg","line");y.setAttribute("stroke-linecap","round");e.appendChild(y);return y}(),p=c[l],q=$APP.k(p,"y1"),v=$APP.k(p,"x2"),x=$APP.k(p,"y2");m.setAttribute("x1",""+$APP.T.g($APP.k(p,"x1")));m.setAttribute("y1",""+$APP.T.g(q));m.setAttribute("x2",""+$APP.T.g(v));m.setAttribute("y2",""+$APP.T.g(x));m.setAttribute("opacity",
12
12
  "0");h.push(m);l+=1}else break;for(;;)if(b<g)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},h5=function(a){var b=$APP.k(a,"__xOrganicProgressLines"),c=$APP.k(a,"__xOrganicProgressSegs"),d=$APP.k(a,"__xOrganicProgressSegN"),e=$APP.k(a,"__xOrganicProgressModel"),g=$APP.B.i($APP.Vg.g(e),"honeycomb");e=$APP.Oj.g(e);var h=$APP.n(e)?e:"var("+$APP.T.g("--x-organic-progress-color-primary")+","+$APP.T.g(g?"#818cf8":"#22c55e")+")",l="var("+$APP.T.g("--x-organic-progress-color-secondary")+
13
13
  ","+$APP.T.g(g?"#a5b4fc":"#16a34a")+")";a=e5(a,g?1.5:3);if(g)for(g=0;;)if(g<d){e=b[g];var m=$APP.k(c[g],"depth");e.setAttribute("stroke-width",""+$APP.T.g(a));e.style.stroke=function(){switch(m){case 0:return h;case 1:return l;default:return l}}();e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity",function(){switch(m){case 0:return"0.9";case 1:return"0.7";default:return"0.5"}}());g+=1}else break;else for(g=0;;)if(g<d){e=b[g];var p=$APP.k(c[g],"depth"),q=p===0?h:l;e.setAttribute("stroke-width",
@@ -16,9 +16,9 @@ c=$APP.k(a,"__xOrganicProgressNN");c=$APP.n(c)?c:0;if($APP.n($APP.n(g)?c>0:g))fo
16
16
  [],l=0;;)if(l<c){var m=b[l];if($APP.k(m,"depth")>=2){var p=document.createElementNS("http://www.w3.org/2000/svg","circle"),q=$APP.k(m,"x2");m=$APP.k(m,"y2");var v=2*L4(e)-1,x=2*L4(e)-1;p.setAttribute("cx",""+$APP.T.g(q));p.setAttribute("cy",""+$APP.T.g(m));p.setAttribute("r","0");p.style.fill=g;p.setAttribute("opacity","0");p.setAttribute("class","bloom-petal");p.__dx=v;p.__dy=x;d.appendChild(p);h.push(p)}l+=1}else break;a.__xOrganicProgressBEls=h;a.__xOrganicProgressBloom=!0;a.__xOrganicProgressBT=
17
17
  0},l5=function(a,b){b=$APP.k(a,"__xOrganicProgressBT")+b;var c=b/1.5;a.__xOrganicProgressBT=b;if(c>1){b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,j5);c=$APP.k(a,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=!1;a.dispatchEvent(new CustomEvent("x-organic-progress-bloom-end",{bubbles:!0,composed:!0,detail:{progress:100}}))}else for(a=$APP.k(a,
18
18
  "__xOrganicProgressBEls"),b=1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){g=a[e];var h=$APP.k(g,"__dx")*b*8,l=$APP.k(g,"__dy")*b*8;g.setAttribute("r",""+$APP.T.g(b*2.5));g.setAttribute("opacity",""+$APP.T.g(c));g.setAttribute("transform","translate("+$APP.T.g(h)+","+$APP.T.g(l)+")");e+=1}else break},n5=function(a){a.__xOrganicProgressTime=0;a.__xOrganicProgressSPos=0;a.__xOrganicProgressSVel=0;$APP.ja(a,"__xOrganicProgressLF",performance.now());a.__xOrganicProgressDone=
19
- !1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ja(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return m5(a)}))},o5=function(a){for(var b=$APP.k(a,"__xOrganicProgressModel"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.n($APP.Yl.g(b))?50:$APP.Ll.g(b),e=Math.floor(d/100*c),g=$APP.k(a,"__xOrganicProgressLines"),h=0;;)if(h<c){var l=g[h];$APP.n(l)&&l.setAttribute("opacity",h<e?"1":"0");h+=1}else break;c=$APP.k(a,"__xOrganicProgressNodes");g=function(){var m=$APP.k(a,"__xOrganicProgressNN");
20
- return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?g>0:c))for(d=Math.floor(d/100*g),h=0;;)if(h<g)l=c[h],$APP.n(l)&&l.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.jl.g(b);return $APP.n(m)?$APP.r($APP.k(a,"__xOrganicProgressDone")):m}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})))},s5=function(a,b){var c=d5(a);a.__xOrganicProgressModel=c;a.setAttribute("role",
21
- "progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.Yl.g(c))?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext","Loading...")):(a.setAttribute("aria-valuenow",""+$APP.T.g(Math.round($APP.Ll.g(c)))),a.removeAttribute("aria-busy"),a.setAttribute("aria-valuetext",$APP.Xm.g(c)));var d=$APP.U.g(c);$APP.n(d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");if(b==null||$APP.I(p5,b)){b=$APP.B.i($APP.Vg.g(c),
19
+ !1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ja(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return m5(a)}))},o5=function(a){for(var b=$APP.k(a,"__xOrganicProgressModel"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.n($APP.Zl.g(b))?50:$APP.Ml.g(b),e=Math.floor(d/100*c),g=$APP.k(a,"__xOrganicProgressLines"),h=0;;)if(h<c){var l=g[h];$APP.n(l)&&l.setAttribute("opacity",h<e?"1":"0");h+=1}else break;c=$APP.k(a,"__xOrganicProgressNodes");g=function(){var m=$APP.k(a,"__xOrganicProgressNN");
20
+ return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?g>0:c))for(d=Math.floor(d/100*g),h=0;;)if(h<g)l=c[h],$APP.n(l)&&l.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.kl.g(b);return $APP.n(m)?$APP.r($APP.k(a,"__xOrganicProgressDone")):m}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})))},s5=function(a,b){var c=d5(a);a.__xOrganicProgressModel=c;a.setAttribute("role",
21
+ "progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.Zl.g(c))?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext","Loading...")):(a.setAttribute("aria-valuenow",""+$APP.T.g(Math.round($APP.Ml.g(c)))),a.removeAttribute("aria-busy"),a.setAttribute("aria-valuetext",$APP.Ym.g(c)));var d=$APP.U.g(c);$APP.n(d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");if(b==null||$APP.I(p5,b)){b=$APP.B.i($APP.Vg.g(c),
22
22
  "honeycomb");d=$APP.Bc(q5,c5.g(c),3);if(b)c=V4(b5.g(c),c5.g(c));else{a:{for(var e=new $APP.R(null,1,["F","F[+F]F[-F]F"],null),g="F",h=0;;){if(h>=d){d=g;break a}for(var l=[],m=g.length,p=0;;)if(p<m){var q=g.charAt(p),v=$APP.D(e,q);$APP.n(v)?l.push(v):l.push(q);p+=1}else break;h+=1;g=l.join("")}d=void 0}e=R4(b5.g(c));c=S4(d,e,b5.g(c))}d=c;c=d[0];d=d[1];a.__xOrganicProgressSegs=c;a.__xOrganicProgressSegN=d;g5(a,d,c);d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));c=$APP.D(d,f5);d=$APP.D(d,$APP.nj);$APP.n(c)&&
23
23
  ($APP.n(b)?c.removeAttribute("filter"):c.setAttribute("filter","url(#x-organic-progress-gooey)"));$APP.n($APP.n(d)?$APP.r(b):d)&&d.setAttribute("stdDeviation","2");b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,r5);c=$APP.k(a,"__xOrganicProgressNodes");if($APP.n($APP.n(b)?c:b))for(d=c.length,e=0;;)if(e<d)g=c[e],$APP.n(g.parentNode)&&b.removeChild(g),e+=1;else break;a.__xOrganicProgressNodes=null;a.__xOrganicProgressND=null;a.__xOrganicProgressNN=0;h5(a);a.__xOrganicProgressPV=-1;X4()&&o5(a)}},
24
24
  t5=function(a){Object.defineProperty(a,"progress",{get:function(){return B4(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){return D4(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
@@ -27,14 +27,14 @@ set:function(b){return b==null?this.removeAttribute("density"):this.setAttribute
27
27
  this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},w5=function(){var a=class extends HTMLElement{};a.observedAttributes=u5;a.prototype.connectedCallback=function(){this.__xOrganicProgressModel=d5(this);if(!$APP.n($APP.k(this,"__xOrganicProgressRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","defs"),g=document.createElementNS("http://www.w3.org/2000/svg",
28
28
  "g"),h=document.createElementNS("http://www.w3.org/2000/svg","g"),l=document.createElementNS("http://www.w3.org/2000/svg","g");c.textContent=v5;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 800 200");d.setAttribute("preserveAspectRatio","xMidYMid slice");d.setAttribute("aria-hidden","true");g.setAttribute("part","branches");g.setAttribute("filter","url(#"+$APP.T.g("x-organic-progress-gooey")+")");h.setAttribute("part","nodes");l.setAttribute("part","blooms");var m=document.createElementNS("http://www.w3.org/2000/svg",
29
29
  "filter");var p=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),q=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id","x-organic-progress-gooey");m.setAttribute("x","-10%");m.setAttribute("y","-10%");m.setAttribute("width","120%");m.setAttribute("height","120%");p.setAttribute("in","SourceGraphic");p.setAttribute("stdDeviation",""+$APP.T.g(2));p.setAttribute("result","blur");q.setAttribute("in","blur");q.setAttribute("type","matrix");
30
- q.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7");m.appendChild(p);m.appendChild(q);e.appendChild(m);m=new $APP.R(null,3,[$APP.il,m,$APP.nj,p,$APP.Tm,q],null);d.appendChild(e);d.appendChild(g);d.appendChild(h);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xOrganicProgressRefs=$APP.Rf($APP.uc([m,new $APP.R(null,5,[$APP.Hi,b,$APP.mk,d,f5,g,r5,h,j5,l],null)]))}s5(this,null);h5(this);X4()?o5(this):n5(this);return null};a.prototype.disconnectedCallback=function(){var b=
30
+ q.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7");m.appendChild(p);m.appendChild(q);e.appendChild(m);m=new $APP.R(null,3,[$APP.jl,m,$APP.nj,p,$APP.Um,q],null);d.appendChild(e);d.appendChild(g);d.appendChild(h);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xOrganicProgressRefs=$APP.Rf($APP.uc([m,new $APP.R(null,5,[$APP.Hi,b,$APP.mk,d,f5,g,r5,h,j5,l],null)]))}s5(this,null);h5(this);X4()?o5(this):n5(this);return null};a.prototype.disconnectedCallback=function(){var b=
31
31
  $APP.k(this,"__xOrganicProgressRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xOrganicProgressRaf=null);if($APP.n($APP.k(this,"__xOrganicProgressBloom"))){b=$APP.M($APP.k(this,"__xOrganicProgressRefs"));b=$APP.D(b,j5);var c=$APP.k(this,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;this.__xOrganicProgressBEls=null;this.__xOrganicProgressBloom=!1}return null};a.prototype.attributeChangedCallback=function(b,
32
32
  c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xOrganicProgressRefs"))&&(s5(this,b),$APP.I(p5,b)||h5(this));return null};t5(a.prototype);return a},x5=function(){$APP.n(customElements.get("x-organic-progress"))||customElements.define("x-organic-progress",w5());return null},r5=new $APP.K(null,"nodes-g","nodes-g",89420858),Z4=new $APP.K(null,"density-raw","density-raw",1719413082),f5=new $APP.K(null,"branches-g","branches-g",548989635),a5=new $APP.K(null,"bloom?","bloom?",-326837587),Y4=new $APP.K(null,"bloom-attr",
33
- "bloom-attr",-1778398039),c5=new $APP.K(null,"density","density",-1664155941),b5=new $APP.K(null,"seed","seed",68613327),$4=new $APP.K(null,"seed-raw","seed-raw",2146438207),j5=new $APP.K(null,"blooms-g","blooms-g",-1476393864);var u5="progress variant color bloom density seed label".split(" ");$APP.Pd(["x-organic-progress-complete",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.am,$APP.W],null),$APP.jm,!1],null),"x-organic-progress-bloom-end",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.am,$APP.W],null),$APP.jm,!1],null)]);
33
+ "bloom-attr",-1778398039),c5=new $APP.K(null,"density","density",-1664155941),b5=new $APP.K(null,"seed","seed",68613327),$4=new $APP.K(null,"seed-raw","seed-raw",2146438207),j5=new $APP.K(null,"blooms-g","blooms-g",-1476393864);var u5="progress variant color bloom density seed label".split(" ");$APP.Pd(["x-organic-progress-complete",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.bm,$APP.W],null),$APP.km,!1],null),"x-organic-progress-bloom-end",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.bm,$APP.W],null),$APP.km,!1],null)]);
34
34
  var C4=new $APP.S(null,new $APP.R(null,2,["honeycomb",null,"vine",null],null),null),F4=new $APP.S(null,new $APP.R(null,3,["dense",null,"normal",null,"sparse",null],null),null),q5=new $APP.R(null,3,["sparse",2,"normal",3,"dense",4],null),P4=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,
35
35
  83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,
36
36
  107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],O4=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],M4=(Math.sqrt(3)-1)/2,N4=(3-Math.sqrt(3))/6,U4=new $APP.R(null,3,["sparse",40,"normal",25,"dense",16],null);var v5=":host{display:block;position:relative;min-height:60px;width:100%;overflow:hidden;"+$APP.T.g("--x-organic-progress-color-primary")+":var(--x-color-success,#22c55e);"+$APP.T.g("--x-organic-progress-color-secondary")+":var(--x-color-success,#16a34a);"+$APP.T.g("--x-organic-progress-bloom-color")+":var(--x-color-danger,#f472b6);"+$APP.T.g("--x-organic-progress-bg")+":transparent;"+$APP.T.g("--x-organic-progress-branch-width")+":3;"+$APP.T.g("--x-organic-progress-glow")+":2;"+$APP.T.g("--x-organic-progress-opacity")+
37
37
  ":1;background:var("+$APP.T.g("--x-organic-progress-bg")+",transparent);opacity:var("+$APP.T.g("--x-organic-progress-opacity")+",1);}[part\x3dsvg]{display:block;width:100%;height:100%;}[part\x3dnodes] circle{fill:var("+$APP.T.g("--x-organic-progress-color-primary")+",#22c55e);}@media(prefers-color-scheme:dark){:host{--x-organic-progress-color-primary:var(--x-color-success,#4ade80);--x-organic-progress-color-secondary:var(--x-color-success,#22c55e);--x-organic-progress-bloom-color:var(--x-color-danger,#f9a8d4);}}@media(prefers-reduced-motion:reduce){[part\x3dsvg]{transition:none!important;}.bloom-petal{transition:none!important;animation:none!important;}}",
38
- m5=function m5(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xOrganicProgressLF"),100)/1E3;a.__xOrganicProgressLF=d;a.__xOrganicProgressTime=$APP.k(a,"__xOrganicProgressTime")+e;d=$APP.n($APP.Yl.g(c))?50+20*Math.sin($APP.k(a,"__xOrganicProgressTime")*1.5):$APP.Ll.g(c);d=W4($APP.k(a,"__xOrganicProgressSPos"),d,$APP.k(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];i5(a);$APP.n(function(){var g=
39
- $APP.jl.g(c);return $APP.n(g)?$APP.r($APP.k(a,"__xOrganicProgressDone")):g}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})),$APP.n(a5.g(c))&&k5(a));$APP.n(function(){var g=$APP.r($APP.jl.g(c));return g?(g=$APP.k(a,"__xOrganicProgressDone"),$APP.n(g)?$APP.r($APP.k(a,"__xOrganicProgressBloom")):g):g}())&&(a.__xOrganicProgressDone=!1);$APP.n($APP.k(a,"__xOrganicProgressBloom"))&&l5(a,e);$APP.ja(a,"__xOrganicProgressRaf",
38
+ m5=function m5(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xOrganicProgressLF"),100)/1E3;a.__xOrganicProgressLF=d;a.__xOrganicProgressTime=$APP.k(a,"__xOrganicProgressTime")+e;d=$APP.n($APP.Zl.g(c))?50+20*Math.sin($APP.k(a,"__xOrganicProgressTime")*1.5):$APP.Ml.g(c);d=W4($APP.k(a,"__xOrganicProgressSPos"),d,$APP.k(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];i5(a);$APP.n(function(){var g=
39
+ $APP.kl.g(c);return $APP.n(g)?$APP.r($APP.k(a,"__xOrganicProgressDone")):g}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})),$APP.n(a5.g(c))&&k5(a));$APP.n(function(){var g=$APP.r($APP.kl.g(c));return g?(g=$APP.k(a,"__xOrganicProgressDone"),$APP.n(g)?$APP.r($APP.k(a,"__xOrganicProgressBloom")):g):g}())&&(a.__xOrganicProgressDone=!1);$APP.n($APP.k(a,"__xOrganicProgressBloom"))&&l5(a,e);$APP.ja(a,"__xOrganicProgressRaf",
40
40
  requestAnimationFrame(function(){return m5.g?m5.g(a):m5.call(null,a)}))}return null},p5=$APP.Uf(["variant","density","seed"]);$APP.ha("baredom.exports.x_organic_progress.init",x5);export const init=x5;
@@ -0,0 +1,18 @@
1
+ // x-organic-shape.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XOrganicShape extends HTMLElement {
6
+ shape: string;
7
+ path: string;
8
+ animation: string;
9
+ ratio: string;
10
+ width: string;
11
+ height: string;
12
+ }
13
+
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ "x-organic-shape": XOrganicShape;
17
+ }
18
+ }
@@ -0,0 +1,44 @@
1
+ // x-pagination.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XPaginationEventMap {
6
+ ":page-change": CustomEvent<{ page: number }>;
7
+ }
8
+
9
+ export interface XPagination extends HTMLElement {
10
+ page: number;
11
+ totalPages: number;
12
+ siblingCount: number;
13
+ boundaryCount: number;
14
+ size: string;
15
+ disabled: boolean;
16
+ label: string;
17
+
18
+ addEventListener<K extends keyof XPaginationEventMap>(
19
+ type: K,
20
+ listener: (this: XPagination, ev: XPaginationEventMap[K]) => any,
21
+ options?: boolean | AddEventListenerOptions
22
+ ): void;
23
+ addEventListener(
24
+ type: string,
25
+ listener: EventListenerOrEventListenerObject,
26
+ options?: boolean | AddEventListenerOptions
27
+ ): void;
28
+ removeEventListener<K extends keyof XPaginationEventMap>(
29
+ type: K,
30
+ listener: (this: XPagination, ev: XPaginationEventMap[K]) => any,
31
+ options?: boolean | EventListenerOptions
32
+ ): void;
33
+ removeEventListener(
34
+ type: string,
35
+ listener: EventListenerOrEventListenerObject,
36
+ options?: boolean | EventListenerOptions
37
+ ): void;
38
+ }
39
+
40
+ declare global {
41
+ interface HTMLElementTagNameMap {
42
+ "x-pagination": XPagination;
43
+ }
44
+ }
@@ -4,7 +4,7 @@ var g=document.createElement("li");var h=document.createElement("button"),l=docu
4
4
  l.setAttribute("part","button button-next");l.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";l.appendChild(m);h.appendChild(l);h=new $APP.R(null,2,[VO,h,WO,l],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:var(--x-radius-sm,0.375rem);--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:var(--x-font-size-sm,0.875rem);--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}@media (pointer:coarse){[part~\x3d'button']{min-width:2.75rem;height:2.75rem;}}";
5
5
  d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(VO.g(g));e.appendChild(VO.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.R(null,6,[$APP.Bi,d,$APP.bl,e,XO,VO.g(g),$APP.hj,WO.g(g),YO,VO.g(h),$APP.Sh,WO.g(h)],null);a.__xPaginationRefs=b;return $APP.k(a,"__xPaginationRefs")},$O=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.T.g(a));e.setAttribute("part",
6
6
  "button button-page");e.setAttribute("aria-label","Page "+$APP.T.g(a));e.setAttribute("data-page",""+$APP.T.g(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.T.g(a);d.appendChild(e);return d},aP=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
- "…";a.appendChild(b);return a},kP=function(a){a=new $APP.R(null,7,[bP,a.getAttribute("page"),cP,a.getAttribute("total-pages"),dP,a.getAttribute("sibling-count"),eP,a.getAttribute("boundary-count"),$APP.Ul,a.getAttribute("size"),$APP.Ml,a.hasAttribute("disabled"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,bP),d=$APP.D(b,cP),e=$APP.D(b,dP),g=$APP.D(b,eP),h=$APP.D(b,$APP.Ul);a=$APP.D(b,$APP.Ml);b=$APP.D(b,$APP.pi);d=UO(d);c=$APP.oh.i(1,$APP.sh.i(UO(c),d));if(typeof e==="string"){e=
7
+ "…";a.appendChild(b);return a},kP=function(a){a=new $APP.R(null,7,[bP,a.getAttribute("page"),cP,a.getAttribute("total-pages"),dP,a.getAttribute("sibling-count"),eP,a.getAttribute("boundary-count"),$APP.Vl,a.getAttribute("size"),$APP.Nl,a.hasAttribute("disabled"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,bP),d=$APP.D(b,cP),e=$APP.D(b,dP),g=$APP.D(b,eP),h=$APP.D(b,$APP.Vl);a=$APP.D(b,$APP.Nl);b=$APP.D(b,$APP.pi);d=UO(d);c=$APP.oh.i(1,$APP.sh.i(UO(c),d));if(typeof e==="string"){e=
8
8
  parseInt(e,10);var l=isFinite(e);e=$APP.n($APP.n(l)?e>=0:l)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),l=isFinite(g),l=$APP.n($APP.n(l)?g>=0:l)?g:1):l=1;g=e;e=l;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.I(fP,h)?h:"md";return new $APP.R(null,7,[gP,c,hP,d,iP,g,jP,e,$APP.Mh,h,$APP.Pj,$APP.F(a),$APP.U,$APP.n(b)?b:"Pagination"],null)},nP=function(a){var b=ZO(a),c=$APP.bl.g(b),d=$APP.Bi.g(b),e=$APP.hj.g(b),g=$APP.Sh.g(b),h=XO.g(b);b=YO.g(b);var l=kP(a),m=$APP.M(l),p=$APP.D(m,gP),
9
9
  q=$APP.D(m,hP),v=$APP.D(m,iP),x=$APP.D(m,jP),y=$APP.D(m,$APP.Mh);m=$APP.D(m,$APP.U);a:if(q<=0)q=$APP.fe;else{var A=$APP.sh.i(x,q);x=$APP.oh.i(q-x- -1,1);var C=$APP.oh.i(1,p-v);v=$APP.sh.i(q,p+v);q=$APP.We.i($APP.We.i($APP.We.i(TO(),$APP.dg(1,A+1)),$APP.dg(x,q+1)),$APP.dg(C,v+1));q=$APP.xe(q);C=$APP.fe;for(v=0;;){if(v>=$APP.z(q)){q=C;break a}A=$APP.pc(q,v);var E=x=v>0?$APP.pc(q,v-1):null;x=$APP.n($APP.n(E)?A>x+1:E)?$APP.ld.i(C,new $APP.R(null,1,[$APP.Z,lP],null)):C;A=$APP.ld.i(x,new $APP.R(null,2,
10
10
  [$APP.Z,gP,mP,A],null));v+=1;C=A}q=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.M(l);a=$APP.D(d,gP);d=$APP.D(d,$APP.Pj);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.M(l);e=$APP.D(d,gP);a=$APP.D(d,hP);d=$APP.D(d,$APP.Pj);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.t(q);h=null;for(a=e=0;;)if(a<e)d=h.F(null,a),$APP.B.i(lP,$APP.Z.g(d))?c.appendChild(aP()):
@@ -0,0 +1,47 @@
1
+ // x-particle-button.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XParticleButtonEventMap {
6
+ "press": CustomEvent<{ source: string }>;
7
+ "press-start": CustomEvent<{ source: string }>;
8
+ "press-end": CustomEvent<{ source: string }>;
9
+ "hover-start": CustomEvent<{}>;
10
+ "hover-end": CustomEvent<{}>;
11
+ "focus-visible": CustomEvent<{}>;
12
+ "burst": CustomEvent<{ mode: string; pressX: number; pressY: number }>;
13
+ "reform": CustomEvent<{ mode: string; duration: number }>;
14
+ }
15
+
16
+ export interface XParticleButton extends HTMLElement {
17
+ disabled: boolean;
18
+ loading: boolean;
19
+ pressed: boolean;
20
+
21
+ addEventListener<K extends keyof XParticleButtonEventMap>(
22
+ type: K,
23
+ listener: (this: XParticleButton, ev: XParticleButtonEventMap[K]) => any,
24
+ options?: boolean | AddEventListenerOptions
25
+ ): void;
26
+ addEventListener(
27
+ type: string,
28
+ listener: EventListenerOrEventListenerObject,
29
+ options?: boolean | AddEventListenerOptions
30
+ ): void;
31
+ removeEventListener<K extends keyof XParticleButtonEventMap>(
32
+ type: K,
33
+ listener: (this: XParticleButton, ev: XParticleButtonEventMap[K]) => any,
34
+ options?: boolean | EventListenerOptions
35
+ ): void;
36
+ removeEventListener(
37
+ type: string,
38
+ listener: EventListenerOrEventListenerObject,
39
+ options?: boolean | EventListenerOptions
40
+ ): void;
41
+ }
42
+
43
+ declare global {
44
+ interface HTMLElementTagNameMap {
45
+ "x-particle-button": XParticleButton;
46
+ }
47
+ }
@@ -1,5 +1,5 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var n_=function(a,b,c){return typeof a==="string"&&$APP.I(b,a)?a:c},o_=function(a,b,c,d){if(a==null)return b;a=parseInt(a,10);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))},p_=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Pj);b=$APP.D(b,$APP.wl);return $APP.r($APP.n(a)?a:b)},s_=function(a){var b=Math.random(),c=q_.g(a);a=c+r_.g(a);return b<c?"d":b<a?"f":"s"},t_=function(a,b,c){switch(c){case "ember":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[b*.4,b*.8],null);case "f":return new $APP.O(null,
2
+ var n_=function(a,b,c){return typeof a==="string"&&$APP.I(b,a)?a:c},o_=function(a,b,c,d){if(a==null)return b;a=parseInt(a,10);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))},p_=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Pj);b=$APP.D(b,$APP.xl);return $APP.r($APP.n(a)?a:b)},s_=function(a){var b=Math.random(),c=q_.g(a);a=c+r_.g(a);return b<c?"d":b<a?"f":"s"},t_=function(a,b,c){switch(c){case "ember":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[b*.4,b*.8],null);case "f":return new $APP.O(null,
3
3
  2,5,$APP.P,[b*.6,b*1.2],null);case "s":return new $APP.O(null,2,5,$APP.P,[b*.3,b*.7],null);default:return new $APP.O(null,2,5,$APP.P,[b*.5,b*1],null)}case "spark":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[b*.2,b*.5],null);case "f":return new $APP.O(null,2,5,$APP.P,[b*.4,b*.8],null);case "s":return new $APP.O(null,2,5,$APP.P,[b*.2,b*.4],null);default:return new $APP.O(null,2,5,$APP.P,[b*.3,b*.6],null)}case "burst":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[b*.3,b*.8],null);case "f":return new $APP.O(null,
4
4
  2,5,$APP.P,[b*.6,b*1.3],null);case "s":return new $APP.O(null,2,5,$APP.P,[b*.3,b*.7],null);default:return new $APP.O(null,2,5,$APP.P,[b*.5,b*1],null)}default:switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[b*.3,b*.7],null);case "f":return new $APP.O(null,2,5,$APP.P,[b*.7,b*1.3],null);case "s":return new $APP.O(null,2,5,$APP.P,[b*.3,b*.6],null);default:return new $APP.O(null,2,5,$APP.P,[b*.5,b],null)}}},u_=function(a,b){switch(b){case "ember":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,
5
5
  [600,1200],null);case "f":return new $APP.O(null,2,5,$APP.P,[800,1600],null);case "s":return new $APP.O(null,2,5,$APP.P,[1200,2400],null);default:return new $APP.O(null,2,5,$APP.P,[700,1400],null)}case "spark":switch(a){case "d":return new $APP.O(null,2,5,$APP.P,[150,350],null);case "f":return new $APP.O(null,2,5,$APP.P,[250,500],null);case "s":return new $APP.O(null,2,5,$APP.P,[400,800],null);default:return new $APP.O(null,2,5,$APP.P,[200,400],null)}case "burst":switch(a){case "d":return new $APP.O(null,
@@ -8,14 +8,14 @@ var n_=function(a,b,c){return typeof a==="string"&&$APP.I(b,a)?a:c},o_=function(
8
8
  [.3,.7],null);case "f":return new $APP.O(null,2,5,$APP.P,[.5,.9],null);case "s":return new $APP.O(null,2,5,$APP.P,[.7,1],null);default:return new $APP.O(null,2,5,$APP.P,[.4,.8],null)}}},w_=function(a,b){var c=2*(a+b)*Math.random();return c<a?new $APP.O(null,4,5,$APP.P,[c,0,0,-1],null):c<a+b?new $APP.O(null,4,5,$APP.P,[a,c-a,1,0],null):c<a+b+a?new $APP.O(null,4,5,$APP.P,[a-(c-(a+b)),b,0,1],null):new $APP.O(null,4,5,$APP.P,[0,b-(c-(a+b+a)),-1,0],null)},x_=function(a,b,c,d,e,g){a=Math.atan2(-(b-d/2),
9
9
  -(a-c/2))+(Math.random()-.5)*2*g;e*=.5+Math.random()*.5;return new $APP.O(null,2,5,$APP.P,[e*Math.cos(a),e*Math.sin(a)],null)},y_=function(a,b,c){a[b]=c},z_=function(a){return $APP.k(a,"__xPBState")},A_=function(a){return $APP.B.i(!0,$APP.k(a,"__xPBHover"))},B_=function(a,b){a.__xPBHover=$APP.F(b)},C_=function(a,b){a.__xPBFocusVisible=$APP.F(b)},D_=function(a){return $APP.k(a,"__xPBActiveSource")},E_=function(a,b){a.__xPBActiveSource=b},F_=function(a,b){a.__xPBLastActivation=b},G_=function(a){return $APP.k(a,
10
10
  "__xPBPhase")},J_=function(a,b){var c=$APP.k(a,"__xPBPhase");a.__xPBPhase=b;a=$APP.k(a,"__xPBState");$APP.n(a)&&(a=a.button,$APP.n(a)&&($APP.B.i(H_,b)?a.removeAttribute("data-phase"):a.setAttribute("data-phase",$APP.Yf(b)),$APP.B.i(I_,c)&&$APP.N(I_,b)&&a.style.removeProperty("filter")))},K_=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},L_=function(a){var b=a.getAttribute("form");b=$APP.n(b)?document.getElementById(b):null;return $APP.n(b)?b:a.closest("form")},
11
- T_=function(a){a=$APP.zf([M_,$APP.Pj,$APP.Vg,N_,$APP.wj,$APP.Z,$APP.xk,$APP.Mh,O_,$APP.wl,$APP.U,$APP.Ck],[a.getAttribute("particle-size"),a.hasAttribute("disabled"),a.getAttribute("variant"),a.getAttribute("reassemble-speed"),a.getAttribute("mode"),a.getAttribute("type"),a.getAttribute("intensity"),a.getAttribute("size"),a.getAttribute("particle-count"),a.hasAttribute("loading"),a.getAttribute("label"),a.hasAttribute("pressed")]);var b=$APP.M(a);a=$APP.D(b,$APP.Ck);var c=$APP.D(b,M_),d=$APP.D(b,
12
- $APP.Vg),e=$APP.D(b,$APP.Pj),g=$APP.D(b,N_),h=$APP.D(b,$APP.wj),l=$APP.D(b,$APP.Z),m=$APP.D(b,O_),p=$APP.D(b,$APP.xk),q=$APP.D(b,$APP.Mh),v=$APP.D(b,$APP.wl);b=$APP.D(b,$APP.U);return $APP.zf([M_,$APP.Pj,$APP.Vg,N_,$APP.wj,$APP.Z,$APP.xk,$APP.Mh,O_,$APP.wl,$APP.U,$APP.Ck],[o_(c,3,1,8),$APP.F(e),n_(d,P_,"primary"),o_(g,500,100,2E3),n_(h,Q_,"dust"),n_(l,R_,"button"),o_(p,50,1,100),n_(q,S_,"md"),o_(m,40,10,100),$APP.F(v),typeof b==="string"?b:null,$APP.F(a)])},U_=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,
11
+ T_=function(a){a=$APP.zf([M_,$APP.Pj,$APP.Vg,N_,$APP.wj,$APP.Z,$APP.xk,$APP.Mh,O_,$APP.xl,$APP.U,$APP.Ck],[a.getAttribute("particle-size"),a.hasAttribute("disabled"),a.getAttribute("variant"),a.getAttribute("reassemble-speed"),a.getAttribute("mode"),a.getAttribute("type"),a.getAttribute("intensity"),a.getAttribute("size"),a.getAttribute("particle-count"),a.hasAttribute("loading"),a.getAttribute("label"),a.hasAttribute("pressed")]);var b=$APP.M(a);a=$APP.D(b,$APP.Ck);var c=$APP.D(b,M_),d=$APP.D(b,
12
+ $APP.Vg),e=$APP.D(b,$APP.Pj),g=$APP.D(b,N_),h=$APP.D(b,$APP.wj),l=$APP.D(b,$APP.Z),m=$APP.D(b,O_),p=$APP.D(b,$APP.xk),q=$APP.D(b,$APP.Mh),v=$APP.D(b,$APP.xl);b=$APP.D(b,$APP.U);return $APP.zf([M_,$APP.Pj,$APP.Vg,N_,$APP.wj,$APP.Z,$APP.xk,$APP.Mh,O_,$APP.xl,$APP.U,$APP.Ck],[o_(c,3,1,8),$APP.F(e),n_(d,P_,"primary"),o_(g,500,100,2E3),n_(h,Q_,"dust"),n_(l,R_,"button"),o_(p,50,1,100),n_(q,S_,"md"),o_(m,40,10,100),$APP.F(v),typeof b==="string"?b:null,$APP.F(a)])},U_=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,
13
13
  {detail:c,bubbles:!0,composed:!0,cancelable:!1}))},V_=function(a){return a.assignedNodes({flatten:!0})},W_=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},X_=function(a,b,c){a=Math.round($APP.fd(a,360))/360;c=Math.max(0,Math.min(1,c));b=Math.max(0,Math.min(1,b));if($APP.B.i(0,b))return a=Math.round(c*255),"rgb("+$APP.T.g(a)+","+$APP.T.g(a)+","+$APP.T.g(a)+")";b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;var d=Math.round(255*W_(c,b,a)),e=Math.round(255*W_(c,b,a-1/3));
14
14
  return"rgb("+$APP.T.g(Math.round(255*W_(c,b,a+1/3)))+","+$APP.T.g(d)+","+$APP.T.g(e)+")"},Z_=function(a){var b=getComputedStyle(z_(a).button).backgroundColor;Y_.fillStyle="#000";Y_.fillStyle=b;Y_.fillRect(0,0,1,1);b=Y_.getImageData(0,0,1,1).data;var c=new $APP.O(null,3,5,$APP.P,[b[0],b[1],b[2]],null);b=$APP.Ac(c,0,null);var d=$APP.Ac(c,1,null);c=$APP.Ac(c,2,null);b/=255;d/=255;var e=c/255,g=Math.max(b,d,e),h=Math.min(b,d,e);c=(g+h)/2;if($APP.B.i(g,h))c=new $APP.O(null,3,5,$APP.P,[0,0,c],null);else{var l=
15
15
  g-h;h=c>.5?l/(2-g-h):l/(g+h);b=$APP.B.i(g,b)?((d-e)/l+(d<e?6:0))/6:$APP.B.i(g,d)?((e-b)/l+2)/6:((b-d)/l+4)/6;c=new $APP.O(null,3,5,$APP.P,[b*360,h,c],null)}b=$APP.Ac(c,0,null);d=$APP.Ac(c,1,null);h=$APP.Ac(c,2,null);c=X_(b,d,h);e=X_(b,Math.max(0,d-.1),Math.min(1,h+.25));g=X_(b+15,d,h);l=X_(b-15,d,Math.min(1,h+.05));b=X_(b,d*.3,Math.min(1,h+.45));a.__xPBColorPalette=[c,e,g,l,b]},$_=function(a){return document.createElement(a)},a0=function(a,b){var c=b.button,d=b["label-slot"],e=b["icon-start-slot"],
16
16
  g=b["icon-end-slot"],h=b["spinner-slot"];b=T_(a);var l;a:{d=V_(d);for(var m=0;;)if(m<d.length){var p=d[m],q=p;if(l=$APP.B.i(q.nodeType,Node.TEXT_NODE))l=q.textContent,l=$APP.N("",($APP.n(l)?l:"").trim());if(!l){l=p;if(p=$APP.B.i(l.nodeType,Node.ELEMENT_NODE))p=l.textContent,p=$APP.N("",($APP.n(p)?p:"").trim());l=p}if(l){l=!0;break a}m+=1}else{l=!1;break a}l=void 0}e=V_(e).length>0;g=V_(g).length>0;h=V_(h).length>0;d=A_(a);m=D_(a)!=null;p=$APP.B.i(!0,$APP.k(a,"__xPBFocusVisible"));l=$APP.mh.m(b,$APP.pk,
17
- l);q=$APP.M(l);l=$APP.D(q,$APP.U);q=$APP.D(q,$APP.pk);l=$APP.r(q)&&$APP.Lg(l)?l:null;c.setAttribute("type",$APP.Z.g(b));q=$APP.Pj.g(b);q=$APP.n(q)?q:$APP.wl.g(b);c.disabled=q;q=$APP.M(b);q=$APP.D(q,$APP.wl);q=$APP.n(q)?"true":null;$APP.n(q)?c.setAttribute("aria-busy",q):c.removeAttribute("aria-busy");$APP.n($APP.Ck.g(b))?c.setAttribute("aria-pressed","true"):c.removeAttribute("aria-pressed");$APP.n(l)?c.setAttribute("aria-label",l):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.Vg.g(b));
18
- c.setAttribute("data-size",$APP.Mh.g(b));c.setAttribute("data-mode",$APP.wj.g(b));c.setAttribute("data-loading",$APP.n($APP.wl.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.Pj.g(b))?"true":"false");c.setAttribute("data-hover",d?"true":"false");c.setAttribute("data-active",m?"true":"false");c.setAttribute("data-focus-visible",p?"true":"false");c.setAttribute("data-has-icon-start",e?"true":"false");c.setAttribute("data-has-icon-end",g?"true":"false");c.setAttribute("data-has-spinner",
17
+ l);q=$APP.M(l);l=$APP.D(q,$APP.U);q=$APP.D(q,$APP.pk);l=$APP.r(q)&&$APP.Lg(l)?l:null;c.setAttribute("type",$APP.Z.g(b));q=$APP.Pj.g(b);q=$APP.n(q)?q:$APP.xl.g(b);c.disabled=q;q=$APP.M(b);q=$APP.D(q,$APP.xl);q=$APP.n(q)?"true":null;$APP.n(q)?c.setAttribute("aria-busy",q):c.removeAttribute("aria-busy");$APP.n($APP.Ck.g(b))?c.setAttribute("aria-pressed","true"):c.removeAttribute("aria-pressed");$APP.n(l)?c.setAttribute("aria-label",l):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.Vg.g(b));
18
+ c.setAttribute("data-size",$APP.Mh.g(b));c.setAttribute("data-mode",$APP.wj.g(b));c.setAttribute("data-loading",$APP.n($APP.xl.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.Pj.g(b))?"true":"false");c.setAttribute("data-hover",d?"true":"false");c.setAttribute("data-active",m?"true":"false");c.setAttribute("data-focus-visible",p?"true":"false");c.setAttribute("data-has-icon-start",e?"true":"false");c.setAttribute("data-has-icon-end",g?"true":"false");c.setAttribute("data-has-spinner",
19
19
  h?"true":"false");a.setAttribute("data-variant",$APP.Vg.g(b));a.setAttribute("data-size",$APP.Mh.g(b));return a.setAttribute("data-mode",$APP.wj.g(b))},b0=function(a,b,c,d,e,g){var h=$APP.k(a,"__xPBParticles");if($APP.n(h)){a:{for(var l=h.length,m=0;;)if(m<l){var p=h[m];if($APP.r(p.alive)){h=p;break a}m+=1}else{h=null;break a}h=void 0}if($APP.n(h)){l=T_(a);a=M_.g(l);var q=$APP.wj.g(l);l=t_(b,a,q);a=$APP.Ac(l,0,null);m=$APP.Ac(l,1,null);p=u_(b,q);l=$APP.Ac(p,0,null);p=$APP.Ac(p,1,null);var v=v_(b,
20
20
  q);q=$APP.Ac(v,0,null);v=$APP.Ac(v,1,null);a+=Math.random()*(m-a);l+=Math.random()*(p-l);m=q+Math.random()*(v-q);p=Math.random()<.12;q=Math.random();q=q<.4?0:q<.6?1:q<.75?2:q<.9?3:4;h.alive=!0;h.type=b;h.x=c;h.y=d;h.vx=e;h.vy=g;h.size=a;h.sizeY=$APP.B.i(b,"s")?a*(3+Math.random()*3):a;h.opacity=m;h.maxOpacity=m;h.lifetime=p?l*1.5:l;h.age=0;h.colorIdx=q;h.blur=$APP.B.i(b,"d")&&Math.random()<.3?1:0;h.homeX=c;h.homeY=d;h.tx0=c;h.ty0=d;h.tx1=c;h.ty1=d;h.tx2=c;h.ty2=d;h.tlen=0}}},i0=function(a,b){var c=
21
21
  T_(a);c=c0($APP.wj.g(c));var d=d0.g(c),e=function(){var y=$APP.k(a,"__xPBHoverAccum");return $APP.n(y)?y:0}()+b/16.667*d;b=function(){var y=$APP.k(a,"__xPBCanvasW");return $APP.n(y)?y:100}();d=function(){var y=$APP.k(a,"__xPBCanvasH");return $APP.n(y)?y:40}();a.__xPBHoverAccum=e-Math.floor(e);e=Math.floor(e);for(var g=0;;)if(g<e){var h=s_(c),l=$APP.B.i(e0,f0.g(c))&&Math.random()<.3?new $APP.O(null,4,5,$APP.P,[Math.random()*b,Math.random()*d,0,-1],null):w_(b,d),m=$APP.Ac(l,0,null),p=$APP.Ac(l,1,null),
@@ -43,8 +43,8 @@ null:customElements.define("x-particle-button",M0())},f0=new $APP.K(null,"hover-
43
43
  "streak-ratio",896175899),j0=new $APP.K(null,"press-base-speed","press-base-speed",968923991),O_=new $APP.K(null,"particle-count","particle-count",-1413139825),M_=new $APP.K(null,"particle-size","particle-size",-1226200350),t0=new $APP.K(null,"reform-spring","reform-spring",1893407808),P0=new $APP.K(null,"surface-dissolve","surface-dissolve",825718780),Q0=new $APP.K(null,"edge-only","edge-only",-1722275337),r_=new $APP.K(null,"fragment-ratio","fragment-ratio",1481305781),u0=new $APP.K(null,"press-reform",
44
44
  "press-reform",545200527),l0=new $APP.K(null,"press-burst-count-min","press-burst-count-min",-1654672998),m0=new $APP.K(null,"press-burst-count-max","press-burst-count-max",1669149185),I_=new $APP.K(null,"hover-emit","hover-emit",1486854761),d0=new $APP.K(null,"hover-emit-rate","hover-emit-rate",-16639981),N_=new $APP.K(null,"reassemble-speed","reassemble-speed",-2046288440),B0=new $APP.K(null,"settling","settling",2095088261),g0=new $APP.K(null,"hover-drift-vy","hover-drift-vy",-508387059),s0=new $APP.K(null,
45
45
  "gravity","gravity",-1815198225),e0=new $APP.K(null,"edge-and-surface","edge-and-surface",-2071330589),k0=new $APP.K(null,"press-spread","press-spread",50665709);var R_=new $APP.S(null,new $APP.R(null,3,["reset",null,"submit",null,"button",null],null),null),P_=new $APP.S(null,new $APP.R(null,7,["success",null,"warning",null,"secondary",null,"tertiary",null,"primary",null,"danger",null,"ghost",null],null),null),S_=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),Q_=new $APP.S(null,new $APP.R(null,5,["dust",null,"disperse",null,"spark",null,"ember",null,"burst",null],null),null),L0="disabled loading pressed type variant size label mode particle-count intensity particle-size reassemble-speed".split(" ");
46
- $APP.Pd(["press",new $APP.R(null,1,[$APP.V,new $APP.R(null,1,[$APP.ql,$APP.Y],null)],null),"press-start",new $APP.R(null,1,[$APP.V,new $APP.R(null,1,[$APP.ql,$APP.Y],null)],null),"press-end",new $APP.R(null,1,[$APP.V,new $APP.R(null,1,[$APP.ql,$APP.Y],null)],null),"hover-start",new $APP.R(null,1,[$APP.V,$APP.Qd],null),"hover-end",new $APP.R(null,1,[$APP.V,$APP.Qd],null),"focus-visible",new $APP.R(null,1,[$APP.V,$APP.Qd],null),"burst",new $APP.R(null,1,[$APP.V,new $APP.R(null,3,[$APP.wj,$APP.Y,new $APP.K(null,
47
- "press-x","press-x",-1745921066),$APP.W,new $APP.K(null,"press-y","press-y",1259086182),$APP.W],null)],null),"reform",new $APP.R(null,1,[$APP.V,new $APP.R(null,2,[$APP.wj,$APP.Y,$APP.dl,$APP.W],null)],null)]);
46
+ $APP.Pd(["press",new $APP.R(null,1,[$APP.V,new $APP.R(null,1,[$APP.rl,$APP.Y],null)],null),"press-start",new $APP.R(null,1,[$APP.V,new $APP.R(null,1,[$APP.rl,$APP.Y],null)],null),"press-end",new $APP.R(null,1,[$APP.V,new $APP.R(null,1,[$APP.rl,$APP.Y],null)],null),"hover-start",new $APP.R(null,1,[$APP.V,$APP.Qd],null),"hover-end",new $APP.R(null,1,[$APP.V,$APP.Qd],null),"focus-visible",new $APP.R(null,1,[$APP.V,$APP.Qd],null),"burst",new $APP.R(null,1,[$APP.V,new $APP.R(null,3,[$APP.wj,$APP.Y,new $APP.K(null,
47
+ "press-x","press-x",-1745921066),$APP.W,new $APP.K(null,"press-y","press-y",1259086182),$APP.W],null)],null),"reform",new $APP.R(null,1,[$APP.V,new $APP.R(null,2,[$APP.wj,$APP.Y,$APP.el,$APP.W],null)],null)]);
48
48
  var c0=function c0(a){switch(a){case "dust":return $APP.zf([t0,m0,x0,f0,k0,g0,s0,d0,h0,w0,q_,r_,j0,l0,$APP.hk,O0,P0],[0,10,!1,Q0,Math.PI/3,-.4,-.03,.6,.2,!1,.9,.08,1.5,6,.97,.02,!1]);case "spark":return $APP.zf([t0,m0,x0,f0,k0,g0,s0,d0,h0,w0,q_,r_,j0,l0,$APP.hk,O0,P0],[0,35,!0,e0,Math.PI/4,-1.2,0,2.5,1,!1,.4,.25,6,20,.92,.35,!1]);case "ember":return $APP.zf([t0,m0,x0,f0,k0,g0,s0,d0,h0,w0,q_,r_,j0,l0,$APP.hk,O0,P0],[0,14,!1,Q0,Math.PI*.6,-.15,-.008,.8,.1,!0,.5,.35,.8,8,.99,.15,!1]);case "burst":return $APP.zf([t0,
49
49
  m0,x0,f0,k0,g0,s0,d0,h0,w0,q_,r_,j0,l0,$APP.hk,O0,P0],[0,50,!1,Q0,Math.PI/2,-.3,.04,.4,.2,!1,.45,.35,7,30,.94,.2,!1]);case "disperse":return $APP.zf([t0,m0,x0,f0,k0,g0,s0,d0,h0,w0,q_,r_,j0,l0,$APP.hk,O0,P0],[.08,30,!1,e0,Math.PI,-.3,0,1.2,.3,!1,.3,.55,3,20,.96,.15,!0]);default:return c0.g?c0.g("dust"):c0.call(null,"dust")}};var Y_,R0=document.createElement("canvas");R0.width=1;R0.height=1;Y_=R0.getContext("2d");
50
50
  var p0=function p0(a){a.__xPBRaf=null;if($APP.n(a.isConnected)){var c=G_(a),d=performance.now(),e=Math.min(100,d-function(){var v=$APP.k(a,"__xPBLastTime");return $APP.n(v)?v:d}()),g=$APP.k(a,"__xPBParticles");a.__xPBLastTime=d;switch(c instanceof $APP.K?c.pa:null){case "hover-emit":if(!K_()){i0(a,e);var h=z_(a);if($APP.n(h)){var l=Math.min(1.5,1.5*(1-Math.exp((d-function(){var v=$APP.k(a,"__xPBHoverStart");return $APP.n(v)?v:d}())/1E3*-1.5))),m=1+l/1.5*.04;h.button.style.setProperty("filter","blur("+
@@ -0,0 +1,45 @@
1
+ // x-popover.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XPopoverEventMap {
6
+ "x-popover-toggle": CustomEvent<{ open: boolean; source: string }>;
7
+ "x-popover-change": CustomEvent<{ open: boolean }>;
8
+ }
9
+
10
+ export interface XPopover extends HTMLElement {
11
+ open: boolean;
12
+ placement: string;
13
+ heading: string;
14
+ closeLabel: string;
15
+ noClose: boolean;
16
+ disabled: boolean;
17
+ portal: boolean;
18
+
19
+ addEventListener<K extends keyof XPopoverEventMap>(
20
+ type: K,
21
+ listener: (this: XPopover, ev: XPopoverEventMap[K]) => any,
22
+ options?: boolean | AddEventListenerOptions
23
+ ): void;
24
+ addEventListener(
25
+ type: string,
26
+ listener: EventListenerOrEventListenerObject,
27
+ options?: boolean | AddEventListenerOptions
28
+ ): void;
29
+ removeEventListener<K extends keyof XPopoverEventMap>(
30
+ type: K,
31
+ listener: (this: XPopover, ev: XPopoverEventMap[K]) => any,
32
+ options?: boolean | EventListenerOptions
33
+ ): void;
34
+ removeEventListener(
35
+ type: string,
36
+ listener: EventListenerOrEventListenerObject,
37
+ options?: boolean | EventListenerOptions
38
+ ): void;
39
+ }
40
+
41
+ declare global {
42
+ interface HTMLElementTagNameMap {
43
+ "x-popover": XPopover;
44
+ }
45
+ }