@telegraph/tooltip 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @telegraph/tooltip
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#782](https://github.com/knocklabs/telegraph/pull/782) [`c335807`](https://github.com/knocklabs/telegraph/commit/c33580795d3e75d921449a5684ff7aaff1c2c482) Thanks [@ksorathia](https://github.com/ksorathia)! - Remove appearance modifier from Tooltip
8
+
3
9
  ## 0.2.2
4
10
 
5
11
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=e=>a.call(e,`module.exports`)?e[`module.exports`]:c(t({},`__esModule`,{value:!0}),e);let d=require(`@radix-ui/react-tooltip`);d=l(d);let f=require(`@radix-ui/react-use-controllable-state`),p=require(`@telegraph/appearance`),m=require(`@telegraph/helpers`),h=require(`@telegraph/layout`),g=require(`@telegraph/typography`),_=require(`react/jsx-runtime`),v=require(`react`);v=l(v,1);var y=(0,v.createContext)({});function b(e){let t=(0,v.useRef)(null);return t.current===null&&(t.current=e()),t.current}var x=typeof window<`u`?v.useLayoutEffect:v.useEffect,S=(0,v.createContext)(null);function C(e,t){e.indexOf(t)===-1&&e.push(t)}function w(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var T=(e,t,n)=>n>t?t:n<e?e:n;function E(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var D=()=>{},O=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(D=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(E(t,n))},O=(e,t,n)=>{if(!e)throw Error(E(t,n))});var k={},ee=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function te(e){return typeof e==`object`&&!!e}var ne=e=>/^0[^.\s]+$/u.test(e);function re(e){let t;return()=>(t===void 0&&(t=e()),t)}var A=e=>e,ie=(e,t)=>n=>t(e(n)),ae=(...e)=>e.reduce(ie),oe=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},se=class{constructor(){this.subscriptions=[]}add(e){return C(this.subscriptions,e),()=>w(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}},j=e=>e*1e3,M=e=>e/1e3;function ce(e,t){return t?1e3/t*e:0}var le=new Set;function ue(e,t,n){e||le.has(t)||(console.warn(E(t,n)),le.add(t))}var de=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fe=1e-7,pe=12;function me(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=de(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>fe&&++s<pe);return o}function he(e,t,n,r){if(e===t&&n===r)return A;let i=t=>me(t,0,1,e,n);return e=>e===0||e===1?e:de(i(e),t,r)}var ge=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_e=e=>t=>1-e(1-t),ve=he(.33,1.53,.69,.99),ye=_e(ve),be=ge(ye),xe=e=>e>=1?1:(e*=2)<1?.5*ye(e):.5*(2-2**(-10*(e-1))),Se=e=>1-Math.sin(Math.acos(e)),Ce=_e(Se),we=ge(Se),Te=he(.42,0,1,1),Ee=he(0,0,.58,1),De=he(.42,0,.58,1),Oe=e=>Array.isArray(e)&&typeof e[0]!=`number`,ke=e=>Array.isArray(e)&&typeof e[0]==`number`,Ae={linear:A,easeIn:Te,easeInOut:De,easeOut:Ee,circIn:Se,circInOut:we,circOut:Ce,backIn:ye,backInOut:be,backOut:ve,anticipate:xe},je=e=>typeof e==`string`,Me=e=>{if(ke(e)){O(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return he(t,n,r,i)}else if(je(e))return O(Ae[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),Ae[e];return e},Ne=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Pe={value:null,addProjectionMetrics:null};function Fe(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Pe.value&&Pe.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Ie=40;function Le(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ne.reduce((e,n)=>(e[n]=Fe(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=k.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Ie),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ne.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ne.length;t++)o[Ne[t]].cancel(e)},state:i,steps:o}}var{schedule:N,cancel:Re,state:ze,steps:Be}=Le(typeof requestAnimationFrame<`u`?requestAnimationFrame:A,!0),Ve;function He(){Ve=void 0}var P={now:()=>(Ve===void 0&&P.set(ze.isProcessing||k.useManualTiming?ze.timestamp:performance.now()),Ve),set:e=>{Ve=e,queueMicrotask(He)}},Ue={layout:0,mainThread:0,waapi:0},We=e=>t=>typeof t==`string`&&t.startsWith(e),Ge=We(`--`),Ke=We(`var(--`),qe=e=>Ke(e)?Je.test(e.split(`/*`)[0].trim()):!1,Je=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ye(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var F={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Xe={...F,transform:e=>T(0,1,e)},Ze={...F,default:1},Qe=e=>Math.round(e*1e5)/1e5,$e=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function et(e){return e==null}var tt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nt=(e,t)=>n=>!!(typeof n==`string`&&tt.test(n)&&n.startsWith(e)||t&&!et(n)&&Object.prototype.hasOwnProperty.call(n,t)),rt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match($e);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},it=e=>T(0,255,e),at={...F,transform:e=>Math.round(it(e))},I={test:nt(`rgb`,`red`),parse:rt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+at.transform(e)+`, `+at.transform(t)+`, `+at.transform(n)+`, `+Qe(Xe.transform(r))+`)`};function ot(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),alpha:i?parseInt(i,16)/255:1}}var st={test:nt(`#`),parse:ot,transform:I.transform},ct=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),L=ct(`deg`),R=ct(`%`),z=ct(`px`),lt=ct(`vh`),ut=ct(`vw`),dt={...R,parse:e=>R.parse(e)/100,transform:e=>R.transform(e*100)},B={test:nt(`hsl`,`hue`),parse:rt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+R.transform(Qe(t))+`, `+R.transform(Qe(n))+`, `+Qe(Xe.transform(r))+`)`},V={test:e=>I.test(e)||st.test(e)||B.test(e),parse:e=>I.test(e)?I.parse(e):B.test(e)?B.parse(e):st.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?I.transform(e):B.transform(e),getAnimatableNone:e=>{let t=V.parse(e);return t.alpha=0,V.transform(t)}},ft=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pt(e){return isNaN(e)&&typeof e==`string`&&(e.match($e)?.length||0)+(e.match(ft)?.length||0)>0}var mt=`number`,ht=`color`,gt=`var`,_t=`var(`,vt="${}",yt=/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 H(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(yt,e=>(V.test(e)?(r.color.push(a),i.push(ht),n.push(V.parse(e))):e.startsWith(_t)?(r.var.push(a),i.push(gt),n.push(e)):(r.number.push(a),i.push(mt),n.push(parseFloat(e))),++a,vt)).split(vt),indexes:r,types:i}}function bt(e){return H(e).values}function xt({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===mt?i+=Qe(r[a]):e===ht?i+=V.transform(r[a]):i+=r[a]}return i}}function St(e){return xt(H(e))}var Ct=e=>typeof e==`number`?0:V.test(e)?V.getAnimatableNone(e):e,wt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ct(e);function Tt(e){let t=H(e);return xt(t)(t.values.map((e,n)=>wt(e,t.split[n])))}var U={test:pt,parse:bt,createTransformer:St,getAnimatableNone:Tt};function Et(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 Dt({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=Et(s,r,e+1/3),a=Et(s,r,e),o=Et(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 kt=(e,t,n)=>e+(t-e)*n,At=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},jt=[st,I,B],Mt=e=>jt.find(t=>t.test(e));function Nt(e){let t=Mt(e);if(D(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===B&&(n=Dt(n)),n}var Pt=(e,t)=>{let n=Nt(e),r=Nt(t);if(!n||!r)return Ot(e,t);let i={...n};return e=>(i.red=At(n.red,r.red,e),i.green=At(n.green,r.green,e),i.blue=At(n.blue,r.blue,e),i.alpha=kt(n.alpha,r.alpha,e),I.transform(i))},Ft=new Set([`none`,`hidden`]);function It(e,t){return Ft.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Lt(e,t){return n=>kt(e,t,n)}function Rt(e){return typeof e==`number`?Lt:typeof e==`string`?qe(e)?Ot:V.test(e)?Pt:Ht:Array.isArray(e)?zt:typeof e==`object`?V.test(e)?Pt:Bt:Ot}function zt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Rt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Bt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Rt(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 Ht=(e,t)=>{let n=U.createTransformer(t),r=H(e),i=H(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?It(e,t):ae(zt(Vt(r,i),i.values),n):(D(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Ot(e,t))};function Ut(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?kt(e,t,n):Rt(e)(e,t)}var Wt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>N.update(t,e),stop:()=>Re(t),now:()=>ze.isProcessing?ze.timestamp:P.now()}},Gt=(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)})`},Kt=2e4;function qt(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 Jt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(qt(r),Kt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:M(i)}}var W={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 Yt(e,t){return e*Math.sqrt(1-t*t)}var Xt=12;function Zt(e,t,n){let r=n;for(let n=1;n<Xt;n++)r-=e(r)/t(r);return r}var Qt=.001;function $t({duration:e=W.duration,bounce:t=W.bounce,velocity:n=W.velocity,mass:r=W.mass}){let i,a;D(e<=j(W.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=T(W.minDamping,W.maxDamping,o),e=T(W.minDuration,W.maxDuration,M(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Yt(t,o),c=Math.exp(-i);return Qt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Yt(t**2,o);return(-i(t)+Qt>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Qt+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Zt(i,a,s);if(e=j(e),isNaN(c))return{stiffness:W.stiffness,damping:W.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var en=[`duration`,`bounce`],tn=[`stiffness`,`damping`,`mass`];function nn(e,t){return t.some(t=>e[t]!==void 0)}function rn(e){let t={velocity:W.velocity,stiffness:W.stiffness,damping:W.damping,mass:W.mass,isResolvedFromDuration:!1,...e};if(!nn(e,tn)&&nn(e,en))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*T(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:W.mass,stiffness:i,damping:a}}else{let n=$t({...e,velocity:0});t={...t,...n,mass:W.mass},t.isResolvedFromDuration=!0}return t}function an(e=W.visualDuration,t=W.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}=rn({...n,velocity:-M(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=M(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?W.restSpeed.granular:W.restSpeed.default,i||=v?W.restDelta.granular:W.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Yt(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>j(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=j(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=j(b(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(qt(T),Kt),t=Gt(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}an.applyToOptions=e=>{let t=Jt(e,100,an);return e.ease=t.ease,e.duration=j(t.duration),e.type=`keyframes`,e};var on=5;function sn(e,t,n){let r=Math.max(t-on,0);return ce(n-e(r),t-r)}function cn({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=an({keyframes:[f.value,m(f.value)],velocity:sn(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 ln(e,t,n){let r=[],i=n||k.mix||Ut,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=ae(Array.isArray(t)?t[n]||A:t,a)),r.push(a)}return r}function un(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(O(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=ln(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=oe(e[r],e[r+1],n);return s[r](i)};return n?t=>l(T(e[0],e[a-1],t)):l}function dn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=oe(0,t,r);e.push(kt(n,1,i))}}function fn(e){let t=[0];return dn(t,e.length-1),t}function pn(e,t){return e.map(e=>e*t)}function mn(e,t){return e.map(()=>t||De).splice(0,e.length-1)}function G({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Oe(r)?r.map(Me):Me(r),a={done:!1,value:t[0]},o=un(pn(n&&n.length===t.length?n:fn(t),e),t,{ease:Array.isArray(i)?i:mn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var hn=e=>e!==null;function gn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(hn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var _n={decay:cn,inertia:cn,tween:G,keyframes:G,spring:an};function vn(e){typeof e.type==`string`&&(e.type=_n[e.type])}var yn=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)}},bn=e=>e/100,xn=class 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=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==P.now()&&this.tick(P.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Ue.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;vn(e);let{type:t=G,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||G;process.env.NODE_ENV!==`production`&&s!==G&&O(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==G&&typeof o[0]!=`number`&&(this.mixKeyframes=ae(bn,Ut(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=qt(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:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=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 g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=T(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==cn&&(b.value=gn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return M(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(this.currentTime)}set time(e){e=j(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 sn(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(P.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=M(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Wt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-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(P.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,Ue.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),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 Sn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var K=e=>e*180/Math.PI,Cn=e=>Tn(K(Math.atan2(e[1],e[0]))),wn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Cn,rotateZ:Cn,skewX:e=>K(Math.atan(e[1])),skewY:e=>K(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Tn=e=>(e%=360,e<0&&(e+=360),e),En=Cn,Dn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),On=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dn,scaleY:On,scale:e=>(Dn(e)+On(e))/2,rotateX:e=>Tn(K(Math.atan2(e[6],e[5]))),rotateY:e=>Tn(K(Math.atan2(-e[2],e[0]))),rotateZ:En,rotate:En,skewX:e=>K(Math.atan(e[4])),skewY:e=>K(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function An(e){return+!!e.includes(`scale`)}function jn(e,t){if(!e||e===`none`)return An(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=kn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wn,i=t}if(!i)return An(t);let a=r[t],o=i[1].split(`,`).map(Nn);return typeof a==`function`?a(o):o[a]}var Mn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return jn(n,t)};function Nn(e){return parseFloat(e.trim())}var q=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],J=new Set(q),Pn=e=>e===F||e===z,Fn=new Set([`x`,`y`,`z`]),In=q.filter(e=>!Fn.has(e));function Ln(e){let t=[];return In.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Y={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})=>jn(t,`x`),y:(e,{transform:t})=>jn(t,`y`)};Y.translateX=Y.x,Y.translateY=Y.y;var X=new Set,Rn=!1,zn=!1,Bn=!1;function Vn(){if(zn){let e=Array.from(X).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Ln(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])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}zn=!1,Rn=!1,X.forEach(e=>e.complete(Bn)),X.clear()}function Hn(){X.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zn=!0)})}function Un(){Bn=!0,Hn(),Vn(),Bn=!1}var Wn=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?(X.add(this),Rn||(Rn=!0,N.read(Hn),N.resolveKeyframes(Vn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=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])}Sn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),X.delete(this)}cancel(){this.state===`scheduled`&&(X.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Gn=e=>e.startsWith(`--`);function Kn(e,t,n){Gn(t)?e.style.setProperty(t,n):e.style[t]=n}var qn={};function Jn(e,t){let n=re(e);return()=>qn[t]??n()}var Yn=Jn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Xn=Jn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Zn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Zn([0,.65,.55,1]),circOut:Zn([.55,0,1,.45]),backIn:Zn([.31,.01,.66,-.59]),backOut:Zn([.33,1.53,.69,.99])};function $n(e,t){if(e)return typeof e==`function`?Xn()?Gt(e,t):`ease-out`:ke(e)?Zn(e):Array.isArray(e)?e.map(e=>$n(e,t)||Qn.easeOut):Qn[e]}function er(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=$n(s,i);Array.isArray(d)&&(u.easing=d),Pe.value&&Ue.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Pe.value&&p.finished.finally(()=>{Ue.waapi--}),p}function tr(e){return typeof e==`function`&&`applyToOptions`in e}function nr({type:e,...t}){return tr(e)&&Xn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var rr=class extends yn{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,O(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=nr(e);this.animation=er(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=gn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Kn(t,n,e),this.animation.cancel()}s?.(),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;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return M(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=j(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:`finished`}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}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Yn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),A):r(this)}},ir={anticipate:xe,backInOut:be,circInOut:we};function ar(e){return e in ir}function or(e){typeof e.ease==`string`&&ar(e.ease)&&(e.ease=ir[e.ease])}var sr=10,cr=class extends rr{constructor(e){or(e),vn(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,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new xn({...a,autoplay:!1}),s=Math.max(sr,P.now()-this.startTime),c=T(0,sr,s-sr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Kn(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},lr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(U.test(e)||e===`0`)&&!e.startsWith(`url(`));function ur(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 dr(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=lr(i,t),s=lr(a,t);return D(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:ur(e)||(n===`spring`||tr(n))&&r}function fr(e){e.duration=0,e.type=`keyframes`}var pr=new Set([`opacity`,`clipPath`,`filter`,`transform`]),mr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function hr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&mr.test(e[t]))return!0;return!1}var gr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),_r=re(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function vr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return _r()&&n&&(pr.has(n)||gr.has(n)&&hr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var yr=40,br=class extends yn{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}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=P.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||Wn)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=P.now();let u=!0;dr(e,i,a,o)||(u=!1,(k.instantAnimations||!s)&&l?.(gn(e,n,t)),e[0]=e[e.length-1],fr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>yr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&vr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new cr({...d,element:p})}catch{m=new xn(d)}else m=new xn(d);m.finished.then(()=>{this.notifyFinished()}).catch(A),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Un()),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 xr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.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 Sr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Cr(e){let t=Sr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var wr=4;function Tr(e,t,n=1){O(n<=wr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=Cr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ee(e)?parseFloat(e):e}return qe(i)?Tr(i,t,n+1):i}var Er={type:`spring`,stiffness:500,damping:25,restSpeed:10},Dr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Or={type:`keyframes`,duration:.8},kr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Ar=(e,{keyframes:t})=>t.length>2?Or:J.has(e)?e.startsWith(`scale`)?Dr(t[1]):Er:kr;function jr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Mr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:jr(n,e)}var Nr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Pr(e){for(let t in e)if(!Nr.has(t))return!0;return!1}var Fr=(e,t,n,r={},i,a)=>o=>{let s=Mr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=j(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,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};Pr(s)||Object.assign(u,Ar(e,u)),u.duration&&=j(u.duration),u.repeatDelay&&=j(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(fr(u),u.delay===0&&(d=!0)),(k.instantAnimations||k.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,fr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=gn(u.keyframes,s);if(e!==void 0){N.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new xn(u):new br(u)};function Ir(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Lr(e,t,n,r){if(typeof t==`function`){let[i,a]=Ir(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]=Ir(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Z(e,t,n){let r=e.getProps();return Lr(r,t,n===void 0?r.custom:n,e)}var Rr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...q]),zr=30,Br=e=>!isNaN(parseFloat(e)),Vr={current:void 0},Hr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=P.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.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=P.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Br(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&ue(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new se);let n=this.events[e].add(t);return e===`change`?()=>{n(),N.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(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Vr.current&&Vr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=P.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,zr);return ce(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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ur(e,t){return new Hr(e,t)}var Wr=e=>Array.isArray(e);function Gr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ur(n))}function Kr(e){return Wr(e)?e[e.length-1]||0:e}function qr(e,t){let{transitionEnd:n={},transition:r={},...i}=Z(e,t)||{};i={...i,...n};for(let t in i)Gr(e,t,Kr(i[t]))}var Q=e=>!!(e&&e.getVelocity);function Jr(e){return!!(Q(e)&&e.add)}function Yr(e,t){let n=e.getValue(`willChange`);if(Jr(n))return n.add(t);if(!n&&k.WillChange){let n=new k.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Xr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Zr=`data-`+Xr(`framerAppearId`);function Qr(e){return e.props[Zr]}function $r({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ei(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?jr(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&$r(d,t))continue;let o={delay:n,...Mr(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){N.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Qr(e);if(n){let e=window.MotionHandoffAnimation(n,t,N);e!==null&&(o.startTime=e,f=!0)}}Yr(e,t);let p=l??e.shouldReduceMotion;r.start(Fr(t,r,i,p&&Rr.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>N.update(()=>{o&&qr(e,o)});u.length?Promise.all(u).then(t):t()}return u}function ti(e,t,n={}){let r=Z(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(ei(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ni(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function ni(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(ti(c,t,{...o,delay:n+(typeof r==`function`?0:r)+xr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ri(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ti(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ti(e,t,n);else{let i=typeof t==`function`?Z(e,t,n.custom):t;r=Promise.all(ei(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ii={test:e=>e===`auto`,parse:e=>e},ai=e=>t=>t.test(e),oi=[F,z,R,L,ut,lt,ii],si=e=>oi.find(ai(e));function ci(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||ne(e)}var li=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ui(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match($e)||[];if(!r)return e;let i=n.replace(r,``),a=+!!li.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var di=/\b([a-z-]*)\(.*?\)/gu,fi={...U,getAnimatableNone:e=>{let t=e.match(di);return t?t.map(ui).join(` `):e}},pi={...U,getAnimatableNone:e=>{let t=U.parse(e);return U.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},mi={...F,transform:Math.round},hi={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,rotate:L,rotateX:L,rotateY:L,rotateZ:L,scale:Ze,scaleX:Ze,scaleY:Ze,scaleZ:Ze,skew:L,skewX:L,skewY:L,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:Xe,originX:dt,originY:dt,originZ:z,zIndex:mi,fillOpacity:Xe,strokeOpacity:Xe,numOctaves:mi},gi={...hi,color:V,backgroundColor:V,outlineColor:V,fill:V,stroke:V,borderColor:V,borderTopColor:V,borderRightColor:V,borderBottomColor:V,borderLeftColor:V,filter:fi,WebkitFilter:fi,mask:pi,WebkitMask:pi},_i=e=>gi[e],vi=new Set([fi,pi]);function yi(e,t){let n=_i(e);return vi.has(n)||(n=U),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var bi=new Set([`auto`,`none`,`0`]);function xi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!bi.has(t)&&H(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=yi(n,i)}var Si=class extends Wn{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(),qe(r))){let i=Tr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Rr.has(n)||e.length!==2)return;let[r,i]=e,a=si(r),o=si(i);if(Ye(r)!==Ye(i)&&Y[n]){this.needsMeasurement=!0;return}if(a!==o)if(Pn(a)&&Pn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Y[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ci(e[t]))&&n.push(t);n.length&&xi(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=Y[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(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Y[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Ci(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?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var wi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ti(e){return te(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Ei,cancel:Di}=Le(queueMicrotask,!1),Oi={x:!1,y:!1};function ki(){return Oi.x||Oi.y}function Ai(e,t){let n=Ci(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ji(e){return!(e.pointerType===`touch`||ki())}function Mi(e,t,n={}){let[r,i,a]=Ai(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),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(!ji(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 Ni=(e,t)=>t?e===t?!0:Ni(e,t.parentElement):!1,Pi=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Fi=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ii(e){return Fi.has(e.tagName)||e.isContentEditable===!0}var Li=new WeakSet;function Ri(e){return t=>{t.key===`Enter`&&e(t)}}function zi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Bi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ri(()=>{if(Li.has(n))return;zi(n,`down`);let e=Ri(()=>{zi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>zi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Vi(e){return Pi(e)&&!ki()}var Hi=new WeakSet;function Ui(e,t,n={}){let[r,i,a]=Ai(e,n),o=e=>{let r=e.currentTarget;if(!Vi(e)||Hi.has(e))return;Li.add(r),n.stopPropagation&&Hi.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Li.has(r)&&Li.delete(r),Vi(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Ni(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ti(e)&&(e.addEventListener(`focus`,e=>Bi(e,i)),!Ii(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var Wi=[...oi,V,U],Gi=e=>Wi.find(ai(e)),Ki=()=>({min:0,max:0}),qi=()=>({x:Ki(),y:Ki()}),Ji=new WeakMap;function Yi(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Xi(e){return typeof e==`string`||Array.isArray(e)}var Zi=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Qi=[`initial`,...Zi];function $i(e){return Yi(e.animate)||Qi.some(t=>Xi(e[t]))}function ea(e){return!!($i(e)||e.variants)}function ta(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Q(i))e.addValue(r,i);else if(Q(a))e.addValue(r,Ur(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,Ur(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var na={current:null},ra={current:!1},ia=typeof window<`u`;function aa(){if(ra.current=!0,ia)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>na.current=e.matches;e.addEventListener(`change`,t),t()}else na.current=!1}var oa=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],sa={};function ca(e){sa=e}function la(){return sa}var ua=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=Wn,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=P.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,N.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=$i(t),this.isVariantNode=ea(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&&Q(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Ji.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((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ra.current||aa(),this.shouldReduceMotion=na.current),process.env.NODE_ENV!==`production`&&ue(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Re(this.notifyUpdate),Re(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.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??=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&&pr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new rr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:j(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=J.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&N.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(),t.owner&&t.stop()})}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 sa){let t=sa[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):qi()}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<oa.length;t++){let n=oa[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=ta(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=Ur(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);return n!=null&&(typeof n==`string`&&(ee(n)||ne(n))?n=parseFloat(n):!Gi(n)&&U.test(t)&&(n=yi(e,t)),this.setBaseTarget(e,Q(n)?n.get():n)),Q(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`){let r=Lr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Q(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new se),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ei.render(this.render)}},da=class extends ua{constructor(){super(...arguments),this.KeyframeResolver=Si}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;Q(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},fa=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function pa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ma(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 ha(e,t){return pa(ma(e.getBoundingClientRect(),t))}var ga={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},_a=q.length;function va(e,t,n){let r=``,i=!0;for(let a=0;a<_a;a++){let o=q[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=wi(s,hi[o]);if(!c){i=!1;let t=ga[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function ya(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(J.has(e)){o=!0;continue}else if(Ge(e)){i[e]=n;continue}else{let t=wi(n,hi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=va(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function ba(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function xa(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Sa={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(z.test(e))e=parseFloat(e);else return e;return`${xa(e,t.target.x)}% ${xa(e,t.target.y)}%`}},Ca={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=U.parse(e);if(i.length>5)return r;let a=U.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=kt(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},wa={borderRadius:{...Sa,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Sa,borderTopRightRadius:Sa,borderBottomLeftRadius:Sa,borderBottomRightRadius:Sa,boxShadow:Ca};function Ta(e,{layout:t,layoutId:n}){return J.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!wa[e]||e===`opacity`)}function Ea(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Q(r[t])||i&&Q(i[t])||Ta(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Da(e){return window.getComputedStyle(e)}var Oa=class extends da{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ba}readValueFromInstance(e,t){if(J.has(t))return this.projection?.isProjecting?An(t):Mn(e,t);{let n=Da(e),r=(Ge(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ha(e,t)}build(e,t,n){ya(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ea(e,t,n)}},ka={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Aa={offset:`strokeDashoffset`,array:`strokeDasharray`};function ja(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?ka:Aa;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Ma=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Na(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ya(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?.transformBox??`fill-box`,delete d.transformBox);for(let e of Ma)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&&ja(d,i,a,o,!1)}var Pa=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`]),Fa=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ia(e,t,n,r){ba(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Pa.has(n)?n:Xr(n),t.attrs[n])}function La(e,t,n){let r=Ea(e,t,n);for(let n in e)if(Q(e[n])||Q(t[n])){let t=q.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Ra=class extends da{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=qi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(J.has(t)){let e=_i(t);return e&&e.default||0}return t=Pa.has(t)?t:Xr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return La(e,t,n)}build(e,t,n){Na(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ia(e,t,n,r)}mount(e){this.isSVGTag=Fa(e.tagName),super.mount(e)}},za=Qi.length;function Ba(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Ba(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<za;n++){let r=Qi[n],i=e.props[r];(Xi(i)||i===!1)&&(t[r]=i)}return t}function Va(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 Ha=[...Zi].reverse(),Ua=Zi.length;function Wa(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ri(e,t,n)))}function Ga(e){let t=Wa(e),n=qa(),r=!0,i=!1,a=t=>(n,r)=>{let i=Z(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Ba(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Ua;t++){let p=Ha[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Xi(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||Yi(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Ka(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=Wr(t)&&Wr(n)?!Va(t,n):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=Z(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=xr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Z(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){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=qa(),i=!0}}}function Ka(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Va(t,e):!1}function $(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qa(){return{animate:$(!0),whileInView:$(),whileHover:$(),whileTap:$(),whileDrag:$(),whileFocus:$(),exit:$()}}function Ja(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ya(e){return Q(e)?e.get():e}var Xa=(0,v.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`}),Za=(0,v.createContext)({strict:!1}),Qa={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`]},$a=!1;function eo(){if($a)return;let e={};for(let t in Qa)e[t]={isEnabled:e=>Qa[t].some(t=>!!e[t])};ca(e),$a=!0}function to(){return eo(),la()}function no(e){let t=to();for(let n in e)t[n]={...t[n],...e[n]};ca(t)}function ro({children:e,features:t,strict:n=!1}){let[,r]=(0,v.useState)(!io(t)),i=(0,v.useRef)(void 0);if(!io(t)){let{renderer:e,...n}=t;i.current=e,no(n)}return(0,v.useEffect)(()=>{io(t)&&t().then(({renderer:e,...t})=>{no(t),i.current=e,r(!0)})},[]),(0,_.jsx)(Za.Provider,{value:{renderer:i.current,strict:n},children:e})}function io(e){return typeof e==`function`}var ao=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`.split(`.`));function oo(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ao.has(e)}var so=s({default:()=>co}),co,lo=o((()=>{throw co={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),uo=e=>!oo(e);function fo(e){typeof e==`function`&&(uo=t=>t.startsWith(`on`)?!oo(t):e(t))}try{fo((lo(),u(so)).default)}catch{}function po(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||Q(e[i])||(uo(i)||n===!0&&oo(i)||!t&&!oo(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var mo=(0,v.createContext)({});function ho(e,t){if($i(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Xi(t)?t:void 0,animate:Xi(n)?n:void 0}}return e.inherit===!1?{}:t}function go(e){let{initial:t,animate:n}=ho(e,(0,v.useContext)(mo));return(0,v.useMemo)(()=>({initial:t,animate:n}),[_o(t),_o(n)])}function _o(e){return Array.isArray(e)?e.join(` `):e}var vo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yo(e,t,n){for(let r in t)!Q(t[r])&&!Ta(r,n)&&(e[r]=t[r])}function bo({transformTemplate:e},t){return(0,v.useMemo)(()=>{let n=vo();return ya(n,t,e),Object.assign({},n.vars,n.style)},[t])}function xo(e,t){let n=e.style||{},r={};return yo(r,n,e),Object.assign(r,bo(e,t)),r}function So(e,t){let n={},r=xo(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Co=()=>({...vo(),attrs:{}});function wo(e,t,n,r){let i=(0,v.useMemo)(()=>{let n=Co();return Na(n,t,Fa(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};yo(t,e.style,e),i.style={...t,...i.style}}return i}var To=[`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 Eo(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(To.indexOf(e)>-1||/[A-Z]/u.test(e))}function Do(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Eo(e)?wo:So)(t,r,i,e),c=po(t,typeof e==`string`,a),l=e===v.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,v.useMemo)(()=>Q(u)?u.get():u,[u]);return(0,v.createElement)(e,{...l,children:d})}function Oo({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:ko(n,r,i,e),renderState:t()}}function ko(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Ya(a[e]);let{initial:o,animate:s}=e,c=$i(e),l=ea(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Yi(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Lr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Ao=e=>(t,n)=>{let r=(0,v.useContext)(mo),i=(0,v.useContext)(S),a=()=>Oo(e,t,r,i);return n?a():b(a)},jo=Ao({scrapeMotionValuesFromProps:Ea,createRenderState:vo}),Mo=Ao({scrapeMotionValuesFromProps:La,createRenderState:Co}),No=Symbol.for(`motionComponentSymbol`);function Po(e,t,n){let r=(0,v.useRef)(n);(0,v.useInsertionEffect)(()=>{r.current=n});let i=(0,v.useRef)(null);return(0,v.useCallback)(n=>{n&&e.onMount?.(n);let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var Fo=(0,v.createContext)({});function Io(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Lo(e,t,n,r,i,a){let{visualElement:o}=(0,v.useContext)(mo),s=(0,v.useContext)(Za),c=(0,v.useContext)(S),l=(0,v.useContext)(Xa),u=l.reducedMotion,d=l.skipAnimations,f=(0,v.useRef)(null),p=(0,v.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,v.useContext)(Fo);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Ro(f.current,n,i,h);let g=(0,v.useRef)(!1);(0,v.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Zr],y=(0,v.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return x(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),y.current&&m.animationState&&m.animationState.animateChanges())}),(0,v.useEffect)(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Ro(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:zo(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Io(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function zo(e){if(e)return e.options.allowProjection===!1?zo(e.parent):e.projection}function Bo(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&no(r);let a=n?n===`svg`:Eo(e),o=a?Mo:jo;function s(n,s){let c,l={...(0,v.useContext)(Xa),...n,layoutId:Vo(n)},{isStatic:u}=l,d=go(n),f=o(n,u);if(!u&&typeof window<`u`){Ho(l,r);let t=Uo(l);c=t.MeasureLayout,d.visualElement=Lo(e,f,l,i,t.ProjectionNode,a)}return(0,_.jsxs)(mo.Provider,{value:d,children:[c&&d.visualElement?(0,_.jsx)(c,{visualElement:d.visualElement,...l}):null,Do(e,n,Po(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,v.forwardRef)(s);return c[No]=e,c}function Vo({layoutId:e}){let t=(0,v.useContext)(y).id;return t&&e!==void 0?t+`-`+e:e}function Ho(e,t){let n=(0,v.useContext)(Za).strict;if(process.env.NODE_ENV!==`production`&&t&&n){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?D(!1,t,`lazy-strict-mode`):O(!1,t,`lazy-strict-mode`)}}function Uo(e){let{drag:t,layout:n}=to();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var Wo=(e,t)=>t.isSVG??Eo(e)?new Ra(t):new Oa(t,{allowProjection:e!==v.Fragment}),Go=class extends fa{constructor(e){super(e),e.animationState||=Ga(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Yi(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(){this.node.animationState.reset(),this.unmountControls?.()}},Ko=0,qo={animation:{Feature:Go},exit:{Feature:class extends fa{constructor(){super(...arguments),this.id=Ko++,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`){let n=Z(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{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 Jo(e){return{point:{x:e.pageX,y:e.pageY}}}function Yo(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&N.postRender(()=>i(t,Jo(t)))}var Xo=class extends fa{mount(){let{current:e}=this.node;e&&(this.unmount=Mi(e,(e,t)=>(Yo(this.node,t,`Start`),e=>Yo(this.node,e,`End`))))}unmount(){}},Zo=class extends fa{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=ae(Ja(this.node.current,`focus`,()=>this.onFocus()),Ja(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Qo(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&&N.postRender(()=>i(t,Jo(t)))}var $o=class extends fa{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ui(e,(e,t)=>(Qo(this.node,t,`Start`),(e,{success:t})=>Qo(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},es=new WeakMap,ts=new WeakMap,ns=e=>{let t=es.get(e.target);t&&t(e)},rs=e=>{e.forEach(ns)};function is({root:e,...t}){let n=e||document;ts.has(n)||ts.set(n,{});let r=ts.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(rs,{root:e,...t})),r[i]}function as(e,t,n){let r=is(t);return es.set(e,n),r.observe(e),()=>{es.delete(e),r.unobserve(e)}}var os={some:0,all:1},ss=class extends fa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:os[r]};this.stopObserver=as(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!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(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(cs(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function cs({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var ls={inView:{Feature:ss},tap:{Feature:$o},focus:{Feature:Zo},hover:{Feature:Xo}},us={renderer:Wo,...qo,...ls};function ds(e,t){return Bo(e,t)}var fs=ds(`div`),ps={light:{shadow:`2`},dark:{}},ms=v.default.createContext({groupOpen:!1,setGroupOpen:()=>{}}),hs=({open:e,delay:t=600})=>{let n=v.default.useContext(ms);return v.default.useEffect(()=>{let r=null;return n.setGroupOpen&&(e===!0&&n.setGroupOpen(!0),e===!1&&(r=setTimeout(()=>{n.setGroupOpen&&n.setGroupOpen(!1)},t))),()=>{r&&clearTimeout(r)}},[e,n,t]),{groupOpen:n.groupOpen}},gs=({children:e})=>{let[t,n]=v.default.useState(!1);return(0,_.jsx)(ms.Provider,{value:{groupOpen:t,setGroupOpen:n},children:e})},_s=({delayDuration:e=400,skipDelayDuration:t,disableHoverableContent:n,defaultOpen:r,open:i,onOpenChange:a,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,forceMount:l,side:u=`bottom`,sideOffset:y=4,align:b=`center`,alignOffset:x,avoidCollisions:S,collisionBoundary:C,collisionPadding:w,arrowPadding:T,sticky:E,hideWhenDetached:D,skipAnimation:O,label:k,labelProps:ee,enabled:te=!0,appearance:ne=`dark`,triggerRef:re,children:A})=>{let[ie,ae]=(0,f.useControllableState)({prop:i,onChange:a,defaultProp:r??!1}),{groupOpen:oe}=hs({open:!!ie,delay:e}),se=v.default.Children.toArray(A).some(e=>v.default.isValidElement(e)?e.props.disabled:!1),j=oe||se?0:e,M=!oe;return(0,_.jsx)(ro,{features:us,children:(0,_.jsx)(d.Provider,{delayDuration:j,skipDelayDuration:t,disableHoverableContent:n,children:(0,_.jsxs)(d.Root,{open:te===!1?!1:ie,onOpenChange:ae,children:[(0,_.jsx)(d.Trigger,{asChild:!0,ref:re,children:(0,_.jsx)(m.RefToTgphRef,{children:A})}),(0,_.jsx)(d.Portal,{children:(0,_.jsx)(d.Content,{"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,forceMount:l,side:u,sideOffset:y,align:b,alignOffset:x,avoidCollisions:S,collisionBoundary:C,collisionPadding:w,arrowPadding:T,sticky:E,hideWhenDetached:D,style:{zIndex:`var(--tgph-zIndex-tooltip)`},children:(0,_.jsx)(p.OverrideAppearance,{appearance:ne,asChild:!0,children:(0,_.jsx)(h.Stack,{as:fs,className:`tgph`,initial:M&&!O?{opacity:0,scale:.5,...(e=>{if(e===`top`)return{y:-5};if(e===`bottom`)return{y:5};if(e===`left`)return{x:-5};if(e===`right`)return{x:5}})(u)}:{},animate:{opacity:1,scale:1,x:0,y:0},transition:{duration:.1,type:`spring`,bounce:0},bg:`gray-1`,rounded:`3`,py:`2`,px:`3`,align:`center`,justify:`center`,style:{transformOrigin:`var(--radix-tooltip-content-transform-origin)`},...ee?{labelProps:ee}:{},...ps[ne],children:typeof k==`string`?(0,_.jsx)(g.Text,{as:`span`,size:`1`,children:k}):k})})})})]})})})};exports.Tooltip=_s,exports.TooltipGroupProvider=gs;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=e=>a.call(e,`module.exports`)?e[`module.exports`]:c(t({},`__esModule`,{value:!0}),e);let d=require(`@radix-ui/react-tooltip`);d=l(d);let f=require(`@radix-ui/react-use-controllable-state`),p=require(`@telegraph/helpers`),m=require(`@telegraph/layout`),h=require(`@telegraph/typography`),g=require(`react/jsx-runtime`),_=require(`react`);_=l(_,1);var v=(0,_.createContext)({});function y(e){let t=(0,_.useRef)(null);return t.current===null&&(t.current=e()),t.current}var b=typeof window<`u`?_.useLayoutEffect:_.useEffect,x=(0,_.createContext)(null);function S(e,t){e.indexOf(t)===-1&&e.push(t)}function C(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var w=(e,t,n)=>n>t?t:n<e?e:n;function T(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var E=()=>{},D=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(E=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(T(t,n))},D=(e,t,n)=>{if(!e)throw Error(T(t,n))});var O={},ee=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function te(e){return typeof e==`object`&&!!e}var ne=e=>/^0[^.\s]+$/u.test(e);function re(e){let t;return()=>(t===void 0&&(t=e()),t)}var k=e=>e,ie=(e,t)=>n=>t(e(n)),ae=(...e)=>e.reduce(ie),oe=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},se=class{constructor(){this.subscriptions=[]}add(e){return S(this.subscriptions,e),()=>C(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}},A=e=>e*1e3,j=e=>e/1e3;function ce(e,t){return t?1e3/t*e:0}var le=new Set;function ue(e,t,n){e||le.has(t)||(console.warn(T(t,n)),le.add(t))}var de=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fe=1e-7,pe=12;function me(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=de(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>fe&&++s<pe);return o}function he(e,t,n,r){if(e===t&&n===r)return k;let i=t=>me(t,0,1,e,n);return e=>e===0||e===1?e:de(i(e),t,r)}var ge=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_e=e=>t=>1-e(1-t),ve=he(.33,1.53,.69,.99),ye=_e(ve),be=ge(ye),xe=e=>e>=1?1:(e*=2)<1?.5*ye(e):.5*(2-2**(-10*(e-1))),Se=e=>1-Math.sin(Math.acos(e)),Ce=_e(Se),we=ge(Se),Te=he(.42,0,1,1),Ee=he(0,0,.58,1),De=he(.42,0,.58,1),Oe=e=>Array.isArray(e)&&typeof e[0]!=`number`,ke=e=>Array.isArray(e)&&typeof e[0]==`number`,Ae={linear:k,easeIn:Te,easeInOut:De,easeOut:Ee,circIn:Se,circInOut:we,circOut:Ce,backIn:ye,backInOut:be,backOut:ve,anticipate:xe},je=e=>typeof e==`string`,Me=e=>{if(ke(e)){D(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return he(t,n,r,i)}else if(je(e))return D(Ae[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),Ae[e];return e},Ne=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Pe={value:null,addProjectionMetrics:null};function Fe(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Pe.value&&Pe.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Ie=40;function Le(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ne.reduce((e,n)=>(e[n]=Fe(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=O.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Ie),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ne.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ne.length;t++)o[Ne[t]].cancel(e)},state:i,steps:o}}var{schedule:M,cancel:Re,state:ze,steps:Be}=Le(typeof requestAnimationFrame<`u`?requestAnimationFrame:k,!0),Ve;function He(){Ve=void 0}var N={now:()=>(Ve===void 0&&N.set(ze.isProcessing||O.useManualTiming?ze.timestamp:performance.now()),Ve),set:e=>{Ve=e,queueMicrotask(He)}},Ue={layout:0,mainThread:0,waapi:0},We=e=>t=>typeof t==`string`&&t.startsWith(e),Ge=We(`--`),Ke=We(`var(--`),qe=e=>Ke(e)?Je.test(e.split(`/*`)[0].trim()):!1,Je=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ye(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var P={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Xe={...P,transform:e=>w(0,1,e)},Ze={...P,default:1},Qe=e=>Math.round(e*1e5)/1e5,$e=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function et(e){return e==null}var tt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nt=(e,t)=>n=>!!(typeof n==`string`&&tt.test(n)&&n.startsWith(e)||t&&!et(n)&&Object.prototype.hasOwnProperty.call(n,t)),rt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match($e);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},it=e=>w(0,255,e),at={...P,transform:e=>Math.round(it(e))},F={test:nt(`rgb`,`red`),parse:rt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+at.transform(e)+`, `+at.transform(t)+`, `+at.transform(n)+`, `+Qe(Xe.transform(r))+`)`};function ot(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),alpha:i?parseInt(i,16)/255:1}}var st={test:nt(`#`),parse:ot,transform:F.transform},ct=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),I=ct(`deg`),L=ct(`%`),R=ct(`px`),lt=ct(`vh`),ut=ct(`vw`),dt={...L,parse:e=>L.parse(e)/100,transform:e=>L.transform(e*100)},z={test:nt(`hsl`,`hue`),parse:rt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+L.transform(Qe(t))+`, `+L.transform(Qe(n))+`, `+Qe(Xe.transform(r))+`)`},B={test:e=>F.test(e)||st.test(e)||z.test(e),parse:e=>F.test(e)?F.parse(e):z.test(e)?z.parse(e):st.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?F.transform(e):z.transform(e),getAnimatableNone:e=>{let t=B.parse(e);return t.alpha=0,B.transform(t)}},ft=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pt(e){return isNaN(e)&&typeof e==`string`&&(e.match($e)?.length||0)+(e.match(ft)?.length||0)>0}var mt=`number`,ht=`color`,gt=`var`,_t=`var(`,vt="${}",yt=/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 V(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(yt,e=>(B.test(e)?(r.color.push(a),i.push(ht),n.push(B.parse(e))):e.startsWith(_t)?(r.var.push(a),i.push(gt),n.push(e)):(r.number.push(a),i.push(mt),n.push(parseFloat(e))),++a,vt)).split(vt),indexes:r,types:i}}function bt(e){return V(e).values}function xt({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===mt?i+=Qe(r[a]):e===ht?i+=B.transform(r[a]):i+=r[a]}return i}}function St(e){return xt(V(e))}var Ct=e=>typeof e==`number`?0:B.test(e)?B.getAnimatableNone(e):e,wt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ct(e);function Tt(e){let t=V(e);return xt(t)(t.values.map((e,n)=>wt(e,t.split[n])))}var H={test:pt,parse:bt,createTransformer:St,getAnimatableNone:Tt};function Et(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 Dt({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=Et(s,r,e+1/3),a=Et(s,r,e),o=Et(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 kt=(e,t,n)=>e+(t-e)*n,At=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},jt=[st,F,z],Mt=e=>jt.find(t=>t.test(e));function Nt(e){let t=Mt(e);if(E(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===z&&(n=Dt(n)),n}var Pt=(e,t)=>{let n=Nt(e),r=Nt(t);if(!n||!r)return Ot(e,t);let i={...n};return e=>(i.red=At(n.red,r.red,e),i.green=At(n.green,r.green,e),i.blue=At(n.blue,r.blue,e),i.alpha=kt(n.alpha,r.alpha,e),F.transform(i))},Ft=new Set([`none`,`hidden`]);function It(e,t){return Ft.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Lt(e,t){return n=>kt(e,t,n)}function Rt(e){return typeof e==`number`?Lt:typeof e==`string`?qe(e)?Ot:B.test(e)?Pt:Ht:Array.isArray(e)?zt:typeof e==`object`?B.test(e)?Pt:Bt:Ot}function zt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Rt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Bt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Rt(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 Ht=(e,t)=>{let n=H.createTransformer(t),r=V(e),i=V(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?It(e,t):ae(zt(Vt(r,i),i.values),n):(E(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Ot(e,t))};function Ut(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?kt(e,t,n):Rt(e)(e,t)}var Wt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>M.update(t,e),stop:()=>Re(t),now:()=>ze.isProcessing?ze.timestamp:N.now()}},Gt=(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)})`},Kt=2e4;function qt(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 Jt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(qt(r),Kt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:j(i)}}var U={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 Yt(e,t){return e*Math.sqrt(1-t*t)}var Xt=12;function Zt(e,t,n){let r=n;for(let n=1;n<Xt;n++)r-=e(r)/t(r);return r}var Qt=.001;function $t({duration:e=U.duration,bounce:t=U.bounce,velocity:n=U.velocity,mass:r=U.mass}){let i,a;E(e<=A(U.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=w(U.minDamping,U.maxDamping,o),e=w(U.minDuration,U.maxDuration,j(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Yt(t,o),c=Math.exp(-i);return Qt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Yt(t**2,o);return(-i(t)+Qt>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Qt+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Zt(i,a,s);if(e=A(e),isNaN(c))return{stiffness:U.stiffness,damping:U.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var en=[`duration`,`bounce`],tn=[`stiffness`,`damping`,`mass`];function nn(e,t){return t.some(t=>e[t]!==void 0)}function rn(e){let t={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...e};if(!nn(e,tn)&&nn(e,en))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*w(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:U.mass,stiffness:i,damping:a}}else{let n=$t({...e,velocity:0});t={...t,...n,mass:U.mass},t.isResolvedFromDuration=!0}return t}function an(e=U.visualDuration,t=U.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}=rn({...n,velocity:-j(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=j(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?U.restSpeed.granular:U.restSpeed.default,i||=v?U.restDelta.granular:U.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Yt(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>A(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=A(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=A(b(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(qt(T),Kt),t=Gt(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}an.applyToOptions=e=>{let t=Jt(e,100,an);return e.ease=t.ease,e.duration=A(t.duration),e.type=`keyframes`,e};var on=5;function sn(e,t,n){let r=Math.max(t-on,0);return ce(n-e(r),t-r)}function cn({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=an({keyframes:[f.value,m(f.value)],velocity:sn(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 ln(e,t,n){let r=[],i=n||O.mix||Ut,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=ae(Array.isArray(t)?t[n]||k:t,a)),r.push(a)}return r}function un(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(D(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=ln(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=oe(e[r],e[r+1],n);return s[r](i)};return n?t=>l(w(e[0],e[a-1],t)):l}function dn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=oe(0,t,r);e.push(kt(n,1,i))}}function fn(e){let t=[0];return dn(t,e.length-1),t}function pn(e,t){return e.map(e=>e*t)}function mn(e,t){return e.map(()=>t||De).splice(0,e.length-1)}function W({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Oe(r)?r.map(Me):Me(r),a={done:!1,value:t[0]},o=un(pn(n&&n.length===t.length?n:fn(t),e),t,{ease:Array.isArray(i)?i:mn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var hn=e=>e!==null;function gn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(hn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var _n={decay:cn,inertia:cn,tween:W,keyframes:W,spring:an};function vn(e){typeof e.type==`string`&&(e.type=_n[e.type])}var yn=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)}},bn=e=>e/100,xn=class 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=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Ue.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;vn(e);let{type:t=W,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||W;process.env.NODE_ENV!==`production`&&s!==W&&D(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==W&&typeof o[0]!=`number`&&(this.mixKeyframes=ae(bn,Ut(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=qt(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:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=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 g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=w(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==cn&&(b.value=gn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return j(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+j(e)}get time(){return j(this.currentTime)}set time(e){e=A(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 sn(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(N.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=j(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Wt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-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(N.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,Ue.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),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 Sn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var G=e=>e*180/Math.PI,Cn=e=>Tn(G(Math.atan2(e[1],e[0]))),wn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Cn,rotateZ:Cn,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},Tn=e=>(e%=360,e<0&&(e+=360),e),En=Cn,Dn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),On=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dn,scaleY:On,scale:e=>(Dn(e)+On(e))/2,rotateX:e=>Tn(G(Math.atan2(e[6],e[5]))),rotateY:e=>Tn(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 jn(e,t){if(!e||e===`none`)return An(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=kn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wn,i=t}if(!i)return An(t);let a=r[t],o=i[1].split(`,`).map(Nn);return typeof a==`function`?a(o):o[a]}var Mn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return jn(n,t)};function Nn(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),Pn=e=>e===P||e===R,Fn=new Set([`x`,`y`,`z`]),In=K.filter(e=>!Fn.has(e));function Ln(e){let t=[];return In.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})=>jn(t,`x`),y:(e,{transform:t})=>jn(t,`y`)};J.translateX=J.x,J.translateY=J.y;var Y=new Set,Rn=!1,zn=!1,Bn=!1;function Vn(){if(zn){let e=Array.from(Y).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Ln(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])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}zn=!1,Rn=!1,Y.forEach(e=>e.complete(Bn)),Y.clear()}function Hn(){Y.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zn=!0)})}function Un(){Bn=!0,Hn(),Vn(),Bn=!1}var Wn=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),Rn||(Rn=!0,M.read(Hn),M.resolveKeyframes(Vn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=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])}Sn(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()}},Gn=e=>e.startsWith(`--`);function Kn(e,t,n){Gn(t)?e.style.setProperty(t,n):e.style[t]=n}var qn={};function Jn(e,t){let n=re(e);return()=>qn[t]??n()}var Yn=Jn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Xn=Jn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Zn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Zn([0,.65,.55,1]),circOut:Zn([.55,0,1,.45]),backIn:Zn([.31,.01,.66,-.59]),backOut:Zn([.33,1.53,.69,.99])};function $n(e,t){if(e)return typeof e==`function`?Xn()?Gt(e,t):`ease-out`:ke(e)?Zn(e):Array.isArray(e)?e.map(e=>$n(e,t)||Qn.easeOut):Qn[e]}function er(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=$n(s,i);Array.isArray(d)&&(u.easing=d),Pe.value&&Ue.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Pe.value&&p.finished.finally(()=>{Ue.waapi--}),p}function tr(e){return typeof e==`function`&&`applyToOptions`in e}function nr({type:e,...t}){return tr(e)&&Xn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var rr=class extends yn{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,D(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=nr(e);this.animation=er(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=gn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Kn(t,n,e),this.animation.cancel()}s?.(),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;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return j(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+j(e)}get time(){return j(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=A(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:`finished`}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}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Yn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),k):r(this)}},ir={anticipate:xe,backInOut:be,circInOut:we};function ar(e){return e in ir}function or(e){typeof e.ease==`string`&&ar(e.ease)&&(e.ease=ir[e.ease])}var sr=10,cr=class extends rr{constructor(e){or(e),vn(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,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new xn({...a,autoplay:!1}),s=Math.max(sr,N.now()-this.startTime),c=w(0,sr,s-sr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Kn(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},lr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(H.test(e)||e===`0`)&&!e.startsWith(`url(`));function ur(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 dr(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=lr(i,t),s=lr(a,t);return E(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:ur(e)||(n===`spring`||tr(n))&&r}function fr(e){e.duration=0,e.type=`keyframes`}var pr=new Set([`opacity`,`clipPath`,`filter`,`transform`]),mr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function hr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&mr.test(e[t]))return!0;return!1}var gr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),_r=re(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function vr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return _r()&&n&&(pr.has(n)||gr.has(n)&&hr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var yr=40,br=class extends yn{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}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||Wn)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=N.now();let u=!0;dr(e,i,a,o)||(u=!1,(O.instantAnimations||!s)&&l?.(gn(e,n,t)),e[0]=e[e.length-1],fr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>yr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&vr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new cr({...d,element:p})}catch{m=new xn(d)}else m=new xn(d);m.finished.then(()=>{this.notifyFinished()}).catch(k),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Un()),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 xr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.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 Sr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Cr(e){let t=Sr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var wr=4;function Tr(e,t,n=1){D(n<=wr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=Cr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ee(e)?parseFloat(e):e}return qe(i)?Tr(i,t,n+1):i}var Er={type:`spring`,stiffness:500,damping:25,restSpeed:10},Dr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Or={type:`keyframes`,duration:.8},kr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Ar=(e,{keyframes:t})=>t.length>2?Or:q.has(e)?e.startsWith(`scale`)?Dr(t[1]):Er:kr;function jr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Mr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:jr(n,e)}var Nr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Pr(e){for(let t in e)if(!Nr.has(t))return!0;return!1}var Fr=(e,t,n,r={},i,a)=>o=>{let s=Mr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=A(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,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};Pr(s)||Object.assign(u,Ar(e,u)),u.duration&&=A(u.duration),u.repeatDelay&&=A(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(fr(u),u.delay===0&&(d=!0)),(O.instantAnimations||O.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,fr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=gn(u.keyframes,s);if(e!==void 0){M.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new xn(u):new br(u)};function Ir(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Lr(e,t,n,r){if(typeof t==`function`){let[i,a]=Ir(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]=Ir(r);t=t(n===void 0?e.custom:n,i,a)}return t}function X(e,t,n){let r=e.getProps();return Lr(r,t,n===void 0?r.custom:n,e)}var Rr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...K]),zr=30,Br=e=>!isNaN(parseFloat(e)),Vr={current:void 0},Hr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=N.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.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=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Br(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&ue(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new se);let n=this.events[e].add(t);return e===`change`?()=>{n(),M.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(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Vr.current&&Vr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,zr);return ce(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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ur(e,t){return new Hr(e,t)}var Wr=e=>Array.isArray(e);function Gr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ur(n))}function Kr(e){return Wr(e)?e[e.length-1]||0:e}function qr(e,t){let{transitionEnd:n={},transition:r={},...i}=X(e,t)||{};i={...i,...n};for(let t in i)Gr(e,t,Kr(i[t]))}var Z=e=>!!(e&&e.getVelocity);function Jr(e){return!!(Z(e)&&e.add)}function Yr(e,t){let n=e.getValue(`willChange`);if(Jr(n))return n.add(t);if(!n&&O.WillChange){let n=new O.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Xr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Zr=`data-`+Xr(`framerAppearId`);function Qr(e){return e.props[Zr]}function $r({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ei(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?jr(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&$r(d,t))continue;let o={delay:n,...Mr(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){M.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Qr(e);if(n){let e=window.MotionHandoffAnimation(n,t,M);e!==null&&(o.startTime=e,f=!0)}}Yr(e,t);let p=l??e.shouldReduceMotion;r.start(Fr(t,r,i,p&&Rr.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>M.update(()=>{o&&qr(e,o)});u.length?Promise.all(u).then(t):t()}return u}function ti(e,t,n={}){let r=X(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(ei(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ni(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function ni(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(ti(c,t,{...o,delay:n+(typeof r==`function`?0:r)+xr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ri(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ti(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ti(e,t,n);else{let i=typeof t==`function`?X(e,t,n.custom):t;r=Promise.all(ei(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ii={test:e=>e===`auto`,parse:e=>e},ai=e=>t=>t.test(e),oi=[P,R,L,I,ut,lt,ii],si=e=>oi.find(ai(e));function ci(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||ne(e)}var li=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ui(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match($e)||[];if(!r)return e;let i=n.replace(r,``),a=+!!li.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var di=/\b([a-z-]*)\(.*?\)/gu,fi={...H,getAnimatableNone:e=>{let t=e.match(di);return t?t.map(ui).join(` `):e}},pi={...H,getAnimatableNone:e=>{let t=H.parse(e);return H.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},mi={...P,transform:Math.round},hi={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,rotate:I,rotateX:I,rotateY:I,rotateZ:I,scale:Ze,scaleX:Ze,scaleY:Ze,scaleZ:Ze,skew:I,skewX:I,skewY:I,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Xe,originX:dt,originY:dt,originZ:R,zIndex:mi,fillOpacity:Xe,strokeOpacity:Xe,numOctaves:mi},gi={...hi,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:fi,WebkitFilter:fi,mask:pi,WebkitMask:pi},_i=e=>gi[e],vi=new Set([fi,pi]);function yi(e,t){let n=_i(e);return vi.has(n)||(n=H),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var bi=new Set([`auto`,`none`,`0`]);function xi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!bi.has(t)&&V(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=yi(n,i)}var Si=class extends Wn{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(),qe(r))){let i=Tr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Rr.has(n)||e.length!==2)return;let[r,i]=e,a=si(r),o=si(i);if(Ye(r)!==Ye(i)&&J[n]){this.needsMeasurement=!0;return}if(a!==o)if(Pn(a)&&Pn(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||ci(e[t]))&&n.push(t);n.length&&xi(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(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=J[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Ci(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?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var wi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ti(e){return te(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Ei,cancel:Di}=Le(queueMicrotask,!1),Oi={x:!1,y:!1};function ki(){return Oi.x||Oi.y}function Ai(e,t){let n=Ci(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ji(e){return!(e.pointerType===`touch`||ki())}function Mi(e,t,n={}){let[r,i,a]=Ai(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),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(!ji(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 Ni=(e,t)=>t?e===t?!0:Ni(e,t.parentElement):!1,Pi=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Fi=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ii(e){return Fi.has(e.tagName)||e.isContentEditable===!0}var Li=new WeakSet;function Ri(e){return t=>{t.key===`Enter`&&e(t)}}function zi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Bi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ri(()=>{if(Li.has(n))return;zi(n,`down`);let e=Ri(()=>{zi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>zi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Vi(e){return Pi(e)&&!ki()}var Hi=new WeakSet;function Ui(e,t,n={}){let[r,i,a]=Ai(e,n),o=e=>{let r=e.currentTarget;if(!Vi(e)||Hi.has(e))return;Li.add(r),n.stopPropagation&&Hi.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Li.has(r)&&Li.delete(r),Vi(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Ni(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ti(e)&&(e.addEventListener(`focus`,e=>Bi(e,i)),!Ii(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var Wi=[...oi,B,H],Gi=e=>Wi.find(ai(e)),Ki=()=>({min:0,max:0}),qi=()=>({x:Ki(),y:Ki()}),Ji=new WeakMap;function Yi(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Xi(e){return typeof e==`string`||Array.isArray(e)}var Zi=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Qi=[`initial`,...Zi];function $i(e){return Yi(e.animate)||Qi.some(t=>Xi(e[t]))}function ea(e){return!!($i(e)||e.variants)}function ta(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,Ur(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,Ur(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var na={current:null},ra={current:!1},ia=typeof window<`u`;function aa(){if(ra.current=!0,ia)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>na.current=e.matches;e.addEventListener(`change`,t),t()}else na.current=!1}var oa=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],sa={};function ca(e){sa=e}function la(){return sa}var ua=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=Wn,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=N.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,M.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=$i(t),this.isVariantNode=ea(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){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Ji.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((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ra.current||aa(),this.shouldReduceMotion=na.current),process.env.NODE_ENV!==`production`&&ue(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Re(this.notifyUpdate),Re(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.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??=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&&pr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new rr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:A(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&&M.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(),t.owner&&t.stop()})}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 sa){let t=sa[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):qi()}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<oa.length;t++){let n=oa[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=ta(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=Ur(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);return n!=null&&(typeof n==`string`&&(ee(n)||ne(n))?n=parseFloat(n):!Gi(n)&&H.test(t)&&(n=yi(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`){let r=Lr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Z(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new se),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ei.render(this.render)}},da=class extends ua{constructor(){super(...arguments),this.KeyframeResolver=Si}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 fa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pa(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 ma(e,t){return fa(pa(e.getBoundingClientRect(),t))}var ha={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ga=K.length;function _a(e,t,n){let r=``,i=!0;for(let a=0;a<ga;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=wi(s,hi[o]);if(!c){i=!1;let t=ha[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function va(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(Ge(e)){i[e]=n;continue}else{let t=wi(n,hi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=_a(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function ya(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function ba(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var xa={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(R.test(e))e=parseFloat(e);else return e;return`${ba(e,t.target.x)}% ${ba(e,t.target.y)}%`}},Sa={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=H.parse(e);if(i.length>5)return r;let a=H.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=kt(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Ca={borderRadius:{...xa,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:xa,borderTopRightRadius:xa,borderBottomLeftRadius:xa,borderBottomRightRadius:xa,boxShadow:Sa};function wa(e,{layout:t,layoutId:n}){return q.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ca[e]||e===`opacity`)}function Ta(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Z(r[t])||i&&Z(i[t])||wa(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Ea(e){return window.getComputedStyle(e)}var Da=class extends da{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ya}readValueFromInstance(e,t){if(q.has(t))return this.projection?.isProjecting?An(t):Mn(e,t);{let n=Ea(e),r=(Ge(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ma(e,t)}build(e,t,n){va(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ta(e,t,n)}},Oa={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ka={offset:`strokeDashoffset`,array:`strokeDasharray`};function Aa(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Oa:ka;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var ja=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Ma(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(va(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?.transformBox??`fill-box`,delete d.transformBox);for(let e of ja)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&&Aa(d,i,a,o,!1)}var Na=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`]),Pa=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Fa(e,t,n,r){ya(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Na.has(n)?n:Xr(n),t.attrs[n])}function Ia(e,t,n){let r=Ta(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 La=class extends da{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=qi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(q.has(t)){let e=_i(t);return e&&e.default||0}return t=Na.has(t)?t:Xr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Ia(e,t,n)}build(e,t,n){Ma(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Fa(e,t,n,r)}mount(e){this.isSVGTag=Pa(e.tagName),super.mount(e)}},Ra=Qi.length;function za(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&za(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Ra;n++){let r=Qi[n],i=e.props[r];(Xi(i)||i===!1)&&(t[r]=i)}return t}function Ba(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=[...Zi].reverse(),Ha=Zi.length;function Ua(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ri(e,t,n)))}function Wa(e){let t=Ua(e),n=Ka(),r=!0,i=!1,a=t=>(n,r)=>{let i=X(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=za(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Ha;t++){let p=Va[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Xi(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||Yi(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Ga(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=Wr(t)&&Wr(n)?!Ba(t,n):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=xr(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){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ka(),i=!0}}}function Ga(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ba(t,e):!1}function $(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ka(){return{animate:$(!0),whileInView:$(),whileHover:$(),whileTap:$(),whileDrag:$(),whileFocus:$(),exit:$()}}function qa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ja(e){return Z(e)?e.get():e}var Ya=(0,_.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`}),Xa=(0,_.createContext)({strict:!1}),Za={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`]},Qa=!1;function $a(){if(Qa)return;let e={};for(let t in Za)e[t]={isEnabled:e=>Za[t].some(t=>!!e[t])};ca(e),Qa=!0}function eo(){return $a(),la()}function to(e){let t=eo();for(let n in e)t[n]={...t[n],...e[n]};ca(t)}function no({children:e,features:t,strict:n=!1}){let[,r]=(0,_.useState)(!ro(t)),i=(0,_.useRef)(void 0);if(!ro(t)){let{renderer:e,...n}=t;i.current=e,to(n)}return(0,_.useEffect)(()=>{ro(t)&&t().then(({renderer:e,...t})=>{to(t),i.current=e,r(!0)})},[]),(0,g.jsx)(Xa.Provider,{value:{renderer:i.current,strict:n},children:e})}function ro(e){return typeof e==`function`}var io=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`.split(`.`));function ao(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||io.has(e)}var oo=s({default:()=>so}),so,co=o((()=>{throw so={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),lo=e=>!ao(e);function uo(e){typeof e==`function`&&(lo=t=>t.startsWith(`on`)?!ao(t):e(t))}try{uo((co(),u(oo)).default)}catch{}function fo(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||Z(e[i])||(lo(i)||n===!0&&ao(i)||!t&&!ao(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var po=(0,_.createContext)({});function mo(e,t){if($i(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Xi(t)?t:void 0,animate:Xi(n)?n:void 0}}return e.inherit===!1?{}:t}function ho(e){let{initial:t,animate:n}=mo(e,(0,_.useContext)(po));return(0,_.useMemo)(()=>({initial:t,animate:n}),[go(t),go(n)])}function go(e){return Array.isArray(e)?e.join(` `):e}var _o=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vo(e,t,n){for(let r in t)!Z(t[r])&&!wa(r,n)&&(e[r]=t[r])}function yo({transformTemplate:e},t){return(0,_.useMemo)(()=>{let n=_o();return va(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bo(e,t){let n=e.style||{},r={};return vo(r,n,e),Object.assign(r,yo(e,t)),r}function xo(e,t){let n={},r=bo(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var So=()=>({..._o(),attrs:{}});function Co(e,t,n,r){let i=(0,_.useMemo)(()=>{let n=So();return Ma(n,t,Pa(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};vo(t,e.style,e),i.style={...t,...i.style}}return i}var wo=[`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 To(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(wo.indexOf(e)>-1||/[A-Z]/u.test(e))}function Eo(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??To(e)?Co:xo)(t,r,i,e),c=fo(t,typeof e==`string`,a),l=e===_.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,_.useMemo)(()=>Z(u)?u.get():u,[u]);return(0,_.createElement)(e,{...l,children:d})}function Do({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Oo(n,r,i,e),renderState:t()}}function Oo(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Ja(a[e]);let{initial:o,animate:s}=e,c=$i(e),l=ea(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Yi(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Lr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var ko=e=>(t,n)=>{let r=(0,_.useContext)(po),i=(0,_.useContext)(x),a=()=>Do(e,t,r,i);return n?a():y(a)},Ao=ko({scrapeMotionValuesFromProps:Ta,createRenderState:_o}),jo=ko({scrapeMotionValuesFromProps:Ia,createRenderState:So}),Mo=Symbol.for(`motionComponentSymbol`);function No(e,t,n){let r=(0,_.useRef)(n);(0,_.useInsertionEffect)(()=>{r.current=n});let i=(0,_.useRef)(null);return(0,_.useCallback)(n=>{n&&e.onMount?.(n);let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var Po=(0,_.createContext)({});function Fo(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Io(e,t,n,r,i,a){let{visualElement:o}=(0,_.useContext)(po),s=(0,_.useContext)(Xa),c=(0,_.useContext)(x),l=(0,_.useContext)(Ya),u=l.reducedMotion,d=l.skipAnimations,f=(0,_.useRef)(null),p=(0,_.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,_.useContext)(Po);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Lo(f.current,n,i,h);let g=(0,_.useRef)(!1);(0,_.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let v=n[Zr],y=(0,_.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return b(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),y.current&&m.animationState&&m.animationState.animateChanges())}),(0,_.useEffect)(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),m.enteringChildren=void 0)}),m}function Lo(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Ro(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Fo(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Ro(e){if(e)return e.options.allowProjection===!1?Ro(e.parent):e.projection}function zo(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&to(r);let a=n?n===`svg`:To(e),o=a?jo:Ao;function s(n,s){let c,l={...(0,_.useContext)(Ya),...n,layoutId:Bo(n)},{isStatic:u}=l,d=ho(n),f=o(n,u);if(!u&&typeof window<`u`){Vo(l,r);let t=Ho(l);c=t.MeasureLayout,d.visualElement=Io(e,f,l,i,t.ProjectionNode,a)}return(0,g.jsxs)(po.Provider,{value:d,children:[c&&d.visualElement?(0,g.jsx)(c,{visualElement:d.visualElement,...l}):null,Eo(e,n,No(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,_.forwardRef)(s);return c[Mo]=e,c}function Bo({layoutId:e}){let t=(0,_.useContext)(v).id;return t&&e!==void 0?t+`-`+e:e}function Vo(e,t){let n=(0,_.useContext)(Xa).strict;if(process.env.NODE_ENV!==`production`&&t&&n){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?E(!1,t,`lazy-strict-mode`):D(!1,t,`lazy-strict-mode`)}}function Ho(e){let{drag:t,layout:n}=eo();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var Uo=(e,t)=>t.isSVG??To(e)?new La(t):new Da(t,{allowProjection:e!==_.Fragment}),Wo=class extends Q{constructor(e){super(e),e.animationState||=Wa(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Yi(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(){this.node.animationState.reset(),this.unmountControls?.()}},Go=0,Ko={animation:{Feature:Wo},exit:{Feature:class extends Q{constructor(){super(...arguments),this.id=Go++,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`){let n=X(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{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 qo(e){return{point:{x:e.pageX,y:e.pageY}}}function Jo(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&M.postRender(()=>i(t,qo(t)))}var Yo=class extends Q{mount(){let{current:e}=this.node;e&&(this.unmount=Mi(e,(e,t)=>(Jo(this.node,t,`Start`),e=>Jo(this.node,e,`End`))))}unmount(){}},Xo=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=ae(qa(this.node.current,`focus`,()=>this.onFocus()),qa(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Zo(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&&M.postRender(()=>i(t,qo(t)))}var Qo=class extends Q{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ui(e,(e,t)=>(Zo(this.node,t,`Start`),(e,{success:t})=>Zo(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},$o=new WeakMap,es=new WeakMap,ts=e=>{let t=$o.get(e.target);t&&t(e)},ns=e=>{e.forEach(ts)};function rs({root:e,...t}){let n=e||document;es.has(n)||es.set(n,{});let r=es.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ns,{root:e,...t})),r[i]}function is(e,t,n){let r=rs(t);return $o.set(e,n),r.observe(e),()=>{$o.delete(e),r.unobserve(e)}}var as={some:0,all:1},os=class extends Q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:as[r]};this.stopObserver=is(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!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(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(ss(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function ss({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var cs={inView:{Feature:os},tap:{Feature:Qo},focus:{Feature:Xo},hover:{Feature:Yo}},ls={renderer:Uo,...Ko,...cs};function us(e,t){return zo(e,t)}var ds=us(`div`),fs=_.default.createContext({groupOpen:!1,setGroupOpen:()=>{}}),ps=({open:e,delay:t=600})=>{let n=_.default.useContext(fs);return _.default.useEffect(()=>{let r=null;return n.setGroupOpen&&(e===!0&&n.setGroupOpen(!0),e===!1&&(r=setTimeout(()=>{n.setGroupOpen&&n.setGroupOpen(!1)},t))),()=>{r&&clearTimeout(r)}},[e,n,t]),{groupOpen:n.groupOpen}},ms=({children:e})=>{let[t,n]=_.default.useState(!1);return(0,g.jsx)(fs.Provider,{value:{groupOpen:t,setGroupOpen:n},children:e})},hs=({delayDuration:e=400,skipDelayDuration:t,disableHoverableContent:n,defaultOpen:r,open:i,onOpenChange:a,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,forceMount:l,side:u=`bottom`,sideOffset:v=4,align:y=`center`,alignOffset:b,avoidCollisions:x,collisionBoundary:S,collisionPadding:C,arrowPadding:w,sticky:T,hideWhenDetached:E,skipAnimation:D,label:O,labelProps:ee,enabled:te=!0,triggerRef:ne,children:re})=>{let[k,ie]=(0,f.useControllableState)({prop:i,onChange:a,defaultProp:r??!1}),{groupOpen:ae}=ps({open:!!k,delay:e}),oe=_.default.Children.toArray(re).some(e=>_.default.isValidElement(e)?e.props.disabled:!1),se=ae||oe?0:e,A=!ae;return(0,g.jsx)(no,{features:ls,children:(0,g.jsx)(d.Provider,{delayDuration:se,skipDelayDuration:t,disableHoverableContent:n,children:(0,g.jsxs)(d.Root,{open:te===!1?!1:k,onOpenChange:ie,children:[(0,g.jsx)(d.Trigger,{asChild:!0,ref:ne,children:(0,g.jsx)(p.RefToTgphRef,{children:re})}),(0,g.jsx)(d.Portal,{children:(0,g.jsx)(d.Content,{"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,forceMount:l,side:u,sideOffset:v,align:y,alignOffset:b,avoidCollisions:x,collisionBoundary:S,collisionPadding:C,arrowPadding:w,sticky:T,hideWhenDetached:E,style:{zIndex:`var(--tgph-zIndex-tooltip)`},children:(0,g.jsx)(m.Stack,{as:ds,className:`tgph`,initial:A&&!D?{opacity:0,scale:.8,...(e=>{if(e===`top`)return{y:-5};if(e===`bottom`)return{y:5};if(e===`left`)return{x:-5};if(e===`right`)return{x:5}})(u)}:{},animate:{opacity:1,scale:1,x:0,y:0},transition:{duration:.1,type:`spring`,bounce:0},bg:`surface-1`,shadow:`2`,rounded:`3`,py:`1_5`,px:`2`,align:`center`,justify:`center`,style:{transformOrigin:`var(--radix-tooltip-content-transform-origin)`},...ee?{labelProps:ee}:{},children:typeof O==`string`?(0,g.jsx)(h.Text,{as:`span`,size:`1`,children:O}):O})})})]})})})};exports.Tooltip=hs,exports.TooltipGroupProvider=ms;
2
2
  //# sourceMappingURL=index.js.map