@lzzjokerzzl/react-ui-components 1.0.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/dist/index.cjs ADDED
@@ -0,0 +1,68 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),I=require("react"),Ou=require("react-dom");function $u(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const Yn=$u(I);var Tn={exports:{}},Wr={};/**
2
+ * @license React
3
+ * react-compiler-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Eo;function Fu(){if(Eo)return Wr;Eo=1;var s=I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Wr.c=function(e){return s.H.useMemoCache(e)},Wr}var Gr={};/**
10
+ * @license React
11
+ * react-compiler-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Io;function zu(){return Io||(Io=1,process.env.NODE_ENV!=="production"&&(function(){var s=I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Gr.c=function(e){var t=s.H;return t===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
18
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
19
+ 2. You might be breaking the Rules of Hooks
20
+ 3. You might have more than one copy of React in the same app
21
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),t.useMemoCache(e)}})()),Gr}var Ro;function _u(){return Ro||(Ro=1,process.env.NODE_ENV==="production"?Tn.exports=Fu():Tn.exports=zu()),Tn.exports}var ge=_u();const Fi=I.createContext({});function Ot(s){const e=I.useRef(null);return e.current===null&&(e.current=s()),e.current}const zi=typeof window<"u",zs=zi?I.useLayoutEffect:I.useEffect,Xn=I.createContext(null);function _i(s,e){s.indexOf(e)===-1&&s.push(e)}function qn(s,e){const t=s.indexOf(e);t>-1&&s.splice(t,1)}const mt=(s,e,t)=>t>e?e:t<s?s:t;function ci(s,e){return e?`${s}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:s}let fs=()=>{},Xe=()=>{};process.env.NODE_ENV!=="production"&&(fs=(s,e,t)=>{!s&&typeof console<"u"&&console.warn(ci(e,t))},Xe=(s,e,t)=>{if(!s)throw new Error(ci(e,t))});const bt={},gl=s=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s);function yl(s){return typeof s=="object"&&s!==null}const bl=s=>/^0[^.\s]+$/u.test(s);function Wi(s){let e;return()=>(e===void 0&&(e=s()),e)}const et=s=>s,Wu=(s,e)=>t=>e(s(t)),_s=(...s)=>s.reduce(Wu),Lt=(s,e,t)=>{const n=e-s;return n===0?1:(t-s)/n};class Gi{constructor(){this.subscriptions=[]}add(e){return _i(this.subscriptions,e),()=>qn(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const o=this.subscriptions[i];o&&o(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const at=s=>s*1e3,ot=s=>s/1e3;function Ui(s,e){return e?s*(1e3/e):0}const jo=new Set;function Zn(s,e,t){s||jo.has(e)||(console.warn(ci(e,t)),jo.add(e))}const Gu=(s,e,t)=>{const n=e-s;return((t-s)%n+n)%n+s},vl=(s,e,t)=>(((1-3*t+3*e)*s+(3*t-6*e))*s+3*e)*s,Uu=1e-7,Hu=12;function Ku(s,e,t,n,r){let i,o,a=0;do o=e+(t-e)/2,i=vl(o,n,r)-s,i>0?t=o:e=o;while(Math.abs(i)>Uu&&++a<Hu);return o}function Ws(s,e,t,n){if(s===e&&t===n)return et;const r=i=>Ku(i,0,1,s,t);return i=>i===0||i===1?i:vl(r(i),e,n)}const xl=s=>e=>e<=.5?s(2*e)/2:(2-s(2*(1-e)))/2,wl=s=>e=>1-s(1-e),Cl=Ws(.33,1.53,.69,.99),Hi=wl(Cl),Sl=xl(Hi),Tl=s=>(s*=2)<1?.5*Hi(s):.5*(2-Math.pow(2,-10*(s-1))),Ki=s=>1-Math.sin(Math.acos(s)),kl=wl(Ki),Al=xl(Ki),Yu=Ws(.42,0,1,1),Xu=Ws(0,0,.58,1),Vl=Ws(.42,0,.58,1),Ml=s=>Array.isArray(s)&&typeof s[0]!="number";function Pl(s,e){return Ml(s)?s[Gu(0,s.length,e)]:s}const El=s=>Array.isArray(s)&&typeof s[0]=="number",No={linear:et,easeIn:Yu,easeInOut:Vl,easeOut:Xu,circIn:Ki,circInOut:Al,circOut:kl,backIn:Hi,backInOut:Sl,backOut:Cl,anticipate:Tl},qu=s=>typeof s=="string",Do=s=>{if(El(s)){Xe(s.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,t,n,r]=s;return Ws(e,t,n,r)}else if(qu(s))return Xe(No[s]!==void 0,`Invalid easing type '${s}'`,"invalid-easing-type"),No[s];return s},kn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Zu(s,e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),s()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const p=f&&r?t:n;return d&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(a=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,c.process(u))}};return c}const Ju=40;function Il(s,e){let t=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>t=!0,o=kn.reduce((y,g)=>(y[g]=Zu(i),y),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:p}=o,b=()=>{const y=bt.useManualTiming?r.timestamp:performance.now();t=!1,bt.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(y-r.timestamp,Ju),1)),r.timestamp=y,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),d.process(r),f.process(r),h.process(r),p.process(r),r.isProcessing=!1,t&&e&&(n=!1,s(b))},v=()=>{t=!0,n=!0,r.isProcessing||s(b)};return{schedule:kn.reduce((y,g)=>{const w=o[g];return y[g]=(x,k=!1,C=!1)=>(t||v(),w.schedule(x,k,C)),y},{}),cancel:y=>{for(let g=0;g<kn.length;g++)o[kn[g]].cancel(y)},state:r,steps:o}}const{schedule:Pe,cancel:ut,state:Ue,steps:Ur}=Il(typeof requestAnimationFrame<"u"?requestAnimationFrame:et,!0);let Dn;function Qu(){Dn=void 0}const Qe={now:()=>(Dn===void 0&&Qe.set(Ue.isProcessing||bt.useManualTiming?Ue.timestamp:performance.now()),Dn),set:s=>{Dn=s,queueMicrotask(Qu)}},Rl=s=>e=>typeof e=="string"&&e.startsWith(s),Yi=Rl("--"),ed=Rl("var(--"),Xi=s=>ed(s)?td.test(s.split("/*")[0].trim()):!1,td=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hs={test:s=>typeof s=="number",parse:parseFloat,transform:s=>s},js={...hs,transform:s=>mt(0,1,s)},An={...hs,default:1},Vs=s=>Math.round(s*1e5)/1e5,qi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sd(s){return s==null}const nd=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zi=(s,e)=>t=>!!(typeof t=="string"&&nd.test(t)&&t.startsWith(s)||e&&!sd(t)&&Object.prototype.hasOwnProperty.call(t,e)),jl=(s,e,t)=>n=>{if(typeof n!="string")return n;const[r,i,o,a]=n.match(qi);return{[s]:parseFloat(r),[e]:parseFloat(i),[t]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},rd=s=>mt(0,255,s),Hr={...hs,transform:s=>Math.round(rd(s))},jt={test:Zi("rgb","red"),parse:jl("red","green","blue"),transform:({red:s,green:e,blue:t,alpha:n=1})=>"rgba("+Hr.transform(s)+", "+Hr.transform(e)+", "+Hr.transform(t)+", "+Vs(js.transform(n))+")"};function id(s){let e="",t="",n="",r="";return s.length>5?(e=s.substring(1,3),t=s.substring(3,5),n=s.substring(5,7),r=s.substring(7,9)):(e=s.substring(1,2),t=s.substring(2,3),n=s.substring(3,4),r=s.substring(4,5),e+=e,t+=t,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}}const ui={test:Zi("#"),parse:id,transform:jt.transform},Gs=s=>({test:e=>typeof e=="string"&&e.endsWith(s)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${s}`}),Tt=Gs("deg"),ht=Gs("%"),we=Gs("px"),od=Gs("vh"),ad=Gs("vw"),Bo={...ht,parse:s=>ht.parse(s)/100,transform:s=>ht.transform(s*100)},ss={test:Zi("hsl","hue"),parse:jl("hue","saturation","lightness"),transform:({hue:s,saturation:e,lightness:t,alpha:n=1})=>"hsla("+Math.round(s)+", "+ht.transform(Vs(e))+", "+ht.transform(Vs(t))+", "+Vs(js.transform(n))+")"},$e={test:s=>jt.test(s)||ui.test(s)||ss.test(s),parse:s=>jt.test(s)?jt.parse(s):ss.test(s)?ss.parse(s):ui.parse(s),transform:s=>typeof s=="string"?s:s.hasOwnProperty("red")?jt.transform(s):ss.transform(s),getAnimatableNone:s=>{const e=$e.parse(s);return e.alpha=0,$e.transform(e)}},ld=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function cd(s){return isNaN(s)&&typeof s=="string"&&(s.match(qi)?.length||0)+(s.match(ld)?.length||0)>0}const Nl="number",Dl="color",ud="var",dd="var(",Lo="${}",fd=/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 Ns(s){const e=s.toString(),t=[],n={color:[],number:[],var:[]},r=[];let i=0;const a=e.replace(fd,l=>($e.test(l)?(n.color.push(i),r.push(Dl),t.push($e.parse(l))):l.startsWith(dd)?(n.var.push(i),r.push(ud),t.push(l)):(n.number.push(i),r.push(Nl),t.push(parseFloat(l))),++i,Lo)).split(Lo);return{values:t,split:a,indexes:n,types:r}}function Bl(s){return Ns(s).values}function Ll(s){const{split:e,types:t}=Ns(s),n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],r[o]!==void 0){const a=t[o];a===Nl?i+=Vs(r[o]):a===Dl?i+=$e.transform(r[o]):i+=r[o]}return i}}const hd=s=>typeof s=="number"?0:$e.test(s)?$e.getAnimatableNone(s):s;function md(s){const e=Bl(s);return Ll(s)(e.map(hd))}const At={test:cd,parse:Bl,createTransformer:Ll,getAnimatableNone:md};function Kr(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+(e-s)*6*t:t<1/2?e:t<2/3?s+(e-s)*(2/3-t)*6:s}function pd({hue:s,saturation:e,lightness:t,alpha:n}){s/=360,e/=100,t/=100;let r=0,i=0,o=0;if(!e)r=i=o=t;else{const a=t<.5?t*(1+e):t+e-t*e,l=2*t-a;r=Kr(l,a,s+1/3),i=Kr(l,a,s),o=Kr(l,a,s-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}function _n(s,e){return t=>t>0?e:s}const je=(s,e,t)=>s+(e-s)*t,Yr=(s,e,t)=>{const n=s*s,r=t*(e*e-n)+n;return r<0?0:Math.sqrt(r)},gd=[ui,jt,ss],yd=s=>gd.find(e=>e.test(s));function Oo(s){const e=yd(s);if(fs(!!e,`'${s}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let t=e.parse(s);return e===ss&&(t=pd(t)),t}const $o=(s,e)=>{const t=Oo(s),n=Oo(e);if(!t||!n)return _n(s,e);const r={...t};return i=>(r.red=Yr(t.red,n.red,i),r.green=Yr(t.green,n.green,i),r.blue=Yr(t.blue,n.blue,i),r.alpha=je(t.alpha,n.alpha,i),jt.transform(r))},di=new Set(["none","hidden"]);function bd(s,e){return di.has(s)?t=>t<=0?s:e:t=>t>=1?e:s}function vd(s,e){return t=>je(s,e,t)}function Ji(s){return typeof s=="number"?vd:typeof s=="string"?Xi(s)?_n:$e.test(s)?$o:Cd:Array.isArray(s)?Ol:typeof s=="object"?$e.test(s)?$o:xd:_n}function Ol(s,e){const t=[...s],n=t.length,r=s.map((i,o)=>Ji(i)(i,e[o]));return i=>{for(let o=0;o<n;o++)t[o]=r[o](i);return t}}function xd(s,e){const t={...s,...e},n={};for(const r in t)s[r]!==void 0&&e[r]!==void 0&&(n[r]=Ji(s[r])(s[r],e[r]));return r=>{for(const i in n)t[i]=n[i](r);return t}}function wd(s,e){const t=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const i=e.types[r],o=s.indexes[i][n[i]],a=s.values[o]??0;t[r]=a,n[i]++}return t}const Cd=(s,e)=>{const t=At.createTransformer(e),n=Ns(s),r=Ns(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?di.has(s)&&!r.values.length||di.has(e)&&!n.values.length?bd(s,e):_s(Ol(wd(n,r),r.values),t):(fs(!0,`Complex values '${s}' and '${e}' 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"),_n(s,e))};function $l(s,e,t){return typeof s=="number"&&typeof e=="number"&&typeof t=="number"?je(s,e,t):Ji(s)(s,e)}const Sd=s=>{const e=({timestamp:t})=>s(t);return{start:(t=!0)=>Pe.update(e,t),stop:()=>ut(e),now:()=>Ue.isProcessing?Ue.timestamp:Qe.now()}},Fl=(s,e,t=10)=>{let n="";const r=Math.max(Math.round(e/t),2);for(let i=0;i<r;i++)n+=Math.round(s(i/(r-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Wn=2e4;function Qi(s){let e=0;const t=50;let n=s.next(e);for(;!n.done&&e<Wn;)e+=t,n=s.next(e);return e>=Wn?1/0:e}function zl(s,e=100,t){const n=t({...s,keyframes:[0,e]}),r=Math.min(Qi(n),Wn);return{type:"keyframes",ease:i=>n.next(r*i).value/e,duration:ot(r)}}const Td=5;function _l(s,e,t){const n=Math.max(e-Td,0);return Ui(t-s(n),e-n)}const De={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},Xr=.001;function kd({duration:s=De.duration,bounce:e=De.bounce,velocity:t=De.velocity,mass:n=De.mass}){let r,i;fs(s<=at(De.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=mt(De.minDamping,De.maxDamping,o),s=mt(De.minDuration,De.maxDuration,ot(s)),o<1?(r=c=>{const u=c*o,d=u*s,f=u-t,h=fi(c,o),p=Math.exp(-d);return Xr-f/h*p},i=c=>{const d=c*o*s,f=d*t+t,h=Math.pow(o,2)*Math.pow(c,2)*s,p=Math.exp(-d),b=fi(Math.pow(c,2),o);return(-r(c)+Xr>0?-1:1)*((f-h)*p)/b}):(r=c=>{const u=Math.exp(-c*s),d=(c-t)*s+1;return-Xr+u*d},i=c=>{const u=Math.exp(-c*s),d=(t-c)*(s*s);return u*d});const a=5/s,l=Vd(r,i,a);if(s=at(s),isNaN(l))return{stiffness:De.stiffness,damping:De.damping,duration:s};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:s}}}const Ad=12;function Vd(s,e,t){let n=t;for(let r=1;r<Ad;r++)n=n-s(n)/e(n);return n}function fi(s,e){return s*Math.sqrt(1-e*e)}const Md=["duration","bounce"],Pd=["stiffness","damping","mass"];function Fo(s,e){return e.some(t=>s[t]!==void 0)}function Ed(s){let e={velocity:De.velocity,stiffness:De.stiffness,damping:De.damping,mass:De.mass,isResolvedFromDuration:!1,...s};if(!Fo(s,Pd)&&Fo(s,Md))if(s.visualDuration){const t=s.visualDuration,n=2*Math.PI/(t*1.2),r=n*n,i=2*mt(.05,1,1-(s.bounce||0))*Math.sqrt(r);e={...e,mass:De.mass,stiffness:r,damping:i}}else{const t=kd(s);e={...e,...t,mass:De.mass},e.isResolvedFromDuration=!0}return e}function Ds(s=De.visualDuration,e=De.bounce){const t=typeof s!="object"?{visualDuration:s,keyframes:[0,1],bounce:e}:s;let{restSpeed:n,restDelta:r}=t;const i=t.keyframes[0],o=t.keyframes[t.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=Ed({...t,velocity:-ot(t.velocity||0)}),p=f||0,b=c/(2*Math.sqrt(l*u)),v=o-i,S=ot(Math.sqrt(l/u)),m=Math.abs(v)<5;n||(n=m?De.restSpeed.granular:De.restSpeed.default),r||(r=m?De.restDelta.granular:De.restDelta.default);let y;if(b<1){const w=fi(S,b);y=x=>{const k=Math.exp(-b*S*x);return o-k*((p+b*S*v)/w*Math.sin(w*x)+v*Math.cos(w*x))}}else if(b===1)y=w=>o-Math.exp(-S*w)*(v+(p+S*v)*w);else{const w=S*Math.sqrt(b*b-1);y=x=>{const k=Math.exp(-b*S*x),C=Math.min(w*x,300);return o-k*((p+b*S*v)*Math.sinh(C)+w*v*Math.cosh(C))/w}}const g={calculatedDuration:h&&d||null,next:w=>{const x=y(w);if(h)a.done=w>=d;else{let k=w===0?p:0;b<1&&(k=w===0?at(p):_l(y,w,x));const C=Math.abs(k)<=n,E=Math.abs(o-x)<=r;a.done=C&&E}return a.value=a.done?o:x,a},toString:()=>{const w=Math.min(Qi(g),Wn),x=Fl(k=>g.next(w*k).value,w,30);return w+"ms "+x},toTransition:()=>{}};return g}Ds.applyToOptions=s=>{const e=zl(s,100,Ds);return s.ease=e.ease,s.duration=at(e.duration),s.type="keyframes",s};function hi({keyframes:s,velocity:e=0,power:t=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=s[0],f={done:!1,value:d},h=C=>a!==void 0&&C<a||l!==void 0&&C>l,p=C=>a===void 0?l:l===void 0||Math.abs(a-C)<Math.abs(l-C)?a:l;let b=t*e;const v=d+b,S=o===void 0?v:o(v);S!==v&&(b=S-d);const m=C=>-b*Math.exp(-C/n),y=C=>S+m(C),g=C=>{const E=m(C),j=y(C);f.done=Math.abs(E)<=c,f.value=f.done?S:j};let w,x;const k=C=>{h(f.value)&&(w=C,x=Ds({keyframes:[f.value,p(f.value)],velocity:_l(y,C,f.value),damping:r,stiffness:i,restDelta:c,restSpeed:u}))};return k(0),{calculatedDuration:null,next:C=>{let E=!1;return!x&&w===void 0&&(E=!0,g(C),k(C)),w!==void 0&&C>=w?x.next(C-w):(!E&&g(C),f)}}}function Id(s,e,t){const n=[],r=t||bt.mix||$l,i=s.length-1;for(let o=0;o<i;o++){let a=r(s[o],s[o+1]);if(e){const l=Array.isArray(e)?e[o]||et:e;a=_s(l,a)}n.push(a)}return n}function eo(s,e,{clamp:t=!0,ease:n,mixer:r}={}){const i=s.length;if(Xe(i===e.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>e[0];if(i===2&&e[0]===e[1])return()=>e[1];const o=s[0]===s[1];s[0]>s[i-1]&&(s=[...s].reverse(),e=[...e].reverse());const a=Id(e,n,r),l=a.length,c=u=>{if(o&&u<s[0])return e[0];let d=0;if(l>1)for(;d<s.length-2&&!(u<s[d+1]);d++);const f=Lt(s[d],s[d+1],u);return a[d](f)};return t?u=>c(mt(s[0],s[i-1],u)):c}function Wl(s,e){const t=s[s.length-1];for(let n=1;n<=e;n++){const r=Lt(0,e,n);s.push(je(t,1,r))}}function to(s){const e=[0];return Wl(e,s.length-1),e}function Rd(s,e){return s.map(t=>t*e)}function jd(s,e){return s.map(()=>e||Vl).splice(0,s.length-1)}function ns({duration:s=300,keyframes:e,times:t,ease:n="easeInOut"}){const r=Ml(n)?n.map(Do):Do(n),i={done:!1,value:e[0]},o=Rd(t&&t.length===e.length?t:to(e),s),a=eo(o,e,{ease:Array.isArray(r)?r:jd(e,r)});return{calculatedDuration:s,next:l=>(i.value=a(l),i.done=l>=s,i)}}const Nd=s=>s!==null;function so(s,{repeat:e,repeatType:t="loop"},n,r=1){const i=s.filter(Nd),a=r<0||e&&t!=="loop"&&e%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}const Dd={decay:hi,inertia:hi,tween:ns,keyframes:ns,spring:Ds};function Gl(s){typeof s.type=="string"&&(s.type=Dd[s.type])}class no{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)}}const Bd=s=>s/100;class Jn extends no{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==Qe.now()&&this.tick(Qe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Gl(e);const{type:t=ns,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e;let{keyframes:a}=e;const l=t||ns;process.env.NODE_ENV!=="production"&&l!==ns&&Xe(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==ns&&typeof a[0]!="number"&&(this.mixKeyframes=_s(Bd,$l(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Qi(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:p,onUpdate:b,finalKeyframe:v}=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);const S=this.currentTime-c*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?S<0:S>r;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,g=n;if(d){const C=Math.min(this.currentTime,r)/a;let E=Math.floor(C),j=C%1;!j&&C>=1&&(j=1),j===1&&E--,E=Math.min(E,d+1),!!(E%2)&&(f==="reverse"?(j=1-j,h&&(j-=h/a)):f==="mirror"&&(g=o)),y=mt(0,1,j)*a}const w=m?{done:!1,value:u[0]}:g.next(y);i&&(w.value=i(w.value));let{done:x}=w;!m&&l!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&x);return k&&p!==hi&&(w.value=so(u,this.options,v,this.speed)),b&&b(w.value),k&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return ot(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+ot(e)}get time(){return ot(this.currentTime)}set time(e){e=at(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Qe.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=ot(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Sd,startTime:t}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),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(Qe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Ld(s){for(let e=1;e<s.length;e++)s[e]??(s[e]=s[e-1])}const Nt=s=>s*180/Math.PI,mi=s=>{const e=Nt(Math.atan2(s[1],s[0]));return pi(e)},Od={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:s=>(Math.abs(s[0])+Math.abs(s[3]))/2,rotate:mi,rotateZ:mi,skewX:s=>Nt(Math.atan(s[1])),skewY:s=>Nt(Math.atan(s[2])),skew:s=>(Math.abs(s[1])+Math.abs(s[2]))/2},pi=s=>(s=s%360,s<0&&(s+=360),s),zo=mi,_o=s=>Math.sqrt(s[0]*s[0]+s[1]*s[1]),Wo=s=>Math.sqrt(s[4]*s[4]+s[5]*s[5]),$d={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_o,scaleY:Wo,scale:s=>(_o(s)+Wo(s))/2,rotateX:s=>pi(Nt(Math.atan2(s[6],s[5]))),rotateY:s=>pi(Nt(Math.atan2(-s[2],s[0]))),rotateZ:zo,rotate:zo,skewX:s=>Nt(Math.atan(s[4])),skewY:s=>Nt(Math.atan(s[1])),skew:s=>(Math.abs(s[1])+Math.abs(s[4]))/2};function gi(s){return s.includes("scale")?1:0}function yi(s,e){if(!s||s==="none")return gi(e);const t=s.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,r;if(t)n=$d,r=t;else{const a=s.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Od,r=a}if(!r)return gi(e);const i=n[e],o=r[1].split(",").map(zd);return typeof i=="function"?i(o):o[i]}const Fd=(s,e)=>{const{transform:t="none"}=getComputedStyle(s);return yi(t,e)};function zd(s){return parseFloat(s.trim())}const ms=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ps=new Set(ms),Go=s=>s===hs||s===we,_d=new Set(["x","y","z"]),Wd=ms.filter(s=>!_d.has(s));function Gd(s){const e=[];return Wd.forEach(t=>{const n=s.getValue(t);n!==void 0&&(e.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),e}const Dt={width:({x:s},{paddingLeft:e="0",paddingRight:t="0"})=>s.max-s.min-parseFloat(e)-parseFloat(t),height:({y:s},{paddingTop:e="0",paddingBottom:t="0"})=>s.max-s.min-parseFloat(e)-parseFloat(t),top:(s,{top:e})=>parseFloat(e),left:(s,{left:e})=>parseFloat(e),bottom:({y:s},{top:e})=>parseFloat(e)+(s.max-s.min),right:({x:s},{left:e})=>parseFloat(e)+(s.max-s.min),x:(s,{transform:e})=>yi(e,"x"),y:(s,{transform:e})=>yi(e,"y")};Dt.translateX=Dt.x;Dt.translateY=Dt.y;const Bt=new Set;let bi=!1,vi=!1,xi=!1;function Ul(){if(vi){const s=Array.from(Bt).filter(n=>n.needsMeasurement),e=new Set(s.map(n=>n.element)),t=new Map;e.forEach(n=>{const r=Gd(n);r.length&&(t.set(n,r),n.render())}),s.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const r=t.get(n);r&&r.forEach(([i,o])=>{n.getValue(i)?.set(o)})}),s.forEach(n=>n.measureEndState()),s.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}vi=!1,bi=!1,Bt.forEach(s=>s.complete(xi)),Bt.clear()}function Hl(){Bt.forEach(s=>{s.readKeyframes(),s.needsMeasurement&&(vi=!0)})}function Ud(){xi=!0,Hl(),Ul(),xi=!1}class ro{constructor(e,t,n,r,i,o=!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=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Bt.add(this),bi||(bi=!0,Pe.read(Hl),Pe.resolveKeyframes(Ul))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){const i=r?.get(),o=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){const a=n.readValue(t,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),r&&i===void 0&&r.set(e[0])}Ld(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Bt.delete(this)}cancel(){this.state==="scheduled"&&(Bt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Hd=s=>s.startsWith("--");function Kd(s,e,t){Hd(e)?s.style.setProperty(e,t):s.style[e]=t}const Kl=Wi(()=>window.ScrollTimeline!==void 0),Yd={};function Xd(s,e){const t=Wi(s);return()=>Yd[e]??t()}const Yl=Xd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ks=([s,e,t,n])=>`cubic-bezier(${s}, ${e}, ${t}, ${n})`,Uo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ks([0,.65,.55,1]),circOut:ks([.55,0,1,.45]),backIn:ks([.31,.01,.66,-.59]),backOut:ks([.33,1.53,.69,.99])};function Xl(s,e){if(s)return typeof s=="function"?Yl()?Fl(s,e):"ease-out":El(s)?ks(s):Array.isArray(s)?s.map(t=>Xl(t,e)||Uo.easeOut):Uo[s]}function qd(s,e,t,{delay:n=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:t};l&&(u.offset=l);const d=Xl(a,r);Array.isArray(d)&&(u.easing=d);const f={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),s.animate(u,f)}function io(s){return typeof s=="function"&&"applyToOptions"in s}function Zd({type:s,...e}){return io(s)&&Yl()?s.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Jd extends no{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,Xe(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Zd(e);this.animation=qd(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=so(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Kd(t,n,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return ot(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+ot(e)}get time(){return ot(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=at(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Kl()?(this.animation.timeline=e,et):t(this)}}const ql={anticipate:Tl,backInOut:Sl,circInOut:Al};function Qd(s){return s in ql}function ef(s){typeof s.ease=="string"&&Qd(s.ease)&&(s.ease=ql[s.ease])}const Ho=10;class tf extends Jd{constructor(e){ef(e),Gl(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}const a=new Jn({...o,autoplay:!1}),l=at(this.finishedTime??this.time);t.setWithVelocity(a.sample(l-Ho).value,a.sample(l).value,Ho),a.stop()}}const Ko=(s,e)=>e==="zIndex"?!1:!!(typeof s=="number"||Array.isArray(s)||typeof s=="string"&&(At.test(s)||s==="0")&&!s.startsWith("url("));function sf(s){const e=s[0];if(s.length===1)return!0;for(let t=0;t<s.length;t++)if(s[t]!==e)return!0}function nf(s,e,t,n){const r=s[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const i=s[s.length-1],o=Ko(r,e),a=Ko(i,e);return fs(o===a,`You are trying to animate ${e} from "${r}" to "${i}". "${o?i:r}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:sf(s)||(t==="spring"||io(t))&&n}function wi(s){s.duration=0,s.type="keyframes"}const rf=new Set(["opacity","clipPath","filter","transform"]),of=Wi(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function af(s){const{motionValue:e,name:t,repeatDelay:n,repeatType:r,damping:i,type:o}=s;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return of()&&t&&rf.has(t)&&(t!=="transform"||!c)&&!l&&!n&&r!=="mirror"&&i!==0&&o!=="inertia"}const lf=40;class cf extends no{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Qe.now();const f={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},h=u?.KeyframeResolver||ro;this.keyframeResolver=new h(a,(p,b,v)=>this.onKeyframesResolved(p,b,f,!v),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=Qe.now(),nf(e,i,o,a)||((bt.instantAnimations||!l)&&u?.(so(e,n,t)),e[0]=e[e.length-1],wi(n),n.repeat=0);const f={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>lf?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},h=!c&&af(f)?new tf({...f,element:f.motionValue.owner.current}):new Jn(f);h.finished.then(()=>this.notifyFinished()).catch(et),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),Ud()),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()}}class uf{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){const t=this.animations.map(n=>n.attachTimeline(e));return()=>{t.forEach((n,r)=>{n&&n(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Yo(this.animations,"duration")}get iterationDuration(){return Yo(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Yo(s,e){let t=0;for(let n=0;n<s.length;n++){const r=s[n][e];r!==null&&r>t&&(t=r)}return t}class df extends uf{then(e,t){return this.finished.finally(e).then(()=>{})}}const ff=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hf(s){const e=ff.exec(s);if(!e)return[,];const[,t,n,r]=e;return[`--${t??n}`,r]}const mf=4;function Zl(s,e,t=1){Xe(t<=mf,`Max CSS variable fallback depth detected in property "${s}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,r]=hf(s);if(!n)return;const i=window.getComputedStyle(e).getPropertyValue(n);if(i){const o=i.trim();return gl(o)?parseFloat(o):o}return Xi(r)?Zl(r,e,t+1):r}function oo(s,e){return s?.[e]??s?.default??s}const Jl=new Set(["width","height","top","left","right","bottom",...ms]),pf={test:s=>s==="auto",parse:s=>s},Ql=s=>e=>e.test(s),ec=[hs,we,ht,Tt,ad,od,pf],Xo=s=>ec.find(Ql(s));function gf(s){return typeof s=="number"?s===0:s!==null?s==="none"||s==="0"||bl(s):!0}const yf=new Set(["brightness","contrast","saturate","opacity"]);function bf(s){const[e,t]=s.slice(0,-1).split("(");if(e==="drop-shadow")return s;const[n]=t.match(qi)||[];if(!n)return s;const r=t.replace(n,"");let i=yf.has(e)?1:0;return n!==t&&(i*=100),e+"("+i+r+")"}const vf=/\b([a-z-]*)\(.*?\)/gu,Ci={...At,getAnimatableNone:s=>{const e=s.match(vf);return e?e.map(bf).join(" "):s}},qo={...hs,transform:Math.round},xf={rotate:Tt,rotateX:Tt,rotateY:Tt,rotateZ:Tt,scale:An,scaleX:An,scaleY:An,scaleZ:An,skew:Tt,skewX:Tt,skewY:Tt,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:js,originX:Bo,originY:Bo,originZ:we},ao={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we,...xf,zIndex:qo,fillOpacity:js,strokeOpacity:js,numOctaves:qo},wf={...ao,color:$e,backgroundColor:$e,outlineColor:$e,fill:$e,stroke:$e,borderColor:$e,borderTopColor:$e,borderRightColor:$e,borderBottomColor:$e,borderLeftColor:$e,filter:Ci,WebkitFilter:Ci},tc=s=>wf[s];function sc(s,e){let t=tc(s);return t!==Ci&&(t=At),t.getAnimatableNone?t.getAnimatableNone(e):void 0}const Cf=new Set(["auto","none","0"]);function Sf(s,e,t){let n=0,r;for(;n<s.length&&!r;){const i=s[n];typeof i=="string"&&!Cf.has(i)&&Ns(i).values.length&&(r=s[n]),n++}if(r&&t)for(const i of e)s[i]=sc(t,r)}class Tf extends ro{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),Xi(c))){const u=Zl(c,t.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Jl.has(n)||e.length!==2)return;const[r,i]=e,o=Xo(r),a=Xo(i);if(o!==a)if(Go(o)&&Go(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else Dt[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let r=0;r<e.length;r++)(e[r]===null||gf(e[r]))&&n.push(r);n.length&&Sf(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Dt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const i=n.length-1,o=n[i];n[i]=Dt[t](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Qn(s,e,t){if(s instanceof EventTarget)return[s];if(typeof s=="string"){let n=document;const r=t?.[s]??n.querySelectorAll(s);return r?Array.from(r):[]}return Array.from(s)}const nc=(s,e)=>e&&typeof s=="number"?e.transform(s):s;function lo(s){return yl(s)&&"offsetHeight"in s}const Zo=30,kf=s=>!isNaN(parseFloat(s)),Ms={current:void 0};class Af{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const r=Qe.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Qe.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=kf(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Zn(!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 Gi);const n=this.events[e].add(t);return e==="change"?()=>{n(),Pe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const 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||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Ms.current&&Ms.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Qe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Zo)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,Zo);return Ui(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 ct(s,e){return new Af(s,e)}const{schedule:co}=Il(queueMicrotask,!1),lt={x:!1,y:!1};function rc(){return lt.x||lt.y}function Vf(s){return s==="x"||s==="y"?lt[s]?null:(lt[s]=!0,()=>{lt[s]=!1}):lt.x||lt.y?null:(lt.x=lt.y=!0,()=>{lt.x=lt.y=!1})}function ic(s,e){const t=Qn(s),n=new AbortController,r={passive:!0,...e,signal:n.signal};return[t,r,()=>n.abort()]}function Jo(s){return!(s.pointerType==="touch"||rc())}function Mf(s,e,t={}){const[n,r,i]=ic(s,t),o=a=>{if(!Jo(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=d=>{Jo(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,r)};return n.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}const oc=(s,e)=>e?s===e?!0:oc(s,e.parentElement):!1,uo=s=>s.pointerType==="mouse"?typeof s.button!="number"||s.button<=0:s.isPrimary!==!1,Pf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ef(s){return Pf.has(s.tagName)||s.tabIndex!==-1}const Bn=new WeakSet;function Qo(s){return e=>{e.key==="Enter"&&s(e)}}function qr(s,e){s.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const If=(s,e)=>{const t=s.currentTarget;if(!t)return;const n=Qo(()=>{if(Bn.has(t))return;qr(t,"down");const r=Qo(()=>{qr(t,"up")}),i=()=>qr(t,"cancel");t.addEventListener("keyup",r,e),t.addEventListener("blur",i,e)});t.addEventListener("keydown",n,e),t.addEventListener("blur",()=>t.removeEventListener("keydown",n),e)};function ea(s){return uo(s)&&!rc()}function Rf(s,e,t={}){const[n,r,i]=ic(s,t),o=a=>{const l=a.currentTarget;if(!ea(a))return;Bn.add(l);const c=e(l,a),u=(h,p)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Bn.has(l)&&Bn.delete(l),ea(h)&&typeof c=="function"&&c(h,{success:p})},d=h=>{u(h,l===window||l===document||t.useGlobalTarget||oc(l,h.target))},f=h=>{u(h,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return n.forEach(a=>{(t.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),lo(a)&&(a.addEventListener("focus",c=>If(c,r)),!Ef(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function er(s){return yl(s)&&"ownerSVGElement"in s}const Ln=new WeakMap;let On;const ac=(s,e,t)=>(n,r)=>r&&r[0]?r[0][s+"Size"]:er(n)&&"getBBox"in n?n.getBBox()[e]:n[t],jf=ac("inline","width","offsetWidth"),Nf=ac("block","height","offsetHeight");function Df({target:s,borderBoxSize:e}){Ln.get(s)?.forEach(t=>{t(s,{get width(){return jf(s,e)},get height(){return Nf(s,e)}})})}function Bf(s){s.forEach(Df)}function Lf(){typeof ResizeObserver>"u"||(On=new ResizeObserver(Bf))}function Of(s,e){On||Lf();const t=Qn(s);return t.forEach(n=>{let r=Ln.get(n);r||(r=new Set,Ln.set(n,r)),r.add(e),On?.observe(n)}),()=>{t.forEach(n=>{const r=Ln.get(n);r?.delete(e),r?.size||On?.unobserve(n)})}}const $n=new Set;let rs;function $f(){rs=()=>{const s={get width(){return window.innerWidth},get height(){return window.innerHeight}};$n.forEach(e=>e(s))},window.addEventListener("resize",rs)}function Ff(s){return $n.add(s),rs||$f(),()=>{$n.delete(s),!$n.size&&typeof rs=="function"&&(window.removeEventListener("resize",rs),rs=void 0)}}function zf(s,e){return typeof s=="function"?Ff(s):Of(s,e)}function lc(s,e){let t;const n=()=>{const{currentTime:r}=e,o=(r===null?0:r.value)/100;t!==o&&s(o),t=o};return Pe.preUpdate(n,!0),()=>ut(n)}function cc(s){return er(s)&&s.tagName==="svg"}function _f(...s){const e=!Array.isArray(s[0]),t=e?0:-1,n=s[0+t],r=s[1+t],i=s[2+t],o=s[3+t],a=eo(r,i,o);return e?a(n):a}const Fe=s=>!!(s&&s.getVelocity);function Wf(s,e,t){const n=s.get();let r=null,i=n,o;const a=typeof n=="string"?n.replace(/[\d.-]/g,""):void 0,l=()=>{r&&(r.stop(),r=null)},c=()=>{l(),r=new Jn({keyframes:[sa(s.get()),sa(i)],velocity:s.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:o})};if(s.attach((u,d)=>{i=u,o=f=>d(ta(f,a)),Pe.postRender(c)},l),Fe(e)){const u=e.on("change",f=>s.set(ta(f,a))),d=s.on("destroy",u);return()=>{u(),d()}}return l}function ta(s,e){return e?s+e:s}function sa(s){return typeof s=="number"?s:parseFloat(s)}const Gf=[...ec,$e,At],Uf=s=>Gf.find(Ql(s)),Us=I.createContext({transformPagePoint:s=>s,isStatic:!1,reducedMotion:"never"});function na(s,e){if(typeof s=="function")return s(e);s!=null&&(s.current=e)}function Hf(...s){return e=>{let t=!1;const n=s.map(r=>{const i=na(r,e);return!t&&typeof i=="function"&&(t=!0),i});if(t)return()=>{for(let r=0;r<n.length;r++){const i=n[r];typeof i=="function"?i():na(s[r],null)}}}}function Kf(...s){return Yn.useCallback(Hf(...s),s)}class Yf extends Yn.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const n=t.offsetParent,r=lo(n)&&n.offsetWidth||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Xf({children:s,isPresent:e,anchorX:t,root:n}){const r=I.useId(),i=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(Us),l=Kf(i,s?.ref);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:f,right:h}=o.current;if(e||!i.current||!c||!u)return;const p=t==="left"?`left: ${f}`:`right: ${h}`;i.current.dataset.motionPopId=r;const b=document.createElement("style");a&&(b.nonce=a);const v=n??document.head;return v.appendChild(b),b.sheet&&b.sheet.insertRule(`
22
+ [data-motion-pop-id="${r}"] {
23
+ position: absolute !important;
24
+ width: ${c}px !important;
25
+ height: ${u}px !important;
26
+ ${p}px !important;
27
+ top: ${d}px !important;
28
+ }
29
+ `),()=>{v.contains(b)&&v.removeChild(b)}},[e]),B.jsx(Yf,{isPresent:e,childRef:i,sizeRef:o,children:Yn.cloneElement(s,{ref:l})})}const qf=({children:s,initial:e,isPresent:t,onExitComplete:n,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a,root:l})=>{const c=Ot(Zf),u=I.useId();let d=!0,f=I.useMemo(()=>(d=!1,{id:u,initial:e,isPresent:t,custom:r,onExitComplete:h=>{c.set(h,!0);for(const p of c.values())if(!p)return;n&&n()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[t,c,n]);return i&&d&&(f={...f}),I.useMemo(()=>{c.forEach((h,p)=>c.set(p,!1))},[t]),Yn.useEffect(()=>{!t&&!c.size&&n&&n()},[t]),o==="popLayout"&&(s=B.jsx(Xf,{isPresent:t,anchorX:a,root:l,children:s})),B.jsx(Xn.Provider,{value:f,children:s})};function Zf(){return new Map}function uc(s=!0){const e=I.useContext(Xn);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=I.useId();I.useEffect(()=>{if(s)return r(i)},[s]);const o=I.useCallback(()=>s&&n&&n(i),[i,n,s]);return!t&&n?[!1,o]:[!0]}const Vn=s=>s.key||"";function ra(s){const e=[];return I.Children.forEach(s,t=>{I.isValidElement(t)&&e.push(t)}),e}const Hs=({children:s,custom:e,initial:t=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[c,u]=uc(o),d=I.useMemo(()=>ra(s),[s]),f=o&&!c?[]:d.map(Vn),h=I.useRef(!0),p=I.useRef(d),b=Ot(()=>new Map),[v,S]=I.useState(d),[m,y]=I.useState(d);zs(()=>{h.current=!1,p.current=d;for(let x=0;x<m.length;x++){const k=Vn(m[x]);f.includes(k)?b.delete(k):b.get(k)!==!0&&b.set(k,!1)}},[m,f.length,f.join("-")]);const g=[];if(d!==v){let x=[...d];for(let k=0;k<m.length;k++){const C=m[k],E=Vn(C);f.includes(E)||(x.splice(k,0,C),g.push(C))}return i==="wait"&&g.length&&(x=g),y(ra(x)),S(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&m.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:w}=I.useContext(Fi);return B.jsx(B.Fragment,{children:m.map(x=>{const k=Vn(x),C=o&&!c?!1:d===m||f.includes(k),E=()=>{if(b.has(k))b.set(k,!0);else return;let j=!0;b.forEach(N=>{N||(j=!1)}),j&&(w?.(),y(p.current),o&&u?.(),n&&n())};return B.jsx(qf,{isPresent:C,initial:!h.current||t?void 0:!1,custom:e,presenceAffectsLayout:r,mode:i,root:l,onExitComplete:C?void 0:E,anchorX:a,children:x},k)})})},dc=I.createContext({strict:!1}),ia={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"]},us={};for(const s in ia)us[s]={isEnabled:e=>ia[s].some(t=>!!e[t])};function Jf(s){for(const e in s)us[e]={...us[e],...s[e]}}const Qf=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","ignoreStrict","viewport"]);function Gn(s){return s.startsWith("while")||s.startsWith("drag")&&s!=="draggable"||s.startsWith("layout")||s.startsWith("onTap")||s.startsWith("onPan")||s.startsWith("onLayout")||Qf.has(s)}let fc=s=>!Gn(s);function eh(s){typeof s=="function"&&(fc=e=>e.startsWith("on")?!Gn(e):s(e))}try{eh(require("@emotion/is-prop-valid").default)}catch{}function th(s,e,t){const n={};for(const r in s)r==="values"&&typeof s.values=="object"||(fc(r)||t===!0&&Gn(r)||!e&&!Gn(r)||s.draggable&&r.startsWith("onDrag"))&&(n[r]=s[r]);return n}const tr=I.createContext({});function sr(s){return s!==null&&typeof s=="object"&&typeof s.start=="function"}function Bs(s){return typeof s=="string"||Array.isArray(s)}const fo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ho=["initial",...fo];function nr(s){return sr(s.animate)||ho.some(e=>Bs(s[e]))}function hc(s){return!!(nr(s)||s.variants)}function sh(s,e){if(nr(s)){const{initial:t,animate:n}=s;return{initial:t===!1||Bs(t)?t:void 0,animate:Bs(n)?n:void 0}}return s.inherit!==!1?e:{}}function nh(s){const{initial:e,animate:t}=sh(s,I.useContext(tr));return I.useMemo(()=>({initial:e,animate:t}),[oa(e),oa(t)])}function oa(s){return Array.isArray(s)?s.join(" "):s}const Ls={};function rh(s){for(const e in s)Ls[e]=s[e],Yi(e)&&(Ls[e].isCSSVariable=!0)}function mc(s,{layout:e,layoutId:t}){return ps.has(s)||s.startsWith("origin")||(e||t!==void 0)&&(!!Ls[s]||s==="opacity")}const ih={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oh=ms.length;function ah(s,e,t){let n="",r=!0;for(let i=0;i<oh;i++){const o=ms[i],a=s[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||t){const c=nc(a,ao[o]);if(!l){r=!1;const u=ih[o]||o;n+=`${u}(${c}) `}t&&(e[o]=c)}}return n=n.trim(),t?n=t(e,r?"":n):r&&(n="none"),n}function mo(s,e,t){const{style:n,vars:r,transformOrigin:i}=s;let o=!1,a=!1;for(const l in e){const c=e[l];if(ps.has(l)){o=!0;continue}else if(Yi(l)){r[l]=c;continue}else{const u=nc(c,ao[l]);l.startsWith("origin")?(a=!0,i[l]=u):n[l]=u}}if(e.transform||(o||t?n.transform=ah(e,s.transform,t):n.transform&&(n.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;n.transformOrigin=`${l} ${c} ${u}`}}const po=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pc(s,e,t){for(const n in e)!Fe(e[n])&&!mc(n,t)&&(s[n]=e[n])}function lh({transformTemplate:s},e){return I.useMemo(()=>{const t=po();return mo(t,e,s),Object.assign({},t.vars,t.style)},[e])}function ch(s,e){const t=s.style||{},n={};return pc(n,t,s),Object.assign(n,lh(s,e)),n}function uh(s,e){const t={},n=ch(s,e);return s.drag&&s.dragListener!==!1&&(t.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=s.drag===!0?"none":`pan-${s.drag==="x"?"y":"x"}`),s.tabIndex===void 0&&(s.onTap||s.onTapStart||s.whileTap)&&(t.tabIndex=0),t.style=n,t}const dh={offset:"stroke-dashoffset",array:"stroke-dasharray"},fh={offset:"strokeDashoffset",array:"strokeDasharray"};function hh(s,e,t=1,n=0,r=!0){s.pathLength=1;const i=r?dh:fh;s[i.offset]=we.transform(-n);const o=we.transform(e),a=we.transform(t);s[i.array]=`${o} ${a}`}function gc(s,{attrX:e,attrY:t,attrScale:n,pathLength:r,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(mo(s,a,c),l){s.style.viewBox&&(s.attrs.viewBox=s.style.viewBox);return}s.attrs=s.style,s.style={};const{attrs:d,style:f}=s;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),e!==void 0&&(d.x=e),t!==void 0&&(d.y=t),n!==void 0&&(d.scale=n),r!==void 0&&hh(d,r,i,o,!1)}const yc=()=>({...po(),attrs:{}}),bc=s=>typeof s=="string"&&s.toLowerCase()==="svg";function mh(s,e,t,n){const r=I.useMemo(()=>{const i=yc();return gc(i,e,bc(n),s.transformTemplate,s.style),{...i.attrs,style:{...i.style}}},[e]);if(s.style){const i={};pc(i,s.style,s),r.style={...i,...r.style}}return r}const ph=["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 go(s){return typeof s!="string"||s.includes("-")?!1:!!(ph.indexOf(s)>-1||/[A-Z]/u.test(s))}function gh(s,e,t,{latestValues:n},r,i=!1){const a=(go(s)?mh:uh)(e,n,r,s),l=th(e,typeof s=="string",i),c=s!==I.Fragment?{...l,...a,ref:t}:{},{children:u}=e,d=I.useMemo(()=>Fe(u)?u.get():u,[u]);return I.createElement(s,{...c,children:d})}function aa(s){const e=[{},{}];return s?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function yo(s,e,t,n){if(typeof e=="function"){const[r,i]=aa(n);e=e(t!==void 0?t:s.custom,r,i)}if(typeof e=="string"&&(e=s.variants&&s.variants[e]),typeof e=="function"){const[r,i]=aa(n);e=e(t!==void 0?t:s.custom,r,i)}return e}function Fn(s){return Fe(s)?s.get():s}function yh({scrapeMotionValuesFromProps:s,createRenderState:e},t,n,r){return{latestValues:bh(t,n,r,s),renderState:e()}}function bh(s,e,t,n){const r={},i=n(s,{});for(const f in i)r[f]=Fn(i[f]);let{initial:o,animate:a}=s;const l=nr(s),c=hc(s);e&&c&&!l&&s.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=t?t.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!sr(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const p=yo(s,f[h]);if(p){const{transitionEnd:b,transition:v,...S}=p;for(const m in S){let y=S[m];if(Array.isArray(y)){const g=u?y.length-1:0;y=y[g]}y!==null&&(r[m]=y)}for(const m in b)r[m]=b[m]}}}return r}const vc=s=>(e,t)=>{const n=I.useContext(tr),r=I.useContext(Xn),i=()=>yh(s,e,n,r);return t?i():Ot(i)};function bo(s,e,t){const{style:n}=s,r={};for(const i in n)(Fe(n[i])||e.style&&Fe(e.style[i])||mc(i,s)||t?.getValue(i)?.liveStyle!==void 0)&&(r[i]=n[i]);return r}const vh=vc({scrapeMotionValuesFromProps:bo,createRenderState:po});function xc(s,e,t){const n=bo(s,e,t);for(const r in s)if(Fe(s[r])||Fe(e[r])){const i=ms.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=s[r]}return n}const xh=vc({scrapeMotionValuesFromProps:xc,createRenderState:yc}),wh=Symbol.for("motionComponentSymbol");function is(s){return s&&typeof s=="object"&&Object.prototype.hasOwnProperty.call(s,"current")}function Ch(s,e,t){return I.useCallback(n=>{n&&s.onMount&&s.onMount(n),e&&(n?e.mount(n):e.unmount()),t&&(typeof t=="function"?t(n):is(t)&&(t.current=n))},[e])}const vo=s=>s.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Sh="framerAppearId",wc="data-"+vo(Sh),Cc=I.createContext({});function Th(s,e,t,n,r){const{visualElement:i}=I.useContext(tr),o=I.useContext(dc),a=I.useContext(Xn),l=I.useContext(Us).reducedMotion,c=I.useRef(null);n=n||o.renderer,!c.current&&n&&(c.current=n(s,{visualState:e,parent:i,props:t,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=I.useContext(Cc);u&&!u.projection&&r&&(u.type==="html"||u.type==="svg")&&kh(c.current,t,r,d);const f=I.useRef(!1);I.useInsertionEffect(()=>{u&&f.current&&u.update(t,a)});const h=t[wc],p=I.useRef(!!h&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return zs(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),p.current&&u.animationState&&u.animationState.animateChanges())}),I.useEffect(()=>{u&&(!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),p.current=!1),u.enteringChildren=void 0)}),u}function kh(s,e,t,n){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;s.projection=new t(s.latestValues,e["data-framer-portal-id"]?void 0:Sc(s.parent)),s.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&is(a),visualElement:s,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}function Sc(s){if(s)return s.options.allowProjection!==!1?s.projection:Sc(s.parent)}function Zr(s,{forwardMotionProps:e=!1}={},t,n){t&&Jf(t);const r=go(s)?xh:vh;function i(a,l){let c;const u={...I.useContext(Us),...a,layoutId:Ah(a)},{isStatic:d}=u,f=nh(a),h=r(a,d);if(!d&&zi){Vh(u,t);const p=Mh(u);c=p.MeasureLayout,f.visualElement=Th(s,h,u,n,p.ProjectionNode)}return B.jsxs(tr.Provider,{value:f,children:[c&&f.visualElement?B.jsx(c,{visualElement:f.visualElement,...u}):null,gh(s,a,Ch(h,f.visualElement,l),h,d,e)]})}i.displayName=`motion.${typeof s=="string"?s:`create(${s.displayName??s.name??""})`}`;const o=I.forwardRef(i);return o[wh]=s,o}function Ah({layoutId:s}){const e=I.useContext(Fi).id;return e&&s!==void 0?e+"-"+s:s}function Vh(s,e){const t=I.useContext(dc).strict;if(process.env.NODE_ENV!=="production"&&e&&t){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";s.ignoreStrict?fs(!1,n,"lazy-strict-mode"):Xe(!1,n,"lazy-strict-mode")}}function Mh(s){const{drag:e,layout:t}=us;if(!e&&!t)return{};const n={...e,...t};return{MeasureLayout:e?.isEnabled(s)||t?.isEnabled(s)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function Ph(s,e){if(typeof Proxy>"u")return Zr;const t=new Map,n=(i,o)=>Zr(i,o,s,e),r=(i,o)=>(process.env.NODE_ENV!=="production"&&Zn(!1,"motion() is deprecated. Use motion.create() instead."),n(i,o));return new Proxy(r,{get:(i,o)=>o==="create"?n:(t.has(o)||t.set(o,Zr(o,void 0,s,e)),t.get(o))})}function Tc({top:s,left:e,right:t,bottom:n}){return{x:{min:e,max:t},y:{min:s,max:n}}}function Eh({x:s,y:e}){return{top:e.min,right:s.max,bottom:e.max,left:s.min}}function Ih(s,e){if(!e)return s;const t=e({x:s.left,y:s.top}),n=e({x:s.right,y:s.bottom});return{top:t.y,left:t.x,bottom:n.y,right:n.x}}function Jr(s){return s===void 0||s===1}function Si({scale:s,scaleX:e,scaleY:t}){return!Jr(s)||!Jr(e)||!Jr(t)}function Rt(s){return Si(s)||kc(s)||s.z||s.rotate||s.rotateX||s.rotateY||s.skewX||s.skewY}function kc(s){return la(s.x)||la(s.y)}function la(s){return s&&s!=="0%"}function Un(s,e,t){const n=s-t,r=e*n;return t+r}function ca(s,e,t,n,r){return r!==void 0&&(s=Un(s,r,n)),Un(s,t,n)+e}function Ti(s,e=0,t=1,n,r){s.min=ca(s.min,e,t,n,r),s.max=ca(s.max,e,t,n,r)}function Ac(s,{x:e,y:t}){Ti(s.x,e.translate,e.scale,e.originPoint),Ti(s.y,t.translate,t.scale,t.originPoint)}const ua=.999999999999,da=1.0000000000001;function Rh(s,e,t,n=!1){const r=t.length;if(!r)return;e.x=e.y=1;let i,o;for(let a=0;a<r;a++){i=t[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&as(s,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Ac(s,o)),n&&Rt(i.latestValues)&&as(s,i.latestValues))}e.x<da&&e.x>ua&&(e.x=1),e.y<da&&e.y>ua&&(e.y=1)}function os(s,e){s.min=s.min+e,s.max=s.max+e}function fa(s,e,t,n,r=.5){const i=je(s.min,s.max,r);Ti(s,e,t,i,n)}function as(s,e){fa(s.x,e.x,e.scaleX,e.scale,e.originX),fa(s.y,e.y,e.scaleY,e.scale,e.originY)}function Vc(s,e){return Tc(Ih(s.getBoundingClientRect(),e))}function jh(s,e,t){const n=Vc(s,t),{scroll:r}=e;return r&&(os(n.x,r.offset.x),os(n.y,r.offset.y)),n}const ha=()=>({translate:0,scale:1,origin:0,originPoint:0}),ls=()=>({x:ha(),y:ha()}),ma=()=>({min:0,max:0}),Be=()=>({x:ma(),y:ma()}),ki={current:null},Mc={current:!1};function Nh(){if(Mc.current=!0,!!zi)if(window.matchMedia){const s=window.matchMedia("(prefers-reduced-motion)"),e=()=>ki.current=s.matches;s.addEventListener("change",e),e()}else ki.current=!1}const Os=new WeakMap;function Dh(s,e,t){for(const n in e){const r=e[n],i=t[n];if(Fe(r))s.addValue(n,r);else if(Fe(i))s.addValue(n,ct(r,{owner:s}));else if(i!==r)if(s.hasValue(n)){const o=s.getValue(n);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=s.getStaticValue(n);s.addValue(n,ct(o!==void 0?o:r,{owner:s}))}}for(const n in t)e[n]===void 0&&s.removeValue(n);return e}const pa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Pc{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ro,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Qe.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Pe.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=nr(t),this.isVariantNode=hc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const f in d){const h=d[f];l[f]!==void 0&&Fe(h)&&h.set(l[f])}}mount(e){this.current=e,Os.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((t,n)=>this.bindToMotionValue(n,t)),Mc.current||Nh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ki.current,process.env.NODE_ENV!=="production"&&Zn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ut(this.notifyUpdate),ut(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=ps.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Pe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;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 us){const t=us[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Be()}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 n=0;n<pa.length;n++){const r=pa[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=e[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=Dh(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const 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);const 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=ct(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"&&(gl(n)||bl(n))?n=parseFloat(n):!Uf(n)&&At.test(t)&&(n=sc(e,t)),this.setBaseTarget(e,Fe(n)?n.get():n)),Fe(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if(typeof t=="string"||typeof t=="object"){const i=yo(this.props,t,this.presenceContext?.custom);i&&(n=i[e])}if(t&&n!==void 0)return n;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Fe(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 Gi),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){co.render(this.render)}}class Ec extends Pc{constructor(){super(...arguments),this.KeyframeResolver=Tf}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Fe(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function Ic(s,{style:e,vars:t},n,r){const i=s.style;let o;for(o in e)i[o]=e[o];r?.applyProjectionStyles(i,n);for(o in t)i.setProperty(o,t[o])}function Bh(s){return window.getComputedStyle(s)}class Rc extends Ec{constructor(){super(...arguments),this.type="html",this.renderInstance=Ic}readValueFromInstance(e,t){if(ps.has(t))return this.projection?.isProjecting?gi(t):Fd(e,t);{const n=Bh(e),r=(Yi(t)?n.getPropertyValue(t):n[t])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Vc(e,t)}build(e,t,n){mo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return bo(e,t,n)}}const jc=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"]);function Lh(s,e,t,n){Ic(s,e,void 0,n);for(const r in e.attrs)s.setAttribute(jc.has(r)?r:vo(r),e.attrs[r])}class Nc extends Ec{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Be}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ps.has(t)){const n=tc(t);return n&&n.default||0}return t=jc.has(t)?t:vo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return xc(e,t,n)}build(e,t,n){gc(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Lh(e,t,n,r)}mount(e){this.isSVGTag=bc(e.tagName),super.mount(e)}}const Oh=(s,e)=>go(s)?new Nc(e):new Rc(e,{allowProjection:s!==I.Fragment});function cs(s,e,t){const n=s.getProps();return yo(n,e,t!==void 0?t:n.custom,s)}const Ai=s=>Array.isArray(s);function $h(s,e,t){s.hasValue(e)?s.getValue(e).set(t):s.addValue(e,ct(t))}function Fh(s){return Ai(s)?s[s.length-1]||0:s}function xo(s,e){const t=cs(s,e);let{transitionEnd:n={},transition:r={},...i}=t||{};i={...i,...n};for(const o in i){const a=Fh(i[o]);$h(s,o,a)}}function zh(s){return!!(Fe(s)&&s.add)}function Vi(s,e){const t=s.getValue("willChange");if(zh(t))return t.add(e);if(!t&&bt.WillChange){const n=new bt.WillChange("auto");s.addValue("willChange",n),n.add(e)}}function Dc(s){return s.props[wc]}const _h=s=>s!==null;function Wh(s,{repeat:e,repeatType:t="loop"},n){const r=s.filter(_h),i=e&&t!=="loop"&&e%2===1?0:r.length-1;return r[i]}const Gh={type:"spring",stiffness:500,damping:25,restSpeed:10},Uh=s=>({type:"spring",stiffness:550,damping:s===0?2*Math.sqrt(550):30,restSpeed:10}),Hh={type:"keyframes",duration:.8},Kh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yh=(s,{keyframes:e})=>e.length>2?Hh:ps.has(s)?s.startsWith("scale")?Uh(e[1]):Gh:Kh;function Xh({when:s,delay:e,delayChildren:t,staggerChildren:n,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const wo=(s,e,t,n={},r,i)=>o=>{const a=oo(n,s)||{},l=a.delay||n.delay||0;let{elapsed:c=0}=n;c=c-at(l);const u={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:s,motionValue:e,element:i?void 0:r};Xh(a)||Object.assign(u,Yh(s,u)),u.duration&&(u.duration=at(u.duration)),u.repeatDelay&&(u.repeatDelay=at(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(wi(u),u.delay===0&&(d=!0)),(bt.instantAnimations||bt.skipAnimations)&&(d=!0,wi(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&e.get()!==void 0){const f=Wh(u.keyframes,a);if(f!==void 0){Pe.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new Jn(u):new cf(u)};function qh({protectedKeys:s,needsAnimating:e},t){const n=s.hasOwnProperty(t)&&e[t]!==!0;return e[t]=!1,n}function Co(s,e,{delay:t=0,transitionOverride:n,type:r}={}){let{transition:i=s.getDefaultTransition(),transitionEnd:o,...a}=e;n&&(i=n);const l=[],c=r&&s.animationState&&s.animationState.getState()[r];for(const u in a){const d=s.getValue(u,s.latestValues[u]??null),f=a[u];if(f===void 0||c&&qh(c,u))continue;const h={delay:t,...oo(i||{},u)},p=d.get();if(p!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===p&&!h.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const S=Dc(s);if(S){const m=window.MotionHandoffAnimation(S,u,Pe);m!==null&&(h.startTime=m,b=!0)}}Vi(s,u),d.start(wo(u,d,f,s.shouldReduceMotion&&Jl.has(u)?{type:!1}:h,s,b));const v=d.animation;v&&l.push(v)}return o&&Promise.all(l).then(()=>{Pe.update(()=>{o&&xo(s,o)})}),l}function Bc(s,e,t,n=0,r=1){const i=Array.from(s).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),o=s.size,a=(o-1)*n;return typeof t=="function"?t(i,o):r===1?i*n:a-i*n}function Mi(s,e,t={}){const n=cs(s,e,t.type==="exit"?s.presenceContext?.custom:void 0);let{transition:r=s.getDefaultTransition()||{}}=n||{};t.transitionOverride&&(r=t.transitionOverride);const i=n?()=>Promise.all(Co(s,n,t)):()=>Promise.resolve(),o=s.variantChildren&&s.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=r;return Zh(s,e,l,c,u,d,t)}:()=>Promise.resolve(),{when:a}=r;if(a){const[l,c]=a==="beforeChildren"?[i,o]:[o,i];return l().then(()=>c())}else return Promise.all([i(),o(t.delay)])}function Zh(s,e,t=0,n=0,r=0,i=1,o){const a=[];for(const l of s.variantChildren)l.notify("AnimationStart",e),a.push(Mi(l,e,{...o,delay:t+(typeof n=="function"?0:n)+Bc(s.variantChildren,l,n,r,i)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Lc(s,e,t={}){s.notify("AnimationStart",e);let n;if(Array.isArray(e)){const r=e.map(i=>Mi(s,i,t));n=Promise.all(r)}else if(typeof e=="string")n=Mi(s,e,t);else{const r=typeof e=="function"?cs(s,e,t.custom):e;n=Promise.all(Co(s,r,t))}return n.then(()=>{s.notify("AnimationComplete",e)})}function Oc(s,e){if(!Array.isArray(e))return!1;const t=e.length;if(t!==s.length)return!1;for(let n=0;n<t;n++)if(e[n]!==s[n])return!1;return!0}const Jh=ho.length;function $c(s){if(!s)return;if(!s.isControllingVariants){const t=s.parent?$c(s.parent)||{}:{};return s.props.initial!==void 0&&(t.initial=s.props.initial),t}const e={};for(let t=0;t<Jh;t++){const n=ho[t],r=s.props[n];(Bs(r)||r===!1)&&(e[n]=r)}return e}const Qh=[...fo].reverse(),em=fo.length;function tm(s){return e=>Promise.all(e.map(({animation:t,options:n})=>Lc(s,t,n)))}function sm(s){let e=tm(s),t=ga(),n=!0;const r=l=>(c,u)=>{const d=cs(s,u,l==="exit"?s.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:h,...p}=d;c={...c,...p,...h}}return c};function i(l){e=l(s)}function o(l){const{props:c}=s,u=$c(s.parent)||{},d=[],f=new Set;let h={},p=1/0;for(let v=0;v<em;v++){const S=Qh[v],m=t[S],y=c[S]!==void 0?c[S]:u[S],g=Bs(y),w=S===l?m.isActive:null;w===!1&&(p=v);let x=y===u[S]&&y!==c[S]&&g;if(x&&n&&s.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...h},!m.isActive&&w===null||!y&&!m.prevProp||sr(y)||typeof y=="boolean")continue;const k=nm(m.prevProp,y);let C=k||S===l&&m.isActive&&!x&&g||v>p&&g,E=!1;const j=Array.isArray(y)?y:[y];let N=j.reduce(r(S),{});w===!1&&(N={});const{prevResolvedValues:L={}}=m,D={...L,...N},V=M=>{C=!0,f.has(M)&&(E=!0,f.delete(M)),m.needsAnimating[M]=!0;const T=s.getValue(M);T&&(T.liveStyle=!1)};for(const M in D){const T=N[M],R=L[M];if(h.hasOwnProperty(M))continue;let F=!1;Ai(T)&&Ai(R)?F=!Oc(T,R):F=T!==R,F?T!=null?V(M):f.add(M):T!==void 0&&f.has(M)?V(M):m.protectedKeys[M]=!0}m.prevProp=y,m.prevResolvedValues=N,m.isActive&&(h={...h,...N}),n&&s.blockInitialAnimation&&(C=!1);const A=x&&k;C&&(!A||E)&&d.push(...j.map(M=>{const T={type:S};if(typeof M=="string"&&n&&!A&&s.manuallyAnimateOnMount&&s.parent){const{parent:R}=s,F=cs(R,M);if(R.enteringChildren&&F){const{delayChildren:z}=F.transition||{};T.delay=Bc(R.enteringChildren,s,z)}}return{animation:M,options:T}}))}if(f.size){const v={};if(typeof c.initial!="boolean"){const S=cs(s,Array.isArray(c.initial)?c.initial[0]:c.initial);S&&S.transition&&(v.transition=S.transition)}f.forEach(S=>{const m=s.getBaseTarget(S),y=s.getValue(S);y&&(y.liveStyle=!0),v[S]=m??null}),d.push({animation:v})}let b=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!s.manuallyAnimateOnMount&&(b=!1),n=!1,b?e(d):Promise.resolve()}function a(l,c){if(t[l].isActive===c)return Promise.resolve();s.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),t[l].isActive=c;const u=o(l);for(const d in t)t[d].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>t,reset:()=>{t=ga()}}}function nm(s,e){return typeof e=="string"?e!==s:Array.isArray(e)?!Oc(e,s):!1}function Et(s=!1){return{isActive:s,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ga(){return{animate:Et(!0),whileInView:Et(),whileHover:Et(),whileTap:Et(),whileDrag:Et(),whileFocus:Et(),exit:Et()}}class Vt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rm extends Vt{constructor(e){super(e),e.animationState||(e.animationState=sm(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();sr(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let im=0;class om extends Vt{constructor(){super(...arguments),this.id=im++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const am={animation:{Feature:rm},exit:{Feature:om}};function $s(s,e,t,n={passive:!0}){return s.addEventListener(e,t,n),()=>s.removeEventListener(e,t)}function Ks(s){return{point:{x:s.pageX,y:s.pageY}}}const lm=s=>e=>uo(e)&&s(e,Ks(e));function Ps(s,e,t,n){return $s(s,e,lm(t),n)}const Fc=1e-4,cm=1-Fc,um=1+Fc,zc=.01,dm=0-zc,fm=0+zc;function qe(s){return s.max-s.min}function hm(s,e,t){return Math.abs(s-e)<=t}function ya(s,e,t,n=.5){s.origin=n,s.originPoint=je(e.min,e.max,s.origin),s.scale=qe(t)/qe(e),s.translate=je(t.min,t.max,s.origin)-s.originPoint,(s.scale>=cm&&s.scale<=um||isNaN(s.scale))&&(s.scale=1),(s.translate>=dm&&s.translate<=fm||isNaN(s.translate))&&(s.translate=0)}function Es(s,e,t,n){ya(s.x,e.x,t.x,n?n.originX:void 0),ya(s.y,e.y,t.y,n?n.originY:void 0)}function ba(s,e,t){s.min=t.min+e.min,s.max=s.min+qe(e)}function mm(s,e,t){ba(s.x,e.x,t.x),ba(s.y,e.y,t.y)}function va(s,e,t){s.min=e.min-t.min,s.max=s.min+qe(e)}function Is(s,e,t){va(s.x,e.x,t.x),va(s.y,e.y,t.y)}function it(s){return[s("x"),s("y")]}const _c=({current:s})=>s?s.ownerDocument.defaultView:null,xa=(s,e)=>Math.abs(s-e);function pm(s,e){const t=xa(s.x,e.x),n=xa(s.y,e.y);return Math.sqrt(t**2+n**2)}class Wc{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ei(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=pm(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!p)return;const{point:b}=f,{timestamp:v}=Ue;this.history.push({...b,timestamp:v});const{onStart:S,onMove:m}=this.handlers;h||(S&&S(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Qr(h,this.transformPagePoint),Pe.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:p,onSessionEnd:b,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=ei(f.type==="pointercancel"?this.lastMoveEventInfo:Qr(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,S),b&&b(f,S)},!uo(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const a=Ks(e),l=Qr(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=Ue;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=t;d&&d(e,ei(l,this.history)),this.removeListeners=_s(Ps(this.contextWindow,"pointermove",this.handlePointerMove),Ps(this.contextWindow,"pointerup",this.handlePointerUp),Ps(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ut(this.updatePoint)}}function Qr(s,e){return e?{point:e(s.point)}:s}function wa(s,e){return{x:s.x-e.x,y:s.y-e.y}}function ei({point:s},e){return{point:s,delta:wa(s,Gc(e)),offset:wa(s,gm(e)),velocity:ym(e,.1)}}function gm(s){return s[0]}function Gc(s){return s[s.length-1]}function ym(s,e){if(s.length<2)return{x:0,y:0};let t=s.length-1,n=null;const r=Gc(s);for(;t>=0&&(n=s[t],!(r.timestamp-n.timestamp>at(e)));)t--;if(!n)return{x:0,y:0};const i=ot(r.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function bm(s,{min:e,max:t},n){return e!==void 0&&s<e?s=n?je(e,s,n.min):Math.max(s,e):t!==void 0&&s>t&&(s=n?je(t,s,n.max):Math.min(s,t)),s}function Ca(s,e,t){return{min:e!==void 0?s.min+e:void 0,max:t!==void 0?s.max+t-(s.max-s.min):void 0}}function vm(s,{top:e,left:t,bottom:n,right:r}){return{x:Ca(s.x,t,r),y:Ca(s.y,e,n)}}function Sa(s,e){let t=e.min-s.min,n=e.max-s.max;return e.max-e.min<s.max-s.min&&([t,n]=[n,t]),{min:t,max:n}}function xm(s,e){return{x:Sa(s.x,e.x),y:Sa(s.y,e.y)}}function wm(s,e){let t=.5;const n=qe(s),r=qe(e);return r>n?t=Lt(e.min,e.max-n,s.min):n>r&&(t=Lt(s.min,s.max-r,e.min)),mt(0,1,t)}function Cm(s,e){const t={};return e.min!==void 0&&(t.min=e.min-s.min),e.max!==void 0&&(t.max=e.max-s.min),t}const Pi=.35;function Sm(s=Pi){return s===!1?s=0:s===!0&&(s=Pi),{x:Ta(s,"left","right"),y:Ta(s,"top","bottom")}}function Ta(s,e,t){return{min:ka(s,e),max:ka(s,t)}}function ka(s,e){return typeof s=="number"?s:s[e]||0}const Tm=new WeakMap;class km{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Be(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Ks(d).point)},o=(d,f)=>{const{drag:h,dragPropagation:p,onDragStart:b}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vf(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),it(S=>{let m=this.getAxisMotionValue(S).get()||0;if(ht.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const g=y.layout.layoutBox[S];g&&(m=qe(g)*(parseFloat(m)/100))}}this.originPoint[S]=m}),b&&Pe.postRender(()=>b(d,f)),Vi(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:b,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:S}=f;if(p&&this.currentDirection===null){this.currentDirection=Am(S),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),v&&v(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>it(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Wc(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:_c(this.visualElement)})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Pe.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Mn(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=bm(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&is(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=vm(n.layoutBox,e):this.constraints=!1,this.elastic=Sm(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&it(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Cm(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!is(e))return!1;const n=e.current;Xe(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=jh(n,r.root,this.visualElement.getTransformPagePoint());let o=xm(r.layout.layoutBox,i);if(t){const a=t(Eh(o));this.hasMutatedConstraints=!!a,a&&(o=Tc(a))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=it(u=>{if(!Mn(u,t,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const f=r?200:1e6,h=r?40:1e7,p={type:"inertia",velocity:n?e[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Vi(this.visualElement,e),n.start(wo(e,n,0,t,this.visualElement,!1))}stopAnimation(){it(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){it(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){it(t=>{const{drag:n}=this.getProps();if(!Mn(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[t];i.set(e[t]-je(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!is(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};it(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();r[o]=wm({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),it(o=>{if(!Mn(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(je(l,c,r[o]))})}addListeners(){if(!this.visualElement.current)return;Tm.set(this.visualElement,this);const e=this.visualElement.current,t=Ps(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();is(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Pe.read(n);const o=$s(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(it(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())}));return()=>{o(),t(),i(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=Pi,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Mn(s,e,t){return(e===!0||e===s)&&(t===null||t===s)}function Am(s,e=10){let t=null;return Math.abs(s.y)>e?t="y":Math.abs(s.x)>e&&(t="x"),t}class Vm extends Vt{constructor(e){super(e),this.removeGroupControls=et,this.removeListeners=et,this.controls=new km(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||et}unmount(){this.removeGroupControls(),this.removeListeners()}}const Aa=s=>(e,t)=>{s&&Pe.postRender(()=>s(e,t))};class Mm extends Vt{constructor(){super(...arguments),this.removePointerDownListener=et}onPointerDown(e){this.session=new Wc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_c(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Aa(e),onStart:Aa(t),onMove:n,onEnd:(i,o)=>{delete this.session,r&&Pe.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=Ps(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const zn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Va(s,e){return e.max===e.min?0:s/(e.max-e.min)*100}const Cs={correct:(s,e)=>{if(!e.target)return s;if(typeof s=="string")if(we.test(s))s=parseFloat(s);else return s;const t=Va(s,e.target.x),n=Va(s,e.target.y);return`${t}% ${n}%`}},Pm={correct:(s,{treeScale:e,projectionDelta:t})=>{const n=s,r=At.parse(s);if(r.length>5)return n;const i=At.createTransformer(s),o=typeof r[0]!="number"?1:0,a=t.x.scale*e.x,l=t.y.scale*e.y;r[0+o]/=a,r[1+o]/=l;const c=je(a,l,.5);return typeof r[2+o]=="number"&&(r[2+o]/=c),typeof r[3+o]=="number"&&(r[3+o]/=c),i(r)}};let ti=!1;class Em extends I.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;rh(Im),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),ti&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),zn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,ti=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Pe.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),co.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;ti=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Uc(s){const[e,t]=uc(),n=I.useContext(Fi);return B.jsx(Em,{...s,layoutGroup:n,switchLayoutGroup:I.useContext(Cc),isPresent:e,safeToRemove:t})}const Im={borderRadius:{...Cs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cs,borderTopRightRadius:Cs,borderBottomLeftRadius:Cs,borderBottomRightRadius:Cs,boxShadow:Pm};function Hc(s,e,t){const n=Fe(s)?s:ct(s);return n.start(wo("",n,e,t)),n.animation}const Rm=(s,e)=>s.depth-e.depth;class jm{constructor(){this.children=[],this.isDirty=!1}add(e){_i(this.children,e),this.isDirty=!0}remove(e){qn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Rm),this.isDirty=!1,this.children.forEach(e)}}function Nm(s,e){const t=Qe.now(),n=({timestamp:r})=>{const i=r-t;i>=e&&(ut(n),s(i-e))};return Pe.setup(n,!0),()=>ut(n)}const Kc=["TopLeft","TopRight","BottomLeft","BottomRight"],Dm=Kc.length,Ma=s=>typeof s=="string"?parseFloat(s):s,Pa=s=>typeof s=="number"||we.test(s);function Bm(s,e,t,n,r,i){r?(s.opacity=je(0,t.opacity??1,Lm(n)),s.opacityExit=je(e.opacity??1,0,Om(n))):i&&(s.opacity=je(e.opacity??1,t.opacity??1,n));for(let o=0;o<Dm;o++){const a=`border${Kc[o]}Radius`;let l=Ea(e,a),c=Ea(t,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Pa(l)===Pa(c)?(s[a]=Math.max(je(Ma(l),Ma(c),n),0),(ht.test(c)||ht.test(l))&&(s[a]+="%")):s[a]=c}(e.rotate||t.rotate)&&(s.rotate=je(e.rotate||0,t.rotate||0,n))}function Ea(s,e){return s[e]!==void 0?s[e]:s.borderRadius}const Lm=Yc(0,.5,kl),Om=Yc(.5,.95,et);function Yc(s,e,t){return n=>n<s?0:n>e?1:t(Lt(s,e,n))}function Ia(s,e){s.min=e.min,s.max=e.max}function rt(s,e){Ia(s.x,e.x),Ia(s.y,e.y)}function Ra(s,e){s.translate=e.translate,s.scale=e.scale,s.originPoint=e.originPoint,s.origin=e.origin}function ja(s,e,t,n,r){return s-=e,s=Un(s,1/t,n),r!==void 0&&(s=Un(s,1/r,n)),s}function $m(s,e=0,t=1,n=.5,r,i=s,o=s){if(ht.test(e)&&(e=parseFloat(e),e=je(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=je(i.min,i.max,n);s===i&&(a-=e),s.min=ja(s.min,e,t,a,r),s.max=ja(s.max,e,t,a,r)}function Na(s,e,[t,n,r],i,o){$m(s,e[t],e[n],e[r],e.scale,i,o)}const Fm=["x","scaleX","originX"],zm=["y","scaleY","originY"];function Da(s,e,t,n){Na(s.x,e,Fm,t?t.x:void 0,n?n.x:void 0),Na(s.y,e,zm,t?t.y:void 0,n?n.y:void 0)}function Ba(s){return s.translate===0&&s.scale===1}function Xc(s){return Ba(s.x)&&Ba(s.y)}function La(s,e){return s.min===e.min&&s.max===e.max}function _m(s,e){return La(s.x,e.x)&&La(s.y,e.y)}function Oa(s,e){return Math.round(s.min)===Math.round(e.min)&&Math.round(s.max)===Math.round(e.max)}function qc(s,e){return Oa(s.x,e.x)&&Oa(s.y,e.y)}function $a(s){return qe(s.x)/qe(s.y)}function Fa(s,e){return s.translate===e.translate&&s.scale===e.scale&&s.originPoint===e.originPoint}class Wm{constructor(){this.members=[]}add(e){_i(this.members,e),e.scheduleRender()}remove(e){if(qn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){const t=this.members.findIndex(r=>e===r);if(t===0)return!1;let n;for(let r=t;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Gm(s,e,t){let n="";const r=s.x.translate/e.x,i=s.y.translate/e.y,o=t?.z||0;if((r||i||o)&&(n=`translate3d(${r}px, ${i}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),t){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:p}=t;c&&(n=`perspective(${c}px) ${n}`),u&&(n+=`rotate(${u}deg) `),d&&(n+=`rotateX(${d}deg) `),f&&(n+=`rotateY(${f}deg) `),h&&(n+=`skewX(${h}deg) `),p&&(n+=`skewY(${p}deg) `)}const a=s.x.scale*e.x,l=s.y.scale*e.y;return(a!==1||l!==1)&&(n+=`scale(${a}, ${l})`),n||"none"}const si=["","X","Y","Z"],Um=1e3;let Hm=0;function ni(s,e,t,n){const{latestValues:r}=e;r[s]&&(t[s]=r[s],e.setStaticValue(s,0),n&&(n[s]=0))}function Zc(s){if(s.hasCheckedOptimisedAppear=!0,s.root===s)return;const{visualElement:e}=s.options;if(!e)return;const t=Dc(e);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:r,layoutId:i}=s.options;window.MotionCancelOptimisedAnimation(t,"transform",Pe,!(r||i))}const{parent:n}=s;n&&!n.hasCheckedOptimisedAppear&&Zc(n)}function Jc({attachResizeListener:s,defaultParent:e,measureScroll:t,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(o={},a=e?.()){this.id=Hm++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Xm),this.nodes.forEach(Qm),this.nodes.forEach(ep),this.nodes.forEach(qm)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new jm)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Gi),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=er(o)&&!cc(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),s){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;Pe.read(()=>{d=window.innerWidth}),s(o,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,u&&u(),u=Nm(f,250),zn.hasAnimatedSinceResize&&(zn.hasAnimatedSinceResize=!1,this.nodes.forEach(Wa)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||ip,{onLayoutAnimationStart:b,onLayoutAnimationComplete:v}=c.getProps(),S=!this.targetLayout||!qc(this.targetLayout,h),m=!d&&f;if(this.options.layoutRoot||this.resumeFrom||m||d&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...oo(p,"layout"),onPlay:b,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(u,m)}else d||Wa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ut(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tp),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(za);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_a);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Jm),this.nodes.forEach(Km),this.nodes.forEach(Ym)):this.nodes.forEach(_a),this.clearAllSnapshots();const a=Qe.now();Ue.delta=mt(0,1e3/60,a-Ue.timestamp),Ue.timestamp=a,Ue.isProcessing=!0,Ur.update.process(Ue),Ur.preRender.process(Ue),Ur.render.process(Ue),Ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,co.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Zm),this.sharedNodes.forEach(sp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!qe(this.snapshot.measuredBox.x)&&!qe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Be(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Xc(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Rt(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),op(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return Be();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ap))){const{scroll:c}=this.root;c&&(os(a.x,c.offset.x),os(a.y,c.offset.y))}return a}removeElementScroll(o){const a=Be();if(rt(a,o),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&rt(a,o),os(a.x,u.offset.x),os(a.y,u.offset.y))}return a}applyTransform(o,a=!1){const l=Be();rt(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&as(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Rt(u.latestValues)&&as(l,u.latestValues)}return Rt(this.latestValues)&&as(l,this.latestValues),l}removeTransform(o){const a=Be();rt(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Rt(c.latestValues))continue;Si(c.latestValues)&&c.updateSnapshot();const u=Be(),d=c.measurePageBox();rt(u,d),Da(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Rt(this.latestValues)&&Da(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ue.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=Ue.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Be(),this.relativeTargetOrigin=Be(),Is(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Be(),this.targetWithTransforms=Be()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),mm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rt(this.target,this.layout.layoutBox),Ac(this.target,this.targetDelta)):rt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Be(),this.relativeTargetOrigin=Be(),Is(this.relativeTargetOrigin,this.target,f.target),rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Si(this.parent.latestValues)||kc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ue.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;rt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;Rh(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Be());const{target:h}=o;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ra(this.prevProjectionDelta.x,this.projectionDelta.x),Ra(this.prevProjectionDelta.y,this.projectionDelta.y)),Es(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Fa(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fa(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ls(),this.projectionDelta=ls(),this.projectionDeltaWithTransform=ls()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=ls();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Be(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,b=h!==p,v=this.getStack(),S=!v||v.members.length<=1,m=!!(b&&!S&&this.options.crossfade===!0&&!this.path.some(rp));this.animationProgress=0;let y;this.mixTargetDelta=g=>{const w=g/1e3;Ga(d.x,o.x,w),Ga(d.y,o.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Is(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),np(this.relativeTarget,this.relativeTargetOrigin,f,w),y&&_m(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Be()),rt(y,this.relativeTarget)),b&&(this.animationValues=u,Bm(u,c,this.latestValues,w,m,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ut(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pe.update(()=>{zn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ct(0)),this.currentAnimation=Hc(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Um),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Qc(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Be();const d=qe(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=qe(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}rt(a,l),as(a,u),Es(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Wm),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&ni("z",o,c,this.animationValues);for(let u=0;u<si.length;u++)ni(`rotate${si[u]}`,o,c,this.animationValues),ni(`skew${si[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Fn(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Fn(a?.pointerEvents)||""),this.hasProjected&&!Rt(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=Gm(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:f,y:h}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in Ls){if(u[p]===void 0)continue;const{correct:b,applyTo:v,isCSSVariable:S}=Ls[p],m=d==="none"?u[p]:b(u[p],c);if(v){const y=v.length;for(let g=0;g<y;g++)o[v[g]]=m}else S?this.options.visualElement.renderState.vars[p]=m:o[p]=m}this.options.layoutId&&(o.pointerEvents=c===this?Fn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(za),this.root.sharedNodes.clear()}}}function Km(s){s.updateLayout()}function Ym(s){const e=s.resumeFrom?.snapshot||s.snapshot;if(s.isLead()&&s.layout&&e&&s.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=s.layout,{animationType:r}=s.options,i=e.source!==s.layout.source;r==="size"?it(u=>{const d=i?e.measuredBox[u]:e.layoutBox[u],f=qe(d);d.min=t[u].min,d.max=d.min+f}):Qc(r,e.layoutBox,t)&&it(u=>{const d=i?e.measuredBox[u]:e.layoutBox[u],f=qe(t[u]);d.max=d.min+f,s.relativeTarget&&!s.currentAnimation&&(s.isProjectionDirty=!0,s.relativeTarget[u].max=s.relativeTarget[u].min+f)});const o=ls();Es(o,t,e.layoutBox);const a=ls();i?Es(a,s.applyTransform(n,!0),e.measuredBox):Es(a,t,e.layoutBox);const l=!Xc(o);let c=!1;if(!s.resumeFrom){const u=s.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const h=Be();Is(h,e.layoutBox,d.layoutBox);const p=Be();Is(p,t,f.layoutBox),qc(h,p)||(c=!0),u.options.layoutRoot&&(s.relativeTarget=p,s.relativeTargetOrigin=h,s.relativeParent=u)}}}s.notifyListeners("didUpdate",{layout:t,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(s.isLead()){const{onExitComplete:t}=s.options;t&&t()}s.options.transition=void 0}function Xm(s){s.parent&&(s.isProjecting()||(s.isProjectionDirty=s.parent.isProjectionDirty),s.isSharedProjectionDirty||(s.isSharedProjectionDirty=!!(s.isProjectionDirty||s.parent.isProjectionDirty||s.parent.isSharedProjectionDirty)),s.isTransformDirty||(s.isTransformDirty=s.parent.isTransformDirty))}function qm(s){s.isProjectionDirty=s.isSharedProjectionDirty=s.isTransformDirty=!1}function Zm(s){s.clearSnapshot()}function za(s){s.clearMeasurements()}function _a(s){s.isLayoutDirty=!1}function Jm(s){const{visualElement:e}=s.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),s.resetTransform()}function Wa(s){s.finishAnimation(),s.targetDelta=s.relativeTarget=s.target=void 0,s.isProjectionDirty=!0}function Qm(s){s.resolveTargetDelta()}function ep(s){s.calcProjection()}function tp(s){s.resetSkewAndRotation()}function sp(s){s.removeLeadSnapshot()}function Ga(s,e,t){s.translate=je(e.translate,0,t),s.scale=je(e.scale,1,t),s.origin=e.origin,s.originPoint=e.originPoint}function Ua(s,e,t,n){s.min=je(e.min,t.min,n),s.max=je(e.max,t.max,n)}function np(s,e,t,n){Ua(s.x,e.x,t.x,n),Ua(s.y,e.y,t.y,n)}function rp(s){return s.animationValues&&s.animationValues.opacityExit!==void 0}const ip={duration:.45,ease:[.4,0,.1,1]},Ha=s=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(s),Ka=Ha("applewebkit/")&&!Ha("chrome/")?Math.round:et;function Ya(s){s.min=Ka(s.min),s.max=Ka(s.max)}function op(s){Ya(s.x),Ya(s.y)}function Qc(s,e,t){return s==="position"||s==="preserve-aspect"&&!hm($a(e),$a(t),.2)}function ap(s){return s!==s.root&&s.scroll?.wasRoot}const lp=Jc({attachResizeListener:(s,e)=>$s(s,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ri={current:void 0},eu=Jc({measureScroll:s=>({x:s.scrollLeft,y:s.scrollTop}),defaultParent:()=>{if(!ri.current){const s=new lp({});s.mount(window),s.setOptions({layoutScroll:!0}),ri.current=s}return ri.current},resetTransform:(s,e)=>{s.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:s=>window.getComputedStyle(s).position==="fixed"}),cp={pan:{Feature:Mm},drag:{Feature:Vm,ProjectionNode:eu,MeasureLayout:Uc}};function Xa(s,e,t){const{props:n}=s;s.animationState&&n.whileHover&&s.animationState.setActive("whileHover",t==="Start");const r="onHover"+t,i=n[r];i&&Pe.postRender(()=>i(e,Ks(e)))}class up extends Vt{mount(){const{current:e}=this.node;e&&(this.unmount=Mf(e,(t,n)=>(Xa(this.node,n,"Start"),r=>Xa(this.node,r,"End"))))}unmount(){}}class dp extends Vt{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=_s($s(this.node.current,"focus",()=>this.onFocus()),$s(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function qa(s,e,t){const{props:n}=s;if(s.current instanceof HTMLButtonElement&&s.current.disabled)return;s.animationState&&n.whileTap&&s.animationState.setActive("whileTap",t==="Start");const r="onTap"+(t==="End"?"":t),i=n[r];i&&Pe.postRender(()=>i(e,Ks(e)))}class fp extends Vt{mount(){const{current:e}=this.node;e&&(this.unmount=Rf(e,(t,n)=>(qa(this.node,n,"Start"),(r,{success:i})=>qa(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ei=new WeakMap,ii=new WeakMap,hp=s=>{const e=Ei.get(s.target);e&&e(s)},mp=s=>{s.forEach(hp)};function pp({root:s,...e}){const t=s||document;ii.has(t)||ii.set(t,{});const n=ii.get(t),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(mp,{root:s,...e})),n[r]}function gp(s,e,t){const n=pp(e);return Ei.set(s,t),n.observe(s),()=>{Ei.delete(s),n.unobserve(s)}}const yp={some:0,all:1};class bp extends Vt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:typeof r=="number"?r:yp[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return gp(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(vp(e,t))&&this.startObserver()}unmount(){}}function vp({viewport:s={}},{viewport:e={}}={}){return t=>s[t]!==e[t]}const xp={inView:{Feature:bp},tap:{Feature:fp},focus:{Feature:dp},hover:{Feature:up}},wp={layout:{ProjectionNode:eu,MeasureLayout:Uc}},Cp={...am,...xp,...cp,...wp},Se=Ph(Cp,Oh),Sp=50,Za=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Tp=()=>({time:0,x:Za(),y:Za()}),kp={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Ja(s,e,t,n){const r=t[e],{length:i,position:o}=kp[e],a=r.current,l=t.time;r.current=s[`scroll${o}`],r.scrollLength=s[`scroll${i}`]-s[`client${i}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=Lt(0,r.scrollLength,r.current);const c=n-l;r.velocity=c>Sp?0:Ui(r.current-a,c)}function Ap(s,e,t){Ja(s,"x",e,t),Ja(s,"y",e,t),e.time=t}function Vp(s,e){const t={x:0,y:0};let n=s;for(;n&&n!==e;)if(lo(n))t.x+=n.offsetLeft,t.y+=n.offsetTop,n=n.offsetParent;else if(n.tagName==="svg"){const r=n.getBoundingClientRect();n=n.parentElement;const i=n.getBoundingClientRect();t.x+=r.left-i.left,t.y+=r.top-i.top}else if(n instanceof SVGGraphicsElement){const{x:r,y:i}=n.getBBox();t.x+=r,t.y+=i;let o=null,a=n.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=n.parentNode;n=o}else break;return t}const Ii={start:0,center:.5,end:1};function Qa(s,e,t=0){let n=0;if(s in Ii&&(s=Ii[s]),typeof s=="string"){const r=parseFloat(s);s.endsWith("px")?n=r:s.endsWith("%")?s=r/100:s.endsWith("vw")?n=r/100*document.documentElement.clientWidth:s.endsWith("vh")?n=r/100*document.documentElement.clientHeight:s=r}return typeof s=="number"&&(n=e*s),t+n}const Mp=[0,0];function Pp(s,e,t,n){let r=Array.isArray(s)?s:Mp,i=0,o=0;return typeof s=="number"?r=[s,s]:typeof s=="string"&&(s=s.trim(),s.includes(" ")?r=s.split(" "):r=[s,Ii[s]?s:"0"]),i=Qa(r[0],t,n),o=Qa(r[1],e),i-o}const Ep={All:[[0,0],[1,1]]},Ip={x:0,y:0};function Rp(s){return"getBBox"in s&&s.tagName!=="svg"?s.getBBox():{width:s.clientWidth,height:s.clientHeight}}function jp(s,e,t){const{offset:n=Ep.All}=t,{target:r=s,axis:i="y"}=t,o=i==="y"?"height":"width",a=r!==s?Vp(r,s):Ip,l=r===s?{width:s.scrollWidth,height:s.scrollHeight}:Rp(r),c={width:s.clientWidth,height:s.clientHeight};e[i].offset.length=0;let u=!e[i].interpolate;const d=n.length;for(let f=0;f<d;f++){const h=Pp(n[f],c[o],l[o],a[i]);!u&&h!==e[i].interpolatorOffsets[f]&&(u=!0),e[i].offset[f]=h}u&&(e[i].interpolate=eo(e[i].offset,to(n),{clamp:!1}),e[i].interpolatorOffsets=[...e[i].offset]),e[i].progress=mt(0,1,e[i].interpolate(e[i].current))}function Np(s,e=s,t){if(t.x.targetOffset=0,t.y.targetOffset=0,e!==s){let n=e;for(;n&&n!==s;)t.x.targetOffset+=n.offsetLeft,t.y.targetOffset+=n.offsetTop,n=n.offsetParent}t.x.targetLength=e===s?e.scrollWidth:e.clientWidth,t.y.targetLength=e===s?e.scrollHeight:e.clientHeight,t.x.containerLength=s.clientWidth,t.y.containerLength=s.clientHeight,process.env.NODE_ENV!=="production"&&s&&e&&e!==s&&Zn(getComputedStyle(s).position!=="static","Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.")}function Dp(s,e,t,n={}){return{measure:r=>{Np(s,n.target,t),Ap(s,t,r),(n.offset||n.target)&&jp(s,t,n)},notify:()=>e(t)}}const Ss=new WeakMap,el=new WeakMap,oi=new WeakMap,tl=s=>s===document.scrollingElement?window:s;function tu(s,{container:e=document.scrollingElement,...t}={}){if(!e)return et;let n=oi.get(e);n||(n=new Set,oi.set(e,n));const r=Tp(),i=Dp(e,s,r,t);if(n.add(i),!Ss.has(e)){const a=()=>{for(const d of n)d.measure(Ue.timestamp);Pe.preUpdate(l)},l=()=>{for(const d of n)d.notify()},c=()=>Pe.read(a);Ss.set(e,c);const u=tl(e);window.addEventListener("resize",c,{passive:!0}),e!==document.documentElement&&el.set(e,zf(e,c)),u.addEventListener("scroll",c,{passive:!0}),c()}const o=Ss.get(e);return Pe.read(o,!1,!0),()=>{ut(o);const a=oi.get(e);if(!a||(a.delete(i),a.size))return;const l=Ss.get(e);Ss.delete(e),l&&(tl(e).removeEventListener("scroll",l),el.get(e)?.(),window.removeEventListener("resize",l))}}const sl=new Map;function Bp(s){const e={value:0},t=tu(n=>{e.value=n[s.axis].progress*100},s);return{currentTime:e,cancel:t}}function su({source:s,container:e,...t}){const{axis:n}=t;s&&(e=s);const r=sl.get(e)??new Map;sl.set(e,r);const i=t.target??"self",o=r.get(i)??{},a=n+(t.offset??[]).join(",");return o[a]||(o[a]=!t.target&&Kl()?new ScrollTimeline({source:e,axis:n}):Bp({container:e,...t})),o[a]}function Lp(s,e){const t=su(e);return s.attachTimeline({timeline:e.target?void 0:t,observe:n=>(n.pause(),lc(r=>{n.time=n.iterationDuration*r},t))})}function Op(s){return s.length===2}function $p(s,e){return Op(s)?tu(t=>{s(t[e.axis].progress,t)},e):lc(s,su(e))}function Fp(s,{axis:e="y",container:t=document.scrollingElement,...n}={}){if(!t)return et;const r={axis:e,container:t,...n};return typeof s=="function"?$p(s,r):Lp(s,r)}const zp=()=>({scrollX:ct(0),scrollY:ct(0),scrollXProgress:ct(0),scrollYProgress:ct(0)}),Pn=s=>s?!s.current:!1;function nu({container:s,target:e,...t}={}){const n=Ot(zp),r=I.useRef(null),i=I.useRef(!1),o=I.useCallback(()=>(r.current=Fp((a,{x:l,y:c})=>{n.scrollX.set(l.current),n.scrollXProgress.set(l.progress),n.scrollY.set(c.current),n.scrollYProgress.set(c.progress)},{...t,container:s?.current||void 0,target:e?.current||void 0}),()=>{r.current?.()}),[s,e,JSON.stringify(t.offset)]);return zs(()=>{if(i.current=!1,Pn(s)||Pn(e)){i.current=!0;return}else return o()},[o]),I.useEffect(()=>{if(i.current)return Xe(!Pn(s),"Container ref is defined but not hydrated","use-scroll-ref"),Xe(!Pn(e),"Target ref is defined but not hydrated","use-scroll-ref"),o()},[o]),n}function So(s){const e=Ot(()=>ct(s)),{isStatic:t}=I.useContext(Us);if(t){const[,n]=I.useState(s);I.useEffect(()=>e.on("change",n),[])}return e}function ru(s,e){const t=So(e()),n=()=>t.set(e());return n(),zs(()=>{const r=()=>Pe.preRender(n,!1,!0),i=s.map(o=>o.on("change",r));return()=>{i.forEach(o=>o()),ut(n)}}),t}function _p(s){Ms.current=[],s();const e=ru(Ms.current,s);return Ms.current=void 0,e}function ds(s,e,t,n){if(typeof s=="function")return _p(s);const r=typeof e=="function"?e:_f(e,t,n);return Array.isArray(s)?nl(s,r):nl([s],([i])=>r(i))}function nl(s,e){const t=Ot(()=>[]);return ru(s,()=>{t.length=0;const n=s.length;for(let r=0;r<n;r++)t[r]=s[r].get();return e(t)})}function Hn(s,e={}){const{isStatic:t}=I.useContext(Us),n=()=>Fe(s)?s.get():s;if(t)return ds(n);const r=So(n());return I.useInsertionEffect(()=>Wf(r,s,e),[r,JSON.stringify(e)]),r}function Wp(s){s.values.forEach(e=>e.stop())}function Ri(s,e){[...e].reverse().forEach(n=>{const r=s.getVariant(n);r&&xo(s,r),s.variantChildren&&s.variantChildren.forEach(i=>{Ri(i,e)})})}function Gp(s,e){if(Array.isArray(e))return Ri(s,e);if(typeof e=="string")return Ri(s,[e]);xo(s,e)}function Up(){let s=!1;const e=new Set,t={subscribe(n){return e.add(n),()=>void e.delete(n)},start(n,r){Xe(s,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const i=[];return e.forEach(o=>{i.push(Lc(o,n,{transitionOverride:r}))}),Promise.all(i)},set(n){return Xe(s,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(r=>{Gp(r,n)})},stop(){e.forEach(n=>{Wp(n)})},mount(){return s=!0,()=>{s=!1,t.stop()}}};return t}function To(s){return typeof s=="object"&&!Array.isArray(s)}function iu(s,e,t,n){return typeof s=="string"&&To(e)?Qn(s,t,n):s instanceof NodeList?Array.from(s):Array.isArray(s)?s:[s]}function Hp(s,e,t){return s*(e+1)}function rl(s,e,t,n){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,s+parseFloat(e)):e==="<"?t:e.startsWith("<")?Math.max(0,t+parseFloat(e.slice(1))):n.get(e)??s}function Kp(s,e,t){for(let n=0;n<s.length;n++){const r=s[n];r.at>e&&r.at<t&&(qn(s,r),n--)}}function Yp(s,e,t,n,r,i){Kp(s,r,i);for(let o=0;o<e.length;o++)s.push({value:e[o],at:je(r,i,n[o]),easing:Pl(t,o)})}function Xp(s,e){for(let t=0;t<s.length;t++)s[t]=s[t]/(e+1)}function qp(s,e){return s.at===e.at?s.value===null?1:e.value===null?-1:0:s.at-e.at}const Zp="easeInOut",Jp=20;function Qp(s,{defaultTransition:e={},...t}={},n,r){const i=e.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,d=0,f=0;for(let h=0;h<s.length;h++){const p=s[h];if(typeof p=="string"){c.set(p,d);continue}else if(!Array.isArray(p)){c.set(p.name,rl(d,p.at,u,c));continue}let[b,v,S={}]=p;S.at!==void 0&&(d=rl(d,S.at,u,c));let m=0;const y=(g,w,x,k=0,C=0)=>{const E=e0(g),{delay:j=0,times:N=to(E),type:L="keyframes",repeat:D,repeatType:V,repeatDelay:A=0,...P}=w;let{ease:M=e.ease||"easeOut",duration:T}=w;const R=typeof j=="function"?j(k,C):j,F=E.length,z=io(L)?L:r?.[L||"keyframes"];if(F<=2&&z){let _=100;if(F===2&&n0(E)){const G=E[1]-E[0];_=Math.abs(G)}const H={...P};T!==void 0&&(H.duration=at(T));const X=zl(H,_,z);M=X.ease,T=X.duration}T??(T=i);const O=d+R;N.length===1&&N[0]===0&&(N[1]=1);const $=N.length-E.length;if($>0&&Wl(N,$),E.length===1&&E.unshift(null),D){Xe(D<Jp,"Repeat count too high, must be less than 20","repeat-count-high"),T=Hp(T,D);const _=[...E],H=[...N];M=Array.isArray(M)?[...M]:[M];const X=[...M];for(let G=0;G<D;G++){E.push(..._);for(let K=0;K<_.length;K++)N.push(H[K]+(G+1)),M.push(K===0?"linear":Pl(X,K-1))}Xp(N,D)}const W=O+T;Yp(x,E,M,N,O,W),m=Math.max(R+T,m),f=Math.max(W,f)};if(Fe(b)){const g=il(b,a);y(v,S,ol("default",g))}else{const g=iu(b,v,n,l),w=g.length;for(let x=0;x<w;x++){v=v,S=S;const k=g[x],C=il(k,a);for(const E in v)y(v[E],t0(S,E),ol(E,C),x,w)}}u=d,d+=m}return a.forEach((h,p)=>{for(const b in h){const v=h[b];v.sort(qp);const S=[],m=[],y=[];for(let w=0;w<v.length;w++){const{at:x,value:k,easing:C}=v[w];S.push(k),m.push(Lt(0,f,x)),y.push(C||"easeOut")}m[0]!==0&&(m.unshift(0),S.unshift(S[0]),y.unshift(Zp)),m[m.length-1]!==1&&(m.push(1),S.push(null)),o.has(p)||o.set(p,{keyframes:{},transition:{}});const g=o.get(p);g.keyframes[b]=S,g.transition[b]={...e,duration:f,ease:y,times:m,...t}}}),o}function il(s,e){return!e.has(s)&&e.set(s,{}),e.get(s)}function ol(s,e){return e[s]||(e[s]=[]),e[s]}function e0(s){return Array.isArray(s)?s:[s]}function t0(s,e){return s&&s[e]?{...s,...s[e]}:{...s}}const s0=s=>typeof s=="number",n0=s=>s.every(s0);function r0(s,e){return s in e}class i0 extends Pc{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(r0(t,e)){const n=e[t];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Be()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function o0(s){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},t=er(s)&&!cc(s)?new Nc(e):new Rc(e);t.mount(s),Os.set(s,t)}function a0(s){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},t=new i0(e);t.mount(s),Os.set(s,t)}function l0(s,e){return Fe(s)||typeof s=="number"||typeof s=="string"&&!To(e)}function ou(s,e,t,n){const r=[];if(l0(s,e))r.push(Hc(s,To(e)&&e.default||e,t&&(t.default||t)));else{const i=iu(s,e,n),o=i.length;Xe(!!o,"No valid elements provided.","no-valid-elements");for(let a=0;a<o;a++){const l=i[a];Xe(l!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const c=l instanceof Element?o0:a0;Os.has(l)||c(l);const u=Os.get(l),d={...t};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,o)),r.push(...Co(u,{...e,transition:d},{}))}}return r}function c0(s,e,t){const n=[];return Qp(s,e,t,{spring:Ds}).forEach(({keyframes:i,transition:o},a)=>{n.push(...ou(a,i,o))}),n}function u0(s){return Array.isArray(s)&&s.some(Array.isArray)}function d0(s){function e(t,n,r){let i=[],o;if(u0(t))i=c0(t,n,s);else{const{onComplete:l,...c}=r||{};typeof l=="function"&&(o=l),i=ou(t,n,c,s)}const a=new df(i);return o&&a.finished.then(o),a}return e}const f0=d0();function h0(){const s=Ot(Up);return zs(s.mount,[]),s}const vt=h0,m0={some:0,all:1};function p0(s,e,{root:t,margin:n,amount:r="some"}={}){const i=Qn(s),o=new WeakMap,a=c=>{c.forEach(u=>{const d=o.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const f=e(u.target,u);typeof f=="function"?o.set(u.target,f):l.unobserve(u.target)}else typeof d=="function"&&(d(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:t,rootMargin:n,threshold:typeof r=="number"?r:m0[r]});return i.forEach(c=>l.observe(c)),()=>l.disconnect()}function tt(s,{root:e,margin:t,amount:n,once:r=!1,initial:i=!1}={}){const[o,a]=I.useState(i);return I.useEffect(()=>{if(!s.current||r&&o)return;const l=()=>(a(!0),r?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:t,amount:n};return p0(s.current,l,c)},[e,s,t,r,n]),o}const g0={linear:[0,0,1,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],backIn:[.6,-.28,.735,.045],backOut:[.175,.885,.32,1.275],backInOut:[.68,-.55,.265,1.55],bounceIn:[.6,-.28,.735,.045],bounceOut:[.175,.885,.32,1.275],bounceInOut:[.68,-.55,.265,1.55],elasticIn:[.5,-.25,.75,1.25],elasticOut:[.25,.46,.45,.94],elasticInOut:[.5,-.25,.75,1.25]},$t=(s,e=.5)=>({duration:e,ease:g0[s]}),y0=(s,e=50)=>({up:{x:0,y:-e},down:{x:0,y:e},left:{x:-e,y:0},right:{x:e,y:0},upLeft:{x:-e,y:-e},upRight:{x:e,y:-e},downLeft:{x:-e,y:e},downRight:{x:e,y:e}})[s],b0=s=>{switch(s){case"horizontal":return{rotateY:180};case"vertical":return{rotateX:180};case"both":return{rotateX:180,rotateY:180};default:return{}}},v0={hidden:s=>({opacity:s.startOpacity,filter:s.blur?`blur(${s.blurAmount}px)`:"blur(0px)"}),visible:s=>({opacity:s.endOpacity,filter:"blur(0px)"})},x0={hidden:s=>{const{x:e,y:t}=y0(s.direction,s.distance);return{x:s.overshoot?e*1.2:e,y:s.overshoot?t*1.2:t,opacity:0}},visible:{x:0,y:0,opacity:1}},w0={hidden:s=>({scale:s.startScale,opacity:0}),visible:s=>({scale:s.endScale,opacity:1,transition:{type:s.bounce?"spring":"tween",stiffness:s.bounce?300:100,damping:s.bounce?20:10}})},C0={hidden:s=>({scale:s.startScale,opacity:0,y:-20}),visible:s=>({scale:1,opacity:1,y:0,transition:{type:"spring",...{low:{stiffness:200,damping:15},medium:{stiffness:300,damping:12},high:{stiffness:400,damping:8}}[s.intensity],bounce:.4}})},S0={hidden:s=>({...b0(s.direction),opacity:s.backfaceVisible?1:0,transformPerspective:s.perspective,backfaceVisibility:s.backfaceVisible?"visible":"hidden"}),visible:{rotateX:0,rotateY:0,opacity:1}},T0={hidden:{opacity:0},visible:s=>({opacity:1,transition:{staggerChildren:s.staggerDelay,staggerDirection:s.staggerDirection==="reverse"?-1:1,delayChildren:.1}})},k0={hidden:{opacity:0,y:20,scale:.8},visible:{opacity:1,y:0,scale:1,transition:{type:"spring",stiffness:300,damping:20}}},A0=s=>{const e={initial:s[0]||{}};return s.forEach((t,n)=>{e[`morph${n}`]={...t,transition:{type:"spring",stiffness:200,damping:20}}}),e},V0={hidden:{opacity:0},visible:{opacity:1}},xt=()=>typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches,wt=s=>{s.style.willChange="transform, opacity",s.style.backfaceVisibility="hidden",s.style.perspective="1000px"},Ct=s=>{s.style.willChange="auto",s.style.backfaceVisibility="visible",s.style.perspective="none"},Ne=(s,e)=>{const t=performance.now();return{animationDuration:e,frameRate:Math.round(1e3/(t-s)),renderTime:t-s}},Me=(s,e,t)=>{try{switch(e){case"start":s.onStart?.(t);break;case"update":s.onUpdate?.(t);break;case"complete":s.onComplete?.(t);break;case"error":s.onError?.(t);break}}catch(n){console.warn("Error handling animation event:",n)}},Mt=s=>({}),M0=s=>{const e=ge.c(80);let t,n,r,i,o,a,l,c,u,d,f,h,p,b,v,S,m;e[0]!==s?({children:t,trigger:o,delay:c,duration:u,easing:d,disabled:f,startOpacity:h,endOpacity:p,blur:b,blurAmount:v,variants:m,transition:S,className:a,style:l,onAnimationStart:r,onAnimationComplete:n,...i}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f,e[12]=h,e[13]=p,e[14]=b,e[15]=v,e[16]=S,e[17]=m):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],b=e[14],v=e[15],S=e[16],m=e[17]);const y=o===void 0?"inView":o,g=c===void 0?0:c,w=u===void 0?.6:u,x=d===void 0?"easeOut":d,k=f===void 0?!1:f,C=h===void 0?0:h,E=p===void 0?1:p,j=b===void 0?!1:b,N=v===void 0?5:v,L=a===void 0?"":a;let D;e[18]!==l?(D=l===void 0?{}:l,e[18]=l,e[19]=D):D=e[19];const V=D,A=I.useRef(null),P=vt();let M;e[20]===Symbol.for("react.memo_cache_sentinel")?(M={once:!0,margin:"0px 0px -10% 0px"},e[20]=M):M=e[20];const T=tt(A,M),R=xt(),F=I.useRef(0),z=m||v0;let O;e[21]!==j||e[22]!==N||e[23]!==E||e[24]!==C?(O={startOpacity:C,endOpacity:E,blur:j,blurAmount:N},e[21]=j,e[22]=N,e[23]=E,e[24]=C,e[25]=O):O=e[25];const $=O;let W,_;e[26]!==P||e[27]!==k||e[28]!==w||e[29]!==T||e[30]!==n||e[31]!==r||e[32]!==R||e[33]!==y?(W=()=>{if(k||R){P.set("visible");return}(async()=>{try{F.current=performance.now(),A.current&&wt(A.current);e:switch(y){case"immediate":{Me({onStart:r},"start",Ne(F.current,w)),await P.start("visible");break e}case"inView":{T&&(Me({onStart:r},"start",Ne(F.current,w)),await P.start("visible"));break e}case"manual":break e;default:await P.start("visible")}A.current&&Ct(A.current),Me({onComplete:n},"complete",Ne(F.current,w))}catch(le){const ce=le;console.warn("Error in FadeContainer animation:",ce),Me({onError:console.error},"error",ce)}})()},_=[T,y,P,k,R,w,r,n],e[26]=P,e[27]=k,e[28]=w,e[29]=T,e[30]=n,e[31]=r,e[32]=R,e[33]=y,e[34]=W,e[35]=_):(W=e[34],_=e[35]),I.useEffect(W,_);let H;e[36]!==g||e[37]!==w||e[38]!==x||e[39]!==S?(H=S||{...$t(x,w),delay:g},e[36]=g,e[37]=w,e[38]=x,e[39]=S,e[40]=H):H=e[40];const X=H;let G;e[41]===Symbol.for("react.memo_cache_sentinel")?(G=Mt(),e[41]=G):G=e[41];const K=G;let U;e[42]!==V?(U={...K,...V},e[42]=V,e[43]=U):U=e[43];const Z=U;let Y;e[44]!==P||e[45]!==k||e[46]!==R||e[47]!==y?(Y=()=>{y==="hover"&&!k&&!R&&P.start("visible")},e[44]=P,e[45]=k,e[46]=R,e[47]=y,e[48]=Y):Y=e[48];const J=Y;let Q;e[49]!==P||e[50]!==k||e[51]!==R||e[52]!==y?(Q=()=>{y==="hover"&&!k&&!R&&P.start("hidden")},e[49]=P,e[50]=k,e[51]=R,e[52]=y,e[53]=Q):Q=e[53];const q=Q;let te;e[54]!==P||e[55]!==k||e[56]!==R||e[57]!==y?(te=()=>{y==="focus"&&!k&&!R&&P.start("visible")},e[54]=P,e[55]=k,e[56]=R,e[57]=y,e[58]=te):te=e[58];const se=te;let ee;e[59]!==P||e[60]!==k||e[61]!==R||e[62]!==y?(ee=()=>{y==="focus"&&!k&&!R&&P.start("hidden")},e[59]=P,e[60]=k,e[61]=R,e[62]=y,e[63]=ee):ee=e[63];const ne=ee;let ie;if(e[64]!==i){const{onDrag:ae,onDragEnd:le,onDragStart:ce,...pe}=i;ie=pe,e[64]=i,e[65]=ie}else ie=e[65];const oe=k||R?"visible":"hidden";let re;return e[66]!==z||e[67]!==t||e[68]!==L||e[69]!==Z||e[70]!==P||e[71]!==$||e[72]!==ie||e[73]!==ne||e[74]!==se||e[75]!==J||e[76]!==q||e[77]!==oe||e[78]!==X?(re=B.jsx(Se.div,{ref:A,custom:$,variants:z,initial:oe,animate:P,transition:X,onMouseEnter:J,onMouseLeave:q,onFocus:se,onBlur:ne,className:L,style:Z,...ie,children:t}),e[66]=z,e[67]=t,e[68]=L,e[69]=Z,e[70]=P,e[71]=$,e[72]=ie,e[73]=ne,e[74]=se,e[75]=J,e[76]=q,e[77]=oe,e[78]=X,e[79]=re):re=e[79],re},P0=s=>{const e=ge.c(79);let t,n,r,i,o,a,l,c,u,d,f,h,p,b,v,S;e[0]!==s?({children:t,trigger:o,delay:l,duration:c,easing:u,disabled:d,direction:f,distance:h,overshoot:p,variants:S,transition:v,className:b,style:a,onAnimationStart:r,onAnimationComplete:n,...i}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f,e[12]=h,e[13]=p,e[14]=b,e[15]=v,e[16]=S):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],b=e[14],v=e[15],S=e[16]);const m=o===void 0?"inView":o,y=l===void 0?0:l,g=c===void 0?.6:c,w=u===void 0?"easeOut":u,x=d===void 0?!1:d,k=f===void 0?"up":f,C=h===void 0?50:h,E=p===void 0?!1:p,j=b===void 0?"":b;let N;e[17]!==a?(N=a===void 0?{}:a,e[17]=a,e[18]=N):N=e[18];const L=N,D=I.useRef(null),V=vt();let A;e[19]===Symbol.for("react.memo_cache_sentinel")?(A={once:!0,margin:"0px 0px -10% 0px"},e[19]=A):A=e[19];const P=tt(D,A),M=xt(),T=I.useRef(0),R=S||x0;let F;e[20]!==k||e[21]!==C||e[22]!==E?(F={direction:k,distance:C,overshoot:E},e[20]=k,e[21]=C,e[22]=E,e[23]=F):F=e[23];const z=F;let O,$;e[24]!==V||e[25]!==x||e[26]!==g||e[27]!==P||e[28]!==n||e[29]!==r||e[30]!==M||e[31]!==m?(O=()=>{if(x||M){V.set("visible");return}(async()=>{try{T.current=performance.now(),D.current&&wt(D.current);e:switch(m){case"immediate":{Me({onStart:r},"start",Ne(T.current,g)),await V.start("visible");break e}case"inView":{P&&(Me({onStart:r},"start",Ne(T.current,g)),await V.start("visible"));break e}case"manual":break e;default:await V.start("visible")}D.current&&Ct(D.current),Me({onComplete:n},"complete",Ne(T.current,g))}catch(re){const ae=re;console.warn("Error in SlideContainer animation:",ae),Me({onError:console.error},"error",ae)}})()},$=[P,m,V,x,M,g,r,n],e[24]=V,e[25]=x,e[26]=g,e[27]=P,e[28]=n,e[29]=r,e[30]=M,e[31]=m,e[32]=O,e[33]=$):(O=e[32],$=e[33]),I.useEffect(O,$);let W;e[34]!==y||e[35]!==g||e[36]!==w||e[37]!==E||e[38]!==v?(W=v||{...$t(w,g),delay:y,...E&&{type:"spring",stiffness:200,damping:20}},e[34]=y,e[35]=g,e[36]=w,e[37]=E,e[38]=v,e[39]=W):W=e[39];const _=W;let H;e[40]===Symbol.for("react.memo_cache_sentinel")?(H=Mt(),e[40]=H):H=e[40];const X=H;let G;e[41]!==L?(G={...X,...L},e[41]=L,e[42]=G):G=e[42];const K=G;let U;e[43]!==V||e[44]!==x||e[45]!==M||e[46]!==m?(U=()=>{m==="hover"&&!x&&!M&&V.start("visible")},e[43]=V,e[44]=x,e[45]=M,e[46]=m,e[47]=U):U=e[47];const Z=U;let Y;e[48]!==V||e[49]!==x||e[50]!==M||e[51]!==m?(Y=()=>{m==="hover"&&!x&&!M&&V.start("hidden")},e[48]=V,e[49]=x,e[50]=M,e[51]=m,e[52]=Y):Y=e[52];const J=Y;let Q;e[53]!==V||e[54]!==x||e[55]!==M||e[56]!==m?(Q=()=>{m==="focus"&&!x&&!M&&V.start("visible")},e[53]=V,e[54]=x,e[55]=M,e[56]=m,e[57]=Q):Q=e[57];const q=Q;let te;e[58]!==V||e[59]!==x||e[60]!==M||e[61]!==m?(te=()=>{m==="focus"&&!x&&!M&&V.start("hidden")},e[58]=V,e[59]=x,e[60]=M,e[61]=m,e[62]=te):te=e[62];const se=te;let ee;if(e[63]!==i){const{onDrag:oe,onDragEnd:re,onDragStart:ae,...le}=i;ee=le,e[63]=i,e[64]=ee}else ee=e[64];const ne=x||M?"visible":"hidden";let ie;return e[65]!==R||e[66]!==t||e[67]!==j||e[68]!==K||e[69]!==V||e[70]!==z||e[71]!==ee||e[72]!==se||e[73]!==q||e[74]!==Z||e[75]!==J||e[76]!==ne||e[77]!==_?(ie=B.jsx(Se.div,{ref:D,custom:z,variants:R,initial:ne,animate:V,transition:_,onMouseEnter:Z,onMouseLeave:J,onFocus:q,onBlur:se,className:j,style:K,...ee,children:t}),e[65]=R,e[66]=t,e[67]=j,e[68]=K,e[69]=V,e[70]=z,e[71]=ee,e[72]=se,e[73]=q,e[74]=Z,e[75]=J,e[76]=ne,e[77]=_,e[78]=ie):ie=e[78],ie},E0=s=>{const e=ge.c(81);let t,n,r,i,o,a,l,c,u,d,f,h,p,b,v,S,m;e[0]!==s?({children:t,trigger:o,delay:c,duration:u,easing:d,disabled:f,startScale:h,endScale:p,scaleOrigin:b,bounce:v,variants:m,transition:S,className:a,style:l,onAnimationStart:r,onAnimationComplete:n,...i}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f,e[12]=h,e[13]=p,e[14]=b,e[15]=v,e[16]=S,e[17]=m):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],b=e[14],v=e[15],S=e[16],m=e[17]);const y=o===void 0?"inView":o,g=c===void 0?0:c,w=u===void 0?.6:u,x=d===void 0?"easeOut":d,k=f===void 0?!1:f,C=h===void 0?.8:h,E=p===void 0?1:p,j=b===void 0?"center":b,N=v===void 0?!1:v,L=a===void 0?"":a;let D;e[18]!==l?(D=l===void 0?{}:l,e[18]=l,e[19]=D):D=e[19];const V=D,A=I.useRef(null),P=vt();let M;e[20]===Symbol.for("react.memo_cache_sentinel")?(M={once:!0,margin:"0px 0px -10% 0px"},e[20]=M):M=e[20];const T=tt(A,M),R=xt(),F=I.useRef(0),z=m||w0;let O;e[21]!==N||e[22]!==E||e[23]!==C?(O={startScale:C,endScale:E,bounce:N},e[21]=N,e[22]=E,e[23]=C,e[24]=O):O=e[24];const $=O;let W,_;e[25]!==P||e[26]!==k||e[27]!==w||e[28]!==T||e[29]!==n||e[30]!==r||e[31]!==R||e[32]!==y?(W=()=>{if(k||R){P.set("visible");return}(async()=>{try{F.current=performance.now(),A.current&&wt(A.current);e:switch(y){case"immediate":{Me({onStart:r},"start",Ne(F.current,w)),await P.start("visible");break e}case"inView":{T&&(Me({onStart:r},"start",Ne(F.current,w)),await P.start("visible"));break e}case"manual":break e;default:await P.start("visible")}A.current&&Ct(A.current),Me({onComplete:n},"complete",Ne(F.current,w))}catch(le){const ce=le;console.warn("Error in ScaleContainer animation:",ce),Me({onError:console.error},"error",ce)}})()},_=[T,y,P,k,R,w,r,n],e[25]=P,e[26]=k,e[27]=w,e[28]=T,e[29]=n,e[30]=r,e[31]=R,e[32]=y,e[33]=W,e[34]=_):(W=e[33],_=e[34]),I.useEffect(W,_);let H;e[35]!==N||e[36]!==g||e[37]!==w||e[38]!==x||e[39]!==S?(H=S||{...$t(x,w),delay:g,...N&&{type:"spring",stiffness:300,damping:20,bounce:.3}},e[35]=N,e[36]=g,e[37]=w,e[38]=x,e[39]=S,e[40]=H):H=e[40];const X=H;let G;e[41]===Symbol.for("react.memo_cache_sentinel")?(G=Mt(),e[41]=G):G=e[41];const K=G;let U;e[42]!==j||e[43]!==V?(U={transformOrigin:j,...K,...V},e[42]=j,e[43]=V,e[44]=U):U=e[44];const Z=U;let Y;e[45]!==P||e[46]!==k||e[47]!==R||e[48]!==y?(Y=()=>{y==="hover"&&!k&&!R&&P.start("visible")},e[45]=P,e[46]=k,e[47]=R,e[48]=y,e[49]=Y):Y=e[49];const J=Y;let Q;e[50]!==P||e[51]!==k||e[52]!==R||e[53]!==y?(Q=()=>{y==="hover"&&!k&&!R&&P.start("hidden")},e[50]=P,e[51]=k,e[52]=R,e[53]=y,e[54]=Q):Q=e[54];const q=Q;let te;e[55]!==P||e[56]!==k||e[57]!==R||e[58]!==y?(te=()=>{y==="focus"&&!k&&!R&&P.start("visible")},e[55]=P,e[56]=k,e[57]=R,e[58]=y,e[59]=te):te=e[59];const se=te;let ee;e[60]!==P||e[61]!==k||e[62]!==R||e[63]!==y?(ee=()=>{y==="focus"&&!k&&!R&&P.start("hidden")},e[60]=P,e[61]=k,e[62]=R,e[63]=y,e[64]=ee):ee=e[64];const ne=ee;let ie;if(e[65]!==i){const{onDrag:ae,onDragEnd:le,onDragStart:ce,...pe}=i;ie=pe,e[65]=i,e[66]=ie}else ie=e[66];const oe=k||R?"visible":"hidden";let re;return e[67]!==z||e[68]!==t||e[69]!==L||e[70]!==Z||e[71]!==P||e[72]!==$||e[73]!==ie||e[74]!==ne||e[75]!==se||e[76]!==J||e[77]!==q||e[78]!==oe||e[79]!==X?(re=B.jsx(Se.div,{ref:A,custom:$,variants:z,initial:oe,animate:P,transition:X,onMouseEnter:J,onMouseLeave:q,onFocus:se,onBlur:ne,className:L,style:Z,...ie,children:t}),e[67]=z,e[68]=t,e[69]=L,e[70]=Z,e[71]=P,e[72]=$,e[73]=ie,e[74]=ne,e[75]=se,e[76]=J,e[77]=q,e[78]=oe,e[79]=X,e[80]=re):re=e[80],re},I0=s=>{const e=ge.c(79);let t,n,r,i,o,a,l,c,u,d,f,h,p,b,v,S;e[0]!==s?({children:t,trigger:o,delay:l,duration:c,easing:u,disabled:d,intensity:f,bounceCount:h,startScale:p,variants:S,transition:v,className:b,style:a,onAnimationStart:r,onAnimationComplete:n,...i}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f,e[12]=h,e[13]=p,e[14]=b,e[15]=v,e[16]=S):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],b=e[14],v=e[15],S=e[16]);const m=o===void 0?"inView":o,y=l===void 0?0:l,g=c===void 0?.8:c,w=d===void 0?!1:d,x=f===void 0?"medium":f,k=h===void 0?1:h,C=p===void 0?.3:p,E=b===void 0?"":b;let j;e[17]!==a?(j=a===void 0?{}:a,e[17]=a,e[18]=j):j=e[18];const N=j,L=I.useRef(null),D=vt();let V;e[19]===Symbol.for("react.memo_cache_sentinel")?(V={once:!0,margin:"0px 0px -10% 0px"},e[19]=V):V=e[19];const A=tt(L,V),P=xt(),M=I.useRef(0),T=S||C0;let R;e[20]!==k||e[21]!==x||e[22]!==C?(R={intensity:x,bounceCount:k,startScale:C},e[20]=k,e[21]=x,e[22]=C,e[23]=R):R=e[23];const F=R;let z,O;e[24]!==D||e[25]!==w||e[26]!==g||e[27]!==A||e[28]!==n||e[29]!==r||e[30]!==P||e[31]!==m?(z=()=>{if(w||P){D.set("visible");return}(async()=>{try{M.current=performance.now(),L.current&&wt(L.current);e:switch(m){case"immediate":{Me({onStart:r},"start",Ne(M.current,g)),await D.start("visible");break e}case"inView":{A&&(Me({onStart:r},"start",Ne(M.current,g)),await D.start("visible"));break e}case"manual":break e;default:await D.start("visible")}L.current&&Ct(L.current),Me({onComplete:n},"complete",Ne(M.current,g))}catch(ae){const le=ae;console.warn("Error in BounceContainer animation:",le),Me({onError:console.error},"error",le)}})()},O=[A,m,D,w,P,g,r,n],e[24]=D,e[25]=w,e[26]=g,e[27]=A,e[28]=n,e[29]=r,e[30]=P,e[31]=m,e[32]=z,e[33]=O):(z=e[32],O=e[33]),I.useEffect(z,O);let $;e[34]===Symbol.for("react.memo_cache_sentinel")?($={low:{stiffness:200,damping:15,bounce:.2},medium:{stiffness:300,damping:12,bounce:.4},high:{stiffness:400,damping:8,bounce:.6}},e[34]=$):$=e[34];const W=$;let _;e[35]!==y||e[36]!==g||e[37]!==x||e[38]!==v?(_=v||{type:"spring",...W[x],delay:y,duration:g},e[35]=y,e[36]=g,e[37]=x,e[38]=v,e[39]=_):_=e[39];const H=_;let X;e[40]===Symbol.for("react.memo_cache_sentinel")?(X=Mt(),e[40]=X):X=e[40];const G=X;let K;e[41]!==N?(K={...G,...N},e[41]=N,e[42]=K):K=e[42];const U=K;let Z;e[43]!==D||e[44]!==w||e[45]!==P||e[46]!==m?(Z=()=>{m==="hover"&&!w&&!P&&D.start("visible")},e[43]=D,e[44]=w,e[45]=P,e[46]=m,e[47]=Z):Z=e[47];const Y=Z;let J;e[48]!==D||e[49]!==w||e[50]!==P||e[51]!==m?(J=()=>{m==="hover"&&!w&&!P&&D.start("hidden")},e[48]=D,e[49]=w,e[50]=P,e[51]=m,e[52]=J):J=e[52];const Q=J;let q;e[53]!==D||e[54]!==w||e[55]!==P||e[56]!==m?(q=()=>{m==="focus"&&!w&&!P&&D.start("visible")},e[53]=D,e[54]=w,e[55]=P,e[56]=m,e[57]=q):q=e[57];const te=q;let se;e[58]!==D||e[59]!==w||e[60]!==P||e[61]!==m?(se=()=>{m==="focus"&&!w&&!P&&D.start("hidden")},e[58]=D,e[59]=w,e[60]=P,e[61]=m,e[62]=se):se=e[62];const ee=se;let ne;if(e[63]!==i){const{onDrag:re,onDragEnd:ae,onDragStart:le,...ce}=i;ne=ce,e[63]=i,e[64]=ne}else ne=e[64];const ie=w||P?"visible":"hidden";let oe;return e[65]!==T||e[66]!==t||e[67]!==E||e[68]!==U||e[69]!==D||e[70]!==F||e[71]!==ne||e[72]!==ee||e[73]!==te||e[74]!==Y||e[75]!==Q||e[76]!==ie||e[77]!==H?(oe=B.jsx(Se.div,{ref:L,custom:F,variants:T,initial:ie,animate:D,transition:H,onMouseEnter:Y,onMouseLeave:Q,onFocus:te,onBlur:ee,className:E,style:U,...ne,children:t}),e[65]=T,e[66]=t,e[67]=E,e[68]=U,e[69]=D,e[70]=F,e[71]=ne,e[72]=ee,e[73]=te,e[74]=Y,e[75]=Q,e[76]=ie,e[77]=H,e[78]=oe):oe=e[78],oe},R0=s=>{const e=ge.c(79);let t,n,r,i,o,a,l,c,u,d,f,h,p,b,v,S;e[0]!==s?({children:t,trigger:o,delay:l,duration:c,easing:u,disabled:d,direction:f,perspective:h,backfaceVisible:p,variants:S,transition:v,className:b,style:a,onAnimationStart:r,onAnimationComplete:n,...i}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f,e[12]=h,e[13]=p,e[14]=b,e[15]=v,e[16]=S):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],b=e[14],v=e[15],S=e[16]);const m=o===void 0?"inView":o,y=l===void 0?0:l,g=c===void 0?.8:c,w=u===void 0?"easeOut":u,x=d===void 0?!1:d,k=f===void 0?"horizontal":f,C=h===void 0?1e3:h,E=p===void 0?!1:p,j=b===void 0?"":b;let N;e[17]!==a?(N=a===void 0?{}:a,e[17]=a,e[18]=N):N=e[18];const L=N,D=I.useRef(null),V=vt();let A;e[19]===Symbol.for("react.memo_cache_sentinel")?(A={once:!0,margin:"0px 0px -10% 0px"},e[19]=A):A=e[19];const P=tt(D,A),M=xt(),T=I.useRef(0),R=S||S0;let F;e[20]!==E||e[21]!==k||e[22]!==C?(F={direction:k,perspective:C,backfaceVisible:E},e[20]=E,e[21]=k,e[22]=C,e[23]=F):F=e[23];const z=F;let O,$;e[24]!==V||e[25]!==x||e[26]!==g||e[27]!==P||e[28]!==n||e[29]!==r||e[30]!==M||e[31]!==m?(O=()=>{if(x||M){V.set("visible");return}(async()=>{try{T.current=performance.now(),D.current&&wt(D.current);e:switch(m){case"immediate":{Me({onStart:r},"start",Ne(T.current,g)),await V.start("visible");break e}case"inView":{P&&(Me({onStart:r},"start",Ne(T.current,g)),await V.start("visible"));break e}case"manual":break e;default:await V.start("visible")}D.current&&Ct(D.current),Me({onComplete:n},"complete",Ne(T.current,g))}catch(ae){const le=ae;console.warn("Error in FlipContainer animation:",le),Me({onError:console.error},"error",le)}})()},$=[P,m,V,x,M,g,r,n],e[24]=V,e[25]=x,e[26]=g,e[27]=P,e[28]=n,e[29]=r,e[30]=M,e[31]=m,e[32]=O,e[33]=$):(O=e[32],$=e[33]),I.useEffect(O,$);let W;e[34]!==y||e[35]!==g||e[36]!==w||e[37]!==v?(W=v||{...$t(w,g),delay:y},e[34]=y,e[35]=g,e[36]=w,e[37]=v,e[38]=W):W=e[38];const _=W;let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=Mt(),e[39]=H):H=e[39];const X=H,G=`${C}px`;let K;e[40]!==L||e[41]!==G?(K={perspective:G,transformStyle:"preserve-3d",...X,...L},e[40]=L,e[41]=G,e[42]=K):K=e[42];const U=K;let Z;e[43]!==V||e[44]!==x||e[45]!==M||e[46]!==m?(Z=()=>{m==="hover"&&!x&&!M&&V.start("visible")},e[43]=V,e[44]=x,e[45]=M,e[46]=m,e[47]=Z):Z=e[47];const Y=Z;let J;e[48]!==V||e[49]!==x||e[50]!==M||e[51]!==m?(J=()=>{m==="hover"&&!x&&!M&&V.start("hidden")},e[48]=V,e[49]=x,e[50]=M,e[51]=m,e[52]=J):J=e[52];const Q=J;let q;e[53]!==V||e[54]!==x||e[55]!==M||e[56]!==m?(q=()=>{m==="focus"&&!x&&!M&&V.start("visible")},e[53]=V,e[54]=x,e[55]=M,e[56]=m,e[57]=q):q=e[57];const te=q;let se;e[58]!==V||e[59]!==x||e[60]!==M||e[61]!==m?(se=()=>{m==="focus"&&!x&&!M&&V.start("hidden")},e[58]=V,e[59]=x,e[60]=M,e[61]=m,e[62]=se):se=e[62];const ee=se;let ne;if(e[63]!==i){const{onDrag:re,onDragEnd:ae,onDragStart:le,...ce}=i;ne=ce,e[63]=i,e[64]=ne}else ne=e[64];const ie=x||M?"visible":"hidden";let oe;return e[65]!==R||e[66]!==t||e[67]!==j||e[68]!==U||e[69]!==V||e[70]!==z||e[71]!==ne||e[72]!==ee||e[73]!==te||e[74]!==Y||e[75]!==Q||e[76]!==ie||e[77]!==_?(oe=B.jsx(Se.div,{ref:D,custom:z,variants:R,initial:ie,animate:V,transition:_,onMouseEnter:Y,onMouseLeave:Q,onFocus:te,onBlur:ee,className:j,style:U,...ne,children:t}),e[65]=R,e[66]=t,e[67]=j,e[68]=U,e[69]=V,e[70]=z,e[71]=ne,e[72]=ee,e[73]=te,e[74]=Y,e[75]=Q,e[76]=ie,e[77]=_,e[78]=oe):oe=e[78],oe},j0=s=>{const e=ge.c(82);let t,n,r,i,o,a,l,c,u,d,f,h,p,b,v,S;e[0]!==s?({children:t,trigger:o,delay:l,duration:c,easing:u,disabled:d,staggerDelay:f,staggerDirection:h,childSelector:p,variants:S,transition:v,className:b,style:a,onAnimationStart:r,onAnimationComplete:n,...i}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f,e[12]=h,e[13]=p,e[14]=b,e[15]=v,e[16]=S):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],b=e[14],v=e[15],S=e[16]);const m=o===void 0?"inView":o,y=l===void 0?0:l,g=c===void 0?.6:c,w=u===void 0?"easeOut":u,x=d===void 0?!1:d,k=f===void 0?.1:f,C=h===void 0?"normal":h,E=p===void 0?"> *":p,j=b===void 0?"":b;let N;e[17]!==a?(N=a===void 0?{}:a,e[17]=a,e[18]=N):N=e[18];const L=N,D=I.useRef(null),V=vt();let A;e[19]===Symbol.for("react.memo_cache_sentinel")?(A={once:!0,margin:"0px 0px -10% 0px"},e[19]=A):A=e[19];const P=tt(D,A),M=xt(),T=I.useRef(0),R=S||T0;let F;e[20]!==k||e[21]!==C?(F={staggerDelay:k,staggerDirection:C},e[20]=k,e[21]=C,e[22]=F):F=e[22];const z=F;let O,$;e[23]!==E||e[24]!==V||e[25]!==x||e[26]!==g||e[27]!==P||e[28]!==n||e[29]!==r||e[30]!==M||e[31]!==m?(O=()=>{if(x||M){V.set("visible");return}(async()=>{try{T.current=performance.now(),D.current&&(wt(D.current),D.current.querySelectorAll(E).forEach(N0));e:switch(m){case"immediate":{Me({onStart:r},"start",Ne(T.current,g)),await V.start("visible");break e}case"inView":{P&&(Me({onStart:r},"start",Ne(T.current,g)),await V.start("visible"));break e}case"manual":break e;default:await V.start("visible")}D.current&&(Ct(D.current),D.current.querySelectorAll(E).forEach(D0)),Me({onComplete:n},"complete",Ne(T.current,g))}catch(ce){const pe=ce;console.warn("Error in StaggerContainer animation:",pe),Me({onError:console.error},"error",pe)}})()},$=[P,m,V,x,M,g,r,n,E],e[23]=E,e[24]=V,e[25]=x,e[26]=g,e[27]=P,e[28]=n,e[29]=r,e[30]=M,e[31]=m,e[32]=O,e[33]=$):(O=e[32],$=e[33]),I.useEffect(O,$);let W;e[34]!==y||e[35]!==g||e[36]!==w||e[37]!==v?(W=v||{...$t(w,g),delay:y},e[34]=y,e[35]=g,e[36]=w,e[37]=v,e[38]=W):W=e[38];const _=W;let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=Mt(),e[39]=H):H=e[39];const X=H;let G;e[40]!==L?(G={...X,...L},e[40]=L,e[41]=G):G=e[41];const K=G;let U;e[42]!==V||e[43]!==x||e[44]!==M||e[45]!==m?(U=()=>{m==="hover"&&!x&&!M&&V.start("visible")},e[42]=V,e[43]=x,e[44]=M,e[45]=m,e[46]=U):U=e[46];const Z=U;let Y;e[47]!==V||e[48]!==x||e[49]!==M||e[50]!==m?(Y=()=>{m==="hover"&&!x&&!M&&V.start("hidden")},e[47]=V,e[48]=x,e[49]=M,e[50]=m,e[51]=Y):Y=e[51];const J=Y;let Q;e[52]!==V||e[53]!==x||e[54]!==M||e[55]!==m?(Q=()=>{m==="focus"&&!x&&!M&&V.start("visible")},e[52]=V,e[53]=x,e[54]=M,e[55]=m,e[56]=Q):Q=e[56];const q=Q;let te;e[57]!==V||e[58]!==x||e[59]!==M||e[60]!==m?(te=()=>{m==="focus"&&!x&&!M&&V.start("hidden")},e[57]=V,e[58]=x,e[59]=M,e[60]=m,e[61]=te):te=e[61];const se=te;let ee;e[62]!==t?(ee=()=>I.Children.map(t,B0),e[62]=t,e[63]=ee):ee=e[63];const ne=ee;let ie;if(e[64]!==i){const{onDrag:le,onDragEnd:ce,onDragStart:pe,...ye}=i;ie=ye,e[64]=i,e[65]=ie}else ie=e[65];const oe=x||M?"visible":"hidden";let re;e[66]!==ne?(re=ne(),e[66]=ne,e[67]=re):re=e[67];let ae;return e[68]!==j||e[69]!==K||e[70]!==R||e[71]!==V||e[72]!==z||e[73]!==ie||e[74]!==se||e[75]!==q||e[76]!==Z||e[77]!==J||e[78]!==oe||e[79]!==re||e[80]!==_?(ae=B.jsx(Se.div,{ref:D,custom:z,variants:R,initial:oe,animate:V,transition:_,onMouseEnter:Z,onMouseLeave:J,onFocus:q,onBlur:se,className:j,style:K,...ie,children:re}),e[68]=j,e[69]=K,e[70]=R,e[71]=V,e[72]=z,e[73]=ie,e[74]=se,e[75]=q,e[76]=Z,e[77]=J,e[78]=oe,e[79]=re,e[80]=_,e[81]=ae):ae=e[81],ae};function N0(s){s instanceof HTMLElement&&wt(s)}function D0(s){s instanceof HTMLElement&&Ct(s)}function B0(s,e){return I.isValidElement(s)?B.jsx(Se.div,{variants:k0,style:{display:"contents"},children:s},e):s}const L0=s=>{const e=ge.c(86);let t,n,r,i,o,a,l,c,u,d,f,h,p,b,v,S;e[0]!==s?({children:t,trigger:o,delay:l,duration:c,easing:u,disabled:d,morphStates:f,morphInterval:h,autoMorph:p,variants:S,transition:v,className:b,style:a,onAnimationStart:r,onAnimationComplete:n,...i}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f,e[12]=h,e[13]=p,e[14]=b,e[15]=v,e[16]=S):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],b=e[14],v=e[15],S=e[16]);const m=o===void 0?"inView":o,y=l===void 0?0:l,g=c===void 0?1:c,w=u===void 0?"easeInOut":u,x=d===void 0?!1:d;let k;e[17]!==f?(k=f===void 0?[{width:"200px",height:"200px",borderRadius:"0px",backgroundColor:"#3b82f6"},{width:"300px",height:"150px",borderRadius:"20px",backgroundColor:"#ef4444"},{width:"250px",height:"250px",borderRadius:"50%",backgroundColor:"#10b981"}]:f,e[17]=f,e[18]=k):k=e[18];const C=k,E=h===void 0?3e3:h,j=p===void 0?!0:p,N=b===void 0?"":b;let L;e[19]!==a?(L=a===void 0?{}:a,e[19]=a,e[20]=L):L=e[20];const D=L,V=I.useRef(null),A=vt();let P;e[21]===Symbol.for("react.memo_cache_sentinel")?(P={once:!0,margin:"0px 0px -10% 0px"},e[21]=P):P=e[21];const M=tt(V,P),T=xt(),[R,F]=I.useState(0),z=I.useRef(0),O=I.useRef(void 0);let $;e[22]!==C||e[23]!==S?($=S||A0(C),e[22]=C,e[23]=S,e[24]=$):$=e[24];const W=$;let _;e[25]!==A||e[26]!==x||e[27]!==g||e[28]!==M||e[29]!==n||e[30]!==r||e[31]!==T||e[32]!==m?(_=[M,m,A,x,T,g,r,n],e[25]=A,e[26]=x,e[27]=g,e[28]=M,e[29]=n,e[30]=r,e[31]=T,e[32]=m,e[33]=_):_=e[33],I.useEffect(()=>{if(x||T){A.set("initial");return}return(async()=>{try{z.current=performance.now(),V.current&&wt(V.current);e:switch(m){case"immediate":{Me({onStart:r},"start",Ne(z.current,g)),await A.start("initial"),H();break e}case"inView":{M&&(Me({onStart:r},"start",Ne(z.current,g)),await A.start("initial"),H());break e}case"manual":{await A.start("initial");break e}default:await A.start("initial"),H()}Me({onComplete:n},"complete",Ne(z.current,g))}catch(ve){const Ce=ve;console.warn("Error in MorphingContainer animation:",Ce),Me({onError:console.error},"error",Ce)}})(),()=>{O.current&&clearInterval(O.current)}},_);const H=()=>{!j||C.length<=1||(O.current=window.setInterval(()=>{F(be=>{const ve=(be+1)%C.length;return A.start(`morph${ve}`),ve})},E))};let X;e[34]!==A||e[35]!==C?(X=be=>{be>=0&&be<C.length&&(F(be),A.start(`morph${be}`))},e[34]=A,e[35]=C,e[36]=X):X=e[36];const G=X;let K;e[37]!==y||e[38]!==g||e[39]!==w||e[40]!==v?(K=v||{...$t(w,g),delay:y},e[37]=y,e[38]=g,e[39]=w,e[40]=v,e[41]=K):K=e[41];const U=K;let Z;e[42]===Symbol.for("react.memo_cache_sentinel")?(Z=Mt(),e[42]=Z):Z=e[42];const Y=Z;let J;e[43]!==D?(J={display:"flex",alignItems:"center",justifyContent:"center",...Y,...D},e[43]=D,e[44]=J):J=e[44];const Q=J;let q;e[45]!==R||e[46]!==x||e[47]!==C||e[48]!==G||e[49]!==T||e[50]!==m?(q=()=>{if(m==="hover"&&!x&&!T){const be=(R+1)%C.length;G(be)}},e[45]=R,e[46]=x,e[47]=C,e[48]=G,e[49]=T,e[50]=m,e[51]=q):q=e[51];const te=q;let se;e[52]!==x||e[53]!==G||e[54]!==T||e[55]!==m?(se=()=>{m==="hover"&&!x&&!T&&G(0)},e[52]=x,e[53]=G,e[54]=T,e[55]=m,e[56]=se):se=e[56];const ee=se;let ne;e[57]!==R||e[58]!==x||e[59]!==C||e[60]!==G||e[61]!==T||e[62]!==m?(ne=()=>{if(m==="focus"&&!x&&!T){const be=(R+1)%C.length;G(be)}},e[57]=R,e[58]=x,e[59]=C,e[60]=G,e[61]=T,e[62]=m,e[63]=ne):ne=e[63];const ie=ne;let oe;e[64]!==x||e[65]!==G||e[66]!==T||e[67]!==m?(oe=()=>{m==="focus"&&!x&&!T&&G(0)},e[64]=x,e[65]=G,e[66]=T,e[67]=m,e[68]=oe):oe=e[68];const re=oe;let ae,le;e[69]===Symbol.for("react.memo_cache_sentinel")?(ae=()=>()=>{V.current&&Ct(V.current),O.current&&clearInterval(O.current)},le=[],e[69]=ae,e[70]=le):(ae=e[69],le=e[70]),I.useEffect(ae,le);let ce;if(e[71]!==i){const{onDrag:be,onDragEnd:ve,onDragStart:Ce,...ue}=i;ce=ue,e[71]=i,e[72]=ce}else ce=e[72];const pe="initial";let ye;return e[73]!==W||e[74]!==t||e[75]!==N||e[76]!==Q||e[77]!==A||e[78]!==ce||e[79]!==re||e[80]!==ie||e[81]!==te||e[82]!==ee||e[83]!==pe||e[84]!==U?(ye=B.jsx(Se.div,{ref:V,variants:W,initial:pe,animate:A,transition:U,onMouseEnter:te,onMouseLeave:ee,onFocus:ie,onBlur:re,className:N,style:Q,...ce,children:t}),e[73]=W,e[74]=t,e[75]=N,e[76]=Q,e[77]=A,e[78]=ce,e[79]=re,e[80]=ie,e[81]=te,e[82]=ee,e[83]=pe,e[84]=U,e[85]=ye):ye=e[85],ye},O0=s=>{const e=ge.c(17),[t,n]=I.useState(0),r=vt();let i;e[0]!==r||e[1]!==t||e[2]!==s?(i=()=>{const f=(t+1)%s.length;n(f),r.start(`morph${f}`)},e[0]=r,e[1]=t,e[2]=s,e[3]=i):i=e[3];const o=i;let a;e[4]!==r||e[5]!==t||e[6]!==s?(a=()=>{const f=t===0?s.length-1:t-1;n(f),r.start(`morph${f}`)},e[4]=r,e[5]=t,e[6]=s,e[7]=a):a=e[7];const l=a;let c;e[8]!==r||e[9]!==s?(c=f=>{f>=0&&f<s.length&&(n(f),r.start(`morph${f}`))},e[8]=r,e[9]=s,e[10]=c):c=e[10];const u=c;let d;return e[11]!==r||e[12]!==t||e[13]!==u||e[14]!==o||e[15]!==l?(d={currentIndex:t,controls:r,morphToNext:o,morphToPrevious:l,morphToIndex:u},e[11]=r,e[12]=t,e[13]=u,e[14]=o,e[15]=l,e[16]=d):d=e[16],d},$0=s=>{const e=ge.c(98);let t,n,r,i,o,a,l,c,u,d,f,h,p,b,v,S,m;e[0]!==s?({children:t,trigger:o,delay:c,duration:u,easing:d,disabled:f,speed:h,direction:p,offset:b,enableOnMobile:v,variants:m,transition:S,className:a,style:l,onAnimationStart:r,onAnimationComplete:n,...i}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f,e[12]=h,e[13]=p,e[14]=b,e[15]=v,e[16]=S,e[17]=m):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],b=e[14],v=e[15],S=e[16],m=e[17]);const y=o===void 0?"inView":o,g=c===void 0?0:c,w=u===void 0?1:u,x=d===void 0?"easeInOut":d,k=f===void 0?!1:f,C=h===void 0?.5:h,E=p===void 0?"vertical":p,j=v===void 0?!1:v,N=a===void 0?"":a;let L;e[18]!==l?(L=l===void 0?{}:l,e[18]=l,e[19]=L):L=e[19];const D=L,V=I.useRef(null),A=vt();let P;e[20]===Symbol.for("react.memo_cache_sentinel")?(P={once:!0,margin:"0px 0px -10% 0px"},e[20]=P):P=e[20];const M=tt(V,P),T=xt(),[R,F]=I.useState(!1),z=I.useRef(0),{scrollY:O}=nu(),$=m||V0;let W,_;e[21]===Symbol.for("react.memo_cache_sentinel")?(W=()=>{const Ke=()=>{F(window.innerWidth<=768)};return Ke(),window.addEventListener("resize",Ke),()=>{window.removeEventListener("resize",Ke)}},_=[],e[21]=W,e[22]=_):(W=e[21],_=e[22]),I.useEffect(W,_);let H;e[23]===Symbol.for("react.memo_cache_sentinel")?(H=[0,1e3],e[23]=H):H=e[23];const X=-C*100;let G;e[24]!==X?(G=[0,X],e[24]=X,e[25]=G):G=e[25];const K=ds(O,H,G);let U;e[26]===Symbol.for("react.memo_cache_sentinel")?(U=[0,1e3],e[26]=U):U=e[26];const Z=-C*100;let Y;e[27]!==Z?(Y=[0,Z],e[27]=Z,e[28]=Y):Y=e[28];const J=ds(O,U,Y);let Q;e[29]===Symbol.for("react.memo_cache_sentinel")?(Q={stiffness:100,damping:30,mass:1},e[29]=Q):Q=e[29];const q=Hn(K,Q);let te;e[30]===Symbol.for("react.memo_cache_sentinel")?(te={stiffness:100,damping:30,mass:1},e[30]=te):te=e[30];const se=Hn(J,te),ee=!k&&!T&&(j||!R);let ne,ie;e[31]!==A||e[32]!==k||e[33]!==w||e[34]!==j||e[35]!==M||e[36]!==R||e[37]!==n||e[38]!==r||e[39]!==T||e[40]!==y?(ne=()=>{if(k||T||R&&!j){A.set("visible");return}(async()=>{try{z.current=performance.now(),V.current&&wt(V.current);e:switch(y){case"immediate":{Me({onStart:r},"start",Ne(z.current,w)),await A.start("visible");break e}case"inView":{M&&(Me({onStart:r},"start",Ne(z.current,w)),await A.start("visible"));break e}case"manual":{await A.start("hidden");break e}default:await A.start("visible")}Me({onComplete:n},"complete",Ne(z.current,w))}catch(Ze){const st=Ze;console.warn("Error in ParallaxContainer animation:",st),Me({onError:console.error},"error",st)}})()},ie=[M,y,A,k,T,R,j,w,r,n],e[31]=A,e[32]=k,e[33]=w,e[34]=j,e[35]=M,e[36]=R,e[37]=n,e[38]=r,e[39]=T,e[40]=y,e[41]=ne,e[42]=ie):(ne=e[41],ie=e[42]),I.useEffect(ne,ie);let oe;e[43]!==g||e[44]!==w||e[45]!==x||e[46]!==S?(oe=S||{...$t(x,w),delay:g},e[43]=g,e[44]=w,e[45]=x,e[46]=S,e[47]=oe):oe=e[47];const re=oe;let ae;e[48]===Symbol.for("react.memo_cache_sentinel")?(ae=Mt(),e[48]=ae):ae=e[48];const le=ae;let ce;e[49]!==D?(ce={...le,...D},e[49]=D,e[50]=ce):ce=e[50];const pe=ce;let ye;e[51]!==E||e[52]!==ee||e[53]!==se||e[54]!==q?(ye=()=>{if(!ee)return{};switch(E){case"horizontal":return{x:se};case"both":return{x:se,y:q};case"vertical":default:return{y:q}}},e[51]=E,e[52]=ee,e[53]=se,e[54]=q,e[55]=ye):ye=e[55];const be=ye;let ve;e[56]!==A||e[57]!==k||e[58]!==T||e[59]!==y?(ve=()=>{y==="hover"&&!k&&!T&&A.start("visible")},e[56]=A,e[57]=k,e[58]=T,e[59]=y,e[60]=ve):ve=e[60];const Ce=ve;let ue;e[61]!==A||e[62]!==k||e[63]!==T||e[64]!==y?(ue=()=>{y==="hover"&&!k&&!T&&A.start("hidden")},e[61]=A,e[62]=k,e[63]=T,e[64]=y,e[65]=ue):ue=e[65];const me=ue;let he;e[66]!==A||e[67]!==k||e[68]!==T||e[69]!==y?(he=()=>{y==="focus"&&!k&&!T&&A.start("visible")},e[66]=A,e[67]=k,e[68]=T,e[69]=y,e[70]=he):he=e[70];const xe=he;let Te;e[71]!==A||e[72]!==k||e[73]!==T||e[74]!==y?(Te=()=>{y==="focus"&&!k&&!T&&A.start("hidden")},e[71]=A,e[72]=k,e[73]=T,e[74]=y,e[75]=Te):Te=e[75];const Ve=Te;let Ae,ze;e[76]===Symbol.for("react.memo_cache_sentinel")?(Ae=()=>()=>{V.current&&Ct(V.current)},ze=[],e[76]=Ae,e[77]=ze):(Ae=e[76],ze=e[77]),I.useEffect(Ae,ze);let Re;if(e[78]!==i){const{onDrag:Ke,onDragEnd:Ze,onDragStart:st,...Ee}=i;Re=Ee,e[78]=i,e[79]=Re}else Re=e[79];const _e=k||T?"visible":"hidden";let Ge;e[80]!==be?(Ge=be(),e[80]=be,e[81]=Ge):Ge=e[81];let Oe;e[82]!==pe||e[83]!==Ge?(Oe={...pe,...Ge},e[82]=pe,e[83]=Ge,e[84]=Oe):Oe=e[84];let He;return e[85]!==$||e[86]!==t||e[87]!==N||e[88]!==A||e[89]!==Re||e[90]!==Ve||e[91]!==xe||e[92]!==Ce||e[93]!==me||e[94]!==_e||e[95]!==Oe||e[96]!==re?(He=B.jsx(Se.div,{ref:V,variants:$,initial:_e,animate:A,transition:re,style:Oe,onMouseEnter:Ce,onMouseLeave:me,onFocus:xe,onBlur:Ve,className:N,...Re,children:t}),e[85]=$,e[86]=t,e[87]=N,e[88]=A,e[89]=Re,e[90]=Ve,e[91]=xe,e[92]=Ce,e[93]=me,e[94]=_e,e[95]=Oe,e[96]=re,e[97]=He):He=e[97],He},F0=s=>{const e=ge.c(26),{scrollY:t}=nu(),[n,r]=I.useState(!1),i=xt();let o;e[0]!==s?(o=s||{},e[0]=s,e[1]=o):o=e[1];const{speed:a,direction:l,enableOnMobile:c}=o,u=a===void 0?.5:a,d=l===void 0?"vertical":l,f=c===void 0?!1:c;let h,p;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{const P=()=>{r(window.innerWidth<=768)};return P(),window.addEventListener("resize",P),()=>{window.removeEventListener("resize",P)}},p=[],e[2]=h,e[3]=p):(h=e[2],p=e[3]),I.useEffect(h,p);const b=!i&&(f||!n);let v;e[4]===Symbol.for("react.memo_cache_sentinel")?(v=[0,1e3],e[4]=v):v=e[4];const S=-u*100;let m;e[5]!==S?(m=[0,S],e[5]=S,e[6]=m):m=e[6];const y=ds(t,v,m);let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=[0,1e3],e[7]=g):g=e[7];const w=-u*100;let x;e[8]!==w?(x=[0,w],e[8]=w,e[9]=x):x=e[9];const k=ds(t,g,x);let C;e[10]===Symbol.for("react.memo_cache_sentinel")?(C={stiffness:100,damping:30,mass:1},e[10]=C):C=e[10];const E=Hn(y,C);let j;e[11]===Symbol.for("react.memo_cache_sentinel")?(j={stiffness:100,damping:30,mass:1},e[11]=j):j=e[11];const N=Hn(k,j);let L;e[12]!==d||e[13]!==b||e[14]!==N||e[15]!==E?(L=()=>{if(!b)return{};switch(d){case"horizontal":return{x:N};case"both":return{x:N,y:E};case"vertical":default:return{y:E}}},e[12]=d,e[13]=b,e[14]=N,e[15]=E,e[16]=L):L=e[16];const D=L;let V;e[17]!==D?(V=D(),e[17]=D,e[18]=V):V=e[18];let A;return e[19]!==b||e[20]!==n||e[21]!==t||e[22]!==N||e[23]!==E||e[24]!==V?(A={isActive:b,isMobile:n,scrollY:t,transformValue:V,smoothY:E,smoothX:N},e[19]=b,e[20]=n,e[21]=t,e[22]=N,e[23]=E,e[24]=V,e[25]=A):A=e[25],A},gs={smooth:{type:"tween",duration:.3,ease:"easeOut"},bounce:{type:"spring",damping:10,stiffness:400,mass:1}},z0={initial:(s=0)=>({opacity:s}),animate:(s=1)=>({opacity:s}),exit:{opacity:0}},_0={initial:({direction:s="up",distance:e=50})=>{switch(s){case"up":return{y:e,opacity:0};case"down":return{y:-e,opacity:0};case"left":return{x:e,opacity:0};case"right":return{x:-e,opacity:0};default:return{y:e,opacity:0}}},animate:{x:0,y:0,opacity:1},exit:({direction:s="up",distance:e=50})=>{switch(s){case"up":return{y:-e,opacity:0};case"down":return{y:e,opacity:0};case"left":return{x:-e,opacity:0};case"right":return{x:e,opacity:0};default:return{y:-e,opacity:0}}}},W0={initial:(s=0)=>({scale:s,opacity:0}),animate:(s=1)=>({scale:s,opacity:1}),exit:{scale:0,opacity:0},hover:{scale:1.05},tap:{scale:.95}},G0={initial:({direction:s="clockwise",degrees:e=180})=>({rotate:s==="clockwise"?-e:e,opacity:0}),animate:{rotate:0,opacity:1},exit:({direction:s="clockwise",degrees:e=180})=>({rotate:s==="clockwise"?e:-e,opacity:0})},U0={initial:{y:0,opacity:0},animate:({amplitude:s=20,frequency:e=2})=>({y:[0,-s,0,-s*.5,0],opacity:1,transition:{duration:.6,times:[0,.2,.4,.6,1],repeat:e-1}}),exit:{y:0,opacity:0}},H0=s=>{const e=ge.c(25),{children:t,className:n,delay:r,duration:i,disabled:o,trigger:a,once:l,threshold:c,from:u,to:d,style:f}=s,h=n===void 0?"":n,p=r===void 0?0:r,b=i===void 0?.3:i,v=o===void 0?!1:o,S=a===void 0?"inView":a,m=l===void 0?!0:l,y=c===void 0?.1:c,g=u===void 0?0:u,w=d===void 0?1:d,x=I.useRef(null);let k;e[0]!==m||e[1]!==y?(k={once:m,amount:y},e[0]=m,e[1]=y,e[2]=k):k=e[2];const C=tt(x,k);if(v){let T;return e[3]!==t||e[4]!==h||e[5]!==f?(T=B.jsx("div",{className:h,style:f,children:t}),e[3]=t,e[4]=h,e[5]=f,e[6]=T):T=e[6],T}let E;e[7]!==C||e[8]!==S?(E=()=>{switch(S){case"inView":return C?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},e[7]=C,e[8]=S,e[9]=E):E=e[9];const j=E;let N;e[10]!==p||e[11]!==b?(N={...gs.smooth,duration:b,delay:p},e[10]=p,e[11]=b,e[12]=N):N=e[12];const L=N,D=j();let V;e[13]!==g||e[14]!==w?(V={from:g,to:w},e[13]=g,e[14]=w,e[15]=V):V=e[15];const A=S==="hover"?"animate":void 0,P=S==="tap"?"animate":void 0;let M;return e[16]!==t||e[17]!==h||e[18]!==f||e[19]!==D||e[20]!==V||e[21]!==A||e[22]!==P||e[23]!==L?(M=B.jsx(Se.div,{ref:x,className:h,style:f,variants:z0,initial:"initial",animate:D,exit:"exit",custom:V,transition:L,whileHover:A,whileTap:P,children:t}),e[16]=t,e[17]=h,e[18]=f,e[19]=D,e[20]=V,e[21]=A,e[22]=P,e[23]=L,e[24]=M):M=e[24],M},K0=s=>{const e=ge.c(25),{children:t,className:n,delay:r,duration:i,disabled:o,trigger:a,once:l,threshold:c,direction:u,distance:d,style:f}=s,h=n===void 0?"":n,p=r===void 0?0:r,b=i===void 0?.3:i,v=o===void 0?!1:o,S=a===void 0?"inView":a,m=l===void 0?!0:l,y=c===void 0?.1:c,g=u===void 0?"up":u,w=d===void 0?50:d,x=I.useRef(null);let k;e[0]!==m||e[1]!==y?(k={once:m,amount:y},e[0]=m,e[1]=y,e[2]=k):k=e[2];const C=tt(x,k);if(v){let R;return e[3]!==t||e[4]!==h||e[5]!==f?(R=B.jsx("div",{className:h,style:f,children:t}),e[3]=t,e[4]=h,e[5]=f,e[6]=R):R=e[6],R}let E;e[7]!==C||e[8]!==S?(E=()=>{switch(S){case"inView":return C?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},e[7]=C,e[8]=S,e[9]=E):E=e[9];const j=E;let N;e[10]!==p||e[11]!==b?(N={...gs.smooth,duration:b,delay:p},e[10]=p,e[11]=b,e[12]=N):N=e[12];const L=N;let D;e[13]!==g||e[14]!==w?(D={direction:g,distance:w},e[13]=g,e[14]=w,e[15]=D):D=e[15];const V=D,A=j(),P=S==="hover"?"animate":void 0,M=S==="tap"?"animate":void 0;let T;return e[16]!==t||e[17]!==h||e[18]!==V||e[19]!==f||e[20]!==A||e[21]!==P||e[22]!==M||e[23]!==L?(T=B.jsx(Se.div,{ref:x,className:h,style:f,variants:_0,initial:"initial",animate:A,exit:"exit",custom:V,transition:L,whileHover:P,whileTap:M,children:t}),e[16]=t,e[17]=h,e[18]=V,e[19]=f,e[20]=A,e[21]=P,e[22]=M,e[23]=L,e[24]=T):T=e[24],T},Y0=s=>{const e=ge.c(28),{children:t,className:n,delay:r,duration:i,disabled:o,trigger:a,once:l,threshold:c,from:u,to:d,transformOrigin:f,style:h}=s,p=n===void 0?"":n,b=r===void 0?0:r,v=i===void 0?.3:i,S=o===void 0?!1:o,m=a===void 0?"inView":a,y=l===void 0?!0:l,g=c===void 0?.1:c,w=u===void 0?0:u,x=d===void 0?1:d,k=f===void 0?"center":f,C=I.useRef(null);let E;e[0]!==y||e[1]!==g?(E={once:y,amount:g},e[0]=y,e[1]=g,e[2]=E):E=e[2];const j=tt(C,E);if(S){let $;return e[3]!==t||e[4]!==p||e[5]!==h?($=B.jsx("div",{className:p,style:h,children:t}),e[3]=t,e[4]=p,e[5]=h,e[6]=$):$=e[6],$}let N;e[7]!==j||e[8]!==m?(N=()=>{switch(m){case"inView":return j?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},e[7]=j,e[8]=m,e[9]=N):N=e[9];const L=N;let D;e[10]!==b||e[11]!==v?(D={...gs.bounce,duration:v,delay:b},e[10]=b,e[11]=v,e[12]=D):D=e[12];const V=D;let A;e[13]!==w||e[14]!==x?(A={from:w,to:x},e[13]=w,e[14]=x,e[15]=A):A=e[15];const P=A;let M;e[16]!==h||e[17]!==k?(M={...h,transformOrigin:k},e[16]=h,e[17]=k,e[18]=M):M=e[18];const T=M,R=L(),F=m==="hover"?"hover":void 0,z=m==="tap"?"tap":void 0;let O;return e[19]!==t||e[20]!==p||e[21]!==P||e[22]!==T||e[23]!==R||e[24]!==F||e[25]!==z||e[26]!==V?(O=B.jsx(Se.div,{ref:C,className:p,style:T,variants:W0,initial:"initial",animate:R,exit:"exit",custom:P,transition:V,whileHover:F,whileTap:z,children:t}),e[19]=t,e[20]=p,e[21]=P,e[22]=T,e[23]=R,e[24]=F,e[25]=z,e[26]=V,e[27]=O):O=e[27],O},X0=s=>{const e=ge.c(28),{children:t,className:n,delay:r,duration:i,disabled:o,trigger:a,once:l,threshold:c,direction:u,degrees:d,transformOrigin:f,style:h}=s,p=n===void 0?"":n,b=r===void 0?0:r,v=i===void 0?.5:i,S=o===void 0?!1:o,m=a===void 0?"inView":a,y=l===void 0?!0:l,g=c===void 0?.1:c,w=u===void 0?"clockwise":u,x=d===void 0?180:d,k=f===void 0?"center":f,C=I.useRef(null);let E;e[0]!==y||e[1]!==g?(E={once:y,amount:g},e[0]=y,e[1]=g,e[2]=E):E=e[2];const j=tt(C,E);if(S){let $;return e[3]!==t||e[4]!==p||e[5]!==h?($=B.jsx("div",{className:p,style:h,children:t}),e[3]=t,e[4]=p,e[5]=h,e[6]=$):$=e[6],$}let N;e[7]!==j||e[8]!==m?(N=()=>{switch(m){case"inView":return j?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},e[7]=j,e[8]=m,e[9]=N):N=e[9];const L=N;let D;e[10]!==b||e[11]!==v?(D={...gs.smooth,duration:v,delay:b},e[10]=b,e[11]=v,e[12]=D):D=e[12];const V=D;let A;e[13]!==x||e[14]!==w?(A={direction:w,degrees:x},e[13]=x,e[14]=w,e[15]=A):A=e[15];const P=A;let M;e[16]!==h||e[17]!==k?(M={...h,transformOrigin:k},e[16]=h,e[17]=k,e[18]=M):M=e[18];const T=M,R=L(),F=m==="hover"?"animate":void 0,z=m==="tap"?"animate":void 0;let O;return e[19]!==t||e[20]!==p||e[21]!==P||e[22]!==T||e[23]!==R||e[24]!==F||e[25]!==z||e[26]!==V?(O=B.jsx(Se.div,{ref:C,className:p,style:T,variants:G0,initial:"initial",animate:R,exit:"exit",custom:P,transition:V,whileHover:F,whileTap:z,children:t}),e[19]=t,e[20]=p,e[21]=P,e[22]=T,e[23]=R,e[24]=F,e[25]=z,e[26]=V,e[27]=O):O=e[27],O},q0=s=>{const e=ge.c(26),{children:t,className:n,delay:r,duration:i,disabled:o,trigger:a,once:l,threshold:c,amplitude:u,frequency:d,damping:f,style:h}=s,p=n===void 0?"":n,b=r===void 0?0:r,v=i===void 0?.6:i,S=o===void 0?!1:o,m=a===void 0?"inView":a,y=l===void 0?!0:l,g=c===void 0?.1:c,w=u===void 0?20:u,x=d===void 0?1:d,k=f===void 0?.8:f,C=I.useRef(null);let E;e[0]!==y||e[1]!==g?(E={once:y,amount:g},e[0]=y,e[1]=g,e[2]=E):E=e[2];const j=tt(C,E);if(S){let z;return e[3]!==t||e[4]!==p||e[5]!==h?(z=B.jsx("div",{className:p,style:h,children:t}),e[3]=t,e[4]=p,e[5]=h,e[6]=z):z=e[6],z}let N;e[7]!==j||e[8]!==m?(N=()=>{switch(m){case"inView":return j?"animate":"initial";case"manual":return"initial";case"hover":case"tap":return"animate";default:return"animate"}},e[7]=j,e[8]=m,e[9]=N):N=e[9];const L=N;let D;e[10]!==k||e[11]!==b||e[12]!==v?(D={...gs.bounce,duration:v,delay:b,damping:k},e[10]=k,e[11]=b,e[12]=v,e[13]=D):D=e[13];const V=D;let A;e[14]!==w||e[15]!==x?(A={amplitude:w,frequency:x},e[14]=w,e[15]=x,e[16]=A):A=e[16];const P=A,M=L(),T=m==="hover"?"animate":void 0,R=m==="tap"?"animate":void 0;let F;return e[17]!==t||e[18]!==p||e[19]!==P||e[20]!==h||e[21]!==M||e[22]!==T||e[23]!==R||e[24]!==V?(F=B.jsx(Se.div,{ref:C,className:p,style:h,variants:U0,initial:"initial",animate:M,exit:"exit",custom:P,transition:V,whileHover:T,whileTap:R,children:t}),e[17]=t,e[18]=p,e[19]=P,e[20]=h,e[21]=M,e[22]=T,e[23]=R,e[24]=V,e[25]=F):F=e[25],F},Z0=s=>{const e=ge.c(24),{children:t,className:n,staggerDelay:r,animationType:i,direction:o,duration:a,threshold:l}=s,c=n===void 0?"":n,u=r===void 0?.1:r,d=i===void 0?"fadeIn":i,f=o===void 0?"up":o,h=a===void 0?.3:a,p=l===void 0?.1:l,b=I.useRef(null);let v;e[0]!==p?(v={once:!0,amount:p},e[0]=p,e[1]=v):v=e[1];const S=tt(b,v);let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m={},e[2]=m):m=e[2];let y;e[3]!==u?(y={initial:m,animate:{transition:{staggerChildren:u}}},e[3]=u,e[4]=y):y=e[4];const g=y;let w;e[5]!==d||e[6]!==f?(w=()=>{switch(d){case"slideIn":return{initial:(()=>{switch(f){case"up":return{y:50,opacity:0};case"down":return{y:-50,opacity:0};case"left":return{x:50,opacity:0};case"right":return{x:-50,opacity:0};default:return{y:50,opacity:0}}})(),animate:{x:0,y:0,opacity:1}};case"scaleIn":return{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1}};case"fadeIn":default:return{initial:{opacity:0},animate:{opacity:1}}}},e[5]=d,e[6]=f,e[7]=w):w=e[7];const x=w;let k;e[8]!==x?(k=x(),e[8]=x,e[9]=k):k=e[9];const C=k;let E;e[10]!==h?(E={...gs.smooth,duration:h},e[10]=h,e[11]=E):E=e[11];const j=E,N=S?"animate":"initial";let L;if(e[12]!==t||e[13]!==C||e[14]!==j){let V;e[16]!==C||e[17]!==j?(V=(A,P)=>B.jsx(Se.div,{variants:C,transition:j,children:A},P),e[16]=C,e[17]=j,e[18]=V):V=e[18],L=t.map(V),e[12]=t,e[13]=C,e[14]=j,e[15]=L}else L=e[15];let D;return e[19]!==c||e[20]!==g||e[21]!==N||e[22]!==L?(D=B.jsx(Se.div,{ref:b,className:c,variants:g,initial:"initial",animate:N,children:L}),e[19]=c,e[20]=g,e[21]=N,e[22]=L,e[23]=D):D=e[23],D};var J0=/\s+/g,ji=s=>typeof s!="string"||!s?s:s.replace(J0," ").trim(),Kn=(...s)=>{let e=[],t=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let i=0,o=n.length;i<o;i++)t(n[i]);return}let r=typeof n;if(r==="string"||r==="number"||r==="bigint"){if(r==="number"&&n!==n)return;e.push(String(n))}else if(r==="object"){let i=Object.keys(n);for(let o=0,a=i.length;o<a;o++){let l=i[o];n[l]&&e.push(l)}}};for(let n=0,r=s.length;n<r;n++){let i=s[n];i!=null&&t(i)}return e.length>0?ji(e.join(" ")):void 0},al=s=>s===!1?"false":s===!0?"true":s===0?"0":s,Je=s=>{if(!s||typeof s!="object")return!0;for(let e in s)return!1;return!0},Q0=(s,e)=>{if(s===e)return!0;if(!s||!e)return!1;let t=Object.keys(s),n=Object.keys(e);if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++){let i=t[r];if(!n.includes(i)||s[i]!==e[i])return!1}return!0},ll=(s,e)=>{for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];t in s?s[t]=Kn(s[t],n):s[t]=n}return s},au=(s,e)=>{for(let t=0;t<s.length;t++){let n=s[t];Array.isArray(n)?au(n,e):n&&e.push(n)}},lu=(...s)=>{let e=[];au(s,e);let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},Ni=(s,e)=>{let t={};for(let n in s){let r=s[n];if(n in e){let i=e[n];Array.isArray(r)||Array.isArray(i)?t[n]=lu(i,r):typeof r=="object"&&typeof i=="object"&&r&&i?t[n]=Ni(r,i):t[n]=i+" "+r}else t[n]=r}for(let n in e)n in s||(t[n]=e[n]);return t},eg={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function tg(){let s=null,e={},t=!1;return{get cachedTwMerge(){return s},set cachedTwMerge(n){s=n},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(n){e=n},get didTwMergeConfigChange(){return t},set didTwMergeConfigChange(n){t=n},reset(){s=null,e={},t=!1}}}var yt=tg(),sg=s=>{let e=(t,n)=>{let{extend:r=null,slots:i={},variants:o={},compoundVariants:a=[],compoundSlots:l=[],defaultVariants:c={}}=t,u={...eg,...n},d=r?.base?Kn(r.base,t?.base):t?.base,f=r?.variants&&!Je(r.variants)?Ni(o,r.variants):o,h=r?.defaultVariants&&!Je(r.defaultVariants)?{...r.defaultVariants,...c}:c;!Je(u.twMergeConfig)&&!Q0(u.twMergeConfig,yt.cachedTwMergeConfig)&&(yt.didTwMergeConfigChange=!0,yt.cachedTwMergeConfig=u.twMergeConfig);let p=Je(r?.slots),b=Je(i)?{}:{base:Kn(t?.base,p&&r?.base),...i},v=p?b:ll({...r?.slots},Je(b)?{base:t?.base}:b),S=Je(r?.compoundVariants)?a:lu(r?.compoundVariants,a),m=g=>{if(Je(f)&&Je(i)&&p)return s(d,g?.class,g?.className)(u);if(S&&!Array.isArray(S))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof S}`);if(l&&!Array.isArray(l))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof l}`);let w=(V,A,P=[],M)=>{let T=P;if(typeof A=="string"){let R=ji(A).split(" ");for(let F=0;F<R.length;F++)T.push(`${V}:${R[F]}`)}else if(Array.isArray(A))for(let R=0;R<A.length;R++)T.push(`${V}:${A[R]}`);else if(typeof A=="object"&&typeof M=="string"&&M in A){let R=A[M];if(R&&typeof R=="string"){let F=ji(R).split(" "),z=[];for(let O=0;O<F.length;O++)z.push(`${V}:${F[O]}`);T[M]=T[M]?T[M].concat(z):z}else if(Array.isArray(R)&&R.length>0){let F=[];for(let z=0;z<R.length;z++)F.push(`${V}:${R[z]}`);T[M]=F}}return T},x=(V,A=f,P=null,M=null)=>{let T=A[V];if(!T||Je(T))return null;let R=M?.[V]??g?.[V];if(R===null)return null;let F=al(R),z=Array.isArray(u.responsiveVariants)&&u.responsiveVariants.length>0||u.responsiveVariants===!0,O=h?.[V],$=[];if(typeof F=="object"&&z)for(let[H,X]of Object.entries(F)){let G=T[X];if(H==="initial"){O=X;continue}Array.isArray(u.responsiveVariants)&&!u.responsiveVariants.includes(H)||($=w(H,G,$,P))}let W=F!=null&&typeof F!="object"?F:al(O),_=T[W||"false"];return typeof $=="object"&&typeof P=="string"&&$[P]?ll($,_):$.length>0?($.push(_),P==="base"?$.join(" "):$):_},k=()=>{if(!f)return null;let V=Object.keys(f),A=[];for(let P=0;P<V.length;P++){let M=x(V[P],f);M&&A.push(M)}return A},C=(V,A)=>{if(!f||typeof f!="object")return null;let P=[];for(let M in f){let T=x(M,f,V,A),R=V==="base"&&typeof T=="string"?T:T&&T[V];R&&P.push(R)}return P},E={};for(let V in g){let A=g[V];A!==void 0&&(E[V]=A)}let j=(V,A)=>{let P=typeof g?.[V]=="object"?{[V]:g[V]?.initial}:{};return{...h,...E,...P,...A}},N=(V=[],A)=>{let P=[],M=V.length;for(let T=0;T<M;T++){let{class:R,className:F,...z}=V[T],O=!0,$=j(null,A);for(let W in z){let _=z[W],H=$[W];if(Array.isArray(_)){if(!_.includes(H)){O=!1;break}}else{if((_==null||_===!1)&&(H==null||H===!1))continue;if(H!==_){O=!1;break}}}O&&(R&&P.push(R),F&&P.push(F))}return P},L=V=>{let A=N(S,V);if(!Array.isArray(A))return A;let P={},M=s;for(let T=0;T<A.length;T++){let R=A[T];if(typeof R=="string")P.base=M(P.base,R)(u);else if(typeof R=="object")for(let F in R)P[F]=M(P[F],R[F])(u)}return P},D=V=>{if(l.length<1)return null;let A={},P=j(null,V);for(let M=0;M<l.length;M++){let{slots:T=[],class:R,className:F,...z}=l[M];if(!Je(z)){let O=!0;for(let $ in z){let W=P[$],_=z[$];if(W===void 0||(Array.isArray(_)?!_.includes(W):_!==W)){O=!1;break}}if(!O)continue}for(let O=0;O<T.length;O++){let $=T[O];A[$]||(A[$]=[]),A[$].push([R,F])}}return A};if(!Je(i)||!p){let V={};if(typeof v=="object"&&!Je(v)){let A=s;for(let P in v)V[P]=M=>{let T=L(M),R=D(M);return A(v[P],C(P,M),T?T[P]:void 0,R?R[P]:void 0,M?.class,M?.className)(u)}}return V}return s(d,k(),N(S),g?.class,g?.className)(u)},y=()=>{if(!(!f||typeof f!="object"))return Object.keys(f)};return m.variantKeys=y(),m.extend=r,m.base=d,m.slots=v,m.variants=f,m.defaultVariants=h,m.compoundSlots=l,m.compoundVariants=S,m};return{tv:e,createTV:t=>(n,r)=>e(n,r?Ni(t,r):t)}};const ko="-",ng=s=>{const e=ig(s),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=s;return{getClassGroupId:o=>{const a=o.split(ko);return a[0]===""&&a.length!==1&&a.shift(),cu(a,e)||rg(o)},getConflictingClassGroupIds:(o,a)=>{const l=t[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},cu=(s,e)=>{if(s.length===0)return e.classGroupId;const t=s[0],n=e.nextPart.get(t),r=n?cu(s.slice(1),n):void 0;if(r)return r;if(e.validators.length===0)return;const i=s.join(ko);return e.validators.find(({validator:o})=>o(i))?.classGroupId},cl=/^\[(.+)\]$/,rg=s=>{if(cl.test(s)){const e=cl.exec(s)[1],t=e?.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},ig=s=>{const{theme:e,classGroups:t}=s,n={nextPart:new Map,validators:[]};for(const r in t)Di(t[r],n,r,e);return n},Di=(s,e,t,n)=>{s.forEach(r=>{if(typeof r=="string"){const i=r===""?e:ul(e,r);i.classGroupId=t;return}if(typeof r=="function"){if(og(r)){Di(r(n),e,t,n);return}e.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([i,o])=>{Di(o,ul(e,i),t,n)})})},ul=(s,e)=>{let t=s;return e.split(ko).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},og=s=>s.isThemeGetter,ag=s=>{if(s<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,n=new Map;const r=(i,o)=>{t.set(i,o),e++,e>s&&(e=0,n=t,t=new Map)};return{get(i){let o=t.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return r(i,o),o},set(i,o){t.has(i)?t.set(i,o):r(i,o)}}},Bi="!",Li=":",lg=Li.length,cg=s=>{const{prefix:e,experimentalParseClassName:t}=s;let n=r=>{const i=[];let o=0,a=0,l=0,c;for(let p=0;p<r.length;p++){let b=r[p];if(o===0&&a===0){if(b===Li){i.push(r.slice(l,p)),l=p+lg;continue}if(b==="/"){c=p;continue}}b==="["?o++:b==="]"?o--:b==="("?a++:b===")"&&a--}const u=i.length===0?r:r.substring(l),d=ug(u),f=d!==u,h=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}};if(e){const r=e+Li,i=n;n=o=>o.startsWith(r)?i(o.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(t){const r=n;n=i=>t({className:i,parseClassName:r})}return n},ug=s=>s.endsWith(Bi)?s.substring(0,s.length-1):s.startsWith(Bi)?s.substring(1):s,dg=s=>{const e=Object.fromEntries(s.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const r=[];let i=[];return n.forEach(o=>{o[0]==="["||e[o]?(r.push(...i.sort(),o),i=[]):i.push(o)}),r.push(...i.sort()),r}},fg=s=>({cache:ag(s.cacheSize),parseClassName:cg(s),sortModifiers:dg(s),...ng(s)}),hg=/\s+/,mg=(s,e)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i}=e,o=[],a=s.trim().split(hg);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:f,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:b}=t(u);if(d){l=u+(l.length>0?" "+l:l);continue}let v=!!b,S=n(v?p.substring(0,b):p);if(!S){if(!v){l=u+(l.length>0?" "+l:l);continue}if(S=n(p),!S){l=u+(l.length>0?" "+l:l);continue}v=!1}const m=i(f).join(":"),y=h?m+Bi:m,g=y+S;if(o.includes(g))continue;o.push(g);const w=r(S,v);for(let x=0;x<w.length;++x){const k=w[x];o.push(y+k)}l=u+(l.length>0?" "+l:l)}return l};function pg(){let s=0,e,t,n="";for(;s<arguments.length;)(e=arguments[s++])&&(t=uu(e))&&(n&&(n+=" "),n+=t);return n}const uu=s=>{if(typeof s=="string")return s;let e,t="";for(let n=0;n<s.length;n++)s[n]&&(e=uu(s[n]))&&(t&&(t+=" "),t+=e);return t};function Oi(s,...e){let t,n,r,i=o;function o(l){const c=e.reduce((u,d)=>d(u),s());return t=fg(c),n=t.cache.get,r=t.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=mg(l,t);return r(l,u),u}return function(){return i(pg.apply(null,arguments))}}const We=s=>{const e=t=>t[s]||[];return e.isThemeGetter=!0,e},du=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gg=/^\d+\/\d+$/,yg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ts=s=>gg.test(s),ke=s=>!!s&&!Number.isNaN(Number(s)),St=s=>!!s&&Number.isInteger(Number(s)),ai=s=>s.endsWith("%")&&ke(s.slice(0,-1)),gt=s=>yg.test(s),Cg=()=>!0,Sg=s=>bg.test(s)&&!vg.test(s),hu=()=>!1,Tg=s=>xg.test(s),kg=s=>wg.test(s),Ag=s=>!de(s)&&!fe(s),Vg=s=>ys(s,gu,hu),de=s=>du.test(s),It=s=>ys(s,yu,Sg),li=s=>ys(s,Rg,ke),dl=s=>ys(s,mu,hu),Mg=s=>ys(s,pu,kg),En=s=>ys(s,bu,Tg),fe=s=>fu.test(s),Ts=s=>bs(s,yu),Pg=s=>bs(s,jg),fl=s=>bs(s,mu),Eg=s=>bs(s,gu),Ig=s=>bs(s,pu),In=s=>bs(s,bu,!0),ys=(s,e,t)=>{const n=du.exec(s);return n?n[1]?e(n[1]):t(n[2]):!1},bs=(s,e,t=!1)=>{const n=fu.exec(s);return n?n[1]?e(n[1]):t:!1},mu=s=>s==="position"||s==="percentage",pu=s=>s==="image"||s==="url",gu=s=>s==="length"||s==="size"||s==="bg-size",yu=s=>s==="length",Rg=s=>s==="number",jg=s=>s==="family-name",bu=s=>s==="shadow",$i=()=>{const s=We("color"),e=We("font"),t=We("text"),n=We("font-weight"),r=We("tracking"),i=We("leading"),o=We("breakpoint"),a=We("container"),l=We("spacing"),c=We("radius"),u=We("shadow"),d=We("inset-shadow"),f=We("text-shadow"),h=We("drop-shadow"),p=We("blur"),b=We("perspective"),v=We("aspect"),S=We("ease"),m=We("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],g=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...g(),fe,de],x=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],C=()=>[fe,de,l],E=()=>[ts,"full","auto",...C()],j=()=>[St,"none","subgrid",fe,de],N=()=>["auto",{span:["full",St,fe,de]},St,fe,de],L=()=>[St,"auto",fe,de],D=()=>["auto","min","max","fr",fe,de],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],A=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...C()],M=()=>[ts,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],T=()=>[s,fe,de],R=()=>[...g(),fl,dl,{position:[fe,de]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",Eg,Vg,{size:[fe,de]}],O=()=>[ai,Ts,It],$=()=>["","none","full",c,fe,de],W=()=>["",ke,Ts,It],_=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[ke,ai,fl,dl],G=()=>["","none",p,fe,de],K=()=>["none",ke,fe,de],U=()=>["none",ke,fe,de],Z=()=>[ke,fe,de],Y=()=>[ts,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gt],breakpoint:[gt],color:[Cg],container:[gt],"drop-shadow":[gt],ease:["in","out","in-out"],font:[Ag],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gt],shadow:[gt],spacing:["px",ke],text:[gt],"text-shadow":[gt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ts,de,fe,v]}],container:["container"],columns:[{columns:[ke,de,fe,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[St,"auto",fe,de]}],basis:[{basis:[ts,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,ts,"auto","initial","none",de]}],grow:[{grow:["",ke,fe,de]}],shrink:[{shrink:["",ke,fe,de]}],order:[{order:[St,"first","last","none",fe,de]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...A(),"normal"]}],"justify-self":[{"justify-self":["auto",...A()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...A(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...A(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...A(),"baseline"]}],"place-self":[{"place-self":["auto",...A()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[a,"screen",...M()]}],"min-w":[{"min-w":[a,"screen","none",...M()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",t,Ts,It]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,fe,li]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ai,de]}],"font-family":[{font:[Pg,de,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,fe,de]}],"line-clamp":[{"line-clamp":[ke,"none",fe,li]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",fe,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",fe,It]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ke,"auto",fe,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},St,fe,de],radial:["",fe,de],conic:[St,fe,de]},Ig,Mg]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._(),"hidden","none"]}],"divide-style":[{divide:[..._(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[..._(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,fe,de]}],"outline-w":[{outline:["",ke,Ts,It]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,In,En]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,In,En]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ke,It]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",f,In,En]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ke,fe,de]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[fe,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":g()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,de]}],filter:[{filter:["","none",fe,de]}],blur:[{blur:G()}],brightness:[{brightness:[ke,fe,de]}],contrast:[{contrast:[ke,fe,de]}],"drop-shadow":[{"drop-shadow":["","none",h,In,En]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ke,fe,de]}],"hue-rotate":[{"hue-rotate":[ke,fe,de]}],invert:[{invert:["",ke,fe,de]}],saturate:[{saturate:[ke,fe,de]}],sepia:[{sepia:["",ke,fe,de]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,de]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[ke,fe,de]}],"backdrop-contrast":[{"backdrop-contrast":[ke,fe,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,fe,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,fe,de]}],"backdrop-invert":[{"backdrop-invert":["",ke,fe,de]}],"backdrop-opacity":[{"backdrop-opacity":[ke,fe,de]}],"backdrop-saturate":[{"backdrop-saturate":[ke,fe,de]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,fe,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",fe,de]}],ease:[{ease:["linear","initial",S,fe,de]}],delay:[{delay:[ke,fe,de]}],animate:[{animate:["none",m,fe,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,fe,de]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[fe,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Y()}],"translate-x":[{"translate-x":Y()}],"translate-y":[{"translate-y":Y()}],"translate-z":[{"translate-z":Y()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fe,de]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ke,Ts,It,li]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ng=(s,{cacheSize:e,prefix:t,experimentalParseClassName:n,extend:r={},override:i={}})=>(As(s,"cacheSize",e),As(s,"prefix",t),As(s,"experimentalParseClassName",n),Rn(s.theme,i.theme),Rn(s.classGroups,i.classGroups),Rn(s.conflictingClassGroups,i.conflictingClassGroups),Rn(s.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),As(s,"orderSensitiveModifiers",i.orderSensitiveModifiers),jn(s.theme,r.theme),jn(s.classGroups,r.classGroups),jn(s.conflictingClassGroups,r.conflictingClassGroups),jn(s.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),vu(s,r,"orderSensitiveModifiers"),s),As=(s,e,t)=>{t!==void 0&&(s[e]=t)},Rn=(s,e)=>{if(e)for(const t in e)As(s,t,e[t])},jn=(s,e)=>{if(e)for(const t in e)vu(s,e,t)},vu=(s,e,t)=>{const n=e[t];n!==void 0&&(s[t]=s[t]?s[t].concat(n):n)},Dg=(s,...e)=>typeof s=="function"?Oi($i,s,...e):Oi(()=>Ng($i(),s),...e),Le=Oi($i);var Bg=s=>Je(s)?Le:Dg({...s,extend:{theme:s.theme,classGroups:s.classGroups,conflictingClassGroupModifiers:s.conflictingClassGroupModifiers,conflictingClassGroups:s.conflictingClassGroups,...s.extend}}),Lg=(...s)=>e=>{let t=Kn(s);return!t||!e.twMerge?t:((!yt.cachedTwMerge||yt.didTwMergeConfigChange)&&(yt.didTwMergeConfigChange=!1,yt.cachedTwMerge=Bg(yt.cachedTwMergeConfig)),yt.cachedTwMerge(t)||void 0)},{tv:Ie}=sg(Lg);const Og=Ie({base:["relative inline-flex items-center justify-center overflow-hidden font-medium","text-center align-middle","box-border select-none","focus:outline-none focus:ring-2 focus:ring-offset-2","transition-all duration-200 ease-in-out"],variants:{size:{sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-14 h-14 text-base"},color:{default:["bg-default-100 text-default-foreground","focus:ring-default-500"],primary:["bg-primary-100 text-primary-foreground","focus:ring-primary-500"],secondary:["bg-secondary-100 text-secondary-foreground","focus:ring-secondary-500"],success:["bg-success-100 text-success-foreground","focus:ring-success-500"],warning:["bg-warning-100 text-warning-foreground","focus:ring-warning-500"],danger:["bg-danger-100 text-danger-foreground","focus:ring-danger-500"]},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},isBordered:{true:"ring-2 ring-offset-2 ring-white dark:ring-offset-background",false:""},isDisabled:{true:"opacity-30 cursor-not-allowed pointer-events-none",false:"cursor-pointer"},isFocusable:{true:"cursor-pointer",false:""}},compoundVariants:[{color:"default",isBordered:!0,class:"ring-default-300 dark:ring-default-600"},{color:"primary",isBordered:!0,class:"ring-primary-300 dark:ring-primary-600"},{color:"secondary",isBordered:!0,class:"ring-secondary-300 dark:ring-secondary-600"},{color:"success",isBordered:!0,class:"ring-success-300 dark:ring-success-600"},{color:"warning",isBordered:!0,class:"ring-warning-300 dark:ring-warning-600"},{color:"danger",isBordered:!0,class:"ring-danger-300 dark:ring-danger-600"},{isDisabled:!0,isFocusable:!0,class:"cursor-not-allowed"}],defaultVariants:{size:"md",color:"default",radius:"full",isBordered:!1,isDisabled:!1,isFocusable:!1}}),$g=Ie({base:["w-full h-full object-cover","transition-opacity duration-200 ease-in-out"]}),Fg=Ie({base:["w-full h-full flex items-center justify-center","bg-inherit text-inherit"]}),zg=Ie({base:["font-medium uppercase select-none","text-inherit leading-none"]}),_g=Ie({base:["w-1/2 h-1/2 text-inherit","flex items-center justify-center"]}),Wg=Ie({base:["flex items-center"],variants:{isGrid:{true:"flex-wrap gap-2",false:"flex-row"}},defaultVariants:{isGrid:!1}}),Gg=Ie({base:["inline-flex items-center justify-center font-medium","bg-default-100 text-default-foreground","border border-background","select-none transition-all duration-200"],variants:{size:{sm:"w-8 h-8 text-xs ml-[-8px]",md:"w-10 h-10 text-sm ml-[-10px]",lg:"w-14 h-14 text-base ml-[-14px]"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},isGrid:{true:"ml-0",false:""}},defaultVariants:{size:"md",radius:"full",isGrid:!1}}),Ug=s=>Og(s),Hg=s=>Wg(s),Kg=s=>Gg(s),Yg=s=>{if(!s)return"";const e=s.trim().split(/\s+/);return e.length===1?e[0].substring(0,2).toUpperCase():e.slice(0,2).map(t=>t.charAt(0)).join("").toUpperCase()},Xg=s=>{if(!s)return"";let e=0;for(let n=0;n<s.length;n++){const r=s.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return`hsl(${Math.abs(e)%360}, 70%, 80%)`},ft={size:"md",color:"default",radius:"full",isBordered:!1,isDisabled:!1,isFocusable:!1,showFallback:!1},kt={max:5,isGrid:!1,isDisabled:!1,isBordered:!1},xu=s=>{const e=ge.c(57);let t,n,r,i,o,a,l,c,u,d,f;e[0]!==s?({src:i,name:r,showFallback:o,getInitials:a,ImgComponent:l,imgProps:c,isFocusable:u,isDisabled:d,className:f,"data-testid":n,...t}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11]);const h=o===void 0?ft.showFallback:o,p=a===void 0?Yg:a;let b;e[12]!==c?(b=c===void 0?{}:c,e[12]=c,e[13]=b):b=e[13];const v=b,S=u===void 0?ft.isFocusable:u,m=d===void 0?ft.isDisabled:d,y=f===void 0?"":f,[g,w]=I.useState(!1),[x,k]=I.useState(!1);let C,E;e[14]!==i?(C=()=>{if(!i){w(!1),k(!1);return}w(!1),k(!1);const ee=new Image;return ee.onload=()=>{w(!0),k(!1)},ee.onerror=()=>{w(!1),k(!0)},ee.src=i,()=>{ee.onload=null,ee.onerror=null}},E=[i],e[14]=i,e[15]=C,e[16]=E):(C=e[15],E=e[16]),I.useEffect(C,E);let j;e:{if(!r){j="";break e}let ee;e[17]!==p||e[18]!==r?(ee=p(r),e[17]=p,e[18]=r,e[19]=ee):ee=e[19],j=ee}const N=j;let L;e:{if(h&&(!i||x)){L=!0;break e}if(r&&!i){L=!0;break e}if(i&&x){L=!0;break e}L=!1}const D=L;let V;e:{if(!r||i){V=void 0;break e}let ee;e[20]!==r?(ee=Xg(r),e[20]=r,e[21]=ee):ee=e[21],V=ee}const A=V;let P;const M=r||"Avatar";let T,R;e[22]!==v?(T=ee=>{w(!0),k(!1),v.onLoad?.(ee)},R=[v],e[22]=v,e[23]=T,e[24]=R):(T=e[23],R=e[24]);const F=I.useCallback(T,R);let z,O;e[25]!==v?(z=ee=>{w(!1),k(!0),v.onError?.(ee)},O=[v],e[25]=v,e[26]=z,e[27]=O):(z=e[26],O=e[27]);const $=I.useCallback(z,O);let W;e[28]!==v||e[29]!==i||e[30]!==M||e[31]!==F||e[32]!==$?(W={...v,src:i,alt:M,onLoad:F,onError:$},e[28]=v,e[29]=i,e[30]=M,e[31]=F,e[32]=$,e[33]=W):W=e[33],P=W;const _=P;let H;const X=S&&!m?0:void 0,G=S?"button":"img",K=r||"Avatar";let U;e[34]!==r||e[35]!==A||e[36]!==D||e[37]!==i?(U=A&&D&&r&&!i?{backgroundColor:A}:{},e[34]=r,e[35]=A,e[36]=D,e[37]=i,e[38]=U):U=e[38];let Z;e[39]!==t.style||e[40]!==U?(Z={...t.style,...U},e[39]=t.style,e[40]=U,e[41]=Z):Z=e[41];let Y;e[42]!==t||e[43]!==y||e[44]!==n||e[45]!==X||e[46]!==G||e[47]!==K||e[48]!==Z?(Y={...t,className:y,"data-testid":n,"data-hover":void 0,"data-focus":void 0,"data-focus-visible":void 0,tabIndex:X,role:G,"aria-label":K,style:Z},e[42]=t,e[43]=y,e[44]=n,e[45]=X,e[46]=G,e[47]=K,e[48]=Z,e[49]=Y):Y=e[49],H=Y;const J=H;let Q,q;e[50]===Symbol.for("react.memo_cache_sentinel")?(q={"aria-hidden":!0,style:{backgroundColor:"inherit"}},e[50]=q):q=e[50],Q=q;const te=Q;let se;return e[51]!==J||e[52]!==_||e[53]!==N||e[54]!==g||e[55]!==D?(se={isImgLoaded:g,shouldShowFallback:D,initials:N,imgProps:_,baseProps:J,fallbackProps:te},e[51]=J,e[52]=_,e[53]=N,e[54]=g,e[55]=D,e[56]=se):se=e[56],se},Ao=s=>{const e=ge.c(11);let t,n,r;e[0]!==s?({size:n,className:r,...t}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r):(t=e[1],n=e[2],r=e[3]);const i=n===void 0?24:n,o=r===void 0?"":r;let a;e[4]!==o?(a=_g({className:o}),e[4]=o,e[5]=a):a=e[5];const l=a;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=B.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",fill:"currentColor"}),e[6]=c):c=e[6];let u;return e[7]!==l||e[8]!==t||e[9]!==i?(u=B.jsx("svg",{className:l,width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:c}),e[7]=l,e[8]=t,e[9]=i,e[10]=u):u=e[10],u};Ao.displayName="AvatarIcon";const wu=I.forwardRef((s,e)=>{const t=ge.c(86);let n,r,i,o,a,l,c,u,d,f,h,p,b,v,S,m,y;t[0]!==s?({src:l,name:o,icon:i,fallback:n,color:c,size:f,radius:h,isBordered:p,isDisabled:b,isFocusable:v,showFallback:S,ImgComponent:m,imgProps:y,getInitials:r,classNames:u,as:d,...a}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=l,t[7]=c,t[8]=u,t[9]=d,t[10]=f,t[11]=h,t[12]=p,t[13]=b,t[14]=v,t[15]=S,t[16]=m,t[17]=y):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],d=t[9],f=t[10],h=t[11],p=t[12],b=t[13],v=t[14],S=t[15],m=t[16],y=t[17]);const g=c===void 0?ft.color:c,w=f===void 0?ft.size:f,x=h===void 0?ft.radius:h,k=p===void 0?ft.isBordered:p,C=b===void 0?ft.isDisabled:b,E=v===void 0?ft.isFocusable:v,j=S===void 0?ft.showFallback:S,N=m===void 0?"img":m;let L;t[18]!==y?(L=y===void 0?{}:y,t[18]=y,t[19]=L):L=t[19];const D=L;let V;t[20]!==u?(V=u===void 0?{}:u,t[20]=u,t[21]=V):V=t[21];const A=V,P=d===void 0?"div":d;let M;t[22]!==N||t[23]!==r||t[24]!==D||t[25]!==C||t[26]!==E||t[27]!==o||t[28]!==a||t[29]!==j||t[30]!==l?(M={src:l,name:o,showFallback:j,getInitials:r,ImgComponent:N,imgProps:D,isFocusable:E,isDisabled:C,...a},t[22]=N,t[23]=r,t[24]=D,t[25]=C,t[26]=E,t[27]=o,t[28]=a,t[29]=j,t[30]=l,t[31]=M):M=t[31];const{isImgLoaded:T,shouldShowFallback:R,initials:F,imgProps:z,baseProps:O,fallbackProps:$}=xu(M);let W,_;if(t[32]!==A.base||t[33]!==g||t[34]!==k||t[35]!==C||t[36]!==E||t[37]!==x||t[38]!==w){const Ve=Ug({color:g,size:w,radius:x,isBordered:k,isDisabled:C,isFocusable:E});_=Le(Ve,A.base),t[32]=A.base,t[33]=g,t[34]=k,t[35]=C,t[36]=E,t[37]=x,t[38]=w,t[39]=_}else _=t[39];W=_;const H=W;let X,G;if(t[40]!==A.img){const Ve=$g();G=Le(Ve,A.img),t[40]=A.img,t[41]=G}else G=t[41];X=G;const K=X;let U,Z;if(t[42]!==A.fallback){const Ve=Fg();Z=Le(Ve,A.fallback),t[42]=A.fallback,t[43]=Z}else Z=t[43];U=Z;const Y=U;let J,Q;if(t[44]!==A.name){const Ve=zg();Q=Le(Ve,A.name),t[44]=A.name,t[45]=Q}else Q=t[45];J=Q;const q=J;let te,se;t[46]!==A.icon?(se=Le("w-1/2 h-1/2",A.icon),t[46]=A.icon,t[47]=se):se=t[47],te=se;const ee=te;let ne;t[48]!==N||t[49]!==z||t[50]!==K||t[51]!==T||t[52]!==l?(ne=()=>!l||!T?null:I.createElement(N,{...z,className:K}),t[48]=N,t[49]=z,t[50]=K,t[51]=T,t[52]=l,t[53]=ne):ne=t[53];const ie=ne;let oe;t[54]!==n||t[55]!==Y||t[56]!==$||t[57]!==i||t[58]!==ee||t[59]!==F||t[60]!==o||t[61]!==q||t[62]!==R?(oe=()=>R?B.jsxs("div",{...$,className:Y,children:[n,!n&&o&&B.jsx("span",{className:q,"aria-label":`${o} initials`,children:F}),!n&&!o&&i&&B.jsx("span",{className:ee,"aria-hidden":"true",children:i}),!n&&!o&&!i&&B.jsx(Ao,{className:ee})]}):null,t[54]=n,t[55]=Y,t[56]=$,t[57]=i,t[58]=ee,t[59]=F,t[60]=o,t[61]=q,t[62]=R,t[63]=oe):oe=t[63];const re=oe;let ae;t[64]===Symbol.for("react.memo_cache_sentinel")?(ae={opacity:0,scale:1.1},t[64]=ae):ae=t[64];let le;t[65]===Symbol.for("react.memo_cache_sentinel")?(le=[.4,0,.2,1],t[65]=le):le=t[65];let ce;t[66]===Symbol.for("react.memo_cache_sentinel")?(ce={hidden:ae,visible:{opacity:1,scale:1,transition:{duration:.2,ease:le}}},t[66]=ce):ce=t[66];const pe=ce;let ye;t[67]===Symbol.for("react.memo_cache_sentinel")?(ye={opacity:0,scale:.9},t[67]=ye):ye=t[67];let be;t[68]===Symbol.for("react.memo_cache_sentinel")?(be=[.4,0,.2,1],t[68]=be):be=t[68];let ve;t[69]===Symbol.for("react.memo_cache_sentinel")?(ve={hidden:ye,visible:{opacity:1,scale:1,transition:{duration:.2,ease:be}}},t[69]=ve):ve=t[69];const Ce=ve;let ue;t[70]!==T||t[71]!==ie||t[72]!==l?(ue=l&&B.jsx(Se.div,{className:"absolute inset-0",variants:pe,initial:"hidden",animate:T?"visible":"hidden",children:ie()}),t[70]=T,t[71]=ie,t[72]=l,t[73]=ue):ue=t[73];const me=R?"visible":"hidden";let he;t[74]!==re?(he=re(),t[74]=re,t[75]=he):he=t[75];let xe;t[76]!==me||t[77]!==he?(xe=B.jsx(Se.div,{className:"absolute inset-0",variants:Ce,initial:"hidden",animate:me,children:he}),t[76]=me,t[77]=he,t[78]=xe):xe=t[78];let Te;return t[79]!==P||t[80]!==H||t[81]!==O||t[82]!==e||t[83]!==ue||t[84]!==xe?(Te=B.jsxs(P,{ref:e,...O,className:H,children:[ue,xe]}),t[79]=P,t[80]=H,t[81]=O,t[82]=e,t[83]=ue,t[84]=xe,t[85]=Te):Te=t[85],Te});wu.displayName="Avatar";const Cu=s=>{const e=ge.c(37);let t,n,r,i,o,a,l,c,u,d,f,h,p;e[0]!==s?({max:c,total:p,size:l,color:r,radius:o,isGrid:u,isDisabled:d,isBordered:f,renderCount:a,children:n,className:h,"data-testid":i,...t}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f,e[12]=h,e[13]=p):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13]);const b=c===void 0?kt.max:c,v=u===void 0?kt.isGrid:u,S=d===void 0?kt.isDisabled:d,m=f===void 0?kt.isBordered:f,y=h===void 0?"":h;let g;g=I.Children.count(n);const w=g;let x;e:{if(typeof p=="number"){x=Math.max(0,p-b);break e}x=Math.max(0,w-b)}const k=x;let C;e:{if(typeof p=="number"){C=p>b;break e}C=w>b}const E=C;let j,N;e[14]!==r||e[15]!==m||e[16]!==S||e[17]!==v||e[18]!==b||e[19]!==o||e[20]!==a||e[21]!==l||e[22]!==p?(N={size:l,color:r,radius:o,isDisabled:S,isBordered:m,max:b,total:p,isGrid:v,renderCount:a},e[14]=r,e[15]=m,e[16]=S,e[17]=v,e[18]=b,e[19]=o,e[20]=a,e[21]=l,e[22]=p,e[23]=N):N=e[23],j=N;const L=j;let D;const V=`Avatar group${p?` of ${p} users`:""}`;let A;e[24]!==t||e[25]!==y||e[26]!==i||e[27]!==V?(A={...t,className:y,"data-testid":i,role:"group","aria-label":V},e[24]=t,e[25]=y,e[26]=i,e[27]=V,e[28]=A):A=e[28],D=A;const P=D;let M;const T=`${k} more users`;let R;e[29]!==T?(R={"aria-label":T,role:"img"},e[29]=T,e[30]=R):R=e[30],M=R;const F=M;let z;return e[31]!==L||e[32]!==F||e[33]!==P||e[34]!==k||e[35]!==E?(z={context:L,remainingCount:k,shouldShowCount:E,baseProps:P,countProps:F},e[31]=L,e[32]=F,e[33]=P,e[34]=k,e[35]=E,e[36]=z):z=e[36],z},qg=I.createContext(null),Zg=s=>{const e=ge.c(3),{value:t,children:n}=s;let r;return e[0]!==n||e[1]!==t?(r=B.jsx(qg.Provider,{value:t,children:n}),e[0]=n,e[1]=t,e[2]=r):r=e[2],r},Su=I.forwardRef((s,e)=>{const t=ge.c(57);let n,r,i,o,a,l,c,u,d,f,h,p;t[0]!==s?({max:c,total:p,size:l,color:r,radius:o,isGrid:u,isDisabled:d,isBordered:f,renderCount:a,classNames:h,children:n,...i}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=l,t[7]=c,t[8]=u,t[9]=d,t[10]=f,t[11]=h,t[12]=p):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],d=t[9],f=t[10],h=t[11],p=t[12]);const b=c===void 0?kt.max:c,v=u===void 0?kt.isGrid:u,S=d===void 0?kt.isDisabled:d,m=f===void 0?kt.isBordered:f;let y;t[13]!==h?(y=h===void 0?{}:h,t[13]=h,t[14]=y):y=t[14];const g=y;let w;t[15]!==n||t[16]!==r||t[17]!==m||t[18]!==S||t[19]!==v||t[20]!==b||t[21]!==i||t[22]!==o||t[23]!==a||t[24]!==l||t[25]!==p?(w={max:b,total:p,size:l,color:r,radius:o,isGrid:v,isDisabled:S,isBordered:m,renderCount:a,children:n,...i},t[15]=n,t[16]=r,t[17]=m,t[18]=S,t[19]=v,t[20]=b,t[21]=i,t[22]=o,t[23]=a,t[24]=l,t[25]=p,t[26]=w):w=t[26];const{context:x,remainingCount:k,shouldShowCount:C,baseProps:E,countProps:j}=Cu(w);let N,L;if(t[27]!==g.base||t[28]!==v){const W=Hg({isGrid:v});L=Le(W,g.base),t[27]=g.base,t[28]=v,t[29]=L}else L=t[29];N=L;const D=N;let V,A;if(t[30]!==g.count||t[31]!==v||t[32]!==o||t[33]!==l){const W=Kg({size:l,radius:o,isGrid:v});A=Le(W,g.count),t[30]=g.count,t[31]=v,t[32]=o,t[33]=l,t[34]=A}else A=t[34];V=A;const P=V;let M;e:{if(!n){M=null;break e}let W;if(t[35]!==n||t[36]!==v||t[37]!==b){const H=I.Children.toArray(n).slice(0,b);W=H.map((X,G)=>v?B.jsx(Se.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:G*.05,duration:.2,ease:[.4,0,.2,1]},children:X},G):B.jsx(Se.div,{className:G>0?"-ml-2":"",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:G*.05,duration:.2,ease:[.4,0,.2,1]},style:{zIndex:H.length-G},children:X},G)),t[35]=n,t[36]=v,t[37]=b,t[38]=W}else W=t[38];M=W}const T=M;let R;t[39]!==P||t[40]!==j||t[41]!==b||t[42]!==k||t[43]!==a||t[44]!==C?(R=()=>{if(!C)return null;if(a){const W=a(k);return B.jsx(Se.div,{className:P,"aria-label":j["aria-label"],role:j.role,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:b*.05,duration:.2,ease:[.4,0,.2,1]},children:W})}return B.jsxs(Se.div,{className:P,"aria-label":j["aria-label"],role:j.role,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:b*.05,duration:.2,ease:[.4,0,.2,1]},children:["+",k]})},t[39]=P,t[40]=j,t[41]=b,t[42]=k,t[43]=a,t[44]=C,t[45]=R):R=t[45];const F=R;let z;t[46]!==F?(z=F(),t[46]=F,t[47]=z):z=t[47];let O;t[48]!==D||t[49]!==E||t[50]!==T||t[51]!==e||t[52]!==z?(O=B.jsxs("div",{ref:e,...E,className:D,children:[T,z]}),t[48]=D,t[49]=E,t[50]=T,t[51]=e,t[52]=z,t[53]=O):O=t[53];let $;return t[54]!==x||t[55]!==O?($=B.jsx(Zg,{value:x,children:O}),t[54]=x,t[55]=O,t[56]=$):$=t[56],$});Su.displayName="AvatarGroup";const Jg=Ie({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","absolute","items-center","justify-center","whitespace-nowrap","origin-center","text-tiny","font-medium","subpixel-antialiased","scale-100","select-none","transition-transform","!duration-200","!ease-soft-spring"]},variants:{variant:{solid:{badge:"text-white"},flat:{badge:""},faded:{badge:""},shadow:{badge:"text-white shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"min-w-4 h-4 text-tiny px-1"},md:{badge:"min-w-5 h-5 text-tiny px-1"},lg:{badge:"min-w-6 h-6 text-small px-1.5"}},shape:{circle:{badge:"rounded-full"},rectangle:{badge:"rounded-md"}},placement:{"top-right":{badge:"top-0 right-0 translate-x-1/2 -translate-y-1/2"},"top-left":{badge:"top-0 left-0 -translate-x-1/2 -translate-y-1/2"},"bottom-right":{badge:"bottom-0 right-0 translate-x-1/2 translate-y-1/2"},"bottom-left":{badge:"bottom-0 left-0 -translate-x-1/2 translate-y-1/2"}},isInvisible:{true:{badge:"scale-0"},false:{badge:"scale-100"}},showOutline:{true:{badge:"ring-2 ring-background"},false:{}},disableAnimation:{true:{badge:"transition-none"},false:{}},isOneChar:{true:{},false:{}}},compoundVariants:[{variant:"solid",color:"default",class:{badge:"bg-default text-default-foreground"}},{variant:"solid",color:"primary",class:{badge:"bg-primary text-primary-foreground"}},{variant:"solid",color:"secondary",class:{badge:"bg-secondary text-secondary-foreground"}},{variant:"solid",color:"success",class:{badge:"bg-success text-success-foreground"}},{variant:"solid",color:"warning",class:{badge:"bg-warning text-warning-foreground"}},{variant:"solid",color:"danger",class:{badge:"bg-danger text-danger-foreground"}},{variant:"flat",color:"default",class:{badge:"bg-default/20 text-default-600"}},{variant:"flat",color:"primary",class:{badge:"bg-primary/20 text-primary-600"}},{variant:"flat",color:"secondary",class:{badge:"bg-secondary/20 text-secondary-600"}},{variant:"flat",color:"success",class:{badge:"bg-success/20 text-success-600 dark:text-success-500"}},{variant:"flat",color:"warning",class:{badge:"bg-warning/20 text-warning-600 dark:text-warning-500"}},{variant:"flat",color:"danger",class:{badge:"bg-danger/20 text-danger-500"}},{variant:"faded",color:"default",class:{badge:"border-small border-default bg-default-50 text-default-foreground"}},{variant:"faded",color:"primary",class:{badge:"border-small border-primary bg-primary-50 text-primary-600"}},{variant:"faded",color:"secondary",class:{badge:"border-small border-secondary bg-secondary-50 text-secondary-600"}},{variant:"faded",color:"success",class:{badge:"border-small border-success bg-success-50 text-success-600 dark:text-success-500"}},{variant:"faded",color:"warning",class:{badge:"border-small border-warning bg-warning-50 text-warning-600 dark:text-warning-500"}},{variant:"faded",color:"danger",class:{badge:"border-small border-danger bg-danger-50 text-danger-500"}},{variant:"shadow",color:"default",class:{badge:"shadow-lg shadow-default/50 bg-default text-default-foreground"}},{variant:"shadow",color:"primary",class:{badge:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{badge:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground"}},{variant:"shadow",color:"success",class:{badge:"shadow-lg shadow-success/40 bg-success text-success-foreground"}},{variant:"shadow",color:"warning",class:{badge:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground"}},{variant:"shadow",color:"danger",class:{badge:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 px-0"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 px-0"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 px-0"}}],defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",isInvisible:!1,showOutline:!1,disableAnimation:!1,isOneChar:!1}}),Tu=I.forwardRef(({children:s,content:e,variant:t="solid",color:n="default",size:r="md",shape:i="rectangle",placement:o="top-right",isOneChar:a=!1,showOutline:l=!1,isInvisible:c=!1,disableAnimation:u=!1,classNames:d,className:f,...h},p)=>{const b=I.useMemo(()=>a?!0:typeof e=="string"||typeof e=="number"?String(e).length===1:!1,[e,a]),v=I.useMemo(()=>Jg({variant:t,color:n,size:r,shape:i,placement:o,isOneChar:b,showOutline:l,isInvisible:c,disableAnimation:u}),[t,n,r,i,o,b,l,c,u]);return!e&&s?B.jsx(B.Fragment,{children:s}):e&&!s?B.jsx("span",{ref:p,className:Le(v.badge(),d?.badge,f),...h,children:e}):B.jsxs("div",{ref:p,className:Le(v.base(),d?.base,f),...h,children:[s,e&&B.jsx("span",{className:Le(v.badge(),d?.badge),"aria-label":typeof e=="string"?e:"Badge",children:e})]})});Tu.displayName="Badge";const Qg=Ie({slots:{base:["max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap","px-1","h-7","text-small","rounded-full","subpixel-antialiased","transition-colors","cursor-default","tap-highlight-transparent"],content:["flex-1","text-inherit","font-normal","px-2"],dot:["w-2","h-2","ml-1","rounded-full"],avatar:["flex","shrink-0","w-5","h-5","ml-1"],closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","cursor-pointer","active:opacity-disabled","hover:opacity-100","rounded-full","flex","items-center","justify-center","box-border","w-5","h-5","mr-1"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-small"},shadow:{base:"shadow-lg"},dot:{base:"border-medium border-default bg-transparent"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"w-4 h-4",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"w-5 h-5",avatar:"w-5 h-5"},lg:{base:"px-1 h-8 text-medium",content:"px-2",closeButton:"w-6 h-6",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"},false:{}},isCloseButtonVisible:{true:{},false:{}}},compoundVariants:[{variant:"solid",color:"default",class:{base:"bg-default text-default-foreground"}},{variant:"solid",color:"primary",class:{base:"bg-primary text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:"bg-secondary text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:"bg-success text-success-foreground"}},{variant:"solid",color:"warning",class:{base:"bg-warning text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:"bg-danger text-danger-foreground"}},{variant:"bordered",color:"default",class:{base:"border-default text-foreground"}},{variant:"bordered",color:"primary",class:{base:"border-primary text-primary"}},{variant:"bordered",color:"secondary",class:{base:"border-secondary text-secondary"}},{variant:"bordered",color:"success",class:{base:"border-success text-success"}},{variant:"bordered",color:"warning",class:{base:"border-warning text-warning"}},{variant:"bordered",color:"danger",class:{base:"border-danger text-danger"}},{variant:"light",color:"default",class:{base:"text-default-600"}},{variant:"light",color:"primary",class:{base:"text-primary"}},{variant:"light",color:"secondary",class:{base:"text-secondary"}},{variant:"light",color:"success",class:{base:"text-success"}},{variant:"light",color:"warning",class:{base:"text-warning"}},{variant:"light",color:"danger",class:{base:"text-danger"}},{variant:"flat",color:"default",class:{base:"bg-default/20 text-default-600"}},{variant:"flat",color:"primary",class:{base:"bg-primary/20 text-primary-600"}},{variant:"flat",color:"secondary",class:{base:"bg-secondary/20 text-secondary-600"}},{variant:"flat",color:"success",class:{base:"bg-success/20 text-success-600 dark:text-success-500"}},{variant:"flat",color:"warning",class:{base:"bg-warning/20 text-warning-600 dark:text-warning-500"}},{variant:"flat",color:"danger",class:{base:"bg-danger/20 text-danger-500"}},{variant:"faded",color:"default",class:{base:"border-default bg-default-50 text-default-foreground"}},{variant:"faded",color:"primary",class:{base:"border-primary bg-primary-50 text-primary-600"}},{variant:"faded",color:"secondary",class:{base:"border-secondary bg-secondary-50 text-secondary-600"}},{variant:"faded",color:"success",class:{base:"border-success bg-success-50 text-success-600 dark:text-success-500"}},{variant:"faded",color:"warning",class:{base:"border-warning bg-warning-50 text-warning-600 dark:text-warning-500"}},{variant:"faded",color:"danger",class:{base:"border-danger bg-danger-50 text-danger-500"}},{variant:"shadow",color:"default",class:{base:"shadow-lg shadow-default/50 bg-default text-default-foreground"}},{variant:"shadow",color:"primary",class:{base:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{base:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground"}},{variant:"shadow",color:"success",class:{base:"shadow-lg shadow-success/40 bg-success text-success-foreground"}},{variant:"shadow",color:"warning",class:{base:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground"}},{variant:"shadow",color:"danger",class:{base:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"}},{variant:"dot",color:"default",class:{base:"text-default-foreground",dot:"bg-default-400"}},{variant:"dot",color:"primary",class:{base:"text-foreground",dot:"bg-primary"}},{variant:"dot",color:"secondary",class:{base:"text-foreground",dot:"bg-secondary"}},{variant:"dot",color:"success",class:{base:"text-foreground",dot:"bg-success"}},{variant:"dot",color:"warning",class:{base:"text-foreground",dot:"bg-warning"}},{variant:"dot",color:"danger",class:{base:"text-foreground",dot:"bg-danger"}}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1,isCloseButtonVisible:!1}}),e1=s=>{const e=ge.c(3),{className:t}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=B.jsx("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:n}),e[1]=t,e[2]=r):r=e[2],r},ku=I.forwardRef(({children:s,variant:e="solid",color:t="default",size:n="md",radius:r="full",avatar:i,startContent:o,endContent:a,isDisabled:l=!1,classNames:c,className:u,onClose:d,...f},h)=>{const p=!!d,b=I.useMemo(()=>Qg({variant:e,color:t,size:n,radius:r,isDisabled:l,isCloseButtonVisible:p}),[e,t,n,r,l,p]),v=()=>e!=="dot"?null:B.jsx("span",{className:Le(b.dot(),c?.dot),"aria-hidden":"true"}),S=()=>i?B.jsx("span",{className:Le(b.avatar(),c?.avatar),children:i}):null,m=()=>o||null,y=()=>d?B.jsx("button",{type:"button",className:Le(b.closeButton(),c?.closeButton),onClick:d,"aria-label":"Close",disabled:l,children:a||B.jsx(e1,{className:"w-3 h-3"})}):a||null;return B.jsxs("div",{ref:h,className:Le(b.base(),c?.base,u),...f,children:[v(),S(),m(),B.jsx("span",{className:Le(b.content(),c?.content),children:s}),y()]})});ku.displayName="Chip";const Vo={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},t1={none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"},s1=(s=!1)=>["relative inline-block overflow-hidden",s?"cursor-pointer transition-transform duration-300 ease-in-out hover:scale-105":""].filter(Boolean).join(" "),n1=()=>"relative overflow-hidden",r1=(s="lg",e="none",t=!1)=>{const n=Vo[s],r=t1[e];return["max-w-full h-auto object-cover",n,r,t?"opacity-0 transition-opacity duration-500 ease-in-out":"opacity-100 transition-opacity duration-500 ease-in-out"].filter(Boolean).join(" ")},i1=(s="lg")=>["absolute inset-0 w-full h-full object-cover blur-lg scale-110 opacity-30",Vo[s]].filter(Boolean).join(" "),o1=(s="lg")=>["animate-pulse bg-gray-200 dark:bg-gray-700",Vo[s]].filter(Boolean).join(" "),a1=s=>{const e=ge.c(72),{src:t,srcSet:n,sizes:r,alt:i,width:o,height:a,radius:l,shadow:c,loading:u,fallbackSrc:d,isBlurred:f,isZoomed:h,removeWrapper:p,disableSkeleton:b,className:v,classNames:S,onLoad:m,onError:y,"data-testid":g}=s,w=l===void 0?"lg":l,x=c===void 0?"none":c,k=u===void 0?"lazy":u,C=f===void 0?!1:f,E=h===void 0?!1:h,j=p===void 0?!1:p,N=b===void 0?!1:b,L=v===void 0?"":v,[D,V]=I.useState(!N),[A,P]=I.useState(!1),[M,T]=I.useState(t),R=I.useRef(null);let F;e[0]!==m?(F=be=>{V(!1),P(!1),m?.(be)},e[0]=m,e[1]=F):F=e[1];const z=F;let O;e[2]!==M||e[3]!==N||e[4]!==d||e[5]!==y?(O=()=>{P(!0),V(!1),d&&M!==d&&(T(d),V(!N)),y?.()},e[2]=M,e[3]=N,e[4]=d,e[5]=y,e[6]=O):O=e[6];const $=O;let W,_;e[7]!==M||e[8]!==N||e[9]!==A||e[10]!==t?(W=()=>{t!==M&&!A&&(T(t),V(!N),P(!1))},_=[t,M,A,N],e[7]=M,e[8]=N,e[9]=A,e[10]=t,e[11]=W,e[12]=_):(W=e[11],_=e[12]),I.useEffect(W,_);let H;e[13]!==D||e[14]!==w||e[15]!==x?(H=r1(w,x,D),e[13]=D,e[14]=w,e[15]=x,e[16]=H):H=e[16];const X=H,G=S?.img;let K;e[17]!==L||e[18]!==X||e[19]!==G?(K=[X,G,L].filter(Boolean),e[17]=L,e[18]=X,e[19]=G,e[20]=K):K=e[20];const U=K.join(" ");let Z;e[21]!==S?.wrapper||e[22]!==g||e[23]!==N||e[24]!==a||e[25]!==D||e[26]!==w||e[27]!==o?(Z=D&&!N&&B.jsx("div",{className:`${o1(w)} ${S?.wrapper||""}`,style:{width:o,height:a},"data-testid":`${g}-skeleton`}),e[21]=S?.wrapper,e[22]=g,e[23]=N,e[24]=a,e[25]=D,e[26]=w,e[27]=o,e[28]=Z):Z=e[28];const Y=Z;let J;e[29]!==i||e[30]!==U||e[31]!==M||e[32]!==g||e[33]!==$||e[34]!==z||e[35]!==a||e[36]!==k||e[37]!==r||e[38]!==n||e[39]!==o?(J=B.jsx("img",{ref:R,src:M,srcSet:n,sizes:r,alt:i,width:o,height:a,loading:k,className:U,onLoad:z,onError:$,"data-testid":g}),e[29]=i,e[30]=U,e[31]=M,e[32]=g,e[33]=$,e[34]=z,e[35]=a,e[36]=k,e[37]=r,e[38]=n,e[39]=o,e[40]=J):J=e[40];const Q=J;let q;e[41]!==i||e[42]!==S?.blurredImg||e[43]!==M||e[44]!==g||e[45]!==A||e[46]!==C||e[47]!==D||e[48]!==w?(q=C&&!D&&!A&&B.jsx(u1,{src:M,alt:`${i} (blurred background)`,className:`${i1(w)} ${S?.blurredImg||""}`,"data-testid":`${g}-blurred`}),e[41]=i,e[42]=S?.blurredImg,e[43]=M,e[44]=g,e[45]=A,e[46]=C,e[47]=D,e[48]=w,e[49]=q):q=e[49];const te=q;if(j){const be=!D&&Q;let ve;return e[50]!==Y||e[51]!==be?(ve=B.jsxs(B.Fragment,{children:[Y,be]}),e[50]=Y,e[51]=be,e[52]=ve):ve=e[52],ve}const se=E?c1:l1;let ee;e[53]!==E?(ee=s1(E),e[53]=E,e[54]=ee):ee=e[54];const ne=S?.wrapper;let ie;e[55]!==ee||e[56]!==ne?(ie=[ee,ne].filter(Boolean),e[55]=ee,e[56]=ne,e[57]=ie):ie=e[57];const oe=ie.join(" ");let re;e[58]!==S?.zoomedWrapper||e[59]!==E?(re=E?[n1(),S?.zoomedWrapper].filter(Boolean).join(" "):"",e[58]=S?.zoomedWrapper,e[59]=E,e[60]=re):re=e[60];const le=E?re:oe,ce=`${g}-wrapper`;let pe;e[61]!==te||e[62]!==Q||e[63]!==D?(pe=!D&&B.jsxs(B.Fragment,{children:[te,Q]}),e[61]=te,e[62]=Q,e[63]=D,e[64]=pe):pe=e[64];let ye;return e[65]!==se||e[66]!==E||e[67]!==Y||e[68]!==le||e[69]!==ce||e[70]!==pe?(ye=B.jsxs(se,{className:le,isZoomed:E,"data-testid":ce,children:[Y,pe]}),e[65]=se,e[66]=E,e[67]=Y,e[68]=le,e[69]=ce,e[70]=pe,e[71]=ye):ye=e[71],ye},l1=s=>{const e=ge.c(4),{children:t,className:n,"data-testid":r}=s,i=n===void 0?"":n;let o;return e[0]!==t||e[1]!==i||e[2]!==r?(o=B.jsx("div",{className:i,"data-testid":r,children:t}),e[0]=t,e[1]=i,e[2]=r,e[3]=o):o=e[3],o},c1=s=>{const e=ge.c(4),{children:t,className:n,"data-testid":r}=s,i=n===void 0?"":n;let o;return e[0]!==t||e[1]!==i||e[2]!==r?(o=B.jsx("div",{className:i,"data-testid":r,children:t}),e[0]=t,e[1]=i,e[2]=r,e[3]=o):o=e[3],o},u1=s=>{const e=ge.c(5),{src:t,alt:n,className:r,"data-testid":i}=s,o=r===void 0?"":r;let a;return e[0]!==n||e[1]!==o||e[2]!==i||e[3]!==t?(a=B.jsx("img",{src:t,alt:n,className:o,"aria-hidden":"true","data-testid":i}),e[0]=n,e[1]=o,e[2]=i,e[3]=t,e[4]=a):a=e[4],a},d1=(s=!0,e=!1,t="inside")=>{const n=["group","flex","flex-col"];return s&&n.push("w-full"),e&&n.push("opacity-disabled","pointer-events-none"),(t==="outside"||t==="outside-left")&&n.push("gap-2"),n.join(" ")},f1=(s="inside")=>{const e=["flex"];return s==="outside-left"?e.push("flex-row","items-center","gap-4"):e.push("flex-col","gap-2"),e.join(" ")},h1=(s="md",e="default",t="inside",n=!1,r=!1)=>{const i=["select-none","font-medium","transition-colors","duration-200"],o={sm:"text-xs",md:"text-sm",lg:"text-base"};if(i.push(o[s]),r)i.push("text-danger");else{const a={default:"text-foreground-600",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"};i.push(a[e])}if(t==="inside"){i.push("absolute","origin-top-left","left-3","pointer-events-none","transform-gpu","transition-all","duration-200","ease-out","group-data-[filled=true]:scale-85","group-data-[filled=true]:-translate-y-1.5","group-data-[focus=true]:scale-85","group-data-[focus=true]:-translate-y-1.5");const a={sm:"top-1.5",md:"top-2.5",lg:"top-3.5"};i.push(a[s])}else t==="outside-left"&&i.push("flex-shrink-0","w-32");return n&&i.push("after:content-['*']","after:text-danger","after:ml-0.5"),i.join(" ")},m1=(s="flat",e="default",t="md",n="md",r=!1,i=!1,o=!1)=>{const a=["relative","inline-flex","items-center","w-full","transition-all","duration-200","ease-in-out","group-data-[focus=true]:z-10"],l={sm:"h-8 min-h-8 px-2.5",md:"h-10 min-h-10 px-3",lg:"h-12 min-h-12 px-4"};a.push(l[t]);const c={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"};if(a.push(c[n]),i)switch(s){case"flat":a.push("bg-danger-50","hover:bg-danger-100");break;case"bordered":a.push("border-2","border-danger","hover:border-danger-hover");break;case"faded":a.push("bg-danger-50","border-2","border-danger-200","hover:border-danger");break;case"underlined":a.push("border-b-2","border-danger","hover:border-danger-hover");break}else switch(s){case"flat":const u={default:"bg-default-100 hover:bg-default-200",primary:"bg-primary-50 hover:bg-primary-100",secondary:"bg-secondary-50 hover:bg-secondary-100",success:"bg-success-50 hover:bg-success-100",warning:"bg-warning-50 hover:bg-warning-100",danger:"bg-danger-50 hover:bg-danger-100"};a.push(u[e]);break;case"bordered":if(a.push("border-2"),r){const f={default:"border-default-400",primary:"border-primary",secondary:"border-secondary",success:"border-success",warning:"border-warning",danger:"border-danger"};a.push(f[e])}else a.push("border-default-200","hover:border-default-400");break;case"faded":const d={default:"bg-default-100 border-2 border-default-200 hover:border-default-400",primary:"bg-primary-50 border-2 border-primary-200 hover:border-primary",secondary:"bg-secondary-50 border-2 border-secondary-200 hover:border-secondary",success:"bg-success-50 border-2 border-success-200 hover:border-success",warning:"bg-warning-50 border-2 border-warning-200 hover:border-warning",danger:"bg-danger-50 border-2 border-danger-200 hover:border-danger"};a.push(d[e]);break;case"underlined":if(a.push("border-b-2","rounded-none"),r){const f={default:"border-default-400",primary:"border-primary",secondary:"border-secondary",success:"border-success",warning:"border-warning",danger:"border-danger"};a.push(f[e])}else a.push("border-default-300","hover:border-default-400");break}return o&&a.push("opacity-50","cursor-not-allowed"),a.join(" ")},p1=()=>["inline-flex","items-center","w-full","gap-1.5","h-full"].join(" "),g1=(s="md",e="inside")=>{const t=["w-full","font-normal","bg-transparent","outline-none","placeholder:text-foreground-500","focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5"],n={sm:"text-sm",md:"text-sm",lg:"text-base"};return t.push(n[s]),e==="inside"&&t.push("group-data-[has-label=true]:pt-4"),t.join(" ")},y1=(s="md")=>{const e=["p-1","rounded-full","text-foreground-400","hover:text-foreground-600","hover:bg-default-100","active:bg-default-200","transition-all","duration-150","cursor-pointer","flex-shrink-0"],t={sm:"w-4 h-4 text-xs",md:"w-5 h-5 text-sm",lg:"w-6 h-6 text-base"};return e.push(t[s]),e.join(" ")},b1=()=>["flex","flex-col","gap-1.5","px-1"].join(" "),v1=(s="md")=>{const e=["text-foreground-400"],t={sm:"text-xs",md:"text-sm",lg:"text-sm"};return e.push(t[s]),e.join(" ")},x1=(s="md")=>{const e=["text-danger"],t={sm:"text-xs",md:"text-sm",lg:"text-sm"};return e.push(t[s]),e.join(" ")},w1=(s="md")=>{const e=["flex-shrink-0","text-foreground-400"],t={sm:"text-sm",md:"text-base",lg:"text-lg"};return e.push(t[s]),e.join(" ")},C1=(s,e)=>{const t=[];if(e.isRequired&&(!s||s.trim().length===0)&&t.push("This field is required"),!s||s.trim().length===0)return{isValid:t.length===0,errors:t};if(e.minLength&&s.length<e.minLength&&t.push(`Minimum length is ${e.minLength} characters`),e.maxLength&&s.length>e.maxLength&&t.push(`Maximum length is ${e.maxLength} characters`),e.pattern&&(new RegExp(e.pattern).test(s)||t.push("Invalid format")),e.type==="email"&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)||t.push("Please enter a valid email address")),e.type==="url")try{new URL(s)}catch{t.push("Please enter a valid URL")}if(e.customValidate){const n=e.customValidate(s);n!==!0&&n!==null&&n!==void 0&&(Array.isArray(n)?t.push(...n):typeof n=="string"&&t.push(n))}return{isValid:t.length===0,errors:t}},Au=I.forwardRef((s,e)=>{const t=ge.c(253);let n,r,i,o,a,l,c,u,d,f,h,p,b,v,S,m,y,g,w,x,k,C,E,j,N,L,D,V,A,P,M,T,R,F,z,O,$,W,_,H,X;t[0]!==s?({label:p,placeholder:E,description:d,errorMessage:h,startContent:N,endContent:f,value:X,defaultValue:u,variant:L,color:T,size:R,radius:F,labelPlacement:z,fullWidth:O,type:$,minLength:v,maxLength:b,pattern:C,isRequired:W,isDisabled:_,isReadOnly:D,isInvalid:V,isClearable:A,disableAnimation:P,classNames:l,className:a,validate:H,validationBehavior:M,baseRef:o,onChange:m,onValueChange:k,onClear:y,onFocus:g,onBlur:S,onKeyDown:w,onKeyUp:x,"data-testid":c,"aria-label":r,"aria-labelledby":i,"aria-describedby":n,...j}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=l,t[7]=c,t[8]=u,t[9]=d,t[10]=f,t[11]=h,t[12]=p,t[13]=b,t[14]=v,t[15]=S,t[16]=m,t[17]=y,t[18]=g,t[19]=w,t[20]=x,t[21]=k,t[22]=C,t[23]=E,t[24]=j,t[25]=N,t[26]=L,t[27]=D,t[28]=V,t[29]=A,t[30]=P,t[31]=M,t[32]=T,t[33]=R,t[34]=F,t[35]=z,t[36]=O,t[37]=$,t[38]=W,t[39]=_,t[40]=H,t[41]=X):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],d=t[9],f=t[10],h=t[11],p=t[12],b=t[13],v=t[14],S=t[15],m=t[16],y=t[17],g=t[18],w=t[19],x=t[20],k=t[21],C=t[22],E=t[23],j=t[24],N=t[25],L=t[26],D=t[27],V=t[28],A=t[29],P=t[30],M=t[31],T=t[32],R=t[33],F=t[34],z=t[35],O=t[36],$=t[37],W=t[38],_=t[39],H=t[40],X=t[41]);const G=L===void 0?"flat":L,K=T===void 0?"default":T,U=R===void 0?"md":R,Z=F===void 0?"md":F,Y=z===void 0?"inside":z,J=O===void 0?!0:O,Q=$===void 0?"text":$,q=W===void 0?!1:W,te=_===void 0?!1:_,se=D===void 0?!1:D,ee=V===void 0?!1:V,ne=A===void 0?!1:A,[ie,oe]=I.useState(u||""),[re,ae]=I.useState(!1),[le,ce]=I.useState(!1);let pe;t[42]===Symbol.for("react.memo_cache_sentinel")?(pe=[],t[42]=pe):pe=t[42];const[ye,be]=I.useState(pe),ve=I.useRef(null),Ce=X!==void 0,ue=Ce?X:ie,me=ue&&ue.length>0,he=me||re,xe=Q==="password",Te=xe&&le?"text":Q,Ve=H!==void 0,Ae=(ee||ye.length>0)&&!te,ze=`input-label-${Math.random().toString(36).substring(2,11)}`,Re=d?`input-description-${Math.random().toString(36).substring(2,11)}`:void 0,_e=Ae?`input-error-${Math.random().toString(36).substring(2,11)}`:void 0;let Ge,Oe;t[43]!==Ve||t[44]!==ue||t[45]!==q||t[46]!==b||t[47]!==v||t[48]!==C||t[49]!==Q||t[50]!==H?(Ge=()=>{if(Ve||q||v||b||C){const dt=C1(ue,{isRequired:q,minLength:v,maxLength:b,pattern:C,type:Q,customValidate:H});be(dt.errors)}},Oe=[ue,q,v,b,C,Q,H,Ve],t[43]=Ve,t[44]=ue,t[45]=q,t[46]=b,t[47]=v,t[48]=C,t[49]=Q,t[50]=H,t[51]=Ge,t[52]=Oe):(Ge=t[51],Oe=t[52]),I.useEffect(Ge,Oe);let He;t[53]!==Ce||t[54]!==m||t[55]!==k?(He=dt=>{const Po=dt.target.value;Ce||oe(Po),m?.(dt),k?.(Po)},t[53]=Ce,t[54]=m,t[55]=k,t[56]=He):He=t[56];const Ke=He;let Ze;t[57]!==g?(Ze=dt=>{ae(!0),g?.(dt)},t[57]=g,t[58]=Ze):Ze=t[58];const st=Ze;let Ee;t[59]!==S?(Ee=dt=>{ae(!1),S?.(dt)},t[59]=S,t[60]=Ee):Ee=t[60];const Ye=Ee;let nt;t[61]!==Ce||t[62]!==y||t[63]!==k?(nt=()=>{Ce||oe(""),y?.(),k?.(""),ve.current?.focus()},t[61]=Ce,t[62]=y,t[63]=k,t[64]=nt):nt=t[64];const ws=nt;let Xs;t[65]!==le?(Xs=()=>{ce(!le)},t[65]=le,t[66]=Xs):Xs=t[66];const rr=Xs;let qs;t[67]!==J||t[68]!==te||t[69]!==Y?(qs=d1(J,te,Y),t[67]=J,t[68]=te,t[69]=Y,t[70]=qs):qs=t[70];const ir=qs,or=l?.base;let Zs;t[71]!==ir||t[72]!==a||t[73]!==or?(Zs=[ir,or,a].filter(Boolean),t[71]=ir,t[72]=a,t[73]=or,t[74]=Zs):Zs=t[74];const ar=Zs.join(" ");let Js;t[75]!==Y?(Js=f1(Y),t[75]=Y,t[76]=Js):Js=t[76];const lr=Js,cr=l?.mainWrapper;let Qs;t[77]!==lr||t[78]!==cr?(Qs=[lr,cr].filter(Boolean),t[77]=lr,t[78]=cr,t[79]=Qs):Qs=t[79];const ur=Qs.join(" ");let en;t[80]!==K||t[81]!==q||t[82]!==Y||t[83]!==Ae||t[84]!==U?(en=h1(U,K,Y,q,Ae),t[80]=K,t[81]=q,t[82]=Y,t[83]=Ae,t[84]=U,t[85]=en):en=t[85];const dr=en,fr=l?.label;let tn;t[86]!==dr||t[87]!==fr?(tn=[dr,fr].filter(Boolean),t[86]=dr,t[87]=fr,t[88]=tn):tn=t[88];const hr=tn.join(" ");let sn;t[89]!==K||t[90]!==te||t[91]!==re||t[92]!==Z||t[93]!==Ae||t[94]!==U||t[95]!==G?(sn=m1(G,K,U,Z,re,Ae,te),t[89]=K,t[90]=te,t[91]=re,t[92]=Z,t[93]=Ae,t[94]=U,t[95]=G,t[96]=sn):sn=t[96];const mr=sn,pr=l?.inputWrapper;let nn;t[97]!==mr||t[98]!==pr?(nn=[mr,pr].filter(Boolean),t[97]=mr,t[98]=pr,t[99]=nn):nn=t[99];const gr=nn.join(" ");let rn;t[100]===Symbol.for("react.memo_cache_sentinel")?(rn=p1(),t[100]=rn):rn=t[100];const Bu=rn,yr=l?.innerWrapper;let on;t[101]!==yr?(on=[Bu,yr].filter(Boolean),t[101]=yr,t[102]=on):on=t[102];const br=on.join(" ");let an;t[103]!==Y||t[104]!==U?(an=g1(U,Y),t[103]=Y,t[104]=U,t[105]=an):an=t[105];const vr=an,xr=l?.input;let ln;t[106]!==vr||t[107]!==xr?(ln=[vr,xr].filter(Boolean),t[106]=vr,t[107]=xr,t[108]=ln):ln=t[108];const wr=ln.join(" ");let cn;t[109]!==U?(cn=y1(U),t[109]=U,t[110]=cn):cn=t[110];const Cr=cn,Sr=l?.clearButton;let un;t[111]!==Cr||t[112]!==Sr?(un=[Cr,Sr].filter(Boolean),t[111]=Cr,t[112]=Sr,t[113]=un):un=t[113];const Ft=un.join(" ");let dn;t[114]===Symbol.for("react.memo_cache_sentinel")?(dn=b1(),t[114]=dn):dn=t[114];const Lu=dn,Tr=l?.helperWrapper;let fn;t[115]!==Tr?(fn=[Lu,Tr].filter(Boolean),t[115]=Tr,t[116]=fn):fn=t[116];const kr=fn.join(" ");let hn;t[117]!==U?(hn=v1(U),t[117]=U,t[118]=hn):hn=t[118];const Ar=hn,Vr=l?.description;let mn;t[119]!==Ar||t[120]!==Vr?(mn=[Ar,Vr].filter(Boolean),t[119]=Ar,t[120]=Vr,t[121]=mn):mn=t[121];const Mr=mn.join(" ");let pn;t[122]!==U?(pn=x1(U),t[122]=U,t[123]=pn):pn=t[123];const Pr=pn,Er=l?.errorMessage;let gn;t[124]!==Pr||t[125]!==Er?(gn=[Pr,Er].filter(Boolean),t[124]=Pr,t[125]=Er,t[126]=gn):gn=t[126];const Ir=gn.join(" ");let yn;t[127]!==U?(yn=w1(U),t[127]=U,t[128]=yn):yn=t[128];const zt=yn;let bn;t[129]!==h||t[130]!==me||t[131]!==ue||t[132]!==q||t[133]!==b||t[134]!==v||t[135]!==C||t[136]!==Ae||t[137]!==ye?(bn=()=>{if(!Ae)return null;if(typeof h=="function"){const dt={isInvalid:Ae,validationErrors:ye,validationDetails:{valid:ye.length===0,valueMissing:q&&!me,tooShort:v?ue.length<v:void 0,tooLong:b?ue.length>b:void 0,patternMismatch:C?!new RegExp(C).test(ue):void 0}};return h(dt)}return h||(ye.length>0?ye[0]:null)},t[129]=h,t[130]=me,t[131]=ue,t[132]=q,t[133]=b,t[134]=v,t[135]=C,t[136]=Ae,t[137]=ye,t[138]=bn):bn=t[138];const Rr=bn;let vn;t[139]!==Ft||t[140]!==c||t[141]!==ws||t[142]!==me||t[143]!==ne||t[144]!==te||t[145]!==se?(vn=()=>!ne||!me||te||se?null:B.jsx("button",{type:"button",className:Ft,onClick:ws,tabIndex:-1,"data-testid":c?`${c}-clear-button`:void 0,children:B.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[B.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),B.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),t[139]=Ft,t[140]=c,t[141]=ws,t[142]=me,t[143]=ne,t[144]=te,t[145]=se,t[146]=vn):vn=t[146];const jr=vn;let xn;t[147]!==Ft||t[148]!==c||t[149]!==rr||t[150]!==xe||t[151]!==le?(xn=()=>xe?B.jsx("button",{type:"button",className:Ft,onClick:rr,tabIndex:-1,"data-testid":c?`${c}-password-toggle`:void 0,children:le?B.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[B.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94L17.94 17.94z"}),B.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),B.jsx("path",{d:"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19l-6.84-6.84z"})]}):B.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[B.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),B.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}):null,t[147]=Ft,t[148]=c,t[149]=rr,t[150]=xe,t[151]=le,t[152]=xn):xn=t[152];const Nr=xn;let wn;t[153]!==hr||t[154]!==c||t[155]!==ue||t[156]!==re||t[157]!==q||t[158]!==p||t[159]!==Y?(wn=()=>p?Y==="inside"?B.jsxs("label",{id:ze,className:`
30
+ absolute left-3 transition-all duration-200 pointer-events-none z-10
31
+ text-small text-gray-500
32
+ top-1/2 -translate-y-1/2 origin-left
33
+ ${ue||re?["text-tiny scale-85 -translate-y-[1.875rem] px-1 bg-content1","text-gray-600"].join(" "):""}
34
+ `.replace(/\s+/g," ").trim(),htmlFor:c,"data-testid":c?`${c}-label`:void 0,style:{zIndex:10},children:[p,q&&B.jsx("span",{className:"text-danger ml-1",children:"*"})]}):B.jsxs("label",{id:ze,className:hr,htmlFor:c,"data-testid":c?`${c}-label`:void 0,children:[p,q&&B.jsx("span",{className:"text-danger ml-1",children:"*"})]}):null,t[153]=hr,t[154]=c,t[155]=ue,t[156]=re,t[157]=q,t[158]=p,t[159]=Y,t[160]=wn):wn=t[160];const pt=wn,Dr=Y==="inside"?re||ue?E:"":E,Br=p?ze:i;let _t;t[161]!==n||t[162]!==Re||t[163]!==_e?(_t=[Re,_e,n].filter(Boolean).join(" ")||void 0,t[161]=n,t[162]=Re,t[163]=_e,t[164]=_t):_t=t[164];const Lr=c?`${c}-input`:void 0,Or=!!N,$r=!!(f||ne||xe);let Cn;t[165]!==Te||t[166]!==r||t[167]!==wr||t[168]!==c||t[169]!==Ye||t[170]!==st||t[171]!==Ke||t[172]!==ue||t[173]!==te||t[174]!==se||t[175]!==q||t[176]!==b||t[177]!==v||t[178]!==w||t[179]!==x||t[180]!==C||t[181]!==j||t[182]!==Ae||t[183]!==Dr||t[184]!==Br||t[185]!==_t||t[186]!==Lr||t[187]!==Or||t[188]!==$r?(Cn=B.jsx("input",{...j,ref:e||ve,id:c,type:Te,value:ue,placeholder:Dr,disabled:te,readOnly:se,required:q,minLength:v,maxLength:b,pattern:C,className:wr,onChange:Ke,onFocus:st,onBlur:Ye,onKeyDown:w,onKeyUp:x,"aria-label":r,"aria-labelledby":Br,"aria-describedby":_t,"aria-invalid":Ae,"data-testid":Lr,"data-has-start-content":Or,"data-has-end-content":$r}),t[165]=Te,t[166]=r,t[167]=wr,t[168]=c,t[169]=Ye,t[170]=st,t[171]=Ke,t[172]=ue,t[173]=te,t[174]=se,t[175]=q,t[176]=b,t[177]=v,t[178]=w,t[179]=x,t[180]=C,t[181]=j,t[182]=Ae,t[183]=Dr,t[184]=Br,t[185]=_t,t[186]=Lr,t[187]=Or,t[188]=$r,t[189]=Cn):Cn=t[189];const Fr=Cn,zr=!!p,_r=!!(d||Ae);let Wt;t[190]!==Y||t[191]!==pt?(Wt=Y==="outside-left"&&pt(),t[190]=Y,t[191]=pt,t[192]=Wt):Wt=t[192];let Gt;t[193]!==Y||t[194]!==pt?(Gt=Y==="outside"&&pt(),t[193]=Y,t[194]=pt,t[195]=Gt):Gt=t[195];let Ut;t[196]!==Y||t[197]!==pt?(Ut=Y==="inside"&&pt(),t[196]=Y,t[197]=pt,t[198]=Ut):Ut=t[198];let Ht;t[199]!==zt||t[200]!==c||t[201]!==N?(Ht=N&&B.jsx("div",{className:zt,"data-testid":c?`${c}-start-content`:void 0,children:N}),t[199]=zt,t[200]=c,t[201]=N,t[202]=Ht):Ht=t[202];let Kt;t[203]!==zt||t[204]!==c||t[205]!==f?(Kt=f&&B.jsx("div",{className:zt,"data-testid":c?`${c}-end-content`:void 0,children:f}),t[203]=zt,t[204]=c,t[205]=f,t[206]=Kt):Kt=t[206];let Yt;t[207]!==Nr?(Yt=Nr(),t[207]=Nr,t[208]=Yt):Yt=t[208];let Xt;t[209]!==jr?(Xt=jr(),t[209]=jr,t[210]=Xt):Xt=t[210];let qt;t[211]!==br||t[212]!==Fr||t[213]!==Ht||t[214]!==Kt||t[215]!==Yt||t[216]!==Xt?(qt=B.jsxs("div",{className:br,children:[Ht,Fr,Kt,Yt,Xt]}),t[211]=br,t[212]=Fr,t[213]=Ht,t[214]=Kt,t[215]=Yt,t[216]=Xt,t[217]=qt):qt=t[217];let Zt;t[218]!==gr||t[219]!==Ut||t[220]!==qt?(Zt=B.jsxs("div",{className:gr,children:[Ut,qt]}),t[218]=gr,t[219]=Ut,t[220]=qt,t[221]=Zt):Zt=t[221];let Jt;t[222]!==Gt||t[223]!==Zt?(Jt=B.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[Gt,Zt]}),t[222]=Gt,t[223]=Zt,t[224]=Jt):Jt=t[224];let Qt;t[225]!==ur||t[226]!==Wt||t[227]!==Jt?(Qt=B.jsxs("div",{className:ur,children:[Wt,Jt]}),t[225]=ur,t[226]=Wt,t[227]=Jt,t[228]=Qt):Qt=t[228];let es;t[229]!==Mr||t[230]!==Ir||t[231]!==kr||t[232]!==c||t[233]!==d||t[234]!==Re||t[235]!==_e||t[236]!==Rr||t[237]!==Ae?(es=(d||Ae)&&B.jsxs("div",{className:kr,children:[d&&B.jsx("div",{id:Re,className:Mr,"data-testid":c?`${c}-description`:void 0,children:d}),Ae&&B.jsx("div",{id:_e,className:Ir,"data-testid":c?`${c}-error-message`:void 0,children:Rr()})]}),t[229]=Mr,t[230]=Ir,t[231]=kr,t[232]=c,t[233]=d,t[234]=Re,t[235]=_e,t[236]=Rr,t[237]=Ae,t[238]=es):es=t[238];let Sn;return t[239]!==o||t[240]!==ar||t[241]!==c||t[242]!==te||t[243]!==he||t[244]!==re||t[245]!==se||t[246]!==q||t[247]!==Ae||t[248]!==zr||t[249]!==_r||t[250]!==Qt||t[251]!==es?(Sn=B.jsxs("div",{ref:o,className:ar,"data-testid":c,"data-invalid":Ae,"data-required":q,"data-readonly":se,"data-disabled":te,"data-focus":re,"data-focus-within":re,"data-focus-visible":re,"data-filled":he,"data-has-label":zr,"data-has-helper":_r,children:[Qt,es]}),t[239]=o,t[240]=ar,t[241]=c,t[242]=te,t[243]=he,t[244]=re,t[245]=se,t[246]=q,t[247]=Ae,t[248]=zr,t[249]=_r,t[250]=Qt,t[251]=es,t[252]=Sn):Sn=t[252],Sn});Au.displayName="Input";const Fs=Ie({slots:{wrapper:["fixed","inset-0","z-50","flex","items-center","justify-center","p-4","sm:p-0","overflow-hidden"],base:["relative","flex","flex-col","w-full","box-border","outline-none","mx-1","my-1","sm:mx-6","sm:my-16","bg-content1","color-foreground","shadow-large","rounded-large","max-h-[calc(100vh_-_2rem)]","sm:max-h-[calc(100vh_-_8rem)]","data-[open=true]:animate-in","data-[open=false]:animate-out","data-[open=false]:fade-out-0","data-[open=true]:fade-in-0","data-[open=false]:zoom-out-95","data-[open=true]:zoom-in-95","data-[open=false]:slide-out-to-left-1/2","data-[open=false]:slide-out-to-top-[48%]","data-[open=true]:slide-in-from-left-1/2","data-[open=true]:slide-in-from-top-[48%]","data-[open=false]:duration-200","data-[open=true]:duration-200"],backdrop:["fixed","inset-0","z-50","bg-overlay/50","data-[enter]:animate-in","data-[exit]:animate-out","data-[enter]:fade-in-0","data-[exit]:fade-out-0","data-[enter]:duration-200","data-[exit]:duration-150"],header:["flex","py-4","px-6","relative","flex-col","gap-1","text-large","font-semibold"],body:["relative","flex-1","px-6","py-2","flex","flex-col","gap-3","min-h-0"],footer:["flex","flex-row","gap-2","px-6","py-4","justify-end"],closeButton:["absolute","appearance-none","outline-none","select-none","top-1","right-1","rtl:right-auto","rtl:left-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent","transition-opacity","data-[pressed=true]:scale-95","transition-transform","z-10"]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"max-w-full max-h-full my-0 mx-0 sm:my-0 sm:mx-0 rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"bg-transparent"},opaque:{backdrop:"bg-overlay/50"},blur:{backdrop:"bg-overlay/30 backdrop-blur-sm backdrop-saturate-150"}},scrollBehavior:{normal:{base:"overflow-hidden",body:"overflow-y-auto max-h-[60vh]"},inside:{base:"max-h-[calc(100vh_-_8rem)] overflow-hidden flex flex-col",body:"overflow-y-auto flex-1 min-h-0"},outside:{wrapper:"items-start sm:items-center overflow-y-auto py-8",base:"my-0 max-h-fit overflow-visible",body:"overflow-visible"}},placement:{auto:{wrapper:"items-end sm:items-center",base:"sm:my-16 my-2"},top:{wrapper:"items-start",base:"mt-2 mb-auto"},"top-center":{wrapper:"items-start sm:items-center",base:"mt-2 sm:mt-16 mb-auto"},center:{wrapper:"items-center",base:"my-auto"},bottom:{wrapper:"items-end",base:"mb-2 mt-auto"},"bottom-center":{wrapper:"items-end sm:items-center",base:"mb-2 sm:mb-16 mt-auto"}},disableAnimation:{true:{base:["data-[open=true]:animate-none","data-[open=false]:animate-none"],backdrop:["data-[enter]:animate-none","data-[exit]:animate-none"]}},isDraggable:{true:{header:"cursor-move select-none active:cursor-grabbing",base:"cursor-default"}}},defaultVariants:{size:"md",radius:"lg",shadow:"lg",backdrop:"opaque",scrollBehavior:"normal",placement:"auto",disableAnimation:!1,isDraggable:!1}}),Vu=I.createContext(null),Mo=()=>{const s=I.useContext(Vu);if(!s)throw new Error("Modal components must be used within a Modal");return s},S1=()=>{const s=ge.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=B.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"1em",children:B.jsx("path",{d:"m18 6-12 12M6 6l12 12"})}),s[0]=e):e=s[0],e},T1=s=>{const e=ge.c(3);let t,n;e[0]!==s?(t=()=>{if(!s)return;const r=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=r}},n=[s],e[0]=s,e[1]=t,e[2]=n):(t=e[1],n=e[2]),I.useEffect(t,n)},k1=(s,e)=>{const t=ge.c(4),n=I.useRef(null);let r,i;t[0]!==s||t[1]!==e?(r=()=>{s?(n.current=document.activeElement,setTimeout(()=>{if(e.current){const o=e.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');o.length>0?o[0].focus():e.current.focus()}},100)):n.current&&n.current.focus()},i=[s,e],t[0]=s,t[1]=e,t[2]=r,t[3]=i):(r=t[2],i=t[3]),I.useEffect(r,i)},A1=(s,e,t)=>{const n=ge.c(9),[r,i]=I.useState(!1),o=I.useRef(null);let a,l;n[0]!==t?(a=()=>{t||i(!1)},l=[t],n[0]=t,n[1]=a,n[2]=l):(a=n[1],l=n[2]),I.useEffect(a,l);let c;n[3]!==e||n[4]!==s?(c=s?{drag:!0,dragMomentum:!1,dragElastic:.1,dragConstraints:e?!1:o,onDragStart:()=>i(!0),onDragEnd:()=>i(!1),whileDrag:{scale:1.02,transition:{duration:.1}}}:{},n[3]=e,n[4]=s,n[5]=c):c=n[5];const u=c;let d;return n[6]!==u||n[7]!==r?(d={dragProps:u,isDragging:r,constraintsRef:o},n[6]=u,n[7]=r,n[8]=d):d=n[8],d},Mu=I.forwardRef((s,e)=>{const t=ge.c(99);let n,r,i,o,a,l,c,u,d,f,h,p,b,v,S,m,y,g,w,x,k,C,E,j;t[0]!==s?({children:n,size:f,radius:y,shadow:g,backdrop:w,scrollBehavior:x,placement:k,isOpen:a,defaultOpen:C,isDismissable:E,isKeyboardDismissDisabled:j,shouldBlockScroll:h,hideCloseButton:p,closeButton:o,motionProps:l,portalContainer:b,disableAnimation:v,isDraggable:S,allowOverflow:m,classNames:i,className:r,onOpenChange:u,onClose:c,...d}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=l,t[7]=c,t[8]=u,t[9]=d,t[10]=f,t[11]=h,t[12]=p,t[13]=b,t[14]=v,t[15]=S,t[16]=m,t[17]=y,t[18]=g,t[19]=w,t[20]=x,t[21]=k,t[22]=C,t[23]=E,t[24]=j):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],d=t[9],f=t[10],h=t[11],p=t[12],b=t[13],v=t[14],S=t[15],m=t[16],y=t[17],g=t[18],w=t[19],x=t[20],k=t[21],C=t[22],E=t[23],j=t[24]);const N=f===void 0?"md":f,L=y===void 0?"lg":y,D=g===void 0?"lg":g,V=w===void 0?"opaque":w,A=x===void 0?"normal":x,P=k===void 0?"auto":k,M=C===void 0?!1:C,T=E===void 0?!0:E,R=j===void 0?!1:j,F=h===void 0?!0:h,z=p===void 0?!1:p,O=b===void 0?document.body:b,$=v===void 0?!1:v,W=S===void 0?!1:S,_=m===void 0?!1:m,[H,X]=I.useState(M),G=I.useRef(null),K=a!==void 0?a:H;let U;t[25]!==a||t[26]!==c||t[27]!==u?(U=pe=>{a===void 0&&X(pe),u?.(pe),pe||c?.()},t[25]=a,t[26]=c,t[27]=u,t[28]=U):U=t[28];const Z=U;let Y;t[29]!==Z?(Y=()=>{Z(!1)},t[29]=Z,t[30]=Y):Y=t[30];const J=Y;let Q;t[31]!==J||t[32]!==R||t[33]!==K?(Q=()=>{if(!K||R)return;const pe=ye=>{ye.key==="Escape"&&J()};return document.addEventListener("keydown",pe),()=>document.removeEventListener("keydown",pe)},t[31]=J,t[32]=R,t[33]=K,t[34]=Q):Q=t[34];let q;t[35]!==R||t[36]!==K?(q=[K,R],t[35]=R,t[36]=K,t[37]=q):q=t[37],I.useEffect(Q,q);let te;t[38]!==J||t[39]!==T?(te=pe=>{T&&pe.target===pe.currentTarget&&J()},t[38]=J,t[39]=T,t[40]=te):te=t[40];const se=te;T1(K&&F),k1(K,G);const{dragProps:ee,isDragging:ne,constraintsRef:ie}=A1(W,_,K);let oe,re;if(t[41]!==_||t[42]!==V||t[43]!==n||t[44]!==r||t[45]!==i||t[46]!==o||t[47]!==ie||t[48]!==$||t[49]!==ee||t[50]!==se||t[51]!==J||t[52]!==Z||t[53]!==z||t[54]!==T||t[55]!==W||t[56]!==ne||t[57]!==R||t[58]!==K||t[59]!==l||t[60]!==P||t[61]!==d||t[62]!==L||t[63]!==e||t[64]!==A||t[65]!==D||t[66]!==F||t[67]!==N){const{wrapper:pe,base:ye,backdrop:be}=Fs({size:N,radius:L,shadow:D,backdrop:V,scrollBehavior:A,placement:P,disableAnimation:$,isDraggable:W});let ve;t[70]!==_||t[71]!==V||t[72]!==i||t[73]!==$||t[74]!==J||t[75]!==Z||t[76]!==z||t[77]!==T||t[78]!==W||t[79]!==R||t[80]!==K||t[81]!==P||t[82]!==L||t[83]!==A||t[84]!==D||t[85]!==F||t[86]!==N?(ve={isOpen:K,size:N,radius:L,shadow:D,backdrop:V,scrollBehavior:A,placement:P,isDismissable:T,isKeyboardDismissDisabled:R,shouldBlockScroll:F,hideCloseButton:z,disableAnimation:$,isDraggable:W,allowOverflow:_,classNames:i,onClose:J,onOpenChange:Z},t[70]=_,t[71]=V,t[72]=i,t[73]=$,t[74]=J,t[75]=Z,t[76]=z,t[77]=T,t[78]=W,t[79]=R,t[80]=K,t[81]=P,t[82]=L,t[83]=A,t[84]=D,t[85]=F,t[86]=N,t[87]=ve):ve=t[87];const Ce=ve;let ue,me,he;t[88]===Symbol.for("react.memo_cache_sentinel")?(ue={opacity:0,scale:.9,y:20},me={opacity:1,scale:1,y:0},he={opacity:0,scale:.9,y:20},t[88]=ue,t[89]=me,t[90]=he):(ue=t[88],me=t[89],he=t[90]);const xe=$?0:.3;let Te;t[91]!==xe?(Te={initial:ue,animate:me,exit:he,transition:{duration:xe,ease:"easeOut"}},t[91]=xe,t[92]=Te):Te=t[92];const Ve=Te;oe=Hs,re=K&&B.jsx(Vu.Provider,{value:Ce,children:B.jsx(Se.div,{ref:ie,className:be({className:i?.backdrop}),onClick:se,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:$?0:.2,ease:"easeOut"},children:B.jsx("div",{className:pe({className:i?.wrapper}),onClick:I1,children:B.jsxs(Se.div,{ref:e||G,className:ye({className:i?.base||r}),"data-open":K,"data-dismissable":T,role:"dialog","aria-modal":"true",tabIndex:-1,...l||Ve,...ee,style:{cursor:ne?"grabbing":W?"grab":"default"},...d,children:[!z&&B.jsx("button",{type:"button",className:Fs().closeButton({className:i?.closeButton}),onClick:J,"aria-label":"Close modal",children:o||B.jsx(S1,{})}),n]})})})}),t[41]=_,t[42]=V,t[43]=n,t[44]=r,t[45]=i,t[46]=o,t[47]=ie,t[48]=$,t[49]=ee,t[50]=se,t[51]=J,t[52]=Z,t[53]=z,t[54]=T,t[55]=W,t[56]=ne,t[57]=R,t[58]=K,t[59]=l,t[60]=P,t[61]=d,t[62]=L,t[63]=e,t[64]=A,t[65]=D,t[66]=F,t[67]=N,t[68]=oe,t[69]=re}else oe=t[68],re=t[69];let ae;t[93]!==oe||t[94]!==re?(ae=B.jsx(oe,{children:re}),t[93]=oe,t[94]=re,t[95]=ae):ae=t[95];const le=ae;let ce;return t[96]!==le||t[97]!==O?(ce=Ou.createPortal(le,O),t[96]=le,t[97]=O,t[98]=ce):ce=t[98],ce});Mu.displayName="Modal";const V1=I.forwardRef((s,e)=>{const t=ge.c(9);let n,r,i;t[0]!==s?({children:n,className:r,...i}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);let o;return t[4]!==n||t[5]!==r||t[6]!==i||t[7]!==e?(o=B.jsx("div",{ref:e,className:r,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=e,t[8]=o):o=t[8],o});V1.displayName="ModalContent";const M1=I.forwardRef((s,e)=>{const t=ge.c(18);let n,r,i;t[0]!==s?({children:n,className:r,...i}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{classNames:o,isDraggable:a}=Mo();let l,c;if(t[4]!==r||t[5]!==o?.header||t[6]!==e){const{header:p}=Fs();l=e,c=p({className:o?.header||r}),t[4]=r,t[5]=o?.header,t[6]=e,t[7]=l,t[8]=c}else l=t[7],c=t[8];const u=a?"":void 0,d=a?"move":"default";let f;t[9]!==d?(f={cursor:d},t[9]=d,t[10]=f):f=t[10];let h;return t[11]!==n||t[12]!==i||t[13]!==l||t[14]!==c||t[15]!==u||t[16]!==f?(h=B.jsx("div",{ref:l,className:c,"data-framer-drag-handle":u,style:f,...i,children:n}),t[11]=n,t[12]=i,t[13]=l,t[14]=c,t[15]=u,t[16]=f,t[17]=h):h=t[17],h});M1.displayName="ModalHeader";const P1=I.forwardRef((s,e)=>{const t=ge.c(14);let n,r,i;t[0]!==s?({children:n,className:r,...i}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{classNames:o}=Mo();let a,l;if(t[4]!==r||t[5]!==o?.body||t[6]!==e){const{body:u}=Fs();a=e,l=u({className:o?.body||r}),t[4]=r,t[5]=o?.body,t[6]=e,t[7]=a,t[8]=l}else a=t[7],l=t[8];let c;return t[9]!==n||t[10]!==i||t[11]!==a||t[12]!==l?(c=B.jsx("div",{ref:a,className:l,...i,children:n}),t[9]=n,t[10]=i,t[11]=a,t[12]=l,t[13]=c):c=t[13],c});P1.displayName="ModalBody";const E1=I.forwardRef((s,e)=>{const t=ge.c(14);let n,r,i;t[0]!==s?({children:n,className:r,...i}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{classNames:o}=Mo();let a,l;if(t[4]!==r||t[5]!==o?.footer||t[6]!==e){const{footer:u}=Fs();a=e,l=u({className:o?.footer||r}),t[4]=r,t[5]=o?.footer,t[6]=e,t[7]=a,t[8]=l}else a=t[7],l=t[8];let c;return t[9]!==n||t[10]!==i||t[11]!==a||t[12]!==l?(c=B.jsx("div",{ref:a,className:l,...i,children:n}),t[9]=n,t[10]=i,t[11]=a,t[12]=l,t[13]=c):c=t[13],c});E1.displayName="ModalFooter";function I1(s){return s.stopPropagation()}function R1(s){const e=ge.c(15);let t;e[0]!==s?(t=s===void 0?{}:s,e[0]=s,e[1]=t):t=e[1];const n=t,{isOpen:r,defaultOpen:i,onOpenChange:o,onClose:a}=n,l=i===void 0?!1:i,[c,u]=I.useState(l),d=r!==void 0?r:c;let f;e[2]!==r||e[3]!==a||e[4]!==o?(f=y=>{r===void 0&&u(y),o?.(y),y||a?.()},e[2]=r,e[3]=a,e[4]=o,e[5]=f):f=e[5];const h=f;let p;e[6]!==h?(p=()=>{h(!0)},e[6]=h,e[7]=p):p=e[7];const b=p;let v;e[8]!==h?(v=()=>{h(!1)},e[8]=h,e[9]=v):v=e[9];const S=v;let m;return e[10]!==S||e[11]!==h||e[12]!==d||e[13]!==b?(m={isOpen:d,onOpen:b,onClose:S,onOpenChange:h},e[10]=S,e[11]=h,e[12]=d,e[13]=b,e[14]=m):m=e[14],m}const Pt=Ie({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-between","transition-background","duration-300","ease-in-out","data-[menu-open=true]:bg-content1/60","data-[hidden=true]:transform","data-[hidden=true]:-translate-y-full","data-[hidden=true]:transition-transform"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-16"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-medium","data-[active=true]:text-primary"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent","data-[pressed=true]:bg-default-100","data-[hover=true]:bg-default-100","data-[open=true]:bg-default-100"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity",'before:content-[""]',"before:block","before:h-px","before:w-4","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0",'after:content-[""]',"after:block","after:h-px","after:w-4","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:before:translate-y-px","group-data-[open=true]:before:rotate-45","group-data-[open=true]:after:-translate-y-px","group-data-[open=true]:after:-rotate-45"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-header","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto","bg-content1/60","backdrop-blur-xl","backdrop-saturate-150"],menuItem:["text-large","color-foreground","data-[active=true]:font-semibold","data-[active=true]:text-primary"]},variants:{position:{static:{base:"relative"},sticky:{base:"sticky top-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},isBordered:{true:{base:"border-b border-divider"}},isBlurred:{true:{base:["backdrop-blur-lg","data-[menu-open=false]:bg-background/70","backdrop-saturate-150"]},false:{base:"bg-background",menu:"bg-background"}},disableAnimation:{true:{menu:"!transition-none"}}},defaultVariants:{position:"sticky",maxWidth:"lg",isBordered:!1,isBlurred:!0,disableAnimation:!1}}),Pu=I.createContext(null),vs=()=>{const s=I.useContext(Pu);if(!s)throw new Error("Navbar components must be used within a Navbar");return s},j1=s=>{const e=ge.c(4),{isOpen:t}=s;let n;if(e[0]===Symbol.for("react.memo_cache_sentinel")){const{toggleIcon:o}=Pt({disableAnimation:!1});n=o(),e[0]=n}else n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=B.jsx("span",{className:"sr-only",children:"Toggle menu"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=B.jsx("span",{className:n,"data-open":t,children:r}),e[2]=t,e[3]=i):i=e[3],i},Eu=I.forwardRef((s,e)=>{const t=ge.c(100);let n,r,i,o,a,l,c,u,d,f,h,p,b,v,S,m,y;t[0]!==s?({children:n,height:d,position:f,maxWidth:h,parentRef:c,isBordered:p,isBlurred:b,isMenuOpen:o,isMenuDefaultOpen:v,shouldHideOnScroll:S,disableScrollHandler:m,disableAnimation:y,classNames:i,className:r,onMenuOpenChange:a,onScrollPositionChange:l,...u}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=l,t[7]=c,t[8]=u,t[9]=d,t[10]=f,t[11]=h,t[12]=p,t[13]=b,t[14]=v,t[15]=S,t[16]=m,t[17]=y):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],d=t[9],f=t[10],h=t[11],p=t[12],b=t[13],v=t[14],S=t[15],m=t[16],y=t[17]);const g=d===void 0?"4rem":d,w=f===void 0?"sticky":f,x=h===void 0?"lg":h,k=p===void 0?!1:p,C=b===void 0?!0:b,E=v===void 0?!1:v,j=S===void 0?!1:S,N=m===void 0?!1:m,L=y===void 0?!1:y,[D,V]=I.useState(E),[A,P]=I.useState(!1),[M,T]=I.useState(0),R=I.useRef(null),F=o??D;let z;t[18]!==o||t[19]!==a?(z=oe=>{o===void 0&&V(oe),a?.(oe)},t[18]=o,t[19]=a,t[20]=z):z=t[20];const O=z;let $;t[21]!==N||t[22]!==M||t[23]!==l||t[24]!==c?.current||t[25]!==j?($=()=>{if(!j||N)return;const oe=()=>{const ae=window.scrollY,le=ae>M?"down":"up";le==="down"&&ae>100?P(!0):le==="up"&&P(!1),T(ae),l?.(ae)},re=c?.current||window;return re.addEventListener("scroll",oe,{passive:!0}),()=>{re.removeEventListener("scroll",oe)}},t[21]=N,t[22]=M,t[23]=l,t[24]=c?.current,t[25]=j,t[26]=$):$=t[26];let W;t[27]!==N||t[28]!==M||t[29]!==l||t[30]!==c||t[31]!==j?(W=[j,N,M,c,l],t[27]=N,t[28]=M,t[29]=l,t[30]=c,t[31]=j,t[32]=W):W=t[32],I.useEffect($,W);let _,H,X,G,K,U,Z,Y,J,Q,q,te,se;if(t[33]!==r||t[34]!==i||t[35]!==L||t[36]!==O||t[37]!==g||t[38]!==C||t[39]!==k||t[40]!==A||t[41]!==F||t[42]!==x||t[43]!==l||t[44]!==w||t[45]!==u||t[46]!==e||t[47]!==j){const{base:oe,wrapper:re}=Pt({position:w,maxWidth:x,isBordered:k,isBlurred:C,disableAnimation:L});let ae;t[61]!==i||t[62]!==L||t[63]!==O||t[64]!==g||t[65]!==C||t[66]!==k||t[67]!==F||t[68]!==x||t[69]!==l||t[70]!==w||t[71]!==j?(ae={isMenuOpen:F,position:w,maxWidth:x,height:g,isBordered:k,isBlurred:C,shouldHideOnScroll:j,disableAnimation:L,classNames:i,onMenuOpenChange:O,onScrollPositionChange:l},t[61]=i,t[62]=L,t[63]=O,t[64]=g,t[65]=C,t[66]=k,t[67]=F,t[68]=x,t[69]=l,t[70]=w,t[71]=j,t[72]=ae):ae=t[72];const le=ae;H=Pu.Provider,se=le,_=Se.nav,G=e||R,K=oe({className:i?.base||r}),t[73]!==g?(U={height:g},t[73]=g,t[74]=U):U=t[74],Z=F,Y=A,t[75]!==j?(J=j?{y:0}:!1,t[75]=j,t[76]=J):J=t[76],t[77]!==A||t[78]!==j?(Q=j?{y:A?-100:0}:!1,t[77]=A,t[78]=j,t[79]=Q):Q=t[79],t[80]===Symbol.for("react.memo_cache_sentinel")?(q={duration:.3,ease:"easeInOut"},t[80]=q):q=t[80],te=u,X=re({className:i?.wrapper}),t[33]=r,t[34]=i,t[35]=L,t[36]=O,t[37]=g,t[38]=C,t[39]=k,t[40]=A,t[41]=F,t[42]=x,t[43]=l,t[44]=w,t[45]=u,t[46]=e,t[47]=j,t[48]=_,t[49]=H,t[50]=X,t[51]=G,t[52]=K,t[53]=U,t[54]=Z,t[55]=Y,t[56]=J,t[57]=Q,t[58]=q,t[59]=te,t[60]=se}else _=t[48],H=t[49],X=t[50],G=t[51],K=t[52],U=t[53],Z=t[54],Y=t[55],J=t[56],Q=t[57],q=t[58],te=t[59],se=t[60];let ee;t[81]!==n||t[82]!==X?(ee=B.jsx("header",{className:X,children:n}),t[81]=n,t[82]=X,t[83]=ee):ee=t[83];let ne;t[84]!==_||t[85]!==G||t[86]!==K||t[87]!==U||t[88]!==Z||t[89]!==Y||t[90]!==J||t[91]!==Q||t[92]!==q||t[93]!==te||t[94]!==ee?(ne=B.jsx(_,{ref:G,className:K,style:U,"data-menu-open":Z,"data-hidden":Y,initial:J,animate:Q,transition:q,...te,children:ee}),t[84]=_,t[85]=G,t[86]=K,t[87]=U,t[88]=Z,t[89]=Y,t[90]=J,t[91]=Q,t[92]=q,t[93]=te,t[94]=ee,t[95]=ne):ne=t[95];let ie;return t[96]!==H||t[97]!==se||t[98]!==ne?(ie=B.jsx(H,{value:se,children:ne}),t[96]=H,t[97]=se,t[98]=ne,t[99]=ie):ie=t[99],ie});Eu.displayName="Navbar";const N1=I.forwardRef((s,e)=>{const t=ge.c(9);let n,r,i;t[0]!==s?({children:n,className:r,...i}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{brand:o}=Pt(),a=vs(),l=o({className:a?.classNames?.brand||r});let c;return t[4]!==n||t[5]!==i||t[6]!==e||t[7]!==l?(c=B.jsx("div",{ref:e,className:l,...i,children:n}),t[4]=n,t[5]=i,t[6]=e,t[7]=l,t[8]=c):c=t[8],c});N1.displayName="NavbarBrand";const D1=I.forwardRef((s,e)=>{const t=ge.c(11);let n,r,i,o;t[0]!==s?({children:n,justify:o,className:r,...i}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i,t[4]=o):(n=t[1],r=t[2],i=t[3],o=t[4]);const a=o===void 0?"start":o,{content:l}=Pt(),{classNames:c}=vs(),u=l({className:c?.content||r});let d;return t[5]!==n||t[6]!==a||t[7]!==i||t[8]!==e||t[9]!==u?(d=B.jsx("ul",{ref:e,className:u,"data-justify":a,...i,children:n}),t[5]=n,t[6]=a,t[7]=i,t[8]=e,t[9]=u,t[10]=d):d=t[10],d});D1.displayName="NavbarContent";const B1=I.forwardRef((s,e)=>{const t=ge.c(11);let n,r,i,o;t[0]!==s?({children:n,isActive:o,className:r,...i}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i,t[4]=o):(n=t[1],r=t[2],i=t[3],o=t[4]);const a=o===void 0?!1:o,{item:l}=Pt(),{classNames:c}=vs(),u=l({className:c?.item||r});let d;return t[5]!==n||t[6]!==a||t[7]!==i||t[8]!==e||t[9]!==u?(d=B.jsx("li",{ref:e,className:u,"data-active":a,...i,children:n}),t[5]=n,t[6]=a,t[7]=i,t[8]=e,t[9]=u,t[10]=d):d=t[10],d});B1.displayName="NavbarItem";const L1=I.forwardRef((s,e)=>{const t=ge.c(22);let n,r,i,o,a,l;if(t[0]!==s){const{icon:g,isSelected:w,defaultSelected:x,srOnlyText:k,className:C,onChange:E,...j}=s;r=g,a=x,l=k,n=C,i=E,o=j,t[0]=s,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=l}else n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],l=t[6];const c=l===void 0?"open/close navigation menu":l,{toggle:u}=Pt(),{isMenuOpen:d,onMenuOpenChange:f,classNames:h}=vs();let p;t[7]!==d||t[8]!==i||t[9]!==f?(p=()=>{const g=!d;f(g),i?.(g)},t[7]=d,t[8]=i,t[9]=f,t[10]=p):p=t[10];const b=p,v="button",S=u({className:h?.toggle||n});let m;t[11]!==r||t[12]!==d?(m=typeof r=="function"?r(d):r||B.jsx(j1,{isOpen:d}),t[11]=r,t[12]=d,t[13]=m):m=t[13];let y;return t[14]!==b||t[15]!==d||t[16]!==o||t[17]!==e||t[18]!==c||t[19]!==S||t[20]!==m?(y=B.jsx("button",{ref:e,type:v,className:S,"data-open":d,"data-pressed":!1,"aria-label":c,onClick:b,...o,children:m}),t[14]=b,t[15]=d,t[16]=o,t[17]=e,t[18]=c,t[19]=S,t[20]=m,t[21]=y):y=t[21],y});L1.displayName="NavbarMenuToggle";const O1=I.forwardRef((s,e)=>{const t=ge.c(10);let n,r,i;if(t[0]!==s){const{children:m,portalContainer:y,className:g,...w}=s;n=m,r=g,i=w,t[0]=s,t[1]=n,t[2]=r,t[3]=i}else n=t[1],r=t[2],i=t[3];const{menu:o}=Pt(),{isMenuOpen:a,disableAnimation:l,classNames:c}=vs();let u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u={closed:{opacity:0,y:-20},open:{opacity:1,y:0}},t[4]=u):u=t[4];const d=u,f=l?0:.3;let h;t[5]!==f?(h={duration:f,ease:"easeOut"},t[5]=f,t[6]=h):h=t[6];const p=h,b=Hs,v=a&&B.jsx(Se.div,{ref:e,className:o({className:c?.menu||r}),variants:d,initial:"closed",animate:"open",exit:"closed",transition:p,...i,children:B.jsx("ul",{className:"flex flex-col gap-2 py-4",children:n})});let S;return t[7]!==b||t[8]!==v?(S=B.jsx(b,{children:v}),t[7]=b,t[8]=v,t[9]=S):S=t[9],S});O1.displayName="NavbarMenu";const $1=I.forwardRef((s,e)=>{const t=ge.c(11);let n,r,i,o;t[0]!==s?({children:n,isActive:o,className:r,...i}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i,t[4]=o):(n=t[1],r=t[2],i=t[3],o=t[4]);const a=o===void 0?!1:o,{menuItem:l}=Pt(),{classNames:c}=vs(),u=l({className:c?.menuItem||r});let d;return t[5]!==n||t[6]!==a||t[7]!==i||t[8]!==e||t[9]!==u?(d=B.jsx("li",{ref:e,className:u,"data-active":a,...i,children:n}),t[5]=n,t[6]=a,t[7]=i,t[8]=e,t[9]=u,t[10]=d):d=t[10],d});$1.displayName="NavbarMenuItem";const F1=Ie({slots:{base:["flex","flex-col","gap-2","w-full"],track:["relative","bg-gray-200","overflow-hidden"],indicator:["h-full","transition-all","duration-500","ease-out","origin-left"],labelWrapper:["flex","justify-between","items-center"],label:["text-sm","font-medium","text-gray-700"],value:["text-sm","font-medium","text-gray-500"]},variants:{color:{default:{indicator:"bg-gray-400"},primary:{indicator:"bg-blue-600"},secondary:{indicator:"bg-gray-600"},success:{indicator:"bg-green-600"},warning:{indicator:"bg-yellow-500"},danger:{indicator:"bg-red-600"}},size:{sm:{track:"h-1",label:"text-xs",value:"text-xs"},md:{track:"h-2",label:"text-sm",value:"text-sm"},lg:{track:"h-3",label:"text-base",value:"text-base"}},radius:{none:{track:"rounded-none"},sm:{track:"rounded-sm"},md:{track:"rounded-md"},lg:{track:"rounded-lg"},full:{track:"rounded-full"}},isStriped:{true:{indicator:["bg-gradient-to-r","from-transparent","to-transparent","bg-[length:1rem_1rem]","bg-repeat-x","animate-pulse"]}},isIndeterminate:{true:{indicator:["animate-pulse"]}},isDisabled:{true:{base:"opacity-60 cursor-not-allowed",track:"bg-gray-100",indicator:"bg-gray-300",label:"text-gray-400",value:"text-gray-400"}}},compoundVariants:[{isStriped:!0,color:"primary",class:{indicator:["bg-gradient-to-r","from-blue-600","via-blue-500","to-blue-600","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isStriped:!0,color:"success",class:{indicator:["bg-gradient-to-r","from-green-600","via-green-500","to-green-600","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isStriped:!0,color:"warning",class:{indicator:["bg-gradient-to-r","from-yellow-500","via-yellow-400","to-yellow-500","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isStriped:!0,color:"danger",class:{indicator:["bg-gradient-to-r","from-red-600","via-red-500","to-red-600","bg-[length:1rem_1rem]","animate-[progress-stripes_1s_linear_infinite]"]}},{isIndeterminate:!0,class:{indicator:["w-1/3","animate-[progress-indeterminate_2s_ease-in-out_infinite]"]}}],defaultVariants:{color:"primary",size:"md",radius:"full",isStriped:!1,isIndeterminate:!1,isDisabled:!1}}),Iu=(s=0,e=0,t=100)=>(Math.max(e,Math.min(t,s))-e)/(t-e)*100,z1=(s=0,e=100,t=0)=>{const n=Iu(s,t,e);return`${Math.round(n)}%`},Ru=I.forwardRef((s,e)=>{const t=ge.c(80);let n,r,i,o,a,l,c,u,d,f,h,p,b,v;t[0]!==s?({value:a,maxValue:c,minValue:u,color:d,size:f,radius:h,showValueLabel:p,label:i,isStriped:b,isIndeterminate:v,isDisabled:l,className:n,classNames:r,...o}=s,t[0]=s,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=l,t[7]=c,t[8]=u,t[9]=d,t[10]=f,t[11]=h,t[12]=p,t[13]=b,t[14]=v):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],d=t[9],f=t[10],h=t[11],p=t[12],b=t[13],v=t[14]);const S=a===void 0?0:a,m=c===void 0?100:c,y=u===void 0?0:u,g=d===void 0?"primary":d,w=f===void 0?"md":f,x=h===void 0?"full":h,k=p===void 0?!1:p,C=b===void 0?!1:b,E=v===void 0?!1:v,j=l===void 0?!1:l,N=Iu(S,y,m);let L;t[15]!==m||t[16]!==y||t[17]!==S?(L=z1(S,m,y),t[15]=m,t[16]=y,t[17]=S,t[18]=L):L=t[18];const D=L;let V,A,P,M,T,R,F,z,O,$,W,_;if(t[19]!==n||t[20]!==r?.base||t[21]!==r?.indicator||t[22]!==r?.label||t[23]!==r?.track||t[24]!==r?.value||t[25]!==g||t[26]!==j||t[27]!==E||t[28]!==C||t[29]!==i||t[30]!==m||t[31]!==y||t[32]!==o||t[33]!==x||t[34]!==e||t[35]!==k||t[36]!==w||t[37]!==S||t[38]!==D){const q=F1({color:g,size:w,radius:x,isStriped:C,isIndeterminate:E,isDisabled:j});M=e,T=Le(q.base(),r?.base,n),R="progressbar",F=y,z=m,O=E?void 0:S,$=E?"Cargando...":D,W=o,_=(i||k)&&B.jsxs("div",{className:Le(q.labelWrapper(),r?.label),children:[i&&B.jsx("span",{className:Le(q.label(),r?.label),children:i}),k&&!E&&B.jsx("span",{className:Le(q.value(),r?.value),children:D})]}),P=Le(q.track(),r?.track),V=Se.div,A=Le(q.indicator(),r?.indicator),t[19]=n,t[20]=r?.base,t[21]=r?.indicator,t[22]=r?.label,t[23]=r?.track,t[24]=r?.value,t[25]=g,t[26]=j,t[27]=E,t[28]=C,t[29]=i,t[30]=m,t[31]=y,t[32]=o,t[33]=x,t[34]=e,t[35]=k,t[36]=w,t[37]=S,t[38]=D,t[39]=V,t[40]=A,t[41]=P,t[42]=M,t[43]=T,t[44]=R,t[45]=F,t[46]=z,t[47]=O,t[48]=$,t[49]=W,t[50]=_}else V=t[39],A=t[40],P=t[41],M=t[42],T=t[43],R=t[44],F=t[45],z=t[46],O=t[47],$=t[48],W=t[49],_=t[50];let H;t[51]===Symbol.for("react.memo_cache_sentinel")?(H={scaleX:0,originX:0},t[51]=H):H=t[51];const X=E?1:N/100;let G;t[52]!==E?(G=E?["-100%","300%"]:0,t[52]=E,t[53]=G):G=t[53];let K;t[54]!==X||t[55]!==G?(K={scaleX:X,x:G},t[54]=X,t[55]=G,t[56]=K):K=t[56];let U,Z;t[57]!==E?(U=E?{duration:2,repeat:1/0,ease:"easeInOut"}:{duration:.5,ease:"easeOut"},Z=E?{width:"33%",transformOrigin:"left center"}:{transformOrigin:"left center"},t[57]=E,t[58]=U,t[59]=Z):(U=t[58],Z=t[59]);let Y;t[60]!==V||t[61]!==A||t[62]!==K||t[63]!==U||t[64]!==Z?(Y=B.jsx(V,{className:A,initial:H,animate:K,transition:U,style:Z}),t[60]=V,t[61]=A,t[62]=K,t[63]=U,t[64]=Z,t[65]=Y):Y=t[65];let J;t[66]!==P||t[67]!==Y?(J=B.jsx("div",{className:P,children:Y}),t[66]=P,t[67]=Y,t[68]=J):J=t[68];let Q;return t[69]!==M||t[70]!==T||t[71]!==R||t[72]!==F||t[73]!==z||t[74]!==O||t[75]!==$||t[76]!==W||t[77]!==_||t[78]!==J?(Q=B.jsxs("div",{ref:M,className:T,role:R,"aria-valuemin":F,"aria-valuemax":z,"aria-valuenow":O,"aria-valuetext":$,...W,children:[_,J]}),t[69]=M,t[70]=T,t[71]=R,t[72]=F,t[73]=z,t[74]=O,t[75]=$,t[76]=W,t[77]=_,t[78]=J,t[79]=Q):Q=t[79],Q});Ru.displayName="Progress";const _1={slow:2,normal:1,fast:.6};Ie({base:["inline-block","animate-spin","transition-all","duration-200","ease-in-out"],variants:{size:{xs:"w-3 h-3",sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"},color:{primary:"text-blue-600",secondary:"text-gray-600",success:"text-green-600",warning:"text-yellow-600",error:"text-red-600",neutral:"text-gray-400"},visible:{true:"opacity-100 scale-100",false:"opacity-0 scale-95 pointer-events-none"}},defaultVariants:{size:"md",color:"primary",visible:!0}});const W1=Ie({base:["flex","items-center","justify-center","transition-all","duration-200","ease-in-out"],variants:{overlay:{true:["fixed","inset-0","z-50","bg-white/80","backdrop-blur-sm"],false:""},position:{center:"flex-col",top:"flex-col",bottom:"flex-col",left:"flex-row",right:"flex-row-reverse"},fullScreen:{true:"w-screen h-screen",false:"w-full h-full"}},defaultVariants:{overlay:!1,position:"center",fullScreen:!1}}),G1=Ie({base:["text-sm","font-medium","transition-opacity","duration-200"],variants:{position:{center:"mt-2 text-center",top:"mb-2 text-center",bottom:"mt-2 text-center",left:"ml-2",right:"mr-2"},color:{primary:"text-blue-600",secondary:"text-gray-600",success:"text-green-600",warning:"text-yellow-600",error:"text-red-600",neutral:"text-gray-500"}},defaultVariants:{position:"center",color:"neutral"}});Ie({base:["relative","inline-block"],variants:{size:{xs:"w-3 h-3",sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"}},defaultVariants:{size:"md"}});const U1=Ie({base:["rounded-full","transition-all"],variants:{size:{xs:"w-2 h-2",sm:"w-3 h-3",md:"w-4 h-4",lg:"w-6 h-6",xl:"w-8 h-8"},color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{size:"md",color:"primary"}}),H1=Ie({base:["flex","items-center","justify-center"],variants:{size:{xs:"gap-1",sm:"gap-1",md:"gap-2",lg:"gap-2",xl:"gap-3"}},defaultVariants:{size:"md"}}),K1=Ie({base:["rounded-full"],variants:{size:{xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-3 h-3",xl:"w-4 h-4"},color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{size:"md",color:"primary"}}),Y1=Ie({base:["flex","items-end","justify-center"],variants:{size:{xs:"gap-0.5 h-3",sm:"gap-0.5 h-4",md:"gap-1 h-6",lg:"gap-1 h-8",xl:"gap-1.5 h-12"}},defaultVariants:{size:"md"}}),X1=Ie({base:["rounded-full"],variants:{size:{xs:"w-0.5",sm:"w-0.5",md:"w-1",lg:"w-1",xl:"w-1.5"},color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{size:"md",color:"primary"}});Ie({base:["grid","gap-1"],variants:{size:{xs:"w-6 h-6",sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16",xl:"w-24 h-24"},gridSize:{"2x2":"grid-cols-2 grid-rows-2","3x3":"grid-cols-3 grid-rows-3","4x4":"grid-cols-4 grid-rows-4"}},defaultVariants:{size:"md",gridSize:"3x3"}});Ie({base:["rounded-sm"],variants:{color:{primary:"bg-blue-600",secondary:"bg-gray-600",success:"bg-green-600",warning:"bg-yellow-600",error:"bg-red-600",neutral:"bg-gray-400"}},defaultVariants:{color:"primary"}});const q1=Ie({base:["relative","rounded-full","border-solid","border-transparent"],variants:{size:{xs:"w-3 h-3 border-[1px]",sm:"w-4 h-4 border-[1px]",md:"w-6 h-6 border-2",lg:"w-8 h-8 border-2",xl:"w-12 h-12 border-[3px]"},color:{primary:"border-t-blue-600 border-r-blue-600/30",secondary:"border-t-gray-600 border-r-gray-600/30",success:"border-t-green-600 border-r-green-600/30",warning:"border-t-yellow-600 border-r-yellow-600/30",error:"border-t-red-600 border-r-red-600/30",neutral:"border-t-gray-400 border-r-gray-400/30"}},defaultVariants:{size:"md",color:"primary"}});Ie({base:["flex","items-center","justify-center"],variants:{direction:{horizontal:"flex-row",vertical:"flex-col",circular:"relative"},size:{xs:"gap-1",sm:"gap-1",md:"gap-2",lg:"gap-2",xl:"gap-3"}},defaultVariants:{direction:"horizontal",size:"md"}});Ie({base:["flex","items-end","justify-center"],variants:{orientation:{vertical:"flex-row items-end",horizontal:"flex-col items-center"},size:{xs:"gap-0.5",sm:"gap-0.5",md:"gap-1",lg:"gap-1",xl:"gap-1.5"}},defaultVariants:{orientation:"vertical",size:"md"}});const Z1=s=>_1[s],Nn={rotate:{animate:{rotate:360}},pulse:{animate:{scale:[1,1.2,1],opacity:[.7,1,.7]}},bounce:{animate:{y:[0,-10,0]}},wave:{animate:{scaleY:[.4,1,.4]}}},ju=s=>{const e=ge.c(68);let t,n,r,i,o,a,l,c,u,d,f,h,p,b,v;e[0]!==s?({type:a,size:c,color:u,speed:d,visible:f,label:r,overlay:h,overlayOpacity:p,overlayColor:b,animationConfig:t,className:n,"aria-label":v,"data-testid":l,style:o,...i}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=f,e[12]=h,e[13]=p,e[14]=b,e[15]=v):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],b=e[14],v=e[15]);const S=a===void 0?"rotating":a,m=c===void 0?"md":c,y=u===void 0?"primary":u,g=d===void 0?"normal":d,w=f===void 0?!0:f,x=h===void 0?!1:h,k=p===void 0?.8:p,C=l===void 0?"spinner":l;let E;e[16]!==g?(E=Z1(g),e[16]=g,e[17]=E):E=e[17];const j=E;let N;e[18]!==t||e[19]!==y||e[20]!==j||e[21]!==m?(N=()=>B.jsx(Se.div,{className:q1({size:m,color:y}),animate:Nn.rotate.animate,transition:{duration:j,repeat:1/0,...t}}),e[18]=t,e[19]=y,e[20]=j,e[21]=m,e[22]=N):N=e[22];const L=N;let D;e[23]!==t||e[24]!==y||e[25]!==j||e[26]!==m?(D=()=>B.jsx(Se.div,{className:U1({size:m,color:y}),animate:Nn.pulse.animate,transition:{duration:j,repeat:1/0,...t}}),e[23]=t,e[24]=y,e[25]=j,e[26]=m,e[27]=D):D=e[27];const V=D;let A;e[28]!==t||e[29]!==y||e[30]!==j||e[31]!==m?(A=()=>B.jsx("div",{className:H1({size:m}),children:[0,1,2].map(Q=>B.jsx(Se.div,{className:K1({size:m,color:y}),animate:Nn.bounce.animate,transition:{duration:j,repeat:1/0,delay:Q*.1,...t}},Q))}),e[28]=t,e[29]=y,e[30]=j,e[31]=m,e[32]=A):A=e[32];const P=A;let M;e[33]!==t||e[34]!==y||e[35]!==j||e[36]!==m?(M=()=>B.jsx("div",{className:Y1({size:m}),children:[0,1,2,3,4].map(Q=>B.jsx(Se.div,{className:X1({size:m,color:y}),animate:Nn.wave.animate,transition:{duration:j,repeat:1/0,delay:Q*.1,...t}},Q))}),e[33]=t,e[34]=y,e[35]=j,e[36]=m,e[37]=M):M=e[37];const T=M;let R;e[38]!==P||e[39]!==V||e[40]!==L||e[41]!==T||e[42]!==S?(R=()=>{switch(S){case"rotating":case"ring":return B.jsx(L,{});case"pulse":return B.jsx(V,{});case"bounce":case"dots":return B.jsx(P,{});case"wave":case"bars":return B.jsx(T,{});default:return B.jsx(L,{})}},e[38]=P,e[39]=V,e[40]=L,e[41]=T,e[42]=S,e[43]=R):R=e[43];const F=R;let z;e[44]!==x?(z=W1({overlay:x,position:"center",fullScreen:x}),e[44]=x,e[45]=z):z=e[45];const O=z,$=n?`${O} ${n}`:O;let W;e[46]!==x||e[47]!==k?(W=x&&k!==void 0&&{backgroundColor:`rgba(255, 255, 255, ${k})`},e[46]=x,e[47]=k,e[48]=W):W=e[48];let _;e[49]!==o||e[50]!==W?(_={...o,...W},e[49]=o,e[50]=W,e[51]=_):_=e[51];const H=_;if(!w)return null;let X,G,K,U;e[52]===Symbol.for("react.memo_cache_sentinel")?(X={opacity:0},G={opacity:1},K={opacity:0},U={duration:.2},e[52]=X,e[53]=G,e[54]=K,e[55]=U):(X=e[52],G=e[53],K=e[54],U=e[55]);let Z;e[56]!==F?(Z=F(),e[56]=F,e[57]=Z):Z=e[57];let Y;e[58]!==y||e[59]!==r?(Y=r&&B.jsx(Se.div,{className:G1({position:"center",color:y==="neutral"?"neutral":y}),initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1,duration:.2},children:r}),e[58]=y,e[59]=r,e[60]=Y):Y=e[60];let J;return e[61]!==H||e[62]!==C||e[63]!==$||e[64]!==i||e[65]!==Z||e[66]!==Y?(J=B.jsxs(Se.div,{className:$,style:H,initial:X,animate:G,exit:K,transition:U,role:"status","aria-live":"polite","data-testid":C,...i,children:[Z,Y]}),e[61]=H,e[62]=C,e[63]=$,e[64]=i,e[65]=Z,e[66]=Y,e[67]=J):J=e[67],J};ju.displayName="Spinner";const Ys={sm:{wrapper:"w-10 h-6",thumb:"w-5 h-5",label:"text-sm",startContent:"text-xs",endContent:"text-xs",thumbIcon:"w-3 h-3"},md:{wrapper:"w-12 h-7",thumb:"w-6 h-6",label:"text-base",startContent:"text-sm",endContent:"text-sm",thumbIcon:"w-4 h-4"},lg:{wrapper:"w-14 h-8",thumb:"w-7 h-7",label:"text-lg",startContent:"text-base",endContent:"text-base",thumbIcon:"w-5 h-5"}},J1=(s="primary",e=!1,t=!1)=>t?e?"bg-gray-300 border-gray-300":"bg-gray-200 border-gray-200":e?{default:"bg-gray-600 border-gray-600 hover:bg-gray-700",primary:"bg-blue-600 border-blue-600 hover:bg-blue-700",secondary:"bg-purple-600 border-purple-600 hover:bg-purple-700",success:"bg-green-600 border-green-600 hover:bg-green-700",warning:"bg-amber-500 border-amber-500 hover:bg-amber-600",danger:"bg-red-600 border-red-600 hover:bg-red-700"}[s]:"bg-gray-200 border-gray-200 hover:bg-gray-300",Q1=(s=!1)=>`inline-flex items-center gap-2 cursor-pointer select-none ${s?"cursor-not-allowed opacity-60":""}`.trim(),ey=(s="md",e="primary",t=!1,n=!1,r=!1)=>{const i=Ys[s].wrapper,o=J1(e,t,n);return`relative inline-flex shrink-0 border-2 rounded-full cursor-pointer ${i} ${o} ${r?"":"transition-colors duration-200 ease-in-out"} focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-blue-500`.trim()},ty=(s="md",e=!1)=>`font-medium ${Ys[s].label} ${e?"text-gray-400":"text-gray-900"}`.trim(),hl=(s="md",e=!1)=>`flex items-center justify-center ${Ys[s].startContent} ${e?"text-gray-400":"text-gray-600"}`.trim(),sy=(s="md")=>`flex items-center justify-center text-gray-400 ${Ys[s].thumbIcon}`.trim(),ny=()=>"sr-only",ry=s=>{const e=ge.c(89),{children:t,value:n,name:r,size:i,color:o,thumbIcon:a,startContent:l,endContent:c,isSelected:u,defaultSelected:d,isReadOnly:f,isDisabled:h,disableAnimation:p,className:b,classNames:v,onChange:S,onValueChange:m,"data-testid":y}=s,g=i===void 0?"md":i,w=o===void 0?"primary":o,x=d===void 0?!1:d,k=f===void 0?!1:f,C=h===void 0?!1:h,E=p===void 0?!1:p,j=b===void 0?"":b,[N,L]=I.useState(x),D=I.useRef(null),V=u!==void 0,A=V?u:N;let P;e[0]!==V||e[1]!==C||e[2]!==k||e[3]!==S||e[4]!==m?(P=Ge=>{if(C||k)return;const Oe=Ge.target.checked;V||L(Oe),S?.(Ge),m?.(Oe)},e[0]=V,e[1]=C,e[2]=k,e[3]=S,e[4]=m,e[5]=P):P=e[5];const M=P;let T;e[6]!==C||e[7]!==k?(T=()=>{C||k||D.current?.click()},e[6]=C,e[7]=k,e[8]=T):T=e[8];const R=T;let F;e[9]!==C?(F=Q1(C),e[9]=C,e[10]=F):F=e[10];const z=F,O=v?.base;let $;e[11]!==z||e[12]!==j||e[13]!==O?($=[z,O,j].filter(Boolean),e[11]=z,e[12]=j,e[13]=O,e[14]=$):$=e[14];const W=$.join(" ");let _;e[15]!==w||e[16]!==E||e[17]!==C||e[18]!==A||e[19]!==g?(_=ey(g,w,A,C,E),e[15]=w,e[16]=E,e[17]=C,e[18]=A,e[19]=g,e[20]=_):_=e[20];const H=_,X=v?.wrapper;let G;e[21]!==X||e[22]!==H?(G=[H,X].filter(Boolean),e[21]=X,e[22]=H,e[23]=G):G=e[23];const K=G.join(" ");let U;e[24]!==C||e[25]!==g?(U=ty(g,C),e[24]=C,e[25]=g,e[26]=U):U=e[26];const Z=U,Y=v?.label;let J;e[27]!==Z||e[28]!==Y?(J=[Z,Y].filter(Boolean),e[27]=Z,e[28]=Y,e[29]=J):J=e[29];const Q=J.join(" ");let q;e[30]!==C||e[31]!==g?(q=hl(g,C),e[30]=C,e[31]=g,e[32]=q):q=e[32];const te=q,se=v?.startContent;let ee;e[33]!==te||e[34]!==se?(ee=[te,se].filter(Boolean),e[33]=te,e[34]=se,e[35]=ee):ee=e[35];const ne=ee.join(" ");let ie;e[36]!==C||e[37]!==g?(ie=hl(g,C),e[36]=C,e[37]=g,e[38]=ie):ie=e[38];const oe=ie,re=v?.endContent;let ae;e[39]!==oe||e[40]!==re?(ae=[oe,re].filter(Boolean),e[39]=oe,e[40]=re,e[41]=ae):ae=e[41];const le=ae.join(" ");let ce;e[42]===Symbol.for("react.memo_cache_sentinel")?(ce=ny(),e[42]=ce):ce=e[42];const pe=ce,ye=v?.hiddenInput;let be;e[43]!==ye?(be=[pe,ye].filter(Boolean),e[43]=ye,e[44]=be):be=e[44];const ve=be.join(" ");let Ce;e[45]!==ne||e[46]!==y||e[47]!==E||e[48]!==l?(Ce=l&&B.jsx(Se.div,{className:ne,"data-testid":`${y}-start-content`,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:E?0:.2},children:l}),e[45]=ne,e[46]=y,e[47]=E,e[48]=l,e[49]=Ce):Ce=e[49];const ue=`${y}-wrapper`,me=`${y}-input`;let he;e[50]!==ve||e[51]!==M||e[52]!==R||e[53]!==C||e[54]!==k||e[55]!==A||e[56]!==r||e[57]!==me||e[58]!==n?(he=B.jsx("input",{ref:D,type:"checkbox",value:n,name:r,checked:A,onChange:M,disabled:C,readOnly:k,"aria-checked":A,className:ve,"data-testid":me,onClick:R}),e[50]=ve,e[51]=M,e[52]=R,e[53]=C,e[54]=k,e[55]=A,e[56]=r,e[57]=me,e[58]=n,e[59]=he):he=e[59];const xe=v?.thumb,Te=`${y}-thumb`;let Ve;e[60]!==a||e[61]!==E||e[62]!==R||e[63]!==A||e[64]!==g||e[65]!==xe||e[66]!==Te?(Ve=B.jsx(oy,{isSelected:A,size:g,thumbIcon:a,disableAnimation:E,className:xe,"data-testid":Te,onClick:R}),e[60]=a,e[61]=E,e[62]=R,e[63]=A,e[64]=g,e[65]=xe,e[66]=Te,e[67]=Ve):Ve=e[67];let Ae;e[68]!==K||e[69]!==ue||e[70]!==he||e[71]!==Ve?(Ae=B.jsxs(iy,{className:K,"data-testid":ue,children:[he,Ve]}),e[68]=K,e[69]=ue,e[70]=he,e[71]=Ve,e[72]=Ae):Ae=e[72];let ze;e[73]!==le||e[74]!==y||e[75]!==E||e[76]!==c?(ze=c&&B.jsx(Se.div,{className:le,"data-testid":`${y}-end-content`,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:E?0:.2},children:c}),e[73]=le,e[74]=y,e[75]=E,e[76]=c,e[77]=ze):ze=e[77];let Re;e[78]!==t||e[79]!==Q||e[80]!==y?(Re=t&&B.jsx("span",{className:Q,"data-testid":`${y}-label`,children:t}),e[78]=t,e[79]=Q,e[80]=y,e[81]=Re):Re=e[81];let _e;return e[82]!==W||e[83]!==y||e[84]!==Ce||e[85]!==Ae||e[86]!==ze||e[87]!==Re?(_e=B.jsxs("label",{className:W,"data-testid":y,children:[Ce,Ae,ze,Re]}),e[82]=W,e[83]=y,e[84]=Ce,e[85]=Ae,e[86]=ze,e[87]=Re,e[88]=_e):_e=e[88],_e},iy=s=>{const e=ge.c(8),{children:t,className:n,onClick:r,"data-testid":i}=s,o=n===void 0?"":n;let a,l,c;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={scale:1.02},l={scale:.98},c={duration:.1},e[0]=a,e[1]=l,e[2]=c):(a=e[0],l=e[1],c=e[2]);let u;return e[3]!==t||e[4]!==o||e[5]!==i||e[6]!==r?(u=B.jsx(Se.div,{className:o,onClick:r,"data-testid":i,whileHover:a,whileTap:l,transition:c,children:t}),e[3]=t,e[4]=o,e[5]=i,e[6]=r,e[7]=u):u=e[7],u},oy=s=>{const e=ge.c(27),{isSelected:t,size:n,thumbIcon:r,disableAnimation:i,className:o,"data-testid":a}=s,l=t===void 0?!1:t,c=n===void 0?"md":n,u=i===void 0?!1:i,d=o===void 0?"":o,f=Ys[c];let h;e[0]!==c?(h=sy(c),e[0]=c,e[1]=h):h=e[1];const p=h;let b;e[2]!==c?(b=()=>{const A={sm:40,md:48,lg:56},P={sm:20,md:24,lg:28};return A[c]-P[c]-7},e[2]=c,e[3]=b):b=e[3];const S=b(),m=`absolute top-0.2 left-0.5 inline-block rounded-full bg-white shadow-lg transform ring-0 flex items-center justify-center ${f.thumb}`;let y;e[4]!==d||e[5]!==m?(y=[m,d].filter(Boolean),e[4]=d,e[5]=m,e[6]=y):y=e[6];const g=y.join(" "),w=l?S:0;let x;e[7]!==w?(x={x:w},e[7]=w,e[8]=x):x=e[8];const k=u?0:void 0;let C;e[9]!==k?(C={type:"spring",stiffness:500,damping:30,duration:k},e[9]=k,e[10]=C):C=e[10];let E,j,N;e[11]===Symbol.for("react.memo_cache_sentinel")?(E={scale:1.1},j={scale:.95},N={cursor:"pointer"},e[11]=E,e[12]=j,e[13]=N):(E=e[11],j=e[12],N=e[13]);let L;e[14]!==r||e[15]!==u||e[16]!==l||e[17]!==p?(L=r&&B.jsx(Se.div,{initial:{opacity:0,rotate:-180,scale:.5},animate:{opacity:1,rotate:0,scale:1},exit:{opacity:0,rotate:180,scale:.5},transition:{duration:u?0:.3},children:B.jsx(r,{isSelected:l,className:p})},l?"selected":"unselected"),e[14]=r,e[15]=u,e[16]=l,e[17]=p,e[18]=L):L=e[18];let D;e[19]!==L?(D=B.jsx(Hs,{mode:"wait",children:L}),e[19]=L,e[20]=D):D=e[20];let V;return e[21]!==g||e[22]!==a||e[23]!==C||e[24]!==D||e[25]!==x?(V=B.jsx(Se.span,{className:g,"data-testid":a,animate:x,transition:C,whileHover:E,whileTap:j,style:N,children:D}),e[21]=g,e[22]=a,e[23]=C,e[24]=D,e[25]=x,e[26]=V):V=e[26],V},ay=s=>{const e={default:"border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-900",primary:"border-blue-200 bg-blue-50 dark:border-blue-800 dark:bg-blue-950",secondary:"border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800",success:"border-green-200 bg-green-50 dark:border-green-800 dark:bg-green-950",warning:"border-yellow-200 bg-yellow-50 dark:border-yellow-800 dark:bg-yellow-950",danger:"border-red-200 bg-red-50 dark:border-red-800 dark:bg-red-950"};return e[s]||e.default},ly=s=>{const e={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"};return e[s]||e.md},cy=s=>{const e={none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"};return e[s]||e.sm},uy=(s,e,t,n,r)=>{if(n)return"";const i="flex flex-col relative overflow-hidden",o=ay(s),a=ly(e),l=cy(t);return[i,o,a,l,r?"w-full":""].filter(Boolean).join(" ")},dy=(s,e)=>["min-w-full table-auto",s?"table-compact":"",e?"table-striped":""].filter(Boolean).join(" "),fy=(s,e,t,n,r)=>{const i="border-b border-gray-200 dark:border-gray-700 transition-colors";let o="";return s&&(o="bg-blue-50 dark:bg-blue-900/20"),[i,o,!e&&!s?"hover:bg-gray-50 dark:hover:bg-gray-800/50":"",e?"opacity-50 cursor-not-allowed":"cursor-pointer"].filter(Boolean).join(" ")},Nu=I.createContext(null),hy=()=>{const s=I.useContext(Nu);if(!s)throw new Error("Table components must be used within a Table component");return s},my=({children:s,className:e="",color:t="default",layout:n="auto",radius:r="md",shadow:i="sm",maxTableHeight:o,rowHeight:a,isVirtualized:l=!1,hideHeader:c=!1,isStriped:u=!1,isCompact:d=!1,isHeaderSticky:f=!1,fullWidth:h=!0,removeWrapper:p=!1,topContent:b,bottomContent:v,topContentPlacement:S="outside",bottomContentPlacement:m="outside",showSelectionCheckboxes:y=!1,sortDescriptor:g,selectedKeys:w=new Set,defaultSelectedKeys:x=new Set,disabledKeys:k=new Set,disallowEmptySelection:C=!1,selectionMode:E="none",selectionBehavior:j="toggle",disabledBehavior:N="selection",allowDuplicateSelectionEvents:L=!1,disableAnimation:D=!1,isKeyboardNavigationDisabled:V=!1,columns:A,items:P,onRowAction:M,onCellAction:T,onSelectionChange:R,onSortChange:F,"data-testid":z,...O})=>{const $=I.useMemo(()=>({color:t,selectionMode:E,selectionBehavior:j,selectedKeys:w,disabledKeys:k,sortDescriptor:g,isStriped:u,isCompact:d,disableAnimation:D,showSelectionCheckboxes:y,onRowAction:M,onCellAction:T,onSelectionChange:R,onSortChange:F,columns:A,items:P}),[t,E,j,w,k,g,u,d,D,y,M,T,R,F,A,P]),W=I.useMemo(()=>uy(t,r,i,p,h),[t,r,i,p,h]),_=I.useMemo(()=>dy(d,u),[d,u]),H=S==="outside"&&b,X=S==="inside"&&b,G=m==="outside"&&v,K=m==="inside"&&v,U={...o&&{maxHeight:o,overflowY:"auto"},...l&&a&&{height:o||400}};return B.jsx(Nu.Provider,{value:$,children:B.jsxs("div",{className:"table-wrapper","data-testid":z,children:[H&&B.jsx("div",{className:"table-top-content mb-4",children:b}),B.jsxs("div",{className:`${W} ${e}`.trim(),...O,children:[X&&B.jsx("div",{className:"table-top-content-inside p-4 border-b border-gray-200 dark:border-gray-700",children:b}),B.jsx("div",{className:"table-container overflow-auto",style:U,children:B.jsx("table",{className:`${_} ${n==="fixed"?"table-fixed":""}`,role:"table","aria-label":"Data table",children:s})}),K&&B.jsx("div",{className:"table-bottom-content-inside p-4 border-t border-gray-200 dark:border-gray-700",children:v})]}),G&&B.jsx("div",{className:"table-bottom-content mt-4",children:v})]})})},py=s=>{const e=ge.c(28);let t,n,r,i,o,a;e[0]!==s?({children:t,className:i,textValue:a,item:n,"data-testid":o,...r}=s,e[0]=s,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=a):(t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6]);const l=i===void 0?"":i,{isStriped:c,selectedKeys:u,disabledKeys:d,onRowAction:f}=hy(),h=n?.key||n?.id||a;let p,b,v;e[7]!==d||e[8]!==c||e[9]!==h||e[10]!==u?(b=h?u==="all"||u.has(h):!1,p=h?d.has(h):!1,v=fy(b,p),e[7]=d,e[8]=c,e[9]=h,e[10]=u,e[11]=p,e[12]=b,e[13]=v):(p=e[11],b=e[12],v=e[13]);const S=v;let m;e[14]!==p||e[15]!==f||e[16]!==h?(m=()=>{!p&&h&&f&&f(h)},e[14]=p,e[15]=f,e[16]=h,e[17]=m):m=e[17];const y=m,g=`${S} ${l}`;let w;e[18]!==g?(w=g.trim(),e[18]=g,e[19]=w):w=e[19];let x;return e[20]!==t||e[21]!==y||e[22]!==p||e[23]!==b||e[24]!==r||e[25]!==w||e[26]!==o?(x=B.jsx("tr",{className:w,onClick:y,role:"row","aria-selected":b,"aria-disabled":p,"data-testid":o,...r,children:t}),e[20]=t,e[21]=y,e[22]=p,e[23]=b,e[24]=r,e[25]=w,e[26]=o,e[27]=x):x=e[27],x},Rs=s=>({linear:"linear",easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],backIn:[.6,-.05,.01,.99],backOut:[.12,0,.39,0],backInOut:[.37,0,.63,1],bounceIn:[.6,-.28,.735,.045],bounceOut:[.175,.885,.32,1.275],bounceInOut:[.68,-.55,.265,1.55]})[s],gy=(s,e,t=.05,n=.6)=>{const r=s.split(" "),i=[],o=[],a=s.split(`
35
+ `);let l=0;return r.forEach((c,u)=>{const d=[];if(c.split("").forEach(h=>{const p=e==="letter"?l*t:e==="word"?u*t:0,b={char:h,index:l,delay:p,duration:n,variants:ml("up")};d.push(b),i.push(b),l++}),u<r.length-1){const h={char:" ",index:l,delay:e==="letter"?l*t:u*t,duration:n,variants:ml("up")};d.push(h),i.push(h),l++}const f=e==="word"?u*t:0;o.push({word:c,index:u,delay:f,duration:n,characters:d})}),{words:o,characters:i,lines:a}},ml=s=>{const e={hidden:{opacity:0,scale:.8},visible:{opacity:1,scale:1}};switch(s){case"up":return{hidden:{...e.hidden,y:20},visible:{...e.visible,y:0}};case"down":return{hidden:{...e.hidden,y:-20},visible:{...e.visible,y:0}};case"left":return{hidden:{...e.hidden,x:20},visible:{...e.visible,x:0}};case"right":return{hidden:{...e.hidden,x:-20},visible:{...e.visible,x:0}};case"center":default:return e}},pl=(s,e,t=0,n="es-ES",r="EUR")=>{const i={minimumFractionDigits:t,maximumFractionDigits:t};switch(e){case"currency":i.style="currency",i.currency=r;break;case"percentage":i.style="percent";break;case"number":default:i.style="decimal";break}return new Intl.NumberFormat(n,i).format(s)},yy=(s=10)=>{const i="!@#$%^&*()_+-=[]{}|;:,.<>?~`"+"0123456789"+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"+"█▓▒░▄▀▐▌";return Array.from({length:s},()=>i[Math.floor(Math.random()*i.length)]).join("")},by=s=>{const e={low:{scale:.02,duration:.1},medium:{scale:.05,duration:.15},high:{scale:.1,duration:.2},extreme:{scale:.2,duration:.3}},{scale:t,duration:n}=e[s];return{hidden:{opacity:1,x:0,y:0,scaleX:1,scaleY:1},visible:{opacity:[1,.8,1],x:[0,-t*20,t*20,0],y:[0,t*10,-t*10,0],scaleX:[1,1+t,1-t,1],scaleY:[1,1-t,1+t,1],transition:{duration:n,repeat:1/0,repeatType:"mirror",ease:"linear"}}}},Du=(s,e)=>{const t=s.join(", ");switch(e){case"horizontal":return`linear-gradient(90deg, ${t})`;case"vertical":return`linear-gradient(180deg, ${t})`;case"diagonal":return`linear-gradient(45deg, ${t})`;case"radial":return`radial-gradient(circle, ${t})`;default:return`linear-gradient(90deg, ${t})`}},vy=(s,e)=>{const t=Math.max(s.length,e.length),n=[],r=10;for(let i=0;i<=r;i++){const o=i/r;let a="";for(let l=0;l<t;l++){const c=s[l]||" ",u=e[l]||" ";Math.random()<o?a+=u:a+=c}n.push(a)}return n},xs=()=>typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches,xy=(s,e=2,t="horizontal")=>({"--text-gradient":Du(s,t),"--animation-duration":`${e}s`,"--background-size":t==="horizontal"?"200% 100%":"100% 200%"}),wy=({text:s,texts:e,className:t="",trigger:n="inView",speed:r=2,cursor:i="line",cursorColor:o="currentColor",showCursor:a=!0,deleteAfter:l=!1,deleteSpeed:c=3,pauseBeforeDelete:u=1,loop:d=!1,repeat:f=!1,delay:h=0,disabled:p=!1,isActive:b=!1,onComplete:v,onStart:S,"data-testid":m})=>{const[y,g]=I.useState(""),[w,x]=I.useState(0),[k,C]=I.useState(!1),[E,j]=I.useState(!1),[N,L]=I.useState(!0),[D,V]=I.useState(!1),A=I.useRef(null),P=I.useRef(null),M=I.useRef(null),T=xs(),F=(e||[s])[w]||s,z=!p&&!T&&(n==="immediate"||n==="inView"&&D||n==="manual"&&b);I.useEffect(()=>{if(!(n!=="inView"||!A.current))return M.current=new IntersectionObserver(([_])=>{_.isIntersecting?(V(!0),!f&&M.current&&M.current.disconnect()):f&&V(!1)},{threshold:.1}),M.current.observe(A.current),()=>{M.current&&M.current.disconnect()}},[n,f]),I.useEffect(()=>()=>{P.current&&clearTimeout(P.current)},[]),I.useEffect(()=>{if(!z){(p||T)&&g(F);return}const _=()=>{S&&S(),C(!0),L(!1),P.current=setTimeout(()=>{H()},h*1e3)},H=()=>{let G=0;const K=F,U=setInterval(()=>{G<=K.length?(g(K.slice(0,G)),G++):(clearInterval(U),C(!1),L(!0),v&&v(),(l||e&&e.length>1)&&(P.current=setTimeout(()=>{(l||e&&e.length>1&&(d||w<e.length-1))&&X()},u*1e3)))},1e3/r);return()=>clearInterval(U)},X=()=>{j(!0),L(!1);const G=setInterval(()=>{g(K=>K.length>0?K.slice(0,-1):(clearInterval(G),j(!1),L(!0),e&&e.length>1&&(d?x(U=>(U+1)%e.length):w<e.length-1&&x(U=>U+1),P.current=setTimeout(()=>{H()},300)),""))},1e3/c);return()=>clearInterval(G)};_()},[z,F,w,r,c,h,l,d,e,S,v,u]),I.useEffect(()=>{n==="manual"&&!b&&(g(""),x(0),C(!1),j(!1))},[n,b]);const O=()=>{const _={color:o,animation:N?"blink 1s infinite":"none"};switch(i){case"block":return{..._,backgroundColor:o,color:"transparent",marginLeft:"2px",width:"0.6em",display:"inline-block"};case"underscore":return{..._,borderBottom:`2px solid ${o}`,marginLeft:"1px",paddingBottom:"2px"};case"line":default:return{..._,borderLeft:`2px solid ${o}`,marginLeft:"2px",paddingLeft:"1px"}}},$=()=>{n==="hover"&&!k&&!E&&(g(""),x(0))},W=()=>{n==="focus"&&!k&&!E&&(g(""),x(0))};return B.jsxs(B.Fragment,{children:[B.jsx("style",{dangerouslySetInnerHTML:{__html:`
36
+ @keyframes blink {
37
+ 0%, 50% { opacity: 1; }
38
+ 51%, 100% { opacity: 0; }
39
+ }
40
+ `}}),B.jsxs(Se.span,{ref:A,className:`typewriter ${t}`,onMouseEnter:n==="hover"?$:void 0,onFocus:n==="focus"?W:void 0,tabIndex:n==="focus"?0:void 0,"data-testid":m,style:{display:"inline-block",minHeight:"1em",fontFamily:"monospace"},children:[y,a&&i!=="none"&&B.jsx("span",{className:"typewriter-cursor",style:O(),"aria-hidden":"true",children:i==="block"?"█":""})]})]})},Cy=s=>{const e=ge.c(36),{text:t,className:n,trigger:r,mode:i,duration:o,staggerDelay:a,direction:l,initialOpacity:c,easing:u,withBlur:d,withScale:f,withRotation:h,repeat:p,delay:b,disabled:v,isActive:S,onComplete:m,onStart:y,"data-testid":g}=s,w=n===void 0?"":n,x=r===void 0?"inView":r,k=i===void 0?"letter":i,C=o===void 0?.6:o,E=a===void 0?.05:a,j=l===void 0?"up":l,N=c===void 0?0:c,L=u===void 0?"easeOut":u,D=d===void 0?!1:d,V=f===void 0?!1:f,A=h===void 0?!1:h,P=p===void 0?!1:p,M=b===void 0?0:b,T=v===void 0?!1:v,R=S===void 0?!1:S,[F,z]=I.useState(!1),[O,$]=I.useState(!1),[W,_]=I.useState(!1),H=I.useRef(null),X=I.useRef(null),G=xs(),K=gy(t,k,E,C),U=!T&&!G&&(x==="immediate"||x==="inView"&&F||x==="manual"&&R);let Z,Y;e[0]!==P||e[1]!==x?(Z=()=>{if(!(x!=="inView"||!H.current))return X.current=new IntersectionObserver(me=>{const[he]=me;he.isIntersecting?(z(!0),!P&&X.current&&X.current.disconnect()):P&&(z(!1),_(!1))},{threshold:.1}),X.current.observe(H.current),()=>{X.current&&X.current.disconnect()}},Y=[x,P],e[0]=P,e[1]=x,e[2]=Z,e[3]=Y):(Z=e[2],Y=e[3]),I.useEffect(Z,Y);let J,Q;e[4]!==W||e[5]!==y||e[6]!==U?(J=()=>{U&&!W?($(!0),y&&y()):U||$(!1)},Q=[U,W,y],e[4]=W,e[5]=y,e[6]=U,e[7]=J,e[8]=Q):(J=e[7],Q=e[8]),I.useEffect(J,Q);let q,te;e[9]!==R||e[10]!==x?(q=()=>{x==="manual"&&!R&&(_(!1),$(!1))},te=[x,R],e[9]=R,e[10]=x,e[11]=q,e[12]=te):(q=e[11],te=e[12]),I.useEffect(q,te);let se;e[13]!==j||e[14]!==N||e[15]!==D||e[16]!==A||e[17]!==V?(se=()=>{let me=0,he=0;e:switch(j){case"up":{he=20;break e}case"down":{he=-20;break e}case"left":{me=20;break e}case"right":me=-20}const xe={opacity:N,x:me,y:he},Te={opacity:1,x:0,y:0};return D&&(xe.filter="blur(10px)",Te.filter="blur(0px)"),V&&(xe.scale=.5,Te.scale=1),A&&(xe.rotate=j==="left"?-45:j==="right"?45:-15,Te.rotate=0),{hidden:xe,visible:Te}},e[13]=j,e[14]=N,e[15]=D,e[16]=A,e[17]=V,e[18]=se):se=e[18];const ee=se;let ne;e[19]!==ee?(ne=ee(),e[19]=ee,e[20]=ne):ne=e[20];const ie=ne;let oe;e[21]!==O||e[22]!==x?(oe=()=>{x==="hover"&&!O&&(_(!1),$(!0))},e[21]=O,e[22]=x,e[23]=oe):oe=e[23];const re=oe;let ae;e[24]!==O||e[25]!==x?(ae=()=>{x==="focus"&&!O&&(_(!1),$(!0))},e[24]=O,e[25]=x,e[26]=ae):ae=e[26];const le=ae;let ce;e[27]!==m?(ce=()=>{$(!1),_(!0),m&&m()},e[27]=m,e[28]=ce):ce=e[28];const pe=ce;if(T||G){const me=`reveal-text ${w}`;let he;return e[29]!==me||e[30]!==g||e[31]!==t?(he=B.jsx("div",{ref:H,className:me,"data-testid":g,children:t}),e[29]=me,e[30]=g,e[31]=t,e[32]=he):he=e[32],he}const ye=()=>k==="word"?B.jsx("div",{ref:H,className:`reveal-text reveal-text--words ${w}`,onMouseEnter:x==="hover"?re:void 0,onFocus:x==="focus"?le:void 0,tabIndex:x==="focus"?0:void 0,"data-testid":g,style:{display:"inline-block"},children:K.words.map((me,he)=>B.jsx(Se.span,{variants:ie,initial:"hidden",animate:O?"visible":"hidden",transition:{duration:C,delay:me.delay+M,ease:Rs(L)},onAnimationComplete:he===K.words.length-1?pe:void 0,style:{display:"inline-block",marginRight:he<K.words.length-1?"0.25em":"0"},children:me.word},`word-${he}`))}):k==="line"?B.jsx("div",{ref:H,className:`reveal-text reveal-text--lines ${w}`,onMouseEnter:x==="hover"?re:void 0,onFocus:x==="focus"?le:void 0,tabIndex:x==="focus"?0:void 0,"data-testid":g,children:K.lines.map((me,he)=>B.jsx(Se.div,{variants:ie,initial:"hidden",animate:O?"visible":"hidden",transition:{duration:C,delay:he*E+M,ease:Rs(L)},onAnimationComplete:he===K.lines.length-1?pe:void 0,children:me},`line-${he}`))}):B.jsx("div",{ref:H,className:`reveal-text reveal-text--letters ${w}`,onMouseEnter:x==="hover"?re:void 0,onFocus:x==="focus"?le:void 0,tabIndex:x==="focus"?0:void 0,"data-testid":g,style:{display:"inline-block"},children:K.characters.map((me,he)=>B.jsx(Se.span,{variants:ie,initial:"hidden",animate:O?"visible":"hidden",transition:{duration:C,delay:me.delay+M,ease:Rs(L)},onAnimationComplete:he===K.characters.length-1?pe:void 0,style:{display:"inline-block",whiteSpace:me.char===" "?"pre":"normal"},children:me.char},`char-${he}`))}),be=Hs,ve="wait",Ce=ye();let ue;return e[33]!==be||e[34]!==Ce?(ue=B.jsx(be,{mode:ve,children:Ce}),e[33]=be,e[34]=Ce,e[35]=ue):ue=e[35],ue},Sy=s=>{const e=ge.c(58),{from:t,to:n,className:r,trigger:i,duration:o,decimals:a,format:l,currency:c,locale:u,formatter:d,easing:f,prefix:h,suffix:p,repeat:b,delay:v,disabled:S,isActive:m,onStart:y,onComplete:g,"data-testid":w}=s,x=r===void 0?"":r,k=i===void 0?"inView":i,C=o===void 0?2:o,E=a===void 0?0:a,j=l===void 0?"number":l,N=c===void 0?"EUR":c,L=u===void 0?"es-ES":u,D=f===void 0?"easeOut":f,V=h===void 0?"":h,A=p===void 0?"":p,P=b===void 0?!1:b,M=v===void 0?0:v,T=S===void 0?!1:S,R=m===void 0?!1:m,[F,z]=I.useState(!1),[O,$]=I.useState(!1),[W,_]=I.useState(!1),H=I.useRef(null),X=I.useRef(null),G=I.useRef(null),K=xs(),U=So(t),Z=!T&&!K&&(k==="immediate"||k==="inView"&&F||k==="manual"&&R);let Y;e[0]!==N||e[1]!==E||e[2]!==j||e[3]!==d||e[4]!==L?(Y=Ce=>{const ue=Math.round(Ce*Math.pow(10,E))/Math.pow(10,E);return d?d(ue):pl(ue,j,E,L,N)},e[0]=N,e[1]=E,e[2]=j,e[3]=d,e[4]=L,e[5]=Y):Y=e[5];const J=ds(U,Y);let Q,q;e[6]!==P||e[7]!==k?(Q=()=>{if(!(k!=="inView"||!H.current))return X.current=new IntersectionObserver(Ce=>{const[ue]=Ce;ue.isIntersecting?(z(!0),!P&&X.current&&X.current.disconnect()):P&&(z(!1),_(!1))},{threshold:.1}),X.current.observe(H.current),()=>{X.current&&X.current.disconnect()}},q=[k,P],e[6]=P,e[7]=k,e[8]=Q,e[9]=q):(Q=e[8],q=e[9]),I.useEffect(Q,q);let te,se;e[10]!==W||e[11]!==M||e[12]!==C||e[13]!==D||e[14]!==t||e[15]!==U||e[16]!==g||e[17]!==y||e[18]!==Z||e[19]!==n?(te=()=>(Z&&!W?($(!0),y&&y(),G.current&&G.current.cancel(),G.current=f0(t,n,{duration:C,delay:M,ease:Rs(D),onUpdate:Ce=>{U.set(Ce)},onComplete:()=>{$(!1),_(!0),g&&g()}})):!Z&&G.current&&(G.current.cancel(),U.set(t),$(!1)),()=>{G.current&&G.current.cancel()}),se=[Z,W,t,n,C,M,D,y,g,U],e[10]=W,e[11]=M,e[12]=C,e[13]=D,e[14]=t,e[15]=U,e[16]=g,e[17]=y,e[18]=Z,e[19]=n,e[20]=te,e[21]=se):(te=e[20],se=e[21]),I.useEffect(te,se);let ee,ne;e[22]!==t||e[23]!==R||e[24]!==U||e[25]!==k?(ee=()=>{k==="manual"&&!R&&(_(!1),$(!1),U.set(t))},ne=[k,R,t,U],e[22]=t,e[23]=R,e[24]=U,e[25]=k,e[26]=ee,e[27]=ne):(ee=e[26],ne=e[27]),I.useEffect(ee,ne);let ie;e[28]!==O||e[29]!==k?(ie=()=>{k==="hover"&&!O&&_(!1)},e[28]=O,e[29]=k,e[30]=ie):ie=e[30];const oe=ie;let re;e[31]!==O||e[32]!==k?(re=()=>{k==="focus"&&!O&&_(!1)},e[31]=O,e[32]=k,e[33]=re):re=e[33];const ae=re;if(T||K){let Ce;e[34]!==N||e[35]!==E||e[36]!==j||e[37]!==d||e[38]!==L||e[39]!==n?(Ce=d?d(n):pl(n,j,E,L,N),e[34]=N,e[35]=E,e[36]=j,e[37]=d,e[38]=L,e[39]=n,e[40]=Ce):Ce=e[40];const ue=Ce,me=`counter-text ${x}`;let he;return e[41]!==ue||e[42]!==V||e[43]!==A||e[44]!==me||e[45]!==w?(he=B.jsxs("span",{ref:H,className:me,"data-testid":w,children:[V,ue,A]}),e[41]=ue,e[42]=V,e[43]=A,e[44]=me,e[45]=w,e[46]=he):he=e[46],he}const le=`counter-text ${x}`,ce=k==="hover"?oe:void 0,pe=k==="focus"?ae:void 0,ye=k==="focus"?0:void 0;let be;e[47]!==J?(be=B.jsx(Se.span,{children:J}),e[47]=J,e[48]=be):be=e[48];let ve;return e[49]!==V||e[50]!==A||e[51]!==le||e[52]!==ce||e[53]!==pe||e[54]!==ye||e[55]!==be||e[56]!==w?(ve=B.jsxs(Se.span,{ref:H,className:le,onMouseEnter:ce,onFocus:pe,tabIndex:ye,"data-testid":w,children:[V,be,A]}),e[49]=V,e[50]=A,e[51]=le,e[52]=ce,e[53]=pe,e[54]=ye,e[55]=be,e[56]=w,e[57]=ve):ve=e[57],ve},Ty=s=>{const e=ge.c(64),{text:t,className:n,trigger:r,colors:i,direction:o,duration:a,speed:l,animate:c,backgroundSize:u,stops:d,repeat:f,delay:h,disabled:p,isActive:b,onStart:v,onComplete:S,"data-testid":m}=s,y=n===void 0?"":n,g=r===void 0?"immediate":r,w=o===void 0?"horizontal":o,x=a===void 0?3:a,k=l===void 0?1:l,C=c===void 0?!0:c,E=f===void 0?!0:f,j=h===void 0?0:h,N=p===void 0?!1:p,L=b===void 0?!1:b,[D,V]=I.useState(!1),[A,P]=I.useState(!1),[M,T]=I.useState(!1),R=I.useRef(null),F=I.useRef(null),z=xs(),O=!N&&!z&&C&&(g==="immediate"||g==="inView"&&D||g==="manual"&&L);let $;e[0]!==i||e[1]!==w||e[2]!==d?($=()=>{if(!d||d.length!==i.length)return Du(i,w);const xe=i.map((Te,Ve)=>`${Te} ${d[Ve]}%`).join(", ");switch(w){case"horizontal":return`linear-gradient(90deg, ${xe})`;case"vertical":return`linear-gradient(180deg, ${xe})`;case"diagonal":return`linear-gradient(45deg, ${xe})`;case"radial":return`radial-gradient(circle, ${xe})`;default:return`linear-gradient(90deg, ${xe})`}},e[0]=i,e[1]=w,e[2]=d,e[3]=$):$=e[3];const W=$,_=x*k;let H;e[4]!==i||e[5]!==w||e[6]!==_?(H=xy(i,_,w),e[4]=i,e[5]=w,e[6]=_,e[7]=H):H=e[7];const X=H;let G;e[8]!==W?(G=W(),e[8]=W,e[9]=G):G=e[9];const K=G,U=u||X["--background-size"]||(w==="horizontal"?"200% 100%":"100% 200%");let Z,Y;e[10]!==E||e[11]!==g?(Z=()=>{if(!(g!=="inView"||!R.current))return F.current=new IntersectionObserver(xe=>{const[Te]=xe;Te.isIntersecting?(V(!0),!E&&F.current&&F.current.disconnect()):E&&(V(!1),T(!1))},{threshold:.1}),F.current.observe(R.current),()=>{F.current&&F.current.disconnect()}},Y=[g,E],e[10]=E,e[11]=g,e[12]=Z,e[13]=Y):(Z=e[12],Y=e[13]),I.useEffect(Z,Y);let J,Q;e[14]!==M||e[15]!==v||e[16]!==O?(J=()=>{O&&!M?(P(!0),v&&v()):O||P(!1)},Q=[O,M,v],e[14]=M,e[15]=v,e[16]=O,e[17]=J,e[18]=Q):(J=e[17],Q=e[18]),I.useEffect(J,Q);let q,te;e[19]!==L||e[20]!==g?(q=()=>{g==="manual"&&!L&&(T(!1),P(!1))},te=[g,L],e[19]=L,e[20]=g,e[21]=q,e[22]=te):(q=e[21],te=e[22]),I.useEffect(q,te);let se;e[23]!==A||e[24]!==g?(se=()=>{g==="hover"&&!A&&(T(!1),P(!0))},e[23]=A,e[24]=g,e[25]=se):se=e[25];const ee=se;let ne;e[26]!==A||e[27]!==g?(ne=()=>{g==="focus"&&!A&&(T(!1),P(!0))},e[26]=A,e[27]=g,e[28]=ne):ne=e[28];const ie=ne;let oe;e[29]!==S||e[30]!==E?(oe=()=>{E||(P(!1),T(!0),S&&S())},e[29]=S,e[30]=E,e[31]=oe):oe=e[31];const re=oe;let ae;e[32]!==j||e[33]!==w||e[34]!==x||e[35]!==E||e[36]!==O||e[37]!==k?(ae=O&&{animation:`gradientMove ${x/k}s linear ${j}s ${E?"infinite":"1"} ${w==="horizontal"?"alternate":"normal"}`},e[32]=j,e[33]=w,e[34]=x,e[35]=E,e[36]=O,e[37]=k,e[38]=ae):ae=e[38];let le;e[39]!==U||e[40]!==K||e[41]!==ae?(le={background:K,backgroundClip:"text",WebkitBackgroundClip:"text",color:"transparent",backgroundSize:U,...ae},e[39]=U,e[40]=K,e[41]=ae,e[42]=le):le=e[42];const ce=le;if(N||z){const xe=`gradient-text ${y}`;let Te;e[43]!==K?(Te={background:K,backgroundClip:"text",WebkitBackgroundClip:"text",color:"transparent"},e[43]=K,e[44]=Te):Te=e[44];let Ve;return e[45]!==xe||e[46]!==Te||e[47]!==m||e[48]!==t?(Ve=B.jsx("span",{ref:R,className:xe,style:Te,"data-testid":m,children:t}),e[45]=xe,e[46]=Te,e[47]=m,e[48]=t,e[49]=Ve):Ve=e[49],Ve}const pe=`
41
+ @keyframes gradientMove {
42
+ 0% {
43
+ background-position: ${w==="horizontal"?"0% 50%":"50% 0%"};
44
+ }
45
+ 50% {
46
+ background-position: ${w==="horizontal"?"100% 50%":"50% 100%"};
47
+ }
48
+ 100% {
49
+ background-position: ${w==="horizontal"?"0% 50%":"50% 0%"};
50
+ }
51
+ }
52
+ `;let ye;e[50]!==pe?(ye=B.jsx("style",{children:pe}),e[50]=pe,e[51]=ye):ye=e[51];const be=`gradient-text ${y}`,ve=g==="hover"?ee:void 0,Ce=g==="focus"?ie:void 0,ue=g==="focus"?0:void 0;let me;e[52]!==ce||e[53]!==re||e[54]!==be||e[55]!==ve||e[56]!==Ce||e[57]!==ue||e[58]!==m||e[59]!==t?(me=B.jsx(Se.span,{ref:R,className:be,style:ce,onMouseEnter:ve,onFocus:Ce,tabIndex:ue,onAnimationEnd:re,"data-testid":m,children:t}),e[52]=ce,e[53]=re,e[54]=be,e[55]=ve,e[56]=Ce,e[57]=ue,e[58]=m,e[59]=t,e[60]=me):me=e[60];let he;return e[61]!==ye||e[62]!==me?(he=B.jsxs(B.Fragment,{children:[ye,me]}),e[61]=ye,e[62]=me,e[63]=he):he=e[63],he},ky=({texts:s,className:e="",trigger:t="immediate",displayDuration:n=2e3,morphDuration:r=800,loop:i=!0,easing:o="easeInOut",morphStyle:a="fade",repeat:l=!0,delay:c=0,disabled:u=!1,isActive:d=!1,onStart:f,onComplete:h,"data-testid":p})=>{const[b,v]=I.useState(!1),[S,m]=I.useState(!1),[y,g]=I.useState(!1),[w,x]=I.useState(0),[k,C]=I.useState(s[0]||""),E=I.useRef(null),j=I.useRef(null),N=I.useRef(null),L=I.useRef(null),D=xs(),V=!u&&!D&&(t==="immediate"||t==="inView"&&b||t==="manual"&&d),A=I.useCallback(()=>{N.current&&(clearTimeout(N.current),N.current=null),L.current&&(clearTimeout(L.current),L.current=null)},[]),P=I.useCallback(()=>{if(s.length<=1)return;const z=s[w],O=(w+1)%s.length,$=s[O];if(a==="scramble"){const W=vy(z,$);let _=0;const H=setInterval(()=>{_<W.length?(C(W[_]),_++):(clearInterval(H),C($),x(O),!i&&O===0?(g(!0),m(!1),h&&h()):V&&(N.current=setTimeout(()=>{P()},n)))},r/10)}else C($),x(O),!i&&O===0?(g(!0),m(!1),h&&h()):V&&(N.current=setTimeout(()=>{P()},n))},[w,s,a,r,n,i,V,h]);I.useEffect(()=>{if(!(t!=="inView"||!E.current))return j.current=new IntersectionObserver(([z])=>{z.isIntersecting?(v(!0),!l&&j.current&&j.current.disconnect()):l&&(v(!1),g(!1))},{threshold:.1}),j.current.observe(E.current),()=>{j.current&&j.current.disconnect()}},[t,l]),I.useEffect(()=>(V&&!y&&s.length>1?(m(!0),f&&f(),N.current=setTimeout(()=>{P()},c+n)):V||(A(),m(!1),C(s[0]||""),x(0)),A),[V,y,s.length,c,n,P,f,A]),I.useEffect(()=>{t==="manual"&&!d&&(A(),g(!1),m(!1),C(s[0]||""),x(0))},[t,d,s,A]);const M=()=>{t==="hover"&&!S&&g(!1)},T=()=>{t==="focus"&&!S&&g(!1)};if(I.useEffect(()=>A,[A]),u||D)return B.jsx("span",{ref:E,className:`morphing-text ${e}`,"data-testid":p,children:s[0]||""});const F=(()=>{switch(a){case"slide":return{enter:{x:50,opacity:0},center:{x:0,opacity:1},exit:{x:-50,opacity:0}};case"fade":default:return{enter:{opacity:0},center:{opacity:1},exit:{opacity:0}}}})();return a==="scramble"?B.jsx("span",{ref:E,className:`morphing-text morphing-text--scramble ${e}`,onMouseEnter:t==="hover"?M:void 0,onFocus:t==="focus"?T:void 0,tabIndex:t==="focus"?0:void 0,"data-testid":p,style:{fontVariantNumeric:"tabular-nums",minWidth:"1ch"},children:k}):B.jsx("span",{ref:E,className:`morphing-text morphing-text--${a} ${e}`,onMouseEnter:t==="hover"?M:void 0,onFocus:t==="focus"?T:void 0,tabIndex:t==="focus"?0:void 0,"data-testid":p,style:{display:"inline-block",minWidth:"1ch"},children:B.jsx(Hs,{mode:"wait",children:B.jsx(Se.span,{variants:F,initial:"enter",animate:"center",exit:"exit",transition:{duration:r/1e3,ease:Rs(o)},style:{display:"inline-block"},children:k},`${w}-${k}`)})})},Ay=s=>{const e=ge.c(84),{text:t,className:n,trigger:r,intensity:i,duration:o,continuous:a,colors:l,corruptData:c,glitchChars:u,layers:d,repeat:f,delay:h,disabled:p,isActive:b,onStart:v,onComplete:S,"data-testid":m}=s,y=n===void 0?"":n,g=r===void 0?"inView":r,w=i===void 0?"medium":i,x=o===void 0?.5:o,k=a===void 0?!1:a;let C;e[0]!==l?(C=l===void 0?["#ff0000","#00ff00","#0000ff"]:l,e[0]=l,e[1]=C):C=e[1];const E=C,j=c===void 0?!1:c,N=d===void 0?3:d,L=f===void 0?!0:f,D=h===void 0?0:h,V=p===void 0?!1:p,A=b===void 0?!1:b,[P,M]=I.useState(!1),[T,R]=I.useState(!1),[F,z]=I.useState(!1),[O,$]=I.useState(t),W=I.useRef(null),_=I.useRef(null),H=I.useRef(null),X=xs(),G=!V&&!X&&(g==="immediate"||g==="inView"&&P||g==="manual"&&A);let K;e[2]!==u?(K=u||yy(20),e[2]=u,e[3]=K):K=e[3];const U=K;let Z;e[4]!==w?(Z=by(w),e[4]=w,e[5]=Z):Z=e[5];const Y=Z;let J;e[6]!==U?(J=(Ee,Ye)=>{const nt=Ye===void 0?.3:Ye;return Ee.split("").map(ws=>Math.random()<nt?U[Math.floor(Math.random()*U.length)]:ws).join("")},e[6]=U,e[7]=J):J=e[7];const Q=J;let q,te;e[8]!==L||e[9]!==g?(q=()=>{if(!(g!=="inView"||!W.current))return _.current=new IntersectionObserver(Ee=>{const[Ye]=Ee;Ye.isIntersecting?(M(!0),!L&&_.current&&_.current.disconnect()):L&&(M(!1),z(!1))},{threshold:.1}),_.current.observe(W.current),()=>{_.current&&_.current.disconnect()}},te=[g,L],e[8]=L,e[9]=g,e[10]=q,e[11]=te):(q=e[10],te=e[11]),I.useEffect(q,te);let se;e[12]!==j||e[13]!==Q||e[14]!==w||e[15]!==G||e[16]!==t?(se=()=>{if(j&&G){const Ee=w==="extreme"?50:w==="high"?100:w==="medium"?200:300;return H.current=setInterval(()=>{$(Q(t,.2)),Math.random()<.3&&setTimeout(()=>$(t),50)},Ee),()=>{H.current&&clearInterval(H.current)}}else $(t),H.current&&clearInterval(H.current)},e[12]=j,e[13]=Q,e[14]=w,e[15]=G,e[16]=t,e[17]=se):se=e[17];let ee;e[18]!==j||e[19]!==U||e[20]!==w||e[21]!==G||e[22]!==t?(ee=[j,G,t,w,U],e[18]=j,e[19]=U,e[20]=w,e[21]=G,e[22]=t,e[23]=ee):ee=e[23],I.useEffect(se,ee);let ne,ie;e[24]!==F||e[25]!==v||e[26]!==G?(ne=()=>{G&&!F?(R(!0),v&&v()):G||R(!1)},ie=[G,F,v],e[24]=F,e[25]=v,e[26]=G,e[27]=ne,e[28]=ie):(ne=e[27],ie=e[28]),I.useEffect(ne,ie);let oe,re;e[29]!==A||e[30]!==t||e[31]!==g?(oe=()=>{g==="manual"&&!A&&(z(!1),R(!1),$(t))},re=[g,A,t],e[29]=A,e[30]=t,e[31]=g,e[32]=oe,e[33]=re):(oe=e[32],re=e[33]),I.useEffect(oe,re);let ae;e[34]!==T||e[35]!==g?(ae=()=>{g==="hover"&&!T&&(z(!1),R(!0))},e[34]=T,e[35]=g,e[36]=ae):ae=e[36];const le=ae;let ce;e[37]!==T||e[38]!==g?(ce=()=>{g==="focus"&&!T&&(z(!1),R(!0))},e[37]=T,e[38]=g,e[39]=ce):ce=e[39];const pe=ce;let ye;e[40]!==k||e[41]!==S?(ye=()=>{k||(R(!1),z(!0),S&&S())},e[40]=k,e[41]=S,e[42]=ye):ye=e[42];const be=ye;if(V||X){const Ee=`glitch-text ${y}`;let Ye;return e[43]!==Ee||e[44]!==m||e[45]!==t?(Ye=B.jsx("span",{ref:W,className:Ee,"data-testid":m,children:t}),e[43]=Ee,e[44]=m,e[45]=t,e[46]=Ye):Ye=e[46],Ye}let ve;e[47]===Symbol.for("react.memo_cache_sentinel")?(ve={position:"relative",display:"inline-block"},e[47]=ve):ve=e[47];const Ce=ve;let ue;e[48]!==E||e[49]!==k||e[50]!==D||e[51]!==x||e[52]!==w||e[53]!==N||e[54]!==G?(ue=Ee=>{const Ye=E[Ee%E.length],nt=(Ee+1)*(w==="extreme"?3:w==="high"?2:w==="medium"?1:.5);return{position:"absolute",top:0,left:0,color:Ye,clipPath:`inset(${Ee*20}% 0 ${(N-Ee-1)*20}% 0)`,transform:`translateX(${Ee%2===0?nt:-nt}px)`,opacity:.8,mixBlendMode:"multiply",animation:G?`glitchShift${Ee} ${x}s linear ${D}s ${k?"infinite":"1"}`:void 0}},e[48]=E,e[49]=k,e[50]=D,e[51]=x,e[52]=w,e[53]=N,e[54]=G,e[55]=ue):ue=e[55];const me=ue,he=`
53
+ ${Array.from({length:N},Vy).join("")}
54
+ `;let xe;e[56]!==he?(xe=B.jsx("style",{children:he}),e[56]=he,e[57]=xe):xe=e[57];const Te=`glitch-text glitch-text--${w} ${y}`,Ve=Y,Ae=G?"visible":"hidden",ze=g==="hover"?le:void 0,Re=g==="focus"?pe:void 0,_e=g==="focus"?0:void 0,Ge=N+1;let Oe;e[58]!==Ge?(Oe={position:"relative",zIndex:Ge},e[58]=Ge,e[59]=Oe):Oe=e[59];let He;e[60]!==O||e[61]!==Oe?(He=B.jsx("span",{style:Oe,children:O}),e[60]=O,e[61]=Oe,e[62]=He):He=e[62];let Ke;if(e[63]!==O||e[64]!==me||e[65]!==N){let Ee;e[67]!==O||e[68]!==me?(Ee=(Ye,nt)=>B.jsx("span",{style:me(nt),"aria-hidden":"true",children:O},`layer-${nt}`),e[67]=O,e[68]=me,e[69]=Ee):Ee=e[69],Ke=Array.from({length:N},Ee),e[63]=O,e[64]=me,e[65]=N,e[66]=Ke}else Ke=e[66];let Ze;e[70]!==be||e[71]!==Te||e[72]!==Ve||e[73]!==Ae||e[74]!==ze||e[75]!==Re||e[76]!==_e||e[77]!==He||e[78]!==Ke||e[79]!==m?(Ze=B.jsxs(Se.span,{ref:W,className:Te,style:Ce,variants:Ve,initial:"hidden",animate:Ae,onMouseEnter:ze,onFocus:Re,tabIndex:_e,onAnimationComplete:be,"data-testid":m,children:[He,Ke]}),e[70]=be,e[71]=Te,e[72]=Ve,e[73]=Ae,e[74]=ze,e[75]=Re,e[76]=_e,e[77]=He,e[78]=Ke,e[79]=m,e[80]=Ze):Ze=e[80];let st;return e[81]!==xe||e[82]!==Ze?(st=B.jsxs(B.Fragment,{children:[xe,Ze]}),e[81]=xe,e[82]=Ze,e[83]=st):st=e[83],st};function Vy(s,e){return`
55
+ @keyframes glitchShift${e} {
56
+ 0%, 100% { transform: translateX(0); }
57
+ 10% { transform: translateX(${(e+1)*2}px) translateY(${e}px); }
58
+ 20% { transform: translateX(${-(e+1)*2}px) translateY(${-e}px); }
59
+ 30% { transform: translateX(${(e+1)*3}px) translateY(${e*2}px); }
60
+ 40% { transform: translateX(${-(e+1)*3}px) translateY(${-e*2}px); }
61
+ 50% { transform: translateX(${e+1}px) translateY(${-e}px); }
62
+ 60% { transform: translateX(${-(e+1)}px) translateY(${e}px); }
63
+ 70% { transform: translateX(${(e+1)*2}px) translateY(${-e*2}px); }
64
+ 80% { transform: translateX(${-(e+1)*2}px) translateY(${e*2}px); }
65
+ 90% { transform: translateX(${e+1}px) translateY(${e}px); }
66
+ }
67
+ `}exports.Avatar=wu;exports.AvatarGroup=Su;exports.AvatarIcon=Ao;exports.Badge=Tu;exports.Bounce=q0;exports.BounceContainer=I0;exports.Chip=ku;exports.CounterText=Sy;exports.FadeContainer=M0;exports.FadeIn=H0;exports.FlipContainer=R0;exports.GlitchText=Ay;exports.GradientText=Ty;exports.Image=a1;exports.Input=Au;exports.Modal=Mu;exports.MorphingContainer=L0;exports.MorphingText=ky;exports.Navbar=Eu;exports.ParallaxContainer=$0;exports.Progress=Ru;exports.RevealText=Cy;exports.RotateIn=X0;exports.ScaleContainer=E0;exports.ScaleIn=Y0;exports.SlideContainer=P0;exports.SlideIn=K0;exports.Spinner=ju;exports.Stagger=Z0;exports.StaggerContainer=j0;exports.Switch=ry;exports.Table=my;exports.TableRow=py;exports.TypeWriter=wy;exports.useAvatar=xu;exports.useAvatarGroup=Cu;exports.useModal=R1;exports.useMorphingContainer=O0;exports.useParallaxContainer=F0;
68
+ //# sourceMappingURL=index.cjs.map