@vanelsas/baredom 2.3.1 → 2.4.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 (95) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +265 -264
  4. package/dist/integrity.json +98 -0
  5. package/dist/x-alert.js +17 -17
  6. package/dist/x-avatar-group.js +11 -11
  7. package/dist/x-avatar.js +14 -14
  8. package/dist/x-badge.js +11 -11
  9. package/dist/x-bento-grid.js +5 -5
  10. package/dist/x-bento-item.js +4 -4
  11. package/dist/x-breadcrumbs.js +14 -14
  12. package/dist/x-button.js +15 -15
  13. package/dist/x-cancel-dialogue.js +16 -16
  14. package/dist/x-card.js +7 -7
  15. package/dist/x-carousel.js +32 -32
  16. package/dist/x-chart.js +47 -47
  17. package/dist/x-checkbox.js +11 -11
  18. package/dist/x-chip.js +8 -8
  19. package/dist/x-collapse.js +10 -10
  20. package/dist/x-color-picker.js +42 -42
  21. package/dist/x-combobox.js +24 -24
  22. package/dist/x-command-palette.js +24 -24
  23. package/dist/x-container.js +6 -6
  24. package/dist/x-context-menu.js +18 -18
  25. package/dist/x-copy.js +22 -22
  26. package/dist/x-currency-field.js +22 -22
  27. package/dist/x-date-picker.js +37 -37
  28. package/dist/x-divider.js +8 -8
  29. package/dist/x-drawer.js +11 -11
  30. package/dist/x-dropdown.js +9 -9
  31. package/dist/x-fieldset.js +5 -5
  32. package/dist/x-file-download.js +7 -7
  33. package/dist/x-file-upload.js +26 -0
  34. package/dist/x-form-field.js +15 -15
  35. package/dist/x-form.js +10 -10
  36. package/dist/x-gaussian-blur.js +18 -18
  37. package/dist/x-grid.js +6 -6
  38. package/dist/x-icon.js +7 -7
  39. package/dist/x-image.js +18 -18
  40. package/dist/x-kinetic-font.js +28 -28
  41. package/dist/x-kinetic-typography.js +38 -38
  42. package/dist/x-liquid-dock.js +36 -36
  43. package/dist/x-liquid-fill.js +42 -42
  44. package/dist/x-liquid-glass.js +40 -40
  45. package/dist/x-menu-item.js +10 -10
  46. package/dist/x-menu.js +10 -10
  47. package/dist/x-metaball-cursor.js +27 -27
  48. package/dist/x-modal.js +11 -11
  49. package/dist/x-morph-stack.js +39 -39
  50. package/dist/x-navbar.js +13 -13
  51. package/dist/x-neural-glow.js +30 -30
  52. package/dist/x-notification-center.js +10 -10
  53. package/dist/x-organic-divider.js +16 -16
  54. package/dist/x-organic-progress.js +35 -35
  55. package/dist/x-organic-shape.js +12 -12
  56. package/dist/x-pagination.js +16 -16
  57. package/dist/x-particle-button.js +49 -49
  58. package/dist/x-popover.js +23 -23
  59. package/dist/x-progress-circle.js +8 -8
  60. package/dist/x-progress.js +8 -8
  61. package/dist/x-radio.js +11 -11
  62. package/dist/x-ripple-effect.js +11 -11
  63. package/dist/x-scroll-parallax.js +17 -17
  64. package/dist/x-scroll-stack.js +18 -18
  65. package/dist/x-scroll-story.js +34 -34
  66. package/dist/x-scroll-timeline.js +45 -45
  67. package/dist/x-scroll.js +40 -40
  68. package/dist/x-search-field.js +14 -14
  69. package/dist/x-select.js +9 -9
  70. package/dist/x-sidebar.js +16 -16
  71. package/dist/x-skeleton-group.js +13 -13
  72. package/dist/x-skeleton.js +1 -1
  73. package/dist/x-slider.js +16 -16
  74. package/dist/x-soft-body.js +20 -20
  75. package/dist/x-spacer.js +5 -5
  76. package/dist/x-spinner.js +5 -5
  77. package/dist/x-splash.js +13 -13
  78. package/dist/x-stat.js +11 -11
  79. package/dist/x-stepper.js +15 -15
  80. package/dist/x-switch.js +10 -10
  81. package/dist/x-tab.js +7 -7
  82. package/dist/x-table-cell.js +20 -20
  83. package/dist/x-table-row.js +10 -10
  84. package/dist/x-table.js +14 -14
  85. package/dist/x-tabs.js +11 -11
  86. package/dist/x-text-area.js +17 -17
  87. package/dist/x-theme.js +25 -25
  88. package/dist/x-timeline-item.js +20 -21
  89. package/dist/x-timeline.js +9 -9
  90. package/dist/x-toast.js +22 -22
  91. package/dist/x-toaster.js +8 -8
  92. package/dist/x-tooltip.js +12 -12
  93. package/dist/x-typography.js +8 -8
  94. package/dist/x-welcome-tour.js +66 -0
  95. package/package.json +10 -2
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var eT=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},fT=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.C.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},hT=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(b,"label"),d=$APP.k(b,"input"),
3
- e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.zf([$APP.ni,$APP.ml,$APP.Ei,$APP.Vi,$APP.Al,$APP.Lh,$APP.Gj,$APP.qm,$APP.mi,$APP.ui,$APP.Ki],[a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("type"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,$APP.Ki),m=$APP.D(h,$APP.ni),p=$APP.D(h,$APP.ml);
4
- g=$APP.D(h,$APP.Ei);var q=$APP.D(h,$APP.Vi),v=$APP.D(h,$APP.Al),x=$APP.D(h,$APP.Lh),y=$APP.D(h,$APP.Gj),A=$APP.D(h,$APP.qm),B=$APP.D(h,$APP.mi),E=$APP.D(h,$APP.ui);h=$APP.n(g)?g:"";var G=$APP.n(q)?q:"",H=$APP.n(m)?m:"",J=[$APP.ki,$APP.Pm,$APP.lm,$APP.ri,$APP.vj,$APP.Ti,$APP.pl,$APP.Z,$APP.Qk,$APP.Ll,$APP.U,$APP.zi,$APP.Nl,$APP.X];x=$APP.F(x);y=$APP.F(y);l=$APP.n(l)?l:"";q=typeof q==="string"&&$APP.N(q,"")&&q!=null;p=$APP.n(p)?p:"";A=$APP.n(A)?A:"";m=typeof m==="string"&&$APP.N(m,"")&&m!=null;E=typeof E===
5
- "string"&&$APP.I(gT,E)?E:"text";g=$APP.zf(J,[x,y,l,q,p,A,m,E,typeof g==="string"&&$APP.N(g,"")&&g!=null,G,H,h,$APP.n(B)?B:"",$APP.F(v)]);v=$APP.Qk.g(g);B=$APP.ri.g(g);h=$APP.pl.g(g);d.type=$APP.Z.g(g);d.name=$APP.vj.g(g);d.placeholder=$APP.lm.g(g);d.disabled=$APP.X.g(g);d.readOnly=$APP.Pm.g(g);d.required=$APP.ki.g(g);d.autocomplete=$APP.Nl.g(g);G=$APP.n($APP.ki.g(g))?"true":"false";d.setAttribute("aria-required",G);d.setAttribute("aria-invalid",$APP.n(v)?"true":"false");G=$APP.n($APP.n(B)?v:B)?"hint error":
6
- $APP.n(B)?"hint":$APP.n(v)?"error":null;$APP.n(G)?d.setAttribute("aria-describedby",G):d.removeAttribute("aria-describedby");c.textContent=$APP.U.g(g);$APP.n(h)?c.classList.remove("label-hidden"):c.classList.add("label-hidden");e.textContent=$APP.Ll.g(g);$APP.n(B)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.zi.g(g);$APP.n(v)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");eT(a,"data-invalid",v);c=$APP.k(a,"__xFormFieldInternals");return $APP.n(c)?
7
- fT(a,c,d):null}return null},iT=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},jT=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),fT(a,e,b));return iT(a,"x-form-field-input",{name:d,value:c})}return null}},kT=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");
8
- if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),fT(a,e,b));return iT(a,"x-form-field-change",{name:d,value:c})}return null}},lT=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormFieldHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xFormFieldHandlers=
9
- null;return}}return null},mT=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},nT=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return eT(this,c,$APP.F(d))}})},oT=function(a){Object.defineProperty(a,"value",{configurable:!0,
10
- enumerable:!0,get:function(){var b=$APP.k(this,"__xFormFieldRefs");if($APP.n(b))return $APP.k(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.k(this,"__xFormFieldRefs");return $APP.n(c)?$APP.k(c,"input").value=b:null}})},qT=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return pT}});oT(b);mT(b,
11
- "label","label");mT(b,"type","type");mT(b,"name","name");mT(b,"placeholder","placeholder");mT(b,"autocomplete","autocomplete");nT(b,"disabled","disabled");nT(b,"readOnly","readonly");nT(b,"required","required");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFormFieldRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),l=document.createElement("input"),m=document.createElement("span"),
2
+ var EV=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},FV=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.B.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},HV=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(b,"label"),d=$APP.k(b,"input"),
3
+ e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.zf([$APP.pi,$APP.yl,$APP.Ji,$APP.$i,$APP.Ml,$APP.Nh,$APP.Lj,$APP.Cm,$APP.oi,$APP.yi,$APP.Pi],[a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("type"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,$APP.Pi),m=$APP.D(h,$APP.pi),p=$APP.D(h,$APP.yl);
4
+ g=$APP.D(h,$APP.Ji);var q=$APP.D(h,$APP.$i),v=$APP.D(h,$APP.Ml),x=$APP.D(h,$APP.Nh),y=$APP.D(h,$APP.Lj),A=$APP.D(h,$APP.Cm),C=$APP.D(h,$APP.oi),E=$APP.D(h,$APP.yi);h=$APP.n(g)?g:"";var H=$APP.n(q)?q:"",G=$APP.n(m)?m:"",J=[$APP.mi,$APP.bn,$APP.qm,$APP.ui,$APP.Aj,$APP.Yi,$APP.Bl,$APP.Z,$APP.$k,$APP.Xl,$APP.U,$APP.Ei,$APP.Zl,$APP.X];x=$APP.F(x);y=$APP.F(y);l=$APP.n(l)?l:"";q=typeof q==="string"&&$APP.N(q,"")&&q!=null;p=$APP.n(p)?p:"";A=$APP.n(A)?A:"";m=typeof m==="string"&&$APP.N(m,"")&&m!=null;E=typeof E===
5
+ "string"&&$APP.I(GV,E)?E:"text";g=$APP.zf(J,[x,y,l,q,p,A,m,E,typeof g==="string"&&$APP.N(g,"")&&g!=null,H,G,h,$APP.n(C)?C:"",$APP.F(v)]);v=$APP.$k.g(g);C=$APP.ui.g(g);h=$APP.Bl.g(g);d.type=$APP.Z.g(g);d.name=$APP.Aj.g(g);d.placeholder=$APP.qm.g(g);d.disabled=$APP.X.g(g);d.readOnly=$APP.bn.g(g);d.required=$APP.mi.g(g);d.autocomplete=$APP.Zl.g(g);H=$APP.n($APP.mi.g(g))?"true":"false";d.setAttribute("aria-required",H);d.setAttribute("aria-invalid",$APP.n(v)?"true":"false");H=$APP.n($APP.n(C)?v:C)?"hint error":
6
+ $APP.n(C)?"hint":$APP.n(v)?"error":null;$APP.n(H)?d.setAttribute("aria-describedby",H):d.removeAttribute("aria-describedby");c.textContent=$APP.U.g(g);$APP.n(h)?c.classList.remove("label-hidden"):c.classList.add("label-hidden");e.textContent=$APP.Xl.g(g);$APP.n(C)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Ei.g(g);$APP.n(v)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");EV(a,"data-invalid",v);c=$APP.k(a,"__xFormFieldInternals");return $APP.n(c)?
7
+ FV(a,c,d):null}return null},IV=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},JV=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),FV(a,e,b));return IV(a,"x-form-field-input",{name:d,value:c})}return null}},KV=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");
8
+ if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),FV(a,e,b));return IV(a,"x-form-field-change",{name:d,value:c})}return null}},LV=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormFieldHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xFormFieldHandlers=
9
+ null;return}}return null},MV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},NV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return EV(this,c,$APP.F(d))}})},OV=function(a){Object.defineProperty(a,"value",{configurable:!0,
10
+ enumerable:!0,get:function(){var b=$APP.k(this,"__xFormFieldRefs");if($APP.n(b))return $APP.k(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.k(this,"__xFormFieldRefs");return $APP.n(c)?$APP.k(c,"input").value=b:null}})},QV=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return PV}});OV(b);MV(b,
11
+ "label","label");MV(b,"type","type");MV(b,"name","name");MV(b,"placeholder","placeholder");MV(b,"autocomplete","autocomplete");NV(b,"disabled","disabled");NV(b,"readOnly","readonly");NV(b,"required","required");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFormFieldRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),l=document.createElement("input"),m=document.createElement("span"),
12
12
  p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-form-field-label-color:var(--x-color-text-muted,#374151);--x-form-field-label-font-size:var(--x-font-size-sm,0.875rem);--x-form-field-input-bg:var(--x-color-surface,#ffffff);--x-form-field-input-color:var(--x-color-text,#111827);--x-form-field-input-border:1px solid var(--x-color-border,#d1d5db);--x-form-field-input-border-radius:var(--x-radius-md,6px);--x-form-field-input-padding:0.5rem 0.75rem;--x-form-field-focus-ring-color:var(--x-color-primary,#2563eb);--x-form-field-error-color:var(--x-color-danger,#dc2626);--x-form-field-hint-color:var(--x-color-text-muted,#6b7280);--x-form-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-form-field-label-color:var(--x-color-text-muted,#d1d5db);--x-form-field-input-bg:var(--x-color-surface-hover,#1f2937);--x-form-field-input-color:var(--x-color-text,#f9fafb);--x-form-field-input-border:1px solid var(--x-color-border,#4b5563);--x-form-field-focus-ring-color:var(--x-color-primary,#3b82f6);--x-form-field-error-color:var(--x-color-danger,#f87171);--x-form-field-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-form-field-label-font-size);font-weight:500;color:var(--x-form-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:block;}[part\x3dinput]{display:block;width:100%;box-sizing:border-box;padding:var(--x-form-field-input-padding);background:var(--x-form-field-input-bg);color:var(--x-form-field-input-color);border:var(--x-form-field-input-border);border-radius:var(--x-form-field-input-border-radius);font-size:1rem;line-height:1.5;font-family:inherit;outline:none;transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput]:focus{border-color:var(--x-form-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput]{border-color:var(--x-form-field-error-color);}:host([data-invalid]) [part\x3dinput]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-error-color) 20%,transparent);}[part\x3dinput]:disabled{opacity:var(--x-form-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-form-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-form-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]{transition:none;}}";
13
13
  e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","input");h.setAttribute("part","input-wrapper");l.setAttribute("part","input");l.setAttribute("id","input");l.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id","error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");h.appendChild(l);
