lizaui 3.0.35 → 3.0.36

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.
Files changed (63) hide show
  1. package/dist/button/index.cjs.js +1 -1
  2. package/dist/button/index.es.js +1 -1
  3. package/dist/calendar/index.cjs.js +1 -1
  4. package/dist/calendar/index.es.js +1 -1
  5. package/dist/checkbox/index.cjs.js +1 -1
  6. package/dist/checkbox/index.es.js +1 -1
  7. package/dist/chunks/assertion-C7nbUE-q.js +2 -0
  8. package/dist/chunks/assertion-C7nbUE-q.js.map +1 -0
  9. package/dist/chunks/assertion-CrT8p68K.js +11 -0
  10. package/dist/chunks/assertion-CrT8p68K.js.map +1 -0
  11. package/dist/chunks/button-ByG7rkKr.js +528 -0
  12. package/dist/chunks/button-ByG7rkKr.js.map +1 -0
  13. package/dist/chunks/button-W_O8D9E6.js +2 -0
  14. package/dist/chunks/button-W_O8D9E6.js.map +1 -0
  15. package/dist/chunks/checkbox-D7Bt7i2P.js +2 -0
  16. package/dist/chunks/{checkbox-C23sBMh5.js.map → checkbox-D7Bt7i2P.js.map} +1 -1
  17. package/dist/chunks/{checkbox-ChChDxFl.js → checkbox-lvTY3PXC.js} +3 -2
  18. package/dist/chunks/{checkbox-ChChDxFl.js.map → checkbox-lvTY3PXC.js.map} +1 -1
  19. package/dist/chunks/index-BnlGNtJe.js +65 -0
  20. package/dist/chunks/index-BnlGNtJe.js.map +1 -0
  21. package/dist/chunks/{index-BpSN4GSo.js → index-DSpBzH_i.js} +796 -793
  22. package/dist/chunks/index-DSpBzH_i.js.map +1 -0
  23. package/dist/chunks/refs-DAOksVs3.js +29 -0
  24. package/dist/chunks/refs-DAOksVs3.js.map +1 -0
  25. package/dist/chunks/refs-pI64b4UC.js +2 -0
  26. package/dist/chunks/refs-pI64b4UC.js.map +1 -0
  27. package/dist/chunks/ripple-BQsLJHrx.js +3594 -0
  28. package/dist/chunks/ripple-BQsLJHrx.js.map +1 -0
  29. package/dist/chunks/ripple-CUdIIH3t.js +10 -0
  30. package/dist/chunks/ripple-CUdIIH3t.js.map +1 -0
  31. package/dist/components/ripple/index.d.ts +3 -0
  32. package/dist/components/ripple/index.d.ts.map +1 -0
  33. package/dist/components/ui/modal.d.ts +1 -0
  34. package/dist/components/ui/modal.d.ts.map +1 -1
  35. package/dist/pagination/index.cjs.js +1 -1
  36. package/dist/pagination/index.es.js +2 -2
  37. package/dist/ripple/index.cjs.js +2 -0
  38. package/dist/ripple/index.cjs.js.map +1 -0
  39. package/dist/ripple/index.es.js +5 -0
  40. package/dist/ripple/index.es.js.map +1 -0
  41. package/dist/ripple.d.ts +2 -0
  42. package/dist/select-input/index.cjs.js +1 -1
  43. package/dist/select-input/index.cjs.js.map +1 -1
  44. package/dist/select-input/index.es.js +2 -2
  45. package/dist/table/index.cjs.js +1 -1
  46. package/dist/table/index.es.js +1 -1
  47. package/dist/ui/index.cjs.js +2 -2
  48. package/dist/ui/index.cjs.js.map +1 -1
  49. package/dist/ui/index.es.js +1288 -1284
  50. package/dist/ui/index.es.js.map +1 -1
  51. package/package.json +6 -1
  52. package/dist/chunks/button-C6LoJycL.js +0 -4112
  53. package/dist/chunks/button-C6LoJycL.js.map +0 -1
  54. package/dist/chunks/button-CPPU0FsH.js +0 -10
  55. package/dist/chunks/button-CPPU0FsH.js.map +0 -1
  56. package/dist/chunks/checkbox-C23sBMh5.js +0 -2
  57. package/dist/chunks/index-BTn-tZ5q.js +0 -65
  58. package/dist/chunks/index-BTn-tZ5q.js.map +0 -1
  59. package/dist/chunks/index-BpSN4GSo.js.map +0 -1
  60. package/dist/chunks/refs-DLih6QCP.js +0 -2
  61. package/dist/chunks/refs-DLih6QCP.js.map +0 -1
  62. package/dist/chunks/refs-DcCOPvdv.js +0 -35
  63. package/dist/chunks/refs-DcCOPvdv.js.map +0 -1
