1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7670,20783,91918,75157,t=>{"use strict";function e(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}(t))&&(r&&(r+=" "),r+=e);return r}t.s(["clsx",0,e],7670);var i=t.i(71645);function r(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function n(...t){return e=>{let i=!1,n=t.map(t=>{let n=r(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():r(t[e],null)}}}}t.s(["composeRefs",0,n,"useComposedRefs",0,function(...t){return i.useCallback(n(...t),t)}],20783);var s=t.i(43476);function o(t){var e;let r,o=(e=t,(r=i.forwardRef((t,e)=>{let{children:r,...s}=t;if(i.isValidElement(r)){var o;let t,a,l=(o=r,(a=(t=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?o.ref:(a=(t=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(t,e){let i={...e};for(let r in e){let n=t[r],s=e[r];/^on[A-Z]/.test(r)?n&&s?i[r]=(...t)=>{let e=s(...t);return n(...t),e}:n&&(i[r]=n):"style"===r?i[r]={...n,...s}:"className"===r&&(i[r]=[n,s].filter(Boolean).join(" "))}return{...t,...i}}(s,r.props);return r.type!==i.Fragment&&(u.ref=e?n(e,l):l),i.cloneElement(r,u)}return i.Children.count(r)>1?i.Children.only(null):null})).displayName=`${e}.SlotClone`,r),a=i.forwardRef((t,e)=>{let{children:r,...n}=t,a=i.Children.toArray(r),l=a.find(d);if(l){let t=l.props.children,r=a.map(e=>e!==l?e:i.Children.count(t)>1?i.Children.only(null):i.isValidElement(t)?t.props.children:null);return(0,s.jsx)(o,{...n,ref:e,children:i.isValidElement(t)?i.cloneElement(t,void 0,r):null})}return(0,s.jsx)(o,{...n,ref:e,children:r})});return a.displayName=`${t}.Slot`,a}var a=o("Slot"),l=Symbol("radix.slottable");function u(t){let e=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});return e.displayName=`${t}.Slottable`,e.__radixId=l,e}var h=u("Slottable");function d(t){return i.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===l}t.s(["Root",0,a,"Slot",0,a,"Slottable",0,h,"createSlot",0,o,"createSlottable",0,u],91918);let c=(t=new Map,e=null,i)=>({nextPart:t,validators:e,classGroupId:i}),p=[],m=(t,e,i)=>{if(0==t.length-e)return i.classGroupId;let r=t[e],n=i.nextPart.get(r);if(n){let i=m(t,e+1,n);if(i)return i}let s=i.validators;if(null===s)return;let o=0===e?t.join("-"):t.slice(e).join("-"),a=s.length;for(let t=0;t<a;t++){let e=s[t];if(e.validator(o))return e.classGroupId}},f=(t,e)=>{let i=c();for(let r in t)g(t[r],i,r,e);return i},g=(t,e,i,r)=>{let n=t.length;for(let s=0;s<n;s++)y(t[s],e,i,r)},y=(t,e,i,r)=>{"string"==typeof t?v(t,e,i):"function"==typeof t?b(t,e,i,r):x(t,e,i,r)},v=(t,e,i)=>{(""===t?e:w(e,t)).classGroupId=i},b=(t,e,i,r)=>{k(t)?g(t(r),e,i,r):(null===e.validators&&(e.validators=[]),e.validators.push({classGroupId:i,validator:t}))},x=(t,e,i,r)=>{let n=Object.entries(t),s=n.length;for(let t=0;t<s;t++){let[s,o]=n[t];g(o,w(e,s),i,r)}},w=(t,e)=>{let i=t,r=e.split("-"),n=r.length;for(let t=0;t<n;t++){let e=r[t],n=i.nextPart.get(e);n||(n=c(),i.nextPart.set(e,n)),i=n}return i},k=t=>"isThemeGetter"in t&&!0===t.isThemeGetter,T=[],S=(t,e,i,r,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:i,maybePostfixModifierPosition:r,isExternal:n}),P=/\s+/,A=t=>{let e;if("string"==typeof t)return t;let i="";for(let r=0;r<t.length;r++)t[r]&&(e=A(t[r]))&&(i&&(i+=" "),i+=e);return i},E=[],M=t=>{let e=e=>e[t]||E;return e.isThemeGetter=!0,e},C=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,V=/^\((?:(\w[\w-]*):)?(.+)\)$/i,R=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,D=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,L=/\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$/,j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,B=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,F=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=t=>R.test(t),O=t=>!!t&&!Number.isNaN(Number(t)),z=t=>!!t&&Number.isInteger(Number(t)),U=t=>t.endsWith("%")&&O(t.slice(0,-1)),$=t=>D.test(t),N=()=>!0,W=t=>L.test(t)&&!j.test(t),Y=()=>!1,H=t=>B.test(t),X=t=>F.test(t),G=t=>!K(t)&&!tr(t),_=t=>td(t,tf,Y),K=t=>C.test(t),q=t=>td(t,tg,W),Z=t=>td(t,ty,O),J=t=>td(t,tb,N),Q=t=>td(t,tv,Y),tt=t=>td(t,tp,Y),te=t=>td(t,tm,X),ti=t=>td(t,tx,H),tr=t=>V.test(t),tn=t=>tc(t,tg),ts=t=>tc(t,tv),to=t=>tc(t,tp),ta=t=>tc(t,tf),tl=t=>tc(t,tm),tu=t=>tc(t,tx,!0),th=t=>tc(t,tb,!0),td=(t,e,i)=>{let r=C.exec(t);return!!r&&(r[1]?e(r[1]):i(r[2]))},tc=(t,e,i=!1)=>{let r=V.exec(t);return!!r&&(r[1]?e(r[1]):i)},tp=t=>"position"===t||"percentage"===t,tm=t=>"image"===t||"url"===t,tf=t=>"length"===t||"size"===t||"bg-size"===t,tg=t=>"length"===t,ty=t=>"number"===t,tv=t=>"family-name"===t,tb=t=>"number"===t||"weight"===t,tx=t=>"shadow"===t,tw=((t,...e)=>{let i,r,n,s,o=t=>{let e=r(t);if(e)return e;let s=((t,e)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],a=t.trim().split(P),l="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{isExternal:u,modifiers:h,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=i(e);if(u){l=e+(l.length>0?" "+l:l);continue}let m=!!p,f=r(m?c.substring(0,p):c);if(!f){if(!m||!(f=r(c))){l=e+(l.length>0?" "+l:l);continue}m=!1}let g=0===h.length?"":1===h.length?h[0]:s(h).join(":"),y=d?g+"!":g,v=y+f;if(o.indexOf(v)>-1)continue;o.push(v);let b=n(f,m);for(let t=0;t<b.length;++t){let e=b[t];o.push(y+e)}l=e+(l.length>0?" "+l:l)}return l})(t,i);return n(t,s),s};return s=a=>{var l;let u;return r=(i={cache:(t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,i=Object.create(null),r=Object.create(null),n=(n,s)=>{i[n]=s,++e>t&&(e=0,r=i,i=Object.create(null))};return{get(t){let e=i[t];return void 0!==e?e:void 0!==(e=r[t])?(n(t,e),e):void 0},set(t,e){t in i?i[t]=e:n(t,e)}}})((l=e.reduce((t,e)=>e(t),t())).cacheSize),parseClassName:(t=>{let{prefix:e,experimentalParseClassName:i}=t,r=t=>{let e,i=[],r=0,n=0,s=0,o=t.length;for(let a=0;a<o;a++){let o=t[a];if(0===r&&0===n){if(":"===o){i.push(t.slice(s,a)),s=a+1;continue}if("/"===o){e=a;continue}}"["===o?r++:"]"===o?r--:"("===o?n++:")"===o&&n--}let a=0===i.length?t:t.slice(s),l=a,u=!1;return a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0),S(i,u,l,e&&e>s?e-s:void 0)};if(e){let t=e+":",i=r;r=e=>e.startsWith(t)?i(e.slice(t.length)):S(T,!1,e,void 0,!0)}if(i){let t=r;r=e=>i({className:e,parseClassName:t})}return r}
1)(l),sortModifiers:(u=new Map,l.orderSensitiveModifiers.forEach((t,e)=>{u.set(t,1e6+e)}),t=>{let e=[],i=[];for(let r=0;r<t.length;r++){let n=t[r],s="["===n[0],o=u.has(n);s||o?(i.length>0&&(i.sort(),e.push(...i),i=[]),e.push(n)):i.push(n)}return i.length>0&&(i.sort(),e.push(...i)),e}),...(t=>{let e=(t=>{let{theme:e,classGroups:i}=t;return f(i,e)})(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:t=>{if(t.startsWith("[")&&t.endsWith("]")){var i;let e,r,n;return -1===(i=t).slice(1,-1).indexOf(":")?void 0:(r=(e=i.slice(1,-1)).indexOf(":"),(n=e.slice(0,r))?"arbitrary.."+n:void 0)}let r=t.split("-"),n=+(""===r[0]&&r.length>1);return m(r,n,e)},getConflictingClassGroupIds:(t,e)=>{if(e){let e=r[t],n=i[t];if(e){if(n){let t=Array(n.length+e.length);for(let e=0;e<n.length;e++)t[e]=n[e];for(let i=0;i<e.length;i++)t[n.length+i]=e[i];return t}return e}return n||p}return i[t]||p}}})(l)}).cache.get,n=i.cache.set,s=o,o(a)},(...t)=>s(((...t)=>{let e,i,r=0,n="";for(;r<t.length;)(e=t[r++])&&(i=A(e))&&(n&&(n+=" "),n+=i);return n})(...t))})(()=>{let t=M("color"),e=M("font"),i=M("text"),r=M("font-weight"),n=M("tracking"),s=M("leading"),o=M("breakpoint"),a=M("container"),l=M("spacing"),u=M("radius"),h=M("shadow"),d=M("inset-shadow"),c=M("text-shadow"),p=M("drop-shadow"),m=M("blur"),f=M("perspective"),g=M("aspect"),y=M("ease"),v=M("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...x(),tr,K],k=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],S=()=>[tr,K,l],P=()=>[I,"full","auto",...S()],A=()=>[z,"none","subgrid",tr,K],E=()=>["auto",{span:["full",z,tr,K]},z,tr,K],C=()=>[z,"auto",tr,K],V=()=>["auto","min","max","fr",tr,K],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...S()],j=()=>[I,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],B=()=>[I,"screen","full","dvw","lvw","svw","min","max","fit",...S()],F=()=>[I,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],W=()=>[t,tr,K],Y=()=>[...x(),to,tt,{position:[tr,K]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",ta,_,{size:[tr,K]}],td=()=>[U,tn,q],tc=()=>["","none","full",u,tr,K],tp=()=>["",O,tn,q],tm=()=>["solid","dashed","dotted","double"],tf=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],tg=()=>[O,U,to,tt],ty=()=>["","none",m,tr,K],tv=()=>["none",O,tr,K],tb=()=>["none",O,tr,K],tx=()=>[O,tr,K],tw=()=>[I,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[N],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[G],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",O],text:[$],"text-shadow":[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",I,K,tr,g]}],container:["container"],columns:[{columns:[O,K,tr,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}
vendor: 4,709 bytes, line 1
1],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[z,"auto",tr,K]}],basis:[{basis:[I,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,I,"auto","initial","none",K]}],grow:[{grow:["",O,tr,K]}],shrink:[{shrink:["",O,tr,K]}],order:[{order:[z,"first","last","none",tr,K]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...F()]}],"min-block-size":[{"min-block":["auto",...F()]}],"max-block-size":[{"max-block":["none",...F()]}],w:[{w:[a,"screen",...j()]}],"min-w":[{"min-w":[a,"screen","none",...j()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",i,tn,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,th,J]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",U,K]}],"font-family":[{font:[ts,Q,e]}],"font-features":[{"font-features":[K]}],"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:[n,tr,K]}],"line-clamp":[{"line-clamp":[O,"none",tr,Z]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",tr,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",tr,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tm(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",tr,q]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[O,"auto",tr,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tr,K]}],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",tr,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},z,tr,K],radial:["",tr,K],conic:[z,tr,K]},tl,te]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:td()}
vendor: 7,349 bytes, line 1
1],"gradient-via-pos":[{via:td()}],"gradient-to-pos":[{to:td()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:tc()}],"rounded-s":[{"rounded-s":tc()}],"rounded-e":[{"rounded-e":tc()}],"rounded-t":[{"rounded-t":tc()}],"rounded-r":[{"rounded-r":tc()}],"rounded-b":[{"rounded-b":tc()}],"rounded-l":[{"rounded-l":tc()}],"rounded-ss":[{"rounded-ss":tc()}],"rounded-se":[{"rounded-se":tc()}],"rounded-ee":[{"rounded-ee":tc()}],"rounded-es":[{"rounded-es":tc()}],"rounded-tl":[{"rounded-tl":tc()}],"rounded-tr":[{"rounded-tr":tc()}],"rounded-br":[{"rounded-br":tc()}],"rounded-bl":[{"rounded-bl":tc()}],"border-w":[{border:tp()}],"border-w-x":[{"border-x":tp()}],"border-w-y":[{"border-y":tp()}],"border-w-s":[{"border-s":tp()}],"border-w-e":[{"border-e":tp()}],"border-w-bs":[{"border-bs":tp()}],"border-w-be":[{"border-be":tp()}],"border-w-t":[{"border-t":tp()}],"border-w-r":[{"border-r":tp()}],"border-w-b":[{"border-b":tp()}],"border-w-l":[{"border-l":tp()}],"divide-x":[{"divide-x":tp()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":tp()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...tm(),"hidden","none"]}],"divide-style":[{divide:[...tm(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...tm(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,tr,K]}],"outline-w":[{outline:["",O,tn,q]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",h,tu,ti]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",d,tu,ti]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:tp()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[O,q]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":tp()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",c,tu,ti]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[O,tr,K]}],"mix-blend":[{"mix-blend":[...tf(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":tf()}],"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":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":tg()}],"mask-image-linear-to-pos":[{"mask-linear-to":tg()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":tg()}],"mask-image-t-to-pos":[{"mask-t-to":tg()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":tg()}],"mask-image-r-to-pos":[{"mask-r-to":tg()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":tg()}],"mask-image-b-to-pos":[{"mask-b-to":tg()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":tg()}],"mask-image-l-to-pos":[{"mask-l-to":tg()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":tg()}],"mask-image-x-to-pos":[{"mask-x-to":tg()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":tg()}],"mask-image-y-to-pos":[{"mask-y-to":tg()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[tr,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":tg()}],"mask-image-radial-to-pos":[{"mask-radial-to":tg()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"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":x()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":tg()}],"mask-image-conic-to-pos":[{"mask-conic-to":tg()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",tr,K]}],filter:[{filter:["","none",tr,K]}],blur:[{blur:ty()}],brightness:[{brightness:[O,tr,K]}],contrast:[{contrast:[O,tr,K]}],"drop-shadow":[{"drop-shadow":["","none",p,tu,ti]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",O,tr,K]}],"hue-rotate":[{"hue-rotate":[O,tr,K]}],invert:[{invert:["",O,tr,K]}],saturate:[{saturate:[O,tr,K]}],sepia:[{sepia:["",O,tr,K]}],"backdrop-filter":[{"backdrop-filter":["","none",tr,K]}],"backdrop-blur":[{"backdrop-blur":ty()}],"backdrop-brightness":[{"backdrop-brightness":[O,tr,K]}],"backdrop-contrast":[{"backdrop-contrast":[O,tr,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,tr,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,tr,K]}],"backdrop-invert":[{"backdrop-invert":["",O,tr,K]}],"backdrop-opacity":[{"backdrop-opacity":[O,tr,K]}],"backdrop-saturate":[{"backdrop-saturate":[O,tr,K]}],"backdrop-sepia":[{"backdrop-sepia":["",O,tr,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",tr,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",tr,K]}],ease:[{ease:["linear","initial",y,tr,K]}],delay:[{delay:[O,tr,K]}],animate:[{animate:["none",v,tr,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,tr,K]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:tv()}],"rotate-x":[{"rotate-x":tv()}],"rotate-y":[{"rotate-y":tv()}],"rotate-z":[{"rotate-z":tv()}],scale:[{scale:tb()}],"scale-x":[{"scale-x":tb()}],"scale-y":[{"scale-y":tb()}],"scale-z":[{"scale-z":tb()}],"scale-3d":["scale-3d"],skew:[{skew:tx()}],"skew-x":[{"skew-x":tx()}],"skew-y":[{"skew-y":tx()}],transform:[{transform:[tr,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tw()}],"translate-x":[{"translate-x":tw()}],"translate-y":[{"translate-y":tw()}],"translate-z":[{"translate-z":tw()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}
1],"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",tr,K]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",tr,K]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[O,tn,q,Z]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}});t.s(["cn",0,function(...t){return tw(e(t))}],75157)},19455,t=>{"use strict";let e,i;var r=t.i(43476),n=t.i(7670);let s=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,o=n.clsx;var a=t.i(91918),a=a,l=t.i(75157);let u=(e="group/button inline-flex shrink-0 items-center justify-center rounded-3xl border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-secondary focus-visible:ring-3 focus-visible:ring-secondary/50 active:not-aria-[haspopup]:scale-95 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i={variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-none",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50 shadow-none",secondary:"bg-muted text-foreground shadow-none hover:bg-muted/80 hover:-translate-y-0.5 transition-transform duration-200 aria-expanded:bg-muted aria-expanded:text-foreground",ghost:"bg-transparent text-primary hover:bg-muted aria-expanded:bg-muted aria-expanded:text-primary dark:hover:bg-muted/50 border-none shadow-none",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focu
1s-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",lg:"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-9","icon-xs":"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}},t=>{var r;if((null==i?void 0:i.variants)==null)return o(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:n,defaultVariants:a}=i,l=Object.keys(n).map(e=>{let i=null==t?void 0:t[e],r=null==a?void 0:a[e];if(null===i)return null;let o=s(i)||s(r);return n[e][o]}),u=t&&Object.entries(t).reduce((t,e)=>{let[i,r]=e;return void 0===r||(t[i]=r),t},{});return o(e,l,null==i||null==(r=i.compoundVariants)?void 0:r.reduce((t,e)=>{let{class:i,className:r,...n}=e;return Object.entries(n).every(t=>{let[e,i]=t;return Array.isArray(i)?i.includes({...a,...u}[e]):({...a,...u})[e]===i})?[...t,i,r]:t},[]),null==t?void 0:t.class,null==t?void 0:t.className)});t.s(["Button",0,function({className:t,variant:e="default",size:i="default",asChild:n=!1,...s}){let o=n?a.Root:"button";return(0,r.jsx)(o,{"data-slot":"button","data-variant":e,"data-size":i,className:(0,l.cn)(u({variant:e,size:i,className:t})),...s})}],19455)},46932,31178,37806,21476,47414,74008,64978,72846,t=>{"use strict";let e,i,r,n,s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(s),a=(t,e,i)=>i>e?e:i<t?t:i,l={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},u={...l,transform:t=>a(0,1,t)},h={...l,default:1},d=t=>Math.round(1e5*t)/1e5,c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(t,e)=>i=>!!("string"==typeof i&&p.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),f=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[n,s,o,a]=r.match(c);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},g={...l,transform:t=>Math.round(a(0,255,t))},y={test:m("rgb","red"),parse:f("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+g.transform(t)+", "+g.transform(e)+", "+g.transform(i)+", "+d(u.transform(r))+")"},v={test:m("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:y.transform},b=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),x=b("deg"),w=b("%"),k=b("px"),T=b("vh"),S=b("vw"),P={...w,parse:t=>w.parse(t)/100,transform:t=>w.transform(100*t)},A={test:m("hsl","hue"),parse:f("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+w.transform(d(e))+", "+w.transform(d(i))+", "+d(u.transform(r))+")"},E={test:t=>y.test(t)||v.test(t)||A.test(t),parse:t=>y.test(t)?y.parse(t):A.test(t)?A.parse(t):v.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?y.transform(t):A.transform(t),getAnimatableNone:t=>{let e=E.parse(t);return e.alpha=0,E.transform(e)}},M=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,C="number",V="color",R=/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 D(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=e.replace(R,t=>(E.test(t)?(r.color.push(s),n.push(V),i.push(E.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(C),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function L({split:t,types:e}){let i=t.length;return r=>{let n="";for(let s=0;s<i;s++)if(n+=t[s],void 0!==r[s]){let t=e[s];t===C?n+=d(r[s]):t===V?n+=E.transform(r[s]):n+=r[s]}return n}}let j={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(c)?.length||0)+(t.match(M)?.length||0)>0},parse:function(t){return D(t).values},createTransformer:function(t){return L(D(t))},getAnimatableNone:function(t){let e=D(t);return L(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:E.test(t)?E.getAnimatableNone(t):t)(t,e.split[i])))}},B=new Set(["brightness","contrast","saturate","opacity"]);function F(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(c)||[];
1if(!r)return t;let n=i.replace(r,""),s=+!!B.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let I=/\b([a-z-]*)\(.*?\)/gu,O={...j,getAnimatableNone:t=>{let e=t.match(I);return e?e.map(F).join(" "):t}},z={...j,getAnimatableNone:t=>{let e=j.parse(t);return j.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},U={...l,transform:Math.round},$={borderWidth:k,borderTopWidth:k,borderRightWidth:k,borderBottomWidth:k,borderLeftWidth:k,borderRadius:k,borderTopLeftRadius:k,borderTopRightRadius:k,borderBottomRightRadius:k,borderBottomLeftRadius:k,width:k,maxWidth:k,height:k,maxHeight:k,top:k,right:k,bottom:k,left:k,inset:k,insetBlock:k,insetBlockStart:k,insetBlockEnd:k,insetInline:k,insetInlineStart:k,insetInlineEnd:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockStart:k,paddingBlockEnd:k,paddingInline:k,paddingInlineStart:k,paddingInlineEnd:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockStart:k,marginBlockEnd:k,marginInline:k,marginInlineStart:k,marginInlineEnd:k,fontSize:k,backgroundPositionX:k,backgroundPositionY:k,rotate:x,rotateX:x,rotateY:x,rotateZ:x,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:x,skewX:x,skewY:x,distance:k,translateX:k,translateY:k,translateZ:k,x:k,y:k,z:k,perspective:k,transformPerspective:k,opacity:u,originX:P,originY:P,originZ:k,zIndex:U,fillOpacity:u,strokeOpacity:u,numOctaves:U},N={...$,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:O,WebkitFilter:O,mask:z,WebkitMask:z},W=t=>N[t],Y=()=>({translate:0,scale:1,origin:0,originPoint:0}),H=()=>({x:Y(),y:Y()}),X=()=>({min:0,max:0}),G=()=>({x:X(),y:X()}),_=t=>!!(t&&t.getVelocity),K=new Set(["width","height","top","left","right","bottom",...s]),q=t=>e=>e.test(t),Z=[l,k,w,x,S,T,{test:t=>"auto"===t,parse:t=>t}],J=t=>Z.find(q(t));var Q,tt=t.i(47167);let te=()=>{},ti=()=>{};tt.default;let tr=t=>e=>"string"==typeof e&&e.startsWith(t),tn=tr("--"),ts=tr("var(--"),to=t=>!!ts(t)&&ta.test(t.split("/*")[0].trim()),ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tl(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,th=t=>180*t/Math.PI,td=t=>tp(th(Math.atan2(t[1],t[0]))),tc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:td,rotateZ:td,skewX:t=>th(Math.atan(t[1])),skewY:t=>th(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tp=t=>((t%=360)<0&&(t+=360),t),tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tf=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:tf,scale:t=>(tm(t)+tf(t))/2,rotateX:t=>tp(th(Math.atan2(t[6],t[5]))),rotateY:t=>tp(th(Math.atan2(-t[2],t[0]))),rotateZ:td,rotate:td,skewX:t=>th(Math.atan(t[4])),skewY:t=>th(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ty(t){return+!!t.includes("scale")}function tv(t,e){let i,r;if(!t||"none"===t)return ty(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tg,r=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tc,r=e}if(!r)return ty(e);let s=i[e],o=r[1].split(",").map(tb);return"function"==typeof s?s(o):o[s]}function tb(t){return parseFloat(t.trim())}let tx=t=>t===l||t===k,tw=new Set(["x","y","z"]),tk=s.filter(t=>!tw.has(t)),tT={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:r})=>{let n=t.max-t.min;return"border-box"===r?n:n-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:r})=>{let n=t.max-t.min;return"border-box"===r?n:n-parseFloat(e)-parseFloat(i)},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})=>tv(e,"x"),y:(t,{transform:e})=>tv(e,"y")};tT.translateX=tT.x,tT.translateY=tT.y;let tS=t=>t,tP={},tA=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tE(t,e){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tA.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,r=new Set,n=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&n?i:r;return e&&o.add(t),a.add(t),t},cancel:t=>{r.delete(t),o.delete(t)},process:t=>{if(a=t,n){s=!0;return}n=!0;let o=i;
1i=r,r=o,i.forEach(u),e,l=0,i.clear(),n=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let s=tP.useManualTiming,o=s?n.timestamp:performance.now();i=!1,s||(n.delta=r?1e3/60:Math.max(Math.min(o-n.timestamp,40),1)),n.timestamp=o,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),h.process(n),d.process(n),c.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&e&&(r=!1,t(f))};return{schedule:tA.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<tA.length;e++)o[tA[e]].cancel(t)},state:n,steps:o}}let{schedule:tM,cancel:tC,state:tV,steps:tR}=tE("u">typeof requestAnimationFrame?requestAnimationFrame:tS,!0),tD=new Set,tL=!1,tj=!1,tB=!1;function tF(){if(tj){let t=Array.from(tD).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,r=(e=[],tk.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e);r.length&&(i.set(t,r),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tj=!1,tL=!1,tD.forEach(t=>t.complete(tB)),tD.clear()}function tI(){tD.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tj=!0)})}class tO{constructor(t,e,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tD.add(this),tL||(tL=!0,tM.read(tI),tM.resolveKeyframes(tF))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;if(null===t[0]){let n=r?.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tD.delete(this)}cancel(){"scheduled"===this.state&&(tD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tz=new Set([O,z]);function tU(t,e){let i=W(t);return tz.has(i)||(i=j),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t$=new Set(["auto","none","0"]);class tN extends tO{constructor(t,e,i,r,n){super(t,e,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&to(r=r.trim())){let n=function t(e,i,r=1){ti(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,s]=function(t){let e=tu.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${i??r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return to(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!K.has(i)||2!==t.length)return;let[r,n]=t,s=J(r),o=J(n);if(tl(r)!==tl(n)&&tT[i]){this.needsMeasurement=!0;return}if(s!==o)if(tx(s)&&tx(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tT[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!t$.has(e)&&D(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=tU(i,r)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tT[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let r=t.getValue(e);r&&r.jump(this.measuredOrigin,!1);let n=i.length-1,s=i[n];i[n]=tT[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tW=t=>1e3*t;function tY(t,e){-1===t.indexOf(e)&&t.push(e)}function tH(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tX{constructor(){this.subscriptions=[]}add(t){return tY(this.subscriptions,t),()=>tH(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tG(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function t_(t){let e;return()=>(void 0===e&&(e=t()),e)}let tK={};function tq(t,e){let i=t_(t);return()=>tK[e]??i()}let tZ=tq(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tJ=t=>null!==t;function tQ(t,{repeat:e,repeatType:i="loop"},r,n=1){let s=t.filter(tJ),o=n<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}class t0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t1={layout:0,mainThread:0,waapi:0},t5=t=>Array.isArray(t)&&"number"==typeof t[0],t2=tq(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t3=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)r+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},t4=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,t9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t4([0,.65,.55,1]),circOut:t4([.55,0,1,.45]),backIn:t4([.31,.01,.66,-.59]),backOut:t4([.33,1.53,.69,.99])};function t7(t){return"function"==typeof t&&"applyToOptions"in t}class t6 extends t0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,ti("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t7(t)&&t2()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?t2()?t3(e,i):"ease-out":t5(e)?t4(e):Array.isArray(e)?e.map(e=>t(e,i)||t9.easeOut):t9[e]}(a,n);Array.isArray(d)&&(h.easing=d);let c={delay:r,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(h,c);return p}(e,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=tQ(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tG(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tW(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tZ())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tS):r(this)}}let t8=new Set(["opacity","clipPath","filter","transform"]),{schedule:et}=tE(queueMicrotask,!1);function ee(){i=void 0}let ei={now:()=>(void 0===i&&ei.set(tV.isProcessing||tP.useManualTiming?tV.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(ee)}};class er{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ei.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ei.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tX);let i=this.events[t].add(e);return"change"===t?()=>{i(),tM.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return e&&e.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=ei.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function en(t,e){return new er(t,e)}let es=[...Z,E,j],eo=new WeakMap;function ea(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function el(t){return"string"==typeof t||Array.isArray(t)}let eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eh=["initial",...eu];function ed(t){return ea(t.animate)||eh.some(e=>el(t[e]))}function ec(t){return!!(ed(t)||t.variants)}let ep={current:null},em={current:!1},ef="u">typeof window;function eg(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ey(t,e,i,r){if("function"==typeof e){let[n,s]=eg(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=eg(r);e=e(void 0!==i?i:t.custom,n,s)}return e}let ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eb={};class ex{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tO,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=ei.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tM.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=ed(e),this.isVariantNode=ec(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&_(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eo.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(em.current||function(){if(em.current=!0,ef)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ep.current=t.matches;t.addEventListener("change",e),e()}else ep.current=!1}(),this.shouldReduceMotion=ep.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tC(this.notifyUpdate),tC(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t8.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:r,times:n,ease:s,duration:o}=e.accelerate,a=new t6({element:this.current,name:t,keyframes:r,times:n,ease:s,duration:tW(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let r=o.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tM.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eb){let e=eb[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ev.length;e++){let i=ev[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if(_(n))t.addValue(r,n);else if(_(s))t.addValue(r,en(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,en(void 0!==e?e:n,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=en(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let r,n;if("string"==typeof i&&(r=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let r;r=i,!es.find(q(r))&&j.test(e)&&(i=tU(t,e))}this.setBaseTarget(t,_(i)?i.get():i)}return _(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=ey(this.props,i,this.presenceContext?.custom);r&&(e=r[t])}if(i&&void 0!==e)return e;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||_(r)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new tX),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){et.render(this.render)}}class ew extends ex{constructor(){super(...arguments),this.KeyframeResolver=tN}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;_(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ek(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eT=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eP=s.length;function eA(t,e,i){let{style:r,vars:n,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(o.has(t)){l=!0;continue}if(tn(t)){n[t]=i;continue}{let e=eT(i,$[t]);t.startsWith("origin")?(u=!0,a[t]=e):r[t]=e}}
1if(!e.transform&&(l||i?r.transform=function(t,e,i){let r="",n=!0;for(let o=0;o<eP;o++){let a=s[o],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||i){let t=eT(l,$[a]);if(!u){n=!1;let e=eS[a]||a;r+=`${e}(${t}) `}i&&(e[a]=t)}}return r=r.trim(),i?r=i(e,n?"":r):n&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;r.transformOrigin=`${t} ${e} ${i}`}}let eE={offset:"stroke-dashoffset",array:"stroke-dasharray"},eM={offset:"strokeDashoffset",array:"strokeDasharray"},eC=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eV(t,{attrX:e,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(eA(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),eC))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==r&&(d.scale=r),void 0!==n&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?eE:eM;t[s.offset]=`${-r}`,t[s.array]=`${e} ${i}`}(d,n,s,o,!1)}let eR=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"]),eD=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,{style:e,vars:i},r,n){let s,o=t.style;for(s in e)o[s]=e[s];for(s in n?.applyProjectionStyles(o,r),i)o.setProperty(s,i[s])}function ej(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eB={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!k.test(t))return t;else t=parseFloat(t);let i=ej(t,e.target.x),r=ej(t,e.target.y);return`${i}% ${r}%`}},eF=(t,e,i)=>t+(e-t)*i,eI={borderRadius:{...eB,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eB,borderTopRightRadius:eB,borderBottomLeftRadius:eB,borderBottomRightRadius:eB,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=j.parse(t);if(r.length>5)return t;let n=j.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=eF(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};function eO(t,{layout:e,layoutId:i}){return o.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eI[t]||"opacity"===t)}function ez(t,e,i){let r=t.style,n=e?.style,s={};if(!r)return s;for(let e in r)(_(r[e])||n&&_(n[e])||eO(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=r[e]);return s}function eU(t,e,i){let r=ez(t,e,i);for(let i in t)(_(t[i])||_(e[i]))&&(r[-1!==s.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}class e$ extends ew{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(o.has(e)){let t=W(e);return t&&t.default||0}return e=eR.has(e)?e:ek(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eU(t,e,i)}build(t,e,i){eV(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,r){for(let i in eL(t,e,void 0,r),e.attrs)t.setAttribute(eR.has(i)?i:ek(i),e.attrs[i])}mount(t){this.isSVGTag=eD(t.tagName),super.mount(t)}}function eN({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function eW(t){return void 0===t||1===t}function eY({scale:t,scaleX:e,scaleY:i}){return!eW(t)||!eW(e)||!eW(i)}function eH(t){return eY(t)||eX(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eX(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eG(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function e_(t,e=0,i=1,r,n){t.min=eG(t.min,e,i,r,n),t.max=eG(t.max,e,i,r,n)}function eK(t,{x:e,y:i}){e_(t.x,e.translate,e.scale,e.originPoint),e_(t.y,i.translate,i.scale,i.originPoint)}function eq(t,e){t.min+=e,t.max+=e}function eZ(t,e,i,r,n=.5){let s=eF(t.min,t.max,n);e_(t,e,i,s,r)}function eJ(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function eQ(t,e,i){let r=i??t;eZ(t.x,eJ(e.x,r.x),e.scaleX,e.scale,e.originX),eZ(t.y,eJ(e.y,r.y),e.scaleY,e.scale,e.originY)}function e0(t,e){return eN(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}class e1 extends ew{constructor(){super(...arguments),this.type="html",this.renderInstance=eL}readValueFromInstance(t,e){if(o.has(e))return this.projection?.isProjecting?ty(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tv(i,e)})(t,e);{let i=window.getComputedStyle(t),r=(tn(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e0(t,e)}build(t,e,i){eA(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return ez(t,e,i)}}var e5=t.i(71645);let e2=["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 e3(t){if("string"!=typeof t||t.includes("-"));else if(e2.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e4=t.i(43476);let e9=(0,e5.createContext)({});t.s(["LayoutGroupContext",0,e9],31178);let e7=(0,e5.createContext)({strict:!1}),e6=(0,e5.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e6],37806);let e8=(0,e5.createContext)({});function it(t){return Array.isArray(t)?t.join(" "):t}let ie=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ii(t,e,i){for(let r in e)_(e[r])||eO(r,i)||(t[r]=e[r])}let ir=()=>({...ie(),attrs:{}}),is=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function io(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||is.has(t)}let ia=t=>!io(t);try{Q=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof Q&&(ia=t=>t.startsWith("on")?!io(t):Q(t))}catch{}function il(t){return _(t)?t.get():t}let iu=(0,e5.createContext)(null);function ih(t){let e=(0,e5.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["PresenceContext",0,iu],21476),t.s(["useConstant",0,ih],47414);let id=t=>(e,i)=>{let r=(0,e5.useContext)(e8),n=(0,e5.useContext)(iu),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,r,n){return{latestValues:function(t,e,i,r){let n={},s=r(t,{});for(let t in s)n[t]=il(s[t]);let{initial:o,animate:a}=t,l=ed(t),u=ec(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!ea(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let r=ey(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,r,n,t),renderState:e()}})(t,e,r,n);return i?s():ih(s)},ic=id({scrapeMotionValuesFromProps:ez,createRenderState:ie}),ip=id({scrapeMotionValuesFromProps:eU,createRenderState:ir}),im={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"]},ig=!1;function iy(){return!function(){if(ig)return;let t={};for(let e in im)t[e]={isEnabled:t=>im[e].some(e=>!!t[e])};eb=t,ig=!0}(),eb}let iv=Symbol.for("motionComponentSymbol"),ib="data-"+ek("framerAppearId"),ix=(0,e5.createContext)({});function iw(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let ik="u">typeof window?e5.useLayoutEffect:e5.useEffect;function iT(t,{forwardMotionProps:e=!1,type:i}={},r,n){r&&function(t){let e=iy();for(let i in t)e[i]={...e[i],...t[i]};eb=e}(r);let s=i?"svg"===i:e3(t),o=s?ip:ic;function a(i,r){var a;let l,u,h,d={...(0,e5.useContext)(e6),...i,layoutId:function({layoutId:t}){let e=(0,e5.useContext)(e9).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:c}=d,p=function(t){let{initial:e,animate:i}=function(t,e){if(ed(t)){let{initial:e,animate:i}=t;return{initial:!1===e||el(e)?e:void 0,animate:el(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e5.useContext)(e8));return(0,e5.useMemo)(()=>({initial:e,animate:i}),[it(e),it(i)])}(i),m=o(i,c);if(!c&&"u">typeof window){(0,e5.useContext)(e7).strict;let e=function(t){let{drag:e,layout:i}=iy();if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
1(d);l=e.MeasureLayout,p.visualElement=function(t,e,i,r,n,s){let{visualElement:o}=(0,e5.useContext)(e8),a=(0,e5.useContext)(e7),l=(0,e5.useContext)(iu),u=(0,e5.useContext)(e6),h=u.reducedMotion,d=u.skipAnimations,c=(0,e5.useRef)(null),p=(0,e5.useRef)(!1);r=r||a.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h,skipAnimations:d,isSVG:s}),p.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let m=c.current,f=(0,e5.useContext)(ix);m&&!m.projection&&n&&("html"===m.type||"svg"===m.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&iw(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(c.current,i,n,f);let g=(0,e5.useRef)(!1);(0,e5.useInsertionEffect)(()=>{m&&g.current&&m.update(i,l)});let y=i[ib],v=(0,e5.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return ik(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,e5.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,m,d,n,e.ProjectionNode,s)}return(0,e4.jsxs)(e8.Provider,{value:p,children:[l&&p.visualElement?(0,e4.jsx)(l,{visualElement:p.visualElement,...d}):null,function(t,e,i,{latestValues:r},n,s=!1,o){let a=(o??e3(t)?function(t,e,i,r){let n=(0,e5.useMemo)(()=>{let i=ir();return eV(i,e,eD(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ii(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,r,n={},s=(i=t.style||{},ii(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,e5.useMemo)(()=>{let i=ie();return eA(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n})(e,r,n,t),l=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&!_(t[n])&&(ia(n)||!0===i&&io(n)||!e&&!io(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(e,"string"==typeof t,s),u=t!==e5.Fragment?{...l,...a,ref:i}
1:{},{children:h}=e,d=(0,e5.useMemo)(()=>_(h)?h.get():h,[h]);return(0,e5.createElement)(t,{...u,children:d})}(t,i,(a=p.visualElement,u=(0,e5.useRef)(r),(0,e5.useInsertionEffect)(()=>{u.current=r}),h=(0,e5.useRef)(null),(0,e5.useCallback)(t=>{t&&m.onMount?.(t);let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(h.current=i)}else h.current?(h.current(),h.current=null):e(t);else e&&(e.current=t);a&&(t?a.mount(t):a.unmount())},[a])),m,c,e,s)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e5.forwardRef)(a);return l[iv]=t,l}t.s(["useIsomorphicLayoutEffect",0,ik],74008);class iS{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iP(t,e,i){let r=t.getProps();return ey(r,e,void 0!==i?i:r.custom,t)}function iA(t,e){if(t?.inherit&&e){let{inherit:i,...r}=t;return{...e,...r}}return t}function iE(t,e){let i=t?.[e]??t?.default??t;return i!==t?iA(i,t):i}let iM=t=>Array.isArray(t);function iC(t,e){let i=t.getValue("willChange");if(_(i)&&i.add)return i.add(e);if(!i&&tP.WillChange){let i=new tP.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iV=(t,e)=>i=>e(t(i)),iR=(...t)=>t.reduce(iV);function iD(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iL(t,e){return i=>i>0?e:t}let ij=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},iB=[v,y,A];function iF(t){let e=iB.find(e=>e.test(t));if(te(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===A&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=iD(a,r,t+1/3),s=iD(a,r,t),o=iD(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let iI=(t,e)=>{let i=iF(t),r=iF(e);if(!i||!r)return iL(t,e);let n={...i};return t=>(n.red=ij(i.red,r.red,t),n.green=ij(i.green,r.green,t),n.blue=ij(i.blue,r.blue,t),n.alpha=eF(i.alpha,r.alpha,t),y.transform(n))},iO=new Set(["none","hidden"]);function iz(t,e){return i=>eF(t,e,i)}function iU(t){return"number"==typeof t?iz:"string"==typeof t?to(t)?iL:E.test(t)?iI:iW:Array.isArray(t)?i$:"object"==typeof t?E.test(t)?iI:iN:iL}function i$(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>iU(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function iN(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=iU(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let iW=(t,e)=>{let i=j.createTransformer(e),r=D(t),n=D(e);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return te(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iL(t,e);if(iO.has(t)&&!n.values.length||iO.has(e)&&!r.values.length)return iO.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iR(i$(function(t,e){let i=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let s=e.types[n],o=t.indexes[s][r[s]],a=t.values[o]??0;i[n]=a,r[s]++}return i}(r,n),n.values),i)};function iY(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eF(t,e,i):iU(t)(t,e)}let iH=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tM.update(e,t),stop:()=>tC(e),now:()=>tV.isProcessing?tV.timestamp:ei.now()}};function iX(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let iG=.01,i_=2,iK=.005,iq=.5;function iZ(t,e){return t*Math.sqrt(1-e*e)}let iJ=["duration","bounce"],iQ=["stiffness","damping","mass"];function i0(t,e){return e.some(e=>void 0!==t[e])}function i1(t=.3,e=.3){let i,r,n,s,o,l,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:d}=u,c=u.keyframes[0],p=u.keyframes[u.keyframes.length-1],m={done:!1,value:c},{stiffness:f,damping:g,mass:y,duration:v,velocity:b,isResolvedFromDuration:x}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i0(t,iQ)&&i0(t,iJ))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*a(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let n,s;te(t<=tW(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=a(.05,1,o),t=a(.01,10,t/1e3),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/iZ(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=iZ(Math.pow(e,2),o);return(r*i+i-s)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let l=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=tW(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),w=b||0,k=g/(2*Math.sqrt(f*y)),T=p-c,S=Math.sqrt(f/y)/1e3,P=5>Math.abs(T);if(h||(h=P?iG:i_),d||(d=P?iK:iq),k<1)n=iZ(S,k),s=(w+k*S*T)/n,i=t=>p-Math.exp(-k*S*t)*(s*Math.sin(n*t)+T*Math.cos(n*t)),o=k*S*s+T*n,l=k*S*T-s*n,r=t=>Math.exp(-k*S*t)*(o*Math.sin(n*t)+l*Math.cos(n*t));else if(1===k){i=t=>p-Math.exp(-S*t)*(T+(w+S*T)*t);let t=w+S*T;r=e=>Math.exp(-S*e)*(S*t*e-w)}else{let t=S*Math.sqrt(k*k-1);i=e=>{let i=Math.exp(-k*S*e),r=Math.min(t*e,300);return p-i*((w+k*S*T)*Math.sinh(r)+t*T*Math.cosh(r))/t};let e=(w+k*S*T)/t,n=k*S*e-T*t,s=k*S*T-e*t;r=e=>{let i=Math.exp(-k*S*e),r=Math.min(t*e,300);return i*(n*Math.sinh(r)+s*Math.cosh(r))}}let A={calculatedDuration:x&&v||null,velocity:t=>tW(r(t)),next:t=>{if(!x&&k<1){let e=Math.exp(-k*S*t),i=Math.sin(n*t),r=Math.cos(n*t),a=p-e*(s*i+T*r);return m.done=Math.abs(tW(e*(o*i+l*r)))<=h&&Math.abs(p-a)<=d,m.value=m.done?p:a,m}let e=i(t);return x?m.done=t>=v:m.done=Math.abs(tW(r(t)))<=h&&Math.abs(p-e)<=d,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(iX(A),2e4),e=t3(e=>A.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return A}function i5(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}function i2({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/r),b=t=>y+v(t),x=t=>{let e=v(t),i=b(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},w=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=i1({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:i5(b,t,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,x(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||x(t),m)}}}i1.applyToOptions=t=>{let e=function(t,e=100,i){let r=i({...t,keyframes:[0,e]}),n=Math.min(iX(r),2e4);return{type:"keyframes",ease:t=>r.next(n*t).value/e,duration:n/1e3}}(t,100,i1);return t.ease=e.ease,t.duration=tW(e.duration),t.type="keyframes",t};let i3=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i4(t,e,i,r){return t===e&&i===r?tS:n=>0===n||1===n?n:i3(function(t,e,i,r,n){let s,o,a=0;do(s=i3(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(n,0,1,t,i),e,r)}let i9=i4(.42,0,1,1),i7=i4(0,0,.58,1),i6=i4(.42,0,.58,1),i8=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,rt=t=>e=>1-t(1-e),re=i4(.33,1.53,.69,.99),ri=rt(re),rr=i8(ri),rn=t=>t>=1?1:(t*=2)<1?.5*ri(t):.5*(2-Math.pow(2,-10*(t-1))),rs=t=>1-Math.sin(Math.acos(t)),ro=rt(rs),ra=i8(rs),rl={linear:tS,easeIn:i9,easeInOut:i6,easeOut:i7,circIn:rs,circInOut:ra,circOut:ro,backIn:ri,backInOut:rr,backOut:re,anticipate:rn},ru=t=>{if(t5(t)){ti(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,r,n]=t;return i4(e,i,r,n)}return"string"==typeof t?(ti(void 0!==rl[t],`Invalid easing type '${t}'`,"invalid-easing-type"),rl[t]):t},rh=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r};function rd({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(ru):ru(r),l={done:!1,value:e[0]},u=function(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if(ti(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let r=[],n=i||tP.mix||iY,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=iR(Array.isArray(e)?e[i]||tS:e,s)),r.push(s)}return r}(e,r,n),u=l.length,h=i=>{if(o&&i<t[0])return e[0];let r=0;if(u>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=rh(t[r],t[r+1],i);return l[r](n)};return i?e=>h(a(t[0],t[s-1],e)):h}
1((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=rh(0,e,r);t.push(eF(i,1,n))}}(s=[0],e.length-1),s),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||i6).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(l.value=u(e),l.done=e>=t,l)}}let rc={decay:i2,inertia:i2,tween:rd,keyframes:rd,spring:i1};function rp(t){"string"==typeof t.type&&(t.type=rc[t.type])}let rm=t=>t/100;class rf extends t0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ei.now()&&this.tick(ei.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},t1.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;rp(t);let{type:e=rd,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=t,{keyframes:o}=t,a=e||rd;a!==rd&&"number"!=typeof o[0]&&(this.mixKeyframes=iR(rm,iY(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iX(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:r,totalDuration:n,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return r.next(0);let{delay:h=0,keyframes:d,repeat:c,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,w=r;if(c){let t=Math.min(this.currentTime,n)/l,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/l)):"mirror"===p&&(w=o)),x=a(0,1,i)*l}b?(this.delayState.value=d[0],i=this.delayState):i=w.next(x),s&&!b&&(i.value=s(i.value));let{done:k}=i;b||null===u||(k=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return T&&f!==i2&&(i.value=tQ(d,this.options,y,this.speed)),g&&g(i.value),T&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tW(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i5(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ei.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iH,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ei.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,t1.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let rg={anticipate:rn,backInOut:rr,circInOut:ra};class ry extends t6{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in rg&&(t.ease=rg[t.ease])}(t),rp(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new rf({...s,autoplay:!1}),l=Math.max(10,ei.now()-this.startTime),u=a(0,10,l-10),h=o.sample(l).value,{name:d}=this.options;n&&d&&tG(n,d,h),e.setWithVelocity(o.sample(Math.max(0,l-u)).value,h,u),o.stop()}}let rv=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(j.test(t)||"0"===t)&&!t.startsWith("url("));function rb(t){t.duration=0,t.type="keyframes"}let rx=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,rw=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rk=t_(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rT extends t0{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ei.now();const d={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||tO;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,r){let n;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=ei.now();let d=!0;
1!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=rv(n,e),a=rv(s,e);return te(o===a,`You are trying to animate ${e} from "${n}" to "${s}". "${o?s:n}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||t7(i))&&r)}(t,s,o,a)&&(d=!1,(tP.instantAnimations||!l)&&h?.(tQ(t,i,e)),t[0]=t[t.length-1],rb(i),i.repeat=0);let c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return rk()&&i&&(t8.has(i)||rw.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&rx.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}(c),m=c.motionValue?.owner?.current;if(p)try{n=new ry({...c,element:m})}catch{n=new rf(c)}else n=new rf(c);n.finished.then(()=>{this.notifyFinished()}).catch(tS),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tB=!0,tI(),tF(),tB=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rS={type:"spring",stiffness:500,damping:25,restSpeed:10},rP={type:"keyframes",duration:.8},rA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rE=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rM=(t,e,i,r={},n,s)=>a=>{let l=iE(r,t)||{},u=l.delay||r.delay||0,{elapsed:h=0}=r;h-=tW(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function(t){for(let e in t)if(!rE.has(e))return!0;return!1}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?rP:o.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:rS:rA)(t,d)),d.duration&&(d.duration=tW(d.duration)),d.repeatDelay&&(d.repeatDelay=tW(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(rb(d),0===d.delay&&(c=!0)),(tP.instantAnimations||tP.skipAnimations||n?.shouldSkipAnimations)&&(c=!0,rb(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!s&&void 0!==e.get()){let t=tQ(d.keyframes,l);if(void 0!==t)return void tM.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new rf(d):new rT(d)};function rC(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?iA(s,l):l;let u=s?.reduceMotion;r&&(s=r);let h=[],d=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let r=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||d&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(d,e))continue;let o={delay:i,...iE(s||{},e)},l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(n)&&n===l&&!o.velocity){tM.update(()=>r.set(n));continue}let c=!1;if(window.MotionHandoffAnimation){let i=t.props[ib];if(i){let t=window.MotionHandoffAnimation(i,e,tM);null!==t&&(o.startTime=t,c=!0)}}iC(t,e);let p=u??t.shouldReduceMotion;r.start(rM(e,r,n,p&&K.has(e)?{type:!1}:o,t,c));let m=r.animation;m&&h.push(m)}if(o){let e=()=>tM.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=iP(t,e)||{};for(let e in n={...n,...i}){var s;let i=iM(s=n[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,en(i))}}(t,o)});h.length?Promise.all(h).then(e):e()}return h}function rV(t,e,i,r=0,n=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*r;return"function"==typeof i?i(s,o):1===n?s*r:a-s*r}function rR(t,e,i={}){let r=iP(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(rC(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;
1return function(t,e,i=0,r=0,n=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(rR(l,e,{...o,delay:i+("function"==typeof r?0:r)+rV(t.variantChildren,l,r,n,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,r,s,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let rD=eh.length;function rL(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}let rj=[...eu].reverse(),rB=eu.length;function rF(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rI(){return{animate:rF(!0),whileInView:rF(),whileHover:rF(),whileTap:rF(),whileDrag:rF(),whileFocus:rF(),exit:rF()}}let rO=0;function rz(t){return[t("x"),t("y")]}function rU(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let r$={x:!1,y:!1};function rN(t){return t.max-t.min}function rW(t,e,i,r=.5){t.origin=r,t.originPoint=eF(e.min,e.max,t.origin),t.scale=rN(i)/rN(e),t.translate=eF(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function rY(t,e,i,r){rW(t.x,e.x,i.x,r?r.originX:void 0),rW(t.y,e.y,i.y,r?r.originY:void 0)}function rH(t,e,i,r=0){t.min=(r?eF(i.min,i.max,r):i.min)+e.min,t.max=t.min+rN(e)}function rX(t,e,i,r=0){let n=r?eF(i.min,i.max,r):i.min;t.min=e.min-n,t.max=t.min+rN(e)}function rG(t,e,i,r){rX(t.x,e.x,i.x,r?.x),rX(t.y,e.y,i.y,r?.y)}function r_(t){return"object"==typeof t&&null!==t}function rK(t){return r_(t)&&"ownerSVGElement"in t}function rq(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let n=i?.[t]??r.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}let rZ=new WeakMap,rJ=(t,e,i)=>(r,n)=>n&&n[0]?n[0][t+"Size"]:rK(r)&&"getBBox"in r?r.getBBox()[e]:r[i],rQ=rJ("inline","width","offsetWidth"),r0=rJ("block","height","offsetHeight");function r1({target:t,borderBoxSize:e}){rZ.get(t)?.forEach(i=>{i(t,{get width(){return rQ(t,e)},get height(){return r0(t,e)}})})}function r5(t){t.forEach(r1)}let r2=new Set;function r3(t,e){let i;return"function"==typeof t?(r2.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};r2.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{r2.delete(t),r2.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!r&&"u">typeof ResizeObserver&&(r=new ResizeObserver(r5)),(i=rq(t)).forEach(t=>{let i=rZ.get(t);i||(i=new Set,rZ.set(t,i)),i.add(e),r?.observe(t)}),()=>{i.forEach(t=>{let i=rZ.get(t);i?.delete(e),i?.size||r?.unobserve(t)})})}let r4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),r9=new Set(["INPUT","SELECT","TEXTAREA"]),r7=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function r6(t){return{point:{x:t.pageX,y:t.pageY}}}function r8(t,e,i,r){return rU(t,e,t=>r7(t)&&i(t,r6(t)),r)}let nt=({current:t})=>t?t.ownerDocument.defaultView:null,ne=(t,e)=>Math.abs(t-e),ni=new Set(["auto","scroll"]);class nr{constructor(t,e,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nn(this.lastRawMoveEventInfo,this.transformPagePoint));let i=no(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(ne(t.x,e.x)**2+ne(t.y,e.y)**2)>=this.distanceThreshold);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=tV;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=nn(e,this.transformPagePoint),tM.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=no("pointercancel"===t.type?this.lastMoveEventInfo:nn(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!r7(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const a=nn(r6(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tV;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,no(a,this.history)),this.removeListeners=iR(r8(this.contextWindow,"pointermove",this.handlePointerMove),r8(this.contextWindow,"pointerup",this.handlePointerUp),r8(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(ni.has(t.overflowX)||ni.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,r=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:r.x-e.x,y:r.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,r),tM.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tC(this.updatePoint)}}function nn(t,e){return e?{point:e(t.point)}:t}function ns(t,e){return{x:t.x-e.x,y:t.y-e.y}}function no({point:t},e){return{point:t,delta:ns(t,na(e)),offset:ns(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,r=na(t);for(;e>=0&&(i=t[e],!(r.timestamp-i.timestamp>tW(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&r.timestamp-i.timestamp>2*tW(.1)&&(i=t[1]);let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function na(t){return t[t.length-1]}function nl(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function nu(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function nh(t,e,i){return{min:nd(t,e),max:nd(t,i)}}
1function nd(t,e){return"number"==typeof t?t:t[e]||0}let nc=new WeakMap;class np{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=t=>{e&&this.snapToCursor(r6(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(r$[t])return null;else return r$[t]=!0,()=>{r$[t]=!1};return r$.x||r$.y?null:(r$.x=r$.y=!0,()=>{r$.x=r$.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rz(t=>{let e=this.getAxisMotionValue(t).get()||0;if(w.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=rN(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tM.update(()=>n(t,e),!1,!0),iC(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&tM.update(()=>s(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new nr(t,{onSessionStart:n,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:nt(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,r=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!i)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tM.postRender(()=>o(i,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!nf(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?eF(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?eF(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&iw(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:nl(t.x,i,n),y:nl(t.y,e,r)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nh(t,"left","right"),y:nh(t,"top","bottom")}}(e),r!==this.constraints&&!iw(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&rz(t=>{var e,r;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],r=this.constraints[t],n={},void 0!==r.min&&(n.min=r.min-e.min),void 0!==r.max&&(n.max=r.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iw(e))return!1;let r=e.current;ti(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let s=function(t,e,i){let r=e0(t,i),{scroll:n}=e;return n&&(eq(r.x,n.offset.x),eq(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:nu(t.x,s.x),y:nu(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eN(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rz(o=>{if(!nf(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iC(this.visualElement,t),i.start(rM(t,i,0,e,this.visualElement,!1))}stopAnimation(){rz(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){rz(e=>{let{drag:i}=this.getProps();if(!nf(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e],o=n.get()||0;n.set(t[e]-eF(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iw(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rz(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let s,o,l,u=e.get();r[t]=(i={min:u,max:u},n=this.constraints[t],s=.5,o=rN(i),(l=rN(n))>o?s=rh(n.min,n.max-o,i.min):o>l&&(s=rh(i.min,i.max-l,n.min)),a(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),rz(e=>{if(!nf(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(eF(n,s,r[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;nc.set(this.visualElement,this);let e=this.visualElement.current,i=r8(e,"pointerdown",t=>{let{drag:i,dragListener:r=!0}=this.getProps(),n=t.target,s=n!==e&&(r9.has(n.tagName)||!0===n.isContentEditable);i&&r&&!s&&this.start(t)}),r=()=>{var i,r,n;let s,o,{dragConstraints:a}=this.getProps();iw(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,r=a.current,s=r3(i,nm(n=()=>this.scalePositionWithinConstraints())),o=r3(r,nm(n)),t=()=>{s(),o()}))},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),tM.read(r);let o=rU(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(rz(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function nm(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function nf(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let ng=t=>(e,i)=>{t&&tM.update(()=>t(e,i),!1,!0)},ny={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nv=e5;function nb(t=!0){let e=(0,e5.useContext)(iu);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=e,s=(0,e5.useId)();(0,e5.useEffect)(()=>{if(t)return n(s)},[t]);let o=(0,e5.useCallback)(()=>t&&r&&r(s),[s,r,t]);return!i&&r?[!1,o]:[!0]}t.s(["usePresence",0,nb],64978);let nx=!1;class nw extends nv.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),nx&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ny.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,{projection:s}=i;return s&&(s.isPresent=n,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),nx=!0,r||t.layoutDependency!==e||void 0===e||t.isPresent!==n?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||tM.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),et.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;nx=!0,r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nk(t){let[e,i]=nb(),r=(0,nv.useContext)(e9);return(0,e4.jsx)(nw,{...t,layoutGroup:r,switchLayoutGroup:(0,nv.useContext)(ix),isPresent:e,safeToRemove:i})}let nT=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nS=nT.length,nP=t=>"string"==typeof t?parseFloat(t):t,nA=t=>"number"==typeof t||k.test(t);function nE(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nM=nV(0,.5,ro),nC=nV(.5,.95,tS);function nV(t,e,i){return r=>r<t?0:r>e?1:i(rh(t,e,r))}function nR(t,e){t.min=e.min,t.max=e.max}function nD(t,e){nR(t.x,e.x),nR(t.y,e.y)}function nL(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}
1function nj(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function nB(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(w.test(e)&&(e=parseFloat(e),e=eF(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eF(s.min,s.max,r);t===s&&(a-=e),t.min=nj(t.min,e,i,a,n),t.max=nj(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let nF=["x","scaleX","originX"],nI=["y","scaleY","originY"];function nO(t,e,i,r){nB(t.x,e,nF,i?i.x:void 0,r?r.x:void 0),nB(t.y,e,nI,i?i.y:void 0,r?r.y:void 0)}function nz(t){return 0===t.translate&&1===t.scale}function nU(t){return nz(t.x)&&nz(t.y)}function n$(t,e){return t.min===e.min&&t.max===e.max}function nN(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nW(t,e){return nN(t.x,e.x)&&nN(t.y,e.y)}function nY(t){return rN(t.x)/rN(t.y)}function nH(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nX{constructor(){this.members=[]}add(t){tY(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let r=i.instance;r&&!1!==r.isConnected||i.snapshot||(tH(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tH(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=i.options,{layoutDependency:n}=t.options;(void 0===r||r!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let nG=(t,e)=>t.depth-e.depth;class n_{constructor(){this.children=[],this.isDirty=!1}add(t){tY(this.children,t),this.isDirty=!0}remove(t){tH(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nG),this.isDirty=!1,this.children.forEach(t)}}let nK=["","X","Y","Z"],nq=0;function nZ(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function nJ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=nq++,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(n1),this.nodes.forEach(st),this.nodes.forEach(se),this.nodes.forEach(n5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new n_)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tX),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=rK(e)&&!(rK(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||i)&&(this.isLayoutDirty=!0),t){let i,r=0,n=()=>this.root.updateBlockedByResize=!1;tM.read(()=>{r=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==r){let e,s;r=t,this.root.updateBlockedByResize=!0,i&&i(),e=ei.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&(tC(s),n(i-250))},tM.setup(s,!0),i=()=>tC(s),ny.hasAnimatedSinceResize&&(ny.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(n8))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||sa,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!nW(this.targetLayout,r),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iE(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||n8(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tC(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(si),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let r=i.props[ib];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",tM,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(n4),this.nodes.forEach(n3);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(n9);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n7),this.nodes.forEach(n6),this.nodes.forEach(nQ),this.nodes.forEach(n0)):this.nodes.forEach(n9),this.clearAllSnapshots();let t=ei.now();tV.delta=a(0,1e3/60,t-tV.timestamp),tV.timestamp=t,tV.isProcessing=!0,tR.update.process(tV),tR.preRender.process(tV),tR.render.process(tV),tV.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,et.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n2),this.sharedNodes.forEach(sr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tM.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tM.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rN(this.snapshot.measuredBox.x)||rN(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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=G()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nU(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&this.instance&&(e||eH(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),sh((e=r).x),sh(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return G();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sc))){let{scroll:t}=this.root;t&&(eq(e.x,t.offset.x),eq(e.y,t.offset.y))}return e}removeElementScroll(t){let e=G();if(nD(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&nD(e,t),eq(e.x,n.offset.x),eq(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let r=i||G();nD(r,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(eq(r.x,-i.scroll.offset.x),eq(r.y,-i.scroll.offset.y)),eH(i.latestValues)&&eQ(r,i.latestValues,i.layout?.layoutBox)}return eH(this.latestValues)&&eQ(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(t){let e=G();nD(e,t);for(let t=0;t<this.path.length;t++){let i,r=this.path[t];eH(r.latestValues)&&(r.instance&&(eY(r.latestValues)&&r.updateSnapshot(),nD(i=G(),r.measurePageBox())),nO(e,r.latestValues,r.snapshot?.layoutBox,i))}return eH(this.latestValues)&&nO(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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!==tV.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(!this.layout||!(r||n))return;this.resolvedRelativeTargetAt=tV.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,rH(o.x,a.x,l.x,u?.x),rH(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nD(this.target,this.layout.layoutBox),eK(this.target,this.targetDelta)):nD(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eY(this.parent.latestValues)||eX(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(
1),rG(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),nD(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tV.timestamp&&(i=!1),i)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;nD(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(eq(t.x,-n.scroll.offset.x),eq(t.y,-n.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,eK(t,s)),r&&eH(n.latestValues)&&eQ(t,n.latestValues,n.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=G());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nL(this.prevProjectionDelta.x,this.projectionDelta.x),nL(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rY(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&nH(this.projectionDelta.x,this.prevProjectionDelta.x)&&nH(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=H(),this.projectionDelta=H(),this.projectionDeltaWithTransform=H()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=H();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=G(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(so));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(sn(o.x,t.x,r),sn(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,g;rG(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=r,ss(p.x,m.x,f.x,g),ss(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,c=i,n$(u.x,c.x)&&n$(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=G()),nD(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=eF(0,i.opacity??1,nM(r)),t.opacityExit=eF(e.opacity??1,0,nC(r))):s&&(t.opacity=eF(e.opacity??1,i.opacity??1,r));for(let n=0;n<nS;n++){let s=nT[n],o=nE(e,s),a=nE(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nA(o)===nA(a)?(t[s]=Math.max(eF(nP(o),nP(a),r),0),(w.test(a)||w.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eF(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tC(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tM.update(()=>{var e,i,r;let n;ny.hasAnimatedSinceResize=!0,t1.layout++,this.motionValue||(this.motionValue=en(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],r={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t1.layout--},onComplete:()=>{t1.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=_(e)?e:en(e)).start(rM("",n,i,r)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&sd(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||G();let e=rN(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=rN(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}nD(e,i),eQ(e,n),rY(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nX),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let r={};i.z&&nZ("z",t,r,this.animationValues);for(let e=0;e<nK.length;e++)nZ(`rotate${nK[e]}`,t,r,this.animationValues),nZ(`skew${nK[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=il(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=il(e?.pointerEvents)||""),this.hasProjected&&!eH(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(s=i(n,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,r.animationValues?t.opacity=r===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,eI){if(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eI[e],l="none"===s?n[e]:i(n[e],r);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=r===this?il(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(n3),this.root.sharedNodes.clear()}}}function nQ(t){t.updateLayout()}function n0(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=t.layout,{animationType:n}=t.options,s=e.source!==t.layout.source;if("size"===n)rz(t=>{let r=s?e.measuredBox[t]:e.layoutBox[t],n=rN(r);r.min=i[t].min,r.max=r.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";nR(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else sd(n,e.layoutBox,i)&&rz(r=>{let n=s?e.measuredBox[r]:e.layoutBox[r],o=rN(i[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=H();rY(o,i,e.layoutBox);let a=H();s?rY(a,t.applyTransform(r,!0),e.measuredBox):rY(a,i,e.layoutBox);let l=!nU(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=t.options.layoutAnchor||void 0,a=G();rG(a,e.layoutBox,n.layoutBox,o);let l=G();rG(l,i,s.layoutBox,o),nW(a,l)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function n1(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function n5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n2(t){t.clearSnapshot()}function n3(t){t.clearMeasurements()}function n4(t){t.isLayoutDirty=!0,t.updateLayout()}function n9(t){t.isLayoutDirty=!1}function n7(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function n6(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n8(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function st(t){t.resolveTargetDelta()}function se(t){t.calcProjection()}function si(t){t.resetSkewAndRotation()}function sr(t){t.removeLeadSnapshot()}function sn(t,e,i){t.translate=eF(e.translate,0,i),t.scale=eF(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ss(t,e,i,r){t.min=eF(e.min,i.min,r),t.max=eF(e.max,i.max,r)}function so(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sa={duration:.45,ease:[.4,0,.1,1]},sl=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),su=sl("applewebkit/")&&!sl("chrome/")?Math.round:tS;function sh(t){t.min=su(t.min),t.max=su(t.max)}function sd(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nY(e)-nY(i)))}function sc(t){return t!==t.root&&t.scroll?.wasRoot}let sp=nJ({attachResizeListener:(t,e)=>rU(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sm={current:void 0},sf=nJ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sm.current){let t=new sp({});t.mount(window),t.setOptions({layoutScroll:!0}),sm.current=t}return sm.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sg(t,e){let i=rq(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function sy(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&tM.postRender(()=>n(e,r6(e)))}function sv(t){return r_(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["isHTMLElement",0,sv],72846);let sb=(t,e)=>!!e&&(t===e||sb(t,e.parentElement)),sx=new WeakSet;function sw(t){return e=>{"Enter"===e.key&&t(e)}}function sk(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sT(t){return r7(t)&&!(r$.x||r$.y)}let sS=new WeakSet;function sP(t,e,i){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&tM.postRender(()=>n(e,r6(e)))}let sA=new WeakMap,sE=new WeakMap,sM=t=>{let e=sA.get(t.target);e&&e(t)},sC=t=>{t.forEach(sM)},sV={some:0,all:1},sR=function(t,e){if("u"<typeof Proxy)return iT;let i=new Map,r=(i,r)=>iT(i,r,t,e);return new Proxy((t,e)=>r(t,e),{get:(n,s)=>"create"===s?r:(i.has(s)||i.set(s,iT(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends iS{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>rR(t,e,i)));else if("string"==typeof e)r=rR(t,e,i);else{let n="function"==typeof e?iP(t,e,i.custom):e;r=Promise.all(rC(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=rI(),r=!0,n=!1,s=e=>(i,r)=>{let n=iP(t,r,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<rD;t++){let r=eh[t],n=e.props[r];(el(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;e<rB;e++){var p,m;let f=rj[e],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=el(y),b=f===o?g.isActive:null;!1===b&&(c=e);let x=y===l[f]&&y!==a[f]&&v;if(x&&(r||n)&&t.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...d},!g.isActive&&null===b||!y&&!g.prevProp||ea(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==b){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!rL(m,p)),k=w||f===o&&g.isActive&&!x&&v||e>c&&v,T=!1,S=Array.isArray(y)?y:[y],P=S.reduce(s(f),{});!1===b&&(P={});let{prevResolvedValues:A={}}=g,E={...A,...P},M=e=>{k=!0,h.has(e)&&(T=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in E){let e=P[t],i=A[t];if(!d.hasOwnProperty(t))(iM(e)&&iM(i)?rL(e,i):e===i)?void 0!==e&&h.has(t)?M(t):g.protectedKeys[t]=!0:null!=e?M(t):h.add(t)}g.prevProp=y,g.prevResolvedValues=P,g.isActive&&(d={...d,...P}),(r||n)&&t.blockInitialAnimation&&(k=!1);let C=x&&w,V=!C||T;k&&V&&u.push(...S.map(e=>{let i={type:f};if("string"==typeof e&&(r||n)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:r}=t,n=iP(r,e);if(r.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=rV(r.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=iP(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=r??null}),u.push({animation:e})}let f=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),r=!1,n=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r){if(i[e].isActive===r)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,r)),i[e].isActive=r;let n=o(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=rI(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ea(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iS{constructor(){super(...arguments),this.id=rO++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=iP(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...r}=i;for(let t in r)this.node.getValue(t)?.jump(r[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:sV[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;sE.has(i)||sE.set(i,{});let r=sE.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(sC,{root:t,...e})),r[n]}(a),sA.set(t,l),e.observe(t),()=>{sA.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iS{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[r,n,s]=sg(t,i),o=t=>{let r=t.currentTarget;if(!sT(t)||sS.has(t))return;sx.add(r),i.stopPropagation&&sS.add(t);let s=e(r,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sx.has(r)&&sx.delete(r),sT(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,r===window||r===document||i.useGlobalTarget||sb(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),sv(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=sw(()=>{if(sx.has(i))return;sk(i,"down");let t=sw(()=>{sk(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sk(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,n)),r4.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sP(this.node,e,"Start"),(t,{success:e})=>sP(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iS{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iR(rU(this.node.current,"focus",()=>this.onFocus()),rU(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iS{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=sg(t,i);return r.forEach(t=>{let i,r=!1,s=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(r){s=!0;return}o(t)}};t.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||r$.x||r$.y)return;s=!1;let o=e(t,r);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),s}(t,(t,e)=>(sy(this.node,e,"Start"),t=>sy(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iS{constructor(){super(...arguments),this.removePointerDownListener=tS}onPointerDown(t){this.session=new nr(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nt(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:ng(t),onStart:ng(e),onMove:ng(i),onEnd:(t,e)=>{delete this.session,r&&tM.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=r8(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iS{constructor(t){super(t),this.removeGroupControls=tS,this.removeListeners=tS,this.controls=new np(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tS}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:sf,MeasureLayout:nk},layout:{ProjectionNode:sf,MeasureLayout:nk}},(t,e)=>e.isSVG??e3(t)?new e$(e):new e1(e,{allowProjection:t!==e5.Fragment}));t.s(["motion",0,sR],46932)},88653,t=>{"use strict";t.i(47167);var e=t.i(43476),i=t.i(71645),r=t.i(31178),n=t.i(47414),s=t.i(74008),o=t.i(21476),a=t.i(72846),l=i,u=t.i(37806);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class d extends l.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,a.isHTMLElement)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,
1i=(0,a.isHTMLElement)(t)&&t.offsetWidth||0,r=(0,a.isHTMLElement)(t)&&t.offsetHeight||0,n=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(n.height),s.width=parseFloat(n.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left,s.bottom=r-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:t,isPresent:r,anchorX:n,anchorY:s,root:o,pop:a}){let p=(0,l.useId)(),m=(0,l.useRef)(null),f=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=(0,l.useContext)(u.MotionConfigContext),y=function(...t){return i.useCallback(function(...t){return e=>{let i=!1,r=t.map(t=>{let r=h(t,e);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let e=0;e<r.length;e++){let i=r[e];"function"==typeof i?i():h(t[e],null)}}}}(...t),t)}(m,t.props?.ref??t?.ref);return(0,l.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:l,right:u,bottom:h}=f.current;if(r||!1===a||!m.current||!t||!e)return;let d="left"===n?`left: ${l}`:`right: ${u}`,c="bottom"===s?`bottom: ${h}`:`top: ${i}`;m.current.dataset.motionPopId=p;let y=document.createElement("style");g&&(y.nonce=g);let v=o??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${p}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${e}px !important; 6 ${d}px !important; 7 ${c}px !important; 8 } 9 `),()=>{m.current?.removeAttribute("data-motion-pop-id"),v.contains(y)&&v.removeChild(y)}},[r]),(0,e.jsx)(d,{isPresent:r,childRef:m,sizeRef:f,pop:a,children:!1===a?t:l.cloneElement(t,{ref:y})})}let p=({children:t,initial:r,isPresent:s,onExitComplete:a,custom:l,presenceAffectsLayout:u,mode:h,anchorX:d,anchorY:p,root:f})=>{let g=(0,n.useConstant)(m),y=(0,i.useId)(),v=!0,b=(0,i.useMemo)(()=>(v=!1,{id:y,initial:r,isPresent:s,custom:l,onExitComplete:t=>{for(let e of(g.set(t,!0),g.values()))if(!e)return;a&&a()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[s,g,a]);return u&&v&&(b={...b}),(0,i.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[s]),i.useEffect(()=>{s||g.size||!a||a()},[s]),t=(0,e.jsx)(c,{pop:"popLayout"===h,isPresent:s,anchorX:d,anchorY:p,root:f,children:t}),(0,e.jsx)(o.PresenceContext.Provider,{value:b,children:t})};function m(){return new Map}var f=t.i(64978);let g=t=>t.key||"";function y(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}t.s(["AnimatePresence",0,({children:t,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:d=!1,anchorX:c="left",anchorY:m="top",root:v})=>{let[b,x]=(0,f.usePresence)(d),w=(0,i.useMemo)(()=>y(t),[t]),k=d&&!b?[]:w.map(g),T=(0,i.useRef)(!0),S=(0,i.useRef)(w),P=(0,n.useConstant)(()=>new Map),A=(0,i.useRef)(new Set),[E,M]=(0,i.useState)(w),[C,V]=(0,i.useState)(w);(0,s.useIsomorphicLayoutEffect)(()=>{T.current=!1,S.current=w;for(let t=0;t<C.length;t++){let e=g(C[t]);k.includes(e)?(P.delete(e),A.current.delete(e)):!0!==P.get(e)&&P.set(e,!1)}},[C,k.length,k.join("-")]);let R=[];if(w!==E){let t=[...w];for(let e=0;e<C.length;e++){let i=C[e],r=g(i);k.includes(r)||(t.splice(e,0,i),R.push(i))}return"wait"===h&&R.length&&(t=R),V(y(t)),M(w),null}let{forceRender:D}=(0,i.useContext)(r.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:C.map(t=>{let i=g(t),r=(!d||!!b)&&(w===C||k.includes(i));return(0,e.jsx)(p,{isPresent:r,initial:(!T.current||!!a)&&void 0,custom:o,presenceAffectsLayout:u,mode:h,root:v,onExitComplete:r?void 0:()=>{if(A.current.has(i)||!P.has(i))return;A.current.add(i),P.set(i,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(D?.(),V(S.current),d&&x?.(),l&&l())},anchorX:c,anchorY:m,children:t},i)})})}],88653)},75254,t=>{"use strict";var e=t.i(71645),i=t.i(43985);let r=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,i)=>i?i.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var n=t.i(58541);t.s(["default",0,(t,s)=>{let o=(0,e.forwardRef)(({className:o,...a},l)=>(0,e.createElement)(n.default,{ref:l,iconNode:s,className:(0,i.mergeClasses)(`lucide-${r(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,o),...a}));return o.displayName=r(t),o}],75254)},94909,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return h},getImageProps:function(){return u}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(55682),o=t.r(8927),a=t.r(85437),l=s._(t.r(1948));function u(t){let{props:e}=(0,o.getImgProps)(t,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qual
9ities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let h=a.Image},57688,(t,e,i)=>{e.exports=t.r(94909)}]);
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.