14
- e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xFormFieldRefs={field:e,label:g,input:l,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xFormFieldInternals=this.attachInternals())}lT(this);c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=$APP.k(this,
15
- "__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=jT(this),e=kT(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xFormFieldHandlers={input:d,change:e});return hT(this)};b.disconnectedCallback=function(){return lT(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.i(c,"value")&&(c=$APP.k(this,"__xFormFieldRefs"),$APP.n(c)&&(c=$APP.k(c,"input"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return hT(this)};b.formDisabledCallback=function(c){eT(this,"disabled",$APP.F(c));
16
- return hT(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&($APP.k(c,"input").value="");c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&c.setFormValue("");return hT(this)};return a},rT=function(){return $APP.n(customElements.get("x-form-field"))?null:customElements.define("x-form-field",qT())};var pT="label type name value placeholder hint error disabled readonly required autocomplete".split(" "),gT=new $APP.R(null,new $APP.Q(null,6,["url",null,"tel",null,"email",null,"text",null,"number",null,"password",null],null),null);
17
- $APP.zf([$APP.lm,$APP.Nj,$APP.vj,$APP.Ti,$APP.wj,$APP.Z,$APP.U,$APP.Nl,$APP.wk],[new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"placeholder"],null),new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"type"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"label"],null),new $APP.Q(null,
18
- 2,[$APP.Z,$APP.Y,$APP.Bk,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"required"],null)]);$APP.ha("baredom.exports.x_form_field.init",rT);export const init=rT;
14
+ e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xFormFieldRefs={field:e,label:g,input:l,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xFormFieldInternals=this.attachInternals())}LV(this);c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=$APP.k(this,
15
+ "__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=JV(this),e=KV(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xFormFieldHandlers={input:d,change:e});return HV(this)};b.disconnectedCallback=function(){return LV(this)};b.attributeChangedCallback=function(c,d,e){$APP.B.i(c,"value")&&(c=$APP.k(this,"__xFormFieldRefs"),$APP.n(c)&&(c=$APP.k(c,"input"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return HV(this)};b.formDisabledCallback=function(c){EV(this,"disabled",$APP.F(c));
16
+ return HV(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&($APP.k(c,"input").value="");c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&c.setFormValue("");return HV(this)};return a},RV=function(){return $APP.n(customElements.get("x-form-field"))?null:customElements.define("x-form-field",QV())};var PV="label type name value placeholder hint error disabled readonly required autocomplete".split(" "),GV=new $APP.S(null,new $APP.R(null,6,["url",null,"tel",null,"email",null,"text",null,"number",null,"password",null],null),null);
17
+ $APP.zf([$APP.qm,$APP.Pj,$APP.Aj,$APP.Yi,$APP.Bj,$APP.Z,$APP.U,$APP.Zl,$APP.Dk],[new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"placeholder"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"type"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"label"],null),new $APP.R(null,
18
+ 2,[$APP.Z,$APP.Y,$APP.Ik,"autocomplete"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"required"],null)]);$APP.ha("baredom.exports.x_form_field.init",RV);export const init=RV;
package/dist/x-form.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var uP=function(a,b){return a.setAttribute("autocomplete",b)},yP=function(a){a=new $APP.Q(null,3,[$APP.pm,a.getAttribute("loading"),vP,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.mi,a.getAttribute("autocomplete")],null);var b=$APP.M(a),c=$APP.D(b,$APP.pm);a=$APP.D(b,vP);b=$APP.D(b,$APP.mi);c=c!=null&&$APP.N(c,"false");b=$APP.I(wP,b)?b:"on";return new $APP.Q(null,3,[$APP.yi,c,xP,a!=null,$APP.Nl,b],null)},zP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");a=yP(a);uP(b,
3
- $APP.Nl.g(a));if($APP.n($APP.yi.g(a)))return b.setAttribute("aria-busy","true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},AP=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.N(g,""):m}())){var h=e.tagName.toLowerCase(),l=e.getAttribute("type");$APP.C.i(l,"checkbox")||$APP.C.i(l,"radio")||$APP.C.i(h,"x-checkbox")?
4
- $APP.n(e.checked)&&(b[g]=function(){var m=e.value;return $APP.n(m)?m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},BP=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d}))},CP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");var c=function(g){g.preventDefault();g=yP(a);if($APP.n($APP.yi.g(g)))g=null;else{g=xP.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");
5
- for(var h={ok:!0},l=g.length,m=0;;)if(m<l){var p=g[m];$APP.n(p.reportValidity)&&($APP.n(p.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=AP(a),g=BP(a,"x-form-submit",{values:g},!0)):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,l=0;;)if(l<h){var m=g[l];$APP.n(m.formResetCallback)&&m.formResetCallback();l+=1}else break;return BP(a,"x-form-reset",{},!1)},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=
6
- g.type;var h=$APP.k(a,"__xFormRefs");if($APP.n(h)){h=$APP.k(h,"form");g=$APP.C.i(g,"submit")||$APP.C.i(g,"")?h.requestSubmit():$APP.C.i(g,"reset")?h.reset():null;break a}}g=null}return g};b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.ja(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},DP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormHandlers");if($APP.n(c)){b=$APP.k(b,"form");b.removeEventListener("submit",$APP.k(c,
7
- "submit"));b.removeEventListener("reset",$APP.k(c,"reset"));a.removeEventListener("click",$APP.k(c,"click"));a.__xFormHandlers=null;return}}return null},EP=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.F(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},FP=function(a){Object.defineProperty(a,"autocomplete",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("autocomplete");return $APP.n(b)?
8
- b:""},set:function(b){return b!=null&&$APP.N(b)?uP(this,""+$APP.T.g(b)):this.removeAttribute("autocomplete")}})},HP=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return GP}});EP(b,"loading","loading");EP(b,"novalidate","novalidate");FP(b);b.connectedCallback=function(){if(!$APP.n(this.shadowRoot)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("form"),g=document.createElement("slot");
9
- d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}DP(this);CP(this);return zP(this)};b.disconnectedCallback=function(){return DP(this)};b.attributeChangedCallback=function(){return zP(this)};b.submit=function(){var c=
10
- $APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").requestSubmit():null};b.reset=function(){var c=$APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").reset():null};b.setFieldError=function(c,d){c=this.querySelector('[name\x3d"'+$APP.T.g(c)+'"]');return $APP.n(c)?d==null||$APP.C.i(d,"")||$APP.C.i(d,void 0)?c.removeAttribute("error"):c.setAttribute("error",d):null};b.clearErrors=function(){for(var c=this.querySelectorAll("[error]"),d=c.length,e=0;;)if(e<d)c[e].removeAttribute("error"),
11
- e+=1;else return null};return a},IP=function(){return $APP.n(customElements.get("x-form"))?null:customElements.define("x-form",HP())},vP=new $APP.K(null,"novalidate-raw","novalidate-raw",1783236714),xP=new $APP.K(null,"novalidate?","novalidate?",491529885);var GP=["loading","novalidate","autocomplete"],wP=new $APP.R(null,new $APP.Q(null,2,["off",null,"on",null],null),null);$APP.ha("baredom.exports.x_form.init",IP);export const init=IP;
2
+ var VR=function(a,b){return a.setAttribute("autocomplete",b)},$R=function(a){a=new $APP.R(null,3,[$APP.Bm,a.getAttribute("loading"),WR,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.oi,a.getAttribute("autocomplete")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Bm);a=$APP.D(b,WR);b=$APP.D(b,$APP.oi);c=c!=null&&$APP.N(c,"false");b=$APP.I(YR,b)?b:"on";return new $APP.R(null,3,[$APP.Ci,c,ZR,a!=null,$APP.Zl,b],null)},aS=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");a=$R(a);VR(b,
3
+ $APP.Zl.g(a));if($APP.n($APP.Ci.g(a)))return b.setAttribute("aria-busy","true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},bS=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.N(g,""):m}())){var h=e.tagName.toLowerCase(),l=e.getAttribute("type");$APP.B.i(l,"checkbox")||$APP.B.i(l,"radio")||$APP.B.i(h,"x-checkbox")?
4
+ $APP.n(e.checked)&&(b[g]=function(){var m=e.value;return $APP.n(m)?m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},cS=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d}))},dS=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");var c=function(g){g.preventDefault();g=$R(a);if($APP.n($APP.Ci.g(g)))g=null;else{g=ZR.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");
5
+ for(var h={ok:!0},l=g.length,m=0;;)if(m<l){var p=g[m];$APP.n(p.reportValidity)&&($APP.n(p.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=bS(a),g=cS(a,"x-form-submit",{values:g},!0)):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,l=0;;)if(l<h){var m=g[l];$APP.n(m.formResetCallback)&&m.formResetCallback();l+=1}else break;return cS(a,"x-form-reset",{},!1)},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=
6
+ g.type;var h=$APP.k(a,"__xFormRefs");if($APP.n(h)){h=$APP.k(h,"form");g=$APP.B.i(g,"submit")||$APP.B.i(g,"")?h.requestSubmit():$APP.B.i(g,"reset")?h.reset():null;break a}}g=null}return g};b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.ja(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},eS=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormHandlers");if($APP.n(c)){b=$APP.k(b,"form");b.removeEventListener("submit",$APP.k(c,
7
+ "submit"));b.removeEventListener("reset",$APP.k(c,"reset"));a.removeEventListener("click",$APP.k(c,"click"));a.__xFormHandlers=null;return}}return null},fS=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.F(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},gS=function(a){Object.defineProperty(a,"autocomplete",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("autocomplete");return $APP.n(b)?
8
+ b:""},set:function(b){return b!=null&&$APP.N(b)?VR(this,""+$APP.T.g(b)):this.removeAttribute("autocomplete")}})},iS=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return hS}});fS(b,"loading","loading");fS(b,"novalidate","novalidate");gS(b);b.connectedCallback=function(){if(!$APP.n(this.shadowRoot)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("form"),g=document.createElement("slot");
9
+ d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}eS(this);dS(this);return aS(this)};b.disconnectedCallback=function(){return eS(this)};b.attributeChangedCallback=function(){return aS(this)};b.submit=function(){var c=
10
+ $APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").requestSubmit():null};b.reset=function(){var c=$APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").reset():null};b.setFieldError=function(c,d){c=this.querySelector('[name\x3d"'+$APP.T.g(c)+'"]');return $APP.n(c)?d==null||$APP.B.i(d,"")||$APP.B.i(d,void 0)?c.removeAttribute("error"):c.setAttribute("error",d):null};b.clearErrors=function(){for(var c=this.querySelectorAll("[error]"),d=c.length,e=0;;)if(e<d)c[e].removeAttribute("error"),
11
+ e+=1;else return null};return a},jS=function(){return $APP.n(customElements.get("x-form"))?null:customElements.define("x-form",iS())},WR=new $APP.K(null,"novalidate-raw","novalidate-raw",1783236714),ZR=new $APP.K(null,"novalidate?","novalidate?",491529885);var hS=["loading","novalidate","autocomplete"],YR=new $APP.S(null,new $APP.R(null,2,["off",null,"on",null],null),null);$APP.ha("baredom.exports.x_form.init",jS);export const init=jS;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var UU=function(a,b,c){var d=$APP.z(a);return $APP.We.m($APP.fe,$APP.ae.g(function(e){var g=e*2.39996323,h=50+30*Math.cos(g);g=50+30*Math.sin(g);var l=10*Math.sin(e*2.39996323),m=10*Math.cos(e*Math.PI),p=Math.sin(e*1.618);p=.7+p*p*.6;var q=.8+.4*Math.sin(e*1.3),v=-(e/$APP.qh.i(b,1));return new $APP.Q(null,7,[$APP.Jj,$APP.pc(a,$APP.fd(e,d)),$APP.xl,h+l,$APP.wl,g+m,$APP.Kh,c*p,RU,$APP.fd(e,4),SU,q,TU,v],null)}),$APP.dg(0,b))},VU=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
2
+ var tX=function(a,b,c){var d=$APP.z(a);return $APP.We.m($APP.fe,$APP.ae.g(function(e){var g=e*2.39996323,h=50+30*Math.cos(g);g=50+30*Math.sin(g);var l=10*Math.sin(e*2.39996323),m=10*Math.cos(e*Math.PI),p=Math.sin(e*1.618);p=.7+p*p*.6;var q=.8+.4*Math.sin(e*1.3),v=-(e/$APP.oh.i(b,1));return new $APP.R(null,7,[$APP.Oj,$APP.pc(a,$APP.fd(e,d)),$APP.Jl,h+l,$APP.Il,g+m,$APP.Mh,c*p,qX,$APP.fd(e,4),rX,q,sX,v],null)}),$APP.dg(0,b))},uX=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
3
3
  d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot");c.textContent=":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;box-sizing:border-box;color-scheme:light dark;--x-gaussian-blur-bg:transparent;--x-gaussian-blur-z-index:0;--x-gaussian-blur-border-radius:0;}:host{border-radius:var(--x-gaussian-blur-border-radius);}[part\x3dbackdrop]{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:var(--x-gaussian-blur-z-index);background:var(--x-gaussian-blur-bg);}[part\x3dcontent]{position:relative;z-index:1;width:100%;height:100%;}.blob{position:absolute;border-radius:50%;will-change:transform;pointer-events:none;}@keyframes x-gb-float-0{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(12%,-18%);}50%{transform:translate(-50%,-50%) translate(-10%,15%);}75%{transform:translate(-50%,-50%) translate(15%,6%);}}@keyframes x-gb-float-1{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-15%,10%);}50%{transform:translate(-50%,-50%) translate(18%,-12%);}75%{transform:translate(-50%,-50%) translate(-8%,-16%);}}@keyframes x-gb-float-2{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(10%,16%);}50%{transform:translate(-50%,-50%) translate(-18%,-8%);}75%{transform:translate(-50%,-50%) translate(14%,-12%);}}@keyframes x-gb-float-3{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-12%,-10%);}50%{transform:translate(-50%,-50%) translate(16%,18%);}75%{transform:translate(-50%,-50%) translate(-10%,14%);}}@keyframes x-gb-pulse-0{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.2) translate(10%,-14%);}66%{transform:translate(-50%,-50%) scale(0.85) translate(-10%,10%);}}@keyframes x-gb-pulse-1{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.85) translate(-14%,10%);}66%{transform:translate(-50%,-50%) scale(1.2) translate(12%,-8%);}}@keyframes x-gb-pulse-2{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.18) translate(8%,16%);}66%{transform:translate(-50%,-50%) scale(0.82) translate(-16%,-10%);}}@keyframes x-gb-pulse-3{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.88) translate(-10%,-14%);}66%{transform:translate(-50%,-50%) scale(1.15) translate(10%,16%);}}:host([data-paused]) .blob{animation-play-state:paused;}@media (prefers-reduced-motion:reduce){.blob{animation:none!important;}}";
