vendor: 30,279 bytes, line 1
1import{r as S,j as d,L as G,s as _,p as Or,g as Ur,c as zr,m as Wr,n as Kr,v as Gr}from"./index-CrlHD_rY.js";import{u as Hr}from"./useSuspenseQuery-CIGvVceM.js";import{P as $r,M as Rn}from"./public-layout-Dgt4YvtQ.js";import{B as ht}from"./button-C9mq-HB0.js";import{h as _r,S as kn}from"./hero-minigolf-C1ZZwoyh.js";import{F as Nn}from"./flag-Cwvuujuu.js";import{C as Ln}from"./chevron-right-DEaequSu.js";import{S as me,N as Xr}from"./star-BAZ-3vuM.js";import{M as pe}from"./map-pin--RVL0mda.js";import{T as ge}from"./trophy-B3uB_7rq.js";import{C as Bn}from"./clock-CYJ7ieDd.js";import{T as Fn}from"./ticket-BiM7QxmR.js";import{S as Yr}from"./sparkles-CC5roFfQ.js";import{C as qr}from"./coffee-D_le4zAJ.js";import{C as Zr}from"./calendar-DOVAZWO0.js";import{U as In}from"./users-CQ1L-uez.js";import"./useBaseQuery-C3gpq6iF.js";import"./cookie-banner-CZ9Vfr7P.js";import"./createLucideIcon-D7E4aMTN.js";import"./x-DbwQtEZ-.js";import"./mail-B_NaO__j.js";import"./utils-CsI7vFqD.js";import"./clsx-B-dksMZM.js";const Qs=S.createContext({});function Jr(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const Qr=typeof window<"u",to=Qr?S.useLayoutEffect:S.useEffect,on=S.createContext(null);function an(t,e){t.indexOf(e)===-1&&t.push(e)}function te(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const nt=(t,e,n)=>n>e?e:n<t?t:n;let ln=()=>{};const ot={},ti=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ei=t=>typeof t=="object"&&t!==null,ni=t=>/^0[^.\s]+$/u.test(t);function si(t){let e;return()=>(e===void 0&&(e=t()),e)}const $=t=>t,It=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Nt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class cn{constructor(){this.subscriptions=[]}add(e){return an(this.subscriptions,e),()=>te(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const W=t=>t*1e3,H=t=>t/1e3,ii=(t,e)=>e?t*(1e3/e):0,ri=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,eo=1e-7,no=12;function so(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=ri(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>eo&&++a<no);return r}function Ot(t,e,n,s){if(t===e&&n===s)return $;const i=o=>so(o,0,1,t,n);return o=>o===0||o===1?o:ri(i(o),e,s)}const oi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ai=t=>e=>1-t(1-e),li=Ot(.33,1.53,.69,.99),un=ai(li),ci=oi(un),ui=t=>t>=1?1:(t*=2)<1?.5*un(t):.5*(2-Math.pow(2,-10*(t-1))),hn=t=>1-Math.sin(Math.acos(t)),hi=ai(hn),di=oi(hn),io=Ot(.42,0,1,1),ro=Ot(0,0,.58,1),fi=Ot(.42,0,.58,1),oo=t=>Array.isArray(t)&&typeof t[0]!="number",mi=t=>Array.isArray(t)&&typeof t[0]=="number",ao={linear:$,easeIn:io,easeInOut:fi,easeOut:ro,circIn:hn,circInOut:di,circOut:hi,backIn:un,backInOut:ci,backOut:li,anticipate:ui},lo=t=>typeof t=="string",On=t=>{if(mi(t)){ln(t.length===4);const[e,n,s,i]=t;return Ot(e,n,s,i)}else if(lo(t))return ao[t];return t},Wt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function co(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){r.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,f=!1)=>{const p=f&&i?n:s;return h&&r.add(l),p.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(a=l,i){o=!0;return}i=!0;const h=n;n=s,s=h,n.forEach(c),n.clear(),i=!1,o&&(o=!1,u.process(l))}};return u}const uo=40;function pi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Wt.reduce((w,T)=>(w[T]=co(o),w),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:m,postRender:p}=r,g=()=>{const w=ot.useManualTiming,T=w?i.timestamp:performance.now();n=!1,w||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,uo),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),h.process(i),f.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},y=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:Wt.reduce((w,T)=>{const V=r[T];return w[T]=(D,C=!1,A=!1)=>(n||y(),V.schedule(D,C,A)),w},{}),cancel:w=>{for(let T=0;T<Wt.length;T++)r[Wt[T]].cancel(w)},state:i,steps:r}}const{schedule:j,cancel:at,state:F,steps:ye}=pi(typeof requestAnimationFrame<"u"?requestAnimationFrame:$,!0);let $t;function ho(){$t=void 0}const O={now:()=>($t===void 0&&O.set(F.isProcessing||ot.useManualTiming?F.timestamp:performance.now()),$t),set:t=>{$t=t,queueMicrotask(ho)}},gi=t=>e=>typeof e=="string"&&e.startsWith(t),yi=gi("--"),fo=gi("var(--"),dn=t=>fo(t)?mo.test(t.split("/*")[0].trim()):!1,mo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Un(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const At={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Lt={...At,transform:t=>nt(0,1,t)},Kt={...At,default:1},Dt=t=>Math.round(t*1e5)/1e5,fn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function po(t){return t==null}const go=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mn=(t,e)=>n=>!!(typeof n=="string"&&go.test(n)&&n.startsWith(t)||e&&!po(n)&&Object.prototype.hasOwnProperty.call(n,e)),xi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(fn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},yo=t=>nt(0,255,t),xe={...At,transform:t=>Math.round(yo(t))},mt={test:mn("rgb","red"),parse:xi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+xe.transform(t)+", "+xe.transform(e)+", "+xe.transform(n)+", "+Dt(Lt.transform(s))+")"};function xo(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ne={test:mn("#"),parse:xo,transform:mt.transform},Ut=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),it=Ut("deg"),et=Ut("%"),b=Ut("px"),vo=Ut("vh"),wo=Ut("vw"),zn={...et,parse:t=>et.parse(t)/100,transform:t=>et.transform(t*100)},wt={test:mn("hsl","hue"),parse:xi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+et.transform(Dt(e))+", "+et.transform(Dt(n))+", "+Dt(Lt.transform(s))+")"},k={test:t=>mt.test(t)||Ne.test(t)||wt.test(t),parse:t=>mt.test(t)?mt.parse(t):wt.test(t)?wt.parse(t):Ne.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?mt.transform(t):wt.transform(t),getAnimatableNone:t=>{const e=k.parse(t);return e.alpha=0,k.transform(e)}},bo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function To(t){return isNaN(t)&&typeof t=="string"&&(t.match(fn)?.length||0)+(t.match(bo)?.length||0)>0}const vi="number",wi="color",So="var",Po="var(",Wn="${}",Ao=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function St(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Ao,c=>(k.test(c)?(s.color.push(o),i.push(wi),n.push(k.parse(c))):c.startsWith(Po)?(s.var.push(o),i.push(So),n.push(c)):(s.number.push(o),i.push(vi),n.push(parseFloat(c))),++o,Wn)).split(Wn);return{values:n,split:a,indexes:s,types:i}}function Vo(t){return St(t).values}function bi({split:t,types:e}){const n=t.length;return s=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],s[o]!==void 0){const r=e[o];r===vi?i+=Dt(s[o]):r===wi?i+=k.transform(s[o]):i+=s[o]}return i}}function Co(t){return bi(St(t))}const Mo=t=>typeof t=="number"?0:k.test(t)?k.getAnimatableNone(t):t,jo=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Mo(t);function Do(t){const e=St(t);return bi(e)(e.values.map((s,i)=>jo(s,e.split[i])))}const q={test:To,parse:Vo,createTransformer:Co,getAnimatableNone:Do};function ve(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Eo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=ve(c,a,t+1/3),o=ve(c,a,t),r=ve(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function ee(t,e){return n=>n>0?e:t}const M=(t,e,n)=>t+(e-t)*n,we=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Ro=[Ne,mt,wt],ko=t=>Ro.find(e=>e.test(t));function Kn(t){const e=ko(t);if(!e)return!1;let n=e.parse(t);return e===wt&&(n=Eo(n)),n}const Gn=(t,e)=>{const n=Kn(t),s=Kn(e);if(!n||!s)return ee(t,e);const i={...n};return o=>(i.red=we(n.red,s.red,o),i.green=we(n.green,s.green,o),i.blue=we(n.blue,s.blue,o),i.alpha=M(n.alpha,s.alpha,o),mt.transform(i))},Le=new Set(["none","hidden"]);function No(t,e){return Le.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Lo(t,e){return n=>M(t,e,n)}function pn(t){return typeof t=="number"?Lo:typeof t=="string"?dn(t)?ee:k.test(t)?Gn:Io:Array.isArray(t)?Ti:typeof t=="object"?k.test(t)?Gn:Bo:ee}function Ti(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>pn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Bo(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=pn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Fo(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Io=(t,e)=>{const n=q.createTransformer(e),s=St(t),i=St(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Le.has(t)&&!i.values.length||Le.has(e)&&!s.values.length?No(t,e):It(Ti(Fo(s,i),i.values),n):ee(t,e)};function Si(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?M(t,e,n):pn(t)(t,e)}const Oo=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>j.update(e,n),stop:()=>at(e),now:()=>F.isProcessing?F.timestamp:O.now()}},Pi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ne=2e4;function gn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ne;)e+=n,s=t.next(e);return e>=ne?1/0:e}function Uo(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(gn(s),ne);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:H(i)}}const E={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Be(t,e){return t*Math.sqrt(1-e*e)}const zo=12;function Wo(t,e,n){let s=n;for(let i=1;i<zo;i++)s=s-t(s)/e(s);return s}const be=.001;function Ko({duration:t=E.duration,bounce:e=E.bounce,velocity:n=E.velocity,mass:s=E.mass}){let i,o,r=1-e;r=nt(E.minDamping,E.maxDamping,r),t=nt(E.minDuration,E.maxDuration,H(t)),r<1?(i=u=>{const l=u*r,h=l*t,f=l-n,m=Be(u,r),p=Math.exp(-h);return be-f/m*p},o=u=>{const h=u*r*t,f=h*n+n,m=Math.pow(r,2)*Math.pow(u,2)*t,p=Math.exp(-h),g=Be(Math.pow(u,2),r);return(-i(u)+be>0?-1:1)*((f-m)*p)/g}):(i=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-be+l*h},o=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const a=5/t,c=Wo(i,o,a);if(t=W(t),isNaN(c))return{stiffness:E.stiffness,damping:E.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Go=["duration","bounce"],Ho=["stiffness","damping","mass"];function Hn(t,e){return e.some(n=>t[n]!==void 0)}function $o(t){let e={velocity:E.velocity,stiffness:E.stiffness,damping:E.damping,mass:E.mass,isResolvedFromDuration:!1,...t};if(!Hn(t,Ho)&&Hn(t,Go))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*nt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:E.mass,stiffness:i,damping:o}}else{const n=Ko({...t,velocity:0});e={...e,...n,mass:E.mass},e.isResolvedFromDuration=!0}return e}function se(t=E.visualDuration,e=E.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:m}=$o({...n,velocity:-H(n.velocity||0)}),p=f||0,g=u/(2*Math.sqrt(c*l)),y=r-o,x=H(Math.sqrt(c/l)),v=Math.abs(y)<5;s||(s=v?E.restSpeed.granular:E.restSpeed.default),i||(i=v?E.restDelta.granular:E.restDelta.default);let w,T,V,D,C,A;if(g<1)V=Be(x,g),D=(p+g*x*y)/V,w=P=>{const R=Math.exp(-g*x*P);return r-R*(D*Math.sin(V*P)+y*Math.cos(V*P))},C=g*x*D+y*V,A=g*x*y-D*V,T=P=>Math.exp(-g*x*P)*(C*Math.sin(V*P)+A*Math.cos(V*P));else if(g===1){w=R=>r-Math.exp(-x*R)*(y+(p+x*y)*R);const P=p+x*y;T=R=>Math.exp(-x*R)*(x*P*R-p)}else{const P=x*Math.sqrt(g*g-1);w=Z=>{const st=Math.exp(-g*x*Z),J=Math.min(P*Z,300);return r-st*((p+g*x*y)*Math.sinh(J)+P*y*Math.cosh(J))/P};const R=(p+g*x*y)/P,z=g*x*R-y*P,ct=g*x*y-R*P;T=Z=>{const st=Math.exp(-g*x*Z),J=Math.min(P*Z,300);return st*(z*Math.sinh(J)+ct*Math.cosh(J))}}const L={calculatedDuration:m&&h||null,velocity:P=>W(T(P)),next:P=>{if(!m&&g<1){const z=Math.exp(-g*x*P),ct=Math.sin(V*P),Z=Math.cos(V*P),st=r-z*(D*ct+y*Z),J=W(z*(C*ct+A*Z));return a.done=Math.abs(J)<=s&&Math.abs(r-st)<=i,a.value=a.done?r:st,a}const R=w(P);if(m)a.done=P>=h;else{const z=W(T(P));a.done=Math.abs(z)<=s&&Math.abs(r-R)<=i}return a.value=a.done?r:R,a},toString:()=>{const P=Math.min(gn(L),ne),R=Pi(z=>L.next(P*z).value,P,30);return P+"ms "+R},toTransition:()=>{}};return L}se.applyToOptions=t=>{const e=Uo(t,100,se);return t.ease=e.ease,t.duration=W(e.duration),t.type="keyframes",t};const _o=5;function Ai(t,e,n){const s=Math.max(e-_o,0);return ii(n-t(s),e-s)}function Fe({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},m=A=>a!==void 0&&A<a||c!==void 0&&A>c,p=A=>a===void 0?c:c===void 0||Math.abs(a-A)<Math.abs(c-A)?a:c;let g=n*e;const y=h+g,x=r===void 0?y:r(y);x!==y&&(g=x-h);const v=A=>-g*Math.exp(-A/s),w=A=>x+v(A),T=A=>{const L=v(A),P=w(A);f.done=Math.abs(L)<=u,f.value=f.done?x:P};let V,D;const C=A=>{m(f.value)&&(V=A,D=se({keyframes:[f.value,p(f.value)],velocity:Ai(w,A,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:l}))};return C(0),{calculatedDuration:null,next:A=>{let L=!1;return!D&&V===void 0&&(L=!0,T(A),C(A)),V!==void 0&&A>=V?D.next(A-V):(!L&&T(A),f)}}}function Xo(t,e,n){const s=[],i=n||ot.mix||Si,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||$:e;a=It(c,a)}s.push(a)}return s}function Yo(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(ln(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Xo(e,s,i),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=Nt(t[h],t[h+1],l);return a[h](f)};return n?l=>u(nt(t[0],t[o-1],l)):u}function qo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Nt(0,e,s);t.push(M(n,1,i))}}function Zo(t){const e=[0];return qo(e,t.length-1),e}function Jo(t,e){return t.map(n=>n*e)}function Qo(t,e){return t.map(()=>e||fi).splice(0,t.length-1)}function Et({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=oo(s)?s.map(On):On(s),o={done:!1,value:e[0]},r=Jo(n&&n.length===e.length?n:Zo(e),t),a=Yo(r,e,{ease:Array.isArray(i)?i:Qo(e,i)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const ta=t=>t!==null;function ue(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(ta),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const ea={decay:Fe,inertia:Fe,tween:Et,keyframes:Et,spring:se};function Vi(t){typeof t.type=="string"&&(t.type=ea[t.type])}class yn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const na=t=>t/100;class ie extends yn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Vi(e);const{type:n=Et,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||Et;c!==Et&&typeof a[0]!="number"&&(this.mixKeyframes=It(na,Si(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=gn(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:m,type:p,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,T=s;if(h){const A=Math.min(this.currentTime,i)/a;let L=Math.floor(A),P=A%1;!P&&A>=1&&(P=1),P===1&&L--,L=Math.min(L,h+1),L%2&&(f==="reverse"?(P=1-P,m&&(P-=m/a)):f==="mirror"&&(T=r)),w=nt(0,1,P)*a}let V;v?(this.delayState.value=l[0],V=this.delayState):V=T.next(w),o&&!v&&(V.value=o(V.value));let{done:D}=V;!v&&c!==null&&(D=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return C&&p!==Fe&&(V.value=ue(l,this.options,y,this.speed)),g&&g(V.value),C&&this.finish(),V}then(e,n){return this.finished.then(e,n)}get duration(){return H(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+H(e)}get time(){return H(this.currentTime)}set time(e){e=W(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return Ai(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(O.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=H(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Oo,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(O.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function sa(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const pt=t=>t*180/Math.PI,Ie=t=>{const e=pt(Math.atan2(t[1],t[0]));return Oe(e)},ia={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ie,rotateZ:Ie,skewX:t=>pt(Math.atan(t[1])),skewY:t=>pt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Oe=t=>(t=t%360,t<0&&(t+=360),t),$n=Ie,_n=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Xn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ra={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_n,scaleY:Xn,scale:t=>(_n(t)+Xn(t))/2,rotateX:t=>Oe(pt(Math.atan2(t[6],t[5]))),rotateY:t=>Oe(pt(Math.atan2(-t[2],t[0]))),rotateZ:$n,rotate:$n,skewX:t=>pt(Math.atan(t[4])),skewY:t=>pt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ue(t){return t.includes("scale")?1:0}function ze(t,e){if(!t||t==="none")return Ue(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=ra,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ia,i=a}if(!i)return Ue(e);const o=s[e],r=i[1].split(",").map(aa);return typeof o=="function"?o(r):r[o]}const oa=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return ze(n,e)};function aa(t){return parseFloat(t.trim())}const Vt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ct=new Set([...Vt,"pathRotation"]),Yn=t=>t===At||t===b,la=new Set(["x","y","z"]),ca=Vt.filter(t=>!la.has(t));function ua(t){const e=[];return ca.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const rt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ze(e,"x"),y:(t,{transform:e})=>ze(e,"y")};rt.translateX=rt.x;rt.translateY=rt.y;const gt=new Set;let We=!1,Ke=!1,Ge=!1;function Ci(){if(Ke){const t=Array.from(gt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ua(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ke=!1,We=!1,gt.forEach(t=>t.complete(Ge)),gt.clear()}function Mi(){gt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ke=!0)})}function ha(){Ge=!0,Mi(),Ci(),Ge=!1}class xn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(gt.add(this),We||(We=!0,j.read(Mi),j.resolveKeyframes(Ci))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}sa(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),gt.delete(this)}cancel(){this.state==="scheduled"&&(gt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const da=t=>t.startsWith("--");function ji(t,e,n){da(e)?t.style.setProperty(e,n):t.style[e]=n}const fa={};function Di(t,e){const n=si(t);return()=>fa[e]??n()}const ma=Di(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ei=Di(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,qn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jt([0,.65,.55,1]),circOut:jt([.55,0,1,.45]),backIn:jt([.31,.01,.66,-.59]),backOut:jt([.33,1.53,.69,.99])};function Ri(t,e){if(t)return typeof t=="function"?Ei()?Pi(t,e):"ease-out":mi(t)?jt(t):Array.isArray(t)?t.map(n=>Ri(n,e)||qn.easeOut):qn[t]}function pa(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=Ri(a,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function ki(t){return typeof t=="function"&&"applyToOptions"in t}function ga({type:t,...e}){return ki(t)&&Ei()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ni extends yn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,ln(typeof e.type!="string");const u=ga(e);this.animation=pa(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=ue(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),ji(n,s,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return H(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+H(e)}get time(){return H(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=W(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ma()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),$):i(this)}}const Li={anticipate:ui,backInOut:ci,circInOut:di};function ya(t){return t in Li}function xa(t){typeof t.ease=="string"&&ya(t.ease)&&(t.ease=Li[t.ease])}const Te=10;class va extends Ni{constructor(e){xa(e),Vi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new ie({...r,autoplay:!1}),c=Math.max(Te,O.now()-this.startTime),u=nt(0,Te,c-Te),l=a.sample(c).value,{name:h}=this.options;o&&h&&ji(o,h,l),n.setWithVelocity(a.sample(Math.max(0,c-u)).value,l,u),a.stop()}}const Zn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(q.test(t)||t==="0")&&!t.startsWith("url("));function wa(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ba(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Zn(i,e),a=Zn(o,e);return!r||!a?!1:wa(t)||(n==="spring"||ki(n))&&s}function He(t){t.duration=0,t.type="keyframes"}const Bi=new Set(["opacity","clipPath","filter","transform"]),Ta=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Sa(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Ta.test(t[e]))return!0;return!1}const Pa=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Aa=si(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Va(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return Aa()&&n&&(Bi.has(n)||Pa.has(n)&&Sa(a))&&(n!=="transform"||!l)&&!u&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Ca=40;class Ma extends yn{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=O.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...h},m=l?.KeyframeResolver||xn;this.keyframeResolver=new m(a,(p,g,y)=>this.onKeyframesResolved(p,g,f,!y),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=O.now();let h=!0;ba(e,o,r,a)||(h=!1,(ot.instantAnimations||!c)&&l?.(ue(e,s,n)),e[0]=e[e.length-1],He(s),s.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ca?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=h&&!u&&Va(m),g=m.motionValue?.owner?.current;let y;if(p)try{y=new va({...m,element:g})}catch{y=new ie(m)}else y=new ie(m);y.finished.then(()=>{this.notifyFinished()}).catch($),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ha()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Fi(t,e,n,s=0,i=1){const o=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const Jn=30,ja=t=>!isNaN(parseFloat(t));class Da{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=O.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=O.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ja(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new cn);const s=this.events[e].add(n);return e==="change"?()=>{s(),j.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Jn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Jn);return ii(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pt(t,e){return new Da(t,e)}function Ii(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function vn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Ii(n,t):n}const Ea={type:"spring",stiffness:500,damping:25,restSpeed:10},Ra=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ka={type:"keyframes",duration:.8},Na={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},La=(t,{keyframes:e})=>e.length>2?ka:Ct.has(t)?t.startsWith("scale")?Ra(e[1]):Ea:Na,Ba=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Fa(t){for(const e in t)if(!Ba.has(e))return!0;return!1}const wn=(t,e,n,s={},i,o)=>r=>{const a=vn(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-W(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};
vendor: 37,431 bytes, line 1
1Fa(a)||Object.assign(l,La(t,l)),l.duration&&(l.duration=W(l.duration)),l.repeatDelay&&(l.repeatDelay=W(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(He(l),l.delay===0&&(h=!0)),(ot.instantAnimations||ot.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,He(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=ue(l.keyframes,a);if(f!==void 0){j.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new ie(l):new Ma(l)},Ia=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Oa(t){const e=Ia.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Oi(t,e,n=1){const[s,i]=Oa(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return ti(r)?parseFloat(r):r}return dn(i)?Oi(i,e,n+1):i}function Qn(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function bn(t,e,n,s){if(typeof e=="function"){const[i,o]=Qn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Qn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function yt(t,e,n){const s=t.getProps();return bn(s,e,n!==void 0?n:s.custom,t)}const Ui=new Set(["width","height","top","left","right","bottom",...Vt]),$e=t=>Array.isArray(t);function Ua(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Pt(n))}function za(t){return $e(t)?t[t.length-1]||0:t}function Wa(t,e){const n=yt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=za(o[r]);Ua(t,r,a)}}const I=t=>!!(t&&t.getVelocity);function Ka(t){return!!(I(t)&&t.add)}function _e(t,e){const n=t.getValue("willChange");if(Ka(n))return n.add(e);if(!n&&ot.WillChange){const s=new ot.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Tn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ga="framerAppearId",zi="data-"+Tn(Ga);function Wi(t){return t.props[zi]}function Ha({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Ki(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?Ii(o,c):c;const u=o?.reduceMotion,l=o?.skipAnimations;s&&(o=s);const h=[],f=i&&t.animationState&&t.animationState.getState()[i],m=o?.path;m&&m.animateVisualElement(t,a,o,n,h);for(const p in a){const g=t.getValue(p,t.latestValues[p]??null),y=a[p];if(y===void 0||f&&Ha(f,p))continue;const x={delay:n,...vn(o||{},p)};l&&(x.skipAnimations=!0);const v=g.get();if(v!==void 0&&!g.isAnimating()&&!Array.isArray(y)&&y===v&&!x.velocity){j.update(()=>g.set(y));continue}let w=!1;if(window.MotionHandoffAnimation){const D=Wi(t);if(D){const C=window.MotionHandoffAnimation(D,p,j);C!==null&&(x.startTime=C,w=!0)}}_e(t,p);const T=u??t.shouldReduceMotion;g.start(wn(p,g,y,T&&Ui.has(p)?{type:!1}:x,t,w));const V=g.animation;V&&h.push(V)}if(r){const p=()=>j.update(()=>{r&&Wa(t,r)});h.length?Promise.all(h).then(p):p()}return h}function Xe(t,e,n={}){const s=yt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Ki(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=i;return $a(t,e,c,u,l,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function $a(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(Xe(c,e,{...r,delay:n+(typeof s=="function"?0:s)+Fi(t.variantChildren,c,s,i,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function _a(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Xe(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Xe(t,e,n);else{const i=typeof e=="function"?yt(t,e,n.custom):e;s=Promise.all(Ki(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Xa={test:t=>t==="auto",parse:t=>t},Gi=t=>e=>e.test(t),Hi=[At,b,et,it,wo,vo,Xa],ts=t=>Hi.find(Gi(t));function Ya(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ni(t):!0}const qa=new Set(["brightness","contrast","saturate","opacity"]);function Za(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(fn)||[];if(!s)return t;const i=n.replace(s,"");let o=qa.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ja=/\b([a-z-]*)\(.*?\)/gu,Ye={...q,getAnimatableNone:t=>{const e=t.match(Ja);return e?e.map(Za).join(" "):t}},qe={...q,getAnimatableNone:t=>{const e=q.parse(t);return q.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},es={...At,transform:Math.round},Qa={rotate:it,pathRotation:it,rotateX:it,rotateY:it,rotateZ:it,scale:Kt,scaleX:Kt,scaleY:Kt,scaleZ:Kt,skew:it,skewX:it,skewY:it,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:Lt,originX:zn,originY:zn,originZ:b},re={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,inset:b,insetBlock:b,insetBlockStart:b,insetBlockEnd:b,insetInline:b,insetInlineStart:b,insetInlineEnd:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,paddingBlock:b,paddingBlockStart:b,paddingBlockEnd:b,paddingInline:b,paddingInlineStart:b,paddingInlineEnd:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,marginBlock:b,marginBlockStart:b,marginBlockEnd:b,marginInline:b,marginInlineStart:b,marginInlineEnd:b,fontSize:b,backgroundPositionX:b,backgroundPositionY:b,...Qa,zIndex:es,fillOpacity:Lt,strokeOpacity:Lt,numOctaves:es},tl={...re,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:Ye,WebkitFilter:Ye,mask:qe,WebkitMask:qe},$i=t=>tl[t],el=new Set([Ye,qe]);function _i(t,e){let n=$i(t);return el.has(n)||(n=q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const nl=new Set(["auto","none","0"]);function sl(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!nl.has(o)&&St(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=_i(n,i)}class il extends xn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),dn(h))){const f=Oi(h,n.current);f!==void 0&&(e[l]=f),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Ui.has(s)||e.length!==2)return;const[i,o]=e,r=ts(i),a=ts(o),c=Un(i),u=Un(o);if(c!==u&&rt[s]){this.needsMeasurement=!0;return}if(r!==a)if(Yn(r)&&Yn(a))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else rt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ya(e[i]))&&s.push(i);s.length&&sl(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=rt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Xi(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Ze=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function rl(t){return ei(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Sn}=pi(queueMicrotask,!1),Y={x:!1,y:!1};function Yi(){return Y.x||Y.y}function ol(t){return t==="x"||t==="y"?Y[t]?null:(Y[t]=!0,()=>{Y[t]=!1}):Y.x||Y.y?null:(Y.x=Y.y=!0,()=>{Y.x=Y.y=!1})}function qi(t,e){const n=Xi(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function al(t){return!(t.pointerType==="touch"||Yi())}function ll(t,e,n={}){const[s,i,o]=qi(t,n);return s.forEach(r=>{let a=!1,c=!1,u;const l=()=>{r.removeEventListener("pointerleave",p)},h=y=>{u&&(u(y),u=void 0),l()},f=y=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(y))},m=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=y=>{if(y.pointerType!=="touch"){if(a){c=!0;return}h(y)}},g=y=>{if(!al(y))return;c=!1;const x=e(r,y);typeof x=="function"&&(u=x,r.addEventListener("pointerleave",p,i))};r.addEventListener("pointerenter",g,i),r.addEventListener("pointerdown",m,i)}),o}const Zi=(t,e)=>e?t===e?!0:Zi(t,e.parentElement):!1,Pn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,cl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ul(t){return cl.has(t.tagName)||t.isContentEditable===!0}const hl=new Set(["INPUT","SELECT","TEXTAREA"]);function dl(t){return hl.has(t.tagName)||t.isContentEditable===!0}const _t=new WeakSet;function ns(t){return e=>{e.key==="Enter"&&t(e)}}function Se(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const fl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=ns(()=>{if(_t.has(n))return;Se(n,"down");const i=ns(()=>{Se(n,"up")}),o=()=>Se(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function ss(t){return Pn(t)&&!Yi()}const is=new WeakSet;function ml(t,e,n={}){const[s,i,o]=qi(t,n),r=a=>{const c=a.currentTarget;if(!ss(a)||is.has(a))return;_t.add(c),n.stopPropagation&&is.add(a);const u=e(c,a),l=(m,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),_t.has(c)&&_t.delete(c),ss(m)&&typeof u=="function"&&u(m,{success:p})},h=m=>{l(m,c===window||c===document||n.useGlobalTarget||Zi(c,m.target))},f=m=>{l(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),rl(a)&&(a.addEventListener("focus",u=>fl(u,i)),!ul(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function An(t){return ei(t)&&"ownerSVGElement"in t}const Xt=new WeakMap;let Yt;const Ji=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:An(s)&&"getBBox"in s?s.getBBox()[e]:s[n],pl=Ji("inline","width","offsetWidth"),gl=Ji("block","height","offsetHeight");function yl({target:t,borderBoxSize:e}){Xt.get(t)?.forEach(n=>{n(t,{get width(){return pl(t,e)},get height(){return gl(t,e)}})})}function xl(t){t.forEach(yl)}function vl(){typeof ResizeObserver>"u"||(Yt=new ResizeObserver(xl))}function wl(t,e){Yt||vl();const n=Xi(t);return n.forEach(s=>{let i=Xt.get(s);i||(i=new Set,Xt.set(s,i)),i.add(e),Yt?.observe(s)}),()=>{n.forEach(s=>{const i=Xt.get(s);i?.delete(e),i?.size||Yt?.unobserve(s)})}}const qt=new Set;let bt;function bl(){bt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};qt.forEach(e=>e(t))},window.addEventListener("resize",bt)}function Tl(t){return qt.add(t),bt||bl(),()=>{qt.delete(t),!qt.size&&typeof bt=="function"&&(window.removeEventListener("resize",bt),bt=void 0)}}function rs(t,e){return typeof t=="function"?Tl(t):wl(t,e)}function Sl(t){return An(t)&&t.tagName==="svg"}const Pl=[...Hi,k,q],Al=t=>Pl.find(Gi(t)),os=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tt=()=>({x:os(),y:os()}),as=()=>({min:0,max:0}),N=()=>({x:as(),y:as()}),Vl=new WeakMap;function he(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Bt(t){return typeof t=="string"||Array.isArray(t)}const Vn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cn=["initial",...Vn];function de(t){return he(t.animate)||Cn.some(e=>Bt(t[e]))}function Qi(t){return!!(de(t)||t.variants)}function Cl(t,e,n){for(const s in e){const i=e[s],o=n[s];if(I(i))t.addValue(s,i);else if(I(o))t.addValue(s,Pt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Pt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Je={current:null},tr={current:!1},Ml=typeof window<"u";function jl(){if(tr.current=!0,!!Ml)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Je.current=t.matches;t.addEventListener("change",e),e()}else Je.current=!1}const ls=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let oe={};function er(t){oe=t}function Dl(){return oe}class El{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=xn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=O.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,j.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=de(n),this.isVariantNode=Qi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in f){const p=f[m];u[m]!==void 0&&I(p)&&p.set(u[m])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,Vl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(tr.current||jl(),this.shouldReduceMotion=Je.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),at(this.notifyUpdate),at(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Bi.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:u,duration:l}=n.accelerate,h=new Ni({element:this.current,name:e,keyframes:a,times:c,ease:u,duration:W(l)}),f=r(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=Ct.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&j.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in oe){const n=oe[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):N()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ls.length;s++){const i=ls[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Cl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Pt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(ti(s)||ni(s))?s=parseFloat(s):!Al(s)&&q.test(n)&&(s=_i(e,n)),this.setBaseTarget(e,I(s)?s.get():s)),I(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=bn(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!I(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new cn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Sn.render(this.render)}}class nr extends El{constructor(){super(...arguments),this.KeyframeResolver=il}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;I(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class lt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function sr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Rl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function kl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Pe(t){return t===void 0||t===1}function Qe({scale:t,scaleX:e,scaleY:n}){return!Pe(t)||!Pe(e)||!Pe(n)}function ft(t){return Qe(t)||ir(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ir(t){return cs(t.x)||cs(t.y)}function cs(t){return t&&t!=="0%"}function ae(t,e,n){const s=t-n,i=e*s;return n+i}function us(t,e,n,s,i){return i!==void 0&&(t=ae(t,i,s)),ae(t,n,s)+e}function tn(t,e=0,n=1,s,i){t.min=us(t.min,e,n,s,i),t.max=us(t.max,e,n,s,i)}function rr(t,{x:e,y:n}){tn(t.x,e.translate,e.scale,e.originPoint),tn(t.y,n.translate,n.scale,n.originPoint)}const hs=.999999999999,ds=1.0000000000001;function Nl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(tt(t.x,-o.scroll.offset.x),tt(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,rr(t,r)),s&&ft(o.latestValues)&&Zt(t,o.latestValues,o.layout?.layoutBox))}e.x<ds&&e.x>hs&&(e.x=1),e.y<ds&&e.y>hs&&(e.y=1)}function tt(t,e){t.min+=e,t.max+=e}function fs(t,e,n,s,i=.5){const o=M(t.min,t.max,i);tn(t,e,n,o,s)}function ms(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Zt(t,e,n){const s=n??t;fs(t.x,ms(e.x,s.x),e.scaleX,e.scale,e.originX),fs(t.y,ms(e.y,s.y),e.scaleY,e.scale,e.originY)}function or(t,e){return sr(kl(t.getBoundingClientRect(),e))}function Ll(t,e,n){const s=or(t,n),{scroll:i}=e;return i&&(tt(s.x,i.offset.x),tt(s.y,i.offset.y)),s}const Bl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fl=Vt.length;function Il(t,e,n){let s="",i=!0;for(let r=0;r<Fl;r++){const a=Vt[r],c=t[a];if(c===void 0)continue;let u=!0;if(typeof c=="number")u=c===(a.startsWith("scale")?1:0);else{const l=parseFloat(c);u=a.startsWith("scale")?l===1:l===0}if(!u||n){const l=Ze(c,re[a]);if(!u){i=!1;const h=Bl[a]||a;s+=`${h}(${l}) `}n&&(e[a]=l)}}const o=t.pathRotation;return o&&(i=!1,s+=`rotate(${Ze(o,re.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Mn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(Ct.has(c)){r=!0;continue}else if(yi(c)){i[c]=u;continue}else{const l=Ze(u,re[c]);c.startsWith("origin")?(a=!0,o[c]=l):s[c]=l}}if(e.transform||(r||n?s.transform=Il(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;s.transformOrigin=`${c} ${u} ${l}`}}function ar(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function ps(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(b.test(t))t=parseFloat(t);else return t;const n=ps(t,e.target.x),s=ps(t,e.target.y);return`${n}% ${s}%`}},Ol={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=q.parse(t);if(i.length>5)return s;const o=q.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=c;const u=M(a,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}},en={borderRadius:{...Mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mt,borderTopRightRadius:Mt,borderBottomLeftRadius:Mt,borderBottomRightRadius:Mt,boxShadow:Ol};function lr(t,{layout:e,layoutId:n}){return Ct.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!en[t]||t==="opacity")}function jn(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(I(s[r])||i&&I(i[r])||lr(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function Ul(t){return window.getComputedStyle(t)}class zl extends nr{constructor(){super(...arguments),this.type="html",this.renderInstance=ar}readValueFromInstance(e,n){if(Ct.has(n))return this.projection?.isProjecting?Ue(n):oa(e,n);{const s=Ul(e),i=(yi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return or(e,n)}build(e,n,s){Mn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return jn(e,n,s)}}const Wl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Kl={offset:"strokeDashoffset",array:"strokeDasharray"};function Gl(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Wl:Kl;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const Hl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function cr(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(Mn(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=l?.transformBox??"fill-box",delete h.transformBox);for(const m of Hl)h[m]!==void 0&&(f[m]=h[m],delete h[m]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Gl(h,i,o,r,!1)}const ur=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),hr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function $l(t,e,n,s){ar(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(ur.has(i)?i:Tn(i),e.attrs[i])}function dr(t,e,n){const s=jn(t,e,n);for(const i in t)if(I(t[i])||I(e[i])){const o=Vt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class _l extends nr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=N}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ct.has(n)){const s=$i(n);return s&&s.default||0}return n=ur.has(n)?n:Tn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return dr(e,n,s)}build(e,n,s){cr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){$l(e,n,s,i)}mount(e){this.isSVGTag=hr(e.tagName),super.mount(e)}}const Xl=Cn.length;function fr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?fr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Xl;n++){const s=Cn[n],i=t.props[s];(Bt(i)||i===!1)&&(e[s]=i)}return e}function mr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Yl=[...Vn].reverse(),ql=Vn.length;function Zl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>_a(t,n,s)))}function Jl(t){let e=Zl(t),n=gs(),s=!0,i=!1;const o=u=>(l,h)=>{const f=yt(t,h,u==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:m,transitionEnd:p,...g}=f;l={...l,...g,...p}}return l};function r(u){e=u(t)}function a(u){const{props:l}=t,h=fr(t.parent)||{},f=[],m=new Set;let p={},g=1/0;for(let x=0;x<ql;x++){const v=Yl[x],w=n[v],T=l[v]!==void 0?l[v]:h[v],V=Bt(T),D=v===u?w.isActive:null;D===!1&&(g=x);let C=T===h[v]&&T!==l[v]&&V;if(C&&(s||i)&&t.manuallyAnimateOnMount&&(C=!1),w.protectedKeys={...p},!w.isActive&&D===null||!T&&!w.prevProp||he(T)||typeof T=="boolean")continue;if(v==="exit"&&w.isActive&&D!==!0){w.prevResolvedValues&&(p={...p,...w.prevResolvedValues});continue}const A=Ql(w.prevProp,T);let L=A||v===u&&w.isActive&&!C&&V||x>g&&V,P=!1;const R=Array.isArray(T)?T:[T];let z=R.reduce(o(v),{});D===!1&&(z={});const{prevResolvedValues:ct={}}=w,Z={...ct,...z},st=B=>{L=!0,m.has(B)&&(P=!0,m.delete(B)),w.needsAnimating[B]=!0;const K=t.getValue(B);K&&(K.liveStyle=!1)};for(const B in Z){const K=z[B],ut=ct[B];if(p.hasOwnProperty(B))continue;let xt=!1;$e(K)&&$e(ut)?xt=!mr(K,ut)||A:xt=K!==ut,xt?K!=null?st(B):m.add(B):K!==void 0&&m.has(B)?st(B):w.protectedKeys[B]=!0}w.prevProp=T,w.prevResolvedValues=z,w.isActive&&(p={...p,...z}),(s||i)&&t.blockInitialAnimation&&(L=!1);const J=C&&A;L&&(!J||P)&&f.push(...R.map(B=>{const K={type:v};if(typeof B=="string"&&(s||i)&&!J&&t.manuallyAnimateOnMount&&t.parent){const{parent:ut}=t,xt=yt(ut,B);if(ut.enteringChildren&&xt){const{delayChildren:Ir}=xt.transition||{};K.delay=Fi(ut.enteringChildren,t,Ir)}}return{animation:B,options:K}}))}if(m.size){const x={};if(typeof l.initial!="boolean"){const v=yt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(x.transition=v.transition)}m.forEach(v=>{const w=t.getBaseTarget(v),T=t.getValue(v);T&&(T.liveStyle=!0),x[v]=w??null}),f.push({animation:x})}let y=!!f.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,i=!1,y?e(f):Promise.resolve()}function c(u,l){if(n[u].isActive===l)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(u,l)),n[u].isActive=l;const h=a(u);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:c,setAnimateFunction:r,getState:()=>n,reset:()=>{n=gs(),i=!0}}}function Ql(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!mr(e,t):!1}function dt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gs(){return{animate:dt(!0),whileInView:dt(),whileHover:dt(),whileTap:dt(),whileDrag:dt(),whileFocus:dt(),exit:dt()}}function nn(t,e){t.min=e.min,t.max=e.max}function X(t,e){nn(t.x,e.x),nn(t.y,e.y)}function ys(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const pr=1e-4,tc=1-pr,ec=1+pr,gr=.01,nc=0-gr,sc=0+gr;function U(t){return t.max-t.min}function ic(t,e,n){return Math.abs(t-e)<=n}function xs(t,e,n,s=.5){t.origin=s,t.originPoint=M(e.min,e.max,t.origin),t.scale=U(n)/U(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=tc&&t.scale<=ec||isNaN(t.scale))&&(t.scale=1),(t.translate>=nc&&t.translate<=sc||isNaN(t.translate))&&(t.translate=0)}function Rt(t,e,n,s){xs(t.x,e.x,n.x,s?s.originX:void 0),xs(t.y,e.y,n.y,s?s.originY:void 0)}function vs(t,e,n,s=0){const i=s?M(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+U(e)}function rc(t,e,n,s){vs(t.x,e.x,n.x,s?.x),vs(t.y,e.y,n.y,s?.y)}function ws(t,e,n,s=0){const i=s?M(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+U(e)}function le(t,e,n,s){ws(t.x,e.x,n.x,s?.x),ws(t.y,e.y,n.y,s?.y)}function bs(t,e,n,s,i){return t-=e,t=ae(t,1/n,s),i!==void 0&&(t=ae(t,1/i,s)),t}function oc(t,e=0,n=1,s=.5,i,o=t,r=t){if(et.test(e)&&(e=parseFloat(e),e=M(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=M(o.min,o.max,s);t===o&&(a-=e),t.min=bs(t.min,e,n,a,i),t.max=bs(t.max,e,n,a,i)}function Ts(t,e,[n,s,i],o,r){oc(t,e[n],e[s],e[i],e.scale,o,r)}const ac=["x","scaleX","originX"],lc=["y","scaleY","originY"];function Ss(t,e,n,s){Ts(t.x,e,ac,n?n.x:void 0,s?s.x:void 0),Ts(t.y,e,lc,n?n.y:void 0,s?s.y:void 0)}function Ps(t){return t.translate===0&&t.scale===1}function yr(t){return Ps(t.x)&&Ps(t.y)}function As(t,e){return t.min===e.min&&t.max===e.max}function cc(t,e){return As(t.x,e.x)&&As(t.y,e.y)}function Vs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function xr(t,e){return Vs(t.x,e.x)&&Vs(t.y,e.y)}function Cs(t){return U(t.x)/U(t.y)}function Ms(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Q(t){return[t("x"),t("y")]}function uc(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,pathRotation:h,rotateX:f,rotateY:m,skewX:p,skewY:g}=n;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),m&&(s+=`rotateY(${m}deg) `),p&&(s+=`skewX(${p}deg) `),g&&(s+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const vr=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],hc=vr.length,js=t=>typeof t=="string"?parseFloat(t):t,Ds=t=>typeof t=="number"||b.test(t);function dc(t,e,n,s,i,o){i?(t.opacity=M(0,n.opacity??1,fc(s)),t.opacityExit=M(e.opacity??1,0,mc(s))):o&&(t.opacity=M(e.opacity??1,n.opacity??1,s));for(let r=0;r<hc;r++){const a=vr[r];let c=Es(e,a),u=Es(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Ds(c)===Ds(u)?(t[a]=Math.max(M(js(c),js(u),s),0),(et.test(u)||et.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,s))}function Es(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const fc=wr(0,.5,hi),mc=wr(.5,.95,$);function wr(t,e,n){return s=>s<t?0:s>e?1:n(Nt(t,e,s))}function pc(t,e,n){const s=I(t)?t:Pt(t);return s.start(wn("",s,e,n)),s.animation}function Ft(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const gc=(t,e)=>t.depth-e.depth;class yc{constructor(){this.children=[],this.isDirty=!1}add(e){an(this.children,e),this.isDirty=!0}remove(e){te(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gc),this.isDirty=!1,this.children.forEach(e)}}function xc(t,e){const n=O.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(at(s),t(o-e))};return j.setup(s,!0),()=>at(s)}function Jt(t){return I(t)?t.get():t}class vc{constructor(){this.members=[]}add(e){an(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(te(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(te(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:o}=e.options;(i===void 0||i!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ae=["","X","Y","Z"],wc=1e3;let bc=0;function Ve(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function br(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Wi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",j,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&br(s)}function Tr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=bc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 1,495 bytes, line 1
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(Pc),this.nodes.forEach(Dc),this.nodes.forEach(Ec),this.nodes.forEach(Ac)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new yc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new cn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=An(r)&&!Sl(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;j.read(()=>{h=window.innerWidth}),t(r,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,l&&l(),l=xc(f,250),Qt.hasAnimatedSinceResize&&(Qt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ns)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:m})=>
vendor: 49,202 bytes, line 1
1{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Bc,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),x=!this.targetLayout||!xr(this.targetLayout,m),v=!h&&f;if(this.options.layoutRoot||this.resumeFrom||v||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...vn(p,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(l,v,w.path)}else h||Ns(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),at(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Rc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&br(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Cc),this.nodes.forEach(Rs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ks);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Mc),this.nodes.forEach(jc),this.nodes.forEach(Tc),this.nodes.forEach(Sc)):this.nodes.forEach(ks),this.clearAllSnapshots();const a=O.now();F.delta=nt(0,1e3/60,a-F.timestamp),F.timestamp=a,F.isProcessing=!0,ye.update.process(F),ye.preRender.process(F),ye.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vc),this.sharedNodes.forEach(kc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!U(this.snapshot.measuredBox.x)&&!U(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=N()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!yr(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||ft(this.latestValues)||l)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),Fc(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return N();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ic))){const{scroll:u}=this.root;u&&(tt(a.x,u.offset.x),tt(a.y,u.offset.y))}return a}removeElementScroll(r){const a=N();if(X(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:h}=u;u!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&X(a,r),tt(a.x,l.offset.x),tt(a.y,l.offset.y))}return a}applyTransform(r,a=!1,c){const u=c||N();X(u,r);for(let l=0;l<this.path.length;l++){const h=this.path[l];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(tt(u.x,-h.scroll.offset.x),tt(u.y,-h.scroll.offset.y)),ft(h.latestValues)&&Zt(u,h.latestValues,h.layout?.layoutBox)}return ft(this.latestValues)&&Zt(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(r){const a=N();X(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!ft(u.latestValues))continue;let l;u.instance&&(Qe(u.latestValues)&&u.updateSnapshot(),l=N(),X(l,u.measurePageBox())),Ss(a,u.latestValues,u.snapshot?.layoutBox,l)}return ft(this.latestValues)&&Ss(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!this.layout||!(l||h))return;this.resolvedRelativeTargetAt=F.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=N(),this.targetWithTransforms=N()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):X(this.target,this.layout.layoutBox),rr(this.target,this.targetDelta)):X(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Qe(this.parent.latestValues)||ir(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),le(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),X(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===F.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;X(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Nl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=N());const{target:m}=r;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ys(this.prevProjectionDelta.x,this.projectionDelta.x),ys(this.prevProjectionDelta.y,this.projectionDelta.y)),Rt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ms(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ms(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Tt(),this.projectionDelta=Tt(),this.projectionDeltaWithTransform=Tt()}setAnimationOrigin(r,a=!1,c){const u=this.snapshot,l=u?u.latestValues:{},h={...this.latestValues},f=Tt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=N(),p=u?u.source:void 0,g=this.layout?this.layout.source:void 0,y=p!==g,x=this.getStack(),v=!x||x.members.length<=1,w=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Lc));this.animationProgress=0;let T;const V=c?.interpolateProjection(r);this.mixTargetDelta=D=>{const C=D/1e3,A=V?.(C);A?(f.x.translate=A.x,f.x.scale=M(r.x.scale,1,C),f.x.origin=r.x.origin,f.x.originPoint=r.x.originPoint,f.y.translate=A.y,f.y.scale=M(r.y.scale,1,C),f.y.origin=r.y.origin,f.y.originPoint=r.y.originPoint):(Ls(f.x,r.x,C),Ls(f.y,r.y,C)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(le(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Nc(this.relativeTarget,this.relativeTargetOrigin,m,C),T&&cc(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=N()),X(T,this.relativeTarget)),y&&(this.animationValues=h,dc(h,l,this.latestValues,C,w,v)),A&&A.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=A.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(at(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{Qt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pt(0)),this.motionValue.jump(0,!1),this.currentAnimation=pc(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&Sr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||N();const h=U(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=U(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}X(a,c),Zt(a,l),Rt(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new vc),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&Ve("z",r,u,this.animationValues);for(let l=0;l<Ae.length;l++)Ve(`rotate${Ae[l]}`,r,u,this.animationValues),Ve(`skew${Ae[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Jt(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Jt(a?.pointerEvents)||""),this.hasProjected&&!ft(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=uc(this.projectionDeltaWithTransform,this.treeScale,l);c&&(h=c(l,h)),r.transform=h;const{x:f,y:m}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?r.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in en){if(l[p]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:x}=en[p],v=h==="none"?l[p]:g(l[p],u);if(y){const w=y.length;for(let T=0;T<w;T++)r[y[T]]=v}else x?this.options.visualElement.renderState.vars[p]=v:r[p]=v}this.options.layoutId&&(r.pointerEvents=u===this?Jt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Rs),this.root.sharedNodes.clear()}}}function Tc(t){t.updateLayout()}function Sc(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;if(i==="size")Q(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=U(h);h.min=n[l].min,h.max=h.min+f});else if(i==="x"||i==="y"){const l=i==="x"?"y":"x";nn(o?e.measuredBox[l]:e.layoutBox[l],n[l])}else Sr(i,e.layoutBox,n)&&Q(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=U(n[l]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const r=Tt();Rt(r,n,e.layoutBox);const a=Tt();o?Rt(a,t.applyTransform(s,!0),e.measuredBox):Rt(a,n,e.layoutBox);const c=!yr(r);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const m=t.options.layoutAnchor||void 0,p=N();le(p,e.layoutBox,h.layoutBox,m);const g=N();le(g,n,f.layoutBox,m),xr(p,g)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Pc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ac(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Vc(t){t.clearSnapshot()}function Rs(t){t.clearMeasurements()}function Cc(t){t.isLayoutDirty=!0,t.updateLayout()}function ks(t){t.isLayoutDirty=!1}function Mc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function jc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ns(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Dc(t){t.resolveTargetDelta()}function Ec(t){t.calcProjection()}function Rc(t){t.resetSkewAndRotation()}function kc(t){t.removeLeadSnapshot()}function Ls(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Bs(t,e,n,s){t.min=M(e.min,n.min,s),t.max=M(e.max,n.max,s)}function Nc(t,e,n,s){Bs(t.x,e.x,n.x,s),Bs(t.y,e.y,n.y,s)}function Lc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Bc={duration:.45,ease:[.4,0,.1,1]},Fs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Is=Fs("applewebkit/")&&!Fs("chrome/")?Math.round:$;function Os(t){t.min=Is(t.min),t.max=Is(t.max)}function Fc(t){Os(t.x),Os(t.y)}function Sr(t,e,n){return t==="position"||t==="preserve-aspect"&&!ic(Cs(e),Cs(n),.2)}function Ic(t){return t!==t.root&&t.scroll?.wasRoot}const Oc=Tr({attachResizeListener:(t,e)=>Ft(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ce={current:void 0},Pr=Tr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ce.current){const t=new Oc({});t.mount(window),t.setOptions({layoutScroll:!0}),Ce.current=t}return Ce.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Ar=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Uc(t=!0){const e=S.useContext(on);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=S.useId();S.useEffect(()=>{if(t)return i(o)},[t]);const r=S.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Vr=S.createContext({strict:!1}),Us={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let zs=!1;function zc(){if(zs)return;const t={};for(const e in Us)t[e]={isEnabled:n=>Us[e].some(s=>!!n[s])};er(t),zs=!0}function Cr(){return zc(),Dl()}function Wc(t){const e=Cr();for(const n in t)e[n]={...e[n],...t[n]};er(e)}const Kc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ce(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Kc.has(t)}let Mr=t=>!ce(t);function Gc(t){typeof t=="function"&&(Mr=e=>e.startsWith("on")?!ce(e):t(e))}try{Gc(require("@emotion/is-prop-valid").default)}catch{}function Hc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||I(t[i])||(Mr(i)||n===!0&&ce(i)||!e&&!ce(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const fe=S.createContext({});function $c(t,e){if(de(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Bt(n)?n:void 0,animate:Bt(s)?s:void 0}}return t.inherit!==!1?e:{}}function _c(t){const{initial:e,animate:n}=$c(t,S.useContext(fe));return S.useMemo(()=>({initial:e,animate:n}),[Ws(e),Ws(n)])}function Ws(t){return Array.isArray(t)?t.join(" "):t}const Dn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jr(t,e,n){for(const s in e)!I(e[s])&&!lr(s,n)&&(t[s]=e[s])}function Xc({transformTemplate:t},e){return S.useMemo(()=>{const n=Dn();return Mn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Yc(t,e){const n=t.style||{},s={};return jr(s,n,t),Object.assign(s,Xc(t,e)),s}function qc(t,e){const n={},s=Yc(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Dr=()=>({...Dn(),attrs:{}});function Zc(t,e,n,s){const i=S.useMemo(()=>{const o=Dr();return cr(o,e,hr(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};jr(o,t.style,t),i.style={...o,...i.style}}return i}const Jc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function En(t){return typeof t!="string"||t.includes("-")?!1:!!(Jc.indexOf(t)>-1||/[A-Z]/u.test(t))}function Qc(t,e,n,{latestValues:s},i,o=!1,r){const c=(r??En(t)?Zc:qc)(e,s,i,t),u=Hc(e,typeof t=="string",o),l=t!==S.Fragment?{...u,...c,ref:n}:{},{children:h}=e,f=S.useMemo(()=>I(h)?h.get():h,[h]);return S.createElement(t,{...l,children:f})}function tu({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:eu(n,s,i,t),renderState:e()}}function eu(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Jt(o[f]);let{initial:r,animate:a}=t;const c=de(t),u=Qi(t);e&&u&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const h=l?a:r;if(h&&typeof h!="boolean"&&!he(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const p=bn(t,f[m]);if(p){const{transitionEnd:g,transition:y,...x}=p;for(const v in x){let w=x[v];if(Array.isArray(w)){const T=l?w.length-1:0;w=w[T]}w!==null&&(i[v]=w)}for(const v in g)i[v]=g[v]}}}return i}const Er=t=>(e,n)=>{const s=S.useContext(fe),i=S.useContext(on),o=()=>tu(t,e,s,i);return n?o():Jr(o)},nu=Er({scrapeMotionValuesFromProps:jn,createRenderState:Dn}),su=Er({scrapeMotionValuesFromProps:dr,createRenderState:Dr}),iu=Symbol.for("motionComponentSymbol");function ru(t,e,n){const s=S.useRef(n);S.useInsertionEffect(()=>{s.current=n});const i=S.useRef(null);return S.useCallback(o=>{o&&t.onMount?.(o),e&&(o?e.mount(o):e.unmount());const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o)},[e])}const Rr=S.createContext({});function vt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ou(t,e,n,s,i,o){const{visualElement:r}=S.useContext(fe),a=S.useContext(Vr),c=S.useContext(on),u=S.useContext(Ar),l=u.reducedMotion,h=u.skipAnimations,f=S.useRef(null),m=S.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:r,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:l,skipAnimations:h,isSVG:o}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const p=f.current,g=S.useContext(Rr);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&au(f.current,n,i,g);const y=S.useRef(!1);S.useInsertionEffect(()=>{p&&y.current&&p.update(n,c)});const x=n[zi],v=S.useRef(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return to(()=>{m.current=!0,p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),S.useEffect(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),v.current=!1),p.enteringChildren=void 0)}),p}function au(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutAnchor:l,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:kr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&vt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:c,layoutRoot:u,layoutAnchor:l})}function kr(t){if(t)return t.options.allowProjection!==!1?t.projection:kr(t.parent)}function Me(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Wc(s);const o=n?n==="svg":En(t),r=o?su:nu;function a(u,l){let h;const f={...S.useContext(Ar),...u,layoutId:lu(u)},{isStatic:m}=f,p=_c(u),g=r(u,m);if(!m&&typeof window<"u"){cu();const y=uu(f);h=y.MeasureLayout,p.visualElement=ou(t,g,f,i,y.ProjectionNode,o)}return d.jsxs(fe.Provider,{value:p,children:[h&&p.visualElement?d.jsx(h,{visualElement:p.visualElement,...f}):null,Qc(t,u,ru(g,p.visualElement,l),g,m,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=S.forwardRef(a);return c[iu]=t,c}function lu({layoutId:t}){const e=S.useContext(Qs).id;return e&&t!==void 0?e+"-"+t:t}function cu(t,e){S.useContext(Vr).strict}function uu(t){const e=Cr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function hu(t,e){if(typeof Proxy>"u")return Me;const n=new Map,s=(o,r)=>Me(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,Me(r,void 0,t,e)),n.get(r))})}const du=(t,e)=>e.isSVG??En(t)?new _l(e):new zl(e,{allowProjection:t!==S.Fragment});class fu extends lt{constructor(e){super(e),e.animationState||(e.animationState=Jl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();he(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let mu=0;class pu extends lt{constructor(){super(...arguments),this.id=mu++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:o,custom:r}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const a=yt(this.node,o,r);if(a){const{transition:c,transitionEnd:u,...l}=a;for(const h in l)this.node.getValue(h)?.jump(l[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const gu={animation:{Feature:fu},exit:{Feature:pu}};function zt(t){return{point:{x:t.pageX,y:t.pageY}}}const yu=t=>e=>Pn(e)&&t(e,zt(e));function kt(t,e,n,s){return Ft(t,e,yu(n),s)}const Nr=({current:t})=>t?t.ownerDocument.defaultView:null,Ks=(t,e)=>Math.abs(t-e);function xu(t,e){const n=Ks(t.x,e.x),s=Ks(t.y,e.y);return Math.sqrt(n**2+s**2)}const Gs=new Set(["auto","scroll"]);class Lr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Gt(this.lastRawMoveEventInfo,this.transformPagePoint));const m=je(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=xu(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:y}=m,{timestamp:x}=F;this.history.push({...y,timestamp:x});const{onStart:v,onMove:w}=this.handlers;p||(v&&v(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=p,this.lastMoveEventInfo=Gt(p,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=je(m.type==="pointercancel"?this.lastMoveEventInfo:Gt(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,v),y&&y(m,v)},!Pn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const c=zt(e),u=Gt(c,this.transformPagePoint),{point:l}=u,{timestamp:h}=F;this.history=[{...l,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,je(u,this.history)),this.removeListeners=It(kt(this.contextWindow,"pointermove",this.handlePointerMove),kt(this.contextWindow,"pointerup",this.handlePointerUp),kt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Gs.has(s.overflowX)||Gs.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),j.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),at(this.updatePoint)}}function Gt(t,e){return e?{point:e(t.point)}:t}function Hs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function je({point:t},e){return{point:t,delta:Hs(t,Br(e)),offset:Hs(t,vu(e)),velocity:wu(e,.1)}}function vu(t){return t[0]}function Br(t){return t[t.length-1]}function wu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Br(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>W(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>W(e)*2&&(s=t[1]);const o=H(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function bu(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?M(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?M(n,t,s.max):Math.min(t,n)),t}function $s(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Tu(t,{top:e,left:n,bottom:s,right:i}){return{x:$s(t.x,n,i),y:$s(t.y,e,s)}}function _s(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Su(t,e){return{x:_s(t.x,e.x),y:_s(t.y,e.y)}}function Pu(t,e){let n=.5;const s=U(t),i=U(e);return i>s?n=Nt(e.min,e.max-s,t.min):s>i&&(n=Nt(t.min,t.max-i,e.min)),nt(0,1,n)}function Au(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const sn=.35;function Vu(t=sn){return t===!1?t=0:t===!0&&(t=sn),{x:Xs(t,"left","right"),y:Xs(t,"top","bottom")}}function Xs(t,e,n){return{min:Ys(t,e),max:Ys(t,n)}}function Ys(t,e){return typeof t=="number"?t:t[e]||0}const Cu=new WeakMap;class Mu{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=N(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{n&&this.snapToCursor(zt(h).point),this.stopAnimation()},r=(h,f)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ol(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Q(x=>{let v=this.getAxisMotionValue(x).get()||0;if(et.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const T=w.layout.layoutBox[x];T&&(v=U(T)*(parseFloat(v)/100))}}this.originPoint[x]=v}),g&&j.update(()=>g(h,f),!1,!0),_e(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:y}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:x}=f;if(p&&this.currentDirection===null){this.currentDirection=Du(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),y&&j.update(()=>y(h,f),!1,!0)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Lr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:Nr(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&j.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Ht(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=bu(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&vt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Tu(s.layoutBox,e):this.constraints=!1,this.elastic=Vu(n),i!==this.constraints&&!vt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Q(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Au(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!vt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const o=Ll(s,i.root,this.visualElement.getTransformPagePoint());let r=Su(i.layout.layoutBox,o);if(n){const a=n(Rl(r));this.hasMutatedConstraints=!!a,a&&(r=sr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=Q(l=>{if(!Ht(l,n,this.currentDirection))return;let h=c&&c[l]||{};(r===!0||r===l)&&(h={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,p={type:"inertia",velocity:s?e[l]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(l,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return _e(this.visualElement,e),s.start(wn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Q(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Q(n=>{const{drag:s}=this.getProps();if(!Ht(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],c=o.get()||0;o.set(e[n]-M(r,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!vt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Q(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();i[r]=Pu({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Q(r=>{if(!Ht(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];a.set(M(c,u,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Cu.set(this.visualElement,this);const e=this.visualElement.current,n=kt(e,"pointerdown",u=>{const{drag:l,dragListener:h=!0}=this.getProps(),f=u.target,m=f!==e&&dl(f);l&&h&&!m&&this.start(u)});let s;const i=()=>{const{dragConstraints:u}=this.getProps();vt(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=ju(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),j.read(i);const a=Ft(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Q(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=u[h].translate,f.set(f.get()+u[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=sn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function qs(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function ju(t,e,n){const s=rs(t,qs(n)),i=rs(e,qs(n));return()=>{s(),i()}}function Ht(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Du(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Eu extends lt{constructor(e){super(e),this.removeGroupControls=$,this.removeListeners=$,this.controls=new Mu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const De=t=>(e,n)=>{t&&j.update(()=>t(e,n),!1,!0)};class Ru extends lt{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(e){this.session=new Lr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:De(e),onStart:De(n),onMove:De(s),onEnd:(o,r)=>{delete this.session,i&&j.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=kt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ee=!1;class ku extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Ee&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Qt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),Ee=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||j.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),Sn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Ee=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Fr(t){const[e,n]=Uc(),s=S.useContext(Qs);return d.jsx(ku,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(Rr),isPresent:e,safeToRemove:n})}const Nu={pan:{Feature:Ru},drag:{Feature:Eu,ProjectionNode:Pr,MeasureLayout:Fr}};function Zs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&j.postRender(()=>o(e,zt(e)))}class Lu extends lt{mount(){const{current:e}=this.node;e&&(this.unmount=ll(e,(n,s)=>(Zs(this.node,s,"Start"),i=>Zs(this.node,i,"End"))))}unmount(){}}class Bu extends lt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=It(Ft(this.node.current,"focus",()=>this.onFocus()),Ft(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Js(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&j.postRender(()=>o(e,zt(e)))}class Fu extends lt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=ml(e,(i,o)=>(Js(this.node,o,"Start"),(r,{success:a})=>Js(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const rn=new WeakMap,Re=new WeakMap,Iu=t=>{const e=rn.get(t.target);e&&e(t)},Ou=t=>{t.forEach(Iu)};function Uu({root:t,...e}){const n=t||document;Re.has(n)||Re.set(n,{});const s=Re.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Ou,{root:t,...e})),s[i]}function zu(t,e,n){const s=Uu(e);return rn.set(t,n),s.observe(t),()=>{rn.delete(t),s.unobserve(t)}}const Wu={some:0,all:1};class Ku extends lt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Wu[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:h}=this.node.getProps(),f=u?l:h;f&&f(c)};this.stopObserver=zu(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Gu(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Gu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Hu={inView:{Feature:Ku},tap:{Feature:Fu},focus:{Feature:Bu},hover:{Feature:Lu}},$u={layout:{ProjectionNode:Pr,MeasureLayout:Fr}},_u={...gu,...Hu,...Nu,...$u},Xu=hu(_u,du),Yu="/assets/cafe-terrace-w02q5rjN.jpg",qu="/assets/app-mockup-Cm3H3tjs.png";function Th(){const{data:t}=Hr(Kr);return d.jsxs($r,{children:[d.jsxs("section",{className:"relative isolate overflow-hidden",children:[d.jsx("div",{className:"absolute inset-0 -z-20",children:d.jsx("img",{src:_r,alt:"Minigolf-Bahn der Anlage im Stadtgarten St. Georgen",className:"h-full w-full object-cover",fetchPriority:"high"})}),d.jsx("div",{className:"absolute inset-0 -z-10 bg-gradient-to-b from-black/65 via-black/35 to-black/70"}),d.jsx("div",{className:"absolute inset-0 -z-10 bg-gradient-to-r from-black/55 via-trans
1parent to-transparent"}),d.jsx("div",{className:"relative mx-auto flex min-h-[70vh] max-w-7xl flex-col justify-center px-4 py-16 sm:px-6 md:min-h-[78vh] md:py-28",children:d.jsxs(Xu.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"max-w-2xl text-white",children:[d.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-white/15 px-4 py-1.5 text-xs font-bold uppercase tracking-wider backdrop-blur-md ring-1 ring-white/25",children:[d.jsx(Nn,{className:"h-3.5 w-3.5"})," St. Georgen im Schwarzwald"]}),d.jsxs("h1",{className:"mt-6 font-display text-4xl font-bold leading-[1.06] text-balance drop-shadow-lg sm:text-6xl md:text-7xl",children:["Raus aus dem Alltag,",d.jsx("br",{}),"rein in den"," ",d.jsx("span",{className:"bg-gradient-to-r from-accent via-sunshine to-white bg-clip-text text-transparent",children:"Stadtgarten."})]}),d.jsx("p",{className:"mt-6 max-w-xl text-base text-white/95 drop-shadow sm:text-xl",children:"Eine Runde Minigolf mitten im Grünen â für Familien, Freunde und alle, die den perfekten Schlag suchen. Ab 2 ⬠pro Runde, ganz ohne Anmeldung."}),d.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row sm:flex-wrap",children:[d.jsx(ht,{asChild:!0,size:"lg",className:"rounded-full bg-accent text-accent-foreground shadow-sun hover:bg-accent/90",children:d.jsxs(G,{to:"/preise",children:["Preise & Ãffnungszeiten ",d.jsx(Ln,{className:"ml-1 h-4 w-4"})]})}),d.jsx(ht,{asChild:!0,size:"lg",variant:"outline",className:"rounded-full border-white/40 bg-white/10 text-white backdrop-blur-md hover:bg-white/20 hover:text-white",children:d.jsxs(G,{to:"/app",children:["App entdecken ",d.jsx(kn,{className:"ml-1 h-4 w-4"})]})})]}),d.jsxs("div",{className:"mt-10 flex flex-wrap items-center gap-x-6 gap-y-3 text-sm text-white/85",children:[d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx(me,{className:"h-4 w-4 fill-accent text-accent"})," Familienfreundlich"]}),d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx(pe,{className:"h-4 w-4"})," Mitten im Stadtgarten"]}),d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx(ge,{className:"h-4 w-4"})," Score-App inklusive"]})]})]})})]}),d.jsx("section",{className:"relative z-10 mx-auto -mt-10 max-w-7xl px-4 sm:px-6 md:-mt-12",children:d.jsxs("div",{className:"grid gap-5 rounded-3xl border border-border bg-card p-6 shadow-pop sm:grid-cols-3",children:[d.jsx(ke,{icon:d.jsx(Bn,{className:"h-5 w-5"}),title:"MoâFr 12â19 Uhr",text:"Samstags 10â17 Uhr, sonntags geschlossen"}),d.jsx(ke,{icon:d.jsx(Fn,{className:"h-5 w-5"}),title:"Ab 2,00 â¬",text:"Kinder bis 5 Jahre spielen kostenlos"}),d.jsx(ke,{icon:d.jsx(pe,{className:"h-5 w-5"}),title:"Im Stadtgarten",text:`${_.address.street}, ${_.address.zip} ${_.address.city}`})]})}),d.jsx("section",{className:"mx-auto mt-20 max-w-7xl px-4 sm:px-6",children:d.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[d.jsxs("div",{className:"rounded-3xl border border-border bg-card p-6 shadow-soft sm:p-8",children:[d.jsxs("h2",{className:"flex items-center gap-2 font-display text-2xl font-bold",children:[d.jsx(Fn,{className:"h-5 w-5 text-primary"})," Preise"]}),d.jsx("ul",{className:"mt-5 divide-y divide-border",children:Or.rounds.map(e=>d.jsxs("li",{className:"flex items-baseline justify-between gap-4 py-3",children:[d.jsx("span",{className:"min-w-0 text-sm font-semibold",children:e.label}),d.jsx("span",{className:"whitespace-nowrap font-display font-bold text-primary",children:e.price})]},e.label))}),d.jsx(G,{to:"/preise",className:"mt-4 inline-flex text-sm font-semibold text-primary hover:underline",children:"Alle Infos zu Preisen â"})]}),d.jsxs("div",{className:"rounded-3xl border border-border bg-card p-6 shadow-soft sm:p-8",children:[d.jsxs("h2",{className:"flex items-center gap-2 font-display text-2xl font-bold",children:[d.jsx(Bn,{className:"h-5 w-5 text-primary"})," Ãffnungszeiten"]}),d.jsx("ul",{className:"mt-5 divide-y divide-border",children:_.hours.map(e=>d.jsxs("li",{className:"flex items-baseline justify-between gap-4 py-3",children:[d.jsx("span",{className:"min-w-0 text-sm font-semibold",children:e.day}),d.jsx("span",{className:"whitespace-nowrap text-sm text-muted-foreground",children:e.time})]},e.day))}),d.jsx("p",{className:"mt-4 text-xs text-muted-foreground",children:_.season}),d.jsx(G,{to:"/oeffnungszeiten",className:"mt-2 inline-flex text-sm font-semibold text-primary hover:underline",children:"Anfahrt & Karte â"})]})]})}),d.jsx("section",{className:"mx-auto mt-24 max-w-7xl px-4 sm:px-6",children:d.jsxs("div",{className:"grid items-center gap-12 md:grid-cols-2",children:[d.jsxs("div",{children:[d.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-secondary/15 px-4 py-1.5 text-xs font-bold uppercase tracking-wider text-secondary",children:[d.jsx(kn,{className:"h-3.5 w-3.5"})," Unsere App"]}),d.jsx("h2",{className:"mt-4 font-display text-3xl font-bold sm:text-4xl",children:"Mach dein Spiel zum Erlebnis."}),d.jsx("p",{className:"mt-4 text-muted-foreground",children:"Mit unserer kostenlosen App trägst du die Schläge pro Bahn ein, siehst am Ende die Auswertung, sammelst Badges und XP und misst dich mit Freunden in eigenen Ligen."}),d.jsx("ul",{className:"mt-6 space-y-3",children:Ur.map(e=>d.jsxs("li",{className:"flex items-start gap-3",children:[d.jsx("span",{className:"mt-0.5 grid h-8 w-8 shrink-0 place-items-center rounded-xl bg-primary/15 text-primary",children:d.jsx(Yr,{className:"h-4 w-4"})}),d.jsxs("div",{className:"min-w-0",children:[d.jsx("p",{className:"font-display font-bold",children:e.name}),d.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})]},e.id))}),d.jsxs("div",{className:"mt-7 flex flex-col gap-3 sm:flex-row sm:flex-wrap",children:[d.jsx(ht,{asChild:!0,size:"lg",className:"rounded-full",children:d.jsx(G,{to:"/auth",children:"Jetzt kostenlos starten"})}),d.jsx(ht,{asChild:!0,size:"lg",variant:"outline",className:"rounded-full",children:d.jsxs(G,{to:"/leaderboard",children:["Bestenliste ansehen ",d.jsx(ge,{className:"ml-1 h-4 w-4"})]})})]})]}),d.jsxs("div",{className:"relative grid place-items-center",children:[d.jsx("div",{className:"absolute inset-x-10 to
1p-10 -z-10 h-72 rounded-[3rem] bg-gradient-sunset blur-3xl opacity-30"}),d.jsx("img",{src:qu,alt:"Minigolf-App auf einem Smartphone",width:1024,height:1024,loading:"lazy",className:"mx-auto max-h-[520px] w-auto"})]})]})}),d.jsx("section",{className:"mx-auto mt-24 max-w-7xl px-4 sm:px-6",children:d.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-2",children:[d.jsx("div",{className:"relative",children:d.jsx("img",{src:Yu,alt:"Sitzplätze im Grünen unter Bäumen am Stadtgarten",width:1280,height:896,loading:"lazy",className:"rounded-3xl shadow-pop"})}),d.jsxs("div",{children:[d.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-accent/30 px-4 py-1.5 text-xs font-bold uppercase tracking-wider text-accent-foreground",children:[d.jsx(qr,{className:"h-3.5 w-3.5"})," Café â bald"]}),d.jsx("h2",{className:"mt-4 font-display text-3xl font-bold sm:text-4xl",children:_.cafe.headline}),d.jsx("p",{className:"mt-4 text-muted-foreground",children:_.cafe.text}),d.jsx(ht,{asChild:!0,className:"mt-6 rounded-full",variant:"outline",children:d.jsx(G,{to:"/speisekarte",children:"Mehr erfahren"})})]})]})}),d.jsxs("section",{className:"mx-auto mt-24 max-w-7xl px-4 sm:px-6",children:[d.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-secondary/15 px-4 py-1.5 text-xs font-bold uppercase tracking-wider text-secondary",children:[d.jsx(Nn,{className:"h-3.5 w-3.5"})," Spielregeln"]}),d.jsx("h2",{className:"mt-4 font-display text-3xl font-bold sm:text-4xl",children:"So wird bei uns gespielt"}),d.jsx("p",{className:"mt-3 max-w-2xl text-muted-foreground",children:"Minigolf ist schnell erklärt: Wer für alle Bahnen die wenigsten Schläge braucht, gewinnt. Diese Regeln gelten auf unserer Anlage im Stadtgarten."}),d.jsx("ul",{className:"mt-8 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[{t:"Wenigste Schläge gewinnen",d:"Alle Schläge werden zusammengezählt. Wer am Ende die niedrigste Gesamtzahl hat, gewinnt."},{t:"Maximal 6 Versuche pro Bahn",d:"Ist der Ball nach 6 Fehlversuchen nicht im Loch, werden 7 Punkte notiert und es geht zur nächsten Bahn."},{t:"Immer vom Startblock",d:"Jede Bahn wird vom Startblock aus angespielt."},{t:"Rote Linie beachten",d:"Liegt der Ball nach dem Schlag nicht hinter der roten Linie, wird erneut vom Startblock gestartet."},{t:"Schwarze Linie als Hilfe",d:"Der Ball darf auf die schwarze Linie zurückgelegt und von dort weitergespielt werden."},{t:"Richtiger Ball, richtige Bahn",d:"Für jede Bahn ist der passende Ball (Farbe) zu verwenden."}].map((e,n)=>d.jsxs("li",{className:"rounded-3xl border border-border bg-card p-6 shadow-soft",children:[d.jsxs("p",{className:"flex items-start gap-3 font-display text-lg font-bold",children:[d.jsx("span",{className:"grid h-7 w-7 shrink-0 place-items-center rounded-full bg-primary/15 text-sm text-primary",children:n+1}),e.t]}),d.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:e.d})]},n))})]}),d.jsxs("section",{className:"mx-auto mt-24 max-w-7xl px-4 sm:px-6",children:[d.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-primary/10 px-4 py-1.5 text-xs font-bold uppercase tracking-wider text-primary",children:[d.jsx(me,{className:"h-3.5 w-3.5"})," Unsere Anlage"]}),d.jsx("h2",{className:"mt-4 font-display text-3xl font-bold sm:text-4xl",children:"Fakten zu unserer Bahn"}),d.jsx("p",{className:"mt-3 max-w-2xl text-muted-foreground",children:"Was unsere Minigolf-Bahn im Stadtgarten St. Georgen besonders macht."}),d.jsx("ul",{className:"mt-8 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:zr.map(e=>d.jsxs("li",{className:"rounded-3xl border border-border bg-card p-6 shadow-soft",children:[d.jsx("p",{className:"font-display text-lg font-bold",children:e.title}),d.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:e.text})]},e.title))}),d.jsxs("div",{className:"mt-6 flex flex-wrap gap-3",children:[d.jsxs("a",{href:Wr(Gr),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-full bg-primary px-5 py-2.5 text-sm font-bold text-primary-foreground shadow-soft hover:opacity-90",children:[d.jsx(Xr,{className:"h-4 w-4"})," Zur Anlage navigieren"]}),d.jsxs("a",{href:_.googleReview,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-full border border-border bg-card px-5 py-2.5 text-sm font-bold hover:bg-muted/50",children:[d.jsx(me,{className:"h-4 w-4"})," Rezension schreiben"]})]})]}),d.jsx("section",{className:"mx-auto mt-24 max-w-7xl px-4 sm:px-6",children:d.jsx("div",{className:"grid gap-6",children:d.jsxs(G,{to:"/leaderboard",className:"group relative overflow-hidden rounded-3xl bg-gradient-grass p-8 text-white shadow-pop transition-transform hover:-translate-y-1",children:[d.jsx(ge,{className:"absolute -right-6 -top-6 h-32 w-32 opacity-20"}),d.jsx("h2",{className:"font-display text-2xl font-bold",children:"Bestenliste"}),d.jsx("p",{className:"mt-2 max-w-md text-white/90",children:"Die besten Spieler:innen der Saison nach XP. Steig ein und kletter mit!"}),d.jsxs("span",{className:"mt-4 inline-flex items-center gap-1 font-semibold",children:["Rangliste ",d.jsx(Ln,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})})}),d.jsxs("section",{className:"mx-auto mt-24 max-w-7xl px-4 sm:px-6",children:[d.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[d.jsxs("div",{className:"min-w-0",children:[d.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-primary/10 px-4 py-1.5 text-xs font-bold uppercase tracking-wider text-primary",children:[d.jsx(Zr,{className:"h-3.5 w-3.5"})," Neuigkeiten"]}),d.jsx("h2",{className:"mt-3 font-display text-3xl font-bold sm:text-4xl",children:"Was bei uns los ist"})]}),d.jsx(G,{to:"/news",className:"text-sm font-semibold text-primary hover:underline",children:"Alle News â"})]}),d.jsxs("div",{className:"mt-8 grid gap-5 md:grid-cols-3",children:[t.length===0&&d.jsx("p",{className:"text-muted-foreground md:col-span-3",children:"Aktuell keine Neuigkeiten â schau bald wieder vorbei!"}),t.map(e=>d.jsxs(G,{to:"/news/$slug",params:{slug:e.slug},className:"group block rounded-3xl border border-border bg-card p-6 shadow-soft transition-transform hover:-translate-y-1",children:[d.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:new Date(e.published_at).toLocaleDateString("de-DE",{day:"2-digit",month:"long",year:"numeric"})}),d.jsx("h3",{className:"mt-2 font-display text-xl font-bold leading-snug group-hover:text-primary",children:e.title}),d.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:e.excerpt})]},e.id))]})]}),d.jsx("section",{className:"mx-auto mt-16 max-w-7xl px-4 sm:px-6",children:d.jsx("div",{className:"rounded-[2.5rem] border-2 border-primary/30 bg-primary/5 p-8 sm:p-10",children:d.jsxs("div",{className:"grid gap-6 md:grid-cols-[1fr_auto] md:items-center",children:[d.jsxs("div",{children:[d.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-primary/15 px-4 py-1.5 text-xs font-bold uppercase tracking-wider text-primary",children:[d.jsx(Rn,{className:"h-3.5 w-3.5"})," Nichts verpassen"]}),d.jsx("h2",{className:"mt-3 font-display text-3xl font-bold sm:text-4xl",children:"Tritt unserem WhatsApp-Kanal bei"}),d.jsx("p",{className:"mt-3 max-w-2xl text-muted-foreground",children:"Im WhatsApp-Kanal erfährst du als Erste:r alle aktuellen Informationen: kurzfristige Ãnderungen der Ãffnungszeiten (z. B. bei Regen), Events im Café â und vor allem besondere Angebote wie Gratis-Eis oder Aktionen, die es nur dort gibt. Einfach beitreten, kostenlos und jederzeit wieder verlassbar."})]}),d.jsxs("div",{className:"flex flex-col gap-3",children:[d.jsxs("a",{href:_.whatsappChannel,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 rounded-full bg-primary px-6 py-3 text-sm font-bold text-primary-foreground shadow-soft hover:opacity-90",children:[d.jsx(Rn,{className:"h-4 w-4"})," Jetzt Kanal beitreten"]}),d.jsxs("a",{href:_.crossietyGroup,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 rounded-full border border-border bg-card px-6 py-3 text-sm font-bold hover:bg-muted/50",children:[d.jsx(In,{className:"h-4 w-4"})," Crossiety-Gruppe"]})]})]})})}),d.jsx("section",{className:"mx-auto mt-24 max-w-7xl px-4 sm:px-6",children:d.jsx("div",{className:"overflow-hidden rounded-[2.5rem] bg-gradient-hero p-8 text-white sm:p-10 md:p-16",children:d.jsxs("div",{className:"grid gap-8 md:grid-cols-2 md:items-center",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"font-display text-3xl font-bold sm:text-4xl",children:"Bis gleich auf der Anlage!"}),d.jsx("p",{className:"mt-3 text-white/90",children:_.season})]}),d.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:flex-wrap md:justify-end",children:[d.jsx(ht,{asChild:!0,size:"lg",className:"rounded-full bg-white text-foreground hover:bg-white/90",children:d.jsxs(G,{to:"/oeffnungszeiten",children:[d.jsx(pe,{className:"mr-2 h-4 w-4"}),"Anfahrt"]})}),d.jsx(ht,{asChild:!0,size:"lg",variant:"outline",className:"rounded-full border-white/40 bg-white/10 text-white hover:bg-white/20 hover:text-white",children:d.jsxs(G,{to:"/auth",children:[d.jsx(In,{className:"mr-2 h-4 w-4"}),"App starten"]})})]})]})})})]})}function ke({icon:t,title:e,text:n}){return d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("span",{className:"grid h-12 w-12 shrink-0 place-items-center rounded-2xl bg-gradient-grass text-white",children:t}),d.jsxs("div",{className:"min-w-0",children:[d.jsx("p",{className:"font-display text-base font-bold",children:e}),d.jsx("p",{className:"text-sm text-muted-foreground",children:n})]})]})}export{Th as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.