-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2059.async.js
13 lines (13 loc) · 121 KB
/
2059.async.js
1
2
3
4
5
6
7
8
9
10
11
12
13
!(function(){"use strict";var Gu=Object.defineProperty,zu=Object.defineProperties;var Hu=Object.getOwnPropertyDescriptors;var Ie=Object.getOwnPropertySymbols;var bo=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable;var jn=Math.pow,Co=(R,b,y)=>b in R?Gu(R,b,{enumerable:!0,configurable:!0,writable:!0,value:y}):R[b]=y,g=(R,b)=>{for(var y in b||(b={}))bo.call(b,y)&&Co(R,y,b[y]);if(Ie)for(var y of Ie(b))Vo.call(b,y)&&Co(R,y,b[y]);return R},M=(R,b)=>zu(R,Hu(b));var at=(R,b)=>{var y={};for(var C in R)bo.call(R,C)&&b.indexOf(C)<0&&(y[C]=R[C]);if(R!=null&&Ie)for(var C of Ie(R))b.indexOf(C)<0&&Vo.call(R,C)&&(y[C]=R[C]);return y};var _n=(R,b,y)=>new Promise((C,S)=>{var G=Q=>{try{nt(y.next(Q))}catch(dt){S(dt)}},et=Q=>{try{nt(y.throw(Q))}catch(dt){S(dt)}},nt=Q=>Q.done?C(Q.value):Promise.resolve(Q.value).then(G,et);nt((y=y.apply(R,b)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[2059],{69087:function(R,b,y){var C=y(5028),S=y(96469);b.Z=(0,C.Z)([(0,S.jsx)("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"},"0"),(0,S.jsx)("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"},"1")],"ReportGmailerrorred")},47743:function(R,b,y){y.d(b,{Z:function(){return Lt}});var C=y(38497),S=y(4280),G=y(90869),et=y(43358),nt=y(25761),Q=y(63986),dt=y(14548);function Ct(F){return(0,dt.ZP)("MuiCardContent",F)}const Nt=(0,Q.Z)("MuiCardContent",["root"]);var Ut=null,Rt=y(96469);const bt=F=>{const{classes:N}=F,O={root:["root"]};return(0,G.Z)(O,Ct,N)},Kt=(0,et.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(F,N)=>N.root})({padding:16,"&:last-child":{paddingBottom:24}});var Lt=C.forwardRef(function(N,O){const I=(0,nt.i)({props:N,name:"MuiCardContent"}),q=I,{className:st,component:ft="div"}=q,mt=at(q,["className","component"]),L=M(g({},I),{component:ft}),W=bt(L);return(0,Rt.jsx)(Kt,g({as:ft,className:(0,S.Z)(W.root,st),ownerState:L,ref:O},mt))})},59117:function(R,b,y){y.d(b,{M:function(){return Lt}});var C=y(96469),S=y(38497),G=y(70509),et=y(24387),nt=y(92529);class Q extends S.Component{getSnapshotBeforeUpdate(N){const O=this.props.childRef.current;if(O&&N.isPresent&&!this.props.isPresent){const I=this.props.sizeRef.current;I.height=O.offsetHeight||0,I.width=O.offsetWidth||0,I.top=O.offsetTop,I.left=O.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function dt({children:F,isPresent:N}){const O=(0,S.useId)(),I=(0,S.useRef)(null),st=(0,S.useRef)({width:0,height:0,top:0,left:0}),{nonce:ft}=(0,S.useContext)(nt._);return(0,S.useInsertionEffect)(()=>{const{width:mt,height:L,top:W,left:q}=st.current;if(N||!I.current||!mt||!L)return;I.current.dataset.motionPopId=O;const it=document.createElement("style");return ft&&(it.nonce=ft),document.head.appendChild(it),it.sheet&&it.sheet.insertRule(`
[data-motion-pop-id="${O}"] {
position: absolute !important;
width: ${mt}px !important;
height: ${L}px !important;
top: ${W}px !important;
left: ${q}px !important;
}
`),()=>{document.head.removeChild(it)}},[N]),(0,C.jsx)(Q,{isPresent:N,childRef:I,sizeRef:st,children:S.cloneElement(F,{ref:I})})}const Ct=({children:F,initial:N,isPresent:O,onExitComplete:I,custom:st,presenceAffectsLayout:ft,mode:mt})=>{const L=(0,et.h)(Nt),W=(0,S.useId)(),q=(0,S.useCallback)($=>{L.set($,!0);for(const xt of L.values())if(!xt)return;I&&I()},[L,I]),it=(0,S.useMemo)(()=>({id:W,initial:N,isPresent:O,custom:st,onExitComplete:q,register:$=>(L.set($,!1),()=>L.delete($))}),ft?[Math.random(),q]:[O,q]);return(0,S.useMemo)(()=>{L.forEach(($,xt)=>L.set(xt,!1))},[O]),S.useEffect(()=>{!O&&!L.size&&I&&I()},[O]),mt==="popLayout"&&(F=(0,C.jsx)(dt,{isPresent:O,children:F})),(0,C.jsx)(G.O.Provider,{value:it,children:F})};function Nt(){return new Map}var Ut=y(38613),Rt=y(17672);const bt=F=>F.key||"";function Kt(F){const N=[];return S.Children.forEach(F,O=>{(0,S.isValidElement)(O)&&N.push(O)}),N}var ye=y(60598);const Lt=({children:F,exitBeforeEnter:N,custom:O,initial:I=!0,onExitComplete:st,presenceAffectsLayout:ft=!0,mode:mt="sync"})=>{(0,Rt.k)(!N,"Replace exitBeforeEnter with mode='wait'");const L=(0,S.useMemo)(()=>Kt(F),[F]),W=L.map(bt),q=(0,S.useRef)(!0),it=(0,S.useRef)(L),$=(0,et.h)(()=>new Map),[xt,ve]=(0,S.useState)(L),[K,qt]=(0,S.useState)(L);(0,ye.L)(()=>{q.current=!1,it.current=L;for(let ot=0;ot<K.length;ot++){const Z=bt(K[ot]);W.includes(Z)?$.delete(Z):$.get(Z)!==!0&&$.set(Z,!1)}},[K,W.length,W.join("-")]);const te=[];if(L!==xt){let ot=[...L];for(let Z=0;Z<K.length;Z++){const pt=K[Z],Ot=bt(pt);W.includes(Ot)||(ot.splice(Z,0,pt),te.push(pt))}mt==="wait"&&te.length&&(ot=te),qt(Kt(ot)),ve(L);return}const{forceRender:Wt}=(0,S.useContext)(Ut.p);return(0,C.jsx)(C.Fragment,{children:K.map(ot=>{const Z=bt(ot),pt=L===K||W.includes(Z),Ot=()=>{if($.has(Z))$.set(Z,!0);else return;let xe=!0;$.forEach(je=>{je||(xe=!1)}),xe&&(Wt==null||Wt(),qt(it.current),st&&st())};return(0,C.jsx)(Ct,{isPresent:pt,initial:!q.current||I?void 0:!1,custom:pt?void 0:O,presenceAffectsLayout:ft,mode:mt,onExitComplete:pt?void 0:Ot,children:ot},Z)})})}},38613:function(R,b,y){y.d(b,{p:function(){return S}});var C=y(38497);const S=(0,C.createContext)({})},92529:function(R,b,y){y.d(b,{_:function(){return S}});var C=y(38497);const S=(0,C.createContext)({transformPagePoint:G=>G,isStatic:!1,reducedMotion:"never"})},70509:function(R,b,y){y.d(b,{O:function(){return S}});var C=y(38497);const S=(0,C.createContext)(null)},63631:function(R,b,y){y.d(b,{E:function(){return Wu}});function C(t){if(typeof Proxy=="undefined")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function S(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const G=t=>Array.isArray(t);function et(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function nt(t){return typeof t=="string"||Array.isArray(t)}function Q(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function dt(t,e,n,s){if(typeof e=="function"){const[i,r]=Q(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Q(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function Ct(t,e,n){const s=t.getProps();return dt(s,e,n!==void 0?n:s.custom,t)}const Nt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ut=["initial",...Nt];function Rt(t){let e;return()=>(e===void 0&&(e=t()),e)}const bt=Rt(()=>window.ScrollTimeline!==void 0);class Kt{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>bt()&&i.attachTimeline?i.attachTimeline(e):n(i));return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class ye extends Kt{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Lt(t,e){return t?t[e]||t.default||t:void 0}const F=2e4;function N(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<F;)e+=n,s=t.next(e);return e>=F?1/0:e}function O(t){return typeof t=="function"}function I(t,e){t.timeline=e,t.onfinish=null}const st=t=>Array.isArray(t)&&typeof t[0]=="number",ft={linearEasing:void 0};function mt(t,e){const n=Rt(t);return()=>{var s;return(s=ft[e])!==null&&s!==void 0?s:n()}}const L=mt(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),W=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},q=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=t(W(0,i-1,r))+", ";return`linear(${s.substring(0,s.length-2)})`};function it(t){return!!(typeof t=="function"&&L()||!t||typeof t=="string"&&(t in xt||L())||st(t)||Array.isArray(t)&&t.every(it))}const $=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,xt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$([0,.65,.55,1]),circOut:$([.55,0,1,.45]),backIn:$([.31,.01,.66,-.59]),backOut:$([.33,1.53,.69,.99])};function ve(t,e){if(t)return typeof t=="function"&&L()?q(t,e):st(t)?$(t):Array.isArray(t)?t.map(n=>ve(n,e)||xt.easeOut):xt[t]}const K={x:!1,y:!1};function qt(){return K.x||K.y}function te(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;e&&(i=e.current);const r=(s=n==null?void 0:n[t])!==null&&s!==void 0?s:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function Wt(t,e){const n=te(t),s=new AbortController,i=M(g({passive:!0},e),{signal:s.signal});return[n,i,()=>s.abort()]}function ot(t){return e=>{e.pointerType==="touch"||qt()||t(e)}}function Z(t,e,n={}){const[s,i,r]=Wt(t,n),o=ot(a=>{const{target:l}=a,u=e(a);if(!u||!l)return;const c=ot(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const pt=(t,e)=>e?t===e?!0:pt(t,e.parentElement):!1,Ot=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,xe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function je(t){return xe.has(t.tagName)||t.tabIndex!==-1}const ee=new WeakSet;function Nn(t){return e=>{e.key==="Enter"&&t(e)}}function _e(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Mo=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Nn(()=>{if(ee.has(n))return;_e(n,"down");const i=Nn(()=>{_e(n,"up")}),r=()=>_e(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Un(t){return Ot(t)&&!qt()}function Do(t,e,n={}){const[s,i,r]=Wt(t,n),o=a=>{const l=a.currentTarget;if(!Un(a)||ee.has(l))return;ee.add(l);const u=e(a),c=(f,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),!(!Un(f)||!ee.has(l))&&(ee.delete(l),u&&u(f,{success:m}))},h=f=>{c(f,n.useGlobalTarget||pt(l,f.target))},d=f=>{c(f,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",d,i)};return s.forEach(a=>{!je(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>Mo(u,i),i)}),r}const Kn="easeOut";function Eo(t){var e;if(isGenerator(t.type)){const n=createGeneratorEasing(t,100,t.type);t.ease=supportsLinearEasing()?n.ease:Kn,t.duration=secondsToMilliseconds(n.duration),t.type="keyframes"}else t.duration=secondsToMilliseconds((e=t.duration)!==null&&e!==void 0?e:.3),t.ease=t.ease||Kn}function Zu(t,e,n){var s;const i={},r={fill:"both",easing:"linear",composite:"replace"};r.delay=secondsToMilliseconds((s=n.delay)!==null&&s!==void 0?s:0),Eo(n),r.duration=n.duration;const{ease:o,times:a}=n;a&&(i.offset=a),i[t]=e;const l=mapEasingToNativeEasing(o,n.duration);return Array.isArray(l)?i.easing=l:r.easing=l,{keyframes:i,options:r}}class Xu extends null{constructor(e,n,s,i,r){const o=convertMotionOptionsToNative(s,i,r),a=e.animate(o.keyframes,g({pseudoElement:n},o.options));super(a)}}let Te={},Tt=null;const Yu={set:(t,e)=>{Te[t]=e},commit:()=>{Tt||(Tt=document.createElement("style"),Tt.id="motion-view");let t="";for(const e in Te){const n=Te[e];t+=`${e} {
`;for(const[s,i]of Object.entries(n))t+=` ${s}: ${i};
`;t+=`}
`}Tt.textContent=t,document.head.appendChild(Tt),Te={}},remove:()=>{Tt&&Tt.parentElement&&Tt.parentElement.removeChild(Tt)}},Ro=null;function Ju(t,e,n){if(!document.startViewTransition)return new Promise(i=>_n(this,null,function*(){yield t(),i(new BaseGroupPlaybackControls([]))}));hasTarget("root",n)||css.set(":root",{"view-transition-name":"none"}),css.set("::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)",{"animation-timing-function":"linear !important"}),css.commit();const s=document.startViewTransition(()=>_n(this,null,function*(){yield t()}));return s.finished.finally(()=>{css.remove()}),new Promise(i=>{s.ready.then(()=>{var r;const o=getViewAnimations(),a=[];n.forEach((l,u)=>{for(const c of Ro){if(!l[c])continue;const{keyframes:h,options:d}=l[c];for(let[f,m]of Object.entries(h)){if(!m)continue;const p=g(g({},getValueTransition(e,f)),getValueTransition(d,f)),v=chooseLayerType(c);f==="opacity"&&!Array.isArray(m)&&(m=[v==="new"?0:1,m]),typeof p.delay=="function"&&(p.delay=p.delay(0,1));const x=new PseudoAnimation(document.documentElement,`::view-transition-${v}(${u})`,f,m,p);a.push(x)}}});for(const l of o){if(l.playState==="finished")continue;const{effect:u}=l;if(!u||!(u instanceof KeyframeEffect))continue;const{pseudoElement:c}=u;if(!c)continue;const h=getLayerName(c);if(!h)continue;const d=n.get(h.layer);if(d)Wn(d,"enter")&&Wn(d,"exit")&&u.getKeyframes().some(f=>f.mixBlendMode)?a.push(new NativeAnimationControls(l)):l.cancel();else{const f=h.type==="group"?"layout":"",m=g({},getValueTransition(e,f));applyGeneratorOptions(m);const p=mapEasingToNativeEasing(m.ease,m.duration);u.updateTiming({delay:secondsToMilliseconds((r=m.delay)!==null&&r!==void 0?r:0),duration:m.duration,easing:p}),a.push(new NativeAnimationControls(l))}}i(new BaseGroupPlaybackControls(a))})})}function Wn(t,e){var n;return(n=t==null?void 0:t[e])===null||n===void 0?void 0:n.keyframes.opacity}class Lo{constructor(e,n={}){this.currentTarget="root",this.targets=new Map,this.readyPromise=new Promise(s=>{this.notifyReady=s}),queueMicrotask(()=>{startViewAnimation(e,n,this.targets).then(s=>this.notifyReady(s))})}get(e){return this.currentTarget=e,this}layout(e,n){return this.updateTarget("layout",e,n),this}new(e,n){return this.updateTarget("new",e,n),this}old(e,n){return this.updateTarget("old",e,n),this}enter(e,n){return this.updateTarget("enter",e,n),this}exit(e,n){return this.updateTarget("exit",e,n),this}crossfade(e){return this.updateTarget("enter",{opacity:1},e),this.updateTarget("exit",{opacity:0},e),this}updateTarget(e,n,s={}){const{currentTarget:i,targets:r}=this;r.has(i)||r.set(i,{});const o=r.get(i);o[e]={keyframes:n,options:s}}then(e,n){return this.readyPromise.then(e,n)}}function Qu(t,e={}){return new Lo(t,e)}function Oo(t){return t==="x"||t==="y"?K[t]?null:(K[t]=!0,()=>{K[t]=!1}):K.x||K.y?null:(K.x=K.y=!0,()=>{K.x=K.y=!1})}const ne=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bt=new Set(ne),Bo=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),ko=t=>G(t)?t[t.length-1]||0:t,Ne={skipAnimations:!1,useManualTiming:!1};var lt=y(11679);function Fo(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,h=!1)=>{const f=h&&s?e:n;return c&&r.add(u),f.has(u)||f.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(u))}};return l}const Pe=["read","resolveKeyframes","update","preRender","render","postRender"],Io=40;function $n(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Pe.reduce((x,T)=>(x[T]=Fo(r),x),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:d}=o,f=()=>{const x=Ne.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(x-i.timestamp,Io),1),i.timestamp=x,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),d.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(f))},m=()=>{n=!0,s=!0,i.isProcessing||t(f)};return{schedule:Pe.reduce((x,T)=>{const P=o[T];return x[T]=(E,w=!1,B=!1)=>(n||m(),P.schedule(E,w,B)),x},{}),cancel:x=>{for(let T=0;T<Pe.length;T++)o[Pe[T]].cancel(x)},state:i,steps:o}}const{schedule:k,cancel:Vt,state:z,steps:Ue}=$n(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:lt.Z,!0);let Ae;function jo(){Ae=void 0}const gt={now:()=>(Ae===void 0&>.set(z.isProcessing||Ne.useManualTiming?z.timestamp:performance.now()),Ae),set:t=>{Ae=t,queueMicrotask(jo)}};function Ke(t,e){t.indexOf(e)===-1&&t.push(e)}function We(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function qu([...t],e,n){const s=e<0?t.length+e:e;if(s>=0&&s<t.length){const i=n<0?t.length+n:n,[r]=t.splice(e,1);t.splice(i,0,r)}return t}class $e{constructor(){this.subscriptions=[]}add(e){return Ke(this.subscriptions,e),()=>We(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Gn(t,e){return e?t*(1e3/e):0}const zn=30,_o=t=>!isNaN(parseFloat(t)),Hn={current:void 0};class No{constructor(e,n={}){this.version="11.16.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=gt.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=gt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=_o(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new $e);const s=this.events[e].add(n);return e==="change"?()=>{s(),k.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Hn.current&&Hn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zn);return Gn(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function se(t,e){return new No(t,e)}function Uo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,se(n))}function Ko(t,e){let o=Ct(t,e)||{},{transitionEnd:s={},transition:i={}}=o,r=at(o,["transitionEnd","transition"]);r=g(g({},r),s);for(const a in r){const l=ko(r[a]);Uo(t,a,l)}}const X=t=>!!(t&&t.getVelocity);function Wo(t){return!!(X(t)&&t.add)}function Ge(t,e){const n=t.getValue("willChange");if(Wo(n))return n.add(e)}const ze=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Zn="data-"+ze("framerAppearId");function Xn(t){return t.props[Zn]}const yt=t=>t*1e3,Pt=t=>t/1e3,Yn={current:!1},Jn=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,$o=1e-7,Go=12;function zo(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Jn(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>$o&&++a<Go);return o}function ie(t,e,n,s){if(t===e&&n===s)return lt.Z;const i=r=>zo(r,0,1,t,n);return r=>r===0||r===1?r:Jn(i(r),e,s)}const Qn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,qn=t=>e=>1-t(1-e),ts=ie(.33,1.53,.69,.99),He=qn(ts),es=Qn(He),ns=t=>(t*=2)<1?.5*He(t):.5*(2-Math.pow(2,-10*(t-1))),Ze=t=>1-Math.sin(Math.acos(t)),ss=qn(Ze),is=Qn(Ze),os=t=>/^0[^.\s]+$/u.test(t);function Ho(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||os(t):!0}var At=y(17672);const rs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),as=t=>e=>typeof e=="string"&&e.startsWith(t),ls=as("--"),Zo=as("var(--"),Xe=t=>Zo(t)?Xo.test(t.split("/*")[0].trim()):!1,Xo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Yo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Jo(t){const e=Yo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n!=null?n:s}`,i]}const Qo=4;function us(t,e,n=1){(0,At.k)(n<=Qo,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[s,i]=Jo(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return rs(o)?parseFloat(o):o}return Xe(i)?us(i,e,n+1):i}const St=(t,e,n)=>n>e?e:n<t?t:n,$t={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},oe=M(g({},$t),{transform:t=>St(0,1,t)}),Se=M(g({},$t),{default:1}),re=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Mt=re("deg"),vt=re("%"),A=re("px"),qo=re("vh"),tr=re("vw"),cs=M(g({},vt),{parse:t=>vt.parse(t)/100,transform:t=>vt.transform(t*100)}),er=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),hs=t=>t===$t||t===A,ds=(t,e)=>parseFloat(t.split(", ")[e]),fs=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return ds(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?ds(r[1],t):0}},nr=new Set(["x","y","z"]),sr=ne.filter(t=>!nr.has(t));function ir(t){const e=[];return sr.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Gt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:fs(4,13),y:fs(5,14)};Gt.translateX=Gt.x,Gt.translateY=Gt.y;const ms=t=>e=>e.test(t),ps=[$t,A,vt,Mt,tr,qo,{test:t=>t==="auto",parse:t=>t}],gs=t=>ps.find(ms(t)),kt=new Set;let Ye=!1,Je=!1;function ys(){if(Je){const t=Array.from(kt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ir(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Je=!1,Ye=!1,kt.forEach(t=>t.complete()),kt.clear()}function vs(){kt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Je=!0)})}function or(){vs(),ys()}class Qe{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(kt.add(this),Ye||(Ye=!0,k.read(vs),k.resolveKeyframes(ys))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),kt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,kt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ae=t=>Math.round(t*1e5)/1e5,qe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function rr(t){return t==null}const ar=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tn=(t,e)=>n=>!!(typeof n=="string"&&ar.test(n)&&n.startsWith(t)||e&&!rr(n)&&Object.prototype.hasOwnProperty.call(n,e)),xs=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(qe);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},lr=t=>St(0,255,t),en=M(g({},$t),{transform:t=>Math.round(lr(t))}),Ft={test:tn("rgb","red"),parse:xs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+en.transform(t)+", "+en.transform(e)+", "+en.transform(n)+", "+ae(oe.transform(s))+")"};function ur(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const nn={test:tn("#"),parse:ur,transform:Ft.transform},zt={test:tn("hsl","hue"),parse:xs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+vt.transform(ae(e))+", "+vt.transform(ae(n))+", "+ae(oe.transform(s))+")"},Y={test:t=>Ft.test(t)||nn.test(t)||zt.test(t),parse:t=>Ft.test(t)?Ft.parse(t):zt.test(t)?zt.parse(t):nn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ft.transform(t):zt.transform(t)},cr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hr(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(qe))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(cr))===null||n===void 0?void 0:n.length)||0)>0}const Ts="number",Ps="color",dr="var",fr="var(",As="${}",mr=/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 le(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(mr,l=>(Y.test(l)?(s.color.push(r),i.push(Ps),n.push(Y.parse(l))):l.startsWith(fr)?(s.var.push(r),i.push(dr),n.push(l)):(s.number.push(r),i.push(Ts),n.push(parseFloat(l))),++r,As)).split(As);return{values:n,split:a,indexes:s,types:i}}function Ss(t){return le(t).values}function ws(t){const{split:e,types:n}=le(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===Ts?r+=ae(i[o]):a===Ps?r+=Y.transform(i[o]):r+=i[o]}return r}}const pr=t=>typeof t=="number"?0:t;function gr(t){const e=Ss(t);return ws(t)(e.map(pr))}const Dt={test:hr,parse:Ss,createTransformer:ws,getAnimatableNone:gr},yr=new Set(["brightness","contrast","saturate","opacity"]);function vr(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(qe)||[];if(!s)return t;const i=n.replace(s,"");let r=yr.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const xr=/\b([a-z-]*)\(.*?\)/gu,sn=M(g({},Dt),{getAnimatableNone:t=>{const e=t.match(xr);return e?e.map(vr).join(" "):t}}),Tr={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,backgroundPositionX:A,backgroundPositionY:A},Pr={rotate:Mt,rotateX:Mt,rotateY:Mt,rotateZ:Mt,scale:Se,scaleX:Se,scaleY:Se,scaleZ:Se,skew:Mt,skewX:Mt,skewY:Mt,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:oe,originX:cs,originY:cs,originZ:A},Cs=M(g({},$t),{transform:Math.round}),on=M(g(g({},Tr),Pr),{zIndex:Cs,size:A,fillOpacity:oe,strokeOpacity:oe,numOctaves:Cs}),Ar=M(g({},on),{color:Y,backgroundColor:Y,outlineColor:Y,fill:Y,stroke:Y,borderColor:Y,borderTopColor:Y,borderRightColor:Y,borderBottomColor:Y,borderLeftColor:Y,filter:sn,WebkitFilter:sn}),rn=t=>Ar[t];function bs(t,e){let n=rn(t);return n!==sn&&(n=Dt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Sr=new Set(["auto","none","0"]);function wr(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Sr.has(r)&&le(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=bs(n,i)}class Vs extends Qe{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Xe(u))){const c=us(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!er.has(s)||e.length!==2)return;const[i,r]=e,o=gs(i),a=gs(r);if(o!==a)if(hs(o)&&hs(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)Ho(e[i])&&s.push(i);s.length&&wr(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Gt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=Gt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Ms=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Dt.test(t)||t==="0")&&!t.startsWith("url("));function Cr(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function br(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Ms(i,e),a=Ms(r,e);return(0,At.K)(o===a,`You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:Cr(t)||(n==="spring"||O(n))&&s}const Vr=t=>t!==null;function we(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Vr),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const Mr=40;class Ds{constructor(l){var u=l,{autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop"}=u,a=at(u,["autoplay","delay","type","repeat","repeatDelay","repeatType"]);this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=gt.now(),this.options=g({autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o},a),this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Mr?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&or(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=gt.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!br(e,s,i,r))if(Yn.current||!o){l==null||l(we(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}else this.options.duration=0;const c=this.initPlayback(e,n);c!==!1&&(this._resolved=g({keyframes:e,finalKeyframe:n},c),this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const j=(t,e,n)=>t+(e-t)*n;function an(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Dr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=an(l,a,t+1/3),r=an(l,a,t),o=an(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ce(t,e){return n=>n>0?e:t}const ln=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Er=[nn,Ft,zt],Rr=t=>Er.find(e=>e.test(t));function Es(t){const e=Rr(t);if((0,At.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===zt&&(n=Dr(n)),n}const Rs=(t,e)=>{const n=Es(t),s=Es(e);if(!n||!s)return Ce(t,e);const i=g({},n);return r=>(i.red=ln(n.red,s.red,r),i.green=ln(n.green,s.green,r),i.blue=ln(n.blue,s.blue,r),i.alpha=j(n.alpha,s.alpha,r),Ft.transform(i))},Lr=(t,e)=>n=>e(t(n)),ue=(...t)=>t.reduce(Lr),un=new Set(["none","hidden"]);function Or(t,e){return un.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Br(t,e){return n=>j(t,e,n)}function cn(t){return typeof t=="number"?Br:typeof t=="string"?Xe(t)?Ce:Y.test(t)?Rs:Ir:Array.isArray(t)?Ls:typeof t=="object"?Y.test(t)?Rs:kr:Ce}function Ls(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>cn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function kr(t,e){const n=g(g({},t),e),s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=cn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Fr(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[o]++}return s}const Ir=(t,e)=>{const n=Dt.createTransformer(e),s=le(t),i=le(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?un.has(t)&&!i.values.length||un.has(e)&&!s.values.length?Or(t,e):ue(Ls(Fr(s,i),i.values),n):((0,At.K)(!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.`),Ce(t,e))};function Os(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?j(t,e,n):cn(t)(t,e)}const jr=5;function Bs(t,e,n){const s=Math.max(e-jr,0);return Gn(n-t(s),e-s)}const _={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},hn=.001;function _r({duration:t=_.duration,bounce:e=_.bounce,velocity:n=_.velocity,mass:s=_.mass}){let i,r;(0,At.K)(t<=yt(_.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=St(_.minDamping,_.maxDamping,o),t=St(_.minDuration,_.maxDuration,Pt(t)),o<1?(i=u=>{const c=u*o,h=c*t,d=c-n,f=dn(u,o),m=Math.exp(-h);return hn-d/f*m},r=u=>{const h=u*o*t,d=h*n+n,f=Math.pow(o,2)*Math.pow(u,2)*t,m=Math.exp(-h),p=dn(Math.pow(u,2),o);return(-i(u)+hn>0?-1:1)*((d-f)*m)/p}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-hn+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Ur(i,r,a);if(t=yt(t),isNaN(l))return{stiffness:_.stiffness,damping:_.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const Nr=12;function Ur(t,e,n){let s=n;for(let i=1;i<Nr;i++)s=s-t(s)/e(s);return s}function dn(t,e){return t*Math.sqrt(1-e*e)}const Kr=["duration","bounce"],Wr=["stiffness","damping","mass"];function ks(t,e){return e.some(n=>t[n]!==void 0)}function $r(t){let e=g({velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1},t);if(!ks(t,Wr)&&ks(t,Kr))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*St(.05,1,1-(t.bounce||0))*Math.sqrt(i);e=M(g({},e),{mass:_.mass,stiffness:i,damping:r})}else{const n=_r(t);e=M(g(g({},e),n),{mass:_.mass}),e.isResolvedFromDuration=!0}return e}function Fs(t=_.visualDuration,e=_.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:f}=$r(M(g({},n),{velocity:-Pt(n.velocity||0)})),m=d||0,p=u/(2*Math.sqrt(l*c)),v=o-r,x=Pt(Math.sqrt(l/c)),T=Math.abs(v)<5;s||(s=T?_.restSpeed.granular:_.restSpeed.default),i||(i=T?_.restDelta.granular:_.restDelta.default);let P;if(p<1){const w=dn(x,p);P=B=>{const H=Math.exp(-p*x*B);return o-H*((m+p*x*v)/w*Math.sin(w*B)+v*Math.cos(w*B))}}else if(p===1)P=w=>o-Math.exp(-x*w)*(v+(m+x*v)*w);else{const w=x*Math.sqrt(p*p-1);P=B=>{const H=Math.exp(-p*x*B),V=Math.min(w*B,300);return o-H*((m+p*x*v)*Math.sinh(V)+w*v*Math.cosh(V))/w}}const E={calculatedDuration:f&&h||null,next:w=>{const B=P(w);if(f)a.done=w>=h;else{let H=0;p<1&&(H=w===0?yt(m):Bs(P,w,B));const V=Math.abs(H)<=s,tt=Math.abs(o-B)<=i;a.done=V&&tt}return a.value=a.done?o:B,a},toString:()=>{const w=Math.min(N(E),F),B=q(H=>E.next(w*H).value,w,30);return w+"ms "+B}};return E}function Is({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},f=V=>a!==void 0&&V<a||l!==void 0&&V>l,m=V=>a===void 0?l:l===void 0||Math.abs(a-V)<Math.abs(l-V)?a:l;let p=n*e;const v=h+p,x=o===void 0?v:o(v);x!==v&&(p=x-h);const T=V=>-p*Math.exp(-V/s),P=V=>x+T(V),E=V=>{const tt=T(V),ht=P(V);d.done=Math.abs(tt)<=u,d.value=d.done?x:ht};let w,B;const H=V=>{f(d.value)&&(w=V,B=Fs({keyframes:[d.value,m(d.value)],velocity:Bs(P,V,d.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return H(0),{calculatedDuration:null,next:V=>{let tt=!1;return!B&&w===void 0&&(tt=!0,E(V),H(V)),w!==void 0&&V>=w?B.next(V-w):(!tt&&E(V),d)}}}const Gr=ie(.42,0,1,1),zr=ie(0,0,.58,1),js=ie(.42,0,.58,1),Hr=t=>Array.isArray(t)&&typeof t[0]!="number",_s={linear:lt.Z,easeIn:Gr,easeInOut:js,easeOut:zr,circIn:Ze,circInOut:is,circOut:ss,backIn:He,backInOut:es,backOut:ts,anticipate:ns},Ns=t=>{if(st(t)){(0,At.k)(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,i]=t;return ie(e,n,s,i)}else if(typeof t=="string")return(0,At.k)(_s[t]!==void 0,`Invalid easing type '${t}'`),_s[t];return t};function Zr(t,e,n){const s=[],i=n||Os,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||lt.Z:e;a=ue(l,a)}s.push(a)}return s}function Xr(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if((0,At.k)(r===e.length,"Both input and output ranges must be the same length"),r===1)return()=>e[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=Zr(e,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;c<t.length-2&&!(u<t[c+1]);c++);const h=W(t[c],t[c+1],u);return o[c](h)};return n?u=>l(St(t[0],t[r-1],u)):l}function Yr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=W(0,e,s);t.push(j(n,1,i))}}function Jr(t){const e=[0];return Yr(e,t.length-1),e}function Qr(t,e){return t.map(n=>n*e)}function qr(t,e){return t.map(()=>e||js).splice(0,t.length-1)}function be({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Hr(s)?s.map(Ns):Ns(s),r={done:!1,value:e[0]},o=Qr(n&&n.length===e.length?n:Jr(e),t),a=Xr(o,e,{ease:Array.isArray(i)?i:qr(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const ta=t=>{const e=({timestamp:n})=>t(n);return{start:()=>k.update(e,!0),stop:()=>Vt(e),now:()=>z.isProcessing?z.timestamp:gt.now()}},ea={decay:Is,inertia:Is,tween:be,keyframes:be,spring:Fs},na=t=>t/100;class Ve extends Ds{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Qe,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=O(n)?n:ea[n]||be;let l,u;a!==be&&typeof e[0]!="number"&&(l=ue(na,Os(e[0],e[1])),e=[0,100]);const c=a(M(g({},this.options),{keyframes:e}));r==="mirror"&&(u=a(M(g({},this.options),{keyframes:[...e].reverse(),velocity:-o}))),c.calculatedDuration===null&&(c.calculatedDuration=N(c));const{calculatedDuration:h}=c,d=h+i,f=d*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:d,totalDuration:f}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:d,repeat:f,repeatType:m,repeatDelay:p,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const x=this.currentTime-d*(this.speed>=0?1:-1),T=this.speed>=0?x<0:x>c;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let P=this.currentTime,E=r;if(f){const V=Math.min(this.currentTime,c)/h;let tt=Math.floor(V),ht=V%1;!ht&&V>=1&&(ht=1),ht===1&&tt--,tt=Math.min(tt,f+1),!!(tt%2)&&(m==="reverse"?(ht=1-ht,p&&(ht-=p/h)):m==="mirror"&&(E=o)),P=St(0,1,ht)*h}const w=T?{done:!1,value:l[0]}:E.next(P);a&&(w.value=a(w.value));let{done:B}=w;!T&&u!==null&&(B=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return H&&i!==void 0&&(w.value=we(l,this.options,i)),v&&v(w.value),H&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Pt(e.calculatedDuration):0}get time(){return Pt(this.currentTime)}set time(e){e=yt(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Pt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=ta,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s!=null?s:this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}function nc(t){return new Ve(t)}const sa=new Set(["opacity","clipPath","filter","transform"]);function ia(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=ve(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const oa=Rt(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Me=10,ra=2e4;function aa(t){return O(t.type)||t.type==="spring"||!it(t.ease)}function la(t,e){const n=new Ve(M(g({},e),{keyframes:t,repeat:0,delay:0,isGenerator:!0}));let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&r<ra;)s=n.sample(r),i.push(s.value),r+=Me;return{times:void 0,keyframes:i,duration:r-Me,ease:"linear"}}const Us={anticipate:ns,backInOut:es,circInOut:is};function ua(t){return t in Us}class Ks extends Ds{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:r}=this.options;this.resolver=new Vs(r,(o,a)=>this.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&L()&&ua(o)&&(o=Us[o]),aa(this.options)){const d=this.options,{onComplete:f,onUpdate:m,motionValue:p,element:v}=d,x=at(d,["onComplete","onUpdate","motionValue","element"]),T=la(e,x);e=T.keyframes,e.length===1&&(e[1]=e[0]),i=T.duration,r=T.times,o=T.ease,a="keyframes"}const h=ia(l.owner.current,u,e,M(g({},this.options),{duration:i,times:r,ease:o}));return h.startTime=c!=null?c:this.calcStartTime(),this.pendingTimeline?(I(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;l.set(we(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Pt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Pt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=yt(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return lt.Z;const{animation:s}=n;I(s,e)}return lt.Z}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const u=this.options,{motionValue:c,onUpdate:h,onComplete:d,element:f}=u,m=at(u,["motionValue","onUpdate","onComplete","element"]),p=new Ve(M(g({},m),{keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0})),v=yt(this.time);c.setWithVelocity(p.sample(v-Me).value,p.sample(v).value,Me)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;return oa()&&s&&sa.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const ca={type:"spring",stiffness:500,damping:25,restSpeed:10},ha=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),da={type:"keyframes",duration:.8},fa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ma=(t,{keyframes:e})=>e.length>2?da:Bt.has(t)?t.startsWith("scale")?ha(e[1]):ca:fa;function pa(h){var d=h,{when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u}=d,c=at(d,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(c).length}const fn=(t,e,n,s={},i,r)=>o=>{const a=Lt(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-yt(l);let c=M(g({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity()},a),{delay:-u,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i});pa(a)||(c=g(g({},c),ma(t,c))),c.duration&&(c.duration=yt(c.duration)),c.repeatDelay&&(c.repeatDelay=yt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),(Yn.current||Ne.skipAnimations)&&(h=!0,c.duration=0,c.delay=0),h&&!r&&e.get()!==void 0){const d=we(c.keyframes,a);if(d!==void 0)return k.update(()=>{c.onUpdate(d),c.onComplete()}),new ye([])}return!r&&Ks.supports(c)?new Ks(c):new Ve(c)};function ga({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Ws(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let h=e,{transition:o=t.getDefaultTransition(),transitionEnd:a}=h,l=at(h,["transition","transitionEnd"]);s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const d in l){const f=t.getValue(d,(r=t.latestValues[d])!==null&&r!==void 0?r:null),m=l[d];if(m===void 0||c&&ga(c,d))continue;const p=g({delay:n},Lt(o||{},d));let v=!1;if(window.MotionHandoffAnimation){const T=Xn(t);if(T){const P=window.MotionHandoffAnimation(T,d,k);P!==null&&(p.startTime=P,v=!0)}}Ge(t,d),f.start(fn(d,f,m,t.shouldReduceMotion&&Bt.has(d)?{type:!1}:p,t,v));const x=f.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{k.update(()=>{a&&Ko(t,a)})}),u}function mn(t,e,n={}){var s;const i=Ct(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(Ws(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:d}=r;return ya(t,e,c+u,h,d,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function ya(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(va).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(mn(u,e,M(g({},r),{delay:n+l(c)})).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function va(t,e){return t.sortNodePosition(e)}function xa(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>mn(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=mn(t,e,n);else{const i=typeof e=="function"?Ct(t,e,n.custom):e;s=Promise.all(Ws(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ta=Ut.length;function $s(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?$s(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Ta;n++){const s=Ut[n],i=t.props[s];(nt(i)||i===!1)&&(e[s]=i)}return e}const Pa=[...Nt].reverse(),Aa=Nt.length;function Sa(t){return e=>Promise.all(e.map(({animation:n,options:s})=>xa(t,n,s)))}function wa(t){let e=Sa(t),n=Gs(),s=!0;const i=l=>(u,c)=>{var h;const d=Ct(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(d){const f=d,{transition:m,transitionEnd:p}=f,v=at(f,["transition","transitionEnd"]);u=g(g(g({},u),v),p)}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=$s(t.parent)||{},h=[],d=new Set;let f={},m=1/0;for(let v=0;v<Aa;v++){const x=Pa[v],T=n[x],P=u[x]!==void 0?u[x]:c[x],E=nt(P),w=x===l?T.isActive:null;w===!1&&(m=v);let B=P===c[x]&&P!==u[x]&&E;if(B&&s&&t.manuallyAnimateOnMount&&(B=!1),T.protectedKeys=g({},f),!T.isActive&&w===null||!P&&!T.prevProp||S(P)||typeof P=="boolean")continue;const H=Ca(T.prevProp,P);let V=H||x===l&&T.isActive&&!B&&E||v>m&&E,tt=!1;const ht=Array.isArray(P)?P:[P];let Qt=ht.reduce(i(x),{});w===!1&&(Qt={});const{prevResolvedValues:So={}}=T,$u=g(g({},So),Qt),wo=J=>{V=!0,d.has(J)&&(tt=!0,d.delete(J)),T.needsAnimating[J]=!0;const wt=t.getValue(J);wt&&(wt.liveStyle=!1)};for(const J in $u){const wt=Qt[J],Fn=So[J];if(f.hasOwnProperty(J))continue;let In=!1;G(wt)&&G(Fn)?In=!et(wt,Fn):In=wt!==Fn,In?wt!=null?wo(J):d.add(J):wt!==void 0&&d.has(J)?wo(J):T.protectedKeys[J]=!0}T.prevProp=P,T.prevResolvedValues=Qt,T.isActive&&(f=g(g({},f),Qt)),s&&t.blockInitialAnimation&&(V=!1),V&&(!(B&&H)||tt)&&h.push(...ht.map(J=>({animation:J,options:{type:x}})))}if(d.size){const v={};d.forEach(x=>{const T=t.getBaseTarget(x),P=t.getValue(x);P&&(P.liveStyle=!0),v[x]=T!=null?T:null}),h.push({animation:v})}let p=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(d=>{var f;return(f=d.animationState)===null||f===void 0?void 0:f.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Gs(),s=!0}}}function Ca(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!et(e,t):!1}function It(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gs(){return{animate:It(!0),whileInView:It(),whileHover:It(),whileTap:It(),whileDrag:It(),whileFocus:It(),exit:It()}}class Et{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ba extends Et{constructor(e){super(e),e.animationState||(e.animationState=wa(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();S(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let Va=0;class Ma extends Et{constructor(){super(...arguments),this.id=Va++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Da={animation:{Feature:ba},exit:{Feature:Ma}};function ce(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function he(t){return{point:{x:t.pageX,y:t.pageY}}}const Ea=t=>e=>Ot(e)&&t(e,he(e));function de(t,e,n,s){return ce(t,e,Ea(n),s)}const zs=(t,e)=>Math.abs(t-e);function Ra(t,e){const n=zs(t.x,e.x),s=zs(t.y,e.y);return Math.sqrt(jn(n,2)+jn(s,2))}class Hs{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=gn(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=Ra(h.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:m}=h,{timestamp:p}=z;this.history.push(M(g({},m),{timestamp:p}));const{onStart:v,onMove:x}=this.handlers;d||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=pn(d,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:f,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=gn(h.type==="pointercancel"?this.lastMoveEventInfo:pn(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,v),m&&m(h,v)},!Ot(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=he(e),a=pn(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=z;this.history=[M(g({},l),{timestamp:u})];const{onSessionStart:c}=n;c&&c(e,gn(a,this.history)),this.removeListeners=ue(de(this.contextWindow,"pointermove",this.handlePointerMove),de(this.contextWindow,"pointerup",this.handlePointerUp),de(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Vt(this.updatePoint)}}function pn(t,e){return e?{point:e(t.point)}:t}function Zs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function gn({point:t},e){return{point:t,delta:Zs(t,Xs(e)),offset:Zs(t,La(e)),velocity:Oa(e,.1)}}function La(t){return t[0]}function Xs(t){return t[t.length-1]}function Oa(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Xs(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>yt(e)));)n--;if(!s)return{x:0,y:0};const r=Pt(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ht(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const Ys=1e-4,Ba=1-Ys,ka=1+Ys,Js=.01,Fa=0-Js,Ia=0+Js;function rt(t){return t.max-t.min}function ja(t,e,n){return Math.abs(t-e)<=n}function Qs(t,e,n,s=.5){t.origin=s,t.originPoint=j(e.min,e.max,t.origin),t.scale=rt(n)/rt(e),t.translate=j(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ba&&t.scale<=ka||isNaN(t.scale))&&(t.scale=1),(t.translate>=Fa&&t.translate<=Ia||isNaN(t.translate))&&(t.translate=0)}function fe(t,e,n,s){Qs(t.x,e.x,n.x,s?s.originX:void 0),Qs(t.y,e.y,n.y,s?s.originY:void 0)}function qs(t,e,n){t.min=n.min+e.min,t.max=t.min+rt(e)}function _a(t,e,n){qs(t.x,e.x,n.x),qs(t.y,e.y,n.y)}function ti(t,e,n){t.min=e.min-n.min,t.max=t.min+rt(e)}function me(t,e,n){ti(t.x,e.x,n.x),ti(t.y,e.y,n.y)}function Na(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?j(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?j(n,t,s.max):Math.min(t,n)),t}function ei(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Ua(t,{top:e,left:n,bottom:s,right:i}){return{x:ei(t.x,n,i),y:ei(t.y,e,s)}}function ni(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Ka(t,e){return{x:ni(t.x,e.x),y:ni(t.y,e.y)}}function Wa(t,e){let n=.5;const s=rt(t),i=rt(e);return i>s?n=W(e.min,e.max-s,t.min):s>i&&(n=W(t.min,t.max-i,e.min)),St(0,1,n)}function $a(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const yn=.35;function Ga(t=yn){return t===!1?t=0:t===!0&&(t=yn),{x:si(t,"left","right"),y:si(t,"top","bottom")}}function si(t,e,n){return{min:ii(t,e),max:ii(t,n)}}function ii(t,e){return typeof t=="number"?t:t[e]||0}const oi=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zt=()=>({x:oi(),y:oi()}),ri=()=>({min:0,max:0}),U=()=>({x:ri(),y:ri()});function ut(t){return[t("x"),t("y")]}function ai({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function za({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Ha(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function vn(t){return t===void 0||t===1}function xn({scale:t,scaleX:e,scaleY:n}){return!vn(t)||!vn(e)||!vn(n)}function jt(t){return xn(t)||li(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function li(t){return ui(t.x)||ui(t.y)}function ui(t){return t&&t!=="0%"}function De(t,e,n){const s=t-n,i=e*s;return n+i}function ci(t,e,n,s,i){return i!==void 0&&(t=De(t,i,s)),De(t,n,s)+e}function Tn(t,e=0,n=1,s,i){t.min=ci(t.min,e,n,s,i),t.max=ci(t.max,e,n,s,i)}function hi(t,{x:e,y:n}){Tn(t.x,e.translate,e.scale,e.originPoint),Tn(t.y,n.translate,n.scale,n.originPoint)}const di=.999999999999,fi=1.0000000000001;function Za(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Yt(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,hi(t,o)),s&&jt(r.latestValues)&&Yt(t,r.latestValues))}e.x<fi&&e.x>di&&(e.x=1),e.y<fi&&e.y>di&&(e.y=1)}function Xt(t,e){t.min=t.min+e,t.max=t.max+e}function mi(t,e,n,s,i=.5){const r=j(t.min,t.max,i);Tn(t,e,n,r,s)}function Yt(t,e){mi(t.x,e.x,e.scaleX,e.scale,e.originX),mi(t.y,e.y,e.scaleY,e.scale,e.originY)}function pi(t,e){return ai(Ha(t.getBoundingClientRect(),e))}function Xa(t,e,n){const s=pi(t,n),{scroll:i}=e;return i&&(Xt(s.x,i.offset.x),Xt(s.y,i.offset.y)),s}const gi=({current:t})=>t?t.ownerDocument.defaultView:null,Ya=new WeakMap;class Ja{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=U(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(he(c).point)},r=(c,h)=>{const{drag:d,dragPropagation:f,onDragStart:m}=this.getProps();if(d&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Oo(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ut(v=>{let x=this.getAxisMotionValue(v).get()||0;if(vt.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const P=T.layout.layoutBox[v];P&&(x=rt(P)*(parseFloat(x)/100))}}this.originPoint[v]=x}),m&&k.postRender(()=>m(c,h)),Ge(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:d,dragDirectionLock:f,onDirectionLock:m,onDrag:p}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:v}=h;if(f&&this.currentDirection===null){this.currentDirection=Qa(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),p&&p(c,h)},a=(c,h)=>this.stop(c,h),l=()=>ut(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Hs(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:gi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&k.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Ee(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=Na(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&Ht(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ua(i.layoutBox,n):this.constraints=!1,this.elastic=Ga(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ut(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=$a(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ht(e))return!1;const s=e.current;(0,At.k)(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Xa(s,i.root,this.visualElement.getTransformPagePoint());let o=Ka(i.layout.layoutBox,r);if(n){const a=n(za(o));this.hasMutatedConstraints=!!a,a&&(o=ai(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ut(c=>{if(!Ee(c,n,this.currentDirection))return;let h=l&&l[c]||{};o&&(h={min:0,max:0});const d=i?200:1e6,f=i?40:1e7,m=g(g({type:"inertia",velocity:s?e[c]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},r),h);return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ge(this.visualElement,e),s.start(fn(e,s,0,n,this.visualElement,!1))}stopAnimation(){ut(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ut(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){ut(n=>{const{drag:s}=this.getProps();if(!Ee(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-j(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Ht(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ut(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Wa({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),ut(o=>{if(!Ee(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(j(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Ya.set(this.visualElement,this);const e=this.visualElement.current,n=de(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Ht(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),k.read(s);const o=ce(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ut(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=yn,dragMomentum:a=!0}=e;return M(g({},e),{drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a})}}function Ee(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Qa(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class qa extends Et{constructor(e){super(e),this.removeGroupControls=lt.Z,this.removeListeners=lt.Z,this.controls=new Ja(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||lt.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}const yi=t=>(e,n)=>{t&&k.postRender(()=>t(e,n))};class tl extends Et{constructor(){super(...arguments),this.removePointerDownListener=lt.Z}onPointerDown(e){this.session=new Hs(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:yi(e),onStart:yi(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&k.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=de(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var Pn=y(96469),D=y(38497),An=y(70509);function el(){const t=(0,D.useContext)(An.O);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=(0,D.useId)();(0,D.useEffect)(()=>s(i),[]);const r=(0,D.useCallback)(()=>n&&n(i),[i,n]);return!e&&n?[!1,r]:[!0]}function sc(){return nl(useContext(PresenceContext))}function nl(t){return t===null?!0:t.isPresent}var vi=y(38613);const xi=(0,D.createContext)({}),Re={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ti(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const pe={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(A.test(t))t=parseFloat(t);else return t;const n=Ti(t,e.target.x),s=Ti(t,e.target.y);return`${n}% ${s}%`}},sl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Dt.parse(t);if(i.length>5)return s;const r=Dt.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=j(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Le={};function il(t){Object.assign(Le,t)}const{schedule:Sn,cancel:ic}=$n(queueMicrotask,!1);class ol extends D.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;il(rl),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions(M(g({},r.options),{onExitComplete:()=>this.safeToRemove()}))),Re.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||k.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Sn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Pi(t){const[e,n]=el(),s=(0,D.useContext)(vi.p);return(0,Pn.jsx)(ol,M(g({},t),{layoutGroup:s,switchLayoutGroup:(0,D.useContext)(xi),isPresent:e,safeToRemove:n}))}const rl={borderRadius:M(g({},pe),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomLeftRadius:pe,borderBottomRightRadius:pe,boxShadow:sl};function al(t,e,n){const s=X(t)?t:se(t);return s.start(fn("",s,e,n)),s.animation}function ll(t){return t instanceof SVGElement&&t.tagName!=="svg"}const ul=(t,e)=>t.depth-e.depth;class cl{constructor(){this.children=[],this.isDirty=!1}add(e){Ke(this.children,e),this.isDirty=!0}remove(e){We(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ul),this.isDirty=!1,this.children.forEach(e)}}function Ai(t,e){const n=gt.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(Vt(s),t(r-e))};return k.read(s,!0),()=>Vt(s)}function oc(t,e){return Ai(t,secondsToMilliseconds(e))}function Oe(t){const e=X(t)?t.get():t;return Bo(e)?e.toValue():e}const Si=["TopLeft","TopRight","BottomLeft","BottomRight"],hl=Si.length,wi=t=>typeof t=="string"?parseFloat(t):t,Ci=t=>typeof t=="number"||A.test(t);function dl(t,e,n,s,i,r){i?(t.opacity=j(0,n.opacity!==void 0?n.opacity:1,fl(s)),t.opacityExit=j(e.opacity!==void 0?e.opacity:1,0,ml(s))):r&&(t.opacity=j(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<hl;o++){const a=`border${Si[o]}Radius`;let l=bi(e,a),u=bi(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Ci(l)===Ci(u)?(t[a]=Math.max(j(wi(l),wi(u),s),0),(vt.test(u)||vt.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=j(e.rotate||0,n.rotate||0,s))}function bi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const fl=Vi(0,.5,ss),ml=Vi(.5,.95,lt.Z);function Vi(t,e,n){return s=>s<t?0:s>e?1:n(W(t,e,s))}function Mi(t,e){t.min=e.min,t.max=e.max}function ct(t,e){Mi(t.x,e.x),Mi(t.y,e.y)}function Di(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ei(t,e,n,s,i){return t-=e,t=De(t,1/n,s),i!==void 0&&(t=De(t,1/i,s)),t}function pl(t,e=0,n=1,s=.5,i,r=t,o=t){if(vt.test(e)&&(e=parseFloat(e),e=j(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=j(r.min,r.max,s);t===r&&(a-=e),t.min=Ei(t.min,e,n,a,i),t.max=Ei(t.max,e,n,a,i)}function Ri(t,e,[n,s,i],r,o){pl(t,e[n],e[s],e[i],e.scale,r,o)}const gl=["x","scaleX","originX"],yl=["y","scaleY","originY"];function Li(t,e,n,s){Ri(t.x,e,gl,n?n.x:void 0,s?s.x:void 0),Ri(t.y,e,yl,n?n.y:void 0,s?s.y:void 0)}function Oi(t){return t.translate===0&&t.scale===1}function Bi(t){return Oi(t.x)&&Oi(t.y)}function ki(t,e){return t.min===e.min&&t.max===e.max}function vl(t,e){return ki(t.x,e.x)&&ki(t.y,e.y)}function Fi(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ii(t,e){return Fi(t.x,e.x)&&Fi(t.y,e.y)}function ji(t){return rt(t.x)/rt(t.y)}function _i(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class xl{constructor(){this.members=[]}add(e){Ke(this.members,e),e.scheduleRender()}remove(e){if(We(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Tl(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:d,skewX:f,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),d&&(s+=`rotateY(${d}deg) `),f&&(s+=`skewX(${f}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const _t={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ge=typeof window!="undefined"&&window.MotionDebug!==void 0,wn=["","X","Y","Z"],Pl={visibility:"hidden"},Ni=1e3;let Al=0;function Cn(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ui(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Xn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",k,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Ui(s)}function Ki({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Al++,this.animationId=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,ge&&(_t.totalNodes=_t.resolvedTargetDeltas=_t.recalculatedProjection=0),this.nodes.forEach(Cl),this.nodes.forEach(El),this.nodes.forEach(Rl),this.nodes.forEach(bl),ge&&window.MotionDebug.record(_t)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new cl)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new $e),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ll(o),this.instance=o;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const d=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Ai(d,250),Re.hasAnimatedSinceResize&&(Re.hasAnimatedSinceResize=!1,this.nodes.forEach($i))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeTargetChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Fl,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=c.getProps(),T=!this.targetLayout||!Ii(this.targetLayout,m)||f,P=!d&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||d&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,P);const E=M(g({},Lt(p,"layout")),{onPlay:v,onComplete:x});(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else d||$i(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vt(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(Ll),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ui(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Wi);return}this.isUpdating||this.nodes.forEach(Ml),this.isUpdating=!1,this.nodes.forEach(Dl),this.nodes.forEach(Sl),this.nodes.forEach(wl),this.clearAllSnapshots();const a=gt.now();z.delta=St(0,1e3/60,a-z.timestamp),z.timestamp=a,z.isProcessing=!0,Ue.update.process(z),Ue.preRender.process(z),Ue.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vl),this.sharedNodes.forEach(Ol)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=U(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Bi(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(a||jt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Il(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return U();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(jl))){const{scroll:c}=this.root;c&&(Xt(l.x,c.offset.x),Xt(l.y,c.offset.y))}return l}removeElementScroll(o){var a;const l=U();if(ct(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:d}=c;c!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&ct(l,o),Xt(l.x,h.offset.x),Xt(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=U();ct(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Yt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),jt(c.latestValues)&&Yt(l,c.latestValues)}return jt(this.latestValues)&&Yt(l,this.latestValues),l}removeTransform(o){const a=U();ct(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!jt(u.latestValues))continue;xn(u.latestValues)&&u.updateSnapshot();const c=U(),h=u.measurePageBox();ct(c,h),Li(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return jt(this.latestValues)&&Li(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options=M(g(g({},this.options),o),{crossfade:o.crossfade!==void 0?o.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:d}=this.options;if(!(!this.layout||!(h||d))){if(this.resolvedRelativeTargetAt=z.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=U(),this.relativeTargetOrigin=U(),me(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=U(),this.targetWithTransforms=U()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_a(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ct(this.target,this.layout.layoutBox),hi(this.target,this.targetDelta)):ct(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=U(),this.relativeTargetOrigin=U(),me(this.relativeTargetOrigin,this.target,f.target),ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ge&&_t.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||xn(this.parent.latestValues)||li(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===z.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;ct(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;Za(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=U());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Di(this.prevProjectionDelta.x,this.projectionDelta.x),Di(this.prevProjectionDelta.y,this.projectionDelta.y)),fe(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!_i(this.projectionDelta.x,this.prevProjectionDelta.x)||!_i(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),ge&&_t.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Zt(),this.projectionDelta=Zt(),this.projectionDeltaWithTransform=Zt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c=g({},this.latestValues),h=Zt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=U(),f=l?l.source:void 0,m=this.layout?this.layout.source:void 0,p=f!==m,v=this.getStack(),x=!v||v.members.length<=1,T=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(kl));this.animationProgress=0;let P;this.mixTargetDelta=E=>{const w=E/1e3;Gi(h.x,o.x,w),Gi(h.y,o.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(me(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Bl(this.relativeTarget,this.relativeTargetOrigin,d,w),P&&vl(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=U()),ct(P,this.relativeTarget)),p&&(this.animationValues=c,dl(c,u,this.latestValues,w,T,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{Re.hasAnimatedSinceResize=!0,this.currentAnimation=al(0,Ni,M(g({},o),{onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ni),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Yi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||U();const h=rt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=rt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}ct(a,l),Yt(a,c),fe(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new xl),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Cn("z",o,u,this.animationValues);for(let c=0;c<wn.length;c++)Cn(`rotate${wn[c]}`,o,u,this.animationValues),Cn(`skew${wn[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Pl;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Oe(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Oe(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!jt(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const d=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=Tl(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:f,y:m}=this.projectionDelta;u.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=h===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Le){if(d[p]===void 0)continue;const{correct:v,applyTo:x}=Le[p],T=u.transform==="none"?d[p]:v(d[p],h);if(x){const P=x.length;for(let E=0;E<P;E++)u[x[E]]=T}else u[p]=T}return this.options.layoutId&&(u.pointerEvents=h===this?Oe(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Wi),this.root.sharedNodes.clear()}}}function Sl(t){t.updateLayout()}function wl(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?ut(h=>{const d=o?n.measuredBox[h]:n.layoutBox[h],f=rt(d);d.min=s[h].min,d.max=d.min+f}):Yi(r,n.layoutBox,s)&&ut(h=>{const d=o?n.measuredBox[h]:n.layoutBox[h],f=rt(s[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=Zt();fe(a,s,n.layoutBox);const l=Zt();o?fe(l,t.applyTransform(i,!0),n.measuredBox):fe(l,s,n.layoutBox);const u=!Bi(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const m=U();me(m,n.layoutBox,d.layoutBox);const p=U();me(p,s,f.layoutBox),Ii(m,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Cl(t){ge&&_t.totalNodes++,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 bl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Vl(t){t.clearSnapshot()}function Wi(t){t.clearMeasurements()}function Ml(t){t.isLayoutDirty=!1}function Dl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function $i(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function El(t){t.resolveTargetDelta()}function Rl(t){t.calcProjection()}function Ll(t){t.resetSkewAndRotation()}function Ol(t){t.removeLeadSnapshot()}function Gi(t,e,n){t.translate=j(e.translate,0,n),t.scale=j(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function zi(t,e,n,s){t.min=j(e.min,n.min,s),t.max=j(e.max,n.max,s)}function Bl(t,e,n,s){zi(t.x,e.x,n.x,s),zi(t.y,e.y,n.y,s)}function kl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Fl={duration:.45,ease:[.4,0,.1,1]},Hi=t=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Zi=Hi("applewebkit/")&&!Hi("chrome/")?Math.round:lt.Z;function Xi(t){t.min=Zi(t.min),t.max=Zi(t.max)}function Il(t){Xi(t.x),Xi(t.y)}function Yi(t,e,n){return t==="position"||t==="preserve-aspect"&&!ja(ji(e),ji(n),.2)}function jl(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const _l=Ki({attachResizeListener:(t,e)=>ce(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bn={current:void 0},Ji=Ki({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!bn.current){const t=new _l({});t.mount(window),t.setOptions({layoutScroll:!0}),bn.current=t}return bn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Nl={pan:{Feature:tl},drag:{Feature:qa,ProjectionNode:Ji,MeasureLayout:Pi}};function Qi(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&k.postRender(()=>r(e,he(e)))}class Ul extends Et{mount(){const{current:e}=this.node;e&&(this.unmount=Z(e,n=>(Qi(this.node,n,"Start"),s=>Qi(this.node,s,"End"))))}unmount(){}}class Kl extends Et{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(n){e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ue(ce(this.node.current,"focus",()=>this.onFocus()),ce(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function qi(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&k.postRender(()=>r(e,he(e)))}class Wl extends Et{mount(){const{current:e}=this.node;e&&(this.unmount=Do(e,n=>(qi(this.node,n,"Start"),(s,{success:i})=>qi(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Vn=new WeakMap,Mn=new WeakMap,$l=t=>{const e=Vn.get(t.target);e&&e(t)},Gl=t=>{t.forEach($l)};function zl(n){var s=n,{root:t}=s,e=at(s,["root"]);const i=t||document;Mn.has(i)||Mn.set(i,{});const r=Mn.get(i),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(Gl,g({root:t},e))),r[o]}function Hl(t,e,n){const s=zl(e);return Vn.set(t,n),s.observe(t),()=>{Vn.delete(t),s.unobserve(t)}}const Zl={some:0,all:1};class Xl extends Et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Zl[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),d=u?c:h;d&&d(l)};return Hl(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Yl(e,n))&&this.startObserver()}unmount(){}}function Yl({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Jl={inView:{Feature:Xl},tap:{Feature:Wl},focus:{Feature:Kl},hover:{Feature:Ul}},Ql={layout:{ProjectionNode:Ji,MeasureLayout:Pi}},to=(0,D.createContext)({strict:!1});var eo=y(92529);const Be=(0,D.createContext)({});function ke(t){return S(t.animate)||Ut.some(e=>nt(t[e]))}function no(t){return!!(ke(t)||t.variants)}function ql(t,e){if(ke(t)){const{initial:n,animate:s}=t;return{initial:n===!1||nt(n)?n:void 0,animate:nt(s)?s:void 0}}return t.inherit!==!1?e:{}}function tu(t){const{initial:e,animate:n}=ql(t,(0,D.useContext)(Be));return(0,D.useMemo)(()=>({initial:e,animate:n}),[so(e),so(n)])}function so(t){return Array.isArray(t)?t.join(" "):t}var io=y(46653);const oo={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"]},Jt={};for(const t in oo)Jt[t]={isEnabled:e=>oo[t].some(n=>!!e[n])};function eu(t){for(const e in t)Jt[e]=g(g({},Jt[e]),t[e])}const nu=Symbol.for("motionComponentSymbol");function su(t,e,n){return(0,D.useCallback)(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):Ht(n)&&(n.current=s))},[e])}var iu=y(60598);function ou(t,e,n,s,i){var r,o;const{visualElement:a}=(0,D.useContext)(Be),l=(0,D.useContext)(to),u=(0,D.useContext)(An.O),c=(0,D.useContext)(eo._).reducedMotion,h=(0,D.useRef)(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=h.current,f=(0,D.useContext)(xi);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&ru(h.current,n,i,f);const m=(0,D.useRef)(!1);(0,D.useInsertionEffect)(()=>{d&&m.current&&d.update(n,u)});const p=n[Zn],v=(0,D.useRef)(!!p&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,p))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,p)));return(0,iu.L)(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Sn.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,D.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,p)}),v.current=!1))}),d}function ru(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ro(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&Ht(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function ro(t){if(t)return t.options.allowProjection!==!1?t.projection:ro(t.parent)}function au({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){var r,o;t&&eu(t);function a(u,c){let h;const d=M(g(g({},(0,D.useContext)(eo._)),u),{layoutId:lu(u)}),{isStatic:f}=d,m=tu(u),p=s(u,f);if(!f&&io.j){uu(d,t);const v=cu(d);h=v.MeasureLayout,m.visualElement=ou(i,p,d,e,v.ProjectionNode)}return(0,Pn.jsxs)(Be.Provider,{value:m,children:[h&&m.visualElement?(0,Pn.jsx)(h,g({visualElement:m.visualElement},d)):null,n(i,u,su(p,m.visualElement,c),p,f,m.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(r=i.displayName)!==null&&r!==void 0?r:i.name)!==null&&o!==void 0?o:""})`}`;const l=(0,D.forwardRef)(a);return l[nu]=i,l}function lu({layoutId:t}){const e=(0,D.useContext)(vi.p).id;return e&&t!==void 0?e+"-"+t:t}function uu(t,e){const n=(0,D.useContext)(to).strict}function cu(t){const{drag:e,layout:n}=Jt;if(!e&&!n)return{};const s=g(g({},e),n);return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const hu=["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 Dn(t){return typeof t!="string"||t.includes("-")?!1:!!(hu.indexOf(t)>-1||/[A-Z]/u.test(t))}function ao(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const lo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function uo(t,e,n,s){ao(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(lo.has(i)?i:ze(i),e.attrs[i])}function co(t,{layout:e,layoutId:n}){return Bt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Le[t]||t==="opacity")}function En(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(X(i[o])||e.style&&X(e.style[o])||co(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function ho(t,e,n){const s=En(t,e,n);for(const i in t)if(X(t[i])||X(e[i])){const r=ne.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}var du=y(24387);function fu({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,r){const o={latestValues:mu(s,i,r,t),renderState:e()};return n&&(o.mount=a=>n(s,a,o)),o}const fo=t=>(e,n)=>{const s=(0,D.useContext)(Be),i=(0,D.useContext)(An.O),r=()=>fu(t,e,s,i);return n?r():(0,du.h)(r)};function mu(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=Oe(r[f]);let{initial:o,animate:a}=t;const l=ke(t),u=no(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!S(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const p=dt(t,f[m]);if(p){const d=p,{transitionEnd:v,transition:x}=d,T=at(d,["transitionEnd","transition"]);for(const P in T){let E=T[P];if(Array.isArray(E)){const w=c?E.length-1:0;E=E[w]}E!==null&&(i[P]=E)}for(const P in v)i[P]=v[P]}}}return i}const Rn=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),mo=()=>M(g({},Rn()),{attrs:{}}),po=(t,e)=>e&&typeof t=="number"?e.transform(t):t,pu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gu=ne.length;function yu(t,e,n){let s="",i=!0;for(let r=0;r<gu;r++){const o=ne[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=po(a,on[o]);if(!l){i=!1;const c=pu[o]||o;s+=`${c}(${u}) `}n&&(e[o]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Ln(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const u=e[l];if(Bt.has(l)){o=!0;continue}else if(ls(l)){i[l]=u;continue}else{const c=po(u,on[l]);l.startsWith("origin")?(a=!0,r[l]=c):s[l]=c}}if(e.transform||(o||n?s.transform=yu(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;s.transformOrigin=`${l} ${u} ${c}`}}function go(t,e,n){return typeof t=="string"?t:A.transform(e+n*t)}function vu(t,e,n){const s=go(e,t.x,t.width),i=go(n,t.y,t.height);return`${s} ${i}`}const xu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Tu={offset:"strokeDashoffset",array:"strokeDasharray"};function Pu(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?xu:Tu;t[r.offset]=A.transform(-s);const o=A.transform(e),a=A.transform(n);t[r.array]=`${o} ${a}`}function On(t,d,c,h){var f=d,{attrX:e,attrY:n,attrScale:s,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0}=f,u=at(f,["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"]);if(Ln(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:m,style:p,dimensions:v}=t;m.transform&&(v&&(p.transform=m.transform),delete m.transform),v&&(i!==void 0||r!==void 0||p.transform)&&(p.transformOrigin=vu(v,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(m.x=e),n!==void 0&&(m.y=n),s!==void 0&&(m.scale=s),o!==void 0&&Pu(m,o,a,l,!1)}const Bn=t=>typeof t=="string"&&t.toLowerCase()==="svg",Au={useVisualState:fo({scrapeMotionValuesFromProps:ho,createRenderState:mo,onMount:(t,e,{renderState:n,latestValues:s})=>{k.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch(i){n.dimensions={x:0,y:0,width:0,height:0}}}),k.render(()=>{On(n,s,Bn(e.tagName),t.transformTemplate),uo(e,n)})}})},Su={useVisualState:fo({scrapeMotionValuesFromProps:En,createRenderState:Rn})};function yo(t,e,n){for(const s in e)!X(e[s])&&!co(s,n)&&(t[s]=e[s])}function wu({transformTemplate:t},e){return(0,D.useMemo)(()=>{const n=Rn();return Ln(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Cu(t,e){const n=t.style||{},s={};return yo(s,n,t),Object.assign(s,wu(t,e)),s}function bu(t,e){const n={},s=Cu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Vu=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 Fe(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Vu.has(t)}let vo=t=>!Fe(t);function Mu(t){t&&(vo=e=>e.startsWith("on")?!Fe(e):t(e))}try{Mu(require("@emotion/is-prop-valid").default)}catch(t){}function Du(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(vo(i)||n===!0&&Fe(i)||!e&&!Fe(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function Eu(t,e,n,s){const i=(0,D.useMemo)(()=>{const r=mo();return On(r,e,Bn(s),t.transformTemplate),M(g({},r.attrs),{style:g({},r.style)})},[e]);if(t.style){const r={};yo(r,t.style,t),i.style=g(g({},r),i.style)}return i}function Ru(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(Dn(n)?Eu:bu)(s,r,o,n),u=Du(s,typeof n=="string",t),c=n!==D.Fragment?M(g(g({},u),l),{ref:i}):{},{children:h}=s,d=(0,D.useMemo)(()=>X(h)?h.get():h,[h]);return(0,D.createElement)(n,M(g({},c),{children:d}))}}function Lu(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const r=Dn(s)?Au:Su,o=M(g({},r),{preloadedFeatures:t,useRender:Ru(i),createVisualElement:e,Component:s});return au(o)}}const kn={current:null},xo={current:!1};function Ou(){if(xo.current=!0,!!io.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>kn.current=t.matches;t.addListener(e),e()}else kn.current=!1}function Bu(t,e,n){for(const s in e){const i=e[s],r=n[s];if(X(i))t.addValue(s,i);else if(X(r))t.addValue(s,se(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,se(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const To=new WeakMap,ku=[...ps,Y,Dt],Fu=t=>ku.find(ms(t)),Po=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Iu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Qe,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=gt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,k.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget=g({},l),this.initialValues=n.initial?g({},l):{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=ke(n),this.isVariantNode=no(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const d=this.scrapeMotionValuesFromProps(n,{},this),{willChange:c}=d,h=at(d,["willChange"]);for(const f in h){const m=h[f];l[f]!==void 0&&X(m)&&m.set(l[f],!1)}}mount(e){this.current=e,To.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),xo.current||Ou(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:kn.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){To.delete(this.current),this.projection&&this.projection.unmount(),Vt(this.notifyUpdate),Vt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Bt.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&k.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Jt){const n=Jt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):U()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Po.length;s++){const i=Po[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Bu(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=se(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(rs(i)||os(i))?i=parseFloat(i):!Fu(i)&&Dt.test(n)&&(i=bs(e,n)),this.setBaseTarget(e,X(i)?i.get():i)),X(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=dt(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!X(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new $e),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ao extends Iu{constructor(){super(...arguments),this.KeyframeResolver=Vs}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;X(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ju(t){return window.getComputedStyle(t)}class _u extends Ao{constructor(){super(...arguments),this.type="html",this.renderInstance=ao}readValueFromInstance(e,n){if(Bt.has(n)){const s=rn(n);return s&&s.default||0}else{const s=ju(e),i=(ls(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return pi(e,n)}build(e,n,s){Ln(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return En(e,n,s)}}class Nu extends Ao{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=U}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Bt.has(n)){const s=rn(n);return s&&s.default||0}return n=lo.has(n)?n:ze(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return ho(e,n,s)}build(e,n,s){On(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){uo(e,n,s,i)}mount(e){this.isSVGTag=Bn(e.tagName),super.mount(e)}}const Uu=(t,e)=>Dn(t)?new Nu(e):new _u(e,{allowProjection:t!==D.Fragment}),Ku=Lu(g(g(g(g({},Da),Jl),Nl),Ql),Uu),Wu=C(Ku)},46653:function(R,b,y){y.d(b,{j:function(){return C}});const C=typeof window!="undefined"},24387:function(R,b,y){y.d(b,{h:function(){return S}});var C=y(38497);function S(G){const et=(0,C.useRef)(null);return et.current===null&&(et.current=G()),et.current}},60598:function(R,b,y){y.d(b,{L:function(){return G}});var C=y(38497),S=y(46653);const G=S.j?C.useLayoutEffect:C.useEffect},17672:function(R,b,y){y.d(b,{K:function(){return S},k:function(){return G}});var C=y(11679);let S=C.Z,G=C.Z},11679:function(R,b,y){y.d(b,{Z:function(){return C}});const C=S=>S}}]);
}());