@ssgoi/core 7.1.3-beta.1 → 7.1.3-beta.3

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/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var xe=Object.defineProperty;var Ce=(t,e,n)=>e in t?xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var I=(t,e,n)=>Ce(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index-CtyacfH7.cjs"),b=require("./multi-animation-hDUcfD7W.cjs"),S=require("./provider-D9Q2URox.cjs"),D=require("./page-motion-DF3fFkOw.cjs");class Kt{constructor(e){I(this,"durationSec");this.durationSec=Math.max(1/60,e.durationSec)}step(e,n,o){const i=n-e.position;if(i===0)return e;const r=Math.sign(i),c=Math.abs(i)/this.durationSec,s=r*c*o,l=e.position+s;return(r>0?l>=n:l<=n)?{position:n,velocity:0}:{position:l,velocity:r*c}}isSettled(e,n){return Math.abs(e.position-n)<S.POSITION_THRESHOLD}}function St(t,e){function n(r){let c=0,s=0;const l=r.offsetWidth,a=r.offsetHeight;let d=r;for(;d;)c+=d.offsetTop,s+=d.offsetLeft,d=d.offsetParent;return c-=window.scrollY,s-=window.scrollX,{top:c,left:s,width:l,height:a}}const o=n(t),i=n(e);return new DOMRect(i.left-o.left,i.top-o.top,i.width,i.height)}function Y(t,e){const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=(s,l)=>l>0&&Math.abs(s-l)>.5?s/l:1,r=i(n.width,t.offsetWidth),c=i(n.height,t.offsetHeight);return new DOMRect((o.left-n.left)/r,(o.top-n.top)/c,o.width/r,o.height/c)}function L(t,e){const{scrollingElement:n,positionedParent:o}=t,i=n!==o&&n.contains(o)?St(n,o).top:0;return{top:t[e].scroll.y,left:0,width:n.clientWidth,height:n.clientHeight-i}}function Jt(t,e){const{scrollingElement:n,positionedParent:o}=t,i=n!==o&&n.contains(o)?St(n,o).top:0;return{top:t[e].scroll.y-i,height:n.clientHeight}}const vt=8,At={spring:{stiffness:600,damping:40,doubleSpring:1.2}};function Ee({direction:t}){const e=t==="forward"?vt:-vt;return{out:{willChange:"transform, opacity",startStyle:{},animate:n=>({opacity:`${1-n}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${e}px, 0, 0)`,opacity:"0"},animate:n=>({transform:`translate3d(${e*(1-n)}px, 0, 0)`,opacity:`${n}`})}}}function $e(){return{outPhysics:At,inPhysics:At,composition:{mode:"parallel",startAt:[0,0]},build:Ee}}const Pt=30,ve={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},Ae={spring:{stiffness:180,damping:34,restDelta:.1,restSpeed:.1}};function Pe({direction:t}){const e=t==="forward"?1:-1,n=-Pt*e,o=Pt*e;return{out:{willChange:"transform, opacity",startStyle:{},animate:i=>({transform:`translate3d(${n*i}px, 0, 0)`,opacity:`${1-i}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${o}px, 0, 0)`,opacity:"0"},animate:i=>({transform:`translate3d(${o*(1-i)}px, 0, 0)`,opacity:`${i}`})}}}function Ie(){return{outPhysics:ve,inPhysics:Ae,composition:{mode:"sequence"},build:Pe}}const Re={snappy:$e(),fluid:Ie()},It=8,Oe={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},Me={spring:{stiffness:180,damping:34,restDelta:.1,restSpeed:.1}};function _e({direction:t}){const e=t==="forward"?1:-1,n=-It*e,o=It*e;return{out:{willChange:"transform, opacity",startStyle:{},animate:i=>({transform:`translate3d(0, ${n*i}px, 0)`,opacity:`${1-i}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(0, ${o}px, 0)`,opacity:"0"},animate:i=>({transform:`translate3d(0, ${o*(1-i)}px, 0)`,opacity:`${i}`})}}}function Te(){return{outPhysics:Oe,inPhysics:Me,composition:{mode:"sequence"},build:_e}}const Fe=40,ke={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},De={spring:{stiffness:400,damping:30,doubleSpring:1.2,restDelta:.1,restSpeed:.1}};function Ye(t){const e=Fe;return{out:{willChange:"opacity",startStyle:{},animate:n=>({opacity:`${1-n}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(0, ${e}px, 0)`,opacity:"0"},animate:n=>({transform:`translate3d(0, ${e*(1-n)}px, 0)`,opacity:`${n}`})}}}function Le(){return{outPhysics:ke,inPhysics:De,composition:{mode:"parallel",startAt:[0,0]},build:Ye}}const Rt=Te(),He={snappy:Rt,directional:Rt,"non-directional":Le()},Ot={spring:{stiffness:280,damping:30,restDelta:.1,restSpeed:.1}},tt=.1,et=1/3,Mt=t=>Math.max(0,Math.min(1,t));function We({direction:t}){const e=t==="forward"?1:-1,n=1-e*tt;return{out:{willChange:"transform, opacity",startStyle:{},animate:o=>({transform:`scale(${1+e*o*tt})`,opacity:`${Mt(1-o/et)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`scale(${n})`,opacity:"0"},animate:o=>({transform:`scale(${n+e*o*tt})`,opacity:`${Mt((o-et)/(1-et))}`})}}}function Ne(){return{outPhysics:Ot,inPhysics:Ot,composition:{mode:"parallel"},build:We}}const _t={spring:{stiffness:280,damping:30,restDelta:.1,restSpeed:.1}},nt=.1,ot=1/3,Tt=t=>Math.max(0,Math.min(1,t));function ze(){return{out:{willChange:"opacity",startStyle:{},animate:t=>({opacity:`${Tt(1-t/ot)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`scale(${1-nt})`,opacity:"0"},animate:t=>({transform:`scale(${1-nt+t*nt})`,opacity:`${Tt((t-ot)/(1-ot))}`})}}}function Xe(){return{outPhysics:_t,inPhysics:_t,composition:{mode:"parallel"},build:ze}}const Ft=Ne(),Ve={snappy:Ft,directional:Ft,"non-directional":Xe()},Be={x:Re,y:He,z:Ve};function Ue(t,e){const n=Be[t];return n[e]??n.snappy}const Ze="x",je="snappy";function kt(t,e){t.style.willChange=e.willChange,t.style.backfaceVisibility="hidden",t.style.contain="layout paint";for(const[n,o]of Object.entries(e.startStyle))t.style[n]=o}function Qt(t){t.style.willChange="auto",t.style.backfaceVisibility="",t.style.contain="",t.style.transform="",t.style.opacity="",t.style.clipPath=""}function Ge(t){Qt(t),t.style.pointerEvents=""}const qe=(t={})=>{const e=t.type??Ze,n=t.feel??je,o=Ue(e,n),i=r=>{const c=o.build({direction:r});return{prepare:({from:s,to:l})=>(s.then(a=>{kt(a,c.out),a.style.pointerEvents="none"}),l.then(a=>{kt(a,c.in)}),{}),animation:({from:s,to:l,context:a})=>{if(e==="z"){const y=L(a,"from"),u=L(a,"to");s.style.clipPath=`inset(${y.top}px 0 calc(100% - ${y.top+y.height}px) 0)`,l.style.clipPath=`inset(${u.top}px 0 calc(100% - ${u.top+u.height}px) 0)`}const d=new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(o.outPhysics),style:y=>c.out.animate(y),onComplete:()=>Ge(s)}),p=new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(o.inPhysics),style:y=>c.in.animate(y),onComplete:()=>Qt(l)});return new b.MultiAnimation({out:d,in:p},o.composition)}}};return E.defineTransition({forward:i("forward"),backward:i("backward")})};function Ke(t,e,n){return t==="y"?e==="non-directional"?"non-directional":"directional":t!=="x"||e==="snappy"||n==="snappy"?"snappy":"fluid"}function Je(t={},e={}){const n=t.type??"x",o=t.variant,i=t.feel,r=Ke(n,o,i);return E.withOverride(qe({type:n,feel:r}),e.override)}const Qe={spring:{stiffness:200,damping:22}},tn=10,en="horizontal",nn="#000000";function Dt(t,e,n,o,i,r){window.getComputedStyle(t).position==="static"&&(t.style.position="relative");const s=document.createElement("div");s.style.cssText=`
1
+ "use strict";var Re=Object.defineProperty;var Oe=(t,e,n)=>e in t?Re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var M=(t,e,n)=>Oe(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index-CtyacfH7.cjs"),b=require("./multi-animation-hDUcfD7W.cjs"),S=require("./provider-D9Q2URox.cjs"),H=require("./page-motion-DF3fFkOw.cjs");class se{constructor(e){M(this,"durationSec");this.durationSec=Math.max(1/60,e.durationSec)}step(e,n,o){const i=n-e.position;if(i===0)return e;const r=Math.sign(i),c=Math.abs(i)/this.durationSec,s=r*c*o,l=e.position+s;return(r>0?l>=n:l<=n)?{position:n,velocity:0}:{position:l,velocity:r*c}}isSettled(e,n){return Math.abs(e.position-n)<S.POSITION_THRESHOLD}}function Ot(t,e){function n(r){let c=0,s=0;const l=r.offsetWidth,a=r.offsetHeight;let d=r;for(;d;)c+=d.offsetTop,s+=d.offsetLeft,d=d.offsetParent;return c-=window.scrollY,s-=window.scrollX,{top:c,left:s,width:l,height:a}}const o=n(t),i=n(e);return new DOMRect(i.left-o.left,i.top-o.top,i.width,i.height)}function Y(t,e){const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=(s,l)=>l>0&&Math.abs(s-l)>.5?s/l:1,r=i(n.width,t.offsetWidth),c=i(n.height,t.offsetHeight);return new DOMRect((o.left-n.left)/r,(o.top-n.top)/c,o.width/r,o.height/c)}function z(t,e){const{scrollingElement:n,positionedParent:o}=t,i=n!==o&&n.contains(o)?Ot(n,o).top:0;return{top:t[e].scroll.y,left:0,width:n.clientWidth,height:n.clientHeight-i}}function ae(t,e){const{scrollingElement:n,positionedParent:o}=t,i=n!==o&&n.contains(o)?Ot(n,o).top:0;return{top:t[e].scroll.y-i,height:n.clientHeight}}const Dt=8,Yt={spring:{stiffness:600,damping:40,doubleSpring:1.2}};function Me({direction:t}){const e=t==="forward"?Dt:-Dt;return{out:{willChange:"transform, opacity",startStyle:{},animate:n=>({opacity:`${1-n}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${e}px, 0, 0)`,opacity:"0"},animate:n=>({transform:`translate3d(${e*(1-n)}px, 0, 0)`,opacity:`${n}`})}}}function Te(){return{outPhysics:Yt,inPhysics:Yt,composition:{mode:"parallel",startAt:[0,0]},build:Me}}const Lt=30,_e={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},ke={spring:{stiffness:180,damping:34,restDelta:.1,restSpeed:.1}};function Fe({direction:t}){const e=t==="forward"?1:-1,n=-Lt*e,o=Lt*e;return{out:{willChange:"transform, opacity",startStyle:{},animate:i=>({transform:`translate3d(${n*i}px, 0, 0)`,opacity:`${1-i}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${o}px, 0, 0)`,opacity:"0"},animate:i=>({transform:`translate3d(${o*(1-i)}px, 0, 0)`,opacity:`${i}`})}}}function De(){return{outPhysics:_e,inPhysics:ke,composition:{mode:"sequence"},build:Fe}}const Ye={snappy:Te(),fluid:De()},Wt=8,Le={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},We={spring:{stiffness:180,damping:34,restDelta:.1,restSpeed:.1}};function He({direction:t}){const e=t==="forward"?1:-1,n=-Wt*e,o=Wt*e;return{out:{willChange:"transform, opacity",startStyle:{},animate:i=>({transform:`translate3d(0, ${n*i}px, 0)`,opacity:`${1-i}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(0, ${o}px, 0)`,opacity:"0"},animate:i=>({transform:`translate3d(0, ${o*(1-i)}px, 0)`,opacity:`${i}`})}}}function ze(){return{outPhysics:Le,inPhysics:We,composition:{mode:"sequence"},build:He}}const Ne=40,Ve={inertia:{acceleration:150,resistance:1.5,restDelta:.1}},Xe={spring:{stiffness:400,damping:30,doubleSpring:1.2,restDelta:.1,restSpeed:.1}};function Be(t){const e=Ne;return{out:{willChange:"opacity",startStyle:{},animate:n=>({opacity:`${1-n}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(0, ${e}px, 0)`,opacity:"0"},animate:n=>({transform:`translate3d(0, ${e*(1-n)}px, 0)`,opacity:`${n}`})}}}function Ue(){return{outPhysics:Ve,inPhysics:Xe,composition:{mode:"parallel",startAt:[0,0]},build:Be}}const Ht=ze(),je={snappy:Ht,directional:Ht,"non-directional":Ue()},zt={spring:{stiffness:280,damping:30,restDelta:.1,restSpeed:.1}},dt=.1,ut=1/3,Nt=t=>Math.max(0,Math.min(1,t));function Ze({direction:t}){const e=t==="forward"?1:-1,n=1-e*dt;return{out:{willChange:"transform, opacity",startStyle:{},animate:o=>({transform:`scale(${1+e*o*dt})`,opacity:`${Nt(1-o/ut)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`scale(${n})`,opacity:"0"},animate:o=>({transform:`scale(${n+e*o*dt})`,opacity:`${Nt((o-ut)/(1-ut))}`})}}}function Ge(){return{outPhysics:zt,inPhysics:zt,composition:{mode:"parallel"},build:Ze}}const Vt={spring:{stiffness:280,damping:30,restDelta:.1,restSpeed:.1}},pt=.1,ft=1/3,Xt=t=>Math.max(0,Math.min(1,t));function qe(){return{out:{willChange:"opacity",startStyle:{},animate:t=>({opacity:`${Xt(1-t/ft)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`scale(${1-pt})`,opacity:"0"},animate:t=>({transform:`scale(${1-pt+t*pt})`,opacity:`${Xt((t-ft)/(1-ft))}`})}}}function Ke(){return{outPhysics:Vt,inPhysics:Vt,composition:{mode:"parallel"},build:qe}}const Bt=Ge(),Je={snappy:Bt,directional:Bt,"non-directional":Ke()},Qe={x:Ye,y:je,z:Je};function tn(t,e){const n=Qe[t];return n[e]??n.snappy}const en="x",nn="snappy";function Ut(t,e){t.style.willChange=e.willChange,t.style.backfaceVisibility="hidden",t.style.contain="layout paint";for(const[n,o]of Object.entries(e.startStyle))t.style[n]=o}function ce(t){t.style.willChange="auto",t.style.backfaceVisibility="",t.style.contain="",t.style.transform="",t.style.opacity="",t.style.clipPath=""}function on(t){ce(t),t.style.pointerEvents=""}const rn=(t={})=>{const e=t.type??en,n=t.feel??nn,o=tn(e,n),i=r=>{const c=o.build({direction:r});return{prepare:({from:s,to:l})=>(s.then(a=>{Ut(a,c.out),a.style.pointerEvents="none"}),l.then(a=>{Ut(a,c.in)}),{}),animation:({from:s,to:l,context:a})=>{if(e==="z"){const y=z(a,"from"),p=z(a,"to");s.style.clipPath=`inset(${y.top}px 0 calc(100% - ${y.top+y.height}px) 0)`,l.style.clipPath=`inset(${p.top}px 0 calc(100% - ${p.top+p.height}px) 0)`}const d=new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(o.outPhysics),style:y=>c.out.animate(y),onComplete:()=>on(s)}),u=new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(o.inPhysics),style:y=>c.in.animate(y),onComplete:()=>ce(l)});return new b.MultiAnimation({out:d,in:u},o.composition)}}};return E.defineTransition({forward:i("forward"),backward:i("backward")})};function sn(t,e,n){return t==="y"?e==="non-directional"?"non-directional":"directional":t!=="x"||e==="snappy"||n==="snappy"?"snappy":"fluid"}function an(t={},e={}){const n=t.type??"x",o=t.variant,i=t.feel,r=sn(n,o,i);return E.withOverride(rn({type:n,feel:r}),e.override)}const cn={spring:{stiffness:200,damping:22}},ln=10,dn="horizontal",un="#000000";function jt(t,e,n,o,i,r){window.getComputedStyle(t).position==="static"&&(t.style.position="relative");const s=document.createElement("div");s.style.cssText=`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -7,29 +7,29 @@
7
7
  pointer-events: none;
8
8
  z-index: 9999;
9
9
  overflow: hidden;
10
- `;const l=[];for(let a=0;a<e;a++){const d=document.createElement("div");if(n==="horizontal"){const p=100/e;d.style.cssText=`
10
+ `;const l=[];for(let a=0;a<e;a++){const d=document.createElement("div");if(n==="horizontal"){const u=100/e;d.style.cssText=`
11
11
  position: absolute;
12
- top: ${p*a}%;
12
+ top: ${u*a}%;
13
13
  left: 0;
14
14
  width: 100%;
15
- height: calc(${p}% + 1px);
15
+ height: calc(${u}% + 1px);
16
16
  background: ${o};
17
17
  transform: scaleX(${i==="hidden"?0:1});
18
18
  transform-origin: ${r} center;
19
19
  will-change: transform;
20
- `}else{const p=100/e;d.style.cssText=`
20
+ `}else{const u=100/e;d.style.cssText=`
21
21
  position: absolute;
22
22
  top: 0;
23
- left: ${p*a}%;
24
- width: calc(${p}% + 1px);
23
+ left: ${u*a}%;
24
+ width: calc(${u}% + 1px);
25
25
  height: 100%;
26
26
  background: ${o};
27
27
  transform: scaleY(${i==="hidden"?0:1});
28
28
  transform-origin: ${r==="left"?"top":"bottom"} center;
29
29
  will-change: transform;
30
- `}l.push(d),s.appendChild(d)}return t.appendChild(s),{container:s,blinds:l}}const on=(t={})=>{const e=t.blindCount??tn,n=t.direction??en,o=t.blindColor??nn,i=t.physics??Qe,r={prepare:async({from:c,to:s})=>{const l=await c,a=await s;l.style.zIndex="1000";const d=Dt(l,e,n,o,"hidden","left");a.style.position="relative",a.style.zIndex="0";const p=Dt(a,e,n,o,"closed","right");return{fromEl:l,fromBlinds:d.blinds,fromContainer:d.container,toBlinds:p.blinds,toContainer:p.container}},animation:({fromEl:c,fromBlinds:s,fromContainer:l,toBlinds:a,toContainer:d})=>{const p=s.map(h=>new b.WebAnimation({element:h,integrator:S.IntegratorProvider.from(i),style:f=>({transform:n==="horizontal"?`scaleX(${f})`:`scaleY(${f})`})})),y=a.map((h,f)=>new b.WebAnimation({element:h,integrator:S.IntegratorProvider.from(i),style:(w,g)=>({transform:n==="horizontal"?`scaleX(${g})`:`scaleY(${g})`}),onComplete:f===a.length-1?()=>{d.remove(),l.remove(),c.style.zIndex="",c.style.position=""}:void 0})),u=new b.MultiAnimation(p,{mode:"parallel"}),m=new b.MultiAnimation(y,{mode:"parallel"});return new b.MultiAnimation({out:u,in:m},{mode:"sequence"})}};return E.defineTransition({forward:r,backward:r})};function rn(t={},e={}){const{type:n="horizontal"}=t;return E.withOverride(on({direction:n}),e.override)}function Z(t,e={}){const n=Object.fromEntries(Object.entries(t).map(([o,i])=>{const r=i;return[o,Array.isArray(r)?r.length===1?r[0]:new b.MultiAnimation(r):r]}));return new b.MultiAnimation(n,e)}function j(t){const e=t.onComplete;t.onComplete=()=>{e==null||e(),t.releaseFill()}}const sn={spring:{stiffness:250,damping:23,doubleSpring:.7}},B=.5;function an(t){const e=t==="enter"?-100:100,n=t==="enter"?100:-100;return{out:{willChange:"transform, opacity",startStyle:{},animate:o=>({transform:`translate3d(${e*o}%, 0, 0)`,opacity:`${B+(1-B)*(1-o)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${n}%, 0, 0)`,opacity:`${B}`},animate:o=>({transform:`translate3d(${n*(1-o)}%, 0, 0)`,opacity:`${B+(1-B)*o}`})}}}function cn(){return{physics:sn,build:an}}const ln={spring:{stiffness:230,damping:25,doubleSpring:{stiffness:600,damping:50}}};function dn(t){const e=t==="enter"?-20:100,n=t==="enter"?100:-20;return{out:{willChange:"transform",startStyle:{},animate:o=>({transform:`translate3d(${e*o}%, 0, 0)`})},in:{willChange:"transform",startStyle:{transform:`translate3d(${n}%, 0, 0)`},animate:o=>({transform:`translate3d(${n*(1-o)}%, 0, 0)`})}}}function pn(){return{physics:ln,build:dn}}const un={parallax:pn(),crossfade:cn()},_="0",te="1",T="2",fn="parallax";function Yt(t,e){t.style.willChange=e.willChange,t.style.backfaceVisibility="hidden",t.style.contain="layout paint";for(const[n,o]of Object.entries(e.startStyle))t.style[n]=o}const hn=(t={})=>{const e=un[t.type??fn],n=e.physics,o=i=>{const r=i==="forward"?"enter":"exit",c=e.build(r),s=r==="enter"?_:T,l=r==="enter"?T:_;return{prepare:({from:a,to:d})=>(a.then(p=>{Yt(p,c.out),p.style.pointerEvents="none",p.style.zIndex=s}),d.then(p=>{Yt(p,c.in),p.style.position="relative",p.style.zIndex=l}),{}),animation:({from:a,to:d})=>{const p=new b.WebAnimation({element:a,integrator:S.IntegratorProvider.from(n),style:u=>c.out.animate(u),onComplete:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transform="",a.style.opacity="",a.style.pointerEvents="",a.style.zIndex=""}}),y=new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(n),style:u=>c.in.animate(u),onComplete:()=>{d.style.willChange="auto",d.style.backfaceVisibility="",d.style.contain="",d.style.transform="",d.style.opacity="",d.style.position==="relative"&&(d.style.position=""),d.style.zIndex===l&&(d.style.zIndex="")}});return[p,y].forEach(j),new b.MultiAnimation({out:p,in:y},{mode:"parallel"})}}};return E.defineTransition({forward:o("forward"),backward:o("backward")})};function mn(t){return t==="slide"||t==="crossfade"?"crossfade":"parallax"}function yn(t={},e={}){const n=t.type,o=mn(n);return E.withOverride(hn({type:o}),e.override)}const gn=(t={})=>{const e=t.physics??D.FADE_IN_PHYSICS,n=t.physics??D.FADE_OUT_PHYSICS,o={prepare:({to:i})=>(i.then(r=>{r.style.opacity="0",r.style.willChange="opacity"}),{}),animation:({from:i,to:r})=>{const c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(n),style:l=>({opacity:D.pageMotionStyle("fade","out","forward",l).opacity}),onComplete:()=>{i.style.willChange="auto",i.style.opacity=""}}),s=new b.WebAnimation({element:r,integrator:S.IntegratorProvider.from(e),style:l=>({opacity:D.pageMotionStyle("fade","in","forward",l).opacity}),onComplete:()=>{r.style.willChange="auto",r.style.opacity=""}});return new b.MultiAnimation({out:c,in:s},{mode:"sequence"})}};return E.defineTransition({forward:o,backward:o})};function bn(t={},e={}){return E.withOverride(gn(),e.override)}const it={scaleDown:{stiffness:20,damping:7},translate:{stiffness:15,damping:7},scaleUp:{stiffness:20,damping:7}},N={scaleDown:0,translate:.2,scaleUp:.8},wn=.8,Sn="white",Lt=1e3/60,xn=600;function Cn(t){const{items:e,from:n,to:o,recordFrame:i}=t,r=Lt/1e3,c=Math.abs(o-n),s=e.map(a=>({item:a,integrator:new S.SpringIntegrator({stiffness:a.spring.stiffness,damping:a.spring.damping}),state:{position:n,velocity:0},started:!1,settled:!1,settleTime:0}));for(let a=0;a<s.length;a++)(a===0||s[a].item.offset===0)&&(s[a].started=!0);i(0);let l=0;for(let a=1;a<=xn;a++){const d=a*Lt;l=d;for(const p of s)!p.started||p.settled||(p.state=p.integrator.step(p.state,o,r),p.integrator.isSettled(p.state,o)?(p.settleTime+=r,p.settleTime>=S.SETTLE_THRESHOLD&&(p.state={position:o,velocity:0},p.settled=!0)):p.settleTime=0,p.item.tick(p.state.position));for(let p=1;p<s.length;p++){const y=s[p];if(y.started)continue;const u=s[p-1];if(!u.started)continue;(c===0?1:Math.abs(u.state.position-n)/c)>=y.item.offset&&(y.started=!0)}if(i(d),s.every(p=>p.settled))return d}return l}function rt(t,e){return t!=null&&t.spring?{stiffness:t.spring.stiffness,damping:t.spring.damping}:e}function Ht(t){const{rect:e,scale:n,direction:o,override:i}=t,r=o==="out"?{scale:1,translateY:-e.top}:{scale:n,translateY:-e.top+e.height},c=rt(i,it.scaleDown),s=rt(i,it.translate),l=rt(i,it.scaleUp),a=o==="out"?1:0,d=o==="out"?0:1,p=o==="out"?[{spring:c,offset:N.scaleDown,tick:m=>{const h=1-m;r.scale=1-(1-n)*h}},{spring:s,offset:N.translate,tick:m=>{const h=1-m;r.translateY=-e.top-e.height*h}},{spring:l,offset:N.scaleUp,tick:m=>{const h=1-m;r.scale=n+(1-n)*h}}]:[{spring:c,offset:N.scaleDown,tick:m=>{r.scale=1-(1-n)*m}},{spring:s,offset:N.translate,tick:m=>{r.translateY=-e.top+e.height*(1-m)}},{spring:l,offset:N.scaleUp,tick:m=>{r.scale=n+(1-n)*m}}],y=[],u=Cn({items:p,from:a,to:d,recordFrame:m=>y.push({time:m,scale:r.scale,translateY:r.translateY})});return{snapshots:y,totalDuration:u}}function En(t,e){if(t.length===0)return{time:0,scale:1,translateY:0};if(t.length===1||e<=0)return t[0];if(e>=1)return t[t.length-1];const n=e*(t.length-1),o=Math.floor(n),i=Math.ceil(n);if(o===i)return t[o];const r=t[o],c=t[i],s=n-o;return{time:r.time+(c.time-r.time)*s,scale:r.scale+(c.scale-r.scale)*s,translateY:r.translateY+(c.translateY-r.translateY)*s}}const $n=[[1,1],[-1,1],[1,-1],[-1,-1]];function vn(t,e){const i=(r,c,s)=>{const l=document.createElement("div");Object.assign(l.style,{position:"fixed",pointerEvents:"none",zIndex:"9999",width:"15px",height:"15px",...r});const a=document.createElement("div");Object.assign(a.style,{position:"absolute",width:"15px",height:"1px",backgroundColor:t,[s]:"0",[c]:"0"});const d=document.createElement("div");return Object.assign(d.style,{position:"absolute",width:"1px",height:"15px",backgroundColor:t,[s]:"0",[c]:"0"}),l.appendChild(a),l.appendChild(d),l};return{topLeft:i({top:`${e.top-1}px`,left:`${e.left-1}px`},"left","top"),topRight:i({top:`${e.top-1}px`,left:`${e.left+e.width-15+1}px`},"right","top"),bottomLeft:i({top:`${e.top+e.height-15+1}px`,left:`${e.left-1}px`},"left","bottom"),bottomRight:i({top:`${e.top+e.height-15+1}px`,left:`${e.left+e.width-15+1}px`},"right","bottom")}}function Wt(t,e){const n=e.left+e.width/2,o=e.top+e.height/2;t.style.transformOrigin=`${n}px ${o}px`}function Nt(t,e){t.style.clipPath=`polygon(
30
+ `}l.push(d),s.appendChild(d)}return t.appendChild(s),{container:s,blinds:l}}const pn=(t={})=>{const e=t.blindCount??ln,n=t.direction??dn,o=t.blindColor??un,i=t.physics??cn,r={prepare:async({from:c,to:s})=>{const l=await c,a=await s;l.style.zIndex="1000";const d=jt(l,e,n,o,"hidden","left");a.style.position="relative",a.style.zIndex="0";const u=jt(a,e,n,o,"closed","right");return{fromEl:l,fromBlinds:d.blinds,fromContainer:d.container,toBlinds:u.blinds,toContainer:u.container}},animation:({fromEl:c,fromBlinds:s,fromContainer:l,toBlinds:a,toContainer:d})=>{const u=s.map(h=>new b.WebAnimation({element:h,integrator:S.IntegratorProvider.from(i),style:m=>({transform:n==="horizontal"?`scaleX(${m})`:`scaleY(${m})`})})),y=a.map((h,m)=>new b.WebAnimation({element:h,integrator:S.IntegratorProvider.from(i),style:(w,g)=>({transform:n==="horizontal"?`scaleX(${g})`:`scaleY(${g})`}),onComplete:m===a.length-1?()=>{d.remove(),l.remove(),c.style.zIndex="",c.style.position=""}:void 0})),p=new b.MultiAnimation(u,{mode:"parallel"}),f=new b.MultiAnimation(y,{mode:"parallel"});return new b.MultiAnimation({out:p,in:f},{mode:"sequence"})}};return E.defineTransition({forward:r,backward:r})};function fn(t={},e={}){const{type:n="horizontal"}=t;return E.withOverride(pn({direction:n}),e.override)}function q(t,e={}){const n=Object.fromEntries(Object.entries(t).map(([o,i])=>{const r=i;return[o,Array.isArray(r)?r.length===1?r[0]:new b.MultiAnimation(r):r]}));return new b.MultiAnimation(n,e)}function K(t){const e=t.onComplete;t.onComplete=()=>{e==null||e(),t.releaseFill()}}const hn={spring:{stiffness:250,damping:23,doubleSpring:.7}},j=.5;function yn(t){const e=t==="enter"?-100:100,n=t==="enter"?100:-100;return{out:{willChange:"transform, opacity",startStyle:{},animate:o=>({transform:`translate3d(${e*o}%, 0, 0)`,opacity:`${j+(1-j)*(1-o)}`})},in:{willChange:"transform, opacity",startStyle:{transform:`translate3d(${n}%, 0, 0)`,opacity:`${j}`},animate:o=>({transform:`translate3d(${n*(1-o)}%, 0, 0)`,opacity:`${j+(1-j)*o}`})}}}function mn(){return{physics:hn,build:yn}}const gn={spring:{stiffness:230,damping:25,doubleSpring:{stiffness:600,damping:50}}};function bn(t){const e=t==="enter"?-20:100,n=t==="enter"?100:-20;return{out:{willChange:"transform",startStyle:{},animate:o=>({transform:`translate3d(${e*o}%, 0, 0)`})},in:{willChange:"transform",startStyle:{transform:`translate3d(${n}%, 0, 0)`},animate:o=>({transform:`translate3d(${n*(1-o)}%, 0, 0)`})}}}function wn(){return{physics:gn,build:bn}}const Sn={parallax:wn(),crossfade:mn()},D="0",le="1",k="2",xn="parallax";function Zt(t,e){t.style.willChange=e.willChange,t.style.backfaceVisibility="hidden",t.style.contain="layout paint";for(const[n,o]of Object.entries(e.startStyle))t.style[n]=o}const Cn=(t={})=>{const e=Sn[t.type??xn],n=e.physics,o=i=>{const r=i==="forward"?"enter":"exit",c=e.build(r),s=r==="enter"?D:k,l=r==="enter"?k:D;return{prepare:({from:a,to:d})=>(a.then(u=>{Zt(u,c.out),u.style.pointerEvents="none",u.style.zIndex=s}),d.then(u=>{Zt(u,c.in),u.style.position="relative",u.style.zIndex=l}),{}),animation:({from:a,to:d})=>{const u=new b.WebAnimation({element:a,integrator:S.IntegratorProvider.from(n),style:p=>c.out.animate(p),onComplete:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transform="",a.style.opacity="",a.style.pointerEvents="",a.style.zIndex=""}}),y=new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(n),style:p=>c.in.animate(p),onComplete:()=>{d.style.willChange="auto",d.style.backfaceVisibility="",d.style.contain="",d.style.transform="",d.style.opacity="",d.style.position==="relative"&&(d.style.position=""),d.style.zIndex===l&&(d.style.zIndex="")}});return[u,y].forEach(K),new b.MultiAnimation({out:u,in:y},{mode:"parallel"})}}};return E.defineTransition({forward:o("forward"),backward:o("backward")})};function An(t){return t==="slide"||t==="crossfade"?"crossfade":"parallax"}function En(t={},e={}){const n=t.type,o=An(n);return E.withOverride(Cn({type:o}),e.override)}const vn=(t={})=>{const e=t.physics??H.FADE_IN_PHYSICS,n=t.physics??H.FADE_OUT_PHYSICS,o={prepare:({to:i})=>(i.then(r=>{r.style.opacity="0",r.style.willChange="opacity"}),{}),animation:({from:i,to:r})=>{const c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(n),style:l=>({opacity:H.pageMotionStyle("fade","out","forward",l).opacity}),onComplete:()=>{i.style.willChange="auto",i.style.opacity=""}}),s=new b.WebAnimation({element:r,integrator:S.IntegratorProvider.from(e),style:l=>({opacity:H.pageMotionStyle("fade","in","forward",l).opacity}),onComplete:()=>{r.style.willChange="auto",r.style.opacity=""}});return new b.MultiAnimation({out:c,in:s},{mode:"sequence"})}};return E.defineTransition({forward:o,backward:o})};function $n(t={},e={}){return E.withOverride(vn(),e.override)}const ht={scaleDown:{stiffness:20,damping:7},translate:{stiffness:15,damping:7},scaleUp:{stiffness:20,damping:7}},N={scaleDown:0,translate:.2,scaleUp:.8},Pn=.8,In="white",Gt=1e3/60,Rn=600;function On(t){const{items:e,from:n,to:o,recordFrame:i}=t,r=Gt/1e3,c=Math.abs(o-n),s=e.map(a=>({item:a,integrator:new S.SpringIntegrator({stiffness:a.spring.stiffness,damping:a.spring.damping}),state:{position:n,velocity:0},started:!1,settled:!1,settleTime:0}));for(let a=0;a<s.length;a++)(a===0||s[a].item.offset===0)&&(s[a].started=!0);i(0);let l=0;for(let a=1;a<=Rn;a++){const d=a*Gt;l=d;for(const u of s)!u.started||u.settled||(u.state=u.integrator.step(u.state,o,r),u.integrator.isSettled(u.state,o)?(u.settleTime+=r,u.settleTime>=S.SETTLE_THRESHOLD&&(u.state={position:o,velocity:0},u.settled=!0)):u.settleTime=0,u.item.tick(u.state.position));for(let u=1;u<s.length;u++){const y=s[u];if(y.started)continue;const p=s[u-1];if(!p.started)continue;(c===0?1:Math.abs(p.state.position-n)/c)>=y.item.offset&&(y.started=!0)}if(i(d),s.every(u=>u.settled))return d}return l}function yt(t,e){return t!=null&&t.spring?{stiffness:t.spring.stiffness,damping:t.spring.damping}:e}function qt(t){const{rect:e,scale:n,direction:o,override:i}=t,r=o==="out"?{scale:1,translateY:-e.top}:{scale:n,translateY:-e.top+e.height},c=yt(i,ht.scaleDown),s=yt(i,ht.translate),l=yt(i,ht.scaleUp),a=o==="out"?1:0,d=o==="out"?0:1,u=o==="out"?[{spring:c,offset:N.scaleDown,tick:f=>{const h=1-f;r.scale=1-(1-n)*h}},{spring:s,offset:N.translate,tick:f=>{const h=1-f;r.translateY=-e.top-e.height*h}},{spring:l,offset:N.scaleUp,tick:f=>{const h=1-f;r.scale=n+(1-n)*h}}]:[{spring:c,offset:N.scaleDown,tick:f=>{r.scale=1-(1-n)*f}},{spring:s,offset:N.translate,tick:f=>{r.translateY=-e.top+e.height*(1-f)}},{spring:l,offset:N.scaleUp,tick:f=>{r.scale=n+(1-n)*f}}],y=[],p=On({items:u,from:a,to:d,recordFrame:f=>y.push({time:f,scale:r.scale,translateY:r.translateY})});return{snapshots:y,totalDuration:p}}function Mn(t,e){if(t.length===0)return{time:0,scale:1,translateY:0};if(t.length===1||e<=0)return t[0];if(e>=1)return t[t.length-1];const n=e*(t.length-1),o=Math.floor(n),i=Math.ceil(n);if(o===i)return t[o];const r=t[o],c=t[i],s=n-o;return{time:r.time+(c.time-r.time)*s,scale:r.scale+(c.scale-r.scale)*s,translateY:r.translateY+(c.translateY-r.translateY)*s}}const Tn=[[1,1],[-1,1],[1,-1],[-1,-1]];function _n(t,e){const i=(r,c,s)=>{const l=document.createElement("div");Object.assign(l.style,{position:"fixed",pointerEvents:"none",zIndex:"9999",width:"15px",height:"15px",...r});const a=document.createElement("div");Object.assign(a.style,{position:"absolute",width:"15px",height:"1px",backgroundColor:t,[s]:"0",[c]:"0"});const d=document.createElement("div");return Object.assign(d.style,{position:"absolute",width:"1px",height:"15px",backgroundColor:t,[s]:"0",[c]:"0"}),l.appendChild(a),l.appendChild(d),l};return{topLeft:i({top:`${e.top-1}px`,left:`${e.left-1}px`},"left","top"),topRight:i({top:`${e.top-1}px`,left:`${e.left+e.width-15+1}px`},"right","top"),bottomLeft:i({top:`${e.top+e.height-15+1}px`,left:`${e.left-1}px`},"left","bottom"),bottomRight:i({top:`${e.top+e.height-15+1}px`,left:`${e.left+e.width-15+1}px`},"right","bottom")}}function Kt(t,e){const n=e.left+e.width/2,o=e.top+e.height/2;t.style.transformOrigin=`${n}px ${o}px`}function Jt(t,e){t.style.clipPath=`polygon(
31
31
  ${e.left}px ${e.top}px,
32
32
  ${e.left+e.width}px ${e.top}px,
33
33
  ${e.left+e.width}px ${e.top+e.height}px,
34
34
  ${e.left}px ${e.top+e.height}px
35
- )`}function st(t,e,n,o,i){const r=n/1e3;return new b.WebAnimation({element:t,integrator:new Kt({durationSec:r}),lowerBound:0,upperBound:1,style:c=>o(En(e,c)),onComplete:i})}const An=(t={})=>{var r;const e=((r=t.border)==null?void 0:r.color)??Sn,n=wn,o=t.physics,i={prepare:({from:c,to:s,context:l})=>{const a=L(l,"from"),d=L(l,"to"),p=St(document.body,l.positionedParent),y=vn(e,{...a,top:p.top});for(const u of["topLeft","topRight","bottomLeft","bottomRight"])l.positionedParent.appendChild(y[u]);return c.then(u=>{Wt(u,a),Nt(u,a),u.style.transform=`translateY(${-a.top}px)`}),s.then(u=>{Wt(u,d),Nt(u,d),u.style.transform=`translateY(${-d.top+d.height}px) scale(${n})`}),{borders:y,fromRect:a,toRect:d}},animation:({from:c,to:s,context:l,borders:a,fromRect:d,toRect:p})=>{const y=Ht({rect:d,scale:n,direction:"out",override:o}),u=Ht({rect:p,scale:n,direction:"in",override:o}),m=st(c,y.snapshots,y.totalDuration,x=>({transform:`translateY(${x.translateY}px) scale(${x.scale})`}),()=>{c.style.clipPath="",c.style.transformOrigin="",c.style.transform=""}),h=st(s,u.snapshots,u.totalDuration,x=>({transform:`translateY(${x.translateY}px) scale(${x.scale})`}),()=>{s.style.clipPath="",s.style.transformOrigin="",s.style.transform=""}),f=$n.map(([x,v],A)=>{const R=["topLeft","topRight","bottomLeft","bottomRight"][A];return st(a[R],y.snapshots,y.totalDuration,C=>{const $=(d.width-d.width*C.scale)/2*.7*x,O=(d.height-d.height*C.scale)/2*.7*v;return{transform:`translate(${$}px, ${O}px)`}})}),w=Z({out:m,in:h,borders:f}),g=w.onComplete;return w.onComplete=()=>{g==null||g();const x=l.positionedParent;for(const v of["topLeft","topRight","bottomLeft","bottomRight"]){const A=a[v];A.parentElement===x&&x.removeChild(A)}},w}};return E.defineTransition({forward:i,backward:i})};function Pn(t={},e={}){const{options:n}=t,o=(n==null?void 0:n.borderColor)!==void 0?{border:{color:n.borderColor}}:void 0;return E.withOverride(An(o),e.override)}function In(t){if(!t)return null;if(t.includes("/")){const n=t.split("/");if(n.length!==2)return null;const o=Number.parseFloat(n[0]??""),i=Number.parseFloat(n[1]??"");return Number.isFinite(o)&&Number.isFinite(i)&&o>0&&i>0?o/i:null}const e=Number.parseFloat(t);return Number.isFinite(e)&&e>0?e:null}function Rn(t){return t==="contain"||t==="cover"?t:null}function ht(t){return t.tagName==="IMG"}function ee(t){if(ht(t))return t;if(t.tagName==="PICTURE"||t.tagName==="VIDEO")return null;const e=[];for(const n of Array.from(t.children)){const o=n;ht(o)&&e.push(o)}return e.length===1?e[0]??null:null}function On(t){var l,a;if(!ht(t))return null;const e=t,n=e.naturalWidth,o=e.naturalHeight;if(typeof n=="number"&&typeof o=="number"&&Number.isFinite(n)&&Number.isFinite(o)&&n>0&&o>0)return n/o;const i=((l=t.getAttribute("width"))==null?void 0:l.trim())??"",r=((a=t.getAttribute("height"))==null?void 0:a.trim())??"",c=i===""?Number.NaN:Number(i),s=r===""?Number.NaN:Number(r);return Number.isFinite(c)&&Number.isFinite(s)&&c>0&&s>0?c/s:null}function Mn(t){const e=t.trim().toLowerCase().replace(/\s+/g," ");return e===""||e==="center"||e==="center center"||e==="50% 50%"}function K(t){if(typeof getComputedStyle=="function")try{return getComputedStyle(t)}catch{}return t.style}function _n(t){const e=K(t),n=Mn(e.objectPosition??"");return{fit:n?Rn(e.objectFit??null):null,centered:n}}function xt(t){if(!t)return 0;const e=/^(-?(?:\d+\.?\d*|\.\d+))px$/.exec(t.trim());if(!e)return null;const n=Number.parseFloat(e[1]??"");return Number.isFinite(n)&&n>=0?n:null}function mt(t){const e=K(t),n=[e.borderTopLeftRadius,e.borderTopRightRadius,e.borderBottomRightRadius,e.borderBottomLeftRadius].map(xt),o=n[0];if(o==null)return{radius:0,supported:!1};const i=n.every(r=>r!==null&&Math.abs(r-o)<.001);return{radius:i?o:0,supported:i}}function Tn(t,e){var i;if(!e)return null;const n=(i=t.getAttribute(e))==null?void 0:i.trim();if(n==null||n==="")return null;const o=Number.parseFloat(n);return Number.isFinite(o)&&o>=0?o:null}function Fn(t){const e=K(t);return[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft,e.borderTopWidth,e.borderRightWidth,e.borderBottomWidth,e.borderLeftWidth].every(o=>o?xt(o)===0:!0)}function kn(t){const e=K(t),n=o=>o==="hidden"||o==="clip";return n(e.overflowX)&&n(e.overflowY)}function F(t){return t.left+t.width/2}function k(t){return t.top+t.height/2}function G(t,e){return{top:Math.max(0,e.top-t.top),right:Math.max(0,t.left+t.width-(e.left+e.width)),bottom:Math.max(0,t.top+t.height-(e.top+e.height)),left:Math.max(0,e.left-t.left)}}function yt(t,e){const n=Math.max(t.left,e.left),o=Math.max(t.top,e.top),i=Math.min(t.left+t.width,e.left+e.width),r=Math.min(t.top+t.height,e.top+e.height);return i>n&&r>o?{left:n,top:o,width:i-n,height:r-o}:null}function U(t,e){return Math.abs(t.left-e.left)<.01&&Math.abs(t.top-e.top)<.01&&Math.abs(t.width-e.width)<.01&&Math.abs(t.height-e.height)<.01}function Dn(t,e,n){const o=t.width/t.height;let i,r;return n==="contain"?o>e?(r=t.height,i=r*e):(i=t.width,r=i/e):o>e?(i=t.width,r=i/e):(r=t.height,i=r*e),{left:t.left+(t.width-i)/2,top:t.top+(t.height-r)/2,width:i,height:r}}function ne(t,e,n){const o=e!==null&&n!==null&&t.width>0&&t.height>0?Dn(t,e,n):t,i=n==="contain"?o:t;return{bbox:t,content:o,window:i,clipInset:G(o,i),aspectRatio:e,fit:n,radius:0,radiusSource:"none",bboxRadius:0,bboxRadiusSource:"none",contentAware:e!==null&&n!==null,mediaElement:null}}function gt(t,e,n){return{...ne(t,null,null),radius:e,radiusSource:n,bboxRadius:e,bboxRadiusSource:n}}function oe(t,e){const n=t.aspectRatio,o=e.aspectRatio;return t.contentAware&&e.contentAware&&n!==null&&o!==null&&Math.abs(n-o)/Math.max(n,o)<.01}function zt(t){return gt(t.bbox,t.bboxRadius,t.bboxRadiusSource)}function ie(t,e){return oe(t,e)?[t,e]:[zt(t),zt(e)]}function Yn(t,e,n,o){const i=ee(t),r=i?n(i):e,c=o.legacyAspectRatioAttribute?In(t.getAttribute(o.legacyAspectRatioAttribute)??(i==null?void 0:i.getAttribute(o.legacyAspectRatioAttribute))??null):null,s=c??(i?On(i):null),l=i?_n(i):{fit:null,centered:!0},a=l.centered&&(i===null||Fn(i))?l.fit??(c!==null?o.fallbackFit??null:null):null,d=ne(r,s,a),p=kn(t),u=i!==null&&i!==t&&p?yt(d.window,e):d.window,m=Tn(t,o.legacyRadiusAttribute),h=i===t||p,f=h?mt(t):{radius:0,supported:!0},w=m??f.radius,g=m!==null?"legacy":f.supported?f.radius>0?"computed":"none":"unsupported",x=[];u&&h&&U(u,e)&&x.push(f),u&&i&&U(u,r)&&x.push(mt(i));const v=x.every($=>$.supported),A=Math.max(0,...x.map($=>$.radius)),R=m??A,C=m!==null?"legacy":v?A>0?"computed":"none":"unsupported";return!u||C==="unsupported"?gt(e,w,g):{...d,bbox:e,window:u,clipInset:G(d.content,u),radius:R,radiusSource:C,bboxRadius:w,bboxRadiusSource:g,mediaElement:d.contentAware?i:null}}function bt(t,e,n,o){const i=Yn(t,e,n,o);if(!o.clipRoot||i.radiusSource==="unsupported")return i;let r=i.window,c=i.radius,s=[c,c,c,c],l=i.radiusSource,a=t.parentElement;for(;a&&a!==o.clipRoot;){const p=K(a),y=h=>h==="hidden"||h==="clip"||h==="auto"||h==="scroll",u=y(p.overflowX),m=y(p.overflowY);if(u||m){if(![p.borderTopWidth,p.borderRightWidth,p.borderBottomWidth,p.borderLeftWidth].every(C=>xt(C)===0)||a.offsetWidth&&a.clientWidth&&a.offsetWidth-a.clientWidth>1||a.offsetHeight&&a.clientHeight&&a.offsetHeight-a.clientHeight>1)return i;const f=n(a),w={left:u?f.left:r.left,top:m?f.top:r.top,width:u?f.width:r.width,height:m?f.height:r.height},g=yt(r,w);if(!g)return i;const x=mt(a);if(!x.supported)return i;if(u&&m&&U(r,f))l!=="legacy"&&(c=Math.max(c,x.radius),s=s.map(C=>Math.max(C,x.radius)),c>0&&(l="computed"));else if(x.radius>0){const C={left:f.left+x.radius,top:f.top+x.radius,width:f.width-2*x.radius,height:f.height-2*x.radius};if(!U(yt(r,C)??f,r))return i}const v=G(r,g),A=[[v.top,v.left],[v.top,v.right],[v.bottom,v.right],[v.bottom,v.left]];for(let C=0;C<4;C++){const $=Math.max(...A[C]),O=s[C];if($>.01&&$<O)return i;$>.01&&(s[C]=0)}const R=Math.max(...s);if(g.width<R||g.height<R)return i;r=g}a=a.parentElement}const d=U(i.bbox,r);return{...i,window:r,clipInset:G(i.content,r),radius:c,radiusSource:l,...s.some(p=>p!==c)?{cornerRadii:s}:{},...d?{bboxRadius:c,bboxRadiusSource:l}:{}}}function re(t,e,n,o,i){const r=n.width/o,c=n.height/i;return{left:F(t)+(F(n)-F(e))/o-r/2,top:k(t)+(k(n)-k(e))/i-c/2,width:r,height:c}}const Ln={enter:"contain",exit:"cover",legacy:"contain"};function z(t){return Ln[t]}function q(t,e){const n=e.map(o=>({name:o,value:t.style.getPropertyValue(o),priority:t.style.getPropertyPriority(o)}));return()=>{for(const{name:o,value:i,priority:r}of n)i?t.style.setProperty(o,i,r):t.style.removeProperty(o)}}function Hn(t){const e=t.getAttribute("data-hero-transitioning");return t.setAttribute("data-hero-transitioning",""),()=>{e===null?t.removeAttribute("data-hero-transitioning"):t.setAttribute("data-hero-transitioning",e)}}function Wn(t,e){const n=q(t,["z-index"]),o=q(e,["z-index","position"]);return t.style.zIndex=_,e.style.zIndex=T,getComputedStyle(e).position==="static"&&(e.style.position="relative"),()=>{n(),o()}}function Nn(t,e,n){if(t.tagName!=="IMG")return()=>{};const o=getComputedStyle(t),i=y=>Number.parseFloat(y)||0,r=o.boxSizing==="border-box",c=i(o.width)+(r?0:i(o.paddingLeft)+i(o.paddingRight)+i(o.borderLeftWidth)+i(o.borderRightWidth)),s=i(o.height)+(r?0:i(o.paddingTop)+i(o.paddingBottom)+i(o.borderTopWidth)+i(o.borderBottomWidth)),l=e.width*c/n.width,a=e.height*s/n.height;let d=null;o.position!=="absolute"&&o.position!=="fixed"&&(d=document.createElement("span"),d.setAttribute("data-hero-placeholder",""),d.setAttribute("aria-hidden","true"),Object.assign(d.style,{display:o.display==="inline"?"inline-block":o.display,boxSizing:"border-box",width:`${c}px`,height:`${s}px`,margin:o.margin,flex:o.flex,alignSelf:o.alignSelf,gridArea:o.gridArea,order:o.order,verticalAlign:o.verticalAlign,visibility:"hidden",pointerEvents:"none"}),t.before(d));const p=q(t,["position","left","top","right","bottom","width","height","min-width","min-height","max-width","max-height","box-sizing","margin-top","margin-right","margin-bottom","margin-left","flex"]);return Object.assign(t.style,{position:"absolute",left:"0",top:"0",right:"auto",bottom:"auto",boxSizing:"border-box",width:`${l}px`,height:`${a}px`,minWidth:"0",minHeight:"0",maxWidth:"none",maxHeight:"none",margin:"0",flex:"none"}),()=>{p(),d==null||d.remove()}}function Ct(t,e,n){const o=(s,l)=>`${l>0?s/l*100:0}%`,i=[o(e.top,t.height),o(e.right,t.width),o(e.bottom,t.height),o(e.left,t.width)].join(" "),r=n.map(s=>o(s.x,t.width)).join(" "),c=n.map(s=>o(s.y,t.height)).join(" ");return`inset(${i} round ${r} / ${c})`}const Xt="data-hero-enter-key",Vt="data-hero-exit-key",at="data-hero-key";class zn{constructor(){I(this,"previousFromOpacity","")}prepare(e){e.from.then(n=>{this.previousFromOpacity=n.style.opacity,n.style.opacity="0"})}contribute(e){return e.onComplete(()=>{e.from.style.opacity=this.previousFromOpacity}),{}}}const Xn=()=>new zn;function Vn(t,e){const n=new Set(e),o=new Set;for(const c of n){let s=c.parentElement;for(;s&&s!==t;)o.add(s),s=s.parentElement}const i=[],r=c=>{var s;if(!(n.has(c)||((s=c.getAttribute)==null?void 0:s.call(c,"data-hero-placeholder"))!=null)){if(c!==t&&!o.has(c)){i.push(c);return}for(const l of Array.from(c.children))l instanceof HTMLElement&&r(l)}};return r(t),i}class Bn{contribute(e){const{from:n,to:o,resolved:i,physics:r,onComplete:c}=e,s=i.pairs.map(u=>ee(u.toEl)??u.toEl),l=(s.length?Vn(o,s):[o]).map(u=>({element:u,opacity:u.style.opacity,willChange:u.style.willChange,targetOpacity:Number.parseFloat(getComputedStyle(u).opacity)||0})),a=new Set;for(const u of s)for(let m=u.parentElement;m&&(a.add(m),m!==o);m=m.parentElement);const d=Array.from(a).map(u=>({element:u,color:getComputedStyle(u).backgroundColor,previousColor:u.style.backgroundColor})).filter(({color:u})=>u&&u!=="transparent"&&u!=="rgba(0, 0, 0, 0)"),p=n.style.opacity,y=n.style.willChange;n.style.willChange="opacity";for(const{element:u}of l)u.style.opacity="0",u.style.willChange="opacity";for(const{element:u}of d)u.style.backgroundColor="transparent";return c(()=>{n.style.opacity=p,n.style.willChange=y;for(const{element:u,opacity:m,willChange:h}of l)u.style.opacity=m,u.style.willChange=h;for(const{element:u,previousColor:m}of d)u.style.backgroundColor=m}),{out:[new b.WebAnimation({element:n,integrator:S.IntegratorProvider.from(r),style:(u,m)=>({opacity:m})})],in:[...l.map(({element:u,targetOpacity:m})=>new b.WebAnimation({element:u,integrator:S.IntegratorProvider.from(r),style:h=>({opacity:Math.min(1,Math.max(0,h))*m})})),...d.map(({element:u,color:m})=>new b.WebAnimation({element:u,integrator:S.IntegratorProvider.from(r),style:h=>({backgroundColor:`color-mix(in srgb, ${m} ${Math.min(1,Math.max(0,h))*100}%, transparent)`})}))]}}}const Un=()=>new Bn,Zn={static:Xn,fade:Un},jn={spring:{stiffness:320,damping:30}},Gn=()=>jn,qn={spring:{stiffness:300,damping:30,doubleSpring:1}},Kn=()=>qn,Jn={default:Gn,smooth:Kn},Qn=700,to="data-hero-aspect-ratio",eo="data-hero-radius";function Bt(t,e,n,o){const i=c=>{const s=Y(t,c);return{left:s.left+t.scrollLeft,top:s.top+t.scrollTop,width:s.width,height:s.height}},r=i(e);return bt(e,r,i,{clipRoot:o,fallbackFit:n,legacyAspectRatioAttribute:to,legacyRadiusAttribute:eo})}function J(t,e){const n=new Map,o=t.querySelectorAll(`[${e}]`);for(const i of Array.from(o)){const r=i.getAttribute(e);r&&(n.has(r)||n.set(r,i))}return n}function no(t,e){const n=[],o=J(e,Xt),i=J(t,Vt);for(const[s,l]of o){const a=i.get(s);a&&n.push({key:s,fromEl:a,toEl:l,fromFit:z("exit"),toFit:z("enter")})}const r=J(t,Xt),c=J(e,Vt);for(const[s,l]of r){const a=c.get(s);a&&n.push({key:s,fromEl:l,toEl:a,fromFit:z("enter"),toFit:z("exit")})}return n}function oo(t,e){const n=[],o=Array.from(e.querySelectorAll(`[${at}]`));for(const i of o){const r=i.getAttribute(at);if(!r)continue;const c=t.querySelector(`[${at}="${r}"]`);c&&n.push({key:r,fromEl:c,toEl:i,fromFit:z("legacy"),toFit:z("legacy")})}return n}function io(t,e){const n=no(t,e);return n.length>0?n:oo(t,e)}function ro(t,e){return ie(t,e)}function so(t,e){return t.radiusSource==="unsupported"||e.radiusSource==="unsupported"?!1:t.mediaElement!==null||e.mediaElement!==null||t.radiusSource==="computed"||t.radiusSource==="legacy"||e.radiusSource==="computed"||e.radiusSource==="legacy"}function ao(t,e,n,o,i){const{fromEl:r,toEl:c}=e,[s,l]=ro(Bt(t,r,e.fromFit,o),Bt(t,c,e.toFit,i)),a=s.content,d=s.window,p=l.content,y=l.window,u=l.clipInset,m=s.radiusSource==="unsupported"||l.radiusSource==="unsupported",h=m?0:s.radius,f=m?0:l.radius;if(a.width===0||a.height===0||d.width===0||d.height===0||p.width===0||p.height===0||y.width===0||y.height===0)return null;const w=Math.max(a.width/p.width,a.height/p.height),g=F(a),x=k(a),v=F(p),A=k(p),R=g-v,C=x-A;if(Math.abs(C)>n)return null;const $=G(p,re(p,a,d,w,w));return{toContent:p,fromVisualEl:s.mediaElement??r,toVisualEl:l.mediaElement??c,resetRadius:so(s,l),styleFor:(O,M,P)=>{const V=(M*R+(P?v-F(P.box):0))/((P==null?void 0:P.scaleX)??1),H=(M*C+(P?A-k(P.box):0))/((P==null?void 0:P.scaleY)??1),W=O+M*w,ue=s.cornerRadii??[h,h,h,h],fe=l.cornerRadii??[f,f,f,f],he=ue.map((we,Se)=>{const $t=Math.max(0,we*M+fe[Se]*O)/Math.max(Math.abs(W),1e-6);return{x:$t,y:$t}}),me=$.top*M+u.top*O,ye=$.right*M+u.right*O,ge=$.bottom*M+u.bottom*O,be=$.left*M+u.left*O;return{transform:P?`translate(${V}px, ${H}px) scale(${W*p.width/P.box.width}, ${W*p.height/P.box.height})`:`translate(${V}px, ${H}px) scale(${W})`,clipPath:Ct(p,{top:me,right:ye,bottom:ge,left:be},he)}}}}function co(t,e){t.style.transform=e.transform,t.style.clipPath=e.clipPath}class lo{contribute(e){const{resolved:n,physics:o,positionedParent:i,maxDistance:r,onComplete:c}=e;c(Wn(e.from,e.to));const s=n.pairs.flatMap(a=>{const d=ao(i,a,r,e.from,e.to);return d?[{pair:a,plan:d}]:[]});e.resolved={pairs:s.map(({pair:a})=>a)};const l=[];for(const{plan:a}of s){const{fromVisualEl:d,toVisualEl:p}=a,y=Hn(p),u=q(d,["opacity"]),m=q(p,["transform","transform-origin","clip-path","object-fit","border-radius","will-change"]);p.style.transform="none",p.style.transformOrigin="center center",p.style.willChange="transform, clip-path",a.resetRadius&&(p.style.borderRadius="0");const h=Nn(p,a.toContent,Y(i,p)),f=Y(i,p),w={box:{left:f.left+i.scrollLeft,top:f.top+i.scrollTop,width:f.width,height:f.height},scaleX:p.offsetWidth&&Math.abs(f.width-p.offsetWidth)>.5?f.width/p.offsetWidth:1,scaleY:p.offsetHeight&&Math.abs(f.height-p.offsetHeight)>.5?f.height/p.offsetHeight:1},g=(x,v)=>a.styleFor(x,v,w);co(p,g(0,1)),d.style.opacity="0",c(()=>{h(),m(),u(),y()}),l.push(new b.WebAnimation({element:p,integrator:S.IntegratorProvider.from(o),style:g}))}return{shared:l}}}function po(t){return[new lo,Zn[t.type]()]}const uo=t=>{const e=Jn[t.variant](),n=Qn,o={prepare:i=>{var l;const r=po(t),c=Promise.all([i.from,i.to]).then(([a,d])=>({pairs:io(a,d)})),s={from:i.from,to:i.to,resolved:c};for(const a of r)(l=a.prepare)==null||l.call(a,s);return c.then(a=>({resolved:a,strategies:r}))},animation:({from:i,to:r,context:c,resolved:s,strategies:l})=>{var h;if(s.pairs.length===0)return Z({shared:[],out:[],in:[]});const a=[],d=f=>{a.push(f)},p={from:i,to:r,resolved:s,physics:e,positionedParent:c.positionedParent,maxDistance:n,onComplete:d},y={shared:[],out:[],in:[]};for(const f of l){const w=(h=f.contribute)==null?void 0:h.call(f,p);if(w)for(const g of Object.keys(y))y[g].push(...w[g]??[])}const u=Z(y),m=u.onComplete;return u.onComplete=()=>{m==null||m();for(const f of Object.values(y).flat())f instanceof b.WebAnimation&&f.releaseFill();for(const f of a)try{f()}catch(w){console.error("[hero] cleanup error",w)}},u}};return E.defineTransition({forward:o,backward:o})};function fo(t={},e={}){const n=t.type??"static",o=t.variant??"default";return E.withOverride(uo({type:n,variant:o}),e.override)}const ho={spring:{stiffness:50,damping:30}},mo={spring:{stiffness:80,damping:25}},yo=(t={})=>{const e=t.physics??ho,n=t.initialRotation??45,o=t.initialScale??.01,i=t.rotationTriggerPoint??.8,r={prepare:({from:c,to:s,context:l})=>(c.then(a=>{a.style.opacity="1"}),s.then(a=>{const d=L(l,"to"),p=Math.min(d.width,d.height)*.4;a.style.setProperty("--max-border-radius",`${p}px`),a.style.setProperty("--border-radius-scale","1"),a.style.willChange="transform",a.style.backfaceVisibility="hidden";const y=d.left+d.width/2,u=d.top+d.height/2;a.style.transformOrigin=`${y}px ${u}px`,a.style.position="fixed",a.style.top=`${d.top}px`,a.style.left=`${d.left}px`,a.style.width=`${d.width}px`,a.style.height=`${d.height}px`,a.style.zIndex="1000",a.style.overflow="hidden",a.style.transform=`rotate(${n}deg) scale(${o}) translateZ(0)`,a.style.borderRadius="calc(var(--max-border-radius) * var(--border-radius-scale))",a.style.opacity="1"}),{}),animation:({from:c,to:s})=>{const l=new b.WebAnimation({element:c,integrator:S.IntegratorProvider.from(mo),style:(d,p)=>({opacity:p}),onComplete:()=>{c.style.opacity=""}}),a=new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(e),style:d=>{let p;if(d<=.05)p=o;else if(d<=i){const h=(d-.05)/(i-.05),f=Math.pow(h,9);p=o+(.8-o)*f}else{const h=(d-i)/(1-i);p=.8+.2*(1-Math.pow(1-h,3))}const y=.7;let u;if(d<=y)u=n;else{const h=(d-y)/(1-y),f=1-Math.pow(1-h,2);u=n*(1-f)}let m;if(d<=y)m=1;else{const h=(d-y)/(1-y);m=1-Math.pow(h,.5)}return{transform:`rotate(${u.toFixed(2)}deg) scale(${p.toFixed(4)}) translateZ(0)`,"--border-radius-scale":m.toFixed(4)}},onComplete:()=>{s.style.willChange="",s.style.backfaceVisibility="",s.style.removeProperty("--max-border-radius"),s.style.removeProperty("--border-radius-scale"),s.style.transform="",s.style.transformOrigin="",s.style.position="",s.style.zIndex="",s.style.top="",s.style.left="",s.style.width="",s.style.height="",s.style.overflow="",s.style.borderRadius=""}});return new b.MultiAnimation({out:l,in:a},{mode:"parallel"})}};return E.defineTransition({forward:r,backward:r})};function go(t={},e={}){return E.withOverride(yo(),e.override)}const bo={spring:{stiffness:100,damping:30}},wo=(t={})=>{const e=t.physics??bo,n={prepare:({from:o,to:i})=>(o.then(r=>{r.style.transformOrigin="center center",r.style.willChange="transform, opacity"}),i.then(r=>{r.style.opacity="0",r.style.transform="rotate(-180deg)",r.style.transformOrigin="center center",r.style.willChange="transform, opacity"}),{}),animation:({from:o,to:i})=>{const r=new b.WebAnimation({element:o,integrator:S.IntegratorProvider.from(e),style:s=>({transform:`rotate(${s*180}deg)`,opacity:s<.5?1:0}),onComplete:()=>{o.style.willChange="auto",o.style.transform="",o.style.transformOrigin="",o.style.opacity=""}}),c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(e),style:(s,l)=>({transform:`rotate(${-l*180}deg)`,opacity:s>.5?1:0}),onComplete:()=>{i.style.willChange="auto",i.style.transform="",i.style.transformOrigin="",i.style.opacity=""}});return new b.MultiAnimation({out:r,in:c},{mode:"parallel"})}};return E.defineTransition({forward:n,backward:n})};function So(t={},e={}){return E.withOverride(wo(),e.override)}const xo={spring:{stiffness:20,damping:8,doubleSpring:1,restDelta:.001,restSpeed:.001}},Co=(t={})=>{const e=t.physics??xo,n=t.directional??!0,o=i=>{const r=!n||i==="forward",c=r?_:T,s=r?T:_;return{prepare:({from:l,to:a})=>(l.then(d=>{d.style.zIndex=c,d.style.willChange="transform",d.style.backfaceVisibility="hidden",d.style.contain="layout paint",d.style.pointerEvents="none"}),a.then(d=>{d.style.willChange="transform",d.style.backfaceVisibility="hidden",d.style.contain="layout paint",d.style.position="relative",d.style.zIndex=s}),{}),animation:({from:l,to:a})=>{const d=l.offsetHeight,p=a.offsetHeight,y=window.innerHeight,u=Math.max(Math.min(d,p),y),m=new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(e),style:f=>({transform:`translate3d(0, ${r?-u*f:u*f}px, 0)`}),onComplete:()=>{l.style.willChange="auto",l.style.backfaceVisibility="",l.style.contain="",l.style.transform="",l.style.pointerEvents="",l.style.zIndex=""}}),h=new b.WebAnimation({element:a,integrator:S.IntegratorProvider.from(e),style:(f,w)=>({transform:`translate3d(0, ${r?w*u:w*-u}px, 0)`}),onComplete:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transform="",a.style.position==="relative"&&(a.style.position=""),a.style.zIndex===s&&(a.style.zIndex="")}});return[m,h].forEach(j),new b.MultiAnimation({out:m,in:h},{mode:"parallel"})}}};return E.defineTransition({forward:o("forward"),backward:o("backward")})};function Eo(t={},e={}){const{type:n="directional"}=t;return E.withOverride(Co({directional:n==="directional"}),e.override)}const $o={spring:{stiffness:200,damping:24}},vo={inertia:{acceleration:25,resistance:1.2}},ct=.2;function Ao(){return{enterPhysics:$o,exitPhysics:vo,background:{willChange:"transform, opacity",enterStyle:(t,e)=>({transform:`scale(${1-ct*t})`,opacity:e}),exitStyle:t=>({transform:`scale(${1-ct+ct*t})`,opacity:t})}}}const Po={spring:{stiffness:200,damping:24}},Io={inertia:{acceleration:25,resistance:1.2}},lt=.08,Ro=16,dt=.6,Oo=t=>`blur(${Math.max(0,t).toFixed(2)}px)`;function Mo(){return{enterPhysics:Po,exitPhysics:Io,background:{willChange:"transform, opacity",enterStyle:t=>({transform:`scale(${1-lt*t})`,opacity:1-(1-dt)*t}),exitStyle:t=>({transform:`scale(${1-lt+lt*t})`,opacity:dt+(1-dt)*t})},overlay:{willChange:"backdrop-filter",initialStyle:{position:"absolute",left:"0",width:"100%",pointerEvents:"none",backdropFilter:"blur(0px)",WebkitBackdropFilter:"blur(0px)"},style:(t,e)=>{const n=t==="enter"?e:1-e,o=Oo(Ro*n);return{backdropFilter:o,WebkitBackdropFilter:o}}}}}const _o={spring:{stiffness:190,damping:25}},To={spring:{stiffness:190,damping:25}};function Fo(){return{enterPhysics:_o,exitPhysics:To,background:{willChange:"",enterStyle:()=>({}),exitStyle:()=>({})}}}const ko={static:Fo(),"background-scale":Ao(),blur:Mo()},Do="static",Yo="transform",Lo=(t={})=>{const e=ko[t.type??Do],n=e.background,o=e.overlay,i=n.willChange!=="",r=c=>{const s=c==="forward"?"enter":"exit",l=s==="enter"?"to":"from",a=s==="enter"?"from":"to",d=s==="enter"?e.enterPhysics:e.exitPhysics;return{prepare:({from:p,to:y,context:u,createElement:m})=>{const h={from:p,to:y}[l],f={from:p,to:y}[a];h.then(g=>{g.style.willChange=Yo,g.style.backfaceVisibility="hidden",g.style.contain="layout paint",g.style.zIndex=T,s==="enter"?g.style.position="relative":g.style.pointerEvents="none"}),f.then(g=>{i&&(g.style.willChange=n.willChange,g.style.backfaceVisibility="hidden",g.style.contain="layout paint"),g.style.zIndex=_,s==="enter"?g.style.pointerEvents="none":g.style.position="relative"});let w;return o&&(w=m("sheet-overlay"),Object.assign(w.style,o.initialStyle),w.style.willChange=o.willChange,u.positionedParent.appendChild(w)),{overlay:w}},animation:({from:p,to:y,context:u,overlay:m})=>{const h={from:p,to:y}[l],f={from:p,to:y}[a],w=L(u,l),g=()=>{p.style.pointerEvents="",p.style.zIndex=""},x=()=>{const C=s==="enter"?T:_;y.style.position==="relative"&&(y.style.position=""),y.style.zIndex===C&&(y.style.zIndex="")};h.style.clipPath=`inset(${w.top}px 0 calc(100% - ${w.top+w.height}px) 0)`;const v=s==="enter"?(C,$)=>({transform:`translate3d(0, ${$*w.height}px, 0)`}):C=>({transform:`translate3d(0, ${C*w.height}px, 0)`}),A=new b.WebAnimation({element:h,integrator:S.IntegratorProvider.from(d),style:v,onComplete:()=>{h.style.willChange="auto",h.style.backfaceVisibility="",h.style.contain="",h.style.clipPath="",h.style.transform="",g(),x()}});j(A);const R={sheet:A,background:new b.MultiAnimation([]),overlay:new b.MultiAnimation([])};if(i){const C=f.scrollHeight;C>0&&(f.style.height=`${C}px`);const $=L(u,a),O=$.left+$.width/2,M=$.top+$.height/2;f.style.clipPath=`inset(${$.top}px 0 calc(100% - ${$.top+$.height}px) 0)`,f.style.transformOrigin=`${O}px ${M}px`;const P=s==="enter"?(H,W)=>n.enterStyle(H,W):H=>n.exitStyle(H),V=new b.WebAnimation({element:f,integrator:S.IntegratorProvider.from(d),style:P,onComplete:()=>{f.style.willChange="auto",f.style.backfaceVisibility="",f.style.contain="",f.style.clipPath="",f.style.transformOrigin="",f.style.transform="",f.style.opacity="",f.style.height=""}});j(V),R.background=V}if(m&&o){m.style.zIndex=te;const C=Jt(u,"to");m.style.top=`${C.top}px`,m.style.height=`${C.height}px`,R.overlay=new b.WebAnimation({element:m,integrator:S.IntegratorProvider.from(d),style:$=>o.style(s,$)})}return new b.MultiAnimation(R,{mode:"parallel"})}}};return E.defineTransition({forward:r("forward"),backward:r("backward")})};function Ho(t){return t==="scale"||t==="background-scale"?"background-scale":t==="blur"?"blur":"static"}function Wo(t={},e={}){const n=t.type,o=Ho(n);return E.withOverride(Lo({type:o}),e.override)}const No=(t={})=>{const e=t.physics??D.SLIDE_PHYSICS,n=o=>{const i=o==="forward"?100:-100;return{prepare:({from:r,to:c})=>(r.then(s=>{s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.pointerEvents="none"}),c.then(s=>{s.style.transform=`translate3d(${i}%, 0, 0)`,s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint"}),{}),animation:({from:r,to:c})=>{const s=new b.WebAnimation({element:r,integrator:S.IntegratorProvider.from(e),style:a=>({transform:`translate3d(${100*D.pageMotionStyle("slide","out",o,a).x}%, 0, 0)`}),onComplete:()=>{r.style.willChange="auto",r.style.backfaceVisibility="",r.style.contain="",r.style.transform="",r.style.pointerEvents=""}}),l=new b.WebAnimation({element:c,integrator:S.IntegratorProvider.from(e),style:a=>({transform:`translate3d(${100*D.pageMotionStyle("slide","in",o,a).x}%, 0, 0)`}),onComplete:()=>{c.style.willChange="auto",c.style.backfaceVisibility="",c.style.contain="",c.style.transform=""}});return new b.MultiAnimation({out:s,in:l},{mode:"parallel"})}}};return E.defineTransition({forward:n("forward"),backward:n("backward")})};function zo(t={},e={}){return E.withOverride(No(),e.override)}const Xo={spring:{stiffness:17,damping:6}},pt=20,Q=800,Vo=(t={})=>{const e=t.physics??Xo,n={prepare:({from:o,to:i})=>(o.then(r=>{r.style.willChange="transform",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.pointerEvents="none",r.style.transform=`perspective(${Q}px) rotateY(0deg) translate3d(0%, 0, 0)`}),i.then(r=>{r.style.willChange="transform",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.transform=`perspective(${Q}px) rotateY(${pt}deg) translate3d(-100%, 0, 0)`}),{}),animation:({from:o,to:i})=>{const r=new b.WebAnimation({element:o,integrator:S.IntegratorProvider.from(e),style:s=>{const l=-s*pt,a=s*100;return{transform:`perspective(${Q}px) rotateY(${l}deg) translate3d(${a}%, 0, 0)`}},onComplete:()=>{o.style.transform="",o.style.willChange="auto",o.style.backfaceVisibility="",o.style.contain="",o.style.pointerEvents=""}}),c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(e),style:(s,l)=>{const a=l*pt,d=-l*100;return{transform:`perspective(${Q}px) rotateY(${a}deg) translate3d(${d}%, 0, 0)`}},onComplete:()=>{i.style.transform="",i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}});return new b.MultiAnimation({out:r,in:c},{mode:"sequence"})}};return E.defineTransition({forward:n,backward:n})};function Bo(t={},e={}){return E.withOverride(Vo(),e.override)}function Uo(t,e){return e.left>=t.left-.01&&e.top>=t.top-.01&&e.left+e.width<=t.left+t.width+.01&&e.top+e.height<=t.top+t.height+.01}function se(t){const e=()=>({enterContent:t.enterRect,exitContent:t.exitRect,startWindow:t.enterRect,scaleX:t.exitRect.width/t.enterRect.width,scaleY:t.exitRect.height/t.enterRect.height}),{enterMedia:n,exitMedia:o}=t;if(!n||!o||!oe(n,o))return e();const i=n.content,r=o.content;if(i.width<=0||i.height<=0||r.width<=0||r.height<=0)return e();const c=r.width/i.width,s=r.height/i.height,l=re(i,r,o.window,c,s);return Uo(n.window,l)?{enterContent:i,exitContent:r,startWindow:l,scaleX:c,scaleY:s,exitCornerRadii:o.cornerRadii}:e()}function ae(t,e){return{top:t.top,right:e.width-(t.left+t.width),bottom:e.height-(t.top+t.height),left:t.left}}function Zo(t,e,n){return{x:t/Math.max(Math.abs(e),1e-6),y:t/Math.max(Math.abs(n),1e-6)}}function ce(t,e,n,o,i,r){return(n??[t]).map(c=>Zo(Math.max(0,c*o+e*(1-o)),i,r))}function jo(t){const{pageRect:e,scrollOffset:n,enterRadius:o,exitRadius:i}=t,r=se(t),{enterContent:c,exitContent:s,startWindow:l,scaleX:a,scaleY:d}=r,p=s.left-c.left+(s.width-c.width)/2-n.x,y=s.top-c.top+(s.height-c.height)/2-n.y,u=ae(l,e);return{transformOrigin:`${F(c)}px ${k(c)}px`,animate:m=>{const h=1-m,f=1+(a-1)*h,w=1+(d-1)*h,g=ce(i,o,r.exitCornerRadii,h,f,w);return{clipPath:Ct(e,{top:u.top*h,right:u.right*h,bottom:u.bottom*h,left:u.left*h},g),transform:`translate(${p*h}px, ${y*h}px) scale(${f}, ${w})`}}}}function Go(t){const{pageRect:e,scrollOffset:n,enterRadius:o,exitRadius:i}=t,r=se(t),{enterContent:c,exitContent:s,startWindow:l,scaleX:a,scaleY:d}=r,p=s.left-c.left+(s.width-c.width)/2+n.x,y=s.top-c.top+(s.height-c.height)/2+n.y,u=ae(l,e);return{transformOrigin:`${F(c)}px ${k(c)}px`,animate:m=>{const h=1-m,f=1+(a-1)*h,w=1+(d-1)*h,g=ce(i,o,r.exitCornerRadii,h,f,w);return{clipPath:Ct(e,{top:u.top*h,right:u.right*h,bottom:u.bottom*h,left:u.left*h},g),transform:`translate(${p*h-n.x}px, ${y*h}px) scale(${f}, ${w})`}}}}const qo={spring:{stiffness:380,damping:30,restDelta:.1,restSpeed:.1,doubleSpring:{stiffness:260,damping:30}}},le=.12,Ko=18;function Jo(){return{transformOrigin:"50% 50%",animate:t=>{const e=1-t;return{transform:`scale(${1-le*e})`}}}}function Qo(){return{transformOrigin:"50% 50%",animate:t=>{const e=1-t;return{transform:`scale(${1-le*e})`}}}}const ut={willChange:"backdrop-filter",initialStyle:{position:"absolute",left:"0",width:"100%",pointerEvents:"none",backdropFilter:"blur(0px)",WebkitBackdropFilter:"blur(0px)"},style:(t,e)=>{const n=t==="enter"?e:1-e,o=`blur(${Ko*n}px)`;return{backdropFilter:o,WebkitBackdropFilter:o}}};class ti{constructor(){I(this,"name","background");I(this,"physics",qo)}contribute(e){const{from:n,to:o,resolved:i,physics:r}=e,c=i.mode==="enter",s=c?n:o,l=c?Jo():Qo();return l&&(s.style.transformOrigin=l.transformOrigin),[new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(r),style:c?(a,d)=>l.animate(d):a=>l.animate(a)})]}}class ei{constructor(){I(this,"name","overlay")}prepare(e){const n=e.createElement("zoom-overlay");return Object.assign(n.style,ut.initialStyle),n.style.willChange=ut.willChange,e.context.positionedParent.appendChild(n),{overlay:n}}contribute(e){const n=e.extras.overlay;if(!n)return[];n.style.zIndex=te;const o=Jt(e.context,"to");return n.style.top=`${o.top}px`,n.style.height=`${o.height}px`,[new b.WebAnimation({element:n,integrator:S.IntegratorProvider.from(e.physics),style:i=>ut.style(e.resolved.mode,i)})]}}const ni={spring:{stiffness:380,damping:30,doubleSpring:{stiffness:260,damping:30}}};function oi({enterRect:t,exitRect:e,scrollOffset:n}){const o=t.left-e.left+(t.width-e.width)/2+n.x,i=t.top-e.top+(t.height-e.height)/2+n.y,r=t.width/e.width,c=t.height/e.height,s=Math.max(r,c);return{transformOrigin:`${e.left+e.width/2}px ${e.top+e.height/2}px`,animate:l=>{const a=1-l;return{transform:`translate(${o*a-n.x}px, ${i*a}px) scale(${1+(s-1)*a})`}}}}function ii({enterRect:t,exitRect:e,scrollOffset:n}){const o=t.left-e.left+(t.width-e.width)/2-n.x,i=t.top-e.top+(t.height-e.height)/2-n.y,r=t.width/e.width,c=t.height/e.height,s=Math.max(r,c);return{transformOrigin:`${e.left+e.width/2}px ${e.top+e.height/2}px`,animate:l=>{const a=1-l;return{transform:`translate(${o*a}px, ${i*a}px) scale(${1+(s-1)*a})`}}}}class ri{constructor(){I(this,"name","background");I(this,"physics",ni)}contribute(e){const{from:n,to:o,resolved:i,input:r,physics:c}=e,s=i.mode==="enter",l=s?n:o,a=s?oi(r):ii(r);return a&&(l.style.transformOrigin=a.transformOrigin),[new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(c),style:s?(d,p)=>a.animate(p):d=>a.animate(d)})]}}const si={spring:{stiffness:530,damping:34,doubleSpring:1}};class ai{constructor(){I(this,"name","background");I(this,"physics",si)}contribute(e){return[]}}const ci={expand:()=>new ri,static:()=>new ai,blur:()=>new ti};function li(t){return ci[t]()}const wt="data-zoom-enter-key",Ut="data-zoom-exit-key",Zt="data-zoom-radius";function di(t,e){return Math.abs(t.left-e.left)<.01&&Math.abs(t.top-e.top)<.01&&Math.abs(t.width-e.width)<.01&&Math.abs(t.height-e.height)<.01}function pi(t,e){const n=[];let o=e;for(;o&&o!==t;){const i=o.parentElement;if(!i)break;for(const r of Array.from(i.children))r!==o&&r instanceof HTMLElement&&n.push(r);o=i}return n}function jt(t){const e=t.querySelectorAll(`[${wt}]`);return e.length!==1?null:e[0]}function Gt(t,e){const n=t.querySelectorAll(`[${Ut}]`);for(const o of n)if(o.getAttribute(Ut)===e)return o;return null}function ui(t,e,n){if(n==="forward"){const c=jt(e);if(!c)return null;const s=c.getAttribute(wt);if(!s)return null;const l=Gt(t,s);return l?{mode:"enter",enterEl:c,exitEl:l}:null}const o=jt(t);if(!o)return null;const i=o.getAttribute(wt);if(!i)return null;const r=Gt(e,i);return r?{mode:"exit",enterEl:o,exitEl:r}:null}function fi(t,e,n,o){const i=t.mode==="enter"?n:e,r=t.mode==="enter"?e:n,c=Y(i,t.enterEl),s=Y(r,t.exitEl),l=bt(t.enterEl,c,f=>Y(i,f),{clipRoot:i,legacyRadiusAttribute:Zt}),a=bt(t.exitEl,s,f=>Y(r,f),{clipRoot:r,legacyRadiusAttribute:Zt}),[d,p]=ie(l,a),y=d.contentAware&&p.contentAware,u=t.mode==="enter"?n.getBoundingClientRect():e.getBoundingClientRect(),m={left:0,top:0,width:u.width,height:u.height},h=d.radiusSource==="legacy"||di(d.window,m)?d.radius:0;return{enterRect:c,exitRect:s,...y?{enterMedia:d,exitMedia:p}:{},pageRect:u,scrollOffset:o,enterRadius:h,exitRadius:p.radius}}const ft=new WeakMap;function hi(t){const e=ft.get(t)??{opacity:t.style.opacity,users:0};e.users++,ft.set(t,e),t.style.opacity="0";let n=!1;return()=>{n||(n=!0,!(--e.users>0)&&(t.style.opacity==="0"&&(t.style.opacity=e.opacity),ft.delete(t)))}}class mi{constructor(){I(this,"name","tile")}prepare(e){e.from.then(n=>{n.style.willChange="transform, clip-path, opacity",n.style.backfaceVisibility="hidden",n.style.contain="layout paint"})}contribute(e){const{from:n,to:o,resolved:i,input:r,physics:c,onComplete:s}=e,l=i.mode==="enter",a=l?jo(r):Go(r),d=l?o:n,p=l?"t":"u";s(hi(i.exitEl)),a&&(d.style.transformOrigin=a.transformOrigin);const y=l?_:T,u=l?T:_,m=n.style.zIndex;n.style.zIndex=y;const h=o.style.zIndex,f=o.style.position;return o.style.zIndex=u,o.style.position="relative",s(()=>{d.style.willChange="auto",d.style.backfaceVisibility="",d.style.transformOrigin="",d.style.contain="",n.style.zIndex=m,o.style.zIndex===u&&(o.style.zIndex=h),o.style.position==="relative"&&(o.style.position=f),o.style.transformOrigin="",n.style.willChange="auto",n.style.backfaceVisibility="",n.style.transformOrigin="",n.style.contain="",n.style.transform="",n.style.clipPath=""}),[new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(c),style:p==="t"?w=>a.animate(w):(w,g)=>a.animate(g)})]}}class yi{constructor(){I(this,"name","content")}contribute(e){const{resolved:n,physics:o,from:i,to:r,onComplete:c}=e,s=n.mode==="enter"?r:i,l=pi(s,n.enterEl);if(l.length===0)return[];const a=l.map(d=>d.style.opacity);if(n.mode==="enter")for(const d of l)d.style.opacity="0";return c(()=>{for(let d=0;d<l.length;d++){const p=l[d];p&&(p.style.opacity=a[d]??"")}}),l.map(d=>new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(o),style:(p,y)=>({opacity:n.mode==="enter"?p:y})}))}}class gi{constructor(){I(this,"name","content")}contribute(){return[]}}const bi={default:()=>new gi,fade:()=>new yi};function wi(t){return bi[t]()}function Si(t){const e=li(t.type);return{strategies:[new mi,e,wi(t.variant),...t.type==="blur"?[new ei]:[]],physics:e.physics}}const xi=t=>{const{strategies:e,physics:n}=Si(t),o=i=>({prepare:r=>{const c={from:r.from,to:r.to,context:{positionedParent:r.context.positionedParent},createElement:r.createElement},s={};for(const l of e){if(!l.prepare)continue;const a=l.prepare(c);a&&Object.assign(s,a)}return s},animation:({from:r,to:c,context:s,...l})=>{var w;const a=ui(r,c,i);if(!a)return Z({tile:[],background:[],content:[],overlay:[]});const d=fi(a,r,c,s.scrollOffset),p=[],u={from:r,to:c,resolved:a,input:d,physics:n,context:s,extras:l,onComplete:g=>{p.push(g)}},m={tile:[],background:[],content:[],overlay:[]};for(const g of e)m[g.name].push(...((w=g.contribute)==null?void 0:w.call(g,u))??[]);const h=Object.values(m).flat(),f=Z(m);f.onComplete=()=>{for(const g of p)try{g()}catch(x){console.error("[zoom] cleanup error",x)}};for(const g of h)g instanceof b.WebAnimation&&j(g);return f}});return E.defineTransition({forward:o("forward"),backward:o("backward")})};function Ci(t){const e=t.type??"static",n=t.variant??(t.fade?"fade":"default");return{type:e,variant:n}}function Ei(t={},e={}){const n=Ci(t);return E.withOverride(xi(n),e.override)}const qt=1/60,$i=600;function vi(t,e){const n=Math.sqrt(t),o=e/(2*n),i=2*Math.PI/n,r=o<=1?1-o:1/o-1;return{duration:i,bounce:r,zeta:o}}function X(t){if(!Number.isFinite(t.stiffness)||t.stiffness<=0)throw new Error("spring(): stiffness must be finite and > 0");if(!Number.isFinite(t.damping)||t.damping<0)throw new Error("spring(): damping must be finite and >= 0");for(const[e,n]of[["restDelta",t.restDelta],["restSpeed",t.restSpeed]])if(n!==void 0&&(!Number.isFinite(n)||n<=0))throw new Error(`spring(): ${e} must be finite and > 0`);return S.IntegratorProvider.from({spring:t})}function Ai(t){let e={position:0,velocity:0};for(let n=1;n<=$i;n++)if(e=t.step(e,1,qt),e.position>=1)return n*qt*1e3;return 1/0}function de(t){const{duration:e,resistance:n=1.5,restDelta:o}=t;if(!Number.isFinite(e)||!(e>0))throw new Error("easeIn(): duration must be finite and > 0");const i=e*1e3;let r=.01,c=1e6;for(let s=0;s<60;s++){const l=Math.sqrt(r*c),a=new S.InertiaIntegrator({acceleration:l,resistance:n,restDelta:o});Ai(a)>i?r=l:c=l}return new S.InertiaIntegrator({acceleration:c,resistance:n,restDelta:o})}class Et{constructor(e,n){if(this.inner=e,this.factor=n,!Number.isFinite(n)||!(n>0))throw new Error("scale(): factor must be finite and > 0")}step(e,n,o){const i=Math.max(1,Math.ceil(this.factor)),r=o*this.factor/i;let c={...e,velocity:e.velocity/this.factor};for(let s=0;s<i;s++)c=this.inner.step(c,n,r);return{...c,velocity:c.velocity*this.factor}}isSettled(e,n){return this.inner.isSettled({...e,velocity:e.velocity/this.factor},n)}}function Pi(t,e){return new Et(t,e)}function pe(t){const e=S.simulate(t,0,1,0),n=e.length?e[e.length-1].time:0;if(t instanceof Et){const o=pe(t.inner);return{...o,kind:"scaled",duration:o.duration===void 0?void 0:o.duration/t.factor,settleMs:n}}return t instanceof S.SpringIntegrator||t instanceof S.DoubleSpringIntegrator?{kind:t instanceof S.SpringIntegrator?"spring":"double-spring",...vi(t.stiffness,t.damping),settleMs:n}:t instanceof S.InertiaIntegrator?{kind:"inertia",settleMs:n}:{kind:"custom",settleMs:n}}const Ii=X({stiffness:246.74011002723395,damping:31.41592653589793}),Ri=X({stiffness:438.6490844928604,damping:35.604716740684324}),Oi=X({stiffness:194.9551486634935,damping:19.54768762233649}),Mi=X({stiffness:130.5071656342394,damping:22.84794657156213}),_i=X({stiffness:986.9604401089358,damping:62.83185307179586}),Ti=de({duration:.2});exports.defineTransition=E.defineTransition;exports.withOverride=E.withOverride;exports.Animation=b.Animation;exports.MultiAnimation=b.MultiAnimation;exports.WebAnimation=b.WebAnimation;exports.DoubleSpringIntegrator=S.DoubleSpringIntegrator;exports.InertiaIntegrator=S.InertiaIntegrator;exports.IntegratorProvider=S.IntegratorProvider;exports.SpringIntegrator=S.SpringIntegrator;exports.LinearIntegrator=Kt;exports.ScaledIntegrator=Et;exports.accelerate=Ti;exports.axis=Je;exports.blind=rn;exports.bouncy=Oi;exports.describeIntegrator=pe;exports.drill=yn;exports.easeIn=de;exports.fade=bn;exports.film=Pn;exports.gentle=Mi;exports.hero=fo;exports.jaemin=go;exports.rotate=So;exports.scale=Pi;exports.scroll=Eo;exports.sheet=Wo;exports.slide=zo;exports.smooth=Ii;exports.snappy=Ri;exports.spring=X;exports.strip=Bo;exports.swift=_i;exports.zoom=Ei;
35
+ )`}function mt(t,e,n,o,i){const r=n/1e3;return new b.WebAnimation({element:t,integrator:new se({durationSec:r}),lowerBound:0,upperBound:1,style:c=>o(Mn(e,c)),onComplete:i})}const kn=(t={})=>{var r;const e=((r=t.border)==null?void 0:r.color)??In,n=Pn,o=t.physics,i={prepare:({from:c,to:s,context:l})=>{const a=z(l,"from"),d=z(l,"to"),u=Ot(document.body,l.positionedParent),y=_n(e,{...a,top:u.top});for(const p of["topLeft","topRight","bottomLeft","bottomRight"])l.positionedParent.appendChild(y[p]);return c.then(p=>{Kt(p,a),Jt(p,a),p.style.transform=`translateY(${-a.top}px)`}),s.then(p=>{Kt(p,d),Jt(p,d),p.style.transform=`translateY(${-d.top+d.height}px) scale(${n})`}),{borders:y,fromRect:a,toRect:d}},animation:({from:c,to:s,context:l,borders:a,fromRect:d,toRect:u})=>{const y=qt({rect:d,scale:n,direction:"out",override:o}),p=qt({rect:u,scale:n,direction:"in",override:o}),f=mt(c,y.snapshots,y.totalDuration,C=>({transform:`translateY(${C.translateY}px) scale(${C.scale})`}),()=>{c.style.clipPath="",c.style.transformOrigin="",c.style.transform=""}),h=mt(s,p.snapshots,p.totalDuration,C=>({transform:`translateY(${C.translateY}px) scale(${C.scale})`}),()=>{s.style.clipPath="",s.style.transformOrigin="",s.style.transform=""}),m=Tn.map(([C,$],v)=>{const P=["topLeft","topRight","bottomLeft","bottomRight"][v];return mt(a[P],y.snapshots,y.totalDuration,x=>{const A=(d.width-d.width*x.scale)/2*.7*C,O=(d.height-d.height*x.scale)/2*.7*$;return{transform:`translate(${A}px, ${O}px)`}})}),w=q({out:f,in:h,borders:m}),g=w.onComplete;return w.onComplete=()=>{g==null||g();const C=l.positionedParent;for(const $ of["topLeft","topRight","bottomLeft","bottomRight"]){const v=a[$];v.parentElement===C&&C.removeChild(v)}},w}};return E.defineTransition({forward:i,backward:i})};function Fn(t={},e={}){const{options:n}=t,o=(n==null?void 0:n.borderColor)!==void 0?{border:{color:n.borderColor}}:void 0;return E.withOverride(kn(o),e.override)}function Dn(t){if(!t)return null;if(t.includes("/")){const n=t.split("/");if(n.length!==2)return null;const o=Number.parseFloat(n[0]??""),i=Number.parseFloat(n[1]??"");return Number.isFinite(o)&&Number.isFinite(i)&&o>0&&i>0?o/i:null}const e=Number.parseFloat(t);return Number.isFinite(e)&&e>0?e:null}function Yn(t){return t==="contain"||t==="cover"?t:null}function Et(t){return t.tagName==="IMG"}function de(t){var n;if(Et(t))return t;if(t.tagName==="PICTURE"||t.tagName==="VIDEO")return null;const e=[];for(const o of Array.from(t.children)){const i=o;((n=i.getAttribute)==null?void 0:n.call(i,"data-ssgoi-crossfade"))==null&&Et(i)&&e.push(i)}return e.length===1?e[0]??null:null}function Ln(t){var l,a;if(!Et(t))return null;const e=t,n=e.naturalWidth,o=e.naturalHeight;if(typeof n=="number"&&typeof o=="number"&&Number.isFinite(n)&&Number.isFinite(o)&&n>0&&o>0)return n/o;const i=((l=t.getAttribute("width"))==null?void 0:l.trim())??"",r=((a=t.getAttribute("height"))==null?void 0:a.trim())??"",c=i===""?Number.NaN:Number(i),s=r===""?Number.NaN:Number(r);return Number.isFinite(c)&&Number.isFinite(s)&&c>0&&s>0?c/s:null}function Wn(t){const e=t.trim().toLowerCase().replace(/\s+/g," ");return e===""||e==="center"||e==="center center"||e==="50% 50%"}function J(t){if(typeof getComputedStyle=="function")try{return getComputedStyle(t)}catch{}return t.style}function Hn(t){const e=J(t),n=Wn(e.objectPosition??"");return{fit:n?Yn(e.objectFit??null):null,centered:n}}function Mt(t){if(!t)return 0;const e=/^(-?(?:\d+\.?\d*|\.\d+))px$/.exec(t.trim());if(!e)return null;const n=Number.parseFloat(e[1]??"");return Number.isFinite(n)&&n>=0?n:null}function vt(t){const e=J(t),n=[e.borderTopLeftRadius,e.borderTopRightRadius,e.borderBottomRightRadius,e.borderBottomLeftRadius].map(Mt),o=n[0];if(o==null)return{radius:0,supported:!1};const i=n.every(r=>r!==null&&Math.abs(r-o)<.001);return{radius:i?o:0,supported:i}}function zn(t,e){var i;if(!e)return null;const n=(i=t.getAttribute(e))==null?void 0:i.trim();if(n==null||n==="")return null;const o=Number.parseFloat(n);return Number.isFinite(o)&&o>=0?o:null}function Nn(t){const e=J(t);return[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft,e.borderTopWidth,e.borderRightWidth,e.borderBottomWidth,e.borderLeftWidth].every(o=>o?Mt(o)===0:!0)}function Vn(t){const e=J(t),n=o=>o==="hidden"||o==="clip";return n(e.overflowX)&&n(e.overflowY)}function L(t){return t.left+t.width/2}function W(t){return t.top+t.height/2}function B(t,e){return{top:Math.max(0,e.top-t.top),right:Math.max(0,t.left+t.width-(e.left+e.width)),bottom:Math.max(0,t.top+t.height-(e.top+e.height)),left:Math.max(0,e.left-t.left)}}function $t(t,e){const n=Math.max(t.left,e.left),o=Math.max(t.top,e.top),i=Math.min(t.left+t.width,e.left+e.width),r=Math.min(t.top+t.height,e.top+e.height);return i>n&&r>o?{left:n,top:o,width:i-n,height:r-o}:null}function Z(t,e){return Math.abs(t.left-e.left)<.01&&Math.abs(t.top-e.top)<.01&&Math.abs(t.width-e.width)<.01&&Math.abs(t.height-e.height)<.01}function Xn(t,e,n){const o=t.width/t.height;let i,r;return n==="contain"?o>e?(r=t.height,i=r*e):(i=t.width,r=i/e):o>e?(i=t.width,r=i/e):(r=t.height,i=r*e),{left:t.left+(t.width-i)/2,top:t.top+(t.height-r)/2,width:i,height:r}}function ue(t,e,n){const o=e!==null&&n!==null&&t.width>0&&t.height>0?Xn(t,e,n):t,i=n==="contain"?o:t;return{bbox:t,content:o,window:i,clipInset:B(o,i),aspectRatio:e,fit:n,radius:0,radiusSource:"none",bboxRadius:0,bboxRadiusSource:"none",contentAware:e!==null&&n!==null,mediaElement:null}}function Pt(t,e,n){return{...ue(t,null,null),radius:e,radiusSource:n,bboxRadius:e,bboxRadiusSource:n}}function pe(t,e){const n=t.aspectRatio,o=e.aspectRatio;return t.contentAware&&e.contentAware&&n!==null&&o!==null&&Math.abs(n-o)/Math.max(n,o)<.01}function Qt(t){return Pt(t.bbox,t.bboxRadius,t.bboxRadiusSource)}function fe(t,e){return pe(t,e)?[t,e]:[Qt(t),Qt(e)]}function Bn(t,e,n,o){const i=de(t),r=i?n(i):e,c=o.legacyAspectRatioAttribute?Dn(t.getAttribute(o.legacyAspectRatioAttribute)??(i==null?void 0:i.getAttribute(o.legacyAspectRatioAttribute))??null):null,s=c??(i?Ln(i):null),l=i?Hn(i):{fit:null,centered:!0},a=l.centered&&(i===null||Nn(i))?l.fit??(c!==null?o.fallbackFit??null:null):null,d=ue(r,s,a),u=Vn(t),p=i!==null&&i!==t&&u?$t(d.window,e):d.window,f=zn(t,o.legacyRadiusAttribute),h=i===t||u,m=h?vt(t):{radius:0,supported:!0},w=f??m.radius,g=f!==null?"legacy":m.supported?m.radius>0?"computed":"none":"unsupported",C=[];p&&h&&Z(p,e)&&C.push(m),p&&i&&Z(p,r)&&C.push(vt(i));const $=C.every(A=>A.supported),v=Math.max(0,...C.map(A=>A.radius)),P=f??v,x=f!==null?"legacy":$?v>0?"computed":"none":"unsupported";return!p||x==="unsupported"?Pt(e,w,g):{...d,bbox:e,window:p,clipInset:B(d.content,p),radius:P,radiusSource:x,bboxRadius:w,bboxRadiusSource:g,mediaElement:d.contentAware?i:null}}function et(t,e,n,o){const i=Bn(t,e,n,o);if(!o.clipRoot||i.radiusSource==="unsupported")return i;let r=i.window,c=i.radius,s=[c,c,c,c],l=i.radiusSource,a=t.parentElement;for(;a&&a!==o.clipRoot;){const u=J(a),y=h=>h==="hidden"||h==="clip"||h==="auto"||h==="scroll",p=y(u.overflowX),f=y(u.overflowY);if(p||f){if(![u.borderTopWidth,u.borderRightWidth,u.borderBottomWidth,u.borderLeftWidth].every(x=>Mt(x)===0)||a.offsetWidth&&a.clientWidth&&a.offsetWidth-a.clientWidth>1||a.offsetHeight&&a.clientHeight&&a.offsetHeight-a.clientHeight>1)return i;const m=n(a),w={left:p?m.left:r.left,top:f?m.top:r.top,width:p?m.width:r.width,height:f?m.height:r.height},g=$t(r,w);if(!g)return i;const C=vt(a);if(!C.supported)return i;if(p&&f&&Z(r,m))l!=="legacy"&&(c=Math.max(c,C.radius),s=s.map(x=>Math.max(x,C.radius)),c>0&&(l="computed"));else if(C.radius>0){const x={left:m.left+C.radius,top:m.top+C.radius,width:m.width-2*C.radius,height:m.height-2*C.radius};if(!Z($t(r,x)??m,r))return i}const $=B(r,g),v=[[$.top,$.left],[$.top,$.right],[$.bottom,$.right],[$.bottom,$.left]];for(let x=0;x<4;x++){const A=Math.max(...v[x]),O=s[x];if(A>.01&&A<O)return i;A>.01&&(s[x]=0)}const P=Math.max(...s);if(g.width<P||g.height<P)return i;r=g}a=a.parentElement}const d=Z(i.bbox,r);return{...i,window:r,clipInset:B(i.content,r),radius:c,radiusSource:l,...s.some(u=>u!==c)?{cornerRadii:s}:{},...d?{bboxRadius:c,bboxRadiusSource:l}:{}}}function he(t,e,n,o,i){const r=n.width/o,c=n.height/i;return{left:L(t)+(L(n)-L(e))/o-r/2,top:W(t)+(W(n)-W(e))/i-c/2,width:r,height:c}}const Un={enter:"contain",exit:"cover",legacy:"contain"};function V(t){return Un[t]}const nt="data-ssgoi-crossfade",X=t=>Math.min(1,Math.max(0,t)),gt=new WeakMap;function ot(t){const e=gt.get(t)??{value:t.style.getPropertyValue("opacity"),priority:t.style.getPropertyPriority("opacity"),opacity:Number.parseFloat(getComputedStyle(t).opacity),users:new Set},n={};e.users.add(n),gt.set(t,e);let o=!1;return{opacity:Number.isFinite(e.opacity)?e.opacity:1,set:i=>{n.value=i,t.style.opacity=String(i)},restore:()=>{if(!o){if(o=!0,e.users.delete(n),e.users.size>0){const i=Array.from(e.users),r=i[i.length-1];(r==null?void 0:r.value)!==void 0&&(t.style.opacity=String(r.value));return}e.value?t.style.setProperty("opacity",e.value,e.priority):t.style.removeProperty("opacity"),gt.delete(t)}}}}function Tt(t){const e=t.cloneNode(!0),n=(o,i)=>{const r=getComputedStyle(o),c=i.style;for(const l of Array.from(r))c.setProperty(l,r.getPropertyValue(l));for(const{name:l}of Array.from(i.attributes))(l==="id"||l.startsWith("data-hero-")||l.startsWith("data-zoom-"))&&i.removeAttribute(l);if(o.tagName==="IMG"){const l=o;l.currentSrc&&(i.removeAttribute("srcset"),i.removeAttribute("sizes"),i.setAttribute("src",l.currentSrc)),i.setAttribute("loading","eager")}c.animation="none",c.transition="none";const s=Array.from(i.children);Array.from(o.children).forEach((l,a)=>{const d=s[a];d&&(l.hasAttribute(nt)||l.hasAttribute("data-hero-placeholder")?d.remove():n(l,d))})};return n(t,e),e.setAttribute(nt,""),e.setAttribute("aria-hidden","true"),e.setAttribute("inert",""),Object.assign(e.style,{position:"absolute",left:"0",top:"0",right:"auto",bottom:"auto",margin:"0",minWidth:"0",minHeight:"0",maxWidth:"none",maxHeight:"none",boxSizing:"border-box",transform:"none",translate:"none",rotate:"none",scale:"none",transformOrigin:"center center",pointerEvents:"none",willChange:"transform, clip-path, opacity"}),e}function It(t,e){const n=Y(t,e);return{box:{left:n.left+t.scrollLeft,top:n.top+t.scrollTop,width:n.width,height:n.height},scaleX:e.offsetWidth&&Math.abs(n.width-e.offsetWidth)>.5?n.width/e.offsetWidth:1,scaleY:e.offsetHeight&&Math.abs(n.height-e.offsetHeight)>.5?n.height/e.offsetHeight:1}}function jn(t,e){const{box:n,scaleX:o,scaleY:i}=e,r=(t.left+t.width/2-n.left-n.width/2)/o,c=(t.top+t.height/2-n.top-n.height/2)/i;return`translate(${r}px, ${c}px) scale(${t.width/n.width}, ${t.height/n.height})`}const it="data-hero-enter-key",rt="data-hero-exit-key",G="data-hero-key";function Zn(t,e){return t.fromEl.getAttribute(it)===t.key&&t.toEl.getAttribute(rt)===t.key?!0:t.fromEl.getAttribute(rt)===t.key&&t.toEl.getAttribute(it)===t.key?!1:e==="backward"&&t.fromEl.getAttribute(G)===t.key&&t.toEl.getAttribute(G)===t.key}function Gn(t,e,n,o,i){const r=document.createElement("div");r.setAttribute("data-hero-layer",""),r.setAttribute("aria-hidden","true"),r.setAttribute("inert",""),Object.assign(r.style,{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",pointerEvents:"none",isolation:"isolate",zIndex:String(Number(k)+1)});const c=(a,d)=>{const u=Tt(a);return Object.assign(u.style,{left:`${d.left}px`,top:`${d.top}px`,width:`${d.width}px`,height:`${d.height}px`,zIndex:"auto",mixBlendMode:"plus-lighter"}),i&&(u.style.borderRadius="0"),u},s=c(t,n),l=c(e,o);return s.setAttribute("data-hero-layer-source",""),l.setAttribute("data-hero-layer-destination",""),r.append(l,s),{layer:r,source:s,destination:l}}function st(t,e){const n=e.map(o=>({name:o,value:t.style.getPropertyValue(o),priority:t.style.getPropertyPriority(o)}));return()=>{for(const{name:o,value:i,priority:r}of n)i?t.style.setProperty(o,i,r):t.style.removeProperty(o)}}function qn(t){const e=t.getAttribute("data-hero-transitioning");return t.setAttribute("data-hero-transitioning",""),()=>{e===null?t.removeAttribute("data-hero-transitioning"):t.setAttribute("data-hero-transitioning",e)}}function Kn(t,e){const n=st(t,["z-index"]),o=st(e,["z-index","position"]);return t.style.zIndex=D,e.style.zIndex=k,getComputedStyle(e).position==="static"&&(e.style.position="relative"),()=>{n(),o()}}function Jn(t,e,n){if(t.tagName!=="IMG")return()=>{};const o=getComputedStyle(t),i=y=>Number.parseFloat(y)||0,r=o.boxSizing==="border-box",c=i(o.width)+(r?0:i(o.paddingLeft)+i(o.paddingRight)+i(o.borderLeftWidth)+i(o.borderRightWidth)),s=i(o.height)+(r?0:i(o.paddingTop)+i(o.paddingBottom)+i(o.borderTopWidth)+i(o.borderBottomWidth)),l=e.width*c/n.width,a=e.height*s/n.height;let d=null;o.position!=="absolute"&&o.position!=="fixed"&&(d=document.createElement("span"),d.setAttribute("data-hero-placeholder",""),d.setAttribute("aria-hidden","true"),Object.assign(d.style,{display:o.display==="inline"?"inline-block":o.display,boxSizing:"border-box",width:`${c}px`,height:`${s}px`,margin:o.margin,flex:o.flex,alignSelf:o.alignSelf,gridArea:o.gridArea,order:o.order,verticalAlign:o.verticalAlign,visibility:"hidden",pointerEvents:"none"}),t.before(d));const u=st(t,["position","left","top","right","bottom","width","height","min-width","min-height","max-width","max-height","box-sizing","margin-top","margin-right","margin-bottom","margin-left","flex"]);return Object.assign(t.style,{position:"absolute",left:"0",top:"0",right:"auto",bottom:"auto",boxSizing:"border-box",width:`${l}px`,height:`${a}px`,minWidth:"0",minHeight:"0",maxWidth:"none",maxHeight:"none",margin:"0",flex:"none"}),()=>{u(),d==null||d.remove()}}function at(t,e,n){const o=(s,l)=>`${l>0?s/l*100:0}%`,i=[o(e.top,t.height),o(e.right,t.width),o(e.bottom,t.height),o(e.left,t.width)].join(" "),r=n.map(s=>o(s.x,t.width)).join(" "),c=n.map(s=>o(s.y,t.height)).join(" ");return`inset(${i} round ${r} / ${c})`}class Qn{constructor(){M(this,"previousFromOpacity","")}prepare(e){e.from.then(n=>{this.previousFromOpacity=n.style.opacity,n.style.opacity="0"})}contribute(e){return e.onComplete(()=>{e.from.style.opacity=this.previousFromOpacity}),{}}}const to=()=>new Qn;function eo(t,e){const n=new Set(e),o=new Set;for(const c of n){let s=c.parentElement;for(;s&&s!==t;)o.add(s),s=s.parentElement}const i=[],r=c=>{var s,l;if(!(n.has(c)||((s=c.getAttribute)==null?void 0:s.call(c,nt))!=null||((l=c.getAttribute)==null?void 0:l.call(c,"data-hero-placeholder"))!=null)){if(c!==t&&!o.has(c)){i.push(c);return}for(const a of Array.from(c.children))a instanceof HTMLElement&&r(a)}};return r(t),i}class no{contribute(e){const{from:n,to:o,resolved:i,physics:r,onComplete:c}=e,s=i.pairs.map(p=>de(p.toEl)??p.toEl),l=(s.length?eo(o,s):[o]).map(p=>({element:p,opacity:p.style.opacity,willChange:p.style.willChange,targetOpacity:Number.parseFloat(getComputedStyle(p).opacity)||0})),a=new Set;for(const p of s)for(let f=p.parentElement;f&&(a.add(f),f!==o);f=f.parentElement);const d=Array.from(a).map(p=>({element:p,color:getComputedStyle(p).backgroundColor,previousColor:p.style.backgroundColor})).filter(({color:p})=>p&&p!=="transparent"&&p!=="rgba(0, 0, 0, 0)"),u=n.style.opacity,y=n.style.willChange;n.style.willChange="opacity";for(const{element:p}of l)p.style.opacity="0",p.style.willChange="opacity";for(const{element:p}of d)p.style.backgroundColor="transparent";return c(()=>{n.style.opacity=u,n.style.willChange=y;for(const{element:p,opacity:f,willChange:h}of l)p.style.opacity=f,p.style.willChange=h;for(const{element:p,previousColor:f}of d)p.style.backgroundColor=f}),{out:[new b.WebAnimation({element:n,integrator:S.IntegratorProvider.from(r),style:(p,f)=>({opacity:f})})],in:[...l.map(({element:p,targetOpacity:f})=>new b.WebAnimation({element:p,integrator:S.IntegratorProvider.from(r),style:h=>({opacity:Math.min(1,Math.max(0,h))*f})})),...d.map(({element:p,color:f})=>new b.WebAnimation({element:p,integrator:S.IntegratorProvider.from(r),style:h=>({backgroundColor:`color-mix(in srgb, ${f} ${Math.min(1,Math.max(0,h))*100}%, transparent)`})}))]}}}const oo=()=>new no,io={static:to,fade:oo},ro={spring:{stiffness:320,damping:30}},so=()=>ro,ao={spring:{stiffness:300,damping:30,doubleSpring:1}},co=()=>ao,lo={default:so,smooth:co},uo=700,po="data-hero-aspect-ratio",fo="data-hero-radius";function te(t,e,n,o){const i=c=>{const s=Y(t,c);return{left:s.left+t.scrollLeft,top:s.top+t.scrollTop,width:s.width,height:s.height}},r=i(e);return et(e,r,i,{clipRoot:o,fallbackFit:n,legacyAspectRatioAttribute:po,legacyRadiusAttribute:fo})}function Q(t,e){const n=new Map,o=t.querySelectorAll(`[${e}]`);for(const i of Array.from(o)){const r=i.getAttribute(e);r&&(n.has(r)||n.set(r,i))}return n}function ho(t,e){const n=[],o=Q(e,it),i=Q(t,rt);for(const[s,l]of o){const a=i.get(s);a&&n.push({key:s,fromEl:a,toEl:l,fromFit:V("exit"),toFit:V("enter")})}const r=Q(t,it),c=Q(e,rt);for(const[s,l]of r){const a=c.get(s);a&&n.push({key:s,fromEl:l,toEl:a,fromFit:V("enter"),toFit:V("exit")})}return n}function yo(t,e){const n=[],o=Array.from(e.querySelectorAll(`[${G}]`));for(const i of o){const r=i.getAttribute(G);if(!r)continue;const c=t.querySelector(`[${G}="${r}"]`);c&&n.push({key:r,fromEl:c,toEl:i,fromFit:V("legacy"),toFit:V("legacy")})}return n}function mo(t,e){const n=ho(t,e);return n.length>0?n:yo(t,e)}function go(t,e){return fe(t,e)}function bo(t,e){return t.radiusSource==="unsupported"||e.radiusSource==="unsupported"?!1:t.mediaElement!==null||e.mediaElement!==null||t.radiusSource==="computed"||t.radiusSource==="legacy"||e.radiusSource==="computed"||e.radiusSource==="legacy"}function wo(t,e,n,o,i){const{fromEl:r,toEl:c}=e,[s,l]=go(te(t,r,e.fromFit,o),te(t,c,e.toFit,i)),a=s.content,d=s.window,u=l.content,y=l.window,p=l.clipInset,f=s.radiusSource==="unsupported"||l.radiusSource==="unsupported",h=f?0:s.radius,m=f?0:l.radius;if(a.width===0||a.height===0||d.width===0||d.height===0||u.width===0||u.height===0||y.width===0||y.height===0)return null;const w=a.width/u.width,g=a.height/u.height,C=L(a),$=W(a),v=L(u),P=W(u),x=C-v,A=$-P;if(Math.abs(A)>n)return null;const O=B(u,he(u,a,d,w,g));return{fromContent:a,toContent:u,fromVisualEl:s.mediaElement??r,toVisualEl:l.mediaElement??c,resetRadius:bo(s,l),styleFor:(T,R,I)=>{const _=(R*x+(I?v-L(I.box):0))/((I==null?void 0:I.scaleX)??1),F=(R*A+(I?P-W(I.box):0))/((I==null?void 0:I.scaleY)??1),ct=T+R*w,lt=T+R*g,Se=s.cornerRadii??[h,h,h,h],xe=l.cornerRadii??[m,m,m,m],Ce=Se.map((Pe,Ie)=>{const Ft=Math.max(0,Pe*R+xe[Ie]*T);return{x:Ft/Math.max(Math.abs(ct),1e-6),y:Ft/Math.max(Math.abs(lt),1e-6)}}),Ae=O.top*R+p.top*T,Ee=O.right*R+p.right*T,ve=O.bottom*R+p.bottom*T,$e=O.left*R+p.left*T;return{transform:I?`translate(${_}px, ${F}px) scale(${ct*u.width/I.box.width}, ${lt*u.height/I.box.height})`:`translate(${_}px, ${F}px) scale(${ct}, ${lt})`,clipPath:at(u,{top:Ae,right:Ee,bottom:ve,left:$e},Ce)}}}}function So(t,e){t.style.transform=e.transform,t.style.clipPath=e.clipPath}class xo{contribute(e){const{resolved:n,physics:o,positionedParent:i,maxDistance:r,onComplete:c}=e;c(Kn(e.from,e.to));const s=n.pairs.flatMap(a=>{const d=wo(i,a,r,e.from,e.to);return d?[{pair:a,plan:d}]:[]});e.resolved={pairs:s.map(({pair:a})=>a)};const l=[];for(const{pair:a,plan:d}of s){const{fromVisualEl:u,toVisualEl:y}=d,p=ot(u),f=ot(y);if(Zn(a,e.direction)){const{layer:x,source:A,destination:O}=Gn(u,y,d.fromContent,d.toContent,d.resetRadius),T={box:d.fromContent,scaleX:1,scaleY:1},R=(_,F)=>({...d.styleFor(_,F,T),opacity:X(F)*p.opacity}),I=(_,F)=>({...d.styleFor(_,F),opacity:X(_)*f.opacity});Object.assign(A.style,R(0,1)),Object.assign(O.style,I(0,1)),i.appendChild(x),p.set(0),f.set(0),c(()=>{x.remove(),p.restore(),f.restore()}),l.push(new b.WebAnimation({element:A,integrator:S.IntegratorProvider.from(o),style:R}),new b.WebAnimation({element:O,integrator:S.IntegratorProvider.from(o),style:I}));continue}const h=Tt(u),m=qn(y),w=st(y,["transform","transform-origin","clip-path","object-fit","border-radius","will-change"]);y.style.transform="none",y.style.transformOrigin="center center",y.style.willChange="transform, clip-path, opacity",d.resetRadius&&(y.style.borderRadius="0");const g=Jn(y,d.toContent,Y(i,y)),C=It(i,y);h.style.width=`${d.fromContent.width/C.scaleX}px`,h.style.height=`${d.fromContent.height/C.scaleY}px`,h.style.zIndex=getComputedStyle(y).zIndex,d.resetRadius&&(h.style.borderRadius="0"),y.after(h);const $=It(i,h),v=(x,A)=>({...d.styleFor(x,A,$),opacity:X(A)*p.opacity}),P=(x,A)=>({...d.styleFor(x,A,C),opacity:X(x)*f.opacity});So(y,P(0,1)),Object.assign(h.style,v(0,1)),f.set(0),p.set(0),c(()=>{g(),w(),p.restore(),f.restore(),m(),h.remove()}),l.push(new b.WebAnimation({element:h,integrator:S.IntegratorProvider.from(o),style:v}),new b.WebAnimation({element:y,integrator:S.IntegratorProvider.from(o),style:P}))}return{shared:l}}}function Co(t){return[new xo,io[t.type]()]}const Ao=t=>{const e=lo[t.variant](),n=uo,o={prepare:i=>{var l;const r=Co(t),c=Promise.all([i.from,i.to]).then(([a,d])=>({pairs:mo(a,d)})),s={from:i.from,to:i.to,resolved:c};for(const a of r)(l=a.prepare)==null||l.call(a,s);return c.then(a=>({resolved:a,strategies:r}))},animation:({from:i,to:r,context:c,resolved:s,strategies:l})=>{var h;if(s.pairs.length===0)return q({shared:[],out:[],in:[]});const a=[],d=m=>{a.push(m)},u={direction:c.direction,from:i,to:r,resolved:s,physics:e,positionedParent:c.positionedParent,maxDistance:n,onComplete:d},y={shared:[],out:[],in:[]};for(const m of l){const w=(h=m.contribute)==null?void 0:h.call(m,u);if(w)for(const g of Object.keys(y))y[g].push(...w[g]??[])}const p=q(y),f=p.onComplete;return p.onComplete=()=>{f==null||f();for(const m of Object.values(y).flat())m instanceof b.WebAnimation&&m.releaseFill();for(const m of a)try{m()}catch(w){console.error("[hero] cleanup error",w)}},p}};return E.defineTransition({forward:o,backward:o})};function Eo(t={},e={}){const n=t.type??"static",o=t.variant??"default";return E.withOverride(Ao({type:n,variant:o}),e.override)}const vo={spring:{stiffness:50,damping:30}},$o={spring:{stiffness:80,damping:25}},Po=(t={})=>{const e=t.physics??vo,n=t.initialRotation??45,o=t.initialScale??.01,i=t.rotationTriggerPoint??.8,r={prepare:({from:c,to:s,context:l})=>(c.then(a=>{a.style.opacity="1"}),s.then(a=>{const d=z(l,"to"),u=Math.min(d.width,d.height)*.4;a.style.setProperty("--max-border-radius",`${u}px`),a.style.setProperty("--border-radius-scale","1"),a.style.willChange="transform",a.style.backfaceVisibility="hidden";const y=d.left+d.width/2,p=d.top+d.height/2;a.style.transformOrigin=`${y}px ${p}px`,a.style.position="fixed",a.style.top=`${d.top}px`,a.style.left=`${d.left}px`,a.style.width=`${d.width}px`,a.style.height=`${d.height}px`,a.style.zIndex="1000",a.style.overflow="hidden",a.style.transform=`rotate(${n}deg) scale(${o}) translateZ(0)`,a.style.borderRadius="calc(var(--max-border-radius) * var(--border-radius-scale))",a.style.opacity="1"}),{}),animation:({from:c,to:s})=>{const l=new b.WebAnimation({element:c,integrator:S.IntegratorProvider.from($o),style:(d,u)=>({opacity:u}),onComplete:()=>{c.style.opacity=""}}),a=new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(e),style:d=>{let u;if(d<=.05)u=o;else if(d<=i){const h=(d-.05)/(i-.05),m=Math.pow(h,9);u=o+(.8-o)*m}else{const h=(d-i)/(1-i);u=.8+.2*(1-Math.pow(1-h,3))}const y=.7;let p;if(d<=y)p=n;else{const h=(d-y)/(1-y),m=1-Math.pow(1-h,2);p=n*(1-m)}let f;if(d<=y)f=1;else{const h=(d-y)/(1-y);f=1-Math.pow(h,.5)}return{transform:`rotate(${p.toFixed(2)}deg) scale(${u.toFixed(4)}) translateZ(0)`,"--border-radius-scale":f.toFixed(4)}},onComplete:()=>{s.style.willChange="",s.style.backfaceVisibility="",s.style.removeProperty("--max-border-radius"),s.style.removeProperty("--border-radius-scale"),s.style.transform="",s.style.transformOrigin="",s.style.position="",s.style.zIndex="",s.style.top="",s.style.left="",s.style.width="",s.style.height="",s.style.overflow="",s.style.borderRadius=""}});return new b.MultiAnimation({out:l,in:a},{mode:"parallel"})}};return E.defineTransition({forward:r,backward:r})};function Io(t={},e={}){return E.withOverride(Po(),e.override)}const Ro={spring:{stiffness:100,damping:30}},Oo=(t={})=>{const e=t.physics??Ro,n={prepare:({from:o,to:i})=>(o.then(r=>{r.style.transformOrigin="center center",r.style.willChange="transform, opacity"}),i.then(r=>{r.style.opacity="0",r.style.transform="rotate(-180deg)",r.style.transformOrigin="center center",r.style.willChange="transform, opacity"}),{}),animation:({from:o,to:i})=>{const r=new b.WebAnimation({element:o,integrator:S.IntegratorProvider.from(e),style:s=>({transform:`rotate(${s*180}deg)`,opacity:s<.5?1:0}),onComplete:()=>{o.style.willChange="auto",o.style.transform="",o.style.transformOrigin="",o.style.opacity=""}}),c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(e),style:(s,l)=>({transform:`rotate(${-l*180}deg)`,opacity:s>.5?1:0}),onComplete:()=>{i.style.willChange="auto",i.style.transform="",i.style.transformOrigin="",i.style.opacity=""}});return new b.MultiAnimation({out:r,in:c},{mode:"parallel"})}};return E.defineTransition({forward:n,backward:n})};function Mo(t={},e={}){return E.withOverride(Oo(),e.override)}const To={spring:{stiffness:20,damping:8,doubleSpring:1,restDelta:.001,restSpeed:.001}},_o=(t={})=>{const e=t.physics??To,n=t.directional??!0,o=i=>{const r=!n||i==="forward",c=r?D:k,s=r?k:D;return{prepare:({from:l,to:a})=>(l.then(d=>{d.style.zIndex=c,d.style.willChange="transform",d.style.backfaceVisibility="hidden",d.style.contain="layout paint",d.style.pointerEvents="none"}),a.then(d=>{d.style.willChange="transform",d.style.backfaceVisibility="hidden",d.style.contain="layout paint",d.style.position="relative",d.style.zIndex=s}),{}),animation:({from:l,to:a})=>{const d=l.offsetHeight,u=a.offsetHeight,y=window.innerHeight,p=Math.max(Math.min(d,u),y),f=new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(e),style:m=>({transform:`translate3d(0, ${r?-p*m:p*m}px, 0)`}),onComplete:()=>{l.style.willChange="auto",l.style.backfaceVisibility="",l.style.contain="",l.style.transform="",l.style.pointerEvents="",l.style.zIndex=""}}),h=new b.WebAnimation({element:a,integrator:S.IntegratorProvider.from(e),style:(m,w)=>({transform:`translate3d(0, ${r?w*p:w*-p}px, 0)`}),onComplete:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transform="",a.style.position==="relative"&&(a.style.position=""),a.style.zIndex===s&&(a.style.zIndex="")}});return[f,h].forEach(K),new b.MultiAnimation({out:f,in:h},{mode:"parallel"})}}};return E.defineTransition({forward:o("forward"),backward:o("backward")})};function ko(t={},e={}){const{type:n="directional"}=t;return E.withOverride(_o({directional:n==="directional"}),e.override)}const Fo={spring:{stiffness:200,damping:24}},Do={inertia:{acceleration:25,resistance:1.2}},bt=.2;function Yo(){return{enterPhysics:Fo,exitPhysics:Do,background:{willChange:"transform, opacity",enterStyle:(t,e)=>({transform:`scale(${1-bt*t})`,opacity:e}),exitStyle:t=>({transform:`scale(${1-bt+bt*t})`,opacity:t})}}}const Lo={spring:{stiffness:200,damping:24}},Wo={inertia:{acceleration:25,resistance:1.2}},wt=.08,Ho=16,St=.6,zo=t=>`blur(${Math.max(0,t).toFixed(2)}px)`;function No(){return{enterPhysics:Lo,exitPhysics:Wo,background:{willChange:"transform, opacity",enterStyle:t=>({transform:`scale(${1-wt*t})`,opacity:1-(1-St)*t}),exitStyle:t=>({transform:`scale(${1-wt+wt*t})`,opacity:St+(1-St)*t})},overlay:{willChange:"backdrop-filter",initialStyle:{position:"absolute",left:"0",width:"100%",pointerEvents:"none",backdropFilter:"blur(0px)",WebkitBackdropFilter:"blur(0px)"},style:(t,e)=>{const n=t==="enter"?e:1-e,o=zo(Ho*n);return{backdropFilter:o,WebkitBackdropFilter:o}}}}}const Vo={spring:{stiffness:190,damping:25}},Xo={spring:{stiffness:190,damping:25}};function Bo(){return{enterPhysics:Vo,exitPhysics:Xo,background:{willChange:"",enterStyle:()=>({}),exitStyle:()=>({})}}}const Uo={static:Bo(),"background-scale":Yo(),blur:No()},jo="static",Zo="transform",Go=(t={})=>{const e=Uo[t.type??jo],n=e.background,o=e.overlay,i=n.willChange!=="",r=c=>{const s=c==="forward"?"enter":"exit",l=s==="enter"?"to":"from",a=s==="enter"?"from":"to",d=s==="enter"?e.enterPhysics:e.exitPhysics;return{prepare:({from:u,to:y,context:p,createElement:f})=>{const h={from:u,to:y}[l],m={from:u,to:y}[a];h.then(g=>{g.style.willChange=Zo,g.style.backfaceVisibility="hidden",g.style.contain="layout paint",g.style.zIndex=k,s==="enter"?g.style.position="relative":g.style.pointerEvents="none"}),m.then(g=>{i&&(g.style.willChange=n.willChange,g.style.backfaceVisibility="hidden",g.style.contain="layout paint"),g.style.zIndex=D,s==="enter"?g.style.pointerEvents="none":g.style.position="relative"});let w;return o&&(w=f("sheet-overlay"),Object.assign(w.style,o.initialStyle),w.style.willChange=o.willChange,p.positionedParent.appendChild(w)),{overlay:w}},animation:({from:u,to:y,context:p,overlay:f})=>{const h={from:u,to:y}[l],m={from:u,to:y}[a],w=z(p,l),g=()=>{u.style.pointerEvents="",u.style.zIndex=""},C=()=>{const x=s==="enter"?k:D;y.style.position==="relative"&&(y.style.position=""),y.style.zIndex===x&&(y.style.zIndex="")};h.style.clipPath=`inset(${w.top}px 0 calc(100% - ${w.top+w.height}px) 0)`;const $=s==="enter"?(x,A)=>({transform:`translate3d(0, ${A*w.height}px, 0)`}):x=>({transform:`translate3d(0, ${x*w.height}px, 0)`}),v=new b.WebAnimation({element:h,integrator:S.IntegratorProvider.from(d),style:$,onComplete:()=>{h.style.willChange="auto",h.style.backfaceVisibility="",h.style.contain="",h.style.clipPath="",h.style.transform="",g(),C()}});K(v);const P={sheet:v,background:new b.MultiAnimation([]),overlay:new b.MultiAnimation([])};if(i){const x=m.scrollHeight;x>0&&(m.style.height=`${x}px`);const A=z(p,a),O=A.left+A.width/2,T=A.top+A.height/2;m.style.clipPath=`inset(${A.top}px 0 calc(100% - ${A.top+A.height}px) 0)`,m.style.transformOrigin=`${O}px ${T}px`;const R=s==="enter"?(_,F)=>n.enterStyle(_,F):_=>n.exitStyle(_),I=new b.WebAnimation({element:m,integrator:S.IntegratorProvider.from(d),style:R,onComplete:()=>{m.style.willChange="auto",m.style.backfaceVisibility="",m.style.contain="",m.style.clipPath="",m.style.transformOrigin="",m.style.transform="",m.style.opacity="",m.style.height=""}});K(I),P.background=I}if(f&&o){f.style.zIndex=le;const x=ae(p,"to");f.style.top=`${x.top}px`,f.style.height=`${x.height}px`,P.overlay=new b.WebAnimation({element:f,integrator:S.IntegratorProvider.from(d),style:A=>o.style(s,A)})}return new b.MultiAnimation(P,{mode:"parallel"})}}};return E.defineTransition({forward:r("forward"),backward:r("backward")})};function qo(t){return t==="scale"||t==="background-scale"?"background-scale":t==="blur"?"blur":"static"}function Ko(t={},e={}){const n=t.type,o=qo(n);return E.withOverride(Go({type:o}),e.override)}const Jo=(t={})=>{const e=t.physics??H.SLIDE_PHYSICS,n=o=>{const i=o==="forward"?100:-100;return{prepare:({from:r,to:c})=>(r.then(s=>{s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.pointerEvents="none"}),c.then(s=>{s.style.transform=`translate3d(${i}%, 0, 0)`,s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint"}),{}),animation:({from:r,to:c})=>{const s=new b.WebAnimation({element:r,integrator:S.IntegratorProvider.from(e),style:a=>({transform:`translate3d(${100*H.pageMotionStyle("slide","out",o,a).x}%, 0, 0)`}),onComplete:()=>{r.style.willChange="auto",r.style.backfaceVisibility="",r.style.contain="",r.style.transform="",r.style.pointerEvents=""}}),l=new b.WebAnimation({element:c,integrator:S.IntegratorProvider.from(e),style:a=>({transform:`translate3d(${100*H.pageMotionStyle("slide","in",o,a).x}%, 0, 0)`}),onComplete:()=>{c.style.willChange="auto",c.style.backfaceVisibility="",c.style.contain="",c.style.transform=""}});return new b.MultiAnimation({out:s,in:l},{mode:"parallel"})}}};return E.defineTransition({forward:n("forward"),backward:n("backward")})};function Qo(t={},e={}){return E.withOverride(Jo(),e.override)}const ti={spring:{stiffness:17,damping:6}},xt=20,tt=800,ei=(t={})=>{const e=t.physics??ti,n={prepare:({from:o,to:i})=>(o.then(r=>{r.style.willChange="transform",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.pointerEvents="none",r.style.transform=`perspective(${tt}px) rotateY(0deg) translate3d(0%, 0, 0)`}),i.then(r=>{r.style.willChange="transform",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.transform=`perspective(${tt}px) rotateY(${xt}deg) translate3d(-100%, 0, 0)`}),{}),animation:({from:o,to:i})=>{const r=new b.WebAnimation({element:o,integrator:S.IntegratorProvider.from(e),style:s=>{const l=-s*xt,a=s*100;return{transform:`perspective(${tt}px) rotateY(${l}deg) translate3d(${a}%, 0, 0)`}},onComplete:()=>{o.style.transform="",o.style.willChange="auto",o.style.backfaceVisibility="",o.style.contain="",o.style.pointerEvents=""}}),c=new b.WebAnimation({element:i,integrator:S.IntegratorProvider.from(e),style:(s,l)=>{const a=l*xt,d=-l*100;return{transform:`perspective(${tt}px) rotateY(${a}deg) translate3d(${d}%, 0, 0)`}},onComplete:()=>{i.style.transform="",i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}});return new b.MultiAnimation({out:r,in:c},{mode:"sequence"})}};return E.defineTransition({forward:n,backward:n})};function ni(t={},e={}){return E.withOverride(ei(),e.override)}function oi(t,e){return e.left>=t.left-.01&&e.top>=t.top-.01&&e.left+e.width<=t.left+t.width+.01&&e.top+e.height<=t.top+t.height+.01}function _t(t){const e=()=>({contentAware:!1,enterContent:t.enterRect,exitContent:t.exitRect,startWindow:t.enterRect,scaleX:t.exitRect.width/t.enterRect.width,scaleY:t.exitRect.height/t.enterRect.height}),{enterMedia:n,exitMedia:o}=t;if(!n||!o||!pe(n,o))return e();const i=n.content,r=o.content;if(i.width<=0||i.height<=0||r.width<=0||r.height<=0)return e();const c=r.width/i.width,s=r.height/i.height,l=he(i,r,o.window,c,s);return oi(n.window,l)?{contentAware:!0,enterContent:i,exitContent:r,startWindow:l,scaleX:c,scaleY:s,exitCornerRadii:o.cornerRadii}:e()}function ye(t,e){return{top:t.top,right:e.width-(t.left+t.width),bottom:e.height-(t.top+t.height),left:t.left}}function ii(t,e,n){return{x:t/Math.max(Math.abs(e),1e-6),y:t/Math.max(Math.abs(n),1e-6)}}function me(t,e,n,o,i,r){return(n??[t]).map(c=>ii(Math.max(0,c*o+e*(1-o)),i,r))}function ri(t){const{pageRect:e,scrollOffset:n,enterRadius:o,exitRadius:i}=t,r=_t(t),{enterContent:c,exitContent:s,startWindow:l,scaleX:a,scaleY:d}=r,u=s.left-c.left+(s.width-c.width)/2-n.x,y=s.top-c.top+(s.height-c.height)/2-n.y,p=ye(l,e);return{transformOrigin:`${L(c)}px ${W(c)}px`,animate:f=>{const h=1-f,m=1+(a-1)*h,w=1+(d-1)*h,g=me(i,o,r.exitCornerRadii,h,m,w);return{clipPath:at(e,{top:p.top*h,right:p.right*h,bottom:p.bottom*h,left:p.left*h},g),transform:`translate(${u*h}px, ${y*h}px) scale(${m}, ${w})`}}}}function si(t){const{pageRect:e,scrollOffset:n,enterRadius:o,exitRadius:i}=t,r=_t(t),{enterContent:c,exitContent:s,startWindow:l,scaleX:a,scaleY:d}=r,u=s.left-c.left+(s.width-c.width)/2+n.x,y=s.top-c.top+(s.height-c.height)/2+n.y,p=ye(l,e);return{transformOrigin:`${L(c)}px ${W(c)}px`,animate:f=>{const h=1-f,m=1+(a-1)*h,w=1+(d-1)*h,g=me(i,o,r.exitCornerRadii,h,m,w);return{clipPath:at(e,{top:p.top*h,right:p.right*h,bottom:p.bottom*h,left:p.left*h},g),transform:`translate(${u*h-n.x}px, ${y*h}px) scale(${m}, ${w})`}}}}const ai={spring:{stiffness:380,damping:30,restDelta:.1,restSpeed:.1,doubleSpring:{stiffness:260,damping:30}}},ge=.12,ci=18;function li(){return{transformOrigin:"50% 50%",animate:t=>{const e=1-t;return{transform:`scale(${1-ge*e})`}}}}function di(){return{transformOrigin:"50% 50%",animate:t=>{const e=1-t;return{transform:`scale(${1-ge*e})`}}}}const Ct={willChange:"backdrop-filter",initialStyle:{position:"absolute",left:"0",width:"100%",pointerEvents:"none",backdropFilter:"blur(0px)",WebkitBackdropFilter:"blur(0px)"},style:(t,e)=>{const n=t==="enter"?e:1-e,o=`blur(${ci*n}px)`;return{backdropFilter:o,WebkitBackdropFilter:o}}};class ui{constructor(){M(this,"name","background");M(this,"physics",ai)}contribute(e){const{from:n,to:o,resolved:i,physics:r}=e,c=i.mode==="enter",s=c?n:o,l=c?li():di();return l&&(s.style.transformOrigin=l.transformOrigin),[new b.WebAnimation({element:s,integrator:S.IntegratorProvider.from(r),style:c?(a,d)=>l.animate(d):a=>l.animate(a)})]}}class pi{constructor(){M(this,"name","overlay")}prepare(e){const n=e.createElement("zoom-overlay");return Object.assign(n.style,Ct.initialStyle),n.style.willChange=Ct.willChange,e.context.positionedParent.appendChild(n),{overlay:n}}contribute(e){const n=e.extras.overlay;if(!n)return[];n.style.zIndex=le;const o=ae(e.context,"to");return n.style.top=`${o.top}px`,n.style.height=`${o.height}px`,[new b.WebAnimation({element:n,integrator:S.IntegratorProvider.from(e.physics),style:i=>Ct.style(e.resolved.mode,i)})]}}const fi={spring:{stiffness:380,damping:30,doubleSpring:{stiffness:260,damping:30}}};function hi({enterRect:t,exitRect:e,scrollOffset:n}){const o=t.left-e.left+(t.width-e.width)/2+n.x,i=t.top-e.top+(t.height-e.height)/2+n.y,r=t.width/e.width,c=t.height/e.height,s=Math.max(r,c);return{transformOrigin:`${e.left+e.width/2}px ${e.top+e.height/2}px`,animate:l=>{const a=1-l;return{transform:`translate(${o*a-n.x}px, ${i*a}px) scale(${1+(s-1)*a})`}}}}function yi({enterRect:t,exitRect:e,scrollOffset:n}){const o=t.left-e.left+(t.width-e.width)/2-n.x,i=t.top-e.top+(t.height-e.height)/2-n.y,r=t.width/e.width,c=t.height/e.height,s=Math.max(r,c);return{transformOrigin:`${e.left+e.width/2}px ${e.top+e.height/2}px`,animate:l=>{const a=1-l;return{transform:`translate(${o*a}px, ${i*a}px) scale(${1+(s-1)*a})`}}}}class mi{constructor(){M(this,"name","background");M(this,"physics",fi)}contribute(e){const{from:n,to:o,resolved:i,input:r,physics:c}=e,s=i.mode==="enter",l=s?n:o,a=s?hi(r):yi(r);return a&&(l.style.transformOrigin=a.transformOrigin),[new b.WebAnimation({element:l,integrator:S.IntegratorProvider.from(c),style:s?(d,u)=>a.animate(u):d=>a.animate(d)})]}}const gi={spring:{stiffness:530,damping:34,doubleSpring:1}};class bi{constructor(){M(this,"name","background");M(this,"physics",gi)}contribute(e){return[]}}const wi={expand:()=>new mi,static:()=>new bi,blur:()=>new ui};function Si(t){return wi[t]()}function xi(t){var C,$;const{resolved:e,input:n,from:o,to:i,physics:r,onComplete:c}=t,s=e.mode==="enter",l=s?i:o,a=_t(n),d=a.contentAware?((C=n.exitMedia)==null?void 0:C.mediaElement)??e.exitEl:e.exitEl,u=a.contentAware?(($=n.enterMedia)==null?void 0:$.mediaElement)??e.enterEl:e.enterEl,y=ot(d),p=ot(u),f=Tt(d);a.contentAware&&(f.style.width=`${a.exitContent.width}px`,f.style.height=`${a.exitContent.height}px`,f.style.borderRadius="0"),f.style.zIndex=getComputedStyle(u).zIndex,u.after(f),f.style.transform=jn({width:a.enterContent.width,height:a.enterContent.height,left:a.enterContent.left+l.scrollLeft,top:a.enterContent.top+l.scrollTop},It(l,f));const h=n.enterMedia??et(e.enterEl,n.enterRect,v=>Y(l,v),{clipRoot:l,legacyRadiusAttribute:"data-zoom-radius"});if((a.contentAware?h.radiusSource:h.bboxRadiusSource)!=="unsupported"){const v=a.contentAware?h.window:n.enterRect,P=a.contentAware?h.cornerRadii??[h.radius]:[h.bboxRadius];f.style.borderRadius="0",f.style.clipPath=at(a.enterContent,B(a.enterContent,v),P.map(x=>({x,y:x})))}const w=(v,P)=>({opacity:X(s?P:v)*y.opacity}),g=(v,P)=>({opacity:X(s?v:P)*p.opacity});return f.style.opacity=String(w(0,1).opacity),y.set(0),p.set(g(0,1).opacity),c(()=>{f.remove(),y.restore(),p.restore()}),[new b.WebAnimation({element:f,integrator:S.IntegratorProvider.from(r),style:w}),new b.WebAnimation({element:u,integrator:S.IntegratorProvider.from(r),style:g})]}const Rt="data-zoom-enter-key",ee="data-zoom-exit-key",ne="data-zoom-radius";function Ci(t,e){return Math.abs(t.left-e.left)<.01&&Math.abs(t.top-e.top)<.01&&Math.abs(t.width-e.width)<.01&&Math.abs(t.height-e.height)<.01}function Ai(t,e){const n=[];let o=e;for(;o&&o!==t;){const i=o.parentElement;if(!i)break;for(const r of Array.from(i.children))r!==o&&r instanceof HTMLElement&&!r.hasAttribute(nt)&&n.push(r);o=i}return n}function oe(t){const e=t.querySelectorAll(`[${Rt}]`);return e.length!==1?null:e[0]}function ie(t,e){const n=t.querySelectorAll(`[${ee}]`);for(const o of n)if(o.getAttribute(ee)===e)return o;return null}function Ei(t,e,n){if(n==="forward"){const c=oe(e);if(!c)return null;const s=c.getAttribute(Rt);if(!s)return null;const l=ie(t,s);return l?{mode:"enter",enterEl:c,exitEl:l}:null}const o=oe(t);if(!o)return null;const i=o.getAttribute(Rt);if(!i)return null;const r=ie(e,i);return r?{mode:"exit",enterEl:o,exitEl:r}:null}function vi(t,e,n,o){const i=t.mode==="enter"?n:e,r=t.mode==="enter"?e:n,c=Y(i,t.enterEl),s=Y(r,t.exitEl),l=et(t.enterEl,c,m=>Y(i,m),{clipRoot:i,legacyRadiusAttribute:ne}),a=et(t.exitEl,s,m=>Y(r,m),{clipRoot:r,legacyRadiusAttribute:ne}),[d,u]=fe(l,a),y=d.contentAware&&u.contentAware,p=t.mode==="enter"?n.getBoundingClientRect():e.getBoundingClientRect(),f={left:0,top:0,width:p.width,height:p.height},h=d.radiusSource==="legacy"||Ci(d.window,f)?d.radius:0;return{enterRect:c,exitRect:s,...y?{enterMedia:d,exitMedia:u}:{},pageRect:p,scrollOffset:o,enterRadius:h,exitRadius:u.radius}}const At=new WeakMap;function $i(t){const e=At.get(t)??{opacity:t.style.opacity,users:0};e.users++,At.set(t,e),t.style.opacity="0";let n=!1;return()=>{n||(n=!0,!(--e.users>0)&&(t.style.opacity==="0"&&(t.style.opacity=e.opacity),At.delete(t)))}}class Pi{constructor(){M(this,"name","tile")}prepare(e){e.from.then(n=>{n.style.willChange="transform, clip-path, opacity",n.style.backfaceVisibility="hidden",n.style.contain="layout paint"})}contribute(e){const{from:n,to:o,resolved:i,input:r,physics:c,onComplete:s}=e,l=i.mode==="enter",a=l?ri(r):si(r),d=l?o:n,u=l?"t":"u",y=xi(e);s($i(i.exitEl)),a&&(d.style.transformOrigin=a.transformOrigin);const p=l?D:k,f=l?k:D,h=n.style.zIndex;n.style.zIndex=p;const m=o.style.zIndex,w=o.style.position;return o.style.zIndex=f,o.style.position="relative",s(()=>{d.style.willChange="auto",d.style.backfaceVisibility="",d.style.transformOrigin="",d.style.contain="",n.style.zIndex=h,o.style.zIndex===f&&(o.style.zIndex=m),o.style.position==="relative"&&(o.style.position=w),o.style.transformOrigin="",n.style.willChange="auto",n.style.backfaceVisibility="",n.style.transformOrigin="",n.style.contain="",n.style.transform="",n.style.clipPath=""}),[...y,new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(c),style:u==="t"?g=>a.animate(g):(g,C)=>a.animate(C)})]}}class Ii{constructor(){M(this,"name","content")}contribute(e){const{resolved:n,physics:o,from:i,to:r,onComplete:c}=e,s=n.mode==="enter"?r:i,l=Ai(s,n.enterEl);if(l.length===0)return[];const a=l.map(d=>d.style.opacity);if(n.mode==="enter")for(const d of l)d.style.opacity="0";return c(()=>{for(let d=0;d<l.length;d++){const u=l[d];u&&(u.style.opacity=a[d]??"")}}),l.map(d=>new b.WebAnimation({element:d,integrator:S.IntegratorProvider.from(o),style:(u,y)=>({opacity:n.mode==="enter"?u:y})}))}}class Ri{constructor(){M(this,"name","content")}contribute(){return[]}}const Oi={default:()=>new Ri,fade:()=>new Ii};function Mi(t){return Oi[t]()}function Ti(t){const e=Si(t.type);return{strategies:[new Pi,e,Mi(t.variant),...t.type==="blur"?[new pi]:[]],physics:e.physics}}const _i=t=>{const{strategies:e,physics:n}=Ti(t),o=i=>({prepare:r=>{const c={from:r.from,to:r.to,context:{positionedParent:r.context.positionedParent},createElement:r.createElement},s={};for(const l of e){if(!l.prepare)continue;const a=l.prepare(c);a&&Object.assign(s,a)}return s},animation:({from:r,to:c,context:s,...l})=>{var w;const a=Ei(r,c,i);if(!a)return q({tile:[],background:[],content:[],overlay:[]});const d=vi(a,r,c,s.scrollOffset),u=[],p={from:r,to:c,resolved:a,input:d,physics:n,context:s,extras:l,onComplete:g=>{u.push(g)}},f={tile:[],background:[],content:[],overlay:[]};for(const g of e)f[g.name].push(...((w=g.contribute)==null?void 0:w.call(g,p))??[]);const h=Object.values(f).flat(),m=q(f);m.onComplete=()=>{for(const g of u)try{g()}catch(C){console.error("[zoom] cleanup error",C)}};for(const g of h)g instanceof b.WebAnimation&&K(g);return m}});return E.defineTransition({forward:o("forward"),backward:o("backward")})};function ki(t){const e=t.type??"static",n=t.variant??(t.fade?"fade":"default");return{type:e,variant:n}}function Fi(t={},e={}){const n=ki(t);return E.withOverride(_i(n),e.override)}const re=1/60,Di=600;function Yi(t,e){const n=Math.sqrt(t),o=e/(2*n),i=2*Math.PI/n,r=o<=1?1-o:1/o-1;return{duration:i,bounce:r,zeta:o}}function U(t){if(!Number.isFinite(t.stiffness)||t.stiffness<=0)throw new Error("spring(): stiffness must be finite and > 0");if(!Number.isFinite(t.damping)||t.damping<0)throw new Error("spring(): damping must be finite and >= 0");for(const[e,n]of[["restDelta",t.restDelta],["restSpeed",t.restSpeed]])if(n!==void 0&&(!Number.isFinite(n)||n<=0))throw new Error(`spring(): ${e} must be finite and > 0`);return S.IntegratorProvider.from({spring:t})}function Li(t){let e={position:0,velocity:0};for(let n=1;n<=Di;n++)if(e=t.step(e,1,re),e.position>=1)return n*re*1e3;return 1/0}function be(t){const{duration:e,resistance:n=1.5,restDelta:o}=t;if(!Number.isFinite(e)||!(e>0))throw new Error("easeIn(): duration must be finite and > 0");const i=e*1e3;let r=.01,c=1e6;for(let s=0;s<60;s++){const l=Math.sqrt(r*c),a=new S.InertiaIntegrator({acceleration:l,resistance:n,restDelta:o});Li(a)>i?r=l:c=l}return new S.InertiaIntegrator({acceleration:c,resistance:n,restDelta:o})}class kt{constructor(e,n){if(this.inner=e,this.factor=n,!Number.isFinite(n)||!(n>0))throw new Error("scale(): factor must be finite and > 0")}step(e,n,o){const i=Math.max(1,Math.ceil(this.factor)),r=o*this.factor/i;let c={...e,velocity:e.velocity/this.factor};for(let s=0;s<i;s++)c=this.inner.step(c,n,r);return{...c,velocity:c.velocity*this.factor}}isSettled(e,n){return this.inner.isSettled({...e,velocity:e.velocity/this.factor},n)}}function Wi(t,e){return new kt(t,e)}function we(t){const e=S.simulate(t,0,1,0),n=e.length?e[e.length-1].time:0;if(t instanceof kt){const o=we(t.inner);return{...o,kind:"scaled",duration:o.duration===void 0?void 0:o.duration/t.factor,settleMs:n}}return t instanceof S.SpringIntegrator||t instanceof S.DoubleSpringIntegrator?{kind:t instanceof S.SpringIntegrator?"spring":"double-spring",...Yi(t.stiffness,t.damping),settleMs:n}:t instanceof S.InertiaIntegrator?{kind:"inertia",settleMs:n}:{kind:"custom",settleMs:n}}const Hi=U({stiffness:246.74011002723395,damping:31.41592653589793}),zi=U({stiffness:438.6490844928604,damping:35.604716740684324}),Ni=U({stiffness:194.9551486634935,damping:19.54768762233649}),Vi=U({stiffness:130.5071656342394,damping:22.84794657156213}),Xi=U({stiffness:986.9604401089358,damping:62.83185307179586}),Bi=be({duration:.2});exports.defineTransition=E.defineTransition;exports.withOverride=E.withOverride;exports.Animation=b.Animation;exports.MultiAnimation=b.MultiAnimation;exports.WebAnimation=b.WebAnimation;exports.DoubleSpringIntegrator=S.DoubleSpringIntegrator;exports.InertiaIntegrator=S.InertiaIntegrator;exports.IntegratorProvider=S.IntegratorProvider;exports.SpringIntegrator=S.SpringIntegrator;exports.LinearIntegrator=se;exports.ScaledIntegrator=kt;exports.accelerate=Bi;exports.axis=an;exports.blind=fn;exports.bouncy=Ni;exports.describeIntegrator=we;exports.drill=En;exports.easeIn=be;exports.fade=$n;exports.film=Fn;exports.gentle=Vi;exports.hero=Eo;exports.jaemin=Io;exports.rotate=Mo;exports.scale=Wi;exports.scroll=ko;exports.sheet=Ko;exports.slide=Qo;exports.smooth=Hi;exports.snappy=zi;exports.spring=U;exports.strip=ni;exports.swift=Xi;exports.zoom=Fi;