4
- d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},WU=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},fV=function(a){var b=
5
- $APP.zf([XU,$APP.Ug,$APP.Bj,$APP.km,$APP.Kh,$APP.ii,$APP.oi,$APP.Ph,YU],[a.getAttribute("paused"),a.getAttribute("animation"),a.getAttribute("speed"),a.getAttribute("colors"),a.getAttribute("size"),a.getAttribute("blur"),a.getAttribute("opacity"),a.getAttribute("count"),a.getAttribute("blend")]);var c=$APP.M(b);b=$APP.D(c,YU);var d=$APP.D(c,XU),e=$APP.D(c,$APP.Ug),g=$APP.D(c,$APP.Bj);var h=$APP.D(c,$APP.km);var l=$APP.D(c,$APP.Kh),m=$APP.D(c,$APP.ii),p=$APP.D(c,$APP.oi);c=$APP.D(c,$APP.Ph);h=ZU(h);
6
- typeof c==="string"&&$APP.N("",c.trim())?(c=parseInt(c.trim(),10),c=$APP.n(isFinite(c))?$APP.rh.i(12,$APP.qh.i(1,c)):5):c=5;if(typeof l==="string"&&$APP.N("",l.trim())){l=l.trim();var q=$APP.D($U,l);$APP.n(q)?l=q:(l=parseFloat(l),q=isFinite(l),l=$APP.n($APP.n(q)?l>0:q)?$APP.rh.i(100,$APP.qh.i(10,l)):50)}else l=50;typeof g==="string"&&$APP.N("",g.trim())?(g=g.trim(),q=$APP.D(aV,g),$APP.n(q)?g=q:(g=parseFloat(g),q=isFinite(g),g=$APP.n($APP.n(q)?g>0:q)?g:10)):g=10;e=typeof e==="string"&&$APP.I(bV,e)?
7
- e:"float";d=d!=null;typeof m==="string"&&$APP.N("",m.trim())?(m=parseFloat(m.trim()),q=isFinite(m),m=$APP.n($APP.n(q)?m>0:q)?m:60):m=60;q=UU(h,c,l);typeof p==="string"&&$APP.N("",p.trim())?(p=parseFloat(p.trim()),p=$APP.n(isFinite(p))?$APP.rh.i(1,$APP.qh.i(0,p)):.7):p=.7;b=typeof b==="string"&&$APP.I(cV,b)?b:"normal";h=$APP.zf([XU,$APP.Ug,$APP.km,dV,$APP.ii,$APP.Bm,$APP.oi,$APP.Ph,YU,eV],[d,e,h,g,m,q,p,c,b,l]);b=$APP.M(h);p=$APP.D(b,$APP.ii);c=$APP.D(b,$APP.oi);m=$APP.D(b,YU);l=$APP.D(b,$APP.Ug);
8
- d=$APP.D(b,XU);e=$APP.k(a,"__xGaussianBlurBackdrop");b=$APP.k(a,"__xGaussianBlurSlot");e.style.setProperty("filter","blur("+$APP.T.g(p)+"px)");e.style.setProperty("opacity",""+$APP.T.g(c));e.style.setProperty("mix-blend-mode",m);$APP.n(d)?a.setAttribute("data-paused",""):a.removeAttribute("data-paused");a.setAttribute("data-animation",l);a:{m=$APP.M(h);h=$APP.D(m,$APP.Bm);p=$APP.D(m,$APP.Ug);c=$APP.D(m,dV);$APP.D(m,$APP.ii);d=$APP.k(a,"__xGaussianBlurBackdrop");m=$APP.k(a,"__xGaussianBlurBlobs");
9
- e=m.length;l=$APP.z(h);for(g=e;;)if(g<l)q=document.createElement("div"),q.className="blob",d.appendChild(q),m.push(q),g+=1;else break;for(;;)if(e>l)g=m.pop(),d.removeChild(g),--e;else break;for(d=0;;)if(d<l){var v=m[d];q=$APP.pc(h,d);g=p;e=c;var x=$APP.M(q),y=$APP.D(x,$APP.Jj),A=$APP.D(x,$APP.xl),B=$APP.D(x,$APP.wl),E=$APP.D(x,$APP.Kh),G=$APP.D(x,RU);q=$APP.D(x,SU);x=$APP.D(x,TU);v=v.style;E=""+$APP.T.g(E)+"%";v.setProperty("left",""+$APP.T.g(A)+"%");v.setProperty("top",""+$APP.T.g(B)+"%");v.setProperty("width",
10
- E);v.setProperty("height",E);v.setProperty("background","radial-gradient(circle,"+$APP.T.g(y)+" 0%,transparent 70%)");v.setProperty("transform","translate(-50%,-50%)");b:switch(y=G,g){case "float":g="x-gb-float-"+$APP.T.g(y);break b;case "pulse":g="x-gb-pulse-"+$APP.T.g(y);break b;default:g=null}$APP.n(g)?(q*=e,e*=x,v.setProperty("animation",""+$APP.T.g(g)+" "+$APP.T.g(q)+"s ease-in-out "+$APP.T.g(e)+"s infinite")):v.removeProperty("animation");d+=1}else break a}WU(a,b)},gV=function(a){function b(){return WU(a,
11
- c)}$APP.n($APP.k(a,"__xGaussianBlurInit"))||VU(a);var c=$APP.k(a,"__xGaussianBlurSlot");a.__xGaussianBlurSlotHandler=b;c.addEventListener("slotchange",b);fV(a)},hV=function(a){for(var b=$APP.t(new $APP.O(null,8,5,$APP.P,[new $APP.O(null,3,5,$APP.P,["colors","colors","#6366f1, #ec4899, #14b8a6, #f59e0b"],null),new $APP.O(null,3,5,$APP.P,["blur","blur","60"],null),new $APP.O(null,3,5,$APP.P,["speed","speed","medium"],null),new $APP.O(null,3,5,$APP.P,["count","count","5"],null),new $APP.O(null,3,5,$APP.P,
12
- ["size","size","medium"],null),new $APP.O(null,3,5,$APP.P,["opacity","opacity","0.7"],null),new $APP.O(null,3,5,$APP.P,["animation","animation","float"],null),new $APP.O(null,3,5,$APP.P,["blend","blend","normal"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.Ac(g,0,null),l=$APP.Ac(g,1,null),m=$APP.Ac(g,2,null);Object.defineProperty(a,h,{get:function(v,x,y,A,B,E,G,H){return function(){var J=this.getAttribute(G);return $APP.n(J)?J:H}}(b,c,d,e,g,h,l,m),set:function(v,x,y,A,B,E,G){return function(H){return typeof H===
13
- "string"&&$APP.N("",H)?this.setAttribute(G,H):this.removeAttribute(G)}}(b,c,d,e,g,h,l,m),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.t(b)){g=h;if($APP.Nc(g))b=$APP.yb(g),e=$APP.zb(g),c=b,d=$APP.z(b),b=e;else{l=$APP.u(g);m=$APP.Ac(l,0,null);var p=$APP.Ac(l,1,null),q=$APP.Ac(l,2,null);Object.defineProperty(a,m,{get:function(v,x,y,A,B,E,G,H){return function(){var J=this.getAttribute(G);return $APP.n(J)?J:H}}(b,c,d,e,l,m,p,q,g,h),set:function(v,x,y,A,B,E,G){return function(H){return typeof H===
14
- "string"&&$APP.N("",H)?this.setAttribute(G,H):this.removeAttribute(G)}}(b,c,d,e,l,m,p,q,g,h),enumerable:!0,configurable:!0});b=$APP.w(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"paused",{get:function(){return this.hasAttribute("paused")},set:function(v){return $APP.n(v)?this.setAttribute("paused",""):this.removeAttribute("paused")},enumerable:!0,configurable:!0})},jV=function(){var a=class extends HTMLElement{};a.observedAttributes=iV;a.prototype.connectedCallback=function(){gV(this);return null};
15
- a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xGaussianBlurSlot"),c=$APP.k(this,"__xGaussianBlurSlotHandler");$APP.n($APP.n(b)?c:b)&&b.removeEventListener("slotchange",c);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xGaussianBlurInit"))&&fV(this);return null};hV(a.prototype);return a},kV=function(){$APP.n(customElements.get("x-gaussian-blur"))||customElements.define("x-gaussian-blur",jV());return null},dV=new $APP.K(null,"speed-s",
16
- "speed-s",-1018350546),YU=new $APP.K(null,"blend","blend",249565561),XU=new $APP.K(null,"paused","paused",-1710376127),eV=new $APP.K(null,"size-pct","size-pct",-741809955),RU=new $APP.K(null,"anim-index","anim-index",-1563021855),TU=new $APP.K(null,"delay-factor","delay-factor",-751650178),SU=new $APP.K(null,"duration-factor","duration-factor",-409465019);var iV="colors blur speed count size opacity animation blend paused".split(" ");
17
- $APP.zf([XU,$APP.Ug,$APP.Bj,$APP.km,$APP.Kh,$APP.ii,$APP.oi,$APP.Ph,YU],[new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"paused"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"animation"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"speed"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"colors"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"blur"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"opacity"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,
18
- $APP.Bk,"count"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"blend"],null)]);
19
- var bV=new $APP.R(null,new $APP.Q(null,3,["float",null,"none",null,"pulse",null],null),null),cV=new $APP.R(null,new $APP.Q(null,5,["soft-light",null,"multiply",null,"screen",null,"normal",null,"overlay",null],null),null),aV=new $APP.Q(null,3,["slow",18,"medium",10,"fast",5],null),$U=new $APP.Q(null,3,["small",30,"medium",50,"large",70],null),ZU=function ZU(a){return typeof a==="string"&&$APP.N("",a.trim())?(a=a.trim().split(/,/),$APP.We.m($APP.fe,$APP.sh.i($APP.ae.g(function(c){return c.trim()}),
20
- $APP.ce(function(c){return $APP.N("",c)})),a)):ZU.g?ZU.g("#6366f1, #ec4899, #14b8a6, #f59e0b"):ZU.call(null,"#6366f1, #ec4899, #14b8a6, #f59e0b")};$APP.ha("baredom.exports.x_gaussian_blur.init",kV);export const init=kV;
4
+ d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},vX=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},FX=function(a){var b=
5
+ $APP.zf([wX,$APP.Wg,$APP.Gj,$APP.pm,$APP.Mh,$APP.ki,$APP.qi,$APP.Rh,xX],[a.getAttribute("paused"),a.getAttribute("animation"),a.getAttribute("speed"),a.getAttribute("colors"),a.getAttribute("size"),a.getAttribute("blur"),a.getAttribute("opacity"),a.getAttribute("count"),a.getAttribute("blend")]);var c=$APP.M(b);b=$APP.D(c,xX);var d=$APP.D(c,wX),e=$APP.D(c,$APP.Wg),g=$APP.D(c,$APP.Gj);var h=$APP.D(c,$APP.pm);var l=$APP.D(c,$APP.Mh),m=$APP.D(c,$APP.ki),p=$APP.D(c,$APP.qi);c=$APP.D(c,$APP.Rh);h=yX(h);
6
+ typeof c==="string"&&$APP.N("",c.trim())?(c=parseInt(c.trim(),10),c=$APP.n(isFinite(c))?$APP.sh.i(12,$APP.oh.i(1,c)):5):c=5;if(typeof l==="string"&&$APP.N("",l.trim())){l=l.trim();var q=$APP.D(zX,l);$APP.n(q)?l=q:(l=parseFloat(l),q=isFinite(l),l=$APP.n($APP.n(q)?l>0:q)?$APP.sh.i(100,$APP.oh.i(10,l)):50)}else l=50;typeof g==="string"&&$APP.N("",g.trim())?(g=g.trim(),q=$APP.D(AX,g),$APP.n(q)?g=q:(g=parseFloat(g),q=isFinite(g),g=$APP.n($APP.n(q)?g>0:q)?g:10)):g=10;e=typeof e==="string"&&$APP.I(BX,e)?
7
+ e:"float";d=d!=null;typeof m==="string"&&$APP.N("",m.trim())?(m=parseFloat(m.trim()),q=isFinite(m),m=$APP.n($APP.n(q)?m>0:q)?m:60):m=60;q=tX(h,c,l);typeof p==="string"&&$APP.N("",p.trim())?(p=parseFloat(p.trim()),p=$APP.n(isFinite(p))?$APP.sh.i(1,$APP.oh.i(0,p)):.7):p=.7;b=typeof b==="string"&&$APP.I(CX,b)?b:"normal";h=$APP.zf([wX,$APP.Wg,$APP.pm,DX,$APP.ki,$APP.Om,$APP.qi,$APP.Rh,xX,EX],[d,e,h,g,m,q,p,c,b,l]);b=$APP.M(h);p=$APP.D(b,$APP.ki);c=$APP.D(b,$APP.qi);m=$APP.D(b,xX);l=$APP.D(b,$APP.Wg);
8
+ d=$APP.D(b,wX);e=$APP.k(a,"__xGaussianBlurBackdrop");b=$APP.k(a,"__xGaussianBlurSlot");e.style.setProperty("filter","blur("+$APP.T.g(p)+"px)");e.style.setProperty("opacity",""+$APP.T.g(c));e.style.setProperty("mix-blend-mode",m);$APP.n(d)?a.setAttribute("data-paused",""):a.removeAttribute("data-paused");a.setAttribute("data-animation",l);a:{m=$APP.M(h);h=$APP.D(m,$APP.Om);p=$APP.D(m,$APP.Wg);c=$APP.D(m,DX);$APP.D(m,$APP.ki);d=$APP.k(a,"__xGaussianBlurBackdrop");m=$APP.k(a,"__xGaussianBlurBlobs");
9
+ e=m.length;l=$APP.z(h);for(g=e;;)if(g<l)q=document.createElement("div"),q.className="blob",d.appendChild(q),m.push(q),g+=1;else break;for(;;)if(e>l)g=m.pop(),d.removeChild(g),--e;else break;for(d=0;;)if(d<l){var v=m[d];q=$APP.pc(h,d);g=p;e=c;var x=$APP.M(q),y=$APP.D(x,$APP.Oj),A=$APP.D(x,$APP.Jl),C=$APP.D(x,$APP.Il),E=$APP.D(x,$APP.Mh),H=$APP.D(x,qX);q=$APP.D(x,rX);x=$APP.D(x,sX);v=v.style;E=""+$APP.T.g(E)+"%";v.setProperty("left",""+$APP.T.g(A)+"%");v.setProperty("top",""+$APP.T.g(C)+"%");v.setProperty("width",
10
+ E);v.setProperty("height",E);v.setProperty("background","radial-gradient(circle,"+$APP.T.g(y)+" 0%,transparent 70%)");v.setProperty("transform","translate(-50%,-50%)");b:switch(y=H,g){case "float":g="x-gb-float-"+$APP.T.g(y);break b;case "pulse":g="x-gb-pulse-"+$APP.T.g(y);break b;default:g=null}$APP.n(g)?(q*=e,e*=x,v.setProperty("animation",""+$APP.T.g(g)+" "+$APP.T.g(q)+"s ease-in-out "+$APP.T.g(e)+"s infinite")):v.removeProperty("animation");d+=1}else break a}vX(a,b)},GX=function(a){function b(){return vX(a,
11
+ c)}$APP.n($APP.k(a,"__xGaussianBlurInit"))||uX(a);var c=$APP.k(a,"__xGaussianBlurSlot");a.__xGaussianBlurSlotHandler=b;c.addEventListener("slotchange",b);FX(a)},HX=function(a){for(var b=$APP.t(new $APP.O(null,8,5,$APP.P,[new $APP.O(null,3,5,$APP.P,["colors","colors","#6366f1, #ec4899, #14b8a6, #f59e0b"],null),new $APP.O(null,3,5,$APP.P,["blur","blur","60"],null),new $APP.O(null,3,5,$APP.P,["speed","speed","medium"],null),new $APP.O(null,3,5,$APP.P,["count","count","5"],null),new $APP.O(null,3,5,$APP.P,
12
+ ["size","size","medium"],null),new $APP.O(null,3,5,$APP.P,["opacity","opacity","0.7"],null),new $APP.O(null,3,5,$APP.P,["animation","animation","float"],null),new $APP.O(null,3,5,$APP.P,["blend","blend","normal"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.Ac(g,0,null),l=$APP.Ac(g,1,null),m=$APP.Ac(g,2,null);Object.defineProperty(a,h,{get:function(v,x,y,A,C,E,H,G){return function(){var J=this.getAttribute(H);return $APP.n(J)?J:G}}(b,c,d,e,g,h,l,m),set:function(v,x,y,A,C,E,H){return function(G){return typeof G===
13
+ "string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,g,h,l,m),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.t(b)){g=h;if($APP.Nc(g))b=$APP.yb(g),e=$APP.zb(g),c=b,d=$APP.z(b),b=e;else{l=$APP.u(g);m=$APP.Ac(l,0,null);var p=$APP.Ac(l,1,null),q=$APP.Ac(l,2,null);Object.defineProperty(a,m,{get:function(v,x,y,A,C,E,H,G){return function(){var J=this.getAttribute(H);return $APP.n(J)?J:G}}(b,c,d,e,l,m,p,q,g,h),set:function(v,x,y,A,C,E,H){return function(G){return typeof G===
14
+ "string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,l,m,p,q,g,h),enumerable:!0,configurable:!0});b=$APP.w(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"paused",{get:function(){return this.hasAttribute("paused")},set:function(v){return $APP.n(v)?this.setAttribute("paused",""):this.removeAttribute("paused")},enumerable:!0,configurable:!0})},JX=function(){var a=class extends HTMLElement{};a.observedAttributes=IX;a.prototype.connectedCallback=function(){GX(this);return null};
15
+ a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xGaussianBlurSlot"),c=$APP.k(this,"__xGaussianBlurSlotHandler");$APP.n($APP.n(b)?c:b)&&b.removeEventListener("slotchange",c);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xGaussianBlurInit"))&&FX(this);return null};HX(a.prototype);return a},KX=function(){$APP.n(customElements.get("x-gaussian-blur"))||customElements.define("x-gaussian-blur",JX());return null},DX=new $APP.K(null,"speed-s",
16
+ "speed-s",-1018350546),xX=new $APP.K(null,"blend","blend",249565561),wX=new $APP.K(null,"paused","paused",-1710376127),EX=new $APP.K(null,"size-pct","size-pct",-741809955),qX=new $APP.K(null,"anim-index","anim-index",-1563021855),sX=new $APP.K(null,"delay-factor","delay-factor",-751650178),rX=new $APP.K(null,"duration-factor","duration-factor",-409465019);var IX="colors blur speed count size opacity animation blend paused".split(" ");
17
+ $APP.zf([wX,$APP.Wg,$APP.Gj,$APP.pm,$APP.Mh,$APP.ki,$APP.qi,$APP.Rh,xX],[new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"paused"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"animation"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"speed"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"colors"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"size"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"blur"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"opacity"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,
18
+ $APP.Ik,"count"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"blend"],null)]);
19
+ var BX=new $APP.S(null,new $APP.R(null,3,["float",null,"none",null,"pulse",null],null),null),CX=new $APP.S(null,new $APP.R(null,5,["soft-light",null,"multiply",null,"screen",null,"normal",null,"overlay",null],null),null),AX=new $APP.R(null,3,["slow",18,"medium",10,"fast",5],null),zX=new $APP.R(null,3,["small",30,"medium",50,"large",70],null),yX=function yX(a){return typeof a==="string"&&$APP.N("",a.trim())?(a=a.trim().split(/,/),$APP.We.m($APP.fe,$APP.th.i($APP.ae.g(function(c){return c.trim()}),
20
+ $APP.ce(function(c){return $APP.N("",c)})),a)):yX.g?yX.g("#6366f1, #ec4899, #14b8a6, #f59e0b"):yX.call(null,"#6366f1, #ec4899, #14b8a6, #f59e0b")};$APP.ha("baredom.exports.x_gaussian_blur.init",KX);export const init=KX;
package/dist/x-grid.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var sN=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},tN=function(a,b,c){return $APP.I(b,a)?a:c},uN=function(a){switch(a){case "row-dense":return"row dense";case "column-dense":return"column dense";default:return a}},vN=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},wN=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:"16rem"},HN=function(a){var b=$APP.M(a);
3
- a=$APP.D(b,xN);var c=$APP.D(b,yN),d=$APP.D(b,$APP.im),e=$APP.D(b,zN),g=$APP.D(b,AN),h=$APP.D(b,$APP.Fk),l=$APP.D(b,BN),m=$APP.D(b,$APP.lj);b=$APP.D(b,$APP.Wj);h=vN(h);l=wN(l);var p=tN(b,CN,"md");b=function(){var v=$APP.I(CN,d)?d:null;return $APP.n(v)?v:p}();var q=function(){var v=$APP.I(CN,m)?m:null;return $APP.n(v)?v:p}();g=tN(g,DN,"stretch");c=tN(c,DN,"stretch");e=uN(tN(e,EN,"row"));h=$APP.n(h)?h:"repeat(auto-fit,minmax("+$APP.T.g(l)+",1fr))";return $APP.zf([zN,AN,$APP.Fk,$APP.lj,$APP.Wj,FN,xN,
4
- GN,$APP.im,yN],[e,g,h,sN(q),p,b,$APP.F(a),q,sN(b),c])},IN=function(a){var b=$APP.zf([zN,AN,$APP.Fk,BN,$APP.lj,$APP.Wj,xN,$APP.im,yN],[a.getAttribute("auto-flow"),a.getAttribute("align-items"),a.getAttribute("columns"),a.getAttribute("min-column-size"),a.getAttribute("column-gap"),a.getAttribute("gap"),a.hasAttribute("inline"),a.getAttribute("row-gap"),a.getAttribute("justify-items")]);b=HN(b);a=$APP.k(a,"__x_grid_base");if($APP.n(a)){var c=a.style;a.setAttribute("data-gap",$APP.Wj.g(b));c.setProperty("--x-grid-columns",
5
- $APP.Fk.g(b));c.setProperty("--x-grid-row-gap",$APP.im.g(b));c.setProperty("--x-grid-column-gap",$APP.lj.g(b));c.setProperty("--x-grid-align-items",AN.g(b));c.setProperty("--x-grid-justify-items",yN.g(b));b=c.setProperty("--x-grid-auto-flow",zN.g(b))}else b=null;return b},JN=function(a){if(!$APP.Dg(a,"__x_grid_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n }\n\n :host([inline]) {\n display:inline-block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-grid-columns);\n row-gap:var(--x-grid-row-gap);\n column-gap:var(--x-grid-column-gap);\n align-items:var(--x-grid-align-items);\n justify-items:var(--x-grid-justify-items);\n grid-auto-flow:var(--x-grid-auto-flow);\n }\n ";
6
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_grid_root=b;a.__x_grid_base=d;a.__x_grid_initialized=!0}IN(a);return a},LN=function(){var a=class extends HTMLElement{};a.observedAttributes=KN;a.prototype.connectedCallback=function(){return JN(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__x_grid_initialized")?IN(this):JN(this)};return a},MN=function(){return $APP.n(customElements.get("x-grid"))?null:customElements.define("x-grid",
7
- LN())},BN=new $APP.K(null,"min-column-size","min-column-size",-1066019378),xN=new $APP.K(null,"inline","inline",1399884222),GN=new $APP.K(null,"column-gap-token","column-gap-token",-10192833),AN=new $APP.K(null,"align-items","align-items",-267946462),FN=new $APP.K(null,"row-gap-token","row-gap-token",-219143816),zN=new $APP.K(null,"auto-flow","auto-flow",-1524521728),yN=new $APP.K(null,"justify-items","justify-items",1638310783);var KN="columns min-column-size gap row-gap column-gap align-items justify-items auto-flow inline".split(" "),CN=new $APP.R(null,new $APP.Q(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),DN=new $APP.R(null,new $APP.Q(null,4,["center",null,"start",null,"stretch",null,"end",null],null),null),EN=new $APP.R(null,new $APP.Q(null,5,["column-dense",null,"row-dense",null,"dense",null,"column",null,"row",null],null),null);$APP.ha("baredom.exports.x_grid.init",MN);export const init=MN;
2
+ var TP=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},UP=function(a,b,c){return $APP.I(b,a)?a:c},VP=function(a){switch(a){case "row-dense":return"row dense";case "column-dense":return"column dense";default:return a}},WP=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},XP=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:"16rem"},hQ=function(a){var b=$APP.M(a);
3
+ a=$APP.D(b,YP);var c=$APP.D(b,ZP),d=$APP.D(b,$APP.nm),e=$APP.D(b,$P),g=$APP.D(b,aQ),h=$APP.D(b,$APP.Mk),l=$APP.D(b,bQ),m=$APP.D(b,$APP.qj);b=$APP.D(b,$APP.Yj);h=WP(h);l=XP(l);var p=UP(b,cQ,"md");b=function(){var v=$APP.I(cQ,d)?d:null;return $APP.n(v)?v:p}();var q=function(){var v=$APP.I(cQ,m)?m:null;return $APP.n(v)?v:p}();g=UP(g,dQ,"stretch");c=UP(c,dQ,"stretch");e=VP(UP(e,eQ,"row"));h=$APP.n(h)?h:"repeat(auto-fit,minmax("+$APP.T.g(l)+",1fr))";return $APP.zf([$P,aQ,$APP.Mk,$APP.qj,$APP.Yj,fQ,YP,
4
+ gQ,$APP.nm,ZP],[e,g,h,TP(q),p,b,$APP.F(a),q,TP(b),c])},iQ=function(a){var b=$APP.zf([$P,aQ,$APP.Mk,bQ,$APP.qj,$APP.Yj,YP,$APP.nm,ZP],[a.getAttribute("auto-flow"),a.getAttribute("align-items"),a.getAttribute("columns"),a.getAttribute("min-column-size"),a.getAttribute("column-gap"),a.getAttribute("gap"),a.hasAttribute("inline"),a.getAttribute("row-gap"),a.getAttribute("justify-items")]);b=hQ(b);a=$APP.k(a,"__x_grid_base");if($APP.n(a)){var c=a.style;a.setAttribute("data-gap",$APP.Yj.g(b));c.setProperty("--x-grid-columns",
5
+ $APP.Mk.g(b));c.setProperty("--x-grid-row-gap",$APP.nm.g(b));c.setProperty("--x-grid-column-gap",$APP.qj.g(b));c.setProperty("--x-grid-align-items",aQ.g(b));c.setProperty("--x-grid-justify-items",ZP.g(b));b=c.setProperty("--x-grid-auto-flow",$P.g(b))}else b=null;return b},jQ=function(a){if(!$APP.Dg(a,"__x_grid_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n }\n\n :host([inline]) {\n display:inline-block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-grid-columns);\n row-gap:var(--x-grid-row-gap);\n column-gap:var(--x-grid-column-gap);\n align-items:var(--x-grid-align-items);\n justify-items:var(--x-grid-justify-items);\n grid-auto-flow:var(--x-grid-auto-flow);\n }\n ";
6
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_grid_root=b;a.__x_grid_base=d;a.__x_grid_initialized=!0}iQ(a);return a},lQ=function(){var a=class extends HTMLElement{};a.observedAttributes=kQ;a.prototype.connectedCallback=function(){return jQ(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__x_grid_initialized")?iQ(this):jQ(this)};return a},mQ=function(){return $APP.n(customElements.get("x-grid"))?null:customElements.define("x-grid",
7
+ lQ())},bQ=new $APP.K(null,"min-column-size","min-column-size",-1066019378),YP=new $APP.K(null,"inline","inline",1399884222),gQ=new $APP.K(null,"column-gap-token","column-gap-token",-10192833),aQ=new $APP.K(null,"align-items","align-items",-267946462),fQ=new $APP.K(null,"row-gap-token","row-gap-token",-219143816),$P=new $APP.K(null,"auto-flow","auto-flow",-1524521728),ZP=new $APP.K(null,"justify-items","justify-items",1638310783);var kQ="columns min-column-size gap row-gap column-gap align-items justify-items auto-flow inline".split(" "),cQ=new $APP.S(null,new $APP.R(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),dQ=new $APP.S(null,new $APP.R(null,4,["center",null,"start",null,"stretch",null,"end",null],null),null),eQ=new $APP.S(null,new $APP.R(null,5,["column-dense",null,"row-dense",null,"dense",null,"column",null,"row",null],null),null);$APP.ha("baredom.exports.x_grid.init",mQ);export const init=mQ;
package/dist/x-icon.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var aN=function(){return new $APP.Q(null,3,[$APP.Oh,""+$APP.T.g(ZM)+"px",$M,"md",$APP.Xk,ZM],null)},cN=function(a){if(typeof a==="string"){a=a.trim();var b=a.toLowerCase();if($APP.C.i("",a))return aN();if($APP.I(bN,b))return a=$APP.D(bN,b),new $APP.Q(null,3,[$APP.Oh,""+$APP.T.g(a)+"px",$M,b,$APP.Xk,a],null);b=parseInt(a,10);return typeof b==="number"&&$APP.r(isNaN(b))&&b>0&&$APP.C.i(""+$APP.T.g(b),a)?new $APP.Q(null,3,[$APP.Oh,""+$APP.T.g(b)+"px",$M,null,$APP.Xk,b],null):aN()}return aN()},eN=function(a){if(!$APP.n($APP.k(a,
2
+ var BP=function(){return new $APP.R(null,3,[$APP.Qh,""+$APP.T.g(zP)+"px",AP,"md",$APP.gl,zP],null)},DP=function(a){if(typeof a==="string"){a=a.trim();var b=a.toLowerCase();if($APP.B.i("",a))return BP();if($APP.I(CP,b))return a=$APP.D(CP,b),new $APP.R(null,3,[$APP.Qh,""+$APP.T.g(a)+"px",AP,b,$APP.gl,a],null);b=parseInt(a,10);return typeof b==="number"&&$APP.r(isNaN(b))&&b>0&&$APP.B.i(""+$APP.T.g(b),a)?new $APP.R(null,3,[$APP.Qh,""+$APP.T.g(b)+"px",AP,null,$APP.gl,b],null):BP()}return BP()},FP=function(a){if(!$APP.n($APP.k(a,
3
3
  "__xIconRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("slot");c.textContent=':host{display:inline-flex;align-items:center;justify-content:center;line-height:0;vertical-align:middle;color:var(--x-icon-color,currentColor);--x-icon-size:20px;}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-icon-size);height:var(--x-icon-size);}::slotted(svg){display:block;width:100%;height:100%;}::slotted(svg[fill\x3d"currentColor"]),::slotted(svg[stroke\x3d"currentColor"]){color:inherit;}';
4
- d.setAttribute("part","box");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xIconRefs=new $APP.Q(null,2,[$APP.Ci,b,dN,d],null)}},mN=function(a){var b=new $APP.Q(null,4,[$APP.Il,a.getAttribute("size"),$APP.Sm,a.getAttribute("color"),$APP.ni,a.getAttribute("label"),fN,a.hasAttribute("label")],null);b=$APP.M(b);var c=$APP.D(b,$APP.Il),d=$APP.D(b,$APP.Sm),e=$APP.D(b,$APP.ni);b=$APP.D(b,fN);c=cN(c);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.I(gN,d)?d:"inherit"):d="inherit";e=$APP.n($APP.n(b)?
5
- typeof e==="string":b)?e:"";c=$APP.Oh.g(c);var g=d;$APP.C.i(g,"inherit")?d="inherit":(d=$APP.D(hN,g),g=$APP.D(iN,g),d="var("+$APP.T.g(d)+","+$APP.T.g(g)+")");b=new $APP.Q(null,4,[jN,c,kN,d,$APP.U,e,lN,$APP.F(b)&&$APP.N("",e)],null);if($APP.N($APP.k(a,"__xIconModel"),b)){b=$APP.M(b);e=$APP.D(b,jN);c=$APP.D(b,kN);d=$APP.D(b,$APP.U);g=$APP.D(b,lN);eN(a);var h=a.style;h.setProperty("--x-icon-size",e);h.setProperty("--x-icon-color",c);$APP.n(g)?(a.setAttribute("role","img"),a.setAttribute("aria-label",
6
- d),a.removeAttribute("aria-hidden")):(a.setAttribute("aria-hidden","true"),a.removeAttribute("role"),a.removeAttribute("aria-label"));a.__xIconModel=b}},nN=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||$APP.C.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},oN=function(a){nN(a,"size","size");nN(a,"color","color");nN(a,"label","label")},qN=function(){var a=
7
- class extends HTMLElement{};a.observedAttributes=pN;a.prototype.connectedCallback=function(){eN(this);mN(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&mN(this);return null};oN(a.prototype);return a},rN=function(){$APP.n(customElements.get("x-icon"))||customElements.define("x-icon",qN());return null},$M=new $APP.K(null,"token","token",-1211463215),kN=new $APP.K(null,"color-css","color-css",-1998870384),
8
- dN=new $APP.K(null,"box","box",1530920394),jN=new $APP.K(null,"size-css","size-css",-1292915783),fN=new $APP.K(null,"label-present?","label-present?",-367749525),lN=new $APP.K(null,"labelled?","labelled?",-1907816908);var pN=["size","color","label"],bN=new $APP.Q(null,4,["sm",16,"md",20,"lg",24,"xl",32],null),gN=new $APP.R(null,new $APP.Q(null,8,["success",null,"warning",null,"muted",null,"secondary",null,"tertiary",null,"primary",null,"danger",null,"inherit",null],null),null),iN=new $APP.Q(null,7,"primary #2563eb secondary #64748b tertiary #94a3b8 success #16a34a warning #d97706 danger #dc2626 muted #64748b".split(" "),null),hN=new $APP.Q(null,7,"primary --x-color-primary secondary --x-color-secondary tertiary --x-color-tertiary success --x-color-success warning --x-color-warning danger --x-color-danger muted --x-color-text-muted".split(" "),
9
- null),ZM=$APP.D(bN,"md");$APP.ha("baredom.exports.x_icon.init",rN);export const init=rN;
4
+ d.setAttribute("part","box");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xIconRefs=new $APP.R(null,2,[$APP.Hi,b,EP,d],null)}},NP=function(a){var b=new $APP.R(null,4,[$APP.Ul,a.getAttribute("size"),$APP.en,a.getAttribute("color"),$APP.pi,a.getAttribute("label"),GP,a.hasAttribute("label")],null);b=$APP.M(b);var c=$APP.D(b,$APP.Ul),d=$APP.D(b,$APP.en),e=$APP.D(b,$APP.pi);b=$APP.D(b,GP);c=DP(c);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.I(HP,d)?d:"inherit"):d="inherit";e=$APP.n($APP.n(b)?
5
+ typeof e==="string":b)?e:"";c=$APP.Qh.g(c);var g=d;$APP.B.i(g,"inherit")?d="inherit":(d=$APP.D(IP,g),g=$APP.D(JP,g),d="var("+$APP.T.g(d)+","+$APP.T.g(g)+")");b=new $APP.R(null,4,[KP,c,LP,d,$APP.U,e,MP,$APP.F(b)&&$APP.N("",e)],null);if($APP.N($APP.k(a,"__xIconModel"),b)){b=$APP.M(b);e=$APP.D(b,KP);c=$APP.D(b,LP);d=$APP.D(b,$APP.U);g=$APP.D(b,MP);FP(a);var h=a.style;h.setProperty("--x-icon-size",e);h.setProperty("--x-icon-color",c);$APP.n(g)?(a.setAttribute("role","img"),a.setAttribute("aria-label",
6
+ d),a.removeAttribute("aria-hidden")):(a.setAttribute("aria-hidden","true"),a.removeAttribute("role"),a.removeAttribute("aria-label"));a.__xIconModel=b}},OP=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||$APP.B.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},PP=function(a){OP(a,"size","size");OP(a,"color","color");OP(a,"label","label")},RP=function(){var a=
7
+ class extends HTMLElement{};a.observedAttributes=QP;a.prototype.connectedCallback=function(){FP(this);NP(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&NP(this);return null};PP(a.prototype);return a},SP=function(){$APP.n(customElements.get("x-icon"))||customElements.define("x-icon",RP());return null},AP=new $APP.K(null,"token","token",-1211463215),LP=new $APP.K(null,"color-css","color-css",-1998870384),
8
+ EP=new $APP.K(null,"box","box",1530920394),KP=new $APP.K(null,"size-css","size-css",-1292915783),GP=new $APP.K(null,"label-present?","label-present?",-367749525),MP=new $APP.K(null,"labelled?","labelled?",-1907816908);var QP=["size","color","label"],CP=new $APP.R(null,4,["sm",16,"md",20,"lg",24,"xl",32],null),HP=new $APP.S(null,new $APP.R(null,8,["success",null,"warning",null,"muted",null,"secondary",null,"tertiary",null,"primary",null,"danger",null,"inherit",null],null),null),JP=new $APP.R(null,7,"primary #2563eb secondary #64748b tertiary #94a3b8 success #16a34a warning #d97706 danger #dc2626 muted #64748b".split(" "),null),IP=new $APP.R(null,7,"primary --x-color-primary secondary --x-color-secondary tertiary --x-color-tertiary success --x-color-success warning --x-color-warning danger --x-color-danger muted --x-color-text-muted".split(" "),
9
+ null),zP=$APP.D(CP,"md");$APP.ha("baredom.exports.x_icon.init",SP);export const init=SP;
package/dist/x-image.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var mK=function(a){if(a==null)return new $APP.Q(null,2,[$APP.Oh,null,$APP.Rh,!0],null);if(typeof a!=="string")return new $APP.Q(null,2,[$APP.Oh,null,$APP.Rh,!1],null);a=a.trim().toLowerCase();if($APP.C.i(a,"")||$APP.C.i(a,"auto"))return new $APP.Q(null,2,[$APP.Oh,null,$APP.Rh,!0],null);var b=$APP.eg(lK,a);return $APP.n(b)?(a=parseFloat($APP.pc(b,1)),b=parseFloat($APP.pc(b,2)),a>0&&b>0?new $APP.Q(null,2,[$APP.Oh,""+$APP.T.g(a)+" / "+$APP.T.g(b),$APP.Rh,!0],null):new $APP.Q(null,2,[$APP.Oh,null,$APP.Rh,
3
- !1],null)):new $APP.Q(null,2,[$APP.Oh,null,$APP.Rh,!1],null)},rK=function(a){var b=$APP.k(a,"__xImageRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("img"),h=document.createElement("div"),l=document.createElement("slot"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span");c.textContent=":host{display:block;max-width:100%;box-sizing:border-box;color-scheme:light dark;--x-image-radius:var(--x-radius-md,8px);--x-image-bg:var(--x-color-surface,#f3f4f6);--x-image-border:0;--x-image-shimmer-color:var(--x-color-border,rgba(0,0,0,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.65);--x-image-shimmer-duration:1.5s;--x-image-fade-duration:var(--x-transition-duration,200ms);--x-image-fade-easing:var(--x-transition-easing,ease);--x-image-text:var(--x-color-text-muted,rgba(0,0,0,0.55));--x-image-error-gap:var(--x-space-xs,6px);--x-image-font-family:var(--x-font-family,system-ui,sans-serif);--x-image-font-size:var(--x-font-size-sm,0.875rem);}@media (prefers-color-scheme:dark){:host{--x-image-bg:var(--x-color-surface,#1f2937);--x-image-shimmer-color:var(--x-color-border,rgba(255,255,255,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.10);--x-image-text:var(--x-color-text-muted,rgba(255,255,255,0.65));}}[part\x3dframe]{position:relative;width:100%;height:100%;min-height:1em;background:var(--x-image-bg);border-radius:var(--x-image-radius);border:var(--x-image-border);overflow:hidden;}[part\x3dimage]{display:block;width:100%;height:100%;opacity:0;transition:opacity var(--x-image-fade-duration) var(--x-image-fade-easing);}:host([data-state\x3dloaded]) [part\x3dimage]{opacity:1;}[part\x3dshimmer]{position:absolute;inset:0;background-color:var(--x-image-shimmer-color);background-image:linear-gradient(90deg,transparent 0%,var(--x-image-shimmer-highlight) 50%,transparent 100%);background-size:200% 100%;background-repeat:no-repeat;background-position:-100% 0;animation:x-image-shimmer var(--x-image-shimmer-duration) linear infinite;}@keyframes x-image-shimmer{0%{background-position:-100% 0;}100%{background-position:100% 0;}}:host([data-state\x3dloaded]) [part\x3dshimmer],:host([data-state\x3derror]) [part\x3dshimmer]{display:none;}[part\x3derror]{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:var(--x-image-error-gap);padding:8px;text-align:center;color:var(--x-image-text);font-family:var(--x-image-font-family);font-size:var(--x-image-font-size);}:host([data-state\x3derror]) [part\x3derror]{display:flex;}:host([data-state\x3derror]) [part\x3dimage]{visibility:hidden;}[part\x3derror-glyph]{font-size:1.5em;line-height:1;}[part\x3derror-text]{line-height:1.25;}@media (prefers-reduced-motion:reduce){[part\x3dshimmer]{animation:none;}[part\x3dimage]{transition:none;}}";
2
+ var NM=function(a){if(a==null)return new $APP.R(null,2,[$APP.Qh,null,$APP.Th,!0],null);if(typeof a!=="string")return new $APP.R(null,2,[$APP.Qh,null,$APP.Th,!1],null);a=a.trim().toLowerCase();if($APP.B.i(a,"")||$APP.B.i(a,"auto"))return new $APP.R(null,2,[$APP.Qh,null,$APP.Th,!0],null);var b=$APP.eg(MM,a);return $APP.n(b)?(a=parseFloat($APP.pc(b,1)),b=parseFloat($APP.pc(b,2)),a>0&&b>0?new $APP.R(null,2,[$APP.Qh,""+$APP.T.g(a)+" / "+$APP.T.g(b),$APP.Th,!0],null):new $APP.R(null,2,[$APP.Qh,null,$APP.Th,
3
+ !1],null)):new $APP.R(null,2,[$APP.Qh,null,$APP.Th,!1],null)},SM=function(a){var b=$APP.k(a,"__xImageRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("img"),h=document.createElement("div"),l=document.createElement("slot"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span");c.textContent=":host{display:block;max-width:100%;box-sizing:border-box;color-scheme:light dark;--x-image-radius:var(--x-radius-md,8px);--x-image-bg:var(--x-color-surface,#f3f4f6);--x-image-border:0;--x-image-shimmer-color:var(--x-color-border,rgba(0,0,0,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.65);--x-image-shimmer-duration:1.5s;--x-image-fade-duration:var(--x-transition-duration,200ms);--x-image-fade-easing:var(--x-transition-easing,ease);--x-image-text:var(--x-color-text-muted,rgba(0,0,0,0.55));--x-image-error-gap:var(--x-space-xs,6px);--x-image-font-family:var(--x-font-family,system-ui,sans-serif);--x-image-font-size:var(--x-font-size-sm,0.875rem);}@media (prefers-color-scheme:dark){:host{--x-image-bg:var(--x-color-surface,#1f2937);--x-image-shimmer-color:var(--x-color-border,rgba(255,255,255,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.10);--x-image-text:var(--x-color-text-muted,rgba(255,255,255,0.65));}}[part\x3dframe]{position:relative;width:100%;height:100%;min-height:1em;background:var(--x-image-bg);border-radius:var(--x-image-radius);border:var(--x-image-border);overflow:hidden;}[part\x3dimage]{display:block;width:100%;height:100%;opacity:0;transition:opacity var(--x-image-fade-duration) var(--x-image-fade-easing);}:host([data-state\x3dloaded]) [part\x3dimage]{opacity:1;}[part\x3dshimmer]{position:absolute;inset:0;background-color:var(--x-image-shimmer-color);background-image:linear-gradient(90deg,transparent 0%,var(--x-image-shimmer-highlight) 50%,transparent 100%);background-size:200% 100%;background-repeat:no-repeat;background-position:-100% 0;animation:x-image-shimmer var(--x-image-shimmer-duration) linear infinite;}@keyframes x-image-shimmer{0%{background-position:-100% 0;}100%{background-position:100% 0;}}:host([data-state\x3dloaded]) [part\x3dshimmer],:host([data-state\x3derror]) [part\x3dshimmer]{display:none;}[part\x3derror]{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:var(--x-image-error-gap);padding:8px;text-align:center;color:var(--x-image-text);font-family:var(--x-image-font-family);font-size:var(--x-image-font-size);}:host([data-state\x3derror]) [part\x3derror]{display:flex;}:host([data-state\x3derror]) [part\x3dimage]{visibility:hidden;}[part\x3derror-glyph]{font-size:1.5em;line-height:1;}[part\x3derror-text]{line-height:1.25;}@media (prefers-reduced-motion:reduce){[part\x3dshimmer]{animation:none;}[part\x3dimage]{transition:none;}}";
4
4
  d.setAttribute("part","frame");e.setAttribute("part","shimmer");e.setAttribute("aria-hidden","true");g.setAttribute("part","image");g.alt="";g.decoding="async";g.loading="lazy";h.setAttribute("part","error");h.setAttribute("role","img");h.setAttribute("aria-label","Image failed to load");l.setAttribute("name","error");m.setAttribute("part","error-default");p.setAttribute("part","error-glyph");p.setAttribute("aria-hidden","true");p.textContent="⚠";q.setAttribute("part","error-text");q.textContent=
5
- "Image unavailable";m.appendChild(p);m.appendChild(q);l.appendChild(m);h.appendChild(l);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xImageRefs=new $APP.Q(null,6,[$APP.Ci,b,nK,d,oK,e,$APP.tj,g,pK,h,qK,l],null);return $APP.k(a,"__xImageRefs")},sK=function(a,b){a.__xImageState=b;a.setAttribute("data-state",b)},EK=function(a){var b=new $APP.Q(null,8,[$APP.Tl,a.getAttribute("src"),$APP.wm,a.getAttribute("alt"),tK,a.hasAttribute("alt"),uK,a.hasAttribute("decorative"),
6
- vK,a.getAttribute("ratio"),wK,a.getAttribute("fit"),$APP.Vj,a.getAttribute("position"),$APP.pm,a.getAttribute("loading")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Tl),e=$APP.D(c,$APP.wm),g=$APP.D(c,tK),h=$APP.D(c,uK),l=$APP.D(c,vK),m=$APP.D(c,wK);b=$APP.D(c,$APP.Vj);var p=$APP.D(c,$APP.pm);h=$APP.F(h);l=mK(l);c=$APP.M(l);l=$APP.D(c,$APP.Oh);c=$APP.D(c,$APP.Rh);var q=!h&&$APP.r(g);e=h?"":$APP.n(g)?$APP.n(e)?e:"":"";typeof m==="string"?(m=m.trim().toLowerCase(),m=$APP.I(xK,m)?m:"cover"):m="cover";typeof d===
7
- "string"?(d=$APP.Mg(d),d=typeof d==="string"&&$APP.N("",d)?d:null):d=null;typeof p==="string"?(p=p.trim().toLowerCase(),p=$APP.I(yK,p)?p:"lazy"):p="lazy";typeof b==="string"?(b=b.trim(),b=$APP.C.i(b,"")?"center":b):b="center";b=$APP.zf([$APP.gi,zK,$APP.tk,AK,$APP.kl,BK,CK,$APP.Om,DK],[e,m,d,h,p,c,q,b,l]);$APP.N($APP.k(a,"__xImageModel"),b)&&(h=rK(a),c=$APP.M(h),h=$APP.D(c,nK),l=$APP.D(c,$APP.tj),c=$APP.D(c,pK),q=$APP.k(a,"__xImageModel"),p=$APP.n(q)?$APP.tk.g(q):null,q=q==null||$APP.N(p,$APP.tk.g(b)),
8
- $APP.n(DK.g(b))?h.style.aspectRatio=DK.g(b):h.style.aspectRatio="",$APP.n(BK.g(b))||$APP.n($APP.k(a,"__xImageWarnedRatio"))||(a.__xImageWarnedRatio=!0,console.warn('[x-image] Invalid ratio attribute; expected "W:H" (e.g. "16:9").')),l.style.objectFit=zK.g(b),l.style.objectPosition=$APP.Om.g(b),l.loading=$APP.kl.g(b),l.decoding="async",$APP.n(AK.g(b))?(l.alt="",a.setAttribute("aria-hidden","true"),a.removeAttribute("role")):(l.alt=$APP.gi.g(b),a.removeAttribute("aria-hidden"),a.setAttribute("role",
9
- "img"),$APP.n(CK.g(b))&&!$APP.n($APP.k(a,"__xImageWarnedAlt"))&&(a.__xImageWarnedAlt=!0,console.warn('[x-image] Missing alt attribute. Set alt\x3d"…" or add the `decorative` attribute.'))),c.setAttribute("aria-label",$APP.r(AK.g(b))&&$APP.N("",$APP.gi.g(b))?$APP.gi.g(b):"Image failed to load"),q&&(h=$APP.tk.g(b),l=$APP.M($APP.k(a,"__xImageRefs")),l=$APP.D(l,$APP.tj),$APP.N($APP.k(a,"__xImageCurrentSrc"),h)&&(a.__xImageCurrentSrc=h,typeof h==="string"&&$APP.N("",h)?(sK(a,"loading"),l.setAttribute("src",
10
- h)):(l.removeAttribute("src"),sK(a,"loading")))),a.__xImageModel=b)},IK=function(a){function b(){var e=$APP.M($APP.k(a,"__xImageRefs")),g=$APP.D(e,$APP.tj);e=$APP.k(a,"__xImageCurrentSrc");$APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)&&(g=g.getAttribute("src"),$APP.C.i(g,e)&&(sK(a,"error"),e=$APP.Gh(new $APP.Q(null,1,[$APP.tk,$APP.n(e)?e:""],null)),e=new CustomEvent("x-image-error",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e)));return null}function c(){var e=$APP.M($APP.k(a,
11
- "__xImageRefs")),g=$APP.D(e,$APP.tj);e=$APP.k(a,"__xImageCurrentSrc");if($APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)){var h=g.getAttribute("src");$APP.C.i(h,e)&&(sK(a,"loaded"),h=g.naturalWidth,g=g.naturalHeight,e=$APP.Gh(new $APP.Q(null,3,[$APP.tk,$APP.n(e)?e:"",FK,$APP.n(h)?h:0,GK,$APP.n(g)?g:0],null)),e=new CustomEvent("x-image-load",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e))}return null}var d=rK(a);d=$APP.M(d);d=$APP.D(d,$APP.tj);d.addEventListener("load",c);
12
- d.addEventListener("error",b);$APP.Cg(a,"__xImageHandlers",new $APP.Q(null,2,[HK,c,$APP.zi,b],null))},JK=function(a){var b=$APP.k(a,"__xImageHandlers"),c=$APP.k(a,"__xImageRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.tj.g(c);var d=HK.g(b);b=$APP.zi.g(b);$APP.n(d)&&c.removeEventListener("load",d);$APP.n(b)&&c.removeEventListener("error",b)}a.__xImageHandlers=null},KK=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||
13
- $APP.C.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},LK=function(a){KK(a,"src","src");KK(a,"alt","alt");KK(a,"ratio","ratio");KK(a,"fit","fit");KK(a,"position","position");KK(a,"loading","loading");Object.defineProperty(a,"decorative",{get:function(){return this.hasAttribute("decorative")},set:function(b){return $APP.n(b)?this.setAttribute("decorative",""):this.removeAttribute("decorative")},enumerable:!0,configurable:!0});Object.defineProperty(a,
14
- "naturalWidth",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.tj.g(b).naturalWidth:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"naturalHeight",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.tj.g(b).naturalHeight:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"state",{get:function(){var b=$APP.k(this,"__xImageState");return $APP.n(b)?b:"loading"},enumerable:!0,configurable:!0})},NK=function(){var a=class extends HTMLElement{};
15
- a.observedAttributes=MK;a.prototype.connectedCallback=function(){rK(this);JK(this);IK(this);$APP.k(this,"__xImageState")==null&&sK(this,"loading");EK(this);return null};a.prototype.disconnectedCallback=function(){JK(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&EK(this);return null};LK(a.prototype);return a},OK=function(){$APP.n(customElements.get("x-image"))||customElements.define("x-image",NK());return null},nK=new $APP.K(null,"frame","frame",-1711082588),
16
- wK=new $APP.K(null,"fit-raw","fit-raw",792829585),AK=new $APP.K(null,"decorative?","decorative?",131461581),pK=new $APP.K(null,"error-box","error-box",1060106676),DK=new $APP.K(null,"ratio-css","ratio-css",1208951932),oK=new $APP.K(null,"shimmer","shimmer",2123148747),qK=new $APP.K(null,"error-slot","error-slot",493821239),vK=new $APP.K(null,"ratio-raw","ratio-raw",-1076891672),CK=new $APP.K(null,"warn-alt?","warn-alt?",-638898603),HK=new $APP.K(null,"load","load",-1318641184),uK=new $APP.K(null,
17
- "decorative-present?","decorative-present?",2067744841),zK=new $APP.K(null,"fit","fit",869444807),tK=new $APP.K(null,"alt-present?","alt-present?",-707038767),FK=new $APP.K(null,"naturalWidth","naturalWidth",-1890093257),GK=new $APP.K(null,"naturalHeight","naturalHeight",227028566),BK=new $APP.K(null,"ratio-valid?","ratio-valid?",-713026893);var MK="src alt decorative ratio fit position loading".split(" ");
18
- $APP.zf([$APP.gi,zK,$APP.tk,new $APP.K(null,"state","state",-1988618099),new $APP.K(null,"decorative","decorative",-238973678),$APP.kl,$APP.sj,GK,FK,$APP.Om],[new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.wj,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.wj,!0],null),
19
- new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.wj,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);$APP.Qd(["x-image-load",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.tk,$APP.Y,FK,$APP.W,GK,$APP.W],null),$APP.Yl,!1],null),"x-image-error",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.tk,$APP.Y],null),$APP.Yl,!1],null)]);
20
- var xK=new $APP.R(null,new $APP.Q(null,5,["cover",null,"none",null,"fill",null,"scale-down",null,"contain",null],null),null),yK=new $APP.R(null,new $APP.Q(null,2,["eager",null,"lazy",null],null),null),lK=/^\s*(\d+(?:\.\d+)?)\s*[:\/]\s*(\d+(?:\.\d+)?)\s*$/;$APP.ha("baredom.exports.x_image.init",OK);export const init=OK;
5
+ "Image unavailable";m.appendChild(p);m.appendChild(q);l.appendChild(m);h.appendChild(l);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xImageRefs=new $APP.R(null,6,[$APP.Hi,b,OM,d,PM,e,$APP.yj,g,QM,h,RM,l],null);return $APP.k(a,"__xImageRefs")},TM=function(a,b){a.__xImageState=b;a.setAttribute("data-state",b)},eN=function(a){var b=new $APP.R(null,8,[$APP.em,a.getAttribute("src"),$APP.Jm,a.getAttribute("alt"),UM,a.hasAttribute("alt"),VM,a.hasAttribute("decorative"),
6
+ WM,a.getAttribute("ratio"),XM,a.getAttribute("fit"),$APP.Xj,a.getAttribute("position"),$APP.Bm,a.getAttribute("loading")],null);var c=$APP.M(b),d=$APP.D(c,$APP.em),e=$APP.D(c,$APP.Jm),g=$APP.D(c,UM),h=$APP.D(c,VM),l=$APP.D(c,WM),m=$APP.D(c,XM);b=$APP.D(c,$APP.Xj);var p=$APP.D(c,$APP.Bm);h=$APP.F(h);l=NM(l);c=$APP.M(l);l=$APP.D(c,$APP.Qh);c=$APP.D(c,$APP.Th);var q=!h&&$APP.r(g);e=h?"":$APP.n(g)?$APP.n(e)?e:"":"";typeof m==="string"?(m=m.trim().toLowerCase(),m=$APP.I(YM,m)?m:"cover"):m="cover";typeof d===
7
+ "string"?(d=$APP.Og(d),d=typeof d==="string"&&$APP.N("",d)?d:null):d=null;typeof p==="string"?(p=p.trim().toLowerCase(),p=$APP.I(ZM,p)?p:"lazy"):p="lazy";typeof b==="string"?(b=b.trim(),b=$APP.B.i(b,"")?"center":b):b="center";b=$APP.zf([$APP.ii,$M,$APP.Ak,aN,$APP.wl,bN,cN,$APP.an,dN],[e,m,d,h,p,c,q,b,l]);$APP.N($APP.k(a,"__xImageModel"),b)&&(h=SM(a),c=$APP.M(h),h=$APP.D(c,OM),l=$APP.D(c,$APP.yj),c=$APP.D(c,QM),q=$APP.k(a,"__xImageModel"),p=$APP.n(q)?$APP.Ak.g(q):null,q=q==null||$APP.N(p,$APP.Ak.g(b)),
8
+ $APP.n(dN.g(b))?h.style.aspectRatio=dN.g(b):h.style.aspectRatio="",$APP.n(bN.g(b))||$APP.n($APP.k(a,"__xImageWarnedRatio"))||(a.__xImageWarnedRatio=!0,console.warn('[x-image] Invalid ratio attribute; expected "W:H" (e.g. "16:9").')),l.style.objectFit=$M.g(b),l.style.objectPosition=$APP.an.g(b),l.loading=$APP.wl.g(b),l.decoding="async",$APP.n(aN.g(b))?(l.alt="",a.setAttribute("aria-hidden","true"),a.removeAttribute("role")):(l.alt=$APP.ii.g(b),a.removeAttribute("aria-hidden"),a.setAttribute("role",
9
+ "img"),$APP.n(cN.g(b))&&!$APP.n($APP.k(a,"__xImageWarnedAlt"))&&(a.__xImageWarnedAlt=!0,console.warn('[x-image] Missing alt attribute. Set alt\x3d"…" or add the `decorative` attribute.'))),c.setAttribute("aria-label",$APP.r(aN.g(b))&&$APP.N("",$APP.ii.g(b))?$APP.ii.g(b):"Image failed to load"),q&&(h=$APP.Ak.g(b),l=$APP.M($APP.k(a,"__xImageRefs")),l=$APP.D(l,$APP.yj),$APP.N($APP.k(a,"__xImageCurrentSrc"),h)&&(a.__xImageCurrentSrc=h,typeof h==="string"&&$APP.N("",h)?(TM(a,"loading"),l.setAttribute("src",
10
+ h)):(l.removeAttribute("src"),TM(a,"loading")))),a.__xImageModel=b)},iN=function(a){function b(){var e=$APP.M($APP.k(a,"__xImageRefs")),g=$APP.D(e,$APP.yj);e=$APP.k(a,"__xImageCurrentSrc");$APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)&&(g=g.getAttribute("src"),$APP.B.i(g,e)&&(TM(a,"error"),e=$APP.Hh(new $APP.R(null,1,[$APP.Ak,$APP.n(e)?e:""],null)),e=new CustomEvent("x-image-error",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e)));return null}function c(){var e=$APP.M($APP.k(a,
11
+ "__xImageRefs")),g=$APP.D(e,$APP.yj);e=$APP.k(a,"__xImageCurrentSrc");if($APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)){var h=g.getAttribute("src");$APP.B.i(h,e)&&(TM(a,"loaded"),h=g.naturalWidth,g=g.naturalHeight,e=$APP.Hh(new $APP.R(null,3,[$APP.Ak,$APP.n(e)?e:"",fN,$APP.n(h)?h:0,gN,$APP.n(g)?g:0],null)),e=new CustomEvent("x-image-load",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e))}return null}var d=SM(a);d=$APP.M(d);d=$APP.D(d,$APP.yj);d.addEventListener("load",c);
12
+ d.addEventListener("error",b);$APP.Cg(a,"__xImageHandlers",new $APP.R(null,2,[hN,c,$APP.Ei,b],null))},jN=function(a){var b=$APP.k(a,"__xImageHandlers"),c=$APP.k(a,"__xImageRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.yj.g(c);var d=hN.g(b);b=$APP.Ei.g(b);$APP.n(d)&&c.removeEventListener("load",d);$APP.n(b)&&c.removeEventListener("error",b)}a.__xImageHandlers=null},kN=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||
13
+ $APP.B.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},lN=function(a){kN(a,"src","src");kN(a,"alt","alt");kN(a,"ratio","ratio");kN(a,"fit","fit");kN(a,"position","position");kN(a,"loading","loading");Object.defineProperty(a,"decorative",{get:function(){return this.hasAttribute("decorative")},set:function(b){return $APP.n(b)?this.setAttribute("decorative",""):this.removeAttribute("decorative")},enumerable:!0,configurable:!0});Object.defineProperty(a,
14
+ "naturalWidth",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.yj.g(b).naturalWidth:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"naturalHeight",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.yj.g(b).naturalHeight:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"state",{get:function(){var b=$APP.k(this,"__xImageState");return $APP.n(b)?b:"loading"},enumerable:!0,configurable:!0})},nN=function(){var a=class extends HTMLElement{};
15
+ a.observedAttributes=mN;a.prototype.connectedCallback=function(){SM(this);jN(this);iN(this);$APP.k(this,"__xImageState")==null&&TM(this,"loading");eN(this);return null};a.prototype.disconnectedCallback=function(){jN(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&eN(this);return null};lN(a.prototype);return a},oN=function(){$APP.n(customElements.get("x-image"))||customElements.define("x-image",nN());return null},OM=new $APP.K(null,"frame","frame",-1711082588),
16
+ XM=new $APP.K(null,"fit-raw","fit-raw",792829585),aN=new $APP.K(null,"decorative?","decorative?",131461581),QM=new $APP.K(null,"error-box","error-box",1060106676),dN=new $APP.K(null,"ratio-css","ratio-css",1208951932),PM=new $APP.K(null,"shimmer","shimmer",2123148747),RM=new $APP.K(null,"error-slot","error-slot",493821239),WM=new $APP.K(null,"ratio-raw","ratio-raw",-1076891672),cN=new $APP.K(null,"warn-alt?","warn-alt?",-638898603),hN=new $APP.K(null,"load","load",-1318641184),VM=new $APP.K(null,
17
+ "decorative-present?","decorative-present?",2067744841),$M=new $APP.K(null,"fit","fit",869444807),UM=new $APP.K(null,"alt-present?","alt-present?",-707038767),fN=new $APP.K(null,"naturalWidth","naturalWidth",-1890093257),gN=new $APP.K(null,"naturalHeight","naturalHeight",227028566),bN=new $APP.K(null,"ratio-valid?","ratio-valid?",-713026893);var mN="src alt decorative ratio fit position loading".split(" ");
18
+ $APP.zf([$APP.ii,$M,$APP.Ak,new $APP.K(null,"state","state",-1988618099),new $APP.K(null,"decorative","decorative",-238973678),$APP.wl,$APP.xj,gN,fN,$APP.an],[new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Bj,!0],null),new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Bj,!0],null),
19
+ new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Bj,!0],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null)]);$APP.Pd(["x-image-load",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.Ak,$APP.Y,fN,$APP.W,gN,$APP.W],null),$APP.jm,!1],null),"x-image-error",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.Ak,$APP.Y],null),$APP.jm,!1],null)]);
20
+ var YM=new $APP.S(null,new $APP.R(null,5,["cover",null,"none",null,"fill",null,"scale-down",null,"contain",null],null),null),ZM=new $APP.S(null,new $APP.R(null,2,["eager",null,"lazy",null],null),null),MM=/^\s*(\d+(?:\.\d+)?)\s*[:\/]\s*(\d+(?:\.\d+)?)\s*$/;$APP.ha("baredom.exports.x_image.init",oN);export const init=oN;
@@ -1,30 +1,30 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var V_=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},X_=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(W_,a)?a:"cursor"},$_=function(a){return typeof a==="string"?(a=$APP.We.m($APP.Tf,$APP.ce(function(b){return $APP.I(Y_,b)}),a.trim().toLowerCase().split(/\s+/)),$APP.Hc(a)?Z_:a):Z_},a0=function(a){return typeof a==="string"?(a=a.trim(),$APP.C.i(a,"")?null:a):
3
- null},b0=function(a,b,c,d,e,g,h){b=c+(g*(b-a)-h*c)/e*d;return[a+b*d,b]},c0=function(a,b){if(a>=b)return 0;a=1-a/b;return a*a},d0=function(a,b,c,d,e,g,h,l,m,p,q){a*=c;d=$APP.I(b,"bulge")?d+a*(e-d):d;g=$APP.I(b,"stretch")?g+a*(h-g):g;l=$APP.I(b,"lean")?m+a*(l-m):m;b=$APP.I(b,"breathe")?p+a*(q-p):p;return[d,g,l,b]},e0=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},p0=function(a){a=$APP.zf([$APP.Aj,$APP.zk,f0,g0,h0,$APP.Jh,$APP.jl,i0,$APP.Dj,j0],[a.getAttribute("mass"),
4
- a.getAttribute("intensity"),a.getAttribute("trigger"),a.getAttribute("per-char"),a.getAttribute("font-family"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("friction"),a.getAttribute("radius"),a.getAttribute("tension")]);var b=$APP.M(a);a=$APP.D(b,$APP.Dj);var c=$APP.D(b,j0),d=$APP.D(b,$APP.Aj),e=$APP.D(b,$APP.zk),g=$APP.D(b,g0),h=$APP.D(b,f0),l=$APP.D(b,h0),m=$APP.D(b,$APP.Jh),p=$APP.D(b,$APP.jl);b=$APP.D(b,i0);return $APP.zf([$APP.mm,k0,l0,$APP.Em,$APP.qk,m0,$APP.ck,n0,o0,$APP.ol],
5
- [V_(d,1,.1,10),V_(c,170,10,500),$_(p),V_(a,200,20,1E3),V_(e,.5,0,1),g!=null,V_(b,26,1,100),X_(h),a0(l),typeof m==="string"?m:""])},q0=function(a,b){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:a}return b},r0=function(a,b,c){a=a.style;var d=a.setProperty;b="'wght' "+$APP.T.g(b[0].toFixed(1))+", 'wdth' "+$APP.T.g(b[1].toFixed(1))+", 'slnt' "+$APP.T.g(b[2].toFixed(1))+", 'opsz' "+$APP.T.g(b[3].toFixed(1));d.call(a,"font-variation-settings",b);
6
- c===0?a.removeProperty("transform"):a.setProperty("transform","skewX("+$APP.T.g(c.toFixed(1))+"deg)")},t0=function(a){$APP.n($APP.k(a,"__xKineticFontRaf"))||($APP.n($APP.k(a,"__xKineticFontAct"))||(a.__xKineticFontAct=!0,a.dispatchEvent(new CustomEvent("x-kinetic-font-spring-activate",{bubbles:!0,composed:!0,detail:{}}))),$APP.ja(a,"__xKineticFontLF",performance.now()),$APP.ja(a,"__xKineticFontRaf",requestAnimationFrame(function(){return s0(a)})))},u0=function(a){var b=window.scrollY,c=b-function(){var d=
7
- $APP.k(a,"__xKineticFontLSY");return $APP.n(d)?d:b}();a.__xKineticFontLSY=b;$APP.ja(a,"__xKineticFontSD",function(){var d=$APP.k(a,"__xKineticFontSD");return $APP.n(d)?d:0}()+Math.abs(c));e0()||t0(a);return null},v0=function(a){var b=n0.g($APP.k(a,"__xKineticFontModel")),c={};if($APP.C.i(b,"cursor")||$APP.C.i(b,"both")){var d=function(e){a.__xKineticFontMX=e.clientX;a.__xKineticFontMY=e.clientY;e0()||t0(a);return null};c.move=d;document.addEventListener("pointermove",d,{passive:!0})}if($APP.C.i(b,
8
- "scroll")||$APP.C.i(b,"both"))b=function(){return u0(a)},c.scroll=b,a.__xKineticFontLSY=window.scrollY,window.addEventListener("scroll",b,{passive:!0});a.__xKineticFontHdl=c},w0=function(a){var b=$APP.k(a,"__xKineticFontHdl");if($APP.n(b)){var c=$APP.k(b,"move");$APP.n(c)&&document.removeEventListener("pointermove",c);b=$APP.k(b,"scroll");$APP.n(b)&&window.removeEventListener("scroll",b);a.__xKineticFontHdl=null}},H0=function(a,b){var c=$APP.k(a,"__xKineticFontModel");a.__xKineticFontModel=b;if($APP.N($APP.ol.g(b),
9
- $APP.ol.g(c))||$APP.N(m0.g(b),m0.g(c)))if($APP.n(m0.g(b))){var d=$APP.ol.g(b),e=$APP.M($APP.k(a,"__xKineticFontRefs"));e=$APP.D(e,$APP.Cj);d=$APP.xe(d);var g=$APP.z(d),h=Array(g),l=Array(g);e.textContent="";for(var m=0;;)if(m<g){var p=$APP.pc(d,m),q=document.createElement("span");q.setAttribute("part","char");$APP.C.i(p," ")?(q.setAttribute("data-ws",""),q.innerHTML="\x26nbsp;"):q.textContent=p;e.appendChild(q);h[m]=q;l[m]=[0,0];m+=1}else break;a.__xKineticFontCS=h;a.__xKineticFontSpr=l}else e=$APP.ol.g(b),
10
- d=$APP.M($APP.k(a,"__xKineticFontRefs")),$APP.D(d,$APP.Cj).textContent=e,a.__xKineticFontCS=null,a.__xKineticFontSpr=[[0,0]];$APP.N(n0.g(b),n0.g(c))&&(w0(a),v0(a));c=$APP.M($APP.k(a,"__xKineticFontRefs"));c=$APP.D(c,$APP.Cj);e=o0.g(b);$APP.n(e)?c.style.setProperty("font-family",e):c.style.removeProperty("font-family");c=getComputedStyle(a);c=$APP.zf([x0,y0,z0,A0,B0,C0,D0,E0,F0],[q0(c.getPropertyValue("--x-kinetic-font-slant-max"),0),q0(c.getPropertyValue("--x-kinetic-font-slant-min"),-12),q0(c.getPropertyValue("--x-kinetic-font-opsz-max"),
11
- 144),q0(c.getPropertyValue("--x-kinetic-font-opsz-min"),8),q0(c.getPropertyValue("--x-kinetic-font-weight-min"),100),q0(c.getPropertyValue("--x-kinetic-font-skew-max"),-15),q0(c.getPropertyValue("--x-kinetic-font-width-max"),125),q0(c.getPropertyValue("--x-kinetic-font-width-min"),75),q0(c.getPropertyValue("--x-kinetic-font-weight-max"),900)]);a.__xKineticFontCV=c;c=$APP.ol.g(b);e=$APP.M($APP.k(a,"__xKineticFontRefs"));$APP.D(e,G0).textContent=c;$APP.C.i(c,"")?(a.setAttribute("aria-hidden","true"),
12
- a.removeAttribute("role")):(a.removeAttribute("aria-hidden"),a.setAttribute("role","text"),a.setAttribute("aria-label",c));if(!e0())if(c=$APP.k(a,"__xKineticFontCV"),c=d0(0,l0.g(b),$APP.qk.g(b),B0.g(c),F0.g(c),E0.g(c),D0.g(c),y0.g(c),x0.g(c),A0.g(c),z0.g(c)),$APP.n(m0.g(b))){if(a=$APP.k(a,"__xKineticFontCS"),$APP.n(a))for(b=a.length,e=0;;)if(e<b)r0(a[e],c,0),e+=1;else break}else a=$APP.M($APP.k(a,"__xKineticFontRefs")),a=$APP.D(a,$APP.Cj),r0(a,c,0)},I0=function(a){Object.defineProperty(a,"text",{get:function(){var b=
13
- this.getAttribute("text");return $APP.n(b)?b:""},set:function(b){return b==null?this.removeAttribute("text"):this.setAttribute("text",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"trigger",{get:function(){return X_(this.getAttribute("trigger"))},set:function(b){return b==null?this.removeAttribute("trigger"):this.setAttribute("trigger",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.n(b)?
14
- b:"bulge"},set:function(b){return b==null?this.removeAttribute("mode"):this.setAttribute("mode",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"perChar",{get:function(){return this.hasAttribute("per-char")},set:function(b){return $APP.n(b)?this.setAttribute("per-char",""):this.removeAttribute("per-char")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mass",{get:function(){var b=this.getAttribute("mass");return V_(b,1,.1,10)},set:function(b){return b==null?this.removeAttribute("mass"):
15
- this.setAttribute("mass",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"tension",{get:function(){var b=this.getAttribute("tension");return V_(b,170,10,500)},set:function(b){return b==null?this.removeAttribute("tension"):this.setAttribute("tension",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"friction",{get:function(){var b=this.getAttribute("friction");return V_(b,26,1,100)},set:function(b){return b==null?this.removeAttribute("friction"):this.setAttribute("friction",
16
- ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return V_(b,.5,0,1)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return V_(b,200,20,1E3)},set:function(b){return b==null?this.removeAttribute("radius"):this.setAttribute("radius",""+
17
- $APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"fontFamily",{get:function(){return a0(this.getAttribute("font-family"))},set:function(b){return b==null?this.removeAttribute("font-family"):this.setAttribute("font-family",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},L0=function(){var a=class extends HTMLElement{};a.observedAttributes=J0;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xKineticFontRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),
18
- d=document.createElement("div"),e=document.createElement("span");c.textContent=K0;d.setAttribute("part","container");e.setAttribute("class","sr-only");e.setAttribute("part","sr-only");b.appendChild(c);b.appendChild(d);b.appendChild(e);this.__xKineticFontRefs=new $APP.Q(null,3,[$APP.Ci,b,$APP.Cj,d,G0,e],null)}b=p0(this);this.__xKineticFontModel=null;this.__xKineticFontSD=this.__xKineticFontMY=this.__xKineticFontMX=0;this.__xKineticFontAct=!1;H0(this,b);return null};a.prototype.disconnectedCallback=
19
- function(){var b=$APP.k(this,"__xKineticFontRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xKineticFontRaf=null);w0(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xKineticFontRefs"))&&(b=p0(this),$APP.N(b,$APP.k(this,"__xKineticFontModel"))&&H0(this,b));return null};I0(a.prototype);return a},M0=function(){$APP.n(customElements.get("x-kinetic-font"))||customElements.define("x-kinetic-font",L0());return null},g0=new $APP.K(null,"per-char-attr",
20
- "per-char-attr",-403667422),f0=new $APP.K(null,"trigger-raw","trigger-raw",-1649744606),y0=new $APP.K(null,"slnt-min","slnt-min",71363427),D0=new $APP.K(null,"wdth-max","wdth-max",-522030121),C0=new $APP.K(null,"skew-max","skew-max",1543858453),E0=new $APP.K(null,"wdth-min","wdth-min",-986627045),h0=new $APP.K(null,"font-family-raw","font-family-raw",1729457924),m0=new $APP.K(null,"per-char?","per-char?",-1016397834),n0=new $APP.K(null,"trigger","trigger",103466139),A0=new $APP.K(null,"opsz-min",
21
- "opsz-min",-829837010),G0=new $APP.K(null,"sr-only","sr-only",-173275148),x0=new $APP.K(null,"slnt-max","slnt-max",1716167520),i0=new $APP.K(null,"friction-raw","friction-raw",-1078184200),z0=new $APP.K(null,"opsz-max","opsz-max",454458088),B0=new $APP.K(null,"wght-min","wght-min",529224020),l0=new $APP.K(null,"modes","modes",-1377787092),F0=new $APP.K(null,"wght-max","wght-max",-514604421),j0=new $APP.K(null,"tension-raw","tension-raw",961657279),o0=new $APP.K(null,"font-family","font-family",-667419874),
22
- k0=new $APP.K(null,"tension","tension",58343589);var J0="text trigger mode per-char mass tension friction intensity radius font-family".split(" ");
23
- $APP.zf([$APP.mm,k0,$APP.rj,new $APP.K(null,"perChar","perChar",2082880685),$APP.Em,$APP.qk,new $APP.K(null,"fontFamily","fontFamily",1493518353),$APP.ck,n0,$APP.ol],[new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,
24
- 1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);$APP.Qd(["x-kinetic-font-spring-activate",new $APP.Q(null,2,[$APP.V,$APP.Rd,$APP.Yl,!1],null),"x-kinetic-font-spring-settle",new $APP.Q(null,2,[$APP.V,$APP.Rd,$APP.Yl,!1],null)]);
25
- var W_=new $APP.R(null,new $APP.Q(null,3,["scroll",null,"both",null,"cursor",null],null),null),Y_=new $APP.R(null,new $APP.Q(null,4,["breathe",null,"lean",null,"bulge",null,"stretch",null],null),null),Z_=new $APP.R(null,new $APP.Q(null,1,["bulge",null],null),null);var K0=":host{display:inline-block;box-sizing:border-box;color-scheme:light dark;"+$APP.T.g("--x-kinetic-font-color")+":var(--x-color-text,currentColor);"+$APP.T.g("--x-kinetic-font-family")+":system-ui,sans-serif;"+$APP.T.g("--x-kinetic-font-size")+":2rem;"+$APP.T.g("--x-kinetic-font-weight-min")+":100;"+$APP.T.g("--x-kinetic-font-weight-max")+":900;"+$APP.T.g("--x-kinetic-font-width-min")+":75;"+$APP.T.g("--x-kinetic-font-width-max")+":125;"+$APP.T.g("--x-kinetic-font-slant-min")+":-12;"+$APP.T.g("--x-kinetic-font-slant-max")+
2
+ var u2=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},w2=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(v2,a)?a:"cursor"},z2=function(a){return typeof a==="string"?(a=$APP.We.m($APP.Tf,$APP.ce(function(b){return $APP.I(x2,b)}),a.trim().toLowerCase().split(/\s+/)),$APP.Hc(a)?y2:a):y2},A2=function(a){return typeof a==="string"?(a=a.trim(),$APP.B.i(a,"")?null:a):
3
+ null},B2=function(a,b,c,d,e,g,h){b=c+(g*(b-a)-h*c)/e*d;return[a+b*d,b]},C2=function(a,b){if(a>=b)return 0;a=1-a/b;return a*a},D2=function(a,b,c,d,e,g,h,l,m,p,q){a*=c;d=$APP.I(b,"bulge")?d+a*(e-d):d;g=$APP.I(b,"stretch")?g+a*(h-g):g;l=$APP.I(b,"lean")?m+a*(l-m):m;b=$APP.I(b,"breathe")?p+a*(q-p):p;return[d,g,l,b]},E2=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},P2=function(a){a=$APP.zf([$APP.Fj,$APP.Gk,F2,G2,H2,$APP.Kh,$APP.vl,I2,$APP.Ij,J2],[a.getAttribute("mass"),
4
+ a.getAttribute("intensity"),a.getAttribute("trigger"),a.getAttribute("per-char"),a.getAttribute("font-family"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("friction"),a.getAttribute("radius"),a.getAttribute("tension")]);var b=$APP.M(a);a=$APP.D(b,$APP.Ij);var c=$APP.D(b,J2),d=$APP.D(b,$APP.Fj),e=$APP.D(b,$APP.Gk),g=$APP.D(b,G2),h=$APP.D(b,F2),l=$APP.D(b,H2),m=$APP.D(b,$APP.Kh),p=$APP.D(b,$APP.vl);b=$APP.D(b,I2);return $APP.zf([$APP.rm,K2,L2,$APP.Rm,$APP.xk,M2,$APP.hk,N2,O2,$APP.Al],
5
+ [u2(d,1,.1,10),u2(c,170,10,500),z2(p),u2(a,200,20,1E3),u2(e,.5,0,1),g!=null,u2(b,26,1,100),w2(h),A2(l),typeof m==="string"?m:""])},Q2=function(a,b){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:a}return b},R2=function(a,b,c){a=a.style;var d=a.setProperty;b="'wght' "+$APP.T.g(b[0].toFixed(1))+", 'wdth' "+$APP.T.g(b[1].toFixed(1))+", 'slnt' "+$APP.T.g(b[2].toFixed(1))+", 'opsz' "+$APP.T.g(b[3].toFixed(1));d.call(a,"font-variation-settings",b);
6
+ c===0?a.removeProperty("transform"):a.setProperty("transform","skewX("+$APP.T.g(c.toFixed(1))+"deg)")},T2=function(a){$APP.n($APP.k(a,"__xKineticFontRaf"))||($APP.n($APP.k(a,"__xKineticFontAct"))||(a.__xKineticFontAct=!0,a.dispatchEvent(new CustomEvent("x-kinetic-font-spring-activate",{bubbles:!0,composed:!0,detail:{}}))),$APP.ja(a,"__xKineticFontLF",performance.now()),$APP.ja(a,"__xKineticFontRaf",requestAnimationFrame(function(){return S2(a)})))},U2=function(a){var b=window.scrollY,c=b-function(){var d=
7
+ $APP.k(a,"__xKineticFontLSY");return $APP.n(d)?d:b}();a.__xKineticFontLSY=b;$APP.ja(a,"__xKineticFontSD",function(){var d=$APP.k(a,"__xKineticFontSD");return $APP.n(d)?d:0}()+Math.abs(c));E2()||T2(a);return null},V2=function(a){var b=N2.g($APP.k(a,"__xKineticFontModel")),c={};if($APP.B.i(b,"cursor")||$APP.B.i(b,"both")){var d=function(e){a.__xKineticFontMX=e.clientX;a.__xKineticFontMY=e.clientY;E2()||T2(a);return null};c.move=d;document.addEventListener("pointermove",d,{passive:!0})}if($APP.B.i(b,
8
+ "scroll")||$APP.B.i(b,"both"))b=function(){return U2(a)},c.scroll=b,a.__xKineticFontLSY=window.scrollY,window.addEventListener("scroll",b,{passive:!0});a.__xKineticFontHdl=c},W2=function(a){var b=$APP.k(a,"__xKineticFontHdl");if($APP.n(b)){var c=$APP.k(b,"move");$APP.n(c)&&document.removeEventListener("pointermove",c);b=$APP.k(b,"scroll");$APP.n(b)&&window.removeEventListener("scroll",b);a.__xKineticFontHdl=null}},g3=function(a,b){var c=$APP.k(a,"__xKineticFontModel");a.__xKineticFontModel=b;if($APP.N($APP.Al.g(b),
9
+ $APP.Al.g(c))||$APP.N(M2.g(b),M2.g(c)))if($APP.n(M2.g(b))){var d=$APP.Al.g(b),e=$APP.M($APP.k(a,"__xKineticFontRefs"));e=$APP.D(e,$APP.Hj);d=$APP.xe(d);var g=$APP.z(d),h=Array(g),l=Array(g);e.textContent="";for(var m=0;;)if(m<g){var p=$APP.pc(d,m),q=document.createElement("span");q.setAttribute("part","char");$APP.B.i(p," ")?(q.setAttribute("data-ws",""),q.innerHTML="\x26nbsp;"):q.textContent=p;e.appendChild(q);h[m]=q;l[m]=[0,0];m+=1}else break;a.__xKineticFontCS=h;a.__xKineticFontSpr=l}else e=$APP.Al.g(b),
10
+ d=$APP.M($APP.k(a,"__xKineticFontRefs")),$APP.D(d,$APP.Hj).textContent=e,a.__xKineticFontCS=null,a.__xKineticFontSpr=[[0,0]];$APP.N(N2.g(b),N2.g(c))&&(W2(a),V2(a));c=$APP.M($APP.k(a,"__xKineticFontRefs"));c=$APP.D(c,$APP.Hj);e=O2.g(b);$APP.n(e)?c.style.setProperty("font-family",e):c.style.removeProperty("font-family");c=getComputedStyle(a);c=$APP.zf([X2,Y2,Z2,$2,a3,b3,c3,d3,e3],[Q2(c.getPropertyValue("--x-kinetic-font-slant-max"),0),Q2(c.getPropertyValue("--x-kinetic-font-slant-min"),-12),Q2(c.getPropertyValue("--x-kinetic-font-opsz-max"),
11
+ 144),Q2(c.getPropertyValue("--x-kinetic-font-opsz-min"),8),Q2(c.getPropertyValue("--x-kinetic-font-weight-min"),100),Q2(c.getPropertyValue("--x-kinetic-font-skew-max"),-15),Q2(c.getPropertyValue("--x-kinetic-font-width-max"),125),Q2(c.getPropertyValue("--x-kinetic-font-width-min"),75),Q2(c.getPropertyValue("--x-kinetic-font-weight-max"),900)]);a.__xKineticFontCV=c;c=$APP.Al.g(b);e=$APP.M($APP.k(a,"__xKineticFontRefs"));$APP.D(e,f3).textContent=c;$APP.B.i(c,"")?(a.setAttribute("aria-hidden","true"),
12
+ a.removeAttribute("role")):(a.removeAttribute("aria-hidden"),a.setAttribute("role","text"),a.setAttribute("aria-label",c));if(!E2())if(c=$APP.k(a,"__xKineticFontCV"),c=D2(0,L2.g(b),$APP.xk.g(b),a3.g(c),e3.g(c),d3.g(c),c3.g(c),Y2.g(c),X2.g(c),$2.g(c),Z2.g(c)),$APP.n(M2.g(b))){if(a=$APP.k(a,"__xKineticFontCS"),$APP.n(a))for(b=a.length,e=0;;)if(e<b)R2(a[e],c,0),e+=1;else break}else a=$APP.M($APP.k(a,"__xKineticFontRefs")),a=$APP.D(a,$APP.Hj),R2(a,c,0)},h3=function(a){Object.defineProperty(a,"text",{get:function(){var b=
13
+ this.getAttribute("text");return $APP.n(b)?b:""},set:function(b){return b==null?this.removeAttribute("text"):this.setAttribute("text",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"trigger",{get:function(){return w2(this.getAttribute("trigger"))},set:function(b){return b==null?this.removeAttribute("trigger"):this.setAttribute("trigger",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.n(b)?
14
+ b:"bulge"},set:function(b){return b==null?this.removeAttribute("mode"):this.setAttribute("mode",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"perChar",{get:function(){return this.hasAttribute("per-char")},set:function(b){return $APP.n(b)?this.setAttribute("per-char",""):this.removeAttribute("per-char")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mass",{get:function(){var b=this.getAttribute("mass");return u2(b,1,.1,10)},set:function(b){return b==null?this.removeAttribute("mass"):
15
+ this.setAttribute("mass",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"tension",{get:function(){var b=this.getAttribute("tension");return u2(b,170,10,500)},set:function(b){return b==null?this.removeAttribute("tension"):this.setAttribute("tension",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"friction",{get:function(){var b=this.getAttribute("friction");return u2(b,26,1,100)},set:function(b){return b==null?this.removeAttribute("friction"):this.setAttribute("friction",
16
+ ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return u2(b,.5,0,1)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return u2(b,200,20,1E3)},set:function(b){return b==null?this.removeAttribute("radius"):this.setAttribute("radius",""+
17
+ $APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"fontFamily",{get:function(){return A2(this.getAttribute("font-family"))},set:function(b){return b==null?this.removeAttribute("font-family"):this.setAttribute("font-family",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},k3=function(){var a=class extends HTMLElement{};a.observedAttributes=i3;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xKineticFontRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),
18
+ d=document.createElement("div"),e=document.createElement("span");c.textContent=j3;d.setAttribute("part","container");e.setAttribute("class","sr-only");e.setAttribute("part","sr-only");b.appendChild(c);b.appendChild(d);b.appendChild(e);this.__xKineticFontRefs=new $APP.R(null,3,[$APP.Hi,b,$APP.Hj,d,f3,e],null)}b=P2(this);this.__xKineticFontModel=null;this.__xKineticFontSD=this.__xKineticFontMY=this.__xKineticFontMX=0;this.__xKineticFontAct=!1;g3(this,b);return null};a.prototype.disconnectedCallback=
19
+ function(){var b=$APP.k(this,"__xKineticFontRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xKineticFontRaf=null);W2(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xKineticFontRefs"))&&(b=P2(this),$APP.N(b,$APP.k(this,"__xKineticFontModel"))&&g3(this,b));return null};h3(a.prototype);return a},l3=function(){$APP.n(customElements.get("x-kinetic-font"))||customElements.define("x-kinetic-font",k3());return null},G2=new $APP.K(null,"per-char-attr",
20
+ "per-char-attr",-403667422),F2=new $APP.K(null,"trigger-raw","trigger-raw",-1649744606),Y2=new $APP.K(null,"slnt-min","slnt-min",71363427),c3=new $APP.K(null,"wdth-max","wdth-max",-522030121),b3=new $APP.K(null,"skew-max","skew-max",1543858453),d3=new $APP.K(null,"wdth-min","wdth-min",-986627045),H2=new $APP.K(null,"font-family-raw","font-family-raw",1729457924),M2=new $APP.K(null,"per-char?","per-char?",-1016397834),N2=new $APP.K(null,"trigger","trigger",103466139),$2=new $APP.K(null,"opsz-min",
21
+ "opsz-min",-829837010),f3=new $APP.K(null,"sr-only","sr-only",-173275148),X2=new $APP.K(null,"slnt-max","slnt-max",1716167520),I2=new $APP.K(null,"friction-raw","friction-raw",-1078184200),Z2=new $APP.K(null,"opsz-max","opsz-max",454458088),a3=new $APP.K(null,"wght-min","wght-min",529224020),L2=new $APP.K(null,"modes","modes",-1377787092),e3=new $APP.K(null,"wght-max","wght-max",-514604421),J2=new $APP.K(null,"tension-raw","tension-raw",961657279),O2=new $APP.K(null,"font-family","font-family",-667419874),
22
+ K2=new $APP.K(null,"tension","tension",58343589);var i3="text trigger mode per-char mass tension friction intensity radius font-family".split(" ");
23
+ $APP.zf([$APP.rm,K2,$APP.wj,new $APP.K(null,"perChar","perChar",2082880685),$APP.Rm,$APP.xk,new $APP.K(null,"fontFamily","fontFamily",1493518353),$APP.hk,N2,$APP.Al],[new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,
24
+ 1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null)]);$APP.Pd(["x-kinetic-font-spring-activate",new $APP.R(null,2,[$APP.V,$APP.Qd,$APP.jm,!1],null),"x-kinetic-font-spring-settle",new $APP.R(null,2,[$APP.V,$APP.Qd,$APP.jm,!1],null)]);
25
+ var v2=new $APP.S(null,new $APP.R(null,3,["scroll",null,"both",null,"cursor",null],null),null),x2=new $APP.S(null,new $APP.R(null,4,["breathe",null,"lean",null,"bulge",null,"stretch",null],null),null),y2=new $APP.S(null,new $APP.R(null,1,["bulge",null],null),null);var j3=":host{display:inline-block;box-sizing:border-box;color-scheme:light dark;"+$APP.T.g("--x-kinetic-font-color")+":var(--x-color-text,currentColor);"+$APP.T.g("--x-kinetic-font-family")+":system-ui,sans-serif;"+$APP.T.g("--x-kinetic-font-size")+":2rem;"+$APP.T.g("--x-kinetic-font-weight-min")+":100;"+$APP.T.g("--x-kinetic-font-weight-max")+":900;"+$APP.T.g("--x-kinetic-font-width-min")+":75;"+$APP.T.g("--x-kinetic-font-width-max")+":125;"+$APP.T.g("--x-kinetic-font-slant-min")+":-12;"+$APP.T.g("--x-kinetic-font-slant-max")+
26
26
  ":0;"+$APP.T.g("--x-kinetic-font-opsz-min")+":8;"+$APP.T.g("--x-kinetic-font-opsz-max")+":144;"+$APP.T.g("--x-kinetic-font-skew-max")+":-15;}[part\x3dcontainer]{color:var("+$APP.T.g("--x-kinetic-font-color")+",currentColor);font-family:var("+$APP.T.g("--x-kinetic-font-family")+",system-ui,sans-serif);font-size:var("+$APP.T.g("--x-kinetic-font-size")+",2rem);line-height:1.2;will-change:font-variation-settings,transform;}[part\x3dchar]{display:inline-block;will-change:font-variation-settings,transform;}[part\x3dchar][data-ws]{white-space:pre;}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}@media(prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3dchar]{font-variation-settings:normal!important;will-change:auto;}}",
27
- s0=function s0(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xKineticFontModel"),d=$APP.k(a,"__xKineticFontCV"),e=performance.now(),g=Math.min(e-$APP.k(a,"__xKineticFontLF"),100)/1E3,h=$APP.mm.g(c),l=k0.g(c),m=$APP.ck.g(c),p=$APP.qk.g(c),q=$APP.Em.g(c),v=n0.g(c);c=l0.g(c);var x=B0.g(d),y=F0.g(d),A=E0.g(d),B=D0.g(d),E=y0.g(d),G=x0.g(d),H=A0.g(d),J=z0.g(d);d=C0.g(d);var S=$APP.I(c,"lean"),aa=$APP.k(a,"__xKineticFontMX"),oa=$APP.k(a,"__xKineticFontMY"),Aa=function(){var Eb=$APP.k(a,"__xKineticFontSD");
28
- return $APP.n(Eb)?Eb:0}(),Na=Math.min(1,Math.abs(Aa)/100),cb=$APP.k(a,"__xKineticFontSpr"),db=$APP.k(a,"__xKineticFontCS"),mb=db!=null,Lb=cb.length;a.__xKineticFontLF=e;a.__xKineticFontSD=Aa*.85;for(var eb=[!0],da=0;;)if(da<Lb){Aa=mb&&($APP.C.i(v,"cursor")||$APP.C.i(v,"both"))?function(){var Eb=db[da].getBoundingClientRect(),Nd=aa-(Eb.left+.5*Eb.width);Eb=oa-(Eb.top+.5*Eb.height);return Math.max(c0(Math.sqrt(Nd*Nd+Eb*Eb),q),Na)}():mb&&$APP.C.i(v,"scroll")?Na:mb||!$APP.C.i(v,"cursor")&&!$APP.C.i(v,
29
- "both")?$APP.C.i(v,"scroll")?Na:0:function(){var Eb=$APP.M($APP.k(a,"__xKineticFontRefs")),Nd=$APP.D(Eb,$APP.Cj).getBoundingClientRect();Eb=aa-(Nd.left+.5*Nd.width);Nd=oa-(Nd.top+.5*Nd.height);return Math.max(c0(Math.sqrt(Eb*Eb+Nd*Nd),q),Na)}();var ra=cb[da],Pa=b0(ra[0],Aa,ra[1],g,h,l,m);e=Pa[0];Pa=Pa[1];ra[0]=e;ra[1]=Pa;Math.abs(e-Aa)<.001&&Math.abs(Pa)<.01||(eb[0]=!1);Aa=d0(e,c,p,x,y,A,B,E,G,H,J);e=S?e*p*d:0;mb?r0(db[da],Aa,e):(ra=$APP.M($APP.k(a,"__xKineticFontRefs")),ra=$APP.D(ra,$APP.Cj),r0(ra,
30
- Aa,e));da+=1}else break;var Xb=function(){var Eb=$APP.k(a,"__xKineticFontSD");return $APP.n(Eb)?Eb:0}()>.5;$APP.n(function(){var Eb=eb[0];return $APP.n(Eb)?!Xb:Eb}())?(a.__xKineticFontRaf=null,a.__xKineticFontSD=0,$APP.n($APP.k(a,"__xKineticFontAct"))&&(a.__xKineticFontAct=!1,a.dispatchEvent(new CustomEvent("x-kinetic-font-spring-settle",{bubbles:!0,composed:!0,detail:{}})))):$APP.ja(a,"__xKineticFontRaf",requestAnimationFrame(function(){return s0.g?s0.g(a):s0.call(null,a)}))}return null};$APP.ha("baredom.exports.x_kinetic_font.init",M0);export const init=M0;
27
+ S2=function S2(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xKineticFontModel"),d=$APP.k(a,"__xKineticFontCV"),e=performance.now(),g=Math.min(e-$APP.k(a,"__xKineticFontLF"),100)/1E3,h=$APP.rm.g(c),l=K2.g(c),m=$APP.hk.g(c),p=$APP.xk.g(c),q=$APP.Rm.g(c),v=N2.g(c);c=L2.g(c);var x=a3.g(d),y=e3.g(d),A=d3.g(d),C=c3.g(d),E=Y2.g(d),H=X2.g(d),G=$2.g(d),J=Z2.g(d);d=b3.g(d);var Q=$APP.I(c,"lean"),aa=$APP.k(a,"__xKineticFontMX"),ka=$APP.k(a,"__xKineticFontMY"),Ca=function(){var Fb=$APP.k(a,"__xKineticFontSD");
28
+ return $APP.n(Fb)?Fb:0}(),Pa=Math.min(1,Math.abs(Ca)/100),cb=$APP.k(a,"__xKineticFontSpr"),db=$APP.k(a,"__xKineticFontCS"),ob=db!=null,Nb=cb.length;a.__xKineticFontLF=e;a.__xKineticFontSD=Ca*.85;for(var fb=[!0],da=0;;)if(da<Nb){Ca=ob&&($APP.B.i(v,"cursor")||$APP.B.i(v,"both"))?function(){var Fb=db[da].getBoundingClientRect(),Wd=aa-(Fb.left+.5*Fb.width);Fb=ka-(Fb.top+.5*Fb.height);return Math.max(C2(Math.sqrt(Wd*Wd+Fb*Fb),q),Pa)}():ob&&$APP.B.i(v,"scroll")?Pa:ob||!$APP.B.i(v,"cursor")&&!$APP.B.i(v,
29
+ "both")?$APP.B.i(v,"scroll")?Pa:0:function(){var Fb=$APP.M($APP.k(a,"__xKineticFontRefs")),Wd=$APP.D(Fb,$APP.Hj).getBoundingClientRect();Fb=aa-(Wd.left+.5*Wd.width);Wd=ka-(Wd.top+.5*Wd.height);return Math.max(C2(Math.sqrt(Fb*Fb+Wd*Wd),q),Pa)}();var ta=cb[da],Qa=B2(ta[0],Ca,ta[1],g,h,l,m);e=Qa[0];Qa=Qa[1];ta[0]=e;ta[1]=Qa;Math.abs(e-Ca)<.001&&Math.abs(Qa)<.01||(fb[0]=!1);Ca=D2(e,c,p,x,y,A,C,E,H,G,J);e=Q?e*p*d:0;ob?R2(db[da],Ca,e):(ta=$APP.M($APP.k(a,"__xKineticFontRefs")),ta=$APP.D(ta,$APP.Hj),R2(ta,
30
+ Ca,e));da+=1}else break;var ac=function(){var Fb=$APP.k(a,"__xKineticFontSD");return $APP.n(Fb)?Fb:0}()>.5;$APP.n(function(){var Fb=fb[0];return $APP.n(Fb)?!ac:Fb}())?(a.__xKineticFontRaf=null,a.__xKineticFontSD=0,$APP.n($APP.k(a,"__xKineticFontAct"))&&(a.__xKineticFontAct=!1,a.dispatchEvent(new CustomEvent("x-kinetic-font-spring-settle",{bubbles:!0,composed:!0,detail:{}})))):$APP.ja(a,"__xKineticFontRaf",requestAnimationFrame(function(){return S2.g?S2.g(a):S2.call(null,a)}))}return null};$APP.ha("baredom.exports.x_kinetic_font.init",l3);export const init=l3;