@vanelsas/baredom 2.0.1 → 2.1.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.
- package/CHANGELOG.md +25 -0
- package/README.md +26 -7
- package/dist/base.js +405 -403
- package/dist/x-alert.js +19 -19
- package/dist/x-avatar-group.js +11 -11
- package/dist/x-avatar.js +15 -15
- package/dist/x-badge.js +11 -11
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +14 -14
- package/dist/x-button.js +16 -16
- package/dist/x-cancel-dialogue.js +17 -17
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +35 -0
- package/dist/x-chart.js +48 -48
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.js +9 -9
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +46 -0
- package/dist/x-command-palette.js +27 -32
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +20 -20
- package/dist/x-copy.js +23 -23
- package/dist/x-currency-field.js +23 -23
- package/dist/x-date-picker.js +42 -42
- package/dist/x-divider.js +10 -13
- package/dist/x-drawer.js +12 -12
- package/dist/x-dropdown.js +10 -10
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +7 -7
- package/dist/x-form-field.js +16 -16
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +18 -18
- package/dist/x-grid.js +6 -6
- package/dist/x-kinetic-font.js +29 -28
- package/dist/x-kinetic-typography.js +39 -39
- package/dist/x-liquid-dock.js +39 -39
- package/dist/x-liquid-fill.js +45 -44
- package/dist/x-liquid-glass.js +47 -47
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.js +11 -12
- package/dist/x-metaball-cursor.js +27 -28
- package/dist/x-modal.js +13 -13
- package/dist/x-morph-stack.js +39 -39
- package/dist/x-navbar.js +13 -13
- package/dist/x-neural-glow.js +34 -34
- package/dist/x-notification-center.js +10 -9
- package/dist/x-organic-divider.js +19 -19
- package/dist/x-organic-progress.js +38 -38
- package/dist/x-organic-shape.js +14 -14
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +53 -0
- package/dist/x-popover.js +15 -15
- package/dist/x-progress-circle.js +11 -11
- package/dist/x-progress.js +11 -11
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.js +12 -12
- package/dist/x-scroll-parallax.js +19 -19
- package/dist/x-scroll-stack.js +19 -19
- package/dist/x-scroll-story.js +36 -36
- package/dist/x-scroll-timeline.js +47 -47
- package/dist/x-scroll.js +42 -42
- package/dist/x-search-field.js +15 -15
- package/dist/x-select.js +11 -11
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton.js +6 -6
- package/dist/x-slider.js +16 -16
- package/dist/x-soft-body.js +22 -22
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -5
- package/dist/x-splash.js +13 -13
- package/dist/x-stat.js +11 -11
- package/dist/x-stepper.js +16 -16
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +8 -8
- package/dist/x-table-cell.js +24 -24
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.js +16 -16
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +19 -19
- package/dist/x-theme.js +25 -24
- package/dist/x-timeline-item.js +24 -24
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +25 -25
- package/dist/x-toaster.js +8 -8
- package/dist/x-typography.js +11 -11
- package/package.json +14 -2
package/dist/x-modal.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","backdrop");e.setAttribute("part","dialog");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");g.setAttribute("part","header");h.setAttribute("name","header");
|
|
4
|
-
footer:p};return $APP.
|
|
5
|
-
a=$APP.
|
|
6
|
-
return $APP.
|
|
7
|
-
"");return null},
|
|
8
|
-
"-1"),a.__xModalDialogTab=!0),d.focus());return null},0):
|
|
9
|
-
$APP.
|
|
10
|
-
g.shiftKey;$APP.
|
|
11
|
-
var e=$APP.
|
|
12
|
-
this.setAttribute("size",""+$APP.
|
|
13
|
-
configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.
|
|
14
|
-
function(b,c,d){$APP.
|
|
2
|
+
var RT=function(a){var b=$APP.k(a,"__xModalRefs");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("div"),h=document.createElement("slot"),l=document.createElement("div"),m=document.createElement("slot"),p=document.createElement("div"),q=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-modal-bg:var(--x-color-bg,Canvas);--x-modal-fg:var(--x-color-text,CanvasText);--x-modal-backdrop:rgb(0 0 0/0.45);--x-modal-shadow:var(--x-shadow-lg,0 20px 60px rgb(0 0 0/0.25));--x-modal-radius:var(--x-radius-md,0.75rem);--x-modal-width-sm:22rem;--x-modal-width-md:32rem;--x-modal-width-lg:44rem;--x-modal-width-xl:60rem;--x-modal-max-height:90dvh;--x-modal-header-padding:1rem 1.25rem;--x-modal-body-padding:1rem 1.25rem;--x-modal-footer-padding:0.75rem 1.25rem;--x-modal-border:var(--x-color-border,color-mix(in srgb,currentColor 12%,transparent));--x-modal-duration:var(--x-transition-duration,180ms);--x-modal-easing:ease;--x-modal-z:1000;}[part\x3dbackdrop]{position:fixed;inset:0;background:var(--x-modal-backdrop);z-index:var(--x-modal-z);opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{opacity:1;visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}[part\x3ddialog]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.96);opacity:0;visibility:hidden;pointer-events:none;background:var(--x-modal-bg);color:var(--x-modal-fg);box-shadow:var(--x-modal-shadow);border-radius:var(--x-modal-radius);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-modal-z) + 1);max-height:var(--x-modal-max-height);transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s var(--x-modal-easing) var(--x-modal-duration);}:host([data-size\x3dsm]) [part\x3ddialog]{width:var(--x-modal-width-sm);}:host([data-size\x3dmd]) [part\x3ddialog]{width:var(--x-modal-width-md);}:host([data-size\x3dlg]) [part\x3ddialog]{width:var(--x-modal-width-lg);}:host([data-size\x3dxl]) [part\x3ddialog]{width:var(--x-modal-width-xl);}:host([data-size\x3dfull]) [part\x3ddialog]{inset:0;top:0;left:0;width:100%;height:100dvh;border-radius:0;max-width:100%;max-height:100dvh;transform:scale(0.98);}:host([data-open\x3dtrue]) [part\x3ddialog]{opacity:1;transform:translate(-50%,-50%) scale(1);visibility:visible;pointer-events:auto;transition:opacity var(--x-modal-duration) var(--x-modal-easing),transform var(--x-modal-duration) var(--x-modal-easing),visibility 0s;}:host([data-open\x3dtrue][data-size\x3dfull]) [part\x3ddialog]{transform:scale(1);}[part\x3ddialog]:focus{outline:none;}[part\x3dheader]{padding:var(--x-modal-header-padding);border-bottom:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-modal-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-modal-footer-padding);border-top:1px solid var(--x-modal-border);flex-shrink:0;}[part\x3ddialog]{max-width:calc(100vw - 2rem);}:host([data-size\x3dfull]) [part\x3ddialog]{max-width:100%;}@media (prefers-reduced-motion:reduce){[part\x3ddialog],[part\x3dbackdrop]{transition:none;}}";
|
|
3
|
+
d.setAttribute("part","backdrop");e.setAttribute("part","dialog");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");g.setAttribute("part","header");h.setAttribute("name","header");l.setAttribute("part","body");p.setAttribute("part","footer");q.setAttribute("name","footer");g.appendChild(h);l.appendChild(m);p.appendChild(q);e.appendChild(g);e.appendChild(l);e.appendChild(p);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xModalRefs={root:b,backdrop:d,dialog:e,header:g,body:l,
|
|
4
|
+
footer:p};return $APP.k(a,"__xModalRefs")},ST=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},TT=function(a){function b(d){var e=window.getComputedStyle(d);return $APP.N("none",e.display)&&$APP.N("hidden",e.visibility)&&d.offsetWidth>0&&d.offsetHeight>0}var c=$APP.ce(b,$APP.tc($APP.k(a,"dialog").querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])")));
|
|
5
|
+
a=$APP.ae(function(d){return $APP.ce(b,$APP.ae(function(e){var g=$APP.tc(e.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"));return $APP.n(e.matches("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"))?$APP.nd(e,g):g},$APP.tc([$APP.uc(d.assignedElements({flatten:!0}))])))},$APP.tc([$APP.tc($APP.k(a,"root").querySelectorAll("slot"))]));
|
|
6
|
+
return $APP.ve($APP.Zd.i(c,a))},UT=function(a){var b=$APP.k(a,"__xModalRefs");b=$APP.n(b)?$APP.k(b,"dialog"):null;var c=$APP.k(a,"__xModalRestore"),d=$APP.k(a,"__xModalDialogTab")===!0;a.__xModalTabbables=null;a.__xModalRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xModalDialogTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},VT=function(a,b){ST(a,"x-modal-dismiss",{reason:b});a.removeAttribute("open");return null},WT=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open",
|
|
7
|
+
"");return null},XT=function(a){a.removeAttribute("open");return null},YT=function(a,b){$APP.N($APP.k(a,"__xModalPrevOpen"),b)&&(a.__xModalPrevOpen=b,ST(a,"x-modal-toggle",{open:b}),$APP.n(b)?setTimeout(function(){var c=$APP.k(a,"__xModalRefs"),d=$APP.n(c)?$APP.k(c,"dialog"):null;c=$APP.n(c)?TT(c):null;a.__xModalRestore=document.activeElement;var e=$APP.n(c)?$APP.ph(c):null;a.__xModalTabbables=e;$APP.t(c)?$APP.u(c).focus():$APP.n(d)&&($APP.n(d.hasAttribute("tabindex"))||(d.setAttribute("tabindex",
|
|
8
|
+
"-1"),a.__xModalDialogTab=!0),d.focus());return null},0):UT(a))},$T=function(a){var b=RT(a);b=$APP.k(b,"dialog");var c=new $APP.R(null,3,[$APP.ii,a.hasAttribute("open"),$APP.il,a.getAttribute("size"),$APP.Wh,a.getAttribute("label")],null);var d=$APP.M(c),e=$APP.D(d,$APP.ii);c=$APP.D(d,$APP.il);d=$APP.D(d,$APP.Wh);e=$APP.F(e);c=typeof c==="string"&&$APP.J(ZT,c)?c:"md";d=typeof d==="string"&&$APP.N(d,"")?d:"Modal";c=new $APP.R(null,3,[$APP.Wl,e,$APP.th,c,$APP.U,d],null);d=$APP.Wl.g(c);a.setAttribute("data-open",
|
|
9
|
+
$APP.n(d)?"true":"false");a.setAttribute("data-size",$APP.th.g(c));b.setAttribute("aria-label",$APP.U.g(c));YT(a,d)},aU=function(a){function b(g){var h=g.key;if($APP.C.i(h,"Escape"))g.preventDefault(),VT(a,"escape");else if($APP.C.i(h,"Tab")){h=$APP.k(a,"__xModalTabbables");h=$APP.n(h)?$APP.ve($APP.tc(h)):$APP.ee;var l=$APP.k(a,"__xModalRefs");l=$APP.n(l)?$APP.k(l,"dialog"):null;if($APP.Gc(h))g.preventDefault(),$APP.n(l)&&l.focus();else{l=document.activeElement;var m=$APP.u(h);h=$APP.wc(h);var p=
|
|
10
|
+
g.shiftKey;$APP.n($APP.n(p)?$APP.C.i(l,m):p)?(g.preventDefault(),h.focus()):$APP.r(p)&&$APP.C.i(l,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return VT(a,"backdrop")}var d=RT(a),e=$APP.k(d,"dialog");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.ia(a,"__xModalHandlers",{backdrop:c,keydown:b})},bU=function(a){var b=$APP.k(a,"__xModalHandlers"),c=$APP.k(a,"__xModalRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.k(c,"backdrop");c=$APP.k(c,"dialog");
|
|
11
|
+
var e=$APP.k(b,"backdrop");b=$APP.k(b,"keydown");$APP.n(e)&&d.removeEventListener("click",e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xModalHandlers=null},cU=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?WT(this):XT(this)},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return b==null?this.removeAttribute("size"):
|
|
12
|
+
this.setAttribute("size",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Modal"},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return WT(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"hide",{value:function(){return XT(this)},enumerable:!0,
|
|
13
|
+
configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?XT(this):WT(this);return null},enumerable:!0,configurable:!0,writable:!0})},eU=function(){if(!$APP.n(customElements.get("x-modal"))){var a=class extends HTMLElement{};a.observedAttributes=dU;a.prototype.connectedCallback=function(){RT(this);bU(this);aU(this);$T(this);return null};a.prototype.disconnectedCallback=function(){bU(this);UT(this);return null};a.prototype.attributeChangedCallback=
|
|
14
|
+
function(b,c,d){$APP.N(c,d)&&$T(this);return null};cU(a.prototype);customElements.define("x-modal",a)}return null},fU=function(){return eU()};var ZT=new $APP.S(null,new $APP.R(null,5,["md",null,"lg",null,"full",null,"xl",null,"sm",null],null),null),dU=["open","size","label"];$APP.Pd(["x-modal-toggle",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.tl,$APP.Bj],null)],null),"x-modal-dismiss",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.ri,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_modal.init",fU);export const init=fU;
|
package/dist/x-morph-stack.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.
|
|
4
|
-
1,$APP.
|
|
5
|
-
$APP.
|
|
6
|
-
b){return new $APP.
|
|
7
|
-
"true");c.setAttribute("data-x-morph-stack-ghost-layer","");d.style.position="absolute";d.style.width="0";d.style.height="0";d.style.overflow="hidden";d.setAttribute("aria-hidden","true");c.appendChild(d);document.body.appendChild(c);b=$APP.
|
|
2
|
+
var Nu=function(a){return typeof a==="string"?(a=a.trim().toLowerCase(),$APP.J(Mu,a)?a:"clean"):"clean"},Ou=function(a){return $APP.C.i(a,"organic")||$APP.C.i(a,"liquid")},Pu=function(a){var b=(a-1)/17*-7;return"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+$APP.T.g(a)+" "+$APP.T.g(b)},Qu=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},Ru=function(a,b,c,d){if($APP.n($APP.n(a)?a>0:a)){b=$APP.$g.i(1E-4,
|
|
3
|
+
$APP.n(b)?b:0);c=$APP.$g.i(1E-4,$APP.n(c)?c:0);d=$APP.$g.i(1E-4,$APP.n(d)?d:0);var e=Math.sqrt(b/d);a=1E3*(4/($APP.$g.i(.2,$APP.ah.i(5,c/(2*Math.sqrt(b*d))))*e)+Math.PI/e)/a}else a=1;return a},Su=function(a,b,c,d,e,g){b+=(e*(1-a)-g*b)/d*c;return[a+b*c,b]},Uu=function(a,b){b=$APP.M(b);var c=$APP.D(b,Tu);b=$APP.D(b,$APP.Fj);var d=$APP.ve(a);a=$APP.z(d);if(a>0){var e=$APP.n(function(){return $APP.n(c)?$APP.Td(function(g){return $APP.C.i(g,c)},d):c}())?c:null;if($APP.n(e))return e;a=$APP.$g.i(0,$APP.ah.i(a-
|
|
4
|
+
1,$APP.n(b)?b:0));return $APP.oc(d,a)}return null},Vu=function(a,b,c){return a+(b-a)*c},Wu=function(a){if(typeof a==="string"){a=a.match(/rgba?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)(?:\s*,\s*(\d*(?:\.\d+)?))?\s*\)/);if($APP.n(a)){var b=parseFloat(a[1]),c=parseFloat(a[2]),d=parseFloat(a[3]);var e=a[4];e=$APP.n(e)?$APP.N("",a[4]):e;a=[b,c,d,$APP.n(e)?parseFloat(a[4]):1]}else a=null;return a}return null},Xu=function(a,b,c){var d=Wu(a),e=Wu(b);return $APP.n($APP.n(d)?e:d)?"rgba("+
|
|
5
|
+
$APP.T.g(Math.round(Vu(d[0],e[0],c)))+","+$APP.T.g(Math.round(Vu(d[1],e[1],c)))+","+$APP.T.g(Math.round(Vu(d[2],e[2],c)))+","+$APP.T.g(Vu(d[3],e[3],c))+")":c<.5?a:b},Yu=function(a){if(typeof a==="string")if(a=a.trim(),$APP.N(a,"")){a=a.split(/\s+/);for(var b=a.length,c=[],d=0;;){if(d>=b)return c.length>0?c:null;var e=a[d];if($APP.n(e.endsWith("px"))){e=parseFloat(e.slice(0,e.length-2));if($APP.n(isNaN(e)))return null;c.push(e);d+=1}else return null}}else return null;else return null},Zu=function(a,
|
|
6
|
+
b){return new $APP.R(null,2,[$APP.Fh,$APP.n(a)?a:"",$APP.pl,$APP.n(b)?b:""],null)},av=function(a){var b=$APP.k(a,"__xMorphStackRefs"),c=$APP.n(b)?$u.g(b):null;if($APP.n($APP.n(c)?c.isConnected:c))return b;c=document.createElement("div");var d=document.createElementNS("http://www.w3.org/2000/svg","svg");c.style.position="fixed";c.style.top="0";c.style.left="0";c.style.width="100%";c.style.height="100dvh";c.style.pointerEvents="none";c.style.overflow="visible";c.style.zIndex="2147483646";c.setAttribute("aria-hidden",
|
|
7
|
+
"true");c.setAttribute("data-x-morph-stack-ghost-layer","");d.style.position="absolute";d.style.width="0";d.style.height="0";d.style.overflow="hidden";d.setAttribute("aria-hidden","true");c.appendChild(d);document.body.appendChild(c);b=$APP.Yg.C(b,$u,c,$APP.tc([$APP.Jj,d]));return a.__xMorphStackRefs=b},bv=function(a){var b=$APP.k(a,"__xMorphStackRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");
|
|
8
8
|
c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-morph-stack-spring-stiffness:170;--x-morph-stack-spring-damping:26;--x-morph-stack-spring-mass:1;--x-morph-stack-fade-ms:160ms;--x-morph-stack-goo-blur:10;--x-morph-stack-goo-threshold:18;--x-morph-stack-bg:transparent;}:host([data-variant\x3d'clean']){--x-morph-stack-spring-stiffness:280;--x-morph-stack-spring-damping:30;--x-morph-stack-spring-mass:0.7;}:host([data-variant\x3d'organic']){--x-morph-stack-spring-stiffness:180;--x-morph-stack-spring-damping:5;--x-morph-stack-spring-mass:1.0;--x-morph-stack-goo-blur:6;--x-morph-stack-goo-threshold:14;}:host([data-variant\x3d'liquid']){--x-morph-stack-spring-stiffness:50;--x-morph-stack-spring-damping:14;--x-morph-stack-spring-mass:2.0;--x-morph-stack-goo-blur:26;--x-morph-stack-goo-threshold:26;}[part\x3dviewport]{position:relative;display:block;background:var(--x-morph-stack-bg);}:host([disabled]){opacity:0.7;}";
|
|
9
|
-
d.setAttribute("part","viewport");e.setAttribute("name","state");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xMorphStackRefs=new $APP.
|
|
10
|
-
$APP.
|
|
11
|
-
$APP.
|
|
12
|
-
g=$APP.
|
|
13
|
-
"":g.style.display="none";e+=1}else break;$APP.
|
|
14
|
-
text:e.textContent,node:e};d+=1}else break}return b},
|
|
15
|
-
$APP.
|
|
16
|
-
"140%");e.setAttribute("height","140%");g.setAttribute("in","SourceGraphic");g.setAttribute("stdDeviation",""+$APP.
|
|
17
|
-
18);a.__xMorphStackGooBaseBlur=d;a.__xMorphStackGooBaseThreshold=e;
|
|
18
|
-
c.left)+"px";a.style.top=""+$APP.
|
|
19
|
-
$APP.
|
|
20
|
-
B=g.cloneNode(!0);c=h.w;d=h.h;var E=
|
|
21
|
-
")";A.style.opacity=""+$APP.
|
|
22
|
-
""+$APP.
|
|
23
|
-
a=new $APP.
|
|
24
|
-
e,m,p)),h=$APP.
|
|
25
|
-
d=null,e=0),g=0;else break;return a},
|
|
26
|
-
"__xMorphStackTo"))),c=new CustomEvent("x-morph-stack-changed",{detail:c,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(c),a.__xMorphStackFrom=null,a.__xMorphStackTo=null)}return null},
|
|
27
|
-
return $APP.
|
|
28
|
-
return m?m:$APP.W.g(e)}();if($APP.
|
|
29
|
-
$APP.
|
|
30
|
-
$APP.
|
|
31
|
-
c=$APP.
|
|
32
|
-
null?null:parseFloat(d)},set:function(d){return d==null?this.removeAttribute(c):this.setAttribute(c,""+$APP.
|
|
33
|
-
return b==null?null:parseInt(b,10)},set:function(b){return b==null?this.removeAttribute("active-index"):this.setAttribute("active-index",""+$APP.
|
|
34
|
-
configurable:!0});
|
|
35
|
-
1}d=void 0}b=
|
|
36
|
-
$APP.
|
|
37
|
-
case 2:return
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var
|
|
41
|
-
y=
|
|
9
|
+
d.setAttribute("part","viewport");e.setAttribute("name","state");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xMorphStackRefs=new $APP.R(null,3,[$APP.ji,b,$APP.Ni,d,$APP.Li,e],null);return $APP.k(a,"__xMorphStackRefs")},dv=function(a){a=new $APP.R(null,8,[cv,a.getAttribute("active-state"),$APP.Dk,a.getAttribute("active-index"),$APP.vl,a.getAttribute("stiffness"),$APP.fm,a.getAttribute("damping"),$APP.cj,a.getAttribute("mass"),$APP.Jk,a.getAttribute("variant"),$APP.wi,a.getAttribute("duration"),
|
|
10
|
+
$APP.al,a.hasAttribute("disabled")],null);a=$APP.M(a);var b=$APP.D(a,cv),c=$APP.D(a,$APP.Dk),d=$APP.D(a,$APP.vl),e=$APP.D(a,$APP.fm),g=$APP.D(a,$APP.cj),h=$APP.D(a,$APP.Jk),l=$APP.D(a,$APP.wi);a=$APP.D(a,$APP.al);b=typeof b==="string"&&$APP.N("",b.trim())?b.trim():null;a:{if(typeof c==="string"&&(c=c.trim(),$APP.N(c,""))){c=parseInt(c,10);c=typeof c==="number"&&$APP.r(isNaN(c))&&c>=0?c:null;break a}c=null}d=Qu(d,170,10,500);e=Qu(e,26,1,100);g=Qu(g,1,.1,10);h=Nu(h);a:{if(typeof l==="string"&&(l=l.trim(),
|
|
11
|
+
$APP.N(l,""))){l=parseFloat(l);l=typeof l==="number"&&$APP.r(isNaN(l))&&l>0?l:null;break a}l=null}return new $APP.R(null,8,[Tu,b,$APP.Fj,c,$APP.fl,d,$APP.kk,e,$APP.Ll,g,$APP.Nh,h,$APP.wk,l,$APP.W,$APP.F(a)],null)},ev=function(a,b,c){a=window.getComputedStyle(a).getPropertyValue(b);return typeof a==="string"&&$APP.N("",a.trim())?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?c:a):c},fv=function(a){a=bv(a);a=$APP.M(a);a=$APP.D(a,$APP.Li).assignedElements();for(var b=[],c=a.length,d=0;;)if(d<c){var e=a[d],
|
|
12
|
+
g=$APP.C.i(1,e.nodeType);$APP.n(g?e.hasAttribute("data-state"):g)&&b.push(e);d+=1}else break;return b},gv=function(a){a=fv(a);for(var b=[],c=a.length,d=0;;)if(d<c)b.push(a[d].getAttribute("data-state")),d+=1;else break;return b},hv=function(a,b){a=fv(a);for(var c=a.length,d=0;;)if(d<c){var e=a[d];if($APP.C.i(b,e.getAttribute("data-state")))return e;d+=1}else return null},iv=function(a,b){for(var c=fv(a),d=c.length,e=0;;)if(e<d){var g=c[e],h=g.getAttribute("data-state");$APP.C.i(h,b)?g.style.display=
|
|
13
|
+
"":g.style.display="none";e+=1}else break;$APP.n(b)?a.setAttribute("data-active-state",b):a.removeAttribute("data-active-state");a.__xMorphStackCurrent=b},jv=function(a){var b={};if($APP.n(a)){a=a.querySelectorAll("["+$APP.T.g("data-morph-id")+"]");for(var c=a.length,d=0;;)if(d<c){var e=a[d],g=e.getAttribute("data-morph-id"),h=e.getBoundingClientRect(),l=window.getComputedStyle(e);b[g]={rect:{x:h.left,y:h.top,w:h.width,h:h.height},br:l.borderRadius,bg:l.backgroundColor,color:l.color,clip:l.clipPath,
|
|
14
|
+
text:e.textContent,node:e};d+=1}else break}return b},kv=function(a,b,c){var d=$APP.k(a,"__xMorphStackFilterBlur");a=$APP.k(a,"__xMorphStackFilterMatrix");$APP.n(d)&&d.setAttribute("stdDeviation",""+$APP.T.g(b));$APP.n(a)&&a.setAttribute("values",Pu(c))},lv=function(a,b){var c=$APP.k(a,"__xMorphStackGooBaseBlur"),d=$APP.k(a,"__xMorphStackGooBaseThreshold");c!=null&&d!=null&&(b=b<=0?1:b<.18?1-b/.18:b<.7?0:b<1?(b-.7)/(1-.7):1,kv(a,c*(1-b),Vu(d,1,b)))},nv=function(a){var b=av(a);b=$APP.M(b);b=$APP.D(b,
|
|
15
|
+
$APP.Jj);var c=$APP.k(a,"__xMorphStackFilterId");if($APP.n(c))b=c;else{c=mv[0];mv[0]=c+1;c="x-morph-stack-goo-"+$APP.T.g(c);var d=document.createElementNS("http://www.w3.org/2000/svg","defs"),e=document.createElementNS("http://www.w3.org/2000/svg","filter"),g=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),h=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");e.setAttribute("id",c);e.setAttribute("x","-20%");e.setAttribute("y","-20%");e.setAttribute("width",
|
|
16
|
+
"140%");e.setAttribute("height","140%");g.setAttribute("in","SourceGraphic");g.setAttribute("stdDeviation",""+$APP.T.g(10));g.setAttribute("result","blur");h.setAttribute("in","blur");h.setAttribute("type","matrix");h.setAttribute("values",Pu(18));e.appendChild(g);e.appendChild(h);d.appendChild(e);b.appendChild(d);a.__xMorphStackFilterId=c;a.__xMorphStackFilterBlur=g;a.__xMorphStackFilterMatrix=h;b=c}c=av(a);c=$APP.M(c);c=$APP.D(c,$u);d=ev(a,"--x-morph-stack-goo-blur",10);e=ev(a,"--x-morph-stack-goo-threshold",
|
|
17
|
+
18);a.__xMorphStackGooBaseBlur=d;a.__xMorphStackGooBaseThreshold=e;kv(a,d,e);c.style.filter="url(#"+$APP.T.g(b)+")";c.style.webkitFilter="url(#"+$APP.T.g(b)+")"},ov=function(a){a=$APP.k(a,"__xMorphStackRefs");a=$APP.n(a)?$u.g(a):null;$APP.n(a)&&(a.style.filter="",a.style.webkitFilter="")},pv=function(a){a.style.position="absolute";a.style.margin="0";a.style.boxSizing="border-box";a.style.transformOrigin="top left";a.style.pointerEvents="none"},qv=function(a,b,c){var d=b.y-c.top;a.style.left=""+$APP.T.g(b.x-
|
|
18
|
+
c.left)+"px";a.style.top=""+$APP.T.g(d)+"px";a.style.width=""+$APP.T.g(b.w)+"px";a.style.height=""+$APP.T.g(b.h)+"px"},rv=function(a,b,c,d){function e(la){la=$APP.$g.i(0,$APP.ah.i(1,la));var za=Vu(Y,0,la),Ka=Vu(G,1,la),$a=Vu(I,1,la);B.style.transform="translate("+$APP.T.g(Vu(Q,0,la))+"px,"+$APP.T.g(za)+"px) scale("+$APP.T.g(Ka)+","+$APP.T.g($a)+")";za=B.style;Ka=Yu(m);$a=Yu(p);if($APP.n($APP.n(Ka)?$APP.n($a)?$APP.C.i(Ka.length,$a.length):$a:Ka)){for(var ab=[],jb=Ka.length,Ib=0;;)if(Ib<jb)ab.push(""+
|
|
19
|
+
$APP.T.g(Vu(Ka[Ib],$a[Ib],la))+"px"),Ib+=1;else break;Ka=ab.join(" ")}else Ka=la<.5?m:p;za.borderRadius=Ka;$APP.n($APP.n(q)?v:q)&&(B.style.backgroundColor=Xu(q,v,la));$APP.n($APP.n(x)?y:x)&&(B.style.color=Xu(x,y,la));A&&(B.style.opacity=""+$APP.T.g($APP.$g.i(0,$APP.ah.i(1,la))));return null}var g=$APP.k(d,"node"),h=$APP.k(d,"rect"),l=$APP.k(c,"rect"),m=$APP.k(c,"br"),p=$APP.k(d,"br"),q=$APP.k(c,"bg"),v=$APP.k(d,"bg"),x=$APP.k(c,"color"),y=$APP.k(d,"color"),A=$APP.N($APP.k(c,"text"),$APP.k(d,"text")),
|
|
20
|
+
B=g.cloneNode(!0);c=h.w;d=h.h;var E=l.w,H=l.h,G=c>0?E/c:1,I=d>0?H/d:1,Q=l.x-h.x,Y=l.y-h.y;pv(B);qv(B,h,b);a.appendChild(B);g.style.visibility="hidden";e(0);return{t:0,v:0,update:e,finalize:function(){g.style.visibility="";return $APP.n(B.parentNode)?B.parentNode.removeChild(B):null}}},sv=function(a,b,c,d){function e(B){B=$APP.$g.i(0,$APP.ah.i(1,B));var E=Vu(0,v,B),H=Vu(1,x,B),G=Vu(1,y,B);A.style.transform="translate("+$APP.T.g(Vu(0,q,B))+"px,"+$APP.T.g(E)+"px) scale("+$APP.T.g(H)+","+$APP.T.g(G)+
|
|
21
|
+
")";A.style.opacity=""+$APP.T.g($APP.$g.i(0,1-B));return null}var g=$APP.k(c,"rect");d=$APP.k(d,"rect");var h=g.w,l=g.h,m=d.w,p=d.h,q=d.x-g.x,v=d.y-g.y,x=h>0?m/h:1,y=l>0?p/l:1,A=$APP.k(c,"node").cloneNode(!0);pv(A);qv(A,g,b);a.appendChild(A);e(0);return{t:0,v:0,update:e,finalize:function(){return $APP.n(A.parentNode)?A.parentNode.removeChild(A):null}}},tv=function(a,b,c){var d=$APP.k(c,"rect"),e=$APP.k(c,"node").cloneNode(!0);pv(e);qv(e,d,b);a.appendChild(e);return{t:0,v:0,update:function(g){e.style.opacity=
|
|
22
|
+
""+$APP.T.g($APP.$g.i(0,1-g));return null},finalize:function(){return $APP.n(e.parentNode)?e.parentNode.removeChild(e):null}}},uv=function(a){var b=$APP.k(a,"node");b.style.opacity="0";return{t:0,v:0,update:function(c){b.style.opacity=""+$APP.T.g($APP.$g.i(0,$APP.ah.i(1,c)));return null},finalize:function(){return b.style.opacity=""}}},zv=function(a,b,c){a=av(a);a=$APP.M(a);var d=$APP.D(a,$u),e=d.getBoundingClientRect(),g=Object.keys(b);a=Object.keys(c);g=$APP.ve(g);a=$APP.ve(a);g=$APP.Vf(g);a=$APP.Vf(a);
|
|
23
|
+
a=new $APP.R(null,3,[vv,$APP.tm.i(g,a),wv,xv.i(g,a),yv,xv.i(a,g)],null);var h=vv.g(a),l=wv.g(a);g=yv.g(a);a=[];h=$APP.t(h);for(var m=null,p=0,q=0;;)if(q<p){var v=m.G(null,q),x=$APP.k(b,v);v=$APP.k(c,v);var y=$APP.k(x,"text"),A=$APP.k(v,"text");a.push(rv(d,e,x,v));$APP.N(y,A)&&a.push(sv(d,e,x,v));q+=1}else if(h=$APP.t(h))$APP.Nc(h)?(p=$APP.xb(h),h=$APP.yb(h),m=p,p=$APP.z(p)):(p=$APP.u(h),m=$APP.k(b,p),p=$APP.k(c,p),q=$APP.k(m,"text"),x=$APP.k(p,"text"),a.push(rv(d,e,m,p)),$APP.N(q,x)&&a.push(sv(d,
|
|
24
|
+
e,m,p)),h=$APP.w(h),m=null,p=0),q=0;else break;l=$APP.t(l);h=null;for(p=m=0;;)if(p<m)q=h.G(null,p),a.push(tv(d,e,$APP.k(b,q))),p+=1;else if(l=$APP.t(l))h=l,$APP.Nc(h)?(l=$APP.xb(h),p=$APP.yb(h),h=l,m=$APP.z(l),l=p):(l=$APP.u(h),a.push(tv(d,e,$APP.k(b,l))),l=$APP.w(h),h=null,m=0),p=0;else break;b=$APP.t(g);d=null;for(g=e=0;;)if(g<e)l=d.G(null,g),a.push(uv($APP.k(c,l))),g+=1;else if(b=$APP.t(b))d=b,$APP.Nc(d)?(b=$APP.xb(d),g=$APP.yb(d),d=b,e=$APP.z(b),b=g):(b=$APP.u(d),a.push(uv($APP.k(c,b))),b=$APP.w(d),
|
|
25
|
+
d=null,e=0),g=0;else break;return a},Av=function(a){if($APP.n(a))for(var b=a.length,c=0;;)if(c<b){var d=a[c].finalize;$APP.n(d)&&(d.H?d.H():d.call(null));c+=1}else break},Bv=function(a,b,c){if($APP.C.i(b,$APP.k(a,"__xMorphStackToken"))){b=$APP.k(a,"__xMorphStackEntries");var d=$APP.k(a,"__xMorphStackRaf");$APP.n(d)&&(window.cancelAnimationFrame(d),a.__xMorphStackRaf=null);Av(b);a.__xMorphStackEntries=null;a.__xMorphStackLast=null;ov(a);$APP.n(c)&&(c=$APP.ph(Zu($APP.k(a,"__xMorphStackFrom"),$APP.k(a,
|
|
26
|
+
"__xMorphStackTo"))),c=new CustomEvent("x-morph-stack-changed",{detail:c,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(c),a.__xMorphStackFrom=null,a.__xMorphStackTo=null)}return null},Cv=function(a){var b=$APP.k(a,"__xMorphStackRaf");$APP.n(b)&&(window.cancelAnimationFrame(b),a.__xMorphStackRaf=null);Av($APP.k(a,"__xMorphStackEntries"));a.__xMorphStackEntries=null;a.__xMorphStackLast=null;ov(a)},Ev=function(a,b,c){var d=$APP.k(a,"__xMorphStackCurrent"),e=function(){var m=$APP.k(a,"__xMorphStackModel");
|
|
27
|
+
return $APP.n(m)?m:dv(a)}(),g=gv(a);if(g.length===0||b==null||$APP.r($APP.Td(function(m){return $APP.C.i(m,b)},g)))return!1;if($APP.C.i(d,b))return!0;var h=$APP.n(d)?hv(a,d):null;g=hv(a,b);c=$APP.ph(new $APP.R(null,3,[$APP.Fh,$APP.n(d)?d:"",$APP.pl,$APP.n(b)?b:"",$APP.ri,$APP.n(c)?c:"method"],null));c=new CustomEvent("x-morph-stack-change",{detail:c,bubbles:!0,composed:!0,cancelable:!0});c=a.dispatchEvent(c);if($APP.r(c))return!1;Cv(a);c=function(){var m=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);
|
|
28
|
+
return m?m:$APP.W.g(e)}();if($APP.n(c))iv(a,b),queueMicrotask(function(){var m=$APP.ph(Zu(d,b));m=new CustomEvent("x-morph-stack-changed",{detail:m,bubbles:!0,composed:!0});return a.dispatchEvent(m)});else{h=jv(h);iv(a,b);$APP.Ni.g(bv(a));g=jv(g);g=zv(a,h,g);var l=function(){var m=$APP.k(a,"__xMorphStackToken");return $APP.n(m)?m:0}()+1;a.__xMorphStackToken=l;a.__xMorphStackEntries=g;a.__xMorphStackLast=null;a.__xMorphStackFrom=d;a.__xMorphStackTo=b;$APP.ia(a,"__xMorphStackTimeScale",Ru($APP.wk.g(e),
|
|
29
|
+
$APP.fl.g(e),$APP.kk.g(e),$APP.Ll.g(e)));Ou($APP.Nh.g(e))&&(nv(a),lv(a,0));g.length===0?Bv(a,l,!0):(g=window.requestAnimationFrame(function(m){return $APP.C.i(l,$APP.k(a,"__xMorphStackToken"))?Dv(a,m):null}),a.__xMorphStackRaf=g)}return!0},Fv=function(a){bv(a);var b=dv(a);a.__xMorphStackModel=b;a.setAttribute("data-variant",$APP.Nh.g(b));var c=gv(a);c=Uu($APP.ve($APP.tc(c)),b);b=$APP.k(a,"__xMorphStackCurrent");b==null?$APP.n(c)&&iv(a,c):$APP.n($APP.n(c)?$APP.N(c,b):c)?Ev(a,c,"attribute"):(c=c==null,
|
|
30
|
+
$APP.n(c?b:c)&&(Cv(a),iv(a,null)))},Gv=function(a){var b=gv(a);var c=$APP.k(a,"__xMorphStackModel");c=$APP.n(c)?c:dv(a);b=Uu($APP.ve($APP.tc(b)),c);c=$APP.k(a,"__xMorphStackCurrent");b==null?(Cv(a),iv(a,null)):$APP.n($APP.n(c)?hv(a,c)==null:c)?(Cv(a),iv(a,b)):c==null?iv(a,b):iv(a,c);return null},Hv=function(a){function b(){return Gv(a)}var c=bv(a);c=$APP.M(c);$APP.D(c,$APP.Li).addEventListener("slotchange",b);$APP.ia(a,"__xMorphStackHandlers",{slot:b})},Iv=function(a){var b=$APP.k(a,"__xMorphStackHandlers"),
|
|
31
|
+
c=$APP.k(a,"__xMorphStackRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.Li.g(c),b=$APP.k(b,"slot"),$APP.n(b)&&c.removeEventListener("slotchange",b));a.__xMorphStackHandlers=null},Jv=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},Kv=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return d==
|
|
32
|
+
null?null:parseFloat(d)},set:function(d){return d==null?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},Lv=function(a){Object.defineProperty(a,"activeState",{get:function(){return this.getAttribute("active-state")},set:function(b){return b==null?this.removeAttribute("active-state"):this.setAttribute("active-state",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");
|
|
33
|
+
return b==null?null:parseInt(b,10)},set:function(b){return b==null?this.removeAttribute("active-index"):this.setAttribute("active-index",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Kv(a,"stiffness","stiffness");Kv(a,"damping","damping");Kv(a,"mass","mass");Kv(a,"duration","duration");Object.defineProperty(a,"variant",{get:function(){return Nu(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,
|
|
34
|
+
configurable:!0});Jv(a);a.goTo=function(b){b=b!=null?""+$APP.T.g(b):null;return Ev(this,b,"method")};a.next=function(){var b=gv(this);var c=b.length,d=$APP.k(this,"__xMorphStackCurrent");if(c>0){b:{for(var e=0;;){if(e>=c){d=-1;break b}if($APP.C.i(b[e],d)){d=e;break b}e+=1}d=void 0}b=Ev(this,b[$APP.ed(d+1,c)],"method")}else b=null;return b};a.prev=function(){var b=gv(this);var c=b.length,d=$APP.k(this,"__xMorphStackCurrent");if(c>0){b:{for(var e=0;;){if(e>=c){d=0;break b}if($APP.C.i(b[e],d)){d=e;break b}e+=
|
|
35
|
+
1}d=void 0}b=Ev(this,b[$APP.ed(d-1+c,c)],"method")}else b=null;return b};a.states=function(){return gv(this)}},Ov=function(){var a=class extends HTMLElement{};a.observedAttributes=Mv;a.prototype.connectedCallback=function(){bv(this);Iv(this);Hv(this);Fv(this);$APP.k(this,"__xMorphStackCurrent")==null&&Gv(this);return null};a.prototype.disconnectedCallback=function(){Cv(this);var b=$APP.k(this,"__xMorphStackRefs"),c=$APP.n(b)?$u.g(b):null;$APP.n($APP.n(c)?c.parentNode:c)&&c.parentNode.removeChild(c);
|
|
36
|
+
$APP.n(b)&&(this.__xMorphStackRefs=Nv.i(Nv.i(b,$u),$APP.Jj));this.__xMorphStackGooBaseThreshold=this.__xMorphStackGooBaseBlur=this.__xMorphStackFilterMatrix=this.__xMorphStackFilterBlur=this.__xMorphStackFilterId=null;Iv(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Fv(this);return null};Lv(a.prototype);return a},Pv=function(){$APP.n(customElements.get("x-morph-stack"))||customElements.define("x-morph-stack",Ov());return null},Nv=function Nv(a){switch(arguments.length){case 1:return Nv.g(arguments[0]);
|
|
37
|
+
case 2:return Nv.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return Nv.C(arguments[0],arguments[1],2<c.length?new $APP.Tb(c.slice(2),0,null):null)}};Nv.g=function(a){return a};Nv.i=function(a,b){return a==null?null:$APP.Ma(a,b)};Nv.C=function(a,b,c){for(;;){if(a==null)return null;a=Nv.i(a,b);if($APP.n(c))b=$APP.u(c),c=$APP.w(c);else return a}};
|
|
38
|
+
Nv.J=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.C(b,a,c)};Nv.N=2;var xv=function xv(a){switch(arguments.length){case 1:return xv.g(arguments[0]);case 2:return xv.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return xv.C(arguments[0],arguments[1],2<c.length?new $APP.Tb(c.slice(2),0,null):null)}};xv.g=function(a){return a};
|
|
39
|
+
xv.i=function(a,b){return $APP.z(a)<$APP.z(b)?$APP.Wc(function(c,d){return $APP.J(b,d)?$APP.Zg.i(c,d):c},a,a):$APP.Wc($APP.Zg,a,b)};xv.C=function(a,b,c){return $APP.Wc(xv,a,$APP.kd.i(c,b))};xv.J=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.C(b,a,c)};xv.N=2;
|
|
40
|
+
var yv=new $APP.K(null,"entering","entering",-413471949),wv=new $APP.K(null,"leaving","leaving",608616060),vv=new $APP.K(null,"matched","matched",-975207164),cv=new $APP.K(null,"active-state-raw","active-state-raw",-60607051),Tu=new $APP.K(null,"active-state","active-state",-1185168001),$u=new $APP.K(null,"ghost-layer","ghost-layer",1707493707);var Mv="active-state active-index stiffness damping mass variant duration disabled".split(" "),Mu=$APP.Sf(["liquid","clean","organic"]);$APP.Pd(["x-morph-stack-change",new $APP.R(null,2,[$APP.yj,new $APP.R(null,3,[$APP.Fh,$APP.X,$APP.pl,$APP.X,$APP.ri,$APP.X],null),$APP.wl,!0],null),"x-morph-stack-changed",new $APP.R(null,2,[$APP.yj,new $APP.R(null,2,[$APP.Fh,$APP.X,$APP.pl,$APP.X],null),$APP.wl,!1],null)]);var mv=[0],Dv=function Dv(a,b){var d=$APP.k(a,"__xMorphStackToken"),e=$APP.k(a,"__xMorphStackEntries"),g=$APP.k(a,"__xMorphStackLast"),h=function(){var B=$APP.k(a,"__xMorphStackModel");return $APP.n(B)?B:dv(a)}(),l=$APP.Ll.g(h),m=$APP.fl.g(h);h=$APP.kk.g(h);g=$APP.$g.i(0,$APP.ah.i(1/30,function(){var B=$APP.k(a,"__xMorphStackTimeScale");return $APP.n(B)?B:1}()*($APP.n(g)?(b-g)/1E3:1/60)));a.__xMorphStackLast=b;if($APP.n($APP.n(e)?e.length:e)){b=[!0];for(var p=[1],q=e.length,v=0;;)if(v<q){var x=e[v],
|
|
41
|
+
y=Su(x.t,x.v,g,l,m,h),A=y[0];y=y[1];x.t=A;x.v=y;x=x.update;x.g?x.g(A):x.call(null,A);A<p[0]&&(p[0]=A);Math.abs(A-1)<.001&&Math.abs(y)<.01||(b[0]=!1);v+=1}else break;lv(a,p[0]);$APP.n(b[0])?Bv.m?Bv.m(a,d,!0):Bv.call(null,a,d,!0):(e=window.requestAnimationFrame(function(B){return $APP.C.i(d,$APP.k(a,"__xMorphStackToken"))?Dv.i?Dv.i(a,B):Dv.call(null,a,B):null}),a.__xMorphStackRaf=e)}return null};$APP.fa("baredom.exports.x_morph_stack.init",Pv);export const init=Pv;
|
package/dist/x-navbar.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
"actions-slot"),x=$APP.
|
|
4
|
-
typeof a==="string"?a:null,$APP.
|
|
5
|
-
$APP.
|
|
6
|
-
"pointer":c instanceof KeyboardEvent?"keyboard":"programmatic";$APP.
|
|
7
|
-
c)){if($APP.
|
|
8
|
-
c);$APP.
|
|
9
|
-
enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.
|
|
10
|
-
$APP.
|
|
11
|
-
e.setAttribute("part","base");g.setAttribute("part","bar");h.setAttribute("part","brand");
|
|
12
|
-
g.appendChild(h);g.appendChild(
|
|
13
|
-
a.prototype.attributeChangedCallback=function(){var b=$APP.
|
|
14
|
-
$APP.
|
|
2
|
+
var yT=function(a,b,c){return typeof a==="string"&&$APP.J(b,a)?a:c},zT=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},AT=function(a){return a.assignedNodes({flatten:!0})},BT=function(a){return document.createElement(a)},IT=function(a,b){var c=$APP.k(b,"base"),d=$APP.k(b,"bar"),e=$APP.k(b,"brand"),g=$APP.k(b,"start"),h=$APP.k(b,"actions"),l=$APP.k(b,"toggle"),m=$APP.k(b,"end"),p=$APP.k(b,"brand-slot"),q=$APP.k(b,"start-slot"),v=$APP.k(b,
|
|
3
|
+
"actions-slot"),x=$APP.k(b,"toggle-slot");b=$APP.k(b,"end-slot");a=new $APP.R(null,7,[$APP.U,a.getAttribute("label"),$APP.Gk,a.getAttribute("orientation"),$APP.Nh,a.getAttribute("variant"),$APP.Vk,a.hasAttribute("sticky"),CT,a.hasAttribute("elevated"),$APP.Ji,a.getAttribute("breakpoint"),DT,a.getAttribute("alignment")],null);var y=$APP.M(a);a=$APP.D(y,$APP.U);var A=$APP.D(y,$APP.Gk),B=$APP.D(y,$APP.Nh),E=$APP.D(y,$APP.Vk),H=$APP.D(y,CT),G=$APP.D(y,$APP.Ji);y=$APP.D(y,DT);a=new $APP.R(null,7,[$APP.U,
|
|
4
|
+
typeof a==="string"?a:null,$APP.Gk,yT(A,ET,"horizontal"),$APP.Nh,yT(B,FT,"default"),$APP.Vk,$APP.F(E),CT,$APP.F(H),$APP.Ji,yT(G,GT,"md"),DT,yT(y,HT,"space-between")],null);p=AT(p).length>0;q=AT(q).length>0;v=AT(v).length>0;x=AT(x).length>0;b=AT(b).length>0;A=$APP.M(a);A=$APP.D(A,$APP.U);A=$APP.Hg(A)?A:null;$APP.n(A)?c.setAttribute("aria-label",A):c.removeAttribute("aria-label");c.setAttribute("data-variant",$APP.Nh.g(a));c.setAttribute("data-orientation",$APP.Gk.g(a));c.setAttribute("data-breakpoint",
|
|
5
|
+
$APP.Ji.g(a));d.setAttribute("data-alignment",DT.g(a));e.setAttribute("data-has-brand",p?"true":"false");g.setAttribute("data-has-start",q?"true":"false");h.setAttribute("data-has-actions",v?"true":"false");l.setAttribute("data-has-toggle",x?"true":"false");return m.setAttribute("data-has-end",b?"true":"false")},JT=function(a,b){b.addEventListener("click",function(c){var d=$APP.k(a,"__xNavbarRefs"),e=c.target,g=$APP.n(e)?e.closest("a"):null;c=c instanceof PointerEvent?"pointer":c instanceof MouseEvent?
|
|
6
|
+
"pointer":c instanceof KeyboardEvent?"keyboard":"programmatic";$APP.n(g)&&(g=g.getAttribute("href"),zT(a,"navigate",{href:$APP.n(g)?g:"",source:c}));a:{d=AT($APP.k(d,"brand-slot"));for(g=0;;)if(g<d.length){var h=d[g];var l=$APP.C.i(h,e);h=l?l:(l=$APP.C.i(h.nodeType,Node.ELEMENT_NODE))?h.contains(e):l;if($APP.n(h)){e=!0;break a}g+=1}else{e=!1;break a}e=void 0}return e?zT(a,"brand-activate",{source:c}):null});b.addEventListener("focusin",function(c){c=c.target;if($APP.n($APP.n(c)?c.matches(":focus-visible"):
|
|
7
|
+
c)){if($APP.n($APP.k(a,"__xNavbarFocusVisible")))return null;a.__xNavbarFocusVisible=!0;a.setAttribute("data-focus-visible-within","true");return zT(a,"focus-visible",{})}return null});b.addEventListener("focusout",function(c){c=c.relatedTarget;if($APP.n($APP.n(c)?a.contains(c):c))return null;a.__xNavbarFocusVisible=!1;return a.removeAttribute("data-focus-visible-within")})},KT=function(a,b){function c(){return IT(a,b)}$APP.k(b,"brand-slot").addEventListener("slotchange",c);$APP.k(b,"start-slot").addEventListener("slotchange",
|
|
8
|
+
c);$APP.k(b,"default-slot").addEventListener("slotchange",c);$APP.k(b,"actions-slot").addEventListener("slotchange",c);$APP.k(b,"toggle-slot").addEventListener("slotchange",c);$APP.k(b,"end-slot").addEventListener("slotchange",c)},LT=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.F(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},MT=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,
|
|
9
|
+
enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return $APP.n(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},NT=function(a){LT(a,"sticky","sticky");LT(a,"elevated","elevated");MT(a,"label","label");MT(a,"variant","variant");MT(a,"orientation","orientation");MT(a,"alignment","alignment");MT(a,"breakpoint","breakpoint")},PT=function(){var a=class extends HTMLElement{};a.observedAttributes=OT;a.prototype.connectedCallback=function(){var b=
|
|
10
|
+
$APP.k(this,"__xNavbarRefs")==null;var c=$APP.k(this,"__xNavbarRefs");if(!$APP.n(c)){c=this.attachShadow({mode:"open"});var d=BT("style"),e=BT("nav"),g=BT("div"),h=BT("div"),l=BT("div"),m=BT("div"),p=BT("div"),q=BT("div"),v=BT("div"),x=BT("slot"),y=BT("slot"),A=BT("slot"),B=BT("slot"),E=BT("slot"),H=BT("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-navbar-height:4rem;--x-navbar-padding-inline:1rem;--x-navbar-gap:0.75rem;--x-navbar-bg:var(--x-color-surface,rgba(255,255,255,0.88));--x-navbar-color:var(--x-color-text,#0f172a);--x-navbar-border:var(--x-color-border,rgba(148,163,184,0.22));--x-navbar-shadow:var(--x-shadow-md,0 8px 24px rgba(15,23,42,0.08));--x-navbar-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-navbar-z-index:40;--x-navbar-radius:var(--x-radius-lg,1rem);--x-navbar-transition-duration:var(--x-transition-duration,180ms);--x-navbar-transition-easing:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-navbar-align-items:center;}@media (prefers-color-scheme: dark){:host{--x-navbar-bg:var(--x-color-surface,rgba(15,23,42,0.84));--x-navbar-color:var(--x-color-text,#e5e7eb);--x-navbar-border:var(--x-color-border,rgba(51,65,85,0.9));--x-navbar-shadow:var(--x-shadow-md,0 14px 36px rgba(0,0,0,0.35));--x-navbar-focus-ring:var(--x-color-focus-ring,#93c5fd);}}:host([hidden]){display:none;}[part\x3d'base']{display:block;color:var(--x-navbar-color);background:var(--x-navbar-bg);border:1px solid var(--x-navbar-border);border-radius:var(--x-navbar-radius);box-shadow:none;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:background var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),border-color var(--x-navbar-transition-duration) var(--x-navbar-transition-easing),box-shadow var(--x-navbar-transition-duration) var(--x-navbar-transition-easing);}:host([sticky]) [part\x3d'base']{position:sticky;top:0;z-index:var(--x-navbar-z-index);}:host([elevated]) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}[part\x3d'base'][data-variant\x3d'subtle']{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;}[part\x3d'base'][data-variant\x3d'inverted']{background:#0f172a;color:#f8fafc;border-color:#1e293b;}@media (prefers-color-scheme: dark){[part\x3d'base'][data-variant\x3d'inverted']{background:#020617;color:#f8fafc;border-color:#172033;}}[part\x3d'base'][data-variant\x3d'transparent']{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}[part\x3d'bar']{display:grid;grid-template-columns:auto auto 1fr auto auto auto;align-items:var(--x-navbar-align-items, center);gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}[part\x3d'bar'][data-alignment\x3d'start']{justify-items:start;}[part\x3d'bar'][data-alignment\x3d'center']{justify-items:center;}[part\x3d'bar'][data-alignment\x3d'space-between']{justify-items:stretch;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'bar']{grid-template-columns:1fr;grid-auto-rows:auto;align-items:var(--x-navbar-align-items, center);padding-block:0.75rem;}[part\x3d'brand'],[part\x3d'start'],[part\x3d'nav'],[part\x3d'actions'],[part\x3d'toggle'],[part\x3d'end']{display:flex;align-items:inherit;min-inline-size:0;}[part\x3d'nav']{gap:var(--x-navbar-gap);}[part\x3d'actions'],[part\x3d'end'],[part\x3d'toggle']{justify-self:end;}[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'actions'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'end'],[part\x3d'base'][data-orientation\x3d'vertical'] [part\x3d'toggle']{justify-self:start;}[part\x3d'brand'][data-has-brand\x3d'false'],[part\x3d'start'][data-has-start\x3d'false'],[part\x3d'actions'][data-has-actions\x3d'false'],[part\x3d'toggle'][data-has-toggle\x3d'false'],[part\x3d'end'][data-has-end\x3d'false']{display:none;}slot[name\x3d'brand'],slot[name\x3d'start'],slot[name\x3d'actions'],slot[name\x3d'toggle'],slot[name\x3d'end']{display:contents;}slot{display:contents;}:host(:focus-within) [part\x3d'base']{box-shadow:var(--x-navbar-shadow);}:host([data-focus-visible-within\x3d'true']) [part\x3d'base']{box-shadow:0 0 0 2px var(--x-navbar-focus-ring), var(--x-navbar-shadow);}@media (max-width:640px){:host(:not([orientation\x3dvertical])) [part\x3d'bar']{display:flex;align-items:center;gap:var(--x-navbar-gap);min-block-size:var(--x-navbar-height);padding-inline:var(--x-navbar-padding-inline);}:host(:not([orientation\x3dvertical])) [part\x3d'brand']{flex:1;}:host(:not([orientation\x3dvertical])) [part\x3d'start'],:host(:not([orientation\x3dvertical])) [part\x3d'nav'],:host(:not([orientation\x3dvertical])) [part\x3d'actions'],:host(:not([orientation\x3dvertical])) [part\x3d'end']{display:none;}}@media (prefers-reduced-motion: reduce){[part\x3d'base']{transition:none;}}";
|
|
11
|
+
e.setAttribute("part","base");g.setAttribute("part","bar");h.setAttribute("part","brand");l.setAttribute("part","start");m.setAttribute("part","nav");p.setAttribute("part","actions");q.setAttribute("part","toggle");v.setAttribute("part","end");x.setAttribute("name","brand");y.setAttribute("name","start");B.setAttribute("name","actions");E.setAttribute("name","toggle");H.setAttribute("name","end");h.appendChild(x);l.appendChild(y);m.appendChild(A);p.appendChild(B);q.appendChild(E);v.appendChild(H);
|
|
12
|
+
g.appendChild(h);g.appendChild(l);g.appendChild(m);g.appendChild(p);g.appendChild(q);g.appendChild(v);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xNavbarRefs=c={"end-slot":H,bar:g,start:l,toggle:q,actions:p,brand:h,"default-slot":A,root:c,"brand-slot":x,"start-slot":y,"actions-slot":B,"toggle-slot":E,end:v,base:e,nav:m}}b&&(this.__xNavbarFocusVisible=!1,JT(this,$APP.k(c,"base")),KT(this,c));return IT(this,c)};a.prototype.disconnectedCallback=function(){this.__xNavbarFocusVisible=!1};
|
|
13
|
+
a.prototype.attributeChangedCallback=function(){var b=$APP.k(this,"__xNavbarRefs");return $APP.n(b)?IT(this,b):null};NT(a.prototype);return a},QT=function(){$APP.n(customElements.get("x-navbar"))||customElements.define("x-navbar",PT());return null},CT=new $APP.K(null,"elevated","elevated",-7323953),DT=new $APP.K(null,"alignment","alignment",1040093386);var ET=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),FT=new $APP.S(null,new $APP.R(null,4,["transparent",null,"inverted",null,"subtle",null,"default",null],null),null),GT=new $APP.S(null,new $APP.R(null,4,["md",null,"lg",null,"xl",null,"sm",null],null),null),HT=new $APP.S(null,new $APP.R(null,3,["center",null,"start",null,"space-between",null],null),null),OT="label orientation variant sticky elevated breakpoint alignment".split(" ");
|
|
14
|
+
$APP.Pd(["focus-visible",new $APP.R(null,1,[$APP.yj,$APP.Qd],null),"navigate",new $APP.R(null,1,[$APP.yj,new $APP.R(null,2,[$APP.im,$APP.X,$APP.Hk,$APP.X],null)],null),"brand-activate",new $APP.R(null,1,[$APP.yj,new $APP.R(null,1,[$APP.Hk,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_navbar.init",QT);export const init=QT;
|
package/dist/x-neural-glow.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
Math.max(1,a))}return 4},
|
|
4
|
-
|
|
5
|
-
$APP.
|
|
6
|
-
a.getAttribute("opacity"),a.getAttribute("orb-count"),a.getAttribute("orb-size"),a.getAttribute("color-background"),a.getAttribute("interactive"),a.getAttribute("color-primary"),a.getAttribute("connection-distance")]);var b=$APP.
|
|
7
|
-
|
|
8
|
-
"u_resolution"),g,h);b.uniform1f($APP.
|
|
9
|
-
"u_opacity"),$APP.
|
|
10
|
-
"__xNeuralLastScroll");a.__xNeuralLastScroll=g;h!=null&&(a.__xNeuralImpulse=Math.min(1,$APP.
|
|
11
|
-
|
|
12
|
-
b);a.__xNeuralHandlers=null}},
|
|
13
|
-
""+$APP.
|
|
14
|
-
this.setAttribute("color-background",""+$APP.
|
|
15
|
-
""+$APP.
|
|
16
|
-
""+$APP.
|
|
17
|
-
configurable:!0})},
|
|
18
|
-
b:{d=e.getContext("webgl",{alpha:!0,premultipliedAlpha:!1});d=$APP.
|
|
19
|
-
d.getProgramInfoLog(
|
|
20
|
-
null));for(var m=null,p=0,q=0;;)if(q<p){var
|
|
21
|
-
d.ONE_MINUS_SRC_ALPHA);break b}}}d=null}this.__xNeuralRefs=new $APP.
|
|
22
|
-
|
|
23
|
-
e))if(e>g)for(e-=g,g=0;;)if(g<e){var
|
|
24
|
-
-2128794414),
|
|
25
|
-
new $APP.K(null,"interactive-raw","interactive-raw",1874525367),
|
|
26
|
-
"color-primary",1415907910)
|
|
27
|
-
$APP.
|
|
28
|
-
[$APP.Z,$APP.X],null),new $APP.
|
|
29
|
-
var
|
|
30
|
-
$APP.
|
|
31
|
-
$APP.
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
$APP.
|
|
35
|
-
m,c.height=h,d.viewport(0,0,m,h);g>0&&
|
|
2
|
+
var BD=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?15:Math.min(50,Math.max(3,a))}return 15},CD=function(a,b){return typeof a==="string"&&a.trim().length>0?a.trim():b},DD=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?1:Math.min(5,Math.max(.1,a))}return 1},ED=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?4:Math.min(10,
|
|
3
|
+
Math.max(1,a))}return 4},FD=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.15:Math.min(.5,Math.max(.05,a))}return.15},GD=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?40:Math.min(200,Math.max(10,a))}return 40},HD=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.8:Math.min(1,Math.max(0,a))):.8},ID=function(a){return a==null?!0:$APP.N("false",a.trim().toLowerCase())},
|
|
4
|
+
JD=function(a,b,c){return a+(b-a)*c},KD=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},MD=function(a,b){a=$APP.k(a,"__xNeuralColorCache");var c=$APP.k(a,b);if($APP.n(c))return c;LD.fillStyle="#000000";LD.fillStyle=b;c=LD.fillStyle;if(typeof c==="string"&&$APP.C.i(c[0],"#")){var d=c.substring(1);c=parseInt(d.substring(0,2),16);var e=parseInt(d.substring(2,4),16);d=parseInt(d.substring(4,6),16);c=[c/255,e/255,d/255]}else d=c.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/),
|
|
5
|
+
$APP.n(d)?(c=parseInt(d[1],10),e=parseInt(d[2],10),d=parseInt(d[3],10),c=[c/255,e/255,d/255]):c=[0,0,0];return a[b]=c},ND=function(a,b,c){b=a.createShader(b);a.shaderSource(b,c);a.compileShader(b);if($APP.n(a.getShaderParameter(b,a.COMPILE_STATUS)))return b;console.warn("x-neural-glow shader error:",a.getShaderInfoLog(b));a.deleteShader(b);return null},fE=function(a){a=$APP.xf([OD,PD,QD,RD,SD,TD,UD,VD,WD,XD],[a.getAttribute("rest-rate"),a.getAttribute("pulse-speed"),a.getAttribute("color-secondary"),
|
|
6
|
+
a.getAttribute("opacity"),a.getAttribute("orb-count"),a.getAttribute("orb-size"),a.getAttribute("color-background"),a.getAttribute("interactive"),a.getAttribute("color-primary"),a.getAttribute("connection-distance")]);var b=$APP.M(a);a=$APP.D(b,WD);var c=$APP.D(b,XD),d=$APP.D(b,OD),e=$APP.D(b,PD),g=$APP.D(b,RD),h=$APP.D(b,QD),l=$APP.D(b,SD),m=$APP.D(b,TD),p=$APP.D(b,UD);b=$APP.D(b,VD);return $APP.xf([YD,ZD,$D,aE,$APP.Wk,bE,$APP.Xh,cE,dE,eE],[GD(m),BD(l),CD(a,"#4f8bff"),CD(h,"#00e5cc"),ID(b),FD(c),
|
|
7
|
+
HD(g),DD(e),CD(p,"#050a18"),ED(d)])},gE=function(a,b,c){return Math.sin(a*1.7+c*.3)*Math.cos(b*2.3+c*.5)*.5+Math.sin(a*3.1-c*.7)*Math.cos(b*1.3+c*.2)*.25+Math.sin(a*5.3+c*.4)*Math.cos(b*4.7-c*.6)*.125},iE=function(a,b,c){var d=$APP.k(a,"__xNeuralUniforms"),e=hE.g($APP.k(a,"__xNeuralRefs")),g=e.width,h=e.height,l=$APP.k(a,"__xNeuralTime"),m=$APP.k(a,"__xNeuralActivity");e=$APP.k(a,"__xNeuralOrbPos");var p=$APP.k(a,"__xNeuralOrbPhases"),q=ZD.g(c),v=MD(a,$D.g(c)),x=MD(a,aE.g(c));a=MD(a,dE.g(c));b.uniform2f($APP.k(d,
|
|
8
|
+
"u_resolution"),g,h);b.uniform1f($APP.k(d,"u_time"),l);b.uniform1f($APP.k(d,"u_activity"),m);b.uniform1f($APP.k(d,"u_pulse_speed"),cE.g(c));b.uniform1f($APP.k(d,"u_rest_rate"),eE.g(c));b.uniform1i($APP.k(d,"u_orb_count"),q);b.uniform1f($APP.k(d,"u_orb_size"),YD.g(c));b.uniform1f($APP.k(d,"u_connection_dist"),bE.g(c));b.uniform3f($APP.k(d,"u_color_primary"),v[0],v[1],v[2]);b.uniform3f($APP.k(d,"u_color_secondary"),x[0],x[1],x[2]);b.uniform3f($APP.k(d,"u_color_background"),a[0],a[1],a[2]);b.uniform1f($APP.k(d,
|
|
9
|
+
"u_opacity"),$APP.Xh.g(c));for(c=0;;)if(c<q)g=e[c],b.uniform2f($APP.k(d,"u_orb_positions["+$APP.T.g(c)+"]"),g[0],g[1]),b.uniform1f($APP.k(d,"u_orb_phases["+$APP.T.g(c)+"]"),p[c]),c+=1;else break},kE=function(a){a.__xNeuralTime=0;$APP.ia(a,"__xNeuralLastFrame",performance.now());a.__xNeuralActivity=0;a.__xNeuralImpulse=0;$APP.ia(a,"__xNeuralRaf",requestAnimationFrame(function(){return jE(a)}))},lE=function(a){if($APP.n($APP.Wk.g($APP.k(a,"__xNeuralModel")))){var b=function(){var g=window.scrollY,h=
|
|
10
|
+
$APP.k(a,"__xNeuralLastScroll");a.__xNeuralLastScroll=g;h!=null&&(a.__xNeuralImpulse=Math.min(1,$APP.k(a,"__xNeuralImpulse")+Math.min(1,Math.abs(g-h)/100)));return null},c=function(g){var h=$APP.k(a,"__xNeuralLastPtr"),l=g.clientX;g=g.clientY;if($APP.n(h)){var m=l-$APP.k(h,"x"),p=g-$APP.k(h,"y");a.__xNeuralImpulse=Math.min(1,$APP.k(a,"__xNeuralImpulse")+Math.min(1,Math.sqrt(m*m+p*p)/50));h.x=l;h.y=g}else a.__xNeuralLastPtr={x:l,y:g};return null},d=function(){a.__xNeuralImpulse=Math.min(1,$APP.k(a,
|
|
11
|
+
"__xNeuralImpulse")+.3);return null},e={scroll:b,pointer:c,key:d};window.addEventListener("scroll",b,{passive:!0});window.addEventListener("pointermove",c,{passive:!0});window.addEventListener("keydown",d,{passive:!0});a.__xNeuralHandlers=e}return null},mE=function(a){var b=$APP.k(a,"__xNeuralHandlers");if($APP.n(b)){var c=$APP.k(b,"scroll");$APP.n(c)&&window.removeEventListener("scroll",c);c=$APP.k(b,"pointer");$APP.n(c)&&window.removeEventListener("pointermove",c);b=$APP.k(b,"key");$APP.n(b)&&window.removeEventListener("keydown",
|
|
12
|
+
b);a.__xNeuralHandlers=null}},nE=function(a){Object.defineProperty(a,"orbCount",{get:function(){return BD(this.getAttribute("orb-count"))},set:function(b){return b==null?this.removeAttribute("orb-count"):this.setAttribute("orb-count",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"colorPrimary",{get:function(){var b=this.getAttribute("color-primary");return CD(b,"#4f8bff")},set:function(b){return b==null?this.removeAttribute("color-primary"):this.setAttribute("color-primary",
|
|
13
|
+
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"colorSecondary",{get:function(){var b=this.getAttribute("color-secondary");return CD(b,"#00e5cc")},set:function(b){return b==null?this.removeAttribute("color-secondary"):this.setAttribute("color-secondary",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"colorBackground",{get:function(){var b=this.getAttribute("color-background");return CD(b,"#050a18")},set:function(b){return b==null?this.removeAttribute("color-background"):
|
|
14
|
+
this.setAttribute("color-background",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"pulseSpeed",{get:function(){return DD(this.getAttribute("pulse-speed"))},set:function(b){return b==null?this.removeAttribute("pulse-speed"):this.setAttribute("pulse-speed",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"restRate",{get:function(){return ED(this.getAttribute("rest-rate"))},set:function(b){return b==null?this.removeAttribute("rest-rate"):this.setAttribute("rest-rate",
|
|
15
|
+
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"connectionDistance",{get:function(){return FD(this.getAttribute("connection-distance"))},set:function(b){return b==null?this.removeAttribute("connection-distance"):this.setAttribute("connection-distance",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"orbSize",{get:function(){return GD(this.getAttribute("orb-size"))},set:function(b){return b==null?this.removeAttribute("orb-size"):this.setAttribute("orb-size",
|
|
16
|
+
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"opacity",{get:function(){return HD(this.getAttribute("opacity"))},set:function(b){return b==null?this.removeAttribute("opacity"):this.setAttribute("opacity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"interactive",{get:function(){return ID(this.getAttribute("interactive"))},set:function(b){return $APP.n(b)?this.removeAttribute("interactive"):this.setAttribute("interactive","false")},enumerable:!0,
|
|
17
|
+
configurable:!0})},sE=function(){var a=class extends HTMLElement{};a.observedAttributes=oE;a.prototype.connectedCallback=function(){var b=fE(this);this.__xNeuralModel=b;this.__xNeuralColorCache={};this.__xNeuralDriftTime=0;this.__xNeuralLastScroll=this.__xNeuralLastPtr=null;if(!$APP.n($APP.k(this,"__xNeuralRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("canvas");d.textContent=pE;e.setAttribute("part","canvas");c.appendChild(d);c.appendChild(e);
|
|
18
|
+
b:{d=e.getContext("webgl",{alpha:!0,premultipliedAlpha:!1});d=$APP.n(d)?d:e.getContext("experimental-webgl",{alpha:!0,premultipliedAlpha:!1});if($APP.n(d)){var g=ND(d,d.VERTEX_SHADER,"attribute vec2 a_position;\nvoid main() {\n gl_Position \x3d vec4(a_position, 0.0, 1.0);\n}"),h=ND(d,d.FRAGMENT_SHADER,qE);if($APP.n($APP.n(g)?h:g)){var l=d.createProgram();d.attachShader(l,g);d.attachShader(l,h);d.linkProgram(l);$APP.n(d.getProgramParameter(l,d.LINK_STATUS))?g=l:(console.warn("x-neural-glow link error:",
|
|
19
|
+
d.getProgramInfoLog(l)),d.deleteProgram(l),g=null);if($APP.n(g)){d.useProgram(g);h=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,h);d.bufferData(d.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),d.STATIC_DRAW);h=d.getAttribLocation(g,"a_position");d.enableVertexAttribArray(h);d.vertexAttribPointer(h,2,d.FLOAT,!1,0,0);h={};l=$APP.t(new $APP.O(null,12,5,$APP.P,"u_resolution u_time u_activity u_pulse_speed u_rest_rate u_orb_count u_orb_size u_connection_dist u_color_primary u_color_secondary u_color_background u_opacity".split(" "),
|
|
20
|
+
null));for(var m=null,p=0,q=0;;)if(q<p){var v=m.G(null,q);h[v]=d.getUniformLocation(g,v);q+=1}else if(l=$APP.t(l))m=l,$APP.Nc(m)?(l=$APP.xb(m),q=$APP.yb(m),m=l,p=$APP.z(l),l=q):(l=$APP.u(m),h[l]=d.getUniformLocation(g,l),l=$APP.w(m),m=null,p=0),q=0;else break;for(l=0;;)if(l<50)m="u_orb_positions["+$APP.T.g(l)+"]",p="u_orb_phases["+$APP.T.g(l)+"]",h[m]=d.getUniformLocation(g,m),h[p]=d.getUniformLocation(g,p),l+=1;else break;this.__xNeuralUniforms=h;this.__xNeuralProgram=g;d.enable(d.BLEND);d.blendFunc(d.SRC_ALPHA,
|
|
21
|
+
d.ONE_MINUS_SRC_ALPHA);break b}}}d=null}this.__xNeuralRefs=new $APP.R(null,3,[$APP.ji,c,hE,e,rE,d],null)}b=ZD.g(b);c=[];for(e=0;;)if(e<b)c.push([Math.random(),Math.random()]),e+=1;else break;e=[];d=2*Math.PI;for(g=0;;)if(g<b)e.push(Math.random()*d),g+=1;else break;d=[];for(g=0;;)if(g<b)h=c[g],d.push([h[0],h[1]]),g+=1;else break;this.__xNeuralOrbBase=c;this.__xNeuralOrbPhases=e;this.__xNeuralOrbPos=d;this.setAttribute("aria-hidden","true");this.setAttribute("role","presentation");mE(this);lE(this);
|
|
22
|
+
kE(this);return null};a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xNeuralRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xNeuralRaf=null);mE(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){if($APP.N(c,d)&&(this.__xNeuralModel=b=fE(this),this.__xNeuralColorCache={},$APP.n($APP.k(this,"__xNeuralRefs")))){var e=ZD.g(b);b=$APP.k(this,"__xNeuralOrbBase");c=$APP.k(this,"__xNeuralOrbPhases");d=$APP.k(this,"__xNeuralOrbPos");var g=b.length,h=2*Math.PI;if($APP.N(g,
|
|
23
|
+
e))if(e>g)for(e-=g,g=0;;)if(g<e){var l=Math.random(),m=Math.random();b.push([l,m]);d.push([l,m]);c.push(Math.random()*h);g+=1}else break;else b.length=e,d.length=e,c.length=e;mE(this);return $APP.n(this.isConnected)?lE(this):null}return null};nE(a.prototype);return a},tE=function(){$APP.n(customElements.get("x-neural-glow"))||customElements.define("x-neural-glow",sE());return null},RD=new $APP.K(null,"opacity-raw","opacity-raw",-1373906448),bE=new $APP.K(null,"connection-distance","connection-distance",
|
|
24
|
+
-2128794414),PD=new $APP.K(null,"pulse-speed-raw","pulse-speed-raw",-665433726),WD=new $APP.K(null,"color-primary-raw","color-primary-raw",392476156),dE=new $APP.K(null,"color-background","color-background",1347240536),cE=new $APP.K(null,"pulse-speed","pulse-speed",828613109),QD=new $APP.K(null,"color-secondary-raw","color-secondary-raw",1212293328),SD=new $APP.K(null,"orb-count-raw","orb-count-raw",-930142286),XD=new $APP.K(null,"connection-distance-raw","connection-distance-raw",1368898143),VD=
|
|
25
|
+
new $APP.K(null,"interactive-raw","interactive-raw",1874525367),eE=new $APP.K(null,"rest-rate","rest-rate",1350607737),aE=new $APP.K(null,"color-secondary","color-secondary",-556141879),rE=new $APP.K(null,"gl","gl",-246422634),YD=new $APP.K(null,"orb-size","orb-size",83267072),TD=new $APP.K(null,"orb-size-raw","orb-size-raw",925656307),ZD=new $APP.K(null,"orb-count","orb-count",1055126048),UD=new $APP.K(null,"color-background-raw","color-background-raw",2063778805),$D=new $APP.K(null,"color-primary",
|
|
26
|
+
"color-primary",1415907910),hE=new $APP.K(null,"canvas","canvas",-1798817489),OD=new $APP.K(null,"rest-rate-raw","rest-rate-raw",-206808800);var oE="orb-count color-primary color-secondary color-background pulse-speed rest-rate connection-distance orb-size opacity interactive".split(" ");
|
|
27
|
+
$APP.xf([new $APP.K(null,"colorBackground","colorBackground",-167638842),$APP.Mi,new $APP.K(null,"orbCount","orbCount",-2006864213),new $APP.K(null,"restRate","restRate",-272422548),new $APP.K(null,"colorPrimary","colorPrimary",-611817233),new $APP.K(null,"orbSize","orbSize",1744279571),$APP.Xh,new $APP.K(null,"colorSecondary","colorSecondary",1906906102),new $APP.K(null,"pulseSpeed","pulseSpeed",1297932542),new $APP.K(null,"connectionDistance","connectionDistance",1241773439)],[new $APP.R(null,1,
|
|
28
|
+
[$APP.Z,$APP.X],null),new $APP.R(null,1,[$APP.Z,$APP.Bj],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.X],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.X],null),new $APP.R(null,1,[$APP.Z,$APP.V],null),new $APP.R(null,1,[$APP.Z,$APP.V],null)]);
|
|
29
|
+
var qE="precision mediump float;\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform float u_activity;\nuniform float u_pulse_speed;\nuniform float u_rest_rate;\nuniform int u_orb_count;\nuniform vec2 u_orb_positions["+$APP.T.g(50)+"];\nuniform float u_orb_phases["+$APP.T.g(50)+"];\nuniform float u_orb_size;\nuniform float u_connection_dist;\nuniform vec3 u_color_primary;\nuniform vec3 u_color_secondary;\nuniform vec3 u_color_background;\nuniform float u_opacity;\n\nfloat distToSegment(vec2 p, vec2 a, vec2 b) {\n vec2 pa \x3d p - a;\n vec2 ba \x3d b - a;\n float t \x3d clamp(dot(pa, ba) / dot(ba, ba), 0.0, 1.0);\n return length(pa - ba * t);\n}\n\nvoid main() {\n vec2 uv \x3d gl_FragCoord.xy / u_resolution;\n float aspect \x3d u_resolution.x / u_resolution.y;\n\n // Auto-detect light vs dark background\n float bg_lum \x3d dot(u_color_background, vec3(0.2126, 0.7152, 0.0722));\n float is_light \x3d smoothstep(0.3, 0.6, bg_lum);\n\n // Pulse speed interpolates between rest and active rate\n float active_speed \x3d u_pulse_speed * 3.0;\n float speed \x3d mix(6.2831853 / u_rest_rate, active_speed, u_activity);\n\n // Start with background\n vec3 color \x3d u_color_background;\n\n // Orb glow layer\n float radius \x3d u_orb_size / min(u_resolution.x, u_resolution.y);\n float softness \x3d 2.5;\n\n for (int i \x3d 0; i \x3c "+
|
|
30
|
+
$APP.T.g(50)+"; i++) {\n if (i \x3e\x3d u_orb_count) break;\n\n vec2 orbPos \x3d u_orb_positions[i];\n vec2 diff \x3d uv - orbPos;\n diff.x *\x3d aspect;\n\n float dist \x3d length(diff);\n float pulse \x3d 0.5 + 0.5 * sin(u_time * speed + u_orb_phases[i]);\n float glow_strength \x3d (0.4 + 0.6 * pulse) * (0.5 + 0.5 * u_activity + 0.5);\n float glow \x3d exp(-dist * dist / (radius * radius * softness)) * glow_strength;\n\n // Alternate primary/secondary by index\n vec3 orb_color \x3d mix(u_color_primary, u_color_secondary, step(1.0, mod(float(i), 2.0)));\n vec3 additive \x3d color + orb_color * glow;\n vec3 multiply \x3d color * mix(vec3(1.0), orb_color, glow);\n color \x3d mix(additive, multiply, is_light);\n }\n\n // Connection line layer\n float line_width \x3d 0.003;\n for (int i \x3d 0; i \x3c "+
|
|
31
|
+
$APP.T.g(50)+"; i++) {\n if (i \x3e\x3d u_orb_count) break;\n for (int j \x3d 0; j \x3c "+$APP.T.g(50)+"; j++) {\n if (j \x3e\x3d u_orb_count) break;\n if (j \x3c\x3d i) continue;\n\n vec2 pi_pos \x3d u_orb_positions[i];\n vec2 pj_pos \x3d u_orb_positions[j];\n\n vec2 diff_ij \x3d pi_pos - pj_pos;\n diff_ij.x *\x3d aspect;\n float orb_dist \x3d length(diff_ij);\n\n if (orb_dist \x3c u_connection_dist) {\n vec2 uv_a \x3d vec2(uv.x * aspect, uv.y);\n vec2 pa \x3d vec2(pi_pos.x * aspect, pi_pos.y);\n vec2 pb \x3d vec2(pj_pos.x * aspect, pj_pos.y);\n\n float d \x3d distToSegment(uv_a, pa, pb);\n float fade \x3d 1.0 - (orb_dist / u_connection_dist);\n float avg_phase \x3d (u_orb_phases[i] + u_orb_phases[j]) * 0.5;\n float line_pulse \x3d 0.3 + 0.7 * sin(u_time * speed + avg_phase);\n float line_glow \x3d exp(-d * d / (line_width * line_width)) * fade * line_pulse;\n line_glow *\x3d (0.3 + 0.7 * u_activity + 0.3);\n\n vec3 line_color \x3d mix(u_color_primary, u_color_secondary, 0.5);\n float line_str \x3d line_glow * 0.4;\n vec3 line_add \x3d color + line_color * line_str;\n vec3 line_mul \x3d color * mix(vec3(1.0), line_color, line_str);\n color \x3d mix(line_add, line_mul, is_light);\n }\n }\n }\n\n gl_FragColor \x3d vec4(color, u_opacity);\n}";var pE=":host{display:block;position:relative;width:100%;height:100%;min-height:200px;overflow:hidden;z-index:var("+$APP.T.g("--x-neural-glow-z-index")+",0);inset:var("+$APP.T.g("--x-neural-glow-inset")+",auto);}canvas{display:block;width:100%;height:100%;opacity:var("+$APP.T.g("--x-neural-glow-opacity")+",0.8);mix-blend-mode:var("+$APP.T.g("--x-neural-glow-blend-mode")+",normal);}@media(prefers-reduced-motion:reduce){canvas{opacity:var("+$APP.T.g("--x-neural-glow-opacity")+",0.6);}}",LD,uE=document.createElement("canvas");
|
|
32
|
+
uE.width=1;uE.height=1;LD=uE.getContext("2d");
|
|
33
|
+
var jE=function jE(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xNeuralRefs"),d=rE.g(c);if($APP.n(d)){c=hE.g(c);var e=$APP.k(a,"__xNeuralModel"),g=performance.now(),h=Math.min((g-$APP.k(a,"__xNeuralLastFrame"))/1E3,.1);a.__xNeuralLastFrame=g;KD()||(a.__xNeuralTime=$APP.k(a,"__xNeuralTime")+h);g=$APP.k(a,"__xNeuralImpulse");a.__xNeuralActivity=JD($APP.k(a,"__xNeuralActivity"),g>.01?1:0,Math.min(1,(g>.01?8:2)*h));a.__xNeuralImpulse=g*Math.max(0,1-5*h);if(!KD()){g=$APP.k(a,"__xNeuralOrbBase");var l=
|
|
34
|
+
$APP.k(a,"__xNeuralOrbPos"),m=ZD.g(e);h=$APP.k(a,"__xNeuralDriftTime")+h*(.3+.7*$APP.k(a,"__xNeuralActivity"));a.__xNeuralDriftTime=h;for(var p=0;;)if(p<m){var q=g[p],v=q[0],x=q[1];q=v*3+p*1.37;var y=x*3+p*2.41;x=Math.min(1,Math.max(0,x+gE(y+100,q,h)*.08));var A=l[p];A[0]=Math.min(1,Math.max(0,v+gE(q,y,h)*.08));A[1]=x;p+=1}else break}h=Math.min(2,devicePixelRatio);g=a.clientWidth;l=a.clientHeight;m=Math.max(1,Math.floor(g*h));h=Math.max(1,Math.floor(l*h));if($APP.N(c.width,m)||$APP.N(c.height,h))c.width=
|
|
35
|
+
m,c.height=h,d.viewport(0,0,m,h);g>0&&l>0&&(iE(a,d,e),d.drawArrays(d.TRIANGLE_STRIP,0,4))}$APP.ia(a,"__xNeuralRaf",requestAnimationFrame(function(){return jE.g?jE.g(a):jE.call(null,a)}))}return null};$APP.fa("baredom.exports.x_neural_glow.init",tE);export const init=tE;
|