vendor: 4,252 bytes, lines 1-7
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-xZMVdxd6.js","assets/chunk-NL6KNZEE-Dh7cvbf_.js"])))=>i.map(i=>d[i]); 2import{r as v,a as bo,j as T,h as vo,w as wo,f as To}from"./chunk-NL6KNZEE-Dh7cvbf_.js";import{c as bi}from"./clsx-B-dksMZM.js";import{u as vi,G as So,C as Po}from"./context-C_rcRveg.js";import{g as Pe,d as Ao}from"./utils-BW_aBSMx.js";import{c as ko}from"./createLucideIcon-DvMENBQk.js";import{C as Co}from"./check-HbzbtQTn.js";import{Z as Vo}from"./zap-D-3yGBTO.js";import{C as Mo}from"./circle-check-big-BAuZ6WVJ.js";import{u as Do}from"./user-DA6gLG_U.js";import{c as Ro}from"./meta-MR0ZQFoO.js";/** 3 * @license lucide-react v0.513.0 - ISC 4 * 5 * This source code is licensed under the ISC license. 6 * See the LICENSE file in the root directory of this source tree. 7 */const Eo=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Lo=ko("star",Eo),jo="modulepreload",Io=function(t){return"/"+t},Zn={},wi=function(e,n,s){let i=Promise.resolve();if(n&&n.length>0){let r=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=r(n.map(c=>{if(c=Io(c),c in Zn)return;Zn[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":jo,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return i.then(r=>{for(const a of r||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})};function Jn(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Fo(...t){return e=>{let n=!1;const s=t.map(i=>{const o=Jn(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():Jn(t[i],null)}}}}var Bo=Symbol.for("react.lazy"),pe=bo[" use ".trim().toString()];function No(t){return typeof t=="object"&&t!==null&&"then"in t}function Ti(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Bo&&"_payload"in t&&No(t._payload)}function Oo(t){const e=Wo(t),n=v.forwardRef((s,i)=>{let{children:o,...r}=s;Ti(o)&&typeof pe=="function"&&(o=pe(o._payload));const a=v.Children.toArray(o),l=a.find(Uo);if(l){const c=l.props.children,u=a.map(d=>d===l?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return T.jsx(e,{...r,ref:i,children:v.isValidElement(c)?v.cloneElement(c,void 0,u):null})}return T.jsx(e,{...r,ref:i,children:o})});return n.displayName=`${t}.Slot`,n}var zo=Oo("Slot");function Wo(t){const e=v.forwardRef((n,s)=>{let{children:i,...o}=n;if(Ti(i)&&typeof pe=="function"&&(i=pe(i._payload)),v.isValidElement(i)){const r=Go(i),a=$o(o,i.props);return i.type!==v.Fragment&&(a.ref=s?Fo(s,r):r),v.cloneElement(i,a)}return v.Children.count(i)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var _o=Symbol("radix.slottable");function Uo(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===_o}function $o(t,e){const n={...e};for(const s in e){const i=t[s],o=e[s];/^on[A-Z]/.test(s)?i&&o?n[s]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[s]=i):s==="style"?n[s]={...i,...o}:s==="className"&&(n[s]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function Go(t){var s,i;let e=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.
vendor: 4,894 bytes, line 7
7isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}const Qn=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,ts=bi,Ko=(t,e)=>n=>{var s;if((e==null?void 0:e.variants)==null)return ts(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=e,r=Object.keys(i).map(c=>{const u=n==null?void 0:n[c],d=o==null?void 0:o[c];if(u===null)return null;const h=Qn(u)||Qn(d);return i[c][h]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=e==null||(s=e.compoundVariants)===null||s===void 0?void 0:s.reduce((c,u)=>{let{class:d,className:h,...f}=u;return Object.entries(f).every(p=>{let[g,x]=p;return Array.isArray(x)?x.includes({...o,...a}[g]):{...o,...a}[g]===x})?[...c,d,h]:c},[]);return ts(t,r,l,n==null?void 0:n.class,n==null?void 0:n.className)},Ho=(t,e)=>{const n=new Array(t.length+e.length);for(let s=0;s<t.length;s++)n[s]=t[s];for(let s=0;s<e.length;s++)n[t.length+s]=e[s];return n},Yo=(t,e)=>({classGroupId:t,validator:e}),Si=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),ge="-",es=[],Xo="arbitrary..",qo=t=>{const e=Jo(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:r=>{if(r.startsWith("[")&&r.endsWith("]"))return Zo(r);const a=r.split(ge),l=a[0]===""&&a.length>1?1:0;return Pi(a,l,e)},getConflictingClassGroupIds:(r,a)=>{if(a){const l=s[r],c=n[r];return l?c?Ho(c,l):l:c||es}return n[r]||es}}},Pi=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],o=n.nextPart.get(i);if(o){const c=Pi(t,e+1,o);if(c)return c}const r=n.validators;if(r===null)return;const a=e===0?t.join(ge):t.slice(e).join(ge),l=r.length;for(let c=0;c<l;c++){const u=r[c];if(u.validator(a))return u.classGroupId}},Zo=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),s=e.slice(0,n);return s?Xo+s:void 0})(),Jo=t=>{const{theme:e,classGroups:n}=t;return Qo(n,e)},Qo=(t,e)=>{const n=Si();for(const s in t){const i=t[s];xn(i,n,s,e)}return n},xn=(t,e,n,s)=>{const i=t.length;for(let o=0;o<i;o++){const r=t[o];ta(r,e,n,s)}},ta=(t,e,n,s)=>{if(typeof t=="string"){ea(t,e,n);return}if(typeof t=="function"){na(t,e,n,s);return}sa(t,e,n,s)},ea=(t,e,n)=>{const s=t===""?e:Ai(e,t);s.classGroupId=n},na=(t,e,n,s)=>{if(ia(t)){xn(t(s),e,n,s);return}e.validators===null&&(e.validators=[]),e.validators.push(Yo(n,t))},sa=(t,e,n,s)=>{const i=Object.entries(t),o=i.length;for(let r=0;r<o;r++){const[a,l]=i[r];xn(l,Ai(e,a),n,s)}},Ai=(t,e)=>{let n=t;const s=e.split(ge),i=s.length;for(let o=0;o<i;o++){const r=s[o];let a=n.nextPart.get(r);a||(a=Si(),n.nextPart.set(r,a)),n=a}return n},ia=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,ra=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),s=Object.create(null);const i=(o,r)=>{n[o]=r,e++,e>t&&(e=0,s=n,n=Object.create(null))};return{get(o){let r=n[o];if(r!==void 0)return r;if((r=s[o])!==void 0)return i(o,r),r},set(o,r){o in n?n[o]=r:i(o,r)}}},Ye="!",ns=":",oa=[],ss=(t,e,n,s,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:s,isExternal:i}),aa=t=>{const{prefix:e,experimentalParseClassName:n}=t;let s=i=>{const o=[];let r=0,a=0,l=0,c;const u=i.length;for(let g=0;g<u;g++){const x=i[g];if(r===0&&a===0){if(x===ns){o.push(i.slice(l,g)),l=g+1;continue}if(x==="/"){c=g;continue}}x==="["?r++:x==="]"?r--:x==="("?a++:x===")"&&a--}const d=o.length===0?i:i.slice(l);let h=d,f=!1;d.endsWith(Ye)?(h=d.slice(0,-1),f=!0):d.startsWith(Ye)&&(h=d.slice(1),f=!0);const p=c&&c>l?c-l:void 0;return ss(o,f,h,p)};if(e){const i=e+ns,o=s;s=r=>r.startsWith(i)?o(r.slice(i.length)):ss(oa,!1,r,void 0,!0)}if(n){const i=s;s=o=>n({className:o,parseClassName:i})}return s},la=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,s)=>{e.set(n,1e6+s)}),n=>{const s=[];let i=[];for(let o=0;o<n.length;o++){const r=n[o],a=r[0]==="[",l=e.has(r);a||l?(i.length>0&&(i.sort(),s.push(...i),i=[]),s.push(r)):i.push(r)}return i.length>0&&(i.sort(),s.push(...i)),s}},ca=t=>({cache:ra(t.cacheSize),parseClassName:aa(t),sortModifiers:la(t),...qo(t)}),ua=/\s+/,da=(t,e)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:i,sortModifiers:o}=e,r=[],a=t.trim().split(ua);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:h,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:g}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let x=!!g,m=s(x?p.substring(0,g):p);if(!m){if(!x){l=u+(l.length>0?" "+l:l);continue}if(m=s(p),!m){l=u+(l.length>0?" "+l:l);continue}x=!1}const w=h.length===0?"":h.length===1?h[0]:o(h).join(":"),y=f?w+Ye:w,V=y+m;if(r.indexOf(V)>-1)continue;r.push(V);const C=i(m,x);for(let D=0;D<C.length;++D){const R=C[D];r.push(y+R)}l=u+(l.length>0?" "+l:l)}return l},ha=(...t)=>{let e=0,n,s,i="";for(;e<t.length;
vendor: 4,061 bytes, line 7
7)(n=t[e++])&&(s=ki(n))&&(i&&(i+=" "),i+=s);return i},ki=t=>{if(typeof t=="string")return t;let e,n="";for(let s=0;s<t.length;s++)t[s]&&(e=ki(t[s]))&&(n&&(n+=" "),n+=e);return n},fa=(t,...e)=>{let n,s,i,o;const r=l=>{const c=e.reduce((u,d)=>d(u),t());return n=ca(c),s=n.cache.get,i=n.cache.set,o=a,a(l)},a=l=>{const c=s(l);if(c)return c;const u=da(l,n);return i(l,u),u};return o=r,(...l)=>o(ha(...l))},ma=[],N=t=>{const e=n=>n[t]||ma;return e.isThemeGetter=!0,e},Ci=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vi=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pa=/^\d+\/\d+$/,ga=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ya=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ba=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,va=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pt=t=>pa.test(t),M=t=>!!t&&!Number.isNaN(Number(t)),ut=t=>!!t&&Number.isInteger(Number(t)),De=t=>t.endsWith("%")&&M(t.slice(0,-1)),at=t=>ga.test(t),wa=()=>!0,Ta=t=>ya.test(t)&&!xa.test(t),Mi=()=>!1,Sa=t=>ba.test(t),Pa=t=>va.test(t),Aa=t=>!S(t)&&!P(t),ka=t=>Et(t,Ei,Mi),S=t=>Ci.test(t),yt=t=>Et(t,Li,Ta),Re=t=>Et(t,Ra,M),is=t=>Et(t,Di,Mi),Ca=t=>Et(t,Ri,Pa),oe=t=>Et(t,ji,Sa),P=t=>Vi.test(t),Bt=t=>Lt(t,Li),Va=t=>Lt(t,Ea),rs=t=>Lt(t,Di),Ma=t=>Lt(t,Ei),Da=t=>Lt(t,Ri),ae=t=>Lt(t,ji,!0),Et=(t,e,n)=>{const s=Ci.exec(t);return s?s[1]?e(s[1]):n(s[2]):!1},Lt=(t,e,n=!1)=>{const s=Vi.exec(t);return s?s[1]?e(s[1]):n:!1},Di=t=>t==="position"||t==="percentage",Ri=t=>t==="image"||t==="url",Ei=t=>t==="length"||t==="size"||t==="bg-size",Li=t=>t==="length",Ra=t=>t==="number",Ea=t=>t==="family-name",ji=t=>t==="shadow",La=()=>{const t=N("color"),e=N("font"),n=N("text"),s=N("font-weight"),i=N("tracking"),o=N("leading"),r=N("breakpoint"),a=N("container"),l=N("spacing"),c=N("radius"),u=N("shadow"),d=N("inset-shadow"),h=N("text-shadow"),f=N("drop-shadow"),p=N("blur"),g=N("perspective"),x=N("aspect"),m=N("ease"),w=N("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...V(),P,S],D=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],b=()=>[P,S,l],j=()=>[Pt,"full","auto",...b()],U=()=>[ut,"none","subgrid",P,S],it=()=>["auto",{span:["full",ut,P,S]},ut,P,S],gt=()=>[ut,"auto",P,S],te=()=>["auto","min","max","fr",P,S],St=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],rt=()=>["start","end","center","stretch","center-safe","end-safe"],tt=()=>["auto",...b()],E=()=>[Pt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],k=()=>[t,P,S],et=()=>[...V(),rs,is,{position:[P,S]}],ot=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",Ma,ka,{size:[P,S]}],Ve=()=>[De,Bt,yt],$=()=>["","none","full",c,P,S],H=()=>["",M,Bt,yt],ne=()=>["solid","dashed","dotted","double"],Xn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[M,De,rs,is],qn=()=>["","none",p,P,S],se=()=>["none",M,P,S],ie=()=>["none",M,P,S],Me=()=>[M,P,S],re=()=>[Pt,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[at],breakpoint:[at],color:[wa],container:[at],"drop-shadow":[at],ease:["in","out","in-out"],font:[Aa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[at],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[at],shadow:[at],spacing:["px",M],text:[at],"text-shadow":[at],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pt,S,P,x]}
vendor: 12,741 bytes, line 7
7],container:["container"],columns:[{columns:[M,S,P,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[ut,"auto",P,S]}],basis:[{basis:[Pt,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[M,Pt,"auto","initial","none",S]}],grow:[{grow:["",M,P,S]}],shrink:[{shrink:["",M,P,S]}],order:[{order:[ut,"first","last","none",P,S]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:it()}],"col-start":[{"col-start":gt()}],"col-end":[{"col-end":gt()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:it()}],"row-start":[{"row-start":gt()}],"row-end":[{"row-end":gt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...St(),"normal"]}],"justify-items":[{"justify-items":[...rt(),"normal"]}],"justify-self":[{"justify-self":["auto",...rt()]}],"align-content":[{content:["normal",...St()]}],"align-items":[{items:[...rt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...rt(),{baseline:["","last"]}]}],"place-content":[{"place-content":St()}],"place-items":[{"place-items":[...rt(),"baseline"]}],"place-self":[{"place-self":["auto",...rt()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:tt()}],mx:[{mx:tt()}],my:[{my:tt()}],ms:[{ms:tt()}],me:[{me:tt()}],mt:[{mt:tt()}],mr:[{mr:tt()}],mb:[{mb:tt()}],ml:[{ml:tt()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],w:[{w:[a,"screen",...E()]}],"min-w":[{"min-w":[a,"screen","none",...E()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[r]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",n,Bt,yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,P,Re]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",De,S]}],"font-family":[{font:[Va,S,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,P,S]}],"line-clamp":[{"line-clamp":[M,"none",P,Re]}],leading:[{leading:[o,...b()]}],"list-image":[{"list-image":["none",P,S]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[M,"from-font","auto",P,yt]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[M,"auto",P,S]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,S]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:et()}],"bg-repeat":[{bg:ot()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ut,P,S],radial:["",P,S],conic:[ut,P,S]},Da,Ca]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:Ve()}],"gradient-via-pos":[{via:Ve()}],"gradient-to-pos":[{to:Ve()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[M,P,S]}],"outline-w":[{outline:["",M,Bt,yt]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",u,ae,oe]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",d,ae,oe]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[M,yt]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",h,ae,oe]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[M,P,S]}],"mix-blend":[{"mix-blend":[...Xn(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Xn()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[M]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[P,S]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[M]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:et()}],"mask-repeat":[{mask:ot()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,S]}],filter:[{filter:["","none",P,S]}],blur:[{blur:qn()}],brightness:[{brightness:[M,P,S]}],contrast:[{contrast:[M,P,S]}],"drop-shadow":[{"drop-shadow":["","none",f,ae,oe]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",M,P,S]}],"hue-rotate":[{"hue-rotate":[M,P,S]}],invert:[{invert:["",M,P,S]}],saturate:[{saturate:[M,P,S]}],sepia:[{sepia:["",M,P,S]}],"backdrop-filter":[{"backdrop-filter":["","none",P,S]}],"backdrop-blur":[{"backdrop-blur":qn()}],"backdrop-brightness":[{"backdrop-brightness":[M,P,S]}],"backdrop-contrast":[{"backdrop-contrast":[M,P,S]}],"backdrop-grayscale":[{"backdrop-grayscale":["",M,P,S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M,P,S]}],"backdrop-invert":[{"backdrop-invert":["",M,P,S]}],"backdrop-opacity":[{"backdrop-opacity":[M,P,S]}],"backdrop-saturate":[{"backdrop-saturate":[M,P,S]}],"backdrop-sepia":[{"backdrop-sepia":["",M,P,S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,S]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[M,"initial",P,S]}],ease:[{ease:["linear","initial",m,P,S]}],delay:[{delay:[M,P,S]}],animate:[{animate:["none",w,P,S]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,P,S]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:Me()}],"skew-x":[{"skew-x":Me()}],"skew-y":[{"skew-y":Me()}],transform:[{transform:[P,S,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}
vendor: 5,660 bytes, line 7
7],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P,S]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,S]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[M,Bt,yt,Re]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ja=fa(La);function At(...t){return ja(bi(t))}const Ii=Ko("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ia=v.forwardRef(({className:t,variant:e,size:n,asChild:s=!1,...i},o)=>{const r=s?zo:"button";return T.jsx(r,{className:At(Ii({variant:e,size:n,className:t})),ref:o,...i})});Ia.displayName="Button";function Fa(t){const[e,n]=v.useState(!1);return v.useEffect(()=>{function s(o){n(o.matches)}const i=matchMedia(t);
vendor: 28,114 bytes, line 7
7return i.addEventListener("change",s),n(i.matches),()=>i.removeEventListener("change",s)},[t]),e}const Fi=v.createContext({});function Ba(t){const e=v.useRef(null);return e.current===null&&(e.current=t()),e.current}const Bi=typeof window<"u",Na=Bi?v.useLayoutEffect:v.useEffect,bn=v.createContext(null);function vn(t,e){t.indexOf(e)===-1&&t.push(e)}function wn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const st=(t,e,n)=>n>e?e:n<t?t:n;let Tn=()=>{};const ct={},Ni=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Oi(t){return typeof t=="object"&&t!==null}const zi=t=>/^0[^.\s]+$/u.test(t);function Sn(t){let e;return()=>(e===void 0&&(e=t()),e)}const Z=t=>t,Oa=(t,e)=>n=>e(t(n)),qt=(...t)=>t.reduce(Oa),Gt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Pn{constructor(){this.subscriptions=[]}add(e){return vn(this.subscriptions,e),()=>wn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const lt=t=>t*1e3,q=t=>t/1e3;function Wi(t,e){return e?t*(1e3/e):0}const _i=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,za=1e-7,Wa=12;function _a(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=_i(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>za&&++a<Wa);return r}function Zt(t,e,n,s){if(t===e&&n===s)return Z;const i=o=>_a(o,0,1,t,n);return o=>o===0||o===1?o:_i(i(o),e,s)}const Ui=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,$i=t=>e=>1-t(1-e),Gi=Zt(.33,1.53,.69,.99),An=$i(Gi),Ki=Ui(An),Hi=t=>(t*=2)<1?.5*An(t):.5*(2-Math.pow(2,-10*(t-1))),kn=t=>1-Math.sin(Math.acos(t)),Yi=$i(kn),Xi=Ui(kn),Ua=Zt(.42,0,1,1),$a=Zt(0,0,.58,1),qi=Zt(.42,0,.58,1),Ga=t=>Array.isArray(t)&&typeof t[0]!="number",Zi=t=>Array.isArray(t)&&typeof t[0]=="number",Ka={linear:Z,easeIn:Ua,easeInOut:qi,easeOut:$a,circIn:kn,circInOut:Xi,circOut:Yi,backIn:An,backInOut:Ki,backOut:Gi,anticipate:Hi},Ha=t=>typeof t=="string",os=t=>{if(Zi(t)){Tn(t.length===4);const[e,n,s,i]=t;return Zt(e,n,s,i)}else if(Ha(t))return Ka[t];return t},le=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ya(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,d=!1,h=!1)=>{const p=h&&i?n:s;return d&&r.add(u),p.has(u)||p.add(u),u},cancel:u=>{s.delete(u),r.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const Xa=40;function Ji(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=le.reduce((y,V)=>(y[V]=Ya(o),y),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:f,postRender:p}=r,g=()=>{const y=ct.useManualTiming?i.timestamp:performance.now();n=!1,ct.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(y-i.timestamp,Xa),1)),i.timestamp=y,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},x=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:le.reduce((y,V)=>{const C=r[V];return y[V]=(D,R=!1,b=!1)=>(n||x(),C.schedule(D,R,b)),y},{}),cancel:y=>{for(let V=0;V<le.length;V++)r[le[V]].cancel(y)},state:i,steps:r}}const{schedule:L,cancel:ft,state:W,steps:Ee}=Ji(typeof requestAnimationFrame<"u"?requestAnimationFrame:Z,!0);let de;function qa(){de=void 0}const G={now:()=>(de===void 0&&G.set(W.isProcessing||ct.useManualTiming?W.timestamp:performance.now()),de),set:t=>{de=t,queueMicrotask(qa)}},Qi=t=>e=>typeof e=="string"&&e.startsWith(t),tr=Qi("--"),Za=Qi("var(--"),Cn=t=>Za(t)?Ja.test(t.split("/*")[0].trim()):!1,Ja=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function as(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const jt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Kt={...jt,transform:t=>st(0,1,t)},ce={...jt,default:1},Wt=t=>Math.round(t*1e5)/1e5,Vn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Qa(t){return t==null}const tl=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mn=(t,e)=>n=>!!(typeof n=="string"&&tl.test(n)&&n.startsWith(t)||e&&!Qa(n)&&Object.prototype.hasOwnProperty.call(n,e)),er=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Vn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},el=t=>st(0,255,t),Le={...jt,transform:t=>Math.round(el(t))},vt={test:Mn("rgb","red"),parse:er("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Le.transform(t)+", "+Le.transform(e)+", "+Le.transform(n)+", "+Wt(Kt.transform(s))+")"};function nl(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Xe={test:Mn("#"),parse:nl,transform:vt.transform},Jt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),dt=Jt("deg"),nt=Jt("%"),A=Jt("px"),sl=Jt("vh"),il=Jt("vw"),ls={...nt,parse:t=>nt.parse(t)/100,transform:t=>nt.transform(t*100)},kt={test:Mn("hsl","hue"),parse:er("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+nt.transform(Wt(e))+", "+nt.transform(Wt(n))+", "+Wt(Kt.transform(s))+")"},B={test:t=>vt.test(t)||Xe.test(t)||kt.test(t),parse:t=>vt.test(t)?vt.parse(t):kt.test(t)?kt.parse(t):Xe.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?vt.transform(t):kt.transform(t),getAnimatableNone:t=>{const e=B.parse(t);return e.alpha=0,B.transform(e)}},rl=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ol(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Vn))==null?void 0:e.length)||0)+(((n=t.match(rl))==null?void 0:n.length)||0)>0}const nr="number",sr="color",al="var",ll="var(",cs="${}",cl=/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 Ht(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(cl,l=>(B.test(l)?(s.color.push(o),i.push(sr),n.push(B.parse(l))):l.startsWith(ll)?(s.var.push(o),i.push(al),n.push(l)):(s.number.push(o),i.push(nr),n.push(parseFloat(l))),++o,cs)).split(cs);return{values:n,split:a,indexes:s,types:i}}function ir(t){return Ht(t).values}function rr(t){const{split:e,types:n}=Ht(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===nr?o+=Wt(i[r]):a===sr?o+=B.transform(i[r]):o+=i[r]}return o}}const ul=t=>typeof t=="number"?0:B.test(t)?B.getAnimatableNone(t):t;function dl(t){const e=ir(t);return rr(t)(e.map(ul))}const mt={test:ol,parse:ir,createTransformer:rr,getAnimatableNone:dl};function je(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function hl({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=je(l,a,t+1/3),o=je(l,a,t),r=je(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function ye(t,e){return n=>n>0?e:t}const I=(t,e,n)=>t+(e-t)*n,Ie=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},fl=[Xe,vt,kt],ml=t=>fl.find(e=>e.test(t));function us(t){const e=ml(t);if(!e)return!1;let n=e.parse(t);return e===kt&&(n=hl(n)),n}const ds=(t,e)=>{const n=us(t),s=us(e);if(!n||!s)return ye(t,e);const i={...n};return o=>(i.red=Ie(n.red,s.red,o),i.green=Ie(n.green,s.green,o),i.blue=Ie(n.blue,s.blue,o),i.alpha=I(n.alpha,s.alpha,o),vt.transform(i))},qe=new Set(["none","hidden"]);function pl(t,e){return qe.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function gl(t,e){return n=>I(t,e,n)}function Dn(t){return typeof t=="number"?gl:typeof t=="string"?Cn(t)?ye:B.test(t)?ds:bl:Array.isArray(t)?or:typeof t=="object"?B.test(t)?ds:yl:ye}function or(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Dn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function yl(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Dn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function xl(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const bl=(t,e)=>{const n=mt.createTransformer(e),s=Ht(t),i=Ht(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?qe.has(t)&&!i.values.length||qe.has(e)&&!s.values.length?pl(t,e):qt(or(xl(s,i),i.values),n):ye(t,e)};function ar(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?I(t,e,n):Dn(t)(t,e)}const vl=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>L.update(e,n),stop:()=>ft(e),now:()=>W.isProcessing?W.timestamp:G.now()}},lr=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},xe=2e4;function Rn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<xe;)e+=n,s=t.next(e);return e>=xe?1/0:e}function wl(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Rn(s),xe);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:q(i)}}const Tl=5;function cr(t,e,n){const s=Math.max(e-Tl,0);return Wi(n-t(s),e-s)}const F={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},Fe=.001;function Sl({duration:t=F.duration,bounce:e=F.bounce,velocity:n=F.velocity,mass:s=F.mass}){let i,o,r=1-e;r=st(F.minDamping,F.maxDamping,r),t=st(F.minDuration,F.maxDuration,q(t)),r<1?(i=c=>{const u=c*r,d=u*t,h=u-n,f=Ze(c,r),p=Math.exp(-d);return Fe-h/f*p},o=c=>{const d=c*r*t,h=d*n+n,f=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-d),g=Ze(Math.pow(c,2),r);return(-i(c)+Fe>0?-1:1)*((h-f)*p)/g}):(i=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-Fe+u*d},o=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=Al(i,o,a);if(t=lt(t),isNaN(l))return{stiffness:F.stiffness,damping:F.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const Pl=12;function Al(t,e,n){let s=n;for(let i=1;i<Pl;i++)s=s-t(s)/e(s);return s}function Ze(t,e){return t*Math.sqrt(1-e*e)}const kl=["duration","bounce"],Cl=["stiffness","damping","mass"];function hs(t,e){return e.some(n=>t[n]!==void 0)}function Vl(t){let e={velocity:F.velocity,stiffness:F.stiffness,damping:F.damping,mass:F.mass,isResolvedFromDuration:!1,...t};if(!hs(t,Cl)&&hs(t,kl))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*st(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:F.mass,stiffness:i,damping:o}}else{const n=Sl(t);e={...e,...n,mass:F.mass},e.isResolvedFromDuration=!0}return e}function be(t=F.visualDuration,e=F.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:f}=Vl({...n,velocity:-q(n.velocity||0)}),p=h||0,g=c/(2*Math.sqrt(l*u)),x=r-o,m=q(Math.sqrt(l/u)),w=Math.abs(x)<5;s||(s=w?F.restSpeed.granular:F.restSpeed.default),i||(i=w?F.restDelta.granular:F.restDelta.default);let y;if(g<1){const C=Ze(m,g);y=D=>{const R=Math.exp(-g*m*D);return r-R*((p+g*m*x)/C*Math.sin(C*D)+x*Math.cos(C*D))}}else if(g===1)y=C=>r-Math.exp(-m*C)*(x+(p+m*x)*C);else{const C=m*Math.sqrt(g*g-1);y=D=>{const R=Math.exp(-g*m*D),b=Math.min(C*D,300);return r-R*((p+g*m*x)*Math.sinh(b)+C*x*Math.cosh(b))/C}}const V={calculatedDuration:f&&d||null,next:C=>{const D=y(C);if(f)a.done=C>=d;else{let R=C===0?p:0;g<1&&(R=C===0?lt(p):cr(y,C,D));const b=Math.abs(R)<=s,j=Math.abs(r-D)<=i;a.done=b&&j}return a.value=a.done?r:D,a},toString:()=>{const C=Math.min(Rn(V),xe),D=lr(R=>V.next(C*R).value,C,30);return C+"ms "+D},toTransition:()=>{}};return V}be.applyToOptions=t=>{const e=wl(t,100,be);return t.ease=e.ease,t.duration=lt(e.duration),t.type="keyframes",t};function Je({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=t[0],h={done:!1,value:d},f=b=>a!==void 0&&b<a||l!==void 0&&b>l,p=b=>a===void 0?l:l===void 0||Math.abs(a-b)<Math.abs(l-b)?a:l;let g=n*e;const x=d+g,m=r===void 0?x:r(x);m!==x&&(g=m-d);const w=b=>-g*Math.exp(-b/s),y=b=>m+w(b),V=b=>{const j=w(b),U=y(b);h.done=Math.abs(j)<=c,h.value=h.done?m:U};let C,D;const R=b=>{f(h.value)&&(C=b,D=be({keyframes:[h.value,p(h.value)],velocity:cr(y,b,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return R(0),{calculatedDuration:null,next:b=>{let j=!1;return!D&&C===void 0&&(j=!0,V(b),R(b)),C!==void 0&&b>=C?D.next(b-C):(!j&&V(b),h)}}}function Ml(t,e,n){const s=[],i=n||ct.mix||ar,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||Z:e;a=qt(l,a)}s.push(a)}return s}function Dl(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Tn(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ml(e,s,i),l=a.length,c=u=>{if(r&&u<t[0])return e[0];let d=0;if(l>1)for(;d<t.length-2&&!(u<t[d+1]);d++);const h=Gt(t[d],t[d+1],u);return a[d](h)};return n?u=>c(st(t[0],t[o-1],u)):c}function Rl(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Gt(0,e,s);t.push(I(n,1,i))}}function El(t){const e=[0];return Rl(e,t.length-1),e}function Ll(t,e){return t.map(n=>n*e)}function jl(t,e){return t.map(()=>e||qi).splice(0,t.length-1)}function _t({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Ga(s)?s.map(os):os(s),o={done:!1,value:e[0]},r=Ll(n&&n.length===e.length?n:El(e),t),a=Dl(r,e,{ease:Array.isArray(i)?i:jl(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Il=t=>t!==null;function En(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Il),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Fl={decay:Je,inertia:Je,tween:_t,keyframes:_t,spring:be};function ur(t){typeof t.type=="string"&&(t.type=Fl[t.type])}class Ln{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Bl=t=>t/100;class jn extends Ln{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==G.now()&&this.tick(G.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ur(e);const{type:n=_t,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||_t;l!==_t&&typeof a[0]!="number"&&(this.mixKeyframes=qt(Bl,ar(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Rn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:f,type:p,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let y=this.currentTime,V=s;if(d){const b=Math.min(this.currentTime,i)/a;let j=Math.floor(b),U=b%1;!U&&b>=1&&(U=1),U===1&&j--,j=Math.min(j,d+1),!!(j%2)&&(h==="reverse"?(U=1-U,f&&(U-=f/a)):h==="mirror"&&(V=r)),y=st(0,1,U)*a}const C=w?{done:!1,value:u[0]}:V.next(y);o&&(C.value=o(C.value));let{done:D}=C;!w&&l!==null&&(D=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&p!==Je&&(C.value=En(u,this.options,x,this.speed)),g&&g(C.value),R&&this.finish(),C}then(e,n){return this.finished.then(e,n)}get duration(){return q(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+q(e)}get time(){return q(this.currentTime)}set time(e){var n;e=lt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(G.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=q(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=vl,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),(o=(i=this.options).onPlay)==null||o.call(i);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(G.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Nl(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const wt=t=>t*180/Math.PI,Qe=t=>{const e=wt(Math.atan2(t[1],t[0]));return tn(e)},Ol={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Qe,rotateZ:Qe,skewX:t=>wt(Math.atan(t[1])),skewY:t=>wt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tn=t=>(t=t%360,t<0&&(t+=360),t),fs=Qe,ms=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ps=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),zl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ms,scaleY:ps,scale:t=>(ms(t)+ps(t))/2,rotateX:t=>tn(wt(Math.atan2(t[6],t[5]))),rotateY:t=>tn(wt(Math.atan2(-t[2],t[0]))),rotateZ:fs,rotate:fs,skewX:t=>wt(Math.atan(t[4])),skewY:t=>wt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function en(t){return t.includes("scale")?1:0}function nn(t,e){if(!t||t==="none")return en(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=zl,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Ol,i=a}if(!i)return en(e);const o=s[e],r=i[1].split(",").map(_l);return typeof o=="function"?o(r):r[o]}const Wl=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return nn(n,e)};function _l(t){return parseFloat(t.trim())}const It=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=new Set(It),gs=t=>t===jt||t===A,Ul=new Set(["x","y","z"]),$l=It.filter(t=>!Ul.has(t));function Gl(t){const e=[];return $l.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ht={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>nn(e,"x"),y:(t,{transform:e})=>nn(e,"y")};ht.translateX=ht.x;ht.translateY=ht.y;const Tt=new Set;let sn=!1,rn=!1,on=!1;function dr(){if(rn){const t=Array.from(Tt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Gl(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))==null||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}rn=!1,sn=!1,Tt.forEach(t=>t.complete(on)),Tt.clear()}function hr(){Tt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(rn=!0)})}function Kl(){on=!0,hr(),dr(),on=!1}class In{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Tt.add(this),sn||(sn=!0,L.read(hr),L.resolveKeyframes(dr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}Nl(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Tt.delete(this)}cancel(){this.state==="scheduled"&&(Tt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Hl=t=>t.startsWith("--");function Yl(t,e,n){Hl(e)?t.style.setProperty(e,n):t.style[e]=n}const Xl=Sn(()=>window.ScrollTimeline!==void 0),ql={};function Zl(t,e){const n=Sn(t);return()=>ql[e]??n()}const fr=Zl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ot=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ys={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ot([0,.65,.55,1]),circOut:Ot([.55,0,1,.45]),backIn:Ot([.31,.01,.66,-.59]),backOut:Ot([.33,1.53,.69,.99])};function mr(t,e){if(t)return typeof t=="function"?fr()?lr(t,e):"ease-out":Zi(t)?Ot(t):Array.isArray(t)?t.map(n=>mr(n,e)||ys.easeOut):ys[t]}function Jl(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const d=mr(a,i);Array.isArray(d)&&(u.easing=d);const h={delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),t.animate(u,h)}function pr(t){return typeof t=="function"&&"applyToOptions"in t}function Ql({type:t,...e}){return pr(t)&&fr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class tc extends Ln{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,Tn(typeof e.type!="string");const c=Ql(e);this.animation=Jl(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=En(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Yl(n,s,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return q(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+q(e)}get time(){return q(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=lt(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Xl()?(this.animation.timeline=e,Z):n(this)}}const gr={anticipate:Hi,backInOut:Ki,circInOut:Xi};function ec(t){return t in gr}function nc(t){typeof t.ease=="string"&&ec(t.ease)&&(t.ease=gr[t.ease])}const Be=10;class sc extends tc{constructor(e){nc(e),ur(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new jn({...r,autoplay:!1}),l=Math.max(Be,G.now()-this.startTime),c=st(0,Be,l-Be);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const xs=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(mt.test(t)||t==="0")&&!t.startsWith("url("));function ic(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function rc(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=xs(i,e),a=xs(o,e);return!r||!a?!1:ic(t)||(n==="spring"||pr(n))&&s}function an(t){t.duration=0,t.type="keyframes"}const oc=new Set(["opacity","clipPath","filter","transform"]),ac=Sn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function lc(t){var u;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(((u=e==null?void 0:e.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return ac()&&n&&oc.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const cc=40;class uc extends Ln{constructor({autoplay:e=!0,delay:n=0,type:s="
7keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var p;super(),this.stop=()=>{var g,x;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=G.now();const h={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:c,element:u,...d},f=(u==null?void 0:u.KeyframeResolver)||In;this.keyframeResolver=new f(a,(g,x,m)=>this.onKeyframesResolved(g,x,h,!m),l,c,u),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(e,n,s,i){var x,m;this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=G.now(),rc(e,o,r,a)||((ct.instantAnimations||!l)&&(u==null||u(En(e,s,n))),e[0]=e[e.length-1],an(s),s.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>cc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},f=!c&&lc(h),p=(m=(x=h.motionValue)==null?void 0:x.owner)==null?void 0:m.current,g=f?new sc({...h,element:p}):new jn(h);g.finished.then(()=>{this.notifyFinished()}).catch(Z),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Kl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function yr(t,e,n,s=0,i=1){const o=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const dc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hc(t){const e=dc.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function xr(t,e,n=1){const[s,i]=hc(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Ni(r)?parseFloat(r):r}return Cn(i)?xr(i,e,n+1):i}const fc={type:"spring",stiffness:500,damping:25,restSpeed:10},mc=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),pc={type:"keyframes",duration:.8},gc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yc=(t,{keyframes:e})=>e.length>2?pc:Ft.has(t)?t.startsWith("scale")?mc(e[1]):fc:gc,xc=t=>t!==null;function bc(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(xc),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}function Fn(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}function vc({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Bn=(t,e,n,s={},i,o)=>r=>{const a=Fn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-lt(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};vc(a)||Object.assign(u,yc(t,u)),u.duration&&(u.duration=lt(u.duration)),u.repeatDelay&&(u.repeatDelay=lt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(an(u),u.delay===0&&(d=!0)),(ct.instantAnimations||ct.skipAnimations)&&(d=!0,an(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!o&&e.get()!==void 0){const h=bc(u.keyframes,a);if(h!==void 0){L.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new jn(u):new uc(u)};function bs(t){const e=[{},{}];
vendor: 84,446 bytes, line 7
7return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Nn(t,e,n,s){if(typeof e=="function"){const[i,o]=bs(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=bs(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Dt(t,e,n){const s=t.getProps();return Nn(s,e,n!==void 0?n:s.custom,t)}const br=new Set(["width","height","top","left","right","bottom",...It]),vs=30,wc=t=>!isNaN(parseFloat(t));class Tc{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var o;const i=G.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 r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=G.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Pn);const s=this.events[e].add(n);return e==="change"?()=>{s(),L.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=G.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>vs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,vs);return Wi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Rt(t,e){return new Tc(t,e)}const ln=t=>Array.isArray(t);function Sc(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Rt(n))}function Pc(t){return ln(t)?t[t.length-1]||0:t}function Ac(t,e){const n=Dt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Pc(o[r]);Sc(t,r,a)}}const _=t=>!!(t&&t.getVelocity);function kc(t){return!!(_(t)&&t.add)}function cn(t,e){const n=t.getValue("willChange");if(kc(n))return n.add(e);if(!n&&ct.WillChange){const s=new ct.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function On(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Cc="framerAppearId",vr="data-"+On(Cc);function wr(t){return t.props[vr]}function Vc({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Tr(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;const l=o==null?void 0:o.reduceMotion;s&&(o=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const d in a){const h=t.getValue(d,t.latestValues[d]??null),f=a[d];if(f===void 0||u&&Vc(u,d))continue;const p={delay:n,...Fn(o||{},d)},g=h.get();if(g!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===g&&!p.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const y=wr(t);if(y){const V=window.MotionHandoffAnimation(y,d,L);V!==null&&(p.startTime=V,x=!0)}}cn(t,d);const m=l??t.shouldReduceMotion;h.start(Bn(d,h,f,m&&br.has(d)?{type:!1}:p,t,x));const w=h.animation;w&&c.push(w)}return r&&Promise.all(c).then(()=>{L.update(()=>{r&&Ac(t,r)})}),c}function un(t,e,n={}){var l;const s=Dt(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Tr(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return Mc(t,e,c,u,d,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function Mc(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(un(l,e,{...r,delay:n+(typeof s=="function"?0:s)+yr(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Dc(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>un(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=un(t,e,n);else{const i=typeof e=="function"?Dt(t,e,n.custom):e;s=Promise.all(Tr(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Rc={test:t=>t==="auto",parse:t=>t},Sr=t=>e=>e.test(t),Pr=[jt,A,nt,dt,il,sl,Rc],ws=t=>Pr.find(Sr(t));function Ec(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||zi(t):!0}const Lc=new Set(["brightness","contrast","saturate","opacity"]);function jc(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Vn)||[];if(!s)return t;const i=n.replace(s,"");let o=Lc.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ic=/\b([a-z-]*)\(.*?\)/gu,dn={...mt,getAnimatableNone:t=>{const e=t.match(Ic);return e?e.map(jc).join(" "):t}},Ts={...jt,transform:Math.round},Fc={rotate:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scale:ce,scaleX:ce,scaleY:ce,scaleZ:ce,skew:dt,skewX:dt,skewY:dt,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:Kt,originX:ls,originY:ls,originZ:A},zn={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,inset:A,insetBlock:A,insetBlockStart:A,insetBlockEnd:A,insetInline:A,insetInlineStart:A,insetInlineEnd:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,paddingBlock:A,paddingBlockStart:A,paddingBlockEnd:A,paddingInline:A,paddingInlineStart:A,paddingInlineEnd:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,marginBlock:A,marginBlockStart:A,marginBlockEnd:A,marginInline:A,marginInlineStart:A,marginInlineEnd:A,fontSize:A,backgroundPositionX:A,backgroundPositionY:A,...Fc,zIndex:Ts,fillOpacity:Kt,strokeOpacity:Kt,numOctaves:Ts},Bc={...zn,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:dn,WebkitFilter:dn},Ar=t=>Bc[t];function kr(t,e){let n=Ar(t);return n!==dn&&(n=mt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Nc=new Set(["auto","none","0"]);function Oc(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Nc.has(o)&&Ht(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=kr(n,i)}class zc extends In{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let d=e[u];if(typeof d=="string"&&(d=d.trim(),Cn(d))){const h=xr(d,n.current);h!==void 0&&(e[u]=h),u===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!br.has(s)||e.length!==2)return;const[i,o]=e,r=ws(i),a=ws(o),l=as(i),c=as(o);if(l!==c&&ht[s]){this.needsMeasurement=!0;return}if(r!==a)if(gs(r)&&gs(a))for(let u=0;u<e.length;u++){const d=e[u];typeof d=="string"&&(e[u]=parseFloat(d))}else ht[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ec(e[i]))&&s.push(i);s.length&&Oc(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ht[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=ht[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{e.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Wc(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=(n==null?void 0:n[t])??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Cr=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function _c(t){return Oi(t)&&"offsetHeight"in t}const{schedule:Wn}=Ji(queueMicrotask,!1),Q={x:!1,y:!1};function Vr(){return Q.x||Q.y}function Uc(t){return t==="x"||t==="y"?Q[t]?null:(Q[t]=!0,()=>{Q[t]=!1}):Q.x||Q.y?null:(Q.x=Q.y=!0,()=>{Q.x=Q.y=!1})}function Mr(t,e){const n=Wc(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Ss(t){return!(t.pointerType==="touch"||Vr())}function $c(t,e,n={}){const[s,i,o]=Mr(t,n),r=a=>{if(!Ss(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=d=>{Ss(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Dr=(t,e)=>e?t===e?!0:Dr(t,e.parentElement):!1,_n=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Gc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Rr(t){return Gc.has(t.tagName)||t.isContentEditable===!0}const he=new WeakSet;function Ps(t){return e=>{e.key==="Enter"&&t(e)}}function Ne(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Kc=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Ps(()=>{if(he.has(n))return;Ne(n,"down");const i=Ps(()=>{Ne(n,"up")}),o=()=>Ne(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function As(t){return _n(t)&&!Vr()}function Hc(t,e,n={}){const[s,i,o]=Mr(t,n),r=a=>{const l=a.currentTarget;if(!As(a))return;he.add(l);const c=e(l,a),u=(f,p)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),he.has(l)&&he.delete(l),As(f)&&typeof c=="function"&&c(f,{success:p})},d=f=>{u(f,l===window||l===document||n.useGlobalTarget||Dr(l,f.target))},h=f=>{u(f,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),_c(a)&&(a.addEventListener("focus",c=>Kc(c,i)),!Rr(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Er(t){return Oi(t)&&"ownerSVGElement"in t}function Yc(t){return Er(t)&&t.tagName==="svg"}const Xc=[...Pr,B,mt],qc=t=>Xc.find(Sr(t)),ks=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ct=()=>({x:ks(),y:ks()}),Cs=()=>({min:0,max:0}),O=()=>({x:Cs(),y:Cs()}),hn={current:null},Lr={current:!1},Zc=typeof window<"u";function Jc(){if(Lr.current=!0,!!Zc)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>hn.current=t.matches;t.addEventListener("change",e),e()}else hn.current=!1}const Qc=new WeakMap;function Ae(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Yt(t){return typeof t=="string"||Array.isArray(t)}const Un=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$n=["initial",...Un];function ke(t){return Ae(t.animate)||$n.some(e=>Yt(t[e]))}function jr(t){return!!(ke(t)||t.variants)}function tu(t,e,n){for(const s in e){const i=e[s],o=n[s];if(_(i))t.addValue(s,i);else if(_(o))t.addValue(s,Rt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Rt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Vs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ve={};function Ir(t){ve=t}function eu(){return ve}class nu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=In,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 h=G.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,L.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=ke(n),this.isVariantNode=jr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const f=d[h];l[h]!==void 0&&_(f)&&f.set(l[h])}}mount(e){var n;this.current=e,Qc.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Lr.current||Jc(),this.shouldReduceMotion=hn.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),ft(this.notifyUpdate),ft(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Ft.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&L.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ve){const n=ve[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):O()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Vs.length;s++){const i=Vs[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=tu(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Rt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Ni(s)||zi(s))?s=parseFloat(s):!qc(s)&&mt.test(n)&&(s=kr(e,n)),this.setBaseTarget(e,_(s)?s.get():s)),_(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=Nn(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!_(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Pn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Wn.render(this.render)}}class Fr extends nu{constructor(){super(...arguments),this.KeyframeResolver=zc}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;_(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class pt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Br({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function su({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function iu(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Oe(t){return t===void 0||t===1}function fn({scale:t,scaleX:e,scaleY:n}){return!Oe(t)||!Oe(e)||!Oe(n)}function bt(t){return fn(t)||Nr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Nr(t){return Ms(t.x)||Ms(t.y)}function Ms(t){return t&&t!=="0%"}function we(t,e,n){const s=t-n,i=e*s;return n+i}function Ds(t,e,n,s,i){return i!==void 0&&(t=we(t,i,s)),we(t,n,s)+e}function mn(t,e=0,n=1,s,i){t.min=Ds(t.min,e,n,s,i),t.max=Ds(t.max,e,n,s,i)}function Or(t,{x:e,y:n}){mn(t.x,e.translate,e.scale,e.originPoint),mn(t.y,n.translate,n.scale,n.originPoint)}const Rs=.999999999999,Es=1.0000000000001;function ru(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Mt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Or(t,r)),s&&bt(o.latestValues)&&Mt(t,o.latestValues))}e.x<Es&&e.x>Rs&&(e.x=1),e.y<Es&&e.y>Rs&&(e.y=1)}function Vt(t,e){t.min=t.min+e,t.max=t.max+e}function Ls(t,e,n,s,i=.5){const o=I(t.min,t.max,i);mn(t,e,n,o,s)}function Mt(t,e){Ls(t.x,e.x,e.scaleX,e.scale,e.originX),Ls(t.y,e.y,e.scaleY,e.scale,e.originY)}function zr(t,e){return Br(iu(t.getBoundingClientRect(),e))}function ou(t,e,n){const s=zr(t,n),{scroll:i}=e;return i&&(Vt(s.x,i.offset.x),Vt(s.y,i.offset.y)),s}const au={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lu=It.length;function cu(t,e,n){let s="",i=!0;for(let o=0;o<lu;o++){const r=It[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(r.startsWith("scale")?1:0);else{const c=parseFloat(a);l=r.startsWith("scale")?c===1:c===0}if(!l||n){const c=Cr(a,zn[r]);if(!l){i=!1;const u=au[r]||r;s+=`${u}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Gn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const c=e[l];if(Ft.has(l)){r=!0;continue}else if(tr(l)){i[l]=c;continue}else{const u=Cr(c,zn[l]);l.startsWith("origin")?(a=!0,o[l]=u):s[l]=u}}if(e.transform||(r||n?s.transform=cu(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;s.transformOrigin=`${l} ${c} ${u}`}}function Wr(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i==null||i.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function js(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Nt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(A.test(t))t=parseFloat(t);else return t;const n=js(t,e.target.x),s=js(t,e.target.y);return`${n}% ${s}%`}},uu={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=mt.parse(t);if(i.length>5)return s;const o=mt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=I(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}},pn={borderRadius:{...Nt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nt,borderTopRightRadius:Nt,borderBottomLeftRadius:Nt,borderBottomRightRadius:Nt,boxShadow:uu};function _r(t,{layout:e,layoutId:n}){return Ft.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!pn[t]||t==="opacity")}function Kn(t,e,n){var r;const s=t.style,i=e==null?void 0:e.style,o={};if(!s)return o;for(const a in s)(_(s[a])||i&&_(i[a])||_r(a,t)||((r=n==null?void 0:n.getValue(a))==null?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}function du(t){return window.getComputedStyle(t)}class hu extends Fr{constructor(){super(...arguments),this.type="html",this.renderInstance=Wr}readValueFromInstance(e,n){var s;if(Ft.has(n))return(s=this.projection)!=null&&s.isProjecting?en(n):Wl(e,n);{const i=du(e),o=(tr(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return zr(e,n)}build(e,n,s){Gn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Kn(e,n,s)}}const fu={offset:"stroke-dashoffset",array:"stroke-dasharray"},mu={offset:"strokeDashoffset",array:"strokeDasharray"};function pu(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?fu:mu;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const gu=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ur(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,c,u){if(Gn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:h}=t;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const f of gu)d[f]!==void 0&&(h[f]=d[f],delete d[f]);e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&pu(d,i,o,r,!1)}const $r=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"]),Gr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function yu(t,e,n,s){Wr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute($r.has(i)?i:On(i),e.attrs[i])}function Kr(t,e,n){const s=Kn(t,e,n);for(const i in t)if(_(t[i])||_(e[i])){const o=It.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class xu extends Fr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=O}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ft.has(n)){const s=Ar(n);return s&&s.default||0}return n=$r.has(n)?n:On(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Kr(e,n,s)}build(e,n,s){Ur(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){yu(e,n,s,i)}mount(e){this.isSVGTag=Gr(e.tagName),super.mount(e)}}const bu=$n.length;function Hr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Hr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<bu;n++){const s=$n[n],i=t.props[s];(Yt(i)||i===!1)&&(e[s]=i)}return e}function Yr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const vu=[...Un].reverse(),wu=Un.length;function Tu(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Dc(t,n,s)))}function Su(t){let e=Tu(t),n=Is(),s=!0;const i=l=>(c,u)=>{var h;const d=Dt(t,u,l==="exit"?(h=t.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:f,transitionEnd:p,...g}=d;c={...c,...g,...p}}return c};function o(l){e=l(t)}function r(l){const{props:c}=t,u=Hr(t.parent)||{},d=[],h=new Set;let f={},p=1/0;for(let x=0;x<wu;x++){const m=vu[x],w=n[m],y=c[m]!==void 0?c[m]:u[m],V=Yt(y),C=m===l?w.isActive:null;C===!1&&(p=x);let D=y===u[m]&&y!==c[m]&&V;if(D&&s&&t.manuallyAnimateOnMount&&(D=!1),w.protectedKeys={...f},!w.isActive&&C===null||!y&&!w.prevProp||Ae(y)||typeof y=="boolean")continue;const R=Pu(w.prevProp,y);let b=R||m===l&&w.isActive&&!D&&V||x>p&&V,j=!1;const U=Array.isArray(y)?y:[y];let it=U.reduce(i(m),{});C===!1&&(it={});const{prevResolvedValues:gt={}}=w,te={...gt,...it},St=E=>{b=!0,h.has(E)&&(j=!0,h.delete(E)),w.needsAnimating[E]=!0;const k=t.getValue(E);k&&(k.liveStyle=!1)};for(const E in te){const k=it[E],et=gt[E];if(f.hasOwnProperty(E))continue;let ot=!1;ln(k)&&ln(et)?ot=!Yr(k,et):ot=k!==et,ot?k!=null?St(E):h.add(E):k!==void 0&&h.has(E)?St(E):w.protectedKeys[E]=!0}w.prevProp=y,w.prevResolvedValues=it,w.isActive&&(f={...f,...it}),s&&t.blockInitialAnimation&&(b=!1);const rt=D&&R;b&&(!rt||j)&&d.push(...U.map(E=>{const k={type:m};if(typeof E=="string"&&s&&!rt&&t.manuallyAnimateOnMount&&t.parent){const{parent:et}=t,ot=Dt(et,E);if(et.enteringChildren&&ot){const{delayChildren:ee}=ot.transition||{};k.delay=yr(et.enteringChildren,t,ee)}}return{animation:E,options:k}}))}if(h.size){const x={};if(typeof c.initial!="boolean"){const m=Dt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);m&&m.transition&&(x.transition=m.transition)}h.forEach(m=>{const w=t.getBaseTarget(m),y=t.getValue(m);y&&(y.liveStyle=!0),x[m]=w??null}),d.push({animation:x})}let g=!!d.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?e(d):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=t.variantChildren)==null||d.forEach(h=>{var f;return(f=h.animationState)==null?void 0:f.setActive(l,c)}),n[l].isActive=c;const u=r(l);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Is()}}}function Pu(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Yr(e,t):!1}function xt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Is(){return{animate:xt(!0),whileInView:xt(),whileHover:xt(),whileTap:xt(),whileDrag:xt(),whileFocus:xt(),exit:xt()}}function Fs(t,e){t.min=e.min,t.max=e.max}function J(t,e){Fs(t.x,e.x),Fs(t.y,e.y)}function Bs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Xr=1e-4,Au=1-Xr,ku=1+Xr,qr=.01,Cu=0-qr,Vu=0+qr;function K(t){return t.max-t.min}function Mu(t,e,n){return Math.abs(t-e)<=n}function Ns(t,e,n,s=.5){t.origin=s,t.originPoint=I(e.min,e.max,t.origin),t.scale=K(n)/K(e),t.translate=I(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Au&&t.scale<=ku||isNaN(t.scale))&&(t.scale=1),(t.translate>=Cu&&t.translate<=Vu||isNaN(t.translate))&&(t.translate=0)}function Ut(t,e,n,s){Ns(t.x,e.x,n.x,s?s.originX:void 0),Ns(t.y,e.y,n.y,s?s.originY:void 0)}function Os(t,e,n){t.min=n.min+e.min,t.max=t.min+K(e)}function Du(t,e,n){Os(t.x,e.x,n.x),Os(t.y,e.y,n.y)}function zs(t,e,n){t.min=e.min-n.min,t.max=t.min+K(e)}function Te(t,e,n){zs(t.x,e.x,n.x),zs(t.y,e.y,n.y)}function Ws(t,e,n,s,i){return t-=e,t=we(t,1/n,s),i!==void 0&&(t=we(t,1/i,s)),t}function Ru(t,e=0,n=1,s=.5,i,o=t,r=t){if(nt.test(e)&&(e=parseFloat(e),e=I(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=I(o.min,o.max,s);t===o&&(a-=e),t.min=Ws(t.min,e,n,a,i),t.max=Ws(t.max,e,n,a,i)}function _s(t,e,[n,s,i],o,r){Ru(t,e[n],e[s],e[i],e.scale,o,r)}const Eu=["x","scaleX","originX"],Lu=["y","scaleY","originY"];function Us(t,e,n,s){_s(t.x,e,Eu,n?n.x:void 0,s?s.x:void 0),_s(t.y,e,Lu,n?n.y:void 0,s?s.y:void 0)}function $s(t){return t.translate===0&&t.scale===1}function Zr(t){return $s(t.x)&&$s(t.y)}function Gs(t,e){return t.min===e.min&&t.max===e.max}function ju(t,e){return Gs(t.x,e.x)&&Gs(t.y,e.y)}function Ks(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Jr(t,e){return Ks(t.x,e.x)&&Ks(t.y,e.y)}function Hs(t){return K(t.x)/K(t.y)}function Ys(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Y(t){return[t("x"),t("y")]}function Iu(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:f,skewY:p}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotateX(${d}deg) `),h&&(s+=`rotateY(${h}deg) `),f&&(s+=`skewX(${f}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Qr=["TopLeft","TopRight","BottomLeft","BottomRight"],Fu=Qr.length,Xs=t=>typeof t=="string"?parseFloat(t):t,qs=t=>typeof t=="number"||A.test(t);function Bu(t,e,n,s,i,o){i?(t.opacity=I(0,n.opacity??1,Nu(s)),t.opacityExit=I(e.opacity??1,0,Ou(s))):o&&(t.opacity=I(e.opacity??1,n.opacity??1,s));for(let r=0;r<Fu;r++){const a=`border${Qr[r]}Radius`;let l=Zs(e,a),c=Zs(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||qs(l)===qs(c)?(t[a]=Math.max(I(Xs(l),Xs(c),s),0),(nt.test(c)||nt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=I(e.rotate||0,n.rotate||0,s))}function Zs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Nu=to(0,.5,Yi),Ou=to(.5,.95,Z);function to(t,e,n){return s=>s<t?0:s>e?1:n(Gt(t,e,s))}function zu(t,e,n){const s=_(t)?t:Rt(t);return s.start(Bn("",s,e,n)),s.animation}function Xt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Wu=(t,e)=>t.depth-e.depth;class _u{constructor(){this.children=[],this.isDirty=!1}add(e){vn(this.children,e),this.isDirty=!0}remove(e){wn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Wu),this.isDirty=!1,this.children.forEach(e)}}function Uu(t,e){const n=G.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(ft(s),t(o-e))};return L.setup(s,!0),()=>ft(s)}function fe(t){return _(t)?t.get():t}class $u{constructor(){this.members=[]}add(e){vn(this.members,e),e.scheduleRender()}remove(e){if(wn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender();const i=s.options.layoutDependency,o=e.options.layoutDependency;i!==void 0&&o!==void 0&&i===o||(e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));const{crossfade:a}=e.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const me={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ze=["","X","Y","Z"],Gu=1e3;let Ku=0;function We(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function eo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=wr(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",L,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&eo(s)}function no({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Ku++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Xu),this.nodes.forEach(Qu),this.nodes.forEach(td),this.nodes.forEach(qu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new _u)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Pn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Er(r)&&!Yc(r),this.instance=r;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;L.read(()=>{d=window.innerWidth}),t(r,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,u&&u(),u=Uu(h,250),me.hasAnimatedSinceResize&&(me.hasAnimatedSinceResize=!1,this.nodes.forEach(ti)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||rd,{onLayoutAnimationStart:g,onLayoutAnimationComplete:x}=c.getProps(),m=!this.targetLayout||!Jr(this.targetLayout,f),w=!d&&h;if(this.options.layoutRoot||this.resumeFrom||w||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...Fn(p,"layout"),onPlay:g,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(u,w)}else d||ti(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ed),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&eo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Js);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Qs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ju),this.nodes.forEach(Hu),this.nodes.forEach(Yu)):this.nodes.forEach(Qs),this.clearAllSnapshots();const a=G.now();W.delta=st(0,1e3/60,a-W.timestamp),W.timestamp=a,W.isProcessing=!0,Ee.update.process(W),Ee.preRender.process(W),Ee.render.process(W),W.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Zu),this.sharedNodes.forEach(nd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,L.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){L.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!K(this.snapshot.measuredBox.x)&&!K(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=O(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Zr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||bt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),od(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:r}=this.options;if(!r)return O();const a=r.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(ad))){const{scroll:u}=this.root;u&&(Vt(a.x,u.offset.x),Vt(a.y,u.offset.y))}return a}removeElementScroll(r){var l;const a=O();if(J(a,r),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&J(a,r),Vt(a.x,d.offset.x),Vt(a.y,d.offset.y))}return a}applyTransform(r,a=!1){const l=O();J(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Mt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),bt(u.latestValues)&&Mt(l,u.latestValues)}return bt(this.latestValues)&&Mt(l,this.latestValues),l}removeTransform(r){const a=O();J(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!bt(c.latestValues))continue;fn(c.latestValues)&&c.updateSnapshot();const u=O(),d=c.measurePageBox();J(u,d),Us(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return bt(this.latestValues)&&Us(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==W.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=W.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=O(),this.targetWithTransforms=O()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Du(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):J(this.target,this.layout.layoutBox),Or(this.target,this.targetDelta)):J(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||fn(this.parent.latestValues)||Nr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=O(),this.relativeTargetOrigin=O(),Te(this.relativeTargetOrigin,a,l),J(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===W.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;J(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;ru(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=O());const{target:f}=r;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bs(this.prevProjectionDelta.x,this.projectionDelta.x),Bs(this.prevProjectionDelta.y,this.projectionDelta.y)),Ut(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Ys(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ys(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ct(),this.projectionDelta=Ct(),this.projectionDeltaWithTransform=Ct()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=O(),f=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=f!==p,x=this.getStack(),m=!x||x.members.length<=1,w=!!(g&&!m&&this.options.crossfade===!0&&!this.path.some(id));this.animationProgress=0;let y;this.mixTargetDelta=V=>{const C=V/1e3;ei(d.x,r.x,C),ei(d.y,r.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Te(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sd(this.relativeTarget,this.relativeTargetOrigin,h,C),y&&ju(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=O()),J(y,this.relativeTarget)),g&&(this.animationValues=u,Bu(u,c,this.latestValues,C,w,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=L.update(()=>{me.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Rt(0)),this.currentAnimation=zu(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),r.onUpdate&&r.onUpdate(u)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gu),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&so(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||O();const d=K(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+d;const h=K(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+h}J(a,l),Mt(a,u),Ut(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new $u),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&We("z",r,c,this.animationValues);for(let u=0;u<ze.length;u++)We(`rotate${ze[u]}`,r,c,this.animationValues),We(`skew${ze[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=fe(a==null?void 0:a.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=fe(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!bt(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=Iu(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),r.transform=d;const{x:h,y:f}=this.projectionDelta;r.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,c.animationValues?r.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in pn){if(u[p]===void 0)continue;const{correct:g,applyTo:x,isCSSVariable:m}=pn[p],w=d==="none"?u[p]:g(u[p],c);if(x){const y=x.length;for(let V=0;V<y;V++)r[x[V]]=w}else m?this.options.visualElement.renderState.vars[p]=w:r[p]=w}this.options.layoutId&&(r.pointerEvents=c===this?fe(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Js),this.root.sharedNodes.clear()}}}function Hu(t){t.updateLayout()}function Yu(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;o==="size"?Y(d=>{const h=r?e.measuredBox[d]:e.layoutBox[d],f=K(h);h.min=s[d].min,h.max=h.min+f}):so(o,e.layoutBox,s)&&Y(d=>{const h=r?e.measuredBox[d]:e.layoutBox[d],f=K(s[d]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+f)});const a=Ct();Ut(a,s,e.layoutBox);const l=Ct();r?Ut(l,t.applyTransform(i,!0),e.measuredBox):Ut(l,s,e.layoutBox);const c=!Zr(a);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const p=O();Te(p,e.layoutBox,h.layoutBox);const g=O();Te(g,s,f.layoutBox),Jr(p,g)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Xu(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function qu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Zu(t){t.clearSnapshot()}function Js(t){t.clearMeasurements()}function Qs(t){t.isLayoutDirty=!1}function Ju(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ti(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Qu(t){t.resolveTargetDelta()}function td(t){t.calcProjection()}function ed(t){t.resetSkewAndRotation()}function nd(t){t.removeLeadSnapshot()}function ei(t,e,n){t.translate=I(e.translate,0,n),t.scale=I(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ni(t,e,n,s){t.min=I(e.min,n.min,s),t.max=I(e.max,n.max,s)}function sd(t,e,n,s){ni(t.x,e.x,n.x,s),ni(t.y,e.y,n.y,s)}function id(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const rd={duration:.45,ease:[.4,0,.1,1]},si=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ii=si("applewebkit/")&&!si("chrome/")?Math.round:Z;function ri(t){t.min=ii(t.min),t.max=ii(t.max)}function od(t){ri(t.x),ri(t.y)}function so(t,e,n){return t==="position"||t==="preserve-aspect"&&!Mu(Hs(e),Hs(n),.2)}function ad(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const ld=no({attachResizeListener:(t,e)=>Xt(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),_e={current:void 0},io=no({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!_e.current){const t=new ld({});t.mount(window),t.setOptions({layoutScroll:!0}),_e.current=t}return _e.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),ro=v.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function cd(t=!0){const e=v.useContext(bn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=v.useId();v.useEffect(()=>{if(t)return i(o)},[t]);const r=v.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const oo=v.createContext({strict:!1}),oi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let ai=!1;function ud(){if(ai)return;const t={};for(const e in oi)t[e]={isEnabled:n=>oi[e].some(s=>!!n[s])};Ir(t),ai=!0}function ao(){return ud(),eu()}function dd(t){const e=ao();for(const n in t)e[n]={...e[n],...t[n]};Ir(e)}const hd=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 Se(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||hd.has(t)}let lo=t=>!Se(t);function fd(t){typeof t=="function"&&(lo=e=>e.startsWith("on")?!Se(e):t(e))}try{fd(require("@emotion/is-prop-valid").default)}catch{}function md(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(lo(i)||n===!0&&Se(i)||!e&&!Se(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const Ce=v.createContext({});function pd(t,e){if(ke(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Yt(n)?n:void 0,animate:Yt(s)?s:void 0}}return t.inherit!==!1?e:{}}function gd(t){const{initial:e,animate:n}=pd(t,v.useContext(Ce));return v.useMemo(()=>({initial:e,animate:n}),[li(e),li(n)])}function li(t){return Array.isArray(t)?t.join(" "):t}const Hn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function co(t,e,n){for(const s in e)!_(e[s])&&!_r(s,n)&&(t[s]=e[s])}function yd({transformTemplate:t},e){return v.useMemo(()=>{const n=Hn();return Gn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function xd(t,e){const n=t.style||{},s={};return co(s,n,t),Object.assign(s,yd(t,e)),s}function bd(t,e){const n={},s=xd(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const uo=()=>({...Hn(),attrs:{}});function vd(t,e,n,s){const i=v.useMemo(()=>{const o=uo();return Ur(o,e,Gr(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};co(o,t.style,t),i.style={...o,...i.style}}return i}const wd=["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 Yn(t){return typeof t!="string"||t.includes("-")?!1:!!(wd.indexOf(t)>-1||/[A-Z]/u.test(t))}function Td(t,e,n,{latestValues:s},i,o=!1,r){const l=(r??Yn(t)?vd:bd)(e,s,i,t),c=md(e,typeof t=="string",o),u=t!==v.Fragment?{...c,...l,ref:n}:{},{children:d}=e,h=v.useMemo(()=>_(d)?d.get():d,[d]);return v.createElement(t,{...u,children:h})}function Sd({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Pd(n,s,i,t),renderState:e()}}function Pd(t,e,n,s){const i={},o=s(t,{});for(const h in o)i[h]=fe(o[h]);let{initial:r,animate:a}=t;const l=ke(t),c=jr(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const d=u?a:r;if(d&&typeof d!="boolean"&&!Ae(d)){const h=Array.isArray(d)?d:[d];for(let f=0;f<h.length;f++){const p=Nn(t,h[f]);if(p){const{transitionEnd:g,transition:x,...m}=p;for(const w in m){let y=m[w];if(Array.isArray(y)){const V=u?y.length-1:0;y=y[V]}y!==null&&(i[w]=y)}for(const w in g)i[w]=g[w]}}}return i}const ho=t=>(e,n)=>{const s=v.useContext(Ce),i=v.useContext(bn),o=()=>Sd(t,e,s,i);return n?o():Ba(o)},Ad=ho({scrapeMotionValuesFromProps:Kn,createRenderState:Hn}),kd=ho({scrapeMotionValuesFromProps:Kr,createRenderState:uo}),Cd=Symbol.for("motionComponentSymbol");function Vd(t,e,n){const s=v.useRef(n);v.useInsertionEffect(()=>{s.current=n});const i=v.useRef(null);return v.useCallback(o=>{var a;o&&((a=t.onMount)==null||a.call(t,o)),e&&(o?e.mount(o):e.unmount());const r=s.current;if(typeof r=="function")if(o){const l=r(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o)},[e])}const fo=v.createContext({});function zt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Md(t,e,n,s,i,o){var m,w;const{visualElement:r}=v.useContext(Ce),a=v.useContext(oo),l=v.useContext(bn),c=v.useContext(ro).reducedMotion,u=v.useRef(null),d=v.useRef(!1);s=s||a.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:r,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,isSVG:o}),d.current&&u.current&&(u.current.manuallyAnimateOnMount=!0));const h=u.current,f=v.useContext(fo);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Dd(u.current,n,i,f);const p=v.useRef(!1);v.useInsertionEffect(()=>{h&&p.current&&h.update(n,l)});const g=n[vr],x=v.useRef(!!g&&!((m=window.MotionHandoffIsComplete)!=null&&m.call(window,g))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,g)));return Na(()=>{d.current=!0,h&&(p.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),x.current&&h.animationState&&h.animationState.animateChanges())}),v.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)==null||y.call(window,g)}),x.current=!1),h.enteringChildren=void 0)}),h}function Dd(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:mo(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&zt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:c})}function mo(t){if(t)return t.options.allowProjection!==!1?t.projection:mo(t.parent)}function Ue(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&dd(s);const o=n?n==="svg":Yn(t),r=o?kd:Ad;function a(c,u){let d;const h={...v.useContext(ro),...c,layoutId:Rd(c)},{isStatic:f}=h,p=gd(c),g=r(c,f);if(!f&&Bi){Ed();const x=Ld(h);d=x.MeasureLayout,p.visualElement=Md(t,g,h,i,x.ProjectionNode,o)}return T.jsxs(Ce.Provider,{value:p,children:[d&&p.visualElement?T.jsx(d,{visualElement:p.visualElement,...h}):null,Td(t,c,Vd(g,p.visualElement,u),g,f,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=v.forwardRef(a);return l[Cd]=t,l}function Rd({layoutId:t}){const e=v.useContext(Fi).id;return e&&t!==void 0?e+"-"+t:t}function Ed(t,e){v.useContext(oo).strict}function Ld(t){const e=ao(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(t)||s!=null&&s.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function jd(t,e){if(typeof Proxy>"u")return Ue;const n=new Map,s=(o,r)=>Ue(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,Ue(r,void 0,t,e)),n.get(r))})}const Id=(t,e)=>e.isSVG??Yn(t)?new xu(e):new hu(e,{allowProjection:t!==v.Fragment});class Fd extends pt{constructor(e){super(e),e.animationState||(e.animationState=Su(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ae(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Bd=0;class Nd extends pt{constructor(){super(...arguments),this.id=Bd++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Od={animation:{Feature:Fd},exit:{Feature:Nd}};function Qt(t){return{point:{x:t.pageX,y:t.pageY}}}const zd=t=>e=>_n(e)&&t(e,Qt(e));function $t(t,e,n,s){return Xt(t,e,zd(n),s)}const po=({current:t})=>t?t.ownerDocument.defaultView:null,ci=(t,e)=>Math.abs(t-e);function Wd(t,e){const n=ci(t.x,e.x),s=ci(t.y,e.y);return Math.sqrt(n**2+s**2)}const ui=new Set(["auto","scroll"]);class go{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Ge(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=Wd(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:x}=f,{timestamp:m}=W;this.history.push({...x,timestamp:m});const{onStart:w,onMove:y}=this.handlers;p||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=$e(p,this.transformPagePoint),L.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Ge(f.type==="pointercancel"?this.lastMoveEventInfo:$e(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,w),x&&x(f,w)},!_n(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const l=Qt(e),c=$e(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=W;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(e,Ge(c,this.history)),this.removeListeners=qt($t(this.contextWindow,"pointermove",this.handlePointerMove),$t(this.contextWindow,"pointerup",this.handlePointerUp),$t(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(ui.has(s.overflowX)||ui.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),L.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ft(this.updatePoint)}}function $e(t,e){return e?{point:e(t.point)}:t}function di(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ge({point:t},e){return{point:t,delta:di(t,yo(e)),offset:di(t,_d(e)),velocity:Ud(e,.1)}}function _d(t){return t[0]}function yo(t){return t[t.length-1]}function Ud(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=yo(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>lt(e)));)n--;if(!s)return{x:0,y:0};const o=q(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function $d(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?I(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?I(n,t,s.max):Math.min(t,n)),t}function hi(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Gd(t,{top:e,left:n,bottom:s,right:i}){return{x:hi(t.x,n,i),y:hi(t.y,e,s)}}function fi(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Kd(t,e){return{x:fi(t.x,e.x),y:fi(t.y,e.y)}}function Hd(t,e){let n=.5;const s=K(t),i=K(e);return i>s?n=Gt(e.min,e.max-s,t.min):s>i&&(n=Gt(t.min,t.max-i,e.min)),st(0,1,n)}function Yd(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const gn=.35;function Xd(t=gn){return t===!1?t=0:t===!0&&(t=gn),{x:mi(t,"left","right"),y:mi(t,"top","bottom")}}function mi(t,e,n){return{min:pi(t,e),max:pi(t,n)}}function pi(t,e){return typeof t=="number"?t:t[e]||0}const qd=new WeakMap;class Zd{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=O(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=d=>{n?(this.stopAnimation(),this.snapToCursor(Qt(d).point)):this.pauseAnimation()},r=(d,h)=>{this.stopAnimation();const{drag:f,dragPropagation:p,onDragStart:g}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Uc(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(m=>{let w=this.getAxisMotionValue(m).get()||0;if(nt.test(w)){const{projection:y}=this.visualElement;if(y&&y.layout){const V=y.layout.layoutBox[m];V&&(w=K(V)*(parseFloat(w)/100))}}this.originPoint[m]=w}),g&&L.postRender(()=>g(d,h)),cn(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:g,onDrag:x}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:m}=h;if(p&&this.currentDirection===null){this.currentDirection=Jd(m),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,m),this.updateAxis("y",h.point,m),this.visualElement.render(),x&&x(d,h)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Y(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)==null?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new go(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:po(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&L.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!ue(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=$d(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&zt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Gd(s.layoutBox,e):this.constraints=!1,this.elastic=Xd(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Y(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Yd(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!zt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=ou(s,i.root,this.visualElement.getTransformPagePoint());let r=Kd(i.layout.layoutBox,o);if(n){const a=n(su(r));this.hasMutatedConstraints=!!a,a&&(r=Br(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Y(u=>{if(!ue(u,n,this.currentDirection))return;let d=l&&l[u]||{};r&&(d={min:0,max:0});const h=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:s?e[u]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return cn(this.visualElement,e),s.start(Bn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Y(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){Y(n=>{const{drag:s}=this.getProps();if(!ue(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(e[n]-I(r,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!zt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Y(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=Hd({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Y(r=>{if(!ue(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(I(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;qd.set(this.visualElement,this);const e=this.visualElement.current,n=$t(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps(),d=l.target,h=d!==e&&Rr(d);c&&u&&!h&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();zt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),L.read(s);const r=Xt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Y(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=gn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function ue(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Jd(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Qd extends pt{constructor(e){super(e),this.removeGroupControls=Z,this.removeListeners=Z,this.controls=new Zd(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Z}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const gi=t=>(e,n)=>{t&&L.postRender(()=>t(e,n))};class th extends pt{constructor(){super(...arguments),this.removePointerDownListener=Z}onPointerDown(e){this.session=new go(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:po(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:gi(e),onStart:gi(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&L.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=$t(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ke=!1;class eh extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Ke&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),me.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),Ke=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||L.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Wn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Ke=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function xo(t){const[e,n]=cd(),s=v.useContext(Fi);return T.jsx(eh,{...t,layoutGroup:s,switchLayoutGroup:v.useContext(fo),isPresent:e,safeToRemove:n})}const nh={pan:{Feature:th},drag:{Feature:Qd,ProjectionNode:io,MeasureLayout:xo}};function yi(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&L.postRender(()=>o(e,Qt(e)))}class sh extends pt{mount(){const{current:e}=this.node;e&&(this.unmount=$c(e,(n,s)=>(yi(this.node,s,"Start"),i=>yi(this.node,i,"End"))))}unmount(){}}class ih extends pt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=qt(Xt(this.node.current,"focus",()=>this.onFocus()),Xt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xi(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&L.postRender(()=>o(e,Qt(e)))}class rh extends pt{mount(){const{current:e}=this.node;e&&(this.unmount=Hc(e,(n,s)=>(xi(this.node,s,"Start"),(i,{success:o})=>xi(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yn=new WeakMap,He=new WeakMap,oh=t=>{const e=yn.get(t.target);e&&e(t)},ah=t=>{t.forEach(oh)};function lh({root:t,...e}){const n=t||document;He.has(n)||He.set(n,{});const s=He.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(ah,{root:t,...e})),s[i]}function ch(t,e,n){const s=lh(e);return yn.set(t,n),s.observe(t),()=>{yn.delete(t),s.unobserve(t)}}const uh={some:0,all:1};class dh extends pt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:uh[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return ch(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;
7["amount","margin","root"].some(hh(e,n))&&this.startObserver()}unmount(){}}function hh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const fh={inView:{Feature:dh},tap:{Feature:rh},focus:{Feature:ih},hover:{Feature:sh}},mh={layout:{ProjectionNode:io,MeasureLayout:xo}},ph={...Od,...fh,...nh,...mh},gh=jd(ph,Id),yh=v.lazy(()=>wi(()=>import("./index-xZMVdxd6.js"),__vite__mapDeps([0,1])));function xh({plans:t,title:e,description:n,isAuthenticated:s=!0,onAuthRequired:i}){const{language:o}=vi(),r=Pe(o),a=e||r.pricing.title,l=n||r.pricing.description,[c,u]=v.useState(!1),d=Fa("(min-width: 768px)"),h=v.useRef(null),f=vo(),[p,g]=v.useState(!1);v.useEffect(()=>{g(!0)},[]);const x=async(m,w)=>{if(!s&&i){i();return}if(m.planId)try{const y=await fetch("/api/create-subscription",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan_id:m.planId,interval:c?"monthly":"yearly"})});if(!y.ok){const C=await y.text();console.error("Create subscription failed:",C);return}const V=await y.json();V.checkout_url&&window.open(V.checkout_url,"_blank","noopener,noreferrer")}catch(y){console.error("Subscription error:",y)}else{const y=c?m.href:m.yearlyHref||m.href;w?window.open(y,"_blank","noopener,noreferrer"):f(y)}};return T.jsxs("div",{className:"container py-5 mx-auto px-4",children:[T.jsxs("div",{className:"text-center space-y-4 mb-12",children:[T.jsx("h2",{className:"text-4xl font-bold tracking-tight sm:text-5xl",children:a}),T.jsx("p",{className:"text-muted-foreground text-lg whitespace-pre-line max-w-3xl mx-auto",children:l})]}),T.jsx("div",{className:"flex justify-center mb-10 items-center",children:T.jsxs("div",{className:"inline-flex items-center p-1 rounded-full border border-base-content/10 bg-base-100/50 backdrop-blur-sm",children:[T.jsx("button",{type:"button",onClick:()=>u(!0),className:At("px-6 py-2.5 rounded-full text-sm font-medium transition-all duration-300",c?"bg-base-content text-base-100 shadow-sm":"text-base-content/70 hover:text-base-content"),children:r.pricing.monthly}),T.jsxs("button",{ref:h,type:"button",onClick:()=>{var m;if(c){u(!1);
7const w=(m=h.current)==null?void 0:m.getBoundingClientRect();if(w){const y=w.left+w.width/2,V=w.top+w.height/2;wi(()=>import("./confetti.module-BUXTfpA_.js"),[]).then(C=>{const D=C.default;D({particleCount:50,spread:60,origin:{x:y/window.innerWidth,y:V/window.innerHeight},colors:["hsl(var(--primary))","hsl(var(--accent))","hsl(var(--secondary))","hsl(var(--muted))"],ticks:200,gravity:1.2,decay:.94,startVelocity:30,shapes:["circle"]})})}}},className:At("px-6 py-2.5 rounded-full text-sm font-medium transition-all duration-300 flex items-center gap-2",c?"text-base-content/70 hover:text-base-content":"bg-base-content text-base-100 shadow-sm"),children:[r.pricing.annual,T.jsx("span",{className:At("text-xs px-2 py-0.5 rounded-full",c?"bg-primary/20 text-primary":"bg-primary text-primary-foreground"),children:r.pricing.discount})]})]})}),T.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-7xl mx-auto perspective-[2000px]",children:t.map((m,w)=>T.jsxs(gh.div,{initial:{y:50,opacity:0},whileInView:d?{y:m.isPopular?-20:0,opacity:1}:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,type:"spring",stiffness:100,damping:30,delay:w*.1},className:At("rounded-3xl p-8 bg-base-100 border text-center lg:flex lg:flex-col relative transition-all duration-300 hover:shadow-xl",m.isPopular?"border-primary border-2 shadow-lg z-10":"border-base-300 z-0","flex flex-col"),children:[m.isPopular&&T.jsxs("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-primary py-1 px-4 rounded-full flex items-center shadow-lg",children:[T.jsx(Lo,{className:"text-primary-foreground h-3 w-3 fill-current"}),T.jsx("span",{className:"text-primary-foreground ml-2 text-sm font-bold tracking-wider uppercase",children:r.pricing.bestValue})]}),T.jsxs("div",{className:"flex-1 flex flex-col",children:[T.jsx("h3",{className:"text-xl font-bold mb-2",children:m.name}),T.jsx("p",{className:"text-sm text-base-content/60 mb-6 min-h-[40px]",children:m.description}),T.jsxs("div",{className:"mb-8 flex items-end justify-center gap-1",children:[T.jsx("span",{className:"text-4xl font-bold tracking-tight",children:p?T.jsx(v.Suspense,{fallback:c?`$${m.price}`:`$${m.yearlyPrice}`,children:T.jsx(yh,{value:Number(c?m.price:m.yearlyPrice),format:{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2},transformTiming:{duration:500,easing:"ease-out"},willChange:!0,className:"font-variant-numeric: tabular-nums"})}):c?`$${m.price}`:`$${m.yearlyPrice}`}),T.jsxs("span",{className:"text-base-content/60 font-medium mb-1",children:["/ ",m.period.replace("per ","")]})]}),T.jsx("ul",{className:"mb-8 space-y-4 text-left",children:m.features.map((y,V)=>T.jsxs("li",{className:"flex items-start gap-3",children:[T.jsx("div",{className:"mt-1 rounded-full bg-primary/10 p-1",children:T.jsx(Co,{className:"h-3 w-3 text-primary"})}),T.jsx("span",{className:"text-base-content/80 text-sm",children:y})]},V))}),T.jsxs("div",{className:"mt-auto",children:[T.jsx("button",{type:"button",onClick:()=>x(m,m.href.startsWith("http")),className:At(Ii({variant:m.isPopular?"default":"outline",size:"lg"}),"w-full rounded-xl text-base font-bold transition-all duration-300 cursor-pointer","hover:bg-primary hover:text-primary-foreground hover:border-primary hover:ring-2 hover:ring-primary/20",m.isPopular&&"shadow-lg shadow-primary/20"),children:m.buttonText}),m.isPopular&&T.jsx("p",{className:"mt-4 text-xs font-medium text-base-content/50",children:r.pricing.guarantee})]})]})]},w))})]})}const X={plans:{basic:{monthly:{prod:"prod_2wV56ZvS4OqW5hyTqY6twM",test:"prod_AGJqoBPWXQJyDPvdSFaBD"},yearly:{prod:"prod_1VwEHuDp7F2lIIWRUKgO5Z",test:"prod_1hqJ2UhuPfuKDfWkFZ8bwf"}},pro:{monthly:{prod:"prod_O9YF2fd8k2ckQeYBASWNx",test:"prod_6YXMpMHXW4xai1rcCa7ifZ"},yearly:{prod:"prod_5LJfpP0at7Wgx94dNTJQJl",test:"prod_7mGrA0A2VMOPEbl2B6EYtW"}},max:{monthly:{prod:"prod_1kC8u1E5OMBjL09A0D9ZFl",test:"prod_2SV9VVqdO8sv6LyDaQ8WCr"},yearly:{prod:"prod_5PI19K3YTkx2DMsw8fJlQO",test:"prod_7Mt0Va3PyzCB3S0HaDmBOn"}}},packs:{"5k":{prod:"prod_6Qg0KKesXTZcSxKAHvWnGT",test:"prod_3XRQpAWFTi7VeVf7SBDOr"},"10k":{prod:"prod_19RUB1UBCPy1zOQ7kFepYa",test:"prod_6fE7gekMQFUucmy0bIoFvE"},"25k":{prod:"prod_3Jf6KaWMybutBmqIq11lc1",test:"prod_4xX7Q5mBKXSJ3saF4hFGhx"}}};function bh(t,e){const n=t==="prod"?"https://www.creem.io/payment":"https://www.creem.io/test/payment";return[{name:e.pricing.plans.basic.name,planId:"basic",price:"9.99",yearlyPrice:"4.99",period:e.pricing.monthly.toLowerCase(),features:e.pricing.plans.basic.features,description:e.pricing.plans.basic.description,buttonText:e.pricing.plans.basic.button,href:`${n}/${X.plans.basic.monthly[t]}`,yearlyHref:`${n}/${X.plans.basic.yearly[t]}`,isPopular:!1},{name:e.pricing.plans.pro.name,planId:"pro",price:"19.99",yearlyPrice:"9.99",period:e.pricing.monthly.toLowerCase(),features:e.pricing.plans.pro.features,description:e.pricing.plans.pro.description,buttonText:e.pricing.plans.pro.button,href:`${n}/${X.plans.pro.monthly[t]}`,yearlyHref:`${n}/${X.plans.pro.yearly[t]}`,isPopular:!0},{name:e.pricing.plans.max.name,planId:"max",price:"39.99",yearlyPrice:"19.99",period:e.pricing.monthly.toLowerCase(),features:e.pricing.plans.max.features,description:e.pricing.plans.max.description,buttonText:e.pricing.plans.max.button,href:`${n}/${X.plans.max.monthly[t]}`,yearlyHref:`${n}/${X.plans.max.yearly[t]}`,isPopular:!1}]}function vh(t){const e=t==="prod"?"https://www.creem.io/payment":"https://www.creem.io/test/payment";return[{words:"5,000",price:"2.99",pricePerWord:"0.0006",productId:X.packs["5k"][t],href:`${e}/${X.packs["5k"][t]}`},{words:"10,000",price:"4.99",pricePerWord:"0.0005",popular:!0,productId:X.packs["10k"][t],href:`${e}/${X.packs["10k"][t]}`},{words:"25,000",price:"9.99",pricePerWord:"0.0004",productId:X.packs["25k"][t],href:`${e}/${X.packs["25k"][t]}`}]}function wh({isAuthenticated:t,onAuthRequired:e,creemMode:n="prod"}){const{language:s}=vi(),i=Pe(s),o=v.useMemo(()=>bh(n,i),[n,i]),r=v.useMemo(()=>vh(n),[n]);return T.jsxs("section",{className:"bg-base-200/50",id:"pricing",children:[T.jsx(xh,{plans:o,title:i.pricing.title,de
7scription:i.pricing.description,isAuthenticated:t,onAuthRequired:e}),T.jsx("div",{className:"container mx-auto px-4 pb-20",children:T.jsxs("div",{className:"max-w-4xl mx-auto",children:[T.jsxs("div",{className:"text-center mb-10",children:[T.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-accent/10 text-accent text-sm font-medium mb-4",children:[T.jsx(Vo,{size:16}),i.pricing.payAsYouGo.oneTime]}),T.jsx("h3",{className:"text-2xl font-bold mb-2",children:i.pricing.payAsYouGo.title}),T.jsx("p",{className:"text-base-content/60",children:i.pricing.payAsYouGo.subtitle})]}),T.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:r.map(a=>T.jsxs("div",{className:`relative rounded-2xl p-6 bg-base-100 border text-center transition-all hover:shadow-lg ${a.popular?"border-accent border-2":"border-base-300"}`,children:[a.popular&&T.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-accent text-accent-content py-1 px-3 rounded-full text-xs font-bold",children:i.pricing.bestValue}),T.jsxs("div",{className:"text-3xl font-bold mb-1",children:["$",a.price]}),T.jsxs("div",{className:"text-lg text-base-content/70 mb-4",children:[a.words," ",i.pricing.payAsYouGo.unit]}),T.jsx("ul",{className:"text-left text-sm space-y-2 mb-6",children:i.pricing.payAsYouGo.features.map((l,c)=>T.jsxs("li",{className:"flex items-center gap-2",children:[T.jsx(Mo,{className:"text-success",size:14}),T.jsx("span",{children:l})]},c))}),T.jsx("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:`btn btn-block ${a.popular?"btn-accent":"btn-outline"}`,children:i.pricing.payAsYouGo.buyNow})]},a.words))}),T.jsx("p",{className:"text-center text-sm text-base-content/50 mt-6",children:i.pricing.payAsYouGo.footer})]})})]})}function Lh({matches:t,params:e}){const n=Ro("/pricing",t[0].data.DOMAIN),s=e.lang||Ao,i=Pe(s);return[{title:`${i.header.pricing} - HumanizeText AI`},{name:"description",content:i.pricing.description},n]}const jh=wo(function(){const[e,n]=v.useState(new Set([0])),s=Do(c=>c.user),i=v.useRef(null),{creemMode:o,lang:r}=To(),a=Pe(r),l=v.useCallback(()=>{var c;(c=i.current)==null||c.login()},[]);return T.jsxs("main",{className:"min-h-screen bg-base-200",children:[T.jsx("div",{className:"hidden",children:T.jsx(So,{ref:i})}),T.jsx("div",{className:"pt-20",children:T.jsx(wh,{isAuthenticated:!!s,onAuthRequired:l,creemMode:o})}),T.jsx("section",{className:"py-20 bg-base-100/50",children:T.jsxs("div",{className:"container mx-auto px-4",children:[T.jsxs("div",{className:"text-center mb-16",children:[T.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:a.pricing.faq.title}),T.jsx("p",{className:"text-xl text-base-content/60 max-w-2xl mx-auto",children:a.pricing.faq.subtitle})]}),T.jsx("div",{className:"max-w-3xl mx-auto space-y-4",children:a.pricing.faq.items.map(({q:c,a:u},d)=>T.jsxs("div",{className:"glass-card rounded-xl overflow-hidden",children:[T.jsxs("button",{className:"w-full px-6 py-4 flex items-center justify-between text-left hover:bg-base-300/30 transition-colors",onClick:()=>{const h=new Set(e);h.has(d)?h.delete(d):h.add(d),n(h)},children:[T.jsx("span",{className:"font-semibold pr-4",children:c}),T.jsx(Po,{size:20,className:`shrink-0 transition-transform ${e.has(d)?"rotate-180":""}`})]}),e.has(d)&&T.jsx("div",{className:"px-6 pb-4 text-base-content/70",children:u})]},d))})]})})]})});export{jh as default,Lh as meta};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.