(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79474,(t,e,i)=>{"use strict";var r=t.r(71645).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;i.c=function(t){return r.H.useMemoCache(t)}},932,(t,e,i)=>{"use strict";e.exports=t.r(79474)},47163,t=>{"use strict";let e=(t=new Map,e=null,i)=>({nextPart:t,validators:e,classGroupId:i}),i=[],r=(t,e,i)=>{if(0==t.length-e)return i.classGroupId;let s=t[e],n=i.nextPart.get(s);if(n){let i=r(t,e+1,n);if(i)return i}let o=i.validators;if(null===o)return;let a=0===e?t.join("-"):t.slice(e).join("-"),l=o.length;for(let t=0;t{let r=e();for(let e in t)n(t[e],r,e,i);return r},n=(t,e,i,r)=>{let s=t.length;for(let n=0;n{"string"==typeof t?a(t,e,i):"function"==typeof t?l(t,e,i,r):h(t,e,i,r)},a=(t,e,i)=>{(""===t?e:u(e,t)).classGroupId=i},l=(t,e,i,r)=>{d(t)?n(t(r),e,i,r):(null===e.validators&&(e.validators=[]),e.validators.push({classGroupId:i,validator:t}))},h=(t,e,i,r)=>{let s=Object.entries(t),o=s.length;for(let t=0;t{let r=t,s=i.split("-"),n=s.length;for(let t=0;t"isThemeGetter"in t&&!0===t.isThemeGetter,c=[],p=(t,e,i,r,s)=>({modifiers:t,hasImportantModifier:e,baseClassName:i,maybePostfixModifierPosition:r,isExternal:s}),m=/\s+/,f=t=>{let e;if("string"==typeof t)return t;let i="";for(let r=0;r{let e=e=>e[t]||g;return e.isThemeGetter=!0,e},v=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,b=/^\((?:(\w[\w-]*):)?(.+)\)$/i,x=/^\d+\/\d+$/,w=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k=/\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$/,T=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=t=>x.test(t),M=t=>!!t&&!Number.isNaN(Number(t)),E=t=>!!t&&Number.isInteger(Number(t)),V=t=>t.endsWith("%")&&M(t.slice(0,-1)),C=t=>w.test(t),D=()=>!0,R=t=>k.test(t)&&!T.test(t),j=()=>!1,L=t=>P.test(t),F=t=>S.test(t),B=t=>!I(t)&&!Y(t),O=t=>Z(t,te,j),I=t=>v.test(t),z=t=>Z(t,ti,R),U=t=>Z(t,tr,M),N=t=>Z(t,Q,j),$=t=>Z(t,tt,F),W=t=>Z(t,tn,L),Y=t=>b.test(t),H=t=>J(t,ti),X=t=>J(t,ts),G=t=>J(t,Q),_=t=>J(t,te),K=t=>J(t,tt),q=t=>J(t,tn,!0),Z=(t,e,i)=>{let r=v.exec(t);return!!r&&(r[1]?e(r[1]):i(r[2]))},J=(t,e,i=!1)=>{let r=b.exec(t);return!!r&&(r[1]?e(r[1]):i)},Q=t=>"position"===t||"percentage"===t,tt=t=>"image"===t||"url"===t,te=t=>"length"===t||"size"===t||"bg-size"===t,ti=t=>"length"===t,tr=t=>"number"===t,ts=t=>"family-name"===t,tn=t=>"shadow"===t,to=((t,...e)=>{let n,o,a,l,h=t=>{let e=o(t);if(e)return e;let i=((t,e)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:n}=e,o=[],a=t.trim().split(m),l="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{isExternal:h,modifiers:u,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=i(e);if(h){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===u.length?"":1===u.length?u[0]:n(u).join(":"),y=d?g+"!":g,v=y+f;if(o.indexOf(v)>-1)continue;o.push(v);let b=s(f,m);for(let t=0;t0?" "+l:l)}return l})(t,n);return a(t,i),i};return l=u=>{var d;let m;return o=(n={cache:(t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,i=Object.create(null),r=Object.create(null),s=(s,n)=>{i[s]=n,++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])?(s(t,e),e):void 0},set(t,e){t in i?i[t]=e:s(t,e)}}})((d=e.reduce((t,e)=>e(t),t())).cacheSize),parseClassName:(t=>{let{prefix:e,experimentalParseClassName:i}=t,r=t=>{let e,i=[],r=0,s=0,n=0,o=t.length;for(let a=0;an?e-n:void 0)};if(e){let t=e+":",i=r;r=e=>e.startsWith(t)?i(e.slice(t.length)):p(c,!1,e,void 0,!0)}if(i){let t=r;r=e=>i({className:e,parseClassName:t})}return r})(d),sortModifiers:(m=new Map,d.orderSensitiveModifiers.forEach((t,e)=>{m.set(t,1e6+e)}),t=>{let e=[],i=[];for(let r=0;r0&&(i.sort(),e.push(...i),i=[]),e.push(s)):i.push(s)}return i.length>0&&(i.sort(),e.push(...i)),e}),...(t=>{let e=(t=>{let{theme:e,classGroups:i}=t;return s(i,e)})(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=t;return{getClassGroupId:t=>{if(t.startsWith("[")&&t.endsWith("]")){var i;let e,r,s;return -1===(i=t).slice(1,-1).indexOf(":")?void 0:(r=(e=i.slice(1,-1)).indexOf(":"),(s=e.slice(0,r))?"arbitrary.."+s:void 0)}let s=t.split("-"),n=+(""===s[0]&&s.length>1);return r(s,n,e)},getConflictingClassGroupIds:(t,e)=>{if(e){let e=o[t],r=n[t];if(e){if(r){let t=Array(r.length+e.length);for(let e=0;el(((...t)=>{let e,i,r=0,s="";for(;r{let t=y("color"),e=y("font"),i=y("text"),r=y("font-weight"),s=y("tracking"),n=y("leading"),o=y("breakpoint"),a=y("container"),l=y("spacing"),h=y("radius"),u=y("shadow"),d=y("inset-shadow"),c=y("text-shadow"),p=y("drop-shadow"),m=y("blur"),f=y("perspective"),g=y("aspect"),v=y("ease"),b=y("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),Y,I],T=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],S=()=>[Y,I,l],R=()=>[A,"full","auto",...S()],j=()=>[E,"none","subgrid",Y,I],L=()=>["auto",{span:["full",E,Y,I]},E,Y,I],F=()=>[E,"auto",Y,I],Z=()=>["auto","min","max","fr",Y,I],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],tt=()=>["auto",...S()],te=()=>[A,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],ti=()=>[t,Y,I],tr=()=>[...w(),G,N,{position:[Y,I]}],ts=()=>["no-repeat",{repeat:["","x","y","space","round"]}],tn=()=>["auto","cover","contain",_,O,{size:[Y,I]}],to=()=>[V,H,z],ta=()=>["","none","full",h,Y,I],tl=()=>["",M,H,z],th=()=>["solid","dashed","dotted","double"],tu=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],td=()=>[M,V,G,N],tc=()=>["","none",m,Y,I],tp=()=>["none",M,Y,I],tm=()=>["none",M,Y,I],tf=()=>[M,Y,I],tg=()=>[A,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[C],breakpoint:[C],color:[D],container:[C],"drop-shadow":[C],ease:["in","out","in-out"],font:[B],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[C],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[C],shadow:[C],spacing:["px",M],text:[C],"text-shadow":[C],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",A,I,Y,g]}],container:["container"],columns:[{columns:[M,I,Y,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:k()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[E,"auto",Y,I]}],basis:[{basis:[A,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[M,A,"auto","initial","none",I]}],grow:[{grow:["",M,Y,I]}],shrink:[{shrink:["",M,Y,I]}],order:[{order:[E,"first","last","none",Y,I]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:tt()}],mx:[{mx:tt()}],my:[{my:tt()}],ms:[{ms:tt()}],me:[{me:tt()}],mt:[{mt:tt()}],mr:[{mr:tt()}],mb:[{mb:tt()}],ml:[{ml:tt()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[a,"screen",...te()]}],"min-w":[{"min-w":[a,"screen","none",...te()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",i,H,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Y,U]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",V,I]}],"font-family":[{font:[X,I,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Y,I]}],"line-clamp":[{"line-clamp":[M,"none",Y,U]}],leading:[{leading:[n,...S()]}],"list-image":[{"list-image":["none",Y,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ti()}],"text-color":[{text:ti()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...th(),"wavy"]}],"text-decoration-thickness":[{decoration:[M,"from-font","auto",Y,z]}],"text-decoration-color":[{decoration:ti()}],"underline-offset":[{"underline-offset":[M,"auto",Y,I]}],"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",Y,I]}],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",Y,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:tr()}],"bg-repeat":[{bg:ts()}],"bg-size":[{bg:tn()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},E,Y,I],radial:["",Y,I],conic:[E,Y,I]},K,$]}],"bg-color":[{bg:ti()}],"gradient-from-pos":[{from:to()}],"gradient-via-pos":[{via:to()}],"gradient-to-pos":[{to:to()}],"gradient-from":[{from:ti()}],"gradient-via":[{via:ti()}],"gradient-to":[{to:ti()}],rounded:[{rounded:ta()}],"rounded-s":[{"rounded-s":ta()}],"rounded-e":[{"rounded-e":ta()}],"rounded-t":[{"rounded-t":ta()}],"rounded-r":[{"rounded-r":ta()}],"rounded-b":[{"rounded-b":ta()}],"rounded-l":[{"rounded-l":ta()}],"rounded-ss":[{"rounded-ss":ta()}],"rounded-se":[{"rounded-se":ta()}],"rounded-ee":[{"rounded-ee":ta()}],"rounded-es":[{"rounded-es":ta()}],"rounded-tl":[{"rounded-tl":ta()}],"rounded-tr":[{"rounded-tr":ta()}],"rounded-br":[{"rounded-br":ta()}],"rounded-bl":[{"rounded-bl":ta()}],"border-w":[{border:tl()}],"border-w-x":[{"border-x":tl()}],"border-w-y":[{"border-y":tl()}],"border-w-s":[{"border-s":tl()}],"border-w-e":[{"border-e":tl()}],"border-w-t":[{"border-t":tl()}],"border-w-r":[{"border-r":tl()}],"border-w-b":[{"border-b":tl()}],"border-w-l":[{"border-l":tl()}],"divide-x":[{"divide-x":tl()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":tl()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...th(),"hidden","none"]}],"divide-style":[{divide:[...th(),"hidden","none"]}],"border-color":[{border:ti()}],"border-color-x":[{"border-x":ti()}],"border-color-y":[{"border-y":ti()}],"border-color-s":[{"border-s":ti()}],"border-color-e":[{"border-e":ti()}],"border-color-t":[{"border-t":ti()}],"border-color-r":[{"border-r":ti()}],"border-color-b":[{"border-b":ti()}],"border-color-l":[{"border-l":ti()}],"divide-color":[{divide:ti()}],"outline-style":[{outline:[...th(),"none","hidden"]}],"outline-offset":[{"outline-offset":[M,Y,I]}],"outline-w":[{outline:["",M,H,z]}],"outline-color":[{outline:ti()}],shadow:[{shadow:["","none",u,q,W]}],"shadow-color":[{shadow:ti()}],"inset-shadow":[{"inset-shadow":["none",d,q,W]}],"inset-shadow-color":[{"inset-shadow":ti()}],"ring-w":[{ring:tl()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ti()}],"ring-offset-w":[{"ring-offset":[M,z]}],"ring-offset-color":[{"ring-offset":ti()}],"inset-ring-w":[{"inset-ring":tl()}],"inset-ring-color":[{"inset-ring":ti()}],"text-shadow":[{"text-shadow":["none",c,q,W]}],"text-shadow-color":[{"text-shadow":ti()}],opacity:[{opacity:[M,Y,I]}],"mix-blend":[{"mix-blend":[...tu(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":tu()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[M]}],"mask-image-linear-from-pos":[{"mask-linear-from":td()}],"mask-image-linear-to-pos":[{"mask-linear-to":td()}],"mask-image-linear-from-color":[{"mask-linear-from":ti()}],"mask-image-linear-to-color":[{"mask-linear-to":ti()}],"mask-image-t-from-pos":[{"mask-t-from":td()}],"mask-image-t-to-pos":[{"mask-t-to":td()}],"mask-image-t-from-color":[{"mask-t-from":ti()}],"mask-image-t-to-color":[{"mask-t-to":ti()}],"mask-image-r-from-pos":[{"mask-r-from":td()}],"mask-image-r-to-pos":[{"mask-r-to":td()}],"mask-image-r-from-color":[{"mask-r-from":ti()}],"mask-image-r-to-color":[{"mask-r-to":ti()}],"mask-image-b-from-pos":[{"mask-b-from":td()}],"mask-image-b-to-pos":[{"mask-b-to":td()}],"mask-image-b-from-color":[{"mask-b-from":ti()}],"mask-image-b-to-color":[{"mask-b-to":ti()}],"mask-image-l-from-pos":[{"mask-l-from":td()}],"mask-image-l-to-pos":[{"mask-l-to":td()}],"mask-image-l-from-color":[{"mask-l-from":ti()}],"mask-image-l-to-color":[{"mask-l-to":ti()}],"mask-image-x-from-pos":[{"mask-x-from":td()}],"mask-image-x-to-pos":[{"mask-x-to":td()}],"mask-image-x-from-color":[{"mask-x-from":ti()}],"mask-image-x-to-color":[{"mask-x-to":ti()}],"mask-image-y-from-pos":[{"mask-y-from":td()}],"mask-image-y-to-pos":[{"mask-y-to":td()}],"mask-image-y-from-color":[{"mask-y-from":ti()}],"mask-image-y-to-color":[{"mask-y-to":ti()}],"mask-image-radial":[{"mask-radial":[Y,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":td()}],"mask-image-radial-to-pos":[{"mask-radial-to":td()}],"mask-image-radial-from-color":[{"mask-radial-from":ti()}],"mask-image-radial-to-color":[{"mask-radial-to":ti()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[M]}],"mask-image-conic-from-pos":[{"mask-conic-from":td()}],"mask-image-conic-to-pos":[{"mask-conic-to":td()}],"mask-image-conic-from-color":[{"mask-conic-from":ti()}],"mask-image-conic-to-color":[{"mask-conic-to":ti()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:tr()}],"mask-repeat":[{mask:ts()}],"mask-size":[{mask:tn()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,I]}],filter:[{filter:["","none",Y,I]}],blur:[{blur:tc()}],brightness:[{brightness:[M,Y,I]}],contrast:[{contrast:[M,Y,I]}],"drop-shadow":[{"drop-shadow":["","none",p,q,W]}],"drop-shadow-color":[{"drop-shadow":ti()}],grayscale:[{grayscale:["",M,Y,I]}],"hue-rotate":[{"hue-rotate":[M,Y,I]}],invert:[{invert:["",M,Y,I]}],saturate:[{saturate:[M,Y,I]}],sepia:[{sepia:["",M,Y,I]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,I]}],"backdrop-blur":[{"backdrop-blur":tc()}],"backdrop-brightness":[{"backdrop-brightness":[M,Y,I]}],"backdrop-contrast":[{"backdrop-contrast":[M,Y,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",M,Y,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M,Y,I]}],"backdrop-invert":[{"backdrop-invert":["",M,Y,I]}],"backdrop-opacity":[{"backdrop-opacity":[M,Y,I]}],"backdrop-saturate":[{"backdrop-saturate":[M,Y,I]}],"backdrop-sepia":[{"backdrop-sepia":["",M,Y,I]}],"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",Y,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[M,"initial",Y,I]}],ease:[{ease:["linear","initial",v,Y,I]}],delay:[{delay:[M,Y,I]}],animate:[{animate:["none",b,Y,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Y,I]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:tp()}],"rotate-x":[{"rotate-x":tp()}],"rotate-y":[{"rotate-y":tp()}],"rotate-z":[{"rotate-z":tp()}],scale:[{scale:tm()}],"scale-x":[{"scale-x":tm()}],"scale-y":[{"scale-y":tm()}],"scale-z":[{"scale-z":tm()}],"scale-3d":["scale-3d"],skew:[{skew:tf()}],"skew-x":[{"skew-x":tf()}],"skew-y":[{"skew-y":tf()}],transform:[{transform:[Y,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tg()}],"translate-x":[{"translate-x":tg()}],"translate-y":[{"translate-y":tg()}],"translate-z":[{"translate-z":tg()}],"translate-none":["translate-none"],accent:[{accent:ti()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ti()}],"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",Y,I]}],"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-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-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",Y,I]}],fill:[{fill:["none",...ti()]}],"stroke-w":[{stroke:[M,H,z,U]}],stroke:[{stroke:["none",...ti()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ta(...t){return to(function(){for(var t,e,i=0,r="",s=arguments.length;ita],47163)},75003,t=>{"use strict";var e=t.i(43476),i=t.i(932),r=t.i(47163);function s(t){let s,n,o=(0,i.c)(5),{children:a,className:l}=t;return o[0]!==l?(s=(0,r.cn)("mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",l),o[0]=l,o[1]=s):s=o[1],o[2]!==a||o[3]!==s?(n=(0,e.jsx)("div",{className:s,children:a}),o[2]=a,o[3]=s,o[4]=n):n=o[4],n}t.s(["Container",()=>s])},46932,87022,83411,86427,31178,37806,21476,47414,74008,44230,83352,64978,49652,72846,t=>{"use strict";let e,i;var r,s=t.i(71645);let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(n),a=t=>180*t/Math.PI,l=t=>u(a(Math.atan2(t[1],t[0]))),h={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:l,rotateZ:l,skewX:t=>a(Math.atan(t[1])),skewY:t=>a(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},u=t=>((t%=360)<0&&(t+=360),t),d=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),c=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),p={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:d,scaleY:c,scale:t=>(d(t)+c(t))/2,rotateX:t=>u(a(Math.atan2(t[6],t[5]))),rotateY:t=>u(a(Math.atan2(-t[2],t[0]))),rotateZ:l,rotate:l,skewX:t=>a(Math.atan(t[4])),skewY:t=>a(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function m(t){return+!!t.includes("scale")}function f(t,e){let i,r;if(!t||"none"===t)return m(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=p,r=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=h,r=e}if(!r)return m(e);let n=i[e],o=r[1].split(",").map(g);return"function"==typeof n?n(o):o[n]}function g(t){return parseFloat(t.trim())}let y=t=>e=>"string"==typeof e&&e.startsWith(t),v=y("--"),b=y("var(--"),x=t=>!!b(t)&&w.test(t.split("/*")[0].trim()),w=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function k({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}let T=(t,e,i)=>t+(e-t)*i;function P(t){return void 0===t||1===t}function S({scale:t,scaleX:e,scaleY:i}){return!P(t)||!P(e)||!P(i)}function A(t){return S(t)||M(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function M(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function E(t,e,i,r,s){return void 0!==s&&(t=r+s*(t-r)),r+i*(t-r)+e}function V(t,e=0,i=1,r,s){t.min=E(t.min,e,i,r,s),t.max=E(t.max,e,i,r,s)}function C(t,{x:e,y:i}){V(t.x,e.translate,e.scale,e.originPoint),V(t.y,i.translate,i.scale,i.originPoint)}function D(t,e){t.min=t.min+e,t.max=t.max+e}function R(t,e,i,r,s=.5){let n=T(t.min,t.max,s);V(t,e,i,n,r)}function j(t,e){R(t.x,e.x,e.scaleX,e.scale,e.originX),R(t.y,e.y,e.scaleY,e.scale,e.originY)}function L(t,e){return k(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))}let F=new Set(["width","height","top","left","right","bottom",...n]),B=(t,e,i)=>i>e?e:i"number"==typeof t,parse:parseFloat,transform:t=>t},I={...O,transform:t=>B(0,1,t)},z={...O,default:1},U=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),N=U("deg"),$=U("%"),W=U("px"),Y=U("vh"),H=U("vw"),X={...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(100*t)},G=t=>e=>e.test(t),_=[O,W,$,N,H,Y,{test:t=>"auto"===t,parse:t=>t}],K=t=>_.find(G(t));t.i(47167);let q=()=>{},Z=()=>{},J=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,Q=t=>t===O||t===W,tt=new Set(["x","y","z"]),te=n.filter(t=>!tt.has(t)),ti={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-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})=>f(e,"x"),y:(t,{transform:e})=>f(e,"y")};ti.translateX=ti.x,ti.translateY=ti.y;let tr=t=>t,ts={},tn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function to(t,e){let i=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,o=tn.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,r=new Set,s=!1,n=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){o.has(e)&&(u.schedule(e),t()),l++,e(a)}let u={schedule:(t,e=!1,n=!1)=>{let a=n&&s?i:r;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{r.delete(t),o.delete(t)},process:t=>{if(a=t,s){n=!0;return}s=!0,[i,r]=[r,i],i.forEach(h),e,l=0,i.clear(),s=!1,n&&(n=!1,u.process(t))}};return u}(n,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let n=ts.useManualTiming?s.timestamp:performance.now();i=!1,ts.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(n-s.timestamp,40),1)),s.timestamp=n,s.isProcessing=!0,a.process(s),l.process(s),h.process(s),u.process(s),d.process(s),c.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(r=!1,t(f))};return{schedule:tn.reduce((e,n)=>{let a=o[n];return e[n]=(e,n=!1,o=!1)=>(!i&&(i=!0,r=!0,s.isProcessing||t(f)),a.schedule(e,n,o)),e},{}),cancel:t=>{for(let e=0;etl,"frame",()=>ta,"frameData",()=>th,"frameSteps",()=>tu],87022);let td=new Set,tc=!1,tp=!1,tm=!1;function tf(){if(tp){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=[],te.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)})}tp=!1,tc=!1,td.forEach(t=>t.complete(tm)),td.clear()}function tg(){td.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tp=!0)})}class ty{constructor(t,e,i,r,s,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=s,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(td.add(this),tc||(tc=!0,ta.read(tg),ta.resolveKeyframes(tf))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;if(null===t[0]){let s=r?.get(),n=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let r=i.readValue(e,n);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=n),r&&void 0===s&&r.set(t[0])}for(let e=1;eMath.round(1e5*t)/1e5,tb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tw=(t,e)=>i=>!!("string"==typeof i&&tx.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tk=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,n,o,a]=r.match(tb);return{[t]:parseFloat(s),[e]:parseFloat(n),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tT={...O,transform:t=>Math.round(B(0,255,t))},tP={test:tw("rgb","red"),parse:tk("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+tT.transform(t)+", "+tT.transform(e)+", "+tT.transform(i)+", "+tv(I.transform(r))+")"},tS={test:tw("#"),parse:function(t){let e="",i="",r="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:tP.transform},tA={test:tw("hsl","hue"),parse:tk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+$.transform(tv(e))+", "+$.transform(tv(i))+", "+tv(I.transform(r))+")"},tM={test:t=>tP.test(t)||tS.test(t)||tA.test(t),parse:t=>tP.test(t)?tP.parse(t):tA.test(t)?tA.parse(t):tS.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tP.transform(t):tA.transform(t),getAnimatableNone:t=>{let e=tM.parse(t);return e.alpha=0,tM.transform(e)}},tE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tV="number",tC="color",tD=/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 tR(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],n=0,o=e.replace(tD,t=>(tM.test(t)?(r.color.push(n),s.push(tC),i.push(tM.parse(t))):t.startsWith("var(")?(r.var.push(n),s.push("var"),i.push(t)):(r.number.push(n),s.push(tV),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:o,indexes:r,types:s}}function tj(t){return tR(t).values}function tL(t){let{split:e,types:i}=tR(t),r=e.length;return t=>{let s="";for(let n=0;n"number"==typeof t?0:tM.test(t)?tM.getAnimatableNone(t):t,tB={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tb)?.length||0)+(t.match(tE)?.length||0)>0},parse:tj,createTransformer:tL,getAnimatableNone:function(t){let e=tj(t);return tL(t)(e.map(tF))}},tO=new Set(["brightness","contrast","saturate","opacity"]);function tI(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(tb)||[];if(!r)return t;let s=i.replace(r,""),n=+!!tO.has(e);return r!==i&&(n*=100),e+"("+n+s+")"}let tz=/\b([a-z-]*)\(.*?\)/gu,tU={...tB,getAnimatableNone:t=>{let e=t.match(tz);return e?e.map(tI).join(" "):t}},tN={...O,transform:Math.round},t$={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,radius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,backgroundPositionX:W,backgroundPositionY:W,rotate:N,rotateX:N,rotateY:N,rotateZ:N,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:N,skewX:N,skewY:N,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:I,originX:X,originY:X,originZ:W,zIndex:tN,fillOpacity:I,strokeOpacity:I,numOctaves:tN},tW={...t$,color:tM,backgroundColor:tM,outlineColor:tM,fill:tM,stroke:tM,borderColor:tM,borderTopColor:tM,borderRightColor:tM,borderBottomColor:tM,borderLeftColor:tM,filter:tU,WebkitFilter:tU},tY=t=>tW[t];function tH(t,e){let i=tY(t);return i!==tU&&(i=tB),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tX=new Set(["auto","none","0"]);class tG extends ty{constructor(t,e,i,r,s){super(t,e,i,r,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t_=t=>!!(t&&t.getVelocity);function tK(){e=void 0}t.s(["isMotionValue",()=>t_],83411);let tq={now:()=>(void 0===e&&tq.set(th.isProcessing||ts.useManualTiming?th.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(tK)}};function tZ(t,e){-1===t.indexOf(e)&&t.push(e)}function tJ(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tQ{constructor(){this.subscriptions=[]}add(t){return tZ(this.subscriptions,t),()=>tJ(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 s=0;s{let e=tq.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=tq.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 tQ);let i=this.events[t].add(e);return"change"===t?()=>{i(),ta.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 t0.current&&t0.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=tq.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 t2(t,e){return new t1(t,e)}t.s(["collectMotionValues",()=>t0,"motionValue",()=>t2],86427);let t3=[..._,tM,tB],{schedule:t5}=to(queueMicrotask,!1),t4={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"]},t9={};for(let t in t4)t9[t]={isEnabled:e=>t4[t].some(t=>!!e[t])};let t6=()=>({translate:0,scale:1,origin:0,originPoint:0}),t7=()=>({x:t6(),y:t6()}),t8=()=>({min:0,max:0}),et=()=>({x:t8(),y:t8()}),ee="undefined"!=typeof window,ei={current:null},er={current:!1},es=new WeakMap;function en(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eo(t){return"string"==typeof t||Array.isArray(t)}let ea=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],el=["initial",...ea];function eh(t){return en(t.animate)||el.some(e=>eo(t[e]))}function eu(t){return!!(eh(t)||t.variants)}function ed(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ec(t,e,i,r){if("function"==typeof e){let[s,n]=ed(r);e=e(void 0!==i?i:t.custom,s,n)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,n]=ed(r);e=e(void 0!==i?i:t.custom,s,n)}return e}let ep=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class em{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:n},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ty,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tq.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),er.current||function(){if(er.current=!0,ee)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ei.current=t.matches;t.addEventListener("change",e),e()}else ei.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ei.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tl(this.notifyUpdate),tl(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;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=o.has(t);r&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&ta.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),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 t9){let e=t9[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];e.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):et()}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;ee.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=t2(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,s;if("string"==typeof i&&(r=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let r;r=i,!t3.find(G(r))&&tB.test(e)&&(i=tH(t,e))}this.setBaseTarget(t,t_(i)?i.get():i)}return t_(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=ec(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||t_(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 tQ),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t5.render(this.render)}}class ef extends em{constructor(){super(...arguments),this.KeyframeResolver=tG}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[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_(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let eg=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ey={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ev=n.length;function eb(t,e,i){let{style:r,vars:s,transformOrigin:a}=t,l=!1,h=!1;for(let t in e){let i=e[t];if(o.has(t)){l=!0;continue}if(v(t)){s[t]=i;continue}{let e=eg(i,t$[t]);t.startsWith("origin")?(h=!0,a[t]=e):r[t]=e}}if(!e.transform&&(l||i?r.transform=function(t,e,i){let r="",s=!0;for(let o=0;o{let{transform:i="none"}=getComputedStyle(t);return f(i,e)})(t,e);{let i=window.getComputedStyle(t),r=(v(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return L(t,e)}build(t,e,i){eb(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eT(t,e,i)}}let eS=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eA={offset:"stroke-dashoffset",array:"stroke-dasharray"},eM={offset:"strokeDashoffset",array:"strokeDasharray"};function eE(t,{attrX:e,attrY:i,attrScale:r,pathLength:s,pathSpacing:n=1,pathOffset:o=0,...a},l,h,u){if(eb(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;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=u?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==r&&(d.scale=r),void 0!==s&&function(t,e,i=1,r=0,s=!0){t.pathLength=1;let n=s?eA:eM;t[n.offset]=W.transform(-r);let o=W.transform(e),a=W.transform(i);t[n.array]=`${o} ${a}`}(d,s,n,o,!1)}let eV=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"]),eC=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eD(t,e,i){let r=eT(t,e,i);for(let i in t)(t_(t[i])||t_(e[i]))&&(r[-1!==n.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}class eR extends ef{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(o.has(e)){let t=tY(e);return t&&t.default||0}return e=eV.has(e)?e:eS(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eD(t,e,i)}build(t,e,i){eE(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,r){for(let i in ex(t,e,void 0,r),e.attrs)t.setAttribute(eV.has(i)?i:eS(i),e.attrs[i])}mount(t){this.isSVGTag=eC(t.tagName),super.mount(t)}}let ej=["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 eL(t){if("string"!=typeof t||t.includes("-"));else if(ej.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eF=t.i(43476);let eB=(0,s.createContext)({});t.s(["LayoutGroupContext",()=>eB],31178);let eO=(0,s.createContext)({strict:!1}),eI=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>eI],37806);let ez=(0,s.createContext)({});function eU(t){return Array.isArray(t)?t.join(" "):t}let eN=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function e$(t,e,i){for(let r in e)t_(e[r])||ek(r,i)||(t[r]=e[r])}let eW=()=>({...eN(),attrs:{}}),eY=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eH(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eY.has(t)}let eX=t=>!eH(t);try{r=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof r&&(eX=t=>t.startsWith("on")?!eH(t):r(t))}catch{}let eG=(0,s.createContext)(null);function e_(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}function eK(t){return t_(t)?t.get():t}t.s(["PresenceContext",()=>eG],21476),t.s(["useConstant",()=>e_],47414);let eq=t=>(e,i)=>{let r=(0,s.useContext)(ez),n=(0,s.useContext)(eG),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,r,s){return{latestValues:function(t,e,i,r){let s={},n=r(t,{});for(let t in n)s[t]=eK(n[t]);let{initial:o,animate:a}=t,l=eh(t),h=eu(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!en(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i({initial:e,animate:i}),[eU(e),eU(i)])}(i),c=n(i,u);if(!u&&ee){(0,s.useContext)(eO).strict;let e=function(t){let{drag:e,layout:i}=t9;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(h);l=e.MeasureLayout,d.visualElement=function(t,e,i,r,n){let{visualElement:o}=(0,s.useContext)(ez),a=(0,s.useContext)(eO),l=(0,s.useContext)(eG),h=(0,s.useContext)(eI).reducedMotion,u=(0,s.useRef)(null);r=r||a.renderer,!u.current&&r&&(u.current=r(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h}));let d=u.current,c=(0,s.useContext)(e2);d&&!d.projection&&n&&("html"===d.type||"svg"===d.type)&&function(t,e,i,r){let{layoutId:s,layout:n,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=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:s,layout:n,alwaysMeasureLayout:!!o||a&&e0(a),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:h})}(u.current,i,n,c);let p=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{d&&p.current&&d.update(i,l)});let m=i[e1],f=(0,s.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return e3(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),f.current&&d.animationState&&d.animationState.animateChanges())}),(0,s.useEffect)(()=>{d&&(!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),d.enteringChildren=void 0)}),d}(t,c,h,r,e.ProjectionNode)}return(0,eF.jsxs)(ez.Provider,{value:d,children:[l&&d.visualElement?(0,eF.jsx)(l,{visualElement:d.visualElement,...h}):null,function(t,e,i,{latestValues:r},n,o=!1){let a=(eL(t)?function(t,e,i,r){let n=(0,s.useMemo)(()=>{let i=eW();return eE(i,e,eC(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};e$(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,r,n={},o=(i=t.style||{},e$(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,s.useMemo)(()=>{let i=eN();return eb(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,n})(e,r,n,t),l=function(t,e,i){let r={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(eX(s)||!0===i&&eH(s)||!e&&!eH(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}(e,"string"==typeof t,o),h=t!==s.Fragment?{...l,...a,ref:i}:{},{children:u}=e,d=(0,s.useMemo)(()=>t_(u)?u.get():u,[u]);return(0,s.createElement)(t,{...h,children:d})}(t,i,(a=d.visualElement,(0,s.useCallback)(t=>{t&&c.onMount&&c.onMount(t),a&&(t?a.mount(t):a.unmount()),o&&("function"==typeof o?o(t):e0(o)&&(o.current=t))},[a])),c,u,e)]})}o.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let a=(0,s.forwardRef)(o);return a[eQ]=t,a}function e4(t,e,i){let r=t.getProps();return ec(r,e,void 0!==i?i:r.custom,t)}function e9(t,e){return t?.[e]??t?.default??t}t.s(["useIsomorphicLayoutEffect",()=>e3],74008);let e6=t=>Array.isArray(t);function e7(t,e){let i=t.getValue("willChange");if(t_(i)&&i.add)return i.add(e);if(!i&&ts.WillChange){let i=new ts.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function e8(t){t.duration=0,t.type="keyframes"}let it=(t,e)=>i=>e(t(i)),ie=(...t)=>t.reduce(it),ii=t=>1e3*t,ir={layout:0,mainThread:0,waapi:0};function is(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 io(t,e){return i=>i>0?e:t}let ia=(t,e,i)=>{let r=t*t,s=i*(e*e-r)+r;return s<0?0:Math.sqrt(s)},il=[tS,tP,tA];function ih(t){let e=il.find(e=>e.test(t));if(q(!!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===tA&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let s=0,n=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;s=is(a,r,t+1/3),n=is(a,r,t),o=is(a,r,t-1/3)}else s=n=o=i;return{red:Math.round(255*s),green:Math.round(255*n),blue:Math.round(255*o),alpha:r}}(i)),i}let iu=(t,e)=>{let i=ih(t),r=ih(e);if(!i||!r)return io(t,e);let s={...i};return t=>(s.red=ia(i.red,r.red,t),s.green=ia(i.green,r.green,t),s.blue=ia(i.blue,r.blue,t),s.alpha=T(i.alpha,r.alpha,t),tP.transform(s))},id=new Set(["none","hidden"]);function ic(t,e){return i=>T(t,e,i)}function ip(t){return"number"==typeof t?ic:"string"==typeof t?x(t)?io:tM.test(t)?iu:iy:Array.isArray(t)?im:"object"==typeof t?tM.test(t)?iu:ig:io}function im(t,e){let i=[...t],r=i.length,s=t.map((t,i)=>ip(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in r)i[e]=r[e](t);return i}}let iy=(t,e)=>{let i=tB.createTransformer(e),r=tR(t),s=tR(e);if(!(r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length))return q(!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"),io(t,e);if(id.has(t)&&!s.values.length||id.has(e)&&!r.values.length)return id.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return ie(im(function(t,e){let i=[],r={color:0,var:0,number:0};for(let s=0;s{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>ta.update(e,t),stop:()=>tl(e),now:()=>th.isProcessing?th.timestamp:tq.now()}},ix=(t,e,i=10)=>{let r="",s=Math.max(Math.round(e/i),2);for(let e=0;e=2e4?1/0:e}function ik(t,e,i){var r,s;let n=Math.max(e-5,0);return r=i-t(n),(s=e-n)?1e3/s*r:0}let iT=.01,iP=2,iS=.005,iA=.5;function iM(t,e){return t*Math.sqrt(1-e*e)}let iE=["duration","bounce"],iV=["stiffness","damping","mass"];function iC(t,e){return e.some(e=>void 0!==t[e])}function iD(t=.3,e=.3){let i,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:n}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:u,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iC(t,iV)&&iC(t,iE))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,s=2*B(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let s,n;q(t<=ii(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=B(.05,1,o),t=B(.01,10,t/1e3),o<1?(s=e=>{let r=e*o,s=r*t;return .001-(r-i)/iM(e,o)*Math.exp(-s)},n=e=>{let r=e*o*t,n=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=iM(Math.pow(e,2),o);return(r*i+i-n)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),n=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(s,n,5/t);if(t=ii(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),f=p||0,g=u/(2*Math.sqrt(h*d)),y=a-o,v=Math.sqrt(h/d)/1e3,b=5>Math.abs(y);if(s||(s=b?iT:iP),n||(n=b?iS:iA),g<1){let t=iM(v,g);i=e=>a-Math.exp(-g*v*e)*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),r=Math.min(t*e,300);return a-i*((f+g*v*y)*Math.sinh(r)+t*y*Math.cosh(r))/t}}let x={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let r=0===t?f:0;g<1&&(r=0===t?ii(f):ik(i,t,e));let o=Math.abs(a-e)<=n;l.done=Math.abs(r)<=s&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(iw(x),2e4),e=ix(e=>x.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return x}function iR({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){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)<=h,m.value=m.done?y:i},w=t=>{let e;if(e=m.value,void 0!==a&&el){var i;d=t,c=iD({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i){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)}}}iD.applyToOptions=t=>{let e=function(t,e=100,i){let r=i({...t,keyframes:[0,e]}),s=Math.min(iw(r),2e4);return{type:"keyframes",ease:t=>r.next(s*t).value/e,duration:s/1e3}}(t,100,iD);return t.ease=e.ease,t.duration=ii(e.duration),t.type="keyframes",t};let ij=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iL(t,e,i,r){return t===e&&i===r?tr:s=>0===s||1===s?s:ij(function(t,e,i,r,s){let n,o,a=0;do(n=ij(o=e+(i-e)/2,r,s)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12)return o}(s,0,1,t,i),e,r)}let iF=iL(.42,0,1,1),iB=iL(0,0,.58,1),iO=iL(.42,0,.58,1),iI=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iz=t=>e=>1-t(1-e),iU=iL(.33,1.53,.69,.99),iN=iz(iU),i$=iI(iN),iW=t=>(t*=2)<1?.5*iN(t):.5*(2-Math.pow(2,-10*(t-1))),iY=t=>1-Math.sin(Math.acos(t)),iH=iz(iY),iX=iI(iY),iG=t=>Array.isArray(t)&&"number"==typeof t[0],i_={linear:tr,easeIn:iF,easeInOut:iO,easeOut:iB,circIn:iY,circInOut:iX,circOut:iH,backIn:iN,backInOut:i$,backOut:iU,anticipate:iW},iK=t=>{if(iG(t)){Z(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,r,s]=t;return iL(e,i,r,s)}return"string"==typeof t?(Z(void 0!==i_[t],`Invalid easing type '${t}'`,"invalid-easing-type"),i_[t]):t},iq=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r};function iZ(t,e,{clamp:i=!0,ease:r,mixer:s}={}){let n=t.length;if(Z(n===e.length,"Both input and output ranges must be the same length","range-length"),1===n)return()=>e[0];if(2===n&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let r=[],s=i||ts.mix||iv,n=t.length-1;for(let i=0;i{if(o&&i1)for(;rh(B(t[0],t[n-1],e)):h}function iJ({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var s;let n,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(iK):iK(r),a={done:!1,value:e[0]},l=iZ((s=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let s=iq(0,e,r);t.push(T(i,1,s))}}(n=[0],e.length-1),n),s.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||iO).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}t.s(["interpolate",()=>iZ],44230);let iQ=t=>null!==t;function i0(t,{repeat:e,repeatType:i="loop"},r,s=1){let n=t.filter(iQ),o=s<0||e&&"loop"!==i&&e%2==1?0:n.length-1;return o&&void 0!==r?r:n[o]}let i1={decay:iR,inertia:iR,tween:iJ,keyframes:iJ,spring:iD};function i2(t){"string"==typeof t.type&&(t.type=i1[t.type])}class i3{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 i5=t=>t/100;class i4 extends i3{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==tq.now()&&this.tick(tq.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ir.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;i2(t);let{type:e=iJ,repeat:i=0,repeatDelay:r=0,repeatType:s,velocity:n=0}=t,{keyframes:o}=t,a=e||iJ;a!==iJ&&"number"!=typeof o[0]&&(this.mixKeyframes=ie(i5,iv(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-n})),null===l.calculatedDuration&&(l.calculatedDuration=iw(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+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{generator:i,totalDuration:r,mixKeyframes:s,mirroredGenerator:n,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,b=i;if(u){let t=Math.min(this.currentTime,r)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,u+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/o)):"mirror"===d&&(b=n)),v=B(0,1,i)*o}let x=y?{done:!1,value:h[0]}:b.next(v);s&&(x.value=s(x.value));let{done:w}=x;y||null===a||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&p!==iR&&(x.value=i0(h,this.options,f,this.speed)),m&&m(x.value),k&&this.finish(),x}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=ii(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tq.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=ib,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(tq.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,ir.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)}}function i9(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["JSAnimation",()=>i4],83352);let i6=i9(()=>void 0!==window.ScrollTimeline),i7={},i8=(i=i9(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>i7.linearEasing??i()),rt=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,re={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rt([0,.65,.55,1]),circOut:rt([.55,0,1,.45]),backIn:rt([.31,.01,.66,-.59]),backOut:rt([.33,1.53,.69,.99])};function ri(t){return"function"==typeof t&&"applyToOptions"in t}class rr extends i3{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:r,pseudoElement:s,allowFlatten:n=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=n,this.options=t,Z("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return ri(t)&&i8()?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:s=300,repeat:n=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?i8()?ix(e,i):"ease-out":iG(e)?rt(e):Array.isArray(e)?e.map(e=>t(e,i)||re.easeOut):re[e]}(a,s);Array.isArray(d)&&(u.easing=d);let c={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"};h&&(c.pseudoElement=h);let p=t.animate(u,c);return p}(e,i,r,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=i0(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(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(){this.isPseudoElement||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){this.finishedTime=null,this.animation.currentTime=ii(t)}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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&i6())?(this.animation.timeline=t,tr):e(this)}}let rs={anticipate:iW,backInOut:i$,circInOut:iX};class rn extends rr{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in rs&&(t.ease=rs[t.ease])}(t),i2(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:r,element:s,...n}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new i4({...n,autoplay:!1}),a=ii(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let ro=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tB.test(t)||"0"===t)&&!t.startsWith("url(")),ra=new Set(["opacity","clipPath","filter","transform"]),rl=i9(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rh extends i3{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:n="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tq.now();const d={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:s,repeatType:n,name:a,motionValue:l,element:h,...u},c=h?.KeyframeResolver||ty;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,r){this.keyframeResolver=void 0;let{name:s,type:n,velocity:o,delay:a,isHandoff:l,onUpdate:h}=i;this.resolvedAt=tq.now(),!function(t,e,i,r){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let n=t[t.length-1],o=ro(s,e),a=ro(n,e);return q(o===a,`You are trying to animate ${e} from "${s}" to "${n}". "${o?n:s}" 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;i40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:s,damping:n,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return rl()&&i&&ra.has(i)&&("transform"!==i||!l)&&!a&&!r&&"mirror"!==s&&0!==n&&"inertia"!==o}(u)?new rn({...u,element:u.motionValue.owner.current}):new i4(u);d.finished.then(()=>this.notifyFinished()).catch(tr),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}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(),tm=!0,tg(),tf(),tm=!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 ru=t=>null!==t,rd={type:"spring",stiffness:500,damping:25,restSpeed:10},rc={type:"keyframes",duration:.8},rp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rm=(t,e,i,r={},s,n)=>a=>{let l=e9(r,t)||{},h=l.delay||r.delay||0,{elapsed:u=0}=r;u-=ii(h);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:n?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:s,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?rc:o.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:rd:rp)(t,d)),d.duration&&(d.duration=ii(d.duration)),d.repeatDelay&&(d.repeatDelay=ii(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(e8(d),0===d.delay&&(c=!0)),(ts.instantAnimations||ts.skipAnimations)&&(c=!0,e8(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!n&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},r){let s=t.filter(ru),n=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[n]}(d.keyframes,l);if(void 0!==t)return void ta.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new i4(d):new rh(d)};function rf(t,e,{delay:i=0,transitionOverride:r,type:s}={}){let{transition:n=t.getDefaultTransition(),transitionEnd:o,...a}=e;r&&(n=r);let l=[],h=s&&t.animationState&&t.animationState.getState()[s];for(let e in a){let r=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||h&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(h,e))continue;let o={delay:i,...e9(n||{},e)},u=r.get();if(void 0!==u&&!r.isAnimating&&!Array.isArray(s)&&s===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=t.props[e1];if(i){let t=window.MotionHandoffAnimation(i,e,ta);null!==t&&(o.startTime=t,d=!0)}}e7(t,e),r.start(rm(e,r,s,t.shouldReduceMotion&&F.has(e)?{type:!1}:o,t,d));let c=r.animation;c&&l.push(c)}return o&&Promise.all(l).then(()=>{ta.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:r={},...s}=e4(t,e)||{};for(let e in s={...s,...i}){var n;let i=e6(n=s[e])?n[n.length-1]||0:n;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t2(i))}}(t,o)})}),l}function rg(t,e,i,r=0,s=1){let n=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*r;return"function"==typeof i?i(n,o):1===s?n*r:a-n*r}function ry(t,e,i={}){let r=e4(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let n=r?()=>Promise.all(rf(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,r=0,s=0,n=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(ry(l,e,{...o,delay:i+("function"==typeof r?0:r)+rg(t.variantChildren,l,r,s,n)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,r,n,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([n(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[n,o]:[o,n];return t().then(()=>e())}}function rv(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;rt.removeEventListener(e,i)}let rE=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function rV(t){return{point:{x:t.pageX,y:t.pageY}}}function rC(t,e,i,r){return rM(t,e,t=>rE(t)&&i(t,rV(t)),r)}function rD(t){return t.max-t.min}function rR(t,e,i,r=.5){t.origin=r,t.originPoint=T(e.min,e.max,t.origin),t.scale=rD(i)/rD(e),t.translate=T(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 rj(t,e,i,r){rR(t.x,e.x,i.x,r?r.originX:void 0),rR(t.y,e.y,i.y,r?r.originY:void 0)}function rL(t,e,i){t.min=i.min+e.min,t.max=t.min+rD(e)}function rF(t,e,i){t.min=e.min-i.min,t.max=t.min+rD(e)}function rB(t,e,i){rF(t.x,e.x,i.x),rF(t.y,e.y,i.y)}function rO(t){return[t("x"),t("y")]}let rI=({current:t})=>t?t.ownerDocument.defaultView:null,rz=(t,e)=>Math.abs(t-e);class rU{constructor(t,e,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:s=!1,distanceThreshold:n=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=rW(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(rz(t.x,e.x)**2+rz(t.y,e.y)**2)>=this.distanceThreshold);if(!r&&!s)return;let{point:n}=i,{timestamp:o}=th;this.history.push({...n,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.lastMoveEventInfo=rN(e,this.transformPagePoint),ta.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=rW("pointercancel"===t.type?this.lastMoveEventInfo:rN(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),r&&r(t,n)},!rE(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=n,this.contextWindow=r||window;const o=rN(rV(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=th;this.history=[{...a,timestamp:l}];const{onSessionStart:h}=e;h&&h(t,rW(o,this.history)),this.removeListeners=ie(rC(this.contextWindow,"pointermove",this.handlePointerMove),rC(this.contextWindow,"pointerup",this.handlePointerUp),rC(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tl(this.updatePoint)}}function rN(t,e){return e?{point:e(t.point)}:t}function r$(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rW({point:t},e){return{point:t,delta:r$(t,rY(e)),offset:r$(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,s=rY(t);for(;i>=0&&(r=t[i],!(s.timestamp-r.timestamp>ii(.1)));)i--;if(!r)return{x:0,y:0};let n=(s.timestamp-r.timestamp)/1e3;if(0===n)return{x:0,y:0};let o={x:(s.x-r.x)/n,y:(s.y-r.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function rY(t){return t[t.length-1]}function rH(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 rX(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(rV(t).point)},n=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:s}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(rA[t])return null;else return rA[t]=!0,()=>{rA[t]=!1};return rA.x||rA.y?null:(rA.x=rA.y=!0,()=>{rA.x=rA.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),rO(t=>{let e=this.getAxisMotionValue(t).get()||0;if($.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=rD(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&ta.postRender(()=>s(t,e)),e7(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:s,onDrag:n}=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&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>rO(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new rU(t,{onSessionStart:s,onStart:n,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:rI(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,r=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!r||!i)return;let{velocity:n}=r;this.startAnimation(n);let{onDragEnd:o}=this.getProps();o&&ta.postRender(()=>o(i,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!rZ(t,r,this.currentDirection))return;let s=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},r){return void 0!==e&&ti&&(t=r?T(i,t,r.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),s.set(n)}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&&e0(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:r,right:s}){return{x:rH(t.x,i,s),y:rH(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:rG(t,"left","right"),y:rG(t,"top","bottom")}}(e),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rO(t=>{var e,r;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],r=this.constraints[t],s={},void 0!==r.min&&(s.min=r.min-e.min),void 0!==r.max&&(s.max=r.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!e0(e))return!1;let r=e.current;Z(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:s}=this.visualElement;if(!s||!s.layout)return!1;let n=function(t,e,i){let r=L(t,i),{scroll:s}=e;return s&&(D(r.x,s.offset.x),D(r.y,s.offset.y)),r}(r,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:rX(t.x,n.x),y:rX(t.y,n.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=k(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:s,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rO(o=>{if(!rZ(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return e7(this.visualElement,t),i.start(rm(t,i,0,e,this.visualElement,!1))}stopAnimation(){rO(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rO(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}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){rO(e=>{let{drag:i}=this.getProps();if(!rZ(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,s=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:n}=r.layout.layoutBox[e];s.set(t[e]-T(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!e0(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rO(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let n,o,a,l=e.get();r[t]=(i={min:l,max:l},s=this.constraints[t],n=.5,o=rD(i),(a=rD(s))>o?n=iq(s.min,s.max-o,i.min):o>a&&(n=iq(i.min,i.max-a,s.min)),B(0,1,n))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rO(e=>{if(!rZ(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:n}=this.constraints[e];i.set(T(s,n,r[e]))})}addListeners(){if(!this.visualElement.current)return;rK.set(this.visualElement,this);let t=rC(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e0(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ta.read(e);let s=rM(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(rO(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),r(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:s,dragElastic:n,dragMomentum:o}}}function rZ(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let rJ=t=>(e,i)=>{t&&ta.postRender(()=>t(e,i))};var rQ=s;function r0(t=!0){let e=(0,s.useContext)(eG);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=e,o=(0,s.useId)();(0,s.useEffect)(()=>{if(t)return n(o)},[t]);let a=(0,s.useCallback)(()=>t&&r&&r(o),[o,r,t]);return!i&&r?[!1,a]:[!0]}t.s(["usePresence",()=>r0],64978);let r1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function r2(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let r3={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!W.test(t))return t;else t=parseFloat(t);let i=r2(t,e.target.x),r=r2(t,e.target.y);return`${i}% ${r}%`}},r5=!1;class r4 extends rQ.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:s}=t;for(let t in r6)ew[t]=r6[t],v(t)&&(ew[t].isCSSVariable=!0);s&&(e.group&&e.group.add(s),i&&i.register&&r&&i.register(s),r5&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),r1.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:s}=this.props,{projection:n}=i;return n&&(n.isPresent=s,r5=!0,r||t.layoutDependency!==e||void 0===e||t.isPresent!==s?n.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?n.promote():n.relegate()||ta.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t5.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r5=!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 r9(t){let[e,i]=r0(),r=(0,rQ.useContext)(eB);return(0,eF.jsx)(r4,{...t,layoutGroup:r,switchLayoutGroup:(0,rQ.useContext)(e2),isPresent:e,safeToRemove:i})}let r6={borderRadius:{...r3,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:r3,borderTopRightRadius:r3,borderBottomLeftRadius:r3,borderBottomRightRadius:r3,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tB.parse(t);if(r.length>5)return t;let s=tB.createTransformer(t),n=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+n]/=o,r[1+n]/=a;let l=T(o,a,.5);return"number"==typeof r[2+n]&&(r[2+n]/=l),"number"==typeof r[3+n]&&(r[3+n]/=l),s(r)}}};function r7(t){return"object"==typeof t&&null!==t}function r8(t){return r7(t)&&"ownerSVGElement"in t}let st=(t,e)=>t.depth-e.depth;class se{constructor(){this.children=[],this.isDirty=!1}add(t){tZ(this.children,t),this.isDirty=!0}remove(t){tJ(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(st),this.isDirty=!1,this.children.forEach(t)}}let si=["TopLeft","TopRight","BottomLeft","BottomRight"],sr=si.length,ss=t=>"string"==typeof t?parseFloat(t):t,sn=t=>"number"==typeof t||W.test(t);function so(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sa=sh(0,.5,iH),sl=sh(.5,.95,tr);function sh(t,e,i){return r=>re?1:i(iq(t,e,r))}function su(t,e){t.min=e.min,t.max=e.max}function sd(t,e){su(t.x,e.x),su(t.y,e.y)}function sc(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sp(t,e,i,r,s){return t-=e,t=r+1/i*(t-r),void 0!==s&&(t=r+1/s*(t-r)),t}function sm(t,e,[i,r,s],n,o){!function(t,e=0,i=1,r=.5,s,n=t,o=t){if($.test(e)&&(e=parseFloat(e),e=T(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=T(n.min,n.max,r);t===n&&(a-=e),t.min=sp(t.min,e,i,a,s),t.max=sp(t.max,e,i,a,s)}(t,e[i],e[r],e[s],e.scale,n,o)}let sf=["x","scaleX","originX"],sg=["y","scaleY","originY"];function sy(t,e,i,r){sm(t.x,e,sf,i?i.x:void 0,r?r.x:void 0),sm(t.y,e,sg,i?i.y:void 0,r?r.y:void 0)}function sv(t){return 0===t.translate&&1===t.scale}function sb(t){return sv(t.x)&&sv(t.y)}function sx(t,e){return t.min===e.min&&t.max===e.max}function sw(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sk(t,e){return sw(t.x,e.x)&&sw(t.y,e.y)}function sT(t){return rD(t.x)/rD(t.y)}function sP(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sS{constructor(){this.members=[]}add(t){tZ(this.members,t),t.scheduleRender()}remove(t){if(tJ(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){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let sA=["","X","Y","Z"],sM=0;function sE(t,e,i,r){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),r&&(r[t]=0))}function sV({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sM++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(sR),this.nodes.forEach(sz),this.nodes.forEach(sU),this.nodes.forEach(sj)},this.resolvedRelativeTargetAt=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;tthis.root.updateBlockedByResize=!1;ta.read(()=>{r=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==r){let e,n;r=t,this.root.updateBlockedByResize=!0,i&&i(),e=tq.now(),n=({timestamp:t})=>{let i=t-e;i>=250&&(tl(n),s(i-250))},ta.setup(n,!0),i=()=>tl(n),r1.hasAnimatedSinceResize&&(r1.hasAnimatedSinceResize=!1,this.nodes.forEach(sI))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(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 n=this.options.transition||s.getDefaultTransition()||sX,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!sk(this.targetLayout,r),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...e9(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||sI(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(),tl(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(sN),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[e1];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",ta,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rD(this.snapshot.measuredBox.x)||rD(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.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=et());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sc(this.prevProjectionDelta.x,this.projectionDelta.x),sc(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rj(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===n&&this.treeScale.y===o&&sP(this.projectionDelta.x,this.prevProjectionDelta.x)&&sP(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=t7(),this.projectionDelta=t7(),this.projectionDeltaWithTransform=t7()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,s=r?r.latestValues:{},n={...this.latestValues},o=t7();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=et(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(sH));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(sW(o.x,t.x,r),sW(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,f,g;rB(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=r,sY(p.x,m.x,f.x,g),sY(p.y,m.y,f.y,g),i&&(h=this.relativeTarget,c=i,sx(h.x,c.x)&&sx(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=et()),sd(i,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,r,s,n){s?(t.opacity=T(0,i.opacity??1,sa(r)),t.opacityExit=T(e.opacity??1,0,sl(r))):n&&(t.opacity=T(e.opacity??1,i.opacity??1,r));for(let s=0;s{var e,i,r;let s;r1.hasAnimatedSinceResize=!0,ir.layout++,this.motionValue||(this.motionValue=t2(0)),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:()=>{ir.layout--},onComplete:()=>{ir.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=t_(e)?e:t2(e)).start(rm("",s,i,r)),s.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:s}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&sq(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||et();let e=rD(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=rD(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}sd(e,i),j(e,s),rj(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sS),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;return 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&&sE("z",t,r,this.animationValues);for(let e=0;et.currentAnimation?.stop()),this.root.nodes.forEach(sF),this.root.sharedNodes.clear()}}}function sC(t){t.updateLayout()}function sD(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:s}=t.options,n=e.source!==t.layout.source;"size"===s?rO(t=>{let r=n?e.measuredBox[t]:e.layoutBox[t],s=rD(r);r.min=i[t].min,r.max=r.min+s}):sq(s,e.layoutBox,i)&&rO(r=>{let s=n?e.measuredBox[r]:e.layoutBox[r],o=rD(i[r]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=t7();rj(o,i,e.layoutBox);let a=t7();n?rj(a,t.applyTransform(r,!0),e.measuredBox):rj(a,i,e.layoutBox);let l=!sb(o),h=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:s,layout:n}=r;if(s&&n){let o=et();rB(o,e.layoutBox,s.layoutBox);let a=et();rB(a,i,n.layoutBox),sk(o,a)||(h=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sR(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sj(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sL(t){t.clearSnapshot()}function sF(t){t.clearMeasurements()}function sB(t){t.isLayoutDirty=!1}function sO(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sI(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sz(t){t.resolveTargetDelta()}function sU(t){t.calcProjection()}function sN(t){t.resetSkewAndRotation()}function s$(t){t.removeLeadSnapshot()}function sW(t,e,i){t.translate=T(e.translate,0,i),t.scale=T(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sY(t,e,i,r){t.min=T(e.min,i.min,r),t.max=T(e.max,i.max,r)}function sH(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sX={duration:.45,ease:[.4,0,.1,1]},sG=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),s_=sG("applewebkit/")&&!sG("chrome/")?Math.round:tr;function sK(t){t.min=s_(t.min),t.max=s_(t.max)}function sq(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sT(e)-sT(i)))}function sZ(t){return t!==t.root&&t.scroll?.wasRoot}let sJ=sV({attachResizeListener:(t,e)=>rM(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sQ={current:void 0},s0=sV({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sQ.current){let t=new sJ({});t.mount(window),t.setOptions({layoutScroll:!0}),sQ.current=t}return sQ.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function s1(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let s=i?.[t]??r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function s2(t,e){let i=s1(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function s3(t){return!("touch"===t.pointerType||rA.x||rA.y)}function s5(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=r["onHover"+i];s&&ta.postRender(()=>s(e,rV(e)))}function s4(t){return r7(t)&&"offsetHeight"in t}t.s(["resolveElements",()=>s1],49652),t.s(["isHTMLElement",()=>s4],72846);let s9=(t,e)=>!!e&&(t===e||s9(t,e.parentElement)),s6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),s7=new WeakSet;function s8(t){return e=>{"Enter"===e.key&&t(e)}}function nt(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function ne(t){return rE(t)&&!(rA.x||rA.y)}function ni(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 s=r["onTap"+("End"===i?"":i)];s&&ta.postRender(()=>s(e,rV(e)))}let nr=new WeakMap,ns=new WeakMap,nn=t=>{let e=nr.get(t.target);e&&e(t)},no=t=>{t.forEach(nn)},na={some:0,all:1},nl=function(t,e){if("undefined"==typeof Proxy)return e5;let i=new Map,r=(i,r)=>e5(i,r,t,e);return new Proxy((t,e)=>r(t,e),{get:(s,n)=>"create"===n?r:(i.has(n)||i.set(n,e5(n,void 0,t,e)),i.get(n))})}({animation:{Feature:class extends rP{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=>ry(t,e,i)));else if("string"==typeof e)r=ry(t,e,i);else{let s="function"==typeof e?e4(t,e,i.custom):e;r=Promise.all(rf(t,s,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=rT(),r=!0,s=e=>(i,r)=>{let s=e4(t,r,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...r}=s;i={...i,...r,...e}}return i};function n(n){let{props:o}=t,a=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;td&&y,k=!1,T=Array.isArray(g)?g:[g],P=T.reduce(s(m),{});!1===v&&(P={});let{prevResolvedValues:S={}}=f,A={...S,...P},M=e=>{w=!0,h.has(e)&&(k=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=P[t],i=S[t];if(!u.hasOwnProperty(t))(e6(e)&&e6(i)?rv(e,i):e===i)?void 0!==e&&h.has(t)?M(t):f.protectedKeys[t]=!0:null!=e?M(t):h.add(t)}f.prevProp=g,f.prevResolvedValues=P,f.isActive&&(u={...u,...P}),r&&t.blockInitialAnimation&&(w=!1);let E=b&&x,V=!E||k;w&&V&&l.push(...T.map(e=>{let i={type:m};if("string"==typeof e&&r&&!E&&t.manuallyAnimateOnMount&&t.parent){let{parent:r}=t,s=e4(r,e);if(r.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=rg(r.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof o.initial){let i=e4(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let r=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=r??null}),l.push({animation:e})}let m=!!l.length;return r&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),r=!1,m?e(l):Promise.resolve()}return{animateChanges:n,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 s=n(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=rT()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();en(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 rP{constructor(){super(...arguments),this.id=rS++}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;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends rP{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:s,amount:n="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:s,threshold:"number"==typeof n?n:na[n]},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(),s=e?i:r;s&&s(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;ns.has(i)||ns.set(i,{});let r=ns.get(i),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(no,{root:t,...e})),r[s]}(a),nr.set(t,l),e.observe(t),()=>{nr.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("undefined"==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(){}}},tap:{Feature:class extends rP{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,s,n]=s2(t,i),o=t=>{let r=t.currentTarget;if(!ne(t))return;s7.add(r);let n=e(r,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),s7.has(r)&&s7.delete(r),ne(t)&&"function"==typeof n&&n(t,{success:e})},a=t=>{o(t,r===window||r===document||i.useGlobalTarget||s9(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return r.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),s4(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=s8(()=>{if(s7.has(i))return;nt(i,"down");let t=s8(()=>{nt(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>nt(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,s)),s6.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),n}(t,(t,e)=>(ni(this.node,e,"Start"),(t,{success:e})=>ni(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends rP{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=ie(rM(this.node.current,"focus",()=>this.onFocus()),rM(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends rP{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,s,n]=s2(t,i),o=t=>{if(!s3(t))return;let{target:i}=t,r=e(i,t);if("function"!=typeof r||!i)return;let n=t=>{s3(t)&&(r(t),i.removeEventListener("pointerleave",n))};i.addEventListener("pointerleave",n,s)};return r.forEach(t=>{t.addEventListener("pointerenter",o,s)}),n}(t,(t,e)=>(s5(this.node,e,"Start"),t=>s5(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends rP{constructor(){super(...arguments),this.removePointerDownListener=tr}onPointerDown(t){this.session=new rU(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rI(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:rJ(t),onStart:rJ(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&ta.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=rC(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 rP{constructor(t){super(t),this.removeGroupControls=tr,this.removeListeners=tr,this.controls=new rq(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:s0,MeasureLayout:r9},layout:{ProjectionNode:s0,MeasureLayout:r9}},(t,e)=>eL(t)?new eR(e):new eP(e,{allowProjection:t!==s.Fragment}));t.s(["motion",()=>nl],46932)},48148,t=>{"use strict";var e=t.i(61745);function i(t,e){return(...t)=>{try{return e(...t)}catch{throw Error(void 0)}}}let r=i(0,e.useTranslations);i(0,e.useFormatter),t.s(["useTranslations",()=>r])}]); //# sourceMappingURL=df6ffcdf6e2e8699.js.map