@@ -1,10 +0,0 @@
1
- "use strict";const R=require("./jsx-runtime-DFswc9zO.js"),p=require("react"),We=require("./refs-DLih6QCP.js"),gr=require("./tv-C5lw0tnu.js"),_=require("./classes-P14wj2Ze.js"),S=require("./variants-BUTPDD09.js"),yr=require("./clsx-C11secjj.js"),br=require("./index-D2_xS2pD.js");function vr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const xt=vr(p);function xr(e,t,n){return Math.min(Math.max(e,t),n)}function wr(e){return`${e}-${Math.floor(Math.random()*1e6)}`}const Ln=gr.tv({base:["z-0","cursor-pointer","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-medium","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]",..._.dataFocusVisibleClasses],variants:{variant:{solid:"",bordered:"border-[2px] bg-transparent",light:"bg-transparent",flat:"",faded:"border-[2px]",shadow:"",ghost:"border-[2px] bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-sm",md:"px-4 min-w-20 h-10 text-sm gap-2 rounded-md",lg:"px-6 min-w-24 h-12 text-md gap-3 rounded-lg"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-80 pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:S.colorVariants.solid.default},{variant:"solid",color:"primary",class:S.colorVariants.solid.primary},{variant:"solid",color:"secondary",class:S.colorVariants.solid.secondary},{variant:"solid",color:"success",class:S.colorVariants.solid.success},{variant:"solid",color:"warning",class:S.colorVariants.solid.warning},{variant:"solid",color:"danger",class:S.colorVariants.solid.danger},{variant:"shadow",color:"default",class:S.colorVariants.shadow.default},{variant:"shadow",color:"primary",class:S.colorVariants.shadow.primary},{variant:"shadow",color:"secondary",class:S.colorVariants.shadow.secondary},{variant:"shadow",color:"success",class:S.colorVariants.shadow.success},{variant:"shadow",color:"warning",class:S.colorVariants.shadow.warning},{variant:"shadow",color:"danger",class:S.colorVariants.shadow.danger},{variant:"bordered",color:"default",class:S.colorVariants.bordered.default},{variant:"bordered",color:"primary",class:S.colorVariants.bordered.primary},{variant:"bordered",color:"secondary",class:S.colorVariants.bordered.secondary},{variant:"bordered",color:"success",class:S.colorVariants.bordered.success},{variant:"bordered",color:"warning",class:S.colorVariants.bordered.warning},{variant:"bordered",color:"danger",class:S.colorVariants.bordered.danger},{variant:"flat",color:"default",class:S.colorVariants.flat.default},{variant:"flat",color:"primary",class:S.colorVariants.flat.primary},{variant:"flat",color:"secondary",class:S.colorVariants.flat.secondary},{variant:"flat",color:"success",class:S.colorVariants.flat.success},{variant:"flat",color:"warning",class:S.colorVariants.flat.warning},{variant:"flat",color:"danger",class:S.colorVariants.flat.danger},{variant:"faded",color:"default",class:S.colorVariants.faded.default},{variant:"faded",color:"primary",class:S.colorVariants.faded.primary},{variant:"faded",color:"secondary",class:S.colorVariants.faded.secondary},{variant:"faded",color:"success",class:S.colorVariants.faded.success},{variant:"faded",color:"warning",class:S.colorVariants.faded.warning},{variant:"faded",color:"danger",class:S.colorVariants.faded.danger},{variant:"light",color:"default",class:[S.colorVariants.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[S.colorVariants.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[S.colorVariants.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[S.colorVariants.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[S.colorVariants.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[S.colorVariants.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[S.colorVariants.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[S.colorVariants.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[S.colorVariants.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[S.colorVariants.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[S.colorVariants.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[S.colorVariants.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:_.collapseAdjacentVariantBorders.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:_.collapseAdjacentVariantBorders.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:_.collapseAdjacentVariantBorders.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:_.collapseAdjacentVariantBorders.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:_.collapseAdjacentVariantBorders.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:_.collapseAdjacentVariantBorders.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"hover:opacity-80"}]});function Tr(e={}){const[t,n]=p.useState([]),s=p.useCallback(i=>{const o=i.target,a=Math.max(o.clientWidth,o.clientHeight);n(c=>[...c,{key:wr(c.length.toString()),size:a,x:i.x-a/2,y:i.y-a/2}])},[]),r=p.useCallback(i=>{n(o=>o.filter(a=>a.key!==i))},[]);return{ripples:t,onClear:r,onPress:s,...e}}function Vr(e){const{id:t,classNames:n,className:s,asChild:r,children:i,isLoading:o=!1,disabled:a=!1,isIconOnly:c=!1,onClick:u,startContent:l,endContent:d,spinner:f=null,spinnerPlacement:h="start",type:g="button",...x}=e,V=We.useDOMRef(e.ref),m=p.useId(),A=t||m,{onPress:b,onClear:C,ripples:y}=Tr(),w=p.useMemo(()=>Ln({size:e.size,color:e.color,variant:e.variant,radius:e.radius,fullWidth:e.fullWidth,isDisabled:a||o,disableAnimation:e.disableAnimation,isIconOnly:c,isInGroup:e.isInGroup,className:s}),[e,s,a,o,c]),M=p.useCallback(B=>{if(a){B.preventDefault();return}u==null||u(B)},[u,a]),T=B=>p.isValidElement(B)?p.cloneElement(B,{}):null,E=T(l),F=T(d),W=B=>{const Le=B.currentTarget.getBoundingClientRect(),I={target:B.currentTarget,x:B.clientX-Le.left,y:B.clientY-Le.top};b(I)},xe=()=>({className:yr.clsx(w,n==null?void 0:n.base),"data-disabled":We.dataAttr(a),"data-loading":We.dataAttr(o),onClick:M,onPointerDown:W,"data-slot":"button","aria-disabled":a,id:A,type:g,...x}),je=p.useCallback(()=>({ripples:y,onClear:C}),[y,C]),we=r?br.Slot:"button";return{domRef:V,isIconOnly:c,Component:we,children:i,isLoading:o,spinner:f,spinnerPlacement:h,startContent:E,endContent:F,getButtonProps:xe,getRippleProps:je}}const wt=p.createContext({});function Tt(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const Vt=typeof window<"u",Kn=Vt?p.useLayoutEffect:p.useEffect,Fe=p.createContext(null);function $n(e,t){e.indexOf(t)===-1&&e.push(t)}function Wn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const z=(e,t,n)=>n>t?t:n<e?e:n;let re=()=>{};exports.invariant=()=>{};process.env.NODE_ENV!=="production"&&(re=(e,t)=>{},exports.invariant=(e,t)=>{if(!e)throw new Error(t)});const $={},Gn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function zn(e){return typeof e=="object"&&e!==null}const _n=e=>/^0[^.\s]+$/u.test(e);function St(e){let t;return()=>(t===void 0&&(t=e()),t)}const J=e=>e,Sr=(e,t)=>n=>t(e(n)),ye=(...e)=>e.reduce(Sr),At=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class Ct{constructor(){this.subscriptions=[]}add(t){return $n(this.subscriptions,t),()=>Wn(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i<r;i++){const o=this.subscriptions[i];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const j=e=>e*1e3,L=e=>e/1e3;function Un(e,t){return t?e*(1e3/t):0}const nn=new Set;function Mt(e,t,n){e||nn.has(t)||nn.add(t)}const Hn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ar=1e-7,Cr=12;function Mr(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=Hn(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>Ar&&++a<Cr);return o}function be(e,t,n,s){if(e===t&&n===s)return J;const r=i=>Mr(i,0,1,e,n);return i=>i===0||i===1?i:Hn(r(i),t,s)}const Yn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qn=e=>t=>1-e(1-t),Xn=be(.33,1.53,.69,.99),Pt=qn(Xn),Zn=Yn(Pt),Jn=e=>(e*=2)<1?.5*Pt(e):.5*(2-Math.pow(2,-10*(e-1))),Rt=e=>1-Math.sin(Math.acos(e)),Qn=qn(Rt),es=Yn(Rt),Pr=be(.42,0,1,1),Rr=be(0,0,.58,1),ts=be(.42,0,.58,1),Dr=e=>Array.isArray(e)&&typeof e[0]!="number",ns=e=>Array.isArray(e)&&typeof e[0]=="number",sn={linear:J,easeIn:Pr,easeInOut:ts,easeOut:Rr,circIn:Rt,circInOut:es,circOut:Qn,backIn:Pt,backInOut:Zn,backOut:Xn,anticipate:Jn},Er=e=>typeof e=="string",rn=e=>{if(ns(e)){exports.invariant(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,s,r]=e;return be(t,n,s,r)}else if(Er(e))return exports.invariant(sn[e]!==void 0,`Invalid easing type '${e}'`),sn[e];return e},Te=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ir(e,t){let n=new Set,s=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){o.has(l)&&(u.schedule(l),e()),l(a)}const u={schedule:(l,d=!1,f=!1)=>{const g=f&&r?n:s;return d&&o.add(l),g.has(l)||g.add(l),l},cancel:l=>{s.delete(l),o.delete(l)},process:l=>{if(a=l,r){i=!0;return}r=!0,[n,s]=[s,n],n.forEach(c),n.clear(),r=!1,i&&(i=!1,u.process(l))}};return u}const Fr=40;function ss(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Te.reduce((b,C)=>(b[C]=Ir(i),b),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:d,preRender:f,render:h,postRender:g}=o,x=()=>{const b=$.useManualTiming?r.timestamp:performance.now();n=!1,$.useManualTiming||(r.delta=s?1e3/60:Math.max(Math.min(b-r.timestamp,Fr),1)),r.timestamp=b,r.isProcessing=!0,a.process(r),c.process(r),u.process(r),l.process(r),d.process(r),f.process(r),h.process(r),g.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(x))},V=()=>{n=!0,s=!0,r.isProcessing||e(x)};return{schedule:Te.reduce((b,C)=>{const y=o[C];return b[C]=(w,M=!1,T=!1)=>(n||V(),y.schedule(w,M,T)),b},{}),cancel:b=>{for(let C=0;C<Te.length;C++)o[Te[C]].cancel(b)},state:r,steps:o}}const{schedule:N,cancel:Me,state:de,steps:Or}=ss(typeof requestAnimationFrame<"u"?requestAnimationFrame:J,!0);let Ae;function kr(){Ae=void 0}const k={now:()=>(Ae===void 0&&k.set(de.isProcessing||$.useManualTiming?de.timestamp:performance.now()),Ae),set:e=>{Ae=e,queueMicrotask(kr)}},rs=e=>t=>typeof t=="string"&&t.startsWith(e),Dt=rs("--"),Nr=rs("var(--"),Et=e=>Nr(e)?Br.test(e.split("/*")[0].trim()):!1,Br=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ie={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},fe={...ie,transform:e=>z(0,1,e)},Ve={...ie,default:1},ue=e=>Math.round(e*1e5)/1e5,It=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jr(e){return e==null}const Lr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ft=(e,t)=>n=>!!(typeof n=="string"&&Lr.test(n)&&n.startsWith(e)||t&&!jr(n)&&Object.prototype.hasOwnProperty.call(n,t)),is=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(It);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Kr=e=>z(0,255,e),Ge={...ie,transform:e=>Math.round(Kr(e))},H={test:Ft("rgb","red"),parse:is("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Ge.transform(e)+", "+Ge.transform(t)+", "+Ge.transform(n)+", "+ue(fe.transform(s))+")"};function $r(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Ze={test:Ft("#"),parse:$r,transform:H.transform},ve=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),G=ve("deg"),q=ve("%"),v=ve("px"),Wr=ve("vh"),Gr=ve("vw"),on={...q,parse:e=>q.parse(e)/100,transform:e=>q.transform(e*100)},te={test:Ft("hsl","hue"),parse:is("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+q.transform(ue(t))+", "+q.transform(ue(n))+", "+ue(fe.transform(s))+")"},D={test:e=>H.test(e)||Ze.test(e)||te.test(e),parse:e=>H.test(e)?H.parse(e):te.test(e)?te.parse(e):Ze.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?H.transform(e):te.transform(e),getAnimatableNone:e=>{const t=D.parse(e);return t.alpha=0,D.transform(t)}},zr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _r(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(It))==null?void 0:t.length)||0)+(((n=e.match(zr))==null?void 0:n.length)||0)>0}const os="number",as="color",Ur="var",Hr="var(",an="${}",Yr=/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 he(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(Yr,c=>(D.test(c)?(s.color.push(i),r.push(as),n.push(D.parse(c))):c.startsWith(Hr)?(s.var.push(i),r.push(Ur),n.push(c)):(s.number.push(i),r.push(os),n.push(parseFloat(c))),++i,an)).split(an);return{values:n,split:a,indexes:s,types:r}}function ls(e){return he(e).values}function cs(e){const{split:t,types:n}=he(e),s=t.length;return r=>{let i="";for(let o=0;o<s;o++)if(i+=t[o],r[o]!==void 0){const a=n[o];a===os?i+=ue(r[o]):a===as?i+=D.transform(r[o]):i+=r[o]}return i}}const qr=e=>typeof e=="number"?0:D.test(e)?D.getAnimatableNone(e):e;function Xr(e){const t=ls(e);return cs(e)(t.map(qr))}const Q={test:_r,parse:ls,createTransformer:cs,getAnimatableNone:Xr};function ze(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Zr({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=ze(c,a,e+1/3),i=ze(c,a,e),o=ze(c,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function Pe(e,t){return n=>n>0?t:e}const oe=(e,t,n)=>e+(t-e)*n,_e=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},Jr=[Ze,H,te],Qr=e=>Jr.find(t=>t.test(e));function ln(e){const t=Qr(e);if(re(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===te&&(n=Zr(n)),n}const cn=(e,t)=>{const n=ln(e),s=ln(t);if(!n||!s)return Pe(e,t);const r={...n};return i=>(r.red=_e(n.red,s.red,i),r.green=_e(n.green,s.green,i),r.blue=_e(n.blue,s.blue,i),r.alpha=oe(n.alpha,s.alpha,i),H.transform(r))},Je=new Set(["none","hidden"]);function ei(e,t){return Je.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ti(e,t){return n=>oe(e,t,n)}function Ot(e){return typeof e=="number"?ti:typeof e=="string"?Et(e)?Pe:D.test(e)?cn:ri:Array.isArray(e)?us:typeof e=="object"?D.test(e)?cn:ni:Pe}function us(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>Ot(i)(i,t[o]));return i=>{for(let o=0;o<s;o++)n[o]=r[o](i);return n}}function ni(e,t){const n={...e,...t},s={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(s[r]=Ot(e[r])(e[r],t[r]));return r=>{for(const i in s)n[i]=s[i](r);return n}}function si(e,t){const n=[],s={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const i=t.types[r],o=e.indexes[i][s[i]],a=e.values[o]??0;n[r]=a,s[i]++}return n}const ri=(e,t)=>{const n=Q.createTransformer(t),s=he(e),r=he(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Je.has(e)&&!r.values.length||Je.has(t)&&!s.values.length?ei(e,t):ye(us(si(s,r),r.values),n):(re(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Pe(e,t))};function ds(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?oe(e,t,n):Ot(e)(e,t)}const ii=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>N.update(t,n),stop:()=>Me(t),now:()=>de.isProcessing?de.timestamp:k.now()}},fs=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)s+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Re=2e4;function kt(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Re;)t+=n,s=e.next(t);return t>=Re?1/0:t}function oi(e,t=100,n){const s=n({...e,keyframes:[0,t]}),r=Math.min(kt(s),Re);return{type:"keyframes",ease:i=>s.next(r*i).value/t,duration:L(r)}}const ai=5;function hs(e,t,n){const s=Math.max(t-ai,0);return Un(n-e(s),t-s)}const P={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},Ue=.001;function li({duration:e=P.duration,bounce:t=P.bounce,velocity:n=P.velocity,mass:s=P.mass}){let r,i;re(e<=j(P.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=z(P.minDamping,P.maxDamping,o),e=z(P.minDuration,P.maxDuration,L(e)),o<1?(r=u=>{const l=u*o,d=l*e,f=l-n,h=Qe(u,o),g=Math.exp(-d);return Ue-f/h*g},i=u=>{const d=u*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,g=Math.exp(-d),x=Qe(Math.pow(u,2),o);return(-r(u)+Ue>0?-1:1)*((f-h)*g)/x}):(r=u=>{const l=Math.exp(-u*e),d=(u-n)*e+1;return-Ue+l*d},i=u=>{const l=Math.exp(-u*e),d=(n-u)*(e*e);return l*d});const a=5/e,c=ui(r,i,a);if(e=j(e),isNaN(c))return{stiffness:P.stiffness,damping:P.damping,duration:e};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:e}}}const ci=12;function ui(e,t,n){let s=n;for(let r=1;r<ci;r++)s=s-e(s)/t(s);return s}function Qe(e,t){return e*Math.sqrt(1-t*t)}const di=["duration","bounce"],fi=["stiffness","damping","mass"];function un(e,t){return t.some(n=>e[n]!==void 0)}function hi(e){let t={velocity:P.velocity,stiffness:P.stiffness,damping:P.damping,mass:P.mass,isResolvedFromDuration:!1,...e};if(!un(e,fi)&&un(e,di))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*z(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:P.mass,stiffness:r,damping:i}}else{const n=li(e);t={...t,...n,mass:P.mass},t.isResolvedFromDuration=!0}return t}function De(e=P.visualDuration,t=P.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:u,mass:l,duration:d,velocity:f,isResolvedFromDuration:h}=hi({...n,velocity:-L(n.velocity||0)}),g=f||0,x=u/(2*Math.sqrt(c*l)),V=o-i,m=L(Math.sqrt(c/l)),A=Math.abs(V)<5;s||(s=A?P.restSpeed.granular:P.restSpeed.default),r||(r=A?P.restDelta.granular:P.restDelta.default);let b;if(x<1){const y=Qe(m,x);b=w=>{const M=Math.exp(-x*m*w);return o-M*((g+x*m*V)/y*Math.sin(y*w)+V*Math.cos(y*w))}}else if(x===1)b=y=>o-Math.exp(-m*y)*(V+(g+m*V)*y);else{const y=m*Math.sqrt(x*x-1);b=w=>{const M=Math.exp(-x*m*w),T=Math.min(y*w,300);return o-M*((g+x*m*V)*Math.sinh(T)+y*V*Math.cosh(T))/y}}const C={calculatedDuration:h&&d||null,next:y=>{const w=b(y);if(h)a.done=y>=d;else{let M=y===0?g:0;x<1&&(M=y===0?j(g):hs(b,y,w));const T=Math.abs(M)<=s,E=Math.abs(o-w)<=r;a.done=T&&E}return a.value=a.done?o:w,a},toString:()=>{const y=Math.min(kt(C),Re),w=fs(M=>C.next(y*M).value,y,30);return y+"ms "+w},toTransition:()=>{}};return C}De.applyToOptions=e=>{const t=oi(e,100,De);return e.ease=t.ease,e.duration=j(t.duration),e.type="keyframes",e};function et({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:u=.5,restSpeed:l}){const d=e[0],f={done:!1,value:d},h=T=>a!==void 0&&T<a||c!==void 0&&T>c,g=T=>a===void 0?c:c===void 0||Math.abs(a-T)<Math.abs(c-T)?a:c;let x=n*t;const V=d+x,m=o===void 0?V:o(V);m!==V&&(x=m-d);const A=T=>-x*Math.exp(-T/s),b=T=>m+A(T),C=T=>{const E=A(T),F=b(T);f.done=Math.abs(E)<=u,f.value=f.done?m:F};let y,w;const M=T=>{h(f.value)&&(y=T,w=De({keyframes:[f.value,g(f.value)],velocity:hs(b,T,f.value),damping:r,stiffness:i,restDelta:u,restSpeed:l}))};return M(0),{calculatedDuration:null,next:T=>{let E=!1;return!w&&y===void 0&&(E=!0,C(T),M(T)),y!==void 0&&T>=y?w.next(T-y):(!E&&C(T),f)}}}function pi(e,t,n){const s=[],r=n||$.mix||ds,i=e.length-1;for(let o=0;o<i;o++){let a=r(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||J:t;a=ye(c,a)}s.push(a)}return s}function mi(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const i=e.length;if(exports.invariant(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=pi(t,s,r),c=a.length,u=l=>{if(o&&l<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(l<e[d+1]);d++);const f=At(e[d],e[d+1],l);return a[d](f)};return n?l=>u(z(e[0],e[i-1],l)):u}function gi(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=At(0,t,s);e.push(oe(n,1,r))}}function yi(e){const t=[0];return gi(t,e.length-1),t}function bi(e,t){return e.map(n=>n*t)}function vi(e,t){return e.map(()=>t||ts).splice(0,e.length-1)}function ne({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=Dr(s)?s.map(rn):rn(s),i={done:!1,value:t[0]},o=bi(n&&n.length===t.length?n:yi(t),e),a=mi(o,t,{ease:Array.isArray(r)?r:vi(t,r)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const xi=e=>e!==null;function Nt(e,{repeat:t,repeatType:n="loop"},s,r=1){const i=e.filter(xi),a=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||s===void 0?i[a]:s}const wi={decay:et,inertia:et,tween:ne,keyframes:ne,spring:De};function ps(e){typeof e.type=="string"&&(e.type=wi[e.type])}class Bt{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Ti=e=>e/100;class jt extends Bt{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,r;const{motionValue:n}=this.options;n&&n.updatedAt!==k.now()&&this.tick(k.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(s=this.options).onStop)==null||r.call(s))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ps(t);const{type:n=ne,repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const c=n||ne;process.env.NODE_ENV!=="production"&&c!==ne&&exports.invariant(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`),c!==ne&&typeof a[0]!="number"&&(this.mixKeyframes=ye(Ti,ds(a[0],a[1])),a=[0,100]);const u=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=kt(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(s+1)-r,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:d,repeatType:f,repeatDelay:h,type:g,onUpdate:x,finalKeyframe:V}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?m<0:m>r;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let b=this.currentTime,C=s;if(d){const T=Math.min(this.currentTime,r)/a;let E=Math.floor(T),F=T%1;!F&&T>=1&&(F=1),F===1&&E--,E=Math.min(E,d+1),!!(E%2)&&(f==="reverse"?(F=1-F,h&&(F-=h/a)):f==="mirror"&&(C=o)),b=z(0,1,F)*a}const y=A?{done:!1,value:l[0]}:C.next(b);i&&(y.value=i(y.value));let{done:w}=y;!A&&c!==null&&(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return M&&g!==et&&(y.value=Nt(l,this.options,V,this.speed)),x&&x(y.value),M&&this.finish(),y}then(t,n){return this.finished.then(t,n)}get duration(){return L(this.calculatedDuration)}get time(){return L(this.currentTime)}set time(t){var n;t=j(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(k.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=L(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=ii,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(r=this.options).onPlay)==null||i.call(r);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(k.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Vi(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Y=e=>e*180/Math.PI,tt=e=>{const t=Y(Math.atan2(e[1],e[0]));return nt(t)},Si={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:tt,rotateZ:tt,skewX:e=>Y(Math.atan(e[1])),skewY:e=>Y(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nt=e=>(e=e%360,e<0&&(e+=360),e),dn=tt,fn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ai={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fn,scaleY:hn,scale:e=>(fn(e)+hn(e))/2,rotateX:e=>nt(Y(Math.atan2(e[6],e[5]))),rotateY:e=>nt(Y(Math.atan2(-e[2],e[0]))),rotateZ:dn,rotate:dn,skewX:e=>Y(Math.atan(e[4])),skewY:e=>Y(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function st(e){return e.includes("scale")?1:0}function rt(e,t){if(!e||e==="none")return st(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,r;if(n)s=Ai,r=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Si,r=a}if(!r)return st(t);const i=s[t],o=r[1].split(",").map(Mi);return typeof i=="function"?i(o):o[i]}const Ci=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return rt(n,t)};function Mi(e){return parseFloat(e.trim())}const ae=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],le=new Set(ae),pn=e=>e===ie||e===v,Pi=new Set(["x","y","z"]),Ri=ae.filter(e=>!Pi.has(e));function Di(e){const t=[];return Ri.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const X={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>rt(t,"x"),y:(e,{transform:t})=>rt(t,"y")};X.translateX=X.x;X.translateY=X.y;const Z=new Set;let it=!1,ot=!1,at=!1;function ms(){if(ot){const e=Array.from(Z).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=Di(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))==null||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ot=!1,it=!1,Z.forEach(e=>e.complete(at)),Z.clear()}function gs(){Z.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ot=!0)})}function Ei(){at=!0,gs(),ms(),at=!1}class Lt{constructor(t,n,s,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Z.add(this),it||(it=!0,N.read(gs),N.resolveKeyframes(ms))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;if(t[0]===null){const i=r==null?void 0:r.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(s&&n){const a=s.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),r&&i===void 0&&r.set(t[0])}Vi(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Z.delete(this)}cancel(){this.state==="scheduled"&&(Z.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ii=e=>e.startsWith("--");function Fi(e,t,n){Ii(t)?e.style.setProperty(t,n):e.style[t]=n}const Oi=St(()=>window.ScrollTimeline!==void 0),ki={};function Ni(e,t){const n=St(e);return()=>ki[t]??n()}const ys=Ni(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ce=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,mn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ce([0,.65,.55,1]),circOut:ce([.55,0,1,.45]),backIn:ce([.31,.01,.66,-.59]),backOut:ce([.33,1.53,.69,.99])};function bs(e,t){if(e)return typeof e=="function"?ys()?fs(e,t):"ease-out":ns(e)?ce(e):Array.isArray(e)?e.map(n=>bs(n,t)||mn.easeOut):mn[e]}function Bi(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[t]:n};c&&(l.offset=c);const d=bs(a,r);Array.isArray(d)&&(l.easing=d);const f={delay:s,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(l,f)}function vs(e){return typeof e=="function"&&"applyToOptions"in e}function ji({type:e,...t}){return vs(e)&&ys()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Li extends Bt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:s,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,exports.invariant(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const u=ji(t);this.animation=Bi(n,s,r,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const l=Nt(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):Fi(n,s,l),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,s;const t=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return L(Number(t))}get time(){return L(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=j(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Oi()?(this.animation.timeline=t,J):n(this)}}const xs={anticipate:Jn,backInOut:Zn,circInOut:es};function Ki(e){return e in xs}function $i(e){typeof e.ease=="string"&&Ki(e.ease)&&(e.ease=xs[e.ease])}const gn=10;class Wi extends Li{constructor(t){$i(t),ps(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:r,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new jt({...o,autoplay:!1}),c=j(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-gn).value,a.sample(c).value,gn),a.stop()}}const yn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Q.test(e)||e==="0")&&!e.startsWith("url("));function Gi(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function zi(e,t,n,s){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=yn(r,t),a=yn(i,t);return re(o===a,`You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`),!o||!a?!1:Gi(e)||(n==="spring"||vs(n))&&s}function Kt(e){return zn(e)&&"offsetHeight"in e}const _i=new Set(["opacity","clipPath","filter","transform"]),Ui=St(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Hi(e){var u;const{motionValue:t,name:n,repeatDelay:s,repeatType:r,damping:i,type:o}=e;if(!Kt((u=t==null?void 0:t.owner)==null?void 0:u.current))return!1;const{onUpdate:a,transformTemplate:c}=t.owner.getProps();return Ui()&&n&&_i.has(n)&&(n!=="transform"||!c)&&!a&&!s&&r!=="mirror"&&i!==0&&o!=="inertia"}const Yi=40;class qi extends Bt{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:c,motionValue:u,element:l,...d}){var g;super(),this.stop=()=>{var x,V;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(V=this.keyframeResolver)==null||V.cancel()},this.createdAt=k.now();const f={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,name:c,motionValue:u,element:l,...d},h=(l==null?void 0:l.KeyframeResolver)||Lt;this.keyframeResolver=new h(a,(x,V,m)=>this.onKeyframesResolved(x,V,f,!m),c,u,l),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(t,n,s,r){this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=k.now(),zi(t,i,o,a)||(($.instantAnimations||!c)&&(l==null||l(Nt(t,s,n))),t[0]=t[t.length-1],s.duration=0,s.repeat=0);const f={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>Yi?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},h=!u&&Hi(f)?new Wi({...f,element:f.motionValue.owner.current}):new jt(f);h.finished.then(()=>this.notifyFinished()).catch(J),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(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Ei()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const Xi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Zi(e){const t=Xi.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}const Ji=4;function ws(e,t,n=1){exports.invariant(n<=Ji,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[s,r]=Zi(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return Gn(o)?parseFloat(o):o}return Et(r)?ws(r,t,n+1):r}function $t(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Ts=new Set(["width","height","top","left","right","bottom",...ae]),Qi={test:e=>e==="auto",parse:e=>e},Vs=e=>t=>t.test(e),Ss=[ie,v,q,G,Gr,Wr,Qi],bn=e=>Ss.find(Vs(e));function eo(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||_n(e):!0}const to=new Set(["brightness","contrast","saturate","opacity"]);function no(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(It)||[];if(!s)return e;const r=n.replace(s,"");let i=to.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const so=/\b([a-z-]*)\(.*?\)/gu,lt={...Q,getAnimatableNone:e=>{const t=e.match(so);return t?t.map(no).join(" "):e}},vn={...ie,transform:Math.round},ro={rotate:G,rotateX:G,rotateY:G,rotateZ:G,scale:Ve,scaleX:Ve,scaleY:Ve,scaleZ:Ve,skew:G,skewX:G,skewY:G,distance:v,translateX:v,translateY:v,translateZ:v,x:v,y:v,z:v,perspective:v,transformPerspective:v,opacity:fe,originX:on,originY:on,originZ:v},Wt={borderWidth:v,borderTopWidth:v,borderRightWidth:v,borderBottomWidth:v,borderLeftWidth:v,borderRadius:v,radius:v,borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomRightRadius:v,borderBottomLeftRadius:v,width:v,maxWidth:v,height:v,maxHeight:v,top:v,right:v,bottom:v,left:v,padding:v,paddingTop:v,paddingRight:v,paddingBottom:v,paddingLeft:v,margin:v,marginTop:v,marginRight:v,marginBottom:v,marginLeft:v,backgroundPositionX:v,backgroundPositionY:v,...ro,zIndex:vn,fillOpacity:fe,strokeOpacity:fe,numOctaves:vn},io={...Wt,color:D,backgroundColor:D,outlineColor:D,fill:D,stroke:D,borderColor:D,borderTopColor:D,borderRightColor:D,borderBottomColor:D,borderLeftColor:D,filter:lt,WebkitFilter:lt},As=e=>io[e];function Cs(e,t){let n=As(e);return n!==lt&&(n=Q),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const oo=new Set(["auto","none","0"]);function ao(e,t,n){let s=0,r;for(;s<e.length&&!r;){const i=e[s];typeof i=="string"&&!oo.has(i)&&he(i).values.length&&(r=e[s]),s++}if(r&&n)for(const i of t)e[i]=Cs(n,r)}class lo extends Lt{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),Et(u))){const l=ws(u,n.current);l!==void 0&&(t[c]=l),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ts.has(s)||t.length!==2)return;const[r,i]=t,o=bn(r),a=bn(i);if(o!==a)if(pn(o)&&pn(a))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else X[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let r=0;r<t.length;r++)(t[r]===null||eo(t[r]))&&s.push(r);s.length&&ao(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=X[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(s,r).jump(r,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=s.length-1,o=s[i];s[i]=X[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function co(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const r=(n==null?void 0:n[e])??s.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const Ms=(e,t)=>t&&typeof e=="number"?t.transform(e):e,xn=30,uo=e=>!isNaN(parseFloat(e));class fo{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{var o,a;const i=k.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();r&&((a=this.events.renderRequest)==null||a.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=k.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uo(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Mt(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ct);const s=this.events[t].add(n);return t==="change"?()=>{s(),N.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=k.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xn);return Un(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pe(e,t){return new fo(e,t)}const{schedule:Ps}=ss(queueMicrotask,!1),ct={x:!1,y:!1};function Rs(){return ct.x||ct.y}function Ds(e,t){const n=co(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function wn(e){return!(e.pointerType==="touch"||Rs())}function ho(e,t,n={}){const[s,r,i]=Ds(e,n),o=a=>{if(!wn(a))return;const{target:c}=a,u=t(c,a);if(typeof u!="function"||!c)return;const l=d=>{wn(d)&&(u(d),c.removeEventListener("pointerleave",l))};c.addEventListener("pointerleave",l,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}const Es=(e,t)=>t?e===t?!0:Es(e,t.parentElement):!1,Gt=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,po=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mo(e){return po.has(e.tagName)||e.tabIndex!==-1}const Ce=new WeakSet;function Tn(e){return t=>{t.key==="Enter"&&e(t)}}function He(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const go=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Tn(()=>{if(Ce.has(n))return;He(n,"down");const r=Tn(()=>{He(n,"up")}),i=()=>He(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Vn(e){return Gt(e)&&!Rs()}function yo(e,t,n={}){const[s,r,i]=Ds(e,n),o=a=>{const c=a.currentTarget;if(!Vn(a))return;Ce.add(c);const u=t(c,a),l=(h,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Ce.has(c)&&Ce.delete(c),Vn(h)&&typeof u=="function"&&u(h,{success:g})},d=h=>{l(h,c===window||c===document||n.useGlobalTarget||Es(c,h.target))},f=h=>{l(h,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),Kt(a)&&(a.addEventListener("focus",u=>go(u,r)),!mo(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}const O=e=>!!(e&&e.getVelocity),bo=[...Ss,D,Q],vo=e=>bo.find(Vs(e)),zt=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class xo extends xt.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,r=Kt(s)&&s.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function wo({children:e,isPresent:t,anchorX:n}){const s=p.useId(),r=p.useRef(null),i=p.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=p.useContext(zt);return p.useInsertionEffect(()=>{const{width:a,height:c,top:u,left:l,right:d}=i.current;if(t||!r.current||!a||!c)return;const f=n==="left"?`left: ${l}`:`right: ${d}`;r.current.dataset.motionPopId=s;const h=document.createElement("style");return o&&(h.nonce=o),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(`
2
- [data-motion-pop-id="${s}"] {
3
- position: absolute !important;
4
- width: ${a}px !important;
5
- height: ${c}px !important;
6
- ${f}px !important;
7
- top: ${u}px !important;
8
- }
9
- `),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[t]),R.jsxRuntimeExports.jsx(xo,{isPresent:t,childRef:r,sizeRef:i,children:xt.cloneElement(e,{ref:r})})}const To=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=Tt(Vo),u=p.useId();let l=!0,d=p.useMemo(()=>(l=!1,{id:u,initial:t,isPresent:n,custom:r,onExitComplete:f=>{c.set(f,!0);for(const h of c.values())if(!h)return;s&&s()},register:f=>(c.set(f,!1),()=>c.delete(f))}),[n,c,s]);return i&&l&&(d={...d}),p.useMemo(()=>{c.forEach((f,h)=>c.set(h,!1))},[n]),xt.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),o==="popLayout"&&(e=R.jsxRuntimeExports.jsx(wo,{isPresent:n,anchorX:a,children:e})),R.jsxRuntimeExports.jsx(Fe.Provider,{value:d,children:e})};function Vo(){return new Map}function Is(e=!0){const t=p.useContext(Fe);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=p.useId();p.useEffect(()=>{if(e)return r(i)},[e]);const o=p.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const Se=e=>e.key||"";function Sn(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const Fs=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,u]=Is(o),l=p.useMemo(()=>Sn(e),[e]),d=o&&!c?[]:l.map(Se),f=p.useRef(!0),h=p.useRef(l),g=Tt(()=>new Map),[x,V]=p.useState(l),[m,A]=p.useState(l);Kn(()=>{f.current=!1,h.current=l;for(let y=0;y<m.length;y++){const w=Se(m[y]);d.includes(w)?g.delete(w):g.get(w)!==!0&&g.set(w,!1)}},[m,d.length,d.join("-")]);const b=[];if(l!==x){let y=[...l];for(let w=0;w<m.length;w++){const M=m[w],T=Se(M);d.includes(T)||(y.splice(w,0,M),b.push(M))}return i==="wait"&&b.length&&(y=b),A(Sn(y)),V(l),null}process.env.NODE_ENV!=="production"&&i==="wait"&&m.length>1;const{forceRender:C}=p.useContext(wt);return R.jsxRuntimeExports.jsx(R.jsxRuntimeExports.Fragment,{children:m.map(y=>{const w=Se(y),M=o&&!c?!1:l===m||d.includes(w),T=()=>{if(g.has(w))g.set(w,!0);else return;let E=!0;g.forEach(F=>{F||(E=!1)}),E&&(C==null||C(),A(h.current),o&&(u==null||u()),s&&s())};return R.jsxRuntimeExports.jsx(To,{isPresent:M,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,onExitComplete:M?void 0:T,anchorX:a,children:y},w)})})},_t=p.createContext({strict:!1}),An={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"]},se={};for(const e in An)se[e]={isEnabled:t=>An[e].some(n=>!!t[n])};function ut(e){for(const t in e)se[t]={...se[t],...e[t]}}function So({children:e,features:t,strict:n=!1}){const[,s]=p.useState(!Ye(t)),r=p.useRef(void 0);if(!Ye(t)){const{renderer:i,...o}=t;r.current=i,ut(o)}return p.useEffect(()=>{Ye(t)&&t().then(({renderer:i,...o})=>{ut(o),r.current=i,s(!0)})},[]),R.jsxRuntimeExports.jsx(_t.Provider,{value:{renderer:r.current,strict:n},children:e})}function Ye(e){return typeof e=="function"}const Ao=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ee(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ao.has(e)}let Os=e=>!Ee(e);function Co(e){typeof e=="function"&&(Os=t=>t.startsWith("on")?!Ee(t):e(t))}try{Co(require("@emotion/is-prop-valid").default)}catch{}function Mo(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(Os(r)||n===!0&&Ee(r)||!t&&!Ee(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function ks(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>(process.env.NODE_ENV!=="production"&&Mt(!1,"motion() is deprecated. Use motion.create() instead."),e(...s));return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Oe=p.createContext({});function ke(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function me(e){return typeof e=="string"||Array.isArray(e)}const Ut=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ht=["initial",...Ut];function Ne(e){return ke(e.animate)||Ht.some(t=>me(e[t]))}function Ns(e){return!!(Ne(e)||e.variants)}function Po(e,t){if(Ne(e)){const{initial:n,animate:s}=e;return{initial:n===!1||me(n)?n:void 0,animate:me(s)?s:void 0}}return e.inherit!==!1?t:{}}function Ro(e){const{initial:t,animate:n}=Po(e,p.useContext(Oe));return p.useMemo(()=>({initial:t,animate:n}),[Cn(t),Cn(n)])}function Cn(e){return Array.isArray(e)?e.join(" "):e}const Do=Symbol.for("motionComponentSymbol");function Yt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Eo(e,t,n){return p.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Yt(n)&&(n.current=s))},[t])}const qt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Io="framerAppearId",Bs="data-"+qt(Io),js=p.createContext({});function Fo(e,t,n,s,r){var x,V;const{visualElement:i}=p.useContext(Oe),o=p.useContext(_t),a=p.useContext(Fe),c=p.useContext(zt).reducedMotion,u=p.useRef(null);s=s||o.renderer,!u.current&&s&&(u.current=s(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const l=u.current,d=p.useContext(js);l&&!l.projection&&r&&(l.type==="html"||l.type==="svg")&&Oo(u.current,n,r,d);const f=p.useRef(!1);p.useInsertionEffect(()=>{l&&f.current&&l.update(n,a)});const h=n[Bs],g=p.useRef(!!h&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,h))&&((V=window.MotionHasOptimisedAnimation)==null?void 0:V.call(window,h)));return Kn(()=>{l&&(f.current=!0,window.MotionIsMounted=!0,l.updateFeatures(),Ps.render(l.render),g.current&&l.animationState&&l.animationState.animateChanges())}),p.useEffect(()=>{l&&(!g.current&&l.animationState&&l.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,h)}),g.current=!1))}),l}function Oo(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutCrossfade:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ls(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&Yt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,crossfade:l,layoutScroll:c,layoutRoot:u})}function Ls(e){if(e)return e.options.allowProjection!==!1?e.projection:Ls(e.parent)}function ko({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){e&&ut(e);function i(a,c){let u;const l={...p.useContext(zt),...a,layoutId:No(a)},{isStatic:d}=l,f=Ro(a),h=s(a,d);if(!d&&Vt){Bo(l,e);const g=jo(l);u=g.MeasureLayout,f.visualElement=Fo(r,h,l,t,g.ProjectionNode)}return R.jsxRuntimeExports.jsxs(Oe.Provider,{value:f,children:[u&&f.visualElement?R.jsxRuntimeExports.jsx(u,{visualElement:f.visualElement,...l}):null,n(r,a,Eo(h,f.visualElement,c),h,d,f.visualElement)]})}i.displayName=`motion.${typeof r=="string"?r:`create(${r.displayName??r.name??""})`}`;const o=p.forwardRef(i);return o[Do]=r,o}function No({layoutId:e}){const t=p.useContext(wt).id;return t&&e!==void 0?t+"-"+e:e}function Bo(e,t){const n=p.useContext(_t).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?re(!1,s):exports.invariant(!1,s)}}function jo(e){const{drag:t,layout:n}=se;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Ie={};function Lo(e){for(const t in e)Ie[t]=e[t],Dt(t)&&(Ie[t].isCSSVariable=!0)}function Ks(e,{layout:t,layoutId:n}){return le.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ie[e]||e==="opacity")}const Ko={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$o=ae.length;function Wo(e,t,n){let s="",r=!0;for(let i=0;i<$o;i++){const o=ae[i],a=e[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const u=Ms(a,Wt[o]);if(!c){r=!1;const l=Ko[o]||o;s+=`${l}(${u}) `}n&&(t[o]=u)}}return s=s.trim(),n?s=n(t,r?"":s):r&&(s="none"),s}function Xt(e,t,n){const{style:s,vars:r,transformOrigin:i}=e;let o=!1,a=!1;for(const c in t){const u=t[c];if(le.has(c)){o=!0;continue}else if(Dt(c)){r[c]=u;continue}else{const l=Ms(u,Wt[c]);c.startsWith("origin")?(a=!0,i[c]=l):s[c]=l}}if(t.transform||(o||n?s.transform=Wo(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=i;s.transformOrigin=`${c} ${u} ${l}`}}const Zt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $s(e,t,n){for(const s in t)!O(t[s])&&!Ks(s,n)&&(e[s]=t[s])}function Go({transformTemplate:e},t){return p.useMemo(()=>{const n=Zt();return Xt(n,t,e),Object.assign({},n.vars,n.style)},[t])}function zo(e,t){const n=e.style||{},s={};return $s(s,n,e),Object.assign(s,Go(e,t)),s}function _o(e,t){const n={},s=zo(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const Uo={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ho={offset:"strokeDashoffset",array:"strokeDasharray"};function Yo(e,t,n=1,s=0,r=!0){e.pathLength=1;const i=r?Uo:Ho;e[i.offset]=v.transform(-s);const o=v.transform(t),a=v.transform(n);e[i.array]=`${o} ${a}`}function Ws(e,{attrX:t,attrY:n,attrScale:s,pathLength:r,pathSpacing:i=1,pathOffset:o=0,...a},c,u,l){if(Xt(e,a,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(l==null?void 0:l.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),r!==void 0&&Yo(d,r,i,o,!1)}const Gs=()=>({...Zt(),attrs:{}}),zs=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qo(e,t,n,s){const r=p.useMemo(()=>{const i=Gs();return Ws(i,t,zs(s),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};$s(i,e.style,e),r.style={...i,...r.style}}return r}const Xo=["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 Jt(e){return typeof e!="string"||e.includes("-")?!1:!!(Xo.indexOf(e)>-1||/[A-Z]/u.test(e))}function Zo(e=!1){return(n,s,r,{latestValues:i},o)=>{const c=(Jt(n)?qo:_o)(s,i,o,n),u=Mo(s,typeof n=="string",e),l=n!==p.Fragment?{...u,...c,ref:r}:{},{children:d}=s,f=p.useMemo(()=>O(d)?d.get():d,[d]);return p.createElement(n,{...l,children:f})}}function Mn(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Qt(e,t,n,s){if(typeof t=="function"){const[r,i]=Mn(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Mn(s);t=t(n!==void 0?n:e.custom,r,i)}return t}function _s(e){return O(e)?e.get():e}function Jo({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,r){return{latestValues:Qo(n,s,r,e),renderState:t()}}const Us=e=>(t,n)=>{const s=p.useContext(Oe),r=p.useContext(Fe),i=()=>Jo(e,t,s,r);return n?i():Tt(i)};function Qo(e,t,n,s){const r={},i=s(e,{});for(const f in i)r[f]=_s(i[f]);let{initial:o,animate:a}=e;const c=Ne(e),u=Ns(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let l=n?n.initial===!1:!1;l=l||o===!1;const d=l?a:o;if(d&&typeof d!="boolean"&&!ke(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const g=Qt(e,f[h]);if(g){const{transitionEnd:x,transition:V,...m}=g;for(const A in m){let b=m[A];if(Array.isArray(b)){const C=l?b.length-1:0;b=b[C]}b!==null&&(r[A]=b)}for(const A in x)r[A]=x[A]}}}return r}function en(e,t,n){var i;const{style:s}=e,r={};for(const o in s)(O(s[o])||t.style&&O(t.style[o])||Ks(o,e)||((i=n==null?void 0:n.getValue(o))==null?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}const ea={useVisualState:Us({scrapeMotionValuesFromProps:en,createRenderState:Zt})};function Hs(e,t,n){const s=en(e,t,n);for(const r in e)if(O(e[r])||O(t[r])){const i=ae.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}const ta={useVisualState:Us({scrapeMotionValuesFromProps:Hs,createRenderState:Gs})};function Ys(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...Jt(s)?ta:ea,preloadedFeatures:e,useRender:Zo(r),createVisualElement:t,Component:s};return ko(o)}}const na=Ys(),sa=ks(na);function ge(e,t,n){const s=e.getProps();return Qt(s,t,n!==void 0?n:s.custom,e)}const dt=e=>Array.isArray(e);function ra(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pe(n))}function ia(e){return dt(e)?e[e.length-1]||0:e}function oa(e,t){const n=ge(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=ia(i[o]);ra(e,o,a)}}function aa(e){return!!(O(e)&&e.add)}function qs(e,t){const n=e.getValue("willChange");if(aa(n))return n.add(t);if(!n&&$.WillChange){const s=new $.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Xs(e){return e.props[Bs]}const la=e=>e!==null;function ca(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(la),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}const ua={type:"spring",stiffness:500,damping:25,restSpeed:10},da=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fa={type:"keyframes",duration:.8},ha={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pa=(e,{keyframes:t})=>t.length>2?fa:le.has(e)?e.startsWith("scale")?da(t[1]):ua:ha;function ma({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:u,...l}){return!!Object.keys(l).length}const Zs=(e,t,n,s={},r,i)=>o=>{const a=$t(s,e)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-j(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};ma(a)||Object.assign(l,pa(e,l)),l.duration&&(l.duration=j(l.duration)),l.repeatDelay&&(l.repeatDelay=j(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let d=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(l.duration=0,l.delay===0&&(d=!0)),($.instantAnimations||$.skipAnimations)&&(d=!0,l.duration=0,l.delay=0),l.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=ca(l.keyframes,a);if(f!==void 0){N.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new jt(l):new qi(l)};function ga({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Js(e,t,{delay:n=0,transitionOverride:s,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...a}=t;s&&(i=s);const c=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const l in a){const d=e.getValue(l,e.latestValues[l]??null),f=a[l];if(f===void 0||u&&ga(u,l))continue;const h={delay:n,...$t(i||{},l)},g=d.get();if(g!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===g&&!h.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const m=Xs(e);if(m){const A=window.MotionHandoffAnimation(m,l,N);A!==null&&(h.startTime=A,x=!0)}}qs(e,l),d.start(Zs(l,d,f,e.shouldReduceMotion&&Ts.has(l)?{type:!1}:h,e,x));const V=d.animation;V&&c.push(V)}return o&&Promise.all(c).then(()=>{N.update(()=>{o&&oa(e,o)})}),c}function ft(e,t,n={}){var c;const s=ge(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);const i=s?()=>Promise.all(Js(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:d,staggerDirection:f}=r;return ya(e,t,l+u,d,f,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[u,l]=a==="beforeChildren"?[i,o]:[o,i];return u().then(()=>l())}else return Promise.all([i(),o(n.delay)])}function ya(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,c=r===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(e.variantChildren).sort(ba).forEach((u,l)=>{u.notify("AnimationStart",t),o.push(ft(u,t,{...i,delay:n+c(l)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function ba(e,t){return e.sortNodePosition(t)}function va(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>ft(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=ft(e,t,n);else{const r=typeof t=="function"?ge(e,t,n.custom):t;s=Promise.all(Js(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function Qs(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const xa=Ht.length;function er(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?er(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<xa;n++){const s=Ht[n],r=e.props[s];(me(r)||r===!1)&&(t[s]=r)}return t}const wa=[...Ut].reverse(),Ta=Ut.length;function Va(e){return t=>Promise.all(t.map(({animation:n,options:s})=>va(e,n,s)))}function Sa(e){let t=Va(e),n=Pn(),s=!0;const r=c=>(u,l)=>{var f;const d=ge(e,l,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:g,...x}=d;u={...u,...x,...g}}return u};function i(c){t=c(e)}function o(c){const{props:u}=e,l=er(e.parent)||{},d=[],f=new Set;let h={},g=1/0;for(let V=0;V<Ta;V++){const m=wa[V],A=n[m],b=u[m]!==void 0?u[m]:l[m],C=me(b),y=m===c?A.isActive:null;y===!1&&(g=V);let w=b===l[m]&&b!==u[m]&&C;if(w&&s&&e.manuallyAnimateOnMount&&(w=!1),A.protectedKeys={...h},!A.isActive&&y===null||!b&&!A.prevProp||ke(b)||typeof b=="boolean")continue;const M=Aa(A.prevProp,b);let T=M||m===c&&A.isActive&&!w&&C||V>g&&C,E=!1;const F=Array.isArray(b)?b:[b];let W=F.reduce(r(m),{});y===!1&&(W={});const{prevResolvedValues:xe={}}=A,je={...xe,...W},we=I=>{T=!0,f.has(I)&&(E=!0,f.delete(I)),A.needsAnimating[I]=!0;const K=e.getValue(I);K&&(K.liveStyle=!1)};for(const I in je){const K=W[I],Ke=xe[I];if(h.hasOwnProperty(I))continue;let $e=!1;dt(K)&&dt(Ke)?$e=!Qs(K,Ke):$e=K!==Ke,$e?K!=null?we(I):f.add(I):K!==void 0&&f.has(I)?we(I):A.protectedKeys[I]=!0}A.prevProp=b,A.prevResolvedValues=W,A.isActive&&(h={...h,...W}),s&&e.blockInitialAnimation&&(T=!1),T&&(!(w&&M)||E)&&d.push(...F.map(I=>({animation:I,options:{type:m}})))}if(f.size){const V={};if(typeof u.initial!="boolean"){const m=ge(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(V.transition=m.transition)}f.forEach(m=>{const A=e.getBaseTarget(m),b=e.getValue(m);b&&(b.liveStyle=!0),V[m]=A??null}),d.push({animation:V})}let x=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),s=!1,x?t(d):Promise.resolve()}function a(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var h;return(h=f.animationState)==null?void 0:h.setActive(c,u)}),n[c].isActive=u;const l=o(c);for(const f in n)n[f].protectedKeys={};return l}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Pn(),s=!0}}}function Aa(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Qs(t,e):!1}function U(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pn(){return{animate:U(!0),whileInView:U(),whileHover:U(),whileTap:U(),whileDrag:U(),whileFocus:U(),exit:U()}}class ee{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Ca extends ee{constructor(t){super(t),t.animationState||(t.animationState=Sa(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ke(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Ma=0;class Pa extends ee{constructor(){super(...arguments),this.id=Ma++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const tr={animation:{Feature:Ca},exit:{Feature:Pa}};function ht(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Be(e){return{point:{x:e.pageX,y:e.pageY}}}const Ra=e=>t=>Gt(t)&&e(t,Be(t));function nr({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Da({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ea(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}const Rn=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ia=()=>({x:Rn(),y:Rn()}),Dn=()=>({min:0,max:0}),tn=()=>({x:Dn(),y:Dn()});function qe(e){return e===void 0||e===1}function sr({scale:e,scaleX:t,scaleY:n}){return!qe(e)||!qe(t)||!qe(n)}function rr(e){return sr(e)||ir(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ir(e){return En(e.x)||En(e.y)}function En(e){return e&&e!=="0%"}function pt(e,t,n){const s=e-n,r=t*s;return n+r}function In(e,t,n,s,r){return r!==void 0&&(e=pt(e,r,s)),pt(e,n,s)+t}function mt(e,t=0,n=1,s,r){e.min=In(e.min,t,n,s,r),e.max=In(e.max,t,n,s,r)}function or(e,{x:t,y:n}){mt(e.x,t.translate,t.scale,t.originPoint),mt(e.y,n.translate,n.scale,n.originPoint)}const Fn=.999999999999,On=1.0000000000001;function Fa(e,t,n,s=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let a=0;a<r;a++){i=n[a],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&i.options.layoutScroll&&i.scroll&&i!==i.root&&yt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,or(e,o)),s&&rr(i.latestValues)&&yt(e,i.latestValues))}t.x<On&&t.x>Fn&&(t.x=1),t.y<On&&t.y>Fn&&(t.y=1)}function gt(e,t){e.min=e.min+t,e.max=e.max+t}function kn(e,t,n,s,r=.5){const i=oe(e.min,e.max,r);mt(e,t,n,i,s)}function yt(e,t){kn(e.x,t.x,t.scaleX,t.scale,t.originX),kn(e.y,t.y,t.scaleY,t.scale,t.originY)}function ar(e,t){return nr(Ea(e.getBoundingClientRect(),t))}function Oa(e,t,n){const s=ar(e,n),{scroll:r}=t;return r&&(gt(s.x,r.offset.x),gt(s.y,r.offset.y)),s}function Nn(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&N.postRender(()=>i(t,Be(t)))}class ka extends ee{mount(){const{current:t}=this.node;t&&(this.unmount=ho(t,(n,s)=>(Nn(this.node,s,"Start"),r=>Nn(this.node,r,"End"))))}unmount(){}}class Na extends ee{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=ye(ht(this.node.current,"focus",()=>this.onFocus()),ht(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Bn(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&N.postRender(()=>i(t,Be(t)))}class Ba extends ee{mount(){const{current:t}=this.node;t&&(this.unmount=yo(t,(n,s)=>(Bn(this.node,s,"Start"),(r,{success:i})=>Bn(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const bt=new WeakMap,Xe=new WeakMap,ja=e=>{const t=bt.get(e.target);t&&t(e)},La=e=>{e.forEach(ja)};function Ka({root:e,...t}){const n=e||document;Xe.has(n)||Xe.set(n,{});const s=Xe.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(La,{root:e,...t})),s[r]}function $a(e,t,n){const s=Ka(t);return bt.set(e,n),s.observe(e),()=>{bt.delete(e),s.unobserve(e)}}const Wa={some:0,all:1};class Ga extends ee{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:Wa[r]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:d}=this.node.getProps(),f=u?l:d;f&&f(c)};return $a(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(za(t,n))&&this.startObserver()}unmount(){}}function za({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const lr={inView:{Feature:Ga},tap:{Feature:Ba},focus:{Feature:Na},hover:{Feature:ka}},vt={current:null},cr={current:!1};function _a(){if(cr.current=!0,!!Vt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vt.current=e.matches;e.addListener(t),t()}else vt.current=!1}const Ua=new WeakMap;function Ha(e,t,n){for(const s in t){const r=t[s],i=n[s];if(O(r))e.addValue(s,r);else if(O(i))e.addValue(s,pe(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,pe(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const jn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ya{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,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=Lt,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=k.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,N.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Ne(n),this.isVariantNode=Ns(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];c[f]!==void 0&&O(h)&&h.set(c[f],!1)}}mount(t){this.current=t,Ua.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),cr.current||_a(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vt.current,process.env.NODE_ENV!=="production"&&Mt(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Me(this.notifyUpdate),Me(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=le.has(t);s&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&N.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in se){const n=se[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];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):tn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<jn.length;s++){const r=jn[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=t[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=Ha(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=pe(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(Gn(s)||_n(s))?s=parseFloat(s):!vo(s)&&Q.test(n)&&(s=Cs(t,n)),this.setBaseTarget(t,O(s)?s.get():s)),O(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=Qt(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(s=o[t])}if(n&&s!==void 0)return s;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!O(r)?r:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ct),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class ur extends Ya{constructor(){super(...arguments),this.KeyframeResolver=lo}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;O(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function dr(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}function qa(e){return window.getComputedStyle(e)}class Xa extends ur{constructor(){super(...arguments),this.type="html",this.renderInstance=dr}readValueFromInstance(t,n){var s;if(le.has(n))return(s=this.projection)!=null&&s.isProjecting?st(n):Ci(t,n);{const r=qa(t),i=(Dt(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ar(t,n)}build(t,n,s){Xt(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return en(t,n,s)}}const fr=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 Za(e,t,n,s){dr(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(fr.has(r)?r:qt(r),t.attrs[r])}class Ja extends ur{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(le.has(n)){const s=As(n);return s&&s.default||0}return n=fr.has(n)?n:qt(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Hs(t,n,s)}build(t,n,s){Ws(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,r){Za(t,n,s,r)}mount(t){this.isSVGTag=zs(t.tagName),super.mount(t)}}const hr=(e,t)=>Jt(e)?new Ja(t):new Xa(t,{allowProjection:e!==p.Fragment}),Qa={renderer:hr,...tr,...lr},pr=e=>{const{ripples:t=[],motionProps:n,color:s="currentColor",style:r,onClear:i}=e;return R.jsxRuntimeExports.jsx(R.jsxRuntimeExports.Fragment,{children:t.map(o=>{const a=xr(.01*o.size,.2,o.size>100?.75:.5);return R.jsxRuntimeExports.jsx(So,{features:Qa,children:R.jsxRuntimeExports.jsx(Fs,{mode:"popLayout",children:R.jsxRuntimeExports.jsx(sa.span,{animate:{transform:"scale(2)",opacity:0},className:"ripple-item-span",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:s,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:o.y,left:o.x,width:`${o.size}px`,height:`${o.size}px`,...r},transition:{duration:a},onAnimationComplete:()=>{i(o.key)},...n})})},o.key)})})};pr.displayName="LizaUI.Ripple";const el=()=>R.jsxRuntimeExports.jsx("div",{"aria-label":"Loading",className:"relative inline-flex flex-col gap-2 items-center justify-center",children:R.jsxRuntimeExports.jsxs("div",{className:"relative flex w-5 h-5",children:[R.jsxRuntimeExports.jsx("i",{className:"absolute w-full h-full rounded-full border-2 border-b-current animate-spinner-ease-spin border-solid border-t-transparent border-l-transparent border-r-transparent"}),R.jsxRuntimeExports.jsx("i",{className:"absolute w-full h-full rounded-full border-2 border-b-current opacity-75 animate-spinner-linear-spin border-dotted border-t-transparent border-l-transparent border-r-transparent"})]})}),mr=p.forwardRef((e,t)=>{const{Component:n,domRef:s,children:r,isIconOnly:i,isLoading:o,spinner:a,spinnerPlacement:c,startContent:u,endContent:l,getButtonProps:d,getRippleProps:f}=Vr({...e,ref:t}),h=p.useMemo(()=>R.jsxRuntimeExports.jsx(el,{}),[]),g=a??h;return R.jsxRuntimeExports.jsxs(n,{...d(),ref:s,children:[u,o&&c==="start"&&g,o&&i?null:r,o&&c==="end"&&g,l,R.jsxRuntimeExports.jsx(pr,{...f()})]})});mr.displayName="Custom.Button";exports.AnimatePresence=Fs;exports.Button=mr;exports.Feature=ee;exports.LayoutGroupContext=wt;exports.SubscriptionManager=Ct;exports.SwitchLayoutGroupContext=js;exports.addDomEvent=ht;exports.addPointerInfo=Ra;exports.addScaleCorrector=Lo;exports.addUniqueItem=$n;exports.addValueToWillChange=qs;exports.animateMotionValue=Zs;exports.animations=tr;exports.applyBoxDelta=or;exports.applyTreeDeltas=Fa;exports.button=Ln;exports.cancelFrame=Me;exports.circOut=Qn;exports.clamp=z;exports.complex=Q;exports.convertBoundingBoxToBox=nr;exports.convertBoxToBoundingBox=Da;exports.createBox=tn;exports.createDOMMotionComponentProxy=ks;exports.createDelta=Ia;exports.createDomVisualElement=hr;exports.createMotionComponentFactory=Ys;exports.extractEventInfo=Be;exports.frame=N;exports.frameData=de;exports.frameSteps=Or;exports.gestureAnimations=lr;exports.getOptimisedAppearId=Xs;exports.getValueTransition=$t;exports.has2DTranslate=ir;exports.hasScale=sr;exports.hasTransform=rr;exports.isDragging=ct;exports.isMotionValue=O;exports.isObject=zn;exports.isPrimaryPointer=Gt;exports.isRefObject=Yt;exports.measurePageBox=Oa;exports.microtask=Ps;exports.millisecondsToSeconds=L;exports.mixNumber=oe;exports.motionValue=pe;exports.noop=J;exports.percent=q;exports.pipe=ye;exports.progress=At;exports.px=v;exports.removeItem=Wn;exports.resolveMotionValue=_s;exports.scaleCorrectors=Ie;exports.scalePoint=pt;exports.secondsToMilliseconds=j;exports.time=k;exports.transformBox=yt;exports.translateAxis=gt;exports.usePresence=Is;
10
- //# sourceMappingURL=button-CPPU0FsH.js.map