PageSourceSearch

https://yomake.ai/assets/es-BNYmpPYD.js

js yomake.ai collected 2026-10-05 14:19:53 UTC 68,154 bytes, 1 lines download raw bytes

1import{o as e,r as t}from"./rolldown-runtime-DAXXjFlN.js";import{Ot as n}from"./vendor-radix-X7JPi7Gu.js";function r(e,t){e.indexOf(t)===-1&&e.push(t)}function i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var a=(e,t,n)=>n>t?t:n<e?e:n,o=()=>{},s=()=>{},c={},l=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),u=e=>typeof e==`object`&&!!e,d=e=>/^0[^.\s]+$/u.test(e);function f(e){let t;return()=>(t===void 0&&(t=e()),t)}var p=e=>e,m=(...e)=>e.reduce((e,t)=>n=>t(e(n))),h=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},g=class{constructor(){this.subscriptions=[]}add(e){return r(this.subscriptions,e),()=>i(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},_=e=>e*1e3,v=e=>e/1e3,y=(e,t)=>t?1e3/t*e:0,b=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,x=1e-7,S=12;function C(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=b(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>x&&++s<S);return o}function w(e,t,n,r){if(e===t&&n===r)return p;let i=t=>C(t,0,1,e,n);return e=>e===0||e===1?e:b(i(e),t,r)}var T=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,E=e=>t=>1-e(1-t),D=w(.33,1.53,.69,.99),ee=E(D),te=T(ee),ne=e=>e>=1?1:(e*=2)<1?.5*ee(e):.5*(2-2**(-10*(e-1))),re=e=>1-Math.sin(Math.acos(e)),ie=E(re),ae=T(re),oe=w(.42,0,1,1),se=w(0,0,.58,1),ce=w(.42,0,.58,1),le=e=>Array.isArray(e)&&typeof e[0]!=`number`,ue=e=>Array.isArray(e)&&typeof e[0]==`number`,de={linear:p,easeIn:oe,easeInOut:ce,easeOut:se,circIn:re,circInOut:ae,circOut:ie,backIn:ee,backInOut:te,backOut:D,anticipate:ne},fe=e=>typeof e==`string`,pe=e=>{if(ue(e)){e.length;let[t,n,r,i]=e;return w(t,n,r,i)}else if(fe(e))return de[e],`${e}`,de[e];return e},me=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function he(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var ge=40;function _e(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=me.reduce((e,t)=>(e[t]=he(a),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:m,postRender:h}=o,g=()=>{let a=c.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ge),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:me.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||_(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<me.length;t++)o[me[t]].cancel(e)},state:i,steps:o}}var{schedule:O,cancel:ve,state:ye,steps:be}=_e(typeof requestAnimationFrame<`u`?requestAnimationFrame:p,!0),xe;function Se(){xe=void 0}var k={now:()=>(xe===void 0&&k.set(ye.isProcessing||c.useManualTiming?ye.timestamp:performance.now()),xe),set:e=>{xe=e,queueMicrotask(Se)}},Ce=e=>t=>typeof t==`string`&&t.startsWith(e),we=Ce(`--`),Te=Ce(`var(--`),Ee=e=>Te(e)?De.test(e.split(`/*`)[0].trim()):!1,De=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Oe(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var A={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},j={...A,transform:e=>a(0,1,e)},ke={...A,default:1},Ae=e=>Math.round(e*1e5)/1e5,je=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Me(e){return e==null}var Ne=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pe=(e,t)=>n=>!!(typeof n==`string`&&Ne.test(n)&&n.startsWith(e)||t&&!Me(n)&&Object.prototype.hasOwnProperty.call(n,t)),Fe=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(je);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ie=e=>a(0,255,e),Le={...A,transform:e=>Math.round(Ie(e))},M={test:Pe(`rgb`,`red`),parse:Fe(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Le.transform(e)+`, `+Le.transform(t)+`, `+Le.transform(n)+`, `+Ae(j.transform(r))+`)`};function Re(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
1a:i?parseInt(i,16)/255:1}}var ze={test:Pe(`#`),parse:Re,transform:M.transform},Be=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),N=Be(`deg`),P=Be(`%`),F=Be(`px`),Ve=Be(`vh`),He=Be(`vw`),Ue={...P,parse:e=>P.parse(e)/100,transform:e=>P.transform(e*100)},I={test:Pe(`hsl`,`hue`),parse:Fe(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+P.transform(Ae(t))+`, `+P.transform(Ae(n))+`, `+Ae(j.transform(r))+`)`},L={test:e=>M.test(e)||ze.test(e)||I.test(e),parse:e=>M.test(e)?M.parse(e):I.test(e)?I.parse(e):ze.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?M.transform(e):I.transform(e),getAnimatableNone:e=>{let t=L.parse(e);return t.alpha=0,L.transform(t)}},We=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ge(e){var t,n;return isNaN(e)&&typeof e==`string`&&(((t=e.match(je))==null?void 0:t.length)||0)+(((n=e.match(We))==null?void 0:n.length)||0)>0}var Ke=`number`,qe=`color`,Je=`var`,Ye=`var(`,Xe="${}",Ze=/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 R(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Ze,e=>(L.test(e)?(r.color.push(a),i.push(qe),n.push(L.parse(e))):e.startsWith(Ye)?(r.var.push(a),i.push(Je),n.push(e)):(r.number.push(a),i.push(Ke),n.push(parseFloat(e))),++a,Xe)).split(Xe),indexes:r,types:i}}function Qe(e){return R(e).values}function $e({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Ke?i+=Ae(r[a]):e===qe?i+=L.transform(r[a]):i+=r[a]}return i}}function et(e){return $e(R(e))}var tt=e=>typeof e==`number`?0:L.test(e)?L.getAnimatableNone(e):e,nt=(e,t)=>typeof e==`number`?t!=null&&t.trim().endsWith(`/`)?e:0:tt(e);function rt(e){let t=R(e);return $e(t)(t.values.map((e,n)=>nt(e,t.split[n])))}var z={test:Ge,parse:Qe,createTransformer:et,getAnimatableNone:rt};function it(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function at({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=it(s,r,e+1/3),a=it(s,r,e),o=it(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function ot(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n,st=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ct=[ze,M,I],lt=e=>ct.find(t=>t.test(e));function ut(e){let t=lt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===I&&(n=at(n)),n}var dt=(e,t)=>{let n=ut(e),r=ut(t);if(!n||!r)return ot(e,t);let i={...n};return e=>(i.red=st(n.red,r.red,e),i.green=st(n.green,r.green,e),i.blue=st(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),M.transform(i))},ft=new Set([`none`,`hidden`]);function pt(e,t){return ft.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function mt(e,t){return n=>B(e,t,n)}function ht(e){return typeof e==`number`?mt:typeof e==`string`?Ee(e)?ot:L.test(e)?dt:yt:Array.isArray(e)?gt:typeof e==`object`?L.test(e)?dt:_t:ot}function gt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>ht(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function _t(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ht(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function vt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var yt=(e,t)=>{let n=z.createTransformer(t),r=R(e),i=R(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ft.has(e)&&!i.values.length||ft.has(t)&&!r.values.length?pt(e,t):m(gt(vt(r,i),i.values),n):(`${e}${t}`,ot(e,t))};function bt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`
1number`?B(e,t,n):ht(e)(e,t)}var xt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>O.update(t,e),stop:()=>ve(t),now:()=>ye.isProcessing?ye.timestamp:k.now()}},St=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Ct=2e4;function wt(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Tt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(wt(r),Ct);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:v(i)}}var V={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 Et(e,t){return e*Math.sqrt(1-t*t)}var Dt=12;function Ot(e,t,n){let r=n;for(let n=1;n<Dt;n++)r-=e(r)/t(r);return r}var kt=.001;function At({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:r=V.mass}){let i,o;V.maxDuration;let s=1-t;s=a(V.minDamping,V.maxDamping,s),e=a(V.minDuration,V.maxDuration,v(e)),s<1?(i=t=>{let r=t*s,i=r*e,a=r-n,o=Et(t,s),c=Math.exp(-i);return kt-a/o*c},o=t=>{let r=t*s*e,a=r*n+n,o=s**2*t**2*e,c=Math.exp(-r),l=Et(t**2,s);return(-i(t)+kt>0?-1:1)*((a-o)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>Math.exp(-t*e)*((n-t)*(e*e)));let c=5/e,l=Ot(i,o,c);if(e=_(e),isNaN(l))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=l**2*r;return{stiffness:t,damping:s*2*Math.sqrt(r*t),duration:e}}}var jt=[`duration`,`bounce`],Mt=[`stiffness`,`damping`,`mass`];function Nt(e,t){return t.some(t=>e[t]!==void 0)}function Pt(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Nt(e,Mt)&&Nt(e,jt))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*a(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:o}}else{let n=At({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function H(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Pt({...n,velocity:-v(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,y=v(Math.sqrt(c/u)),b=Math.abs(g)<5;r||(r=b?V.restSpeed.granular:V.restSpeed.default),i||(i=b?V.restDelta.granular:V.restDelta.default);let x,S,C,w,T,E;if(h<1)C=Et(y,h),w=(m+h*y*g)/C,x=e=>{let t=Math.exp(-h*y*e);return o-t*(w*Math.sin(C*e)+g*Math.cos(C*e))},T=h*y*w+g*C,E=h*y*g-w*C,S=e=>Math.exp(-h*y*e)*(T*Math.sin(C*e)+E*Math.cos(C*e));else if(h===1){x=e=>o-Math.exp(-y*e)*(g+(m+y*g)*e);let e=m+y*g;S=t=>Math.exp(-y*t)*(y*e*t-m)}else{let e=y*Math.sqrt(h*h-1);x=t=>{let n=Math.exp(-h*y*t),r=Math.min(e*t,300);return o-n*((m+h*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*y*g)/e,n=h*y*t-g*e,r=h*y*g-t*e;S=t=>{let i=Math.exp(-h*y*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let D={calculatedDuration:p&&d||null,velocity:e=>_(S(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*y*e),n=Math.sin(C*e),a=Math.cos(C*e),c=o-t*(w*n+g*a),l=_(t*(T*n+E*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=x(e);if(p)s.done=e>=d;else{let n=_(S(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(wt(D),Ct),t=St(t=>D.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return D}H.applyToOptions=e=>{let t=Tt(e,100,H);return e.ease=t.ease,e.duration=_(t.duration),e.type=`keyframes`,e};var Ft=5;function It(e,t,n){let r=Math.max(t-Ft,0);return y(n-e(r),t-r)}function Lt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=H({keyframes:[f.value,m(f.value)],velocity:It(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Rt(e,t,n){let r=[],i=n||c.mix||bt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=m(Array.isArray(t)?t[n]||p:t,a)),r.push(a)}return r}function zt(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(t.length,o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=Rt(t,r,i),l=c.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=h(e[r],e[r+1],n);return c[r](i)};return n?t=>u(a(e[0],e[o-1],t)):u}function Bt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=h(0,t,r);e.push(B(n,1,i))}}function Vt(e){let t=[0];return Bt(t,e.length-1),t}function Ht(e,t){return e.map(e=>e*t)}function Ut(e,t){return e.map(()=>t||ce).splice(0,e.length-1)}function U({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=le(r)?r.map(pe):pe(r),a={done:!1,value:t[0]},o=zt(Ht(n&&n.length===t.length?n:Vt(t),e),t,{ease:Array.isArray(i)?i:Ut(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Wt=e=>e!==null;function Gt(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Wt),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Kt={decay:Lt,inertia:Lt,tween:U,keyframes:U,spring:H};function qt(e){typeof e.type==`string`&&(e.type=Kt[e.type])}var Jt=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Yt=e=>e/100,W=class extends Jt{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=()=>{var e,t;let{motionValue:n}=this.options;n&&n.updatedAt!==k.now()&&this.tick(k.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),(e=(t=this.options).onStop)==null||e.call(t))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;qt(e);let{type:t=U,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||U;s!==U&&typeof o[0]!=`number`&&(this.mixKeyframes=m(Yt,bt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=wt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);let{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let _=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,b=n;if(d){let e=Math.min(this.currentTime,r)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,d+1),t%2&&(f===`reverse`?(n=1-n,p&&(n-=p/s)):f===`mirror`&&(b=o)),y=a(0,1,n)*s}let x;v?(this.delayState.value=u[0],x=this.delayState):x=b.next(y),i&&!v&&(x.value=i(x.value));let{done:S}=x;!v&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&m!==Lt&&(x.value=Gt(u,this.options,g,this.speed)),h&&h(x.value),C&&this.finish(),x}
1then(e,t){return this.finished.then(e,t)}get duration(){return v(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+v(e)}get time(){return v(this.currentTime)}set time(e){e=_(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(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return It(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(k.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=v(this.currentTime))}play(){var e,t;if(this.isStopped)return;let{driver:n=xt,startTime:r}=this.options;this.driver||(this.driver=n(e=>this.tick(e))),(e=(t=this.options).onPlay)==null||e.call(t);let i=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=i):this.holdTime===null?this.startTime||(this.startTime=r??i):this.startTime=i-this.holdTime,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(k.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state=`finished`,(e=(t=this.options).onComplete)==null||e.call(t)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(e=(t=this.options).onCancel)==null||e.call(t)}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){var t;return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),(t=this.driver)==null||t.stop(),e.observe(this)}};function Xt(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var G=e=>e*180/Math.PI,Zt=e=>$t(G(Math.atan2(e[1],e[0]))),Qt={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zt,rotateZ:Zt,skewX:e=>G(Math.atan(e[1])),skewY:e=>G(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$t=e=>(e%=360,e<0&&(e+=360),e),en=Zt,tn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),nn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),rn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tn,scaleY:nn,scale:e=>(tn(e)+nn(e))/2,rotateX:e=>$t(G(Math.atan2(e[6],e[5]))),rotateY:e=>$t(G(Math.atan2(-e[2],e[0]))),rotateZ:en,rotate:en,skewX:e=>G(Math.atan(e[4])),skewY:e=>G(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function an(e){return+!!e.includes(`scale`)}function on(e,t){if(!e||e===`none`)return an(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=rn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Qt,i=t}if(!i)return an(t);let a=r[t],o=i[1].split(`,`).map(cn);return typeof a==`function`?a(o):o[a]}var sn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return on(n,t)};function cn(e){return parseFloat(e.trim())}var K=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],q=new Set([...K,`pathRotation`]),ln=e=>e===A||e===F,un=new Set([`x`,`y`,`z`]),dn=K.filter(e=>!un.has(e));function fn(e){let t=[];return dn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var J={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>on(t,`x`),y:(e,{transform:t})=>on(t,`y`)};J.translateX=J.x,J.translateY=J.y;var Y=new Set,pn=!1,mn=!1,hn=!1;function gn(){if(mn){let e=Array.from(Y).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
1t.forEach(e=>{let t=fn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;(r=e.getValue(t))==null||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}mn=!1,pn=!1,Y.forEach(e=>e.complete(hn)),Y.clear()}function _n(){Y.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mn=!0)})}function vn(){hn=!0,_n(),gn(),hn=!1}var yn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Y.add(this),pn||(pn=!0,O.read(_n),O.resolveKeyframes(gn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r==null?void 0:r.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Xt(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Y.delete(this)}cancel(){this.state===`scheduled`&&(Y.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},bn=e=>e.startsWith(`--`);
1function xn(e,t,n){bn(t)?e.style.setProperty(t,n):e.style[t]=n}var Sn={};function Cn(e,t){let n=f(e);return()=>Sn[t]??n()}var wn=Cn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Tn=Cn(()=>window.ViewTimeline!==void 0,`viewTimeline`),En=Cn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Dn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,On={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Dn([0,.65,.55,1]),circOut:Dn([.55,0,1,.45]),backIn:Dn([.31,.01,.66,-.59]),backOut:Dn([.33,1.53,.69,.99])};function kn(e,t){if(e)return typeof e==`function`?En()?St(e,t):`ease-out`:ue(e)?Dn(e):Array.isArray(e)?e.map(e=>kn(e,t)||On.easeOut):On[e]}function An(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=kn(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function jn(e){return typeof e==`function`&&`applyToOptions`in e}function Mn({type:e,...t}){return jn(e)&&En()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease=`easeOut`),t)}var Nn=class extends Jt{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Mn(e);this.animation=An(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Gt(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),xn(t,n,e),this.animation.cancel()}s==null||s(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;(e=(t=this.animation).finish)==null||e.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e;let t=(e=this.options)==null?void 0:e.element;if(!this.isPseudoElement&&t!=null&&t.isConnected){var n,r;(n=(r=this.animation).commitStyles)==null||n.call(r)}}get duration(){var e,t;let n=((e=this.animation.effect)==null||(t=e.getComputedTiming)==null?void 0:t.call(e).duration)||0;return v(Number(n))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+v(e)}get time(){return v(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_(e),t&&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?this.animation.playState:`f
1inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){if(this.allowFlatten){var i;(i=this.animation.effect)==null||i.updateTiming({easing:`linear`})}return this.animation.onfinish=null,e&&wn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),p):r(this)}},Pn={anticipate:ne,backInOut:te,circInOut:ae};function Fn(e){return e in Pn}function In(e){typeof e.ease==`string`&&Fn(e.ease)&&(e.ease=Pn[e.ease])}var Ln=10,Rn=class extends Nn{constructor(e){In(e),qt(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let s=new W({...o,autoplay:!1}),c=Math.max(Ln,k.now()-this.startTime),l=a(0,Ln,c-Ln),u=s.sample(c).value,{name:d}=this.options;i&&d&&xn(i,d,u),t.setWithVelocity(s.sample(Math.max(0,c-l)).value,u,l),s.stop()}},zn=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z.test(e)||e===`0`)&&!e.startsWith(`url(`));function Bn(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Vn(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=zn(i,t),s=zn(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Bn(e)||(n===`spring`||jn(n))&&r}function Hn(e){e.duration=0,e.type=`keyframes`}var Un=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Wn=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Gn(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Wn.test(e[t]))return!0;return!1}var Kn=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),qn=f(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Jn(e){var t;let{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:s,keyframes:c}=e;if(!((n==null||(t=n.owner)==null?void 0:t.current)instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=n.owner.getProps();return qn()&&r&&(Un.has(r)||Kn.has(r)&&Gn(c))&&(r!==`transform`||!u)&&!l&&!i&&a!==`mirror`&&o!==0&&s!==`inertia`}var Yn=40,Xn=class extends Jt{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){var d;super(),this.stop=()=>{var e;if(this._animation){var t;this._animation.stop(),(t=this.stopTimeline)==null||t.call(this)}(e=this.keyframeResolver)==null||e.cancel()},this.createdAt=k.now();let f={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},p=(l==null?void 0:l.KeyframeResolver)||yn;this.keyframeResolver=new p(o,(e,t,n)=>this.onKeyframesResolved(e,t,f,!n),s,c,l),(d=this.keyframeResolver)==null||d.scheduleResolve()}onKeyframesResolved(e,t,n,r){var i;this.keyframeResolver=void 0;let{name:a,type:o,velocity:s,delay:l,isHandoff:u,onUpdate:d}=n;this.resolvedAt=k.now();let f=!0;Vn(e,a,o,s)||(f=!1,(c.instantAnimations||!l)&&(d==null||d(Gt(e,n,t))),e[0]=e[e.length-1],Hn(n),n.repeat=0);let m={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Yn?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},h=f&&!u&&Jn(m),g=(i=m.motionValue)==null||(i=i.owner)==null?void 0:i.current,_;if(h)try{_=new Rn({...m,element:g})}catch{_=new W(m)}else _=new W(m);_.finished.then(()=>{this.notifyFinished()}).catch(p),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){if(!this._animation){var e;(e=this.keyframeResolver)==null||e.resume(),vn()}return 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(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}};function Zn(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
1e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Qn=30,$n=e=>!isNaN(parseFloat(e)),er={current:void 0},tr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=k.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev){var n;if((n=this.events.change)==null||n.notify(this.current),this.dependents)for(let e of this.dependents)e.dirty()}},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=k.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=$n(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new g);let n=this.events[e].add(t);return e===`change`?()=>{n(),O.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.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 er.current&&er.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=k.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Qn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Qn);return y(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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(){var e,t;(e=this.dependents)==null||e.clear(),(t=this.events.destroy)==null||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function nr(e,t){return new tr(e,t)}function rr(e,t){if(e!=null&&e.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ir(e,t){let n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n===e?n:rr(n,e)}var ar={type:`spring`,stiffness:500,damping:25,restSpeed:10},or=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sr={type:`keyframes`,duration:.8},cr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},lr=(e,{keyframes:t})=>t.length>2?sr:q.has(e)?e.startsWith(`scale`)?or(t[1]):ar:cr,ur=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function dr(e){for(let t in e)if(!ur.has(t))return!0;return!1}var fr=(e,t,n,r={},i,a)=>o=>{let s=ir(r,e)||{},l=s.delay||r.delay||0,{elapsed:u=0}=r;u-=_(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};dr(s)||Object.assign(d,lr(e,d)),d.duration&&(d.duration=_(d.duration)),d.repeatDelay&&(d.repeatDelay=_(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Hn(d),d.delay===0&&(f=!0)),(c.instantAnimations||c.skipAnimations||i!=null&&i.shouldSkipAnimations||s.skipAnimations)&&(f=!0,Hn(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,f&&!a&&t.get()!==void 0){let e=Gt(d.keyframes,s);if(e!==void 0){O.update(()=>{d.onUpdate(e),d.onComplete()});return}}return s.isSync?new W(d):new Xn(d)},pr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mr(e){let t=pr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function hr(e,t,n=1){`${e}`;let[r,i]=mr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return l(e)?parseFloat(e):e}return Ee(i)?hr(i,t,n+1):i}function gr(e){let t=[{},{}];
1return e==null||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function _r(e,t,n,r){if(typeof t==`function`){let[i,a]=gr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=gr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function X(e,t,n){let r=e.getProps();return _r(r,t,n===void 0?r.custom:n,e)}var vr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...K]),yr=e=>Array.isArray(e);function br(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nr(n))}function xr(e){return yr(e)?e[e.length-1]||0:e}function Sr(e,t){let{transitionEnd:n={},transition:r={},...i}=X(e,t)||{};i={...i,...n};for(let t in i)br(e,t,xr(i[t]))}var Z=e=>!!(e&&e.getVelocity);function Cr(e){return!!(Z(e)&&e.add)}function wr(e,t){let n=e.getValue(`willChange`);if(Cr(n))return n.add(t);if(!n&&c.WillChange){let n=new c.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Tr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Er=`framerAppearId`,Dr=`data-`+Tr(Er);function Or(e){return e.props[Dr]}function kr({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ar(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?rr(a,c):c;let l=a==null?void 0:a.reduceMotion,u=a==null?void 0:a.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a==null?void 0:a.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&kr(f,t))continue;let o={delay:n,...ir(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){O.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Or(e);if(n){let e=window.MotionHandoffAnimation(n,t,O);e!==null&&(o.startTime=e,p=!0)}}wr(e,t);let m=l??e.shouldReduceMotion;r.start(fr(t,r,i,m&&vr.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>O.update(()=>{o&&Sr(e,o)});d.length?Promise.all(d).then(t):t()}return d}function jr(e,t,n={}){var r;let i=X(e,t,n.type===`exit`?(r=e.presenceContext)==null?void 0:r.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);let o=i?()=>Promise.all(Ar(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return Mr(e,t,r,i,o,s,n)}:()=>Promise.resolve(),{when:c}=a;if(c){let[e,t]=c===`beforeChildren`?[o,s]:[s,o];return e().then(()=>t())}else return Promise.all([o(),s(n.delay)])}function Mr(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(jr(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Zn(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Nr(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>jr(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=jr(e,t,n);else{let i=typeof t==`function`?X(e,t,n.custom):t;r=Promise.all(Ar(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Pr={test:e=>e===`auto`,parse:e=>e},Fr=e=>t=>t.test(e),Ir=[A,F,P,N,He,Ve,Pr],Lr=e=>Ir.find(Fr(e));function Rr(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||d(e)}var zr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Br(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(je)||[];if(!r)return e;let i=n.replace(r,``),a=+!!zr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Vr=/\b([a-z-]*)\(.*?\)/gu,Hr={...z,getAnimatableNone:e=>{let t=e.match(Vr);return t?t.map(Br).join(` `):e}},Ur={...z,getAnimatableNone:e=>{let t=z.parse(e);return z.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Wr={...A,transform:Math.round},Gr={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,inset:F,insetBlock:F,insetBlockStart:F,insetBlockEnd:F,insetInline:F,insetInlineStart:F,insetInlineEnd:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,paddingBlock:F,paddingBlockStart:F,paddingBlockEnd:F,paddingInline:F,paddingInlineStart:F,paddingInlineEnd:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,marginBlock:F,marginBlockStart:F,marginBlockEnd:F,marginInline:F,marginInlineStart:F,marginInlineEnd:F,fontSize:F,backgroundPositionX:F,backgroundPositionY:F,rotate:N,pathRotation:N,rotateX:N,rotateY:N,rotateZ:N,scale:ke,scaleX:ke,scaleY:ke,scaleZ:ke,skew:N,skewX:N,skewY:N,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:j,originX:Ue,originY:Ue,originZ:F,zIndex:Wr,fillOpacity:j,strokeOpacity:j,numOctaves:Wr},Kr={...Gr,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:Hr,WebkitFilter:Hr,mask:Ur,WebkitMask:Ur},qr=e=>Kr[e],Jr=new Set([Hr,Ur]);function Yr(e,t){let n=qr(e);return Jr.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Xr=new Set([`auto`,`none`,`0`]);function Zr(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Xr.has(t)&&R(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Yr(n,i)}var Qr=class extends yn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ee(r))){let i=hr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!vr.has(n)||e.length!==2)return;let[r,i]=e,a=Lr(r),o=Lr(i);if(Oe(r)!==Oe(i)&&J[n]){this.needsMeasurement=!0;return}if(a!==o)if(ln(a)&&ln(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else J[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Rr(e[t]))&&n.push(t);n.length&&Zr(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=J[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let a=r.length-1,o=r[a];r[a]=J[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(e=this.removedTransforms)!=null&&e.length&&this.removedTransforms.forEac
1h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}},$r=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function ei(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var ti=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function ni(e){return u(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:ri,cancel:ii}=_e(queueMicrotask,!1),ai={x:!1,y:!1};function oi(){return ai.x||ai.y}function si(e,t){let n=ei(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ci(e){return!(e.pointerType===`touch`||oi())}function li(e,t,n={}){let[r,i,a]=si(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&(a(e),a=void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ci(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var ui=(e,t)=>t?e===t||ui(e,t.parentElement):!1,di=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,fi=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function pi(e){return fi.has(e.tagName)||e.isContentEditable===!0}var mi=new WeakSet;function hi(e){return t=>{t.key===`Enter`&&e(t)}}function gi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var _i=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=hi(()=>{if(mi.has(n))return;gi(n,`down`);let e=hi(()=>{gi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>gi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function vi(e){return di(e)&&!oi()}var yi=new WeakSet;function bi(e,t,n={}){let[r,i,a]=si(e,n),o=e=>{let r=e.currentTarget;if(!vi(e)||yi.has(e))return;mi.add(r),n.stopPropagation&&yi.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),mi.has(r)&&mi.delete(r),vi(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||ui(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),ni(e)&&(e.addEventListener(`focus`,e=>_i(e,i)),!pi(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var xi=[...Ir,L,z],Si=e=>xi.find(Fr(e)),Ci=()=>({min:0,max:0}),wi=()=>({x:Ci(),y:Ci()}),Ti=new WeakMap;function Ei(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Di(e){return typeof e==`string`||Array.isArray(e)}var Oi=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ki=[`initial`,...Oi];function Ai(e){return Ei(e.animate)||ki.some(t=>Di(e[t]))}function ji(e){return!!(Ai(e)||e.variants)}function Mi(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Z(i))e.addValue(r,i);else if(Z(a))e.addValue(r,nr(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,nr(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ni={current:null},Pi={current:!1},Fi=typeof window<`u`;function Ii(){if(Pi.current=!0,Fi)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ni.current=e.matches;e.addEventListener(`change`,t),t()}else Ni.current=!1}var Li=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ri={};function zi(e){Ri=e}function Bi(){return Ri}var Vi=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=yn,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=()=>{let e=k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,O.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Ai(t),this.isVariantNode=ji(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Z(t)&&t.set(c[e])}}mount(e){var t;if(this.hasBeenMounted)for(let e in this.initialValues){var n;(n=this.values.get(e))==null||n.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e]}this.current=e,Ti.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.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Pi.current||Ii(),this.shouldReduceMotion=Ni.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(t=this.parent)==null||t.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),ve(this.notifyUpdate),ve(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.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,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Un.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Nn({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:_(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=q.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&O.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 Ri){let t=Ri[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wi()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Li.length;t++){let n=Li[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Mi(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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=nr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);
1return n!=null&&(typeof n==`string`&&(l(n)||d(n))?n=parseFloat(n):!Si(n)&&z.test(t)&&(n=Yr(e,t)),this.setBaseTarget(e,Z(n)?n.get():n)),Z(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){var r;let i=_r(this.props,t,(r=this.presenceContext)==null?void 0:r.custom);i&&(n=i[e])}if(t&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Z(i)?i:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new g),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ri.render(this.render)}},Hi=class extends Vi{constructor(){super(...arguments),this.KeyframeResolver=Qr}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Z(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Q=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Ui({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Wi(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Gi(e,t){return Ui(Wi(e.getBoundingClientRect(),t))}var Ki={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},qi=K.length;function Ji(e,t,n){let r=``,i=!0;for(let a=0;a<qi;a++){let o=K[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=ti(s,Gr[o]);if(!c){i=!1;let t=Ki[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${ti(a,Gr.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Yi(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(q.has(e)){o=!0;continue}else if(we(e)){i[e]=n;continue}else{let t=ti(n,Gr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ji(t,e.transform,n):r.transform&&(r.transform=`none`)),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Xi(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i==null||i.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Zi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Qi={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(F.test(e))e=parseFloat(e);else return e;return`${Zi(e,t.target.x)}% ${Zi(e,t.target.y)}%`}},$i={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z.parse(e);if(i.length>5)return r;let a=z.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ea={borderRadius:{...Qi,applyTo:[...$r]},borderTopLeftRadius:Qi,borderTopRightRadius:Qi,borderBottomLeftRadius:Qi,borderBottomRightRadius:Qi,boxShadow:$i};function ta(e,{layout:t,layoutId:n}){return q.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ea[e]||e===`opacity`)}function na(e,t,n){let r=e.style,i=t==null?void 0:t.style,a={};if(!r)return a;for(let t in r){var o;(Z(r[t])||i&&Z(i[t])||ta(t,e)||(n==null||(o=n.getValue(t))==null?void 0:o.liveStyle)!==void 0)&&(a[t]=r[t])}return a}function ra(e){return window.getComputedStyle(e)}var ia=class extends Hi{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Xi}readValueFromInstance(e,t){if(q.has(t)){var n;return(n=this.projection)!=null&&n.isProjecting?an(t):sn(e,t)}else{let n=ra(e),r=(we(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Gi(e,t)}build(e,t,n){Yi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return na(e,t,n)}},aa={offset:`stroke-dashoffset`,array:`stroke-dasharray`},oa={offset:`strokeDashoffset`,array:`strokeDasharray`};function sa(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?aa:oa;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var ca=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function la(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s}
1,c,l,u){if(Yi(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??`fill-box`,delete d.transformBox);for(let e of ca)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&sa(d,i,a,o,!1)}var ua=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`]),da=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function fa(e,t,n,r){Xi(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(ua.has(n)?n:Tr(n),t.attrs[n])}function pa(e,t,n){let r=na(e,t,n);for(let n in e)if(Z(e[n])||Z(t[n])){let t=K.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var ma=class extends Hi{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=wi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(q.has(t)){let e=qr(t);return e&&e.default||0}return t=ua.has(t)?t:Tr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return pa(e,t,n)}
1build(e,t,n){la(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){fa(e,t,n,r)}mount(e){this.isSVGTag=da(e.tagName),super.mount(e)}},ha=ki.length;function ga(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&ga(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<ha;n++){let r=ki[n],i=e.props[r];(Di(i)||i===!1)&&(t[r]=i)}return t}function _a(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var va=[...Oi].reverse(),ya=Oi.length;function ba(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Nr(e,t,n)))}function xa(e){let t=ba(e),n=Ca(),r=!0,i=!1,a=t=>(n,r)=>{var i;let a=X(e,r,t===`exit`?(i=e.presenceContext)==null?void 0:i.custom:void 0);if(a){let{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=ga(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<ya;t++){let p=va[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Di(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Ei(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Sa(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=yr(t)&&yr(n)?!_a(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=X(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Zn(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=X(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){var i;if(n[t].isActive===r)return Promise.resolve();(i=e.variantChildren)==null||i.forEach(e=>{var n;return(n=e.animationState)==null?void 0:n.setActive(t,r)}),n[t].isActive=r;let a=s(t);for(let e in n)n[e].protectedKeys={};return a}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ca(),i=!0}}}function Sa(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!_a(t,e):!1}function $(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ca(){return{animate:$(!0),whileInView:$(),whileHover:$(),whileTap:$(),whileDrag:$(),whileFocus:$(),exit:$()}}function wa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ta=e(n(),1),Ea=[`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 Da(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Ea.indexOf(e)>-1||/[A-Z]/u.test(e))}var Oa=(e,t)=>t.isSVG??Da(e)?new ma(t):new ia(t,{allowProjection:e!==Ta.Fragment}),ka=class extends Q{constructor(e){super(e),e.animationState||(e.animationState=xa(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ei(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}},Aa=0,ja={animation:{Feature:ka},exit:{Feature:class extends Q{constructor(){super(...arguments),this.id=Aa++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=X(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...i}=n;for(let e in i){var r;(r=this.node.getValue(e))==null||r.jump(i[e])}}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive(`exit`,!e);t&&!e&&i.then(()=>
1{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Ma(e){return{point:{x:e.pageX,y:e.pageY}}}function Na(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&O.postRender(()=>i(t,Ma(t)))}var Pa=class extends Q{mount(){let{current:e}=this.node;e&&(this.unmount=li(e,(e,t)=>(Na(this.node,t,`Start`),e=>Na(this.node,e,`End`))))}unmount(){}},Fa=class extends Q{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=m(wa(this.node.current,`focus`,()=>this.onFocus()),wa(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Ia(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&O.postRender(()=>i(t,Ma(t)))}var La=class extends Q{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=bi(e,(e,t)=>(Ia(this.node,t,`Start`),(e,{success:t})=>Ia(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:(n==null?void 0:n.tap)===!1})}unmount(){}},Ra=new WeakMap,za=new WeakMap,Ba=e=>{let t=Ra.get(e.target);t&&t(e)},Va=e=>{e.forEach(Ba)};function Ha({root:e,...t}){let n=e||document;za.has(n)||za.set(n,{});let r=za.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Va,{root:e,...t})),r[i]}function Ua(e,t,n){let r=Ha(t);return Ra.set(e,n),r.observe(e),()=>{Ra.delete(e),r.unobserve(e)}}var Wa={some:0,all:1},Ga=class extends Q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;(e=this.stopObserver)==null||e.call(this);let{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i=`some`,once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i==`number`?i:Wa[i]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};this.stopObserver=Ua(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Ka(e,t))&&this.startObserver()}unmount(){var e;(e=this.stopObserver)==null||e.call(this),this.hasEnteredView=!1,this.isInView=!1}};function Ka({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var qa={inView:{Feature:Ga},tap:{Feature:La},focus:{Feature:Fa},hover:{Feature:Pa}},Ja={renderer:Oa,...ja,...qa},Ya=t({domAnimation:()=>Ja,maxGeneratorDuration:()=>Ct,optimizedAppearDataId:()=>Er});export{u as $,_r as A,zt as B,ii as C,Ar as D,ei as E,wn as F,O as G,Tt as H,Tn as I,E as J,ye as K,W as L,er as M,nr as N,Dr as O,jn as P,p as Q,Vt as R,wi as S,ni as T,B as U,H as V,ve as W,_ as X,y as Y,h as Z,Ai as _,da as a,Ei as b,na as c,Vi as d,s as et,Bi as f,Ni as g,Pi as h,pa as i,fr as j,Z as k,ta as l,Ii as m,Da as n,a as nt,la as o,zi as p,le as q,ma as r,i as rt,ia as s,Ya as t,o as tt,Yi as u,ji as v,ri as w,Ti as x,Di as y,Bt as z};

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.